PageSourceSearch

https://buraqrewrite.vercel.app/_next/static/chunks/170-9071179398c56b90.js

js buraqrewrite.vercel.app collected 2026-10-03 06:19:34 UTC 216,063 bytes, 1 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[170],{398:(e,t,n)=>{"use strict";e.exports=n(8989).style},1147:(e,t,n)=>{"use strict";n.d(t,{D:()=>c});var r=n(3794),l=n(1450),a=n(6636);let u="undefined"!=typeof window&&void 0!==window.document&&void 0!==window.document.createElement?a.useLayoutEffect:a.useEffect;function c({ignoreHistoryMergeTagChange:e=!0,ignoreSelectionChange:t=!1,onChange:n}){let[a]=(0,r.DF)();return u(()=>{if(n)return a.registerUpdateListener(({editorState:r,dirtyElements:u,dirtyLeaves:c,prevEditorState:d,tags:h})=>{t&&0===u.size&&0===c.size||e&&h.has(l.T40)||d.isEmpty()||n(r,a,h)})},[a,e,t,n]),null}},1296:(e,t,n)=>{"use strict";n.d(t,{$:()=>et});var r=n(3794),l=n(6636);let a="undefined"!=typeof window&&void 0!==window.document&&void 0!==window.document.createElement?l.useLayoutEffect:l.useEffect;function u(e){return{initialValueFn:()=>e.isEditable(),subscribe:t=>e.registerEditableListener(t)}}var c=n(7577),d=n(6591),h=n(9709),p=n(6384),y=n(1450);function _(e,...t){let n=new URL("https://lexical.dev/docs/error"),r=new URLSearchParams;for(let n of(r.append("code",e),t))r.append("v",n);throw n.search=r.toString(),Error(`Minified Lexical error #${e}; visit ${n.toString()} for the full message or use the non-minified dev environment for full errors and additional helpful warnings.`)}let v=new Map;function b(e){let t={};if(!e)return t;for(let n of e.split(";"))if(""!==n){let[e,r]=n.split(/:([^]+)/);e&&r&&(t[e.trim()]=r.trim())}return t}function S(e,t){let n=e.getStartEndPoints();if(t.isSelected(e)&&!t.isSegmented()&&!t.isToken()&&null!==n){let[r,l]=n,a=e.isBackward(),u=r.getNode(),c=l.getNode(),d=t.is(u),h=t.is(c);if(d||h){let[n,r]=(0,y.Cku)(e),l=u.is(c),d=t.is(a?c:u),h=t.is(a?u:c),p,_=0;return l?(_=n>r?r:n,p=n>r?n:r):d?(_=a?r:n,p=void 0):h&&(_=0,p=a?n:r),t.__text=t.__text.slice(_,p),t}}return t}function x(e){return e.getNode().isAttached()}function w(e){let t=e.anchor.getNode(),n=(0,y.hVZ)(t)?t:t.getParentOrThrow(),r=(0,y.i0_)().getElementByKey(n.getKey());if(null===r)return!1;let l=r.ownerDocument.defaultView;return null!==l&&"vertical-rl"===l.getComputedStyle(r).writingMode}function C(e,t){let n=w(e)?!t:t,r=(0,y.Ave)(e.focus,n?"previous":"next");if((0,y.pGK)(r))return!1;for(let e of(0,y.mWO)(r)){if((0,y.cmH)(e))return!e.origin.isInline();if(!(0,y.ff4)(e.origin)){if((0,y.Cyw)(e.origin))return!0;break}}return!1}function E(e,t,n){let r,l=function(e){let t=e.anchor.getNode();return"rtl"===((0,y.hVZ)(t)?t:t.getParentOrThrow()).getDirection()}(e);r=w(e)||l?!n:n,e.modify(t?"extend":"move",r,"character")}let T=new Set(["STYLE","SCRIPT"]);function k(e,...t){let n=new URL("https://lexical.dev/docs/error"),r=new URLSearchParams;for(let n of(r.append("code",e),t))r.append("v",n);throw n.search=r.toString(),Error(`Minified Lexical error #${e}; visit ${n.toString()} for the full message or use the non-minified dev environment for full errors and additional helpful warnings.`)}function N(e,t,n){let r=e.getData("application/x-lexical-editor");if(r)try{let e=JSON.parse(r);if(e.namespace===n._config.namespace&&Array.isArray(e.nodes))return O(n,function(e){let t=[];for(let n=0;n<e.length;n++){let r=e[n],l=(0,y.GMe)(r);(0,y.kFe)(l)&&function(e){let t=e.getStyle(),n=b(t);v.set(t,n)}(l),t.push(l)}return t}(e.nodes),t)}catch(e){}let l=e.getData("text/html"),a=e.getData("text/plain");if(l&&a!==l)try{let e=(new DOMParser).parseFromString(window.trustedTypes&&window.trustedTypes.createPolicy?window.trustedTypes.createPolicy("lexical",{createHTML:e=>e}).createHTML(l):l,"text/html");return O(n,function(e,t){let n=t.body?t.body.childNodes:[],r=[],l=[];for(let t=0;t<n.length;t++){let a=n[t];if(!T.has(a.nodeName)){let t=function e(t,n,r,l,a=new Map,u){let c=[];if(T.has(t.nodeName))return c;let d=null,h=function(e,t){let{nodeName:n}=e,r=t._htmlConversions.get(n.toLowerCase()),l=null;if(void 0!==r)for(let t of r){let n=t(e);null!==n&&(null===l||(l.priority||0)<=(n.priority||0))&&(l=n)}return null!==l?l.conversion:null}(t,n),p=h?h(t):null,_=null;if(null!==p){_=p.after;let e=p.node;if(null!==(d=Array.isArray(e)?e[e.length-1]:e)){for(let[,e]of a)if(!(d=e(d,u)))break;d&&c.push(...Array.isArray(e)?e:[d])}null!=p.forChild&&a.set(t.nodeName,p.forChild)}let v=t.childNodes,b=[],S=(null==d||!(0,y.IqF)(d))&&(null!=d&&(0,y.y68)(d)||l);for(let t=0;t<v.length;t++)b.push(...e(v[t],n,r,S,new Map(a),d));return null!=_&&(b=_(b)),(0,y.a9V)(t)&&(b=function(e,t,n){let r=e.style.textAlign,l=[],a=[];for(let e=0;e<t.length;e++){let u=t[e];if((0,y.y68)(u))r&&!u.getFormat()&&u.setFormat(r),l.push(u);else if(a.push(u),e===t.length-1||e<t.length-1&&(0,y.y68)(t[e+1])){let e=n();e.setFormat(r),e.append(...a),l.push(e),a=[]}}return l}(t,b,S?()=>{let e=new y.A7V;return r.push(e),e}:y.lJ7)),null==d?b.length>0?c=c.concat(b):(0,y.a9V)(t)&&null!=t.nextSibling&&null!=t.previousSibling&&(0,y._On)(t.nextSibling)&&(0,y._On)(t.previousSibling)&&(c=c.concat((0,y.WKo)())):(0,y.ff4)(d)&&d.append(...b),c}(a,e,l,!1);null!==t&&(r=r.concat(t))}}return function(e){for(let t of e)t.getNextSibling()instanceof y.A7V&&t.insertAfter((0,y.WKo)());for(let t of e){for(let e of t.getChildren())t.insertBefore(e);t.remove()}}(l),r}(n,e),t)}catch(e){}
1let u=a||e.getData("text/uri-list");if(null!=u)if((0,y.I2P)(t)){let e=u.split(/(\r?\n|\t)/);""===e[e.length-1]&&e.pop();for(let t=0;t<e.length;t++){let n=(0,y.vJq)();if((0,y.I2P)(n)){let r=e[t];"\n"===r||"\r\n"===r?n.insertParagraph():"	"===r?n.insertNodes([(0,y.ev7)()]):n.insertText(r)}}}else t.insertRawText(u)}function O(e,t,n){e.dispatchCommand(y.oqR,{nodes:t,selection:n})||n.insertNodes(t)}let A=null;async function P(e,t,n){if(null!==A)return!1;if(null!==t)return new Promise((r,l)=>{e.update(()=>{r(M(e,t,n))})});let r=e.getRootElement(),l=e._window||window,a=window.document,u=(0,y.peL)(l);if(null===r||null===u)return!1;let c=a.createElement("span");c.style.cssText="position: fixed; top: -1000px;",c.append(a.createTextNode("#")),r.append(c);let h=new Range;return h.setStart(c,0),h.setEnd(c,1),u.removeAllRanges(),u.addRange(h),new Promise((t,r)=>{let l=e.registerCommand(y.u5G,r=>((0,d.xj)(r,ClipboardEvent)&&(l(),null!==A&&(window.clearTimeout(A),A=null),t(M(e,r,n))),!0),y.da8);A=window.setTimeout(()=>{l(),A=null,t(!1)},50),a.execCommand("copy"),c.remove()})}function M(e,t,n){if(void 0===n){let t=(0,y.peL)(e._window);if(!t)return!1;let r=t.anchorNode,l=t.focusNode;if(null!==r&&null!==l&&!(0,y.LYZ)(e,r,l))return!1;let a=(0,y.vJq)();if(null===a)return!1;n=function(e=(0,y.vJq)()){let t={"text/plain":e?e.getTextContent():""};if(e){let n=(0,y.i0_)();for(let[r,l]of R){let a=l(n,e);null!==a&&(t[r]=a)}}return t}(a)}t.preventDefault();let r=t.clipboardData;return null!==r&&(function(e,t){for(let n in t){let r=t[n];void 0!==r&&e.setData(n,r)}}(r,n),!0)}let R=[["text/html",function(e,t=(0,y.vJq)()){return null==t&&k(166),(0,y.I2P)(t)&&t.isCollapsed()||0===t.getNodes().length?"":function(e,t){if("undefined"==typeof document||"undefined"==typeof window&&void 0===global.window)throw Error("To use $generateHtmlFromNodes in headless mode please initialize a headless browser implementation such as JSDom before calling this function.");let n=document.createElement("div"),r=(0,y.NiT)().getChildren();for(let l=0;l<r.length;l++)!function e(t,n,r,l=null){let a=null===l||n.isSelected(l),u=(0,y.ff4)(n)&&n.excludeFromCopy("html"),c=n;if(null!==l){let e=(0,y.BEs)(n);c=e=(0,y.kFe)(e)&&null!==l?S(l,e):e}let d=(0,y.ff4)(c)?c.getChildren():[],h=t._nodes.get(c.getType()),{element:p,after:_}=h&&void 0!==h.exportDOM?h.exportDOM(t,c):c.exportDOM(t);if(!p)return!1;let v=document.createDocumentFragment();for(let r=0;r<d.length;r++){let u=d[r],c=e(t,u,v,l);!a&&(0,y.ff4)(n)&&c&&n.extractWithChild(u,l,"html")&&(a=!0)}if(a&&!u){if(((0,y.sby)(p)||(0,y.K8K)(p))&&p.append(v),r.append(p),_){let e=_.call(c,p);e&&((0,y.K8K)(p)?p.replaceChildren(e):p.replaceWith(e))}}else r.append(v);return a}(e,r[l],n,t);return n.innerHTML}(e,t)}],["application/x-lexical-editor",function(e,t=(0,y.vJq)()){return null==t&&k(166),(0,y.I2P)(t)&&t.isCollapsed()||0===t.getNodes().length?null:JSON.stringify(function(e,t){let n=[],r=(0,y.NiT)().getChildren();for(let l=0;l<r.length;l++)!function e(t,n,r,l=[]){let a=null===n||r.isSelected(n),u=(0,y.ff4)(r)&&r.excludeFromCopy("html"),c=r;if(null!==n){let e=(0,y.BEs)(r);c=e=(0,y.kFe)(e)&&null!==n?S(n,e):e}let d=(0,y.ff4)(c)?c.getChildren():[],h=function(e){let t=e.exportJSON(),n=e.constructor;return t.type!==n.getType()&&k(58,n.name),(0,y.ff4)(e)&&(Array.isArray(t.children)||k(59,n.name)),t}(c);if((0,y.kFe)(c)){let e=c.__text;e.length>0?h.text=e:a=!1}for(let l=0;l<d.length;l++){let u=d[l],c=e(t,n,u,h.children);!a&&(0,y.ff4)(r)&&c&&r.extractWithChild(u,n,"clone")&&(a=!0)}if(a&&!u)l.push(h);else if(Array.isArray(h.children))for(let e=0;e<h.children.length;e++){let t=h.children[e];l.push(t)}return a}(e,t,r[l],n);return{namespace:e._config.namespace,nodes:n}}(e,t))}]];function F(e,t){if(void 0!==document.caretRangeFromPoint){let n=document.caretRangeFromPoint(e,t);return null===n?null:{node:n.startContainer,offset:n.startOffset}}if("undefined"!==document.caretPositionFromPoint){let n=document.caretPositionFromPoint(e,t);return null===n?null:{node:n.offsetNode,offset:n.offset}}return null}let D="undefined"!=typeof window&&void 0!==window.document&&void 0!==window.document.createElement,L=D&&"documentMode"in document?document.documentMode:null,I=!(!D||
1!("InputEvent"in window)||L)&&"getTargetRanges"in new window.InputEvent("input"),B=D&&/Version\/[\d.]+.*Safari/.test(navigator.userAgent),j=D&&/iPad|iPhone|iPod/.test(navigator.userAgent)&&!window.MSStream,z=D&&/^(?=.*Chrome).*/i.test(navigator.userAgent),K=D&&/AppleWebKit\/[\d.]+/.test(navigator.userAgent)&&!z,U=(0,y.guI)("DRAG_DROP_PASTE_FILE");class W extends null{static getType(){return"quote"}static clone(e){return new W(e.__key)}createDOM(e){let t=document.createElement("blockquote");return o(t,e.theme.quote),t}updateDOM(e,t){return!1}static importDOM(){return{blockquote:e=>({conversion:V,priority:0})}}exportDOM(e){let{element:t}=super.exportDOM(e);if(i(t)){this.isEmpty()&&t.append(document.createElement("br"));let e=this.getFormatType();e&&(t.style.textAlign=e);let n=this.getDirection();n&&(t.dir=n)}return{element:t}}static importJSON(e){return f(new W).updateFromJSON(e)}insertNewAfter(e,t){let n=m(),r=this.getDirection();return n.setDirection(r),this.insertAfter(n,t),n}collapseAtStart(){let e=m();return this.getChildren().forEac
1h(t=>e.append(t)),this.replace(e),!0}canMergeWhenEmpty(){return!0}}class J extends y.fGB{static getType(){return"heading"}static clone(e){return new J(e.__tag,e.__key)}constructor(e,t){super(t),this.__tag=e}getTag(){return this.__tag}setTag(e){let t=this.getWritable();return this.__tag=e,t}createDOM(e){let t=this.__tag,n=document.createElement(t),r=e.theme.heading;if(void 0!==r){let e=r[t];(0,d.ZB)(n,e)}return n}updateDOM(e,t,n){return e.__tag!==this.__tag}static importDOM(){return{h1:e=>({conversion:Z,priority:0}),h2:e=>({conversion:Z,priority:0}),h3:e=>({conversion:Z,priority:0}),h4:e=>({conversion:Z,priority:0}),h5:e=>({conversion:Z,priority:0}),h6:e=>({conversion:Z,priority:0}),p:e=>{let t=e.firstChild;return null!==t&&q(t)?{conversion:()=>({node:null}),priority:3}:null},span:e=>q(e)?{conversion:e=>({node:$("h1")}),priority:3}:null}}exportDOM(e){let{element:t}=super.exportDOM(e);if((0,y.sby)(t)){this.isEmpty()&&t.append(document.createElement("br"));let e=this.getFormatType();e&&(t.style.textAlign=e);let n=this.getDirection();n&&(t.dir=n)}return{element:t}}static importJSON(e){return $(e.tag).updateFromJSON(e)}updateFromJSON(e){return super.updateFromJSON(e).setTag(e.tag)}exportJSON(){return{...super.exportJSON(),tag:this.getTag()}}insertNewAfter(e,t=!0){let n=e?e.anchor.offset:0,r=this.getLastDescendant(),l=r&&(!e||e.anchor.key!==r.getKey()||n!==r.getTextContentSize())&&e?$(this.getTag()):(0,y.lJ7)(),a=this.getDirection();if(l.setDirection(a),this.insertAfter(l,t),0===n&&!this.isEmpty()&&e){let e=(0,y.lJ7)();e.select(),this.replace(e,!0)}return l}collapseAtStart(){let e=this.isEmpty()?(0,y.lJ7)():$(this.getTag());
1return this.getChildren().forEach(t=>e.append(t)),this.replace(e),!0}extractWithChild(){return!0}}function q(e){return"span"===e.nodeName.toLowerCase()&&"26pt"===e.style.fontSize}function Z(e){let t=e.nodeName.toLowerCase(),n=null;return"h1"!==t&&"h2"!==t&&"h3"!==t&&"h4"!==t&&"h5"!==t&&"h6"!==t||(n=$(t),null!==e.style&&((0,y.dxY)(e,n),n.setFormat(e.style.textAlign))),{node:n}}function V(e){let t=f(new W);return null!==e.style&&(t.setFormat(e.style.textAlign),g(e,t)),{node:t}}function $(e="h1"){return(0,y.pTq)(new J(e))}function H(e){let t=null;if((0,d.xj)(e,DragEvent)?t=e.dataTransfer:(0,d.xj)(e,ClipboardEvent)&&(t=e.clipboardData),null===t)return[!1,[],!1];let n=t.types,r=n.includes("Files"),l=n.includes("text/html")||n.includes("text/plain");return[r,Array.from(t.files),l]}function Y(e){let t=(0,y.vJq)();if(!(0,y.I2P)(t))return!1;let n=new Set,r=t.getNodes();for(let t=0;t<r.length;t++){let l=r[t],a=l.getKey();if(n.has(a))continue;let u=(0,d.Bt)(l,e=>(0,y.ff4)(e)&&!e.isInline());if(null===u)continue;let c=u.getKey();u.canIndent()&&!n.has(c)&&(n.add(c),e(u))}return n.size>0}function X(e){let t=(0,y.xL4)(e);return(0,y.Cyw)(t)}function G(e){for(let t of["lowercase","uppercase","capitalize"])e.hasFormat(t)&&e.toggleFormat(t)}let Q="undefined"!=typeof window&&void 0!==window.document&&void 0!==window.document.createElement?l.useLayoutEffect:l.useEffect;function ee(e){return e.getEditorState().read((0,c.yl)(e.isComposing()))}function et({contentEditable:e,placeholder:t=null,ErrorBoundary:n}){var a;let[u]=(0,r.DF)(),c=function(e,t){let[n,r]=(0,l.useState)(()=>e.getDecorators());return Q(()=>e.registerDecoratorListener(e=>{(0,h.flushSync)(()=>{r(e)})}),[e]),(0,l.useEffect)(()=>{r(e.getDecorators())},[e]),(0,l.useMemo)(()=>{let r=[],a=Object.keys(n);for(let u=0;u<a.length;u++){let c=a[u],d=(0,p.jsx)(t,{onError:t=>e._onError(t),children:(0,p.jsx)(l.Suspense,{fallback:null,children:n[c]})}),y=e.getElementByKey(c);null!==y&&r.push((0,h.createPortal)(d,y,c))}return r},[t,n,e])}(u,n);return Q(()=>{var e;return(0,d.Sd)((e=a,(0,d.Sd)(e.registerCommand(y.d8p,e=>{let t=(0,y.vJq)();return!!(0,y.RTZ)(t)&&(t.clear(),!0)},0),e.registerCommand(y.WuB,e=>{let t=(0,y.vJq)();return(0,y.I2P)(t)?(t.deleteCharacter(e),!0):!!(0,y.RTZ)(t)&&(t.deleteNodes(),!0)},y.jZM),e.registerCommand(y.hi0,e=>{let t=(0,y.vJq)();return!!(0,y.I2P)(t)&&(t.deleteWord(e),!0)},y.jZM),e.registerCommand(y.viC,e=>{let t=(0,y.vJq)();return!!(0,y.I2P)(t)&&(t.deleteLine(e),!0)},y.jZM),e.registerCommand(y.bM3,t=>{let n=(0,y.vJq)();if("string"==typeof t)null!==n&&n.insertText(t);else{if(null===n)return!1;let r=t.dataTransfer;if(null!=r)N(r,n,e);else if((0,y.I2P)(n)){let e=t.data;return e&&n.insertText(e),!0}}return!0},y.jZM),e.registerCommand(y.$ey,()=>{let e=(0,y.vJq)();return!!(0,y.I2P)(e)&&(e.removeText(),!0)},y.jZM),e.registerCommand(y.mB,e=>{let t=(0,y.vJq)();return!!(0,y.I2P)(t)&&(t.formatText(e),!0)},y.jZM),e.registerCommand(y.fUS,e=>{let t=(0,y.vJq)();if(!(0,y.I2P)(t)&&!(0,y.RTZ)(t))return!1;for(let n of t.getNodes()){let t=(0,d.Bt)(n,e=>(0,y.ff4)(e)&&!e.isInline());null!==t&&t.setFormat(e)}return!0},y.jZM),e.registerCommand(y.FEN,e=>{let t=(0,y.vJq)();return!!(0,y.I2P)(t)&&(t.insertLineBreak(e),!0)},y.jZM),e.registerCommand(y.XKQ,()=>{let e=(0,y.vJq)();return!!(0,y.I2P)(e)&&(e.insertParagraph(),!0)},y.jZM),e.registerCommand(y.YW5,()=>((0,y.H2A)([(0,y.ev7)()]),!0),y.jZM),e.registerCommand(y.PiT,()=>Y(e=>{let t=e.getIndent();e.setIndent(t+1)}),y.jZM),e.registerCommand(y.sik,()=>Y(e=>{let t=e.getIndent();t>0&&e.setIndent(Math.max(0,t-1))}),y.jZM),e.registerCommand(y.UDz,e=>{let t=(0,y.vJq)();if((0,y.RTZ)(t)){let e=t.getNodes();if(e.length>0)return e[0].selectPrevious(),!0}else if((0,y.I2P)(t)){let n=(0,y.B$P)(t.focus,!0);if(!e.shiftKey&&(0,y.Cyw)(n)&&!n.isIsolated()&&!n.isInline())return n.selectPrevious(),e.preventDefault(),!0}return!1},y.jZM),e.registerCommand(y.bbF,e=>{let t=(0,y.vJq)();if((0,y.RTZ)(t)){let e=t.getNodes();if(e.length>0)return e[0].selectNext(0,0),!0}else if((0,y.I2P)(t)){if(function(e){let t=e.focus;return"root"===t.key&&t.offset===(0,y.NiT)().getChildrenSize()}(t))return e.preventDefault(),!0;let n=(0,y.B$P)(t.focus,!1);if(!e.shiftKey&&(0,y.Cyw)(n)&&!n.isIsolated()&&!n.isInline())return n.selectNext(),e.preventDefault(),!0}return!1},y.jZM),e.registerCommand(y.AX0,e=>{let t=(0,y.vJq)();if((0,y.RTZ)(t)){let n=t.getNodes();if(n.length>0)return e.preventDefault(),n[0].selectPrevious(),!0}if(!(0,y.I2P)(t))return!1;if(C(t,!0)){let n=e.shiftKey;return e.preventDefault(),E(t,n,!0),!0}return!1},y.jZM),e.registerCommand(y.JM3,e=>{let t=(0,y.vJq)();if((0,y.RTZ)(t)){let n=t.getNodes();if(n.length>0)return e.preventDefault(),n[0].selectNext(0,0),!0}if(!(0,y.I2P)(t))return!1;let n=e.shiftKey;return!!C(t,!1)&&(e.preventDefault(),E(t,n,!1),!0)},y.jZM),e.registerCommand(y.gCZ,t=>{if(X(t.target))return!1;let n=(0,y.vJq)();if((0,y.I2P)(n)){if(function(e){if(!e.isCollapsed())return!1;let{anchor:t}=e;if(0!==t.offset)return!1;let n=t.getNode();if((0,y.hVZ)(n))return!1;let r=(0,d.mB)(n);return r.getIndent()>0&&(r.is(n)||n.is(r.getFirstDescendant()))}(n))return t.preventDefault(),e.dispatchCommand(y.sik,void 0);if(j&&"ko-KR"===navigator.language)return!1}else if(!(0,y.RTZ)(n))return!1;return t.preventDefault(),e.dispatchCommand(y.WuB,!0)},y.jZM),e.registerCommand(y.w$Z,t=>{if(X(t.target))return!1;let n=(0,y.vJq)();return!(!(0,y.I2P)(n)&&!(0,y.RTZ)(n))&&(t.preventDefault(),e.dispatchCommand(y.WuB,!1))},y.jZM),e.registerCommand(y.RTo,t=>{let n=(0,y.vJq)();if(!(0,y.I2P)(n))return!1;if(G(n),null!==t){if((j||B||K)&&I)return!1;if(t.preventDefault(),t.shiftKey)return e.dispatchCommand(y.FEN,!1)}return e.dispatchCommand(y.XKQ,void 0)},y.jZM),e.registerCommand(y.Q$N,()=>{let t=(0,y.vJq)();return!!(0,y.I2P)(t)&&(e.blur(),!0)},y.jZM),e.registerCommand(y.Sr4,t=>{let[,n]=H(t);if(n.length>0){let r=F(t.clientX,t.clientY);if(null!==r){let{offset:t,node:l}=r,a=(0,y.xL4)(l);if(null!==a){let e=(0,y.uTE)();if((0,y.kFe)(a))e.anchor.set(a.getKey(),t,"text"),e.focus.set(a.getKey(),t,"text");else{let t=a.getParentOrThrow().getKey(),n=a.getIndexWithinParent()+1;e.anchor.set(t,n,"element"),e.focus.set(t,n,"element")}let n=(0,y.CaD)(e);(0,y.n1P)(n)}e.dispatchCommand(U,n)}return t.preventDefault(),!0}let r=(0,y.vJq)();return!!(0,y.I2P)(r)},y.jZM),e.registerCommand(y.TgX,e=>{let[t]=H(e),n=(0,y.vJq)();return!(t&&!(0,y.I2P)(n))},y.jZM),e.registerCommand(y.riq,e=>{let[t]=H(e),n=(0,y.vJq)();if(t&&!(0,y.I2P)(n))return!1;let r=F(e.clientX,e.clientY);if(null!==r){let t=(0,y.xL4)(r.node);(0,y.Cyw)(t)&&e.preventDefault()}return!0},y.jZM),e.registerCommand(y.HYn,()=>((0,y.e1k)(),!0),y.jZM),e.registerCommand(y.u5G,t=>(P(e,(0,d.xj)(t,ClipboardEvent)?t:null),!0),y.jZM),e.registerCommand(y.VSO,t=>((async function(e,t){await P(t,(0,d.xj)(e,ClipboardEvent)?e:null),t.update(()=>{let e=(0,y.vJq)();
1(0,y.I2P)(e)?e.removeText():(0,y.RTZ)(e)&&e.getNodes().forEach(e=>e.remove())})})(t,e),!0),y.jZM),e.registerCommand(y.waI,t=>{let[,n,r]=H(t);return n.length>0&&!r?(e.dispatchCommand(U,n),!0):!((0,y.vAA)(t.target)&&(0,y.Z$U)(t.target))&&null!==(0,y.vJq)()&&(t.preventDefault(),e.update(()=>{let n=(0,y.vJq)(),r=(0,d.xj)(t,InputEvent)||(0,d.xj)(t,KeyboardEvent)?null:t.clipboardData;null!=r&&null!==n&&N(r,n,e)},{tag:y.fwY}),!0)},y.jZM),e.registerCommand(y.Huu,e=>{let t=(0,y.vJq)();return(0,y.I2P)(t)&&G(t),!1},y.jZM),e.registerCommand(y.OXk,e=>{let t=(0,y.vJq)();return(0,y.I2P)(t)&&G(t),!1},y.jZM))),function(e){let t=window.location.origin,n=n=>{if(n.origin!==t)return;let r=e.getRootElement();if(document.activeElement!==r)return;let l=n.data;if("string"==typeof l){let t;try{t=JSON.parse(l)}catch(e){return}if(t&&"nuanria_messaging"===t.protocol&&"request"===t.type){let r=t.payload;if(r&&"makeChanges"===r.functionId){let t=r.args;if(t){let[r,l,a,u,c,d]=t;e.update(()=>{let e=(0,y.vJq)();if((0,y.I2P)(e)){let t=e.anchor,d=t.getNode(),h=0,p=0;if((0,y.kFe)(d)&&r>=0&&l>=0&&(h=r,p=r+l,e.setTextNodeRange(d,h,d,p)),h===p&&""===a||(e.insertRawText(a),d=t.getNode()),(0,y.kFe)(d)){h=u,p=u+c;let t=d.getTextContentSize();h=h>t?t:h,p=p>t?t:p,e.setTextNodeRange(d,h,d,p)}n.stopImmediatePropagation()}})}}}}};return window.addEventListener("message",n,!0),()=>{window.removeEventListener("message",n,!0)}}(a))},[a=u]),(0,p.jsxs)(p.Fragment,{children:[e,(0,p.jsx)(en,{content:t}),c]})}function en({content:e}){let[t]=(0,r.DF)(),n=function(e){let[t,n]=(0,l.useState)(()=>ee(e));return Q(()=>{function t(){n(ee(e))}return t(),(0,d.Sd)(e.registerUpdateListener(()=>{t()}),e.registerEditableListener(()=>{t()}))},[e]),t}(t),c=function(){let[e]=(0,r.DF)(),t=(0,l.useMemo)(()=>u(e),[e,u]),[n,c]=(0,l.useState)(()=>t.initialValueFn()),d=(0,l.useRef)(n);return a(()=>{let{initialValueFn:e,subscribe:n}=t,r=e();return d.current!==r&&(d.current=r,c(r)),n(e=>{d.current=e,c(e)})},[t,u]),n}();return n?"function"==typeof e?e(c):e:null}},1450:(e,t,n)=>{"use strict";function r(e,...t){let n=new URL("https://lexical.dev/docs/error"),l=new URLSearchParams;for(let n of(l.append("code",e),t))l.append("v",n);throw n.search=l.toString(),Error(`Minified Lexical error #${e}; visit ${n.toString()} for the full message or use the non-minified dev environment for full errors and additional helpful warnings.`)}n.d(t,{$ey:()=>eL,A7V:()=>ru,AX0:()=>eq,Ave:()=>i1,B$P:()=>r4,BEs:()=>iT,CaD:()=>V,Cku:()=>na,Cyw:()=>n3,FEN:()=>eM,GMe:()=>nZ,H2A:()=>nN,HYn:()=>tt,Huu:()=>eY,I2P:()=>ni,IqF:()=>ia,JM3:()=>eW,K8K:()=>iy,KfJ:()=>to,LYZ:()=>rx,NiT:()=>rK,OXk:()=>e0,PiT:()=>e2,Q$N:()=>eG,RTZ:()=>nl,RTo:()=>eH,SKc:()=>tn,Sr4:()=>e5,T40:()=>ri,TgX:()=>e3,UDz:()=>eV,V30:()=>eK,VSO:()=>te,WKo:()=>tK,WWb:()=>ti,WuB:()=>eP,XKQ:()=>eR,YW5:()=>e1,Z$U:()=>rS,ZKf:()=>ez,_On:()=>i_,a9V:()=>iv,bM3:()=>eF,bMH:()=>rr,bSg:()=>rh,bbF:()=>e$,cmH:()=>iI,d8p:()=>eA,da8:()=>rp,dxY:()=>ik,e1k:()=>r6,ev7:()=>t7,fGB:()=>n2,fUS:()=>e8,ff4:()=>n6,fwY:()=>ro,gCZ:()=>eX,guI:()=>ek,hVZ:()=>n7,hi0:()=>eI,i0_:()=>ix,ieJ:()=>ry,jZM:()=>rg,kFe:()=>t8,lJ7:()=>rd,mB:()=>ej,mWO:()=>i$,n0X:()=>rn,n1P:()=>rW,oqR:()=>eO,pGK:()=>i9,pTq:()=>iu,peL:()=>ig,riq:()=>e4,sTu:()=>t5,sby:()=>ip,sik:()=>e6,t5V:()=>tr,u5G:()=>e9,uTE:()=>n_,vAA:()=>im,vJq:()=>nS,viC:()=>eB,w$Z:()=>eQ,waI:()=>eD,xL4:()=>rB,y68:()=>nm});let l="undefined"!=typeof window&&void 0!==window.document&&void 0!==window.document.createElement,a=l&&"documentMode"in document?document.documentMode:null,u=l&&/Mac|iPod|iPhone|iPad/.test(navigator.platform),c=l&&/^(?!.*Seamonkey)(?=.*Firefox).*/i.test(navigator.userAgent),d=!(!l||!("InputEvent"in window)||a)&&"getTargetRanges"in new window.InputEvent("input"),h=l&&/Version\/[\d.]+.*Safari/.test(navigator.userAgent),p=l&&/iPad|iPhone|iPod/.test(navigator.userAgent)&&!window.MSStream,y=l&&/Android/.test(navigator.userAgent),_=l&&/^(?=.*Chrome).*/i.test(navigator.userAgent),v=l&&y&&_,b=l&&/AppleWebKit\/[\d.]+/.test(navigator.userAgent)&&!_;function S(...e){let t=[];for(let n of e)if(n&&"string"==typeof n)for(let[e]of n.matchAll(/\S+/g))t.push(e);return t}let x=h||p||b?"\xa0":"​",w=c?"\xa0":x,C="֑-߿יִ-﷽ﹰ-ﻼ",E="A-Za-z\xc0-\xd6\xd8-\xf6\xf8-ʸ̀-֐ࠀ-῿‎Ⰰ-﬜︀-﹯﻽-￿",T=RegExp("^[^"+E+"]*["+C+"]"),k=RegExp("^[^"+C+"]*["+E+"]"),N={bold:1,capitalize:1024,code:16,highlight:128,italic:2,lowercase:256,strikethrough:4,subscript:32,superscript:64,underline:8,uppercase:512},O={directionless:1,unmergeable:2},A={center:2,end:6,justify:4,left:1,right:3,start:5},P={2:"center",6:"end",4:"justify",1:"left",3:"right",5:"start"},M={normal:0,segmented:2,token:1},R={0:"normal",2:"segmented",1:"token"},F=!1,D=0;function L(e){D=e.timeStamp}function I(e,t,n){let r="BR"===e.nodeName,l=t.__lexicalLineBreak;return l&&(e===l||r&&e.previousSibling===l)||r&&void 0!==rI(e,n)}function B(e,t,n){F=!0;let r=performance.now()-D>100;try{nQ(e,()=>{let l=nS()||e.getEditorState().read(()=>{let e=nS();return null!==e?e.clone():null}),a=new Map,u=e.getRootElement(),d=e._editorState,h=e._blockCursorElement,p=!1,y="";for(let n=0;n<t.length;n++){let _=t[n],v=_.type,b=_.target,S=function(e,t,n,r){var l;
1for(let a=e;a&&(l=a,!0!==l.__lexicalUnmanaged);a=ir(a)){let e=rI(a,t);if(void 0!==e){let t=rD(e,n);if(t)return n3(t)||!ip(a)?void 0:[a,t]}else if(a===r)return[r,rU(n)]}}(b,e,d,u);if(!S)continue;let[x,w]=S;if("characterData"===v)r&&t8(w)&&rk(b)&&function(e,t,n){if(ni(e)){let t=e.anchor.getNode();if(t.is(n)&&e.format!==t.getFormat())return!1}return rk(t)&&n.isAttached()}(l,b,w)&&function(e,t,n){let r=ig(is(n)),l=null,a=null;null!==r&&r.anchorNode===e&&(l=r.anchorOffset,a=r.focusOffset);let u=e.nodeValue;null!==u&&rX(t,u,l,a,!1)}(b,w,e);else if("childList"===v){p=!0;let t=_.addedNodes;for(let n=0;n<t.length;n++){let r=t[n],l=rL(r),a=r.parentNode;if(null!=a&&r!==h&&null===l&&!I(r,a,e)){if(c){let e=(ip(r)?r.innerText:null)||r.nodeValue;e&&(y+=e)}a.removeChild(r)}}let n=_.removedNodes,r=n.length;if(r>0){let t=0;for(let l=0;l<r;l++){let r=n[l];(I(r,b,e)||h===r)&&(b.appendChild(r),t++)}r!==t&&a.set(x,w)}}}if(a.size>0)for(let[t,n]of a)n.reconcileObservedMutation(t,e);let _=n.takeRecords();if(_.length>0){for(let t=0;t<_.length;t++){let n=_[t],r=n.addedNodes,l=n.target;for(let t=0;t<r.length;t++){let n=r[t],a=n.parentNode;null==a||"BR"!==n.nodeName||I(n,l,e)||a.removeChild(n)}}n.takeRecords()}null!==l&&(p&&rW(l),c&&r7(e)&&l.insertRawText(y))})}finally{F=!1}}function j(e){let t=e._observer;null!==t&&B(e,t.takeRecords(),t)}function z(e){0===D&&is(e).addEventListener("textInput",L,!0),e._observer=new MutationObserver((t,n)=>{B(e,t,n)})}function K(e){return e}class U{constructor(e,t=new Map,n,r=new Map,l){this.node=e,this.sharedConfigMap=t,this.unknownState=n,this.knownState=r;let a=void 0!==l?l:function(e,t,n){let r=n.size;if(t)for(let l in t){let t=e.get(l);t&&n.has(t)||r++}return r}(t,n,r);this.size=a}getValue(e){let t=this.knownState.get(e);if(void 0!==t)return t;this.sharedConfigMap.set(e.key,e);let n=e.defaultValue;if(this.unknownState&&e.key in this.unknownState){let t=this.unknownState[e.key];void 0!==t&&(n=e.parse(t)),this.updateFromKnown(e,n)}return n}getInternalState(){return[this.unknownState,this.knownState]}toJSON(){let e={...this.unknownState};for(let[t,n]of this.knownState)t.isEqual(n,t.defaultValue)?delete e[t.key]:e[t.key]=t.unparse(n);return W(e)?{$:e}:{}}getWritable(e){var t;if(this.node===e)return this;let n=new Map(this.knownState),r=W(t=this.unknownState)&&{...t};if(r)for(let e of n.keys())delete r[e.key];return new U(e,this.sharedConfigMap,W(r),n,this.size)}updateFromKnown(e,t){let n=e.key;this.sharedConfigMap.set(n,e);let{knownState:r,unknownState:l}=this;r.has(e)||l&&n in l||this.size++,r.set(e,t)}updateFromUnknown(e,t){let n=this.sharedConfigMap.get(e);n?this.updateFromKnown(n,n.parse(t)):(this.unknownState=this.unknownState||{},e in this.unknownState||this.size++,this.unknownState[e]=t)}updateFromJSON(e){let{knownState:t}=this;for(let e of t.keys())t.set(e,e.defaultValue);if(this.size=t.size,this.unknownState={},e)for(let[t,n]of Object.entries(e))this.updateFromUnknown(t,n);this.unknownState=W(this.unknownState)}}function W(e){if(e)for(let t in e)return e}function J(e,t){let n=e.__mode,r=e.__format,l=e.__style,a=t.__mode,u=t.__format,c=t.__style,d=e.__state,h=t.__state;return(null===n||n===a)&&(null===r||r===u)&&(null===l||l===c)&&(null===e.__state||d===h||function(e,t){if(e===t)return!0;if(e&&t&&e.size!==t.size)return!1;let n=new Set,r=(e,t)=>{for(let[r,l]of e.knownState){if(n.has(r.key))continue;n.add(r.key);let e=t?t.getValue(r):r.defaultValue;if(e!==l&&!r.isEqual(e,l))return!0}return!1},l=(e,t)=>
1{let{unknownState:r}=e,l=t?t.unknownState:void 0;if(r){for(let[e,t]of Object.entries(r))if(!n.has(e)&&(n.add(e),t!==(l?l[e]:void 0)))return!0}return!1};return!(e&&r(e,t)||t&&r(t,e)||e&&l(e,t)||t&&l(t,e))}(d,h))}function q(e,t){let n=e.mergeWithSibling(t),r=nK()._normalizedNodes;return r.add(e.__key),r.add(t.__key),n}function Z(e){let t,n,r=e;if(""!==r.__text||!r.isSimpleText()||r.isUnmergeable()){for(;null!==(t=r.getPreviousSibling())&&t8(t)&&t.isSimpleText()&&!t.isUnmergeable();){if(""!==t.__text){J(t,r)&&(r=q(t,r));break}t.remove()}for(;null!==(n=r.getNextSibling())&&t8(n)&&n.isSimpleText()&&!n.isUnmergeable();){if(""!==n.__text){J(r,n)&&(r=q(r,n));break}n.remove()}}else r.remove()}function V(e){return $(e.anchor),$(e.focus),e}function $(e){for(;"element"===e.type;){let t,n,r=e.getNode(),l=e.offset;if(l===r.getChildrenSize()?(t=r.getChildAtIndex(l-1),n=!0):(t=r.getChildAtIndex(l),n=!1),t8(t)){e.set(t.__key,n?t.getTextContentSize():0,"text",!0);break}if(!n6(t))break;e.set(t.__key,n?t.getChildrenSize():0,"element",!0)}}let H,Y,X,G,Q,ee,et,en,er,ei,eo="",el="",es=null,ea="",eu="",ef=!1,ec=!1,ed=null;function eh(e,t){let n=et.get(e);if(null!==t){let n=eT(e);n.parentNode===t&&t.removeChild(n)}if(en.has(e)||Y._keyToDOMMap.delete(e),n6(n)){let e=ew(n,et);eg(e,0,e.length-1,null)}void 0!==n&&r8(ei,X,G,n,"destroyed")}function eg(e,t,n,r){let l=t;for(;l<=n;++l){let t=e[l];void 0!==t&&eh(t,r)}}function ep(e,t){e.setProperty("text-align",t)}function em(e,t){let n=H.theme.indent;if("string"==typeof n){let r=e.classList.contains(n);t>0&&!r?e.classList.add(n):t<1&&r&&e.classList.remove(n)}let r=getComputedStyle(e).getPropertyValue("--lexical-indent-base-value")||"40px";e.style.setProperty("padding-inline-start",0===t?"":`calc(${t} * ${r})`)}function ey(e,t){let n=e.style;0===t?ep(n,""):1===t?ep(n,"left"):2===t?ep(n,"center"):3===t?ep(n,"right"):4===t?ep(n,"justify"):5===t?ep(n,"start"):6===t&&ep(n,"end")}function e_(e,t){let n=en.get(e);void 0===n&&r(60);let l=n.createDOM(H,Y);if(function(e,t,n){let r=n._keyToDOMMap;t[`__lexicalKey_${n._key}`]=e,r.set(e,t)}(e,l,Y),t8(n)?l.setAttribute("data-lexical-text","true"):n3(n)&&l.setAttribute("data-lexical-decorator","true"),n6(n)){let e=n.__indent,t=n.__size;0!==e&&em(l,e),0!==t&&function(e,t,n,r){let l=el;el="",ev(e,n,0,t,n.getDOMSlot(r)),ex(n,r),el=l}(ew(n,en),t-1,n,l);let r=n.__format;0!==r&&ey(l,r),n.isInline()||eS(null,n,l),ie(n)&&(eo+="\n\n",eu+="\n\n")}else{let t=n.getTextContent();if(n3(n)){let t=n.decorate(Y,H);null!==t&&eC(e,t),l.contentEditable="false"}else t8(n)&&(n.isDirectionless()||(el+=t));eo+=t,eu+=t}return null!==t&&t.insertChild(l),r8(ei,X,G,n,"created"),l}function ev(e,t,n,r,l){let a=eo;eo="";let u=n;for(;u<=r;++u){e_(e[u],l);let t=en.get(e[u]);null!==t&&t8(t)&&(null===es&&(es=t.getFormat()),""===ea&&(ea=t.getStyle()))}ie(t)&&(eo+="\n\n"),l.element.__lexicalTextContent=eo,eo=a+eo}function eb(e,t){if(e){let n=e.__last;if(n){let e=t.get(n);if(e)return tU(e)?"line-break":n3(e)&&e.isInline()?"decorator":null}return"empty"}return null}function eS(e,t,n){let r=eb(e,et),l=eb(t,en);r!==l&&t.getDOMSlot(n).setManagedLineBreak(l)}function ex(e,t){let n=t.__lexicalDirTextContent||"",r=t.__lexicalDir||"";if(n!==el||r!==ed){var l;let n=""===el,a=n?ed:(l=el,T.test(l)?"rtl":k.test(l)?"ltr":null);if(a!==r){let l=t.classList,u=H.theme,c=null!==r?u[r]:void 0,d=null!==a?u[a]:void 0;if(void 0!==c){if("string"==typeof c){let e=S(c);c=u[r]=e}l.remove(...c)}if(null===a||n&&"ltr"===a)t.removeAttribute("dir");else{if(void 0!==d){if("string"==typeof d){let e=S(d);d=u[a]=e}void 0!==d&&l.add(...d)}t.dir=a}ec||(e.getWritable().__dir=a)}ed=a,t.__lexicalDirTextContent=el,t.__lexicalDir=a}}function ew(e,t){let n=[],l=e.__first;for(;null!==l;){let e=t.get(l);void 0===e&&r(101),n.push(l),l=e.__next}return n}function eC(e,t){let n=Y._pendingDecorators,r=Y._decorators;if(null===n){if(r[e]===t)return;n=rj(Y)}n[e]=t}function eE(e){let t=e.nextSibling;return null!==t&&t===Y._blockCursorElement&&(t=t.nextSibling),t}function eT(e){let t=er.get(e);return void 0===t&&r(75,e),t}function ek(e){return{type:e}}let eN=ek("SELECTION_CHANGE_COMMAND"),eO=ek("SELECTION_INSERT_CLIPBOARD_NODES_COMMAND"),eA=ek("CLICK_COMMAND"),eP=ek("DELETE_CHARACTER_COMMAND"),eM=ek("INSERT_LINE_BREAK_COMMAND"),eR=ek("INSERT_PARAGRAPH_COMMAND"),eF=ek("CONTROLLED_TEXT_INSERTION_COMMAND"),eD=ek("PASTE_COMMAND"),eL=ek("REMOVE_TEXT_COMMAND"),eI=ek("DELETE_WORD_COMMAND"),eB=ek("DELETE_LINE_COMMAND"),ej=ek("FORMAT_TEXT_COMMAND"),ez=ek("UNDO_COMMAND"),eK=ek("REDO_COMMAND"),eU=ek("KEYDOWN_COMMAND"),eW=ek("KEY_ARROW_RIGHT_COMMAND"),eJ=ek("MOVE_TO_END"),eq=ek("KEY_ARROW_LEFT_COMMAND"),eZ=ek("MOVE_TO_START"),eV=ek("KEY_ARROW_UP_COMMAND"),e$=ek("KEY_ARROW_DOWN_COMMAND"),eH=ek("KEY_ENTER_COMMAND"),eY=ek("KEY_SPACE_COMMAND"),eX=ek("KEY_BACKSPACE_COMMAND"),eG=ek("KEY_ESCAPE_COMMAND"),eQ=ek("KEY_DELETE_COMMAND"),e0=ek("KEY_TAB_COMMAND"),e1=ek("INSERT_TAB_COMMAND"),e2=ek("INDENT_CONTENT_COMMAND"),e6=ek("OUTDENT_CONTENT_COMMAND"),e5=ek("DROP_COMMAND"),e8=ek("FORMAT_ELEMENT_COMMAND"),e3=ek("DRAGSTART_COMMAND"),e4=ek("DRAGOVER_COMMAND"),e7=ek("DRAGEND_COMMAND"),e9=ek("COPY_COMMAND"),te=ek("CUT_COMMAND"),tt=ek("SELECT_ALL_COMMAND"),tn=ek("CLEAR_EDITOR_COMMAND"),tr=ek("CLEAR_HISTORY_COMMAND"),ti=ek("CAN_REDO_COMMAND"),to=ek("CAN_UNDO_COMMAND"),tl=ek("FOCUS_COMMAND"),ts=ek("BLUR_COMMAND"),ta=ek("KEY_MODIFIER_COMMAND"),tu=Object.freeze({}),tf=[["keydown",function(e,t){if((tc=e.timeStamp,td=e.key,!(t.isComposing()||r9(t,eU,e)))&&null!=e.key){if(tb&&r2(e))return nQ(t,()=>{tA(t,tS)}),tb=!1,void(tS="");if(rQ(e,"ArrowRight",{shiftKey:"any"}))r9(t,eW,e);else if(rQ(e,"ArrowRight",r0))r9(t,eJ,e);else if(rQ(e,"ArrowLeft",{shiftKey:"any"}))r9(t,eq,e);else if(rQ(e,"ArrowLeft",r0))r9(t,eZ,e);else if(rQ(e,"ArrowUp",{altKey:"any",shiftKey:"any"}))r9(t,eV,e);else if(rQ(e,"ArrowDown",{altKey:"any",shiftKey:"any"}))r9(t,e$,e);else if(rQ(e,"Enter",{altKey:"any",ctrlKey:"any",metaKey:"any",shiftKey:!0}))t_=!0,r9(t,eH,e);else if(" "===e.key)r9(t,eY,e);else if(u&&rQ(e,"o",{ctrlKey:!0}))e.preventDefault(),t_=!0,r9(t,eM,!0);else if(rQ(e,"Enter",{altKey:"any",ctrlKey:"any",metaKey:"any"}))t_=!1,r9(t,eH,e);else if(rQ(e,"Backspace",{shiftKey:"any"})||u&&rQ(e,"h",{ctrlKey:!0}))r2(e)?r9(t,eX,e):(e.preventDefault(),r9(t,eP,!0));else if("Escape"===e.key)r9(t,eG,e);else if(rQ(e,"Delete",{})||u&&rQ(e,"d",{ctrlKey:!0}))"Delete"!==e.key?(e.preventDefault(),r9(t,eP,!1)):r9(t,eQ,e);else if(rQ(e,"Backspace",r1))e.preventDefault(),r9(t,eI,!0);else if(rQ(e,"Delete",r1))e.preventDefault(),r9(t,eI,!1);else if(u&&rQ(e,"Backspace",{metaKey:!0}))e.preventDefault(),r9(t,eB,!0);else if(u&&(rQ(e,"Delete",{metaKey:!0})||rQ(e,"k",{ctrlKey:!0})))e.preventDefault(),r9(t,eB,!1);else if(rQ(e,"b",r0))e.preventDefault(),r9(t,ej,"bold");else if(rQ(e,"u",r0))e.preventDefault(),r9(t,ej,"underline");else if(rQ(e,"i",r0))e.preventDefault(),r9(t,ej,"italic");else if(rQ(e,"Tab",{shiftKey:"any"}))r9(t,e0,e);else if(rQ(e,"z",r0))e.preventDefault(),r9(t,ez,void 0);else if(u?rQ(e,"z",{metaKey:!0,shiftKey:!0}):rQ(e,"y",{ctrlKey:!0})||rQ(e,"z",{ctrlKey:!0,shiftKey:!0}))e.preventDefault(),r9(t,eK,void 0);else{let n=t._editorState._selection;null===n||ni(n)?!c&&rQ(e,"a",r0)&&(e.preventDefault(),r9(t,tt,e)):rQ(e,"c",r0)?(e.preventDefault(),r9(t,e9,e)):rQ(e,"x",r0)?(e.preventDefault(),r9(t,te,e)):rQ(e,"a",r0)&&(e.preventDefault(),r9(t,tt,e))}(e.ctrlKey||e.shiftKey||e.altKey||e.metaKey)&&r9(t,ta,e)}}],["pointerdown",function(e,t){let n=e.target,r=e.pointerType;im(n)&&"touch"!==r&&0===e.button&&nQ(t,()=>{n3(rB(n))||(ty=!0)})}],["compositionstart",function(e,t){nQ(t,()=>{let n=nS();
1if(ni(n)&&!t.isComposing()){let r=n.anchor,l=n.anchor.getNode();rR(r.key),(e.timeStamp<tc+30||"element"===r.type||!n.isCollapsed()||l.getFormat()!==n.format||t8(l)&&l.getStyle()!==n.style)&&r9(t,eF,w)}})}],["compositionend",function(e,t){c?tv=!0:!p&&(h||b)?(tb=!0,tS=e.data):nQ(t,()=>{tA(t,e.data)})}],["input",function(e,t){e.stopPropagation(),nQ(t,()=>{if(ip(e.target)&&n3(rB(e.target)))return;let n=nS(),r=e.data,l=tO(e);if(null!=r&&ni(n)&&tC(n,l,r,e.timeStamp,!1)){tv&&(tA(t,r),tv=!1);let l=n.anchor.getNode(),a=ig(is(t));if(null===a)return;let u=n.isBackward(),y=u?n.anchor.offset:n.focus.offset,_=u?n.focus.offset:n.anchor.offset;d&&!n.isCollapsed()&&t8(l)&&null!==a.anchorNode&&l.getTextContent().slice(0,y)+r+l.getTextContent().slice(y+_)===rH(a.anchorNode)||r9(t,eF,r);let v=r.length;c&&v>1&&"insertCompositionText"===e.inputType&&!t.isComposing()&&(n.anchor.offset-=v),h||p||b||!t.isComposing()||(tc=0,rR(null))}else rY(!1,t,null!==r?r:void 0),tv&&(tA(t,r||void 0),tv=!1);nB(),j(nK())},{event:e}),tg=null}],["click",function(e,t){nQ(t,()=>{let n=nS(),r=ig(is(t)),l=nx();if(r){if(ni(n)){let t=n.anchor,a=t.getNode();if("element"===t.type&&0===t.offset&&n.isCollapsed()&&!n7(a)&&1===rK().getChildrenSize()&&a.getTopLevelElementOrThrow().isEmpty()&&null!==l&&n.is(l))r.removeAllRanges(),n.dirty=!0;else if(3===e.detail&&!n.isCollapsed()&&a!==n.focus.getNode()){let e=function(e,t){let n=e;for(;n!==rK()&&null!=n;){if(t(n))return n;n=n.getParent()}return null}(a,e=>n6(e)&&!e.isInline());n6(e)&&e.select(0)}}else if("touch"===e.pointerType){let n=r.anchorNode;(ip(n)||rk(n))&&rW(nb(l,r,t,e))}}r9(t,eA,e)})}],["cut",tu],["copy",tu],["dragstart",tu],["dragover",tu],["dragend",tu],["paste",tu],["focus",tu],["blur",tu],["drop",tu]];d&&tf.push(["beforeinput",(e,t)=>(function(e,t){let n=e.inputType,l=tO(e);"deleteCompositionText"===n||c&&r7(t)||"insertCompositionText"!==n&&nQ(t,()=>{var a;let u=nS();if("deleteContentBackward"===n){if(null===u){let e=nx();if(!ni(e))return;rW(e.clone())}if(ni(u)){let n=u.anchor.key===u.focus.key;if(a=e.timeStamp,"MediaLast"===td&&a<tc+30&&t.isComposing()&&n){if(rR(null),tc=0,setTimeout(()=>{nQ(t,()=>{rR(null)})},30),ni(u)){let e=u.anchor.getNode();e.markDirty(),t8(e)||r(142),tN(u,e)}}else{rR(null),e.preventDefault();let r=u.anchor.getNode(),l=r.getTextContent(),a=r.canInsertTextAfter(),c=0===u.anchor.offset&&u.focus.offset===l.length,d=v&&n&&!c&&a;if(d&&u.isCollapsed()&&(d=!n3(r4(u.anchor,!0))),!d){r9(t,eP,!0);let e=nS();v&&ni(e)&&e.isCollapsed()&&(tx=e,setTimeout(()=>tx=null))}}return}}if(!ni(u))return;let c=e.data;null!==tg&&rY(!1,t,tg),u.dirty&&null===tg||!u.isCollapsed()||n7(u.anchor.getNode())||null===l||u.applyDOMRange(l),tg=null;let d=u.anchor,h=u.focus,y=d.getNode(),_=h.getNode();if("insertText"!==n&&"insertTranspose"!==n)switch(e.preventDefault(),n){case"insertFromYank":case"insertFromDrop":case"insertReplacementText":r9(t,eF,e);break;case"insertFromComposition":rR(null),r9(t,eF,e);break;case"insertLineBreak":rR(null),r9(t,eM,!1);break;case"insertParagraph":rR(null),t_&&!p?(t_=!1,r9(t,eM,!1)):r9(t,eR,void 0);break;case"insertFromPaste":case"insertFromPasteAsQuotation":r9(t,eD,e);break;case"deleteByComposition":(y!==_||n6(y)||n6(_)||!y.isToken()||!_.isToken())&&r9(t,eL,e);break;case"deleteByDrag":case"deleteByCut":r9(t,eL,e);break;case"deleteContent":r9(t,eP,!1);break;case"deleteWordBackward":r9(t,eI,!0);break;
1case"deleteWordForward":r9(t,eI,!1);break;case"deleteHardLineBackward":case"deleteSoftLineBackward":r9(t,eB,!0);break;case"deleteContentForward":case"deleteHardLineForward":case"deleteSoftLineForward":r9(t,eB,!1);break;case"formatStrikeThrough":r9(t,ej,"strikethrough");break;case"formatBold":r9(t,ej,"bold");break;case"formatItalic":r9(t,ej,"italic");break;case"formatUnderline":r9(t,ej,"underline");break;case"historyUndo":r9(t,ez,void 0);break;case"historyRedo":r9(t,eK,void 0)}else{if("\n"===c)e.preventDefault(),r9(t,eM,!1);else if("\n\n"===c)e.preventDefault(),r9(t,eR,void 0);else if(null==c&&e.dataTransfer){let t=e.dataTransfer.getData("text/plain");e.preventDefault(),u.insertRawText(t)}else null!=c&&tC(u,l,c,e.timeStamp,!0)?(e.preventDefault(),r9(t,eF,c)):tg=c;th=e.timeStamp}})})(e,t)]);let tc=0,td=null,th=0,tg=null,tp=new WeakMap,tm=!1,ty=!1,t_=!1,tv=!1,tb=!1,tS="",tx=null,tw=[0,"",0,"root",0];function tC(e,t,n,r,l){let a=e.anchor,u=e.focus,c=a.getNode(),h=nK(),p=ig(is(h)),y=null!==p?p.anchorNode:null,_=a.key,v=h.getElementByKey(_),b=n.length;return _!==u.key||!t8(c)||(!l&&(!d||th<r+50)||c.isDirty()&&b<2||rZ(n))&&a.offset!==u.offset&&!c.isComposing()||rT(c)||c.isDirty()&&b>1||(l||!d)&&null!==v&&!c.isComposing()&&y!==rN(v)||null!==p&&null!==t&&(!t.collapsed||t.startContainer!==p.anchorNode||t.startOffset!==p.anchorOffset)||c.getFormat()!==e.format||c.getStyle()!==e.style||function(e,t){if(t.isSegmented())return!0;if(!e.isCollapsed())return!1;let n=e.anchor.offset,r=t.getParentOrThrow(),l=t.isToken();return 0===n?!t.canInsertTextBefore()||!r.canInsertTextBefore()&&!t.isComposing()||l||function(e){let t=e.getPreviousSibling();return(t8(t)||n6(t)&&t.isInline())&&!t.canInsertTextAfter()}(t):n===t.getTextContentSize()&&(!t.canInsertTextAfter()||!r.canInsertTextAfter()&&!t.isComposing()||l)}(e,c)}function tE(e,t){return rk(e)&&null!==e.nodeValue&&0!==t&&t!==e.nodeValue.length}function tT(e,t,n){let{anchorNode:l,anchorOffset:a,focusNode:u,focusOffset:c}=e;tm&&(tm=!1,tE(l,a)&&tE(u,c)&&!tx)||nQ(t,()=>{if(!n)return void rW(null);if(!rx(t,l,u))return;let d=nS();if(tx&&ni(d)&&d.isCollapsed()){let e=d.anchor,t=tx.anchor;(e.key===t.key&&e.offset===t.offset+1||1===e.offset&&t.getNode().is(e.getNode().getPreviousSibling()))&&rW(d=tx.clone())}if(tx=null,ni(d)){let n=d.anchor,l=n.getNode();if(d.isCollapsed()){"Range"===e.type&&e.anchorNode===e.focusNode&&(d.dirty=!0);let a=is(t).event,u=a?a.timeStamp:performance.now(),[c,p,y,_,v]=tw,b=rK(),S=!1===t.isComposing()&&""===b.getTextContent();if(u<v+200&&n.offset===y&&n.key===_)tk(d,c,p);else if("text"===n.type)t8(l)||r(141),tN(d,l);else if("element"===n.type&&!S){var h;n6(l)||r(259);let e=n.getNode();e.isEmpty()?tk(d,(h=e).getTextFormat(),h.getTextStyle()):tk(d,0,"")}}else{let e=n.key,t=d.focus.key,r=d.getNodes(),l=r.length,u=d.isBackward(),h=u?c:a,p=u?a:c,y=u?t:e,_=u?e:t,v=2047,b=!1;for(let e=0;e<l;e++){let t=r[e],n=t.getTextContentSize();if(t8(t)&&0!==n&&(0!==e||t.__key!==y||h!==n)&&(e!==l-1||t.__key!==_||0!==p)&&(b=!0,0==(v&=t.getFormat())))break}d.format=b?v:0}}r9(t,eN,void 0)})}function tk(e,t,n){e.format===t&&e.style===n||(e.format=t,e.style=n,e.dirty=!0)}function tN(e,t){tk(e,t.getFormat(),t.getStyle())}function tO(e){if(!e.getTargetRanges)return null;let t=e.getTargetRanges();return 0===t.length?null:t[0]}function tA(e,t){let n=e._compositionKey;if(rR(null),null!==n&&null!=t){if(""===t){let t=rD(n),r=rN(e.getElementByKey(n));return void(null!==r&&null!==r.nodeValue&&t8(t)&&rX(t,r.nodeValue,null,null,!0))}if("\n"===t[t.length-1]){let t=nS();if(ni(t)){let n=t.focus;return t.anchor.set(n.key,n.offset,n.type),void r9(e,eH,null)}}}rY(!0,e,t)}function tP(e){let t=e.__lexicalEventHandles;return void 0===t&&(e.__lexicalEventHandles=t=[]),t}let tM=new Map;function tR(e){let t=function(e){let t=il(e);return t?t.getSelection():null}(e.target);if(null===t)return;let n=rC(t.anchorNode);if(null===n)return;ty&&(ty=!1,nQ(n,()=>{let r=nx(),l=t.anchorNode;(ip(l)||rk(l))&&rW(nb(r,t,n,e))}));let r=rV(n),l=r[r.length-1],a=l._key,u=tM.get(a),c=u||l;c!==n&&tT(t,c,!1),tT(t,n,!0),n!==l?tM.set(a,n):u&&tM.delete(a)}function tF(e){e._lexicalHandled=!0}function tD(e){return!0===e._lexicalHandled}let tL=()=>{};function tI(e,t,n){nB();let r=e.__key,l=e.getParent();if(null===l)return;let a=function(e){let t=nS();if(!ni(t)||!n6(e))return t;let{anchor:n,focus:r}=t,l=n.getNode(),a=r.getNode();return io(l,e)&&n.set(e.__key,0,"element"),io(a,e)&&r.set(e.__key,0,"element"),t}(e),u=!1;
1if(ni(a)&&t){let t=a.anchor,n=a.focus;t.key===r&&(nE(t,e,l,e.getPreviousSibling(),e.getNextSibling()),u=!0),n.key===r&&(nE(n,e,l,e.getPreviousSibling(),e.getNextSibling()),u=!0)}else nl(a)&&t&&e.isSelected()&&e.selectPrevious();if(ni(a)&&t&&!u){let t=e.getIndexWithinParent();rP(e),nw(a,l,t,-1)}else rP(e);n||ia(l)||l.canBeEmpty()||!l.isEmpty()||tI(l,t),t&&a&&n7(l)&&l.isEmpty()&&l.selectEnd()}class tB{static getType(){r(64,this.name)}static clone(e){r(65,this.name)}afterCloneFrom(e){this.__parent=e.__parent,this.__next=e.__next,this.__prev=e.__prev,this.__state=e.__state}constructor(e){this.__type=this.constructor.getType(),this.__parent=null,this.__prev=null,this.__next=null,Object.defineProperty(this,"__state",{configurable:!0,enumerable:!1,value:void 0,writable:!0}),rA(this,e)}getType(){return this.__type}isInline(){r(137,this.constructor.name)}isAttached(){let e=this.__key;for(;null!==e;){if("root"===e)return!0;let t=rD(e);if(null===t)break;e=t.__parent}return!1}isSelected(e){let t=e||nS();if(null==t)return!1;let n=t.getNodes().some(e=>e.__key===this.__key);if(t8(this))return n;if(ni(t)&&"element"===t.anchor.type&&"element"===t.focus.type){if(t.isCollapsed())return!1;let e=this.getParent();if(n3(this)&&this.isInline()&&e){let n=t.isBackward()?t.focus:t.anchor;if(e.is(n.getNode())&&n.offset===e.getChildrenSize()&&this.is(e.getLastChild()))return!1}}return n}getKey(){return this.__key}getIndexWithinParent(){let e=this.getParent();if(null===e)return -1;let t=e.getFirstChild(),n=0;for(;null!==t;){if(this.is(t))return n;n++,t=t.getNextSibling()}return -1}getParent(){let e=this.getLatest().__parent;return null===e?null:rD(e)}getParentOrThrow(){let e=this.getParent();return null===e&&r(66,this.__key),e}getTopLevelElement(){let e=this;for(;null!==e;){let t=e.getParent();if(ia(t))return n6(e)||e===this&&n3(e)||r(194),e;e=t}return null}getTopLevelElementOrThrow(){let e=this.getTopLevelElement();return null===e&&r(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:rD(e)}getPreviousSiblings(){let e=[],t=this.getParent();if(null===t)return e;let n=t.getFirstChild();for(;null!==n&&!n.is(this);)e.push(n),n=n.getNextSibling();return e}getNextSibling(){let e=this.getLatest().__next;return null===e?null:rD(e)}getNextSiblings(){let e=[],t=this.getNextSibling();for(;null!==t;)e.push(t),t=t.getNextSibling();return e}getCommonAncestor(e){let t=n6(this)?this:this.getParent(),n=n6(e)?e:e.getParent(),r=t&&n?i0(t,n):null;return r?r.commonAncestor:null}is(e){return null!=e&&this.__key===e.__key}isBefore(e){let t=i0(this,e);return null!==t&&("descendant"===t.type||("branch"===t.type?-1===iG(t):("same"!==t.type&&"ancestor"!==t.type&&r(279),!1)))}isParentOf(e){let t=i0(this,e);return null!==t&&"ancestor"===t.type}getNodesBetween(e){let t=this.isBefore(e),n=[],l=new Set,a=this;for(;null!==a;){let u=a.__key;if(l.has(u)||(l.add(u),n.push(a)),a===e)break;let c=n6(a)?t?a.getFirstChild():a.getLastChild():null;if(null!==c){a=c;continue}let d=t?a.getNextSibling():a.getPreviousSibling();if(null!==d){a=d;continue}let h=a.getParentOrThrow();if(l.has(h.__key)||n.push(h),h===e)break;let p=null,y=h;do{if(null===y&&r(68),p=t?y.getNextSibling():y.getPreviousSibling(),null===(y=y.getParent()))break;null!==p||l.has(y.__key)||n.push(y)}while(null===p);a=p}return t||n.reverse(),n}isDirty(){let e=nK()._dirtyLeaves;return null!==e&&e.has(this.__key)}getLatest(){let e=rD(this.__key);return null===e&&r(113),e}getWritable(){nB();let e=nz(),t=nK(),n=e._nodeMap,r=this.__key,l=this.getLatest(),a=t._cloneNotNeeded,u=nS();if(null!==u&&u.setCachedNodes(null),a.has(r))return rM(l),l;let c=iT(l);return a.add(r),rM(c),n.set(r,c),c}getTextContent(){return""}getTextContentSize(){return this.getTextContent().length}createDOM(e,t){r(70)}updateDOM(e,t,n){r(71)}exportDOM(e){return{element:this.createDOM(e._config,e)}}exportJSON(){let e=this.__state?this.__state.toJSON():void 0;return{type:this.__type,version:1,...e}}static importJSON(e){r(18,this.name)}updateFromJSON(e){return function(e,t){let n=e.getWritable();return(t||n.__state)&&(function(e){let t=e.getWritable(),n=t.__state?t.__state.getWritable(t):new U(t);return t.__state=n,n})(e).updateFromJSON(t),n}(this,e.$)}static transform(){return null}remove(e){tI(this,!0,e)}replace(e,t){nB();let n=nS();null!==n&&(n=n.clone()),ic(this,e);let l=this.getLatest(),a=this.__key,u=e.__key,c=e.getWritable(),d=this.getParentOrThrow().getWritable(),h=d.__size;rP(c);let p=l.getPreviousSibling(),y=l.getNextSibling(),_=l.__prev,v=l.__next,b=l.__parent;if((tI(l,!1,!0),null===p)?d.__first=u:p.getWritable().__next=u,(c.__prev=_,null===y)?d.__last=u:y.getWritable().__prev=u,c.__next=v,c.__parent=b,d.__size=h,t&&(n6(this)&&n6(c)||r(139),this.getChildren().forEac
1h(e=>{c.append(e)})),ni(n)){rW(n);let e=n.anchor,t=n.focus;e.key===a&&nn(e,c),t.key===a&&nn(t,c)}return rF()===a&&rR(u),c}insertAfter(e,t=!0){nB(),ic(this,e);let n=this.getWritable(),r=e.getWritable(),l=r.getParent(),a=nS(),u=!1,c=!1;if(null!==l){let t=e.getIndexWithinParent();if(rP(r),ni(a)){let e=l.__key,n=a.anchor,r=a.focus;u="element"===n.type&&n.key===e&&n.offset===t+1,c="element"===r.type&&r.key===e&&r.offset===t+1}}let d=this.getNextSibling(),h=this.getParentOrThrow().getWritable(),p=r.__key,y=n.__next;if(null===d?h.__last=p:d.getWritable().__prev=p,h.__size++,n.__next=p,r.__next=y,r.__prev=n.__key,r.__parent=n.__parent,t&&ni(a)){let e=this.getIndexWithinParent();nw(a,h,e+1);let t=h.__key;u&&a.anchor.set(t,e+2,"element"),c&&a.focus.set(t,e+2,"element")}return e}insertBefore(e,t=!0){nB(),ic(this,e);let n=this.getWritable(),r=e.getWritable(),l=r.__key;rP(r);let a=this.getPreviousSibling(),u=this.getParentOrThrow().getWritable(),c=n.__prev,d=this.getIndexWithinParent();null===a?u.__first=l:a.getWritable().__next=l,u.__size++,n.__prev=l,r.__prev=c,r.__next=n.__key,r.__parent=n.__parent;let h=nS();return t&&ni(h)&&nw(h,this.getParentOrThrow(),d),e}isParentRequired(){return!1}createParentElementNode(){return rd()}selectStart(){return this.selectPrevious()}selectEnd(){return this.selectNext(0,0)}selectPrevious(e,t){nB();let n=this.getPreviousSibling(),r=this.getParentOrThrow();if(null===n)return r.select(0,0);if(n6(n))return n.select();if(!t8(n)){let e=n.getIndexWithinParent()+1;return r.select(e,e)}return n.select(e,t)}selectNext(e,t){nB();let n=this.getNextSibling(),r=this.getParentOrThrow();if(null===n)return r.select();if(n6(n))return n.select(0,0);if(!t8(n)){let e=n.getIndexWithinParent();return r.select(e,e)}return n.select(e,t)}markDirty(){this.getWritable()}reconcileObservedMutation(e,t){this.markDirty()}}class tj extends tB{static getType(){return"linebreak"}static clone(e){return new tj(e.__key)}constructor(e){super(e)}getTextContent(){return"\n"}createDOM(){return document.createElement("br")}updateDOM(){return!1}isInline(){return!0}static importDOM(){return{br:e=>(function(e){let t=e.parentElement;if(null!==t&&iv(t)){let n=t.firstChild;if(n===e||n.nextSibling===e&&tW(n)){let n=t.lastChild;if(n===e||n.previousSibling===e&&tW(n))return!0}}return!1})(e)||function(e){let t=e.parentElement;if(null!==t&&iv(t)){let n=t.firstChild;if(n===e||n.nextSibling===e&&tW(n))return!1;let r=t.lastChild;if(r===e||r.previousSibling===e&&tW(r))return!0}return!1}(e)?null:{conversion:tz,priority:0}}}static importJSON(e){return tK().updateFromJSON(e)}}function tz(e){return{node:tK()}}function tK(){return iu(new tj)}function tU(e){return e instanceof tj}function tW(e){return rk(e)&&/^( |\t|\r?\n)+$/.test(e.textContent||"")}function tJ(e,t){return 16&t?"code":128&t?"mark":32&t?"sub":64&t?"sup":null}function tq(e,t){return 1&t?"strong":2&t?"em":"span"}function tZ(e,t,n,r,l){let a=r.classList,u=r5(l,"base");void 0!==u&&a.add(...u);let c=!1,d=8&t&&4&t;for(let e in void 0!==(u=r5(l,"underlineStrikethrough"))&&(8&n&&4&n?(c=!0,d||a.add(...u)):d&&a.remove(...u)),N){let r=N[e];if(void 0!==(u=r5(l,e)))if(n&r){if(c&&("underline"===e||"strikethrough"===e)){t&r&&a.remove(...u);continue}t&r&&(!d||"underline"!==e)&&"strikethrough"!==e||a.add(...u)}else t&r&&a.remove(...u)}}function tV(e,t,n){let r=t.firstChild,l=n.isComposing(),a=e+(l?x:"");if(null==r)t.textContent=a;else{let e=r.nodeValue;if(e!==a)if(l||c){let[t,n,l]=function(e,t){let n=e.length,r=t.length,l=0,a=0;for(;l<n&&l<r&&e[l]===t[l];)l++;for(;a+l<n&&a+l<r&&e[n-a-1]===t[r-a-1];)a++;return[l,n-l-a,t.slice(l,r-a)]}(e,a);0!==n&&r.deleteData(t,n),r.insertData(t,l)}else r.nodeValue=a}}function t$(e,t,n,r,l,a){tV(l,e,t);let u=a.theme.text;void 0!==u&&tZ(0,0,r,e,u)}function tH(e,t){let n=document.createElement(t);return n.appendChild(e),n}class tY extends tB{static getType(){return"text"}static clone(e){return new tY(e.__text,e.__key)}afterCloneFrom(e){super.afterCloneFrom(e),this.__text=e.__text,this.__format=e.__format,this.__style=e.__style,this.__mode=e.__mode,this.__detail=e.__detail}constructor(e="",t){super(t),this.__text=e,this.__format=0,this.__style="",this.__mode=0,this.__detail=0}getFormat(){return this.getLatest().__format}getDetail(){return this.getLatest().__detail}getMode(){return R[this.getLatest().__mode]}getStyle(){return this.getLatest().__style}isToken(){return 1===this.getLatest().__mode}isComposing(){return this.__key===rF()}isSegmented(){return 2===this.getLatest().__mode}isDirectionless(){return!!(1&this.getLatest().__detail)}isUnmergeable(){return!!(2&this.getLatest().__detail)}hasFormat(e){let t=N[e];return!!(this.getFormat()&t)}isSimpleText(){return"text"===this.__type&&0===this.__mode}getTextContent(){return this.getLatest().__text}getFormatFlags(e,t){return rO(this.getLatest().__format,e,t)}canHaveFormat(){return!0}isInline(){return!0}createDOM(e,t){let n=this.__format,r=tJ(0,n),l=tq(0,n),a=null===r?l:r,u=document.createElement(a),c=u;
1this.hasFormat("code")&&u.setAttribute("spellcheck","false"),null!==r&&(c=document.createElement(l),u.appendChild(c)),t$(c,this,0,n,this.__text,e);let d=this.__style;return""!==d&&(u.style.cssText=d),u}updateDOM(e,t,n){let l=this.__text,a=e.__format,u=this.__format,c=tJ(0,a),d=tJ(0,u),h=tq(0,a),p=tq(0,u);if((null===c?h:c)!==(null===d?p:d))return!0;if(c===d&&h!==p){let e=t.firstChild;null==e&&r(48);let a=document.createElement(p);return t$(a,this,0,u,l,n),t.replaceChild(a,e),!1}let y=t;null!==d&&null!==c&&null==(y=t.firstChild)&&r(49),tV(l,y,this);let _=n.theme.text;void 0!==_&&a!==u&&tZ(0,a,u,y,_);let v=e.__style,b=this.__style;return v!==b&&(t.style.cssText=b),!1}static importDOM(){return{"#text":()=>({conversion:t0,priority:0}),b:()=>({conversion:tG,priority:0}),code:()=>({conversion:t6,priority:0}),em:()=>({conversion:t6,priority:0}),i:()=>({conversion:t6,priority:0}),mark:()=>({conversion:t6,priority:0}),s:()=>({conversion:t6,priority:0}),span:()=>({conversion:tX,priority:0}),strong:()=>({conversion:t6,priority:0}),sub:()=>({conversion:t6,priority:0}),sup:()=>({conversion:t6,priority:0}),u:()=>({conversion:t6,priority:0})}}static importJSON(e){return t5().updateFromJSON(e)}updateFromJSON(e){return super.updateFromJSON(e).setTextContent(e.text).setFormat(e.format).setDetail(e.detail).setMode(e.mode).setStyle(e.style)}
1exportDOM(e){let{element:t}=super.exportDOM(e);return ip(t)||r(132),t.style.whiteSpace="pre-wrap",this.hasFormat("lowercase")?t.style.textTransform="lowercase":this.hasFormat("uppercase")?t.style.textTransform="uppercase":this.hasFormat("capitalize")&&(t.style.textTransform="capitalize"),this.hasFormat("bold")&&(t=tH(t,"b")),this.hasFormat("italic")&&(t=tH(t,"i")),this.hasFormat("strikethrough")&&(t=tH(t,"s")),this.hasFormat("underline")&&(t=tH(t,"u")),{element:t}}exportJSON(){return{detail:this.getDetail(),format:this.getFormat(),mode:this.getMode(),style:this.getStyle(),text:this.getTextContent(),...super.exportJSON()}}selectionTransform(e,t){}setFormat(e){let t=this.getWritable();return t.__format="string"==typeof e?N[e]:e,t}setDetail(e){let t=this.getWritable();return t.__detail="string"==typeof e?O[e]:e,t}setStyle(e){let t=this.getWritable();return t.__style=e,t}toggleFormat(e){let t=rO(this.getFormat(),e,null);return this.setFormat(t)}toggleDirectionless(){let e=this.getWritable();return e.__detail^=1,e}toggleUnmergeable(){let e=this.getWritable();return e.__detail^=2,e}setMode(e){let t=M[e];if(this.__mode===t)return this;let n=this.getWritable();return n.__mode=t,n}setTextContent(e){if(this.__text===e)return this;let t=this.getWritable();return t.__text=e,t}select(e,t){nB();let n=e,r=t,l=nS(),a=this.getTextContent(),u=this.__key;if("string"==typeof a){let e=a.length;void 0===n&&(n=e),void 0===r&&(r=e)}else n=0,r=0;if(!ni(l))return ny(u,n,u,r,"text","text");{let e=rF();e!==l.anchor.key&&e!==l.focus.key||rR(u),l.setTextNodeRange(this,n,this,r)}return l}selectStart(){return this.select(0,0)}selectEnd(){let e=this.getTextContentSize();return this.select(e,e)}spliceText(e,t,n,r){let l=this.getWritable(),a=l.__text,u=n.length,c=e;c<0&&(c=u+c)<0&&(c=0);let d=nS();if(r&&ni(d)){let t=e+u;d.setTextNodeRange(l,t,l,t)}return l.__text=a.slice(0,c)+n+a.slice(c+t),l}canInsertTextBefore(){return!0}canInsertTextAfter(){return!0}splitText(...e){let t;nB();let n=this.getLatest(),r=n.getTextContent();if(""===r)return[];let l=n.__key,a=rF(),u=r.length;e.sort((e,t)=>e-t),e.push(u);let c=[],d=e.length;for(let t=0,n=0;t<u&&n<=d;n++){let l=e[n];l>t&&(c.push(r.slice(t,l)),t=l)}let h=c.length;if(1===h)return[n];let p=c[0],y=n.getParent(),_=n.getFormat(),v=n.getStyle(),b=n.__detail,S=!1,x=null,w=null,C=nS();if(ni(C)){let[e,t]=C.isBackward()?[C.focus,C.anchor]:[C.anchor,C.focus];"text"===e.type&&e.key===l&&(x=e),"text"===t.type&&t.key===l&&(w=t)}n.isSegmented()?((t=t5(p)).__format=_,t.__style=v,t.__detail=b,S=!0):(t=n.getWritable()).__text=p;let E=[t];for(let e=1;e<h;e++){let t=t5(c[e]);t.__format=_,t.__style=v,t.__detail=b;let n=t.__key;a===l&&rR(n),E.push(t)}let T=x?x.offset:null,k=w?w.offset:null,N=0;for(let e of E){if(!x&&!w)break;let t=N+e.getTextContentSize();if(null!==x&&null!==T&&T<=t&&T>=N&&(x.set(e.getKey(),T-N,"text"),T<t&&(x=null)),null!==w&&null!==k&&k<=t&&k>=N){w.set(e.getKey(),k-N,"text");break}N=t}if(null!==y){let e=this.getPreviousSibling(),t=this.getNextSibling();null!==e&&rM(e),null!==t&&rM(t);let n=y.getWritable(),r=this.getIndexWithinParent();S?(n.splice(r,0,E),this.remove()):n.splice(r,1,E),ni(C)&&nw(C,y,r,h-1)}return E}mergeWithSibling(e){let t=e===this.getPreviousSibling();t||e===this.getNextSibling()||r(50);let n=this.__key,l=e.__key,a=this.__text,u=a.length;rF()===l&&rR(n);let c=nS();if(ni(c)){let r=c.anchor,a=c.focus;null!==r&&r.key===l&&nT(r,t,n,e,u),null!==a&&a.key===l&&nT(a,t,n,e,u)}let d=e.__text,h=t?d+a:a+d;this.setTextContent(h);let p=this.getWritable();return e.remove(),p}isTextEntity(){return!1}}function tX(e){return{forChild:t3(e.style),node:null}}function tG(e){let t="normal"===e.style.fontWeight;return{forChild:t3(e.style,t?void 0:"bold"),node:null}}let tQ=new WeakMap;function t0(e){null===e.parentElement&&r(129);let t=e.textContent||"";if(null!==function(e){let t,n=e.parentNode,r=[e];for(;null!==n&&void 0===(t=tQ.get(n))&&!function(e){if(!ip(e))return!1;if("PRE"===e.nodeName)return!0;let t=e.style.whiteSpace;return"string"==typeof t&&t.startsWith("pre")}(n);)r.push(n),n=n.parentNode;let l=void 0===t?n:t;for(let e=0;e<r.length;e++)tQ.set(r[e],l);return l}(e)){let e=t.split(/(\r?\n|\t)/),n=[],r=e.length;for(let t=0;t<r;t++){let r=e[t];"\n"===r||"\r\n"===r?n.push(tK()):"	"===r?n.push(t7()):""!==r&&n.push(t5(r))}return{node:n}}if(""===(t=t.replace(/\r/g,"").replace(/[ \t\n]+/g," ")))return{node:null};if(" "===t[0]){let n=e,r=!0;for(;null!==n&&null!==(n=t1(n,!1));){let e=n.textContent||"";if(e.length>
10){/[ \t\n]$/.test(e)&&(t=t.slice(1)),r=!1;break}}r&&(t=t.slice(1))}if(" "===t[t.length-1]){let n=e,r=!0;for(;null!==n&&null!==(n=t1(n,!0));)if((n.textContent||"").replace(/^( |\t|\r?\n)+/,"").length>0){r=!1;break}r&&(t=t.slice(0,t.length-1))}return""===t?{node:null}:{node:t5(t)}}function t1(e,t){let n=e;for(;;){let e;for(;null===(e=t?n.nextSibling:n.previousSibling);){let e=n.parentElement;if(null===e)return null;n=e}if(ip(n=e)){let e=n.style.display;if(""===e&&!i_(n)||""!==e&&!e.startsWith("inline"))return null}let r=n;for(;null!==(r=t?n.firstChild:n.lastChild);)n=r;if(rk(n))return n;if("BR"===n.nodeName)return null}}let t2={code:"code",em:"italic",i:"italic",mark:"highlight",s:"strikethrough",strong:"bold",sub:"subscript",sup:"superscript",u:"underline"};function t6(e){let t=t2[e.nodeName.toLowerCase()];return void 0===t?{node:null}:{forChild:t3(e.style,t),node:null}}function t5(e=""){return iu(new tY(e))}function t8(e){return e instanceof tY}function t3(e,t){let n=e.fontWeight,r=e.textDecoration.split(" "),l="700"===n||"bold"===n,a=r.includes("line-through"),u="italic"===e.fontStyle,c=r.includes("underline"),d=e.verticalAlign;return e=>(t8(e)&&(l&&!e.hasFormat("bold")&&e.toggleFormat("bold"),a&&!e.hasFormat("strikethrough")&&e.toggleFormat("strikethrough"),u&&!e.hasFormat("italic")&&e.toggleFormat("italic"),c&&!e.hasFormat("underline")&&e.toggleFormat("underline"),"sub"!==d||e.hasFormat("subscript")||e.toggleFormat("subscript"),"super"!==d||e.hasFormat("superscript")||e.toggleFormat("superscript"),t&&!e.hasFormat(t)&&e.toggleFormat(t)),e)}class t4 extends tY{static getType(){return"tab"}static clone(e){return new t4(e.__key)}constructor(e){super("	",e),this.__detail=2}static importDOM(){return null}createDOM(e){let t=super.createDOM(e),n=r5(e.theme,"tab");return void 0!==n&&t.classList.add(...n),t}static importJSON(e){return t7().updateFromJSON(e)}setTextContent(e){return"	"!==e&&""!==e&&r(126),super.setTextContent(e)}setDetail(e){return 2!==e&&r(127),this}setMode(e){return"normal"!==e&&r(128),this}canInsertTextBefore(){return!1}canInsertTextAfter(){return!1}}function t7(){return iu(new t4)}class t9{constructor(e,t,n){this._selection=null,this.key=e,this.offset=t,this.type=n}is(e){return this.key===e.key&&this.offset===e.offset&&this.type===e.type}isBefore(e){return this.key===e.key?this.offset<e.offset:0>iX(i7(i1(this,"next")),i7(i1(e,"next")))}getNode(){let e=rD(this.key);return null===e&&r(20),e}set(e,t,n,r){let l=this._selection,a=this.key;r&&this.key===e&&this.offset===t&&this.type===n||(this.key=e,this.offset=t,this.type=n,nI()||(rF()===a&&rR(e),null!==l&&(l.setCachedNodes(null),l.dirty=!0)))}}function ne(e,t,n){return new t9(e,t,n)}function nt(e,t){let n=t.__key,r=e.offset,l="element";if(t8(t)){l="text";let e=t.getTextContentSize();r>e&&(r=e)}else if(!n6(t)){let e=t.getNextSibling();if(t8(e))n=e.__key,r=0,l="text";else{let e=t.getParent();e&&(n=e.__key,r=t.getIndexWithinParent()+1)}}e.set(n,r,l)}function nn(e,t){if(n6(t)){let n=t.getLastDescendant();n6(n)||t8(n)?nt(e,n):nt(e,t)}else nt(e,t)}class nr{constructor(e){this._cachedNodes=null,this._nodes=e,this.dirty=!1}getCachedNodes(){return this._cachedNodes}setCachedNodes(e){this._cachedNodes=e}is(e){if(!nl(e))return!1;let t=this._nodes,n=e._nodes;return t.size===n.size&&Array.from(t).every(e=>n.has(e))}isCollapsed(){return!1}isBackward(){return!1}getStartEndPoints(){return null}add(e){this.dirty=!0,this._nodes.add(e),this._cachedNodes=null}delete(e){this.dirty=!0,this._nodes.delete(e),this._cachedNodes=null}clear(){this.dirty=!0,this._nodes.clear(),this._cachedNodes=null}has(e){return this._nodes.has(e)}clone(){return new nr(new Set(this._nodes))}extract(){return this.getNodes()}insertRawText(e){}insertText(){}insertNodes(e){let t,n=this.getNodes(),r=n.length,l=n[r-1];if(t8(l))t=l.select();else{let e=l.getIndexWithinParent()+1;t=l.getParentOrThrow().select(e,e)}t.insertNodes(e);for(let e=0;e<r;e++)n[e].remove()}getNodes(){let e=this._cachedNodes;if(null!==e)return e;let t=this._nodes,n=[];for(let e of t){let t=rD(e);null!==t&&n.push(t)}return nI()||(this._cachedNodes=n),n}getTextContent(){let e=this.getNodes(),t="";for(let n=0;n<e.length;n++)t+=e[n].getTextContent();return t}deleteNodes(){let e=this.getNodes();if((nS()||nx())===this&&e[0]){let n=iK(e[0],"next");var t=iH(n,n);let r=nS(),l=ni(r)?r:n_();i6(l,t),rW(l)}for(let t of e)t.remove()}}function ni(e){return e instanceof no}class no{constructor(e,t,n,r){this.anchor=e,this.focus=t,e._selection=this,t._selection=this,this._cachedNodes=null,this.format=n,this.style=r,this.dirty=!1}getCachedNodes(){return this._cachedNodes}setCachedNodes(e){this._cachedNodes=e}is(e){return!!ni(e)&&this.anchor.is(e.anchor)&&this.focus.is(e.focus)&&this.format===e.format&&this.style===e.style}isCollapsed(){return this.anchor.is(this.focus)}getNodes(){let e=this._cachedNodes;if(null!==e)return e;let t=function(e){let t=[],[n,r]=e.getTextSlices();
1n&&t.push(n.caret.origin);let l=new Set,a=new Set;for(let n of e)if(iI(n)){let{origin:e}=n;0===t.length?l.add(e):(a.add(e),t.push(e))}else{let{origin:e}=n;n6(e)&&a.has(e)||t.push(e)}if(r&&t.push(r.caret.origin),iL(e.focus)&&n6(e.focus.origin)&&null===e.focus.getNodeAtCaret())for(let n=iJ(e.focus.origin,"previous");iI(n)&&l.has(n.origin)&&!n.origin.isEmpty()&&n.origin.is(t[t.length-1]);n=iq(n))l.delete(n.origin),t.pop();for(;t.length>1;){let e=t[t.length-1];if(!n6(e)||a.has(e)||e.isEmpty()||l.has(e))break;t.pop()}if(0===t.length&&e.isCollapsed()){let n=i7(e.anchor),r=i7(e.anchor.getFlipped()),l=e=>iD(e)?e.origin:e.getNodeAtCaret(),a=l(n)||l(r)||(e.anchor.getNodeAtCaret()?n.origin:r.origin);t.push(a)}return t}(ot(i5(this),"next"));return nI()||(this._cachedNodes=t),t}setTextNodeRange(e,t,n,r){this.anchor.set(e.__key,t,"text"),this.focus.set(n.__key,r,"text")}getTextContent(){let e=this.getNodes();if(0===e.length)return"";let t=e[0],n=e[e.length-1],r=this.anchor,l=this.focus,a=r.isBefore(l),[u,c]=na(this),d="",h=!0;for(let p=0;p<e.length;p++){let y=e[p];if(n6(y)&&!y.isInline())h||(d+="\n"),h=!y.isEmpty();else if(h=!1,t8(y)){let e=y.getTextContent();y===t?y===n?"element"===r.type&&"element"===l.type&&l.offset!==r.offset||(e=u<c?e.slice(u,c):e.slice(c,u)):e=a?e.slice(u):e.slice(c):y===n&&(e=a?e.slice(0,c):e.slice(0,u)),d+=e}else!n3(y)&&!tU(y)||y===n&&this.isCollapsed()||(d+=y.getTextContent())}return d}applyDOMRange(e){let t=nK(),n=t.getEditorState()._selection,r=np(e.startContainer,e.startOffset,e.endContainer,e.endOffset,t,n);if(null===r)return;let[l,a]=r;this.anchor.set(l.key,l.offset,l.type,!0),this.focus.set(a.key,a.offset,a.type,!0),V(this)}clone(){let e=this.anchor,t=this.focus;return new no(ne(e.key,e.offset,e.type),ne(t.key,t.offset,t.type),this.format,this.style)}toggleFormat(e){this.format=rO(this.format,e,null),this.dirty=!0}setStyle(e){this.style=e,this.dirty=!0}hasFormat(e){let t=N[e];return!!(this.format&t)}insertRawText(e){let t=e.split(/(\r?\n|\t)/),n=[],r=t.length;for(let e=0;e<r;e++){let r=t[e];"\n"===r||"\r\n"===r?n.push(tK()):"	"===r?n.push(t7()):n.push(t5(r))}this.insertNodes(n)}insertText(e){let t=this.anchor,n=this.focus,l=this.format,a=this.style,u=t,c=n;!this.isCollapsed()&&n.isBefore(t)&&(u=n,c=t),"element"===u.type&&function(e,t,n,r){let l=e.getNode(),a=l.getChildAtIndex(e.offset),u=t5(),c=n7(l)?rd().append(u):u;u.setFormat(n),u.setStyle(r),null===a?l.append(c):a.insertBefore(c),e.is(t)&&t.set(u.__key,0,"text"),e.set(u.__key,0,"text")}(u,c,l,a),"element"===c.type&&i2(c,i7(i1(c,"next")));let d=u.offset,h=c.offset,p=this.getNodes(),y=p.length,_=p[0];t8(_)||r(26);let v=_.getTextContent().length,b=_.getParentOrThrow(),S=p[y-1];if(1===y&&"element"===c.type&&(h=v,c.set(u.key,h,"text")),this.isCollapsed()&&d===v&&(_.isSegmented()||_.isToken()||!_.canInsertTextAfter()||!b.canInsertTextAfter()&&null===_.getNextSibling())){let t=_.getNextSibling();if(t8(t)&&t.canInsertTextBefore()&&!rT(t)||((t=t5()).setFormat(l),t.setStyle(a),b.canInsertTextAfter()?_.insertAfter(t):b.insertAfter(t)),t.select(0,0),_=t,""!==e)return void this.insertText(e)}else if(this.isCollapsed()&&0===d&&(_.isSegmented()||_.isToken()||!_.canInsertTextBefore()||!b.canInsertTextBefore()&&null===_.getPreviousSibling())){let t=_.getPreviousSibling();if(t8(t)&&!rT(t)||((t=t5()).setFormat(l),b.canInsertTextBefore()?_.insertBefore(t):b.insertBefore(t)),t.select(),_=t,""!==e)return void this.insertText(e)}else if(_.isSegmented()&&d!==v){let e=t5(_.getTextContent());e.setFormat(l),_.replace(e),_=e}else if(!this.isCollapsed()&&""!==e){let t=S.getParent();if(!b.canInsertTextBefore()||!b.canInsertTextAfter()||n6(t)&&(!t.canInsertTextBefore()||!t.canInsertTextAfter()))return this.insertText(""),ng(this.anchor,this.focus,null),void this.insertText(e)}if(1===y){if(_.isToken()){let t=t5(e);return t.select(),void _.replace(t)}let t=_.getFormat(),n=_.getStyle();if(d!==h||t===l&&n===a){if(_ instanceof t4){let t=t5(e);return t.setFormat(l),t.setStyle(a),t.select(),void _.replace(t)}}else{if(""!==_.getTextContent()){let t=t5(e);if(t.setFormat(l),t.setStyle(a),t.select(),0===d)_.insertBefore(t,!1);else{let[e]=_.splitText(d);e.insertAfter(t,!1)}return void(t.isComposing()&&"text"===this.anchor.type&&(this.anchor.offset-=e.length))}_.setFormat(l),_.setStyle(a)}let r=h-d;""===(_=_.spliceText(d,r,e,!0)).getTextContent()?_.remove():"text"===this.anchor.type&&(_.isComposing()?this.anchor.offset-=e.length:(this.format=t,this.style=n))}else{let t=new Set([..._.getParentKeys(),...S.getParentKeys()]),n=n6(_)?_:_.getParentOrThrow(),r=n6(S)?S:S.getParentOrThrow(),l=S;if(!n.is(r)&&r.isInline())do l=r,r=r.getParentOrThrow();while(r.isInline());if("text"===c.type&&(0!==h||""===S.getTextContent())||"element"===c.type&&S.getIndexWithinParent()<h)if(t8(S)&&!S.isToken()&&h!==S.getTextContentSize()){if(S.isSegmented()){let e=t5(S.getTextContent());S.replace(e),S=e}n7(c.getNode())||"text"!==c.type||(S=S.spliceText(0,h,"")),t.add(S.__key)}else{let e=S.getParentOrThrow();e.canBeEmpty()||1!==e.getChildrenSize()?S.remove():e.remove()}else t.add(S.__key);let a=r.getChildren(),u=new Set(p),b=n.is(r),x=n.isInline()&&null===_.getNextSibling()?n:_;for(let e=a.length-1;e>=0;e--){let t=a[e];if(t.is(_)||n6(t)&&t.isParentOf(_))break;t.isAttached()&&(!u.has(t)||t.is(l)?b||x.insertAfter(t,!1):t.remove())}if(!b){let e=r,n=null;for(;null!==e;){let r=e.getChildren(),l=r.length;(0===l||r[l-1].is(n))&&(t.delete(e.__key),n=e),e=e.getParent()}}if(_.isToken())if(d===v)_.select();else{let t=t5(e);t.select(),_.replace(t)}else""===(_=_.spliceText(d,v-d,e,!0)).getTextContent()?_.remove():_.isComposing()&&"text"===this.anchor.type&&(this.anchor.offset-=e.length);for(let e=1;e<y;e++){let n=p[e],r=n.__key;t.has(r)||n.remove()}}}removeText(){let e=nS()===this;i6(this,function(e,t="removeEmptySlices"){let n,l;if(e.isCollapsed())return e;let a="root",u="next",c=t,d=ot(e,u),h=i3(d.anchor,a),p=i3(d.focus.getFlipped(),a),y=new Set,_=[];for(let e of d.iterNodeCarets(a))if(iI(e))y.add(e.origin.getKey());else if(iL(e)){let{origin:t}=e;n6(t)&&!y.has(t.getKey())||_.push(t)}for(let e of _)e.remove();for(let e of d.getTextSlices()){if(!e)continue;let{origin:t}=e.caret,n=t.getTextContentSize(),r=i8(iK(t,u)),l=t.getMode();if(Math.abs(e.distance)===n&&"removeEmptySlices"===c||"token"===l&&0!==e.distance)r.remove();else if(0!==e.distance){c="removeEmptySlices";let t=e.removeTextSlice(),n=e.caret.origin;if("segmented"===l){let e=t.origin,n=t5(e.getTextContent()).setStyle(e.getStyle()).setFormat(e.getFormat());r.replaceOrInsert(n),t=iU(n,u,t.offset)}n.is(h[0].origin)&&(h[0]=t),n.is(p[0].origin)&&(p[0]=t.getFlipped())}}for(let e of h)if(i4(e)){n=i7(e);break}for(let e of p)if(i4(e)){l=i7(e);break}let v=function(e,t,n){let r;if(!e||!t)return null;let l=e.getParentAtCaret(),a=t.getParentAtCaret();if(!l||!a)return null;let u=l.getParents().reverse();u.push(l);let c=a.getParents().reverse();c.push(a);let d=Math.min(u.length,c.length);for(r=0;r<d&&u[r]===c[r];r++);let h=(e,t)=>{let n;for(let l=r;l<e.length;l++){let r=e[l];if(ia(r))return;!n&&t(r)&&(n=r)}return n},p=h(u,ib),y=p&&h(c,e=>n.has(e.getKey())&&ib(e));return p&&y?[p,y]:null}(n,l,y);if(v){let[e,t]=v;iJ(e,"previous").splice(0,t.getChildren()),t.remove()}let b=[n,l,...h,...p].find(i4);if(b){var S;return iH(S=oe(i7(b),e.direction),S)}r(269,JSON.stringify(h.map(e=>e.origin.__key)))}(i5(this))),e&&nS()!==this&&rW(this)}formatText(e,t=null){if(this.isCollapsed())return this.toggleFormat(e),void rR(null);let n=this.getNodes(),r=[];for(let e of n)t8(e)&&r.push(e);let l=t=>
1{n.forEach(n=>{if(n6(n)){let r=n.getFormatFlags(e,t);n.setTextFormat(r)}})},a=r.length;if(0===a)return this.toggleFormat(e),rR(null),void l(t);let u=this.anchor,c=this.focus,d=this.isBackward(),h=d?c:u,p=d?u:c,y=0,_=r[0],v="element"===h.type?0:h.offset;if("text"===h.type&&v===_.getTextContentSize()&&(y=1,_=r[1],v=0),null==_)return;let b=_.getFormatFlags(e,t);l(b);let S=a-1,x=r[S],w="text"===p.type?p.offset:x.getTextContentSize();if(_.is(x)){if(v===w)return;if(rT(_)||0===v&&w===_.getTextContentSize())_.setFormat(b);else{let e=_.splitText(v,w),t=0===v?e[0]:e[1];t.setFormat(b),"text"===h.type&&h.set(t.__key,0,"text"),"text"===p.type&&p.set(t.__key,w-v,"text")}return void(this.format=b)}0===v||rT(_)||([,_]=_.splitText(v),v=0),_.setFormat(b);let C=x.getFormatFlags(e,b);w>0&&(w===x.getTextContentSize()||rT(x)||([x]=x.splitText(w)),x.setFormat(C));for(let t=y+1;t<S;t++){let n=r[t],l=n.getFormatFlags(e,C);n.setFormat(l)}"text"===h.type&&h.set(_.__key,v,"text"),"text"===p.type&&p.set(x.__key,w,"text"),this.format=b|C}insertNodes(e){var t;if(0===e.length)return;if(this.isCollapsed()||this.removeText(),"root"===this.anchor.key){this.insertParagraph();let t=nS();return ni(t)||r(134),t.insertNodes(e)}let n=(this.isBackward()?this.focus:this.anchor).getNode(),l=iS(n,ib),a=e[e.length-1];if(n6(l)&&"__language"in l){if("__language"in e[0])this.insertText(e[0].getTextContent());else{let t=nO(this);l.splice(t,0,e),a.selectEnd()}return}if(!e.some(e=>(n6(e)||n3(e))&&!e.isInline())){n6(l)||r(211,n.constructor.name,n.getType());let t=nO(this);return l.splice(t,0,e),void a.selectEnd()}let u=function(e){let t=rd(),n=null;for(let r=0;r<e.length;r++){let l=e[r],a=tU(l);if(a||n3(l)&&l.isInline()||n6(l)&&l.isInline()||t8(l)||l.isParentRequired()){if(null===n&&(n=l.createParentElementNode(),t.append(n),a))continue;null!==n&&n.append(l)}else t.append(l),n=null}return t}(e),c=u.getLastDescendant(),d=u.getChildren(),h=n6(l)&&l.isEmpty()?null:this.insertParagraph(),p=d[d.length-1],y=d[0];n6(t=y)&&ib(t)&&!t.isEmpty()&&n6(l)&&(!l.isEmpty()||l.canMergeWhenEmpty())&&(n6(l)||r(211,n.constructor.name,n.getType()),l.append(...y.getChildren()),y=d[1]),y&&(null===l&&r(212,n.constructor.name,n.getType()),function(e,t,n){let l=t.getParentOrThrow().getLastChild(),a=t,u=[t];for(;a!==l;)a.getNextSibling()||r(140),u.push(a=a.getNextSibling());let c=e;for(let e of u)c=c.insertAfter(e)}(l,y));let _=iS(c,ib);h&&n6(_)&&(h.canMergeWhenEmpty()||ib(p))&&(_.append(...h.getChildren()),h.remove()),n6(l)&&l.isEmpty()&&l.remove(),c.selectEnd();let v=n6(l)?l.getLastChild():null;tU(v)&&_!==l&&v.remove()}insertParagraph(){if("root"===this.anchor.key){let e=rd();return rK().splice(this.anchor.offset,0,[e]),e.select(),e}let e=nO(this),t=iS(this.anchor.getNode(),ib);n6(t)||r(213);let n=t.getChildAtIndex(e),l=n?[n,...n.getNextSiblings()]:[],a=t.insertNewAfter(this,!1);return a?(a.append(...l),a.selectStart(),a):null}insertLineBreak(e){let t=tK();if(this.insertNodes([t]),e){let e=t.getParentOrThrow(),n=t.getIndexWithinParent();e.select(n,n)}}extract(){let e=this.getNodes(),t=e.length,n=t-1,r=this.anchor,l=this.focus,a=e[0],u=e[n],[c,d]=na(this);if(0===t)return[];if(1===t){if(t8(a)&&!this.isCollapsed()){let e=c>d?d:c,t=a.splitText(e,c>d?c:d),n=0===e?t[0]:t[1];return null!=n?[n]:[]}return[a]}let h=r.isBefore(l);if(t8(a)){let t=h?c:d;t===a.getTextContentSize()?e.shift():0!==t&&([,a]=a.splitText(t),e[0]=a)}if(t8(u)){let t=u.getTextContent().length,r=h?d:c;0===r?e.pop():r!==t&&([u]=u.splitText(r),e[n]=u)}return e}modify(e,t,n){var r;if(nA(this,e,t,n))return;let l="move"===e,a=nK(),u=ig(is(a));if(!u)return;let c=a._blockCursorElement,d=a._rootElement,h=this.focus.getNode();if(null===d||null===c||!n6(h)||h.isInline()||h.canBeEmpty()||ih(c,a,d),this.dirty){let e=it(a,this.anchor.key),t=it(a,this.focus.key);"text"===this.anchor.type&&(e=rN(e)),"text"===this.focus.type&&(t=rN(t)),e&&t&&nk(u,e,this.anchor.offset,t,this.focus.offset)}if(r=t?"backward":"forward",u.modify(e,r,n),u.rangeCount>0){let e=u.getRangeAt(0),n=this.anchor.getNode(),r=n7(n)?n:function(e){let t=e.getParentOrThrow();for(;null!==t&&!ia(t);)t=t.getParentOrThrow();return t}(n);if(this.applyDOMRange(e),this.dirty=!0,!l){let n=this.getNodes(),l=[],a=!1;for(let e=0;e<n.length;e++){let t=n[e];io(t,r)?l.push(t):a=!0}if(a&&l.length>0)if(t){let e=l[0];n6(e)?e.selectStart():e.getParentOrThrow().selectStart()}else{let e=l[l.length-1];n6(e)?e.selectEnd():e.getParentOrThrow().selectEnd()}u.anchorNode===e.startContainer&&u.anchorOffset===e.startOffset||function(e){let t=e.focus,n=e.anchor,r=n.key,l=n.offset,a=n.type;n.set(t.key,t.offset,t.type,!0),t.set(r,l,a,!0)}(this)}}"lineboundary"===n&&nA(this,e,t,n,"decorators")}forwardDeletion(e,t,n){if(!n&&("element"===e.type&&n6(t)&&e.offset===t.getChildrenSize()||"text"===e.type&&e.offset===t.getTextContentSize())){let e=t.getParent(),n=t.getNextSibling()||(null===e?null:e.getNextSibling());if(n6(n)&&n.isShadowRoot())return!0}return!1}deleteCharacter(e){let t=this.isCollapsed();
1if(this.isCollapsed()){let t=this.anchor,n=t.getNode();if(this.forwardDeletion(t,n,e))return;let r=i$(i1(t,e?"previous":"next"));if(r.getTextSlices().every(e=>null===e||0===e.distance)){let e={type:"initial"};for(let t of r.iterNodeCarets("shadowRoot"))if(iI(t))if(t.origin.isInline());else{if(t.origin.isShadowRoot()){if("merge-block"===e.type)break;if(n6(r.anchor.origin)&&r.anchor.origin.isEmpty()){let e=i7(t);i6(this,iH(e,e)),r.anchor.origin.remove()}return}"merge-next-block"!==e.type&&"merge-block"!==e.type||(e={block:e.block,caret:t,type:"merge-block"})}else{if("merge-block"===e.type)break;if(iL(t)){if(n6(t.origin)){if(t.origin.isInline()){if(!t.origin.isParentOf(r.anchor.origin))break}else e={block:t.origin,type:"merge-next-block"};continue}if(n3(t.origin)){if(t.origin.isIsolated());else if("merge-next-block"===e.type&&(t.origin.isKeyboardSelectable()||!t.origin.isInline())&&n6(r.anchor.origin)&&r.anchor.origin.isEmpty()){r.anchor.origin.remove();let e=nv();e.add(t.origin.getKey()),rW(e)}else t.origin.remove();return}break}}if("merge-block"===e.type){let{caret:t,block:n}=e;return i6(this,iH(!t.origin.isEmpty()&&n.isEmpty()?i8(iK(n,t.direction)):r.anchor,t)),this.removeText()}}let l=this.focus;if(this.modify("extend",e,"character"),this.isCollapsed()){if(e&&0===t.offset&&nu(this,t.getNode()))return}else{let r="text"===l.type?l.getNode():null;if(n="text"===t.type?t.getNode():null,null!==r&&r.isSegmented()){let t=l.offset,a=r.getTextContentSize();if(r.is(n)||e&&t!==a||!e&&0!==t)return void nc(r,e,t)}else if(null!==n&&n.isSegmented()){let l=t.offset,a=n.getTextContentSize();if(n.is(r)||e&&0!==l||!e&&l!==a)return void nc(n,e,l)}!function(e,t){let n=e.anchor,r=e.focus,l=n.getNode();if(l===r.getNode()&&"text"===n.type&&"text"===r.type){var a;let e=n.offset,u=r.offset,c=e<u,d=c?e:u,h=c?u:e,p=h-1;d===p||rZ(a=l.getTextContent().slice(d,h))||nf(a)||(t?r.set(r.key,p,r.type):n.set(n.key,p,n.type))}}(this,e)}}if(this.removeText(),e&&!t&&this.isCollapsed()&&"element"===this.anchor.type&&0===this.anchor.offset){let e=this.anchor.getNode();e.isEmpty()&&n7(e.getParent())&&null===e.getPreviousSibling()&&nu(this,e)}}deleteLine(e){this.isCollapsed()&&this.modify("extend",e,"lineboundary"),this.isCollapsed()?this.deleteCharacter(e):this.removeText()}deleteWord(e){if(this.isCollapsed()){let t=this.anchor,n=t.getNode();if(this.forwardDeletion(t,n,e))return;this.modify("extend",e,"word")}this.removeText()}isBackward(){return this.focus.isBefore(this.anchor)}getStartEndPoints(){return[this.anchor,this.focus]}}function nl(e){return e instanceof nr}function ns(e){let t=e.offset;if("text"===e.type)return t;let n=e.getNode();return t===n.getChildrenSize()?n.getTextContent().length:0}function na(e){let t=e.getStartEndPoints();if(null===t)return[0,0];let[n,r]=t;return"element"===n.type&&"element"===r.type&&n.key===r.key&&n.offset===r.offset?[0,0]:[ns(n),ns(r)]}function nu(e,t){for(let n=t;n;n=n.getParent()){if(n6(n)){if(n.collapseAtStart(e))return!0;if(ia(n))break}if(n.getPreviousSibling())break}return!1}let nf=(()=>{try{let e=RegExp("\\p{Emoji}","u"),t=e.test.bind(e);if(t("❤️")&&t("#️⃣")&&t("\uD83D\uDC4D"))return t}catch(e){}return()=>!1})();function nc(e,t,n){let r=e.getTextContent().split(/(?=\s)/g),l=r.length,a=0,u=0;for(let e=0;e<l;e++){let c=e===l-1;if(u=a,a+=r[e].length,t&&a===n||a>n||c){r.splice(e,1),c&&(u=void 0);break}}let c=r.join("").trim();""===c?e.remove():(e.setTextContent(c),e.select(u,u))}function nd(e,t,n,l){let a,u=t;if(ip(e)){let c=!1,d=e.childNodes,h=d.length,p=l._blockCursorElement;u===h&&(c=!0,u=h-1);let y=d[u],_=!1;if(y===p)y=d[u+1],_=!0;else if(null!==p){let n=p.parentNode;e===n&&t>Array.prototype.indexOf.call(n.children,p)&&u--}if(t8(a=rJ(y)))u=rq(a,c);else{let d=rJ(e);if(null===d)return null;if(n6(d)){let h=l.getElementByKey(d.getKey());null===h&&r(214);let p=d.getDOMSlot(h);[d,u]=p.resolveChildIndex(d,h,e,t),n6(d)||r(215),c&&u>=d.getChildrenSize()&&(u=Math.max(0,d.getChildrenSize()-1));let y=d.getChildAtIndex(u);if(n6(y)&&function(e,t,n){let r=e.getParent();return null===n||null===r||!r.canBeEmpty()||r!==n.getNode()}(y,0,n)){let e=c?y.getLastDescendant():y.getFirstDescendant();d=null===e||n6(y=e)?y:y.getParentOrThrow(),u=0}t8(y)?(a=y,d=null,u=rq(y,c)):y!==d&&c&&!_&&(n6(d)||r(216),u=Math.min(d.getChildrenSize(),u+1))}else{let n=d.getIndexWithinParent();u=0===t&&n3(d)&&rJ(e)===d?n:n+1,d=d.getParentOrThrow()}if(n6(d))return ne(d.__key,u,"element")}}else a=rJ(e);return t8(a)?ne(a.__key,u,"text"):null}
1function nh(e,t,n){let r=e.offset,l=e.getNode();if(0===r){let r=l.getPreviousSibling(),a=l.getParent();if(t){if((n||!t)&&null===r&&n6(a)&&a.isInline()){let t=a.getPreviousSibling();t8(t)&&e.set(t.__key,t.getTextContent().length,"text")}}else n6(r)&&!n&&r.isInline()?e.set(r.__key,r.getChildrenSize(),"element"):t8(r)&&e.set(r.__key,r.getTextContent().length,"text")}else if(r===l.getTextContent().length){let r=l.getNextSibling(),a=l.getParent();if(t&&n6(r)&&r.isInline())e.set(r.__key,0,"element");else if((n||t)&&null===r&&n6(a)&&a.isInline()&&!a.canInsertTextAfter()){let t=a.getNextSibling();t8(t)&&e.set(t.__key,0,"text")}}}function ng(e,t,n){if("text"===e.type&&"text"===t.type){let r=e.isBefore(t),l=e.is(t);nh(e,r,l),nh(t,!r,l),l&&t.set(e.key,e.offset,e.type);let a=nK();if(a.isComposing()&&a._compositionKey!==e.key&&ni(n)){let r=n.anchor,l=n.focus;e.set(r.key,r.offset,r.type,!0),t.set(l.key,l.offset,l.type,!0)}}}function np(e,t,n,r,l,a){if(null===e||null===n||!rx(l,e,n))return null;let u=nd(e,t,ni(a)?a.anchor:null,l);if(null===u)return null;let c=nd(n,r,ni(a)?a.focus:null,l);if(null===c)return null;if("element"===u.type&&"element"===c.type){let t=rJ(e),r=rJ(n);if(n3(t)&&n3(r))return null}return ng(u,c,a),[u,c]}function nm(e){return n6(e)&&!e.isInline()}function ny(e,t,n,r,l,a){let u=nz(),c=new no(ne(e,t,l),ne(n,r,a),0,"");return c.dirty=!0,u._selection=c,c}function n_(){return new no(ne("root",0,"element"),ne("root",0,"element"),0,"")}function nv(){return new nr(new Set)}function nb(e,t,n,r){let l,a,u,c,d=n._window;if(null===d)return null;let h=r||d.event,p=h?h.type:void 0,y="selectionchange"===p,_=!F&&(y||"beforeinput"===p||"compositionstart"===p||"compositionend"===p||"click"===p&&h&&3===h.detail||"drop"===p||void 0===p);if(ni(e)&&!_)return e.clone();if(null===t)return null;if(l=t.anchorNode,a=t.focusNode,u=t.anchorOffset,c=t.focusOffset,y&&ni(e)&&!rx(n,l,a))return e.clone();let v=np(l,u,a,c,n,e);if(null===v)return null;let[b,S]=v;return new no(b,S,ni(e)?e.format:0,ni(e)?e.style:"")}function nS(){return nz()._selection}function nx(){return nK()._editorState._selection}function nw(e,t,n,r=1){let l=e.anchor,a=e.focus,u=l.getNode(),c=a.getNode();if(!t.is(u)&&!t.is(c))return;let d=t.__key;if(e.isCollapsed()){let t=l.offset;if(n<=t&&r>0||n<t&&r<0){let n=Math.max(0,t+r);l.set(d,n,"element"),a.set(d,n,"element"),nC(e)}}else{let u=e.isBackward(),c=u?a:l,h=c.getNode(),p=u?l:a,y=p.getNode();if(t.is(h)){let e=c.offset;(n<=e&&r>0||n<e&&r<0)&&c.set(d,Math.max(0,e+r),"element")}if(t.is(y)){let e=p.offset;(n<=e&&r>0||n<e&&r<0)&&p.set(d,Math.max(0,e+r),"element")}}nC(e)}function nC(e){let t=e.anchor,n=t.offset,r=e.focus,l=r.offset,a=t.getNode(),u=r.getNode();if(e.isCollapsed()){if(!n6(a))return;let e=a.getChildrenSize(),l=n>=e,u=l?a.getChildAtIndex(e-1):a.getChildAtIndex(n);if(t8(u)){let e=0;l&&(e=u.getTextContentSize()),t.set(u.__key,e,"text"),r.set(u.__key,e,"text")}}else{if(n6(a)){let e=a.getChildrenSize(),r=n>=e,l=r?a.getChildAtIndex(e-1):a.getChildAtIndex(n);if(t8(l)){let e=0;r&&(e=l.getTextContentSize()),t.set(l.__key,e,"text")}}if(n6(u)){let e=u.getChildrenSize(),t=l>=e,n=t?u.getChildAtIndex(e-1):u.getChildAtIndex(l);if(t8(n)){let e=0;t&&(e=n.getTextContentSize()),r.set(n.__key,e,"text")}}}}function nE(e,t,n,r,l){let a=null,u=0,c=null;null!==r?(a=r.__key,t8(r)?(u=r.getTextContentSize(),c="text"):n6(r)&&(u=r.getChildrenSize(),c="element")):null!==l&&(a=l.__key,t8(l)?c="text":n6(l)&&(c="element")),null!==a&&null!==c?e.set(a,u,c):(-1===(u=t.getIndexWithinParent())&&(u=n.getChildrenSize()),e.set(n.__key,u,"element"))}function nT(e,t,n,r,l){"text"===e.type?e.set(n,e.offset+(t?0:l),"text"):e.offset>r.getIndexWithinParent()&&e.set(e.key,e.offset-1,"element")}function nk(e,t,n,r,l){try{e.setBaseAndExtent(t,n,r,l)}catch(e){}}function nN(e){let t=nS()||nx();null===t&&(t=rK().selectEnd()),t.insertNodes(e)}function nO(e){let t=e;e.isCollapsed()||t.removeText();let n=nS();ni(n)&&(t=n),ni(t)||r(161);let l=t.anchor,a=l.getNode(),u=l.offset;for(;!ib(a);){let e=a;if([a,u]=function(e,t){let n=e.getParent();if(!n){let e=rd();return rK().append(e),e.select(),[rK(),0]}if(t8(e)){let r=e.splitText(t);if(0===r.length)return[n,e.getIndexWithinParent()];let l=+(0!==t);return[n,r[0].getIndexWithinParent()+l]}
1if(!n6(e)||0===t)return[n,e.getIndexWithinParent()];let r=e.getChildAtIndex(t);if(r){let n=new no(ne(e.__key,t,"element"),ne(e.__key,t,"element"),0,""),l=e.insertNewAfter(n);l&&l.append(r,...r.getNextSiblings())}return[n,e.getIndexWithinParent()+1]}(a,u),e.is(a))break}return u}function nA(e,t,n,r,l="decorators-and-blocks"){if("move"===t&&"character"===r&&!e.isCollapsed()){let[t,r]=n===e.isBackward()?[e.focus,e.anchor]:[e.anchor,e.focus];return r.set(t.key,t.offset,t.type),!0}let a=i1(e.focus,n?"previous":"next"),u="lineboundary"===r,c="move"===t,d=a,h="decorators-and-blocks"===l;if(!i9(d)){for(let e of d){h=!1;let{origin:t}=e;if(!n3(t)||t.isIsolated()||(d=e,!u||!t.isInline()))break}if(h)for(let e of i$(a).iterNodeCarets("extend"===t?"shadowRoot":"root")){if(iI(e))e.origin.isInline()||(d=e);else{if(n6(e.origin))continue;n3(e.origin)&&!e.origin.isInline()&&(d=e)}break}}if(d===a)return!1;if(c&&!u&&n3(d.origin)&&d.origin.isKeyboardSelectable()){let e=nv();return e.add(d.origin.getKey()),rW(e),!0}return d=i7(d),c&&i2(e.anchor,d),i2(e.focus,d),h||!u}let nP=null,nM=null,nR=!1,nF=!1,nD=0,nL={characterData:!0,childList:!0,subtree:!0};function nI(){return nR||null!==nP&&nP._readOnly}function nB(){nR&&r(13)}function nj(){nD>99&&r(14)}function nz(){return null===nP&&r(195,nU()),nP}function nK(){return null===nM&&r(196,nU()),nM}function nU(){let e=0,t=new Set,n=r_.version;if("undefined"!=typeof window)for(let r of document.querySelectorAll("[contenteditable]")){let l=rE(r);if(rw(l))e++;else if(l){let e=String(l.constructor.version||"<0.17.1");e===n&&(e+=" (separately built, likely a bundler configuration issue)"),t.add(e)}}let r=` Detected on the page: ${e} compatible editor(s) with version ${n}`;return t.size&&(r+=` and incompatible editors with versions ${Array.from(t).join(", ")}`),r}function nW(e,t,n){let l=t.__type,a=function(e,t){let n=e._nodes.get(t);return void 0===n&&r(30,t),n}(e,l),u=n.get(l);void 0===u&&(u=Array.from(a.transforms),n.set(l,u));let c=u.length;for(let e=0;e<c&&(u[e](t),t.isAttached());e++);}function nJ(e,t){return void 0!==e&&e.__key!==t&&e.isAttached()}function nq(e,t){if(!t)return;let n=e._updateTags,r=t;for(let e of(Array.isArray(t)||(r=[t]),r))n.add(e)}function nZ(e){return nV(e,nK()._nodes)}function nV(e,t){let n=e.type,l=t.get(n);void 0===l&&r(17,n);let a=l.klass;e.type!==a.getType()&&r(18,a.name);let u=a.importJSON(e),c=e.children;if(n6(u)&&Array.isArray(c))for(let e=0;e<c.length;e++){let n=nV(c[e],t);u.append(n)}return u}function n$(e,t,n){let r=nP,l=nR,a=nM;nP=t,nR=!0,nM=e;try{return n()}finally{nP=r,nR=l,nM=a}}function nH(e,t){let n=e._pendingEditorState,l=e._rootElement,a=e._headless||null===l;if(null===n)return;let u=e._editorState,c=u._selection,d=n._selection,h=0!==e._dirtyType,p=nP,y=nR,_=nM,v=e._updating,b=e._observer,x=null;if(e._pendingEditorState=null,e._editorState=n,!a&&h&&null!==b){nM=e,nP=n,nR=!1,e._updating=!0;try{let t=e._dirtyType,l=e._dirtyElements,a=e._dirtyLeaves;b.disconnect(),x=function(e,t,n,l,a,u){eo="",eu="",el="",ef=2===l,ed=null,Y=n,H=n._config,X=n._nodes,G=Y._listeners.mutation,Q=a,ee=u,et=e._nodeMap,en=t._nodeMap,ec=t._readOnly,er=new Map(n._keyToDOMMap);let c=new Map;return ei=c,function e(t,n){let l=et.get(t),a=en.get(t);void 0!==l&&void 0!==a||r(61);let u=ef||ee.has(t)||Q.has(t),c=it(Y,t);if(l===a&&!u){if(n6(l)){let e=c.__lexicalTextContent;void 0!==e&&(eo+=e,eu+=e);let t=c.__lexicalDirTextContent;void 0!==t&&(el+=t)}else{let e=l.getTextContent();t8(l)&&!l.isDirectionless()&&(el+=e),eu+=e,eo+=e}return c}if(l!==a&&u&&r8(ei,X,G,a,"updated"),a.updateDOM(l,c,H)){let e=e_(t,null);return null===n&&r(62),n.replaceChild(e,c),eh(t,null),e}if(n6(l)&&n6(a)){let t=a.__indent;t!==l.__indent&&em(c,t);let n=a.__format;n!==l.__format&&ey(c,n),u&&(function(t,n,l){let a=el;el="",es=null,ea="",function(t,n,l){let a=eo,u=t.__size,c=n.__size;eo="";let d=l.element;if(1===u&&1===c){let r=t.__first,l=n.__first;if(r===l)e(r,d);else{let e=eT(r),t=e_(l,null);try{d.replaceChild(t,e)}catch(n){if("object"==typeof n&&null!=n)throw Error(`${n.toString()} Parent: ${d.tagName}, new child: {tag: ${t.tagName} key: ${l}}, old child: {tag: ${e.tagName}, key: ${r}}.`);throw n}eh(r,null)}let a=en.get(l);t8(a)&&(null===es&&(es=a.getFormat()),""===ea&&(ea=a.getStyle()))}else{let a=ew(t,et),h=ew(n,en);if(a.length!==u&&r(227),h.length!==c&&r(228),0===u)0!==c&&ev(h,n,0,c-1,l);else if(0===c){if(0!==u){let e=null==l.after&&null==l.before&&null==l.element.__lexicalLineBreak;eg(a,0,u-1,e?null:d),e&&(d.textContent="")}}else!function(t,n,r,l,a,u){let c=l-1,d=a-1,h,p,y=u.getFirstChild(),_=0,v=0;for(;_<=c&&v<=d;){let t=n[_],l=r[v];if(t===l)y=eE(e(l,u.element)),_++,v++;else{void 0===h&&(h=new Set(n)),void 0===p&&(p=new Set(r));let a=p.has(t),c=h.has(l);if(a)if(c){let t=it(Y,l);t===y?y=eE(e(l,u.element)):(u.withBefore(y).insertChild(t),e(l,u.element)),_++,v++}else e_(l,u.withBefore(y)),v++;else y=eE(eT(t)),eh(t,u.element),_++}let a=en.get(l);null!==a&&t8(a)&&(null===es&&(es=a.getFormat()),""===ea&&(ea=a.getStyle()))}let b=_>c,S=v>d;if(b&&!S){let e=r[d+1],n=void 0===e?null:Y.getElementByKey(e);ev(r,t,v,d,u.withBefore(n))}else S&&!b&&eg(n,_,c,u.element)}(n,a,h,u,c,l)}ie(n)&&(eo+="\n\n"),d.__lexicalTextContent=eo,eo=a+eo}(t,n,n.getDOMSlot(l)),ex(n,l),null==es||es===n.__textFormat||ec||n.setTextFormat(es
1),""===ea||ea===n.__textStyle||ec||n.setTextStyle(ea),el=a}(l,a,c),n7(a)||a.isInline()||eS(l,a,c)),ie(a)&&(eo+="\n\n",eu+="\n\n")}else{let e=a.getTextContent();if(n3(a)){let e=a.decorate(Y,H);null!==e&&eC(t,e)}else t8(a)&&!a.isDirectionless()&&(el+=e);eo+=e,eu+=e}if(!ec&&n7(a)&&a.__cachedText!==eu){let e=a.getWritable();e.__cachedText=eu,a=e}return c}("root",null),Y=void 0,X=void 0,Q=void 0,ee=void 0,et=void 0,en=void 0,H=void 0,er=void 0,ei=void 0,c}(u,n,e,t,l,a)}catch(t){if(t instanceof Error&&e._onError(t),nF)throw t;return rm(e,null,l,n),z(e),e._dirtyType=2,nF=!0,nH(e,u),void(nF=!1)}finally{b.observe(l,nL),e._updating=v,nP=p,nR=y,nM=_}}n._readOnly||(n._readOnly=!0);let w=e._dirtyLeaves,C=e._dirtyElements,E=e._normalizedNodes,T=e._updateTags,k=e._deferred;h&&(e._dirtyType=0,e._cloneNotNeeded.clear(),e._dirtyLeaves=new Set,e._dirtyElements=new Map,e._normalizedNodes=new Set,e._updateTags=new Set),function(e,t){let n,r=e._decorators,l=e._pendingDecorators||r,a=t._nodeMap;for(n in l)a.has(n)||(l===r&&(l=rj(e)),delete l[n])}(e,n);let N=a?null:ig(is(e));if(e._editable&&null!==N&&(h||null===d||d.dirty)&&null!==l&&!T.has(ra)){nM=e,nP=n;try{if(null!==b&&b.disconnect(),h||null===d||d.dirty){let t=e._blockCursorElement;null!==t&&ih(t,e,l),function(e,t,n,r,l,a,u){let c=r.anchorNode,d=r.focusNode,h=r.anchorOffset,p=r.focusOffset,y=document.activeElement;if(l.has(rl)&&y!==a||null!==y&&rS(y))return;if(!ni(t))return null!==e&&rx(n,c,d)&&r.removeAllRanges();let _=t.anchor,v=t.focus,b=_.key,S=v.key,x=it(n,b),w=it(n,S),C=_.offset,E=v.offset,T=t.format,k=t.style,N=t.isCollapsed(),O=x,A=w,P=!1;if("text"===_.type){O=rN(x);let e=_.getNode();P=e.getFormat()!==T||e.getStyle()!==k}else ni(e)&&"text"===e.anchor.type&&(P=!0);if("text"===v.type&&(A=rN(w)),null!==O&&null!==A&&(N&&(null===e||P||ni(e)&&(e.format!==T||e.style!==k))&&(tw=[T,k,C,b,performance.now()]),h!==C||p!==E||c!==O||d!==A||"Range"===r.type&&N||(null!==y&&a.contains(y)||a.focus({preventScroll:!0}),"element"===_.type))){if(nk(r,O,C,A,E),!l.has(rs)&&t.isCollapsed()&&null!==a&&a===document.activeElement){let e=ni(t)&&"element"===t.anchor.type?O.childNodes[C]||null:r.rangeCount>0?r.getRangeAt(0):null;if(null!==e){let t;if(e instanceof Text){let n=document.createRange();n.selectNode(e),t=n.getBoundingClientRect()}else t=e.getBoundingClientRect();!function(e,t,n){let r=ii(n),l=il(r);if(null===r||null===l)return;let{top:a,bottom:u}=t,c=0,d=0,h=n;for(;null!==h;){let t=h===r.body;if(t)c=0,d=is(e).innerHeight;else{let e=h.getBoundingClientRect();c=e.top,d=e.bottom}let n=0;if(a<c?n=-(c-a):u>d&&(n=u-d),0!==n)if(t)l.scrollBy(0,n);else{let e=h.scrollTop;h.scrollTop+=n;let t=h.scrollTop-e;a-=t,u-=t}if(t)break;h=ir(h)}}(n,t,a)}}tm=!0}}(c,d,e,N,T,l)}!function(e,t,n){let r=e._blockCursorElement;if(ni(n)&&n.isCollapsed()&&"element"===n.anchor.type&&t.contains(document.activeElement)){let l=n.anchor,a=l.getNode(),u=l.offset,c=!1,d=null;if(u===a.getChildrenSize())id(a.getChildAtIndex(u-1))&&(c=!0);else{let t=a.getChildAtIndex(u);if(null!==t&&id(t)){let n=t.getPreviousSibling();(null===n||id(n))&&(c=!0,d=e.getElementByKey(t.__key))}}if(c){let n=e.getElementByKey(a.__key);return null===r&&(e._blockCursorElement=r=function(e){let t=e.theme,n=document.createElement("div");n.contentEditable="false",n.setAttribute("data-lexical-cursor","true");let r=t.blockCursor;return void 0!==r&&("string"==typeof r&&(r=t.blockCursor=S(r)),void 0!==r&&n.classList.add(...r)),n}(e._config)),t.style.caretColor="transparent",null===d?n.appendChild(r):n.insertBefore(r,d)}}null!==r&&ih(r,e,t)}(e,l,d)}finally{null!==b&&b.observe(l,nL),nM=_,nP=p}}null!==x&&function(e,t,n,r,l){let a=Array.from(e._listeners.mutation),u=a.length;for(let e=0;e<u;e++){let[u,c]=a[e],d=t.get(c);void 0!==d&&u(d,{dirtyLeaves:r,prevEditorState:l,updateTags:n})}}(e,x,T,w,u),ni(d)||null===d||null!==c&&c.is(d)||e.dispatchCommand(eN,void 0);let O=e._pendingDecorators;null!==O&&(e._decorators=O,e._pendingDecorators=null,nY("decorator",e,!0,O)),function(e,t,n){let r=rz(t),l=rz(n);r!==l&&nY("textcontent",e,!0,l)}(e,t||u,n),nY("update",e,!0,{dirtyElements:C,dirtyLeaves:w,editorState:n,mutatedNodes:x,normalizedNodes:E,prevEditorState:t||u,tags:T}),function(e,t){if(e._deferred=[],0!==t.length){let n=e._updating;e._updating=!0;try{for(let e=0;e<t.length;e++)t[e]()}finally{e._updating=n}}}(e,k),function(e){let t=e._updates;if(0!==t.length){let n=t.shift();if(n){let[t,r]=n;nG(e,t,r)}}}(e)}function nY(e,t,n,...r){let l=t._updating;t._updating=n;try{let n=Array.from(t._listeners[e]);for(let e=0;e<n.length;e++)n[e].apply(null,r)}finally{t._updating=l}}function nX(e,t){let n=e._updates,l=t||!1;for(;0!==n.length;){let t=n.shift();if(t){let n,[a,u]=t;if(void 0!==u){if(n=u.onUpdate,u.skipTransforms&&(l=!0),u.discrete){let t=e._pendingEditorState;null===t&&r(191),t._flushSync=!0}n&&e._deferred.push(n),nq(e,u.tag)}a()}}return l}
1function nG(e,t,n){let l=e._updateTags,a,u=!1,c=!1;void 0!==n&&(a=n.onUpdate,nq(e,n.tag),u=n.skipTransforms||!1,c=n.discrete||!1),a&&e._deferred.push(a);let d=e._editorState,h=e._pendingEditorState,p=!1;(null===h||h._readOnly)&&(h=e._pendingEditorState=n9(h||d),p=!0),h._flushSync=c;let y=nP,_=nR,v=nM,b=e._updating;nP=h,nR=!1,e._updating=!0,nM=e;let S=e._headless||null===e.getRootElement();try{p&&(S?null!==d._selection&&(h._selection=d._selection.clone()):h._selection=function(e,t){let n=e.getEditorState()._selection,r=ig(is(e));return ni(n)||null==n?nb(n,r,e,t):n.clone()}(e,n&&n.event||null));let l=e._compositionKey;t(),u=nX(e,u),function(e,t){let n=t.getEditorState()._selection,r=e._selection;if(ni(r)){let e,t=r.anchor,l=r.focus;if("text"===t.type&&(e=t.getNode()).selectionTransform(n,r),"text"===l.type){let t=l.getNode();e!==t&&t.selectionTransform(n,r)}}}(h,e),0!==e._dirtyType&&(u?function(e,t){let n=t._dirtyLeaves,r=e._nodeMap;for(let e of n){let t=r.get(e);t8(t)&&t.isAttached()&&t.isSimpleText()&&!t.isUnmergeable()&&Z(t)}}(h,e):function(e,t){let n=t._dirtyLeaves,r=t._dirtyElements,l=e._nodeMap,a=rF(),u=new Map,c=n,d=c.size,h=r,p=h.size;for(;d>0||p>0;){if(d>0){for(let e of(t._dirtyLeaves=new Set,c)){let r=l.get(e);t8(r)&&r.isAttached()&&r.isSimpleText()&&!r.isUnmergeable()&&Z(r),void 0!==r&&nJ(r,a)&&nW(t,r,u),n.add(e)}if((d=(c=t._dirtyLeaves).size)>0){nD++;continue}}for(let e of(t._dirtyLeaves=new Set,t._dirtyElements=new Map,h.delete("root")&&h.set("root",!0),h)){let n=e[0],c=e[1];if(r.set(n,c),!c)continue;let d=l.get(n);void 0!==d&&nJ(d,a)&&nW(t,d,u)}d=(c=t._dirtyLeaves).size,p=(h=t._dirtyElements).size,nD++}t._dirtyLeaves=n,t._dirtyElements=r}(h,e),nX(e),function(e,t,n,r){let l=e._nodeMap,a=t._nodeMap,u=[];for(let[e]of r){let t=a.get(e);void 0!==t&&(t.isAttached()||(n6(t)&&function e(t,n,r,l,a,u){let c=t.getFirstChild();for(;null!==c;){let t=c.__key;c.__parent===n&&(n6(c)&&e(c,t,r,l,a,u),r.has(t)||u.delete(t),a.push(t)),c=c.getNextSibling()}}(t,e,l,a,u,r),l.has(e)||r.delete(e),u.push(e)))}for(let e of u)a.delete(e);for(let e of n){let t=a.get(e);void 0===t||t.isAttached()||(l.has(e)||n.delete(e),a.delete(e))}}(d,h,e._dirtyLeaves,e._dirtyElements)),l!==e._compositionKey&&(h._flushSync=!0);let a=h._selection;if(ni(a)){let e=h._nodeMap,t=a.anchor.key,n=a.focus.key;void 0!==e.get(t)&&void 0!==e.get(n)||r(19)}else nl(a)&&0===a._nodes.size&&(h._selection=null)}catch(t){return t instanceof Error&&e._onError(t),e._pendingEditorState=d,e._dirtyType=2,e._cloneNotNeeded.clear(),e._dirtyLeaves=new Set,e._dirtyElements.clear(),void nH(e)}finally{nP=y,nR=_,nM=v,e._updating=b,nD=0}0!==e._dirtyType||e._deferred.length>0||function(e,t){let n=t.getEditorState()._selection,r=e._selection;if(null!==r){if(r.dirty||!r.is(n))return!0}else if(null!==n)return!0;return!1}(h,e)?h._flushSync?(h._flushSync=!1,nH(e)):p&&rb(()=>{nH(e)}):(h._flushSync=!1,p&&(l.clear(),e._deferred=[],e._pendingEditorState=null))}function nQ(e,t,n){nM===e&&void 0===n?t():nG(e,t,n)}class n0{constructor(e,t,n){this.element=e,this.before=t||null,this.after=n||null}withBefore(e){return new n0(this.element,e,this.after)}withAfter(e){return new n0(this.element,this.before,e)}withElement(e){return this.element===e?this:new n0(e,this.before,this.after)}insertChild(e){let t=this.before||this.getManagedLineBreak();return null!==t&&t.parentElement!==this.element&&r(222),this.element.insertBefore(e,t),this}removeChild(e){return e.parentElement!==this.element&&r(223),this.element.removeChild(e),this}replaceChild(e,t){return t.parentElement!==this.element&&r(224),this.element.replaceChild(e,t),this}getFirstChild(){let e=this.after?this.after.nextSibling:this.element.firstChild;return e===this.before||e===this.getManagedLineBreak()?null:e}getManagedLineBreak(){return this.element.__lexicalLineBreak||null}setManagedLineBreak(e){null===e?this.removeManagedLineBreak():this.insertManagedLineBreak("decorator"===e&&(p||h))}removeManagedLineBreak(){let e=this.getManagedLineBreak();if(e){let t=this.element,n="IMG"===e.nodeName?e.nextSibling:null;n&&t.removeChild(n),t.removeChild(e),t.__lexicalLineBreak=void 0}}insertManagedLineBreak(e){let t=this.getManagedLineBreak();if(t){if(e===("IMG"===t.nodeName))return;this.removeManagedLineBreak()}let n=this.element,r=this.before,l=document.createElement("br");if(n.insertBefore(l,r),e){let e=document.createElement("img");e.setAttribute("data-lexical-linebreak","true"),e.style.cssText="display: inline !important; border: 0px !important; margin: 0px !important;",e.alt="",n.insertBefore(e,l),n.__lexicalLineBreak=e}else n.__lexicalLineBreak=l}getFirstChildOffset(){let e=0;for(let t=this.after;null!==t;t=t.previousSibling)e++;return e}resolveChildIndex(e,t,n,r){if(n===this.element){let t=this.getFirstChildOffset();return[e,Math.min(t+e.getChildrenSize(),Math.max(t,r))]}let l=n1(t,n);l.push(r);let a=n1(t,this.element),u=e.getIndexWithinParent();for(let e=0;e<a.length;e++){let t=l[e],n=a[e];if(void 0===t||t<n)break;if(t>n){u+=1;break}}return[e.getParentOrThrow(),u]}}function n1(e,t){let n=[],l=t;for(;l!==e&&null!==l;l=l.parentNode){let e=0;for(let t=l.previousSibling;null!==t;t=t.previousSibling)e++;n.push(e)}return l!==e&&r(225),n.reverse()}class n2 extends tB{constructor(e){super(e),this.__first=null,this.__last=null,this.__size=0,this.__format=0,this.__style="",this.__indent=0,this.__dir=null,this.__textFormat=0,this.__textStyle=""}afterCloneFrom(e){super.afterCloneFrom(e),this.__first=e.__first,this.__last=e.__last,this.__size=e.__size,this.__indent=e.__indent,this.__format=e.__format,this.__style=e.__style,this.__dir=e.__dir,this.__textFormat=e.__textFormat,this.__textStyle=e.__textStyle}getFormat(){return this.getLatest().__format}getFormatType(){return P[this.getFormat()]||""}getStyle(){return this.getLatest().__style}getIndent(){return this.getLatest().__indent}getChildren(){let e=[],t=this.getFirstChild();for(;null!==t;)e.push(t),t=t.getNextSibling();return e}getChildrenKeys(){let e=[],t=this.getFirstChild();for(;null!==t;)e.push(t.__key),t=t.getNextSibling();return e}getChildrenSize(){return this.getLatest().__size}isEmpty(){return 0===this.getChildrenSize()}isDirty(){let e=nK()._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(t8(t)&&e.push(t),n6(t)){let n=t.getAllTextNodes();e.push(...n)}t=t.getNextSibling()}return e}getFirstDescendant(){let e=this.getFirstChild();for(;n6(e);){let t=e.getFirstChild();if(null===t)break;e=t}return e}getLastDescendant(){let e=this.getLastChild();for(;n6(e);){let t=e.getLastChild();if(null===t)break;e=t}return e}getDescendantByIndex(e){let t=this.getChildren(),n=t.length;if(e>=n){let e=t[n-1];return n6(e)&&e.getLastDescendant()||e||null}let r=t[e];return n6(r)&&r.getFirstDescendant()||r||null}getFirstChild(){let e=this.getLatest().__first;return null===e?null:rD(e)}getFirstChildOrThrow(){let e=this.getFirstChild();return null===e&&r(45,this.__key),e}getLastChild(){let e=this.getLatest().__last;return null===e?null:rD(e)}getLastChildOrThrow(){let e=this.getLastChild();return null===e&&r(96,this.__key),e}getChildAtIndex(e){let t,n,r=this.getChildrenSize();if(e<r/2){for(t=this.getFirstChild(),n=0;null!==t&&n<=e;){if(n===e)return t;t=t.getNextSibling(),n++}return null}for(t=this.getLastChild(),n=r-1;null!==t&&n>=e;){if(n===e)return t;t=t.getPreviousSibling(),n--}return null}getTextContent(){let e="",t=this.getChildren(),n=t.length;for(let r=0;r<n;r++){let l=t[r];e+=l.getTextContent(),n6(l)&&r!==n-1&&!l.isInline()&&(e+="\n\n")}return e}getTextContentSize(){let e=0,t=this.getChildren(),n=t.length;for(let r=0;r<n;r++){let l=t[r];e+=l.getTextContentSize(),n6(l)&&r!==n-1&&!l.isInline()&&(e+=2)}return e}getDirection(){return this.getLatest().__dir}getTextFormat(){return this.getLatest().__textFormat}hasFormat(e){if(""!==e){let t=A[e];return!!(this.getFormat()&t)}return!1}hasTextFormat(e){let t=N[e];return!!(this.getTextFormat()&t)}getFormatFlags(e,t){return rO(this.getLatest().__textFormat,e,t)}getTextStyle(){return this.getLatest().__textStyle}select(e,t){nB();let n=nS(),r=e,l=t,a=this.getChildrenSize();if(!this.canBeEmpty()){if(0===e&&0===t){let e=this.getFirstChild();if(t8(e)||n6(e))return e.select(0,0)}else if((void 0===e||e===a)&&(void 0===t||t===a)){let e=this.getLastChild();if(t8(e)||n6(e))return e.select()}}
1void 0===r&&(r=a),void 0===l&&(l=a);let u=this.__key;return ni(n)?(n.anchor.set(u,r,"element"),n.focus.set(u,l,"element"),n.dirty=!0,n):ny(u,r,u,l,"element","element")}selectStart(){let e=this.getFirstDescendant();return e?e.selectStart():this.select()}selectEnd(){let e=this.getLastDescendant();return e?e.selectEnd():this.select()}clear(){let e=this.getWritable();return this.getChildren().forEach(e=>e.remove()),e}append(...e){return this.splice(this.getChildrenSize(),0,e)}setDirection(e){let t=this.getWritable();return t.__dir=e,t}setFormat(e){return this.getWritable().__format=""!==e?A[e]:0,this}setStyle(e){return this.getWritable().__style=e||"",this}setTextFormat(e){let t=this.getWritable();return t.__textFormat=e,t}setTextStyle(e){let t=this.getWritable();return t.__textStyle=e,t}setIndent(e){return this.getWritable().__indent=e,this}splice(e,t,n){let l=n.length,a=this.getChildrenSize(),u=this.getWritable();e+t<=a||r(226,String(e),String(t),String(a));let c=u.__key,d=[],h=[],p=this.getChildAtIndex(e+t),y=null,_=a-t+l;if(0!==e)if(e===a)y=this.getLastChild();else{let t=this.getChildAtIndex(e);null!==t&&(y=t.getPreviousSibling())}if(t>0){let e=null===y?this.getFirstChild():y.getNextSibling();for(let n=0;n<t;n++){null===e&&r(100);let t=e.getNextSibling(),n=e.__key;rP(e.getWritable()),h.push(n),e=t}}let v=y;for(let e=0;e<l;e++){let t=n[e];null!==v&&t.is(v)&&(y=v=v.getPreviousSibling());let l=t.getWritable();l.__parent===c&&_--,rP(l);let a=t.__key;if(null===v)u.__first=a,l.__prev=null;else{let e=v.getWritable();e.__next=a,l.__prev=e.__key}t.__key===c&&r(76),l.__parent=c,d.push(a),v=t}if(e+t===a)null!==v&&(v.getWritable().__next=null,u.__last=v.__key);else if(null!==p){let e=p.getWritable();if(null!==v){let t=v.getWritable();e.__prev=v.__key,t.__next=p.__key}else e.__prev=null}if(u.__size=_,h.length){let e=nS();if(ni(e)){let t=new Set(h),n=new Set(d),{anchor:r,focus:l}=e;n5(r,t,n)&&nE(r,r.getNode(),this,y,p),n5(l,t,n)&&nE(l,l.getNode(),this,y,p),0!==_||this.canBeEmpty()||ia(this)||this.remove()}}return u}getDOMSlot(e){return new n0(e)}exportDOM(e){let{element:t}=super.exportDOM(e);if(ip(t)){let e=this.getIndent();e>0&&(t.style.paddingInlineStart=40*e+"px");let n=this.getDirection();n&&(t.dir=n)}return{element:t}}exportJSON(){let e={children:[],direction:this.getDirection(),format:this.getFormatType(),indent:this.getIndent(),...super.exportJSON()},t=this.getTextFormat(),n=this.getTextStyle();return 0!==t&&(e.textFormat=t),""!==n&&(e.textStyle=n),e}updateFromJSON(e){return super.updateFromJSON(e).setFormat(e.format).setIndent(e.indent).setDirection(e.direction).setTextFormat(e.textFormat||0).setTextStyle(e.textStyle||"")}insertNewAfter(e,t){return null}canIndent(){return!0}collapseAtStart(e){return!1}excludeFromCopy(e){return!1}canReplaceWith(e){return!0}canInsertAfter(e){return!0}canBeEmpty(){return!0}canInsertTextBefore(){return!0}canInsertTextAfter(){return!0}isInline(){return!1}isShadowRoot(){return!1}canMergeWith(e){return!1}extractWithChild(e,t,n){return!1}canMergeWhenEmpty(){return!1}reconcileObservedMutation(e,t){let n=this.getDOMSlot(e),r=n.getFirstChild();for(let e=this.getFirstChild();e;e=e.getNextSibling()){let l=t.getElementByKey(e.getKey());null!==l&&(null==r?(n.insertChild(l),r=l):r!==l&&n.replaceChild(l,r),r=r.nextSibling)}}}function n6(e){return e instanceof n2}function n5(e,t,n){let r=e.getNode();for(;r;){let e=r.__key;if(t.has(e)&&!n.has(e))return!0;r=r.getParent()}return!1}class n8 extends tB{decorate(e,t){r(47)}isIsolated(){return!1}isInline(){return!0}isKeyboardSelectable(){return!0}}function n3(e){return e instanceof n8}class n4 extends n2{static getType(){return"root"}static clone(){return new n4}constructor(){super("root"),this.__cachedText=null}getTopLevelElementOrThrow(){r(51)}getTextContent(){let e=this.__cachedText;return(nI()||0===nK()._dirtyType)&&null!==e?e:super.getTextContent()}remove(){r(52)}replace(e){r(53)}insertBefore(e){r(54)}insertAfter(e){r(55)}updateDOM(e,t){return!1}splice(e,t,n){for(let e of n)n6(e)||n3(e)||r(282);return super.splice(e,t,n)}static importJSON(e){return rK().updateFromJSON(e)}collapseAtStart(){return!0}}function n7(e){return e instanceof n4}function n9(e){return new rt(new Map(e._nodeMap))}function re(){return new rt(new Map([["root",new n4]]))}class rt{constructor(e,t){this._nodeMap=e,this._selection=t||null,this._flushSync=!1,this._readOnly=!1}isEmpty(){return 1===this._nodeMap.size&&null===this._selection}read(e,t){return n$(t&&t.editor||null,this,e)}clone(e){let t=new rt(this._nodeMap,void 0===e?this._selection:e);return t._readOnly=!0,t}toJSON(){return n$(null,this,()=>({root:function e(t){let n=t.exportJSON(),l=t.constructor;if(n.type!==l.getType()&&r(130,l.name),n6(t)){let a=n.children;Array.isArray(a)||r(59,l.name);let u=t.getChildren();for(let t=0;t<u.length;t++){let n=e(u[t]);a.push(n)}}return n}(rK())}))}}let rn="historic",rr="history-push",ri="history-merge",ro="paste",rl="collaboration",rs="skip-scroll-into-view",ra="skip-dom-selection";class ru extends n2{static getType(){return"artificial"}createDOM(e){return document.createElement("div")}}class rf extends n2{static getType(){return"paragraph"}static clone(e){return new rf(e.__key)}createDOM(e){let t=document.createElement("p"),n=r5(e.theme,"paragraph");return void 0!==n&&t.classList.add(...n),t}updateDOM(e,t,n){return!1}static importDOM(){return{p:e=>({conversion:rc,priority:0})}}exportDOM(e){let{element:t}=super.exportDOM(e);if(ip(t)){this.isEmpty()&&t.append(document.createElement("br"));let e=this.getFormatType();e&&(t.style.textAlign=e)}return{element:t}}static importJSON(e){return rd().updateFromJSON(e)}exportJSON(){return{...super.exportJSON(),textFormat:this.getTextFormat(),textStyle:this.getTextStyle()}}insertNewAfter(e,t){let n=rd();n.setTextFormat(e.format),n.setTextStyle(e.style);let r=this.getDirection();return n.setDirection(r),n.setFormat(this.getFormatType()),n.setStyle(this.getStyle()),this.insertAfter(n,t),n}collapseAtStart(){let e=this.getChildren();if(0===e.length||t8(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 rc(e){let t=rd();return e.style&&(t.setFormat(e.style.textAlign),ik(e,t)),{node:t}}function rd(){return iu(new rf)}function rh(e){return e instanceof rf}let rg=0,rp=4;function rm(e,t,n,r){let l=e._keyToDOMMap;l.clear(),e._editorState=re(),e._pendingEditorState=r,e._compositionKey=null,e._dirtyType=0,e._cloneNotNeeded.clear(),e._dirtyLeaves=new Set,e._dirtyElements.clear(),e._normalizedNodes=new Set,e._updateTags=new Set,e._updates=[],e._blockCursorElement=null;let a=e._observer;null!==a&&(a.disconnect(),e._observer=null),null!==t&&(t.textContent=""),null!==n&&(n.textContent="",l.set("root",n))}function ry(e){let t,n=e||{},r=nM,l=n.theme||{},a=void 0===e?r:n.parentEditor||null,u=n.disableEvents||!1,c=re(),d=n.namespace||(null!==a?a._config.namespace:r$()),h=n.editorState,p=[n4,tY,tj,t4,rf,ru,...n.nodes||[]],{onError:y,html:_}=n,v=void 0===n.editable||n.editable;if(void 0===e&&null!==r)t=r._nodes;else{t=new Map;for(let e=0;e<p.length;e++){let n=p[e],r=null,l=null;if("function"!=typeof n){let e=n;n=e.replace,r=e.with,l=e.withKlass||null}let a=n.getType(),u=n.transform(),c=new Set;null!==u&&c.add(u),t.set(a,{exportDOM:_&&_.export?_.export.get(n):void 0,klass:n,replace:r,replaceWithKlass:l,transforms:c})}}
1let b=new r_(c,a,t,{disableEvents:u,namespace:d,theme:l},y||console.error,function(e,t){let n=new Map,r=new Set,l=e=>{Object.keys(e).forEach(t=>{let r=n.get(t);void 0===r&&(r=[],n.set(t,r)),r.push(e[t])})};return e.forEach(e=>{let t=e.klass.importDOM;if(null==t||r.has(t))return;r.add(t);let n=t.call(e.klass);null!==n&&l(n)}),t&&l(t),n}(t,_?_.import:void 0),v,e);return void 0!==h&&(b._pendingEditorState=h,b._dirtyType=2),b}class r_{constructor(e,t,n,r,l,a,u,c){this._createEditorArgs=c,this._parentEditor=t,this._rootElement=null,this._editorState=e,this._pendingEditorState=null,this._compositionKey=null,this._deferred=[],this._keyToDOMMap=new Map,this._updates=[],this._updating=!1,this._listeners={decorator:new Set,editable:new Set,mutation:new Map,root:new Set,textcontent:new Set,update:new Set},this._commands=new Map,this._config=r,this._nodes=n,this._decorators={},this._pendingDecorators=null,this._dirtyType=0,this._cloneNotNeeded=new Set,this._dirtyLeaves=new Set,this._dirtyElements=new Map,this._normalizedNodes=new Set,this._updateTags=new Set,this._observer=null,this._key=r$(),this._onError=l,this._htmlConversions=a,this._editable=u,this._headless=null!==t&&t._headless,this._window=null,this._blockCursorElement=null}isComposing(){return null!=this._compositionKey}registerUpdateListener(e){let t=this._listeners.update;return t.add(e),()=>{t.delete(e)}}registerEditableListener(e){let t=this._listeners.editable;return t.add(e),()=>{t.delete(e)}}registerDecoratorListener(e){let t=this._listeners.decorator;return t.add(e),()=>{t.delete(e)}}registerTextContentListener(e){let t=this._listeners.textcontent;return t.add(e),()=>{t.delete(e)}}registerRootListener(e){let t=this._listeners.root;return e(this._rootElement,null),t.add(e),()=>{e(null,this._rootElement),t.delete(e)}}registerCommand(e,t,n){void 0===n&&r(35);let l=this._commands;l.has(e)||l.set(e,[new Set,new Set,new Set,new Set,new Set]);let a=l.get(e);void 0===a&&r(36,String(e));let u=a[n];return u.add(t),()=>{u.delete(t),a.every(e=>0===e.size)&&l.delete(e)}}registerMutationListener(e,t,n){let r=this.resolveRegisteredNodeAfterReplacements(this.getRegisteredNode(e)).klass,l=this._listeners.mutation;l.set(t,r);let a=n&&n.skipInitialization;return void 0!==a&&a||this.initializeMutationListener(t,r),()=>{l.delete(t)}}getRegisteredNode(e){let t=this._nodes.get(e.getType());return void 0===t&&r(37,e.name),t}resolveRegisteredNodeAfterReplacements(e){for(;e.replaceWithKlass;)e=this.getRegisteredNode(e.replaceWithKlass);return e}initializeMutationListener(e,t){let n=this._editorState,r=iE(n).get(t.getType());if(!r)return;let l=new Map;for(let e of r.keys())l.set(e,"created");l.size>0&&e(l,{dirtyLeaves:new Set,prevEditorState:n,updateTags:new Set(["registerMutationListener"])})}registerNodeTransformToKlass(e,t){let n=this.getRegisteredNode(e);return n.transforms.add(t),n}registerNodeTransform(e,t){let n=this.registerNodeTransformToKlass(e,t),r=[n],l=n.replaceWithKlass;if(null!=l){let e=this.registerNodeTransformToKlass(l,t);r.push(e)}return function(e,t){let n=iE(e.getEditorState()),r=[];for(let e of t){let t=n.get(e);t&&r.push(t)}0!==r.length&&e.update(()=>{for(let e of r)for(let t of e.keys()){let e=rD(t);e&&e.markDirty()}},null===e._pendingEditorState?{tag:ri}:void 0)}(this,r.map(e=>e.klass.getType())),()=>{r.forEach(e=>e.transforms.delete(t))}}hasNode(e){return this._nodes.has(e.getType())}hasNodes(e){return e.every(this.hasNode.bind(this))}dispatchCommand(e,t){return r9(this,e,t)}getDecorators(){return this._decorators}getRootElement(){return this._rootElement}getKey(){return this._key}setRootElement(e){let t=this._rootElement;if(e!==t){let n=r5(this._config.theme,"root"),l=this._pendingEditorState||this._editorState;if(this._rootElement=e,rm(this,t,e,l),null!==t&&(this._config.disableEvents||function(e){let t=e.ownerDocument,n=tp.get(t);if(void 0===n)return tL();let l=n-1;l>=0||r(164),tp.set(t,l),0===l&&t.removeEventListener("selectionchange",tR);let a=rE(e);rw(a)?(!function(e){if(null!==e._parentEditor){let t=rV(e),n=t[t.length-1]._key;tM.get(n)===e&&tM.delete(n)}else tM.delete(e._key)}(a),e.__lexicalEditor=null):a&&r(198);let u=tP(e);for(let e=0;e<u.length;e++)u[e]();e.__lexicalEventHandles=[]}(t),null!=n&&t.classList.remove(...n)),null!==e){let t=il(e),r=e.style;r.userSelect="text",r.whiteSpace="pre-wrap",r.wordBreak="break-word",e.setAttribute("data-lexical-editor","true"),this._window=t,this._dirtyType=2,z(this),this._updateTags.add(ri),nH(this),this._config.disableEvents||function(e,t){let n=e.ownerDocument,r=tp.get(n);(void 0===r||r<1)&&n.addEventListener("selectionchange",tR),tp.set(n,(r||0)+1),e.__lexicalEditor=t;let l=tP(e);for(let n=0;n<tf.length;n++){let[r,a]=tf[n],u="function"==typeof a?e=>{tD(e)||(tF(e),(t.isEditable()||"click"===r)&&a(e,t))}:e=>{if(tD(e))return;tF(e);let n=t.isEditable();switch(r){case"cut":return n&&r9(t,te,e);case"copy":return r9(t,e9,e);case"paste":return n&&r9(t,eD,e);case"dragstart":return n&&r9(t,e3,e);case"dragover":return n&&r9(t,e4,e);case"dragend":return n&&r9(t,e7,e);case"focus":return n&&r9(t,tl,e);case"blur":return n&&r9(t,ts,e);case"drop":return n&&r9(t,e5,e)}};e.addEventListener(r,u),l.push(()=>{e.removeEventListener(r,u)})}}(e,this),null!=n&&e.classList.add(...n)}else this._window=null,this._updateTags.add(ri),nH(this);nY("root",this,!1,e,t)}}getElementByKey(e){return this._keyToDOMMap.get(e)||null}getEditorState(){return this._editorState}setEditorState(e,t){e.isEmpty()&&r(38);let n=e;n._readOnly&&((n=n9(e))._selection=e._selection?e._selection.clone():null),j(this);
1let l=this._pendingEditorState,a=this._updateTags,u=void 0!==t?t.tag:null;null===l||l.isEmpty()||(null!=u&&a.add(u),nH(this)),this._pendingEditorState=n,this._dirtyType=2,this._dirtyElements.set("root",!1),this._compositionKey=null,null!=u&&a.add(u),this._updating||nH(this)}parseEditorState(e,t){return function(e,t,n){let r=re(),l=nP,a=nR,u=nM,c=t._dirtyElements,d=t._dirtyLeaves,h=t._cloneNotNeeded,p=t._dirtyType;t._dirtyElements=new Map,t._dirtyLeaves=new Set,t._cloneNotNeeded=new Set,t._dirtyType=0,nP=r,nR=!1,nM=t;try{let l=t._nodes;nV(e.root,l),n&&n(),r._readOnly=!0}catch(e){e instanceof Error&&t._onError(e)}finally{t._dirtyElements=c,t._dirtyLeaves=d,t._cloneNotNeeded=h,t._dirtyType=p,nP=l,nR=a,nM=u}return r}("string"==typeof e?JSON.parse(e):e,this,t)}read(e){return nH(this),this.getEditorState().read(e,{editor:this})}update(e,t){this._updating?this._updates.push([e,t]):nG(this,e,t)}focus(e,t={}){let n=this._rootElement;null!==n&&(n.setAttribute("autocapitalize","off"),nQ(this,()=>{var r,l;let a=nS(),u=rK();null!==a?a.dirty||rW(a.clone()):0!==u.getChildrenSize()&&("rootStart"===t.defaultSelection?u.selectStart():u.selectEnd()),r="focus",nB(),nK()._updateTags.add(r),l=()=>{n.removeAttribute("autocapitalize"),e&&e()},nB(),nK()._deferred.push(l)}),null===this._pendingEditorState&&n.removeAttribute("autocapitalize"))}blur(){let e=this._rootElement;null!==e&&e.blur();let t=ig(this._window);null!==t&&t.removeAllRanges()}isEditable(){return this._editable}setEditable(e){this._editable!==e&&(this._editable=e,nY("editable",this,!0,e))}toJSON(){return{editorState:this._editorState.toJSON()}}}r_.version="0.31.2+prod.esm";let rv=1,rb="function"==typeof queueMicrotask?queueMicrotask:e=>{Promise.resolve().then(e)};function rS(e){let t=document.activeElement;if(!ip(t))return!1;let n=t.nodeName;return n3(rB(e))&&("INPUT"===n||"TEXTAREA"===n||"true"===t.contentEditable&&null==rE(t))}function rx(e,t,n){let r=e.getRootElement();try{return null!==r&&r.contains(t)&&r.contains(n)&&null!==t&&!rS(t)&&rC(t)===e}catch(e){return!1}}function rw(e){return e instanceof r_}function rC(e){let t=e;for(;null!=t;){let e=rE(t);if(rw(e))return e;t=ir(t)}return null}function rE(e){return e?e.__lexicalEditor:null}function rT(e){return e.isToken()||e.isSegmented()}
1function rk(e){return im(e)&&3===e.nodeType}function rN(e){let t=e;for(;null!=t;){if(rk(t))return t;t=t.firstChild}return null}function rO(e,t,n){let r=N[t];if(null!==n&&(e&r)==(n&r))return e;let l=e^r;return"subscript"===t?l&=~N.superscript:"superscript"===t?l&=~N.subscript:"lowercase"===t?(l&=~N.uppercase,l&=~N.capitalize):"uppercase"===t?(l&=~N.lowercase,l&=~N.capitalize):"capitalize"===t&&(l&=~N.lowercase,l&=~N.uppercase),l}function rA(e,t){if(null!=t)return void(e.__key=t);nB(),nj();let n=nK(),r=nz(),l=""+rv++;r._nodeMap.set(l,e),n6(e)?n._dirtyElements.set(l,!0):n._dirtyLeaves.add(l),n._cloneNotNeeded.add(l),n._dirtyType=1,e.__key=l}function rP(e){let t=e.getParent();if(null!==t){let n=e.getWritable(),r=t.getWritable(),l=e.getPreviousSibling(),a=e.getNextSibling(),u=null!==a?a.__key:null,c=null!==l?l.__key:null,d=null!==l?l.getWritable():null,h=null!==a?a.getWritable():null;null===l&&(r.__first=u),null===a&&(r.__last=c),null!==d&&(d.__next=u),null!==h&&(h.__prev=c),n.__prev=null,n.__next=null,n.__parent=null,r.__size--}}function rM(e){nj();let t=e.getLatest(),n=t.__parent,r=nz(),l=nK(),a=r._nodeMap,u=l._dirtyElements;null!==n&&function(e,t,n){let r=e;for(;null!==r;){if(n.has(r))return;let e=t.get(r);if(void 0===e)break;n.set(r,!1),r=e.__parent}}(n,a,u);let c=t.__key;l._dirtyType=1,n6(e)?u.set(c,!0):l._dirtyLeaves.add(c)}function rR(e){nB();let t=nK(),n=t._compositionKey;if(e!==n){if(t._compositionKey=e,null!==n){let e=rD(n);null!==e&&e.getWritable()}if(null!==e){let t=rD(e);null!==t&&t.getWritable()}}}function rF(){return nI()?null:nK()._compositionKey}function rD(e,t){let n=(t||nz())._nodeMap.get(e);return void 0===n?null:n}function rL(e,t){let n=rI(e,nK());return void 0!==n?rD(n,t):null}function rI(e,t){return e[`__lexicalKey_${t._key}`]}function rB(e,t){let n=e;for(;null!=n;){let e=rL(n,t);if(null!==e)return e;n=ir(n)}return null}function rj(e){let t=Object.assign({},e._decorators);return e._pendingDecorators=t,t}function rz(e){return e.read(()=>rK().getTextContent())}function rK(){return rU(nz())}function rU(e){return e._nodeMap.get("root")}function rW(e){nB();let t=nz();null!==e&&(e.dirty=!0,e.setCachedNodes(null)),t._selection=e}function rJ(e){let t=nK(),n=function(e,t){let n=e;for(;null!=n;){let e=rI(n,t);if(void 0!==e)return e;n=ir(n)}return null}(e,t);return null===n?e===t.getRootElement()?rD("root"):null:rD(n)}function rq(e,t){return t?e.getTextContentSize():0}function rZ(e){return/[\uD800-\uDBFF][\uDC00-\uDFFF]/g.test(e)}function rV(e){let t=[],n=e;for(;null!==n;)t.push(n),n=n._parentEditor;return t}function r$(){return Math.random().toString(36).replace(/[^a-z]+/g,"").substring(0,5)}function rH(e){return rk(e)?e.nodeValue:null}function rY(e,t,n){let r=ig(is(t));if(null===r)return;let l=r.anchorNode,{anchorOffset:a,focusOffset:u}=r;if(null!==l){let t=rH(l),r=rB(l);if(null!==t&&t8(r)){if(t===x&&n){let e=n.length;t=n,a=e,u=e}null!==t&&rX(r,t,a,u,e)}}}function rX(e,t,n,r,l){let a=e;if(a.isAttached()&&(l||!a.isDirty())){let u=a.isComposing(),c=t;(u||l)&&t[t.length-1]===x&&(c=t.slice(0,-1));let d=a.getTextContent();if(l||c!==d){if(""===c){if(rR(null),h||p||b)a.remove();else{let e=nK();setTimeout(()=>{e.update(()=>{a.isAttached()&&a.remove()})},20)}return}let t=a.getParent(),l=nx(),d=a.getTextContentSize(),y=rF(),_=a.getKey();if(a.isToken()||null!==y&&_===y&&!u||ni(l)&&(null!==t&&!t.canInsertTextBefore()&&0===l.anchor.offset||l.anchor.key===e.__key&&0===l.anchor.offset&&!a.canInsertTextBefore()&&!u||l.focus.key===e.__key&&l.focus.offset===d&&!a.canInsertTextAfter()&&!u))return void a.markDirty();let v=nS();if(!ni(v)||null===n||null===r)return void a.setTextContent(c);if(v.setTextNodeRange(a,n,a,r),a.isSegmented()){let e=t5(a.getTextContent());a.replace(e),a=e}a.setTextContent(c)}}}function rG(e,t,n){let r=t[n]||!1;return"any"===r||r===e[n]}function rQ(e,t,n){return rG(e,n,"altKey")&&rG(e,n,"ctrlKey")&&rG(e,n,"shiftKey")&&rG(e,n,"metaKey")&&e.key.toLowerCase()===t.toLowerCase()}let r0={ctrlKey:!u,metaKey:u},r1={altKey:u,ctrlKey:!u};function r2(e){return"Backspace"===e.key}function r6(e){let t=rK();if(ni(e)){let t=e.anchor,n=e.focus,r=t.getNode().getTopLevelElementOrThrow().getParentOrThrow();return t.set(r.getKey(),0,"element"),n.set(r.getKey(),r.getChildrenSize(),"element"),V(e),e}{let e=t.select(0,t.getChildrenSize());return rW(V(e)),e}}
1function r5(e,t){void 0===e.__lexicalClassNameCache&&(e.__lexicalClassNameCache={});let n=e.__lexicalClassNameCache,r=n[t];if(void 0!==r)return r;let l=e[t];if("string"==typeof l){let e=S(l);return n[t]=e,e}return l}function r8(e,t,n,l,a){if(0===n.size)return;let u=l.__type,c=l.__key,d=t.get(u);void 0===d&&r(33,u);let h=d.klass,p=e.get(h);void 0===p&&(p=new Map,e.set(h,p));let y=p.get(c),_="destroyed"===y&&"created"===a;(void 0===y||_)&&p.set(c,_?"updated":a)}function r3(e,t,n){let r=e.getParent(),l=n,a=e;return null!==r&&(t&&0===n?(l=a.getIndexWithinParent(),a=r):t||n!==a.getChildrenSize()||(l=a.getIndexWithinParent()+1,a=r)),a.getChildAtIndex(t?l-1:l)}function r4(e,t){let n=e.offset;if("element"===e.type)return r3(e.getNode(),t,n);{let r=e.getNode();if(t&&0===n||!t&&n===r.getTextContentSize()){let e=t?r.getPreviousSibling():r.getNextSibling();return null===e?r3(r.getParentOrThrow(),t,r.getIndexWithinParent()+ +!t):e}}return null}function r7(e){let t=is(e).event,n=t&&t.inputType;return"insertFromPaste"===n||"insertFromPasteAsQuotation"===n}function r9(e,t,n){return function(e,t,n){let r=rV(e);for(let l=4;l>=0;l--)for(let a=0;a<r.length;a++){let u=r[a],c=u._commands.get(t);if(void 0!==c){let t=c[l];if(void 0!==t){let r=Array.from(t),l=r.length,a=!1;if(nQ(u,()=>{for(let t=0;t<l;t++)if(r[t](n,e))return void(a=!0)}),a)return a}}}return!1}(e,t,n)}function ie(e){return!n7(e)&&!e.isLastChild()&&!e.isInline()}function it(e,t){let n=e._keyToDOMMap.get(t);return void 0===n&&r(75,t),n}function ir(e){let t=e.assignedSlot||e.parentElement;return iy(t)?t.host:t}function ii(e){return im(e)&&9===e.nodeType?e:ip(e)?e.ownerDocument:null}function io(e,t){let n=e.getParent();for(;null!==n;){if(n.is(t))return!0;n=n.getParent()}return!1}function il(e){let t=ii(e);return t?t.defaultView:null}function is(e){let t=e._window;return null===t&&r(78),t}function ia(e){return n7(e)||n6(e)&&e.isShadowRoot()}function iu(e){let t=nK(),n=e.constructor.getType(),l=t._nodes.get(n);void 0===l&&r(200,e.constructor.name,n);let{replace:a,replaceWithKlass:u}=l;if(null!==a){let t=a(e),l=t.constructor;return null!==u?t instanceof u||r(201,u.name,u.getType(),l.name,l.getType(),e.constructor.name,n):t instanceof e.constructor&&l!==e.constructor||r(202,l.name,l.getType(),e.constructor.name,n),t.__key===e.__key&&r(203,e.constructor.name,n,l.name,l.getType()),t}return e}function ic(e,t){!n7(e.getParent())||n6(t)||n3(t)||r(99)}function id(e){return(n3(e)||n6(e)&&!e.canBeEmpty())&&!e.isInline()}function ih(e,t,n){n.style.removeProperty("caret-color"),t._blockCursorElement=null;let r=e.parentElement;null!==r&&r.removeChild(e)}function ig(e){return l?(e||window).getSelection():null}function ip(e){return im(e)&&1===e.nodeType}function im(e){return"object"==typeof e&&null!==e&&"nodeType"in e&&"number"==typeof e.nodeType}function iy(e){return im(e)&&11===e.nodeType}function i_(e){let t=RegExp(/^(a|abbr|acronym|b|cite|code|del|em|i|ins|kbd|label|mark|output|q|ruby|s|samp|span|strong|sub|sup|time|u|tt|var|#text)$/,"i");return null!==e.nodeName.match(t)}function iv(e){let t=RegExp(/^(address|article|aside|blockquote|canvas|dd|div|dl|dt|fieldset|figcaption|figure|footer|form|h1|h2|h3|h4|h5|h6|header|hr|li|main|nav|noscript|ol|p|pre|section|table|td|tfoot|ul|video)$/,"i");return null!==e.nodeName.match(t)}function ib(e){if(n3(e)&&!e.isInline())return!0;if(!n6(e)||ia(e))return!1;let t=e.getFirstChild(),n=null===t||tU(t)||t8(t)||t.isInline();return!e.isInline()&&!1!==e.canBeEmpty()&&n}function iS(e,t){let n=e;for(;null!==n&&null!==n.getParent()&&!t(n);)n=n.getParentOrThrow();return t(n)?n:null}function ix(){return nK()}let iw=new WeakMap,iC=new Map;function iE(e){if(!e._readOnly&&e.isEmpty())return iC;e._readOnly||r(192);let t=iw.get(e);return t||(t=function(e){let t=new Map;for(let[n,r]of e._nodeMap){let e=r.__type,l=t.get(e);l||(l=new Map,t.set(e,l)),l.set(n,r)}return t}(e),iw.set(e,t)),t}function iT(e){let t=e.constructor.clone(e);return t.afterCloneFrom(e),t}function ik(e,t){let n=Math.round((parseInt(e.style.paddingInlineStart,10)||0)/40);t.setIndent(n)}let iN={next:"previous",previous:"next"};class iO{constructor(e){this.origin=e}[Symbol.iterator](){return iY({hasNext:iL,initial:this.getAdjacentCaret(),map:e=>e,step:e=>e.getAdjacentCaret()})}getAdjacentCaret(){return iK(this.getNodeAtCaret(),this.direction)}getSiblingCaret(){return iK(this.origin,this.direction)}remove(){let e=this.getNodeAtCaret();return e&&e.remove(),this}replaceOrInsert(e,t){let n=this.getNodeAtCaret();return e.is(this.origin)||e.is(n)||(null===n?this.insert(e):n.replace(e,t)),this}splice(e,t,n="next"){let l=n===this.direction?t:Array.from(t).reverse(),a=this,u=this.getParentAtCaret(),c=new Map;for(let t=a.getAdjacentCaret();null!==t&&c.size<e;t=t.getAdjacentCaret()){let e=t.origin.getWritable();c.set(e.getKey(),e)}for(let e of l){if(c.size>0){let t=a.getNodeAtCaret();if(t)if(c.delete(t.getKey()),c.delete(e.getKey()),t.is(e)||a.origin.is(e));else{let n=e.getParent();n&&n.is(u)&&e.remove(),t.replace(e)}else null===t&&r(263,Array.from(c).join(" "))}else a.insert(e);a=iK(e,this.direction)}for(let e of c.values())e.remove();return this}}class iA extends iO{type="child";getLatest(){let e=this.origin.getLatest();return e===this.origin?this:iJ(e,this.direction)}getParentCaret(e="root"){return iK(iM(this.getParentAtCaret(),e),this.direction)}getFlipped(){let e=iN[this.direction];return iK(this.getNodeAtCaret(),e)||iJ(this.origin,e)}getParentAtCaret(){return this.origin}getChildCaret(){return this}isSameNodeCaret(e){return e instanceof iA&&this.direction===e.direction&&this.origin.is(e.origin)}isSamePointCaret(e){return this.isSameNodeCaret(e)}}let iP={root:n7,shadowRoot:ia};function iM(e,t="root"){return iP[t](e)?null:e}class iR extends iO{type="sibling";getLatest(){let e=this.origin.getLatest();return e===this.origin?this:iK(e,this.direction)}getSiblingCaret(){return this}getParentAtCaret(){return this.origin.getParent()}getChildCaret(){return n6(this.origin)?iJ(this.origin,this.direction):null}getParentCaret(e="root"){return iK(iM(this.getParentAtCaret(),e),this.direction)}getFlipped(){let e=iN[this.direction];return iK(this.getNodeAtCaret(),e)||iJ(this.origin.getParentOrThrow(),e)}isSamePointCaret(e){return e instanceof iR&&this.direction===e.direction&&this.origin.is(e.origin)}isSameNodeCaret(e){return(e instanceof iR||e instanceof iF)&&this.direction===e.direction&&this.origin.is(e.origin)}}class iF extends iO{type="text";constructor(e,t){super(e),this.offset=t}getLatest(){let e=this.origin.getLatest();return e===this.origin?this:iU(e,this.direction,this.offset)}getParentAtCaret(){return this.origin.getParent()}getChildCaret(){return null}getParentCaret(e="root"){return iK(iM(this.getParentAtCaret(),e),this.direction)}getFlipped(){return iU(this.origin,iN[this.direction],this.offset)}isSamePointCaret(e){return e instanceof iF&&this.direction===e.direction&&this.origin.is(e.origin)&&this.offset===e.offset}isSameNodeCaret(e){return(e instanceof iR||e instanceof iF)&&this.direction===e.direction&&this.origin.is(e.origin)}getSiblingCaret(){return iK(this.origin,this.direction)}}function iD(e){return e instanceof iF}function iL(e){return e instanceof iR}function iI(e){return e instanceof iA}let iB={next:class extends iF{direction="next";getNodeAtCaret(){return this.origin.getNextSibling()}insert(e){return this.origin.insertAfter(e),this}},previous:class extends iF{direction="previous";getNodeAtCaret(){return this.origin.getPreviousSibling()}insert(e){return this.origin.insertBefore(e),this}}},ij={next:class extends iR{direction="next";getNodeAtCaret(){return this.origin.getNextSibling()}insert(e){return this.origin.insertAfter(e),this}},previous:class extends iR{direction="previous";getNodeAtCaret(){return this.origin.getPreviousSibling()}insert(e){return this.origin.insertBefore(e),this}}},iz={next:class extends iA{direction="next";getNodeAtCaret(){return this.origin.getFirstChild()}insert(e){return this.origin.splice(0,0,[e]),this}},previous:class extends iA{direction="previous";getNodeAtCaret(){return this.origin.getLastChild()}insert(e){return this.origin.splice(this.origin.getChildrenSize(),0,[e]),this}}};function iK(e,t){return e?new ij[t](e):null}function iU(e,t,n){return e?new iB[t](e,iW(e,n)):null}function iW(e,t){let n=e.getTextContentSize(),r="next"===t?n:"previous"===t?0:t;return(r<0||r>n)&&(!function(e,...t){let n=new URL("https://lexical.dev/docs/error"),r=new URLSearchParams;for(let e of(r.append("code",284),t))r.append("v",e);n.search=r.toString(),console.warn(`Minified Lexical warning #${284}; visit ${n.toString()} for the full message or use the non-minified dev environment for full errors and additional helpful warnings.`)}
1(284,String(t),String(n),e.getKey()),r=r<0?0:n),r}function iJ(e,t){return n6(e)?new iz[t](e):null}function iq(e){var t;return e&&((t=e.getAdjacentCaret())&&t.getChildCaret()||t)}class iZ{type="node-caret-range";constructor(e,t,n){this.anchor=e,this.focus=t,this.direction=n}getLatest(){let e=this.anchor.getLatest(),t=this.focus.getLatest();return e===this.anchor&&t===this.focus?this:new iZ(e,t,this.direction)}isCollapsed(){return this.anchor.isSamePointCaret(this.focus)}getTextSlices(){let e=e=>{let t=this[e].getLatest();return iD(t)?function(e,t){let{direction:n,origin:r}=e;return new iV(e,iW(r,"focus"===t?iN[n]:n)-e.offset)}(t,e):null},t=e("anchor"),n=e("focus");if(t&&n){let{caret:e}=t,{caret:r}=n;if(e.isSameNodeCaret(r))return[new iV(e,r.offset-e.offset),null]}return[t,n]}iterNodeCarets(e="root"){let t=iD(this.anchor)?this.anchor.getSiblingCaret():this.anchor.getLatest(),n=this.focus.getLatest(),r=iD(n),l=t=>t.isSameNodeCaret(n)?null:iq(t)||t.getParentCaret(e);return iY({hasNext:e=>null!==e&&!(r&&n.isSameNodeCaret(e)),initial:t.isSameNodeCaret(n)?null:l(t),map:e=>e,step:l})}[Symbol.iterator](){return this.iterNodeCarets("root")}}class iV{type="slice";constructor(e,t){this.caret=e,this.distance=t}getSliceIndices(){let{distance:e,caret:{offset:t}}=this,n=t+e;return n<t?[n,t]:[t,n]}getTextContent(){let[e,t]=this.getSliceIndices();return this.caret.origin.getTextContent().slice(e,t)}getTextContentSize(){return Math.abs(this.distance)}removeTextSlice(){let{caret:{origin:e,direction:t}}=this,[n,r]=this.getSliceIndices(),l=e.getTextContent();return iU(e.setTextContent(l.slice(0,n)+l.slice(r)),t,n)}}function i$(e){return iH(e,iK(rK(),e.direction))}function iH(e,t){return e.direction!==t.direction&&r(265),new iZ(e,t,e.direction)}function iY(e){let{initial:t,hasNext:n,step:r,map:l}=e,a=t;return{[Symbol.iterator](){return this},next(){if(!n(a))return{done:!0,value:void 0};let e={done:!1,value:l(a)};return a=r(a),e}}}function iX(e,t){let n=i0(e.origin,t.origin);switch(null===n&&r(275,e.origin.getKey(),t.origin.getKey()),n.type){case"same":{let n="text"===e.type,r="text"===t.type;return n&&r?Math.sign(e.offset-t.offset):e.type===t.type?0:n?-1:r?1:"child"===e.type?-1:1}case"ancestor":return"child"===e.type?-1:1;case"descendant":return"child"===t.type?1:-1;case"branch":return iG(n)}}function iG(e){let{a:t,b:n}=e,r=t.__key,l=n.__key,a=t,u=n;for(;a&&u;a=a.getNextSibling(),u=u.getNextSibling()){if(a.__key===l)return -1;if(u.__key===r)return 1}return null===a?1:-1}function iQ(e){return n6(e)?[e.getLatest(),null]:[e.getParent(),e.getLatest()]}function i0(e,t){if(e.is(t))return{commonAncestor:e,type:"same"};let n=new Map;for(let[t,r]=iQ(e);t;r=t,t=t.getParent())n.set(t,r);for(let[l,a]=iQ(t);l;a=l,l=l.getParent()){let u=n.get(l);if(void 0!==u)return null===u?(l.is(e)||r(276),{commonAncestor:l,type:"ancestor"}):null===a?(l.is(t)||r(277),{commonAncestor:l,type:"descendant"}):((n6(u)||u.is(e))&&(n6(a)||a.is(t))&&l.is(u.getParent())&&l.is(a.getParent())||r(278),{a:u,b:a,commonAncestor:l,type:"branch"})}return null}function i1(e,t){let{type:n,key:l,offset:a}=e,u=function(e){let t=rD(e);return null===t&&r(63,e),t}(e.key);return"text"===n?(t8(u)||r(266,u.getType(),l),iU(u,t,a)):(n6(u)||r(267,u.getType(),l),function(e,t,n){let r=iJ(e,"next");for(let e=0;e<t;e++){let e=r.getAdjacentCaret();if(null===e)break;r=e}return oe(r,n)}(u,e.offset,t))}function i2(e,t){let{origin:n,direction:l}=t,a="next"===l;iD(t)?e.set(n.getKey(),t.offset,"text"):iL(t)?t8(n)?e.set(n.getKey(),iW(n,l),"text"):e.set(n.getParentOrThrow().getKey(),n.getIndexWithinParent()+ +!!a,"element"):(iI(t)&&n6(n)||r(268),e.set(n.getKey(),a?0:n.getChildrenSize(),"element"))}function i6(e,t){i2(e.anchor,t.anchor),i2(e.focus,t.focus)}function i5(e){let{anchor:t,focus:n}=e,r=i1(t,"next"),l=i1(n,"next"),a=0>=iX(r,l)?"next":"previous";return iH(oe(r,a),oe(l,a))}function i8(e){let{direction:t,origin:n}=e,r=iK(n,iN[t]).getNodeAtCaret();return r?iK(r,t):iJ(n.getParentOrThrow(),t)}function i3(e,t="root"){let n=[e];for(let r=iI(e)?e.getParentCaret(t):e.getSiblingCaret();null!==r;r=r.getParentCaret(t))n.push(i8(r));return n}function i4(e){return!!e&&e.origin.isAttached()}function i7(e){let t=function(e){let t=e;for(;iI(t);){let e=iq(t);if(!iI(e))break;t=e}return t}(e.getLatest()),{direction:n}=t;if(t8(t.origin))return iD(t)?t:iU(t.origin,n,n);let r=t.getAdjacentCaret();return iL(r)&&t8(r.origin)?iU(r.origin,n,iN[n]):t}function i9(e){return iD(e)&&e.offset!==iW(e.origin,e.direction)}function oe(e,t){return e.direction===t?e:e.getFlipped()}
1function ot(e,t){return e.direction===t?e:iH(oe(e.focus,t),oe(e.anchor,t))}},1928:(e,t,n)=>{"use strict";let r;n.d(t,{A:()=>tp});var l,a,u,c={};function d(e,t){return function(){return e.apply(t,arguments)}}n.r(c),n.d(c,{hasBrowserEnv:()=>e_,hasStandardBrowserEnv:()=>eb,hasStandardBrowserWebWorkerEnv:()=>eS,navigator:()=>ev,origin:()=>ex});var h=n(7946);let{toString:p}=Object.prototype,{getPrototypeOf:y}=Object,{iterator:_,toStringTag:v}=Symbol,b=(e=>t=>{let n=p.call(t);return e[n]||(e[n]=n.slice(8,-1).toLowerCase())})(Object.create(null)),S=e=>(e=e.toLowerCase(),t=>b(t)===e),x=e=>t=>typeof t===e,{isArray:w}=Array,C=x("undefined"),E=S("ArrayBuffer"),T=x("string"),k=x("function"),N=x("number"),O=e=>null!==e&&"object"==typeof e,A=e=>{if("object"!==b(e))return!1;let t=y(e);return(null===t||t===Object.prototype||null===Object.getPrototypeOf(t))&&!(v in e)&&!(_ in e)},P=S("Date"),M=S("File"),R=S("Blob"),F=S("FileList"),D=S("URLSearchParams"),[L,I,B,j]=["ReadableStream","Request","Response","Headers"].map(S);function z(e,t,{allOwnKeys:n=!1}={}){let r,l;if(null!=e)if("object"!=typeof e&&(e=[e]),w(e))for(r=0,l=e.length;r<l;r++)t.call(null,e[r],r,e);else{let l,a=n?Object.getOwnPropertyNames(e):Object.keys(e),u=a.length;for(r=0;r<u;r++)l=a[r],t.call(null,e[l],l,e)}}function K(e,t){let n;t=t.toLowerCase();let r=Object.keys(e),l=r.length;for(;l-- >0;)if(t===(n=r[l]).toLowerCase())return n;return null}let U="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:"undefined"!=typeof window?window:global,W=e=>!C(e)&&e!==U,J=(e=>t=>e&&t instanceof e)("undefined"!=typeof Uint8Array&&y(Uint8Array)),q=S("HTMLFormElement"),Z=(({hasOwnProperty:e})=>(t,n)=>e.call(t,n))(Object.prototype),V=S("RegExp"),$=(e,t)=>{let n=Object.getOwnPropertyDescriptors(e),r={};z(n,(n,l)=>{let a;!1!==(a=t(n,l,e))&&(r[l]=a||n)}),Object.defineProperties(e,r)},H=S("AsyncFunction"),Y=(l="function"==typeof setImmediate,a=k(U.postMessage),l?setImmediate:a?((e,t)=>(U.addEventListener("message",({source:n,data:r})=>{n===U&&r===e&&t.length&&t.shift()()},!1),n=>{t.push(n),U.postMessage(e,"*")}))(`axios@${Math.random()}`,[]):e=>setTimeout(e)),X="undefined"!=typeof queueMicrotask?queueMicrotask.bind(U):void 0!==h&&h.nextTick||Y,G={isArray:w,isArrayBuffer:E,isBuffer:function(e){return null!==e&&!C(e)&&null!==e.constructor&&!C(e.constructor)&&k(e.constructor.isBuffer)&&e.constructor.isBuffer(e)},isFormData:e=>{let t;return e&&("function"==typeof FormData&&e instanceof FormData||k(e.append)&&("formdata"===(t=b(e))||"object"===t&&k(e.toString)&&"[object FormData]"===e.toString()))},isArrayBufferView:function(e){let t;return"undefined"!=typeof ArrayBuffer&&ArrayBuffer.isView?ArrayBuffer.isView(e):e&&e.buffer&&E(e.buffer)},isString:T,isNumber:N,isBoolean:e=>!0===e||!1===e,isObject:O,isPlainObject:A,isReadableStream:L,isRequest:I,isResponse:B,isHeaders:j,isUndefined:C,isDate:P,isFile:M,isBlob:R,isRegExp:V,isFunction:k,isStream:e=>O(e)&&k(e.pipe),isURLSearchParams:D,isTypedArray:J,isFileList:F,forEach:z,merge:function e(){let{caseless:t}=W(this)&&this||{},n={},r=(r,l)=>{let a=t&&K(n,l)||l;A(n[a])&&A(r)?n[a]=e(n[a],r):A(r)?n[a]=e({},r):w(r)?n[a]=r.slice():n[a]=r};for(let e=0,t=arguments.length;e<t;e++)arguments[e]&&z(arguments[e],r);return n},extend:(e,t,n,{allOwnKeys:r}={})=>(z(t,(t,r)=>{n&&k(t)?e[r]=d(t,n):e[r]=t},{allOwnKeys:r}),e),trim:e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,""),stripBOM:e=>(65279===e.charCodeAt(0)&&(e=e.slice(1)),e),inherits:(e,t,n,r)=>{e.prototype=Object.create(t.prototype,r),e.prototype.constructor=e,Object.defineProperty(e,"super",{value:t.prototype}),n&&Object.assign(e.prototype,n)},toFlatObject:(e,t,n,r)=>{let l,a,u,c={};if(t=t||{},null==e)return t;do{for(a=(l=Object.getOwnPropertyNames(e)).length;a-- >0;)u=l[a],(!r||r(u,e,t))&&!c[u]&&(t[u]=e[u],c[u]=!0);e=!1!==n&&y(e)}while(e&&(!n||n(e,t))&&e!==Object.prototype);return t},kindOf:b,kindOfTest:S,endsWith:(e,t,n)=>{e=String(e),(void 0===n||n>e.length)&&(n=e.length),n-=t.length;let r=e.indexOf(t,n);return -1!==r&&r===n},toArray:e=>{if(!e)return null;if(w(e))return e;let t=e.length;if(!N(t))return null;let n=Array(t);for(;t-- >0;)n[t]=e[t];return n}
1,forEachEntry:(e,t)=>{let n,r=(e&&e[_]).call(e);for(;(n=r.next())&&!n.done;){let r=n.value;t.call(e,r[0],r[1])}},matchAll:(e,t)=>{let n,r=[];for(;null!==(n=e.exec(t));)r.push(n);return r},isHTMLForm:q,hasOwnProperty:Z,hasOwnProp:Z,reduceDescriptors:$,freezeMethods:e=>{$(e,(t,n)=>{if(k(e)&&-1!==["arguments","caller","callee"].indexOf(n))return!1;if(k(e[n])){if(t.enumerable=!1,"writable"in t){t.writable=!1;return}t.set||(t.set=()=>{throw Error("Can not rewrite read-only method '"+n+"'")})}})},toObjectSet:(e,t)=>{let n={};return(w(e)?e:String(e).split(t)).forEach(e=>{n[e]=!0}),n},toCamelCase:e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(e,t,n){return t.toUpperCase()+n}),noop:()=>{},toFiniteNumber:(e,t)=>null!=e&&Number.isFinite(e*=1)?e:t,findKey:K,global:U,isContextDefined:W,isSpecCompliantForm:function(e){return!!(e&&k(e.append)&&"FormData"===e[v]&&e[_])},toJSONObject:e=>{let t=Array(10),n=(e,r)=>{if(O(e)){if(t.indexOf(e)>=0)return;if(!("toJSON"in e)){t[r]=e;let l=w(e)?[]:{};return z(e,(e,t)=>{let a=n(e,r+1);C(a)||(l[t]=a)}),t[r]=void 0,l}}return e};return n(e,0)},isAsyncFn:H,isThenable:e=>e&&(O(e)||k(e))&&k(e.then)&&k(e.catch),setImmediate:Y,asap:X,isIterable:e=>null!=e&&k(e[_])};function Q(e,t,n,r,l){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=Error().stack,this.message=e,this.name="AxiosError",t&&(this.code=t),n&&(this.config=n),r&&(this.request=r),l&&(this.response=l,this.status=l.status?l.status:null)}G.inherits(Q,Error,{toJSON:function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:G.toJSONObject(this.config),code:this.code,status:this.status}}});let ee=Q.prototype,et={};["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED","ERR_NOT_SUPPORT","ERR_INVALID_URL"].forEach(e=>{et[e]={value:e}}),Object.defineProperties(Q,et),Object.defineProperty(ee,"isAxiosError",{value:!0}),Q.from=(e,t,n,r,l,a)=>{let u=Object.create(ee);return G.toFlatObject(e,u,function(e){return e!==Error.prototype},e=>"isAxiosError"!==e),Q.call(u,e.message,t,n,r,l),u.cause=e,u.name=e.name,a&&Object.assign(u,a),u};var en=n(8378).Buffer;function er(e){return G.isPlainObject(e)||G.isArray(e)}function ei(e){return G.endsWith(e,"[]")?e.slice(0,-2):e}function eo(e,t,n){return e?e.concat(t).map(function(e,t){return e=ei(e),!n&&t?"["+e+"]":e}).join(n?".":""):t}let el=G.toFlatObject(G,{},null,function(e){return/^is[A-Z]/.test(e)}),es=function(e,t,n){if(!G.isObject(e))throw TypeError("target must be an object");t=t||new FormData;let r=(n=G.toFlatObject(n,{metaTokens:!0,dots:!1,indexes:!1},!1,function(e,t){return!G.isUndefined(t[e])})).metaTokens,l=n.visitor||h,a=n.dots,u=n.indexes,c=(n.Blob||"undefined"!=typeof Blob&&Blob)&&G.isSpecCompliantForm(t);if(!G.isFunction(l))throw TypeError("visitor must be a function");function d(e){if(null===e)return"";if(G.isDate(e))return e.toISOString();if(!c&&G.isBlob(e))throw new Q("Blob is not supported. Use a Buffer instead.");return G.isArrayBuffer(e)||G.isTypedArray(e)?c&&"function"==typeof Blob?new Blob([e]):en.from(e):e}function h(e,n,l){let c=e;if(e&&!l&&"object"==typeof e)if(G.endsWith(n,"{}"))n=r?n:n.slice(0,-2),e=JSON.stringify(e);else{var h;if(G.isArray(e)&&(h=e,G.isArray(h)&&!h.some(er))||(G.isFileList(e)||G.endsWith(n,"[]"))&&(c=G.toArray(e)))return n=ei(n),c.forEach(function(e,r){G.isUndefined(e)||null===e||t.append(!0===u?eo([n],r,a):null===u?n:n+"[]",d(e))}),!1}return!!er(e)||(t.append(eo(l,n,a),d(e)),!1)}let p=[],y=Object.assign(el,{defaultVisitor:h,convertValue:d,isVisitable:er});if(!G.isObject(e))throw TypeError("data must be an object");return!function e(n,r){if(!G.isUndefined(n)){if(-1!==p.indexOf(n))throw Error("Circular reference detected in "+r.join("."));p.push(n),G.forEach(n,function(n,a){!0===(!(G.isUndefined(n)||null===n)&&l.call(t,n,G.isString(a)?a.trim():a,r,y))&&e(n,r?r.concat(a):[a]
1)}),p.pop()}}(e),t};function ea(e){let t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,function(e){return t[e]})}function eu(e,t){this._pairs=[],e&&es(e,this,t)}let ef=eu.prototype;function ec(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function ed(e,t,n){let r;if(!t)return e;let l=n&&n.encode||ec;G.isFunction(n)&&(n={serialize:n});let a=n&&n.serialize;if(r=a?a(t,n):G.isURLSearchParams(t)?t.toString():new eu(t,n).toString(l)){let t=e.indexOf("#");-1!==t&&(e=e.slice(0,t)),e+=(-1===e.indexOf("?")?"?":"&")+r}return e}ef.append=function(e,t){this._pairs.push([e,t])},ef.toString=function(e){let t=e?function(t){return e.call(this,t,ea)}:ea;return this._pairs.map(function(e){return t(e[0])+"="+t(e[1])},"").join("&")};class eh{constructor(){this.handlers=[]}use(e,t,n){return this.handlers.push({fulfilled:e,rejected:t,synchronous:!!n&&n.synchronous,runWhen:n?n.runWhen:null}),this.handlers.length-1}eject(e){this.handlers[e]&&(this.handlers[e]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(e){G.forEach(this.handlers,function(t){null!==t&&e(t)})}}let eg={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},ep="undefined"!=typeof URLSearchParams?URLSearchParams:eu,em="undefined"!=typeof FormData?FormData:null,ey="undefined"!=typeof Blob?Blob:null,e_="undefined"!=typeof window&&"undefined"!=typeof document,ev="object"==typeof navigator&&navigator||void 0,eb=e_&&(!ev||0>["ReactNative","NativeScript","NS"].indexOf(ev.product)),eS="undefined"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope&&"function"==typeof self.importScripts,ex=e_&&window.location.href||"http://localhost",ew={...c,isBrowser:!0,classes:{URLSearchParams:ep,FormData:em,Blob:ey},protocols:["http","https","file","blob","url","data"]},eC=function(e){if(G.isFormData(e)&&G.isFunction(e.entries)){let t={};return G.forEachEntry(e,(e,n)=>{!function e(t,n,r,l){let a=t[l++];if("__proto__"===a)return!0;let u=Number.isFinite(+a),c=l>=t.length;return(a=!a&&G.isArray(r)?r.length:a,c)?G.hasOwnProp(r,a)?r[a]=[r[a],n]:r[a]=n:(r[a]&&G.isObject(r[a])||(r[a]=[]),e(t,n,r[a],l)&&G.isArray(r[a])&&(r[a]=function(e){let t,n,r={},l=Object.keys(e),a=l.length;for(t=0;t<a;t++)r[n=l[t]]=e[n];return r}(r[a]))),!u}(G.matchAll(/\w+|\[(\w*)]/g,e).map(e=>"[]"===e[0]?"":e[1]||e[0]),n,t,0)}),t}return null},eE={transitional:eg,adapter:["xhr","http","fetch"],transformRequest:[function(e,t){let n,r=t.getContentType()||"",l=r.indexOf("application/json")>-1,a=G.isObject(e);if(a&&G.isHTMLForm(e)&&(e=new FormData(e)),G.isFormData(e))return l?JSON.stringify(eC(e)):e;if(G.isArrayBuffer(e)||G.isBuffer(e)||G.isStream(e)||G.isFile(e)||G.isBlob(e)||G.isReadableStream(e))return e;if(G.isArrayBufferView(e))return e.buffer;if(G.isURLSearchParams(e))return t.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),e.toString();if(a){if(r.indexOf("application/x-www-form-urlencoded")>-1){var u,c;return(u=e,c=this.formSerializer,es(u,new ew.classes.URLSearchParams,Object.assign({visitor:function(e,t,n,r){return ew.isNode&&G.isBuffer(e)?(this.append(t,e.toString("base64")),!1):r.defaultVisitor.apply(this,arguments)}},c))).toString()}if((n=G.isFileList(e))||r.indexOf("multipart/form-data")>-1){let t=this.env&&this.env.FormData;return es(n?{"files[]":e}:e,t&&new t,this.formSerializer)}}if(a||l){t.setContentType("application/json",!1);var d=e;if(G.isString(d))try{return(0,JSON.parse)(d),G.trim(d)}catch(e){if("SyntaxError"!==e.name)throw e}return(0,JSON.stringify)(d)}return e}],transformResponse:[function(e){let t=this.transitional||eE.transitional,n=t&&t.forcedJSONParsing,r="json"===this.responseType;if(G.isResponse(e)||G.isReadableStream(e))return e;if(e&&G.isString(e)&&(n&&!this.responseType||r)){let n=t&&t.silentJSONParsing;try{return JSON.parse(e)}catch(e){if(!n&&r){if("SyntaxError"===e.name)throw Q.from(e,Q.ERR_BAD_RESPONSE,this,null,this.response);throw e}}}return e}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:ew.classes.FormData,Blob:ew.classes.Blob},validateStatus:function(e){return e>=200&&e<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};G.forEach(["delete","get","head","post","put","patch"],e=>{eE.headers[e]={}});let eT=G.toObjectSet(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"]),ek=e=>{let t,n,r,l={};return e&&e.split("\n").forEach(function(e){r=e.indexOf(":"),t=e.substring(0,r).trim().toLowerCase(),n=e.substring(r+1).trim(),!t||l[t]&&eT[t]||("set-cookie"===t?l[t]?l[t].push(n):l[t]=[n]:l[t]=l[t]?l[t]+", "+n:n)}),l},eN=Symbol("internals");function eO(e){return e&&String(e).trim().toLowerCase()}function eA(e){return!1===e||null==e?e:G.isArray(e)?e.map(eA):String(e)}let eP=e=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim());function eM(e,t,n,r,l){if(G.isFunction(r))return r.call(this,t,n);if(l&&(t=n),G.isString(t)){if(G.isString(r))return -1!==t.indexOf(r);if(G.isRegExp(r))return r.test(t)}}class eR{constructor(e){e&&this.set(e)}set(e,t,n){let r=this;function l(e,t,n){let l=eO(t);if(!l)throw Error("header name must be a non-empty string");let a=G.findKey(r,l);a&&void 0!==r[a]&&!0!==n&&(void 0!==n||!1===r[a])||(r[a||t]=eA(e))}let a=(e,t)=>G.forEach(e,(e,n)=>l(e,n,t));if(G.isPlainObject(e)||e instanceof this.constructor)a(e,t);else if(G.isString(e)&&(e=e.trim())&&!eP(e))a(ek(e),t);else if(G.isObject(e)&&G.isIterable(e)){let n={},r,l;for(let t of e){if(!G.isArray(t))throw TypeError("Object iterator must return a key-value pair");n[l=t[0]]=(r=n[l])?G.isArray(r)?[...r,t[1]]:[r,t[1]]:t[1]}a(n,t)}else null!=e&&l(t,e,n);return this}get(e,t){if(e=eO(e)){let n=G.findKey(this,e);if(n){let e=this[n];if(!t)return e;if(!0===t){let t,n=Object.create(null),r=/([^\s,;
1=]+)\s*(?:=\s*([^,;]+))?/g;for(;t=r.exec(e);)n[t[1]]=t[2];return n}if(G.isFunction(t))return t.call(this,e,n);if(G.isRegExp(t))return t.exec(e);throw TypeError("parser must be boolean|regexp|function")}}}has(e,t){if(e=eO(e)){let n=G.findKey(this,e);return!!(n&&void 0!==this[n]&&(!t||eM(this,this[n],n,t)))}return!1}delete(e,t){let n=this,r=!1;function l(e){if(e=eO(e)){let l=G.findKey(n,e);l&&(!t||eM(n,n[l],l,t))&&(delete n[l],r=!0)}}return G.isArray(e)?e.forEach(l):l(e),r}clear(e){let t=Object.keys(this),n=t.length,r=!1;for(;n--;){let l=t[n];(!e||eM(this,this[l],l,e,!0))&&(delete this[l],r=!0)}return r}normalize(e){let t=this,n={};return G.forEach(this,(r,l)=>{let a=G.findKey(n,l);if(a){t[a]=eA(r),delete t[l];return}let u=e?l.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(e,t,n)=>t.toUpperCase()+n):String(l).trim();u!==l&&delete t[l],t[u]=eA(r),n[u]=!0}),this}concat(...e){return this.constructor.concat(this,...e)}toJSON(e){let t=Object.create(null);return G.forEach(this,(n,r)=>{null!=n&&!1!==n&&(t[r]=e&&G.isArray(n)?n.join(", "):n)}),t}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([e,t])=>e+": "+t).join("\n")}getSetCookie(){return this.get("set-cookie")||[]}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(e){return e instanceof this?e:new this(e)}static concat(e,...t){let n=new this(e);return t.forEach(e=>n.set(e)),n}static accessor(e){let t=(this[eN]=this[eN]={accessors:{}}).accessors,n=this.prototype;function r(e){let r=eO(e);if(!t[r]){let l=G.toCamelCase(" "+e);["get","set","has"].forEach(t=>{Object.defineProperty(n,t+l,{value:function(n,r,l){return this[t].call(this,e,n,r,l)},configurable:!0})}),t[r]=!0}}return G.isArray(e)?e.forEach(r):r(e),this}}function eF(e,t){let n=this||eE,r=t||n,l=eR.from(r.headers),a=r.data;return G.forEach(e,function(e){a=e.call(n,a,l.normalize(),t?t.status:void 0)}),l.normalize(),a}function eD(e){return!!(e&&e.__CANCEL__)}
1function eL(e,t,n){Q.call(this,null==e?"canceled":e,Q.ERR_CANCELED,t,n),this.name="CanceledError"}function eI(e,t,n){let r=n.config.validateStatus;!n.status||!r||r(n.status)?e(n):t(new Q("Request failed with status code "+n.status,[Q.ERR_BAD_REQUEST,Q.ERR_BAD_RESPONSE][Math.floor(n.status/100)-4],n.config,n.request,n))}eR.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]),G.reduceDescriptors(eR.prototype,({value:e},t)=>{let n=t[0].toUpperCase()+t.slice(1);return{get:()=>e,set(e){this[n]=e}}}),G.freezeMethods(eR),G.inherits(eL,Q,{__CANCEL__:!0});let eB=function(e,t){let n,r=Array(e=e||10),l=Array(e),a=0,u=0;return t=void 0!==t?t:1e3,function(c){let d=Date.now(),h=l[u];n||(n=d),r[a]=c,l[a]=d;let p=u,y=0;for(;p!==a;)y+=r[p++],p%=e;if((a=(a+1)%e)===u&&(u=(u+1)%e),d-n<t)return;let _=h&&d-h;return _?Math.round(1e3*y/_):void 0}},ej=function(e,t){let n,r,l=0,a=1e3/t,u=(t,a=Date.now())=>{l=a,n=null,r&&(clearTimeout(r),r=null),e.apply(null,t)};return[(...e)=>{let t=Date.now(),c=t-l;c>=a?u(e,t):(n=e,r||(r=setTimeout(()=>{r=null,u(n)},a-c)))},()=>n&&u(n)]},ez=(e,t,n=3)=>{let r=0,l=eB(50,250);return ej(n=>{let a=n.loaded,u=n.lengthComputable?n.total:void 0,c=a-r,d=l(c);r=a,e({loaded:a,total:u,progress:u?a/u:void 0,bytes:c,rate:d||void 0,estimated:d&&u&&a<=u?(u-a)/d:void 0,event:n,lengthComputable:null!=u,[t?"download":"upload"]:!0})},n)},eK=(e,t)=>{let n=null!=e;return[r=>t[0]({lengthComputable:n,total:e,loaded:r}),t[1]]},eU=e=>(...t)=>G.asap(()=>e(...t)),eW=ew.hasStandardBrowserEnv?((e,t)=>n=>(n=new URL(n,ew.origin),e.protocol===n.protocol&&e.host===n.host&&(t||e.port===n.port)))(new URL(ew.origin),ew.navigator&&/(msie|trident)/i.test(ew.navigator.userAgent)):()=>!0,eJ=ew.hasStandardBrowserEnv?{write(e,t,n,r,l,a){let u=[e+"="+encodeURIComponent(t)];G.isNumber(n)&&u.push("expires="+new Date(n).toGMTString()),G.isString(r)&&u.push("path="+r),G.isString(l)&&u.push("domain="+l),!0===a&&u.push("secure"),document.cookie=u.join("; ")},read(e){let t=document.cookie.match(RegExp("(^|;\\s*)("+e+")=([^;]*)"));return t?decodeURIComponent(t[3]):null},remove(e){this.write(e,"",Date.now()-864e5)}}:{write(){},read:()=>null,remove(){}};function eq(e,t,n){let r=!/^([a-z][a-z\d+\-.]*:)?\/\//i.test(t);return e&&(r||!1==n)?t?e.replace(/\/?\/$/,"")+"/"+t.replace(/^\/+/,""):e:t}let eZ=e=>e instanceof eR?{...e}:e;function eV(e,t){t=t||{};let n={};function r(e,t,n,r){return G.isPlainObject(e)&&G.isPlainObject(t)?G.merge.call({caseless:r},e,t):G.isPlainObject(t)?G.merge({},t):G.isArray(t)?t.slice():t}function l(e,t,n,l){return G.isUndefined(t)?G.isUndefined(e)?void 0:r(void 0,e,n,l):r(e,t,n,l)}function a(e,t){if(!G.isUndefined(t))return r(void 0,t)}function u(e,t){return G.isUndefined(t)?G.isUndefined(e)?void 0:r(void 0,e):r(void 0,t)}function c(n,l,a){return a in t?r(n,l):a in e?r(void 0,n):void 0}let d={url:a,method:a,data:a,baseURL:u,transformRequest:u,transformResponse:u,paramsSerializer:u,timeout:u,timeoutMessage:u,withCredentials:u,withXSRFToken:u,adapter:u,responseType:u,xsrfCookieName:u,xsrfHeaderName:u,onUploadProgress:u,onDownloadProgress:u,decompress:u,maxContentLength:u,maxBodyLength:u,beforeRedirect:u,transport:u,httpAgent:u,httpsAgent:u,cancelToken:u,socketPath:u,responseEncoding:u,validateStatus:c,headers:(e,t,n)=>l(eZ(e),eZ(t),n,!0)};return G.forEach(Object.keys(Object.assign({},e,t)),function(r){let a=d[r]||l,u=a(e[r],t[r],r);G.isUndefined(u)&&a!==c||(n[r]=u)}),n}let e$=e=>{let t,n=eV({},e),{data:r,withXSRFToken:l,xsrfHeaderName:a,xsrfCookieName:u,headers:c,auth:d}=n;if(n.headers=c=eR.from(c),n.url=ed(eq(n.baseURL,n.url,n.allowAbsoluteUrls),e.params,e.paramsSerializer),d&&c.set("Authorization","Basic "+btoa((d.username||"")+":"+(d.password?unescape(encodeURIComponent(d.password)):""))),G.isFormData(r)){if(ew.hasStandardBrowserEnv||ew.hasStandardBrowserWebWorkerEnv)c.setContentType(void 0);else if(!1!==(t=c.getContentType())){let[e,...n]=t?t.split(";").map(e=>e.trim()).filter(Boolean):[];c.setContentType([e||"multipart/form-data",...n].join("; "))}}if(ew.hasStandardBrowserEnv&&(l&&G.isFunction(l)&&(l=l(n)),l||!1!==l&&eW(n.url))){let e=a&&u&&eJ.read(u);e&&c.set(a,e)}return n},eH="undefined"!=typeof XMLHttpRequest&&function(e){return new Promise(function(t,n){let r,l,a,u,c,d=e$(e),h=d.data,p=eR.from(d.headers).normalize(),{responseType:y,onUploadProgress:_,onDownloadProgress:v}=d;function b(){u&&u(),c&&c(),d.cancelToken&&d.cancelToken.unsubscribe(r),d.signal&&d.signal.removeEventListener("abort",r)}let S=new XMLHttpRequest;function x(){if(!S)return;let r=eR.from("getAllResponseHeaders"in S&&S.getAllResponseHeaders());eI(function(e){t(e),b()},function(e){n(e),b()},{data:y&&"text"!==y&&"json"!==y?S.response:S.responseText,status:S.status,statusText:S.statusText,headers:r,config:e,request:S}),S=null}
1S.open(d.method.toUpperCase(),d.url,!0),S.timeout=d.timeout,"onloadend"in S?S.onloadend=x:S.onreadystatechange=function(){S&&4===S.readyState&&(0!==S.status||S.responseURL&&0===S.responseURL.indexOf("file:"))&&setTimeout(x)},S.onabort=function(){S&&(n(new Q("Request aborted",Q.ECONNABORTED,e,S)),S=null)},S.onerror=function(){n(new Q("Network Error",Q.ERR_NETWORK,e,S)),S=null},S.ontimeout=function(){let t=d.timeout?"timeout of "+d.timeout+"ms exceeded":"timeout exceeded",r=d.transitional||eg;d.timeoutErrorMessage&&(t=d.timeoutErrorMessage),n(new Q(t,r.clarifyTimeoutError?Q.ETIMEDOUT:Q.ECONNABORTED,e,S)),S=null},void 0===h&&p.setContentType(null),"setRequestHeader"in S&&G.forEach(p.toJSON(),function(e,t){S.setRequestHeader(t,e)}),G.isUndefined(d.withCredentials)||(S.withCredentials=!!d.withCredentials),y&&"json"!==y&&(S.responseType=d.responseType),v&&([a,c]=ez(v,!0),S.addEventListener("progress",a)),_&&S.upload&&([l,u]=ez(_),S.upload.addEventListener("progress",l),S.upload.addEventListener("loadend",u)),(d.cancelToken||d.signal)&&(r=t=>{S&&(n(!t||t.type?new eL(null,e,S):t),S.abort(),S=null)},d.cancelToken&&d.cancelToken.subscribe(r),d.signal&&(d.signal.aborted?r():d.signal.addEventListener("abort",r)));let w=function(e){let t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}(d.url);if(w&&-1===ew.protocols.indexOf(w))return void n(new Q("Unsupported protocol "+w+":",Q.ERR_BAD_REQUEST,e));S.send(h||null)})},eY=(e,t)=>{let{length:n}=e=e?e.filter(Boolean):[];if(t||n){let n,r=new AbortController,l=function(e){if(!n){n=!0,u();let t=e instanceof Error?e:this.reason;r.abort(t instanceof Q?t:new eL(t instanceof Error?t.message:t))}},a=t&&setTimeout(()=>{a=null,l(new Q(`timeout ${t} of ms exceeded`,Q.ETIMEDOUT))},t),u=()=>{e&&(a&&clearTimeout(a),a=null,e.forEach(e=>{e.unsubscribe?e.unsubscribe(l):e.removeEventListener("abort",l)}),e=null)};e.forEach(e=>e.addEventListener("abort",l));let{signal:c}=r;return c.unsubscribe=()=>G.asap(u),c}},eX=function*(e,t){let n,r=e.byteLength;if(!t||r<t)return void(yield e);let l=0;for(;l<r;)n=l+t,yield e.slice(l,n),l=n},eG=async function*(e,t){for await(let n of eQ(e))yield*eX(n,t)},eQ=async function*(e){if(e[Symbol.asyncIterator])return void(yield*e);let t=e.getReader();try{for(;;){let{done:e,value:n}=await t.read();if(e)break;yield n}}finally{await t.cancel()}},e0=(e,t,n,r)=>{let l,a=eG(e,t),u=0,c=e=>{!l&&(l=!0,r&&r(e))};return new ReadableStream({async pull(e){try{let{done:t,value:r}=await a.next();if(t){c(),e.close();return}let l=r.byteLength;if(n){let e=u+=l;n(e)}e.enqueue(new Uint8Array(r))}catch(e){throw c(e),e}},cancel:e=>(c(e),a.return())},{highWaterMark:2})},e1="function"==typeof fetch&&"function"==typeof Request&&"function"==typeof Response,e2=e1&&"function"==typeof ReadableStream,e6=e1&&("function"==typeof TextEncoder?(r=new TextEncoder,e=>r.encode(e)):async e=>new Uint8Array(await new Response(e).arrayBuffer())),e5=(e,...t)=>{try{return!!e(...t)}catch(e){return!1}},e8=e2&&e5(()=>{let e=!1,t=new Request(ew.origin,{body:new ReadableStream,method:"POST",get duplex(){return e=!0,"half"}}).headers.has("Content-Type");return e&&!t}),e3=e2&&e5(()=>G.isReadableStream(new Response("").body)),e4={stream:e3&&(e=>e.body)};e1&&(u=new Response,["text","arrayBuffer","blob","formData","stream"].forEach(e=>{e4[e]||(e4[e]=G.isFunction(u[e])?t=>t[e]():(t,n)=>{throw new Q(`Response type '${e}' is not supported`,Q.ERR_NOT_SUPPORT,n)})}));let e7=async e=>{if(null==e)return 0;if(G.isBlob(e))return e.size;if(G.isSpecCompliantForm(e)){let t=new Request(ew.origin,{method:"POST",body:e});return(await t.arrayBuffer()).byteLength}return G.isArrayBufferView(e)||G.isArrayBuffer(e)?e.byteLength:(G.isURLSearchParams(e)&&(e+=""),G.isString(e))?(await e6(e)).byteLength:void 0},e9=async(e,t)=>{let n=G.toFiniteNumber(e.getContentLength());return null==n?e7(t):n},te={http:null,xhr:eH,fetch:e1&&(async e=>{let t,n,{url:r,method:l,data:a,signal:u,cancelToken:c,timeout:d,onDownloadProgress:h,onUploadProgress:p,responseType:y,headers:_,withCredentials:v="same-origin",fetchOptions:b}=e$(e);y=y?(y+"").toLowerCase():"text";let S=eY([u,c&&c.toAbortSignal()],d),x=S&&S.unsubscribe&&(()=>{S.unsubscribe()});try{if(p&&e8&&"get"!==l&&"head"!==l&&0!==(n=await e9(_,a))){let e,t=new Request
1(r,{method:"POST",body:a,duplex:"half"});if(G.isFormData(a)&&(e=t.headers.get("content-type"))&&_.setContentType(e),t.body){let[e,r]=eK(n,ez(eU(p)));a=e0(t.body,65536,e,r)}}G.isString(v)||(v=v?"include":"omit");let u="credentials"in Request.prototype;t=new Request(r,{...b,signal:S,method:l.toUpperCase(),headers:_.normalize().toJSON(),body:a,duplex:"half",credentials:u?v:void 0});let c=await fetch(t),d=e3&&("stream"===y||"response"===y);if(e3&&(h||d&&x)){let e={};["status","statusText","headers"].forEach(t=>{e[t]=c[t]});let t=G.toFiniteNumber(c.headers.get("content-length")),[n,r]=h&&eK(t,ez(eU(h),!0))||[];c=new Response(e0(c.body,65536,n,()=>{r&&r(),x&&x()}),e)}y=y||"text";let w=await e4[G.findKey(e4,y)||"text"](c,e);return!d&&x&&x(),await new Promise((n,r)=>{eI(n,r,{data:w,headers:eR.from(c.headers),status:c.status,statusText:c.statusText,config:e,request:t})})}catch(n){if(x&&x(),n&&"TypeError"===n.name&&/Load failed|fetch/i.test(n.message))throw Object.assign(new Q("Network Error",Q.ERR_NETWORK,e,t),{cause:n.cause||n});throw Q.from(n,n&&n.code,e,t)}})};G.forEach(te,(e,t)=>{if(e){try{Object.defineProperty(e,"name",{value:t})}catch(e){}Object.defineProperty(e,"adapterName",{value:t})}});let tt=e=>`- ${e}`,tn=e=>G.isFunction(e)||null===e||!1===e,tr={getAdapter:e=>{let t,n,{length:r}=e=G.isArray(e)?e:[e],l={};for(let a=0;a<r;a++){let r;if(n=t=e[a],!tn(t)&&void 0===(n=te[(r=String(t)).toLowerCase()]))throw new Q(`Unknown adapter '${r}'`);if(n)break;l[r||"#"+a]=n}if(!n){let e=Object.entries(l).map(([e,t])=>`adapter ${e} `+(!1===t?"is not supported by the environment":"is not available in the build"));throw new Q("There is no suitable adapter to dispatch the request "+(r?e.length>1?"since :\n"+e.map(tt).join("\n"):" "+tt(e[0]):"as no adapter specified"),"ERR_NOT_SUPPORT")}return n}};function ti(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new eL(null,e)}function to(e){return ti(e),e.headers=eR.from(e.headers),e.data=eF.call(e,e.transformRequest),-1!==["post","put","patch"].indexOf(e.method)&&e.headers.setContentType("application/x-www-form-urlencoded",!1),tr.getAdapter(e.adapter||eE.adapter)(e).then(function(t){return ti(e),t.data=eF.call(e,e.transformResponse,t),t.headers=eR.from(t.headers),t},function(t){return!eD(t)&&(ti(e),t&&t.response&&(t.response.data=eF.call(e,e.transformResponse,t.response),t.response.headers=eR.from(t.response.headers))),Promise.reject(t)})}let tl="1.9.0",ts={};["object","boolean","number","function","string","symbol"].forEach((e,t)=>{ts[e]=function(n){return typeof n===e||"a"+(t<1?"n ":" ")+e}});let ta={};ts.transitional=function(e,t,n){function r(e,t){return"[Axios v"+tl+"] Transitional option '"+e+"'"+t+(n?". "+n:"")}return(n,l,a)=>{if(!1===e)throw new Q(r(l," has been removed"+(t?" in "+t:"")),Q.ERR_DEPRECATED);return t&&!ta[l]&&(ta[l]=!0,console.warn(r(l," has been deprecated since v"+t+" and will be removed in the near future"))),!e||e(n,l,a)}},ts.spelling=function(e){return(t,n)=>(console.warn(`${n} is likely a misspelling of ${e}`),!0)};let tu={assertOptions:function(e,t,n){if("object"!=typeof e)throw new Q("options must be an object",Q.ERR_BAD_OPTION_VALUE);let r=Object.keys(e),l=r.length;for(;l-- >0;){let a=r[l],u=t[a];if(u){let t=e[a],n=void 0===t||u(t,a,e);if(!0!==n)throw new Q("option "+a+" must be "+n,Q.ERR_BAD_OPTION_VALUE);continue}if(!0!==n)throw new Q("Unknown option "+a,Q.ERR_BAD_OPTION)}},validators:ts},tf=tu.validators;class tc{constructor(e){this.defaults=e||{},this.interceptors={request:new eh,response:new eh}}async request(e,t){try{return await this._request(e,t)}catch(e){if(e instanceof Error){let t={};Error.captureStackTrace?Error.captureStackTrace(t):t=Error();let n=t.stack?t.stack.replace(/^.+\n/,""):"";try{e.stack?n&&!String(e.stack).endsWith(n.replace(/^.+\n.+\n/,""))&&(e.stack+="\n"+n):e.stack=n}catch(e){}}throw e}}_request(e,t){let n,r;"string"==typeof e?(t=t||{}).url=e:t=e||{};let{transitional:l,paramsSerializer:a,headers:u}=t=eV(this.defaults,t);void 0!==l&&tu.assertOptions(l,{silentJSONParsing:tf.transitional(tf.boolean),forcedJSONParsing:tf.transitional(tf.boolean),clarifyTimeoutError:tf.transitional(tf.boolean)}
1,!1),null!=a&&(G.isFunction(a)?t.paramsSerializer={serialize:a}:tu.assertOptions(a,{encode:tf.function,serialize:tf.function},!0)),void 0!==t.allowAbsoluteUrls||(void 0!==this.defaults.allowAbsoluteUrls?t.allowAbsoluteUrls=this.defaults.allowAbsoluteUrls:t.allowAbsoluteUrls=!0),tu.assertOptions(t,{baseUrl:tf.spelling("baseURL"),withXsrfToken:tf.spelling("withXSRFToken")},!0),t.method=(t.method||this.defaults.method||"get").toLowerCase();let c=u&&G.merge(u.common,u[t.method]);u&&G.forEach(["delete","get","head","post","put","patch","common"],e=>{delete u[e]}),t.headers=eR.concat(c,u);let d=[],h=!0;this.interceptors.request.forEach(function(e){("function"!=typeof e.runWhen||!1!==e.runWhen(t))&&(h=h&&e.synchronous,d.unshift(e.fulfilled,e.rejected))});let p=[];this.interceptors.response.forEach(function(e){p.push(e.fulfilled,e.rejected)});let y=0;if(!h){let e=[to.bind(this),void 0];for(e.unshift.apply(e,d),e.push.apply(e,p),r=e.length,n=Promise.resolve(t);y<r;)n=n.then(e[y++],e[y++]);return n}r=d.length;let _=t;for(y=0;y<r;){let e=d[y++],t=d[y++];try{_=e(_)}catch(e){t.call(this,e);break}}try{n=to.call(this,_)}catch(e){return Promise.reject(e)}for(y=0,r=p.length;y<r;)n=n.then(p[y++],p[y++]);return n}getUri(e){return ed(eq((e=eV(this.defaults,e)).baseURL,e.url,e.allowAbsoluteUrls),e.params,e.paramsSerializer)}}G.forEach(["delete","get","head","options"],function(e){tc.prototype[e]=function(t,n){return this.request(eV(n||{},{method:e,url:t,data:(n||{}).data}))}}),G.forEach(["post","put","patch"],function(e){function t(t){return function(n,r,l){return this.request(eV(l||{},{method:e,headers:t?{"Content-Type":"multipart/form-data"}:{},url:n,data:r}))}}tc.prototype[e]=t(),tc.prototype[e+"Form"]=t(!0)});class td{constructor(e){let t;if("function"!=typeof e)throw TypeError("executor must be a function.");this.promise=new Promise(function(e){t=e});let n=this;this.promise.then(e=>{if(!n._listeners)return;let t=n._listeners.length;for(;t-- >0;)n._listeners[t](e);n._listeners=null}),this.promise.then=e=>{let t,r=new Promise(e=>{n.subscribe(e),t=e}).then(e);return r.cancel=function(){n.unsubscribe(t)},r},e(function(e,r,l){n.reason||(n.reason=new eL(e,r,l),t(n.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(e){if(this.reason)return void e(this.reason);this._listeners?this._listeners.push(e):this._listeners=[e]}unsubscribe(e){if(!this._listeners)return;let t=this._listeners.indexOf(e);-1!==t&&this._listeners.splice(t,1)}toAbortSignal(){let e=new AbortController,t=t=>{e.abort(t)};return this.subscribe(t),e.signal.unsubscribe=()=>this.unsubscribe(t),e.signal}static source(){let e;return{token:new td(function(t){e=t}),cancel:e}}}let th={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,Parti
1alContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511};Object.entries(th).forEach(([e,t])=>{th[t]=e});let tg=function e(t){let n=new tc(t),r=d(tc.prototype.request,n);return G.extend(r,tc.prototype,n,{allOwnKeys:!0}),G.extend(r,n,null,{allOwnKeys:!0}),r.create=function(n){return e(eV(t,n))},r}(eE);tg.Axios=tc,tg.CanceledError=eL,tg.CancelToken=td,tg.isCancel=eD,tg.VERSION=tl,tg.toFormData=es,tg.AxiosError=Q,tg.Cancel=tg.CanceledError,tg.all=function(e){return Promise.all(e)},tg.spread=function(e){return function(t){return e.apply(null,t)}},tg.isAxiosError=function(e){return G.isObject(e)&&!0===e.isAxiosError},tg.mergeConfig=eV,tg.AxiosHeaders=eR,tg.formToJSON=e=>
1eC(G.isHTMLForm(e)?new FormData(e):e),tg.getAdapter=tr.getAdapter,tg.HttpStatusCode=th,tg.default=tg;let tp=tg},2309:(e,t,n)=>{"use strict";n.d(t,{default:()=>l.a});var r=n(8650),l=n.n(r)},2858:(e,t,n)=>{"use strict";n.d(t,{k5:()=>p});var r=n(6636),l={color:void 0,size:void 0,className:void 0,style:void 0,attr:void 0},a=r.createContext&&r.createContext(l),u=["attr","size","title"];function c(){return(c=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}function d(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function h(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?d(Object(n),!0).forEach(function(t){var r,l,a;r=e,l=t,a=n[t],(l=function(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=typeof r)return r;throw TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:t+""}(l))in r?Object.defineProperty(r,l,{value:a,enumerable:!0,configurable:!0,writable:!0}):r[l]=a}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):d(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function p(e){return t=>r.createElement(y,c({attr:h({},e.attr)},t),function e(t){return t&&t.map((t,n)=>r.createElement(t.tag,h({key:n},t.attr),e(t.child)))}(e.child))}function y(e){var t=t=>{var n,{attr:l,size:a,title:d}=e,p=function(e,t){if(null==e)return{};var n,r,l=function(e,t){if(null==e)return{};var n={};for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r)){if(t.indexOf(r)>=0)continue;n[r]=e[r]}return n}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r<a.length;r++)n=a[r],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(l[n]=e[n])}return l}(e,u),y=a||t.size||"1em";return t.className&&(n=t.className),e.className&&(n=(n?n+" ":"")+e.className),r.createElement("svg",c({stroke:"currentColor",fill:"currentColor",strokeWidth:"0"},t.attr,l,p,{className:n,style:h(h({color:e.color||t.color},t.style),e.style),height:y,width:y,xmlns:"http://www.w3.org/2000/svg"}),d&&r.createElement("title",null,d),e.children)};return void 0!==a?r.createElement(a.Consumer,null,e=>t(e)):t(l)}},3794:(e,t,n)=>{"use strict";n.d(t,{DF:()=>u,Gu:()=>l,Mx:()=>a});var r=n(6636);let l=(0,r.createContext)(null);function a(e,t){let n=null;return null!=e&&(n=e[1]),{getTheme:function(){return null!=t?t:null!=n?n.getTheme():null}}}function u(){let e=(0,r.useContext)(l);return null==e&&function(e,...t){let n=new URL("https://lexical.dev/docs/error"),r=new URLSearchParams;for(let e of(r.append("code",8),t))r.append("v",e);throw n.search=r.toString(),Error(`Minified Lexical error #${8}; visit ${n.toString()} for the full message or use the non-minified dev environment for full errors and additional helpful warnings.`)}(8),e}},4582:(e,t,n)=>{"use strict";var r=n(3066);n.o(r,"useRouter")&&n.d(t,{useRouter:function(){return r.useRouter}}),n.o(r,"useSearchParams")&&n.d(t,{useSearchParams:function(){return r.useSearchParams}})},6591:(e,t,n)=>{"use strict";n.d(t,{Bt:()=>p,Sd:()=>c,ZB:()=>d,mB:()=>h,xj:()=>y});var r=n(1450);let l="undefined"!=typeof window&&void 0!==window.document&&void 0!==window.document.createElement,a=l&&"documentMode"in document?document.documentMode:null,u=(l&&/Mac|iPod|iPhone|iPad/.test(navigator.platform),l&&/^(?!.*Seamonkey)(?=.*Firefox).*/i.test(navigator.userAgent));l&&"InputEvent"in window&&!a&&new window.InputEvent("input"),l&&/Version\/[\d.]+.*Safari/.test(navigator.userAgent),l&&/iPad|iPhone|iPod/.test(navigator.userAgent)&&window.MSStream,l&&/Android/.test(navigator.userAgent),l&&/^(?=.*Chrome).*/i.test(navigator.userAgent);function c(...e){return()=>{for(let t=e.length-1;t>=0;t--)e[t]();e.length=0}}
1l&&/AppleWebKit\/[\d.]+/.test(navigator.userAgent);function d(e,...t){let n=function(...e){let t=[];for(let n of e)if(n&&"string"==typeof n)for(let[e]of n.matchAll(/\S+/g))t.push(e);return t}(...t);n.length>0&&e.classList.add(...n)}function h(e){let t=p(e,e=>(0,r.ff4)(e)&&!e.isInline());return(0,r.ff4)(t)||function(e,...t){let n=new URL("https://lexical.dev/docs/error"),r=new URLSearchParams;for(let e of(r.append("code",4),t))r.append("v",e);throw n.search=r.toString(),Error(`Minified Lexical error #${e}; visit ${n.toString()} for the full message or use the non-minified dev environment for full errors and additional helpful warnings.`)}(4,e.__key),t}let p=(e,t)=>{let n=e;for(;n!==(0,r.NiT)()&&null!=n;){if(t(n))return n;n=n.getParent()}return null};function y(e,t){return null!==e&&Object.getPrototypeOf(e).constructor.name===t.name}function _(e,t="root"){let n=0,r=e,l=s(r);for(;null===l;){if(n--,!(l=r.getParentCaret(t)))return null;l=s(r=l)}return l&&[l,n]}},6787:(e,t,n)=>{"use strict";n.d(t,{n:()=>p});var r=n(3794),l=n(1450),a=n(6636),u=n(6384);let c="undefined"!=typeof window&&void 0!==window.document&&void 0!==window.document.createElement,d=c?a.useLayoutEffect:a.useEffect,h={tag:l.T40};function p({initialConfig:e,children:t}){let n=(0,a.useMemo)(()=>{let{theme:t,namespace:n,nodes:a,onError:u,editorState:d,html:p}=e,y=(0,r.Mx)(null,t),_=(0,l.ieJ)({editable:e.editable,html:p,namespace:n,nodes:a,onError:e=>u(e,_),theme:t});return function(e,t){if(null!==t){if(void 0===t)e.update(()=>{let t=(0,l.NiT)();if(t.isEmpty()){let n=(0,l.lJ7)();t.append(n);let r=c?document.activeElement:null;(null!==(0,l.vJq)()||null!==r&&r===e.getRootElement())&&n.select()}},h);else if(null!==t)switch(typeof t){case"string":{let n=e.parseEditorState(t);e.setEditorState(n,h);break}case"object":e.setEditorState(t,h);break;case"function":e.update(()=>{(0,l.NiT)().isEmpty()&&t(e)},h)}}}(_,d),[_,y]},[]);return d(()=>{let t=e.editable,[r]=n;r.setEditable(void 0===t||t)},[]),(0,u.jsx)(r.Gu.Provider,{value:n,children:t})}},7274:(e,t,n)=>{"use strict";n.d(t,{A:()=>h});var r=n(6636),l={cm:!0,mm:!0,in:!0,px:!0,pt:!0,pc:!0,em:!0,ex:!0,ch:!0,rem:!0,vw:!0,vh:!0,vmin:!0,vmax:!0,"%":!0};function a(e){var t=function(e){if("number"==typeof e)return{value:e,unit:"px"};var t,n=(e.match(/^[0-9.]*/)||"").toString();t=n.includes(".")?parseFloat(n):parseInt(n,10);var r=(e.match(/[^0-9]*$/)||"").toString();return l[r]?{value:t,unit:r}:(console.warn("React Spinners: ".concat(e," is not a valid css value. Defaulting to ").concat(t,"px.")),{value:t,unit:"px"})}(e);return"".concat(t.value).concat(t.unit)}var u=function(){return(u=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var l in t=arguments[n])Object.prototype.hasOwnProperty.call(t,l)&&(e[l]=t[l]);return e}).apply(this,arguments)},c=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&0>t.indexOf(r)&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var l=0,r=Object.getOwnPropertySymbols(e);l<r.length;l++)0>t.indexOf(r[l])&&Object.prototype.propertyIsEnumerable.call(e,r[l])&&(n[r[l]]=e[r[l]]);return n},d=function(e,t,n){var r="react-spinners-".concat(e,"-").concat(n);if("undefined"==typeof window||!window.document)return r;var l=document.createElement("style");document.head.appendChild(l);var a=l.sheet,u="\n    @keyframes ".concat(r," {\n      ").concat(t,"\n    }\n  ");return a&&a.insertRule(u,0),r}("ClipLoader","0% {transform: rotate(0deg) scale(1)} 50% {transform: rotate(180deg) scale(0.8)} 100% {transform: rotate(360deg) scale(1)}","clip");let h=function(e){var t=e.loading,n=e.color,l=void 0===n?"#000000":n,h=e.speedMultiplier,p=e.cssOverride,y=e.size,_=void 0===y?35:y,v=c(e,["loading","color","speedMultiplier","cssOverride","size"]),b=u({background:"transparent !important",width:a(_),height:a(_),borderRadius:"100%",border:"2px solid",borderTopColor:l,borderBottomColor:"transparent",borderLeftColor:l,borderRightColor:l,display:"inline-block",animation:"".concat(d," ").concat(.75/(void 0===h?1:h),"s 0s infinite linear"),animationFillMode:"both"},void 0===p?{}:p);return void 0===t||t?r.createElement("span",u({style:b},v)):null}},7577:(e,t,n)=>{"use strict";n.d(t,{yl:()=>l});var r=n(1450);function l(e){return()=>(function(e){if(!function(e,t=!0){if(e)return!1;let n=(0,r.NiT)().getTextContent();return t&&(n=n.trim()),""===n}(e,!1))return!1;let t=(0,r.NiT)().getChildren(),n=t.length;if(n>1)return!1;for(let e=0;e<n;e++){let n=t[e];if((0,r.Cyw)(n))return!1;if((0,r.ff4)(n)){if(!(0,r.bSg)(n)||0!==n.__indent)return!1;let t=n.getChildren(),l=t.length;for(let n=0;n<l;n++){let n=t[e];if(!(0,r.kFe)(n))return!1}}}return!0})(e)}},7582:(e,t,n)=>{"use strict";n.d(t,{a:()=>y});var r=n(3794),l=n(6636),a=n(6384),u=n(7577),c=n(6591);let d="undefined"!=typeof window&&void 0!==window.document&&void 0!==window.document.createElement?l.useLayoutEffect:l.useEffect,h=(0,l.forwardRef)(function({editor:e,ariaActiveDescendant:t,ariaAutoComplete:n,ariaControl
1s:r,ariaDescribedBy:u,ariaErrorMessage:c,ariaExpanded:h,ariaInvalid:p,ariaLabel:y,ariaLabelledBy:_,ariaMultiline:v,ariaOwns:b,ariaRequired:S,autoCapitalize:x,className:w,id:C,role:E="textbox",spellCheck:T=!0,style:k,tabIndex:N,"data-testid":O,...A},P){let[M,R]=(0,l.useState)(e.isEditable()),F=(0,l.useCallback)(t=>{t&&t.ownerDocument&&t.ownerDocument.defaultView?e.setRootElement(t):e.setRootElement(null)},[e]),D=(0,l.useMemo)(()=>(function(...e){return t=>{e.forEach(e=>{"function"==typeof e?e(t):null!=e&&(e.current=t)})}})(P,F),[F,P]);return d(()=>(R(e.isEditable()),e.registerEditableListener(e=>{R(e)})),[e]),(0,a.jsx)("div",{"aria-activedescendant":M?t:void 0,"aria-autocomplete":M?n:"none","aria-controls":M?r:void 0,"aria-describedby":u,...null!=c?{"aria-errormessage":c}:{},"aria-expanded":M&&"combobox"===E?!!h:void 0,...null!=p?{"aria-invalid":p}:{},"aria-label":y,"aria-labelledby":_,"aria-multiline":v,"aria-owns":M?b:void 0,"aria-readonly":!M||void 0,"aria-required":S,autoCapitalize:x,className:w,contentEditable:M,"data-testid":O,id:C,ref:D,role:M?E:void 0,spellCheck:T,style:k,tabIndex:N,...A})});function p(e){return e.getEditorState().read((0,u.yl)(e.isComposing()))}let y=(0,l.forwardRef)(function(e,t){let{placeholder:n,...l}=e,[u]=(0,r.DF)();return(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(h,{editor:u,...l,ref:t}),null!=n&&(0,a.jsx)(_,{editor:u,content:n})]})});function _({content:e,editor:t}){let n=function(e){let[t,n]=(0,l.useState)(()=>p(e));return d(()=>{function t(){n(p(e))}return t(),(0,c.Sd)(e.registerUpdateListener(()=>{t()}),e.registerEditableListener(()=>{t()}))},[e]),t}(t),[r,u]=(0,l.useState)(t.isEditable());if((0,l.useLayoutEffect)(()=>(u(t.isEditable()),t.registerEditableListener(e=>{u(e)})),[t]),!n)return null;let h=null;return"function"==typeof e?h=e(r):null!==e&&(h=e),null===h?null:(0,a.jsx)("div",{"aria-hidden":!0,children:h})}},8378:e=>{!function(){var t={675:function(e,t){"use strict";t.byteLength=function(e){var t=d(e),n=t[0],r=t[1];return(n+r)*3/4-r},t.toByteArray=function(e){var t,n,a=d(e),u=a[0],c=a[1],h=new l((u+c)*3/4-c),p=0,y=c>0?u-4:u;for(n=0;n<y;n+=4)t=r[e.charCodeAt(n)]<<18|r[e.charCodeAt(n+1)]<<12|r[e.charCodeAt(n+2)]<<6|r[e.charCodeAt(n+3)],h[p++]=t>>16&255,h[p++]=t>>8&255,h[p++]=255&t;return 2===c&&(t=r[e.charCodeAt(n)]<<2|r[e.charCodeAt(n+1)]>>4,h[p++]=255&t),1===c&&(t=r[e.charCodeAt(n)]<<10|r[e.charCodeAt(n+1)]<<4|r[e.charCodeAt(n+2)]>>2,h[p++]=t>>8&255,h[p++]=255&t),h},t.fromByteArray=function(e){for(var t,r=e.length,l=r%3,a=[],u=0,c=r-l;u<c;u+=16383)a.push(function(e,t,r){for(var l,a=[],u=t;u<r;u+=3)l=(e[u]<<16&0xff0000)+(e[u+1]<<8&65280)+(255&e[u+2]),a.push(n[l>>18&63]+n[l>>12&63]+n[l>>6&63]+n[63&l]);return a.join("")}(e,u,u+16383>c?c:u+16383));return 1===l?a.push(n[(t=e[r-1])>>2]+n[t<<4&63]+"=="):2===l&&a.push(n[(t=(e[r-2]<<8)+e[r-1])>>10]+n[t>>4&63]+n[t<<2&63]+"="),a.join("")};for(var n=[],r=[],l="undefined"!=typeof Uint8Array?Uint8Array:Array,a="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",u=0,c=a.length;u<c;++u)n[u]=a[u],r[a.charCodeAt(u)]=u;function d(e){var t=e.length;if(t%4>0)throw Error("Invalid string. Length must be a multiple of 4");var n=e.indexOf("=");-1===n&&(n=t);var r=n===t?0:4-n%4;return[n,r]}r[45]=62,r[95]=63},72:function(e,t,n){"use strict";var r=n(675),l=n(783),a="function"==typeof Symbol&&"function"==typeof Symbol.for?Symbol.for("nodejs.util.inspect.custom"):null;function u(e){if(e>0x7fffffff)throw RangeError('The value "'+e+'" is invalid for option "size"');var t=new Uint8Array(e);return Object.setPrototypeOf(t,c.prototype),t}function c(e,t,n){if("number"==typeof e){if("string"==typeof t)throw TypeError('The "string" argument must be of type string. Received type number');return p(e)}return d(e,t,n)}function d(e,t,n){if("string"==typeof e){var r=e,l=t;if(("string"!=typeof l||""===l)&&(l="utf8"),!c.isEncoding(l))throw TypeError("Unknown encoding: "+l);var a=0|v(r,l),d=u(a),h=d.write(r,l);return h!==a&&(d=d.slice(0,h)),d}if(ArrayBuffer.isView(e))return y(e);if(null==e)throw TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof e);if(D(e,ArrayBuffer)||e&&D(e.buffer,ArrayBuffer)||"undefined"!=typeof SharedArrayBuffer&&(D(e,SharedArrayBuffer)||e&&D(e.buffer,SharedArrayBuffer)))return function(e,t,n){var r;if(t<0||e.byteLength<t)throw RangeError('"offset" is outside of buffer bounds');if(e.byteLength<t+(n||0))throw RangeError('"length" is outside of buffer bounds');return Object.setPrototypeOf(r=void 0===t&&void 0===n?new Uint8Array(e):void 0===n?new Uint8Array(e,t):new Uint8Array(e,t,n),c.prototype),r}(e,t,n);if("number"==typeof e)throw TypeError('The "value" argument must not be of type number. Received type number');var p=e.valueOf&&e.valueOf();if(null!=p&&p!==e)return c.from(p,t,n);var b=function(e){if(c.isBuffer(e)){var t=0|_(e.length),n=u(t);return 0===n.length||e.copy(n,0,0,t),n}return void 0!==e.length?"number"!=typeof e.length||function(e){return e!=e}
vendor: 16,997 bytes, line 1
1(e.length)?u(0):y(e):"Buffer"===e.type&&Array.isArray(e.data)?y(e.data):void 0}(e);if(b)return b;if("undefined"!=typeof Symbol&&null!=Symbol.toPrimitive&&"function"==typeof e[Symbol.toPrimitive])return c.from(e[Symbol.toPrimitive]("string"),t,n);throw TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof e)}function h(e){if("number"!=typeof e)throw TypeError('"size" argument must be of type number');if(e<0)throw RangeError('The value "'+e+'" is invalid for option "size"')}function p(e){return h(e),u(e<0?0:0|_(e))}function y(e){for(var t=e.length<0?0:0|_(e.length),n=u(t),r=0;r<t;r+=1)n[r]=255&e[r];return n}t.Buffer=c,t.SlowBuffer=function(e){return+e!=e&&(e=0),c.alloc(+e)},t.INSPECT_MAX_BYTES=50,t.kMaxLength=0x7fffffff,c.TYPED_ARRAY_SUPPORT=function(){try{var e=new Uint8Array(1),t={foo:function(){return 42}};return Object.setPrototypeOf(t,Uint8Array.prototype),Object.setPrototypeOf(e,t),42===e.foo()}catch(e){return!1}}(),c.TYPED_ARRAY_SUPPORT||"undefined"==typeof console||"function"!=typeof console.error||console.error("This browser lacks typed array (Uint8Array) support which is required by `buffer` v5.x. Use `buffer` v4.x if you require old browser support."),Object.defineProperty(c.prototype,"parent",{enumerable:!0,get:function(){if(c.isBuffer(this))return this.buffer}}),Object.defineProperty(c.prototype,"offset",{enumerable:!0,get:function(){if(c.isBuffer(this))return this.byteOffset}}),c.poolSize=8192,c.from=function(e,t,n){return d(e,t,n)},Object.setPrototypeOf(c.prototype,Uint8Array.prototype),Object.setPrototypeOf(c,Uint8Array),c.alloc=function(e,t,n){return(h(e),e<=0)?u(e):void 0!==t?"string"==typeof n?u(e).fill(t,n):u(e).fill(t):u(e)},c.allocUnsafe=function(e){return p(e)},c.allocUnsafeSlow=function(e){return p(e)};function _(e){if(e>=0x7fffffff)throw RangeError("Attempt to allocate Buffer larger than maximum size: 0x7fffffff bytes");return 0|e}function v(e,t){if(c.isBuffer(e))return e.length;if(ArrayBuffer.isView(e)||D(e,ArrayBuffer))return e.byteLength;if("string"!=typeof e)throw TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof e);var n=e.length,r=arguments.length>2&&!0===arguments[2];if(!r&&0===n)return 0;for(var l=!1;;)switch(t){case"ascii":case"latin1":case"binary":return n;case"utf8":case"utf-8":return P(e).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*n;case"hex":return n>>>1;case"base64":return R(e).length;default:if(l)return r?-1:P(e).length;t=(""+t).toLowerCase(),l=!0}}function b(e,t,n){var l,a,u,c=!1;if((void 0===t||t<0)&&(t=0),t>this.length||((void 0===n||n>this.length)&&(n=this.length),n<=0||(n>>>=0)<=(t>>>=0)))return"";for(e||(e="utf8");;)switch(e){case"hex":return function(e,t,n){var r=e.length;(!t||t<0)&&(t=0),(!n||n<0||n>r)&&(n=r);for(var l="",a=t;a<n;++a)l+=L[e[a]];return l}(this,t,n);case"utf8":case"utf-8":return C(this,t,n);case"ascii":return function(e,t,n){var r="";n=Math.min(e.length,n);for(var l=t;l<n;++l)r+=String.fromCharCode(127&e[l]);return r}(this,t,n);case"latin1":case"binary":return function(e,t,n){var r="";n=Math.min(e.length,n);for(var l=t;l<n;++l)r+=String.fromCharCode(e[l]);return r}(this,t,n);case"base64":return l=this,a=t,u=n,0===a&&u===l.length?r.fromByteArray(l):r.fromByteArray(l.slice(a,u));case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return function(e,t,n){for(var r=e.slice(t,n),l="",a=0;a<r.length;a+=2)l+=String.fromCharCode(r[a]+256*r[a+1]);return l}(this,t,n);default:if(c)throw TypeError("Unknown encoding: "+e);e=(e+"").toLowerCase(),c=!0}}function S(e,t,n){var r=e[t];e[t]=e[n],e[n]=r}function x(e,t,n,r,l){var a;if(0===e.length)return -1;if("string"==typeof n?(r=n,n=0):n>0x7fffffff?n=0x7fffffff:n<-0x80000000&&(n=-0x80000000),(a=n*=1)!=a&&(n=l?0:e.length-1),n<0&&(n=e.length+n),n>=e.length)if(l)return -1;else n=e.length-1;else if(n<0)if(!l)return -1;else n=0;if("string"==typeof t&&(t=c.from(t,r)),c.isBuffer(t))return 0===t.length?-1:w(e,t,n,r,l);if("number"==typeof t){if(t&=255,"function"==typeof Uint8Array.prototype.indexOf)if(l)return Uint8Array.prototype.indexOf.call(e,t,n);else return Uint8Array.prototype.lastIndexOf.call(e,t,n);return w(e,[t],n,r,l)}throw TypeError("val must be string, number or Buffer")}function w(e,t,n,r,l){var a,u=1,c=e.length,d=t.length;if(void 0!==r&&("ucs2"===(r=String(r).toLowerCase())||"ucs-2"===r||"utf16le"===r||"utf-16le"===r)){if(e.length<2||t.length<2)return -1;u=2,c/=2,d/=2,n/=2}function h(e,t){return 1===u?e[t]:e.readUInt16BE(t*u)}if(l){var p=-1;for(a=n;a<c;a++)if(h(e,a)===h(t,-1===p?0:a-p)){if(-1===p&&(p=a),a-p+1===d)return p*u}else -1!==p&&(a-=a-p),p=-1}else for(n+d>c&&(n=c-d),a=n;a>=0;a--){for(var y=!0,_=0;_<d;_++)if(h(e,a+_)!==h(t,_)){y=!1;break}if(y)return a}return -1}c.isBuffer=function(e){return null!=e&&!0===e._isBuffer&&e!==c.prototype},c.compare=function(e,t){if(D(e,Uint8Array)&&(e=c.from(e,e.offset,e.byteLength)),D(t,Uint8Array)&&(t=c.from(t,t.offset,t.byteLength)),!c.isBuffer(e)||!c.isBuffer(t))throw TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(e===t)return 0;for(var n=e.length,r=t.length,l=0,a=Math.min(n,r);l<a;++l)if(e[l]!==t[l]){n=e[l],r=t[l];break}return n<r?-1:+(r<n)},c.isEncoding=function(e){switch(String(e).toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"latin1":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return!0;default:return!1}},c.concat=function(e,t){if(!Array.isArray(e))throw TypeError('"list" argument must be an Array of Buffers');if(0===e.length)return c.alloc(0);if(void 0===t)for(n=0,t=0;n<e.length;++n)t+=e[n].length;var n,r=c.allocUnsafe(t),l=0;for(n=0;n<e.length;++n){var a=e[n];if(D(a,Uint8Array)&&(a=c.from(a)),!c.isBuffer(a))throw TypeError('"list" argument must be an Array of Buffers');a.copy(r,l),l+=a.length}return r},c.byteLength=v,c.prototype._isBuffer=!0,c.prototype.swap16=function(){var e=this.length;if(e%2!=0)throw RangeError("Buffer size must be a multiple of 16-bits");for(var t=0;t<e;t+=2)S(this,t,t+1);return this},c.prototype.swap32=function(){var e=this.length;if(e%4!=0)throw RangeError("Buffer size must be a multiple of 32-bits");for(var t=0;t<e;t+=4)S(this,t,t+3),S(this,t+1,t+2);return this},c.prototype.swap64=function(){var e=this.length;if(e%8!=0)throw RangeError("Buffer size must be a multiple of 64-bits");for(var t=0;t<e;t+=8)S(this,t,t+7),S(this,t+1,t+6),S(this,t+2,t+5),S(this,t+3,t+4);return this},c.prototype.toString=function(){var e=this.length;return 0===e?"":0==arguments.length?C(this,0,e):b.apply(this,arguments)},c.prototype.toLocaleString=c.prototype.toString,c.prototype.equals=function(e){if(!c.isBuffer(e))throw TypeError("Argument must be a Buffer");return this===e||0===c.compare(this,e)},c.prototype.inspect=function(){var e="",n=t.INSPECT_MAX_BYTES;return e=this.toString("hex",0,n).replace(/(.{2})/g,"$1 ").trim(),this.length>n&&(e+=" ... "),"<Buffer "+e+">"},a&&(c.prototype[a]=c.prototype.inspect),c.prototype.compare=function(e,t,n,r,l){if(D(e,Uint8Array)&&(e=c.from(e,e.offset,e.byteLength)),!c.isBuffer(e))throw TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof e);if(void 0===t&&(t=0),void 0===n&&(n=e?e.length:0),void 0===r&&(r=0),void 0===l&&(l=this.length),t<0||n>e.length||r<0||l>this.length)throw RangeError("out of range index");if(r>=l&&t>=n)return 0;if(r>=l)return -1;if(t>=n)return 1;if(t>>>=0,n>>>=0,r>>>=0,l>>>=0,this===e)return 0;for(var a=l-r,u=n-t,d=Math.min(a,u),h=this.slice(r,l),p=e.slice(t,n),y=0;y<d;++y)if(h[y]!==p[y]){a=h[y],u=p[y];break}return a<u?-1:+(u<a)},c.prototype.includes=function(e,t,n){return -1!==this.indexOf(e,t,n)},c.prototype.indexOf=function(e,t,n){return x(this,e,t,n,!0)},c.prototype.lastIndexOf=function(e,t,n){return x(this,e,t,n,!1)};function C(e,t,n){n=Math.min(e.length,n);for(var r=[],l=t;l<n;){var a,u,c,d,h=e[l],p=null,y=h>239?4:h>223?3:h>191?2:1;if(l+y<=n)switch(y){case 1:h<128&&(p=h);break;case 2:(192&(a=e[l+1]))==128&&(d=(31&h)<<6|63&a)>127&&(p=d);break;case 3:a=e[l+1],u=e[l+2],(192&a)==128&&(192&u)==128&&(d=(15&h)<<12|(63&a)<<6|63&u)>2047&&(d<55296||d>57343)&&(p=d);break;case 4:a=e[l+1],u=e[l+2],c=e[l+3],(192&a)==128&&(192&u)==128&&(192&c)==128&&(d=(15&h)<<18|(63&a)<<12|(63&u)<<6|63&c)>65535&&d<1114112&&(p=d)}null===p?(p=65533,y=1):p>65535&&(p-=65536,r.push(p>>>10&1023|55296),p=56320|1023&p),r.push(p),l+=y}var _=r,v=_.length;if(v<=4096)return String.fromCharCode.apply(String,_);for(var b="",S=0;S<v;)b+=String.fromCharCode.apply(String,_.slice(S,S+=4096));return b}function E(e,t,n){if(e%1!=0||e<0)throw RangeError("offset is not uint");if(e+t>n)throw RangeError("Trying to access beyond buffer length")}function T(e,t,n,r,l,a){if(!c.isBuffer(e))throw TypeError('"buffer" argument must be a Buffer instance');if(t>l||t<a)throw RangeError('"value" argument is out of bounds');if(n+r>e.length)throw RangeError("Index out of range")}function k(e,t,n,r,l,a){if(n+r>e.length||n<0)throw RangeError("Index out of range")}function N(e,t,n,r,a){return t*=1,n>>>=0,a||k(e,t,n,4,34028234663852886e22,-34028234663852886e22),l.write(e,t,n,r,23,4),n+4}function O(e,t,n,r,a){return t*=1,n>>>=0,a||k(e,t,n,8,17976931348623157e292,-17976931348623157e292),l.write(e,t,n,r,52,8),n+8}c.prototype.write=function(e,t,n,r){if(void 0===t)r="utf8",n=this.length,t=0;else if(void 0===n&&"string"==typeof t)r=t,n=this.length,t=0;else if(isFinite(t))t>>>=0,isFinite(n)?(n>>>=0,void 0===r&&(r="utf8")):(r=n,n=void 0);else throw Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");var l,a,u,c,d,h,p,y,_=this.length-t;if((void 0===n||n>_)&&(n=_),e.length>0&&(n<0||t<0)||t>this.length)throw RangeError("Attempt to write outside buffer bounds");r||(r="utf8");for(var v=!1;;)switch(r){case"hex":return function(e,t,n,r){n=Number(n)||0;var l=e.length-n;r?(r=Number(r))>l&&(r=l):r=l;var a=t.length;r>a/2&&(r=a/2);for(var u=0;u<r;++u){var c,d=parseInt(t.substr(2*u,2),16);if((c=d)!=c)break;e[n+u]=d}return u}(this,e,t,n);case"utf8":case"utf-8":return l=t,a=n,F(P(e,this.length-l),this,l,a);case"ascii":return u=t,c=n,F(M(e),this,u,c);case"latin1":case"binary":return function(e,t,n,r){return F(M(t),e,n,r)}(this,e,t,n);case"base64":return d=t,h=n,F(R(e),this,d,h);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return p=t,y=n,F(function(e,t){for(var n,r,l=[],a=0;a<e.length&&!((t-=2)<0);++a)r=(n=e.charCodeAt(a))>>8,l.push(n%256),l.push(r);return l}(e,this.length-p),this,p,y);default:if(v)throw TypeError("Unknown encoding: "+r);r=(""+r).toLowerCase(),v=!0}},c.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}},c.prototype.slice=function(e,t){var n=this.length;e=~~e,t=void 0===t?n:~~t,e<0?(e+=n)<0&&(e=0):e>n&&(e=n),t<0?(t+=n)<0&&(t=0):t>n&&(t=n),t<e&&(t=e);var r=this.subarray(e,t);return Object.setPrototypeOf(r,c.prototype),r},c.prototype.readUIntLE=function(e,t,n){e>>>=0,t>>>=0,n||E(e,t,this.length);for(var r=this[e],l=1,a=0;++a<t&&(l*=256);)r+=this[e+a]*l;return r},c.prototype.readUIntBE=function(e,t,n){e>>>=0,t>>>=0,n||E(e,t,this.length);for(var r=this[e+--t],l=1;t>0&&(l*=256);)r+=this[e+--t]*l;return r},c.prototype.readUInt8=function(e,t){return e>>>=0,t||E(e,1,this.length),this[e]},c.prototype.readUInt16LE=function(e,t){return e>>>=0,t||E(e,2,this.length),this[e]|this[e+1]<<8},c.prototype.readUInt16BE=function(e,t){return e>>>=0,t||E(e,2,this.length),this[e]<<8|this[e+1]},c.prototype.readUInt32LE=function(e,t){return e>>>=0,t||E(e,4,this.length),(this[e]|this[e+1]<<8|this[e+2]<<16)+0x1000000*this[e+3]},c.prototype.readUInt32BE=function(e,t){return e>>>=0,t||E(e,4,this.length),0x1000000*this[e]+(this[e+1]<<16|this[e+2]<<8|this[e+3])},c.prototype.readIntLE=function(e,t,n){e>>>=0,t>>>=0,n||E(e,t,this.length);for(var r=this[e],l=1,a=0;++a<t&&(l*=256);)r+=this[e+a]*l;return r>=(l*=128)&&(r-=Math.pow(2,8*t)),r},c.prototype.readIntBE=function(e,t,n){e>>>=0,t>>>=0,n||E(e,t,this.length);for(var r=t,l=1,a=this[e+--r];r>0&&(l*=256);)a+=this[e+--r]*l;return a>=(l*=128)&&(a-=Math.pow(2,8*t)),a},c.prototype.readInt8=function(e,t){return(e>>>=0,t||E(e,1,this.length),128&this[e])?-((255-this[e]+1)*1):this[e]},c.prototype.readInt16LE=function(e,t){e>>>=0,t||E(e,2,this.length);var n=this[e]|this[e+1]<<8;return 32768&n?0xffff0000|n:n},c.prototype.readInt16BE=function(e,t){e>>>=0,t||E(e,2,this.length);var n=this[e+1]|this[e]<<8;return 32768&n?0xffff0000|n:n},c.prototype.readInt32LE=function(e,t){return e>>>=0,t||E(e,4,this.length),this[e]|this[e+1]<<8|this[e+2]<<16|this[e+3]<<24},c.prototype.readInt32BE=function(e,t){return e>>>=0,t||E(e,4,this.length),this[e]<<24|this[e+1]<<16|this[e+2]<<8|this[e+3]},c.prototype.readFloatLE=function(e,t){return e>>>=0,t||E(e,4,this.length),l.read(this,e,!0,23,4)},c.prototype.readFloatBE=function(e,t){return e>>>=0,t||E(e,4,this.length),l.read(this,e,!1,23,4)},c.prototype.readDoubleLE=function(e,t){return e>>>=0,t||E(e,8,this.length),l.read(this,e,!0,52,8)},c.prototype.readDoubleBE=function(e,t){return e>>>=0,t||E(e,8,this.length),l.read(this,e,!1,52,8)},c.prototype.writeUIntLE=function(e,t,n,r){if(e*=1,t>>>=0,n>>>=0,!r){var l=Math.pow(2,8*n)-1;T(this,e,t,n,l,0)}var a=1,u=0;for(this[t]=255&e;++u<n&&(a*=256);)this[t+u]=e/a&255;return t+n},c.prototype.writeUIntBE=function(e,t,n,r){if(e*=1,t>>>=0,n>>>=0,!r){var l=Math.pow(2,8*n)-1;T(this,e,t,n,l,0)}var a=n-1,u=1;for(this[t+a]=255&e;--a>=0&&(u*=256);)this[t+a]=e/u&255;return t+n},c.prototype.writeUInt8=function(e,t,n){return e*=1,t>>>=0,n||T(this,e,t,1,255,0),this[t]=255&e,t+1},c.prototype.writeUInt16LE=function(e,t,n){return e*=1,t>>>=0,n||T(this,e,t,2,65535,0),this[t]=255&e,this[t+1]=e>>>8,t+2},c.prototype.writeUInt16BE=function(e,t,n){return e*=1,t>>>=0,n||T(this,e,t,2,65535,0),this[t]=e>>>8,this[t+1]=255&e,t+2},c.prototype.writeUInt32LE=function(e,t,n){return e*=1,t>>>=0,n||T(this,e,t,4,0xffffffff,0),this[t+3]=e>>>24,this[t+2]=e>>>16,this[t+1]=e>>>8,this[t]=255&e,t+4},c.prototype.writeUInt32BE=function(e,t,n){return e*=1,t>>>=0,n||T(this,e,t,4,0xffffffff,0),this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e,t+4},c.prototype.writeIntLE=function(e,t,n,r){if(e*=1,t>>>=0,!r){var l=Math.pow(2,8*n-1);T(this,e,t,n,l-1,-l)}var a=0,u=1,c=0;for(this[t]=255&e;++a<n&&(u*=256);)e<0&&0===c&&0!==this[t+a-1]&&(c=1),this[t+a]=(e/u|0)-c&255;return t+n},c.prototype.writeIntBE=function(e,t,n,r){if(e*=1,t>>>=0,!r){var l=Math.pow(2,8*n-1);T(this,e,t,n,l-1,-l)}var a=n-1,u=1,c=0;for(this[t+a]=255&e;--a>=0&&(u*=256);)e<0&&0===c&&0!==this[t+a+1]&&(c=1),this[t+a]=(e/u|0)-c&255;return t+n},c.prototype.writeInt8=function(e,t,n){return e*=1,t>>>=0,n||T(this,e,t,1,127,-128),e<0&&(e=255+e+1),this[t]=255&e,t+1},c.prototype.writeInt16LE=function(e,t,n){return e*=1,t>>>=0,n||T(this,e,t,2,32767,-32768),this[t]=255&e,this[t+1]=e>>>8,t+2},c.prototype.writeInt16BE=function(e,t,n){return e*=1,t>>>=0,n||T(this,e,t,2,32767,-32768),this[t]=e>>>8,this[t+1]=255&e,t+2},c.prototype.writeInt32LE=function(e,t,n){return e*=1,t>>>=0,n||T(this,e,t,4,0x7fffffff,-0x80000000),this[t]=255&e,this[t+1]=e>>>8,this[t+2]=e>>>16,this[t+3]=e>>>24,t+4},c.prototype.writeInt32BE=function(e,t,n){return e*=1,t>>>=0,n||T(this,e,t,4,0x7fffffff,-0x80000000),e<0&&(e=0xffffffff+e+1),this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e,t+4},c.prototype.writeFloatLE=function(e,t,n){return N(this,e,t,!0,n)},c.prototype.writeFloatBE=function(e,t,n){return N(this,e,t,!1,n)},c.prototype.writeDoubleLE=function(e,t,n){return O(this,e,t,!0,n)},c.prototype.writeDoubleBE=function(e,t,n){return O(this,e,t,!1,n)},c.prototype.copy=function(e,t,n,r){if(!c.isBuffer(e))throw TypeError("argument should be a Buffer");if(n||(n=0),r||0===r||(r=this.length),t>=e.length&&(t=e.length),t||(t=0),r>0&&r<n&&(r=n),r===n||0===e.length||0===this.length)return 0;if(t<0)throw RangeError("targetStart out of bounds");if(n<0||n>=this.length)throw RangeError("Index out of range");if(r<0)throw RangeError("sourceEnd out of bounds");r>this.length&&(r=this.length),e.length-t<r-n&&(r=e.length-t+n);var l=r-n;if(this===e&&"function"==typeof Uint8Array.prototype.copyWithin)this.copyWithin(t,n,r);else if(this===e&&n<t&&t<r)for(var a=l-1;a>=0;--a)e[a+t]=this[a+n];else Uint8Array.prototype.set.call(e,this.subarray(n,r),t);return l},c.prototype.fill=function(e,t,n,r){if("string"==typeof e){if("string"==typeof t?(r=t,t=0,n=this.length):"string"==typeof n&&(r=n,n=this.length),void 0!==r&&"string"!=typeof r)throw TypeError("encoding must be a string");if("string"==typeof r&&!c.isEncoding(r))throw TypeError("Unknown encoding: "+r);if(1===e.length){var l,a=e.charCodeAt(0);("utf8"===r&&a<128||"latin1"===r)&&(e=a)}}else"number"==typeof e?e&=255:"boolean"==typeof e&&(e=Number(e));if(t<0||this.length<t||this.length<n)throw RangeError("Out of range index");if(n<=t)return this;if(t>>>=0,n=void 0===n?this.length:n>>>0,e||(e=0),"number"==typeof e)for(l=t;l<n;++l)this[l]=e;else{var u=c.isBuffer(e)?e:c.from(e,r),d=u.length;
1if(0===d)throw TypeError('The value "'+e+'" is invalid for argument "value"');for(l=0;l<n-t;++l)this[l+t]=u[l%d]}return this};var A=/[^+/0-9A-Za-z-_]/g;function P(e,t){t=t||1/0;for(var n,r=e.length,l=null,a=[],u=0;u<r;++u){if((n=e.charCodeAt(u))>55295&&n<57344){if(!l){if(n>56319||u+1===r){(t-=3)>-1&&a.push(239,191,189);continue}l=n;continue}if(n<56320){(t-=3)>-1&&a.push(239,191,189),l=n;continue}n=(l-55296<<10|n-56320)+65536}else l&&(t-=3)>-1&&a.push(239,191,189);if(l=null,n<128){if((t-=1)<0)break;a.push(n)}else if(n<2048){if((t-=2)<0)break;a.push(n>>6|192,63&n|128)}else if(n<65536){if((t-=3)<0)break;a.push(n>>12|224,n>>6&63|128,63&n|128)}else if(n<1114112){if((t-=4)<0)break;a.push(n>>18|240,n>>12&63|128,n>>6&63|128,63&n|128)}else throw Error("Invalid code point")}return a}function M(e){for(var t=[],n=0;n<e.length;++n)t.push(255&e.charCodeAt(n));return t}function R(e){return r.toByteArray(function(e){if((e=(e=e.split("=")[0]).trim().replace(A,"")).length<2)return"";for(;e.length%4!=0;)e+="=";return e}(e))}function F(e,t,n,r){for(var l=0;l<r&&!(l+n>=t.length)&&!(l>=e.length);++l)t[l+n]=e[l];return l}function D(e,t){return e instanceof t||null!=e&&null!=e.constructor&&null!=e.constructor.name&&e.constructor.name===t.name}var L=function(){for(var e="0123456789abcdef",t=Array(256),n=0;n<16;++n)for(var r=16*n,l=0;l<16;++l)t[r+l]=e[n]+e[l];return t}()},783:function(e,t){t.read=function(e,t,n,r,l){var a,u,c=8*l-r-1,d=(1<<c)-1,h=d>>1,p=-7,y=n?l-1:0,_=n?-1:1,v=e[t+y];for(y+=_,a=v&(1<<-p)-1,v>>=-p,p+=c;p>0;a=256*a+e[t+y],y+=_,p-=8);for(u=a&(1<<-p)-1,a>>=-p,p+=r;p>0;u=256*u+e[t+y],y+=_,p-=8);if(0===a)a=1-h;else{if(a===d)return u?NaN:1/0*(v?-1:1);u+=Math.pow(2,r),a-=h}return(v?-1:1)*u*Math.pow(2,a-r)},t.write=function(e,t,n,r,l,a){var u,c,d,h=8*a-l-1,p=(1<<h)-1,y=p>>1,_=5960464477539062e-23*(23===l),v=r?0:a-1,b=r?1:-1,S=+(t<0||0===t&&1/t<0);for(isNaN(t=Math.abs(t))||t===1/0?(c=+!!isNaN(t),u=p):(u=Math.floor(Math.log(t)/Math.LN2),t*(d=Math.pow(2,-u))<1&&(u--,d*=2),u+y>=1?t+=_/d:t+=_*Math.pow(2,1-y),t*d>=2&&(u++,d/=2),u+y>=p?(c=0,u=p):u+y>=1?(c=(t*d-1)*Math.pow(2,l),u+=y):(c=t*Math.pow(2,y-1)*Math.pow(2,l),u=0));l>=8;e[n+v]=255&c,v+=b,c/=256,l-=8);for(u=u<<l|c,h+=l;h>0;e[n+v]=255&u,v+=b,u/=256,h-=8);e[n+v-b]|=128*S}}},n={};function r(e){var l=n[e];if(void 0!==l)return l.exports;var a=n[e]={exports:{}},u=!0;try{t[e](a,a.exports,r),u=!1}finally{u&&delete n[e]}return a.exports}r.ab="//",e.exports=r(72)}()},8554:()=>{},8650:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),!function(e,t){for(var n in t)Object.defineProperty(e,n,{enumerable:!0,get:t[n]})}(t,{default:function(){return d},getImageProps:function(){return c}});let r=n(1563),l=n(7778),a=n(6378),u=r._(n(6853));function c(e){let{props:t}=(0,l.getImgProps)(e,{defaultLoader:u.default,imgConf:{deviceSizes:[640,750,828,1080,1200,1920,2048,3840],imageSizes:[16,32,48,64,96,128,256,384],path:"/_next/image",loader:"default",dangerouslyAllowSVG:!1,unoptimized:!1}});for(let[e,n]of Object.entries(t))void 0===n&&delete t[e];return{props:t}}let d=a.Image},8669:(e,t,n)=>{"use strict";n.d(t,{G:()=>d});var r=n(3794),l=n(6591),a=n(1450);function u(e){e.undoStack=[],e.redoStack=[],e.current=null}var c=n(6636);function d({delay:e,externalHistoryState:t}){let[n]=(0,r.DF)();return function(e,t,n=1e3){let r=(0,c.useMemo)(()=>t||{current:null,redoStack:[],undoStack:[]},[t]);(0,c.useEffect)(()=>(function(e,t,n){let r,c,d=(r=Date.now(),c=0,(t,l,u,d,h,p)=>{let y=Date.now();if(p.has(a.n0X))return c=0,r=y,2;let _=function(e,t,n,r,l){if(null===e||0===n.size&&0===r.size&&!l)return 0;let u=t._selection,c=e._selection;if(l)return 1;if(!((0,a.I2P)(u)&&(0,a.I2P)(c)&&c.isCollapsed()&&u.isCollapsed()))return 0;let d=function(e,t,n){let r=e._nodeMap,l=[];for(let e of t){let t=r.get(e);void 0!==t&&l.push(t)}for(let[e,t]of n){if(!t)continue;let n=r.get(e);void 0===n||(0,a.hVZ)(n)||l.push(n)}return l}(t,n,r);if(0===d.length)return 0;if(d.length>1){let n=t._nodeMap,r=n.get(u.anchor.key),l=n.get(c.anchor.key);return r&&l&&!e._nodeMap.has(r.__key)&&(0,a.kFe)(r)&&1===r.__text.length&&1===u.anchor.offset?2:0}let h=d[0],p=e._nodeMap.get(h.__key);if(!(0,a.kFe)(p)||!(0,a.kFe)(h)||p.__mode!==h.__mode)return 0;let y=p.__text,_=h.__text;if(y===_)return 0;let v=u.anchor,b=c.anchor;if(v.key!==b.key||"text"!==v.type)return 0;let S=v.offset,x=b.offset,w=_.length-y.length;return 1===w&&x===S-1?2:-1===w&&x===S+1?3:4*(-1===w&&x===S)}(t,l,d,h,e.isComposing()),v=(()=>{let v=null===u||u.editor===e,b=p.has(a.bMH);if(!b&&v&&p.has(a.T40))return 0;if(null===t)return 1;let S=l._selection;return d.size>0||h.size>0?!1===b&&0!==_&&_===c&&y<r+n&&v||1===d.size&&function(e,t,n){let r=t._nodeMap.get(e),l=n._nodeMap.get(e),u=t._selection,c=n._selection;return!((0,a.I2P)(u)&&(0,a.I2P)(c)&&"element"===u.anchor.type&&"element"===u.focus.type&&"text"===c.anch
1or.type&&"text"===c.focus.type||!(0,a.kFe)(r)||!(0,a.kFe)(l)||r.__parent!==l.__parent)&&JSON.stringify(t.read(()=>r.exportJSON()))===JSON.stringify(n.read(()=>l.exportJSON()))}(Array.from(d)[0],t,l)?0:1:2*(null===S)})();return r=y,c=_,v});return(0,l.Sd)(e.registerCommand(a.ZKf,()=>((function(e,t){let n=t.redoStack,r=t.undoStack;if(0!==r.length){let l=t.current,u=r.pop();null!==l&&(n.push(l),e.dispatchCommand(a.WWb,!0)),0===r.length&&e.dispatchCommand(a.KfJ,!1),t.current=u||null,u&&u.editor.setEditorState(u.editorState,{tag:a.n0X})}})(e,t),!0),a.jZM),e.registerCommand(a.V30,()=>((function(e,t){let n=t.redoStack,r=t.undoStack;if(0!==n.length){let l=t.current;null!==l&&(r.push(l),e.dispatchCommand(a.KfJ,!0));let u=n.pop();0===n.length&&e.dispatchCommand(a.WWb,!1),t.current=u||null,u&&u.editor.setEditorState(u.editorState,{tag:a.n0X})}})(e,t),!0),a.jZM),e.registerCommand(a.SKc,()=>(u(t),!1),a.jZM),e.registerCommand(a.t5V,()=>(u(t),e.dispatchCommand(a.WWb,!1),e.dispatchCommand(a.KfJ,!1),!0),a.jZM),e.registerUpdateListener(({editorState:n,prevEditorState:r,dirtyLeaves:l,dirtyElements:u,tags:c})=>{let h=t.current,p=t.redoStack,y=t.undoStack,_=null===h?null:h.editorState;if(null!==h&&n===_)return;let v=d(r,n,h,l,u,c);if(1===v)0!==p.length&&(t.redoStack=[],e.dispatchCommand(a.WWb,!1)),null!==h&&(y.push({...h}),e.dispatchCommand(a.KfJ,!0));else if(2===v)return;t.current={editor:e,editorState:n}}))})(e,r,n),[n,e,r])}(n,t,e),null}},8989:(e,t,n)=>{"use strict";var r=n(7946);n(8554);var l=n(6636),a=function(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}(l),u=void 0!==r&&r.env&&!0,c=function(e){return"[object String]"===Object.prototype.toString.call(e)},d=function(){function e(e){var t=void 0===e?{}:e,n=t.name,r=void 0===n?"stylesheet":n,l=t.optimizeForSpeed,a=void 0===l?u:l;h(c(r),"`name` must be a string"),this._name=r,this._deletedRulePlaceholder="#"+r+"-deleted-rule____{}",h("boolean"==typeof a,"`optimizeForSpeed` must be a boolean"),this._optimizeForSpeed=a,this._serverSheet=void 0,this._tags=[],this._injected=!1,this._rulesCount=0;var d="undefined"!=typeof window&&document.querySelector('meta[property="csp-nonce"]');this._nonce=d?d.getAttribute("content"):null}var t,n=e.prototype;return n.setOptimizeForSpeed=function(e){h("boolean"==typeof e,"`setOptimizeForSpeed` accepts a boolean"),h(0===this._rulesCount,"optimizeForSpeed cannot be when rules have already been inserted"),this.flush(),this._optimizeForSpeed=e,this.inject()},n.isOptimizeForSpeed=function(){return this._optimizeForSpeed},n.inject=function(){var e=this;if(h(!this._injected,"sheet already injected"),this._injected=!0,"undefined"!=typeof window&&this._optimizeForSpeed){this._tags[0]=this.makeStyleTag(this._name),this._optimizeForSpeed="insertRule"in this.getSheet(),this._optimizeForSpeed||(u||console.warn("StyleSheet: optimizeForSpeed mode not supported falling back to standard mode."),this.flush(),this._injected=!0);return}this._serverSheet={cssRules:[],insertRule:function(t,n){return"number"==typeof n?e._serverSheet.cssRules[n]={cssText:t}:e._serverSheet.cssRules.push({cssText:t}),n},deleteRule:function(t){e._serverSheet.cssRules[t]=null}}},n.getSheetForTag=function(e){if(e.sheet)return e.sheet;for(var t=0;t<document.styleSheets.length;t++)if(document.styleSheets[t].ownerNode===e)return document.styleSheets[t]},n.getSheet=function(){return this.getSheetForTag(this._tags[this._tags.length-1])},n.insertRule=function(e,t){if(h(c(e),"`insertRule` accepts only strings"),"undefined"==typeof window)return"number"!=typeof t&&(t=this._serverSheet.cssRules.length),this._serverSheet.insertRule(e,t),this._rulesCount++;if(this._optimizeForSpeed){var n=this.getSheet();"number"!=typeof t&&(t=n.cssRules.length);try{n.insertRule(e,t)}catch(t){return u||console.warn("StyleSheet: illegal rule: \n\n"+e+"\n\nSee https://stackoverflow.com/q/20007992 for more info"),-1}}else{var r=this._tags[t];this._tags.push(this.makeStyleTag(this._name,e,r))}return this._rulesCount++},n.replaceRule=function(e,t){if(this._optimizeForSpeed||"undefined"==typeof window){var n="undefined"!=typeof window?this.get
1Sheet():this._serverSheet;if(t.trim()||(t=this._deletedRulePlaceholder),!n.cssRules[e])return e;n.deleteRule(e);try{n.insertRule(t,e)}catch(r){u||console.warn("StyleSheet: illegal rule: \n\n"+t+"\n\nSee https://stackoverflow.com/q/20007992 for more info"),n.insertRule(this._deletedRulePlaceholder,e)}}else{var r=this._tags[e];h(r,"old rule at index `"+e+"` not found"),r.textContent=t}return e},n.deleteRule=function(e){if("undefined"==typeof window)return void this._serverSheet.deleteRule(e);if(this._optimizeForSpeed)this.replaceRule(e,"");else{var t=this._tags[e];h(t,"rule at index `"+e+"` not found"),t.parentNode.removeChild(t),this._tags[e]=null}},n.flush=function(){this._injected=!1,this._rulesCount=0,"undefined"!=typeof window?(this._tags.forEach(function(e){return e&&e.parentNode.removeChild(e)}),this._tags=[]):this._serverSheet.cssRules=[]},n.cssRules=function(){var e=this;return"undefined"==typeof window?this._serverSheet.cssRules:this._tags.reduce(function(t,n){return n?t=t.concat(Array.prototype.map.call(e.getSheetForTag(n).cssRules,function(t){return t.cssText===e._deletedRulePlaceholder?null:t})):t.push(null),t},[])},n.makeStyleTag=function(e,t,n){t&&h(c(t),"makeStyleTag accepts only strings as second parameter");var r=document.createElement("style");this._nonce&&r.setAttribute("nonce",this._nonce),r.type="text/css",r.setAttribute("data-"+e,""),t&&r.appendChild(document.createTextNode(t));var l=document.head||document.getElementsByTagName("head")[0];return n?l.insertBefore(r,n):l.appendChild(r),r},t=[{key:"length",get:function(){return this._rulesCount}}],function(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}(e.prototype,t),e}();function h(e,t){if(!e)throw Error("StyleSheet: "+t+".")}var p=function(e){for(var t=5381,n=e.length;n;)t=33*t^e.charCodeAt(--n);return t>>>0},y={};function _(e,t){if(!t)return"jsx-"+e;var n=String(t),r=e+n;return y[r]||(y[r]="jsx-"+p(e+"-"+n)),y[r]}function v(e,t){"undefined"==typeof window&&(t=t.replace(/\/style/gi,"\\/style"));var n=e+t;return y[n]||(y[n]=t.replace(/__jsx-style-dynamic-selector/g,e)),y[n]}var b=function(){function e(e){var t=void 0===e?{}:e,n=t.styleSheet,r=void 0===n?null:n,l=t.optimizeForSpeed,a=void 0!==l&&l;this._sheet=r||new d({name:"styled-jsx",optimizeForSpeed:a}),this._sheet.inject(),r&&"boolean"==typeof a&&(this._sheet.setOptimizeForSpeed(a),this._optimizeForSpeed=this._sheet.isOptimizeForSpeed()),this._fromServer=void 0,this._indices={},this._instancesCounts={}}var t=e.prototype;return t.add=function(e){var t=this;void 0===this._optimizeForSpeed&&(this._optimizeForSpeed=Array.isArray(e.children),this._sheet.setOptimizeForSpeed(this._optimizeForSpeed),this._optimizeForSpeed=this._sheet.isOptimizeForSpeed()),"undefined"==typeof window||this._fromServer||(this._fromServer=this.selectFromServer(),this._instancesCounts=Object.keys(this._fromServer).reduce(function(e,t){return e[t]=0,e},{}));var n=this.getIdAndRules(e),r=n.styleId,l=n.rules;if(r in this._instancesCounts){this._instancesCounts[r]+=1;return}var a=l.map(function(e){return t._sheet.insertRule(e)}).filter(function(e){return -1!==e});this._indices[r]=a,this._instancesCounts[r]=1},t.remove=function(e){var t=this,n=this.getIdAndRules(e).styleId;if(function(e,t){if(!e)throw Error("StyleSheetRegistry: "+t+".")}(n in this._instancesCounts,"styleId: `"+n+"` not found"),this._instancesCounts[n]-=1,this._instancesCounts[n]<1){var r=this._fromServer&&this._fromServer[n];r?(r.parentNode.removeChild(r),delete this._fromServer[n]):(this._indices[n].forEach(function(e){return t._sheet.deleteRule(e)}),delete this._indices[n]),delete this._instancesCounts[n]}},t.update=function(e,t){this.add(t),this.remove(e)},t.flush=function(){this._sheet.flush(),this._sheet.inject(),this._fromServer=void 0,this._indices={},this._instancesCounts={}},t.cssRules=function(){var e=this,t=this._fromServer?Object.keys(this._fromServer).map(function(t){return[t,e._fromServer[t]]}):[],n=this._sheet.cssRules();return t.concat(Object.keys(this._indices).map(function(t){return[t,e._indices[t].map(function(e){return n[e].cssText}).join(e._optimizeForSpeed?"":"\n")]}).filter(function(e){return!!e[1]}))},t.styles=function(e){var t,n;return t=this.cssRules(),void 0===(n=e)&&(n={}),t.map(function(e){var t=e[0],r=e[1];return a.default.createElement("style",{id:"__"+t,key:"__"+t,nonce:n.nonce?n.nonce:void 0,dangerouslySetInnerHTML:{__html:r}}
1)})},t.getIdAndRules=function(e){var t=e.children,n=e.dynamic,r=e.id;if(n){var l=_(r,n);return{styleId:l,rules:Array.isArray(t)?t.map(function(e){return v(l,e)}):[v(l,t)]}}return{styleId:_(r),rules:Array.isArray(t)?t:[t]}},t.selectFromServer=function(){return Array.prototype.slice.call(document.querySelectorAll('[id^="__jsx-"]')).reduce(function(e,t){return e[t.id.slice(2)]=t,e},{})},e}(),S=l.createContext(null);S.displayName="StyleSheetContext";var x=a.default.useInsertionEffect||a.default.useLayoutEffect,w="undefined"!=typeof window?new b:void 0;function C(e){var t=w||l.useContext(S);return t&&("undefined"==typeof window?t.add(e):x(function(){return t.add(e),function(){t.remove(e)}},[e.id,String(e.dynamic)])),null}C.dynamic=function(e){return e.map(function(e){return _(e[0],e[1])}).join(" ")},t.style=C}}]);

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.