diff --git a/.github/workflows/test_endpoints.yaml b/.github/workflows/test_endpoints.yaml index 419e570342..ad9ed028b2 100644 --- a/.github/workflows/test_endpoints.yaml +++ b/.github/workflows/test_endpoints.yaml @@ -1,4 +1,4 @@ -on: push +on: name: test endpoints jobs: test: diff --git a/app/.babelrc b/app/.babelrc index b4d1f4c6e9..37457f4563 100644 --- a/app/.babelrc +++ b/app/.babelrc @@ -1,4 +1,4 @@ { - "presets": ["@babel/preset-env", "@babel/preset-react"], + "presets": ["@babel/preset-env", ["@babel/preset-react", {"runtime": "automatic"}]], "plugins": ["@babel/plugin-proposal-class-properties"] } \ No newline at end of file diff --git a/app/assets/javascripts/lexical.min.js b/app/assets/javascripts/lexical.min.js new file mode 100644 index 0000000000..72a013f4d9 --- /dev/null +++ b/app/assets/javascripts/lexical.min.js @@ -0,0 +1,2 @@ +/*! For license information please see lexical.min.js.LICENSE.txt */ +(()=>{var e={896:(e,t,n)=>{"use strict";const r=n(2913);e.exports=r},2913:(e,t,n)=>{"use strict";var r=n(8946),i=n(1372),a=n(2962),l=n(3579);function o(e){let t=new URLSearchParams;t.append("code",e);for(let e=1;el.DEPRECATED_$isGridCellNode(e)))&&null!==a.$findMatchingParent(n.focus.getNode(),(e=>l.DEPRECATED_$isGridCellNode(e))))&&1===t.length&&l.DEPRECATED_$isGridNode(t[0])?function(e,t,n,r){1===e.length&&l.DEPRECATED_$isGridNode(e[0])||o(42);var i=e[0];e=i.getChildren(),n=i.getFirstChildOrThrow().getChildrenSize();var s=i.getChildrenSize(),u=a.$findMatchingParent(t.anchor.getNode(),(e=>l.DEPRECATED_$isGridCellNode(e)));t=(i=u&&a.$findMatchingParent(u,(e=>l.DEPRECATED_$isGridRowNode(e))))&&a.$findMatchingParent(i,(e=>l.DEPRECATED_$isGridNode(e))),l.DEPRECATED_$isGridCellNode(u)&&l.DEPRECATED_$isGridRowNode(i)&&l.DEPRECATED_$isGridNode(t)||o(43);var c=i.getIndexWithinParent(),d=Math.min(t.getChildrenSize()-1,c+s-1);let f,p;s=u.getIndexWithinParent(),u=Math.min(i.getChildrenSize()-1,s+n-1),n=Math.min(s,u),i=Math.min(c,d),s=Math.max(s,u),c=Math.max(c,d),d=t.getChildren(),u=0;for(let t=i;t<=c;t++){var g=d[t];l.DEPRECATED_$isGridRowNode(g)||o(24);var h=e[u];l.DEPRECATED_$isGridRowNode(h)||o(24),g=g.getChildren(),h=h.getChildren();let r=0;for(let e=n;e<=s;e++){let a=g[e];l.DEPRECATED_$isGridCellNode(a)||o(25);let u=h[r];l.DEPRECATED_$isGridCellNode(u)||o(25),t===i&&e===n?f=a.getKey():t===c&&e===s&&(p=a.getKey());let d=a.getChildren();u.getChildren().forEach((e=>{l.$isTextNode(e)&&l.$createParagraphNode().append(e),a.append(e)})),d.forEach((e=>e.remove())),r++}u++}f&&p&&((e=l.DEPRECATED_$createGridSelection()).set(t.getKey(),f,p),l.$setSelection(e),r.dispatchCommand(l.SELECTION_CHANGE_COMMAND,void 0))}(t,n,!1,e):function(e,t){let n=[],r=null;for(let t=0;t{e.update((()=>{n(m(e,t))}))}));var n=e.getRootElement();let r=null==e._window?window.document:e._window.document,i=s?(e._window||window).getSelection():null;if(null===n||null===i)return!1;let o=r.createElement("span");return o.style.cssText="position: fixed; top: -1000px;",o.append(r.createTextNode("#")),n.append(o),(n=new Range).setStart(o,0),n.setEnd(o,1),i.removeAllRanges(),i.addRange(n),new Promise((t=>{let n=e.registerCommand(l.COPY_COMMAND,(r=>(a.objectKlassEquals(r,ClipboardEvent)&&(n(),null!==h&&(window.clearTimeout(h),h=null),t(m(e,r))),!0)),l.COMMAND_PRIORITY_CRITICAL);h=window.setTimeout((()=>{n(),h=null,t(!1)}),50),r.execCommand("copy"),o.remove()}))}},7746:(e,t,n)=>{"use strict";const r=n(8376);e.exports=r},8376:(e,t,n)=>{"use strict";var r=n(8848);n(5624),n(5723),n(4312),n(5545),n(271),n(1113),n(596),n(6966),n(9961),n(5342),n(4793),n(9587),n(6976),n(2415);var i=n(2962),a=n(3579);let l=e=>null!=e&&r.languages.hasOwnProperty(e)?e:void 0;function o(e,t){for(let n of e.childNodes){if(i.isHTMLElement(n)&&n.tagName===t)return!0;o(n,t)}return!1}class s extends a.ElementNode{static getType(){return"code"}static clone(e){return new s(e.__language,e.__key)}constructor(e,t){super(t),this.__language=l(e)}createDOM(e){let t=document.createElement("code");return i.addClassNamesToElement(t,e.theme.code),t.setAttribute("spellcheck","false"),(e=this.getLanguage())&&t.setAttribute("data-highlight-language",e),t}updateDOM(e,t){let n=this.__language;return e=e.__language,n?n!==e&&t.setAttribute("data-highlight-language",n):e&&t.removeAttribute("data-highlight-language"),!1}exportDOM(){let e=document.createElement("pre");e.setAttribute("spellcheck","false");let t=this.getLanguage();return t&&e.setAttribute("data-highlight-language",t),{element:e}}static importDOM(){return{code:e=>null!=e.textContent&&(/\r?\n/.test(e.textContent)||o(e,"BR"))?{conversion:d,priority:1}:null,div:()=>({conversion:f,priority:1}),pre:()=>({conversion:d,priority:0}),table:e=>m(e)?{conversion:p,priority:3}:null,td:e=>{let t=e.closest("table");return e.classList.contains("js-file-line")?{conversion:h,priority:3}:t&&m(t)?{conversion:g,priority:3}:null},tr:e=>(e=e.closest("table"))&&m(e)?{conversion:g,priority:3}:null}}static importJSON(e){let t=u(e.language);return t.setFormat(e.format),t.setIndent(e.indent),t.setDirection(e.direction),t}exportJSON(){return{...super.exportJSON(),language:this.getLanguage(),type:"code",version:1}}insertNewAfter(e,t=!0){var n=this.getChildren(),r=n.length;if(2<=r&&"\n"===n[r-1].getTextContent()&&"\n"===n[r-2].getTextContent()&&e.isCollapsed()&&e.anchor.key===this.__key&&e.anchor.offset===r)return n[r-1].remove(),n[r-2].remove(),e=a.$createParagraphNode(),this.insertAfter(e,t),e;if(t=e.anchor,n=e.focus,x(t=(t.isBefore(n)?t:n).getNode())||a.$isTabNode(t)){for(t=C(t),n=[];;)if(a.$isTabNode(t))n.push(a.$createTabNode()),t=t.getNextSibling();else{if(!x(t))break;{r=0;let e=t.getTextContent(),i=t.getTextContentSize();for(;re.append(t))),this.replace(e),!0}setLanguage(e){this.getWritable().__language=l(e)}getLanguage(){return this.getLatest().__language}}function u(e){return a.$applyNodeReplacement(new s(e))}function c(e){return e instanceof s}function d(e){let t;return i.isHTMLElement(e)&&(t=e.getAttribute("data-highlight-language")),{node:u(t)}}function f(e){let t=null!==e.style.fontFamily.match("monospace");return t||function(e){for(e=e.parentElement;null!==e;){if(null!==e.style.fontFamily.match("monospace"))return!0;e=e.parentElement}return!1}(e)?{after:t=>{let n=e.parentNode;return null!=n&&e!==n.lastChild&&t.push(a.$createLineBreakNode()),t},node:t?u():null}:{node:null}}function p(){return{node:u()}}function g(){return{node:null}}function h(e){return{after:t=>(e.parentNode&&e.parentNode.nextSibling&&t.push(a.$createLineBreakNode()),t),node:null}}function m(e){return e.classList.contains("js-file-line-container")}let y={c:"C",clike:"C-like",cpp:"C++",css:"CSS",html:"HTML",java:"Java",js:"JavaScript",markdown:"Markdown",objc:"Objective-C",plain:"Plain Text",py:"Python",rust:"Rust",sql:"SQL",swift:"Swift",typescript:"TypeScript",xml:"XML"},_={cpp:"cpp",java:"java",javascript:"js",md:"markdown",plaintext:"plain",python:"py",text:"plain",ts:"typescript"};function v(e){return _[e]||e}class b extends a.TextNode{constructor(e,t,n){super(e,n),this.__highlightType=t}static getType(){return"code-highlight"}static clone(e){return new b(e.__text,e.__highlightType||void 0,e.__key)}getHighlightType(){return this.getLatest().__highlightType}createDOM(e){let t=super.createDOM(e);return e=E(e.theme,this.__highlightType),i.addClassNamesToElement(t,e),t}updateDOM(e,t,n){let r=super.updateDOM(e,t,n);return(e=E(n.theme,e.__highlightType))!==(n=E(n.theme,this.__highlightType))&&(e&&i.removeClassNamesFromElement(t,e),n&&i.addClassNamesToElement(t,n)),r}static importJSON(e){let t=N(e.text,e.highlightType);return t.setFormat(e.format),t.setDetail(e.detail),t.setMode(e.mode),t.setStyle(e.style),t}exportJSON(){return{...super.exportJSON(),highlightType:this.getHighlightType(),type:"code-highlight",version:1}}setFormat(){return this}isParentRequired(){return!0}createParentElementNode(){return u()}}function E(e,t){return t&&e&&e.codeHighlight&&e.codeHighlight[t]}function N(e,t){return a.$applyNodeReplacement(new b(e,t))}function x(e){return e instanceof b}function C(e){let t=e;for(;x(e)||a.$isTabNode(e);)t=e,e=e.getPreviousSibling();return t}function S(e){let t=e;for(;x(e)||a.$isTabNode(e);)t=e,e=e.getNextSibling();return t}let T={defaultLanguage:"javascript",tokenize(e,t){return r.tokenize(e,r.languages[t||""]||r.languages[this.defaultLanguage])}};function k(e,t){let n=null;var r=null,i=e;let l=t,o=e.getTextContent();for(;;){if(0===l){if(null===(i=i.getPreviousSibling()))break;if(!(x(i)||a.$isTabNode(i)||a.$isLineBreakNode(i)))throw Error("Expected a valid Code Node: CodeHighlightNode, TabNode, LineBreakNode");if(a.$isLineBreakNode(i)){n={node:i,offset:1};break}l=Math.max(0,i.getTextContentSize()-1),o=i.getTextContent()}else l--;let e=o[l];x(i)&&" "!==e&&(r={node:i,offset:l})}if(null!==r)return r;if(r=null,t{!function(e,t){if(c(e=a.$getNodeByKey(e))&&e.isAttached()){var n=a.$getSelection();if(a.$isRangeSelection(n)){var r=(n=n.anchor).offset,i="element"===n.type&&a.$isLineBreakNode(e.getChildAtIndex(n.offset-1)),l=0;if(!i){let e=n.getNode();l=r+e.getPreviousSiblings().reduce(((e,t)=>e+t.getTextContentSize()),0)}t()&&(i?n.getNode().select(r,r):e.getChildren().some((e=>{let t=a.$isTextNode(e);if(t||a.$isLineBreakNode(e)){let n=e.getTextContentSize();if(t&&n>=l)return e.select(l,l),!0;l-=n}return!1})))}else t()}}(r,(()=>{var t=a.$getNodeByKey(r);if(!c(t)||!t.isAttached())return!1;var i=t.getTextContent();i=D(i=n.tokenize(i,t.getLanguage()||n.defaultLanguage));var l=t.getChildren();for(t=0;t{R.delete(r)},skipTransforms:!0}))}function D(e,t){let n=[];for(let r of e)if("string"==typeof r){let i=(e=r.split(/(\n|\t)/)).length;for(let r=0;re.remove())),e===a.KEY_ARROW_UP_COMMAND?(p.forEach((e=>g.insertBefore(e))),g.insertBefore(t)):(g.insertAfter(t),g=t,p.forEach((e=>{g.insertAfter(e),g=e}))),n.setTextNodeRange(s,l,u,o),!0}function F(e,t){let n=a.$getSelection();if(!a.$isRangeSelection(n))return!1;let{anchor:r,focus:i}=n;var l=r.getNode();let o=i.getNode();if(e=e===a.MOVE_TO_START,!x(l)&&!a.$isTabNode(l)||!x(o)&&!a.$isTabNode(o))return!1;if(e)if(null!==(l=k(o,i.offset))){let{node:e,offset:t}=l;a.$isLineBreakNode(e)?e.selectNext(0,0):n.setTextNodeRange(e,t,e,t)}else o.getParentOrThrow().selectStart();else w(o).select();return t.preventDefault(),t.stopPropagation(),!0}t.$createCodeHighlightNode=N,t.$createCodeNode=u,t.$isCodeHighlightNode=x,t.$isCodeNode=c,t.CODE_LANGUAGE_FRIENDLY_NAME_MAP=y,t.CODE_LANGUAGE_MAP=_,t.CodeHighlightNode=b,t.CodeNode=s,t.DEFAULT_CODE_LANGUAGE="javascript",t.PrismTokenizer=T,t.getCodeLanguages=()=>Object.keys(r.languages).filter((e=>"function"!=typeof r.languages[e])).sort(),t.getDefaultCodeLanguage=()=>"javascript",t.getEndOfCodeInLine=w,t.getFirstCodeNodeOfLine=C,t.getLanguageFriendlyName=function(e){return e=v(e),y[e]||e},t.getLastCodeNodeOfLine=S,t.getStartOfCodeInLine=k,t.normalizeCodeLang=v,t.registerCodeHighlighting=function(e,t){if(!e.hasNodes([s,b]))throw Error("CodeHighlightPlugin: CodeNode or CodeHighlightNode not registered on editor");return null==t&&(t=T),i.mergeRegister(e.registerMutationListener(s,(t=>{e.update((()=>{for(let[i,l]of t)if("destroyed"!==l){var n=a.$getNodeByKey(i);if(null!==n)e:{var r=n;if(null===(n=e.getElementByKey(r.getKey())))break e;let t=(r=r.getChildren()).length;if(t===n.__cachedChildrenLength)break e;n.__cachedChildrenLength=t;let i="1",l=1;for(let e=0;eA(n,e,t))),e.registerNodeTransform(a.TextNode,(n=>O(n,e,t))),e.registerNodeTransform(b,(n=>O(n,e,t))),e.registerCommand(a.KEY_TAB_COMMAND,(t=>{let n=function(e){var t=a.$getSelection();if(!a.$isRangeSelection(t)||!L(t))return null;let n=e?a.OUTDENT_CONTENT_COMMAND:a.INDENT_CONTENT_COMMAND;if(e=e?a.OUTDENT_CONTENT_COMMAND:a.INSERT_TAB_COMMAND,1!!L(a.$getSelection())&&(a.$insertNodes([a.$createTabNode()]),!0)),a.COMMAND_PRIORITY_LOW),e.registerCommand(a.INDENT_CONTENT_COMMAND,(()=>I(a.INDENT_CONTENT_COMMAND)),a.COMMAND_PRIORITY_LOW),e.registerCommand(a.OUTDENT_CONTENT_COMMAND,(()=>I(a.OUTDENT_CONTENT_COMMAND)),a.COMMAND_PRIORITY_LOW),e.registerCommand(a.KEY_ARROW_UP_COMMAND,(e=>$(a.KEY_ARROW_UP_COMMAND,e)),a.COMMAND_PRIORITY_LOW),e.registerCommand(a.KEY_ARROW_DOWN_COMMAND,(e=>$(a.KEY_ARROW_DOWN_COMMAND,e)),a.COMMAND_PRIORITY_LOW),e.registerCommand(a.MOVE_TO_END,(e=>F(a.MOVE_TO_END,e)),a.COMMAND_PRIORITY_LOW),e.registerCommand(a.MOVE_TO_START,(e=>F(a.MOVE_TO_START,e)),a.COMMAND_PRIORITY_LOW))}},7766:(e,t,n)=>{"use strict";const r=n(6239);e.exports=r},6239:(e,t,n)=>{"use strict";var r=n(3579);t.registerDragonSupport=function(e){let t=window.location.origin,n=n=>{if(n.origin===t){var i=e.getRootElement();if(document.activeElement===i&&"string"==typeof(i=n.data)){try{var a=JSON.parse(i)}catch(e){return}if(a&&"nuanria_messaging"===a.protocol&&"request"===a.type&&(a=a.payload)&&"makeChanges"===a.functionId&&(a=a.args)){const[t,i,l,o,s]=a;e.update((()=>{const e=r.$getSelection();if(r.$isRangeSelection(e)){var a=e.anchor;let u=a.getNode(),c=0,d=0;r.$isTextNode(u)&&0<=t&&0<=i&&(c=t,d=t+i,e.setTextNodeRange(u,c,u,d)),c===d&&""===l||(e.insertRawText(l),u=a.getNode()),r.$isTextNode(u)&&(c=o,d=o+s,c=c>(a=u.getTextContentSize())?a:c,d=d>a?a:d,e.setTextNodeRange(u,c,u,d)),n.stopImmediatePropagation()}}))}}}};return window.addEventListener("message",n,!0),()=>{window.removeEventListener("message",n,!0)}}},4568:(e,t,n)=>{"use strict";const r=n(9769);e.exports=r},9769:(e,t,n)=>{"use strict";var r=n(2962),i=n(3579);t.createEmptyHistoryState=function(){return{current:null,redoStack:[],undoStack:[]}},t.registerHistory=function(e,t,n){let a=function(e,t){let n=Date.now(),r=0;return(a,l,o,s,u,c)=>{let d=Date.now();if(c.has("historic"))return r=0,n=d,2;let f=function(e,t,n,r,a){if(null===e||0===n.size&&0===r.size&&!a)return 0;var l=t._selection,o=e._selection;if(a)return 1;if(!(i.$isRangeSelection(l)&&i.$isRangeSelection(o)&&o.isCollapsed()&&l.isCollapsed()))return 0;a=t._nodeMap;let s=[];for(let e of n)void 0!==(n=a.get(e))&&s.push(n);for(let[e,t]of r)t&&(void 0===(r=a.get(e))||i.$isRootNode(r)||s.push(r));return 0===s.length?0:1{var p=null===o||o.editor===e,g=c.has("history-push");if(!g&&p&&c.has("history-merge"))return 0;if(null===a)return 1;var h=l._selection;if(!(0{const u=t.current,c=t.redoStack,d=t.undoStack,f=null===u?null:u.editorState;if(null===u||n!==f){if(1===(r=a(r,n,u,l,o,s)))0!==c.length&&(t.redoStack=[],e.dispatchCommand(i.CAN_REDO_COMMAND,!1)),null!==u&&(d.push({...u}),e.dispatchCommand(i.CAN_UNDO_COMMAND,!0));else if(2===r)return;t.current={editor:e,editorState:n}}};let l=r.mergeRegister(e.registerCommand(i.UNDO_COMMAND,(()=>{let n=t.redoStack,r=t.undoStack;if(0!==r.length){let a=t.current,l=r.pop();null!==a&&(n.push(a),e.dispatchCommand(i.CAN_REDO_COMMAND,!0)),0===r.length&&e.dispatchCommand(i.CAN_UNDO_COMMAND,!1),t.current=l||null,l&&l.editor.setEditorState(l.editorState,{tag:"historic"})}return!0}),i.COMMAND_PRIORITY_EDITOR),e.registerCommand(i.REDO_COMMAND,(()=>{let n=t.redoStack;var r=t.undoStack;if(0!==n.length){let a=t.current;null!==a&&(r.push(a),e.dispatchCommand(i.CAN_UNDO_COMMAND,!0)),r=n.pop(),0===n.length&&e.dispatchCommand(i.CAN_REDO_COMMAND,!1),t.current=r||null,r&&r.editor.setEditorState(r.editorState,{tag:"historic"})}return!0}),i.COMMAND_PRIORITY_EDITOR),e.registerCommand(i.CLEAR_EDITOR_COMMAND,(()=>(t.undoStack=[],t.redoStack=[],t.current=null,!1)),i.COMMAND_PRIORITY_EDITOR),e.registerCommand(i.CLEAR_HISTORY_COMMAND,(()=>(t.undoStack=[],t.redoStack=[],t.current=null,e.dispatchCommand(i.CAN_REDO_COMMAND,!1),e.dispatchCommand(i.CAN_UNDO_COMMAND,!1),!0)),i.COMMAND_PRIORITY_EDITOR),e.registerUpdateListener(n)),o=e.registerUpdateListener(n);return()=>{l(),o()}}},8946:(e,t,n)=>{"use strict";const r=n(2059);e.exports=r},2059:(e,t,n)=>{"use strict";var r=n(1372),i=n(2962),a=n(3579);function l(e,t,n,o=null){let s=null==o||t.isSelected(o),u=a.$isElementNode(t)&&t.excludeFromCopy("html");var c=t;null!==o&&(c=r.$cloneWithProperties(t),c=a.$isTextNode(c)&&null!=o?r.$sliceSelectedTextNodeContent(o,c):c);let d=a.$isElementNode(c)?c.getChildren():[],{element:f,after:p}=c.exportDOM(e);if(!f)return!1;let g=document.createDocumentFragment();for(let n=0;n{"use strict";const r=n(5991);e.exports=r},5991:(e,t,n)=>{"use strict";var r=n(2962),i=n(3579);let a=new Set(["http:","https:","mailto:","sms:","tel:"]);class l extends i.ElementNode{static getType(){return"link"}static clone(e){return new l(e.__url,{rel:e.__rel,target:e.__target,title:e.__title},e.__key)}constructor(e,t={},n){super(n);let{target:r=null,rel:i=null,title:a=null}=t;this.__url=e,this.__target=r,this.__rel=i,this.__title=a}createDOM(e){let t=document.createElement("a");return t.href=this.sanitizeUrl(this.__url),null!==this.__target&&(t.target=this.__target),null!==this.__rel&&(t.rel=this.__rel),null!==this.__title&&(t.title=this.__title),r.addClassNamesToElement(t,e.theme.link),t}updateDOM(e,t){let n=this.__url,r=this.__target,i=this.__rel,a=this.__title;return n!==e.__url&&(t.href=n),r!==e.__target&&(r?t.target=r:t.removeAttribute("target")),i!==e.__rel&&(i?t.rel=i:t.removeAttribute("rel")),a!==e.__title&&(a?t.title=a:t.removeAttribute("title")),!1}static importDOM(){return{a:()=>({conversion:o,priority:1})}}static importJSON(e){let t=s(e.url,{rel:e.rel,target:e.target,title:e.title});return t.setFormat(e.format),t.setIndent(e.indent),t.setDirection(e.direction),t}sanitizeUrl(e){try{let t=new URL(e);if(!a.has(t.protocol))return"about:blank"}catch{}return e}exportJSON(){return{...super.exportJSON(),rel:this.getRel(),target:this.getTarget(),title:this.getTitle(),type:"link",url:this.getURL(),version:1}}getURL(){return this.getLatest().__url}setURL(e){this.getWritable().__url=e}getTarget(){return this.getLatest().__target}setTarget(e){this.getWritable().__target=e}getRel(){return this.getLatest().__rel}setRel(e){this.getWritable().__rel=e}getTitle(){return this.getLatest().__title}setTitle(e){this.getWritable().__title=e}insertNewAfter(e,t=!0){return e=this.getParentOrThrow().insertNewAfter(e,t),i.$isElementNode(e)?(t=s(this.__url,{rel:this.__rel,target:this.__target,title:this.__title}),e.append(t),t):null}canInsertTextBefore(){return!1}canInsertTextAfter(){return!1}canBeEmpty(){return!1}isInline(){return!0}extractWithChild(e,t){if(!i.$isRangeSelection(t))return!1;e=t.anchor.getNode();let n=t.focus.getNode();return this.isParentOf(e)&&this.isParentOf(n)&&0{if(u(e=e.getParent())){let t=e.getChildren();for(let n=0;n{var l=t.getParent();if(l!==c&&null!==l&&(!i.$isElementNode(t)||t.isInline()))if(u(l))c=l,l.setURL(e),void 0!==n&&l.setTarget(n),null!==a&&c.setRel(a),void 0!==r&&c.setTitle(r);else if(l.is(o)||(o=l,c=s(e,{rel:a,target:n}),u(l)?null===t.getPreviousSibling()?l.insertBefore(c):l.insertAfter(c):t.insertBefore(c)),u(t)){if(!t.is(c)){if(null!==c){l=t.getChildren();for(let e=0;e{"use strict";const r=n(9867);e.exports=r},9867:(e,t,n)=>{"use strict";var r=n(3579),i=n(2962);function a(e){let t=new URLSearchParams;t.append("code",e);for(let e=1;er.append(e))),a=E(),l=w(l),a.append(l),f(l,e.getNextSiblings()),n.insertBefore(i),n.insertAfter(a),n.replace(e)}h(t),h(r)}}}class y extends r.ElementNode{static getType(){return"listitem"}static clone(e){return new y(e.__value,e.__checked,e.__key)}constructor(e,t,n){super(n),this.__value=void 0===e?1:e,this.__checked=t}createDOM(e){let t=document.createElement("li"),n=this.getParent();return O(n)&&"check"===n.getListType()&&v(t,this,null),t.value=this.__value,_(t,e.theme,this),t}updateDOM(e,t,n){let r=this.getParent();return O(r)&&"check"===r.getListType()&&v(t,this,e),t.value=this.__value,_(t,n.theme,this),!1}static transform(){return e=>{let t=e.getParent();O(t)&&(h(t),"check"!==t.getListType()&&null!=e.getChecked()&&e.setChecked(void 0))}}static importDOM(){return{li:()=>({conversion:b,priority:0})}}static importJSON(e){let t=E();return t.setChecked(e.checked),t.setValue(e.value),t.setFormat(e.format),t.setDirection(e.direction),t}exportJSON(){return{...super.exportJSON(),checked:this.getChecked(),type:"listitem",value:this.getValue(),version:1}}append(...e){for(let t=0;t{e.append(t)})),this.remove(),0===n.getChildrenSize()&&n.remove(),e}insertAfter(e,t=!0){var n=this.getParentOrThrow();O(n)||a(39);var r=this.getNextSiblings();if(N(e))return t=super.insertAfter(e,t),O(e=e.getParentOrThrow())&&h(e),t;if(O(e)){for(n=e,r=(e=e.getChildren()).length-1;0<=r;r--)n=e[r],this.insertAfter(n,t);return n}if(n.insertAfter(e,t),0!==r.length){let i=w(n.getListType());r.forEach((e=>i.append(e))),e.insertAfter(i,t)}return e}remove(e){let t=this.getPreviousSibling(),n=this.getNextSibling();super.remove(e),t&&n&&u(t)&&u(n)?(g(t.getFirstChild(),n.getFirstChild()),n.remove()):n&&O(e=n.getParent())&&h(e)}insertNewAfter(e,t=!0){return e=E(null==this.__checked&&void 0),this.insertAfter(e,t),e}collapseAtStart(e){let t=r.$createParagraphNode();this.getChildren().forEach((e=>t.append(e)));var n=this.getParentOrThrow(),i=n.getParentOrThrow();let a=N(i);return 1===n.getChildrenSize()?a?(n.remove(),i.select()):(n.insertBefore(t),n.remove(),n=e.anchor,e=e.focus,i=t.getKey(),"element"===n.type&&n.getNode().is(this)&&n.set(i,n.offset,"element"),"element"===e.type&&e.getNode().is(this)&&e.set(i,e.offset,"element")):(n.insertBefore(t),this.remove()),!0}getValue(){return this.getLatest().__value}setValue(e){this.getWritable().__value=e}getChecked(){return this.getLatest().__checked}setChecked(e){this.getWritable().__checked=e}toggleChecked(){this.setChecked(!this.__checked)}getIndent(){var e=this.getParent();if(null===e)return this.getLatest().__indent;e=e.getParentOrThrow();let t=0;for(;N(e);)e=e.getParentOrThrow().getParentOrThrow(),t++;return t}setIndent(e){"number"==typeof e&&-1O(e)))?r.push(...o):a.push(...o)),0({conversion:T,priority:0}),ul:()=>({conversion:T,priority:0})}}static importJSON(e){let t=w(e.listType,e.start);return t.setFormat(e.format),t.setIndent(e.indent),t.setDirection(e.direction),t}exportDOM(e){return({element:e}=super.exportDOM(e)),e&&i.isHTMLElement(e)&&(1!==this.__start&&e.setAttribute("start",String(this.__start)),"check"===this.__listType&&e.setAttribute("__lexicalListType","check")),{element:e}}exportJSON(){return{...super.exportJSON(),listType:this.getListType(),start:this.getStart(),tag:this.getTag(),type:"list",version:1}}canBeEmpty(){return!1}canIndent(){return!1}append(...e){for(let n=0;n{O(e)&&t.push(c(e))}))):t.push(c(n))}return t}function T(e){let t=e.nodeName.toLowerCase(),n=null;return"ol"===t?n=w("number",e.start):"ul"===t&&(n=i.isHTMLElement(e)&&"check"===e.getAttribute("__lexicallisttype")?w("check"):w("bullet")),{after:S,node:n}}let k={ol:"number",ul:"bullet"};function w(e,t=1){return r.$applyNodeReplacement(new x(e,t))}function O(e){return e instanceof x}let R=r.createCommand("INSERT_UNORDERED_LIST_COMMAND"),A=r.createCommand("INSERT_ORDERED_LIST_COMMAND"),D=r.createCommand("INSERT_CHECK_LIST_COMMAND"),M=r.createCommand("REMOVE_LIST_COMMAND");t.$createListItemNode=E,t.$createListNode=w,t.$getListDepth=l,t.$handleListInsertParagraph=function(){var e=r.$getSelection();if(!r.$isRangeSelection(e)||!e.isCollapsed())return!1;if(!N(e=e.anchor.getNode())||0!==e.getChildrenSize())return!1;var t=o(e),n=e.getParent();O(n)||a(40);let i,l=n.getParent();if(r.$isRootOrShadowRoot(l))i=r.$createParagraphNode(),t.insertAfter(i);else{if(!N(l))return!1;i=E(),l.insertAfter(i)}if(i.select(),0<(t=e.getNextSiblings()).length){let e=w(n.getListType());r.$isParagraphNode(i)?i.insertAfter(e):((n=E()).append(e),i.insertAfter(n)),t.forEach((t=>{t.remove(),e.append(t)}))}return function(e){for(;null==e.getNextSibling()&&null==e.getPreviousSibling();){let t=e.getParent();if(null==t||!N(e)&&!O(e))break;e=t}e.remove()}(e),!0},t.$isListItemNode=N,t.$isListNode=O,t.INSERT_CHECK_LIST_COMMAND=D,t.INSERT_ORDERED_LIST_COMMAND=A,t.INSERT_UNORDERED_LIST_COMMAND=R,t.ListItemNode=y,t.ListNode=x,t.REMOVE_LIST_COMMAND=M,t.insertList=function(e,t){e.update((()=>{var e=r.$getSelection();if(r.$isRangeSelection(e)||r.DEPRECATED_$isGridSelection(e)){var n=e.getNodes(),i=(e=e.anchor.getNode()).getParent();if(d(e,n))n=w(t),r.$isRootOrShadowRoot(i)?(e.replace(n),i=E(),r.$isElementNode(e)&&(i.setFormat(e.getFormatType()),i.setIndent(e.getIndent())),n.append(i)):N(e)&&(f(n,(e=e.getParentOrThrow()).getChildren()),e.replace(n));else for(e=new Set,i=0;i{let e=r.$getSelection();if(r.$isRangeSelection(e)){var t=new Set,n=e.getNodes(),a=e.anchor.getNode();if(d(a,n))t.add(o(a));else for(a=0;a{"use strict";const r=n(7159);e.exports=r},7159:(e,t,n)=>{"use strict";var r=n(3579),i=n(7746),a=n(4354),l=n(1381),o=n(2962),s=n(5390);function u(e,t){let n={};for(let r of e)n[e=t(r)]?n[e].push(r):n[e]=[r];return n}function c(e){return{element:(e=u(e,(e=>e.type))).element||[],textFormat:e["text-format"]||[],textMatch:e["text-match"]||[]}}let d=/[!-/:-@[-`{-~\s]/;function f(e,t,n,i){for(let r of t)if(null!=(t=r.export(e,(e=>p(e,n,i)))))return t;return r.$isElementNode(e)?p(e,n,i):r.$isDecoratorNode(e)?e.getTextContent():null}function p(e,t,n){let i=[];e=e.getChildren();e:for(let a of e){for(let r of n)if(null!=(e=r.export(a,(e=>p(e,t,n)),((e,n)=>g(e,n,t))))){i.push(e);continue e}r.$isLineBreakNode(a)?i.push("\n"):r.$isTextNode(a)?i.push(g(a,a.getTextContent(),t)):r.$isElementNode(a)?i.push(p(a,t,n)):r.$isDecoratorNode(a)&&i.push(a.getTextContent())}return i.join("")}function g(e,t,n){let r=t.trim(),i=r,a=new Set;for(let t of n){n=t.format[0];let r=t.tag;if(m(e,n)&&!a.has(n)){a.add(n);var l=h(e,!0);m(l,n)||(i=r+i),m(l=h(e,!1),n)||(i+=r)}}return t.replace(r,i)}function h(e,t){let n=t?e.getPreviousSibling():e.getNextSibling();for(n||(e=e.getParentOrThrow()).isInline()&&(n=t?e.getPreviousSibling():e.getNextSibling());n;){if(r.$isElementNode(n)){if(!n.isInline())break;if(e=t?n.getLastDescendant():n.getFirstDescendant(),r.$isTextNode(e))return e;n=t?n.getPreviousSibling():n.getNextSibling()}if(r.$isTextNode(n))return n;if(!r.$isElementNode(n))break}return null}function m(e,t){return r.$isTextNode(e)&&e.hasFormat(t)}let y="undefined"!=typeof window&&void 0!==window.document&&void 0!==window.document.createElement,_=y&&"documentMode"in document?document.documentMode:null;y&&/Mac|iPod|iPhone|iPad/.test(navigator.platform),y&&/^(?!.*Seamonkey)(?=.*Firefox).*/i.test(navigator.userAgent),y&&"InputEvent"in window&&!_&&new window.InputEvent("input");let v=y&&/Version\/[\d.]+.*Safari/.test(navigator.userAgent),b=y&&/iPad|iPhone|iPod/.test(navigator.userAgent)&&!window.MSStream,E=y&&/^(?=.*Chrome).*/i.test(navigator.userAgent),N=y&&/AppleWebKit\/[\d.]+/.test(navigator.userAgent)&&!E,x=/^\s{0,3}$/,C=/^```(\w{1,10})?\s?$/;function S(e,t,n){var r=e.getTextContent();let i=function(e,t){var n=e.match(t.openTagsRegExp);if(null==n)return null;for(let a of n){var r=a.replace(/^\s/,"");if(null!=(n=t.fullMatchRegExpByTag[r])&&(n=e.match(n),r=t.transformersByTag[r],null!=n&&null!=r)){if(!1!==r.intraword)return n;var{index:i=0}=n;if(r=e[i-1],i=e[i+n[0].length],!(r&&!d.test(r)||i&&!d.test(i)))return n}}return null}(r,t);if(i){var a,l;if(i[0]===r)var o=e;else{let t=(r=i.index||0)+i[0].length;0===r?[o,a]=e.splitText(t):[l,o,a]=e.splitText(r,t)}if(o.setTextContent(i[2]),e=t.transformersByTag[i[1]])for(let t of e.format)o.hasFormat(t)||o.toggleFormat(t);o.hasFormat("code")||S(o,t,n),l&&S(l,t,n),a&&S(a,t,n)}else T(e,n)}function T(e,t){e:for(;e;){for(let n of t){let r=e.getTextContent().match(n.importRegExp);if(!r)continue;let i,a,l,o=r.index||0,s=o+r[0].length;0===o?[i,e]=e.splitText(s):[a,i,l]=e.splitText(o,s),a&&T(a,t),l&&(e=l),n.replace(i,r);continue e}break}}function k(e,t,n){let r=n.length;for(;t>=r;t--){let i=t-r;if(w(e,i,n,0,r)&&" "!==e[i+r])return i}return-1}function w(e,t,n,r,i){for(let a=0;a(t,n,r)=>{(r=e(r)).append(...n),t.replace(r),r.select(0,0)},R=e=>(t,n,r)=>{var i=t.getPreviousSibling(),l=t.getNextSibling();const o=a.$createListItemNode("check"===e?"x"===r[3]:void 0);a.$isListNode(l)&&l.getListType()===e?(null!==(i=l.getFirstChild())?i.insertBefore(o):l.append(o),t.remove()):a.$isListNode(i)&&i.getListType()===e?(i.append(o),t.remove()):((l=a.$createListNode(e,"number"===e?Number(r[2]):void 0)).append(o),t.replace(l)),o.append(...n),o.select(0,0),(t=Math.floor(r[1].length/4))&&o.setIndent(t)},A=(e,t,n)=>{const r=[];var i=e.getChildren();let l=0;for(const s of i)if(a.$isListItemNode(s)){if(1===s.getChildrenSize()&&(i=s.getFirstChild(),a.$isListNode(i))){r.push(A(i,t,n+1));continue}i=" ".repeat(4*n);var o=e.getListType();o="number"===o?`${e.getStart()+l}. `:"check"===o?`- [${s.getChecked()?"x":" "}] `:"- ",r.push(i+o+t(s)),l++}return r.join("\n")},D={dependencies:[l.HeadingNode],export:(e,t)=>{if(!l.$isHeadingNode(e))return null;const n=Number(e.getTag().slice(1));return"#".repeat(n)+" "+t(e)},regExp:/^(#{1,6})\s/,replace:O((e=>l.$createHeadingNode("h"+e[1].length))),type:"element"},M={dependencies:[l.QuoteNode],export:(e,t)=>{if(!l.$isQuoteNode(e))return null;e=t(e).split("\n"),t=[];for(const n of e)t.push("> "+n);return t.join("\n")},regExp:/^>\s/,replace:(e,t,n,i)=>{if(i&&(n=e.getPreviousSibling(),l.$isQuoteNode(n)))return n.splice(n.getChildrenSize(),0,[r.$createLineBreakNode(),...t]),n.select(0,0),void e.remove();(n=l.$createQuoteNode()).append(...t),e.replace(n),n.select(0,0)},type:"element"},L={dependencies:[i.CodeNode],export:e=>{if(!i.$isCodeNode(e))return null;const t=e.getTextContent();return"```"+(e.getLanguage()||"")+(t?"\n"+t:"")+"\n```"},regExp:/^```(\w{1,10})?\s/,replace:O((e=>i.$createCodeNode(e?e[1]:void 0))),type:"element"},P={dependencies:[a.ListNode,a.ListItemNode],export:(e,t)=>a.$isListNode(e)?A(e,t,0):null,regExp:/^(\s*)[-*+]\s/,replace:R("bullet"),type:"element"},I={dependencies:[a.ListNode,a.ListItemNode],export:(e,t)=>a.$isListNode(e)?A(e,t,0):null,regExp:/^(\s*)(?:-\s)?\s?(\[(\s|x)?\])\s/i,replace:R("check"),type:"element"},$={dependencies:[a.ListNode,a.ListItemNode],export:(e,t)=>a.$isListNode(e)?A(e,t,0):null,regExp:/^(\s*)(\d{1,})\.\s/,replace:R("number"),type:"element"},F={format:["code"],tag:"`",type:"text-format"},z={format:["highlight"],tag:"==",type:"text-format"},B={format:["bold","italic"],tag:"***",type:"text-format"},U={format:["bold","italic"],intraword:!1,tag:"___",type:"text-format"},W={format:["bold"],tag:"**",type:"text-format"},H={format:["bold"],intraword:!1,tag:"__",type:"text-format"},K={format:["strikethrough"],tag:"~~",type:"text-format"},j={format:["italic"],tag:"*",type:"text-format"},Y={format:["italic"],intraword:!1,tag:"_",type:"text-format"},V={dependencies:[s.LinkNode],export:(e,t,n)=>{if(!s.$isLinkNode(e))return null;t=(t=e.getTitle())?`[${e.getTextContent()}](${e.getURL()} "${t}")`:`[${e.getTextContent()}](${e.getURL()})`;const i=e.getFirstChild();return 1===e.getChildrenSize()&&r.$isTextNode(i)?n(i,t):t},importRegExp:/(?:\[([^[]+)\])(?:\((?:([^()\s]+)(?:\s"((?:[^"]*\\")*[^"]*)"\s*)?)\))/,regExp:/(?:\[([^[]+)\])(?:\((?:([^()\s]+)(?:\s"((?:[^"]*\\")*[^"]*)"\s*)?)\))$/,replace:(e,t)=>{const[,n,i,a]=t;t=s.$createLinkNode(i,{title:a});const l=r.$createTextNode(n);l.setFormat(e.getFormat()),t.append(l),e.replace(t)},trigger:")",type:"text-match"},G=[D,M,L,P,$],Q=[F,B,U,W,H,z,j,Y,K],q=[V],J=[...G,...Q,...q];t.$convertFromMarkdownString=function(e,t=J,n){return function(e){let t=c(e),n=function(e){let t={},n={},r=[];for(let i of e){({tag:e}=i),t[e]=i;let a=e.replace(/(\*|\^|\+)/g,"\\$1");r.push(a),n[e]=v||b||N?new RegExp(`(${a})(?![${a}\\s])(.*?[^${a}\\s])${a}(?!${a})`):new RegExp(`(?{var u=(e=e.split("\n")).length;(s=s||r.$getRoot()).clear();for(let _=0;_1===e.format.length));return e=>{let i=[];e=(e||r.$getRoot()).getChildren();for(let r of e)null!=(e=f(r,t.element,n,t.textMatch))&&i.push(e);return i.join("\n\n")}}(e)(t)},t.BOLD_ITALIC_STAR=B,t.BOLD_ITALIC_UNDERSCORE=U,t.BOLD_STAR=W,t.BOLD_UNDERSCORE=H,t.CHECK_LIST=I,t.CODE=L,t.ELEMENT_TRANSFORMERS=G,t.HEADING=D,t.HIGHLIGHT=z,t.INLINE_CODE=F,t.ITALIC_STAR=j,t.ITALIC_UNDERSCORE=Y,t.LINK=V,t.ORDERED_LIST=$,t.QUOTE=M,t.STRIKETHROUGH=K,t.TEXT_FORMAT_TRANSFORMERS=Q,t.TEXT_MATCH_TRANSFORMERS=q,t.TRANSFORMERS=J,t.UNORDERED_LIST=P,t.registerMarkdownShortcuts=function(e,t=J){let n=c(t),a=u(n.textFormat,(({tag:e})=>e[e.length-1])),l=u(n.textMatch,(({trigger:e})=>e));for(let n of t)if("element"===(t=n.type)||"text-match"===t){t=n.dependencies;for(let n of t)if(!e.hasNode(n))throw Error(`MarkdownShortcuts: missing dependency ${n.getType()} for transformer. Ensure node dependency is included in editor initial config.`)}return e.registerUpdateListener((({tags:t,dirtyLeaves:o,editorState:s,prevEditorState:u})=>{if(!t.has("historic")&&!e.isComposing()){var c=s.read(r.$getSelection);if(t=u.read(r.$getSelection),r.$isRangeSelection(t)&&r.$isRangeSelection(c)&&c.isCollapsed()){u=c.anchor.key;var f=c.anchor.offset,p=s._nodeMap.get(u);!r.$isTextNode(p)||!o.has(u)||1!==f&&f>t.anchor.offset+1||e.update((()=>{if(!p.hasFormat("code")){var e=p.getParent();if(null!==e&&!i.$isCodeNode(e)){var t=c.anchor.offset;e:{var o=n.element,s=e.getParent();if(r.$isRootOrShadowRoot(s)&&e.getFirstChild()===p&&" "===(s=p.getTextContent())[t-1])for(let{regExp:n,replace:r}of o)if((o=s.match(n))&&o[0].length===t){s=p.getNextSiblings();let[n,i]=p.splitText(t);n.remove(),r(e,s=i?[i,...s]:s,o,!1),e=!0;break e}e=!1}if(!e){e:{if(o=p.getTextContent(),null!=(e=l[o[t-1]]))for(f of(to&&(m=m.getPreviousSibling())&&!r.$isLineBreakNode(m);)r.$isTextNode(m)&&(o=m.getTextContent(),e=m,o=k(o,o.length,h));if(!(0>o||e===u&&o+f===i||(h=e.getTextContent(),0{"use strict";const r=n(8612);e.exports=r},8612:(e,t,n)=>{"use strict";var r=n(5744),i=n(3579),a=n(6540);let l="undefined"!=typeof window&&void 0!==window.document&&void 0!==window.document.createElement;var o=l?a.useLayoutEffect:a.useEffect;let s={tag:"history-merge"};t.LexicalComposer=function({initialConfig:e,children:t}){let n=a.useMemo((()=>{const{theme:t,namespace:n,editor__DEPRECATED:a,nodes:o,onError:u,editorState:c}=e,d=r.createLexicalComposerContext(null,t);let f=a||null;if(null===f){const r=i.createEditor({editable:e.editable,namespace:n,nodes:o,onError:e=>u(e,r),theme:t});!function(e,t){if(null!==t)if(void 0===t)e.update((()=>{var t=i.$getRoot();if(t.isEmpty()){let n=i.$createParagraphNode();t.append(n),t=l?document.activeElement:null,(null!==i.$getSelection()||null!==t&&t===e.getRootElement())&&n.select()}}),s);else if(null!==t)switch(typeof t){case"string":let n=e.parseEditorState(t);e.setEditorState(n,s);break;case"object":e.setEditorState(t,s);break;case"function":e.update((()=>{i.$getRoot().isEmpty()&&t(e)}),s)}}(r,c),f=r}return[f,d]}),[]);return o((()=>{let t=e.editable,[r]=n;r.setEditable(void 0===t||t)}),[]),a.createElement(r.LexicalComposerContext.Provider,{value:n},t)}},5744:(e,t,n)=>{"use strict";const r=n(8113);e.exports=r},8113:(e,t,n)=>{"use strict";var r=n(6540);let i=r.createContext(null);t.LexicalComposerContext=i,t.createLexicalComposerContext=function(e,t){let n=null;return null!=e&&(n=e[1]),{getTheme:function(){return null!=t?t:null!=n?n.getTheme():null}}},t.useLexicalComposerContext=function(){let e=r.useContext(i);return null==e&&function(e){let t=new URLSearchParams;t.append("code",e);for(let e=1;e{"use strict";const r=n(6201);e.exports=r},6201:(e,t,n)=>{"use strict";var r=n(5744),i=n(6540);function a(){return a=Object.assign?Object.assign.bind():function(e){for(var t=1;t{x.setRootElement(e)}),[x]);return l((()=>(S(x.isEditable()),x.registerEditableListener((e=>{S(e)})))),[x]),i.createElement("div",a({},N,{"aria-activedescendant":C?e:void 0,"aria-autocomplete":C?t:"none","aria-controls":C?n:void 0,"aria-describedby":o,"aria-expanded":C&&"combobox"===y?!!s:void 0,"aria-label":u,"aria-labelledby":c,"aria-multiline":d,"aria-owns":C?f:void 0,"aria-readonly":!C||void 0,"aria-required":p,autoCapitalize:g,className:h,contentEditable:C,"data-testid":E,id:m,ref:T,role:y,spellCheck:_,style:v,tabIndex:b}))}},2421:(e,t,n)=>{"use strict";const r=n(6842);e.exports=r},6842:(e,t,n)=>{"use strict";var r=n(6540);function i(e,t){return(i=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}var a={error:null},l=function(e){function t(){for(var t,n=arguments.length,r=Array(n),i=0;i{"use strict";const r=n(95);e.exports=r},95:(e,t,n)=>{"use strict";var r=n(5744),i=n(4568),a=n(6540);t.createEmptyHistoryState=i.createEmptyHistoryState,t.HistoryPlugin=function({externalHistoryState:e}){let[t]=r.useLexicalComposerContext();return function(e,t,n=1e3){let r=a.useMemo((()=>t||i.createEmptyHistoryState()),[t]);a.useEffect((()=>i.registerHistory(e,r,n)),[n,e,r])}(t,e),null}},8795:(e,t,n)=>{"use strict";const r=n(2680);e.exports=r},2680:(e,t,n)=>{"use strict";var r=n(5744),i=n(9028),a=n(2962),l=n(3579),o=n(6540);let s=l.createCommand("INSERT_HORIZONTAL_RULE_COMMAND");function u({nodeKey:e}){let[t]=r.useLexicalComposerContext(),[n,s,u]=i.useLexicalNodeSelection(e),c=o.useCallback((t=>(n&&l.$isNodeSelection(l.$getSelection())&&(t.preventDefault(),p(t=l.$getNodeByKey(e))&&t.remove()),!1)),[n,e]);return o.useEffect((()=>a.mergeRegister(t.registerCommand(l.CLICK_COMMAND,(r=>{let i=t.getElementByKey(e);return r.target===i&&(r.shiftKey||u(),s(!n),!0)}),l.COMMAND_PRIORITY_LOW),t.registerCommand(l.KEY_DELETE_COMMAND,c,l.COMMAND_PRIORITY_LOW),t.registerCommand(l.KEY_BACKSPACE_COMMAND,c,l.COMMAND_PRIORITY_LOW))),[u,t,n,e,c,s]),o.useEffect((()=>{let r=t.getElementByKey(e);null!==r&&(r.className=n?"selected":"")}),[t,n,e]),null}class c extends l.DecoratorNode{static getType(){return"horizontalrule"}static clone(e){return new c(e.__key)}static importJSON(){return f()}static importDOM(){return{hr:()=>({conversion:d,priority:0})}}exportJSON(){return{type:"horizontalrule",version:1}}exportDOM(){return{element:document.createElement("hr")}}createDOM(){return document.createElement("hr")}getTextContent(){return"\n"}isInline(){return!1}updateDOM(){return!1}decorate(){return o.createElement(u,{nodeKey:this.__key})}}function d(){return{node:f()}}function f(){return l.$applyNodeReplacement(new c)}function p(e){return e instanceof c}t.$createHorizontalRuleNode=f,t.$isHorizontalRuleNode=p,t.HorizontalRuleNode=c,t.INSERT_HORIZONTAL_RULE_COMMAND=s},2774:(e,t,n)=>{"use strict";const r=n(3020);e.exports=r},3020:(e,t,n)=>{"use strict";var r=n(5390),i=n(5744),a=n(2962),l=n(3579),o=n(6540);t.LinkPlugin=function({validateUrl:e}){let[t]=i.useLexicalComposerContext();return o.useEffect((()=>{if(!t.hasNodes([r.LinkNode]))throw Error("LinkPlugin: LinkNode not registered on editor");return a.mergeRegister(t.registerCommand(r.TOGGLE_LINK_COMMAND,(t=>{if(null===t)return r.toggleLink(t),!0;if("string"==typeof t)return!(void 0!==e&&!e(t)||(r.toggleLink(t),0));let{url:n,target:i,rel:a,title:l}=t;return r.toggleLink(n,{rel:a,target:i,title:l}),!0}),l.COMMAND_PRIORITY_LOW),void 0!==e?t.registerCommand(l.PASTE_COMMAND,(n=>{let i=l.$getSelection();if(!l.$isRangeSelection(i)||i.isCollapsed()||!(n instanceof ClipboardEvent)||null==n.clipboardData)return!1;let a=n.clipboardData.getData("text");return!!e(a)&&!i.getNodes().some((e=>l.$isElementNode(e)))&&(t.dispatchCommand(r.TOGGLE_LINK_COMMAND,a),n.preventDefault(),!0)}),l.COMMAND_PRIORITY_LOW):()=>{})}),[t,e]),null}},8706:(e,t,n)=>{"use strict";const r=n(475);e.exports=r},475:(e,t,n)=>{"use strict";var r=n(4354),i=n(5744),a=n(6540),l=n(2962),o=n(3579);t.ListPlugin=function(){let[e]=i.useLexicalComposerContext();return a.useEffect((()=>{if(!e.hasNodes([r.ListNode,r.ListItemNode]))throw Error("ListPlugin: ListNode and/or ListItemNode not registered on editor")}),[e]),function(e){a.useEffect((()=>l.mergeRegister(e.registerCommand(r.INSERT_ORDERED_LIST_COMMAND,(()=>(r.insertList(e,"number"),!0)),o.COMMAND_PRIORITY_LOW),e.registerCommand(r.INSERT_UNORDERED_LIST_COMMAND,(()=>(r.insertList(e,"bullet"),!0)),o.COMMAND_PRIORITY_LOW),e.registerCommand(r.REMOVE_LIST_COMMAND,(()=>(r.removeList(e),!0)),o.COMMAND_PRIORITY_LOW),e.registerCommand(o.INSERT_PARAGRAPH_COMMAND,(()=>!!r.$handleListInsertParagraph()),o.COMMAND_PRIORITY_LOW))),[e])}(e),null}},6085:(e,t,n)=>{"use strict";const r=n(6746);e.exports=r},6746:(e,t,n)=>{"use strict";var r=n(7502),i=n(5744),a=n(8795),l=n(6540);let o=[{dependencies:[a.HorizontalRuleNode],export:e=>a.$isHorizontalRuleNode(e)?"***":null,regExp:/^(---|\*\*\*|___)\s?$/,replace:(e,t,n,r)=>{t=a.$createHorizontalRuleNode(),r||null!=e.getNextSibling()?e.replace(t):e.insertBefore(t),t.selectNext()},type:"element"},...r.TRANSFORMERS];t.DEFAULT_TRANSFORMERS=o,t.MarkdownShortcutPlugin=function({transformers:e=o}){let[t]=i.useLexicalComposerContext();return l.useEffect((()=>r.registerMarkdownShortcuts(t,e)),[t,e]),null}},8816:(e,t,n)=>{"use strict";const r=n(9360);e.exports=r},9360:(e,t,n)=>{"use strict";var r=n(5744),i=n(6540),a="undefined"!=typeof window&&void 0!==window.document&&void 0!==window.document.createElement?i.useLayoutEffect:i.useEffect;t.OnChangePlugin=function({ignoreHistoryMergeTagChange:e=!0,ignoreSelectionChange:t=!1,onChange:n}){let[i]=r.useLexicalComposerContext();return a((()=>{if(n)return i.registerUpdateListener((({editorState:r,dirtyElements:a,dirtyLeaves:l,prevEditorState:o,tags:s})=>{t&&0===a.size&&0===l.size||e&&s.has("history-merge")||o.isEmpty()||n(r,i,s)}))}),[i,e,t,n]),null}},7451:(e,t,n)=>{"use strict";const r=n(5048);e.exports=r},5048:(e,t,n)=>{"use strict";var r=n(5744),i=n(976),a=n(6540),l=n(454),o=n(2962),s=n(3342),u=n(7766),c=n(1381),d="undefined"!=typeof window&&void 0!==window.document&&void 0!==window.document.createElement?a.useLayoutEffect:a.useEffect;function f(e){return e.getEditorState().read(l.$canShowPlaceholderCurry(e.isComposing()))}function p({content:e}){var[t]=r.useLexicalComposerContext();t=function(e){let[t,n]=a.useState((()=>f(e)));return d((()=>{function t(){let t=f(e);n(t)}return t(),o.mergeRegister(e.registerUpdateListener((()=>{t()})),e.registerEditableListener((()=>{t()})))}),[e]),t}(t);let n=i();return t?"function"==typeof e?e(n):e:null}t.RichTextPlugin=function({contentEditable:e,placeholder:t,ErrorBoundary:n}){let[i]=r.useLexicalComposerContext();return n=function(e,t){let[n,r]=a.useState((()=>e.getDecorators()));return d((()=>e.registerDecoratorListener((e=>{s.flushSync((()=>{r(e)}))}))),[e]),a.useEffect((()=>{r(e.getDecorators())}),[e]),a.useMemo((()=>{let r=[],i=Object.keys(n);for(let l=0;le._onError(t)},a.createElement(a.Suspense,{fallback:null},n[o])),c=e.getElementByKey(o);null!==c&&r.push(s.createPortal(u,c,o))}return r}),[t,n,e])}(i,n),function(e){d((()=>o.mergeRegister(c.registerRichText(e),u.registerDragonSupport(e))),[e])}(i),a.createElement(a.Fragment,null,e,a.createElement(p,{content:t}),n)}},976:(e,t,n)=>{"use strict";const r=n(3121);e.exports=r},3121:(e,t,n)=>{"use strict";var r=n(5744),i=n(6540),a="undefined"!=typeof window&&void 0!==window.document&&void 0!==window.document.createElement?i.useLayoutEffect:i.useEffect;function l(e){return{initialValueFn:()=>e.isEditable(),subscribe:t=>e.registerEditableListener(t)}}e.exports=function(){return function(e){let[t]=r.useLexicalComposerContext(),n=i.useMemo((()=>e(t)),[t,e]),l=i.useRef(n.initialValueFn()),[o,s]=i.useState(l.current);return a((()=>{let{initialValueFn:e,subscribe:t}=n,r=e();return l.current!==r&&(l.current=r,s(r)),t((e=>{l.current=e,s(e)}))}),[n,e]),o}(l)}},9028:(e,t,n)=>{"use strict";const r=n(3317);e.exports=r},3317:(e,t,n)=>{"use strict";var r=n(5744),i=n(3579),a=n(6540);function l(e,t){return e.getEditorState().read((()=>{let e=i.$getNodeByKey(t);return null!==e&&e.isSelected()}))}t.useLexicalNodeSelection=function(e){let[t]=r.useLexicalComposerContext(),[n,o]=a.useState((()=>l(t,e)));return a.useEffect((()=>{let n=!0,r=t.registerUpdateListener((()=>{n&&o(l(t,e))}));return()=>{n=!1,r()}}),[t,e]),[n,a.useCallback((n=>{t.update((()=>{let t=i.$getSelection();i.$isNodeSelection(t)||(t=i.$createNodeSelection(),i.$setSelection(t)),n?t.add(e):t.delete(e)}))}),[t,e]),a.useCallback((()=>{t.update((()=>{const e=i.$getSelection();i.$isNodeSelection(e)&&e.clear()}))}),[t])]}},1381:(e,t,n)=>{"use strict";const r=n(1386);e.exports=r},1386:(e,t,n)=>{"use strict";var r=n(896),i=n(1372),a=n(2962),l=n(3579);function o(e,t){return void 0!==document.caretRangeFromPoint?null===(e=document.caretRangeFromPoint(e,t))?null:{node:e.startContainer,offset:e.startOffset}:"undefined"!==document.caretPositionFromPoint?null===(e=document.caretPositionFromPoint(e,t))?null:{node:e.offsetNode,offset:e.offset}:null}let s="undefined"!=typeof window&&void 0!==window.document&&void 0!==window.document.createElement,u=s&&"documentMode"in document?document.documentMode:null;s&&/Mac|iPod|iPhone|iPad/.test(navigator.platform),s&&/^(?!.*Seamonkey)(?=.*Firefox).*/i.test(navigator.userAgent);let c=!(!s||!("InputEvent"in window)||u)&&"getTargetRanges"in new window.InputEvent("input"),d=s&&/Version\/[\d.]+.*Safari/.test(navigator.userAgent),f=s&&/iPad|iPhone|iPod/.test(navigator.userAgent)&&!window.MSStream,p=s&&/^(?=.*Chrome).*/i.test(navigator.userAgent),g=s&&/AppleWebKit\/[\d.]+/.test(navigator.userAgent)&&!p,h=l.createCommand("DRAG_DROP_PASTE_FILE");class m extends l.ElementNode{static getType(){return"quote"}static clone(e){return new m(e.__key)}constructor(e){super(e)}createDOM(e){let t=document.createElement("blockquote");return a.addClassNamesToElement(t,e.theme.quote),t}updateDOM(){return!1}static importDOM(){return{blockquote:()=>({conversion:E,priority:0})}}exportDOM(e){if(({element:e}=super.exportDOM(e)),e&&a.isHTMLElement(e)){this.isEmpty()&&e.append(document.createElement("br"));var t=this.getFormatType();e.style.textAlign=t,(t=this.getDirection())&&(e.dir=t)}return{element:e}}static importJSON(e){let t=y();return t.setFormat(e.format),t.setIndent(e.indent),t.setDirection(e.direction),t}exportJSON(){return{...super.exportJSON(),type:"quote"}}insertNewAfter(e,t){e=l.$createParagraphNode();let n=this.getDirection();return e.setDirection(n),this.insertAfter(e,t),e}collapseAtStart(){let e=l.$createParagraphNode();return this.getChildren().forEach((t=>e.append(t))),this.replace(e),!0}}function y(){return l.$applyNodeReplacement(new m)}class _ extends l.ElementNode{static getType(){return"heading"}static clone(e){return new _(e.__tag,e.__key)}constructor(e,t){super(t),this.__tag=e}getTag(){return this.__tag}createDOM(e){let t=this.__tag,n=document.createElement(t);return void 0!==(e=e.theme.heading)&&a.addClassNamesToElement(n,e[t]),n}updateDOM(){return!1}static importDOM(){return{h1:()=>({conversion:b,priority:0}),h2:()=>({conversion:b,priority:0}),h3:()=>({conversion:b,priority:0}),h4:()=>({conversion:b,priority:0}),h5:()=>({conversion:b,priority:0}),h6:()=>({conversion:b,priority:0}),p:e=>null!==(e=e.firstChild)&&v(e)?{conversion:()=>({node:null}),priority:3}:null,span:e=>v(e)?{conversion:()=>({node:N("h1")}),priority:3}:null}}exportDOM(e){if(({element:e}=super.exportDOM(e)),e&&a.isHTMLElement(e)){this.isEmpty()&&e.append(document.createElement("br"));var t=this.getFormatType();e.style.textAlign=t,(t=this.getDirection())&&(e.dir=t)}return{element:e}}static importJSON(e){let t=N(e.tag);return t.setFormat(e.format),t.setIndent(e.indent),t.setDirection(e.direction),t}exportJSON(){return{...super.exportJSON(),tag:this.getTag(),type:"heading",version:1}}insertNewAfter(e,t=!0){e=0<(e=e?e.anchor.offset:0)&&ee.append(t))),this.replace(e),!0}extractWithChild(){return!0}}function v(e){return"span"===e.nodeName.toLowerCase()&&"26pt"===e.style.fontSize}function b(e){let t=e.nodeName.toLowerCase(),n=null;return"h1"!==t&&"h2"!==t&&"h3"!==t&&"h4"!==t&&"h5"!==t&&"h6"!==t||(n=N(t),null!==e.style&&n.setFormat(e.style.textAlign)),{node:n}}function E(e){let t=y();return null!==e.style&&t.setFormat(e.style.textAlign),{node:t}}function N(e){return l.$applyNodeReplacement(new _(e))}function x(e){let t=null;if(e instanceof DragEvent?t=e.dataTransfer:e instanceof ClipboardEvent&&(t=e.clipboardData),null===t)return[!1,[],!1];var n=t.types;return e=n.includes("Files"),n=n.includes("text/html")||n.includes("text/plain"),[e,Array.from(t.files),n]}function C(e){var t=l.$getSelection();if(!l.$isRangeSelection(t))return!1;let n=new Set;t=t.getNodes();for(let l=0;l{const e=l.$getSelection();return!!l.$isNodeSelection(e)&&(e.clear(),!0)}),0),e.registerCommand(l.DELETE_CHARACTER_COMMAND,(e=>{const t=l.$getSelection();return!!l.$isRangeSelection(t)&&(t.deleteCharacter(e),!0)}),l.COMMAND_PRIORITY_EDITOR),e.registerCommand(l.DELETE_WORD_COMMAND,(e=>{const t=l.$getSelection();return!!l.$isRangeSelection(t)&&(t.deleteWord(e),!0)}),l.COMMAND_PRIORITY_EDITOR),e.registerCommand(l.DELETE_LINE_COMMAND,(e=>{const t=l.$getSelection();return!!l.$isRangeSelection(t)&&(t.deleteLine(e),!0)}),l.COMMAND_PRIORITY_EDITOR),e.registerCommand(l.CONTROLLED_TEXT_INSERTION_COMMAND,(t=>{const n=l.$getSelection();if("string"==typeof t)l.$isRangeSelection(n)?n.insertText(t):l.DEPRECATED_$isGridSelection(n);else{if(!l.$isRangeSelection(n)&&!l.DEPRECATED_$isGridSelection(n))return!1;const i=t.dataTransfer;null!=i?r.$insertDataTransferForRichText(i,n,e):l.$isRangeSelection(n)&&(t=t.data)&&n.insertText(t)}return!0}),l.COMMAND_PRIORITY_EDITOR),e.registerCommand(l.REMOVE_TEXT_COMMAND,(()=>{const e=l.$getSelection();return!!l.$isRangeSelection(e)&&(e.removeText(),!0)}),l.COMMAND_PRIORITY_EDITOR),e.registerCommand(l.FORMAT_TEXT_COMMAND,(e=>{const t=l.$getSelection();return!!l.$isRangeSelection(t)&&(t.formatText(e),!0)}),l.COMMAND_PRIORITY_EDITOR),e.registerCommand(l.FORMAT_ELEMENT_COMMAND,(e=>{var t=l.$getSelection();if(!l.$isRangeSelection(t)&&!l.$isNodeSelection(t))return!1;t=t.getNodes();for(const n of t)null!==(t=a.$findMatchingParent(n,(e=>l.$isElementNode(e)&&!e.isInline())))&&t.setFormat(e);return!0}),l.COMMAND_PRIORITY_EDITOR),e.registerCommand(l.INSERT_LINE_BREAK_COMMAND,(e=>{const t=l.$getSelection();return!!l.$isRangeSelection(t)&&(t.insertLineBreak(e),!0)}),l.COMMAND_PRIORITY_EDITOR),e.registerCommand(l.INSERT_PARAGRAPH_COMMAND,(()=>{const e=l.$getSelection();return!!l.$isRangeSelection(e)&&(e.insertParagraph(),!0)}),l.COMMAND_PRIORITY_EDITOR),e.registerCommand(l.INSERT_TAB_COMMAND,(()=>(l.$insertNodes([l.$createTabNode()]),!0)),l.COMMAND_PRIORITY_EDITOR),e.registerCommand(l.INDENT_CONTENT_COMMAND,(()=>C((e=>{const t=e.getIndent();e.setIndent(t+1)}))),l.COMMAND_PRIORITY_EDITOR),e.registerCommand(l.OUTDENT_CONTENT_COMMAND,(()=>C((e=>{const t=e.getIndent();0{var t=l.$getSelection();if(l.$isNodeSelection(t)&&!S(e.target)){if(0<(e=t.getNodes()).length)return e[0].selectPrevious(),!0}else if(l.$isRangeSelection(t)&&(t=l.$getAdjacentNode(t.focus,!0),!e.shiftKey&&l.$isDecoratorNode(t)&&!t.isIsolated()&&!t.isInline()))return t.selectPrevious(),e.preventDefault(),!0;return!1}),l.COMMAND_PRIORITY_EDITOR),e.registerCommand(l.KEY_ARROW_DOWN_COMMAND,(e=>{var t=l.$getSelection();if(l.$isNodeSelection(t)){if(0<(e=t.getNodes()).length)return e[0].selectNext(0,0),!0}else if(l.$isRangeSelection(t)){let n=t.focus;if("root"===n.key&&n.offset===l.$getRoot().getChildrenSize())return e.preventDefault(),!0;if(t=l.$getAdjacentNode(t.focus,!1),!e.shiftKey&&l.$isDecoratorNode(t)&&!t.isIsolated()&&!t.isInline())return t.selectNext(),e.preventDefault(),!0}return!1}),l.COMMAND_PRIORITY_EDITOR),e.registerCommand(l.KEY_ARROW_LEFT_COMMAND,(e=>{const t=l.$getSelection();if(l.$isNodeSelection(t)){var n=t.getNodes();if(0{const t=l.$getSelection();if(l.$isNodeSelection(t)&&!S(e.target)){var n=t.getNodes();if(0{if(S(t.target))return!1;const n=l.$getSelection();if(!l.$isRangeSelection(n))return!1;t.preventDefault(),({anchor:t}=n);const r=t.getNode();return n.isCollapsed()&&0===t.offset&&!l.$isRootNode(r)&&0{if(S(t.target))return!1;const n=l.$getSelection();return!!l.$isRangeSelection(n)&&(t.preventDefault(),e.dispatchCommand(l.DELETE_CHARACTER_COMMAND,!1))}),l.COMMAND_PRIORITY_EDITOR),e.registerCommand(l.KEY_ENTER_COMMAND,(t=>{const n=l.$getSelection();if(!l.$isRangeSelection(n))return!1;if(null!==t){if((f||d||g)&&c)return!1;if(t.preventDefault(),t.shiftKey)return e.dispatchCommand(l.INSERT_LINE_BREAK_COMMAND,!1)}return e.dispatchCommand(l.INSERT_PARAGRAPH_COMMAND,void 0)}),l.COMMAND_PRIORITY_EDITOR),e.registerCommand(l.KEY_ESCAPE_COMMAND,(()=>{const t=l.$getSelection();return!!l.$isRangeSelection(t)&&(e.blur(),!0)}),l.COMMAND_PRIORITY_EDITOR),e.registerCommand(l.DROP_COMMAND,(t=>{const[,n]=x(t);if(0{[e]=x(e);const t=l.$getSelection();return!(e&&!l.$isRangeSelection(t))}),l.COMMAND_PRIORITY_EDITOR),e.registerCommand(l.DRAGOVER_COMMAND,(e=>{var[t]=x(e);const n=l.$getSelection();return!(t&&!l.$isRangeSelection(n)||(null!==(t=o(e.clientX,e.clientY))&&(t=l.$getNearestNodeFromDOMNode(t.node),l.$isDecoratorNode(t)&&e.preventDefault()),0))}),l.COMMAND_PRIORITY_EDITOR),e.registerCommand(l.SELECT_ALL_COMMAND,(()=>(l.$selectAll(),!0)),l.COMMAND_PRIORITY_EDITOR),e.registerCommand(l.COPY_COMMAND,(t=>(r.copyToClipboard(e,a.objectKlassEquals(t,ClipboardEvent)?t:null),!0)),l.COMMAND_PRIORITY_EDITOR),e.registerCommand(l.CUT_COMMAND,(t=>(async function(e,t){await r.copyToClipboard(t,a.objectKlassEquals(e,ClipboardEvent)?e:null),t.update((()=>{let e=l.$getSelection();l.$isRangeSelection(e)?e.removeText():l.$isNodeSelection(e)&&e.getNodes().forEach((e=>e.remove()))}))}(t,e),!0)),l.COMMAND_PRIORITY_EDITOR),e.registerCommand(l.PASTE_COMMAND,(t=>{const[,n,i]=x(t);if(0{let n=l.$getSelection(),i=e instanceof InputEvent||e instanceof KeyboardEvent?null:e.clipboardData;null!=i&&(l.$isRangeSelection(n)||l.DEPRECATED_$isGridSelection(n))&&r.$insertDataTransferForRichText(i,n,t)}),{tag:"paste"})}(t,e),0))}),l.COMMAND_PRIORITY_EDITOR))}},1372:(e,t,n)=>{"use strict";const r=n(125);e.exports=r},125:(e,t,n)=>{"use strict";var r=n(3579);let i=new Map;function a(e){for(;null!=e;){if(e.nodeType===Node.TEXT_NODE)return e;e=e.firstChild}return null}function l(e){let t=e.parentNode;if(null==t)throw Error("Should never happen");return[t,Array.from(t.childNodes).indexOf(e)]}function o(e){let t={};e=e.split(";");for(let n of e)if(""!==n){let[e,r]=n.split(/:([^]+)/);t[e.trim()]=r.trim()}return t}function s(e){let t=i.get(e);return void 0===t&&(t=o(e),i.set(e,t)),t}function u(e,t){var n=s("getStyle"in e?e.getStyle():e.style);n=function(e){let t="";for(let n in e)n&&(t+=`${n}: ${e[n]};`);return t}(t=Object.entries(t).reduce(((e,[t,n])=>(null===n?delete e[t]:e[t]=n,e)),{...n})),e.setStyle(n),i.set(n,t)}function c(e){for(;null!==e&&!r.$isRootOrShadowRoot(e);){let t=e.getLatest(),n=e.getParent();0===t.getChildrenSize()&&e.remove(!0),e=n}}function d(e,t,n,i,a=null){if(0!==t.length){var l=t[0],o=new Map,s=[];(l=r.$isElementNode(l)?l:l.getParentOrThrow()).isInline()&&(l=l.getParentOrThrow());for(var u=!1;null!==l;){var d=l.getPreviousSibling();if(null!==d){l=d,u=!0;break}if(l=l.getParentOrThrow(),r.$isRootOrShadowRoot(l))break}d=new Set;for(var f=0;f{e.append(t),g.add(t.getKey()),r.$isElementNode(t)&&t.getChildrenKeys().forEach((e=>g.add(e)))})),c(h)}}else d.has(p.getKey())&&((h=i()).setFormat(p.getFormatType()),h.setIndent(p.getIndent()),s.push(h),p.remove(!0))}if(null!==a)for(t=0;td?d:g)!==(t="element"===y?c:g>d?g:d)&&(0===s&&t===c?(u(l,n),l.select(s,t)):(i=l.splitText(s,t),u(i=0===s?i[0]:i[1],n),i.select(0,t-s)));else for(r.$isTextNode(l)&&ss?s:o,r=o>s?o:s):l?(n=a?s:o,r=void 0):i&&(n=0,r=a=a?o:s),t.__text=t.__text.slice(n,r)}}return t},t.$wrapNodes=function(e,t,n=null){var i=e.getNodes();let a=i.length;var l=e.anchor;if(0===a||1===a&&"element"===l.type&&0===l.getNode().getChildrenSize()){i=(e="text"===l.type?l.getNode().getParentOrThrow():l.getNode()).getChildren();let r=t();r.setFormat(e.getFormatType()),r.setIndent(e.getIndent()),i.forEach((e=>r.append(e))),n&&(r=n.append(r)),e.replace(r)}else{l=null;var o=[];for(let s=0;s{let n=e.top-t.top;return 3>=Math.abs(n)?e.left-t.left:n}));for(let a=0;al.top&&r.left+r.width>l.left||o?(t.splice(a--,1),i--):r=l}return t},t.getStyleObjectFromCSS=s,t.trimTextContentFromAnchor=function(e,t,n){let i=t.getNode();if(r.$isElementNode(i)){var a=i.getDescendantByIndex(t.offset);null!==a&&(i=a)}for(;0=a)s=i.getParent(),i.remove(),null==s||0!==s.getChildrenSize()||r.$isRootNode(s)||s.remove(),n-=a+o,i=l;else{let u=i.getKey();o=e.getEditorState().read((()=>{const e=r.$getNodeByKey(u);return r.$isTextNode(e)&&e.isSimpleText()?e.getTextContent():null})),l=a-n;let c=s.slice(0,l);null!==o&&o!==s?(n=r.$getPreviousSelection(),a=i,i.isSimpleText()?i.setTextContent(o):(a=r.$createTextNode(o),i.replace(a)),r.$isRangeSelection(n)&&n.isCollapsed()&&(n=n.anchor.offset,a.select(n,n))):i.isSimpleText()?(o=t.key===u,(s=t.offset){"use strict";const r=n(9855);e.exports=r},9855:(e,t,n)=>{"use strict";var r=n(3579);function i(e,t=!0){return!e&&(e=a(),t&&(e=e.trim()),""===e)}function a(){return r.$getRoot().getTextContent()}function l(e){if(!i(e,!1))return!1;let t=(e=r.$getRoot().getChildren()).length;if(1l(e)},t.$findTextIntersectionFromCharacters=function(e,t){var n=e.getFirstChild();e=0;e:for(;null!==n;){if(r.$isElementNode(n)){var i=n.getFirstChild();if(null!==i){n=i;continue}}else if(r.$isTextNode(n)){if(e+(i=n.getTextContentSize())>t)return{node:n,offset:t-e};e+=i}if(null===(i=n.getNextSibling())){for(n=n.getParent();null!==n;){if(null!==(i=n.getNextSibling())){n=i;continue e}n=n.getParent()}break}n=i}return null},t.$isRootTextContentEmpty=i,t.$isRootTextContentEmptyCurry=function(e,t){return()=>i(e,t)},t.$rootTextContent=a,t.registerLexicalTextEntity=function(e,t,n,i){let a=e=>{const t=r.$createTextNode(e.getTextContent());t.setFormat(e.getFormat()),e.replace(t)};return[e.registerNodeTransform(r.TextNode,(e=>{if(e.isSimpleText()){var l=e.getPreviousSibling(),o=e.getTextContent(),s=e;if(r.$isTextNode(l)){var u=l.getTextContent(),c=t(u+o);if(l instanceof n){if(null===c||0!==l.getLatest().__mode)return void a(l);if(0<(c=c.end-u.length))return s=u+(s=o.slice(0,c)),l.select(),l.setTextContent(s),void(c===o.length?e.remove():(l=o.slice(c),e.setTextContent(l)))}else if(null===c||c.start{var i=e.getTextContent();const l=t(i);null===l||0!==l.start?a(e):i.length>l.end?e.splitText(l.end):(i=e.getPreviousSibling(),r.$isTextNode(i)&&i.isTextEntity()&&(a(i),a(e)),i=e.getNextSibling(),r.$isTextNode(i)&&i.isTextEntity()&&(a(i),e instanceof n&&a(e)))}))]}},2962:(e,t,n)=>{"use strict";const r=n(5739);e.exports=r},5739:(e,t,n)=>{"use strict";var r=n(1372),i=n(3579);function a(e,t){for(let n of t)if(e.type.startsWith(n))return!0;return!1}function l(e,t){for(;e!==i.$getRoot()&&null!=e;){if(t(e))return e;e=e.getParent()}return null}t.$splitNode=i.$splitNode,t.isHTMLAnchorElement=i.isHTMLAnchorElement,t.isHTMLElement=i.isHTMLElement,t.$dfs=function(e,t){let n=[];e=(e||i.$getRoot()).getLatest(),t=t||(i.$isElementNode(e)?e.getLastDescendant():e);for(var r=e,a=0;null!==(r=r.getParent());)a++;for(r=a;null!==e&&!e.is(t);)if(n.push({depth:r,node:e}),i.$isElementNode(e)&&0i.$isElementNode(e)&&!e.isInline()));return i.$isElementNode(t)||function(e){let t=new URLSearchParams;t.append("code",e);for(let e=1;e{"string"==typeof t&&(t=t.split(" ").filter((e=>""!==e)),e.classList.add(...t))}))},t.isMimeType=a,t.mediaFileReader=function(e,t){let n=e[Symbol.iterator]();return new Promise(((e,r)=>{let i=[],l=()=>{const{done:o,value:s}=n.next();if(o)return e(i);const u=new FileReader;u.addEventListener("error",r),u.addEventListener("load",(()=>{const e=u.result;"string"==typeof e&&i.push({file:s,result:e}),l()})),a(s,t)?u.readAsDataURL(s):l()};l()}))},t.mergeRegister=function(...e){return()=>{e.forEach((e=>e()))}},t.objectKlassEquals=function(e,t){return null!==e&&Object.getPrototypeOf(e).constructor.name===t.name},t.registerNestedElementResolver=function(e,t,n,r){return e.registerNodeTransform(t,(e=>{e:{for(var i=e.getChildren(),a=0;a{"string"==typeof t&&e.classList.remove(...t.split(" "))}))}},9536:(e,t,n)=>{(t=n(6314)(!1)).push([e.id,"/* container / controls */\n.rich-text-wrapper {\n border: 2px solid #d9d9d9;\n border-radius: 0.25rem;\n}\n.editor-input {\n padding: 1rem;\n}\n\n.toolbar-container {\n background-color: #f7f7f7;\n border-bottom: 1px solid #ddd;\n border-top-left-radius: 8px;\n border-top-right-radius: 8px;\n padding: 10px;\n position: sticky;\n top: 0;\n z-index: 100;\n}\nbutton.active.toolbar-item.peer {\n background: #d3e3fd;\n}\n.editor:focus-visible {\n outline: none;\n border: none;\n}\n.toolbar-item {\n margin: 0.15rem;\n padding: 0.5rem 0.15rem 0.15rem 0.15rem;\n width: 32px;\n display: inline-block;\n text-align: center;\n border-radius: 4px;\n}\n.toolbar-item:hover {\n background: rgba(68, 71, 70, 0.08);\n}\n.double.toolbar-item .svg-inline--fa {\n transform: scale(0.85);\n padding: 0px;\n padding-bottom: 0.15rem;\n}\n/* rendered markup */\n.editor p {\n margin: 0 0 1.5rem 0;\n}\n\n.editor-heading-h1 {\n font-size: 27px;\n line-height: 35px;\n font-weight: bold;\n color: #0b0c0c;\n margin: 0 0 1.5rem 0;\n}\n.editor-heading-h2 {\n line-height: 26px;\n color: #0b0c0c;\n font-size: 24px;\n font-weight: bold;\n margin: 0 0 1.5rem 0;\n}\n\n.editor-heading-h3 {\n line-height: 26px;\n color: #0b0c0c;\n font-size: 24px;\n font-weight: bold;\n margin: 2rem 0 1.5rem 0;\n}\n\nul.editor-list-ul {\n margin: 0 0 1.5rem 20px;\n padding: 0;\n list-style-type: disc;\n}\n\nol.editor-list-ol {\n margin: 0 0 1.5rem 20px;\n padding: 0;\n list-style-type: decimal;\n}\n\nol li.editor-listitem,\nul li.editor-listitem {\n padding-left: 0.5rem;\n}\n\nli.editor-nested-listitem {\n list-style: none;\n}\n/* Link editor */\n.link-editor {\n position: absolute;\n top: 0;\n left: 0;\n z-index: 10;\n max-width: 400px;\n width: 100%;\n background-color: #fff;\n border: 2px solid black;\n border-radius: 8px;\n}\n\n.link-editor button.active,\n.toolbar button.active {\n background-color: #fff;\n}\n\n.link-editor .link-input {\n display: inline-block;\n width: calc(100% - 24px);\n box-sizing: border-box;\n margin: 8px 12px;\n padding: 8px 12px;\n border-radius: 8px;\n background-color: #eee;\n font-size: 15px;\n color: #050505;\n border: 0;\n outline: 0;\n position: relative;\n font-family: inherit;\n}\n\n.link-editor button.link-edit {\n background-size: 16px;\n background-position: center;\n background-repeat: no-repeat;\n width: 35px;\n vertical-align: -0.25em;\n position: absolute;\n right: 0;\n top: 0;\n bottom: 0;\n cursor: pointer;\n}\n\n.link-editor .link-input span {\n text-decoration: underline;\n display: block;\n white-space: nowrap;\n overflow: hidden;\n margin-right: 30px;\n text-overflow: ellipsis;\n}\n\n.link-editor .font-size-wrapper,\n.link-editor .font-family-wrapper {\n display: flex;\n margin: 0 4px;\n}\n\n.link-editor select {\n padding: 6px;\n border: none;\n background-color: #00000013;\n border-radius: 4px;\n}\n\n/* TODO: Update tailwind. These classes are here because they didn't exist in 1.9.6 */\n.text-sm {\n font-size: 16px;\n line-height: 22px;\n}\n\n.peer:focus~.peer-focus\\:visible, .peer:hover~.peer-hover\\:visible {\n visibility: visible;\n}\n.after\\:content-\\[\\'\\'\\]:after {\n --tw-content: \"\";\n content: var(--tw-content);\n}\n.after\\:border-t-gray-700:after {\n --tw-border-opacity: 1;\n border-top-color: rgb(74 85 104/var(--tw-border-opacity));\n content: var(--tw-content);\n}\n.after\\:border-b-transparent:after {\n border-bottom-color: transparent;\n content: var(--tw-content);\n}\n.after\\:border-x-transparent:after {\n border-left-color: transparent;\n border-right-color: transparent;\n content: var(--tw-content);\n}\n.after\\:border-8:after {\n border-width: 8px;\n content: var(--tw-content);\n}\n.after\\:-translate-x-1\\/2:after {\n --tw-translate-x: -50%;\n content: var(--tw-content);\n -webkit-transform: translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y));\n transform: translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y));\n}\n.after\\:top-\\[100\\%\\]:after {\n content: var(--tw-content);\n top: 100%;\n}\n.after\\:left-1\\/2:after {\n content: var(--tw-content);\n left: 50%;\n}\n.after\\:absolute:after {\n content: var(--tw-content);\n position: absolute;\n}\n\n.-top-10 {\n top: -4rem;\n}\n\n.-left-14 {\n left: -5.5rem;\n}\n\n.w-36 {\n width: 13rem;\n}\n",""]),e.exports=t},6314:e=>{"use strict";e.exports=function(e){var t=[];return t.toString=function(){return this.map((function(t){var n=function(e,t){var n,r,i,a=e[1]||"",l=e[3];if(!l)return a;if(t&&"function"==typeof btoa){var o=(n=l,r=btoa(unescape(encodeURIComponent(JSON.stringify(n)))),i="sourceMappingURL=data:application/json;charset=utf-8;base64,".concat(r),"/*# ".concat(i," */")),s=l.sources.map((function(e){return"/*# sourceURL=".concat(l.sourceRoot||"").concat(e," */")}));return[a].concat(s).concat([o]).join("\n")}return[a].join("\n")}(t,e);return t[2]?"@media ".concat(t[2]," {").concat(n,"}"):n})).join("")},t.i=function(e,n,r){"string"==typeof e&&(e=[[null,e,""]]);var i={};if(r)for(var a=0;a{"use strict";const r=n(9656);e.exports=r},9656:(e,t)=>{"use strict";let n={},r={},i={},a={},l={},o={},s={},u={},c={},d={},f={},p={},g={},h={},m={},y={},_={},v={},b={},E={},N={},x={},C={},S={},T={},k={},w={},O={},R={},A={},D={},M={},L={},P={},I={},$={};function F(e){let t=new URLSearchParams;t.append("code",e);for(let e=1;e{let i=rr()||function(e){return e.getEditorState().read((()=>{let e=rr();return null!==e?e.clone():null}))}(e);var a=new Map,l=e.getRootElement(),o=e._editorState,s=e._blockCursorElement;let u=!1,c="";for(var d=0;d{se(e,t,n)}))}function de(e,t){let n=e.__mode,r=e.__format;e=e.__style;let i=t.__mode,a=t.__format;return t=t.__style,!(null!==n&&n!==i||null!==r&&r!==a||null!==e&&e!==t)}function fe(e,t){let n=e.mergeWithSibling(t),r=br()._normalizedNodes;return r.add(e.__key),r.add(t.__key),n}function pe(e){if(""===e.__text&&e.isSimpleText()&&!e.isUnmergeable())e.remove();else{for(var t;null!==(t=e.getPreviousSibling())&&An(t)&&t.isSimpleText()&&!t.isUnmergeable();){if(""!==t.__text){de(t,e)&&(e=fe(t,e));break}t.remove()}for(var n;null!==(n=e.getNextSibling())&&An(n)&&n.isSimpleText()&&!n.isUnmergeable();){if(""!==n.__text){de(e,n)&&fe(e,n);break}n.remove()}}}function ge(e){return he(e.anchor),he(e.focus),e}function he(e){for(;"element"===e.type;){var t=e.getNode(),n=e.offset;if(n===t.getChildrenSize()?(t=t.getChildAtIndex(n-1),n=!0):(t=t.getChildAtIndex(n),n=!1),An(t)){e.set(t.__key,n?t.getTextContentSize():0,"text");break}if(!Mr(t))break;e.set(t.__key,n?t.getChildrenSize():0,"element")}}let me=1,ye="function"==typeof queueMicrotask?queueMicrotask:e=>{Promise.resolve().then(e)};function _e(e){let t=document.activeElement;if(null===t)return!1;let n=t.nodeName;return Ar(De(e))&&("INPUT"===n||"TEXTAREA"===n||"true"===t.contentEditable&&null==t.__lexicalEditor)}function ve(e,t,n){let r=e.getRootElement();try{return null!==r&&r.contains(t)&&r.contains(n)&&null!==t&&!_e(t)&&be(t)===e}catch(e){return!1}}function be(e){for(;null!=e;){let t=e.__lexicalEditor;if(null!=t)return t;e=qe(e)}return null}function Ee(e){return e.isToken()||e.isSegmented()}function Ne(e){for(;null!=e;){if(3===e.nodeType)return e;e=e.firstChild}return null}function xe(e,t,n){return!(e&(t=X[t]))||null!==n&&n&t?null===n||n&t?e|t:e:e^t}function Ce(e){return An(e)||hn(e)||Ar(e)}function Se(e,t){if(null!=t)e.__key=t;else{_r(),99Pe().getTextContent()))}function Pe(){return vr()._nodeMap.get("root")}function Ie(e){_r();let t=vr();null!==e&&(e.dirty=!0,e._cachedNodes=null),t._selection=e}function $e(e){var t,n=br();e:{for(t=e;null!=t;){let e=t[`__lexicalKey_${n._key}`];if(void 0!==e){t=e;break e}t=qe(t)}t=null}return null===t?e===(n=n.getRootElement())?Re("root"):null:Re(t)}function Fe(e){return/[\uD800-\uDBFF][\uDC00-\uDFFF]/g.test(e)}function ze(e){let t=[];for(;null!==e;)t.push(e),e=e._parentEditor;return t}function Be(){return Math.random().toString(36).replace(/[^a-z]+/g,"").substr(0,5)}function Ue(e,t,n){if(null!==(t=lt(t._window))){var r=t.anchorNode,{anchorOffset:i,focusOffset:a}=t;null!==r&&(t=3===r.nodeType?r.nodeValue:null,r=De(r),null!==t&&An(r))&&(t===G&&n&&(t=n,a=i=n.length),null!==t&&We(r,t,i,a,e))}}function We(e,t,n,r,i){let a=e;if(a.isAttached()&&(i||!a.isDirty())){let u=a.isComposing(),c=t;if((u||i)&&t[t.length-1]===G&&(c=t.slice(0,-1)),t=a.getTextContent(),i||c!==t)if(""===c)if(we(null),K||j||V)a.remove();else{let e=br();setTimeout((()=>{e.update((()=>{a.isAttached()&&a.remove()}))}),20)}else{i=a.getParent(),t=ir();var l=a.getTextContentSize(),o=Oe(),s=a.getKey();a.isToken()||null!==o&&s===o&&!u||Bn(t)&&(null!==i&&!i.canInsertTextBefore()&&0===t.anchor.offset||t.anchor.key===e.__key&&0===t.anchor.offset&&!a.canInsertTextBefore()||t.focus.key===e.__key&&t.focus.offset===l&&!a.canInsertTextAfter())?a.markDirty():(Bn(e=rr())&&null!==n&&null!==r&&(e.setTextNodeRange(a,n,a,r),a.isSegmented()&&(n=Rn(n=a.getTextContent()),a.replace(n),a=n)),a.setTextContent(c))}}}function He(e,t){void 0===e.__lexicalClassNameCache&&(e.__lexicalClassNameCache={});let n=e.__lexicalClassNameCache,r=n[t];return void 0!==r?r:"string"==typeof(e=e[t])?(e=e.split(" "),n[t]=e):e}function Ke(e,t,n,r,i){0!==n.size&&(n=r.__type,r=r.__key,void 0===(t=t.get(n))&&F(33,n),n=t.klass,void 0===(t=e.get(n))&&(t=new Map,e.set(n,t)),n="destroyed"===(e=t.get(r))&&"created"===i,(void 0===e||n)&&t.set(r,n?"updated":i))}function je(e,t,n){let r=e.getParent(),i=n;return null!==r&&(t&&0===n?(i=e.getIndexWithinParent(),e=r):t||n!==e.getChildrenSize()||(i=e.getIndexWithinParent()+1,e=r)),e.getChildAtIndex(t?i-1:i)}function Ye(e,t){var n=e.offset;return"element"===e.type?je(e=e.getNode(),t,n):(e=e.getNode(),t&&0===n||!t&&n===e.getTextContentSize()?null===(n=t?e.getPreviousSibling():e.getNextSibling())?je(e.getParentOrThrow(),t,e.getIndexWithinParent()+(t?0:1)):n:null)}function Ve(e){return"insertFromPaste"===(e=(e=Xe(e).event)&&e.inputType)||"insertFromPasteAsQuotation"===e}function Ge(e){return!Ir(e)&&!e.isLastChild()&&!e.isInline()}function Qe(e,t){return void 0===(e=e._keyToDOMMap.get(t))&&F(75,t),e}function qe(e){return null!==(e=e.assignedSlot||e.parentElement)&&11===e.nodeType?e.host:e}function Je(e,t){for(e=e.getParent();null!==e;){if(e.is(t))return!0;e=e.getParent()}return!1}function Xe(e){return null===(e=e._window)&&F(78),e}function Ze(e){for(e=e.getParentOrThrow();null!==e&&!et(e);)e=e.getParentOrThrow();return e}function et(e){return Ir(e)||Mr(e)&&e.isShadowRoot()}function tt(e){return Se(e=e.constructor.clone(e),null),e}function nt(e){var t=br();let n=e.constructor.getType();return void 0===(t=t._nodes.get(n))&&F(97),null!==(t=t.replace)?((t=t(e))instanceof e.constructor||F(98),t):e}function rt(e,t){!Ir(e=e.getParent())||Mr(t)||Ar(t)||F(99)}function it(e){return(Ar(e)||Mr(e)&&!e.canBeEmpty())&&!e.isInline()}function at(e,t,n){n.style.removeProperty("caret-color"),t._blockCursorElement=null,null!==(t=e.parentElement)&&t.removeChild(e)}function lt(e){return z?(e||window).getSelection():null}function ot(e,t){let n=e.getChildAtIndex(t);null==n&&(n=e),et(e)&&F(102);let r=e=>{const t=e.getParentOrThrow(),i=et(t),a=e!==n||i?tt(e):e;if(i)return e.insertAfter(a),[e,a,a];const[l,o,s]=r(t);return e=e.getNextSiblings(),s.append(a,...e),[l,o,a]},[i,a]=r(n);return[i,a]}function st(e,t){for(;e!==Pe()&&null!=e;){if(t(e))return e;e=e.getParent()}return null}function ut(e){let t=[],n=[e];for(;0t&&r&&e.classList.remove(n)}n=getComputedStyle(e).getPropertyValue("--lexical-indent-base-value")||"40px",e.style.setProperty("padding-inline-start",0===t?"":`calc(${t} * ${n})`)}function Dt(e,t){e=e.style,0===t?Rt(e,""):1===t?Rt(e,"left"):2===t?Rt(e,"center"):3===t?Rt(e,"right"):4===t?Rt(e,"justify"):5===t?Rt(e,"start"):6===t&&Rt(e,"end")}function Mt(e,t,n){let r=vt.get(e);void 0===r&&F(60);let i=r.createDOM(ft,pt);var a=pt._keyToDOMMap;if(i["__lexicalKey_"+pt._key]=e,a.set(e,i),An(r)?i.setAttribute("data-lexical-text","true"):Ar(r)&&i.setAttribute("data-lexical-decorator","true"),Mr(r)){if(e=r.__indent,a=r.__size,0!==e&&At(i,e),0!==a){--a,e=Ft(r,vt);var l=xt;xt="",Lt(e,r,0,a,i,null),$t(r,i),xt=l}0!==(e=r.__format)&&Dt(i,e),r.isInline()||It(null,r,i),Ge(r)&&(Nt+="\n\n",Ct+="\n\n")}else a=r.getTextContent(),Ar(r)?(null!==(l=r.decorate(pt,ft))&&Bt(e,l),i.contentEditable="false"):An(r)&&(r.isDirectionless()||(xt+=a)),Nt+=a,Ct+=a;return null!==t&&(null!=n||null!=(n=t.__lexicalLineBreak)?t.insertBefore(i,n):t.appendChild(i)),Ke(Et,gt,ht,r,"created"),i}function Lt(e,t,n,r,i,a){let l=Nt;for(Nt="";n<=r;++n)Mt(e[n],i,a);Ge(t)&&(Nt+="\n\n"),i.__lexicalTextContent=Nt,Nt=l+Nt}function Pt(e,t){return hn(e=t.get(e))||Ar(e)&&e.isInline()}function It(e,t,n){e=null!==e&&(0===e.__size||Pt(e.__last,_t)),t=0===t.__size||Pt(t.__last,vt),e?t||(null!=(t=n.__lexicalLineBreak)&&n.removeChild(t),n.__lexicalLineBreak=null):t&&(t=document.createElement("br"),n.__lexicalLineBreak=t,n.appendChild(t))}function $t(e,t){var n=t.__lexicalDir;if(t.__lexicalDirTextContent!==xt||n!==kt){let a=""===xt;if(a)var r=kt;else r=xt,r=q.test(r)?"rtl":J.test(r)?"ltr":null;if(r!==n){let l=t.classList,o=ft.theme;var i=null!==n?o[n]:void 0;let s=null!==r?o[r]:void 0;void 0!==i&&("string"==typeof i&&(i=i.split(" "),i=o[n]=i),l.remove(...i)),null===r||a&&"ltr"===r?t.removeAttribute("dir"):(void 0!==s&&("string"==typeof s&&(n=s.split(" "),s=o[r]=n),void 0!==s&&l.add(...s)),t.dir=r),Tt||(e.getWritable().__dir=r)}kt=r,t.__lexicalDirTextContent=xt,t.__lexicalDir=r}}function Ft(e,t){let n=[];for(e=e.__first;null!==e;){let r=t.get(e);void 0===r&&F(101),n.push(e),e=r.__next}return n}function zt(e,t){var n=_t.get(e),r=vt.get(e);void 0!==n&&void 0!==r||F(61);var i=St||yt.has(e)||mt.has(e);let a=Qe(pt,e);if(n===r&&!i)return Mr(n)?(void 0!==(r=a.__lexicalTextContent)&&(Nt+=r,Ct+=r),void 0!==(r=a.__lexicalDirTextContent)&&(xt+=r)):(r=n.getTextContent(),An(n)&&!n.isDirectionless()&&(xt+=r),Ct+=r,Nt+=r),a;if(n!==r&&i&&Ke(Et,gt,ht,r,"updated"),r.updateDOM(n,a,ft))return r=Mt(e,null,null),null===t&&F(62),t.replaceChild(r,a),wt(e,null),r;if(Mr(n)&&Mr(r)){if((e=r.__indent)!==n.__indent&&At(a,e),(e=r.__format)!==n.__format&&Dt(a,e),i){e=r,i=xt,xt="",t=Nt;var l=n.__size,o=e.__size;if(Nt="",1===l&&1===o){var s=n.__first,u=e.__first;if(s===u)zt(s,a);else{var c=Wt(s);u=Mt(u,null,null),a.replaceChild(u,c),wt(s,null)}}else{u=Ft(n,_t);var d=Ft(e,vt);if(0===l)0!==o&&Lt(d,e,0,o-1,a,null);else if(0===o)0!==l&&(Ot(u,0,l-1,(s=null==a.__lexicalLineBreak)?null:a),s&&(a.textContent=""));else{var f=u;u=d,d=l-1,l=o-1;let t=a.firstChild,n=0;for(o=0;n<=d&&o<=l;){var p=f[n];let e=u[o];if(p===e)t=Ut(zt(e,a)),n++,o++;else{void 0===s&&(s=new Set(f)),void 0===c&&(c=new Set(u));let r=c.has(p),i=s.has(e);r?(i?((p=Qe(pt,e))===t?t=Ut(zt(e,a)):(null!=t?a.insertBefore(p,t):a.appendChild(p),zt(e,a)),n++):Mt(e,a,t),o++):(t=Ut(Wt(p)),wt(p,a),n++)}}c=o>l,(s=n>d)&&!c?Lt(u,e,o,l,a,s=void 0===(s=u[l+1])?null:pt.getElementByKey(s)):c&&!s&&Ot(f,n,d,a)}}Ge(e)&&(Nt+="\n\n"),a.__lexicalTextContent=Nt,Nt=t+Nt,$t(e,a),xt=i,Ir(r)||r.isInline()||It(n,r,a)}Ge(r)&&(Nt+="\n\n",Ct+="\n\n")}else n=r.getTextContent(),Ar(r)?null!==(i=r.decorate(pt,ft))&&Bt(e,i):An(r)&&!r.isDirectionless()&&(xt+=n),Nt+=n,Ct+=n;return!Tt&&Ir(r)&&r.__cachedText!==Ct&&((r=r.getWritable()).__cachedText=Ct),a}function Bt(e,t){let n=pt._pendingDecorators,r=pt._decorators;if(null===n){if(r[e]===t)return;n=Me(pt)}n[e]=t}function Ut(e){return null!==(e=e.nextSibling)&&e===pt._blockCursorElement&&(e=e.nextSibling),e}function Wt(e){let t=bt.get(e);return void 0===t&&F(75,e),t}let Ht=Object.freeze({}),Kt=[["keydown",function(e,t){if(jt=e.timeStamp,Yt=e.keyCode,!t.isComposing()){var{keyCode:n,shiftKey:r,ctrlKey:l,metaKey:o,altKey:s}=e;if(!Tr(t,h,e)){if(39!==n||l||o||s)if(39!==n||s||r||!l&&!o)if(37!==n||l||o||s)if(37!==n||s||r||!l&&!o)if(38!==n||l||o)if(40!==n||l||o)if(13===n&&r)Xt=!0,Tr(t,N,e);else if(32===n)Tr(t,x,e);else if(U&&l&&79===n)e.preventDefault(),Xt=!0,Tr(t,a,!0);else if(13!==n||r){var u=U?!s&&!o&&(8===n||72===n&&l):!(l||s||o)&&8===n;u?8===n?Tr(t,C,e):(e.preventDefault(),Tr(t,i,!0)):27===n?Tr(t,S,e):(u=U?!(r||s||o)&&(46===n||68===n&&l):!(l||s||o)&&46===n)?46===n?Tr(t,T,e):(e.preventDefault(),Tr(t,i,!1)):8===n&&(U?s:l)?(e.preventDefault(),Tr(t,c,!0)):46===n&&(U?s:l)?(e.preventDefault(),Tr(t,c,!1)):U&&o&&8===n?(e.preventDefault(),Tr(t,d,!0)):U&&o&&46===n?(e.preventDefault(),Tr(t,d,!1)):66===n&&!s&&(U?o:l)?(e.preventDefault(),Tr(t,f,"bold")):85===n&&!s&&(U?o:l)?(e.preventDefault(),Tr(t,f,"underline")):73===n&&!s&&(U?o:l)?(e.preventDefault(),Tr(t,f,"italic")):9!==n||s||l||o?90===n&&!r&&(U?o:l)?(e.preventDefault(),Tr(t,p,void 0)):(u=U?90===n&&o&&r:89===n&&l||90===n&&l&&r)?(e.preventDefault(),Tr(t,g,void 0)):jn(t._editorState._selection)?(u=!r&&67===n&&(U?o:l))?(e.preventDefault(),Tr(t,D,e)):(u=!r&&88===n&&(U?o:l))?(e.preventDefault(),Tr(t,M,e)):65===n&&(U?o:l)&&(e.preventDefault(),Tr(t,L,e)):!W&&65===n&&(U?o:l)&&(e.preventDefault(),Tr(t,L,e)):Tr(t,k,e)}else Xt=!1,Tr(t,N,e);else Tr(t,E,e);else Tr(t,b,e);else Tr(t,v,e);else Tr(t,_,e);else Tr(t,y,e);else Tr(t,m,e);(l||r||s||o)&&Tr(t,$,e)}}}],["pointerdown",function(e,t){let n=e.target;e=e.pointerType,n instanceof Node&&"touch"!==e&&Or(t,(()=>{Ar(De(n))||(Jt=!0)}))}],["compositionstart",function(e,t){Or(t,(()=>{let n=rr();if(Bn(n)&&!t.isComposing()){let r=n.anchor,i=n.anchor.getNode();we(r.key),(e.timeStamp{ln(t,e.data)}))}],["input",function(e,t){e.stopPropagation(),Or(t,(()=>{var n=rr(),r=e.data,i=an(e);if(null!=r&&Bn(n)&&tn(n,i,r,e.timeStamp,!1)){Zt&&(ln(t,r),Zt=!1);var a=n.anchor,l=a.getNode();if(null===(i=lt(t._window)))return;let s=a.offset;(a=H&&!n.isCollapsed()&&An(l)&&null!==i.anchorNode)&&(a=(l=l.getTextContent().slice(0,s)+r+l.getTextContent().slice(s+n.focus.offset))===(3===(i=i.anchorNode).nodeType?i.nodeValue:null)),a||Tr(t,o,r),r=r.length,W&&1{let n=rr();var i=lt(t._window);let a=ir();if(i)if(Bn(n)){let t=n.anchor;var l=t.getNode();"element"===t.type&&0===t.offset&&n.isCollapsed()&&!Ir(l)&&1===Pe().getChildrenSize()&&l.getTopLevelElementOrThrow().isEmpty()&&null!==a&&n.is(a)?(i.removeAllRanges(),n.dirty=!0):3!==e.detail||n.isCollapsed()||l!==(i=n.focus.getNode())&&(Mr(l)?l.select(0):l.getParentOrThrow().select(0))}else"touch"===e.pointerType&&null!==(l=i.anchorNode)&&(1===(l=l.nodeType)||3===l)&&Ie(i=nr(a,i,t));Tr(t,r,e)}))}],["cut",Ht],["copy",Ht],["dragstart",Ht],["dragover",Ht],["dragend",Ht],["paste",Ht],["focus",Ht],["blur",Ht],["drop",Ht]];H&&Kt.push(["beforeinput",(e,t)=>function(e,t){let n=e.inputType,r=an(e);"deleteCompositionText"===n||W&&Ve(t)||"insertCompositionText"!==n&&Or(t,(()=>{let h=rr();if("deleteContentBackward"===n){if(null===h){var m=ir();if(!Bn(m))return;Ie(m.clone())}if(Bn(h))return void(229===Yt&&e.timeStamp{Or(t,(()=>{we(null)}))}),30),Bn(h)&&(m=h.anchor.getNode(),m.markDirty(),h.format=m.getFormat(),h.style=m.getStyle())):(e.preventDefault(),Tr(t,i,!0)))}if(Bn(h)){m=e.data,null!==Gt&&Ue(!1,t,Gt),h.dirty&&null===Gt||!h.isCollapsed()||Ir(h.anchor.getNode())||null===r||h.applyDOMRange(r),Gt=null;var y=h.focus,_=h.anchor.getNode();if(y=y.getNode(),"insertText"===n||"insertTranspose"===n)"\n"===m?(e.preventDefault(),Tr(t,a,!1)):"\n\n"===m?(e.preventDefault(),Tr(t,l,void 0)):null==m&&e.dataTransfer?(m=e.dataTransfer.getData("text/plain"),e.preventDefault(),h.insertRawText(m)):null!=m&&tn(h,r,m,e.timeStamp,!0)?(e.preventDefault(),Tr(t,o,m)):Gt=m,Vt=e.timeStamp;else switch(e.preventDefault(),n){case"insertFromYank":case"insertFromDrop":case"insertReplacementText":Tr(t,o,e);break;case"insertFromComposition":we(null),Tr(t,o,e);break;case"insertLineBreak":we(null),Tr(t,a,!1);break;case"insertParagraph":we(null),Xt&&!j?(Xt=!1,Tr(t,a,!1)):Tr(t,l,void 0);break;case"insertFromPaste":case"insertFromPasteAsQuotation":Tr(t,s,e);break;case"deleteByComposition":(function(e,t){return e!==t||Mr(e)||Mr(t)||!e.isToken()||!t.isToken()})(_,y)&&Tr(t,u,e);break;case"deleteByDrag":case"deleteByCut":Tr(t,u,e);break;case"deleteContent":Tr(t,i,!1);break;case"deleteWordBackward":Tr(t,c,!0);break;case"deleteWordForward":Tr(t,c,!1);break;case"deleteHardLineBackward":case"deleteSoftLineBackward":Tr(t,d,!0);break;case"deleteContentForward":case"deleteHardLineForward":case"deleteSoftLineForward":Tr(t,d,!1);break;case"formatStrikeThrough":Tr(t,f,"strikethrough");break;case"formatBold":Tr(t,f,"bold");break;case"formatItalic":Tr(t,f,"italic");break;case"formatUnderline":Tr(t,f,"underline");break;case"historyUndo":Tr(t,p,void 0);break;case"historyRedo":Tr(t,g,void 0)}}}))}(e,t)]);let jt=0,Yt=0,Vt=0,Gt=null,Qt=0,qt=!1,Jt=!1,Xt=!1,Zt=!1,en=[0,"",0,"root",0];function tn(e,t,n,r,i){let a=e.anchor,l=e.focus,o=a.getNode();var s=br();let u=lt(s._window),c=null!==u?u.anchorNode:null,d=a.key;s=s.getElementByKey(d);let f=n.length;return d!==l.key||!An(o)||(!i&&(!H||Vtf||Fe(n))&&a.offset!==l.offset&&!o.isComposing()||Ee(o)||o.isDirty()&&1{if(r){if(ve(t,i,l)){var a=rr();if(Bn(a)){var o=a.anchor,s=o.getNode();if(a.isCollapsed()){"Range"===e.type&&e.anchorNode===e.focusNode&&(a.dirty=!0);var u=Xe(t).event;u=u?u.timeStamp:performance.now();let[n,r,i,l,c]=en;u{var e=ir(),r=t.anchorNode;null!==r&&(1===(r=r.nodeType)||3===r)&&Ie(e=nr(e,t,n))})));var r=(e=(e=ze(n))[e.length-1])._key,i=sn.get(r),a=i||e;a!==n&&rn(t,a,!1),rn(t,n,!0),n!==e?sn.set(r,n):i&&sn.delete(r)}}}function cn(e,t,n){_r();var r=e.__key;let i=e.getParent();if(null!==i){var a=rr();if(Bn(a)&&Mr(e)){var{anchor:l,focus:o}=a,s=l.getNode(),u=o.getNode();Je(s,e)&&l.set(e.__key,0,"element"),Je(u,e)&&o.set(e.__key,0,"element")}if(u=!1,Bn(s=a)&&t){a=s.anchor;let t=s.focus;a.key===r&&(or(a,e,i,e.getPreviousSibling(),e.getNextSibling()),u=!0),t.key===r&&(or(t,e,i,e.getPreviousSibling(),e.getNextSibling()),u=!0)}else jn(s)&&t&&e.isSelected()&&e.selectPrevious();Bn(s)&&t&&!u?(r=e.getIndexWithinParent(),Te(e),ar(s,i,r,-1)):Te(e),n||et(i)||i.canBeEmpty()||!i.isEmpty()||cn(i,t),t&&Ir(i)&&i.isEmpty()&&i.selectEnd()}}class dn{static getType(){F(64,this.name)}static clone(){F(65,this.name)}constructor(e){this.__type=this.constructor.getType(),this.__next=this.__prev=this.__parent=null,Se(this,e)}getType(){return this.__type}isAttached(){for(var e=this.__key;null!==e;){if("root"===e)return!0;if(null===(e=Re(e)))break;e=e.__parent}return!1}isSelected(e){if(null==(e=e||rr()))return!1;let t=e.getNodes().some((e=>e.__key===this.__key));return(An(this)||!Bn(e)||"element"!==e.anchor.type||"element"!==e.focus.type||e.anchor.key!==e.focus.key||e.anchor.offset!==e.focus.offset)&&t}getKey(){return this.__key}getIndexWithinParent(){var e=this.getParent();if(null===e)return-1;e=e.getFirstChild();let t=0;for(;null!==e;){if(this.is(e))return t;t++,e=e.getNextSibling()}return-1}getParent(){let e=this.getLatest().__parent;return null===e?null:Re(e)}getParentOrThrow(){let e=this.getParent();return null===e&&F(66,this.__key),e}getTopLevelElement(){let e=this;for(;null!==e;){let t=e.getParent();if(et(t))return e;e=t}return null}getTopLevelElementOrThrow(){let e=this.getTopLevelElement();return null===e&&F(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:Re(e)}getPreviousSiblings(){let e=[];var t=this.getParent();if(null===t)return e;for(t=t.getFirstChild();null!==t&&!t.is(this);)e.push(t),t=t.getNextSibling();return e}getNextSibling(){let e=this.getLatest().__next;return null===e?null:Re(e)}getNextSiblings(){let e=[],t=this.getNextSibling();for(;null!==t;)e.push(t),t=t.getNextSibling();return e}getCommonAncestor(e){let t=this.getParents();var n=e.getParents();Mr(this)&&t.unshift(this),Mr(e)&&n.unshift(e),e=t.length;var r=n.length;if(0===e||0===r||t[e-1]!==n[r-1])return null;for(n=new Set(n),r=0;r{l.append(e)})),Bn(n)&&(Ie(n),t=n.anchor,n=n.focus,t.key===i&&In(t,l),n.key===i&&In(n,l)),Oe()===i&&we(a),l}insertAfter(e,t=!0){_r(),rt(this,e);var n=this.getWritable();let r=e.getWritable();var i=r.getParent();let a=rr();var l=!1,o=!1;if(null!==i){var s=e.getIndexWithinParent();Te(r),Bn(a)&&(o=i.__key,l=a.anchor,i=a.focus,l="element"===l.type&&l.key===o&&l.offset===s+1,o="element"===i.type&&i.key===o&&i.offset===s+1)}i=this.getNextSibling(),s=this.getParentOrThrow().getWritable();let u=r.__key,c=n.__next;return null===i?s.__last=u:i.getWritable().__prev=u,s.__size++,n.__next=u,r.__next=c,r.__prev=n.__key,r.__parent=n.__parent,t&&Bn(a)&&(ar(a,s,(t=this.getIndexWithinParent())+1),n=s.__key,l&&a.anchor.set(n,t+2,"element"),o&&a.focus.set(n,t+2,"element")),e}insertBefore(e,t=!0){_r(),rt(this,e);var n=this.getWritable();let r=e.getWritable(),i=r.__key;Te(r);let a=this.getPreviousSibling(),l=this.getParentOrThrow().getWritable(),o=n.__prev,s=this.getIndexWithinParent();return null===a?l.__first=i:a.getWritable().__next=i,l.__size++,n.__prev=i,r.__prev=o,r.__next=n.__key,r.__parent=n.__parent,n=rr(),t&&Bn(n)&&ar(n,t=this.getParentOrThrow(),s),e}isParentRequired(){return!1}createParentElementNode(){return Wr()}selectPrevious(e,t){_r();let n=this.getPreviousSibling(),r=this.getParentOrThrow();return null===n?r.select(0,0):Mr(n)?n.select():An(n)?n.select(e,t):(e=n.getIndexWithinParent()+1,r.select(e,e))}selectNext(e,t){_r();let n=this.getNextSibling(),r=this.getParentOrThrow();return null===n?r.select():Mr(n)?n.select(0,0):An(n)?n.select(e,t):(e=n.getIndexWithinParent(),r.select(e,e))}markDirty(){this.getWritable()}}class fn extends dn{static getType(){return"linebreak"}static clone(e){return new fn(e.__key)}constructor(e){super(e)}getTextContent(){return"\n"}createDOM(){return document.createElement("br")}updateDOM(){return!1}static importDOM(){return{br:e=>{let t,n,r=e.parentElement;return null!==r&&((t=r.firstChild)===e||t.nextSibling===e&&3===t.nodeType&&null!==(t.textContent||"").match(/^( |\t|\r?\n)+$/))&&((n=r.lastChild)===e||n.previousSibling===e&&3===n.nodeType&&null!==(n.textContent||"").match(/^( |\t|\r?\n)+$/))?null:{conversion:pn,priority:0}}}}static importJSON(){return gn()}exportJSON(){return{type:"linebreak",version:1}}}function pn(){return{node:gn()}}function gn(){return nt(new fn)}function hn(e){return e instanceof fn}function mn(e,t){return 16&t?"code":128&t?"mark":32&t?"sub":64&t?"sup":null}function yn(e,t){return 1&t?"strong":2&t?"em":"span"}function _n(e,t,n,r,i){e=r.classList,void 0!==(r=He(i,"base"))&&e.add(...r);let a=!1,l=8&t&&4&t;var o=8&n&&4&n;void 0!==(r=He(i,"underlineStrikethrough"))&&(o?(a=!0,l||e.add(...r)):l&&e.remove(...r));for(let s in X)o=X[s],void 0!==(r=He(i,s))&&(n&o&&(!a||"underline"!==s&&"strikethrough"!==s)?(!(t&o)||l&&"underline"===s||"strikethrough"===s)&&e.add(...r):t&o&&e.remove(...r))}function vn(e,t,n){let r=t.firstChild;if(e+=(n=n.isComposing())?G:"",null==r)t.textContent=e;else if((t=r.nodeValue)!==e)if(n||W){n=t.length;let i=e.length,a=0,l=0;for(;a({conversion:Sn,priority:0}),b:()=>({conversion:xn,priority:0}),code:()=>({conversion:On,priority:0}),em:()=>({conversion:On,priority:0}),i:()=>({conversion:On,priority:0}),s:()=>({conversion:On,priority:0}),span:()=>({conversion:Nn,priority:0}),strong:()=>({conversion:On,priority:0}),sub:()=>({conversion:On,priority:0}),sup:()=>({conversion:On,priority:0}),u:()=>({conversion:On,priority:0})}}static importJSON(e){let t=Rn(e.text);return t.setFormat(e.format),t.setDetail(e.detail),t.setMode(e.mode),t.setStyle(e.style),t}exportDOM(e){return({element:e}=super.exportDOM(e)),null!==e&&ct(e)||F(132),e.style.whiteSpace="pre-wrap",this.hasFormat("bold")&&(e=bn(e,"b")),this.hasFormat("italic")&&(e=bn(e,"i")),this.hasFormat("strikethrough")&&(e=bn(e,"s")),this.hasFormat("underline")&&(e=bn(e,"u")),{element:e}}exportJSON(){return{detail:this.getDetail(),format:this.getFormat(),mode:this.getMode(),style:this.getStyle(),text:this.getTextContent(),type:"text",version:1}}selectionTransform(){}setFormat(e){let t=this.getWritable();return t.__format="string"==typeof e?X[e]:e,t}setDetail(e){let t=this.getWritable();return t.__detail="string"==typeof e?Z[e]:e,t}setStyle(e){let t=this.getWritable();return t.__style=e,t}toggleFormat(e){return e=X[e],this.setFormat(this.getFormat()^e)}toggleDirectionless(){let e=this.getWritable();return e.__detail^=1,e}toggleUnmergeable(){let e=this.getWritable();return e.__detail^=2,e}setMode(e){if(e=ne[e],this.__mode===e)return this;let t=this.getWritable();return t.__mode=e,t}setTextContent(e){if(this.__text===e)return this;let t=this.getWritable();return t.__text=e,t}select(e,t){_r();let n=rr();var r=this.getTextContent();let i=this.__key;return"string"==typeof r?(r=r.length,void 0===e&&(e=r),void 0===t&&(t=r)):t=e=0,Bn(n)?((r=Oe())!==n.anchor.key&&r!==n.focus.key||we(i),n.setTextNodeRange(this,e,this,t),n):er(i,e,i,t,"text","text")}spliceText(e,t,n,r){let i=this.getWritable(),a=i.__text,l=n.length,o=e;0>o&&(o=l+o,0>o&&(o=0));let s=rr();return r&&Bn(s)&&(e+=l,s.setTextNodeRange(i,e,i,e)),t=a.slice(0,o)+n+a.slice(o+t),i.__text=t,i}canInsertTextBefore(){return!0}canInsertTextAfter(){return!0}splitText(...e){_r();var t=this.getLatest(),n=t.getTextContent(),r=t.__key,i=Oe(),a=new Set(e);e=[];for(var l=n.length,o="",s=0;su&&e.offset<=p&&(e.key=a,e.offset-=u,t.dirty=!0),n.key===r&&"text"===n.type&&n.offset>u&&n.offset<=p&&(n.key=a,n.offset-=u,t.dirty=!0)}i===r&&we(a),u=p,o.push(f)}return r=this.getPreviousSibling(),i=this.getNextSibling(),null!==r&&ke(r),null!==i&&ke(i),r=n.getWritable(),i=this.getIndexWithinParent(),l?(r.splice(i,0,o),this.remove()):r.splice(i,1,o),Bn(t)&&ar(t,n,i,a-1),o}mergeWithSibling(e){var t=e===this.getPreviousSibling();t||e===this.getNextSibling()||F(50);var n=this.__key;let r=e.__key,i=this.__text,a=i.length;Oe()===r&&we(n);let l=rr();if(Bn(l)){let i=l.anchor,o=l.focus;null!==i&&i.key===r&&(sr(i,t,n,e,a),l.dirty=!0),null!==o&&o.key===r&&(sr(o,t,n,e,a),l.dirty=!0)}return n=e.__text,this.setTextContent(t?n+i:i+n),t=this.getWritable(),e.remove(),t}isTextEntity(){return!1}}function Nn(e){let t="700"===e.style.fontWeight,n="line-through"===e.style.textDecoration,r="italic"===e.style.fontStyle,i="underline"===e.style.textDecoration,a=e.style.verticalAlign;return{forChild:e=>An(e)?(t&&e.toggleFormat("bold"),n&&e.toggleFormat("strikethrough"),r&&e.toggleFormat("italic"),i&&e.toggleFormat("underline"),"sub"===a&&e.toggleFormat("subscript"),"super"===a&&e.toggleFormat("superscript"),e):e,node:null}}function xn(e){let t="normal"===e.style.fontWeight;return{forChild:e=>(An(e)&&!t&&e.toggleFormat("bold"),e),node:null}}let Cn=new WeakMap;function Sn(e){null===e.parentElement&&F(129);for(var t,n=e.textContent||"",r=e.parentNode,i=[e];null!==r&&void 0===(t=Cn.get(r))&&!("PRE"===r.nodeName||1===r.nodeType&&r.style.whiteSpace.startsWith("pre"));)i.push(r),r=r.parentNode;for(t=void 0===t?r:t,r=0;r(An(e)&&!e.hasFormat(t)&&e.toggleFormat(t),e),node:null}}function Rn(e=""){return nt(new En(e))}function An(e){return e instanceof En}class Dn extends En{static getType(){return"tab"}static clone(e){let t=new Dn(e.__key);return t.__text=e.__text,t.__format=e.__format,t.__style=e.__style,t}constructor(e){super("\t",e),this.__detail=2}static importDOM(){return null}static importJSON(e){let t=Mn();return t.setFormat(e.format),t.setStyle(e.style),t}exportJSON(){return{...super.exportJSON(),type:"tab",version:1}}setTextContent(){F(126)}setDetail(){F(127)}setMode(){F(128)}canInsertTextBefore(){return!1}canInsertTextAfter(){return!1}}function Mn(){return nt(new Dn)}class Ln{constructor(e,t,n){this._selection=null,this.key=e,this.offset=t,this.type=n}is(e){return this.key===e.key&&this.offset===e.offset&&this.type===e.type}isBefore(e){let t=this.getNode(),n=e.getNode(),r=this.offset;if(e=e.offset,Mr(t)){var i=t.getDescendantByIndex(r);t=null!=i?i:t}return Mr(n)&&(i=n.getDescendantByIndex(e),n=null!=i?i:n),t===n?r(t=t.getTextContentSize())&&(r=t);else if(!Mr(t)){var a=t.getNextSibling();An(a)?(n=a.__key,r=0,i="text"):(a=t.getParent())&&(n=a.__key,r=t.getIndexWithinParent()+1)}e.set(n,r,i)}function In(e,t){if(Mr(t)){let n=t.getLastDescendant();Mr(n)||An(n)?Pn(e,n):Pn(e,t)}else Pn(e,t)}function $n(e,t,n,r){let i=e.getNode(),a=i.getChildAtIndex(e.offset),l=Rn(),o=Ir(i)?Wr().append(l):l;l.setFormat(n),l.setStyle(r),null===a?i.append(o):(a.insertBefore(o),"element"===t.type&&t.key===e.key&&t.offset!==e.offset&&t.set(t.key,t.offset+1,"element")),e.is(t)&&t.set(l.__key,0,"text"),e.set(l.__key,0,"text")}function Fn(e,t,n,r){e.key=t,e.offset=n,e.type=r}class zn{constructor(e){this.dirty=!1,this._nodes=e,this._cachedNodes=null}is(e){if(!jn(e))return!1;let t=this._nodes,n=e._nodes;return t.size===n.size&&Array.from(t).every((e=>n.has(e)))}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 zn(new Set(this._nodes))}extract(){return this.getNodes()}insertRawText(){}insertText(){}insertNodes(e,t){let n=this.getNodes(),r=n.length;var i=n[r-1];if(An(i))i=i.select();else{let e=i.getIndexWithinParent()+1;i=i.getParentOrThrow().select(e,e)}for(i.insertNodes(e,t),e=0;ed||c>f;){if(od)for(p=f-r,d+=1,g=0;g<=p;g++)e(i[r+g][d]);if(c>f)for(p=d-n,f+=1,g=0;g<=p;g++)e(i[f][n+g])}for(t=[t],n=null,r=s;r<=c;r++)for(d=o;d<=u;d++)({cell:f}=i[r][d]),qr(p=f.getParent())||F(107),p!==n&&t.push(p),t.push(f,...ut(f)),n=p;return yr()||(this._cachedNodes=t),t}getTextContent(){let e=this.getNodes(),t="";for(let n=0;ns?s:o,n=a.splitText(e,o>s?o:s),null!=(e=0===e?n[0]:n[1])?[e]:[]):[a]:(t=r.isBefore(i),An(a)&&((r=t?o:s)===a.getTextContentSize()?e.shift():0!==r&&([,a]=a.splitText(r),e[0]=a)),An(l)&&(a=l.getTextContent().length,0===(t=t?s:o)?e.pop():t!==a&&([l]=l.splitText(t),e[n]=l)),e)}modify(e,t,n){var r=this.focus,i=this.anchor,a="move"===e,l=Ye(r,t);if(Ar(l)&&!l.isIsolated())a&&l.isKeyboardSelectable()?((t=tr()).add(l.__key),Ie(t)):An(e=t?l.getPreviousSibling():l.getNextSibling())?(l=e.__key,t=t?e.getTextContent().length:0,r.set(l,t,"text"),a&&i.set(l,t,"text")):(n=l.getParentOrThrow(),Mr(e)?(n=e.__key,l=t?e.getChildrenSize():0):(l=l.getIndexWithinParent(),n=n.__key,t||l++),r.set(n,l,"element"),a&&i.set(n,l,"element"));else if(r=lt((i=br())._window)){var o=i._blockCursorElement,s=i._rootElement;if(null===s||null===o||!Mr(l)||l.isInline()||l.canBeEmpty()||at(o,i,s),r.modify(e,t?"backward":"forward",n),0n||o){r.splice(e,1),o&&(l=void 0);break}}""===(t=r.join("").trim())?e.remove():(e.setTextContent(t),e.select(l,l))}function Qn(e,t,n,r){var i=t;if(1===e.nodeType){let o=!1;var a=e.childNodes,l=a.length;i===l&&(o=!0,i=l-1);let s=a[i];if(l=!1,s===r._blockCursorElement?(s=a[i+1],l=!0):null!==r._blockCursorElement&&i--,An(r=$e(s)))i=o?r.getTextContentSize():0;else{if(null===(a=$e(e)))return null;if(Mr(a)?((t=Mr(e=a.getChildAtIndex(i)))&&(t=e.getParent(),t=null===n||null===t||!t.canBeEmpty()||t!==n.getNode()),t&&(null===(n=o?e.getLastDescendant():e.getFirstDescendant())?(a=e,i=0):a=Mr(e=n)?e:e.getParentOrThrow()),An(e)?(r=e,a=null,i=o?e.getTextContentSize():0):e!==a&&o&&!l&&i++):(i=a.getIndexWithinParent(),i=0===t&&Ar(a)&&$e(e)===a?i:i+1,a=a.getParentOrThrow()),Mr(a))return new Ln(a.__key,i,"element")}}else r=$e(e);return An(r)?new Ln(r.__key,i,"text"):null}function qn(e,t,n){var r=e.offset,i=e.getNode();0===r?(r=i.getPreviousSibling(),i=i.getParent(),t?(n||!t)&&null===r&&Mr(i)&&i.isInline()&&An(t=i.getPreviousSibling())&&(e.key=t.__key,e.offset=t.getTextContent().length):Mr(r)&&!n&&r.isInline()?(e.key=r.__key,e.offset=r.getChildrenSize(),e.type="element"):An(r)&&(e.key=r.__key,e.offset=r.getTextContent().length)):r===i.getTextContent().length&&(r=i.getNextSibling(),i=i.getParent(),t&&Mr(r)&&r.isInline()?(e.key=r.__key,e.offset=0,e.type="element"):(n||t)&&null===r&&Mr(i)&&i.isInline()&&!i.canInsertTextAfter()&&An(t=i.getNextSibling())&&(e.key=t.__key,e.offset=0))}function Jn(e,t,n){if("text"===e.type&&"text"===t.type){var r=e.isBefore(t);let i=e.is(t);qn(e,r,i),qn(t,!r,i),i&&(t.key=e.key,t.offset=e.offset,t.type=e.type),(r=br()).isComposing()&&r._compositionKey!==e.key&&Bn(n)&&(r=n.anchor,n=n.focus,Fn(e,r.key,r.offset,r.type),Fn(t,n.key,n.offset,n.type))}}function Xn(e,t,n,r,i,a){return null!==e&&null!==n&&ve(i,e,n)?null===(t=Qn(e,t,Bn(a)?a.anchor:null,i))||null===(r=Qn(n,r,Bn(a)?a.focus:null,i))||"element"===t.type&&"element"===r.type&&(e=$e(e),n=$e(n),Ar(e)&&Ar(n))?null:(Jn(t,r,a),[t,r]):null}function Zn(e){return Mr(e)&&!e.isInline()}function er(e,t,n,r,i,a){let l=vr();return(e=new Kn(new Ln(e,t,i),new Ln(n,r,a),0,"")).dirty=!0,l._selection=e}function tr(){return new zn(new Set)}function nr(e,t,n){var r=n._window;if(null===r)return null;var i=r.event,a=i?i.type:void 0;let l;if(r="selectionchange"===a,i=!ie&&(r||"beforeinput"===a||"compositionstart"===a||"compositionend"===a||"click"===a&&i&&3===i.detail||"drop"===a||void 0===a),Bn(e)&&!i)return e.clone();if(null===t)return null;if(i=t.anchorNode,a=t.focusNode,l=t.anchorOffset,t=t.focusOffset,r&&Bn(e)&&!ve(n,i,a))return e.clone();if(null===(n=Xn(i,l,a,t,n,e)))return null;let[o,s]=n;return new Kn(o,s,Bn(e)?e.format:0,Bn(e)?e.style:"")}function rr(){return vr()._selection}function ir(){return br()._editorState._selection}function ar(e,t,n,r=1){var i=e.anchor,a=e.focus,l=i.getNode(),o=a.getNode();if(t.is(l)||t.is(o)){if(l=t.__key,e.isCollapsed())(n<=(t=i.offset)&&0r)&&(n=Math.max(0,t+r),i.set(l,n,"element"),a.set(l,n,"element"),lr(e));else{let u=e.isBackward();var s=(o=u?a:i).getNode();a=(i=u?i:a).getNode(),t.is(s)&&(n<=(s=o.offset)&&0r)&&o.set(l,Math.max(0,s+r),"element"),t.is(a)&&(n<=(t=i.offset)&&0r)&&i.set(l,Math.max(0,t+r),"element")}lr(e)}}function lr(e){var t=e.anchor,n=t.offset;let r=e.focus;var i=r.offset,a=t.getNode(),l=r.getNode();if(e.isCollapsed())Mr(a)&&An(l=(i=n>=(l=a.getChildrenSize()))?a.getChildAtIndex(l-1):a.getChildAtIndex(n))&&(n=0,i&&(n=l.getTextContentSize()),t.set(l.__key,n,"text"),r.set(l.__key,n,"text"));else{if(Mr(a)){let r=a.getChildrenSize();An(n=(e=n>=r)?a.getChildAtIndex(r-1):a.getChildAtIndex(n))&&(a=0,e&&(a=n.getTextContentSize()),t.set(n.__key,a,"text"))}Mr(l)&&An(i=(t=i>=(n=l.getChildrenSize()))?l.getChildAtIndex(n-1):l.getChildAtIndex(i))&&(l=0,t&&(l=i.getTextContentSize()),r.set(i.__key,l,"text"))}}function or(e,t,n,r,i){let a=null,l=0,o=null;null!==r?(a=r.__key,An(r)?(l=r.getTextContentSize(),o="text"):Mr(r)&&(l=r.getChildrenSize(),o="element")):null!==i&&(a=i.__key,An(i)?o="text":Mr(i)&&(o="element")),null!==a&&null!==o?e.set(a,l,o):(l=t.getIndexWithinParent(),-1===l&&(l=n.getChildrenSize()),e.set(n.__key,l,"element"))}function sr(e,t,n,r,i){"text"===e.type?(e.key=n,t||(e.offset+=i)):e.offset>r.getIndexWithinParent()&&--e.offset}function ur(e,t,n){let r=[],i=null,a=null;e=e.getChildren();for(let c=0;cK&&(n=Y-K),0!==n)if(t)a.scrollBy(0,n);else{let e=V.scrollTop;V.scrollTop+=n;let t=V.scrollTop-e;j-=t,Y-=t}if(t)break;V=qe(V)}}}qt=!0}}else null!==o&&ve(e,t,n)&&k.removeAllRanges()}}e:{let t=e._blockCursorElement;if(Bn(s)&&s.isCollapsed()&&"element"===s.anchor.type&&i.contains(document.activeElement)){let n=s.anchor,r=n.getNode(),a=n.offset,l=r.getChildrenSize(),o=!1,u=null;if(a===l)it(r.getChildAtIndex(a-1))&&(o=!0);else{let t=r.getChildAtIndex(a);if(it(t)){let n=t.getPreviousSibling();(null===n||it(n))&&(o=!0,u=e.getElementByKey(t.__key))}}if(o){let n=e.getElementByKey(r.__key);if(null===t){let n=e._config.theme,r=document.createElement("div");r.contentEditable="false",r.setAttribute("data-lexical-cursor","true");let i=n.blockCursor;if(void 0!==i){if("string"==typeof i){let e=i.split(" ");i=n.blockCursor=e}void 0!==i&&r.classList.add(...i)}e._blockCursorElement=t=r}i.style.caretColor="transparent",null===u?n.appendChild(t):n.insertBefore(t,u);break e}}null!==t&&at(t,e,i)}null!==g&&g.observe(i,mr)}finally{fr=f,dr=c}}if(null!==h){var G=h;let t=Array.from(e._listeners.mutation),n=t.length;for(let e=0;e{r=Tr(e,t,n)})),r}let r=ze(e);for(let a=4;0<=a;a--)for(let l=0;l{Cr(e)})):(l._flushSync=!1,o&&(r.clear(),e._deferred=[],e._pendingEditorState=null))}function Or(e,t,n){e._updating?e._updates.push([t,n]):wr(e,t,n)}class Rr extends dn{constructor(e){super(e)}decorate(){F(47)}isIsolated(){return!1}isInline(){return!0}isKeyboardSelectable(){return!0}}function Ar(e){return e instanceof Rr}class Dr extends dn{constructor(e){super(e),this.__last=this.__first=null,this.__indent=this.__format=this.__size=0,this.__dir=null}getFormat(){return this.getLatest().__format}getFormatType(){let e=this.getFormat();return te[e]||""}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=br()._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(An(t)&&e.push(t),Mr(t)){let n=t.getAllTextNodes();e.push(...n)}t=t.getNextSibling()}return e}getFirstDescendant(){let e=this.getFirstChild();for(;null!==e;){if(Mr(e)){let t=e.getFirstChild();if(null!==t){e=t;continue}}break}return e}getLastDescendant(){let e=this.getLastChild();for(;null!==e;){if(Mr(e)){let t=e.getLastChild();if(null!==t){e=t;continue}}break}return e}getDescendantByIndex(e){let t=this.getChildren(),n=t.length;return e>=n?Mr(e=t[n-1])&&e.getLastDescendant()||e||null:Mr(e=t[e])&&e.getFirstDescendant()||e||null}getFirstChild(){let e=this.getLatest().__first;return null===e?null:Re(e)}getFirstChildOrThrow(){let e=this.getFirstChild();return null===e&&F(45,this.__key),e}getLastChild(){let e=this.getLatest().__last;return null===e?null:Re(e)}getLastChildOrThrow(){let e=this.getLastChild();return null===e&&F(96,this.__key),e}getChildAtIndex(e){var t=this.getChildrenSize();let n;if(e=e;){if(t===e)return n;n=n.getPreviousSibling(),t--}return null}getTextContent(){let e="",t=this.getChildren(),n=t.length;for(let r=0;re.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?ee[e]:0,this}setIndent(e){return this.getWritable().__indent=e,this}splice(e,t,n){let r=n.length,i=this.getChildrenSize(),a=this.getWritable(),l=a.__key;var o=[],s=[];let u=this.getChildAtIndex(e+t),c=null,d=i-t+r;if(0!==e)if(e===i)c=this.getLastChild();else{var f=this.getChildAtIndex(e);null!==f&&(c=f.getPreviousSibling())}if(0({root:Fr(Pe())})))}}class Br extends Dr{static getType(){return"paragraph"}static clone(e){return new Br(e.__key)}createDOM(e){let t=document.createElement("p");return void 0!==(e=He(e.theme,"paragraph"))&&t.classList.add(...e),t}updateDOM(){return!1}static importDOM(){return{p:()=>({conversion:Ur,priority:0})}}exportDOM(e){if(({element:e}=super.exportDOM(e)),e&&ct(e)){this.isEmpty()&&e.append(document.createElement("br"));var t=this.getFormatType();e.style.textAlign=t,(t=this.getDirection())&&(e.dir=t),0<(t=this.getIndent())&&(e.style.textIndent=20*t+"px")}return{element:e}}static importJSON(e){let t=Wr();return t.setFormat(e.format),t.setIndent(e.indent),t.setDirection(e.direction),t}exportJSON(){return{...super.exportJSON(),type:"paragraph",version:1}}insertNewAfter(e,t){e=Wr();let n=this.getDirection();return e.setDirection(n),this.insertAfter(e,t),e}collapseAtStart(){let e=this.getChildren();if(0===e.length||An(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 Ur(e){let t=Wr();return e.style&&(t.setFormat(e.style.textAlign),0<(e=parseInt(e.style.textIndent,10)/20)&&t.setIndent(e)),{node:t}}function Wr(){return nt(new Br)}function Hr(e,t,n,r){let i=e._keyToDOMMap;i.clear(),e._editorState=$r(),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,null!==(r=e._observer)&&(r.disconnect(),e._observer=null),null!==t&&(t.textContent=""),null!==n&&(n.textContent="",i.set("root",n))}class Kr{constructor(e,t,n,r,i,a,l){this._parentEditor=t,this._rootElement=null,this._editorState=e,this._compositionKey=this._pendingEditorState=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=Be(),this._onError=i,this._htmlConversions=a,this._editable=l,this._headless=null!==t&&t._headless,this._blockCursorElement=this._window=null}isComposing(){return null!=this._compositionKey}registerUpdateListener(e){let t=this._listeners.update;return t.add(e),()=>{t.delete(e)}}registerEditableListener(e){let t=this._listeners.editable;return t.add(e),()=>{t.delete(e)}}registerDecoratorListener(e){let t=this._listeners.decorator;return t.add(e),()=>{t.delete(e)}}registerTextContentListener(e){let t=this._listeners.textcontent;return t.add(e),()=>{t.delete(e)}}registerRootListener(e){let t=this._listeners.root;return e(this._rootElement,null),t.add(e),()=>{e(null,this._rootElement),t.delete(e)}}registerCommand(e,t,n){void 0===n&&F(35);let r=this._commands;r.has(e)||r.set(e,[new Set,new Set,new Set,new Set,new Set]);let i=r.get(e);void 0===i&&F(36,String(e));let a=i[n];return a.add(t),()=>{a.delete(t),i.every((e=>0===e.size))&&r.delete(e)}}registerMutationListener(e,t){void 0===this._nodes.get(e.getType())&&F(37,e.name);let n=this._listeners.mutation;return n.set(t,e),()=>{n.delete(t)}}registerNodeTransformToKlass(e,t){var n=e.getType();return void 0===(n=this._nodes.get(n))&&F(37,e.name),n.transforms.add(t),n}registerNodeTransform(e,t){var n=this.registerNodeTransformToKlass(e,t);let r=[n];return null!=(n=n.replaceWithKlass)&&(n=this.registerNodeTransformToKlass(n,t),r.push(n)),function(e,t){Or(e,(()=>{var e=vr();if(!e.isEmpty())if("root"===t)Pe().markDirty();else{e=e._nodeMap;for(let[,t]of e)t.markDirty()}}),null===e._pendingEditorState?{tag:"history-merge"}:void 0)}(this,e.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 Tr(this,e,t)}getDecorators(){return this._decorators}getRootElement(){return this._rootElement}getKey(){return this._key}setRootElement(e){let t=this._rootElement;if(e!==t){let a=He(this._config.theme,"root");var n=this._pendingEditorState||this._editorState;if(this._rootElement=e,Hr(this,t,e,n),null!==t){if(!this._config.disableEvents){0!==Qt&&(Qt--,0===Qt&&t.ownerDocument.removeEventListener("selectionchange",un));var r=t.__lexicalEditor;if(null!=r){if(null!==r._parentEditor){var i=ze(r);i=i[i.length-1]._key,sn.get(i)===r&&sn.delete(i)}else sn.delete(r._key);t.__lexicalEditor=null}for(r=on(t),i=0;i{!0!==e._lexicalHandled&&(e._lexicalHandled=!0,t.isEditable()&&a(e,t))}:e=>{if(!0!==e._lexicalHandled&&(e._lexicalHandled=!0,t.isEditable()))switch(i){case"cut":return Tr(t,M,e);case"copy":return Tr(t,D,e);case"paste":return Tr(t,s,e);case"dragstart":return Tr(t,O,e);case"dragover":return Tr(t,R,e);case"dragend":return Tr(t,A,e);case"focus":return Tr(t,P,e);case"blur":return Tr(t,I,e);case"drop":return Tr(t,w,e)}};e.addEventListener(i,l),n.push((()=>{e.removeEventListener(i,l)}))}}(e,this),null!=a&&e.classList.add(...a)):(this._editorState=n,this._window=this._pendingEditorState=null),Sr("root",this,!1,e,t)}}getElementByKey(e){return this._keyToDOMMap.get(e)||null}getEditorState(){return this._editorState}setEditorState(e,t){e.isEmpty()&&F(38),ue(this);let n=this._pendingEditorState,r=this._updateTags;t=void 0!==t?t.tag:null,null===n||n.isEmpty()||(null!=t&&r.add(t),Cr(this)),this._pendingEditorState=e,this._dirtyType=2,this._dirtyElements.set("root",!1),this._compositionKey=null,null!=t&&r.add(t),Cr(this)}parseEditorState(e,t){e="string"==typeof e?JSON.parse(e):e;let n=$r(),r=dr,i=pr,a=fr,l=this._dirtyElements,o=this._dirtyLeaves,s=this._cloneNotNeeded,u=this._dirtyType;this._dirtyElements=new Map,this._dirtyLeaves=new Set,this._cloneNotNeeded=new Set,this._dirtyType=0,dr=n,pr=!1,fr=this;try{Nr(e.root,this._nodes),t&&t(),n._readOnly=!0}catch(e){e instanceof Error&&this._onError(e)}finally{this._dirtyElements=l,this._dirtyLeaves=o,this._cloneNotNeeded=s,this._dirtyType=u,dr=r,pr=i,fr=a}return n}update(e,t){Or(this,e,t)}focus(e,t={}){let n=this._rootElement;null!==n&&(n.setAttribute("autocapitalize","off"),Or(this,(()=>{let e=rr(),n=Pe();null!==e?e.dirty=!0:0!==n.getChildrenSize()&&("rootStart"===t.defaultSelection?n.selectStart():n.selectEnd())}),{onUpdate:()=>{n.removeAttribute("autocapitalize"),e&&e()},tag:"focus"}),null===this._pendingEditorState&&n.removeAttribute("autocapitalize"))}blur(){var e=this._rootElement;null!==e&&e.blur(),null!==(e=lt(this._window))&&e.removeAllRanges()}isEditable(){return this._editable}setEditable(e){this._editable!==e&&(this._editable=e,Sr("editable",this,!0,e))}toJSON(){return{editorState:this._editorState.toJSON()}}}class jr extends Dr{constructor(e,t){super(t),this.__colSpan=e,this.__rowSpan=1}exportJSON(){return{...super.exportJSON(),colSpan:this.__colSpan,rowSpan:this.__rowSpan}}getColSpan(){return this.__colSpan}setColSpan(e){return this.getWritable().__colSpan=e,this}getRowSpan(){return this.__rowSpan}setRowSpan(e){return this.getWritable().__rowSpan=e,this}}function Yr(e){return e instanceof jr}class Vr extends Dr{}function Gr(e){return e instanceof Vr}class Qr extends Dr{}function qr(e){return e instanceof Qr}t.$addUpdateTag=function(e){_r(),br()._updateTags.add(e)},t.$applyNodeReplacement=nt,t.$copyNode=tt,t.$createLineBreakNode=gn,t.$createNodeSelection=tr,t.$createParagraphNode=Wr,t.$createRangeSelection=function(){let e=new Ln("root",0,"element"),t=new Ln("root",0,"element");return new Kn(e,t,0,"")},t.$createTabNode=Mn,t.$createTextNode=Rn,t.$getAdjacentNode=Ye,t.$getNearestNodeFromDOMNode=De,t.$getNearestRootOrShadowRoot=Ze,t.$getNodeByKey=Re,t.$getPreviousSelection=ir,t.$getRoot=Pe,t.$getSelection=rr,t.$getTextContent=function(){let e=rr();return null===e?"":e.getTextContent()},t.$hasAncestor=Je,t.$hasUpdateTag=function(e){return br()._updateTags.has(e)},t.$insertNodes=function(e,t){let n=rr()||ir();return null===n&&(n=Pe().selectEnd()),n.insertNodes(e,t)},t.$isBlockElementNode=Zn,t.$isDecoratorNode=Ar,t.$isElementNode=Mr,t.$isInlineElementOrDecoratorNode=function(e){return Mr(e)&&e.isInline()||Ar(e)&&e.isInline()},t.$isLeafNode=Ce,t.$isLineBreakNode=hn,t.$isNodeSelection=jn,t.$isParagraphNode=function(e){return e instanceof Br},t.$isRangeSelection=Bn,t.$isRootNode=Ir,t.$isRootOrShadowRoot=et,t.$isTabNode=function(e){return e instanceof Dn},t.$isTextNode=An,t.$nodesOfType=function(e){var t=vr();let n=t._readOnly,r=e.getType();t=t._nodeMap;let i=[];for(let[,a]of t)a instanceof e&&a.__type===r&&(n||a.isAttached())&&i.push(a);return i},t.$normalizeSelection__EXPERIMENTAL=ge,t.$parseSerializedNode=function(e){return Nr(e,br()._nodes)},t.$selectAll=function(){var e=Pe();Ie(ge(e=e.select(0,e.getChildrenSize())))},t.$setCompositionKey=we,t.$setSelection=Ie,t.$splitNode=ot,t.BLUR_COMMAND=I,t.CAN_REDO_COMMAND={},t.CAN_UNDO_COMMAND={},t.CLEAR_EDITOR_COMMAND={},t.CLEAR_HISTORY_COMMAND={},t.CLICK_COMMAND=r,t.COMMAND_PRIORITY_CRITICAL=4,t.COMMAND_PRIORITY_EDITOR=0,t.COMMAND_PRIORITY_HIGH=3,t.COMMAND_PRIORITY_LOW=1,t.COMMAND_PRIORITY_NORMAL=2,t.CONTROLLED_TEXT_INSERTION_COMMAND=o,t.COPY_COMMAND=D,t.CUT_COMMAND=M,t.DELETE_CHARACTER_COMMAND=i,t.DELETE_LINE_COMMAND=d,t.DELETE_WORD_COMMAND=c,t.DEPRECATED_$computeGridMap=ur,t.DEPRECATED_$createGridSelection=function(){let e=new Ln("root",0,"element"),t=new Ln("root",0,"element");return new Wn("root",e,t)},t.DEPRECATED_$getGridCellNodeRect=Un,t.DEPRECATED_$getNodeTriplet=cr,t.DEPRECATED_$isGridCellNode=Yr,t.DEPRECATED_$isGridNode=Gr,t.DEPRECATED_$isGridRowNode=qr,t.DEPRECATED_$isGridSelection=Hn,t.DEPRECATED_GridCellNode=jr,t.DEPRECATED_GridNode=Vr,t.DEPRECATED_GridRowNode=Qr,t.DRAGEND_COMMAND=A,t.DRAGOVER_COMMAND=R,t.DRAGSTART_COMMAND=O,t.DROP_COMMAND=w,t.DecoratorNode=Rr,t.ElementNode=Dr,t.FOCUS_COMMAND=P,t.FORMAT_ELEMENT_COMMAND={},t.FORMAT_TEXT_COMMAND=f,t.INDENT_CONTENT_COMMAND={},t.INSERT_LINE_BREAK_COMMAND=a,t.INSERT_PARAGRAPH_COMMAND=l,t.INSERT_TAB_COMMAND={},t.KEY_ARROW_DOWN_COMMAND=E,t.KEY_ARROW_LEFT_COMMAND=_,t.KEY_ARROW_RIGHT_COMMAND=m,t.KEY_ARROW_UP_COMMAND=b,t.KEY_BACKSPACE_COMMAND=C,t.KEY_DELETE_COMMAND=T,t.KEY_DOWN_COMMAND=h,t.KEY_ENTER_COMMAND=N,t.KEY_ESCAPE_COMMAND=S,t.KEY_MODIFIER_COMMAND=$,t.KEY_SPACE_COMMAND=x,t.KEY_TAB_COMMAND=k,t.LineBreakNode=fn,t.MOVE_TO_END=y,t.MOVE_TO_START=v,t.OUTDENT_CONTENT_COMMAND={},t.PASTE_COMMAND=s,t.ParagraphNode=Br,t.REDO_COMMAND=g,t.REMOVE_TEXT_COMMAND=u,t.RootNode=Pr,t.SELECTION_CHANGE_COMMAND=n,t.SELECT_ALL_COMMAND=L,t.TabNode=Dn,t.TextNode=En,t.UNDO_COMMAND=p,t.createCommand=function(){return{}},t.createEditor=function(e){var t=e||{},n=fr,r=t.theme||{};let i=void 0===e?n:t.parentEditor||null,a=t.disableEvents||!1,l=$r(),o=t.namespace||(null!==i?i._config.namespace:Be()),s=t.editorState,u=[Pr,En,fn,Dn,Br,...t.nodes||[]],c=t.onError;if(t=void 0===t.editable||t.editable,void 0===e&&null!==n)e=n._nodes;else for(e=new Map,n=0;n{if(null!=(e=null!=e.klass.importDOM?e.klass.importDOM.bind(e.klass):null)&&!n.has(e)){n.add(e);var r=e();null!==r&&Object.keys(r).forEach((e=>{let n=t.get(e);void 0===n&&(n=[],t.set(e,n)),n.push(r[e])}))}})),t}(e),t),void 0!==s&&(r._pendingEditorState=s,r._dirtyType=2),r},t.getNearestEditorFromDOMNode=be,t.isHTMLAnchorElement=function(e){return ct(e)&&"A"===e.tagName},t.isHTMLElement=ct,t.isSelectionCapturedInDecoratorInput=_e,t.isSelectionWithinEditor=ve},271:()=>{Prism.languages.c=Prism.languages.extend("clike",{comment:{pattern:/\/\/(?:[^\r\n\\]|\\(?:\r\n?|\n|(?![\r\n])))*|\/\*[\s\S]*?(?:\*\/|$)/,greedy:!0},string:{pattern:/"(?:\\(?:\r\n|[\s\S])|[^"\\\r\n])*"/,greedy:!0},"class-name":{pattern:/(\b(?:enum|struct)\s+(?:__attribute__\s*\(\([\s\S]*?\)\)\s*)?)\w+|\b[a-z]\w*_t\b/,lookbehind:!0},keyword:/\b(?:_Alignas|_Alignof|_Atomic|_Bool|_Complex|_Generic|_Imaginary|_Noreturn|_Static_assert|_Thread_local|__attribute__|asm|auto|break|case|char|const|continue|default|do|double|else|enum|extern|float|for|goto|if|inline|int|long|register|return|short|signed|sizeof|static|struct|switch|typedef|typeof|union|unsigned|void|volatile|while)\b/,function:/\b[a-z_]\w*(?=\s*\()/i,number:/(?:\b0x(?:[\da-f]+(?:\.[\da-f]*)?|\.[\da-f]+)(?:p[+-]?\d+)?|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e[+-]?\d+)?)[ful]{0,4}/i,operator:/>>=?|<<=?|->|([-+&|:])\1|[?:~]|[-+*/%&|^!=<>]=?/}),Prism.languages.insertBefore("c","string",{char:{pattern:/'(?:\\(?:\r\n|[\s\S])|[^'\\\r\n]){0,32}'/,greedy:!0}}),Prism.languages.insertBefore("c","string",{macro:{pattern:/(^[\t ]*)#\s*[a-z](?:[^\r\n\\/]|\/(?!\*)|\/\*(?:[^*]|\*(?!\/))*\*\/|\\(?:\r\n|[\s\S]))*/im,lookbehind:!0,greedy:!0,alias:"property",inside:{string:[{pattern:/^(#\s*include\s*)<[^>]+>/,lookbehind:!0},Prism.languages.c.string],char:Prism.languages.c.char,comment:Prism.languages.c.comment,"macro-name":[{pattern:/(^#\s*define\s+)\w+\b(?!\()/i,lookbehind:!0},{pattern:/(^#\s*define\s+)\w+\b(?=\()/i,lookbehind:!0,alias:"function"}],directive:{pattern:/^(#\s*)[a-z]+/,lookbehind:!0,alias:"keyword"},"directive-hash":/^#/,punctuation:/##|\\(?=[\r\n])/,expression:{pattern:/\S[\s\S]*/,inside:Prism.languages.c}}}}),Prism.languages.insertBefore("c","function",{constant:/\b(?:EOF|NULL|SEEK_CUR|SEEK_END|SEEK_SET|__DATE__|__FILE__|__LINE__|__TIMESTAMP__|__TIME__|__func__|stderr|stdin|stdout)\b/}),delete Prism.languages.c.boolean},5624:()=>{Prism.languages.clike={comment:[{pattern:/(^|[^\\])\/\*[\s\S]*?(?:\*\/|$)/,lookbehind:!0,greedy:!0},{pattern:/(^|[^\\:])\/\/.*/,lookbehind:!0,greedy:!0}],string:{pattern:/(["'])(?:\\(?:\r\n|[\s\S])|(?!\1)[^\\\r\n])*\1/,greedy:!0},"class-name":{pattern:/(\b(?:class|extends|implements|instanceof|interface|new|trait)\s+|\bcatch\s+\()[\w.\\]+/i,lookbehind:!0,inside:{punctuation:/[.\\]/}},keyword:/\b(?:break|catch|continue|do|else|finally|for|function|if|in|instanceof|new|null|return|throw|try|while)\b/,boolean:/\b(?:false|true)\b/,function:/\b\w+(?=\()/,number:/\b0x[\da-f]+\b|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e[+-]?\d+)?/i,operator:/[<>]=?|[!=]=?=?|--?|\+\+?|&&?|\|\|?|[?*/~^%]/,punctuation:/[{}[\];(),.:]/}},2415:()=>{!function(e){var t=/\b(?:alignas|alignof|asm|auto|bool|break|case|catch|char|char16_t|char32_t|char8_t|class|co_await|co_return|co_yield|compl|concept|const|const_cast|consteval|constexpr|constinit|continue|decltype|default|delete|do|double|dynamic_cast|else|enum|explicit|export|extern|final|float|for|friend|goto|if|import|inline|int|int16_t|int32_t|int64_t|int8_t|long|module|mutable|namespace|new|noexcept|nullptr|operator|override|private|protected|public|register|reinterpret_cast|requires|return|short|signed|sizeof|static|static_assert|static_cast|struct|switch|template|this|thread_local|throw|try|typedef|typeid|typename|uint16_t|uint32_t|uint64_t|uint8_t|union|unsigned|using|virtual|void|volatile|wchar_t|while)\b/,n=/\b(?!)\w+(?:\s*\.\s*\w+)*\b/.source.replace(//g,(function(){return t.source}));e.languages.cpp=e.languages.extend("c",{"class-name":[{pattern:RegExp(/(\b(?:class|concept|enum|struct|typename)\s+)(?!)\w+/.source.replace(//g,(function(){return t.source}))),lookbehind:!0},/\b[A-Z]\w*(?=\s*::\s*\w+\s*\()/,/\b[A-Z_]\w*(?=\s*::\s*~\w+\s*\()/i,/\b\w+(?=\s*<(?:[^<>]|<(?:[^<>]|<[^<>]*>)*>)*>\s*::\s*\w+\s*\()/],keyword:t,number:{pattern:/(?:\b0b[01']+|\b0x(?:[\da-f']+(?:\.[\da-f']*)?|\.[\da-f']+)(?:p[+-]?[\d']+)?|(?:\b[\d']+(?:\.[\d']*)?|\B\.[\d']+)(?:e[+-]?[\d']+)?)[ful]{0,4}/i,greedy:!0},operator:/>>=?|<<=?|->|--|\+\+|&&|\|\||[?:~]|<=>|[-+*/%&|^!=<>]=?|\b(?:and|and_eq|bitand|bitor|not|not_eq|or|or_eq|xor|xor_eq)\b/,boolean:/\b(?:false|true)\b/}),e.languages.insertBefore("cpp","string",{module:{pattern:RegExp(/(\b(?:import|module)\s+)/.source+"(?:"+/"(?:\\(?:\r\n|[\s\S])|[^"\\\r\n])*"|<[^<>\r\n]*>/.source+"|"+/(?:\s*:\s*)?|:\s*/.source.replace(//g,(function(){return n}))+")"),lookbehind:!0,greedy:!0,inside:{string:/^[<"][\s\S]+/,operator:/:/,punctuation:/\./}},"raw-string":{pattern:/R"([^()\\ ]{0,16})\([\s\S]*?\)\1"/,alias:"string",greedy:!0}}),e.languages.insertBefore("cpp","keyword",{"generic-function":{pattern:/\b(?!operator\b)[a-z_]\w*\s*<(?:[^<>]|<[^<>]*>)*>(?=\s*\()/i,inside:{function:/^\w+/,generic:{pattern:/<[\s\S]+/,alias:"class-name",inside:e.languages.cpp}}}}),e.languages.insertBefore("cpp","operator",{"double-colon":{pattern:/::/,alias:"punctuation"}}),e.languages.insertBefore("cpp","class-name",{"base-clause":{pattern:/(\b(?:class|struct)\s+\w+\s*:\s*)[^;{}"'\s]+(?:\s+[^;{}"'\s]+)*(?=\s*[;{])/,lookbehind:!0,greedy:!0,inside:e.languages.extend("cpp",{})}}),e.languages.insertBefore("inside","double-colon",{"class-name":/\b[a-z_]\w*\b(?!\s*::)/i},e.languages.cpp["base-clause"])}(Prism)},1113:()=>{!function(e){var t=/(?:"(?:\\(?:\r\n|[\s\S])|[^"\\\r\n])*"|'(?:\\(?:\r\n|[\s\S])|[^'\\\r\n])*')/;e.languages.css={comment:/\/\*[\s\S]*?\*\//,atrule:{pattern:RegExp("@[\\w-](?:"+/[^;{\s"']|\s+(?!\s)/.source+"|"+t.source+")*?"+/(?:;|(?=\s*\{))/.source),inside:{rule:/^@[\w-]+/,"selector-function-argument":{pattern:/(\bselector\s*\(\s*(?![\s)]))(?:[^()\s]|\s+(?![\s)])|\((?:[^()]|\([^()]*\))*\))+(?=\s*\))/,lookbehind:!0,alias:"selector"},keyword:{pattern:/(^|[^\w-])(?:and|not|only|or)(?![\w-])/,lookbehind:!0}}},url:{pattern:RegExp("\\burl\\((?:"+t.source+"|"+/(?:[^\\\r\n()"']|\\[\s\S])*/.source+")\\)","i"),greedy:!0,inside:{function:/^url/i,punctuation:/^\(|\)$/,string:{pattern:RegExp("^"+t.source+"$"),alias:"url"}}},selector:{pattern:RegExp("(^|[{}\\s])[^{}\\s](?:[^{};\"'\\s]|\\s+(?![\\s{])|"+t.source+")*(?=\\s*\\{)"),lookbehind:!0},string:{pattern:t,greedy:!0},property:{pattern:/(^|[^-\w\xA0-\uFFFF])(?!\s)[-_a-z\xA0-\uFFFF](?:(?!\s)[-\w\xA0-\uFFFF])*(?=\s*:)/i,lookbehind:!0},important:/!important\b/i,function:{pattern:/(^|[^-a-z0-9])[-a-z0-9]+(?=\()/i,lookbehind:!0},punctuation:/[(){};:,]/},e.languages.css.atrule.inside.rest=e.languages.css;var n=e.languages.markup;n&&(n.tag.addInlined("style","css"),n.tag.addAttribute("style","css"))}(Prism)},6976:()=>{!function(e){var t=/\b(?:abstract|assert|boolean|break|byte|case|catch|char|class|const|continue|default|do|double|else|enum|exports|extends|final|finally|float|for|goto|if|implements|import|instanceof|int|interface|long|module|native|new|non-sealed|null|open|opens|package|permits|private|protected|provides|public|record(?!\s*[(){}[\]<>=%~.:,;?+\-*/&|^])|requires|return|sealed|short|static|strictfp|super|switch|synchronized|this|throw|throws|to|transient|transitive|try|uses|var|void|volatile|while|with|yield)\b/,n=/(?:[a-z]\w*\s*\.\s*)*(?:[A-Z]\w*\s*\.\s*)*/.source,r={pattern:RegExp(/(^|[^\w.])/.source+n+/[A-Z](?:[\d_A-Z]*[a-z]\w*)?\b/.source),lookbehind:!0,inside:{namespace:{pattern:/^[a-z]\w*(?:\s*\.\s*[a-z]\w*)*(?:\s*\.)?/,inside:{punctuation:/\./}},punctuation:/\./}};e.languages.java=e.languages.extend("clike",{string:{pattern:/(^|[^\\])"(?:\\.|[^"\\\r\n])*"/,lookbehind:!0,greedy:!0},"class-name":[r,{pattern:RegExp(/(^|[^\w.])/.source+n+/[A-Z]\w*(?=\s+\w+\s*[;,=()]|\s*(?:\[[\s,]*\]\s*)?::\s*new\b)/.source),lookbehind:!0,inside:r.inside},{pattern:RegExp(/(\b(?:class|enum|extends|implements|instanceof|interface|new|record|throws)\s+)/.source+n+/[A-Z]\w*\b/.source),lookbehind:!0,inside:r.inside}],keyword:t,function:[e.languages.clike.function,{pattern:/(::\s*)[a-z_]\w*/,lookbehind:!0}],number:/\b0b[01][01_]*L?\b|\b0x(?:\.[\da-f_p+-]+|[\da-f_]+(?:\.[\da-f_p+-]+)?)\b|(?:\b\d[\d_]*(?:\.[\d_]*)?|\B\.\d[\d_]*)(?:e[+-]?\d[\d_]*)?[dfl]?/i,operator:{pattern:/(^|[^.])(?:<<=?|>>>?=?|->|--|\+\+|&&|\|\||::|[?:~]|[-+*/%&|^!=<>]=?)/m,lookbehind:!0},constant:/\b[A-Z][A-Z_\d]+\b/}),e.languages.insertBefore("java","string",{"triple-quoted-string":{pattern:/"""[ \t]*[\r\n](?:(?:"|"")?(?:\\.|[^"\\]))*"""/,greedy:!0,alias:"string"},char:{pattern:/'(?:\\.|[^'\\\r\n]){1,6}'/,greedy:!0}}),e.languages.insertBefore("java","class-name",{annotation:{pattern:/(^|[^.])@\w+(?:\s*\.\s*\w+)*/,lookbehind:!0,alias:"punctuation"},generics:{pattern:/<(?:[\w\s,.?]|&(?!&)|<(?:[\w\s,.?]|&(?!&)|<(?:[\w\s,.?]|&(?!&)|<(?:[\w\s,.?]|&(?!&))*>)*>)*>)*>/,inside:{"class-name":r,keyword:t,punctuation:/[<>(),.:]/,operator:/[?&|]/}},import:[{pattern:RegExp(/(\bimport\s+)/.source+n+/(?:[A-Z]\w*|\*)(?=\s*;)/.source),lookbehind:!0,inside:{namespace:r.inside.namespace,punctuation:/\./,operator:/\*/,"class-name":/\w+/}},{pattern:RegExp(/(\bimport\s+static\s+)/.source+n+/(?:\w+|\*)(?=\s*;)/.source),lookbehind:!0,alias:"static",inside:{namespace:r.inside.namespace,static:/\b\w+$/,punctuation:/\./,operator:/\*/,"class-name":/\w+/}}],namespace:{pattern:RegExp(/(\b(?:exports|import(?:\s+static)?|module|open|opens|package|provides|requires|to|transitive|uses|with)\s+)(?!)[a-z]\w*(?:\.[a-z]\w*)*\.?/.source.replace(//g,(function(){return t.source}))),lookbehind:!0,inside:{punctuation:/\./}}})}(Prism)},5723:()=>{Prism.languages.javascript=Prism.languages.extend("clike",{"class-name":[Prism.languages.clike["class-name"],{pattern:/(^|[^$\w\xA0-\uFFFF])(?!\s)[_$A-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\.(?:constructor|prototype))/,lookbehind:!0}],keyword:[{pattern:/((?:^|\})\s*)catch\b/,lookbehind:!0},{pattern:/(^|[^.]|\.\.\.\s*)\b(?:as|assert(?=\s*\{)|async(?=\s*(?:function\b|\(|[$\w\xA0-\uFFFF]|$))|await|break|case|class|const|continue|debugger|default|delete|do|else|enum|export|extends|finally(?=\s*(?:\{|$))|for|from(?=\s*(?:['"]|$))|function|(?:get|set)(?=\s*(?:[#\[$\w\xA0-\uFFFF]|$))|if|implements|import|in|instanceof|interface|let|new|null|of|package|private|protected|public|return|static|super|switch|this|throw|try|typeof|undefined|var|void|while|with|yield)\b/,lookbehind:!0}],function:/#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*(?:\.\s*(?:apply|bind|call)\s*)?\()/,number:{pattern:RegExp(/(^|[^\w$])/.source+"(?:"+/NaN|Infinity/.source+"|"+/0[bB][01]+(?:_[01]+)*n?/.source+"|"+/0[oO][0-7]+(?:_[0-7]+)*n?/.source+"|"+/0[xX][\dA-Fa-f]+(?:_[\dA-Fa-f]+)*n?/.source+"|"+/\d+(?:_\d+)*n/.source+"|"+/(?:\d+(?:_\d+)*(?:\.(?:\d+(?:_\d+)*)?)?|\.\d+(?:_\d+)*)(?:[Ee][+-]?\d+(?:_\d+)*)?/.source+")"+/(?![\w$])/.source),lookbehind:!0},operator:/--|\+\+|\*\*=?|=>|&&=?|\|\|=?|[!=]==|<<=?|>>>?=?|[-+*/%&|^!=<>]=?|\.{3}|\?\?=?|\?\.?|[~:]/}),Prism.languages.javascript["class-name"][0].pattern=/(\b(?:class|extends|implements|instanceof|interface|new)\s+)[\w.\\]+/,Prism.languages.insertBefore("javascript","keyword",{regex:{pattern:RegExp(/((?:^|[^$\w\xA0-\uFFFF."'\])\s]|\b(?:return|yield))\s*)/.source+/\//.source+"(?:"+/(?:\[(?:[^\]\\\r\n]|\\.)*\]|\\.|[^/\\\[\r\n])+\/[dgimyus]{0,7}/.source+"|"+/(?:\[(?:[^[\]\\\r\n]|\\.|\[(?:[^[\]\\\r\n]|\\.|\[(?:[^[\]\\\r\n]|\\.)*\])*\])*\]|\\.|[^/\\\[\r\n])+\/[dgimyus]{0,7}v[dgimyus]{0,7}/.source+")"+/(?=(?:\s|\/\*(?:[^*]|\*(?!\/))*\*\/)*(?:$|[\r\n,.;:})\]]|\/\/))/.source),lookbehind:!0,greedy:!0,inside:{"regex-source":{pattern:/^(\/)[\s\S]+(?=\/[a-z]*$)/,lookbehind:!0,alias:"language-regex",inside:Prism.languages.regex},"regex-delimiter":/^\/|\/$/,"regex-flags":/^[a-z]+$/}},"function-variable":{pattern:/#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*[=:]\s*(?:async\s*)?(?:\bfunction\b|(?:\((?:[^()]|\([^()]*\))*\)|(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*)\s*=>))/,alias:"function"},parameter:[{pattern:/(function(?:\s+(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*)?\s*\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\))/,lookbehind:!0,inside:Prism.languages.javascript},{pattern:/(^|[^$\w\xA0-\uFFFF])(?!\s)[_$a-z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*=>)/i,lookbehind:!0,inside:Prism.languages.javascript},{pattern:/(\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\)\s*=>)/,lookbehind:!0,inside:Prism.languages.javascript},{pattern:/((?:\b|\s|^)(?!(?:as|async|await|break|case|catch|class|const|continue|debugger|default|delete|do|else|enum|export|extends|finally|for|from|function|get|if|implements|import|in|instanceof|interface|let|new|null|of|package|private|protected|public|return|set|static|super|switch|this|throw|try|typeof|undefined|var|void|while|with|yield)(?![$\w\xA0-\uFFFF]))(?:(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*\s*)\(\s*|\]\s*\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\)\s*\{)/,lookbehind:!0,inside:Prism.languages.javascript}],constant:/\b[A-Z](?:[A-Z_]|\dx?)*\b/}),Prism.languages.insertBefore("javascript","string",{hashbang:{pattern:/^#!.*/,greedy:!0,alias:"comment"},"template-string":{pattern:/`(?:\\[\s\S]|\$\{(?:[^{}]|\{(?:[^{}]|\{[^}]*\})*\})+\}|(?!\$\{)[^\\`])*`/,greedy:!0,inside:{"template-punctuation":{pattern:/^`|`$/,alias:"string"},interpolation:{pattern:/((?:^|[^\\])(?:\\{2})*)\$\{(?:[^{}]|\{(?:[^{}]|\{[^}]*\})*\})+\}/,lookbehind:!0,inside:{"interpolation-punctuation":{pattern:/^\$\{|\}$/,alias:"punctuation"},rest:Prism.languages.javascript}},string:/[\s\S]+/}},"string-property":{pattern:/((?:^|[,{])[ \t]*)(["'])(?:\\(?:\r\n|[\s\S])|(?!\2)[^\\\r\n])*\2(?=\s*:)/m,lookbehind:!0,greedy:!0,alias:"property"}}),Prism.languages.insertBefore("javascript","operator",{"literal-property":{pattern:/((?:^|[,{])[ \t]*)(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*:)/m,lookbehind:!0,alias:"property"}}),Prism.languages.markup&&(Prism.languages.markup.tag.addInlined("script","javascript"),Prism.languages.markup.tag.addAttribute(/on(?:abort|blur|change|click|composition(?:end|start|update)|dblclick|error|focus(?:in|out)?|key(?:down|up)|load|mouse(?:down|enter|leave|move|out|over|up)|reset|resize|scroll|select|slotchange|submit|unload|wheel)/.source,"javascript")),Prism.languages.js=Prism.languages.javascript},5545:()=>{!function(e){var t=/(?:\\.|[^\\\n\r]|(?:\n|\r\n?)(?![\r\n]))/.source;function n(e){return e=e.replace(//g,(function(){return t})),RegExp(/((?:^|[^\\])(?:\\{2})*)/.source+"(?:"+e+")")}var r=/(?:\\.|``(?:[^`\r\n]|`(?!`))+``|`[^`\r\n]+`|[^\\|\r\n`])+/.source,i=/\|?__(?:\|__)+\|?(?:(?:\n|\r\n?)|(?![\s\S]))/.source.replace(/__/g,(function(){return r})),a=/\|?[ \t]*:?-{3,}:?[ \t]*(?:\|[ \t]*:?-{3,}:?[ \t]*)+\|?(?:\n|\r\n?)/.source;e.languages.markdown=e.languages.extend("markup",{}),e.languages.insertBefore("markdown","prolog",{"front-matter-block":{pattern:/(^(?:\s*[\r\n])?)---(?!.)[\s\S]*?[\r\n]---(?!.)/,lookbehind:!0,greedy:!0,inside:{punctuation:/^---|---$/,"front-matter":{pattern:/\S+(?:\s+\S+)*/,alias:["yaml","language-yaml"],inside:e.languages.yaml}}},blockquote:{pattern:/^>(?:[\t ]*>)*/m,alias:"punctuation"},table:{pattern:RegExp("^"+i+a+"(?:"+i+")*","m"),inside:{"table-data-rows":{pattern:RegExp("^("+i+a+")(?:"+i+")*$"),lookbehind:!0,inside:{"table-data":{pattern:RegExp(r),inside:e.languages.markdown},punctuation:/\|/}},"table-line":{pattern:RegExp("^("+i+")"+a+"$"),lookbehind:!0,inside:{punctuation:/\||:?-{3,}:?/}},"table-header-row":{pattern:RegExp("^"+i+"$"),inside:{"table-header":{pattern:RegExp(r),alias:"important",inside:e.languages.markdown},punctuation:/\|/}}}},code:[{pattern:/((?:^|\n)[ \t]*\n|(?:^|\r\n?)[ \t]*\r\n?)(?: {4}|\t).+(?:(?:\n|\r\n?)(?: {4}|\t).+)*/,lookbehind:!0,alias:"keyword"},{pattern:/^```[\s\S]*?^```$/m,greedy:!0,inside:{"code-block":{pattern:/^(```.*(?:\n|\r\n?))[\s\S]+?(?=(?:\n|\r\n?)^```$)/m,lookbehind:!0},"code-language":{pattern:/^(```).+/,lookbehind:!0},punctuation:/```/}}],title:[{pattern:/\S.*(?:\n|\r\n?)(?:==+|--+)(?=[ \t]*$)/m,alias:"important",inside:{punctuation:/==+$|--+$/}},{pattern:/(^\s*)#.+/m,lookbehind:!0,alias:"important",inside:{punctuation:/^#+|#+$/}}],hr:{pattern:/(^\s*)([*-])(?:[\t ]*\2){2,}(?=\s*$)/m,lookbehind:!0,alias:"punctuation"},list:{pattern:/(^\s*)(?:[*+-]|\d+\.)(?=[\t ].)/m,lookbehind:!0,alias:"punctuation"},"url-reference":{pattern:/!?\[[^\]]+\]:[\t ]+(?:\S+|<(?:\\.|[^>\\])+>)(?:[\t ]+(?:"(?:\\.|[^"\\])*"|'(?:\\.|[^'\\])*'|\((?:\\.|[^)\\])*\)))?/,inside:{variable:{pattern:/^(!?\[)[^\]]+/,lookbehind:!0},string:/(?:"(?:\\.|[^"\\])*"|'(?:\\.|[^'\\])*'|\((?:\\.|[^)\\])*\))$/,punctuation:/^[\[\]!:]|[<>]/},alias:"url"},bold:{pattern:n(/\b__(?:(?!_)|_(?:(?!_))+_)+__\b|\*\*(?:(?!\*)|\*(?:(?!\*))+\*)+\*\*/.source),lookbehind:!0,greedy:!0,inside:{content:{pattern:/(^..)[\s\S]+(?=..$)/,lookbehind:!0,inside:{}},punctuation:/\*\*|__/}},italic:{pattern:n(/\b_(?:(?!_)|__(?:(?!_))+__)+_\b|\*(?:(?!\*)|\*\*(?:(?!\*))+\*\*)+\*/.source),lookbehind:!0,greedy:!0,inside:{content:{pattern:/(^.)[\s\S]+(?=.$)/,lookbehind:!0,inside:{}},punctuation:/[*_]/}},strike:{pattern:n(/(~~?)(?:(?!~))+\2/.source),lookbehind:!0,greedy:!0,inside:{content:{pattern:/(^~~?)[\s\S]+(?=\1$)/,lookbehind:!0,inside:{}},punctuation:/~~?/}},"code-snippet":{pattern:/(^|[^\\`])(?:``[^`\r\n]+(?:`[^`\r\n]+)*``(?!`)|`[^`\r\n]+`(?!`))/,lookbehind:!0,greedy:!0,alias:["code","keyword"]},url:{pattern:n(/!?\[(?:(?!\]))+\](?:\([^\s)]+(?:[\t ]+"(?:\\.|[^"\\])*")?\)|[ \t]?\[(?:(?!\]))+\])/.source),lookbehind:!0,greedy:!0,inside:{operator:/^!/,content:{pattern:/(^\[)[^\]]+(?=\])/,lookbehind:!0,inside:{}},variable:{pattern:/(^\][ \t]?\[)[^\]]+(?=\]$)/,lookbehind:!0},url:{pattern:/(^\]\()[^\s)]+/,lookbehind:!0},string:{pattern:/(^[ \t]+)"(?:\\.|[^"\\])*"(?=\)$)/,lookbehind:!0}}}}),["url","bold","italic","strike"].forEach((function(t){["url","bold","italic","strike","code-snippet"].forEach((function(n){t!==n&&(e.languages.markdown[t].inside.content.inside[n]=e.languages.markdown[n])}))})),e.hooks.add("after-tokenize",(function(e){"markdown"!==e.language&&"md"!==e.language||function e(t){if(t&&"string"!=typeof t)for(var n=0,r=t.length;n",quot:'"'},s=String.fromCodePoint||String.fromCharCode;e.languages.md=e.languages.markdown}(Prism)},4312:()=>{Prism.languages.markup={comment:{pattern://,greedy:!0},prolog:{pattern:/<\?[\s\S]+?\?>/,greedy:!0},doctype:{pattern:/"'[\]]|"[^"]*"|'[^']*')+(?:\[(?:[^<"'\]]|"[^"]*"|'[^']*'|<(?!!--)|)*\]\s*)?>/i,greedy:!0,inside:{"internal-subset":{pattern:/(^[^\[]*\[)[\s\S]+(?=\]>$)/,lookbehind:!0,greedy:!0,inside:null},string:{pattern:/"[^"]*"|'[^']*'/,greedy:!0},punctuation:/^$|[[\]]/,"doctype-tag":/^DOCTYPE/i,name:/[^\s<>'"]+/}},cdata:{pattern://i,greedy:!0},tag:{pattern:/<\/?(?!\d)[^\s>\/=$<%]+(?:\s(?:\s*[^\s>\/=]+(?:\s*=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+(?=[\s>]))|(?=[\s/>])))+)?\s*\/?>/,greedy:!0,inside:{tag:{pattern:/^<\/?[^\s>\/]+/,inside:{punctuation:/^<\/?/,namespace:/^[^\s>\/:]+:/}},"special-attr":[],"attr-value":{pattern:/=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+)/,inside:{punctuation:[{pattern:/^=/,alias:"attr-equals"},{pattern:/^(\s*)["']|["']$/,lookbehind:!0}]}},punctuation:/\/?>/,"attr-name":{pattern:/[^\s>\/]+/,inside:{namespace:/^[^\s>\/:]+:/}}}},entity:[{pattern:/&[\da-z]{1,8};/i,alias:"named-entity"},/&#x?[\da-f]{1,8};/i]},Prism.languages.markup.tag.inside["attr-value"].inside.entity=Prism.languages.markup.entity,Prism.languages.markup.doctype.inside["internal-subset"].inside=Prism.languages.markup,Prism.hooks.add("wrap",(function(e){"entity"===e.type&&(e.attributes.title=e.content.replace(/&/,"&"))})),Object.defineProperty(Prism.languages.markup.tag,"addInlined",{value:function(e,t){var n={};n["language-"+t]={pattern:/(^$)/i,lookbehind:!0,inside:Prism.languages[t]},n.cdata=/^$/i;var r={"included-cdata":{pattern://i,inside:n}};r["language-"+t]={pattern:/[\s\S]+/,inside:Prism.languages[t]};var i={};i[e]={pattern:RegExp(/(<__[^>]*>)(?:))*\]\]>|(?!)/.source.replace(/__/g,(function(){return e})),"i"),lookbehind:!0,greedy:!0,inside:r},Prism.languages.insertBefore("markup","cdata",i)}}),Object.defineProperty(Prism.languages.markup.tag,"addAttribute",{value:function(e,t){Prism.languages.markup.tag.inside["special-attr"].push({pattern:RegExp(/(^|["'\s])/.source+"(?:"+e+")"+/\s*=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+(?=[\s>]))/.source,"i"),lookbehind:!0,inside:{"attr-name":/^[^\s=]+/,"attr-value":{pattern:/=[\s\S]+/,inside:{value:{pattern:/(^=\s*(["']|(?!["'])))\S[\s\S]*(?=\2$)/,lookbehind:!0,alias:[t,"language-"+t],inside:Prism.languages[t]},punctuation:[{pattern:/^=/,alias:"attr-equals"},/"|'/]}}}})}}),Prism.languages.html=Prism.languages.markup,Prism.languages.mathml=Prism.languages.markup,Prism.languages.svg=Prism.languages.markup,Prism.languages.xml=Prism.languages.extend("markup",{}),Prism.languages.ssml=Prism.languages.xml,Prism.languages.atom=Prism.languages.xml,Prism.languages.rss=Prism.languages.xml},596:()=>{Prism.languages.objectivec=Prism.languages.extend("c",{string:{pattern:/@?"(?:\\(?:\r\n|[\s\S])|[^"\\\r\n])*"/,greedy:!0},keyword:/\b(?:asm|auto|break|case|char|const|continue|default|do|double|else|enum|extern|float|for|goto|if|in|inline|int|long|register|return|self|short|signed|sizeof|static|struct|super|switch|typedef|typeof|union|unsigned|void|volatile|while)\b|(?:@interface|@end|@implementation|@protocol|@class|@public|@protected|@private|@property|@try|@catch|@finally|@throw|@synthesize|@dynamic|@selector)\b/,operator:/-[->]?|\+\+?|!=?|<>?=?|==?|&&?|\|\|?|[~^%?*\/@]/}),delete Prism.languages.objectivec["class-name"],Prism.languages.objc=Prism.languages.objectivec},9961:()=>{Prism.languages.python={comment:{pattern:/(^|[^\\])#.*/,lookbehind:!0,greedy:!0},"string-interpolation":{pattern:/(?:f|fr|rf)(?:("""|''')[\s\S]*?\1|("|')(?:\\.|(?!\2)[^\\\r\n])*\2)/i,greedy:!0,inside:{interpolation:{pattern:/((?:^|[^{])(?:\{\{)*)\{(?!\{)(?:[^{}]|\{(?!\{)(?:[^{}]|\{(?!\{)(?:[^{}])+\})+\})+\}/,lookbehind:!0,inside:{"format-spec":{pattern:/(:)[^:(){}]+(?=\}$)/,lookbehind:!0},"conversion-option":{pattern:/![sra](?=[:}]$)/,alias:"punctuation"},rest:null}},string:/[\s\S]+/}},"triple-quoted-string":{pattern:/(?:[rub]|br|rb)?("""|''')[\s\S]*?\1/i,greedy:!0,alias:"string"},string:{pattern:/(?:[rub]|br|rb)?("|')(?:\\.|(?!\1)[^\\\r\n])*\1/i,greedy:!0},function:{pattern:/((?:^|\s)def[ \t]+)[a-zA-Z_]\w*(?=\s*\()/g,lookbehind:!0},"class-name":{pattern:/(\bclass\s+)\w+/i,lookbehind:!0},decorator:{pattern:/(^[\t ]*)@\w+(?:\.\w+)*/m,lookbehind:!0,alias:["annotation","punctuation"],inside:{punctuation:/\./}},keyword:/\b(?:_(?=\s*:)|and|as|assert|async|await|break|case|class|continue|def|del|elif|else|except|exec|finally|for|from|global|if|import|in|is|lambda|match|nonlocal|not|or|pass|print|raise|return|try|while|with|yield)\b/,builtin:/\b(?:__import__|abs|all|any|apply|ascii|basestring|bin|bool|buffer|bytearray|bytes|callable|chr|classmethod|cmp|coerce|compile|complex|delattr|dict|dir|divmod|enumerate|eval|execfile|file|filter|float|format|frozenset|getattr|globals|hasattr|hash|help|hex|id|input|int|intern|isinstance|issubclass|iter|len|list|locals|long|map|max|memoryview|min|next|object|oct|open|ord|pow|property|range|raw_input|reduce|reload|repr|reversed|round|set|setattr|slice|sorted|staticmethod|str|sum|super|tuple|type|unichr|unicode|vars|xrange|zip)\b/,boolean:/\b(?:False|None|True)\b/,number:/\b0(?:b(?:_?[01])+|o(?:_?[0-7])+|x(?:_?[a-f0-9])+)\b|(?:\b\d+(?:_\d+)*(?:\.(?:\d+(?:_\d+)*)?)?|\B\.\d+(?:_\d+)*)(?:e[+-]?\d+(?:_\d+)*)?j?(?!\w)/i,operator:/[-+%=]=?|!=|:=|\*\*?=?|\/\/?=?|<[<=>]?|>[=>]?|[&|^~]/,punctuation:/[{}[\];(),.:]/},Prism.languages.python["string-interpolation"].inside.interpolation.inside.rest=Prism.languages.python,Prism.languages.py=Prism.languages.python},5342:()=>{!function(e){for(var t=/\/\*(?:[^*/]|\*(?!\/)|\/(?!\*)|)*\*\//.source,n=0;n<2;n++)t=t.replace(//g,(function(){return t}));t=t.replace(//g,(function(){return/[^\s\S]/.source})),e.languages.rust={comment:[{pattern:RegExp(/(^|[^\\])/.source+t),lookbehind:!0,greedy:!0},{pattern:/(^|[^\\:])\/\/.*/,lookbehind:!0,greedy:!0}],string:{pattern:/b?"(?:\\[\s\S]|[^\\"])*"|b?r(#*)"(?:[^"]|"(?!\1))*"\1/,greedy:!0},char:{pattern:/b?'(?:\\(?:x[0-7][\da-fA-F]|u\{(?:[\da-fA-F]_*){1,6}\}|.)|[^\\\r\n\t'])'/,greedy:!0},attribute:{pattern:/#!?\[(?:[^\[\]"]|"(?:\\[\s\S]|[^\\"])*")*\]/,greedy:!0,alias:"attr-name",inside:{string:null}},"closure-params":{pattern:/([=(,:]\s*|\bmove\s*)\|[^|]*\||\|[^|]*\|(?=\s*(?:\{|->))/,lookbehind:!0,greedy:!0,inside:{"closure-punctuation":{pattern:/^\||\|$/,alias:"punctuation"},rest:null}},"lifetime-annotation":{pattern:/'\w+/,alias:"symbol"},"fragment-specifier":{pattern:/(\$\w+:)[a-z]+/,lookbehind:!0,alias:"punctuation"},variable:/\$\w+/,"function-definition":{pattern:/(\bfn\s+)\w+/,lookbehind:!0,alias:"function"},"type-definition":{pattern:/(\b(?:enum|struct|trait|type|union)\s+)\w+/,lookbehind:!0,alias:"class-name"},"module-declaration":[{pattern:/(\b(?:crate|mod)\s+)[a-z][a-z_\d]*/,lookbehind:!0,alias:"namespace"},{pattern:/(\b(?:crate|self|super)\s*)::\s*[a-z][a-z_\d]*\b(?:\s*::(?:\s*[a-z][a-z_\d]*\s*::)*)?/,lookbehind:!0,alias:"namespace",inside:{punctuation:/::/}}],keyword:[/\b(?:Self|abstract|as|async|await|become|box|break|const|continue|crate|do|dyn|else|enum|extern|final|fn|for|if|impl|in|let|loop|macro|match|mod|move|mut|override|priv|pub|ref|return|self|static|struct|super|trait|try|type|typeof|union|unsafe|unsized|use|virtual|where|while|yield)\b/,/\b(?:bool|char|f(?:32|64)|[ui](?:8|16|32|64|128|size)|str)\b/],function:/\b[a-z_]\w*(?=\s*(?:::\s*<|\())/,macro:{pattern:/\b\w+!/,alias:"property"},constant:/\b[A-Z_][A-Z_\d]+\b/,"class-name":/\b[A-Z]\w*\b/,namespace:{pattern:/(?:\b[a-z][a-z_\d]*\s*::\s*)*\b[a-z][a-z_\d]*\s*::(?!\s*<)/,inside:{punctuation:/::/}},number:/\b(?:0x[\dA-Fa-f](?:_?[\dA-Fa-f])*|0o[0-7](?:_?[0-7])*|0b[01](?:_?[01])*|(?:(?:\d(?:_?\d)*)?\.)?\d(?:_?\d)*(?:[Ee][+-]?\d+)?)(?:_?(?:f32|f64|[iu](?:8|16|32|64|size)?))?\b/,boolean:/\b(?:false|true)\b/,punctuation:/->|\.\.=|\.{1,3}|::|[{}[\];(),:]/,operator:/[-+*\/%!^]=?|=[=>]?|&[&=]?|\|[|=]?|<>?=?|[@?]/},e.languages.rust["closure-params"].inside.rest=e.languages.rust,e.languages.rust.attribute.inside.string=e.languages.rust.string}(Prism)},6966:()=>{Prism.languages.sql={comment:{pattern:/(^|[^\\])(?:\/\*[\s\S]*?\*\/|(?:--|\/\/|#).*)/,lookbehind:!0},variable:[{pattern:/@(["'`])(?:\\[\s\S]|(?!\1)[^\\])+\1/,greedy:!0},/@[\w.$]+/],string:{pattern:/(^|[^@\\])("|')(?:\\[\s\S]|(?!\2)[^\\]|\2\2)*\2/,greedy:!0,lookbehind:!0},identifier:{pattern:/(^|[^@\\])`(?:\\[\s\S]|[^`\\]|``)*`/,greedy:!0,lookbehind:!0,inside:{punctuation:/^`|`$/}},function:/\b(?:AVG|COUNT|FIRST|FORMAT|LAST|LCASE|LEN|MAX|MID|MIN|MOD|NOW|ROUND|SUM|UCASE)(?=\s*\()/i,keyword:/\b(?:ACTION|ADD|AFTER|ALGORITHM|ALL|ALTER|ANALYZE|ANY|APPLY|AS|ASC|AUTHORIZATION|AUTO_INCREMENT|BACKUP|BDB|BEGIN|BERKELEYDB|BIGINT|BINARY|BIT|BLOB|BOOL|BOOLEAN|BREAK|BROWSE|BTREE|BULK|BY|CALL|CASCADED?|CASE|CHAIN|CHAR(?:ACTER|SET)?|CHECK(?:POINT)?|CLOSE|CLUSTERED|COALESCE|COLLATE|COLUMNS?|COMMENT|COMMIT(?:TED)?|COMPUTE|CONNECT|CONSISTENT|CONSTRAINT|CONTAINS(?:TABLE)?|CONTINUE|CONVERT|CREATE|CROSS|CURRENT(?:_DATE|_TIME|_TIMESTAMP|_USER)?|CURSOR|CYCLE|DATA(?:BASES?)?|DATE(?:TIME)?|DAY|DBCC|DEALLOCATE|DEC|DECIMAL|DECLARE|DEFAULT|DEFINER|DELAYED|DELETE|DELIMITERS?|DENY|DESC|DESCRIBE|DETERMINISTIC|DISABLE|DISCARD|DISK|DISTINCT|DISTINCTROW|DISTRIBUTED|DO|DOUBLE|DROP|DUMMY|DUMP(?:FILE)?|DUPLICATE|ELSE(?:IF)?|ENABLE|ENCLOSED|END|ENGINE|ENUM|ERRLVL|ERRORS|ESCAPED?|EXCEPT|EXEC(?:UTE)?|EXISTS|EXIT|EXPLAIN|EXTENDED|FETCH|FIELDS|FILE|FILLFACTOR|FIRST|FIXED|FLOAT|FOLLOWING|FOR(?: EACH ROW)?|FORCE|FOREIGN|FREETEXT(?:TABLE)?|FROM|FULL|FUNCTION|GEOMETRY(?:COLLECTION)?|GLOBAL|GOTO|GRANT|GROUP|HANDLER|HASH|HAVING|HOLDLOCK|HOUR|IDENTITY(?:COL|_INSERT)?|IF|IGNORE|IMPORT|INDEX|INFILE|INNER|INNODB|INOUT|INSERT|INT|INTEGER|INTERSECT|INTERVAL|INTO|INVOKER|ISOLATION|ITERATE|JOIN|KEYS?|KILL|LANGUAGE|LAST|LEAVE|LEFT|LEVEL|LIMIT|LINENO|LINES|LINESTRING|LOAD|LOCAL|LOCK|LONG(?:BLOB|TEXT)|LOOP|MATCH(?:ED)?|MEDIUM(?:BLOB|INT|TEXT)|MERGE|MIDDLEINT|MINUTE|MODE|MODIFIES|MODIFY|MONTH|MULTI(?:LINESTRING|POINT|POLYGON)|NATIONAL|NATURAL|NCHAR|NEXT|NO|NONCLUSTERED|NULLIF|NUMERIC|OFF?|OFFSETS?|ON|OPEN(?:DATASOURCE|QUERY|ROWSET)?|OPTIMIZE|OPTION(?:ALLY)?|ORDER|OUT(?:ER|FILE)?|OVER|PARTIAL|PARTITION|PERCENT|PIVOT|PLAN|POINT|POLYGON|PRECEDING|PRECISION|PREPARE|PREV|PRIMARY|PRINT|PRIVILEGES|PROC(?:EDURE)?|PUBLIC|PURGE|QUICK|RAISERROR|READS?|REAL|RECONFIGURE|REFERENCES|RELEASE|RENAME|REPEAT(?:ABLE)?|REPLACE|REPLICATION|REQUIRE|RESIGNAL|RESTORE|RESTRICT|RETURN(?:ING|S)?|REVOKE|RIGHT|ROLLBACK|ROUTINE|ROW(?:COUNT|GUIDCOL|S)?|RTREE|RULE|SAVE(?:POINT)?|SCHEMA|SECOND|SELECT|SERIAL(?:IZABLE)?|SESSION(?:_USER)?|SET(?:USER)?|SHARE|SHOW|SHUTDOWN|SIMPLE|SMALLINT|SNAPSHOT|SOME|SONAME|SQL|START(?:ING)?|STATISTICS|STATUS|STRIPED|SYSTEM_USER|TABLES?|TABLESPACE|TEMP(?:ORARY|TABLE)?|TERMINATED|TEXT(?:SIZE)?|THEN|TIME(?:STAMP)?|TINY(?:BLOB|INT|TEXT)|TOP?|TRAN(?:SACTIONS?)?|TRIGGER|TRUNCATE|TSEQUAL|TYPES?|UNBOUNDED|UNCOMMITTED|UNDEFINED|UNION|UNIQUE|UNLOCK|UNPIVOT|UNSIGNED|UPDATE(?:TEXT)?|USAGE|USE|USER|USING|VALUES?|VAR(?:BINARY|CHAR|CHARACTER|YING)|VIEW|WAITFOR|WARNINGS|WHEN|WHERE|WHILE|WITH(?: ROLLUP|IN)?|WORK|WRITE(?:TEXT)?|YEAR)\b/i,boolean:/\b(?:FALSE|NULL|TRUE)\b/i,number:/\b0x[\da-f]+\b|\b\d+(?:\.\d*)?|\B\.\d+\b/i,operator:/[-+*\/=%^~]|&&?|\|\|?|!=?|<(?:=>?|<|>)?|>[>=]?|\b(?:AND|BETWEEN|DIV|ILIKE|IN|IS|LIKE|NOT|OR|REGEXP|RLIKE|SOUNDS LIKE|XOR)\b/i,punctuation:/[;[\]()`,.]/}},4793:()=>{Prism.languages.swift={comment:{pattern:/(^|[^\\:])(?:\/\/.*|\/\*(?:[^/*]|\/(?!\*)|\*(?!\/)|\/\*(?:[^*]|\*(?!\/))*\*\/)*\*\/)/,lookbehind:!0,greedy:!0},"string-literal":[{pattern:RegExp(/(^|[^"#])/.source+"(?:"+/"(?:\\(?:\((?:[^()]|\([^()]*\))*\)|\r\n|[^(])|[^\\\r\n"])*"/.source+"|"+/"""(?:\\(?:\((?:[^()]|\([^()]*\))*\)|[^(])|[^\\"]|"(?!""))*"""/.source+")"+/(?!["#])/.source),lookbehind:!0,greedy:!0,inside:{interpolation:{pattern:/(\\\()(?:[^()]|\([^()]*\))*(?=\))/,lookbehind:!0,inside:null},"interpolation-punctuation":{pattern:/^\)|\\\($/,alias:"punctuation"},punctuation:/\\(?=[\r\n])/,string:/[\s\S]+/}},{pattern:RegExp(/(^|[^"#])(#+)/.source+"(?:"+/"(?:\\(?:#+\((?:[^()]|\([^()]*\))*\)|\r\n|[^#])|[^\\\r\n])*?"/.source+"|"+/"""(?:\\(?:#+\((?:[^()]|\([^()]*\))*\)|[^#])|[^\\])*?"""/.source+")\\2"),lookbehind:!0,greedy:!0,inside:{interpolation:{pattern:/(\\#+\()(?:[^()]|\([^()]*\))*(?=\))/,lookbehind:!0,inside:null},"interpolation-punctuation":{pattern:/^\)|\\#+\($/,alias:"punctuation"},string:/[\s\S]+/}}],directive:{pattern:RegExp(/#/.source+"(?:"+/(?:elseif|if)\b/.source+"(?:[ \t]*"+/(?:![ \t]*)?(?:\b\w+\b(?:[ \t]*\((?:[^()]|\([^()]*\))*\))?|\((?:[^()]|\([^()]*\))*\))(?:[ \t]*(?:&&|\|\|))?/.source+")+|"+/(?:else|endif)\b/.source+")"),alias:"property",inside:{"directive-name":/^#\w+/,boolean:/\b(?:false|true)\b/,number:/\b\d+(?:\.\d+)*\b/,operator:/!|&&|\|\||[<>]=?/,punctuation:/[(),]/}},literal:{pattern:/#(?:colorLiteral|column|dsohandle|file(?:ID|Literal|Path)?|function|imageLiteral|line)\b/,alias:"constant"},"other-directive":{pattern:/#\w+\b/,alias:"property"},attribute:{pattern:/@\w+/,alias:"atrule"},"function-definition":{pattern:/(\bfunc\s+)\w+/,lookbehind:!0,alias:"function"},label:{pattern:/\b(break|continue)\s+\w+|\b[a-zA-Z_]\w*(?=\s*:\s*(?:for|repeat|while)\b)/,lookbehind:!0,alias:"important"},keyword:/\b(?:Any|Protocol|Self|Type|actor|as|assignment|associatedtype|associativity|async|await|break|case|catch|class|continue|convenience|default|defer|deinit|didSet|do|dynamic|else|enum|extension|fallthrough|fileprivate|final|for|func|get|guard|higherThan|if|import|in|indirect|infix|init|inout|internal|is|isolated|lazy|left|let|lowerThan|mutating|none|nonisolated|nonmutating|open|operator|optional|override|postfix|precedencegroup|prefix|private|protocol|public|repeat|required|rethrows|return|right|safe|self|set|some|static|struct|subscript|super|switch|throw|throws|try|typealias|unowned|unsafe|var|weak|where|while|willSet)\b/,boolean:/\b(?:false|true)\b/,nil:{pattern:/\bnil\b/,alias:"constant"},"short-argument":/\$\d+\b/,omit:{pattern:/\b_\b/,alias:"keyword"},number:/\b(?:[\d_]+(?:\.[\de_]+)?|0x[a-f0-9_]+(?:\.[a-f0-9p_]+)?|0b[01_]+|0o[0-7_]+)\b/i,"class-name":/\b[A-Z](?:[A-Z_\d]*[a-z]\w*)?\b/,function:/\b[a-z_]\w*(?=\s*\()/i,constant:/\b(?:[A-Z_]{2,}|k[A-Z][A-Za-z_]+)\b/,operator:/[-+*/%=!<>&|^~?]+|\.[.\-+*/%=!<>&|^~?]+/,punctuation:/[{}[\]();,.:\\]/},Prism.languages.swift["string-literal"].forEach((function(e){e.inside.interpolation.inside=Prism.languages.swift}))},9587:()=>{!function(e){e.languages.typescript=e.languages.extend("javascript",{"class-name":{pattern:/(\b(?:class|extends|implements|instanceof|interface|new|type)\s+)(?!keyof\b)(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?:\s*<(?:[^<>]|<(?:[^<>]|<[^<>]*>)*>)*>)?/,lookbehind:!0,greedy:!0,inside:null},builtin:/\b(?:Array|Function|Promise|any|boolean|console|never|number|string|symbol|unknown)\b/}),e.languages.typescript.keyword.push(/\b(?:abstract|declare|is|keyof|readonly|require)\b/,/\b(?:asserts|infer|interface|module|namespace|type)\b(?=\s*(?:[{_$a-zA-Z\xA0-\uFFFF]|$))/,/\btype\b(?=\s*(?:[\{*]|$))/),delete e.languages.typescript.parameter,delete e.languages.typescript["literal-property"];var t=e.languages.extend("typescript",{});delete t["class-name"],e.languages.typescript["class-name"].inside=t,e.languages.insertBefore("typescript","function",{decorator:{pattern:/@[$\w\xA0-\uFFFF]+/,inside:{at:{pattern:/^@/,alias:"operator"},function:/^[\s\S]+/}},"generic-function":{pattern:/#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*\s*<(?:[^<>]|<(?:[^<>]|<[^<>]*>)*>)*>(?=\s*\()/,greedy:!0,inside:{function:/^#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*/,generic:{pattern:/<[\s\S]+/,alias:"class-name",inside:t}}}}),e.languages.ts=e.languages.typescript}(Prism)},8848:(e,t,n)=>{var r=function(e){var t=/(?:^|\s)lang(?:uage)?-([\w-]+)(?=\s|$)/i,n=0,r={},i={manual:e.Prism&&e.Prism.manual,disableWorkerMessageHandler:e.Prism&&e.Prism.disableWorkerMessageHandler,util:{encode:function e(t){return t instanceof a?new a(t.type,e(t.content),t.alias):Array.isArray(t)?t.map(e):t.replace(/&/g,"&").replace(/=d.reach);x+=N.value.length,N=N.next){var C=N.value;if(t.length>e.length)return;if(!(C instanceof a)){var S,T=1;if(_){if(!(S=l(E,x,e,y))||S.index>=e.length)break;var k=S.index,w=S.index+S[0].length,O=x;for(O+=N.value.length;k>=O;)O+=(N=N.next).value.length;if(x=O-=N.value.length,N.value instanceof a)continue;for(var R=N;R!==t.tail&&(Od.reach&&(d.reach=L);var P=N.prev;if(D&&(P=u(t,P,D),x+=D.length),c(t,P,T),N=u(t,P,new a(f,m?i.tokenize(A,m):A,v,A)),M&&u(t,N,M),T>1){var I={cause:f+","+g,reach:L};o(e,t,n,N.prev,x,I),d&&I.reach>d.reach&&(d.reach=I.reach)}}}}}}function s(){var e={value:null,prev:null,next:null},t={value:null,prev:e,next:null};e.next=t,this.head=e,this.tail=t,this.length=0}function u(e,t,n){var r=t.next,i={value:n,prev:t,next:r};return t.next=i,r.prev=i,e.length++,i}function c(e,t,n){for(var r=t.next,i=0;i"+a.content+""},!e.document)return e.addEventListener?(i.disableWorkerMessageHandler||e.addEventListener("message",(function(t){var n=JSON.parse(t.data),r=n.language,a=n.code,l=n.immediateClose;e.postMessage(i.highlight(a,i.languages[r],r)),l&&e.close()}),!1),i):i;var d=i.util.currentScript();function f(){i.manual||i.highlightAll()}if(d&&(i.filename=d.src,d.hasAttribute("data-manual")&&(i.manual=!0)),!i.manual){var p=document.readyState;"loading"===p||"interactive"===p&&d&&d.defer?document.addEventListener("DOMContentLoaded",f):window.requestAnimationFrame?window.requestAnimationFrame(f):window.setTimeout(f,16)}return i}("undefined"!=typeof window?window:"undefined"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope?self:{});e.exports&&(e.exports=r),void 0!==n.g&&(n.g.Prism=r),r.languages.markup={comment:{pattern://,greedy:!0},prolog:{pattern:/<\?[\s\S]+?\?>/,greedy:!0},doctype:{pattern:/"'[\]]|"[^"]*"|'[^']*')+(?:\[(?:[^<"'\]]|"[^"]*"|'[^']*'|<(?!!--)|)*\]\s*)?>/i,greedy:!0,inside:{"internal-subset":{pattern:/(^[^\[]*\[)[\s\S]+(?=\]>$)/,lookbehind:!0,greedy:!0,inside:null},string:{pattern:/"[^"]*"|'[^']*'/,greedy:!0},punctuation:/^$|[[\]]/,"doctype-tag":/^DOCTYPE/i,name:/[^\s<>'"]+/}},cdata:{pattern://i,greedy:!0},tag:{pattern:/<\/?(?!\d)[^\s>\/=$<%]+(?:\s(?:\s*[^\s>\/=]+(?:\s*=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+(?=[\s>]))|(?=[\s/>])))+)?\s*\/?>/,greedy:!0,inside:{tag:{pattern:/^<\/?[^\s>\/]+/,inside:{punctuation:/^<\/?/,namespace:/^[^\s>\/:]+:/}},"special-attr":[],"attr-value":{pattern:/=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+)/,inside:{punctuation:[{pattern:/^=/,alias:"attr-equals"},{pattern:/^(\s*)["']|["']$/,lookbehind:!0}]}},punctuation:/\/?>/,"attr-name":{pattern:/[^\s>\/]+/,inside:{namespace:/^[^\s>\/:]+:/}}}},entity:[{pattern:/&[\da-z]{1,8};/i,alias:"named-entity"},/&#x?[\da-f]{1,8};/i]},r.languages.markup.tag.inside["attr-value"].inside.entity=r.languages.markup.entity,r.languages.markup.doctype.inside["internal-subset"].inside=r.languages.markup,r.hooks.add("wrap",(function(e){"entity"===e.type&&(e.attributes.title=e.content.replace(/&/,"&"))})),Object.defineProperty(r.languages.markup.tag,"addInlined",{value:function(e,t){var n={};n["language-"+t]={pattern:/(^$)/i,lookbehind:!0,inside:r.languages[t]},n.cdata=/^$/i;var i={"included-cdata":{pattern://i,inside:n}};i["language-"+t]={pattern:/[\s\S]+/,inside:r.languages[t]};var a={};a[e]={pattern:RegExp(/(<__[^>]*>)(?:))*\]\]>|(?!)/.source.replace(/__/g,(function(){return e})),"i"),lookbehind:!0,greedy:!0,inside:i},r.languages.insertBefore("markup","cdata",a)}}),Object.defineProperty(r.languages.markup.tag,"addAttribute",{value:function(e,t){r.languages.markup.tag.inside["special-attr"].push({pattern:RegExp(/(^|["'\s])/.source+"(?:"+e+")"+/\s*=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+(?=[\s>]))/.source,"i"),lookbehind:!0,inside:{"attr-name":/^[^\s=]+/,"attr-value":{pattern:/=[\s\S]+/,inside:{value:{pattern:/(^=\s*(["']|(?!["'])))\S[\s\S]*(?=\2$)/,lookbehind:!0,alias:[t,"language-"+t],inside:r.languages[t]},punctuation:[{pattern:/^=/,alias:"attr-equals"},/"|'/]}}}})}}),r.languages.html=r.languages.markup,r.languages.mathml=r.languages.markup,r.languages.svg=r.languages.markup,r.languages.xml=r.languages.extend("markup",{}),r.languages.ssml=r.languages.xml,r.languages.atom=r.languages.xml,r.languages.rss=r.languages.xml,function(e){var t=/(?:"(?:\\(?:\r\n|[\s\S])|[^"\\\r\n])*"|'(?:\\(?:\r\n|[\s\S])|[^'\\\r\n])*')/;e.languages.css={comment:/\/\*[\s\S]*?\*\//,atrule:{pattern:RegExp("@[\\w-](?:"+/[^;{\s"']|\s+(?!\s)/.source+"|"+t.source+")*?"+/(?:;|(?=\s*\{))/.source),inside:{rule:/^@[\w-]+/,"selector-function-argument":{pattern:/(\bselector\s*\(\s*(?![\s)]))(?:[^()\s]|\s+(?![\s)])|\((?:[^()]|\([^()]*\))*\))+(?=\s*\))/,lookbehind:!0,alias:"selector"},keyword:{pattern:/(^|[^\w-])(?:and|not|only|or)(?![\w-])/,lookbehind:!0}}},url:{pattern:RegExp("\\burl\\((?:"+t.source+"|"+/(?:[^\\\r\n()"']|\\[\s\S])*/.source+")\\)","i"),greedy:!0,inside:{function:/^url/i,punctuation:/^\(|\)$/,string:{pattern:RegExp("^"+t.source+"$"),alias:"url"}}},selector:{pattern:RegExp("(^|[{}\\s])[^{}\\s](?:[^{};\"'\\s]|\\s+(?![\\s{])|"+t.source+")*(?=\\s*\\{)"),lookbehind:!0},string:{pattern:t,greedy:!0},property:{pattern:/(^|[^-\w\xA0-\uFFFF])(?!\s)[-_a-z\xA0-\uFFFF](?:(?!\s)[-\w\xA0-\uFFFF])*(?=\s*:)/i,lookbehind:!0},important:/!important\b/i,function:{pattern:/(^|[^-a-z0-9])[-a-z0-9]+(?=\()/i,lookbehind:!0},punctuation:/[(){};:,]/},e.languages.css.atrule.inside.rest=e.languages.css;var n=e.languages.markup;n&&(n.tag.addInlined("style","css"),n.tag.addAttribute("style","css"))}(r),r.languages.clike={comment:[{pattern:/(^|[^\\])\/\*[\s\S]*?(?:\*\/|$)/,lookbehind:!0,greedy:!0},{pattern:/(^|[^\\:])\/\/.*/,lookbehind:!0,greedy:!0}],string:{pattern:/(["'])(?:\\(?:\r\n|[\s\S])|(?!\1)[^\\\r\n])*\1/,greedy:!0},"class-name":{pattern:/(\b(?:class|extends|implements|instanceof|interface|new|trait)\s+|\bcatch\s+\()[\w.\\]+/i,lookbehind:!0,inside:{punctuation:/[.\\]/}},keyword:/\b(?:break|catch|continue|do|else|finally|for|function|if|in|instanceof|new|null|return|throw|try|while)\b/,boolean:/\b(?:false|true)\b/,function:/\b\w+(?=\()/,number:/\b0x[\da-f]+\b|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e[+-]?\d+)?/i,operator:/[<>]=?|[!=]=?=?|--?|\+\+?|&&?|\|\|?|[?*/~^%]/,punctuation:/[{}[\];(),.:]/},r.languages.javascript=r.languages.extend("clike",{"class-name":[r.languages.clike["class-name"],{pattern:/(^|[^$\w\xA0-\uFFFF])(?!\s)[_$A-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\.(?:constructor|prototype))/,lookbehind:!0}],keyword:[{pattern:/((?:^|\})\s*)catch\b/,lookbehind:!0},{pattern:/(^|[^.]|\.\.\.\s*)\b(?:as|assert(?=\s*\{)|async(?=\s*(?:function\b|\(|[$\w\xA0-\uFFFF]|$))|await|break|case|class|const|continue|debugger|default|delete|do|else|enum|export|extends|finally(?=\s*(?:\{|$))|for|from(?=\s*(?:['"]|$))|function|(?:get|set)(?=\s*(?:[#\[$\w\xA0-\uFFFF]|$))|if|implements|import|in|instanceof|interface|let|new|null|of|package|private|protected|public|return|static|super|switch|this|throw|try|typeof|undefined|var|void|while|with|yield)\b/,lookbehind:!0}],function:/#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*(?:\.\s*(?:apply|bind|call)\s*)?\()/,number:{pattern:RegExp(/(^|[^\w$])/.source+"(?:"+/NaN|Infinity/.source+"|"+/0[bB][01]+(?:_[01]+)*n?/.source+"|"+/0[oO][0-7]+(?:_[0-7]+)*n?/.source+"|"+/0[xX][\dA-Fa-f]+(?:_[\dA-Fa-f]+)*n?/.source+"|"+/\d+(?:_\d+)*n/.source+"|"+/(?:\d+(?:_\d+)*(?:\.(?:\d+(?:_\d+)*)?)?|\.\d+(?:_\d+)*)(?:[Ee][+-]?\d+(?:_\d+)*)?/.source+")"+/(?![\w$])/.source),lookbehind:!0},operator:/--|\+\+|\*\*=?|=>|&&=?|\|\|=?|[!=]==|<<=?|>>>?=?|[-+*/%&|^!=<>]=?|\.{3}|\?\?=?|\?\.?|[~:]/}),r.languages.javascript["class-name"][0].pattern=/(\b(?:class|extends|implements|instanceof|interface|new)\s+)[\w.\\]+/,r.languages.insertBefore("javascript","keyword",{regex:{pattern:RegExp(/((?:^|[^$\w\xA0-\uFFFF."'\])\s]|\b(?:return|yield))\s*)/.source+/\//.source+"(?:"+/(?:\[(?:[^\]\\\r\n]|\\.)*\]|\\.|[^/\\\[\r\n])+\/[dgimyus]{0,7}/.source+"|"+/(?:\[(?:[^[\]\\\r\n]|\\.|\[(?:[^[\]\\\r\n]|\\.|\[(?:[^[\]\\\r\n]|\\.)*\])*\])*\]|\\.|[^/\\\[\r\n])+\/[dgimyus]{0,7}v[dgimyus]{0,7}/.source+")"+/(?=(?:\s|\/\*(?:[^*]|\*(?!\/))*\*\/)*(?:$|[\r\n,.;:})\]]|\/\/))/.source),lookbehind:!0,greedy:!0,inside:{"regex-source":{pattern:/^(\/)[\s\S]+(?=\/[a-z]*$)/,lookbehind:!0,alias:"language-regex",inside:r.languages.regex},"regex-delimiter":/^\/|\/$/,"regex-flags":/^[a-z]+$/}},"function-variable":{pattern:/#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*[=:]\s*(?:async\s*)?(?:\bfunction\b|(?:\((?:[^()]|\([^()]*\))*\)|(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*)\s*=>))/,alias:"function"},parameter:[{pattern:/(function(?:\s+(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*)?\s*\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\))/,lookbehind:!0,inside:r.languages.javascript},{pattern:/(^|[^$\w\xA0-\uFFFF])(?!\s)[_$a-z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*=>)/i,lookbehind:!0,inside:r.languages.javascript},{pattern:/(\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\)\s*=>)/,lookbehind:!0,inside:r.languages.javascript},{pattern:/((?:\b|\s|^)(?!(?:as|async|await|break|case|catch|class|const|continue|debugger|default|delete|do|else|enum|export|extends|finally|for|from|function|get|if|implements|import|in|instanceof|interface|let|new|null|of|package|private|protected|public|return|set|static|super|switch|this|throw|try|typeof|undefined|var|void|while|with|yield)(?![$\w\xA0-\uFFFF]))(?:(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*\s*)\(\s*|\]\s*\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\)\s*\{)/,lookbehind:!0,inside:r.languages.javascript}],constant:/\b[A-Z](?:[A-Z_]|\dx?)*\b/}),r.languages.insertBefore("javascript","string",{hashbang:{pattern:/^#!.*/,greedy:!0,alias:"comment"},"template-string":{pattern:/`(?:\\[\s\S]|\$\{(?:[^{}]|\{(?:[^{}]|\{[^}]*\})*\})+\}|(?!\$\{)[^\\`])*`/,greedy:!0,inside:{"template-punctuation":{pattern:/^`|`$/,alias:"string"},interpolation:{pattern:/((?:^|[^\\])(?:\\{2})*)\$\{(?:[^{}]|\{(?:[^{}]|\{[^}]*\})*\})+\}/,lookbehind:!0,inside:{"interpolation-punctuation":{pattern:/^\$\{|\}$/,alias:"punctuation"},rest:r.languages.javascript}},string:/[\s\S]+/}},"string-property":{pattern:/((?:^|[,{])[ \t]*)(["'])(?:\\(?:\r\n|[\s\S])|(?!\2)[^\\\r\n])*\2(?=\s*:)/m,lookbehind:!0,greedy:!0,alias:"property"}}),r.languages.insertBefore("javascript","operator",{"literal-property":{pattern:/((?:^|[,{])[ \t]*)(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*:)/m,lookbehind:!0,alias:"property"}}),r.languages.markup&&(r.languages.markup.tag.addInlined("script","javascript"),r.languages.markup.tag.addAttribute(/on(?:abort|blur|change|click|composition(?:end|start|update)|dblclick|error|focus(?:in|out)?|key(?:down|up)|load|mouse(?:down|enter|leave|move|out|over|up)|reset|resize|scroll|select|slotchange|submit|unload|wheel)/.source,"javascript")),r.languages.js=r.languages.javascript,function(){if(void 0!==r&&"undefined"!=typeof document){Element.prototype.matches||(Element.prototype.matches=Element.prototype.msMatchesSelector||Element.prototype.webkitMatchesSelector);var e={js:"javascript",py:"python",rb:"ruby",ps1:"powershell",psm1:"powershell",sh:"bash",bat:"batch",h:"c",tex:"latex"},t="data-src-status",n="loading",i="loaded",a="pre[data-src]:not(["+t+'="'+i+'"]):not(['+t+'="'+n+'"])';r.hooks.add("before-highlightall",(function(e){e.selector+=", "+a})),r.hooks.add("before-sanity-check",(function(l){var o=l.element;if(o.matches(a)){l.code="",o.setAttribute(t,n);var s=o.appendChild(document.createElement("CODE"));s.textContent="Loading…";var u=o.getAttribute("data-src"),c=l.language;if("none"===c){var d=(/\.(\w+)$/.exec(u)||[,"none"])[1];c=e[d]||d}r.util.setLanguage(s,c),r.util.setLanguage(o,c);var f=r.plugins.autoloader;f&&f.loadLanguages(c),function(e,n,a){var l=new XMLHttpRequest;l.open("GET",e,!0),l.onreadystatechange=function(){4==l.readyState&&(l.status<400&&l.responseText?function(e){o.setAttribute(t,i);var n=function(e){var t=/^\s*(\d+)\s*(?:(,)\s*(?:(\d+)\s*)?)?$/.exec(e||"");if(t){var n=Number(t[1]),r=t[2],i=t[3];return r?i?[n,Number(i)]:[n,void 0]:[n,n]}}(o.getAttribute("data-range"));if(n){var a=e.split(/\r\n?|\n/g),l=n[0],u=null==n[1]?a.length:n[1];l<0&&(l+=a.length),l=Math.max(0,Math.min(l-1,a.length)),u<0&&(u+=a.length),u=Math.max(0,Math.min(u,a.length)),e=a.slice(l,u).join("\n"),o.hasAttribute("data-start")||o.setAttribute("data-start",String(l+1))}s.textContent=e,r.highlightElement(s)}(l.responseText):l.status>=400?a("✖ Error "+l.status+" while fetching file: "+l.statusText):a("✖ Error: File does not exist or is empty"))},l.send(null)}(u,0,(function(e){o.setAttribute(t,"failed"),s.textContent=e}))}})),r.plugins.fileHighlight={highlight:function(e){for(var t,n=(e||document).querySelectorAll(a),i=0;t=n[i++];)r.highlightElement(t)}};var l=!1;r.fileHighlight=function(){l||(console.warn("Prism.fileHighlight is deprecated. Use `Prism.plugins.fileHighlight.highlight` instead."),l=!0),r.plugins.fileHighlight.highlight.apply(this,arguments)}}}()},2694:(e,t,n)=>{"use strict";var r=n(6925);function i(){}function a(){}a.resetWarningCache=i,e.exports=function(){function e(e,t,n,i,a,l){if(l!==r){var o=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw o.name="Invariant Violation",o}}function t(){return e}e.isRequired=e;var n={array:e,bigint:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,elementType:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t,checkPropTypes:a,resetWarningCache:i};return n.PropTypes=n,n}},5556:(e,t,n)=>{e.exports=n(2694)()},6925:e=>{"use strict";e.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},2551:(e,t,n)=>{"use strict";var r=n(6540),i=n(9982);function a(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,n=1;n