@layers-app/editor 0.0.16 → 0.0.17-editor-01

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,164 +0,0 @@
1
- "use strict";var Lx=Object.defineProperty;var Mx=(n,e,t)=>e in n?Lx(n,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):n[e]=t;var Z=(n,e,t)=>Mx(n,typeof e!="symbol"?e+"":e,t);require("@mantine/dropzone");const p=require("react/jsx-runtime"),x=require("react"),We=require("react-i18next"),un=require("react-dom"),E=require("@mantine/core"),fi=require("@mantine/hooks"),Ox=require("i18next"),Df=require("lodash-es"),z=require("@tabler/icons-react"),kn=require("@layers-app/shared"),Rx=require("react-dom/server");function jx(n){const e=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(n){for(const t in n)if(t!=="default"){const r=Object.getOwnPropertyDescriptor(n,t);Object.defineProperty(e,t,r.get?r:{enumerable:!0,get:()=>n[t]})}}return e.default=n,Object.freeze(e)}const Yl=jx(x);function ze(n){return{}}const Qt={},By={},Ds={},jn={},to={},cr={},ls={},Ns={},ld={},lo={},hs={},Ue={},Fi={},Bi={},Nf={},Qa={},ad={},qa={},sa={},zn={},Rr={},gs={},Px={},pr={},zi={},Zr={},wo={},oa={},Pn={},Er={},If={},$a={},Lf={},Mf={},Fx={},Wi={},ec={},cd={},hi={},Bx={},Zs={},Js={},Jr={},tc={},zy={},Tn=typeof window<"u"&&window.document!==void 0&&window.document.createElement!==void 0,zx=Tn&&"documentMode"in document?document.documentMode:null,gn=Tn&&/Mac|iPod|iPhone|iPad/.test(navigator.platform),Mr=Tn&&/^(?!.*Seamonkey)(?=.*Firefox).*/i.test(navigator.userAgent),ia=!(!Tn||!("InputEvent"in window)||zx)&&"getTargetRanges"in new window.InputEvent("input"),nc=Tn&&/Version\/[\d.]+.*Safari/.test(navigator.userAgent),Ui=Tn&&/iPad|iPhone|iPod/.test(navigator.userAgent)&&!window.MSStream,Wx=Tn&&/Android/.test(navigator.userAgent),Wy=Tn&&/^(?=.*Chrome).*/i.test(navigator.userAgent),Ux=Tn&&Wx&&Wy,Of=Tn&&/AppleWebKit\/[\d.]+/.test(navigator.userAgent)&&!Wy,Ki=1,Xr=3,ps=0,Uy=1,ao=2,Kx=0,Hx=1,Yx=2,la=4,aa=8,Rf=128,Vx=112|(3|la|aa)|Rf,jf=1,Pf=2,Ff=3,Bf=4,zf=5,Wf=6,rc=nc||Ui||Of?" ":"​",ur=`
2
-
3
- `,Gx=Mr?" ":rc,Ky="֑-߿יִ-﷽ﹰ-ﻼ",Hy="A-Za-zÀ-ÖØ-öø-ʸ̀-֐ࠀ-῿‎Ⰰ-﬜︀-﹯﻽-￿",Zx=new RegExp("^[^"+Hy+"]*["+Ky+"]"),Jx=new RegExp("^[^"+Ky+"]*["+Hy+"]"),jr={bold:1,code:16,highlight:Rf,italic:2,strikethrough:la,subscript:32,superscript:64,underline:aa},Xx={directionless:1,unmergeable:2},Ug={center:Pf,end:Wf,justify:Bf,left:jf,right:Ff,start:zf},Qx={[Pf]:"center",[Wf]:"end",[Bf]:"justify",[jf]:"left",[Ff]:"right",[zf]:"start"},qx={normal:0,segmented:2,token:1},$x={[Kx]:"normal",[Yx]:"segmented",[Hx]:"token"};function e0(n){return n&&n.__esModule&&Object.prototype.hasOwnProperty.call(n,"default")?n.default:n}var q=e0(function(n){const e=new URLSearchParams;e.append("code",n);for(let t=1;t<arguments.length;t++)e.append("v",arguments[t]);throw Error(`Minified Lexical error #${n}; visit https://lexical.dev/docs/error?${e} for the full message or use the non-minified dev environment for full errors and additional helpful warnings.`)});function ca(...n){const e=[];for(const t of n)if(t&&typeof t=="string")for(const[r]of t.matchAll(/\S+/g))e.push(r);return e}const t0=100;let ud=!1,Uf=0;function n0(n){Uf=n.timeStamp}function iu(n,e,t){const r=n.nodeName==="BR",s=e.__lexicalLineBreak;return s&&(n===s||r&&n.previousSibling===s)||r&&ic(n,t)!==void 0}function r0(n,e,t){const r=nn(t._window);let s=null,o=null;r!==null&&r.anchorNode===n&&(s=r.anchorOffset,o=r.focusOffset);const i=n.nodeValue;i!==null&&Gf(e,i,s,o,!1)}function s0(n,e,t){if(M(n)){const r=n.anchor.getNode();if(r.is(t)&&n.format!==r.getFormat())return!1}return e.nodeType===Xr&&t.isAttached()}function o0(n,e,t,r){for(let s=n;s&&!p0(s);s=Vi(s)){const o=ic(s,e);if(o!==void 0){const i=ue(o,t);if(i)return Se(i)?void 0:[s,i]}else if(s===r)return[r,qy(t)]}}function Yy(n,e,t){ud=!0;const r=performance.now()-Uf>t0;try{Xt(n,()=>{const s=R()||function(f){return f.getEditorState().read(()=>{const g=R();return g!==null?g.clone():null})}(n),o=new Map,i=n.getRootElement(),l=n._editorState,a=n._blockCursorElement;let c=!1,u="";for(let f=0;f<e.length;f++){const g=e[f],h=g.type,m=g.target,A=o0(m,n,l,i);if(!A)continue;const[b,y]=A;if(h==="characterData")r&&W(y)&&s0(s,m,y)&&r0(m,y,n);else if(h==="childList"){c=!0;const w=g.addedNodes;for(let C=0;C<w.length;C++){const _=w[C],k=Xy(_),T=_.parentNode;if(T!=null&&_!==a&&k===null&&!iu(_,T,n)){if(Mr){const D=_.innerText||_.nodeValue;D&&(u+=D)}T.removeChild(_)}}const v=g.removedNodes,S=v.length;if(S>0){let C=0;for(let _=0;_<S;_++){const k=v[_];(iu(k,m,n)||a===k)&&(m.appendChild(k),C++)}S!==C&&o.set(b,y)}}}if(o.size>0)for(const[f,g]of o)g.reconcileObservedMutation(f,n);const d=t.takeRecords();if(d.length>0){for(let f=0;f<d.length;f++){const g=d[f],h=g.addedNodes,m=g.target;for(let A=0;A<h.length;A++){const b=h[A],y=b.parentNode;y==null||b.nodeName!=="BR"||iu(b,m,n)||y.removeChild(b)}}t.takeRecords()}s!==null&&(c&&(s.dirty=!0,Ie(s)),Mr&&rb(n)&&s.insertRawText(u))})}finally{ud=!1}}function Vy(n){const e=n._observer;e!==null&&Yy(n,e.takeRecords(),e)}function Gy(n){(function(e){Uf===0&&ac(e).addEventListener("textInput",n0,!0)})(n),n._observer=new MutationObserver((e,t)=>{Yy(n,e,t)})}function Kg(n,e){const t=n.__mode,r=n.__format,s=n.__style,o=e.__mode,i=e.__format,l=e.__style;return!(t!==null&&t!==o||r!==null&&r!==i||s!==null&&s!==l)}function Hg(n,e){const t=n.mergeWithSibling(e),r=Ye()._normalizedNodes;return r.add(n.__key),r.add(e.__key),t}function Yg(n){let e,t,r=n;if(r.__text!==""||!r.isSimpleText()||r.isUnmergeable()){for(;(e=r.getPreviousSibling())!==null&&W(e)&&e.isSimpleText()&&!e.isUnmergeable();){if(e.__text!==""){if(Kg(e,r)){r=Hg(e,r);break}break}e.remove()}for(;(t=r.getNextSibling())!==null&&W(t)&&t.isSimpleText()&&!t.isUnmergeable();){if(t.__text!==""){if(Kg(r,t)){r=Hg(r,t);break}break}t.remove()}}else r.remove()}function sc(n){return Vg(n.anchor),Vg(n.focus),n}function Vg(n){for(;n.type==="element";){const e=n.getNode(),t=n.offset;let r,s;if(t===e.getChildrenSize()?(r=e.getChildAtIndex(t-1),s=!0):(r=e.getChildAtIndex(t),s=!1),W(r)){n.set(r.__key,s?r.getTextContentSize():0,"text");break}if(!O(r))break;n.set(r.__key,s?r.getChildrenSize():0,"element")}}let i0=1;const l0=typeof queueMicrotask=="function"?queueMicrotask:n=>{Promise.resolve().then(n)};function Kf(n){const e=document.activeElement;if(e===null)return!1;const t=e.nodeName;return Se(he(n))&&(t==="INPUT"||t==="TEXTAREA"||e.contentEditable==="true"&&oc(e)==null)}function Hi(n,e,t){const r=n.getRootElement();try{return r!==null&&r.contains(e)&&r.contains(t)&&e!==null&&!Kf(e)&&Yi(e)===n}catch{return!1}}function Hf(n){return n instanceof Ac}function Yi(n){let e=n;for(;e!=null;){const t=oc(e);if(Hf(t))return t;e=Vi(e)}return null}function oc(n){return n?n.__lexicalEditor:null}function Ln(n){return n.isToken()||n.isSegmented()}function a0(n){return n.nodeType===Xr}function ua(n){let e=n;for(;e!=null;){if(a0(e))return e;e=e.firstChild}return null}function da(n,e,t){const r=jr[e];if(t!==null&&(n&r)==(t&r))return n;let s=n^r;return e==="subscript"?s&=-65:e==="superscript"&&(s&=-33),s}function Zy(n){return W(n)||Ee(n)||Se(n)}function Jy(n,e){if(e!=null)return void(n.__key=e);Ft(),Eb();const t=Ye(),r=Vn(),s=""+i0++;r._nodeMap.set(s,n),O(n)?t._dirtyElements.set(s,!0):t._dirtyLeaves.add(s),t._cloneNotNeeded.add(s),t._dirtyType=Uy,n.__key=s}function as(n){const e=n.getParent();if(e!==null){const t=n.getWritable(),r=e.getWritable(),s=n.getPreviousSibling(),o=n.getNextSibling();if(s===null)if(o!==null){const i=o.getWritable();r.__first=o.__key,i.__prev=null}else r.__first=null;else{const i=s.getWritable();if(o!==null){const l=o.getWritable();l.__prev=i.__key,i.__next=l.__key}else i.__next=null;t.__prev=null}if(o===null)if(s!==null){const i=s.getWritable();r.__last=s.__key,i.__next=null}else r.__last=null;else{const i=o.getWritable();if(s!==null){const l=s.getWritable();l.__next=i.__key,i.__prev=l.__key}else i.__prev=null;t.__next=null}r.__size--,t.__parent=null}}function fa(n){Eb();const e=n.getLatest(),t=e.__parent,r=Vn(),s=Ye(),o=r._nodeMap,i=s._dirtyElements;t!==null&&function(a,c,u){let d=a;for(;d!==null;){if(u.has(d))return;const f=c.get(d);if(f===void 0)break;u.set(d,!1),d=f.__parent}}(t,o,i);const l=e.__key;s._dirtyType=Uy,O(n)?i.set(l,!0):s._dirtyLeaves.add(l)}function wt(n){Ft();const e=Ye(),t=e._compositionKey;if(n!==t){if(e._compositionKey=n,t!==null){const r=ue(t);r!==null&&r.getWritable()}if(n!==null){const r=ue(n);r!==null&&r.getWritable()}}}function _r(){return Co()?null:Ye()._compositionKey}function ue(n,e){const t=(e||Vn())._nodeMap.get(n);return t===void 0?null:t}function Xy(n,e){const t=ic(n,Ye());return t!==void 0?ue(t,e):null}function ic(n,e){return n[`__lexicalKey_${e._key}`]}function he(n,e){let t=n;for(;t!=null;){const r=Xy(t,e);if(r!==null)return r;t=Vi(t)}return null}function Qy(n){const e=n._decorators,t=Object.assign({},e);return n._pendingDecorators=t,t}function Gg(n){return n.read(()=>fe().getTextContent())}function fe(){return qy(Vn())}function qy(n){return n._nodeMap.get("root")}function Ie(n){Ft();const e=Vn();n!==null&&(n.dirty=!0,n.setCachedNodes(null)),e._selection=n}function Xs(n){const e=Ye(),t=function(r,s){let o=r;for(;o!=null;){const i=ic(o,s);if(i!==void 0)return i;o=Vi(o)}return null}(n,e);return t===null?n===e.getRootElement()?ue("root"):null:ue(t)}function Zg(n,e){return e?n.getTextContentSize():0}function $y(n){return/[\uD800-\uDBFF][\uDC00-\uDFFF]/g.test(n)}function Yf(n){const e=[];let t=n;for(;t!==null;)e.push(t),t=t._parentEditor;return e}function eb(){return Math.random().toString(36).replace(/[^a-z]+/g,"").substr(0,5)}function tb(n){return n.nodeType===Xr?n.nodeValue:null}function Vf(n,e,t){const r=nn(e._window);if(r===null)return;const s=r.anchorNode;let{anchorOffset:o,focusOffset:i}=r;if(s!==null){let l=tb(s);const a=he(s);if(l!==null&&W(a)){if(l===rc&&t){const c=t.length;l=t,o=c,i=c}l!==null&&Gf(a,l,o,i,n)}}}function Gf(n,e,t,r,s){let o=n;if(o.isAttached()&&(s||!o.isDirty())){const i=o.isComposing();let l=e;(i||s)&&e[e.length-1]===rc&&(l=e.slice(0,-1));const a=o.getTextContent();if(s||l!==a){if(l===""){if(wt(null),nc||Ui||Of)o.remove();else{const m=Ye();setTimeout(()=>{m.update(()=>{o.isAttached()&&o.remove()})},20)}return}const c=o.getParent(),u=Is(),d=o.getTextContentSize(),f=_r(),g=o.getKey();if(o.isToken()||f!==null&&g===f&&!i||M(u)&&(c!==null&&!c.canInsertTextBefore()&&u.anchor.offset===0||u.anchor.key===n.__key&&u.anchor.offset===0&&!o.canInsertTextBefore()&&!i||u.focus.key===n.__key&&u.focus.offset===d&&!o.canInsertTextAfter()&&!i))return void o.markDirty();const h=R();if(!M(h)||t===null||r===null)return void o.setTextContent(l);if(h.setTextNodeRange(o,t,o,r),o.isSegmented()){const m=Fe(o.getTextContent());o.replace(m),o=m}o.setTextContent(l)}}}function c0(n,e){if(e.isSegmented())return!0;if(!n.isCollapsed())return!1;const t=n.anchor.offset,r=e.getParentOrThrow(),s=e.isToken();return t===0?!e.canInsertTextBefore()||!r.canInsertTextBefore()&&!e.isComposing()||s||function(o){const i=o.getPreviousSibling();return(W(i)||O(i)&&i.isInline())&&!i.canInsertTextAfter()}(e):t===e.getTextContentSize()&&(!e.canInsertTextAfter()||!r.canInsertTextAfter()&&!e.isComposing()||s)}function Jg(n){return n==="ArrowLeft"}function Xg(n){return n==="ArrowRight"}function Ko(n,e){return gn?n:e}function Qg(n){return n==="Enter"}function jo(n){return n==="Backspace"}function Po(n){return n==="Delete"}function qg(n,e,t){return n.toLowerCase()==="a"&&Ko(e,t)}function nb(){const n=fe();Ie(sc(n.select(0,n.getChildrenSize())))}function qo(n,e){n.__lexicalClassNameCache===void 0&&(n.__lexicalClassNameCache={});const t=n.__lexicalClassNameCache,r=t[e];if(r!==void 0)return r;const s=n[e];if(typeof s=="string"){const o=ca(s);return t[e]=o,o}return s}function Zf(n,e,t,r,s){if(t.size===0)return;const o=r.__type,i=r.__key,l=e.get(o);l===void 0&&q(33,o);const a=l.klass;let c=n.get(a);c===void 0&&(c=new Map,n.set(a,c));const u=c.get(i),d=u==="destroyed"&&s==="created";(u===void 0||d)&&c.set(i,d?"updated":s)}function u0(n){const e=n.getType(),t=Vn();if(t._readOnly){const o=ob(t).get(e);return o?Array.from(o.values()):[]}const r=t._nodeMap,s=[];for(const[,o]of r)o instanceof n&&o.__type===e&&o.isAttached()&&s.push(o);return s}function $g(n,e,t){const r=n.getParent();let s=t,o=n;return r!==null&&(e&&t===0?(s=o.getIndexWithinParent(),o=r):e||t!==o.getChildrenSize()||(s=o.getIndexWithinParent()+1,o=r)),o.getChildAtIndex(e?s-1:s)}function gi(n,e){const t=n.offset;if(n.type==="element")return $g(n.getNode(),e,t);{const r=n.getNode();if(e&&t===0||!e&&t===r.getTextContentSize()){const s=e?r.getPreviousSibling():r.getNextSibling();return s===null?$g(r.getParentOrThrow(),e,r.getIndexWithinParent()+(e?0:1)):s}}return null}function rb(n){const e=ac(n).event,t=e&&e.inputType;return t==="insertFromPaste"||t==="insertFromPasteAsQuotation"}function ne(n,e,t){return Db(n,e,t)}function lc(n){return!_t(n)&&!n.isLastChild()&&!n.isInline()}function ha(n,e){const t=n._keyToDOMMap.get(e);return t===void 0&&q(75,e),t}function Vi(n){const e=n.assignedSlot||n.parentElement;return e!==null&&e.nodeType===11?e.host:e}function $o(n,e){let t=n.getParent();for(;t!==null;){if(t.is(e))return!0;t=t.getParent()}return!1}function ac(n){const e=n._window;return e===null&&q(78),e}function d0(n){let e=n.getParentOrThrow();for(;e!==null;){if(At(e))return e;e=e.getParentOrThrow()}return e}function At(n){return _t(n)||O(n)&&n.isShadowRoot()}function dd(n){const e=n.constructor.clone(n);return Jy(e,null),e}function Me(n){const e=Ye(),t=n.constructor.getType(),r=e._nodes.get(t);r===void 0&&q(200,n.constructor.name,t);const{replace:s,replaceWithKlass:o}=r;if(s!==null){const i=s(n),l=i.constructor;return o!==null?i instanceof o||q(201,o.name,o.getType(),l.name,l.getType(),n.constructor.name,t):i instanceof n.constructor&&l!==n.constructor||q(202,l.name,l.getType(),n.constructor.name,t),i.__key===n.__key&&q(203,n.constructor.name,t,l.name,l.getType()),i}return n}function lu(n,e){!_t(n.getParent())||O(e)||Se(e)||q(99)}function au(n){return(Se(n)||O(n)&&!n.canBeEmpty())&&!n.isInline()}function Jf(n,e,t){t.style.removeProperty("caret-color"),e._blockCursorElement=null;const r=n.parentElement;r!==null&&r.removeChild(n)}function f0(n,e,t){let r=n._blockCursorElement;if(M(t)&&t.isCollapsed()&&t.anchor.type==="element"&&e.contains(document.activeElement)){const s=t.anchor,o=s.getNode(),i=s.offset;let l=!1,a=null;if(i===o.getChildrenSize())au(o.getChildAtIndex(i-1))&&(l=!0);else{const c=o.getChildAtIndex(i);if(c!==null&&au(c)){const u=c.getPreviousSibling();(u===null||au(u))&&(l=!0,a=n.getElementByKey(c.__key))}}if(l){const c=n.getElementByKey(o.__key);return r===null&&(n._blockCursorElement=r=function(u){const d=u.theme,f=document.createElement("div");f.contentEditable="false",f.setAttribute("data-lexical-cursor","true");let g=d.blockCursor;if(g!==void 0){if(typeof g=="string"){const h=ca(g);g=d.blockCursor=h}g!==void 0&&f.classList.add(...g)}return f}(n._config)),e.style.caretColor="transparent",void(a===null?c.appendChild(r):c.insertBefore(r,a))}}r!==null&&Jf(r,n,e)}function nn(n){return Tn?(n||window).getSelection():null}function h0(n,e){let t=n.getChildAtIndex(e);t==null&&(t=n),At(n)&&q(102);const r=i=>{const l=i.getParentOrThrow(),a=At(l),c=i!==t||a?dd(i):i;if(a)return O(i)&&O(c)||q(133),i.insertAfter(c),[i,c,c];{const[u,d,f]=r(l),g=i.getNextSiblings();return f.append(c,...g),[u,d,c]}},[s,o]=r(t);return[s,o]}function sb(n){return lt(n)&&n.tagName==="A"}function lt(n){return n.nodeType===1}function ep(n){return n.nodeType===11}function fd(n){const e=new RegExp(/^(a|abbr|acronym|b|cite|code|del|em|i|ins|kbd|label|output|q|ruby|s|samp|span|strong|sub|sup|time|u|tt|var|#text)$/,"i");return n.nodeName.match(e)!==null}function ga(n){const e=new 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 n.nodeName.match(e)!==null}function Cr(n){if(Se(n)&&!n.isInline())return!0;if(!O(n)||At(n))return!1;const e=n.getFirstChild(),t=e===null||Ee(e)||W(e)||e.isInline();return!n.isInline()&&n.canBeEmpty()!==!1&&t}function Fo(n,e){let t=n;for(;t!==null&&t.getParent()!==null&&!e(t);)t=t.getParentOrThrow();return e(t)?t:null}function cc(){return Ye()}const tp=new WeakMap,g0=new Map;function ob(n){if(!n._readOnly&&n.isEmpty())return g0;n._readOnly||q(192);let e=tp.get(n);if(!e){e=new Map,tp.set(n,e);for(const[t,r]of n._nodeMap){const s=r.__type;let o=e.get(s);o||(o=new Map,e.set(s,o)),o.set(t,r)}}return e}function Xf(n){const e=n.constructor.clone(n);return e.afterCloneFrom(n),e}function Qf(n,e){const t=(parseInt(n.style.paddingInlineStart,10)||0)/40;e.setIndent(t)}function ib(n){n.__lexicalUnmanaged=!0}function p0(n){return n.__lexicalUnmanaged===!0}function lb(n,e,t,r,s,o){let i=n.getFirstChild();for(;i!==null;){const l=i.__key;i.__parent===e&&(O(i)&&lb(i,l,t,r,s,o),t.has(l)||o.delete(l),s.push(l)),i=i.getNextSibling()}}let Pr,Mt,pi,uc,hd,gd,ms,Cn,pd,mi,ot="",Lt="",In=null,pn="",$n="",ab=!1,Ai=!1,Vl=null;function pa(n,e){const t=ms.get(n);if(e!==null){const r=yd(n);r.parentNode===e&&e.removeChild(r)}if(Cn.has(n)||Mt._keyToDOMMap.delete(n),O(t)){const r=Aa(t,ms);md(r,0,r.length-1,null)}t!==void 0&&Zf(mi,pi,uc,t,"destroyed")}function md(n,e,t,r){let s=e;for(;s<=t;++s){const o=n[s];o!==void 0&&pa(o,r)}}function es(n,e){n.setProperty("text-align",e)}const m0="40px";function cb(n,e){const t=Pr.theme.indent;if(typeof t=="string"){const s=n.classList.contains(t);e>0&&!s?n.classList.add(t):e<1&&s&&n.classList.remove(t)}const r=getComputedStyle(n).getPropertyValue("--lexical-indent-base-value")||m0;n.style.setProperty("padding-inline-start",e===0?"":`calc(${e} * ${r})`)}function ub(n,e){const t=n.style;e===0?es(t,""):e===jf?es(t,"left"):e===Pf?es(t,"center"):e===Ff?es(t,"right"):e===Bf?es(t,"justify"):e===zf?es(t,"start"):e===Wf&&es(t,"end")}function ma(n,e){const t=Cn.get(n);t===void 0&&q(60);const r=t.createDOM(Pr,Mt);if(function(s,o,i){const l=i._keyToDOMMap;(function(a,c,u){a[`__lexicalKey_${c._key}`]=u})(o,i,s),l.set(s,o)}(n,r,Mt),W(t)?r.setAttribute("data-lexical-text","true"):Se(t)&&r.setAttribute("data-lexical-decorator","true"),O(t)){const s=t.__indent,o=t.__size;if(s!==0&&cb(r,s),o!==0){const l=o-1;(function(a,c,u,d){const f=Lt;Lt="",Ad(a,u,0,c,u.getDOMSlot(d)),fb(u,d),Lt=f})(Aa(t,Cn),l,t,r)}const i=t.__format;i!==0&&ub(r,i),t.isInline()||db(null,t,r),lc(t)&&(ot+=ur,$n+=ur)}else{const s=t.getTextContent();if(Se(t)){const o=t.decorate(Mt,Pr);o!==null&&hb(n,o),r.contentEditable="false"}else W(t)&&(t.isDirectionless()||(Lt+=s));ot+=s,$n+=s}return e!==null&&e.insertChild(r),Zf(mi,pi,uc,t,"created"),r}function Ad(n,e,t,r,s){const o=ot;ot="";let i=t;for(;i<=r;++i){ma(n[i],s);const l=Cn.get(n[i]);l!==null&&W(l)&&(In===null&&(In=l.getFormat()),pn===""&&(pn=l.getStyle()))}lc(e)&&(ot+=ur),s.element.__lexicalTextContent=ot,ot=o+ot}function np(n,e){if(n){const t=n.__last;if(t){const r=e.get(t);if(r)return Ee(r)?"line-break":Se(r)&&r.isInline()?"decorator":null}return"empty"}return null}function db(n,e,t){const r=np(n,ms),s=np(e,Cn);r!==s&&e.getDOMSlot(t).setManagedLineBreak(s)}function fb(n,e){const t=e.__lexicalDirTextContent||"",r=e.__lexicalDir||"";if(t!==Lt||r!==Vl){const o=Lt==="",i=o?Vl:(s=Lt,Zx.test(s)?"rtl":Jx.test(s)?"ltr":null);if(i!==r){const l=e.classList,a=Pr.theme;let c=r!==null?a[r]:void 0,u=i!==null?a[i]:void 0;if(c!==void 0){if(typeof c=="string"){const d=ca(c);c=a[r]=d}l.remove(...c)}if(i===null||o&&i==="ltr")e.removeAttribute("dir");else{if(u!==void 0){if(typeof u=="string"){const d=ca(u);u=a[i]=d}u!==void 0&&l.add(...u)}e.dir=i}Ai||(n.getWritable().__dir=i)}Vl=i,e.__lexicalDirTextContent=Lt,e.__lexicalDir=i}var s}function A0(n,e,t){const r=Lt;var s;Lt="",In=null,pn="",function(o,i,l){const a=ot,c=o.__size,u=i.__size;ot="";const d=l.element;if(c===1&&u===1){const f=o.__first,g=i.__first;if(f===g)Ho(f,d);else{const m=yd(f),A=ma(g,null);try{d.replaceChild(A,m)}catch(b){if(typeof b=="object"&&b!=null){const y=`${b.toString()} Parent: ${d.tagName}, new child: {tag: ${A.tagName} key: ${g}}, old child: {tag: ${m.tagName}, key: ${f}}.`;throw new Error(y)}throw b}pa(f,null)}const h=Cn.get(g);W(h)&&(In===null&&(In=h.getFormat()),pn===""&&(pn=h.getStyle()))}else{const f=Aa(o,ms),g=Aa(i,Cn);if(f.length!==c&&q(227),g.length!==u&&q(228),c===0)u!==0&&Ad(g,i,0,u-1,l);else if(u===0){if(c!==0){const h=l.after==null&&l.before==null&&l.element.__lexicalLineBreak==null;md(f,0,c-1,h?null:d),h&&(d.textContent="")}}else(function(h,m,A,b,y,w){const v=b-1,S=y-1;let C,_,k=w.getFirstChild(),T=0,D=0;for(;T<=v&&D<=S;){const I=m[T],P=A[D];if(I===P)k=cu(Ho(P,w.element)),T++,D++;else{C===void 0&&(C=new Set(m)),_===void 0&&(_=new Set(A));const J=_.has(I),te=C.has(P);if(J)if(te){const Q=ha(Mt,P);Q===k?k=cu(Ho(P,w.element)):(w.withBefore(k).insertChild(Q),Ho(P,w.element)),T++,D++}else ma(P,w.withBefore(k)),D++;else k=cu(yd(I)),pa(I,w.element),T++}const G=Cn.get(P);G!==null&&W(G)&&(In===null&&(In=G.getFormat()),pn===""&&(pn=G.getStyle()))}const L=T>v,N=D>S;if(L&&!N){const I=A[S+1],P=I===void 0?null:Mt.getElementByKey(I);Ad(A,h,D,S,w.withBefore(P))}else N&&!L&&md(m,T,v,w.element)})(i,f,g,c,u,l)}lc(i)&&(ot+=ur),d.__lexicalTextContent=ot,ot=a+ot}(n,e,e.getDOMSlot(t)),fb(e,t),at(s=e)&&In!=null&&In!==s.__textFormat&&!Ai&&(s.setTextFormat(In),s.setTextStyle(pn)),function(o){at(o)&&pn!==""&&pn!==o.__textStyle&&!Ai&&o.setTextStyle(pn)}(e),Lt=r}function Aa(n,e){const t=[];let r=n.__first;for(;r!==null;){const s=e.get(r);s===void 0&&q(101),t.push(r),r=s.__next}return t}function Ho(n,e){const t=ms.get(n);let r=Cn.get(n);t!==void 0&&r!==void 0||q(61);const s=ab||gd.has(n)||hd.has(n),o=ha(Mt,n);if(t===r&&!s){if(O(t)){const i=o.__lexicalTextContent;i!==void 0&&(ot+=i,$n+=i);const l=o.__lexicalDirTextContent;l!==void 0&&(Lt+=l)}else{const i=t.getTextContent();W(t)&&!t.isDirectionless()&&(Lt+=i),$n+=i,ot+=i}return o}if(t!==r&&s&&Zf(mi,pi,uc,r,"updated"),r.updateDOM(t,o,Pr)){const i=ma(n,null);return e===null&&q(62),e.replaceChild(i,o),pa(n,null),i}if(O(t)&&O(r)){const i=r.__indent;i!==t.__indent&&cb(o,i);const l=r.__format;l!==t.__format&&ub(o,l),s&&(A0(t,r,o),_t(r)||r.isInline()||db(t,r,o)),lc(r)&&(ot+=ur,$n+=ur)}else{const i=r.getTextContent();if(Se(r)){const l=r.decorate(Mt,Pr);l!==null&&hb(n,l)}else W(r)&&!r.isDirectionless()&&(Lt+=i);ot+=i,$n+=i}if(!Ai&&_t(r)&&r.__cachedText!==$n){const i=r.getWritable();i.__cachedText=$n,r=i}return o}function hb(n,e){let t=Mt._pendingDecorators;const r=Mt._decorators;if(t===null){if(r[n]===e)return;t=Qy(Mt)}t[n]=e}function cu(n){let e=n.nextSibling;return e!==null&&e===Mt._blockCursorElement&&(e=e.nextSibling),e}function y0(n,e,t,r,s,o){ot="",$n="",Lt="",ab=r===ao,Vl=null,Mt=t,Pr=t._config,pi=t._nodes,uc=Mt._listeners.mutation,hd=s,gd=o,ms=n._nodeMap,Cn=e._nodeMap,Ai=e._readOnly,pd=new Map(t._keyToDOMMap);const i=new Map;return mi=i,Ho("root",null),Mt=void 0,pi=void 0,hd=void 0,gd=void 0,ms=void 0,Cn=void 0,Pr=void 0,pd=void 0,mi=void 0,i}function yd(n){const e=pd.get(n);return e===void 0&&q(75,n),e}const Xn=Object.freeze({}),bd=30,wd=[["keydown",function(n,e){if(ei=n.timeStamp,gb=n.key,e.isComposing())return;const{key:t,shiftKey:r,ctrlKey:s,metaKey:o,altKey:i}=n;if(!ne(e,Nf,n)&&t!=null){if(function(l,a,c,u){return Xg(l)&&!a&&!u&&!c}(t,s,i,o))ne(e,Qa,n);else if(function(l,a,c,u,d){return Xg(l)&&!u&&!c&&(a||d)}(t,s,r,i,o))ne(e,ad,n);else if(function(l,a,c,u){return Jg(l)&&!a&&!u&&!c}(t,s,i,o))ne(e,qa,n);else if(function(l,a,c,u,d){return Jg(l)&&!u&&!c&&(a||d)}(t,s,r,i,o))ne(e,sa,n);else if(function(l,a,c){return function(u){return u==="ArrowUp"}(l)&&!a&&!c}(t,s,o))ne(e,zn,n);else if(function(l,a,c){return function(u){return u==="ArrowDown"}(l)&&!a&&!c}(t,s,o))ne(e,Rr,n);else if(function(l,a){return Qg(l)&&a}(t,r))ti=!0,ne(e,gs,n);else if(function(l){return l===" "}(t))ne(e,Px,n);else if(function(l,a){return gn&&a&&l.toLowerCase()==="o"}(t,s))n.preventDefault(),ti=!0,ne(e,to,!0);else if(function(l,a){return Qg(l)&&!a}(t,r))ti=!1,ne(e,gs,n);else if(function(l,a,c,u){return gn?!a&&!c&&(jo(l)||l.toLowerCase()==="h"&&u):!(u||a||c)&&jo(l)}(t,i,o,s))jo(t)?ne(e,pr,n):(n.preventDefault(),ne(e,jn,!0));else if(function(l){return l==="Escape"}(t))ne(e,zi,n);else if(function(l,a,c,u,d){return gn?!(c||u||d)&&(Po(l)||l.toLowerCase()==="d"&&a):!(a||u||d)&&Po(l)}(t,s,r,i,o))Po(t)?ne(e,Zr,n):(n.preventDefault(),ne(e,jn,!1));else if(function(l,a,c){return jo(l)&&(gn?a:c)}(t,i,s))n.preventDefault(),ne(e,lo,!0);else if(function(l,a,c){return Po(l)&&(gn?a:c)}(t,i,s))n.preventDefault(),ne(e,lo,!1);else if(function(l,a){return gn&&a&&jo(l)}(t,o))n.preventDefault(),ne(e,hs,!0);else if(function(l,a){return gn&&a&&Po(l)}(t,o))n.preventDefault(),ne(e,hs,!1);else if(function(l,a,c,u){return l.toLowerCase()==="b"&&!a&&Ko(c,u)}(t,i,o,s))n.preventDefault(),ne(e,Ue,"bold");else if(function(l,a,c,u){return l.toLowerCase()==="u"&&!a&&Ko(c,u)}(t,i,o,s))n.preventDefault(),ne(e,Ue,"underline");else if(function(l,a,c,u){return l.toLowerCase()==="i"&&!a&&Ko(c,u)}(t,i,o,s))n.preventDefault(),ne(e,Ue,"italic");else if(function(l,a,c,u){return l==="Tab"&&!a&&!c&&!u}(t,i,s,o))ne(e,wo,n);else if(function(l,a,c,u){return l.toLowerCase()==="z"&&!a&&Ko(c,u)}(t,r,o,s))n.preventDefault(),ne(e,Fi,void 0);else if(function(l,a,c,u){return gn?l.toLowerCase()==="z"&&c&&a:l.toLowerCase()==="y"&&u||l.toLowerCase()==="z"&&u&&a}(t,r,o,s))n.preventDefault(),ne(e,Bi,void 0);else{const l=e._editorState._selection;l===null||M(l)?!Mr&&qg(t,o,s)&&(n.preventDefault(),ne(e,cd,n)):function(a,c,u,d){return!c&&a.toLowerCase()==="c"&&(gn?u:d)}(t,r,o,s)?(n.preventDefault(),ne(e,Wi,n)):function(a,c,u,d){return!c&&a.toLowerCase()==="x"&&(gn?u:d)}(t,r,o,s)?(n.preventDefault(),ne(e,ec,n)):qg(t,o,s)&&(n.preventDefault(),ne(e,cd,n))}(function(l,a,c,u){return l||a||c||u})(s,r,i,o)&&ne(e,zy,n)}}],["pointerdown",function(n,e){const t=n.target,r=n.pointerType;t instanceof Node&&r!=="touch"&&Xt(e,()=>{Se(he(t))||(vd=!0)})}],["compositionstart",function(n,e){Xt(e,()=>{const t=R();if(M(t)&&!e.isComposing()){const r=t.anchor,s=t.anchor.getNode();wt(r.key),(n.timeStamp<ei+bd||r.type==="element"||!t.isCollapsed()||s.getFormat()!==t.format||W(s)&&s.getStyle()!==t.style)&&ne(e,ls,Gx)}})}],["compositionend",function(n,e){Mr?Bo=!0:Xt(e,()=>{uu(e,n.data)})}],["input",function(n,e){n.stopPropagation(),Xt(e,()=>{const t=R(),r=n.data,s=yb(n);if(r!=null&&M(t)&&Ab(t,s,r,n.timeStamp,!1)){Bo&&(uu(e,r),Bo=!1);const o=t.anchor.getNode(),i=nn(e._window);if(i===null)return;const l=t.isBackward(),a=l?t.anchor.offset:t.focus.offset,c=l?t.focus.offset:t.anchor.offset;ia&&!t.isCollapsed()&&W(o)&&i.anchorNode!==null&&o.getTextContent().slice(0,a)+r+o.getTextContent().slice(a+c)===tb(i.anchorNode)||ne(e,ls,r);const u=r.length;Mr&&u>1&&n.inputType==="insertCompositionText"&&!e.isComposing()&&(t.anchor.offset-=u),nc||Ui||Of||!e.isComposing()||(ei=0,wt(null))}else Vf(!1,e,r!==null?r:void 0),Bo&&(uu(e,r||void 0),Bo=!1);Ft(),Vy(Ye())}),Ks=null}],["click",function(n,e){Xt(e,()=>{const t=R(),r=nn(e._window),s=Is();if(r){if(M(t)){const o=t.anchor,i=o.getNode();o.type==="element"&&o.offset===0&&t.isCollapsed()&&!_t(i)&&fe().getChildrenSize()===1&&i.getTopLevelElementOrThrow().isEmpty()&&s!==null&&t.is(s)?(r.removeAllRanges(),t.dirty=!0):n.detail===3&&!t.isCollapsed()&&i!==t.focus.getNode()&&(O(i)?i.select(0):i.getParentOrThrow().select(0))}else if(n.pointerType==="touch"){const o=r.anchorNode;if(o!==null){const i=o.nodeType;(i===Ki||i===Xr)&&Ie(hc(s,r,e,n))}}}ne(e,Ds,n)})}],["cut",Xn],["copy",Xn],["dragstart",Xn],["dragover",Xn],["dragend",Xn],["paste",Xn],["focus",Xn],["blur",Xn],["drop",Xn]];ia&&wd.push(["beforeinput",(n,e)=>function(t,r){const s=t.inputType,o=yb(t);s==="deleteCompositionText"||Mr&&rb(r)||s!=="insertCompositionText"&&Xt(r,()=>{const i=R();if(s==="deleteContentBackward"){if(i===null){const g=Is();if(!M(g))return;Ie(g.clone())}if(M(i)){const g=i.anchor.key===i.focus.key;if(l=t.timeStamp,gb==="MediaLast"&&l<ei+bd&&r.isComposing()&&g){if(wt(null),ei=0,setTimeout(()=>{Xt(r,()=>{wt(null)})},bd),M(i)){const h=i.anchor.getNode();h.markDirty(),i.format=h.getFormat(),W(h)||q(142),i.style=h.getStyle()}}else{wt(null),t.preventDefault();const h=i.anchor.getNode(),m=h.getTextContent(),A=h.canInsertTextAfter(),b=i.anchor.offset===0&&i.focus.offset===m.length;Ux&&g&&!b&&A||ne(r,jn,!0)}return}}var l;if(!M(i))return;const a=t.data;Ks!==null&&Vf(!1,r,Ks),i.dirty&&Ks===null||!i.isCollapsed()||_t(i.anchor.getNode())||o===null||i.applyDOMRange(o),Ks=null;const c=i.anchor,u=i.focus,d=c.getNode(),f=u.getNode();if(s!=="insertText"&&s!=="insertTranspose")switch(t.preventDefault(),s){case"insertFromYank":case"insertFromDrop":case"insertReplacementText":ne(r,ls,t);break;case"insertFromComposition":wt(null),ne(r,ls,t);break;case"insertLineBreak":wt(null),ne(r,to,!1);break;case"insertParagraph":wt(null),ti&&!Ui?(ti=!1,ne(r,to,!1)):ne(r,cr,void 0);break;case"insertFromPaste":case"insertFromPasteAsQuotation":ne(r,Ns,t);break;case"deleteByComposition":(function(g,h){return g!==h||O(g)||O(h)||!g.isToken()||!h.isToken()})(d,f)&&ne(r,ld,t);break;case"deleteByDrag":case"deleteByCut":ne(r,ld,t);break;case"deleteContent":ne(r,jn,!1);break;case"deleteWordBackward":ne(r,lo,!0);break;case"deleteWordForward":ne(r,lo,!1);break;case"deleteHardLineBackward":case"deleteSoftLineBackward":ne(r,hs,!0);break;case"deleteContentForward":case"deleteHardLineForward":case"deleteSoftLineForward":ne(r,hs,!1);break;case"formatStrikeThrough":ne(r,Ue,"strikethrough");break;case"formatBold":ne(r,Ue,"bold");break;case"formatItalic":ne(r,Ue,"italic");break;case"formatUnderline":ne(r,Ue,"underline");break;case"historyUndo":ne(r,Fi,void 0);break;case"historyRedo":ne(r,Bi,void 0)}else{if(a===`
4
- `)t.preventDefault(),ne(r,to,!1);else if(a===ur)t.preventDefault(),ne(r,cr,void 0);else if(a==null&&t.dataTransfer){const g=t.dataTransfer.getData("text/plain");t.preventDefault(),i.insertRawText(g)}else a!=null&&Ab(i,o,a,t.timeStamp,!0)?(t.preventDefault(),ne(r,ls,a)):Ks=a;pb=t.timeStamp}})}(n,e)]);let ei=0,gb=null,pb=0,Ks=null;const ya=new WeakMap;let Cd=!1,vd=!1,ti=!1,Bo=!1,mb=[0,"",0,"root",0];function Ab(n,e,t,r,s){const o=n.anchor,i=n.focus,l=o.getNode(),a=Ye(),c=nn(a._window),u=c!==null?c.anchorNode:null,d=o.key,f=a.getElementByKey(d),g=t.length;return d!==i.key||!W(l)||(!s&&(!ia||pb<r+50)||l.isDirty()&&g<2||$y(t))&&o.offset!==i.offset&&!l.isComposing()||Ln(l)||l.isDirty()&&g>1||(s||!ia)&&f!==null&&!l.isComposing()&&u!==ua(f)||c!==null&&e!==null&&(!e.collapsed||e.startContainer!==c.anchorNode||e.startOffset!==c.anchorOffset)||l.getFormat()!==n.format||l.getStyle()!==n.style||c0(n,l)}function rp(n,e){return n!==null&&n.nodeValue!==null&&n.nodeType===Xr&&e!==0&&e!==n.nodeValue.length}function sp(n,e,t){const{anchorNode:r,anchorOffset:s,focusNode:o,focusOffset:i}=n;Cd&&(Cd=!1,rp(r,s)&&rp(o,i))||Xt(e,()=>{if(!t)return void Ie(null);if(!Hi(e,r,o))return;const l=R();if(M(l)){const a=l.anchor,c=a.getNode();if(l.isCollapsed()){n.type==="Range"&&n.anchorNode===n.focusNode&&(l.dirty=!0);const u=ac(e).event,d=u?u.timeStamp:performance.now(),[f,g,h,m,A]=mb,b=fe(),y=e.isComposing()===!1&&b.getTextContent()==="";if(d<A+200&&a.offset===h&&a.key===m)l.format=f,l.style=g;else if(a.type==="text")W(c)||q(141),l.format=c.getFormat(),l.style=c.getStyle();else if(a.type==="element"&&!y){const w=a.getNode();l.style="",w instanceof mr&&w.getChildrenSize()===0?(l.format=w.getTextFormat(),l.style=w.getTextStyle()):l.format=0}}else{const u=a.key,d=l.focus.key,f=l.getNodes(),g=f.length,h=l.isBackward(),m=h?i:s,A=h?s:i,b=h?d:u,y=h?u:d;let w=Vx,v=!1;for(let S=0;S<g;S++){const C=f[S],_=C.getTextContentSize();if(W(C)&&_!==0&&!(S===0&&C.__key===b&&m===_||S===g-1&&C.__key===y&&A===0)&&(v=!0,w&=C.getFormat(),w===0))break}l.format=v?w:0}}ne(e,Qt,void 0)})}function yb(n){if(!n.getTargetRanges)return null;const e=n.getTargetRanges();return e.length===0?null:e[0]}function uu(n,e){const t=n._compositionKey;if(wt(null),t!==null&&e!=null){if(e===""){const r=ue(t),s=ua(n.getElementByKey(t));return void(s!==null&&s.nodeValue!==null&&W(r)&&Gf(r,s.nodeValue,null,null,!0))}if(e[e.length-1]===`
5
- `){const r=R();if(M(r)){const s=r.focus;return r.anchor.set(s.key,s.offset,s.type),void ne(n,gs,null)}}}Vf(!0,n,e)}function bb(n){let e=n.__lexicalEventHandles;return e===void 0&&(e=[],n.__lexicalEventHandles=e),e}const no=new Map;function wb(n){const e=n.target,t=nn(e==null?null:e.nodeType===9?e.defaultView:e.ownerDocument.defaultView);if(t===null)return;const r=Yi(t.anchorNode);if(r===null)return;vd&&(vd=!1,Xt(r,()=>{const c=Is(),u=t.anchorNode;if(u===null)return;const d=u.nodeType;d!==Ki&&d!==Xr||Ie(hc(c,t,r,n))}));const s=Yf(r),o=s[s.length-1],i=o._key,l=no.get(i),a=l||o;a!==r&&sp(t,a,!1),sp(t,r,!0),r!==o?no.set(i,r):l&&no.delete(i)}function op(n){n._lexicalHandled=!0}function ip(n){return n._lexicalHandled===!0}function b0(n){const e=n.ownerDocument,t=ya.get(e);t===void 0&&q(162);const r=t-1;r>=0||q(164),ya.set(e,r),r===0&&e.removeEventListener("selectionchange",wb);const s=oc(n);Hf(s)?(function(i){if(i._parentEditor!==null){const l=Yf(i),a=l[l.length-1]._key;no.get(a)===i&&no.delete(a)}else no.delete(i._key)}(s),n.__lexicalEditor=null):s&&q(198);const o=bb(n);for(let i=0;i<o.length;i++)o[i]();n.__lexicalEventHandles=[]}function xd(n,e,t){Ft();const r=n.__key,s=n.getParent();if(s===null)return;const o=function(l){const a=R();if(!M(a)||!O(l))return a;const{anchor:c,focus:u}=a,d=c.getNode(),f=u.getNode();return $o(d,l)&&c.set(l.__key,0,"element"),$o(f,l)&&u.set(l.__key,0,"element"),a}(n);let i=!1;if(M(o)&&e){const l=o.anchor,a=o.focus;l.key===r&&(Ca(l,n,s,n.getPreviousSibling(),n.getNextSibling()),i=!0),a.key===r&&(Ca(a,n,s,n.getPreviousSibling(),n.getNextSibling()),i=!0)}else st(o)&&e&&n.isSelected()&&n.selectPrevious();if(M(o)&&e&&!i){const l=n.getIndexWithinParent();as(n),wa(o,s,l,-1)}else as(n);t||At(s)||s.canBeEmpty()||!s.isEmpty()||xd(s,e),e&&_t(s)&&s.isEmpty()&&s.selectEnd()}class dc{static getType(){q(64,this.name)}static clone(e){q(65,this.name)}afterCloneFrom(e){this.__parent=e.__parent,this.__next=e.__next,this.__prev=e.__prev}constructor(e){this.__type=this.constructor.getType(),this.__parent=null,this.__prev=null,this.__next=null,Jy(this,e)}getType(){return this.__type}isInline(){q(137,this.constructor.name)}isAttached(){let e=this.__key;for(;e!==null;){if(e==="root")return!0;const t=ue(e);if(t===null)break;e=t.__parent}return!1}isSelected(e){const t=e||R();if(t==null)return!1;const r=t.getNodes().some(s=>s.__key===this.__key);if(W(this))return r;if(M(t)&&t.anchor.type==="element"&&t.focus.type==="element"){if(t.isCollapsed())return!1;const s=this.getParent();if(Se(this)&&this.isInline()&&s){const o=t.isBackward()?t.focus:t.anchor,i=o.getNode();if(o.offset===i.getChildrenSize()&&i.is(s)&&i.getLastChildOrThrow().is(this))return!1}}return r}getKey(){return this.__key}getIndexWithinParent(){const e=this.getParent();if(e===null)return-1;let t=e.getFirstChild(),r=0;for(;t!==null;){if(this.is(t))return r;r++,t=t.getNextSibling()}return-1}getParent(){const e=this.getLatest().__parent;return e===null?null:ue(e)}getParentOrThrow(){const e=this.getParent();return e===null&&q(66,this.__key),e}getTopLevelElement(){let e=this;for(;e!==null;){const t=e.getParent();if(At(t))return O(e)||e===this&&Se(e)||q(194),e;e=t}return null}getTopLevelElementOrThrow(){const e=this.getTopLevelElement();return e===null&&q(67,this.__key),e}getParents(){const e=[];let t=this.getParent();for(;t!==null;)e.push(t),t=t.getParent();return e}getParentKeys(){const e=[];let t=this.getParent();for(;t!==null;)e.push(t.__key),t=t.getParent();return e}getPreviousSibling(){const e=this.getLatest().__prev;return e===null?null:ue(e)}getPreviousSiblings(){const e=[],t=this.getParent();if(t===null)return e;let r=t.getFirstChild();for(;r!==null&&!r.is(this);)e.push(r),r=r.getNextSibling();return e}getNextSibling(){const e=this.getLatest().__next;return e===null?null:ue(e)}getNextSiblings(){const e=[];let t=this.getNextSibling();for(;t!==null;)e.push(t),t=t.getNextSibling();return e}getCommonAncestor(e){const t=this.getParents(),r=e.getParents();O(this)&&t.unshift(this),O(e)&&r.unshift(e);const s=t.length,o=r.length;if(s===0||o===0||t[s-1]!==r[o-1])return null;const i=new Set(r);for(let l=0;l<s;l++){const a=t[l];if(i.has(a))return a}return null}is(e){return e!=null&&this.__key===e.__key}isBefore(e){if(this===e)return!1;if(e.isParentOf(this))return!0;if(this.isParentOf(e))return!1;const t=this.getCommonAncestor(e);let r=0,s=0,o=this;for(;;){const i=o.getParentOrThrow();if(i===t){r=o.getIndexWithinParent();break}o=i}for(o=e;;){const i=o.getParentOrThrow();if(i===t){s=o.getIndexWithinParent();break}o=i}return r<s}isParentOf(e){const t=this.__key;if(t===e.__key)return!1;let r=e;for(;r!==null;){if(r.__key===t)return!0;r=r.getParent()}return!1}getNodesBetween(e){const t=this.isBefore(e),r=[],s=new Set;let o=this;for(;o!==null;){const i=o.__key;if(s.has(i)||(s.add(i),r.push(o)),o===e)break;const l=O(o)?t?o.getFirstChild():o.getLastChild():null;if(l!==null){o=l;continue}const a=t?o.getNextSibling():o.getPreviousSibling();if(a!==null){o=a;continue}const c=o.getParentOrThrow();if(s.has(c.__key)||r.push(c),c===e)break;let u=null,d=c;do{if(d===null&&q(68),u=t?d.getNextSibling():d.getPreviousSibling(),d=d.getParent(),d===null)break;u!==null||s.has(d.__key)||r.push(d)}while(u===null);o=u}return t||r.reverse(),r}isDirty(){const e=Ye()._dirtyLeaves;return e!==null&&e.has(this.__key)}getLatest(){const e=ue(this.__key);return e===null&&q(113),e}getWritable(){Ft();const e=Vn(),t=Ye(),r=e._nodeMap,s=this.__key,o=this.getLatest(),i=t._cloneNotNeeded,l=R();if(l!==null&&l.setCachedNodes(null),i.has(s))return fa(o),o;const a=Xf(o);return i.add(s),fa(a),r.set(s,a),a}getTextContent(){return""}getTextContentSize(){return this.getTextContent().length}createDOM(e,t){q(70)}updateDOM(e,t,r){q(71)}exportDOM(e){return{element:this.createDOM(e._config,e)}}exportJSON(){q(72)}static importJSON(e){q(18,this.name)}static transform(){return null}remove(e){xd(this,!0,e)}replace(e,t){Ft();let r=R();r!==null&&(r=r.clone()),lu(this,e);const s=this.getLatest(),o=this.__key,i=e.__key,l=e.getWritable(),a=this.getParentOrThrow().getWritable(),c=a.__size;as(l);const u=s.getPreviousSibling(),d=s.getNextSibling(),f=s.__prev,g=s.__next,h=s.__parent;if(xd(s,!1,!0),u===null?a.__first=i:u.getWritable().__next=i,l.__prev=f,d===null?a.__last=i:d.getWritable().__prev=i,l.__next=g,l.__parent=h,a.__size=c,t&&(O(this)&&O(l)||q(139),this.getChildren().forEach(m=>{l.append(m)})),M(r)){Ie(r);const m=r.anchor,A=r.focus;m.key===o&&up(m,l),A.key===o&&up(A,l)}return _r()===o&&wt(i),l}insertAfter(e,t=!0){Ft(),lu(this,e);const r=this.getWritable(),s=e.getWritable(),o=s.getParent(),i=R();let l=!1,a=!1;if(o!==null){const g=e.getIndexWithinParent();if(as(s),M(i)){const h=o.__key,m=i.anchor,A=i.focus;l=m.type==="element"&&m.key===h&&m.offset===g+1,a=A.type==="element"&&A.key===h&&A.offset===g+1}}const c=this.getNextSibling(),u=this.getParentOrThrow().getWritable(),d=s.__key,f=r.__next;if(c===null?u.__last=d:c.getWritable().__prev=d,u.__size++,r.__next=d,s.__next=f,s.__prev=r.__key,s.__parent=r.__parent,t&&M(i)){const g=this.getIndexWithinParent();wa(i,u,g+1);const h=u.__key;l&&i.anchor.set(h,g+2,"element"),a&&i.focus.set(h,g+2,"element")}return e}insertBefore(e,t=!0){Ft(),lu(this,e);const r=this.getWritable(),s=e.getWritable(),o=s.__key;as(s);const i=this.getPreviousSibling(),l=this.getParentOrThrow().getWritable(),a=r.__prev,c=this.getIndexWithinParent();i===null?l.__first=o:i.getWritable().__next=o,l.__size++,r.__prev=o,s.__prev=a,s.__next=r.__key,s.__parent=r.__parent;const u=R();return t&&M(u)&&wa(u,this.getParentOrThrow(),c),e}isParentRequired(){return!1}createParentElementNode(){return re()}selectStart(){return this.selectPrevious()}selectEnd(){return this.selectNext(0,0)}selectPrevious(e,t){Ft();const r=this.getPreviousSibling(),s=this.getParentOrThrow();if(r===null)return s.select(0,0);if(O(r))return r.select();if(!W(r)){const o=r.getIndexWithinParent()+1;return s.select(o,o)}return r.select(e,t)}selectNext(e,t){Ft();const r=this.getNextSibling(),s=this.getParentOrThrow();if(r===null)return s.select();if(O(r))return r.select(0,0);if(!W(r)){const o=r.getIndexWithinParent();return s.select(o,o)}return r.select(e,t)}markDirty(){this.getWritable()}reconcileObservedMutation(e,t){this.markDirty()}}class Gi extends dc{static getType(){return"linebreak"}static clone(e){return new Gi(e.__key)}constructor(e){super(e)}getTextContent(){return`
6
- `}createDOM(){return document.createElement("br")}updateDOM(){return!1}static importDOM(){return{br:e=>function(t){const r=t.parentElement;if(r!==null&&ga(r)){const s=r.firstChild;if(s===t||s.nextSibling===t&&Cl(s)){const o=r.lastChild;if(o===t||o.previousSibling===t&&Cl(o))return!0}}return!1}(e)||function(t){const r=t.parentElement;if(r!==null&&ga(r)){const s=r.firstChild;if(s===t||s.nextSibling===t&&Cl(s))return!1;const o=r.lastChild;if(o===t||o.previousSibling===t&&Cl(o))return!0}return!1}(e)?null:{conversion:w0,priority:0}}}static importJSON(e){return Ut()}exportJSON(){return{type:"linebreak",version:1}}}function w0(n){return{node:Ut()}}function Ut(){return Me(new Gi)}function Ee(n){return n instanceof Gi}function Cl(n){return n.nodeType===Xr&&/^( |\t|\r?\n)+$/.test(n.textContent||"")}function du(n,e){return 16&e?"code":e&Rf?"mark":32&e?"sub":64&e?"sup":null}function fu(n,e){return 1&e?"strong":2&e?"em":"span"}function Cb(n,e,t,r,s){const o=r.classList;let i=qo(s,"base");i!==void 0&&o.add(...i),i=qo(s,"underlineStrikethrough");let l=!1;const a=e&aa&&e&la;i!==void 0&&(t&aa&&t&la?(l=!0,a||o.add(...i)):a&&o.remove(...i));for(const c in jr){const u=jr[c];if(i=qo(s,c),i!==void 0)if(t&u){if(l&&(c==="underline"||c==="strikethrough")){e&u&&o.remove(...i);continue}e&u&&(!a||c!=="underline")&&c!=="strikethrough"||o.add(...i)}else e&u&&o.remove(...i)}}function vb(n,e,t){const r=e.firstChild,s=t.isComposing(),o=n+(s?rc:"");if(r==null)e.textContent=o;else{const i=r.nodeValue;if(i!==o)if(s||Mr){const[l,a,c]=function(u,d){const f=u.length,g=d.length;let h=0,m=0;for(;h<f&&h<g&&u[h]===d[h];)h++;for(;m+h<f&&m+h<g&&u[f-m-1]===d[g-m-1];)m++;return[h,f-h-m,d.slice(h,g-m)]}(i,o);a!==0&&r.deleteData(l,a),r.insertData(l,c)}else r.nodeValue=o}}function lp(n,e,t,r,s,o){vb(s,n,e);const i=o.theme.text;i!==void 0&&Cb(0,0,r,n,i)}function vl(n,e){const t=document.createElement(e);return t.appendChild(n),t}class pt extends dc{static getType(){return"text"}static clone(e){return new pt(e.__text,e.__key)}afterCloneFrom(e){super.afterCloneFrom(e),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(){const e=this.getLatest();return $x[e.__mode]}getStyle(){return this.getLatest().__style}isToken(){return this.getLatest().__mode===1}isComposing(){return this.__key===_r()}isSegmented(){return this.getLatest().__mode===2}isDirectionless(){return!!(1&this.getLatest().__detail)}isUnmergeable(){return!!(2&this.getLatest().__detail)}hasFormat(e){const t=jr[e];return!!(this.getFormat()&t)}isSimpleText(){return this.__type==="text"&&this.__mode===0}getTextContent(){return this.getLatest().__text}getFormatFlags(e,t){return da(this.getLatest().__format,e,t)}canHaveFormat(){return!0}createDOM(e,t){const r=this.__format,s=du(0,r),o=fu(0,r),i=s===null?o:s,l=document.createElement(i);let a=l;this.hasFormat("code")&&l.setAttribute("spellcheck","false"),s!==null&&(a=document.createElement(o),l.appendChild(a)),lp(a,this,0,r,this.__text,e);const c=this.__style;return c!==""&&(l.style.cssText=c),l}updateDOM(e,t,r){const s=this.__text,o=e.__format,i=this.__format,l=du(0,o),a=du(0,i),c=fu(0,o),u=fu(0,i);if((l===null?c:l)!==(a===null?u:a))return!0;if(l===a&&c!==u){const m=t.firstChild;m==null&&q(48);const A=document.createElement(u);return lp(A,this,0,i,s,r),t.replaceChild(A,m),!1}let d=t;a!==null&&l!==null&&(d=t.firstChild,d==null&&q(49)),vb(s,d,this);const f=r.theme.text;f!==void 0&&o!==i&&Cb(0,o,i,d,f);const g=e.__style,h=this.__style;return g!==h&&(t.style.cssText=h),!1}static importDOM(){return{"#text":()=>({conversion:S0,priority:0}),b:()=>({conversion:v0,priority:0}),code:()=>({conversion:br,priority:0}),em:()=>({conversion:br,priority:0}),i:()=>({conversion:br,priority:0}),s:()=>({conversion:br,priority:0}),span:()=>({conversion:C0,priority:0}),strong:()=>({conversion:br,priority:0}),sub:()=>({conversion:br,priority:0}),sup:()=>({conversion:br,priority:0}),u:()=>({conversion:br,priority:0})}}static importJSON(e){const t=Fe(e.text);return t.setFormat(e.format),t.setDetail(e.detail),t.setMode(e.mode),t.setStyle(e.style),t}exportDOM(e){let{element:t}=super.exportDOM(e);return t!==null&&lt(t)||q(132),t.style.whiteSpace="pre-wrap",this.hasFormat("bold")&&(t=vl(t,"b")),this.hasFormat("italic")&&(t=vl(t,"i")),this.hasFormat("strikethrough")&&(t=vl(t,"s")),this.hasFormat("underline")&&(t=vl(t,"u")),{element:t}}exportJSON(){return{detail:this.getDetail(),format:this.getFormat(),mode:this.getMode(),style:this.getStyle(),text:this.getTextContent(),type:"text",version:1}}selectionTransform(e,t){}setFormat(e){const t=this.getWritable();return t.__format=typeof e=="string"?jr[e]:e,t}setDetail(e){const t=this.getWritable();return t.__detail=typeof e=="string"?Xx[e]:e,t}setStyle(e){const t=this.getWritable();return t.__style=e,t}toggleFormat(e){const t=da(this.getFormat(),e,null);return this.setFormat(t)}toggleDirectionless(){const e=this.getWritable();return e.__detail^=1,e}toggleUnmergeable(){const e=this.getWritable();return e.__detail^=2,e}setMode(e){const t=qx[e];if(this.__mode===t)return this;const r=this.getWritable();return r.__mode=t,r}setTextContent(e){if(this.__text===e)return this;const t=this.getWritable();return t.__text=e,t}select(e,t){Ft();let r=e,s=t;const o=R(),i=this.getTextContent(),l=this.__key;if(typeof i=="string"){const a=i.length;r===void 0&&(r=a),s===void 0&&(s=a)}else r=0,s=0;if(!M(o))return kb(l,r,l,s,"text","text");{const a=_r();a!==o.anchor.key&&a!==o.focus.key||wt(l),o.setTextNodeRange(this,r,this,s)}return o}selectStart(){return this.select(0,0)}selectEnd(){const e=this.getTextContentSize();return this.select(e,e)}spliceText(e,t,r,s){const o=this.getWritable(),i=o.__text,l=r.length;let a=e;a<0&&(a=l+a,a<0&&(a=0));const c=R();if(s&&M(c)){const d=e+l;c.setTextNodeRange(o,d,o,d)}const u=i.slice(0,a)+r+i.slice(a+t);return o.__text=u,o}canInsertTextBefore(){return!0}canInsertTextAfter(){return!0}splitText(...e){Ft();const t=this.getLatest(),r=t.getTextContent(),s=t.__key,o=_r(),i=new Set(e),l=[],a=r.length;let c="";for(let S=0;S<a;S++)c!==""&&i.has(S)&&(l.push(c),c=""),c+=r[S];c!==""&&l.push(c);const u=l.length;if(u===0)return[];if(l[0]===r)return[t];const d=l[0],f=t.getParent();let g;const h=t.getFormat(),m=t.getStyle(),A=t.__detail;let b=!1;t.isSegmented()?(g=Fe(d),g.__format=h,g.__style=m,g.__detail=A,b=!0):(g=t.getWritable(),g.__text=d);const y=R(),w=[g];let v=d.length;for(let S=1;S<u;S++){const C=l[S],_=C.length,k=Fe(C).getWritable();k.__format=h,k.__style=m,k.__detail=A;const T=k.__key,D=v+_;if(M(y)){const L=y.anchor,N=y.focus;L.key===s&&L.type==="text"&&L.offset>v&&L.offset<=D&&(L.key=T,L.offset-=v,y.dirty=!0),N.key===s&&N.type==="text"&&N.offset>v&&N.offset<=D&&(N.key=T,N.offset-=v,y.dirty=!0)}o===s&&wt(T),v=D,w.push(k)}if(f!==null){(function(_){const k=_.getPreviousSibling(),T=_.getNextSibling();k!==null&&fa(k),T!==null&&fa(T)})(this);const S=f.getWritable(),C=this.getIndexWithinParent();b?(S.splice(C,0,w),this.remove()):S.splice(C,1,w),M(y)&&wa(y,f,C,u-1)}return w}mergeWithSibling(e){const t=e===this.getPreviousSibling();t||e===this.getNextSibling()||q(50);const r=this.__key,s=e.__key,o=this.__text,i=o.length;_r()===s&&wt(r);const l=R();if(M(l)){const d=l.anchor,f=l.focus;d!==null&&d.key===s&&(mp(d,t,r,e,i),l.dirty=!0),f!==null&&f.key===s&&(mp(f,t,r,e,i),l.dirty=!0)}const a=e.__text,c=t?a+o:o+a;this.setTextContent(c);const u=this.getWritable();return e.remove(),u}isTextEntity(){return!1}}function C0(n){return{forChild:qf(n.style),node:null}}function v0(n){const e=n,t=e.style.fontWeight==="normal";return{forChild:qf(e.style,t?void 0:"bold"),node:null}}const ap=new WeakMap;function x0(n){return n.nodeName==="PRE"||n.nodeType===Ki&&n.style!==void 0&&n.style.whiteSpace!==void 0&&n.style.whiteSpace.startsWith("pre")}function S0(n){const e=n;n.parentElement===null&&q(129);let t=e.textContent||"";if(function(r){let s,o=r.parentNode;const i=[r];for(;o!==null&&(s=ap.get(o))===void 0&&!x0(o);)i.push(o),o=o.parentNode;const l=s===void 0?o:s;for(let a=0;a<i.length;a++)ap.set(i[a],l);return l}(e)!==null){const r=t.split(/(\r?\n|\t)/),s=[],o=r.length;for(let i=0;i<o;i++){const l=r[i];l===`
7
- `||l===`\r
8
- `?s.push(Ut()):l===" "?s.push(qt()):l!==""&&s.push(Fe(l))}return{node:s}}if(t=t.replace(/\r/g,"").replace(/[ \t\n]+/g," "),t==="")return{node:null};if(t[0]===" "){let r=e,s=!0;for(;r!==null&&(r=cp(r,!1))!==null;){const o=r.textContent||"";if(o.length>0){/[ \t\n]$/.test(o)&&(t=t.slice(1)),s=!1;break}}s&&(t=t.slice(1))}if(t[t.length-1]===" "){let r=e,s=!0;for(;r!==null&&(r=cp(r,!0))!==null;)if((r.textContent||"").replace(/^( |\t|\r?\n)+/,"").length>0){s=!1;break}s&&(t=t.slice(0,t.length-1))}return t===""?{node:null}:{node:Fe(t)}}function cp(n,e){let t=n;for(;;){let r;for(;(r=e?t.nextSibling:t.previousSibling)===null;){const o=t.parentElement;if(o===null)return null;t=o}if(t=r,t.nodeType===Ki){const o=t.style.display;if(o===""&&!fd(t)||o!==""&&!o.startsWith("inline"))return null}let s=t;for(;(s=e?t.firstChild:t.lastChild)!==null;)t=s;if(t.nodeType===Xr)return t;if(t.nodeName==="BR")return null}}const k0={code:"code",em:"italic",i:"italic",s:"strikethrough",strong:"bold",sub:"subscript",sup:"superscript",u:"underline"};function br(n){const e=k0[n.nodeName.toLowerCase()];return e===void 0?{node:null}:{forChild:qf(n.style,e),node:null}}function Fe(n=""){return Me(new pt(n))}function W(n){return n instanceof pt}function qf(n,e){const t=n.fontWeight,r=n.textDecoration.split(" "),s=t==="700"||t==="bold",o=r.includes("line-through"),i=n.fontStyle==="italic",l=r.includes("underline"),a=n.verticalAlign;return c=>(W(c)&&(s&&!c.hasFormat("bold")&&c.toggleFormat("bold"),o&&!c.hasFormat("strikethrough")&&c.toggleFormat("strikethrough"),i&&!c.hasFormat("italic")&&c.toggleFormat("italic"),l&&!c.hasFormat("underline")&&c.toggleFormat("underline"),a!=="sub"||c.hasFormat("subscript")||c.toggleFormat("subscript"),a!=="super"||c.hasFormat("superscript")||c.toggleFormat("superscript"),e&&!c.hasFormat(e)&&c.toggleFormat(e)),c)}class Zi extends pt{static getType(){return"tab"}static clone(e){return new Zi(e.__key)}afterCloneFrom(e){super.afterCloneFrom(e),this.__text=e.__text}constructor(e){super(" ",e),this.__detail=2}static importDOM(){return null}static importJSON(e){const t=qt();return t.setFormat(e.format),t.setStyle(e.style),t}exportJSON(){return{...super.exportJSON(),type:"tab",version:1}}setTextContent(e){q(126)}setDetail(e){q(127)}setMode(e){q(128)}canInsertTextBefore(){return!1}canInsertTextAfter(){return!1}}function qt(){return Me(new Zi)}function nt(n){return n instanceof Zi}class E0{constructor(e,t,r){this._selection=null,this.key=e,this.offset=t,this.type=r}is(e){return this.key===e.key&&this.offset===e.offset&&this.type===e.type}isBefore(e){let t=this.getNode(),r=e.getNode();const s=this.offset,o=e.offset;if(O(t)){const i=t.getDescendantByIndex(s);t=i??t}if(O(r)){const i=r.getDescendantByIndex(o);r=i??r}return t===r?s<o:t.isBefore(r)}getNode(){const e=ue(this.key);return e===null&&q(20),e}set(e,t,r){const s=this._selection,o=this.key;this.key=e,this.offset=t,this.type=r,Co()||(_r()===o&&wt(e),s!==null&&(s.setCachedNodes(null),s.dirty=!0))}}function dn(n,e,t){return new E0(n,e,t)}function hu(n,e){let t=e.__key,r=n.offset,s="element";if(W(e)){s="text";const o=e.getTextContentSize();r>o&&(r=o)}else if(!O(e)){const o=e.getNextSibling();if(W(o))t=o.__key,r=0,s="text";else{const i=e.getParent();i&&(t=i.__key,r=e.getIndexWithinParent()+1)}}n.set(t,r,s)}function up(n,e){if(O(e)){const t=e.getLastDescendant();O(t)||W(t)?hu(n,t):hu(n,e)}else hu(n,e)}function vr(n,e,t,r){n.key=e,n.offset=t,n.type=r}class fc{constructor(e){this._cachedNodes=null,this._nodes=e,this.dirty=!1}getCachedNodes(){return this._cachedNodes}setCachedNodes(e){this._cachedNodes=e}is(e){if(!st(e))return!1;const t=this._nodes,r=e._nodes;return t.size===r.size&&Array.from(t).every(s=>r.has(s))}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 fc(new Set(this._nodes))}extract(){return this.getNodes()}insertRawText(e){}insertText(){}insertNodes(e){const t=this.getNodes(),r=t.length,s=t[r-1];let o;if(W(s))o=s.select();else{const i=s.getIndexWithinParent()+1;o=s.getParentOrThrow().select(i,i)}o.insertNodes(e);for(let i=0;i<r;i++)t[i].remove()}getNodes(){const e=this._cachedNodes;if(e!==null)return e;const t=this._nodes,r=[];for(const s of t){const o=ue(s);o!==null&&r.push(o)}return Co()||(this._cachedNodes=r),r}getTextContent(){const e=this.getNodes();let t="";for(let r=0;r<e.length;r++)t+=e[r].getTextContent();return t}}function M(n){return n instanceof Qr}class Qr{constructor(e,t,r,s){this.anchor=e,this.focus=t,e._selection=this,t._selection=this,this._cachedNodes=null,this.format=r,this.style=s,this.dirty=!1}getCachedNodes(){return this._cachedNodes}setCachedNodes(e){this._cachedNodes=e}is(e){return!!M(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(){const e=this._cachedNodes;if(e!==null)return e;const t=this.anchor,r=this.focus,s=t.isBefore(r),o=s?t:r,i=s?r:t;let l=o.getNode(),a=i.getNode();const c=o.offset,u=i.offset;if(O(l)){const f=l.getDescendantByIndex(c);l=f??l}if(O(a)){let f=a.getDescendantByIndex(u);f!==null&&f!==l&&a.getChildAtIndex(u)===f&&(f=f.getPreviousSibling()),a=f??a}let d;return d=l.is(a)?O(l)&&l.getChildrenSize()>0?[]:[l]:l.getNodesBetween(a),Co()||(this._cachedNodes=d),d}setTextNodeRange(e,t,r,s){vr(this.anchor,e.__key,t,"text"),vr(this.focus,r.__key,s,"text"),this._cachedNodes=null,this.dirty=!0}getTextContent(){const e=this.getNodes();if(e.length===0)return"";const t=e[0],r=e[e.length-1],s=this.anchor,o=this.focus,i=s.isBefore(o),[l,a]=Sd(this);let c="",u=!0;for(let d=0;d<e.length;d++){const f=e[d];if(O(f)&&!f.isInline())u||(c+=`
9
- `),u=!f.isEmpty();else if(u=!1,W(f)){let g=f.getTextContent();f===t?f===r?s.type==="element"&&o.type==="element"&&o.offset!==s.offset||(g=l<a?g.slice(l,a):g.slice(a,l)):g=i?g.slice(l):g.slice(a):f===r&&(g=i?g.slice(0,a):g.slice(0,l)),c+=g}else!Se(f)&&!Ee(f)||f===r&&this.isCollapsed()||(c+=f.getTextContent())}return c}applyDOMRange(e){const t=Ye(),r=t.getEditorState()._selection,s=Sb(e.startContainer,e.startOffset,e.endContainer,e.endOffset,t,r);if(s===null)return;const[o,i]=s;vr(this.anchor,o.key,o.offset,o.type),vr(this.focus,i.key,i.offset,i.type),this._cachedNodes=null}clone(){const e=this.anchor,t=this.focus;return new Qr(dn(e.key,e.offset,e.type),dn(t.key,t.offset,t.type),this.format,this.style)}toggleFormat(e){this.format=da(this.format,e,null),this.dirty=!0}setStyle(e){this.style=e,this.dirty=!0}hasFormat(e){const t=jr[e];return!!(this.format&t)}insertRawText(e){const t=e.split(/(\r?\n|\t)/),r=[],s=t.length;for(let o=0;o<s;o++){const i=t[o];i===`
10
- `||i===`\r
11
- `?r.push(Ut()):i===" "?r.push(qt()):r.push(Fe(i))}this.insertNodes(r)}insertText(e){const t=this.anchor,r=this.focus,s=this.format,o=this.style;let i=t,l=r;!this.isCollapsed()&&r.isBefore(t)&&(i=r,l=t),i.type==="element"&&function(A,b,y,w){const v=A.getNode(),S=v.getChildAtIndex(A.offset),C=Fe(),_=_t(v)?re().append(C):C;C.setFormat(y),C.setStyle(w),S===null?v.append(_):S.insertBefore(_),A.is(b)&&b.set(C.__key,0,"text"),A.set(C.__key,0,"text")}(i,l,s,o);const a=i.offset;let c=l.offset;const u=this.getNodes(),d=u.length;let f=u[0];W(f)||q(26);const g=f.getTextContent().length,h=f.getParentOrThrow();let m=u[d-1];if(d===1&&l.type==="element"&&(c=g,l.set(i.key,c,"text")),this.isCollapsed()&&a===g&&(f.isSegmented()||f.isToken()||!f.canInsertTextAfter()||!h.canInsertTextAfter()&&f.getNextSibling()===null)){let A=f.getNextSibling();if(W(A)&&A.canInsertTextBefore()&&!Ln(A)||(A=Fe(),A.setFormat(s),A.setStyle(o),h.canInsertTextAfter()?f.insertAfter(A):h.insertAfter(A)),A.select(0,0),f=A,e!=="")return void this.insertText(e)}else if(this.isCollapsed()&&a===0&&(f.isSegmented()||f.isToken()||!f.canInsertTextBefore()||!h.canInsertTextBefore()&&f.getPreviousSibling()===null)){let A=f.getPreviousSibling();if(W(A)&&!Ln(A)||(A=Fe(),A.setFormat(s),h.canInsertTextBefore()?f.insertBefore(A):h.insertBefore(A)),A.select(),f=A,e!=="")return void this.insertText(e)}else if(f.isSegmented()&&a!==g){const A=Fe(f.getTextContent());A.setFormat(s),f.replace(A),f=A}else if(!this.isCollapsed()&&e!==""){const A=m.getParent();if(!h.canInsertTextBefore()||!h.canInsertTextAfter()||O(A)&&(!A.canInsertTextBefore()||!A.canInsertTextAfter()))return this.insertText(""),xb(this.anchor,this.focus,null),void this.insertText(e)}if(d===1){if(f.isToken()){const w=Fe(e);return w.select(),void f.replace(w)}const A=f.getFormat(),b=f.getStyle();if(a!==c||A===s&&b===o){if(nt(f)){const w=Fe(e);return w.setFormat(s),w.setStyle(o),w.select(),void f.replace(w)}}else{if(f.getTextContent()!==""){const w=Fe(e);if(w.setFormat(s),w.setStyle(o),w.select(),a===0)f.insertBefore(w,!1);else{const[v]=f.splitText(a);v.insertAfter(w,!1)}return void(w.isComposing()&&this.anchor.type==="text"&&(this.anchor.offset-=e.length))}f.setFormat(s),f.setStyle(o)}const y=c-a;f=f.spliceText(a,y,e,!0),f.getTextContent()===""?f.remove():this.anchor.type==="text"&&(f.isComposing()?this.anchor.offset-=e.length:(this.format=A,this.style=b))}else{const A=new Set([...f.getParentKeys(),...m.getParentKeys()]),b=O(f)?f:f.getParentOrThrow();let y=O(m)?m:m.getParentOrThrow(),w=m;if(!b.is(y)&&y.isInline())do w=y,y=y.getParentOrThrow();while(y.isInline());if(l.type==="text"&&(c!==0||m.getTextContent()==="")||l.type==="element"&&m.getIndexWithinParent()<c)if(W(m)&&!m.isToken()&&c!==m.getTextContentSize()){if(m.isSegmented()){const k=Fe(m.getTextContent());m.replace(k),m=k}_t(l.getNode())||l.type!=="text"||(m=m.spliceText(0,c,"")),A.add(m.__key)}else{const k=m.getParentOrThrow();k.canBeEmpty()||k.getChildrenSize()!==1?m.remove():k.remove()}else A.add(m.__key);const v=y.getChildren(),S=new Set(u),C=b.is(y),_=b.isInline()&&f.getNextSibling()===null?b:f;for(let k=v.length-1;k>=0;k--){const T=v[k];if(T.is(f)||O(T)&&T.isParentOf(f))break;T.isAttached()&&(!S.has(T)||T.is(w)?C||_.insertAfter(T,!1):T.remove())}if(!C){let k=y,T=null;for(;k!==null;){const D=k.getChildren(),L=D.length;(L===0||D[L-1].is(T))&&(A.delete(k.__key),T=k),k=k.getParent()}}if(f.isToken())if(a===g)f.select();else{const k=Fe(e);k.select(),f.replace(k)}else f=f.spliceText(a,g-a,e,!0),f.getTextContent()===""?f.remove():f.isComposing()&&this.anchor.type==="text"&&(this.anchor.offset-=e.length);for(let k=1;k<d;k++){const T=u[k],D=T.__key;A.has(D)||T.remove()}}}removeText(){if(this.isCollapsed())return;const{anchor:e,focus:t}=this,r=this.getNodes(),s=this.isBackward()?t:e,o=this.isBackward()?e:t;let i=s.getNode(),l=o.getNode();const a=Fo(i,Cr),c=Fo(l,Cr);W(i)&&i.isToken()&&s.offset<i.getTextContentSize()&&(s.offset=0),o.offset>0&&W(l)&&l.isToken()&&(o.offset=l.getTextContentSize()),r.forEach(d=>{$o(i,d)||$o(l,d)||d.getKey()===i.getKey()||d.getKey()===l.getKey()||d.remove()});const u=(d,f)=>{if(d.getTextContent()==="")d.remove();else if(f!==0&&Ln(d)){const g=Fe(d.getTextContent());return g.setFormat(d.getFormat()),g.setStyle(d.getStyle()),d.replace(g)}};if(i===l&&W(i)){const d=Math.abs(t.offset-e.offset);return i.spliceText(s.offset,d,"",!0),void u(i,d)}if(W(i)){const d=i.getTextContentSize()-s.offset;i.spliceText(s.offset,d,""),i=u(i,d)||i}W(l)&&(l.spliceText(0,o.offset,""),l=u(l,o.offset)||l),i.isAttached()&&W(i)?i.selectEnd():l.isAttached()&&W(l)&&l.selectStart(),O(a)&&O(c)&&a!==c&&(a.append(...c.getChildren()),c.remove(),o.set(s.key,s.offset,s.type))}formatText(e,t=null){if(this.isCollapsed())return this.toggleFormat(e),void wt(null);const r=this.getNodes(),s=[];for(const v of r)W(v)&&s.push(v);const o=v=>{r.forEach(S=>{if(at(S)){const C=S.getFormatFlags(e,v);S.setTextFormat(C)}})},i=s.length;if(i===0)return this.toggleFormat(e),wt(null),void o(t);const l=this.anchor,a=this.focus,c=this.isBackward(),u=c?a:l,d=c?l:a;let f=0,g=s[0],h=u.type==="element"?0:u.offset;if(u.type==="text"&&h===g.getTextContentSize()&&(f=1,g=s[1],h=0),g==null)return;const m=g.getFormatFlags(e,t);o(m);const A=i-1;let b=s[A];const y=d.type==="text"?d.offset:b.getTextContentSize();if(g.is(b)){if(h===y)return;if(Ln(g)||h===0&&y===g.getTextContentSize())g.setFormat(m);else{const v=g.splitText(h,y),S=h===0?v[0]:v[1];S.setFormat(m),u.type==="text"&&u.set(S.__key,0,"text"),d.type==="text"&&d.set(S.__key,y-h,"text")}return void(this.format=m)}h===0||Ln(g)||([,g]=g.splitText(h),h=0),g.setFormat(m);const w=b.getFormatFlags(e,m);y>0&&(y===b.getTextContentSize()||Ln(b)||([b]=b.splitText(y)),b.setFormat(w));for(let v=f+1;v<A;v++){const S=s[v],C=S.getFormatFlags(e,w);S.setFormat(C)}u.type==="text"&&u.set(g.__key,h,"text"),d.type==="text"&&d.set(b.__key,y,"text"),this.format=m|w}insertNodes(e){if(e.length===0)return;if(this.anchor.key==="root"){this.insertParagraph();const h=R();return M(h)||q(134),h.insertNodes(e)}const t=(this.isBackward()?this.focus:this.anchor).getNode(),r=Fo(t,Cr),s=e[e.length-1];if(O(r)&&"__language"in r){if("__language"in e[0])this.insertText(e[0].getTextContent());else{const h=gu(this);r.splice(h,0,e),s.selectEnd()}return}if(!e.some(h=>(O(h)||Se(h))&&!h.isInline())){O(r)||q(211,t.constructor.name,t.getType());const h=gu(this);return r.splice(h,0,e),void s.selectEnd()}const o=function(h){const m=re();let A=null;for(let b=0;b<h.length;b++){const y=h[b],w=Ee(y);if(w||Se(y)&&y.isInline()||O(y)&&y.isInline()||W(y)||y.isParentRequired()){if(A===null&&(A=y.createParentElementNode(),m.append(A),w))continue;A!==null&&A.append(y)}else m.append(y),A=null}return m}(e),i=o.getLastDescendant(),l=o.getChildren(),a=!O(r)||!r.isEmpty()?this.insertParagraph():null,c=l[l.length-1];let u=l[0];var d;O(d=u)&&Cr(d)&&!d.isEmpty()&&O(r)&&(!r.isEmpty()||r.canMergeWhenEmpty())&&(O(r)||q(211,t.constructor.name,t.getType()),r.append(...u.getChildren()),u=l[1]),u&&(r===null&&q(212,t.constructor.name,t.getType()),function(h,m,A){const b=m.getParentOrThrow().getLastChild();let y=m;const w=[m];for(;y!==b;)y.getNextSibling()||q(140),y=y.getNextSibling(),w.push(y);let v=h;for(const S of w)v=v.insertAfter(S)}(r,u));const f=Fo(i,Cr);a&&O(f)&&(a.canMergeWhenEmpty()||Cr(c))&&(f.append(...a.getChildren()),a.remove()),O(r)&&r.isEmpty()&&r.remove(),i.selectEnd();const g=O(r)?r.getLastChild():null;Ee(g)&&f!==r&&g.remove()}insertParagraph(){if(this.anchor.key==="root"){const i=re();return fe().splice(this.anchor.offset,0,[i]),i.select(),i}const e=gu(this),t=Fo(this.anchor.getNode(),Cr);O(t)||q(213);const r=t.getChildAtIndex(e),s=r?[r,...r.getNextSiblings()]:[],o=t.insertNewAfter(this,!1);return o?(o.append(...s),o.selectStart(),o):null}insertLineBreak(e){const t=Ut();if(this.insertNodes([t]),e){const r=t.getParentOrThrow(),s=t.getIndexWithinParent();r.select(s,s)}}extract(){const e=this.getNodes(),t=e.length,r=t-1,s=this.anchor,o=this.focus;let i=e[0],l=e[r];const[a,c]=Sd(this);if(t===0)return[];if(t===1){if(W(i)&&!this.isCollapsed()){const d=a>c?c:a,f=a>c?a:c,g=i.splitText(d,f),h=d===0?g[0]:g[1];return h!=null?[h]:[]}return[i]}const u=s.isBefore(o);if(W(i)){const d=u?a:c;d===i.getTextContentSize()?e.shift():d!==0&&([,i]=i.splitText(d),e[0]=i)}if(W(l)){const d=l.getTextContent().length,f=u?c:a;f===0?e.pop():f!==d&&([l]=l.splitText(f),e[r]=l)}return e}modify(e,t,r){const s=this.focus,o=this.anchor,i=e==="move",l=gi(s,t);if(Se(l)&&!l.isIsolated()){if(i&&l.isKeyboardSelectable()){const g=kd();return g.add(l.__key),void Ie(g)}const f=t?l.getPreviousSibling():l.getNextSibling();if(W(f)){const g=f.__key,h=t?f.getTextContent().length:0;return s.set(g,h,"text"),void(i&&o.set(g,h,"text"))}{const g=l.getParentOrThrow();let h,m;return O(f)?(m=f.__key,h=t?f.getChildrenSize():0):(h=l.getIndexWithinParent(),m=g.__key,t||h++),s.set(m,h,"element"),void(i&&o.set(m,h,"element"))}}const a=Ye(),c=nn(a._window);if(!c)return;const u=a._blockCursorElement,d=a._rootElement;if(d===null||u===null||!O(l)||l.isInline()||l.canBeEmpty()||Jf(u,a,d),function(f,g,h,m){f.modify(g,h,m)}(c,e,t?"backward":"forward",r),c.rangeCount>0){const f=c.getRangeAt(0),g=this.anchor.getNode(),h=_t(g)?g:d0(g);if(this.applyDOMRange(f),this.dirty=!0,!i){const m=this.getNodes(),A=[];let b=!1;for(let y=0;y<m.length;y++){const w=m[y];$o(w,h)?A.push(w):b=!0}if(b&&A.length>0)if(t){const y=A[0];O(y)?y.selectStart():y.getParentOrThrow().selectStart()}else{const y=A[A.length-1];O(y)?y.selectEnd():y.getParentOrThrow().selectEnd()}c.anchorNode===f.startContainer&&c.anchorOffset===f.startOffset||function(y){const w=y.focus,v=y.anchor,S=v.key,C=v.offset,_=v.type;vr(v,w.key,w.offset,w.type),vr(w,S,C,_),y._cachedNodes=null}(this)}}}forwardDeletion(e,t,r){if(!r&&(e.type==="element"&&O(t)&&e.offset===t.getChildrenSize()||e.type==="text"&&e.offset===t.getTextContentSize())){const s=t.getParent(),o=t.getNextSibling()||(s===null?null:s.getNextSibling());if(O(o)&&o.isShadowRoot())return!0}return!1}deleteCharacter(e){const t=this.isCollapsed();if(this.isCollapsed()){const r=this.anchor;let s=r.getNode();if(this.forwardDeletion(r,s,e))return;const o=this.focus,i=gi(o,e);if(Se(i)&&!i.isIsolated()){if(i.isKeyboardSelectable()&&O(s)&&s.getChildrenSize()===0){s.remove();const l=kd();l.add(i.__key),Ie(l)}else i.remove(),Ye().dispatchCommand(Qt,void 0);return}if(!e&&O(i)&&O(s)&&s.isEmpty())return s.remove(),void i.selectStart();if(this.modify("extend",e,"character"),this.isCollapsed()){if(e&&r.offset===0&&(r.type==="element"?r.getNode():r.getNode().getParentOrThrow()).collapseAtStart(this))return}else{const l=o.type==="text"?o.getNode():null;if(s=r.type==="text"?r.getNode():null,l!==null&&l.isSegmented()){const a=o.offset,c=l.getTextContentSize();if(l.is(s)||e&&a!==c||!e&&a!==0)return void fp(l,e,a)}else if(s!==null&&s.isSegmented()){const a=r.offset,c=s.getTextContentSize();if(s.is(l)||e&&a!==0||!e&&a!==c)return void fp(s,e,a)}(function(a,c){const u=a.anchor,d=a.focus,f=u.getNode(),g=d.getNode();if(f===g&&u.type==="text"&&d.type==="text"){const h=u.offset,m=d.offset,A=h<m,b=A?h:m,y=A?m:h,w=y-1;b!==w&&($y(f.getTextContent().slice(b,y))||(c?d.offset=w:u.offset=w))}})(this,e)}}if(this.removeText(),e&&!t&&this.isCollapsed()&&this.anchor.type==="element"&&this.anchor.offset===0){const r=this.anchor.getNode();r.isEmpty()&&_t(r.getParent())&&r.getIndexWithinParent()===0&&r.collapseAtStart(this)}}deleteLine(e){if(this.isCollapsed()){const t=this.anchor.type==="element";if(t&&this.insertText(" "),this.modify("extend",e,"lineboundary"),this.isCollapsed()&&this.anchor.offset===0&&this.modify("extend",e,"character"),t){const r=e?this.anchor:this.focus;r.set(r.key,r.offset+1,r.type)}}this.removeText()}deleteWord(e){if(this.isCollapsed()){const t=this.anchor,r=t.getNode();if(this.forwardDeletion(t,r,e))return;this.modify("extend",e,"word")}this.removeText()}isBackward(){return this.focus.isBefore(this.anchor)}getStartEndPoints(){return[this.anchor,this.focus]}}function st(n){return n instanceof fc}function dp(n){const e=n.offset;if(n.type==="text")return e;const t=n.getNode();return e===t.getChildrenSize()?t.getTextContent().length:0}function Sd(n){const e=n.getStartEndPoints();if(e===null)return[0,0];const[t,r]=e;return t.type==="element"&&r.type==="element"&&t.key===r.key&&t.offset===r.offset?[0,0]:[dp(t),dp(r)]}function fp(n,e,t){const r=n,s=r.getTextContent().split(/(?=\s)/g),o=s.length;let i=0,l=0;for(let c=0;c<o;c++){const u=c===o-1;if(l=i,i+=s[c].length,e&&i===t||i>t||u){s.splice(c,1),u&&(l=void 0);break}}const a=s.join("").trim();a===""?r.remove():(r.setTextContent(a),r.select(l,l))}function hp(n,e,t,r){let s,o=e;if(n.nodeType===Ki){let i=!1;const l=n.childNodes,a=l.length,c=r._blockCursorElement;o===a&&(i=!0,o=a-1);let u=l[o],d=!1;if(u===c)u=l[o+1],d=!0;else if(c!==null){const f=c.parentNode;n===f&&e>Array.prototype.indexOf.call(f.children,c)&&o--}if(s=Xs(u),W(s))o=Zg(s,i);else{let f=Xs(n);if(f===null)return null;if(O(f)){const g=r.getElementByKey(f.getKey());g===null&&q(214),[f,o]=f.getDOMSlot(g).resolveChildIndex(f,g,n,e),O(f)||q(215),i&&o>=f.getChildrenSize()&&(o=Math.max(0,f.getChildrenSize()-1));let m=f.getChildAtIndex(o);if(O(m)&&function(A,b,y){const w=A.getParent();return y===null||w===null||!w.canBeEmpty()||w!==y.getNode()}(m,0,t)){const A=i?m.getLastDescendant():m.getFirstDescendant();A===null?f=m:(m=A,f=O(m)?m:m.getParentOrThrow()),o=0}W(m)?(s=m,f=null,o=Zg(m,i)):m!==f&&i&&!d&&(O(f)||q(216),o=Math.min(f.getChildrenSize(),o+1))}else{const g=f.getIndexWithinParent();o=e===0&&Se(f)&&Xs(n)===f?g:g+1,f=f.getParentOrThrow()}if(O(f))return dn(f.__key,o,"element")}}else s=Xs(n);return W(s)?dn(s.__key,o,"text"):null}function gp(n,e,t){const r=n.offset,s=n.getNode();if(r===0){const o=s.getPreviousSibling(),i=s.getParent();if(e){if((t||!e)&&o===null&&O(i)&&i.isInline()){const l=i.getPreviousSibling();W(l)&&(n.key=l.__key,n.offset=l.getTextContent().length)}}else O(o)&&!t&&o.isInline()?(n.key=o.__key,n.offset=o.getChildrenSize(),n.type="element"):W(o)&&(n.key=o.__key,n.offset=o.getTextContent().length)}else if(r===s.getTextContent().length){const o=s.getNextSibling(),i=s.getParent();if(e&&O(o)&&o.isInline())n.key=o.__key,n.offset=0,n.type="element";else if((t||e)&&o===null&&O(i)&&i.isInline()&&!i.canInsertTextAfter()){const l=i.getNextSibling();W(l)&&(n.key=l.__key,n.offset=0)}}}function xb(n,e,t){if(n.type==="text"&&e.type==="text"){const r=n.isBefore(e),s=n.is(e);gp(n,r,s),gp(e,!r,s),s&&(e.key=n.key,e.offset=n.offset,e.type=n.type);const o=Ye();if(o.isComposing()&&o._compositionKey!==n.key&&M(t)){const i=t.anchor,l=t.focus;vr(n,i.key,i.offset,i.type),vr(e,l.key,l.offset,l.type)}}}function Sb(n,e,t,r,s,o){if(n===null||t===null||!Hi(s,n,t))return null;const i=hp(n,e,M(o)?o.anchor:null,s);if(i===null)return null;const l=hp(t,r,M(o)?o.focus:null,s);if(l===null)return null;if(i.type==="element"&&l.type==="element"){const a=Xs(n),c=Xs(t);if(Se(a)&&Se(c))return null}return xb(i,l,o),[i,l]}function ba(n){return O(n)&&!n.isInline()}function kb(n,e,t,r,s,o){const i=Vn(),l=new Qr(dn(n,e,s),dn(t,r,o),0,"");return l.dirty=!0,i._selection=l,l}function Ji(){const n=dn("root",0,"element"),e=dn("root",0,"element");return new Qr(n,e,0,"")}function kd(){return new fc(new Set)}function _0(n,e){return hc(null,n,e,null)}function hc(n,e,t,r){const s=t._window;if(s===null)return null;const o=r||s.event,i=o?o.type:void 0,l=i==="selectionchange",a=!ud&&(l||i==="beforeinput"||i==="compositionstart"||i==="compositionend"||i==="click"&&o&&o.detail===3||i==="drop"||i===void 0);let c,u,d,f;if(M(n)&&!a)return n.clone();if(e===null)return null;if(c=e.anchorNode,u=e.focusNode,d=e.anchorOffset,f=e.focusOffset,l&&M(n)&&!Hi(t,c,u))return n.clone();const g=Sb(c,d,u,f,t,n);if(g===null)return null;const[h,m]=g;return new Qr(h,m,M(n)?n.format:0,M(n)?n.style:"")}function R(){return Vn()._selection}function Is(){return Ye()._editorState._selection}function wa(n,e,t,r=1){const s=n.anchor,o=n.focus,i=s.getNode(),l=o.getNode();if(!e.is(i)&&!e.is(l))return;const a=e.__key;if(n.isCollapsed()){const c=s.offset;if(t<=c&&r>0||t<c&&r<0){const u=Math.max(0,c+r);s.set(a,u,"element"),o.set(a,u,"element"),pp(n)}}else{const c=n.isBackward(),u=c?o:s,d=u.getNode(),f=c?s:o,g=f.getNode();if(e.is(d)){const h=u.offset;(t<=h&&r>0||t<h&&r<0)&&u.set(a,Math.max(0,h+r),"element")}if(e.is(g)){const h=f.offset;(t<=h&&r>0||t<h&&r<0)&&f.set(a,Math.max(0,h+r),"element")}}pp(n)}function pp(n){const e=n.anchor,t=e.offset,r=n.focus,s=r.offset,o=e.getNode(),i=r.getNode();if(n.isCollapsed()){if(!O(o))return;const l=o.getChildrenSize(),a=t>=l,c=a?o.getChildAtIndex(l-1):o.getChildAtIndex(t);if(W(c)){let u=0;a&&(u=c.getTextContentSize()),e.set(c.__key,u,"text"),r.set(c.__key,u,"text")}}else{if(O(o)){const l=o.getChildrenSize(),a=t>=l,c=a?o.getChildAtIndex(l-1):o.getChildAtIndex(t);if(W(c)){let u=0;a&&(u=c.getTextContentSize()),e.set(c.__key,u,"text")}}if(O(i)){const l=i.getChildrenSize(),a=s>=l,c=a?i.getChildAtIndex(l-1):i.getChildAtIndex(s);if(W(c)){let u=0;a&&(u=c.getTextContentSize()),r.set(c.__key,u,"text")}}}}function Ca(n,e,t,r,s){let o=null,i=0,l=null;r!==null?(o=r.__key,W(r)?(i=r.getTextContentSize(),l="text"):O(r)&&(i=r.getChildrenSize(),l="element")):s!==null&&(o=s.__key,W(s)?l="text":O(s)&&(l="element")),o!==null&&l!==null?n.set(o,i,l):(i=e.getIndexWithinParent(),i===-1&&(i=t.getChildrenSize()),n.set(t.__key,i,"element"))}function mp(n,e,t,r,s){n.type==="text"?(n.key=t,e||(n.offset+=s)):n.offset>r.getIndexWithinParent()&&(n.offset-=1)}function T0(n,e,t,r,s,o,i){const l=r.anchorNode,a=r.focusNode,c=r.anchorOffset,u=r.focusOffset,d=document.activeElement;if(s.has("collaboration")&&d!==o||d!==null&&Kf(d))return;if(!M(e))return void(n!==null&&Hi(t,l,a)&&r.removeAllRanges());const f=e.anchor,g=e.focus,h=f.key,m=g.key,A=ha(t,h),b=ha(t,m),y=f.offset,w=g.offset,v=e.format,S=e.style,C=e.isCollapsed();let _=A,k=b,T=!1;if(f.type==="text"){_=ua(A);const G=f.getNode();T=G.getFormat()!==v||G.getStyle()!==S}else M(n)&&n.anchor.type==="text"&&(T=!0);var D,L,N,I,P;if(g.type==="text"&&(k=ua(b)),_!==null&&k!==null&&(C&&(n===null||T||M(n)&&(n.format!==v||n.style!==S))&&(D=v,L=S,N=y,I=h,P=performance.now(),mb=[D,L,N,I,P]),c!==y||u!==w||l!==_||a!==k||r.type==="Range"&&C||(d!==null&&o.contains(d)||o.focus({preventScroll:!0}),f.type==="element"))){try{r.setBaseAndExtent(_,y,k,w)}catch{}if(!s.has("skip-scroll-into-view")&&e.isCollapsed()&&o!==null&&o===document.activeElement){const G=e instanceof Qr&&e.anchor.type==="element"?_.childNodes[y]||null:r.rangeCount>0?r.getRangeAt(0):null;if(G!==null){let J;if(G instanceof Text){const te=document.createRange();te.selectNode(G),J=te.getBoundingClientRect()}else J=G.getBoundingClientRect();(function(te,Q,B){const j=B.ownerDocument,F=j.defaultView;if(F===null)return;let{top:V,bottom:K}=Q,Y=0,X=0,ee=B;for(;ee!==null;){const H=ee===j.body;if(H)Y=0,X=ac(te).innerHeight;else{const be=ee.getBoundingClientRect();Y=be.top,X=be.bottom}let U=0;if(V<Y?U=-(Y-V):K>X&&(U=K-X),U!==0)if(H)F.scrollBy(0,U);else{const be=ee.scrollTop;ee.scrollTop+=U;const xe=ee.scrollTop-be;V-=xe,K-=xe}if(H)break;ee=Vi(ee)}})(t,J,o)}}Cd=!0}}function Xi(n){let e=R()||Is();e===null&&(e=fe().selectEnd()),e.insertNodes(n)}function gu(n){let e=n;n.isCollapsed()||e.removeText();const t=R();M(t)&&(e=t),M(e)||q(161);const r=e.anchor;let s=r.getNode(),o=r.offset;for(;!Cr(s);)[s,o]=D0(s,o);return o}function D0(n,e){const t=n.getParent();if(!t){const s=re();return fe().append(s),s.select(),[fe(),0]}if(W(n)){const s=n.splitText(e);if(s.length===0)return[t,n.getIndexWithinParent()];const o=e===0?0:1;return[t,s[0].getIndexWithinParent()+o]}if(!O(n)||e===0)return[t,n.getIndexWithinParent()];const r=n.getChildAtIndex(e);if(r){const s=new Qr(dn(n.__key,e,"element"),dn(n.__key,e,"element"),0,""),o=n.insertNewAfter(s);o&&o.append(r,...r.getNextSiblings())}return[t,n.getIndexWithinParent()+1]}let ht=null,gt=null,zt=!1,pu=!1,Gl=0;const Ap={characterData:!0,childList:!0,subtree:!0};function Co(){return zt||ht!==null&&ht._readOnly}function Ft(){zt&&q(13)}function Eb(){Gl>99&&q(14)}function Vn(){return ht===null&&q(195,_b()),ht}function Ye(){return gt===null&&q(196,_b()),gt}function _b(){let n=0;const e=new Set,t=Ac.version;if(typeof window<"u")for(const s of document.querySelectorAll("[contenteditable]")){const o=oc(s);if(Hf(o))n++;else if(o){let i=String(o.constructor.version||"<0.17.1");i===t&&(i+=" (separately built, likely a bundler configuration issue)"),e.add(i)}}let r=` Detected on the page: ${n} compatible editor(s) with version ${t}`;return e.size&&(r+=` and incompatible editors with versions ${Array.from(e).join(", ")}`),r}function N0(){return gt}function yp(n,e,t){const r=e.__type,s=function(l,a){const c=l._nodes.get(a);return c===void 0&&q(30,a),c}(n,r);let o=t.get(r);o===void 0&&(o=Array.from(s.transforms),t.set(r,o));const i=o.length;for(let l=0;l<i&&(o[l](e),e.isAttached());l++);}function bp(n,e){return n!==void 0&&n.__key!==e&&n.isAttached()}function Tb(n,e){if(!e)return;const t=n._updateTags;let r=e;Array.isArray(e)||(r=[e]);for(const s of r)t.add(s)}function I0(n){return $f(n,Ye()._nodes)}function $f(n,e){const t=n.type,r=e.get(t);r===void 0&&q(17,t);const s=r.klass;n.type!==s.getType()&&q(18,s.name);const o=s.importJSON(n),i=n.children;if(O(o)&&Array.isArray(i))for(let l=0;l<i.length;l++){const a=$f(i[l],e);o.append(a)}return o}function wp(n,e,t){const r=ht,s=zt,o=gt;ht=e,zt=!0,gt=n;try{return t()}finally{ht=r,zt=s,gt=o}}function Tr(n,e){const t=n._pendingEditorState,r=n._rootElement,s=n._headless||r===null;if(t===null)return;const o=n._editorState,i=o._selection,l=t._selection,a=n._dirtyType!==ps,c=ht,u=zt,d=gt,f=n._updating,g=n._observer;let h=null;if(n._pendingEditorState=null,n._editorState=t,!s&&a&&g!==null){gt=n,ht=t,zt=!1,n._updating=!0;try{const C=n._dirtyType,_=n._dirtyElements,k=n._dirtyLeaves;g.disconnect(),h=y0(o,t,n,C,_,k)}catch(C){if(C instanceof Error&&n._onError(C),pu)throw C;return Mb(n,null,r,t),Gy(n),n._dirtyType=ao,pu=!0,Tr(n,o),void(pu=!1)}finally{g.observe(r,Ap),n._updating=f,ht=c,zt=u,gt=d}}t._readOnly||(t._readOnly=!0);const m=n._dirtyLeaves,A=n._dirtyElements,b=n._normalizedNodes,y=n._updateTags,w=n._deferred;a&&(n._dirtyType=ps,n._cloneNotNeeded.clear(),n._dirtyLeaves=new Set,n._dirtyElements=new Map,n._normalizedNodes=new Set,n._updateTags=new Set),function(C,_){const k=C._decorators;let T=C._pendingDecorators||k;const D=_._nodeMap;let L;for(L in T)D.has(L)||(T===k&&(T=Qy(C)),delete T[L])}(n,t);const v=s?null:nn(n._window);if(n._editable&&v!==null&&(a||l===null||l.dirty)){gt=n,ht=t;try{if(g!==null&&g.disconnect(),a||l===null||l.dirty){const C=n._blockCursorElement;C!==null&&Jf(C,n,r),T0(i,l,n,v,y,r)}f0(n,r,l),g!==null&&g.observe(r,Ap)}finally{gt=d,ht=c}}h!==null&&function(C,_,k,T,D){const L=Array.from(C._listeners.mutation),N=L.length;for(let I=0;I<N;I++){const[P,G]=L[I],J=_.get(G);J!==void 0&&P(J,{dirtyLeaves:T,prevEditorState:D,updateTags:k})}}(n,h,y,m,o),M(l)||l===null||i!==null&&i.is(l)||n.dispatchCommand(Qt,void 0);const S=n._pendingDecorators;S!==null&&(n._decorators=S,n._pendingDecorators=null,ni("decorator",n,!0,S)),function(C,_,k){const T=Gg(_),D=Gg(k);T!==D&&ni("textcontent",C,!0,D)}(n,e||o,t),ni("update",n,!0,{dirtyElements:A,dirtyLeaves:m,editorState:t,normalizedNodes:b,prevEditorState:e||o,tags:y}),function(C,_){if(C._deferred=[],_.length!==0){const k=C._updating;C._updating=!0;try{for(let T=0;T<_.length;T++)_[T]()}finally{C._updating=k}}}(n,w),function(C){const _=C._updates;if(_.length!==0){const k=_.shift();if(k){const[T,D]=k;Nb(C,T,D)}}}(n)}function ni(n,e,t,...r){const s=e._updating;e._updating=t;try{const o=Array.from(e._listeners[n]);for(let i=0;i<o.length;i++)o[i].apply(null,r)}finally{e._updating=s}}function Db(n,e,t){if(n._updating===!1||gt!==n){let s=!1;return n.update(()=>{s=Db(n,e,t)}),s}const r=Yf(n);for(let s=4;s>=0;s--)for(let o=0;o<r.length;o++){const i=r[o]._commands.get(e);if(i!==void 0){const l=i[s];if(l!==void 0){const a=Array.from(l),c=a.length;for(let u=0;u<c;u++)if(a[u](t,n)===!0)return!0}}}return!1}function Cp(n,e){const t=n._updates;let r=e||!1;for(;t.length!==0;){const s=t.shift();if(s){const[o,i]=s;let l;if(i!==void 0){if(l=i.onUpdate,i.skipTransforms&&(r=!0),i.discrete){const a=n._pendingEditorState;a===null&&q(191),a._flushSync=!0}l&&n._deferred.push(l),Tb(n,i.tag)}o()}}return r}function Nb(n,e,t){const r=n._updateTags;let s,o=!1,i=!1;t!==void 0&&(s=t.onUpdate,Tb(n,t.tag),o=t.skipTransforms||!1,i=t.discrete||!1),s&&n._deferred.push(s);const l=n._editorState;let a=n._pendingEditorState,c=!1;(a===null||a._readOnly)&&(a=n._pendingEditorState=Ib(a||l),c=!0),a._flushSync=i;const u=ht,d=zt,f=gt,g=n._updating;ht=a,zt=!1,n._updating=!0,gt=n;try{c&&(n._headless?l._selection!==null&&(a._selection=l._selection.clone()):a._selection=function(b){const y=b.getEditorState()._selection,w=nn(b._window);return M(y)||y==null?hc(y,w,b,null):y.clone()}(n));const m=n._compositionKey;e(),o=Cp(n,o),function(b,y){const w=y.getEditorState()._selection,v=b._selection;if(M(v)){const S=v.anchor,C=v.focus;let _;if(S.type==="text"&&(_=S.getNode(),_.selectionTransform(w,v)),C.type==="text"){const k=C.getNode();_!==k&&k.selectionTransform(w,v)}}}(a,n),n._dirtyType!==ps&&(o?function(b,y){const w=y._dirtyLeaves,v=b._nodeMap;for(const S of w){const C=v.get(S);W(C)&&C.isAttached()&&C.isSimpleText()&&!C.isUnmergeable()&&Yg(C)}}(a,n):function(b,y){const w=y._dirtyLeaves,v=y._dirtyElements,S=b._nodeMap,C=_r(),_=new Map;let k=w,T=k.size,D=v,L=D.size;for(;T>0||L>0;){if(T>0){y._dirtyLeaves=new Set;for(const N of k){const I=S.get(N);W(I)&&I.isAttached()&&I.isSimpleText()&&!I.isUnmergeable()&&Yg(I),I!==void 0&&bp(I,C)&&yp(y,I,_),w.add(N)}if(k=y._dirtyLeaves,T=k.size,T>0){Gl++;continue}}y._dirtyLeaves=new Set,y._dirtyElements=new Map;for(const N of D){const I=N[0],P=N[1];if(I!=="root"&&!P)continue;const G=S.get(I);G!==void 0&&bp(G,C)&&yp(y,G,_),v.set(I,P)}k=y._dirtyLeaves,T=k.size,D=y._dirtyElements,L=D.size,Gl++}y._dirtyLeaves=w,y._dirtyElements=v}(a,n),Cp(n),function(b,y,w,v){const S=b._nodeMap,C=y._nodeMap,_=[];for(const[k]of v){const T=C.get(k);T!==void 0&&(T.isAttached()||(O(T)&&lb(T,k,S,C,_,v),S.has(k)||v.delete(k),_.push(k)))}for(const k of _)C.delete(k);for(const k of w){const T=C.get(k);T===void 0||T.isAttached()||(S.has(k)||w.delete(k),C.delete(k))}}(l,a,n._dirtyLeaves,n._dirtyElements)),m!==n._compositionKey&&(a._flushSync=!0);const A=a._selection;if(M(A)){const b=a._nodeMap,y=A.anchor.key,w=A.focus.key;b.get(y)!==void 0&&b.get(w)!==void 0||q(19)}else st(A)&&A._nodes.size===0&&(a._selection=null)}catch(m){return m instanceof Error&&n._onError(m),n._pendingEditorState=l,n._dirtyType=ao,n._cloneNotNeeded.clear(),n._dirtyLeaves=new Set,n._dirtyElements.clear(),void Tr(n)}finally{ht=u,zt=d,gt=f,n._updating=g,Gl=0}n._dirtyType!==ps||function(m,A){const b=A.getEditorState()._selection,y=m._selection;if(y!==null){if(y.dirty||!y.is(b))return!0}else if(b!==null)return!0;return!1}(a,n)?a._flushSync?(a._flushSync=!1,Tr(n)):c&&l0(()=>{Tr(n)}):(a._flushSync=!1,c&&(r.clear(),n._deferred=[],n._pendingEditorState=null))}function Xt(n,e,t){n._updating?n._updates.push([e,t]):Nb(n,e,t)}class ri{constructor(e,t,r){this.element=e,this.before=t||null,this.after=r||null}withBefore(e){return new ri(this.element,e,this.after)}withAfter(e){return new ri(this.element,this.before,e)}withElement(e){return new ri(e,this.before,this.after)}insertChild(e){const t=this.before||this.getManagedLineBreak();return t!==null&&t.parentElement!==this.element&&q(222),this.element.insertBefore(e,t),this}removeChild(e){return e.parentElement!==this.element&&q(223),this.element.removeChild(e),this}replaceChild(e,t){return t.parentElement!==this.element&&q(224),this.element.replaceChild(e,t),this}getFirstChild(){const 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){if(e===null)this.removeManagedLineBreak();else{const t=e==="decorator"&&(Ui||nc);this.insertManagedLineBreak(t)}}removeManagedLineBreak(){const e=this.getManagedLineBreak();if(e){const t=this.element,r=e.nodeName==="IMG"?e.nextSibling:null;r&&t.removeChild(r),t.removeChild(e),t.__lexicalLineBreak=void 0}}insertManagedLineBreak(e){const t=this.getManagedLineBreak();if(t){if(e===(t.nodeName==="IMG"))return;this.removeManagedLineBreak()}const r=this.element,s=this.before,o=document.createElement("br");if(r.insertBefore(o,s),e){const i=document.createElement("img");i.setAttribute("data-lexical-linebreak","true"),i.style.cssText="display: inline !important; border: 0px !important; margin: 0px !important;",i.alt="",r.insertBefore(i,o),r.__lexicalLineBreak=i}else r.__lexicalLineBreak=o}getFirstChildOffset(){let e=0;for(let t=this.after;t!==null;t=t.previousSibling)e++;return e}resolveChildIndex(e,t,r,s){if(r===this.element){const a=this.getFirstChildOffset();return[e,Math.min(a+e.getChildrenSize(),Math.max(a,s))]}const o=vp(t,r);o.push(s);const i=vp(t,this.element);let l=e.getIndexWithinParent();for(let a=0;a<i.length;a++){const c=o[a],u=i[a];if(c===void 0||c<u)break;if(c>u){l+=1;break}}return[e.getParentOrThrow(),l]}}function vp(n,e){const t=[];let r=e;for(;r!==n&&r!==null;r=e.parentNode){let s=0;for(let o=r.previousSibling;o!==null;o=r.previousSibling)s++;t.push(s)}return r!==n&&q(225),t.reverse()}class De extends dc{constructor(e){super(e),this.__first=null,this.__last=null,this.__size=0,this.__format=0,this.__style="",this.__indent=0,this.__dir=null}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}getFormat(){return this.getLatest().__format}getFormatType(){const e=this.getFormat();return Qx[e]||""}getStyle(){return this.getLatest().__style}getIndent(){return this.getLatest().__indent}getChildren(){const e=[];let t=this.getFirstChild();for(;t!==null;)e.push(t),t=t.getNextSibling();return e}getChildrenKeys(){const e=[];let t=this.getFirstChild();for(;t!==null;)e.push(t.__key),t=t.getNextSibling();return e}getChildrenSize(){return this.getLatest().__size}isEmpty(){return this.getChildrenSize()===0}isDirty(){const e=Ye()._dirtyElements;return e!==null&&e.has(this.__key)}isLastChild(){const e=this.getLatest(),t=this.getParentOrThrow().getLastChild();return t!==null&&t.is(e)}getAllTextNodes(){const e=[];let t=this.getFirstChild();for(;t!==null;){if(W(t)&&e.push(t),O(t)){const r=t.getAllTextNodes();e.push(...r)}t=t.getNextSibling()}return e}getFirstDescendant(){let e=this.getFirstChild();for(;O(e);){const t=e.getFirstChild();if(t===null)break;e=t}return e}getLastDescendant(){let e=this.getLastChild();for(;O(e);){const t=e.getLastChild();if(t===null)break;e=t}return e}getDescendantByIndex(e){const t=this.getChildren(),r=t.length;if(e>=r){const o=t[r-1];return O(o)&&o.getLastDescendant()||o||null}const s=t[e];return O(s)&&s.getFirstDescendant()||s||null}getFirstChild(){const e=this.getLatest().__first;return e===null?null:ue(e)}getFirstChildOrThrow(){const e=this.getFirstChild();return e===null&&q(45,this.__key),e}getLastChild(){const e=this.getLatest().__last;return e===null?null:ue(e)}getLastChildOrThrow(){const e=this.getLastChild();return e===null&&q(96,this.__key),e}getChildAtIndex(e){const t=this.getChildrenSize();let r,s;if(e<t/2){for(r=this.getFirstChild(),s=0;r!==null&&s<=e;){if(s===e)return r;r=r.getNextSibling(),s++}return null}for(r=this.getLastChild(),s=t-1;r!==null&&s>=e;){if(s===e)return r;r=r.getPreviousSibling(),s--}return null}getTextContent(){let e="";const t=this.getChildren(),r=t.length;for(let s=0;s<r;s++){const o=t[s];e+=o.getTextContent(),O(o)&&s!==r-1&&!o.isInline()&&(e+=ur)}return e}getTextContentSize(){let e=0;const t=this.getChildren(),r=t.length;for(let s=0;s<r;s++){const o=t[s];e+=o.getTextContentSize(),O(o)&&s!==r-1&&!o.isInline()&&(e+=ur.length)}return e}getDirection(){return this.getLatest().__dir}hasFormat(e){if(e!==""){const t=Ug[e];return!!(this.getFormat()&t)}return!1}select(e,t){Ft();const r=R();let s=e,o=t;const i=this.getChildrenSize();if(!this.canBeEmpty()){if(e===0&&t===0){const a=this.getFirstChild();if(W(a)||O(a))return a.select(0,0)}else if(!(e!==void 0&&e!==i||t!==void 0&&t!==i)){const a=this.getLastChild();if(W(a)||O(a))return a.select()}}s===void 0&&(s=i),o===void 0&&(o=i);const l=this.__key;return M(r)?(r.anchor.set(l,s,"element"),r.focus.set(l,o,"element"),r.dirty=!0,r):kb(l,s,l,o,"element","element")}selectStart(){const e=this.getFirstDescendant();return e?e.selectStart():this.select()}selectEnd(){const e=this.getLastDescendant();return e?e.selectEnd():this.select()}clear(){const e=this.getWritable();return this.getChildren().forEach(t=>t.remove()),e}append(...e){return this.splice(this.getChildrenSize(),0,e)}setDirection(e){const t=this.getWritable();return t.__dir=e,t}setFormat(e){return this.getWritable().__format=e!==""?Ug[e]:0,this}setStyle(e){return this.getWritable().__style=e||"",this}setIndent(e){return this.getWritable().__indent=e,this}splice(e,t,r){const s=r.length,o=this.getChildrenSize(),i=this.getWritable();e+t<=o||q(226,String(e),String(t),String(o));const l=i.__key,a=[],c=[],u=this.getChildAtIndex(e+t);let d=null,f=o-t+s;if(e!==0)if(e===o)d=this.getLastChild();else{const h=this.getChildAtIndex(e);h!==null&&(d=h.getPreviousSibling())}if(t>0){let h=d===null?this.getFirstChild():d.getNextSibling();for(let m=0;m<t;m++){h===null&&q(100);const A=h.getNextSibling(),b=h.__key;as(h.getWritable()),c.push(b),h=A}}let g=d;for(let h=0;h<s;h++){const m=r[h];g!==null&&m.is(g)&&(d=g=g.getPreviousSibling());const A=m.getWritable();A.__parent===l&&f--,as(A);const b=m.__key;if(g===null)i.__first=b,A.__prev=null;else{const y=g.getWritable();y.__next=b,A.__prev=y.__key}m.__key===l&&q(76),A.__parent=l,a.push(b),g=m}if(e+t===o)g!==null&&(g.getWritable().__next=null,i.__last=g.__key);else if(u!==null){const h=u.getWritable();if(g!==null){const m=g.getWritable();h.__prev=g.__key,m.__next=u.__key}else h.__prev=null}if(i.__size=f,c.length){const h=R();if(M(h)){const m=new Set(c),A=new Set(a),{anchor:b,focus:y}=h;xp(b,m,A)&&Ca(b,b.getNode(),this,d,u),xp(y,m,A)&&Ca(y,y.getNode(),this,d,u),f!==0||this.canBeEmpty()||At(this)||this.remove()}}return i}getDOMSlot(e){return new ri(e)}exportDOM(e){const{element:t}=super.exportDOM(e);if(t&&lt(t)){const r=this.getIndent();r>0&&(t.style.paddingInlineStart=40*r+"px")}return{element:t}}exportJSON(){return{children:[],direction:this.getDirection(),format:this.getFormatType(),indent:this.getIndent(),type:"element",version:1}}insertNewAfter(e,t){return null}canIndent(){return!0}collapseAtStart(e){return!1}excludeFromCopy(e){return!1}canReplaceWith(e){return!0}canInsertAfter(e){return!0}canBeEmpty(){return!0}canInsertTextBefore(){return!0}canInsertTextAfter(){return!0}isInline(){return!1}isShadowRoot(){return!1}canMergeWith(e){return!1}extractWithChild(e,t,r){return!1}canMergeWhenEmpty(){return!1}reconcileObservedMutation(e,t){const r=this.getDOMSlot(e);let s=r.getFirstChild();for(let o=this.getFirstChild();o;o=o.getNextSibling()){const i=t.getElementByKey(o.getKey());i!==null&&(s==null?(r.insertChild(i),s=i):s!==i&&r.replaceChild(i,s),s=s.nextSibling)}}}function O(n){return n instanceof De}function xp(n,e,t){let r=n.getNode();for(;r;){const s=r.__key;if(e.has(s)&&!t.has(s))return!0;r=r.getParent()}return!1}class qr extends dc{constructor(e){super(e)}decorate(e,t){q(47)}isIsolated(){return!1}isInline(){return!0}isKeyboardSelectable(){return!0}}function Se(n){return n instanceof qr}class Qi extends De{static getType(){return"root"}static clone(){return new Qi}constructor(){super("root"),this.__cachedText=null}getTopLevelElementOrThrow(){q(51)}getTextContent(){const e=this.__cachedText;return!Co()&&Ye()._dirtyType!==ps||e===null?super.getTextContent():e}remove(){q(52)}replace(e){q(53)}insertBefore(e){q(54)}insertAfter(e){q(55)}updateDOM(e,t){return!1}append(...e){for(let t=0;t<e.length;t++){const r=e[t];O(r)||Se(r)||q(56)}return super.append(...e)}static importJSON(e){const t=fe();return t.setFormat(e.format),t.setIndent(e.indent),t.setDirection(e.direction),t}exportJSON(){return{children:[],direction:this.getDirection(),format:this.getFormatType(),indent:this.getIndent(),type:"root",version:1}}collapseAtStart(){return!0}}function _t(n){return n instanceof Qi}function Ib(n){return new gc(new Map(n._nodeMap))}function eh(){return new gc(new Map([["root",new Qi]]))}function Lb(n){const e=n.exportJSON(),t=n.constructor;if(e.type!==t.getType()&&q(130,t.name),O(n)){const r=e.children;Array.isArray(r)||q(59,t.name);const s=n.getChildren();for(let o=0;o<s.length;o++){const i=Lb(s[o]);r.push(i)}}return e}class gc{constructor(e,t){this._nodeMap=e,this._selection=t||null,this._flushSync=!1,this._readOnly=!1}isEmpty(){return this._nodeMap.size===1&&this._selection===null}read(e,t){return wp(t&&t.editor||null,this,e)}clone(e){const t=new gc(this._nodeMap,e===void 0?this._selection:e);return t._readOnly=!0,t}toJSON(){return wp(null,this,()=>({root:Lb(fe())}))}}class th extends De{static getType(){return"artificial"}createDOM(e){return document.createElement("div")}}class mr extends De{constructor(e){super(e),this.__textFormat=0,this.__textStyle=""}static getType(){return"paragraph"}getTextFormat(){return this.getLatest().__textFormat}setTextFormat(e){const t=this.getWritable();return t.__textFormat=e,t}hasTextFormat(e){const t=jr[e];return!!(this.getTextFormat()&t)}getFormatFlags(e,t){return da(this.getLatest().__textFormat,e,t)}getTextStyle(){return this.getLatest().__textStyle}setTextStyle(e){const t=this.getWritable();return t.__textStyle=e,t}static clone(e){return new mr(e.__key)}afterCloneFrom(e){super.afterCloneFrom(e),this.__textFormat=e.__textFormat,this.__textStyle=e.__textStyle}createDOM(e){const t=document.createElement("p"),r=qo(e.theme,"paragraph");return r!==void 0&&t.classList.add(...r),t}updateDOM(e,t,r){return!1}static importDOM(){return{p:e=>({conversion:L0,priority:0})}}exportDOM(e){const{element:t}=super.exportDOM(e);if(t&&lt(t)){this.isEmpty()&&t.append(document.createElement("br"));const r=this.getFormatType();t.style.textAlign=r;const s=this.getDirection();s&&(t.dir=s)}return{element:t}}static importJSON(e){const t=re();return t.setFormat(e.format),t.setIndent(e.indent),t.setDirection(e.direction),t.setTextFormat(e.textFormat),t}exportJSON(){return{...super.exportJSON(),textFormat:this.getTextFormat(),textStyle:this.getTextStyle(),type:"paragraph",version:1}}insertNewAfter(e,t){const r=re();r.setTextFormat(e.format),r.setTextStyle(e.style);const s=this.getDirection();return r.setDirection(s),r.setFormat(this.getFormatType()),r.setStyle(this.getTextStyle()),this.insertAfter(r,t),r}collapseAtStart(){const e=this.getChildren();if(e.length===0||W(e[0])&&e[0].getTextContent().trim()===""){if(this.getNextSibling()!==null)return this.selectNext(),this.remove(),!0;if(this.getPreviousSibling()!==null)return this.selectPrevious(),this.remove(),!0}return!1}}function L0(n){const e=re();return n.style&&(e.setFormat(n.style.textAlign),Qf(n,e)),{node:e}}function re(){return Me(new mr)}function at(n){return n instanceof mr}const pe=0,le=1,pc=2,xr=3,dt=4;function Mb(n,e,t,r){const s=n._keyToDOMMap;s.clear(),n._editorState=eh(),n._pendingEditorState=r,n._compositionKey=null,n._dirtyType=ps,n._cloneNotNeeded.clear(),n._dirtyLeaves=new Set,n._dirtyElements.clear(),n._normalizedNodes=new Set,n._updateTags=new Set,n._updates=[],n._blockCursorElement=null;const o=n._observer;o!==null&&(o.disconnect(),n._observer=null),e!==null&&(e.textContent=""),t!==null&&(t.textContent="",s.set("root",t))}function mc(n){const e=n||{},t=N0(),r=e.theme||{},s=n===void 0?t:e.parentEditor||null,o=e.disableEvents||!1,i=eh(),l=e.namespace||(s!==null?s._config.namespace:eb()),a=e.editorState,c=[Qi,pt,Gi,Zi,mr,th,...e.nodes||[]],{onError:u,html:d}=e,f=e.editable===void 0||e.editable;let g;if(n===void 0&&t!==null)g=t._nodes;else{g=new Map;for(let m=0;m<c.length;m++){let A=c[m],b=null,y=null;if(typeof A!="function"){const C=A;A=C.replace,b=C.with,y=C.withKlass||null}const w=A.getType(),v=A.transform(),S=new Set;v!==null&&S.add(v),g.set(w,{exportDOM:d&&d.export?d.export.get(A):void 0,klass:A,replace:b,replaceWithKlass:y,transforms:S})}}const h=new Ac(i,s,g,{disableEvents:o,namespace:l,theme:r},u||console.error,function(m,A){const b=new Map,y=new Set,w=v=>{Object.keys(v).forEach(S=>{let C=b.get(S);C===void 0&&(C=[],b.set(S,C)),C.push(v[S])})};return m.forEach(v=>{const S=v.klass.importDOM;if(S==null||y.has(S))return;y.add(S);const C=S.call(v.klass);C!==null&&w(C)}),A&&w(A),b}(g,d?d.import:void 0),f);return a!==void 0&&(h._pendingEditorState=a,h._dirtyType=ao),h}class Ac{constructor(e,t,r,s,o,i,l){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=s,this._nodes=r,this._decorators={},this._pendingDecorators=null,this._dirtyType=ps,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=eb(),this._onError=o,this._htmlConversions=i,this._editable=l,this._headless=t!==null&&t._headless,this._window=null,this._blockCursorElement=null}isComposing(){return this._compositionKey!=null}registerUpdateListener(e){const t=this._listeners.update;return t.add(e),()=>{t.delete(e)}}registerEditableListener(e){const t=this._listeners.editable;return t.add(e),()=>{t.delete(e)}}registerDecoratorListener(e){const t=this._listeners.decorator;return t.add(e),()=>{t.delete(e)}}registerTextContentListener(e){const t=this._listeners.textcontent;return t.add(e),()=>{t.delete(e)}}registerRootListener(e){const t=this._listeners.root;return e(this._rootElement,null),t.add(e),()=>{e(null,this._rootElement),t.delete(e)}}registerCommand(e,t,r){r===void 0&&q(35);const s=this._commands;s.has(e)||s.set(e,[new Set,new Set,new Set,new Set,new Set]);const o=s.get(e);o===void 0&&q(36,String(e));const i=o[r];return i.add(t),()=>{i.delete(t),o.every(l=>l.size===0)&&s.delete(e)}}registerMutationListener(e,t,r){const s=this.resolveRegisteredNodeAfterReplacements(this.getRegisteredNode(e)).klass,o=this._listeners.mutation;o.set(t,s);const i=r&&r.skipInitialization;return i!==void 0&&i||this.initializeMutationListener(t,s),()=>{o.delete(t)}}getRegisteredNode(e){const t=this._nodes.get(e.getType());return t===void 0&&q(37,e.name),t}resolveRegisteredNodeAfterReplacements(e){for(;e.replaceWithKlass;)e=this.getRegisteredNode(e.replaceWithKlass);return e}initializeMutationListener(e,t){const r=this._editorState,s=ob(r).get(t.getType());if(!s)return;const o=new Map;for(const i of s.keys())o.set(i,"created");o.size>0&&e(o,{dirtyLeaves:new Set,prevEditorState:r,updateTags:new Set(["registerMutationListener"])})}registerNodeTransformToKlass(e,t){const r=this.getRegisteredNode(e);return r.transforms.add(t),r}registerNodeTransform(e,t){const r=this.registerNodeTransformToKlass(e,t),s=[r],o=r.replaceWithKlass;if(o!=null){const a=this.registerNodeTransformToKlass(o,t);s.push(a)}var i,l;return i=this,l=e.getType(),Xt(i,()=>{const a=Vn();if(a.isEmpty())return;if(l==="root")return void fe().markDirty();const c=a._nodeMap;for(const[,u]of c)u.markDirty()},i._pendingEditorState===null?{tag:"history-merge"}:void 0),()=>{s.forEach(a=>a.transforms.delete(t))}}hasNode(e){return this._nodes.has(e.getType())}hasNodes(e){return e.every(this.hasNode.bind(this))}dispatchCommand(e,t){return ne(this,e,t)}getDecorators(){return this._decorators}getRootElement(){return this._rootElement}getKey(){return this._key}setRootElement(e){const t=this._rootElement;if(e!==t){const r=qo(this._config.theme,"root"),s=this._pendingEditorState||this._editorState;if(this._rootElement=e,Mb(this,t,e,s),t!==null&&(this._config.disableEvents||b0(t),r!=null&&t.classList.remove(...r)),e!==null){const o=function(l){const a=l.ownerDocument;return a&&a.defaultView||null}(e),i=e.style;i.userSelect="text",i.whiteSpace="pre-wrap",i.wordBreak="break-word",e.setAttribute("data-lexical-editor","true"),this._window=o,this._dirtyType=ao,Gy(this),this._updateTags.add("history-merge"),Tr(this),this._config.disableEvents||function(l,a){const c=l.ownerDocument,u=ya.get(c);(u===void 0||u<1)&&c.addEventListener("selectionchange",wb),ya.set(c,(u||0)+1),l.__lexicalEditor=a;const d=bb(l);for(let f=0;f<wd.length;f++){const[g,h]=wd[f],m=typeof h=="function"?A=>{ip(A)||(op(A),(a.isEditable()||g==="click")&&h(A,a))}:A=>{if(ip(A))return;op(A);const b=a.isEditable();switch(g){case"cut":return b&&ne(a,ec,A);case"copy":return ne(a,Wi,A);case"paste":return b&&ne(a,Ns,A);case"dragstart":return b&&ne(a,Lf,A);case"dragover":return b&&ne(a,Mf,A);case"dragend":return b&&ne(a,Fx,A);case"focus":return b&&ne(a,Jr,A);case"blur":return b&&ne(a,tc,A);case"drop":return b&&ne(a,If,A)}};l.addEventListener(g,m),d.push(()=>{l.removeEventListener(g,m)})}}(e,this),r!=null&&e.classList.add(...r)}else this._editorState=s,this._pendingEditorState=null,this._window=null;ni("root",this,!1,e,t)}}getElementByKey(e){return this._keyToDOMMap.get(e)||null}getEditorState(){return this._editorState}setEditorState(e,t){e.isEmpty()&&q(38);let r=e;r._readOnly&&(r=Ib(e),r._selection=e._selection?e._selection.clone():null),Vy(this);const s=this._pendingEditorState,o=this._updateTags,i=t!==void 0?t.tag:null;s===null||s.isEmpty()||(i!=null&&o.add(i),Tr(this)),this._pendingEditorState=r,this._dirtyType=ao,this._dirtyElements.set("root",!1),this._compositionKey=null,i!=null&&o.add(i),this._updating||Tr(this)}parseEditorState(e,t){return function(r,s,o){const i=eh(),l=ht,a=zt,c=gt,u=s._dirtyElements,d=s._dirtyLeaves,f=s._cloneNotNeeded,g=s._dirtyType;s._dirtyElements=new Map,s._dirtyLeaves=new Set,s._cloneNotNeeded=new Set,s._dirtyType=0,ht=i,zt=!1,gt=s;try{const h=s._nodes;$f(r.root,h),o&&o(),i._readOnly=!0}catch(h){h instanceof Error&&s._onError(h)}finally{s._dirtyElements=u,s._dirtyLeaves=d,s._cloneNotNeeded=f,s._dirtyType=g,ht=l,zt=a,gt=c}return i}(typeof e=="string"?JSON.parse(e):e,this,t)}read(e){return Tr(this),this.getEditorState().read(e,{editor:this})}update(e,t){Xt(this,e,t)}focus(e,t={}){const r=this._rootElement;r!==null&&(r.setAttribute("autocapitalize","off"),Xt(this,()=>{const s=R(),o=fe();s!==null?s.dirty=!0:o.getChildrenSize()!==0&&(t.defaultSelection==="rootStart"?o.selectStart():o.selectEnd())},{onUpdate:()=>{r.removeAttribute("autocapitalize"),e&&e()},tag:"focus"}),this._pendingEditorState===null&&r.removeAttribute("autocapitalize"))}blur(){const e=this._rootElement;e!==null&&e.blur();const t=nn(this._window);t!==null&&t.removeAllRanges()}isEditable(){return this._editable}setEditable(e){this._editable!==e&&(this._editable=e,ni("editable",this,!0,e))}toJSON(){return{editorState:this._editorState.toJSON()}}}Ac.version="0.21.0+prod.esm";function M0(n){return n&&n.__esModule&&Object.prototype.hasOwnProperty.call(n,"default")?n.default:n}var Ob=M0(function(n){const e=new URLSearchParams;e.append("code",n);for(let t=1;t<arguments.length;t++)e.append("v",arguments[t]);throw Error(`Minified Lexical error #${n}; visit https://lexical.dev/docs/error?${e} for the full message or use the non-minified dev environment for full errors and additional helpful warnings.`)});const va=new Map;function Sp(n){let e=n;for(;e!=null;){if(e.nodeType===Node.TEXT_NODE)return e;e=e.firstChild}return null}function kp(n){const e=n.parentNode;if(e==null)throw new Error("Should never happen");return[e,Array.from(e.childNodes).indexOf(n)]}function O0(n,e,t,r,s){const o=e.getKey(),i=r.getKey(),l=document.createRange();let a=n.getElementByKey(o),c=n.getElementByKey(i),u=t,d=s;if(W(e)&&(a=Sp(a)),W(r)&&(c=Sp(c)),e===void 0||r===void 0||a===null||c===null)return null;a.nodeName==="BR"&&([a,u]=kp(a)),c.nodeName==="BR"&&([c,d]=kp(c));const f=a.firstChild;a===c&&f!=null&&f.nodeName==="BR"&&u===0&&d===0&&(d=1);try{l.setStart(a,u),l.setEnd(c,d)}catch{return null}return!l.collapsed||u===d&&o===i||(l.setStart(c,d),l.setEnd(a,u)),l}function R0(n,e){const t=n.getRootElement();if(t===null)return[];const r=t.getBoundingClientRect(),s=getComputedStyle(t),o=parseFloat(s.paddingLeft)+parseFloat(s.paddingRight),i=Array.from(e.getClientRects());let l,a=i.length;i.sort((c,u)=>{const d=c.top-u.top;return Math.abs(d)<=3?c.left-u.left:d});for(let c=0;c<a;c++){const u=i[c],d=l&&l.top<=u.top&&l.top+l.height>u.top&&l.left+l.width>u.left,f=u.width+o===r.width;d||f?(i.splice(c--,1),a--):l=u}return i}function Rb(n){const e={};if(!n)return e;const t=n.split(";");for(const r of t)if(r!==""){const[s,o]=r.split(/:([^]+)/);s&&o&&(e[s.trim()]=o.trim())}return e}function nh(n){let e=va.get(n);return e===void 0&&(e=Rb(n),va.set(n,e)),e}function j0(n){let e="";for(const t in n)t&&(e+=`${t}: ${n[t]};`);return e}function jb(n,e){const t=n.getStartEndPoints();if(e.isSelected(n)&&!e.isSegmented()&&!e.isToken()&&t!==null){const[r,s]=t,o=n.isBackward(),i=r.getNode(),l=s.getNode(),a=e.is(i),c=e.is(l);if(a||c){const[u,d]=Sd(n),f=i.is(l),g=e.is(o?l:i),h=e.is(o?i:l);let m,A=0;return f?(A=u>d?d:u,m=u>d?u:d):g?(A=o?d:u,m=void 0):h&&(A=0,m=o?u:d),e.__text=e.__text.slice(A,m),e}}return e}function Ep(n){if(n.type==="text")return n.offset===n.getNode().getTextContentSize();const e=n.getNode();return O(e)||Ob(177),n.offset===e.getChildrenSize()}function P0(n){const e=n.getStyle(),t=Rb(e);va.set(e,t)}function zs(n,e){const t=nh("getStyle"in n?n.getStyle():n.style),r=Object.entries(e).reduce((o,[i,l])=>(typeof l=="function"?o[i]=l(t[i],n):l===null?delete o[i]:o[i]=l,o),{...t}),s=j0(r);n.setStyle(s),va.set(s,r)}function _p(n,e){const t=n.getNodes(),r=t.length,s=n.getStartEndPoints();if(s===null)return;const[o,i]=s,l=r-1;let a=t[0],c=t[l];if(n.isCollapsed()&&M(n))return void zs(n,e);const u=a.getTextContent().length,d=i.offset;let f=o.offset;const g=o.isBefore(i);let h=g?f:d,m=g?d:f;const A=g?o.type:i.type,b=g?i.type:o.type,y=g?i.key:o.key;if(W(a)&&h===u){const w=a.getNextSibling();W(w)&&(f=0,h=0,a=w)}if(t.length===1){if(W(a)&&a.canHaveFormat()){if(h=A==="element"?0:f>d?d:f,m=b==="element"?u:f>d?f:d,h===m)return;if(Ln(a)||h===0&&m===u)zs(a,e),a.select(h,m);else{const w=a.splitText(h,m),v=h===0?w[0]:w[1];zs(v,e),v.select(0,m-h)}}}else{if(W(a)&&h<a.getTextContentSize()&&a.canHaveFormat()&&(h===0||Ln(a)||(a=a.splitText(h)[1],h=0,g?o.set(a.getKey(),h,"text"):i.set(a.getKey(),h,"text")),zs(a,e)),W(c)&&c.canHaveFormat()){const w=c.getTextContent().length;c.__key!==y&&m!==0&&(m=w),m===w||Ln(c)||([c]=c.splitText(m)),m===0&&b!=="element"||zs(c,e)}for(let w=1;w<l;w++){const v=t[w],S=v.getKey();W(v)&&v.canHaveFormat()&&S!==a.getKey()&&S!==c.getKey()&&!v.isToken()&&zs(v,e)}}}function Yo(n,e){if(n===null)return;const t=n.getStartEndPoints(),r=t?t[0]:null;if(r!==null&&r.key==="root"){const i=e(),l=fe(),a=l.getFirstChild();return void(a?a.replace(i,!0):l.append(i))}const s=n.getNodes(),o=r!==null&&function(i,l){let a=i;for(;a!==null&&a.getParent()!==null&&!l(a);)a=a.getParentOrThrow();return l(a)?a:null}(r.getNode(),Np);o&&s.indexOf(o)===-1&&s.push(o);for(let i=0;i<s.length;i++){const l=s[i];if(!Np(l))continue;O(l)||Ob(178);const a=e();a.setFormat(l.getFormatType()),a.setIndent(l.getIndent()),l.replace(a,!0)}}function Tp(n,e){const t=gi(n.focus,e);return Se(t)&&!t.isIsolated()||O(t)&&!t.isInline()&&!t.canBeEmpty()}function F0(n,e,t,r){n.modify(e?"extend":"move",t,r)}function Pb(n){const e=n.anchor.getNode();return(_t(e)?e:e.getParentOrThrow()).getDirection()==="rtl"}function Dp(n,e,t){const r=Pb(n);F0(n,e,t?!r:r,"character")}function B0(n,e,t){const r=nh(n.getStyle());return r!==null&&r[e]||t}function xa(n,e,t=""){let r=null;const s=n.getNodes(),o=n.anchor,i=n.focus,l=n.isBackward(),a=l?i.offset:o.offset,c=l?i.getNode():o.getNode();if(M(n)&&n.isCollapsed()&&n.style!==""){const u=nh(n.style);if(u!==null&&e in u)return u[e]}for(let u=0;u<s.length;u++){const d=s[u];if((u===0||a!==0||!d.is(c))&&W(d)){const f=B0(d,e,t);if(r===null)r=f;else if(r!==f){r="";break}}}return r===null?t:r}function Np(n){if(Se(n)||!O(n)||At(n))return!1;const e=n.getFirstChild(),t=e===null||Ee(e)||W(e)||e.isInline();return!n.isInline()&&n.canBeEmpty()!==!1&&t}function z0(n){return n&&n.__esModule&&Object.prototype.hasOwnProperty.call(n,"default")?n.default:n}var W0=z0(function(n){const e=new URLSearchParams;e.append("code",n);for(let t=1;t<arguments.length;t++)e.append("v",arguments[t]);throw Error(`Minified Lexical error #${n}; visit https://lexical.dev/docs/error?${e} for the full message or use the non-minified dev environment for full errors and additional helpful warnings.`)});const yc=typeof window<"u"&&window.document!==void 0&&window.document.createElement!==void 0,U0=yc&&"documentMode"in document?document.documentMode:null,K0=yc&&/^(?!.*Seamonkey)(?=.*Firefox).*/i.test(navigator.userAgent);!(!yc||!("InputEvent"in window)||U0)&&"getTargetRanges"in new window.InputEvent("input");function Fb(...n){const e=[];for(const t of n)if(t&&typeof t=="string")for(const[r]of t.matchAll(/\S+/g))e.push(r);return e}function ve(...n){return()=>{for(let e=n.length-1;e>=0;e--)n[e]();n.length=0}}const H0=yc,Y0=K0;function _e(n,...e){const t=Fb(...e);t.length>0&&n.classList.add(...t)}function Gn(n,...e){const t=Fb(...e);t.length>0&&n.classList.remove(...t)}function Ip(n){let e=n;if(O(e)&&e.getChildrenSize()>0)e=e.getLastChild();else{let t=null;for(;t===null&&e!==null;)t=e.getPreviousSibling(),e=t===null?e.getParent():t}return e}function Bb(n,e){let t=n;for(;t!=null;){if(t instanceof e)return t;t=t.getParent()}return null}function vo(n){const e=ae(n,t=>O(t)&&!t.isInline());return O(e)||W0(4,n.__key),e}const ae=(n,e)=>{let t=n;for(;t!==fe()&&t!=null;){if(e(t))return t;t=t.getParent()}return null};function zb(n){const e=R()||Is();if(M(e)){const{focus:t}=e,r=t.getNode(),s=t.offset;if(At(r)){const o=r.getChildAtIndex(s);o==null?r.append(n):o.insertBefore(n),n.selectNext()}else{let o,i;W(r)?(o=r.getParentOrThrow(),i=r.getIndexWithinParent(),s>0&&(i+=1,r.splitText(s))):(o=r,i=s);const[,l]=h0(o,i);l.insertBefore(n),l.selectStart()}}else{if(e!=null){const r=e.getNodes();r[r.length-1].getTopLevelElementOrThrow().insertAfter(n)}else fe().append(n);const t=re();n.insertAfter(t),t.select()}return n.getLatest()}function rr(n,e){return n!==null&&Object.getPrototypeOf(n).constructor.name===e.name}function V0(n,e){const t=[];for(let r=0;r<n.length;r++){const s=e(n[r]);s!==null&&t.push(s)}return t}function G0(n,e){const t=n.getFirstChild();t!==null?t.insertBefore(e):n.append(e)}let mu=!(Y0||!H0)&&void 0;function Z0(n){let e=1;if(function(){if(mu===void 0){const t=document.createElement("div");t.style.cssText="position: absolute; opacity: 0; width: 100px; left: -1000px;",document.body.appendChild(t);const r=t.getBoundingClientRect();t.style.setProperty("zoom","2"),mu=t.getBoundingClientRect().width===r.width,document.body.removeChild(t)}return mu}())for(;n;)e*=Number(window.getComputedStyle(n).getPropertyValue("zoom")),n=n.parentElement;return e}function bc(n,e){const t=e.body?e.body.childNodes:[];let r=[];const s=[];for(let o=0;o<t.length;o++){const i=t[o];if(!Ub.has(i.nodeName)){const l=Kb(i,n,s,!1);l!==null&&(r=r.concat(l))}}return function(o){for(const i of o)i.getNextSibling()instanceof th&&i.insertAfter(Ut());for(const i of o){const l=i.getChildren();for(const a of l)i.insertBefore(a);i.remove()}}(s),r}function Ed(n,e){if(typeof document>"u"||typeof window>"u"&&global.window===void 0)throw new Error("To use $generateHtmlFromNodes in headless mode please initialize a headless browser implementation such as JSDom before calling this function.");const t=document.createElement("div"),r=fe().getChildren();for(let s=0;s<r.length;s++)Wb(n,r[s],t,e);return t.innerHTML}function Wb(n,e,t,r=null){let s=r===null||e.isSelected(r);const o=O(e)&&e.excludeFromCopy("html");let i=e;if(r!==null){let g=Xf(e);g=W(g)&&r!==null?jb(r,g):g,i=g}const l=O(i)?i.getChildren():[],a=n._nodes.get(i.getType());let c;c=a&&a.exportDOM!==void 0?a.exportDOM(n,i):i.exportDOM(n);const{element:u,after:d}=c;if(!u)return!1;const f=document.createDocumentFragment();for(let g=0;g<l.length;g++){const h=l[g],m=Wb(n,h,f,r);!s&&O(e)&&m&&e.extractWithChild(h,r,"html")&&(s=!0)}if(s&&!o){if((lt(u)||ep(u))&&u.append(f),t.append(u),d){const g=d.call(i,u);g&&(ep(u)?u.replaceChildren(g):u.replaceWith(g))}}else t.append(f);return s}const Ub=new Set(["STYLE","SCRIPT"]);function Kb(n,e,t,r,s=new Map,o){let i=[];if(Ub.has(n.nodeName))return i;let l=null;const a=function(h,m){const{nodeName:A}=h,b=m._htmlConversions.get(A.toLowerCase());let y=null;if(b!==void 0)for(const w of b){const v=w(h);v!==null&&(y===null||(y.priority||0)<=(v.priority||0))&&(y=v)}return y!==null?y.conversion:null}(n,e),c=a?a(n):null;let u=null;if(c!==null){u=c.after;const h=c.node;if(l=Array.isArray(h)?h[h.length-1]:h,l!==null){for(const[,m]of s)if(l=m(l,o),!l)break;l&&i.push(...Array.isArray(h)?h:[l])}c.forChild!=null&&s.set(n.nodeName,c.forChild)}const d=n.childNodes;let f=[];const g=(l==null||!At(l))&&(l!=null&&ba(l)||r);for(let h=0;h<d.length;h++)f.push(...Kb(d[h],e,t,g,new Map(s),l));return u!=null&&(f=u(f)),ga(n)&&(f=J0(n,f,g?()=>{const h=new th;return t.push(h),h}:re)),l==null?f.length>0?i=i.concat(f):ga(n)&&function(h){return h.nextSibling==null||h.previousSibling==null?!1:fd(h.nextSibling)&&fd(h.previousSibling)}(n)&&(i=i.concat(Ut())):O(l)&&l.append(...f),i}function J0(n,e,t){const r=n.style.textAlign,s=[];let o=[];for(let i=0;i<e.length;i++){const l=e[i];if(ba(l))r&&!l.getFormat()&&l.setFormat(r),s.push(l);else if(o.push(l),i===e.length-1||i<e.length-1&&ba(e[i+1])){const a=t();a.setFormat(r),a.append(...o),s.push(a),o=[]}}return s}const Lp=[["Cat","rgb(125, 50, 0)"],["Dog","rgb(100, 0, 0)"],["Rabbit","rgb(150, 0, 0)"],["Frog","rgb(200, 0, 0)"],["Fox","rgb(200, 75, 0)"],["Hedgehog","rgb(0, 75, 0)"],["Pigeon","rgb(0, 125, 0)"],["Squirrel","rgb(75, 100, 0)"],["Bear","rgb(125, 100, 0)"],["Tiger","rgb(0, 0, 150)"],["Leopard","rgb(0, 0, 200)"],["Zebra","rgb(0, 0, 250)"],["Wolf","rgb(0, 100, 150)"],["Owl","rgb(0, 100, 100)"],["Gull","rgb(100, 0, 100)"],["Squid","rgb(150, 0, 150)"]],Mp=Lp[Math.floor(Math.random()*Lp.length)],X0=x.createContext({clientID:0,color:Mp[1],isCollabActive:!1,name:Mp[0],yjsDocMap:new Map});function Hb(n,e){const t=x.useContext(X0);return n!=null&&(t.name=n),e!=null&&(t.color=e),t}function Q0(n){return n&&n.__esModule&&Object.prototype.hasOwnProperty.call(n,"default")?n.default:n}var q0=Q0(function(n){const e=new URLSearchParams;e.append("code",n);for(let t=1;t<arguments.length;t++)e.append("v",arguments[t]);throw Error(`Minified Lexical error #${n}; visit https://lexical.dev/docs/error?${e} for the full message or use the non-minified dev environment for full errors and additional helpful warnings.`)});const rh=x.createContext(null);function Yb(n,e){let t=null;return n!=null&&(t=n[1]),{getTheme:function(){return e??(t!=null?t.getTheme():null)}}}function ie(){const n=x.useContext(rh);return n==null&&q0(8),n}const Wt=()=>new Map,_d=n=>{const e=Wt();return n.forEach((t,r)=>{e.set(r,t)}),e},Zn=(n,e,t)=>{let r=n.get(e);return r===void 0&&n.set(e,r=t()),r},$0=(n,e)=>{const t=[];for(const[r,s]of n)t.push(e(s,r));return t},eS=(n,e)=>{for(const[t,r]of n)if(e(r,t))return!0;return!1},Fr=()=>new Set,Au=n=>n[n.length-1],tS=(n,e)=>{for(let t=0;t<e.length;t++)n.push(e[t])},dr=Array.from,nS=(n,e)=>{for(let t=0;t<n.length;t++)if(e(n[t],t,n))return!0;return!1},Td=Array.isArray;class Vb{constructor(){this._observers=Wt()}on(e,t){return Zn(this._observers,e,Fr).add(t),t}once(e,t){const r=(...s)=>{this.off(e,r),t(...s)};this.on(e,r)}off(e,t){const r=this._observers.get(e);r!==void 0&&(r.delete(t),r.size===0&&this._observers.delete(e))}emit(e,t){return dr((this._observers.get(e)||Wt()).values()).forEach(r=>r(...t))}destroy(){this._observers=Wt()}}class Gb{constructor(){this._observers=Wt()}on(e,t){Zn(this._observers,e,Fr).add(t)}once(e,t){const r=(...s)=>{this.off(e,r),t(...s)};this.on(e,r)}off(e,t){const r=this._observers.get(e);r!==void 0&&(r.delete(t),r.size===0&&this._observers.delete(e))}emit(e,t){return dr((this._observers.get(e)||Wt()).values()).forEach(r=>r(...t))}destroy(){this._observers=Wt()}}const fr=Math.floor,Zl=Math.abs,sh=(n,e)=>n<e?n:e,Ls=(n,e)=>n>e?n:e,rS=Math.pow,Zb=n=>n!==0?n<0:1/n<0,Op=1,Rp=2,yu=4,bu=8,yi=32,sr=64,$t=128,wc=31,Dd=63,cs=127,sS=2147483647,Jb=Number.MAX_SAFE_INTEGER,oS=Number.isInteger||(n=>typeof n=="number"&&isFinite(n)&&fr(n)===n),iS=String.fromCharCode,lS=n=>n.toLowerCase(),aS=/^\s*/g,cS=n=>n.replace(aS,""),uS=/([A-Z])/g,jp=(n,e)=>cS(n.replace(uS,t=>`${e}${lS(t)}`)),dS=n=>{const e=unescape(encodeURIComponent(n)),t=e.length,r=new Uint8Array(t);for(let s=0;s<t;s++)r[s]=e.codePointAt(s);return r},bi=typeof TextEncoder<"u"?new TextEncoder:null,fS=n=>bi.encode(n),hS=bi?fS:dS;let si=typeof TextDecoder>"u"?null:new TextDecoder("utf-8",{fatal:!0,ignoreBOM:!0});si&&si.decode(new Uint8Array).length===1&&(si=null);class qi{constructor(){this.cpos=0,this.cbuf=new Uint8Array(100),this.bufs=[]}}const Et=()=>new qi,oh=n=>{let e=n.cpos;for(let t=0;t<n.bufs.length;t++)e+=n.bufs[t].length;return e},He=n=>{const e=new Uint8Array(oh(n));let t=0;for(let r=0;r<n.bufs.length;r++){const s=n.bufs[r];e.set(s,t),t+=s.length}return e.set(new Uint8Array(n.cbuf.buffer,0,n.cpos),t),e},gS=(n,e)=>{const t=n.cbuf.length;t-n.cpos<e&&(n.bufs.push(new Uint8Array(n.cbuf.buffer,0,n.cpos)),n.cbuf=new Uint8Array(Ls(t,e)*2),n.cpos=0)},ft=(n,e)=>{const t=n.cbuf.length;n.cpos===t&&(n.bufs.push(n.cbuf),n.cbuf=new Uint8Array(t*2),n.cpos=0),n.cbuf[n.cpos++]=e},Nd=ft,de=(n,e)=>{for(;e>cs;)ft(n,$t|cs&e),e=fr(e/128);ft(n,cs&e)},ih=(n,e)=>{const t=Zb(e);for(t&&(e=-e),ft(n,(e>Dd?$t:0)|(t?sr:0)|Dd&e),e=fr(e/64);e>0;)ft(n,(e>cs?$t:0)|cs&e),e=fr(e/128)},Id=new Uint8Array(3e4),pS=Id.length/3,mS=(n,e)=>{if(e.length<pS){const t=bi.encodeInto(e,Id).written||0;de(n,t);for(let r=0;r<t;r++)ft(n,Id[r])}else Je(n,hS(e))},AS=(n,e)=>{const t=unescape(encodeURIComponent(e)),r=t.length;de(n,r);for(let s=0;s<r;s++)ft(n,t.codePointAt(s))},us=bi&&bi.encodeInto?mS:AS,Cc=(n,e)=>{const t=n.cbuf.length,r=n.cpos,s=sh(t-r,e.length),o=e.length-s;n.cbuf.set(e.subarray(0,s),r),n.cpos+=s,o>0&&(n.bufs.push(n.cbuf),n.cbuf=new Uint8Array(Ls(t*2,o)),n.cbuf.set(e.subarray(s)),n.cpos=o)},Je=(n,e)=>{de(n,e.byteLength),Cc(n,e)},lh=(n,e)=>{gS(n,e);const t=new DataView(n.cbuf.buffer,n.cpos,e);return n.cpos+=e,t},yS=(n,e)=>lh(n,4).setFloat32(0,e,!1),bS=(n,e)=>lh(n,8).setFloat64(0,e,!1),wS=(n,e)=>lh(n,8).setBigInt64(0,e,!1),Pp=new DataView(new ArrayBuffer(4)),CS=n=>(Pp.setFloat32(0,n),Pp.getFloat32(0)===n),wi=(n,e)=>{switch(typeof e){case"string":ft(n,119),us(n,e);break;case"number":oS(e)&&Zl(e)<=sS?(ft(n,125),ih(n,e)):CS(e)?(ft(n,124),yS(n,e)):(ft(n,123),bS(n,e));break;case"bigint":ft(n,122),wS(n,e);break;case"object":if(e===null)ft(n,126);else if(Td(e)){ft(n,117),de(n,e.length);for(let t=0;t<e.length;t++)wi(n,e[t])}else if(e instanceof Uint8Array)ft(n,116),Je(n,e);else{ft(n,118);const t=Object.keys(e);de(n,t.length);for(let r=0;r<t.length;r++){const s=t[r];us(n,s),wi(n,e[s])}}break;case"boolean":ft(n,e?120:121);break;default:ft(n,127)}};class Fp extends qi{constructor(e){super(),this.w=e,this.s=null,this.count=0}write(e){this.s===e?this.count++:(this.count>0&&de(this,this.count-1),this.count=1,this.w(this,e),this.s=e)}}const Bp=n=>{n.count>0&&(ih(n.encoder,n.count===1?n.s:-n.s),n.count>1&&de(n.encoder,n.count-2))};class Jl{constructor(){this.encoder=new qi,this.s=0,this.count=0}write(e){this.s===e?this.count++:(Bp(this),this.count=1,this.s=e)}toUint8Array(){return Bp(this),He(this.encoder)}}const zp=n=>{if(n.count>0){const e=n.diff*2+(n.count===1?0:1);ih(n.encoder,e),n.count>1&&de(n.encoder,n.count-2)}};class wu{constructor(){this.encoder=new qi,this.s=0,this.count=0,this.diff=0}write(e){this.diff===e-this.s?(this.s=e,this.count++):(zp(this),this.count=1,this.diff=e-this.s,this.s=e)}toUint8Array(){return zp(this),He(this.encoder)}}class vS{constructor(){this.sarr=[],this.s="",this.lensE=new Jl}write(e){this.s+=e,this.s.length>19&&(this.sarr.push(this.s),this.s=""),this.lensE.write(e.length)}toUint8Array(){const e=new qi;return this.sarr.push(this.s),this.s="",us(e,this.sarr.join("")),Cc(e,this.lensE.toUint8Array()),He(e)}}const Br=n=>new Error(n),Fn=()=>{throw Br("Method unimplemented")},En=()=>{throw Br("Unexpected case")},Xb=Br("Unexpected end of array"),Qb=Br("Integer out of Range");class vc{constructor(e){this.arr=e,this.pos=0}}const $r=n=>new vc(n),xS=n=>n.pos!==n.arr.length,SS=(n,e)=>{const t=new Uint8Array(n.arr.buffer,n.pos+n.arr.byteOffset,e);return n.pos+=e,t},kt=n=>SS(n,Ae(n)),co=n=>n.arr[n.pos++],Ae=n=>{let e=0,t=1;const r=n.arr.length;for(;n.pos<r;){const s=n.arr[n.pos++];if(e=e+(s&cs)*t,t*=128,s<$t)return e;if(e>Jb)throw Qb}throw Xb},ah=n=>{let e=n.arr[n.pos++],t=e&Dd,r=64;const s=(e&sr)>0?-1:1;if((e&$t)===0)return s*t;const o=n.arr.length;for(;n.pos<o;){if(e=n.arr[n.pos++],t=t+(e&cs)*r,r*=128,e<$t)return s*t;if(t>Jb)throw Qb}throw Xb},kS=n=>{let e=Ae(n);if(e===0)return"";{let t=String.fromCodePoint(co(n));if(--e<100)for(;e--;)t+=String.fromCodePoint(co(n));else for(;e>0;){const r=e<1e4?e:1e4,s=n.arr.subarray(n.pos,n.pos+r);n.pos+=r,t+=String.fromCodePoint.apply(null,s),e-=r}return decodeURIComponent(escape(t))}},ES=n=>si.decode(kt(n)),Or=si?ES:kS,ch=(n,e)=>{const t=new DataView(n.arr.buffer,n.arr.byteOffset+n.pos,e);return n.pos+=e,t},_S=n=>ch(n,4).getFloat32(0,!1),TS=n=>ch(n,8).getFloat64(0,!1),DS=n=>ch(n,8).getBigInt64(0,!1),NS=[n=>{},n=>null,ah,_S,TS,DS,n=>!1,n=>!0,Or,n=>{const e=Ae(n),t={};for(let r=0;r<e;r++){const s=Or(n);t[s]=Ci(n)}return t},n=>{const e=Ae(n),t=[];for(let r=0;r<e;r++)t.push(Ci(n));return t},kt],Ci=n=>NS[127-co(n)](n);class Wp extends vc{constructor(e,t){super(e),this.reader=t,this.s=null,this.count=0}read(){return this.count===0&&(this.s=this.reader(this),xS(this)?this.count=Ae(this)+1:this.count=-1),this.count--,this.s}}class Xl extends vc{constructor(e){super(e),this.s=0,this.count=0}read(){if(this.count===0){this.s=ah(this);const e=Zb(this.s);this.count=1,e&&(this.s=-this.s,this.count=Ae(this)+2)}return this.count--,this.s}}class Cu extends vc{constructor(e){super(e),this.s=0,this.count=0,this.diff=0}read(){if(this.count===0){const e=ah(this),t=e&1;this.diff=fr(e/2),this.count=1,t&&(this.count=Ae(this)+2)}return this.s+=this.diff,this.count--,this.s}}class IS{constructor(e){this.decoder=new Xl(e),this.str=Or(this.decoder),this.spos=0}read(){const e=this.spos+this.decoder.read(),t=this.str.slice(this.spos,e);return this.spos=e,t}}const LS=crypto.getRandomValues.bind(crypto),qb=()=>LS(new Uint32Array(1))[0],MS="10000000-1000-4000-8000"+-1e11,OS=()=>MS.replace(/[018]/g,n=>(n^qb()&15>>n/4).toString(16)),zr=Date.now,Up=n=>new Promise(n);Promise.all.bind(Promise);const Kp=n=>n===void 0?null:n;class RS{constructor(){this.map=new Map}setItem(e,t){this.map.set(e,t)}getItem(e){return this.map.get(e)}}let $b=new RS,uh=!0;try{typeof localStorage<"u"&&localStorage&&($b=localStorage,uh=!1)}catch{}const ew=$b,jS=n=>uh||addEventListener("storage",n),PS=n=>uh||removeEventListener("storage",n),FS=Object.assign,tw=Object.keys,BS=(n,e)=>{for(const t in n)e(n[t],t)},zS=(n,e)=>{const t=[];for(const r in n)t.push(e(n[r],r));return t},Hp=n=>tw(n).length,Yp=n=>tw(n).length,WS=n=>{for(const e in n)return!1;return!0},US=(n,e)=>{for(const t in n)if(!e(n[t],t))return!1;return!0},nw=(n,e)=>Object.prototype.hasOwnProperty.call(n,e),KS=(n,e)=>n===e||Yp(n)===Yp(e)&&US(n,(t,r)=>(t!==void 0||nw(e,r))&&e[r]===t),HS=Object.freeze,rw=n=>{for(const e in n){const t=n[e];(typeof t=="object"||typeof t=="function")&&rw(n[e])}return HS(n)},dh=(n,e,t=0)=>{try{for(;t<n.length;t++)n[t](...e)}finally{t<n.length&&dh(n,e,t+1)}},YS=n=>n,VS=(n,e)=>n===e,oi=(n,e)=>{if(n==null||e==null)return VS(n,e);if(n.constructor!==e.constructor)return!1;if(n===e)return!0;switch(n.constructor){case ArrayBuffer:n=new Uint8Array(n),e=new Uint8Array(e);case Uint8Array:{if(n.byteLength!==e.byteLength)return!1;for(let t=0;t<n.length;t++)if(n[t]!==e[t])return!1;break}case Set:{if(n.size!==e.size)return!1;for(const t of n)if(!e.has(t))return!1;break}case Map:{if(n.size!==e.size)return!1;for(const t of n.keys())if(!e.has(t)||!oi(n.get(t),e.get(t)))return!1;break}case Object:if(Hp(n)!==Hp(e))return!1;for(const t in n)if(!nw(n,t)||!oi(n[t],e[t]))return!1;break;case Array:if(n.length!==e.length)return!1;for(let t=0;t<n.length;t++)if(!oi(n[t],e[t]))return!1;break;default:return!1}return!0},GS=(n,e)=>e.includes(n),Wr=typeof process<"u"&&process.release&&/node|io\.js/.test(process.release.name)&&Object.prototype.toString.call(typeof process<"u"?process:0)==="[object process]",sw=typeof window<"u"&&typeof document<"u"&&!Wr;let Nn;const ZS=()=>{if(Nn===void 0)if(Wr){Nn=Wt();const n=process.argv;let e=null;for(let t=0;t<n.length;t++){const r=n[t];r[0]==="-"?(e!==null&&Nn.set(e,""),e=r):e!==null&&(Nn.set(e,r),e=null)}e!==null&&Nn.set(e,"")}else typeof location=="object"?(Nn=Wt(),(location.search||"?").slice(1).split("&").forEach(n=>{if(n.length!==0){const[e,t]=n.split("=");Nn.set(`--${jp(e,"-")}`,t),Nn.set(`-${jp(e,"-")}`,t)}})):Nn=Wt();return Nn},Ld=n=>ZS().has(n),Sa=n=>Kp(Wr?process.env[n.toUpperCase().replaceAll("-","_")]:ew.getItem(n)),ow=n=>Ld("--"+n)||Sa(n)!==null;ow("production");const JS=Wr&&GS(process.env.FORCE_COLOR,["true","1","2"]),XS=JS||!Ld("--no-colors")&&!ow("no-color")&&(!Wr||process.stdout.isTTY)&&(!Wr||Ld("--color")||Sa("COLORTERM")!==null||(Sa("TERM")||"").includes("color")),iw=n=>new Uint8Array(n),QS=(n,e,t)=>new Uint8Array(n,e,t),qS=n=>new Uint8Array(n),$S=n=>{let e="";for(let t=0;t<n.byteLength;t++)e+=iS(n[t]);return btoa(e)},ek=n=>Buffer.from(n.buffer,n.byteOffset,n.byteLength).toString("base64"),tk=n=>{const e=atob(n),t=iw(e.length);for(let r=0;r<e.length;r++)t[r]=e.charCodeAt(r);return t},nk=n=>{const e=Buffer.from(n,"base64");return QS(e.buffer,e.byteOffset,e.byteLength)},rk=sw?$S:ek,sk=sw?tk:nk,ok=n=>{const e=iw(n.byteLength);return e.set(n),e};class ik{constructor(e,t){this.left=e,this.right=t}}const Qn=(n,e)=>new ik(n,e);typeof DOMParser<"u"&&new DOMParser;const lk=n=>$0(n,(e,t)=>`${t}:${e};`).join(""),Ar=Symbol,lw=Ar(),aw=Ar(),ak=Ar(),ck=Ar(),uk=Ar(),cw=Ar(),dk=Ar(),fh=Ar(),fk=Ar(),hk=n=>{var s;n.length===1&&((s=n[0])==null?void 0:s.constructor)===Function&&(n=n[0]());const e=[],t=[];let r=0;for(;r<n.length;r++){const o=n[r];if(o===void 0)break;if(o.constructor===String||o.constructor===Number)e.push(o);else if(o.constructor===Object)break}for(r>0&&t.push(e.join(""));r<n.length;r++){const o=n[r];o instanceof Symbol||t.push(o)}return t},gk={[lw]:Qn("font-weight","bold"),[aw]:Qn("font-weight","normal"),[ak]:Qn("color","blue"),[uk]:Qn("color","green"),[ck]:Qn("color","grey"),[cw]:Qn("color","red"),[dk]:Qn("color","purple"),[fh]:Qn("color","orange"),[fk]:Qn("color","black")},pk=n=>{var i;n.length===1&&((i=n[0])==null?void 0:i.constructor)===Function&&(n=n[0]());const e=[],t=[],r=Wt();let s=[],o=0;for(;o<n.length;o++){const l=n[o],a=gk[l];if(a!==void 0)r.set(a.left,a.right);else{if(l===void 0)break;if(l.constructor===String||l.constructor===Number){const c=lk(r);o>0||c.length>0?(e.push("%c"+l),t.push(c)):e.push(l)}else break}}for(o>0&&(s=t,s.unshift(e.join("")));o<n.length;o++){const l=n[o];l instanceof Symbol||s.push(l)}return s},uw=XS?pk:hk,mk=(...n)=>{console.log(...uw(n)),fw.forEach(e=>e.print(n))},dw=(...n)=>{console.warn(...uw(n)),n.unshift(fh),fw.forEach(e=>e.print(n))},fw=Fr(),hw=n=>({[Symbol.iterator](){return this},next:n}),Ak=(n,e)=>hw(()=>{let t;do t=n.next();while(!t.done&&!e(t.value));return t}),vu=(n,e)=>hw(()=>{const{done:t,value:r}=n.next();return{done:t,value:t?void 0:e(r)}});class hh{constructor(e,t){this.clock=e,this.len=t}}class xo{constructor(){this.clients=new Map}}const uo=(n,e,t)=>e.clients.forEach((r,s)=>{const o=n.doc.store.clients.get(s);for(let i=0;i<r.length;i++){const l=r[i];Ew(n,o,l.clock,l.len,t)}}),yk=(n,e)=>{let t=0,r=n.length-1;for(;t<=r;){const s=fr((t+r)/2),o=n[s],i=o.clock;if(i<=e){if(e<i+o.len)return s;t=s+1}else r=s-1}return null},$i=(n,e)=>{const t=n.clients.get(e.client);return t!==void 0&&yk(t,e.clock)!==null},gh=n=>{n.clients.forEach(e=>{e.sort((s,o)=>s.clock-o.clock);let t,r;for(t=1,r=1;t<e.length;t++){const s=e[r-1],o=e[t];s.clock+s.len>=o.clock?s.len=Ls(s.len,o.clock+o.len-s.clock):(r<t&&(e[r]=o),r++)}e.length=r})},Md=n=>{const e=new xo;for(let t=0;t<n.length;t++)n[t].clients.forEach((r,s)=>{if(!e.clients.has(s)){const o=r.slice();for(let i=t+1;i<n.length;i++)tS(o,n[i].clients.get(s)||[]);e.clients.set(s,o)}});return gh(e),e},vi=(n,e,t,r)=>{Zn(n.clients,e,()=>[]).push(new hh(t,r))},bk=()=>new xo,wk=n=>{const e=bk();return n.clients.forEach((t,r)=>{const s=[];for(let o=0;o<t.length;o++){const i=t[o];if(i.deleted){const l=i.id.clock;let a=i.length;if(o+1<t.length)for(let c=t[o+1];o+1<t.length&&c.deleted;c=t[++o+1])a+=c.length;s.push(new hh(l,a))}}s.length>0&&e.clients.set(r,s)}),e},So=(n,e)=>{de(n.restEncoder,e.clients.size),dr(e.clients.entries()).sort((t,r)=>r[0]-t[0]).forEach(([t,r])=>{n.resetDsCurVal(),de(n.restEncoder,t);const s=r.length;de(n.restEncoder,s);for(let o=0;o<s;o++){const i=r[o];n.writeDsClock(i.clock),n.writeDsLen(i.len)}})},ph=n=>{const e=new xo,t=Ae(n.restDecoder);for(let r=0;r<t;r++){n.resetDsCurVal();const s=Ae(n.restDecoder),o=Ae(n.restDecoder);if(o>0){const i=Zn(e.clients,s,()=>[]);for(let l=0;l<o;l++)i.push(new hh(n.readDsClock(),n.readDsLen()))}}return e},Vp=(n,e,t)=>{const r=new xo,s=Ae(n.restDecoder);for(let o=0;o<s;o++){n.resetDsCurVal();const i=Ae(n.restDecoder),l=Ae(n.restDecoder),a=t.clients.get(i)||[],c=Xe(t,i);for(let u=0;u<l;u++){const d=n.readDsClock(),f=d+n.readDsLen();if(d<c){c<f&&vi(r,i,c,f-c);let g=Un(a,d),h=a[g];for(!h.deleted&&h.id.clock<d&&(a.splice(g+1,0,Ia(e,h,d-h.id.clock)),g++);g<a.length&&(h=a[g++],h.id.clock<f);)h.deleted||(f<h.id.clock+h.length&&a.splice(g,0,Ia(e,h,f-h.id.clock)),h.delete(e))}else vi(r,i,d,f-d)}}if(r.clients.size>0){const o=new As;return de(o.restEncoder,0),So(o,r),o.toUint8Array()}return null},gw=qb;class Wn extends Vb{constructor({guid:e=OS(),collectionid:t=null,gc:r=!0,gcFilter:s=()=>!0,meta:o=null,autoLoad:i=!1,shouldLoad:l=!0}={}){super(),this.gc=r,this.gcFilter=s,this.clientID=gw(),this.guid=e,this.collectionid=t,this.share=new Map,this.store=new Sw,this._transaction=null,this._transactionCleanups=[],this.subdocs=new Set,this._item=null,this.shouldLoad=l,this.autoLoad=i,this.meta=o,this.isLoaded=!1,this.isSynced=!1,this.isDestroyed=!1,this.whenLoaded=Up(c=>{this.on("load",()=>{this.isLoaded=!0,c(this)})});const a=()=>Up(c=>{const u=d=>{(d===void 0||d===!0)&&(this.off("sync",u),c())};this.on("sync",u)});this.on("sync",c=>{c===!1&&this.isSynced&&(this.whenSynced=a()),this.isSynced=c===void 0||c===!0,this.isSynced&&!this.isLoaded&&this.emit("load",[this])}),this.whenSynced=a()}load(){const e=this._item;e!==null&&!this.shouldLoad&&je(e.parent.doc,t=>{t.subdocsLoaded.add(this)},null,!0),this.shouldLoad=!0}getSubdocs(){return this.subdocs}getSubdocGuids(){return new Set(dr(this.subdocs).map(e=>e.guid))}transact(e,t=null){return je(this,e,t)}get(e,t=mt){const r=Zn(this.share,e,()=>{const o=new t;return o._integrate(this,null),o}),s=r.constructor;if(t!==mt&&s!==t)if(s===mt){const o=new t;o._map=r._map,r._map.forEach(i=>{for(;i!==null;i=i.left)i.parent=o}),o._start=r._start;for(let i=o._start;i!==null;i=i.right)i.parent=o;return o._length=r._length,this.share.set(e,o),o._integrate(this,null),o}else throw new Error(`Type with the name ${e} has already been defined with a different constructor`);return r}getArray(e=""){return this.get(e,oo)}getText(e=""){return this.get(e,ho)}getMap(e=""){return this.get(e,rn)}getXmlElement(e=""){return this.get(e,Ur)}getXmlFragment(e=""){return this.get(e,ys)}toJSON(){const e={};return this.share.forEach((t,r)=>{e[r]=t.toJSON()}),e}destroy(){this.isDestroyed=!0,dr(this.subdocs).forEach(t=>t.destroy());const e=this._item;if(e!==null){this._item=null;const t=e.content;t.doc=new Wn({guid:this.guid,...t.opts,shouldLoad:!1}),t.doc._item=e,je(e.parent.doc,r=>{const s=t.doc;e.deleted||r.subdocsAdded.add(s),r.subdocsRemoved.add(this)},null,!0)}this.emit("destroyed",[!0]),this.emit("destroy",[this]),super.destroy()}}class pw{constructor(e){this.restDecoder=e}resetDsCurVal(){}readDsClock(){return Ae(this.restDecoder)}readDsLen(){return Ae(this.restDecoder)}}class mw extends pw{readLeftID(){return Ce(Ae(this.restDecoder),Ae(this.restDecoder))}readRightID(){return Ce(Ae(this.restDecoder),Ae(this.restDecoder))}readClient(){return Ae(this.restDecoder)}readInfo(){return co(this.restDecoder)}readString(){return Or(this.restDecoder)}readParentInfo(){return Ae(this.restDecoder)===1}readTypeRef(){return Ae(this.restDecoder)}readLen(){return Ae(this.restDecoder)}readAny(){return Ci(this.restDecoder)}readBuf(){return ok(kt(this.restDecoder))}readJSON(){return JSON.parse(Or(this.restDecoder))}readKey(){return Or(this.restDecoder)}}class Ck{constructor(e){this.dsCurrVal=0,this.restDecoder=e}resetDsCurVal(){this.dsCurrVal=0}readDsClock(){return this.dsCurrVal+=Ae(this.restDecoder),this.dsCurrVal}readDsLen(){const e=Ae(this.restDecoder)+1;return this.dsCurrVal+=e,e}}class fo extends Ck{constructor(e){super(e),this.keys=[],Ae(e),this.keyClockDecoder=new Cu(kt(e)),this.clientDecoder=new Xl(kt(e)),this.leftClockDecoder=new Cu(kt(e)),this.rightClockDecoder=new Cu(kt(e)),this.infoDecoder=new Wp(kt(e),co),this.stringDecoder=new IS(kt(e)),this.parentInfoDecoder=new Wp(kt(e),co),this.typeRefDecoder=new Xl(kt(e)),this.lenDecoder=new Xl(kt(e))}readLeftID(){return new ro(this.clientDecoder.read(),this.leftClockDecoder.read())}readRightID(){return new ro(this.clientDecoder.read(),this.rightClockDecoder.read())}readClient(){return this.clientDecoder.read()}readInfo(){return this.infoDecoder.read()}readString(){return this.stringDecoder.read()}readParentInfo(){return this.parentInfoDecoder.read()===1}readTypeRef(){return this.typeRefDecoder.read()}readLen(){return this.lenDecoder.read()}readAny(){return Ci(this.restDecoder)}readBuf(){return kt(this.restDecoder)}readJSON(){return Ci(this.restDecoder)}readKey(){const e=this.keyClockDecoder.read();if(e<this.keys.length)return this.keys[e];{const t=this.stringDecoder.read();return this.keys.push(t),t}}}class Aw{constructor(){this.restEncoder=Et()}toUint8Array(){return He(this.restEncoder)}resetDsCurVal(){}writeDsClock(e){de(this.restEncoder,e)}writeDsLen(e){de(this.restEncoder,e)}}class el extends Aw{writeLeftID(e){de(this.restEncoder,e.client),de(this.restEncoder,e.clock)}writeRightID(e){de(this.restEncoder,e.client),de(this.restEncoder,e.clock)}writeClient(e){de(this.restEncoder,e)}writeInfo(e){Nd(this.restEncoder,e)}writeString(e){us(this.restEncoder,e)}writeParentInfo(e){de(this.restEncoder,e?1:0)}writeTypeRef(e){de(this.restEncoder,e)}writeLen(e){de(this.restEncoder,e)}writeAny(e){wi(this.restEncoder,e)}writeBuf(e){Je(this.restEncoder,e)}writeJSON(e){us(this.restEncoder,JSON.stringify(e))}writeKey(e){us(this.restEncoder,e)}}class yw{constructor(){this.restEncoder=Et(),this.dsCurrVal=0}toUint8Array(){return He(this.restEncoder)}resetDsCurVal(){this.dsCurrVal=0}writeDsClock(e){const t=e-this.dsCurrVal;this.dsCurrVal=e,de(this.restEncoder,t)}writeDsLen(e){e===0&&En(),de(this.restEncoder,e-1),this.dsCurrVal+=e}}class As extends yw{constructor(){super(),this.keyMap=new Map,this.keyClock=0,this.keyClockEncoder=new wu,this.clientEncoder=new Jl,this.leftClockEncoder=new wu,this.rightClockEncoder=new wu,this.infoEncoder=new Fp(Nd),this.stringEncoder=new vS,this.parentInfoEncoder=new Fp(Nd),this.typeRefEncoder=new Jl,this.lenEncoder=new Jl}toUint8Array(){const e=Et();return de(e,0),Je(e,this.keyClockEncoder.toUint8Array()),Je(e,this.clientEncoder.toUint8Array()),Je(e,this.leftClockEncoder.toUint8Array()),Je(e,this.rightClockEncoder.toUint8Array()),Je(e,He(this.infoEncoder)),Je(e,this.stringEncoder.toUint8Array()),Je(e,He(this.parentInfoEncoder)),Je(e,this.typeRefEncoder.toUint8Array()),Je(e,this.lenEncoder.toUint8Array()),Cc(e,He(this.restEncoder)),He(e)}writeLeftID(e){this.clientEncoder.write(e.client),this.leftClockEncoder.write(e.clock)}writeRightID(e){this.clientEncoder.write(e.client),this.rightClockEncoder.write(e.clock)}writeClient(e){this.clientEncoder.write(e)}writeInfo(e){this.infoEncoder.write(e)}writeString(e){this.stringEncoder.write(e)}writeParentInfo(e){this.parentInfoEncoder.write(e?1:0)}writeTypeRef(e){this.typeRefEncoder.write(e)}writeLen(e){this.lenEncoder.write(e)}writeAny(e){wi(this.restEncoder,e)}writeBuf(e){Je(this.restEncoder,e)}writeJSON(e){wi(this.restEncoder,e)}writeKey(e){const t=this.keyMap.get(e);t===void 0?(this.keyClockEncoder.write(this.keyClock++),this.stringEncoder.write(e)):this.keyClockEncoder.write(t)}}const vk=(n,e,t,r)=>{r=Ls(r,e[0].id.clock);const s=Un(e,r);de(n.restEncoder,e.length-s),n.writeClient(t),de(n.restEncoder,r);const o=e[s];o.write(n,r-o.id.clock);for(let i=s+1;i<e.length;i++)e[i].write(n,0)},mh=(n,e,t)=>{const r=new Map;t.forEach((s,o)=>{Xe(e,o)>s&&r.set(o,s)}),xc(e).forEach((s,o)=>{t.has(o)||r.set(o,0)}),de(n.restEncoder,r.size),dr(r.entries()).sort((s,o)=>o[0]-s[0]).forEach(([s,o])=>{vk(n,e.clients.get(s),s,o)})},xk=(n,e)=>{const t=Wt(),r=Ae(n.restDecoder);for(let s=0;s<r;s++){const o=Ae(n.restDecoder),i=new Array(o),l=n.readClient();let a=Ae(n.restDecoder);t.set(l,{i:0,refs:i});for(let c=0;c<o;c++){const u=n.readInfo();switch(wc&u){case 0:{const d=n.readLen();i[c]=new sn(Ce(l,a),d),a+=d;break}case 10:{const d=Ae(n.restDecoder);i[c]=new on(Ce(l,a),d),a+=d;break}default:{const d=(u&(sr|$t))===0,f=new Pe(Ce(l,a),null,(u&$t)===$t?n.readLeftID():null,null,(u&sr)===sr?n.readRightID():null,d?n.readParentInfo()?e.get(n.readString()):n.readLeftID():null,d&&(u&yi)===yi?n.readString():null,Xw(n,u));i[c]=f,a+=f.length}}}}return t},Sk=(n,e,t)=>{const r=[];let s=dr(t.keys()).sort((g,h)=>g-h);if(s.length===0)return null;const o=()=>{if(s.length===0)return null;let g=t.get(s[s.length-1]);for(;g.refs.length===g.i;)if(s.pop(),s.length>0)g=t.get(s[s.length-1]);else return null;return g};let i=o();if(i===null)return null;const l=new Sw,a=new Map,c=(g,h)=>{const m=a.get(g);(m==null||m>h)&&a.set(g,h)};let u=i.refs[i.i++];const d=new Map,f=()=>{for(const g of r){const h=g.id.client,m=t.get(h);m?(m.i--,l.clients.set(h,m.refs.slice(m.i)),t.delete(h),m.i=0,m.refs=[]):l.clients.set(h,[g]),s=s.filter(A=>A!==h)}r.length=0};for(;;){if(u.constructor!==on){const h=Zn(d,u.id.client,()=>Xe(e,u.id.client))-u.id.clock;if(h<0)r.push(u),c(u.id.client,u.id.clock-1),f();else{const m=u.getMissing(n,e);if(m!==null){r.push(u);const A=t.get(m)||{refs:[],i:0};if(A.refs.length===A.i)c(m,Xe(e,m)),f();else{u=A.refs[A.i++];continue}}else(h===0||h<u.length)&&(u.integrate(n,h),d.set(u.id.client,u.id.clock+u.length))}}if(r.length>0)u=r.pop();else if(i!==null&&i.i<i.refs.length)u=i.refs[i.i++];else{if(i=o(),i===null)break;u=i.refs[i.i++]}}if(l.clients.size>0){const g=new As;return mh(g,l,new Map),de(g.restEncoder,0),{missing:a,update:g.toUint8Array()}}return null},kk=(n,e)=>mh(n,e.doc.store,e.beforeState),Ek=(n,e,t,r=new fo(n))=>je(e,s=>{s.local=!1;let o=!1;const i=s.doc,l=i.store,a=xk(r,i),c=Sk(s,l,a),u=l.pendingStructs;if(u){for(const[f,g]of u.missing)if(g<Xe(l,f)){o=!0;break}if(c){for(const[f,g]of c.missing){const h=u.missing.get(f);(h==null||h>g)&&u.missing.set(f,g)}u.update=Ea([u.update,c.update])}}else l.pendingStructs=c;const d=Vp(r,s,l);if(l.pendingDs){const f=new fo($r(l.pendingDs));Ae(f.restDecoder);const g=Vp(f,s,l);d&&g?l.pendingDs=Ea([d,g]):l.pendingDs=d||g}else l.pendingDs=d;if(o){const f=l.pendingStructs.update;l.pendingStructs=null,bw(s.doc,f)}},t,!1),bw=(n,e,t,r=fo)=>{const s=$r(e);Ek(s,n,t,new r(s))},_k=(n,e,t)=>bw(n,e,t,mw),Tk=(n,e,t=new Map)=>{mh(n,e.store,t),So(n,wk(e.store))},Dk=(n,e=new Uint8Array([0]),t=new As)=>{const r=ww(e);Tk(t,n,r);const s=[t.toUint8Array()];if(n.store.pendingDs&&s.push(n.store.pendingDs),n.store.pendingStructs&&s.push(qk(n.store.pendingStructs.update,e)),s.length>1){if(t.constructor===el)return Xk(s.map((o,i)=>i===0?o:eE(o)));if(t.constructor===As)return Ea(s)}return s[0]},Nk=(n,e)=>Dk(n,e,new el),Ik=n=>{const e=new Map,t=Ae(n.restDecoder);for(let r=0;r<t;r++){const s=Ae(n.restDecoder),o=Ae(n.restDecoder);e.set(s,o)}return e},ww=n=>Ik(new pw($r(n))),Cw=(n,e)=>(de(n.restEncoder,e.size),dr(e.entries()).sort((t,r)=>r[0]-t[0]).forEach(([t,r])=>{de(n.restEncoder,t),de(n.restEncoder,r)}),n),Lk=(n,e)=>Cw(n,xc(e.store)),Mk=(n,e=new yw)=>(n instanceof Map?Cw(e,n):Lk(e,n),e.toUint8Array()),Ok=n=>Mk(n,new Aw);class Rk{constructor(){this.l=[]}}const Gp=()=>new Rk,Zp=(n,e)=>n.l.push(e),Jp=(n,e)=>{const t=n.l,r=t.length;n.l=t.filter(s=>e!==s),r===n.l.length&&console.error("[yjs] Tried to remove event handler that doesn't exist.")},vw=(n,e,t)=>dh(n.l,[e,t]);class ro{constructor(e,t){this.client=e,this.clock=t}}const Qs=(n,e)=>n===e||n!==null&&e!==null&&n.client===e.client&&n.clock===e.clock,Ce=(n,e)=>new ro(n,e),xw=n=>{for(const[e,t]of n.doc.share.entries())if(t===n)return e;throw En()},ka=(n,e)=>{for(;e!==null;){if(e.parent===n)return!0;e=e.parent._item}return!1};class jk{constructor(e,t,r,s=0){this.type=e,this.tname=t,this.item=r,this.assoc=s}}class Pk{constructor(e,t,r=0){this.type=e,this.index=t,this.assoc=r}}const Fk=(n,e,t=0)=>new Pk(n,e,t),xl=(n,e,t)=>{let r=null,s=null;return n._item===null?s=xw(n):r=Ce(n._item.id.client,n._item.id.clock),new jk(r,s,e,t)},Bk=(n,e,t=0)=>{let r=n._start;if(t<0){if(e===0)return xl(n,null,t);e--}for(;r!==null;){if(!r.deleted&&r.countable){if(r.length>e)return xl(n,Ce(r.id.client,r.id.clock+e),t);e-=r.length}if(r.right===null&&t<0)return xl(n,r.lastId,t);r=r.right}return xl(n,null,t)},zk=(n,e)=>{const t=so(n,e),r=e.clock-t.id.clock;return{item:t,diff:r}},Wk=(n,e,t=!0)=>{const r=e.store,s=n.item,o=n.type,i=n.tname,l=n.assoc;let a=null,c=0;if(s!==null){if(Xe(r,s.client)<=s.clock)return null;const u=t?Pd(r,s):zk(r,s),d=u.item;if(!(d instanceof Pe))return null;if(a=d.parent,a._item===null||!a._item.deleted){c=d.deleted||!d.countable?0:u.diff+(l>=0?0:1);let f=d.left;for(;f!==null;)!f.deleted&&f.countable&&(c+=f.length),f=f.left}}else{if(i!==null)a=e.get(i);else if(o!==null){if(Xe(r,o.client)<=o.clock)return null;const{item:u}=t?Pd(r,o):{item:so(r,o)};if(u instanceof Pe&&u.content instanceof Jn)a=u.content.type;else return null}else throw En();l>=0?c=a._length:c=0}return Fk(a,c,n.assoc)},Uk=(n,e)=>n===e||n!==null&&e!==null&&n.tname===e.tname&&Qs(n.item,e.item)&&Qs(n.type,e.type)&&n.assoc===e.assoc,Hs=(n,e)=>e===void 0?!n.deleted:e.sv.has(n.id.client)&&(e.sv.get(n.id.client)||0)>n.id.clock&&!$i(e.ds,n.id),Od=(n,e)=>{const t=Zn(n.meta,Od,Fr),r=n.doc.store;t.has(e)||(e.sv.forEach((s,o)=>{s<Xe(r,o)&&Bt(n,Ce(o,s))}),uo(n,e.ds,s=>{}),t.add(e))};class Sw{constructor(){this.clients=new Map,this.pendingStructs=null,this.pendingDs=null}}const xc=n=>{const e=new Map;return n.clients.forEach((t,r)=>{const s=t[t.length-1];e.set(r,s.id.clock+s.length)}),e},Xe=(n,e)=>{const t=n.clients.get(e);if(t===void 0)return 0;const r=t[t.length-1];return r.id.clock+r.length},kw=(n,e)=>{let t=n.clients.get(e.id.client);if(t===void 0)t=[],n.clients.set(e.id.client,t);else{const r=t[t.length-1];if(r.id.clock+r.length!==e.id.clock)throw En()}t.push(e)},Un=(n,e)=>{let t=0,r=n.length-1,s=n[r],o=s.id.clock;if(o===e)return r;let i=fr(e/(o+s.length-1)*r);for(;t<=r;){if(s=n[i],o=s.id.clock,o<=e){if(e<o+s.length)return i;t=i+1}else r=i-1;i=fr((t+r)/2)}throw En()},Kk=(n,e)=>{const t=n.clients.get(e.client);return t[Un(t,e.clock)]},so=Kk,Rd=(n,e,t)=>{const r=Un(e,t),s=e[r];return s.id.clock<t&&s instanceof Pe?(e.splice(r+1,0,Ia(n,s,t-s.id.clock)),r+1):r},Bt=(n,e)=>{const t=n.doc.store.clients.get(e.client);return t[Rd(n,t,e.clock)]},Xp=(n,e,t)=>{const r=e.clients.get(t.client),s=Un(r,t.clock),o=r[s];return t.clock!==o.id.clock+o.length-1&&o.constructor!==sn&&r.splice(s+1,0,Ia(n,o,t.clock-o.id.clock+1)),o},Hk=(n,e,t)=>{const r=n.clients.get(e.id.client);r[Un(r,e.id.clock)]=t},Ew=(n,e,t,r,s)=>{if(r===0)return;const o=t+r;let i=Rd(n,e,t),l;do l=e[i++],o<l.id.clock+l.length&&Rd(n,e,o),s(l);while(i<e.length&&e[i].id.clock<o)};class Yk{constructor(e,t,r){this.doc=e,this.deleteSet=new xo,this.beforeState=xc(e.store),this.afterState=new Map,this.changed=new Map,this.changedParentTypes=new Map,this._mergeStructs=[],this.origin=t,this.meta=new Map,this.local=r,this.subdocsAdded=new Set,this.subdocsRemoved=new Set,this.subdocsLoaded=new Set,this._needFormattingCleanup=!1}}const Qp=(n,e)=>e.deleteSet.clients.size===0&&!eS(e.afterState,(t,r)=>e.beforeState.get(r)!==t)?!1:(gh(e.deleteSet),kk(n,e),So(n,e.deleteSet),!0),qp=(n,e,t)=>{const r=e._item;(r===null||r.id.clock<(n.beforeState.get(r.id.client)||0)&&!r.deleted)&&Zn(n.changed,e,Fr).add(t)},Ql=(n,e)=>{let t=n[e],r=n[e-1],s=e;for(;s>0;t=r,r=n[--s-1]){if(r.deleted===t.deleted&&r.constructor===t.constructor&&r.mergeWith(t)){t instanceof Pe&&t.parentSub!==null&&t.parent._map.get(t.parentSub)===t&&t.parent._map.set(t.parentSub,r);continue}break}const o=e-s;return o&&n.splice(e+1-o,o),o},Vk=(n,e,t)=>{for(const[r,s]of n.clients.entries()){const o=e.clients.get(r);for(let i=s.length-1;i>=0;i--){const l=s[i],a=l.clock+l.len;for(let c=Un(o,l.clock),u=o[c];c<o.length&&u.id.clock<a;u=o[++c]){const d=o[c];if(l.clock+l.len<=d.id.clock)break;d instanceof Pe&&d.deleted&&!d.keep&&t(d)&&d.gc(e,!1)}}}},Gk=(n,e)=>{n.clients.forEach((t,r)=>{const s=e.clients.get(r);for(let o=t.length-1;o>=0;o--){const i=t[o],l=sh(s.length-1,1+Un(s,i.clock+i.len-1));for(let a=l,c=s[a];a>0&&c.id.clock>=i.clock;c=s[a])a-=1+Ql(s,a)}})},_w=(n,e)=>{if(e<n.length){const t=n[e],r=t.doc,s=r.store,o=t.deleteSet,i=t._mergeStructs;try{gh(o),t.afterState=xc(t.doc.store),r.emit("beforeObserverCalls",[t,r]);const l=[];t.changed.forEach((a,c)=>l.push(()=>{(c._item===null||!c._item.deleted)&&c._callObserver(t,a)})),l.push(()=>{t.changedParentTypes.forEach((a,c)=>{c._dEH.l.length>0&&(c._item===null||!c._item.deleted)&&(a=a.filter(u=>u.target._item===null||!u.target._item.deleted),a.forEach(u=>{u.currentTarget=c,u._path=null}),a.sort((u,d)=>u.path.length-d.path.length),vw(c._dEH,a,t))})}),l.push(()=>r.emit("afterTransaction",[t,r])),dh(l,[]),t._needFormattingCleanup&&hE(t)}finally{r.gc&&Vk(o,s,r.gcFilter),Gk(o,s),t.afterState.forEach((u,d)=>{const f=t.beforeState.get(d)||0;if(f!==u){const g=s.clients.get(d),h=Ls(Un(g,f),1);for(let m=g.length-1;m>=h;)m-=1+Ql(g,m)}});for(let u=i.length-1;u>=0;u--){const{client:d,clock:f}=i[u].id,g=s.clients.get(d),h=Un(g,f);h+1<g.length&&Ql(g,h+1)>1||h>0&&Ql(g,h)}if(!t.local&&t.afterState.get(r.clientID)!==t.beforeState.get(r.clientID)&&(mk(fh,lw,"[yjs] ",aw,cw,"Changed the client-id because another client seems to be using it."),r.clientID=gw()),r.emit("afterTransactionCleanup",[t,r]),r._observers.has("update")){const u=new el;Qp(u,t)&&r.emit("update",[u.toUint8Array(),t.origin,r,t])}if(r._observers.has("updateV2")){const u=new As;Qp(u,t)&&r.emit("updateV2",[u.toUint8Array(),t.origin,r,t])}const{subdocsAdded:l,subdocsLoaded:a,subdocsRemoved:c}=t;(l.size>0||c.size>0||a.size>0)&&(l.forEach(u=>{u.clientID=r.clientID,u.collectionid==null&&(u.collectionid=r.collectionid),r.subdocs.add(u)}),c.forEach(u=>r.subdocs.delete(u)),r.emit("subdocs",[{loaded:a,added:l,removed:c},r,t]),c.forEach(u=>u.destroy())),n.length<=e+1?(r._transactionCleanups=[],r.emit("afterAllTransactions",[r,n])):_w(n,e+1)}}},je=(n,e,t=null,r=!0)=>{const s=n._transactionCleanups;let o=!1,i=null;n._transaction===null&&(o=!0,n._transaction=new Yk(n,t,r),s.push(n._transaction),s.length===1&&n.emit("beforeAllTransactions",[n]),n.emit("beforeTransaction",[n._transaction,n]));try{i=e(n._transaction)}finally{if(o){const l=n._transaction===s[0];n._transaction=null,l&&_w(s,0)}}return i};class Zk{constructor(e,t){this.insertions=t,this.deletions=e,this.meta=new Map}}const $p=(n,e,t)=>{uo(n,t.deletions,r=>{r instanceof Pe&&e.scope.some(s=>s===n.doc||ka(s,r))&&Sh(r,!1)})},em=(n,e,t)=>{let r=null;const s=n.doc,o=n.scope;je(s,l=>{for(;e.length>0&&n.currStackItem===null;){const a=s.store,c=e.pop(),u=new Set,d=[];let f=!1;uo(l,c.insertions,g=>{if(g instanceof Pe){if(g.redone!==null){let{item:h,diff:m}=Pd(a,g.id);m>0&&(h=Bt(l,Ce(h.id.client,h.id.clock+m))),g=h}!g.deleted&&o.some(h=>h===l.doc||ka(h,g))&&d.push(g)}}),uo(l,c.deletions,g=>{g instanceof Pe&&o.some(h=>h===l.doc||ka(h,g))&&!$i(c.insertions,g.id)&&u.add(g)}),u.forEach(g=>{f=Jw(l,g,u,c.insertions,n.ignoreRemoteMapChanges,n)!==null||f});for(let g=d.length-1;g>=0;g--){const h=d[g];n.deleteFilter(h)&&(h.delete(l),f=!0)}n.currStackItem=f?c:null}l.changed.forEach((a,c)=>{a.has(null)&&c._searchMarker&&(c._searchMarker.length=0)}),r=l},n);const i=n.currStackItem;if(i!=null){const l=r.changedParentTypes;n.emit("stack-item-popped",[{stackItem:i,type:t,changedParentTypes:l,origin:n},n]),n.currStackItem=null}return i};class Tw extends Vb{constructor(e,{captureTimeout:t=500,captureTransaction:r=a=>!0,deleteFilter:s=()=>!0,trackedOrigins:o=new Set([null]),ignoreRemoteMapChanges:i=!1,doc:l=Td(e)?e[0].doc:e instanceof Wn?e:e.doc}={}){super(),this.scope=[],this.doc=l,this.addToScope(e),this.deleteFilter=s,o.add(this),this.trackedOrigins=o,this.captureTransaction=r,this.undoStack=[],this.redoStack=[],this.undoing=!1,this.redoing=!1,this.currStackItem=null,this.lastChange=0,this.ignoreRemoteMapChanges=i,this.captureTimeout=t,this.afterTransactionHandler=a=>{if(!this.captureTransaction(a)||!this.scope.some(A=>a.changedParentTypes.has(A)||A===this.doc)||!this.trackedOrigins.has(a.origin)&&(!a.origin||!this.trackedOrigins.has(a.origin.constructor)))return;const c=this.undoing,u=this.redoing,d=c?this.redoStack:this.undoStack;c?this.stopCapturing():u||this.clear(!1,!0);const f=new xo;a.afterState.forEach((A,b)=>{const y=a.beforeState.get(b)||0,w=A-y;w>0&&vi(f,b,y,w)});const g=zr();let h=!1;if(this.lastChange>0&&g-this.lastChange<this.captureTimeout&&d.length>0&&!c&&!u){const A=d[d.length-1];A.deletions=Md([A.deletions,a.deleteSet]),A.insertions=Md([A.insertions,f])}else d.push(new Zk(a.deleteSet,f)),h=!0;!c&&!u&&(this.lastChange=g),uo(a,a.deleteSet,A=>{A instanceof Pe&&this.scope.some(b=>b===a.doc||ka(b,A))&&Sh(A,!0)});const m=[{stackItem:d[d.length-1],origin:a.origin,type:c?"redo":"undo",changedParentTypes:a.changedParentTypes},this];h?this.emit("stack-item-added",m):this.emit("stack-item-updated",m)},this.doc.on("afterTransaction",this.afterTransactionHandler),this.doc.on("destroy",()=>{this.destroy()})}addToScope(e){const t=new Set(this.scope);e=Td(e)?e:[e],e.forEach(r=>{t.has(r)||(t.add(r),(r instanceof mt?r.doc!==this.doc:r!==this.doc)&&dw("[yjs#509] Not same Y.Doc"),this.scope.push(r))})}addTrackedOrigin(e){this.trackedOrigins.add(e)}removeTrackedOrigin(e){this.trackedOrigins.delete(e)}clear(e=!0,t=!0){(e&&this.canUndo()||t&&this.canRedo())&&this.doc.transact(r=>{e&&(this.undoStack.forEach(s=>$p(r,this,s)),this.undoStack=[]),t&&(this.redoStack.forEach(s=>$p(r,this,s)),this.redoStack=[]),this.emit("stack-cleared",[{undoStackCleared:e,redoStackCleared:t}])})}stopCapturing(){this.lastChange=0}undo(){this.undoing=!0;let e;try{e=em(this,this.undoStack,"undo")}finally{this.undoing=!1}return e}redo(){this.redoing=!0;let e;try{e=em(this,this.redoStack,"redo")}finally{this.redoing=!1}return e}canUndo(){return this.undoStack.length>0}canRedo(){return this.redoStack.length>0}destroy(){this.trackedOrigins.delete(this),this.doc.off("afterTransaction",this.afterTransactionHandler),super.destroy()}}function*Jk(n){const e=Ae(n.restDecoder);for(let t=0;t<e;t++){const r=Ae(n.restDecoder),s=n.readClient();let o=Ae(n.restDecoder);for(let i=0;i<r;i++){const l=n.readInfo();if(l===10){const a=Ae(n.restDecoder);yield new on(Ce(s,o),a),o+=a}else if((wc&l)!==0){const a=(l&(sr|$t))===0,c=new Pe(Ce(s,o),null,(l&$t)===$t?n.readLeftID():null,null,(l&sr)===sr?n.readRightID():null,a?n.readParentInfo()?n.readString():n.readLeftID():null,a&&(l&yi)===yi?n.readString():null,Xw(n,l));yield c,o+=c.length}else{const a=n.readLen();yield new sn(Ce(s,o),a),o+=a}}}}class Ah{constructor(e,t){this.gen=Jk(e),this.curr=null,this.done=!1,this.filterSkips=t,this.next()}next(){do this.curr=this.gen.next().value||null;while(this.filterSkips&&this.curr!==null&&this.curr.constructor===on);return this.curr}}class yh{constructor(e){this.currClient=0,this.startClock=0,this.written=0,this.encoder=e,this.clientStructs=[]}}const Xk=n=>Ea(n,mw,el),Qk=(n,e)=>{if(n.constructor===sn){const{client:t,clock:r}=n.id;return new sn(Ce(t,r+e),n.length-e)}else if(n.constructor===on){const{client:t,clock:r}=n.id;return new on(Ce(t,r+e),n.length-e)}else{const t=n,{client:r,clock:s}=t.id;return new Pe(Ce(r,s+e),null,Ce(r,s+e-1),null,t.rightOrigin,t.parent,t.parentSub,t.content.splice(e))}},Ea=(n,e=fo,t=As)=>{if(n.length===1)return n[0];const r=n.map(u=>new e($r(u)));let s=r.map(u=>new Ah(u,!0)),o=null;const i=new t,l=new yh(i);for(;s=s.filter(f=>f.curr!==null),s.sort((f,g)=>{if(f.curr.id.client===g.curr.id.client){const h=f.curr.id.clock-g.curr.id.clock;return h===0?f.curr.constructor===g.curr.constructor?0:f.curr.constructor===on?1:-1:h}else return g.curr.id.client-f.curr.id.client}),s.length!==0;){const u=s[0],d=u.curr.id.client;if(o!==null){let f=u.curr,g=!1;for(;f!==null&&f.id.clock+f.length<=o.struct.id.clock+o.struct.length&&f.id.client>=o.struct.id.client;)f=u.next(),g=!0;if(f===null||f.id.client!==d||g&&f.id.clock>o.struct.id.clock+o.struct.length)continue;if(d!==o.struct.id.client)Sr(l,o.struct,o.offset),o={struct:f,offset:0},u.next();else if(o.struct.id.clock+o.struct.length<f.id.clock)if(o.struct.constructor===on)o.struct.length=f.id.clock+f.length-o.struct.id.clock;else{Sr(l,o.struct,o.offset);const h=f.id.clock-o.struct.id.clock-o.struct.length;o={struct:new on(Ce(d,o.struct.id.clock+o.struct.length),h),offset:0}}else{const h=o.struct.id.clock+o.struct.length-f.id.clock;h>0&&(o.struct.constructor===on?o.struct.length-=h:f=Qk(f,h)),o.struct.mergeWith(f)||(Sr(l,o.struct,o.offset),o={struct:f,offset:0},u.next())}}else o={struct:u.curr,offset:0},u.next();for(let f=u.curr;f!==null&&f.id.client===d&&f.id.clock===o.struct.id.clock+o.struct.length&&f.constructor!==on;f=u.next())Sr(l,o.struct,o.offset),o={struct:f,offset:0}}o!==null&&(Sr(l,o.struct,o.offset),o=null),bh(l);const a=r.map(u=>ph(u)),c=Md(a);return So(i,c),i.toUint8Array()},qk=(n,e,t=fo,r=As)=>{const s=ww(e),o=new r,i=new yh(o),l=new t($r(n)),a=new Ah(l,!1);for(;a.curr;){const u=a.curr,d=u.id.client,f=s.get(d)||0;if(a.curr.constructor===on){a.next();continue}if(u.id.clock+u.length>f)for(Sr(i,u,Ls(f-u.id.clock,0)),a.next();a.curr&&a.curr.id.client===d;)Sr(i,a.curr,0),a.next();else for(;a.curr&&a.curr.id.client===d&&a.curr.id.clock+a.curr.length<=f;)a.next()}bh(i);const c=ph(l);return So(o,c),o.toUint8Array()},Dw=n=>{n.written>0&&(n.clientStructs.push({written:n.written,restEncoder:He(n.encoder.restEncoder)}),n.encoder.restEncoder=Et(),n.written=0)},Sr=(n,e,t)=>{n.written>0&&n.currClient!==e.id.client&&Dw(n),n.written===0&&(n.currClient=e.id.client,n.encoder.writeClient(e.id.client),de(n.encoder.restEncoder,e.id.clock+t)),e.write(n.encoder,t),n.written++},bh=n=>{Dw(n);const e=n.encoder.restEncoder;de(e,n.clientStructs.length);for(let t=0;t<n.clientStructs.length;t++){const r=n.clientStructs[t];de(e,r.written),Cc(e,r.restEncoder)}},$k=(n,e,t,r)=>{const s=new t($r(n)),o=new Ah(s,!1),i=new r,l=new yh(i);for(let c=o.curr;c!==null;c=o.next())Sr(l,e(c),0);bh(l);const a=ph(s);return So(i,a),i.toUint8Array()},eE=n=>$k(n,YS,fo,el),tm="You must not compute changes after the event-handler fired.";class Sc{constructor(e,t){this.target=e,this.currentTarget=e,this.transaction=t,this._changes=null,this._keys=null,this._delta=null,this._path=null}get path(){return this._path||(this._path=tE(this.currentTarget,this.target))}deletes(e){return $i(this.transaction.deleteSet,e.id)}get keys(){if(this._keys===null){if(this.transaction.doc._transactionCleanups.length===0)throw Br(tm);const e=new Map,t=this.target;this.transaction.changed.get(t).forEach(s=>{if(s!==null){const o=t._map.get(s);let i,l;if(this.adds(o)){let a=o.left;for(;a!==null&&this.adds(a);)a=a.left;if(this.deletes(o))if(a!==null&&this.deletes(a))i="delete",l=Au(a.content.getContent());else return;else a!==null&&this.deletes(a)?(i="update",l=Au(a.content.getContent())):(i="add",l=void 0)}else if(this.deletes(o))i="delete",l=Au(o.content.getContent());else return;e.set(s,{action:i,oldValue:l})}}),this._keys=e}return this._keys}get delta(){return this.changes.delta}adds(e){return e.id.clock>=(this.transaction.beforeState.get(e.id.client)||0)}get changes(){let e=this._changes;if(e===null){if(this.transaction.doc._transactionCleanups.length===0)throw Br(tm);const t=this.target,r=Fr(),s=Fr(),o=[];if(e={added:r,deleted:s,delta:o,keys:this.keys},this.transaction.changed.get(t).has(null)){let l=null;const a=()=>{l&&o.push(l)};for(let c=t._start;c!==null;c=c.right)c.deleted?this.deletes(c)&&!this.adds(c)&&((l===null||l.delete===void 0)&&(a(),l={delete:0}),l.delete+=c.length,s.add(c)):this.adds(c)?((l===null||l.insert===void 0)&&(a(),l={insert:[]}),l.insert=l.insert.concat(c.content.getContent()),r.add(c)):((l===null||l.retain===void 0)&&(a(),l={retain:0}),l.retain+=c.length);l!==null&&l.retain===void 0&&a()}this._changes=e}return e}}const tE=(n,e)=>{const t=[];for(;e._item!==null&&e!==n;){if(e._item.parentSub!==null)t.unshift(e._item.parentSub);else{let r=0,s=e._item.parent._start;for(;s!==e._item&&s!==null;)!s.deleted&&s.countable&&(r+=s.length),s=s.right;t.unshift(r)}e=e._item.parent}return t},Tt=()=>{dw("Invalid access: Add Yjs type to a document before reading data.")},Nw=80;let wh=0;class nE{constructor(e,t){e.marker=!0,this.p=e,this.index=t,this.timestamp=wh++}}const rE=n=>{n.timestamp=wh++},Iw=(n,e,t)=>{n.p.marker=!1,n.p=e,e.marker=!0,n.index=t,n.timestamp=wh++},sE=(n,e,t)=>{if(n.length>=Nw){const r=n.reduce((s,o)=>s.timestamp<o.timestamp?s:o);return Iw(r,e,t),r}else{const r=new nE(e,t);return n.push(r),r}},kc=(n,e)=>{if(n._start===null||e===0||n._searchMarker===null)return null;const t=n._searchMarker.length===0?null:n._searchMarker.reduce((o,i)=>Zl(e-o.index)<Zl(e-i.index)?o:i);let r=n._start,s=0;for(t!==null&&(r=t.p,s=t.index,rE(t));r.right!==null&&s<e;){if(!r.deleted&&r.countable){if(e<s+r.length)break;s+=r.length}r=r.right}for(;r.left!==null&&s>e;)r=r.left,!r.deleted&&r.countable&&(s-=r.length);for(;r.left!==null&&r.left.id.client===r.id.client&&r.left.id.clock+r.left.length===r.id.clock;)r=r.left,!r.deleted&&r.countable&&(s-=r.length);return t!==null&&Zl(t.index-s)<r.parent.length/Nw?(Iw(t,r,s),t):sE(n._searchMarker,r,s)},xi=(n,e,t)=>{for(let r=n.length-1;r>=0;r--){const s=n[r];if(t>0){let o=s.p;for(o.marker=!1;o&&(o.deleted||!o.countable);)o=o.left,o&&!o.deleted&&o.countable&&(s.index-=o.length);if(o===null||o.marker===!0){n.splice(r,1);continue}s.p=o,o.marker=!0}(e<s.index||t>0&&e===s.index)&&(s.index=Ls(e,s.index+t))}},Ec=(n,e,t)=>{const r=n,s=e.changedParentTypes;for(;Zn(s,n,()=>[]).push(t),n._item!==null;)n=n._item.parent;vw(r._eH,t,e)};class mt{constructor(){this._item=null,this._map=new Map,this._start=null,this.doc=null,this._length=0,this._eH=Gp(),this._dEH=Gp(),this._searchMarker=null}get parent(){return this._item?this._item.parent:null}_integrate(e,t){this.doc=e,this._item=t}_copy(){throw Fn()}clone(){throw Fn()}_write(e){}get _first(){let e=this._start;for(;e!==null&&e.deleted;)e=e.right;return e}_callObserver(e,t){!e.local&&this._searchMarker&&(this._searchMarker.length=0)}observe(e){Zp(this._eH,e)}observeDeep(e){Zp(this._dEH,e)}unobserve(e){Jp(this._eH,e)}unobserveDeep(e){Jp(this._dEH,e)}toJSON(){}}const Lw=(n,e,t)=>{n.doc??Tt(),e<0&&(e=n._length+e),t<0&&(t=n._length+t);let r=t-e;const s=[];let o=n._start;for(;o!==null&&r>0;){if(o.countable&&!o.deleted){const i=o.content.getContent();if(i.length<=e)e-=i.length;else{for(let l=e;l<i.length&&r>0;l++)s.push(i[l]),r--;e=0}}o=o.right}return s},Mw=n=>{n.doc??Tt();const e=[];let t=n._start;for(;t!==null;){if(t.countable&&!t.deleted){const r=t.content.getContent();for(let s=0;s<r.length;s++)e.push(r[s])}t=t.right}return e},Si=(n,e)=>{let t=0,r=n._start;for(n.doc??Tt();r!==null;){if(r.countable&&!r.deleted){const s=r.content.getContent();for(let o=0;o<s.length;o++)e(s[o],t++,n)}r=r.right}},Ow=(n,e)=>{const t=[];return Si(n,(r,s)=>{t.push(e(r,s,n))}),t},oE=n=>{let e=n._start,t=null,r=0;return{[Symbol.iterator](){return this},next:()=>{if(t===null){for(;e!==null&&e.deleted;)e=e.right;if(e===null)return{done:!0,value:void 0};t=e.content.getContent(),r=0,e=e.right}const s=t[r++];return t.length<=r&&(t=null),{done:!1,value:s}}}},Rw=(n,e)=>{n.doc??Tt();const t=kc(n,e);let r=n._start;for(t!==null&&(r=t.p,e-=t.index);r!==null;r=r.right)if(!r.deleted&&r.countable){if(e<r.length)return r.content.getContent()[e];e-=r.length}},_a=(n,e,t,r)=>{let s=t;const o=n.doc,i=o.clientID,l=o.store,a=t===null?e._start:t.right;let c=[];const u=()=>{c.length>0&&(s=new Pe(Ce(i,Xe(l,i)),s,s&&s.lastId,a,a&&a.id,e,null,new ws(c)),s.integrate(n,0),c=[])};r.forEach(d=>{if(d===null)c.push(d);else switch(d.constructor){case Number:case Object:case Boolean:case Array:case String:c.push(d);break;default:switch(u(),d.constructor){case Uint8Array:case ArrayBuffer:s=new Pe(Ce(i,Xe(l,i)),s,s&&s.lastId,a,a&&a.id,e,null,new tl(new Uint8Array(d))),s.integrate(n,0);break;case Wn:s=new Pe(Ce(i,Xe(l,i)),s,s&&s.lastId,a,a&&a.id,e,null,new nl(d)),s.integrate(n,0);break;default:if(d instanceof mt)s=new Pe(Ce(i,Xe(l,i)),s,s&&s.lastId,a,a&&a.id,e,null,new Jn(d)),s.integrate(n,0);else throw new Error("Unexpected content type in insert operation")}}}),u()},jw=()=>Br("Length exceeded!"),Pw=(n,e,t,r)=>{if(t>e._length)throw jw();if(t===0)return e._searchMarker&&xi(e._searchMarker,t,r.length),_a(n,e,null,r);const s=t,o=kc(e,t);let i=e._start;for(o!==null&&(i=o.p,t-=o.index,t===0&&(i=i.prev,t+=i&&i.countable&&!i.deleted?i.length:0));i!==null;i=i.right)if(!i.deleted&&i.countable){if(t<=i.length){t<i.length&&Bt(n,Ce(i.id.client,i.id.clock+t));break}t-=i.length}return e._searchMarker&&xi(e._searchMarker,s,r.length),_a(n,e,i,r)},iE=(n,e,t)=>{let s=(e._searchMarker||[]).reduce((o,i)=>i.index>o.index?i:o,{index:0,p:e._start}).p;if(s)for(;s.right;)s=s.right;return _a(n,e,s,t)},Fw=(n,e,t,r)=>{if(r===0)return;const s=t,o=r,i=kc(e,t);let l=e._start;for(i!==null&&(l=i.p,t-=i.index);l!==null&&t>0;l=l.right)!l.deleted&&l.countable&&(t<l.length&&Bt(n,Ce(l.id.client,l.id.clock+t)),t-=l.length);for(;r>0&&l!==null;)l.deleted||(r<l.length&&Bt(n,Ce(l.id.client,l.id.clock+r)),l.delete(n),r-=l.length),l=l.right;if(r>0)throw jw();e._searchMarker&&xi(e._searchMarker,s,-o+r)},Ta=(n,e,t)=>{const r=e._map.get(t);r!==void 0&&r.delete(n)},Ch=(n,e,t,r)=>{const s=e._map.get(t)||null,o=n.doc,i=o.clientID;let l;if(r==null)l=new ws([r]);else switch(r.constructor){case Number:case Object:case Boolean:case Array:case String:l=new ws([r]);break;case Uint8Array:l=new tl(r);break;case Wn:l=new nl(r);break;default:if(r instanceof mt)l=new Jn(r);else throw new Error("Unexpected content type")}new Pe(Ce(i,Xe(o.store,i)),s,s&&s.lastId,null,null,e,t,l).integrate(n,0)},vh=(n,e)=>{n.doc??Tt();const t=n._map.get(e);return t!==void 0&&!t.deleted?t.content.getContent()[t.length-1]:void 0},Bw=n=>{const e={};return n.doc??Tt(),n._map.forEach((t,r)=>{t.deleted||(e[r]=t.content.getContent()[t.length-1])}),e},zw=(n,e)=>{n.doc??Tt();const t=n._map.get(e);return t!==void 0&&!t.deleted},lE=(n,e)=>{const t={};return n._map.forEach((r,s)=>{let o=r;for(;o!==null&&(!e.sv.has(o.id.client)||o.id.clock>=(e.sv.get(o.id.client)||0));)o=o.left;o!==null&&Hs(o,e)&&(t[s]=o.content.getContent()[o.length-1])}),t},Sl=n=>(n.doc??Tt(),Ak(n._map.entries(),e=>!e[1].deleted));class aE extends Sc{}class oo extends mt{constructor(){super(),this._prelimContent=[],this._searchMarker=[]}static from(e){const t=new oo;return t.push(e),t}_integrate(e,t){super._integrate(e,t),this.insert(0,this._prelimContent),this._prelimContent=null}_copy(){return new oo}clone(){const e=new oo;return e.insert(0,this.toArray().map(t=>t instanceof mt?t.clone():t)),e}get length(){return this.doc??Tt(),this._length}_callObserver(e,t){super._callObserver(e,t),Ec(this,e,new aE(this,e))}insert(e,t){this.doc!==null?je(this.doc,r=>{Pw(r,this,e,t)}):this._prelimContent.splice(e,0,...t)}push(e){this.doc!==null?je(this.doc,t=>{iE(t,this,e)}):this._prelimContent.push(...e)}unshift(e){this.insert(0,e)}delete(e,t=1){this.doc!==null?je(this.doc,r=>{Fw(r,this,e,t)}):this._prelimContent.splice(e,t)}get(e){return Rw(this,e)}toArray(){return Mw(this)}slice(e=0,t=this.length){return Lw(this,e,t)}toJSON(){return this.map(e=>e instanceof mt?e.toJSON():e)}map(e){return Ow(this,e)}forEach(e){Si(this,e)}[Symbol.iterator](){return oE(this)}_write(e){e.writeTypeRef(NE)}}const cE=n=>new oo;class Ww extends Sc{constructor(e,t,r){super(e,t),this.keysChanged=r}}class rn extends mt{constructor(e){super(),this._prelimContent=null,e===void 0?this._prelimContent=new Map:this._prelimContent=new Map(e)}_integrate(e,t){super._integrate(e,t),this._prelimContent.forEach((r,s)=>{this.set(s,r)}),this._prelimContent=null}_copy(){return new rn}clone(){const e=new rn;return this.forEach((t,r)=>{e.set(r,t instanceof mt?t.clone():t)}),e}_callObserver(e,t){Ec(this,e,new Ww(this,e,t))}toJSON(){this.doc??Tt();const e={};return this._map.forEach((t,r)=>{if(!t.deleted){const s=t.content.getContent()[t.length-1];e[r]=s instanceof mt?s.toJSON():s}}),e}get size(){return[...Sl(this)].length}keys(){return vu(Sl(this),e=>e[0])}values(){return vu(Sl(this),e=>e[1].content.getContent()[e[1].length-1])}entries(){return vu(Sl(this),e=>[e[0],e[1].content.getContent()[e[1].length-1]])}forEach(e){this.doc??Tt(),this._map.forEach((t,r)=>{t.deleted||e(t.content.getContent()[t.length-1],r,this)})}[Symbol.iterator](){return this.entries()}delete(e){this.doc!==null?je(this.doc,t=>{Ta(t,this,e)}):this._prelimContent.delete(e)}set(e,t){return this.doc!==null?je(this.doc,r=>{Ch(r,this,e,t)}):this._prelimContent.set(e,t),t}get(e){return vh(this,e)}has(e){return zw(this,e)}clear(){this.doc!==null?je(this.doc,e=>{this.forEach(function(t,r,s){Ta(e,s,r)})}):this._prelimContent.clear()}_write(e){e.writeTypeRef(IE)}}const uE=n=>new rn,Dr=(n,e)=>n===e||typeof n=="object"&&typeof e=="object"&&n&&e&&KS(n,e);class jd{constructor(e,t,r,s){this.left=e,this.right=t,this.index=r,this.currentAttributes=s}forward(){switch(this.right===null&&En(),this.right.content.constructor){case ct:this.right.deleted||ko(this.currentAttributes,this.right.content);break;default:this.right.deleted||(this.index+=this.right.length);break}this.left=this.right,this.right=this.right.right}}const nm=(n,e,t)=>{for(;e.right!==null&&t>0;){switch(e.right.content.constructor){case ct:e.right.deleted||ko(e.currentAttributes,e.right.content);break;default:e.right.deleted||(t<e.right.length&&Bt(n,Ce(e.right.id.client,e.right.id.clock+t)),e.index+=e.right.length,t-=e.right.length);break}e.left=e.right,e.right=e.right.right}return e},kl=(n,e,t,r)=>{const s=new Map,o=r?kc(e,t):null;if(o){const i=new jd(o.p.left,o.p,o.index,s);return nm(n,i,t-o.index)}else{const i=new jd(null,e._start,0,s);return nm(n,i,t)}},Uw=(n,e,t,r)=>{for(;t.right!==null&&(t.right.deleted===!0||t.right.content.constructor===ct&&Dr(r.get(t.right.content.key),t.right.content.value));)t.right.deleted||r.delete(t.right.content.key),t.forward();const s=n.doc,o=s.clientID;r.forEach((i,l)=>{const a=t.left,c=t.right,u=new Pe(Ce(o,Xe(s.store,o)),a,a&&a.lastId,c,c&&c.id,e,null,new ct(l,i));u.integrate(n,0),t.right=u,t.forward()})},ko=(n,e)=>{const{key:t,value:r}=e;r===null?n.delete(t):n.set(t,r)},Kw=(n,e)=>{for(;n.right!==null;){if(!(n.right.deleted||n.right.content.constructor===ct&&Dr(e[n.right.content.key]??null,n.right.content.value)))break;n.forward()}},Hw=(n,e,t,r)=>{const s=n.doc,o=s.clientID,i=new Map;for(const l in r){const a=r[l],c=t.currentAttributes.get(l)??null;if(!Dr(c,a)){i.set(l,c);const{left:u,right:d}=t;t.right=new Pe(Ce(o,Xe(s.store,o)),u,u&&u.lastId,d,d&&d.id,e,null,new ct(l,a)),t.right.integrate(n,0),t.forward()}}return i},xu=(n,e,t,r,s)=>{t.currentAttributes.forEach((f,g)=>{s[g]===void 0&&(s[g]=null)});const o=n.doc,i=o.clientID;Kw(t,s);const l=Hw(n,e,t,s),a=r.constructor===String?new Kn(r):r instanceof mt?new Jn(r):new Ms(r);let{left:c,right:u,index:d}=t;e._searchMarker&&xi(e._searchMarker,t.index,a.getLength()),u=new Pe(Ce(i,Xe(o.store,i)),c,c&&c.lastId,u,u&&u.id,e,null,a),u.integrate(n,0),t.right=u,t.index=d,t.forward(),Uw(n,e,t,l)},rm=(n,e,t,r,s)=>{const o=n.doc,i=o.clientID;Kw(t,s);const l=Hw(n,e,t,s);e:for(;t.right!==null&&(r>0||l.size>0&&(t.right.deleted||t.right.content.constructor===ct));){if(!t.right.deleted)switch(t.right.content.constructor){case ct:{const{key:a,value:c}=t.right.content,u=s[a];if(u!==void 0){if(Dr(u,c))l.delete(a);else{if(r===0)break e;l.set(a,c)}t.right.delete(n)}else t.currentAttributes.set(a,c);break}default:r<t.right.length&&Bt(n,Ce(t.right.id.client,t.right.id.clock+r)),r-=t.right.length;break}t.forward()}if(r>0){let a="";for(;r>0;r--)a+=`
12
- `;t.right=new Pe(Ce(i,Xe(o.store,i)),t.left,t.left&&t.left.lastId,t.right,t.right&&t.right.id,e,null,new Kn(a)),t.right.integrate(n,0),t.forward()}Uw(n,e,t,l)},Yw=(n,e,t,r,s)=>{let o=e;const i=Wt();for(;o&&(!o.countable||o.deleted);){if(!o.deleted&&o.content.constructor===ct){const c=o.content;i.set(c.key,c)}o=o.right}let l=0,a=!1;for(;e!==o;){if(t===e&&(a=!0),!e.deleted){const c=e.content;switch(c.constructor){case ct:{const{key:u,value:d}=c,f=r.get(u)??null;(i.get(u)!==c||f===d)&&(e.delete(n),l++,!a&&(s.get(u)??null)===d&&f!==d&&(f===null?s.delete(u):s.set(u,f))),!a&&!e.deleted&&ko(s,c);break}}}e=e.right}return l},dE=(n,e)=>{for(;e&&e.right&&(e.right.deleted||!e.right.countable);)e=e.right;const t=new Set;for(;e&&(e.deleted||!e.countable);){if(!e.deleted&&e.content.constructor===ct){const r=e.content.key;t.has(r)?e.delete(n):t.add(r)}e=e.left}},fE=n=>{let e=0;return je(n.doc,t=>{let r=n._start,s=n._start,o=Wt();const i=_d(o);for(;s;){if(s.deleted===!1)switch(s.content.constructor){case ct:ko(i,s.content);break;default:e+=Yw(t,r,s,o,i),o=_d(i),r=s;break}s=s.right}}),e},hE=n=>{const e=new Set,t=n.doc;for(const[r,s]of n.afterState.entries()){const o=n.beforeState.get(r)||0;s!==o&&Ew(n,t.store.clients.get(r),o,s,i=>{!i.deleted&&i.content.constructor===ct&&i.constructor!==sn&&e.add(i.parent)})}je(t,r=>{uo(n,n.deleteSet,s=>{if(s instanceof sn||!s.parent._hasFormatting||e.has(s.parent))return;const o=s.parent;s.content.constructor===ct?e.add(o):dE(r,s)});for(const s of e)fE(s)})},sm=(n,e,t)=>{const r=t,s=_d(e.currentAttributes),o=e.right;for(;t>0&&e.right!==null;){if(e.right.deleted===!1)switch(e.right.content.constructor){case Jn:case Ms:case Kn:t<e.right.length&&Bt(n,Ce(e.right.id.client,e.right.id.clock+t)),t-=e.right.length,e.right.delete(n);break}e.forward()}o&&Yw(n,o,e.right,s,e.currentAttributes);const i=(e.left||e.right).parent;return i._searchMarker&&xi(i._searchMarker,e.index,-r+t),e};class Vw extends Sc{constructor(e,t,r){super(e,t),this.childListChanged=!1,this.keysChanged=new Set,r.forEach(s=>{s===null?this.childListChanged=!0:this.keysChanged.add(s)})}get changes(){if(this._changes===null){const e={keys:this.keys,delta:this.delta,added:new Set,deleted:new Set};this._changes=e}return this._changes}get delta(){if(this._delta===null){const e=this.target.doc,t=[];je(e,r=>{const s=new Map,o=new Map;let i=this.target._start,l=null;const a={};let c="",u=0,d=0;const f=()=>{if(l!==null){let g=null;switch(l){case"delete":d>0&&(g={delete:d}),d=0;break;case"insert":(typeof c=="object"||c.length>0)&&(g={insert:c},s.size>0&&(g.attributes={},s.forEach((h,m)=>{h!==null&&(g.attributes[m]=h)}))),c="";break;case"retain":u>0&&(g={retain:u},WS(a)||(g.attributes=FS({},a))),u=0;break}g&&t.push(g),l=null}};for(;i!==null;){switch(i.content.constructor){case Jn:case Ms:this.adds(i)?this.deletes(i)||(f(),l="insert",c=i.content.getContent()[0],f()):this.deletes(i)?(l!=="delete"&&(f(),l="delete"),d+=1):i.deleted||(l!=="retain"&&(f(),l="retain"),u+=1);break;case Kn:this.adds(i)?this.deletes(i)||(l!=="insert"&&(f(),l="insert"),c+=i.content.str):this.deletes(i)?(l!=="delete"&&(f(),l="delete"),d+=i.length):i.deleted||(l!=="retain"&&(f(),l="retain"),u+=i.length);break;case ct:{const{key:g,value:h}=i.content;if(this.adds(i)){if(!this.deletes(i)){const m=s.get(g)??null;Dr(m,h)?h!==null&&i.delete(r):(l==="retain"&&f(),Dr(h,o.get(g)??null)?delete a[g]:a[g]=h)}}else if(this.deletes(i)){o.set(g,h);const m=s.get(g)??null;Dr(m,h)||(l==="retain"&&f(),a[g]=m)}else if(!i.deleted){o.set(g,h);const m=a[g];m!==void 0&&(Dr(m,h)?m!==null&&i.delete(r):(l==="retain"&&f(),h===null?delete a[g]:a[g]=h))}i.deleted||(l==="insert"&&f(),ko(s,i.content));break}}i=i.right}for(f();t.length>0;){const g=t[t.length-1];if(g.retain!==void 0&&g.attributes===void 0)t.pop();else break}}),this._delta=t}return this._delta}}class ho extends mt{constructor(e){super(),this._pending=e!==void 0?[()=>this.insert(0,e)]:[],this._searchMarker=[],this._hasFormatting=!1}get length(){return this.doc??Tt(),this._length}_integrate(e,t){super._integrate(e,t);try{this._pending.forEach(r=>r())}catch(r){console.error(r)}this._pending=null}_copy(){return new ho}clone(){const e=new ho;return e.applyDelta(this.toDelta()),e}_callObserver(e,t){super._callObserver(e,t);const r=new Vw(this,e,t);Ec(this,e,r),!e.local&&this._hasFormatting&&(e._needFormattingCleanup=!0)}toString(){this.doc??Tt();let e="",t=this._start;for(;t!==null;)!t.deleted&&t.countable&&t.content.constructor===Kn&&(e+=t.content.str),t=t.right;return e}toJSON(){return this.toString()}applyDelta(e,{sanitize:t=!0}={}){this.doc!==null?je(this.doc,r=>{const s=new jd(null,this._start,0,new Map);for(let o=0;o<e.length;o++){const i=e[o];if(i.insert!==void 0){const l=!t&&typeof i.insert=="string"&&o===e.length-1&&s.right===null&&i.insert.slice(-1)===`
13
- `?i.insert.slice(0,-1):i.insert;(typeof l!="string"||l.length>0)&&xu(r,this,s,l,i.attributes||{})}else i.retain!==void 0?rm(r,this,s,i.retain,i.attributes||{}):i.delete!==void 0&&sm(r,s,i.delete)}}):this._pending.push(()=>this.applyDelta(e))}toDelta(e,t,r){this.doc??Tt();const s=[],o=new Map,i=this.doc;let l="",a=this._start;function c(){if(l.length>0){const d={};let f=!1;o.forEach((h,m)=>{f=!0,d[m]=h});const g={insert:l};f&&(g.attributes=d),s.push(g),l=""}}const u=()=>{for(;a!==null;){if(Hs(a,e)||t!==void 0&&Hs(a,t))switch(a.content.constructor){case Kn:{const d=o.get("ychange");e!==void 0&&!Hs(a,e)?(d===void 0||d.user!==a.id.client||d.type!=="removed")&&(c(),o.set("ychange",r?r("removed",a.id):{type:"removed"})):t!==void 0&&!Hs(a,t)?(d===void 0||d.user!==a.id.client||d.type!=="added")&&(c(),o.set("ychange",r?r("added",a.id):{type:"added"})):d!==void 0&&(c(),o.delete("ychange")),l+=a.content.str;break}case Jn:case Ms:{c();const d={insert:a.content.getContent()[0]};if(o.size>0){const f={};d.attributes=f,o.forEach((g,h)=>{f[h]=g})}s.push(d);break}case ct:Hs(a,e)&&(c(),ko(o,a.content));break}a=a.right}c()};return e||t?je(i,d=>{e&&Od(d,e),t&&Od(d,t),u()},"cleanup"):u(),s}insert(e,t,r){if(t.length<=0)return;const s=this.doc;s!==null?je(s,o=>{const i=kl(o,this,e,!r);r||(r={},i.currentAttributes.forEach((l,a)=>{r[a]=l})),xu(o,this,i,t,r)}):this._pending.push(()=>this.insert(e,t,r))}insertEmbed(e,t,r){const s=this.doc;s!==null?je(s,o=>{const i=kl(o,this,e,!r);xu(o,this,i,t,r||{})}):this._pending.push(()=>this.insertEmbed(e,t,r||{}))}delete(e,t){if(t===0)return;const r=this.doc;r!==null?je(r,s=>{sm(s,kl(s,this,e,!0),t)}):this._pending.push(()=>this.delete(e,t))}format(e,t,r){if(t===0)return;const s=this.doc;s!==null?je(s,o=>{const i=kl(o,this,e,!1);i.right!==null&&rm(o,this,i,t,r)}):this._pending.push(()=>this.format(e,t,r))}removeAttribute(e){this.doc!==null?je(this.doc,t=>{Ta(t,this,e)}):this._pending.push(()=>this.removeAttribute(e))}setAttribute(e,t){this.doc!==null?je(this.doc,r=>{Ch(r,this,e,t)}):this._pending.push(()=>this.setAttribute(e,t))}getAttribute(e){return vh(this,e)}getAttributes(){return Bw(this)}_write(e){e.writeTypeRef(LE)}}const gE=n=>new ho;class Su{constructor(e,t=()=>!0){this._filter=t,this._root=e,this._currentNode=e._start,this._firstCall=!0,e.doc??Tt()}[Symbol.iterator](){return this}next(){let e=this._currentNode,t=e&&e.content&&e.content.type;if(e!==null&&(!this._firstCall||e.deleted||!this._filter(t)))do if(t=e.content.type,!e.deleted&&(t.constructor===Ur||t.constructor===ys)&&t._start!==null)e=t._start;else for(;e!==null;){const r=e.next;if(r!==null){e=r;break}else e.parent===this._root?e=null:e=e.parent._item}while(e!==null&&(e.deleted||!this._filter(e.content.type)));return this._firstCall=!1,e===null?{value:void 0,done:!0}:(this._currentNode=e,{value:e.content.type,done:!1})}}class ys extends mt{constructor(){super(),this._prelimContent=[]}get firstChild(){const e=this._first;return e?e.content.getContent()[0]:null}_integrate(e,t){super._integrate(e,t),this.insert(0,this._prelimContent),this._prelimContent=null}_copy(){return new ys}clone(){const e=new ys;return e.insert(0,this.toArray().map(t=>t instanceof mt?t.clone():t)),e}get length(){return this.doc??Tt(),this._prelimContent===null?this._length:this._prelimContent.length}createTreeWalker(e){return new Su(this,e)}querySelector(e){e=e.toUpperCase();const r=new Su(this,s=>s.nodeName&&s.nodeName.toUpperCase()===e).next();return r.done?null:r.value}querySelectorAll(e){return e=e.toUpperCase(),dr(new Su(this,t=>t.nodeName&&t.nodeName.toUpperCase()===e))}_callObserver(e,t){Ec(this,e,new Gw(this,t,e))}toString(){return Ow(this,e=>e.toString()).join("")}toJSON(){return this.toString()}toDOM(e=document,t={},r){const s=e.createDocumentFragment();return r!==void 0&&r._createAssociation(s,this),Si(this,o=>{s.insertBefore(o.toDOM(e,t,r),null)}),s}insert(e,t){this.doc!==null?je(this.doc,r=>{Pw(r,this,e,t)}):this._prelimContent.splice(e,0,...t)}insertAfter(e,t){if(this.doc!==null)je(this.doc,r=>{const s=e&&e instanceof mt?e._item:e;_a(r,this,s,t)});else{const r=this._prelimContent,s=e===null?0:r.findIndex(o=>o===e)+1;if(s===0&&e!==null)throw Br("Reference item not found");r.splice(s,0,...t)}}delete(e,t=1){this.doc!==null?je(this.doc,r=>{Fw(r,this,e,t)}):this._prelimContent.splice(e,t)}toArray(){return Mw(this)}push(e){this.insert(this.length,e)}unshift(e){this.insert(0,e)}get(e){return Rw(this,e)}slice(e=0,t=this.length){return Lw(this,e,t)}forEach(e){Si(this,e)}_write(e){e.writeTypeRef(OE)}}const pE=n=>new ys;class Ur extends ys{constructor(e="UNDEFINED"){super(),this.nodeName=e,this._prelimAttrs=new Map}get nextSibling(){const e=this._item?this._item.next:null;return e?e.content.type:null}get prevSibling(){const e=this._item?this._item.prev:null;return e?e.content.type:null}_integrate(e,t){super._integrate(e,t),this._prelimAttrs.forEach((r,s)=>{this.setAttribute(s,r)}),this._prelimAttrs=null}_copy(){return new Ur(this.nodeName)}clone(){const e=new Ur(this.nodeName),t=this.getAttributes();return BS(t,(r,s)=>{typeof r=="string"&&e.setAttribute(s,r)}),e.insert(0,this.toArray().map(r=>r instanceof mt?r.clone():r)),e}toString(){const e=this.getAttributes(),t=[],r=[];for(const l in e)r.push(l);r.sort();const s=r.length;for(let l=0;l<s;l++){const a=r[l];t.push(a+'="'+e[a]+'"')}const o=this.nodeName.toLocaleLowerCase(),i=t.length>0?" "+t.join(" "):"";return`<${o}${i}>${super.toString()}</${o}>`}removeAttribute(e){this.doc!==null?je(this.doc,t=>{Ta(t,this,e)}):this._prelimAttrs.delete(e)}setAttribute(e,t){this.doc!==null?je(this.doc,r=>{Ch(r,this,e,t)}):this._prelimAttrs.set(e,t)}getAttribute(e){return vh(this,e)}hasAttribute(e){return zw(this,e)}getAttributes(e){return e?lE(this,e):Bw(this)}toDOM(e=document,t={},r){const s=e.createElement(this.nodeName),o=this.getAttributes();for(const i in o){const l=o[i];typeof l=="string"&&s.setAttribute(i,l)}return Si(this,i=>{s.appendChild(i.toDOM(e,t,r))}),r!==void 0&&r._createAssociation(s,this),s}_write(e){e.writeTypeRef(ME),e.writeKey(this.nodeName)}}const mE=n=>new Ur(n.readKey());class Gw extends Sc{constructor(e,t,r){super(e,r),this.childListChanged=!1,this.attributesChanged=new Set,t.forEach(s=>{s===null?this.childListChanged=!0:this.attributesChanged.add(s)})}}class Da extends rn{constructor(e){super(),this.hookName=e}_copy(){return new Da(this.hookName)}clone(){const e=new Da(this.hookName);return this.forEach((t,r)=>{e.set(r,t)}),e}toDOM(e=document,t={},r){const s=t[this.hookName];let o;return s!==void 0?o=s.createDom(this):o=document.createElement(this.hookName),o.setAttribute("data-yjs-hook",this.hookName),r!==void 0&&r._createAssociation(o,this),o}_write(e){e.writeTypeRef(RE),e.writeKey(this.hookName)}}const AE=n=>new Da(n.readKey());class bs extends ho{get nextSibling(){const e=this._item?this._item.next:null;return e?e.content.type:null}get prevSibling(){const e=this._item?this._item.prev:null;return e?e.content.type:null}_copy(){return new bs}clone(){const e=new bs;return e.applyDelta(this.toDelta()),e}toDOM(e=document,t,r){const s=e.createTextNode(this.toString());return r!==void 0&&r._createAssociation(s,this),s}toString(){return this.toDelta().map(e=>{const t=[];for(const s in e.attributes){const o=[];for(const i in e.attributes[s])o.push({key:i,value:e.attributes[s][i]});o.sort((i,l)=>i.key<l.key?-1:1),t.push({nodeName:s,attrs:o})}t.sort((s,o)=>s.nodeName<o.nodeName?-1:1);let r="";for(let s=0;s<t.length;s++){const o=t[s];r+=`<${o.nodeName}`;for(let i=0;i<o.attrs.length;i++){const l=o.attrs[i];r+=` ${l.key}="${l.value}"`}r+=">"}r+=e.insert;for(let s=t.length-1;s>=0;s--)r+=`</${t[s].nodeName}>`;return r}).join("")}toJSON(){return this.toString()}_write(e){e.writeTypeRef(jE)}}const yE=n=>new bs;class xh{constructor(e,t){this.id=e,this.length=t}get deleted(){throw Fn()}mergeWith(e){return!1}write(e,t,r){throw Fn()}integrate(e,t){throw Fn()}}const bE=0;class sn extends xh{get deleted(){return!0}delete(){}mergeWith(e){return this.constructor!==e.constructor?!1:(this.length+=e.length,!0)}integrate(e,t){t>0&&(this.id.clock+=t,this.length-=t),kw(e.doc.store,this)}write(e,t){e.writeInfo(bE),e.writeLen(this.length-t)}getMissing(e,t){return null}}class tl{constructor(e){this.content=e}getLength(){return 1}getContent(){return[this.content]}isCountable(){return!0}copy(){return new tl(this.content)}splice(e){throw Fn()}mergeWith(e){return!1}integrate(e,t){}delete(e){}gc(e){}write(e,t){e.writeBuf(this.content)}getRef(){return 3}}const wE=n=>new tl(n.readBuf());class ki{constructor(e){this.len=e}getLength(){return this.len}getContent(){return[]}isCountable(){return!1}copy(){return new ki(this.len)}splice(e){const t=new ki(this.len-e);return this.len=e,t}mergeWith(e){return this.len+=e.len,!0}integrate(e,t){vi(e.deleteSet,t.id.client,t.id.clock,this.len),t.markDeleted()}delete(e){}gc(e){}write(e,t){e.writeLen(this.len-t)}getRef(){return 1}}const CE=n=>new ki(n.readLen()),Zw=(n,e)=>new Wn({guid:n,...e,shouldLoad:e.shouldLoad||e.autoLoad||!1});class nl{constructor(e){e._item&&console.error("This document was already integrated as a sub-document. You should create a second instance instead with the same guid."),this.doc=e;const t={};this.opts=t,e.gc||(t.gc=!1),e.autoLoad&&(t.autoLoad=!0),e.meta!==null&&(t.meta=e.meta)}getLength(){return 1}getContent(){return[this.doc]}isCountable(){return!0}copy(){return new nl(Zw(this.doc.guid,this.opts))}splice(e){throw Fn()}mergeWith(e){return!1}integrate(e,t){this.doc._item=t,e.subdocsAdded.add(this.doc),this.doc.shouldLoad&&e.subdocsLoaded.add(this.doc)}delete(e){e.subdocsAdded.has(this.doc)?e.subdocsAdded.delete(this.doc):e.subdocsRemoved.add(this.doc)}gc(e){}write(e,t){e.writeString(this.doc.guid),e.writeAny(this.opts)}getRef(){return 9}}const vE=n=>new nl(Zw(n.readString(),n.readAny()));class Ms{constructor(e){this.embed=e}getLength(){return 1}getContent(){return[this.embed]}isCountable(){return!0}copy(){return new Ms(this.embed)}splice(e){throw Fn()}mergeWith(e){return!1}integrate(e,t){}delete(e){}gc(e){}write(e,t){e.writeJSON(this.embed)}getRef(){return 5}}const xE=n=>new Ms(n.readJSON());class ct{constructor(e,t){this.key=e,this.value=t}getLength(){return 1}getContent(){return[]}isCountable(){return!1}copy(){return new ct(this.key,this.value)}splice(e){throw Fn()}mergeWith(e){return!1}integrate(e,t){const r=t.parent;r._searchMarker=null,r._hasFormatting=!0}delete(e){}gc(e){}write(e,t){e.writeKey(this.key),e.writeJSON(this.value)}getRef(){return 6}}const SE=n=>new ct(n.readKey(),n.readJSON());class Na{constructor(e){this.arr=e}getLength(){return this.arr.length}getContent(){return this.arr}isCountable(){return!0}copy(){return new Na(this.arr)}splice(e){const t=new Na(this.arr.slice(e));return this.arr=this.arr.slice(0,e),t}mergeWith(e){return this.arr=this.arr.concat(e.arr),!0}integrate(e,t){}delete(e){}gc(e){}write(e,t){const r=this.arr.length;e.writeLen(r-t);for(let s=t;s<r;s++){const o=this.arr[s];e.writeString(o===void 0?"undefined":JSON.stringify(o))}}getRef(){return 2}}const kE=n=>{const e=n.readLen(),t=[];for(let r=0;r<e;r++){const s=n.readString();s==="undefined"?t.push(void 0):t.push(JSON.parse(s))}return new Na(t)},EE=Sa("node_env")==="development";class ws{constructor(e){this.arr=e,EE&&rw(e)}getLength(){return this.arr.length}getContent(){return this.arr}isCountable(){return!0}copy(){return new ws(this.arr)}splice(e){const t=new ws(this.arr.slice(e));return this.arr=this.arr.slice(0,e),t}mergeWith(e){return this.arr=this.arr.concat(e.arr),!0}integrate(e,t){}delete(e){}gc(e){}write(e,t){const r=this.arr.length;e.writeLen(r-t);for(let s=t;s<r;s++){const o=this.arr[s];e.writeAny(o)}}getRef(){return 8}}const _E=n=>{const e=n.readLen(),t=[];for(let r=0;r<e;r++)t.push(n.readAny());return new ws(t)};class Kn{constructor(e){this.str=e}getLength(){return this.str.length}getContent(){return this.str.split("")}isCountable(){return!0}copy(){return new Kn(this.str)}splice(e){const t=new Kn(this.str.slice(e));this.str=this.str.slice(0,e);const r=this.str.charCodeAt(e-1);return r>=55296&&r<=56319&&(this.str=this.str.slice(0,e-1)+"�",t.str="�"+t.str.slice(1)),t}mergeWith(e){return this.str+=e.str,!0}integrate(e,t){}delete(e){}gc(e){}write(e,t){e.writeString(t===0?this.str:this.str.slice(t))}getRef(){return 4}}const TE=n=>new Kn(n.readString()),DE=[cE,uE,gE,mE,pE,AE,yE],NE=0,IE=1,LE=2,ME=3,OE=4,RE=5,jE=6;class Jn{constructor(e){this.type=e}getLength(){return 1}getContent(){return[this.type]}isCountable(){return!0}copy(){return new Jn(this.type._copy())}splice(e){throw Fn()}mergeWith(e){return!1}integrate(e,t){this.type._integrate(e.doc,t)}delete(e){let t=this.type._start;for(;t!==null;)t.deleted?t.id.clock<(e.beforeState.get(t.id.client)||0)&&e._mergeStructs.push(t):t.delete(e),t=t.right;this.type._map.forEach(r=>{r.deleted?r.id.clock<(e.beforeState.get(r.id.client)||0)&&e._mergeStructs.push(r):r.delete(e)}),e.changed.delete(this.type)}gc(e){let t=this.type._start;for(;t!==null;)t.gc(e,!0),t=t.right;this.type._start=null,this.type._map.forEach(r=>{for(;r!==null;)r.gc(e,!0),r=r.left}),this.type._map=new Map}write(e,t){this.type._write(e)}getRef(){return 7}}const PE=n=>new Jn(DE[n.readTypeRef()](n)),Pd=(n,e)=>{let t=e,r=0,s;do r>0&&(t=Ce(t.client,t.clock+r)),s=so(n,t),r=t.clock-s.id.clock,t=s.redone;while(t!==null&&s instanceof Pe);return{item:s,diff:r}},Sh=(n,e)=>{for(;n!==null&&n.keep!==e;)n.keep=e,n=n.parent._item},Ia=(n,e,t)=>{const{client:r,clock:s}=e.id,o=new Pe(Ce(r,s+t),e,Ce(r,s+t-1),e.right,e.rightOrigin,e.parent,e.parentSub,e.content.splice(t));return e.deleted&&o.markDeleted(),e.keep&&(o.keep=!0),e.redone!==null&&(o.redone=Ce(e.redone.client,e.redone.clock+t)),e.right=o,o.right!==null&&(o.right.left=o),n._mergeStructs.push(o),o.parentSub!==null&&o.right===null&&o.parent._map.set(o.parentSub,o),e.length=t,o},om=(n,e)=>nS(n,t=>$i(t.deletions,e)),Jw=(n,e,t,r,s,o)=>{const i=n.doc,l=i.store,a=i.clientID,c=e.redone;if(c!==null)return Bt(n,c);let u=e.parent._item,d=null,f;if(u!==null&&u.deleted===!0){if(u.redone===null&&(!t.has(u)||Jw(n,u,t,r,s,o)===null))return null;for(;u.redone!==null;)u=Bt(n,u.redone)}const g=u===null?e.parent:u.content.type;if(e.parentSub===null){for(d=e.left,f=e;d!==null;){let b=d;for(;b!==null&&b.parent._item!==u;)b=b.redone===null?null:Bt(n,b.redone);if(b!==null&&b.parent._item===u){d=b;break}d=d.left}for(;f!==null;){let b=f;for(;b!==null&&b.parent._item!==u;)b=b.redone===null?null:Bt(n,b.redone);if(b!==null&&b.parent._item===u){f=b;break}f=f.right}}else if(f=null,e.right&&!s){for(d=e;d!==null&&d.right!==null&&(d.right.redone||$i(r,d.right.id)||om(o.undoStack,d.right.id)||om(o.redoStack,d.right.id));)for(d=d.right;d.redone;)d=Bt(n,d.redone);if(d&&d.right!==null)return null}else d=g._map.get(e.parentSub)||null;const h=Xe(l,a),m=Ce(a,h),A=new Pe(m,d,d&&d.lastId,f,f&&f.id,g,e.parentSub,e.content.copy());return e.redone=m,Sh(A,!0),A.integrate(n,0),A};class Pe extends xh{constructor(e,t,r,s,o,i,l,a){super(e,a.getLength()),this.origin=r,this.left=t,this.right=s,this.rightOrigin=o,this.parent=i,this.parentSub=l,this.redone=null,this.content=a,this.info=this.content.isCountable()?Rp:0}set marker(e){(this.info&bu)>0!==e&&(this.info^=bu)}get marker(){return(this.info&bu)>0}get keep(){return(this.info&Op)>0}set keep(e){this.keep!==e&&(this.info^=Op)}get countable(){return(this.info&Rp)>0}get deleted(){return(this.info&yu)>0}set deleted(e){this.deleted!==e&&(this.info^=yu)}markDeleted(){this.info|=yu}getMissing(e,t){if(this.origin&&this.origin.client!==this.id.client&&this.origin.clock>=Xe(t,this.origin.client))return this.origin.client;if(this.rightOrigin&&this.rightOrigin.client!==this.id.client&&this.rightOrigin.clock>=Xe(t,this.rightOrigin.client))return this.rightOrigin.client;if(this.parent&&this.parent.constructor===ro&&this.id.client!==this.parent.client&&this.parent.clock>=Xe(t,this.parent.client))return this.parent.client;if(this.origin&&(this.left=Xp(e,t,this.origin),this.origin=this.left.lastId),this.rightOrigin&&(this.right=Bt(e,this.rightOrigin),this.rightOrigin=this.right.id),this.left&&this.left.constructor===sn||this.right&&this.right.constructor===sn)this.parent=null;else if(!this.parent)this.left&&this.left.constructor===Pe?(this.parent=this.left.parent,this.parentSub=this.left.parentSub):this.right&&this.right.constructor===Pe&&(this.parent=this.right.parent,this.parentSub=this.right.parentSub);else if(this.parent.constructor===ro){const r=so(t,this.parent);r.constructor===sn?this.parent=null:this.parent=r.content.type}return null}integrate(e,t){if(t>0&&(this.id.clock+=t,this.left=Xp(e,e.doc.store,Ce(this.id.client,this.id.clock-1)),this.origin=this.left.lastId,this.content=this.content.splice(t),this.length-=t),this.parent){if(!this.left&&(!this.right||this.right.left!==null)||this.left&&this.left.right!==this.right){let r=this.left,s;if(r!==null)s=r.right;else if(this.parentSub!==null)for(s=this.parent._map.get(this.parentSub)||null;s!==null&&s.left!==null;)s=s.left;else s=this.parent._start;const o=new Set,i=new Set;for(;s!==null&&s!==this.right;){if(i.add(s),o.add(s),Qs(this.origin,s.origin)){if(s.id.client<this.id.client)r=s,o.clear();else if(Qs(this.rightOrigin,s.rightOrigin))break}else if(s.origin!==null&&i.has(so(e.doc.store,s.origin)))o.has(so(e.doc.store,s.origin))||(r=s,o.clear());else break;s=s.right}this.left=r}if(this.left!==null){const r=this.left.right;this.right=r,this.left.right=this}else{let r;if(this.parentSub!==null)for(r=this.parent._map.get(this.parentSub)||null;r!==null&&r.left!==null;)r=r.left;else r=this.parent._start,this.parent._start=this;this.right=r}this.right!==null?this.right.left=this:this.parentSub!==null&&(this.parent._map.set(this.parentSub,this),this.left!==null&&this.left.delete(e)),this.parentSub===null&&this.countable&&!this.deleted&&(this.parent._length+=this.length),kw(e.doc.store,this),this.content.integrate(e,this),qp(e,this.parent,this.parentSub),(this.parent._item!==null&&this.parent._item.deleted||this.parentSub!==null&&this.right!==null)&&this.delete(e)}else new sn(this.id,this.length).integrate(e,0)}get next(){let e=this.right;for(;e!==null&&e.deleted;)e=e.right;return e}get prev(){let e=this.left;for(;e!==null&&e.deleted;)e=e.left;return e}get lastId(){return this.length===1?this.id:Ce(this.id.client,this.id.clock+this.length-1)}mergeWith(e){if(this.constructor===e.constructor&&Qs(e.origin,this.lastId)&&this.right===e&&Qs(this.rightOrigin,e.rightOrigin)&&this.id.client===e.id.client&&this.id.clock+this.length===e.id.clock&&this.deleted===e.deleted&&this.redone===null&&e.redone===null&&this.content.constructor===e.content.constructor&&this.content.mergeWith(e.content)){const t=this.parent._searchMarker;return t&&t.forEach(r=>{r.p===e&&(r.p=this,!this.deleted&&this.countable&&(r.index-=this.length))}),e.keep&&(this.keep=!0),this.right=e.right,this.right!==null&&(this.right.left=this),this.length+=e.length,!0}return!1}delete(e){if(!this.deleted){const t=this.parent;this.countable&&this.parentSub===null&&(t._length-=this.length),this.markDeleted(),vi(e.deleteSet,this.id.client,this.id.clock,this.length),qp(e,t,this.parentSub),this.content.delete(e)}}gc(e,t){if(!this.deleted)throw En();this.content.gc(e),t?Hk(e,this,new sn(this.id,this.length)):this.content=new ki(this.length)}write(e,t){const r=t>0?Ce(this.id.client,this.id.clock+t-1):this.origin,s=this.rightOrigin,o=this.parentSub,i=this.content.getRef()&wc|(r===null?0:$t)|(s===null?0:sr)|(o===null?0:yi);if(e.writeInfo(i),r!==null&&e.writeLeftID(r),s!==null&&e.writeRightID(s),r===null&&s===null){const l=this.parent;if(l._item!==void 0){const a=l._item;if(a===null){const c=xw(l);e.writeParentInfo(!0),e.writeString(c)}else e.writeParentInfo(!1),e.writeLeftID(a.id)}else l.constructor===String?(e.writeParentInfo(!0),e.writeString(l)):l.constructor===ro?(e.writeParentInfo(!1),e.writeLeftID(l)):En();o!==null&&e.writeString(o)}this.content.write(e,t)}}const Xw=(n,e)=>FE[e&wc](n),FE=[()=>{En()},CE,kE,wE,TE,xE,SE,PE,_E,vE,()=>{En()}],BE=10;class on extends xh{get deleted(){return!0}delete(){}mergeWith(e){return this.constructor!==e.constructor?!1:(this.length+=e.length,!0)}integrate(e,t){En()}write(e,t){e.writeInfo(BE),de(e.restEncoder,this.length-t)}getMissing(e,t){return null}}const Qw=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:{},qw="__ $YJS$ __";Qw[qw]===!0&&console.error("Yjs was already imported. This breaks constructor checks and will lead to issues! - https://github.com/yjs/yjs/issues/438");Qw[qw]=!0;function zE(n){return n&&n.__esModule&&Object.prototype.hasOwnProperty.call(n,"default")?n.default:n}var WE=zE(function(n){const e=new URLSearchParams;e.append("code",n);for(let t=1;t<arguments.length;t++)e.append("v",arguments[t]);throw Error(`Minified Lexical error #${n}; visit https://lexical.dev/docs/error?${e} for the full message or use the non-minified dev environment for full errors and additional helpful warnings.`)});function ku(n,e){const t=[];let r=n.__first;for(;r!==null;){const s=e===null?ue(r):e.get(r);s==null&&WE(174),t.push(r),r=s.__next}return t}function UE(n){return n&&n.__esModule&&Object.prototype.hasOwnProperty.call(n,"default")?n.default:n}var Ct=UE(function(n){const e=new URLSearchParams;e.append("code",n);for(let t=1;t<arguments.length;t++)e.append("v",arguments[t]);throw Error(`Minified Lexical error #${n}; visit https://lexical.dev/docs/error?${e} for the full message or use the non-minified dev environment for full errors and additional helpful warnings.`)});let Vo=class{constructor(e,t){this._key="",this._map=e,this._parent=t,this._type="linebreak"}getNode(){const e=ue(this._key);return Ee(e)?e:null}getKey(){return this._key}getSharedType(){return this._map}getType(){return this._type}getSize(){return 1}getOffset(){return this._parent.getChildOffset(this)}destroy(e){e.collabNodeMap.delete(this._key)}};function $w(n,e){const t=new Vo(n,e);return n._collabNode=t,t}let Pt=class{constructor(e,t,r,s){this._key="",this._map=e,this._parent=r,this._text=t,this._type=s,this._normalized=!1}getPrevNode(e){if(e===null)return null;const t=e.get(this._key);return W(t)?t:null}getNode(){const e=ue(this._key);return W(e)?e:null}getSharedType(){return this._map}getType(){return this._type}getKey(){return this._key}getSize(){return this._text.length+(this._normalized?0:1)}getOffset(){return this._parent.getChildOffset(this)}spliceText(e,t,r){const s=this._parent._xmlText,o=this.getOffset()+1+e;t!==0&&s.delete(o,t),r!==""&&s.insert(o,r)}syncPropertiesAndTextFromLexical(e,t,r){const s=this.getPrevNode(r),o=t.__text;if(_h(e,this._map,s,t),s!==null){const i=s.__text;i!==o&&(function(l,a,c,u){const d=R();let f=u.length;if(M(d)&&d.isCollapsed()){const h=d.anchor;h.key===a&&(f=h.offset)}const g=function(h,m,A){const b=h.length,y=m.length;let w=0,v=0;for(;w<b&&w<y&&h[w]===m[w]&&w<A;)w++;for(;v+w<b&&v+w<y&&h[b-v-1]===m[y-v-1];)v++;for(;v+w<b&&v+w<y&&h[w]===m[w];)w++;return{index:w,insert:m.slice(w,y-v),remove:b-w-v}}(c,u,f);l.spliceText(g.index,g.remove,g.insert)}(this,t.__key,i,o),this._text=o)}}syncPropertiesAndTextFromYjs(e,t){const r=this.getNode();r===null&&Ct(84),Eh(e,this._map,r,t);const s=this._text;r.__text!==s&&(r.getWritable().__text=s)}destroy(e){e.collabNodeMap.delete(this._key)}};function eC(n,e,t,r){const s=new Pt(n,e,t,r);return n._collabNode=s,s}const KE=new Set(["__key","__parent","__next","__prev"]),HE=new Set(["__first","__last","__size"]),YE=new Set(["__cachedText"]),VE=new Set(["__text"]);function tC(n,e,t){if(KE.has(n))return!0;if(W(e)){if(VE.has(n))return!0}else if(O(e)&&(HE.has(n)||_t(e)&&YE.has(n)))return!0;const r=e.constructor,s=t.excludedProperties.get(r);return s!=null&&s.has(n)}function zo(n){const e=ue(n);return e===null&&Ct(85),e}function im(n,e,t){const r=e.__type;let s;if(O(e))s=Th(new bs,t,r),s.syncPropertiesFromLexical(n,e,null),s.syncChildrenFromLexical(n,e,null,null,null);else if(W(e))s=eC(new rn,e.__text,t,r),s.syncPropertiesAndTextFromLexical(n,e,null);else if(Ee(e)){const o=new rn;o.set("__type","linebreak"),s=$w(o,t)}else Se(e)?(s=rC(new Ur,t,r),s.syncPropertiesFromLexical(n,e,null)):Ct(86);return s._key=e.__key,s}function kh(n,e,t){const r=e._collabNode;if(r===void 0){const s=n.editor._nodes,o=function(a){const c=a instanceof rn?a.get("__type"):a.getAttribute("__type");return c==null&&Ct(87),c}(e);s.get(o)===void 0&&Ct(88,o);const i=e.parent,l=t===void 0&&i!==null?kh(n,i):t||null;if(l instanceof Eo||Ct(89),e instanceof bs)return Th(e,l,o);if(e instanceof rn)return o==="linebreak"?$w(e,l):eC(e,"",l,o);if(e instanceof Ur)return rC(e,l,o)}return r}function GE(n,e,t){const r=e.getType(),s=n.editor._nodes.get(r);s===void 0&&Ct(88,r);const o=new s.klass;if(o.__parent=t,e._key=o.__key,e instanceof Eo){const i=e._xmlText;e.syncPropertiesFromYjs(n,null),e.applyChildrenYjsDelta(n,i.toDelta()),e.syncChildrenFromYjs(n)}else e instanceof Pt?e.syncPropertiesAndTextFromYjs(n,null):e instanceof kr&&e.syncPropertiesFromYjs(n,null);return n.collabNodeMap.set(o.__key,e),o}function Eh(n,e,t,r){const s=r===null?e instanceof rn?Array.from(e.keys()):Object.keys(e.getAttributes()):Array.from(r);let o;for(let i=0;i<s.length;i++){const l=s[i];if(tC(l,t,n))continue;const a=t[l];let c=e instanceof rn?e.get(l):e.getAttribute(l);if(a!==c){if(c instanceof Wn){const u=n.docMap;a instanceof Wn&&u.delete(a.guid);const d=mc(),f=c.guid;d._key=f,u.set(f,c),c=d}o===void 0&&(o=t.getWritable()),o[l]=c}}}function _h(n,e,t,r){const s=r.__type,o=n.nodeProperties;let i=o.get(s);i===void 0&&(i=Object.keys(r).filter(a=>!tC(a,r,n)),o.set(s,i));const l=n.editor.constructor;for(let a=0;a<i.length;a++){const c=i[a],u=t===null?void 0:t[c];let d=r[c];if(u!==d){if(d instanceof l){const f=n.docMap;let g;if(u instanceof l){const A=u._key;g=f.get(A),f.delete(A)}const h=g||new Wn,m=h.guid;d._key=m,f.set(m,h),d=h,n.editor.update(()=>{r.markDirty()})}e instanceof rn?e.set(c,d):e.setAttribute(c,d)}}}function Eu(n,e,t,r){return n.slice(0,e)+r+n.slice(e+t)}function ql(n,e,t){let r=0,s=0;const o=n._children,i=o.length;for(;s<i;s++){const l=o[s],a=r;if(r+=l.getSize(),(t?r>=e:r>e)&&l instanceof Pt){let c=e-a-1;return c<0&&(c=0),{length:r-e,node:l,nodeIndex:s,offset:c}}if(r>e)return{length:0,node:l,nodeIndex:s,offset:a};if(s===i-1)return{length:0,node:null,nodeIndex:s+1,offset:a+1}}return{length:0,node:null,nodeIndex:0,offset:0}}function lm(n){const e=n.anchor,t=n.focus;let r=!1;try{const s=e.getNode(),o=t.getNode();(!s.isAttached()||!o.isAttached()||W(s)&&e.offset>s.getTextContentSize()||W(o)&&t.offset>o.getTextContentSize())&&(r=!0)}catch{r=!0}return r}function am(n){const e=n.getParent();if(e!==null){const t=n.getWritable(),r=e.getWritable(),s=n.getPreviousSibling(),o=n.getNextSibling();if(s===null)if(o!==null){const i=o.getWritable();r.__first=o.__key,i.__prev=null}else r.__first=null;else{const i=s.getWritable();if(o!==null){const l=o.getWritable();l.__prev=i.__key,i.__next=l.__key}else i.__next=null;t.__prev=null}if(o===null)if(s!==null){const i=s.getWritable();r.__last=s.__key,i.__next=null}else r.__last=null;else{const i=o.getWritable();if(s!==null){const l=s.getWritable();l.__next=i.__key,i.__prev=l.__key}else i.__prev=null;t.__next=null}r.__size--,t.__parent=null}}function nC(n,e){const t=e._nodeMap.get(n);if(!t)return void fe().selectStart();const r=t.__prev;let s=null;r&&(s=ue(r)),s===null&&t.__parent!==null&&(s=ue(t.__parent)),s!==null?s!==null&&s.isAttached()?s.selectEnd():nC(s.__key,e):fe().selectStart()}let kr=class{constructor(e,t,r){this._key="",this._xmlElem=e,this._parent=t,this._type=r}getPrevNode(e){if(e===null)return null;const t=e.get(this._key);return Se(t)?t:null}getNode(){const e=ue(this._key);return Se(e)?e:null}getSharedType(){return this._xmlElem}getType(){return this._type}getKey(){return this._key}getSize(){return 1}getOffset(){return this._parent.getChildOffset(this)}syncPropertiesFromLexical(e,t,r){const s=this.getPrevNode(r);_h(e,this._xmlElem,s,t)}syncPropertiesFromYjs(e,t){const r=this.getNode();r===null&&Ct(83),Eh(e,this._xmlElem,r,t)}destroy(e){e.collabNodeMap.delete(this._key)}};function rC(n,e,t){const r=new kr(n,e,t);return n._collabNode=r,r}let Eo=class Ys{constructor(e,t,r){this._key="",this._children=[],this._xmlText=e,this._type=r,this._parent=t}getPrevNode(e){if(e===null)return null;const t=e.get(this._key);return O(t)?t:null}getNode(){const e=ue(this._key);return O(e)?e:null}getSharedType(){return this._xmlText}getType(){return this._type}getKey(){return this._key}isEmpty(){return this._children.length===0}getSize(){return 1}getOffset(){const e=this._parent;return e===null&&Ct(90),e.getChildOffset(this)}syncPropertiesFromYjs(e,t){const r=this.getNode();r===null&&Ct(91),Eh(e,this._xmlText,r,t)}applyChildrenYjsDelta(e,t){const r=this._children;let s=0;for(let o=0;o<t.length;o++){const i=t[o],l=i.insert,a=i.delete;if(i.retain!=null)s+=i.retain;else if(typeof a=="number"){let c=a;for(;c>0;){const{node:u,nodeIndex:d,offset:f,length:g}=ql(this,s,!1);if(u instanceof Ys||u instanceof Vo||u instanceof kr)r.splice(d,1),c-=1;else{if(!(u instanceof Pt))break;{const h=Math.min(c,g),m=d!==0?r[d-1]:null,A=u.getSize();if(f===0&&g===A){r.splice(d,1);const b=Eu(u._text,f,h-1,"");b.length>0&&(m instanceof Pt?m._text+=b:this._xmlText.delete(f,b.length))}else u._text=Eu(u._text,f,h,"");c-=h}}}}else{if(l==null)throw new Error("Unexpected delta format");if(typeof l=="string"){const{node:c,offset:u}=ql(this,s,!0);c instanceof Pt?c._text=Eu(c._text,u,0,l):this._xmlText.delete(u,l.length),s+=l.length}else{const c=l,{nodeIndex:u}=ql(this,s,!1),d=kh(e,c,this);r.splice(u,0,d),s+=1}}}}syncChildrenFromYjs(e){const t=this.getNode();t===null&&Ct(92);const r=t.__key,s=ku(t,null),o=s.length,i=this._children,l=i.length,a=e.collabNodeMap,c=new Set;let u,d,f=0,g=null;l!==o&&(d=t.getWritable());for(let h=0;h<l;h++){const m=s[f],A=i[h],b=A.getNode(),y=A._key;if(b!==null&&m===y){const w=W(b);if(c.add(m),w)if(A._key=m,A instanceof Ys){const v=A._xmlText;A.syncPropertiesFromYjs(e,null),A.applyChildrenYjsDelta(e,v.toDelta()),A.syncChildrenFromYjs(e)}else A instanceof Pt?A.syncPropertiesAndTextFromYjs(e,null):A instanceof kr?A.syncPropertiesFromYjs(e,null):A instanceof Vo||Ct(93);g=b,f++}else{if(u===void 0){u=new Set;for(let S=0;S<l;S++){const C=i[S]._key;C!==""&&u.add(C)}}if(b!==null&&m!==void 0&&!u.has(m)){am(zo(m)),h--,f++;continue}d=t.getWritable();const w=GE(e,A,r),v=w.__key;if(a.set(v,A),g===null){const S=d.getFirstChild();if(d.__first=v,S!==null){const C=S.getWritable();C.__prev=v,w.__next=C.__key}}else{const S=g.getWritable(),C=g.getNextSibling();if(S.__next=v,w.__prev=g.__key,C!==null){const _=C.getWritable();_.__prev=v,w.__next=_.__key}}h===l-1&&(d.__last=v),d.__size++,g=w}}for(let h=0;h<o;h++){const m=s[h];if(!c.has(m)){const A=zo(m),b=e.collabNodeMap.get(m);b!==void 0&&b.destroy(e),am(A)}}}syncPropertiesFromLexical(e,t,r){_h(e,this._xmlText,this.getPrevNode(r),t)}_syncChildFromLexical(e,t,r,s,o,i){const l=this._children[t],a=zo(r);l instanceof Ys&&O(a)?(l.syncPropertiesFromLexical(e,a,s),l.syncChildrenFromLexical(e,a,s,o,i)):l instanceof Pt&&W(a)?l.syncPropertiesAndTextFromLexical(e,a,s):l instanceof kr&&Se(a)&&l.syncPropertiesFromLexical(e,a,s)}syncChildrenFromLexical(e,t,r,s,o){const i=this.getPrevNode(r),l=i===null?[]:ku(i,r),a=ku(t,null),c=l.length-1,u=a.length-1,d=e.collabNodeMap;let f,g,h=0,m=0;for(;h<=c&&m<=u;){const y=l[h],w=a[m];if(y===w)this._syncChildFromLexical(e,m,w,r,s,o),h++,m++;else{f===void 0&&(f=new Set(l)),g===void 0&&(g=new Set(a));const v=g.has(y),S=f.has(w);if(v){const C=im(e,zo(w),this);d.set(w,C),S?(this.splice(e,m,1,C),h++,m++):(this.splice(e,m,0,C),m++)}else this.splice(e,m,1),h++}}const A=h>c,b=m>u;if(A&&!b)for(;m<=u;++m){const y=a[m],w=im(e,zo(y),this);this.append(w),d.set(y,w)}else if(b&&!A)for(let y=this._children.length-1;y>=m;y--)this.splice(e,y,1)}append(e){const t=this._xmlText,r=this._children,s=r[r.length-1],o=s!==void 0?s.getOffset()+s.getSize():0;if(e instanceof Ys)t.insertEmbed(o,e._xmlText);else if(e instanceof Pt){const i=e._map;i.parent===null&&t.insertEmbed(o,i),t.insert(o+1,e._text)}else e instanceof Vo?t.insertEmbed(o,e._map):e instanceof kr&&t.insertEmbed(o,e._xmlElem);this._children.push(e)}splice(e,t,r,s){const o=this._children,i=o[t];if(i===void 0)return s===void 0&&Ct(94),void this.append(s);const l=i.getOffset();l===-1&&Ct(95);const a=this._xmlText;if(r!==0&&a.delete(l,i.getSize()),s instanceof Ys)a.insertEmbed(l,s._xmlText);else if(s instanceof Pt){const c=s._map;c.parent===null&&a.insertEmbed(l,c),a.insert(l+1,s._text)}else s instanceof Vo?a.insertEmbed(l,s._map):s instanceof kr&&a.insertEmbed(l,s._xmlElem);if(r!==0){const c=o.slice(t,t+r);for(let u=0;u<c.length;u++)c[u].destroy(e)}s!==void 0?o.splice(t,r,s):o.splice(t,r)}getChildOffset(e){let t=0;const r=this._children;for(let s=0;s<r.length;s++){const o=r[s];if(o===e)return t;t+=o.getSize()}return-1}destroy(e){const t=e.collabNodeMap,r=this._children;for(let s=0;s<r.length;s++)r[s].destroy(e);t.delete(this._key)}};function Th(n,e,t){const r=new Eo(n,e,t);return n._collabNode=r,r}function ZE(n,e,t,r,s,o){r==null&&Ct(81);const i=Th(r.get("root",bs),null,"root");return i._key="root",{clientID:r.clientID,collabNodeMap:new Map,cursors:new Map,cursorsContainer:null,doc:r,docMap:s,editor:n,excludedProperties:o||new Map,id:t,nodeProperties:new Map,root:i}}function cm(n,e){const t=e.collabNodeMap.get(n.key);if(t===void 0)return null;let r=n.offset,s=t.getSharedType();if(t instanceof Pt){s=t._parent._xmlText;const o=t.getOffset();if(o===-1)return null;r=o+1+r}else if(t instanceof Eo&&n.type==="element"){const o=n.getNode();O(o)||Ct(184);let i=0,l=0,a=o.getFirstChild();for(;a!==null&&l++<r;)W(a)?i+=a.getTextContentSize()+1:i++,a=a.getNextSibling();r=i}return Bk(s,r)}function La(n,e){return Wk(n,e.doc)}function um(n,e){if(n==null){if(e!=null)return!0}else if(e==null||!Uk(n,e))return!0;return!1}function JE(n,e){return{color:e,name:n,selection:null}}function sC(n,e){const t=n.cursorsContainer;if(t!==null){const r=e.selections,s=r.length;for(let o=0;o<s;o++)t.removeChild(r[o])}}function XE(n,e){const t=e.selection;t!==null&&sC(n,t)}function QE(n,e,t,r,s){const o=n.color,i=document.createElement("span");i.style.cssText=`position:absolute;top:0;bottom:0;right:-1px;width:1px;background-color:${o};z-index:10;`;const l=document.createElement("span");return l.textContent=n.name,l.style.cssText=`position:absolute;left:-2px;top:-16px;background-color:${o};color:#fff;line-height:12px;font-size:12px;padding:2px;font-family:Arial;font-weight:bold;white-space:nowrap;`,i.appendChild(l),{anchor:{key:e,offset:t},caret:i,color:o,focus:{key:r,offset:s},name:l,selections:[]}}function qE(n,e,t,r){const s=n.editor,o=s.getRootElement(),i=n.cursorsContainer;if(i===null||o===null)return;const l=i.offsetParent;if(l===null)return;const a=l.getBoundingClientRect(),c=e.selection;if(t===null)return c===null?void 0:(e.selection=null,void sC(n,c));e.selection=t;const u=t.caret,d=t.color,f=t.selections,g=t.anchor,h=t.focus,m=g.key,A=h.key,b=r.get(m),y=r.get(A);if(b==null||y==null)return;let w;if(b===y&&Ee(b))w=[s.getElementByKey(m).getBoundingClientRect()];else{const C=O0(s,b,g.offset,y,h.offset);if(C===null)return;w=R0(s,C)}const v=f.length,S=w.length;for(let C=0;C<S;C++){const _=w[C];let k=f[C];if(k===void 0){k=document.createElement("span"),f[C]=k;const D=document.createElement("span");k.appendChild(D),i.appendChild(k)}const T=`position:absolute;top:${_.top-a.top}px;left:${_.left-a.left}px;height:${_.height}px;width:${_.width}px;pointer-events:none;z-index:5;`;k.style.cssText=T,k.firstChild.style.cssText=`${T}left:0;top:0;background-color:${d};opacity:0.3;`,C===S-1&&u.parentNode!==k&&k.appendChild(u)}for(let C=v-1;C>=S;C--){const _=f[C];i.removeChild(_),f.pop()}}function dm(n,e){const t=e.awareness.getLocalState();if(t===null)return;const r=t.anchorPos,s=t.focusPos;if(r!==null&&s!==null){const o=La(r,n),i=La(s,n);if(o!==null&&i!==null){const[l,a]=Ma(o.type,o.index),[c,u]=Ma(i.type,i.index);if(l!==null&&c!==null){const d=l.getKey(),f=c.getKey(),g=R();if(!M(g))return;const h=g.anchor,m=g.focus;fm(h,d,a),fm(m,f,u)}}}}function fm(n,e,t){if(n.key!==e||n.offset!==t){let r=ue(e);if(r!==null&&!O(r)&&!W(r)){const s=r.getParentOrThrow();e=s.getKey(),t=r.getIndexWithinParent(),r=s}n.set(e,t,O(r)?"element":"text")}}function Ma(n,e){const t=n._collabNode;if(t===void 0)return[null,0];if(t instanceof Eo){const{node:r,offset:s}=ql(t,e,!0);return r===null?[t,0]:[r,s]}return[null,0]}function oC(n,e){const t=Array.from(e.awareness.getStates()),r=n.clientID,s=n.cursors,o=n.editor._editorState._nodeMap,i=new Set;for(let a=0;a<t.length;a++){const c=t[a],[u,d]=c;if(u!==r){i.add(u);const{anchorPos:f,focusPos:g,name:h,color:m,focusing:A}=d;let b=null,y=s.get(u);if(y===void 0&&(y=JE(h,m),s.set(u,y)),f!==null&&g!==null&&A){const w=La(f,n),v=La(g,n);if(w!==null&&v!==null){const[S,C]=Ma(w.type,w.index),[_,k]=Ma(v.type,v.index);if(S!==null&&_!==null){const T=S.getKey(),D=_.getKey();if(b=y.selection,b===null)b=QE(y,T,C,D,k);else{const L=b.anchor,N=b.focus;L.key=T,L.offset=C,N.key=D,N.offset=k}}}}qE(n,y,b,o)}}const l=Array.from(s.keys());for(let a=0;a<l.length;a++){const c=l[a];if(!i.has(c)){const u=s.get(c);u!==void 0&&(XE(n,u),s.delete(c))}}}function iC(n,e,t,r){const s=e.awareness,o=s.getLocalState();if(o===null)return;const{anchorPos:i,focusPos:l,name:a,color:c,focusing:u,awarenessData:d}=o;let f=null,g=null;(r!==null&&(i===null||r.is(t))||t!==null)&&(M(r)&&(f=cm(r.anchor,n),g=cm(r.focus,n)),(um(i,f)||um(l,g))&&s.setLocalState({...o,anchorPos:f,awarenessData:d,color:c,focusPos:g,focusing:u,name:a}))}function $E(n,e){const{target:t}=e,r=kh(n,t);if(r instanceof Eo&&e instanceof Vw){const{keysChanged:s,childListChanged:o,delta:i}=e;s.size>0&&r.syncPropertiesFromYjs(n,s),o&&(r.applyChildrenYjsDelta(n,i),r.syncChildrenFromYjs(n))}else if(r instanceof Pt&&e instanceof Ww){const{keysChanged:s}=e;s.size>0&&r.syncPropertiesAndTextFromYjs(n,s)}else if(r instanceof kr&&e instanceof Gw){const{attributesChanged:s}=e;s.size>0&&r.syncPropertiesFromYjs(n,s)}else Ct(82)}function e_(n,e,t,r){const s=n.editor,o=s._editorState;t.forEach(i=>i.delta),s.update(()=>{for(let l=0;l<t.length;l++){const a=t[l];$E(n,a)}const i=R();if(M(i))if(lm(i)){const l=o._selection;M(l)&&(dm(n,e),lm(i))&&nC(i.anchor.key,o),iC(n,e,l,R())}else dm(n,e)},{onUpdate:()=>{oC(n,e),s.update(()=>{fe().getChildrenSize()===0&&fe().append(re())})},skipTransforms:!0,tag:r?"historic":"collaboration"})}function t_(n,e,t,r,s,o,i,l){(function(a,c){a.doc.transact(c,a)})(n,()=>{r.read(()=>{if(l.has("collaboration")||l.has("historic"))return void(i.size>0&&function(u,d){const f=Array.from(d),g=u.collabNodeMap,h=[];for(let m=0;m<f.length;m++){const A=f[m],b=ue(A),y=g.get(A);if(y instanceof Pt)if(W(b))h.push([y,b.__text]);else{const w=y.getOffset();if(w===-1)continue;const v=y._parent;y._normalized=!0,v._xmlText.delete(w,1),g.delete(A);const S=v._children,C=S.indexOf(y);S.splice(C,1)}}for(let m=0;m<h.length;m++){const[A,b]=h[m];A instanceof Pt&&typeof b=="string"&&(A._text=b)}}(n,i));if(s.has("root")){const u=t._nodeMap,d=fe(),f=n.root;f.syncPropertiesFromLexical(n,d,u),f.syncChildrenFromLexical(n,d,u,s,o)}const a=R(),c=t._selection;iC(n,e,c,a)})})}const n_=ze(),r_=ze();function s_(n,e){return new Tw(e,{trackedOrigins:new Set([n,null])})}function o_(n,e,t,r,s){n.awareness.setLocalState({anchorPos:null,awarenessData:s,color:t,focusPos:null,focusing:r,name:e})}function hm(n,e,t,r,s){const{awareness:o}=n;let i=o.getLocalState();i===null&&(i={anchorPos:null,awarenessData:s,color:t,focusPos:null,focusing:r,name:e}),i.focusing=r,o.setLocalState(i)}function i_(n,e,t,r,s,o,i,l,a,c,u,d){const f=x.useRef(!1),g=x.useCallback(()=>t.connect(),[t]),h=x.useCallback(()=>{try{t.disconnect()}catch{}},[t]);x.useEffect(()=>{const{root:A}=l,{awareness:b}=t,y=({status:T})=>{n.dispatchCommand(n_,T==="connected")},w=T=>{i&&T&&A.isEmpty()&&A._xmlText._length===0&&f.current===!1&&function(D,L){D.update(()=>{const N=fe();if(N.isEmpty())if(L)switch(typeof L){case"string":{const I=D.parseEditorState(L);D.setEditorState(I,{tag:"history-merge"});break}case"object":D.setEditorState(L,{tag:"history-merge"});break;case"function":D.update(()=>{fe().isEmpty()&&L(D)},{tag:"history-merge"})}else{const I=re();N.append(I);const{activeElement:P}=document;(R()!==null||P!==null&&P===D.getRootElement())&&I.select()}},{tag:"history-merge"})}(n,u),f.current=!1},v=()=>{oC(l,t)},S=(T,D)=>{const L=D.origin;L!==l&&e_(l,t,T,L instanceof Tw)};o_(t,s,o,document.activeElement===n.getRootElement(),d||{});const C=T=>{(function(D,L){if(D.update(()=>{const G=fe();G.clear(),G.select()},{tag:"skip-collab"}),L.cursors==null)return;const N=L.cursors;if(N==null)return;const I=L.cursorsContainer;if(I==null)return;const P=Array.from(N.values());for(let G=0;G<P.length;G++){const J=P[G].selection;if(J&&J.selections!=null){const te=J.selections;for(let Q=0;Q<te.length;Q++)I.removeChild(te[G])}}})(n,l),a(T),r.set(e,T),f.current=!0};t.on("reload",C),t.on("status",y),t.on("sync",w),b.on("update",v),A.getSharedType().observeDeep(S);const _=n.registerUpdateListener(({prevEditorState:T,editorState:D,dirtyLeaves:L,dirtyElements:N,normalizedNodes:I,tags:P})=>{P.has("skip-collab")===!1&&t_(l,t,T,D,N,L,I,P)}),k=g();return()=>{f.current===!1&&(k?k.then(h):h()),t.off("sync",w),t.off("status",y),t.off("reload",C),b.off("update",v),A.getSharedType().unobserveDeep(S),r.delete(e),_()}},[l,o,g,h,r,n,e,u,s,t,i,d,a]);const m=x.useMemo(()=>un.createPortal(p.jsx("div",{ref:A=>{l.cursorsContainer=A}}),c&&c.current||document.body),[l,c]);return x.useEffect(()=>n.registerCommand(r_,A=>(A?(console.log("Collaboration connected!"),g()):(console.log("Collaboration disconnected!"),h()),!0),pe),[g,h,n]),m}function l_(n,e){const t=x.useMemo(()=>s_(e,e.root.getSharedType()),[e]);x.useEffect(()=>ve(n.registerCommand(Fi,()=>(t.undo(),!0),pe),n.registerCommand(Bi,()=>(t.redo(),!0),pe)));const r=x.useCallback(()=>{t.clear()},[t]);return Yl.useEffect(()=>{const s=()=>{n.dispatchCommand(Js,t.undoStack.length>0),n.dispatchCommand(Zs,t.redoStack.length>0)};return t.on("stack-item-added",s),t.on("stack-item-popped",s),t.on("stack-cleared",s),()=>{t.off("stack-item-added",s),t.off("stack-item-popped",s),t.off("stack-cleared",s)}},[n,t]),r}function a_({id:n,providerFactory:e,shouldBootstrap:t,username:r,cursorColor:s,cursorsContainerRef:o,initialEditorState:i,excludedProperties:l,awarenessData:a}){const c=x.useRef(!1),u=x.useRef(!1),d=Hb(r,s),{yjsDocMap:f,name:g,color:h}=d,[m]=ie();x.useEffect(()=>(d.isCollabActive=!0,()=>{m._parentEditor==null&&(d.isCollabActive=!1)}),[d,m]);const[A,b]=x.useState();x.useEffect(()=>{if(u.current)return;u.current=!0;const C=e(n,f);return b(C),()=>{C.disconnect()}},[n,e,f]);const[y,w]=x.useState(f.get(n)),[v,S]=x.useState();return x.useEffect(()=>{if(!A||c.current)return;c.current=!0;const C=ZE(m,A,n,y||f.get(n),f,l);return S(C),()=>{C.root.destroy(C)}},[m,A,n,f,y,l]),A&&v?p.jsx(c_,{awarenessData:a,binding:v,collabContext:d,color:h,cursorsContainerRef:o,editor:m,id:n,initialEditorState:i,name:g,provider:A,setDoc:w,shouldBootstrap:t,yjsDocMap:f}):p.jsx(p.Fragment,{})}function c_({editor:n,id:e,provider:t,yjsDocMap:r,name:s,color:o,shouldBootstrap:i,cursorsContainerRef:l,initialEditorState:a,awarenessData:c,collabContext:u,binding:d,setDoc:f}){const g=i_(n,e,t,r,s,o,i,d,f,l,a,c);return u.clientID=d.clientID,l_(n,d),function(h,m,A,b,y){x.useEffect(()=>ve(h.registerCommand(Jr,()=>(hm(m,A,b,!0,y||{}),!1),pe),h.registerCommand(tc,()=>(hm(m,A,b,!1,y||{}),!1),pe)),[b,h,A,m,y])}(n,t,s,o,c),g}const lC=typeof window<"u"&&window.document!==void 0&&window.document.createElement!==void 0,u_=lC?x.useLayoutEffect:x.useEffect,El={tag:"history-merge"};function d_({initialConfig:n,children:e}){const t=x.useMemo(()=>{const{theme:r,namespace:s,nodes:o,onError:i,editorState:l,html:a}=n,c=Yb(null,r),u=mc({editable:n.editable,html:a,namespace:s,nodes:o,onError:d=>i(d,u),theme:r});return function(d,f){if(f!==null){if(f===void 0)d.update(()=>{const g=fe();if(g.isEmpty()){const h=re();g.append(h);const m=lC?document.activeElement:null;(R()!==null||m!==null&&m===d.getRootElement())&&h.select()}},El);else if(f!==null)switch(typeof f){case"string":{const g=d.parseEditorState(f);d.setEditorState(g,El);break}case"object":d.setEditorState(f,El);break;case"function":d.update(()=>{fe().isEmpty()&&f(d)},El)}}}(u,l),[u,c]},[]);return u_(()=>{const r=n.editable,[s]=t;s.setEditable(r===void 0||r)},[]),p.jsx(rh.Provider,{value:t,children:e})}const _l=0,Fd=1,Bd=2,mn=0,f_=1,gm=2,h_=3,g_=4;function p_(n,e,t,r,s){if(n===null||t.size===0&&r.size===0&&!s)return mn;const o=e._selection,i=n._selection;if(s)return f_;if(!(M(o)&&M(i)&&i.isCollapsed()&&o.isCollapsed()))return mn;const l=function(b,y,w){const v=b._nodeMap,S=[];for(const C of y){const _=v.get(C);_!==void 0&&S.push(_)}for(const[C,_]of w){if(!_)continue;const k=v.get(C);k===void 0||_t(k)||S.push(k)}return S}(e,t,r);if(l.length===0)return mn;if(l.length>1){const b=e._nodeMap,y=b.get(o.anchor.key),w=b.get(i.anchor.key);return y&&w&&!n._nodeMap.has(y.__key)&&W(y)&&y.__text.length===1&&o.anchor.offset===1?gm:mn}const a=l[0],c=n._nodeMap.get(a.__key);if(!W(c)||!W(a)||c.__mode!==a.__mode)return mn;const u=c.__text,d=a.__text;if(u===d)return mn;const f=o.anchor,g=i.anchor;if(f.key!==g.key||f.type!=="text")return mn;const h=f.offset,m=g.offset,A=d.length-u.length;return A===1&&m===h-1?gm:A===-1&&m===h+1?h_:A===-1&&m===h?g_:mn}function m_(n,e){let t=Date.now(),r=mn;return(s,o,i,l,a,c)=>{const u=Date.now();if(c.has("historic"))return r=mn,t=u,Bd;const d=p_(s,o,l,a,n.isComposing()),f=(()=>{const g=i===null||i.editor===n,h=c.has("history-push");if(!h&&g&&c.has("history-merge"))return _l;if(s===null)return Fd;const m=o._selection;return l.size>0||a.size>0?h===!1&&d!==mn&&d===r&&u<t+e&&g||l.size===1&&function(A,b,y){const w=b._nodeMap.get(A),v=y._nodeMap.get(A),S=b._selection,C=y._selection;return!(M(S)&&M(C)&&S.anchor.type==="element"&&S.focus.type==="element"&&C.anchor.type==="text"&&C.focus.type==="text"||!W(w)||!W(v)||w.__parent!==v.__parent)&&JSON.stringify(b.read(()=>w.exportJSON()))===JSON.stringify(y.read(()=>v.exportJSON()))}(Array.from(l)[0],s,o)?_l:Fd:m!==null?_l:Bd})();return t=u,r=d,f}}function pm(n){n.undoStack=[],n.redoStack=[],n.current=null}function A_(n,e,t){const r=m_(n,t);return ve(n.registerCommand(Fi,()=>(function(o,i){const l=i.redoStack,a=i.undoStack;if(a.length!==0){const c=i.current,u=a.pop();c!==null&&(l.push(c),o.dispatchCommand(Zs,!0)),a.length===0&&o.dispatchCommand(Js,!1),i.current=u||null,u&&u.editor.setEditorState(u.editorState,{tag:"historic"})}}(n,e),!0),pe),n.registerCommand(Bi,()=>(function(o,i){const l=i.redoStack,a=i.undoStack;if(l.length!==0){const c=i.current;c!==null&&(a.push(c),o.dispatchCommand(Js,!0));const u=l.pop();l.length===0&&o.dispatchCommand(Zs,!1),i.current=u||null,u&&u.editor.setEditorState(u.editorState,{tag:"historic"})}}(n,e),!0),pe),n.registerCommand(hi,()=>(pm(e),!1),pe),n.registerCommand(Bx,()=>(pm(e),n.dispatchCommand(Zs,!1),n.dispatchCommand(Js,!1),!0),pe),n.registerUpdateListener(({editorState:o,prevEditorState:i,dirtyLeaves:l,dirtyElements:a,tags:c})=>{const u=e.current,d=e.redoStack,f=e.undoStack,g=u===null?null:u.editorState;if(u!==null&&o===g)return;const h=r(i,o,u,l,a,c);if(h===Fd)d.length!==0&&(e.redoStack=[],n.dispatchCommand(Zs,!1)),u!==null&&(f.push({...u}),n.dispatchCommand(Js,!0));else if(h===Bd)return;e.current={editor:n,editorState:o}}))}function aC(){return{current:null,redoStack:[],undoStack:[]}}function Dh({delay:n,externalHistoryState:e}){const[t]=ie();return function(r,s,o=1e3){const i=x.useMemo(()=>s||aC(),[s]);x.useEffect(()=>A_(r,i,o),[o,r,i])}(t,e,n),null}const y_=typeof window<"u"&&window.document!==void 0&&window.document.createElement!==void 0?x.useLayoutEffect:x.useEffect;function b_({ignoreHistoryMergeTagChange:n=!0,ignoreSelectionChange:e=!1,onChange:t}){const[r]=ie();return y_(()=>{if(t)return r.registerUpdateListener(({editorState:s,dirtyElements:o,dirtyLeaves:i,prevEditorState:l,tags:a})=>{e&&o.size===0&&i.size===0||n&&a.has("history-merge")||l.isEmpty()||t(s,r,a)})},[r,n,e,t]),null}const cC=new Map;class w_{constructor(e){this.room=e,this.onmessage=null,this._onChange=t=>t.key===e&&this.onmessage!==null&&this.onmessage({data:sk(t.newValue||"")}),jS(this._onChange)}postMessage(e){ew.setItem(this.room,rk(qS(e)))}close(){PS(this._onChange)}}const C_=typeof BroadcastChannel>"u"?w_:BroadcastChannel,Nh=n=>Zn(cC,n,()=>{const e=Fr(),t=new C_(n);return t.onmessage=r=>e.forEach(s=>s(r.data,"broadcastchannel")),{bc:t,subs:e}}),v_=(n,e)=>(Nh(n).subs.add(e),e),x_=(n,e)=>{const t=Nh(n),r=t.subs.delete(e);return r&&t.subs.size===0&&(t.bc.close(),cC.delete(n)),r},Vs=(n,e,t=null)=>{const r=Nh(n);r.bc.postMessage(e),r.subs.forEach(s=>s(e,t))},uC=0,Ih=1,dC=2,zd=(n,e)=>{de(n,uC);const t=Ok(e);Je(n,t)},fC=(n,e,t)=>{de(n,Ih),Je(n,Nk(e,t))},S_=(n,e,t)=>fC(e,t,kt(n)),hC=(n,e,t)=>{try{_k(e,kt(n),t)}catch(r){console.error("Caught error while handling a Yjs update",r)}},k_=(n,e)=>{de(n,dC),Je(n,e)},E_=hC,__=(n,e,t,r)=>{const s=Ae(n);switch(s){case uC:S_(n,e,t);break;case Ih:hC(n,t,r);break;case dC:E_(n,t,r);break;default:throw new Error("Unknown message type")}return s},T_=0,D_=(n,e,t)=>{switch(Ae(n)){case T_:t(e,Or(n))}},_u=3e4;class N_ extends Gb{constructor(e){super(),this.doc=e,this.clientID=e.clientID,this.states=new Map,this.meta=new Map,this._checkInterval=setInterval(()=>{const t=zr();this.getLocalState()!==null&&_u/2<=t-this.meta.get(this.clientID).lastUpdated&&this.setLocalState(this.getLocalState());const r=[];this.meta.forEach((s,o)=>{o!==this.clientID&&_u<=t-s.lastUpdated&&this.states.has(o)&&r.push(o)}),r.length>0&&Lh(this,r,"timeout")},fr(_u/10)),e.on("destroy",()=>{this.destroy()}),this.setLocalState({})}destroy(){this.emit("destroy",[this]),this.setLocalState(null),super.destroy(),clearInterval(this._checkInterval)}getLocalState(){return this.states.get(this.clientID)||null}setLocalState(e){const t=this.clientID,r=this.meta.get(t),s=r===void 0?0:r.clock+1,o=this.states.get(t);e===null?this.states.delete(t):this.states.set(t,e),this.meta.set(t,{clock:s,lastUpdated:zr()});const i=[],l=[],a=[],c=[];e===null?c.push(t):o==null?e!=null&&i.push(t):(l.push(t),oi(o,e)||a.push(t)),(i.length>0||a.length>0||c.length>0)&&this.emit("change",[{added:i,updated:a,removed:c},"local"]),this.emit("update",[{added:i,updated:l,removed:c},"local"])}setLocalStateField(e,t){const r=this.getLocalState();r!==null&&this.setLocalState({...r,[e]:t})}getStates(){return this.states}}const Lh=(n,e,t)=>{const r=[];for(let s=0;s<e.length;s++){const o=e[s];if(n.states.has(o)){if(n.states.delete(o),o===n.clientID){const i=n.meta.get(o);n.meta.set(o,{clock:i.clock+1,lastUpdated:zr()})}r.push(o)}}r.length>0&&(n.emit("change",[{added:[],updated:[],removed:r},t]),n.emit("update",[{added:[],updated:[],removed:r},t]))},ii=(n,e,t=n.states)=>{const r=e.length,s=Et();de(s,r);for(let o=0;o<r;o++){const i=e[o],l=t.get(i)||null,a=n.meta.get(i).clock;de(s,i),de(s,a),us(s,JSON.stringify(l))}return He(s)},I_=(n,e,t)=>{const r=$r(e),s=zr(),o=[],i=[],l=[],a=[],c=Ae(r);for(let u=0;u<c;u++){const d=Ae(r);let f=Ae(r);const g=JSON.parse(Or(r)),h=n.meta.get(d),m=n.states.get(d),A=h===void 0?0:h.clock;(A<f||A===f&&g===null&&n.states.has(d))&&(g===null?d===n.clientID&&n.getLocalState()!=null?f++:n.states.delete(d):n.states.set(d,g),n.meta.set(d,{clock:f,lastUpdated:s}),h===void 0&&g!==null?o.push(d):h!==void 0&&g===null?a.push(d):g!==null&&(oi(g,m)||l.push(d),i.push(d)))}(o.length>0||l.length>0||a.length>0)&&n.emit("change",[{added:o,updated:l,removed:a},t]),(o.length>0||i.length>0||a.length>0)&&n.emit("update",[{added:o,updated:i,removed:a},t])},L_=n=>zS(n,(e,t)=>`${encodeURIComponent(t)}=${encodeURIComponent(e)}`).join("&"),os=0,gC=3,io=1,M_=2,rl=[];rl[os]=(n,e,t,r,s)=>{de(n,os);const o=__(e,n,t.doc,t);r&&o===Ih&&!t.synced&&(t.synced=!0)};rl[gC]=(n,e,t,r,s)=>{de(n,io),Je(n,ii(t.awareness,Array.from(t.awareness.getStates().keys())))};rl[io]=(n,e,t,r,s)=>{I_(t.awareness,kt(e),t)};rl[M_]=(n,e,t,r,s)=>{D_(e,t.doc,(o,i)=>O_(t,i))};const mm=3e4,O_=(n,e)=>console.warn(`Permission denied to access ${n.url}.
14
- ${e}`),pC=(n,e,t)=>{const r=$r(e),s=Et(),o=Ae(r),i=n.messageHandlers[o];return i?i(s,r,n,t,o):console.error("Unable to compute message"),s},mC=n=>{if(n.shouldConnect&&n.ws===null){const e=new n._WS(n.url);e.binaryType="arraybuffer",n.ws=e,n.wsconnecting=!0,n.wsconnected=!1,n.synced=!1,e.onmessage=t=>{n.wsLastMessageReceived=zr();const r=pC(n,new Uint8Array(t.data),!0);oh(r)>1&&e.send(He(r))},e.onerror=t=>{n.emit("connection-error",[t,n])},e.onclose=t=>{n.emit("connection-close",[t,n]),n.ws=null,n.wsconnecting=!1,n.wsconnected?(n.wsconnected=!1,n.synced=!1,Lh(n.awareness,Array.from(n.awareness.getStates().keys()).filter(r=>r!==n.doc.clientID),n),n.emit("status",[{status:"disconnected"}])):n.wsUnsuccessfulReconnects++,setTimeout(mC,sh(rS(2,n.wsUnsuccessfulReconnects)*100,n.maxBackoffTime),n)},e.onopen=()=>{n.wsLastMessageReceived=zr(),n.wsconnecting=!1,n.wsconnected=!0,n.wsUnsuccessfulReconnects=0,n.emit("status",[{status:"connected"}]);const t=Et();if(de(t,os),zd(t,n.doc),e.send(He(t)),n.awareness.getLocalState()!==null){const r=Et();de(r,io),Je(r,ii(n.awareness,[n.doc.clientID])),e.send(He(r))}},n.emit("status",[{status:"connecting"}])}},Tu=(n,e)=>{const t=n.ws;n.wsconnected&&t&&t.readyState===t.OPEN&&t.send(e),n.bcconnected&&Vs(n.bcChannel,e,n)};class AC extends Gb{constructor(e,t,r,{connect:s=!0,awareness:o=new N_(r),params:i={},WebSocketPolyfill:l=WebSocket,resyncInterval:a=-1,maxBackoffTime:c=2500,disableBc:u=!1}={}){for(super();e[e.length-1]==="/";)e=e.slice(0,e.length-1);const d=L_(i);this.maxBackoffTime=c,this.bcChannel=e+"/"+t,this.url=e+"/"+t+(d.length===0?"":"?"+d),this.roomname=t,this.doc=r,this._WS=l,this.awareness=o,this.wsconnected=!1,this.wsconnecting=!1,this.bcconnected=!1,this.disableBc=u,this.wsUnsuccessfulReconnects=0,this.messageHandlers=rl.slice(),this._synced=!1,this.ws=null,this.wsLastMessageReceived=0,this.shouldConnect=s,this._resyncInterval=0,a>0&&(this._resyncInterval=setInterval(()=>{if(this.ws&&this.ws.readyState===WebSocket.OPEN){const f=Et();de(f,os),zd(f,r),this.ws.send(He(f))}},a)),this._bcSubscriber=(f,g)=>{if(g!==this){const h=pC(this,new Uint8Array(f),!1);oh(h)>1&&Vs(this.bcChannel,He(h),this)}},this._updateHandler=(f,g)=>{if(g!==this){const h=Et();de(h,os),k_(h,f),Tu(this,He(h))}},this.doc.on("update",this._updateHandler),this._awarenessUpdateHandler=({added:f,updated:g,removed:h},m)=>{const A=f.concat(g).concat(h),b=Et();de(b,io),Je(b,ii(o,A)),Tu(this,He(b))},this._exitHandler=()=>{Lh(this.awareness,[r.clientID],"app closed")},Wr&&typeof process<"u"&&process.on("exit",this._exitHandler),o.on("update",this._awarenessUpdateHandler),this._checkInterval=setInterval(()=>{this.wsconnected&&mm<zr()-this.wsLastMessageReceived&&this.ws.close()},mm/10),s&&this.connect()}get synced(){return this._synced}set synced(e){this._synced!==e&&(this._synced=e,this.emit("synced",[e]),this.emit("sync",[e]))}destroy(){this._resyncInterval!==0&&clearInterval(this._resyncInterval),clearInterval(this._checkInterval),this.disconnect(),Wr&&typeof process<"u"&&process.off("exit",this._exitHandler),this.awareness.off("update",this._awarenessUpdateHandler),this.doc.off("update",this._updateHandler),super.destroy()}connectBc(){if(this.disableBc)return;this.bcconnected||(v_(this.bcChannel,this._bcSubscriber),this.bcconnected=!0);const e=Et();de(e,os),zd(e,this.doc),Vs(this.bcChannel,He(e),this);const t=Et();de(t,os),fC(t,this.doc),Vs(this.bcChannel,He(t),this);const r=Et();de(r,gC),Vs(this.bcChannel,He(r),this);const s=Et();de(s,io),Je(s,ii(this.awareness,[this.doc.clientID])),Vs(this.bcChannel,He(s),this)}disconnectBc(){const e=Et();de(e,io),Je(e,ii(this.awareness,[this.doc.clientID],new Map)),Tu(this,He(e)),this.bcconnected&&(x_(this.bcChannel,this._bcSubscriber),this.bcconnected=!1)}disconnect(){this.shouldConnect=!1,this.disconnectBc(),this.ws!==null&&this.ws.close()}connect(){this.shouldConnect=!0,!this.wsconnected&&this.ws===null&&(mC(this),this.connectBc())}}const R_="0.0.16",j_={version:R_},yC=({children:n})=>p.jsx("div",{className:"doc-space-styles-provider",children:n}),P_=JSON.parse(`{"placeholder":"Write something, or press '/' for commands...","heading":{"h1":"Heading 1","h2":"Heading 2","h3":"Heading 3","name":"Heading"},"close":"Close","menu":{"heading":{"title":"Headings","hintShowCase":"Your Ideas, Documents, and Plans. United. Welcome to {{projectName}} — this is a connected workspace where work becomes better and faster.","h1":{"subtitle":"Large Heading","hintDescription":"H1 is used to create the main heading of a page or section, which sets the overall theme. It is also used to automatically generate the table of contents for a document.","keywords":{"header1":"header1","headerOne":"headerone","h1":"h1"}},"h2":{"subtitle":"Medium Heading","hintDescription":"H2 is used to create a secondary heading of a page or section, which sets a general theme. It is also used to automatically generate the table of contents for a document.","keywords":{"header2":"header2","headerTwo":"headertwo","h2":"h2"}},"h3":{"subtitle":"Small Heading","hintDescription":"H3 is used to create a subheading of a page or section, which sets a general theme. It is also used to automatically generate the table of contents for a document.","keywords":{"header3":"header3","headerThree":"headerthree","h3":"h3"}}},"lists":{"title":"Lists","numberList":{"name":"Numbered List","subtitle":"A simple numbered list","hint":{"firstItem":"First item","secondItem":"Second item","firstSubItem":"First sub-item","secondSubItem":"Second sub-item","firstSubSubItem":"First sub-sub-item","secondSubSubItem":"Second sub-sub-item","description":"This tool creates a list with items that are automatically numbered when new rows are added."}},"bulletList":{"name":"Bulleted List","subtitle":"Automatically marked list","hint":{"firstItem":"First item","secondItem":"Second item","firstSubItem":"First sub-item","secondSubItem":"Second sub-item","firstSubSubItem":"First sub-sub-item","secondSubSubItem":"Second sub-sub-item","description":"This tool creates a list with items that are automatically marked with bullets when new rows are added."}},"checkList":{"name":"Checklist","subtitle":"Easy task management","hint":{"indeterminate":"Indeterminate","unchecked":"Unchecked","checked":"Checked","description":"Creates a task list with the ability to mark completed items and sub-items."}}},"main":{"title":"Basics","paragraph":{"name":"Paragraph","subtitle":"Simply start typing regular text","hint":{"text":"Your Ideas, Documents, and Plans. United. Welcome to {{projectName}} — this is a connected workspace where work becomes better and faster.","description":"A few lines of text, left-aligned, imitating a text block."}},"quote":{"name":"Quote","subtitle":"Write down a quote","hint":{"text":"/quote Your Ideas, Documents, and Plans. United. Welcome to {{projectName}} — this is a connected workspace where work becomes better and faster. Stay focused, stay aligned, and achieve more with Layers.","description":"Used to insert quotes or highlight important text blocks. It is visually separated from the main text."}},"collapse":{"name":"Collapsible","subtitle":"Hide block content","hint":{"firstItemEmpty":"First item is empty","secondItem":"Second item","firstSubItemEmpty":"First sub-item is empty","secondSubItem":"Second sub-item","firstSubSubItemEmpty":"First sub-sub-item is empty","secondSubSubItem":"Second sub-sub-item","description":"Used to create blocks with content that can be hidden or shown when clicked. Almost any other block can be placed inside such a list."}},"horizontal-rule":{"name":"Divider","subtitle":"Visualizes block dividers","hint":{"topText":"Pressed the slash. Then entered something...","bottomText":"The next day, everything became clearer and more understandable. As if what was unknown yesterday became completely familiar and ordinary today. Take, for example...","description":"Used to visually separate sections or blocks of text on a page."}},"table":{"name":"Table","subtitle":"Add a simple table to your page","hint":{"firstRow":"First cell filled with text","secondRow":"And another cell with text","description":"A tool for creating tables with multiple rows and columns to organize data."}},"grid":{"name":"Grid","subtitle":"Up to 4 columns of blocks","hint":{"firstColumn":"The next day, everything became clearer and more understandable. As if what was unknown yesterday became completely familiar and ordinary today. Take, for example...","secondColumn":"Your Ideas, Documents, and Plans. United. Welcome to {{projectName}} — this is a connected workspace where work becomes better and faster.","description":"A tool for dividing a document into multiple columns, into which any blocks can be placed."}},"code":{"name":"Code","subtitle":"Write a code snippet","copy":"Copy code","appleExitCommandText":"⌘ + Enter to exit code block","windowsExitCommandText":"Ctrl + Enter to exit code block","collapsible":{"hidden":"Collapse code","expand":"Expand code"},"hint":{"description":"A tool for inserting code snippets with syntax highlighting."}},"callout":{"name":"Callout","subtitle":"Make writing stand out","hint":{"description":"-."}}},"callout":{"title":"Callout","default":{"name":"Default","hint":{"description":"A few lines of text aligned to the left, simulating a text block.","body":"/callout Your Ideas, Documents, and Plans. Unified. Welcome to {{projectName}} — a connected workspace where work gets better and faster. Your Ideas and Plans. Unified. Welcome to {{projectName}} — a connected workspace where work gets better and faster. Your Ideas, Documents, and Plans. Unified. Welcome to {{projectName}} — a connected workspace where work gets better and faster."},"keywords":{"callout":"callout","type":"default"},"subtitle":"Default callout"},"success":{"name":"Success","subtitle":"Successful notification","keywords":{"callout":"callout","type":"success"}},"warning":{"name":"Warning","hint":{"description":"A few lines of text aligned to the left, simulating a text block."},"keywords":{"callout":"callout","type":"warning"},"subtitle":"Important notification"},"alert":{"name":"Alert","hint":{"description":"A few lines of text aligned to the left, simulating a text block."},"keywords":{"callout":"callout","type":"alert"},"subtitle":"Critical notification"}},"media":{"title":"Media","photo":{"name":"Image","hint":{"description":"A tool for adding an image to a page."},"subtitle":"Upload and place via link"},"form":{"name":"Form","subtitle":"Add a form"},"video":{"name":"Video","hint":{"description":"A tool for embedding video on a page."},"subtitle":"Add a video via link"}},"other":{"title":"Other","documents":{"empty":"You have no nested documents","name":"Nested Documents","subtitle":"Displays a list of nested documents"},"emoji":{"name":"Emoji","subtitle":"Add emoji"}},"integrations":{"title":"Integrations"}},"toolbar":{"turnInto":"Turn into","bold":"Bold","italic":"Italic","underline":"Underline","strike":"Strikethrough","superscript":"Superscript","subscript":"Subscript","align":"Alignment","left":"Align Left","center":"Align Center","right":"Align Right","justify":"Justify","indent":"Indent","outdent":"Outdent","color":"Color","code":"Code","link":"Add Link","clear":"Clear Formatting"},"contextMenu":{"copy":"Copy","cut":"Cut","paste":"Paste","delete":"Delete","add":"Add","selectAll":"Select All","duplicate":"Duplicate","appearance":"Appearance"},"colors":{"lastTimeUsed":"Last Used","color":"Color","background":"Background","theme":"Theme","colors":{"standard":"Standard","gray":"Gray","brown":"Brown","orange":"Orange","yellow":"Yellow","green":"Green","blue":"Blue","purple":"Purple","pink":"Pink","red":"Red"},"callout":{"success":"Success","alert":"Alert","warning":"Warning"}},"video":{"insert":"Embed","worksWith":"Works with","add_video":"Add Video"},"swagger":{"insert":"Swagger","worksWith":"Works with","add":"Add Swagger"},"image":{"add_photo":"Add Image","preview":"Preview"},"fille":{"add_file":"Add File"},"mention":{"mark":"Mark someone"},"validation":{"link":"Invalid Link"},"table":{"background_one":"Cell Background Color","background_other":"Cells background color","settings":"Settings","menu":{"addColAfter":"Add Column Right","addColBefore":"Add Column Left","addRowAbove":"Add Row Above","addRowBelow":"Add Row Below","deleteCol":"Delete Column","deleteRow":"Delete Row","mergeCells":"Merge Cells","disconnectCells":"Disconnect Cells","splitCell":"Split Cell","deleteTable":"Delete Table","insertRow_one":"Insert row","insertRow_other":"Insert {{count}} rows","deleteRow_one":"Delete row","deleteRow_other":"Delete {{count}} rows","insertCol_one":"Insert column","insertCol_other":"Insert {{count}} columns","deleteCol_one":"Delete column","deleteCol_other":"Delete {{count}} columns","headTable_col":"{{value}} row column","headTable_row":"{{value}} row header","below":"Below","above":"Above","left":"Left","right":"Right","row":"Row","rows":"Rows","column":"Column","columns":"Columns"}},"column":{"name":"Insert Grid","insert":"Insert","columns":"Columns","addRight":"Add a column to the right","addLeft":"Add a column to the left","moveLeft":"Move a column to the left","changeColor":"Change the column color","moveRight":"Move a column to the right","deleteColumn":"Delete a column"},"hoverOptions":{"addNewBlockBelow":"Add block below","addNewBlockAbove":"Add block above","drag":"Drag","click":"Click","clickAction":"To open the menu","dragAction":"To move"},"embed":{"placeholder":"Enter a valid embed URL","insert":"Embed","addEmbed":"Add Embed"},"content":"Content","emoji":{"emojis":"Emoji","icons":"Icons","search":"Search","searchResults":"Search result","searchNoResults":"Emoji not found","remove":"Remove","emojiCategory":{"frequent":"Frequently used","people":"Emotions and people","nature":"Animals and nature","foods":"Food and drinks","activity":"Activities","places":"Travel and Places","objects":"Items","symbols":"Symbols","flags":"Flags"}},"form":{"url":"Enter a valid URL."},"noTitle":"No title","gallery":{"download":"Download","close":"Close","errorFile":"Failed to download file"},"emptyPageOptions":{"heading":"A Heading that will automatically generate an interactive table of contents","grid":"The grid will help structure the page horizontally","list":"Numbered list, for easy outlining of the meeting","code":"Code block with syntax support","callout":"Callout for highlighting","table":"Table, to find dependencies in the data","integrations":"Many integrations from third-party services"}}`),F_={editor:P_},B_=JSON.parse(`{"placeholder":"Напишите что-нибудь, или нажмите '/' для команд...","heading":{"h1":"Заголовок 1","h2":"Заголовок 2","h3":"Заголовок 3","name":"Заголовок"},"close":"Закрыть","menu":{"heading":{"title":"Заголовоки","hintShowCase":"Ваши Идеи, Документы и Планы. Объединены. Добро пожаловать в {{projectName}} — это связанное рабочее пространство, где работа становится лучше и быстрее.","h1":{"subtitle":"Большой заголовок","hintDescription":"H1 используется для создания основного заголовка страницы или раздела, который задает общую тему. Так же используется для автоматического формирования содержания документа.","keywords":{"heading":"оглавление","header1":"заголовок1","headerOne":"заголовокодин","h1":"з1"}},"h2":{"subtitle":"средний заголовок","hintDescription":"H2 используется для создания дополнительного заголовка страницы или раздела, который задает общую тему. Так же используется для автоматического формирования содержания документа.","keywords":{"heading":"оглавление","header2":"заголовок2","headerTwo":"заголовокдва","h2":"з2"}},"h3":{"subtitle":"Маленький заголовок","hintDescription":"H3 используется для создания подзаголовка страницы или раздела, который задает общую тему. Так же используется для автоматического формирования содержания документа.","keywords":{"heading":"оглавление","header3":"заголовок3","headerThree":"заголовоктри","h3":"з3"}}},"lists":{"title":"Списки","numberList":{"name":"Нумерованный Список","subtitle":"Простой нумерованный список","hint":{"firstItem":"Первый пункт","secondItem":"Второй пункт","firstSubItem":"Первый подпункт","secondSubItem":"Второй подпункт","firstSubSubItem":"Первый подподпункт","secondSubSubItem":"Второй подподпункт","description":"Этот инструмент создает список с элементами, которые автоматически нумеруются при добавлении новых строк."},"keywords":{"headingList":"нумерованныйсписок","heading":"нумерация","markers":"цифры"}},"bulletList":{"name":"Маркированный список","subtitle":"Автоматически маркированный список","hint":{"firstItem":"Первый пункт","secondItem":"Второй пункт","firstSubItem":"Первый подпункт","secondSubItem":"Второй подпункт","firstSubSubItem":"Первый подподпункт","secondSubSubItem":"Второй подподпункт","description":"Этот инструмент создает список с элементами, которые маркируются автоматически при добавлении новых строк."},"keywords":{"headingList":"маркированныйсписок","heading":"маркеры","markers":"точки","bulletsAlt1":"буллеты","bulletsAlt2":"булеты"}},"checkList":{"name":"Чек-лист","subtitle":"Простое управление задачами","hint":{"indeterminate":"Неопределен","unchecked":"Неотмечен","checked":"Отмечен","description":"Создает список задач с возможностью отметки выполненных пунктов и подпунктов"},"keywords":{"headingList":"списокзадач","heading":"чеклист","markers":"флажки","shoppingList":"списокпокупок"}}},"main":{"title":"Базовые","paragraph":{"name":"Парараграф","subtitle":"Просто начнийте писать обычным текстом","hint":{"text":"Ваши Идеи, Документы и Планы. Объединены. Добро пожаловать в {{projectName}} — это связанное рабочее пространство, где работа становится лучше и быстрее.","description":"Несколько строк текста, выровненных по левому краю, имитирующих текстовый блок"},"keywords":{"paragraph":"параграф","text":"текст"}},"quote":{"name":"Цитата","subtitle":"Запишите цитату","hint":{"text":"/quote Ваши Идеи, Документы и Планы. Объединены. Добро пожаловать в {{projectName}} — это связанное рабочее пространство, где работа становится лучше и быстрее. Оставайтесь сосредоточенными, действуйте слаженно и добивайтесь большего с Layers.","description":"Используется для вставки цитат или выделения важных блоков текста. Визуально выносится отдельно от основного текста"},"keywords":{"quote":"цитата","mark":"кавычки","citation":"цитирование"}},"collapse":{"name":"Сворачиваемый","subtitle":"Прячет содержимое блока","hint":{"firstItemEmpty":"Первый пункт пустой","secondItem":"Второй пункт","firstSubItemEmpty":"Первый подпункт пустой","secondSubItem":"Второй подпункт","firstSubSubItemEmpty":"Первый подподпункт пустой ","secondSubSubItem":"Второй подподпункт","description":"Используется для создания блоков с содержимым, которое можно скрыть или показать при нажатии. Внутри такого списка может быть почти любой другой блок"},"keywords":{"collapsibleList":"сворачиваемыйсписок","expandList":"раскрыть","hideList":"скрыть","turnList":"свернуть"}},"horizontal-rule":{"name":"Разделитель","subtitle":"Визуализирует разделитель блоков","hint":{"topText":"нажал на слэш. Потом что-то ввёл...","bottomText":"На следующий день всё стало яснее и понятнее. Будто то, что ещё вчера было чем-то неизведанным сегодня стало совершенно знакомым и обыденным. Вот взять, к примеру","description":"Используется для визуального разделения разделов или блоков текста на странице"},"keywords":{"divider":"разделитель","horizontalLine":"линия","border":"граница"}},"table":{"name":"Таблица","subtitle":"Добавьте на свою страницу простую таблицу","hint":{"firstRow":"Первая ячейка заполненная текстом","secondRow":"И ещё одна с текстом ячейка","description":"Инструмент для создания таблиц с несколькими строками и столбцами для организации данных"},"keywords":{"table":"таблица"}},"grid":{"name":"Сетка","subtitle":"До 4-х колонок из блоков","hint":{"firstColumn":"На следующий день всё стало яснее и понятнее. Будто то, что ещё вчера было чем-то неизведанным сегодня стало совершенно знакомым и обыденным. Вот взять, к примеру","secondColumn":"Ваши Идеи, Документы и Планы. Объединены. Добро пожаловать в {{projectName}} — это связанное рабочее пространство, где работа становится лучше и быстрее.","description":"Инструмент для разделения докуента на несколько столбцов, в которые можно помещать любые блоки"},"keywords":{"net":"сетка","grid":"грид","columns":"столбцы"}},"code":{"name":"Код","subtitle":"Запишите фрагмент кода","copy":"Копировать код","appleExitCommandText":"⌘ + Enter чтобы выйти из блока кода","windowsExitCommandText":"Ctrl + Enter чтобы выйти из блока кода","collapsible":{"hidden":"Свернуть код","expand":"Развернуть код"},"hint":{"description":"Инструмент для вставки фрагментов программного кода с подсветкой синтаксиса"},"keywords":{"code":"код","snippet":"сниппет"}}},"media":{"title":"Медиа","photo":{"name":"Картинка","hint":{"description":"Инструмент для добавления изображения на страницу"},"keywords":{"picture":"картинка","display":"изображение","meme":"мем","drawing":"иллюстрация","memePic":"пикча"},"subtitle":"Загрузите и разместите с помощью ссылки"},"form":{"name":"Форма","subtitle":"Добавьте форму"},"video":{"name":"Видео","hint":{"description":"Инструмент для вставки видео на страницу"},"keywords":{"video":"видео"},"subtitle":"Добавьте видео с помощью ссылки"}},"callout":{"title":"Уведомления","default":{"name":"По умолчанию","hint":{"description":"Несколько строк текста, выровненных по левому краю, имитирующих текстовый блок.","body":"/callout Ваши Идеи, Документы и Планы. Объединены. Добро пожаловать в {{projectName}} — это связанное рабочее пространство, где работа становится лучше и быстрее. Ваши Идеи и Планы. Объединены. Добро пожаловать в {{projectName}} — это связанное рабочее пространство, где работа становится лучше и быстрее. Ваши Идеи, Документы и Планы. Объединены. Добро пожаловать в {{projectName}} — это связанное рабочее пространство, где работа"},"keywords":{"callout":"оповещение","type":"поумолчанию"},"subtitle":"Уведомление по умолчанию"},"success":{"name":"Успех","subtitle":"Успешное уведомления","keywords":{"callout":"оповещение","type":"успех"}},"warning":{"name":"Предупреждение","hint":{"description":"Несколько строк текста, выровненных по левому краю, имитирующих текстовый блок."},"keywords":{"callout":"оповещение","type":"предупреждение"},"subtitle":"Важное уведомления"},"alert":{"name":"Внимание","hint":{"description":"Несколько строк текста, выровненных по левому краю, имитирующих текстовый блок."},"keywords":{"callout":"оповещение","type":"внимание"},"subtitle":"Критическое уведомление"}},"other":{"title":"Прочее","documents":{"empty":"У вас нет вложенных документов","name":"Вложенные документы","subtitle":"Отображает список вложенных документов"},"emoji":{"name":"Эмодзи","subtitle":"Добавьте эмодзи"}},"integrations":{"title":"Интеграции"}},"toolbar":{"turnInto":"Превратить в","bold":"Жирный","italic":"Курсив","underline":"Подчеркнутый","strike":"Зачеркнутый","superscript":"Надстрочный","subscript":"Подстрочный","align":"Выравнивание","left":"По левому краю","center":"По центру","right":"По правому краю","justify":"Выравнивание по ширине","indent":"Отступ","outdent":"Отступ","color":"Цвет","code":"Код","link":"Добавить ссылку","clear":"Очистить формат"},"contextMenu":{"copy":"Копировать","cut":"Вырезать","paste":"Вставить","delete":"Удалить","add":"Добавить","selectAll":"Выбрать все","duplicate":"Дублировать","appearance":"Внешний вид"},"colors":{"lastTimeUsed":"Последнее раз использовался","color":"Цвет","background":"Фон","theme":"Темы","colors":{"standard":"Стандартный","gray":"Серый","brown":"Коричневый","orange":"Оранжевый","yellow":"Желтый","green":"Зеленый","blue":"Синий","purple":"Фиолетовый","pink":"Розовый","red":"Красный"},"callout":{"success":"Успех","alert":"Внимание","warning":"Предупреждение"}},"video":{"insert":"Встроить","worksWith":"Работает с","add_video":"Добавить видео"},"swagger":{"insert":"Swagger","worksWith":"Works with","add":"Добавить Swagger"},"image":{"add_photo":"Добавить картинку","preview":"Превью"},"file":{"add_file":"Добавить файл"},"mention":{"mark":"Отменить кого-то"},"validation":{"link":"Неверная ссылка"},"table":{"background_one":"Цвет фона ячейки","background_few":"Цвет фона ячеек","background_other":"Цвет фона ячеек","settings":"Настройки","menu":{"addColAfter":"Добавить столбец справа","addColBefore":"Добавить столбец слева","addRowAbove":"Добавить строку выше","addRowBelow":"Добавить строку ниже","deleteCol":"Удалить столбец","deleteRow":"Удалить строку","mergeCells":"Объединить ячейки","disconnectCells":"Разъединить ячейки","splitCell":"Разделить ячейку","deleteTable":"Удалить таблицу","insertRow_one":"Вставить строку","insertRow_few":"Вставить {{count}} строки","insertRow_many":"Вставить {{count}} строк","deleteRow_one":"Удалить строку","deleteRow_few":"Удалить {{count}} строки","deleteRow_many":"Удалить {{count}} строк","insertCol_one":"Вставить столбец","insertCol_few":"Вставить {{count}} столбца","insertCol_many":"Вставить {{count}} столбец","deleteCol_one":"Удалить столбец","deleteCol_few":"Удалить {{count}} столбца","deleteCol_many":"Удалить {{count}} столбец","headTable_col":"{{value}} заголовок столбца","headTable_row":"{{value}} заголовок строки","below":"ниже","above":"выше","left":"слева","right":"справа","row":"cтроку","rows":"cтроки","column":"cтолбец","columns":"cтолбца"}},"column":{"name":"Вставить сетку","insert":"Вставить","columns":"Колонки","addRight":"Добавить колонку справа","addLeft":"Добавить колонку слева","moveLeft":"Переместить колонку влево","moveRight":"Переместить колонку вправо","deleteColumn":"Удалить колонку","changeColor":"Поменять цвет колонки"},"hoverOptions":{"addNewBlockBelow":"Добавить блок выше","addNewBlockAbove":"Добавить блок ниже","drag":"Перетащите","click":"Нажмите","clickAction":"Чтобы открыть меню","dragAction":"Чтобы переместить"},"embed":{"placeholder":"Введите действительный URL-адрес для встраивания","insert":"Встроить","addEmbed":"Встроить внешний контент"},"content":"Содержание","emoji":{"emojis":"Эмодзи","icons":"Иконки","search":"Поиск","searchResults":"Результат поиска","searchNoResults":"Эмодзи не найдено","remove":"Удалить","emojiCategory":{"frequent":"Часто используемые","people":"Эмоции и люди","nature":"Животные и природа","foods":"Еда и напитки","activity":"Активности","places":"Путешествия и места","objects":"Предметы","symbols":"Символы","flags":"Флаги"}},"form":{"url":"Укажите правильный URL."},"noTitle":"Без названия","gallery":{"download":"Загрузить","close":"Закрыть","errorFile":"Не удалось загрузить файл"},"emptyPageOptions":{"heading":"Заголовок, который автоматически создаст интерактивное оглавление","grid":"Сетка поможет структурировать страницу по горизонтали","list":"Нумерованный список для удобного планирования встречи","code":"Блок кода с поддержкой синтаксиса","callout":"Выделенный блок для акцента","table":"Таблица для поиска зависимостей в данных","integrations":"Множество интеграций от сторонних сервисов"}}`),z_={editor:B_},W_={color:"Color",background:"Background",colors:{standard:"Standard",gray:"Gray",brown:"Brown",orange:"Orange",yellow:"Yellow",green:"Green",blue:"Blue",purple:"Purple",pink:"Pink",red:"Red"}},U_={gallery:"Gallery",upload:"Upload",uploadFile:"Upload file",maxFileSize:"Maximum image size - 5MB",link:"Link",pasteLink:"Paste image link...",submitLink:"Apply",worksWithAnyImage:"Works with any image from the Internet",searchImage:"Search image...",noResult:"No images found for your query",change:"Change cover",invalidLink:"Invalid link",loadMore:"Load more",dragOrClickToChoose:"Drop file here or click to select"},K_={colorPicker:W_,changeCover:U_},H_={color:"Цвет",background:"Подложка",colors:{standard:"Стандартный",gray:"Серый",brown:"Коричневый",orange:"Оранжевый",yellow:"Желтый",green:"Зеленый",blue:"Синий",purple:"Фиолетовый",pink:"Розовый",red:"Красный"}},Y_={gallery:"Галерея",upload:"Загрузить",uploadFile:"Загрузить файл",maxFileSize:"Максимальный вес изображения - 5МБ",link:"Ссылка",pasteLink:"Вставьте ссылку на изображение...",submitLink:"Применить",worksWithAnyImage:"Работает с любыми изображениями из Интернета",searchImage:"Поиск изображения...",noResult:"По вашему запросу изображений не найдено",change:"Изменить обложку",invalidLink:"Неверная ссылка",dragOrClickToChoose:"Перетащите файл сюда или нажмите, чтобы выбрать",loadMore:"Загрузить ещё"},V_={colorPicker:H_,changeCover:Y_},Wd=Ox.createInstance();Wd.use(We.initReactI18next).init({resources:{en:{translation:F_,ui:K_},ru:{translation:z_,ui:V_}},lng:"en",fallbackLng:"en",interpolation:{escapeValue:!1}}).then(()=>{}).catch(n=>{});const G_=typeof window<"u"&&window.document!==void 0&&window.document.createElement!==void 0?x.useLayoutEffect:x.useEffect;function Z_({onClear:n}){const[e]=ie();return G_(()=>e.registerCommand(hi,t=>(e.update(()=>{if(n==null){const r=fe(),s=R(),o=re();r.clear(),r.append(o),s!==null&&o.select(),M(s)&&(s.format=0)}else n()}),!0),pe),[e,n]),null}const J_=new Set(["http:","https:","mailto:","sms:","tel:"]);let Os=class bC extends De{static getType(){return"link"}static clone(e){return new bC(e.__url,{rel:e.__rel,target:e.__target,title:e.__title},e.__key)}constructor(e,t={},r){super(r);const{target:s=null,rel:o=null,title:i=null}=t;this.__url=e,this.__target=s,this.__rel=o,this.__title=i}createDOM(e){const t=document.createElement("a");return t.href=this.sanitizeUrl(this.__url),this.__target!==null&&(t.target=this.__target),this.__rel!==null&&(t.rel=this.__rel),this.__title!==null&&(t.title=this.__title),_e(t,e.theme.link),t}updateDOM(e,t,r){if(t instanceof HTMLAnchorElement){const s=this.__url,o=this.__target,i=this.__rel,l=this.__title;s!==e.__url&&(t.href=s),o!==e.__target&&(o?t.target=o:t.removeAttribute("target")),i!==e.__rel&&(i?t.rel=i:t.removeAttribute("rel")),l!==e.__title&&(l?t.title=l:t.removeAttribute("title"))}return!1}static importDOM(){return{a:e=>({conversion:X_,priority:1})}}static importJSON(e){const t=go(e.url,{rel:e.rel,target:e.target,title:e.title});return t.setFormat(e.format),t.setIndent(e.indent),t.setDirection(e.direction),t}sanitizeUrl(e){try{const t=new URL(e);if(!J_.has(t.protocol))return"about:blank"}catch{return e}return e}exportJSON(){return{...super.exportJSON(),rel:this.getRel(),target:this.getTarget(),title:this.getTitle(),type:"link",url:this.getURL(),version:1}}getURL(){return this.getLatest().__url}setURL(e){this.getWritable().__url=e}getTarget(){return this.getLatest().__target}setTarget(e){this.getWritable().__target=e}getRel(){return this.getLatest().__rel}setRel(e){this.getWritable().__rel=e}getTitle(){return this.getLatest().__title}setTitle(e){this.getWritable().__title=e}insertNewAfter(e,t=!0){const r=go(this.__url,{rel:this.__rel,target:this.__target,title:this.__title});return this.insertAfter(r,t),r}canInsertTextBefore(){return!1}canInsertTextAfter(){return!1}canBeEmpty(){return!1}isInline(){return!0}extractWithChild(e,t,r){if(!M(t))return!1;const s=t.anchor.getNode(),o=t.focus.getNode();return this.isParentOf(s)&&this.isParentOf(o)&&t.getTextContent().length>0}isEmailURI(){return this.__url.startsWith("mailto:")}isWebSiteURI(){return this.__url.startsWith("https://")||this.__url.startsWith("http://")}};function X_(n){let e=null;if(sb(n)){const t=n.textContent;(t!==null&&t!==""||n.children.length>0)&&(e=go(n.getAttribute("href")||"",{rel:n.getAttribute("rel"),target:n.getAttribute("target"),title:n.getAttribute("title")}))}return{node:e}}function go(n,e){return Me(new Os(n,e))}function it(n){return n instanceof Os}let sl=class wC extends Os{constructor(e,t={},r){super(e,t,r),this.__isUnlinked=t.isUnlinked!==void 0&&t.isUnlinked!==null&&t.isUnlinked}static getType(){return"autolink"}static clone(e){return new wC(e.__url,{isUnlinked:e.__isUnlinked,rel:e.__rel,target:e.__target,title:e.__title},e.__key)}getIsUnlinked(){return this.__isUnlinked}setIsUnlinked(e){const t=this.getWritable();return t.__isUnlinked=e,t}createDOM(e){return this.__isUnlinked?document.createElement("span"):super.createDOM(e)}updateDOM(e,t,r){return super.updateDOM(e,t,r)||e.__isUnlinked!==this.__isUnlinked}static importJSON(e){const t=Ud(e.url,{isUnlinked:e.isUnlinked,rel:e.rel,target:e.target,title:e.title});return t.setFormat(e.format),t.setIndent(e.indent),t.setDirection(e.direction),t}static importDOM(){return null}exportJSON(){return{...super.exportJSON(),isUnlinked:this.__isUnlinked,type:"autolink",version:1}}insertNewAfter(e,t=!0){const r=this.getParentOrThrow().insertNewAfter(e,t);if(O(r)){const s=Ud(this.__url,{isUnlinked:this.__isUnlinked,rel:this.__rel,target:this.__target,title:this.__title});return r.append(s),s}return null}};function Ud(n,e){return Me(new sl(n,e))}function Gs(n){return n instanceof sl}const po=ze();function Du(n,e={}){const{target:t,title:r}=e,s=e.rel===void 0?"noreferrer":e.rel,o=R();if(!M(o))return;const i=o.extract();if(n===null)i.forEach(l=>{const a=ae(l,c=>!Gs(c)&&it(c));if(a){const c=a.getChildren();for(let u=0;u<c.length;u++)a.insertBefore(c[u]);a.remove()}});else{if(i.length===1){const c=function(u,d){let f=u;for(;f!==null&&f.getParent()!==null&&!d(f);)f=f.getParentOrThrow();return d(f)?f:null}(i[0],it);if(c!==null)return c.setURL(n),t!==void 0&&c.setTarget(t),s!==null&&c.setRel(s),void(r!==void 0&&c.setTitle(r))}let l=null,a=null;i.forEach(c=>{const u=c.getParent();if(u!==a&&u!==null&&(!O(c)||c.isInline())){if(it(u))return a=u,u.setURL(n),t!==void 0&&u.setTarget(t),s!==null&&a.setRel(s),void(r!==void 0&&a.setTitle(r));if(u.is(l)||(l=u,a=go(n,{rel:s,target:t,title:r}),it(u)?c.getPreviousSibling()===null?u.insertBefore(a):u.insertAfter(a):c.insertBefore(a)),it(c)){if(c.is(a))return;if(a!==null){const d=c.getChildren();for(let f=0;f<d.length;f++)a.append(d[f])}c.remove()}else a!==null&&a.append(c)}})}}function _c({newTab:n=!0,disabled:e=!1}){const[t]=ie();return x.useEffect(()=>{const r=o=>{const i=o.target;if(!(i instanceof Node))return;const l=Yi(i);if(l===null)return;let a=null,c=null;if(l.update(()=>{const f=he(i);if(f!==null){const g=ae(f,O);if(!e)if(it(g))a=g.sanitizeUrl(g.getURL()),c=g.getTarget();else{const h=function(m,A){let b=m;for(;b!=null;){if(A(b))return b;b=b.parentNode}return null}(i,sb);h!==null&&(a=h.href,c=h.target)}}}),a===null||a==="")return;const u=t.getEditorState().read(R);if(M(u)&&!u.isCollapsed())return void o.preventDefault();const d=o.type==="auxclick"&&o.button===1;window.open(a,n||d||o.metaKey||o.ctrlKey||c==="_blank"?"_blank":"_self"),o.preventDefault()},s=o=>{o.button===1&&r(o)};return t.registerRootListener((o,i)=>{i!==null&&(i.removeEventListener("click",r),i.removeEventListener("mouseup",s)),o!==null&&(o.addEventListener("click",r),o.addEventListener("mouseup",s))})},[t,n,e]),null}function Kd(n,e){return Kd=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,r){return t.__proto__=r,t},Kd(n,e)}var Am={error:null},Q_=function(n){var e,t;function r(){for(var o,i=arguments.length,l=new Array(i),a=0;a<i;a++)l[a]=arguments[a];return(o=n.call.apply(n,[this].concat(l))||this).state=Am,o.resetErrorBoundary=function(){for(var c,u=arguments.length,d=new Array(u),f=0;f<u;f++)d[f]=arguments[f];o.props.onReset==null||(c=o.props).onReset.apply(c,d),o.reset()},o}t=n,(e=r).prototype=Object.create(t.prototype),e.prototype.constructor=e,Kd(e,t),r.getDerivedStateFromError=function(o){return{error:o}};var s=r.prototype;return s.reset=function(){this.setState(Am)},s.componentDidCatch=function(o,i){var l,a;(l=(a=this.props).onError)==null||l.call(a,o,i)},s.componentDidUpdate=function(o,i){var l,a,c,u,d=this.state.error,f=this.props.resetKeys;d!==null&&i.error!==null&&((c=o.resetKeys)===void 0&&(c=[]),(u=f)===void 0&&(u=[]),c.length!==u.length||c.some(function(g,h){return!Object.is(g,u[h])}))&&((l=(a=this.props).onResetKeysChange)==null||l.call(a,o.resetKeys,f),this.reset())},s.render=function(){var o=this.state.error,i=this.props,l=i.fallbackRender,a=i.FallbackComponent,c=i.fallback;if(o!==null){var u={error:o,resetErrorBoundary:this.resetErrorBoundary};if(Yl.isValidElement(c))return c;if(typeof l=="function")return l(u);if(a)return Yl.createElement(a,u);throw new Error("react-error-boundary requires either a fallback, fallbackRender, or FallbackComponent prop")}return this.props.children},r}(Yl.Component);function ol({children:n,onError:e}){return p.jsx(Q_,{fallback:p.jsx("div",{style:{border:"1px solid #f00",color:"#f00",padding:"8px"},children:"An error was thrown."}),onError:e,children:n})}function ym(n,e){return n.getEditorState().read(()=>{const t=ue(e);return t!==null&&t.isSelected()})}function Tc(n){const[e]=ie(),[t,r]=x.useState(()=>ym(e,n));return x.useEffect(()=>{let s=!0;const o=e.registerUpdateListener(()=>{s&&r(ym(e,n))});return()=>{s=!1,o()}},[e,n]),[t,x.useCallback(s=>{e.update(()=>{let o=R();st(o)||(o=kd(),Ie(o)),st(o)&&(s?o.add(n):o.delete(n))})},[e,n]),x.useCallback(()=>{e.update(()=>{const s=R();st(s)&&s.clear()})},[e])]}const CC=ze();function q_({nodeKey:n}){const[e]=ie(),[t,r,s]=Tc(n),o=x.useCallback(i=>{const l=R();return t&&st(l)&&(i.preventDefault(),e.update(()=>{l.getNodes().forEach(a=>{Mh(a)&&a.remove()})})),!1},[e,t]);return x.useEffect(()=>ve(e.registerCommand(Ds,i=>{const l=e.getElementByKey(n);return i.target===l&&(i.shiftKey||s(),r(!t),!0)},le),e.registerCommand(Zr,o,le),e.registerCommand(pr,o,le)),[s,e,t,n,o,r]),x.useEffect(()=>{const i=e.getElementByKey(n),l="selected";i!==null&&(t?_e(i,l):Gn(i,l))},[e,t,n]),null}let il=class vC extends qr{static getType(){return"horizontalrule"}static clone(e){return new vC(e.__key)}static importJSON(e){return ll()}static importDOM(){return{hr:()=>({conversion:$_,priority:0})}}exportJSON(){return{type:"horizontalrule",version:1}}exportDOM(){return{element:document.createElement("hr")}}createDOM(e){const t=document.createElement("hr");return _e(t,e.theme.hr),t}getTextContent(){return`
15
- `}isInline(){return!1}updateDOM(){return!1}decorate(){return p.jsx(q_,{nodeKey:this.__key})}};function $_(){return{node:ll()}}function ll(){return Me(new il)}function Mh(n){return n instanceof il}function Dc(){const[n]=ie();return x.useEffect(()=>n.registerCommand(CC,e=>{const t=R();if(!M(t))return!1;if(t.focus.getNode()!==null){const r=ll();zb(r)}return!0},pe),[n]),null}const eT=typeof window<"u"&&window.document!==void 0&&window.document.createElement!==void 0?x.useLayoutEffect:x.useEffect;function tT(n){return{initialValueFn:()=>n.isEditable(),subscribe:e=>n.registerEditableListener(e)}}function xC(){return function(n){const[e]=ie(),t=x.useMemo(()=>n(e),[e,n]),[r,s]=x.useState(()=>t.initialValueFn()),o=x.useRef(r);return eT(()=>{const{initialValueFn:i,subscribe:l}=t,a=i();return o.current!==a&&(o.current=a,s(a)),l(c=>{o.current=c,s(c)})},[t,n]),r}(tT)}function nT(){return fe().getTextContent()}function rT(n,e=!0){if(n)return!1;let t=nT();return e&&(t=t.trim()),t===""}function sT(n){if(!rT(n,!1))return!1;const e=fe().getChildren(),t=e.length;if(t>1)return!1;for(let r=0;r<t;r++){const s=e[r];if(Se(s))return!1;if(O(s)){if(!at(s)||s.__indent!==0)return!1;const o=s.getChildren(),i=o.length;for(let l=0;l<i;l++){const a=o[r];if(!W(a))return!1}}}return!0}function SC(n){return()=>sT(n)}function oT(n){return n&&n.__esModule&&Object.prototype.hasOwnProperty.call(n,"default")?n.default:n}var iT=oT(function(n){const e=new URLSearchParams;e.append("code",n);for(let t=1;t<arguments.length;t++)e.append("v",arguments[t]);throw Error(`Minified Lexical error #${n}; visit https://lexical.dev/docs/error?${e} for the full message or use the non-minified dev environment for full errors and additional helpful warnings.`)});function lT(n,e,t,r){const s=i=>i instanceof t,o=i=>{const l=Fe(i.getTextContent());l.setFormat(i.getFormat()),i.replace(l)};return[n.registerNodeTransform(pt,i=>{if(!i.isSimpleText())return;let l,a=i.getPreviousSibling(),c=i.getTextContent(),u=i;if(W(a)){const f=a.getTextContent(),g=e(f+c);if(s(a)){if(g===null||(h=>h.getLatest().__mode)(a)!==0)return void o(a);{const h=g.end-f.length;if(h>0){const m=f+c.slice(0,h);if(a.select(),a.setTextContent(m),h===c.length)i.remove();else{const A=c.slice(h);i.setTextContent(A)}return}}}else if(g===null||g.start<f.length)return}let d=0;for(;;){l=e(c);let f,g=l===null?"":c.slice(l.end);if(c=g,g===""){const m=u.getNextSibling();if(W(m)){g=u.getTextContent()+m.getTextContent();const A=e(g);if(A===null)return void(s(m)?o(m):m.markDirty());if(A.start!==0)return}}if(l===null)return;if(l.start===0&&W(a)&&a.isTextEntity()){d+=l.end;continue}l.start===0?[f,u]=u.splitText(l.end):[,f,u]=u.splitText(l.start+d,l.end+d),f===void 0&&iT(165,"nodeToReplace");const h=r(f);if(h.setFormat(f.getFormat()),f.replace(h),u==null)return;d=0,a=h}}),n.registerNodeTransform(t,i=>{const l=i.getTextContent(),a=e(l);if(a===null||a.start!==0)return void o(i);if(l.length>a.end)return void i.splitText(a.end);const c=i.getPreviousSibling();W(c)&&c.isTextEntity()&&(o(c),o(i));const u=i.getNextSibling();W(u)&&u.isTextEntity()&&(o(u),s(i)&&o(i))})]}function aT(n){const e=window.location.origin,t=r=>{if(r.origin!==e)return;const s=n.getRootElement();if(document.activeElement!==s)return;const o=r.data;if(typeof o=="string"){let i;try{i=JSON.parse(o)}catch{return}if(i&&i.protocol==="nuanria_messaging"&&i.type==="request"){const l=i.payload;if(l&&l.functionId==="makeChanges"){const a=l.args;if(a){const[c,u,d,f,g,h]=a;n.update(()=>{const m=R();if(M(m)){const A=m.anchor;let b=A.getNode(),y=0,w=0;if(W(b)&&c>=0&&u>=0&&(y=c,w=c+u,m.setTextNodeRange(b,y,b,w)),y===w&&d===""||(m.insertRawText(d),b=A.getNode()),W(b)){y=f,w=f+g;const v=b.getTextContentSize();y=y>v?v:y,w=w>v?v:w,m.setTextNodeRange(b,y,b,w)}r.stopImmediatePropagation()}})}}}}};return window.addEventListener("message",t,!0),()=>{window.removeEventListener("message",t,!0)}}function cT(n){return n&&n.__esModule&&Object.prototype.hasOwnProperty.call(n,"default")?n.default:n}var Oa=cT(function(n){const e=new URLSearchParams;e.append("code",n);for(let t=1;t<arguments.length;t++)e.append("v",arguments[t]);throw Error(`Minified Lexical error #${n}; visit https://lexical.dev/docs/error?${e} for the full message or use the non-minified dev environment for full errors and additional helpful warnings.`)});function uT(n,e=R()){return e==null&&Oa(166),M(e)&&e.isCollapsed()||e.getNodes().length===0?"":Ed(n,e)}function dT(n,e=R()){return e==null&&Oa(166),M(e)&&e.isCollapsed()||e.getNodes().length===0?null:JSON.stringify(fT(n,e))}function bm(n,e,t){const r=n.getData("application/x-lexical-editor");if(r)try{const i=JSON.parse(r);if(i.namespace===t._config.namespace&&Array.isArray(i.nodes))return wm(t,hT(i.nodes),e)}catch{}const s=n.getData("text/html");if(s)try{const i=new DOMParser().parseFromString(function(l){return window.trustedTypes&&window.trustedTypes.createPolicy?window.trustedTypes.createPolicy("lexical",{createHTML:a=>a}).createHTML(l):l}(s),"text/html");return wm(t,bc(t,i),e)}catch{}const o=n.getData("text/plain")||n.getData("text/uri-list");if(o!=null)if(M(e)){const i=o.split(/(\r?\n|\t)/);i[i.length-1]===""&&i.pop();for(let l=0;l<i.length;l++){const a=R();if(M(a)){const c=i[l];c===`
16
- `||c===`\r
17
- `?a.insertParagraph():c===" "?a.insertNodes([qt()]):a.insertText(c)}}}else e.insertRawText(o)}function wm(n,e,t){n.dispatchCommand(By,{nodes:e,selection:t})||t.insertNodes(e)}function kC(n,e,t,r=[]){let s=e===null||t.isSelected(e);const o=O(t)&&t.excludeFromCopy("html");let i=t;if(e!==null){let c=Xf(t);c=W(c)&&e!==null?jb(e,c):c,i=c}const l=O(i)?i.getChildren():[],a=function(c){const u=c.exportJSON(),d=c.constructor;if(u.type!==d.getType()&&Oa(58,d.name),O(c)){const f=u.children;Array.isArray(f)||Oa(59,d.name)}return u}(i);if(W(i)){const c=i.__text;c.length>0?a.text=c:s=!1}for(let c=0;c<l.length;c++){const u=l[c],d=kC(n,e,u,a.children);!s&&O(t)&&d&&t.extractWithChild(u,e,"clone")&&(s=!0)}if(s&&!o)r.push(a);else if(Array.isArray(a.children))for(let c=0;c<a.children.length;c++){const u=a.children[c];r.push(u)}return s}function fT(n,e){const t=[],r=fe().getChildren();for(let s=0;s<r.length;s++)kC(n,e,r[s],t);return{namespace:n._config.namespace,nodes:t}}function hT(n){const e=[];for(let t=0;t<n.length;t++){const r=n[t],s=I0(r);W(s)&&P0(s),e.push(s)}return e}let Ws=null;async function Hd(n,e,t){if(Ws!==null)return!1;if(e!==null)return new Promise((a,c)=>{n.update(()=>{a(Cm(n,e,t))})});const r=n.getRootElement(),s=n._window==null?window.document:n._window.document,o=nn(n._window);if(r===null||o===null)return!1;const i=s.createElement("span");i.style.cssText="position: fixed; top: -1000px;",i.append(s.createTextNode("#")),r.append(i);const l=new Range;return l.setStart(i,0),l.setEnd(i,1),o.removeAllRanges(),o.addRange(l),new Promise((a,c)=>{const u=n.registerCommand(Wi,d=>(rr(d,ClipboardEvent)&&(u(),Ws!==null&&(window.clearTimeout(Ws),Ws=null),a(Cm(n,d,t))),!0),dt);Ws=window.setTimeout(()=>{u(),Ws=null,a(!1)},50),s.execCommand("copy"),i.remove()})}function Cm(n,e,t){if(t===void 0){const s=nn(n._window);if(!s)return!1;const o=s.anchorNode,i=s.focusNode;if(o!==null&&i!==null&&!Hi(n,o,i))return!1;const l=R();if(l===null)return!1;t=Oh(l)}e.preventDefault();const r=e.clipboardData;return r!==null&&(pT(r,t),!0)}const gT=[["text/html",uT],["application/x-lexical-editor",dT]];function Oh(n=R()){const e={"text/plain":n?n.getTextContent():""};if(n){const t=cc();for(const[r,s]of gT){const o=s(t,n);o!==null&&(e[r]=o)}}return e}function pT(n,e){for(const t in e){const r=e[t];r!==void 0&&n.setData(t,r)}}function vm(n,e){if(document.caretRangeFromPoint!==void 0){const t=document.caretRangeFromPoint(n,e);return t===null?null:{node:t.startContainer,offset:t.startOffset}}if(document.caretPositionFromPoint!=="undefined"){const t=document.caretPositionFromPoint(n,e);return t===null?null:{node:t.offsetNode,offset:t.offset}}return null}const _o=typeof window<"u"&&window.document!==void 0&&window.document.createElement!==void 0,mT=_o&&"documentMode"in document?document.documentMode:null,AT=!(!_o||!("InputEvent"in window)||mT)&&"getTargetRanges"in new window.InputEvent("input"),yT=_o&&/Version\/[\d.]+.*Safari/.test(navigator.userAgent),xm=_o&&/iPad|iPhone|iPod/.test(navigator.userAgent)&&!window.MSStream,bT=_o&&/^(?=.*Chrome).*/i.test(navigator.userAgent),wT=_o&&/AppleWebKit\/[\d.]+/.test(navigator.userAgent)&&!bT,Sm=ze();let Nc=class EC extends De{static getType(){return"quote"}static clone(e){return new EC(e.__key)}constructor(e){super(e)}createDOM(e){const t=document.createElement("blockquote");return _e(t,e.theme.quote),t}updateDOM(e,t){return!1}static importDOM(){return{blockquote:e=>({conversion:CT,priority:0})}}exportDOM(e){const{element:t}=super.exportDOM(e);if(t&&lt(t)){this.isEmpty()&&t.append(document.createElement("br"));const r=this.getFormatType();t.style.textAlign=r;const s=this.getDirection();s&&(t.dir=s)}return{element:t}}static importJSON(e){const t=Ic();return t.setFormat(e.format),t.setIndent(e.indent),t.setDirection(e.direction),t}exportJSON(){return{...super.exportJSON(),type:"quote"}}insertNewAfter(e,t){const r=re(),s=this.getDirection();return r.setDirection(s),this.insertAfter(r,t),r}collapseAtStart(){const e=re();return this.getChildren().forEach(t=>e.append(t)),this.replace(e),!0}canMergeWhenEmpty(){return!0}};function Ic(){return Me(new Nc)}function Ei(n){return n instanceof Nc}let al=class _C extends De{static getType(){return"heading"}static clone(e){return new _C(e.__tag,e.__key)}constructor(e,t){super(t),this.__tag=e}getTag(){return this.__tag}createDOM(e){const t=this.__tag,r=document.createElement(t),s=e.theme.heading;if(s!==void 0){const o=s[t];_e(r,o)}return r}updateDOM(e,t){return!1}static importDOM(){return{h1:e=>({conversion:Us,priority:0}),h2:e=>({conversion:Us,priority:0}),h3:e=>({conversion:Us,priority:0}),h4:e=>({conversion:Us,priority:0}),h5:e=>({conversion:Us,priority:0}),h6:e=>({conversion:Us,priority:0}),p:e=>{const t=e.firstChild;return t!==null&&km(t)?{conversion:()=>({node:null}),priority:3}:null},span:e=>km(e)?{conversion:t=>({node:Nr("h1")}),priority:3}:null}}exportDOM(e){const{element:t}=super.exportDOM(e);if(t&&lt(t)){this.isEmpty()&&t.append(document.createElement("br"));const r=this.getFormatType();t.style.textAlign=r;const s=this.getDirection();s&&(t.dir=s)}return{element:t}}static importJSON(e){const t=Nr(e.tag);return t.setFormat(e.format),t.setIndent(e.indent),t.setDirection(e.direction),t}exportJSON(){return{...super.exportJSON(),tag:this.getTag(),type:"heading",version:1}}insertNewAfter(e,t=!0){const r=e?e.anchor.offset:0,s=this.getLastDescendant(),o=!s||e&&e.anchor.key===s.getKey()&&r===s.getTextContentSize()||!e?re():Nr(this.getTag()),i=this.getDirection();if(o.setDirection(i),this.insertAfter(o,t),r===0&&!this.isEmpty()&&e){const l=re();l.select(),this.replace(l,!0)}return o}collapseAtStart(){const e=this.isEmpty()?re():Nr(this.getTag());return this.getChildren().forEach(t=>e.append(t)),this.replace(e),!0}extractWithChild(){return!0}};function km(n){return n.nodeName.toLowerCase()==="span"&&n.style.fontSize==="26pt"}function Us(n){const e=n.nodeName.toLowerCase();let t=null;return e!=="h1"&&e!=="h2"&&e!=="h3"&&e!=="h4"&&e!=="h5"&&e!=="h6"||(t=Nr(e),n.style!==null&&(Qf(n,t),t.setFormat(n.style.textAlign))),{node:t}}function CT(n){const e=Ic();return n.style!==null&&(e.setFormat(n.style.textAlign),Qf(n,e)),{node:e}}function Nr(n){return Me(new al(n))}function or(n){return n instanceof al}function qs(n){let e=null;if(rr(n,DragEvent)?e=n.dataTransfer:rr(n,ClipboardEvent)&&(e=n.clipboardData),e===null)return[!1,[],!1];const t=e.types,r=t.includes("Files"),s=t.includes("text/html")||t.includes("text/plain");return[r,Array.from(e.files),s]}function Em(n){const e=R();if(!M(e))return!1;const t=new Set,r=e.getNodes();for(let s=0;s<r.length;s++){const o=r[s],i=o.getKey();if(t.has(i))continue;const l=ae(o,c=>O(c)&&!c.isInline());if(l===null)continue;const a=l.getKey();l.canIndent()&&!t.has(a)&&(t.add(a),n(l))}return t.size>0}function Tl(n){const e=he(n);return Se(e)}function vT(n){return ve(n.registerCommand(Ds,e=>{const t=R();return!!st(t)&&(t.clear(),!0)},0),n.registerCommand(jn,e=>{const t=R();return!!M(t)&&(t.deleteCharacter(e),!0)},pe),n.registerCommand(lo,e=>{const t=R();return!!M(t)&&(t.deleteWord(e),!0)},pe),n.registerCommand(hs,e=>{const t=R();return!!M(t)&&(t.deleteLine(e),!0)},pe),n.registerCommand(ls,e=>{const t=R();if(typeof e=="string")t!==null&&t.insertText(e);else{if(t===null)return!1;const r=e.dataTransfer;if(r!=null)bm(r,t,n);else if(M(t)){const s=e.data;return s&&t.insertText(s),!0}}return!0},pe),n.registerCommand(ld,()=>{const e=R();return!!M(e)&&(e.removeText(),!0)},pe),n.registerCommand(Ue,e=>{const t=R();return!!M(t)&&(t.formatText(e),!0)},pe),n.registerCommand($a,e=>{const t=R();if(!M(t)&&!st(t))return!1;const r=t.getNodes();for(const s of r){const o=ae(s,i=>O(i)&&!i.isInline());o!==null&&o.setFormat(e)}return!0},pe),n.registerCommand(to,e=>{const t=R();return!!M(t)&&(t.insertLineBreak(e),!0)},pe),n.registerCommand(cr,()=>{const e=R();return!!M(e)&&(e.insertParagraph(),!0)},pe),n.registerCommand(oa,()=>(Xi([qt()]),!0),pe),n.registerCommand(Pn,()=>Em(e=>{const t=e.getIndent();e.setIndent(t+1)}),pe),n.registerCommand(Er,()=>Em(e=>{const t=e.getIndent();t>0&&e.setIndent(t-1)}),pe),n.registerCommand(zn,e=>{const t=R();if(st(t)&&!Tl(e.target)){const r=t.getNodes();if(r.length>0)return r[0].selectPrevious(),!0}else if(M(t)){const r=gi(t.focus,!0);if(!e.shiftKey&&Se(r)&&!r.isIsolated()&&!r.isInline())return r.selectPrevious(),e.preventDefault(),!0}return!1},pe),n.registerCommand(Rr,e=>{const t=R();if(st(t)){const r=t.getNodes();if(r.length>0)return r[0].selectNext(0,0),!0}else if(M(t)){if(function(s){const o=s.focus;return o.key==="root"&&o.offset===fe().getChildrenSize()}(t))return e.preventDefault(),!0;const r=gi(t.focus,!1);if(!e.shiftKey&&Se(r)&&!r.isIsolated()&&!r.isInline())return r.selectNext(),e.preventDefault(),!0}return!1},pe),n.registerCommand(qa,e=>{const t=R();if(st(t)){const r=t.getNodes();if(r.length>0)return e.preventDefault(),r[0].selectPrevious(),!0}if(!M(t))return!1;if(Tp(t,!0)){const r=e.shiftKey;return e.preventDefault(),Dp(t,r,!0),!0}return!1},pe),n.registerCommand(Qa,e=>{const t=R();if(st(t)&&!Tl(e.target)){const s=t.getNodes();if(s.length>0)return e.preventDefault(),s[0].selectNext(0,0),!0}if(!M(t))return!1;const r=e.shiftKey;return!!Tp(t,!1)&&(e.preventDefault(),Dp(t,r,!1),!0)},pe),n.registerCommand(pr,e=>{if(Tl(e.target))return!1;const t=R();if(!M(t))return!1;const{anchor:r}=t,s=r.getNode();return t.isCollapsed()&&r.offset===0&&!_t(s)&&vo(s).getIndent()>0?(e.preventDefault(),n.dispatchCommand(Er,void 0)):(!xm||navigator.language!=="ko-KR")&&(e.preventDefault(),n.dispatchCommand(jn,!0))},pe),n.registerCommand(Zr,e=>{if(Tl(e.target))return!1;const t=R();return!!M(t)&&(e.preventDefault(),n.dispatchCommand(jn,!1))},pe),n.registerCommand(gs,e=>{const t=R();if(!M(t))return!1;if(e!==null){if((xm||yT||wT)&&AT)return!1;if(e.preventDefault(),e.shiftKey)return n.dispatchCommand(to,!1)}return n.dispatchCommand(cr,void 0)},pe),n.registerCommand(zi,()=>{const e=R();return!!M(e)&&(n.blur(),!0)},pe),n.registerCommand(If,e=>{const[,t]=qs(e);if(t.length>0){const s=vm(e.clientX,e.clientY);if(s!==null){const{offset:o,node:i}=s,l=he(i);if(l!==null){const a=Ji();if(W(l))a.anchor.set(l.getKey(),o,"text"),a.focus.set(l.getKey(),o,"text");else{const u=l.getParentOrThrow().getKey(),d=l.getIndexWithinParent()+1;a.anchor.set(u,d,"element"),a.focus.set(u,d,"element")}const c=sc(a);Ie(c)}n.dispatchCommand(Sm,t)}return e.preventDefault(),!0}const r=R();return!!M(r)},pe),n.registerCommand(Lf,e=>{const[t]=qs(e),r=R();return!(t&&!M(r))},pe),n.registerCommand(Mf,e=>{const[t]=qs(e),r=R();if(t&&!M(r))return!1;const s=vm(e.clientX,e.clientY);if(s!==null){const o=he(s.node);Se(o)&&e.preventDefault()}return!0},pe),n.registerCommand(cd,()=>(nb(),!0),pe),n.registerCommand(Wi,e=>(Hd(n,rr(e,ClipboardEvent)?e:null),!0),pe),n.registerCommand(ec,e=>(async function(t,r){await Hd(r,rr(t,ClipboardEvent)?t:null),r.update(()=>{const s=R();M(s)?s.removeText():st(s)&&s.getNodes().forEach(o=>o.remove())})}(e,n),!0),pe),n.registerCommand(Ns,e=>{const[,t,r]=qs(e);return t.length>0&&!r?(n.dispatchCommand(Sm,t),!0):Kf(e.target)?!1:R()!==null&&(function(s,o){s.preventDefault(),o.update(()=>{const i=R(),l=rr(s,InputEvent)||rr(s,KeyboardEvent)?null:s.clipboardData;l!=null&&i!==null&&bm(l,i,o)},{tag:"paste"})}(e,n),!0)},pe))}const Yd=typeof window<"u"&&window.document!==void 0&&window.document.createElement!==void 0?x.useLayoutEffect:x.useEffect;function _m(n){return n.getEditorState().read(SC(n.isComposing()))}function cl({contentEditable:n,placeholder:e=null,ErrorBoundary:t}){const[r]=ie(),s=function(o,i){const[l,a]=x.useState(()=>o.getDecorators());return Yd(()=>o.registerDecoratorListener(c=>{un.flushSync(()=>{a(c)})}),[o]),x.useEffect(()=>{a(o.getDecorators())},[o]),x.useMemo(()=>{const c=[],u=Object.keys(l);for(let d=0;d<u.length;d++){const f=u[d],g=p.jsx(i,{onError:m=>o._onError(m),children:p.jsx(x.Suspense,{fallback:null,children:l[f]})}),h=o.getElementByKey(f);h!==null&&c.push(un.createPortal(g,h,f))}return c},[i,l,o])}(r,t);return function(o){Yd(()=>ve(vT(o),aT(o)),[o])}(r),p.jsxs(p.Fragment,{children:[n,p.jsx(xT,{content:e}),s]})}function xT({content:n}){const[e]=ie(),t=function(s){const[o,i]=x.useState(()=>_m(s));return Yd(()=>{function l(){const a=_m(s);i(a)}return l(),ve(s.registerUpdateListener(()=>{l()}),s.registerEditableListener(()=>{l()}))},[s]),o}(e),r=xC();return t?typeof n=="function"?n(r):n:null}const Tm=window.location.hostname,ST=Tm!=="playground.lexical.dev"&&Tm!=="lexical-playground.vercel.app",Vd={disableBeforeInput:!1,emptyEditor:ST,isAutocomplete:!1,isCharLimit:!1,isCharLimitUtf8:!1,isCollab:!1,isMaxLength:!1,isRichText:!0,measureTypingPerf:!1,shouldUseLexicalContextMenu:!1,showNestedEditorTreeView:!1,showTableOfContents:!1,showTreeView:!0,tableCellBackgroundColor:!0,tableCellMerge:!0},TC=x.createContext({setOption:(n,e)=>{},settings:Vd}),kT=({children:n})=>{const[e,t]=x.useState(Vd),r=x.useCallback((o,i)=>{t(l=>({...l,[o]:i})),Vd[o]===i?Dm(o,null):Dm(o,i)},[]),s=x.useMemo(()=>({setOption:r,settings:e}),[r,e]);return p.jsx(TC.Provider,{value:s,children:n})},To=()=>x.useContext(TC);function Dm(n,e){const t=new URL(window.location.href),r=new URLSearchParams(t.search);e!==null?r.has(n)?r.set(n,String(e)):r.append(n,String(e)):r.has(n)&&r.delete(n),t.search=r.toString(),window.history.pushState(null,"",t.toString())}function ET(n){return n&&n.__esModule&&Object.prototype.hasOwnProperty.call(n,"default")?n.default:n}var _T=ET(function(n){const e=new URLSearchParams;e.append("code",n);for(let t=1;t<arguments.length;t++)e.append("v",arguments[t]);throw Error(`Minified Lexical error #${n}; visit https://lexical.dev/docs/error?${e} for the full message or use the non-minified dev environment for full errors and additional helpful warnings.`)});function Nm(n,e=t=>t){return t=>{const r=n.exec(t);return r===null?null:{index:r.index,length:r[0].length,text:r[0],url:e(r[0])}}}function DC(n,e){for(let t=0;t<e.length;t++){const r=e[t](n);if(r)return r}return null}const TT=/[.,;\s]/;function Ra(n){return TT.test(n)}function NC(n){return Ra(n[n.length-1])}function Gd(n){return Ra(n[0])}function IC(n){let e=n.getPreviousSibling();return O(e)&&(e=e.getLastDescendant()),e===null||Ee(e)||W(e)&&NC(e.getTextContent())}function LC(n){let e=n.getNextSibling();return O(e)&&(e=e.getFirstDescendant()),e===null||Ee(e)||W(e)&&Gd(e.getTextContent())}function DT(n,e,t,r){return(n>0?Ra(t[n-1]):IC(r[0]))?e<t.length?Ra(t[e]):LC(r[r.length-1]):!1}function NT(n,e,t){const r=[],s=[],o=[];let i=0,l=0;const a=[...n];for(;a.length>0;){const c=a[0],u=c.getTextContent().length,d=l;l+u<=e?(r.push(c),i+=u):d>=t?o.push(c):s.push(c),l+=u,a.shift()}return[i,r,s,o]}function IT(n,e,t,r){const s=Ud(r.url,r.attributes);if(n.length===1){let o,i=n[0];e===0?[o,i]=i.splitText(t):[,o,i]=i.splitText(e,t);const l=Fe(r.text);return l.setFormat(o.getFormat()),l.setDetail(o.getDetail()),l.setStyle(o.getStyle()),s.append(l),o.replace(s),i}if(n.length>1){const o=n[0];let i,l=o.getTextContent().length;e===0?i=o:[,i]=o.splitText(e);const a=[];let c;for(let g=1;g<n.length;g++){const h=n[g],m=h.getTextContent().length,A=l;if(A<t)if(l+m<=t)a.push(h);else{const[b,y]=h.splitText(t-A);a.push(b),c=y}l+=m}const u=R(),d=u?u.getNodes().find(W):void 0,f=Fe(i.getTextContent());return f.setFormat(i.getFormat()),f.setDetail(i.getDetail()),f.setStyle(i.getStyle()),s.append(f,...a),d&&d===i&&(M(u)?f.select(u.anchor.offset,u.focus.offset):st(u)&&f.select(0,f.getTextContent().length)),i.replace(s),c}}function Nu(n,e,t){const r=n.getChildren(),s=r.length;for(let a=0;a<s;a++){const c=r[a];if(!W(c)||!c.isSimpleText())return $l(n),void t(null,n.getURL())}const o=n.getTextContent(),i=DC(o,e);if(i===null||i.text!==o||!IC(n)||!LC(n))return $l(n),void t(null,n.getURL());const l=n.getURL();if(l!==i.url&&(n.setURL(i.url),t(i.url,l)),i.attributes){const a=n.getRel();a!==i.attributes.rel&&(n.setRel(i.attributes.rel||null),t(i.attributes.rel||null,a));const c=n.getTarget();c!==i.attributes.target&&(n.setTarget(i.attributes.target||null),t(i.attributes.target||null,c))}}function $l(n){const e=n.getChildren();for(let t=e.length-1;t>=0;t--)n.insertAfter(e[t]);return n.remove(),e.map(t=>t.getLatest())}function LT(n,e,t){x.useEffect(()=>{n.hasNodes([sl])||_T(77);const r=(s,o)=>{t&&t(s,o)};return ve(n.registerNodeTransform(pt,s=>{const o=s.getParentOrThrow(),i=s.getPreviousSibling();if(Gs(o)&&!o.getIsUnlinked())Nu(o,e,r);else if(!it(o)){if(s.isSimpleText()&&(Gd(s.getTextContent())||!Gs(i))){const l=function(a){const c=[a];let u=a.getNextSibling();for(;u!==null&&W(u)&&u.isSimpleText()&&(c.push(u),!/[\s]/.test(u.getTextContent()));)u=u.getNextSibling();return c}(s);(function(a,c,u){let d=[...a];const f=d.map(A=>A.getTextContent()).join("");let g,h=f,m=0;for(;(g=DC(h,c))&&g!==null;){const A=g.index,b=A+g.length;if(DT(m+A,m+b,f,d)){const[y,,w,v]=NT(d,m+A,m+b),S=IT(w,m+A-y,m+b-y,g);d=S?[S,...v]:v,u(g.url,null),m=0}else m+=b;h=h.substring(b)}})(l,e,r)}(function(l,a,c){const u=l.getPreviousSibling(),d=l.getNextSibling(),f=l.getTextContent();var g;!Gs(u)||u.getIsUnlinked()||Gd(f)&&(g=f,!(u.isEmailURI()?/^\.[a-zA-Z]{2,}/.test(g):/^\.[a-zA-Z0-9]{1,}/.test(g)))||(u.append(l),Nu(u,a,c),c(null,u.getURL())),!Gs(d)||d.getIsUnlinked()||NC(f)||($l(d),Nu(d,a,c),c(null,d.getURL()))})(s,e,r)}}),n.registerCommand(po,s=>{const o=R();return s!==null||!M(o)||o.extract().forEach(i=>{const l=i.getParent();if(Gs(l))return l.setIsUnlinked(!l.getIsUnlinked()),l.markDirty(),!0}),!1},le))},[n,e,t])}function MT({matchers:n,onChange:e}){const[t]=ie();return LT(t,n,e),null}const OT=/((https?:\/\/(www\.)?)|(www\.))[-a-zA-Z0-9@:%._+~#=]{1,256}\.[a-zA-Z0-9()]{1,6}\b([-a-zA-Z0-9()@:%_+.~#?&//=]*)/,RT=/(([^<>()[\]\\.,;:\s@"]+(\.[^<>()[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))/,jT=[Nm(OT,n=>n.startsWith("http")?n:`https://${n}`),Nm(RT,n=>`mailto:${n}`)];function Lc(){return p.jsx(MT,{matchers:jT})}function ce(n,e,...t){if(!n)throw new Error("Internal Lexical error: invariant() is meant to be replaced at compile time. There is no runtime version. Error: "+e)}function ja(...n){const e=[];for(const t of n)if(t&&typeof t=="string")for(const[r]of t.matchAll(/\S+/g))e.push(r);return e}const Kr={blockCursor:"dsd__theme__blockCursor",characterLimit:"dsd__theme__characterLimit",code:"dsd__theme__code",codeCollapsed:"dsd__theme__code_сollapsed",codeHighlight:{atrule:"dsd__theme__tokenAttr",attr:"dsd__theme__tokenAttr",boolean:"dsd__theme__tokenProperty",builtin:"dsd__theme__tokenSelector",cdata:"dsd__theme__tokenComment",char:"dsd__theme__tokenSelector",class:"dsd__theme__tokenFunction","class-name":"dsd__theme__tokenFunction",comment:"dsd__theme__tokenComment",constant:"dsd__theme__tokenProperty",deleted:"dsd__theme__tokenProperty",doctype:"dsd__theme__tokenComment",entity:"dsd__theme__tokenOperator",function:"dsd__theme__tokenFunction",important:"dsd__theme__tokenVariable",inserted:"dsd__theme__tokenSelector",keyword:"dsd__theme__tokenAttr",namespace:"dsd__theme__tokenVariable",number:"dsd__theme__tokenProperty",operator:"dsd__theme__tokenOperator",prolog:"dsd__theme__tokenComment",property:"dsd__theme__tokenProperty",punctuation:"dsd__theme__tokenPunctuation",regex:"dsd__theme__tokenVariable",selector:"dsd__theme__tokenSelector",string:"dsd__theme__tokenSelector",symbol:"dsd__theme__tokenProperty",tag:"dsd__theme__tokenProperty",url:"dsd__theme__tokenOperator",variable:"dsd__theme__tokenVariable"},embedBlock:{base:"dsd__theme__embedBlock",focus:"dsd__theme__embedBlockFocus"},hashtag:"dsd__theme__hashtag",heading:{h1:"dsd__theme__h1",h2:"dsd__theme__h2",h3:"dsd__theme__h3",h4:"dsd__theme__h4",h5:"dsd__theme__h5",h6:"dsd__theme__h6"},image:"editor-image",indent:"dsd__theme__indent",inlineImage:"inline-editor-image",layoutContainer:"dsd__theme__layoutContainer",layoutItem:"dsd__theme__layoutItem",layoutDivider:"dsd__theme__layoutDivider",calloutIcon:"dsd__theme__callout-icon",callout:"dsd__theme__callout-container",calloutWrapper:"dsd__theme__callout-wrapper",calloutContainer:"dsd__theme__callout-main-container",link:"dsd__theme__link",list:{checklist:"dsd__theme__checklist",listitem:"dsd__theme__listItem",listitemChecked:"dsd__theme__listItemChecked",listitemUnchecked:"dsd__theme__listItemUnchecked",nested:{listitem:"dsd__theme__nestedListItem"},olDepth:["dsd__theme__ol1","dsd__theme__ol2","dsd__theme__ol3","dsd__theme__ol4","dsd__theme__ol5"],ul:"dsd__theme__ul"},listitemIndeterminate:"dsd__theme__listIndeterminate",ltr:"dsd__theme__ltr",mark:"dsd__theme__mark",markOverlap:"dsd__theme__markOverlap",paragraph:"dsd__theme__paragraph",quote:"dsd__theme__quote",rtl:"dsd__theme__rtl",table:"dsd__theme__table",tableAddColumns:"dsd__theme__tableAddColumns",tableAddRows:"dsd__theme__tableAddRows",tableCell:"dsd__theme__tableCell",tableCellActionButton:"dsd__theme__tableCellActionButton",tableCellActionButtonContainer:"dsd__theme__tableCellActionButtonContainer",tableCellEditing:"dsd__theme__tableCellEditing",tableCellHeader:"dsd__theme__tableCellHeader",tableCellPrimarySelected:"dsd__theme__tableCellPrimarySelected",tableCellResizer:"dsd__theme__tableCellResizer",tableCellSelected:"dsd__theme__tableCellSelected",tableCellSortedIndicator:"dsd__theme__tableCellSortedIndicator",tableResizeRuler:"dsd__theme__tableCellResizeRuler",tableSelected:"dsd__theme__tableSelected",tableSelection:"dsd__theme__tableSelection",tableScrollableWrapper:"dsd__theme__table-scrollable-wrapper",text:{bold:"dsd__theme__textBold",code:"dsd__theme__textCode",italic:"dsd__theme__textItalic",strikethrough:"dsd__theme__textStrikethrough",subscript:"dsd__theme__textSubscript",superscript:"dsd__theme__textSuperscript",underline:"dsd__theme__textUnderline",underlineStrikethrough:"dsd__theme__textUnderlineStrikethrough"}},PT=n=>{const e={...Kr,text:{...Kr.text}};return n==="comment"&&e.text&&(delete e.text.strikethrough,delete e.text.underlineStrikethrough),e};function Zd(n){let e=1,t=n.getParent();for(;t!=null;){if(Re(t)){const r=t.getParent();if(we(r)){e++,t=r.getParent();continue}ce(!1,"A ListItemNode must have a ListNode for a parent.")}return e}return e}function Jd(n){let e=n.getParent();we(e)||ce(!1,"A ListItemNode must have a ListNode for a parent.");let t=e;for(;t!==null;)t=t.getParent(),we(t)&&(e=t);return e}function MC(n){let e=[];const t=n.getChildren().filter(Re);for(let r=0;r<t.length;r++){const s=t[r],o=s.getFirstChild();we(o)?e=e.concat(MC(o)):e.push(s)}return e}function On(n){return Re(n)&&we(n.getFirstChild())}function FT(n){let e=n;for(;e.getNextSibling()==null&&e.getPreviousSibling()==null;){const t=e.getParent();if(t==null||!(Re(e)||we(e)))break;e=t}e.remove()}function Im(n){return Kt().append(n)}function OC(n,e){return Re(n)&&(e.length===0||e.length===1&&n.is(e[0])&&n.getChildrenSize()===0)}function Xd(n,e){n.update(()=>{const t=R();if(t!==null){const r=t.getNodes();if(M(t)){const o=t.getStartEndPoints();ce(o!==null,"insertList: anchor should be defined");const[i]=o,l=i.getNode(),a=l.getParent();if(OC(l,r)){const c=Ot(e);if(At(a)){l.replace(c);const u=Kt();O(l)&&(u.setFormat(l.getFormatType()),u.setIndent(l.getIndent())),c.append(u)}else if(Re(l)){const u=l.getParentOrThrow();Cs(c,u.getChildren()),u.replace(c)}return}}const s=new Set;for(let o=0;o<r.length;o++){const i=r[o];if(O(i)&&i.isEmpty()&&!Re(i)&&!s.has(i.getKey())){Lm(i,e);continue}if(Zy(i)){let l=i.getParent();for(;l!=null;){const a=l.getKey();if(we(l)){if(!s.has(a)){const c=Ot(e);Cs(c,l.getChildren()),l.replace(c),s.add(a)}break}else{const c=l.getParent();if(At(c)&&!s.has(a)){s.add(a),Lm(l,e);break}l=c}}}}}})}function Cs(n,e){n.splice(n.getChildrenSize(),0,e)}function Lm(n,e){if(we(n))return n;const t=n.getPreviousSibling(),r=n.getNextSibling(),s=Kt();if(s.setFormat(n.getFormatType()),s.setIndent(n.getIndent()),Cs(s,n.getChildren()),we(t)&&e===t.getListType())return t.append(s),n.remove(),we(r)&&e===r.getListType()&&(Cs(t,r.getChildren()),r.remove()),t;if(we(r)&&e===r.getListType())return r.getFirstChildOrThrow().insertBefore(s),n.remove(),r;{const o=Ot(e);return o.append(s),n.replace(o),o}}function Rh(n,e){const t=n.getLastChild(),r=e.getFirstChild();t&&r&&On(t)&&On(r)&&(Rh(t.getFirstChild(),r.getFirstChild()),r.remove());const s=e.getChildren();s.length>0&&n.append(...s),e.remove()}function BT(n){n.update(()=>{const e=R();if(M(e)){const t=new Set,r=e.getNodes(),s=e.anchor.getNode();if(OC(s,r))t.add(Jd(s));else for(let o=0;o<r.length;o++){const i=r[o];if(Zy(i)){const l=Bb(i,xt);l!=null&&t.add(Jd(l))}}for(const o of t){let i=o;const l=MC(o);for(const a of l){const c=re();Cs(c,a.getChildren()),i.insertAfter(c),i=c,a.__key===e.anchor.key&&e.anchor.set(c.getKey(),0,"element"),a.__key===e.focus.key&&e.focus.set(c.getKey(),0,"element"),a.remove()}o.remove()}}})}function zT(n){const e=n.getListType()!=="check";let t=n.getStart();for(const r of n.getChildren())Re(r)&&(r.getValue()!==t&&r.setValue(t),e&&r.getLatest().__checked!=null&&r.setChecked(void 0),we(r.getFirstChild())||t++)}function WT(n){const e=n.getNextSibling();we(e)&&n.getListType()===e.getListType()&&Rh(n,e)}function UT(n){const e=new Set;if(On(n)||e.has(n.getKey()))return;const t=n.getParent(),r=n.getNextSibling(),s=n.getPreviousSibling();if(On(r)&&On(s)){const o=s.getFirstChild();if(we(o)){o.append(n);const i=r.getFirstChild();if(we(i)){const l=i.getChildren();Cs(o,l),r.remove(),e.add(r.getKey())}}}else if(On(r)){const o=r.getFirstChild();if(we(o)){const i=o.getFirstChild();i!==null&&i.insertBefore(n)}}else if(On(s)){const o=s.getFirstChild();we(o)&&o.append(n)}else if(we(t)){const o=Kt(),i=Ot(t.getListType());o.append(i),i.append(n),s?s.insertAfter(o):r?r.insertBefore(o):t.append(o)}}function KT(n){if(On(n))return;const e=n.getParent(),t=e?e.getParent():void 0,r=t?t.getParent():void 0;if(we(r)&&Re(t)&&we(e)){const s=e?e.getFirstChild():void 0,o=e?e.getLastChild():void 0;if(n.is(s))t.insertBefore(n),e.isEmpty()&&t.remove();else if(n.is(o))t.insertAfter(n),e.isEmpty()&&t.remove();else{const i=e.getListType(),l=Kt(),a=Ot(i);l.append(a),n.getPreviousSiblings().forEach(d=>a.append(d));const c=Kt(),u=Ot(i);c.append(u),Cs(u,n.getNextSiblings()),t.insertBefore(l),t.insertAfter(c),t.replace(n)}}}function HT(){const n=R();if(!M(n)||!n.isCollapsed())return!1;const e=n.anchor.getNode();if(!Re(e)||e.getChildrenSize()!==0)return!1;const t=Jd(e),r=e.getParent();ce(we(r),"A ListItemNode must have a ListNode for a parent.");const s=r.getParent();let o;if(At(s))o=re(),t.insertAfter(o);else if(Re(s))o=Kt(),s.insertAfter(o);else return!1;o.select();const i=e.getNextSiblings();if(i.length>0){const l=Ot(r.getListType());if(at(o))o.insertAfter(l);else{const a=Kt();a.append(l),o.insertAfter(a)}i.forEach(a=>{a.remove(),l.append(a)})}return FT(e),!0}class xt extends De{constructor(t,r,s,o,i){super(i);Z(this,"__value");Z(this,"__checked");Z(this,"__opened");Z(this,"__isIndeterminate");this.__value=t===void 0?1:t,this.__checked=r,this.__opened=s,this.__isIndeterminate=o}static getType(){return"listitem"}static clone(t){return new xt(t.__value,t.__checked,t.__opened,t.__isIndeterminate,t.__key)}createDOM(t){const r=document.createElement("li"),s=this.getParent();return we(s)&&s.getListType()==="check"&&Om(r,this,null),r.value=this.__value,Mm(r,t.theme,this),r}updateDOM(t,r,s){const o=this.getParent();return we(o)&&o.getListType()==="check"&&Om(r,this,t),r.value=this.__value,Mm(r,s.theme,this),!1}static transform(){return t=>{if(ce(Re(t),"node is not a ListItemNode"),t.__checked==null)return;const r=t.getParent();we(r)&&r.getListType()!=="check"&&t.getChecked()!=null&&t.setChecked(void 0)}}static importDOM(){return{li:()=>({conversion:YT,priority:0})}}static importJSON(t){const r=Kt();return r.setChecked(t.checked),r.setOpened(t.opened),r.setValue(t.value),r.setFormat(t.format),r.setDirection(t.direction),r}exportDOM(t){const r=this.createDOM(t._config);return r.style.textAlign=this.getFormatType(),{element:r}}exportJSON(){return{...super.exportJSON(),checked:this.getChecked(),type:"listitem",value:this.getValue(),opened:this.getOpened(),version:1}}append(...t){for(let r=0;r<t.length;r++){const s=t[r];if(O(s)&&this.canMergeWith(s)){const o=s.getChildren();this.append(...o),s.remove()}else super.append(s)}return this}replace(t,r){if(Re(t))return super.replace(t);this.setIndent(0);const s=this.getParentOrThrow();if(!we(s))return t;if(s.__first===this.getKey())s.insertBefore(t);else if(s.__last===this.getKey())s.insertAfter(t);else{const o=Ot(s.getListType());let i=this.getNextSibling();for(;i;){const l=i;i=i.getNextSibling(),o.append(l)}s.insertAfter(t),t.insertAfter(o)}return r&&(ce(O(t),"includeChildren should only be true for ElementNodes"),this.getChildren().forEach(o=>{t.append(o)})),this.remove(),s.getChildrenSize()===0&&s.remove(),t}insertAfter(t,r=!0){const s=this.getParentOrThrow();if(we(s)||ce(!1,"insertAfter: list node is not parent of list item node"),Re(t))return super.insertAfter(t,r);const o=this.getNextSiblings();if(s.insertAfter(t,r),o.length!==0){const i=Ot(s.getListType());o.forEach(l=>i.append(l)),t.insertAfter(i,r)}return t}remove(t){const r=this.getPreviousSibling(),s=this.getNextSibling();super.remove(t),r&&s&&On(r)&&On(s)&&(Rh(r.getFirstChild(),s.getFirstChild()),s.remove())}insertNewAfter(t,r=!0){const s=Kt(this.__checked==null?void 0:!1);return this.insertAfter(s,r),s}collapseAtStart(t){const r=re();this.getChildren().forEach(a=>r.append(a));const o=this.getParentOrThrow(),i=o.getParentOrThrow(),l=Re(i);if(o.getChildrenSize()===1)if(l)o.remove(),i.select();else{o.insertBefore(r),o.remove();const a=t.anchor,c=t.focus,u=r.getKey();a.type==="element"&&a.getNode().is(this)&&a.set(u,a.offset,"element"),c.type==="element"&&c.getNode().is(this)&&c.set(u,c.offset,"element")}else o.insertBefore(r),this.remove();return!0}getValue(){return this.getLatest().__value}setValue(t){const r=this.getWritable();r.__value=t}getChecked(){const t=this.getLatest();let r;const s=this.getParent();return we(s)&&(r=s.getListType()),r==="check"?!!t.__checked:void 0}getOpened(){const t=this.getLatest();let r;const s=this.getParent();return we(s)&&(r=s.getListType()),r==="check"?!!t.__opened:void 0}setChecked(t){const r=this.getWritable();r.__checked=t}setOpened(t){const r=this.getWritable();r.__opened=t}setIndeterminate(t){const r=this.getWritable();r.__isIndeterminate=t}toggleChecked(){this.setChecked(!this.__checked)}toggleOpen(){const t=!(this.__opened===!0||this.__opened===void 0);this.setOpened(t)}getIndent(){const t=this.getParent();if(t===null)return this.getLatest().__indent;let r=t.getParentOrThrow(),s=0;for(;Re(r);)r=r.getParentOrThrow().getParentOrThrow(),s++;return s}setIndent(t){ce(typeof t=="number","Invalid indent value."),t=Math.floor(t),ce(t>=0,"Indent value must be non-negative.");let r=this.getIndent();for(;r!==t;)r<t?(UT(this),r++):(KT(this),r--);return this}canInsertAfter(t){return Re(t)}canReplaceWith(t){return Re(t)}canMergeWith(t){return at(t)||Re(t)}extractWithChild(t,r){if(!M(r))return!1;const s=r.anchor.getNode(),o=r.focus.getNode();return this.isParentOf(s)&&this.isParentOf(o)&&this.getTextContent().length===r.getTextContent().length}isParentRequired(){return!0}createParentElementNode(){return Ot("bullet")}canMergeWhenEmpty(){return!0}}function Mm(n,e,t){let r=[],s=[];const o=e.list,i=o?o.listitem:void 0;let l;if(o&&o.nested&&(l=o.nested.listitem),i!==void 0&&r.push(...ja(i)),o){const a=t.getParent(),c=we(a)&&a.getListType()==="check",u=t.getChecked();(!c||u)&&s.push(o.listitemUnchecked),(!c||!u)&&s.push(o.listitemChecked),c&&r.push(u?o.listitemChecked:o.listitemUnchecked)}if(l!==void 0){const a=ja(l);t.getChildren().some(c=>we(c))?r.push(...a):s.push(...a)}t.__isIndeterminate?r=[...r,Kr.listitemIndeterminate]:s=[...s,Kr.listitemIndeterminate],s.length>0&&Gn(n,...s),r.length>0&&_e(n,...r)}function Om(n,e,t,r){we(e.getFirstChild())?(n.removeAttribute("role"),n.removeAttribute("tabIndex"),n.removeAttribute("aria-checked")):(n.setAttribute("role","checkbox"),n.setAttribute("tabIndex","-1"),(!t||e.__checked!==t.__checked)&&n.setAttribute("aria-checked",e.getChecked()?"true":"false"),e.__opened===!1?n.setAttribute("data-list","closed"):n.setAttribute("data-list","opened"))}function YT(n){if(n.classList.contains("task-list-item")){for(const l of n.children)if(l.tagName==="INPUT")return VT(l)}const t=n.getAttribute("aria-checked"),r=n.getAttribute("data-list"),s=t==="true"?!0:t==="false"?!1:void 0,o=!r||r==="opened",i=n.className.includes(Kr.listitemIndeterminate);return{node:Kt(s,o,i)}}function VT(n){if(!(n.getAttribute("type")==="checkbox"))return{node:null};const t=n.hasAttribute("checked");return{node:Kt(t,!1,!0)}}function Kt(n,e,t){return Me(new xt(void 0,n,e,t))}function Re(n){return n instanceof xt}class _n extends pt{constructor(e,t){super(e,t)}static getType(){return"extended-text"}static clone(e){return new _n(e.__text,e.__key)}static importDOM(){const e=pt.importDOM(),t=document.body.getAttribute("mode")?{code:()=>({conversion:wr(e==null?void 0:e.span),priority:1}),s:()=>({conversion:wr(e==null?void 0:e.span),priority:1})}:{code:()=>({conversion:wr(e==null?void 0:e.code),priority:1})};return{...e,...t,em:()=>({conversion:wr(e==null?void 0:e.em),priority:1}),span:()=>({conversion:wr(e==null?void 0:e.span),priority:1}),strong:()=>({conversion:wr(e==null?void 0:e.strong),priority:1}),sub:()=>({conversion:wr(e==null?void 0:e.sub),priority:1}),sup:()=>({conversion:wr(e==null?void 0:e.sup),priority:1})}}static importJSON(e){return pt.importJSON(e)}isSimpleText(){return(this.__type==="text"||this.__type==="extended-text")&&this.__mode===0}exportDOM(e){let{element:t}=super.exportDOM(e);return t instanceof HTMLElement&&t.setAttribute("lexical-element","true"),{element:t}}exportJSON(){return{...super.exportJSON(),type:"extended-text",version:1}}}function hr(n=""){return Me(new _n(n))}function Ht(n){return n instanceof _n}function wr(n){return e=>{const t=n==null?void 0:n(e);if(!t)return null;const r=t.conversion(e);if(!r)return r;const s=e.getAttribute("lexical-element")&&!document.body.getAttribute("mode"),o=s?e.style.backgroundColor:"",i=s?e.style.color:"",l=e.style.textDecoration;return{...r,forChild:(a,c)=>{const d=((r==null?void 0:r.forChild)??(f=>f))(a,c);if(Ht(d)){const f=[o?`background-color: ${o}`:null,i?`color: ${i}`:null,l?`text-decoration: ${l}`:null].filter(g=>g!=null).join("; ");if(f.length)return d.setStyle(f)}return d}}}}class fn extends De{constructor(t,r,s){super(s);Z(this,"__tag");Z(this,"__start");Z(this,"__listType");const o=Pm[t]||t;this.__listType=o,this.__tag=o==="number"?"ol":"ul",this.__start=r}static getType(){return"list"}static clone(t){const r=t.__listType||Pm[t.__tag];return new fn(r,t.__start,t.__key)}getTag(){return this.__tag}setListType(t){const r=this.getWritable();r.__listType=t,r.__tag=t==="number"?"ol":"ul"}getListType(){return this.__listType}getStart(){return this.__start}createDOM(t,r){const s=this.__tag,o=document.createElement(s);return this.__start!==1&&o.setAttribute("start",String(this.__start)),o.__lexicalListType=this.__listType,Rm(o,t.theme,this),o}updateDOM(t,r,s){return t.__tag!==this.__tag?!0:(Rm(r,s.theme,this),!1)}static transform(){return t=>{ce(we(t),"node is not a ListNode"),WT(t),zT(t)}}static importDOM(){return{ol:()=>({conversion:jm,priority:0}),ul:()=>({conversion:jm,priority:0})}}static importJSON(t){const r=Ot(t.listType,t.start);return r.setFormat(t.format),r.setIndent(t.indent),r.setDirection(t.direction),r}exportDOM(t){const{element:r}=super.exportDOM(t);return r&&lt(r)&&(this.__start!==1&&r.setAttribute("start",String(this.__start)),this.__listType==="check"&&r.setAttribute("__lexicalListType","check")),{element:r}}exportJSON(){return{...super.exportJSON(),listType:this.getListType(),start:this.getStart(),tag:this.getTag(),type:"list",version:1}}canBeEmpty(){return!1}canIndent(){return!1}append(...t){for(let r=0;r<t.length;r++){const s=t[r];if(Re(s))super.append(s);else{const o=Kt();if(we(s))o.append(s);else if(O(s)){const i=hr(s.getTextContent());o.append(i)}else o.append(s);super.append(o)}}return this}extractWithChild(t){return Re(t)}}function Rm(n,e,t){const r=[],s=[],o=e.list;if(o!==void 0){const i=o[`${t.__tag}Depth`]||[],l=Zd(t)-1,a=l%i.length,c=i[a],u=o[t.__tag];let d;const f=o.nested,g=o.checklist;if(f!==void 0&&f.list&&(d=f.list),u!==void 0&&r.push(u),g!==void 0&&t.__listType==="check"&&r.push(g),c!==void 0){r.push(...ja(c));for(let h=0;h<i.length;h++)h!==a&&s.push(t.__tag+h)}if(d!==void 0){const h=ja(d);l>1?r.push(...h):s.push(...h)}}s.length>0&&Gn(n,...s),r.length>0&&_e(n,...r)}function GT(n){const e=[];for(let t=0;t<n.length;t++){const r=n[t];if(Re(r)){e.push(r);const s=r.getChildren();s.length>1&&s.forEach(o=>{we(o)&&e.push(Im(o))})}else e.push(Im(r))}return e}function ZT(n){if(n.getAttribute("__lexicallisttype")==="check"||n.classList.contains("contains-task-list"))return!0;for(const e of n.childNodes)if(lt(e)&&e.hasAttribute("aria-checked"))return!0;return!1}function jm(n){const e=n.nodeName.toLowerCase();let t=null;if(e==="ol"){const r=n.start;t=Ot("number",r)}else e==="ul"&&(ZT(n)?t=Ot("check"):t=Ot("bullet"));return{after:GT,node:t}}const Pm={ol:"number",ul:"bullet"};function Ot(n,e=1){return Me(new fn(n,e))}function we(n){return n instanceof fn}const jh=ze(),Mc=ze(),Ph=ze(),JT=ze();function XT(n){return ve(n.registerCommand(Mc,()=>(Xd(n,"number"),!0),le),n.registerCommand(jh,()=>(Xd(n,"bullet"),!0),le),n.registerCommand(JT,()=>(BT(n),!0),le),n.registerCommand(cr,()=>!!HT(),le))}var Qd=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function RC(n){return n&&n.__esModule&&Object.prototype.hasOwnProperty.call(n,"default")?n.default:n}function QT(n){if(Object.prototype.hasOwnProperty.call(n,"__esModule"))return n;var e=n.default;if(typeof e=="function"){var t=function r(){return this instanceof r?Reflect.construct(e,arguments,this.constructor):e.apply(this,arguments)};t.prototype=e.prototype}else t={};return Object.defineProperty(t,"__esModule",{value:!0}),Object.keys(n).forEach(function(r){var s=Object.getOwnPropertyDescriptor(n,r);Object.defineProperty(t,r,s.get?s:{enumerable:!0,get:function(){return n[r]}})}),t}var Iu={exports:{}},Fm;function qT(){return Fm||(Fm=1,function(n){var e=typeof window<"u"?window:typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope?self:{};/**
18
- * Prism: Lightweight, robust, elegant syntax highlighting
19
- *
20
- * @license MIT <https://opensource.org/licenses/MIT>
21
- * @author Lea Verou <https://lea.verou.me>
22
- * @namespace
23
- * @public
24
- */var t=function(r){var s=/(?:^|\s)lang(?:uage)?-([\w-]+)(?=\s|$)/i,o=0,i={},l={manual:r.Prism&&r.Prism.manual,disableWorkerMessageHandler:r.Prism&&r.Prism.disableWorkerMessageHandler,util:{encode:function y(w){return w instanceof a?new a(w.type,y(w.content),w.alias):Array.isArray(w)?w.map(y):w.replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/\u00a0/g," ")},type:function(y){return Object.prototype.toString.call(y).slice(8,-1)},objId:function(y){return y.__id||Object.defineProperty(y,"__id",{value:++o}),y.__id},clone:function y(w,v){v=v||{};var S,C;switch(l.util.type(w)){case"Object":if(C=l.util.objId(w),v[C])return v[C];S={},v[C]=S;for(var _ in w)w.hasOwnProperty(_)&&(S[_]=y(w[_],v));return S;case"Array":return C=l.util.objId(w),v[C]?v[C]:(S=[],v[C]=S,w.forEach(function(k,T){S[T]=y(k,v)}),S);default:return w}},getLanguage:function(y){for(;y;){var w=s.exec(y.className);if(w)return w[1].toLowerCase();y=y.parentElement}return"none"},setLanguage:function(y,w){y.className=y.className.replace(RegExp(s,"gi"),""),y.classList.add("language-"+w)},currentScript:function(){if(typeof document>"u")return null;if(document.currentScript&&document.currentScript.tagName==="SCRIPT")return document.currentScript;try{throw new Error}catch(S){var y=(/at [^(\r\n]*\((.*):[^:]+:[^:]+\)$/i.exec(S.stack)||[])[1];if(y){var w=document.getElementsByTagName("script");for(var v in w)if(w[v].src==y)return w[v]}return null}},isActive:function(y,w,v){for(var S="no-"+w;y;){var C=y.classList;if(C.contains(w))return!0;if(C.contains(S))return!1;y=y.parentElement}return!!v}},languages:{plain:i,plaintext:i,text:i,txt:i,extend:function(y,w){var v=l.util.clone(l.languages[y]);for(var S in w)v[S]=w[S];return v},insertBefore:function(y,w,v,S){S=S||l.languages;var C=S[y],_={};for(var k in C)if(C.hasOwnProperty(k)){if(k==w)for(var T in v)v.hasOwnProperty(T)&&(_[T]=v[T]);v.hasOwnProperty(k)||(_[k]=C[k])}var D=S[y];return S[y]=_,l.languages.DFS(l.languages,function(L,N){N===D&&L!=y&&(this[L]=_)}),_},DFS:function y(w,v,S,C){C=C||{};var _=l.util.objId;for(var k in w)if(w.hasOwnProperty(k)){v.call(w,k,w[k],S||k);var T=w[k],D=l.util.type(T);D==="Object"&&!C[_(T)]?(C[_(T)]=!0,y(T,v,null,C)):D==="Array"&&!C[_(T)]&&(C[_(T)]=!0,y(T,v,k,C))}}},plugins:{},highlightAll:function(y,w){l.highlightAllUnder(document,y,w)},highlightAllUnder:function(y,w,v){var S={callback:v,container:y,selector:'code[class*="language-"], [class*="language-"] code, code[class*="lang-"], [class*="lang-"] code'};l.hooks.run("before-highlightall",S),S.elements=Array.prototype.slice.apply(S.container.querySelectorAll(S.selector)),l.hooks.run("before-all-elements-highlight",S);for(var C=0,_;_=S.elements[C++];)l.highlightElement(_,w===!0,S.callback)},highlightElement:function(y,w,v){var S=l.util.getLanguage(y),C=l.languages[S];l.util.setLanguage(y,S);var _=y.parentElement;_&&_.nodeName.toLowerCase()==="pre"&&l.util.setLanguage(_,S);var k=y.textContent,T={element:y,language:S,grammar:C,code:k};function D(N){T.highlightedCode=N,l.hooks.run("before-insert",T),T.element.innerHTML=T.highlightedCode,l.hooks.run("after-highlight",T),l.hooks.run("complete",T),v&&v.call(T.element)}if(l.hooks.run("before-sanity-check",T),_=T.element.parentElement,_&&_.nodeName.toLowerCase()==="pre"&&!_.hasAttribute("tabindex")&&_.setAttribute("tabindex","0"),!T.code){l.hooks.run("complete",T),v&&v.call(T.element);return}if(l.hooks.run("before-highlight",T),!T.grammar){D(l.util.encode(T.code));return}if(w&&r.Worker){var L=new Worker(l.filename);L.onmessage=function(N){D(N.data)},L.postMessage(JSON.stringify({language:T.language,code:T.code,immediateClose:!0}))}else D(l.highlight(T.code,T.grammar,T.language))},highlight:function(y,w,v){var S={code:y,grammar:w,language:v};if(l.hooks.run("before-tokenize",S),!S.grammar)throw new Error('The language "'+S.language+'" has no grammar.');return S.tokens=l.tokenize(S.code,S.grammar),l.hooks.run("after-tokenize",S),a.stringify(l.util.encode(S.tokens),S.language)},tokenize:function(y,w){var v=w.rest;if(v){for(var S in v)w[S]=v[S];delete w.rest}var C=new d;return f(C,C.head,y),u(y,C,w,C.head,0),h(C)},hooks:{all:{},add:function(y,w){var v=l.hooks.all;v[y]=v[y]||[],v[y].push(w)},run:function(y,w){var v=l.hooks.all[y];if(!(!v||!v.length))for(var S=0,C;C=v[S++];)C(w)}},Token:a};r.Prism=l;function a(y,w,v,S){this.type=y,this.content=w,this.alias=v,this.length=(S||"").length|0}a.stringify=function y(w,v){if(typeof w=="string")return w;if(Array.isArray(w)){var S="";return w.forEach(function(D){S+=y(D,v)}),S}var C={type:w.type,content:y(w.content,v),tag:"span",classes:["token",w.type],attributes:{},language:v},_=w.alias;_&&(Array.isArray(_)?Array.prototype.push.apply(C.classes,_):C.classes.push(_)),l.hooks.run("wrap",C);var k="";for(var T in C.attributes)k+=" "+T+'="'+(C.attributes[T]||"").replace(/"/g,"&quot;")+'"';return"<"+C.tag+' class="'+C.classes.join(" ")+'"'+k+">"+C.content+"</"+C.tag+">"};function c(y,w,v,S){y.lastIndex=w;var C=y.exec(v);if(C&&S&&C[1]){var _=C[1].length;C.index+=_,C[0]=C[0].slice(_)}return C}function u(y,w,v,S,C,_){for(var k in v)if(!(!v.hasOwnProperty(k)||!v[k])){var T=v[k];T=Array.isArray(T)?T:[T];for(var D=0;D<T.length;++D){if(_&&_.cause==k+","+D)return;var L=T[D],N=L.inside,I=!!L.lookbehind,P=!!L.greedy,G=L.alias;if(P&&!L.pattern.global){var J=L.pattern.toString().match(/[imsuy]*$/)[0];L.pattern=RegExp(L.pattern.source,J+"g")}for(var te=L.pattern||L,Q=S.next,B=C;Q!==w.tail&&!(_&&B>=_.reach);B+=Q.value.length,Q=Q.next){var j=Q.value;if(w.length>y.length)return;if(!(j instanceof a)){var F=1,V;if(P){if(V=c(te,B,y,I),!V||V.index>=y.length)break;var ee=V.index,K=V.index+V[0].length,Y=B;for(Y+=Q.value.length;ee>=Y;)Q=Q.next,Y+=Q.value.length;if(Y-=Q.value.length,B=Y,Q.value instanceof a)continue;for(var X=Q;X!==w.tail&&(Y<K||typeof X.value=="string");X=X.next)F++,Y+=X.value.length;F--,j=y.slice(B,Y),V.index-=B}else if(V=c(te,0,j,I),!V)continue;var ee=V.index,H=V[0],U=j.slice(0,ee),be=j.slice(ee+H.length),xe=B+j.length;_&&xe>_.reach&&(_.reach=xe);var Ne=Q.prev;U&&(Ne=f(w,Ne,U),B+=U.length),g(w,Ne,F);var ke=new a(k,N?l.tokenize(H,N):H,G,H);if(Q=f(w,Ne,ke),be&&f(w,Q,be),F>1){var Ve={cause:k+","+D,reach:xe};u(y,w,v,Q.prev,B,Ve),_&&Ve.reach>_.reach&&(_.reach=Ve.reach)}}}}}}function d(){var y={value:null,prev:null,next:null},w={value:null,prev:y,next:null};y.next=w,this.head=y,this.tail=w,this.length=0}function f(y,w,v){var S=w.next,C={value:v,prev:w,next:S};return w.next=C,S.prev=C,y.length++,C}function g(y,w,v){for(var S=w.next,C=0;C<v&&S!==y.tail;C++)S=S.next;w.next=S,S.prev=w,y.length-=C}function h(y){for(var w=[],v=y.head.next;v!==y.tail;)w.push(v.value),v=v.next;return w}if(!r.document)return r.addEventListener&&(l.disableWorkerMessageHandler||r.addEventListener("message",function(y){var w=JSON.parse(y.data),v=w.language,S=w.code,C=w.immediateClose;r.postMessage(l.highlight(S,l.languages[v],v)),C&&r.close()},!1)),l;var m=l.util.currentScript();m&&(l.filename=m.src,m.hasAttribute("data-manual")&&(l.manual=!0));function A(){l.manual||l.highlightAll()}if(!l.manual){var b=document.readyState;b==="loading"||b==="interactive"&&m&&m.defer?document.addEventListener("DOMContentLoaded",A):window.requestAnimationFrame?window.requestAnimationFrame(A):window.setTimeout(A,16)}return l}(e);n.exports&&(n.exports=t),typeof Qd<"u"&&(Qd.Prism=t),t.languages.markup={comment:{pattern:/<!--(?:(?!<!--)[\s\S])*?-->/,greedy:!0},prolog:{pattern:/<\?[\s\S]+?\?>/,greedy:!0},doctype:{pattern:/<!DOCTYPE(?:[^>"'[\]]|"[^"]*"|'[^']*')+(?:\[(?:[^<"'\]]|"[^"]*"|'[^']*'|<(?!!--)|<!--(?:[^-]|-(?!->))*-->)*\]\s*)?>/i,greedy:!0,inside:{"internal-subset":{pattern:/(^[^\[]*\[)[\s\S]+(?=\]>$)/,lookbehind:!0,greedy:!0,inside:null},string:{pattern:/"[^"]*"|'[^']*'/,greedy:!0},punctuation:/^<!|>$|[[\]]/,"doctype-tag":/^DOCTYPE/i,name:/[^\s<>'"]+/}},cdata:{pattern:/<!\[CDATA\[[\s\S]*?\]\]>/i,greedy:!0},tag:{pattern:/<\/?(?!\d)[^\s>\/=$<%]+(?:\s(?:\s*[^\s>\/=]+(?:\s*=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+(?=[\s>]))|(?=[\s/>])))+)?\s*\/?>/,greedy:!0,inside:{tag:{pattern:/^<\/?[^\s>\/]+/,inside:{punctuation:/^<\/?/,namespace:/^[^\s>\/:]+:/}},"special-attr":[],"attr-value":{pattern:/=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+)/,inside:{punctuation:[{pattern:/^=/,alias:"attr-equals"},{pattern:/^(\s*)["']|["']$/,lookbehind:!0}]}},punctuation:/\/?>/,"attr-name":{pattern:/[^\s>\/]+/,inside:{namespace:/^[^\s>\/:]+:/}}}},entity:[{pattern:/&[\da-z]{1,8};/i,alias:"named-entity"},/&#x?[\da-f]{1,8};/i]},t.languages.markup.tag.inside["attr-value"].inside.entity=t.languages.markup.entity,t.languages.markup.doctype.inside["internal-subset"].inside=t.languages.markup,t.hooks.add("wrap",function(r){r.type==="entity"&&(r.attributes.title=r.content.replace(/&amp;/,"&"))}),Object.defineProperty(t.languages.markup.tag,"addInlined",{value:function(s,o){var i={};i["language-"+o]={pattern:/(^<!\[CDATA\[)[\s\S]+?(?=\]\]>$)/i,lookbehind:!0,inside:t.languages[o]},i.cdata=/^<!\[CDATA\[|\]\]>$/i;var l={"included-cdata":{pattern:/<!\[CDATA\[[\s\S]*?\]\]>/i,inside:i}};l["language-"+o]={pattern:/[\s\S]+/,inside:t.languages[o]};var a={};a[s]={pattern:RegExp(/(<__[^>]*>)(?:<!\[CDATA\[(?:[^\]]|\](?!\]>))*\]\]>|(?!<!\[CDATA\[)[\s\S])*?(?=<\/__>)/.source.replace(/__/g,function(){return s}),"i"),lookbehind:!0,greedy:!0,inside:l},t.languages.insertBefore("markup","cdata",a)}}),Object.defineProperty(t.languages.markup.tag,"addAttribute",{value:function(r,s){t.languages.markup.tag.inside["special-attr"].push({pattern:RegExp(/(^|["'\s])/.source+"(?:"+r+")"+/\s*=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+(?=[\s>]))/.source,"i"),lookbehind:!0,inside:{"attr-name":/^[^\s=]+/,"attr-value":{pattern:/=[\s\S]+/,inside:{value:{pattern:/(^=\s*(["']|(?!["'])))\S[\s\S]*(?=\2$)/,lookbehind:!0,alias:[s,"language-"+s],inside:t.languages[s]},punctuation:[{pattern:/^=/,alias:"attr-equals"},/"|'/]}}}})}}),t.languages.html=t.languages.markup,t.languages.mathml=t.languages.markup,t.languages.svg=t.languages.markup,t.languages.xml=t.languages.extend("markup",{}),t.languages.ssml=t.languages.xml,t.languages.atom=t.languages.xml,t.languages.rss=t.languages.xml,function(r){var s=/(?:"(?:\\(?:\r\n|[\s\S])|[^"\\\r\n])*"|'(?:\\(?:\r\n|[\s\S])|[^'\\\r\n])*')/;r.languages.css={comment:/\/\*[\s\S]*?\*\//,atrule:{pattern:RegExp("@[\\w-](?:"+/[^;{\s"']|\s+(?!\s)/.source+"|"+s.source+")*?"+/(?:;|(?=\s*\{))/.source),inside:{rule:/^@[\w-]+/,"selector-function-argument":{pattern:/(\bselector\s*\(\s*(?![\s)]))(?:[^()\s]|\s+(?![\s)])|\((?:[^()]|\([^()]*\))*\))+(?=\s*\))/,lookbehind:!0,alias:"selector"},keyword:{pattern:/(^|[^\w-])(?:and|not|only|or)(?![\w-])/,lookbehind:!0}}},url:{pattern:RegExp("\\burl\\((?:"+s.source+"|"+/(?:[^\\\r\n()"']|\\[\s\S])*/.source+")\\)","i"),greedy:!0,inside:{function:/^url/i,punctuation:/^\(|\)$/,string:{pattern:RegExp("^"+s.source+"$"),alias:"url"}}},selector:{pattern:RegExp(`(^|[{}\\s])[^{}\\s](?:[^{};"'\\s]|\\s+(?![\\s{])|`+s.source+")*(?=\\s*\\{)"),lookbehind:!0},string:{pattern:s,greedy:!0},property:{pattern:/(^|[^-\w\xA0-\uFFFF])(?!\s)[-_a-z\xA0-\uFFFF](?:(?!\s)[-\w\xA0-\uFFFF])*(?=\s*:)/i,lookbehind:!0},important:/!important\b/i,function:{pattern:/(^|[^-a-z0-9])[-a-z0-9]+(?=\()/i,lookbehind:!0},punctuation:/[(){};:,]/},r.languages.css.atrule.inside.rest=r.languages.css;var o=r.languages.markup;o&&(o.tag.addInlined("style","css"),o.tag.addAttribute("style","css"))}(t),t.languages.clike={comment:[{pattern:/(^|[^\\])\/\*[\s\S]*?(?:\*\/|$)/,lookbehind:!0,greedy:!0},{pattern:/(^|[^\\:])\/\/.*/,lookbehind:!0,greedy:!0}],string:{pattern:/(["'])(?:\\(?:\r\n|[\s\S])|(?!\1)[^\\\r\n])*\1/,greedy:!0},"class-name":{pattern:/(\b(?:class|extends|implements|instanceof|interface|new|trait)\s+|\bcatch\s+\()[\w.\\]+/i,lookbehind:!0,inside:{punctuation:/[.\\]/}},keyword:/\b(?:break|catch|continue|do|else|finally|for|function|if|in|instanceof|new|null|return|throw|try|while)\b/,boolean:/\b(?:false|true)\b/,function:/\b\w+(?=\()/,number:/\b0x[\da-f]+\b|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e[+-]?\d+)?/i,operator:/[<>]=?|[!=]=?=?|--?|\+\+?|&&?|\|\|?|[?*/~^%]/,punctuation:/[{}[\];(),.:]/},t.languages.javascript=t.languages.extend("clike",{"class-name":[t.languages.clike["class-name"],{pattern:/(^|[^$\w\xA0-\uFFFF])(?!\s)[_$A-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\.(?:constructor|prototype))/,lookbehind:!0}],keyword:[{pattern:/((?:^|\})\s*)catch\b/,lookbehind:!0},{pattern:/(^|[^.]|\.\.\.\s*)\b(?:as|assert(?=\s*\{)|async(?=\s*(?:function\b|\(|[$\w\xA0-\uFFFF]|$))|await|break|case|class|const|continue|debugger|default|delete|do|else|enum|export|extends|finally(?=\s*(?:\{|$))|for|from(?=\s*(?:['"]|$))|function|(?:get|set)(?=\s*(?:[#\[$\w\xA0-\uFFFF]|$))|if|implements|import|in|instanceof|interface|let|new|null|of|package|private|protected|public|return|static|super|switch|this|throw|try|typeof|undefined|var|void|while|with|yield)\b/,lookbehind:!0}],function:/#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*(?:\.\s*(?:apply|bind|call)\s*)?\()/,number:{pattern:RegExp(/(^|[^\w$])/.source+"(?:"+(/NaN|Infinity/.source+"|"+/0[bB][01]+(?:_[01]+)*n?/.source+"|"+/0[oO][0-7]+(?:_[0-7]+)*n?/.source+"|"+/0[xX][\dA-Fa-f]+(?:_[\dA-Fa-f]+)*n?/.source+"|"+/\d+(?:_\d+)*n/.source+"|"+/(?:\d+(?:_\d+)*(?:\.(?:\d+(?:_\d+)*)?)?|\.\d+(?:_\d+)*)(?:[Ee][+-]?\d+(?:_\d+)*)?/.source)+")"+/(?![\w$])/.source),lookbehind:!0},operator:/--|\+\+|\*\*=?|=>|&&=?|\|\|=?|[!=]==|<<=?|>>>?=?|[-+*/%&|^!=<>]=?|\.{3}|\?\?=?|\?\.?|[~:]/}),t.languages.javascript["class-name"][0].pattern=/(\b(?:class|extends|implements|instanceof|interface|new)\s+)[\w.\\]+/,t.languages.insertBefore("javascript","keyword",{regex:{pattern:RegExp(/((?:^|[^$\w\xA0-\uFFFF."'\])\s]|\b(?:return|yield))\s*)/.source+/\//.source+"(?:"+/(?:\[(?:[^\]\\\r\n]|\\.)*\]|\\.|[^/\\\[\r\n])+\/[dgimyus]{0,7}/.source+"|"+/(?:\[(?:[^[\]\\\r\n]|\\.|\[(?:[^[\]\\\r\n]|\\.|\[(?:[^[\]\\\r\n]|\\.)*\])*\])*\]|\\.|[^/\\\[\r\n])+\/[dgimyus]{0,7}v[dgimyus]{0,7}/.source+")"+/(?=(?:\s|\/\*(?:[^*]|\*(?!\/))*\*\/)*(?:$|[\r\n,.;:})\]]|\/\/))/.source),lookbehind:!0,greedy:!0,inside:{"regex-source":{pattern:/^(\/)[\s\S]+(?=\/[a-z]*$)/,lookbehind:!0,alias:"language-regex",inside:t.languages.regex},"regex-delimiter":/^\/|\/$/,"regex-flags":/^[a-z]+$/}},"function-variable":{pattern:/#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*[=:]\s*(?:async\s*)?(?:\bfunction\b|(?:\((?:[^()]|\([^()]*\))*\)|(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*)\s*=>))/,alias:"function"},parameter:[{pattern:/(function(?:\s+(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*)?\s*\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\))/,lookbehind:!0,inside:t.languages.javascript},{pattern:/(^|[^$\w\xA0-\uFFFF])(?!\s)[_$a-z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*=>)/i,lookbehind:!0,inside:t.languages.javascript},{pattern:/(\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\)\s*=>)/,lookbehind:!0,inside:t.languages.javascript},{pattern:/((?:\b|\s|^)(?!(?:as|async|await|break|case|catch|class|const|continue|debugger|default|delete|do|else|enum|export|extends|finally|for|from|function|get|if|implements|import|in|instanceof|interface|let|new|null|of|package|private|protected|public|return|set|static|super|switch|this|throw|try|typeof|undefined|var|void|while|with|yield)(?![$\w\xA0-\uFFFF]))(?:(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*\s*)\(\s*|\]\s*\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\)\s*\{)/,lookbehind:!0,inside:t.languages.javascript}],constant:/\b[A-Z](?:[A-Z_]|\dx?)*\b/}),t.languages.insertBefore("javascript","string",{hashbang:{pattern:/^#!.*/,greedy:!0,alias:"comment"},"template-string":{pattern:/`(?:\\[\s\S]|\$\{(?:[^{}]|\{(?:[^{}]|\{[^}]*\})*\})+\}|(?!\$\{)[^\\`])*`/,greedy:!0,inside:{"template-punctuation":{pattern:/^`|`$/,alias:"string"},interpolation:{pattern:/((?:^|[^\\])(?:\\{2})*)\$\{(?:[^{}]|\{(?:[^{}]|\{[^}]*\})*\})+\}/,lookbehind:!0,inside:{"interpolation-punctuation":{pattern:/^\$\{|\}$/,alias:"punctuation"},rest:t.languages.javascript}},string:/[\s\S]+/}},"string-property":{pattern:/((?:^|[,{])[ \t]*)(["'])(?:\\(?:\r\n|[\s\S])|(?!\2)[^\\\r\n])*\2(?=\s*:)/m,lookbehind:!0,greedy:!0,alias:"property"}}),t.languages.insertBefore("javascript","operator",{"literal-property":{pattern:/((?:^|[,{])[ \t]*)(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*:)/m,lookbehind:!0,alias:"property"}}),t.languages.markup&&(t.languages.markup.tag.addInlined("script","javascript"),t.languages.markup.tag.addAttribute(/on(?:abort|blur|change|click|composition(?:end|start|update)|dblclick|error|focus(?:in|out)?|key(?:down|up)|load|mouse(?:down|enter|leave|move|out|over|up)|reset|resize|scroll|select|slotchange|submit|unload|wheel)/.source,"javascript")),t.languages.js=t.languages.javascript,function(){if(typeof t>"u"||typeof document>"u")return;Element.prototype.matches||(Element.prototype.matches=Element.prototype.msMatchesSelector||Element.prototype.webkitMatchesSelector);var r="Loading…",s=function(m,A){return"✖ Error "+m+" while fetching file: "+A},o="✖ Error: File does not exist or is empty",i={js:"javascript",py:"python",rb:"ruby",ps1:"powershell",psm1:"powershell",sh:"bash",bat:"batch",h:"c",tex:"latex"},l="data-src-status",a="loading",c="loaded",u="failed",d="pre[data-src]:not(["+l+'="'+c+'"]):not(['+l+'="'+a+'"])';function f(m,A,b){var y=new XMLHttpRequest;y.open("GET",m,!0),y.onreadystatechange=function(){y.readyState==4&&(y.status<400&&y.responseText?A(y.responseText):y.status>=400?b(s(y.status,y.statusText)):b(o))},y.send(null)}function g(m){var A=/^\s*(\d+)\s*(?:(,)\s*(?:(\d+)\s*)?)?$/.exec(m||"");if(A){var b=Number(A[1]),y=A[2],w=A[3];return y?w?[b,Number(w)]:[b,void 0]:[b,b]}}t.hooks.add("before-highlightall",function(m){m.selector+=", "+d}),t.hooks.add("before-sanity-check",function(m){var A=m.element;if(A.matches(d)){m.code="",A.setAttribute(l,a);var b=A.appendChild(document.createElement("CODE"));b.textContent=r;var y=A.getAttribute("data-src"),w=m.language;if(w==="none"){var v=(/\.(\w+)$/.exec(y)||[,"none"])[1];w=i[v]||v}t.util.setLanguage(b,w),t.util.setLanguage(A,w);var S=t.plugins.autoloader;S&&S.loadLanguages(w),f(y,function(C){A.setAttribute(l,c);var _=g(A.getAttribute("data-range"));if(_){var k=C.split(/\r\n?|\n/g),T=_[0],D=_[1]==null?k.length:_[1];T<0&&(T+=k.length),T=Math.max(0,Math.min(T-1,k.length)),D<0&&(D+=k.length),D=Math.max(0,Math.min(D,k.length)),C=k.slice(T,D).join(`
25
- `),A.hasAttribute("data-start")||A.setAttribute("data-start",String(T+1))}b.textContent=C,t.highlightElement(b)},function(C){A.setAttribute(l,u),b.textContent=C})}}),t.plugins.fileHighlight={highlight:function(A){for(var b=(A||document).querySelectorAll(d),y=0,w;w=b[y++];)t.highlightElement(w)}};var h=!1;t.fileHighlight=function(){h||(console.warn("Prism.fileHighlight is deprecated. Use `Prism.plugins.fileHighlight.highlight` instead."),h=!0),t.plugins.fileHighlight.highlight.apply(this,arguments)}}()}(Iu)),Iu.exports}qT();Prism.languages.clike={comment:[{pattern:/(^|[^\\])\/\*[\s\S]*?(?:\*\/|$)/,lookbehind:!0,greedy:!0},{pattern:/(^|[^\\:])\/\/.*/,lookbehind:!0,greedy:!0}],string:{pattern:/(["'])(?:\\(?:\r\n|[\s\S])|(?!\1)[^\\\r\n])*\1/,greedy:!0},"class-name":{pattern:/(\b(?:class|extends|implements|instanceof|interface|new|trait)\s+|\bcatch\s+\()[\w.\\]+/i,lookbehind:!0,inside:{punctuation:/[.\\]/}},keyword:/\b(?:break|catch|continue|do|else|finally|for|function|if|in|instanceof|new|null|return|throw|try|while)\b/,boolean:/\b(?:false|true)\b/,function:/\b\w+(?=\()/,number:/\b0x[\da-f]+\b|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e[+-]?\d+)?/i,operator:/[<>]=?|[!=]=?=?|--?|\+\+?|&&?|\|\|?|[?*/~^%]/,punctuation:/[{}[\];(),.:]/};Prism.languages.javascript=Prism.languages.extend("clike",{"class-name":[Prism.languages.clike["class-name"],{pattern:/(^|[^$\w\xA0-\uFFFF])(?!\s)[_$A-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\.(?:constructor|prototype))/,lookbehind:!0}],keyword:[{pattern:/((?:^|\})\s*)catch\b/,lookbehind:!0},{pattern:/(^|[^.]|\.\.\.\s*)\b(?:as|assert(?=\s*\{)|async(?=\s*(?:function\b|\(|[$\w\xA0-\uFFFF]|$))|await|break|case|class|const|continue|debugger|default|delete|do|else|enum|export|extends|finally(?=\s*(?:\{|$))|for|from(?=\s*(?:['"]|$))|function|(?:get|set)(?=\s*(?:[#\[$\w\xA0-\uFFFF]|$))|if|implements|import|in|instanceof|interface|let|new|null|of|package|private|protected|public|return|static|super|switch|this|throw|try|typeof|undefined|var|void|while|with|yield)\b/,lookbehind:!0}],function:/#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*(?:\.\s*(?:apply|bind|call)\s*)?\()/,number:{pattern:RegExp(/(^|[^\w$])/.source+"(?:"+(/NaN|Infinity/.source+"|"+/0[bB][01]+(?:_[01]+)*n?/.source+"|"+/0[oO][0-7]+(?:_[0-7]+)*n?/.source+"|"+/0[xX][\dA-Fa-f]+(?:_[\dA-Fa-f]+)*n?/.source+"|"+/\d+(?:_\d+)*n/.source+"|"+/(?:\d+(?:_\d+)*(?:\.(?:\d+(?:_\d+)*)?)?|\.\d+(?:_\d+)*)(?:[Ee][+-]?\d+(?:_\d+)*)?/.source)+")"+/(?![\w$])/.source),lookbehind:!0},operator:/--|\+\+|\*\*=?|=>|&&=?|\|\|=?|[!=]==|<<=?|>>>?=?|[-+*/%&|^!=<>]=?|\.{3}|\?\?=?|\?\.?|[~:]/});Prism.languages.javascript["class-name"][0].pattern=/(\b(?:class|extends|implements|instanceof|interface|new)\s+)[\w.\\]+/;Prism.languages.insertBefore("javascript","keyword",{regex:{pattern:RegExp(/((?:^|[^$\w\xA0-\uFFFF."'\])\s]|\b(?:return|yield))\s*)/.source+/\//.source+"(?:"+/(?:\[(?:[^\]\\\r\n]|\\.)*\]|\\.|[^/\\\[\r\n])+\/[dgimyus]{0,7}/.source+"|"+/(?:\[(?:[^[\]\\\r\n]|\\.|\[(?:[^[\]\\\r\n]|\\.|\[(?:[^[\]\\\r\n]|\\.)*\])*\])*\]|\\.|[^/\\\[\r\n])+\/[dgimyus]{0,7}v[dgimyus]{0,7}/.source+")"+/(?=(?:\s|\/\*(?:[^*]|\*(?!\/))*\*\/)*(?:$|[\r\n,.;:})\]]|\/\/))/.source),lookbehind:!0,greedy:!0,inside:{"regex-source":{pattern:/^(\/)[\s\S]+(?=\/[a-z]*$)/,lookbehind:!0,alias:"language-regex",inside:Prism.languages.regex},"regex-delimiter":/^\/|\/$/,"regex-flags":/^[a-z]+$/}},"function-variable":{pattern:/#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*[=:]\s*(?:async\s*)?(?:\bfunction\b|(?:\((?:[^()]|\([^()]*\))*\)|(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*)\s*=>))/,alias:"function"},parameter:[{pattern:/(function(?:\s+(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*)?\s*\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\))/,lookbehind:!0,inside:Prism.languages.javascript},{pattern:/(^|[^$\w\xA0-\uFFFF])(?!\s)[_$a-z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*=>)/i,lookbehind:!0,inside:Prism.languages.javascript},{pattern:/(\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\)\s*=>)/,lookbehind:!0,inside:Prism.languages.javascript},{pattern:/((?:\b|\s|^)(?!(?:as|async|await|break|case|catch|class|const|continue|debugger|default|delete|do|else|enum|export|extends|finally|for|from|function|get|if|implements|import|in|instanceof|interface|let|new|null|of|package|private|protected|public|return|set|static|super|switch|this|throw|try|typeof|undefined|var|void|while|with|yield)(?![$\w\xA0-\uFFFF]))(?:(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*\s*)\(\s*|\]\s*\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\)\s*\{)/,lookbehind:!0,inside:Prism.languages.javascript}],constant:/\b[A-Z](?:[A-Z_]|\dx?)*\b/});Prism.languages.insertBefore("javascript","string",{hashbang:{pattern:/^#!.*/,greedy:!0,alias:"comment"},"template-string":{pattern:/`(?:\\[\s\S]|\$\{(?:[^{}]|\{(?:[^{}]|\{[^}]*\})*\})+\}|(?!\$\{)[^\\`])*`/,greedy:!0,inside:{"template-punctuation":{pattern:/^`|`$/,alias:"string"},interpolation:{pattern:/((?:^|[^\\])(?:\\{2})*)\$\{(?:[^{}]|\{(?:[^{}]|\{[^}]*\})*\})+\}/,lookbehind:!0,inside:{"interpolation-punctuation":{pattern:/^\$\{|\}$/,alias:"punctuation"},rest:Prism.languages.javascript}},string:/[\s\S]+/}},"string-property":{pattern:/((?:^|[,{])[ \t]*)(["'])(?:\\(?:\r\n|[\s\S])|(?!\2)[^\\\r\n])*\2(?=\s*:)/m,lookbehind:!0,greedy:!0,alias:"property"}});Prism.languages.insertBefore("javascript","operator",{"literal-property":{pattern:/((?:^|[,{])[ \t]*)(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*:)/m,lookbehind:!0,alias:"property"}});Prism.languages.markup&&(Prism.languages.markup.tag.addInlined("script","javascript"),Prism.languages.markup.tag.addAttribute(/on(?:abort|blur|change|click|composition(?:end|start|update)|dblclick|error|focus(?:in|out)?|key(?:down|up)|load|mouse(?:down|enter|leave|move|out|over|up)|reset|resize|scroll|select|slotchange|submit|unload|wheel)/.source,"javascript"));Prism.languages.js=Prism.languages.javascript;Prism.languages.markup={comment:{pattern:/<!--(?:(?!<!--)[\s\S])*?-->/,greedy:!0},prolog:{pattern:/<\?[\s\S]+?\?>/,greedy:!0},doctype:{pattern:/<!DOCTYPE(?:[^>"'[\]]|"[^"]*"|'[^']*')+(?:\[(?:[^<"'\]]|"[^"]*"|'[^']*'|<(?!!--)|<!--(?:[^-]|-(?!->))*-->)*\]\s*)?>/i,greedy:!0,inside:{"internal-subset":{pattern:/(^[^\[]*\[)[\s\S]+(?=\]>$)/,lookbehind:!0,greedy:!0,inside:null},string:{pattern:/"[^"]*"|'[^']*'/,greedy:!0},punctuation:/^<!|>$|[[\]]/,"doctype-tag":/^DOCTYPE/i,name:/[^\s<>'"]+/}},cdata:{pattern:/<!\[CDATA\[[\s\S]*?\]\]>/i,greedy:!0},tag:{pattern:/<\/?(?!\d)[^\s>\/=$<%]+(?:\s(?:\s*[^\s>\/=]+(?:\s*=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+(?=[\s>]))|(?=[\s/>])))+)?\s*\/?>/,greedy:!0,inside:{tag:{pattern:/^<\/?[^\s>\/]+/,inside:{punctuation:/^<\/?/,namespace:/^[^\s>\/:]+:/}},"special-attr":[],"attr-value":{pattern:/=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+)/,inside:{punctuation:[{pattern:/^=/,alias:"attr-equals"},{pattern:/^(\s*)["']|["']$/,lookbehind:!0}]}},punctuation:/\/?>/,"attr-name":{pattern:/[^\s>\/]+/,inside:{namespace:/^[^\s>\/:]+:/}}}},entity:[{pattern:/&[\da-z]{1,8};/i,alias:"named-entity"},/&#x?[\da-f]{1,8};/i]};Prism.languages.markup.tag.inside["attr-value"].inside.entity=Prism.languages.markup.entity;Prism.languages.markup.doctype.inside["internal-subset"].inside=Prism.languages.markup;Prism.hooks.add("wrap",function(n){n.type==="entity"&&(n.attributes.title=n.content.replace(/&amp;/,"&"))});Object.defineProperty(Prism.languages.markup.tag,"addInlined",{value:function(e,t){var r={};r["language-"+t]={pattern:/(^<!\[CDATA\[)[\s\S]+?(?=\]\]>$)/i,lookbehind:!0,inside:Prism.languages[t]},r.cdata=/^<!\[CDATA\[|\]\]>$/i;var s={"included-cdata":{pattern:/<!\[CDATA\[[\s\S]*?\]\]>/i,inside:r}};s["language-"+t]={pattern:/[\s\S]+/,inside:Prism.languages[t]};var o={};o[e]={pattern:RegExp(/(<__[^>]*>)(?:<!\[CDATA\[(?:[^\]]|\](?!\]>))*\]\]>|(?!<!\[CDATA\[)[\s\S])*?(?=<\/__>)/.source.replace(/__/g,function(){return e}),"i"),lookbehind:!0,greedy:!0,inside:s},Prism.languages.insertBefore("markup","cdata",o)}});Object.defineProperty(Prism.languages.markup.tag,"addAttribute",{value:function(n,e){Prism.languages.markup.tag.inside["special-attr"].push({pattern:RegExp(/(^|["'\s])/.source+"(?:"+n+")"+/\s*=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+(?=[\s>]))/.source,"i"),lookbehind:!0,inside:{"attr-name":/^[^\s=]+/,"attr-value":{pattern:/=[\s\S]+/,inside:{value:{pattern:/(^=\s*(["']|(?!["'])))\S[\s\S]*(?=\2$)/,lookbehind:!0,alias:[e,"language-"+e],inside:Prism.languages[e]},punctuation:[{pattern:/^=/,alias:"attr-equals"},/"|'/]}}}})}});Prism.languages.html=Prism.languages.markup;Prism.languages.mathml=Prism.languages.markup;Prism.languages.svg=Prism.languages.markup;Prism.languages.xml=Prism.languages.extend("markup",{});Prism.languages.ssml=Prism.languages.xml;Prism.languages.atom=Prism.languages.xml;Prism.languages.rss=Prism.languages.xml;(function(n){var e=/(?:\\.|[^\\\n\r]|(?:\n|\r\n?)(?![\r\n]))/.source;function t(u){return u=u.replace(/<inner>/g,function(){return e}),RegExp(/((?:^|[^\\])(?:\\{2})*)/.source+"(?:"+u+")")}var r=/(?:\\.|``(?:[^`\r\n]|`(?!`))+``|`[^`\r\n]+`|[^\\|\r\n`])+/.source,s=/\|?__(?:\|__)+\|?(?:(?:\n|\r\n?)|(?![\s\S]))/.source.replace(/__/g,function(){return r}),o=/\|?[ \t]*:?-{3,}:?[ \t]*(?:\|[ \t]*:?-{3,}:?[ \t]*)+\|?(?:\n|\r\n?)/.source;n.languages.markdown=n.languages.extend("markup",{}),n.languages.insertBefore("markdown","prolog",{"front-matter-block":{pattern:/(^(?:\s*[\r\n])?)---(?!.)[\s\S]*?[\r\n]---(?!.)/,lookbehind:!0,greedy:!0,inside:{punctuation:/^---|---$/,"front-matter":{pattern:/\S+(?:\s+\S+)*/,alias:["yaml","language-yaml"],inside:n.languages.yaml}}},blockquote:{pattern:/^>(?:[\t ]*>)*/m,alias:"punctuation"},table:{pattern:RegExp("^"+s+o+"(?:"+s+")*","m"),inside:{"table-data-rows":{pattern:RegExp("^("+s+o+")(?:"+s+")*$"),lookbehind:!0,inside:{"table-data":{pattern:RegExp(r),inside:n.languages.markdown},punctuation:/\|/}},"table-line":{pattern:RegExp("^("+s+")"+o+"$"),lookbehind:!0,inside:{punctuation:/\||:?-{3,}:?/}},"table-header-row":{pattern:RegExp("^"+s+"$"),inside:{"table-header":{pattern:RegExp(r),alias:"important",inside:n.languages.markdown},punctuation:/\|/}}}},code:[{pattern:/((?:^|\n)[ \t]*\n|(?:^|\r\n?)[ \t]*\r\n?)(?: {4}|\t).+(?:(?:\n|\r\n?)(?: {4}|\t).+)*/,lookbehind:!0,alias:"keyword"},{pattern:/^```[\s\S]*?^```$/m,greedy:!0,inside:{"code-block":{pattern:/^(```.*(?:\n|\r\n?))[\s\S]+?(?=(?:\n|\r\n?)^```$)/m,lookbehind:!0},"code-language":{pattern:/^(```).+/,lookbehind:!0},punctuation:/```/}}],title:[{pattern:/\S.*(?:\n|\r\n?)(?:==+|--+)(?=[ \t]*$)/m,alias:"important",inside:{punctuation:/==+$|--+$/}},{pattern:/(^\s*)#.+/m,lookbehind:!0,alias:"important",inside:{punctuation:/^#+|#+$/}}],hr:{pattern:/(^\s*)([*-])(?:[\t ]*\2){2,}(?=\s*$)/m,lookbehind:!0,alias:"punctuation"},list:{pattern:/(^\s*)(?:[*+-]|\d+\.)(?=[\t ].)/m,lookbehind:!0,alias:"punctuation"},"url-reference":{pattern:/!?\[[^\]]+\]:[\t ]+(?:\S+|<(?:\\.|[^>\\])+>)(?:[\t ]+(?:"(?:\\.|[^"\\])*"|'(?:\\.|[^'\\])*'|\((?:\\.|[^)\\])*\)))?/,inside:{variable:{pattern:/^(!?\[)[^\]]+/,lookbehind:!0},string:/(?:"(?:\\.|[^"\\])*"|'(?:\\.|[^'\\])*'|\((?:\\.|[^)\\])*\))$/,punctuation:/^[\[\]!:]|[<>]/},alias:"url"},bold:{pattern:t(/\b__(?:(?!_)<inner>|_(?:(?!_)<inner>)+_)+__\b|\*\*(?:(?!\*)<inner>|\*(?:(?!\*)<inner>)+\*)+\*\*/.source),lookbehind:!0,greedy:!0,inside:{content:{pattern:/(^..)[\s\S]+(?=..$)/,lookbehind:!0,inside:{}},punctuation:/\*\*|__/}},italic:{pattern:t(/\b_(?:(?!_)<inner>|__(?:(?!_)<inner>)+__)+_\b|\*(?:(?!\*)<inner>|\*\*(?:(?!\*)<inner>)+\*\*)+\*/.source),lookbehind:!0,greedy:!0,inside:{content:{pattern:/(^.)[\s\S]+(?=.$)/,lookbehind:!0,inside:{}},punctuation:/[*_]/}},strike:{pattern:t(/(~~?)(?:(?!~)<inner>)+\2/.source),lookbehind:!0,greedy:!0,inside:{content:{pattern:/(^~~?)[\s\S]+(?=\1$)/,lookbehind:!0,inside:{}},punctuation:/~~?/}},"code-snippet":{pattern:/(^|[^\\`])(?:``[^`\r\n]+(?:`[^`\r\n]+)*``(?!`)|`[^`\r\n]+`(?!`))/,lookbehind:!0,greedy:!0,alias:["code","keyword"]},url:{pattern:t(/!?\[(?:(?!\])<inner>)+\](?:\([^\s)]+(?:[\t ]+"(?:\\.|[^"\\])*")?\)|[ \t]?\[(?:(?!\])<inner>)+\])/.source),lookbehind:!0,greedy:!0,inside:{operator:/^!/,content:{pattern:/(^\[)[^\]]+(?=\])/,lookbehind:!0,inside:{}},variable:{pattern:/(^\][ \t]?\[)[^\]]+(?=\]$)/,lookbehind:!0},url:{pattern:/(^\]\()[^\s)]+/,lookbehind:!0},string:{pattern:/(^[ \t]+)"(?:\\.|[^"\\])*"(?=\)$)/,lookbehind:!0}}}}),["url","bold","italic","strike"].forEach(function(u){["url","bold","italic","strike","code-snippet"].forEach(function(d){u!==d&&(n.languages.markdown[u].inside.content.inside[d]=n.languages.markdown[d])})}),n.hooks.add("after-tokenize",function(u){if(u.language!=="markdown"&&u.language!=="md")return;function d(f){if(!(!f||typeof f=="string"))for(var g=0,h=f.length;g<h;g++){var m=f[g];if(m.type!=="code"){d(m.content);continue}var A=m.content[1],b=m.content[3];if(A&&b&&A.type==="code-language"&&b.type==="code-block"&&typeof A.content=="string"){var y=A.content.replace(/\b#/g,"sharp").replace(/\b\+\+/g,"pp");y=(/[a-z][\w-]*/i.exec(y)||[""])[0].toLowerCase();var w="language-"+y;b.alias?typeof b.alias=="string"?b.alias=[b.alias,w]:b.alias.push(w):b.alias=[w]}}}d(u.tokens)}),n.hooks.add("wrap",function(u){if(u.type==="code-block"){for(var d="",f=0,g=u.classes.length;f<g;f++){var h=u.classes[f],m=/language-(.+)/.exec(h);if(m){d=m[1];break}}var A=n.languages[d];if(A)u.content=n.highlight(c(u.content),A,d);else if(d&&d!=="none"&&n.plugins.autoloader){var b="md-"+new Date().valueOf()+"-"+Math.floor(Math.random()*1e16);u.attributes.id=b,n.plugins.autoloader.loadLanguages(d,function(){var y=document.getElementById(b);y&&(y.innerHTML=n.highlight(y.textContent,n.languages[d],d))})}}});var i=RegExp(n.languages.markup.tag.pattern.source,"gi"),l={amp:"&",lt:"<",gt:">",quot:'"'},a=String.fromCodePoint||String.fromCharCode;function c(u){var d=u.replace(i,"");return d=d.replace(/&(\w{1,8}|#x?[\da-f]{1,8});/gi,function(f,g){if(g=g.toLowerCase(),g[0]==="#"){var h;return g[1]==="x"?h=parseInt(g.slice(2),16):h=Number(g.slice(1)),a(h)}else{var m=l[g];return m||f}}),d}n.languages.md=n.languages.markdown})(Prism);Prism.languages.c=Prism.languages.extend("clike",{comment:{pattern:/\/\/(?:[^\r\n\\]|\\(?:\r\n?|\n|(?![\r\n])))*|\/\*[\s\S]*?(?:\*\/|$)/,greedy:!0},string:{pattern:/"(?:\\(?:\r\n|[\s\S])|[^"\\\r\n])*"/,greedy:!0},"class-name":{pattern:/(\b(?:enum|struct)\s+(?:__attribute__\s*\(\([\s\S]*?\)\)\s*)?)\w+|\b[a-z]\w*_t\b/,lookbehind:!0},keyword:/\b(?:_Alignas|_Alignof|_Atomic|_Bool|_Complex|_Generic|_Imaginary|_Noreturn|_Static_assert|_Thread_local|__attribute__|asm|auto|break|case|char|const|continue|default|do|double|else|enum|extern|float|for|goto|if|inline|int|long|register|return|short|signed|sizeof|static|struct|switch|typedef|typeof|union|unsigned|void|volatile|while)\b/,function:/\b[a-z_]\w*(?=\s*\()/i,number:/(?:\b0x(?:[\da-f]+(?:\.[\da-f]*)?|\.[\da-f]+)(?:p[+-]?\d+)?|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e[+-]?\d+)?)[ful]{0,4}/i,operator:/>>=?|<<=?|->|([-+&|:])\1|[?:~]|[-+*/%&|^!=<>]=?/});Prism.languages.insertBefore("c","string",{char:{pattern:/'(?:\\(?:\r\n|[\s\S])|[^'\\\r\n]){0,32}'/,greedy:!0}});Prism.languages.insertBefore("c","string",{macro:{pattern:/(^[\t ]*)#\s*[a-z](?:[^\r\n\\/]|\/(?!\*)|\/\*(?:[^*]|\*(?!\/))*\*\/|\\(?:\r\n|[\s\S]))*/im,lookbehind:!0,greedy:!0,alias:"property",inside:{string:[{pattern:/^(#\s*include\s*)<[^>]+>/,lookbehind:!0},Prism.languages.c.string],char:Prism.languages.c.char,comment:Prism.languages.c.comment,"macro-name":[{pattern:/(^#\s*define\s+)\w+\b(?!\()/i,lookbehind:!0},{pattern:/(^#\s*define\s+)\w+\b(?=\()/i,lookbehind:!0,alias:"function"}],directive:{pattern:/^(#\s*)[a-z]+/,lookbehind:!0,alias:"keyword"},"directive-hash":/^#/,punctuation:/##|\\(?=[\r\n])/,expression:{pattern:/\S[\s\S]*/,inside:Prism.languages.c}}}});Prism.languages.insertBefore("c","function",{constant:/\b(?:EOF|NULL|SEEK_CUR|SEEK_END|SEEK_SET|__DATE__|__FILE__|__LINE__|__TIMESTAMP__|__TIME__|__func__|stderr|stdin|stdout)\b/});delete Prism.languages.c.boolean;(function(n){var e=/(?:"(?:\\(?:\r\n|[\s\S])|[^"\\\r\n])*"|'(?:\\(?:\r\n|[\s\S])|[^'\\\r\n])*')/;n.languages.css={comment:/\/\*[\s\S]*?\*\//,atrule:{pattern:RegExp("@[\\w-](?:"+/[^;{\s"']|\s+(?!\s)/.source+"|"+e.source+")*?"+/(?:;|(?=\s*\{))/.source),inside:{rule:/^@[\w-]+/,"selector-function-argument":{pattern:/(\bselector\s*\(\s*(?![\s)]))(?:[^()\s]|\s+(?![\s)])|\((?:[^()]|\([^()]*\))*\))+(?=\s*\))/,lookbehind:!0,alias:"selector"},keyword:{pattern:/(^|[^\w-])(?:and|not|only|or)(?![\w-])/,lookbehind:!0}}},url:{pattern:RegExp("\\burl\\((?:"+e.source+"|"+/(?:[^\\\r\n()"']|\\[\s\S])*/.source+")\\)","i"),greedy:!0,inside:{function:/^url/i,punctuation:/^\(|\)$/,string:{pattern:RegExp("^"+e.source+"$"),alias:"url"}}},selector:{pattern:RegExp(`(^|[{}\\s])[^{}\\s](?:[^{};"'\\s]|\\s+(?![\\s{])|`+e.source+")*(?=\\s*\\{)"),lookbehind:!0},string:{pattern:e,greedy:!0},property:{pattern:/(^|[^-\w\xA0-\uFFFF])(?!\s)[-_a-z\xA0-\uFFFF](?:(?!\s)[-\w\xA0-\uFFFF])*(?=\s*:)/i,lookbehind:!0},important:/!important\b/i,function:{pattern:/(^|[^-a-z0-9])[-a-z0-9]+(?=\()/i,lookbehind:!0},punctuation:/[(){};:,]/},n.languages.css.atrule.inside.rest=n.languages.css;var t=n.languages.markup;t&&(t.tag.addInlined("style","css"),t.tag.addAttribute("style","css"))})(Prism);Prism.languages.objectivec=Prism.languages.extend("c",{string:{pattern:/@?"(?:\\(?:\r\n|[\s\S])|[^"\\\r\n])*"/,greedy:!0},keyword:/\b(?:asm|auto|break|case|char|const|continue|default|do|double|else|enum|extern|float|for|goto|if|in|inline|int|long|register|return|self|short|signed|sizeof|static|struct|super|switch|typedef|typeof|union|unsigned|void|volatile|while)\b|(?:@interface|@end|@implementation|@protocol|@class|@public|@protected|@private|@property|@try|@catch|@finally|@throw|@synthesize|@dynamic|@selector)\b/,operator:/-[->]?|\+\+?|!=?|<<?=?|>>?=?|==?|&&?|\|\|?|[~^%?*\/@]/});delete Prism.languages.objectivec["class-name"];Prism.languages.objc=Prism.languages.objectivec;Prism.languages.sql={comment:{pattern:/(^|[^\\])(?:\/\*[\s\S]*?\*\/|(?:--|\/\/|#).*)/,lookbehind:!0},variable:[{pattern:/@(["'`])(?:\\[\s\S]|(?!\1)[^\\])+\1/,greedy:!0},/@[\w.$]+/],string:{pattern:/(^|[^@\\])("|')(?:\\[\s\S]|(?!\2)[^\\]|\2\2)*\2/,greedy:!0,lookbehind:!0},identifier:{pattern:/(^|[^@\\])`(?:\\[\s\S]|[^`\\]|``)*`/,greedy:!0,lookbehind:!0,inside:{punctuation:/^`|`$/}},function:/\b(?:AVG|COUNT|FIRST|FORMAT|LAST|LCASE|LEN|MAX|MID|MIN|MOD|NOW|ROUND|SUM|UCASE)(?=\s*\()/i,keyword:/\b(?:ACTION|ADD|AFTER|ALGORITHM|ALL|ALTER|ANALYZE|ANY|APPLY|AS|ASC|AUTHORIZATION|AUTO_INCREMENT|BACKUP|BDB|BEGIN|BERKELEYDB|BIGINT|BINARY|BIT|BLOB|BOOL|BOOLEAN|BREAK|BROWSE|BTREE|BULK|BY|CALL|CASCADED?|CASE|CHAIN|CHAR(?:ACTER|SET)?|CHECK(?:POINT)?|CLOSE|CLUSTERED|COALESCE|COLLATE|COLUMNS?|COMMENT|COMMIT(?:TED)?|COMPUTE|CONNECT|CONSISTENT|CONSTRAINT|CONTAINS(?:TABLE)?|CONTINUE|CONVERT|CREATE|CROSS|CURRENT(?:_DATE|_TIME|_TIMESTAMP|_USER)?|CURSOR|CYCLE|DATA(?:BASES?)?|DATE(?:TIME)?|DAY|DBCC|DEALLOCATE|DEC|DECIMAL|DECLARE|DEFAULT|DEFINER|DELAYED|DELETE|DELIMITERS?|DENY|DESC|DESCRIBE|DETERMINISTIC|DISABLE|DISCARD|DISK|DISTINCT|DISTINCTROW|DISTRIBUTED|DO|DOUBLE|DROP|DUMMY|DUMP(?:FILE)?|DUPLICATE|ELSE(?:IF)?|ENABLE|ENCLOSED|END|ENGINE|ENUM|ERRLVL|ERRORS|ESCAPED?|EXCEPT|EXEC(?:UTE)?|EXISTS|EXIT|EXPLAIN|EXTENDED|FETCH|FIELDS|FILE|FILLFACTOR|FIRST|FIXED|FLOAT|FOLLOWING|FOR(?: EACH ROW)?|FORCE|FOREIGN|FREETEXT(?:TABLE)?|FROM|FULL|FUNCTION|GEOMETRY(?:COLLECTION)?|GLOBAL|GOTO|GRANT|GROUP|HANDLER|HASH|HAVING|HOLDLOCK|HOUR|IDENTITY(?:COL|_INSERT)?|IF|IGNORE|IMPORT|INDEX|INFILE|INNER|INNODB|INOUT|INSERT|INT|INTEGER|INTERSECT|INTERVAL|INTO|INVOKER|ISOLATION|ITERATE|JOIN|KEYS?|KILL|LANGUAGE|LAST|LEAVE|LEFT|LEVEL|LIMIT|LINENO|LINES|LINESTRING|LOAD|LOCAL|LOCK|LONG(?:BLOB|TEXT)|LOOP|MATCH(?:ED)?|MEDIUM(?:BLOB|INT|TEXT)|MERGE|MIDDLEINT|MINUTE|MODE|MODIFIES|MODIFY|MONTH|MULTI(?:LINESTRING|POINT|POLYGON)|NATIONAL|NATURAL|NCHAR|NEXT|NO|NONCLUSTERED|NULLIF|NUMERIC|OFF?|OFFSETS?|ON|OPEN(?:DATASOURCE|QUERY|ROWSET)?|OPTIMIZE|OPTION(?:ALLY)?|ORDER|OUT(?:ER|FILE)?|OVER|PARTIAL|PARTITION|PERCENT|PIVOT|PLAN|POINT|POLYGON|PRECEDING|PRECISION|PREPARE|PREV|PRIMARY|PRINT|PRIVILEGES|PROC(?:EDURE)?|PUBLIC|PURGE|QUICK|RAISERROR|READS?|REAL|RECONFIGURE|REFERENCES|RELEASE|RENAME|REPEAT(?:ABLE)?|REPLACE|REPLICATION|REQUIRE|RESIGNAL|RESTORE|RESTRICT|RETURN(?:ING|S)?|REVOKE|RIGHT|ROLLBACK|ROUTINE|ROW(?:COUNT|GUIDCOL|S)?|RTREE|RULE|SAVE(?:POINT)?|SCHEMA|SECOND|SELECT|SERIAL(?:IZABLE)?|SESSION(?:_USER)?|SET(?:USER)?|SHARE|SHOW|SHUTDOWN|SIMPLE|SMALLINT|SNAPSHOT|SOME|SONAME|SQL|START(?:ING)?|STATISTICS|STATUS|STRIPED|SYSTEM_USER|TABLES?|TABLESPACE|TEMP(?:ORARY|TABLE)?|TERMINATED|TEXT(?:SIZE)?|THEN|TIME(?:STAMP)?|TINY(?:BLOB|INT|TEXT)|TOP?|TRAN(?:SACTIONS?)?|TRIGGER|TRUNCATE|TSEQUAL|TYPES?|UNBOUNDED|UNCOMMITTED|UNDEFINED|UNION|UNIQUE|UNLOCK|UNPIVOT|UNSIGNED|UPDATE(?:TEXT)?|USAGE|USE|USER|USING|VALUES?|VAR(?:BINARY|CHAR|CHARACTER|YING)|VIEW|WAITFOR|WARNINGS|WHEN|WHERE|WHILE|WITH(?: ROLLUP|IN)?|WORK|WRITE(?:TEXT)?|YEAR)\b/i,boolean:/\b(?:FALSE|NULL|TRUE)\b/i,number:/\b0x[\da-f]+\b|\b\d+(?:\.\d*)?|\B\.\d+\b/i,operator:/[-+*\/=%^~]|&&?|\|\|?|!=?|<(?:=>?|<|>)?|>[>=]?|\b(?:AND|BETWEEN|DIV|ILIKE|IN|IS|LIKE|NOT|OR|REGEXP|RLIKE|SOUNDS LIKE|XOR)\b/i,punctuation:/[;[\]()`,.]/};(function(n){var e=n.languages.powershell={comment:[{pattern:/(^|[^`])<#[\s\S]*?#>/,lookbehind:!0},{pattern:/(^|[^`])#.*/,lookbehind:!0}],string:[{pattern:/"(?:`[\s\S]|[^`"])*"/,greedy:!0,inside:null},{pattern:/'(?:[^']|'')*'/,greedy:!0}],namespace:/\[[a-z](?:\[(?:\[[^\]]*\]|[^\[\]])*\]|[^\[\]])*\]/i,boolean:/\$(?:false|true)\b/i,variable:/\$\w+\b/,function:[/\b(?:Add|Approve|Assert|Backup|Block|Checkpoint|Clear|Close|Compare|Complete|Compress|Confirm|Connect|Convert|ConvertFrom|ConvertTo|Copy|Debug|Deny|Disable|Disconnect|Dismount|Edit|Enable|Enter|Exit|Expand|Export|Find|ForEach|Format|Get|Grant|Group|Hide|Import|Initialize|Install|Invoke|Join|Limit|Lock|Measure|Merge|Move|New|Open|Optimize|Out|Ping|Pop|Protect|Publish|Push|Read|Receive|Redo|Register|Remove|Rename|Repair|Request|Reset|Resize|Resolve|Restart|Restore|Resume|Revoke|Save|Search|Select|Send|Set|Show|Skip|Sort|Split|Start|Step|Stop|Submit|Suspend|Switch|Sync|Tee|Test|Trace|Unblock|Undo|Uninstall|Unlock|Unprotect|Unpublish|Unregister|Update|Use|Wait|Watch|Where|Write)-[a-z]+\b/i,/\b(?:ac|cat|chdir|clc|cli|clp|clv|compare|copy|cp|cpi|cpp|cvpa|dbp|del|diff|dir|ebp|echo|epal|epcsv|epsn|erase|fc|fl|ft|fw|gal|gbp|gc|gci|gcs|gdr|gi|gl|gm|gp|gps|group|gsv|gu|gv|gwmi|iex|ii|ipal|ipcsv|ipsn|irm|iwmi|iwr|kill|lp|ls|measure|mi|mount|move|mp|mv|nal|ndr|ni|nv|ogv|popd|ps|pushd|pwd|rbp|rd|rdr|ren|ri|rm|rmdir|rni|rnp|rp|rv|rvpa|rwmi|sal|saps|sasv|sbp|sc|select|set|shcm|si|sl|sleep|sls|sort|sp|spps|spsv|start|sv|swmi|tee|trcm|type|write)\b/i],keyword:/\b(?:Begin|Break|Catch|Class|Continue|Data|Define|Do|DynamicParam|Else|ElseIf|End|Exit|Filter|Finally|For|ForEach|From|Function|If|InlineScript|Parallel|Param|Process|Return|Sequence|Switch|Throw|Trap|Try|Until|Using|Var|While|Workflow)\b/i,operator:{pattern:/(^|\W)(?:!|-(?:b?(?:and|x?or)|as|(?:Not)?(?:Contains|In|Like|Match)|eq|ge|gt|is(?:Not)?|Join|le|lt|ne|not|Replace|sh[lr])\b|-[-=]?|\+[+=]?|[*\/%]=?)/i,lookbehind:!0},punctuation:/[|{}[\];(),.]/};e.string[0].inside={function:{pattern:/(^|[^`])\$\((?:\$\([^\r\n()]*\)|(?!\$\()[^\r\n)])*\)/,lookbehind:!0,inside:e},boolean:e.boolean,variable:e.variable}})(Prism);var Bm={},zm;function $T(){return zm||(zm=1,Prism.languages.python={comment:{pattern:/(^|[^\\])#.*/,lookbehind:!0,greedy:!0},"string-interpolation":{pattern:/(?:f|fr|rf)(?:("""|''')[\s\S]*?\1|("|')(?:\\.|(?!\2)[^\\\r\n])*\2)/i,greedy:!0,inside:{interpolation:{pattern:/((?:^|[^{])(?:\{\{)*)\{(?!\{)(?:[^{}]|\{(?!\{)(?:[^{}]|\{(?!\{)(?:[^{}])+\})+\})+\}/,lookbehind:!0,inside:{"format-spec":{pattern:/(:)[^:(){}]+(?=\}$)/,lookbehind:!0},"conversion-option":{pattern:/![sra](?=[:}]$)/,alias:"punctuation"},rest:null}},string:/[\s\S]+/}},"triple-quoted-string":{pattern:/(?:[rub]|br|rb)?("""|''')[\s\S]*?\1/i,greedy:!0,alias:"string"},string:{pattern:/(?:[rub]|br|rb)?("|')(?:\\.|(?!\1)[^\\\r\n])*\1/i,greedy:!0},function:{pattern:/((?:^|\s)def[ \t]+)[a-zA-Z_]\w*(?=\s*\()/g,lookbehind:!0},"class-name":{pattern:/(\bclass\s+)\w+/i,lookbehind:!0},decorator:{pattern:/(^[\t ]*)@\w+(?:\.\w+)*/m,lookbehind:!0,alias:["annotation","punctuation"],inside:{punctuation:/\./}},keyword:/\b(?:_(?=\s*:)|and|as|assert|async|await|break|case|class|continue|def|del|elif|else|except|exec|finally|for|from|global|if|import|in|is|lambda|match|nonlocal|not|or|pass|print|raise|return|try|while|with|yield)\b/,builtin:/\b(?:__import__|abs|all|any|apply|ascii|basestring|bin|bool|buffer|bytearray|bytes|callable|chr|classmethod|cmp|coerce|compile|complex|delattr|dict|dir|divmod|enumerate|eval|execfile|file|filter|float|format|frozenset|getattr|globals|hasattr|hash|help|hex|id|input|int|intern|isinstance|issubclass|iter|len|list|locals|long|map|max|memoryview|min|next|object|oct|open|ord|pow|property|range|raw_input|reduce|reload|repr|reversed|round|set|setattr|slice|sorted|staticmethod|str|sum|super|tuple|type|unichr|unicode|vars|xrange|zip)\b/,boolean:/\b(?:False|None|True)\b/,number:/\b0(?:b(?:_?[01])+|o(?:_?[0-7])+|x(?:_?[a-f0-9])+)\b|(?:\b\d+(?:_\d+)*(?:\.(?:\d+(?:_\d+)*)?)?|\B\.\d+(?:_\d+)*)(?:e[+-]?\d+(?:_\d+)*)?j?(?!\w)/i,operator:/[-+%=]=?|!=|:=|\*\*?=?|\/\/?=?|<[<=>]?|>[=>]?|[&|^~]/,punctuation:/[{}[\];(),.:]/},Prism.languages.python["string-interpolation"].inside.interpolation.inside.rest=Prism.languages.python,Prism.languages.py=Prism.languages.python),Bm}$T();var Wm={},Um;function e1(){return Um||(Um=1,function(n){for(var e=/\/\*(?:[^*/]|\*(?!\/)|\/(?!\*)|<self>)*\*\//.source,t=0;t<2;t++)e=e.replace(/<self>/g,function(){return e});e=e.replace(/<self>/g,function(){return/[^\s\S]/.source}),n.languages.rust={comment:[{pattern:RegExp(/(^|[^\\])/.source+e),lookbehind:!0,greedy:!0},{pattern:/(^|[^\\:])\/\/.*/,lookbehind:!0,greedy:!0}],string:{pattern:/b?"(?:\\[\s\S]|[^\\"])*"|b?r(#*)"(?:[^"]|"(?!\1))*"\1/,greedy:!0},char:{pattern:/b?'(?:\\(?:x[0-7][\da-fA-F]|u\{(?:[\da-fA-F]_*){1,6}\}|.)|[^\\\r\n\t'])'/,greedy:!0},attribute:{pattern:/#!?\[(?:[^\[\]"]|"(?:\\[\s\S]|[^\\"])*")*\]/,greedy:!0,alias:"attr-name",inside:{string:null}},"closure-params":{pattern:/([=(,:]\s*|\bmove\s*)\|[^|]*\||\|[^|]*\|(?=\s*(?:\{|->))/,lookbehind:!0,greedy:!0,inside:{"closure-punctuation":{pattern:/^\||\|$/,alias:"punctuation"},rest:null}},"lifetime-annotation":{pattern:/'\w+/,alias:"symbol"},"fragment-specifier":{pattern:/(\$\w+:)[a-z]+/,lookbehind:!0,alias:"punctuation"},variable:/\$\w+/,"function-definition":{pattern:/(\bfn\s+)\w+/,lookbehind:!0,alias:"function"},"type-definition":{pattern:/(\b(?:enum|struct|trait|type|union)\s+)\w+/,lookbehind:!0,alias:"class-name"},"module-declaration":[{pattern:/(\b(?:crate|mod)\s+)[a-z][a-z_\d]*/,lookbehind:!0,alias:"namespace"},{pattern:/(\b(?:crate|self|super)\s*)::\s*[a-z][a-z_\d]*\b(?:\s*::(?:\s*[a-z][a-z_\d]*\s*::)*)?/,lookbehind:!0,alias:"namespace",inside:{punctuation:/::/}}],keyword:[/\b(?:Self|abstract|as|async|await|become|box|break|const|continue|crate|do|dyn|else|enum|extern|final|fn|for|if|impl|in|let|loop|macro|match|mod|move|mut|override|priv|pub|ref|return|self|static|struct|super|trait|try|type|typeof|union|unsafe|unsized|use|virtual|where|while|yield)\b/,/\b(?:bool|char|f(?:32|64)|[ui](?:8|16|32|64|128|size)|str)\b/],function:/\b[a-z_]\w*(?=\s*(?:::\s*<|\())/,macro:{pattern:/\b\w+!/,alias:"property"},constant:/\b[A-Z_][A-Z_\d]+\b/,"class-name":/\b[A-Z]\w*\b/,namespace:{pattern:/(?:\b[a-z][a-z_\d]*\s*::\s*)*\b[a-z][a-z_\d]*\s*::(?!\s*<)/,inside:{punctuation:/::/}},number:/\b(?:0x[\dA-Fa-f](?:_?[\dA-Fa-f])*|0o[0-7](?:_?[0-7])*|0b[01](?:_?[01])*|(?:(?:\d(?:_?\d)*)?\.)?\d(?:_?\d)*(?:[Ee][+-]?\d+)?)(?:_?(?:f32|f64|[iu](?:8|16|32|64|size)?))?\b/,boolean:/\b(?:false|true)\b/,punctuation:/->|\.\.=|\.{1,3}|::|[{}[\];(),:]/,operator:/[-+*\/%!^]=?|=[=>]?|&[&=]?|\|[|=]?|<<?=?|>>?=?|[@?]/},n.languages.rust["closure-params"].inside.rest=n.languages.rust,n.languages.rust.attribute.inside.string=n.languages.rust.string}(Prism)),Wm}e1();Prism.languages.swift={comment:{pattern:/(^|[^\\:])(?:\/\/.*|\/\*(?:[^/*]|\/(?!\*)|\*(?!\/)|\/\*(?:[^*]|\*(?!\/))*\*\/)*\*\/)/,lookbehind:!0,greedy:!0},"string-literal":[{pattern:RegExp(/(^|[^"#])/.source+"(?:"+/"(?:\\(?:\((?:[^()]|\([^()]*\))*\)|\r\n|[^(])|[^\\\r\n"])*"/.source+"|"+/"""(?:\\(?:\((?:[^()]|\([^()]*\))*\)|[^(])|[^\\"]|"(?!""))*"""/.source+")"+/(?!["#])/.source),lookbehind:!0,greedy:!0,inside:{interpolation:{pattern:/(\\\()(?:[^()]|\([^()]*\))*(?=\))/,lookbehind:!0,inside:null},"interpolation-punctuation":{pattern:/^\)|\\\($/,alias:"punctuation"},punctuation:/\\(?=[\r\n])/,string:/[\s\S]+/}},{pattern:RegExp(/(^|[^"#])(#+)/.source+"(?:"+/"(?:\\(?:#+\((?:[^()]|\([^()]*\))*\)|\r\n|[^#])|[^\\\r\n])*?"/.source+"|"+/"""(?:\\(?:#+\((?:[^()]|\([^()]*\))*\)|[^#])|[^\\])*?"""/.source+")\\2"),lookbehind:!0,greedy:!0,inside:{interpolation:{pattern:/(\\#+\()(?:[^()]|\([^()]*\))*(?=\))/,lookbehind:!0,inside:null},"interpolation-punctuation":{pattern:/^\)|\\#+\($/,alias:"punctuation"},string:/[\s\S]+/}}],directive:{pattern:RegExp(/#/.source+"(?:"+(/(?:elseif|if)\b/.source+"(?:[ ]*"+/(?:![ \t]*)?(?:\b\w+\b(?:[ \t]*\((?:[^()]|\([^()]*\))*\))?|\((?:[^()]|\([^()]*\))*\))(?:[ \t]*(?:&&|\|\|))?/.source+")+")+"|"+/(?:else|endif)\b/.source+")"),alias:"property",inside:{"directive-name":/^#\w+/,boolean:/\b(?:false|true)\b/,number:/\b\d+(?:\.\d+)*\b/,operator:/!|&&|\|\||[<>]=?/,punctuation:/[(),]/}},literal:{pattern:/#(?:colorLiteral|column|dsohandle|file(?:ID|Literal|Path)?|function|imageLiteral|line)\b/,alias:"constant"},"other-directive":{pattern:/#\w+\b/,alias:"property"},attribute:{pattern:/@\w+/,alias:"atrule"},"function-definition":{pattern:/(\bfunc\s+)\w+/,lookbehind:!0,alias:"function"},label:{pattern:/\b(break|continue)\s+\w+|\b[a-zA-Z_]\w*(?=\s*:\s*(?:for|repeat|while)\b)/,lookbehind:!0,alias:"important"},keyword:/\b(?:Any|Protocol|Self|Type|actor|as|assignment|associatedtype|associativity|async|await|break|case|catch|class|continue|convenience|default|defer|deinit|didSet|do|dynamic|else|enum|extension|fallthrough|fileprivate|final|for|func|get|guard|higherThan|if|import|in|indirect|infix|init|inout|internal|is|isolated|lazy|left|let|lowerThan|mutating|none|nonisolated|nonmutating|open|operator|optional|override|postfix|precedencegroup|prefix|private|protocol|public|repeat|required|rethrows|return|right|safe|self|set|some|static|struct|subscript|super|switch|throw|throws|try|typealias|unowned|unsafe|var|weak|where|while|willSet)\b/,boolean:/\b(?:false|true)\b/,nil:{pattern:/\bnil\b/,alias:"constant"},"short-argument":/\$\d+\b/,omit:{pattern:/\b_\b/,alias:"keyword"},number:/\b(?:[\d_]+(?:\.[\de_]+)?|0x[a-f0-9_]+(?:\.[a-f0-9p_]+)?|0b[01_]+|0o[0-7_]+)\b/i,"class-name":/\b[A-Z](?:[A-Z_\d]*[a-z]\w*)?\b/,function:/\b[a-z_]\w*(?=\s*\()/i,constant:/\b(?:[A-Z_]{2,}|k[A-Z][A-Za-z_]+)\b/,operator:/[-+*/%=!<>&|^~?]+|\.[.\-+*/%=!<>&|^~?]+/,punctuation:/[{}[\]();,.:\\]/};Prism.languages.swift["string-literal"].forEach(function(n){n.inside.interpolation.inside=Prism.languages.swift});var Km={},Hm;function t1(){return Hm||(Hm=1,function(n){n.languages.typescript=n.languages.extend("javascript",{"class-name":{pattern:/(\b(?:class|extends|implements|instanceof|interface|new|type)\s+)(?!keyof\b)(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?:\s*<(?:[^<>]|<(?:[^<>]|<[^<>]*>)*>)*>)?/,lookbehind:!0,greedy:!0,inside:null},builtin:/\b(?:Array|Function|Promise|any|boolean|console|never|number|string|symbol|unknown)\b/}),n.languages.typescript.keyword.push(/\b(?:abstract|declare|is|keyof|readonly|require)\b/,/\b(?:asserts|infer|interface|module|namespace|type)\b(?=\s*(?:[{_$a-zA-Z\xA0-\uFFFF]|$))/,/\btype\b(?=\s*(?:[\{*]|$))/),delete n.languages.typescript.parameter,delete n.languages.typescript["literal-property"];var e=n.languages.extend("typescript",{});delete e["class-name"],n.languages.typescript["class-name"].inside=e,n.languages.insertBefore("typescript","function",{decorator:{pattern:/@[$\w\xA0-\uFFFF]+/,inside:{at:{pattern:/^@/,alias:"operator"},function:/^[\s\S]+/}},"generic-function":{pattern:/#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*\s*<(?:[^<>]|<(?:[^<>]|<[^<>]*>)*>)*>(?=\s*\()/,greedy:!0,inside:{function:/^#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*/,generic:{pattern:/<[\s\S]+/,alias:"class-name",inside:e}}}}),n.languages.ts=n.languages.typescript}(Prism)),Km}t1();var Ym={},Vm;function n1(){return Vm||(Vm=1,function(n){var e=/\b(?:abstract|assert|boolean|break|byte|case|catch|char|class|const|continue|default|do|double|else|enum|exports|extends|final|finally|float|for|goto|if|implements|import|instanceof|int|interface|long|module|native|new|non-sealed|null|open|opens|package|permits|private|protected|provides|public|record(?!\s*[(){}[\]<>=%~.:,;?+\-*/&|^])|requires|return|sealed|short|static|strictfp|super|switch|synchronized|this|throw|throws|to|transient|transitive|try|uses|var|void|volatile|while|with|yield)\b/,t=/(?:[a-z]\w*\s*\.\s*)*(?:[A-Z]\w*\s*\.\s*)*/.source,r={pattern:RegExp(/(^|[^\w.])/.source+t+/[A-Z](?:[\d_A-Z]*[a-z]\w*)?\b/.source),lookbehind:!0,inside:{namespace:{pattern:/^[a-z]\w*(?:\s*\.\s*[a-z]\w*)*(?:\s*\.)?/,inside:{punctuation:/\./}},punctuation:/\./}};n.languages.java=n.languages.extend("clike",{string:{pattern:/(^|[^\\])"(?:\\.|[^"\\\r\n])*"/,lookbehind:!0,greedy:!0},"class-name":[r,{pattern:RegExp(/(^|[^\w.])/.source+t+/[A-Z]\w*(?=\s+\w+\s*[;,=()]|\s*(?:\[[\s,]*\]\s*)?::\s*new\b)/.source),lookbehind:!0,inside:r.inside},{pattern:RegExp(/(\b(?:class|enum|extends|implements|instanceof|interface|new|record|throws)\s+)/.source+t+/[A-Z]\w*\b/.source),lookbehind:!0,inside:r.inside}],keyword:e,function:[n.languages.clike.function,{pattern:/(::\s*)[a-z_]\w*/,lookbehind:!0}],number:/\b0b[01][01_]*L?\b|\b0x(?:\.[\da-f_p+-]+|[\da-f_]+(?:\.[\da-f_p+-]+)?)\b|(?:\b\d[\d_]*(?:\.[\d_]*)?|\B\.\d[\d_]*)(?:e[+-]?\d[\d_]*)?[dfl]?/i,operator:{pattern:/(^|[^.])(?:<<=?|>>>?=?|->|--|\+\+|&&|\|\||::|[?:~]|[-+*/%&|^!=<>]=?)/m,lookbehind:!0},constant:/\b[A-Z][A-Z_\d]+\b/}),n.languages.insertBefore("java","string",{"triple-quoted-string":{pattern:/"""[ \t]*[\r\n](?:(?:"|"")?(?:\\.|[^"\\]))*"""/,greedy:!0,alias:"string"},char:{pattern:/'(?:\\.|[^'\\\r\n]){1,6}'/,greedy:!0}}),n.languages.insertBefore("java","class-name",{annotation:{pattern:/(^|[^.])@\w+(?:\s*\.\s*\w+)*/,lookbehind:!0,alias:"punctuation"},generics:{pattern:/<(?:[\w\s,.?]|&(?!&)|<(?:[\w\s,.?]|&(?!&)|<(?:[\w\s,.?]|&(?!&)|<(?:[\w\s,.?]|&(?!&))*>)*>)*>)*>/,inside:{"class-name":r,keyword:e,punctuation:/[<>(),.:]/,operator:/[?&|]/}},import:[{pattern:RegExp(/(\bimport\s+)/.source+t+/(?:[A-Z]\w*|\*)(?=\s*;)/.source),lookbehind:!0,inside:{namespace:r.inside.namespace,punctuation:/\./,operator:/\*/,"class-name":/\w+/}},{pattern:RegExp(/(\bimport\s+static\s+)/.source+t+/(?:\w+|\*)(?=\s*;)/.source),lookbehind:!0,alias:"static",inside:{namespace:r.inside.namespace,static:/\b\w+$/,punctuation:/\./,operator:/\*/,"class-name":/\w+/}}],namespace:{pattern:RegExp(/(\b(?:exports|import(?:\s+static)?|module|open|opens|package|provides|requires|to|transitive|uses|with)\s+)(?!<keyword>)[a-z]\w*(?:\.[a-z]\w*)*\.?/.source.replace(/<keyword>/g,function(){return e.source})),lookbehind:!0,inside:{punctuation:/\./}}})}(Prism)),Ym}n1();var Gm={},Zm;function r1(){return Zm||(Zm=1,function(n){var e=/\b(?:alignas|alignof|asm|auto|bool|break|case|catch|char|char16_t|char32_t|char8_t|class|co_await|co_return|co_yield|compl|concept|const|const_cast|consteval|constexpr|constinit|continue|decltype|default|delete|do|double|dynamic_cast|else|enum|explicit|export|extern|final|float|for|friend|goto|if|import|inline|int|int16_t|int32_t|int64_t|int8_t|long|module|mutable|namespace|new|noexcept|nullptr|operator|override|private|protected|public|register|reinterpret_cast|requires|return|short|signed|sizeof|static|static_assert|static_cast|struct|switch|template|this|thread_local|throw|try|typedef|typeid|typename|uint16_t|uint32_t|uint64_t|uint8_t|union|unsigned|using|virtual|void|volatile|wchar_t|while)\b/,t=/\b(?!<keyword>)\w+(?:\s*\.\s*\w+)*\b/.source.replace(/<keyword>/g,function(){return e.source});n.languages.cpp=n.languages.extend("c",{"class-name":[{pattern:RegExp(/(\b(?:class|concept|enum|struct|typename)\s+)(?!<keyword>)\w+/.source.replace(/<keyword>/g,function(){return e.source})),lookbehind:!0},/\b[A-Z]\w*(?=\s*::\s*\w+\s*\()/,/\b[A-Z_]\w*(?=\s*::\s*~\w+\s*\()/i,/\b\w+(?=\s*<(?:[^<>]|<(?:[^<>]|<[^<>]*>)*>)*>\s*::\s*\w+\s*\()/],keyword:e,number:{pattern:/(?:\b0b[01']+|\b0x(?:[\da-f']+(?:\.[\da-f']*)?|\.[\da-f']+)(?:p[+-]?[\d']+)?|(?:\b[\d']+(?:\.[\d']*)?|\B\.[\d']+)(?:e[+-]?[\d']+)?)[ful]{0,4}/i,greedy:!0},operator:/>>=?|<<=?|->|--|\+\+|&&|\|\||[?:~]|<=>|[-+*/%&|^!=<>]=?|\b(?:and|and_eq|bitand|bitor|not|not_eq|or|or_eq|xor|xor_eq)\b/,boolean:/\b(?:false|true)\b/}),n.languages.insertBefore("cpp","string",{module:{pattern:RegExp(/(\b(?:import|module)\s+)/.source+"(?:"+/"(?:\\(?:\r\n|[\s\S])|[^"\\\r\n])*"|<[^<>\r\n]*>/.source+"|"+/<mod-name>(?:\s*:\s*<mod-name>)?|:\s*<mod-name>/.source.replace(/<mod-name>/g,function(){return t})+")"),lookbehind:!0,greedy:!0,inside:{string:/^[<"][\s\S]+/,operator:/:/,punctuation:/\./}},"raw-string":{pattern:/R"([^()\\ ]{0,16})\([\s\S]*?\)\1"/,alias:"string",greedy:!0}}),n.languages.insertBefore("cpp","keyword",{"generic-function":{pattern:/\b(?!operator\b)[a-z_]\w*\s*<(?:[^<>]|<[^<>]*>)*>(?=\s*\()/i,inside:{function:/^\w+/,generic:{pattern:/<[\s\S]+/,alias:"class-name",inside:n.languages.cpp}}}}),n.languages.insertBefore("cpp","operator",{"double-colon":{pattern:/::/,alias:"punctuation"}}),n.languages.insertBefore("cpp","class-name",{"base-clause":{pattern:/(\b(?:class|struct)\s+\w+\s*:\s*)[^;{}"'\s]+(?:\s+[^;{}"'\s]+)*(?=\s*[;{])/,lookbehind:!0,greedy:!0,inside:n.languages.extend("cpp",{})}}),n.languages.insertBefore("inside","double-colon",{"class-name":/\b[a-z_]\w*\b(?!\s*::)/i},n.languages.cpp["base-clause"])}(Prism)),Gm}r1();function s1(n){return n&&n.__esModule&&Object.prototype.hasOwnProperty.call(n,"default")?n.default:n}var mo=s1(function(n){const e=new URLSearchParams;e.append("code",n);for(let t=1;t<arguments.length;t++)e.append("v",arguments[t]);throw Error(`Minified Lexical error #${n}; visit https://lexical.dev/docs/error?${e} for the full message or use the non-minified dev environment for full errors and additional helpful warnings.`)});const ea=globalThis.Prism||window.Prism,Jm=n=>{try{return!!n&&ea.languages.hasOwnProperty(n)}catch{return!1}};function jC(n,e){for(const t of n.childNodes){if(lt(t)&&t.tagName===e)return!0;jC(t,e)}return!1}const Go="data-language",Dl="data-highlight-language";let ir=class PC extends De{static getType(){return"code"}static clone(e){return new PC(e.__language,e.__key)}constructor(e,t){super(t),this.__language=e,this.__isSyntaxHighlightSupported=Jm(e)}createDOM(e){const t=document.createElement("code");_e(t,e.theme.code),t.setAttribute("spellcheck","false");const r=this.getLanguage();return r&&(t.setAttribute(Go,r),this.getIsSyntaxHighlightSupported()&&t.setAttribute(Dl,r)),t}updateDOM(e,t,r){const s=this.__language,o=e.__language;return s?s!==o&&(t.setAttribute(Go,s),this.__isSyntaxHighlightSupported&&t.setAttribute(Dl,s)):o&&(t.removeAttribute(Go),e.__isSyntaxHighlightSupported&&t.removeAttribute(Dl)),!1}exportDOM(e){const t=document.createElement("pre");_e(t,e._config.theme.code),t.setAttribute("spellcheck","false");const r=this.getLanguage();return r&&(t.setAttribute(Go,r),this.getIsSyntaxHighlightSupported()&&t.setAttribute(Dl,r)),{element:t}}static importDOM(){return{code:e=>e.textContent!=null&&(/\r?\n/.test(e.textContent)||jC(e,"BR"))?{conversion:Xm,priority:1}:null,div:()=>({conversion:o1,priority:1}),pre:()=>({conversion:Xm,priority:0}),table:e=>Lu(e)?{conversion:i1,priority:3}:null,td:e=>{const t=e,r=t.closest("table");return t.classList.contains("js-file-line")||r&&Lu(r)?{conversion:Qm,priority:3}:null},tr:e=>{const t=e.closest("table");return t&&Lu(t)?{conversion:Qm,priority:3}:null}}}static importJSON(e){const t=wn(e.language);return t.setFormat(e.format),t.setIndent(e.indent),t.setDirection(e.direction),t}exportJSON(){return{...super.exportJSON(),language:this.getLanguage(),type:"code",version:1}}insertNewAfter(e,t=!0){const r=this.getChildren(),s=r.length;if(s>=2&&r[s-1].getTextContent()===`
26
- `&&r[s-2].getTextContent()===`
27
- `&&e.isCollapsed()&&e.anchor.key===this.__key&&e.anchor.offset===s){r[s-1].remove(),r[s-2].remove();const a=re();return this.insertAfter(a,t),a}const{anchor:o,focus:i}=e,l=(o.isBefore(i)?o:i).getNode();if(W(l)){let a=ds(l);const c=[];for(;;)if(nt(a))c.push(qt()),a=a.getNextSibling();else{if(!Be(a))break;{let A=0;const b=a.getTextContent(),y=a.getTextContentSize();for(;A<y&&b[A]===" ";)A++;if(A!==0&&c.push(Fh(" ".repeat(A))),A!==y)break;a=a.getNextSibling()}}const u=l.splitText(o.offset)[0],d=o.offset===0?0:1,f=u.getIndexWithinParent()+d,g=l.getParentOrThrow(),h=[Ut(),...c];g.splice(f,0,h);const m=c[c.length-1];m?m.select():o.offset===0?u.selectPrevious():u.getNextSibling().selectNext(0,0)}if(Yt(l)){const{offset:a}=e.anchor;l.splice(a,0,[Ut()]),l.select(a+1,a+1)}return null}canIndent(){return!1}collapseAtStart(){const e=re();return this.getChildren().forEach(t=>e.append(t)),this.replace(e),!0}setLanguage(e){const t=this.getWritable();t.__language=e,t.__isSyntaxHighlightSupported=Jm(e)}getLanguage(){return this.getLatest().__language}getIsSyntaxHighlightSupported(){return this.getLatest().__isSyntaxHighlightSupported}};function wn(n){return Me(new ir(n))}function Yt(n){return n instanceof ir}function Xm(n){return{node:wn(n.getAttribute(Go))}}function o1(n){const e=n,t=qm(e);return t||function(r){let s=r.parentElement;for(;s!==null;){if(qm(s))return!0;s=s.parentElement}return!1}(e)?{node:t?wn():null}:{node:null}}function i1(){return{node:wn()}}function Qm(){return{node:null}}function qm(n){return n.style.fontFamily.match("monospace")!==null}function Lu(n){return n.classList.contains("js-file-line-container")}const l1="javascript",a1={c:"C",clike:"C-like",cpp:"C++",css:"CSS",html:"HTML",java:"Java",js:"JavaScript",markdown:"Markdown",objc:"Objective-C",plain:"Plain Text",powershell:"PowerShell",py:"Python",rust:"Rust",sql:"SQL",swift:"Swift",typescript:"TypeScript",xml:"XML"},$m={cpp:"cpp",java:"java",javascript:"js",md:"markdown",plaintext:"plain",python:"py",text:"plain",ts:"typescript"};let vs=class FC extends pt{constructor(e,t,r){super(e,r),this.__highlightType=t}static getType(){return"code-highlight"}static clone(e){return new FC(e.__text,e.__highlightType||void 0,e.__key)}getHighlightType(){return this.getLatest().__highlightType}canHaveFormat(){return!1}createDOM(e){const t=super.createDOM(e),r=Mu(e.theme,this.__highlightType);return _e(t,r),t}updateDOM(e,t,r){const s=super.updateDOM(e,t,r),o=Mu(r.theme,e.__highlightType),i=Mu(r.theme,this.__highlightType);return o!==i&&(o&&Gn(t,o),i&&_e(t,i)),s}static importJSON(e){const t=Fh(e.text,e.highlightType);return t.setFormat(e.format),t.setDetail(e.detail),t.setMode(e.mode),t.setStyle(e.style),t}exportJSON(){return{...super.exportJSON(),highlightType:this.getHighlightType(),type:"code-highlight",version:1}}setFormat(e){return this}isParentRequired(){return!0}createParentElementNode(){return wn()}};function Mu(n,e){return e&&n&&n.codeHighlight&&n.codeHighlight[e]}function Fh(n,e){return Me(new vs(n,e))}function Be(n){return n instanceof vs}function ds(n){let e=n,t=n;for(;Be(t)||nt(t);)e=t,t=t.getPreviousSibling();return e}function li(n){let e=n,t=n;for(;Be(t)||nt(t);)e=t,t=t.getNextSibling();return e}const c1={defaultLanguage:l1,tokenize(n,e){return ea.tokenize(n,ea.languages[e||""]||ea.languages[this.defaultLanguage])}};function u1(n,e){let t=null,r=null,s=n,o=e,i=n.getTextContent();for(;;){if(o===0){if(s=s.getPreviousSibling(),s===null)break;if(Be(s)||nt(s)||Ee(s)||mo(167),Ee(s)){t={node:s,offset:1};break}o=Math.max(0,s.getTextContentSize()-1),i=s.getTextContent()}else o--;const a=i[o];Be(s)&&a!==" "&&(r={node:s,offset:o})}if(r!==null)return r;let l=null;if(e<n.getTextContentSize())Be(n)&&(l=n.getTextContent()[e]);else{const a=n.getNextSibling();Be(a)&&(l=a.getTextContent()[0])}if(l!==null&&l!==" ")return t;{const a=function(c,u){let d=c,f=u,g=c.getTextContent(),h=c.getTextContentSize();for(;;){if(!Be(d)||f===h){if(d=d.getNextSibling(),d===null||Ee(d))return null;Be(d)&&(f=0,g=d.getTextContent(),h=d.getTextContentSize())}if(Be(d)){if(g[f]!==" ")return{node:d,offset:f};f++}}}(n,e);return a!==null?a:t}}function d1(n){const e=li(n);return Ee(e)&&mo(168),e}function eA(n,e,t){const r=n.getParent();Yt(r)?BC(r,e,t):Be(n)&&n.replace(Fe(n.__text))}function f1(n,e){const t=e.getElementByKey(n.getKey());if(t===null)return;const r=n.getChildren(),s=r.length;if(s===t.__cachedChildrenLength)return;t.__cachedChildrenLength=s;let o="1",i=1;for(let l=0;l<s;l++)Ee(r[l])&&(o+=`
28
- `+ ++i);t.setAttribute("data-gutter",o)}const Ou=new Set;function BC(n,e,t){const r=n.getKey();Ou.has(r)||(Ou.add(r),n.getLanguage()===void 0&&n.setLanguage(t.defaultLanguage),e.update(()=>{(function(s,o){const i=ue(s);if(!Yt(i)||!i.isAttached())return;const l=R();if(!M(l))return void o();const a=l.anchor,c=a.offset,u=a.type==="element"&&Ee(i.getChildAtIndex(a.offset-1));let d=0;if(!u){const f=a.getNode();d=c+f.getPreviousSiblings().reduce((g,h)=>g+h.getTextContentSize(),0)}if(o()){if(u)return void a.getNode().select(c,c);i.getChildren().some(f=>{const g=W(f);if(g||Ee(f)){const h=f.getTextContentSize();if(g&&h>=d)return f.select(d,d),!0;d-=h}return!1})}})(r,()=>{const s=ue(r);if(!Yt(s)||!s.isAttached())return!1;const o=s.getTextContent(),i=qd(t.tokenize(o,s.getLanguage()||t.defaultLanguage)),l=function(d,f){let g=0;for(;g<d.length&&tA(d[g],f[g]);)g++;const h=d.length,m=f.length,A=Math.min(h,m)-g;let b=0;for(;b<A;)if(b++,!tA(d[h-b],f[m-b])){b--;break}const y=g,w=h-b,v=f.slice(g,m-b);return{from:y,nodesForReplacement:v,to:w}}(s.getChildren(),i),{from:a,to:c,nodesForReplacement:u}=l;return!(a===c&&!u.length)&&(n.splice(a,c-a,u),!0)})},{onUpdate:()=>{Ou.delete(r)},skipTransforms:!0}))}function qd(n,e){const t=[];for(const r of n)if(typeof r=="string"){const s=r.split(/(\n|\t)/),o=s.length;for(let i=0;i<o;i++){const l=s[i];l===`
29
- `||l===`\r
30
- `?t.push(Ut()):l===" "?t.push(qt()):l.length>0&&t.push(Fh(l,e))}}else{const{content:s}=r;typeof s=="string"?t.push(...qd([s],r.type)):Array.isArray(s)&&t.push(...qd(s,r.type))}return t}function tA(n,e){return Be(n)&&Be(e)&&n.__text===e.__text&&n.__highlightType===e.__highlightType||nt(n)&&nt(e)||Ee(n)&&Ee(e)}function _i(n){if(!M(n))return!1;const e=n.anchor.getNode(),t=n.focus.getNode();if(e.is(t)&&Yt(e))return!0;const r=e.getParent();return Yt(r)&&r.is(t.getParent())}function zC(n){const e=n.getNodes(),t=[[]];if(e.length===1&&Yt(e[0]))return t;let r=t[0];for(let s=0;s<e.length;s++){const o=e[s];Be(o)||nt(o)||Ee(o)||mo(169),Ee(o)?s!==0&&r.length>0&&(r=[],t.push(r)):r.push(o)}return t}function nA(n){const e=R();if(!M(e)||!_i(e))return!1;const t=zC(e),r=t.length;if(t.length>1){for(let i=0;i<r;i++){const l=t[i];if(l.length>0){let a=l[0];i===0&&(a=ds(a)),a!==null&&(n===Pn?a.insertBefore(qt()):nt(a)&&a.remove())}}return!0}const s=e.getNodes()[0];if(Yt(s)||Be(s)||nt(s)||Ee(s)||mo(171),Yt(s))return n===Pn&&e.insertNodes([qt()]),!0;const o=ds(s);return o===null&&mo(172),n===Pn?Ee(o)?o.insertAfter(qt()):o.insertBefore(qt()):nt(o)&&o.remove(),!0}function rA(n,e){const t=R();if(!M(t))return!1;const{anchor:r,focus:s}=t,o=r.offset,i=s.offset,l=r.getNode(),a=s.getNode(),c=n===zn;if(!_i(t)||!Be(l)&&!nt(l)||!Be(a)&&!nt(a))return!1;if(!e.altKey){if(t.isCollapsed()){const b=l.getParentOrThrow();if(c&&o===0&&l.getPreviousSibling()===null){if(b.getPreviousSibling()===null)return b.selectPrevious(),e.preventDefault(),!0}else if(!c&&o===l.getTextContentSize()&&l.getNextSibling()===null&&b.getNextSibling()===null)return b.selectNext(),e.preventDefault(),!0}return!1}let u,d;if(l.isBefore(a)?(u=ds(l),d=li(a)):(u=ds(a),d=li(l)),u==null||d==null)return!1;const f=u.getNodesBetween(d);for(let b=0;b<f.length;b++){const y=f[b];if(!Be(y)&&!nt(y)&&!Ee(y))return!1}e.preventDefault(),e.stopPropagation();const g=c?u.getPreviousSibling():d.getNextSibling();if(!Ee(g))return!0;const h=c?g.getPreviousSibling():g.getNextSibling();if(h==null)return!0;const m=Be(h)||nt(h)||Ee(h)?c?ds(h):li(h):null;let A=m??h;return g.remove(),f.forEach(b=>b.remove()),n===zn?(f.forEach(b=>A.insertBefore(b)),A.insertBefore(g)):(A.insertAfter(g),A=g,f.forEach(b=>{A.insertAfter(b),A=b})),t.setTextNodeRange(l,o,a,i),!0}function sA(n,e){const t=R();if(!M(t))return!1;const{anchor:r,focus:s}=t,o=r.getNode(),i=s.getNode(),l=n===sa;if(!_i(t)||!Be(o)&&!nt(o)||!Be(i)&&!nt(i))return!1;if(l){const a=u1(i,s.offset);if(a!==null){const{node:c,offset:u}=a;Ee(c)?c.selectNext(0,0):t.setTextNodeRange(c,u,c,u)}else i.getParentOrThrow().selectStart()}else d1(i).select();return e.preventDefault(),e.stopPropagation(),!0}function h1(n,e){if(!n.hasNodes([ir,vs]))throw new Error("CodeHighlightPlugin: CodeNode or CodeHighlightNode not registered on editor");return e==null&&(e=c1),ve(n.registerMutationListener(ir,t=>{n.update(()=>{for(const[r,s]of t)if(s!=="destroyed"){const o=ue(r);o!==null&&f1(o,n)}})},{skipInitialization:!1}),n.registerNodeTransform(ir,t=>BC(t,n,e)),n.registerNodeTransform(pt,t=>eA(t,n,e)),n.registerNodeTransform(vs,t=>eA(t,n,e)),n.registerCommand(wo,t=>{const r=function(s){const o=R();if(!M(o)||!_i(o))return null;const i=s?Er:Pn,l=s?Er:oa;if(zC(o).length>1)return i;const a=o.getNodes()[0];if(Yt(a)||Be(a)||nt(a)||Ee(a)||mo(170),Yt(a))return i;const c=ds(a),u=li(a),d=o.anchor,f=o.focus;let g,h;return f.isBefore(d)?(g=f,h=d):(g=d,h=f),c!==null&&u!==null&&g.key===c.getKey()&&g.offset===0&&h.key===u.getKey()&&h.offset===u.getTextContentSize()?i:l}(t.shiftKey);return r!==null&&(t.preventDefault(),n.dispatchCommand(r,void 0),!0)},le),n.registerCommand(oa,()=>!!_i(R())&&(Xi([qt()]),!0),le),n.registerCommand(Pn,t=>nA(Pn),le),n.registerCommand(Er,t=>nA(Er),le),n.registerCommand(zn,t=>rA(zn,t),le),n.registerCommand(Rr,t=>rA(Rr,t),le),n.registerCommand(ad,t=>sA(ad,t),le),n.registerCommand(sa,t=>sA(sa,t),le))}const Do=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",g1=Do&&"documentMode"in document?document.documentMode:null;var Fy;const p1=(Fy=navigator.userAgentData)==null?void 0:Fy.platform,rs=Do&&/macOS|iPod|iPhone|iPad/.test(p1);Do&&"InputEvent"in window&&!g1&&"getTargetRanges"in new window.InputEvent("input");const WC=Do&&/^(?=.*Chrome).*/i.test(navigator.userAgent),UC=(n,e,t)=>{const r=n.target;if(r&&(r instanceof HTMLElement||r instanceof SVGElement)){let s=null;const o=r.closest(e);for(const l of t)if(s=r.closest(l),s)break;return{lexicalDOMNode:o,isOutside:!(o||s)}}else return{lexicalDOMNode:null,isOutside:!0}},m1=({setIsMenuOpen:n,onCodeLanguageSelect:e,codeLanguage:t,CODE_LANGUAGE_OPTIONS:r})=>(x.useEffect(()=>()=>{document.documentElement.classList.remove("disable-scroll"),n(!1)},[]),p.jsx(E.Select,{onChange:s=>e(s),data:r.map(([s,o])=>({value:s,label:o})),searchable:!0,defaultValue:t,allowDeselect:!1,style:{width:140},className:"dropdown-select-language",checkIconPosition:"right",rightSection:p.jsx(z.IconChevronDown,{style:{width:14,height:14,marginLeft:2}}),maxDropdownHeight:400,variant:"default",styles:{dropdown:{overflow:"auto",zIndex:1e3}}}));function A1({codeLanguage:n,CODE_LANGUAGE_OPTIONS:e,onCodeLanguageSelect:t,onCollapsibleCode:r,copyToClipboard:s,pointerEvents:o,showExpandButton:i,isCollapsed:l}){const[a,c]=x.useState(!1),{t:u}=We.useTranslation(),d=()=>{c(f=>{const g=document.documentElement;return f?g.classList.remove("disable-scroll"):g.classList.add("disable-scroll"),!f})};return p.jsxs(E.Menu,{shadow:"md",styles:{dropdown:{overflow:"auto",zIndex:1e3}},children:[p.jsx(E.Menu.Target,{children:p.jsx(E.Button,{style:{pointerEvents:o},radius:"sm",h:25,px:5,size:"xs",variant:"default",children:p.jsx(z.IconMenu2,{size:18})})}),p.jsxs(E.Menu.Dropdown,{children:[p.jsx(E.Menu.Item,{style:{position:"relative",padding:0},disabled:a,closeMenuOnClick:!1,onClick:d,children:p.jsx(m1,{setIsMenuOpen:c,codeLanguage:n,onCodeLanguageSelect:t,CODE_LANGUAGE_OPTIONS:e})}),p.jsx(E.Menu.Item,{rightSection:p.jsx(z.IconCopy,{size:14}),onClick:s,children:p.jsx(E.Text,{size:"12px",children:u("editor.menu.main.code.copy")})}),i&&p.jsx(E.Menu.Item,{onClick:r,rightSection:l?p.jsx(z.IconArrowsDiagonal,{size:14}):p.jsx(z.IconArrowsDiagonalMinimize2,{size:14}),children:p.jsx(E.Text,{size:"12px",children:u(l?"editor.menu.main.code.collapsible.hidden":"editor.menu.main.code.collapsible.expand")})})]})]})}function KC({onClick:n,ariaLabel:e,children:t,...r}){return p.jsx(E.Button,{radius:"sm",h:25,px:5,mr:3,size:"xs",variant:"default",onClick:n,"aria-label":e,...r,children:t})}const y1={copy:z.IconCopy,success:z.IconCheck,loader:z.IconCircleDashed};function b1({copyToClipboard:n,pointerEvents:e}){const[t,r]=x.useState("copy"),{t:s}=We.useTranslation();async function o(){await n()&&(r("loader"),setTimeout(()=>{r("success"),setTimeout(()=>{r("copy")},1e3)},1e3))}const i=y1[t];return p.jsxs(KC,{style:{pointerEvents:e},onClick:o,ariaLabel:"copy",children:[p.jsx(E.Text,{mr:"4px",size:"12px",children:s("editor.menu.main.code.copy")}),p.jsx(i,{size:14})]})}function Oc(n,e,t){const r=x.useRef(null);return r.current=n,x.useMemo(()=>Df.debounce((...s)=>{r.current&&r.current(...s)},e,{maxWait:t}),[e,t])}const HC={json:"JSON",...a1};function w1({anchorElem:n}){var L;const[e]=ie(),{t}=We.useTranslation(),[r,s]=x.useState(""),[o,i]=x.useState(!1),[l,a]=x.useState(null),[c,u]=x.useState(null),[d,f]=x.useState({right:"0",top:"0"}),g=x.useRef(null),h=x.useRef(null),m=h.current&&((L=h.current)==null?void 0:L.offsetWidth)<=300,A=rs?"⌘ + Enter":"Ctrl + Enter",b=t(rs?"editor.menu.main.code.appleExitCommandText":"editor.menu.main.code.windowsExitCommandText"),y=h.current&&h.current.scrollHeight>280,w=o?"auto":"none",v=C();function S(){return h.current}function C(){const N=[];for(const[I,P]of Object.entries(HC))N.push([I,P]);return N.sort(([I],[P])=>I.localeCompare(P)),N}const _=Oc(N=>{const{lexicalDOMNode:I,isOutside:P}=UC(N,"code.dsd__theme__code",["div.dropdown-select-language","div.mantine-Select-option","div.code-action-menu-container"]);if(P){i(!1);return}if(!I)return;h.current=I;let G=null,J="";if(e.update(()=>{const te=he(I);te&&a(te.__key),Ir(te)&&(G=te,J=G.getLanguage()||"",s(J?$m[J]||J:"Выберите форматирование"),u(G.__isCollapsed))}),G){const{y:te,right:Q,left:B}=n.getBoundingClientRect(),{y:j,right:F,left:V}=I.getBoundingClientRect();i(!0),g.current&&(g.current.style.visibility="visible");const K=j-te,Y=Q-F,X=V-B;f(()=>({right:`${Y}px`,left:`${X}px`,top:`${K}px`}))}},50,500);x.useEffect(()=>ve(e.registerMutationListener(ir,N=>{e.getEditorState().read(()=>{for(const[I,P]of N)P==="destroyed"&&i(!1)})}),e.registerUpdateListener(({dirtyElements:N,dirtyLeaves:I})=>{o&&(N.size>0||I.size>0)&&e.getEditorState().read(()=>{const P=Ke();(P==null?void 0:P.__type)!=="extend-code"&&(P==null?void 0:P.__type)!=="code-highlight"&&g.current&&(g.current.style.visibility="hidden")})})),[e,o]),x.useEffect(()=>(document.addEventListener("mousemove",_),()=>{i(!1),_.cancel(),document.removeEventListener("mousemove",_)}),[_]);const k=x.useCallback(()=>{u(N=>!N),e.update(()=>{if(l!==null){const N=ue(l);Ir(N)&&N.toggleCodeState()}})},[e,l]),T=x.useCallback(N=>{e.update(()=>{if(l!==null){const I=ue(l);if(Ir(I)){I.setLanguage(N),I.selectStart();const P=I.getLanguage()||"";s(P?$m[P]||P:"")}}})},[e,l]);async function D(){const N=S();if(!N)return!1;let I="";e.update(()=>{const P=he(N);Ir(P)&&(I=P.getTextContent());const G=R();Ie(G)});try{return await navigator.clipboard.writeText(I),!0}catch(P){return console.error("Failed to copy: ",P),!1}}return p.jsxs("div",{className:`code-action-menu-container ${o?"visible":""}`,ref:g,style:{right:d.right,top:d.top,left:d.left,pointerEvents:w},children:[!m&&p.jsx(E.Select,{onChange:N=>T(N),data:v.map(([N,I])=>({value:N,label:I})),searchable:!0,value:r,allowDeselect:!1,style:{pointerEvents:w,width:140},className:"dropdown-select-language",checkIconPosition:"right",rightSection:p.jsx(z.IconChevronDown,{style:{width:14,height:14,marginLeft:2}}),maxDropdownHeight:400,variant:"default"}),p.jsxs("div",{className:"code-action-button-container",children:[!m&&p.jsxs(p.Fragment,{children:[p.jsx(b1,{pointerEvents:w,copyToClipboard:D}),y?p.jsx(KC,{style:{pointerEvents:w},onClick:k,ariaLabel:"expand",children:c?p.jsx(E.Tooltip,{label:t("editor.menu.main.code.collapsible.hidden"),children:p.jsx(z.IconArrowsDiagonal,{size:14})}):p.jsx(E.Tooltip,{label:t("editor.menu.main.code.collapsible.expand"),children:p.jsx(z.IconArrowsDiagonalMinimize2,{size:14})})}):null]}),p.jsx(E.Tooltip,{label:b,children:p.jsx(E.Text,{truncate:"end",size:"sm",id:"exitCommandParagraph",children:A})})]}),m&&p.jsx(A1,{onCodeLanguageSelect:T,CODE_LANGUAGE_OPTIONS:v,codeLanguage:r,onCollapsibleCode:k,copyToClipboard:D,pointerEvents:w,showExpandButton:y,isCollapsed:c})]})}function Rc({anchorElem:n=document.body}){return un.createPortal(p.jsx(w1,{anchorElem:n}),n)}const Ru=new Map;class en extends ir{constructor(t=!1,r="plain",s){super(r,s);Z(this,"__isCollapsed");this.__isCollapsed=t}static getType(){return"extend-code"}static clone(t){return new en(t.__isCollapsed,t.getLanguage(),t.__key)}static importJSON(t){const{isCollapsed:r=!0,language:s=null}=t,o=new en(r,s,t.key);return o.setLanguage(t.language||""),o}createDOM(t,r){const s=document.createElement("code");return s.classList.add("dsd__theme__code"),s.setAttribute("spellcheck","false"),s.setAttribute("data-language",String(this.__language)),s.setAttribute("data-highlight-language",String(this.__language)),this.__isCollapsed?(s.classList.add(t.theme.codeCollapsed),s.setAttribute("data-collapsed",String(this.__isCollapsed))):s.setAttribute("data-collapsed","false"),setTimeout(()=>{Ru.set(this.__key,s.getAttribute("data-gutter")||"")},0),s}updateDOM(t,r,s){return this.__isCollapsed!==t.__isCollapsed?(this.__isCollapsed?(r.classList.add(Kr.codeCollapsed),r.setAttribute("data-collapsed","true")):(r.classList.remove(Kr.codeCollapsed),r.setAttribute("data-collapsed","false")),!1):(setTimeout(()=>{Ru.set(this.__key,r.getAttribute("data-gutter")||"")},0),super.updateDOM(t,r,s))}exportDOM(t){var o;const r=document.createElement("pre");_e(r,t._config.theme.code,(o=t._config.theme.ltr)==null?void 0:o[0]),r.setAttribute("spellcheck","false"),r.setAttribute("data-language",String(this.__language)||"plain"),r.setAttribute("data-highlight-language",String(this.__language)||"plain"),r.setAttribute("data-name-language",String(HC[this.__language||"plain"])),r.setAttribute("data-collapsed",String(this.__isCollapsed)),this.__isCollapsed&&r.classList.add(t._config.theme.codeCollapsed);const s=Ru.get(this.__key);return r.setAttribute("data-gutter",s||"1"),{element:r}}static importDOM(){return{...super.importDOM(),pre:r=>{const s=r.getAttribute("data-collapsed")==="true",o=r.getAttribute("data-language")||"";return r.hasAttribute("data-collapsed")?{conversion:()=>({node:new en(s,o)}),priority:1}:null}}}exportJSON(){return{...super.exportJSON(),isCollapsed:this.__isCollapsed,language:this.getLanguage(),type:"extend-code",version:1}}toggleCodeState(){const t=this.getWritable();return t.__isCollapsed=!this.__isCollapsed}insertNewAfter(t,r=!0){const{anchor:s,focus:o}=t,l=(s.isBefore(o)?s:o).getNode();if(W(l)){let a=C1(l);const c=[];for(;;)if(nt(a))c.push(qt()),a=a.getNextSibling();else if(Be(a)){let A=0;const b=a.getTextContent(),y=a.getTextContentSize();for(;A<y&&b[A]===" ";)A++;if(A!==0&&c.push(Me(new vs(" ".repeat(A)))),A!==y)break;a=a.getNextSibling()}else break;const u=l.splitText(s.offset)[0],d=s.offset===0?0:1,f=u.getIndexWithinParent()+d,g=l.getParentOrThrow(),h=[Ut(),...c];g.splice(f,0,h);const m=c[c.length-1];m?m.select():s.offset===0?u.selectPrevious():u.getNextSibling().selectNext(0,0)}if(Ir(l)){const{offset:a}=t.anchor;l.splice(a,0,[Ut()]),l.select(a+1,a+1)}return null}}function YC(n=!1){return Me(new en(n))}function Ir(n){return n instanceof en}function C1(n){let e=n,t=n;for(;Be(t)||nt(t);)e=t,t=t.getPreviousSibling();return e}function Ke(n){const e=R();if(M(e)){const r=e.anchor.getNode();if(r!==null){const s=r.getParent();return n?s:r}}return null}function VC(n){n.update(()=>{const e=R();if(M(e)){const t=e.getNodes();let r=null,s=null;if(t.forEach((o,i)=>{i===0&&(r=o.getParent()),i===t.length-1&&(s=o.getParent())}),r&&s){const o=R();M(o)&&(r.isAttached()&&s.isAttached()?Ht(r)&&Ht(s)?o.setTextNodeRange(r,0,s,s.getTextContentSize()):(o.anchor.set(r.getKey(),0,"element"),o.focus.set(s.getKey(),s.getChildrenSize(),"element")):console.error("Error: One of the nodes is not attached."))}}})}const GC=(n,e)=>{n.update(()=>{if(typeof e=="string"){const r=ue(e);r&&r.remove();return}e&&e.remove()})};function v1(n,e){e.update(()=>{let t=Ji();n.getParent()&&(t.anchor.set(n.getKey(),0,"element"),t.focus.set(n.getKey(),0,"element"),Ie(t))})}function x1(){const n=R();if(M(n)){const e=n.anchor,t=n.focus,r=t.getNode(),s=Ir(r)?r.__size:r.getTextContentSize(),o=e.offset===0,i=t.offset===s;if(o&&i)return!0}return!1}function Bh(n){const e=dd(n),t=[[n,e]];let r;for(;(r=t.length)>0;)for(let s=0;s<r;s++){const o=t.shift();if(o!==void 0){const[i,l]=o;if(O(i)&&O(l)){const a=i.getChildren();for(const c of a){const u=dd(c);Ht(c)&&Ht(u)&&(u.setFormat(c.__format),u.setStyle(c.__style)),l.append(u),t.push([c,u])}}}}return e}function Ao(n,e,t){const r=t||{root:!0};if(n){let s=n.getParent();return r[s==null?void 0:s.__type]?{htmlElement:e.getElementByKey(n.__key),lexicalNode:n}:Ao(s,e,r)}return{htmlElement:null,lexicalNode:null}}function oA(n,e,t,r){var s;if(n)if((n==null?void 0:n.__type)==="root"||(n==null?void 0:n.__type)==="layout-item"||(n==null?void 0:n.__type)==="callout-wrapper"||(n==null?void 0:n.__type)==="collapsible-content"){const o=(r==null?void 0:r.clientY)||0,{left:i}=((s=e.getElementByKey(n.__key))==null?void 0:s.getBoundingClientRect())||{left:0},{paddingLeft:l}=window.getComputedStyle(r==null?void 0:r.target),a=document.elementFromPoint(i+parseFloat(l)+10,o),c=he(a||document.body);return c?Ao(c,e,t):{htmlElement:null,lexicalNode:null}}else return Ao(n,e,t);return{htmlElement:null,lexicalNode:null}}const Zo=n=>{n.update(()=>{R()!==null&&Ie(null)})};let zh=function(n,e){if(!n.parentElement)return null;if(n.parentElement.classList.contains("ContentEditable__root")){const t=n.querySelectorAll("li:has(+ .dsd__theme__nestedListItem)");return setTimeout(()=>{for(let r=0;r<t.length;r++){const s=t[r],o=s.nextElementSibling;if(!o)return;let i=!1,l=!0;Array.from(o.querySelectorAll("li:not(.dsd__theme__nestedListItem):not(:has(+ .dsd__theme__nestedListItem))")).forEach(c=>{const u=c.getAttribute("aria-checked");(u===null||u==="false")&&(l=!1),u==="true"&&(i=!0)}),e.update(()=>{if(!l&&i){const c=he(s);c instanceof xt&&(c.setChecked(!1),c.setIndeterminate(!0))}if(!i&&!l){const c=he(s);c instanceof xt&&(c.setChecked(!1),c.setIndeterminate(!1))}if(l){const c=he(s);c instanceof xt&&(c.setChecked(!0),c.setIndeterminate(!1))}}),i=!1,l=!0}},0),null}return zh(n.parentElement,e)};const S1=()=>{const n=Ke();if(!n)return!1;try{const e=vo(n);e instanceof xt&&!e.__opened&&e.setOpened(!0)}catch{return!1}return!1},k1=Df.debounce((n,e)=>{const t=e.getElementByKey(n);zh(t,e)},100);function jc(){const[n]=ie();return x.useEffect(()=>{const e=n.registerMutationListener(fn,t=>{for(const[r,s]of t)s==="updated"&&k1(r,n)},{skipInitialization:!0});return()=>{e()}},[n]),x.useEffect(()=>ve(n.registerCommand(Ph,()=>(Xd(n,"check"),!0),le),n.registerRootListener((e,t)=>{e!==null&&(e.addEventListener("click",iA),e.addEventListener("pointerdown",lA)),t!==null&&(t.removeEventListener("click",iA),t.removeEventListener("pointerdown",lA))})),[n]),null}function ZC(n,e,t=!1){const r=n.target;if(r===null||!lt(r))return;const s=r.firstChild;if(s!=null&&lt(s)&&(s.tagName==="UL"||s.tagName==="OL"))return;const o=r.parentNode,i=r.getBoundingClientRect(),l=n.pageX/Z0(r);if(o&&l>i.right){if(t){e();return}if(n.target instanceof HTMLElement){const a=Yi(o);a!=null&&a.isEditable()&&a.update(()=>{const c=he(o);Re(c)&&c.toggleOpen()})}}!o||o.__lexicalListType!=="check"||(r.dir==="rtl"?l<i.right&&l>i.right-20:l>i.left&&l<i.left+20)&&e()}function iA(n){ZC(n,()=>{if(n.target instanceof HTMLElement){const e=n.target,t=Yi(e);t!=null&&t.isEditable()&&(t.update(()=>{const r=he(e);if(Re(r)&&(e.focus(),r.toggleChecked()),e.getAttribute("data-list")&&e.getAttribute("aria-checked")==="false"&&e.nextElementSibling){Array.from(e.nextElementSibling.querySelectorAll("[aria-checked]")).forEach(s=>{const o=he(s);o instanceof xt&&o.setChecked(!0)});return}if(e.getAttribute("data-list")&&e.getAttribute("aria-checked")==="true"&&e.nextElementSibling){Array.from(e.nextElementSibling.querySelectorAll("[aria-checked]")).forEach(s=>{const o=he(s);o instanceof xt&&o.setChecked(!1)});return}}),zh(e,t))}})}function lA(n){ZC(n,()=>{n.preventDefault()},!0)}function Ti(){const[n]=ie();return x.useEffect(()=>h1(n),[n]),null}function Wh({isLoading:n}){const[e]=ie();return x.useEffect(()=>{e.update(()=>{fe().getFirstChild()&&setTimeout(()=>{var s;(s=e._rootElement)==null||s.setAttribute("contenteditable","true")},0)})},[e,n]),null}const aA="startTransition",$d=typeof window<"u"&&window.document!==void 0&&window.document.createElement!==void 0,E1=$d?x.useLayoutEffect:x.useEffect;let JC=class{constructor(e){this.key=e,this.ref={current:null},this.setRefElement=this.setRefElement.bind(this)}setRefElement(e){this.ref={current:e}}};const cA=n=>{const e=document.getElementById("typeahead-menu");if(!e)return;const t=e.getBoundingClientRect();t.top+t.height>window.innerHeight&&e.scrollIntoView({block:"center"}),t.top<0&&e.scrollIntoView({block:"center"}),n.scrollIntoView({block:"nearest"})};function uA(n,e){const t=n.getBoundingClientRect(),r=e.getBoundingClientRect();return t.top>r.top&&t.top<r.bottom}function _1(n,e,t,r){const[s]=ie();x.useEffect(()=>{if(e!=null&&n!=null){const o=s.getRootElement(),i=o!=null?function(d,f){let g=getComputedStyle(d);const h=g.position==="absolute",m=/(auto|scroll)/;if(g.position==="fixed")return document.body;for(let A=d;A=A.parentElement;)if(g=getComputedStyle(A),(!h||g.position!=="static")&&m.test(g.overflow+g.overflowY+g.overflowX))return A;return document.body}(o):document.body;let l=!1,a=uA(e,i);const c=function(){l||(window.requestAnimationFrame(function(){t(),l=!1}),l=!0);const d=uA(e,i);d!==a&&(a=d,r!=null&&r(d))},u=new ResizeObserver(t);return window.addEventListener("resize",t),document.addEventListener("scroll",c,{capture:!0,passive:!0}),u.observe(e),()=>{u.unobserve(e),window.removeEventListener("resize",t),document.removeEventListener("scroll",c,!0)}}},[e,s,r,t,n])}const dA=ze();function T1({close:n,editor:e,anchorElementRef:t,resolution:r,options:s,menuRenderFn:o,onSelectOption:i,shouldSplitNodeWithQuery:l=!1,commandPriority:a=le}){const[c,u]=x.useState(null),d=r.match&&r.match.matchingString;x.useEffect(()=>{u(0)},[d]);const f=x.useCallback(h=>{e.update(()=>{const m=r.match!=null&&l?function(A){const b=R();if(!M(b)||!b.isCollapsed())return null;const y=b.anchor;if(y.type!=="text")return null;const w=y.getNode();if(!w.isSimpleText())return null;const v=y.offset,S=w.getTextContent().slice(0,v),C=A.replaceableString.length,_=v-function(T,D,L){let N=L;for(let I=N;I<=D.length;I++)T.substr(-I)===D.substr(0,I)&&(N=I);return N}(S,A.matchingString,C);if(_<0)return null;let k;return _===0?[k]=w.splitText(v):[,k]=w.splitText(_,v),k}(r.match):null;i(h,m,n,r.match?r.match.matchingString:"")})},[e,l,r.match,i,n]),g=x.useCallback(h=>{const m=e.getRootElement();m!==null&&(m.setAttribute("aria-activedescendant","typeahead-item-"+h),u(h))},[e]);return x.useEffect(()=>()=>{const h=e.getRootElement();h!==null&&h.removeAttribute("aria-activedescendant")},[e]),E1(()=>{s===null?u(null):c===null&&g(0)},[s,c,g]),x.useEffect(()=>ve(e.registerCommand(dA,({option:h})=>!(!h.ref||h.ref.current==null)&&(cA(h.ref.current),!0),a)),[e,g,a]),x.useEffect(()=>ve(e.registerCommand(Rr,h=>{const m=h;if(s!==null&&s.length&&c!==null){const A=c!==s.length-1?c+1:0;g(A);const b=s[A];b.ref!=null&&b.ref.current&&e.dispatchCommand(dA,{index:A,option:b}),m.preventDefault(),m.stopImmediatePropagation()}return!0},a),e.registerCommand(zn,h=>{const m=h;if(s!==null&&s.length&&c!==null){const A=c!==0?c-1:s.length-1;g(A);const b=s[A];b.ref!=null&&b.ref.current&&cA(b.ref.current),m.preventDefault(),m.stopImmediatePropagation()}return!0},a),e.registerCommand(zi,h=>{const m=h;return m.preventDefault(),m.stopImmediatePropagation(),n(),!0},a),e.registerCommand(wo,h=>{const m=h;return s!==null&&c!==null&&s[c]!=null&&(m.preventDefault(),m.stopImmediatePropagation(),f(s[c]),!0)},a),e.registerCommand(gs,h=>s!==null&&c!==null&&s[c]!=null&&(h!==null&&(h.preventDefault(),h.stopImmediatePropagation()),f(s[c]),!0),a)),[f,n,e,s,c,g,a]),o(t,x.useMemo(()=>({options:s,selectOptionAndCleanUp:f,selectedIndex:c,setHighlightedIndex:u}),[f,c,s]),r.match?r.match.matchingString:"")}const D1=`\\.,\\+\\*\\?\\$\\@\\|#{}\\(\\)\\^\\-\\[\\]\\\\/!%'"~=<>_:;`;function Uh(n,{minLength:e=1,maxLength:t=75}){return x.useCallback(r=>{const s=new RegExp("(^|\\s|\\()(["+n+"]((?:"+("[^"+n+D1+"\\s]")+"){0,"+t+"}))$").exec(r);if(s!==null){const o=s[1],i=s[3];if(i.length>=e)return{leadOffset:s.index+o.length,matchingString:i,replaceableString:s[2]}}return null},[t,e,n])}function Kh({options:n,onQueryChange:e,onSelectOption:t,onOpen:r,onClose:s,menuRenderFn:o,triggerFn:i,anchorClassName:l,commandPriority:a=le,parent:c}){const[u]=ie(),[d,f]=x.useState(null),g=function(A,b,y,w=$d?document.body:void 0,v=!0){const[S]=ie(),C=x.useRef($d?document.createElement("div"):null),_=x.useCallback(()=>{if(C.current===null||w===void 0)return;C.current.style.top=C.current.style.bottom;const T=S.getRootElement(),D=C.current,L=D.firstChild;if(T!==null&&A!==null){const{left:N,top:I,width:P,height:G}=A.getRect(),J=C.current.offsetHeight;if(D.style.top=`${I+J+3+(v?window.pageYOffset:0)}px`,D.style.left=`${N+window.pageXOffset}px`,D.style.height=`${G}px`,D.style.width=`${P}px`,L!==null){L.style.top=`${I}`;const te=L.getBoundingClientRect(),Q=te.height,B=te.width,j=T.getBoundingClientRect();N+B>j.right&&(D.style.left=`${j.right-B+window.pageXOffset}px`),(I+Q>window.innerHeight||I+Q>j.bottom)&&I-j.top>Q+G&&(D.style.top=`${I-Q-G+(v?window.pageYOffset:0)}px`)}D.isConnected||(y!=null&&(D.className=y),D.setAttribute("aria-label","Typeahead menu"),D.setAttribute("id","typeahead-menu"),D.setAttribute("role","listbox"),D.style.display="block",D.style.position="absolute",w.append(D)),C.current=D,T.setAttribute("aria-controls","typeahead-menu")}},[S,A,v,y,w]);x.useEffect(()=>{const T=S.getRootElement();if(A!==null)return _(),()=>{T!==null&&T.removeAttribute("aria-controls");const D=C.current;D!==null&&D.isConnected&&D.remove()}},[S,_,A]);const k=x.useCallback(T=>{A!==null&&(T||b(null))},[A,b]);return _1(A,C.current,_,k),C}(d,f,l,c),h=x.useCallback(()=>{f(null),s!=null&&d!==null&&s()},[s,d]),m=x.useCallback(A=>{f(A),r!=null&&d===null&&r(A)},[r,d]);return x.useEffect(()=>{const A=u.registerUpdateListener(()=>{u.getEditorState().read(()=>{const b=u._window||window,y=b.document.createRange(),w=R(),v=function(_){let k=null;return _.getEditorState().read(()=>{const T=R();M(T)&&(k=function(D){const L=D.anchor;if(L.type!=="text")return null;const N=L.getNode();if(!N.isSimpleText())return null;const I=L.offset;return N.getTextContent().slice(0,I)}(T))}),k}(u);if(!M(w)||!w.isCollapsed()||v===null||y===null)return void h();const S=i(v,u);if(e(S?S.matchingString:null),S!==null&&!function(_,k){return k===0&&_.getEditorState().read(()=>{const T=R();if(M(T)){const D=T.anchor.getNode().getPreviousSibling();return W(D)&&D.isTextEntity()}return!1})}(u,S.leadOffset)&&function(k,T,D){const L=nn(D);if(L===null||!L.isCollapsed)return!1;const N=L.anchorNode,I=k,P=L.anchorOffset;if(N==null||P==null)return!1;try{T.setStart(N,I),T.setEnd(N,P)}catch{return!1}return!0}(S.leadOffset,y,b)!==null)return C=()=>m({getRect:()=>y.getBoundingClientRect(),match:S}),void(aA in x?x[aA](C):C());var C;h()})});return()=>{A()}},[u,i,e,d,h,m]),d===null||u===null||g.current===null?null:p.jsx(T1,{close:h,resolution:d,editor:u,anchorElementRef:g,options:n,menuRenderFn:o,shouldSplitNodeWithQuery:!0,onSelectOption:t,commandPriority:a})}const yr={transition:"fade",duration:400};function Hh(){const[n]=ie(),[e,t]=x.useState(!1),{t:r}=We.useTranslation(),s=Uh(":",{minLength:0}),o=x.useCallback(i=>{n.update(()=>{const l=R();if(M(l)){const a=l.anchor.getNode(),c=l.anchor.offset;if(l.isCollapsed()&&Ht(a)){const u=a.getTextContent();if(c>0){const d=u.slice(0,c-1)+`${i}`+u.slice(c);a.setTextContent(d),l.anchor.set(a.getKey(),c+2,"text"),l.focus.set(a.getKey(),c+2,"text")}}}})},[n]);return p.jsx(Kh,{onQueryChange:()=>{},onSelectOption:()=>{},triggerFn:s,options:[],onClose:()=>{t(!1)},onOpen:()=>{setTimeout(()=>{t(!0)},100)},menuRenderFn:i=>i.current==null?null:i.current?un.createPortal(p.jsx(kn.EmojiPicker,{onChange:l=>{var a;o(((a=kn.IconEntity.parse(l))==null?void 0:a.emoji)+" ")},locales:{emojis:r("editor.emoji.emojis"),search:r("editor.emoji.search"),searchResults:r("editor.emoji.searchResults"),searchNoResults:r("editor.emoji.searchNoResults"),remove:r("editor.emoji.remove"),emojiCategory:{frequent:r("editor.emoji.emojiCategory.frequent"),people:r("editor.emoji.emojiCategory.people"),nature:r("editor.emoji.emojiCategory.nature"),foods:r("editor.emoji.emojiCategory.foods"),activity:r("editor.emoji.emojiCategory.activity"),places:r("editor.emoji.emojiCategory.places"),objects:r("editor.emoji.emojiCategory.objects"),symbols:r("editor.emoji.emojiCategory.symbols"),flags:r("editor.emoji.emojiCategory.flags")}},popoverProps:{opened:e,transitionProps:yr,withinPortal:!0,onClose:()=>{t(!1)}},children:p.jsx(p.Fragment,{})}),i.current):null})}const fA={bullet:z.IconList,check:z.IconListCheck,"check-mark":z.IconCheck,code:z.IconCode,h1:z.IconH1,h2:z.IconH2,h3:z.IconH3,number:z.IconListNumbers,paragraph:z.IconIndentIncrease,quote:z.IconQuote,fontFamily:z.IconLetterT,undo:z.IconArrowBackUp,redo:z.IconArrowForwardUp,bold:z.IconBold,italic:z.IconItalic,underline:z.IconUnderline,link:z.IconLink,"color-picker":z.IconColorPicker,background:z.IconBucketDroplet,photo:z.IconPhoto,"photo-check":z.IconPhotoCheck,"align-left":z.IconAlignLeft,"align-end":z.IconAlignLeft,"align-start":z.IconAlignLeft,"align-right":z.IconAlignRight,"align-center":z.IconAlignCenter,"align-justify":z.IconAlignJustified,"horizontal-rule":z.IconFlipHorizontal,strikethrough:z.IconStrikethrough,subscript:z.IconSubscript,superscript:z.IconSuperscript,minus:z.IconMinus,plus:z.IconPlus,"chevron-down":z.IconChevronDown,"chevron-right":z.IconChevronRight,grip:z.IconGripVertical,"circle-check":z.IconCircleCheck,"circle-x":z.IconCircleX,pencil:z.IconPencil,trash:z.IconTrash,table:z.IconTable,"caret-right":z.IconCaretRight,grid:z.IconColumns3,"dots-vertical":z.IconDotsVertical,copy:z.IconCopy,clipboard:z.IconClipboard,cut:z.IconCut,"arrow-bar-to-up":z.IconArrowBarToUp,"arrow-bar-to-down":z.IconArrowBarToDown,"arrow-bar-to-left":z.IconArrowBarToLeft,"arrow-bar-to-right":z.IconArrowBarToRight,"column-insert-left":z.IconColumnInsertLeft,"column-insert-right":z.IconColumnInsertRight,"row-insert-top":z.IconRowInsertTop,"row-insert-bottom":z.IconRowInsertBottom,"container-off":z.IconContainerOff,"table-off":z.IconTableOff,"layers-union":z.IconLayersUnion,"layers-substract":z.IconLayersSubtract,"сlear-format":z.IconClearFormatting,form:z.IconCheckupList,youtube:z.IconBrandYoutube,emoji:z.IconMoodSmile,file:z.IconFile,success:z.IconCheck,warning:z.IconAlertTriangle,alert:z.IconExclamationCircle,defaultOff:z.IconBaseline,embed:z.IconCodeCircle,at:z.IconAt,paperclip:z.IconPaperclip,close:z.IconX,api:z.IconApi},$=({name:n,iconStyle:e,...t})=>{const r=fA[n]||fA.bullet;return p.jsx(E.Flex,{gap:0,justify:"center",align:"center",...t,children:p.jsx(r,{size:18,stroke:2,style:e,...t})})},Bn=ze(),ef=ze(),Yh=ze(),Pa=ze(),Pc=ze();function xs(n){const e=n.anchor,t=n.focus,r=n.anchor.getNode(),s=n.focus.getNode();return r===s?r:n.isBackward()?Ep(t)?r:s:Ep(e)?r:s}const N1=10,I1=5;function ju(n,e,t,r=N1,s=I1){const o=t.parentElement;if(n===null||!n.width||!o){e.style.opacity="0",e.style.transform="translate(-10000px, -10000px)";return}const l=e.getBoundingClientRect().height||57,a=o.getBoundingClientRect();let c=n.top-43-r,u=n.y+n.height,d=n.left-s;c<a.top&&(u=n.y-l),l+n.bottom>window.innerHeight&&(u=n.y-l),setTimeout(()=>{e.style.opacity="1",e.style.transform=`translate(${d}px, ${u}px)`})}const L1=new Set(["http:","https:","mailto:","sms:","tel:"]);function ta(n){try{const e=new URL(n);if(!L1.has(e.protocol))return"about:blank"}catch{return n}return n}function M1({editor:n,isLink:e,setIsLink:t,anchorElem:r,showTextToolbar:s,isSubmittedRef:o}){const i=x.useRef(null),l=x.useRef(null),a=x.useRef(!1),[c,u]=x.useState(""),[d,f]=x.useState(!0),[g,h]=x.useState(!1),[m,A]=x.useState(!1),{t:b}=We.useTranslation();let y=x.useRef(null);const w=()=>{setTimeout(()=>{t(!1),A(!1),a.current=!1,u(""),h(!1),y.current=null})},v=fi.useClickOutside(()=>{w()}),S=x.useCallback(N=>{var te,Q;const I=R();if(N==="create"&&(A(!0),a.current=!0),M(I)){const B=xs(I),j=ae(B,it);j?u(j.getURL()):it(B)?u(B.getURL()):u("https://")}const P=i.current,G=window.getSelection();if(P===null)return;const J=n.getRootElement();if(I!==null&&G!==null&&J!==null&&J.contains(G.anchorNode)&&n.isEditable()){const B=(Q=(te=G.focusNode)==null?void 0:te.parentElement)==null?void 0:Q.getBoundingClientRect();B&&!y.current&&(t(!0),ju(B,P,r))}return!0},[r,n,m,c]);x.useEffect(()=>{const N=document.body.querySelector(".doc-space-editor-wrapper")||document.body,I=document.body.querySelector(".dropdown-link-doc-editor")||document.body,P=Df.debounce(J=>{var B,j,F;if(!N.contains(J)||a.current)return;let te=null;const Q=i.current;if(J!=null&&J.parentElement&&((B=J==null?void 0:J.parentElement)!=null&&B.className)&&(j=J==null?void 0:J.parentElement)!=null&&j.className.includes&&(F=J==null?void 0:J.parentElement)!=null&&F.className.includes("dsd__theme__link")&&(te=J==null?void 0:J.parentElement,te)){const V=te.getAttribute("href"),K=te.getBoundingClientRect();Q&&ju(K,Q,r),u(V),y.current=te}if(!(te&&N.contains(J))){if(I.contains(J)||!Q||a.current)return;ju(null,Q,r),y.current=null}},300),G=J=>{const te=J.target;s.current||P(te)};return document.body.addEventListener("mouseover",G),()=>{document.body.removeEventListener("mouseover",G)}},[]),x.useEffect(()=>ve(n.registerCommand(Pc,N=>(S(N),!0),le)),[n]),x.useEffect(()=>{setTimeout(()=>{m&&l.current&&l.current.focus()})},[m,e]);const C=N=>{N.key==="Enter"?(N.preventDefault(),k()):N.key==="Escape"&&N.preventDefault()},_=N=>{try{const I=new URL(N);return["http:","https:"].includes(I.protocol)}catch{return!1}},k=()=>{if(c!==""){if(_(c))h(!1);else{h(!0);return}n.dispatchCommand(po,ta(c)),n.update(()=>{const N=getSelection();if(M(N)){const I=xs(N).getParent();if(it(I)){const P=go(c,{rel:I.__rel,target:I.__target,title:I.__title});I.replace(P,!0)}}})}o.current=!0,setTimeout(()=>{T(!0),w()})},T=(N=!1)=>{var I;if(y.current){const P=y.current;if(P!=null&&P.childNodes){const G=document.createRange(),J=window.getSelection();G.setStart(P,Number(N)),G.collapse(!0),J&&(J.removeAllRanges(),J.addRange(G))}return(I=P.textContent)==null?void 0:I.length}};function D(N){const I=document.createRange(),P=window.getSelection();if(P&&P.rangeCount>0){const G=P.getRangeAt(0);let J=G.startContainer,te=G.startOffset,Q=te+N;if(J.nodeType===Node.TEXT_NODE){const B=J.length;Q=Math.min(Q,B),I.setStart(J,Q),I.setEnd(J,Q)}else{const B=J.childNodes[te];if(B&&B.nodeType===Node.TEXT_NODE){const j=B.length;Q=Math.min(N,j),I.setStart(B,Q),I.setEnd(B,Q)}}I.collapse(!0),P.removeAllRanges(),P.addRange(I)}}async function L(N){try{f(!1),await navigator.clipboard.writeText(N),setTimeout(()=>{f(!0)},300)}catch(I){console.error("Failed to copy text: ",I)}}return p.jsx("div",{ref:v,children:p.jsx("div",{ref:i,className:"link-editor dropdown-link-doc-editor",children:c?m?p.jsx(p.Fragment,{children:p.jsxs(E.Group,{p:"10",pb:g?20:10,justify:"space-around",align:"center",wrap:"nowrap",flex:1,gap:"xs",children:[p.jsxs(E.Box,{w:"100%",children:[p.jsx(E.Input,{ref:l,value:c,error:g,type:"url",size:"sm",onChange:N=>{const I=_(N.target.value);g&&I&&h(!1),g&&!I&&h(!0),u(N.target.value)},onKeyDown:N=>{C(N)}}),g&&p.jsx(E.Box,{style:{position:"absolute",bottom:"1px"},children:p.jsx(E.Text,{c:"red",fz:"12",children:b("editor.form.url")})})]}),p.jsxs(E.Group,{gap:2,w:"auto",wrap:"nowrap",children:[p.jsx(E.ActionIcon,{tabIndex:0,onMouseDown:N=>N.preventDefault(),onClick:k,variant:"subtle",color:"gray",size:"md",radius:"sm",type:"submit","aria-label":"Settings",children:p.jsx($,{name:"check-mark"})}),p.jsx(E.ActionIcon,{tabIndex:0,onMouseDown:N=>N.preventDefault(),onClick:()=>{w()},variant:"subtle",color:"red",size:"md","aria-label":"Settings",radius:"sm",children:p.jsx($,{name:"close"})})]})]})}):p.jsxs(E.Group,{p:10,align:"center",wrap:"nowrap",justify:"space-between",gap:0,flex:1,children:[p.jsx(E.Anchor,{href:ta(c),target:"_blank",rel:"noopener noreferrer",truncate:!0,w:300,children:c}),p.jsxs(E.Group,{mr:0,gap:0,wrap:"nowrap",children:[p.jsx(E.ActionIcon,{tabIndex:0,onMouseDown:N=>N.preventDefault(),onClick:()=>{L(ta(c)||"")},variant:"subtle",color:"gray",size:"md",radius:"sm","aria-label":"Settings",children:p.jsx($,{name:d?"copy":"check-mark"})}),p.jsx(E.ActionIcon,{tabIndex:0,onMouseDown:N=>N.preventDefault(),onClick:()=>{T(),A(!0),a.current=!0},variant:"subtle",color:"gray",size:"md",radius:"sm","aria-label":"Settings",children:p.jsx($,{name:"pencil"})}),p.jsx(E.ActionIcon,{tabIndex:0,onMouseDown:N=>N.preventDefault(),onClick:()=>{const N=T()||0;setTimeout(()=>{n.dispatchCommand(po,null),w(),setTimeout(()=>{D(N)})})},variant:"subtle",color:"red",size:"md",radius:"sm","aria-label":"Settings",children:p.jsx($,{name:"trash"})})]})]}):null})})}function O1(n,e,t){const[r,s]=x.useState(n),[o,i]=x.useState(!1),l=x.useRef(!0);return un.createPortal(p.jsx(M1,{editor:r,isLink:o,anchorElem:e,setIsLink:i,showTextToolbar:t,isSubmittedRef:l}),document.body)}function Fc({anchorElem:n=document.body,showTextToolbar:e}){const[t]=ie();return O1(t,n,e)}function R1({validateUrl:n,attributes:e}){const[t]=ie();return x.useEffect(()=>{if(!t.hasNodes([Os]))throw new Error("LinkPlugin: LinkNode not registered on editor");return ve(t.registerCommand(po,r=>{if(r===null)return Du(r),!0;if(typeof r=="string")return!(n!==void 0&&!n(r))&&(Du(r,e),!0);{const{url:s,target:o,rel:i,title:l}=r;return Du(s,{...e,rel:i,target:o,title:l}),!0}},le),n!==void 0?t.registerCommand(Ns,r=>{const s=R();if(!M(s)||s.isCollapsed()||!rr(r,ClipboardEvent))return!1;const o=r;if(o.clipboardData===null)return!1;const i=o.clipboardData.getData("text");return!!n(i)&&!s.getNodes().some(l=>O(l))&&(t.dispatchCommand(po,{...e,url:i}),r.preventDefault(),!0)},le):()=>{})},[t,n,e]),null}function ul(){return p.jsx(R1,{attributes:{target:null,rel:"noreferrer"}})}function j1(n){const e=n.getNodes();return e.length===0?new Set([n.anchor.getNode().getParentOrThrow(),n.focus.getNode().getParentOrThrow()]):new Set(e.map(t=>O(t)?t:t.getParentOrThrow()))}function P1(n){const e=R();if(!M(e))return!1;const t=j1(e);let r=0;for(const s of t)if(we(s))r=Math.max(Zd(s)+1,r);else if(Re(s)){const o=s.getParent();if(!we(o))throw new Error("ListMaxIndentLevelPlugin: A ListItemNode must have a ListNode for a parent.");r=Math.max(Zd(o)+1,r)}return r<=n}function Vh({maxDepth:n}){const[e]=ie();return x.useEffect(()=>ve(e.registerCommand(Pn,()=>!P1(n??7),dt)),[e,n]),null}function F1(n){x.useEffect(()=>XT(n),[n])}function Bc(){const[n]=ie();return x.useEffect(()=>{if(!n.hasNodes([fn,xt]))throw new Error("ListPlugin: ListNode and/or ListItemNode not registered on editor")},[n]),F1(n),null}function Gh(){const[n]=ie(),e=()=>{n.update(()=>{const t=fe(),r=re(),s=R();M(s)&&(s.format=0,s.setStyle("")),t.append(r).selectEnd()})};return p.jsx("div",{className:"new-paragraph",onClick:e})}const B1=1,z1=100;let XC=0,hA=!1;function W1(){window.addEventListener("keydown",n=>{n.key==="Tab"&&(n.preventDefault(),XC=n.timeStamp)},!0)}function zc(){const[n]=ie();return x.useEffect(()=>(hA||(W1(),hA=!0),n.registerCommand(Jr,e=>{const t=R();return M(t)&&XC+z1>e.timeStamp&&Ie(t.clone()),!1},B1)),[n]),null}function U1(n,e){const t=n.anchor,r=n.focus,o=(r.isBefore(t)?r:t).getNode(),i=vo(o);if(!e&&i.__prev===null)return!0;i instanceof xt&&!i.__opened&&i.setOpened(!0);const l=a=>{const c=a.getNextSibling(),u=c==null?void 0:c.getFirstChild();(u==null?void 0:u.__type)==="list"&&u.getChildren().forEach(f=>{f instanceof xt&&(l(f),f.setIndent(Math.max(0,f.getIndent()-1)))})};return e&&l(i),!1}function K1(n){return n.registerCommand(wo,e=>{const t=R();if(!M(t))return!1;try{if(U1(t,e.shiftKey))return!1;e.preventDefault();const s=e.shiftKey?Er:Pn;return n.dispatchCommand(s,void 0)}catch{return!1}},pe)}function QC(){const[n]=ie();return x.useEffect(()=>K1(n)),null}let Fa=class qC extends pt{static getType(){return"hashtag"}static clone(e){return new qC(e.__text,e.__key)}constructor(e,t){super(e,t)}createDOM(e){const t=super.createDOM(e);return _e(t,e.theme.hashtag),t}static importJSON(e){const t=$C(e.text);return t.setFormat(e.format),t.setDetail(e.detail),t.setMode(e.mode),t.setStyle(e.style),t}exportJSON(){return{...super.exportJSON(),type:"hashtag"}}canInsertTextBefore(){return!1}isTextEntity(){return!0}};function $C(n=""){return Me(new Fa(n))}class dl extends De{static getType(){return"mark"}static clone(e){return new dl(e.__ids,e.__key)}static importDOM(){return null}static importJSON(e){const t=gA(e.ids);return t.setFormat(e.format),t.setIndent(e.indent),t.setDirection(e.direction),t}exportJSON(){return{...super.exportJSON(),ids:Array.from(this.getIDs()),type:"mark",version:1}}constructor(e,t){super(t),this.__ids=e||[]}createDOM(e){const t=document.createElement("mark");return _e(t,e.theme.mark),this.__ids.length>1&&_e(t,e.theme.markOverlap),t}updateDOM(e,t,r){const s=e.__ids,o=this.__ids,i=s.length,l=o.length,a=r.theme.markOverlap;return i!==l&&(i===1?l===2&&_e(t,a):l===1&&Gn(t,a)),!1}hasID(e){const t=this.getIDs();for(let r=0;r<t.length;r++)if(e===t[r])return!0;return!1}getIDs(){const e=this.getLatest();return Pu(e)?Array.from(e.__ids):[]}addID(e){const t=this.getWritable();if(Pu(t)){const r=Array.from(t.__ids);t.__ids=r;for(let s=0;s<r.length;s++)if(e===r[s])return;r.push(e)}}deleteID(e){const t=this.getWritable();if(Pu(t)){const r=Array.from(t.__ids);t.__ids=r;for(let s=0;s<r.length;s++)if(e===r[s])return void r.splice(s,1)}}insertNewAfter(e,t=!0){const r=gA(this.__ids);return this.insertAfter(r,t),r}canInsertTextBefore(){return!1}canInsertTextAfter(){return!1}canBeEmpty(){return!1}isInline(){return!0}extractWithChild(e,t,r){if(!M(t)||r==="html")return!1;const s=t.anchor,o=t.focus,i=s.getNode(),l=o.getNode(),a=t.isBackward()?s.offset-o.offset:o.offset-s.offset;return this.isParentOf(i)&&this.isParentOf(l)&&this.getTextContent().length===a}excludeFromCopy(e){return e!=="clone"}}function gA(n){return Me(new dl(n))}function Pu(n){return n instanceof dl}function H1(n){return n&&n.__esModule&&Object.prototype.hasOwnProperty.call(n,"default")?n.default:n}var Y1=H1(function(n){const e=new URLSearchParams;e.append("code",n);for(let t=1;t<arguments.length;t++)e.append("v",arguments[t]);throw Error(`Minified Lexical error #${n}; visit https://lexical.dev/docs/error?${e} for the full message or use the non-minified dev environment for full errors and additional helpful warnings.`)});class No extends De{static getType(){return"overflow"}static clone(e){return new No(e.__key)}static importJSON(e){return V1()}static importDOM(){return null}constructor(e){super(e),this.__type="overflow"}exportJSON(){return{...super.exportJSON(),type:"overflow"}}createDOM(e){const t=document.createElement("span"),r=e.theme.characterLimit;return typeof r=="string"&&(t.className=r),t}updateDOM(e,t){return!1}insertNewAfter(e,t=!0){return this.getParentOrThrow().insertNewAfter(e,t)}excludeFromCopy(){return!0}static transform(){return e=>{G1(e)||Y1(204),e.isEmpty()&&e.remove()}}}function V1(){return Me(new No)}function G1(n){return n instanceof No}const Zh=/^(\d+(?:\.\d+)?)px$/,Z1=75,tt={BOTH:3,COLUMN:2,NO_STATUS:0,ROW:1};class vn extends De{constructor(t=tt.NO_STATUS,r=1,s,o){super(o);Z(this,"__colSpan");Z(this,"__rowSpan");Z(this,"__headerState");Z(this,"__width");Z(this,"__backgroundColor");this.__colSpan=r,this.__rowSpan=1,this.__headerState=t,this.__width=s,this.__backgroundColor=null}static getType(){return"tablecell"}static clone(t){return new vn(t.__headerState,t.__colSpan,t.__width,t.__key)}afterCloneFrom(t){super.afterCloneFrom(t),this.__rowSpan=t.__rowSpan,this.__backgroundColor=t.__backgroundColor}static importDOM(){return{td:t=>({conversion:pA,priority:0}),th:t=>({conversion:pA,priority:0})}}static importJSON(t){const r=t.colSpan||1,s=t.rowSpan||1;return xn(t.headerState,r,t.width||void 0).setRowSpan(s).setBackgroundColor(t.backgroundColor||null)}createDOM(t){const r=document.createElement(this.getTag());return this.__width&&(r.style.width=`${this.__width}px`),this.__colSpan>1&&(r.colSpan=this.__colSpan),this.__rowSpan>1&&(r.rowSpan=this.__rowSpan),this.__backgroundColor!==null&&(r.style.backgroundColor=this.__backgroundColor),_e(r,t.theme.tableCell,this.hasHeader()&&t.theme.tableCellHeader),r}exportDOM(t){const{element:r}=super.exportDOM(t);if(r){const s=r;this.__colSpan>1&&(s.colSpan=this.__colSpan),this.__rowSpan>1&&(s.rowSpan=this.__rowSpan),s.style.width=`${this.getWidth()||Z1}px`,s.style.verticalAlign="top",s.style.textAlign="start";const o=this.getBackgroundColor();o!==null?s.style.backgroundColor=o:this.hasHeader()&&(s.style.backgroundColor="#f2f3f5")}return{element:r}}exportJSON(){return{...super.exportJSON(),backgroundColor:this.getBackgroundColor(),colSpan:this.__colSpan,headerState:this.__headerState,rowSpan:this.__rowSpan,type:"tablecell",width:this.getWidth()}}getColSpan(){return this.getLatest().__colSpan}setColSpan(t){const r=this.getWritable();return r.__colSpan=t,r}getRowSpan(){return this.getLatest().__rowSpan}setRowSpan(t){const r=this.getWritable();return r.__rowSpan=t,r}getTag(){return this.hasHeader()?"th":"td"}setHeaderStyles(t,r=tt.BOTH){const s=this.getWritable();return s.__headerState=t&r|s.__headerState&~r,s}getHeaderStyles(){return this.getLatest().__headerState}setWidth(t){const r=this.getWritable();return r.__width=t,r}getWidth(){return this.getLatest().__width}getBackgroundColor(){return this.getLatest().__backgroundColor}setBackgroundColor(t){const r=this.getWritable();return r.__backgroundColor=t,r}toggleHeaderStyle(t){const r=this.getWritable();return(r.__headerState&t)===t?r.__headerState-=t:r.__headerState+=t,r}hasHeaderState(t){return(this.getHeaderStyles()&t)===t}hasHeader(){return this.getLatest().__headerState!==tt.NO_STATUS}updateDOM(t){return t.__headerState!==this.__headerState||t.__width!==this.__width||t.__colSpan!==this.__colSpan||t.__rowSpan!==this.__rowSpan||t.__backgroundColor!==this.__backgroundColor}isShadowRoot(){return!0}collapseAtStart(){return!0}canBeEmpty(){return!1}canIndent(){return!1}}function pA(n){const e=n,t=n.nodeName.toLowerCase();let r;Zh.test(e.style.width)&&(r=parseFloat(e.style.width));const s=xn(t==="th"?tt.ROW:tt.NO_STATUS,e.colSpan,r);s.__rowSpan=e.rowSpan;const o=e.style.backgroundColor;o!==""&&(s.__backgroundColor=o);const i=e.style,l=(i&&i.textDecoration||"").split(" "),a=i.fontWeight==="700"||i.fontWeight==="bold",c=l.includes("line-through"),u=i.fontStyle==="italic",d=l.includes("underline");return{after:f=>(f.length===0&&f.push(re()),f),forChild:(f,g)=>{if(oe(g)&&!O(f)){const h=re();return Ee(f)&&f.getTextContent()===`
31
- `?null:(Ht(f)&&(a&&f.toggleFormat("bold"),c&&f.toggleFormat("strikethrough"),u&&f.toggleFormat("italic"),d&&f.toggleFormat("underline")),h.append(f),h)}return f},node:s}}function xn(n,e=1,t){return Me(new vn(n,e,t))}function oe(n){return n instanceof vn}const Wc=ze();function tr(n){n.preventDefault(),n.stopImmediatePropagation(),n.stopPropagation()}class Io extends De{constructor(t,r){super(r);Z(this,"__height");this.__height=t}static getType(){return"tablerow"}static clone(t){return new Io(t.__height,t.__key)}static importDOM(){return{tr:t=>({conversion:J1,priority:0})}}static importJSON(t){return Di(t.height)}exportJSON(){return{...super.exportJSON(),...this.getHeight()&&{height:this.getHeight()},type:"tablerow",version:1}}createDOM(t){const r=document.createElement("tr");return this.__height&&(r.style.height=`${this.__height}px`),_e(r,t.theme.tableRow),r}isShadowRoot(){return!0}setHeight(t){const r=this.getWritable();return r.__height=t,this.__height}getHeight(){return this.getLatest().__height}updateDOM(t){return t.__height!==this.__height}canBeEmpty(){return!1}canIndent(){return!1}}function J1(n){const e=n;let t;return Zh.test(e.style.height)&&(t=parseFloat(e.style.height)),{node:Di(t)}}function Di(n){return Me(new Io(n))}function Qe(n){return n instanceof Io}function X1(n,e,t=!0){const r=$h();for(let s=0;s<n;s++){const o=Di();for(let i=0;i<e;i++){let l=tt.NO_STATUS;typeof t=="object"?(s===0&&t.rows&&(l|=tt.ROW),i===0&&t.columns&&(l|=tt.COLUMN)):t&&(s===0&&(l|=tt.ROW),i===0&&(l|=tt.COLUMN));const a=xn(l),c=re();c.append(hr()),a.append(c),o.append(a)}r.append(o)}return r}function ev(n){const e=ae(n,t=>Qe(t));if(Qe(e))return e;throw new Error("Expected table cell to be inside of table row.")}function Lr(n){const e=ae(n,t=>Oe(t));if(Oe(e))return e;throw new Error("Expected table cell to be inside of table.")}function Uc(n){const e=ev(n);return Lr(e).getChildren().findIndex(r=>r.is(e))}function Kc(n){return ev(n).getChildren().findIndex(t=>t.is(n))}const Q1=(n,e)=>n===tt.BOTH||n===e?e:tt.NO_STATUS;function Ba(n=!0){const e=R();ce(M(e)||Te(e),"Expected a RangeSelection or TableSelection");const t=e.focus.getNode(),[r,,s]=vt(t),[o,i]=ln(s,r,r),l=o[0].length,{startRow:a}=i;let c=null;if(n){const u=a+r.__rowSpan-1,d=o[u],f=Di();for(let h=0;h<l;h++){const{cell:m,startRow:A}=d[h];if(A+m.__rowSpan-1<=u){const y=d[h].cell.__headerState;f.append(xn(y).append(re()))}else m.setRowSpan(m.__rowSpan+1)}const g=s.getChildAtIndex(u);ce(Qe(g),"focusEndRow is not a TableRowNode"),g.insertAfter(f),c=f}else{const u=o[a],d=Di();for(let g=0;g<l;g++){const{cell:h,startRow:m}=u[g];if(m===a){const b=u[g].cell.__headerState;d.append(xn(b).append(re()))}else h.setRowSpan(h.__rowSpan+1)}const f=s.getChildAtIndex(a);ce(Qe(f),"focusEndRow is not a TableRowNode"),f.insertBefore(d),c=d}return c}function tf(n=!0){const e=R();ce(M(e)||Te(e),"Expected a RangeSelection or TableSelection");const t=e.anchor.getNode(),r=e.focus.getNode(),[s]=vt(t),[o,,i]=vt(r),[l,a,c]=ln(i,o,s),u=l.length,d=n?Math.max(a.startColumn,c.startColumn):Math.min(a.startColumn,c.startColumn),f=n?d+o.__colSpan-1:d-1,g=i.getFirstChild();ce(Qe(g),"Expected firstTable child to be a row");let h=null;function m(y=tt.NO_STATUS){const w=xn(y).append(re());return h===null&&(h=w),w}let A=g;e:for(let y=0;y<u;y++){if(y!==0){const T=A.getNextSibling();ce(Qe(T),"Expected row nextSibling to be a row"),A=T}const w=l[y],v=w[f<0?0:f].cell.__headerState,S=Q1(v,tt.ROW);if(f<0){Jh(A,m(S));continue}const{cell:C,startColumn:_,startRow:k}=w[f];if(_+C.__colSpan-1<=f){let T=C,D=k,L=f;for(;D!==y&&T.__rowSpan>1;)if(L-=C.__colSpan,L>=0){const{cell:I,startRow:P}=w[L];T=I,D=P}else{A.append(m(S));continue e}const N=y?0:S;T.insertAfter(m(N))}else C.setColSpan(C.__colSpan+1)}h!==null&&Ni(h);const b=i.getColWidths();if(b){const y=[...b],w=f<0?0:f,v=y[w];y.splice(w,0,v),i.setColWidths(y)}return h}function q1(){const n=R();ce(M(n)||Te(n),"Expected a RangeSelection or TableSelection");const[e,t]=n.isBackward()?[n.focus.getNode(),n.anchor.getNode()]:[n.anchor.getNode(),n.focus.getNode()],[r,,s]=vt(e),[o]=vt(t),[i,l,a]=ln(s,r,o),{startRow:c}=l,{startRow:u}=a,d=u+o.__rowSpan-1;if(i.length===d-c+1){s.remove();return}const f=i[0].length,g=i[d+1],h=s.getChildAtIndex(d+1);for(let m=d;m>=c;m--){for(let b=f-1;b>=0;b--){const{cell:y,startRow:w,startColumn:v}=i[m][b];if(v===b&&(m===c&&w<c&&y.setRowSpan(y.__rowSpan-(w-c)),w>=c&&w+y.__rowSpan-1>d))if(y.setRowSpan(y.__rowSpan-(d-w+1)),ce(h!==null,"Expected nextRowNode not to be null"),b===0)Jh(h,y);else{const{cell:S}=g[b-1];S.insertAfter(y)}}const A=s.getChildAtIndex(m);ce(Qe(A),"Expected TableNode childAtIndex(%s) to be RowNode",String(m)),A.remove()}if(g!==void 0){const{cell:m}=g[0];Ni(m)}else{const m=i[c-1],{cell:A}=m[0];Ni(A)}}function $1(){const n=R();ce(M(n)||Te(n),"Expected a RangeSelection or TableSelection");const e=n.anchor.getNode(),t=n.focus.getNode(),[r,,s]=vt(e),[o]=vt(t),[i,l,a]=ln(s,r,o),{startColumn:c}=l,{startRow:u,startColumn:d}=a,f=Math.min(c,d),g=Math.max(c+r.__colSpan-1,d+o.__colSpan-1),h=g-f+1;if(i[0].length===g-f+1){s.selectPrevious(),s.remove();return}const A=i.length;for(let v=0;v<A;v++)for(let S=f;S<=g;S++){const{cell:C,startColumn:_}=i[v][S];if(_<f){if(S===f){const k=f-_;C.setColSpan(C.__colSpan-Math.min(h,C.__colSpan-k))}}else if(_+C.__colSpan-1>g){if(S===g){const k=g-_+1;C.setColSpan(C.__colSpan-k)}}else C.remove()}const b=i[u],y=c>d?b[c+r.__colSpan]:b[d+o.__colSpan];if(y!==void 0){const{cell:v}=y;Ni(v)}else{const v=d<c?b[d-1]:b[c-1],{cell:S}=v;Ni(S)}const w=s.getColWidths();if(w){const v=[...w];v.splice(f,h),s.setColWidths(v)}}function Ni(n){const e=n.getFirstDescendant();e==null?n.selectStart():e.getParentOrThrow().selectStart()}function Jh(n,e){const t=n.getFirstChild();t!==null?t.insertBefore(e):n.append(e)}function eD(){const n=R();ce(M(n)||Te(n),"Expected a RangeSelection or TableSelection");const e=n.anchor.getNode(),[t,r,s]=vt(e),o=t.__colSpan,i=t.__rowSpan;if(o===1&&i===1)return;const[l,a]=ln(s,t,t),{startColumn:c,startRow:u}=a,d=t.__headerState&tt.COLUMN,f=Array.from({length:o},(m,A)=>{let b=d;for(let y=0;b!==0&&y<l.length;y++)b&=l[y][A+c].cell.__headerState;return b}),g=t.__headerState&tt.ROW,h=Array.from({length:i},(m,A)=>{let b=g;for(let y=0;b!==0&&y<l[0].length;y++)b&=l[A+u][y].cell.__headerState;return b});if(o>1){for(let m=1;m<o;m++)t.insertAfter(xn(f[m]|h[0]).append(re()));t.setColSpan(1)}if(i>1){let m;for(let A=1;A<i;A++){const b=u+A,y=l[b];m=(m||r).getNextSibling(),ce(Qe(m),"Expected row next sibling to be a row");let w=null;for(let v=0;v<c;v++){const S=y[v],C=S.cell;S.startRow===b&&(w=C),C.__colSpan>1&&(v+=C.__colSpan-1)}if(w===null)for(let v=o-1;v>=0;v--)Jh(m,xn(f[v]|h[A]).append(re()));else for(let v=o-1;v>=0;v--)w.insertAfter(xn(f[v]|h[A]).append(re()))}t.setRowSpan(1)}}function ln(n,e,t){const[r,s,o]=tv(n,e,t);return ce(s!==null,"Anchor not found in Table"),ce(o!==null,"Focus not found in Table"),[r,s,o]}function tv(n,e,t){const r=[];let s=null,o=null;function i(a){let c=r[a];return c===void 0&&(r[a]=c=[]),c}const l=n.getChildren();for(let a=0;a<l.length;a++){const c=l[a];ce(Qe(c),"Expected TableNode children to be TableRowNode");for(let u=c.getFirstChild(),d=0;u!=null;u=u.getNextSibling()){ce(oe(u),"Expected TableRowNode children to be TableCellNode");const f=i(a);for(;f[d]!==void 0;)d++;const g={cell:u,startColumn:d,startRow:a},{__rowSpan:h,__colSpan:m}=u;for(let A=0;A<h&&!(a+A>=l.length);A++){const b=i(a+A);for(let y=0;y<m;y++)b[d+y]=g}e!==null&&s===null&&e.is(u)&&(s=g),t!==null&&o===null&&t.is(u)&&(o=g)}}return[r,s,o]}function vt(n){let e;if(n instanceof vn)e=n;else if("__type"in n){const s=ae(n,oe);ce(oe(s),"Expected to find a parent TableCellNode"),e=s}else{const s=ae(n.getNode(),oe);ce(oe(s),"Expected to find a parent TableCellNode"),e=s}const t=e.getParent();ce(Qe(t),"Expected TableCellNode to have a parent TableRowNode");const r=t.getParent();return ce(Oe(r),"Expected TableRowNode to have a parent TableNode"),[e,t,r]}function mA(n){const[e,,t]=vt(n),r=t.getChildren(),s=r.length,o=r[0].getChildren().length,i=new Array(s);for(let l=0;l<s;l++)i[l]=new Array(o);for(let l=0;l<s;l++){const c=r[l].getChildren();let u=0;for(let d=0;d<c.length;d++){for(;i[l][u];)u++;const f=c[d],g=f.__rowSpan||1,h=f.__colSpan||1;for(let m=0;m<g;m++)for(let A=0;A<h;A++)i[l+m][u+A]=f;if(e===f)return{colSpan:h,columnIndex:u,rowIndex:l,rowSpan:g};u+=h}}return null}class Hc{constructor(e,t,r){Z(this,"tableKey");Z(this,"anchor");Z(this,"focus");Z(this,"_cachedNodes");Z(this,"dirty");this.anchor=t,this.focus=r,t._selection=this,r._selection=this,this._cachedNodes=null,this.dirty=!1,this.tableKey=e}getStartEndPoints(){return[this.anchor,this.focus]}isBackward(){return this.focus.isBefore(this.anchor)}getCachedNodes(){return this._cachedNodes}setCachedNodes(e){this._cachedNodes=e}is(e){return Te(e)?this.tableKey===e.tableKey&&this.anchor.is(e.anchor)&&this.focus.is(e.focus):!1}set(e,t,r){this.dirty=!0,this.tableKey=e,this.anchor.key=t,this.focus.key=r,this._cachedNodes=null}clone(){return new Hc(this.tableKey,this.anchor,this.focus)}isCollapsed(){return!1}extract(){return this.getNodes()}insertRawText(e){}insertText(){}hasFormat(e){let t=0;this.getNodes().filter(oe).forEach(o=>{const i=o.getFirstChild();at(i)&&(t|=i.getTextFormat())});const s=jr[e];return(t&s)!==0}insertNodes(e){const t=this.focus.getNode();ce(O(t),"Expected TableSelection focus to be an ElementNode"),sc(t.select(0,t.getChildrenSize())).insertNodes(e)}getShape(){const e=ue(this.anchor.key);ce(oe(e),"Expected TableSelection anchor to be (or a child of) TableCellNode");const t=mA(e);ce(t!==null,"getCellRect: expected to find AnchorNode");const r=ue(this.focus.key);ce(oe(r),"Expected TableSelection focus to be (or a child of) TableCellNode");const s=mA(r);ce(s!==null,"getCellRect: expected to find focusCellNode");const o=Math.min(t.columnIndex,s.columnIndex),i=Math.max(t.columnIndex+t.colSpan-1,s.columnIndex+s.colSpan-1),l=Math.min(t.rowIndex,s.rowIndex),a=Math.max(t.rowIndex+t.rowSpan-1,s.rowIndex+s.rowSpan-1);return{fromX:Math.min(o,i),fromY:Math.min(l,a),toX:Math.max(o,i),toY:Math.max(l,a)}}getNodes(){const e=this._cachedNodes;if(e!==null)return e;const t=this.anchor.getNode(),r=this.focus.getNode(),s=ae(t,oe),o=ae(r,oe);ce(oe(s),"Expected TableSelection anchor to be (or a child of) TableCellNode"),ce(oe(o),"Expected TableSelection focus to be (or a child of) TableCellNode");const i=s.getParent();ce(Qe(i),"Expected anchorCell to have a parent TableRowNode");const l=i.getParent();ce(Oe(l),"Expected tableNode to have a parent TableNode");const a=o.getParents()[1];if(a!==l){if(l.isParentOf(o)){const k=a.getParent();ce(k!=null,"Expected focusCellParent to have a parent"),this.set(this.tableKey,o.getKey(),k.getKey())}else{const k=l.getParent();ce(k!=null,"Expected gridParent to have a parent"),this.set(this.tableKey,k.getKey(),o.getKey())}return this.getNodes()}const[c,u,d]=ln(l,s,o);let f=Math.min(u.startColumn,d.startColumn),g=Math.min(u.startRow,d.startRow),h=Math.max(u.startColumn+u.cell.__colSpan-1,d.startColumn+d.cell.__colSpan-1),m=Math.max(u.startRow+u.cell.__rowSpan-1,d.startRow+d.cell.__rowSpan-1),A=f,b=g,y=f,w=g;function v(k){const{cell:T,startColumn:D,startRow:L}=k;f=Math.min(f,D),g=Math.min(g,L),h=Math.max(h,D+T.__colSpan-1),m=Math.max(m,L+T.__rowSpan-1)}for(;f<A||g<b||h>y||m>w;){if(f<A){const k=w-b,T=A-1;for(let D=0;D<=k;D++)v(c[b+D][T]);A=T}if(g<b){const k=y-A,T=b-1;for(let D=0;D<=k;D++)v(c[T][A+D]);b=T}if(h>y){const k=w-b,T=y+1;for(let D=0;D<=k;D++)v(c[b+D][T]);y=T}if(m>w){const k=y-A,T=w+1;for(let D=0;D<=k;D++)v(c[T][A+D]);w=T}}const S=new Map([[l.getKey(),l]]);let C=null;for(let k=g;k<=m;k++)for(let T=f;T<=h;T++){const{cell:D}=c[k][T],L=D.getParent();ce(Qe(L),"Expected TableCellNode parent to be a TableRowNode"),L!==C&&S.set(L.getKey(),L),S.set(D.getKey(),D);for(const N of tD(D))S.set(N.getKey(),N);C=L}const _=Array.from(S.values());return Co()||(this._cachedNodes=_),_}getTextContent(){const e=this.getNodes().filter(r=>oe(r));let t="";for(let r=0;r<e.length;r++){const s=e[r],o=s.__parent,i=(e[r+1]||{}).__parent;t+=s.getTextContent()+(i!==o?`
32
- `:" ")}return t}}function Te(n){return n instanceof Hc}function AA(){const n=dn("root",0,"element"),e=dn("root",0,"element");return new Hc("root",n,e)}function tD(n){const e=[],t=[n];for(;t.length>0;){const r=t.pop();ce(r!==void 0,"Stack.length > 0; can't be undefined"),O(r)&&t.unshift(...r.getChildren()),r!==n&&e.push(r)}return e}function nv(n,e=cc()){const t=ue(n);ce(Oe(t),"TableObserver: Expected tableNodeKey %s to be a TableNode",n);const r=Ss(t,e.getElementByKey(n));return ce(r!==null,"TableObserver: Expected to find TableElement in DOM for key %s",n),{tableElement:r,tableNode:t}}class nD{constructor(e,t){Z(this,"focusX");Z(this,"focusY");Z(this,"listenersToRemove");Z(this,"table");Z(this,"isHighlightingCells");Z(this,"anchorX");Z(this,"anchorY");Z(this,"tableNodeKey");Z(this,"anchorCell");Z(this,"focusCell");Z(this,"anchorCellNodeKey");Z(this,"focusCellNodeKey");Z(this,"editor");Z(this,"tableSelection");Z(this,"hasHijackedSelectionStyles");Z(this,"isSelecting");Z(this,"shouldCheckSelection");Z(this,"abortController");Z(this,"listenerOptions");this.isHighlightingCells=!1,this.anchorX=-1,this.anchorY=-1,this.focusX=-1,this.focusY=-1,this.listenersToRemove=new Set,this.tableNodeKey=t,this.editor=e,this.table={columns:0,domRows:[],rows:0},this.tableSelection=null,this.anchorCellNodeKey=null,this.focusCellNodeKey=null,this.anchorCell=null,this.focusCell=null,this.hasHijackedSelectionStyles=!1,this.isSelecting=!1,this.shouldCheckSelection=!1,this.abortController=new AbortController,this.listenerOptions={signal:this.abortController.signal},this.trackTable()}getTable(){return this.table}removeListeners(){this.abortController.abort("removeListeners"),Array.from(this.listenersToRemove).forEach(e=>e()),this.listenersToRemove.clear()}$lookup(){return nv(this.tableNodeKey,this.editor)}trackTable(){const e=new MutationObserver(t=>{this.editor.getEditorState().read(()=>{let r=!1;for(let i=0;i<t.length;i++){const c=t[i].target.nodeName;if(c==="TABLE"||c==="TBODY"||c==="THEAD"||c==="TR"){r=!0;break}}if(!r)return;const{tableNode:s,tableElement:o}=this.$lookup();this.table=ai(s,o)},{editor:this.editor})});this.editor.getEditorState().read(()=>{const{tableNode:t,tableElement:r}=this.$lookup();this.table=ai(t,r),e.observe(r,{attributes:!0,childList:!0,subtree:!0})},{editor:this.editor})}clearHighlight(){const e=this.editor;this.isHighlightingCells=!1,this.anchorX=-1,this.anchorY=-1,this.focusX=-1,this.focusY=-1,this.tableSelection=null,this.anchorCellNodeKey=null,this.focusCellNodeKey=null,this.anchorCell=null,this.focusCell=null,this.hasHijackedSelectionStyles=!1,this.enableHighlightStyle(),e.update(()=>{const{tableNode:t,tableElement:r}=this.$lookup(),s=ai(t,r);Nl(e,s,null),Ie(null),e.dispatchCommand(Qt,void 0)})}enableHighlightStyle(){const e=this.editor;e.getEditorState().read(()=>{const{tableElement:t}=this.$lookup();Gn(t,e._config.theme.tableSelection),t.classList.remove("disable-selection"),this.hasHijackedSelectionStyles=!1},{editor:e})}disableHighlightStyle(){const e=this.editor;e.getEditorState().read(()=>{const{tableElement:t}=this.$lookup();_e(t,e._config.theme.tableSelection),this.hasHijackedSelectionStyles=!0},{editor:e})}updateTableTableSelection(e){if(e!==null&&e.tableKey===this.tableNodeKey){const t=this.editor;this.tableSelection=e,this.isHighlightingCells=!0,this.disableHighlightStyle(),Nl(t,this.table,this.tableSelection)}else e==null?this.clearHighlight():(this.tableNodeKey=e.tableKey,this.updateTableTableSelection(e))}setShouldCheckSelection(){this.shouldCheckSelection=!0}getAndClearShouldCheckSelection(){return this.shouldCheckSelection?(this.shouldCheckSelection=!1,!0):!1}setFocusCellForSelection(e,t=!1){const r=this.editor;r.update(()=>{const{tableNode:s}=this.$lookup(),o=e.x,i=e.y;if(this.focusCell=e,this.anchorCell!==null){const l=rv(r._window);l&&l.setBaseAndExtent(this.anchorCell.elem,0,this.focusCell.elem,0)}if(!this.isHighlightingCells&&(this.anchorX!==o||this.anchorY!==i||t))this.isHighlightingCells=!0,this.disableHighlightStyle();else if(o===this.focusX&&i===this.focusY)return;if(this.focusX=o,this.focusY=i,this.isHighlightingCells){const l=he(e.elem);if(this.tableSelection!=null&&this.anchorCellNodeKey!=null&&oe(l)&&s.is($s(l))){const a=l.getKey();this.tableSelection=this.tableSelection.clone()||AA(),this.focusCellNodeKey=a,this.tableSelection.set(this.tableNodeKey,this.anchorCellNodeKey,this.focusCellNodeKey),Ie(this.tableSelection),r.dispatchCommand(Qt,void 0),Nl(r,this.table,this.tableSelection)}}})}setAnchorCellForSelection(e){this.isHighlightingCells=!1,this.anchorCell=e,this.anchorX=e.x,this.anchorY=e.y,this.editor.update(()=>{const t=he(e.elem);if(oe(t)){const r=t.getKey();this.tableSelection=this.tableSelection!=null?this.tableSelection.clone():AA(),this.anchorCellNodeKey=r}})}formatCells(e){this.editor.update(()=>{const t=R();Te(t)||ce(!1,"Expected grid selection");const r=Ji(),s=r.anchor,o=r.focus,i=t.getNodes().filter(oe),l=i[0].getFirstChild(),a=at(l)?l.getFormatFlags(e,null):null;i.forEach(c=>{s.set(c.getKey(),0,"element"),o.set(c.getKey(),c.getChildrenSize(),"element"),r.formatText(e,a)}),Ie(t),this.editor.dispatchCommand(Qt,void 0)})}clearText(){const e=this.editor;e.update(()=>{const t=ue(this.tableNodeKey);if(!Oe(t))throw new Error("Expected TableNode.");const r=R();Te(r)||ce(!1,"Expected grid selection");const s=r.getNodes().filter(oe);if(s.length===this.table.columns*this.table.rows){t.selectPrevious(),t.remove(),fe().selectStart();return}s.forEach(o=>{if(O(o)){const i=re(),l=hr();i.append(l),o.append(i),o.getChildren().forEach(a=>{a!==i&&a.remove()})}}),Nl(e,this.table,null),Ie(null),e.dispatchCommand(Qt,void 0)})}}const Xh="__lexicalTableSelection",rv=n=>Do?(n||window).getSelection():null,rD=n=>(n.buttons&1)===1;function Ss(n,e){if(!e)return e;const t=e.nodeName==="TABLE"?e:n.getDOMSlot(e).element;return ce(t.nodeName==="TABLE","getTableElement: Expecting table in as DOM node for TableNode, not %s",e.nodeName),t}function sD(n,e,t,r){const s=t.getRootElement();if(s===null)throw new Error("No root element.");const o=new nD(t,n.getKey()),i=t._window||window,l=Ss(n,e);iD(l,o),o.listenersToRemove.add(()=>oD(l,o));const a=()=>{const h=()=>{o.isSelecting=!1,i.removeEventListener("mouseup",h),i.removeEventListener("mousemove",m)},m=A=>{setTimeout(()=>{if(!rD(A)&&o.isSelecting){o.isSelecting=!1,i.removeEventListener("mouseup",h),i.removeEventListener("mousemove",m);return}const b=nf(A.target);b!==null&&(o.anchorX!==b.x||o.anchorY!==b.y)&&(A.preventDefault(),o.setFocusCellForSelection(b))},0)};return{onMouseMove:m,onMouseUp:h}},c=h=>{setTimeout(()=>{if(h.button!==0||!i)return;const m=nf(h.target);m!==null&&(tr(h),o.setAnchorCellForSelection(m));const{onMouseUp:A,onMouseMove:b}=a();o.isSelecting=!0,i.addEventListener("mouseup",A,o.listenerOptions),i.addEventListener("mousemove",b,o.listenerOptions)},0)};l.addEventListener("mousedown",c,o.listenerOptions);const u=h=>{h.button===0&&t.update(()=>{const m=R(),A=h.target;Te(m)&&m.tableKey===o.tableNodeKey&&s.contains(A)&&o.clearHighlight()})};i.addEventListener("mousedown",u,o.listenerOptions),o.listenersToRemove.add(t.registerCommand(Rr,h=>Jo(t,h,"down",n,o),xr)),o.listenersToRemove.add(t.registerCommand(zn,h=>Jo(t,h,"up",n,o),xr)),o.listenersToRemove.add(t.registerCommand(qa,h=>Jo(t,h,"backward",n,o),xr)),o.listenersToRemove.add(t.registerCommand(Qa,h=>Jo(t,h,"forward",n,o),xr));const d=h=>()=>{const m=R();if(!ns(m,n))return!1;if(Te(m))return o.clearText(),!0;if(M(m)){const A=ae(m.anchor.getNode(),k=>oe(k));if(!oe(A))return!1;const b=m.anchor.getNode(),y=m.focus.getNode(),w=n.isParentOf(b),v=n.isParentOf(y);if(w&&!v||v&&!w)return o.clearText(),!0;const C=ae(m.anchor.getNode(),k=>O(k)),_=C&&ae(C,k=>O(k)&&oe(k.getParent()));if(!O(_)||!O(C))return!1;if(h===hs&&_.getPreviousSibling()===null)return!0}return!1};[lo,hs,jn].forEach(h=>{o.listenersToRemove.add(t.registerCommand(h,d(h),dt))});const f=h=>{const m=R();if(!(Te(m)||M(m)))return!1;const A=n.isParentOf(m.anchor.getNode()),b=n.isParentOf(m.focus.getNode());if(A!==b){const y=A?"anchor":"focus",w=A?"focus":"anchor",{key:v,offset:S,type:C}=m[w];return n[m[y].isBefore(m[w])?"selectPrevious":"selectNext"]()[w].set(v,S,C),!1}return Te(m)?(h&&(h.preventDefault(),h.stopPropagation()),o.clearText(),!0):!1};o.listenersToRemove.add(t.registerCommand(pr,f,dt)),o.listenersToRemove.add(t.registerCommand(Zr,f,dt)),o.listenersToRemove.add(t.registerCommand(ec,h=>{const m=R();if(m){if(!(Te(m)||M(m)))return!1;Hd(t,rr(h,ClipboardEvent)?h:null,Oh(m));const A=f(h);return M(m)?(m.removeText(),!0):A}return!1},dt)),o.listenersToRemove.add(t.registerCommand(Ue,h=>{const m=R();if(!ns(m,n))return!1;if(Te(m))return o.formatCells(h),!0;if(M(m)){const A=ae(m.anchor.getNode(),b=>oe(b));if(!oe(A))return!1}return!1},dt)),o.listenersToRemove.add(t.registerCommand($a,h=>{const m=R();if(!Te(m)||!ns(m,n))return!1;const A=m.anchor.getNode(),b=m.focus.getNode();if(!oe(A)||!oe(b))return!1;const[y,w,v]=ln(n,A,b),S=Math.max(w.startRow,v.startRow),C=Math.max(w.startColumn,v.startColumn),_=Math.min(w.startRow,v.startRow),k=Math.min(w.startColumn,v.startColumn);for(let T=_;T<=S;T++)for(let D=k;D<=C;D++){const L=y[T][D].cell;L.setFormat(h);const N=L.getChildren();for(let I=0;I<N.length;I++){const P=N[I];O(P)&&!P.isInline()&&P.setFormat(h)}}return!0},dt)),o.listenersToRemove.add(t.registerCommand(ls,h=>{const m=R(),A=m==null?void 0:m.getNodes(),b=oe(A[1]),y=fe(),w=t._keyToDOMMap.size-1===(m==null?void 0:m.getNodes().length);if(b&&t.update(()=>{const v=re(),S=hr(h);v.append(S),A.forEach(C=>{if(!Oe(C))return;const _=C.getPreviousSibling(),k=C.getNextSibling();_?_.insertAfter(v,!0):k&&k.insertBefore(v).selectEnd(),C.remove()}),w&&(y.clear(),m.insertText(h))}),!ns(m,n))return!1;if(Te(m))return o.clearHighlight(),!1;if(M(m)){const v=ae(m.anchor.getNode(),S=>oe(S));if(!oe(v))return!1;if(typeof h=="string"){const S=wA(t,m,n);if(S)return bA(S,n,[hr(h)]),!0}}return!1},dt)),r&&o.listenersToRemove.add(t.registerCommand(wo,h=>{const m=R();if(!M(m)||!m.isCollapsed()||!ns(m,n))return!1;const A=Ll(m.anchor.getNode());if(A===null)return!1;tr(h);const b=n.getCordsFromCellNode(A,o.table);return sv(o,n,b.x,b.y,h.shiftKey?"backward":"forward"),!0},dt)),o.listenersToRemove.add(t.registerCommand(Jr,h=>n.isSelected(),xr));function g(h){const m=n.getCordsFromCellNode(h,o.table);return n.getDOMCellFromCordsOrThrow(m.x,m.y,o.table)}return o.listenersToRemove.add(t.registerCommand(By,h=>{const{nodes:m,selection:A}=h,b=A.focus.getNode().getParent();return oe(b)?(m[0].getFirstChildOrThrow().getChildrenSize(),!0):!1},dt)),o.listenersToRemove.add(t.registerCommand(Qt,()=>{const h=R(),m=Is();if(o.getAndClearShouldCheckSelection()&&M(m)&&M(h)&&h.isCollapsed()){const A=h.anchor.getNode(),b=n.getFirstChild(),y=Ll(A);if(y!==null&&Qe(b)){const w=b.getFirstChild();if(oe(w)&&!ae(y,v=>v.is(w)))return w.selectStart(),!0}}if(M(h)){const{anchor:A,focus:b}=h,y=A.getNode(),w=b.getNode(),v=Ll(y),S=Ll(w),C=!!(v&&n.is($s(v))),_=!!(S&&n.is($s(S))),k=C!==_,T=C&&_,D=h.isBackward();if(k){const L=h.clone();if(_){const[N]=ln(n,S,S),I=N[0][0].cell,P=N[N.length-1].at(-1).cell;L.focus.set(D?I.getKey():P.getKey(),D?I.getChildrenSize():P.getChildrenSize(),"element")}else if(C){const[N]=ln(n,v,v),I=N[0][0].cell,P=N[N.length-1].at(-1).cell;L.anchor.set(D?P.getKey():I.getKey(),D?P.getChildrenSize():0,"element")}Ie(L),yA(t,o)}else T&&(v.is(S)||(o.setAnchorCellForSelection(g(v)),o.setFocusCellForSelection(g(S),!0),o.isSelecting||setTimeout(()=>{const{onMouseUp:L,onMouseMove:N}=a();o.isSelecting=!0,i.addEventListener("mouseup",L),i.addEventListener("mousemove",N)},0)))}else if(h&&Te(h)&&h.is(m)&&h.tableKey===n.getKey()){const A=rv(t._window);if(A&&A.anchorNode&&A.focusNode){const b=he(A.focusNode),y=b&&!n.is($s(b)),w=he(A.anchorNode),v=w&&n.is($s(w));if(y&&v&&A.rangeCount>0){const S=_0(A,t);S&&(S.anchor.set(n.getKey(),h.isBackward()?n.getChildrenSize():0,"element"),A.removeAllRanges(),Ie(S))}}}return h&&!h.is(m)&&(Te(h)||Te(m))&&o.tableSelection&&!o.tableSelection.is(m)?(Te(h)&&h.tableKey===o.tableNodeKey?o.updateTableTableSelection(h):!Te(h)&&Te(m)&&m.tableKey===o.tableNodeKey&&o.updateTableTableSelection(null),!1):(o.hasHijackedSelectionStyles&&!n.isSelected()?lD(t,o):!o.hasHijackedSelectionStyles&&n.isSelected()&&yA(t,o),!1)},dt)),o.listenersToRemove.add(t.registerCommand(cr,()=>{const h=R();if(!M(h)||!h.isCollapsed()||!ns(h,n))return!1;const m=wA(t,h,n);return m?(bA(m,n),!0):!1},dt)),o}function oD(n,e){Qh(n)===e&&delete n[Xh]}function iD(n,e){ce(Qh(n)===null,"tableElement already has an attached TableObserver"),n[Xh]=e}function Qh(n){return n[Xh]||null}function nf(n){let e=n;for(;e!=null;){const t=e.nodeName;if(t==="TD"||t==="TH"){const r=e._cell;return r===void 0?null:r}e=e.parentNode}return null}function ai(n,e){const t=Ss(n,e),r=[],s={columns:0,domRows:r,rows:0};let o=t.querySelector("tr"),i=0,l=0;for(r.length=0;o!=null;){const a=o.nodeName;if(a==="TD"||a==="TH"){const d=o,f={elem:d,hasBackgroundColor:d.style.backgroundColor!=="",highlighted:!1,x:i,y:l};o._cell=f;let g=r[l];g===void 0&&(g=r[l]=[]),g[i]=f}else{const d=o.firstChild;if(d!=null){o=d;continue}}const c=o.nextSibling;if(c!=null){i++,o=c;continue}const u=o.parentNode;if(u!=null){const d=u.nextSibling;if(d==null)break;l++,i=0,o=d}}return s.columns=i+1,s.rows=l+1,s}function Nl(n,e,t){const r=new Set(t?t.getNodes():[]);qh(e,(s,o)=>{const i=s.elem;r.has(o)?(s.highlighted=!0,ov(n,s)):(s.highlighted=!1,iv(n,s),i.getAttribute("style")||i.removeAttribute("style"))})}function qh(n,e){const{domRows:t}=n;for(let r=0;r<t.length;r++){const s=t[r];if(s)for(let o=0;o<s.length;o++){const i=s[o];if(!i)continue;const l=he(i.elem);l!==null&&e(i,l,{x:o,y:r})}}}function yA(n,e){e.disableHighlightStyle(),qh(e.table,t=>{t.highlighted=!0,ov(n,t)})}function lD(n,e){e.enableHighlightStyle(),qh(e.table,t=>{const r=t.elem;t.highlighted=!1,iv(n,t),r.getAttribute("style")||r.removeAttribute("style")})}const sv=(n,e,t,r,s)=>{const o=s==="forward";switch(s){case"backward":case"forward":return t!==(o?n.table.columns-1:0)?Il(e.getCellNodeFromCordsOrThrow(t+(o?1:-1),r,n.table),o):r!==(o?n.table.rows-1:0)?Il(e.getCellNodeFromCordsOrThrow(o?0:n.table.columns-1,r+(o?1:-1),n.table),o):o?e.selectNext():e.selectPrevious(),!0;case"up":return r!==0?Il(e.getCellNodeFromCordsOrThrow(t,r-1,n.table),!1):e.selectPrevious(),!0;case"down":return r!==n.table.rows-1?Il(e.getCellNodeFromCordsOrThrow(t,r+1,n.table),!0):e.selectNext(),!0;default:return!1}},aD=(n,e,t,r,s)=>{const o=s==="forward";switch(s){case"backward":case"forward":return t!==(o?n.table.columns-1:0)&&n.setFocusCellForSelection(e.getDOMCellFromCordsOrThrow(t+(o?1:-1),r,n.table)),!0;case"up":return r!==0?(n.setFocusCellForSelection(e.getDOMCellFromCordsOrThrow(t,r-1,n.table)),!0):!1;case"down":return r!==n.table.rows-1?(n.setFocusCellForSelection(e.getDOMCellFromCordsOrThrow(t,r+1,n.table)),!0):!1;default:return!1}};function ns(n,e){if(M(n)||Te(n)){const t=e.isParentOf(n.anchor.getNode()),r=e.isParentOf(n.focus.getNode());return t&&r}return!1}function Il(n,e){e?n.selectStart():n.selectEnd()}const Fu="172,206,247";function ov(n,e){const t=e.elem,r=he(t);ce(oe(r),"Expected to find LexicalNode from Table Cell DOMNode"),r.getBackgroundColor()===null?t.style.setProperty("background-color",`rgb(${Fu})`):t.style.setProperty("background-image",`linear-gradient(to right, rgba(${Fu},0.85), rgba(${Fu},0.85))`),t.style.setProperty("caret-color","transparent")}function iv(n,e){const t=e.elem,r=he(t);ce(oe(r),"Expected to find LexicalNode from Table Cell DOMNode"),r.getBackgroundColor()===null&&t.style.removeProperty("background-color"),t.style.removeProperty("background-image"),t.style.removeProperty("caret-color")}function Ll(n){const e=ae(n,oe);return oe(e)?e:null}function $s(n){const e=ae(n,Oe);return Oe(e)?e:null}function Jo(n,e,t,r,s){if((t==="up"||t==="down")&&cD(n))return!1;const o=R();if(!ns(o,r)){if(M(o)){if(o.isCollapsed()&&t==="backward"){const i=o.anchor.type,l=o.anchor.offset;if(i!=="element"&&!(i==="text"&&l===0))return!1;const a=o.anchor.getNode();if(!a)return!1;const c=ae(a,d=>O(d)&&!d.isInline());if(!c)return!1;const u=c.getPreviousSibling();return!u||!Oe(u)?!1:(tr(e),u.selectEnd(),!0)}else if(e.shiftKey&&(t==="up"||t==="down")){const i=o.focus.getNode();if(!o.isCollapsed()&&(t==="up"&&!o.isBackward()||t==="down"&&o.isBackward())){let a=ae(i,g=>Oe(g));if(oe(a)&&(a=ae(a,Oe)),a!==r||!a)return!1;const c=t==="down"?a.getNextSibling():a.getPreviousSibling();if(!c)return!1;let u=0;t==="up"&&O(c)&&(u=c.getChildrenSize());let d=c;if(t==="up"&&O(c)){const g=c.getLastChild();d=g||c,u=Ht(d)?d.getTextContentSize():0}const f=o.clone();return f.focus.set(d.getKey(),u,Ht(d)?"text":"element"),Ie(f),tr(e),!0}else if(At(i)){const a=t==="up"?o.getNodes()[o.getNodes().length-1]:o.getNodes()[0];if(a){const c=ae(a,oe);if(c&&r.isParentOf(c)){const u=r.getFirstDescendant(),d=r.getLastDescendant();if(!u||!d)return!1;const[f]=vt(u),[g]=vt(d),h=r.getCordsFromCellNode(f,s.table),m=r.getCordsFromCellNode(g,s.table),A=r.getDOMCellFromCordsOrThrow(h.x,h.y,s.table),b=r.getDOMCellFromCordsOrThrow(m.x,m.y,s.table);return s.setAnchorCellForSelection(A),s.setFocusCellForSelection(b,!0),!0}}return!1}else{let a=ae(i,u=>O(u)&&!u.isInline());if(oe(a)&&(a=ae(a,Oe)),!a)return!1;const c=t==="down"?a.getNextSibling():a.getPreviousSibling();if(Oe(c)&&s.tableNodeKey===c.getKey()){const u=c.getFirstDescendant(),d=c.getLastDescendant();if(!u||!d)return!1;const[f]=vt(u),[g]=vt(d),h=o.clone();return h.focus.set((t==="up"?f:g).getKey(),t==="up"?0:g.getChildrenSize(),"element"),tr(e),Ie(h),!0}}}}return t==="down"&&lv(n)&&s.setShouldCheckSelection(),!1}if(M(o)&&o.isCollapsed()){const{anchor:i,focus:l}=o,a=ae(i.getNode(),oe),c=ae(l.getNode(),oe);if(!oe(a)||!a.is(c))return!1;const u=$s(a);if(u!==r&&u!=null){const y=Ss(u,n.getElementByKey(u.getKey()));if(y!=null)return s.table=ai(u,y),Jo(n,e,t,u,s)}if(t==="backward"||t==="forward"){const y=i.type,w=i.offset,v=i.getNode();if(!v)return!1;const S=o.getNodes();return S.length===1&&Se(S[0])?!1:uD(y,w,v,t)?hD(e,v,r,t):!1}const d=n.getElementByKey(a.__key),f=n.getElementByKey(i.key);if(f==null||d==null)return!1;let g;if(i.type==="element")g=f.getBoundingClientRect();else{const y=window.getSelection();if(y===null||y.rangeCount===0)return!1;g=y.getRangeAt(0).getBoundingClientRect()}const h=t==="up"?a.getFirstChild():a.getLastChild();if(h==null)return!1;const m=n.getElementByKey(h.__key);if(m==null)return!1;const A=m.getBoundingClientRect();if(t==="up"?A.top>g.top-g.height:g.bottom+g.height>A.bottom){tr(e);const y=r.getCordsFromCellNode(a,s.table);if(e.shiftKey){const w=r.getDOMCellFromCordsOrThrow(y.x,y.y,s.table);s.setAnchorCellForSelection(w),s.setFocusCellForSelection(w,!0)}else return sv(s,r,y.x,y.y,t);return!0}}else if(Te(o)){const{anchor:i,focus:l}=o,a=ae(i.getNode(),oe),c=ae(l.getNode(),oe),[u]=o.getNodes();ce(Oe(u),"$handleArrowKey: TableSelection.getNodes()[0] expected to be TableNode");const d=Ss(u,n.getElementByKey(u.getKey()));if(!oe(a)||!oe(c)||!Oe(u)||d==null)return!1;s.updateTableTableSelection(o);const f=ai(u,d),g=r.getCordsFromCellNode(a,f),h=r.getDOMCellFromCordsOrThrow(g.x,g.y,f);if(s.setAnchorCellForSelection(h),tr(e),e.shiftKey){const m=r.getCordsFromCellNode(c,f);return aD(s,u,m.x,m.y,t)}else c.selectEnd();return!0}return!1}function cD(n){const e=n.getRootElement();return e?e.hasAttribute("aria-controls")&&e.getAttribute("aria-controls")==="typeahead-menu":!1}function uD(n,e,t,r){return dD(n,t,r)||fD(n,e,t,r)}function dD(n,e,t){return n==="element"&&(t==="backward"?e.getPreviousSibling()===null:e.getNextSibling()===null)}function fD(n,e,t,r){const s=ae(t,i=>O(i)&&!i.isInline());if(!s)return!1;const o=r==="backward"?e===0:e===t.getTextContentSize();return n==="text"&&o&&(r==="backward"?s.getPreviousSibling()===null:s.getNextSibling()===null)}function hD(n,e,t,r){const s=ae(e,oe);if(!oe(s))return!1;const[o,i]=ln(t,s,s);if(!gD(o,i,r))return!1;const l=pD(e,r,t);return!l||Oe(l)?!1:(tr(n),r==="backward"?l.selectEnd():l.selectStart(),!0)}function gD(n,e,t){const r=n[0][0],s=n[n.length-1][n[0].length-1],{startColumn:o,startRow:i}=e;return t==="backward"?o===r.startColumn&&i===r.startRow:o===s.startColumn&&i===s.startRow}function pD(n,e,t){const r=ae(n,o=>O(o)&&!o.isInline());if(!r)return;const s=e==="backward"?r.getPreviousSibling():r.getNextSibling();return s&&Oe(s)?s:e==="backward"?t.getPreviousSibling():t.getNextSibling()}function bA(n,e,t){const r=re();n==="first"?e.insertBefore(r):e.insertAfter(r),r.append(...t||[]),r.selectEnd()}function wA(n,e,t){const r=t.getParent();if(!r)return;const s=window.getSelection();if(!s)return;const o=s.anchorNode,i=n.getElementByKey(r.getKey()),l=Ss(t,n.getElementByKey(t.getKey()));if(!o||!i||!l||!i.contains(o)||l.contains(o))return;const a=ae(e.anchor.getNode(),y=>oe(y));if(!a)return;const c=ae(a,y=>Oe(y));if(!Oe(c)||!c.is(t))return;const[u,d]=ln(t,a,a),f=u[0][0],g=u[u.length-1][u[0].length-1],{startRow:h,startColumn:m}=d,A=h===f.startRow&&m===f.startColumn,b=h===g.startRow&&m===g.startColumn;return A?"first":b?"last":void 0}function CA(n,e,t,r){const s=n.querySelector("colgroup");if(!s)return;const o=[];for(let i=0;i<t;i++){const l=document.createElement("col"),a=r&&r[i];a&&(l.style.width=`${a}px`),o.push(l)}s.replaceChildren(...o)}function vA(n,e,t){t?(_e(n,e.theme.tableRowStriping),n.setAttribute("data-lexical-row-striping","true")):(Gn(n,e.theme.tableRowStriping),n.removeAttribute("data-lexical-row-striping"))}const rf=new WeakSet;function lv(n=cc()){return rf.has(n)}function mD(n,e){e?(n._config.theme.tableScrollableWrapper||console.warn("TableNode: hasHorizontalScroll is active but theme.tableScrollableWrapper is not defined."),rf.add(n)):rf.delete(n)}class lr extends De{constructor(t){super(t);Z(this,"__rowStriping");Z(this,"__colWidths");this.__rowStriping=!1}static getType(){return"table"}getColWidths(){return this.getLatest().__colWidths}setColWidths(t){const r=this.getWritable();return r.__colWidths=t,r}static clone(t){return new lr(t.__key)}afterCloneFrom(t){super.afterCloneFrom(t),this.__colWidths=t.__colWidths,this.__rowStriping=t.__rowStriping}static importDOM(){return{table:t=>({conversion:AD,priority:1})}}static importJSON(t){const r=$h();return r.__rowStriping=t.rowStriping||!1,r.__colWidths=t.colWidths,r}exportJSON(){return{...super.exportJSON(),colWidths:this.getColWidths(),rowStriping:this.__rowStriping?this.__rowStriping:void 0,type:"table",version:1}}getDOMSlot(t){const r=t.nodeName!=="TABLE"&&t.querySelector("table")||t;return ce(r.nodeName==="TABLE","TableNode.getDOMSlot: createDOM() did not return a table"),super.getDOMSlot(r).withAfter(r.querySelector("colgroup"))}createDOM(t,r){const s=document.createElement("table"),o=document.createElement("colgroup");if(s.appendChild(o),CA(s,t,this.getColumnCount(),this.getColWidths()),ib(o),_e(s,t.theme.table),this.__rowStriping&&vA(s,t,!0),lv(r)){const i=document.createElement("div"),l=t.theme.tableScrollableWrapper;return l?_e(i,l):i.style.cssText="overflow-x: auto;",i.appendChild(s),i}return s}updateDOM(t,r,s){return t.__rowStriping!==this.__rowStriping&&vA(r,s,this.__rowStriping),CA(r,s,this.getColumnCount(),this.getColWidths()),!0}exportDOM(t){return{...super.exportDOM(t),after:r=>{if(!r||!lt(r))return null;const s=r.firstChild;if(!(s instanceof HTMLTableElement))return null;const o=r.querySelectorAll(":scope > tr");if(o.length>0){const i=document.createElement("tbody");i.append(...o),s.append(i),r.append(s)}return r}}}canBeEmpty(){return!1}isShadowRoot(){return!0}getCordsFromCellNode(t,r){const{rows:s,domRows:o}=r;for(let i=0;i<s;i++){const l=o[i];if(l==null)continue;const a=l.findIndex(c=>{if(!c)return;const{elem:u}=c;return he(u)===t});if(a!==-1)return{x:a,y:i}}throw new Error("Cell not found in table.")}getDOMCellFromCords(t,r,s){const{domRows:o}=s,i=o[r];if(i==null)return null;const l=t<i.length?t:i.length-1,a=i[l];return a??null}getDOMCellFromCordsOrThrow(t,r,s){const o=this.getDOMCellFromCords(t,r,s);if(!o)throw new Error("Cell not found at cords.");return o}getCellNodeFromCords(t,r,s){const o=this.getDOMCellFromCords(t,r,s);if(o==null)return null;const i=he(o.elem);return oe(i)?i:null}getCellNodeFromCordsOrThrow(t,r,s){const o=this.getCellNodeFromCords(t,r,s);if(!o)throw new Error("Node at cords not TableCellNode.");return o}getRowStriping(){return!!this.getLatest().__rowStriping}setRowStriping(t){this.getWritable().__rowStriping=t}canSelectBefore(){return!0}canIndent(){return!1}getColumnCount(){const t=this.getFirstChild();if(!t)return 0;let r=0;return t.getChildren().forEach(s=>{oe(s)&&(r+=s.getColSpan())}),r}}function AD(n){const e=$h();n.hasAttribute("data-lexical-row-striping")&&e.setRowStriping(!0);const t=n.querySelector(":scope > colgroup");if(t){let r=[];for(const s of t.querySelectorAll(":scope > col")){const o=s.style.width;if(!o||!Zh.test(o)){r=void 0;break}r.push(parseFloat(o))}r&&e.setColWidths(r)}return{node:e}}function $h(){return Me(new lr)}function Oe(n){return n instanceof lr}function yD(n){var s;const e=n.getAttribute("open");return((s=n.firstElementChild)==null?void 0:s.tagName)==="SPAN"?{node:null}:{node:eg(e!==null)}}class ks extends De{constructor(t,r){super(r);Z(this,"__open");this.__open=t}static getType(){return"collapsible-container"}static clone(t){return new ks(t.__open,t.__key)}createDOM(t,r){let s;const o=document.createElement("details");return o.open=this.__open,o.addEventListener("toggle",()=>{r.getEditorState().read(()=>this.getOpen())!==o.open&&r.update(()=>this.toggleOpen())}),s=o,s.classList.add("Collapsible__container"),s}updateDOM(t,r){const s=this.__open;return t.__open!==s&&(r.open=this.__open),!1}static importDOM(){return{details:t=>({conversion:yD,priority:1})}}static importJSON(t){return eg(t.open)}exportDOM(){const t=document.createElement("details");return t.classList.add("Collapsible__container"),this.__open&&t.setAttribute("open",""),{element:t}}exportJSON(){return{...super.exportJSON(),open:this.__open,type:"collapsible-container",version:1}}setOpen(t){const r=this.getWritable();r.__open=t}getOpen(){return this.getLatest().__open}toggleOpen(){this.setOpen(!this.getOpen())}}function eg(n){return new ks(n)}function tn(n){return n instanceof ks}function bD(n){n.hidden="until-found"}function wD(n,e){n.onbeforematch=e}function CD(n){return{node:tg()}}class gr extends De{static getType(){return"collapsible-content"}static clone(e){return new gr(e.__key)}createDOM(e,t){const r=document.createElement("div");return r.classList.add("Collapsible__content"),WC||(t.getEditorState().read(()=>{const s=this.getParentOrThrow();ce(tn(s),"Expected parent node to be a CollapsibleContainerNode"),s.__open||bD(r)}),wD(r,()=>{t.update(()=>{const s=this.getParentOrThrow().getLatest();ce(tn(s),"Expected parent node to be a CollapsibleContainerNode"),s.__open||s.toggleOpen()})})),r}updateDOM(e,t){return!1}static importDOM(){return{div:e=>e.hasAttribute("data-lexical-collapsible-content")?{conversion:CD,priority:2}:null}}exportDOM(){const e=document.createElement("div");return e.classList.add("Collapsible__content"),e.setAttribute("data-lexical-collapsible-content","true"),{element:e}}static importJSON(e){return tg()}isShadowRoot(){return!0}exportJSON(){return{...super.exportJSON(),type:"collapsible-content",version:1}}}function tg(){return new gr}function Ii(n){return n instanceof gr}function vD(n){return{node:ng()}}class Hr extends De{static getType(){return"collapsible-title"}static clone(e){return new Hr(e.__key)}createDOM(e,t){const r=document.createElement("summary");return r.classList.add("Collapsible__title"),WC||r.addEventListener("click",()=>{t.update(()=>{const s=this.getLatest().getParentOrThrow();ce(tn(s),"Expected parent node to be a CollapsibleContainerNode"),s.toggleOpen()})}),r}updateDOM(e,t){return!1}static importDOM(){return{summary:e=>({conversion:vD,priority:1})}}static importJSON(e){return ng()}exportJSON(){return{...super.exportJSON(),type:"collapsible-title",version:1}}collapseAtStart(e){return this.getParentOrThrow().insertBefore(this),!0}insertNewAfter(e,t=!0){const r=this.getParentOrThrow();if(!tn(r))throw new Error("CollapsibleTitleNode expects to be child of CollapsibleContainerNode");if(r.getOpen()){const s=this.getNextSibling();if(!Ii(s))throw new Error("CollapsibleTitleNode expects to have CollapsibleContentNode sibling");const o=s.getFirstChild();if(O(o))return o;{const i=re();return s.append(i),i}}else{const s=re();return r.insertAfter(s,t),s}}}function ng(){return new Hr}function fs(n){return n instanceof Hr}const av=x.createContext([n=>()=>{},n=>{}]),xD=({children:n})=>{const e=x.useMemo(()=>{let t=null;const r=new Set;return[s=>(s(t),r.add(s),()=>{r.delete(s)}),s=>{t=s;for(const o of r)o(s)}]},[]);return p.jsx(av.Provider,{value:e,children:n})},SD=()=>{const[n,e]=x.useContext(av),[t,r]=x.useState(null);return x.useEffect(()=>n(s=>{r(s)}),[n]),[t,e]},kD=Math.random().toString(36).replace(/[^a-z]+/g,"").substr(0,5);class Yc extends qr{constructor(t,r){super(r);Z(this,"__uuid");this.__uuid=t}static clone(t){return new Yc(t.__uuid,t.__key)}static getType(){return"autocomplete"}static importJSON(t){return ED(t.uuid)}exportJSON(){return{...super.exportJSON(),type:"autocomplete",uuid:this.__uuid,version:1}}updateDOM(){return!1}createDOM(){return document.createElement("span")}decorate(){return this.__uuid!==kD?null:p.jsx(_D,{})}}function ED(n){return new Yc(n)}function _D(){const[n]=SD(),e=window.navigator.userAgentData,t=e!==void 0?e.mobile:window.innerWidth<=800&&window.innerHeight<=600;return p.jsxs("span",{style:{color:"#ccc"},spellCheck:"false",children:[n," ",t?"(SWIPE ⮕)":"(TAB)"]})}const sf={...Kr};function TD(){return{node:rg()}}class Rs extends De{static getType(){return"callout"}static clone(e){return new Rs(e.__key)}constructor(e){super(e)}createDOM(e){const t=document.createElement("div");return typeof e.theme.callout=="string"&&_e(t,sf.callout),t}updateDOM(){return!1}isShadowRoot(){return!0}static importDOM(){return{div:e=>e.className!==sf.callout?null:{conversion:TD,priority:2}}}static importJSON(){return rg()}exportJSON(){return{...super.exportJSON(),type:"callout",version:1}}}function rg(){return new Rs}function sg(n){return n instanceof Rs}class js extends qr{constructor(e,t){super(t),this.__format=e||""}exportJSON(){return{format:this.__format||"",type:"decorator-block",version:1}}canIndent(){return!1}createDOM(){return document.createElement("div")}updateDOM(){return!1}setFormat(e){this.getWritable().__format=e}isInline(){return!1}}function of(n){return n instanceof js}const DD=({editor:n,keyNode:e,emoji:t})=>{const{t:r}=We.useTranslation(),s=x.useRef(null);return x.useEffect(()=>{n.update(()=>{var l,a;const o=ue(e),i=((a=(l=s.current)==null?void 0:l.firstChild)==null?void 0:a.outerHTML)||"";o instanceof Es&&o.setRef(i)})},[t]),p.jsx("div",{ref:s,children:p.jsx(kn.EmojiPicker,{value:t,onChange:o=>{n.update(()=>{var l;const i=ue(e);i instanceof Es&&((l=i.getNextSibling())==null||l.selectStart(),i.setEmoji(o))})},showIcons:!0,showColors:!0,locales:{emojis:r("editor.emoji.emojis"),icons:r("editor.emoji.icons"),search:r("editor.emoji.search"),searchResults:r("editor.emoji.searchResults"),searchNoResults:r("editor.emoji.searchNoResults"),remove:r("editor.emoji.remove"),emojiCategory:{frequent:r("editor.emoji.emojiCategory.frequent"),people:r("editor.emoji.emojiCategory.people"),nature:r("editor.emoji.emojiCategory.nature"),foods:r("editor.emoji.emojiCategory.foods"),activity:r("editor.emoji.emojiCategory.activity"),places:r("editor.emoji.emojiCategory.places"),objects:r("editor.emoji.emojiCategory.objects"),symbols:r("editor.emoji.emojiCategory.symbols"),flags:r("editor.emoji.emojiCategory.flags")}},popoverProps:{classNames:{dropdown:"emoji-picker-callout"},withinPortal:!0,transitionProps:yr},children:p.jsx(E.ActionIcon,{size:28,variant:"subtle",children:p.jsx(kn.ProjectIcon,{size:27,fz:27,icon:t,fallback:p.jsx(z.IconFile,{size:"1em"})})})})})};function ND(n){const e=n.getAttribute("data-emoji");return{node:og(e||"","")}}const xA=new Map;class Es extends js{constructor(t,r,s,o){super(s,o);Z(this,"__emojiCode");Z(this,"__refElem");this.__emojiCode=t||"",this.__refElem=r||""}static getType(){return"callout-image"}static clone(t){return new Es(t.__emojiCode,t.__refElem,t.__format,t.__key)}static importJSON(t){return og(t.emojiCode)}exportJSON(){return{...super.exportJSON(),type:"callout-image",version:1,emojiCode:this.__emojiCode,refElem:""}}static importDOM(){return{div:t=>t.classList.contains("callout-image")?{conversion:ND,priority:2}:null}}createDOM(){const t=document.createElement("div");return t.className="callout-image",t}updateDOM(){return!1}exportDOM(){const t=document.createElement("div"),r=xA.get(this.__key)||"";return t.innerHTML=r,t.classList.add("callout-image"),t.setAttribute("data-emoji",this.__emojiCode),{element:t}}setEmoji(t){const r=this.getWritable();r.__emojiCode=t}setRef(t){xA.set(this.__key,t)}decorate(t,r){return p.jsx(DD,{emoji:this.__emojiCode,editor:t,keyNode:this.__key})}}function og(n,e){return new Es(n||"",e||"")}function ID(n){const e=n.getAttribute("data-type"),t=n.style.backgroundColor;return{node:ig(t,e||"default")}}class Yr extends De{constructor(t,r,s){super(s);Z(this,"__backgroundColor");Z(this,"__calloutType");this.__backgroundColor=t===void 0?"#f3f3f4":t,this.__calloutType=r===void 0?"😊":r}static getType(){return"callout-wrapper"}static clone(t){return new Yr(t.__backgroundColor,t.__calloutType,t.__key)}createDOM(t){const r=document.createElement("div");return typeof t.theme.callout=="string"&&_e(r,t.theme.calloutWrapper),r.setAttribute("data-type",this.__calloutType),r.style.backgroundColor=this.__backgroundColor,r}updateDOM(t,r){return t&&(r.setAttribute("data-type",this.__calloutType),r.style.backgroundColor=this.__backgroundColor),!1}static importDOM(){return{div:t=>t.className!==sf.calloutWrapper?null:{conversion:ID,priority:2}}}static importJSON(t){return ig(t.backgroundColor,t.calloutType)}setBackgroundColor(t){const r=this.getWritable();r.__backgroundColor=t}setType(t="default"){const r=this.getWritable();r.__calloutType=t}exportJSON(){return{...super.exportJSON(),type:"callout-wrapper",backgroundColor:this.__backgroundColor,calloutType:this.__calloutType,version:1}}}function ig(n="#f3f3f4",e="default"){return new Yr(n,e)}function LD(n){return n instanceof Yr}const MD={},SA=n=>{let e;const t=new Set,r=(u,d)=>{const f=typeof u=="function"?u(e):u;if(!Object.is(f,e)){const g=e;e=d??(typeof f!="object"||f===null)?f:Object.assign({},e,f),t.forEach(h=>h(e,g))}},s=()=>e,a={setState:r,getState:s,getInitialState:()=>c,subscribe:u=>(t.add(u),()=>t.delete(u)),destroy:()=>{(MD?"production":void 0)!=="production"&&console.warn("[DEPRECATED] The `destroy` method will be unsupported in a future version. Instead use unsubscribe function returned by subscribe. Everything will be garbage-collected if store is garbage-collected."),t.clear()}},c=e=n(r,s,a);return a},OD=n=>n?SA(n):SA;var Ml={exports:{}},Bu={},Ol={exports:{}},zu={};/**
33
- * @license React
34
- * use-sync-external-store-shim.production.js
35
- *
36
- * Copyright (c) Meta Platforms, Inc. and affiliates.
37
- *
38
- * This source code is licensed under the MIT license found in the
39
- * LICENSE file in the root directory of this source tree.
40
- */var kA;function RD(){if(kA)return zu;kA=1;var n=x;function e(d,f){return d===f&&(d!==0||1/d===1/f)||d!==d&&f!==f}var t=typeof Object.is=="function"?Object.is:e,r=n.useState,s=n.useEffect,o=n.useLayoutEffect,i=n.useDebugValue;function l(d,f){var g=f(),h=r({inst:{value:g,getSnapshot:f}}),m=h[0].inst,A=h[1];return o(function(){m.value=g,m.getSnapshot=f,a(m)&&A({inst:m})},[d,g,f]),s(function(){return a(m)&&A({inst:m}),d(function(){a(m)&&A({inst:m})})},[d]),i(g),g}function a(d){var f=d.getSnapshot;d=d.value;try{var g=f();return!t(d,g)}catch{return!0}}function c(d,f){return f()}var u=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?c:l;return zu.useSyncExternalStore=n.useSyncExternalStore!==void 0?n.useSyncExternalStore:u,zu}var Wu={};/**
41
- * @license React
42
- * use-sync-external-store-shim.development.js
43
- *
44
- * Copyright (c) Meta Platforms, Inc. and affiliates.
45
- *
46
- * This source code is licensed under the MIT license found in the
47
- * LICENSE file in the root directory of this source tree.
48
- */var EA;function jD(){return EA||(EA=1,process.env.NODE_ENV!=="production"&&function(){function n(g,h){return g===h&&(g!==0||1/g===1/h)||g!==g&&h!==h}function e(g,h){u||s.startTransition===void 0||(u=!0,console.error("You are using an outdated, pre-release alpha of React 18 that does not support useSyncExternalStore. The use-sync-external-store shim will not work correctly. Upgrade to a newer pre-release."));var m=h();if(!d){var A=h();o(m,A)||(console.error("The result of getSnapshot should be cached to avoid an infinite loop"),d=!0)}A=i({inst:{value:m,getSnapshot:h}});var b=A[0].inst,y=A[1];return a(function(){b.value=m,b.getSnapshot=h,t(b)&&y({inst:b})},[g,m,h]),l(function(){return t(b)&&y({inst:b}),g(function(){t(b)&&y({inst:b})})},[g]),c(m),m}function t(g){var h=g.getSnapshot;g=g.value;try{var m=h();return!o(g,m)}catch{return!0}}function r(g,h){return h()}typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(Error());var s=x,o=typeof Object.is=="function"?Object.is:n,i=s.useState,l=s.useEffect,a=s.useLayoutEffect,c=s.useDebugValue,u=!1,d=!1,f=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?r:e;Wu.useSyncExternalStore=s.useSyncExternalStore!==void 0?s.useSyncExternalStore:f,typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error())}()),Wu}var _A;function cv(){return _A||(_A=1,process.env.NODE_ENV==="production"?Ol.exports=RD():Ol.exports=jD()),Ol.exports}/**
49
- * @license React
50
- * use-sync-external-store-shim/with-selector.production.js
51
- *
52
- * Copyright (c) Meta Platforms, Inc. and affiliates.
53
- *
54
- * This source code is licensed under the MIT license found in the
55
- * LICENSE file in the root directory of this source tree.
56
- */var TA;function PD(){if(TA)return Bu;TA=1;var n=x,e=cv();function t(c,u){return c===u&&(c!==0||1/c===1/u)||c!==c&&u!==u}var r=typeof Object.is=="function"?Object.is:t,s=e.useSyncExternalStore,o=n.useRef,i=n.useEffect,l=n.useMemo,a=n.useDebugValue;return Bu.useSyncExternalStoreWithSelector=function(c,u,d,f,g){var h=o(null);if(h.current===null){var m={hasValue:!1,value:null};h.current=m}else m=h.current;h=l(function(){function b(C){if(!y){if(y=!0,w=C,C=f(C),g!==void 0&&m.hasValue){var _=m.value;if(g(_,C))return v=_}return v=C}if(_=v,r(w,C))return _;var k=f(C);return g!==void 0&&g(_,k)?(w=C,_):(w=C,v=k)}var y=!1,w,v,S=d===void 0?null:d;return[function(){return b(u())},S===null?void 0:function(){return b(S())}]},[u,d,f,g]);var A=s(c,h[0],h[1]);return i(function(){m.hasValue=!0,m.value=A},[A]),a(A),A},Bu}var Uu={};/**
57
- * @license React
58
- * use-sync-external-store-shim/with-selector.development.js
59
- *
60
- * Copyright (c) Meta Platforms, Inc. and affiliates.
61
- *
62
- * This source code is licensed under the MIT license found in the
63
- * LICENSE file in the root directory of this source tree.
64
- */var DA;function FD(){return DA||(DA=1,process.env.NODE_ENV!=="production"&&function(){function n(c,u){return c===u&&(c!==0||1/c===1/u)||c!==c&&u!==u}typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(Error());var e=x,t=cv(),r=typeof Object.is=="function"?Object.is:n,s=t.useSyncExternalStore,o=e.useRef,i=e.useEffect,l=e.useMemo,a=e.useDebugValue;Uu.useSyncExternalStoreWithSelector=function(c,u,d,f,g){var h=o(null);if(h.current===null){var m={hasValue:!1,value:null};h.current=m}else m=h.current;h=l(function(){function b(C){if(!y){if(y=!0,w=C,C=f(C),g!==void 0&&m.hasValue){var _=m.value;if(g(_,C))return v=_}return v=C}if(_=v,r(w,C))return _;var k=f(C);return g!==void 0&&g(_,k)?(w=C,_):(w=C,v=k)}var y=!1,w,v,S=d===void 0?null:d;return[function(){return b(u())},S===null?void 0:function(){return b(S())}]},[u,d,f,g]);var A=s(c,h[0],h[1]);return i(function(){m.hasValue=!0,m.value=A},[A]),a(A),A},typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error())}()),Uu}var NA;function BD(){return NA||(NA=1,process.env.NODE_ENV==="production"?Ml.exports=PD():Ml.exports=FD()),Ml.exports}var zD=BD();const WD=RC(zD),uv={},{useDebugValue:UD}=x,{useSyncExternalStoreWithSelector:KD}=WD;let IA=!1;const HD=n=>n;function YD(n,e=HD,t){(uv?"production":void 0)!=="production"&&t&&!IA&&(console.warn("[DEPRECATED] Use `createWithEqualityFn` instead of `create` or use `useStoreWithEqualityFn` instead of `useStore`. They can be imported from 'zustand/traditional'. https://github.com/pmndrs/zustand/discussions/1937"),IA=!0);const r=KD(n.subscribe,n.getState,n.getServerState||n.getInitialState,e,t);return UD(r),r}const LA=n=>{(uv?"production":void 0)!=="production"&&typeof n!="function"&&console.warn("[DEPRECATED] Passing a vanilla store will be unsupported in a future version. Instead use `import { useStore } from 'zustand'`.");const e=typeof n=="function"?OD(n):n,t=(r,s)=>YD(e,r,s);return Object.assign(t,e),t},VD=n=>n?LA(n):LA,Vc=({icon:n,title:e,pointerEvents:t="auto",...r})=>p.jsxs(E.UnstyledButton,{className:"image-node-picker-button",styles:{root:{width:"100%",display:"flex",alignItems:"center",gap:"var(--mantine-spacing-sm)",padding:"var(--mantine-spacing-md)",background:"var(--mantine-primary-color-light)",color:"var(--mantine-color-text)",borderRadius:"var(--mantine-radius-default)",opacity:.75,pointerEvents:t,boxSizing:"border-box"}},...r,children:[p.jsx($,{name:n}),e]}),GD="_title_12wkk_1",ZD="_icon_12wkk_11",JD="_link_12wkk_20",Ku={title:GD,icon:ZD,link:JD},XD=({page:n})=>{const{t:e}=We.useTranslation();return p.jsx(E.NavLink,{href:n.id,target:"_blank",unstyled:!0,label:p.jsxs("div",{className:Ku.link,children:[p.jsx("div",{className:Ku.icon,children:n.icon?p.jsx(kn.ProjectIcon,{size:16,fz:16,icon:n.icon,fallback:p.jsx(z.IconFile,{size:"1em"})}):p.jsx(z.IconFile,{size:16})}),p.jsx(E.Tooltip,{label:n.title,disabled:!n.title,openDelay:400,children:p.jsx(E.Text,{truncate:!0,className:Ku.title,"data-empty":!n.title,children:n.title||e("editor.noTitle")})})]})})},QD=x.memo,qD=QD(XD),dv=VD(()=>({pages:[]})),fv=({page:n})=>p.jsxs("div",{className:"docs-item",children:[p.jsx(qD,{page:n}),n.children&&n.children.length>0&&p.jsx(p.Fragment,{children:n.children.map(e=>p.jsx(fv,{page:e},e.id))})]});function $D(){const n=dv(t=>t.pages),{t:e}=We.useTranslation();return n.length===0?p.jsx("p",{children:p.jsx(Vc,{title:e("editor.menu.other.documents.empty"),icon:"file",pointerEvents:"none"})}):p.jsx("div",{className:"docs-container",children:n.map(t=>p.jsx(fv,{page:t},t.id))})}function eN(n){return n.getAttribute("data-child-docs")?{node:hv()}:null}class yo extends js{static getType(){return"childDocs"}static clone(e){return new yo(e.__format,e.__key)}constructor(e,t){super(e,t)}createDOM(){const e=document.createElement("div");return e.className="editor-child-docs",e}updateDOM(){return!1}decorate(e,t){return p.jsx($D,{})}importJSON(e){const{format:t,key:r}=e;return new yo(t,r)}exportJSON(){return{type:"childDocs",format:this.__format,key:this.__key}}exportDOM(){const e=document.createElement("div");return e.setAttribute("data-child-docs","true"),{element:e}}static importDOM(){return{div:e=>e.getAttribute("data-child-docs")?{conversion:eN,priority:2}:null}}}function hv(){return new yo(void 0)}function bo({children:n,format:e,nodeKey:t,className:r}){const[s]=ie(),[o,i,l]=Tc(t),a=x.useRef(null),c=x.useCallback(u=>{const d=R();return o&&st(d)&&(u.preventDefault(),s.update(()=>{d.getNodes().forEach(f=>{Se(f)&&f.remove()})})),!1},[s,o]);return x.useEffect(()=>ve(s.registerCommand($a,u=>{if(o){const d=R();if(st(d)){const f=ue(t);of(f)&&f.setFormat(u)}else if(M(d)){const f=d.getNodes();for(const g of f)of(g)?g.setFormat(u):vo(g).setFormat(u)}return!0}return!1},le),s.registerCommand(Ds,u=>u.target===a.current&&(u.preventDefault(),u.shiftKey||l(),i(!o),!0),le),s.registerCommand(Zr,c,le),s.registerCommand(pr,c,le)),[l,s,o,t,c,i]),p.jsx("div",{className:[r.base,o?r.focus:null].filter(Boolean).join(" "),ref:a,style:{textAlign:e||void 0},children:n})}const tN=n=>{if(n==="left")return["n-resize","s-resize","e-resize","se-resize","ne-resize"];if(n==="center")return["sw-resize","nw-resize","w-resize","n-resize","s-resize","e-resize","se-resize","ne-resize"];if(n==="right")return["sw-resize","nw-resize","w-resize","n-resize","s-resize"]},lf=(()=>{var e;const n=(e=window.navigator)==null?void 0:e.userAgentData;return n!==void 0?n.mobile:window.innerWidth<=800&&window.innerHeight<=600})(),nN=(n,e,t,r)=>{const o=n.width/2,i=n.height/2,l=r!=null&&r.classList.contains("right")?2:-16;switch(e){case"nw-resize":return{x:0,y:0};case"ne-resize":return{x:n.width-16,y:0};case"sw-resize":return{x:0,y:n.height-16};case"se-resize":return{x:n.width-16,y:n.height-16};case"n-resize":return{x:o+l,y:0};case"s-resize":return{x:o+l,y:n.height-16};case"w-resize":return{x:0,y:i-8};case"e-resize":return{x:n.width-16,y:i-(t?17:8)}}},rN=(n,e,t,r=["nw-resize","ne-resize","sw-resize","se-resize","n-resize","s-resize","w-resize","e-resize"])=>{const o=t<=32,i=t>=n.height-32,l=e<=32,a=e>=n.width-32;return o&&l?r.includes("nw-resize")?"nw-resize":"default":o&&a?r.includes("ne-resize")?"ne-resize":"default":i&&l?r.includes("sw-resize")?"sw-resize":"default":i&&a?r.includes("se-resize")?"se-resize":"default":o?r.includes("n-resize")?"n-resize":"default":i?r.includes("s-resize")?"s-resize":"default":l?r.includes("w-resize")?"w-resize":"default":a&&r.includes("e-resize")?"e-resize":"default"},Rl=32,lg=({editor:n,width:e,height:t,initialHeight:r,initialWidth:s,children:o,onResizeStart:i,isIcon:l,onResizeEnd:a,alignment:c,isEmbed:u})=>{const[d,f]=x.useState({x:-1e3,y:-1e3}),[g,h]=x.useState(30),[m,A]=x.useState("default"),[b,y]=x.useState(!1),{imperativeHandleRef:w}=x.useContext(Gt),[v,S]=x.useState(null),C=x.useMemo(()=>tN(c)||["e-resize"],[c]),_=C.length===1&&C[0]==="e-resize",k=x.useRef(null),T=x.useRef(null),D=x.useRef({rootHeight:0,rootWidth:0,ratio:1,currentWidth:0,currentWidthPercent:0,currentHeight:0,currentHeightPercent:0,startWidth:0,startWidthPercent:0,startHeight:0,startHeightPercent:0,startX:0,startY:0,direction:"x",isResizing:!1,isTop:!1,isBottom:!1,isLeft:!1,isRight:!1}),L=j=>{var V;const F=(V=n._window)==null?void 0:V.innerWidth;if(F){let K=100;u&&(K=250);const Y=K/F*100,X=100;return j<Y?Y:j>X?X:j}else return j<20?20:j>100?100:j},N=(j,F)=>{const V=Math.min(j,F);return 15+(Math.max(200,Math.min(800,V))-100)/500*15},I=(j,F,V)=>{if(A("default"),!b)return;let K=m;K=rN(j,F,V,C),D.current.isResizing&&(K=m),A(K),h(g),f(Y=>nN(j,K,u||!1,k.current)||Y)},P=j=>{var Y;if(lf)return;j.preventDefault();const F=(Y=k.current)==null?void 0:Y.getBoundingClientRect();if(!F||j.target.closest(".mantine-Modal-root"))return;const V=j.clientX-F.left,K=j.clientY-F.top;D.current.isResizing||I(F,V,K)},G=j=>{if(!k.current||j.button===2)return;const F=D.current,V=k.current.getBoundingClientRect();if(!V)return;const K=j.clientX-V.left,Y=j.clientY-V.top;if(!F.isResizing)return;I(V,K,Y);let X=Math.floor(j.clientX-F.startX),ee=Math.floor(j.clientY-F.startY),H=0;F.isTop||F.isBottom?H=ee/F.rootHeight*100:(F.isLeft||F.isRight)&&(H=X/F.rootWidth*100),(F.isLeft||F.isTop)&&!F.isBottom&&(H*=-1),(F.isTop&&F.isRight||F.isBottom&&F.isRight)&&(H=X/F.rootWidth*100),F.currentWidthPercent=L(F.startWidthPercent+H),F.currentHeightPercent=L(F.startHeightPercent+H),k.current.style.width=`${F.currentWidthPercent}%`,k.current.style.height=`${F.currentHeightPercent}%`},J=j=>{var Y,X;const F=D.current;if(F.isResizing=!1,(Y=k.current)==null||Y.classList.remove("is-resizing"),(X=k.current)==null||X.releasePointerCapture(j.pointerId),a(F.currentWidthPercent+"%",F.currentHeightPercent+"%"),document.removeEventListener("pointermove",G),!k.current)return;const V=k.current.getBoundingClientRect(),K=N(V.width,V.height);h(K)},te=j=>{var Rt;if(j.button===2||!b){j.preventDefault(),j.stopPropagation();return}if(!k.current)return;k.current.classList.add("is-resizing");const F=n.getRootElement();if(!F)return;const V=F.getBoundingClientRect();if(!n.isEditable()||m==="default")return;const K=T.current;if(K===null)return;const Y=(Rt=k.current)==null?void 0:Rt.getBoundingClientRect();if(!K.getBoundingClientRect()||!Y)return;const{width:ee,height:H,top:U,left:be}=Y,xe=j.clientX-be,Ne=j.clientY-U,ke=Ne<=Rl,Ve=Ne>=H-Rl,Zt=xe<=Rl,St=xe>=ee-Rl,me=D.current,se=window.getComputedStyle(F),ge=parseFloat(se.paddingTop),ye=parseFloat(se.paddingBottom),rt=parseFloat(se.paddingLeft),Ge=parseFloat(se.paddingRight);me.rootHeight=V.height-ge-ye||0,me.rootWidth=V.width-rt-Ge||0,me.ratio=ee/H,me.currentWidth=me.currentWidth||ee,me.currentWidthPercent=+k.current.style.width.replace("%",""),me.currentHeight=me.currentHeight||H,me.currentHeightPercent=+k.current.style.height.replace("%",""),me.startX=j.clientX,me.startY=j.clientY,me.startWidth=me.currentWidth||ee,me.startWidthPercent=me.currentWidthPercent,me.startHeight=me.currentHeight||H,me.startHeightPercent=me.currentHeightPercent,me.isResizing=!0,me.isTop=ke,me.isBottom=Ve,me.isLeft=Zt,me.isRight=St,me.direction=Ve||ke?"y":"x",i&&i(),k.current.setPointerCapture(j.pointerId),document.addEventListener("pointermove",G),document.addEventListener("pointerup",J,{capture:!0,once:!0})};x.useEffect(()=>{var K;if(!k.current)return;const j=k.current.getBoundingClientRect(),F=(K=k.current.parentElement)==null?void 0:K.getBoundingClientRect(),V=N(j.width,j.height);if(h(V),typeof e=="number"&&typeof t=="number")k.current.style.width=`${L(e)}%`,k.current.style.height=`${L(t)}%`,D.current.currentWidthPercent=e,D.current.currentHeightPercent=t;else if(F){const Y=r&&typeof r=="number"?r/F.height*100:100,X=s&&typeof s=="number"?s/F.width*100:100;requestAnimationFrame(()=>{k.current&&(k.current.style.height=`${Y}%`,k.current.style.width=`${X}%`)}),D.current.currentWidthPercent=X,D.current.currentHeightPercent=Y}else k.current.style.height="100%",k.current.style.width="100%",D.current.currentWidthPercent=100,D.current.currentHeightPercent=100},[k.current,l,r,s]);const Q=j=>{const V=j.target.closest("[data-lexical-decorator]");return V?n.read(()=>{const K=he(V);K&&K instanceof qr&&S(K)}):S(null),!1},B=()=>(v&&setTimeout(()=>{n.update(()=>(v.insertAfter(re()).selectStart(),S(null),!0))}),!1);return x.useImperativeHandle(w,()=>({decoratorEnterAction:B})),x.useEffect(()=>{const j=n.registerCommand(Ds,Q,pc);return()=>{j()}},[v]),lf?o:p.jsxs("div",{ref:k,className:`resizable-container ${c||""} ${_?"hide-padding":""}`,style:{cursor:m},onMouseMove:P,onMouseEnter:()=>y(!0),onMouseLeave:()=>{y(!1),A("default")},onMouseUp:()=>{n.dispatchCommand(Bn,"show_menu")},onMouseDown:()=>{n.dispatchCommand(Bn,"hide_menu")},onPointerDown:te,children:[p.jsx("svg",{className:"resizable-container__handle hovered",style:{"--clip-x1":`${d.x-g}px`,"--clip-y1":`${d.y-g}px`,"--clip-x2":`${d.x+g}px`,"--clip-y2":`${d.y-g}px`,"--clip-x3":`${d.x+g}px`,"--clip-y3":`${d.y+g}px`,"--clip-x4":`${d.x-g}px`,"--clip-y4":`${d.y+g}px`,clipPath:`polygon(
65
- var(--clip-x1) var(--clip-y1),
66
- var(--clip-x2) var(--clip-y2),
67
- var(--clip-x3) var(--clip-y3),
68
- var(--clip-x4) var(--clip-y4)
69
- )`,opacity:1,transition:`${D.current.isResizing?"none":` opacity 0.3s ease-in-out, clip-path ${(C==null?void 0:C.length)<4?"0.2s":"0.3s"} cubic-bezier(0.825, 0.225, 0.280, 0.770)`}`},children:p.jsx("rect",{x:0,y:0,width:"100%",height:"100%",stroke:"#D9D9D9",strokeWidth:8,rx:15,ry:15,fill:"none"})}),p.jsx("div",{ref:T,className:"resizable-container__inner",style:{height:"100%",width:"100%",pointerEvents:D.current.isResizing?"none":"auto"},children:o})]})};function ag(n,e){if(!e||!(e instanceof HTMLElement)){console.error("Invalid DOM element provided.");return}n?e.classList.add("disable-scroll"):e.classList.remove("disable-scroll")}function sN(n,e){if(n.match(/\n/))return!1;try{const t=new URL(n);return["javascript:","file:","vbscript:","data:"].includes(t.protocol)?!1:t.hostname?!0:t.protocol!==""&&(t.pathname.startsWith("//")||t.pathname.startsWith("http"))&&!(e!=null&&e.requireHostname)}catch{return!1}}function oN(n){try{if(n.includes("maps/embed"))return n;const e=new URL(n),t=e.href.match(/@([0-9.]+),([0-9.]+),([0-9]+)m/),r=e.href.match(/1s([^!]+)/),s=e.href.match(/!3d([0-9.]+)!4d([0-9.]+)/);if(!t&&!s)throw new Error("Неверный формат ссылки Google Maps");const o=s?s[1]:t?t[1]:"0",i=s?s[2]:t?t[2]:"0",l=t?Math.round(Math.log2(40075016686e-3/(parseFloat(t[3])*2))):14,a=r?r[1]:"";return`https://www.google.com/maps/embed?pb=!1m18!1m12!1m3!1d14774!2d${i}!3d${o}!2m3!1f0!2f0!3f0!3m2!1i1024!2i768!4f${l}!3m3!1m2!1s${a}!2z!5e1!3m2!1sru!2s!4v${Date.now()}!5m2!1sru!2s`}catch(e){console.error("Ошибка обработки ссылки:",e);return}}function MA(n){const e=/https:\/\/lookerstudio\.google\.com\/u\/\d+\/reporting\/([^\/]+)\/page\/([^\/]+)(\/edit)?/;return n.replace(e,"https://lookerstudio.google.com/embed/reporting/$1/page/$2")}function iN(n){if(n)return n.includes("lookerstudio")?(console.log("transformLookerStudioURL(url)",MA(n)),MA(n)):n.includes("maps")?oN(n):!sN(n,{requireHostname:!1})&&!n.startsWith("/")&&!n.startsWith("#")&&!n.startsWith("mailto:")&&!n.startsWith("sms:")&&!n.startsWith("fax:")&&!n.startsWith("tel:")?`https://${n}`:n}const lN=28,_s=x.forwardRef(({src:n,title:e,icon:t,canonicalUrl:r,isSelected:s,width:o="100%",height:i,saveUrl:l,editor:a,updateMinHeight:c,disableOutline:u},d)=>{var b;const f=x.useRef(null),[g,h]=x.useState(!1),m=!!(t||r),A=x.useMemo(()=>{var w;return(i?parseFloat(String(i)):((w=f.current)==null?void 0:w.scrollHeight)||0)+lN},[i,(b=f.current)==null?void 0:b.scrollHeight]);return x.useEffect(()=>{const y=setTimeout(()=>{h(!0),n&&(a==null||a.update(()=>{l(n)}))},0);return()=>clearTimeout(y)},[n]),x.useEffect(()=>{A&&c(A)},[A]),p.jsxs(E.Box,{className:`frame-container ${s?"selected":""}`,style:{overflow:"hidden",width:"inherit",height:"100%",padding:"0px"},children:[g&&p.jsx("iframe",{ref:d||f,style:u?{outline:"none"}:{outline:"1px"},className:`editor-video ${m?"with-bar":""}`,sandbox:"allow-same-origin allow-scripts allow-popups allow-forms allow-downloads allow-storage-access-by-user-activation",width:"100%",height:i,frameBorder:"0",title:e||"embed",loading:"lazy",src:iN(n),allowFullScreen:!0}),p.jsxs("div",{className:"frame-bar",children:[t," ",p.jsx(E.Text,{className:"frame-title",children:e}),r&&p.jsx(E.Anchor,{className:"frame-open-link",href:r,target:"_blank",rel:"noopener noreferrer",children:p.jsxs(E.Flex,{gap:2,children:[p.jsx(z.IconExternalLink,{size:16}),p.jsx(E.Text,{children:"Open"})]})})]})]})}),aN="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAHgAAAB4CAMAAAAOusbgAAACglBMVEUAAAAktvjtMET/wAAmtfkhsfkltPjsL0nxVAD/vwAltfj/wgD/wAD/vwD/wAD/wAD/wQD/wgAArvYltvj/wAD/wAD/uwD/vQAQr/8ltvnqKUPHJ0LuMUrKKEL/wAAlt/n/wQDeADn/wQD/vwAbsf3/wQDJKEIltvn/wAD/wQD/wAD/wAD/wQD/wgD/wAD/wAD/wAAjtPYis/oZsPn/sQD0JC4mtfjIJ0Iltvn/wAD/wAD/wAAltvj/wQAltvn/wADvMEn/wQD/wAD/wQD/wAD/wAAjtvjVK0P/wwDjKkD/wADIJ0Iltvn/wQD/wQDvMEoltvnPKUP/wADvMUkktfjRKUP/wAAktvsjufoitfgitfggtPn/wQD/xADjKEX/uQAlt/r/wQDwMEoltfjKKEImuPvNKUPKKEIltvn/wQDKKEL/wQAlt/slt/omt/r/wQD/wQAltfjQKUMktvn/wADQKUP/wAD/wAAitfn/vwDXKUMjtfn/wAD/vgD/wADnK0UftvjuMEruMEnvMEomtfjOKUPvMUn/wADOKUPNKUPRKUT/wQAlt/rRKUMlt/r/wQD/wAD/wQAltvkkt/nNKEIltvoltvjuL0nSKEP/wADVKUTSKEH/vwAjt/ntLkj/vQDiK0TmJ0TRJUPhHj3MKUPPKUMmtvkltfj/wQDuMErMKELwMErvMEkltvjvMUrVKkPUKUP/vgDdK0bwL0jVKkPyMEjXKD/vMEjrMUnuMUrtMErfLUcmtvjvMUnPKUTPKET/wADRKkP/wAD/wAD/wwAmtff/vwDtMUrGKELsMEnHKELKKELqL0jRKkPMKUPjLkffLUbbLEXnL0jlL0jXK0XUKkRKdu7EAAAAxXRSTlMAIw7++C7NlwL9/gLQHfjvuAcD9/v0DAkG6Rb9/Ondz8kEnzAN9vDu5dO9mmZcPTcYFRIKBgX69vHp4t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dxybhVrUqn/NRwfwLGwJOuPmImTjYgTg4ipSzsXdFaYWMCFrB/PPAvFP9cGxABvq+vbg2lc2m3tD1zycVUtD2ljbwf7F8RF4FuKoqgENqBqyBl0BOZeqpy2xNdK0BAxJuA/t+a4OaqjTX2K1TajjP25eCls4kJeHA/o0enbh4O4BcPS+I/SQziN4wr9jTKBrYFugnek6eVmxBRxvyhaidjGcy0hh/RtAEiaWLbdAXwh1t6aF+ppxcfl/GD6NurIGm8AAAAAASUVORK5CYII=",kN="data:image/svg+xml,%3csvg%20xmlns:xlink='http://www.w3.org/1999/xlink'%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%20256%20256'%20width='256'%20height='256'%20preserveAspectRatio='xMidYMid'%3e%3cpath%20fill='%23625DF5'%20d='M256%20113.765h-74.858l64.83-37.43-14.237-24.667-64.83%2037.43%2037.421-64.825-24.667-14.246-37.421%2064.826V0h-28.476v74.86L76.326%2010.027%2051.667%2024.266%2089.096%2089.09%2024.265%2051.668l-14.238%2024.66%2064.83%2037.43H0v28.477h74.85l-64.823%2037.43%2014.238%2024.667%2064.824-37.423-37.43%2064.825%2024.667%2014.239%2037.429-64.832V256h28.476v-74.853l37.422%2064.826%2024.665-14.239-37.428-64.832%2064.83%2037.43%2014.24-24.667-64.825-37.423h74.85v-28.477H256ZM128%20166.73c-21.472%200-38.876-17.403-38.876-38.876%200-21.472%2017.404-38.876%2038.876-38.876%2021.472%200%2038.875%2017.404%2038.875%2038.876%200%2021.473-17.403%2038.876-38.875%2038.876Z'/%3e%3c/svg%3e",EN="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAHgAAAB4CAMAAAAOusbgAAAAn1BMVEUAAAD3jR3zhhT1hxTthxb3dwD3jR34jR74jR33jR33ihf4jB33jB34jR33jRz4jBz3jBz4ixv4iRn3hgD3jR33jRz3jB34ixf5iBb3jRz3jR33jR33jB33jB32jBz4jBz4jBz4jBn4jR33jR33jRz3jBz3ixv4jR33jR33jBz3jB34jRz4jR33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ljHGhyUyCknLFVjWVSXFDh8WS1rK7ShCDYt6Pc+kBYWXRf8uV5P3M7QvKFvFJBnNy5OJfafD4SmBZDc1YP9K6Jze5KZ18CAbZz5n5AJL8HaQ4Lvq12P01+q6qEJPnUQJPbSWJYrBapJoq2Aw/5KYnFntMCbd635LcTrNuLSIvcJdosVfcdDl1OM7x2b5MsWQpr65H11eWuFewL4epnVvbSzPg5ND2eZnc3PGvxOy8ilrhITRPvolcPImOnYu8uNoZ3I+H+C9Yd6ZxyF9La9sw2mOzbFNara8bNu9S8BideF27sprMr0oKOj9Ec8TsNKfq7hOnG3iUcKSB+j1PTuo3Gtnc+Yz473e7h7vw+X2mGJV+P4/siVuy8Ae9ff0wouNpoXU2Is2lSXI+tmpoXdBLu0wbiPdqaFa8rXS/O7mdO6xVIsmMZscMiCWMoNfmvQDOWZuYJb89/DMu2kyTbBHHschDuXZEmfhrSNgQCyyH1iVgkKo0JED/+HEz4IvDCcezrp36UJ1X5ThGlikSGDfBO4vDxOo5rzwfKoqtfOPYGuTUjMj4BNv860O6n0nzXSGruiknflX4vxaH9ODLxIlmrZtUMH1zolZ6udiEVMrHjpTjcGSsxWpKNxRkUONUcvPMHQDB/BA/9FdC+FSC0BtTC9FI/rwDhvUod9gci2UPYhkmlqMH3QFqlyAZ+onrvIp+e+v9+1d2Lv4munAAAAABJRU5ErkJggg==",NN="data:image/svg+xml,%3csvg%20height='256'%20preserveAspectRatio='xMidYMid'%20viewBox='0%200%20256%20256'%20width='256'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='m127.059657%20255.996921c-68.2090026-.470449-127.51673062-57.078479-127.05700194-128.998618.44199434-69.2024402%2057.94900474-127.46727058%20129.10736494-126.99545745%2069.157108.45954053%20127.503089%2057.86392555%20126.885116%20128.19135345.572955%2069.689254-58.060868%20128.29499-128.935479%20127.802722zm0%200c-68.2090026-.470449-127.51673062-57.078479-127.05700194-128.998618.44199434-69.2024402%2057.94900474-127.46727058%20129.10736494-126.99545745%2069.157108.45954053%20127.503089%2057.86392555%20126.885116%20128.19135345.572955%2069.689254-58.060868%20128.29499-128.935479%20127.802722z'%20fill='%23fff'/%3e%3cpath%20d='m127.184644%20238.997327c-59.1522675-.408056-110.5810349-49.498583-110.1823412-111.865899.3837257-60.0128327%2050.2530972-110.5397174%20111.9608142-110.1289408%2059.971427.3985349%20110.568788%2050.1800369%20110.032661%20111.1667638.496666%2060.43313-50.348348%20111.255175-111.811134%20110.828076zm0%200c-59.1522675-.408056-110.5810349-49.498583-110.1823412-111.865899.3837257-60.0128327%2050.2530972-110.5397174%20111.9608142-110.1289408%2059.971427.3985349%20110.568788%2050.1800369%20110.032661%20111.1667638.496666%2060.43313-50.348348%20111.255175-111.811134%20110.828076z'%20fill='%2349a32b'/%3e%3cpath%20d='m169.327319%20127.956161c-.284596%205.290212-4.906213%209.683063-9.461106%208.916425-.021787%200-.044936%200-.068085%200-5.045107.006809-9.139745-4.078298-9.145192-9.123404.171575-5.058724%204.366979-9.045787%209.427064-8.96%205.045106.02451%209.51966%204.288%209.247319%209.166979zm-81.1261275%2051.264c1.9022979.055829%203.8059574.014978%205.9996596.014978v13.785873c-13.6347234%202.305361-24.8660426-1.565958-27.6221277-13.091405-.9436596-4.237617-1.5237447-8.548766-1.7361702-12.885787-.292766-4.591659.2137872-9.235064-.1361702-13.818553-.9695319-12.612085-2.6035745-16.917787-14.706383-17.514213v-15.69634c.8674043-.202894%201.7470638-.352681%202.6321702-.452085%206.6355745-.326809%209.4325107-2.361192%2010.916766-8.897362.6754042-3.672511%201.0757447-7.389958%201.1942127-11.1223831.5256171-7.2170212.3390639-14.5511489%201.5414468-21.6510638%201.737532-10.267234%208.1116596-15.2551489%2018.6403405-15.8134468%202.9957447-.1606808%206.0010212-.0245106%209.3957447-.0245106v14.0908936c-1.3971064.0994042-2.6771064.3022979-3.9489362.2641702-8.5800851-.2628085-9.024%202.6594043-9.650383%209.7620426-.3908085%204.4541276.1484255%208.9845106-.155234%2013.453617-.3172766%204.4473189-.9123405%208.8714889-1.7811064%2013.2452769-1.2377873%206.338723-5.1349787%2011.052936-10.5354894%2015.053617%2010.4837447%206.822127%2011.6765958%2017.422978%2012.3574468%2028.187234.3662979%205.78451.1988085%2011.609872.7857022%2017.365787.4575319%204.467745%202.1950638%205.607489%206.8085106%205.74366zm8.8360851-60.430979h.1620425c5.0124259.083064%209.0103829%204.213106%208.9273189%209.226893%200%20.164766-.005447.328171-.014978.491575-.281873%204.899404-4.481362%208.641362-9.3807664%208.359489-.1974468.004085-.3935319%200-.5909787-.009532-4.9892766-.247829-8.8333617-4.493617-8.5855319-9.482893.2478298-4.989277%204.493617-8.833362%209.4828936-8.585532zm31.2360854%200c5.482212-.042213%209.123404%203.510468%209.152%208.930042.029957%205.565277-3.421958%209.126128-8.868766%209.149277-5.539405.024511-9.186043-3.479149-9.216-8.866043-.016341-.275063-.020426-.550127-.012256-.825191.153873-4.786383%204.158639-8.541958%208.945022-8.388085zm65.399829-6.865702c1.458383%205.446808%204.297532%207.361361%2010.03166%207.622808.939575.043575%201.875064.202894%203.163234.345873v15.692255c-.697191.228766-1.412085.40034-2.137872.512-7.684085.477957-11.186383%203.630298-11.962553%2011.334808-.49566%204.918468-.454809%209.891405-.795234%2014.827575-.142979%205.419574-.635915%2010.82417-1.476086%2016.179745-1.960851%209.703489-8.019063%2014.54434-18.028936%2015.135319-3.221787.190638-6.466723.029957-9.940425.029957v-14.025532c1.869617-.115744%203.52-.275064%205.174468-.314553%205.980596-.142979%208.095319-2.071149%208.388085-8.010894.324085-6.525276.465702-13.058723.757106-19.585361.42349-9.433873%203.006639-17.861447%2011.795064-23.745362-5.028766-3.585362-9.066213-7.92783-10.112-13.783149-1.265021-7.097191-1.673532-14.3509787-2.354383-21.5475744-.33634-3.597617-.32-7.2265532-.671319-10.8214468-.378553-3.8808511-3.044766-5.2234894-6.577021-5.3106383-2.02349-.0490213-4.055149-.0095319-6.642383-.0095319v-13.696c16.509276-2.7411064%2027.913532%202.752%2028.972936%2018.5477446.443915%206.6328511.378553%2013.2970213.803404%2019.9298728.186553%203.60851.725787%207.189787%201.612255%2010.692085z'%20fill='%23fff'/%3e%3c/svg%3e",IN="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAHgAAAB4CAYAAAA5ZDbSAAAACXBIWXMAAAsTAAALEwEAmpwYAAAG5ElEQVR42u2dX4jUVRTH787Mzm5l/yiIwictVgS3ohcfQiVyE/9kQRFmDyZUkNhDURTqQ+FbZGhqICmpvSz9QQtTMgkW/PtSEvWQBfrSPzAr13Vnd2fsXPYe9nj39/M3OzMx957f98KX329mZ4ad+5lz7v3dc879GTO5FbzH80mbSCdIf5FqpCtQW2T7/gLppGOyIIPdpFYU54tIp9Cpwes4qS+F4VWtJF6wTXzAKKnijrDeMKxYMuHntwkLLqZZbhfpkHuD/YBhdGjwsoxG3PlhUtmHLP32PvfCi6QqOi8qq77kzg/4Y3KHe7DevWDQeyM6MB5ddseNjilbs5ntjbnorHgtmc975Rj8oXtyCJYbvcbcsZ/hThdgMe7qsWI7j5phAa8Ws2Z0kC43vcYC3gnA6gAz5L0W8FFMrtSJh9pjFvDP3uAM6XHTlq05iwmWWsDnAFg34LMADMAQAEMADAEwBMAQACev6lRcrHTIHYeVL+zkAvCYA1rNCJBXADjezAbWv6SfSKdJP5D+SHh9DYDjg/spaSVpDukO0s2k20j3kBaTtpD+ca8dUeS2VQKuiSzQ70kPmfra3aTPvJRUAA7wC/FY+iXpJi8luDNBJQ/02wlpLwAcUG6wPQ6QukVGYVFkjZqUMp2yeLxVdFAVgMMQW+6fpB4H6joztdYlzo8rsGI1gKvi/17nAHVmWG1au8Ed+xS4ajWA2Xp/I810gLpNY60gfhgDok9qANw+cU3Ovnqq6+po7NrXRV7doQKwtK6NTbpnH/CShAQ2AG5TBr/V2oTJUiON3/+A8A4AHADgF5ocf33Ac8SKGAAHAPjlFlvwXPH5ANzGL8H/8xYxwWrFGLwCY3BYl0kDYumxswnA3QkrWphFB3CZZMfLBxtcxTLeD8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JrW0sTdzAwV5qXOxXwc7rgYq3NHi0hOYSUF7Si74bUMkzTlHedLeq+1jIXthtA/hBVltoC8d6Op1+0kCXAz4ZEOaEtAlrlXgjv7+o/QiGCmntwW6zhFfHT2x5G+VxoA/1gPOeZ73jj1/PndVopf6Pvflzej336v35yecXbD7o/O1kBaAvVZe64TtZyRlSqYLSrkmXy709Kej9PBmSFWkSV2H+DyyQ+axcpVrZAAAAAElFTkSuQmCC",ON="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAHgAAAB4CAIAAAC2BqGFAAAACXBIWXMAACE4AAAhOAFFljFgAAAHGUlEQVR42u2cW2wNWxjHN1rtbiXud1td69pWEGkiHjxIiBcqrhGJB4+ePJCQiKBRgod6aCWSulX1uCVCvKDauJ4iSDy4Bm3qEkIoysH5Z/9jZcyemb2nu86xp//fw8p0Zs2sWf/9rW9935qZhkJCCCGEEEIIIYQQQgghhBBCCCGEEEIIIYQQQgghhBAiaGRkZGRlZYV/BXvS09MlTlsycODAYcOGDRkyZKgF7OnTpw+OdujQQRK1AdnZ2R5He/ToIa2Tgtp1794d5YkTJ27dunX16tX6+vq/o1y7du327du7d+/GUVi6tE5W6P79+6NsaGj44cSVK1dwdPz48RI6WaH79euH8v79+5D169ev336CbeypqanB0bFjx0rothH64cOHkBX6Glvmdm1tLY6OGzdOQktoCf3HdjsR2rCtjh07+hIa9X/HzfzRZtiGp/fq1Suu0GPGjPkdN/M/CJeWloZYFZkY8zE3IpFIt27dkmkuMzMTyg4ePJgXzMnJobW6CV1XV4ejhYWF5hTe5PDhw1MvaUTnfdVHV9m9BDtpquG3pKOI5d69e45Cnz171uPKTHZSg549e6KcPHnygQMHjh49Wl1d/ZcLOLRjxw6YEurDpvz6ilGjRnFj/vz5paWlhw8f5mWPHDlSWVn56tUryPr9+3cjNLdh6Xv37j127JjtTpBJrl+/Hlfr27dvahg1hUPnrZ304PXr18XFxb60traC3Prz58+OV469Ae9bunTpEt13p06dUkBo6jV37tz379+b3OwfF8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hcDj8ezj8Hd8AxYE9wZItsP4AAAAASUVORK5CYII=";function jN({matches:n,...e}){const t=n[0],r=new URL(t).searchParams,s="Draw.io",o=r.get("title")?`${s} (${r.get("title")})`:s;return p.jsx(_s,{...e,src:e.attrs.href,icon:p.jsx(E.Image,{src:gv,alt:"Diagrams.net",width:16,height:16}),canonicalUrl:e.attrs.href,title:o})}function PN(n){return n.endsWith(".pibb")?n:`${n}.pibb`}function FN(n){const e=PN(n.attrs.href);return p.jsx(_s,{...n,src:e,canonicalUrl:e,width:"100%",title:"GitHub Gist"})}function BN({matches:n,...e}){let t="";try{t=new URL(n[0]).pathname}catch{t=""}const r=t.replace(/^\/embed/,"/");let s;return r.includes("episode")||r.includes("show")?s=232:r.includes("track")?s=80:s=380,p.jsx(_s,{...e,disableOutline:!0,width:"100%",height:`${s}px`,src:`https://open.spotify.com/embed${r}`,title:"Spotify Embed",allow:"encrypted-media"})}function zN({matches:n,...e}){const t=n[2];return n[1]==="c"?p.jsx(_s,{...e,width:"316px",height:"141px",src:`https://trello.com/embed/card?id=${t}`,title:`Trello Card (${t})`}):p.jsx(_s,{...e,width:"248px",height:"185px",src:`https://trello.com/embed/board?id=${t}`,title:`Trello Board (${t})`})}function WN({matches:n,...e}){const t=n[4],r=n[5],s=`https://player.vimeo.com/video/${t}?byline=0${r?`&h=${r}`:""}`;return p.jsx(_s,{...e,src:s,canonicalUrl:s,title:`Vimeo Embed (${t})`,height:"412px",referrerPolicy:"origin"})}const UN={github:"GitHub Gist",figma:"Figma",vimeo:"Vimeo Embed"},Lo=[{parentKey:"integrations",platform:"spotify",keywords:["spotify"],key:"spotify",hide:!1,regexMatches:[/(?:https?:\/\/)?(?:open\.)?spotify\.com\/(?:embed\/)?(track|album|playlist|show|episode)\/([a-zA-Z0-9]+)/],icon:p.jsx(E.Image,{className:"integration-icon",src:DN}),name:"Spotify",component:BN},{parentKey:"integrations",platform:"figma",keywords:["figma","design"],key:"figma",hide:!1,regexMatches:[new RegExp("^https://([w.-]+\\.)?figma\\.com/(file|proto|board|design)/([0-9a-zA-Z]{22,128})(?:/.*)?$"),new RegExp("^https://([w.-]+\\.)?figma\\.com/embed(.*)$")],transformMatch:n=>n[0].includes("/embed")?n[0]:`https://www.figma.com/embed?embed_host=outline&url=${encodeURIComponent(n[0])}`,icon:p.jsx(E.Image,{className:"integration-icon",src:fN}),name:"Figma",getIframeUrl:n=>`https://www.figma.com/embed?embed_host=share&url=${n}`},{parentKey:"integrations",platform:"airtable",keywords:["spreadsheet"],key:"airtable",hide:!1,regexMatches:[new RegExp("^https://airtable.com/(?:embed/)?(app.*/)?(shr.*)$"),new RegExp("^https://airtable.com/(app.*/)?(pag.*)/form$")],icon:p.jsx(E.Image,{className:"integration-icon",src:aN}),name:"Airtable",transformMatch:n=>`https://airtable.com/embed/${n[1]??""}${n[2]}`,getIframeUrl:n=>`https://airtable.com/embed/${n}`},{parentKey:"integrations",platform:"codepen",keywords:["code","editor"],key:"codepen",hide:!1,regexMatches:[/^https:\/\/codepen\.io\/(.*?)\/(pen|embed)\/(.*)$/],icon:p.jsx(E.Image,{className:"integration-icon",src:cN}),name:"Codepen",transformMatch:n=>`https://codepen.io/${n[1]}/embed/${n[3]}`,getIframeUrl:n=>`https://codepen.io/${n}/embed/`},{parentKey:"integrations",platform:"dbdiagram",keywords:["diagrams","database"],key:"dbdiagram",hide:!1,regexMatches:[/^https:\/\/dbdiagram\.io\/(embed|e|d)\/(\w+)(\/.*)?$/],icon:p.jsx(E.Image,{className:"integration-icon",src:uN}),name:"DBDiagram",transformMatch:n=>`https://dbdiagram.io/embed/${n[2]}`,getIframeUrl:n=>`https://dbdiagram.io/embed/${n}`},{parentKey:"integrations",platform:"diagrams",keywords:["diagrams","drawio"],key:"diagrams",hide:!1,regexMatches:[/^https:\/\/viewer\.diagrams\.net\/(?!proxy).*(title=\\w+)?/],icon:p.jsx(E.Image,{className:"integration-icon",src:gv}),name:"Diagrams.net",component:jN},{parentKey:"integrations",platform:"descript",keywords:["audio"],key:"descript",hide:!1,regexMatches:[/^https?:\/\/share\.descript\.com\/view\/(\w+)$/],icon:p.jsx(E.Image,{className:"integration-icon",src:dN}),name:"Descript",transformMatch:n=>`https://share.descript.com/embed/${n[1]}`,getIframeUrl:n=>`https://share.descript.com/embed/${n}`},{parentKey:"integrations",platform:"github",keywords:["code"],key:"gist",hide:!1,regexMatches:[/^https:\/\/gist\.github\.com\/([a-zA-Z\d](?:[a-zA-Z\d]|-(?=[a-zA-Z\d])){0,38})\/(.*)$/],icon:p.jsx(E.Image,{className:"integration-icon",src:hN}),name:"GitHub Gist",component:FN},{parentKey:"integrations",platform:"google-maps",keywords:["maps"],key:"google-maps",hide:!1,regexMatches:[/https?:\/\/(?!maps\.app\.goo\.gl\/2SrY88FwWBpKDkk88)(?:maps\.app\.goo\.gl\/[\w-]+|www\.google\.com\/maps\/[\S]+)/],icon:p.jsx(E.Image,{className:"integration-icon",src:wN}),name:"Google Maps",transformMatch:n=>n[0]},{parentKey:"integrations",platform:"google-drawings",keywords:["drawings"],key:"google-drawings",hide:!1,regexMatches:[/^https:\/\/docs\.google\.com\/drawings\/d\/(.*)\/(edit|preview)(.*)$/],icon:p.jsx(E.Image,{className:"integration-icon",src:mN}),name:"Google Drawings",transformMatch:n=>n[0].replace("/edit","/preview")},{parentKey:"integrations",platform:"google-drive",keywords:["drive"],key:"google-drive",hide:!1,regexMatches:[/^https?:\/\/drive\.google\.com\/file\/d\/(.*)$/],icon:p.jsx(E.Image,{className:"integration-icon",src:AN}),name:"Google Drive",transformMatch:n=>n[0].replace("/view","/preview").replace("/edit","/preview")},{parentKey:"integrations",platform:"google-docs",keywords:["documents","word"],key:"google-docs",hide:!1,regexMatches:[/^https?:\/\/docs\.google\.com\/document\/(.*)$/],icon:p.jsx(E.Image,{className:"integration-icon",src:pN}),name:"Google Docs",transformMatch:n=>n[0].replace("/view","/preview").replace("/edit","/preview")},{parentKey:"integrations",platform:"google-sheets",keywords:["excel","spreadsheet"],key:"google-sheets",hide:!1,regexMatches:[/^https?:\/\/docs\.google\.com\/spreadsheets\/d\/(.*)$/],icon:p.jsx(E.Image,{className:"integration-icon",src:CN}),name:"Google Sheets",transformMatch:n=>n[0].replace("/view","/preview").replace("/edit","/preview")},{parentKey:"integrations",platform:"google-slides",keywords:["presentation","slideshow"],key:"slides",hide:!1,regexMatches:[/^https?:\/\/docs\.google\.com\/presentation\/d\/(.*)$/],transformMatch:n=>n[0].replace("/edit","/preview").replace("/pub","/embed"),icon:p.jsx(E.Image,{className:"integration-icon",src:vN,alt:"Google Slides"}),name:"Google Slides"},{parentKey:"integrations",platform:"google-calendar",keywords:["calendar"],key:"calendar",hide:!1,regexMatches:[/^https:\/\/calendar\.google\.com\/calendar\/embed\?src=(.*)$/],transformMatch:n=>n[0],icon:p.jsx(E.Image,{className:"integration-icon",src:gN,alt:"Google Calendar"}),name:"Google Calendar"},{parentKey:"integrations",platform:"google-forms",keywords:["form","survey"],key:"forms",hide:!1,regexMatches:[/^https?:\/\/docs\.google\.com\/forms\/d\/(.+)$/],transformMatch:n=>n[0].replace(/\/(edit|viewform)(\?.+)?$/,"/viewform?embedded=true"),icon:p.jsx(E.Image,{className:"integration-icon",src:yN,alt:"Google Forms"}),name:"Google Forms"},{parentKey:"integrations",platform:"google-business",keywords:["bi","business intelligence"],key:"lookerstudio",hide:!1,regexMatches:[/^https?:\/\/(lookerstudio|datastudio)\.google\.com\/(embed|u\/0)\/reporting\/(.*)\/page\/(.*)(\/edit)?$/],transformMatch:n=>n[0].replace("u/0","embed").replace("/edit",""),icon:p.jsx(E.Image,{className:"integration-icon",src:bN,alt:"Google Looker Studio"}),name:"Google Looker Studio"},{parentKey:"integrations",platform:"grist",keywords:["spreadsheet"],key:"grist",hide:!1,regexMatches:[/^https?:\/\/([a-z.-]+\.)?getgrist\.com\/(.+)$/],transformMatch:n=>{const e=n.input??n[0];return e.includes("style=singlePage")?e:e.replace(/(\?embed=true)?$/,"?embed=true")},icon:p.jsx(E.Image,{className:"integration-icon",src:xN,alt:"Grist"}),name:"Grist"},{parentKey:"integrations",platform:"instagram",keywords:["post"],key:"instagram",hide:!1,regexMatches:[/^https?:\/\/www\.instagram\.com\/(p|reel)\/([\w-]+)(\/?utm_source=\w+)?/],transformMatch:n=>`${n[0]}/embed`,icon:p.jsx(E.Image,{className:"integration-icon",src:SN,alt:"Instagram"}),name:"Instagram"},{parentKey:"integrations",platform:"loom",keywords:["video","screencast"],key:"loom",hide:!1,regexMatches:[/^https:\/\/(www\.)?(use)?loom\.com\/(embed|share)\/(.*)$/],transformMatch:n=>n[0].replace("share","embed"),icon:p.jsx(E.Image,{className:"integration-icon",src:kN,alt:"Loom"}),name:"Loom"},{parentKey:"integrations",platform:"lucidchart",keywords:["chart"],key:"lucidchart",hide:!1,regexMatches:[/^https?:\/\/(www\.|app\.)?(lucidchart\.com|lucid\.app)\/documents\/(embeddedchart|view|edit)\/(?<chartId>[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})(?:.*)?$/,/^https?:\/\/(www\.|app\.)?(lucid\.app|lucidchart\.com)\/lucidchart\/(?<chartId>[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})\/(embeddedchart|view|edit)(?:.*)?$/],transformMatch:n=>{var e;return`https://lucidchart.com/documents/embeddedchart/${(e=n.groups)==null?void 0:e.chartId}`},icon:p.jsx(E.Image,{className:"integration-icon",src:EN,alt:"Lucidchart"}),name:"Lucidchart"},{parentKey:"integrations",platform:"miro",keywords:["whiteboard"],key:"miro",hide:!1,regexMatches:[/^https:\/\/(realtimeboard|miro)\.com\/app\/board\/(.*)$/],transformMatch:n=>`https://${n[1]}.com/app/embed/${n[2]}`,icon:p.jsx(E.Image,{className:"integration-icon",src:_N,alt:"Miro"}),name:"Miro"},{parentKey:"integrations",platform:"scribe",keywords:["screencast"],key:"scribe",hide:!1,regexMatches:[/^https?:\/\/scribehow\.com\/shared\/(.*)$/],transformMatch:n=>`https://scribehow.com/embed/${n[1]}`,icon:p.jsx(E.Image,{className:"integration-icon",src:TN,alt:"Scribe"}),name:"Scribe"},{parentKey:"integrations",platform:"swagger",keywords:["swagger","api"],key:"swagger",hide:!0,regexMatches:[/^https?:\/\/([a-z.-]+\.)?getgrist\.com\/(.+)$/],transformMatch:n=>n.input??n[0],icon:p.jsx(E.Image,{className:"integration-icon",src:NN,alt:"Swagger"}),name:"Swagger"},{parentKey:"integrations",platform:"tldraw",keywords:["draw","schematics","diagrams"],key:"tldraw",hide:!1,regexMatches:[/^https?:\/\/(beta|www|old)\.tldraw\.com\/[rsvo]+\/(.*)$/],transformMatch:n=>n[0],icon:p.jsx(E.Image,{className:"integration-icon",src:IN,alt:"Tldraw"}),name:"Tldraw"},{parentKey:"integrations",platform:"trello",keywords:["kanban"],key:"trello",hide:!1,regexMatches:[/^https:\/\/trello\.com\/(c|b)\/([^/]*)(.*)?$/],icon:p.jsx(E.Image,{className:"integration-icon",src:LN,alt:"Trello"}),component:zN,name:"Trello"},{parentKey:"integrations",platform:"typeform",keywords:["form","survey"],key:"typeform",hide:!1,regexMatches:[/^https:\/\/([A-Za-z0-9](?:[A-Za-z0-9-]{0,61}[A-Za-z0-9])?)\.typeform\.com\/to\/(.*)$/],transformMatch:n=>n[0],icon:p.jsx(E.Image,{className:"integration-icon",src:MN,alt:"Typeform"}),name:"Typeform"},{parentKey:"integrations",platform:"valtown",keywords:["code"],key:"valtown",hide:!1,regexMatches:[/^https?:\/\/(?:www.)?val\.town\/(?:v|embed)\/(.*)$/],transformMatch:n=>`https://www.val.town/embed/${n[1]}`,icon:p.jsx(E.Image,{className:"integration-icon",src:ON,alt:"Valtown"}),name:"Valtown"},{parentKey:"integrations",platform:"vimeo",keywords:["video"],key:"vimeo",hide:!1,regexMatches:[/(http|https)?:\/\/(www\.)?vimeo\.com\/(?:channels\/(?:\w+\/)?|groups\/([^/]*)\/videos\/|)(\d+)(?:\/|\?)?([\d\w]+)?/],icon:p.jsx(E.Image,{className:"integration-icon",src:RN,alt:"Vimeo"}),name:"Vimeo",component:WN}],af=(n,e=[])=>{const t=e??[];for(const r of t){const s=n.match(r);if(s)return s}return!1};function KN(n){for(const e of Lo){const t=af(n,e.regexMatches);if(t)return{embed:e,matches:t}}}function HN(n){var r;let e=null;const t=Lo.find(s=>s.regexMatches.some(o=>{var i;return e=n.match(o),e?{platform:s.platform,id:((i=s==null?void 0:s.transformMatch)==null?void 0:i.call(s,e))||"valid"}:{platform:"unknown",id:null}}));return t?{platform:t.platform,id:e?((r=t.transformMatch)==null?void 0:r.call(t,e))||"valid":null}:{platform:"unknown",id:null}}function YN(n,e){var r;const t=Lo.find(s=>s.platform===n);return t?((r=t==null?void 0:t.getIframeUrl)==null?void 0:r.call(t,e))||"valid":""}const VN=({height:n,width:e,id:t,platform:r,src:s})=>{const o=UN[r]||r,l=`${parseInt(n,10)-24}px`;return p.jsxs("span",{className:"frame-container",style:{width:e,height:n},children:[p.jsx("iframe",{"data-lexical-embedid":t,"data-lexical-platform":r,src:s,style:{margin:0},width:"100%","data-exportheight":n,"data-exportwidth":e,height:l,allowFullScreen:!0,frameBorder:"0"}),p.jsx("span",{className:"frame-bar","data-title":o,children:p.jsx("a",{className:"frame-open-link",href:s,target:"_blank",rel:"noopener noreferrer"})})]})};function GN({className:n,format:e,platform:t,embedId:r,width:s,editor:o,nodeKey:i,create:l}){const[a,c]=x.useState(r||""),[u,d]=x.useState(!1),[f,g]=x.useState(l||!1),{t:h}=We.useTranslation(),m=x.useMemo(()=>Lo.find(C=>C.platform===t),[t]);x.useEffect(()=>{const C=document.documentElement;ag(f,C)},[f]);const A=x.useMemo(()=>KN(a),[a]),b=C=>{o.update(()=>{const _=ue(i);return Hu(_)&&_.setMinHeight(C),!0})},y=C=>{const _=ue(i),k=af(a,(A==null?void 0:A.embed.regexMatches)||[]);if(Hu(_)&&k){if(C){_.setSrc(C);return}_.setPlatform(A==null?void 0:A.embed.platform),_.setId(a),A!=null&&A.embed.transformMatch?_.setSrc(A==null?void 0:A.embed.transformMatch(A==null?void 0:A.matches)):_.setSrc(a)}},w=(C,_)=>{o.update(()=>{Ie(null);const k=ue(i);return Hu(k)&&k.setWidthAndHeight(C,_),!0})},v=C=>{if(C.preventDefault(),!af(a,(A==null?void 0:A.embed.regexMatches)||[])&&!(A!=null&&A.embed.platform)){d(!0);return}o.update(()=>{const k=ue(i);if(!k)return;y(),g(!1);const T=k.getNextSibling();T&&Ie(T.selectNext())}),d(!1)},S=()=>{if(A!=null&&A.embed.transformMatch){const C=A==null?void 0:A.embed.transformMatch(A==null?void 0:A.matches);return p.jsx(_s,{src:C,width:"100%",height:"400px",canonicalUrl:a,title:m==null?void 0:m.name,allow:"encrypted-media",saveUrl:y,editor:o,updateMinHeight:b})}return m!=null&&m.component?m.component({saveUrl:y,attrs:{href:a},matches:A==null?void 0:A.matches,isSelected:!1,isEditable:!1,embed:m,editor:o,updateMinHeight:b}):p.jsx("div",{})};return x.useEffect(()=>{l&&g(!0)},[l]),r?A?p.jsx(lg,{editor:o,width:s,isIcon:!1,isEmbed:!0,height:400,onResizeEnd:w,children:p.jsx("div",{className:"media-wrapper",children:p.jsx(bo,{className:n,format:e,nodeKey:i,children:S()})})}):null:p.jsxs(E.Popover,{width:400,position:"bottom",shadow:"md",opened:f,trapFocus:!0,onChange:C=>{g(C),C||(c(""),d(!1))},withinPortal:!0,children:[p.jsx(E.Popover.Target,{children:p.jsx(E.Flex,{w:"100%",children:p.jsx(bo,{className:n,format:e,nodeKey:i,children:p.jsx(Vc,{title:h("editor.embed.addEmbed"),icon:"embed",onClick:()=>g(C=>!C)})})})}),p.jsx(E.Popover.Dropdown,{children:p.jsx("form",{onSubmit:v,children:p.jsxs(E.Stack,{gap:16,children:[p.jsxs(E.Box,{children:[p.jsx(E.TextInput,{placeholder:h("editor.embed.placeholder"),type:"url","data-autofocus":!0,value:a,onChange:C=>{c(C.currentTarget.value)}}),u&&p.jsx(E.Text,{size:"xs",mt:8,color:"red",children:h("editor.validation.link")})]}),p.jsx(E.Center,{children:p.jsx(E.Button,{w:"100%",type:"submit",disabled:!a,children:h("editor.embed.insert")})})]})})})]})}function ZN(n){const e=n.getAttribute("data-lexical-platform"),t=n.getAttribute("src"),r=n.getAttribute("data-lexical-embedid")||"",s=parseFloat(n.getAttribute("data-exportwidth")??"100%"),o=parseFloat(n.getAttribute("height")??"100%"),i=n.getAttribute("data-exportheight");if(e&&typeof t=="string"){const l=cg(t,s,o,r,!1,e);return l.setMinHeight(parseFloat(i)),{node:l}}return{node:null}}class Mo extends js{constructor(t,r,s,o,i,l,a,c,u){super(s,l);Z(this,"__platform");Z(this,"__id");Z(this,"__create");Z(this,"__width");Z(this,"__height");Z(this,"__src");Z(this,"__minHeight");this.__platform=t,this.__id=r,this.__create=a||!1,this.__width=o||560,this.__height=i||315,this.__src=c,this.__minHeight=u||400}static getType(){return"embed"}static clone(t){return new Mo(t.__platform,t.__id,t.__format,t.__width,t.__height,t.__key,t.__create,t.__src,t.__minHeight)}static importJSON(t){const r=cg(t.src,t.width,t.height,t.embedId,t.create,t.platform);return r.setFormat(t.format),r}exportJSON(){return{...super.exportJSON(),type:"embed",version:1,platform:this.__platform,embedId:this.__id,width:this.__width,height:this.__height,src:this.__src}}createDOM(){const t=document.createElement("div");return t.className="editor-iframe",t}static importDOM(){return{iframe:t=>{const r=t.getAttribute("data-lexical-platform"),s=t.getAttribute("data-lexical-embedid");return r&&typeof s=="string"?{conversion:ZN,priority:1}:null}}}updateDOM(){return!1}exportDOM(){const t=typeof this.__width=="string"&&this.__width.includes("%")?this.__width:`${this.__width}%`,r=Rx.renderToString(p.jsx(VN,{platform:this.__platform,id:this.__id,src:this.__src||"",height:(typeof this.__height=="number"?this.__height:this.__minHeight).toString()+"px",width:t})),s=document.createElement("div");return s.innerHTML=r,this.__src!==""?{element:s.firstChild}:{element:null}}decorate(t,r){const o={base:(r.theme.embedBlock||{}).base||"",focus:""};return p.jsx(GN,{editor:t,nodeKey:this.getKey(),format:this.__format,className:o,platform:this.__platform,embedId:this.__id,width:this.__width,height:this.__height,create:this.__create})}setMinHeight(t){const r=this.getWritable();r.__minHeight=t}setPlatform(t){const r=this.getWritable();r.__platform=t}setId(t){const r=this.getWritable();r.__id=t}setSrc(t){const r=this.getWritable();r.__src=t}getId(){return this.__id}setCreated(t){const r=this.getWritable();r.__create=t}getTextContent(){return YN(this.__platform,this.__id)}setWidthAndHeight(t,r){const s=this.getWritable();s.__width=t,s.__height=r}}function cg(n,e,t,r,s,o){let i=o||"unknown";if(!o){const{platform:l}=HN(n||"");i=l||"unknown"}return new Mo(i,r,void 0,e,t,void 0,s,n)}function Hu(n){return n instanceof Mo}function JN({className:n,format:e,editor:t,nodeKey:r,formID:s}){const o={base:"dsd__theme__embedBlock dsd__theme__embedBlock__form",focus:"dsd__theme__embedBlockFocus"};return p.jsxs(bo,{className:o,format:e,nodeKey:r,children:[p.jsx(E.Tooltip,{label:"Удалить",children:p.jsx(E.ActionIcon,{color:"gray","aria-label":"Settings",className:"image-delete-icon",variant:"default",onClick:i=>{i.stopPropagation(),t.update(()=>{if(R()){const l=ue(r);l&&l.remove()}return!1})},children:p.jsx($,{name:"trash"})})}),p.jsx("iframe",{width:"100%",height:"500",src:`https://dudoc.io/f/${s}`,title:"Form",style:{border:"none"}})]})}function XN(n){const e=n.getAttribute("data-form");return e?{node:ug(e)}:null}class fl extends js{constructor(t,r,s){super(r,s);Z(this,"__id");this.__id=t}static getType(){return"form"}static clone(t){return new fl(t.__id,t.__format,t.__key)}static importJSON(t){const r=ug(t.formID);return r.setFormat(t.format),r}exportJSON(){return{...super.exportJSON(),type:"form",version:1,formID:this.__id}}exportDOM(){const t=document.createElement("iframe");return t.setAttribute("data-form",this.__id),t.setAttribute("width","100%"),t.setAttribute("height","500"),t.setAttribute("src",`https://dudoc.io/f/${this.__id}`),t.setAttribute("title","Form"),{element:t}}static importDOM(){return{iframe:t=>t.hasAttribute("data-form")?{conversion:XN,priority:1}:null}}updateDOM(){return!1}getId(){return this.__id}getTextContent(){return`https://dudoc.io/f/${this.__id}`}decorate(t,r){const s=r.theme.embedBlock||{},o={base:s.base||"",focus:s.focus||""};return p.jsx(JN,{className:o,format:this.__format,nodeKey:this.getKey(),formID:this.__id,editor:t})}}function ug(n){return new fl(n)}const QN=x.lazy(()=>Promise.resolve().then(()=>require("./layers.kdvITuJm.js")));function qN(n){const e=n;if(e.src.startsWith("file:///"))return null;const{alt:t,src:r,width:s,height:o}=e,i=e.getAttribute("data-id"),l=e.getAttribute("height")??"inherit",a=e.getAttribute("width")??"inherit",c=r===window.location.href?"":r,u=e.style.justifyContent||"left";return{node:Gc({altText:t,height:l!=null&&l.includes("%")?l:o,src:c,width:a!=null&&a.includes("%")?a:s,id:String(i),alignment:u})}}class Hn extends qr{constructor(t,r,s,o,i,l,a,c,u,d,f,g){super(u);Z(this,"__src");Z(this,"__altText");Z(this,"__width");Z(this,"__height");Z(this,"__maxWidth");Z(this,"__showCaption");Z(this,"__caption");Z(this,"__captionsEnabled");Z(this,"__id");Z(this,"__create");Z(this,"__alignment");this.__src=t,this.__altText=r,this.__maxWidth=Number(s),this.__width=o||"inherit",this.__height=i||"inherit",this.__showCaption=l||!1,this.__caption=a||mc(),this.__captionsEnabled=c||c===void 0,this.__id=d||"0",this.__create=f||!1,this.__alignment=g||"left"}static getType(){return"image"}static clone(t){return new Hn(t.__src,t.__altText,t.__maxWidth,t.__width,t.__height,t.__showCaption,t.__caption,t.__captionsEnabled,t.__key,t.__id,t.__create,t.__alignment)}static importJSON(t){const{altText:r,height:s,width:o,maxWidth:i,caption:l,src:a,showCaption:c}=t,u=Gc({altText:r,height:s,maxWidth:i,showCaption:c,src:a,width:o,create:!1,alignment:"left"}),d=u.__caption,f=d.parseEditorState(l.editorState);return f.isEmpty()||d.setEditorState(f),u}exportDOM(){const t=document.createElement("img");t.setAttribute("src",this.__src),t.setAttribute("alt",""),t.setAttribute("data-id",this.__id),(this.__width==="auto"||typeof this.__width=="number"&&this.__width%1!==0)&&t.setAttribute("data-type","icon/image"),typeof this.__width=="number"?(t.setAttribute("width","inherit"),t.setAttribute("height","inherit")):(t.setAttribute("width",this.__width.toString()),t.setAttribute("height",this.__height.toString())),t.setAttribute("data-id",this.__id),t.style.justifyContent=this.__alignment||"left";const r=document.createElement("span");return r.className="editor-image",r.style.justifyContent=this.__alignment||"left",r.appendChild(t),{element:r}}static importDOM(){return{img:()=>({conversion:qN,priority:0})}}exportJSON(){return{altText:this.getAltText(),caption:this.__caption.toJSON(),height:this.__height==="inherit"?0:this.__height,maxWidth:this.__maxWidth,showCaption:this.__showCaption,src:this.getSrc(),type:"image",version:1,width:this.__width==="inherit"?0:this.__width}}setId(t){const r=this.getWritable();r.__id=t}setSrc(t){const r=this.getWritable();r.__src=t}setAlt(t){const r=this.getWritable();r.__altText=t}setAlignment(t){const r=this.getWritable();r.__alignment=t}setWidthAndHeight(t,r){const s=this.getWritable();s.__width=t,s.__height=r}setShowCaption(t){const r=this.getWritable();r.__showCaption=t}createDOM(t){const r=document.createElement("span"),o=t.theme.image;return r.style.justifyContent=this.__alignment||"left",o!==void 0&&(r.className=o),r}updateDOM(t,r){return this.__alignment!==t.__alignment&&(r.style.display="flex",r.style.justifyContent=this.__alignment||"left"),!1}getSrc(){return this.__src}replaceBase64(t,r){const s=this.getWritable();s.__src=t,r&&(s.__id=r)}getAltText(){return this.__altText}isInline(){return!1}isKeyboardSelectable(){return!0}setCreated(t){const r=this.getWritable();r.__create=t}decorate(){return p.jsx(QN,{src:this.__src,altText:this.__altText,width:this.__width,height:this.__height,maxWidth:this.__maxWidth,nodeKey:this.getKey(),showCaption:this.__showCaption,caption:this.__caption,id:this.__id,alignment:this.__alignment||"left",create:this.__create})}}function Gc({altText:n,height:e,maxWidth:t,captionsEnabled:r,src:s,width:o,showCaption:i,caption:l,key:a,id:c,create:u,alignment:d}){return Me(new Hn(s,n,t,o,e,i,l,r,a,c,u,d))}function dg(n){return n instanceof Hn}const $N=x.lazy(()=>Promise.resolve().then(()=>require("./layers.Cj_eKfOr.js")));function eI(n){if(n instanceof HTMLImageElement){const{alt:e,src:t,width:r,height:s}=n;return{node:pv({altText:e,height:s,src:t,width:r})}}return null}class Zc extends qr{constructor(t,r,s,o,i,l,a,c){super(c);Z(this,"__src");Z(this,"__altText");Z(this,"__width");Z(this,"__height");Z(this,"__showCaption");Z(this,"__caption");Z(this,"__position");this.__src=t,this.__altText=r,this.__width=o||"inherit",this.__height=i||"inherit",this.__showCaption=l||!1,this.__caption=a||mc(),this.__position=s}static getType(){return"inline-image"}static clone(t){return new Zc(t.__src,t.__altText,t.__position,t.__width,t.__height,t.__showCaption,t.__caption,t.__key)}static importJSON(t){const{altText:r,height:s,width:o,caption:i,src:l,showCaption:a,position:c}=t,u=pv({altText:r,height:s,position:c,showCaption:a,src:l,width:o}),d=u.__caption,f=d.parseEditorState(i.editorState);return f.isEmpty()||d.setEditorState(f),u}static importDOM(){return{img:()=>({conversion:eI,priority:0})}}exportDOM(){const t=document.createElement("img");return t.setAttribute("src",this.__src),t.setAttribute("alt",this.__altText),t.setAttribute("width",this.__width.toString()),t.setAttribute("height",this.__height.toString()),{element:t}}exportJSON(){return{altText:this.getAltText(),caption:this.__caption.toJSON(),height:this.__height==="inherit"?0:this.__height,position:this.__position,showCaption:this.__showCaption,src:this.getSrc(),type:"inline-image",version:1,width:this.__width==="inherit"?0:this.__width}}getSrc(){return this.__src}getAltText(){return this.__altText}setAltText(t){const r=this.getWritable();r.__altText=t}setWidthAndHeight(t,r){const s=this.getWritable();s.__width=t,s.__height=r}getShowCaption(){return this.__showCaption}setShowCaption(t){const r=this.getWritable();r.__showCaption=t}getPosition(){return this.__position}setPosition(t){const r=this.getWritable();r.__position=t}update(t){const r=this.getWritable(),{altText:s,showCaption:o,position:i}=t;s!==void 0&&(r.__altText=s),o!==void 0&&(r.__showCaption=o),i!==void 0&&(r.__position=i)}createDOM(t){const r=document.createElement("span"),s=`${t.theme.inlineImage} position-${this.__position}`;return s!==void 0&&(r.className=s),r}updateDOM(t,r,s){const o=this.__position;if(o!==t.__position){const i=`${s.theme.inlineImage} position-${o}`;i!==void 0&&(r.className=i)}return!1}decorate(){return p.jsx(x.Suspense,{fallback:null,children:p.jsx($N,{src:this.__src,altText:this.__altText,width:this.__width,height:this.__height,nodeKey:this.getKey(),showCaption:this.__showCaption,caption:this.__caption,position:this.__position})})}}function pv({altText:n,position:e,height:t,src:r,width:s,showCaption:o,caption:i,key:l}){return Me(new Zc(r,n,e,s,t,o,i,l))}function tI(n){return n instanceof Zc}class Jc extends pt{static getType(){return"keyword"}static clone(e){return new Jc(e.__text,e.__key)}static importJSON(e){const t=nI(e.text);return t.setFormat(e.format),t.setDetail(e.detail),t.setMode(e.mode),t.setStyle(e.style),t}exportJSON(){return{...super.exportJSON(),type:"keyword",version:1}}createDOM(e){const t=super.createDOM(e);return t.style.cursor="default",t.className="keyword",t}canInsertTextBefore(){return!1}canInsertTextAfter(){return!1}isTextEntity(){return!0}}function nI(n){return new Jc(n)}function rI(n){const e=n.style.gridTemplateColumns;return e?{node:Xc(e)}:null}class an extends De{constructor(t,r){super(r);Z(this,"__templateColumns");this.__templateColumns=t}static getType(){return"layout-container"}static clone(t){return new an(t.__templateColumns,t.__key)}createDOM(t){const r=document.createElement("div");return r.style.gridTemplateColumns=this.__templateColumns,typeof t.theme.layoutContainer=="string"&&_e(r,t.theme.layoutContainer),r}exportDOM(){const t=document.createElement("div");return t.style.gridTemplateColumns=this.__templateColumns,t.setAttribute("data-lexical-layout-container","true"),t.classList.add("dsd__theme__layoutContainer"),{element:t}}updateDOM(t,r){return t.__templateColumns!==this.__templateColumns&&(r.style.gridTemplateColumns=this.__templateColumns),!1}static importDOM(){return{div:t=>t.hasAttribute("data-lexical-layout-container")?{conversion:rI,priority:2}:null}}static importJSON(t){return Xc(t.templateColumns)}isShadowRoot(){return!0}canBeEmpty(){return!1}exportJSON(){return{...super.exportJSON(),templateColumns:this.__templateColumns,type:"layout-container",version:1}}getTemplateColumns(){return this.getLatest().__templateColumns}setTemplateColumns(t){this.getWritable().__templateColumns=t}}function Xc(n){return new an(n)}function mv(n){return n instanceof an}function sI(n){return{node:yn()}}class cn extends De{static getType(){return"layout-divider"}static clone(e){return new cn(e.__key)}createDOM(e){const t=document.createElement("div");return typeof e.theme.layoutDivider=="string"&&_e(t,e.theme.layoutDivider),t.setAttribute("contenteditable","false"),t}updateDOM(){return!1}static importDOM(){return{div:e=>e.className!=="dsd__theme__layoutDivider"?null:{conversion:sI,priority:2}}}static importJSON(){return yn()}isShadowRoot(){return!0}exportJSON(){return{...super.exportJSON(),type:"layout-divider",version:1}}}function yn(){return new cn}function oI(n){return n instanceof cn}function iI(n){const e=n.style.backgroundColor||"#ffffff";return{node:Mn(e)}}class Vt extends De{constructor(t,r){super(r);Z(this,"__backgroundColor");this.__backgroundColor=t}static getType(){return"layout-item"}static clone(t){return new Vt(t.__backgroundColor,t.__key)}createDOM(t){const r=document.createElement("div");return r.style.backgroundColor=this.__backgroundColor,typeof t.theme.layoutItem=="string"&&_e(r,t.theme.layoutItem),r}exportDOM(){const t=document.createElement("div");return t.style.backgroundColor=this.__backgroundColor,t.classList.add("dsd__theme__layoutItem"),{element:t}}updateDOM(t,r){return t.__backgroundColor!==this.__backgroundColor&&(r.style.backgroundColor=this.__backgroundColor),!1}static importDOM(){return{div:t=>t.className!=="dsd__theme__layoutItem"?null:{conversion:iI,priority:2}}}static importJSON(){return Mn()}isShadowRoot(){return!1}setLayoutBackground(t){this.getWritable().__backgroundColor=t}exportJSON(){return{...super.exportJSON(),type:"layout-item",backgroundColor:this.__backgroundColor,version:1}}}function Mn(n="#fffff"){return new Vt(n)}function Li(n){return n instanceof Vt}function lI(n){const e=n.textContent;return e!==null?{node:fg(e)}:null}const aI="background-color: rgba(24, 119, 232, 0.2)";class Qc extends pt{constructor(t,r,s){super(r??t,s);Z(this,"__mention");this.__mention=t}static getType(){return"mention"}static clone(t){return new Qc(t.__mention,t.__text,t.__key)}static importJSON(t){const r=fg(t.mentionName);return r.setTextContent(t.text),r.setFormat(t.format),r.setDetail(t.detail),r.setMode(t.mode),r.setStyle(t.style),r}exportJSON(){return{...super.exportJSON(),mentionName:this.__mention,type:"mention",version:1}}createDOM(t){const r=super.createDOM(t);return r.style.cssText=aI,r.className="mention",r}exportDOM(){const t=document.createElement("span");return t.setAttribute("data-lexical-mention","true"),t.textContent=this.__text,{element:t}}static importDOM(){return{span:t=>t.hasAttribute("data-lexical-mention")?{conversion:lI,priority:1}:null}}isTextEntity(){return!0}canInsertTextBefore(){return!1}canInsertTextAfter(){return!1}}function fg(n){const e=new Qc(n);return e.setMode("segmented").toggleDirectionless(),Me(e)}function cI({nodeKey:n}){const[e]=ie(),[t,r,s]=Tc(n),o=x.useCallback(i=>{if(i.preventDefault(),t&&st(R())){const l=ue(n);if(dI(l))return l.remove(),!0}return!1},[t,n]);return x.useEffect(()=>ve(e.registerCommand(Ds,i=>{const l=e.getElementByKey(n);return i.target===l?(i.shiftKey||s(),r(!t),!0):!1},le),e.registerCommand(Zr,o,le),e.registerCommand(pr,o,le)),[s,e,t,n,o,r]),x.useEffect(()=>{const i=e.getElementByKey(n);i!==null&&(i.className=t?"selected":"")},[e,t,n]),null}class hl extends qr{static getType(){return"page-break"}static clone(e){return new hl(e.__key)}static importJSON(){return Av()}static importDOM(){return{figure:e=>e.getAttribute("type")!==this.getType()?null:{conversion:uI,priority:xr}}}exportJSON(){return{type:this.getType(),version:1}}createDOM(){const e=document.createElement("figure");return e.style.pageBreakAfter="always",e.setAttribute("type",this.getType()),e}getTextContent(){return`
70
- `}isInline(){return!1}updateDOM(){return!1}decorate(){return p.jsx(cI,{nodeKey:this.__key})}}function uI(){return{node:Av()}}function Av(){return new hl}function dI(n){return n instanceof hl}const OA=x.lazy(()=>Promise.resolve().then(()=>require("./layers.D3koK7fX.js")));function fI(n){const e=n.getAttribute("data-src"),t=n.getAttribute("data-json");return{node:hg(e||"",t||"",!1)}}class Oo extends js{constructor(t,r,s,o,i){super(o,i);Z(this,"__src");Z(this,"__json");Z(this,"__create");this.__src=t,this.__json=r,this.__create=s}static getType(){return"swagger"}static clone(t){return new Oo(t.__src,t.__json,!1,t.__format,t.__key)}static importJSON(t){const r=hg(t.src,t.json);return r.setFormat(t.format),r}exportJSON(){return{...super.exportJSON(),src:this.__src,json:this.__json,create:this.__create,type:"swagger",version:1}}createDOM(){const t=document.createElement("span");return t.className="editor-swagger",t}setSrc(t){const r=this.getWritable();r.__src=t}setJSON(t){const r=this.getWritable();r.__json=t}updateDOM(){return!1}getSrc(){return this.__src}getJSON(){return this.__json}exportDOM(){const t=document.createElement("span");return t.classList.add("editor-swagger"),t.setAttribute("data-src",this.getSrc()),t.setAttribute("data-json",this.getJSON()),{element:t}}static importDOM(){return{span:t=>t.classList.contains("editor-swagger")?{conversion:fI,priority:1}:null}}decorate(t,r){const o={base:(r.theme.embedBlock||{}).base||"",focus:""};return OA?p.jsx(OA,{nodeKey:this.getKey(),format:this.__format,className:o,create:this.__create,inputJSON:this.getJSON(),inputUrl:this.getSrc(),editor:t}):p.jsx("div",{})}}function hg(n,e,t){return new Oo(n,e,t)}function hI(n){return n instanceof Oo}function yv(n){const e=n.match(/^.*(youtu\.be\/|v\/|u\/\w\/|embed\/|watch\?v=|&v=)([^#&?]*).*/);if(e&&e[2].length===11)return{platform:"youtube",id:e[2]};const t=n.match(/vk\.com\/video(?:_ext\.php\?oid=-?(\d+)&id=(\d+)|-(\d+)_(\d+))/);if(t){const s=t[1]||t[3],o=t[2]||t[4];return{platform:"vk",id:`${s}-${o}`}}const r=n.match(/rutube\.ru\/(?:play\/embed|video)\/([a-zA-Z0-9]+)/);return r?{platform:"rutube",id:r[1]}:{platform:"unknown",id:null}}function za(n,e){let t="";switch(n){case"youtube":t=`https://www.youtube-nocookie.com/embed/${e}`;break;case"vk":const r=e.split("-");t=`https://vk.com/video_ext.php?oid=-${r[0]}&id=${r[1]}`;break;case"rutube":t=`https://rutube.ru/play/embed/${e}`;break}return t}const bv=({editor:n,nodeKey:e,opened:t,setOpened:r,t:s,setShown:o,isShown:i})=>{const l=a=>{e&&n.update(()=>{const c=ue(e);(c instanceof Hn||c instanceof Ps)&&(c.setAlignment(a),c.getPreviousSibling()?c.selectPrevious():c.selectStart(),o&&o(!1))})};return p.jsxs(E.Menu,{opened:t,shadow:"md",onChange:r,transitionProps:yr,children:[p.jsx(E.Menu.Target,{children:p.jsx(E.Tooltip,{label:s("editor.toolbar.align"),disabled:!i,children:p.jsx(E.ActionIcon,{size:24,variant:"default",color:"gray","aria-label":"Settings",children:p.jsx($,{size:"14",name:"align-justify"})})})}),p.jsxs(E.Menu.Dropdown,{p:0,py:3,children:[p.jsx(E.Menu.Item,{onClick:()=>l("left"),leftSection:p.jsx($,{size:"16",name:"align-left"}),children:s("editor.toolbar.left")}),p.jsx(E.Menu.Item,{onClick:()=>l("center"),leftSection:p.jsx($,{size:"16",name:"align-center"}),children:s("editor.toolbar.center")}),p.jsx(E.Menu.Item,{onClick:()=>l("right"),leftSection:p.jsx($,{size:"16",name:"align-right"}),children:s("editor.toolbar.right")})]})]})};function gI({className:n,format:e,platform:t,videoID:r,editor:s,nodeKey:o,create:i,width:l,height:a,alignment:c}){const{t:u}=We.useTranslation(),[d,f]=x.useState(""),[g,h]=x.useState(!1),[m,A]=x.useState(!1),[b,y]=x.useState(!1);x.useEffect(()=>{i&&A(!0)},[i]),x.useEffect(()=>{const C=document.documentElement;ag(m,C)},[m]);const w=C=>{C.preventDefault();const{platform:_,id:k}=yv(d);if(!k){h(!0);return}s.update(()=>{const T=ue(o);if(!T)return;RA(T)&&(A(!1),T.setPlatform(_),T.setId(k));const D=T.getNextSibling();D&&Ie(D.selectNext())})},v=(C,_)=>{s.update(()=>{Ie(null);const k=ue(o);return RA(k)&&k.setWidthAndHeight(C,_),!0})},S=C=>{C.stopPropagation(),s.update(()=>{const _=ue(o);return _&&_.remove(),!1})};return r?p.jsx(lg,{editor:s,isIcon:!1,isEmbed:!0,width:l,height:a,onResizeEnd:v,alignment:c,children:p.jsx("div",{className:"media-wrapper",children:p.jsxs(bo,{className:n,format:e,nodeKey:o,children:[p.jsxs("div",{className:"media-actions",children:[p.jsx(bv,{opened:b,setOpened:y,t:u,editor:s,nodeKey:o}),p.jsx(E.Tooltip,{label:"Удалить",children:p.jsx(E.ActionIcon,{color:"gray","aria-label":"Settings",className:"media-action",variant:"default",size:24,onClick:S,children:p.jsx($,{name:"trash",size:"14"})})})]}),p.jsx("iframe",{src:za(t,r),className:"editor-video",width:"100%",height:"100%",frameBorder:"0",allow:"accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture",allowFullScreen:!0,title:"YouTube video"})]})})}):p.jsxs(E.Popover,{width:400,position:"bottom",shadow:"md",opened:m,onChange:A,defaultOpened:!0,withinPortal:!0,trapFocus:!0,children:[p.jsx(E.Popover.Target,{children:p.jsx(E.Flex,{w:"100%",children:p.jsx(bo,{className:n,format:e,nodeKey:o,children:p.jsx(Vc,{title:u("editor.video.add_video"),icon:"youtube",onClick:()=>A(C=>!C)})})})}),p.jsx(E.Popover.Dropdown,{"aria-hidden":!m,tabIndex:m?0:-1,children:p.jsx("form",{onSubmit:w,children:p.jsxs(E.Stack,{gap:16,children:[p.jsxs(E.Box,{children:[p.jsx(E.TextInput,{maxLength:500,placeholder:"https://www.youtube.com/watch?v=jNQXAC9IVRw","data-autofocus":!0,type:"url",value:d,onChange:C=>f(C.currentTarget.value)}),g&&p.jsx(E.Text,{size:"xs",mt:8,c:"red",children:u("editor.validation.link")})]}),p.jsx(E.Center,{children:p.jsx(E.Button,{w:"100%",type:"submit",disabled:!d,children:u("editor.video.insert")})}),p.jsx(E.Center,{children:p.jsxs(E.Text,{display:"block",c:"dimmed",size:"sm",children:[u("editor.video.worksWith")," Youtube, Rutube, VK Videos"]})})]})})})]})}function pI(n){const e=n.getAttribute("data-lexical-platform"),t=n.getAttribute("data-lexical-videoid"),r=parseFloat(n.getAttribute("width")??"100%"),s=parseFloat(n.getAttribute("height")??"100%"),o=n.style.justifyContent||"left";return e&&typeof t=="string"?{node:gg(za(e,t),r,s,o)}:{node:null}}class Ps extends js{constructor(t,r,s,o,i,l,a="left",c){super(s,l);Z(this,"__platform");Z(this,"__id");Z(this,"__create");Z(this,"__width");Z(this,"__height");Z(this,"__alignment");this.__platform=t,this.__id=r,this.__create=c||!1,this.__width=o||560,this.__height=i||315,this.__height=i||315,this.__alignment=a||"left"}static getType(){return"video"}static clone(t){return new Ps(t.__platform,t.__id,t.__format,t.__width,t.__height,t.__key,t.__alignment)}static importJSON(t){const r=gg(t.videoID,t.width,t.height);return r.setFormat(t.format),r}exportJSON(){return{...super.exportJSON(),type:"video",version:1,platform:this.__platform,videoID:this.__id,width:this.__width,height:this.__height}}static importDOM(){return{iframe:t=>{const r=t.getAttribute("data-lexical-platform"),s=t.getAttribute("data-lexical-videoid");return r&&typeof s=="string"?{conversion:pI,priority:1}:null}}}createDOM(){const t=document.createElement("div");return t.className="video-container",t.style.justifyContent=this.__alignment||"left",t}updateDOM(t,r){return this.__alignment!==t.__alignment&&(r.style.justifyContent=this.__alignment||"left"),!1}exportDOM(){const t=document.createElement("iframe");t.setAttribute("src",za(this.__platform,this.__id)),t.setAttribute("data-lexical-platform",this.__platform),t.setAttribute("data-lexical-videoid",this.__id),t.setAttribute("width",this.__width.toString()+"%"),t.setAttribute("height",this.__height.toString()+"%"),t.setAttribute("frameborder","0"),t.setAttribute("allowfullscreen","true"),t.setAttribute("style","aspect-ratio: 128 / 72 ");const r=document.createElement("span");return r.className="video-container",r.style.justifyContent=this.__alignment||"left",t.style.justifyContent=this.__alignment||"left",r.appendChild(t),{element:r}}decorate(t,r){const o={base:(r.theme.embedBlock||{}).base||"",focus:""};return p.jsx(gI,{editor:t,nodeKey:this.getKey(),format:this.__format,className:o,platform:this.__platform,videoID:this.__id,width:this.__width,height:this.__height,create:this.__create,alignment:this.__alignment})}setPlatform(t){const r=this.getWritable();r.__platform=t}setId(t){const r=this.getWritable();r.__id=t}setCreated(t){const r=this.getWritable();r.__create=t}getId(){return this.__id}setAlignment(t){const r=this.getWritable();r.__alignment=t}getTextContent(){return za(this.__platform,this.__id)}setWidthAndHeight(t,r){const s=this.getWritable();s.__width=t,s.__height=r}}function gg(n,e,t,r,s){const{platform:o,id:i}=yv(n);return new Ps(o,i||"",void 0,e,t,void 0,r,s)}function RA(n){return n instanceof Ps}const Vr=ze();function mI(){const[n]=ie(),{fetchUploadImage:e,maxImageSize:t}=x.useContext(Gt),r=(o,i,l)=>{n.update(()=>{u0(Hn).forEach(c=>{c.getSrc()===o&&c.replaceBase64(i,l)})})},s=async o=>{const i=o.filter(l=>l.type.includes("image/")&&l.size<t*1048576);for(let l=0;l<i.length;l++){if(!e)return;const a=i[l],c=new FileReader;let u="";c.onload=d=>{var f;u=(f=d.target)==null?void 0:f.result,n.dispatchCommand(Vr,{src:u,altText:""})},c.readAsDataURL(a),e(a,(d,f)=>{r(u,d,f)})}};return x.useEffect(()=>{if(!n.hasNodes([Hn]))throw new Error("ImagesPlugin: ImageNode not registered on editor");return ve(n.registerCommand(Vr,o=>{var i;if(o!==null){const l=Gc(o),a=Ke();if(a&&a instanceof _n&&a.__text&&a.getParent()instanceof mr)return a.getParent().insertAfter(l),!0;if(a&&a.getParent())return a instanceof cn?((i=a.getPreviousSibling())==null||i.replace(l),!0):(a==null||a.replace(l),!0);if(!a)return fe().append(l),!0}return!1},pe),n.registerCommand(Ns,o=>{if(o.inputType==="insertFromPaste"&&o.dataTransfer){const i=Object.values(o.dataTransfer.files);i&&i.length&&s(i)}return!1},le),n.registerCommand(If,o=>{var i;if(o.dataTransfer){const l=Object.values(o.dataTransfer.files);if(l&&l.length)return o.preventDefault(),o.target instanceof HTMLElement&&((i=he(o.target))==null||i.selectEnd(),s(l)),!0}return!1},xr))},[n]),null}const AI="data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7",yI=document.createElement("img");yI.src=AI;const pg=({children:n,...e})=>{const{imagePickerSettings:t}=x.useContext(Gt),{t:r}=We.useTranslation("ui"),{giphyToken:s,unsplashClientId:o,link:i,download:l,maxUploadFiles:a}=t,c=x.useMemo(()=>[{key:"gallery",enabled:!0},{key:"giphy",enabled:s},{key:"unsplash",enabled:o},{key:"link",enabled:i===void 0?!0:i},{key:"upload",enabled:l===void 0?!0:l}].filter(d=>d.enabled).map(d=>d.key),[t]);return p.jsx(kn.ImagePicker,{showTabs:c,dropZoneProps:{maxFiles:a||1},giphyToken:s,unsplashClientId:o,locales:{gallery:r("changeCover.gallery"),link:r("changeCover.link"),search:r("changeCover.searchImage"),upload:r("changeCover.upload"),uploadFile:r("changeCover.uploadFile"),change:r("changeCover.change"),remove:r("remove"),error:r("errorMessage"),dragOrClickToChoose:r("changeCover.dragOrClickToChoose"),maxFileSize:r("changeCover.maxFileSize"),pasteLink:r("changeCover.pasteLink"),submitLink:r("changeCover.submitLink"),worksWithAnyImage:r("changeCover.worksWithAnyImage"),noImages:r("changeCover.noResult"),errors:{typeIsNotAllowed:"This file type is not supported",shouldNotExceed:"File size should not exceed 5 MB.",doNotUploadMoreThanSingleFile:"Please upload no more than one file.",invalidLink:r("changeCover.invalidLink")}},...e,children:n})},Wo=n=>n?3:2;function bI(){const[n]=ie(),[e,t]=x.useState(n),[r,s]=x.useState(!1),[o,i]=x.useState(!1),[l,a]=x.useState(!1),[c,u]=x.useState(!1),[d,f]=x.useState(!1),[g,h]=x.useState(!1),[m,A]=x.useState(!1),[b,y]=x.useState(()=>n.isEditable()),w=fi.useMediaQuery("(max-width: 340px)"),{fetchUploadImage:v}=x.useContext(Gt),{t:S}=We.useTranslation(),C=x.useCallback(()=>{const k=R();if(M(k)){const T=k.anchor.getNode();let D=T.getKey()==="root"?T:ae(T,I=>{const P=I.getParent();return P!==null&&At(P)});D===null&&(D=T.getTopLevelElementOrThrow()),a(k.hasFormat("bold")),u(k.hasFormat("italic")),f(k.hasFormat("underline")),h(k.hasFormat("code"));const L=xs(k),N=L.getParent();it(N)||it(L)?i(!0):i(!1),it(N)&&ae(L,I=>O(I)&&!I.isInline())}},[e]);x.useEffect(()=>{const k=ve(n.registerCommand(Qt,(T,D)=>(C(),t(D),!1),dt),n.registerCommand(Jr,()=>(A(!0),!1),le),n.registerCommand(hi,()=>(setTimeout(()=>{A(!1),n.blur()}),!1),le));return()=>{k()}},[n,C]),x.useEffect(()=>ve(n.registerEditableListener(k=>{y(k)}),e.registerUpdateListener(({editorState:k})=>{k.read(()=>{C()})})),[C,e,n]);const _=x.useCallback(()=>{n.dispatchCommand(Pc,"create")},[n,o]);return p.jsx("div",{className:`toolbar-wrapper toolbar-wrapper-${m?"focus":"blur"}`,children:p.jsx(E.Box,{h:32,mx:6,className:"toolbar",children:p.jsxs(E.Group,{w:"100%",justify:"space-between",gap:0,wrap:"nowrap",align:"center",children:[p.jsxs(E.Group,{gap:w?3:4,wrap:"nowrap",children:[p.jsx(E.Tooltip,{label:S("editor.toolbar.bold"),children:p.jsx(E.ActionIcon,{onClick:()=>{e.dispatchCommand(Ue,"bold")},size:"sm",radius:"sm",variant:"subtle",color:"dark","aria-label":"Settings",children:p.jsx($,{size:16,stroke:Wo(l),name:"bold"})})}),p.jsx(E.Tooltip,{label:S("editor.toolbar.italic"),children:p.jsx(E.ActionIcon,{onClick:()=>{e.dispatchCommand(Ue,"italic")},variant:"subtle",color:"dark","aria-label":"Settings",size:"sm",radius:"sm",children:p.jsx($,{size:16,stroke:Wo(c),name:"italic"})})}),p.jsx(E.Tooltip,{label:S("editor.toolbar.underline"),children:p.jsx(E.ActionIcon,{onClick:()=>{e.dispatchCommand(Ue,"underline")},variant:"subtle",color:"dark","aria-label":"Settings",size:"sm",radius:"sm",children:p.jsx($,{size:16,stroke:Wo(d),name:"underline"})})}),p.jsx(E.Tooltip,{label:S("editor.toolbar.code"),children:p.jsx(E.ActionIcon,{onClick:()=>{e.update(()=>{const k=R();if(M(k))if(k.isCollapsed())Yo(k,()=>wn());else{const T=k.getTextContent(),D=wn();k.insertNodes([D]),k.insertRawText(T)}})},variant:"subtle",color:"dark","aria-label":"Settings",size:"sm",radius:"sm",children:p.jsx($,{size:16,stroke:Wo(g),name:"code"})})}),p.jsx(E.Tooltip,{label:S("editor.toolbar.link"),children:p.jsx(E.ActionIcon,{onClick:_,variant:"subtle",color:"dark","aria-label":"Settings",size:"sm",radius:"sm",children:p.jsx($,{size:16,stroke:Wo(o),name:"link"})})}),p.jsx(E.Divider,{my:4,orientation:"vertical"}),p.jsx(E.Tooltip,{label:S("editor.menu.lists.numberList.name"),children:p.jsx(E.ActionIcon,{onClick:()=>{e.dispatchCommand(Mc,void 0)},variant:"subtle",color:"dark","aria-label":"Settings",size:"sm",radius:"sm",children:p.jsx($,{size:16,name:"number"})})}),p.jsx(E.Tooltip,{label:S("editor.menu.lists.bulletList.name"),children:p.jsx(E.ActionIcon,{onClick:()=>{e.dispatchCommand(jh,void 0)},variant:"subtle",color:"dark","aria-label":"Settings",size:"sm",radius:"sm",children:p.jsx($,{size:16,name:"list"})})}),p.jsx(E.Tooltip,{label:S("editor.menu.lists.checkList.name"),children:p.jsx(E.ActionIcon,{onClick:()=>{e.dispatchCommand(Ph,void 0)},variant:"subtle",color:"dark","aria-label":"Settings",size:"sm",radius:"sm",children:p.jsx($,{size:16,name:"check"})})}),p.jsx(E.Divider,{my:4,orientation:"vertical"}),v&&p.jsx(p.Fragment,{children:p.jsx(pg,{popoverProps:{position:"bottom",opened:r,onChange:s},onUpload:k=>{!v||!k.length||(s(!1),k.forEach(T=>{v(T,(D,L)=>{n.dispatchCommand(Vr,{altText:"",src:D,id:L})})}))},onChange:k=>{s(!1),n.dispatchCommand(Vr,{altText:"",src:k})},children:p.jsx(E.Tooltip,{label:S("editor.image.add_photo"),children:p.jsx(E.ActionIcon,{size:"sm",radius:"sm",variant:"subtle",color:"dark","aria-label":"Settings",onClick:()=>s(!0),children:p.jsx($,{size:16,name:"photo"})})})})})]}),p.jsx(E.Group,{gap:4,children:p.jsx(E.Tooltip,{label:S("editor.close"),children:p.jsx(E.ActionIcon,{onClick:()=>{n.dispatchCommand(hi,void 0)},variant:"subtle",color:"dark","aria-label":"Settings",size:"sm",radius:"sm",children:p.jsx($,{size:16,name:"close"})})})})]})})})}const wv=typeof window<"u"&&window.document!==void 0&&window.document.createElement!==void 0?x.useLayoutEffect:x.useEffect;function wI({editor:n,ariaActiveDescendant:e,ariaAutoComplete:t,ariaControls:r,ariaDescribedBy:s,ariaErrorMessage:o,ariaExpanded:i,ariaInvalid:l,ariaLabel:a,ariaLabelledBy:c,ariaMultiline:u,ariaOwns:d,ariaRequired:f,autoCapitalize:g,className:h,id:m,role:A="textbox",spellCheck:b=!0,style:y,tabIndex:w,"data-testid":v,...S},C){const[_,k]=x.useState(n.isEditable()),T=x.useCallback(L=>{L&&L.ownerDocument&&L.ownerDocument.defaultView?n.setRootElement(L):n.setRootElement(null)},[n]),D=x.useMemo(()=>function(...L){return N=>{L.forEach(I=>{typeof I=="function"?I(N):I!=null&&(I.current=N)})}}(C,T),[T,C]);return wv(()=>(k(n.isEditable()),n.registerEditableListener(L=>{k(L)})),[n]),p.jsx("div",{"aria-activedescendant":_?e:void 0,"aria-autocomplete":_?t:"none","aria-controls":_?r:void 0,"aria-describedby":s,...o!=null?{"aria-errormessage":o}:{},"aria-expanded":_&&A==="combobox"?!!i:void 0,...l!=null?{"aria-invalid":l}:{},"aria-label":a,"aria-labelledby":c,"aria-multiline":u,"aria-owns":_?d:void 0,"aria-readonly":!_||void 0,"aria-required":f,autoCapitalize:g,className:h,contentEditable:_,"data-testid":v,id:m,ref:D,role:_?A:void 0,spellCheck:b,style:y,tabIndex:w,...S})}const CI=x.forwardRef(wI);function jA(n){return n.getEditorState().read(SC(n.isComposing()))}const vI=x.forwardRef(xI);function xI(n,e){const{placeholder:t,...r}=n,[s]=ie();return p.jsxs(p.Fragment,{children:[p.jsx(CI,{editor:s,...r,ref:e}),t!=null&&p.jsx(SI,{editor:s,content:t})]})}function SI({content:n,editor:e}){const t=function(i){const[l,a]=x.useState(()=>jA(i));return wv(()=>{function c(){const u=jA(i);a(u)}return c(),ve(i.registerUpdateListener(()=>{c()}),i.registerEditableListener(()=>{c()}))},[i]),l}(e),[r,s]=x.useState(e.isEditable());if(x.useLayoutEffect(()=>(s(e.isEditable()),e.registerEditableListener(i=>{s(i)})),[e]),!t)return null;let o=null;return typeof n=="function"?o=n(r):n!==null&&(o=n),o===null?null:p.jsx("div",{"aria-hidden":!0,children:o})}function gl({className:n}){return p.jsx(vI,{contentEditable:!1,className:n||"ContentEditable__root"})}function kI(n){const{onRef:e,floatingAnchorElem:t,isSmallWidthViewport:r,maxHeight:s,showTextToolbar:o}=n,{settings:{isRichText:i,showTreeView:l}}=To(),[a]=ie();x.useEffect(()=>{a.registerCommand(Ns,u=>{try{const d=u.clipboardData||window.clipboardData;if(d.getData("application/x-lexical-editor")){const g=d.getData("text/html"),m=new DOMParser().parseFromString(g,"text/html"),A=bc(a,m);return Xi(A),!0}else return!1}catch{}return!1},le)},[a]);let c={};return s?c={maxHeight:s}:c={overflowY:"hidden"},p.jsxs(p.Fragment,{children:[p.jsx(bI,{}),p.jsxs("div",{className:`editor-container ${l?"tree-view":""} ${i?"":"plain-text"}`,children:[p.jsx(Ti,{}),p.jsx(Z_,{}),p.jsx(Lc,{}),p.jsx(Hh,{}),p.jsx(Wh,{isLoading:!0}),p.jsx(Gh,{}),p.jsx(cl,{contentEditable:p.jsx("div",{className:"editor-scroller",style:c,children:p.jsx("div",{className:"editor",ref:e,children:p.jsx(gl,{})})}),ErrorBoundary:ol}),p.jsx(Bc,{}),p.jsx(ul,{}),p.jsx(jc,{}),p.jsx(_c,{}),p.jsx(Dc,{}),p.jsx(zc,{}),p.jsx(Vh,{maxDepth:7}),p.jsx(QC,{}),t&&!r&&p.jsx(Fc,{anchorElem:t,showTextToolbar:o}),t&&p.jsx(Rc,{anchorElem:t})]})]})}function EI(n,e,t){const[r]=ie();x.useEffect(()=>ve(...lT(r,n,e,t)),[t,r,n,e])}const _I=new RegExp(function(){const{alpha:n,alphanumeric:e,hashChars:t}=function(){const s=String.fromCharCode,o="A-Za-zªµºÀ-ÖØ-öø-Ɂɐ-ˁˆ-ˑˠ-ˤˮͺΆΈ-ΊΌΎ-ΡΣ-ώϐ-ϵϷ-ҁҊ-ӎӐ-ӹԀ-ԏԱ-Ֆՙա-ևא-תװ-ײء-غـ-يٮ-ٯٱ-ۓەۥ-ۦۮ-ۯۺ-ۼۿܐܒ-ܯݍ-ݭހ-ޥޱऄ-हऽॐक़-ॡॽঅ-ঌএ-ঐও-নপ-রলশ-হঽৎড়-ঢ়য়-ৡৰ-ৱਅ-ਊਏ-ਐਓ-ਨਪ-ਰਲ-ਲ਼ਵ-ਸ਼ਸ-ਹਖ਼-ੜਫ਼ੲ-ੴઅ-ઍએ-ઑઓ-નપ-રલ-ળવ-હઽૐૠ-ૡଅ-ଌଏ-ଐଓ-ନପ-ରଲ-ଳଵ-ହଽଡ଼-ଢ଼ୟ-ୡୱஃஅ-ஊஎ-ஐஒ-கங-சஜஞ-டண-தந-பம-ஹఅ-ఌఎ-ఐఒ-నప-ళవ-హౠ-ౡಅ-ಌಎ-ಐಒ-ನಪ-ಳವ-ಹಽೞೠ-ೡഅ-ഌഎ-ഐഒ-നപ-ഹൠ-ൡඅ-ඖක-නඳ-රලව-ෆก-ะา-ำเ-ๆກ-ຂຄງ-ຈຊຍດ-ທນ-ຟມ-ຣລວສ-ຫອ-ະາ-ຳຽເ-ໄໆໜ-ໝༀཀ-ཇཉ-ཪྈ-ྋက-အဣ-ဧဩ-ဪၐ-ၕႠ-Ⴥა-ჺჼᄀ-ᅙᅟ-ᆢᆨ-ᇹሀ-ቈቊ-ቍቐ-ቖቘቚ-ቝበ-ኈኊ-ኍነ-ኰኲ-ኵኸ-ኾዀዂ-ዅወ-ዖዘ-ጐጒ-ጕጘ-ፚᎀ-ᎏᎠ-Ᏼᐁ-ᙬᙯ-ᙶᚁ-ᚚᚠ-ᛪᜀ-ᜌᜎ-ᜑᜠ-ᜱᝀ-ᝑᝠ-ᝬᝮ-ᝰក-ឳៗៜᠠ-ᡷᢀ-ᢨᤀ-ᤜᥐ-ᥭᥰ-ᥴᦀ-ᦩᧁ-ᧇᨀ-ᨖᴀ-ᶿḀ-ẛẠ-ỹἀ-ἕἘ-Ἕἠ-ὅὈ-Ὅὐ-ὗὙὛὝὟ-ώᾀ-ᾴᾶ-ᾼιῂ-ῄῆ-ῌῐ-ΐῖ-Ίῠ-Ῥῲ-ῴῶ-ῼⁱⁿₐ-ₔℂℇℊ-ℓℕℙ-ℝℤΩℨK-ℭℯ-ℱℳ-ℹℼ-ℿⅅ-ⅉⰀ-Ⱞⰰ-ⱞⲀ-ⳤⴀ-ⴥⴰ-ⵥⵯⶀ-ⶖⶠ-ⶦⶨ-ⶮⶰ-ⶶⶸ-ⶾⷀ-ⷆⷈ-ⷎⷐ-ⷖⷘ-ⷞ々-〆〱-〵〻-〼ぁ-ゖゝ-ゟァ-ヺー-ヿㄅ-ㄬㄱ-ㆎㆠ-ㆷㇰ-ㇿ㐀-䶵一-龻ꀀ-ꒌꠀ-ꠁꠃ-ꠅꠇ-ꠊꠌ-ꠢ가-힣豈-鶴侮-頻並-龎ff-stﬓ-ﬗיִײַ-ﬨשׁ-זּטּ-לּמּנּ-סּףּ-פּצּ-ﮱﯓ-ﴽﵐ-ﶏﶒ-ﷇﷰ-ﷻﹰ-ﹴﹶ-ﻼA-Za-zヲ-하-ᅦᅧ-ᅬᅭ-ᅲᅳ-ᅵ̀-ͯ҃-֑҆-ֹֻ-ֽֿׁ-ׂׄ-ׇׅؐ-ًؕ-ٰٞۖ-ۜ۟-ۤۧ-۪ۨ-ܑۭܰ-݊ަ-ްँ-ः़ा-्॑-॔ॢ-ॣঁ-ঃ়া-ৄে-ৈো-্ৗৢ-ৣਁ-ਃ਼ਾ-ੂੇ-ੈੋ-੍ੰ-ੱઁ-ઃ઼ા-ૅે-ૉો-્ૢ-ૣଁ-ଃ଼ା-ୃେ-ୈୋ-୍ୖ-ୗஂா-ூெ-ைொ-்ௗఁ-ఃా-ౄె-ైొ-్ౕ-ౖಂ-ಃ಼ಾ-ೄೆ-ೈೊ-್ೕ-ೖം-ഃാ-ൃെ-ൈൊ-്ൗං-ඃ්ා-ුූෘ-ෟෲ-ෳัิ-ฺ็-๎ັິ-ູົ-ຼ່-ໍ༘-༹༙༵༷༾-༿ཱ-྄྆-྇ྐ-ྗྙ-ྼ࿆ာ-ဲံ-္ၖ-ၙ፟ᜒ-᜔ᜲ-᜴ᝒ-ᝓᝲ-ᝳា-៓៝᠋-᠍ᢩᤠ-ᤫᤰ-᤻ᦰ-ᧀᧈ-ᧉᨗ-ᨛ᷀-᷃⃐-⃥⃜⃡-⃫〪-゙〯-゚ꠂ꠆ꠋꠣ-ꠧﬞ︀-️︠-︣À-ÖØ-öø-ÿĀ-ɏɓ-ɔɖ-ɗəɛɣɨɯɲʉʋʻ̀-ͯḀ-ỿЀ-ӿԀ-ԧⷠ-ⷿꙀ-֑ꚟ-ֿׁ-ׂׄ-ׇׅא-תװ-״﬒-ﬨשׁ-זּטּ-לּמּנּ-סּףּ-פּצּ-ﭏؐ-ؚؠ-ٟٮ-ۓە-ۜ۞-۪ۨ-ۯۺ-ۼۿݐ-ݿࢠࢢ-ࢬࣤ-ࣾﭐ-ﮱﯓ-ﴽﵐ-ﶏﶒ-ﷇﷰ-ﷻﹰ-ﹴﹶ-ﻼ‌-‌ก-ฺเ-๎ᄀ-ᇿ㄰-ㆅꥠ-꥿가-힯ힰ-퟿ᄀ-ᅵァ-ヺー-ヾヲ-゚0-9A-Za-zぁ-ゖ゙-ゞ㐀-䶿一-鿿"+s(173824)+"-"+s(177983)+s(177984)+"-"+s(178207)+s(194560)+"-"+s(195103)+"〃々〻";return{alpha:o,alphanumeric:o+"0-9٠-٩۰-۹०-९০-৯੦-੯૦-૯୦-୯௦-௯౦-౯೦-೯൦-൯๐-๙໐-໙༠-༩၀-၉០-៩᠐-᠙᥆-᥏᧐-᧙0-9_",hashChars:"#\\uFF03"}}(),r="["+e+"]";return"("+("^|$|[^&/"+e+"]")+")("+("["+t+"]")+")("+r+"*"+("["+n+"]")+r+"*)"}(),"i");function mg(){const[n]=ie();x.useEffect(()=>{if(!n.hasNodes([Fa]))throw new Error("HashtagPlugin: HashtagNode not registered on editor")},[n]);const e=x.useCallback(r=>$C(r.getTextContent()),[]),t=x.useCallback(r=>{const s=_I.exec(r);if(s===null)return null;const o=s[3].length+1,i=s.index+s[1].length;return{end:i+o,start:i}},[]);return EI(t,Fa,e),null}function TI(n){return n&&n.__esModule&&Object.prototype.hasOwnProperty.call(n,"default")?n.default:n}var ss=TI(function(n){const e=new URLSearchParams;e.append("code",n);for(let t=1;t<arguments.length;t++)e.append("v",arguments[t]);throw Error(`Minified Lexical error #${n}; visit https://lexical.dev/docs/error?${e} for the full message or use the non-minified dev environment for full errors and additional helpful warnings.`)});function DI(n){let e=1,t=n.getParent();for(;t!=null;){if(bt(t)){const r=t.getParent();if(Le(r)){e++,t=r.getParent();continue}ss(40)}return e}return e}function Rn(n){return bt(n)&&Le(n.getFirstChild())}function PA(n){return Yn().append(n)}function Cv(n,e){n.splice(n.getChildrenSize(),0,e)}function Ag(n,e){const t=n.getLastChild(),r=e.getFirstChild();t&&r&&Rn(t)&&Rn(r)&&(Ag(t.getFirstChild(),r.getFirstChild()),r.remove());const s=e.getChildren();s.length>0&&n.append(...s),e.remove()}function NI(n){const e=new Set;if(Rn(n)||e.has(n.getKey()))return;const t=n.getParent(),r=n.getNextSibling(),s=n.getPreviousSibling();if(Rn(r)&&Rn(s)){const o=s.getFirstChild();if(Le(o)){o.append(n);const i=r.getFirstChild();Le(i)&&(Cv(o,i.getChildren()),r.remove(),e.add(r.getKey()))}}else if(Rn(r)){const o=r.getFirstChild();if(Le(o)){const i=o.getFirstChild();i!==null&&i.insertBefore(n)}}else if(Rn(s)){const o=s.getFirstChild();Le(o)&&o.append(n)}else if(Le(t)){const o=Yn(),i=Sn(t.getListType());o.append(i),i.append(n),s?s.insertAfter(o):r?r.insertBefore(o):t.append(o)}}function II(n){if(Rn(n))return;const e=n.getParent(),t=e?e.getParent():void 0;if(Le(t?t.getParent():void 0)&&bt(t)&&Le(e)){const r=e?e.getFirstChild():void 0,s=e?e.getLastChild():void 0;if(n.is(r))t.insertBefore(n),e.isEmpty()&&t.remove();else if(n.is(s))t.insertAfter(n),e.isEmpty()&&t.remove();else{const o=e.getListType(),i=Yn(),l=Sn(o);i.append(l),n.getPreviousSiblings().forEach(u=>l.append(u));const a=Yn(),c=Sn(o);a.append(c),Cv(c,n.getNextSiblings()),t.insertBefore(i),t.insertAfter(a),t.replace(n)}}}function Wa(...n){const e=[];for(const t of n)if(t&&typeof t=="string")for(const[r]of t.matchAll(/\S+/g))e.push(r);return e}let pl=class vv extends De{static getType(){return"listitem"}static clone(e){return new vv(e.__value,e.__checked,e.__key)}constructor(e,t,r){super(r),this.__value=e===void 0?1:e,this.__checked=t}createDOM(e){const t=document.createElement("li"),r=this.getParent();return Le(r)&&r.getListType()==="check"&&BA(t,this,null),t.value=this.__value,FA(t,e.theme,this),t}updateDOM(e,t,r){const s=this.getParent();return Le(s)&&s.getListType()==="check"&&BA(t,this,e),t.value=this.__value,FA(t,r.theme,this),!1}static transform(){return e=>{if(bt(e)||ss(144),e.__checked==null)return;const t=e.getParent();Le(t)&&t.getListType()!=="check"&&e.getChecked()!=null&&e.setChecked(void 0)}}static importDOM(){return{li:()=>({conversion:LI,priority:0})}}static importJSON(e){const t=Yn();return t.setChecked(e.checked),t.setValue(e.value),t.setFormat(e.format),t.setDirection(e.direction),t}exportDOM(e){const t=this.createDOM(e._config);return t.style.textAlign=this.getFormatType(),{element:t}}exportJSON(){return{...super.exportJSON(),checked:this.getChecked(),type:"listitem",value:this.getValue(),version:1}}append(...e){for(let t=0;t<e.length;t++){const r=e[t];if(O(r)&&this.canMergeWith(r)){const s=r.getChildren();this.append(...s),r.remove()}else super.append(r)}return this}replace(e,t){if(bt(e))return super.replace(e);this.setIndent(0);const r=this.getParentOrThrow();if(!Le(r))return e;if(r.__first===this.getKey())r.insertBefore(e);else if(r.__last===this.getKey())r.insertAfter(e);else{const s=Sn(r.getListType());let o=this.getNextSibling();for(;o;){const i=o;o=o.getNextSibling(),s.append(i)}r.insertAfter(e),e.insertAfter(s)}return t&&(O(e)||ss(139),this.getChildren().forEach(s=>{e.append(s)})),this.remove(),r.getChildrenSize()===0&&r.remove(),e}insertAfter(e,t=!0){const r=this.getParentOrThrow();if(Le(r)||ss(39),bt(e))return super.insertAfter(e,t);const s=this.getNextSiblings();if(r.insertAfter(e,t),s.length!==0){const o=Sn(r.getListType());s.forEach(i=>o.append(i)),e.insertAfter(o,t)}return e}remove(e){const t=this.getPreviousSibling(),r=this.getNextSibling();super.remove(e),t&&r&&Rn(t)&&Rn(r)&&(Ag(t.getFirstChild(),r.getFirstChild()),r.remove())}insertNewAfter(e,t=!0){const r=Yn(this.__checked==null&&void 0);return this.insertAfter(r,t),r}collapseAtStart(e){const t=re();this.getChildren().forEach(i=>t.append(i));const r=this.getParentOrThrow(),s=r.getParentOrThrow(),o=bt(s);if(r.getChildrenSize()===1)if(o)r.remove(),s.select();else{r.insertBefore(t),r.remove();const i=e.anchor,l=e.focus,a=t.getKey();i.type==="element"&&i.getNode().is(this)&&i.set(a,i.offset,"element"),l.type==="element"&&l.getNode().is(this)&&l.set(a,l.offset,"element")}else r.insertBefore(t),this.remove();return!0}getValue(){return this.getLatest().__value}setValue(e){this.getWritable().__value=e}getChecked(){const e=this.getLatest();let t;const r=this.getParent();return Le(r)&&(t=r.getListType()),t==="check"?!!e.__checked:void 0}setChecked(e){this.getWritable().__checked=e}toggleChecked(){this.setChecked(!this.__checked)}getIndent(){const e=this.getParent();if(e===null)return this.getLatest().__indent;let t=e.getParentOrThrow(),r=0;for(;bt(t);)t=t.getParentOrThrow().getParentOrThrow(),r++;return r}setIndent(e){typeof e!="number"&&ss(117),(e=Math.floor(e))>=0||ss(199);let t=this.getIndent();for(;t!==e;)t<e?(NI(this),t++):(II(this),t--);return this}canInsertAfter(e){return bt(e)}canReplaceWith(e){return bt(e)}canMergeWith(e){return at(e)||bt(e)}extractWithChild(e,t){if(!M(t))return!1;const r=t.anchor.getNode(),s=t.focus.getNode();return this.isParentOf(r)&&this.isParentOf(s)&&this.getTextContent().length===t.getTextContent().length}isParentRequired(){return!0}createParentElementNode(){return Sn("bullet")}canMergeWhenEmpty(){return!0}};function FA(n,e,t){const r=[],s=[],o=e.list,i=o?o.listitem:void 0;let l;if(o&&o.nested&&(l=o.nested.listitem),i!==void 0&&r.push(...Wa(i)),o){const a=t.getParent(),c=Le(a)&&a.getListType()==="check",u=t.getChecked();c&&!u||s.push(o.listitemUnchecked),c&&u||s.push(o.listitemChecked),c&&r.push(u?o.listitemChecked:o.listitemUnchecked)}if(l!==void 0){const a=Wa(l);t.getChildren().some(c=>Le(c))?r.push(...a):s.push(...a)}s.length>0&&Gn(n,...s),r.length>0&&_e(n,...r)}function BA(n,e,t,r){Le(e.getFirstChild())?(n.removeAttribute("role"),n.removeAttribute("tabIndex"),n.removeAttribute("aria-checked")):(n.setAttribute("role","checkbox"),n.setAttribute("tabIndex","-1"),t&&e.__checked===t.__checked||n.setAttribute("aria-checked",e.getChecked()?"true":"false"))}function LI(n){if(n.classList.contains("task-list-item")){for(const t of n.children)if(t.tagName==="INPUT")return MI(t)}const e=n.getAttribute("aria-checked");return{node:Yn(e==="true"||e!=="false"&&void 0)}}function MI(n){return n.getAttribute("type")!=="checkbox"?{node:null}:{node:Yn(n.hasAttribute("checked"))}}function Yn(n){return Me(new pl(void 0,n))}function bt(n){return n instanceof pl}let ml=class xv extends De{static getType(){return"list"}static clone(e){const t=e.__listType||UA[e.__tag];return new xv(t,e.__start,e.__key)}constructor(e,t,r){super(r);const s=UA[e]||e;this.__listType=s,this.__tag=s==="number"?"ol":"ul",this.__start=t}getTag(){return this.__tag}setListType(e){const t=this.getWritable();t.__listType=e,t.__tag=e==="number"?"ol":"ul"}getListType(){return this.__listType}getStart(){return this.__start}createDOM(e,t){const r=this.__tag,s=document.createElement(r);return this.__start!==1&&s.setAttribute("start",String(this.__start)),s.__lexicalListType=this.__listType,zA(s,e.theme,this),s}updateDOM(e,t,r){return e.__tag!==this.__tag||(zA(t,r.theme,this),!1)}static transform(){return e=>{Le(e)||ss(163),function(t){const r=t.getNextSibling();Le(r)&&t.getListType()===r.getListType()&&Ag(t,r)}(e),function(t){const r=t.getListType()!=="check";let s=t.getStart();for(const o of t.getChildren())bt(o)&&(o.getValue()!==s&&o.setValue(s),r&&o.getLatest().__checked!=null&&o.setChecked(void 0),Le(o.getFirstChild())||s++)}(e)}}static importDOM(){return{ol:()=>({conversion:WA,priority:0}),ul:()=>({conversion:WA,priority:0})}}static importJSON(e){const t=Sn(e.listType,e.start);return t.setFormat(e.format),t.setIndent(e.indent),t.setDirection(e.direction),t}exportDOM(e){const t=this.createDOM(e._config,e);return t&&lt(t)&&(this.__start!==1&&t.setAttribute("start",String(this.__start)),this.__listType==="check"&&t.setAttribute("__lexicalListType","check")),{element:t}}exportJSON(){return{...super.exportJSON(),listType:this.getListType(),start:this.getStart(),tag:this.getTag(),type:"list",version:1}}canBeEmpty(){return!1}canIndent(){return!1}append(...e){for(let t=0;t<e.length;t++){const r=e[t];if(bt(r))super.append(r);else{const s=Yn();if(Le(r))s.append(r);else if(O(r))if(r.isInline())s.append(r);else{const o=Fe(r.getTextContent());s.append(o)}else s.append(r);super.append(s)}}return this}extractWithChild(e){return bt(e)}};function zA(n,e,t){const r=[],s=[],o=e.list;if(o!==void 0){const i=o[`${t.__tag}Depth`]||[],l=DI(t)-1,a=l%i.length,c=i[a],u=o[t.__tag];let d;const f=o.nested,g=o.checklist;if(f!==void 0&&f.list&&(d=f.list),u!==void 0&&r.push(u),g!==void 0&&t.__listType==="check"&&r.push(g),c!==void 0){r.push(...Wa(c));for(let h=0;h<i.length;h++)h!==a&&s.push(t.__tag+h)}if(d!==void 0){const h=Wa(d);l>1?r.push(...h):s.push(...h)}}s.length>0&&Gn(n,...s),r.length>0&&_e(n,...r)}function OI(n){const e=[];for(let t=0;t<n.length;t++){const r=n[t];if(bt(r)){e.push(r);const s=r.getChildren();s.length>1&&s.forEach(o=>{Le(o)&&e.push(PA(o))})}else e.push(PA(r))}return e}function WA(n){const e=n.nodeName.toLowerCase();let t=null;return e==="ol"?t=Sn("number",n.start):e==="ul"&&(t=function(r){if(r.getAttribute("__lexicallisttype")==="check"||r.classList.contains("contains-task-list"))return!0;for(const s of r.childNodes)if(lt(s)&&s.hasAttribute("aria-checked"))return!0;return!1}(n)?Sn("check"):Sn("bullet")),{after:OI,node:t}}const UA={ol:"number",ul:"bullet"};function Sn(n,e=1){return Me(new ml(n,e))}function Le(n){return n instanceof ml}function cf(n,e){const t={};for(const r of n){const s=e(r);s&&(t[s]?t[s].push(r):t[s]=[r])}return t}function yg(n){const e=cf(n,t=>t.type);return{element:e.element||[],multilineElement:e["multiline-element"]||[],textFormat:e["text-format"]||[],textMatch:e["text-match"]||[]}}const Ua=/[!-/:-@[-`{-~\s]/,RI=/^\s{0,3}$/;function uf(n){if(!at(n))return!1;const e=n.getFirstChild();return e==null||n.getChildrenSize()===1&&W(e)&&RI.test(e.getTextContent())}function jI(n,e,t,r){for(const s of e){if(!s.export)continue;const o=s.export(n,i=>Ka(i,t,r));if(o!=null)return o}return O(n)?Ka(n,t,r):Se(n)?n.getTextContent():null}function Ka(n,e,t){const r=[],s=n.getChildren();e:for(const o of s){for(const i of t){if(!i.export)continue;const l=i.export(o,a=>Ka(a,e,t),(a,c)=>KA(a,c,e));if(l!=null){r.push(l);continue e}}Ee(o)?r.push(`
71
- `):W(o)?r.push(KA(o,o.getTextContent(),e)):O(o)?r.push(Ka(o,e,t)):Se(o)&&r.push(o.getTextContent())}return r.join("")}function KA(n,e,t){const r=e.trim();let s=r;const o=new Set;for(const i of t){const l=i.format[0],a=i.tag;Yu(n,l)&&!o.has(l)&&(o.add(l),Yu(HA(n,!0),l)||(s=a+s),Yu(HA(n,!1),l)||(s+=a))}return e.replace(r,()=>s)}function HA(n,e){let t=e?n.getPreviousSibling():n.getNextSibling();if(!t){const r=n.getParentOrThrow();r.isInline()&&(t=e?r.getPreviousSibling():r.getNextSibling())}for(;t;){if(O(t)){if(!t.isInline())break;const r=e?t.getLastDescendant():t.getFirstDescendant();if(W(r))return r;t=e?t.getPreviousSibling():t.getNextSibling()}if(W(t))return t;if(!O(t))return null}return null}function Yu(n,e){return W(n)&&n.hasFormat(e)}const Ro=typeof window<"u"&&window.document!==void 0&&window.document.createElement!==void 0,PI=Ro&&"documentMode"in document?document.documentMode:null;Ro&&"InputEvent"in window&&!PI&&new window.InputEvent("input");const YA=Ro&&/Version\/[\d.]+.*Safari/.test(navigator.userAgent),VA=Ro&&/iPad|iPhone|iPod/.test(navigator.userAgent)&&!window.MSStream,FI=Ro&&/^(?=.*Chrome).*/i.test(navigator.userAgent),GA=Ro&&/AppleWebKit\/[\d.]+/.test(navigator.userAgent)&&!FI;function BI(n,e=!1){const t=yg(n),r=function(s){const o={},i={},l=[],a="(?<![\\\\])";for(const c of s){const{tag:u}=c;o[u]=c;const d=u.replace(/(\*|\^|\+)/g,"\\$1");l.push(d),i[u]=YA||VA||GA?new RegExp(`(${d})(?![${d}\\s])(.*?[^${d}\\s])${d}(?!${d})`):new RegExp(`(?<![\\\\${d}])(${d})((\\\\${d})?.*?[^${d}\\s](\\\\${d})?)((?<!\\\\)|(?<=\\\\\\\\))(${d})(?![\\\\${d}])`)}return{fullMatchRegExpByTag:i,openTagsRegExp:new RegExp((YA||VA||GA?"":`${a}`)+"("+l.join("|")+")","g"),transformersByTag:o}}(t.textFormat);return(s,o)=>{const i=s.split(`
72
- `),l=i.length,a=o||fe();a.clear();for(let u=0;u<l;u++){const d=i[u],[f,g]=zI(i,u,t.multilineElement,a);f?u=g:WI(d,a,t.element,r,t.textMatch)}const c=a.getChildren();for(const u of c)!e&&uf(u)&&a.getChildrenSize()>1&&u.remove();R()!==null&&a.selectStart()}}function zI(n,e,t,r){for(const s of t){const{handleImportAfterStartMatch:o,regExpEnd:i,regExpStart:l,replace:a}=s,c=n[e].match(l);if(!c)continue;if(o){const h=o({lines:n,rootNode:r,startLineIndex:e,startMatch:c,transformer:s});if(h===null)continue;if(h)return h}const u=typeof i=="object"&&"regExp"in i?i.regExp:i,d=i&&typeof i=="object"&&"optional"in i?i.optional:!i;let f=e;const g=n.length;for(;f<g;){const h=u?n[f].match(u):null;if(!h&&(!d||d&&f<g-1)){f++;continue}if(h&&e===f&&h.index===c.index){f++;continue}const m=[];if(h&&e===f)m.push(n[e].slice(c[0].length,-h[0].length));else for(let A=e;A<=f;A++)if(A===e){const b=n[A].slice(c[0].length);m.push(b)}else if(A===f&&h){const b=n[A].slice(0,-h[0].length);m.push(b)}else m.push(n[A]);if(a(r,null,c,h,m,!0)!==!1)return[!0,f];break}}return[!1,e]}function WI(n,e,t,r,s){const o=Fe(n),i=re();i.append(o),e.append(i);for(const{regExp:l,replace:a}of t){const c=n.match(l);if(c&&(o.setTextContent(n.slice(c[0].length)),a(i,[o],c,!0)!==!1))break}if(na(o,r,s),i.isAttached()&&n.length>0){const l=i.getPreviousSibling();if(at(l)||Ei(l)||Le(l)){let a=l;if(Le(l)){const c=l.getLastDescendant();a=c==null?null:ae(c,bt)}a!=null&&a.getTextContentSize()>0&&(a.splice(a.getChildrenSize(),0,[Ut(),...i.getChildren()]),i.remove())}}}function na(n,e,t){const r=n.getTextContent(),s=function(c,u){const d=c.match(u.openTagsRegExp);if(d==null)return null;for(const f of d){const g=f.replace(/^\s/,""),h=u.fullMatchRegExpByTag[g];if(h==null)continue;const m=c.match(h),A=u.transformersByTag[g];if(m!=null&&A!=null){if(A.intraword!==!1)return m;const{index:b=0}=m,y=c[b-1],w=c[b+m[0].length];if((!y||Ua.test(y))&&(!w||Ua.test(w)))return m}}return null}(r,e);if(!s)return void Sv(n,t);let o,i,l;if(s[0]===r)o=n;else{const c=s.index||0,u=c+s[0].length;c===0?[o,i]=n.splitText(u):[l,o,i]=n.splitText(c,u)}o.setTextContent(s[2]);const a=e.transformersByTag[s[1]];if(a)for(const c of a.format)o.hasFormat(c)||o.toggleFormat(c);o.hasFormat("code")||na(o,e,t),l&&na(l,e,t),i&&na(i,e,t)}function Sv(n,e){let t=n;e:for(;t;){for(const r of e){if(!r.replace||!r.importRegExp)continue;const s=t.getTextContent().match(r.importRegExp);if(!s)continue;const o=s.index||0,i=r.getEndIndex?r.getEndIndex(t,s):o+s[0].length;if(i===!1)continue;let l,a;o===0?[l,t]=t.splitText(i):[,l,a]=t.splitText(o,i),a&&Sv(a,e),r.replace(l,s);continue e}break}}function UI(n){return n&&n.__esModule&&Object.prototype.hasOwnProperty.call(n,"default")?n.default:n}var KI=UI(function(n){const e=new URLSearchParams;e.append("code",n);for(let t=1;t<arguments.length;t++)e.append("v",arguments[t]);throw Error(`Minified Lexical error #${n}; visit https://lexical.dev/docs/error?${e} for the full message or use the non-minified dev environment for full errors and additional helpful warnings.`)});function ZA(n,e,t){const r=t.length;for(let s=e;s>=r;s--){const o=s-r;if(kv(n,o,t,0,r)&&n[o+r]!==" ")return o}return-1}function kv(n,e,t,r,s){for(let o=0;o<s;o++)if(n[e+o]!==t[r+o])return!1;return!0}function HI(n,e=$c){const t=yg(e),r=cf(t.textFormat,({tag:i})=>i[i.length-1]),s=cf(t.textMatch,({trigger:i})=>i);for(const i of e){const l=i.type;if(l==="element"||l==="text-match"||l==="multiline-element"){const a=i.dependencies;for(const c of a)n.hasNode(c)||KI(173,c.getType())}}const o=(i,l,a)=>{(function(c,u,d,f){const g=c.getParent();if(!At(g)||c.getFirstChild()!==u)return!1;const h=u.getTextContent();if(h[d-1]!==" ")return!1;for(const{regExp:m,replace:A}of f){const b=h.match(m);if(b&&b[0].length===(b[0].endsWith(" ")?d:d-1)){const y=u.getNextSiblings(),[w,v]=u.splitText(d);if(w.remove(),A(c,v?[v,...y]:y,b,!1)!==!1)return!0}}return!1})(i,l,a,t.element)||function(c,u,d,f){const g=c.getParent();if(!At(g)||c.getFirstChild()!==u)return!1;const h=u.getTextContent();if(h[d-1]!==" ")return!1;for(const{regExpStart:m,replace:A,regExpEnd:b}of f){if(b&&!("optional"in b)||b&&"optional"in b&&!b.optional)continue;const y=h.match(m);if(y&&y[0].length===(y[0].endsWith(" ")?d:d-1)){const w=u.getNextSiblings(),[v,S]=u.splitText(d);if(v.remove(),A(c,S?[S,...w]:w,y,null,null,!1)!==!1)return!0}}return!1}(i,l,a,t.multilineElement)||function(c,u,d){let f=c.getTextContent();const g=d[f[u-1]];if(g==null)return!1;u<f.length&&(f=f.slice(0,u));for(const h of g){if(!h.replace||!h.regExp)continue;const m=f.match(h.regExp);if(m===null)continue;const A=m.index||0,b=A+m[0].length;let y;return A===0?[y]=c.splitText(b):[,y]=c.splitText(A,b),y.selectNext(0,0),h.replace(y,m),!0}return!1}(l,a,s)||function(c,u,d){const f=c.getTextContent(),g=u-1,h=f[g],m=d[h];if(!m)return!1;for(const A of m){const{tag:b}=A,y=b.length,w=g-y+1;if(y>1&&!kv(f,w,b,0,y)||f[w-1]===" ")continue;const v=f[g+1];if(A.intraword===!1&&v&&!Ua.test(v))continue;const S=c;let C=S,_=ZA(f,w,b),k=C;for(;_<0&&(k=k.getPreviousSibling())&&!Ee(k);)if(W(k)){const te=k.getTextContent();C=k,_=ZA(te,te.length,b)}if(_<0||C===S&&_+y===w)continue;const T=C.getTextContent();if(_>0&&T[_-1]===h)continue;const D=T[_-1];if(A.intraword===!1&&D&&!Ua.test(D))continue;const L=S.getTextContent(),N=L.slice(0,w)+L.slice(g+1);S.setTextContent(N);const I=C===S?N:T;C.setTextContent(I.slice(0,_)+I.slice(_+y));const P=R(),G=Ji();Ie(G);const J=g-y*(C===S?2:1)+1;G.anchor.set(C.__key,_,"text"),G.focus.set(S.__key,J,"text");for(const te of A.format)G.hasFormat(te)||G.formatText(te);G.anchor.set(G.focus.key,G.focus.offset,G.focus.type);for(const te of A.format)G.hasFormat(te)&&G.toggleFormat(te);return M(P)&&(G.format=P.format),!0}}(l,a,r)};return n.registerUpdateListener(({tags:i,dirtyLeaves:l,editorState:a,prevEditorState:c})=>{if(i.has("collaboration")||i.has("historic")||n.isComposing())return;const u=a.read(R),d=c.read(R);if(!M(d)||!M(u)||!u.isCollapsed()||u.is(d))return;const f=u.anchor.key,g=u.anchor.offset,h=a._nodeMap.get(f);!W(h)||!l.has(f)||g!==1&&g>d.anchor.offset+1||n.update(()=>{if(h.hasFormat("code"))return;const m=h.getParent();m===null||Yt(m)||o(m,h,u.anchor.offset)})})}const Ev=/^(\s*)(\d{1,})\.\s/,_v=/^(\s*)[-*+]\s/,Tv=/^(\s*)(?:-\s)?\s?(\[(\s|x)?\])\s/i,df=/^(#{1,6})\s/,Dv=/^>\s/,Nv=/^[ \t]*```(\w+)?/,Iv=/[ \t]*```$/,YI=/^[ \t]*```[^`]+(?:(?:`{1,2}|`{4,})[^`]+)*```(?:[^`]|$)/,VI=/^(?:\|)(.+)(?:\|)\s?$/,GI=/^(\| ?:?-*:? ?)+\|\s?$/,Lv=n=>(e,t,r)=>{const s=n(r);s.append(...t),e.replace(s),s.select(0,0)},bg=n=>(e,t,r)=>{const s=e.getPreviousSibling(),o=e.getNextSibling(),i=Yn(n==="check"?r[3]==="x":void 0);if(Le(o)&&o.getListType()===n){const a=o.getFirstChild();a!==null?a.insertBefore(i):o.append(i),e.remove()}else if(Le(s)&&s.getListType()===n)s.append(i),e.remove();else{const a=Sn(n,n==="number"?Number(r[2]):void 0);a.append(i),e.replace(a)}i.append(...t),i.select(0,0);const l=function(a){const c=a.match(/\t/g),u=a.match(/ /g);let d=0;return c&&(d+=c.length),u&&(d+=Math.floor(u.length/4)),d}(r[1]);l&&i.setIndent(l)},qc=(n,e,t)=>{const r=[],s=n.getChildren();let o=0;for(const i of s)if(bt(i)){if(i.getChildrenSize()===1){const u=i.getFirstChild();if(Le(u)){r.push(qc(u,e,t+1));continue}}const l=" ".repeat(4*t),a=n.getListType(),c=a==="number"?`${n.getStart()+o}. `:a==="check"?`- [${i.getChecked()?"x":" "}] `:"- ";r.push(l+c+e(i)),o++}return r.join(`
73
- `)},Mv={dependencies:[al],export:(n,e)=>{if(!or(n))return null;const t=Number(n.getTag().slice(1));return"#".repeat(t)+" "+e(n)},regExp:df,replace:Lv(n=>{const e="h"+n[1].length;return Nr(e)}),type:"element"},Ov={dependencies:[Nc],export:(n,e)=>{if(!Ei(n))return null;const t=e(n).split(`
74
- `),r=[];for(const s of t)r.push("> "+s);return r.join(`
75
- `)},regExp:Dv,replace:(n,e,t,r)=>{if(r){const o=n.getPreviousSibling();if(Ei(o))return o.splice(o.getChildrenSize(),0,[Ut(),...e]),o.select(0,0),void n.remove()}const s=Ic();s.append(...e),n.replace(s),s.select(0,0)},type:"element"},ZI={dependencies:[ir],export:n=>{if(!Yt(n))return null;const e=n.getTextContent();return"```"+(n.getLanguage()||"")+(e?`
76
- `+e:"")+"\n```"},regExpEnd:{optional:!0,regExp:Iv},regExpStart:Nv,replace:(n,e,t,r,s,o)=>{let i,l;if(!e&&s){if(s.length===1)r?(i=wn(),l=t[1]+s[0]):(i=wn(t[1]),l=s[0].startsWith(" ")?s[0].slice(1):s[0]);else{if(i=wn(t[1]),s[0].trim().length===0)for(;s.length>0&&!s[0].length;)s.shift();else s[0]=s[0].startsWith(" ")?s[0].slice(1):s[0];for(;s.length>0&&!s[s.length-1].length;)s.pop();l=s.join(`
77
- `)}const a=Fe(l);i.append(a),n.append(i)}else e&&Lv(a=>wn(a?a[1]:void 0))(n,e,t,o)},type:"multiline-element"},JI={dependencies:[ml,pl],export:(n,e)=>Le(n)?qc(n,e,0):null,regExp:_v,replace:bg("bullet"),type:"element"},XI={dependencies:[ml,pl],export:(n,e)=>Le(n)?qc(n,e,0):null,regExp:Tv,replace:bg("check"),type:"element"},QI={dependencies:[ml,pl],export:(n,e)=>Le(n)?qc(n,e,0):null,regExp:Ev,replace:bg("number"),type:"element"},qI={format:["code"],tag:"`",type:"text-format"},$I={format:["highlight"],tag:"==",type:"text-format"},eL={format:["bold","italic"],tag:"***",type:"text-format"},tL={format:["bold","italic"],intraword:!1,tag:"___",type:"text-format"},nL={format:["bold"],tag:"**",type:"text-format"},rL={format:["bold"],intraword:!1,tag:"__",type:"text-format"},sL={format:["strikethrough"],tag:"~~",type:"text-format"},oL={format:["italic"],tag:"*",type:"text-format"},iL={format:["italic"],intraword:!1,tag:"_",type:"text-format"},lL={dependencies:[Os],export:(n,e,t)=>{if(!it(n))return null;const r=n.getTitle(),s=r?`[${n.getTextContent()}](${n.getURL()} "${r}")`:`[${n.getTextContent()}](${n.getURL()})`,o=n.getFirstChild();return n.getChildrenSize()===1&&W(o)?t(o,s):s},importRegExp:/(?:\[([^[]+)\])(?:\((?:([^()\s]+)(?:\s"((?:[^"]*\\")*[^"]*)"\s*)?)\))/,regExp:/(?:\[([^[]+)\])(?:\((?:([^()\s]+)(?:\s"((?:[^"]*\\")*[^"]*)"\s*)?)\))$/,replace:(n,e)=>{const[,t,r,s]=e,o=go(r,{title:s}),i=Fe(t);i.setFormat(n.getFormat()),o.append(i),n.replace(o)},trigger:")",type:"text-match"},aL=[Mv,Ov,JI,QI],Rv=[ZI],jv=[qI,eL,tL,nL,rL,$I,oL,iL,sL],Pv=[lL],$c=[...aL,...Rv,...jv,...Pv];function cL(n,e=$c,t,r=!1,s=!1){const o=r?n:function(i,l=!1){const a=i.split(`
78
- `);let c=!1;const u=[];for(let d=0;d<a.length;d++){const f=a[d],g=u[u.length-1];YI.test(f)?u.push(f):Nv.test(f)||Iv.test(f)?(c=!c,u.push(f)):c||f===""||g===""||!g||df.test(g)||df.test(f)||Dv.test(f)||Ev.test(f)||_v.test(f)||Tv.test(f)||VI.test(f)||GI.test(f)||!l?u.push(f):u[u.length-1]=g+f}return u.join(`
79
- `)}(n,s);return BI(e,r)(o,t)}function uL(n=$c,e,t=!1){return function(s,o=!1){const i=yg(s),l=[...i.multilineElement,...i.element],a=!o,c=i.textFormat.filter(u=>u.format.length===1);return u=>{const d=[],f=(u||fe()).getChildren();for(let g=0;g<f.length;g++){const h=f[g],m=jI(h,l,c,i.textMatch);m!=null&&d.push(a&&g>0&&!uf(h)&&!uf(f[g-1])?`
80
- `.concat(m):m)}return d.join(`
81
- `)}}(n,t)(e)}const dL=[{dependencies:[il],export:n=>Mh(n)?"***":null,regExp:/^(---|\*\*\*|___)\s?$/,replace:(n,e,t,r)=>{const s=ll();r||n.getNextSibling()!=null?n.replace(s):n.insertBefore(s),s.selectNext()},type:"element"},...$c];function Fv({transformers:n=dL}){const[e]=ie();return x.useEffect(()=>HI(e,n),[e,n]),null}function fL(n){return n.registerCommand(wo,e=>{const t=R();if(!M(t))return!1;e.preventDefault();const r=function(s){const o=s.getNodes();if(V0(o,d=>ba(d)&&d.canIndent()?d:null).length>0)return!0;const i=s.anchor,l=s.focus,a=l.isBefore(i)?l:i,c=a.getNode(),u=vo(c);if(u.canIndent()){const d=u.getKey();let f=Ji();if(f.anchor.set(d,0,"element"),f.focus.set(d,0,"element"),f=sc(f),f.anchor.is(a))return!0}return!1}(t)?e.shiftKey?Er:Pn:oa;return n.dispatchCommand(r,void 0)},pe)}function Bv(){const[n]=ie();return x.useEffect(()=>fL(n),[n]),null}const eu=(n,e,t)=>{var s,o,i,l,a;const r=R();if(M(r)&&r.isCollapsed()){const c=r.anchor.getNode(),u=c.getKey(),d=c.getParent()===t,f=t instanceof De&&(t.__type==="layout-item"?(o=(s=t.getLastChild())==null?void 0:s.getPreviousSibling())==null?void 0:o.getKey():(i=t.getLastChild())==null?void 0:i.getKey())===u,g=t instanceof De&&((l=t.getFirstChild())==null?void 0:l.getKey())===u;if(t&&c instanceof mr&&!c.getTextContent()&&d&&!((a=c.getPreviousSibling())!=null&&a.getTextContent())&&f&&!g){const m=n.registerCommand(cr,()=>(m(),!0),pc);return n.update(()=>{var b;if(t){let y=t.getChildren();const w=t.getLastChild();oI(w)&&(y=y.slice(0,-1)),y.length===2?y.slice(-1).forEach(v=>v.remove()):y.slice(-2).forEach(v=>v.remove())}const A=e==null?void 0:e.getNextSibling();if(at(A)&&A.getTextContent()==="")(b=e==null?void 0:e.getNextSibling())==null||b.selectEnd();else{const y=e==null?void 0:e.insertAfter(re());y==null||y.selectStart()}}),!0}}return!1},hL=n=>{switch(n){case"warning":return{emoji:"e=%E2%9A%A0%EF%B8%8F",backgroundColor:"rgba(254, 247, 230, 1)",calloutType:"warning"};case"alert":return{emoji:"e=%E2%9D%97",backgroundColor:"rgba(255, 224, 223, 1)",calloutType:"alert"};case"success":return{emoji:"e=%E2%9C%85",backgroundColor:"rgba(219, 242, 233, 1)",calloutType:"success"};default:return{emoji:"e=%F0%9F%99%82",backgroundColor:"",calloutType:""}}},gL=n=>{const e=Ke();if(e){const t=ae(e,sg);if((t==null?void 0:t.__type)==="callout"){const r=R();if(M(r)&&r.isCollapsed()){const s=r.anchor.getNode(),o=ae(s,LD);return eu(n,o,t)}}}return!0};function zv(){const[n]=ie(),{imperativeHandleRef:e}=x.useContext(Gt),t=x.useCallback(r=>{const s=Ke(),{lexicalNode:o,htmlElement:i}=Ao(s,n,{"callout-wrapper":!0});return o&&O(o)&&o.getChildren().length===1&&n.update(()=>{const l=re();l.append(Fe(""));const a=o.getParent();a&&(a.replace(l),l.selectStart())}),!1},[]);return x.useImperativeHandle(e,()=>({onDeleteCallout:t})),x.useEffect(()=>{if(!n.hasNodes([Rs,Yr,Es]))throw new Error("CalloutPlugin: CalloutNode not registered on editor");return ve(n.registerCommand(Yh,r=>{var f;const{emoji:s,backgroundColor:o,calloutType:i}=hL(r),l=Ke(),a=hr((l==null?void 0:l.getTextContent())||""),c=ig(o,i),u=og(s),d=rg().append(re().append(a));return c.append(u),c.append(d),l&&l.getTopLevelElement()!==null?(c.selectEnd(),(f=l==null?void 0:l.getTopLevelElementOrThrow())==null||f.replace(c)):l==null||l.replace(c),!0},pe),n.registerCommand(Zr,t,le))},[n]),null}const Wv=ze();function Uv(){const[n]=ie();return x.useEffect(()=>{if(!n.hasNodes([yo]))throw new Error("ChildDocsPlugin: ChildDocsNode not registered on editor");return n.registerCommand(Wv,e=>{const t=hv(),r=Ke();return r==null||r.replace(t),!0},pe)},[n]),null}const pL=4,mL=2,AL="draggable-block-menu",yL=16,JA="application/x-lexical-drag-block",tu=n=>n?n.match(/(\d*\.?\d+)%/g):[],ff=n=>n<0?0:n>100?100:n,Kv=(n,e,t)=>{let r=0,s=[];n.update(()=>{if(n&&e){const a=n.getElementByKey(e.getKey());if(a){const c=a.style;s=tu(c.getPropertyValue("grid-template-columns")).map(u=>u.slice(0,-1)),r=s?s.length:0}}const o=100/(r+1),i=[...s];i.splice(t,0,`${o}%`);let l=o/r;for(let a=0;a<i.length;a++)if(t!==a){const c=Number(i[a])-l;i[a]=`minmax(100px,${ff(c)}%)`}else i[a]=`minmax(100px,${i[a]})`;e.setTemplateColumns(i.join(" "))})},hf=(n,e,t,r)=>{n.update(()=>{const s=n.getElementByKey(e.getKey());if(!s)return;let o=r;t<r&&(o=r-1);const l=s.style.getPropertyValue("grid-template-columns").match(/minmax\([^)]*\)|\S+/g)||[],a=l.splice(t,1)[0];l.splice(o,0,a),e.setTemplateColumns(l.join(" "))})},Mi=(n,e)=>(n!=null&&n.children?Array.from(n.children):[]).indexOf(e);function bL(n,e,t,r){var a;let s=n.getAttribute("data-direction")==="left",o=n.getAttribute("data-direction")==="right",i=n.getAttribute("data-index"),l=n.getAttribute("data-index-start");if(s||o||i){let c=(a=t.getParent())==null?void 0:a.getParent();if(t instanceof an&&(c=t),t instanceof cn||t instanceof an){const u=c==null?void 0:c.getChildren();let d=r instanceof cn;if((u==null?void 0:u.length)>=4&&!d)return!0;e.update(()=>{var h;let f=0;s?f=0:o?f=((h=c==null?void 0:c.getChildren())==null?void 0:h.length)-1:f=Number(i),d?hf(e,c,Number(l),f):Kv(e,c,f);let g=null;f!==void 0&&e.update(()=>{if(g=c.getChildren()[f],d)t instanceof an?g.insertAfter(r.getParent()):g.insertBefore(r.getParent());else if(o)g.insertAfter(Mn().append(r).append(yn()));else{const m=r.getParent();r.getParent()instanceof Vt&&(m==null?void 0:m.getChildren().length)===2&&(m==null||m.append(re())),g.insertBefore(Mn().append(r).append(yn()))}})})}else e.update(()=>{const d=Xc("50% 50%"),f=Bh(t);s?(d.append(Mn().append(r).append(yn())),d.append(Mn().append(f).append(yn()))):(d.append(Mn().append(f).append(yn())),d.append(Mn().append(r).append(yn()))),t.insertAfter(d),t.remove(),f.selectStart()});return!0}return!1}function wL(n,e,t="right",r=!1){n.update(()=>{const s=he(e),o=s==null?void 0:s.getParent();if(o){if(tu(o.__templateColumns).length===4)return;let l=Mi(e.parentElement,e);t==="right"&&(l=l+1),Kv(n,o,l)}const i=Mn().append(re()).append(yn());s&&(t==="right"?r?(s.insertBefore(Bh(s)),s.selectStart()):(s.insertAfter(i),i==null||i.selectStart()):(s.insertBefore(i),i.selectStart()))})}const Hv=(n,e)=>{const t=e==null?void 0:e.getParent();let r=tu(t==null?void 0:t.getTemplateColumns());const s=t==null?void 0:t.getChildren();let o=0;if(s&&e){for(let u=0;u<s.length;u++)if(s[u].__key===e.__key){o=u;break}}r.splice(o,1);const i=r.map(u=>parseFloat(u)),l=i.reduce((u,d)=>u+d,0),c=i.map(u=>u/l*100).map(u=>`minmax(50px,${u.toFixed(2)}%)`);t==null||t.setTemplateColumns(c.join(" "))},CL=n=>n.className.includes("editor-image")||n.className.includes("video-container")?n:null,Yv=(n,e)=>e!=null&&e.__key&&n!==e.__key?Yv(n,e==null?void 0:e.getParent()):n===(e==null?void 0:e.__key),XA=(n,e,t)=>{n.update(()=>{var i,l,a;const r=(i=e==null?void 0:e.getParent())==null?void 0:i.getParent(),s=e==null?void 0:e.getParent(),o=t==="right"?(l=e==null?void 0:e.getParent())==null?void 0:l.getNextSibling():(a=e==null?void 0:e.getParent())==null?void 0:a.getPreviousSibling();if(s&&o&&r instanceof an){const c=n.getElementByKey(s.getKey()),u=n.getElementByKey(r.getKey()),d=Mi(u,c);s&&r&&o&&(t==="right"&&(hf(n,r,d+1,d),o.insertAfter(s)),t==="left"&&(hf(n,r,d,d+1),o.insertBefore(s)))}})};function vL(n){n&&(n.style.display="none")}function QA(n){n.preventDefault(),n.stopPropagation()}function qA({blockElement:n,editor:e,isTop:t,isClickedBlockRef:r,setDraggableBlockElem:s}){n&&(r.current=!0,e.update(()=>{const o=he(n);if(o){const i=re();t?(o.insertBefore(i),setTimeout(()=>{s(e.getElementByKey(i.__key)),e.update(()=>{i.selectStart()})})):(o.insertAfter(i),setTimeout(()=>{s(e.getElementByKey(i.__key)),e.update(()=>{i.selectEnd()})}))}}))}function xL(n){const e=(a,c)=>a?parseFloat(window.getComputedStyle(a)[c]):0,{marginTop:t,marginBottom:r}=window.getComputedStyle(n),s=e(n.previousElementSibling,"marginBottom"),o=e(n.nextElementSibling,"marginTop"),i=Math.max(parseFloat(t),s);return{marginBottom:Math.max(parseFloat(r),o),marginTop:i}}function SL(n){return!!n.closest(`.${AL}`)}function $A(n,e,t,r){if(!n){e.style.opacity="0";return}e.style.display="block";let s=null;const o=CL(n);o&&o.style.justifyContent!=="left"?s=o.firstChild.getBoundingClientRect():s=n.getBoundingClientRect();let i=null,l=0,a=!0,c=0;if(s){let b=n.firstChild instanceof HTMLElement&&(n.firstChild.hasAttribute("data-lexical-text")||n.firstChild.tagName==="LI"||n.firstChild.tagName==="A")?n.firstChild:null;if(b&&!b.className.includes("editor-image")&&n.tagName!=="CODE"){const y=window.getComputedStyle(b),w=parseFloat(y.lineHeight),v=parseFloat(y.fontSize);c=Math.ceil(v+(w-v)/2),i=b.getBoundingClientRect()}else if(n.firstChild instanceof HTMLElement&&n.firstChild.tagName==="BR"&&n.tagName!=="CODE"){const y=window.getComputedStyle(n,"::before");c=parseFloat(y.height)||30}else n&&n.tagName==="HR"?c=n.clientHeight:n.firstChild instanceof HTMLElement&&n.firstChild.tagName==="SUMMARY"?c=n.firstChild.clientHeight:(i=s,a=!1)}const u=t.getBoundingClientRect(),d=(i==null?void 0:i.top)||s.top,f=c||l,g=e.clientHeight,h=f-g;let m=!a||!f?s.top+7-u.top:d+h/2-u.top,A=s.left-u.left-g*2-3;o&&(m=d-u.top+7,(o.style.justifyContent==="center"||o.style.justifyContent==="right")&&(A=A+10)),n.matches(":has(.resizable-container__handle)")&&!n.matches(":has(.hide-padding)")&&(m=d-u.top+27),s.top<0&&(m=m+-s.top),n.className==="dsd__theme__layoutDivider"&&(e.style.display="none",s.top-e.clientHeight<0?n.style.setProperty("--height-column",`${n.clientHeight+s.top-e.clientHeight-7}px`):n.style.setProperty("--height-column",`${n.clientHeight}px`)),e.style.opacity="1",!r&&A>-40&&(e.style.transform=`translate(${A}px, ${m}px)`)}function ey(n,e){const{transform:t}=e.style;e.style.transform="translateZ(0)",n.setDragImage(e,0,0),setTimeout(()=>{e.style.transform=t})}function kL(n,e){const t=document.createElement("div");t.style.position="absolute",t.style.top="-9999px",t.style.left="-9999px",e.forEach(r=>{const s=r.cloneNode(!0);s.style.position="relative",t.appendChild(s)}),document.body.appendChild(t),n.setDragImage(t,0,0),setTimeout(()=>document.body.removeChild(t),0)}function EL(n,e,t,r,s,o,i){var C;const{top:l,height:a,width:c,left:u}=e.getBoundingClientRect(),{top:d,left:f,width:g}=s==null?void 0:s.getBoundingClientRect(),{marginTop:h,marginBottom:m}=xL(e);let A=l;t>=l?(i.current.isBottom=!0,A+=a+m/2):(i.current.isBottom=!1,A-=h/2);const b=A-d-mL,y=yL-pL,v=o.target.closest(".dsd__theme__layoutDivider");n.setAttribute("data-index",""),n.style.background="deepskyblue";const S=u-f-y;if(r<=u&&!v){if(e.closest(".dsd__theme__layoutItem"))return;n.style.transform=`translate(${S}px, ${l-d}px)`,n.style.width="4px",n.style.height=`${a}px`,n.style.opacity=".4",n.setAttribute("data-direction","left")}else if(r>=g-S&&!v&&!e.closest(".dsd__theme__layoutItem"))e.classList.contains("dsd__theme__layoutContainer")&&!n.getAttribute("data-index-start")&&e&&e.children.length>=4&&(n.style.background="red"),n.style.transform=`translate(${g-S}px, ${l-d}px)`,n.style.width="4px",n.style.height=`${a}px`,n.style.opacity=".4",n.setAttribute("data-direction","right");else if(v){o.preventDefault();const _=(C=v.parentNode)==null?void 0:C.parentNode;(_==null?void 0:_.children.length)===4&&(n.style.background="red");const k=v.parentNode,T=Mi(_,k),D=T?v.getBoundingClientRect().left-f:S+30;n.style.transform=`translate(${D}px, ${l-d}px)`,n.style.width="4px",n.style.height=`${a}px`,n.style.opacity=".4",n.setAttribute("data-index",`${T}`)}else n.style.transform=`translate(${S}px, ${b}px)`,n.style.width=`${c+y}px`,n.style.opacity=".4",n.style.height="4px",n.setAttribute("data-direction","")}function ty(n){n&&(n.style.opacity="0",n.style.transform="translate(-10000px, -10000px)")}const Oi=(n,e,t)=>{var o,i,l;const r=(t==null?void 0:t.getChildren())||[];if((r==null?void 0:r.length)===2){for(const a of r)a.__key!==(e==null?void 0:e.__key)&&(t==null||t.insertBefore(a),(o=a.getFirstChild())==null||o.selectEnd());t.remove()}else for(const a of r)if(a.__key===(e==null?void 0:e.__key)){Hv(n,a),GC(n,a);const c=a.getPreviousSibling()??a.getNextSibling();(l=(i=c==null?void 0:c.getFirstChild)==null?void 0:i.call(c))==null||l.selectEnd()}const s=n.registerCommand(jn,()=>(s(),!0),pc);return!0},Vv=ze(),_L=n=>{const e=R();if(M(e)&&e.isCollapsed()){const t=e.anchor.getNode(),r=ae(t,Ii),s=ae(t,tn);return eu(n,s,r)&&Ii(r)}return!0},TL=()=>{const n=R();if(!M(n)||!n.isCollapsed()||n.anchor.offset!==0)return!1;const t=n.anchor.getNode().getTopLevelElement();if(t===null)return!1;const r=t.getPreviousSibling();return!tn(r)||r.getOpen()?!1:(r.setOpen(!0),!0)},DL=()=>{var e;const n=R();if(M(n)&&n.isCollapsed()&&n.anchor.offset===0){const t=ae(n.anchor.getNode(),tn);if(tn(t)){const r=t.getParent();r!==null&&r.getFirstChild()===t&&n.anchor.key===((e=t.getFirstDescendant())==null?void 0:e.getKey())&&t.insertBefore(re())}}return!1},NL=()=>{const n=R();if(M(n)&&n.isCollapsed()){const e=ae(n.anchor.getNode(),tn);if(tn(e)){const t=e.getParent();if(t!==null&&t.getLastChild()===e){const r=e.getFirstDescendant(),s=e.getLastDescendant();(s!==null&&n.anchor.key===s.getKey()&&n.anchor.offset===s.getTextContentSize()||r!==null&&n.anchor.key===r.getKey()&&n.anchor.offset===r.getTextContentSize())&&e.insertAfter(re())}}}return!1},IL=n=>{const e=R();if(M(e)&&e.isCollapsed()){const t=e.focus.getNode().getParent(),r=t==null?void 0:t.getParent();return Oi(n,t,r)}return!1};function wg(){const[n]=ie();return x.useEffect(()=>{if(!n.hasNodes([ks,Hr,gr]))throw new Error("CollapsiblePlugin: CollapsibleContainerNode, CollapsibleTitleNode, or CollapsibleContentNode not registered on editor");return ve(n.registerNodeTransform(gr,e=>{const t=e.getParent();if(!tn(t)){const r=e.getChildren();for(const s of r)e.insertBefore(s);e.remove()}}),n.registerNodeTransform(Hr,e=>{const t=e.getParent();if(!tn(t)){e.replace(re().append(...e.getChildren()));return}}),n.registerNodeTransform(ks,e=>{const t=e.getChildren();if(t.length!==2||!fs(t[0])||!Ii(t[1])){for(const r of t)e.insertBefore(r);e.remove()}}),n.registerCommand(cr,()=>{var t;const e=R();if(M(e)){const r=ae(e.anchor.getNode(),s=>fs(s));if(fs(r)){const s=r.getParent();if(s&&tn(s))return s.getOpen()||s.toggleOpen(),(t=r.getNextSibling())==null||t.selectEnd(),!0}}return!1},le),n.registerCommand(Vv,()=>(n.update(()=>{const e=ng(),t=re(),r=Ke(),s=eg(!1).append(e.append(t),tg().append(re()));r==null||r.replace(s),t.select()}),!0),le))},[n]),null}const LL=ze(),Cg=ze();function Gv(){const[n]=ie();return x.useEffect(()=>{if(!n.hasNodes([Mo]))throw new Error("EmbedPlugin: EmbedNode not registered on editor");return n.registerCommand(Cg,e=>{const t=cg(e,"100%","100%","",!0,"unknown"),r=Ke();return r&&r.getParent()&&(r==null||r.replace(t)),!0},pe)},[n]),null}const vg=ze(),ML=n=>{const e=R();if(M(e)&&e.isCollapsed()){const t=e.anchor.getNode(),r=ae(t,mv),s=ae(t,Li),{lexicalNode:o}=Ao(t,n,{"layout-item":!0});if(o&&!o.getTextContent()&&r)return eu(n,r,s)&&Li(o)}return!0},OL=n=>{const e=R();if(M(e)&&e.isCollapsed()){const t=e.focus.getNode().getParent(),r=t==null?void 0:t.getParent();if((t==null?void 0:t.getTextContent())===`
82
-
83
- `&&(at(t==null?void 0:t.getChildren()[0])||at(t==null?void 0:t.getChildren()[1])))return Oi(n,t,r)}return!1};function Zv(){const[n]=ie();return x.useEffect(()=>{if(!n.hasNodes([an,Vt,cn]))throw new Error("LayoutPlugin: LayoutContainerNode, or LayoutItemNode not registered on editor");return ve(n.registerCommand(vg,e=>(n.update(()=>{const t=Xc(e),r=RL(e);for(let o=0;o<r;o++)t.append(Mn().append(re()).append(yn()));const s=Ke();s&&(s==null||s.replace(t),t.selectStart())}),!0),pe),n.registerCommand(pr,()=>{var o;const t=R().focus.getNode(),r=(o=ae(t,Li))==null?void 0:o.getKey(),s=t.getPreviousSibling();return setTimeout(()=>{n.update(()=>{if(s instanceof an){const l=yn(),a=s.getLastChild();a==null||a.append(l)}const i=r?ue(r):null;if(i!=null&&i.getChildren&&i.getChildren().length===1){const l=re();i.append(l),l.selectStart()}})},50),!1},dt),n.registerNodeTransform(Vt,e=>{const t=e.getParent();if(!mv(t)){const r=e.getChildren();for(const s of r)e.insertBefore(s);e.remove()}}),n.registerNodeTransform(an,e=>{const t=e.getChildren();if(!t.every(Li)){for(const r of t)e.insertBefore(r);e.remove()}}))},[n]),x.useEffect(()=>{const e=a=>{const c=a.target.closest(".dsd__theme__layoutItem"),u=a.target.closest(".dsd__theme__layoutDivider");c&&u&&(a.preventDefault(),i(c,a))};let t=!1,r=0,s=[],o;function i(a,c){t=!0;const u=document.querySelector("code");u&&(u.style.pointerEvents="none"),r=c.clientX,o=a.closest(".dsd__theme__layoutContainer");const d=o.querySelectorAll(".dsd__theme__layoutItem"),f=Array.from(d).indexOf(a),g=d[f-1];s[0]=g?g.getBoundingClientRect().width+10:0,s[1]=a.getBoundingClientRect().width;const h=A=>l(A,f,d),m=A=>{t=!1,n.dispatchCommand(Pa,"up"),u&&u.style.pointerEvents==="none"&&(u.style.pointerEvents="auto");const b=A.target.closest(".dsd__theme__layoutContainer");b&&n.update(()=>{he(b).setTemplateColumns(b.style.gridTemplateColumns)}),document.removeEventListener("mousemove",h),document.removeEventListener("mouseup",m)};document.addEventListener("mousemove",h),document.addEventListener("mouseup",m)}function l(a,c,u){if(!t)return;n.dispatchCommand(Pa,"move");const d=a.clientX-r;if(Math.abs(d)<4||!c)return;const g=s[0]+d,h=s[1]-d;let m=c;const A=Array.from(u).reduce((v,S)=>v+S.getBoundingClientRect().width,0),b=g/A*100,y=h/A*100,w=Array.from(u).map((v,S)=>{const C=S?100:50;if(S===m-1)return`minmax(${C}px,${ff(b)}%)`;if(S===m)return`minmax(${C}px, ${ff(y)}%)`;const _=tu(o.style.gridTemplateColumns)[S];return`minmax(${C}px,${_})`});o.style.gridTemplateColumns=w.join(" ")}return document.body.addEventListener("mousedown",e),()=>{document.body.removeEventListener("mousedown",e)}},[n]),null}function RL(n){return n.trim().split(/\s+/).length}const Jv=ze();function jL(){const[n]=ie();return x.useEffect(()=>{if(!n.hasNodes([Oo]))throw new Error("SwaggerPlugin: SwaggerPlugin not registered on editor");return n.registerCommand(Jv,e=>{const t=Ke();if(t&&t.getParent()){const r=hg(e,"",!0);t==null||t.replace(r)}return!0},pe)},[n]),null}const Xv=ze();function Qv(){const[n]=ie();return x.useEffect(()=>{if(!n.hasNodes([Ps]))throw new Error("VideoPlugin: VideoNode not registered on editor");return n.registerCommand(Xv,e=>{const t=gg(e,"100%","100%","left",!0),r=Ke();return r&&r.getParent()&&(r==null||r.replace(t)),!0},pe)},[n]),null}const PL="data:image/jpeg;base64,/9j/4AAQSkZJRgABAQAAAQABAAD/2wBDAAkGBggGBQkIBw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T4OKYiJmJWOQ7aSSXkeG/DUzK9H8G/Wqu2TT8pKIiYiIiNevXriIUzAwHVq1adWrTp4/Z+rfoOE8HhTEDE4nq169WrXrGAHhttuqdU23V2Ozbt27d27bt27B2bBnd3dDIHyvg7u9mzZsu9l3d3VN1VU3VNtt/UBQMDw+G8cxkOD1bbZyOdk+yXhL5JJJJeySXq37YnHIZPwPCS8JJJe6SSXolIEyMTjK8Dg9W/tjwcHoPRIj/MAAvU8P0//EAB8RAQEAAgMBAQEBAQAAAAAAAAEAAhARIEAwUGAhcP/aAAgBAwEDPwD/AJJx/B8a5/JZ8fH53NzcesiI/BWZnXHp5sp4uX/blnn2LOyOh7edcS2UySeTmfzTRDGk2zP043z+iMREadMz9+fwT4GudGyCI1xHy40NjH4LPZnRBoiNERpZfoySbIiGPORFjY2NjER1ZsrKyn1JZWUz4mbKyn9pmZnsvZuPIzOmdcTLMzBGudEafIREWNiaZ8J2I06IIjRHUiI8fGmZbnqzJpspmbKy2GuYiPyTscx2INER246n4xERERERERERERERERH7RGmbKZmZ7M9j3H1LGxsbHuzM7fgzMzMz5iIixsYjTLNzM2Usz8iIiOhERERG2dvZ+jZWUzMzNlZWUzs0eZ6keBnbM7ZZnQRERsiPuz9GZmfAREbPaRGiIiLGxsbGwiNMzNlM2UzPVmZmfwWZmZmZmZ06erP2I8LMzM/wrMz/AAZERERER4yOyz+E2VlMzMzMzP3Ieg6CxmfwCIiIiI0d2WymZmeiaNcd2fUREbI6ER8OIsWPC+oufqzMzPxZmZ6ERERGyPMRcQ/IiIiIiIiIjZFjEWNjERER1IiIiPzGfERYxpn+HZ+LMzM/hY2NjY2P8T//2Q==",yt={header:(n,e)=>p.jsxs(E.Group,{gap:10,style:{borderRadius:"var(--mantine-radius-lg)",backgroundColor:"var(--mantine-color-default-hover)"},children:[p.jsx(E.Group,{px:"sm",pt:"sm",gap:0,children:p.jsxs(E.Group,{p:8,gap:0,className:"hintBoard",children:[p.jsx(E.Title,{order:e,mb:"sm",mt:12-(e-1)*4,h:40-(e-1)*4,children:n("editor.heading.name")+` H${e}`}),p.jsx(E.Text,{size:"sm",h:80,lh:"21px",children:n("editor.menu.heading.hintShowCase",{projectName:"Layers"})})]})}),p.jsx(E.Text,{px:"sm",pb:"sm",size:"xs",lh:"14px",children:n(`editor.menu.heading.h${e}.hintDescription`)})]}),ol:n=>p.jsxs(E.Group,{gap:10,style:{borderRadius:"var(--mantine-radius-lg)",backgroundColor:"var(--mantine-color-default-hover)"},children:[p.jsx(E.Group,{px:"sm",pt:"sm",w:"100%",gap:0,children:p.jsx(E.Group,{p:8,gap:0,w:"100%",h:150,className:"hintBoard",children:p.jsxs(E.List,{type:"ordered",mt:2,children:[p.jsx(E.List.Item,{fz:"sm",children:n("editor.menu.lists.numberList.hint.firstItem")}),p.jsx(E.List.Item,{fz:"sm",mt:2,children:n("editor.menu.lists.numberList.hint.secondItem")}),p.jsxs(E.List,{pl:18,listStyleType:"upper-alpha",children:[p.jsx(E.List.Item,{fz:"sm",mt:2,children:n("editor.menu.lists.numberList.hint.firstSubItem")}),p.jsx(E.List.Item,{fz:"sm",mt:2,children:n("editor.menu.lists.numberList.hint.secondSubItem")}),p.jsxs(E.List,{pl:22,withPadding:!0,listStyleType:"lower-roman",children:[p.jsx(E.List.Item,{fz:"sm",mt:2,children:n("editor.menu.lists.numberList.hint.firstSubSubItem")}),p.jsx(E.List.Item,{fz:"sm",mt:2,children:n("editor.menu.lists.numberList.hint.secondSubSubItem")})]})]})]})})}),p.jsx(E.Text,{px:"sm",pb:"sm",size:"xs",lh:"14px",children:n("editor.menu.lists.numberList.hint.description")})]}),ul:n=>p.jsxs(E.Group,{gap:10,style:{borderRadius:"var(--mantine-radius-lg)",backgroundColor:"var(--mantine-color-default-hover)"},children:[p.jsx(E.Group,{px:"sm",pt:"sm",w:"100%",gap:0,children:p.jsx(E.Group,{p:8,gap:0,w:"100%",h:150,className:"hintBoard",children:p.jsxs(E.List,{type:"unordered",mt:2,children:[p.jsx(E.List.Item,{fz:"sm",children:n("editor.menu.lists.numberList.hint.firstItem")}),p.jsx(E.List.Item,{fz:"sm",mt:2,children:n("editor.menu.lists.numberList.hint.secondItem")}),p.jsxs(E.List,{pl:18,listStyleType:"circle",children:[p.jsx(E.List.Item,{fz:"sm",mt:2,children:n("editor.menu.lists.numberList.hint.firstSubItem")}),p.jsx(E.List.Item,{fz:"sm",mt:2,children:n("editor.menu.lists.numberList.hint.secondSubItem")}),p.jsxs(E.List,{pl:22,withPadding:!0,listStyleType:"square",children:[p.jsx(E.List.Item,{fz:"sm",mt:2,children:n("editor.menu.lists.numberList.hint.firstSubSubItem")}),p.jsx(E.List.Item,{fz:"sm",mt:2,children:n("editor.menu.lists.numberList.hint.secondSubSubItem")})]})]})]})})}),p.jsx(E.Text,{px:"sm",pb:"sm",size:"xs",lh:"14px",children:n("editor.menu.lists.bulletList.hint.description")})]}),checkList:n=>p.jsxs(E.Group,{gap:10,style:{borderRadius:"var(--mantine-radius-lg)",backgroundColor:"var(--mantine-color-default-hover)"},children:[p.jsx(E.Group,{px:"sm",pt:"sm",w:"100%",gap:0,children:p.jsx(E.Group,{p:8,gap:0,w:"100%",h:150,className:"hintBoard",pt:"sm",children:p.jsxs(E.Checkbox.Group,{defaultValue:["indeterminate","checked"],mt:4,children:[p.jsx(E.Checkbox,{radius:"sm",size:"xs",value:"indeterminate",indeterminate:!0,pb:3,label:n("editor.menu.lists.checkList.hint.indeterminate")}),p.jsxs(E.Checkbox.Group,{pl:18,defaultValue:["indeterminate"],children:[p.jsx(E.Checkbox,{radius:"sm",size:"xs",value:"unchecked",py:3,label:n("editor.menu.lists.checkList.hint.unchecked")}),p.jsx(E.Checkbox,{radius:"sm",size:"xs",value:"indeterminate",indeterminate:!0,py:3,label:n("editor.menu.lists.checkList.hint.indeterminate")}),p.jsxs(E.Checkbox.Group,{pl:18,defaultValue:["check"],children:[p.jsx(E.Checkbox,{value:"check",size:"xs",radius:"sm",py:3,label:n("editor.menu.lists.checkList.hint.checked")}),p.jsx(E.Checkbox,{radius:"sm",size:"xs",value:"unchecked",py:3,label:n("editor.menu.lists.checkList.hint.unchecked")})]})]}),p.jsx(E.Checkbox,{radius:"sm",size:"xs",value:"checked",pt:3,label:n("editor.menu.lists.checkList.hint.checked")})]})})}),p.jsx(E.Text,{px:"sm",pb:"sm",size:"xs",lh:"14px",children:n("editor.menu.lists.checkList.hint.description")})]}),type:(n,e,t)=>r=>p.jsxs(E.Group,{gap:10,style:{borderRadius:"var(--mantine-radius-lg)",backgroundColor:"var(--mantine-color-default-hover)"},children:[p.jsx(E.Group,{px:"sm",pt:"sm",w:"100%",gap:0,children:p.jsxs(E.Group,{p:8,gap:0,w:"100%",h:150,align:"start",wrap:"nowrap",className:"hintBoard dsd__theme__callout-wrapper","data-emoji":n,"data-type":t,style:{backgroundColor:e},children:[p.jsx(E.Box,{children:p.jsx(E.Text,{w:26,mr:"sm",ta:"center",children:n})}),p.jsx(E.Text,{size:"sm",lh:"21px",children:r("editor.menu.callout.default.hint.body",{projectName:"Layers"})})]})}),p.jsx(E.Text,{px:"sm",pb:"sm",size:"xs",lh:"14px",children:r("editor.menu.callout.warning.hint.description")})]}),paragraph:n=>p.jsxs(E.Group,{gap:10,style:{borderRadius:"var(--mantine-radius-lg)",backgroundColor:"var(--mantine-color-default-hover)"},children:[p.jsx(E.Group,{px:"sm",pt:"sm",gap:0,children:p.jsx(E.Group,{p:8,pt:"sm",gap:0,className:"hintBoard",children:p.jsx(E.Text,{size:"sm",lh:"21px",children:n("editor.menu.main.paragraph.hint.text",{projectName:"Layers"})})})}),p.jsx(E.Text,{px:"sm",pb:"sm",size:"xs",lh:"14px",children:n("editor.menu.main.paragraph.hint.description")})]}),quote:n=>p.jsxs(E.Group,{gap:0,style:{borderRadius:"var(--mantine-radius-lg)",backgroundColor:"var(--mantine-color-default-hover)"},children:[p.jsx(E.Group,{p:"sm",gap:0,children:p.jsx(E.Group,{p:8,pt:"sm",gap:0,className:"hintBoard",children:p.jsx(E.Group,{gap:0,className:"quote",children:p.jsx(E.Text,{size:"sm",lh:"21px",children:n("editor.menu.main.quote.hint.text",{projectName:"Layers"})})})})}),p.jsx(E.Text,{px:"sm",pb:"sm",size:"xs",lh:"14px",children:n("editor.menu.main.quote.hint.description")})]}),collapse:n=>p.jsxs(E.Group,{gap:10,style:{borderRadius:"var(--mantine-radius-lg)",backgroundColor:"var(--mantine-color-default-hover)"},children:[p.jsx(E.Group,{px:"sm",pt:"sm",w:"100%",gap:0,children:p.jsx(E.Group,{p:8,pt:"sm",gap:0,w:"100%",h:150,className:"hintBoard",children:p.jsxs(E.List,{type:"unordered",children:[p.jsx(E.List.Item,{icon:p.jsx(z.IconTriangleFilled,{size:8,className:"rotate-90deg"}),fz:"sm",children:n("editor.menu.main.collapse.hint.firstItemEmpty")}),p.jsx(E.List.Item,{icon:p.jsx(z.IconTriangleFilled,{size:8,className:"rotate-180deg"}),fz:"sm",mt:2,children:n("editor.menu.main.collapse.hint.secondItem")}),p.jsxs(E.List,{pl:18,listStyleType:"circle",children:[p.jsx(E.List.Item,{fz:"sm",mt:3,icon:p.jsx(z.IconTriangleFilled,{size:8,className:"rotate-90deg"}),children:n("editor.menu.main.collapse.hint.firstSubItemEmpty")}),p.jsx(E.List.Item,{fz:"sm",mt:2,icon:p.jsx(z.IconTriangleFilled,{size:8,className:"rotate-180deg"}),children:n("editor.menu.main.collapse.hint.secondSubItem")}),p.jsxs(E.List,{pl:22,withPadding:!0,listStyleType:"square",children:[p.jsx(E.List.Item,{fz:"sm",mt:2,icon:p.jsx(z.IconTriangleFilled,{size:8,className:"rotate-90deg"}),children:n("editor.menu.main.collapse.hint.firstSubSubItemEmpty")}),p.jsx(E.List.Item,{fz:"sm",mt:2,icon:p.jsx(z.IconTriangleFilled,{size:8,className:"rotate-180deg"}),children:n("editor.menu.main.collapse.hint.secondSubSubItem")})]})]})]})})}),p.jsx(E.Text,{px:"sm",pb:"sm",size:"xs",lh:"14px",children:n("editor.menu.main.collapse.hint.description")})]}),divider:n=>p.jsxs(E.Group,{gap:10,style:{borderRadius:"var(--mantine-radius-lg)",backgroundColor:"var(--mantine-color-default-hover)"},children:[p.jsx(E.Group,{px:"sm",pt:"sm",gap:0,children:p.jsx(E.Group,{p:8,pt:"sm",gap:0,className:"hintBoard",children:p.jsxs(E.Box,{children:[p.jsx(E.Text,{size:"sm",lh:"21px",children:n("editor.menu.main.horizontal-rule.hint.topText")}),p.jsx(E.Divider,{my:"sm"}),p.jsx(E.Text,{size:"sm",lh:"21px",children:n("editor.menu.main.horizontal-rule.hint.bottomText")})]})})}),p.jsx(E.Text,{px:"sm",pb:"sm",size:"xs",lh:"14px",children:n("editor.menu.main.horizontal-rule.hint.description")})]}),table:n=>p.jsxs(E.Group,{gap:10,style:{borderRadius:"var(--mantine-radius-lg)",backgroundColor:"var(--mantine-color-default-hover)"},children:[p.jsx(E.Group,{px:"sm",pt:"sm",gap:0,children:p.jsx(E.Group,{gap:0,p:8,pt:"sm",className:"hintBoard",w:276,children:p.jsxs(E.Table,{p:8,withTableBorder:!0,withRowBorders:!0,withColumnBorders:!0,h:150,children:[p.jsx(E.Table.Thead,{children:p.jsxs(E.Table.Tr,{h:58,children:[p.jsxs(E.Table.Th,{fz:"sm",fw:400,miw:177,style:{position:"relative"},children:[p.jsx(E.ActionIcon,{className:"hintActionIcon",color:"var(--mantine-color-gray-light)",variant:"filled",size:14,style:{right:5,top:5},children:p.jsx($,{stroke:1,size:10,name:"chevron-down"})}),p.jsx(E.ActionIcon,{className:"hintActionIcon",color:"var(--mantine-color-gray-light)",variant:"filled",size:14,style:{left:-7.5,bottom:-7},children:p.jsx($,{stroke:1,size:10,name:"plus"})}),p.jsx(E.ActionIcon,{className:"hintActionIcon",color:"var(--mantine-color-gray-light)",variant:"filled",size:14,style:{right:-7.5,top:-7},children:p.jsx($,{stroke:1,size:10,name:"plus"})}),n("editor.menu.main.table.hint.firstRow")]}),p.jsx(E.Table.Th,{w:177,fz:"sm",fw:400})]})}),p.jsxs(E.Table.Tbody,{children:[p.jsxs(E.Table.Tr,{h:47,children:[p.jsx(E.Table.Td,{}),p.jsx(E.Table.Td,{})]}),p.jsxs(E.Table.Tr,{children:[p.jsxs(E.Table.Td,{miw:177,children:[" ",p.jsx(E.Checkbox,{mt:-19,radius:"sm",size:"xs",value:"checked",defaultChecked:!0,indeterminate:!0,label:n("editor.menu.lists.checkList.hint.indeterminate")})]}),p.jsx(E.Table.Td,{miw:177,children:p.jsx(E.Text,{fz:"sm",fw:400,children:n("editor.menu.main.table.hint.secondRow")})})]})]})]})})}),p.jsx(E.Text,{px:"sm",pb:"sm",size:"xs",lh:"14px",children:n("editor.menu.main.table.hint.description")})]}),grid:n=>p.jsxs(E.Group,{gap:10,style:{borderRadius:"var(--mantine-radius-lg)",backgroundColor:"var(--mantine-color-default-hover)"},children:[p.jsx(E.Group,{px:"sm",pt:"sm",gap:0,children:p.jsx(E.Group,{gap:0,p:8,className:"hintBoard",w:276,children:p.jsxs(E.Flex,{align:"flex-start",gap:"sm",children:[p.jsx(E.Text,{size:"sm",lh:"21px",miw:180,children:n("editor.menu.main.grid.hint.firstColumn")}),p.jsx(E.Text,{size:"sm",lh:"21px",miw:180,children:n("editor.menu.main.grid.hint.secondColumn",{projectName:"Layers"})})]})})}),p.jsx(E.Text,{px:"sm",pb:"sm",size:"xs",lh:"14px",children:n("editor.menu.main.grid.hint.description")})]}),code:n=>p.jsxs(E.Group,{gap:10,style:{borderRadius:"var(--mantine-radius-lg)",backgroundColor:"var(--mantine-color-default-hover)"},children:[p.jsx(E.Group,{px:"sm",pt:"sm",gap:0,children:p.jsx(E.Group,{px:8,gap:0,className:"hintBoard",children:p.jsx(E.Image,{style:{flex:1},radius:"sm",fit:"cover",src:PL,w:"110%",h:"110%"})})}),p.jsx(E.Text,{px:"sm",pb:"sm",size:"xs",lh:"14px",children:n("editor.menu.main.code.hint.description")})]}),image:n=>p.jsxs(E.Group,{gap:10,style:{borderRadius:"var(--mantine-radius-lg)",backgroundColor:"var(--mantine-color-default-hover)"},children:[p.jsx(E.Group,{px:"sm",pt:"sm",gap:0,children:p.jsx(E.Image,{style:{border:"1px solid #E9ECEF",flex:1},radius:"sm",fit:"cover",src:FL,w:"100%",h:"100%"})}),p.jsx(E.Text,{px:"sm",pb:"sm",size:"xs",lh:"14px",children:n("editor.menu.media.photo.hint.description")})]}),video:n=>p.jsxs(E.Group,{gap:10,style:{borderRadius:"var(--mantine-radius-lg)",backgroundColor:"var(--mantine-color-default-hover)"},children:[p.jsxs(E.Group,{px:"sm",pt:"sm",gap:0,children:[p.jsx(E.Image,{style:{border:"1px solid var(--mantine-color-default-border)",flex:1},radius:"sm",fit:"cover",src:BL,w:"100%",h:"100%"}),p.jsx(E.Box,{w:274,style:{display:"flex",justifyContent:"center",alignItems:"center",position:"absolute"},children:p.jsx(z.IconPlayerPlayFilled,{size:32})})]}),p.jsx(E.Text,{px:"sm",pb:"sm",size:"xs",lh:"14px",children:n("editor.menu.media.video.hint.description")})]})};function An(n,e,t){return t.filter(r=>n(r)).map(r=>e(r))}const zL=["editor.menu.lists.bulletList.keywords.bulletsAlt1","editor.menu.lists.bulletList.keywords.bulletsAlt2"],WL=["editor.menu.main.paragraph.keywords.paragraph","editor.menu.main.paragraph.keywords.text"],UL=["editor.menu.main.quote.keywords.quote","editor.menu.main.quote.keywords.mark","editor.menu.main.quote.keywords.citation"],KL=["editor.menu.main.collapse.keywords.collapsibleList","editor.menu.main.collapse.keywords.expandList","editor.menu.main.collapse.keywords.hideList","editor.menu.main.collapse.keywords.turnList"],HL=["editor.menu.main.horizontalRule.keywords.divider","editor.menu.main.horizontalRule.keywords.horizontalLine","editor.menu.main.horizontalRule.keywords.border"],YL=["editor.menu.main.table.keywords.table"],VL=["editor.menu.main.grid.keywords.net","editor.menu.main.grid.keywords.grid","editor.menu.main.grid.keywords.columns"],GL=["editor.menu.main.code.keywords.code","editor.menu.main.code.keywords.snippet"],ZL=["editor.menu.media.photo.keywords.picture","editor.menu.media.photo.keywords.display","editor.menu.media.photo.keywords.meme","editor.menu.media.photo.keywords.drawing","editor.menu.media.photo.keywords.memePic"],JL=["editor.menu.media.form.keywords"],XL=["editor.menu.media.video.keywords.video"],ny=(n,e,t)=>{const r=l=>t?An(t,e,l):[],s=r(zL),o=r([`editor.menu.lists.${n}List.keywords.heading`,`editor.menu.lists.${n}List.keywords.headingList`,`editor.menu.lists.${n}List.keywords.markers`]);return({number:["numberedlist","orderedlist","ol","numbers"],bullet:["bulletedlist","unorderedlist","ul","bullets"],check:["checklist","todolist","check","done","shoppinglist"]}[n]||[]).concat(s,o)},ts=(n,e,t)=>{const r=t?An(t,e,WL):[],s=t?An(t,e,UL):[],o=t?An(t,e,KL):[],i=t?An(t,e,HL):[],l=t?An(t,e,YL):[],a=t?An(t,e,VL):[],c=t?An(t,e,GL):[];switch(n){case"paragraph":return["normal","paragraph","p","text","paragraf"].concat(r);case"quote":return["blockquote","quote"].concat(s);case"collapse":return["collapse","collapsiblelist","toggle"].concat(o);case"horizontal-rule":return["horizontalrule","divider","hr","line"].concat(i);case"table":return["table","spreadsheet","rows","columns"].concat(l);case"grid":return["columns","layout","grid"].concat(a);case"code":return["javascript","python","js","codeblock","code","snippet"].concat(c)}},Vu=(n,e,t)=>{const r=t?An(t,e,ZL):[],s=t?An(t,e,JL):[],o=t?An(t,e,XL):[];switch(n){case"photo":return["image","photo","picture","img","file","png","jpg","jpeg"].concat(r);case"form":return["form","embed"].concat(s);case"video":return["youtube","rutube","vkvideos","video","mp4","webm"].concat(o)}},Nt={size:18},QL=[{type:"number",command:Mc,name:"editor.menu.lists.numberList.name",iconName:"number",hint:yt.ol,description:"editor.menu.lists.numberList.subtitle"},{type:"bullet",command:jh,name:"editor.menu.lists.bulletList.name",iconName:"bullet",hint:yt.ul,description:"editor.menu.lists.bulletList.subtitle"},{type:"check",command:Ph,name:"editor.menu.lists.checkList.name",iconName:"check",hint:yt.checkList,description:"editor.menu.lists.checkList.subtitle"}],qL=[{type:"default",command:"default",name:"editor.menu.callout.default.name",iconName:"defaultOff",hint:yt.type("🙂","","default"),description:"editor.menu.callout.default.subtitle"},{type:"alert",command:"alert",name:"editor.menu.callout.alert.name",iconName:"alert",hint:yt.type("❗","rgba(255, 224, 223, 1)","alert"),description:"editor.menu.callout.alert.subtitle"},{type:"success",command:"success",name:"editor.menu.callout.success.name",iconName:"success",hint:yt.type("✅","rgba(219, 242, 233, 1)","success"),description:"editor.menu.callout.success.subtitle"},{type:"warning",command:"warning",name:"editor.menu.callout.warning.name",iconName:"warning",hint:yt.type("⚠️","rgba(254, 247, 230)","warning"),description:"editor.menu.callout.warning.subtitle"}],$L=n=>({1:n("editor.menu.heading.h1.subtitle"),2:n("editor.menu.heading.h2.subtitle"),3:n("editor.menu.heading.h3.subtitle")}),It=(n,e,t)=>{n.update(()=>{let r=Ke();if(!t&&((r==null?void 0:r.__type)==="text"||(r==null?void 0:r.__type)==="listitem")){const s=re(),{lexicalNode:o}=Ao(r,n,{root:!0,"layout-item":!0,callout:!0,"collapsible-content":!0});s.append(),o==null||o.insertAfter(s).selectStart(),e(s)}else e(r)})};function qv(n){return n?"active dropdown-item-active":""}const $v={flip:!0,size:{padding:8,apply({availableHeight:n,elements:e,y:t,placement:r}){requestAnimationFrame(()=>{Object.assign(e.floating.style,{maxHeight:`${n>=425?425:n}px`})})}}};function ex({editor:n,isToolbar:e,excludeNodes:t,t:r,exists:s}){const o=$L(r),i=l=>{switch(l){case 1:return["heading1","hone","h1",r("editor.menu.heading.h1.keywords.headerOne")];case 2:return["heading2","htwo","h2",r("editor.menu.heading.h2.keywords.headerTwo")];case 3:return["heading3","hthree","h3",r("editor.menu.heading.h3.keywords.headerThree")]}};return[{key:"heading",name:r("editor.menu.heading.title").toUpperCase(),blocks:[1,2,3].map(l=>({parentKey:"heading",name:`${r("editor.heading.name")} ${l}`,description:o[l]||"Добавите заголовок",hint:yt.header(r,l),keywords:[`${i(l)}`,`${r(`editor.menu.heading.h${l}.keywords.header${l}`)}`,`${r(`editor.menu.heading.h${l}.keywords.heading`)}`,`${r(`editor.menu.heading.h${l}.keywords.h${l}`)}`],icon:p.jsx($,{...Nt,radius:"xs",name:`h${l}`}),key:`${l}`,hide:t[`${l}`],onSelect:()=>{It(n,()=>{const a=R();Yo(a,()=>Nr(`h${l}`))},e)}}))},{key:"list",name:r("editor.menu.lists.title").toUpperCase(),blocks:QL.map(({type:l,command:a,iconName:c,hint:u,description:d,name:f})=>({parentKey:"list",name:r(f),description:r(d),icon:p.jsx($,{...Nt,name:c}),keywords:[`${ny(l,r,s)}`],key:l,hint:u(r),hide:t[l],onSelect:()=>It(n,()=>{n.dispatchCommand(a,void 0)},e)}))},{key:"main",name:r("editor.menu.main.title").toUpperCase(),blocks:[{parentKey:"main",name:r("editor.menu.main.paragraph.name"),description:r("editor.menu.main.paragraph.subtitle"),icon:p.jsx($,{...Nt,name:"paragraph"}),keywords:[`${ts("paragraph",r,s)}`],key:"paragraph",hint:yt.paragraph(r),hide:t.paragraph,onSelect:()=>It(n,()=>{const l=R();Yo(l,()=>re())},e)},{parentKey:"main",name:r("editor.menu.main.quote.name"),description:r("editor.menu.main.quote.subtitle"),icon:p.jsx($,{...Nt,name:"quote"}),keywords:[`${ts("quote",r,s)}`],key:"quote",hint:yt.quote(r),hide:t.quote,onSelect:()=>It(n,()=>{const l=R();Yo(l,()=>Ic())},e)},{parentKey:"main",name:r("editor.menu.main.collapse.name"),description:r("editor.menu.main.collapse.subtitle"),icon:p.jsx($,{...Nt,name:"caret-right"}),keywords:[`${ts("collapse",r,s)}`],key:"caret-right",hint:yt.collapse(r),hide:e||t["caret-right"],onSelect:()=>It(n,()=>{n.dispatchCommand(Vv,void 0)},e)},{parentKey:"main",name:r("editor.menu.main.horizontal-rule.name"),description:r("editor.menu.main.horizontal-rule.subtitle"),icon:p.jsx($,{...Nt,name:"horizontal-rule"}),keywords:[`${ts("horizontal-rule",r,s)}`],hint:yt.divider(r),hide:e||t["horizontal-rule"],key:"horizontal-rule",onSelect:()=>{It(n,l=>{n.dispatchCommand(CC,void 0),!(l!=null&&l.getTextContent())&&!sg(l==null?void 0:l.getParent())&&(l==null||l.remove())},e)}},{parentKey:"main",name:r("editor.menu.main.table.name"),description:r("editor.menu.main.table.subtitle"),icon:p.jsx($,{...Nt,name:"table"}),keywords:[`${ts("table",r,s)}`],key:"table",hint:yt.table(r),hide:e||t.table,onSelect:()=>It(n,()=>{n.dispatchCommand(Wc,{columns:"4",includeHeaders:!1,rows:"3"})},e)},{parentKey:"main",name:r("editor.menu.main.grid.name"),description:r("editor.menu.main.grid.subtitle"),icon:p.jsx($,{...Nt,name:"grid"}),keywords:[`${ts("grid",r,s)}`],hide:e||t.grid,hint:yt.grid(r),key:"grid",onSelect:()=>It(n,()=>{n.dispatchCommand(vg,"50% 50%")},e)},{parentKey:"main",name:r("editor.menu.main.code.name"),description:r("editor.menu.main.code.subtitle"),icon:p.jsx($,{...Nt,name:"code"}),keywords:[`${ts("code",r,s)}`],key:"code",hint:yt.code(r),hide:t.code,onSelect:()=>It(n,()=>{const l=R();Yo(l,()=>YC())},e)}]},{key:"callout",name:r("editor.menu.callout.title").toUpperCase(),blocks:qL.map(({type:l,command:a,iconName:c,hint:u,description:d,name:f})=>({parentKey:"callout",name:r(f),description:r(d),icon:p.jsx($,{...Nt,name:c}),keywords:[`${ny(l,r,s)}`,`${r(`editor.menu.callout.${l}.keywords.heading`)}`,`${r(`editor.menu.callout.${l}.keywords.headingList`)}`,`${r(`editor.menu.callout.${l}.keywords.markers`)}`],key:l,hint:u(r),hide:t[l],onSelect:()=>{It(n,()=>{n.dispatchCommand(Yh,a)},e)}}))},{key:"media",name:r("editor.menu.media.title").toUpperCase(),blocks:[{parentKey:"media",name:r("editor.menu.media.photo.name"),description:r("editor.menu.media.photo.subtitle"),icon:p.jsx($,{...Nt,name:"photo"}),keywords:[`${Vu("photo",r,s)}`],hide:e||t.photo,hint:yt.image(r),key:"photo",onSelect:()=>{It(n,()=>{n.dispatchCommand(Vr,{altText:"new-image",src:"",create:!0})},e)}},{parentKey:"media",name:r("editor.menu.media.form.name"),description:r("editor.menu.media.form.subtitle"),keywords:[`${Vu("form",r,s)}`],icon:p.jsx($,{...Nt,name:"form"}),hide:e||t.form,key:"form",onSelect:()=>{It(n,()=>{n.dispatchCommand(LL,"dudoc-form")},e)}},{parentKey:"media",name:r("editor.menu.media.video.name"),description:r("editor.menu.media.video.subtitle"),hint:yt.video(r),keywords:[`${Vu("video",r,s)}`],icon:p.jsx($,{...Nt,name:"youtube"}),key:"video",hide:e||t.video,onSelect:()=>{It(n,()=>{n.dispatchCommand(Xv,"")},e)}}]},{key:"other",name:r("editor.menu.other.title").toUpperCase(),blocks:[{parentKey:"other",name:r("editor.menu.other.documents.name"),description:r("editor.menu.other.documents.subtitle"),icon:p.jsx($,{...Nt,name:"book2"}),keywords:["page","document","child"],hide:e||t.childDocs,key:"childDocuments",onSelect:()=>{It(n,()=>{n.dispatchCommand(Wv,void 0)},e)}},{parentKey:"other",name:r("editor.menu.other.emoji.name"),description:r("editor.menu.other.emoji.subtitle"),icon:p.jsx($,{...Nt,name:"emoji"}),keywords:["emoji","smile"],key:"emoji",hide:e||t.emoji,onSelect:()=>{n.update(()=>{const l=R();if(M(l)){const a=l.anchor.getNode(),u=a.getTextContent()+":",d=hr(u.trim());u.length===1&&a instanceof De?a.append(d):a.replace(d),d.select()}})}}]},{key:"integrations",name:r("editor.menu.integrations.title").toUpperCase(),blocks:[...Lo.map(l=>({...l,keywords:["iframe",...l.keywords],onSelect:()=>{It(n,()=>{l.platform==="swagger"?n.dispatchCommand(Jv,""):n.dispatchCommand(Cg,"")},e)},hide:(l.platform==="swagger",e)}))]}]}const eM=(n,e,t)=>{var r;return(e==null?void 0:e.__key)!==t.current.key&&(t.current={show:!0,key:e.__key,isCheck:!0}),e&&t.current.show&&t.current.isCheck&&(ae(e,fs)||ae(e,Oe)||((r=ae(e,Re))==null?void 0:r.__checked)!==void 0)&&(t.current={show:!1,key:e.__key,isCheck:!1}),t.current.show&&(e==null?void 0:e.__key)===t.current.key&&(t.current={show:!0,key:(e==null?void 0:e.__key)||"",isCheck:!1}),t.current.show?n:""};class tx extends JC{constructor(t,r,s,o,i,l){super(t);Z(this,"key");Z(this,"title");Z(this,"description");Z(this,"icon");Z(this,"keywords");Z(this,"keyboardShortcut");Z(this,"onSelect");Z(this,"hide");Z(this,"parentKey");Z(this,"index");Z(this,"hint");this.key=t,this.title=r,this.hide=o,this.description=s,this.keywords=l.keywords||[],this.icon=l.icon,this.hint=l.hint,this.parentKey=i,this.index=0,this.keyboardShortcut=l.keyboardShortcut,this.onSelect=l.onSelect.bind(this)}}function tM({index:n,isSelected:e,onClick:t,onMouseEnter:r,option:s}){return p.jsxs(E.HoverCard,{width:300,openDelay:200,closeDelay:0,shadow:"md",disabled:window.innerWidth<=800,position:"right",zIndex:1001,offset:-20,children:[p.jsx(E.HoverCard.Target,{children:p.jsxs("li",{tabIndex:-1,style:s.description?{padding:"12px 8px",flex:1}:{padding:"6px 8px",flex:1},className:"item",role:"option",id:"typeahead-item-"+n,ref:s.setRefElement,"aria-selected":e,onMouseEnter:r,onClick:t,"data-selected":e,children:[s.icon,p.jsxs(E.Flex,{gap:0,direction:"column",justify:s.description?"flex-start":"center",ml:"sm",children:[p.jsx(E.Text,{style:{alignSelf:"flex-start"},mb:0,size:"sm",h:16,children:s.title}),s.description&&p.jsx(E.Text,{style:{alignSelf:"flex-start"},c:"dimmed",size:"xs",mb:0,h:14,children:s.description})]})]},s.key)}),s.hint&&p.jsx(E.HoverCard.Dropdown,{p:0,style:{borderRadius:"var(--mantine-radius-lg)"},children:s.hint})]})}function nM(n,e){const t=[];if(e==null)return t;const r=e.match(/^([1-9]\d?)(?:x([1-9]\d?)?)?$/);if(r!==null){const s=r[1],o=r[2]?[r[2]]:[1,2,3,4,5,6,7,8,9,10].map(String);t.push(...o.map(i=>new tx("table",`${s}x${i} Table`,"",!1,"heading",{icon:p.jsx("i",{className:"icon table"}),keywords:["table"],onSelect:()=>n.dispatchCommand(Wc,{columns:i,rows:s})})))}return t}function rM({editor:n,excludeNodes:e,t}){const r=ex({editor:n,isToolbar:!1,excludeNodes:e,t});let s=[],o={};r.forEach(l=>{o[l.key]=l,s=[...s,...l.blocks]});let i=[];return s.forEach(l=>{l.hide||(i=[...i,new tx(l.key,l.name,l.description,l.hide,l.parentKey,{hint:l.hint,icon:l.icon,keywords:l.keywords,onSelect:l.onSelect})])}),{groupedOptions:o,baseOptions:i}}function xg({mode:n,setOpenedMenu:e,opened:t}){const[r]=ie(),s=x.useRef({show:!0,key:"",isCheck:!0}),[o,i]=x.useState(null),{t:l}=We.useTranslation(),{fetchUploadImage:a,excludeNodes:c}=x.useContext(Gt),u=Uh("/",{minLength:0}),{options:d,groupOptions:f,groupedInitialOptions:g}=x.useMemo(()=>{const{groupedOptions:y,baseOptions:w}=rM({editor:r,excludeNodes:c,t:l}),v=_=>{const k=_.reduce((T,D,L)=>{const N=D.parentKey;return T[N]||(T[N]=[]),T[N].push({...D,index:L}),T},{});return Object.entries(k).map(([T,D])=>({name:T,items:D}))};if(!o)return{options:w,groupOptions:v(w),groupedInitialOptions:y};const S=new RegExp(o,"i"),C=[...nM(r,o),...w.filter(_=>S.test(_.title)||_.keywords.some(k=>S.test(k)))];return{options:C,groupOptions:v(C),groupedInitialOptions:y}},[r,a,n,o]),h=x.useCallback((y,w,v,S)=>{r.update(()=>{w==null||w.remove(),y.onSelect(S),v()})},[r]),m=y=>{const w=y.target;(!(w!=null&&w.closest(".editor-scroller"))||w instanceof HTMLButtonElement)&&(e(!1),document.removeEventListener("click",m))};x.useEffect(()=>(t&&document.addEventListener("click",m),()=>{document.removeEventListener("click",m)}),[t]);const A=()=>{setTimeout(()=>{e(!0)},50)},b=(y,w)=>{if(y.substring(0,1)!=="/")return u(y,w);const S=Ke();if(!S)return u(y,w);const C=eM(y,S,s);return A(),u(C,w)};return p.jsx(p.Fragment,{children:p.jsx(Kh,{onQueryChange:i,onSelectOption:h,triggerFn:b,options:d,onOpen:A,anchorClassName:"reset-anchor",onClose:()=>{e(!1)},menuRenderFn:(y,{selectedIndex:w,selectOptionAndCleanUp:v,setHighlightedIndex:S})=>p.jsx(p.Fragment,{children:y.current&&p.jsx(E.Portal,{target:y.current||document.body,children:p.jsxs(E.Menu,{shadow:"md",opened:t,loop:!1,trapFocus:!1,menuItemTabIndex:0,styles:{dropdown:{overflow:"auto",zIndex:1e3,display:d.length?"block":"none"}},middlewares:{flip:!0,size:{padding:8,apply({availableHeight:C,elements:_,y:k,placement:T}){requestAnimationFrame(()=>{Object.assign(_.floating.style,{maxHeight:`${C>=425?425:C}px`,top:T==="top-start"?`${k-20}px`:`${k}px`})})}}},closeOnItemClick:!1,position:"bottom-start",transitionProps:yr,children:[p.jsx(E.Menu.Target,{children:p.jsx("span",{})}),p.jsx(E.Menu.Dropdown,{className:"typeahead-popover component-picker-menu",children:f.map(C=>{const _=g[C.name].name;return p.jsxs("div",{children:[p.jsx(E.Text,{ml:8,mt:12,size:"xs",c:"dimmed",children:_}),p.jsx("ul",{children:C.items.length&&C.items.map(k=>p.jsx(tM,{index:k.index,isSelected:w===k.index,onClick:()=>{S(k.index),v(k)},onMouseEnter:()=>{S(k.index)},option:k},k.key))})]},_)})})]})})})})})}const sM=n=>n.getEditorState().read(()=>fe().getChildrenKeys()).map(t=>({key:t,node:ue(t),htmlElement:n.getElementByKey(t)})),oM=(n,e)=>{let t;if(or(n)){const o=n.getTag();switch(t=e("editor.heading.name"),o){case"h1":{t+=" 1";break}case"h2":{t+=" 2";break}case"h3":{t+=" 3";break}case"h4":{t+=" 4";break}case"h5":{t+="5";break}case"h6":{t+="6";break}}}const r=ae(n,Oe),s=ae(n,fs);return at(n)&&!r&&!s&&(t=e("editor.placeholder")),t},Gu="node-placeholder";let jl=null;const iM=n=>n instanceof HTMLHeadingElement,lM=({selection:n,editor:e,t})=>{var i,l,a,c;const r=sM(e);if(r[0]&&r.length===0&&r[0].htmlElement&&!iM(r[0].htmlElement)){(l=(i=e.getElementByKey(n.anchor.getNode().__key))==null?void 0:i.classList)==null||l.remove(Gu);return}const s=n.anchor,o=oM(s.getNode(),t);if(o){const u=e.getElementByKey(s.key);u==null||u.classList.add(Gu),u==null||u.setAttribute("data-placeholder",o),jl&&jl!==s.key&&((c=(a=e.getElementByKey(jl))==null?void 0:a.classList)==null||c.remove(Gu)),jl=s.key}},aM=(n,e)=>{n.getEditorState().read(()=>{const t=R();M(t)&&lM({selection:t,editor:n,t:e})})},nx=()=>{const[n]=ie(),{t:e}=We.useTranslation();return x.useEffect(()=>n.registerUpdateListener(()=>{aM(n,e)}),[n]),null};function Pl(n){return n instanceof HTMLElement}const cM=n=>{const e=document.querySelectorAll(".selected-block");if(e.length===0)return;const t=s=>{const o=s.target;o.closest(".draggable-block-menu")||o.closest(".mantine-Menu-dropdown")||(e.forEach(i=>{Ri(i)}),document.body.removeEventListener("mousedown",t))},r=s=>{s instanceof KeyboardEvent&&s.key==="Escape"&&(e.forEach(i=>{Ri(i)}),document.body.removeEventListener("keydown",r));const o=e[0].previousSibling;s instanceof KeyboardEvent&&s.key!=="Backspace"&&s.key!=="Delete"||(e.forEach(i=>{n.update(()=>{let l=he(i);l==null||l.remove()})}),setTimeout(()=>{n.update(()=>{var i;o&&((i=he(o))==null||i.selectEnd())})}),document.removeEventListener("keydown",r))};setTimeout(()=>{document.body.addEventListener("mousedown",t),document.addEventListener("keydown",r)})},uM={container:document.body,getScrollPosition:()=>[document.documentElement.scrollLeft,document.documentElement.scrollTop],throttleTime:30,threshold:0},ry=(n,e,t)=>function r(s){if(s instanceof KeyboardEvent&&s.key!=="Backspace"&&s.key!=="Delete"&&s.key!=="Escape")return!1;const o=s.target;o.closest(".draggable-block-menu")||o.closest(".mantine-Menu-dropdown")||(n==null||n.classList.remove(e),t.update(()=>{o.closest(".ContentEditable__root")||Ie(null),s instanceof KeyboardEvent&&e==="selected-all-document"&&s.key!=="Escape"&&t.update(()=>{var l;(l=fe().getFirstChild())==null||l.selectStart()}),s instanceof KeyboardEvent&&e==="selected-all-document"&&s.key==="Escape"&&t.blur()}),setTimeout(()=>{document.body.removeEventListener("mousedown",r),document.removeEventListener("keydown",r)}))},rx=(n,e)=>{var t,r;if(e&&e.block){const{block:s,isCreateEventListener:o}=e,i="selected-block";if(s.classList.add(i),s.classList.remove("selected-block-hidden"),o){const l=ry(s,i,n);document.body.addEventListener("mousedown",l),document.addEventListener("keydown",l)}}else{const s="selected-all-document",o=ry(n._rootElement,s,n);document.body.addEventListener("mousedown",o),document.addEventListener("keydown",o),(t=n._rootElement)==null||t.classList.add(s),(r=n._rootElement)==null||r.classList.remove("selected-block-hidden")}},Ri=n=>{n.classList.remove("selected-block"),n.classList.add("selected-block-hidden")},sy=n=>{n.querySelectorAll(".selected-block").forEach(t=>{Ri(t)})},dM=(n,e)=>{n.added.forEach(t=>{rx(e,{block:t,isCreateEventListener:!1})}),n.removed.forEach(t=>{Ri(t)})},fM=({hoveredButton:n,insertNewParagraph:e,currentDraggableBlockRef:t,setHoveredButton:r,isClickedBlockRef:s,setDraggableBlockElem:o,editor:i,t:l})=>p.jsx("div",{className:`icon add-block-menu ${n?"active":""}`,onClick:()=>{e({blockElement:t.current.htmlElement,editor:i,isTop:!1,isClickedBlockRef:s,setDraggableBlockElem:o}),r("both")},onMouseEnter:()=>{r("bottom")},onMouseLeave:()=>{r("both")},children:p.jsx(E.Tooltip,{openDelay:300,label:l("editor.hoverOptions.addNewBlockAbove"),position:"bottom",disabled:s.current||!n,children:p.jsx(E.ActionIcon,{radius:"sm",color:"gray",size:"xs",variant:"subtle","aria-label":"Settings",children:n==="bottom"?p.jsx(z.IconPlus,{}):p.jsx(z.IconMinus,{})})})}),hM=({hoveredButton:n,insertNewParagraph:e,currentDraggableBlockRef:t,setHoveredButton:r,isClickedBlockRef:s,setDraggableBlockElem:o,editor:i,t:l})=>p.jsx("div",{className:`icon add-block-menu add-block-menu_top ${n?"active":""}`,onClick:()=>{e({blockElement:t.current.htmlElement,editor:i,isTop:!0,isClickedBlockRef:s,setDraggableBlockElem:o}),r("both")},onMouseEnter:()=>{r("top")},onMouseLeave:()=>{r("both")},children:p.jsx(E.Tooltip,{disabled:s.current||!n,openDelay:300,label:l("editor.hoverOptions.addNewBlockBelow"),position:"top",children:p.jsx(E.ActionIcon,{radius:"sm",color:"gray",size:"xs",variant:"subtle","aria-label":"Settings",children:n==="top"?p.jsx(z.IconPlus,{}):p.jsx(z.IconMinus,{})})})}),Zu=({label:n,icon:e})=>p.jsxs("div",{className:"custom-menu-item",children:[p.jsxs("div",{children:[e,p.jsx("span",{children:n})]}),p.jsx($,{name:"chevron-right"})]});function gM({onClose:n,children:e,title:t,size:r}){return p.jsx(E.Modal,{className:"doc-space-editor-wrapper",size:r,centered:!0,opened:!0,onClose:n,title:t,zIndex:999,children:e})}function Sg(n){const[e,t]=x.useState(null),r=x.useCallback(()=>{t(null)},[]),s=x.useMemo(()=>{if(e===null)return null;const{title:i,content:l,closeOnClickOutside:a}=e;return p.jsx(gM,{onClose:r,title:i,size:"lg",closeOnClickOutside:a,children:l})},[e,r]),o=x.useCallback((i,l,a=!1)=>{t({closeOnClickOutside:a,content:l(r),title:i})},[r]);return[s,o]}const pM={bullet:"Маркированный список",check:"Чек-лист",code:"Кодовый блок",h1:"Заголовок 1",h2:"Заголовок 2",h3:"Заголовок 3",h4:"Заголовок 4",h5:"Заголовок 5",h6:"Заголовок 6",number:"Нумерованный список",paragraph:"Параграф",quote:"Цитата"};function sx({editor:n,blockType:e,disabled:t=!1,mode:r,fetchUploadImage:s,excludeNodes:o,children:i,menuProps:l,onChange:a}){const[c,u]=Sg(),{t:d}=We.useTranslation(),f=x.useMemo(()=>ex({editor:n,isToolbar:!0,excludeNodes:o,t:d}).map(g=>({...g,blocks:g.blocks.filter(h=>!h.hide)})),[n,u,s,r]);return p.jsxs(p.Fragment,{children:[c,p.jsxs(E.Menu,{shadow:"md",styles:{dropdown:{overflow:"auto",zIndex:1e3}},middlewares:$v,position:"bottom-start",transitionProps:yr,...l,children:[p.jsx(E.Menu.Target,{children:i||p.jsx(E.Tooltip,{label:d("editor.toolbar.turnInto"),children:p.jsxs("button",{disabled:t,className:"toolbar-item block-controls","aria-label":"Formatting options for text style",title:pM[e],type:"button",children:[p.jsx($,{size:18,mr:5,name:e}),p.jsx($,{name:"chevron-down"})]})})}),p.jsx(E.Menu.Dropdown,{children:f.map(g=>p.jsxs("div",{children:[g.blocks.length!==0&&p.jsx(E.Menu.Label,{children:g.name}),g.blocks.map(h=>p.jsx(x.Fragment,{children:p.jsx(E.Menu.Item,{className:"item "+qv(h.key==="1"),leftSection:h.icon,onClick:()=>{h.onSelect(),a&&a()},children:h.name})},h.key))]},g.key))})]})]})}const oy=n=>{const e=n._rootElement;return Array.from(e.querySelectorAll(".selected-block"))},iy=(n,e,t,r)=>{if(t)if(r==="layout"){const s=t.getParent(),o=s.getParent();Oi(n,s,o),e("delete")}else{const s=t==null?void 0:t.getParent();if(s instanceof Vt&&s.getChildren().length===2){const o=s,i=s.getParent();if(t.__type==="image"){o.append(re());return}Oi(n,o,i)}GC(n,t),e("delete")}},gf=(n,e,t,r=!1)=>{e&&n.update(()=>{const s=n.getElementByKey(e.getParent().getKey());wL(n,s,t,r)})},mM=(n,e,t,r)=>{if(r==="layout")gf(n,t,"right",!0);else{const s=n._rootElement,o=Array.from(s.querySelectorAll(".selected-block")).reverse();o.length&&(n.update(()=>{const i=he(o[0]);o.forEach(l=>{let a=he(l);a&&(i==null||i.insertAfter(Bh(a))),Ri(l)})}),e())}},AM=({editor:n,onChange:e,currentEditorNode:t,textBlock:r,t:s,isDisabledAddColumnButton:o,disabledMoveColumnButtons:i})=>{const{fetchUploadImage:l,excludeNodes:a}=x.useContext(Gt),[c,u]=x.useState("inherit"),[d,f]=x.useState("inherit"),[g,h]=x.useState("inherit"),[m,A]=x.useState("");x.useEffect(()=>{const C=t==null?void 0:t.__type;n.read(()=>{var _;((_=t==null?void 0:t.getParent())==null?void 0:_.__type)==="layout-item"?A("layout"):A(C==="callout-wrapper"?C:"block")})},[t==null?void 0:t.__key]);const b=C=>C.split(";").filter(Boolean).reduce((_,k)=>{const[T,D]=k.split(":").map(L=>L.trim());return T&&D&&(_[T]=D),_},{}),y=C=>Object.entries(C).map(([_,k])=>`${_}: ${k}`).join("; "),w=x.useCallback(C=>{n.update(()=>{const _=oy(n).map(T=>he(T)).filter(Boolean),k=T=>{if(typeof T.getStyle=="function"&&typeof T.setStyle=="function"){const D=b(T.getStyle());D.color=C.color,D["background-color"]=C.bgColor,T.setStyle(y(D)),u(C.bgColor),h(C.color)}};_.forEach(T=>{if(T instanceof fn){T.getChildren().forEach(D=>{const L=D.getFirstChild();L instanceof _n&&k(L)});return}if(T instanceof De){const D=T.getFirstChild();D instanceof _n&&k(D)}})})},[u,h]),v=(C,_)=>{const k=_||m;k==="callout-wrapper"&&t instanceof Yr?n.update(()=>{const T=bM(C);t.setType(T?C.meta.type:void 0),t.setBackgroundColor(C.value)}):k==="layout-color"?n.update(()=>{const T=t==null?void 0:t.getParent(),D=C.value===d?"inherit":C.value;T instanceof Vt&&T.setLayoutBackground(D)}):w({color:g,bgColor:c,[C.mode==="background"?"bgColor":C.mode]:C.value})},S=C=>{const _=oy(n);_.length?_.forEach(k=>{n.update(()=>{let T=he(k);T&&iy(n,e,T,C)})}):n.update(()=>{let k=he(_[0]);iy(n,e,k,C)})};return x.useEffect(()=>{setTimeout(()=>{n.read(()=>{if(m==="callout-wrapper"&&t instanceof Yr){u(t.__backgroundColor);return}const C=t==null?void 0:t.getParent();C instanceof Vt&&f(C.__backgroundColor);const _=R();M(_)&&(h(xa(_,"color","inherit")),u(xa(_,"background-color","inherit")))})})},[]),p.jsxs(p.Fragment,{children:[p.jsx(E.Menu.Item,{onClick:()=>{S("block")},leftSection:p.jsx(z.IconTrash,{style:{width:E.rem(14),height:E.rem(14)}}),children:s("editor.contextMenu.delete")}),p.jsx(E.Menu.Item,{disabled:m==="layout"&&o,onClick:()=>mM(n,e,t,m),leftSection:p.jsx(z.IconCopy,{style:{width:E.rem(14),height:E.rem(14)}}),children:s("editor.contextMenu.duplicate")}),r==="text"&&m!=="callout-wrapper"&&p.jsxs(p.Fragment,{children:[p.jsx(E.Menu.Divider,{}),p.jsx(sx,{disabled:!1,blockType:"paragraph",rootType:"root",editor:n,mode:"editor",fetchUploadImage:l,excludeNodes:a,onChange:e,menuProps:{trigger:"hover",position:"right-start",offset:{mainAxis:0,alignmentAxis:0}},children:p.jsx("div",{children:p.jsx(Zu,{label:s("editor.toolbar.turnInto"),icon:p.jsx(z.IconArrowsRightLeft,{style:{width:E.rem(14),height:E.rem(14)}})})})})]}),(r==="text"||m=="callout-wrapper")&&p.jsxs(p.Fragment,{children:[p.jsx(E.Menu.Divider,{}),p.jsx(kn.NewColorPicker,{data:{callout:{label:s("editor.colors.theme"),filled:!0,palette:yM.map(C=>({label:s(`editor.colors.callout.${C.name}`),value:E.alpha(C.color,.19),icon:C.icon,meta:{type:C.name,emoji:C.emoji}}))}},modes:m==="callout-wrapper"?["callout","background"]:["color","background"],value:{color:g,background:c,callout:c},onChange:C=>{v(C),e(),Zo(n)},hideInherit:!0,target:p.jsx("div",{children:p.jsx(Zu,{label:s(m==="callout-wrapper"?"editor.contextMenu.appearance":"editor.toolbar.color"),icon:p.jsx(z.IconPaint,{size:14})})}),menuProps:{trigger:"hover",position:"right-start",offset:{mainAxis:0,alignmentAxis:0}}})]}),m==="layout"&&p.jsxs(p.Fragment,{children:[p.jsx(E.Menu.Divider,{}),p.jsx(kn.NewColorPicker,{modes:["background"],value:{background:d},onChange:C=>{v(C,"layout-color"),e(),Zo(n)},hideInherit:!0,target:p.jsx("div",{children:p.jsx(Zu,{label:s("editor.column.changeColor"),icon:p.jsx(z.IconPaint,{size:14})})}),menuProps:{trigger:"hover",position:"right-start",offset:{mainAxis:0,alignmentAxis:0}}}),p.jsx(E.Menu.Item,{disabled:o,onClick:()=>{gf(n,t,"left")},leftSection:p.jsx(z.IconColumnInsertLeft,{style:{width:E.rem(14),height:E.rem(14)}}),children:s("editor.column.addLeft")}),p.jsx(E.Menu.Item,{disabled:o,onClick:()=>{gf(n,t,"right")},leftSection:p.jsx(z.IconColumnInsertRight,{style:{width:E.rem(14),height:E.rem(14)}}),children:s("editor.column.addRight")}),p.jsx(E.Menu.Item,{disabled:i.left,onClick:()=>{XA(n,t,"left"),Zo(n)},leftSection:p.jsx(z.IconColumnInsertRight,{style:{width:E.rem(14),height:E.rem(14)}}),children:s("editor.column.moveLeft")}),p.jsx(E.Menu.Item,{disabled:i.right,onClick:()=>{XA(n,t,"right"),Zo(n)},leftSection:p.jsx(z.IconColumnInsertRight,{style:{width:E.rem(14),height:E.rem(14)}}),children:s("editor.column.moveRight")}),p.jsx(E.Menu.Item,{onClick:()=>S("layout"),leftSection:p.jsx(z.IconTrash,{style:{width:E.rem(14),height:E.rem(14)}}),children:s("editor.column.deleteColumn")})]})]})},yM=[{name:"alert",color:"rgb(250, 82, 82)",icon:p.jsx(z.IconExclamationCircle,{size:16}),emoji:"❗"},{name:"success",color:"rgb(18, 184, 134)",icon:p.jsx(z.IconCheck,{size:16}),emoji:"✅"},{name:"warning",color:"rgb(242, 188, 57)",icon:p.jsx(z.IconAlertTriangle,{size:16}),emoji:"⚠️"}],bM=n=>n.mode==="callout";function wM(n,e,t){const r=x.useRef(null),s=x.useRef(null),o=x.useRef(!1),i=x.useRef(!1),l=x.useRef({htmlElement:null,lexicalNode:null,isBottom:!1}),a=x.useRef(null),c=x.useRef(null),[u,d]=x.useState(null),{disable:f}=x.useContext(Gt),[g,h]=x.useState(!1),[m,A]=x.useState(!1),[b,y]=x.useState(""),[w,v]=x.useState(null),[S,C]=x.useState(!1),[_,k]=x.useState({left:!1,right:!1}),[T,D]=x.useState(null),{t:L}=We.useTranslation();x.useEffect(()=>{function B(K){const Y=K.target;i.current||Pl(Y)&&(SL(Y)||n.read(()=>{var be;const X=Y.className.includes("ContentEditable__root"),ee=X?fe():he(Y),{htmlElement:H,lexicalNode:U}=oA(ee,n,{root:!0,"layout-container":!0,"layout-item":!0,"callout-wrapper":!0,callout:!0,"collapsible-content":!0,"collapsible-container":!0},K);if((U==null?void 0:U.__type)==="callout"||(U==null?void 0:U.__type)==="callout-image"||((be=U==null?void 0:U.getParent())==null?void 0:be.__type)==="callout"&&(U==null?void 0:U.getPreviousSibling())===null){d(null);return}if(!(X&&U instanceof cn||X&&!U)&&U!=null&&U.__key){if(U.__type==="layout-container"||U.__type==="layout-item"||U.__type==="collapsible-content"){d(null);return}H&&(l.current.htmlElement=H,l.current.lexicalNode=U),(U==null?void 0:U.__type)==="collapsible-title"&&(l.current.htmlElement=(H==null?void 0:H.parentElement)||H,l.current.lexicalNode=U.getParent()),v(null),d(l.current.htmlElement)}}))}function j(){i.current||d(null)}function F(K){if(!o.current)return!1;const[Y]=qs(K);if(Y)return!1;const{target:X,dataTransfer:ee}=K,H=(ee==null?void 0:ee.getData(JA))||"";n.update(()=>{var me;let U=ue(H);if(!U||!Pl(X))return!1;const{htmlElement:be,lexicalNode:xe,isBottom:Ne}=l.current;let ke=xe,Ve=null;if(ke!=null&&ke.__key&&(Ve=be),!Ve||!ke)return!1;if(ke===U)return!0;if(s.current&&bL(s.current,n,ke,U))return!1;if(U.__type==="layout-divider"){if(U=U.getParent(),xe&&(U!=null&&U.isParentOf(xe)))return!1;Hv(n,U)}if(U.getParent()instanceof Vt&&((me=U.getParent())==null?void 0:me.getChildren().length)===2){const se=U.getParent(),ge=se.getParent();Oi(n,se,ge)}if(be!=null&&be.classList.contains("selected-block"))return;let Zt=[];const St=n._rootElement;Ne?Zt=Array.from(St.querySelectorAll(".selected-block")).reverse():Zt=Array.from(St.querySelectorAll(".selected-block")),Zt.length?Zt.forEach(se=>{let ge=he(se);Ne?ke==null||ke.insertAfter(ge):ke==null||ke.insertBefore(ge)}):Ne?ke.insertAfter(U):ke.insertBefore(U),d(null)})}function V(K){const{target:Y}=K;Pl(Y)&&Y.className==="ContentEditable__root"&&ty(s.current)}return e==null||e.addEventListener("mousemove",B),e==null||e.addEventListener("drop",F),e==null||e.addEventListener("mouseleave",j),e==null||e.addEventListener("dragleave",V),()=>{e==null||e.removeEventListener("mousemove",B),e==null||e.addEventListener("drop",F),e==null||e.removeEventListener("mouseleave",j),e==null||e.removeEventListener("dragleave",V)}},[e,n]);const N=Oc(B=>{$A(B,r.current,e,m)},150,500);x.useEffect(()=>{if(r.current){if(i.current)return;$A(u,r.current,e,m)}},[e,u,i.current,m]),x.useEffect(()=>{function B(j){var xe,Ne;const{clientY:F,target:V,pageX:K}=j;if(!o.current)return!1;const[Y]=qs(j);if(Y||!Pl(V))return!1;const X=he(V)||fe(),{htmlElement:ee,lexicalNode:H}=oA(X,n,{root:!0,"layout-container":!0,"layout-item":!0,"callout-wrapper":!0,callout:!0,"collapsible-content":!0,"collapsible-container":!0},j);if(j.preventDefault(),(H==null?void 0:H.__type)==="callout"||(H==null?void 0:H.__type)==="collapsible-content"||Yv(c.current,H==null?void 0:H.getParent())||(H==null?void 0:H.__type)==="layout-item"&&X.__type!=="root")return!1;ee&&(l.current.htmlElement=ee,l.current.lexicalNode=H);let U=null;U=l.current.htmlElement||ee,U!=null&&U.closest(".dsd__theme__layoutContainer")&&X.__type==="root"&&H&&((H==null?void 0:H.__type)==="layout-item"&&X.__type==="root"?(U=U==null?void 0:U.parentElement,l.current.htmlElement=U,l.current.lexicalNode=H==null?void 0:H.getParent()):(U=(xe=U.parentElement)==null?void 0:xe.parentElement,l.current.htmlElement=U,l.current.lexicalNode=(Ne=H.getParent())==null?void 0:Ne.getParent()));const be=s.current;return!U&&be?(be.style.background="transparent",!1):U===null||be===null||U!=null&&U.classList.contains("selected-block")?!1:(EL(be,U,F,K,e,j,l),!0)}return ve(n.registerCommand(Bn,j=>j==="hide_menu"?(vL(r.current),setTimeout(()=>{i.current=!0},0),!1):j==="show_menu"?(i.current=!1,!1):(j===!0&&!i.current&&d(null),i.current=!1,!1),le),n.registerCommand(Mf,j=>B(j),le),n.registerCommand(Rr,()=>(n.dispatchCommand(Bn,!0),!1),le),n.registerCommand(zn,()=>(n.dispatchCommand(Bn,!0),!1),le))},[e,n]),x.useEffect(()=>ve(n.registerCommand(Pa,B=>{if(u&&r.current){if(B==="up")return r.current.style.removeProperty("transition"),i.current=!0,!1;r.current.style.opacity="0",r.current.style.transition="0.1s",N(u)}return!1},le)),[e,n,u]);function I(B){var Y;const j=B.dataTransfer;(Y=s.current)==null||Y.setAttribute("data-index-start","");const F=u||l.current.htmlElement;if(!j||!F)return;const V=n._rootElement;if(F!=null&&F.classList.contains("selected-block")){const X=n._rootElement,ee=Array.from(X.querySelectorAll(".selected-block"));kL(B.dataTransfer,ee)}else sy(V),F.className.includes("_layoutDivider")&&F.parentElement?ey(j,F.parentElement):ey(j,F);let K="";n.read(()=>{var ee,H;const X=he(F);if(X&&(K=X.getKey()),X instanceof cn){const U=Mi((ee=F.parentElement)==null?void 0:ee.parentElement,F.parentElement);(H=s.current)==null||H.setAttribute("data-index-start",U.toString())}}),r.current&&(h(!0),r.current.style.opacity="0"),o.current=!0,c.current=K,j.setData(JA,K)}function P(){o.current=!1,ty(s.current),h(!1)}if(f)return p.jsx("div",{});function G(){var F;const B=l.current.htmlElement,j=(F=B==null?void 0:B.parentElement)==null?void 0:F.parentElement;if(j!=null&&j.classList.contains("dsd__theme__layoutContainer")&&(j.children.length===4?C(!0):C(!1),B!=null&&B.parentElement)){const V=Mi(j,B==null?void 0:B.parentElement);V?V===j.children.length-1?k({left:!1,right:!0}):k({left:!1,right:!1}):k({left:!0,right:!1})}}function J(){i.current=!0,document.body.addEventListener("keydown",QA);const B=l.current.htmlElement,j=n._rootElement,F=Array.from(j.querySelectorAll(".selected-block"));let V=!1;G(),B!=null&&B.classList.contains("selected-block")||(sy(j),V=!0),B&&V&&n.update(()=>{var X,ee,H;const K=he(B);D(K),K instanceof cn&&(a.current=(X=K==null?void 0:K.getParent())==null?void 0:X.getParent());const Y=K instanceof De&&((ee=K.getFirstChild())==null?void 0:ee.getType())==="image"?(H=K.getFirstChild())==null?void 0:H.getType():K==null?void 0:K.getType();Y&&["paragraph","list","heading","quote"].includes(Y)?(K!=null&&K.getTextContent()?(VC(n),y("text")):y("block"),K==null||K.selectEnd()):(y("block"),K==null||K.selectStart())}),F.length&&y("block"),A(!0),n.dispatchCommand(ef,!0)}const te=()=>{n.update(()=>{const B=Ke();if(i.current=!1,A(!1),(B==null?void 0:B.__key)==="root"){const j=re();B.append(j)}})},Q=t?"hide-add-button":"";return un.createPortal(p.jsxs(p.Fragment,{children:[p.jsxs("div",{className:`draggable-block-container ${Q}`,ref:r,onMouseEnter:()=>{var B;m||v("both"),(B=r.current)!=null&&B.style&&(r.current.style.opacity="1")},onMouseLeave:()=>{v(null)},children:[p.jsx(hM,{hoveredButton:w,insertNewParagraph:qA,currentDraggableBlockRef:l,setHoveredButton:v,isClickedBlockRef:i,setDraggableBlockElem:d,editor:n,t:L}),p.jsxs(E.Menu,{onOpen:J,onClose:()=>{te(),setTimeout(()=>{document.body.removeEventListener("keydown",QA,!1)})},position:"right-start",width:320,shadow:"md",transitionProps:yr,children:[p.jsx(E.Menu.Target,{children:p.jsx("div",{className:"icon draggable-block-menu",draggable:!0,onDragStart:I,onDragEnd:P,children:p.jsx(E.Tooltip,{openDelay:300,multiline:!0,disabled:g||i.current,label:p.jsxs(p.Fragment,{children:[p.jsxs("span",{children:[p.jsx("strong",{children:L("editor.hoverOptions.drag")}),","," ",L("editor.hoverOptions.dragAction")]}),p.jsx("br",{}),p.jsxs("span",{children:[" ",p.jsx("strong",{children:L("editor.hoverOptions.click")}),","," ",L("editor.hoverOptions.clickAction")]})]}),position:"bottom-start",children:p.jsx(E.ActionIcon,{radius:"sm",color:"gray",size:"sm",variant:"subtle","aria-label":"Settings",children:p.jsx(z.IconGripVertical,{size:20})})})})}),p.jsx(fM,{hoveredButton:w,insertNewParagraph:qA,currentDraggableBlockRef:l,setHoveredButton:v,isClickedBlockRef:i,setDraggableBlockElem:d,editor:n,t:L}),p.jsx(E.Menu.Dropdown,{className:"draggable-menu",children:p.jsx(AM,{onChange:()=>{Zo(n)},t:L,textBlock:b,currentEditorNode:T,editor:n,isDisabledAddColumnButton:S,disabledMoveColumnButtons:_})})]})]}),p.jsx("div",{className:"draggable-block-target-line",ref:s})]}),e)}function kg({anchorElem:n=document.body,isShowAddButton:e=!1}){const[t]=ie();return wM(t,n,e)}const ox=ze(),CM=()=>{var l;const n=R(),e=n.anchor,t=n.focus,r=e.getNode(),s=t.getNode(),o=(l=r.getParent())==null?void 0:l.getIndexWithinParent();return(s instanceof en||s.getParent()instanceof en)&&(o===0||o||-1)&&e.key!==t.key?(n.removeText(),!0):!1};function Eg(){const[n]=ie();return x.useEffect(()=>ve(n.registerCommand(ox,()=>(n.update(()=>{const e=Ke(),t=fe();if(e){const r=YC().append(hr(e.getTextContent()||""));e.replace(r),t.getChildrenSize()===1&&r.insertAfter(re())}}),!0),le),n.registerCommand(Nf,e=>{const t=R();let r=null;return(e.metaKey||e.ctrlKey)&&e.code==="Enter"&&M(t)&&(Ir(t.anchor.getNode())?r=t.anchor.getNode():Be(t.anchor.getNode())&&(r=t.anchor.getNode().getParent()),r)?(n.update(()=>{const s=r==null?void 0:r.getNextSibling();s instanceof mr&&!s.getTextContent()?s==null||s.selectStart():r.insertAfter(re()).selectStart()}),!0):!1},0),n.registerCommand(Wi,e=>{var a;if(!(e!=null&&e.target)||!(e!=null&&e.clipboardData))return!1;e.preventDefault();const t=R(),s=Oh(t)["text/plain"],o=Object.values(e.target)[0],i=(a=ue(o))==null?void 0:a.getParent(),l=(i==null?void 0:i.getTextContent())===s;if(Ir(i)&&l){const c=`<pre data-highlight-language="${i.__language}" data-language="${i.__language}" data-collapsed="${i.__isCollapsed}"><code>${i.getTextContent()}</code></pre>`;return e.clipboardData.setData("text/html",c),!0}return!1},le)),[n]),null}function vM(n,e){const t=n.getRangeAt(0);let r;if(n.anchorNode===e){let s=e;for(;s.firstElementChild!=null;)s=s.firstElementChild;r=s.getBoundingClientRect()}else r=t.getBoundingClientRect();return r}const ly=()=>{var t;const n=(t=window.getSelection())==null?void 0:t.toString().trim();return n==null?void 0:n.replace(/\s+/g,"")},xM=10,SM=5;function Uo(n,e,t,r=!1,s=xM,o=SM){const i=t.parentElement;if(n===null||!i){e.style.opacity="0",e.style.transform="translate(-10000px, -10000px)";return}const l=e.getBoundingClientRect(),a=i.getBoundingClientRect();let c=n.top-l.height-s;c<0&&(c=10);let u=n.left-o;if(c<a.top&&(c+=l.height+n.height+s*2),u+l.width>a.right&&(u=a.right-l.width-o),n.bottom-n.height>a.bottom){e.style.transform="translate(-1000px, -1000px)";return}if(n.bottom+n.height<a.top){e.style.transform="translate(-1000px, -1000px)";return}let d=c;l.top>=a.bottom&&(d=a.bottom),e.style.transform=`translate(${u}px, ${d}px)`,e.style.opacity="1"}function kM({editor:n,anchorElem:e,isLink:t,isBold:r,isItalic:s,isUnderline:o,isCode:i,isStrikethrough:l,isSubscript:a,isSuperscript:c,component:u,isText:d}){const f=x.useRef(null),g=x.useRef(!1),h=x.useRef(null),m=x.useCallback(()=>{n.dispatchCommand(Pc,"create")},[n,t]);function A(w){if(f!=null&&f.current&&(w.buttons===1||w.buttons===3)&&(g.current=!1,f.current.style.pointerEvents!=="none")){const v=w.clientX,S=w.clientY,C=document.elementFromPoint(v,S);f.current.contains(C)||(f.current.style.pointerEvents="none")}}function b(){var w,v;f.current&&(g.current=!0,Uo(((w=h.current)==null?void 0:w.rect)||null,f==null?void 0:f.current,e,(v=h.current)==null?void 0:v.isLink)),f!=null&&f.current&&f.current.style.pointerEvents!=="auto"&&(f.current.style.pointerEvents="auto")}x.useEffect(()=>{const w=ly();if(!d&&!(w!=null&&w.length)){let v=function(k){return k instanceof HTMLElement};const S=f.current,C=window.getSelection();let _=!1;C!=null&&C.anchorNode&&v(C.anchorNode)&&C.anchorNode.className==="toolbar"&&(_=!0),S&&!_&&(h.current={rect:null,floatingElem:S,anchorElem:e,isLink:t},Uo(null,S,e,t),g.current=!1)}},[d,n]),x.useEffect(()=>{if(f!=null&&f.current)return document.addEventListener("mousemove",A),document.addEventListener("mouseup",b),()=>{document.removeEventListener("mousemove",A),document.removeEventListener("mouseup",b)}},[f]),x.useEffect(()=>{n.registerCommand(Nf,w=>{var v;return(w.metaKey||w.ctrlKey)&&w.key==="a"?(w.preventDefault(),VC(n),Ke(!0)&&(x1()&&(f!=null&&f.current)?(Uo(null,f==null?void 0:f.current,e,(v=h.current)==null?void 0:v.isLink),nb(),rx(n)):setTimeout(()=>{b()})),!0):!1},le),n.registerCommand(ef,()=>{var w;return f!=null&&f.current&&Uo(null,f==null?void 0:f.current,e,(w=h.current)==null?void 0:w.isLink),!1},le)},[n]);const y=x.useCallback(()=>{const w=R(),v=f.current,S=window.getSelection();if(v===null)return;const C=n.getRootElement();let _=!1;const k=ly();if(k&&k.length>0&&(_=!0),w!==null&&S!==null&&!S.isCollapsed&&C!==null&&C.contains(S.anchorNode)&&_){const T=vM(S,C);if(h.current={rect:T,floatingElem:v,anchorElem:e,isLink:t},M(w)){const L=xs(w).getParent(),N=L==null?void 0:L.getFormatType();g.current&&N&&f&&n.registerCommand(ef,I=>(I||setTimeout(()=>{var P,G;Uo(((P=h.current)==null?void 0:P.rect)||null,v,e,(G=h.current)==null?void 0:G.isLink)},100),!1),le)}}else h.current={rect:null,floatingElem:v,anchorElem:e,isLink:t}},[n,e,t]);return x.useEffect(()=>{const w=e.parentElement,v=()=>{n.getEditorState().read(()=>{y()})};return window.addEventListener("resize",v),w&&w.addEventListener("scroll",v),()=>{window.removeEventListener("resize",v),w&&w.removeEventListener("scroll",v)}},[n,y,e]),x.useEffect(()=>(n.getEditorState().read(()=>{y()}),ve(n.registerUpdateListener(({editorState:w})=>{w.read(()=>{y()})}),n.registerCommand(Qt,()=>(y(),!1),le))),[n,y]),p.jsx("div",{ref:f,className:`floating-text-format-popup doc-space-editor-wrapper ${d?"":"floating-text-format-popup-hidden"}`,children:p.jsx("div",{children:n.isEditable()&&(u&&d?u:p.jsxs(p.Fragment,{children:[p.jsx("button",{type:"button",onClick:()=>{n.dispatchCommand(Ue,"bold")},className:"popup-item spaced "+(r?"active":""),"aria-label":"Format text as bold",children:p.jsx($,{name:"bold",stroke:r?3:2})}),p.jsx("button",{type:"button",onClick:()=>{n.dispatchCommand(Ue,"italic")},className:"popup-item spaced "+(s?"active":""),"aria-label":"Format text as italics",children:p.jsx($,{name:"italic",stroke:s?3:2})}),p.jsx("button",{type:"button",onClick:()=>{n.dispatchCommand(Ue,"underline")},className:"popup-item spaced "+(o?"active":""),"aria-label":"Format text to underlined",children:p.jsx($,{name:"underline",stroke:o?3:2})}),p.jsx("button",{type:"button",onClick:()=>{n.dispatchCommand(Ue,"strikethrough")},className:"popup-item spaced "+(l?"active":""),"aria-label":"Format text with a strikethrough",children:p.jsx($,{name:"strikethrough",stroke:l?3:2})}),p.jsx("button",{type:"button",onClick:()=>{n.dispatchCommand(Ue,"subscript")},className:"popup-item spaced "+(a?"active":""),title:"Нижний индекс","aria-label":"Format Subscript",children:p.jsx($,{name:"subscript",stroke:a?3:2})}),p.jsx("button",{type:"button",onClick:()=>{n.dispatchCommand(Ue,"superscript")},className:"popup-item spaced "+(c?"active":""),title:"Верхний индекс","aria-label":"Format Superscript",children:p.jsx($,{name:"superscript",stroke:c?3:2})}),p.jsx("button",{type:"button",onClick:()=>{n.dispatchCommand(Ue,"code")},className:"popup-item spaced "+(i?"active":""),"aria-label":"Insert code block",children:p.jsx($,{name:"code"})}),p.jsx("button",{type:"button",onClick:m,className:"popup-item spaced "+(t?"active":""),"aria-label":"Insert link",children:p.jsx($,{name:"link"})})]}))})})}function EM(n,e,t){const[r,s]=x.useState(!1),[o,i]=x.useState(!1),[l,a]=x.useState(!1),[c,u]=x.useState(!1),[d,f]=x.useState(!1),[g,h]=x.useState(!1),[m,A]=x.useState(!1),[b,y]=x.useState(!1),[w,v]=x.useState(!1),{disable:S}=x.useContext(Gt),C=x.useCallback(()=>{n.getEditorState().read(()=>{var G,J,te;if(n.isComposing())return;const _=R(),k=window.getSelection(),T=n.getRootElement();if(k!==null&&(!M(_)||T===null||!T.contains(k.anchorNode))){s(!1);return}if(!M(_))return;const D=xs(_);a(_.hasFormat("bold")),u(_.hasFormat("italic")),f(_.hasFormat("underline")),h(_.hasFormat("strikethrough")),A(_.hasFormat("subscript")),y(_.hasFormat("superscript")),v(_.hasFormat("code"));const L=D.getParent();it(L)||it(D)?i(!0):i(!1);const N=Be(_.anchor.getNode()),I=(te=(J=(G=n.getElementByKey(D.__key))==null?void 0:G.parentElement)==null?void 0:J.parentElement)==null?void 0:te.classList.contains("Collapsible__title");!N&&_.getTextContent()!==""&&!I?s(Ht(D)||at(D)||or(D)||Ei(D)||Re(D)):s(!1);const P=_.getTextContent().replace(/\n/g,"");if(!_.isCollapsed()&&P===""){s(!1);return}})},[n]);return x.useEffect(()=>(document.addEventListener("selectionchange",C),()=>{document.removeEventListener("selectionchange",C)}),[C]),x.useEffect(()=>ve(n.registerUpdateListener(()=>{C()}),n.registerRootListener(()=>{n.getRootElement()===null&&s(!1)})),[n,C]),S?null:un.createPortal(p.jsx(kM,{editor:n,anchorElem:e,isLink:o,isBold:l,isItalic:c,isStrikethrough:g,isSubscript:m,isSuperscript:b,isUnderline:d,isCode:w,component:t,isText:r}),document.body)}function nu({anchorElem:n=document.body,component:e}){const[t]=ie();return EM(t,n,e)}function ay(n){let e=1;for(;n;)e*=Number(window.getComputedStyle(n).getPropertyValue("zoom")),n=n.parentElement;return e}const _M=33,TM=50;function DM({editor:n}){const e=x.useRef(null),t=x.useRef(null),r=x.useRef(null),s=x.useRef(null),[o,i]=x.useState(null),[l,a]=x.useState(null),[c,u]=x.useState(!1),[d,f]=x.useState(null);x.useEffect(()=>n.registerCommand(Qt,S=>{const C=R(),_=Te(C);return c!==_&&u(_),!1},xr));const g=x.useCallback(()=>{a(null),e.current=null,f(null),s.current=null,r.current=null},[]);x.useEffect(()=>{const S=C=>{setTimeout(()=>{const _=C.target;if(d){i({x:C.clientX,y:C.clientY});return}if(!(t.current&&t.current.contains(_))&&e.current!==_){e.current=_;const k=nf(_);k&&l!==k?n.update(()=>{const T=he(k.elem);if(!T)throw new Error("TableCellResizer: Table cell node not found.");const D=Lr(T),L=n.getElementByKey(D.getKey());if(!L)throw new Error("TableCellResizer: Table element not found.");e.current=_,r.current=L.getBoundingClientRect(),a(k)}):k==null&&g()}},0)};return document.addEventListener("mousemove",S),()=>{document.removeEventListener("mousemove",S)}},[l,d,n,g]);const h=S=>S==="bottom",m=x.useCallback(S=>{if(!l)throw new Error("TableCellResizer: Expected active cell.");n.update(()=>{const C=he(l.elem);if(!oe(C))throw new Error("TableCellResizer: Table cell node not found.");const _=Lr(C),k=Uc(C),T=_.getChildren();if(k>=T.length||k<0)throw new Error("Expected table cell to be inside of table row.");const D=T[k];if(!Qe(D))throw new Error("Expected table row");D.setHeight(S)})},[l,n]),A=x.useCallback((S,C)=>{if(!l)throw new Error("TableCellResizer: Expected active cell.");n.update(()=>{const _=he(l.elem);if(!oe(_))throw new Error("TableCellResizer: Table cell node not found.");const k=Lr(_),T=Kc(_),D=k.getChildren();for(let L=0;L<D.length;L++){const N=D[L];if(!Qe(N))throw new Error("Expected table row");const I=N.getChildren(),J=I.map(Q=>Q.getColSpan()).reduce((Q,B)=>{const j=Q[Q.length-1]??0;return Q.push(j+B),Q},[]).findIndex(Q=>Q>T);if(J>=I.length||J<0)throw new Error("Expected table cell to be inside of table row.");const te=I[J];if(!oe(te))throw new Error("Expected table cell");te.setWidth(S)}})},[l,n]),b=x.useCallback(S=>{const C=_=>{if(_.preventDefault(),_.stopPropagation(),n.dispatchCommand(Bn,!0),!l)throw new Error("TableCellResizer: Expected active cell.");if(s.current){const{x:k,y:T}=s.current;if(l===null)return;const D=ay(_.target);if(h(S)){const L=l.elem.getBoundingClientRect().height,N=Math.abs(_.clientY-T)/D,I=S==="bottom"&&T>_.clientY;m(Math.max(I?L-N:N+L,_M))}else{const L=getComputedStyle(l.elem);let N=l.elem.clientWidth;N-=parseFloat(L.paddingLeft)+parseFloat(L.paddingRight);const I=Math.abs(_.clientX-k)/D,P=S==="right"&&k>_.clientX;A(Math.max(P?N-I:I+N,TM),N)}g(),document.removeEventListener("mouseup",C)}};return C},[l,g,A,m]),y=x.useCallback(S=>C=>{if(C.preventDefault(),C.stopPropagation(),n.dispatchCommand(Bn,!0),!l)throw new Error("TableCellResizer: Expected active cell.");s.current={x:C.clientX,y:C.clientY},i(s.current),f(S),document.addEventListener("mouseup",b(S))},[l,b]),v=x.useCallback(()=>{if(l){const{height:S,width:C,top:_,left:k,right:T}=l.elem.getBoundingClientRect(),{right:D}=n._rootElement.getBoundingClientRect(),L=ay(l.elem),N=T>D?T-D+20:0,I={bottom:{backgroundColor:"transparent",cursor:"row-resize",height:"10px",left:`${window.pageXOffset+k+5}px`,top:`${window.pageYOffset+_+S-5}px`,width:`${C-N}px`},right:{backgroundColor:"transparent",cursor:"col-resize",height:`${S-7}px`,left:`${window.pageXOffset+k+C-5}px`,display:N?"none":"block",top:`${window.pageYOffset+_+7}px`,width:"10px"}},P=r.current;return d&&o&&P&&(h(d)?(I[d].left=`${window.pageXOffset+P.left}px`,I[d].top=`${window.pageYOffset+o.y/L}px`,I[d].height="3px",I[d].width=`${P.width}px`):(I[d].top=`${window.pageYOffset+P.top}px`,I[d].left=`${window.pageXOffset+o.x/L}px`,I[d].width="3px",I[d].height=`${P.height}px`),I[d].backgroundColor="#adf"),I}return{bottom:null,left:null,right:null,top:null}},[l,d,o])();return p.jsx("div",{ref:t,children:l!=null&&!c&&p.jsxs(p.Fragment,{children:[p.jsx("div",{className:"TableCellResizer__resizer TableCellResizer__ui",style:v.right||void 0,onMouseDown:y("right")}),p.jsx("div",{className:"TableCellResizer__resizer TableCellResizer__ui",style:v.bottom||void 0,onMouseDown:y("bottom")})]})})}function NM({}){const[n]=ie(),e=xC();return x.useMemo(()=>e?un.createPortal(p.jsx(DM,{editor:n}),document.body):null,[n,e])}function _g(n){return[n.getKey(),n.getTextContent(),n.getTag()]}function IM(n,e,t){if(e===null)return t;const r=_g(e);let s=[];if(n===null){if(t.length>0&&t[0][0]===e.__key)return t;s=[r,...t]}else for(let o=0;o<t.length;o++){const i=t[o][0];if(s.push(t[o]),i===n.getKey()&&i!==e.getKey()){if(o+1<t.length&&t[o+1][0]===e.__key)return t;s.push(r)}}return s}function LM(n,e){const t=[];for(const r of e)r[0]!==n&&t.push(r);return t}function MM(n,e){const t=[];for(const r of e)r[0]===n.getKey()?t.push(_g(n)):t.push(r);return t}function cy(n,e,t){const r=[],s=_g(e);n||r.push(s);for(const o of t)o[0]!==e.getKey()&&(r.push(o),n&&o[0]===n.getKey()&&r.push(s));return r}function Ju(n){let e=Ip(n);for(;e!==null&&!or(e);)e=Ip(e);return e}function OM({children:n}){const[e,t]=x.useState([]),[r]=ie();return x.useEffect(()=>{let s=[];r.getEditorState().read(()=>{const a=c=>{for(const u of c.getChildren())or(u)?s.push([u.getKey(),u.getTextContent(),u.getTag()]):O(u)&&a(u)};a(fe()),t(s)});const o=r.registerUpdateListener(({editorState:a,dirtyElements:c})=>{a.read(()=>{const u=d=>{for(const f of d.getChildren())if(or(f)){const g=Ju(f);s=cy(g,f,s),t(s)}else O(f)&&u(f)};fe().getChildren().forEach(d=>{O(d)&&c.get(d.__key)&&u(d)})})}),i=r.registerMutationListener(al,a=>{r.getEditorState().read(()=>{for(const[c,u]of a)if(u==="created"){const d=ue(c);if(d!==null){const f=Ju(d);s=IM(f,d,s)}}else if(u==="destroyed")s=LM(c,s);else if(u==="updated"){const d=ue(c);if(d!==null){const f=Ju(d);s=cy(f,d,s)}}t(s)})},{skipInitialization:!0}),l=r.registerMutationListener(pt,a=>{r.getEditorState().read(()=>{for(const[c,u]of a)if(u==="updated"){const d=ue(c);if(d!==null){const f=d.getParentOrThrow();or(f)&&(s=MM(f,s),t(s))}}})},{skipInitialization:!0});return()=>{i(),l(),o()}},[r]),n(e,r)}const Ha=624,ix=9;function RM(n,e,t){return n||`${t("editor.heading.name")} ${e.split("")[1]}`}function jM(n){var t;const e=(t=n==null?void 0:n.getClientRects()[0])==null?void 0:t.y;return e>=Ha&&e<=Ha+ix}function Fl(n){var t;return((t=n==null?void 0:n.getClientRects()[0])==null?void 0:t.y)<Ha}function Xu(n){var t;return((t=n==null?void 0:n.getClientRects()[0])==null?void 0:t.y)>=Ha+ix}function PM({tableOfContents:n}){const[e,t]=x.useState(""),r=x.useRef(0),[s]=ie(),{t:o}=We.useTranslation(),[i,l]=x.useState(!1);function a(c,u){s.getEditorState().read(()=>{const d=s.getElementByKey(c);d!==null&&(d.classList.add("ScrollToBlock"),d.scrollIntoView({behavior:"smooth",block:"center"}),t(c),r.current=u,setTimeout(()=>{d.classList.remove("ScrollToBlock")},2e3))})}return x.useEffect(()=>{function c(){if(n.length>0&&r.current<n.length-1){let g=s.getElementByKey(n[r.current][0]);if(g!==null){if(Xu(g)){for(;g!==null&&Xu(g)&&r.current>0;){const m=s.getElementByKey(n[r.current-1][0]);m!==null&&(Fl(m)||Xu(m))&&r.current--,g=m}const h=n[r.current][0];t(h)}else if(Fl(g)){for(;g!==null&&Fl(g)&&r.current<n.length-1;){const m=s.getElementByKey(n[r.current+1][0]);m!==null&&(jM(m)||Fl(m))&&r.current++,g=m}const h=n[r.current][0];t(h)}}}else r.current=0}let u;function d(g,h){clearTimeout(u),u=setTimeout(g,h)}function f(){d(c,10)}return document.addEventListener("scroll",f),()=>document.removeEventListener("scroll",f)},[n,s]),n.length<2?p.jsx(p.Fragment,{}):p.jsxs(E.Popover,{opened:i,onClose:()=>l(!1),width:300,position:"left",offset:-55,transitionProps:{transition:{in:{opacity:1,transform:"translateX(0px)"},out:{opacity:0,transform:"translateX(25px)"},transitionProperty:"transform, opacity"},duration:100,exitDelay:50,exitDuration:200},children:[p.jsx(E.Popover.Target,{children:p.jsx(E.Box,{className:"table-of-contents-container",onMouseEnter:()=>l(!0),onMouseLeave:()=>l(!1),children:p.jsx(E.Box,{className:"table-of-contents",children:p.jsx(E.Stack,{gap:12,style:{alignItems:"flex-end",transition:"all 0.7s"},children:n.map(([c,,u],d)=>p.jsx(E.Box,{onClick:()=>a(c,d),style:{height:4,borderRadius:"4px",cursor:"pointer",backgroundColor:e===c?"light-dark(var(--mantine-color-dark-2), var(--mantine-color-dark-3))":"light-dark(var(--mantine-color-dark-0), var(--mantine-color-dark-2))",width:u==="h1"?"38px":u==="h2"?"25px":"15px",transition:"all 0.7s"}},c))})})})}),p.jsxs(E.Popover.Dropdown,{onMouseEnter:()=>l(!0),onMouseLeave:()=>l(!1),style:{boxShadow:"0px 4px 8px rgba(0, 0, 0, 0.1)",overflowY:"auto",maxHeight:"400px"},children:[p.jsx(E.Text,{size:"xs",children:o("editor.content")}),n.map(([c,u,d],f)=>p.jsx(E.Text,{className:"table-of-contents-item",lineClamp:2,onClick:()=>a(c,f),style:{fontSize:d==="h1"?"1.25rem":d==="h2"?"1rem":"0.875rem",marginLeft:d==="h1"?"0.25rem":d==="h2"?"0.75rem":"2.25rem",color:e===c?"light-dark(var(--mantine-color-blue-6), var(--mantine-color-dark-3))":"light-dark(var(--mantine-color-dark-8), var(--mantine-color-dark-2))"},children:RM(u,d,o)},c))]})]})}function Tg(){return p.jsx(OM,{children:n=>p.jsx(PM,{tableOfContents:n})})}function FM(n,e){if(!n)throw new Error("Internal Lexical error: invariant() is meant to be replaced at compile time. There is no runtime version. Error: "+e)}function ra(n){const e=n.getShape();return{columns:e.toX-e.fromX+1,rows:e.toY-e.fromY+1}}function BM(n){const e=n.getNodes(),t=[];let r=null,s=null,o=0;for(let i=0;i<e.length;i++){const l=e[i];if(oe(l)){const a=l.getParentOrThrow();if(FM(Qe(a),"Expected CellNode to have a RowNode parent"),r!==a){if(s!==null&&o!==s)return!1;r!==null&&(s=o),r=a,o=0}const c=l.__colSpan;for(let u=0;u<c;u++)t[o+u]===void 0&&(t[o+u]=0),t[o+u]+=l.__rowSpan;o+=c}}return(s===null||o===s)&&t.every(i=>i===t[0])}function zM(){const n=R();if(M(n)&&!n.isCollapsed()||Te(n)&&!n.anchor.is(n.focus)||!M(n)&&!Te(n))return!1;const[e]=vt(n.anchor);return e.__colSpan>1||e.__rowSpan>1}function uy(n){if(n.getChildrenSize()!==1)return!1;const e=n.getFirstChildOrThrow();return!(!at(e)||!e.isEmpty())}function WM(n){const e=n.getLastDescendant();Ht(e)?e.select():O(e)?e.selectEnd():e!==null&&e.selectNext()}function UM(n){return n.getEditorState().read(()=>{const e=R();if(M(e)||Te(e)){const[t]=vt(e.anchor);if(oe(t))return t.getBackgroundColor()}return null})}function KM(n,e){const t=e.querySelectorAll("tr");let r=!1;return Array.from(t).forEach((s,o)=>{o&&s.children[0].tagName==="TH"&&(r=!0)}),r}function HM(n){const e=n.querySelector("tr");let t=!1;return e&&Array.from(e.children).forEach((r,s)=>{s&&r.tagName==="TH"&&(t=!0)}),t}const YM=({tableCellNode:n,setIsMenuOpen:e,contextRef:t,cellMerge:r,isMenuOpen:s,selectionBeforeMenuOpenedRef:o,currentIndexColumn:i,currentIndexRow:l,tableDom:a})=>{const[c]=ie(),u=x.useRef(null),[d,f]=x.useState(n),[g,h]=x.useState({columns:1,rows:1}),[m,A]=x.useState(!1),[b,y]=x.useState(!1),[w,v]=x.useState(""),{t:S}=We.useTranslation();x.useEffect(()=>c.registerMutationListener(vn,B=>{B.get(d.getKey())==="updated"&&(c.getEditorState().read(()=>{f(d.getLatest())}),v(UM(c)||""))}),[c,d]),x.useEffect(()=>{s?c.getEditorState().read(()=>{const B=o.current;if(B&&Te(B)){const j=ra(B);h(ra(B)),A(BM(B)&&(j.columns>1||j.rows>1))}try{y(zM())}catch{}}):c.update(()=>{R()!==null&&(Ie(null),setTimeout(()=>{A(!1),o.current=null,h({columns:1,rows:1});try{d.getParent(),C()}catch{}},200))})},[s]),x.useEffect(()=>{const B=t.current,j=u.current,F=c.getRootElement();if(B!=null&&j!=null&&F!=null){const V=F.getBoundingClientRect(),K=B.getBoundingClientRect();j.style.opacity="1";const Y=j.getBoundingClientRect(),X=5;let ee=K.right+X;if(ee+Y.width>window.innerWidth||ee+Y.width>V.right){const U=K.left-Y.width-X;ee=(U<0?X:U)+window.pageXOffset}j.style.left=`${ee+window.pageXOffset}px`;let H=K.top;if(H+Y.height>window.innerHeight){const U=K.bottom-Y.height;H=(U<0?X:U)+window.pageYOffset}j.style.top=`${H+ +window.pageYOffset}px`}},[t,u,c]),x.useEffect(()=>{function B(j){u.current!=null&&t.current!=null&&!u.current.contains(j.target)&&!t.current.contains(j.target)&&e(!1)}return window.addEventListener("click",B),()=>window.removeEventListener("click",B)},[e,t]);const C=x.useCallback(()=>{c.update(()=>{if(d.isAttached()){const j=Lr(d),F=c.getElementByKey(j.getKey());if(!F)throw new Error("Expected to find tableElement in DOM");const V=Qh(F);V!==null&&V.clearHighlight(),j.markDirty(),f(d.getLatest())}fe().selectStart()})},[c,d]),_=()=>{c.update(()=>{const B=o.current;if(Te(B)){const{columns:j,rows:F}=ra(B),V=B.getNodes();let K=null;for(let Y=0;Y<V.length;Y++){const X=V[Y];if(oe(X))if(K===null){X.setColSpan(j).setRowSpan(F),K=X;const ee=uy(X);let H;ee&&at(H=X.getFirstChild())&&H.remove()}else oe(K)&&(uy(X)||K.append(...X.getChildren()),X.remove())}K!==null&&(K.getChildrenSize()===0&&K.append(re()),WM(K))}})},k=()=>{c.update(()=>{eD()})},T=x.useCallback(B=>{c.update(()=>{for(let j=0;j<g.rows;j++)Ba(B)})},[c,g.rows]),D=x.useCallback(B=>{c.update(()=>{for(let j=0;j<g.columns;j++)tf(B)})},[c,g.columns]),L=x.useCallback(()=>{c.update(()=>{q1()})},[c]),N=x.useCallback(()=>{c.update(()=>{Lr(n).remove(),C()})},[c,n,C]),I=x.useCallback(()=>{c.update(()=>{$1()})},[c]),P=x.useCallback(()=>{c.update(()=>{const B=Lr(d),j=Uc(d),F=B.getChildren();if(j>=F.length||j<0)throw new Error("Expected table cell to be inside of table row.");const V=F[j];if(!Qe(V))throw new Error("Expected table row");const K=d.getHeaderStyles()^tt.ROW;V.getChildren().forEach(Y=>{if(!oe(Y))throw new Error("Expected table cell");Y.getBackgroundColor()==="rgb(242, 243, 245)"&&Y.setBackgroundColor(null),Y.setHeaderStyles(K,tt.ROW)}),C()})},[c,d,C]),G=x.useCallback(B=>{c.update(()=>{const j=Lr(d),F=Kc(d),V=j.getChildren(),K=Math.max(...V.map(X=>X.getChildren().length));if(F>=K||F<0)throw new Error("Expected table cell to be inside of table row.");const Y=d.getHeaderStyles()^tt.COLUMN;for(let X=0;X<V.length;X++){const ee=V[X];if(!Qe(ee))throw new Error("Expected table row");const H=ee.getChildren();if(F>=H.length)continue;const U=H[F];if(!oe(U))throw new Error("Expected table cell");B?(U.getBackgroundColor()==="rgb(242, 243, 245)"&&U.setBackgroundColor(null),U.setHeaderStyles(0,3)):U.setHeaderStyles(Y,tt.COLUMN)}C()})},[c,d,C]),J=x.useCallback(B=>{c.update(()=>{const j=o.current;if(M(j)||Te(j)){const[F]=vt(j.anchor);if(oe(F)&&F.setBackgroundColor(B),Te(j)){const V=j.getNodes();for(let K=0;K<V.length;K++){const Y=V[K];oe(Y)&&Y.setBackgroundColor(B)}}}})},[c]),te=l===0&&HM(a),Q=i===0&&KM(i||0,a);return p.jsxs(p.Fragment,{children:[r&&p.jsxs(p.Fragment,{children:[m&&p.jsx(E.Menu.Item,{leftSection:p.jsx($,{name:"layers-union"}),onClick:()=>_(),children:S("editor.table.menu.mergeCells")}),b&&p.jsx(E.Menu.Item,{leftSection:p.jsx($,{name:"layers-substract"}),onClick:()=>k(),children:S("editor.table.menu.disconnectCells")})]}),p.jsx(kn.NewColorPicker,{modes:["background"],value:{background:w},onChange:B=>J(B.value),menuProps:{trigger:"hover",position:"right-start",offset:{mainAxis:10,alignmentAxis:-5}},target:p.jsx(E.Menu.Item,{leftSection:p.jsx($,{name:"color-picker"}),rightSection:p.jsx($,{name:"chevron-right"}),children:S("editor.table.background",{count:g.columns>1||g.rows>1?2:1})})}),p.jsx(E.Menu.Divider,{}),!te&&p.jsxs(E.Menu.Item,{leftSection:p.jsx($,{name:"row-insert-top"}),onClick:()=>T(!1),children:[S("editor.table.menu.insertRow",{count:g.rows})," ",S("editor.table.menu.above")]}),p.jsxs(E.Menu.Item,{leftSection:p.jsx($,{name:"row-insert-bottom"}),onClick:()=>T(!0),children:[S("editor.table.menu.insertRow",{count:g.rows})," ",S("editor.table.menu.below")]}),!Q&&p.jsxs(E.Menu.Item,{leftSection:p.jsx($,{name:"column-insert-left"}),onClick:()=>D(!0),children:[S("editor.table.menu.insertCol",{count:g.columns})," ",S("editor.table.menu.right")]}),p.jsxs(E.Menu.Item,{leftSection:p.jsx($,{name:"column-insert-right"}),onClick:()=>D(!1),children:[S("editor.table.menu.insertCol",{count:g.columns})," ",S("editor.table.menu.left")]}),p.jsx(E.Menu.Divider,{}),p.jsx(E.Menu.Item,{leftSection:p.jsx($,{name:"container-off"}),onClick:()=>I(),children:S("editor.table.menu.deleteCol",{count:g.columns})}),p.jsx(E.Menu.Item,{leftSection:p.jsx($,{name:"container-off",iconStyle:{transform:"rotate(90deg)"}}),onClick:()=>L(),children:S("editor.table.menu.deleteRow",{count:g.rows})}),p.jsx(E.Menu.Item,{leftSection:p.jsx($,{name:"table-off"}),onClick:()=>N(),children:S("editor.table.menu.deleteTable")}),(!l||!i)&&p.jsx(E.Menu.Divider,{}),l===0&&p.jsx(E.Menu.Item,{onClick:()=>P(),children:S("editor.table.menu.headTable_row",{value:S(te?"editor.contextMenu.delete":"editor.contextMenu.add")})}),i===0&&p.jsx(E.Menu.Item,{onClick:()=>G(Q),children:S("editor.table.menu.headTable_col",{value:S(Q?"editor.contextMenu.delete":"editor.contextMenu.add")})})]})},VM=({tableCellNode:n,setIsMenuOpen:e,contextRef:t,cellMerge:r,children:s,tableDom:o,isMenuOpen:i})=>{const[l]=ie(),a=x.useRef(null),c=x.useRef(null),u=x.useRef(null),d=()=>{e(!0),l.read(()=>{const f=Kc(n),g=Uc(n);c.current=f,u.current=g;const h=R();if(Te(h)){const{columns:m,rows:A}=ra(h);(m>1||A>1)&&(a.current=h)}else v1(n,l),setTimeout(()=>{l.read(()=>{const m=R();a.current=m})},200)})};return p.jsxs(E.Menu,{onOpen:d,onClose:()=>e(!1),shadow:"md",position:"right",opened:i,transitionProps:yr,children:[p.jsx(E.Menu.Target,{children:s}),p.jsx(E.Menu.Dropdown,{children:p.jsx(YM,{isMenuOpen:i,contextRef:t,tableCellNode:n,cellMerge:r,setIsMenuOpen:e,tableDom:o,currentIndexColumn:c.current,currentIndexRow:u.current,selectionBeforeMenuOpenedRef:a})})]})},GM=(n,e)=>{window.matchMedia("(pointer: coarse)").matches&&e&&setTimeout(()=>{e.scrollBy({left:n+25,behavior:"smooth"})},100)},qn=12;function ZM({anchorElem:n,isShowTableOptions:e,cellMerge:t}){var B,j;const[r]=ie(),[s,o]=x.useState(!1),[i,l]=x.useState({}),[a,c]=x.useState({}),[u,d]=x.useState({}),[f,g]=x.useState({}),[h,m]=x.useState({}),[A,b]=x.useState({top:!1,bottom:!1,left:!1,right:!1,column:!1,row:!1,options:!1}),[y,w]=x.useState(!1),v=x.useRef(null),S=x.useRef(new Set),C=x.useRef(null),_=x.useRef(null),k=x.useRef(null),T=x.useRef(null),D=x.useRef(null),{t:L}=We.useTranslation(),N=Oc(F=>{const{isOutside:V,tableDOMNode:K}=JM(F),Y=F.target;if(Y!=null&&Y.closest(".table-cell-add-container")||Y!=null&&Y.closest(".table-row-add-container"))return;if(V&&(A.top||A.bottom||A.left||A.right||A.column||A.row)){b({top:!1,bottom:!1,left:!1,right:!1,column:!1,row:!1,options:!1}),D.current=null,w(!1);return}if(!K)return;_.current=K;let X=null,ee=null,H=null;r.update(()=>{var xe,Ne,ke,Ve,Zt;const U=he(K),be=K==null?void 0:K.getAttribute("data-show-button-near-table");if(((xe=D.current)==null?void 0:xe.__key)!==(U==null?void 0:U.__key)&&(b({top:!1,bottom:!1,left:!1,right:!1,column:!1,row:!1,options:!1}),D.current=U,oe(U))){const St=ae(U,me=>Oe(me));if(!Oe(St))return;if(H=r.getElementByKey(St==null?void 0:St.getKey()),H){const me=St.getChildrenSize(),se=(Ne=St.getChildAtIndex(0))==null?void 0:Ne.getChildrenSize(),ge=Uc(U),ye=Kc(U);k.current=(ke=H.firstChild)==null?void 0:ke.childNodes[ge+1].firstChild,T.current=(Zt=(Ve=H.firstChild)==null?void 0:Ve.childNodes[1])==null?void 0:Zt.childNodes[ye],setTimeout(()=>{be==="bottom"?(X=U,D.current=null,b({top:!1,bottom:!1,left:!1,right:!1,column:!1,row:!0,options:!1})):be==="right"?(ee=U,D.current=null,b({top:!1,bottom:!1,left:!1,right:!1,column:!0,row:!1,options:!1})):ge===me-1&&ye===se-1?(X=U,ee=U,b({top:!1,bottom:!1,left:!1,right:!1,column:!0,row:!0,options:!0})):!ge&&!ye?b({top:!1,bottom:!0,left:!1,right:!0,column:!1,row:!1,options:!0}):ye&&!ge&&ye!==se-1?b({top:!1,bottom:!1,left:!0,right:!0,column:!1,row:!1,options:!0}):!ye&&ge&&ge!==me-1?b({top:!0,bottom:!0,left:!1,right:!1,column:!1,row:!1,options:!0}):!ye&&ge===me-1?(X=U,b({top:!0,bottom:!1,left:!1,right:!1,column:!1,row:!0,options:!0})):!ge&&ye===se-1?(ee=U,b({top:!1,bottom:!1,left:!0,right:!1,column:!0,row:!1,options:!0})):!ye&&ge&&ge!==me-1?b({top:!0,bottom:!0,left:!1,right:!0,column:!1,row:!1,options:!0}):ge===me-1?(X=U,b({top:!1,bottom:!1,left:!1,right:!1,column:!1,row:!0,options:!0})):ye===se-1?(ee=U,b({top:!1,bottom:!1,left:!1,right:!1,column:!0,row:!1,options:!0})):b({top:!1,bottom:!1,left:!1,right:!1,column:!1,row:!1,options:!0})},100)}}}),setTimeout(()=>{var U,be,xe,Ne,ke;if(H){const{width:Ve,y:Zt,left:St,right:me,bottom:se,height:ge}=H.getBoundingClientRect(),{y:ye,left:rt}=n.getBoundingClientRect();if(D.current){const Dn=r.getElementByKey(D.current.getKey());if(Dn!=null){const hn=Dn.getBoundingClientRect(),Dt=hn.top-ye+6;let Jt=hn.right-rt-20;Jt>me&&(Jt=Ve+30),y||m({top:Dt,left:Jt})}}if(T.current){const{top:Dn,width:hn,left:Dt,right:Jt}=T.current.getBoundingClientRect(),Bs=qn,Nx=Dt-rt-Bs/2,Ix=Dn-ye-Bs/2;let ou=hn+Bs+2;Jt>me&&(ou=ou-(Jt-me)),d({width:ou,height:Bs,top:Ix,left:Nx})}if(k.current){const{top:Dn,height:hn}=k.current.getBoundingClientRect(),Dt=qn,Jt=St-rt-Dt/2,Bs=Dn-ye-Dt/2;g({height:hn+Dt+2,top:Bs,left:Jt})}const Ge=(U=H.parentElement)!=null&&U.classList.contains("dsd__theme__callout-container")&&document.documentElement.getAttribute("data-mantine-color-scheme")==="light"?"rgba(173, 181, 189, 0.7)":"";if(X){const Dn=se-ye+3,hn=((be=H.firstElementChild)==null?void 0:be.clientWidth)||0;l({left:St-rt,top:Dn,width:Ve>hn?hn-2:Ve,padding:0,backgroundColor:Ge})}const{right:Rt}=(xe=H.firstElementChild)==null?void 0:xe.getBoundingClientRect(),ut=me>Rt?Rt:me;ee&&(GM(me,(ke=(Ne=r._rootElement)==null?void 0:Ne.parentElement)==null?void 0:ke.parentElement),c({height:ge,left:ut-rt+3,top:Zt-ye,padding:0,backgroundColor:Ge}))}},100)},50,150),I=()=>{b({top:!1,bottom:!1,left:!1,right:!1,column:!1,row:!1,options:!1}),D.current=null,w(!1)},P=(j=(B=k.current)==null?void 0:B.parentElement)==null?void 0:j.parentElement;x.useEffect(()=>{var F;P&&((F=P.parentElement)==null||F.addEventListener("scroll",()=>{I()}))},[P]),x.useEffect(()=>{if(s)return document.addEventListener("mousemove",N),()=>{I(),N.cancel(),document.removeEventListener("mousemove",N)}},[s,N]),x.useEffect(()=>r.registerCommand(Bn,F=>(F&&I(),!1),le),[]),x.useEffect(()=>ve(r.registerMutationListener(lr,F=>{r.getEditorState().read(()=>{for(const[V,K]of F)switch(K){case"created":S.current.add(V),C.current=r.getElementByKey(V),o(S.current.size>0);break;case"destroyed":S.current.delete(V),o(S.current.size>0);break;case"updated":o(!0);const Y=r.getElementByKey(V);C.current=Y;break}})})),[r]);const G=F=>{r.update(()=>{if(_.current){const V=he(_.current);F?(V==null||V.selectNext(),Ba(),I()):(V==null||V.selectEnd(),tf(),I())}})},J=x.useCallback(F=>{r.update(()=>{const V=k.current;if(V){const K=he(V);K==null||K.selectEnd(),Ba(F),I()}})},[r]),te=x.useCallback(F=>{r.update(()=>{const V=T.current;if(V){const K=he(V);K==null||K.selectEnd(),tf(F),I()}})},[r]),Q=window.matchMedia("(pointer: coarse)").matches;return p.jsxs(p.Fragment,{children:[p.jsx(E.Transition,{mounted:!!(D.current&&A.options&&!Q),transition:"fade",duration:300,timingFunction:"ease",children:F=>p.jsx("div",{className:"table-cell-action-button-container",style:{...F,...h},children:D.current&&p.jsx(VM,{isMenuOpen:y,contextRef:v,tableCellNode:D.current,cellMerge:t,setIsMenuOpen:w,tableDom:C.current,children:p.jsx(E.Tooltip,{label:L("editor.table.settings"),children:p.jsx(E.ActionIcon,{className:"table-cell-action-button",ref:v,size:qn,color:"gray",variant:"light",children:p.jsx($,{style:{width:"100%",height:"100%"},name:"chevron-down"})})})})})}),p.jsx(E.Transition,{mounted:A.row,transition:"fade",duration:300,timingFunction:"ease",children:F=>p.jsx(E.Tooltip,{label:L("editor.table.menu.addRowBelow"),position:"bottom",children:p.jsx(E.Button,{className:"dsd__theme__tableAddRows",style:{...F,...i},onClick:()=>G(!0),variant:"light",size:"xs",color:"gray",radius:"sm",h:23,children:p.jsx(z.IconPlus,{size:qn,className:"dsd__theme__tableAddRows-icon",stroke:1})})})}),p.jsx(E.Transition,{mounted:A.column,transition:"fade",duration:300,timingFunction:"ease",children:F=>p.jsx(E.Tooltip,{label:L("editor.table.menu.addColAfter"),position:"right",children:p.jsx(E.Button,{className:"dsd__theme__tableAddColumns",style:{...F,...a},onClick:()=>G(!1),variant:"light",justify:"center",size:"xs",color:"gray",w:23,radius:"sm",children:p.jsx(z.IconPlus,{className:"dsd__theme__tableAddColumns-icon",size:qn,stroke:1})})})}),p.jsx(E.Transition,{mounted:k.current!=null&&(A.top||A.bottom)&&!Q,transition:"fade",duration:300,timingFunction:"ease",children:F=>p.jsx("div",{className:"table-row-add-container",style:{...F,...f},children:k.current&&p.jsxs(E.Stack,{align:"stretch",justify:"space-between",h:"100%",children:[p.jsx(E.Tooltip,{label:L("editor.table.menu.addRowAbove"),children:p.jsx(E.ActionIcon,{onClick:()=>J(!1),size:qn,variant:"light",radius:"xl","aria-label":"Settings",color:"gray",style:{opacity:A.top?1:0,pointerEvents:A.top?"auto":"none"},children:p.jsx(z.IconPlus,{size:10,stroke:1})})}),p.jsx(E.Tooltip,{label:L("editor.table.menu.addRowBelow"),children:p.jsx(E.ActionIcon,{onClick:()=>J(!0),size:qn,variant:"light","aria-label":"Settings",radius:"xl",color:"gray",style:{opacity:A.bottom?1:0,pointerEvents:A.bottom?"auto":"none"},children:p.jsx(z.IconPlus,{size:10,stroke:1})})})]})})}),p.jsx(E.Transition,{mounted:T.current!=null&&(A.left||A.right),transition:"fade",duration:300,timingFunction:"ease",keepMounted:!0,children:F=>p.jsx("div",{className:"table-cell-add-container",style:{...F,...u},children:p.jsxs(E.Group,{justify:A.left?"space-between":"flex-end",children:[p.jsx(p.Fragment,{children:A.left&&p.jsx(E.Tooltip,{label:L("editor.table.menu.addColBefore"),children:p.jsx(E.ActionIcon,{onClick:()=>te(!1),size:qn,variant:"light","aria-label":"Settings",radius:"xl",color:"gray",children:p.jsx(z.IconPlus,{size:10,stroke:1})})})}),p.jsx(p.Fragment,{children:A.right&&p.jsx(E.Tooltip,{label:L("editor.table.menu.addColAfter"),children:p.jsx(E.ActionIcon,{onClick:()=>te(!0),size:qn,variant:"light","aria-label":"Settings",radius:"xl",color:"gray",children:p.jsx(z.IconPlus,{size:10,stroke:1})})})})]})})})]})}function JM(n){const e=n.target;if(e&&(e instanceof HTMLElement||e instanceof SVGElement)){const t="td.dsd__theme__tableCell, th.dsd__theme__tableCell";let r=e.closest(t);if(r==null||r.setAttribute("data-show-button-near-table",""),e.className==="ContentEditable__root"||e.className==="dsd__theme__table-scrollable-wrapper"||e.className==="dsd__theme__callout-wrapper"||e.className==="dsd__theme__layoutItem"||e.className==="dsd__theme__callout-container"){const l=document.elementFromPoint(n.x-40,n.y),a=document.elementFromPoint(n.x,n.y-40);if(l||a){const c=l==null?void 0:l.closest(t),u=a==null?void 0:a.closest(t);c&&e.className!=="dsd__theme__layoutItem"&&(r=c,r.setAttribute("data-show-button-near-table","right")),u&&(r=u,r.setAttribute("data-show-button-near-table","bottom"))}}let s=e.closest(".dsd__theme__tableAddRows")||e.closest(".table-cell-action-button-container")||e.closest(".dsd__theme__tableAddColumns");const o=e.closest(".mantine-Menu-dropdown");return{isOutside:!(r||s||o||e.closest("div.TableCellResizer__resizer")),tableDOMNode:r}}else return{isOutside:!0,tableDOMNode:null}}function XM({anchorElem:n=document.body,cellMerge:e=!1}){return un.createPortal(p.jsx(ZM,{isShowTableOptions:!1,cellMerge:e,anchorElem:n}),n)}function QM({hasCellMerge:n=!0,hasCellBackgroundColor:e=!0,hasTabHandler:t=!0,hasHorizontalScroll:r=!0}){const[s]=ie();return x.useEffect(()=>{mD(s,r)},[s,r]),x.useEffect(()=>(s.hasNodes([lr,vn,Io])||ce(!1,"TablePlugin: TableNode, TableCellNode or TableRowNode not registered on editor"),ve(s.registerCommand(Wc,({columns:o,rows:i,includeHeaders:l})=>{const a=X1(Number(i),Number(o),l),c=Ke();c&&c.replace(a);const u=a.getFirstDescendant();return Ht(u)&&u.select(),!0},pe),s.registerNodeTransform(lr,o=>{const[i]=tv(o,null,null),l=i.reduce((c,u)=>Math.max(c,u.length),0),a=o.getChildren();for(let c=0;c<i.length;++c){const u=a[c];if(!u)continue;const d=i[c].reduce((f,g)=>g?1+f:f,0);if(d!==l)for(let f=d;f<l;++f){const g=xn(0);g.append(re()),u.append(g)}}}))),[s]),x.useEffect(()=>{const o=new Map,i=(a,c,u)=>{const d=Ss(a,u),f=sD(a,d,s,t);o.set(c,[f,d])},l=s.registerMutationListener(lr,a=>{s.getEditorState().read(()=>{for(const[c,u]of a){const d=o.get(c);if(u==="created"||u==="updated"){const{tableNode:f,tableElement:g}=nv(c);d===void 0?i(f,c,g):g!==d[1]&&(d[0].removeListeners(),o.delete(c),i(f,c,g))}else u==="destroyed"&&d!==void 0&&(d[0].removeListeners(),o.delete(c))}},{editor:s})},{skipInitialization:!1});return()=>{l();for(const[,[a]]of o)a.removeListeners()}},[s,t]),x.useEffect(()=>{if(!n)return s.registerNodeTransform(vn,o=>{if(o.getColSpan()>1||o.getRowSpan()>1){const[,,i]=vt(o),[l]=ln(i,o,o),a=l.length,c=l[0].length;let u=i.getFirstChild();ce(Qe(u),"Expected TableNode first child to be a RowNode");const d=[];for(let f=0;f<a;f++){f!==0&&(u=u.getNextSibling(),ce(Qe(u),"Expected TableNode first child to be a RowNode"));let g=null;for(let h=0;h<c;h++){const m=l[f][h],A=m.cell;if(m.startRow===f&&m.startColumn===h)g=A,d.push(A);else if(A.getColSpan()>1||A.getRowSpan()>1){ce(oe(A),"Expected TableNode cell to be a TableCellNode");const b=xn(A.__headerState);g!==null?g.insertAfter(b):G0(u,b)}}}for(const f of d)f.setColSpan(1),f.setRowSpan(1)}})},[s,n]),x.useEffect(()=>{if(!e)return s.registerNodeTransform(vn,o=>{o.getBackgroundColor()!==null&&o.setBackgroundColor(null)})},[s,e,n]),null}function dy(n){return(n==null?void 0:n.tagName)==="TABLE"}const qM=n=>{const e=R();if(M(e)&&e.isCollapsed()){const t=e.anchor.getNode(),r=ae(t,Oe),s=ae(t,oe);return eu(n,r,s)}return!0};function Dg(n){const{floatingAnchorElem:e,isSmallWidthViewport:t}=n,[r]=ie(),{settings:{tableCellMerge:s,showTableOfContents:o,tableCellBackgroundColor:i}}=To();return x.useEffect(()=>ve(r.registerCommand(Ns,l=>{var d,f;try{const h=(l.clipboardData||window.clipboardData).getData("text/html"),m=document.createElement("div");m.innerHTML=h;let A=null;if(m.childNodes.length===1&&dy(m.firstChild)&&(A=m.firstChild),m.childNodes.length===2&&dy(m.childNodes[1])&&(A=m.childNodes[1]),m.childNodes.length===2&&((d=m.childNodes[1].className)!=null&&d.includes("table-scrollable-wrapper"))&&(A=m.childNodes[1].firstChild),A){l.preventDefault();const b=Ke();if(b){const y=ae(b,oe),w=ae(b,Qe),v=ae(b,Oe),S=A.querySelectorAll("tr"),C=S[0].childNodes,_=v.getChildren();let k=null,T=0;for(let N=0;N<v.getChildren().length;N++)if(v.getChildren()[N].__key===(w==null?void 0:w.__key)&&(T=N,N+S.length>_.length)){let P=N+S.length-_.length;(f=v==null?void 0:v.getLastChild())==null||f.selectStart();for(let G=0;G<P;G++)Ba(!0);break}let D=0;v.getChildren().forEach((N,I)=>{if(I>=T&&S[D]){let P=0;N.getChildren().forEach((J,te)=>{var Q,B;if(oe(J)&&(J.__key===(y==null?void 0:y.__key)&&(k=te,J==null||J.selectStart()),k!==null&&te>=k&&te<C.length+k)){const j=((B=(Q=S[D])==null?void 0:Q.childNodes[P])==null?void 0:B.innerText)||"";J.clear();const F=re(),V=hr(j||"");F.append(V),J.append(F),P++}}),D++}})}return!0}}catch(g){console.error("TABLE PASTE",g)}const a=R(),c=a==null?void 0:a.getNodes();return oe(c[1])&&r.update(()=>{c.forEach(g=>{Oe(g)&&g.remove()})}),!1},le)),[r]),p.jsxs(p.Fragment,{children:[p.jsx(QM,{hasCellMerge:s,hasCellBackgroundColor:i,hasTabHandler:!0,hasHorizontalScroll:!0}),p.jsx(NM,{}),e&&p.jsxs(p.Fragment,{children:[p.jsx(XM,{anchorElem:e,cellMerge:!0}),p.jsx("div",{children:o&&p.jsx(Tg,{})})]})]})}const $M=n=>({center:{icon:"align-center",iconRTL:"center-align",name:n("editor.toolbar.center")},end:{icon:"align-end",iconRTL:"left-align",name:"End Align"},justify:{icon:"align-justify",iconRTL:"justify-align",name:n("editor.toolbar.justify")},left:{icon:"align-left",iconRTL:"left-align",name:n("editor.toolbar.left")},right:{icon:"align-right",iconRTL:"left-align",name:n("editor.toolbar.right")},start:{icon:"align-start",iconRTL:"right-align",name:"Start Align"}});function eO({editor:n,value:e,disabled:t=!1,setElementFormat:r}){const{t:s}=We.useTranslation(),o=x.useMemo(()=>$M(s),[]),i=x.useMemo(()=>e==="start"||e==="end"?o.left:o[e||"left"],[e]),l=a=>{r(a),n.dispatchCommand($a,a)};return p.jsxs(E.Menu,{transitionProps:yr,shadow:"md",styles:{dropdown:{zIndex:1e3}},children:[p.jsx(E.Menu.Target,{children:p.jsx(E.Tooltip,{label:s("editor.toolbar.align"),children:p.jsxs("button",{disabled:t,className:"toolbar-item spaced alignment","aria-label":"Formatting options for text alignment",type:"button",children:[p.jsx($,{size:18,name:i.icon}),p.jsxs(E.Text,{mx:5,size:"sm",children:[" ",i.name]}),p.jsx($,{name:"chevron-down"})]})})}),p.jsxs(E.Menu.Dropdown,{children:[p.jsx(E.Menu.Item,{leftSection:p.jsx($,{size:18,name:"align-left"}),rightSection:e==="left"&&p.jsx($,{name:"check-mark"}),onClick:()=>l("left"),children:o.left.name}),p.jsx(E.Menu.Item,{leftSection:p.jsx($,{size:18,name:"align-center"}),rightSection:e==="center"&&p.jsx($,{name:"check-mark"}),onClick:()=>l("center"),children:o.center.name}),p.jsx(E.Menu.Item,{leftSection:p.jsx($,{size:18,name:"align-right"}),rightSection:e==="right"&&p.jsx($,{name:"check-mark"}),onClick:()=>l("right"),children:o.right.name}),p.jsx(E.Menu.Item,{leftSection:p.jsx($,{size:18,name:"align-justify"}),rightSection:e==="justify"&&p.jsx($,{name:"check-mark"}),onClick:()=>l("justify"),children:o.justify.name})]})]})}const fy={bullet:"Маркированный список",check:"Чек-лист",code:"Кодовый блок",h1:"Заголовок 1",h2:"Заголовок 2",h3:"Заголовок 3",h4:"Заголовок 4",h5:"Заголовок 5",h6:"Заголовок 6",number:"Нумерованный список",paragraph:"Параграф",quote:"Цитата"};function Bl(){return p.jsx("div",{className:"divider"})}function Ng({mode:n,isFloating:e}){const[t]=ie(),[r,s]=x.useState(t),[o,i]=x.useState("paragraph"),[l,a]=x.useState("root"),[c,u]=x.useState(null),[d,f]=x.useState("#000"),[g,h]=x.useState("#fff"),[m,A]=x.useState("left"),[b,y]=x.useState(!1),[w,v]=x.useState(!1),[S,C]=x.useState(!1),[_,k]=x.useState(!1),[T,D]=x.useState(!1),[L,N]=x.useState(!1),[I,P]=x.useState(!1),[G,J]=x.useState(!1),[te,Q]=x.useState(!1),[B,j]=x.useState(!1),[F,V]=Sg(),[K,Y]=x.useState(!1),[X,ee]=x.useState(!0),[H,U]=x.useState(()=>t.isEditable()),be=n||"default",{fetchUploadImage:xe,excludeNodes:Ne}=x.useContext(Gt),{t:ke}=We.useTranslation(),Ve=x.useCallback(()=>{const se=R();if(M(se)){const ge=se.anchor.getNode();let ye=ge.getKey()==="root"?ge:ae(ge,Dt=>{const Jt=Dt.getParent();return Jt!==null&&At(Jt)});se.getNodes().length===1?ee(!0):ee(!1),ye===null&&(ye=ge.getTopLevelElementOrThrow());const Ge=ye.getKey(),Rt=r.getElementByKey(Ge);v(se.hasFormat("bold")),C(se.hasFormat("italic")),k(se.hasFormat("underline")),D(se.hasFormat("strikethrough")),N(se.hasFormat("subscript")),P(se.hasFormat("superscript")),J(se.hasFormat("code")),Y(Pb(se));const ut=xs(se),Dn=ut.getParent();it(Dn)||it(ut)?y(!0):y(!1);const hn=ae(ut,Oe);if(Oe(hn)?a("table"):a("root"),Rt!==null)if(u(Ge),we(ye)){const Dt=Bb(ge,fn),Jt=Dt?Dt.getListType():ye.getListType();i(Jt)}else{const Dt=or(ye)?ye.getTag():ye.getType();Dt in fy&&i(Dt)}}},[r,ee]);x.useEffect(()=>(t.read(()=>{const se=R();if(M(se)){f(xa(se,"color","inherit")),h(xa(se,"background-color","inherit"));const ge=xs(se),ye=ge.getParent();se.getNodes();let rt;it(ye)&&(rt=ae(ge,Ge=>O(Ge)&&!Ge.isInline())),A(O(rt)?rt.getFormatType():O(ge)?ge.getFormatType():(ye==null?void 0:ye.getFormatType())||"left")}}),t.registerCommand(Qt,(se,ge)=>(Ve(),s(ge),!1),dt)),[t,Ve]),x.useEffect(()=>ve(t.registerEditableListener(se=>{U(se)}),r.registerUpdateListener(({editorState:se})=>{se.read(()=>{Ve()})}),r.registerCommand(Js,se=>(Q(se),!1),dt),r.registerCommand(Zs,se=>(j(se),!1),dt)),[Ve,r,t]),x.useEffect(()=>r.registerCommand(zy,se=>{const ge=se,{code:ye,ctrlKey:rt,metaKey:Ge}=ge;if(ye==="KeyK"&&(rt||Ge)){ge.preventDefault();let Rt;return b?Rt=null:Rt=ta("https://"),r.dispatchCommand(po,Rt)}return!1},pc),[r,b]),x.useCallback((se,ge)=>{r.update(()=>{const ye=R();ye!==null&&_p(ye,se)},ge?{tag:"historic"}:{})},[r]);const Zt=x.useCallback(()=>{r.update(()=>{const se=R();if(M(se)){const ge=se.anchor,ye=se.focus,rt=se.getNodes();if(ge.key===ye.key&&ge.offset===ye.offset)return;rt.forEach((Ge,Rt)=>{if(Ht(Ge)){let ut=Ge;Rt===0&&ge.offset!==0&&(ut=ut.splitText(ge.offset)[1]||ut),Rt===rt.length-1&&(ut=ut.splitText(ye.offset)[0]||ut),ut.__style!==""&&ut.setStyle(""),ut.__format!==0&&(ut.setFormat(0),vo(ut).setFormat("")),Ge=ut}else or(Ge)||Ei(Ge)?Ge.replace(re(),!0):of(Ge)&&Ge.setFormat("")})}})},[r]),St=se=>{f(se.color),h(se["background-color"]),r.update(()=>{const ge=R();ge!==null&&_p(ge,se)})},me=x.useCallback(()=>{t.dispatchCommand(Pc,"create")},[t]);return x.useCallback(se=>{r.update(()=>{if(c!==null){const ge=ue(c);Yt(ge)&&ge.setLanguage(se)}})},[r,c]),p.jsx("div",{className:"toolbar-wrapper",children:p.jsxs("div",{className:"toolbar",children:[be==="full"&&p.jsxs(p.Fragment,{children:[p.jsx(E.Tooltip,{label:"Отменить",children:p.jsx("button",{disabled:!te||!H,onClick:()=>{r.dispatchCommand(Fi,void 0)},title:rs?"Назад (⌘Z)":"Назад (Ctrl+Z)",type:"button",className:"toolbar-item spaced","aria-label":"Undo",children:p.jsx($,{name:"undo"})})}),p.jsx(E.Tooltip,{label:"Вернуть",children:p.jsx("button",{disabled:!B||!H,onClick:()=>{r.dispatchCommand(Bi,void 0)},title:rs?"Вперед (⌘Y)":"Вперед (Ctrl+Y)",type:"button",className:"toolbar-item","aria-label":"Redo",children:p.jsx($,{name:"redo"})})}),p.jsx(Bl,{})]}),o in fy&&r===t&&p.jsxs(p.Fragment,{children:[p.jsx(sx,{disabled:!H,blockType:o,rootType:l,editor:t,mode:be,fetchUploadImage:xe,excludeNodes:Ne}),p.jsx(Bl,{})]}),p.jsxs(p.Fragment,{children:[p.jsx(E.Tooltip,{label:ke("editor.toolbar.bold"),children:p.jsx("button",{disabled:!H,onClick:()=>{r.dispatchCommand(Ue,"bold")},className:"toolbar-item spaced "+(w?"active":""),type:"button","aria-label":`Format text as bold. Shortcut: ${rs?"⌘B":"Ctrl+B"}`,children:p.jsx($,{name:"bold"})})}),p.jsx(E.Tooltip,{label:ke("editor.toolbar.italic"),children:p.jsx("button",{disabled:!H,onClick:()=>{r.dispatchCommand(Ue,"italic")},className:"toolbar-item spaced "+(S?"active":""),type:"button","aria-label":`Format text as italics. Shortcut: ${rs?"⌘I":"Ctrl+I"}`,children:p.jsx($,{name:"italic"})})}),p.jsx(E.Tooltip,{label:ke("editor.toolbar.underline"),children:p.jsx("button",{disabled:!H,onClick:()=>{r.dispatchCommand(Ue,"underline")},className:"toolbar-item spaced "+(_?"active":""),type:"button","aria-label":`Format text to underlined. Shortcut: ${rs?"⌘U":"Ctrl+U"}`,children:p.jsx($,{name:"underline"})})}),p.jsx(E.Tooltip,{label:ke("editor.toolbar.strike"),children:p.jsx("button",{disabled:!H,className:"toolbar-item spaced "+(T?"active":""),onClick:()=>{r.dispatchCommand(Ue,"strikethrough")},"aria-label":"Clear all text formatting",children:p.jsx($,{name:"strikethrough"})})}),p.jsx(E.Tooltip,{label:ke("editor.toolbar.code"),children:p.jsx("button",{disabled:!H,onClick:()=>{r.dispatchCommand(Ue,"code")},className:"toolbar-item spaced "+(G?"active":""),type:"button","aria-label":"Insert code block",children:p.jsx($,{name:"code"})})}),p.jsx(E.Tooltip,{label:ke("editor.toolbar.clear"),children:p.jsx("button",{disabled:!H,className:"toolbar-item",onClick:Zt,title:"Clear text formatting","aria-label":"Clear all text formatting",children:p.jsx($,{name:"сlear-format"})})}),p.jsx(E.Tooltip,{label:ke("editor.toolbar.link"),children:p.jsx("button",{disabled:!H,onClick:me,className:"toolbar-item spaced "+(b?"active":""),"aria-label":"Insert link",type:"button",children:p.jsx($,{name:"link"})})}),p.jsx(kn.NewColorPicker,{value:{color:d,background:g},onChange:se=>St({color:d,"background-color":g,[se.mode==="color"?"color":"background-color"]:se.value}),disabled:!H,modes:n&&!["editor","full"].includes(n)?["color"]:["color","background"]})]}),p.jsx(Bl,{}),p.jsx(eO,{disabled:!H,value:m,editor:t,isRTL:K,setElementFormat:A}),n==="default"&&xe&&p.jsxs(p.Fragment,{children:[p.jsx(Bl,{}),p.jsx(pg,{popoverProps:{position:"bottom"},onUpload:se=>{!xe||!se.length||se.forEach(ge=>{xe(ge,(ye,rt)=>{t.dispatchCommand(Vr,{altText:"",src:ye,id:rt})})})},onChange:se=>{t.dispatchCommand(Vr,{altText:"",src:se})},children:p.jsx(E.Tooltip,{label:ke("editor.image.add_photo"),children:p.jsx("button",{disabled:!H,type:"button",className:"toolbar-item spaced",children:p.jsx($,{name:"photo"})})})})]}),F]})})}function tO(n){const{floatingAnchorElem:e,isSmallWidthViewport:t,showTextToolbar:r,onRef:s,maxHeight:o,mode:i,isLoading:l}=n,[a,c]=x.useState(!1),{settings:{isRichText:u,showTreeView:d}}=To(),{excludeNodes:f}=x.useContext(Gt);let g={};return o&&(g={maxHeight:o}),p.jsxs(p.Fragment,{children:[p.jsx(Ng,{mode:i}),p.jsx(xg,{setOpenedMenu:c,opened:a,mode:"default"}),e&&!t&&p.jsx(nu,{anchorElem:e}),p.jsxs("div",{className:`editor-container ${d?"tree-view":""} ${u?"":"plain-text"}`,children:[p.jsx(nx,{}),p.jsx(Wh,{isLoading:l}),p.jsx(Hh,{}),p.jsx(mg,{}),p.jsx(Lc,{}),p.jsx(cl,{contentEditable:p.jsx("div",{className:"editor-scroller",style:g,children:p.jsx("div",{className:"editor",ref:s,children:p.jsx(gl,{})})}),ErrorBoundary:ol}),p.jsx(Fv,{}),p.jsx(Ti,{}),p.jsx(Bc,{}),p.jsx(jc,{}),p.jsx(Vh,{maxDepth:7}),p.jsx(ul,{}),p.jsx(Uv,{}),p.jsx(wg,{}),p.jsx(Qv,{}),p.jsx(Gv,{}),p.jsx(Eg,{}),p.jsx(Ti,{}),p.jsx(_c,{}),p.jsx(Dc,{}),p.jsx(zc,{}),p.jsx(Bv,{}),p.jsx(zv,{}),p.jsx(Zv,{}),p.jsx(Gh,{}),e&&!t&&p.jsxs(p.Fragment,{children:[p.jsx(Dg,{floatingAnchorElem:e,isSmallWidthViewport:t}),p.jsx(kg,{isShowAddButton:!0,anchorElem:e}),p.jsx(Fc,{anchorElem:e,showTextToolbar:r})]}),e&&p.jsx(Rc,{anchorElem:e})]}),(f.contents||f.contents===void 0)&&p.jsx(Tg,{})]})}const lx=x.createContext({}),nO=({children:n})=>{const e=x.useMemo(()=>({historyState:aC()}),[]);return p.jsx(lx.Provider,{value:e,children:n})},ru=()=>x.useContext(lx),rO=({t:n,src:e,isShown:t,setShown:r,id:s})=>{const[o,{open:i,close:l}]=fi.useDisclosure(!1),a=()=>{},c=x.useMemo(()=>[{Id:!s||s==="0"?null:s,Url:e??""}],[e,s]),u=d=>{d?i():l()};return p.jsxs(p.Fragment,{children:[p.jsx(kn.AttachmentsGalleryModal,{showAttach:c[0],setShowAttach:a,opened:o,onOpenChange:u,attachments:c,translation:{download:n("editor.gallery.download"),close:n("editor.gallery.close"),errorFile:n("editor.gallery.errorFile")}}),p.jsx(E.Tooltip,{disabled:!t,label:n("editor.image.preview"),children:p.jsx(E.ActionIcon,{onClick:()=>{r(!1),i()},size:24,variant:"default",color:"gray","aria-label":"Settings",children:p.jsx($,{size:"14",name:"photo-check"})})})]})},hy=8,sO=({anchorElem:n=document.body})=>{var m;const[e]=ie(),[t,r]=x.useState(!1),[s,o]=x.useState(!1),[i,l]=x.useState(null),a=x.useRef(null),[c,u]=x.useState({right:"0",top:"0"}),{t:d}=We.useTranslation(),f=Oc(A=>{if(A.target instanceof HTMLElement&&A.target.clientWidth<100)return;const{lexicalDOMNode:y,isOutside:w}=UC(A,"img",["div.media-actions"]);if(w){o(!1);return}if(a.current=y,y){e.update(()=>{const D=he(y);D&&l({key:D.__key,src:D.__src})});const{y:v,right:S}=n.getBoundingClientRect(),{y:C,right:_}=y.getBoundingClientRect();o(!0);const k=C-v+hy,T=S-_+hy;u(()=>({right:`${T}px`,top:`${k}px`}))}},50,500);x.useEffect(()=>(document.addEventListener("mousemove",f),document.addEventListener("touchstart",f),()=>{o(!1),f.cancel(),document.removeEventListener("mousemove",f)}),[f]);const g=(A,b)=>{{A();return}},h=s?"auto":"none";return un.createPortal(p.jsxs("div",{className:`media-actions ${s?"visible":""}`,style:{right:c.right,top:c.top,pointerEvents:h},children:[!lf&&p.jsx(bv,{opened:t,setOpened:r,t:d,editor:e,nodeKey:i==null?void 0:i.key,setShown:o,isShown:s}),p.jsx(rO,{setShown:o,isShown:s,t:d,src:i==null?void 0:i.src,id:(m=a.current)==null?void 0:m.getAttribute("data-id")}),p.jsx(E.Tooltip,{disabled:!s,label:d("editor.contextMenu.delete"),children:p.jsx(E.ActionIcon,{color:"gray","aria-label":"Settings",className:"media-action",size:24,onClick:A=>{A.stopPropagation(),g(()=>{e.update(()=>{if(i!=null&&i.key){const b=ue(i==null?void 0:i.key);dg(b)&&(b.getPreviousSibling()?b.remove():b.replace(re()),e.dispatchCommand(Bn,"hide_menu"),o(!1))}return!1})})},variant:"default",children:p.jsx($,{size:"14",name:"trash"})})})]}),n)},oO=ze();function iO(){const[n]=ie();return x.useEffect(()=>{if(!n.hasNodes([fl]))throw new Error("FormPlugin: FormNode not registered on editor");return n.registerCommand(oO,e=>{const t=ug(e);return zb(t),!0},pe)},[n]),null}const Ig=/^(\d+(?:\.\d+)?)px$/,ar={BOTH:3,NO_STATUS:0,ROW:1};class Al extends De{static getType(){return"tablecell"}static clone(e){return new Al(e.__headerState,e.__colSpan,e.__width,e.__key)}afterCloneFrom(e){super.afterCloneFrom(e),this.__rowSpan=e.__rowSpan,this.__backgroundColor=e.__backgroundColor}static importDOM(){return{td:e=>({conversion:gy,priority:0}),th:e=>({conversion:gy,priority:0})}}static importJSON(e){const t=e.colSpan||1,r=e.rowSpan||1;return Lg(e.headerState,t,e.width||void 0).setRowSpan(r).setBackgroundColor(e.backgroundColor||null)}constructor(e=ar.NO_STATUS,t=1,r,s){super(s),this.__colSpan=t,this.__rowSpan=1,this.__headerState=e,this.__width=r,this.__backgroundColor=null}createDOM(e){const t=document.createElement(this.getTag());return this.__width&&(t.style.width=`${this.__width}px`),this.__colSpan>1&&(t.colSpan=this.__colSpan),this.__rowSpan>1&&(t.rowSpan=this.__rowSpan),this.__backgroundColor!==null&&(t.style.backgroundColor=this.__backgroundColor),_e(t,e.theme.tableCell,this.hasHeader()&&e.theme.tableCellHeader),t}exportDOM(e){const t=super.exportDOM(e);if(t.element&&lt(t.element)){const r=t.element;r.setAttribute("data-temporary-table-cell-lexical-key",this.getKey()),r.style.border="1px solid black",this.__colSpan>1&&(r.colSpan=this.__colSpan),this.__rowSpan>1&&(r.rowSpan=this.__rowSpan),r.style.width=`${this.getWidth()||75}px`,r.style.verticalAlign="top",r.style.textAlign="start",this.__backgroundColor===null&&this.hasHeader()&&(r.style.backgroundColor="#f2f3f5")}return t}exportJSON(){return{...super.exportJSON(),backgroundColor:this.getBackgroundColor(),colSpan:this.__colSpan,headerState:this.__headerState,rowSpan:this.__rowSpan,type:"tablecell",width:this.getWidth()}}getColSpan(){return this.getLatest().__colSpan}setColSpan(e){const t=this.getWritable();return t.__colSpan=e,t}getRowSpan(){return this.getLatest().__rowSpan}setRowSpan(e){const t=this.getWritable();return t.__rowSpan=e,t}getTag(){return this.hasHeader()?"th":"td"}setHeaderStyles(e,t=ar.BOTH){const r=this.getWritable();return r.__headerState=e&t|r.__headerState&~t,r}getHeaderStyles(){return this.getLatest().__headerState}setWidth(e){const t=this.getWritable();return t.__width=e,t}getWidth(){return this.getLatest().__width}getBackgroundColor(){return this.getLatest().__backgroundColor}setBackgroundColor(e){const t=this.getWritable();return t.__backgroundColor=e,t}toggleHeaderStyle(e){const t=this.getWritable();return(t.__headerState&e)===e?t.__headerState-=e:t.__headerState+=e,t}hasHeaderState(e){return(this.getHeaderStyles()&e)===e}hasHeader(){return this.getLatest().__headerState!==ar.NO_STATUS}updateDOM(e){return e.__headerState!==this.__headerState||e.__width!==this.__width||e.__colSpan!==this.__colSpan||e.__rowSpan!==this.__rowSpan||e.__backgroundColor!==this.__backgroundColor}isShadowRoot(){return!0}collapseAtStart(){return!0}canBeEmpty(){return!1}canIndent(){return!1}}function gy(n){const e=n,t=n.nodeName.toLowerCase();let r;Ig.test(e.style.width)&&(r=parseFloat(e.style.width));const s=Lg(t==="th"?ar.ROW:ar.NO_STATUS,e.colSpan,r);s.__rowSpan=e.rowSpan;const o=e.style.backgroundColor;o!==""&&(s.__backgroundColor=o);const i=e.style,l=(i&&i.textDecoration||"").split(" "),a=i.fontWeight==="700"||i.fontWeight==="bold",c=l.includes("line-through"),u=i.fontStyle==="italic",d=l.includes("underline");return{after:f=>(f.length===0&&f.push(re()),f),forChild:(f,g)=>{if(Ts(g)&&!O(f)){const h=re();return Ee(f)&&f.getTextContent()===`
84
- `?null:(W(f)&&(a&&f.toggleFormat("bold"),c&&f.toggleFormat("strikethrough"),u&&f.toggleFormat("italic"),d&&f.toggleFormat("underline")),h.append(f),h)}return f},node:s}}function Lg(n,e=1,t){return Me(new Al(n,e,t))}function Ts(n){return n instanceof Al}function lO(n){return n&&n.__esModule&&Object.prototype.hasOwnProperty.call(n,"default")?n.default:n}var pf=lO(function(n){const e=new URLSearchParams;e.append("code",n);for(let t=1;t<arguments.length;t++)e.append("v",arguments[t]);throw Error(`Minified Lexical error #${n}; visit https://lexical.dev/docs/error?${e} for the full message or use the non-minified dev environment for full errors and additional helpful warnings.`)});const ax=typeof window<"u"&&window.document!==void 0&&window.document.createElement!==void 0,aO=ax&&"documentMode"in document?document.documentMode:null;ax&&"InputEvent"in window&&!aO&&new window.InputEvent("input");class yl extends De{static getType(){return"tablerow"}static clone(e){return new yl(e.__height,e.__key)}static importDOM(){return{tr:e=>({conversion:cO,priority:0})}}static importJSON(e){return Mg(e.height)}constructor(e,t){super(t),this.__height=e}exportJSON(){return{...super.exportJSON(),...this.getHeight()&&{height:this.getHeight()},type:"tablerow",version:1}}createDOM(e){const t=document.createElement("tr");return this.__height&&(t.style.height=`${this.__height}px`),_e(t,e.theme.tableRow),t}extractWithChild(e,t,r){return r==="html"}isShadowRoot(){return!0}setHeight(e){return this.getWritable().__height=e,this.__height}getHeight(){return this.getLatest().__height}updateDOM(e){return e.__height!==this.__height}canBeEmpty(){return!1}canIndent(){return!1}}function cO(n){const e=n;let t;return Ig.test(e.style.height)&&(t=parseFloat(e.style.height)),{node:Mg(t)}}function Mg(n){return Me(new yl(n))}function Ya(n){return n instanceof yl}function uO(n,e,t){const r=[];let s=null,o=null;function i(a){let c=r[a];return c===void 0&&(r[a]=c=[]),c}const l=n.getChildren();for(let a=0;a<l.length;a++){const c=l[a];Ya(c)||pf(209);for(let u=c.getFirstChild(),d=0;u!=null;u=u.getNextSibling()){Ts(u)||pf(147);const f=i(a);for(;f[d]!==void 0;)d++;const g={cell:u,startColumn:d,startRow:a},{__rowSpan:h,__colSpan:m}=u;for(let A=0;A<h&&!(a+A>=l.length);A++){const b=i(a+A);for(let y=0;y<m;y++)b[d+y]=g}}}return[r,s,o]}function dO(n,e){for(let t=e,r=null;t!==null;t=t.getParent()){if(n.is(t))return r;Ts(t)&&(r=t)}return null}function fO(n,e,t){return dO(n,he(e,t))}function py(n,e,t,r){const s=n.querySelector("colgroup");if(!s)return;const o=[];for(let i=0;i<t;i++){const l=document.createElement("col"),a=r&&r[i];a&&(l.style.width=`${a}px`),o.push(l)}s.replaceChildren(...o)}function my(n,e,t){t?(_e(n,e.theme.tableRowStriping),n.setAttribute("data-lexical-row-striping","true")):(Gn(n,e.theme.tableRowStriping),n.removeAttribute("data-lexical-row-striping"))}const hO=new WeakSet;function gO(n=cc()){return hO.has(n)}class bl extends De{static getType(){return"table"}getColWidths(){return this.getLatest().__colWidths}setColWidths(e){const t=this.getWritable();return t.__colWidths=e,t}static clone(e){return new bl(e.__key)}afterCloneFrom(e){super.afterCloneFrom(e),this.__colWidths=e.__colWidths,this.__rowStriping=e.__rowStriping}static importDOM(){return{table:e=>({conversion:pO,priority:1})}}static importJSON(e){const t=Og();return t.__rowStriping=e.rowStriping||!1,t.__colWidths=e.colWidths,t}constructor(e){super(e),this.__rowStriping=!1}exportJSON(){return{...super.exportJSON(),colWidths:this.getColWidths(),rowStriping:this.__rowStriping?this.__rowStriping:void 0,type:"table",version:1}}extractWithChild(e,t,r){return r==="html"}getDOMSlot(e){const t=e.nodeName!=="TABLE"&&e.querySelector("table")||e;return t.nodeName!=="TABLE"&&pf(229),super.getDOMSlot(t).withAfter(t.querySelector("colgroup"))}createDOM(e,t){const r=document.createElement("table"),s=document.createElement("colgroup");if(r.appendChild(s),py(r,0,this.getColumnCount(),this.getColWidths()),ib(s),_e(r,e.theme.table),this.__rowStriping&&my(r,e,!0),gO(t)){const o=document.createElement("div"),i=e.theme.tableScrollableWrapper;return i?_e(o,i):o.style.cssText="overflow-x: auto;",o.appendChild(r),o}return r}updateDOM(e,t,r){return e.__rowStriping!==this.__rowStriping&&my(t,r,this.__rowStriping),py(t,0,this.getColumnCount(),this.getColWidths()),!1}exportDOM(e){const t=super.exportDOM(e),{element:r}=t;return{after:s=>{if(t.after&&(s=t.after(s)),s&&lt(s)&&s.nodeName!=="TABLE"&&(s=s.querySelector("table")),!s||!lt(s))return null;const[o]=uO(this),i=new Map;for(const u of o)for(const d of u){const f=d.cell.getKey();i.has(f)||i.set(f,{colSpan:d.cell.getColSpan(),startColumn:d.startColumn})}const l=new Set;for(const u of s.querySelectorAll(":scope > tr > [data-temporary-table-cell-lexical-key]")){const d=u.getAttribute("data-temporary-table-cell-lexical-key");if(d){const f=i.get(d);if(u.removeAttribute("data-temporary-table-cell-lexical-key"),f){i.delete(d);for(let g=0;g<f.colSpan;g++)l.add(g+f.startColumn)}}}const a=s.querySelector(":scope > colgroup");if(a){const u=Array.from(s.querySelectorAll(":scope > colgroup > col")).filter((d,f)=>l.has(f));a.replaceChildren(...u)}const c=s.querySelectorAll(":scope > tr");if(c.length>0){const u=document.createElement("tbody");for(const d of c)u.appendChild(d);s.append(u)}return s},element:r&&lt(r)&&r.nodeName!=="TABLE"?r.querySelector("table"):r}}canBeEmpty(){return!1}isShadowRoot(){return!0}getCordsFromCellNode(e,t){const{rows:r,domRows:s}=t;for(let o=0;o<r;o++){const i=s[o];if(i!=null)for(let l=0;l<i.length;l++){const a=i[l];if(a==null)continue;const{elem:c}=a,u=fO(this,c);if(u!==null&&e.is(u))return{x:l,y:o}}}throw new Error("Cell not found in table.")}getDOMCellFromCords(e,t,r){const{domRows:s}=r,o=s[t];if(o==null)return null;const i=o[e<o.length?e:o.length-1];return i??null}getDOMCellFromCordsOrThrow(e,t,r){const s=this.getDOMCellFromCords(e,t,r);if(!s)throw new Error("Cell not found at cords.");return s}getCellNodeFromCords(e,t,r){const s=this.getDOMCellFromCords(e,t,r);if(s==null)return null;const o=he(s.elem);return Ts(o)?o:null}getCellNodeFromCordsOrThrow(e,t,r){const s=this.getCellNodeFromCords(e,t,r);if(!s)throw new Error("Node at cords not TableCellNode.");return s}getRowStriping(){return!!this.getLatest().__rowStriping}setRowStriping(e){this.getWritable().__rowStriping=e}canSelectBefore(){return!0}canIndent(){return!1}getColumnCount(){const e=this.getFirstChild();if(!e)return 0;let t=0;return e.getChildren().forEach(r=>{Ts(r)&&(t+=r.getColSpan())}),t}}function pO(n){const e=Og();n.hasAttribute("data-lexical-row-striping")&&e.setRowStriping(!0);const t=n.querySelector(":scope > colgroup");if(t){let r=[];for(const s of t.querySelectorAll(":scope > col")){const o=s.style.width;if(!o||!Ig.test(o)){r=void 0;break}r.push(parseFloat(o))}r&&e.setColWidths(r)}return{node:e}}function Og(){return Me(new bl)}function Qu(n){return n instanceof bl}const cx=4,mO={dependencies:[il],export:n=>Mh(n)?"***":null,regExp:/^(---|\*\*\*|___)\s?$/,replace:(n,e,t,r)=>{const s=ll();r||n.getNextSibling()!=null?n.replace(s):n.insertBefore(s),s.selectNext()},type:"element"},AO={dependencies:[Hn],export:n=>dg(n)?`![${n.getAltText()}](${n.getSrc()})`:null,importRegExp:/!(?:\[([^[]*)\])(?:\(([^(]+)\))/,regExp:/!(?:\[([^[]*)\])(?:\(([^(]+)\))$/,replace:(n,e)=>{const[,t,r]=e,s=Gc({altText:t,maxWidth:800,src:r});n.replace(s)},trigger:")",type:"text-match"};function yO(n){const e=n.match(/\t/g),t=n.match(/ /g);let r=0;return e&&(r+=e.length),t&&(r+=Math.floor(t.length/cx)),r}const bO=n=>(e,t,r)=>{const s=e.getPreviousSibling(),o=e.getNextSibling(),i=Kt(void 0);if(we(o)&&o.getListType()===n){const a=o.getFirstChild();a!==null?a.insertBefore(i):o.append(i),e.remove()}else if(we(s)&&s.getListType()===n)s.append(i),e.remove();else{const a=Ot(n,void 0);a.append(i),e.replace(a)}i.append(...t),i.select(0,0);const l=yO(r[1]);l&&i.setIndent(l)},ux=(n,e,t)=>{const r=[],s=n.getChildren();let o=0;for(const i of s)if(Re(i)){if(i.getChildrenSize()===1){const u=i.getFirstChild();if(we(u)){r.push(ux(u,e,t+1));continue}}const l=" ".repeat(t*cx),a=n.getListType(),c=a==="number"?`${n.getStart()+o}. `:a==="check"?`- [${i.getChecked()?"x":" "}] `:"- ";r.push(l+c+e(i)),o++}return r.join(`
85
- `)},wO=/^(\s*)[-*+]\s/,CO={dependencies:[fn,xt],export:(n,e)=>we(n)?ux(n,e,0):null,regExp:wO,replace:bO("bullet"),type:"element"},dx=/^(?:\|)(.+)(?:\|)\s?$/,vO=/^(\| ?:?-*:? ?)+\|\s?$/,xO={dependencies:[bl,yl,Al],export:n=>{if(!Qu(n))return null;const e=[];for(const t of n.getChildren()){const r=[];if(!Ya(t))continue;let s=!1;for(const o of t.getChildren())Ts(o)&&(r.push(uL(Rg,o).replace(/\n/g,"\\n")),o.__headerState===ar.ROW&&(s=!0));e.push(`| ${r.join(" | ")} |`),s&&e.push(`| ${r.map(o=>"---").join(" | ")} |`)}return e.join(`
86
- `)},regExp:dx,replace:(n,e,t)=>{if(vO.test(t[0])){const c=n.getPreviousSibling();if(!c||!Qu(c))return;const u=c.getChildren(),d=u[u.length-1];if(!d||!Ya(d))return;d.getChildren().forEach(f=>{Ts(f)&&f.setHeaderStyles(ar.ROW,ar.ROW)}),n.remove();return}const r=Ay(t[0]);if(r==null)return;const s=[r];let o=n.getPreviousSibling(),i=r.length;for(;o&&!(!at(o)||o.getChildrenSize()!==1);){const c=o.getFirstChild();if(!Ht(c))break;const u=Ay(c.getTextContent());if(u==null)break;i=Math.max(i,u.length),s.unshift(u);const d=o.getPreviousSibling();o.remove(),o=d}const l=Og();for(const c of s){const u=Mg();l.append(u);for(let d=0;d<i;d++)u.append(d<c.length?c[d]:fx(""))}const a=n.getPreviousSibling();Qu(a)&&SO(a)===i?(a.append(...l.getChildren()),n.remove()):n.replace(l),l.selectEnd()},type:"element"};function SO(n){const e=n.getFirstChild();return Ya(e)?e.getChildrenSize():0}const fx=n=>{n=n.replace(/\\n/g,`
87
- `);const e=Lg(ar.NO_STATUS);return cL(n,Rg,e),e},Ay=n=>{const e=n.match(dx);return!e||!e[1]?null:e[1].split("|").map(t=>fx(t))},Rg=[xO,mO,AO,XI,Mv,Ov,CO,...Rv,...jv,...Pv];function hx(){return p.jsx(Fv,{transformers:Rg})}var kO="function",EO="object",_O="string",TO="undefined",DO=typeof document!==TO&&document,NO=[{open:"(",close:")"},{open:'"',close:'"'},{open:"'",close:"'"},{open:'\\"',close:'\\"'},{open:"\\'",close:"\\'"}],bn=1e-7,zl={cm:function(n){return n*96/2.54},mm:function(n){return n*96/254},in:function(n){return n*96},pt:function(n){return n*96/72},pc:function(n){return n*96/6},"%":function(n,e){return n*e/100},vw:function(n,e){return e===void 0&&(e=window.innerWidth),n/100*e},vh:function(n,e){return e===void 0&&(e=window.innerHeight),n/100*e},vmax:function(n,e){return e===void 0&&(e=Math.max(window.innerWidth,window.innerHeight)),n/100*e},vmin:function(n,e){return e===void 0&&(e=Math.min(window.innerWidth,window.innerHeight)),n/100*e}};/*! *****************************************************************************
88
- Copyright (c) Microsoft Corporation.
89
-
90
- Permission to use, copy, modify, and/or distribute this software for any
91
- purpose with or without fee is hereby granted.
92
-
93
- THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
94
- REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
95
- AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
96
- INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
97
- LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
98
- OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
99
- PERFORMANCE OF THIS SOFTWARE.
100
- ***************************************************************************** */function IO(){for(var n=0,e=0,t=arguments.length;e<t;e++)n+=arguments[e].length;for(var r=Array(n),s=0,e=0;e<t;e++)for(var o=arguments[e],i=0,l=o.length;i<l;i++,s++)r[s]=o[i];return r}function Gr(n){return n&&typeof n===EO}function Va(n){return Array.isArray(n)}function ji(n){return typeof n===_O}function jg(n){return typeof n===kO}function LO(n,e){var t=n===""||n==" ",r=e===""||e==" ";return r&&t||n===e}function gx(n,e,t,r,s){var o=Pg(n,e,t);return o?t:MO(n,e,t+1,r,s)}function Pg(n,e,t){if(!n.ignore)return null;var r=e.slice(Math.max(t-3,0),t+3).join("");return new RegExp(n.ignore).exec(r)}function MO(n,e,t,r,s){for(var o=function(c){var u=e[c].trim();if(u===n.close&&!Pg(n,e,c))return{value:c};var d=c,f=Pi(s,function(g){var h=g.open;return h===u});if(f&&(d=gx(f,e,c,r,s)),d===-1)return i=c,"break";c=d,i=c},i,l=t;l<r;++l){var a=o(l);if(l=i,typeof a=="object")return a.value;if(a==="break")break}return-1}function Fg(n,e){var t=ji(e)?{separator:e}:e,r=t.separator,s=r===void 0?",":r,o=t.isSeparateFirst,i=t.isSeparateOnlyOpenClose,l=t.isSeparateOpenClose,a=l===void 0?i:l,c=t.openCloseCharacters,u=c===void 0?NO:c,d=u.map(function(_){var k=_.open,T=_.close;return k===T?k:k+"|"+T}).join("|"),f="(\\s*"+s+"\\s*|"+d+"|\\s+)",g=new RegExp(f,"g"),h=n.split(g).filter(function(_){return _&&_!=="undefined"}),m=h.length,A=[],b=[];function y(){return b.length?(A.push(b.join("")),b=[],!0):!1}for(var w=function(_){var k=h[_].trim(),T=_,D=Pi(u,function(I){var P=I.open;return P===k}),L=Pi(u,function(I){var P=I.close;return P===k});if(D){if(T=gx(D,h,_,m,u),T!==-1&&a)return y()&&o||(A.push(h.slice(_,T+1).join("")),_=T,o)?(v=_,"break"):(v=_,"continue")}else if(L&&!Pg(L,h,_)){var N=IO(u);return N.splice(u.indexOf(L),1),{value:Fg(n,{separator:s,isSeparateFirst:o,isSeparateOnlyOpenClose:i,isSeparateOpenClose:a,openCloseCharacters:N})}}else if(LO(k,s)&&!i)return y(),o?(v=_,"break"):(v=_,"continue");T===-1&&(T=m-1),b.push(h.slice(_,T+1).join("")),_=T,v=_},v,S=0;S<m;++S){var C=w(S);if(S=v,typeof C=="object")return C.value;if(C==="break")break}return b.length&&A.push(b.join("")),A}function OO(n){return Fg(n,"")}function Xo(n){return Fg(n,",")}function RO(n){var e=/([^(]*)\(([\s\S]*)\)([\s\S]*)/g.exec(n);return!e||e.length<4?{}:{prefix:e[1],value:e[2],suffix:e[3]}}function Ga(n){var e=/^([^\d|e|\-|\+]*)((?:\d|\.|-|e-|e\+)+)(\S*)$/g.exec(n);if(!e)return{prefix:"",unit:"",value:NaN};var t=e[1],r=e[2],s=e[3];return{prefix:t,unit:s,value:parseFloat(r)}}function mf(n){return n.replace(/[\s-_]+([^\s-_])/g,function(e,t){return t.toUpperCase()})}function Af(){return Date.now?Date.now():new Date().getTime()}function Za(n,e,t){t===void 0&&(t=-1);for(var r=n.length,s=0;s<r;++s)if(e(n[s],s,n))return s;return t}function Pi(n,e,t){var r=Za(n,e);return r>-1?n[r]:t}function yy(n,e){var t=Ga(n),r=t.value,s=t.unit;if(Gr(e)){var o=e[s];if(o){if(jg(o))return o(r);if(zl[s])return zl[s](r,o)}}else if(s==="%")return r*e/100;return zl[s]?zl[s](r):r}function px(n,e,t){return Math.max(e,Math.min(n,t))}function by(n,e,t,r){return r===void 0&&(r=n[0]/n[1]),[[nr(e[0],bn),nr(e[0]/r,bn)],[nr(e[1]*r,bn),nr(e[1],bn)]].filter(function(s){return s.every(function(o,i){var l=e[i],a=nr(l,bn);return t?o<=l||o<=a:o>=l||o>=a})})[0]||n}function jO(n,e,t,r){if(!r)return n.map(function(g,h){return px(g,e[h],t[h])});var s=n[0],o=n[1],i=r===!0?s/o:r,l=by(n,e,!1,i),a=l[0],c=l[1],u=by(n,t,!0,i),d=u[0],f=u[1];return s<a||o<c?(s=a,o=c):(s>d||o>f)&&(s=d,o=f),[s,o]}function PO(n){for(var e=n.length,t=0,r=e-1;r>=0;--r)t+=n[r];return t}function FO(n){for(var e=n.length,t=0,r=e-1;r>=0;--r)t+=n[r];return e?t/e:0}function wy(n,e){var t=e[0]-n[0],r=e[1]-n[1],s=Math.atan2(r,t);return s>=0?s:s+Math.PI*2}function BO(n){return[0,1].map(function(e){return FO(n.map(function(t){return t[e]}))})}function Cy(n){var e=BO(n),t=wy(e,n[0]),r=wy(e,n[1]);return t<r&&r-t<Math.PI||t>r&&r-t<-Math.PI?1:-1}function yf(n,e){return Math.sqrt(Math.pow((e?e[0]:0)-n[0],2)+Math.pow((e?e[1]:0)-n[1],2))}function nr(n,e){var t=1/e;return Math.round(n/e)/t}function zO(n,e){return n.classList?n.classList.contains(e):!!n.className.match(new RegExp("(\\s|^)"+e+"(\\s|$)"))}function WO(n,e){n.classList?n.classList.add(e):n.className+=" "+e}function et(n,e,t,r){n.addEventListener(e,t,r)}function Ze(n,e,t,r){n.removeEventListener(e,t,r)}function er(n){return(n==null?void 0:n.ownerDocument)||DO}function is(n){var e;return((e=n==null?void 0:n.ownerDocument)===null||e===void 0?void 0:e.defaultView)||window}function UO(n){return n&&"postMessage"in n&&"blur"in n&&"self"in n}function vy(n){return Gr(n)&&n.nodeName&&n.nodeType&&"ownerDocument"in n}/*! *****************************************************************************
101
- Copyright (c) Microsoft Corporation.
102
-
103
- Permission to use, copy, modify, and/or distribute this software for any
104
- purpose with or without fee is hereby granted.
105
-
106
- THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
107
- REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
108
- AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
109
- INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
110
- LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
111
- OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
112
- PERFORMANCE OF THIS SOFTWARE.
113
- ***************************************************************************** */var bf=function(){return bf=Object.assign||function(e){for(var t,r=1,s=arguments.length;r<s;r++){t=arguments[r];for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o])}return e},bf.apply(this,arguments)};function KO(){for(var n=0,e=0,t=arguments.length;e<t;e++)n+=arguments[e].length;for(var r=Array(n),s=0,e=0;e<t;e++)for(var o=arguments[e],i=0,l=o.length;i<l;i++,s++)r[s]=o[i];return r}var su=function(){function n(){this._events={}}var e=n.prototype;return e.on=function(t,r){if(Gr(t))for(var s in t)this.on(s,t[s]);else this._addEvent(t,r,{});return this},e.off=function(t,r){if(!t)this._events={};else if(Gr(t))for(var s in t)this.off(s);else if(!r)this._events[t]=[];else{var o=this._events[t];if(o){var i=Za(o,function(l){return l.listener===r});i>-1&&o.splice(i,1)}}return this},e.once=function(t,r){var s=this;return r&&this._addEvent(t,r,{once:!0}),new Promise(function(o){s._addEvent(t,o,{once:!0})})},e.emit=function(t,r){var s=this;r===void 0&&(r={});var o=this._events[t];if(!t||!o)return!0;var i=!1;return r.eventType=t,r.stop=function(){i=!0},r.currentTarget=this,KO(o).forEach(function(l){l.listener(r),l.once&&s.off(t,l.listener)}),!i},e.trigger=function(t,r){return r===void 0&&(r={}),this.emit(t,r)},e._addEvent=function(t,r,s){var o=this._events;o[t]=o[t]||[];var i=o[t];i.push(bf({listener:r},s))},n}();/*! *****************************************************************************
114
- Copyright (c) Microsoft Corporation.
115
-
116
- Permission to use, copy, modify, and/or distribute this software for any
117
- purpose with or without fee is hereby granted.
118
-
119
- THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
120
- REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
121
- AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
122
- INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
123
- LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
124
- OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
125
- PERFORMANCE OF THIS SOFTWARE.
126
- ***************************************************************************** */var wf=function(n,e){return wf=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,r){t.__proto__=r}||function(t,r){for(var s in r)r.hasOwnProperty(s)&&(t[s]=r[s])},wf(n,e)};function HO(n,e){wf(n,e);function t(){this.constructor=n}n.prototype=e===null?Object.create(e):(t.prototype=e.prototype,new t)}var qe=function(){return qe=Object.assign||function(e){for(var t,r=1,s=arguments.length;r<s;r++){t=arguments[r];for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o])}return e},qe.apply(this,arguments)};function YO(n,e){var t=e[0]-n[0],r=e[1]-n[1],s=Math.atan2(r,t);return s>=0?s:s+Math.PI*2}function qu(n){return YO([n[0].clientX,n[0].clientY],[n[1].clientX,n[1].clientY])/Math.PI*180}function VO(n){return n.touches&&n.touches.length>=2}function Wl(n){return n?n.touches?ZO(n.touches):[mx(n)]:[]}function GO(n){return n&&(n.type.indexOf("mouse")>-1||"button"in n)}function xy(n,e,t){var r=t.length,s=ci(n,r),o=s.clientX,i=s.clientY,l=s.originalClientX,a=s.originalClientY,c=ci(e,r),u=c.clientX,d=c.clientY,f=ci(t,r),g=f.clientX,h=f.clientY,m=o-u,A=i-d,b=o-g,y=i-h;return{clientX:l,clientY:a,deltaX:m,deltaY:A,distX:b,distY:y}}function $u(n){return Math.sqrt(Math.pow(n[0].clientX-n[1].clientX,2)+Math.pow(n[0].clientY-n[1].clientY,2))}function ZO(n){for(var e=Math.min(n.length,2),t=[],r=0;r<e;++r)t.push(mx(n[r]));return t}function mx(n){return{clientX:n.clientX,clientY:n.clientY}}function ci(n,e){e===void 0&&(e=n.length);for(var t={clientX:0,clientY:0,originalClientX:0,originalClientY:0},r=Math.min(n.length,e),s=0;s<r;++s){var o=n[s];t.originalClientX+="originalClientX"in o?o.originalClientX:o.clientX,t.originalClientY+="originalClientY"in o?o.originalClientY:o.clientY,t.clientX+=o.clientX,t.clientY+=o.clientY}return e?{clientX:t.clientX/e,clientY:t.clientY/e,originalClientX:t.originalClientX/e,originalClientY:t.originalClientY/e}:t}var ed=function(){function n(e){this.prevClients=[],this.startClients=[],this.movement=0,this.length=0,this.startClients=e,this.prevClients=e,this.length=e.length}return n.prototype.getAngle=function(e){return e===void 0&&(e=this.prevClients),qu(e)},n.prototype.getRotation=function(e){return e===void 0&&(e=this.prevClients),qu(e)-qu(this.startClients)},n.prototype.getPosition=function(e,t){e===void 0&&(e=this.prevClients);var r=xy(e||this.prevClients,this.prevClients,this.startClients),s=r.deltaX,o=r.deltaY;return this.movement+=Math.sqrt(s*s+o*o),this.prevClients=e,r},n.prototype.getPositions=function(e){e===void 0&&(e=this.prevClients);for(var t=this.prevClients,r=this.startClients,s=Math.min(this.length,t.length),o=[],i=0;i<s;++i)o[i]=xy([e[i]],[t[i]],[r[i]]);return o},n.prototype.getMovement=function(e){var t=this.movement;if(!e)return t;var r=ci(e,this.length),s=ci(this.prevClients,this.length),o=r.clientX-s.clientX,i=r.clientY-s.clientY;return Math.sqrt(o*o+i*i)+t},n.prototype.getDistance=function(e){return e===void 0&&(e=this.prevClients),$u(e)},n.prototype.getScale=function(e){return e===void 0&&(e=this.prevClients),$u(e)/$u(this.startClients)},n.prototype.move=function(e,t){this.startClients.forEach(function(r){r.clientX-=e,r.clientY-=t}),this.prevClients.forEach(function(r){r.clientX-=e,r.clientY-=t})},n}(),Sy=["textarea","input"],JO=function(n){HO(e,n);function e(t,r){r===void 0&&(r={});var s=n.call(this)||this;s.options={},s.flag=!1,s.pinchFlag=!1,s.data={},s.isDrag=!1,s.isPinch=!1,s.clientStores=[],s.targets=[],s.prevTime=0,s.doubleFlag=!1,s._useMouse=!1,s._useTouch=!1,s._useDrag=!1,s._dragFlag=!1,s._isTrusted=!1,s._isMouseEvent=!1,s._isSecondaryButton=!1,s._preventMouseEvent=!1,s._prevInputEvent=null,s._isDragAPI=!1,s._isIdle=!0,s._preventMouseEventId=0,s._window=window,s.onDragStart=function(f,g){if(g===void 0&&(g=!0),!(!s.flag&&f.cancelable===!1)){var h=f.type.indexOf("drag")>=-1;if(!(s.flag&&h)){s._isDragAPI=!0;var m=s.options,A=m.container,b=m.pinchOutside,y=m.preventWheelClick,w=m.preventRightClick,v=m.preventDefault,S=m.checkInput,C=m.dragFocusedInput,_=m.preventClickEventOnDragStart,k=m.preventClickEventOnDrag,T=m.preventClickEventByCondition,D=s._useTouch,L=!s.flag;if(s._isSecondaryButton=f.which===3||f.button===2,y&&(f.which===2||f.button===1)||w&&(f.which===3||f.button===2))return s.stop(),!1;if(L){var N=s._window.document.activeElement,I=f.target;if(I){var P=I.tagName.toLowerCase(),G=Sy.indexOf(P)>-1,J=I.isContentEditable;if(G||J){if(S||!C&&N===I)return!1;if(N&&(N===I||J&&N.isContentEditable&&N.contains(I)))if(C)I.blur();else return!1}else if((v||f.type==="touchstart")&&N){var te=N.tagName.toLowerCase();(N.isContentEditable||Sy.indexOf(te)>-1)&&N.blur()}(_||k||T)&&et(s._window,"click",s._onClick,!0)}s.clientStores=[new ed(Wl(f))],s._isIdle=!1,s.flag=!0,s.isDrag=!1,s._isTrusted=g,s._dragFlag=!0,s._prevInputEvent=f,s.data={},s.doubleFlag=Af()-s.prevTime<200,s._isMouseEvent=GO(f),!s._isMouseEvent&&s._preventMouseEvent&&s._allowMouseEvent();var Q=s._preventMouseEvent||s.emit("dragStart",qe(qe({data:s.data,datas:s.data,inputEvent:f,isMouseEvent:s._isMouseEvent,isSecondaryButton:s._isSecondaryButton,isTrusted:g,isDouble:s.doubleFlag},s.getCurrentStore().getPosition()),{preventDefault:function(){f.preventDefault()},preventDrag:function(){s._dragFlag=!1}}));Q===!1&&s.stop(),s._isMouseEvent&&s.flag&&v&&f.preventDefault()}if(!s.flag)return!1;var B=0;if(L?(s._attchDragEvent(),D&&b&&(B=setTimeout(function(){et(A,"touchstart",s.onDragStart,{passive:!1})}))):D&&b&&Ze(A,"touchstart",s.onDragStart),s.flag&&VO(f)){if(clearTimeout(B),L&&f.touches.length!==f.changedTouches.length)return;s.pinchFlag||s.onPinchStart(f)}}}},s.onDrag=function(f,g){if(s.flag){var h=s.options.preventDefault;!s._isMouseEvent&&h&&f.preventDefault(),s._prevInputEvent=f;var m=Wl(f),A=s.moveClients(m,f,!1);if(s._dragFlag){if(s.pinchFlag||A.deltaX||A.deltaY){var b=s._preventMouseEvent||s.emit("drag",qe(qe({},A),{isScroll:!!g,inputEvent:f}));if(b===!1){s.stop();return}}s.pinchFlag&&s.onPinch(f,m)}s.getCurrentStore().getPosition(m,!0)}},s.onDragEnd=function(f){if(s.flag){var g=s.options,h=g.pinchOutside,m=g.container,A=g.preventClickEventOnDrag,b=g.preventClickEventOnDragStart,y=g.preventClickEventByCondition,w=s.isDrag;(A||b||y)&&requestAnimationFrame(function(){s._allowClickEvent()}),!y&&!b&&A&&!w&&s._allowClickEvent(),s._useTouch&&h&&Ze(m,"touchstart",s.onDragStart),s.pinchFlag&&s.onPinchEnd(f);var v=f!=null&&f.touches?Wl(f):[],S=v.length;S===0||!s.options.keepDragging?s.flag=!1:s._addStore(new ed(v));var C=s._getPosition(),_=Af(),k=!w&&s.doubleFlag;s._prevInputEvent=null,s.prevTime=w||k?0:_,s.flag||(s._dettachDragEvent(),s._preventMouseEvent||s.emit("dragEnd",qe({data:s.data,datas:s.data,isDouble:k,isDrag:w,isClick:!w,isMouseEvent:s._isMouseEvent,isSecondaryButton:s._isSecondaryButton,inputEvent:f,isTrusted:s._isTrusted},C)),s.clientStores=[],s._isMouseEvent||(s._preventMouseEvent=!0,clearTimeout(s._preventMouseEventId),s._preventMouseEventId=setTimeout(function(){s._preventMouseEvent=!1},200)),s._isIdle=!0)}},s.onBlur=function(){s.onDragEnd()},s._allowClickEvent=function(){Ze(s._window,"click",s._onClick,!0)},s._onClick=function(f){s._allowClickEvent(),s._allowMouseEvent();var g=s.options.preventClickEventByCondition;g!=null&&g(f)||(f.stopPropagation(),f.preventDefault())},s._onContextMenu=function(f){var g=s.options;g.preventRightClick?s.onDragEnd(f):f.preventDefault()},s._passCallback=function(){};var o=[].concat(t),i=o[0];s._window=UO(i)?i:is(i),s.options=qe({checkInput:!1,container:i&&!("document"in i)?is(i):i,preventRightClick:!0,preventWheelClick:!0,preventClickEventOnDragStart:!1,preventClickEventOnDrag:!1,preventClickEventByCondition:null,preventDefault:!0,checkWindowBlur:!1,keepDragging:!1,pinchThreshold:0,events:["touch","mouse"]},r);var l=s.options,a=l.container,c=l.events,u=l.checkWindowBlur;if(s._useDrag=c.indexOf("drag")>-1,s._useTouch=c.indexOf("touch")>-1,s._useMouse=c.indexOf("mouse")>-1,s.targets=o,s._useDrag&&o.forEach(function(f){et(f,"dragstart",s.onDragStart)}),s._useMouse&&(o.forEach(function(f){et(f,"mousedown",s.onDragStart),et(f,"mousemove",s._passCallback)}),et(a,"contextmenu",s._onContextMenu)),u&&et(is(),"blur",s.onBlur),s._useTouch){var d={passive:!1};o.forEach(function(f){et(f,"touchstart",s.onDragStart,d),et(f,"touchmove",s._passCallback,d)})}return s}return e.prototype.stop=function(){this.isDrag=!1,this.data={},this.clientStores=[],this.pinchFlag=!1,this.doubleFlag=!1,this.prevTime=0,this.flag=!1,this._isIdle=!0,this._allowClickEvent(),this._dettachDragEvent(),this._isDragAPI=!1},e.prototype.getMovement=function(t){return this.getCurrentStore().getMovement(t)+this.clientStores.slice(1).reduce(function(r,s){return r+s.movement},0)},e.prototype.isDragging=function(){return this.isDrag},e.prototype.isIdle=function(){return this._isIdle},e.prototype.isFlag=function(){return this.flag},e.prototype.isPinchFlag=function(){return this.pinchFlag},e.prototype.isDoubleFlag=function(){return this.doubleFlag},e.prototype.isPinching=function(){return this.isPinch},e.prototype.scrollBy=function(t,r,s,o){o===void 0&&(o=!0),this.flag&&(this.clientStores[0].move(t,r),o&&this.onDrag(s,!0))},e.prototype.move=function(t,r){var s=t[0],o=t[1],i=this.getCurrentStore(),l=i.prevClients;return this.moveClients(l.map(function(a){var c=a.clientX,u=a.clientY;return{clientX:c+s,clientY:u+o,originalClientX:c,originalClientY:u}}),r,!0)},e.prototype.triggerDragStart=function(t){this.onDragStart(t,!1)},e.prototype.setEventData=function(t){var r=this.data;for(var s in t)r[s]=t[s];return this},e.prototype.setEventDatas=function(t){return this.setEventData(t)},e.prototype.getCurrentEvent=function(t){return t===void 0&&(t=this._prevInputEvent),qe(qe({data:this.data,datas:this.data},this._getPosition()),{movement:this.getMovement(),isDrag:this.isDrag,isPinch:this.isPinch,isScroll:!1,inputEvent:t})},e.prototype.getEventData=function(){return this.data},e.prototype.getEventDatas=function(){return this.data},e.prototype.unset=function(){var t=this,r=this.targets,s=this.options.container;this.off(),Ze(this._window,"blur",this.onBlur),this._useDrag&&r.forEach(function(o){Ze(o,"dragstart",t.onDragStart)}),this._useMouse&&(r.forEach(function(o){Ze(o,"mousedown",t.onDragStart)}),Ze(s,"contextmenu",this._onContextMenu)),this._useTouch&&(r.forEach(function(o){Ze(o,"touchstart",t.onDragStart)}),Ze(s,"touchstart",this.onDragStart)),this._prevInputEvent=null,this._allowClickEvent(),this._dettachDragEvent()},e.prototype.onPinchStart=function(t){var r=this,s=this.options.pinchThreshold;if(!(this.isDrag&&this.getMovement()>s)){var o=new ed(Wl(t));this.pinchFlag=!0,this._addStore(o);var i=this.emit("pinchStart",qe(qe({data:this.data,datas:this.data,angle:o.getAngle(),touches:this.getCurrentStore().getPositions()},o.getPosition()),{inputEvent:t,isTrusted:this._isTrusted,preventDefault:function(){t.preventDefault()},preventDrag:function(){r._dragFlag=!1}}));i===!1&&(this.pinchFlag=!1)}},e.prototype.onPinch=function(t,r){if(!(!this.flag||!this.pinchFlag||r.length<2)){var s=this.getCurrentStore();this.isPinch=!0,this.emit("pinch",qe(qe({data:this.data,datas:this.data,movement:this.getMovement(r),angle:s.getAngle(r),rotation:s.getRotation(r),touches:s.getPositions(r),scale:s.getScale(r),distance:s.getDistance(r)},s.getPosition(r)),{inputEvent:t,isTrusted:this._isTrusted}))}},e.prototype.onPinchEnd=function(t){if(this.pinchFlag){var r=this.isPinch;this.isPinch=!1,this.pinchFlag=!1;var s=this.getCurrentStore();this.emit("pinchEnd",qe(qe({data:this.data,datas:this.data,isPinch:r,touches:s.getPositions()},s.getPosition()),{inputEvent:t}))}},e.prototype.getCurrentStore=function(){return this.clientStores[0]},e.prototype.moveClients=function(t,r,s){var o=this._getPosition(t,s),i=this.isDrag;(o.deltaX||o.deltaY)&&(this.isDrag=!0);var l=!1;return!i&&this.isDrag&&(l=!0),qe(qe({data:this.data,datas:this.data},o),{movement:this.getMovement(t),isDrag:this.isDrag,isPinch:this.isPinch,isScroll:!1,isMouseEvent:this._isMouseEvent,isSecondaryButton:this._isSecondaryButton,inputEvent:r,isTrusted:this._isTrusted,isFirstDrag:l})},e.prototype._addStore=function(t){this.clientStores.splice(0,0,t)},e.prototype._getPosition=function(t,r){var s=this.getCurrentStore(),o=s.getPosition(t,r),i=this.clientStores.slice(1).reduce(function(c,u){var d=u.getPosition();return c.distX+=d.distX,c.distY+=d.distY,c},o),l=i.distX,a=i.distY;return qe(qe({},o),{distX:l,distY:a})},e.prototype._attchDragEvent=function(){var t=this._window,r=this.options.container,s={passive:!1};this._isDragAPI&&(et(r,"dragover",this.onDrag,s),et(t,"dragend",this.onDragEnd)),this._useMouse&&(et(r,"mousemove",this.onDrag),et(t,"mouseup",this.onDragEnd)),this._useTouch&&(et(r,"touchmove",this.onDrag,s),et(t,"touchend",this.onDragEnd,s),et(t,"touchcancel",this.onDragEnd,s))},e.prototype._dettachDragEvent=function(){var t=this._window,r=this.options.container;this._isDragAPI&&(Ze(r,"dragover",this.onDrag),Ze(t,"dragend",this.onDragEnd)),this._useMouse&&(Ze(r,"mousemove",this.onDrag),Ze(t,"mouseup",this.onDragEnd)),this._useTouch&&(Ze(r,"touchstart",this.onDragStart),Ze(r,"touchmove",this.onDrag),Ze(t,"touchend",this.onDragEnd),Ze(t,"touchcancel",this.onDragEnd))},e.prototype._allowMouseEvent=function(){this._preventMouseEvent=!1,clearTimeout(this._preventMouseEventId)},e}(su);function XO(n,e){return function(t){t&&(n[e]=t)}}function QO(n,e){return function(t){var r=t.prototype;n.forEach(function(s){e(r,s)})}}function qO(n,e){return e===void 0&&(e={}),function(t,r){n.forEach(function(s){var o=e[s]||s;o in t||(t[o]=function(){for(var i,l=[],a=0;a<arguments.length;a++)l[a]=arguments[a];var c=(i=this[r])[s].apply(i,l);return c===this[r]?this:c})})}}var $O=function(){function n(){this.keys=[],this.values=[]}var e=n.prototype;return e.get=function(t){return this.values[this.keys.indexOf(t)]},e.set=function(t,r){var s=this.keys,o=this.values,i=s.indexOf(t),l=i===-1?s.length:i;s[l]=t,o[l]=r},n}(),eR=function(){function n(){this.object={}}var e=n.prototype;return e.get=function(t){return this.object[t]},e.set=function(t,r){this.object[t]=r},n}(),tR=typeof Map=="function",nR=function(){function n(){}var e=n.prototype;return e.connect=function(t,r){this.prev=t,this.next=r,t&&(t.next=this),r&&(r.prev=this)},e.disconnect=function(){var t=this.prev,r=this.next;t&&(t.next=r),r&&(r.prev=t)},e.getIndex=function(){for(var t=this,r=-1;t;)t=t.prev,++r;return r},n}();function rR(n,e){var t=[],r=[];return n.forEach(function(s){var o=s[0],i=s[1],l=new nR;t[o]=l,r[i]=l}),t.forEach(function(s,o){s.connect(t[o-1])}),n.filter(function(s,o){return!e[o]}).map(function(s,o){var i=s[0],l=s[1];if(i===l)return[0,0];var a=t[i],c=r[l-1],u=a.getIndex();a.disconnect(),c?a.connect(c,c.next):a.connect(void 0,t[0]);var d=a.getIndex();return[u,d]})}var sR=function(){function n(t,r,s,o,i,l,a,c){this.prevList=t,this.list=r,this.added=s,this.removed=o,this.changed=i,this.maintained=l,this.changedBeforeAdded=a,this.fixed=c}var e=n.prototype;return Object.defineProperty(e,"ordered",{get:function(){return this.cacheOrdered||this.caculateOrdered(),this.cacheOrdered},enumerable:!0,configurable:!0}),Object.defineProperty(e,"pureChanged",{get:function(){return this.cachePureChanged||this.caculateOrdered(),this.cachePureChanged},enumerable:!0,configurable:!0}),e.caculateOrdered=function(){var t=rR(this.changedBeforeAdded,this.fixed),r=this.changed,s=[];this.cacheOrdered=t.filter(function(o,i){var l=o[0],a=o[1],c=r[i],u=c[0],d=c[1];if(l!==a)return s.push([u,d]),!0}),this.cachePureChanged=s},n}();function oR(n,e,t){var r=tR?Map:t?eR:$O,s=t||function(y){return y},o=[],i=[],l=[],a=n.map(s),c=e.map(s),u=new r,d=new r,f=[],g=[],h={},m=[],A=0,b=0;return a.forEach(function(y,w){u.set(y,w)}),c.forEach(function(y,w){d.set(y,w)}),a.forEach(function(y,w){var v=d.get(y);typeof v>"u"?(++b,i.push(w)):h[v]=b}),c.forEach(function(y,w){var v=u.get(y);typeof v>"u"?(o.push(w),++A):(l.push([v,w]),b=h[w]||0,f.push([v-b,w-A]),g.push(w===v),v!==w&&m.push([v,w]))}),i.reverse(),new sR(n,e,o,i,m,l,f,g)}var iR=typeof Map=="function"?void 0:function(){var n=0;return function(e){return e.__DIFF_KEY__||(e.__DIFF_KEY__=++n)}}();function Qo(n,e){return oR(n,e,iR)}/*! *****************************************************************************
127
- Copyright (c) Microsoft Corporation.
128
-
129
- Permission to use, copy, modify, and/or distribute this software for any
130
- purpose with or without fee is hereby granted.
131
-
132
- THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
133
- REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
134
- AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
135
- INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
136
- LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
137
- OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
138
- PERFORMANCE OF THIS SOFTWARE.
139
- ***************************************************************************** */var Cf=function(n,e){return Cf=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,r){t.__proto__=r}||function(t,r){for(var s in r)r.hasOwnProperty(s)&&(t[s]=r[s])},Cf(n,e)};function lR(n,e){Cf(n,e);function t(){this.constructor=n}n.prototype=e===null?Object.create(e):(t.prototype=e.prototype,new t)}var eo=function(){return eo=Object.assign||function(e){for(var t,r=1,s=arguments.length;r<s;r++){t=arguments[r];for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o])}return e},eo.apply(this,arguments)};function aR(n){var e=n.container;return e===document.body?[e.scrollLeft||document.documentElement.scrollLeft,e.scrollTop||document.documentElement.scrollTop]:[e.scrollLeft,e.scrollTop]}function ky(n,e){return n.addEventListener("scroll",e),function(){n.removeEventListener("scroll",e)}}function Ul(n){if(n){if(ji(n))return document.querySelector(n)}else return null;if(jg(n))return n();if(n instanceof Element)return n;if("current"in n)return n.current;if("value"in n)return n.value}var cR=function(n){lR(e,n);function e(){var r=n!==null&&n.apply(this,arguments)||this;return r._startRect=null,r._startPos=[],r._prevTime=0,r._timer=0,r._prevScrollPos=[0,0],r._isWait=!1,r._flag=!1,r._currentOptions=null,r._lock=!1,r._unregister=null,r._onScroll=function(){var s=r._currentOptions;r._lock||!s||r.emit("scrollDrag",{next:function(o){r.checkScroll({container:s.container,inputEvent:o})}})},r}var t=e.prototype;return t.dragStart=function(r,s){var o=Ul(s.container);if(!o){this._flag=!1;return}var i=0,l=0,a=0,c=0;if(o===document.body)a=window.innerWidth,c=window.innerHeight;else{var u=o.getBoundingClientRect();i=u.top,l=u.left,a=u.width,c=u.height}this._flag=!0,this._startPos=[r.clientX,r.clientY],this._startRect={top:i,left:l,width:a,height:c},this._prevScrollPos=this._getScrollPosition([0,0],s),this._currentOptions=s,this._registerScrollEvent(s)},t.drag=function(r,s){if(clearTimeout(this._timer),!!this._flag){var o=r.clientX,i=r.clientY,l=s.threshold,a=l===void 0?0:l,c=this,u=c._startRect,d=c._startPos;this._currentOptions=s;var f=[0,0];return u.top>i-a?(d[1]>u.top||i<d[1])&&(f[1]=-1):u.top+u.height<i+a&&(d[1]<u.top+u.height||i>d[1])&&(f[1]=1),u.left>o-a?(d[0]>u.left||o<d[0])&&(f[0]=-1):u.left+u.width<o+a&&(d[0]<u.left+u.width||o>d[0])&&(f[0]=1),!f[0]&&!f[1]?!1:this._continueDrag(eo(eo({},s),{direction:f,inputEvent:r,isDrag:!0}))}},t.checkScroll=function(r){var s=this;if(this._isWait)return!1;var o=r.prevScrollPos,i=o===void 0?this._prevScrollPos:o,l=r.direction,a=r.throttleTime,c=a===void 0?0:a,u=r.inputEvent,d=r.isDrag,f=this._getScrollPosition(l||[0,0],r),g=f[0]-i[0],h=f[1]-i[1],m=l||[g?Math.abs(g)/g:0,h?Math.abs(h)/h:0];return this._prevScrollPos=f,this._lock=!1,!g&&!h?!1:(this.emit("move",{offsetX:m[0]?g:0,offsetY:m[1]?h:0,inputEvent:u}),c&&d&&(clearTimeout(this._timer),this._timer=window.setTimeout(function(){s._continueDrag(r)},c)),!0)},t.dragEnd=function(){this._flag=!1,this._lock=!1,clearTimeout(this._timer),this._unregisterScrollEvent()},t._getScrollPosition=function(r,s){var o=s.container,i=s.getScrollPosition,l=i===void 0?aR:i;return l({container:Ul(o),direction:r})},t._continueDrag=function(r){var s=this,o,i=r.container,l=r.direction,a=r.throttleTime,c=r.useScroll,u=r.isDrag,d=r.inputEvent;if(!(!this._flag||u&&this._isWait)){var f=Af(),g=Math.max(a+this._prevTime-f,0);if(g>0)return clearTimeout(this._timer),this._timer=window.setTimeout(function(){s._continueDrag(r)},g),!1;this._prevTime=f;var h=this._getScrollPosition(l,r);this._prevScrollPos=h,u&&(this._isWait=!0),c||(this._lock=!0);var m={container:Ul(i),direction:l,inputEvent:d};return(o=r.requestScroll)===null||o===void 0||o.call(r,m),this.emit("scroll",m),this._isWait=!1,c||this.checkScroll(eo(eo({},r),{prevScrollPos:h,direction:l,inputEvent:d}))}},t._registerScrollEvent=function(r){this._unregisterScrollEvent();var s=r.checkScrollEvent;if(s){var o=s===!0?ky:s,i=Ul(r.container);s===!0&&(i===document.body||i===document.documentElement)?this._unregister=ky(window,this._onScroll):this._unregister=o(i,this._onScroll)}},t._unregisterScrollEvent=function(){var r;(r=this._unregister)===null||r===void 0||r.call(this),this._unregister=null},e}(su),vf=function(n,e){return vf=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,r){t.__proto__=r}||function(t,r){for(var s in r)Object.prototype.hasOwnProperty.call(r,s)&&(t[s]=r[s])},vf(n,e)};function uR(n,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");vf(n,e);function t(){this.constructor=n}n.prototype=e===null?Object.create(e):(t.prototype=e.prototype,new t)}function dR(n,e){return e={exports:{}},n(e,e.exports),e.exports}var wl=dR(function(n,e){function t(a){if(a&&typeof a=="object"){var c=a.which||a.keyCode||a.charCode;c&&(a=c)}if(typeof a=="number")return i[a];var u=String(a),d=r[u.toLowerCase()];if(d)return d;var d=s[u.toLowerCase()];if(d)return d;if(u.length===1)return u.charCodeAt(0)}t.isEventKey=function(c,u){if(c&&typeof c=="object"){var d=c.which||c.keyCode||c.charCode;if(d==null)return!1;if(typeof u=="string"){var f=r[u.toLowerCase()];if(f)return f===d;var f=s[u.toLowerCase()];if(f)return f===d}else if(typeof u=="number")return u===d;return!1}},e=n.exports=t;var r=e.code=e.codes={backspace:8,tab:9,enter:13,shift:16,ctrl:17,alt:18,"pause/break":19,"caps lock":20,esc:27,space:32,"page up":33,"page down":34,end:35,home:36,left:37,up:38,right:39,down:40,insert:45,delete:46,command:91,"left command":91,"right command":93,"numpad *":106,"numpad +":107,"numpad -":109,"numpad .":110,"numpad /":111,"num lock":144,"scroll lock":145,"my computer":182,"my calculator":183,";":186,"=":187,",":188,"-":189,".":190,"/":191,"`":192,"[":219,"\\":220,"]":221,"'":222},s=e.aliases={windows:91,"⇧":16,"⌥":18,"⌃":17,"⌘":91,ctl:17,control:17,option:18,pause:19,break:19,caps:20,return:13,escape:27,spc:32,spacebar:32,pgup:33,pgdn:34,ins:45,del:46,cmd:91};/*!
140
- * Programatically add the following
141
- */for(o=97;o<123;o++)r[String.fromCharCode(o)]=o-32;for(var o=48;o<58;o++)r[o-48]=o;for(o=1;o<13;o++)r["f"+o]=o+111;for(o=0;o<10;o++)r["numpad "+o]=o+96;var i=e.names=e.title={};for(o in r)i[r[o]]=o;for(var l in s)r[l]=s[l]});wl.code;wl.codes;wl.aliases;var fR=wl.names;wl.title;var Ey={"+":"plus","left command":"meta","right command":"meta"},_y={shift:1,ctrl:2,alt:3,meta:4};function Ax(n,e){var t=(fR[n]||e||"").toLowerCase();for(var r in Ey)t=t.replace(r,Ey[r]);return t.replace(/\s/g,"")}function yx(n,e){e===void 0&&(e=Ax(n.keyCode,n.key));var t=hR(n);return t.indexOf(e)===-1&&t.push(e),t.filter(Boolean)}function hR(n){var e=[n.shiftKey&&"shift",n.ctrlKey&&"ctrl",n.altKey&&"alt",n.metaKey&&"meta"];return e.filter(Boolean)}function Ty(n){var e=n.slice();return e.sort(function(t,r){var s=_y[t]||5,o=_y[r]||5;return s-o}),e}var Dy,gR=function(n){uR(e,n);function e(r){r===void 0&&(r=window);var s=n.call(this)||this;return s.container=r,s.ctrlKey=!1,s.altKey=!1,s.shiftKey=!1,s.metaKey=!1,s.clear=function(){return s.ctrlKey=!1,s.altKey=!1,s.shiftKey=!1,s.metaKey=!1,s},s.keydownEvent=function(o){s.triggerEvent("keydown",o)},s.keyupEvent=function(o){s.triggerEvent("keyup",o)},s.blur=function(){s.clear(),s.trigger("blur")},et(r,"blur",s.blur),et(r,"keydown",s.keydownEvent),et(r,"keyup",s.keyupEvent),s}var t=e.prototype;return Object.defineProperty(e,"global",{get:function(){return Dy||(Dy=new e)},enumerable:!1,configurable:!0}),e.setGlobal=function(){return this.global},t.destroy=function(){var r=this.container;this.clear(),this.off(),Ze(r,"blur",this.blur),Ze(r,"keydown",this.keydownEvent),Ze(r,"keyup",this.keyupEvent)},t.keydown=function(r,s){return this.addEvent("keydown",r,s)},t.offKeydown=function(r,s){return this.removeEvent("keydown",r,s)},t.offKeyup=function(r,s){return this.removeEvent("keyup",r,s)},t.keyup=function(r,s){return this.addEvent("keyup",r,s)},t.addEvent=function(r,s,o){return Va(s)?this.on("".concat(r,".").concat(Ty(s).join(".")),o):ji(s)?this.on("".concat(r,".").concat(s),o):this.on(r,s),this},t.removeEvent=function(r,s,o){return Va(s)?this.off("".concat(r,".").concat(Ty(s).join(".")),o):ji(s)?this.off("".concat(r,".").concat(s),o):this.off(r,s),this},t.triggerEvent=function(r,s){this.ctrlKey=s.ctrlKey,this.shiftKey=s.shiftKey,this.altKey=s.altKey,this.metaKey=s.metaKey;var o=Ax(s.keyCode,s.key),i=o==="ctrl"||o==="shift"||o==="meta"||o==="alt",l={key:o,isToggle:i,inputEvent:s,keyCode:s.keyCode,ctrlKey:s.ctrlKey,altKey:s.altKey,shiftKey:s.shiftKey,metaKey:s.metaKey};this.trigger(r,l),this.trigger("".concat(r,".").concat(o),l);var a=yx(s,o);a.length>1&&this.trigger("".concat(r,".").concat(a.join(".")),l)},e}(su);/*! *****************************************************************************
142
- Copyright (c) Microsoft Corporation.
143
-
144
- Permission to use, copy, modify, and/or distribute this software for any
145
- purpose with or without fee is hereby granted.
146
-
147
- THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
148
- REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
149
- AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
150
- INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
151
- LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
152
- OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
153
- PERFORMANCE OF THIS SOFTWARE.
154
- ***************************************************************************** */function pR(){for(var n=0,e=0,t=arguments.length;e<t;e++)n+=arguments[e].length;for(var r=Array(n),s=0,e=0;e<t;e++)for(var o=arguments[e],i=0,l=o.length;i<l;i++,s++)r[s]=o[i];return r}function jt(n){return nr(n,bn)}function mR(n,e){return n.every(function(t,r){return jt(t-e[r])===0})}function AR(n,e){return!jt(n[0]-e[0])&&!jt(n[1]-e[1])}function td(n){return n.length<3?0:Math.abs(PO(n.map(function(e,t){var r=n[t+1]||n[0];return e[0]*r[1]-r[0]*e[1]})))/2}function yR(n,e){var t=e.width,r=e.height,s=e.left,o=e.top,i=bx(n),l=i.minX,a=i.minY,c=i.maxX,u=i.maxY,d=t/(c-l),f=r/(u-a);return n.map(function(g){return[s+(g[0]-l)*d,o+(g[1]-a)*f]})}function bx(n){var e=n.map(function(r){return r[0]}),t=n.map(function(r){return r[1]});return{minX:Math.min.apply(Math,e),minY:Math.min.apply(Math,t),maxX:Math.max.apply(Math,e),maxY:Math.max.apply(Math,t)}}function xf(n,e,t){var r=n[0],s=n[1],o=bx(e),i=o.minX,l=o.maxX,a=[[i,s],[l,s]],c=Ja(a[0],a[1]),u=Sf(e),d=[];if(u.forEach(function(h){var m=Ja(h[0],h[1]),A=h[0];if(mR(c,m))d.push({pos:n,line:h,type:"line"});else{var b=Cx(wx(c,m),[a,h]);b.forEach(function(y){h.some(function(w){return AR(w,y)})?d.push({pos:y,line:h,type:"point"}):jt(A[1]-s)!==0&&d.push({pos:y,line:h,type:"intersection"})})}}),Pi(d,function(h){return h[0]===r}))return!0;var f=0,g={};return d.forEach(function(h){var m=h.pos,A=h.type,b=h.line;if(!(m[0]>r))if(A==="intersection")++f;else{if(A==="line")return;if(A==="point"){var y=Pi(b,function(S){return S[1]!==s}),w=g[m[0]],v=y[1]>s?1:-1;w?w!==v&&++f:g[m[0]]=v}}}),f%2===1}function Ja(n,e){var t=n[0],r=n[1],s=e[0],o=e[1],i=s-t,l=o-r;Math.abs(i)<bn&&(i=0),Math.abs(l)<bn&&(l=0);var a=0,c=0,u=0;return i?l?(a=-l/i,c=1,u=-a*t-r):(c=1,u=-r):l&&(a=-1,u=t),[a,c,u]}function wx(n,e){var t=n[0],r=n[1],s=n[2],o=e[0],i=e[1],l=e[2],a=t===0&&o===0,c=r===0&&i===0,u=[];if(a&&c)return[];if(a){var d=-s/r,f=-l/i;return d!==f?[]:[[-1/0,d],[1/0,d]]}else if(c){var g=-s/t,h=-l/o;return g!==h?[]:[[g,-1/0],[g,1/0]]}else if(t===0){var m=-s/r,A=-(i*m+l)/o;u=[[A,m]]}else if(o===0){var m=-l/i,A=-(r*m+s)/t;u=[[A,m]]}else if(r===0){var A=-s/t,m=-(o*A+l)/i;u=[[A,m]]}else if(i===0){var A=-l/o,m=-(t*A+s)/r;u=[[A,m]]}else{var A=(r*l-i*s)/(i*t-r*o),m=-(t*A+s)/r;u=[[A,m]]}return u.map(function(b){return[b[0],b[1]]})}function Cx(n,e){var t=e.map(function(d){return[0,1].map(function(f){return[Math.min(d[0][f],d[1][f]),Math.max(d[0][f],d[1][f])]})}),r=[];if(n.length===2){var s=n[0],o=s[0],i=s[1];if(jt(o-n[1][0])){if(!jt(i-n[1][1])){var c=Math.max.apply(Math,t.map(function(d){return d[0][0]})),u=Math.min.apply(Math,t.map(function(d){return d[0][1]}));if(jt(c-u)>0)return[];r=[[c,i],[u,i]]}}else{var l=Math.max.apply(Math,t.map(function(d){return d[1][0]})),a=Math.min.apply(Math,t.map(function(d){return d[1][1]}));if(jt(l-a)>0)return[];r=[[o,l],[o,a]]}}return r.length||(r=n.filter(function(d){var f=d[0],g=d[1];return t.every(function(h){return 0<=jt(f-h[0][0])&&0<=jt(h[0][1]-f)&&0<=jt(g-h[1][0])&&0<=jt(h[1][1]-g)})})),r.map(function(d){return[jt(d[0]),jt(d[1])]})}function Sf(n){return pR(n.slice(1),[n[0]]).map(function(e,t){return[n[t],e]})}function bR(n,e){var t=n.slice(),r=e.slice();Cy(t)===-1&&t.reverse(),Cy(r)===-1&&r.reverse();var s=Sf(t),o=Sf(r),i=s.map(function(u){return Ja(u[0],u[1])}),l=o.map(function(u){return Ja(u[0],u[1])}),a=[];i.forEach(function(u,d){var f=s[d],g=[];l.forEach(function(h,m){var A=wx(u,h),b=Cx(A,[f,o[m]]);g.push.apply(g,b.map(function(y){return{index1:d,index2:m,pos:y,type:"intersection"}}))}),g.sort(function(h,m){return yf(f[0],h.pos)-yf(f[0],m.pos)}),a.push.apply(a,g),xf(f[1],r)&&a.push({index1:d,index2:-1,pos:f[1],type:"inside"})}),o.forEach(function(u,d){if(xf(u[1],t)){var f=!1,g=Za(a,function(h){var m=h.index2;return m===d?(f=!0,!1):!!f});g===-1&&(f=!1,g=Za(a,function(h){var m=h.index1,A=h.index2;return m===-1&&A+1===d?(f=!0,!1):!!f})),g===-1?a.push({index1:-1,index2:d,pos:u[1],type:"inside"}):a.splice(g,0,{index1:-1,index2:d,pos:u[1],type:"inside"})}});var c={};return a.filter(function(u){var d=u.pos,f=d[0]+"x"+d[1];return c[f]?!1:(c[f]=!0,!0)})}function Ny(n,e){var t=bR(n,e);return t.map(function(r){var s=r.pos;return s})}function wR(n,e,t,r,s,o){for(var i=0;i<s;++i){var l=t+i*s,a=r+i*s;n[l]+=n[a]*o,e[l]+=e[a]*o}}function CR(n,e,t,r,s){for(var o=0;o<s;++o){var i=t+o*s,l=r+o*s,a=n[i],c=e[i];n[i]=n[l],n[l]=a,e[i]=e[l],e[l]=c}}function vR(n,e,t,r,s){for(var o=0;o<r;++o){var i=t+o*r;n[i]/=s,e[i]/=s}}function xR(n,e){for(var t=n.slice(),r=vx(e),s=0;s<e;++s){var o=e*s+s;if(!nr(t[o],bn)){for(var i=s+1;i<e;++i)if(t[e*s+i]){CR(t,r,s,i,e);break}}if(!nr(t[o],bn))return[];vR(t,r,s,e,t[o]);for(var i=0;i<e;++i){var l=i,a=i+s*e,c=t[a];!nr(c,bn)||s===i||wR(t,r,l,s,e,-c)}}return r}function Fs(n,e,t){t===void 0&&(t=Math.sqrt(n.length));var r=[],s=n.length/t,o=e.length/s;if(s){if(!o)return n}else return e;for(var i=0;i<t;++i)for(var l=0;l<o;++l){r[l*t+i]=0;for(var a=0;a<s;++a)r[l*t+i]+=n[a*t+i]*e[l*s+a]}return r}function SR(n,e,t){var r=Fs(n,e,t),s=r[t-1];return r.map(function(o){return o/s})}function kR(n,e){return Fs(n,[1,0,0,0,0,Math.cos(e),Math.sin(e),0,0,-Math.sin(e),Math.cos(e),0,0,0,0,1],4)}function ER(n,e){return Fs(n,[Math.cos(e),0,-Math.sin(e),0,0,1,0,0,Math.sin(e),0,Math.cos(e),0,0,0,0,1],4)}function _R(n,e){return Fs(n,TR(e,4))}function Kl(n,e){var t=e[0],r=t===void 0?1:t,s=e[1],o=s===void 0?1:s,i=e[2],l=i===void 0?1:i;return Fs(n,[r,0,0,0,0,o,0,0,0,0,l,0,0,0,0,1],4)}function nd(n,e){var t=e[0],r=t===void 0?0:t,s=e[1],o=s===void 0?0:s,i=e[2],l=i===void 0?0:i;return Fs(n,[1,0,0,0,0,1,0,0,0,0,1,0,r,o,l,1],4)}function kf(n,e){return Fs(n,e,4)}function TR(n,e){var t=Math.cos(n),r=Math.sin(n),s=vx(e);return s[0]=t,s[1]=r,s[e]=-r,s[e+1]=t,s}function vx(n){for(var e=n*n,t=[],r=0;r<e;++r)t[r]=r%(n+1)?0:1;return t}var ui=function(){return ui=Object.assign||function(e){for(var t,r=1,s=arguments.length;r<s;r++){t=arguments[r];for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o])}return e},ui.apply(this,arguments)};function Bg(){return[1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1]}function DR(n,e){return e===void 0&&(e=0),IR(LR(n,e))}function rd(n,e){var t=SR(n,[e[0],e[1]||0,e[2]||0,1],4),r=t[3]||1;return[t[0]/r,t[1]/r,t[2]/r]}function NR(n,e){e===void 0&&(e=document.body);for(var t=n,r=Bg();t;){var s=getComputedStyle(t).transform;if(r=kf(DR(s),r),t===e)break;t=t.parentElement}return r=xR(r,4),r[12]=0,r[13]=0,r[14]=0,r}function IR(n){var e=Bg();return n.forEach(function(t){var r=t.matrixFunction,s=t.functionValue;r&&(e=r(e,s))}),e}function LR(n,e){e===void 0&&(e=0);var t=Va(n)?n:OO(n);return t.map(function(r){var s=RO(r),o=s.prefix,i=s.value,l=null,a=o,c="";if(o==="translate"||o==="translateX"||o==="translate3d"){var u=Gr(e)?ui(ui({},e),{"o%":e["%"]}):{"%":e,"o%":e},d=Xo(i).map(function(I,P){return P===0&&"x%"in u?u["%"]=e["x%"]:P===1&&"y%"in u?u["%"]=e["y%"]:u["%"]=e["o%"],yy(I,u)}),f=d[0],g=d[1],h=g===void 0?0:g,m=d[2],A=m===void 0?0:m;l=nd,c=[f,h,A]}else if(o==="translateY"){var b=Gr(e)?ui({"%":e["y%"]},e):{"%":e},h=yy(i,b);l=nd,c=[0,h,0]}else if(o==="translateZ"){var A=parseFloat(i);l=nd,c=[0,0,A]}else if(o==="scale"||o==="scale3d"){var y=Xo(i).map(function(I){return parseFloat(I)}),w=y[0],v=y[1],S=v===void 0?w:v,C=y[2],_=C===void 0?1:C;l=Kl,c=[w,S,_]}else if(o==="scaleX"){var w=parseFloat(i);l=Kl,c=[w,1,1]}else if(o==="scaleY"){var S=parseFloat(i);l=Kl,c=[1,S,1]}else if(o==="scaleZ"){var _=parseFloat(i);l=Kl,c=[1,1,_]}else if(o==="rotate"||o==="rotateZ"||o==="rotateX"||o==="rotateY"){var k=Ga(i),T=k.unit,D=k.value,L=T==="rad"?D:D*Math.PI/180;o==="rotate"||o==="rotateZ"?(a="rotateZ",l=_R):o==="rotateX"?l=kR:o==="rotateY"&&(l=ER),c=L}else if(o==="matrix3d")l=kf,c=Xo(i).map(function(I){return parseFloat(I)});else if(o==="matrix"){var N=Xo(i).map(function(I){return parseFloat(I)});l=kf,c=[N[0],N[1],0,0,N[2],N[3],0,0,0,0,1,0,N[4],N[5],0,1]}else a="";return{name:o,functionName:a,value:i,matrixFunction:l,functionValue:c}})}function MR(n){for(var e=5381,t=n.length;t;)e=e*33^n.charCodeAt(--t);return e>>>0}var OR=MR;function RR(n){return OR(n).toString(36)}function jR(n){if(n&&n.getRootNode){var e=n.getRootNode();if(e.nodeType===11)return e}}function PR(n,e,t){return t.original?e:e.replace(/([^};{\s}][^};{]*|^\s*){/mg,function(r,s){var o=s.trim();return(o?Xo(o):[""]).map(function(i){var l=i.trim();return l.indexOf("@")===0?l:l.indexOf(":global")>-1?l.replace(/\:global/g,""):l.indexOf(":host")>-1?"".concat(l.replace(/\:host/g,".".concat(n))):l?".".concat(n," ").concat(l):".".concat(n)}).join(", ")+" {"})}function FR(n,e,t,r,s){var o=er(r),i=o.createElement("style");return i.setAttribute("type","text/css"),i.setAttribute("data-styled-id",n),i.setAttribute("data-styled-count","1"),t.nonce&&i.setAttribute("nonce",t.nonce),i.innerHTML=PR(n,e,t),(s||o.head||o.body).appendChild(i),i}function BR(n){var e="rCS"+RR(n);return{className:e,inject:function(t,r){r===void 0&&(r={});var s=jR(t),o=(s||t.ownerDocument||document).querySelector('style[data-styled-id="'.concat(e,'"]'));if(!o)o=FR(e,n,r,t,s);else{var i=parseFloat(o.getAttribute("data-styled-count"))||0;o.setAttribute("data-styled-count","".concat(i+1))}return{destroy:function(){var l,a=parseFloat(o.getAttribute("data-styled-count"))||0;a<=1?(o.remove?o.remove():(l=o.parentNode)===null||l===void 0||l.removeChild(o),o=null):o.setAttribute("data-styled-count","".concat(a-1))}}}}}var Ef=function(n,e){return Ef=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,r){t.__proto__=r}||function(t,r){for(var s in r)Object.prototype.hasOwnProperty.call(r,s)&&(t[s]=r[s])},Ef(n,e)};function xx(n,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");Ef(n,e);function t(){this.constructor=n}n.prototype=e===null?Object.create(e):(t.prototype=e.prototype,new t)}var $e=function(){return $e=Object.assign||function(e){for(var t,r=1,s=arguments.length;r<s;r++){t=arguments[r];for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o])}return e},$e.apply(this,arguments)};function zR(n,e){var t={};for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&e.indexOf(r)<0&&(t[r]=n[r]);if(n!=null&&typeof Object.getOwnPropertySymbols=="function")for(var s=0,r=Object.getOwnPropertySymbols(n);s<r.length;s++)e.indexOf(r[s])<0&&Object.prototype.propertyIsEnumerable.call(n,r[s])&&(t[r[s]]=n[r[s]]);return t}function WR(n,e,t,r){var s=arguments.length,o=s<3?e:r===null?r=Object.getOwnPropertyDescriptor(e,t):r,i;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(n,e,t,r);else for(var l=n.length-1;l>=0;l--)(i=n[l])&&(o=(s<3?i(o):s>3?i(e,t,o):i(e,t))||o);return s>3&&o&&Object.defineProperty(e,t,o),o}function di(n,e,t){for(var r=0,s=e.length,o;r<s;r++)(o||!(r in e))&&(o||(o=Array.prototype.slice.call(e,0,r)),o[r]=e[r]);return n.concat(o||Array.prototype.slice.call(e))}function UR(n){if("touches"in n){var e=n.touches[0]||n.changedTouches[0];return{clientX:e.clientX,clientY:e.clientY}}else return{clientX:n.clientX,clientY:n.clientY}}function KR(n){if(typeof Map>"u")return n.filter(function(t,r){return n.indexOf(t)===r});var e=new Map;return n.filter(function(t){return e.has(t)?!1:(e.set(t,!0),!0)})}function HR(n,e,t){var r=er(n);return r.elementFromPoint&&r.elementFromPoint(e,t)||null}function Sx(n,e,t){var r=n.tag,s=n.children,o=n.attributes,i=n.className,l=n.style,a=e||er(t).createElement(r);for(var c in o)a.setAttribute(c,o[c]);var u=a.children;if(s.forEach(function(f,g){Sx(f,u[g],a)}),i&&i.split(/\s+/g).forEach(function(f){f&&!zO(a,f)&&WO(a,f)}),l){var d=a.style;for(var c in l)d[c]=l[c]}return!e&&t&&t.appendChild(a),a}function YR(n,e){for(var t=[],r=2;r<arguments.length;r++)t[r-2]=arguments[r];var s=e||{},o=s.className,i=o===void 0?"":o,l=s.style,a=l===void 0?{}:l,c=zR(s,["className","style"]);return{tag:n,className:i,style:a,attributes:c,children:t}}function sd(n,e,t){n!==e&&t(n,e)}function Iy(n,e,t){var r;t===void 0&&(t=n.data.boundArea);var s=n.distX,o=s===void 0?0:s,i=n.distY,l=i===void 0?0:i,a=n.data,c=a.startX,u=a.startY;if(e>0){var d=Math.sqrt((o*o+l*l)/(1+e*e)),f=e*d;o=(o>=0?1:-1)*f,l=(l>=0?1:-1)*d}var g=Math.abs(o),h=Math.abs(l),m=o<0?c-t.left:t.right-c,A=l<0?u-t.top:t.bottom-u;r=jO([g,h],[0,0],[m,A],!!e),g=r[0],h=r[1],o=(o>=0?1:-1)*g,l=(l>=0?1:-1)*h;var b=Math.min(0,o),y=Math.min(0,l),w=c+b,v=u+y;return{left:w,top:v,right:w+g,bottom:v+h,width:g,height:h}}function Hl(n){var e=n.getBoundingClientRect(),t=e.left,r=e.top,s=e.width,o=e.height;return{pos1:[t,r],pos2:[t+s,r],pos3:[t,r+o],pos4:[t+s,r+o]}}function Ly(n,e,t){var r=Qo(n,e),s=r.list,o=r.prevList,i=r.added,l=r.removed,a=r.maintained;return di(di(di([],i.map(function(c){return s[c]}),!0),l.map(function(c){return o[c]}),!0),t?a.map(function(c){var u=c[1];return s[u]}):[])}function My(n){for(var e=0,t=n.length,r=1;r<t;++r)e=Math.max(yf(n[r],n[r-1]),e);return e}var kx=BR(`
155
- :host {
156
- position: fixed;
157
- display: none;
158
- border: 1px solid #4af;
159
- background: rgba(68, 170, 255, 0.5);
160
- pointer-events: none;
161
- will-change: transform;
162
- z-index: 100;
163
- }
164
- `),_f="selecto-selection ".concat(kx.className),zg=["className","boundContainer","selectableTargets","selectByClick","selectFromInside","continueSelect","continueSelectWithoutDeselect","toggleContinueSelect","toggleContinueSelectWithoutDeselect","keyContainer","hitRate","scrollOptions","checkInput","preventDefault","ratio","getElementRect","preventDragFromInside","rootContainer","dragCondition","clickBySelectEnd","checkOverflow","innerScrollOptions"],VR=di(["dragContainer","cspNonce","preventClickEventOnDrag","preventClickEventOnDragStart","preventRightClick"],zg),Ex=["dragStart","drag","dragEnd","selectStart","select","selectEnd","keydown","keyup","scroll","innerScroll"],GR=["clickTarget","getSelectableElements","setSelectedTargets","getElementPoints","getSelectedTargets","findSelectableTargets","triggerDragStart","checkScroll","selectTargetsByPoints","setSelectedTargetsByPoints"],ZR=function(n){xx(e,n);function e(r){r===void 0&&(r={});var s=n.call(this)||this;s.selectedTargets=[],s.dragScroll=new cR,s._onDragStart=function(l,a){var c=l.data,u=l.clientX,d=l.clientY,f=l.inputEvent,g=s.options,h=g.selectFromInside,m=g.selectByClick,A=g.rootContainer,b=g.boundContainer,y=g.preventDragFromInside,w=y===void 0?!0:y,v=g.clickBySelectEnd,S=g.dragCondition;if(S&&!S(l)){l.stop();return}c.data={};var C=is(s.container);c.innerWidth=C.innerWidth,c.innerHeight=C.innerHeight,s.findSelectableTargets(c),c.startSelectedTargets=s.selectedTargets,c.scaleMatrix=Bg(),c.containerX=0,c.containerY=0;var _=s.container,k={left:-1/0,top:-1/0,right:1/0,bottom:1/0};if(A){var T=s.container.getBoundingClientRect();c.containerX=T.left,c.containerY=T.top,c.scaleMatrix=NR(s.container,A)}if(b){var D=Gr(b)&&"element"in b?$e({left:!0,top:!0,bottom:!0,right:!0},b):{element:b,left:!0,top:!0,bottom:!0,right:!0},L=D.element,N=void 0;if(L){ji(L)?N=er(_).querySelector(L):L===!0?N=s.container:N=L;var I=N.getBoundingClientRect();D.left&&(k.left=I.left),D.top&&(k.top=I.top),D.right&&(k.right=I.right),D.bottom&&(k.bottom=I.bottom)}}c.boundArea=k;var P={left:u,top:d,right:u,bottom:d,width:0,height:0},G=[],J=m&&!v,te=!1;if(!h||J){var Q=s._findElement(a||f.target,c.selectableTargets);te=!!Q,J&&(G=Q?[Q]:[])}var B=!h&&te;if(B&&!m)return l.stop(),!1;var j=f.type,F=j==="mousedown"||j==="touchstart",V=!l.isClick&&F?s.emit("dragStart",$e($e({},l),{data:c.data})):!0;if(!V)return l.stop(),!1;if(s.continueSelect?(G=Ly(s.selectedTargets,G,s.continueSelectWithoutDeselect),c.startPassedTargets=s.selectedTargets):c.startPassedTargets=[],s._select(G,P,l,!0,B&&m&&!v&&w),c.startX=u,c.startY=d,c.selectFlag=!1,c.preventDragFromInside=!1,f.target){var K=rd(c.scaleMatrix,[u-c.containerX,d-c.containerY]);s.target.style.cssText+="position: ".concat(A?"absolute":"fixed",";")+"left:0px;top:0px;"+"transform: translate(".concat(K[0],"px, ").concat(K[1],"px)")}if(B&&m&&!v)f.preventDefault(),w&&(s._selectEnd(c.startSelectedTargets,c.startPassedTargets,P,l,!0),c.preventDragFromInside=!0);else{c.selectFlag=!0;var Y=s.options,X=Y.scrollOptions,ee=Y.innerScrollOptions,H=!1;if(ee){for(var U=l.inputEvent,be=U.target,xe=null,Ne=be;Ne&&Ne!==er(_).body;){var ke=getComputedStyle(Ne).overflow!=="visible";if(ke){xe=Ne;break}Ne=Ne.parentElement}xe&&(c.innerScrollOptions=$e({container:xe,checkScrollEvent:!0},ee===!0?{}:ee),s.dragScroll.dragStart(l,c.innerScrollOptions),H=!0)}!H&&X&&X.container&&s.dragScroll.dragStart(l,X),B&&m&&v&&(c.selectFlag=!1,l.preventDrag())}return!0},s._onDrag=function(l){if(l.data.selectFlag){var a=s.scrollOptions,c=l.data.innerScrollOptions,u=c||(a==null?void 0:a.container);if(u&&!l.isScroll&&s.dragScroll.drag(l,c||a))return}s._checkSelected(l)},s._onDragEnd=function(l){var a=l.data,c=l.inputEvent,u=Iy(l,s.options.ratio),d=a.selectFlag,f=s.container;if(c&&s.emit("dragEnd",$e($e({isDouble:!!l.isDouble,isClick:!!l.isClick,isDrag:!1,isSelect:d},l),{data:a.data,rect:u})),s.target.style.cssText+="display: none;",d)a.selectFlag=!1,s.dragScroll.dragEnd();else if(s.selectByClick&&s.clickBySelectEnd){var g=s._findElement((c==null?void 0:c.target)||HR(f,l.clientX,l.clientY),a.selectableTargets);s._select(g?[g]:[],u,l)}a.preventDragFromInside||s._selectEnd(a.startSelectedTargets,a.startPassedTargets,u,l)},s._onKeyDown=function(l){var a=s.options,c=!1;if(!s._keydownContinueSelect){var u=s._sameCombiKey(l,a.toggleContinueSelect);s._keydownContinueSelect=u,c||(c=u)}if(!s._keydownContinueSelectWithoutDeselection){var u=s._sameCombiKey(l,a.toggleContinueSelectWithoutDeselect);s._keydownContinueSelectWithoutDeselection=u,c||(c=u)}c&&s.emit("keydown",{keydownContinueSelect:s._keydownContinueSelect,keydownContinueSelectWithoutDeselection:s._keydownContinueSelectWithoutDeselection})},s._onKeyUp=function(l){var a=s.options,c=!1;if(s._keydownContinueSelect){var u=s._sameCombiKey(l,a.toggleContinueSelect,!0);s._keydownContinueSelect=!u,c||(c=u)}if(s._keydownContinueSelectWithoutDeselection){var u=s._sameCombiKey(l,a.toggleContinueSelectWithoutDeselect,!0);s._keydownContinueSelectWithoutDeselection=!u,c||(c=u)}c&&s.emit("keyup",{keydownContinueSelect:s._keydownContinueSelect,keydownContinueSelectWithoutDeselection:s._keydownContinueSelectWithoutDeselection})},s._onBlur=function(){(s._keydownContinueSelect||s._keydownContinueSelectWithoutDeselection)&&(s._keydownContinueSelect=!1,s._keydownContinueSelectWithoutDeselection=!1,s.emit("keyup",{keydownContinueSelect:s._keydownContinueSelect,keydownContinueSelectWithoutDeselection:s._keydownContinueSelectWithoutDeselection}))},s._onDocumentSelectStart=function(l){var a=er(s.container);if(s.gesto.isFlag()){var c=s.dragContainer;c===is(s.container)&&(c=a.documentElement);var u=vy(c)?[c]:[].slice.call(c),d=l.target;u.some(function(f){if(f===d||f.contains(d))return l.preventDefault(),!0})}},s.target=r.portalContainer;var o=r.container;s.options=$e({className:"",portalContainer:null,container:null,dragContainer:null,selectableTargets:[],selectByClick:!0,selectFromInside:!0,clickBySelectEnd:!1,hitRate:100,continueSelect:!1,continueSelectWithoutDeselect:!1,toggleContinueSelect:null,toggleContinueSelectWithoutDeselect:null,keyContainer:null,scrollOptions:null,checkInput:!1,preventDefault:!1,boundContainer:!1,preventDragFromInside:!0,dragCondition:null,rootContainer:null,checkOverflow:!1,innerScrollOptions:!1,getElementRect:Hl,cspNonce:"",ratio:0},r);var i=s.options.portalContainer;return i&&(o=i.parentElement),s.container=o||document.body,s.initElement(),s.initDragScroll(),s.setKeyController(),s}var t=e.prototype;return t.setSelectedTargets=function(r){var s=this.selectedTargets,o=Qo(s,r),i=o.added,l=o.removed,a=o.prevList,c=o.list;return this.selectedTargets=r,{added:i.map(function(u){return c[u]}),removed:l.map(function(u){return a[u]}),beforeSelected:s,selected:r}},t.setSelectedTargetsByPoints=function(r,s){var o=Math.min(r[0],s[0]),i=Math.min(r[1],s[1]),l=Math.max(r[0],s[0]),a=Math.max(r[1],s[1]),c={left:o,top:i,right:l,bottom:a,width:l-o,height:a-i},u={ignoreClick:!0};this.findSelectableTargets(u);var d=this.hitTest(c,u,!0,null),f=this.setSelectedTargets(d);return $e($e({},f),{rect:c})},t.selectTargetsByPoints=function(r,s){var o=new MouseEvent("mousedown",{clientX:r[0],clientY:r[1],cancelable:!0,bubbles:!0}),i=new MouseEvent("mousemove",{clientX:s[0],clientY:s[1],cancelable:!0,bubbles:!0}),l=new MouseEvent("mousemove",{clientX:s[0],clientY:s[1],cancelable:!0,bubbles:!0}),a=this.gesto,c=a.onDragStart(o);c!==!1&&(a.onDrag(i),a.onDragEnd(l))},t.getSelectedTargets=function(){return this.selectedTargets},t.triggerDragStart=function(r){return this.gesto.triggerDragStart(r),this},t.destroy=function(){var r;this.off(),this.keycon&&this.keycon.destroy(),this.gesto.unset(),this.injectResult.destroy(),this.dragScroll.dragEnd(),Ze(document,"selectstart",this._onDocumentSelectStart),this.options.portalContainer||(r=this.target.parentElement)===null||r===void 0||r.removeChild(this.target),this.keycon=null,this.gesto=null,this.injectResult=null,this.target=null,this.container=null,this.options=null},t.getElementPoints=function(r){var s=this.getElementRect||Hl,o=s(r),i=[o.pos1,o.pos2,o.pos4,o.pos3];if(s!==Hl){var l=r.getBoundingClientRect();return yR(i,l)}return i},t.getSelectableElements=function(){var r=this.container,s=[];return this.options.selectableTargets.forEach(function(o){if(jg(o)){var i=o();i&&s.push.apply(s,[].slice.call(i))}else if(vy(o))s.push(o);else if(Gr(o))s.push(o.value||o.current);else{var l=[].slice.call(er(r).querySelectorAll(o));s.push.apply(s,l)}}),s},t.checkScroll=function(){if(this.gesto.isFlag()){var r=this.scrollOptions,s=this.gesto.getEventData().innerScrollOptions,o=s||(r==null?void 0:r.container);o&&this.dragScroll.checkScroll($e({inputEvent:this.gesto.getCurrentEvent()},s||r))}},t.findSelectableTargets=function(r){var s=this;r===void 0&&(r=this.gesto.getEventData());var o=this.getSelectableElements(),i=o.map(function(d){return s.getElementPoints(d)});r.selectableTargets=o,r.selectablePoints=i,r.selectableParentMap=null;var l=this.options,a=l.checkOverflow||l.innerScrollOptions,c=er(this.container);if(a){var u=new Map;r.selectableInnerScrollParentMap=u,r.selectableInnerScrollPathsList=o.map(function(d,f){for(var g=d.parentElement,h=[],m=[],A=function(){var b=u.get(g);if(!b){var y=getComputedStyle(g).overflow!=="visible";if(y){var w=Hl(g);b={parentElement:g,indexes:[],points:[w.pos1,w.pos2,w.pos4,w.pos3],paths:di([],m)},h.push(g),h.forEach(function(v){u.set(v,b)}),h=[]}}b?(g=b.parentElement,u.get(g).indexes.push(f),m.push(g)):h.push(g),g=g.parentElement};g&&g!==c.body;)A();return m})}return l.checkOverflow||(r.selectableInners=o.map(function(){return!0})),this._refreshGroups(r),o},t.clickTarget=function(r,s){var o=UR(r),i=o.clientX,l=o.clientY,a={data:{selectFlag:!1},clientX:i,clientY:l,inputEvent:r,isClick:!0,isTrusted:!1,stop:function(){return!1}};return this._onDragStart(a,s)&&this._onDragEnd(a),this},t.setKeyController=function(){var r=this.options,s=r.keyContainer,o=r.toggleContinueSelect,i=r.toggleContinueSelectWithoutDeselect;this.keycon&&(this.keycon.destroy(),this.keycon=null),(o||i)&&(this.keycon=new gR(s||is(this.container)),this.keycon.keydown(this._onKeyDown).keyup(this._onKeyUp).on("blur",this._onBlur))},t.setClassName=function(r){this.options.className=r,this.target.setAttribute("class","".concat(_f," ").concat(r||""))},t.setKeyEvent=function(){var r=this.options,s=r.toggleContinueSelect,o=r.toggleContinueSelectWithoutDeselect;!s&&!o||this.keycon||this.setKeyController()},t.setKeyContainer=function(r){var s=this,o=this.options;sd(o.keyContainer,r,function(){o.keyContainer=r,s.setKeyController()})},t.getContinueSelect=function(){var r=this.options,s=r.continueSelect,o=r.toggleContinueSelect;return!o||!this._keydownContinueSelect?s:!s},t.getContinueSelectWithoutDeselect=function(){var r=this.options,s=r.continueSelectWithoutDeselect,o=r.toggleContinueSelectWithoutDeselect;return!o||!this._keydownContinueSelectWithoutDeselection?s:!s},t.setToggleContinueSelect=function(r){var s=this,o=this.options;sd(o.toggleContinueSelect,r,function(){o.toggleContinueSelect=r,s.setKeyEvent()})},t.setToggleContinueSelectWithoutDeselect=function(r){var s=this,o=this.options;sd(o.toggleContinueSelectWithoutDeselect,r,function(){o.toggleContinueSelectWithoutDeselect=r,s.setKeyEvent()})},t.setPreventDefault=function(r){this.gesto.options.preventDefault=r},t.setCheckInput=function(r){this.gesto.options.checkInput=r},t.initElement=function(){var r=this.options,s=r.dragContainer,o=r.checkInput,i=r.preventDefault,l=r.preventClickEventOnDragStart,a=r.preventClickEventOnDrag,c=r.preventClickEventByCondition,u=r.preventRightClick,d=u===void 0?!0:u,f=r.className,g=this.container;this.target=Sx(YR("div",{className:"".concat(_f," ").concat(f||"")}),this.target,g);var h=this.target;this.dragContainer=typeof s=="string"?[].slice.call(er(g).querySelectorAll(s)):s||this.target.parentNode,this.gesto=new JO(this.dragContainer,{checkWindowBlur:!0,container:is(g),checkInput:o,preventDefault:i,preventClickEventOnDragStart:l,preventClickEventOnDrag:a,preventClickEventByCondition:c,preventRightClick:d}).on({dragStart:this._onDragStart,drag:this._onDrag,dragEnd:this._onDragEnd}),et(document,"selectstart",this._onDocumentSelectStart),this.injectResult=kx.inject(h,{nonce:this.options.cspNonce})},t.hitTest=function(r,s,o,i){var l=this.options,a=l.hitRate,c=l.selectByClick,u=r.left,d=r.top,f=r.right,g=r.bottom,h=s.innerGroups,m=s.innerWidth,A=s.innerHeight,b=i==null?void 0:i.clientX,y=i==null?void 0:i.clientY,w=s.ignoreClick,v=[[u,d],[f,d],[f,g],[u,g]],S=function(Q,B){var j=Ga(typeof a=="function"?"".concat(a(B)):"".concat(a)),F=w?!1:xf([b,y],Q);if(!o&&c&&F)return!0;var V=Ny(v,Q);if(!V.length)return!1;var K=td(V),Y=0;if(K===0&&td(Q)===0?(Y=My(Q),K=My(V)):Y=td(Q),j.unit==="px")return K>=j.value;var X=px(Math.round(K/Y*100),0,100);return X>=Math.min(100,j.value)},C=s.selectableTargets,_=s.selectablePoints,k=s.selectableInners;if(!h)return C.filter(function(Q,B){return k[B]?S(_[B],C[B]):!1});for(var T=[],D=Math.floor(u/m),L=Math.floor(f/m),N=Math.floor(d/A),I=Math.floor(g/A),P=D;P<=L;++P){var G=h[P];if(G)for(var J=N;J<=I;++J){var te=G[J];te&&te.forEach(function(Q){var B=_[Q],j=k[Q],F=C[Q];j&&S(B,F)&&T.push(F)})}}return KR(T)},t.initDragScroll=function(){var r=this;this.dragScroll.on("scrollDrag",function(s){var o=s.next;o(r.gesto.getCurrentEvent())}).on("scroll",function(s){var o=s.container,i=s.direction,l=r.gesto.getEventData().innerScrollOptions;l?r.emit("innerScroll",{container:o,direction:i}):r.emit("scroll",{container:o,direction:i})}).on("move",function(s){var o=s.offsetX,i=s.offsetY,l=s.inputEvent,a=r.gesto;if(!(!a||!a.isFlag())){var c=r.gesto.getEventData(),u=c.boundArea;c.startX-=o,c.startY-=i;var d=r.gesto.getEventData().innerScrollOptions,f=d==null?void 0:d.container,g=!1;if(f){var h=c.selectableInnerScrollParentMap,m=h.get(f);m&&(m.paths.forEach(function(A){var b=h.get(A);b.points.forEach(function(y){y[0]-=o,y[1]-=i})}),m.indexes.forEach(function(A){c.selectablePoints[A].forEach(function(b){b[0]-=o,b[1]-=i})}),g=!0)}g||c.selectablePoints.forEach(function(A){A.forEach(function(b){b[0]-=o,b[1]-=i})}),r._refreshGroups(c),u.left-=o,u.right-=o,u.top-=i,u.bottom-=i,r.gesto.scrollBy(o,i,l.inputEvent),r._checkSelected(r.gesto.getCurrentEvent())}})},t._select=function(r,s,o,i,l){l===void 0&&(l=!1);var a=o.inputEvent,c=o.data,u=this.setSelectedTargets(r),d=Qo(c.startSelectedTargets,r),f=d.added,g=d.removed,h=d.prevList,m=d.list,A={startSelected:h,startAdded:f.map(function(b){return m[b]}),startRemoved:g.map(function(b){return h[b]})};i&&this.emit("selectStart",$e($e($e({},u),A),{rect:s,inputEvent:a,data:c.data,isTrusted:o.isTrusted,isDragStartEnd:l})),(u.added.length||u.removed.length)&&this.emit("select",$e($e($e({},u),A),{rect:s,inputEvent:a,data:c.data,isTrusted:o.isTrusted,isDragStartEnd:l}))},t._selectEnd=function(r,s,o,i,l){l===void 0&&(l=!1);var a=i.inputEvent,c=i.isDouble,u=i.data,d=a&&a.type,f=d==="mousedown"||d==="touchstart",g=Qo(r,this.selectedTargets),h=g.added,m=g.removed,A=g.prevList,b=g.list,y=Qo(s,this.selectedTargets),w=y.added,v=y.removed,S=y.prevList,C=y.list;this.emit("selectEnd",{startSelected:r,beforeSelected:s,selected:this.selectedTargets,added:h.map(function(_){return b[_]}),removed:m.map(function(_){return A[_]}),afterAdded:w.map(function(_){return C[_]}),afterRemoved:v.map(function(_){return S[_]}),isDragStart:f&&l,isDragStartEnd:f&&l,isClick:!!i.isClick,isDouble:!!c,rect:o,inputEvent:a,data:u.data,isTrusted:i.isTrusted})},t._checkSelected=function(r,s){s===void 0&&(s=Iy(r,this.options.ratio));var o=r.data,i=s.top,l=s.left,a=s.width,c=s.height,u=o.selectFlag,d=o.containerX,f=o.containerY,g=o.scaleMatrix,h=rd(g,[l-d,i-f]),m=rd(g,[a,c]),A=[];if(u){this.target.style.cssText+="display: block;left:0px;top:0px;"+"transform: translate(".concat(h[0],"px, ").concat(h[1],"px);")+"width:".concat(m[0],"px;height:").concat(m[1],"px;");var b=this.hitTest(s,o,!0,r);A=Ly(o.startPassedTargets,b,this.continueSelect&&this.continueSelectWithoutDeselect)}var y=this.emit("drag",$e($e({},r),{data:o.data,isSelect:u,rect:s}));if(y===!1){this.target.style.cssText+="display: none;",r.stop();return}u&&this._select(A,s,r)},t._sameCombiKey=function(r,s,o){if(!s)return!1;var i=yx(r.inputEvent,r.key),l=[].concat(s),a=Va(l[0])?l:[l];if(o){var c=r.key;return a.some(function(u){return u.some(function(d){return d===c})})}return a.some(function(u){return u.every(function(d){return i.indexOf(d)>-1})})},t._findElement=function(r,s){for(var o=r;o&&!(s.indexOf(o)>-1);)o=o.parentElement;return o},t._refreshGroups=function(r){var s,o=r.innerWidth,i=r.innerHeight,l=r.selectablePoints;if(this.options.checkOverflow){var a=(s=this.gesto.getEventData().innerScrollOptions)===null||s===void 0?void 0:s.container,c=r.selectableInnerScrollParentMap,u=r.selectableInnerScrollPathsList;r.selectableInners=u.map(function(g,h){var m=!1;return g.every(function(A){if(m)return!0;if(A===a)return m=!0,!0;var b=c.get(A);if(b){var y=l[h],w=b.points,v=Ny(y,w);if(!v.length)return!1}return!0})})}if(!o||!i)r.innerGroups=null;else{var d=r.selectablePoints,f={};d.forEach(function(g,h){var m=1/0,A=-1/0,b=1/0,y=-1/0;g.forEach(function(S){var C=Math.floor(S[0]/o),_=Math.floor(S[1]/i);m=Math.min(C,m),A=Math.max(C,A),b=Math.min(_,b),y=Math.max(_,y)});for(var w=m;w<=A;++w)for(var v=b;v<=y;++v)f[w]=f[w]||{},f[w][v]=f[w][v]||[],f[w][v].push(h)}),r.innerGroups=f}},e=WR([QO(zg,function(r,s){var o={enumerable:!0,configurable:!0,get:function(){return this.options[s]}},i=mf("get ".concat(s));r[i]?o.get=function(){return this[i]()}:o.get=function(){return this.options[s]};var l=mf("set ".concat(s));r[l]?o.set=function(a){this[l](a)}:o.set=function(a){this.options[s]=a},Object.defineProperty(r,s,o)})],e),e}(su),JR=function(n){xx(e,n);function e(){return n!==null&&n.apply(this,arguments)||this}return e}(ZR),Tf=function(n,e){return Tf=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,r){t.__proto__=r}||function(t,r){for(var s in r)Object.prototype.hasOwnProperty.call(r,s)&&(t[s]=r[s])},Tf(n,e)};function XR(n,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");Tf(n,e);function t(){this.constructor=n}n.prototype=e===null?Object.create(e):(t.prototype=e.prototype,new t)}var Xa=function(){return Xa=Object.assign||function(e){for(var t,r=1,s=arguments.length;r<s;r++){t=arguments[r];for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o])}return e},Xa.apply(this,arguments)};function QR(n,e,t,r){var s=arguments.length,o=s<3?e:r,i;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(n,e,t,r);else for(var l=n.length-1;l>=0;l--)(i=n[l])&&(o=(s<3?i(o):s>3?i(e,t,o):i(e,t))||o);return s>3&&o&&Object.defineProperty(e,t,o),o}var Oy=Ex.map(function(n){return mf("on ".concat(n))}),qR=function(n){XR(e,n);function e(){return n!==null&&n.apply(this,arguments)||this}var t=e.prototype;return t.render=function(){return x.createElement("div",{className:_f,ref:XO(this,"selectionElement")})},t.componentDidMount=function(){var r=this,s=this.props,o={};VR.forEach(function(i){i in s&&(o[i]=s[i])}),this.selecto=new JR(Xa(Xa({},o),{portalContainer:this.selectionElement})),Ex.forEach(function(i,l){r.selecto.on(i,function(a){var c=r.props,u=c[Oy[l]]&&c[Oy[l]](a);u===!1&&a.stop()})})},t.componentDidUpdate=function(r){var s=this.props,o=this.selecto;zg.forEach(function(i){r[i]!==s[i]&&(o[i]=s[i])})},t.componentWillUnmount=function(){this.selecto.destroy()},QR([qO(GR)],e.prototype,"selecto",void 0),e}(x.PureComponent);const $R=({editor:n})=>{const e=x.useRef(null);return x.useEffect(()=>{const t=()=>{var r;(r=e.current)==null||r.checkScroll()};return window.addEventListener("scroll",t),()=>{window.removeEventListener("scroll",t)}},[]),p.jsx(qR,{ref:e,className:"editor-selecto",dragContainer:".editor",selectableTargets:[".ContentEditable__root > *"],selectByClick:!1,selectFromInside:!1,checkInput:!0,toggleContinueSelect:"shift",toggleContinueSelectWithoutDeselect:[["ctrl"],["meta"]],ratio:0,hitRate:0,onDragStart:t=>{t.inputEvent.target.className!=="editor"&&t.stop()},onSelectEnd:()=>cM(n),onSelect:t=>dM(t,n),scrollOptions:uM,onScroll:t=>{document.documentElement.scrollBy(t.direction[0]*10,t.direction[1]*10)}})},ej="_listContainer_9t201_1",tj="_list_9t201_1",nj="_text_9t201_26",od={listContainer:ej,list:tj,text:nj},Ry=()=>{const n=fe(),e=n==null?void 0:n.getFirstChild();return n.getChildren().length>1?!1:e&&O(e)&&e.isEmpty()},rj=({editor:n})=>{var l;const[e,t]=x.useState(!1),{t:r,i18n:s}=We.useTranslation();x.useEffect(()=>{n.update(()=>{Ry()&&t(!0)}),ve(n.registerCommand(tc,()=>{const a=Ry();return t(!!a),!1},le),n.registerCommand(Jr,()=>(t(!1),!1),le))},[]);const o=(a,c)=>{a==null||a.update(()=>{a.focus();const d=fe().getFirstChild();d&&c&&(c(d),t(!1))})},i=x.useMemo(()=>[{title:r("editor.emptyPageOptions.heading"),icon:p.jsx(z.IconH1,{stroke:2,size:18}),onSelect:()=>o(n,a=>{a.replace(Nr("h1"))})},{title:r("editor.emptyPageOptions.grid"),icon:p.jsx(z.IconColumns2,{stroke:2,size:18}),onSelect:()=>{o(n,()=>{n==null||n.dispatchCommand(vg,"50% 50%")})}},{title:r("editor.emptyPageOptions.list"),icon:p.jsx(z.IconListNumbers,{stroke:2,size:18}),onSelect:()=>{o(n,()=>{n==null||n.dispatchCommand(Mc,void 0)})}},{title:r("editor.emptyPageOptions.code"),icon:p.jsx(z.IconCode,{stroke:2,size:18}),onSelect:()=>{o(n,()=>{n==null||n.dispatchCommand(ox,void 0)})}},{title:r("editor.emptyPageOptions.callout"),icon:p.jsx(z.IconBaseline,{stroke:2,size:18}),onSelect:()=>{o(n,()=>{setTimeout(()=>{n==null||n.dispatchCommand(Yh,"success")})})}},{title:r("editor.emptyPageOptions.table"),icon:p.jsx(z.IconTable,{stroke:2,size:18}),onSelect:()=>{o(n,()=>{setTimeout(()=>{n==null||n.dispatchCommand(Wc,{columns:"4",includeHeaders:!1,rows:"3"})})})}},{title:r("editor.emptyPageOptions.integrations"),icon:p.jsx(z.IconApps,{stroke:2,size:18}),onSelect:()=>{}}],[s.language]);return e?p.jsx(E.Portal,{target:((l=n==null?void 0:n._rootElement)==null?void 0:l.parentElement)||document.body,children:p.jsx("ul",{className:`${od.listContainer} empty-page-options`,children:i.map((a,c)=>p.jsxs(E.Menu,{disabled:c!==i.length-1,position:"bottom-start",shadow:"md",styles:{dropdown:{overflow:"auto",zIndex:1e3}},middlewares:$v,width:200,transitionProps:yr,children:[p.jsx(E.Menu.Target,{children:p.jsxs("li",{className:od.list,onClick:a.onSelect,children:[a.icon," ",p.jsx("span",{className:od.text,children:a.title})]})}),p.jsx(E.Menu.Dropdown,{children:Lo.map(u=>p.jsx(E.Menu.Item,{className:"item "+qv(u.key==="1"),leftSection:u.icon,onClick:()=>{o(n,()=>{setTimeout(()=>{n==null||n.dispatchCommand(Cg,""),t(!1)})})},children:u.name},u.name))})]},a.title))})}):null};function sj(n){const{onRef:e,floatingAnchorElem:t,isSmallWidthViewport:r,maxHeight:s,showTextToolbar:o,mode:i,isLoading:l,editor:a}=n,[c,u]=x.useState(!1),{excludeNodes:d}=x.useContext(Gt),{settings:{isRichText:f,showTreeView:g}}=To(),{historyState:h}=ru();let m={};return s?m={maxHeight:s}:m={overflowY:"hidden"},p.jsxs(p.Fragment,{children:[p.jsx(xg,{mode:i,opened:c,setOpenedMenu:u}),p.jsx(Dh,{externalHistoryState:h}),t&&!r&&p.jsx(nu,{anchorElem:t,component:p.jsx(Ng,{mode:i,isFloating:!0})}),p.jsxs("div",{className:`editor-container ${g?"tree-view":""} ${f?"":"plain-text"}`,children:[p.jsx(nx,{}),p.jsx(Wh,{isLoading:l}),p.jsx(Hh,{}),p.jsx(mg,{}),p.jsx(Lc,{}),p.jsx(cl,{contentEditable:p.jsx("div",{className:"editor-scroller",style:m,children:p.jsx("div",{className:"editor",ref:e,children:p.jsx(gl,{})})}),ErrorBoundary:ol}),p.jsx(hx,{}),p.jsx(Ti,{}),p.jsx(Bc,{}),p.jsx(jc,{}),p.jsx(Vh,{maxDepth:7}),p.jsx(ul,{}),p.jsx(Eg,{}),p.jsx(jL,{}),p.jsx(Uv,{}),p.jsx(Gh,{}),p.jsx(iO,{}),p.jsx(Qv,{}),p.jsx(Gv,{}),p.jsx(_c,{}),p.jsx(Dc,{}),p.jsx(zc,{}),p.jsx(QC,{}),p.jsx(wg,{}),p.jsx(zv,{}),p.jsx(Zv,{}),p.jsx($R,{editor:a}),t&&p.jsx(Dg,{floatingAnchorElem:t,isSmallWidthViewport:r}),t&&!r&&p.jsxs(p.Fragment,{children:[p.jsx(kg,{isShowAddButton:!0,anchorElem:t}),p.jsx(Fc,{anchorElem:t,showTextToolbar:o})]}),t&&p.jsxs(p.Fragment,{children:[p.jsx(Rc,{anchorElem:t}),p.jsx(sO,{anchorElem:t})]})]}),d.contents&&p.jsx(Tg,{}),p.jsx(rj,{editor:a})]})}const oj=`\\.,\\+\\*\\?\\$\\@\\|#{}\\(\\)\\^\\-\\[\\]\\\\/!%'"~=<>_:;`,ij={PUNCTUATION:oj},_x=ij.PUNCTUATION,Wg=["@"].join(""),Tx="[^"+Wg+_x+"\\s]",lj="(?:\\.[ |$]| |["+_x+"]|)",aj=75,cj=new RegExp("(^|\\s|\\()(["+Wg+"]((?:"+Tx+lj+"){0,"+aj+"}))$"),uj=50,dj=new RegExp("(^|\\s|\\()(["+Wg+"]((?:"+Tx+"){0,"+uj+"}))$"),fj=5,id=new Map,hj=["Aayla Secura","Adi Gallia","Admiral Dodd Rancit","Admiral Firmus Piett","Admiral Gial Ackbar","Admiral Ozzel","Admiral Raddus","Admiral Terrinald Screed","Admiral Trench","Admiral U.O. Statura","Agen Kolar","Agent Kallus","Aiolin and Morit Astarte","Aks Moe","Almec","Alton Kastle","Amee","AP-5","Armitage Hux","Artoo","Arvel Crynyd","Asajj Ventress","Aurra Sing","AZI-3","Bala-Tik","Barada","Bargwill Tomder","Baron Papanoida","Barriss Offee","Baze Malbus","Bazine Netal","BB-8","BB-9E","Ben Quadinaros","Berch Teller","Beru Lars","Bib Fortuna","Biggs Darklighter","Black Krrsantan","Bo-Katan Kryze","Boba Fett","Bobbajo","Bodhi Rook","Borvo the Hutt","Boss Nass","Bossk","Breha Antilles-Organa","Bren Derlin","Brendol Hux","BT-1","C-3PO","C1-10P","Cad Bane","Caluan Ematt","Captain Gregor","Captain Phasma","Captain Quarsh Panaka","Captain Rex","Carlist Rieekan","Casca Panzoro","Cassian Andor","Cassio Tagge","Cham Syndulla","Che Amanwe Papanoida","Chewbacca","Chi Eekway Papanoida","Chief Chirpa","Chirrut Îmwe","Ciena Ree","Cin Drallig","Clegg Holdfast","Cliegg Lars","Coleman Kcaj","Coleman Trebor","Colonel Kaplan","Commander Bly","Commander Cody (CC-2224)","Commander Fil (CC-3714)","Commander Fox","Commander Gree","Commander Jet","Commander Wolffe","Conan Antonio Motti","Conder Kyl","Constable Zuvio","Cordé","Cpatain Typho","Crix Madine","Cut Lawquane","Dak Ralter","Dapp","Darth Bane","Darth Maul","Darth Tyranus","Daultay Dofine","Del Meeko","Delian Mors","Dengar","Depa Billaba","Derek Klivian","Dexter Jettster","Dineé Ellberger","DJ","Doctor Aphra","Doctor Evazan","Dogma","Dormé","Dr. Cylo","Droidbait","Droopy McCool","Dryden Vos","Dud Bolt","Ebe E. Endocott","Echuu Shen-Jon","Eeth Koth","Eighth Brother","Eirtaé","Eli Vanto","Ellé","Ello Asty","Embo","Eneb Ray","Enfys Nest","EV-9D9","Evaan Verlaine","Even Piell","Ezra Bridger","Faro Argyus","Feral","Fifth Brother","Finis Valorum","Finn","Fives","FN-1824","FN-2003","Fodesinbeed Annodue","Fulcrum","FX-7","GA-97","Galen Erso","Gallius Rax",'Garazeb "Zeb" Orrelios',"Gardulla the Hutt","Garrick Versio","Garven Dreis","Gavyn Sykes","Gideon Hask","Gizor Dellso","Gonk droid","Grand Inquisitor","Greeata Jendowanian","Greedo","Greer Sonnel","Grievous","Grummgar","Gungi","Hammerhead","Han Solo","Harter Kalonia","Has Obbit","Hera Syndulla","Hevy","Hondo Ohnaka","Huyang","Iden Versio","IG-88","Ima-Gun Di","Inquisitors","Inspector Thanoth","Jabba","Jacen Syndulla","Jan Dodonna","Jango Fett","Janus Greejatus","Jar Jar Binks","Jas Emari","Jaxxon","Jek Tono Porkins","Jeremoch Colton","Jira","Jobal Naberrie","Jocasta Nu","Joclad Danva","Joh Yowza","Jom Barell","Joph Seastriker","Jova Tarkin","Jubnuk","Jyn Erso","K-2SO","Kanan Jarrus","Karbin","Karina the Great","Kes Dameron","Ketsu Onyo","Ki-Adi-Mundi","King Katuunko","Kit Fisto","Kitster Banai","Klaatu","Klik-Klak","Korr Sella","Kylo Ren","L3-37","Lama Su","Lando Calrissian","Lanever Villecham","Leia Organa","Letta Turmond","Lieutenant Kaydel Ko Connix","Lieutenant Thire","Lobot","Logray","Lok Durd","Longo Two-Guns","Lor San Tekka","Lorth Needa","Lott Dod","Luke Skywalker","Lumat","Luminara Unduli","Lux Bonteri","Lyn Me","Lyra Erso","Mace Windu","Malakili","Mama the Hutt","Mars Guo","Mas Amedda","Mawhonic","Max Rebo","Maximilian Veers","Maz Kanata","ME-8D9","Meena Tills","Mercurial Swift","Mina Bonteri","Miraj Scintel","Mister Bones","Mod Terrik","Moden Canady","Mon Mothma","Moradmin Bast","Moralo Eval","Morley","Mother Talzin","Nahdar Vebb","Nahdonnis Praji","Nien Nunb","Niima the Hutt","Nines","Norra Wexley","Nute Gunray","Nuvo Vindi","Obi-Wan Kenobi","Odd Ball","Ody Mandrell","Omi","Onaconda Farr","Oola","OOM-9","Oppo Rancisis","Orn Free Taa","Oro Dassyne","Orrimarko","Osi Sobeck","Owen Lars","Pablo-Jill","Padmé Amidala","Pagetti Rook","Paige Tico","Paploo","Petty Officer Thanisson","Pharl McQuarrie","Plo Koon","Po Nudo","Poe Dameron","Poggle the Lesser","Pong Krell","Pooja Naberrie","PZ-4CO","Quarrie","Quay Tolsite","Queen Apailana","Queen Jamillia","Queen Neeyutnee","Qui-Gon Jinn","Quiggold","Quinlan Vos","R2-D2","R2-KT","R3-S6","R4-P17","R5-D4","RA-7","Rabé","Rako Hardeen","Ransolm Casterfo","Rappertunie","Ratts Tyerell","Raymus Antilles","Ree-Yees","Reeve Panzoro","Rey","Ric Olié","Riff Tamson","Riley","Rinnriyin Di","Rio Durant","Rogue Squadron","Romba","Roos Tarpals","Rose Tico","Rotta the Hutt","Rukh","Rune Haako","Rush Clovis","Ruwee Naberrie","Ryoo Naberrie","Sabé","Sabine Wren","Saché","Saelt-Marae","Saesee Tiin","Salacious B. Crumb","San Hill","Sana Starros","Sarco Plank","Sarkli","Satine Kryze","Savage Opress","Sebulba","Senator Organa","Sergeant Kreel","Seventh Sister","Shaak Ti","Shara Bey","Shmi Skywalker","Shu Mai","Sidon Ithano","Sifo-Dyas","Sim Aloo","Siniir Rath Velus","Sio Bibble","Sixth Brother","Slowen Lo","Sly Moore","Snaggletooth","Snap Wexley","Snoke","Sola Naberrie","Sora Bulq","Strono Tuggs","Sy Snootles","Tallissan Lintra","Tarfful","Tasu Leech","Taun We","TC-14","Tee Watt Kaa","Teebo","Teedo","Teemto Pagalies","Temiri Blagg","Tessek","Tey How","Thane Kyrell","The Bendu","The Smuggler","Thrawn","Tiaan Jerjerrod","Tion Medon","Tobias Beckett","Tulon Voidgazer","Tup","U9-C4","Unkar Plutt","Val Beckett","Vanden Willard","Vice Admiral Amilyn Holdo","Vober Dand","WAC-47","Wag Too","Wald","Walrus Man","Warok","Wat Tambor","Watto","Wedge Antilles","Wes Janson","Wicket W. Warrick","Wilhuff Tarkin","Wollivan","Wuher","Wullf Yularen","Xamuel Lennox","Yaddle","Yarael Poof","Yoda","Zam Wesell","Zev Senesca","Ziro the Hutt","Zuckuss"],gj={search(n,e){setTimeout(()=>{const t=hj.filter(r=>r.toLowerCase().includes(n.toLowerCase()));e(t)},500)}};function pj(n){const[e,t]=x.useState([]);return x.useEffect(()=>{const r=id.get(n);if(n==null){t([]);return}if(r!==null){if(r!==void 0){t(r);return}id.set(n,null),gj.search(n,s=>{id.set(n,s),t(s)})}},[n]),e}function mj(n,e){let t=cj.exec(n);if(t===null&&(t=dj.exec(n)),t!==null){const r=t[1],s=t[3];if(s.length>=e)return{leadOffset:t.index+r.length,matchingString:s,replaceableString:t[2]}}return null}function Aj(n){return mj(n,1)}class yj extends JC{constructor(t,r){super(t);Z(this,"name");Z(this,"picture");this.name=t,this.picture=r}}function bj({index:n,isSelected:e,onClick:t,onMouseEnter:r,option:s}){let o="item";return e&&(o+=" selected"),p.jsxs("li",{tabIndex:-1,className:o,ref:s.setRefElement,role:"option","aria-selected":e,id:"typeahead-item-"+n,onMouseEnter:r,onClick:t,children:[s.picture,p.jsx("span",{className:"text",children:s.name})]},s.key)}function wj(){const[n]=ie(),[e,t]=x.useState(null),r=pj(e),s=Uh("/",{minLength:0}),o=x.useMemo(()=>r.map(a=>new yj(a,p.jsx("i",{className:"icon user"}))).slice(0,fj),[r]),i=x.useCallback((a,c,u)=>{n.update(()=>{const d=fg(a.name);c&&c.replace(d),d.select(),u()})},[n]),l=x.useCallback(a=>s(a,n)!==null?null:Aj(a),[s,n]);return p.jsx(Kh,{onQueryChange:t,onSelectOption:i,triggerFn:l,options:o,menuRenderFn:(a,{selectedIndex:c,selectOptionAndCleanUp:u,setHighlightedIndex:d})=>a.current&&r.length?un.createPortal(p.jsx("div",{className:"typeahead-popover mentions-menu",children:p.jsx("ul",{children:o.map((f,g)=>p.jsx(bj,{index:g,isSelected:c===g,onClick:()=>{d(g),u(f)},onMouseEnter:()=>{d(g)},option:f},f.key))})}),a.current):null})}function Cj(n){const{historyState:e}=ru(),[t,r]=x.useState(!1),{onRef:s,floatingAnchorElem:o,isSmallWidthViewport:i,maxHeight:l,showTextToolbar:a,mode:c}=n,{settings:{isRichText:u,showTreeView:d}}=To();let f={};return l&&(f={maxHeight:l}),p.jsxs(p.Fragment,{children:[p.jsx(Ng,{mode:c}),p.jsx(xg,{setOpenedMenu:r,opened:t,mode:c}),o&&!i&&p.jsx(nu,{anchorElem:o}),p.jsxs("div",{className:`editor-container ${d?"tree-view":""} ${u?"":"plain-text"}`,children:[p.jsx(wj,{}),p.jsx(mg,{}),p.jsx(Lc,{}),p.jsx(cl,{contentEditable:p.jsx("div",{className:"editor-scroller",style:f,children:p.jsx("div",{className:"editor",ref:s,children:p.jsx(gl,{})})}),ErrorBoundary:ol}),p.jsx(hx,{}),p.jsx(Ti,{}),p.jsx(Bc,{}),p.jsx(jc,{}),p.jsx(ul,{}),p.jsx(Eg,{}),p.jsx(_c,{}),p.jsx(Dc,{}),p.jsx(zc,{}),p.jsx(Bv,{}),p.jsx(wg,{}),p.jsx(Dh,{externalHistoryState:e}),o&&!i&&p.jsxs(p.Fragment,{children:[p.jsx(Dg,{floatingAnchorElem:o,isSmallWidthViewport:i}),p.jsx(kg,{isShowButtons:t,anchorElem:o}),p.jsx(Fc,{anchorElem:o,showTextToolbar:a})]}),o&&p.jsx(Rc,{anchorElem:o})]})]})}const vj=n=>{const e=R(),t=Ke(),r=t==null?void 0:t.getParent(),s=r==null?void 0:r.getParent(),o=n._keyToDOMMap.size-1===(e==null?void 0:e.getNodes().length);if(t){if(o)return fe().clear(),e.insertParagraph(),!0;if(s instanceof gr||s instanceof Hr)return TL();if(r instanceof en)return CM()}return!1},jy=()=>{const n=Ke(),e=n==null?void 0:n.getParent();return n&&Ii(e)?NL():!1},Py=()=>{const n=Ke(),e=n==null?void 0:n.getParent();return n&&fs(e)?DL():!1},xj=(n,e,t)=>{var o,i;const r=Ke(),s=r==null?void 0:r.getParent();if(r){if(fs(s))return IL(n);if(sg(s))(i=(o=t.current)==null?void 0:o.onDeleteCallout)==null||i.call(o,e);else if(Li(s))return OL(n)}return!1},Sj=(n,e,t)=>{var o,i;const r=Ke(),s=r==null?void 0:r.getParent();if(r){if(s instanceof Vt)return ML(n);if(s instanceof gr)return _L(n);if(s instanceof Rs)return gL(n);if(s instanceof vn)return qM(n);if(s instanceof fn||Vt)return S1()}return(i=(o=t.current)==null?void 0:o.decoratorEnterAction)==null||i.call(o),!1};function kj(n){const{mode:e,maxHeight:t,disable:r,isErrorWs:s,content:o,isLoading:i,imperativeHandleRef:l,editorRef:a}=n,[c,u]=x.useState(null),[d,f]=x.useState(!1),g=x.useRef(!1),[h]=ie();x.useEffect(()=>{h&&(h.setEditable(!r),a&&(a.current=h),s&&h.update(()=>{if(typeof o=="string"){fe().clear();const w=new DOMParser().parseFromString(o,"text/html"),v=bc(h,w);fe().select(),Xi(v)}else{const b=h.parseEditorState(JSON.stringify(o));h.setEditorState(b)}}))},[s]),x.useEffect(()=>{function b(){h.dispatchCommand(Pa,!0)}return window==null||window.addEventListener("scroll",b),()=>{window==null||window.removeEventListener("scroll",b)}},[h]);const m=b=>{b!==null&&u(b)};x.useEffect(()=>{const b=()=>{const y=Do&&window.matchMedia("(max-width: 600px)").matches;y!==d&&f(y)};return b(),window.addEventListener("resize",b),()=>{window.removeEventListener("resize",b)}},[d]),x.useEffect(()=>ve(h.registerCommand(gs,()=>{const b=R();return Sj(h,b,l)},le),h.registerCommand(jn,()=>vj(h),le),h.registerCommand(zi,b=>R()?(Ie(null),tr(b),!0):!1,le),h.registerCommand(zn,b=>Py(),le),h.registerCommand(qa,b=>Py(),le),h.registerCommand(Rr,b=>jy(),le),h.registerCommand(Qa,b=>jy(),le),h.registerCommand(cr,b=>{const y=R();y.format=0,y.setStyle("");const w=y.insertParagraph();return w&&(w.__format=0),!0},le),h.registerCommand(pr,b=>xj(h,b,l),le)),[h]);const A={onRef:m,floatingAnchorElem:c,isSmallWidthViewport:d,maxHeight:t,showTextToolbar:g,mode:e,isLoading:i,editor:h};return e==="comment"?p.jsx(kI,{...A}):e==="editor"?p.jsx(sj,{...A}):e==="default"?p.jsx(tO,{...A}):p.jsx(Cj,{...A})}const Dx=[{replace:pt,with:n=>new _n(n.getTextContent()),withKlass:_n},{replace:ir,with:n=>new en(!1),withKlass:en}],Ej=[al,fn,xt,Nc,lr,vn,Io,Fa,sl,Os,No,Hn,_n,Qc,Yc,Jc,il,Ps,Mo,fl,dl,ks,gr,Hr,hl,an,Vt,cn,yo,Yr,Rs,Es,en,vs,Oo,...Dx.map(n=>n)],_j=n=>n==="comment"?[fn,xt,sl,Os,No,Hn,_n,en,vs,...Dx.map(e=>e)]:Ej,Tj=({onBlur:n})=>{const[e]=ie();return x.useEffect(()=>{e.registerCommand(tc,()=>{var t;return(t=e._rootElement)==null||t.classList.remove("focused"),n&&n(e._editorState,e),!0},le)},[]),null},Dj=({onFocus:n})=>{const[e]=ie();return x.useEffect(()=>{e.registerCommand(Jr,t=>{var r;return(r=e._rootElement)==null||r.classList.add("focused"),!t.relatedTarget&&n&&n(),!1},le)},[]),null},Nj=x.createContext({cellEditorConfig:null,cellEditorPlugins:null,set:()=>{}});function Ij({children:n}){const[e,t]=x.useState({cellEditorConfig:null,cellEditorPlugins:null});return p.jsx(Nj.Provider,{value:x.useMemo(()=>({cellEditorConfig:e.cellEditorConfig,cellEditorPlugins:e.cellEditorPlugins,set:(r,s)=>{t({cellEditorConfig:r,cellEditorPlugins:s})}}),[e.cellEditorConfig,e.cellEditorPlugins]),children:n})}function Lj(n){const e=new URL(n),t=`${e.origin}${e.pathname}`,r=e.searchParams.get("token");return{baseUrl:t,token:r}}function Mj(n,e,t="http://localhost"){const r=Oj(n,e),{baseUrl:s,token:o}=Lj(t);let i={};return o&&(i={params:{token:o}}),new AC(s,n,r,{connect:!1,...i})}function Oj(n,e){let t=e.get(n);return t===void 0?(t=new Wn,e.set(n,t)):t.load(),t}const Gt=x.createContext({maxImageSize:5,disable:!1,excludeNodes:{},imagePickerSettings:{}}),Rj=({initialContent:n,onChange:e,outputFormat:t,mode:r,maxHeight:s,onBlur:o,onFocus:i,fetchUploadImage:l,fetchDeleteImage:a,maxImageSize:c,contentModalUploadImage:u,maxImageSizeError:d,debounce:f,disable:g,ws:h,excludeNodes:m={},imagePickerSettings:A={},childPages:b,language:y,editorRef:w})=>{const v=r||"default",S=n||"<p></p>";let C=!!(h!=null&&h.url);const{historyState:_}=ru(),k=x.useRef(null),T=x.useRef(null),[D,L]=x.useState("initial"),[N,I]=x.useState(null),P=x.useCallback(Y=>{Y.update(()=>{if(typeof S=="string"){const ee=new DOMParser().parseFromString(S,"text/html"),H=bc(Y,ee);fe().select(),Xi(H)}})},[]),G=x.useMemo(()=>(window.editorAppVersion=`version @layers-app/editor:${j_.version}`,v==="comment"&&document.body.setAttribute("mode","true"),{editorState:null,namespace:"docspace",nodes:_j(v),onError:Y=>{throw Y},theme:PT(v)}),[]);x.useEffect(()=>{y&&Wd.changeLanguage(y)},[y]);const J=fi.useDebouncedCallback((Y,X)=>{if(t==="html")Y.read(()=>{let H=Ed(X,null);const U=fe();if(U){const xe=U==null?void 0:U.getFirstChild();xe&&O(xe)&&xe.isEmpty()&&(H=""),U.getChildrenSize()===0&&(X.update(()=>{U.append(re())}),H="")}let be=fe().getTextContent();e(H,be)});else{const ee=Y.toJSON();e(ee)}},f||500),te=fi.useDebouncedCallback(Y=>{Y.dispatchCommand(Bn,!0)},100),Q=(Y,X)=>{if(o)if(t==="html")X.update(()=>{const ee=Ed(X,null);o(ee)});else{const ee=Y.toJSON();o(ee)}},B=()=>typeof S=="string"?P:JSON.stringify(S),j=x.useCallback((Y,X)=>{const ee=Mj(Y,X,h==null?void 0:h.url);return ee.on("status",H=>{H.status==="connecting"&&L(H.status)}),setTimeout(()=>I(ee),0),ee},[]),F=x.useCallback(()=>{var H;const Y=N.awareness,ee=Array.from(Y.getStates().entries()).map(([U,be])=>({id:String(U),userId:U,name:be.name,color:be.color,awarenessData:be.awarenessData})).filter((U,be,xe)=>be===xe.findIndex(Ne=>Ne.name===U.name));(H=h==null?void 0:h.getActiveUsers)==null||H.call(h,ee)},[N]);x.useEffect(()=>{if(N!=null)return N.awareness.on("update",F),()=>N.awareness.off("update",F)},[N,F]),x.useEffect(()=>{if(N!=null&&N.ws){const Y=N.ws;let X=0;Y?(Y.addEventListener("message",ee=>{if(typeof ee.data!="string"){X===1&&L("connected"),X++;return}const H=JSON.parse(ee.data);H["active-users"]&&console.log("message",H["active-users"]),H.error&&(H.error==="Unauthorized"?(console.error("Connection unauthorized: You are not authorized to access this WebSocket."),N.disconnect()):H.error==="No token provided"?(console.error("No token provided: You must provide a token."),N.disconnect()):(console.error("Unknown error:",H.error),N.disconnect()),L("error"))}),Y.addEventListener("close",ee=>{console.error("WebSocket connection closed:",ee),L("error")})):console.error("WebSocket is not initialized yet.")}},[N==null?void 0:N.ws]),x.useEffect(()=>()=>{N instanceof AC&&(N.destroy(),N.disconnect())},[N]),C||(G.editorState=B());const V=D==="connecting"&&C;x.useEffect(()=>{dv.setState({pages:b||[]})},[b]);const K=x.useMemo(()=>({fetchDeleteImage:a,fetchUploadImage:l,maxImageSize:c||5,contentModalUploadImage:u,maxImageSizeError:d,disable:g||!1,excludeNodes:m,imagePickerSettings:A,imperativeHandleRef:k}),[]);return p.jsx(Gt.Provider,{value:K,children:p.jsx(We.I18nextProvider,{i18n:Wd,children:p.jsxs(yC,{children:[p.jsx("div",{ref:T}),p.jsxs("div",{className:`doc-space-editor-wrapper ${v}`,children:[p.jsx(E.LoadingOverlay,{visible:V,overlayProps:{radius:"sm",blur:2}}),p.jsx(kT,{children:p.jsxs(d_,{initialConfig:G,children:[h&&D!=="error"?p.jsx(a_,{id:h.id,providerFactory:j,username:h.user.name,cursorColor:h.user.color,awarenessData:h.user.awarenessData,shouldBootstrap:!0,cursorsContainerRef:T,initialEditorState:B()}):p.jsx(Dh,{externalHistoryState:_}),p.jsxs(nO,{children:[p.jsx(Ij,{children:p.jsx(xD,{children:p.jsxs("div",{className:"editor-shell",children:[p.jsx(kj,{editorRef:w,maxHeight:s,mode:v,disable:g||!1,isErrorWs:D==="error",content:S,isLoading:V,imperativeHandleRef:k}),l&&p.jsx(mI,{})]})})}),p.jsx(b_,{ignoreSelectionChange:!0,onChange:(Y,X)=>{J(Y,X),te(X)}}),p.jsx(Tj,{onBlur:Q}),p.jsx(Dj,{onFocus:i})]})]})})]})]})})})};exports.$=Jr;exports.$isImageNode=dg;exports.$isInlineImageNode=tI;exports.$isSwaggerNode=hI;exports.C=gs;exports.Context=Gt;exports.Ct=ue;exports.D=Lf;exports.Editor=Rj;exports.EmptyNodeButton=Vc;exports.FloatingTextFormatToolbarPlugin=nu;exports.Ft=Ie;exports.INSERT_IMAGE_COMMAND=Vr;exports.ImagePicker=pg;exports.Ks=le;exports.LexicalContentEditable=gl;exports.LinkPlugin=ul;exports.N=ve;exports.ResizableContainer=lg;exports.Ri=R;exports.StylesProvider=yC;exports.W=hi;exports.a=ol;exports.b=zi;exports.commonjsGlobal=Qd;exports.getAugmentedNamespace=QT;exports.getDefaultExportFromCjs=RC;exports.h=cl;exports.k=pr;exports.l=Hb;exports.l$1=rh;exports.o=Yb;exports.r=Ds;exports.t=Qt;exports.toggleLockScroll=ag;exports.u=ie;exports.u$1=Tc;exports.useModal=Sg;exports.useSettings=To;exports.useSharedHistoryContext=ru;exports.v=bo;exports.w=Zr;exports.wi=st;