PageSourceSearch

https://platform.socbyte.ai/_next/static/chunks/4680-a3cf1314c229a6f1.js

js socbyte.ai collected 2026-10-05 12:40:10 UTC 466,186 bytes, 1 lines download raw bytes

1try{let e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{},t=(new e.Error).stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]="d8fd8613-7afd-408d-9dc0-2a1a7667292c",e._sentryDebugIdIdentifier="sentry-dbid-d8fd8613-7afd-408d-9dc0-2a1a7667292c")}catch(e){}(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[4680],{484:(e,t,n)=>{"use strict";n.d(t,{A:()=>r});let r=(0,n(78340).A)("ListChecks",[["path",{d:"m3 17 2 2 4-4",key:"1jhpwq"}],["path",{d:"m3 7 2 2 4-4",key:"1obspn"}],["path",{d:"M13 6h8",key:"15sg57"}],["path",{d:"M13 12h8",key:"h98zly"}],["path",{d:"M13 18h8",key:"oe0vm4"}]])},971:(e,t,n)=>{"use strict";n.d(t,{A:()=>r});let r=(0,n(78340).A)("Frame",[["line",{x1:"22",x2:"2",y1:"6",y2:"6",key:"15w7dq"}],["line",{x1:"22",x2:"2",y1:"18",y2:"18",key:"1ip48p"}],["line",{x1:"6",x2:"6",y1:"2",y2:"22",key:"a2lnyx"}],["line",{x1:"18",x2:"18",y1:"2",y2:"22",key:"8vb6jd"}]])},1123:()=>{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:/[{}[\];(),.:]/}},1709:(e,t,n)=>{"use strict";n.d(t,{A:()=>r});let r=(0,n(78340).A)("Scissors",[["circle",{cx:"6",cy:"6",r:"3",key:"1lh9wr"}],["path",{d:"M8.12 8.12 12 12",key:"1alkpv"}],["path",{d:"M20 4 8.12 15.88",key:"xgtan2"}],["circle",{cx:"6",cy:"18",r:"3",key:"fqmcym"}],["path",{d:"M14.8 14.8 20 20",key:"ptml3r"}]])},1751:(e,t,n)=>{"use strict";n.d(t,{A:()=>r});let r=(0,n(78340).A)("Heading2",[["path",{d:"M4 12h8",key:"17cfdx"}],["path",{d:"M4 18V6",key:"1rz3zl"}],["path",{d:"M12 18V6",key:"zqpxq5"}],["path",{d:"M21 18h-4c0-4 4-3 4-6 0-1.5-2-2.5-4-1",key:"9jr5yi"}]])},1872:(e,t,n)=>{"use strict";n.d(t,{jI:()=>M});var r=n(12115);function i(){return(i=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}function l(e,t){if(null==e)return{};var n,r,i={},l=Object.keys(e);for(r=0;r<l.length;r++)t.indexOf(n=l[r])>=0||(i[n]=e[n]);return i}function o(e){var t=(0,r.useRef)(e),n=(0,r.useRef)(function(e){t.current&&t.current(e)});return t.current=e,n.current}var s,a=function(e,t,n){return void 0===t&&(t=0),void 0===n&&(n=1),e>n?n:e<t?t:e},u=function(e){return"touches"in e},c=function(e){return e&&e.ownerDocument.defaultView||self},d=function(e,t,n){var r=e.getBoundingClientRect(),i=u(t)?function(e,t){for(var n=0;n<e.length;n++)if(e[n].identifier===t)return e[n];return e[0]}(t.touches,n):t;return{left:a((i.pageX-(r.left+c(e).pageXOffset))/r.width),top:a((i.pageY-(r.top+c(e).pageYOffset))/r.height)}},f=function(e){u(e)||e.preventDefault()},g=r.memo(function(e){var t=e.onMove,n=e.onKey,s=l(e,["onMove","onKey"]),a=(0,r.useRef)(null),g=o(t),h=o(n),p=(0,r.useRef)(null),m=(0,r.useRef)(!1),y=(0,r.useMemo)(function(){var e=function(e){f(e),(u(e)?e.touches.length>0:e.buttons>0)&&a.current?g(d(a.current,e,p.current)):n(!1)},t=function(){return n(!1)};function n(n){var r=m.current,i=c(a.current),l=n?i.addEventListener:i.removeEventListener;l(r?"touchmove":"mousemove",e),l(r?"touchend":"mouseup",t)}return[function(e){var t=e.nativeEvent,r=a.current;if(r&&(f(t),(!m.current||u(t))&&r)){if(u(t)){m.current=!0;var i=t.changedTouches||[];i.length&&(p.current=i[0].identifier)}r.focus(),g(d(r,t,p.current)),n(!0)}},function(e){var t=e.which||e.keyCode;t<37||t>40||(e.preventDefault(),h({left:39===t?.05:37===t?-.05:0,top:40===t?.05:38===t?-.05:0}))},n]},[h,g]),v=y[0],_=y[1],b=y[2];return(0,r.useEffect)(function(){return b},[b]),r.createElement("div",i({},s,{onTouchStart:v,onMouseDown:v,className:"react-colorful__interactive",ref:a,onKeyDown:_,tabIndex:0,role:"slider"}))}),h=function(e){return e.filter(Boolean).join(" ")},p=function(e){var t=e.color,n=e.left,i=e.top,l=h(["react-colorful__pointer",e.className]);
1return r.createElement("div",{className:l,style:{top:100*(void 0===i?.5:i)+"%",left:100*n+"%"}},r.createElement("div",{className:"react-colorful__pointer-fill",style:{backgroundColor:t}}))},m=function(e,t,n){return void 0===t&&(t=0),void 0===n&&(n=Math.pow(10,t)),Math.round(n*e)/n},y=function(e){return"#"===e[0]&&(e=e.substring(1)),e.length<6?{r:parseInt(e[0]+e[0],16),g:parseInt(e[1]+e[1],16),b:parseInt(e[2]+e[2],16),a:4===e.length?m(parseInt(e[3]+e[3],16)/255,2):1}:{r:parseInt(e.substring(0,2),16),g:parseInt(e.substring(2,4),16),b:parseInt(e.substring(4,6),16),a:8===e.length?m(parseInt(e.substring(6,8),16)/255,2):1}},v=function(e){var t=e.s,n=e.v,r=e.a,i=(200-t)*n/100;return{h:m(e.h),s:m(i>0&&i<200?t*n/100/(i<=100?i:200-i)*100:0),l:m(i/2),a:m(r,2)}},_=function(e){var t=v(e);return"hsl("+t.h+", "+t.s+"%, "+t.l+"%)"},b=function(e){var t=e.h,n=e.s,r=e.v,i=e.a;t=t/360*6,n/=100,r/=100;var l=Math.floor(t),o=r*(1-n),s=r*(1-(t-l)*n),a=r*(1-(1-t+l)*n),u=l%6;return{r:m(255*[r,s,o,o,a,r][u]),g:m(255*[a,r,r,s,o,o][u]),b:m(255*[o,o,a,r,r,s][u]),a:m(i,2)}},x=function(e){var t=e.toString(16);return t.length<2?"0"+t:t},S=function(e){var t=e.r,n=e.g,r=e.b,i=e.a,l=i<1?x(m(255*i)):"";return"#"+x(t)+x(n)+x(r)+l},w=function(e){var t=e.r,n=e.g,r=e.b,i=e.a,l=Math.max(t,n,r),o=l-Math.min(t,n,r),s=o?l===t?(n-r)/o:l===n?2+(r-t)/o:4+(t-n)/o:0;return{h:m(60*(s<0?s+6:s)),s:m(l?o/l*100:0),v:m(l/255*100),a:i}},C=r.memo(function(e){var t=e.hue,n=e.onChange,i=h(["react-colorful__hue",e.className]);return r.createElement("div",{className:i},r.createElement(g,{onMove:function(e){n({h:360*e.left})},onKey:function(e){n({h:a(t+360*e.left,0,360)})},"aria-label":"Hue","aria-valuenow":m(t),"aria-valuemax":"360","aria-valuemin":"0"},r.createElement(p,{className:"react-colorful__hue-pointer",left:t/360,color:_({h:t,s:100,v:100,a:1})})))}),k=r.memo(function(e){var t=e.hsva,n=e.onChange,i={backgroundColor:_({h:t.h,s:100,v:100,a:1})};return r.createElement("div",{className:"react-colorful__saturation",style:i},r.createElement(g,{onMove:function(e){n({s:100*e.left,v:100-100*e.top})},onKey:function(e){n({s:a(t.s+100*e.left,0,100),v:a(t.v-100*e.top,0,100)})},"aria-label":"Color","aria-valuetext":"Saturation "+m(t.s)+"%, Brightness "+m(t.v)+"%"},r.createElement(p,{className:"react-colorful__saturation-pointer",top:1-t.v/100,left:t.s/100,color:_(t)})))}),E=function(e,t){if(e===t)return!0;for(var n in e)if(e[n]!==t[n])return!1;return!0},T="undefined"!=typeof window?r.useLayoutEffect:r.useEffect,A=new Map,N=function(e){T(function(){var t=e.current?e.current.ownerDocument:document;if(void 0!==t&&!A.has(t)){var r=t.createElement("style");r.innerHTML='.react-colorful{position:relative;display:flex;flex-direction:column;width:200px;height:200px;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;cursor:default}.react-colorful__saturation{position:relative;flex-grow:1;border-color:transparent;border-bottom:12px solid #000;border-radius:8px 8px 0 0;background-image:linear-gradient(0deg,#000,transparent),linear-gradient(90deg,#fff,hsla(0,0%,100%,0))}.react-colorful__alpha-gradient,.react-colorful__pointer-fill{content:"";position:absolute;left:0;top:0;right:0;bottom:0;pointer-events:none;border-radius:inherit}.react-colorful__alpha-gradient,.react-colorful__saturation{box-shadow:inset 0 0 0 1px rgba(0,0,0,.05)}.react-colorful__alpha,.react-colorful__hue{position:relative;height:24px}.react-colorful__hue{background:linear-gradient(90deg,red 0,#ff0 17%,#0f0 33%,#0ff 50%,#00f 67%,#f0f 83%,red)}.react-colorful__last-control{border-radius:0 0 8px 8px}.react-colorful__interactive{position:absolute;left:0;top:0;right:0;bottom:0;border-radius:inherit;outline:none;touch-action:none}.react-colorful__pointer{position:absolute;z-index:1;box-sizing:border-box;width:28px;height:28px;transform:translate(-50%,-50%);background-color:#fff;border:2px solid #fff;border-radius:50%;box-shadow:0 2px 4px rgba(0,0,0,.2)}.react-colorful__interactive:focus .react-colorful__pointer{transform:translate(-50%,-50%) scale(1.1)}.react-colorful__alpha,.react-colorful__alpha-pointer{background-color:#fff;background-image:url(\'data:image/svg+xml;charset=utf-8,<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill-opacity=".05"><path d="M8 0h8v8H8zM0 8h8v8H0z"/></svg>\')}.react-colorful__saturation-pointer{z-index:3}.react-colorful__hue-pointer{z-index:2}',A.set(t,r);var i=s||n.nc;i&&r.setAttribute("nonce",i),t.head.appendChild(r)}},[])},F=function(e){var t,n,s,a,u,c=e.className,d=e.colorModel,f=e.color,g=void 0===f?d.defaultColor:f,p=e.onChange,m=l(e,["className","colorModel","color","onChange"]),y=(0,r.useRef)(null);N(y);var v=(t=o(p),s=(n=(0,r.useState)(function(){return d.toHsva(g)}))[0],a=n[1],u=(0,r.useRef)({color:g,hsva:s}),(0,r.useEffect)(function(){if(!d.equal(g,u.current.color)){var e=d.toHsva(g);u.current={hsva:e,color:g},a(e)}},[g,d]),(0,r.useEffect)(function(){var e;E(s,u.current.hsva)||d.equal(e=d.fromHsva(s),u.current.color)||(u.current={hsva:s,color:e},t(e))},[s,d,t]),[s,(0,r.useCallback)(function(e){a(function(t){return Object.assign({},t,e)})},[])]),_=v[0],b=v[1],x=h(["react-colorful",c]);return r.createElement("div",i({},m,{ref:y,className:x}),r.createElement(k,{hsva:_,onChange:b}),r.createElement(C,{hue:_.h,onChange:b,className:"react-colorful__last-control"}))},R={defaultColor:"000",toHsva:function(e){return w(y(e))},fromHsva:function(e){return S(b({h:e.h,s:e.s,v:e.v,a:1}))},equal:function(e,t){return e.toLowerCase()===t.toLowerCase()||E(y(e),y(t))}},M=function(e){return r.createElement(F,i({},e,{colorModel:R}))}}
1,4402:(e,t,n)=>{"use strict";n.d(t,{b:()=>c,l:()=>u});var r=n(12115),i=n(70379),l=n(98979),o=n(99354),s=n(95155),a="Toggle",u=r.forwardRef((e,t)=>{let{pressed:n,defaultPressed:r,onPressedChange:u,...c}=e,[d,f]=(0,l.i)({prop:n,onChange:u,defaultProp:null!=r&&r,caller:a});return(0,s.jsx)(o.sG.button,{type:"button","aria-pressed":d,"data-state":d?"on":"off","data-disabled":e.disabled?"":void 0,...c,ref:t,onClick:(0,i.mK)(e.onClick,()=>{e.disabled||f(!d)})})});u.displayName=a;var c=u},6663:(e,t,n)=>{"use strict";n.d(t,{A:()=>r});let r=(0,n(78340).A)("Youtube",[["path",{d:"M2.5 17a24.12 24.12 0 0 1 0-10 2 2 0 0 1 1.4-1.4 49.56 49.56 0 0 1 16.2 0A2 2 0 0 1 21.5 7a24.12 24.12 0 0 1 0 10 2 2 0 0 1-1.4 1.4 49.55 49.55 0 0 1-16.2 0A2 2 0 0 1 2.5 17",key:"1q2vi4"}],["path",{d:"m10 15 5-3-5-3z",key:"1jp15x"}]])},7226:(e,t,n)=>{"use strict";n.d(t,{n:()=>c});var r=n(36997),i=n(53310),l=n(12115),o=n(95155);let s="undefined"!=typeof window&&void 0!==window.document&&void 0!==window.document.createElement,a=s?l.useLayoutEffect:l.useEffect,u={tag:i.T40};function c({initialConfig:e,children:t}){let n=(0,l.useMemo)(()=>{let{theme:t,namespace:n,nodes:l,onError:o,editorState:a,html:c}=e,d=(0,r.Mx)(null,t),f=(0,i.ieJ)({editable:e.editable,html:c,namespace:n,nodes:l,onError:e=>o(e,f),theme:t});return function(e,t){if(null!==t){if(void 0===t)e.update(()=>{let t=(0,i.NiT)();if(t.isEmpty()){let n=(0,i.lJ7)();t.append(n);let r=s?document.activeElement:null;(null!==(0,i.vJq)()||null!==r&&r===e.getRootElement())&&n.select()}},u);else if(null!==t)switch(typeof t){case"string":{let n=e.parseEditorState(t);e.setEditorState(n,u);break}case"object":e.setEditorState(t,u);break;case"function":e.update(()=>{(0,i.NiT)().isEmpty()&&t(e)},u)}}}(f,a),[f,d]},[]);return a(()=>{let t=e.editable,[r]=n;r.setEditable(void 0===t||t)},[]),(0,o.jsx)(r.Gu.Provider,{value:n,children:t})}},7915:(e,t,n)=>{"use strict";n.d(t,{A:()=>r});let r=(0,n(78340).A)("Eye",[["path",{d:"M2.062 12.348a1 1 0 0 1 0-.696 10.75 10.75 0 0 1 19.876 0 1 1 0 0 1 0 .696 10.75 10.75 0 0 1-19.876 0",key:"1nclc0"}],["circle",{cx:"12",cy:"12",r:"3",key:"1v7zrd"}]])},8067:(e,t,n)=>{"use strict";n.d(t,{Mh:()=>t2,ow:()=>tX,uL:()=>tQ});var r,i=n(12115),l=n(95155),o=n(47650),s=n(36997),a=n(53310);function u(){return"undefined"!=typeof window}function c(e){return g(e)?(e.nodeName||"").toLowerCase():"#document"}function d(e){var t;return(null==e||null==(t=e.ownerDocument)?void 0:t.defaultView)||window}function f(e){var t;return null==(t=(g(e)?e.ownerDocument:e.document)||window.document)?void 0:t.documentElement}function g(e){return!!u()&&(e instanceof Node||e instanceof d(e).Node)}function h(e){return!!u()&&(e instanceof Element||e instanceof d(e).Element)}function p(e){return!!u()&&(e instanceof HTMLElement||e instanceof d(e).HTMLElement)}function m(e){return!(!u()||"undefined"==typeof ShadowRoot)&&(e instanceof ShadowRoot||e instanceof d(e).ShadowRoot)}function y(e){let{overflow:t,overflowX:n,overflowY:r,display:i}=S(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+n)&&!["inline","contents"].includes(i)}function v(e){return[":popover-open",":modal"].some(t=>{try{return e.matches(t)}catch(e){return!1}})}function _(e){let t=b(),n=h(e)?S(e):e;return["transform","translate","scale","rotate","perspective"].some(e=>!!n[e]&&"none"!==n[e])||!!n.containerType&&"normal"!==n.containerType||!t&&!!n.backdropFilter&&"none"!==n.backdropFilter||!t&&!!n.filter&&"none"!==n.filter||["transform","translate","scale","rotate","perspective","filter"].some(e=>(n.willChange||"").includes(e))||["paint","layout","strict","content"].some(e=>(n.contain||"").includes(e))}function b(){return!("undefined"==typeof CSS||!CSS.supports)&&CSS.supports("-webkit-backdrop-filter","none")}function x(e){return["html","body","#document"].includes(c(e))}function S(e){return d(e).getComputedStyle(e)}function w(e){return h(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function C(e){if("html"===c(e))return e;let t=e.assignedSlot||e.parentNode||m(e)&&e.host||f(e);return m(t)?t.host:t}function k(e,t,n){var r;void 0===t&&(t=[]),void 0===n&&(n=!0);let i=function e(t){let n=C(t);return x(n)?t.ownerDocument?t.ownerDocument.body:t.body:p(n)&&y(n)?n:e(n)}(e),l=i===(null==(r=e.ownerDocument)?void 0:r.body),o=d(i);if(l){let e=E(o);
1return t.concat(o,o.visualViewport||[],y(i)?i:[],e&&n?k(e):[])}return t.concat(i,k(i,[],n))}function E(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}let T=Math.min,A=Math.max,N=Math.round,F=Math.floor,R=e=>({x:e,y:e}),M={left:"right",right:"left",bottom:"top",top:"bottom"},O={start:"end",end:"start"};function I(e,t){return"function"==typeof e?e(t):e}function P(e){return e.split("-")[0]}function L(e){return e.split("-")[1]}function D(e){return"x"===e?"y":"x"}function B(e){return"y"===e?"height":"width"}function K(e){return["top","bottom"].includes(P(e))?"y":"x"}function z(e){return e.replace(/start|end/g,e=>O[e])}function $(e){return e.replace(/left|right|bottom|top/g,e=>M[e])}function W(e){let{x:t,y:n,width:r,height:i}=e;return{width:r,height:i,top:n,left:t,right:t+r,bottom:n+i,x:t,y:n}}var j='input:not([inert]),select:not([inert]),textarea:not([inert]),a[href]:not([inert]),button:not([inert]),[tabindex]:not(slot):not([inert]),audio[controls]:not([inert]),video[controls]:not([inert]),[contenteditable]:not([contenteditable="false"]):not([inert]),details>summary:first-of-type:not([inert]),details:not([inert])',J="undefined"==typeof Element,H=J?function(){}:Element.prototype.matches||Element.prototype.msMatchesSelector||Element.prototype.webkitMatchesSelector,U=!J&&Element.prototype.getRootNode?function(e){var t;return null==e||null==(t=e.getRootNode)?void 0:t.call(e)}:function(e){return null==e?void 0:e.ownerDocument},q=function e(t,n){void 0===n&&(n=!0);var r,i=null==t||null==(r=t.getAttribute)?void 0:r.call(t,"inert");return""===i||"true"===i||n&&t&&e(t.parentNode)},Z=function(e,t,n){if(q(e))return[];var r=Array.prototype.slice.apply(e.querySelectorAll(j));return t&&H.call(e,j)&&r.unshift(e),r=r.filter(n)},V=function e(t,n,r){for(var i=[],l=Array.from(t);l.length;){var o=l.shift();if(!q(o,!1))if("SLOT"===o.tagName){var s=o.assignedElements(),a=e(s.length?s:o.children,!0,r);r.flatten?i.push.apply(i,a):i.push({scopeParent:o,candidates:a})}else{H.call(o,j)&&r.filter(o)&&(n||!t.includes(o))&&i.push(o);var u=o.shadowRoot||"function"==typeof r.getShadowRoot&&r.getShadowRoot(o),c=!q(u,!1)&&(!r.shadowRootFilter||r.shadowRootFilter(o));if(u&&c){var d=e(!0===u?o.children:u.children,!0,r);r.flatten?i.push.apply(i,d):i.push({scopeParent:o,candidates:d})}else l.unshift.apply(l,o.children)}}return i},G=function(e){return!isNaN(parseInt(e.getAttribute("tabindex"),10))},Y=function(e){var t,n;if(!e)throw Error("No node provided");return e.tabIndex<0&&(/^(AUDIO|VIDEO|DETAILS)$/.test(e.tagName)||""===(n=null==e||null==(t=e.getAttribute)?void 0:t.call(e,"contenteditable"))||"true"===n)&&!G(e)?0:e.tabIndex},X=function(e,t){return e.tabIndex===t.tabIndex?e.documentOrder-t.documentOrder:e.tabIndex-t.tabIndex},Q=function(e){return"INPUT"===e.tagName},ee=function(e){return Q(e)&&"radio"===e.type&&!function(e){if(!e.name)return!0;var t,n=e.form||U(e),r=function(e){return n.querySelectorAll('input[type="radio"][name="'+e+'"]')};if("undefined"!=typeof window&&void 0!==window.CSS&&"function"==typeof window.CSS.escape)t=r(window.CSS.escape(e.name));else try{t=r(e.name)}catch(e){return console.error("Looks like you have a radio button with a name attribute containing invalid CSS selector characters and need the CSS.escape polyfill: %s",e.message),!1}var i=function(e,t){for(var n=0;n<e.length;n++)if(e[n].checked&&e[n].form===t)return e[n]}(t,e.form);return!i||i===e}(e)},et=function(e){var t=e.getBoundingClientRect(),n=t.width,r=t.height;return 0===n&&0===r},en=function(e,t){var n=t.displayCheck,r=t.getShadowRoot;if("hidden"===getComputedStyle(e).visibility)return!0;var i=H.call(e,"details>summary:first-of-type")?e.parentElement:e;if(H.call(i,"details:not([open]) *"))return!0;if(n&&"full"!==n&&"legacy-full"!==n){if("non-zero-area"===n)return et(e)}else{if("function"==typeof r){for(var l=e;e;){var o=e.parentElement,s=U(e);if(o&&!o.shadowRoot&&!0===r(o))return et(e);e=e.assignedSlot?e.assignedSlot:o||s===e.ownerDocument?o:s.host}e=l}if(function(e){var t,n,r,i,l,o,s,a=e&&U(e),u=null==(i=a)?void 0:i.host,c=!1;if(a&&a!==e)for(c=!!(null!=(l=u)&&null!=(o=l.ownerDocument)&&o.contains(u)||null!=e&&null!=(s=e.ownerDocument)&&s.contains(e));!c&&u;)c=!(null==(n=u=null==(t=a=U(u))?void 0:t.host)||null==(r=n.ownerDocument)||!r.contains(u));return c}(e))return!e.getClientRects().length;if("legacy-full"!==n)return!0}return!1},er=function(e,t){return!(t.disabled||q(t)||Q(t)&&"hidden"===t.type||en(t,e)||"DETAILS"===t.tagName&&Array.prototype.slice.apply(t.children).some(function(e){return"SUMMARY"===e.tagName}
1)||function(e){if(/^(INPUT|BUTTON|SELECT|TEXTAREA)$/.test(e.tagName))for(var t=e.parentElement;t;){if("FIELDSET"===t.tagName&&t.disabled){for(var n=0;n<t.children.length;n++){var r=t.children.item(n);if("LEGEND"===r.tagName)return!!H.call(t,"fieldset[disabled] *")||!r.contains(e)}return!0}t=t.parentElement}return!1}(t))},ei=function(e,t){return!(ee(t)||0>Y(t)||!er(e,t))},el=function(e){var t=parseInt(e.getAttribute("tabindex"),10);return!!(isNaN(t)||t>=0)},eo=function e(t){var n=[],r=[];return t.forEach(function(t,i){var l,o=!!t.scopeParent,s=o?t.scopeParent:t,a=(l=Y(s))<0&&o&&!G(s)?0:l,u=o?e(t.candidates):s;0===a?o?n.push.apply(n,u):n.push(s):r.push({documentOrder:i,tabIndex:a,item:t,isScope:o,content:u})}),r.sort(X).reduce(function(e,t){return t.isScope?e.push.apply(e,t.content):e.push(t.content),e},[]).concat(n)},es=function(e,t){return eo((t=t||{}).getShadowRoot?V([e],t.includeContainer,{filter:ei.bind(null,t),flatten:!1,getShadowRoot:t.getShadowRoot,shadowRootFilter:el}):Z(e,t.includeContainer,ei.bind(null,t)))},ea=function(e,t){if(t=t||{},!e)throw Error("No node provided");return!1!==H.call(e,j)&&ei(t,e)};function eu(){let e=navigator.userAgentData;return null!=e&&e.platform?e.platform:navigator.platform}function ec(){let e=navigator.userAgentData;return e&&Array.isArray(e.brands)?e.brands.map(e=>{let{brand:t,version:n}=e;return t+"/"+n}).join(" "):navigator.userAgent}function ed(){let e=/android/i;return e.test(eu())||e.test(ec())}let ef="data-floating-ui-focusable",eg="ArrowLeft",eh="ArrowRight";function ep(e){let t=e.activeElement;for(;null!=(null==(n=t)||null==(n=n.shadowRoot)?void 0:n.activeElement);){var n;t=t.shadowRoot.activeElement}return t}function em(e,t){if(!e||!t)return!1;let n=null==t.getRootNode?void 0:t.getRootNode();if(e.contains(t))return!0;if(n&&m(n)){let n=t;for(;n;){if(e===n)return!0;n=n.parentNode||n.host}}return!1}function ey(e){return"composedPath"in e?e.composedPath()[0]:e.target}function ev(e,t){return null!=t&&("composedPath"in e?e.composedPath().includes(t):null!=e.target&&t.contains(e.target))}function e_(e){return(null==e?void 0:e.ownerDocument)||document}function eb(e){var t;return!!e&&"combobox"===e.getAttribute("role")&&p(t=e)&&t.matches("input:not([type='hidden']):not([disabled]),[contenteditable]:not([contenteditable='false']),textarea:not([disabled])")}function ex(e){return e?e.hasAttribute(ef)?e:e.querySelector("["+ef+"]")||e:null}function eS(e,t,n){void 0===n&&(n=!0);let r=e.filter(e=>{var n;return e.parentId===t&&(null==(n=e.context)?void 0:n.open)}),i=r;for(;i.length;)i=n?e.filter(e=>{var t;return null==(t=i)?void 0:t.some(t=>{var n;return e.parentId===t.id&&(null==(n=e.context)?void 0:n.open)})}):e,r=r.concat(i);return r}function ew(e,t){var n;let r=[],i=null==(n=e.find(e=>e.id===t))?void 0:n.parentId;for(;i;){let t=e.find(e=>e.id===i);i=null==t?void 0:t.parentId,t&&(r=r.concat(t))}return r}function eC(e){e.preventDefault(),e.stopPropagation()}function ek(e){return!(0!==e.mozInputSource||!e.isTrusted)||(ed()&&e.pointerType?"click"===e.type&&1===e.buttons:0===e.detail&&!e.pointerType)}function eE(e){return!ec().includes("jsdom/")&&(!ed()&&0===e.width&&0===e.height||ed()&&1===e.width&&1===e.height&&0===e.pressure&&0===e.detail&&"mouse"===e.pointerType||e.width<1&&e.height<1&&0===e.pressure&&0===e.detail&&"touch"===e.pointerType)}var eT="undefined"!=typeof document?i.useLayoutEffect:i.useEffect;function eA(e){let t=i.useRef(e);return eT(()=>{t.current=e}),t}let eN={...r||(r=n.t(i,2))}.useInsertionEffect||(e=>e());function eF(e){let t=i.useRef(()=>{});return eN(()=>{t.current=e}),i.useCallback(function(){for(var e=arguments.length,n=Array(e),r=0;r<e;r++)n[r]=arguments[r];return null==t.current?void 0:t.current(...n)},[])}function eR(e,t,n){return Math.floor(e/t)!==n}function eM(e,t){return t<0||t>=e.current.length}function eO(e,t){return eP(e,{disabledIndices:t})}function eI(e,t){return eP(e,{decrement:!0,startingIndex:e.current.length,disabledIndices:t})}function eP(e,t){let{startingIndex:n=-1,decrement:r=!1,disabledIndices:i,amount:l=1}=void 0===t?{}:t,o=n;do o+=r?-l:l;while(o>=0&&o<=e.current.length-1&&eL(e,o,i));return o}
1function eL(e,t,n){if(n)return n.includes(t);let r=e.current[t];return null==r||r.hasAttribute("disabled")||"true"===r.getAttribute("aria-disabled")}let eD=()=>({getShadowRoot:!0,displayCheck:"function"==typeof ResizeObserver&&ResizeObserver.toString().includes("[native code]")?"full":"none"});function eB(e,t){let n=es(e,eD()),r=n.length;if(0===r)return;let i=ep(e_(e)),l=n.indexOf(i);return n[-1===l?1===t?0:r-1:l+t]}function eK(e){return eB(e_(e).body,1)||e}function ez(e){return eB(e_(e).body,-1)||e}function e$(e,t){let n=t||e.currentTarget,r=e.relatedTarget;return!r||!em(n,r)}function eW(e){e.querySelectorAll("[data-tabindex]").forEach(e=>{let t=e.dataset.tabindex;delete e.dataset.tabindex,t?e.setAttribute("tabindex",t):e.removeAttribute("tabindex")})}function ej(e,t,n){let r,{reference:i,floating:l}=e,o=K(t),s=D(K(t)),a=B(s),u=P(t),c="y"===o,d=i.x+i.width/2-l.width/2,f=i.y+i.height/2-l.height/2,g=i[a]/2-l[a]/2;switch(u){case"top":r={x:d,y:i.y-l.height};break;case"bottom":r={x:d,y:i.y+i.height};break;case"right":r={x:i.x+i.width,y:f};break;case"left":r={x:i.x-l.width,y:f};break;default:r={x:i.x,y:i.y}}switch(L(t)){case"start":r[s]-=g*(n&&c?-1:1);break;case"end":r[s]+=g*(n&&c?-1:1)}return r}async function eJ(e,t){var n;void 0===t&&(t={});let{x:r,y:i,platform:l,rects:o,elements:s,strategy:a}=e,{boundary:u="clippingAncestors",rootBoundary:c="viewport",elementContext:d="floating",altBoundary:f=!1,padding:g=0}=I(t,e),h="number"!=typeof g?{top:0,right:0,bottom:0,left:0,...g}:{top:g,right:g,bottom:g,left:g},p=s[f?"floating"===d?"reference":"floating":d],m=W(await l.getClippingRect({element:null==(n=await (null==l.isElement?void 0:l.isElement(p)))||n?p:p.contextElement||await (null==l.getDocumentElement?void 0:l.getDocumentElement(s.floating)),boundary:u,rootBoundary:c,strategy:a})),y="floating"===d?{x:r,y:i,width:o.floating.width,height:o.floating.height}:o.reference,v=await (null==l.getOffsetParent?void 0:l.getOffsetParent(s.floating)),_=await (null==l.isElement?void 0:l.isElement(v))&&await (null==l.getScale?void 0:l.getScale(v))||{x:1,y:1},b=W(l.convertOffsetParentRelativeRectToViewportRelativeRect?await l.convertOffsetParentRelativeRectToViewportRelativeRect({elements:s,rect:y,offsetParent:v,strategy:a}):y);return{top:(m.top-b.top+h.top)/_.y,bottom:(b.bottom-m.bottom+h.bottom)/_.y,left:(m.left-b.left+h.left)/_.x,right:(b.right-m.right+h.right)/_.x}}function eH(e){let t=S(e),n=parseFloat(t.width)||0,r=parseFloat(t.height)||0,i=p(e),l=i?e.offsetWidth:n,o=i?e.offsetHeight:r,s=N(n)!==l||N(r)!==o;return s&&(n=l,r=o),{width:n,height:r,$:s}}function eU(e){return h(e)?e:e.contextElement}function eq(e){let t=eU(e);if(!p(t))return R(1);let n=t.getBoundingClientRect(),{width:r,height:i,$:l}=eH(t),o=(l?N(n.width):n.width)/r,s=(l?N(n.height):n.height)/i;return o&&Number.isFinite(o)||(o=1),s&&Number.isFinite(s)||(s=1),{x:o,y:s}}let eZ=R(0);function eV(e){let t=d(e);return b()&&t.visualViewport?{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}:eZ}function eG(e,t,n,r){var i;void 0===t&&(t=!1),void 0===n&&(n=!1);let l=e.getBoundingClientRect(),o=eU(e),s=R(1);t&&(r?h(r)&&(s=eq(r)):s=eq(e));let a=(void 0===(i=n)&&(i=!1),!(!r||i&&r!==d(o))&&i)?eV(o):R(0),u=(l.left+a.x)/s.x,c=(l.top+a.y)/s.y,f=l.width/s.x,g=l.height/s.y;if(o){let e=d(o),t=r&&h(r)?d(r):r,n=e,i=E(n);for(;i&&r&&t!==n;){let e=eq(i),t=i.getBoundingClientRect(),r=S(i),l=t.left+(i.clientLeft+parseFloat(r.paddingLeft))*e.x,o=t.top+(i.clientTop+parseFloat(r.paddingTop))*e.y;u*=e.x,c*=e.y,f*=e.x,g*=e.y,u+=l,c+=o,i=E(n=d(i))}}return W({width:f,height:g,x:u,y:c})}function eY(e,t){let n=w(e).scrollLeft;return t?t.left+n:eG(f(e)).left+n}function eX(e,t,n){void 0===n&&(n=!1);let r=e.getBoundingClientRect();return{x:r.left+t.scrollLeft-(n?0:eY(e,r)),y:r.top+t.scrollTop}}function eQ(e,t,n){let r;
1if("viewport"===t)r=function(e,t){let n=d(e),r=f(e),i=n.visualViewport,l=r.clientWidth,o=r.clientHeight,s=0,a=0;if(i){l=i.width,o=i.height;let e=b();(!e||e&&"fixed"===t)&&(s=i.offsetLeft,a=i.offsetTop)}return{width:l,height:o,x:s,y:a}}(e,n);else if("document"===t)r=function(e){let t=f(e),n=w(e),r=e.ownerDocument.body,i=A(t.scrollWidth,t.clientWidth,r.scrollWidth,r.clientWidth),l=A(t.scrollHeight,t.clientHeight,r.scrollHeight,r.clientHeight),o=-n.scrollLeft+eY(e),s=-n.scrollTop;return"rtl"===S(r).direction&&(o+=A(t.clientWidth,r.clientWidth)-i),{width:i,height:l,x:o,y:s}}(f(e));else if(h(t))r=function(e,t){let n=eG(e,!0,"fixed"===t),r=n.top+e.clientTop,i=n.left+e.clientLeft,l=p(e)?eq(e):R(1);return{width:e.clientWidth*l.x,height:e.clientHeight*l.y,x:i*l.x,y:r*l.y}}(t,n);else{let n=eV(e);r={x:t.x-n.x,y:t.y-n.y,width:t.width,height:t.height}}return W(r)}function e0(e){return"static"===S(e).position}function e1(e,t){if(!p(e)||"fixed"===S(e).position)return null;if(t)return t(e);let n=e.offsetParent;return f(e)===n&&(n=n.ownerDocument.body),n}function e2(e,t){let n=d(e);if(v(e))return n;if(!p(e)){let t=C(e);for(;t&&!x(t);){if(h(t)&&!e0(t))return t;t=C(t)}return n}let r=e1(e,t);for(;r&&["table","td","th"].includes(c(r))&&e0(r);)r=e1(r,t);return r&&x(r)&&e0(r)&&!_(r)?n:r||function(e){let t=C(e);for(;p(t)&&!x(t);){if(_(t))return t;if(v(t))break;t=C(t)}return null}(e)||n}let e3={convertOffsetParentRelativeRectToViewportRelativeRect:function(e){let{elements:t,rect:n,offsetParent:r,strategy:i}=e,l="fixed"===i,o=f(r),s=!!t&&v(t.floating);if(r===o||s&&l)return n;let a={scrollLeft:0,scrollTop:0},u=R(1),d=R(0),g=p(r);if((g||!g&&!l)&&(("body"!==c(r)||y(o))&&(a=w(r)),p(r))){let e=eG(r);u=eq(r),d.x=e.x+r.clientLeft,d.y=e.y+r.clientTop}let h=!o||g||l?R(0):eX(o,a,!0);return{width:n.width*u.x,height:n.height*u.y,x:n.x*u.x-a.scrollLeft*u.x+d.x+h.x,y:n.y*u.y-a.scrollTop*u.y+d.y+h.y}},getDocumentElement:f,getClippingRect:function(e){let{element:t,boundary:n,rootBoundary:r,strategy:i}=e,l=[..."clippingAncestors"===n?v(t)?[]:function(e,t){let n=t.get(e);if(n)return n;let r=k(e,[],!1).filter(e=>h(e)&&"body"!==c(e)),i=null,l="fixed"===S(e).position,o=l?C(e):e;for(;h(o)&&!x(o);){let t=S(o),n=_(o);n||"fixed"!==t.position||(i=null),(l?!n&&!i:!n&&"static"===t.position&&i&&["absolute","fixed"].includes(i.position)||y(o)&&!n&&function e(t,n){let r=C(t);return!(r===n||!h(r)||x(r))&&("fixed"===S(r).position||e(r,n))}(e,o))?r=r.filter(e=>e!==o):i=t,o=C(o)}return t.set(e,r),r}(t,this._c):[].concat(n),r],o=l[0],s=l.reduce((e,n)=>{let r=eQ(t,n,i);return e.top=A(r.top,e.top),e.right=T(r.right,e.right),e.bottom=T(r.bottom,e.bottom),e.left=A(r.left,e.left),e},eQ(t,o,i));return{width:s.right-s.left,height:s.bottom-s.top,x:s.left,y:s.top}},getOffsetParent:e2,getElementRects:async function(e){let t=this.getOffsetParent||e2,n=this.getDimensions,r=await n(e.floating);return{reference:function(e,t,n){let r=p(t),i=f(t),l="fixed"===n,o=eG(e,!0,l,t),s={scrollLeft:0,scrollTop:0},a=R(0);if(r||!r&&!l)if(("body"!==c(t)||y(i))&&(s=w(t)),r){let e=eG(t,!0,l,t);a.x=e.x+t.clientLeft,a.y=e.y+t.clientTop}else i&&(a.x=eY(i));let u=!i||r||l?R(0):eX(i,s);return{x:o.left+s.scrollLeft-a.x-u.x,y:o.top+s.scrollTop-a.y-u.y,width:o.width,height:o.height}}(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:r.width,height:r.height}}},getClientRects:function(e){return Array.from(e.getClientRects())},getDimensions:function(e){let{width:t,height:n}=eH(e);return{width:t,height:n}},getScale:eq,isElement:h,isRTL:function(e){return"rtl"===S(e).direction}};function e4(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}function e5(e,t,n,r){void 0===r&&(r={});let{ancestorScroll:i=!0,ancestorResize:l=!0,elementResize:o="function"==typeof ResizeObserver,layoutShift:s="function"==typeof IntersectionObserver,animationFrame:a=!1}=r,u=eU(e),c=i||l?[...u?k(u):[],...k(t)]:[];c.forEach(e=>{i&&e.addEventListener("scroll",n,{passive:!0}),l&&e.addEventListener("resize",n)});let d=u&&s?function(e,t){let n,r=null,i=f(e);function l(){var e;clearTimeout(n),null==(e=r)||e.disconnect(),r=null}return function o(s,a){void 0===s&&(s=!1),void 0===a&&(a=1),l();let u=e.getBoundingClientRect(),{left:c,top:d,width:f,height:g}=u;if(s||t(),!f||!g)return;let h={rootMargin:-F(d)+"px "+-F(i.clientWidth-(c+f))+"px "+-F(i.clientHeight-(d+g))+"px "+-F(c)+"px",threshold:A(0,T(1,a))||1},p=!0;function m(t){let r=t[0].intersectionRatio;if(r!==a){if(!p)return o();r?o(!1,r):n=setTimeout(()=>{o(!1,1e-7)},1e3)}1!==r||e4(u,e.getBoundingClientRect())||o(),p=!1}try{r=new IntersectionObserver(m,{...h,root:i.ownerDocument})}catch(e){r=new IntersectionObserver(m,h)}r.observe(e)}(!0),l}(u,n):null,g,h=-1,p=null;o&&(p=new ResizeObserver(e=>{let[r]=e;r&&r.target===u&&p&&(p.unobserve(t),cancelAnimationFrame(h),h=requestAnimationFrame(()=>{var e;null==(e=p)||e.observe(t)})),n()}),u&&!a&&p.observe(u),p.observe(t));let m=a?eG(e):null;return a&&function t(){let r=eG(e);m&&!e4(m,r)&&n(),m=r,g=requestAnimationFrame(t)}(),n(),()=>{var e;
1c.forEach(e=>{i&&e.removeEventListener("scroll",n),l&&e.removeEventListener("resize",n)}),null==d||d(),null==(e=p)||e.disconnect(),p=null,a&&cancelAnimationFrame(g)}}var e7="undefined"!=typeof document?i.useLayoutEffect:i.useEffect;function e6(e,t){let n,r,i;if(e===t)return!0;if(typeof e!=typeof t)return!1;if("function"==typeof e&&e.toString()===t.toString())return!0;if(e&&t&&"object"==typeof e){if(Array.isArray(e)){if((n=e.length)!==t.length)return!1;for(r=n;0!=r--;)if(!e6(e[r],t[r]))return!1;return!0}if((n=(i=Object.keys(e)).length)!==Object.keys(t).length)return!1;for(r=n;0!=r--;)if(!({}).hasOwnProperty.call(t,i[r]))return!1;for(r=n;0!=r--;){let n=i[r];if(("_owner"!==n||!e.$$typeof)&&!e6(e[n],t[n]))return!1}return!0}return e!=e&&t!=t}function e8(e){return"undefined"==typeof window?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function e9(e,t){let n=e8(e);return Math.round(t*n)/n}function te(e){let t=i.useRef(e);return e7(()=>{t.current=e}),t}let tt="active",tn="selected",tr="ArrowLeft",ti="ArrowRight",tl="ArrowUp",to="ArrowDown",ts={...r||(r=n.t(i,2))},ta=!1,tu=0,tc=()=>"floating-ui-"+Math.random().toString(36).slice(2,6)+tu++,td=ts.useId||function(){let[e,t]=i.useState(()=>ta?tc():void 0);return eT(()=>{null==e&&t(tc())},[]),i.useEffect(()=>{ta=!0},[]),e},tf=i.createContext(null),tg=i.createContext(null),th=()=>{var e;return(null==(e=i.useContext(tf))?void 0:e.id)||null},tp=()=>i.useContext(tg);function tm(e){return"data-floating-ui-"+e}function ty(e){-1!==e.current&&(clearTimeout(e.current),e.current=-1)}let tv=0;function t_(e,t){void 0===t&&(t={});let{preventScroll:n=!1,cancelPrevious:r=!0,sync:i=!1}=t;r&&cancelAnimationFrame(tv);let l=()=>null==e?void 0:e.focus({preventScroll:n});i?l():tv=requestAnimationFrame(l)}let tb=new WeakMap,tx=new WeakSet,tS={},tw=0,tC=e=>e&&(e.host||tC(e.parentNode));function tk(e,t,n){var r;void 0===t&&(t=!1),void 0===n&&(n=!1);let i=((null==(r=e[0])?void 0:r.ownerDocument)||document).body;return function(e,t,n,r){let i="data-floating-ui-inert",l=r?"inert":n?"aria-hidden":null,o=e.map(e=>{if(t.contains(e))return e;let n=tC(e);return t.contains(n)?n:null}).filter(e=>null!=e),s=new Set,a=new Set(o),u=[];tS[i]||(tS[i]=new WeakMap);let d=tS[i];return o.forEach(function e(t){t&&!s.has(t)&&(s.add(t),t.parentNode&&e(t.parentNode))}),function e(t){t&&!a.has(t)&&[].forEach.call(t.children,t=>{if("script"!==c(t))if(s.has(t))e(t);else{let e=l?t.getAttribute(l):null,n=null!==e&&"false"!==e,r=tb.get(t)||0,o=l?r+1:r,s=(d.get(t)||0)+1;tb.set(t,o),d.set(t,s),u.push(t),1===o&&n&&tx.add(t),1===s&&t.setAttribute(i,""),!n&&l&&t.setAttribute(l,"inert"===l?"":"true")}})}(t),s.clear(),tw++,()=>{u.forEach(e=>{let t=tb.get(e)||0,n=l?t-1:t,r=(d.get(e)||0)-1;tb.set(e,n),d.set(e,r),n||(!tx.has(e)&&l&&e.removeAttribute(l),tx.delete(e)),r||e.removeAttribute(i)}),--tw||(tb=new WeakMap,tb=new WeakMap,tx=new WeakSet,tS={})}}(e.concat(Array.from(i.querySelectorAll("[aria-live]"))),i,t,n)}let tE={border:0,clip:"rect(0 0 0 0)",height:"1px",margin:"-1px",overflow:"hidden",padding:0,position:"fixed",whiteSpace:"nowrap",width:"1px",top:0,left:0},tT=i.forwardRef(function(e,t){let[n,r]=i.useState();eT(()=>{/apple/i.test(navigator.vendor)&&r("button")},[]);let o={ref:t,tabIndex:0,role:n,"aria-hidden":!n||void 0,[tm("focus-guard")]:"",style:tE};return(0,l.jsx)("span",{...e,...o})}),tA=i.createContext(null),tN=tm("portal");function tF(e){let{children:t,id:n,root:r,preserveTabOrder:s=!0}=e,a=function(e){void 0===e&&(e={});let{id:t,root:n}=e,r=td(),l=tR(),[o,s]=i.useState(null),a=i.useRef(null);return eT(()=>()=>{null==o||o.remove(),queueMicrotask(()=>{a.current=null})},[o]),eT(()=>{if(!r||a.current)return;let e=t?document.getElementById(t):null;if(!e)return;let n=document.createElement("div");n.id=r,n.setAttribute(tN,""),e.appendChild(n),a.current=n,s(n)},[t,r]),eT(()=>{if(null===n||!r||a.current)return;let e=n||(null==l?void 0:l.portalNode);e&&!h(e)&&(e=e.current),e=e||document.body;let i=null;t&&((i=document.createElement("div")).id=t,e.appendChild(i));let o=document.createElement("div");o.id=r,o.setAttribute(tN,""),(e=i||e).appendChild(o),a.current=o,s(o)},[t,n,r,l]),o}({id:n,root:r}),[u,c]=i.useState(null),d=i.useRef(null),f=i.useRef(null),g=i.useRef(null),p=i.useRef(null),m=null==u?void 0:u.modal,y=null==u?void 0:u.open,v=!!u&&!u.modal&&u.open&&s&&!(!r&&!a);return i.useEffect(()=>{if(a&&s&&!m)return a.addEventListener("focusin",e,!0),a.addEventListener("focusout",e,!0),()=>{a.removeEventListener("focusin",e,!0),a.removeEventListener("focusout",e,!0)};function e(e){a&&e$(e)&&("focusin"===e.type?eW:function(e){es(e,eD()).forEac
1h(e=>{e.dataset.tabindex=e.getAttribute("tabindex")||"",e.setAttribute("tabindex","-1")})})(a)}},[a,s,m]),i.useEffect(()=>{a&&(y||eW(a))},[y,a]),(0,l.jsxs)(tA.Provider,{value:i.useMemo(()=>({preserveTabOrder:s,beforeOutsideRef:d,afterOutsideRef:f,beforeInsideRef:g,afterInsideRef:p,portalNode:a,setFocusManagerState:c}),[s,a]),children:[v&&a&&(0,l.jsx)(tT,{"data-type":"outside",ref:d,onFocus:e=>{if(e$(e,a)){var t;null==(t=g.current)||t.focus()}else{let e=ez(u?u.domReference:null);null==e||e.focus()}}}),v&&a&&(0,l.jsx)("span",{"aria-owns":a.id,style:tE}),a&&o.createPortal(t,a),v&&a&&(0,l.jsx)(tT,{"data-type":"outside",ref:f,onFocus:e=>{if(e$(e,a)){var t;null==(t=p.current)||t.focus()}else{let t=eK(u?u.domReference:null);null==t||t.focus(),(null==u?void 0:u.closeOnFocusOut)&&(null==u||u.onOpenChange(!1,e.nativeEvent,"focus-out"))}}})]})}let tR=()=>i.useContext(tA);function tM(e){return i.useMemo(()=>t=>{e.forEach(e=>{e&&(e.current=t)})},e)}let tO=[];function tI(){return tO.slice().reverse().find(e=>e.isConnected)}function tP(e,t){var n,r;if(!(t.current.includes("floating")||null!=(n=e.getAttribute("role"))&&n.includes("dialog")))return;let i=eD(),l=((r=(r=i)||{}).getShadowRoot?V([e],r.includeContainer,{filter:er.bind(null,r),flatten:!0,getShadowRoot:r.getShadowRoot}):Z(e,r.includeContainer,er.bind(null,r))).filter(e=>{let t=e.getAttribute("data-tabindex")||"";return ea(e,i)||e.hasAttribute("data-tabindex")&&!t.startsWith("-")}),o=e.getAttribute("tabindex");t.current.includes("floating")||0===l.length?"0"!==o&&e.setAttribute("tabindex","0"):("-1"!==o||e.hasAttribute("data-tabindex")&&"-1"!==e.getAttribute("data-tabindex"))&&(e.setAttribute("tabindex","-1"),e.setAttribute("data-tabindex","-1"))}let tL=i.forwardRef(function(e,t){return(0,l.jsx)("button",{...e,type:"button",ref:t,tabIndex:-1,style:tE})});function tD(e){let{context:t,children:n,disabled:r=!1,order:o=["content"],guards:s=!0,initialFocus:a=0,returnFocus:u=!0,restoreFocus:d=!1,modal:f=!0,visuallyHiddenDismiss:g=!1,closeOnFocusOut:h=!0,outsideElementsInert:m=!1,getInsideElements:y=()=>[]}=e,{open:v,onOpenChange:_,events:b,dataRef:x,elements:{domReference:S,floating:w}}=t,C=eF(()=>{var e;return null==(e=x.current.floatingContext)?void 0:e.nodeId}),k=eF(y),E="number"==typeof a&&a<0,T=eb(S)&&E,A="undefined"!=typeof HTMLElement&&"inert"in HTMLElement.prototype,N=!A||s,F=!N||A&&m,R=eA(o),M=eA(a),O=eA(u),I=tp(),P=tR(),L=i.useRef(null),D=i.useRef(null),B=i.useRef(!1),K=i.useRef(!1),z=i.useRef(-1),$=null!=P,W=ex(w),j=eF(function(e){return void 0===e&&(e=W),e?es(e,eD()):[]}),J=eF(e=>{let t=j(e);return R.current.map(e=>S&&"reference"===e?S:W&&"floating"===e?W:t).filter(Boolean).flat()});i.useEffect(()=>{if(r||!f)return;function e(e){if("Tab"===e.key){em(W,ep(e_(W)))&&0===j().length&&!T&&eC(e);let t=J(),n=ey(e);"reference"===R.current[0]&&n===S&&(eC(e),e.shiftKey?t_(t[t.length-1]):t_(t[1])),"floating"===R.current[1]&&n===W&&e.shiftKey&&(eC(e),t_(t[0]))}}let t=e_(W);return t.addEventListener("keydown",e),()=>{t.removeEventListener("keydown",e)}},[r,S,W,f,R,T,j,J]),i.useEffect(()=>{if(!r&&w)return w.addEventListener("focusin",e),()=>{w.removeEventListener("focusin",e)};function e(e){let t=ey(e),n=j().indexOf(t);-1!==n&&(z.current=n)}},[r,w,j]),i.useEffect(()=>{if(!r&&h)return w&&p(S)?(S.addEventListener("focusout",t),S.addEventListener("pointerdown",e),w.addEventListener("focusout",t),()=>{S.removeEventListener("focusout",t),S.removeEventListener("pointerdown",e),w.removeEventListener("focusout",t)}):void 0;function e(){K.current=!0,setTimeout(()=>{K.current=!1})}function t(e){let t=e.relatedTarget,n=e.currentTarget;queueMicrotask(()=>{let r=C(),i=!(em(S,t)||em(w,t)||em(t,w)||em(null==P?void 0:P.portalNode,t)||null!=t&&t.hasAttribute(tm("focus-guard"))||I&&(eS(I.nodesRef.current,r).find(e=>{var n,r;return em(null==(n=e.context)?void 0:n.elements.floating,t)||em(null==(r=e.context)?void 0:r.elements.domReference,t)})||ew(I.nodesRef.current,r).find(e=>{var n,r,i;return[null==(n=e.context)?void 0:n.elements.floating,ex(null==(r=e.context)?void 0:r.elements.floating)].includes(t)||(null==(i=e.context)?void 0:i.elements.domReference)===t})));if(n===S&&W&&tP(W,R),d&&i&&ep(e_(W))===e_(W).body){p(W)&&W.focus();let e=z.current,t=j(),n=t[e]||t[t.length-1]||W;p(n)&&n.focus()}(T||!f)&&t&&i&&!K.current&&t!==tI()&&(B.current=!0,_(!1,e,"focus-out"))})}},[r,S,w,W,f,I,P,_,h,d,j,T,C,R]);let H=i.useRef(null),U=i.useRef(null),q=tM([H,null==P?void 0:P.beforeInsideRef]),Z=tM([U,null==P?void 0:P.afterInsideRef]);function V(e){return!r&&g&&f?(0,l.jsx)(tL,{ref:"start"===e?L:D,onClick:e=>_(!1,e.nativeEvent),children:"string"==typeof g?g:"Dismiss"}):null}i.useEffect(()=>{var e,t;if(r||!w)return;let n=Array.from((null==P||null==(e=P.portalNode)?void 0:e.querySelectorAll("["+tm("portal")+"]"))||[]),i=I?ew(I.nodesRef.current,C()):[],l=I&&!f?i.map(e=>{var t;return null==(t=e.context)?void 0:t.elements.floating}):[],o=[w,null==(t=i.find(e=>{var t;return eb((null==(t=e.context)?void 0:t.elements.domReference)||null)}))||null==(t=t.context)?void 0:t.elements.domReference,...n,...l,...k(),L.current,D.
1current,H.current,U.current,null==P?void 0:P.beforeOutsideRef.current,null==P?void 0:P.afterOutsideRef.current,R.current.includes("reference")||T?S:null].filter(e=>null!=e),s=f||T?tk(o,!F,F):tk(o);return()=>{s()}},[r,S,w,f,R,P,T,N,F,I,C,k]),eT(()=>{if(r||!p(W))return;let e=ep(e_(W));queueMicrotask(()=>{let t=J(W),n=M.current,r=("number"==typeof n?t[n]:n.current)||W,i=em(W,e);E||i||!v||t_(r,{preventScroll:r===W})})},[r,v,W,E,J,M]),eT(()=>{if(r||!W)return;let e=!1,t=e_(W),n=ep(t);function i(t){let{reason:n,event:r,nested:i}=t;if(["hover","safe-polygon"].includes(n)&&"mouseleave"===r.type&&(B.current=!0),"outside-press"===n)if(i)B.current=!1,e=!0;else if(ek(r)||eE(r))B.current=!1;else{let t=!1;document.createElement("div").focus({get preventScroll(){return t=!0,!1}}),t?(B.current=!1,e=!0):B.current=!0}}tO=tO.filter(e=>e.isConnected),n&&"body"!==c(n)&&(tO.push(n),tO.length>20&&(tO=tO.slice(-20))),b.on("openchange",i);let l=t.createElement("span");return l.setAttribute("tabindex","-1"),l.setAttribute("aria-hidden","true"),Object.assign(l.style,tE),$&&S&&S.insertAdjacentElement("afterend",l),()=>{b.off("openchange",i);let n=ep(t),r=em(w,n)||I&&eS(I.nodesRef.current,C()).some(e=>{var t;return em(null==(t=e.context)?void 0:t.elements.floating,n)}),o=function(){if("boolean"==typeof O.current){let e=S||tI();return e&&e.isConnected?e:l}return O.current.current||l}();queueMicrotask(()=>{let i=function(e){let t=eD();return ea(e,t)?e:es(e,t)[0]||e}(o);O.current&&!B.current&&p(i)&&(i===n||n===t.body||r)&&i.focus({preventScroll:e}),l.remove()})}},[r,w,W,O,x,b,I,$,S,C]),i.useEffect(()=>{queueMicrotask(()=>{B.current=!1})},[r]),eT(()=>{if(!r&&P)return P.setFocusManagerState({modal:f,closeOnFocusOut:h,open:v,onOpenChange:_,domReference:S}),()=>{P.setFocusManagerState(null)}},[r,P,f,v,_,h,S]),eT(()=>{r||W&&tP(W,R)},[r,W,R]);let G=!r&&N&&(!f||!T)&&($||f);return(0,l.jsxs)(l.Fragment,{children:[G&&(0,l.jsx)(tT,{"data-type":"inside",ref:q,onFocus:e=>{if(f){let e=J();t_("reference"===o[0]?e[0]:e[e.length-1])}else if(null!=P&&P.preserveTabOrder&&P.portalNode)if(B.current=!1,e$(e,P.portalNode)){let e=eK(S);null==e||e.focus()}else{var t;null==(t=P.beforeOutsideRef.current)||t.focus()}}}),!T&&V("start"),n,V("end"),G&&(0,l.jsx)(tT,{"data-type":"inside",ref:Z,onFocus:e=>{if(f)t_(J()[0]);else if(null!=P&&P.preserveTabOrder&&P.portalNode)if(h&&(B.current=!0),e$(e,P.portalNode)){let e=ez(S);null==e||e.focus()}else{var t;null==(t=P.afterOutsideRef.current)||t.focus()}}})]})}let tB=0,tK=()=>{},tz=i.forwardRef(function(e,t){let{lockScroll:n=!1,...r}=e;return eT(()=>{if(n)return 1==++tB&&(tK=function(){let e=/iP(hone|ad|od)|iOS/.test(eu()),t=document.body.style,n=Math.round(document.documentElement.getBoundingClientRect().left)+document.documentElement.scrollLeft?"paddingLeft":"paddingRight",r=window.innerWidth-document.documentElement.clientWidth,i=t.left?parseFloat(t.left):window.scrollX,l=t.top?parseFloat(t.top):window.scrollY;if(t.overflow="hidden",r&&(t[n]=r+"px"),e){var o,s;let e=(null==(o=window.visualViewport)?void 0:o.offsetLeft)||0;Object.assign(t,{position:"fixed",top:-(l-Math.floor((null==(s=window.visualViewport)?void 0:s.offsetTop)||0))+"px",left:-(i-Math.floor(e))+"px",right:"0"})}return()=>{Object.assign(t,{overflow:"",[n]:""}),e&&(Object.assign(t,{position:"",top:"",left:"",right:""}),window.scrollTo(i,l))}}()),()=>{0==--tB&&tK()}},[n]),(0,l.jsx)("div",{ref:t,...r,style:{position:"fixed",overflow:"auto",top:0,right:0,bottom:0,left:0,...r.style}})}),t$={pointerdown:"onPointerDown",mousedown:"onMouseDown",click:"onClick"},tW={pointerdown:"onPointerDownCapture",mousedown:"onMouseDownCapture",click:"onClickCapture"},tj=e=>{var t,n;return{escapeKey:"boolean"==typeof e?e:null!=(t=null==e?void 0:e.escapeKey)&&t,outsidePress:"boolean"==typeof e?e:null==(n=null==e?void 0:e.outsidePress)||n}};function tJ(e,t,n){let r=new Map,i="item"===n,l=e;if(i&&e){let{[tt]:t,[tn]:n,...r}=e;l=r}return{..."floating"===n&&{tabIndex:-1,"data-floating-ui-focusable":""},...l,...t.map(t=>{let r=t?t[n]:null;return"function"==typeof r?e?r(e):null:r}).concat(e).reduce((e,t)=>
1(t&&Object.entries(t).forEach(t=>{var n;let[l,o]=t;i&&[tt,tn].includes(l)||(0===l.indexOf("on")?(r.has(l)||r.set(l,[]),"function"==typeof o&&(null==(n=r.get(l))||n.push(o),e[l]=function(){for(var e,t=arguments.length,n=Array(t),i=0;i<t;i++)n[i]=arguments[i];return null==(e=r.get(l))?void 0:e.map(e=>e(...n)).find(e=>void 0!==e)})):e[l]=o)}),e),{})}}function tH(e,t,n){switch(e){case"vertical":return t;case"horizontal":return n;default:return t||n}}function tU(e,t){return tH(t,e===tl||e===to,e===tr||e===ti)}function tq(e,t,n){return tH(t,e===to,n?e===tr:e===ti)||"Enter"===e||" "===e||""===e}function tZ(e,t,n){return tH(t,n?e===tr:e===ti,e===to)}function tV(e,t,n,r){return"both"===t||"horizontal"===t&&r&&r>1?"Escape"===e:tH(t,n?e===ti:e===tr,e===tl)}let tG=new Map([["select","listbox"],["combobox","listbox"],["label",!1]]);class tY{constructor(e){this.key=e,this.ref={current:null},this.setRefElement=this.setRefElement.bind(this)}setRefElement(e){this.ref={current:e}}}class tX extends tY{constructor(e,t){super(e),this.type="item",this.title=e,this.disabled=t.disabled??!1,this.icon=t.icon??null,this.$onSelect=t.$onSelect,t.$showOn&&(this.$showOn=t.$showOn)}}class tQ extends tY{constructor(e){super("_separator"),this.type="separator",e&&e.$showOn&&(this.$showOn=e.$showOn)}}let t0=(0,i.forwardRef)(({className:e,disabled:t,...n},r)=>(0,l.jsx)("hr",{className:e})),t1=(0,i.forwardRef)(({className:e,label:t,disabled:n,icon:r,...i},o)=>(0,l.jsxs)("button",{...i,className:e,ref:o,role:"menuitem",disabled:n,children:[r,t]})),t2=(0,i.forwardRef)(({items:e,className:t,itemClassName:n,separatorClassName:r},u)=>{var c,d;let[f]=(0,s.DF)(),[g,m]=(0,i.useState)(null),[y,v]=(0,i.useState)(!1),_=(0,i.useRef)([]),w=(0,i.useRef)([]),{refs:E,floatingStyles:N,context:R}=function(e){void 0===e&&(e={});let{nodeId:t}=e,n=function(e){let{open:t=!1,onOpenChange:n,elements:r}=e,l=td(),o=i.useRef({}),[s]=i.useState(()=>(function(){let e=new Map;return{emit(t,n){var r;null==(r=e.get(t))||r.forEach(e=>e(n))},on(t,n){e.has(t)||e.set(t,new Set),e.get(t).add(n)},off(t,n){var r;null==(r=e.get(t))||r.delete(n)}}})()),a=null!=th(),[u,c]=i.useState(r.reference),d=eF((e,t,r)=>{o.current.openEvent=e?t:void 0,s.emit("openchange",{open:e,event:t,reason:r,nested:a}),null==n||n(e,t,r)}),f=i.useMemo(()=>({setPositionReference:c}),[]),g=i.useMemo(()=>({reference:u||r.reference||null,floating:r.floating||null,domReference:r.reference}),[u,r.reference,r.floating]);return i.useMemo(()=>({dataRef:o,open:t,onOpenChange:d,elements:g,events:s,floatingId:l,refs:f}),[t,d,g,s,l,f])}({...e,elements:{reference:null,floating:null,...e.elements}}),r=e.rootContext||n,l=r.elements,[s,a]=i.useState(null),[u,c]=i.useState(null),d=(null==l?void 0:l.domReference)||s,f=i.useRef(null),g=tp();eT(()=>{d&&(f.current=d)},[d]);let p=function(e){void 0===e&&(e={});let{placement:t="bottom",strategy:n="absolute",middleware:r=[],platform:l,elements:{reference:s,floating:a}={},transform:u=!0,whileElementsMounted:c,open:d}=e,[f,g]=i.useState({x:0,y:0,strategy:n,placement:t,middlewareData:{},isPositioned:!1}),[h,p]=i.useState(r);e6(h,r)||p(r);let[m,y]=i.useState(null),[v,_]=i.useState(null),b=i.useCallback(e=>{e!==C.current&&(C.current=e,y(e))},[]),x=i.useCallback(e=>{e!==k.current&&(k.current=e,_(e))},[]),S=s||m,w=a||v,C=i.useRef(null),k=i.useRef(null),E=i.useRef(f),T=null!=c,A=te(c),N=te(l),F=te(d),R=i.useCallback(()=>{if(!C.current||!k.current)return;let e={placement:t,strategy:n,middleware:h};N.current&&(e.platform=N.current),((e,t,n)=>{let r=new Map,i={platform:e3,...n},l={...i.platform,_c:r};return(async(e,t,n)=>{let{placement:r="bottom",strategy:i="absolute",middleware:l=[],platform:o}=n,s=l.filter(Boolean),a=await (null==o.isRTL?void 0:o.isRTL(t)),u=await o.getElementRects({reference:e,floating:t,strategy:i}),{x:c,y:d}=ej(u,r,a),f=r,g={},h=0;for(let n=0;n<s.length;n++){let{name:l,fn:p}=s[n],{x:m,y:y,data:v,reset:_}=await p({x:c,y:d,initialPlacement:r,placement:f,strategy:i,middlewareData:g,rects:u,platform:o,elements:{reference:e,floating:t}});c=null!=m?m:c,d=null!=y?y:d,g={...g,[l]:{...g[l],...v}},_&&h<=50&&(h++,"object"==typeof _&&(_.placement&&(f=_.placement),_.rects&&(u=!0===_.rects?await o.getElementRects({reference:e,floating:t,strategy:i}
1):_.rects),{x:c,y:d}=ej(u,f,a)),n=-1)}return{x:c,y:d,placement:f,strategy:i,middlewareData:g}})(e,t,{...i,platform:l})})(C.current,k.current,e).then(e=>{let t={...e,isPositioned:!1!==F.current};M.current&&!e6(E.current,t)&&(E.current=t,o.flushSync(()=>{g(t)}))})},[h,t,n,N,F]);e7(()=>{!1===d&&E.current.isPositioned&&(E.current.isPositioned=!1,g(e=>({...e,isPositioned:!1})))},[d]);let M=i.useRef(!1);e7(()=>(M.current=!0,()=>{M.current=!1}),[]),e7(()=>{if(S&&(C.current=S),w&&(k.current=w),S&&w){if(A.current)return A.current(S,w,R);R()}},[S,w,R,A,T]);let O=i.useMemo(()=>({reference:C,floating:k,setReference:b,setFloating:x}),[b,x]),I=i.useMemo(()=>({reference:S,floating:w}),[S,w]),P=i.useMemo(()=>{let e={position:n,left:0,top:0};if(!I.floating)return e;let t=e9(I.floating,f.x),r=e9(I.floating,f.y);return u?{...e,transform:"translate("+t+"px, "+r+"px)",...e8(I.floating)>=1.5&&{willChange:"transform"}}:{position:n,left:t,top:r}},[n,u,I.floating,f.x,f.y]);return i.useMemo(()=>({...f,update:R,refs:O,elements:I,floatingStyles:P}),[f,R,O,I,P])}({...e,elements:{...l,...u&&{reference:u}}}),m=i.useCallback(e=>{let t=h(e)?{getBoundingClientRect:()=>e.getBoundingClientRect(),getClientRects:()=>e.getClientRects(),contextElement:e}:e;c(t),p.refs.setReference(t)},[p.refs]),y=i.useCallback(e=>{(h(e)||null===e)&&(f.current=e,a(e)),(h(p.refs.reference.current)||null===p.refs.reference.current||null!==e&&!h(e))&&p.refs.setReference(e)},[p.refs]),v=i.useMemo(()=>({...p.refs,setReference:y,setPositionReference:m,domReference:f}),[p.refs,y,m]),_=i.useMemo(()=>({...p.elements,domReference:d}),[p.elements,d]),b=i.useMemo(()=>({...p,...r,refs:v,elements:_,nodeId:t}),[p,v,_,t,r]);return eT(()=>{r.dataRef.current.floatingContext=b;let e=null==g?void 0:g.nodesRef.current.find(e=>e.id===t);e&&(e.context=b)}),i.useMemo(()=>({...p,context:b,refs:v,elements:_}),[p,v,_,b])}({middleware:[{...function(e){return void 0===e&&(e=0),{name:"offset",options:e,async fn(t){var n,r;let{x:i,y:l,placement:o,middlewareData:s}=t,a=await async function(e,t){let{placement:n,platform:r,elements:i}=e,l=await (null==r.isRTL?void 0:r.isRTL(i.floating)),o=P(n),s=L(n),a="y"===K(n),u=["left","top"].includes(o)?-1:1,c=l&&a?-1:1,d=I(t,e),{mainAxis:f,crossAxis:g,alignmentAxis:h}="number"==typeof d?{mainAxis:d,crossAxis:0,alignmentAxis:null}:{mainAxis:d.mainAxis||0,crossAxis:d.crossAxis||0,alignmentAxis:d.alignmentAxis};return s&&"number"==typeof h&&(g="end"===s?-1*h:h),a?{x:g*c,y:f*u}:{x:f*u,y:g*c}}(t,e);return o===(null==(n=s.offset)?void 0:n.placement)&&null!=(r=s.arrow)&&r.alignmentOffset?{}:{x:i+a.x,y:l+a.y,data:{...a,placement:o}}}}}(c={alignmentAxis:4,mainAxis:5}),options:[c,d]},((e,t)=>({...function(e){return void 0===e&&(e={}),{name:"flip",options:e,async fn(t){var n,r,i,l,o;let{placement:s,middlewareData:a,rects:u,initialPlacement:c,platform:d,elements:f}=t,{mainAxis:g=!0,crossAxis:h=!0,fallbackPlacements:p,fallbackStrategy:m="bestFit",fallbackAxisSideDirection:y="none",flipAlignment:v=!0,..._}=I(e,t);if(null!=(n=a.arrow)&&n.alignmentOffset)return{};let b=P(s),x=K(c),S=P(c)===c,w=await (null==d.isRTL?void 0:d.isRTL(f.floating)),C=p||(S||!v?[$(c)]:function(e){let t=$(e);return[z(e),t,z(t)]}(c)),k="none"!==y;!p&&k&&C.push(...function(e,t,n,r){let i=L(e),l=function(e,t,n){let r=["left","right"],i=["right","left"];switch(e){case"top":case"bottom":return n?t?i:r:t?r:i;case"left":case"right":return t?["top","bottom"]:["bottom","top"];default:return[]}}(P(e),"start"===n,r);return i&&(l=l.map(e=>e+"-"+i),t&&(l=l.concat(l.map(z)))),l}(c,v,y,w));let E=[c,...C],T=await eJ(t,_),A=[],N=(null==(r=a.flip)?void 0:r.overflows)||[];if(g&&A.push(T[b]),h){let e=function(e,t,n){void 0===n&&(n=!1);let r=L(e),i=D(K(e)),l=B(i),o="x"===i?r===(n?"end":"start")?"right":"left":"start"===r?"bottom":"top";return t.reference[l]>t.floating[l]&&(o=$(o)),[o,$(o)]}(s,u,w);A.push(T[e[0]],T[e[1]])}if(N=[...N,{placement:s,overflows:A}],!A.every(e=>e<=0)){let e=((null==(i=a.flip)?void 0:i.index)||0)+1,t=E[e];if(t)return{data:{index:e,overflows:N},reset:{placement:t}};let n=null==(l=N.filter(e=>e.overflows[0]<=0).sort((e,t)=>
1e.overflows[1]-t.overflows[1])[0])?void 0:l.placement;if(!n)switch(m){case"bestFit":{let e=null==(o=N.filter(e=>{if(k){let t=K(e.placement);return t===x||"y"===t}return!0}).map(e=>[e.placement,e.overflows.filter(e=>e>0).reduce((e,t)=>e+t,0)]).sort((e,t)=>e[1]-t[1])[0])?void 0:o[0];e&&(n=e);break}case"initialPlacement":n=c}if(s!==n)return{reset:{placement:n}}}return{}}}}(e),options:[e,t]}))({fallbackPlacements:["left-start"]}),((e,t)=>({...function(e){return void 0===e&&(e={}),{name:"shift",options:e,async fn(t){let{x:n,y:r,placement:i}=t,{mainAxis:l=!0,crossAxis:o=!1,limiter:s={fn:e=>{let{x:t,y:n}=e;return{x:t,y:n}}},...a}=I(e,t),u={x:n,y:r},c=await eJ(t,a),d=K(P(i)),f=D(d),g=u[f],h=u[d];if(l){let e="y"===f?"bottom":"right";g=A(g+c["y"===f?"top":"left"],T(g,g-c[e]))}if(o){let e="y"===d?"bottom":"right";h=A(h+c["y"===d?"top":"left"],T(h,h-c[e]))}let p=s.fn({...t,[f]:g,[d]:h});return{...p,data:{x:p.x-n,y:p.y-r,enabled:{[f]:l,[d]:o}}}}}}(e),options:[e,t]}))({padding:10})],onOpenChange:v,open:y,placement:"right-start",strategy:"fixed",whileElementsMounted:e5}),M=function(e,t){var n,r;void 0===t&&(t={});let{open:l,elements:o,floatingId:s}=e,{enabled:a=!0,role:u="dialog"}=t,c=td(),d=(null==(n=o.domReference)?void 0:n.id)||c,f=i.useMemo(()=>{var e;return(null==(e=ex(o.floating))?void 0:e.id)||s},[o.floating,s]),g=null!=(r=tG.get(u))?r:u,h=null!=th(),p=i.useMemo(()=>"tooltip"===g||"label"===u?{["aria-"+("label"===u?"labelledby":"describedby")]:l?f:void 0}:{"aria-expanded":l?"true":"false","aria-haspopup":"alertdialog"===g?"dialog":g,"aria-controls":l?f:void 0,..."listbox"===g&&{role:"combobox"},..."menu"===g&&{id:d},..."menu"===g&&h&&{role:"menuitem"},..."select"===u&&{"aria-autocomplete":"none"},..."combobox"===u&&{"aria-autocomplete":"list"}},[g,f,h,l,d,u]),m=i.useMemo(()=>{let e={id:f,...g&&{role:g}};return"tooltip"===g||"label"===u?e:{...e,..."menu"===g&&{"aria-labelledby":d}}},[g,f,d,u]),y=i.useCallback(e=>{let{active:t,selected:n}=e,r={role:"option",...t&&{id:f+"-fui-option"}};switch(u){case"select":return{...r,"aria-selected":t&&n};case"combobox":return{...r,"aria-selected":n}}return{}},[f,u]);return i.useMemo(()=>a?{reference:p,floating:m,item:y}:{},[a,p,m,y])}(R,{role:"menu"}),O=function(e,t){void 0===t&&(t={});let{open:n,onOpenChange:r,elements:l,dataRef:o}=e,{enabled:s=!0,escapeKey:a=!0,outsidePress:u=!0,outsidePressEvent:c="pointerdown",referencePress:d=!1,referencePressEvent:f="pointerdown",ancestorScroll:g=!1,bubbles:m,capture:y}=t,v=tp(),_=eF("function"==typeof u?u:()=>!1),w="function"==typeof u?_:u,E=i.useRef(!1),T=i.useRef(!1),{escapeKey:A,outsidePress:N}=tj(m),{escapeKey:F,outsidePress:R}=tj(y),M=i.useRef(!1),O=eF(e=>{var t;if(!n||!s||!a||"Escape"!==e.key||M.current)return;let i=null==(t=o.current.floatingContext)?void 0:t.nodeId,l=v?eS(v.nodesRef.current,i):[];if(!A&&(e.stopPropagation(),l.length>0)){let e=!0;if(l.forEach(t=>{var n;null==(n=t.context)||!n.open||t.context.dataRef.current.__escapeKeyBubbles||(e=!1)}),!e)return}r(!1,"nativeEvent"in e?e.nativeEvent:e,"escape-key")}),I=eF(e=>{var t;let n=()=>{var t;O(e),null==(t=ey(e))||t.removeEventListener("keydown",n)};null==(t=ey(e))||t.addEventListener("keydown",n)}),P=eF(e=>{var t;let n=E.current;E.current=!1;let i=T.current;if(T.current=!1,"click"===c&&i||n||"function"==typeof w&&!w(e))return;let s=ey(e),a="["+tm("inert")+"]",u=e_(l.floating).querySelectorAll(a),d=h(s)?s:null;for(;d&&!x(d);){let e=C(d);if(x(e)||!h(e))break;d=e}if(u.length&&h(s)&&!s.matches("html,body")&&!em(s,l.floating)&&Array.from(u).every(e=>!em(d,e)))return;if(p(s)&&B){let t=x(s),n=S(s),r=/auto|scroll/,i=t||r.test(n.overflowX),l=t||r.test(n.overflowY),o=i&&s.clientWidth>0&&s.scrollWidth>s.clientWidth,a=l&&s.clientHeight>0&&s.scrollHeight>s.clientHeight,u="rtl"===n.direction,c=a&&(u?e.offsetX<=s.offsetWidth-s.clientWidth:e.offsetX>s.clientWidth),d=o&&e.offsetY>s.clientHeight;if(c||d)return}let f=null==(t=o.current.floatingContext)?void 0:t.nodeId,g=v&&eS(v.nodesRef.current,f).some(t=>{var n;return ev(e,null==(n=t.context)?void 0:n.elements.floating)});if(ev(e,l.floating)||ev(e,l.domReference)||g)return;
1let m=v?eS(v.nodesRef.current,f):[];if(m.length>0){let e=!0;if(m.forEach(t=>{var n;null==(n=t.context)||!n.open||t.context.dataRef.current.__outsidePressBubbles||(e=!1)}),!e)return}r(!1,e,"outside-press")}),L=eF(e=>{var t;let n=()=>{var t;P(e),null==(t=ey(e))||t.removeEventListener(c,n)};null==(t=ey(e))||t.addEventListener(c,n)});i.useEffect(()=>{if(!n||!s)return;o.current.__escapeKeyBubbles=A,o.current.__outsidePressBubbles=N;let e=-1;function t(e){r(!1,e,"ancestor-scroll")}function i(){window.clearTimeout(e),M.current=!0}function u(){e=window.setTimeout(()=>{M.current=!1},5*!!b())}let d=e_(l.floating);a&&(d.addEventListener("keydown",F?I:O,F),d.addEventListener("compositionstart",i),d.addEventListener("compositionend",u)),w&&d.addEventListener(c,R?L:P,R);let f=[];return g&&(h(l.domReference)&&(f=k(l.domReference)),h(l.floating)&&(f=f.concat(k(l.floating))),!h(l.reference)&&l.reference&&l.reference.contextElement&&(f=f.concat(k(l.reference.contextElement)))),(f=f.filter(e=>{var t;return e!==(null==(t=d.defaultView)?void 0:t.visualViewport)})).forEach(e=>{e.addEventListener("scroll",t,{passive:!0})}),()=>{a&&(d.removeEventListener("keydown",F?I:O,F),d.removeEventListener("compositionstart",i),d.removeEventListener("compositionend",u)),w&&d.removeEventListener(c,R?L:P,R),f.forEach(e=>{e.removeEventListener("scroll",t)}),window.clearTimeout(e)}},[o,l,a,w,c,n,r,g,s,A,N,O,F,I,P,R,L]),i.useEffect(()=>{E.current=!1},[w,c]);let D=i.useMemo(()=>({onKeyDown:O,...d&&{[t$[f]]:e=>{r(!1,e.nativeEvent,"reference-press")},..."click"!==f&&{onClick(e){r(!1,e.nativeEvent,"reference-press")}}}}),[O,r,d,f]),B=i.useMemo(()=>({onKeyDown:O,onMouseDown(){T.current=!0},onMouseUp(){T.current=!0},[tW[c]]:()=>{E.current=!0}}),[O,c]);return i.useMemo(()=>s?{reference:D,floating:B}:{},[s,D,B])}(R),{getFloatingProps:W,getItemProps:j}=function(e){void 0===e&&(e=[]);let t=e.map(e=>null==e?void 0:e.reference),n=e.map(e=>null==e?void 0:e.floating),r=e.map(e=>null==e?void 0:e.item),l=i.useCallback(t=>tJ(t,e,"reference"),t),o=i.useCallback(t=>tJ(t,e,"floating"),n),s=i.useCallback(t=>tJ(t,e,"item"),r);return i.useMemo(()=>({getReferenceProps:l,getFloatingProps:o,getItemProps:s}),[l,o,s])}([M,O,function(e,t){let{open:n,onOpenChange:r,elements:l,floatingId:o}=e,{listRef:s,activeIndex:a,onNavigate:u=()=>{},enabled:c=!0,selectedIndex:d=null,allowEscape:f=!1,loop:g=!1,nested:h=!1,rtl:m=!1,virtual:y=!1,focusItemOnOpen:v="auto",focusItemOnHover:_=!0,openOnArrowKeyDown:b=!0,disabledIndices:x,orientation:S="vertical",parentOrientation:w,cols:C=1,scrollItemIntoView:k=!0,virtualItemRef:E,itemSizes:T,dense:A=!1}=t,N=eA(ex(l.floating)),R=th(),M=tp();eT(()=>{e.dataRef.current.orientation=S},[e,S]);let O=eF(()=>{u(-1===L.current?null:L.current)}),I=eb(l.domReference),P=i.useRef(v),L=i.useRef(null!=d?d:-1),D=i.useRef(null),B=i.useRef(!0),K=i.useRef(O),z=i.useRef(!!l.floating),$=i.useRef(n),W=i.useRef(!1),j=i.useRef(!1),J=eA(x),H=eA(n),U=eA(k),q=eA(d),[Z,V]=i.useState(),[G,Y]=i.useState(),X=eF(()=>{function e(e){var t;y?(null!=(t=e.id)&&t.endsWith("-fui-option")&&(e.id=o+"-"+Math.random().toString(16).slice(2,10)),V(e.id),null==M||M.events.emit("virtualfocus",e),E&&(E.current=e)):t_(e,{sync:W.current,preventScroll:!0})}let t=s.current[L.current],n=j.current;t&&e(t),(W.current?e=>e():requestAnimationFrame)(()=>{let r=s.current[L.current]||t;if(!r)return;t||e(r);let i=U.current;i&&ee&&(n||!B.current)&&(null==r.scrollIntoView||r.scrollIntoView("boolean"==typeof i?{block:"nearest",inline:"nearest"}:i))})});eT(()=>{c&&(n&&l.floating?P.current&&null!=d&&(j.current=!0,L.current=d,O()):z.current&&(L.current=-1,K.current()))},[c,n,l.floating,d,O]),eT(()=>{if(c&&n&&l.floating)if(null==a){if(W.current=!1,null!=q.current)return;if(z.current&&(L.current=-1,X()),(!$.current||!z.current)&&P.current&&(null!=D.current||!0===P.current&&null==D.current)){let e=0,t=()=>{null==s.current[0]?(e<2&&(e?requestAnimationFrame:queueMicrotask)(t),e++):(L.current=null==D.current||tq(D.current,S,m)||h?eO(s,J.current):eI(s,J.current),D.current=null,O())};t()}}else eM(s,a)||(L.current=a,X(),j.current=!1)},[c,n,l.floating,a,q,h,s,S,m,O,X,J]),eT(()=>{var e;if(!c||l.floating||!M||y||!z.current)return;let t=M.nodesRef.current,n=null==(e=t.find(e=>e.id===R))||null==(e=e.context)?void 0:e.elements.floating,r=ep(e_(l.floating)),i=t.some(e=>e.context&&em(e.context.elements.floating,r));n&&!i&&B.current&&n.focus({preventScroll:!0})},[c,l.floating,M,R,y]),eT(()=>{if(c&&M&&y&&!R)return M.events.on("virtualfocus",e),()=>{M.events.off("virtualfocus",e)};function e(e){Y(e.id),E&&(E.current=e)}},[c,M,y,R,E]),eT(()=>{K.current=O,$.current=n,z.current=!!l.floating}),eT(()=>{n||(D.current=null)},[n]);let Q=null!=a,ee=i.useMemo(()=>{function e(e){if(!n)return;let t=s.current.indexOf(e);-1!==t&&L.current!==t&&(L.current=t,O())}return{onFocus(t){let{currentTarget:n}=t;W.current=!0,e(n)},onClick:e=>{let{currentTarget:t}=e;return t.focus({preventScroll:!0})},..._&&{onMouseMove(t){let{currentTarget:n}=t;W.current=!0,j.current=!1,e(n)},onPointerLeave(e){var t;let{pointerType:n}=e;B.current&&"touch"!==n&&(W.current=!0,L.current=-1,O(),y||null==(t=N.current)||t.focu
1s({preventScroll:!0}))}}}},[n,N,_,s,O,y]),et=i.useCallback(()=>{var e;return null!=w?w:null==M||null==(e=M.nodesRef.current.find(e=>e.id===R))||null==(e=e.context)||null==(e=e.dataRef)?void 0:e.current.orientation},[R,M,w]),en=eF(e=>{if(B.current=!1,W.current=!0,229===e.which||!H.current&&e.currentTarget===N.current)return;if(h&&tV(e.key,S,m,C))return tU(e.key,et())||eC(e),r(!1,e.nativeEvent,"list-navigation"),void(p(l.domReference)&&(y?null==M||M.events.emit("virtualfocus",l.domReference):l.domReference.focus()));let t=L.current,i=eO(s,x),o=eI(s,x);if(I||("Home"===e.key&&(eC(e),L.current=i,O()),"End"===e.key&&(eC(e),L.current=o,O())),C>1){var a;let t=T||Array.from({length:s.current.length},()=>({width:1,height:1})),n=function(e,t,n){let r=[],i=0;return e.forEach((e,l)=>{let{width:o,height:s}=e,a=!1;for(n&&(i=0);!a;){let e=[];for(let n=0;n<o;n++)for(let r=0;r<s;r++)e.push(i+n+r*t);i%t+o<=t&&e.every(e=>null==r[e])?(e.forEach(e=>{r[e]=l}),a=!0):i++}}),[...r]}(t,C,A),r=n.findIndex(e=>null!=e&&!eL(s,e,x)),l=n.reduce((e,t,n)=>null==t||eL(s,t,x)?e:n,-1),u=n[function(e,t){let{event:n,orientation:r,loop:i,rtl:l,cols:o,disabledIndices:s,minIndex:a,maxIndex:u,prevIndex:c,stopEvent:d=!1}=t,f=c;if("ArrowUp"===n.key){if(d&&eC(n),-1===c)f=u;else if(f=eP(e,{startingIndex:f,amount:o,decrement:!0,disabledIndices:s}),i&&(c-o<a||f<0)){let e=c%o,t=u%o,n=u-(t-e);f=t===e?u:t>e?n:n-o}eM(e,f)&&(f=c)}if("ArrowDown"===n.key&&(d&&eC(n),-1===c?f=a:(f=eP(e,{startingIndex:c,amount:o,disabledIndices:s}),i&&c+o>u&&(f=eP(e,{startingIndex:c%o-o,amount:o,disabledIndices:s}))),eM(e,f)&&(f=c)),"both"===r){let t=F(c/o);n.key===(l?eg:eh)&&(d&&eC(n),c%o!=o-1?(f=eP(e,{startingIndex:c,disabledIndices:s}),i&&eR(f,o,t)&&(f=eP(e,{startingIndex:c-c%o-1,disabledIndices:s}))):i&&(f=eP(e,{startingIndex:c-c%o-1,disabledIndices:s})),eR(f,o,t)&&(f=c)),n.key===(l?eh:eg)&&(d&&eC(n),c%o!=0?(f=eP(e,{startingIndex:c,decrement:!0,disabledIndices:s}),i&&eR(f,o,t)&&(f=eP(e,{startingIndex:c+(o-c%o),decrement:!0,disabledIndices:s}))):i&&(f=eP(e,{startingIndex:c+(o-c%o),decrement:!0,disabledIndices:s})),eR(f,o,t)&&(f=c));let r=F(u/o)===t;eM(e,f)&&(f=i&&r?n.key===(l?eh:eg)?u:eP(e,{startingIndex:c-c%o-1,disabledIndices:s}):c)}return f}({current:n.map(e=>null!=e?s.current[e]:null)},{event:e,orientation:S,loop:g,rtl:m,cols:C,disabledIndices:(a=[...x||s.current.map((e,t)=>eL(s,t)?t:void 0),void 0],n.flatMap((e,t)=>a.includes(e)?[t]:[])),minIndex:r,maxIndex:l,prevIndex:function(e,t,n,r,i){if(-1===e)return -1;let l=n.indexOf(e),o=t[e];switch(i){case"tl":return l;case"tr":return o?l+o.width-1:l;case"bl":return o?l+(o.height-1)*r:l;case"br":return n.lastIndexOf(e)}}(L.current>o?i:L.current,t,n,C,e.key===to?"bl":e.key===(m?tr:ti)?"tr":"tl"),stopEvent:!0})];if(null!=u&&(L.current=u,O()),"both"===S)return}if(tU(e.key,S)){if(eC(e),n&&!y&&ep(e.currentTarget.ownerDocument)===e.currentTarget)return L.current=tq(e.key,S,m)?i:o,void O();tq(e.key,S,m)?L.current=g?t>=o?f&&t!==s.current.length?-1:i:eP(s,{startingIndex:t,disabledIndices:x}):Math.min(o,eP(s,{startingIndex:t,disabledIndices:x})):L.current=g?t<=i?f&&-1!==t?s.current.length:o:eP(s,{startingIndex:t,decrement:!0,disabledIndices:x}):Math.max(i,eP(s,{startingIndex:t,decrement:!0,disabledIndices:x})),eM(s,L.current)&&(L.current=-1),O()}}),er=i.useMemo(()=>y&&n&&Q&&{"aria-activedescendant":G||Z},[y,n,Q,G,Z]),ei=i.useMemo(()=>({"aria-orientation":"both"===S?void 0:S,...I?{}:er,onKeyDown:en,onPointerMove(){B.current=!0}}),[er,en,S,I]),el=i.useMemo(()=>{function e(e){"auto"===v&&ek(e.nativeEvent)&&(P.current=!0)}function t(e){P.current=v,"auto"===v&&eE(e.nativeEvent)&&(P.current=!0)}return{...er,onKeyDown(e){B.current=!1;let t=e.key.startsWith("Arrow"),i=["Home","End"].includes(e.key),l=tZ(e.key,S,m),o=tV(e.key,S,m,C),a=tZ(e.key,et(),m),u=tU(e.key,S),c=(h?a:u)||"Enter"===e.key||""===e.key.trim();if(y&&n){var f,g,p,v,_;let n,r,a=null==M?void 0:M.nodesRef.current.find(e=>null==e.parentId),c=M&&a?(f=M.nodesRef.current,g=a.id,r=-1,function e(t,i){i>r&&(n=t,r=i),eS(f,t).forEach(t=>{e(t.id,i+1)})}(g,0),f.find(e=>e.id===n)):null;if((t||i)&&c&&E){let t=new KeyboardEvent("keydown",{key:e.key,bubbles:!0});if(l||o){let n=(null==(p=c.context)?void 0:p.elements.domReference)===e.currentTarget,r=o&&!n?null==(v=c.context)?void 0:v.elements.domReference:l?s.current.find(e=>(null==e?void 0:e.id)===Z):null;r&&(eC(e),r.dispatchEvent(t),Y(void 0))}if((u||i)&&c.context&&c.context.open&&c.parentId&&e.currentTarget!==c.context.elements.domReference)return eC(e),void(null==(_=c.context.elements.domReference)||_.dispatchEvent(t))}return en(e)}if(n||b||!t){if(c){let t=tU(e.key,et());D.current=h&&t?null:e.key}h?a&&(eC(e),n?(L.current=eO(s,J.current),O()):r(!0,e.nativeEvent,"list-navigation")):u&&(null!=d&&(L.current=d),eC(e),!n&&b?r(!0,e.nativeEvent,"list-navigation"):en(e),n&&O())}},onFocus(){n&&!y&&(L.current=-1,O())},onPointerDown:t,onPointerEnter:t,onMouseDown:e,onClick:e}},[Z,er,C,en,J,v,s,h,O,r,n,b,S,et,m,d,M,y,E]);return i.useMemo(()=>c?{reference:el,floating:ei,item:ee}:{},[c,el,ei,ee])}(R,{activeIndex:g,listRef:_,onNavigate:m}),function(e,t){var n;let{open:r,dataRef:l}=e,{listRef:o,activeIndex:s,onMatch:a,onTypingChange:u,enabled:c=!0,findMatch:d=null,resetMs:f=750,ignoreKeys:g=[],selectedIndex:h=null}=t,p=i.useRef(-1),m=i.useRef(""),y=i.useRef(null!=(n=null!=h?h:s)?n:-1),v=i.useRef(null),_=eF(a),b=eF(u),x=eA(d),S=eA(g);eT(()=>{r&&(ty(p),v.current=null,m.current="")},[r]),eT(()=>{var e;r&&""===m.current&&(y.current=null!=(e=null!=h?h:s)?e:-1)},[r,h,s]);let w=eF(e=>{e?l.current.typing||(l.current.typing=e,b(e)):l.current.typing&&(l.current.typing=e,b(e))}),C=eF(e=>{function t(e,t,n){let r=x.current?x.current(t,n):t.find(e=>0===(null==e?void 0:e.toLocaleLowerCase().indexOf(n.toLocaleLowerCase())));return r?e.indexOf(r):-1}let n=o.current;if(m.current.length>0&&" "!==m.current[0]&&(-1===t(n,n,m.current)?w(!1):" "===e.key&&eC(e)),null==n||S.current.includes(e.ke
1y)||1!==e.key.length||e.ctrlKey||e.metaKey||e.altKey)return;r&&" "!==e.key&&(eC(e),w(!0)),n.every(e=>{var t,n;return!e||(null==(t=e[0])?void 0:t.toLocaleLowerCase())!==(null==(n=e[1])?void 0:n.toLocaleLowerCase())})&&m.current===e.key&&(m.current="",y.current=v.current),m.current+=e.key,ty(p),p.current=window.setTimeout(()=>{m.current="",y.current=v.current,w(!1)},f);let i=y.current,l=t(n,[...n.slice((i||0)+1),...n.slice(0,(i||0)+1)],m.current);-1!==l?(_(l),v.current=l):" "!==e.key&&(m.current="",w(!1))}),k=i.useMemo(()=>({onKeyDown:C}),[C]),E=i.useMemo(()=>({onKeyDown:C,onKeyUp(e){" "===e.key&&w(!1)}}),[C,w]);return i.useMemo(()=>c?{reference:k,floating:E}:{},[c,k,E])}(R,{activeIndex:g,enabled:y,listRef:w,onMatch:m})]),[J,H]=(0,i.useState)([]);return(0,i.useEffect)(()=>{function t(t){t.preventDefault(),E.setPositionReference({getBoundingClientRect:()=>({bottom:t.clientY,height:0,left:t.clientX,right:t.clientX,top:t.clientY,width:0,x:t.clientX,y:t.clientY})});let i=[];e&&f.read(()=>{let n=(0,a.xL4)(t.target);n&&(i=e.filter(e=>!e.$showOn||e.$showOn(n)))});let l=i.map((e,t)=>"separator"===e.type?{className:r,key:e.key+"-"+t,type:e.type}:{className:n,disabled:e.disabled,icon:e.icon,key:e.key,label:e.title,onClick:()=>f.update(()=>e.$onSelect()),title:e.title,type:e.type});w.current=l.map(e=>e.key),H(l),v(!0)}return document.addEventListener("contextmenu",t),()=>{document.removeEventListener("contextmenu",t)}},[e,n,r,E,f]),(0,l.jsx)(tF,{children:y&&(0,l.jsx)(tz,{lockScroll:!0,children:(0,l.jsx)(tD,{context:R,initialFocus:E.floating,children:(0,l.jsx)("div",{className:t,ref:E.setFloating,style:N,...W(),children:J.map((e,t)=>"item"===e.type?(0,l.jsx)(t1,{...j({...e,onClick(){e.onClick(),v(!1)},onMouseUp(){e.onClick(),v(!1)},ref(e){_.current[t]=e},tabIndex:g===t?0:-1})}):"separator"===e.type?(0,l.jsx)(t0,{...j({...e,ref(e){_.current[t]=e},tabIndex:g===t?0:-1})}):void 0)})})})})})},8293:()=>{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},8625:(e,t,n)=>{"use strict";n.d(t,{B9:()=>a,Ej:()=>eB,FY:()=>eE,GA:()=>L,HA:()=>eA,Ln:()=>H,Ng:()=>g,O8:()=>F,RN:()=>v,TX:()=>eR,Xx:()=>f,Ze:()=>E,be:()=>z,cn:()=>ei,ex:()=>O,hi:()=>eT,hx:()=>y,kC:()=>A,kN:()=>M,np:()=>d,nq:()=>eD,o5:()=>s,pA:()=>k,pK:()=>eF,py:()=>p,sJ:()=>C,tV:()=>K,xT:()=>eK,xp:()=>er,zp:()=>S});var r=n(43971),i=n(53310),l=n(35374);let o=/^(\d+(?:\.\d+)?)px$/,s={BOTH:3,COLUMN:2,NO_STATUS:0,ROW:1};class a extends i.fGB{static getType(){return"tablecell"}static clone(e){return new a(e.__headerState,e.__colSpan,e.__width,e.__key)}afterCloneFrom(e){super.afterCloneFrom(e),this.__rowSpan=e.__rowSpan,this.__backgroundColor=e.__backgroundColor,this.__verticalAlign=e.__verticalAlign}static importDOM(){return{td:e=>({conversion:c,priority:0}),th:e=>({conversion:c,priority:0})}}static importJSON(e){return d().updateFromJSON(e)}updateFromJSON(e){return super.updateFromJSON(e).setHeaderStyles(e.headerState).setColSpan(e.colSpan||1).setRowSpan(e.rowSpan||1).setWidth(e.width||void 0).setBackgroun
1dColor(e.backgroundColor||null).setVerticalAlign(e.verticalAlign||void 0)}constructor(e=s.NO_STATUS,t=1,n,r){super(r),this.__colSpan=t,this.__rowSpan=1,this.__headerState=e,this.__width=n,this.__backgroundColor=null,this.__verticalAlign=void 0}createDOM(e){let t=document.createElement(this.getTag());return this.__width&&(t.style.width=`${this.__width}px`),this.__colSpan>1&&(t.colSpan=this.__colSpan),this.__rowSpan>1&&(t.rowSpan=this.__rowSpan),null!==this.__backgroundColor&&(t.style.backgroundColor=this.__backgroundColor),u(this.__verticalAlign)&&(t.style.verticalAlign=this.__verticalAlign),(0,r.ZB)(t,e.theme.tableCell,this.hasHeader()&&e.theme.tableCellHeader),t}exportDOM(e){let t=super.exportDOM(e);if((0,i.sby)(t.element)){let e=t.element;e.setAttribute("data-temporary-table-cell-lexical-key",this.getKey()),e.style.border="1px solid black",this.__colSpan>1&&(e.colSpan=this.__colSpan),this.__rowSpan>1&&(e.rowSpan=this.__rowSpan),e.style.width=`${this.getWidth()||75}px`,e.style.verticalAlign=this.getVerticalAlign()||"top",e.style.textAlign="start",null===this.__backgroundColor&&this.hasHeader()&&(e.style.backgroundColor="#f2f3f5")}return t}exportJSON(){return{...super.exportJSON(),...u(this.__verticalAlign)&&{verticalAlign:this.__verticalAlign},backgroundColor:this.getBackgroundColor(),colSpan:this.__colSpan,headerState:this.__headerState,rowSpan:this.__rowSpan,width:this.getWidth()}}getColSpan(){return this.getLatest().__colSpan}setColSpan(e){let t=this.getWritable();return t.__colSpan=e,t}getRowSpan(){return this.getLatest().__rowSpan}setRowSpan(e){let t=this.getWritable();return t.__rowSpan=e,t}getTag(){return this.hasHeader()?"th":"td"}setHeaderStyles(e,t=s.BOTH){let n=this.getWritable();return n.__headerState=e&t|n.__headerState&~t,n}getHeaderStyles(){return this.getLatest().__headerState}setWidth(e){let t=this.getWritable();return t.__width=e,t}getWidth(){return this.getLatest().__width}getBackgroundColor(){return this.getLatest().__backgroundColor}setBackgroundColor(e){let t=this.getWritable();return t.__backgroundColor=e,t}getVerticalAlign(){return this.getLatest().__verticalAlign}setVerticalAlign(e){let t=this.getWritable();return t.__verticalAlign=e||void 0,t}toggleHeaderStyle(e){let t=this.getWritable();return(t.__headerState&e)===e?t.__headerState-=e:t.__headerState+=e,t}hasHeaderState(e){return(this.getHeaderStyles()&e)===e}hasHeader(){return this.getLatest().__headerState!==s.NO_STATUS}updateDOM(e){return e.__headerState!==this.__headerState||e.__width!==this.__width||e.__colSpan!==this.__colSpan||e.__rowSpan!==this.__rowSpan||e.__backgroundColor!==this.__backgroundColor||e.__verticalAlign!==this.__verticalAlign}isShadowRoot(){return!0}collapseAtStart(){return!0}canBeEmpty(){return!1}canIndent(){return!1}}function u(e){return"middle"===e||"bottom"===e}function c(e){let t,n=e.nodeName.toLowerCase();o.test(e.style.width)&&(t=parseFloat(e.style.width));let r=d("th"===n?s.ROW:s.NO_STATUS,e.colSpan,t);r.__rowSpan=e.rowSpan;let l=e.style.backgroundColor;""!==l&&(r.__backgroundColor=l);let a=e.style.verticalAlign;u(a)&&(r.__verticalAlign=a);let c=e.style,f=(c&&c.textDecoration||"").split(" "),g="700"===c.fontWeight||"bold"===c.fontWeight,h=f.includes("line-through"),p="italic"===c.fontStyle,m=f.includes("underline");return{after:e=>{let t=[],n=null,r=()=>{if(n){let e=n.getFirstChild();(0,i.wH$)(e)&&1===n.getChildrenSize()&&e.remove()}};for(let l of e)(0,i.Gew)(l)||(0,i.kFe)(l)||(0,i.wH$)(l)?((0,i.kFe)(l)&&(g&&l.toggleFormat("bold"),h&&l.toggleFormat("strikethrough"),p&&l.toggleFormat("italic"),m&&l.toggleFormat("underline")),n?n.append(l):(n=(0,i.lJ7)().append(l),t.push(n))):(t.push(l),r(),n=null);return r(),0===t.length&&t.push((0,i.lJ7)()),t},node:r}}function d(e=s.NO_STATUS,t=1,n){return(0,i.pTq)(new a(e,t,n))}function f(e){return e instanceof a}let g=(0,i.guI)("INSERT_TABLE_COMMAND");function h(e,...t){let n=new URL("https://lexical.dev/docs/error"),r=new URLSearchParams;for(let n of(r.append("code",e),t))r.append("v",n);throw n.search=r.toString(),Error(`Minified Lexical error #${e}; visit ${n.toString()} for the full message or use the non-minified dev environment for full errors and additional helpful warnings.`)}class p extends i.fGB{static getType(){return"tablerow"}static clone(e){return new p(e.__height,e.__key)}static importDOM(){return{tr:e=>({conversion:m,priority:0})}}static importJSON(e){return y().updateFromJSON(e)}updateFromJSON(e){return super.updateFromJSON(e).setHeight(e.height)}constructor(e,t){super(t),this.__height=e}exportJSON(){let e=this.getHeight();return{...super.exportJSON(),...void 0===e?void 0:{height:e}}}createDOM(e){let t=document.createElement("tr");return this.__height&&(t.style.height=`${this.__height}px`),(0,r.ZB)(t,e.theme.tableRow),t}extractWithChild(e,t,n){return"html"===n}isShadowRoot(){return!0}setHeight(e){let t=this.getWritable();return t.__height=e,t}getHeight(){return this.getLatest().__height}updateDOM(e){return e.__height!==this.__height}canBeEmpty(){return!1}canIndent(){return!1}}function m(e){let t;return o.test(e.style.height)&&(t=parseFloat(e.style.height)),{after:e=>(0,r.cE)(e,f),node:y(t)}}function y(e){return(0,i.pTq)(new p(e))}function v(e){return e instanceof p}let _="undefined"!=typeof window&&void 0!==window.document&&void 0!==window.document.createElement,b=_&&"documentMode"in document?document.documentMode:null,x=_&&/^(?!.*Seamonkey)(?=.*Firefox).*/i.test(navigator.userAgent);function S(e){let t=(0,r.Bt)(e,e=>f(e));return f(t)?t:null}function w(e){let t=(0,r.Bt)(e,e=>v(e));if(v(t))return t;throw Error("Expected table cell to be inside of table row.")}function C(e){let t=(0,r.Bt)(e,e=>eR(e));if(eR(t))return t;throw Error("Expected table cell to be inside of table.")}function k(e){let t=w(e);return C(t).getChildren().findIndex(e=>e.is(t))}function E(e){return w(e).getChildren().findIndex(t=>t.is(e))}_&&"InputEvent"in window&&!b&&new window.InputEvent("input");let T=(e,t)=>
1e===s.BOTH||e===t?t:s.NO_STATUS,A=function(e=!0){let t=(0,i.vJq)();(0,i.I2P)(t)||H(t)||h(188);let n=t.anchor.getNode(),r=t.focus.getNode(),[l]=z(n),[o,,s]=z(r),[,a,u]=B(s,o,l),{startRow:c}=u,{startRow:d}=a;return e?N(c+l.__rowSpan>d+o.__rowSpan?l:o,!0):N(d<c?o:l,!1)};function N(e,t=!0){let[,,n]=z(e),[r,l]=B(n,e,e),o=r[0].length,{startRow:a}=l,u=null;if(t){let t=a+e.__rowSpan-1,l=r[t],c=y();for(let e=0;e<o;e++){let{cell:n,startRow:r}=l[e];if(r+n.__rowSpan-1<=t){let t=T(l[e].cell.__headerState,s.COLUMN);c.append(d(t).append((0,i.lJ7)()))}else n.setRowSpan(n.__rowSpan+1)}let f=n.getChildAtIndex(t);v(f)||h(256),f.insertAfter(c),u=c}else{let e=r[a],t=y();for(let n=0;n<o;n++){let{cell:r,startRow:l}=e[n];if(l===a){let r=T(e[n].cell.__headerState,s.COLUMN);t.append(d(r).append((0,i.lJ7)()))}else r.setRowSpan(r.__rowSpan+1)}let l=n.getChildAtIndex(a);v(l)||h(257),l.insertBefore(t),u=t}return u}let F=function(e=!0){let t=(0,i.vJq)();(0,i.I2P)(t)||H(t)||h(188);let n=t.anchor.getNode(),r=t.focus.getNode(),[l]=z(n),[o,,s]=z(r),[,a,u]=B(s,o,l),{startColumn:c}=u,{startColumn:d}=a;return e?R(c+l.__colSpan>d+o.__colSpan?l:o,!0):R(d<c?o:l,!1)};function R(e,t=!0,n=!0){let[,,r]=z(e),[l,o]=B(r,e,e),a=l.length,{startColumn:u}=o,c=t?u+e.__colSpan-1:u-1,f=r.getFirstChild();v(f)||h(120);let g=null;function p(e=s.NO_STATUS){let t=d(e).append((0,i.lJ7)());return null===g&&(g=t),t}let m=f;e:for(let e=0;e<a;e++){if(0!==e){let e=m.getNextSibling();v(e)||h(121),m=e}let t=l[e],n=T(t[c<0?0:c].cell.__headerState,s.ROW);if(c<0){P(m,p(n));continue}let{cell:r,startColumn:i,startRow:o}=t[c];if(i+r.__colSpan-1<=c){let i=r,l=o,s=c;for(;l!==e&&i.__rowSpan>1;){if(!((s-=r.__colSpan)>=0)){m.append(p(n));continue e}{let{cell:e,startRow:n}=t[s];i=e,l=n}}i.insertAfter(p(n))}else r.setColSpan(r.__colSpan+1)}null!==g&&n&&I(g);let y=r.getColWidths();if(y){let e=[...y],t=c<0?0:c,n=e[t];e.splice(t,0,n),r.setColWidths(e)}return g}let M=function(){let e=(0,i.vJq)();(0,i.I2P)(e)||H(e)||h(188);let[t,n]=e.isBackward()?[e.focus.getNode(),e.anchor.getNode()]:[e.anchor.getNode(),e.focus.getNode()],[r,,l]=z(t),[o]=z(n),[s,a,u]=B(l,r,o),{startRow:c}=a,{startRow:d}=u,f=d+o.__rowSpan-1;if(s.length===f-c+1)return void l.remove();let g=s[0].length,p=s[f+1],m=l.getChildAtIndex(f+1);for(let e=f;e>=c;e--){for(let t=g-1;t>=0;t--){let{cell:n,startRow:r,startColumn:i}=s[e][t];if(i===t){if(r<c||r+n.__rowSpan-1>f){let e=Math.max(r,c),t=Math.min(n.__rowSpan+r-1,f),i=e<=t?t-e+1:0;n.setRowSpan(n.__rowSpan-i)}if(r>=c&&r+n.__rowSpan-1>f&&e===f){null===m&&h(122);let r=null;for(let n=0;n<t;n++){let t=p[n],i=t.cell;t.startRow===e+1&&(r=i),i.__colSpan>1&&(n+=i.__colSpan-1)}null===r?P(m,n):r.insertAfter(n)}}}let t=l.getChildAtIndex(e);v(t)||h(206,String(e)),t.remove()}if(void 0!==p){let{cell:e}=p[0];I(e)}else{let{cell:e}=s[c-1][0];I(e)}},O=function(){let e=(0,i.vJq)();(0,i.I2P)(e)||H(e)||h(188);let t=e.anchor.getNode(),n=e.focus.getNode(),[r,,l]=z(t),[o]=z(n),[s,a,u]=B(l,r,o),{startColumn:c}=a,{startRow:d,startColumn:f}=u,g=Math.min(c,f),p=Math.max(c+r.__colSpan-1,f+o.__colSpan-1),m=p-g+1;if(s[0].length===p-g+1)return l.selectPrevious(),void l.remove();let y=s.length;for(let e=0;e<y;e++)for(let t=g;t<=p;t++){let{cell:n,startColumn:r}=s[e][t];if(r<g){if(t===g){let e=g-r;n.setColSpan(n.__colSpan-Math.min(m,n.__colSpan-e))}}else if(r+n.__colSpan-1>p){if(t===p){let e=p-r+1;n.setColSpan(n.__colSpan-e)}}else n.remove()}let v=s[d],_=c>f?v[c+r.__colSpan]:v[f+o.__colSpan];if(void 0!==_){let{cell:e}=_;I(e)}else{let{cell:e}=f<c?v[f-1]:v[c-1];I(e)}let b=l.getColWidths();if(b){let e=[...b];e.splice(g,m),l.setColWidths(e)}};function I(e){let t=e.getFirstDescendant();null==t?e.selectStart():t.getParentOrThrow().selectStart()}function P(e,t){let n=e.getFirstChild();null!==n?n.insertBefore(t):e.append(t)}function L(){let e=(0,i.vJq)();(0,i.I2P)(e)||H(e)||h(188);let t=e.anchor.getNode(),n=(0,r.Bt)(t,f);return f(n)||h(148),D(n)}function D(e){let[t,n,r]=z(e),l=t.__colSpan,o=t.__rowSpan;if(1===l&&1===o)return;let[a,u]=B(r,t,t),{startColumn:c,startRow:f}=u,g=t.__headerState&s.COLUMN,p=Array.from({length:l},(e,t)=>{let n=g;for(let e=0;0!==n&&e<a.length;e++)n&=a[e][t+c].cell.__headerState;return n}),m=t.__headerState&s.ROW,y=Array.from({length:o},(e,t)=>{let n=m;for(let e=0;0!==n&&e<a[0].length;e++)n&=a[t+f][e].cell.__headerState;return n});if(l>1){for(let e=1;e<l;e++)t.insertAfter(d(p[e]|y[0]).append((0,i.lJ7)()));t.setColSpan(1)}if(o>1){let e;for(let t=1;t<o;t++){let r=f+t,o=a[r];v(e=(e||n).getNextSibling())||h(125);let s=null;for(let e=0;e<c;
1e++){let t=o[e],n=t.cell;t.startRow===r&&(s=n),n.__colSpan>1&&(e+=n.__colSpan-1)}if(null===s)for(let n=l-1;n>=0;n--)P(e,d(p[n]|y[t]).append((0,i.lJ7)()));else for(let e=l-1;e>=0;e--)s.insertAfter(d(p[e]|y[t]).append((0,i.lJ7)()))}t.setRowSpan(1)}}function B(e,t,n){let[r,i,l]=K(e,t,n);return null===i&&h(207),null===l&&h(208),[r,i,l]}function K(e,t,n){let r=[],i=null,l=null;function o(e){let t=r[e];return void 0===t&&(r[e]=t=[]),t}let s=e.getChildren();for(let e=0;e<s.length;e++){let r=s[e];v(r)||h(209);let a=o(e);for(let u=r.getFirstChild(),c=0;null!=u;u=u.getNextSibling()){for(f(u)||h(147);void 0!==a[c];)c++;let r={cell:u,startColumn:c,startRow:e},{__rowSpan:d,__colSpan:g}=u;for(let t=0;t<d&&!(e+t>=s.length);t++){let n=o(e+t);for(let e=0;e<g;e++)n[c+e]=r}null!==t&&null===i&&t.is(u)&&(i=r),null!==n&&null===l&&n.is(u)&&(l=r)}}return[r,i,l]}function z(e){let t;if(e instanceof a)t=e;else if("__type"in e){let n=(0,r.Bt)(e,f);f(n)||h(148),t=n}else{let n=(0,r.Bt)(e.getNode(),f);f(n)||h(148),t=n}let n=t.getParent();v(n)||h(149);let i=n.getParent();return eR(i)||h(210),[t,n,i]}function $(e,t,n){let r,i=Math.min(t.startColumn,n.startColumn),l=Math.min(t.startRow,n.startRow),o=Math.max(t.startColumn+t.cell.__colSpan-1,n.startColumn+n.cell.__colSpan-1),s=Math.max(t.startRow+t.cell.__rowSpan-1,n.startRow+n.cell.__rowSpan-1);do{r=!1;for(let t=0;t<e.length;t++)for(let n=0;n<e[0].length;n++){let a=e[t][n];if(!a)continue;let u=a.startColumn+a.cell.__colSpan-1,c=a.startRow+a.cell.__rowSpan-1,d=a.startColumn<=o&&u>=i,f=a.startRow<=s&&c>=l;if(d&&f){let e=Math.min(i,a.startColumn),t=Math.max(o,u),n=Math.min(l,a.startRow),d=Math.max(s,c);e===i&&t===o&&n===l&&d===s||(i=e,o=t,l=n,s=d,r=!0)}}}while(r);return{maxColumn:o,maxRow:s,minColumn:i,minRow:l}}function W(e){let[t,,n]=z(e),r=n.getChildren(),i=r.length,l=r[0].getChildren().length,o=Array(i);for(let e=0;e<i;e++)o[e]=Array(l);for(let e=0;e<i;e++){let n=r[e].getChildren(),i=0;for(let r=0;r<n.length;r++){for(;o[e][i];)i++;let l=n[r],s=l.__rowSpan||1,a=l.__colSpan||1;for(let t=0;t<s;t++)for(let n=0;n<a;n++)o[e+t][i+n]=l;if(t===l)return{colSpan:a,columnIndex:i,rowIndex:e,rowSpan:s};i+=a}}return null}function j(e){let[[t,n,i,l],[o,s,a,u]]=["anchor","focus"].map(t=>{let n=e[t].getNode(),i=(0,r.Bt)(n,f);f(i)||h(238,t,n.getKey(),n.getType());let l=i.getParent();v(l)||h(239,t);let o=l.getParent();return eR(o)||h(240,t),[n,i,l,o]});return l.is(u)||h(241),{anchorCell:n,anchorNode:t,anchorRow:i,anchorTable:l,focusCell:s,focusNode:o,focusRow:a,focusTable:u}}class J{constructor(e,t,n){this.anchor=t,this.focus=n,t._selection=this,n._selection=this,this._cachedNodes=null,this.dirty=!1,this.tableKey=e}getStartEndPoints(){return[this.anchor,this.focus]}isValid(){return"root"!==this.tableKey&&"root"!==this.anchor.key&&"element"===this.anchor.type&&"root"!==this.focus.key&&"element"===this.focus.type}isBackward(){return this.focus.isBefore(this.anchor)}getCachedNodes(){return this._cachedNodes}setCachedNodes(e){this._cachedNodes=e}is(e){return H(e)&&this.tableKey===e.tableKey&&this.anchor.is(e.anchor)&&this.focus.is(e.focus)}set(e,t,n){this.dirty=this.dirty||e!==this.tableKey||t!==this.anchor.key||n!==this.focus.key,this.tableKey=e,this.anchor.key=t,this.focus.key=n,this._cachedNodes=null}clone(){return new J(this.tableKey,(0,i.z8s)(this.anchor.key,this.anchor.offset,this.anchor.type),(0,i.z8s)(this.focus.key,this.focus.offset,this.focus.type))}isCollapsed(){return!1}extract(){return this.getNodes()}insertRawText(e){}insertText(){}hasFormat(e){let t=0;this.getNodes().filter(f).forEach(e=>{let n=e.getFirstChild();(0,i.bSg)(n)&&(t|=n.getTextFormat())});let n=i.LZn[e];return!!(t&n)}insertNodes(e){let t=this.focus.getNode();(0,i.ff4)(t)||h(151),(0,i.CaD)(t.select(0,t.getChildrenSize())).insertNodes(e)}getShape(){let{anchorCell:e,focusCell:t}=j(this),n=W(e);null===n&&h(153);let r=W(t);null===r&&h(155);let i=Math.min(n.columnIndex,r.columnIndex),l=Math.max(n.columnIndex+n.colSpan-1,r.columnIndex+r.colSpan-1),o=Math.min(n.rowIndex,r.rowIndex),s=Math.max(n.rowIndex+n.rowSpan-1,r.rowIndex+r.rowSpan-1);return{fromX:Math.min(i,l),fromY:Math.min(o,s),toX:Math.max(i,l),toY:Math.max(o,s)}}getNodes(){if(!this.isValid())return[];let e=this._cachedNodes;if(null!==e)return e;let{anchorTable:t,anchorCell:n,focusCell:r}=j(this),l=r.getParents()[1];if(l!==t){if(t.isParentOf(r)){let e=l.getParent();null==e&&h(159),this.set(this.tableKey,r.getKey(),e.getKey())}else{let e=t.getParent();null==e&&h(158),this.set(this.tableKey,e.getKey(),r.getKey())}return this.getNodes()}let[o,s,a]=B(t,n,r),{minColumn:u,maxColumn:c,minRow:d,maxRow:f}=$(o,s,a),g=new Map([[t.getKey(),t]]),p=null;for(let e=d;e<=f;
1e++)for(let t=u;t<=c;t++){let{cell:n}=o[e][t],r=n.getParent();v(r)||h(160),r!==p&&(g.set(r.getKey(),r),p=r),g.has(n.getKey())||function(e,t){let n=[[e]];for(let e=n.at(-1);void 0!==e&&n.length>0;e=n.at(-1)){let r=e.pop();void 0===r?n.pop():!1!==t(r)&&(0,i.ff4)(r)&&n.push(r.getChildren())}}(n,e=>{g.set(e.getKey(),e)})}let m=Array.from(g.values());return(0,i.GcU)()||(this._cachedNodes=m),m}getTextContent(){let e=this.getNodes().filter(e=>f(e)),t="";for(let n=0;n<e.length;n++){let r=e[n],i=r.__parent,l=(e[n+1]||{}).__parent;t+=r.getTextContent()+(l!==i?"\n":"	")}return t}}function H(e){return e instanceof J}function U(){return new J("root",(0,i.z8s)("root",0,"element"),(0,i.z8s)("root",0,"element"))}function q(e,t=(0,i.i0_)()){let n=(0,i.nsf)(e);eR(n)||h(231,e);let r=Y(n,t.getElementByKey(e));return null===r&&h(232,e),{tableElement:r,tableNode:n}}class Z{constructor(e,t){this.isHighlightingCells=!1,this.anchorX=-1,this.anchorY=-1,this.focusX=-1,this.focusY=-1,this.listenersToRemove=new Set,this.tableNodeKey=t,this.editor=e,this.table={columns:0,domRows:[],rows:0},this.tableSelection=null,this.anchorCellNodeKey=null,this.focusCellNodeKey=null,this.anchorCell=null,this.focusCell=null,this.hasHijackedSelectionStyles=!1,this.isSelecting=!1,this.pointerType=null,this.shouldCheckSelection=!1,this.abortController=new AbortController,this.listenerOptions={signal:this.abortController.signal},this.nextFocus=null,this.trackTable()}getTable(){return this.table}removeListeners(){this.abortController.abort("removeListeners"),Array.from(this.listenersToRemove).forEach(e=>e()),this.listenersToRemove.clear()}$lookup(){return q(this.tableNodeKey,this.editor)}trackTable(){let e=new MutationObserver(e=>{this.editor.getEditorState().read(()=>{let t=!1;for(let n=0;n<e.length;n++){let r=e[n].target.nodeName;if("TABLE"===r||"TBODY"===r||"THEAD"===r||"TR"===r){t=!0;break}}if(!t)return;let{tableNode:n,tableElement:r}=this.$lookup();this.table=eo(n,r)},{editor:this.editor})});this.editor.getEditorState().read(()=>{let{tableNode:t,tableElement:n}=this.$lookup();this.table=eo(t,n),e.observe(n,{attributes:!0,childList:!0,subtree:!0})},{editor:this.editor})}$clearHighlight(){let e=this.editor;this.isHighlightingCells=!1,this.anchorX=-1,this.anchorY=-1,this.focusX=-1,this.focusY=-1,this.tableSelection=null,this.anchorCellNodeKey=null,this.focusCellNodeKey=null,this.anchorCell=null,this.focusCell=null,this.hasHijackedSelectionStyles=!1,this.$enableHighlightStyle();let{tableNode:t,tableElement:n}=this.$lookup();es(e,eo(t,n),null),null!==(0,i.vJq)()&&((0,i.n1P)(null),e.dispatchCommand(i.MvL,void 0))}$enableHighlightStyle(){let e=this.editor,{tableElement:t}=this.$lookup();(0,r.HE)(t,e._config.theme.tableSelection),t.classList.remove("disable-selection"),this.hasHijackedSelectionStyles=!1}$disableHighlightStyle(){let{tableElement:e}=this.$lookup();(0,r.ZB)(e,this.editor._config.theme.tableSelection),this.hasHijackedSelectionStyles=!0}$updateTableTableSelection(e){if(null!==e){e.tableKey!==this.tableNodeKey&&h(233,e.tableKey,this.tableNodeKey);let t=this.editor;this.tableSelection=e,this.isHighlightingCells=!0,this.$disableHighlightStyle(),this.updateDOMSelection(),es(t,this.table,this.tableSelection)}else this.$clearHighlight()}setShouldCheckSelection(){this.shouldCheckSelection=!0}getAndClearShouldCheckSelection(){return!!this.shouldCheckSelection&&(this.shouldCheckSelection=!1,!0)}setNextFocus(e){this.nextFocus=e}getAndClearNextFocus(){let{nextFocus:e}=this;return null!==e&&(this.nextFocus=null),e}updateDOMSelection(){if(null!==this.anchorCell&&null!==this.focusCell){let e=(0,i.peL)(this.editor._window);e&&e.rangeCount>0&&e.removeAllRanges()}}$setFocusCellForSelection(e,t=!1){let n=this.editor,{tableNode:r}=this.$lookup(),l=e.x,o=e.y;if(this.focusCell=e,this.isHighlightingCells||this.anchorX===l&&this.anchorY===o&&!t){if(l===this.focusX&&o===this.focusY)return!1}else this.isHighlightingCells=!0,this.$disableHighlightStyle();if(this.focusX=l,this.focusY=o,this.isHighlightingCells){let t=ew(r,e.elem);if(null!=this.tableSelection&&null!=this.anchorCellNodeKey&&null!==t)return this.focusCellNodeKey=t.getKey(),this.tableSelection=function(e,t,n){e.getKey(),t.getKey(),n.getKey();let r=(0,i.vJq)(),l=H(r)?r.clone():U();return l.set(e.getKey(),t.getKey(),n.getKey()),l}(r,this.$getAnchorTableCellOrThrow(),t),(0,i.n1P)(this.tableSelection),n.dispatchCommand(i.MvL,void 0),es(n,this.table,this.tableSelection),!0}return!1}$getAnchorTableCell(){return this.anchorCellNodeKey?(0,i.nsf)(this.anchorCellNodeKey):null}$getAnchorTableCellOrThrow(){let e=this.$getAnchorTableCell();return null===e&&h(234),e}$getFocusTableCell(){return this.focusCellNodeKey?(0,i.nsf)(this.focusCellNodeKey):null}$getFocusTableCellOrThrow(){let e=this.$getFocusTableCell();return null===e&&h(235),e}
1$setAnchorCellForSelection(e){this.isHighlightingCells=!1,this.anchorCell=e,this.anchorX=e.x,this.anchorY=e.y;let{tableNode:t}=this.$lookup(),n=ew(t,e.elem);if(null!==n){let e=n.getKey();this.tableSelection=null!=this.tableSelection?this.tableSelection.clone():U(),this.anchorCellNodeKey=e}}$formatCells(e){let t=(0,i.vJq)();H(t)||h(236);let n=(0,i.uTE)(),r=n.anchor,l=n.focus,o=t.getNodes().filter(f);o.length>0||h(237);let s=o[0].getFirstChild(),a=(0,i.bSg)(s)?s.getFormatFlags(e,null):null;o.forEach(t=>{r.set(t.getKey(),0,"element"),l.set(t.getKey(),t.getChildrenSize(),"element"),n.formatText(e,a)}),(0,i.n1P)(t),this.editor.dispatchCommand(i.MvL,void 0)}$clearText(){let{editor:e}=this,t=(0,i.nsf)(this.tableNodeKey);if(!eR(t))throw Error("Expected TableNode.");let n=(0,i.vJq)();H(n)||h(253);let r=n.getNodes().filter(f),l=t.getFirstChild(),o=t.getLastChild();if(r.length>0&&null!==l&&null!==o&&v(l)&&v(o)&&r[0]===l.getFirstChild()&&r[r.length-1]===o.getLastChild()){t.selectPrevious();let n=t.getParent();return t.remove(),void((0,i.hVZ)(n)&&n.isEmpty()&&e.dispatchCommand(i.XKQ,void 0))}r.forEach(e=>{if((0,i.ff4)(e)){let t=(0,i.lJ7)(),n=(0,i.sTu)();
1t.append(n),e.append(t),e.getChildren().forEach(e=>{e!==t&&e.remove()})}}),es(e,this.table,null),(0,i.n1P)(null),e.dispatchCommand(i.MvL,void 0)}}let V="__lexicalTableSelection";function G(e){return(0,i.sby)(e)&&"TABLE"===e.nodeName}function Y(e,t){if(!t)return t;let n=G(t)?t:e.getDOMSlot(t).element;return"TABLE"!==n.nodeName&&h(245,t.nodeName),n}function X(e){return e._window}function Q(e,t){for(let n=t,r=null;null!==n;n=n.getParent()){if(e.is(n))return r;f(n)&&(r=n)}return null}let ee=[[i.bbF,"down"],[i.UDz,"up"],[i.AX0,"backward"],[i.JM3,"forward"]],et=[i.hi0,i.viC,i.WuB],en=[i.gCZ,i.w$Z];function er(e){return e[V]||null}function ei(e){let t=e;for(;null!=t;){let e=t.nodeName;if("TD"===e||"TH"===e){let e=t._cell;return void 0===e?null:e}t=t.parentNode}return null}function el(e,t){if(!e.contains(t))return null;let n=null;for(let r=t;null!=r;r=r.parentNode){if(r===e)return n;let t=r.nodeName;"TD"!==t&&"TH"!==t||(n=r._cell||null)}return null}function eo(e,t){let n=[],r={columns:0,domRows:n,rows:0},i=Y(e,t).querySelector("tr"),l=0,o=0;for(n.length=0;null!=i;){let e=i.nodeName;if("TD"===e||"TH"===e){let e={elem:i,hasBackgroundColor:""!==i.style.backgroundColor,highlighted:!1,x:l,y:o};i._cell=e;let t=n[o];void 0===t&&(t=n[o]=[]),t[l]=e}else{let e=i.firstChild;if(null!=e){i=e;continue}}let t=i.nextSibling;if(null!=t){l++,i=t;continue}let r=i.parentNode;if(null!=r){let e=r.nextSibling;if(null==e)break;o++,l=0,i=e}}return r.columns=l+1,r.rows=o+1,r}
1function es(e,t,n){let r=new Set(n?n.getNodes():[]);ea(t,(t,n)=>{let i=t.elem;r.has(n)?(t.highlighted=!0,ep(e,t)):(t.highlighted=!1,em(e,t),i.getAttribute("style")||i.removeAttribute("style"))})}function ea(e,t){let{domRows:n}=e;for(let e=0;e<n.length;e++){let r=n[e];if(r)for(let n=0;n<r.length;n++){let l=r[n];if(!l)continue;let o=(0,i.xL4)(l.elem);null!==o&&t(l,o,{x:n,y:e})}}}function eu(e,t){t.$disableHighlightStyle(),ea(t.table,t=>{t.highlighted=!0,ep(e,t)})}function ec(e,t){let n,r;if(t.startColumn===e.minColumn)n="minColumn";else{if(t.startColumn+t.cell.__colSpan-1!==e.maxColumn)return null;n="maxColumn"}if(t.startRow===e.minRow)r="minRow";else{if(t.startRow+t.cell.__rowSpan-1!==e.maxRow)return null;r="maxRow"}return[n,r]}function ed([e,t]){return["minColumn"===e?"maxColumn":"minColumn","minRow"===t?"maxRow":"minRow"]}function ef(e,t,[n,r]){let i=t[r],l=e[i];void 0===l&&h(250,r,String(i));let o=t[n],s=l[o];return void 0===s&&h(250,n,String(o)),s}function eg(e,t){if((0,i.I2P)(e)||H(e)){let n=t.isParentOf(e.anchor.getNode()),r=t.isParentOf(e.focus.getNode());return n&&r}return!1}function eh(e,t){t?e.selectStart():e.selectEnd()}function ep(e,t){let n=t.elem,l=e._config.theme;f((0,i.xL4)(n))||h(131),(0,r.ZB)(n,l.tableCellSelected)}function em(e,t){let n=t.elem;f((0,i.xL4)(n))||h(131);let l=e._config.theme;(0,r.HE)(n,l.tableCellSelected)}function ey(e){let t=(0,r.Bt)(e,f);return f(t)?t:null}function ev(e){let t=(0,r.Bt)(e,eR);return eR(t)?t:null}function e_(e){e.preventDefault(),e.stopImmediatePropagation(),e.stopPropagation()}function eb(e,t,n){let r=(0,i.lJ7)();"first"===e?t.insertBefore(r):t.insertAfter(r),r.append(...n||[]),r.selectEnd()}function ex(e,t,n){let l=n.getParent();if(!l)return;let o=(0,i.peL)(X(e));if(!o)return;let s=o.anchorNode,a=e.getElementByKey(l.getKey()),u=Y(n,e.getElementByKey(n.getKey()));if(!s||!a||!u||!a.contains(s)||u.contains(s))return;let c=(0,r.Bt)(t.anchor.getNode(),e=>f(e));if(!c)return;let d=(0,r.Bt)(c,e=>eR(e));if(!eR(d)||!d.is(n))return;let[g,h]=B(n,c,c),p=g[0][0],m=g[g.length-1][g[0].length-1],{startRow:y,startColumn:v}=h,_=y===p.startRow&&v===p.startColumn,b=y===m.startRow&&v===m.startColumn;return _?"first":b?"last":void 0}function eS(e,t){let{tableNode:n}=e.$lookup(),r=n.getCordsFromCellNode(t,e.table);return n.getDOMCellFromCordsOrThrow(r.x,r.y,e.table)}function ew(e,t,n){return Q(e,(0,i.xL4)(t,n))}function eC(e,t,n){if(!t.theme.tableAlignment)return;let i=[],l=[];for(let e of["center","right"]){let r=t.theme.tableAlignment[e];r&&(e===n?l:i).push(r)}(0,r.HE)(e,...i),(0,r.ZB)(e,...l)}let ek=new WeakSet;function eE(e=(0,i.i0_)()){return ek.has(e)}function eT(e,t){t?ek.add(e):ek.delete(e)}class eA extends i.fGB{static getType(){return"table"}getColWidths(){return this.getLatest().__colWidths}setColWidths(e){let t=this.getWritable();return t.__colWidths=e,t}static clone(e){return new eA(e.__key)}afterCloneFrom(e){super.afterCloneFrom(e),this.__colWidths=e.__colWidths,this.__rowStriping=e.__rowStriping,this.__frozenColumnCount=e.__frozenColumnCount,this.__frozenRowCount=e.__frozenRowCount}static importDOM(){return{table:e=>({conversion:eN,priority:1})}}static importJSON(e){return eF().updateFromJSON(e)}updateFromJSON(e){return super.updateFromJSON(e).setRowStriping(e.rowStriping||!1).setFrozenColumns(e.frozenColumnCount||0).setFrozenRows(e.frozenRowCount||0).setColWidths(e.colWidths)}constructor(e){super(e),this.__rowStriping=!1,this.__frozenColumnCount=0,this.__frozenRowCount=0}exportJSON(){return{...super.exportJSON(),colWidths:this.getColWidths(),frozenColumnCount:this.__frozenColumnCount?this.__frozenColumnCount:void 0,frozenRowCount:this.__frozenRowCount?this.__frozenRowCount:void 0,rowStriping:this.__rowStriping?this.__rowStriping:void 0}}extractWithChild(e,t,n){return"html"===n}getDOMSlot(e){let t=G(e)?e:e.querySelector("table");return G(t)||h(229),super.getDOMSlot(e).withElement(t).withAfter(t.querySelector("colgroup"))}createDOM(e,t){let n=document.createElement("table");this.__style&&(n.style.cssText=this.__style);let l=document.createElement("colgroup");if(n.appendChild(l),(0,i.pd8)(l),(0,r.ZB)(n,e.theme.table),this.updateTableElement(null,n,e),eE(t)){let t=document.createElement("div"),i=e.theme.tableScrollableWrapper;return i?(0,r.ZB)(t,i):t.style.cssText="overflow-x: auto;",t.appendChild(n),this.updateTableWrapper(null,t,n,e),t}return n}updateTableWrapper(e,t,n,i){this.__frozenColumnCount!==(e?e.__frozenColumnCount:0)&&(this.__frozenColumnCount>0?((0,r.ZB)(t,i.theme.tableFrozenColumn),n.setAttribute("data-lexical-frozen-column","true")):((0,r.HE)(t,i.theme.tableFrozenColumn),n.removeAttribute("data-lexical-frozen-column"))),this.__frozenRowCount!==(e?e.__frozenRowCount:0)&&(this.__frozenRowCount>0?((0,r.ZB)(t,i.theme.tableFrozenRow),n.setAttribute("data-lexical-frozen-row","true")):((0,r.HE)(t,i.theme.tableFrozenRow),n.removeAttribute("data-lexical-frozen-row")))}updateTableElement(e,t,n){this.__style!==(e?e.__style:"")&&(t.style.cssText=this.__style),this.__rowStriping!==(!!e&&e.__rowStriping)&&(this.__rowStriping?((0,r.ZB)(t,n.theme.tableRowStriping),t.setAttribute("data-lexical-row-striping","true")):((0,r.HE)(t,n.theme.tableRowStriping),t.removeAttribute("data-lexical-row-striping"))),function(e,t,n,r){let i=e.querySelector("colgroup");if(!i)return;let l=[];for(let e=0;e<n;e++){let t=document.createElement("col"),n=r&&r[e];n&&(t.style.width=`${n}px`),l.push(t)}i.replaceChildren(...l)}(t,0,this.getColumnCount(),this.getColWidths()),eC(t,n,this.getFormatType())}updateDOM(e,t,n){let r=this.getDOMSlot(t).element;return t===r===eE()||((0,i.sby)(t)&&"DIV"===t.nodeName&&this.updateTableWrapper(e,t,r,n),this.updateTableElement(e,r,n),!1)}exportDOM(e){let t=super.exportDOM(e),{element:n}=t;return{after:n=>{if(t.after&&(n=t.after(n)),!G(n)&&(0,i.sby)(n)&&(n=n.querySelector("table")),!G(n))return null;eC(n,e._config,this.getFormatType());let[r]=K(this,null,null),l=new Map;for(let e of r)for(let t of e){let e=t.cell.getKey();l.has(e)||l.set(e,{colSpan:t.cell.getColSpan(),startColumn:t.startColumn})}let o=new Set;for(let e of n.querySelectorAll(":scope > tr > [data-temporary-table-cell-lexical-key]")){let t=e.getAttribute("data-temporary-table-cell-lexical-key");if(t){let n=l.get(t);if(e.removeAttribute("data-temporary-table-cell-lexical-key"),n){l.delete(t);for(let e=0;e<n.colSpan;e++)o.add(e+n.startColumn)}}}let s=n.querySelector(":scope > colgroup");if(s){let e=Array.from(n.querySelectorAll(":scope > colgroup > col")).filter((e,t)=>
1o.has(t));s.replaceChildren(...e)}let a=n.querySelectorAll(":scope > tr");if(a.length>0){let e=document.createElement("tbody");for(let t of a)e.appendChild(t);n.append(e)}return n},element:!G(n)&&(0,i.sby)(n)?n.querySelector("table"):n}}canBeEmpty(){return!1}isShadowRoot(){return!0}getCordsFromCellNode(e,t){let{rows:n,domRows:r}=t;for(let t=0;t<n;t++){let n=r[t];if(null!=n)for(let r=0;r<n.length;r++){let i=n[r];if(null==i)continue;let{elem:l}=i,o=ew(this,l);if(null!==o&&e.is(o))return{x:r,y:t}}}throw Error("Cell not found in table.")}getDOMCellFromCords(e,t,n){let{domRows:r}=n,i=r[t];if(null==i)return null;let l=i[e<i.length?e:i.length-1];return null==l?null:l}getDOMCellFromCordsOrThrow(e,t,n){let r=this.getDOMCellFromCords(e,t,n);if(!r)throw Error("Cell not found at cords.");return r}getCellNodeFromCords(e,t,n){let r=this.getDOMCellFromCords(e,t,n);if(null==r)return null;let l=(0,i.xL4)(r.elem);return f(l)?l:null}getCellNodeFromCordsOrThrow(e,t,n){let r=this.getCellNodeFromCords(e,t,n);if(!r)throw Error("Node at cords not TableCellNode.");return r}getRowStriping(){return!!this.getLatest().__rowStriping}setRowStriping(e){let t=this.getWritable();return t.__rowStriping=e,t}setFrozenColumns(e){let t=this.getWritable();return t.__frozenColumnCount=e,t}getFrozenColumns(){return this.getLatest().__frozenColumnCount}setFrozenRows(e){let t=this.getWritable();return t.__frozenRowCount=e,t}getFrozenRows(){return this.getLatest().__frozenRowCount}canSelectBefore(){return!0}canIndent(){return!1}getColumnCount(){let e=this.getFirstChild();if(!e)return 0;let t=0;
1return e.getChildren().forEach(e=>{f(e)&&(t+=e.getColSpan())}),t}}function eN(e){let t=eF();e.hasAttribute("data-lexical-row-striping")&&t.setRowStriping(!0),e.hasAttribute("data-lexical-frozen-column")&&t.setFrozenColumns(1),e.hasAttribute("data-lexical-frozen-row")&&t.setFrozenRows(1);let n=e.querySelector(":scope > colgroup");if(n){let e=[];for(let t of n.querySelectorAll(":scope > col")){let n=t.style.width||"";if(!o.test(n)&&(n=t.getAttribute("width")||"",!/^\d+$/.test(n))){e=void 0;break}e.push(parseFloat(n))}e&&t.setColWidths(e)}return{after:e=>(0,r.cE)(e,v),node:t}}function eF(){return(0,i.pTq)(new eA)}function eR(e){return e instanceof eA}function eM({rows:e,columns:t,includeHeaders:n}){let l=(0,i.vJq)()||(0,i.S1w)();if(!l||!(0,i.I2P)(l)||ev(l.anchor.getNode()))return!1;let o=function(e,t,n=!0){let r=eF();for(let l=0;l<e;l++){let e=y();for(let r=0;r<t;r++){let t=s.NO_STATUS;"object"==typeof n?(0===l&&n.rows&&(t|=s.ROW),0===r&&n.columns&&(t|=s.COLUMN)):n&&(0===l&&(t|=s.ROW),0===r&&(t|=s.COLUMN));let o=d(t),a=(0,i.lJ7)();a.append((0,i.sTu)()),o.append(a),e.append(o)}r.append(e)}return r}(Number(e),Number(t),n);(0,r.Pe)(o);let a=o.getFirstDescendant();return(0,i.kFe)(a)&&a.select(),!0}function eO(e){v(e.getParent())?e.isEmpty()&&e.append((0,i.lJ7)()):e.remove()}function eI(e){eR(e.getParent())?(0,r.vF)(e,f):e.remove()}function eP(e){(0,r.vF)(e,v);let[t]=K(e,null,null),n=t.reduce((e,t)=>Math.max(e,t.length),0),l=e.getChildren();for(let e=0;e<t.length;++e){let r=l[e];if(!r)continue;v(r)||h(254,r.constructor.name,r.getType());let o=t[e].reduce((e,t)=>t?1+e:e,0);if(o!==n)for(let e=o;e<n;++e){let e=d();e.append((0,i.lJ7)()),r.append(e)}}}function eL(e){if(e.detail<3||!(0,i.vAA)(e.target))return!1;let t=(0,i.xL4)(e.target);if(null===t)return!1;let n=(0,r.Bt)(t,e=>(0,i.ff4)(e)&&!e.isInline());return null!==n&&!!f(n.getParent())&&(n.select(0),!0)}function eD(e){return e.registerNodeTransform(a,e=>{if(e.getColSpan()>1||e.getRowSpan()>1){let[,,t]=z(e),[n]=B(t,e,e),i=n.length,l=n[0].length,o=t.getFirstChild();v(o)||h(175);let s=[];for(let e=0;e<i;e++){0!==e&&(v(o=o.getNextSibling())||h(175));let t=null;for(let i=0;i<l;i++){let l=n[e][i],a=l.cell;if(l.startRow===e&&l.startColumn===i)t=a,s.push(a);else if(a.getColSpan()>1||a.getRowSpan()>1){f(a)||h(176);let e=d(a.__headerState);null!==t?t.insertAfter(e):(0,r.K2)(o,e)}}}for(let e of s)e.setColSpan(1),e.setRowSpan(1)}})}function eB(e,t=!0){let n=new Map,o=(o,s,a)=>{let u=Y(o,a),c=function(e,t,n,o){let s=n.getRootElement(),a=X(n);null!==s&&null!==a||h(246);let u=new Z(n,e.getKey()),c=Y(e,t);null!==er(c)&&h(205),c[V]=u,u.listenersToRemove.add(()=>{er(c)===u&&delete c[V]});let d=t=>{if(u.pointerType=t.pointerType,0!==t.button||!(0,i.vAA)(t.target)||!a)return;let r=ei(t.target);null!==r&&n.update(()=>{let n=(0,i.S1w)();if(x&&t.shiftKey&&eg(n,e)&&((0,i.I2P)(n)||H(n))){let i=n.anchor.getNode(),l=Q(e,n.anchor.getNode());
1l?(u.$setAnchorCellForSelection(eS(u,l)),u.$setFocusCellForSelection(r),e_(t)):(e.isBefore(i)?e.selectStart():e.selectEnd()).anchor.set(n.anchor.key,n.anchor.offset,n.anchor.type)}else"touch"!==t.pointerType&&u.$setAnchorCellForSelection(r)}),(()=>{if(u.isSelecting)return;let e=()=>{u.isSelecting=!1,a.removeEventListener("pointerup",e),a.removeEventListener("pointermove",t)},t=r=>{if(1&~r.buttons&&u.isSelecting)return u.isSelecting=!1,a.removeEventListener("pointerup",e),void a.removeEventListener("pointermove",t);if(!(0,i.vAA)(r.target))return;let l=null,o=!(x||c.contains(r.target));if(o)l=el(c,r.target);else for(let e of document.elementsFromPoint(r.clientX,r.clientY))if(l=el(c,e))break;l&&(null===u.focusCell||l.elem!==u.focusCell.elem)&&(u.setNextFocus({focusCell:l,override:o}),n.dispatchCommand(i.MvL,void 0))};u.isSelecting=!0,a.addEventListener("pointerup",e,u.listenerOptions),a.addEventListener("pointermove",t,u.listenerOptions)})()};c.addEventListener("pointerdown",d,u.listenerOptions),u.listenersToRemove.add(()=>{c.removeEventListener("pointerdown",d)});let g=e=>{e.detail>=3&&(0,i.vAA)(e.target)&&null!==ei(e.target)&&e.preventDefault()};c.addEventListener("mousedown",g,u.listenerOptions),u.listenersToRemove.add(()=>{c.removeEventListener("mousedown",g)});let p=e=>{let t=e.target;0===e.button&&(0,i.vAA)(t)&&n.update(()=>{let e=(0,i.vJq)();H(e)&&e.tableKey===u.tableNodeKey&&s.contains(t)&&u.$clearHighlight()})};for(let[t,l]of(a.addEventListener("pointerdown",p,u.listenerOptions),u.listenersToRemove.add(()=>{a.removeEventListener("pointerdown",p)}),ee))u.listenersToRemove.add(n.registerCommand(t,t=>(function e(t,n,l,o,s){if(("up"===l||"down"===l)&&function(e){let t=e.getRootElement();return!!t&&t.hasAttribute("aria-controls")&&"typeahead-menu"===t.getAttribute("aria-controls")}(t))return!1;let a=(0,i.vJq)();if(!eg(a,o)){if((0,i.I2P)(a)){if("backward"===l){if(a.focus.offset>0)return!1;let e=function(e){for(let t=e,n=e;null!==n;t=n,n=n.getParent())if((0,i.ff4)(n)){if(n!==t&&n.getFirstChild()!==t)return null;if(!n.isInline())return n}return null}(a.focus.getNode());if(!e)return!1;let t=e.getPreviousSibling();return!!eR(t)&&(e_(n),n.shiftKey?a.focus.set(t.getParentOrThrow().getKey(),t.getIndexWithinParent(),"element"):t.selectEnd(),!0)}if(n.shiftKey&&("up"===l||"down"===l)){let e=a.focus.getNode();if(!a.isCollapsed()&&("up"===l&&!a.isBackward()||"down"===l&&a.isBackward())){let t=(0,r.Bt)(e,e=>eR(e));if(f(t)&&(t=(0,r.Bt)(t,eR)),t!==o||!t)return!1;let s="down"===l?t.getNextSibling():t.getPreviousSibling();if(!s)return!1;let u=0;"up"===l&&(0,i.ff4)(s)&&(u=s.getChildrenSize());let c=s;"up"===l&&(0,i.ff4)(s)&&(c=s.getLastChild()||s,u=(0,i.kFe)(c)?c.getTextContentSize():0);let d=a.clone();return d.focus.set(c.getKey(),u,(0,i.kFe)(c)?"text":"element"),(0,i.n1P)(d),e_(n),!0}if((0,i.IqF)(e)){let e="up"===l?a.getNodes()[a.getNodes().length-1]:a.getNodes()[0];if(e&&null!==Q(o,e)){let e=o.getFirstDescendant(),t=o.getLastDescendant();if(!e||!t)return!1;let[n]=z(e),[r]=z(t),i=o.getCordsFromCellNode(n,s.table),l=o.getCordsFromCellNode(r,s.table),a=o.getDOMCellFromCordsOrThrow(i.x,i.y,s.table),u=o.getDOMCellFromCordsOrThrow(l.x,l.y,s.table);return s.$setAnchorCellForSelection(a),s.$setFocusCellForSelection(u,!0),!0}return!1}{let t=(0,r.Bt)(e,e=>(0,i.ff4)(e)&&!e.isInline());if(f(t)&&(t=(0,r.Bt)(t,eR)),!t)return!1;let o="down"===l?t.getNextSibling():t.getPreviousSibling();if(eR(o)&&s.tableNodeKey===o.getKey()){let e=o.getFirstDescendant(),t=o.getLastDescendant();if(!e||!t)return!1;let[r]=z(e),[s]=z(t),u=a.clone();return u.focus.set(("up"===l?r:s).getKey(),"up"===l?0:s.getChildrenSize(),"element"),e_(n),(0,i.n1P)(u),!0}}}}return"down"===l&&eE(t)&&s.setShouldCheckSelection(),!1}if((0,i.I2P)(a)){if("backward"===l||"forward"===l)return function(e,t,n,l,o,s,a){let u=(0,i.Ave)(n.focus,o?"previous":"next");if((0,i.pGK)(u))return!1;let c=u;for(let e of(0,i.mWO)(u).iterNodeCarets("shadowRoot")){if(!(0,i.OpE)(e)||!(0,i.ff4)(e.origin))return!1;c=e}let d=c.getParentAtCaret();if(!f(d))return!1;let g=function(e){for(let t of(0,i.mWO)(e).iterNodeCarets("root")){let{origin:n}=t;
1if(f(n)){if((0,i.cmH)(t))return(0,i.uwZ)(n,e.direction)}else if(!v(n))break}return null}((0,i.IlV)(d,c.direction)),p=(0,r.Bt)(d,eR);if(!p||!p.is(s))return!1;let m=e.getElementByKey(d.getKey()),y=ei(m);if(!m||!y)return!1;if(a.table=function(e,t){let n=e.getElementByKey(t.getKey());return null===n&&h(230),eo(t,n)}(e,p),g)if("extend"===l){let t=ei(e.getElementByKey(g.origin.getKey()));if(!t)return!1;a.$setAnchorCellForSelection(y),a.$setFocusCellForSelection(t,!0)}else{let e=(0,i.lSZ)(g);(0,i.wp6)(n.anchor,e),(0,i.wp6)(n.focus,e)}else if("extend"===l)a.$setAnchorCellForSelection(y),a.$setFocusCellForSelection(y,!0);else{let e=function(e){let t=(0,i.erb)(e);return(0,i.cmH)(t)?(0,i.lSZ)(t):e}((0,i.IlV)(p,u.direction));(0,i.wp6)(n.anchor,e),(0,i.wp6)(n.focus,e)}return e_(t),!0}(t,n,a,n.shiftKey?"extend":"move","backward"===l,o,s);if(a.isCollapsed()){let u,{anchor:c,focus:d}=a,g=(0,r.Bt)(c.getNode(),f),h=(0,r.Bt)(d.getNode(),f);if(!f(g)||!g.is(h))return!1;let p=ev(g);if(p!==o&&null!=p){let r=Y(p,t.getElementByKey(p.getKey()));if(null!=r)return s.table=eo(p,r),e(t,n,l,p,s)}let m=t.getElementByKey(g.__key),y=t.getElementByKey(c.key);if(null==y||null==m)return!1;if("element"===c.type)u=y.getBoundingClientRect();else{let e=(0,i.peL)(X(t));if(null===e||0===e.rangeCount)return!1;u=e.getRangeAt(0).getBoundingClientRect()}let v="up"===l?g.getFirstChild():g.getLastChild();if(null==v)return!1;let _=t.getElementByKey(v.__key);if(null==_)return!1;let b=_.getBoundingClientRect();if("up"===l?b.top>u.top-u.height:u.bottom+u.height>b.bottom){e_(n);let e=o.getCordsFromCellNode(g,s.table);if(!n.shiftKey)return((e,t,n,r,i)=>{let l="forward"===i;switch(i){case"backward":case"forward":return n!==(l?e.table.columns-1:0)?eh(t.getCellNodeFromCordsOrThrow(n+(l?1:-1),r,e.table),l):r!==(l?e.table.rows-1:0)?eh(t.getCellNodeFromCordsOrThrow(l?0:e.table.columns-1,r+(l?1:-1),e.table),l):l?t.selectNext():t.selectPrevious(),!0;case"up":return 0!==r?eh(t.getCellNodeFromCordsOrThrow(n,r-1,e.table),!1):t.selectPrevious(),!0;case"down":return r!==e.table.rows-1?eh(t.getCellNodeFromCordsOrThrow(n,r+1,e.table),!0):t.selectNext(),!0;default:return!1}})(s,o,e.x,e.y,l);{let t=o.getDOMCellFromCordsOrThrow(e.x,e.y,s.table);s.$setAnchorCellForSelection(t),s.$setFocusCellForSelection(t,!0)}return!0}}}else if(H(a)){let{anchor:e,focus:i}=a,u=(0,r.Bt)(e.getNode(),f),c=(0,r.Bt)(i.getNode(),f),[d]=a.getNodes();eR(d)||h(251);let g=Y(d,t.getElementByKey(d.getKey()));if(!f(u)||!f(c)||!eR(d)||null==g)return!1;s.$updateTableTableSelection(a);let p=eo(d,g),m=o.getCordsFromCellNode(u,p),y=o.getDOMCellFromCordsOrThrow(m.x,m.y,p);if(s.$setAnchorCellForSelection(y),e_(n),n.shiftKey){let[e,t,n]=B(o,u,c);return function(e,t,n,r,i){let l=$(t,n,r),{topSpan:o,leftSpan:s,bottomSpan:a,rightSpan:u}=function(e,t){let{minColumn:n,maxColumn:r,minRow:i,maxRow:l}=t,o=1,s=1,a=1,u=1,c=e[i],d=e[l];for(let e=n;e<=r;e++)o=Math.max(o,c[e].cell.__rowSpan),u=Math.max(u,d[e].cell.__rowSpan);for(let t=i;t<=l;t++)s=Math.max(s,e[t][n].cell.__colSpan),a=Math.max(a,e[t][r].cell.__colSpan);return{bottomSpan:u,leftSpan:s,rightSpan:a,topSpan:o}}(t,l),[c,d]=ed(function(e,t){let n=ec(e,t);return null===n&&h(249,t.cell.getKey()),n}(l,n)),f=l[c],g=l[d];"forward"===i?f+="maxColumn"===c?1:s:"backward"===i?f-="minColumn"===c?1:u:"down"===i?g+="maxRow"===d?1:o:"up"===i&&(g-="minRow"===d?1:a);let p=t[g];if(void 0===p)return!1;let m=p[f];if(void 0===m)return!1;let[y,v]=function(e,t,n){let r=$(e,t,n),i=ec(r,t);if(i)return[ef(e,r,i),ef(e,r,ed(i))];let l=ec(r,n);if(l)return[ef(e,r,ed(l)),ef(e,r,l)];let o=["minColumn","minRow"];return[ef(e,r,o),ef(e,r,ed(o))]}(t,n,m),_=eS(e,y.cell),b=eS(e,v.cell);return e.$setAnchorCellForSelection(_),e.$setFocusCellForSelection(b,!0),!0}(s,e,t,n,l)}return c.selectEnd(),!0}return!1})(n,t,l,e,u),i.WgU));u.listenersToRemove.add(n.registerCommand(i.Q$N,t=>{let n=(0,i.vJq)();if(H(n)){let r=Q(e,n.focus.getNode());if(null!==r)return e_(t),r.selectEnd(),!0}return!1},i.WgU));let m=t=>()=>{let n=(0,i.vJq)();if(!eg(n,e))return!1;if(H(n))return u.$clearText(),!0;if((0,i.I2P)(n)){if(!f(Q(e,n.anchor.getNode())))return!1;
1let l=n.anchor.getNode(),o=n.focus.getNode(),s=e.isParentOf(l),a=e.isParentOf(o);if(s&&!a||a&&!s)return u.$clearText(),!0;let c=(0,r.Bt)(n.anchor.getNode(),e=>(0,i.ff4)(e)),d=c&&(0,r.Bt)(c,e=>(0,i.ff4)(e)&&f(e.getParent()));if(!(0,i.ff4)(d)||!(0,i.ff4)(c))return!1;if(t===i.viC&&null===d.getPreviousSibling())return!0}return!1};for(let e of et)u.listenersToRemove.add(n.registerCommand(e,m(e),i.da8));let y=t=>{let n=(0,i.vJq)();if(!H(n)&&!(0,i.I2P)(n))return!1;let r=e.isParentOf(n.anchor.getNode());if(r!==e.isParentOf(n.focus.getNode())){let t=r?"focus":"anchor",{key:i,offset:l,type:o}=n[t];return e[n[r?"anchor":"focus"].isBefore(n[t])?"selectPrevious":"selectNext"]()[t].set(i,l,o),!1}return!!eg(n,e)&&!!H(n)&&(t&&(t.preventDefault(),t.stopPropagation()),u.$clearText(),!0)};for(let e of en)u.listenersToRemove.add(n.registerCommand(e,y,i.da8));return u.listenersToRemove.add(n.registerCommand(i.VSO,e=>{let t=(0,i.vJq)();if(t){if(!H(t)&&!(0,i.I2P)(t))return!1;(0,l.lW)(n,(0,r.xj)(e,ClipboardEvent)?e:null,(0,l.xg)(t));let o=y(e);return(0,i.I2P)(t)?(t.removeText(),!0):o}return!1},i.da8)),u.listenersToRemove.add(n.registerCommand(i.mB,t=>{let n=(0,i.vJq)();if(!eg(n,e))return!1;if(H(n))return u.$formatCells(t),!0;if((0,i.I2P)(n)){let e=(0,r.Bt)(n.anchor.getNode(),e=>f(e));f(e)}return!1},i.da8)),u.listenersToRemove.add(n.registerCommand(i.fUS,t=>{let n=(0,i.vJq)();if(!H(n)||!eg(n,e))return!1;let r=n.anchor.getNode(),l=n.focus.getNode();if(!f(r)||!f(l))return!1;if(function(e,t){if(H(e)){let n=e.anchor.getNode(),r=e.focus.getNode();if(t&&n&&r){let[e]=B(t,n,r);return n.getKey()===e[0][0].cell.getKey()&&r.getKey()===e[e.length-1].at(-1).cell.getKey()}}return!1}(n,e))return e.setFormat(t),!0;let[o,s,a]=B(e,r,l),u=Math.max(s.startRow+s.cell.__rowSpan-1,a.startRow+a.cell.__rowSpan-1),c=Math.max(s.startColumn+s.cell.__colSpan-1,a.startColumn+a.cell.__colSpan-1),d=Math.min(s.startRow,a.startRow),g=Math.min(s.startColumn,a.startColumn),h=new Set;for(let e=d;e<=u;e++)for(let n=g;n<=c;n++){let r=o[e][n].cell;if(h.has(r))continue;h.add(r),r.setFormat(t);let l=r.getChildren();for(let e=0;e<l.length;e++){let n=l[e];(0,i.ff4)(n)&&!n.isInline()&&n.setFormat(t)}}return!0},i.da8)),u.listenersToRemove.add(n.registerCommand(i.bM3,t=>{let l=(0,i.vJq)();if(!eg(l,e))return!1;if(H(l))return u.$clearHighlight(),!1;if((0,i.I2P)(l)){let o=(0,r.Bt)(l.anchor.getNode(),e=>f(e));if(!f(o))return!1;if("string"==typeof t){let r=ex(n,l,e);if(r)return eb(r,e,[(0,i.sTu)(t)]),!0}}return!1},i.da8)),o&&u.listenersToRemove.add(n.registerCommand(i.OXk,t=>{let n=(0,i.vJq)();if(!(0,i.I2P)(n)||!n.isCollapsed()||!eg(n,e))return!1;let l=ey(n.anchor.getNode());return!(null===l||!e.is(ev(l)))&&(e_(t),function(e,t){let n="next"===t?"getNextSibling":"getPreviousSibling",l="next"===t?"getFirstChild":"getLastChild",o=e[n]();if((0,i.ff4)(o))return o.selectEnd();let s=(0,r.Bt)(e,v);null===s&&h(247);for(let e=s[n]();v(e);e=e[n]()){let t=e[l]();if((0,i.ff4)(t))return t.selectEnd()}let a=(0,r.Bt)(s,eR);null===a&&h(248),"next"===t?a.selectNext():a.selectPrevious()}(l,t.shiftKey?"previous":"next"),!0)},i.da8)),u.listenersToRemove.add(n.registerCommand(i.$7r,t=>e.isSelected(),i.WgU)),u.listenersToRemove.add(n.registerCommand(i.oqR,(e,t)=>{if(n!==t)return!1;let{nodes:l,selection:o}=e,s=o.getStartEndPoints(),a=H(o),u=(0,i.I2P)(o)&&null!==(0,r.Bt)(o.anchor.getNode(),e=>f(e))&&null!==(0,r.Bt)(o.focus.getNode(),e=>f(e))||a;if(1!==l.length||!eR(l[0])||!u||null===s)return!1;let[c,d]=s,[g,h,p]=z(c),m=(0,r.Bt)(d.getNode(),e=>f(e));if(!(f(g)&&f(m)&&v(h)&&eR(p)))return!1;let y=l[0],[_,b,x]=B(p,g,m),[S]=K(y,null,null),w=_.length,k=w>0?_[0].length:0,E=b.startRow,T=b.startColumn,A=S.length,F=A>0?S[0].length:0;if(a){let e=$(_,b,x),t=e.maxRow-e.minRow+1,n=e.maxColumn-e.minColumn+1;E=e.minRow,T=e.minColumn,A=Math.min(A,t),F=Math.min(F,n)}let M=!1,O=Math.min(w,E+A)-1,I=Math.min(k,T+F)-1,P=new Set;for(let e=E;e<=O;e++)for(let t=T;t<=I;t++){let n=_[e][t];P.has(n.cell.getKey())||1===n.cell.__rowSpan&&1===n.cell.__colSpan||(D(n.cell),P.add(n.cell.getKey()),M=!0)}let[L]=K(p.getWritable(),null,null),W=A-w+E;for(let e=0;e<W;e++)N(L[w-1][0].cell);let j=F-k+T;for(let e=0;e<j;e++)R(L[0][k-1].cell,!0,!1);[L]=K(p.getWritable(),null,null);for(let e=E;e<E+A;e++)for(let t=T;t<T+F;t++){let n=e-E,r=t-T,l=S[n][r];if(l.startRow!==n||l.startColumn!==r)continue;let o=l.cell;if(1!==o.__rowSpan||1!==o.__colSpan){let n=[],r=Math.min(e+o.__rowSpan,E+A)-1,l=Math.min(t+o.__colSpan,T+F)-1;for(let i=e;i<=r;i++)for(let e=t;e<=l;e++){let t=L[i][e];n.push(t.cell)}(function(e){if(0===e.length)return;let[t]=K(C(e[0]),null,null),n=1/0,r=-1/0,l=1/0,o=-1/0,s=new Set;for(let i of t)for(let t of i){if(!t||!t.cell)continue;let i=t.cell.getKey();if(!s.has(i)&&e.some(e=>e.is(t.cell))){s.add(i);let e=t.startRow,a=t.startColumn,u=t.cell.__rowSpan||1,c=t.cell.__colSpan||1;n=Math.min(n,e),r=Math.max(r,e+u-1),l=Math.min(l,a),o=Math.max(o,a+c-1)}}if(n===1/0||l===1/0)return;let a=r-n+1,u=o-l+1,c=t[n][l];if(!c.cell)return;let d=c.cell;d.setColSpan(u),d.setRowSpan(a);let f=new Set([d.getKey()]);for(let e=n;e<=r;e++)for(let n=l;n<=o;n++){let r=t[e][n];if(!r.cell)continue;let l=r.cell,o=l.getKey();
1f.has(o)||(f.add(o),function(e){if(1!==e.getChildrenSize())return!1;let t=e.getFirstChildOrThrow();return!(!(0,i.bSg)(t)||!t.isEmpty())}(l)||d.append(...l.getChildren()),l.remove())}0===d.getChildrenSize()&&d.append((0,i.lJ7)())})(n),M=!0}let{cell:s}=L[e][t],a=s.getChildren();o.getChildren().forEach(e=>{(0,i.kFe)(e)&&(0,i.lJ7)().append(e),s.append(e)}),a.forEach(e=>e.remove())}if(a&&M){let[e]=K(p.getWritable(),null,null);e[b.startRow][b.startColumn].cell.selectEnd()}return!0},i.da8)),u.listenersToRemove.add(n.registerCommand(i.MvL,()=>{let t=(0,i.vJq)(),l=(0,i.S1w)(),o=u.getAndClearNextFocus();if(null!==o){let{focusCell:n}=o;if(H(t)&&t.tableKey===u.tableNodeKey)return(n.x!==u.focusX||n.y!==u.focusY)&&(u.$setFocusCellForSelection(n),!0);if(n!==u.anchorCell&&eg(t,e))return u.$setFocusCellForSelection(n),!0}if(u.getAndClearShouldCheckSelection()&&(0,i.I2P)(l)&&(0,i.I2P)(t)&&t.isCollapsed()){let n=t.anchor.getNode(),i=e.getFirstChild(),l=ey(n);if(null!==l&&v(i)){let t=i.getFirstChild();if(f(t)&&e.is((0,r.Bt)(l,n=>n.is(e)||n.is(t))))return t.selectStart(),!0}}if((0,i.I2P)(t)){let{anchor:r,focus:o}=t,s=r.getNode(),a=o.getNode(),c=ey(s),d=ey(a),f=!(!c||!e.is(ev(c))),g=!(!d||!e.is(ev(d))),h=t.isBackward();if(f!==g){let r=t.clone();if(g){let[t]=B(e,d,d),n=t[0][0].cell,i=t[t.length-1].at(-1).cell;r.focus.set(h?n.getKey():i.getKey(),h?n.getChildrenSize():i.getChildrenSize(),"element")}else if(f){let[t]=B(e,c,c),n=t[0][0].cell,i=t[t.length-1].at(-1).cell;r.anchor.set(h?i.getKey():n.getKey(),h?i.getChildrenSize():0,"element")}(0,i.n1P)(r),eu(n,u)}
1else if(f&&g&&(c.is(d)||(u.$setAnchorCellForSelection(eS(u,c)),u.$setFocusCellForSelection(eS(u,d),!0)),"touch"===u.pointerType&&u.isSelecting&&t.isCollapsed()&&(0,i.I2P)(l)&&l.isCollapsed())){let e=ey(l.anchor.getNode());e&&!e.is(d)&&(u.$setAnchorCellForSelection(eS(u,e)),u.$setFocusCellForSelection(eS(u,d),!0),u.pointerType=null)}}else if(t&&H(t)&&t.is(l)&&t.tableKey===e.getKey()){let r=(0,i.peL)(a);if(r&&r.anchorNode&&r.focusNode){let l=(0,i.xL4)(r.focusNode),o=l&&!e.isParentOf(l),s=(0,i.xL4)(r.anchorNode),a=s&&e.isParentOf(s);if(o&&a&&r.rangeCount>0){let l=(0,i.OBE)(r,n);l&&(l.anchor.set(e.getKey(),t.isBackward()?e.getChildrenSize():0,"element"),r.removeAllRanges(),(0,i.n1P)(l))}}}return t&&!t.is(l)&&(H(t)||H(l))&&u.tableSelection&&!u.tableSelection.is(l)?H(t)&&t.tableKey===u.tableNodeKey?u.$updateTableTableSelection(t):!H(t)&&H(l)&&l.tableKey===u.tableNodeKey&&u.$updateTableTableSelection(null):u.hasHijackedSelectionStyles&&!e.isSelected()?(u.$enableHighlightStyle(),ea(u.table,e=>{let t=e.elem;e.highlighted=!1,em(n,e),t.getAttribute("style")||t.removeAttribute("style")})):!u.hasHijackedSelectionStyles&&e.isSelected()&&eu(n,u),!1},i.da8)),u.listenersToRemove.add(n.registerCommand(i.XKQ,()=>{let t=(0,i.vJq)();if(!(0,i.I2P)(t)||!t.isCollapsed()||!eg(t,e))return!1;let r=ex(n,t,e);return!!r&&(eb(r,e),!0)},i.da8)),u}(o,u,e,t);n.set(s,[c,u])},s=e.registerMutationListener(eA,t=>{e.getEditorState().read(()=>{for(let[e,r]of t){let t=n.get(e);if("created"===r||"updated"===r){let{tableNode:r,tableElement:i}=q(e);void 0===t?o(r,e,i):i!==t[1]&&(t[0].removeListeners(),n.delete(e),o(r,e,i))}else"destroyed"===r&&void 0!==t&&(t[0].removeListeners(),n.delete(e))}},{editor:e})},{skipInitialization:!1});return()=>{for(let[,[e]]of(s(),n))e.removeListeners()}}function eK(e){return e.hasNodes([eA])||h(255),(0,r.Sd)(e.registerCommand(g,eM,i.jZM),e.registerCommand(i.oqR,({nodes:t,selection:n},r)=>
1e===r&&!!(0,i.I2P)(n)&&null!==ev(n.anchor.getNode())&&t.some(eR),i.jZM),e.registerCommand(i.d8p,eL,i.jZM),e.registerNodeTransform(eA,eP),e.registerNodeTransform(p,eI),e.registerNodeTransform(a,eO))}},9035:(e,t,n)=>{"use strict";n.d(t,{A:()=>o});var r=n(36997),i=n(8625),l=n(12115);function o({hasCellMerge:e=!0,hasCellBackgroundColor:t=!0,hasTabHandler:n=!0,hasHorizontalScroll:o=!1}){let[s]=(0,r.DF)();return(0,l.useEffect)(()=>{(0,i.FY)(s)!==o&&((0,i.hi)(s,o),s.registerNodeTransform(i.HA,()=>{})())},[s,o]),(0,l.useEffect)(()=>(0,i.xT)(s),[s]),(0,l.useEffect)(()=>(0,i.Ej)(s,n),[s,n]),(0,l.useEffect)(()=>{if(!e)return(0,i.nq)(s)},[s,e]),(0,l.useEffect)(()=>{if(!t)return s.registerNodeTransform(i.B9,e=>{null!==e.getBackgroundColor()&&e.setBackgroundColor(null)})},[s,t,e]),null}},10406:(e,t,n)=>{"use strict";n.d(t,{A:()=>r});let r=(0,n(78340).A)("ListCollapse",[["path",{d:"m3 10 2.5-2.5L3 5",key:"i6eama"}],["path",{d:"m3 19 2.5-2.5L3 14",key:"w2gmor"}],["path",{d:"M10 6h11",key:"c7qv1k"}],["path",{d:"M10 12h11",key:"6m4ad9"}],["path",{d:"M10 18h11",key:"11hvi2"}]])},12651:(e,t,n)=>{"use strict";n.d(t,{A:()=>r});let r=(0,n(78340).A)("CircleCheck",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"m9 12 2 2 4-4",key:"dzmm74"}]])},14244:(e,t,n)=>{"use strict";n.d(t,{A:()=>r});let r=(0,n(78340).A)("Heading3",[["path",{d:"M4 12h8",key:"17cfdx"}],["path",{d:"M4 18V6",key:"1rz3zl"}],["path",{d:"M12 18V6",key:"zqpxq5"}],["path",{d:"M17.5 10.5c1.7-1 3.5 0 3.5 1.5a2 2 0 0 1-2 2",key:"68ncm8"}],["path",{d:"M17 17.5c2 1.5 4 .3 4-1.5a2 2 0 0 0-2-2",key:"1ejuhz"}]])},14801:(e,t,n)=>{"use strict";n.d(t,{uB:()=>M});var r=/[\\\/_+.#"@\[\(\{&]/,i=/[\\\/_+.#"@\[\(\{&]/g,l=/[\s-]/,o=/[\s-]/g;function s(e){return e.toLowerCase().replace(o," ")}var a=n(29483),u=n(12115),c=n(99354),d=n(89971),f=n(47527),g='[cmdk-group=""]',h='[cmdk-group-items=""]',p='[cmdk-item=""]',m="".concat(p,':not([aria-disabled="true"])'),y="cmdk-item-select",v="data-value",_=(e,t,n)=>(function(e,t,n){return function e(t,n,s,a,u,c,d){if(c===n.length)return u===t.length?1:.99;var f=`${u},${c}`;if(void 0!==d[f])return d[f];for(var g,h,p,m,y=a.charAt(c),v=s.indexOf(y,u),_=0;v>=0;)(g=e(t,n,s,a,v+1,c+1,d))>_&&(v===u?g*=1:r.test(t.charAt(v-1))?(g*=.8,(p=t.slice(u,v-1).match(i))&&u>0&&(g*=Math.pow(.999,p.length))):l.test(t.charAt(v-1))?(g*=.9,(m=t.slice(u,v-1).match(o))&&u>0&&(g*=Math.pow(.999,m.length))):(g*=.17,u>0&&(g*=Math.pow(.999,v-u))),t.charAt(v)!==n.charAt(c)&&(g*=.9999)),(g<.1&&s.charAt(v-1)===a.charAt(c+1)||a.charAt(c+1)===a.charAt(c)&&s.charAt(v-1)!==a.charAt(c))&&.1*(h=e(t,n,s,a,v+1,c+2,d))>g&&(g=.1*h),g>_&&(_=g),v=s.indexOf(y,v+1);return d[f]=_,_}(e=n&&n.length>0?`${e+" "+n.join(" ")}`:e,t,s(e),s(t),0,0,{})})(e,t,n),b=u.createContext(void 0),x=()=>u.useContext(b),S=u.createContext(void 0),w=()=>u.useContext(S),C=u.createContext(void 0),k=u.forwardRef((e,t)=>{let n=P(()=>{var t,n;return{search:"",value:null!=(n=null!=(t=e.value)?t:e.defaultValue)?n:"",selectedItemId:void 0,filtered:{count:0,items:new Map,groups:new Set}}}),r=P(()=>new Set),i=P(()=>new Map),l=P(()=>new Map),o=P(()=>new Set),s=O(e),{label:a,children:f,value:x,onValueChange:w,filter:C,shouldFilter:k,loop:E,disablePointerSelection:T=!1,vimBindings:A=!0,...N}=e,F=(0,d.B)(),R=(0,d.B)(),M=(0,d.B)(),L=u.useRef(null),D=B();I(()=>
1{if(void 0!==x){let e=x.trim();n.current.value=e,$.emit()}},[x]),I(()=>{D(6,q)},[]);let $=u.useMemo(()=>({subscribe:e=>(o.current.add(e),()=>o.current.delete(e)),snapshot:()=>n.current,setState:(e,t,r)=>{var i,l,o,a;if(!Object.is(n.current[e],t)){if(n.current[e]=t,"search"===e)U(),J(),D(1,H);else if("value"===e){if(document.activeElement.hasAttribute("cmdk-input")||document.activeElement.hasAttribute("cmdk-root")){let e=document.getElementById(M);e?e.focus():null==(i=document.getElementById(F))||i.focus()}if(D(7,()=>{var e;n.current.selectedItemId=null==(e=Z())?void 0:e.id,$.emit()}),r||D(5,q),(null==(l=s.current)?void 0:l.value)!==void 0){null==(a=(o=s.current).onValueChange)||a.call(o,null!=t?t:"");return}}$.emit()}},emit:()=>{o.current.forEach(e=>e())}}),[]),W=u.useMemo(()=>({value:(e,t,r)=>{var i;t!==(null==(i=l.current.get(e))?void 0:i.value)&&(l.current.set(e,{value:t,keywords:r}),n.current.filtered.items.set(e,j(t,r)),D(2,()=>{J(),$.emit()}))},item:(e,t)=>(r.current.add(e),t&&(i.current.has(t)?i.current.get(t).add(e):i.current.set(t,new Set([e]))),D(3,()=>{U(),J(),n.current.value||H(),$.emit()}),()=>{l.current.delete(e),r.current.delete(e),n.current.filtered.items.delete(e);let t=Z();D(4,()=>{U(),(null==t?void 0:t.getAttribute("id"))===e&&H(),$.emit()})}),group:e=>(i.current.has(e)||i.current.set(e,new Set),()=>{l.current.delete(e),i.current.delete(e)}),filter:()=>s.current.shouldFilter,label:a||e["aria-label"],getDisablePointerSelection:()=>s.current.disablePointerSelection,listId:F,inputId:M,labelId:R,listInnerRef:L}),[]);function j(e,t){var r,i;let l=null!=(i=null==(r=s.current)?void 0:r.filter)?i:_;return e?l(e,n.current.search,t):0}function J(){if(!n.current.search||!1===s.current.shouldFilter)return;let e=n.current.filtered.items,t=[];n.current.filtered.groups.forEach(n=>{let r=i.current.get(n),l=0;r.forEach(t=>{l=Math.max(e.get(t),l)}),t.push([n,l])});let r=L.current;V().sort((t,n)=>{var r,i;let l=t.getAttribute("id"),o=n.getAttribute("id");return(null!=(r=e.get(o))?r:0)-(null!=(i=e.get(l))?i:0)}).forEach(e=>{let t=e.closest(h);t?t.appendChild(e.parentElement===t?e:e.closest("".concat(h," > *"))):r.appendChild(e.parentElement===r?e:e.closest("".concat(h," > *")))}),t.sort((e,t)=>t[1]-e[1]).forEach(e=>{var t;let n=null==(t=L.current)?void 0:t.querySelector("".concat(g,"[").concat(v,'="').concat(encodeURIComponent(e[0]),'"]'));null==n||n.parentElement.appendChild(n)})}function H(){let e=V().find(e=>"true"!==e.getAttribute("aria-disabled")),t=null==e?void 0:e.getAttribute(v);$.setState("value",t||void 0)}function U(){var e,t,o,a;if(!n.current.search||!1===s.current.shouldFilter){n.current.filtered.count=r.current.size;return}n.current.filtered.groups=new Set;let u=0;for(let i of r.current){let r=j(null!=(t=null==(e=l.current.get(i))?void 0:e.value)?t:"",null!=(a=null==(o=l.current.get(i))?void 0:o.keywords)?a:[]);n.current.filtered.items.set(i,r),r>0&&u++}for(let[e,t]of i.current)for(let r of t)if(n.current.filtered.items.get(r)>0){n.current.filtered.groups.add(e);break}n.current.filtered.count=u}function q(){var e,t,n;let r=Z();r&&((null==(e=r.parentElement)?void 0:e.firstChild)===r&&(null==(n=null==(t=r.closest(g))?void 0:t.querySelector('[cmdk-group-heading=""]'))||n.scrollIntoView({block:"nearest"})),r.scrollIntoView({block:"nearest"}))}function Z(){var e;return null==(e=L.current)?void 0:e.querySelector("".concat(p,'[aria-selected="true"]'))}function V(){var e;return Array.from((null==(e=L.current)?void 0:e.querySelectorAll(m))||[])}function G(e){let t=V()[e];t&&$.setState("value",t.getAttribute(v))}function Y(e){var t;let n=Z(),r=V(),i=r.findIndex(e=>e===n),l=r[i+e];null!=(t=s.current)&&t.loop&&(l=i+e<0?r[r.length-1]:i+e===r.length?r[0]:r[i+e]),l&&$.setState("value",l.getAttribute(v))}function X(e){let t=Z(),n=null==t?void 0:t.closest(g),r;for(;n&&!r;)r=null==(n=e>0?function(e,t){let n=e.nextElementSibling;for(;n;){if(n.matches(t))return n;n=n.nextElementSibling}}(n,g):function(e,t){let n=e.previousElementSibling;for(;n;){if(n.matches(t))return n;n=n.previousElementSibling}}(n,g))?void 0:n.querySelector(m);r?$.setState("value",r.getAttribute(v)):Y(e)}let Q=()=>G(V().length-1),ee=e=>{e.preventDefault(),e.metaKey?Q():e.altKey?X(1):Y(1)},et=e=>{e.preventDefault(),e.metaKey?G(0):e.altKey?X(-1):Y(-1)};return u.createElement(c.sG.div,{ref:t,tabIndex:-1,...N,"cmdk-root":"",onKeyDown:e=>{var t;null==(t=N.onKeyDown)||t.call(N,e);let n=e.nativeEvent.isComposing||229===e.keyCode;if(!(e.defaultPrevented||n))switch(e.key){case"n":case"j":A&&e.ctrlKey&&ee(e);break;case"ArrowDown":ee(e);break;case"p":case"k":A&&e.ctrlKey&&et(e);break;case"ArrowUp":et(e);break;case"Home":e.preventDefault(),G(0);break;case"End":e.preventDefault(),Q();break;case"Enter":{e.preventDefault();let t=Z();if(t){let e=new Event(y);t.dispatchEvent(e)}}}}},u.createElement("label",{"cmdk-label":"",htmlFor:W.inputId,id:W.labelId,style:z},a),K(e,e=>u.createElement(S.Provider,{value:$},u.createElement(b.Provider,{value:W},e))))}),E=u.forwardRef((e,t)=>
1{var n,r;let i=(0,d.B)(),l=u.useRef(null),o=u.useContext(C),s=x(),a=O(e),g=null!=(r=null==(n=a.current)?void 0:n.forceMount)?r:null==o?void 0:o.forceMount;I(()=>{if(!g)return s.item(i,null==o?void 0:o.id)},[g]);let h=D(i,l,[e.value,e.children,l],e.keywords),p=w(),m=L(e=>e.value&&e.value===h.current),v=L(e=>!!g||!1===s.filter()||!e.search||e.filtered.items.get(i)>0);function _(){var e,t;b(),null==(t=(e=a.current).onSelect)||t.call(e,h.current)}function b(){p.setState("value",h.current,!0)}if(u.useEffect(()=>{let t=l.current;if(!(!t||e.disabled))return t.addEventListener(y,_),()=>t.removeEventListener(y,_)},[v,e.onSelect,e.disabled]),!v)return null;let{disabled:S,value:k,onSelect:E,forceMount:T,keywords:A,...N}=e;return u.createElement(c.sG.div,{ref:(0,f.t)(l,t),...N,id:i,"cmdk-item":"",role:"option","aria-disabled":!!S,"aria-selected":!!m,"data-disabled":!!S,"data-selected":!!m,onPointerMove:S||s.getDisablePointerSelection()?void 0:b,onClick:S?void 0:_},e.children)}),T=u.forwardRef((e,t)=>{let{heading:n,children:r,forceMount:i,...l}=e,o=(0,d.B)(),s=u.useRef(null),a=u.useRef(null),g=(0,d.B)(),h=x(),p=L(e=>!!i||!1===h.filter()||!e.search||e.filtered.groups.has(o));I(()=>h.group(o),[]),D(o,s,[e.value,e.heading,a]);let m=u.useMemo(()=>({id:o,forceMount:i}),[i]);return u.createElement(c.sG.div,{ref:(0,f.t)(s,t),...l,"cmdk-group":"",role:"presentation",hidden:!p||void 0},n&&u.createElement("div",{ref:a,"cmdk-group-heading":"","aria-hidden":!0,id:g},n),K(e,e=>u.createElement("div",{"cmdk-group-items":"",role:"group","aria-labelledby":n?g:void 0},u.createElement(C.Provider,{value:m},e))))}),A=u.forwardRef((e,t)=>{let{alwaysRender:n,...r}=e,i=u.useRef(null),l=L(e=>!e.search);return n||l?u.createElement(c.sG.div,{ref:(0,f.t)(i,t),...r,"cmdk-separator":"",role:"separator"}):null}),N=u.forwardRef((e,t)=>{let{onValueChange:n,...r}=e,i=null!=e.value,l=w(),o=L(e=>e.search),s=L(e=>e.selectedItemId),a=x();return u.useEffect(()=>{null!=e.value&&l.setState("search",e.value)},[e.value]),u.createElement(c.sG.input,{ref:t,...r,"cmdk-input":"",autoComplete:"off",autoCorrect:"off",spellCheck:!1,"aria-autocomplete":"list",role:"combobox","aria-expanded":!0,"aria-controls":a.listId,"aria-labelledby":a.labelId,"aria-activedescendant":s,id:a.inputId,type:"text",value:i?e.value:o,onChange:e=>{i||l.setState("search",e.target.value),null==n||n(e.target.value)}})}),F=u.forwardRef((e,t)=>{let{children:n,label:r="Suggestions",...i}=e,l=u.useRef(null),o=u.useRef(null),s=L(e=>e.selectedItemId),a=x();return u.useEffect(()=>{if(o.current&&l.current){let e=o.current,t=l.current,n,r=new ResizeObserver(()=>{n=requestAnimationFrame(()=>{let n=e.offsetHeight;t.style.setProperty("--cmdk-list-height",n.toFixed(1)+"px")})});return r.observe(e),()=>{cancelAnimationFrame(n),r.unobserve(e)}}},[]),u.createElement(c.sG.div,{ref:(0,f.t)(l,t),...i,"cmdk-list":"",role:"listbox",tabIndex:-1,"aria-activedescendant":s,"aria-label":r,id:a.listId},K(e,e=>u.createElement("div",{ref:(0,f.t)(o,a.listInnerRef),"cmdk-list-sizer":""},e)))}),R=u.forwardRef((e,t)=>{let{open:n,onOpenChange:r,overlayClassName:i,contentClassName:l,container:o,...s}=e;return u.createElement(a.bL,{open:n,onOpenChange:r},u.createElement(a.ZL,{container:o},u.createElement(a.hJ,{"cmdk-overlay":"",className:i}),u.createElement(a.UC,{"aria-label":e.label,"cmdk-dialog":"",className:l},u.createElement(k,{ref:t,...s}))))}),M=Object.assign(k,{List:F,Item:E,Input:N,Group:T,Separator:A,Dialog:R,Empty:u.forwardRef((e,t)=>L(e=>0===e.filtered.count)?u.createElement(c.sG.div,{ref:t,...e,"cmdk-empty":"",role:"presentation"}):null),Loading:u.forwardRef((e,t)=>{let{progress:n,children:r,label:i="Loading...",...l}=e;return u.createElement(c.sG.div,{ref:t,...l,"cmdk-loading":"",role:"progressbar","aria-valuenow":n,"aria-valuemin":0,"aria-valuemax":100,"aria-label":i},K(e,e=>u.createElement("div",{"aria-hidden":!0},e)))})});function O(e){let t=u.useRef(e);return I(()=>{t.current=e}),t}var I="undefined"==typeof window?u.useEffect:u.useLayoutEffect;function P(e){let t=u.useRef();return void 0===t.current&&(t.current=e()),t}function L(e){let t=w(),n=()=>e(t.snapshot());return u.useSyncExternalStore(t.subscribe,n,n)}function D(e,t,n){let r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:[],i=u.useRef(),l=x();return I(()=>{var o;let s=(()=>{var e;
1for(let t of n){if("string"==typeof t)return t.trim();if("object"==typeof t&&"current"in t)return t.current?null==(e=t.current.textContent)?void 0:e.trim():i.current}})(),a=r.map(e=>e.trim());l.value(e,s,a),null==(o=t.current)||o.setAttribute(v,s),i.current=s}),i}var B=()=>{let[e,t]=u.useState(),n=P(()=>new Map);return I(()=>{n.current.forEach(e=>e()),n.current=new Map},[e]),(e,r)=>{n.current.set(e,r),t({})}};function K(e,t){let n,{asChild:r,children:i}=e;return r&&u.isValidElement(i)?u.cloneElement("function"==typeof(n=i.type)?n(i.props):"render"in n?n.render(i.props):i,{ref:i.ref},t(i.props.children)):t(i)}var z={position:"absolute",width:"1px",height:"1px",padding:"0",margin:"-1px",overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",borderWidth:"0"}},15161:(e,t,n)=>{"use strict";n.d(t,{A:()=>r});let r=(0,n(78340).A)("ListTodo",[["rect",{x:"3",y:"5",width:"6",height:"6",rx:"1",key:"1defrl"}],["path",{d:"m3 17 2 2 4-4",key:"1jhpwq"}],["path",{d:"M13 6h8",key:"15sg57"}],["path",{d:"M13 12h8",key:"h98zly"}],["path",{d:"M13 18h8",key:"oe0vm4"}]])},15176:(e,t,n)=>{"use strict";n.d(t,{j:()=>c});var r=n(36997),i=n(64246),l=n(47241),o=n(43971),s=n(53310),a=n(12115),u=n(95155);function c({children:e,format:t,nodeKey:n,className:c}){let[d]=(0,r.DF)(),[f,g,h]=(0,l.Y)(n),p=(0,a.useRef)(null);return(0,a.useEffect)(()=>(0,o.Sd)(d.registerCommand(s.fUS,e=>{if(f){let t=(0,s.vJq)();if((0,s.RTZ)(t)){let t=(0,s.nsf)(n);(0,i.D)(t)&&t.setFormat(e)}else if((0,s.I2P)(t))for(let n of t.getNodes())(0,i.D)(n)?n.setFormat(e):(0,o.mB)(n).setFormat(e);return!0}return!1},s.AcJ),d.registerCommand(s.d8p,e=>e.target===p.current&&(e.preventDefault(),e.shiftKey||h(),g(!f),!0),s.AcJ)),[h,d,f,n,g]),(0,u.jsx)("div",{className:[c.base,f?c.focus:null].filter(Boolean).join(" "),ref:p,style:{textAlign:t||void 0},children:e})}},17243:(e,t,n)=>{"use strict";n.d(t,{A:()=>r});let r=(0,n(78340).A)("Image",[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",ry:"2",key:"1m3agn"}],["circle",{cx:"9",cy:"9",r:"2",key:"af1f0g"}],["path",{d:"m21 15-3.086-3.086a2 2 0 0 0-2.828 0L6 21",key:"1xmnt7"}]])},19235:(e,t,n)=>{"use strict";n.d(t,{r:()=>m});var r=n(36997),i=n(46716),l=n(43971),o=n(53310),s=n(12115),a=n(47650),u=n(95155);class c{constructor(e,t){this._x=e,this._y=t}get x(){return this._x}get y(){return this._y}equals({x:e,y:t}){return this.x===e&&this.y===t}calcDeltaXTo({x:e}){return this.x-e}calcDeltaYTo({y:e}){return this.y-e}calcHorizontalDistanceTo(e){return Math.abs(this.calcDeltaXTo(e))}calcVerticalDistance(e){return Math.abs(this.calcDeltaYTo(e))}calcDistanceTo(e){return Math.sqrt(Math.pow(this.calcDeltaXTo(e),2)+Math.pow(this.calcDeltaYTo(e),2))}}class d{constructor(e,t,n,r){let[i,l]=t<=r?[t,r]:[r,t],[o,s]=e<=n?[e,n]:[n,e];this._top=i,this._right=s,this._left=o,this._bottom=l}get top(){return this._top}get right(){return this._right}get bottom(){return this._bottom}get left(){return this._left}get width(){return Math.abs(this._left-this._right)}get height(){return Math.abs(this._bottom-this._top)}equals({top:e,left:t,bottom:n,right:r}){return e===this._top&&n===this._bottom&&t===this._left&&r===this._right}contains(e){if(e instanceof c){let{x:t,y:n}=e,r=n<this._top,i=n>this._bottom,l=t<this._left,o=t>this._right;return{reason:{isOnBottomSide:i,isOnLeftSide:l,isOnRightSide:o,isOnTopSide:r},result:!(r||i||l||o)}}{let{top:t,left:n,bottom:r,right:i}=e;return t>=this._top&&t<=this._bottom&&r>=this._top&&r<=this._bottom&&n>=this._left&&n<=this._right&&i>=this._left&&i<=this._right}}intersectsWith(e){let{left:t,top:n,width:r,height:i}=e,{left:l,top:o,width:s,height:a}=this;return(t+r>=l+s?t+r:l+s)-(t<=l?t:l)<=r+s&&(n+i>=o+a?n+i:o+a)-(n<=o?n:o)<=i+a}generateNewRect({left:e=this.left,top:t=this.top,right:n=this.right,bottom:r=this.bottom}){return new d(e,t,n,r)}static fromLTRB(e,t,n,r){return new d(e,t,n,r)}static fromLWTH(e,t,n,r){return new d(e,n,e+t,n+r)}static fromPoints(e,t){let{y:n,x:r}=e,{y:i,x:l}=t;return d.fromLTRB(r,n,l,i)}static fromDOM(e){let{top:t,width:n,left:r,height:i}=e.getBoundingClientRect();return d.fromLWTH(r,n,t,i)}}
1let f="application/x-lexical-drag-block",g=1/0;function h(e){let t=(e,t)=>e?parseFloat(window.getComputedStyle(e)[t]):0,{marginTop:n,marginBottom:r}=window.getComputedStyle(e),i=t(e.previousElementSibling,"marginBottom"),l=t(e.nextElementSibling,"marginTop"),o=Math.max(parseFloat(n),i);return{marginBottom:Math.max(parseFloat(r),l),marginTop:o}}function p(e,t,n,r=!1){let i=e.getBoundingClientRect(),s=t.getEditorState().read(()=>(0,o.NiT)().getChildrenKeys()),a=null;return t.getEditorState().read(()=>{var e;if(r){let[e,r]=[t.getElementByKey(s[0]),t.getElementByKey(s[s.length-1])],[i,o]=[null!=e?e.getBoundingClientRect():void 0,null!=r?r.getBoundingClientRect():void 0];if(i&&o){let t=(0,l.OV)(e),s=(0,l.OV)(r);if(n.y/t<i.top?a=e:n.y/s>o.bottom&&(a=r),a)return}}let o=0===(e=s.length)?1/0:g>=0&&g<e?g:Math.floor(e/2),u=0;for(;o>=0&&o<s.length;){let e=s[o],r=t.getElementByKey(e);if(null===r)break;let f=(0,l.OV)(r),p=new c(n.x/f,n.y/f),m=d.fromDOM(r),{marginTop:y,marginBottom:v}=h(r),{result:_,reason:{isOnTopSide:b,isOnBottomSide:x}}=m.generateNewRect({bottom:m.bottom+v,left:i.left,right:i.right,top:m.top-y}).contains(p);if(_){a=r,g=o;break}0===u&&(u=b?-1:x?1:1/0),o+=u}}),a}function m({anchorElem:e=document.body,menuRef:t,targetLineRef:n,menuComponent:c,targetLineComponent:d,isOnMenu:g,onElementChanged:m}){let[y]=(0,r.DF)();return function(e,t,n,r,c,d,g,m,y){let v=t.parentElement,_=(0,s.useRef)(!1),[b,x]=(0,s.use
1State)(null),S=(0,s.useCallback)(e=>{x(e),y&&y(e)},[y]);return(0,s.useEffect)(()=>{function n(n){let r=n.target;if(!(0,o.sby)(r))return void S(null);m(r)||S(p(t,e,n))}function r(){S(null)}return null!=v&&(v.addEventListener("mousemove",n),v.addEventListener("mouseleave",r)),()=>{null!=v&&(v.removeEventListener("mousemove",n),v.removeEventListener("mouseleave",r))}},[v,t,e,m,S]),(0,s.useEffect)(()=>{n.current&&function(e,t,n){if(!e)return t.style.opacity="0",t.style.transform="translate(-10000px, -10000px)";let r=e.getBoundingClientRect(),i=window.getComputedStyle(e),l=t.getBoundingClientRect(),o=n.getBoundingClientRect(),s=parseInt(i.lineHeight,10);isNaN(s)&&(s=r.bottom-r.top);let a=r.top+(s-l.height)/2-o.top+n.scrollTop;t.style.opacity="1",t.style.transform=`translate(4px, ${a}px)`}(b,n.current,t)},[t,b,n]),(0,s.useEffect)(()=>(0,l.Sd)(e.registerCommand(o.riq,n=>(function(n){if(!_.current)return!1;let[s]=(0,i.gA)(n);if(s)return!1;let{pageY:a,target:u}=n;if(!(0,o.sby)(u))return!1;let c=p(t,e,n,!0),d=r.current;return null!==c&&null!==d&&(function(e,t,n,r){let{top:i,height:l}=t.getBoundingClientRect(),{top:o,width:s}=r.getBoundingClientRect(),{marginTop:a,marginBottom:u}=h(t),c=i;n>=i?c+=l+u/2:c-=a/2;let d=c-o-2+r.scrollTop;e.style.transform=`translate(24px, ${d}px)`,e.style.width=s-48+"px",e.style.opacity=".4"}(d,c,a/(0,l.OV)(u),t),n.preventDefault(),!0)})(n),o.AcJ),e.registerCommand(o.Sr4,n=>(function(n){if(!_.current)return!1;let[r]=(0,i.gA)(n);if(r)return!1;let{target:s,dataTransfer:a,pageY:u}=n,c=null!=a?a.getData(f):"",d=(0,o.nsf)(c);if(!d||!(0,o.sby)(s))return!1;let g=p(t,e,n,!0);if(!g)return!1;let h=(0,o.xL4)(g);if(!h)return!1;if(h===d)return!0;let m=g.getBoundingClientRect().top;return u/(0,l.OV)(s)>=m?h.insertAfter(d):h.insertBefore(d),S(null),!0})(n),o.WgU)),[t,e,r,S]),(0,a.createPortal)((0,u.jsxs)(u.Fragment,{children:[(0,u.jsx)("div",{draggable:!0,onDragStart:function(t){let n=t.dataTransfer;if(!n||!b)return;let{transform:r}=b.style;b.style.transform="translateZ(0)",n.setDragImage(b,0,0),setTimeout(()=>{b.style.transform=r});let i="";e.update(()=>{let e=(0,o.xL4)(b);e&&(i=e.getKey())}),_.current=!0,n.setData(f,i)},onDragEnd:function(){var e;_.current=!1,(e=r.current)&&(e.style.opacity="0",e.style.transform="translate(-10000px, -10000px)")},children:c&&d}),g]}),t)}(y,e,t,n,y._editable,c,d,g,m)}},20869:(e,t,n)=>{"use strict";n.d(t,{tH:()=>o});var r=n(12115);let i=(0,r.createContext)(null),l={didCatch:!1,error:null};class o extends r.Component{static getDerivedStateFromError(e){return{didCatch:!0,error:e}}resetErrorBoundary(){for(var e,t,n=arguments.length,r=Array(n),i=0;i<n;i++)r[i]=arguments[i];let{error:o}=this.state;null!==o&&(null==(e=(t=this.props).onReset)||e.call(t,{args:r,reason:"imperative-api"}),this.setState(l))}componentDidCatch(e,t){var n,r;null==(n=(r=this.props).onError)||n.call(r,e,t)}componentDidUpdate(e,t){var n,r;let{didCatch:i}=this.state,{resetKeys:o}=this.props;i&&null!==t.error&&function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];return e.length!==t.length||e.some((e,n)=>!Object.is(e,t[n]))}(e.resetKeys,o)&&(null==(n=(r=this.props).onReset)||n.call(r,{next:o,prev:e.resetKeys,reason:"keys"}),this.setState(l))}render(){let{children:e,fallbackRender:t,FallbackComponent:n,fallback:l}=this.props,{didCatch:o,error:s}=this.state,a=e;if(o){let e={error:s,resetErrorBoundary:this.resetErrorBoundary};if("function"==typeof t)a=t(e);else if(n)a=(0,r.createElement)(n,e);else if(void 0!==l)a=l;else throw s}return(0,r.createElement)(i.Provider,{value:{didCatch:o,error:s,resetErrorBoundary:this.resetErrorBoundary}},a)}constructor(e){super(e),this.resetErrorBoundary=this.resetErrorBoundary.bind(this),this.state=l}}},21524:()=>{!function(e){e.languages.typescript=e.languages.extend("javascript",{"class-name":{pattern:/(\b(?:class|extends|implements|instanceof|interface|new|type)\s+)(?!keyof\b)(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?:\s*<(?:[^<>]|<(?:[^<>]|<[^<>]*>)*>)*>)?/,lookbehind:!0,greedy:!0,inside:null},builtin:/\b(?:Array|Function|Promise|any|boolean|console|never|number|string|symbol|unknown)\b/}),e.languages.typescript.keyword.push(/\b(?:abstract|declare|is|keyof|readonly|require)\b/,/\b(?:asserts|infer|interface|module|namespace|type)\b(?=\s*(?:[{_$a-zA-Z\xA0-\uFFFF]|$))/,/\btype\b(?=\s*(?:[\{*]|$))/),delete e.languages.typescript.parameter,delete e.languages.typescript["literal-property"];var t=e.languages.extend("typescript",{});delete t["class-name"],e.languages.typescript["class-name"].inside=t,e.languages.insertBefore("typescript","function",{decorator:{pattern:/@[$\w\xA0-\uFFFF]+/,inside:{at:{pattern:/^@/,alias:"operator"},function:/^[\s\S]+/}},"generic-function":{pattern:/#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*\s*<(?:[^<>]|<(?:[^<>]|<[^<>]*>)*>)*>(?=\s*\()/,greedy:!0,inside:{function:/^#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*/,generic:{pattern:/<[\s\S]+/,alias:"class-name",inside:t}}}}),e.languages.ts=e.languages.typescript}(Prism)},21576:(e,t,n)=>{"use strict";n.d(t,{A:()=>r});let r=(0,n(78340).A)("AlignRight",[["path",{d:"M21 12H9",key:"dn1m92"}],["path",{d:"M21 18H7",key:"1ygte8"}],["path",{d:"M21 6H3",key:"1jwq7v"}]])},21975:(e,t,n)=>{"use strict";n.d(t,{A:()=>r});let r=(0,n(78340).A)("Upload",[["path",{d:"M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4",key:"ih7n3h"}],["polyline",{points:"17 8 12 3 7 8",key:"t8dd8p"}],["line",{x1:"12",x2:"12",y1:"3",y2:"15",key:"widbto"}]])},22673:(e,t,n)=>{"use strict";n.d(t,{m:()=>s});var r=n(36997),i=n(43971),l=n(53310),o=n(12115);function s({maxIndent:e}){let[t]=(0,r.DF)();return(0,o.useEffect)(()=>(0,i.Sd)(t.registerCommand(l.OXk,e=>{let n=(0,l.vJq)();if(!(0,l.I2P)(n))return!1;e.preventDefault();let r=!function(e){let t=e.getNodes();if((0,i.zD)(t,e=>(0,l.y68)(e)&&e.canIndent()?e:null).length>0)return!0;let n=e.anchor,r=e.focus,o=r.isBefore(n)?r:n,s=o.getNode(),a=(0,i.mB)(s);if(a.canIndent()){let e=a.getKey(),t=(0,l.uTE)();
1if(t.anchor.set(e,0,"element"),t.focus.set(e,0,"element"),(t=(0,l.CaD)(t)).anchor.is(o))return!0}return!1}(n)?l.YW5:e.shiftKey?l.sik:l.PiT;return t.dispatchCommand(r,void 0)},l.jZM),t.registerCommand(l.PiT,()=>{if(null==e)return!1;let t=(0,l.vJq)();return!!(0,l.I2P)(t)&&Math.max(...t.getNodes().map(e=>(0,i.mB)(e).getIndent()))+1>=e},l.da8)),[t,e]),null}},22773:()=>{!function(e){for(var t=/\/\*(?:[^*/]|\*(?!\/)|\/(?!\*)|<self>)*\*\//.source,n=0;n<2;n++)t=t.replace(/<self>/g,function(){return t});t=t.replace(/<self>/g,function(){return/[^\s\S]/.source}),e.languages.rust={comment:[{pattern:RegExp(/(^|[^\\])/.source+t),lookbehind:!0,greedy:!0},{pattern:/(^|[^\\:])\/\/.*/,lookbehind:!0,greedy:!0}],string:{pattern:/b?"(?:\\[\s\S]|[^\\"])*"|b?r(#*)"(?:[^"]|"(?!\1))*"\1/,greedy:!0},char:{pattern:/b?'(?:\\(?:x[0-7][\da-fA-F]|u\{(?:[\da-fA-F]_*){1,6}\}|.)|[^\\\r\n\t'])'/,greedy:!0},attribute:{pattern:/#!?\[(?:[^\[\]"]|"(?:\\[\s\S]|[^\\"])*")*\]/,greedy:!0,alias:"attr-name",inside:{string:null}},"closure-params":{pattern:/([=(,:]\s*|\bmove\s*)\|[^|]*\||\|[^|]*\|(?=\s*(?:\{|->))/,lookbehind:!0,greedy:!0,inside:{"closure-punctuation":{pattern:/^\||\|$/,alias:"punctuation"},rest:null}},"lifetime-annotation":{pattern:/'\w+/,alias:"symbol"},"fragment-specifier":{pattern:/(\$\w+:)[a-z]+/,lookbehind:!0,alias:"punctuation"},variable:/\$\w+/,"function-definition":{pattern:/(\bfn\s+)\w+/,lookbehind:!0,alias:"function"},"type-definition":{pattern:/(\b(?:enum|struct|trait|type|union)\s+)\w+/,lookbehind:!0,alias:"class-name"},"module-declaration":[{pattern:/(\b(?:crate|mod)\s+)[a-z][a-z_\d]*/,lookbehind:!0,alias:"namespace"},{pattern:/(\b(?:crate|self|super)\s*)::\s*[a-z][a-z_\d]*\b(?:\s*::(?:\s*[a-z][a-z_\d]*\s*::)*)?/,lookbehind:!0,alias:"namespace",inside:{punctuation:/::/}}],keyword:[/\b(?:Self|abstract|as|async|await|become|box|break|const|continue|crate|do|dyn|else|enum|extern|final|fn|for|if|impl|in|let|loop|macro|match|mod|move|mut|override|priv|pub|ref|return|self|static|struct|super|trait|try|type|typeof|union|unsafe|unsized|use|virtual|where|while|yield)\b/,/\b(?:bool|char|f(?:32|64)|[ui](?:8|16|32|64|128|size)|str)\b/],function:/\b[a-z_]\w*(?=\s*(?:::\s*<|\())/,macro:{pattern:/\b\w+!/,alias:"property"},constant:/\b[A-Z_][A-Z_\d]+\b/,"class-name":/\b[A-Z]\w*\b/,namespace:{pattern:/(?:\b[a-z][a-z_\d]*\s*::\s*)*\b[a-z][a-z_\d]*\s*::(?!\s*<)/,inside:{punctuation:/::/}},number:/\b(?:0x[\dA-Fa-f](?:_?[\dA-Fa-f])*|0o[0-7](?:_?[0-7])*|0b[01](?:_?[01])*|(?:(?:\d(?:_?\d)*)?\.)?\d(?:_?\d)*(?:[Ee][+-]?\d+)?)(?:_?(?:f32|f64|[iu](?:8|16|32|64|size)?))?\b/,boolean:/\b(?:false|true)\b/,punctuation:/->|\.\.=|\.{1,3}|::|[{}[\];(),:]/,operator:/[-+*\/%!^]=?|=[=>]?|&[&=]?|\|[|=]?|<<?=?|>>?=?|[@?]/},e.languages.rust["closure-params"].inside.rest=e.languages.rust,e.languages.rust.attribute.inside.string=e.languages.rust.string}(Prism)},23435:()=>{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},23770:(e,t,n)=>{"use strict";n.d(t,{A:()=>r});let r=(0,n(78340).A)("Italic",[["line",{x1:"19",x2:"10",y1:"4",y2:"4",key:"15jd3p"}],["line",{x1:"14",x2:"5",y1:"20",y2:"20",key:"bu0au3"}],["line",{x1:"15",x2:"9",y1:"4",y2:"20",key:"uljnxc"}]])},25308:(e,t,n)=>{"use strict";n.d(t,{R:()=>a});var r=n(12115),i=n(95155);function l(e,t){return(l=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}var o={error:null},s=function(e){function t(){for(var t,n=arguments.length,r=Array(n),i=0;i<n;i++)r[i]=arguments[i];return(t=e.call.apply(e,[this].concat(r))||this).state=o,t.resetErrorBoundary=function(){for(var e,n=arguments.length,r=Array(n),i=0;i<n;i++)r[i]=arguments[i];null==t.props.onReset||(e=t.props).onReset.apply(e,r),t.reset()},t}t.prototype=Object.create(e.prototype),t.prototype.constructor=t,l(t,e),t.getDerivedStateFromError=function(e){return{error:e}};var n=t.prototype;return n.reset=function(){this.setState(o)},n.componentDidCatch=function(e,t){var n,r;null==(n=(r=this.props).onError)||n.call(r,e,t)},n.componentDidUpdate=function(e,t){var n,r,i,l,o=this.state.error,s=this.props.resetKeys;null!==o&&null!==t.error&&(void 0===(i=e.resetKeys)&&(i=[]),void 0===(l=s)&&(l=[]),i.length!==l.length||i.some(function(e,t){return!Object.is(e,l[t])}))&&(null==(n=(r=this.props).onResetKeysChange)||n.call(r,e.resetKeys,s),this.reset())},n.render=function(){var e=this.state.error,t=this.props,n=t.fallbackRender,i=t.FallbackComponent,l=t.fallback;if(null!==e){var o={error:e,resetErrorBoundary:this.resetErrorBoundary};if(r.isValidElement(l))return l;if("function"==typeof n)return n(o);if(i)return r.createElement(i,o);throw Error("react-error-boundary requires either a fallback, fallbackRender, or FallbackComponent prop")}return this.props.children},t}(r.Component);function a({children:e,onError:t}){return(0,i.jsx)(s,{fallback:(0,i.jsx)("div",{style:{border:"1px solid #f00",color:"#f00",padding:"8px"},children:"An error was thrown."}),onError:t,children:e})}},26610:()=>{!function(e){var t=/(?:\\.|[^\\\n\r]|(?:\n|\r\n?)(?![\r\n]))/.source;function n(e){return e=e.replace(/<inner>/g,function(){return t}),RegExp(/((?:^|[^\\])(?:\\{2}
vendor: 3,732 bytes, line 1
1)*)/.source+"(?:"+e+")")}var r=/(?:\\.|``(?:[^`\r\n]|`(?!`))+``|`[^`\r\n]+`|[^\\|\r\n`])+/.source,i=/\|?__(?:\|__)+\|?(?:(?:\n|\r\n?)|(?![\s\S]))/.source.replace(/__/g,function(){return r}),l=/\|?[ \t]*:?-{3,}:?[ \t]*(?:\|[ \t]*:?-{3,}:?[ \t]*)+\|?(?:\n|\r\n?)/.source;e.languages.markdown=e.languages.extend("markup",{}),e.languages.insertBefore("markdown","prolog",{"front-matter-block":{pattern:/(^(?:\s*[\r\n])?)---(?!.)[\s\S]*?[\r\n]---(?!.)/,lookbehind:!0,greedy:!0,inside:{punctuation:/^---|---$/,"front-matter":{pattern:/\S+(?:\s+\S+)*/,alias:["yaml","language-yaml"],inside:e.languages.yaml}}},blockquote:{pattern:/^>(?:[\t ]*>)*/m,alias:"punctuation"},table:{pattern:RegExp("^"+i+l+"(?:"+i+")*","m"),inside:{"table-data-rows":{pattern:RegExp("^("+i+l+")(?:"+i+")*$"),lookbehind:!0,inside:{"table-data":{pattern:RegExp(r),inside:e.languages.markdown},punctuation:/\|/}},"table-line":{pattern:RegExp("^("+i+")"+l+"$"),lookbehind:!0,inside:{punctuation:/\||:?-{3,}:?/}},"table-header-row":{pattern:RegExp("^"+i+"$"),inside:{"table-header":{pattern:RegExp(r),alias:"important",inside:e.languages.markdown},punctuation:/\|/}}}},code:[{pattern:/((?:^|\n)[ \t]*\n|(?:^|\r\n?)[ \t]*\r\n?)(?: {4}|\t).+(?:(?:\n|\r\n?)(?: {4}|\t).+)*/,lookbehind:!0,alias:"keyword"},{pattern:/^```[\s\S]*?^```$/m,greedy:!0,inside:{"code-block":{pattern:/^(```.*(?:\n|\r\n?))[\s\S]+?(?=(?:\n|\r\n?)^```$)/m,lookbehind:!0},"code-language":{pattern:/^(```).+/,lookbehind:!0},punctuation:/```/}}],title:[{pattern:/\S.*(?:\n|\r\n?)(?:==+|--+)(?=[ \t]*$)/m,alias:"important",inside:{punctuation:/==+$|--+$/}},{pattern:/(^\s*)#.+/m,lookbehind:!0,alias:"important",inside:{punctuation:/^#+|#+$/}}],hr:{pattern:/(^\s*)([*-])(?:[\t ]*\2){2,}(?=\s*$)/m,lookbehind:!0,alias:"punctuation"},list:{pattern:/(^\s*)(?:[*+-]|\d+\.)(?=[\t ].)/m,lookbehind:!0,alias:"punctuation"},"url-reference":{pattern:/!?\[[^\]]+\]:[\t ]+(?:\S+|<(?:\\.|[^>\\])+>)(?:[\t ]+(?:"(?:\\.|[^"\\])*"|'(?:\\.|[^'\\])*'|\((?:\\.|[^)\\])*\)))?/,inside:{variable:{pattern:/^(!?\[)[^\]]+/,lookbehind:!0},string:/(?:"(?:\\.|[^"\\])*"|'(?:\\.|[^'\\])*'|\((?:\\.|[^)\\])*\))$/,punctuation:/^[\[\]!:]|[<>]/},alias:"url"},bold:{pattern:n(/\b__(?:(?!_)<inner>|_(?:(?!_)<inner>)+_)+__\b|\*\*(?:(?!\*)<inner>|\*(?:(?!\*)<inner>)+\*)+\*\*/.source),lookbehind:!0,greedy:!0,inside:{content:{pattern:/(^..)[\s\S]+(?=..$)/,lookbehind:!0,inside:{}},punctuation:/\*\*|__/}},italic:{pattern:n(/\b_(?:(?!_)<inner>|__(?:(?!_)<inner>)+__)+_\b|\*(?:(?!\*)<inner>|\*\*(?:(?!\*)<inner>)+\*\*)+\*/.source),lookbehind:!0,greedy:!0,inside:{content:{pattern:/(^.)[\s\S]+(?=.$)/,lookbehind:!0,inside:{}},punctuation:/[*_]/}},strike:{pattern:n(/(~~?)(?:(?!~)<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:n(/!?\[(?:(?!\])<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(t){["url","bold","italic","strike","code-snippet"].forEach(function(n){t!==n&&(e.languages.markdown[t].inside.content.inside[n]=e.languages.markdown[n])})}),e.hooks.add("after-tokenize",function(e){("markdown"===e.language||"md"===e.language)&&function e(t){if(t&&"string"!=typeof t)for(var n=0,r=t.length;n<r;n++){var i=t[n];
1if("code"!==i.type){e(i.content);continue}var l=i.content[1],o=i.content[3];if(l&&o&&"code-language"===l.type&&"code-block"===o.type&&"string"==typeof l.content){var s=l.content.replace(/\b#/g,"sharp").replace(/\b\+\+/g,"pp"),a="language-"+(s=(/[a-z][\w-]*/i.exec(s)||[""])[0].toLowerCase());o.alias?"string"==typeof o.alias?o.alias=[o.alias,a]:o.alias.push(a):o.alias=[a]}}}(e.tokens)}),e.hooks.add("wrap",function(t){if("code-block"===t.type){for(var n,r="",i=0,l=t.classes.length;i<l;i++){var u=t.classes[i],c=/language-(.+)/.exec(u);if(c){r=c[1];break}}var d=e.languages[r];if(d){t.content=e.highlight((n=t.content.replace(o,"")).replace(/&(\w{1,8}|#x?[\da-f]{1,8});/gi,function(e,t){if("#"===(t=t.toLowerCase())[0])return a("x"===t[1]?parseInt(t.slice(2),16):Number(t.slice(1)));var n=s[t];return n||e}),d,r)}else if(r&&"none"!==r&&e.plugins.autoloader){var f="md-"+new Date().valueOf()+"-"+Math.floor(1e16*Math.random());t.attributes.id=f,e.plugins.autoloader.loadLanguages(r,function(){var t=document.getElementById(f);t&&(t.innerHTML=e.highlight(t.textContent,e.languages[r],r))})}}});var o=RegExp(e.languages.markup.tag.pattern.source,"gi"),s={amp:"&",lt:"<",gt:">",quot:'"'},a=String.fromCodePoint||String.fromCharCode;e.languages.md=e.languages.markdown}(Prism)},26759:(e,t,n)=>{"use strict";n.d(t,{A:()=>r});let r=(0,n(78340).A)("ClipboardType",[["rect",{width:"8",height:"4",x:"8",y:"2",rx:"1",ry:"1",key:"tgr4d6"}],["path",{d:"M16 4h2a2 2 0 0 1 2 2v14a2 2 0 0 1-2 2H6a2 2 0 0 1-2-2V6a2 2 0 0 1 2-2h2",key:"116196"}],["path",{d:"M9 12v-1h6v1",key:"iehl6m"}],["path",{d:"M11 17h2",key:"12w5me"}],["path",{d:"M12 11v6",key:"1bwqyc"}]])},27469:(e,t,n)=>{"use strict";n.d(t,{BB:()=>d,QP:()=>v,mx:()=>y});var r=n(36997),i=n(53310),l=n(12115),o=n(43971),s=n(95155);let a="startTransition",u="undefined"!=typeof window&&void 0!==window.document&&void 0!==window.document.createElement,c=u?l.useLayoutEffect:l.useEffect;class d{constructor(e){this.key=e,this.ref={current:null},this.setRefElement=this.setRefElement.bind(this)}setRefElement(e){this.ref={current:e}}}let f=e=>{let t=document.getElementById("typeahead-menu");if(!t)return;let n=t.getBoundingClientRect();n.top+n.height>window.innerHeight&&t.scrollIntoView({block:"center"}),n.top<0&&t.scrollIntoView({block:"center"}),e.scrollIntoView({block:"nearest"})};function g(e,t){let n=e.getBoundingClientRect(),r=t.getBoundingClientRect();return n.top>r.top&&n.top<r.bottom}let h=(0,i.guI)("SCROLL_TYPEAHEAD_OPTION_INTO_VIEW_COMMAND");function p({close:e,editor:t,anchorElementRef:n,resolution:r,options:s,menuRenderFn:a,onSelectOption:u,shouldSplitNodeWithQuery:d=!1,commandPriority:g=i.AcJ,preselectFirstItem:p=!0}){let[m,y]=(0,l.useState)(null),v=r.match&&r.match.matchingString;(0,l.useEffect)(()=>{p&&y(0)},[v,p]);let _=(0,l.useCallback)(n=>{t.update(()=>{u(n,null!=r.match&&d?function(e){let t,n=(0,i.vJq)();if(!(0,i.I2P)(n)||!n.isCollapsed())return null;let r=n.anchor;if("text"!==r.type)return null;let l=r.getNode();if(!l.isSimpleText())return null;let o=r.offset,s=l.getTextContent().slice(0,o),a=e.replaceableString.length,u=o-function(e,t,n){let r=n;for(let n=r;n<=t.length;n++)e.slice(-n)===t.substring(0,n)&&(r=n);return r}(s,e.matchingString,a);return u<0?null:(0===u?[t]=l.splitText(o):[,t]=l.splitText(u,o),t)}(r.match):null,e,r.match?r.match.matchingString:"")})},[t,d,r.match,u,e]),b=(0,l.useCallback)(e=>{let n=t.getRootElement();null!==n&&(n.setAttribute("aria-activedescendant","typeahead-item-"+e),y(e))},[t]);return(0,l.useEffect)(()=>()=>{let e=t.getRootElement();null!==e&&e.removeAttribute("aria-activedescendant")},[t]),c(()=>{null===s?y(null):null===m&&p&&b(0)},[s,m,b,p]),(0,l.useEffect)(()=>(0,o.Sd)(t.registerCommand(h,({option:e})=>!(!e.ref||null==e.ref.current)&&(f(e.ref.current),!0),g)),[t,b,g]),(0,l.useEffect)(()=>(0,o.Sd)(t.registerCommand(i.bbF,e=>{if(null!==s&&s.length){let n=null===m?0:m!==s.length-1?m+1:0;b(n);let r=s[n];null!=r.ref&&r.ref.current&&t.dispatchCommand(h,{index:n,option:r}),e.preventDefault(),e.stopImmediatePropagation()}return!0},g),t.registerCommand(i.UDz,e=>{if(null!==s&&s.length){let t=null===m?s.length-1:0!==m?m-1:s.length-1;b(t);let n=s[t];null!=n.ref&&n.ref.current&&f(n.ref.current),e.preventDefault(),e.stopImmediatePropagation()}return!0},g),t.registerCommand(i.Q$N,t=>(t.preventDefault(),t.stopImmediatePropagation(),e(),!0),g),t.registerCommand(i.OXk,e=>null!==s&&null!==m&&null!=s[m]&&(e.preventDefault(),e.stopImmediatePropagation(),_(s[m]),!0),g),t.registerCommand(i.RTo,e=>null!==s&&null!==m&&null!=s[m]&&(null!==e&&(e.preventDefault(),e.stopImmediatePropagation()),_(s[m]),!0),g)),[_,e,t,s,m,b,g]),a(n,
1(0,l.useMemo)(()=>({options:s,selectOptionAndCleanUp:_,selectedIndex:m,setHighlightedIndex:y}),[_,m,s]),r.match?r.match.matchingString:"")}function m(e,t){null!=t&&(e.className=t),e.setAttribute("aria-label","Typeahead menu"),e.setAttribute("role","listbox"),e.style.display="block",e.style.position="absolute"}function y(e,{minLength:t=1,maxLength:n=75,punctuation:r="\\.,\\+\\*\\?\\$\\@\\|#{}\\(\\)\\^\\-\\[\\]\\\\/!%'\"~=<>_:;",allowWhitespace:i=!1}){return(0,l.useCallback)(l=>{let o=RegExp("(^|\\s|\\()(["+e+"]((?:"+("[^"+e+r)+(i?"":"\\s")+"]){0,"+n+"}))$").exec(l);if(null!==o){let e=o[1],n=o[3];if(n.length>=t)return{leadOffset:o.index+e.length,matchingString:n,replaceableString:o[2]}}return null},[i,e,r,n,t])}function v({options:e,onQueryChange:t,onSelectOption:n,onOpen:o,onClose:c,menuRenderFn:d,triggerFn:f,anchorClassName:h,commandPriority:y=i.AcJ,parent:v,preselectFirstItem:_=!0,ignoreEntityBoundary:b=!1}){let[x]=(0,r.DF)(),[S,w]=(0,l.useState)(null),C=function(e,t,n,i=u?document.body:void 0,o=!0){let[s]=(0,r.DF)(),a=u?document.createElement("div"):null,c=(0,l.useRef)(a),d=(0,l.useCallback)(()=>{if(null===c.current||void 0===i)return;c.current.style.top=c.current.style.bottom;let t=s.getRootElement(),r=c.current,l=r.firstChild;if(null!==t&&null!==e){let{left:s,top:a,width:u,height:d}=e.getRect(),f=c.current.offsetHeight;if(r.style.top=`${a+f+3+(o?window.pageYOffset:0)}px`,r.style.left=`${s+window.pageXOffset}px`,r.style.height=`${d}px`,r.style.width=`${u}px`,null!==l){l.style.top=`${a}`;let e=l.getBoundingClientRect(),n=e.height,i=e.width,u=t.getBoundingClientRect();s+i>u.right&&(r.style.left=`${u.right-i+window.pageXOffset}px`),(a+n>window.innerHeight||a+n>u.bottom)&&a-u.top>n+d&&(r.style.top=`${a-n-d+(o?window.pageYOffset:0)}px`)}r.isConnected||(m(r,n),i.append(r)),r.setAttribute("id","typeahead-menu"),t.setAttribute("aria-controls","typeahead-menu")}},[s,e,o,n,i]);(0,l.useEffect)(()=>{let t=s.getRootElement();return null!==e&&d(),()=>{null!==t&&t.removeAttribute("aria-controls");let e=c.current;null!==e&&e.isConnected&&(e.remove(),e.removeAttribute("id"))}},[s,d,e]);let f=(0,l.useCallback)(n=>{null!==e&&(n||t(null))},[e,t]);return function(e,t,n,i){let[o]=(0,r.DF)();(0,l.useEffect)(()=>{if(null!=t&&null!=e){let e=o.getRootElement(),r=null!=e?function(e,t){let n=getComputedStyle(e),r="absolute"===n.position,i=/(auto|scroll)/;if("fixed"===n.position)return document.body;for(let t=e;t=t.parentElement;)if(n=getComputedStyle(t),(!r||"static"!==n.position)&&i.test(n.overflow+n.overflowY+n.overflowX))return t;return document.body}(e):document.body,l=!1,s=g(t,r),a=function(){l||(window.requestAnimationFrame(function(){n(),l=!1}),l=!0);let e=g(t,r);e!==s&&(s=e,null!=i&&i(e))},u=new ResizeObserver(n);return window.addEventListener("resize",n),document.addEventListener("scroll",a,{capture:!0,passive:!0}),u.observe(t),()=>{u.unobserve(t),window.removeEventListener("resize",n),document.removeEventListener("scroll",a,!0)}}},[t,o,i,n,e])}(e,c.current,d,f),null!=a&&a===c.current&&(m(a,n),null!=i&&i.append(a)),c}(S,w,h,v),k=(0,l.useCallback)(()=>{w(null),null!=c&&null!==S&&c()},[c,S]),E=(0,l.useCallback)(e=>{w(e),null!=o&&null===S&&o(e)},[o,S]);return(0,l.useEffect)(()=>{let e=x.registerUpdateListener(()=>{x.getEditorState().read(()=>{var e;let n;if(!x.isEditable())return void k();let r=x._window||window,o=r.document.createRange(),s=(0,i.vJq)(),u=(n=null,x.getEditorState().read(()=>{let e=(0,i.vJq)();(0,i.I2P)(e)&&(n=function(e){let t=e.anchor;if("text"!==t.type)return null;let n=t.getNode();if(!n.isSimpleText())return null;let r=t.offset;return n.getTextContent().slice(0,r)}(e))}),n);if(!(0,i.I2P)(s)||!s.isCollapsed()||null===u||null===o)return void k();let c=f(u,x);if(t(c?c.matchingString:null),null!==c&&(b||!(0===c.leadOffset&&x.getEditorState().read(()=>{let e=(0,i.vJq)();if((0,i.I2P)(e)){let t=e.anchor.getNode().getPreviousSibling();return(0,i.kFe)(t)&&t.isTextEntity()}return!1})))&&null!==function(e,t,n){let r=(0,i.peL)(n);if(null===r||!r.isCollapsed)return!1;let l=r.anchorNode,o=r.anchorOffset;if(null==l||null==o)return!1;try{t.setStart(l,e),t.setEnd(l,o)}catch(e){return!1}return!0}(c.leadOffset,o,r))return e=()=>E({getRect:()=>o.getBoundingClientRect(),match:c}),void(a in l?l[a](e):e());k()})});return()=>{e()}},[x,f,t,S,k,E,b]),(0,l.useEffect)(()=>
1x.registerEditableListener(e=>{e||k()}),[x,k]),null===S||null===x||null===C.current?null:(0,s.jsx)(p,{close:k,resolution:S,editor:x,anchorElementRef:C,options:e,menuRenderFn:d,shouldSplitNodeWithQuery:!0,onSelectOption:n,commandPriority:y,preselectFirstItem:_})}(0,i.guI)("SCROLL_TYPEAHEAD_OPTION_INTO_VIEW_COMMAND")},29703:(e,t,n)=>{"use strict";n.d(t,{A:()=>r});let r=n(51603).A.Symbol},30073:(e,t,n)=>{"use strict";n.d(t,{A:()=>r});let r=(0,n(78340).A)("Text",[["path",{d:"M17 6.1H3",key:"wptmhv"}],["path",{d:"M21 12.1H3",key:"1j38uz"}],["path",{d:"M15.1 18H3",key:"1nb16a"}]])},30403:(e,t,n)=>{"use strict";n.d(t,{A:()=>r});let r=(0,n(78340).A)("IndentDecrease",[["path",{d:"M21 12H11",key:"wd7e0v"}],["path",{d:"M21 18H11",key:"4wu86t"}],["path",{d:"M21 6H11",key:"6dy1d6"}],["path",{d:"m7 8-4 4 4 4",key:"o5hrat"}]])},31794:(e,t,n)=>{"use strict";n.d(t,{A:()=>r});let r=(0,n(78340).A)("Heading1",[["path",{d:"M4 12h8",key:"17cfdx"}],["path",{d:"M4 18V6",key:"1rz3zl"}],["path",{d:"M12 18V6",key:"zqpxq5"}],["path",{d:"m17 12 3-2v8",key:"1hhhft"}]])},33078:(e,t,n)=>{"use strict";n.d(t,{A:()=>r});let r=(0,n(78340).A)("Table",[["path",{d:"M12 3v18",key:"108xh3"}],["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}],["path",{d:"M3 9h18",key:"1pudct"}],["path",{d:"M3 15h18",key:"5xshup"}]])},33761:(e,t,n)=>{"use strict";n.d(t,{A:()=>r});let r=function(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}},34908:()=>{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}
1,{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},35374:(e,t,n)=>{"use strict";n.d(t,{xg:()=>h,Bi:()=>a,lW:()=>d});var r=n(83489),i=n(53310);let l=new Set(["STYLE","SCRIPT"]);var o=n(43971);function s(e,...t){let n=new URL("https://lexical.dev/docs/error"),r=new URLSearchParams;for(let n of(r.append("code",e),t))r.append("v",n);throw n.search=r.toString(),Error(`Minified Lexical error #${e}; visit ${n.toString()} for the full message or use the non-minified dev environment for full errors and additional helpful warnings.`)}function a(e,t,n){let o=e.getData("application/x-lexical-editor");if(o)try{let e=JSON.parse(o);if(e.namespace===n._config.namespace&&Array.isArray(e.nodes))return u(n,function(e){let t=[];for(let n=0;n<e.length;n++){let l=e[n],o=(0,i.GMe)(l);(0,i.kFe)(o)&&(0,r.Xg)(o),t.push(o)}return t}(e.nodes),t)}catch(e){}let s=e.getData("text/html"),a=e.getData("text/plain");if(s&&a!==s)try{let e=(new DOMParser).parseFromString(window.trustedTypes&&window.trustedTypes.createPolicy?window.trustedTypes.createPolicy("lexical",{createHTML:e=>e}).createHTML(s):s,"text/html");return u(n,function(e,t){let n=t.body?t.body.childNodes:[],r=[],o=[];for(let t=0;t<n.length;t++){let s=n[t];if(!l.has(s.nodeName)){let t=function e(t,n,r,o,s=new Map,a){let u=[];if(l.has(t.nodeName))return u;let c=null,d=function(e,t){let{nodeName:n}=e,r=t._htmlConversions.get(n.toLowerCase()),i=null;if(void 0!==r)for(let t of r){let n=t(e);null!==n&&(null===i||(i.priority||0)<=(n.priority||0))&&(i=n)}return null!==i?i.conversion:null}(t,n),f=d?d(t):null,g=null;if(null!==f){g=f.after;let e=f.node;if(null!==(c=Array.isArray(e)?e[e.length-1]:e)){for(let[,e]of s)if(!(c=e(c,a)))break;c&&u.push(...Array.isArray(e)?e:[c])}null!=f.forChild&&s.set(t.nodeName,f.forChild)}let h=t.childNodes,p=[],m=(null==c||!(0,i.IqF)(c))&&(null!=c&&(0,i.y68)(c)||o);for(let t=0;t<h.length;t++)p.push(...e(h[t],n,r,m,new Map(s),c));return null!=g&&(p=g(p)),(0,i.a9V)(t)&&(p=function(e,t,n){let r=e.style.textAlign,l=[],o=[];for(let e=0;e<t.length;e++){let s=t[e];if((0,i.y68)(s))r&&!s.getFormat()&&s.setFormat(r),l.push(s);else if(o.push(s),e===t.length-1||e<t.length-1&&(0,i.y68)(t[e+1])){let e=n();e.setFormat(r),e.append(...o),l.push(e),o=[]}}return l}(t,p,m?()=>{let e=new i.A7V;return r.push(e),e}:i.lJ7)),null==c?p.length>0?u=u.concat(p):(0,i.a9V)(t)&&null!=t.nextSibling&&null!=t.previousSibling&&(0,i._On)(t.nextSibling)&&(0,i._On)(t.previousSibling)&&(u=u.concat((0,i.WKo)())):(0,i.ff4)(c)&&c.append(...p),u}(s,e,o,!1);null!==t&&(r=r.concat(t))}}return function(e){for(let t of e)t.getNextSibling()instanceof i.A7V&&t.insertAfter((0,i.WKo)());for(let t of e){for(let e of t.getChildren())t.insertBefore(e);t.remove()}}(o),r}(n,e),t)}catch(e){}
1let c=a||e.getData("text/uri-list");if(null!=c)if((0,i.I2P)(t)){let e=c.split(/(\r?\n|\t)/);""===e[e.length-1]&&e.pop();for(let t=0;t<e.length;t++){let n=(0,i.vJq)();if((0,i.I2P)(n)){let r=e[t];"\n"===r||"\r\n"===r?n.insertParagraph():"	"===r?n.insertNodes([(0,i.ev7)()]):n.insertText(r)}}}else t.insertRawText(c)}function u(e,t,n){e.dispatchCommand(i.oqR,{nodes:t,selection:n})||(n.insertNodes(t),function(e){if((0,i.I2P)(e)&&e.isCollapsed()){let t=e.anchor,n=null,r=(0,i.Ave)(t,"previous");if(r)if((0,i.rN)(r))n=r.origin;else for(let e of(0,i.TJt)(r,(0,i.uwZ)((0,i.NiT)(),"next").getFlipped())){if((0,i.kFe)(e.origin)){n=e.origin;break}if((0,i.ff4)(e.origin)&&!e.origin.isInline())break}if(n&&(0,i.kFe)(n)){let t=n.getFormat(),r=n.getStyle();e.format===t&&e.style===r||(e.format=t,e.style=r,e.dirty=!0)}}}(n))}let c=null;async function d(e,t,n){if(null!==c)return!1;if(null!==t)return new Promise((r,i)=>{e.update(()=>{r(f(e,t,n))})});let r=e.getRootElement(),l=e._window||window,s=window.document,a=(0,i.peL)(l);if(null===r||null===a)return!1;let u=s.createElement("span");u.style.cssText="position: fixed; top: -1000px;",u.append(s.createTextNode("#")),r.append(u);let d=new Range;return d.setStart(u,0),d.setEnd(u,1),a.removeAllRanges(),a.addRange(d),new Promise((t,r)=>{let l=e.registerCommand(i.u5G,r=>((0,o.xj)(r,ClipboardEvent)&&(l(),null!==c&&(window.clearTimeout(c),c=null),t(f(e,r,n))),!0),i.da8);c=window.setTimeout(()=>{l(),c=null,t(!1)},50),s.execCommand("copy"),u.remove()})}function f(e,t,n){if(void 0===n){let t=(0,i.peL)(e._window);if(!t)return!1;let r=t.anchorNode,l=t.focusNode;if(null!==r&&null!==l&&!(0,i.LYZ)(e,r,l))return!1;let o=(0,i.vJq)();if(null===o)return!1;n=h(o)}t.preventDefault();let r=t.clipboardData;return null!==r&&(function(e,t){for(let n in t){let r=t[n];void 0!==r&&e.setData(n,r)}}(r,n),!0)}let g=[["text/html",function(e,t=(0,i.vJq)()){return null==t&&s(166),(0,i.I2P)(t)&&t.isCollapsed()||0===t.getNodes().length?"":function(e,t){if("undefined"==typeof document||"undefined"==typeof window&&void 0===global.window)throw Error("To use $generateHtmlFromNodes in headless mode please initialize a headless browser implementation such as JSDom before calling this function.");let n=document.createElement("div"),l=(0,i.NiT)().getChildren();for(let o=0;o<l.length;o++)!function e(t,n,l,o=null){let s=null===o||n.isSelected(o),a=(0,i.ff4)(n)&&n.excludeFromCopy("html"),u=n;if(null!==o){let e=(0,i.BEs)(n);u=e=(0,i.kFe)(e)&&null!==o?(0,r.SD)(o,e):e}let c=(0,i.ff4)(u)?u.getChildren():[],d=(0,i.Jvg)(t,u.getType()),{element:f,after:g}=d&&void 0!==d.exportDOM?d.exportDOM(t,u):u.exportDOM(t);if(!f)return!1;let h=document.createDocumentFragment();for(let r=0;r<c.length;r++){let l=c[r],a=e(t,l,h,o);!s&&(0,i.ff4)(n)&&a&&n.extractWithChild(l,o,"html")&&(s=!0)}if(s&&!a){if(((0,i.sby)(f)||(0,i.K8K)(f))&&f.append(h),l.append(f),g){let e=g.call(u,f);e&&((0,i.K8K)(f)?f.replaceChildren(e):f.replaceWith(e))}}else l.append(h);return s}(e,l[o],n,t);return n.innerHTML}(e,t)}],["application/x-lexical-editor",function(e,t=(0,i.vJq)()){return null==t&&s(166),(0,i.I2P)(t)&&t.isCollapsed()||0===t.getNodes().length?null:JSON.stringify(function(e,t){let n=[],l=(0,i.NiT)().getChildren();for(let o=0;o<l.length;o++)!function e(t,n,l,o=[]){let a=null===n||l.isSelected(n),u=(0,i.ff4)(l)&&l.excludeFromCopy("html"),c=l;if(null!==n){let e=(0,i.BEs)(l);c=e=(0,i.kFe)(e)&&null!==n?(0,r.SD)(n,e):e}let d=(0,i.ff4)(c)?c.getChildren():[],f=function(e){let t=e.exportJSON(),n=e.constructor;return t.type!==n.getType()&&s(58,n.name),(0,i.ff4)(e)&&(Array.isArray(t.children)||s(59,n.name)),t}(c);if((0,i.kFe)(c)){let e=c.__text;e.length>0?f.text=e:a=!1}for(let r=0;r<d.length;r++){let o=d[r],s=e(t,n,o,f.children);!a&&(0,i.ff4)(l)&&s&&l.extractWithChild(o,n,"clone")&&(a=!0)}if(a&&!u)o.push(f);else if(Array.isArray(f.children))for(let e=0;e<f.children.length;e++){let t=f.children[e];o.push(t)}return a}(e,t,l[o],n);return{namespace:e._config.namespace,nodes:n}}(e,t))}]];function h(e=(0,i.vJq)()){let t={"text/plain":e?e.getTextContent():""};if(e){let n=(0,i.i0_)();for(let[r,i]of g){let l=i(n,e);null!==l&&(t[r]=l)}}return t}},35758:(e,t,n)=>{"use strict";n.d(t,{Hd:()=>h,PL:()=>g,fS:()=>d,s0:()=>u});
1var r=n(36997),i=n(47241),l=n(43971),o=n(53310),s=n(12115),a=n(95155);let u=(0,o.guI)("INSERT_HORIZONTAL_RULE_COMMAND");function c({nodeKey:e}){let[t]=(0,r.DF)(),[n,a,u]=(0,i.Y)(e);return(0,s.useEffect)(()=>(0,l.Sd)(t.registerCommand(o.d8p,r=>{let i=t.getElementByKey(e);return r.target===i&&(r.shiftKey||u(),a(!n),!0)},o.AcJ)),[u,t,n,e,a]),(0,s.useEffect)(()=>{let r=t.getElementByKey(e),i=t._config.theme.hrSelected??"selected";null!==r&&(n?(0,l.ZB)(r,i):(0,l.HE)(r,i))},[t,n,e]),null}class d extends o.Kp7{static getType(){return"horizontalrule"}static clone(e){return new d(e.__key)}static importJSON(e){return g().updateFromJSON(e)}static importDOM(){return{hr:()=>({conversion:f,priority:0})}}exportDOM(){return{element:document.createElement("hr")}}createDOM(e){let t=document.createElement("hr");return(0,l.ZB)(t,e.theme.hr),t}getTextContent(){return"\n"}isInline(){return!1}updateDOM(){return!1}decorate(){return(0,a.jsx)(c,{nodeKey:this.__key})}}function f(){return{node:g()}}function g(){return(0,o.pTq)(new d)}function h(e){return e instanceof d}},36629:(e,t,n)=>{"use strict";n.d(t,{a:()=>s});var r=n(36997),i=n(12115);let l="undefined"!=typeof window&&void 0!==window.document&&void 0!==window.document.createElement?i.useLayoutEffect:i.useEffect;function o(e){return{initialValueFn:()=>e.isEditable(),subscribe:t=>e.registerEditableListener(t)}}function s(){let[e]=(0,r.DF)(),t=(0,i.useMemo)(()=>o(e),[e,o]),[n,s]=(0,i.useState)(()=>t.initialValueFn()),a=(0,i.useRef)(n);return l(()=>{let{initialValueFn:e,subscribe:n}=t,r=e();return a.current!==r&&(a.current=r,s(r)),n(e=>{a.current=e,s(e)})},[t,o]),n}},36726:(e,t,n)=>{"use strict";n.d(t,{$:()=>h});var r=n(36997),i=n(36629),l=n(61511),o=n(43971),s=n(12115),a=n(47650),u=n(95155),c=n(53310),d=n(46716);let f="undefined"!=typeof window&&void 0!==window.document&&void 0!==window.document.createElement?s.useLayoutEffect:s.useEffect;function g(e){return e.getEditorState().read((0,l.yl)(e.isComposing()))}function h({contentEditable:e,placeholder:t=null,ErrorBoundary:n}){var i;let[l]=(0,r.DF)(),g=function(e,t){let[n,r]=(0,s.useState)(()=>e.getDecorators());return f(()=>e.registerDecoratorListener(e=>{(0,a.flushSync)(()=>{r(e)})}),[e]),(0,s.useEffect)(()=>{r(e.getDecorators())},[e]),(0,s.useMemo)(()=>{let r=[],i=Object.keys(n);for(let l=0;l<i.length;l++){let o=i[l],c=(0,u.jsx)(t,{onError:t=>e._onError(t),children:(0,u.jsx)(s.Suspense,{fallback:null,children:n[o]})}),d=e.getElementByKey(o);null!==d&&r.push((0,a.createPortal)(c,d,o))}return r},[t,n,e])}(l,n);return f(()=>(0,o.Sd)((0,d.ZI)(i),function(e){let t=window.location.origin,n=n=>{if(n.origin!==t)return;let r=e.getRootElement();if(document.activeElement!==r)return;let i=n.data;if("string"==typeof i){let t;try{t=JSON.parse(i)}catch(e){return}if(t&&"nuanria_messaging"===t.protocol&&"request"===t.type){let r=t.payload;if(r&&"makeChanges"===r.functionId){let t=r.args;if(t){let[r,i,l,o,s,a]=t;e.update(()=>{let e=(0,c.vJq)();if((0,c.I2P)(e)){let t=e.anchor,a=t.getNode(),u=0,d=0;if((0,c.kFe)(a)&&r>=0&&i>=0&&(u=r,d=r+i,e.setTextNodeRange(a,u,a,d)),u===d&&""===l||(e.insertRawText(l),a=t.getNode()),(0,c.kFe)(a)){u=o,d=o+s;let t=a.getTextContentSize();u=u>t?t:u,d=d>t?t:d,e.setTextNodeRange(a,u,a,d)}n.stopImmediatePropagation()}})}}}}};return window.addEventListener("message",n,!0),()=>{window.removeEventListener("message",n,!0)}}(i)),[i=l]),(0,u.jsxs)(u.Fragment,{children:[e,(0,u.jsx)(p,{content:t}),g]})}function p({content:e}){let[t]=(0,r.DF)(),n=function(e){let[t,n]=(0,s.useState)(()=>g(e));return f(()=>{function t(){n(g(e))}return t(),(0,o.Sd)(e.registerUpdateListener(()=>{t()}),e.registerEditableListener(()=>{t()}))},[e]),t}(t),l=(0,i.a)();return n?"function"==typeof e?e(l):e:null}},36997:(e,t,n)=>{"use strict";n.d(t,{DF:()=>o,Gu:()=>i,Mx:()=>l});var r=n(12115);let i=(0,r.createContext)(null);function l(e,t){let n=null;return null!=e&&(n=e[1]),{getTheme:function(){return null!=t?t:null!=n?n.getTheme():null}}}function o(){let e=(0,r.useContext)(i);return null==e&&function(e,...t){let n=new URL("https://lexical.dev/docs/error"),r=new URLSearchParams;for(let e of(r.append("code",8),t))r.append("v",e);throw n.search=r.toString(),Error(`Minified Lexical error #${8}; visit ${n.toString()} for the full message or use the non-minified dev environment for full errors and additional helpful warnings.`)}(8),e}},37263:(e,t,n)=>{"use strict";n.d(t,{A:()=>r});let r=(0,n(78340).A)("AlignCenter",[["path",{d:"M17 12H7",key:"16if0g"}],["path",{d:"M19 18H5",key:"18s9l3"}],["path",{d:"M21 6H3",key:"1jwq7v"}]])},38080:(e,t,n)=>{"use strict";n.d(t,{bL:()=>E,q7:()=>T});var r=n(12115),i=n(68599),l=n(99354),o=n(83478),s=n(4402),a=n(98979),u=n(1933),
1c=n(95155),d="ToggleGroup",[f,g]=(0,i.A)(d,[o.RG]),h=(0,o.RG)(),p=r.forwardRef((e,t)=>{let{type:n,...r}=e;if("single"===n)return(0,c.jsx)(v,{...r,ref:t});if("multiple"===n)return(0,c.jsx)(_,{...r,ref:t});throw Error("Missing prop `type` expected on `".concat(d,"`"))});p.displayName=d;var[m,y]=f(d),v=r.forwardRef((e,t)=>{let{value:n,defaultValue:i,onValueChange:l=()=>{},...o}=e,[s,u]=(0,a.i)({prop:n,defaultProp:null!=i?i:"",onChange:l,caller:d});return(0,c.jsx)(m,{scope:e.__scopeToggleGroup,type:"single",value:r.useMemo(()=>s?[s]:[],[s]),onItemActivate:u,onItemDeactivate:r.useCallback(()=>u(""),[u]),children:(0,c.jsx)(S,{...o,ref:t})})}),_=r.forwardRef((e,t)=>{let{value:n,defaultValue:i,onValueChange:l=()=>{},...o}=e,[s,u]=(0,a.i)({prop:n,defaultProp:null!=i?i:[],onChange:l,caller:d}),f=r.useCallback(e=>u(function(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];return[...t,e]}),[u]),g=r.useCallback(e=>u(function(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];return t.filter(t=>t!==e)}),[u]);return(0,c.jsx)(m,{scope:e.__scopeToggleGroup,type:"multiple",value:s,onItemActivate:f,onItemDeactivate:g,children:(0,c.jsx)(S,{...o,ref:t})})});p.displayName=d;var[b,x]=f(d),S=r.forwardRef((e,t)=>{let{__scopeToggleGroup:n,disabled:r=!1,rovingFocus:i=!0,orientation:s,dir:a,loop:d=!0,...f}=e,g=h(n),p=(0,u.jH)(a),m={role:"group",dir:p,...f};return(0,c.jsx)(b,{scope:n,rovingFocus:i,disabled:r,children:i?(0,c.jsx)(o.bL,{asChild:!0,...g,orientation:s,dir:p,loop:d,children:(0,c.jsx)(l.sG.div,{...m,ref:t})}):(0,c.jsx)(l.sG.div,{...m,ref:t})})}),w="ToggleGroupItem",C=r.forwardRef((e,t)=>{let n=y(w,e.__scopeToggleGroup),i=x(w,e.__scopeToggleGroup),l=h(e.__scopeToggleGroup),s=n.value.includes(e.value),a=i.disabled||e.disabled,u={...e,pressed:s,disabled:a},d=r.useRef(null);return i.rovingFocus?(0,c.jsx)(o.q7,{asChild:!0,...l,focusable:!a,active:s,ref:d,children:(0,c.jsx)(k,{...u,ref:t})}):(0,c.jsx)(k,{...u,ref:t})});C.displayName=w;var k=r.forwardRef((e,t)=>{let{__scopeToggleGroup:n,value:r,...i}=e,l=y(w,n),o={role:"radio","aria-checked":e.pressed,"aria-pressed":void 0},a="single"===l.type?o:void 0;return(0,c.jsx)(s.l,{...a,...i,ref:t,onPressedChange:e=>{e?l.onItemActivate(r):l.onItemDeactivate(r)}})}),E=p,T=C},38194:(e,t,n)=>{"use strict";n.d(t,{A:()=>r});let r=(0,n(78340).A)("List",[["path",{d:"M3 12h.01",key:"nlz23k"}],["path",{d:"M3 18h.01",key:"1tta3j"}],["path",{d:"M3 6h.01",key:"1rqtza"}],["path",{d:"M8 12h13",key:"1za7za"}],["path",{d:"M8 18h13",key:"1lx6n3"}],["path",{d:"M8 6h13",key:"ik3vkj"}]])},38374:(e,t,n)=>{"use strict";n.d(t,{A:()=>l});var r=n(95749),i=n(77494);let l=function(e){return"symbol"==typeof e||(0,i.A)(e)&&"[object Symbol]"==(0,r.A)(e)}},39455:(e,t,n)=>{"use strict";n.d(t,{sq:()=>x,ot:()=>b,Cf:()=>S,R1:()=>_});var r=n(62239),i=n(36997),l=n(53310),o=n(12115),s=n(43971),a=n(95155);let u="startTransition",c="undefined"!=typeof window&&void 0!==window.document&&void 0!==window.document.createElement,d=c?o.useLayoutEffect:o.useEffect;class f{constructor(e){this.key=e,this.ref={current:null},this.setRefElement=this.setRefElement.bind(this)}setRefElement(e){this.ref={current:e}}}let g=e=>{let t=document.getElementById("typeahead-menu");if(!t)return;let n=t.getBoundingClientRect();n.top+n.height>window.innerHeight&&t.scrollIntoView({block:"center"}),n.top<0&&t.scrollIntoView({block:"center"}),e.scrollIntoView({block:"nearest"})};function h(e,t){let n=e.getBoundingClientRect(),r=t.getBoundingClientRect();return n.top>r.top&&n.top<r.bottom}let p=(0,l.guI)("SCROLL_TYPEAHEAD_OPTION_INTO_VIEW_COMMAND");function m({close:e,editor:t,anchorElementRef:n,resolution:r,options:i,menuRenderFn:a,onSelectOption:u,shouldSplitNodeWithQuery:c=!1,commandPriority:f=l.AcJ,preselectFirstItem:h=!0}){let[m,y]=(0,o.useState)(null),v=r.match&&r.match.matchingString;(0,o.useEffect)(()=>{h&&y(0)},[v,h]);let _=(0,o.useCallback)(n=>{t.update(()=>{u(n,null!=r.match&&c?function(e){let t,n=(0,l.vJq)();if(!(0,l.I2P)(n)||!n.isCollapsed())return null;let r=n.anchor;if("text"!==r.type)return null;let i=r.getNode();if(!i.isSimpleText())return null;let o=r.offset,s=i.getTextContent().slice(0,o),a=e.replaceableString.length,u=o-function(e,t,n){let r=n;for(let n=r;n<=t.length;n++)e.slice(-n)===t.substring(0,n)&&(r=n);return r}(s,e.matchingString,a);return u<0?null:(0===u?[t]=i.splitText(o):[,t]=i.splitText(u,o),t)}(r.match):null,e,r.match?r.match.matchingString:"")}
1)},[t,c,r.match,u,e]),b=(0,o.useCallback)(e=>{let n=t.getRootElement();null!==n&&(n.setAttribute("aria-activedescendant","typeahead-item-"+e),y(e))},[t]);return(0,o.useEffect)(()=>()=>{let e=t.getRootElement();null!==e&&e.removeAttribute("aria-activedescendant")},[t]),d(()=>{null===i?y(null):null===m&&h&&b(0)},[i,m,b,h]),(0,o.useEffect)(()=>(0,s.Sd)(t.registerCommand(p,({option:e})=>!(!e.ref||null==e.ref.current)&&(g(e.ref.current),!0),f)),[t,b,f]),(0,o.useEffect)(()=>(0,s.Sd)(t.registerCommand(l.bbF,e=>{if(null!==i&&i.length){let n=null===m?0:m!==i.length-1?m+1:0;b(n);let r=i[n];null!=r.ref&&r.ref.current&&t.dispatchCommand(p,{index:n,option:r}),e.preventDefault(),e.stopImmediatePropagation()}return!0},f),t.registerCommand(l.UDz,e=>{if(null!==i&&i.length){let t=null===m?i.length-1:0!==m?m-1:i.length-1;b(t);let n=i[t];null!=n.ref&&n.ref.current&&g(n.ref.current),e.preventDefault(),e.stopImmediatePropagation()}return!0},f),t.registerCommand(l.Q$N,t=>(t.preventDefault(),t.stopImmediatePropagation(),e(),!0),f),t.registerCommand(l.OXk,e=>null!==i&&null!==m&&null!=i[m]&&(e.preventDefault(),e.stopImmediatePropagation(),_(i[m]),!0),f),t.registerCommand(l.RTo,e=>null!==i&&null!==m&&null!=i[m]&&(null!==e&&(e.preventDefault(),e.stopImmediatePropagation()),_(i[m]),!0),f)),[_,e,t,i,m,b,f]),a(n,(0,o.useMemo)(()=>({options:i,selectOptionAndCleanUp:_,selectedIndex:m,setHighlightedIndex:y}),[_,m,i]),r.match?r.match.matchingString:"")}function y(e,t){null!=t&&(e.className=t),e.setAttribute("aria-label","Typeahead menu"),e.setAttribute("role","listbox"),e.style.display="block",e.style.position="absolute"}function v({options:e,nodeKey:t,onClose:n,onOpen:r,onSelectOption:s,menuRenderFn:d,anchorClassName:f,commandPriority:g=l.AcJ,parent:p}){let[v]=(0,i.DF)(),[_,b]=(0,o.useState)(null),x=function(e,t,n,r=c?document.body:void 0,l=!0){let[s]=(0,i.DF)(),a=c?document.createElement("div"):null,u=(0,o.useRef)(a),d=(0,o.useCallback)(()=>{if(null===u.current||void 0===r)return;u.current.style.top=u.current.style.bottom;let t=s.getRootElement(),i=u.current,o=i.firstChild;if(null!==t&&null!==e){let{left:s,top:a,width:c,height:d}=e.getRect(),f=u.current.offsetHeight;if(i.style.top=`${a+f+3+(l?window.pageYOffset:0)}px`,i.style.left=`${s+window.pageXOffset}px`,i.style.height=`${d}px`,i.style.width=`${c}px`,null!==o){o.style.top=`${a}`;let e=o.getBoundingClientRect(),n=e.height,r=e.width,u=t.getBoundingClientRect();s+r>u.right&&(i.style.left=`${u.right-r+window.pageXOffset}px`),(a+n>window.innerHeight||a+n>u.bottom)&&a-u.top>n+d&&(i.style.top=`${a-n-d+(l?window.pageYOffset:0)}px`)}i.isConnected||(y(i,n),r.append(i)),i.setAttribute("id","typeahead-menu"),t.setAttribute("aria-controls","typeahead-menu")}},[s,e,l,n,r]);(0,o.useEffect)(()=>{let t=s.getRootElement();return null!==e&&d(),()=>{null!==t&&t.removeAttribute("aria-controls");let e=u.current;null!==e&&e.isConnected&&(e.remove(),e.removeAttribute("id"))}},[s,d,e]);let f=(0,o.useCallback)(n=>{null!==e&&(n||t(null))},[e,t]);return function(e,t,n,r){let[l]=(0,i.DF)();(0,o.useEffect)(()=>{if(null!=t&&null!=e){let e=l.getRootElement(),i=null!=e?function(e,t){let n=getComputedStyle(e),r="absolute"===n.position,i=/(auto|scroll)/;if("fixed"===n.position)return document.body;for(let t=e;t=t.parentElement;)if(n=getComputedStyle(t),(!r||"static"!==n.position)&&i.test(n.overflow+n.overflowY+n.overflowX))return t;return document.body}(e):document.body,o=!1,s=h(t,i),a=function(){o||(window.requestAnimationFrame(function(){n(),o=!1}),o=!0);let e=h(t,i);e!==s&&(s=e,null!=r&&r(e))},u=new ResizeObserver(n);return window.addEventListener("resize",n),document.addEventListener("scroll",a,{capture:!0,passive:!0}),u.observe(t),()=>{u.unobserve(t),window.removeEventListener("resize",n),document.removeEventListener("scroll",a,!0)}}},[t,l,r,n,e])}(e,u.current,d,f),null!=a&&a===u.current&&(y(a,n),null!=r&&r.append(a)),u}(_,b,f,p),S=(0,o.useCallback)(()=>{b(null),null!=n&&null!==_&&n()},[n,_]),w=(0,o.useCallback)(e=>{b(e),null!=r&&null===_&&r(e)},[r,_]),C=(0,o.useCallback)(()=>{t?v.update(()=>{var e;let n=(0,l.nsf)(t),r=v.getElementByKey(t);null!=n&&null!=r&&null==_&&(e=()=>w({getRect:()=>r.getBoundingClientRect()}),u in o?o[u](e):e())}):null==t&&null!=_&&S()},[S,v,t,w,_]);return(0,o.useEffect)(()=>{C()},[C,t]),(0,o.useEffect)(()=>
1{if(null!=t)return v.registerUpdateListener(({dirtyElements:e})=>{e.get(t)&&C()})},[v,C,t]),null===x.current||null===_||null===v?null:(0,a.jsx)(m,{close:S,resolution:_,editor:v,anchorElementRef:x,options:e,menuRenderFn:d,onSelectOption:s,commandPriority:g})}let _=/((https?:\/\/(www\.)?)|(www\.))[-a-zA-Z0-9@:%._+~#=]{1,256}\.[a-zA-Z0-9()]{1,6}\b([-a-zA-Z0-9()@:%_+.~#?&//=]*)/,b=(0,l.guI)("INSERT_EMBED_COMMAND");class x extends f{constructor(e,t){super(e),this.title=e,this.onSelect=t.onSelect.bind(this)}}function S({embedConfigs:e,onOpenEmbedModalForConfig:t,getMenuOptions:n,menuRenderFn:u,menuCommandPriority:c=l.AcJ}){let[d]=(0,i.DF)(),[f,g]=(0,o.useState)(null),[h,p]=(0,o.useState)(null),m=(0,o.useCallback)(()=>{g(null),p(null)},[]),y=(0,o.useCallback)(async t=>{let n=d.getEditorState().read(function(){let e=(0,l.nsf)(t);if((0,r.FJ)(e))return e.getURL()});if(void 0!==n)for(let r of e)null!=await Promise.resolve(r.parseUrl(n))&&(p(r),g(t))},[d,e]);(0,o.useEffect)(()=>(0,s.Sd)(...[r.Db,r.k_].map(e=>d.registerMutationListener(e,(...e)=>((e,{updateTags:t,dirtyLeaves:n})=>{for(let[r,i]of e)"created"===i&&t.has(l.fwY)&&n.size<=3?y(r):r===f&&m()})(...e),{skipInitialization:!0}))),[y,d,e,f,m]),(0,o.useEffect)(()=>d.registerCommand(b,n=>{let r=e.find(({type:e})=>e===n);return!!r&&(t(r),!0)},l.jZM),[d,e,t]);let _=(0,o.useCallback)(async function(){if(null!=h&&null!=f){let e=d.getEditorState().read(()=>{let e=(0,l.nsf)(f);return(0,r.FJ)(e)?e:null});if((0,r.FJ)(e)){let t=await Promise.resolve(h.parseUrl(e.__url));null!=t&&d.update(()=>{(0,l.vJq)()||e.selectEnd(),h.insertNode(d,t),e.isAttached()&&e.remove()})}}},[h,d,f]),x=(0,o.useMemo)(()=>null!=h&&null!=f?n(h,_,m):[],[h,_,n,f,m]),S=(0,o.useCallback)((e,t,n)=>{d.update(()=>{e.onSelect(t),n()})},[d]);return null!=f?(0,a.jsx)(v,{nodeKey:f,onClose:m,onSelectOption:S,options:x,menuRenderFn:u,commandPriority:c}):null}},43038:(e,t,n)=>{"use strict";n.d(t,{A:()=>r});let r=(0,n(78340).A)("Quote",[["path",{d:"M16 3a2 2 0 0 0-2 2v6a2 2 0 0 0 2 2 1 1 0 0 1 1 1v1a2 2 0 0 1-2 2 1 1 0 0 0-1 1v2a1 1 0 0 0 1 1 6 6 0 0 0 6-6V5a2 2 0 0 0-2-2z",key:"rib7q0"}],["path",{d:"M5 3a2 2 0 0 0-2 2v6a2 2 0 0 0 2 2 1 1 0 0 1 1 1v1a2 2 0 0 1-2 2 1 1 0 0 0-1 1v2a1 1 0 0 0 1 1 6 6 0 0 0 6-6V5a2 2 0 0 0-2-2z",key:"1ymkrd"}]])},43971:(e,t,n)=>{"use strict";n.d(t,{Bt:()=>v,HE:()=>d,Ie:()=>h,K2:()=>C,OV:()=>E,Pe:()=>b,Sd:()=>u,W$:()=>g,Xq:()=>_,ZB:()=>c,Zk:()=>f,_X:()=>p,cE:()=>A,cj:()=>x,eu:()=>m,mB:()=>y,vF:()=>T,wn:()=>F,xj:()=>S,zD:()=>w});var r=n(53310);function i(e,...t){let n=new URL("https://lexical.dev/docs/error"),r=new URLSearchParams;for(let n of(r.append("code",e),t))r.append("v",n);throw n.search=r.toString(),Error(`Minified Lexical error #${e}; visit ${n.toString()} for the full message or use the non-minified dev environment for full errors and additional helpful warnings.`)}let l="undefined"!=typeof window&&void 0!==window.document&&void 0!==window.document.createElement,o=l&&"documentMode"in document?document.documentMode:null,s=(l&&/Mac|iPod|iPhone|iPad/.test(navigator.platform),l&&/^(?!.*Seamonkey)(?=.*Firefox).*/i.test(navigator.userAgent));function a(...e){let t=[];for(let n of e)if(n&&"string"==typeof n)for(let[e]of n.matchAll(/\S+/g))t.push(e);return t}function u(...e){return()=>{for(let t=e.length-1;t>=0;t--)e[t]();e.length=0}}function c(e,...t){let n=a(...t);n.length>0&&e.classList.add(...n)}function d(e,...t){let n=a(...t);n.length>0&&e.classList.remove(...n)}function f(e,t){for(let n of t)if(e.type.startsWith(n))return!0;return!1}function g(e,t){let n=e[Symbol.iterator]();return new Promise((e,r)=>{let i=[],l=()=>{let{done:o,value:s}=n.next();if(o)return e(i);let a=new FileReader;a.addEventListener("error",r),a.addEventListener("load",()=>{let e=a.result;
1"string"==typeof e&&i.push({file:s,result:e}),l()}),f(s,t)?a.readAsDataURL(s):l()};l()})}function h(e,t){return Array.from(function(e,t,n){let i=(0,r.NiT)(),l=t||i,o=(0,r.ff4)(l)?(0,r.uwZ)(l,e):(0,r.IlV)(l,e),s=function(e){let t=-1;for(let n=e;null!==n;n=n.getParent())t++;return t}(l),a=n?(0,r.erb)((0,r.P6U)((0,r.IlV)(n,e))):function(e,t){let n=R((0,r.IlV)(e,t));return n&&n[0]}(l,e),u=s;return(0,r.Bts)({hasNext:e=>null!==e,initial:o,map:e=>({depth:u,node:e.origin}),step:e=>{if(e.isSameNodeCaret(a))return null;(0,r.cmH)(e)&&u++;let t=R(e);return!t||t[0].isSameNodeCaret(a)?null:(u+=t[1],t[0])}})}("next",e,t))}function p(e){return e?e.getAdjacentCaret():null}function m(e,t){let n=e;for(;null!=n;){if(n instanceof t)return n;n=n.getParent()}return null}function y(e){let t=v(e,e=>(0,r.ff4)(e)&&!e.isInline());return(0,r.ff4)(t)||i(4,e.__key),t}l&&"InputEvent"in window&&!o&&new window.InputEvent("input"),l&&/Version\/[\d.]+.*Safari/.test(navigator.userAgent),l&&/iPad|iPhone|iPod/.test(navigator.userAgent)&&window.MSStream,l&&/Android/.test(navigator.userAgent),l&&/^(?=.*Chrome).*/i.test(navigator.userAgent),l&&/AppleWebKit\/[\d.]+/.test(navigator.userAgent);let v=(e,t)=>{let n=e;for(;n!==(0,r.NiT)()&&null!=n;){if(t(n))return n;n=n.getParent()}return null};function _(e,t){let n=new Map,i=e._pendingEditorState;for(let[e,i]of t._nodeMap)n.set(e,(0,r.BEs)(i));i&&(i._nodeMap=n),e._dirtyType=2;let l=t._selection;(0,r.n1P)(null===l?null:l.clone())}function b(e){let t,n=(0,r.vJq)()||(0,r.S1w)();if((0,r.I2P)(n))t=(0,r.Ave)(n.focus,"next");else{if(null!=n){let e=n.getNodes(),i=e[e.length-1];i&&(t=(0,r.IlV)(i,"next"))}t=t||(0,r.uwZ)((0,r.NiT)(),"previous").getFlipped().insert((0,r.lJ7)())}let l=function(e,t,n){let l=(0,r.Csq)(t,"next");for(let e=l;e;e=(0,r.k1Q)(e,void 0))l=e;return(0,r.rN)(l)&&i(283),l.insert(e.isInline()?(0,r.lJ7)().append(e):e),(0,r.Csq)((0,r.IlV)(e.getLatest(),"next"),t.direction)}(e,t),o=(0,r.erb)(l),s=(0,r.cmH)(o)?(0,r.lSZ)(o):l;return(0,r.xQ8)((0,r.sWS)(s)),e.getLatest()}function x(e,t){let n=t();return e.replace(n),n.append(e),n}function S(e,t){return null!==e&&Object.getPrototypeOf(e).constructor.name===t.name}function w(e,t){let n=[];for(let r=0;r<e.length;r++){let i=t(e[r]);null!==i&&n.push(i)}return n}function C(e,t){(0,r.uwZ)(e,"next").insert(t)}let k=!(s||!l)&&void 0;function E(e){let t=1;if(function(){if(void 0===k){let e=document.createElement("div");e.style.cssText="position: absolute; opacity: 0; width: 100px; left: -1000px;",document.body.appendChild(e);let t=e.getBoundingClientRect();e.style.setProperty("zoom","2"),k=e.getBoundingClientRect().width===t.width,document.body.removeChild(e)}return k}())for(;e;)t*=Number(window.getComputedStyle(e).getPropertyValue("zoom")),e=e.parentElement;return t}function T(e,t){return function e(t,n,i){let l=!1;for(let o of N(t))n(o)?null!==i&&i(o):(l=!0,(0,r.ff4)(o)&&e(o,n,i||(e=>o.insertAfter(e))),o.remove());return l}(e,t,null)}function A(e,t){let n=[],i=Array.from(e).reverse();for(let e=i.pop();void 0!==e;e=i.pop())if(t(e))n.push(e);else if((0,r.ff4)(e))for(let t of N(e))i.push(t);return n}function N(e){var t;return t=(0,r.uwZ)(e,"previous"),(0,r.Bts)({hasNext:r.OpE,initial:t.getAdjacentCaret(),map:e=>e.origin.getLatest(),step:e=>e.getAdjacentCaret()})}function F(e){(0,r.NG9)((0,r.IlV)(e,"next")).splice(1,e.getChildren())}function R(e,t="root"){let n=0,i=e,l=(0,r.erb)(i);for(;null===l;){if(n--,!(l=i.getParentCaret(t)))return null;i=l,l=(0,r.erb)(i)}return l&&[l,n]}},44440:(e,t,n)=>{"use strict";n.d(t,{A:()=>r});let r=(0,n(78340).A)("Trash",[["path",{d:"M3 6h18",key:"d0wm0j"}],["path",{d:"M19 6v14c0 1-1 2-2 2H7c-1 0-2-1-2-2V6",key:"4alrt4"}],["path",{d:"M8 6V4c0-1 1-2 2-2h4c1 0 2 1 2 2v2",key:"v07s0e"}]])},44706:(e,t,n)=>{"use strict";n.d(t,{A:()=>i});var r=n(51603);let i=function(){return r.A.Date.now()}},46716:(e,t,n)=>{"use strict";n.d(t,{Pi:()=>C,ZI:()=>N,dJ:()=>m,fi:()=>w,gA:()=>k,jL:()=>_,jd:()=>v,lY:()=>p,xi:()=>y});var r=n(35374),i=n(83489),l=n(43971),o=n(53310);function s(e,t){if(void 0!==document.caretRangeFromPoint){let n=document.caretRangeFromPoint(e,t);return null===n?null:{node:n.startContainer,offset:n.startOffset}}if("undefined"!==document.caretPositionFromPoint){let n=document.caretPositionFromPoint(e,t);return null===n?null:{node:n.offsetNode,offset:n.offset}}return null}let a="undefined"!=typeof window&&void 0!==window.document&&void 0!==window.document.createElement,u=a&&"documentMode"in document?document.documentMode:null,c=!(!a||!("InputEvent"in window)||u)&&"getTargetRanges"in new window.InputEvent("input"),d=a&&/Version\/[\d.]+.*Safari/.test(navigator.userAgent),f=
1a&&/iPad|iPhone|iPod/.test(navigator.userAgent)&&!window.MSStream,g=a&&/^(?=.*Chrome).*/i.test(navigator.userAgent),h=a&&/AppleWebKit\/[\d.]+/.test(navigator.userAgent)&&!g,p=(0,o.guI)("DRAG_DROP_PASTE_FILE");class m extends o.fGB{static getType(){return"quote"}static clone(e){return new m(e.__key)}createDOM(e){let t=document.createElement("blockquote");return(0,l.ZB)(t,e.theme.quote),t}updateDOM(e,t){return!1}static importDOM(){return{blockquote:e=>({conversion:S,priority:0})}}exportDOM(e){let{element:t}=super.exportDOM(e);if((0,o.sby)(t)){this.isEmpty()&&t.append(document.createElement("br"));let e=this.getFormatType();e&&(t.style.textAlign=e);let n=this.getDirection();n&&(t.dir=n)}return{element:t}}static importJSON(e){return y().updateFromJSON(e)}insertNewAfter(e,t){let n=(0,o.lJ7)(),r=this.getDirection();return n.setDirection(r),this.insertAfter(n,t),n}collapseAtStart(){let e=(0,o.lJ7)();return this.getChildren().forEach(t=>e.append(t)),this.replace(e),!0}canMergeWhenEmpty(){return!0}}function y(){return(0,o.pTq)(new m)}function v(e){return e instanceof m}class _ extends o.fGB{static getType(){return"heading"}static clone(e){return new _(e.__tag,e.__key)}constructor(e,t){super(t),this.__tag=e}getTag(){return this.__tag}setTag(e){let t=this.getWritable();return this.__tag=e,t}createDOM(e){let t=this.__tag,n=document.createElement(t),r=e.theme.heading;if(void 0!==r){let e=r[t];(0,l.ZB)(n,e)}return n}updateDOM(e,t,n){return e.__tag!==this.__tag}static importDOM(){return{h1:e=>({conversion:x,priority:0}),h2:e=>({conversion:x,priority:0}),h3:e=>({conversion:x,priority:0}),h4:e=>({conversion:x,priority:0}),h5:e=>({conversion:x,priority:0}),h6:e=>({conversion:x,priority:0}),p:e=>{let t=e.firstChild;return null!==t&&b(t)?{conversion:()=>({node:null}),priority:3}:null},span:e=>b(e)?{conversion:e=>({node:w("h1")}),priority:3}:null}}exportDOM(e){let{element:t}=super.exportDOM(e);if((0,o.sby)(t)){this.isEmpty()&&t.append(document.createElement("br"));let e=this.getFormatType();e&&(t.style.textAlign=e);let n=this.getDirection();n&&(t.dir=n)}return{element:t}}static importJSON(e){return w(e.tag).updateFromJSON(e)}updateFromJSON(e){return super.updateFromJSON(e).setTag(e.tag)}exportJSON(){return{...super.exportJSON(),tag:this.getTag()}}insertNewAfter(e,t=!0){let n=e?e.anchor.offset:0,r=this.getLastDescendant(),i=r&&(!e||e.anchor.key!==r.getKey()||n!==r.getTextContentSize())&&e?w(this.getTag()):(0,o.lJ7)(),l=this.getDirection();if(i.setDirection(l),this.insertAfter(i,t),0===n&&!this.isEmpty()&&e){let e=(0,o.lJ7)();e.select(),this.replace(e,!0)}return i}collapseAtStart(){let e=this.isEmpty()?(0,o.lJ7)():w(this.getTag());
1return this.getChildren().forEach(t=>e.append(t)),this.replace(e),!0}extractWithChild(){return!0}}function b(e){return"span"===e.nodeName.toLowerCase()&&"26pt"===e.style.fontSize}function x(e){let t=e.nodeName.toLowerCase(),n=null;return"h1"!==t&&"h2"!==t&&"h3"!==t&&"h4"!==t&&"h5"!==t&&"h6"!==t||(n=w(t),null!==e.style&&((0,o.dxY)(e,n),n.setFormat(e.style.textAlign))),{node:n}}function S(e){let t=y();return null!==e.style&&(t.setFormat(e.style.textAlign),(0,o.dxY)(e,t)),{node:t}}function w(e="h1"){return(0,o.pTq)(new _(e))}function C(e){return e instanceof _}function k(e){let t=null;if((0,l.xj)(e,DragEvent)?t=e.dataTransfer:(0,l.xj)(e,ClipboardEvent)&&(t=e.clipboardData),null===t)return[!1,[],!1];let n=t.types,r=n.includes("Files"),i=n.includes("text/html")||n.includes("text/plain");return[r,Array.from(t.files),i]}function E(e){let t=(0,o.vJq)();if(!(0,o.I2P)(t))return!1;let n=new Set,r=t.getNodes();for(let t=0;t<r.length;t++){let i=r[t],s=i.getKey();if(n.has(s))continue;let a=(0,l.Bt)(i,e=>(0,o.ff4)(e)&&!e.isInline());if(null===a)continue;let u=a.getKey();a.canIndent()&&!n.has(u)&&(n.add(u),e(a))}return n.size>0}function T(e){let t=(0,o.xL4)(e);return(0,o.Cyw)(t)}function A(e){for(let t of["lowercase","uppercase","capitalize"])e.hasFormat(t)&&e.toggleFormat(t)}function N(e){return(0,l.Sd)(e.registerCommand(o.d8p,e=>{let t=(0,o.vJq)();return!!(0,o.RTZ)(t)&&(t.clear(),!0)},o.jZM),e.registerCommand(o.WuB,e=>{let t=(0,o.vJq)();return(0,o.I2P)(t)?(t.deleteCharacter(e),!0):!!(0,o.RTZ)(t)&&(t.deleteNodes(),!0)},o.jZM),e.registerCommand(o.hi0,e=>{let t=(0,o.vJq)();return!!(0,o.I2P)(t)&&(t.deleteWord(e),!0)},o.jZM),e.registerCommand(o.viC,e=>{let t=(0,o.vJq)();return!!(0,o.I2P)(t)&&(t.deleteLine(e),!0)},o.jZM),e.registerCommand(o.bM3,t=>{let n=(0,o.vJq)();if("string"==typeof t)null!==n&&n.insertText(t);else{if(null===n)return!1;let i=t.dataTransfer;if(null!=i)(0,r.Bi)(i,n,e);else if((0,o.I2P)(n)){let e=t.data;return e&&n.insertText(e),!0}}return!0},o.jZM),e.registerCommand(o.$ey,()=>{let e=(0,o.vJq)();return!!(0,o.I2P)(e)&&(e.removeText(),!0)},o.jZM),e.registerCommand(o.mB,e=>{let t=(0,o.vJq)();return!!(0,o.I2P)(t)&&(t.formatText(e),!0)},o.jZM),e.registerCommand(o.fUS,e=>{let t=(0,o.vJq)();if(!(0,o.I2P)(t)&&!(0,o.RTZ)(t))return!1;for(let n of t.getNodes()){let t=(0,l.Bt)(n,e=>(0,o.ff4)(e)&&!e.isInline());null!==t&&t.setFormat(e)}return!0},o.jZM),e.registerCommand(o.FEN,e=>{let t=(0,o.vJq)();return!!(0,o.I2P)(t)&&(t.insertLineBreak(e),!0)},o.jZM),e.registerCommand(o.XKQ,()=>{let e=(0,o.vJq)();return!!(0,o.I2P)(e)&&(e.insertParagraph(),!0)},o.jZM),e.registerCommand(o.YW5,()=>((0,o.H2A)([(0,o.ev7)()]),!0),o.jZM),e.registerCommand(o.PiT,()=>E(e=>{let t=e.getIndent();e.setIndent(t+1)}),o.jZM),e.registerCommand(o.sik,()=>E(e=>{let t=e.getIndent();t>0&&e.setIndent(Math.max(0,t-1))}),o.jZM),e.registerCommand(o.UDz,e=>{let t=(0,o.vJq)();if((0,o.RTZ)(t)){let e=t.getNodes();if(e.length>0)return e[0].selectPrevious(),!0}else if((0,o.I2P)(t)){let n=(0,o.B$P)(t.focus,!0);if(!e.shiftKey&&(0,o.Cyw)(n)&&!n.isIsolated()&&!n.isInline())return n.selectPrevious(),e.preventDefault(),!0}return!1},o.jZM),e.registerCommand(o.bbF,e=>{let t=(0,o.vJq)();if((0,o.RTZ)(t)){let e=t.getNodes();if(e.length>0)return e[0].selectNext(0,0),!0}else if((0,o.I2P)(t)){if(function(e){let t=e.focus;return"root"===t.key&&t.offset===(0,o.NiT)().getChildrenSize()}(t))return e.preventDefault(),!0;let n=(0,o.B$P)(t.focus,!1);if(!e.shiftKey&&(0,o.Cyw)(n)&&!n.isIsolated()&&!n.isInline())return n.selectNext(),e.preventDefault(),!0}return!1},o.jZM),e.registerCommand(o.AX0,e=>{let t=(0,o.vJq)();if((0,o.RTZ)(t)){let n=t.getNodes();if(n.length>0)return e.preventDefault(),n[0].selectPrevious(),!0}if(!(0,o.I2P)(t))return!1;if((0,i.Cb)(t,!0)){let n=e.shiftKey;return e.preventDefault(),(0,i.Rk)(t,n,!0),!0}return!1},o.jZM),e.registerCommand(o.JM3,e=>{let t=(0,o.vJq)();if((0,o.RTZ)(t)){let n=t.getNodes();if(n.length>0)return e.preventDefault(),n[0].selectNext(0,0),!0}if(!(0,o.I2P)(t))return!1;let n=e.shiftKey;return!!(0,i.Cb)(t,!1)&&(e.preventDefault(),(0,i.Rk)(t,n,!1),!0)},o.jZM),e.registerCommand(o.gCZ,t=>{if(T(t.target))return!1;let n=(0,o.vJq)();if((0,o.I2P)(n)){if(function(e){if(!e.isCollapsed())return!1;let{anchor:t}=e;if(0!==t.offset)return!1;let n=t.getNode();if((0,o.hVZ)(n))return!1;let r=(0,l.mB)(n);return r.getIndent()>0&&(r.is(n)||n.is(r.getFirstDescendant()))}(n))return t.preventDefault(),e.dispatchCommand(o.sik,void 0);if(f&&"ko-KR"===navigator.language)return!1}else if(!(0,o.RTZ)(n))return!1;return t.preventDefault(),e.dispatchCommand(o.WuB,!0)},o.jZM),e.registerCommand(o.w$Z,t=>{if(T(t.target))return!1;let n=(0,o.vJq)();return!(!(0,o.I2P)(n)&&!(0,o.RTZ)(n))&&(t.preventDefault(),e.dispatchCommand(o.WuB,!1))},o.jZM),e.registerCommand(o.RTo,t=>{let n=(0,o.vJq)();if(!(0,o.I2P)(n))return!1;if(A(n),null!==t){if((f||d||h)&&c)return!1;if(t.preventDefault(),t.shiftKey)return e.dispatchCommand(o.FEN,!1)}return e.dispatchCommand(o.XKQ,void 0)},o.jZM),e.registerCommand(o.Q$N,()=>{let t=(0,o.vJq)();return!!(0,o.I2P)(t)&&(e.blur(),!0)},o.jZM),e.registerCommand(o.Sr4,t=>{let[,n]=k(t);if(n.length>0){let r=s(t.clientX,t.clientY);if(null!==r){let{offset:t,node:i}=r,l=(0,o.xL4)(i);if(null!==l){let e=(0,o.uTE)();if((0,o.kFe)(l))e.anchor.set(l.getKey(),t,"text"),e.focus.set(l.getKey(),t,"text");else{let t=l.getParentOrThrow().getKey(),n=l.getIndexWithinParent()+1;e.anchor.set(t,n,"element"),e.focus.set(t,n,"element")}let n=(0,o.CaD)(e);(0,o.n1P)(n)}e.dispatchCommand(p,n)}return t.preventDefault(),!0}let r=(0,o.vJq)();return!!(0,o.I2P)(r)},o.jZM),e.registerCommand(o.TgX,e=>{let[t]=k(e),n=(0,o.vJq)();return!(t&&!(0,o.I2P)(n))},o.jZM),e.registerCommand(o.riq,e=>{let[t]=k(e),n=(0,o.vJq)();if(t&&!(0,o.I2P)(n))return!1;let r=s(e.clientX,e.clientY);if(null!==r){let t=(0,o.xL4)(r.node);(0,o.Cyw)(t)&&e.preventDefault()}return!0},o.jZM),e.registerCommand(o.HYn,()=>((0,o.e1k)(),!0),o.jZM),e.registerCommand(o.u5G,t=>((0,r.lW)(e,(0,l.xj)(t,ClipboardEvent)?t:null),!0),o.jZM),e.registerCommand(o.VSO,t=>((async function(e,t){await (0,r.lW)(t,(0,l.xj)(e,ClipboardEvent)?e:null),t.update(()=>{let e=(0,o.vJq)();
1(0,o.I2P)(e)?e.removeText():(0,o.RTZ)(e)&&e.getNodes().forEach(e=>e.remove())})})(t,e),!0),o.jZM),e.registerCommand(o.waI,t=>{let[,n,i]=k(t);return n.length>0&&!i?(e.dispatchCommand(p,n),!0):!((0,o.vAA)(t.target)&&(0,o.Z$U)(t.target))&&null!==(0,o.vJq)()&&(t.preventDefault(),e.update(()=>{let n=(0,o.vJq)(),i=(0,l.xj)(t,InputEvent)||(0,l.xj)(t,KeyboardEvent)?null:t.clipboardData;null!=i&&null!==n&&(0,r.Bi)(i,n,e)},{tag:o.fwY}),!0)},o.jZM),e.registerCommand(o.Huu,e=>{let t=(0,o.vJq)();return(0,o.I2P)(t)&&A(t),!1},o.jZM),e.registerCommand(o.OXk,e=>{let t=(0,o.vJq)();return(0,o.I2P)(t)&&A(t),!1},o.jZM))}},47241:(e,t,n)=>{"use strict";n.d(t,{Y:()=>s});var r=n(36997),i=n(53310),l=n(12115);function o(e,t){return e.getEditorState().read(()=>{let e=(0,i.nsf)(t);return null!==e&&e.isSelected()})}function s(e){let[t]=(0,r.DF)(),[n,s]=(0,l.useState)(()=>o(t,e));return(0,l.useEffect)(()=>{let n=!0,r=t.registerUpdateListener(()=>{n&&s(o(t,e))});return()=>{n=!1,r()}},[t,e]),[n,(0,l.useCallback)(n=>{t.update(()=>{let t=(0,i.vJq)();(0,i.RTZ)(t)||(t=(0,i.rUs)(),(0,i.n1P)(t)),(0,i.RTZ)(t)&&(n?t.add(e):t.delete(e))})},[t,e]),(0,l.useCallback)(()=>{t.update(()=>{let e=(0,i.vJq)();(0,i.RTZ)(e)&&e.clear()})},[t])]}},47395:(e,t,n)=>{"use strict";n.d(t,{$D:()=>N,PN:()=>z,QC:()=>c,SD:()=>T,a5:()=>d,iK:()=>u,mF:()=>E,xs:()=>A,yN:()=>x,yy:()=>v});var r=n(53310),i=n(43971);function l(e,...t){let n=new URL("https://lexical.dev/docs/error"),r=new URLSearchParams;for(let n of(r.append("code",e),t))r.append("v",n);throw n.search=r.toString(),Error(`Minified Lexical error #${e}; visit ${n.toString()} for the full message or use the non-minified dev environment for full errors and additional helpful warnings.`)}n(93923),n(1123),n(34908),n(69343),n(26610),n(75492),n(69534),n(23435),n(87213),n(95350),n(8293),n(22773),n(68342),n(21524),n(48631),n(69556);let o="data-language",s="data-highlight-language",a="data-theme";class u extends r.fGB{static getType(){return"code"}static clone(e){return new u(e.__language,e.__key)}constructor(e,t){super(t),this.__language=e||void 0,this.__isSyntaxHighlightSupported=!1,this.__theme=void 0}afterCloneFrom(e){super.afterCloneFrom(e),this.__language=e.__language,this.__theme=e.__theme,this.__isSyntaxHighlightSupported=e.__isSyntaxHighlightSupported}createDOM(e){let t=document.createElement("code");(0,i.ZB)(t,e.theme.code),t.setAttribute("spellcheck","false");let n=this.getLanguage();n&&(t.setAttribute(o,n),this.getIsSyntaxHighlightSupported()&&t.setAttribute(s,n));let r=this.getTheme();r&&t.setAttribute(a,r);let l=this.getStyle();return l&&t.setAttribute("style",l),t}updateDOM(e,t,n){let r=this.__language,i=e.__language;r?r!==i&&t.setAttribute(o,r):i&&t.removeAttribute(o);let l=this.__isSyntaxHighlightSupported;e.__isSyntaxHighlightSupported&&i?l&&r?r!==i&&t.setAttribute(s,r):t.removeAttribute(s):l&&r&&t.setAttribute(s,r);let u=this.__theme,c=e.__theme;u?u!==c&&t.setAttribute(a,u):c&&t.removeAttribute(a);let d=this.__style,f=e.__style;return d?d!==f&&t.setAttribute("style",d):f&&t.removeAttribute("style"),!1}exportDOM(e){let t=document.createElement("pre");(0,i.ZB)(t,e._config.theme.code),t.setAttribute("spellcheck","false");let n=this.getLanguage();n&&(t.setAttribute(o,n),this.getIsSyntaxHighlightSupported()&&t.setAttribute(s,n));let r=this.getTheme();r&&t.setAttribute(a,r);let l=this.getStyle();return l&&t.setAttribute("style",l),{element:t}}static importDOM(){return{code:e=>null!=e.textContent&&(/\r?\n/.test(e.textContent)||function e(t,n){for(let i of t.childNodes){if((0,r.sby)(i)&&i.tagName===n)return!0;e(i,n)}return!1}(e,"BR"))?{conversion:f,priority:1}:null,div:()=>({conversion:g,priority:1}),pre:()=>({conversion:f,priority:0}),table:e=>y(e)?{conversion:h,priority:3}:null,td:e=>{let t=e.closest("table");return e.classList.contains("js-file-line")||t&&y(t)?{conversion:p,priority:3}:null},tr:e=>{let t=e.closest("table");return t&&y(t)?{conversion:p,priority:3}:null}}}static importJSON(e){return c().updateFromJSON(e)}updateFromJSON(e){return super.updateFromJSON(e).setLanguage(e.language).setTheme(e.theme)}exportJSON(){return{...super.exportJSON(),language:this.getLanguage(),theme:this.getTheme()}}insertNewAfter(e,t=!0){let n=this.getChildren(),i=n.length;if(i>=2&&"\n"===n[i-1].getTextContent()&&"\n"===n[i-2].getTextContent()&&e.isCollapsed()&&e.anchor.key===this.__key&&e.anchor.offset===i){n[i-1].remove(),n[i-2].remove();let e=(0,r.lJ7)();return this.insertAfter(e,t),e}let{anchor:l,focus:o}=e,s=(l.isBefore(o)?l:o).getNode();if((0,r.kFe)(s)){let e=w(s),t=[];for(;;)if((0,r.MK6)(e))t.push((0,r.ev7)()),e=e.getNextSibling();else{if(!x(e))break;{let n=0,r=e.getTextContent(),i=e.getTextContentSize();for(;n<i&&" "===r[n];)n++;if(0!==n&&t.push(b(" ".repeat(n))),n!==i)break;e=e.getNextSibling()}}let n=s.splitText(l.offset)[0],i=+(0!==l.offset),o=n.getIndexWithinParent()+i,a=s.getParentOrThrow(),u=[(0,r.WKo)(),...t];a.splice(o,0,u);let c=t[t.length-1];c?c.select():0===l.offset?n.selectPrevious():n.getNextSibling().selectNext(0,0)}if(d(s)){let{offset:t}=e.anchor;s.splice(t,0,[(0,r.WKo)()]),s.select(t+1,t+1)}return null}canIndent(){return!1}collapseAtStart(){let e=(0,r.lJ7)();
1return this.getChildren().forEach(t=>e.append(t)),this.replace(e),!0}setLanguage(e){let t=this.getWritable();return t.__language=e||void 0,t}getLanguage(){return this.getLatest().__language}setIsSyntaxHighlightSupported(e){let t=this.getWritable();return t.__isSyntaxHighlightSupported=e,t}getIsSyntaxHighlightSupported(){return this.getLatest().__isSyntaxHighlightSupported}setTheme(e){let t=this.getWritable();return t.__theme=e||void 0,t}getTheme(){return this.getLatest().__theme}}function c(e,t){return(0,r.phO)(u).setLanguage(e).setTheme(t)}function d(e){return e instanceof u}function f(e){return{node:c(e.getAttribute(o))}}function g(e){let t=m(e);return t||function(e){let t=e.parentElement;for(;null!==t;){if(m(t))return!0;t=t.parentElement}return!1}(e)?{node:t?c():null}:{node:null}}function h(){return{node:c()}}function p(){return{node:null}}function m(e){return null!==e.style.fontFamily.match("monospace")}function y(e){return e.classList.contains("js-file-line-container")}class v extends r.Ey8{constructor(e="",t,n){super(e,n),this.__highlightType=t}static getType(){return"code-highlight"}static clone(e){return new v(e.__text,e.__highlightType||void 0,e.__key)}getHighlightType(){return this.getLatest().__highlightType}setHighlightType(e){let t=this.getWritable();return t.__highlightType=e||void 0,t}canHaveFormat(){return!1}createDOM(e){let t=super.createDOM(e),n=_(e.theme,this.__highlightType);return(0,i.ZB)(t,n),t}updateDOM(e,t,n){let r=super.updateDOM(e,t,n),l=_(n.theme,e.__highlightType),o=_(n.theme,this.__highlightType);return l!==o&&(l&&(0,i.HE)(t,l),o&&(0,i.ZB)(t,o)),r}static importJSON(e){return b().updateFromJSON(e)}updateFromJSON(e){return super.updateFromJSON(e).setHighlightType(e.highlightType)}exportJSON(){return{...super.exportJSON(),highlightType:this.getHighlightType()}}setFormat(e){return this}isParentRequired(){return!0}createParentElementNode(){return c()}}function _(e,t){return t&&e&&e.codeHighlight&&e.codeHighlight[t]}function b(e="",t){return(0,r.pTq)(new v(e,t))}function x(e){return e instanceof v}function S(e,t){let n=e;for(let l=(0,r.IlV)(e,t);l&&(x(l.origin)||(0,r.MK6)(l.origin));l=(0,i._X)(l))n=l.origin;return n}function w(e){return S(e,"previous")}function C(e){return S(e,"next")}!function(e){e.languages.diff={coord:[/^(?:\*{3}|-{3}|\+{3}).*$/m,/^@@.*@@$/m,/^\d.*$/m]};var t={"deleted-sign":"-","deleted-arrow":"<","inserted-sign":"+","inserted-arrow":">",unchanged:" ",diff:"!"};Object.keys(t).forEach(function(n){var r=t[n],i=[];/^\w+$/.test(n)||i.push(/\w+/.exec(n)[0]),"diff"===n&&i.push("bold"),e.languages.diff[n]={pattern:RegExp("^(?:["+r+"].*(?:\r\n?|\n|(?![\\s\\S])))+","m"),alias:i,inside:{line:{pattern:/(.)(?=[\s\S]).*(?:\r\n?|\n)?/,lookbehind:!0},prefix:{pattern:/[\s\S]/,alias:/\w+/.exec(n)[0]}}}}),Object.defineProperty(e.languages.diff,"PREFIXES",{value:t})}(Prism);let k=globalThis.Prism||window.Prism,E={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"},T={cpp:"cpp",java:"java",javascript:"js",md:"markdown",plaintext:"plain",python:"py",text:"plain",ts:"typescript"};function A(e){return T[e]||e}function N(e){let t=A(e);return E[t]||t}let F={$tokenize(e,t){return function(e,t){let n=/^diff-([\w-]+)/i.exec(t),i=e.getTextContent(),l=k.tokenize(i,k.languages[n?"diff":t]);return n&&(l=function(e,t){let n=k.languages[t],r=k.languages.diff.PREFIXES;for(let t of e){if("string"==typeof t||!(t.type in r)||!Array.isArray(t.content))continue;let e=t.type,i=0,l=()=>(i++,new k.Token("prefix",r[e],e.replace(/^(\w+).*/,"$1"))),o=t.content.filter(e=>"string"==typeof e||"prefix"!==e.type),s=t.content.length-o.length,a=k.tokenize(function e(t){return"string"==typeof t?t:Array.isArray(t)?t.map(e).join(""):e(t.content)}(o),n);a.unshift(l());let u=/\r\n|\n/g,c=e=>{let t=[];u.lastIndex=0;let n,r=0;for(;i<s&&(n=u.exec(e));){let i=n.index+n[0].length;t.push(e.slice(r,i)),r=i,t.push(l())}if(0!==t.length)return r<e.length&&t.push(e.slice(r)),t},d=e=>{for(let t=0;t<e.length&&i<s;t++){let n=e[t];if("string"==typeof n){let r=c(n);r&&(e.splice(t,1,...r),t+=r.length-1)}else if("string"==typeof n.content){let e=c(n.content);e&&(n.content=e)}else Array.isArray(n.content)?d(n.content):d([n.content])}};
1d(a),i<s&&a.push(l()),t.content=a}return e}(l,n[1])),function e(t,n){let i=[];for(let l of t)if("string"==typeof l){let e=l.split(/(\n|\t)/),t=e.length;for(let l=0;l<t;l++){let t=e[l];"\n"===t||"\r\n"===t?i.push((0,r.WKo)()):"	"===t?i.push((0,r.ev7)()):t.length>0&&i.push(b(t,n))}}else{let{content:t,alias:n}=l;"string"==typeof t?i.push(...e([t],"prefix"===l.type&&"string"==typeof n?n:l.type)):Array.isArray(t)&&i.push(...e(t,"unchanged"===l.type?void 0:l.type))}return i}(l)}(e,t||this.defaultLanguage)},defaultLanguage:"javascript",tokenize(e,t){return k.tokenize(e,k.languages[t||""]||k.languages[this.defaultLanguage])}};function R(e,t,n){let i=e.getParent();d(i)?O(i,t,n):x(e)&&e.replace((0,r.sTu)(e.__text))}let M=new Set;function O(e,t,n){let i=e.getKey();if(void 0===e.getLanguage()&&e.setLanguage(n.defaultLanguage),!function(e){let t=function(e){let t=/^diff-([\w-]+)/i.exec(e);return t?t[1]:null}(e)||e;try{return!!t&&k.languages.hasOwnProperty(t)}catch(e){return!1}}(e.getLanguage()||n.defaultLanguage))return void(e.getIsSyntaxHighlightSupported()&&e.setIsSyntaxHighlightSupported(!1));e.getIsSyntaxHighlightSupported()||e.setIsSyntaxHighlightSupported(!0),M.has(i)||(M.add(i),t.update(()=>{!function(e,t){let n=(0,r.nsf)(e);if(!d(n)||!n.isAttached())return;let i=(0,r.vJq)();if(!(0,r.I2P)(i))return t();let l=i.anchor,o=l.offset,s="element"===l.type&&(0,r.wH$)(n.getChildAtIndex(l.offset-1)),a=0;if(s||(a=o+l.getNode().getPreviousSiblings().reduce((e,t)=>e+t.getTextContentSize(),0)),t()){if(s)return l.getNode().select(o,o);n.getChildren().some(e=>{let t=(0,r.kFe)(e);if(t||(0,r.wH$)(e)){let n=e.getTextContentSize();if(t&&n>=a)return e.select(a,a),!0;a-=n}return!1})}}(i,()=>{let t=(0,r.nsf)(i);if(!d(t)||!t.isAttached())return!1;let l=t.getLanguage()||n.defaultLanguage,o=n.$tokenize(t,l),{from:s,to:a,nodesForReplacement:u}=function(e,t){let n=0;for(;n<e.length&&I(e[n],t[n]);)n++;let r=e.length,i=t.length,l=Math.min(r,i)-n,o=0;for(;o<l;)if(!I(e[r-++o],t[i-o])){o--;break}let s=r-o;return{from:n,nodesForReplacement:t.slice(n,i-o),to:s}}(t.getChildren(),o);return!(s===a&&!u.length)&&(e.splice(s,a-s,u),!0)})},{onUpdate:()=>{M.delete(i)},skipTransforms:!0}))}function I(e,t){return x(e)&&x(t)&&e.__text===t.__text&&e.__highlightType===t.__highlightType||(0,r.MK6)(e)&&(0,r.MK6)(t)||(0,r.wH$)(e)&&(0,r.wH$)(t)}function P(e){if(!(0,r.I2P)(e))return!1;let t=e.anchor.getNode(),n=d(t)?t:t.getParent(),i=e.focus.getNode(),l=d(i)?i:i.getParent();return d(n)&&n.is(l)}function L(e){let t=e.getNodes(),n=[];if(1===t.length&&d(t[0]))return n;let i=[];for(let e=0;e<t.length;e++){let o=t[e];x(o)||(0,r.MK6)(o)||(0,r.wH$)(o)||l(169),(0,r.wH$)(o)?i.length>0&&(n.push(i),i=[]):i.push(o)}if(i.length>0){let t=e.isBackward()?e.anchor:e.focus,l=(0,r.z8s)(i[0].getKey(),0,"text");t.is(l)||n.push(i)}return n}function D(e){let t=(0,r.vJq)();if(!(0,r.I2P)(t)||!P(t))return!1;let n=L(t),i=n.length;
1if(0===i&&t.isCollapsed())return e===r.PiT&&t.insertNodes([(0,r.ev7)()]),!0;if(0===i&&e===r.PiT&&"\n"===t.getTextContent()){let e=(0,r.ev7)(),n=(0,r.WKo)(),i=t.isBackward()?"previous":"next";return t.insertNodes([e,n]),(0,r.xQ8)((0,r.NZv)((0,r.TJt)((0,r.T8n)(e,"next",0),(0,r.lSZ)((0,r.IlV)(n,"next"))),i)),!0}for(let l=0;l<i;l++){let i=n[l];if(i.length>0){let n=i[0];if(0===l&&(n=w(n)),e===r.PiT){let e=(0,r.ev7)();if(n.insertBefore(e),0===l){let i=t.isBackward()?"focus":"anchor",l=(0,r.z8s)(n.getKey(),0,"text");t[i].is(l)&&t[i].set(e.getKey(),0,"text")}}else(0,r.MK6)(n)&&n.remove()}}return!0}function B(e,t){let n,i,l=(0,r.vJq)();if(!(0,r.I2P)(l))return!1;let{anchor:o,focus:s}=l,a=o.offset,u=s.offset,c=o.getNode(),d=s.getNode(),f=e===r.UDz;if(!P(l)||!x(c)&&!(0,r.MK6)(c)||!x(d)&&!(0,r.MK6)(d))return!1;if(!t.altKey){if(l.isCollapsed()){let e=c.getParentOrThrow();if(f&&0===a&&null===c.getPreviousSibling()){if(null===e.getPreviousSibling())return e.selectPrevious(),t.preventDefault(),!0}else if(!f&&a===c.getTextContentSize()&&null===c.getNextSibling()&&null===e.getNextSibling())return e.selectNext(),t.preventDefault(),!0}return!1}if(c.isBefore(d)?(n=w(c),i=C(d)):(n=w(d),i=C(c)),null==n||null==i)return!1;let g=n.getNodesBetween(i);for(let e=0;e<g.length;e++){let t=g[e];if(!x(t)&&!(0,r.MK6)(t)&&!(0,r.wH$)(t))return!1}t.preventDefault(),t.stopPropagation();let h=f?n.getPreviousSibling():i.getNextSibling();if(!(0,r.wH$)(h))return!0;let p=f?h.getPreviousSibling():h.getNextSibling();if(null==p)return!0;let m=x(p)||(0,r.MK6)(p)||(0,r.wH$)(p)?f?w(p):C(p):null,y=null!=m?m:p;return h.remove(),g.forEach(e=>e.remove()),e===r.UDz?(g.forEach(e=>y.insertBefore(e)),y.insertBefore(h)):(y.insertAfter(h),y=h,g.forEach(e=>{y.insertAfter(e),y=e})),l.setTextNodeRange(c,a,d,u),!0}function K(e,t){let n=(0,r.vJq)();if(!(0,r.I2P)(n))return!1;let{anchor:i,focus:o}=n,s=i.getNode(),a=o.getNode(),u=e===r.RpX;if(!P(n)||!x(s)&&!(0,r.MK6)(s)||!x(a)&&!(0,r.MK6)(a))return!1;if(u){let e=function(e,t){let n=null,i=null,o=e,s=t,a=e.getTextContent();for(;;){if(0===s){if(null===(o=o.getPreviousSibling()))break;if(x(o)||(0,r.MK6)(o)||(0,r.wH$)(o)||l(167),(0,r.wH$)(o)){n={node:o,offset:1};break}s=Math.max(0,o.getTextContentSize()-1),a=o.getTextContent()}else s--;let e=a[s];x(o)&&" "!==e&&(i={node:o,offset:s})}if(null!==i)return i;let u=null;if(t<e.getTextContentSize())x(e)&&(u=e.getTextContent()[t]);else{let t=e.getNextSibling();x(t)&&(u=t.getTextContent()[0])}if(null!==u&&" "!==u)return n;{let i=function(e,t){let n=e,i=t,l=e.getTextContent(),o=e.getTextContentSize();for(;;){if(!x(n)||i===o){if(null===(n=n.getNextSibling())||(0,r.wH$)(n))return null;x(n)&&(i=0,l=n.getTextContent(),o=n.getTextContentSize())}if(x(n)){if(" "!==l[i])return{node:n,offset:i};i++}}}(e,t);return null!==i?i:n}}(a,o.offset);if(null!==e){let{node:t,offset:i}=e;(0,r.wH$)(t)?t.selectNext(0,0):n.setTextNodeRange(t,i,t,i)}else a.getParentOrThrow().selectStart()}else(function(e){let t=C(e);return(0,r.wH$)(t)&&l(168),t})(a).select();return t.preventDefault(),t.stopPropagation(),!0}function z(e,t){if(!e.hasNodes([u,v]))throw Error("CodeHighlightPlugin: CodeNode or CodeHighlightNode not registered on editor");null==t&&(t=F);let n=[];return!0!==e._headless&&n.push(e.registerMutationListener(u,t=>{e.update(()=>{for(let[n,i]of t)if("destroyed"!==i){let t=(0,r.nsf)(n);null!==t&&function(e,t){let n=t.getElementByKey(e.getKey());if(null===n)return;let i=e.getChildren(),l=i.length;if(l===n.__cachedChildrenLength)return;n.__cachedChildrenLength=l;let o="1",s=1;for(let e=0;e<l;e++)(0,r.wH$)(i[e])&&(o+="\n"+ ++s);n.setAttribute("data-gutter",o)}(t,e)}})},{skipInitialization:!1})),n.push(e.registerNodeTransform(u,n=>O(n,e,t)),e.registerNodeTransform(r.Ey8,n=>R(n,e,t)),e.registerNodeTransform(v,n=>R(n,e,t)),e.registerCommand(r.OXk,t=>{let n=function(e){let t,n,i=(0,r.vJq)();if(!(0,r.I2P)(i)||!P(i))return null;let o=e?r.sik:r.PiT,s=e?r.sik:r.YW5,a=i.anchor,u=i.focus;if(a.is(u))return s;let c=L(i);if(1!==c.length)return o;let d=c[0];0===d.length&&l(285),i.isBackward()?(t=u,n=a):(t=a,n=u);let f=w(d[0]),g=C(d[0]),h=(0,r.z8s)(f.getKey(),0,"text"),p=(0,r.z8s)(g.getKey(),g.getTextContentSize(),"text");return t.isBefore(h)||p.isBefore(n)?o:h.isBefore(t)||n.isBefore(p)?s:o}(t.shiftKey);return null!==n&&(t.preventDefault(),e.dispatchCommand(n,void 0),!0)},r.AcJ),e.registerCommand(r.YW5,()=>!!P((0,r.vJq)())&&((0,r.H2A)([(0,r.ev7)()]),!0),r.AcJ),e.registerCommand(r.PiT,e=>D(r.PiT),r.AcJ),e.registerCommand(r.sik,e=>D(r.sik),r.AcJ),e.registerCommand(r.UDz,e=>{let t=(0,r.vJq)();if(!(0,r.I2P)(t))return!1;let{anchor:n}=t,i=n.getNode();return!!P(t)&&(t.isCollapsed()&&0===n.offset&&null===i.getPreviousSibling()&&d(i.getParentOrThrow())?(e.preventDefault(),!0):B(r.UDz,e))},r.AcJ),e.registerCommand(r.bbF,e=>{let t=(0,r.vJq)();if(!(0,r.I2P)(t))return!1;let{anchor:n}=t,i=n.getNode();return!!P(t)&&(t.isCollapsed()&&n.offset===i.getTextContentSize()&&null===i.getNextSibling()&&d(i.getParentOrThrow())?(e.preventDefault(),!0):B(r.bbF,e))},r.AcJ),e.registerCommand(r.RpX,e=>K(r.RpX,e),r.AcJ),e.registerCommand(r.A6j,e=>K(r.A6j,e),r.AcJ)),(0,i.Sd)(...n)}},47834:(e,t,n)=>{"use strict";n.d(t,{A:()=>r});let r=(0,n(78340).A)("Link",[["path",{d:"M10 13a5 5 0 0 0 7.54.54l3-3a5 5 0 0 0-7.07-7.07l-1.72 1.71",key:"1cjeqo"}],["path",{d:"M14 11a5 5 0 0 0-7.54-.54l-3 3a5 5 0 0 0 7.07 7.07l1.71-1.71",key:"19qd67"}]])},48631:()=>{!function(e){var t=/\b(?:abstract|assert|boolean|break|byte|case|catch|char|class|const|continue|default|do|double|else|enum|exports|extends|final|finally|float|for|goto|if|implements|import|instanceof|int|interface|long|module|native|new|non-sealed|null|open|opens|package|permits|private|protected|provides|public|record(?!\s*[(){}[\]<>=%~.:,;
1?+\-*/&|^])|requires|return|sealed|short|static|strictfp|super|switch|synchronized|this|throw|throws|to|transient|transitive|try|uses|var|void|volatile|while|with|yield)\b/,n=/(?:[a-z]\w*\s*\.\s*)*(?:[A-Z]\w*\s*\.\s*)*/.source,r={pattern:RegExp(/(^|[^\w.])/.source+n+/[A-Z](?:[\d_A-Z]*[a-z]\w*)?\b/.source),lookbehind:!0,inside:{namespace:{pattern:/^[a-z]\w*(?:\s*\.\s*[a-z]\w*)*(?:\s*\.)?/,inside:{punctuation:/\./}},punctuation:/\./}};e.languages.java=e.languages.extend("clike",{string:{pattern:/(^|[^\\])"(?:\\.|[^"\\\r\n])*"/,lookbehind:!0,greedy:!0},"class-name":[r,{pattern:RegExp(/(^|[^\w.])/.source+n+/[A-Z]\w*(?=\s+\w+\s*[;,=()]|\s*(?:\[[\s,]*\]\s*)?::\s*new\b)/.source),lookbehind:!0,inside:r.inside},{pattern:RegExp(/(\b(?:class|enum|extends|implements|instanceof|interface|new|record|throws)\s+)/.source+n+/[A-Z]\w*\b/.source),lookbehind:!0,inside:r.inside}],keyword:t,function:[e.languages.clike.function,{pattern:/(::\s*)[a-z_]\w*/,lookbehind:!0}],number:/\b0b[01][01_]*L?\b|\b0x(?:\.[\da-f_p+-]+|[\da-f_]+(?:\.[\da-f_p+-]+)?)\b|(?:\b\d[\d_]*(?:\.[\d_]*)?|\B\.\d[\d_]*)(?:e[+-]?\d[\d_]*)?[dfl]?/i,operator:{pattern:/(^|[^.])(?:<<=?|>>>?=?|->|--|\+\+|&&|\|\||::|[?:~]|[-+*/%&|^!=<>]=?)/m,lookbehind:!0},constant:/\b[A-Z][A-Z_\d]+\b/}),e.languages.insertBefore("java","string",{"triple-quoted-string":{pattern:/"""[ \t]*[\r\n](?:(?:"|"")?(?:\\.|[^"\\]))*"""/,greedy:!0,alias:"string"},char:{pattern:/'(?:\\.|[^'\\\r\n]){1,6}'/,greedy:!0}}),e.languages.insertBefore("java","class-name",{annotation:{pattern:/(^|[^.])@\w+(?:\s*\.\s*\w+)*/,lookbehind:!0,alias:"punctuation"},generics:{pattern:/<(?:[\w\s,.?]|&(?!&)|<(?:[\w\s,.?]|&(?!&)|<(?:[\w\s,.?]|&(?!&)|<(?:[\w\s,.?]|&(?!&))*>)*>)*>)*>/,inside:{"class-name":r,keyword:t,punctuation:/[<>(),.:]/,operator:/[?&|]/}},import:[{pattern:RegExp(/(\bimport\s+)/.source+n+/(?:[A-Z]\w*|\*)(?=\s*;)/.source),lookbehind:!0,inside:{namespace:r.inside.namespace,punctuation:/\./,operator:/\*/,"class-name":/\w+/}},{pattern:RegExp(/(\bimport\s+static\s+)/.source+n+/(?:\w+|\*)(?=\s*;)/.source),lookbehind:!0,alias:"static",inside:{namespace:r.inside.namespace,static:/\b\w+$/,punctuation:/\./,operator:/\*/,"class-name":/\w+/}}],namespace:{pattern:RegExp(/(\b(?:exports|import(?:\s+static)?|module|open|opens|package|provides|requires|to|transitive|uses|with)\s+)(?!<keyword>)[a-z]\w*(?:\.[a-z]\w*)*\.?/.source.replace(/<keyword>/g,function(){return t.source})),lookbehind:!0,inside:{punctuation:/\./}}})}(Prism)},49133:(e,t,n)=>{"use strict";n.d(t,{A:()=>r});let r=(0,n(78340).A)("Strikethrough",[["path",{d:"M16 4H9a3 3 0 0 0-2.83 4",key:"43sutm"}],["path",{d:"M14 12a4 4 0 0 1 0 8H6",key:"nlfj13"}],["line",{x1:"4",x2:"20",y1:"12",y2:"12",key:"1e0a9i"}]])},49387:(e,t,n)=>{"use strict";n.d(t,{A:()=>r});let r=(0,n(78340).A)("Pencil",[["path",{d:"M21.174 6.812a1 1 0 0 0-3.986-3.987L3.842 16.174a2 2 0 0 0-.5.83l-1.321 4.352a.5.5 0 0 0 .623.622l4.353-1.32a2 2 0 0 0 .83-.497z",key:"1a8usu"}],["path",{d:"m15 5 4 4",key:"1mk7zo"}]])},51603:(e,t,n)=>{"use strict";n.d(t,{A:()=>l});var r=n(66234),i="object"==typeof self&&self&&self.Object===Object&&self;let l=r.A||i||Function("return this")()},52475:(e,t,n)=>{"use strict";n.d(t,{A:()=>r});let r=(0,n(78340).A)("Code",[["polyline",{points:"16 18 22 12 16 6",key:"z7tu5w"}],["polyline",{points:"8 6 2 12 8 18",key:"1eg1df"}]])},53310:(e,t,n)=>{"use strict";function r(e,...t){let n=new URL("https://lexical.dev/docs/error"),i=new URLSearchParams;for(let n of(i.append("code",e),t))i.append("v",n);throw n.search=i.toString(),Error(`Minified Lexical error #${e}; visit ${n.toString()} for the full message or use the non-minified dev environment for full errors and additional helpful warnings.`)}n.d(t,{$7r:()=>tl,$ey:()=>eP,$iu:()=>lg,A6j:()=>ej,A7V:()=>rc,AX0:()=>eJ,AcJ:()=>rm,Ave:()=>lu,B$P:()=>is,BEs:()=>iB,Bts:()=>li,CaD:()=>U,Cku:()=>na,Csq:()=>l_,Cyw:()=>n6,Ey8:()=>tV,FEN:()=>eR,GMe:()=>nq,GcU:()=>nB,Gew:()=>iv,H2A:()=>nN,HYn:()=>te,Huu:()=>eV,I2P:()=>ni,IlV:()=>i3,IqF:()=>i_,JM3:()=>eW,JjG:()=>ry,Jvg:()=>rE,K8K:()=>iN,KfJ:()=>ti,Kp7:()=>n7,LYZ:()=>rN,LZn:()=>S,MK6:()=>t8,MvL:()=>eT,NG9:()=>lh,NZv:()=>lb,Ng_:()=>rs,NiT:()=>rG,OBE:()=>nb,OXk:()=>eQ,OpE:()=>iX,P6U:()=>i6,PiT:()=>e1,Q$N:()=>eY,RTZ:()=>no,RTo:()=>eZ,Rb_:()=>rI,RpX:()=>eH,S1w:()=>nw,SKc:()=>tt,Sr4:()=>e3,T40:()=>rl,T8n:()=>i4,TJt:()=>lr,TgX:()=>e5,UDz:()=>eU,V30:()=>ez,VSO:()=>e9,WKo:()=>tz,WWb:()=>tr,WgU:()=>rv,WuB:()=>eF,XKQ:()=>eM,YW5:()=>e0,Z$U:()=>rA,ZKf:()=>eK,_On:()=>iF,a9V:()=>iR,bM3:()=>eO,bMH:()=>ri,bSg:()=>rh,bbF:()=>eq,cmH:()=>iQ,cqi:()=>ts,d8p:()=>eN,da8:()=>r_,dxY:()=>iK,e1k:()=>ir,erb:()=>i8,ev7:()=>t6,fD3:()=>rd,fGB:()=>n3,fUS:()=>e4,ff4:()=>n4,fwY:()=>ro,gCZ:()=>eG,guI:()=>eE,hVZ:()=>n9,haT:()=>n8,hi0:()=>eL,i0_:()=>iI,ieJ:()=>rx,j17:()=>L,jG6:()=>rB,jZM:()=>rp,k1Q:()=>lw,kBm:()=>tL,kFe:()=>t4,lJ7:()=>rg,lSZ:()=>ly,mB:()=>eB,mWO:()=>lt,n0X:()=>rr,n1P:()=>rX,nYP:()=>iE,nsf:()=>rJ,oqR:()=>eA,pGK:()=>lv,pTq:()=>ix,pd8:()=>iz,peL:()=>ik,phO:()=>ij,rN:()=>iY,rUs:()=>n_,riq:()=>e7,sTu:()=>t3,sWS:()=>ln,sby:()=>iT,scG:()=>rR,sik:()=>e2,t5V:()=>tn,u5G:()=>e8,uTE:()=>nv,uwZ:()=>i7,vAA:()=>iA,vJq:()=>nS,viC:()=>eD,w$Z:()=>eX,w3H:()=>iM,wH$:()=>t$,waI:()=>eI,wp6:()=>lc,xL4:()=>rq,xQ8:()=>ld,y68:()=>nm,z8s:()=>ne});let i="undefined"!=typeof window&&void 0!==window.document&&void 0!==window.document.createElement,l=i&&"documentMode"in document?document.documentMode:null,o=i&&/Mac|iPod|iPhone|iPad/.test(navigator.platform),s=i&&/^(?!.*Seamonkey)(?=.*Firefox).*/i.test(navigator.userAgent),a=!(!i||!("InputEvent"in window)||l)&&"getTargetRanges"in new window.InputEvent("input"),u=i&&/Version\/[\d.]+.*Safari/.test(navigator.userAgent),c=i&&/iPad|iPhone|iPod/.test(navigator.userAgent)&&!window.MSStream,d=i&&/Android/.test(navigator.userAgent),f=i&&/^(?=.*Chrome).*/i.test(navigator.userAgent),g=i&&d&&f,h=i&&/AppleWeb
1Kit\/[\d.]+/.test(navigator.userAgent)&&!f;function p(...e){let t=[];for(let n of e)if(n&&"string"==typeof n)for(let[e]of n.matchAll(/\S+/g))t.push(e);return t}let m=u||c||h?"\xa0":"​",y=s?"\xa0":m,v="֑-߿יִ-﷽ﹰ-ﻼ",_="A-Za-z\xc0-\xd6\xd8-\xf6\xf8-ʸ̀-֐ࠀ-῿‎Ⰰ-﬜︀-﹯﻽-￿",b=RegExp("^[^"+_+"]*["+v+"]"),x=RegExp("^[^"+v+"]*["+_+"]"),S={bold:1,capitalize:1024,code:16,highlight:128,italic:2,lowercase:256,strikethrough:4,subscript:32,superscript:64,underline:8,uppercase:512},w={directionless:1,unmergeable:2},C={center:2,end:6,justify:4,left:1,right:3,start:5},k={2:"center",6:"end",4:"justify",1:"left",3:"right",5:"start"},E={normal:0,segmented:2,token:1},T={0:"normal",2:"segmented",1:"token"},A="$config",N=!1,F=0;function R(e){F=e.timeStamp}function M(e,t,n){let r="BR"===e.nodeName,i=t.__lexicalLineBreak;return i&&(e===i||r&&e.previousSibling===i)||r&&void 0!==rU(e,n)}function O(e,t,n){N=!0;let r=performance.now()-F>100;try{n0(e,()=>{let i=nS()||e.getEditorState().read(()=>{let e=nS();return null!==e?e.clone():null}),l=new Map,o=e.getRootElement(),a=e._editorState,u=e._blockCursorElement,c=!1,d="";for(let n=0;n<t.length;n++){let f=t[n],g=f.type,h=f.target,p=function(e,t,n,r){var i;for(let l=e;l&&(i=l,!0!==i.__lexicalUnmanaged);l=ig(l)){let e=rU(l,t);if(void 0!==e){let t=rJ(e,n);if(t)return n6(t)||!iT(l)?void 0:[l,t]}else if(l===r)return[r,rY(n)]}}(h,e,a,o);if(!p)continue;let[m,y]=p;if("characterData"===g)r&&t4(y)&&rP(h)&&function(e,t,n){if(ni(e)){let t=e.anchor.getNode();if(t.is(n)&&e.format!==t.getFormat())return!1}return rP(t)&&n.isAttached()}(i,h,y)&&function(e,t,n){let r=ik(iy(n)),i=null,l=null;null!==r&&r.anchorNode===e&&(i=r.anchorOffset,l=r.focusOffset);let o=e.nodeValue;null!==o&&r5(t,o,i,l,!1)}(h,y,e);else if("childList"===g){c=!0;let t=f.addedNodes;for(let n=0;n<t.length;n++){let r=t[n],i=rH(r),l=r.parentNode;if(null!=l&&r!==u&&null===i&&!M(r,l,e)){if(s){let e=(iT(r)?r.innerText:null)||r.nodeValue;e&&(d+=e)}l.removeChild(r)}}let n=f.removedNodes,r=n.length;if(r>0){let t=0;for(let i=0;i<r;i++){let r=n[i];(M(r,h,e)||u===r)&&(h.appendChild(r),t++)}r!==t&&l.set(m,y)}}}if(l.size>0)for(let[t,n]of l)n.reconcileObservedMutation(t,e);let f=n.takeRecords();if(f.length>0){for(let t=0;t<f.length;t++){let n=f[t],r=n.addedNodes,i=n.target;for(let t=0;t<r.length;t++){let n=r[t],l=n.parentNode;null==l||"BR"!==n.nodeName||M(n,i,e)||l.removeChild(n)}}n.takeRecords()}null!==i&&(c&&rX(i),s&&ia(e)&&i.insertRawText(d))})}finally{N=!1}}function I(e){let t=e._observer;null!==t&&O(e,t.takeRecords(),t)}function P(e){0===F&&iy(e).addEventListener("textInput",R,!0),e._observer=new MutationObserver((t,n)=>{O(e,t,n)})}function L(e){let t=new Map,n=new Set;for(let r="function"==typeof e?e:e.replace;r.prototype&&void 0!==r.prototype.getType;r=Object.getPrototypeOf(r)){let{ownNodeConfig:e}=iW(r);if(e&&e.stateConfigs)for(let r of e.stateConfigs){let e;"stateConfig"in r?(e=r.stateConfig,r.flat&&n.add(e.key)):e=r,t.set(e.key,e)}}return{flatKeys:n,sharedConfigMap:t}}class D{constructor(e,t,n,r=new Map,i){this.node=e,this.sharedNodeState=t,this.unknownState=n,this.knownState=r;let{sharedConfigMap:l}=this.sharedNodeState,o=void 0!==i?i:function(e,t,n){let r=n.size;if(t)for(let i in t){let t=e.get(i);t&&n.has(t)||r++}return r}(l,n,r);this.size=o}getValue(e){let t=this.knownState.get(e);if(void 0!==t)return t;this.sharedNodeState.sharedConfigMap.set(e.key,e);let n=e.defaultValue;if(this.unknownState&&e.key in this.unknownState){let t=this.unknownState[e.key];void 0!==t&&(n=e.parse(t)),this.updateFromKnown(e,n)}return n}getInternalState(){return[this.unknownState,this.knownState]}toJSON(){let e={...this.unknownState},t={};for(let[t,n]of this.knownState)t.isEqual(n,t.defaultValue)?delete e[t.key]:e[t.key]=t.unparse(n);for(let n of this.sharedNodeState.flatKeys)n in e&&(t[n]=e[n],delete e[n]);return K(e)&&(t.$=e),t}getWritable(e){if(this.node===e)return this;let{sharedNodeState:t,unknownState:n}=this,r=new Map(this.knownState);return new D(e,t,function(e,t,n){let r;if(n)for(let[i,l]of Object.entries(n)){let n=e.get(i);n?t.has(n)||t.set(n,n.parse(l)):(r=r||{})[i]=l}return r}(t.sharedConfigMap,r,n),r,this.size)}updateFromKnown(e,t){let n=e.key;this.sharedNodeState.sharedConfigMap.set(n,e);let{knownState:r,unknownState:i}=this;r.has(e)||i&&n in i||(i&&(delete i[n],this.unknownState=K(i)),this.size++),r.set(e,t)}updateFromUnknown(e,t){let n=this.sharedNodeState.sharedConfigMap.get(e);n?this.updateFromKnown(n,n.parse(t)):(this.unknownState=this.unknownState||{},e in this.unknownState||this.size++,this.unknownState[e]=t)}updateFromJSON(e){let{knownState:t}=this;for(let e of t.keys())t.set(e,e.defaultValue);if(this.size=t.size,this.unknownState=void 0,e)for(let[t,n]of Object.entries(e))this.updateFromUnknown(t,n)}}function B(e){return e.__state?e.__state.sharedNodeState:rk(iI(),e.getType()).sharedNodeState}function K(e){if(e)for(let t in e)return e}function z(e,t,n){for(let[r,i]of t.knownState){if(e.has(r.key))continue;e.add(r.key);let t=n?n.getValue(r):r.defaultValue;
1if(t!==i&&!r.isEqual(t,i))return!0}return!1}function $(e,t,n){let{unknownState:r}=t,i=n?n.unknownState:void 0;if(r){for(let[t,n]of Object.entries(r))if(!e.has(t)&&(e.add(t),n!==(i?i[t]:void 0)))return!0}return!1}function W(e,t){let n=e.__state;return n&&n.node===e?n.getWritable(t):n}function j(e,t){let n=e.__mode,r=e.__format,i=e.__style,l=t.__mode,o=t.__format,s=t.__style,a=e.__state,u=t.__state;return(null===n||n===l)&&(null===r||r===o)&&(null===i||i===s)&&(null===e.__state||a===u||function(e,t){if(e===t)return!0;if(e&&t&&e.size!==t.size)return!1;let n=new Set;return!(e&&z(n,e,t)||t&&z(n,t,e)||e&&$(n,e,t)||t&&$(n,t,e))}(a,u))}function J(e,t){let n=e.mergeWithSibling(t),r=nW()._normalizedNodes;return r.add(e.__key),r.add(t.__key),n}function H(e){let t,n,r=e;if(""!==r.__text||!r.isSimpleText()||r.isUnmergeable()){for(;null!==(t=r.getPreviousSibling())&&t4(t)&&t.isSimpleText()&&!t.isUnmergeable();){if(""!==t.__text){j(t,r)&&(r=J(t,r));break}t.remove()}for(;null!==(n=r.getNextSibling())&&t4(n)&&n.isSimpleText()&&!n.isUnmergeable();){if(""!==n.__text){j(r,n)&&(r=J(r,n));break}n.remove()}}else r.remove()}function U(e){return q(e.anchor),q(e.focus),e}function q(e){for(;"element"===e.type;){let t,n,r=e.getNode(),i=e.offset;if(i===r.getChildrenSize()?(t=r.getChildAtIndex(i-1),n=!0):(t=r.getChildAtIndex(i),n=!1),t4(t)){e.set(t.__key,n?t.getTextContentSize():0,"text",!0);break}if(!n4(t))break;e.set(t.__key,n?t.getChildrenSize():0,"element",!0)}}let Z,V,G,Y,X,Q,ee,et,en,er,ei="",el="",eo=null,es="",ea="",eu=!1,ec=!1,ed=null;function ef(e,t){let n=ee.get(e);if(null!==t){let n=ek(e);n.parentNode===t&&t.removeChild(n)}if(et.has(e)||V._keyToDOMMap.delete(e),n4(n)){let e=eS(n,ee);eg(e,0,e.length-1,null)}void 0!==n&&il(er,G,Y,n,"destroyed")}function eg(e,t,n,r){let i=t;for(;i<=n;++i){let t=e[i];void 0!==t&&ef(t,r)}}function eh(e,t){e.setProperty("text-align",t)}function ep(e,t){let n=Z.theme.indent;if("string"==typeof n){let r=e.classList.contains(n);t>0&&!r?e.classList.add(n):t<1&&r&&e.classList.remove(n)}let r=getComputedStyle(e).getPropertyValue("--lexical-indent-base-value")||"40px";e.style.setProperty("padding-inline-start",0===t?"":`calc(${t} * ${r})`)}function em(e,t){let n=e.style;0===t?eh(n,""):1===t?eh(n,"left"):2===t?eh(n,"center"):3===t?eh(n,"right"):4===t?eh(n,"justify"):5===t?eh(n,"start"):6===t&&eh(n,"end")}function ey(e,t){let n=et.get(e);void 0===n&&r(60);let i=n.createDOM(Z,V);if(function(e,t,n){let r=n._keyToDOMMap;t[`__lexicalKey_${n._key}`]=e,r.set(e,t)}(e,i,V),t4(n)?i.setAttribute("data-lexical-text","true"):n6(n)&&i.setAttribute("data-lexical-decorator","true"),n4(n)){let e=n.__indent,t=n.__size;0!==e&&ep(i,e),0!==t&&function(e,t,n,r){let i=el;el="",ev(e,n,0,t,n.getDOMSlot(r)),ex(n,r),el=i}(eS(n,et),t-1,n,i);let r=n.__format;0!==r&&em(i,r),n.isInline()||eb(null,n,i),ic(n)&&(ei+="\n\n",ea+="\n\n")}else{let t=n.getTextContent();if(n6(n)){let t=n.decorate(V,Z);null!==t&&ew(e,t),i.contentEditable="false"}else t4(n)&&(n.isDirectionless()||(el+=t));ei+=t,ea+=t}return null!==t&&t.insertChild(i),il(er,G,Y,n,"created"),i}function ev(e,t,n,r,i){let l=ei;ei="";let o=n;for(;o<=r;++o){ey(e[o],i);let t=et.get(e[o]);null!==t&&t4(t)&&(null===eo&&(eo=t.getFormat()),""===es&&(es=t.getStyle()))}ic(t)&&(ei+="\n\n"),i.element.__lexicalTextContent=ei,ei=l+ei}function e_(e,t){if(e){let n=e.__last;if(n){let e=t.get(n);if(e)return t$(e)?"line-break":n6(e)&&e.isInline()?"decorator":null}return"empty"}return null}function eb(e,t,n){let r=e_(e,ee),i=e_(t,et);r!==i&&t.getDOMSlot(n).setManagedLineBreak(i)}function ex(e,t){let n=t.__lexicalDirTextContent||"",r=t.__lexicalDir||"";if(n!==el||r!==ed){var i;let n=""===el,l=n?ed:(i=el,b.test(i)?"rtl":x.test(i)?"ltr":null);if(l!==r){let i=t.classList,o=Z.theme,s=null!==r?o[r]:void 0,a=null!==l?o[l]:void 0;if(void 0!==s){if("string"==typeof s){let e=p(s);s=o[r]=e}i.remove(...s)}if(null===l||n&&"ltr"===l)t.removeAttribute("dir");else{if(void 0!==a){if("string"==typeof a){let e=p(a);a=o[l]=e}void 0!==a&&i.add(...a)}t.dir=l}ec||(e.getWritable().__dir=l)}ed=l,t.__lexicalDirTextContent=el,t.__lexicalDir=l}}function eS(e,t){let n=[],i=e.__first;for(;null!==i;){let e=t.get(i);void 0===e&&r(101),n.push(i),i=e.__next}return n}function ew(e,t){let n=V._pendingDecorators,r=V._decorators;if(null===n){if(r[e]===t)return;n=rZ(V)}n[e]=t}function eC(e){let t=e.nextSibling;return null!==t&&t===V._blockCursorElement&&(t=t.nextSibling),t}function ek(e){let t=en.get(e);return void 0===t&&r(75,e),t}function eE(e){return{type:e}}let eT=eE("SELECTION_CHANGE_COMMAND"),eA=eE("SELECTION_INSERT_CLIPBOARD_NODES_COMMAND"),eN=eE("CLICK_COMMAND"),eF=eE("DELETE_CHARACTER_COMMAND"),eR=eE("INSERT_LINE_BREAK_COMMAND"),eM=eE("INSERT_PARAGRAPH_COMMAND"),eO=eE("CONTROLLED_TEXT_INSERTION_COMMAND"),eI=eE("PASTE_COMMAND"),eP=eE("REMOVE_TEXT_COMMAND"),eL=eE("DELETE_WORD_COMMAND"),eD=eE("DELETE_LINE_COMMAND"),eB=eE("FORMAT_TEXT_COMMAND"),eK=eE("UNDO_COMMAND"),ez=eE("REDO_COMMAND"),e$=eE("KEYDOWN_COMMAND"),eW=eE("KEY_ARROW_RIGHT_COMMAND"),ej=eE("MOVE_TO_END"),eJ=eE("KEY_ARROW_LEFT_COMMAND"),eH=eE("MOVE_TO_START"),eU=eE("KEY_ARROW_UP_COMMAND"),eq=eE("KEY_ARROW_DOWN_COMMAND"),eZ=eE("KEY_ENTER_COMMAND"),eV=eE("KEY_SPACE_COMMAND"),eG=eE("KEY_BACKSPACE_COMMAND"),eY=eE("KEY_ESCAPE_COMMAND"),eX=eE("KEY_DELETE_COMMAND"),eQ=eE("KEY_TAB_COMMAND"),e0=eE("INSERT_TAB_COMMAND"),e1=eE("INDENT_CONTENT_COMMAND"),e2=eE("OUTDENT_CONTENT_COMMAND"),e3=eE("DROP_COMMAND"),e4=eE("FORMAT_ELEMENT_COMMAND"),e5=eE("DRAGSTART_COMMAND"),e7=eE("DRAGOVER_COMMAND"),e6=eE("DRAGEND_COMMAND"),e8=eE("COPY_COMMAND"),e9=eE("CUT_COMMAND"),te=eE("SELECT_ALL_COMMAND"),tt=eE("CLEAR_EDITOR_COMMAND"),tn=eE("CLEAR_HISTORY_COMMAND"),tr=eE("CAN_REDO_COMMAND"),ti=eE("CAN_UNDO_COMMAND"),tl=eE("FOCUS_COMMAND"),to=eE("BLUR_COMMAND"),ts=eE("KEY_MODIFIER_COMMAND"),ta=Object.freeze({}),tu=[["keydown",function(e,t){if((tc=e.timeStamp,td=e.key,!(t.isComposing()||iu(t,e$,e)))&&null!=e.key){if(t_&&it(e))return n0(t,()=>{tN(t,tb)}),t_=!1,void(tb="");
1if(r8(e,"ArrowRight",{shiftKey:"any"}))iu(t,eW,e);else if(r8(e,"ArrowRight",r9))iu(t,ej,e);else if(r8(e,"ArrowLeft",{shiftKey:"any"}))iu(t,eJ,e);else if(r8(e,"ArrowLeft",r9))iu(t,eH,e);else if(r8(e,"ArrowUp",{altKey:"any",shiftKey:"any"}))iu(t,eU,e);else if(r8(e,"ArrowDown",{altKey:"any",shiftKey:"any"}))iu(t,eq,e);else if(r8(e,"Enter",{altKey:"any",ctrlKey:"any",metaKey:"any",shiftKey:!0}))ty=!0,iu(t,eZ,e);else if(" "===e.key)iu(t,eV,e);else if(o&&r8(e,"o",{ctrlKey:!0}))e.preventDefault(),ty=!0,iu(t,eR,!0);else if(r8(e,"Enter",{altKey:"any",ctrlKey:"any",metaKey:"any"}))ty=!1,iu(t,eZ,e);else if(r8(e,"Backspace",{shiftKey:"any"})||o&&r8(e,"h",{ctrlKey:!0}))it(e)?iu(t,eG,e):(e.preventDefault(),iu(t,eF,!0));else if("Escape"===e.key)iu(t,eY,e);else if(r8(e,"Delete",{})||o&&r8(e,"d",{ctrlKey:!0}))"Delete"!==e.key?(e.preventDefault(),iu(t,eF,!1)):iu(t,eX,e);else if(r8(e,"Backspace",ie))e.preventDefault(),iu(t,eL,!0);else if(r8(e,"Delete",ie))e.preventDefault(),iu(t,eL,!1);else if(o&&r8(e,"Backspace",{metaKey:!0}))e.preventDefault(),iu(t,eD,!0);else if(o&&(r8(e,"Delete",{metaKey:!0})||r8(e,"k",{ctrlKey:!0})))e.preventDefault(),iu(t,eD,!1);else if(r8(e,"b",r9))e.preventDefault(),iu(t,eB,"bold");else if(r8(e,"u",r9))e.preventDefault(),iu(t,eB,"underline");else if(r8(e,"i",r9))e.preventDefault(),iu(t,eB,"italic");else if(r8(e,"Tab",{shiftKey:"any"}))iu(t,eQ,e);else if(r8(e,"z",r9))e.preventDefault(),iu(t,eK,void 0);else if(o?r8(e,"z",{metaKey:!0,shiftKey:!0}):r8(e,"y",{ctrlKey:!0})||r8(e,"z",{ctrlKey:!0,shiftKey:!0}))e.preventDefault(),iu(t,ez,void 0);else{let n=t._editorState._selection;null===n||ni(n)?r8(e,"a",r9)&&(e.preventDefault(),iu(t,te,e)):r8(e,"c",r9)?(e.preventDefault(),iu(t,e8,e)):r8(e,"x",r9)?(e.preventDefault(),iu(t,e9,e)):r8(e,"a",r9)&&(e.preventDefault(),iu(t,te,e))}(e.ctrlKey||e.shiftKey||e.altKey||e.metaKey)&&iu(t,ts,e)}}],["pointerdown",function(e,t){let n=e.target,r=e.pointerType;iA(n)&&"touch"!==r&&"pen"!==r&&0===e.button&&n0(t,()=>{n6(rq(n))||(tm=!0)})}],["compositionstart",function(e,t){n0(t,()=>{let n=nS();if(ni(n)&&!t.isComposing()){let r=n.anchor,i=n.anchor.getNode();rW(r.key),(e.timeStamp<tc+30||"element"===r.type||!n.isCollapsed()||i.getFormat()!==n.format||t4(i)&&i.getStyle()!==n.style)&&iu(t,eO,y)}})}],["compositionend",function(e,t){s?tv=!0:!c&&(u||h)?(t_=!0,tb=e.data):n0(t,()=>{tN(t,e.data)})}],["input",function(e,t){e.stopPropagation(),n0(t,()=>{if(iT(e.target)&&n6(rq(e.target)))return;let n=nS(),r=e.data,i=tA(e);if(null!=r&&ni(n)&&tw(n,i,r,e.timeStamp,!1)){tv&&(tN(t,r),tv=!1);let i=n.anchor.getNode(),l=ik(iy(t));if(null===l)return;let o=n.isBackward(),d=o?n.anchor.offset:n.focus.offset,f=o?n.focus.offset:n.anchor.offset;a&&!n.isCollapsed()&&t4(i)&&null!==l.anchorNode&&i.getTextContent().slice(0,d)+r+i.getTextContent().slice(d+f)===r3(l.anchorNode)||iu(t,eO,r);let g=r.length;s&&g>1&&"insertCompositionText"===e.inputType&&!t.isComposing()&&(n.anchor.offset-=g),u||c||h||!t.isComposing()||(tc=0,rW(null))}else r4(!1,t,null!==r?r:void 0),tv&&(tN(t,r||void 0),tv=!1);nK(),I(nW())},{event:e}),tg=null}],["click",function(e,t){n0(t,()=>{let n=nS(),r=ik(iy(t)),i=nw();if(r){if(ni(n)){let t=n.anchor,l=t.getNode();if("element"===t.type&&0===t.offset&&n.isCollapsed()&&!n9(l)&&1===rG().getChildrenSize()&&l.getTopLevelElementOrThrow().isEmpty()&&null!==i&&n.is(i))r.removeAllRanges(),n.dirty=!0;else if(3===e.detail&&!n.isCollapsed()&&l!==n.focus.getNode()){let e=function(e,t){let n=e;for(;n!==rG()&&null!=n;){if(t(n))return n;n=n.getParent()}return null}(l,e=>n4(e)&&!e.isInline());n4(e)&&e.select(0)}}else if("touch"===e.pointerType||"pen"===e.pointerType){let n=r.anchorNode;(iT(n)||rP(n))&&rX(nx(i,r,t,e))}}iu(t,eN,e)})}],["cut",ta],["copy",ta],["dragstart",ta],["dragover",ta],["dragend",ta],["paste",ta],["focus",ta],["blur",ta],["drop",ta]];a&&tu.push(["beforeinput",(e,t)=>(function(e,t){let n=e.inputType,i=tA(e);"deleteCompositionText"===n||s&&ia(t)||"insertCompositionText"!==n&&n0(t,()=>{var l;let o=nS();if("deleteContentBackward"===n){if(null===o){let e=nw();if(!ni(e))return;rX(e.clone())}if(ni(o)){let n=o.anchor.key===o.focus.key;if(l=e.timeStamp,"MediaLast"===td&&l<tc+30&&t.isComposing()&&n){if(rW(null),tc=0,setTimeout(()=>{n0(t,()=>{rW(null)})},30),ni(o)){let e=o.anchor.getNode();e.markDirty(),t4(e)||r(142),tT(o,e)}}else{rW(null),e.preventDefault();let r=o.anchor.getNode(),i=r.getTextContent(),l=r.canInsertTextAfter(),s=0===o.anchor.offset&&o.focus.offset===i.length,a=g&&n&&!s&&l;if(a&&o.isCollapsed()&&(a=!n6(is(o.anchor,!0))),!a){iu(t,eF,!0);let e=nS();g&&ni(e)&&e.isCollapsed()&&(tx=e,setTimeout(()=>tx=null))}}return}}if(!ni(o))return;let s=e.data;null!==tg&&r4(!1,t,tg),o.dirty&&null===tg||!o.isCollapsed()||n9(o.anchor.getNode())||null===i||o.applyDOMRange(i),tg=null;let a=o.anchor,u=o.focus,d=a.getNode(),f=u.getNode();if("insertText"!==n&&"insertTranspose"!==n)switch(e.preventDefault(),n){case"insertFromYank":case"insertFromDrop":case"insertReplacementText":iu(t,eO,e);break;case"insertFromComposition":rW(null),iu(t,eO,e);break;case"insertLineBreak":rW(null),iu(t,eR,!1);break;case"insertParagraph":rW(null),ty&&!c?(ty=!1,iu(t,eR,!1)):iu(t,eM,void 0);break;case"insertFromPaste":case"insertFromPasteAsQuotation":iu(t,eI,e);break;case"deleteByComposition":(d!==f||n4(d)||n4(f)||!rO(d)||!rO(f))&&iu(t,eP,e);break;case"deleteByDrag":case"deleteByCut":iu(t,eP,e);break;case"deleteContent":iu(t,eF,!1);break;case"deleteWordBackward":iu(t,eL,!0);break;
1case"deleteWordForward":iu(t,eL,!1);break;case"deleteHardLineBackward":case"deleteSoftLineBackward":iu(t,eD,!0);break;case"deleteContentForward":case"deleteHardLineForward":case"deleteSoftLineForward":iu(t,eD,!1);break;case"formatStrikeThrough":iu(t,eB,"strikethrough");break;case"formatBold":iu(t,eB,"bold");break;case"formatItalic":iu(t,eB,"italic");break;case"formatUnderline":iu(t,eB,"underline");break;case"historyUndo":iu(t,eK,void 0);break;case"historyRedo":iu(t,ez,void 0)}else{if("\n"===s)e.preventDefault(),iu(t,eR,!1);else if("\n\n"===s)e.preventDefault(),iu(t,eM,void 0);else if(null==s&&e.dataTransfer){let t=e.dataTransfer.getData("text/plain");e.preventDefault(),o.insertRawText(t)}else null!=s&&tw(o,i,s,e.timeStamp,!0)?(e.preventDefault(),iu(t,eO,s)):tg=s;tf=e.timeStamp}})})(e,t)]);let tc=0,td=null,tf=0,tg=null,th=new WeakMap,tp=!1,tm=!1,ty=!1,tv=!1,t_=!1,tb="",tx=null,tS=[0,"",0,"root",0];function tw(e,t,n,r,i){let l=e.anchor,o=e.focus,s=l.getNode(),u=nW(),c=ik(iy(u)),d=null!==c?c.anchorNode:null,f=l.key,g=u.getElementByKey(f),h=n.length;return f!==o.key||!t4(s)||(!i&&(!a||tf<r+50)||s.isDirty()&&h<2||r0(n))&&l.offset!==o.offset&&!s.isComposing()||rI(s)||s.isDirty()&&h>1||(i||!a)&&null!==g&&!s.isComposing()&&d!==rL(g)||null!==c&&null!==t&&(!t.collapsed||t.startContainer!==c.anchorNode||t.startOffset!==c.anchorOffset)||s.getFormat()!==e.format||s.getStyle()!==e.style||function(e,t){if(t.isSegmented())return!0;if(!e.isCollapsed())return!1;let n=e.anchor.offset,r=t.getParentOrThrow(),i=rO(t);return 0===n?!t.canInsertTextBefore()||!r.canInsertTextBefore()&&!t.isComposing()||i||function(e){let t=e.getPreviousSibling();return(t4(t)||n4(t)&&t.isInline())&&!t.canInsertTextAfter()}(t):n===t.getTextContentSize()&&(!t.canInsertTextAfter()||!r.canInsertTextAfter()&&!t.isComposing()||i)}(e,s)}function tC(e,t){return rP(e)&&null!==e.nodeValue&&0!==t&&t!==e.nodeValue.length}function tk(e,t,n){let{anchorNode:i,anchorOffset:l,focusNode:o,focusOffset:s}=e;tp&&(tp=!1,tC(i,l)&&tC(o,s)&&!tx)||n0(t,()=>{if(!n)return void rX(null);if(!rN(t,i,o))return;let a=nS();if(tx&&ni(a)&&a.isCollapsed()){let e=a.anchor,t=tx.anchor;(e.key===t.key&&e.offset===t.offset+1||1===e.offset&&t.getNode().is(e.getNode().getPreviousSibling()))&&rX(a=tx.clone())}if(tx=null,ni(a)){let n=a.anchor,i=n.getNode();if(a.isCollapsed()){"Range"===e.type&&e.anchorNode===e.focusNode&&(a.dirty=!0);let l=iy(t).event,o=l?l.timeStamp:performance.now(),[s,c,d,f,g]=tS,h=rG(),p=!1===t.isComposing()&&""===h.getTextContent();if(o<g+200&&n.offset===d&&n.key===f)tE(a,s,c);else if("text"===n.type)t4(i)||r(141),tT(a,i);else if("element"===n.type&&!p){var u;n4(i)||r(259);let e=n.getNode();e.isEmpty()?tE(a,(u=e).getTextFormat(),u.getTextStyle()):tE(a,0,"")}}else{let e=n.key,t=a.focus.key,r=a.getNodes(),i=r.length,o=a.isBackward(),u=o?s:l,c=o?l:s,d=o?t:e,f=o?e:t,g=2047,h=!1;for(let e=0;e<i;e++){let t=r[e],n=t.getTextContentSize();if(t4(t)&&0!==n&&(0!==e||t.__key!==d||u!==n)&&(e!==i-1||t.__key!==f||0!==c)&&(h=!0,0==(g&=t.getFormat())))break}a.format=h?g:0}}iu(t,eT,void 0)})}function tE(e,t,n){e.format===t&&e.style===n||(e.format=t,e.style=n,e.dirty=!0)}function tT(e,t){tE(e,t.getFormat(),t.getStyle())}function tA(e){if(!e.getTargetRanges)return null;let t=e.getTargetRanges();return 0===t.length?null:t[0]}function tN(e,t){let n=e._compositionKey;if(rW(null),null!==n&&null!=t){if(""===t){let t=rJ(n),r=rL(e.getElementByKey(n));return void(null!==r&&null!==r.nodeValue&&t4(t)&&r5(t,r.nodeValue,null,null,!0))}if("\n"===t[t.length-1]){let t=nS();if(ni(t)){let n=t.focus;return t.anchor.set(n.key,n.offset,n.type),void iu(e,eZ,null)}}}r4(!0,e,t)}function tF(e){let t=e.__lexicalEventHandles;return void 0===t&&(e.__lexicalEventHandles=t=[]),t}let tR=new Map;function tM(e){let t=function(e){let t=im(e);return t?t.getSelection():null}(e.target);if(null===t)return;let n=rR(t.anchorNode);if(null===n)return;tm&&(tm=!1,n0(n,()=>{let r=nw(),i=t.anchorNode;(iT(i)||rP(i))&&rX(nx(r,t,n,e))}));let r=r1(n),i=r[r.length-1],l=i._key,o=tR.get(l),s=o||i;s!==n&&tk(t,s,!1),tk(t,n,!0),n!==i?tR.set(l,n):o&&tR.delete(l)}function tO(e){e._lexicalHandled=!0}function tI(e){return!0===e._lexicalHandled}function tP(e,t,n){nK();let r=e.__key,i=e.getParent();if(null===i)return;let l=function(e){let t=nS();if(!ni(t)||!n4(e))return t;let{anchor:n,focus:r}=t,i=n.getNode(),l=r.getNode();return ip(i,e)&&n.set(e.__key,0,"element"),ip(l,e)&&r.set(e.__key,0,"element"),t}(e),o=!1;if(ni(l)&&t){let t=l.anchor,n=l.focus;t.key===r&&(nE(t,e,i,e.getPreviousSibling(),e.getNextSibling()),o=!0),n.key===r&&(nE(n,e,i,e.getPreviousSibling(),e.getNextSibling()),o=!0)}else no(l)&&t&&e.isSelected()&&e.selectPrevious();if(ni(l)&&t&&!o){let t=e.getIndexWithinParent();rz(e),nC(l,i,t,-1)}else rz(e);n||i_(i)||i.canBeEmpty()||!i.isEmpty()||tP(i,t),t&&l&&n9(i)&&i.isEmpty()&&i.selectEnd()}function tL(e){return e}class tD{static getType(){let{ownNodeType:e}=iW(this);return void 0===e&&r(64,this.name),e}static clone(e){r(65,this.name)}$config(){return{}}config(e,t){let n=t.extends||Object.getPrototypeOf(this.constructor);return Object.assign(t,{extends:n,type:e}),{[e]:t}}afterCloneFrom(e){this.__key===e.__key?(this.__parent=e.__parent,this.__next=e.__next,this.__prev=e.__prev,this.__state=e.__state):e.__state&&(this.__state=e.__state.getWritable(this))}constructor(e){this.__type=this.constructor.getType(),this.__parent=null,this.__prev=null,this.__next=null,Object.defineProperty(this,"__state",{configurable:!0,enumerable:!1,value:void 0,writable:!0}),rK(this,e)}getType(){return this.__type}isInline(){r(137,this.constructor.name)}isAttached(){let e=this.__key;for(;null!==e;){if("root"===e)return!0;let t=rJ(e);if(null===t)break;e=t.__parent}return!1}isSelected(e){let t=e||nS();if(null==t)return!1;let n=t.getNodes().some(e=>e.__key===this.__key);if(t4(this))return n;if(ni(t)&&"element"===t.anchor.type&&"element"===t.focus.type){if(t.isCollapsed())return!1;let e=this.getParent();if(n6(this)&&this.isInline()&&e){let n=t.isBackward()?t.focus:t.anchor;if(e.is(n.getNode())&&n.offset===e.getChildrenSize()&&this.is(e.getLastChild()))return!1}}return n}getKey(){return this.__key}getIndexWithinParent(){let e=this.getParent();if(null===e)return -1;let t=e.getFirstChild(),n=0;for(;null!==t;){if(this.is(t))return n;n++,t=t.getNextSibling()}return -1}getParent(){let e=this.getLatest().__parent;return null===e?null:rJ(e)}getParentOrThrow(){let e=this.getParent();return null===e&&r(66,this.__key),e}getTopLevelElement(){let e=this;for(;null!==e;){let t=e.getParent();if(i_(t))return n4(e)||e===this&&n6(e)||r(194),e;e=t}return null}getTopLevelElementOrThrow(){let e=this.getTopLevelElement();return null===e&&r(67,this.__key),e}getParents(){let e=[],t=this.getParent();for(;null!==t;)e.push(t),t=t.getParent();return e}getParentKeys(){let e=[],t=this.getParent();for(;null!==t;)e.push(t.__key),t=t.getParent();return e}getPreviousSibling(){let e=this.getLatest().__prev;return null===e?null:rJ(e)}getPreviousSiblings(){let e=[],t=this.getParent();if(null===t)return e;let n=t.getFirstChild();for(;null!==n&&!n.is(this);)e.push(n),n=n.getNextSibling();return e}getNextSibling(){let e=this.getLatest().__next;return null===e?null:rJ(e)}getNextSiblings(){let e=[],t=this.getNextSibling();for(;null!==t;)e.push(t),t=t.getNextSibling();return e}getCommonAncestor(e){let t=n4(this)?this:this.getParent(),n=n4(e)?e:e.getParent(),r=t&&n?la(t,n):null;return r?r.commonAncestor:null}is(e){return null!=e&&this.__key===e.__key}isBefore(e){let t=la(this,e);return null!==t&&("descendant"===t.type||("branch"===t.type?-1===lo(t):("same"!==t.type&&"ancestor"!==t.type&&r(279),!1)))}isParentOf(e){let t=la(this,e);return null!==t&&"ancestor"===t.type}getNodesBetween(e){let t=this.isBefore(e),n=[],i=new Set,l=this;for(;null!==l;){let o=l.__key;
1if(i.has(o)||(i.add(o),n.push(l)),l===e)break;let s=n4(l)?t?l.getFirstChild():l.getLastChild():null;if(null!==s){l=s;continue}let a=t?l.getNextSibling():l.getPreviousSibling();if(null!==a){l=a;continue}let u=l.getParentOrThrow();if(i.has(u.__key)||n.push(u),u===e)break;let c=null,d=u;do{if(null===d&&r(68),c=t?d.getNextSibling():d.getPreviousSibling(),null===(d=d.getParent()))break;null!==c||i.has(d.__key)||n.push(d)}while(null===c);l=c}return t||n.reverse(),n}isDirty(){let e=nW()._dirtyLeaves;return null!==e&&e.has(this.__key)}getLatest(){let e=rJ(this.__key);return null===e&&r(113),e}getWritable(){nK();let e=n$(),t=nW(),n=e._nodeMap,r=this.__key,i=this.getLatest(),l=t._cloneNotNeeded,o=nS();if(null!==o&&o.setCachedNodes(null),l.has(r))return r$(i),i;let s=iB(i);return l.add(r),r$(s),n.set(r,s),s}getTextContent(){return""}getTextContentSize(){return this.getTextContent().length}createDOM(e,t){r(70)}updateDOM(e,t,n){r(71)}exportDOM(e){return{element:this.createDOM(e._config,e)}}exportJSON(){let e=this.__state?this.__state.toJSON():void 0;return{type:this.__type,version:1,...e}}static importJSON(e){r(18,this.name)}updateFromJSON(e){return function(e,t){let n=e.getWritable(),r=t.$,i=r;for(let e of B(n).flatKeys)e in t&&(void 0!==i&&i!==r||(i={...r}),i[e]=t[e]);return(n.__state||i)&&(function(e){let t=e.getWritable(),n=t.__state?t.__state.getWritable(t):new D(t,B(t));return t.__state=n,n})(e).updateFromJSON(i),n}(this,e)}static transform(){return null}remove(e){tP(this,!0,e)}replace(e,t){nK();let n=nS();null!==n&&(n=n.clone()),iS(this,e);let i=this.getLatest(),l=this.__key,o=e.__key,s=e.getWritable(),a=this.getParentOrThrow().getWritable(),u=a.__size;rz(s);let c=i.getPreviousSibling(),d=i.getNextSibling(),f=i.__prev,g=i.__next,h=i.__parent;if((tP(i,!1,!0),null===c)?a.__first=o:c.getWritable().__next=o,(s.__prev=f,null===d)?a.__last=o:d.getWritable().__prev=o,s.__next=g,s.__parent=h,a.__size=u,t&&(n4(this)&&n4(s)||r(139),this.getChildren().forEac
1h(e=>{s.append(e)})),ni(n)){rX(n);let e=n.anchor,t=n.focus;e.key===l&&nn(e,s),t.key===l&&nn(t,s)}return rj()===l&&rW(o),s}insertAfter(e,t=!0){nK(),iS(this,e);let n=this.getWritable(),r=e.getWritable(),i=r.getParent(),l=nS(),o=!1,s=!1;if(null!==i){let t=e.getIndexWithinParent();if(rz(r),ni(l)){let e=i.__key,n=l.anchor,r=l.focus;o="element"===n.type&&n.key===e&&n.offset===t+1,s="element"===r.type&&r.key===e&&r.offset===t+1}}let a=this.getNextSibling(),u=this.getParentOrThrow().getWritable(),c=r.__key,d=n.__next;if(null===a?u.__last=c:a.getWritable().__prev=c,u.__size++,n.__next=c,r.__next=d,r.__prev=n.__key,r.__parent=n.__parent,t&&ni(l)){let e=this.getIndexWithinParent();nC(l,u,e+1);let t=u.__key;o&&l.anchor.set(t,e+2,"element"),s&&l.focus.set(t,e+2,"element")}return e}insertBefore(e,t=!0){nK(),iS(this,e);let n=this.getWritable(),r=e.getWritable(),i=r.__key;rz(r);let l=this.getPreviousSibling(),o=this.getParentOrThrow().getWritable(),s=n.__prev,a=this.getIndexWithinParent();null===l?o.__first=i:l.getWritable().__next=i,o.__size++,n.__prev=i,r.__prev=s,r.__next=n.__key,r.__parent=n.__parent;let u=nS();return t&&ni(u)&&nC(u,this.getParentOrThrow(),a),e}isParentRequired(){return!1}createParentElementNode(){return rg()}selectStart(){return this.selectPrevious()}selectEnd(){return this.selectNext(0,0)}selectPrevious(e,t){nK();let n=this.getPreviousSibling(),r=this.getParentOrThrow();if(null===n)return r.select(0,0);if(n4(n))return n.select();if(!t4(n)){let e=n.getIndexWithinParent()+1;return r.select(e,e)}return n.select(e,t)}selectNext(e,t){nK();let n=this.getNextSibling(),r=this.getParentOrThrow();if(null===n)return r.select();if(n4(n))return n.select(0,0);if(!t4(n)){let e=n.getIndexWithinParent();return r.select(e,e)}return n.select(e,t)}markDirty(){this.getWritable()}reconcileObservedMutation(e,t){this.markDirty()}}class tB extends tD{static getType(){return"linebreak"}static clone(e){return new tB(e.__key)}constructor(e){super(e)}getTextContent(){return"\n"}createDOM(){return document.createElement("br")}updateDOM(){return!1}isInline(){return!0}static importDOM(){return{br:e=>(function(e){let t=e.parentElement;if(null!==t&&iR(t)){let n=t.firstChild;if(n===e||n.nextSibling===e&&tW(n)){let n=t.lastChild;if(n===e||n.previousSibling===e&&tW(n))return!0}}return!1})(e)||function(e){let t=e.parentElement;if(null!==t&&iR(t)){let n=t.firstChild;if(n===e||n.nextSibling===e&&tW(n))return!1;let r=t.lastChild;if(r===e||r.previousSibling===e&&tW(r))return!0}return!1}(e)?null:{conversion:tK,priority:0}}}static importJSON(e){return tz().updateFromJSON(e)}}function tK(e){return{node:tz()}}function tz(){return ix(new tB)}function t$(e){return e instanceof tB}function tW(e){return rP(e)&&/^( |\t|\r?\n)+$/.test(e.textContent||"")}function tj(e,t){return 16&t?"code":128&t?"mark":32&t?"sub":64&t?"sup":null}function tJ(e,t){return 1&t?"strong":2&t?"em":"span"}function tH(e,t,n,r,i){let l=r.classList,o=ii(i,"base");void 0!==o&&l.add(...o);let s=!1,a=8&t&&4&t;for(let e in void 0!==(o=ii(i,"underlineStrikethrough"))&&(8&n&&4&n?(s=!0,a||l.add(...o)):a&&l.remove(...o)),S){let r=S[e];if(void 0!==(o=ii(i,e)))if(n&r){if(s&&("underline"===e||"strikethrough"===e)){t&r&&l.remove(...o);continue}t&r&&(!a||"underline"!==e)&&"strikethrough"!==e||l.add(...o)}else t&r&&l.remove(...o)}}function tU(e,t,n){let r=t.firstChild,i=n.isComposing(),l=e+(i?m:"");if(null==r)t.textContent=l;else{let e=r.nodeValue;if(e!==l)if(i||s){let[t,n,i]=function(e,t){let n=e.length,r=t.length,i=0,l=0;for(;i<n&&i<r&&e[i]===t[i];)i++;for(;l+i<n&&l+i<r&&e[n-l-1]===t[r-l-1];)l++;return[i,n-i-l,t.slice(i,r-l)]}(e,l);0!==n&&r.deleteData(t,n),r.insertData(t,i)}else r.nodeValue=l}}function tq(e,t,n,r,i,l){tU(i,e,t);let o=l.theme.text;void 0!==o&&tH(0,0,r,e,o)}function tZ(e,t){let n=document.createElement(t);return n.appendChild(e),n}class tV extends tD{static getType(){return"text"}static clone(e){return new tV(e.__text,e.__key)}afterCloneFrom(e){super.afterCloneFrom(e),this.__text=e.__text,this.__format=e.__format,this.__style=e.__style,this.__mode=e.__mode,this.__detail=e.__detail}constructor(e="",t){super(t),this.__text=e,this.__format=0,this.__style="",this.__mode=0,this.__detail=0}getFormat(){return this.getLatest().__format}getDetail(){return this.getLatest().__detail}getMode(){return T[this.getLatest().__mode]}getStyle(){return this.getLatest().__style}isToken(){return 1===this.getLatest().__mode}isComposing(){return this.__key===rj()}isSegmented(){return 2===this.getLatest().__mode}isDirectionless(){return!!(1&this.getLatest().__detail)}isUnmergeable(){return!!(2&this.getLatest().__detail)}hasFormat(e){let t=S[e];return!!(this.getFormat()&t)}isSimpleText(){return"text"===this.__type&&0===this.__mode}getTextContent(){return this.getLatest().__text}getFormatFlags(e,t){return rD(this.getLatest().__format,e,t)}canHaveFormat(){return!0}isInline(){return!0}createDOM(e,t){let n=this.__format,r=tj(0,n),i=tJ(0,n),l=null===r?i:r,o=document.createElement(l),s=o;
1this.hasFormat("code")&&o.setAttribute("spellcheck","false"),null!==r&&(s=document.createElement(i),o.appendChild(s)),tq(s,this,0,n,this.__text,e);let a=this.__style;return""!==a&&(o.style.cssText=a),o}updateDOM(e,t,n){let i=this.__text,l=e.__format,o=this.__format,s=tj(0,l),a=tj(0,o),u=tJ(0,l),c=tJ(0,o);if((null===s?u:s)!==(null===a?c:a))return!0;if(s===a&&u!==c){let e=t.firstChild;null==e&&r(48);let l=document.createElement(c);return tq(l,this,0,o,i,n),t.replaceChild(l,e),!1}let d=t;null!==a&&null!==s&&null==(d=t.firstChild)&&r(49),tU(i,d,this);let f=n.theme.text;void 0!==f&&l!==o&&tH(0,l,o,d,f);let g=e.__style,h=this.__style;return g!==h&&(t.style.cssText=h),!1}static importDOM(){return{"#text":()=>({conversion:tQ,priority:0}),b:()=>({conversion:tY,priority:0}),code:()=>({conversion:t2,priority:0}),em:()=>({conversion:t2,priority:0}),i:()=>({conversion:t2,priority:0}),mark:()=>({conversion:t2,priority:0}),s:()=>({conversion:t2,priority:0}),span:()=>({conversion:tG,priority:0}),strong:()=>({conversion:t2,priority:0}),sub:()=>({conversion:t2,priority:0}),sup:()=>({conversion:t2,priority:0}),u:()=>({conversion:t2,priority:0})}}static importJSON(e){return t3().updateFromJSON(e)}updateFromJSON(e){return super.updateFromJSON(e).setTextContent(e.text).setFormat(e.format).setDetail(e.detail).setMode(e.mode).setStyle(e.style)}
1exportDOM(e){let{element:t}=super.exportDOM(e);return iT(t)||r(132),t.style.whiteSpace="pre-wrap",this.hasFormat("lowercase")?t.style.textTransform="lowercase":this.hasFormat("uppercase")?t.style.textTransform="uppercase":this.hasFormat("capitalize")&&(t.style.textTransform="capitalize"),this.hasFormat("bold")&&(t=tZ(t,"b")),this.hasFormat("italic")&&(t=tZ(t,"i")),this.hasFormat("strikethrough")&&(t=tZ(t,"s")),this.hasFormat("underline")&&(t=tZ(t,"u")),{element:t}}exportJSON(){return{detail:this.getDetail(),format:this.getFormat(),mode:this.getMode(),style:this.getStyle(),text:this.getTextContent(),...super.exportJSON()}}selectionTransform(e,t){}setFormat(e){let t=this.getWritable();return t.__format="string"==typeof e?S[e]:e,t}setDetail(e){let t=this.getWritable();return t.__detail="string"==typeof e?w[e]:e,t}setStyle(e){let t=this.getWritable();return t.__style=e,t}toggleFormat(e){let t=rD(this.getFormat(),e,null);return this.setFormat(t)}toggleDirectionless(){let e=this.getWritable();return e.__detail^=1,e}toggleUnmergeable(){let e=this.getWritable();return e.__detail^=2,e}setMode(e){let t=E[e];if(this.__mode===t)return this;let n=this.getWritable();return n.__mode=t,n}setTextContent(e){if(this.__text===e)return this;let t=this.getWritable();return t.__text=e,t}select(e,t){nK();let n=e,r=t,i=nS(),l=this.getTextContent(),o=this.__key;if("string"==typeof l){let e=l.length;void 0===n&&(n=e),void 0===r&&(r=e)}else n=0,r=0;if(!ni(i))return ny(o,n,o,r,"text","text");{let e=rj();e!==i.anchor.key&&e!==i.focus.key||rW(o),i.setTextNodeRange(this,n,this,r)}return i}selectStart(){return this.select(0,0)}selectEnd(){let e=this.getTextContentSize();return this.select(e,e)}spliceText(e,t,n,r){let i=this.getWritable(),l=i.__text,o=n.length,s=e;s<0&&(s=o+s)<0&&(s=0);let a=nS();if(r&&ni(a)){let t=e+o;a.setTextNodeRange(i,t,i,t)}return i.__text=l.slice(0,s)+n+l.slice(s+t),i}canInsertTextBefore(){return!0}canInsertTextAfter(){return!0}splitText(...e){let t;nK();let n=this.getLatest(),r=n.getTextContent();if(""===r)return[];let i=n.__key,l=rj(),o=r.length;e.sort((e,t)=>e-t),e.push(o);let s=[],a=e.length;for(let t=0,n=0;t<o&&n<=a;n++){let i=e[n];i>t&&(s.push(r.slice(t,i)),t=i)}let u=s.length;if(1===u)return[n];let c=s[0],d=n.getParent(),f=n.getFormat(),g=n.getStyle(),h=n.__detail,p=!1,m=null,y=null,v=nS();if(ni(v)){let[e,t]=v.isBackward()?[v.focus,v.anchor]:[v.anchor,v.focus];"text"===e.type&&e.key===i&&(m=e),"text"===t.type&&t.key===i&&(y=t)}n.isSegmented()?((t=t3(c)).__format=f,t.__style=g,t.__detail=h,t.__state=W(n,t),p=!0):t=n.setTextContent(c);let _=[t];for(let e=1;e<u;e++){let t=t3(s[e]);t.__format=f,t.__style=g,t.__detail=h,t.__state=W(n,t);let r=t.__key;l===i&&rW(r),_.push(t)}let b=m?m.offset:null,x=y?y.offset:null,S=0;for(let e of _){if(!m&&!y)break;let t=S+e.getTextContentSize();if(null!==m&&null!==b&&b<=t&&b>=S&&(m.set(e.getKey(),b-S,"text"),b<t&&(m=null)),null!==y&&null!==x&&x<=t&&x>=S){y.set(e.getKey(),x-S,"text");break}S=t}if(null!==d){let e=this.getPreviousSibling(),t=this.getNextSibling();null!==e&&r$(e),null!==t&&r$(t);let n=d.getWritable(),r=this.getIndexWithinParent();p?(n.splice(r,0,_),this.remove()):n.splice(r,1,_),ni(v)&&nC(v,d,r,u-1)}return _}mergeWithSibling(e){let t=e===this.getPreviousSibling();t||e===this.getNextSibling()||r(50);let n=this.__key,i=e.__key,l=this.__text,o=l.length;rj()===i&&rW(n);let s=nS();if(ni(s)){let r=s.anchor,l=s.focus;null!==r&&r.key===i&&nT(r,t,n,e,o),null!==l&&l.key===i&&nT(l,t,n,e,o)}let a=e.__text,u=t?a+l:l+a;this.setTextContent(u);let c=this.getWritable();return e.remove(),c}isTextEntity(){return!1}}function tG(e){return{forChild:t5(e.style),node:null}}function tY(e){let t="normal"===e.style.fontWeight;return{forChild:t5(e.style,t?void 0:"bold"),node:null}}let tX=new WeakMap;function tQ(e){null===e.parentElement&&r(129);let t=e.textContent||"";if(null!==function(e){let t,n=e.parentNode,r=[e];for(;null!==n&&void 0===(t=tX.get(n))&&!function(e){if(!iT(e))return!1;if("PRE"===e.nodeName)return!0;let t=e.style.whiteSpace;return"string"==typeof t&&t.startsWith("pre")}(n);)r.push(n),n=n.parentNode;let i=void 0===t?n:t;for(let e=0;e<r.length;e++)tX.set(r[e],i);return i}(e)){let e=t.split(/(\r?\n|\t)/),n=[],r=e.length;for(let t=0;t<r;t++){let r=e[t];"\n"===r||"\r\n"===r?n.push(tz()):"	"===r?n.push(t6()):""!==r&&n.push(t3(r))}return{node:n}}if(""===(t=t.replace(/\r/g,"").replace(/[ \t\n]+/g," ")))return{node:null};if(" "===t[0]){let n=e,r=!0;for(;null!==n&&null!==(n=t0(n,!1));){let e=n.textContent||"";if(e.length>
10){/[ \t\n]$/.test(e)&&(t=t.slice(1)),r=!1;break}}r&&(t=t.slice(1))}if(" "===t[t.length-1]){let n=e,r=!0;for(;null!==n&&null!==(n=t0(n,!0));)if((n.textContent||"").replace(/^( |\t|\r?\n)+/,"").length>0){r=!1;break}r&&(t=t.slice(0,t.length-1))}return""===t?{node:null}:{node:t3(t)}}function t0(e,t){let n=e;for(;;){let e;for(;null===(e=t?n.nextSibling:n.previousSibling);){let e=n.parentElement;if(null===e)return null;n=e}if(iT(n=e)){let e=n.style.display;if(""===e&&!iF(n)||""!==e&&!e.startsWith("inline"))return null}let r=n;for(;null!==(r=t?n.firstChild:n.lastChild);)n=r;if(rP(n))return n;if("BR"===n.nodeName)return null}}let t1={code:"code",em:"italic",i:"italic",mark:"highlight",s:"strikethrough",strong:"bold",sub:"subscript",sup:"superscript",u:"underline"};function t2(e){let t=t1[e.nodeName.toLowerCase()];return void 0===t?{node:null}:{forChild:t5(e.style,t),node:null}}function t3(e=""){return ix(new tV(e))}function t4(e){return e instanceof tV}function t5(e,t){let n=e.fontWeight,r=e.textDecoration.split(" "),i="700"===n||"bold"===n,l=r.includes("line-through"),o="italic"===e.fontStyle,s=r.includes("underline"),a=e.verticalAlign;return e=>(t4(e)&&(i&&!e.hasFormat("bold")&&e.toggleFormat("bold"),l&&!e.hasFormat("strikethrough")&&e.toggleFormat("strikethrough"),o&&!e.hasFormat("italic")&&e.toggleFormat("italic"),s&&!e.hasFormat("underline")&&e.toggleFormat("underline"),"sub"!==a||e.hasFormat("subscript")||e.toggleFormat("subscript"),"super"!==a||e.hasFormat("superscript")||e.toggleFormat("superscript"),t&&!e.hasFormat(t)&&e.toggleFormat(t)),e)}class t7 extends tV{static getType(){return"tab"}static clone(e){return new t7(e.__key)}constructor(e){super("	",e),this.__detail=2}static importDOM(){return null}createDOM(e){let t=super.createDOM(e),n=ii(e.theme,"tab");return void 0!==n&&t.classList.add(...n),t}static importJSON(e){return t6().updateFromJSON(e)}setTextContent(e){return"	"!==e&&""!==e&&r(126),super.setTextContent("	")}spliceText(e,t,n,i){return""===n&&0===t||"	"===n&&1===t||r(286),this}setDetail(e){return 2!==e&&r(127),this}setMode(e){return"normal"!==e&&r(128),this}canInsertTextBefore(){return!1}canInsertTextAfter(){return!1}}function t6(){return ix(new t7)}function t8(e){return e instanceof t7}class t9{constructor(e,t,n){this._selection=null,this.key=e,this.offset=t,this.type=n}is(e){return this.key===e.key&&this.offset===e.offset&&this.type===e.type}isBefore(e){return this.key===e.key?this.offset<e.offset:0>ll(ly(lu(this,"next")),ly(lu(e,"next")))}getNode(){let e=rJ(this.key);return null===e&&r(20),e}set(e,t,n,r){let i=this._selection,l=this.key;r&&this.key===e&&this.offset===t&&this.type===n||(this.key=e,this.offset=t,this.type=n,nB()||(rj()===l&&rW(e),null!==i&&(i.setCachedNodes(null),i.dirty=!0)))}}function ne(e,t,n){return new t9(e,t,n)}function nt(e,t){let n=t.__key,r=e.offset,i="element";if(t4(t)){i="text";let e=t.getTextContentSize();r>e&&(r=e)}else if(!n4(t)){let e=t.getNextSibling();if(t4(e))n=e.__key,r=0,i="text";else{let e=t.getParent();e&&(n=e.__key,r=t.getIndexWithinParent()+1)}}e.set(n,r,i)}function nn(e,t){if(n4(t)){let n=t.getLastDescendant();n4(n)||t4(n)?nt(e,n):nt(e,t)}else nt(e,t)}class nr{constructor(e){this._cachedNodes=null,this._nodes=e,this.dirty=!1}getCachedNodes(){return this._cachedNodes}setCachedNodes(e){this._cachedNodes=e}is(e){if(!no(e))return!1;let t=this._nodes,n=e._nodes;return t.size===n.size&&Array.from(t).every(e=>n.has(e))}isCollapsed(){return!1}isBackward(){return!1}getStartEndPoints(){return null}add(e){this.dirty=!0,this._nodes.add(e),this._cachedNodes=null}delete(e){this.dirty=!0,this._nodes.delete(e),this._cachedNodes=null}clear(){this.dirty=!0,this._nodes.clear(),this._cachedNodes=null}has(e){return this._nodes.has(e)}clone(){return new nr(new Set(this._nodes))}extract(){return this.getNodes()}insertRawText(e){}insertText(){}insertNodes(e){let t,n=this.getNodes(),r=n.length,i=n[r-1];if(t4(i))t=i.select();else{let e=i.getIndexWithinParent()+1;t=i.getParentOrThrow().select(e,e)}t.insertNodes(e);for(let e=0;e<r;e++)n[e].remove()}getNodes(){let e=this._cachedNodes;if(null!==e)return e;let t=this._nodes,n=[];for(let e of t){let t=rJ(e);null!==t&&n.push(t)}return nB()||(this._cachedNodes=n),n}getTextContent(){let e=this.getNodes(),t="";for(let n=0;n<e.length;n++)t+=e[n].getTextContent();return t}deleteNodes(){let e=this.getNodes();if((nS()||nw())===this&&e[0]){let t=i3(e[0],"next");ld(lr(t,t))}for(let t of e)t.remove()}}function ni(e){return e instanceof nl}class nl{constructor(e,t,n,r){this.anchor=e,this.focus=t,e._selection=this,t._selection=this,this._cachedNodes=null,this.format=n,this.style=r,this.dirty=!1}getCachedNodes(){return this._cachedNodes}setCachedNodes(e){this._cachedNodes=e}is(e){return!!ni(e)&&this.anchor.is(e.anchor)&&this.focus.is(e.focus)&&this.format===e.format&&this.style===e.style}isCollapsed(){return this.anchor.is(this.focus)}getNodes(){let e=this._cachedNodes;if(null!==e)return e;let t=function(e){let t=[],[n,r]=e.getTextSlices();
1n&&t.push(n.caret.origin);let i=new Set,l=new Set;for(let n of e)if(iQ(n)){let{origin:e}=n;0===t.length?i.add(e):(l.add(e),t.push(e))}else{let{origin:e}=n;n4(e)&&l.has(e)||t.push(e)}if(r&&t.push(r.caret.origin),iX(e.focus)&&n4(e.focus.origin)&&null===e.focus.getNodeAtCaret())for(let n=i7(e.focus.origin,"previous");iQ(n)&&i.has(n.origin)&&!n.origin.isEmpty()&&n.origin.is(t[t.length-1]);n=i8(n))i.delete(n.origin),t.pop();for(;t.length>1;){let e=t[t.length-1];if(!n4(e)||l.has(e)||e.isEmpty()||i.has(e))break;t.pop()}if(0===t.length&&e.isCollapsed()){let n=ly(e.anchor),r=ly(e.anchor.getFlipped()),i=e=>iY(e)?e.origin:e.getNodeAtCaret(),l=i(n)||i(r)||(e.anchor.getNodeAtCaret()?n.origin:r.origin);t.push(l)}return t}(lb(lg(this),"next"));return nB()||(this._cachedNodes=t),t}setTextNodeRange(e,t,n,r){this.anchor.set(e.__key,t,"text"),this.focus.set(n.__key,r,"text")}getTextContent(){let e=this.getNodes();if(0===e.length)return"";let t=e[0],n=e[e.length-1],r=this.anchor,i=this.focus,l=r.isBefore(i),[o,s]=na(this),a="",u=!0;for(let c=0;c<e.length;c++){let d=e[c];if(n4(d)&&!d.isInline())u||(a+="\n"),u=!d.isEmpty();else if(u=!1,t4(d)){let e=d.getTextContent();d===t?d===n?"element"===r.type&&"element"===i.type&&i.offset!==r.offset||(e=o<s?e.slice(o,s):e.slice(s,o)):e=l?e.slice(o):e.slice(s):d===n&&(e=l?e.slice(0,s):e.slice(0,o)),a+=e}else!n6(d)&&!t$(d)||d===n&&this.isCollapsed()||(a+=d.getTextContent())}return a}applyDOMRange(e){let t=nW(),n=t.getEditorState()._selection,r=np(e.startContainer,e.startOffset,e.endContainer,e.endOffset,t,n);if(null===r)return;let[i,l]=r;this.anchor.set(i.key,i.offset,i.type,!0),this.focus.set(l.key,l.offset,l.type,!0),U(this)}clone(){let e=this.anchor,t=this.focus;return new nl(ne(e.key,e.offset,e.type),ne(t.key,t.offset,t.type),this.format,this.style)}toggleFormat(e){this.format=rD(this.format,e,null),this.dirty=!0}setFormat(e){this.format=e,this.dirty=!0}setStyle(e){this.style=e,this.dirty=!0}hasFormat(e){let t=S[e];return!!(this.format&t)}insertRawText(e){let t=e.split(/(\r?\n|\t)/),n=[],r=t.length;for(let e=0;e<r;e++){let r=t[e];"\n"===r||"\r\n"===r?n.push(tz()):"	"===r?n.push(t6()):n.push(t3(r))}this.insertNodes(n)}insertText(e){let t=this.anchor,n=this.focus,i=this.format,l=this.style,o=t,s=n;!this.isCollapsed()&&n.isBefore(t)&&(o=n,s=t),"element"===o.type&&function(e,t,n,r){let i=e.getNode(),l=i.getChildAtIndex(e.offset),o=t3(),s=n9(i)?rg().append(o):o;o.setFormat(n),o.setStyle(r),null===l?i.append(s):l.insertBefore(s),e.is(t)&&t.set(o.__key,0,"text"),e.set(o.__key,0,"text")}(o,s,i,l),"element"===s.type&&lc(s,ly(lu(s,"next")));let a=o.offset,u=s.offset,c=this.getNodes(),d=c.length,f=c[0];t4(f)||r(26);let g=f.getTextContent().length,h=f.getParentOrThrow(),p=c[d-1];if(1===d&&"element"===s.type&&(u=g,s.set(o.key,u,"text")),this.isCollapsed()&&a===g&&(rI(f)||!f.canInsertTextAfter()||!h.canInsertTextAfter()&&null===f.getNextSibling())){let t=f.getNextSibling();if(t4(t)&&t.canInsertTextBefore()&&!rI(t)||((t=t3()).setFormat(i),t.setStyle(l),h.canInsertTextAfter()?f.insertAfter(t):h.insertAfter(t)),t.select(0,0),f=t,""!==e)return void this.insertText(e)}else if(this.isCollapsed()&&0===a&&(rI(f)||!f.canInsertTextBefore()||!h.canInsertTextBefore()&&null===f.getPreviousSibling())){let t=f.getPreviousSibling();if(t4(t)&&!rI(t)||((t=t3()).setFormat(i),h.canInsertTextBefore()?f.insertBefore(t):h.insertBefore(t)),t.select(),f=t,""!==e)return void this.insertText(e)}else if(f.isSegmented()&&a!==g){let e=t3(f.getTextContent());e.setFormat(i),f.replace(e),f=e}else if(!this.isCollapsed()&&""!==e){let t=p.getParent();if(!h.canInsertTextBefore()||!h.canInsertTextAfter()||n4(t)&&(!t.canInsertTextBefore()||!t.canInsertTextAfter()))return this.insertText(""),nh(this.anchor,this.focus,null),void this.insertText(e)}if(1===d){if(rO(f)){let t=t3(e);return t.select(),void f.replace(t)}let t=f.getFormat(),n=f.getStyle();if(a!==u||t===i&&n===l){if(t8(f)){let t=t3(e);return t.setFormat(i),t.setStyle(l),t.select(),void f.replace(t)}}else{if(""!==f.getTextContent()){let t=t3(e);if(t.setFormat(i),t.setStyle(l),t.select(),0===a)f.insertBefore(t,!1);else{let[e]=f.splitText(a);e.insertAfter(t,!1)}return void(t.isComposing()&&"text"===this.anchor.type&&(this.anchor.offset-=e.length))}f.setFormat(i),f.setStyle(l)}let r=u-a;""===(f=f.spliceText(a,r,e,!0)).getTextContent()?f.remove():"text"===this.anchor.type&&(f.isComposing()?this.anchor.offset-=e.length:(this.format=t,this.style=n))}else{let t=new Set([...f.getParentKeys(),...p.getParentKeys()]),n=n4(f)?f:f.getParentOrThrow(),r=n4(p)?p:p.getParentOrThrow(),i=p;if(!n.is(r)&&r.isInline())do i=r,r=r.getParentOrThrow();while(r.isInline());if("text"===s.type&&(0!==u||""===p.getTextContent())||"element"===s.type&&p.getIndexWithinParent()<u)if(t4(p)&&!rO(p)&&u!==p.getTextContentSize()){if(p.isSegmented()){let e=t3(p.getTextContent());p.replace(e),p=e}n9(s.getNode())||"text"!==s.type||(p=p.spliceText(0,u,"")),t.add(p.__key)}else{let e=p.getParentOrThrow();e.canBeEmpty()||1!==e.getChildrenSize()?p.remove():e.remove()}else t.add(p.__key);let l=r.getChildren(),o=new Set(c),h=n.is(r),m=n.isInline()&&null===f.getNextSibling()?n:f;for(let e=l.length-1;e>=0;e--){let t=l[e];if(t.is(f)||n4(t)&&t.isParentOf(f))break;t.isAttached()&&(!o.has(t)||t.is(i)?h||m.insertAfter(t,!1):t.remove())}if(!h){let e=r,n=null;for(;null!==e;){let r=e.getChildren(),i=r.length;(0===i||r[i-1].is(n))&&(t.delete(e.__key),n=e),e=e.getParent()}}if(rO(f))if(a===g)f.select();else{let t=t3(e);t.select(),f.replace(t)}else""===(f=f.spliceText(a,g-a,e,!0)).getTextContent()?f.remove():f.isComposing()&&"text"===this.anchor.type&&(this.anchor.offset-=e.length);for(let e=1;e<d;e++){let n=c[e],r=n.__key;t.has(r)||n.remove()}}}removeText(){let e=nS()===this;lf(this,function(e,t="removeEmptySlices"){let n,i;if(e.isCollapsed())return e;let l="root",o="next",s=t,a=lb(e,o),u=lp(a.anchor,l),c=lp(a.focus.getFlipped(),l),d=new Set,f=[];for(let e of a.iterNodeCarets(l))if(iQ(e))d.add(e.origin.getKey());else if(iX(e)){let{origin:t}=e;n4(t)&&!d.has(t.getKey())||f.push(t)}for(let e of f)e.remove();for(let e of a.getTextSlices()){if(!e)continue;let{origin:t}=e.caret,n=t.getTextContentSize(),r=lh(i3(t,o)),i=t.getMode();if(Math.abs(e.distance)===n&&"removeEmptySlices"===s||"token"===i&&0!==e.distance)r.remove();else if(0!==e.distance){s="removeEmptySlices";let t=e.removeTextSlice(),n=e.caret.origin;if("segmented"===i){let e=t.origin,n=t3(e.getTextContent()).setStyle(e.getStyle()).setFormat(e.getFormat());r.replaceOrInsert(n),t=i4(n,o,t.offset)}n.is(u[0].origin)&&(u[0]=t),n.is(c[0].origin)&&(c[0]=t.getFlipped())}}for(let e of u)if(lm(e)){n=ly(e);break}for(let e of c)if(lm(e)){i=ly(e);break}let g=function(e,t,n){let r;if(!e||!t)return null;let i=e.getParentAtCaret(),l=t.getParentAtCaret();if(!i||!l)return null;let o=i.getParents().reverse();o.push(i);let s=l.getParents().reverse();s.push(l);let a=Math.min(o.length,s.length);for(r=0;r<a&&o[r]===s[r];r++);let u=(e,t)=>
1{let n;for(let i=r;i<e.length;i++){let r=e[i];if(i_(r))return;!n&&t(r)&&(n=r)}return n},c=u(o,iM),d=c&&u(s,e=>n.has(e.getKey())&&iM(e));return c&&d?[c,d]:null}(n,i,d);if(g){let[e,t]=g;i7(e,"previous").splice(0,t.getChildren()),t.remove()}let h=[n,i,...u,...c].find(lm);if(h)return ln(l_(ly(h),e.direction));r(269,JSON.stringify(u.map(e=>e.origin.__key)))}(lg(this))),e&&nS()!==this&&rX(this)}formatText(e,t=null){if(this.isCollapsed())return this.toggleFormat(e),void rW(null);let n=this.getNodes(),r=[];for(let e of n)t4(e)&&r.push(e);let i=t=>{n.forEach(n=>{if(n4(n)){let r=n.getFormatFlags(e,t);n.setTextFormat(r)}})},l=r.length;if(0===l)return this.toggleFormat(e),rW(null),void i(t);let o=this.anchor,s=this.focus,a=this.isBackward(),u=a?s:o,c=a?o:s,d=0,f=r[0],g="element"===u.type?0:u.offset;if("text"===u.type&&g===f.getTextContentSize()&&(d=1,f=r[1],g=0),null==f)return;let h=f.getFormatFlags(e,t);i(h);let p=l-1,m=r[p],y="text"===c.type?c.offset:m.getTextContentSize();if(f.is(m)){if(g===y)return;if(rI(f)||0===g&&y===f.getTextContentSize())f.setFormat(h);else{let e=f.splitText(g,y),t=0===g?e[0]:e[1];t.setFormat(h),"text"===u.type&&u.set(t.__key,0,"text"),"text"===c.type&&c.set(t.__key,y-g,"text")}return void(this.format=h)}0===g||rI(f)||([,f]=f.splitText(g),g=0),f.setFormat(h);let v=m.getFormatFlags(e,h);y>0&&(y===m.getTextContentSize()||rI(m)||([m]=m.splitText(y)),m.setFormat(v));for(let t=d+1;t<p;t++){let n=r[t],i=n.getFormatFlags(e,v);n.setFormat(i)}"text"===u.type&&u.set(f.__key,g,"text"),"text"===c.type&&c.set(m.__key,y,"text"),this.format=h|v}insertNodes(e){var t;if(0===e.length)return;if(this.isCollapsed()||this.removeText(),"root"===this.anchor.key){this.insertParagraph();let t=nS();return ni(t)||r(134),t.insertNodes(e)}let n=(this.isBackward()?this.focus:this.anchor).getNode(),i=iO(n,iM),l=e[e.length-1];if(n4(i)&&"__language"in i){if("__language"in e[0])this.insertText(e[0].getTextContent());else{let t=nF(this);i.splice(t,0,e),l.selectEnd()}return}if(!e.some(e=>(n4(e)||n6(e))&&!e.isInline())){n4(i)||r(211,n.constructor.name,n.getType());let t=nF(this);return i.splice(t,0,e),void l.selectEnd()}let o=function(e){let t=rg(),n=null;for(let r=0;r<e.length;r++){let i=e[r],l=t$(i);if(l||n6(i)&&i.isInline()||n4(i)&&i.isInline()||t4(i)||i.isParentRequired()){if(null===n&&(n=i.createParentElementNode(),t.append(n),l))continue;null!==n&&n.append(i)}else t.append(i),n=null}return t}(e),s=o.getLastDescendant(),a=o.getChildren(),u=n4(i)&&i.isEmpty()?null:this.insertParagraph(),c=a[a.length-1],d=a[0];n4(t=d)&&iM(t)&&!t.isEmpty()&&n4(i)&&(!i.isEmpty()||i.canMergeWhenEmpty())&&(n4(i)||r(211,n.constructor.name,n.getType()),i.append(...d.getChildren()),d=a[1]),d&&(null===i&&r(212,n.constructor.name,n.getType()),function(e,t,n){let i=t.getParentOrThrow().getLastChild(),l=t,o=[t];for(;l!==i;)l.getNextSibling()||r(140),o.push(l=l.getNextSibling());let s=e;for(let e of o)s=s.insertAfter(e)}(i,d));let f=iO(s,iM);u&&n4(f)&&(u.canMergeWhenEmpty()||iM(c))&&(f.append(...u.getChildren()),u.remove()),n4(i)&&i.isEmpty()&&i.remove(),s.selectEnd();let g=n4(i)?i.getLastChild():null;t$(g)&&f!==i&&g.remove()}insertParagraph(){if("root"===this.anchor.key){let e=rg();return rG().splice(this.anchor.offset,0,[e]),e.select(),e}let e=nF(this),t=iO(this.anchor.getNode(),iM);n4(t)||r(213);let n=t.getChildAtIndex(e),i=n?[n,...n.getNextSiblings()]:[],l=t.insertNewAfter(this,!1);return l?(l.append(...i),l.selectStart(),l):null}insertLineBreak(e){let t=tz();if(this.insertNodes([t]),e){let e=t.getParentOrThrow(),n=t.getIndexWithinParent();e.select(n,n)}}extract(){let e=this.getNodes(),t=e.length,n=t-1,r=this.anchor,i=this.focus,l=e[0],o=e[n],[s,a]=na(this);if(0===t)return[];if(1===t){if(t4(l)&&!this.isCollapsed()){let e=s>a?a:s,t=l.splitText(e,s>a?s:a),n=0===e?t[0]:t[1];return null!=n?[n]:[]}return[l]}let u=r.isBefore(i);if(t4(l)){let t=u?s:a;t===l.getTextContentSize()?e.shift():0!==t&&([,l]=l.splitText(t),e[0]=l)}if(t4(o)){let t=o.getTextContent().length,r=u?a:s;0===r?e.pop():r!==t&&([o]=o.splitText(r),e[n]=o)}return e}modify(e,t,n){var r;if(nR(this,e,t,n))return;let i="move"===e,l=nW(),o=ik(iy(l));if(!o)return;let s=l._blockCursorElement,a=l._rootElement,u=this.focus.getNode();if(null===a||null===s||!n4(u)||u.isInline()||u.canBeEmpty()||iC(s,l,a),this.dirty){let e=id(l,this.anchor.key),t=id(l,this.focus.key);"text"===this.anchor.type&&(e=rL(e)),"text"===this.focus.type&&(t=rL(t)),e&&t&&nA(o,e,this.anchor.offset,t,this.focus.offset)}if(r=t?"backward":"forward",o.modify(e,r,n),o.rangeCount>0){let e=o.getRangeAt(0),n=this.anchor.getNode(),r=n9(n)?n:function(e){let t=e.getParentOrThrow();for(;null!==t&&!i_(t);)t=t.getParentOrThrow();return t}(n);if(this.applyDOMRange(e),this.dirty=!0,!i){let n=this.getNodes(),i=[],l=!1;for(let e=0;e<n.length;e++){let t=n[e];ip(t,r)?i.push(t):l=!0}if(l&&i.length>0)if(t){let e=i[0];n4(e)?e.selectStart():e.getParentOrThrow().selectStart()}else{let e=i[i.length-1];n4(e)?e.selectEnd():e.getParentOrThrow().selectEnd()}
1o.anchorNode===e.startContainer&&o.anchorOffset===e.startOffset||function(e){let t=e.focus,n=e.anchor,r=n.key,i=n.offset,l=n.type;n.set(t.key,t.offset,t.type,!0),t.set(r,i,l,!0)}(this)}}"lineboundary"===n&&nR(this,e,t,n,"decorators")}forwardDeletion(e,t,n){if(!n&&("element"===e.type&&n4(t)&&e.offset===t.getChildrenSize()||"text"===e.type&&e.offset===t.getTextContentSize())){let e=t.getParent(),n=t.getNextSibling()||(null===e?null:e.getNextSibling());if(n4(n)&&n.isShadowRoot())return!0}return!1}deleteCharacter(e){let t=this.isCollapsed();if(this.isCollapsed()){let t=this.anchor,n=t.getNode();if(this.forwardDeletion(t,n,e))return;let r=lt(lu(t,e?"previous":"next"));if(r.getTextSlices().every(e=>null===e||0===e.distance)){let e={type:"initial"};for(let t of r.iterNodeCarets("shadowRoot"))if(iQ(t))if(t.origin.isInline());else{if(t.origin.isShadowRoot()){if("merge-block"===e.type)break;if(n4(r.anchor.origin)&&r.anchor.origin.isEmpty()){let e=ly(t);lf(this,lr(e,e)),r.anchor.origin.remove()}return}"merge-next-block"!==e.type&&"merge-block"!==e.type||(e={block:e.block,caret:t,type:"merge-block"})}else{if("merge-block"===e.type)break;if(iX(t)){if(n4(t.origin)){if(t.origin.isInline()){if(!t.origin.isParentOf(r.anchor.origin))break}else e={block:t.origin,type:"merge-next-block"};continue}if(n6(t.origin)){if(t.origin.isIsolated());else if("merge-next-block"===e.type&&(t.origin.isKeyboardSelectable()||!t.origin.isInline())&&n4(r.anchor.origin)&&r.anchor.origin.isEmpty()){r.anchor.origin.remove();let e=n_();e.add(t.origin.getKey()),rX(e)}else t.origin.remove();return}break}}if("merge-block"===e.type){let{caret:t,block:n}=e;return lf(this,lr(!t.origin.isEmpty()&&n.isEmpty()?lh(i3(n,t.direction)):r.anchor,t)),this.removeText()}}let i=this.focus;if(this.modify("extend",e,"character"),this.isCollapsed()){if(e&&0===t.offset&&nu(this,t.getNode()))return}else{let r="text"===i.type?i.getNode():null;if(n="text"===t.type?t.getNode():null,null!==r&&r.isSegmented()){let t=i.offset,l=r.getTextContentSize();if(r.is(n)||e&&t!==l||!e&&0!==t)return void nd(r,e,t)}else if(null!==n&&n.isSegmented()){let i=t.offset,l=n.getTextContentSize();if(n.is(r)||e&&0!==i||!e&&i!==l)return void nd(n,e,i)}!function(e,t){let n=e.anchor,r=e.focus,i=n.getNode();if(i===r.getNode()&&"text"===n.type&&"text"===r.type){var l;let e=n.offset,o=r.offset,s=e<o,a=s?e:o,u=s?o:e,c=u-1;a===c||r0(l=i.getTextContent().slice(a,u))||nc(l)||(t?r.set(r.key,c,r.type):n.set(n.key,c,n.type))}}(this,e)}}if(this.removeText(),e&&!t&&this.isCollapsed()&&"element"===this.anchor.type&&0===this.anchor.offset){let e=this.anchor.getNode();e.isEmpty()&&n9(e.getParent())&&null===e.getPreviousSibling()&&nu(this,e)}}deleteLine(e){this.isCollapsed()&&this.modify("extend",e,"lineboundary"),this.isCollapsed()?this.deleteCharacter(e):this.removeText()}deleteWord(e){if(this.isCollapsed()){let t=this.anchor,n=t.getNode();if(this.forwardDeletion(t,n,e))return;this.modify("extend",e,"word")}this.removeText()}isBackward(){return this.focus.isBefore(this.anchor)}getStartEndPoints(){return[this.anchor,this.focus]}}function no(e){return e instanceof nr}function ns(e){let t=e.offset;if("text"===e.type)return t;let n=e.getNode();return t===n.getChildrenSize()?n.getTextContent().length:0}function na(e){let t=e.getStartEndPoints();if(null===t)return[0,0];let[n,r]=t;return"element"===n.type&&"element"===r.type&&n.key===r.key&&n.offset===r.offset?[0,0]:[ns(n),ns(r)]}function nu(e,t){for(let n=t;n;n=n.getParent()){if(n4(n)){if(n.collapseAtStart(e))return!0;if(i_(n))break}if(n.getPreviousSibling())break}return!1}let nc=(()=>{try{let e=RegExp("\\p{Emoji}","u"),t=e.test.bind(e);if(t("❤️")&&t("#️⃣")&&t("\uD83D\uDC4D"))return t}catch(e){}return()=>!1})();function nd(e,t,n){let r=e.getTextContent().split(/(?=\s)/g),i=r.length,l=0,o=0;for(let e=0;e<i;e++){let s=e===i-1;if(o=l,l+=r[e].length,t&&l===n||l>n||s){r.splice(e,1),s&&(o=void 0);break}}let s=r.join("").trim();""===s?e.remove():(e.setTextContent(s),e.select(o,o))}function nf(e,t,n,i){let l,o=t;if(iT(e)){let s=!1,a=e.childNodes,u=a.length,c=i._blockCursorElement;o===u&&(s=!0,o=u-1);let d=a[o],f=!1;if(d===c)d=a[o+1],f=!0;else if(null!==c){let n=c.parentNode;e===n&&t>Array.prototype.indexOf.call(n.children,c)&&o--}if(t4(l=rQ(d)))o=i5(l,s?"next":"previous");else{let a=rQ(e);if(null===a)return null;if(n4(a)){let u=i.getElementByKey(a.getKey());null===u&&r(214);let c=a.getDOMSlot(u);[a,o]=c.resolveChildIndex(a,u,e,t),n4(a)||r(215),s&&o>=a.getChildrenSize()&&(o=Math.max(0,a.getChildrenSize()-1));let d=a.getChildAtIndex(o);if(n4(d)&&function(e,t,n){let r=e.getParent();return null===n||null===r||!r.canBeEmpty()||r!==n.getNode()}(d,0,n)){let e=s?d.getLastDescendant():d.getFirstDescendant();a=null===e||n4(d=e)?d:d.getParentOrThrow(),o=0}t4(d)?(l=d,a=null,o=i5(d,s?"next":"previous")):d!==a&&s&&!f&&(n4(a)||r(216),o=Math.min(a.getChildrenSize(),o+1))}else{let n=a.getIndexWithinParent();o=0===t&&n6(a)&&rQ(e)===a?n:n+1,a=a.getParentOrThrow()}if(n4(a))return ne(a.__key,o,"element")}}else l=rQ(e);return t4(l)?ne(l.__key,i5(l,o,"clamp"),"text"):null}function ng(e,t,n){let r=e.offset,i=e.getNode();if(0===r){let r=i.getPreviousSibling(),l=i.getParent();if(t){if((n||!t)&&null===r&&n4(l)&&l.isInline()){let t=l.getPreviousSibling();t4(t)&&e.set(t.__key,t.getTextContent().length,"text")}}else n4(r)&&!n&&r.isInline()?e.set(r.__key,r.getChildrenSize(),"element"):t4(r)&&e.set(r.__key,r.getTextContent().length,"text")}else if(r===i.getTextContent().length){let r=i.getNextSibling(),l=i.getParent();if(t&&n4(r)&&r.isInline())e.set(r.__key,0,"element");else if((n||t)&&null===r&&n4(l)&&l.isInline()&&!l.canInsertTextAfter()){let t=l.getNextSibling();t4(t)&&e.set(t.__key,0,"text")}}}
1function nh(e,t,n){if("text"===e.type&&"text"===t.type){let r=e.isBefore(t),i=e.is(t);ng(e,r,i),ng(t,!r,i),i&&t.set(e.key,e.offset,e.type);let l=nW();if(l.isComposing()&&l._compositionKey!==e.key&&ni(n)){let r=n.anchor,i=n.focus;e.set(r.key,r.offset,r.type,!0),t.set(i.key,i.offset,i.type,!0)}}}function np(e,t,n,r,i,l){if(null===e||null===n||!rN(i,e,n))return null;let o=nf(e,t,ni(l)?l.anchor:null,i);if(null===o)return null;let s=nf(n,r,ni(l)?l.focus:null,i);if(null===s)return null;if("element"===o.type&&"element"===s.type){let t=rQ(e),r=rQ(n);if(n6(t)&&n6(r))return null}return nh(o,s,l),[o,s]}function nm(e){return n4(e)&&!e.isInline()}function ny(e,t,n,r,i,l){let o=n$(),s=new nl(ne(e,t,i),ne(n,r,l),0,"");return s.dirty=!0,o._selection=s,s}function nv(){return new nl(ne("root",0,"element"),ne("root",0,"element"),0,"")}function n_(){return new nr(new Set)}function nb(e,t){return nx(null,e,t,null)}function nx(e,t,n,r){let i,l,o,s,a=n._window;if(null===a)return null;let u=r||a.event,c=u?u.type:void 0,d="selectionchange"===c,f=!N&&(d||"beforeinput"===c||"compositionstart"===c||"compositionend"===c||"click"===c&&u&&3===u.detail||"drop"===c||void 0===c);if(ni(e)&&!f)return e.clone();if(null===t)return null;if(i=t.anchorNode,l=t.focusNode,o=t.anchorOffset,s=t.focusOffset,d&&ni(e)&&!rN(n,i,l))return e.clone();let g=np(i,o,l,s,n,e);if(null===g)return null;let[h,p]=g;return new nl(h,p,ni(e)?e.format:0,ni(e)?e.style:"")}function nS(){return n$()._selection}function nw(){return nW()._editorState._selection}function nC(e,t,n,r=1){let i=e.anchor,l=e.focus,o=i.getNode(),s=l.getNode();if(!t.is(o)&&!t.is(s))return;let a=t.__key;if(e.isCollapsed()){let t=i.offset;if(n<=t&&r>0||n<t&&r<0){let n=Math.max(0,t+r);i.set(a,n,"element"),l.set(a,n,"element"),nk(e)}}else{let o=e.isBackward(),s=o?l:i,u=s.getNode(),c=o?i:l,d=c.getNode();if(t.is(u)){let e=s.offset;(n<=e&&r>0||n<e&&r<0)&&s.set(a,Math.max(0,e+r),"element")}if(t.is(d)){let e=c.offset;(n<=e&&r>0||n<e&&r<0)&&c.set(a,Math.max(0,e+r),"element")}}nk(e)}function nk(e){let t=e.anchor,n=t.offset,r=e.focus,i=r.offset,l=t.getNode(),o=r.getNode();if(e.isCollapsed()){if(!n4(l))return;let e=l.getChildrenSize(),i=n>=e,o=i?l.getChildAtIndex(e-1):l.getChildAtIndex(n);if(t4(o)){let e=0;i&&(e=o.getTextContentSize()),t.set(o.__key,e,"text"),r.set(o.__key,e,"text")}}else{if(n4(l)){let e=l.getChildrenSize(),r=n>=e,i=r?l.getChildAtIndex(e-1):l.getChildAtIndex(n);if(t4(i)){let e=0;r&&(e=i.getTextContentSize()),t.set(i.__key,e,"text")}}if(n4(o)){let e=o.getChildrenSize(),t=i>=e,n=t?o.getChildAtIndex(e-1):o.getChildAtIndex(i);if(t4(n)){let e=0;t&&(e=n.getTextContentSize()),r.set(n.__key,e,"text")}}}}function nE(e,t,n,r,i){let l=null,o=0,s=null;null!==r?(l=r.__key,t4(r)?(o=r.getTextContentSize(),s="text"):n4(r)&&(o=r.getChildrenSize(),s="element")):null!==i&&(l=i.__key,t4(i)?s="text":n4(i)&&(s="element")),null!==l&&null!==s?e.set(l,o,s):(-1===(o=t.getIndexWithinParent())&&(o=n.getChildrenSize()),e.set(n.__key,o,"element"))}function nT(e,t,n,r,i){"text"===e.type?e.set(n,e.offset+(t?0:i),"text"):e.offset>r.getIndexWithinParent()&&e.set(e.key,e.offset-1,"element")}function nA(e,t,n,r,i){try{e.setBaseAndExtent(t,n,r,i)}catch(e){}}function nN(e){let t=nS()||nw();null===t&&(t=rG().selectEnd()),t.insertNodes(e)}function nF(e){let t=e;e.isCollapsed()||t.removeText();let n=nS();ni(n)&&(t=n),ni(t)||r(161);let i=t.anchor,l=i.getNode(),o=i.offset;for(;!iM(l);){let e=l;if([l,o]=function(e,t){let n=e.getParent();if(!n){let e=rg();return rG().append(e),e.select(),[rG(),0]}if(t4(e)){let r=e.splitText(t);if(0===r.length)return[n,e.getIndexWithinParent()];let i=+(0!==t);return[n,r[0].getIndexWithinParent()+i]}if(!n4(e)||0===t)return[n,e.getIndexWithinParent()];let r=e.getChildAtIndex(t);if(r){let n=new nl(ne(e.__key,t,"element"),ne(e.__key,t,"element"),0,""),i=e.insertNewAfter(n);i&&i.append(r,...r.getNextSiblings())}return[n,e.getIndexWithinParent()+1]}(l,o),e.is(l))break}return o}function nR(e,t,n,r,i="decorators-and-blocks"){if("move"===t&&"character"===r&&!e.isCollapsed()){let[t,r]=n===e.isBackward()?[e.focus,e.anchor]:[e.anchor,e.focus];return r.set(t.key,t.offset,t.type),!0}let l=lu(e.focus,n?"previous":"next"),o="lineboundary"===r,s="move"===t,a=l,u="decorators-and-blocks"===i;if(!lv(a)){for(let e of a){u=!1;let{origin:t}=e;if(!n6(t)||t.isIsolated()||(a=e,!o||!t.isInline()))break}if(u)for(let e of lt(l).iterNodeCarets("extend"===t?"shadowRoot":"root")){if(iQ(e))e.origin.isInline()||(a=e);else{if(n4(e.origin))continue;n6(e.origin)&&!e.origin.isInline()&&(a=e)}break}}if(a===l)return!1;if(s&&!o&&n6(a.origin)&&a.origin.isKeyboardSelectable()){let e=n_();return e.add(a.origin.getKey()),rX(e),!0}return a=ly(a),s&&lc(e.anchor,a),lc(e.focus,a),u||!o}let nM=null,nO=null,nI=!1,nP=!1,nL=0,nD={characterData:!0,childList:!0,subtree:!0};function nB(){return nI||null!==nM&&nM._readOnly}function nK(){nI&&r(13)}function nz(){nL>99&&r(14)}function n$(){return null===nM&&r(195,nj()),nM}function nW(){return null===nO&&r(196,nj()),nO}function nj(){let e=0,t=new Set,n=rS.version;if("undefined"!=typeof window)for(let r of document.querySelectorAll("[contenteditable]")){let i=rM(r);if(rF(i))e++;else if(i){let e=String(i.constructor.version||"<0.17.1");e===n&&(e+=" (separately built, likely a bundler configuration issue)"),t.add(e)}}let r=` Detected on the page: ${e} compatible editor(s) with version ${n}`;return t.size&&(r+=` and incompatible editors with versions ${Array.from(t).join(", ")}`),r}function nJ(e,t,n){let r=t.__type,i=rk(e,r),l=n.get(r);void 0===l&&(l=Array.from(i.transforms),n.set(r,l));let o=l.length;for(let e=0;e<o&&(l[e](t),t.isAttached());e++);}function nH(e,t){return void 0!==e&&e.__key!==t&&e.isAttached()}function nU(e,t){if(!t)return;let n=e._updateTags,r=t;for(let e of(Array.isArray(t)||(r=[t]),r))n.add(e)}function nq(e){return nZ(e,nW()._nodes)}function nZ(e,t){let n=e.type,i=t.get(n);void 0===i&&r(17,n);let l=i.klass;e.type!==l.getType()&&r(18,l.name);let o=l.importJSON(e),s=e.children;if(n4(o)&&Array.isArray(s))for(let e=0;e<s.length;e++){let n=nZ(s[e],t);o.append(n)}return o}function nV(e,t,n){let r=nM,i=nI,l=nO;nM=t,nI=!0,nO=e;try{return n()}finally{nM=r,nI=i,nO=l}}function nG(e,t){let n=e._pendingEditorState,i=e._rootElement,l=e._headless||null===i;if(null===n)return;let o=e._editorState,s=o._selection,a=n._selection,u=0!==e._dirtyType,c=nM,d=nI,f=nO,g=e._updating,h=e._observer,m=null;if(e._pendingEditorState=null,e._editorState=n,!l&&u&&null!==h){nO=e,nM=n,nI=!1,e._updating=!0;try{let t=e._dirtyType,i=e._dirtyElements,l=e._dirtyLeaves;h.disconnect(),m=function(e,t,n,i,l,o){ei="",ea="",el="",eu=2===i,ed=null,V=n,Z=n._config,G=n._nodes,Y=V._listeners.mutation,
1X=l,Q=o,ee=e._nodeMap,et=t._nodeMap,ec=t._readOnly,en=new Map(n._keyToDOMMap);let s=new Map;return er=s,function e(t,n){let i=ee.get(t),l=et.get(t);void 0!==i&&void 0!==l||r(61);let o=eu||Q.has(t)||X.has(t),s=id(V,t);if(i===l&&!o){if(n4(i)){let e=s.__lexicalTextContent;void 0!==e&&(ei+=e,ea+=e);let t=s.__lexicalDirTextContent;void 0!==t&&(el+=t)}else{let e=i.getTextContent();t4(i)&&!i.isDirectionless()&&(el+=e),ea+=e,ei+=e}return s}if(i!==l&&o&&il(er,G,Y,l,"updated"),l.updateDOM(i,s,Z)){let e=ey(t,null);return null===n&&r(62),n.replaceChild(e,s),ef(t,null),e}if(n4(i)&&n4(l)){let t=l.__indent;t!==i.__indent&&ep(s,t);let n=l.__format;n!==i.__format&&em(s,n),o&&(function(t,n,i){let l=el;el="",eo=null,es="",function(t,n,i){let l=ei,o=t.__size,s=n.__size;ei="";let a=i.element;if(1===o&&1===s){let r=t.__first,i=n.__first;if(r===i)e(r,a);else{let e=ek(r),t=ey(i,null);try{a.replaceChild(t,e)}catch(n){if("object"==typeof n&&null!=n)throw Error(`${n.toString()} Parent: ${a.tagName}, new child: {tag: ${t.tagName} key: ${i}}, old child: {tag: ${e.tagName}, key: ${r}}.`);throw n}ef(r,null)}let l=et.get(i);t4(l)&&(null===eo&&(eo=l.getFormat()),""===es&&(es=l.getStyle()))}else{let l=eS(t,ee),u=eS(n,et);if(l.length!==o&&r(227),u.length!==s&&r(228),0===o)0!==s&&ev(u,n,0,s-1,i);else if(0===s){if(0!==o){let e=null==i.after&&null==i.before&&null==i.element.__lexicalLineBreak;eg(l,0,o-1,e?null:a),e&&(a.textContent="")}}else!function(t,n,r,i,l,o){let s=i-1,a=l-1,u,c,d=o.getFirstChild(),f=0,g=0;for(;f<=s&&g<=a;){let t=n[f],i=r[g];if(t===i)d=eC(e(i,o.element)),f++,g++;else{void 0===u&&(u=new Set(n)),void 0===c&&(c=new Set(r));let l=c.has(t),s=u.has(i);if(l)if(s){let t=id(V,i);t===d?d=eC(e(i,o.element)):(o.withBefore(d).insertChild(t),e(i,o.element)),f++,g++}else ey(i,o.withBefore(d)),g++;else d=eC(ek(t)),ef(t,o.element),f++}let l=et.get(i);null!==l&&t4(l)&&(null===eo&&(eo=l.getFormat()),""===es&&(es=l.getStyle()))}let h=f>s,p=g>a;if(h&&!p){let e=r[a+1],n=void 0===e?null:V.getElementByKey(e);ev(r,t,g,a,o.withBefore(n))}else p&&!h&&eg(n,f,s,o.element)}(n,l,u,o,s,i)}ic(n)&&(ei+="\n\n"),a.__lexicalTextContent=ei,ei=l+ei}(t,n,n.getDOMSlot(i)),ex(n,i),null==eo||eo===n.__textFormat||ec||n.setTextFormat(eo),""===es||es===n.__textStyle||ec||n.setTextStyle(es),el=l}(i,l,s),n9(l)||l.isInline()||eb(i,l,s)),ic(l)&&(ei+="\n\n",ea+="\n\n")}else{let e=l.getTextContent();if(n6(l)){let e=l.decorate(V,Z);null!==e&&ew(t,e)}else t4(l)&&!l.isDirectionless()&&(el+=e);ei+=e,ea+=e}if(!ec&&n9(l)&&l.__cachedText!==ea){let e=l.getWritable();e.__cachedText=ea,l=e}return s}("root",null),V=void 0,G=void 0,X=void 0,Q=void 0,ee=void 0,et=void 0,Z=void 0,en=void 0,er=void 0,s}(o,n,e,t,i,l)}catch(t){if(t instanceof Error&&e._onError(t),nP)throw t;return rb(e,null,i,n),P(e),e._dirtyType=2,nP=!0,nG(e,o),void(nP=!1)}finally{h.observe(i,nD),e._updating=g,nM=c,nI=d,nO=f}}n._readOnly||(n._readOnly=!0);let y=e._dirtyLeaves,v=e._dirtyElements,_=e._normalizedNodes,b=e._updateTags,x=e._deferred;u&&(e._dirtyType=0,e._cloneNotNeeded.clear(),e._dirtyLeaves=new Set,e._dirtyElements=new Map,e._normalizedNodes=new Set,e._updateTags=new Set),function(e,t){let n,r=e._decorators,i=e._pendingDecorators||r,l=t._nodeMap;for(n in i)l.has(n)||(i===r&&(i=rZ(e)),delete i[n])}(e,n);let S=l?null:ik(iy(e));if(e._editable&&null!==S&&(u||null===a||a.dirty)&&null!==i&&!b.has(ru)){nO=e,nM=n;try{if(null!==h&&h.disconnect(),u||null===a||a.dirty){let t=e._blockCursorElement;null!==t&&iC(t,e,i),function(e,t,n,r,i,l,o){let s=r.anchorNode,a=r.focusNode,u=r.anchorOffset,c=r.focusOffset,d=document.activeElement;if(i.has(rs)&&d!==l||null!==d&&rA(d))return;if(!ni(t))return null!==e&&rN(n,s,a)&&r.removeAllRanges();let f=t.anchor,g=t.focus,h=f.key,p=g.key,m=id(n,h),y=id(n,p),v=f.offset,_=g.offset,b=t.format,x=t.style,S=t.isCollapsed(),w=m,C=y,k=!1;if("text"===f.type){w=rL(m);let e=f.getNode();k=e.getFormat()!==b||e.getStyle()!==x}else ni(e)&&"text"===e.anchor.type&&(k=!0);if("text"===g.type&&(C=rL(y)),null!==w&&null!==C&&(S&&(null===e||k||ni(e)&&(e.format!==b||e.style!==x))&&(tS=[b,x,v,h,performance.now()]),u!==v||c!==_||s!==w||a!==C||"Range"===r.type&&S||(null!==d&&l.contains(d)||l.focus({preventScroll:!0}),"element"===f.type))){if(nA(r,w,v,C,_),!i.has(ra)&&t.isCollapsed()&&null!==l&&l===document.activeElement){let e=ni(t)&&"element"===t.anchor.type?w.childNodes[v]||null:r.rangeCount>0?r.getRangeAt(0):null;if(null!==e){let t;if(e instanceof Text){let n=document.createRange();n.selectNode(e),t=n.getBoundingClientRect()}else t=e.getBoundingClientRect();!function(e,t,n){let r=ih(n),i=im(r);
1if(null===r||null===i)return;let{top:l,bottom:o}=t,s=0,a=0,u=n;for(;null!==u;){let t=u===r.body;if(t)s=0,a=iy(e).innerHeight;else{let e=u.getBoundingClientRect();s=e.top,a=e.bottom}let n=0;if(l<s?n=-(s-l):o>a&&(n=o-a),0!==n)if(t)i.scrollBy(0,n);else{let e=u.scrollTop;u.scrollTop+=n;let t=u.scrollTop-e;l-=t,o-=t}if(t)break;u=ig(u)}}(n,t,l)}}tp=!0}}(s,a,e,S,b,i)}!function(e,t,n){let r=e._blockCursorElement;if(ni(n)&&n.isCollapsed()&&"element"===n.anchor.type&&t.contains(document.activeElement)){let i=n.anchor,l=i.getNode(),o=i.offset,s=!1,a=null;if(o===l.getChildrenSize())iw(l.getChildAtIndex(o-1))&&(s=!0);else{let t=l.getChildAtIndex(o);if(null!==t&&iw(t)){let n=t.getPreviousSibling();(null===n||iw(n))&&(s=!0,a=e.getElementByKey(t.__key))}}if(s){let n=e.getElementByKey(l.__key);return null===r&&(e._blockCursorElement=r=function(e){let t=e.theme,n=document.createElement("div");n.contentEditable="false",n.setAttribute("data-lexical-cursor","true");let r=t.blockCursor;return void 0!==r&&("string"==typeof r&&(r=t.blockCursor=p(r)),void 0!==r&&n.classList.add(...r)),n}(e._config)),t.style.caretColor="transparent",null===a?n.appendChild(r):n.insertBefore(r,a)}}null!==r&&iC(r,e,t)}(e,i,a)}finally{null!==h&&h.observe(i,nD),nO=f,nM=c}}null!==m&&function(e,t,n,r,i){let l=Array.from(e._listeners.mutation),o=l.length;for(let e=0;e<o;e++){let[o,s]=l[e];for(let e of s){let l=t.get(e);void 0!==l&&o(l,{dirtyLeaves:r,prevEditorState:i,updateTags:n})}}}(e,m,b,y,o),ni(a)||null===a||null!==s&&s.is(a)||e.dispatchCommand(eT,void 0);let w=e._pendingDecorators;null!==w&&(e._decorators=w,e._pendingDecorators=null,nY("decorator",e,!0,w)),function(e,t,n){let r=rV(t),i=rV(n);r!==i&&nY("textcontent",e,!0,i)}(e,t||o,n),nY("update",e,!0,{dirtyElements:v,dirtyLeaves:y,editorState:n,mutatedNodes:m,normalizedNodes:_,prevEditorState:t||o,tags:b}),function(e,t){if(e._deferred=[],0!==t.length){let n=e._updating;e._updating=!0;try{for(let e=0;e<t.length;e++)t[e]()}finally{e._updating=n}}}(e,x),function(e){let t=e._updates;if(0!==t.length){let n=t.shift();if(n){let[t,r]=n;nQ(e,t,r)}}}(e)}function nY(e,t,n,...r){let i=t._updating;t._updating=n;try{let n=Array.from(t._listeners[e]);for(let e=0;e<n.length;e++)n[e].apply(null,r)}finally{t._updating=i}}function nX(e,t){let n=e._updates,i=t||!1;for(;0!==n.length;){let t=n.shift();if(t){let n,[l,o]=t,s=e._pendingEditorState;void 0!==o&&(n=o.onUpdate,o.skipTransforms&&(i=!0),o.discrete&&(null===s&&r(191),s._flushSync=!0),n&&e._deferred.push(n),nU(e,o.tag)),null==s?nQ(e,l,o):l()}}return i}function nQ(e,t,n){let i=e._updateTags,l,o=!1,s=!1;void 0!==n&&(l=n.onUpdate,nU(e,n.tag),o=n.skipTransforms||!1,s=n.discrete||!1),l&&e._deferred.push(l);let a=e._editorState,u=e._pendingEditorState,c=!1;(null===u||u._readOnly)&&(u=e._pendingEditorState=re(u||a),c=!0),u._flushSync=s;let d=nM,f=nI,g=nO,h=e._updating;nM=u,nI=!1,e._updating=!0,nO=e;let p=e._headless||null===e.getRootElement();rw=null;try{c&&(p?null!==a._selection&&(u._selection=a._selection.clone()):u._selection=function(e,t){let n=e.getEditorState()._selection,r=ik(iy(e));return ni(n)||null==n?nx(n,r,e,t):n.clone()}(e,n&&n.event||null));let i=e._compositionKey;t(),o=nX(e,o),function(e,t){let n=t.getEditorState()._selection,r=e._selection;if(ni(r)){let e,t=r.anchor,i=r.focus;if("text"===t.type&&(e=t.getNode()).selectionTransform(n,r),"text"===i.type){let t=i.getNode();e!==t&&t.selectionTransform(n,r)}}}(u,e),0!==e._dirtyType&&(o?function(e,t){let n=t._dirtyLeaves,r=e._nodeMap;for(let e of n){let t=r.get(e);t4(t)&&t.isAttached()&&t.isSimpleText()&&!t.isUnmergeable()&&H(t)}}(u,e):function(e,t){let n=t._dirtyLeaves,r=t._dirtyElements,i=e._nodeMap,l=rj(),o=new Map,s=n,a=s.size,u=r,c=u.size;for(;a>0||c>0;){if(a>0){for(let e of(t._dirtyLeaves=new Set,s)){let r=i.get(e);t4(r)&&r.isAttached()&&r.isSimpleText()&&!r.isUnmergeable()&&H(r),void 0!==r&&nH(r,l)&&nJ(t,r,o),n.add(e)}if((a=(s=t._dirtyLeaves).size)>0){nL++;continue}}for(let e of(t._dirtyLeaves=new Set,t._dirtyElements=new Map,u.delete("root")&&u.set("root",!0),u)){let n=e[0],s=e[1];if(r.set(n,s),!s)continue;let a=i.get(n);void 0!==a&&nH(a,l)&&nJ(t,a,o)}a=(s=t._dirtyLeaves).size,c=(u=t._dirtyElements).size,nL++}t._dirtyLeaves=n,t._dirtyElements=r}(u,e),nX(e),function(e,t,n,r){let i=e._nodeMap,l=t._nodeMap,o=[];for(let[e]of r){let t=l.get(e);void 0!==t&&(t.isAttached()||(n4(t)&&function e(t,n,r,i,l,o){let s=t.getFirstChild();for(;null!==s;){let t=s.__key;s.__parent===n&&(n4(s)&&e(s,t,r,i,l,o),r.has(t)||o.delete(t),l.push(t)),s=s.getNextSibling()}}(t,e,i,l,o,r),i.has(e)||r.delete(e),o.push(e)))}for(let e of o)l.delete(e);for(let e of n){let t=l.get(e);void 0===t||t.isAttached()||(i.has(e)||n.delete(e),l.delete(e))}}(a,u,e._dirtyLeaves,e._dirtyElements)),i!==e._compositionKey&&(u._flushSync=!0);let l=u._selection;if(ni(l)){let e=u._nodeMap,t=l.anchor.key,n=l.focus.key;void 0!==e.get(t)&&void 0!==e.get(n)||r(19)}else no(l)&&0===l._nodes.size&&(u._selection=null)}catch(t){return t instanceof Error&&e._onError(t),e._pendingEditorState=a,e._dirtyType=2,e._cloneNotNeeded.clear(),e._dirtyLeaves=new Set,e._dirtyElements.clear(),void nG(e)}finally{nM=d,nI=f,nO=g,e._updating=h,nL=0}0!==e._dirtyType||e._deferred.length>0||function(e,t){let n=t.getEditorState()._selection,r=e._selection;if(null!==r){if(r.dirty||!r.is(n))return!0}else if(null!==n)return!0;return!1}(u,e)?u._flushSync?(u._flushSync=!1,nG(e)):c&&rT(()=>{nG(e)}):(u._flushSync=!1,c&&(i.clear(),e._deferred=[],e._pendingEditorState=null))}function n0(e,t,n){nO===e&&void 0===n?t():nQ(e,t,n)}class n1{constructor(e,t,n){this.element=e,this.before=t||null,this.after=n||null}withBefore(e){return new n1(this.element,e,this.after)}withAfter(e){return new n1(this.element,this.before,e)}withElement(e){return this.element===e?this:new n1(e,this.before,this.after)}insertChild(e){let t=this.before||this.getManagedLineBreak();return null!==t&&t.parentElement!==this.element&&r(222),this.element.insertBefore(e,t),this}removeChild(e){return e.parentElement!==this.element&&r(223),this.element.removeChild(e),this}replaceChild(e,t){return t.parentElement!==this.element&&r(224),this.element.replaceChild(e,t),this}getFirstChild(){let e=this.after?this.after.nextSibling:this.element.firstChild;return e===this.before||e===this.getManagedLineBreak()?null:e}getManagedLineBreak(){return this.element.__lexicalLineBreak||null}setManagedLineBreak(e){null===e?this.removeManagedLineBreak():this.insertManagedLineBreak("decorator"===e&&(c||u))}removeManagedLineBreak(){let e=this.getManagedLineBreak();if(e){let t=this.element,n="IMG"===e.nodeName?e.nextSibling:null;n&&t.removeChild(n),t.removeChild(e),t.__lexicalLineBreak=void 0}}insertManagedLineBreak(e){let t=this.getManagedLineBreak();if(t){if(e===("IMG"===t.nodeName))return;this.removeManagedLineBreak()}let n=this.element,r=this.before,i=document.createElement("br");if(n.insertBefore(i,r),e){let e=document.createElement("img");e.setAttribute("data-lexical-linebreak","true"),e.style.cssText="display: inline !important; border: 0px !important; margin: 0px !important;",e.alt="",n.insertBefore(e,i),n.__lexicalLineBreak=e}else n.__lexicalLineBreak=i}getFirstChildOffset(){let e=0;for(let t=this.after;null!==t;t=t.previousSibling)e++;return e}resolveChildIndex(e,t,n,r){if(n===this.element){let t=this.getFirstChildOffset();return[e,Math.min(t+e.getChildrenSize(),Math.max(t,r))]}let i=n2(t,n);i.push(r);let l=n2(t,this.element),o=e.getIndexWithinParent();for(let e=0;e<l.length;e++){let t=i[e],n=l[e];
1if(void 0===t||t<n)break;if(t>n){o+=1;break}}return[e.getParentOrThrow(),o]}}function n2(e,t){let n=[],i=t;for(;i!==e&&null!==i;i=i.parentNode){let e=0;for(let t=i.previousSibling;null!==t;t=t.previousSibling)e++;n.push(e)}return i!==e&&r(225),n.reverse()}class n3 extends tD{constructor(e){super(e),this.__first=null,this.__last=null,this.__size=0,this.__format=0,this.__style="",this.__indent=0,this.__dir=null,this.__textFormat=0,this.__textStyle=""}afterCloneFrom(e){super.afterCloneFrom(e),this.__key===e.__key&&(this.__first=e.__first,this.__last=e.__last,this.__size=e.__size),this.__indent=e.__indent,this.__format=e.__format,this.__style=e.__style,this.__dir=e.__dir,this.__textFormat=e.__textFormat,this.__textStyle=e.__textStyle}getFormat(){return this.getLatest().__format}getFormatType(){return k[this.getFormat()]||""}getStyle(){return this.getLatest().__style}getIndent(){return this.getLatest().__indent}getChildren(){let e=[],t=this.getFirstChild();for(;null!==t;)e.push(t),t=t.getNextSibling();return e}getChildrenKeys(){let e=[],t=this.getFirstChild();for(;null!==t;)e.push(t.__key),t=t.getNextSibling();return e}getChildrenSize(){return this.getLatest().__size}isEmpty(){return 0===this.getChildrenSize()}isDirty(){let e=nW()._dirtyElements;return null!==e&&e.has(this.__key)}isLastChild(){let e=this.getLatest(),t=this.getParentOrThrow().getLastChild();return null!==t&&t.is(e)}getAllTextNodes(){let e=[],t=this.getFirstChild();for(;null!==t;){if(t4(t)&&e.push(t),n4(t)){let n=t.getAllTextNodes();e.push(...n)}t=t.getNextSibling()}return e}getFirstDescendant(){let e=this.getFirstChild();for(;n4(e);){let t=e.getFirstChild();if(null===t)break;e=t}return e}getLastDescendant(){let e=this.getLastChild();for(;n4(e);){let t=e.getLastChild();if(null===t)break;e=t}return e}getDescendantByIndex(e){let t=this.getChildren(),n=t.length;if(e>=n){let e=t[n-1];return n4(e)&&e.getLastDescendant()||e||null}let r=t[e];return n4(r)&&r.getFirstDescendant()||r||null}getFirstChild(){let e=this.getLatest().__first;return null===e?null:rJ(e)}getFirstChildOrThrow(){let e=this.getFirstChild();return null===e&&r(45,this.__key),e}getLastChild(){let e=this.getLatest().__last;return null===e?null:rJ(e)}getLastChildOrThrow(){let e=this.getLastChild();return null===e&&r(96,this.__key),e}getChildAtIndex(e){let t,n,r=this.getChildrenSize();if(e<r/2){for(t=this.getFirstChild(),n=0;null!==t&&n<=e;){if(n===e)return t;t=t.getNextSibling(),n++}return null}for(t=this.getLastChild(),n=r-1;null!==t&&n>=e;){if(n===e)return t;t=t.getPreviousSibling(),n--}return null}getTextContent(){let e="",t=this.getChildren(),n=t.length;for(let r=0;r<n;r++){let i=t[r];e+=i.getTextContent(),n4(i)&&r!==n-1&&!i.isInline()&&(e+="\n\n")}return e}getTextContentSize(){let e=0,t=this.getChildren(),n=t.length;for(let r=0;r<n;r++){let i=t[r];e+=i.getTextContentSize(),n4(i)&&r!==n-1&&!i.isInline()&&(e+=2)}return e}getDirection(){return this.getLatest().__dir}getTextFormat(){return this.getLatest().__textFormat}hasFormat(e){if(""!==e){let t=C[e];return!!(this.getFormat()&t)}return!1}hasTextFormat(e){let t=S[e];return!!(this.getTextFormat()&t)}getFormatFlags(e,t){return rD(this.getLatest().__textFormat,e,t)}getTextStyle(){return this.getLatest().__textStyle}select(e,t){nK();let n=nS(),r=e,i=t,l=this.getChildrenSize();if(!this.canBeEmpty()){if(0===e&&0===t){let e=this.getFirstChild();if(t4(e)||n4(e))return e.select(0,0)}else if((void 0===e||e===l)&&(void 0===t||t===l)){let e=this.getLastChild();if(t4(e)||n4(e))return e.select()}}void 0===r&&(r=l),void 0===i&&(i=l);let o=this.__key;return ni(n)?(n.anchor.set(o,r,"element"),n.focus.set(o,i,"element"),n.dirty=!0,n):ny(o,r,o,i,"element","element")}selectStart(){let e=this.getFirstDescendant();return e?e.selectStart():this.select()}selectEnd(){let e=this.getLastDescendant();return e?e.selectEnd():this.select()}clear(){let e=this.getWritable();
1return this.getChildren().forEach(e=>e.remove()),e}append(...e){return this.splice(this.getChildrenSize(),0,e)}setDirection(e){let t=this.getWritable();return t.__dir=e,t}setFormat(e){return this.getWritable().__format=""!==e?C[e]:0,this}setStyle(e){return this.getWritable().__style=e||"",this}setTextFormat(e){let t=this.getWritable();return t.__textFormat=e,t}setTextStyle(e){let t=this.getWritable();return t.__textStyle=e,t}setIndent(e){return this.getWritable().__indent=e,this}splice(e,t,n){let i=n.length,l=this.getChildrenSize(),o=this.getWritable();e+t<=l||r(226,String(e),String(t),String(l));let s=o.__key,a=[],u=[],c=this.getChildAtIndex(e+t),d=null,f=l-t+i;if(0!==e)if(e===l)d=this.getLastChild();else{let t=this.getChildAtIndex(e);null!==t&&(d=t.getPreviousSibling())}if(t>0){let e=null===d?this.getFirstChild():d.getNextSibling();for(let n=0;n<t;n++){null===e&&r(100);let t=e.getNextSibling(),n=e.__key;rz(e.getWritable()),u.push(n),e=t}}let g=d;for(let e=0;e<i;e++){let t=n[e];null!==g&&t.is(g)&&(d=g=g.getPreviousSibling());let i=t.getWritable();i.__parent===s&&f--,rz(i);let l=t.__key;if(null===g)o.__first=l,i.__prev=null;else{let e=g.getWritable();e.__next=l,i.__prev=e.__key}t.__key===s&&r(76),i.__parent=s,a.push(l),g=t}if(e+t===l)null!==g&&(g.getWritable().__next=null,o.__last=g.__key);else if(null!==c){let e=c.getWritable();if(null!==g){let t=g.getWritable();e.__prev=g.__key,t.__next=c.__key}else e.__prev=null}if(o.__size=f,u.length){let e=nS();if(ni(e)){let t=new Set(u),n=new Set(a),{anchor:r,focus:i}=e;n5(r,t,n)&&nE(r,r.getNode(),this,d,c),n5(i,t,n)&&nE(i,i.getNode(),this,d,c),0!==f||this.canBeEmpty()||i_(this)||this.remove()}}return o}getDOMSlot(e){return new n1(e)}exportDOM(e){let{element:t}=super.exportDOM(e);if(iT(t)){let e=this.getIndent();e>0&&(t.style.paddingInlineStart=40*e+"px");let n=this.getDirection();n&&(t.dir=n)}return{element:t}}exportJSON(){let e={children:[],direction:this.getDirection(),format:this.getFormatType(),indent:this.getIndent(),...super.exportJSON()},t=this.getTextFormat(),n=this.getTextStyle();return 0!==t&&(e.textFormat=t),""!==n&&(e.textStyle=n),e}updateFromJSON(e){return super.updateFromJSON(e).setFormat(e.format).setIndent(e.indent).setDirection(e.direction).setTextFormat(e.textFormat||0).setTextStyle(e.textStyle||"")}insertNewAfter(e,t){return null}canIndent(){return!0}collapseAtStart(e){return!1}excludeFromCopy(e){return!1}canReplaceWith(e){return!0}canInsertAfter(e){return!0}canBeEmpty(){return!0}canInsertTextBefore(){return!0}canInsertTextAfter(){return!0}isInline(){return!1}isShadowRoot(){return!1}canMergeWith(e){return!1}extractWithChild(e,t,n){return!1}canMergeWhenEmpty(){return!1}reconcileObservedMutation(e,t){let n=this.getDOMSlot(e),r=n.getFirstChild();for(let e=this.getFirstChild();e;e=e.getNextSibling()){let i=t.getElementByKey(e.getKey());null!==i&&(null==r?(n.insertChild(i),r=i):r!==i&&n.replaceChild(i,r),r=r.nextSibling)}}}function n4(e){return e instanceof n3}function n5(e,t,n){let r=e.getNode();for(;r;){let e=r.__key;if(t.has(e)&&!n.has(e))return!0;r=r.getParent()}return!1}class n7 extends tD{decorate(e,t){r(47)}isIsolated(){return!1}isInline(){return!0}isKeyboardSelectable(){return!0}}function n6(e){return e instanceof n7}class n8 extends n3{static getType(){return"root"}static clone(){return new n8}constructor(){super("root"),this.__cachedText=null}getTopLevelElementOrThrow(){r(51)}getTextContent(){let e=this.__cachedText;return(nB()||0===nW()._dirtyType)&&null!==e?e:super.getTextContent()}remove(){r(52)}replace(e){r(53)}insertBefore(e){r(54)}insertAfter(e){r(55)}updateDOM(e,t){return!1}splice(e,t,n){for(let e of n)n4(e)||n6(e)||r(282);return super.splice(e,t,n)}static importJSON(e){return rG().updateFromJSON(e)}collapseAtStart(){return!0}}function n9(e){return e instanceof n8}function re(e){return new rn(new Map(e._nodeMap))}function rt(){return new rn(new Map([["root",new n8]]))}class rn{constructor(e,t){this._nodeMap=e,this._selection=t||null,this._flushSync=!1,this._readOnly=!1}isEmpty(){return 1===this._nodeMap.size&&null===this._selection}read(e,t){return nV(t&&t.editor||null,this,e)}clone(e){let t=new rn(this._nodeMap,void 0===e?this._selection:e);return t._readOnly=!0,t}toJSON(){return nV(null,this,()=>({root:function e(t){let n=t.exportJSON(),i=t.constructor;if(n.type!==i.getType()&&r(130,i.name),n4(t)){let l=n.children;Array.isArray(l)||r(59,i.name);let o=t.getChildren();for(let t=0;t<o.length;t++){let n=e(o[t]);l.push(n)}}return n}(rG())}))}}let rr="historic",ri="history-push",rl="history-merge",ro="paste",rs="collaboration",ra="skip-scroll-into-view",ru="skip-dom-selection";class rc extends n3{static getType(){return"artificial"}createDOM(e){return document.createElement("div")}}class rd extends n3{static getType(){return"paragraph"}static clone(e){return new rd(e.__key)}createDOM(e){let t=document.createElement("p"),n=ii(e.theme,"paragraph");return void 0!==n&&t.classList.add(...n),t}updateDOM(e,t,n){return!1}static importDOM(){return{p:e=>({conversion:rf,priority:0})}}exportDOM(e){let{element:t}=super.exportDOM(e);if(iT(t)){this.isEmpty()&&t.append(document.createElement("br"));let e=this.getFormatType();e&&(t.style.textAlign=e)}return{element:t}}static importJSON(e){return rg().updateFromJSON(e)}exportJSON(){return{...super.exportJSON(),textFormat:this.getTextFormat(),textStyle:this.getTextStyle()}}insertNewAfter(e,t){let n=rg();n.setTextFormat(e.format),n.setTextStyle(e.style);let r=this.getDirection();return n.setDirection(r),n.setFormat(this.getFormatType()),n.setStyle(this.getStyle()),this.insertAfter(n,t),n}collapseAtStart(){let e=this.getChildren();if(0===e.length||t4(e[0])&&""===e[0].getTextContent().trim()){if(null!==this.getNextSibling())return this.selectNext(),this.remove(),!0;if(null!==this.getPreviousSibling())return this.selectPrevious(),this.remove(),!0}return!1}}function rf(e){let t=rg();return e.style&&(t.setFormat(e.style.textAlign),iK(e,t)),{node:t}}function rg(){return ix(new rd)}function rh(e){return e instanceof rd}let rp=0,rm=1,ry=2,rv=3,r_=4;function rb(e,t,n,r){let i=e._keyToDOMMap;i.clear(),e._editorState=rt(),e._pendingEditorState=r,e._compositionKey=null,e._dirtyType=0,e._cloneNotNeeded.clear(),e._dirtyLeaves=new Set,e._dirtyElements.clear(),e._normalizedNodes=new Set,e._updateTags=new Set,e._updates=[],e._blockCursorElement=null;let l=e._observer;null!==l&&(l.disconnect(),e._observer=null),null!==t&&(t.textContent=""),null!==n&&(n.textContent="",i.set("root",n))}function rx(e){let t,n=e||{},r=nO,i=n.theme||{},l=void 0===e?r:n.parentEditor||null,o=n.disableEvents||!1,s=rt(),a=n.namespace||(null!==l?l._config.namespace:r2()),u=n.editorState,c=[n8,tV,tB,t7,rd,rc,...n.nodes||[]],{onError:d,html:f}=n,g=void 0===n.editable||n.editable;if(void 0===e&&null!==r)t=r._nodes;else{t=new Map;for(let e=0;e<c.length;e++){let n=c[e],r=null,i=null;if("function"!=typeof n){let e=n;n=e.replace,r=e.with,i=e.withKlass||null}let{ownNodeConfig:l}=iW(n),o=n.getType(),s=n.transform(),a=new Set;l&&l.$transform&&a.add(l.$transform),null!==s&&a.add(s),t.set(o,{exportDOM:f&&f.export?f.export.get(n):void 0,klass:n,replace:r,replaceWithKlass:i,sharedNodeState:L(c[e]),transforms:a})}}let h=new rS(s,l,t,{disableEvents:o,namespace:a,theme:i},d||console.error,function(e,t){let n=new Map,r=new Set,i=e=>{Object.keys(e).forEach(t=>{let r=n.get(t);void 0===r&&(r=[],n.set(t,r)),r.push(e[t])})};
1return e.forEach(e=>{let t=e.klass.importDOM;if(null==t||r.has(t))return;r.add(t);let n=t.call(e.klass);null!==n&&i(n)}),t&&i(t),n}(t,f?f.import:void 0),g,e);return void 0!==u&&(h._pendingEditorState=u,h._dirtyType=2),h}class rS{constructor(e,t,n,r,i,l,o,s){this._createEditorArgs=s,this._parentEditor=t,this._rootElement=null,this._editorState=e,this._pendingEditorState=null,this._compositionKey=null,this._deferred=[],this._keyToDOMMap=new Map,this._updates=[],this._updating=!1,this._listeners={decorator:new Set,editable:new Set,mutation:new Map,root:new Set,textcontent:new Set,update:new Set},this._commands=new Map,this._config=r,this._nodes=n,this._decorators={},this._pendingDecorators=null,this._dirtyType=0,this._cloneNotNeeded=new Set,this._dirtyLeaves=new Set,this._dirtyElements=new Map,this._normalizedNodes=new Set,this._updateTags=new Set,this._observer=null,this._key=r2(),this._onError=i,this._htmlConversions=l,this._editable=o,this._headless=null!==t&&t._headless,this._window=null,this._blockCursorElement=null}isComposing(){return null!=this._compositionKey}registerUpdateListener(e){let t=this._listeners.update;return t.add(e),()=>{t.delete(e)}}registerEditableListener(e){let t=this._listeners.editable;return t.add(e),()=>{t.delete(e)}}registerDecoratorListener(e){let t=this._listeners.decorator;return t.add(e),()=>{t.delete(e)}}registerTextContentListener(e){let t=this._listeners.textcontent;return t.add(e),()=>{t.delete(e)}}registerRootListener(e){let t=this._listeners.root;return e(this._rootElement,null),t.add(e),()=>{e(null,this._rootElement),t.delete(e)}}registerCommand(e,t,n){void 0===n&&r(35);let i=this._commands;i.has(e)||i.set(e,[new Set,new Set,new Set,new Set,new Set]);let l=i.get(e);void 0===l&&r(36,String(e));let o=l[n];return o.add(t),()=>{o.delete(t),l.every(e=>0===e.size)&&i.delete(e)}}registerMutationListener(e,t,n){let r=this.resolveRegisteredNodeAfterReplacements(this.getRegisteredNode(e)).klass,i=this._listeners.mutation,l=i.get(t);void 0===l&&(l=new Set,i.set(t,l)),l.add(r);let o=n&&n.skipInitialization;return void 0!==o&&o||this.initializeMutationListener(t,r),()=>{l.delete(r),0===l.size&&i.delete(t)}}getRegisteredNode(e){let t=this._nodes.get(e.getType());return void 0===t&&r(37,e.name),t}resolveRegisteredNodeAfterReplacements(e){for(;e.replaceWithKlass;)e=this.getRegisteredNode(e.replaceWithKlass);return e}initializeMutationListener(e,t){let n=this._editorState,r=iD(n).get(t.getType());if(!r)return;let i=new Map;for(let e of r.keys())i.set(e,"created");i.size>0&&e(i,{dirtyLeaves:new Set,prevEditorState:n,updateTags:new Set(["registerMutationListener"])})}registerNodeTransformToKlass(e,t){let n=this.getRegisteredNode(e);return n.transforms.add(t),n}registerNodeTransform(e,t){let n=this.registerNodeTransformToKlass(e,t),r=[n],i=n.replaceWithKlass;if(null!=i){let e=this.registerNodeTransformToKlass(i,t);r.push(e)}return function(e,t){let n=iD(e.getEditorState()),r=[];for(let e of t){let t=n.get(e);t&&r.push(t)}0!==r.length&&e.update(()=>{for(let e of r)for(let t of e.keys()){let e=rJ(t);e&&e.markDirty()}},null===e._pendingEditorState?{tag:rl}:void 0)}(this,r.map(e=>e.klass.getType())),()=>{r.forEach(e=>e.transforms.delete(t))}}hasNode(e){return this._nodes.has(e.getType())}hasNodes(e){return e.every(this.hasNode.bind(this))}dispatchCommand(e,t){return iu(this,e,t)}getDecorators(){return this._decorators}getRootElement(){return this._rootElement}getKey(){return this._key}setRootElement(e){let t=this._rootElement;if(e!==t){let n=ii(this._config.theme,"root"),i=this._pendingEditorState||this._editorState;if(this._rootElement=e,rb(this,t,e,i),null!==t&&(this._config.disableEvents||function(e){let t=e.ownerDocument,n=th.get(t);if(void 0===n)return;let i=n-1;i>=0||r(164),th.set(t,i),0===i&&t.removeEventListener("selectionchange",tM);let l=rM(e);rF(l)?(!function(e){if(null!==e._parentEditor){let t=r1(e),n=t[t.length-1]._key;tR.get(n)===e&&tR.delete(n)}else tR.delete(e._key)}(l),e.__lexicalEditor=null):l&&r(198);let o=tF(e);for(let e=0;e<o.length;e++)o[e]();e.__lexicalEventHandles=[]}(t),null!=n&&t.classList.remove(...n)),null!==e){let t=im(e),r=e.style;r.userSelect="text",r.whiteSpace="pre-wrap",r.wordBreak="break-word",e.setAttribute("data-lexical-editor","true"),this._window=t,this._dirtyType=2,P(this),this._updateTags.add(rl),nG(this),this._config.disableEvents||function(e,t){let n=e.ownerDocument,r=th.get(n);(void 0===r||r<1)&&n.addEventListener("selectionchange",tM),th.set(n,(r||0)+1),e.__lexicalEditor=t;let i=tF(e);for(let n=0;n<tu.length;n++){let[r,l]=tu[n],o="function"==typeof l?e=>
1{tI(e)||(tO(e),(t.isEditable()||"click"===r)&&l(e,t))}:e=>{if(tI(e))return;tO(e);let n=t.isEditable();switch(r){case"cut":return n&&iu(t,e9,e);case"copy":return iu(t,e8,e);case"paste":return n&&iu(t,eI,e);case"dragstart":return n&&iu(t,e5,e);case"dragover":return n&&iu(t,e7,e);case"dragend":return n&&iu(t,e6,e);case"focus":return n&&iu(t,tl,e);case"blur":return n&&iu(t,to,e);case"drop":return n&&iu(t,e3,e)}};e.addEventListener(r,o),i.push(()=>{e.removeEventListener(r,o)})}}(e,this),null!=n&&e.classList.add(...n)}else this._window=null,this._updateTags.add(rl),nG(this);nY("root",this,!1,e,t)}}getElementByKey(e){return this._keyToDOMMap.get(e)||null}getEditorState(){return this._editorState}setEditorState(e,t){e.isEmpty()&&r(38);let n=e;n._readOnly&&((n=re(e))._selection=e._selection?e._selection.clone():null),I(this);let i=this._pendingEditorState,l=this._updateTags,o=void 0!==t?t.tag:null;null===i||i.isEmpty()||(null!=o&&l.add(o),nG(this)),this._pendingEditorState=n,this._dirtyType=2,this._dirtyElements.set("root",!1),this._compositionKey=null,null!=o&&l.add(o),this._updating||nG(this)}parseEditorState(e,t){return function(e,t,n){let r=rt(),i=nM,l=nI,o=nO,s=t._dirtyElements,a=t._dirtyLeaves,u=t._cloneNotNeeded,c=t._dirtyType;t._dirtyElements=new Map,t._dirtyLeaves=new Set,t._cloneNotNeeded=new Set,t._dirtyType=0,nM=r,nI=!1,nO=t,rw=null;try{let i=t._nodes;nZ(e.root,i),n&&n(),r._readOnly=!0}catch(e){e instanceof Error&&t._onError(e)}finally{t._dirtyElements=s,t._dirtyLeaves=a,t._cloneNotNeeded=u,t._dirtyType=c,nM=i,nI=l,nO=o}return r}("string"==typeof e?JSON.parse(e):e,this,t)}read(e){return nG(this),this.getEditorState().read(e,{editor:this})}update(e,t){this._updating?this._updates.push([e,t]):nQ(this,e,t)}focus(e,t={}){let n=this._rootElement;null!==n&&(n.setAttribute("autocapitalize","off"),n0(this,()=>{var r,i;let l=nS(),o=rG();null!==l?l.dirty||rX(l.clone()):0!==o.getChildrenSize()&&("rootStart"===t.defaultSelection?o.selectStart():o.selectEnd()),r="focus",nK(),nW()._updateTags.add(r),i=()=>{n.removeAttribute("autocapitalize"),e&&e()},nK(),nW()._deferred.push(i)}),null===this._pendingEditorState&&n.removeAttribute("autocapitalize"))}blur(){let e=this._rootElement;null!==e&&e.blur();let t=ik(this._window);null!==t&&t.removeAllRanges()}isEditable(){return this._editable}setEditable(e){this._editable!==e&&(this._editable=e,nY("editable",this,!0,e))}toJSON(){return{editorState:this._editorState.toJSON()}}}rS.version="0.34.0+prod.esm";let rw=null,rC=1;function rk(e,t){let n=rE(e,t);return void 0===n&&r(30,t),n}function rE(e,t){return e._nodes.get(t)}let rT="function"==typeof queueMicrotask?queueMicrotask:e=>{Promise.resolve().then(e)};function rA(e){let t=document.activeElement;if(!iT(t))return!1;let n=t.nodeName;return n6(rq(e))&&("INPUT"===n||"TEXTAREA"===n||"true"===t.contentEditable&&null==rM(t))}function rN(e,t,n){let r=e.getRootElement();try{return null!==r&&r.contains(t)&&r.contains(n)&&null!==t&&!rA(t)&&rR(t)===e}catch(e){return!1}}function rF(e){return e instanceof rS}function rR(e){let t=e;for(;null!=t;){let e=rM(t);if(rF(e))return e;t=ig(t)}return null}function rM(e){return e?e.__lexicalEditor:null}function rO(e){return t8(e)||e.isToken()}function rI(e){return rO(e)||e.isSegmented()}
1function rP(e){return iA(e)&&3===e.nodeType}function rL(e){let t=e;for(;null!=t;){if(rP(t))return t;t=t.firstChild}return null}function rD(e,t,n){let r=S[t];if(null!==n&&(e&r)==(n&r))return e;let i=e^r;return"subscript"===t?i&=~S.superscript:"superscript"===t?i&=~S.subscript:"lowercase"===t?(i&=~S.uppercase,i&=~S.capitalize):"uppercase"===t?(i&=~S.lowercase,i&=~S.capitalize):"capitalize"===t&&(i&=~S.lowercase,i&=~S.uppercase),i}function rB(e){return t4(e)||t$(e)||n6(e)}function rK(e,t){let n=function(){let e=rw;return rw=null,e}();if(null!=(t=t||n&&n.__key))return void(e.__key=t);nK(),nz();let r=nW(),i=n$(),l=""+rC++;i._nodeMap.set(l,e),n4(e)?r._dirtyElements.set(l,!0):r._dirtyLeaves.add(l),r._cloneNotNeeded.add(l),r._dirtyType=1,e.__key=l}function rz(e){let t=e.getParent();if(null!==t){let n=e.getWritable(),r=t.getWritable(),i=e.getPreviousSibling(),l=e.getNextSibling(),o=null!==l?l.__key:null,s=null!==i?i.__key:null,a=null!==i?i.getWritable():null,u=null!==l?l.getWritable():null;null===i&&(r.__first=o),null===l&&(r.__last=s),null!==a&&(a.__next=o),null!==u&&(u.__prev=s),n.__prev=null,n.__next=null,n.__parent=null,r.__size--}}function r$(e){nz();let t=e.getLatest(),n=t.__parent,r=n$(),i=nW(),l=r._nodeMap,o=i._dirtyElements;null!==n&&function(e,t,n){let r=e;for(;null!==r;){if(n.has(r))return;let e=t.get(r);if(void 0===e)break;n.set(r,!1),r=e.__parent}}(n,l,o);let s=t.__key;i._dirtyType=1,n4(e)?o.set(s,!0):i._dirtyLeaves.add(s)}function rW(e){nK();let t=nW(),n=t._compositionKey;if(e!==n){if(t._compositionKey=e,null!==n){let e=rJ(n);null!==e&&e.getWritable()}if(null!==e){let t=rJ(e);null!==t&&t.getWritable()}}}function rj(){return nB()?null:nW()._compositionKey}function rJ(e,t){let n=(t||n$())._nodeMap.get(e);return void 0===n?null:n}function rH(e,t){let n=rU(e,nW());return void 0!==n?rJ(n,t):null}function rU(e,t){return e[`__lexicalKey_${t._key}`]}function rq(e,t){let n=e;for(;null!=n;){let e=rH(n,t);if(null!==e)return e;n=ig(n)}return null}function rZ(e){let t=Object.assign({},e._decorators);return e._pendingDecorators=t,t}function rV(e){return e.read(()=>rG().getTextContent())}function rG(){return rY(n$())}function rY(e){return e._nodeMap.get("root")}function rX(e){nK();let t=n$();null!==e&&(e.dirty=!0,e.setCachedNodes(null)),t._selection=e}function rQ(e){let t=nW(),n=function(e,t){let n=e;for(;null!=n;){let e=rU(n,t);if(void 0!==e)return e;n=ig(n)}return null}(e,t);return null===n?e===t.getRootElement()?rJ("root"):null:rJ(n)}function r0(e){return/[\uD800-\uDBFF][\uDC00-\uDFFF]/g.test(e)}function r1(e){let t=[],n=e;for(;null!==n;)t.push(n),n=n._parentEditor;return t}function r2(){return Math.random().toString(36).replace(/[^a-z]+/g,"").substring(0,5)}function r3(e){return rP(e)?e.nodeValue:null}function r4(e,t,n){let r=ik(iy(t));if(null===r)return;let i=r.anchorNode,{anchorOffset:l,focusOffset:o}=r;if(null!==i){let t=r3(i),r=rq(i);if(null!==t&&t4(r)){if(t===m&&n){let e=n.length;t=n,l=e,o=e}null!==t&&r5(r,t,l,o,e)}}}function r5(e,t,n,r,i){let l=e;if(l.isAttached()&&(i||!l.isDirty())){let o=l.isComposing(),s=t;(o||i)&&t[t.length-1]===m&&(s=t.slice(0,-1));let a=l.getTextContent();if(i||s!==a){if(""===s){if(rW(null),u||c||h)l.remove();else{let e=nW();setTimeout(()=>{e.update(()=>{l.isAttached()&&l.remove()})},20)}return}let t=l.getParent(),i=nw(),a=l.getTextContentSize(),d=rj(),f=l.getKey();if(l.isToken()||null!==d&&f===d&&!o||ni(i)&&(null!==t&&!t.canInsertTextBefore()&&0===i.anchor.offset||i.anchor.key===e.__key&&0===i.anchor.offset&&!l.canInsertTextBefore()&&!o||i.focus.key===e.__key&&i.focus.offset===a&&!l.canInsertTextAfter()&&!o))return void l.markDirty();let g=nS();if(!ni(g)||null===n||null===r)return void r7(l,s,g);if(g.setTextNodeRange(l,n,l,r),l.isSegmented()){let e=t3(l.getTextContent());l.replace(e),l=e}r7(l,s,g)}}}function r7(e,t,n){if(e.setTextContent(t),ni(n)){let t=e.getKey();for(let r of["anchor","focus"]){let i=n[r];"text"===i.type&&i.key===t&&(i.offset=i5(e,i.offset,"clamp"))}}}function r6(e,t,n){let r=t[n]||!1;return"any"===r||r===e[n]}function r8(e,t,n){return r6(e,n,"altKey")&&r6(e,n,"ctrlKey")&&r6(e,n,"shiftKey")&&r6(e,n,"metaKey")&&e.key.toLowerCase()===t.toLowerCase()}let r9={ctrlKey:!o,metaKey:o},ie={altKey:o,ctrlKey:!o};function it(e){return"Backspace"===e.key}function ir(e){let t=rG();if(ni(e)){let t=e.anchor,n=e.focus,r=t.getNode().getTopLevelElementOrThrow().getParentOrThrow();return t.set(r.getKey(),0,"element"),n.set(r.getKey(),r.getChildrenSize(),"element"),U(e),e}{let e=t.select(0,t.getChildrenSize());return rX(U(e)),e}}
1function ii(e,t){void 0===e.__lexicalClassNameCache&&(e.__lexicalClassNameCache={});let n=e.__lexicalClassNameCache,r=n[t];if(void 0!==r)return r;let i=e[t];if("string"==typeof i){let e=p(i);return n[t]=e,e}return i}function il(e,t,n,i,l){if(0===n.size)return;let o=i.__type,s=i.__key,a=t.get(o);void 0===a&&r(33,o);let u=a.klass,c=e.get(u);void 0===c&&(c=new Map,e.set(u,c));let d=c.get(s),f="destroyed"===d&&"created"===l;(void 0===d||f)&&c.set(s,f?"updated":l)}function io(e,t,n){let r=e.getParent(),i=n,l=e;return null!==r&&(t&&0===n?(i=l.getIndexWithinParent(),l=r):t||n!==l.getChildrenSize()||(i=l.getIndexWithinParent()+1,l=r)),l.getChildAtIndex(t?i-1:i)}function is(e,t){let n=e.offset;if("element"===e.type)return io(e.getNode(),t,n);{let r=e.getNode();if(t&&0===n||!t&&n===r.getTextContentSize()){let e=t?r.getPreviousSibling():r.getNextSibling();return null===e?io(r.getParentOrThrow(),t,r.getIndexWithinParent()+ +!t):e}}return null}function ia(e){let t=iy(e).event,n=t&&t.inputType;return"insertFromPaste"===n||"insertFromPasteAsQuotation"===n}function iu(e,t,n){return function(e,t,n){let r=r1(e);for(let i=4;i>=0;i--)for(let l=0;l<r.length;l++){let o=r[l],s=o._commands.get(t);if(void 0!==s){let t=s[i];if(void 0!==t){let r=Array.from(t),i=r.length,l=!1;if(n0(o,()=>{for(let t=0;t<i;t++)if(r[t](n,e))return void(l=!0)}),l)return l}}}return!1}(e,t,n)}function ic(e){return!n9(e)&&!e.isLastChild()&&!e.isInline()}function id(e,t){let n=e._keyToDOMMap.get(t);return void 0===n&&r(75,t),n}function ig(e){let t=e.assignedSlot||e.parentElement;return iN(t)?t.host:t}function ih(e){return iA(e)&&9===e.nodeType?e:iT(e)?e.ownerDocument:null}function ip(e,t){let n=e.getParent();for(;null!==n;){if(n.is(t))return!0;n=n.getParent()}return!1}function im(e){let t=ih(e);return t?t.defaultView:null}function iy(e){let t=e._window;return null===t&&r(78),t}function iv(e){return n4(e)&&e.isInline()||n6(e)&&e.isInline()}function i_(e){return n9(e)||n4(e)&&e.isShadowRoot()}function ib(e){let t=e.constructor.clone(e);return rK(t,null),t.afterCloneFrom(e),t}function ix(e){let t=nW(),n=e.getType(),i=rE(t,n);void 0===i&&r(200,e.constructor.name,n);let{replace:l,replaceWithKlass:o}=i;if(null!==l){let t=l(e),i=t.constructor;return null!==o?t instanceof o||r(201,o.name,o.getType(),i.name,i.getType(),e.constructor.name,n):t instanceof e.constructor&&i!==e.constructor||r(202,i.name,i.getType(),e.constructor.name,n),t.__key===e.__key&&r(203,e.constructor.name,n,i.name,i.getType()),t}return e}function iS(e,t){!n9(e.getParent())||n4(t)||n6(t)||r(99)}function iw(e){return(n6(e)||n4(e)&&!e.canBeEmpty())&&!e.isInline()}function iC(e,t,n){n.style.removeProperty("caret-color"),t._blockCursorElement=null;let r=e.parentElement;null!==r&&r.removeChild(e)}function ik(e){return i?(e||window).getSelection():null}function iE(e){return iT(e)&&"A"===e.tagName}function iT(e){return iA(e)&&1===e.nodeType}function iA(e){return"object"==typeof e&&null!==e&&"nodeType"in e&&"number"==typeof e.nodeType}function iN(e){return iA(e)&&11===e.nodeType}function iF(e){let t=RegExp(/^(a|abbr|acronym|b|cite|code|del|em|i|ins|kbd|label|mark|output|q|ruby|s|samp|span|strong|sub|sup|time|u|tt|var|#text)$/,"i");return null!==e.nodeName.match(t)}function iR(e){let t=RegExp(/^(address|article|aside|blockquote|canvas|dd|div|dl|dt|fieldset|figcaption|figure|footer|form|h1|h2|h3|h4|h5|h6|header|hr|li|main|nav|noscript|ol|p|pre|section|table|td|tfoot|ul|video)$/,"i");return null!==e.nodeName.match(t)}function iM(e){if(n6(e)&&!e.isInline())return!0;if(!n4(e)||i_(e))return!1;let t=e.getFirstChild(),n=null===t||t$(t)||t4(t)||t.isInline();return!e.isInline()&&!1!==e.canBeEmpty()&&n}function iO(e,t){let n=e;for(;null!==n&&null!==n.getParent()&&!t(n);)n=n.getParentOrThrow();return t(n)?n:null}function iI(){return nW()}let iP=new WeakMap,iL=new Map;function iD(e){if(!e._readOnly&&e.isEmpty())return iL;e._readOnly||r(192);let t=iP.get(e);return t||(t=function(e){let t=new Map;for(let[n,r]of e._nodeMap){let e=r.__type,i=t.get(e);i||(i=new Map,t.set(e,i)),i.set(n,r)}return t}(e),iP.set(e,t)),t}function iB(e){let t=e.constructor.clone(e);return t.afterCloneFrom(e),t}function iK(e,t){let n=Math.round((parseInt(e.style.paddingInlineStart,10)||0)/40);t.setIndent(n)}function iz(e){e.__lexicalUnmanaged=!0}function i$(e,t){return Object.prototype.hasOwnProperty.call(e,t)&&e[t]!==tD[t]}function iW(e){let t=A in e.prototype?e.prototype[A]():void 0,n=e===n7||e===n3||e===tD,r=!n&&i$(e,"getType")?e.getType():void 0,i,l=r;if(t)if(r)i=t[r];else for(let[e,n]of Object.entries(t))l=e,i=n;if(!n&&l&&(i$(e,"getType")||(e.getType=()=>l),i$(e,"clone")||(e.clone=t=>(rw=t,new e)),i$(e,"importJSON")||(e.importJSON=i&&i.$importJSON||(t=>
1(new e).updateFromJSON(t))),!i$(e,"importDOM")&&i)){let{importDOM:t}=i;t&&(e.importDOM=()=>t)}return{ownNodeConfig:i,ownNodeType:l}}function ij(e){let t=iI();return nK(),new(t.resolveRegisteredNodeAfterReplacements(t.getRegisteredNode(e))).klass}let iJ={next:"previous",previous:"next"};class iH{constructor(e){this.origin=e}[Symbol.iterator](){return li({hasNext:iX,initial:this.getAdjacentCaret(),map:e=>e,step:e=>e.getAdjacentCaret()})}getAdjacentCaret(){return i3(this.getNodeAtCaret(),this.direction)}getSiblingCaret(){return i3(this.origin,this.direction)}remove(){let e=this.getNodeAtCaret();return e&&e.remove(),this}replaceOrInsert(e,t){let n=this.getNodeAtCaret();return e.is(this.origin)||e.is(n)||(null===n?this.insert(e):n.replace(e,t)),this}splice(e,t,n="next"){let i=n===this.direction?t:Array.from(t).reverse(),l=this,o=this.getParentAtCaret(),s=new Map;for(let t=l.getAdjacentCaret();null!==t&&s.size<e;t=t.getAdjacentCaret()){let e=t.origin.getWritable();s.set(e.getKey(),e)}for(let e of i){if(s.size>0){let t=l.getNodeAtCaret();if(t)if(s.delete(t.getKey()),s.delete(e.getKey()),t.is(e)||l.origin.is(e));else{let n=e.getParent();n&&n.is(o)&&e.remove(),t.replace(e)}else null===t&&r(263,Array.from(s).join(" "))}else l.insert(e);l=i3(e,this.direction)}for(let e of s.values())e.remove();return this}}class iU extends iH{type="child";getLatest(){let e=this.origin.getLatest();return e===this.origin?this:i7(e,this.direction)}getParentCaret(e="root"){return i3(iZ(this.getParentAtCaret(),e),this.direction)}getFlipped(){let e=iJ[this.direction];return i3(this.getNodeAtCaret(),e)||i7(this.origin,e)}getParentAtCaret(){return this.origin}getChildCaret(){return this}isSameNodeCaret(e){return e instanceof iU&&this.direction===e.direction&&this.origin.is(e.origin)}isSamePointCaret(e){return this.isSameNodeCaret(e)}}let iq={root:n9,shadowRoot:i_};function iZ(e,t="root"){return iq[t](e)?null:e}class iV extends iH{type="sibling";getLatest(){let e=this.origin.getLatest();return e===this.origin?this:i3(e,this.direction)}getSiblingCaret(){return this}getParentAtCaret(){return this.origin.getParent()}getChildCaret(){return n4(this.origin)?i7(this.origin,this.direction):null}getParentCaret(e="root"){return i3(iZ(this.getParentAtCaret(),e),this.direction)}getFlipped(){let e=iJ[this.direction];return i3(this.getNodeAtCaret(),e)||i7(this.origin.getParentOrThrow(),e)}isSamePointCaret(e){return e instanceof iV&&this.direction===e.direction&&this.origin.is(e.origin)}isSameNodeCaret(e){return(e instanceof iV||e instanceof iG)&&this.direction===e.direction&&this.origin.is(e.origin)}}class iG extends iH{type="text";constructor(e,t){super(e),this.offset=t}getLatest(){let e=this.origin.getLatest();return e===this.origin?this:i4(e,this.direction,this.offset)}getParentAtCaret(){return this.origin.getParent()}getChildCaret(){return null}getParentCaret(e="root"){return i3(iZ(this.getParentAtCaret(),e),this.direction)}getFlipped(){return i4(this.origin,iJ[this.direction],this.offset)}isSamePointCaret(e){return e instanceof iG&&this.direction===e.direction&&this.origin.is(e.origin)&&this.offset===e.offset}isSameNodeCaret(e){return(e instanceof iV||e instanceof iG)&&this.direction===e.direction&&this.origin.is(e.origin)}getSiblingCaret(){return i3(this.origin,this.direction)}}function iY(e){return e instanceof iG}function iX(e){return e instanceof iV}function iQ(e){return e instanceof iU}let i0={next:class extends iG{direction="next";getNodeAtCaret(){return this.origin.getNextSibling()}insert(e){return this.origin.insertAfter(e),this}},previous:class extends iG{direction="previous";getNodeAtCaret(){return this.origin.getPreviousSibling()}insert(e){return this.origin.insertBefore(e),this}}},i1={next:class extends iV{direction="next";getNodeAtCaret(){return this.origin.getNextSibling()}insert(e){return this.origin.insertAfter(e),this}},previous:class extends iV{direction="previous";getNodeAtCaret(){return this.origin.getPreviousSibling()}insert(e){return this.origin.insertBefore(e),this}}},i2={next:class extends iU{direction="next";getNodeAtCaret(){return this.origin.getFirstChild()}insert(e){return this.origin.splice(0,0,[e]),this}},previous:class extends iU{direction="previous";getNodeAtCaret(){return this.origin.getLastChild()}insert(e){return this.origin.splice(this.origin.getChildrenSize(),0,[e]),this}}};function i3(e,t){return e?new i1[t](e):null}function i4(e,t,n){return e?new i0[t](e,i5(e,n)):null}function i5(e,t,n="error"){let r=e.getTextContentSize(),i="next"===t?r:"previous"===t?0:t;return(i<0||i>r)&&("clamp"!==n&&function(e,...t){let n=new URL("https://lexical.dev/docs/error"),r=new URLSearchParams;for(let e of(r.append("code",284),t))r.append("v",e);n.search=r.toString(),console.warn(`Minified Lexical warning #${284}; visit ${n.toString()} for the full message or use the non-minified dev environment for full errors and additional helpful warnings.`)}
1(284,String(t),String(r),e.getKey()),i=i<0?0:r),i}function i7(e,t){return n4(e)?new i2[t](e):null}function i6(e){return e&&e.getChildCaret()||e}function i8(e){return e&&i6(e.getAdjacentCaret())}class i9{type="node-caret-range";constructor(e,t,n){this.anchor=e,this.focus=t,this.direction=n}getLatest(){let e=this.anchor.getLatest(),t=this.focus.getLatest();return e===this.anchor&&t===this.focus?this:new i9(e,t,this.direction)}isCollapsed(){return this.anchor.isSamePointCaret(this.focus)}getTextSlices(){let e=e=>{let t=this[e].getLatest();return iY(t)?function(e,t){let{direction:n,origin:r}=e;return new le(e,i5(r,"focus"===t?iJ[n]:n)-e.offset)}(t,e):null},t=e("anchor"),n=e("focus");if(t&&n){let{caret:e}=t,{caret:r}=n;if(e.isSameNodeCaret(r))return[new le(e,r.offset-e.offset),null]}return[t,n]}iterNodeCarets(e="root"){let t=iY(this.anchor)?this.anchor.getSiblingCaret():this.anchor.getLatest(),n=this.focus.getLatest(),r=iY(n),i=t=>t.isSameNodeCaret(n)?null:i8(t)||t.getParentCaret(e);return li({hasNext:e=>null!==e&&!(r&&n.isSameNodeCaret(e)),initial:t.isSameNodeCaret(n)?null:i(t),map:e=>e,step:i})}[Symbol.iterator](){return this.iterNodeCarets("root")}}class le{type="slice";constructor(e,t){this.caret=e,this.distance=t}getSliceIndices(){let{distance:e,caret:{offset:t}}=this,n=t+e;return n<t?[n,t]:[t,n]}getTextContent(){let[e,t]=this.getSliceIndices();return this.caret.origin.getTextContent().slice(e,t)}getTextContentSize(){return Math.abs(this.distance)}removeTextSlice(){let{caret:{origin:e,direction:t}}=this,[n,r]=this.getSliceIndices(),i=e.getTextContent();return i4(e.setTextContent(i.slice(0,n)+i.slice(r)),t,n)}}function lt(e){return lr(e,i3(rG(),e.direction))}function ln(e){return lr(e,e)}function lr(e,t){return e.direction!==t.direction&&r(265),new i9(e,t,e.direction)}function li(e){let{initial:t,hasNext:n,step:r,map:i}=e,l=t;return{[Symbol.iterator](){return this},next(){if(!n(l))return{done:!0,value:void 0};let e={done:!1,value:i(l)};return l=r(l),e}}}function ll(e,t){let n=la(e.origin,t.origin);switch(null===n&&r(275,e.origin.getKey(),t.origin.getKey()),n.type){case"same":{let n="text"===e.type,r="text"===t.type;return n&&r?Math.sign(e.offset-t.offset):e.type===t.type?0:n?-1:r?1:"child"===e.type?-1:1}case"ancestor":return"child"===e.type?-1:1;case"descendant":return"child"===t.type?1:-1;case"branch":return lo(n)}}function lo(e){let{a:t,b:n}=e,r=t.__key,i=n.__key,l=t,o=n;for(;l&&o;l=l.getNextSibling(),o=o.getNextSibling()){if(l.__key===i)return -1;if(o.__key===r)return 1}return null===l?1:-1}function ls(e){return n4(e)?[e.getLatest(),null]:[e.getParent(),e.getLatest()]}function la(e,t){if(e.is(t))return{commonAncestor:e,type:"same"};let n=new Map;for(let[t,r]=ls(e);t;r=t,t=t.getParent())n.set(t,r);for(let[i,l]=ls(t);i;l=i,i=i.getParent()){let o=n.get(i);if(void 0!==o)return null===o?(i.is(e)||r(276),{commonAncestor:i,type:"ancestor"}):null===l?(i.is(t)||r(277),{commonAncestor:i,type:"descendant"}):((n4(o)||o.is(e))&&(n4(l)||l.is(t))&&i.is(o.getParent())&&i.is(l.getParent())||r(278),{a:o,b:l,commonAncestor:i,type:"branch"})}return null}function lu(e,t){let{type:n,key:i,offset:l}=e,o=function(e){let t=rJ(e);return null===t&&r(63,e),t}(e.key);return"text"===n?(t4(o)||r(266,o.getType(),i),i4(o,t,l)):(n4(o)||r(267,o.getType(),i),function(e,t,n){let r=i7(e,"next");for(let e=0;e<t;e++){let e=r.getAdjacentCaret();if(null===e)break;r=e}return l_(r,n)}(o,e.offset,t))}function lc(e,t){let{origin:n,direction:i}=t,l="next"===i;iY(t)?e.set(n.getKey(),t.offset,"text"):iX(t)?t4(n)?e.set(n.getKey(),i5(n,i),"text"):e.set(n.getParentOrThrow().getKey(),n.getIndexWithinParent()+ +!!l,"element"):(iQ(t)&&n4(n)||r(268),e.set(n.getKey(),l?0:n.getChildrenSize(),"element"))}function ld(e){let t=nS(),n=ni(t)?t:nv();return lf(n,e),rX(n),n}function lf(e,t){lc(e.anchor,t.anchor),lc(e.focus,t.focus)}function lg(e){let{anchor:t,focus:n}=e,r=lu(t,"next"),i=lu(n,"next"),l=0>=ll(r,i)?"next":"previous";return lr(l_(r,l),l_(i,l))}function lh(e){let{direction:t,origin:n}=e,r=i3(n,iJ[t]).getNodeAtCaret();return r?i3(r,t):i7(n.getParentOrThrow(),t)}function lp(e,t="root"){let n=[e];for(let r=iQ(e)?e.getParentCaret(t):e.getSiblingCaret();null!==r;
1r=r.getParentCaret(t))n.push(lh(r));return n}function lm(e){return!!e&&e.origin.isAttached()}function ly(e){let t=function(e){let t=e;for(;iQ(t);){let e=i8(t);if(!iQ(e))break;t=e}return t}(e.getLatest()),{direction:n}=t;if(t4(t.origin))return iY(t)?t:i4(t.origin,n,n);let r=t.getAdjacentCaret();return iX(r)&&t4(r.origin)?i4(r.origin,n,iJ[n]):t}function lv(e){return iY(e)&&e.offset!==i5(e.origin,e.direction)}function l_(e,t){return e.direction===t?e:e.getFlipped()}function lb(e,t){return e.direction===t?e:lr(l_(e.focus,t),l_(e.anchor,t))}function lx(e){let{origin:t,offset:n,direction:i}=e;if(n===i5(t,i))return e.getSiblingCaret();if(n===i5(t,iJ[i]))return lh(e.getSiblingCaret());let[l]=t.splitText(n);return t4(l)||r(281),l_(i3(l,"next"),i)}function lS(e,t){return!0}function lw(e,{$copyElementNode:t=ib,$splitTextPointCaretNext:n=lx,rootMode:r="shadowRoot",$shouldSplit:i=lS}={}){if(iY(e))return n(e);let l=e.getParentCaret(r);if(l){let{origin:n}=l;if(iQ(e)&&(!n.canBeEmpty()||!i(n,"first")))return lh(l);let r=function(e){let t=[];for(let n=e.getAdjacentCaret();n;n=n.getAdjacentCaret())t.push(n.origin);return t}(e);(r.length>0||n.canBeEmpty()&&i(n,"last"))&&l.insert(t(n).splice(0,0,r))}return l}},55668:(e,t,n)=>{"use strict";n.d(t,{G:()=>a});var r=n(36997),i=n(43971),l=n(53310);function o(e){e.undoStack=[],e.redoStack=[],e.current=null}var s=n(12115);function a({delay:e,externalHistoryState:t}){let[n]=(0,r.DF)();return function(e,t,n=1e3){let r=(0,s.useMemo)(()=>t||{current:null,redoStack:[],undoStack:[]},[t]);(0,s.useEffect)(()=>(function(e,t,n){let r,s,a=(r=Date.now(),s=0,(t,i,o,a,u,c)=>{let d=Date.now();
1if(c.has(l.n0X))return s=0,r=d,2;let f=function(e,t,n,r,i){if(null===e||0===n.size&&0===r.size&&!i)return 0;let o=t._selection,s=e._selection;if(i)return 1;if(!((0,l.I2P)(o)&&(0,l.I2P)(s)&&s.isCollapsed()&&o.isCollapsed()))return 0;let a=function(e,t,n){let r=e._nodeMap,i=[];for(let e of t){let t=r.get(e);void 0!==t&&i.push(t)}for(let[e,t]of n){if(!t)continue;let n=r.get(e);void 0===n||(0,l.hVZ)(n)||i.push(n)}return i}(t,n,r);if(0===a.length)return 0;if(a.length>1){let n=t._nodeMap,r=n.get(o.anchor.key),i=n.get(s.anchor.key);return r&&i&&!e._nodeMap.has(r.__key)&&(0,l.kFe)(r)&&1===r.__text.length&&1===o.anchor.offset?2:0}let u=a[0],c=e._nodeMap.get(u.__key);if(!(0,l.kFe)(c)||!(0,l.kFe)(u)||c.__mode!==u.__mode)return 0;let d=c.__text,f=u.__text;if(d===f)return 0;let g=o.anchor,h=s.anchor;if(g.key!==h.key||"text"!==g.type)return 0;let p=g.offset,m=h.offset,y=f.length-d.length;return 1===y&&m===p-1?2:-1===y&&m===p+1?3:4*(-1===y&&m===p)}(t,i,a,u,e.isComposing()),g=(()=>{let g=null===o||o.editor===e,h=c.has(l.bMH);if(!h&&g&&c.has(l.T40))return 0;if(null===t)return 1;let p=i._selection;return a.size>0||u.size>0?!1===h&&0!==f&&f===s&&d<r+n&&g||1===a.size&&function(e,t,n){let r=t._nodeMap.get(e),i=n._nodeMap.get(e),o=t._selection,s=n._selection;return!((0,l.I2P)(o)&&(0,l.I2P)(s)&&"element"===o.anchor.type&&"element"===o.focus.type&&"text"===s.anchor.type&&"text"===s.focus.type||!(0,l.kFe)(r)||!(0,l.kFe)(i)||r.__parent!==i.__parent)&&JSON.stringify(t.read(()=>r.exportJSON()))===JSON.stringify(n.read(()=>i.exportJSON()))}(Array.from(a)[0],t,i)?0:1:2*(null===p)})();return r=d,s=f,g});return(0,i.Sd)(e.registerCommand(l.ZKf,()=>((function(e,t){let n=t.redoStack,r=t.undoStack;if(0!==r.length){let i=t.current,o=r.pop();null!==i&&(n.push(i),e.dispatchCommand(l.WWb,!0)),0===r.length&&e.dispatchCommand(l.KfJ,!1),t.current=o||null,o&&o.editor.setEditorState(o.editorState,{tag:l.n0X})}})(e,t),!0),l.jZM),e.registerCommand(l.V30,()=>((function(e,t){let n=t.redoStack,r=t.undoStack;if(0!==n.length){let i=t.current;null!==i&&(r.push(i),e.dispatchCommand(l.KfJ,!0));let o=n.pop();0===n.length&&e.dispatchCommand(l.WWb,!1),t.current=o||null,o&&o.editor.setEditorState(o.editorState,{tag:l.n0X})}})(e,t),!0),l.jZM),e.registerCommand(l.SKc,()=>(o(t),!1),l.jZM),e.registerCommand(l.t5V,()=>(o(t),e.dispatchCommand(l.WWb,!1),e.dispatchCommand(l.KfJ,!1),!0),l.jZM),e.registerUpdateListener(({editorState:n,prevEditorState:r,dirtyLeaves:i,dirtyElements:o,tags:s})=>{let u=t.current,c=t.redoStack,d=t.undoStack,f=null===u?null:u.editorState;if(null!==u&&n===f)return;let g=a(r,n,u,i,o,s);if(1===g)0!==c.length&&(t.redoStack=[],e.dispatchCommand(l.WWb,!1)),null!==u&&(d.push({...u}),e.dispatchCommand(l.KfJ,!0));else if(2===g)return;t.current={editor:e,editorState:n}}))})(e,r,n),[n,e,r])}(n,t,e),null}},57213:(e,t,n)=>{"use strict";n.d(t,{a:()=>d});var r=n(36997),i=n(12115),l=n(95155),o=n(61511),s=n(43971);let a="undefined"!=typeof window&&void 0!==window.document&&void 0!==window.document.createElement?i.useLayoutEffect:i.useEffect,u=(0,i.forwardRef)(function({editor:e,ariaActiveDescendant:t,ariaAutoComplete:n,ariaControls:r,ariaDescribedBy:o,ariaErrorMessage:s,ariaExpanded:u,ariaInvalid:c,ariaLabel:d,ariaLabelledBy:f,ariaMultiline:g,ariaOwns:h,ariaRequired:p,autoCapitalize:m,className:y,id:v,role:_="textbox",spellCheck:b=!0,style:x,tabIndex:S,"data-testid":w,...C},k){let[E,T]=(0,i.useState)(e.isEditable()),A=(0,i.useCallback)(t=>{t&&t.ownerDocument&&t.ownerDocument.defaultView?e.setRootElement(t):e.setRootElement(null)},[e]),N=(0,i.useMemo)(()=>(function(...e){return t=>{e.forEach(e=>{"function"==typeof e?e(t):null!=e&&(e.current=t)})}})(k,A),[A,k]);return a(()=>(T(e.isEditable()),e.registerEditableListener(e=>{T(e)})),[e]),(0,l.jsx)("div",{"aria-activedescendant":E?t:void 0,"aria-autocomplete":E?n:"none","aria-controls":E?r:void 0,"aria-describedby":o,...null!=s?{"aria-errormessage":s}:{},"aria-expanded":E&&"combobox"===_?!!u:void 0,...null!=c?{"aria-invalid":c}:{},"aria-label":d,"aria-labelledby":f,"aria-multiline":g,"aria-owns":E?h:void 0,"aria-readonly":!E||void 0,"aria-required":p,autoCapitalize:m,className:y,contentEditable:E,"data-testid":w,id:v,ref:N,role:_,spellCheck:b,style:x,tabIndex:S,...C})});function c(e){return e.getEditorState().read((0,o.yl)(e.isComposing()))}let d=(0,i.forwardRef)(function(e,t){let{placeholder:n,...i}=e,[o]=(0,r.DF)();return(0,l.jsxs)(l.Fragment,{children:[(0,l.jsx)(u,{editor:o,...i,ref:t}),null!=n&&(0,l.jsx)(f,{editor:o,content:n})]})});function f({content:e,editor:t}){let n=function(e){let[t,n]=(0,i.useState)(()=>c(e));return a(()=>{function t(){n(c(e))}return t(),(0,s.Sd)(e.registerUpdateListener(()=>{t()}
1),e.registerEditableListener(()=>{t()}))},[e]),t}(t),[r,o]=(0,i.useState)(t.isEditable());if((0,i.useLayoutEffect)(()=>(o(t.isEditable()),t.registerEditableListener(e=>{o(e)})),[t]),!n)return null;let u=null;return"function"==typeof e?u=e(r):null!==e&&(u=e),null===u?null:(0,l.jsx)("div",{"aria-hidden":!0,children:u})}},57518:(e,t,n)=>{"use strict";n.d(t,{B8:()=>N,UC:()=>R,av:()=>k,bL:()=>A,l9:()=>F});var r=n(12115),i=n(70379),l=n(68599),o=n(83478),s=n(83935),a=n(99354),u=n(1933),c=n(98979),d=n(89971),f=n(95155),g="Tabs",[h,p]=(0,l.A)(g,[o.RG]),m=(0,o.RG)(),[y,v]=h(g),_=r.forwardRef((e,t)=>{let{__scopeTabs:n,value:r,onValueChange:i,defaultValue:l,orientation:o="horizontal",dir:s,activationMode:h="automatic",...p}=e,m=(0,u.jH)(s),[v,_]=(0,c.i)({prop:r,onChange:i,defaultProp:null!=l?l:"",caller:g});return(0,f.jsx)(y,{scope:n,baseId:(0,d.B)(),value:v,onValueChange:_,orientation:o,dir:m,activationMode:h,children:(0,f.jsx)(a.sG.div,{dir:m,"data-orientation":o,...p,ref:t})})});_.displayName=g;var b="TabsList",x=r.forwardRef((e,t)=>{let{__scopeTabs:n,loop:r=!0,...i}=e,l=v(b,n),s=m(n);return(0,f.jsx)(o.bL,{asChild:!0,...s,orientation:l.orientation,dir:l.dir,loop:r,children:(0,f.jsx)(a.sG.div,{role:"tablist","aria-orientation":l.orientation,...i,ref:t})})});x.displayName=b;var S="TabsTrigger",w=r.forwardRef((e,t)=>{let{__scopeTabs:n,value:r,disabled:l=!1,...s}=e,u=v(S,n),c=m(n),d=E(u.baseId,r),g=T(u.baseId,r),h=r===u.value;return(0,f.jsx)(o.q7,{asChild:!0,...c,focusable:!l,active:h,children:(0,f.jsx)(a.sG.button,{type:"button",role:"tab","aria-selected":h,"aria-controls":g,"data-state":h?"active":"inactive","data-disabled":l?"":void 0,disabled:l,id:d,...s,ref:t,onMouseDown:(0,i.mK)(e.onMouseDown,e=>{l||0!==e.button||!1!==e.ctrlKey?e.preventDefault():u.onValueChange(r)}),onKeyDown:(0,i.mK)(e.onKeyDown,e=>{[" ","Enter"].includes(e.key)&&u.onValueChange(r)}),onFocus:(0,i.mK)(e.onFocus,()=>{let e="manual"!==u.activationMode;h||l||!e||u.onValueChange(r)})})})});w.displayName=S;var C="TabsContent",k=r.forwardRef((e,t)=>{let{__scopeTabs:n,value:i,forceMount:l,children:o,...u}=e,c=v(C,n),d=E(c.baseId,i),g=T(c.baseId,i),h=i===c.value,p=r.useRef(h);return r.useEffect(()=>{let e=requestAnimationFrame(()=>p.current=!1);return()=>cancelAnimationFrame(e)},[]),(0,f.jsx)(s.C,{present:l||h,children:n=>{let{present:r}=n;return(0,f.jsx)(a.sG.div,{"data-state":h?"active":"inactive","data-orientation":c.orientation,role:"tabpanel","aria-labelledby":d,hidden:!r,id:g,tabIndex:0,...u,ref:t,style:{...e.style,animationDuration:p.current?"0s":void 0},children:r&&o})}})});function E(e,t){return"".concat(e,"-trigger-").concat(t)}function T(e,t){return"".concat(e,"-content-").concat(t)}k.displayName=C;var A=_,N=x,F=w,R=k},58848:(e,t,n)=>{"use strict";n.d(t,{o:()=>a,p:()=>y});var r=n(62239),i=n(36997),l=n(43971),o=n(53310),s=n(12115);function a(e,t=e=>e){return n=>{let r=e.exec(n);return null===r?null:{index:r.index,length:r[0].length,text:r[0],url:t(r[0])}}}function u(e,t){for(let n=0;n<t.length;n++){let r=t[n](e);if(r)return r}return null}let c=/[.,;\s]/;function d(e){return c.test(e)}function f(e){return d(e[e.length-1])}function g(e){let t=e.getPreviousSibling();return(0,o.ff4)(t)&&(t=t.getLastDescendant()),null===t||(0,o.wH$)(t)||(0,o.kFe)(t)&&f(t.getTextContent())}function h(e){let t=e.getNextSibling();return(0,o.ff4)(t)&&(t=t.getFirstDescendant()),null===t||(0,o.wH$)(t)||(0,o.kFe)(t)&&d(t.getTextContent()[0])}function p(e,t,n){let r=e.getChildren(),i=r.length;for(let t=0;t<i;t++){let i=r[t];if(!(0,o.kFe)(i)||!i.isSimpleText())return m(e),void n(null,e.getURL())}let l=e.getTextContent(),s=u(l,t);if(null===s||s.text!==l||!g(e)||!h(e))return m(e),void n(null,e.getURL());let a=e.getURL();if(a!==s.url&&(e.setURL(s.url),n(s.url,a)),s.attributes){let t=e.getRel();t!==s.attributes.rel&&(e.setRel(s.attributes.rel||null),n(s.attributes.rel||null,t));let r=e.getTarget();r!==s.attributes.target&&(e.setTarget(s.attributes.target||null),n(s.attributes.target||null,r))}}function m(e){let t=e.getChildren();for(let n=t.length-1;n>=0;n--)e.insertAfter(t[n]);return e.remove(),t.map(e=>e.getLatest())}function y({matchers:e,onChange:t}){let[n]=(0,i.DF)();return(0,s.useEffect)(()=>{n.hasNodes([r.k_])||function(e,...t){let n=new URL("https://lexical.dev/docs/error"),r=new URLSearchParams;for(let e of(r.append("code",77),t))r.append("v",e);throw n.search=r.toString(),Error(`Minified Lexical error #${77}; visit ${n.toString()} for the full message or use the non-minified dev environment for full errors and additional helpful warnings.`)}(77);let i=(e,n)=>{t&&t(e,n)};return(0,l.Sd)(n.registerNodeTransform(o.Ey8,t=>{let n=t.getParentOrThrow(),l=t.getPreviousSibling();if((0,r.iK)(n)&&!n.getIsUnlinked())p(n,e,i);else if(!(0,r.FJ)(n)){t.isSimpleText()&&(d(t.getTextContent()[0])||!(0,r.iK)(l))&&function(e,t,n){let i=[...e],l=i.map(e=>e.getTextContent()).join(""),s,a=l,c=0;for(;(s=u(a,t))&&null!==s;){var f,p,m;let e=s.index,t=e+s.length;if(f=c+e,p=c+t,m=i,(f>0?d(l[f-1]):g(m[0]))&&(p<l.length?d(l[p]):h(m[m.length-1]))){let[l,,a,u]=function(e,t,n){let r=[],i=[],l=[],o=0,s=0,a=[...e];for(;a.length>0;){let e=a[0],u=e.getTextContent().length,c=s;s+u<=t?(r.push(e),o+=u):c>=n?l.push(e):i.push(e),s+=u,a.shift()}return[o,r,i,l]}(i,c+e,c+t),d=function(e,t,n,i){let l=(0,r.Yh)(i.url,i.attributes);if(1===e.length){let r,s=e[0];0===t?[r,s]=s.splitText(n):[,r,s]=s.splitText(t,n);let a=(0,o.sTu)(i.text);return a.setFormat(r.getFormat()),a.setDetail(r.getDetail()),a.setStyle(r.getStyle()),l.append(a),r.replace(l),s}if(e.length>1){let r,i=e[0],s,a=i.getTextContent().length;0===t?s=i:[,s]=i.splitText(t);let u=[];for(let t=1;t<e.length;t++){let i=e[t],l=i.getTextContent().length,o=a;if(o<n)if(a+l<=n)u.push(i);else{let[e,t]=i.splitText(n-o);u.push(e),r=t}a+=l}let c=(0,o.vJq)(),d=c?c.getNodes().find(o.kFe):void 0,f=(0,o.sTu)(s.getTextContent());return f.setFormat(s.getFormat()),f.setDetail(s.getDetail()),f.setStyle(s.getStyle()),l.append(f,...u),d&&d===s&&((0,o.I2P)(c)?f.select(c.anchor.offset,c.focus.offset):(0,o.RTZ)(c)&&f.select(0,f.getTextContent().length)),s.replace(l),r}}(a,c+e-l,c+t-l,s);i=d?[d,...u]:u,n(s.url,null),c=0}else c+=t;a=a.substring(t)}}(function(e){let t=[e],n=e.getNextSibling();for(;null!==n&&(0,o.kFe)(n)&&n.isSimpleText()&&(t.push(n),!/[\s]/.test(n.getTextContent()));)n=n.getNextSibling();return t}(t),e,i);var s=t,a=e,c=i;let n=s.getPreviousSibling(),y=s.getNextSibling(),v=s.getTextContent();!(0,r.iK)(n)||n.getIsUnlinked()||d(v[0])&&!(n.isEmailURI()?/^\.[a-zA-Z]{2,}/.test(v):/^\.[a-zA-Z0-9]{1,}/.test(v))||(n.append(s),p(n,a,c),c(null,n.getURL())),!(0,r.iK)(y)||y.getIsUnlinked()||f(v)||(m(y),p(y,a,c),c(null,y.getURL()))}}),n.registerCommand(r.yW,e=>{let t=(0,o.vJq)();
1return null===e&&!!(0,o.I2P)(t)&&(t.extract().forEach(e=>{let t=e.getParent();(0,r.iK)(t)&&(t.setIsUnlinked(!t.getIsUnlinked()),t.markDirty())}),!1)},o.AcJ))},[n,e,t]),null}},59229:(e,t,n)=>{"use strict";n.d(t,{A:()=>r});let r=(0,n(78340).A)("Link2Off",[["path",{d:"M9 17H7A5 5 0 0 1 7 7",key:"10o201"}],["path",{d:"M15 7h2a5 5 0 0 1 4 8",key:"1d3206"}],["line",{x1:"8",x2:"12",y1:"12",y2:"12",key:"rvw6j4"}],["line",{x1:"2",x2:"22",y1:"2",y2:"22",key:"a6p6uj"}]])},59883:(e,t,n)=>{"use strict";n.d(t,{A:()=>r});let r=(0,n(78340).A)("GripVertical",[["circle",{cx:"9",cy:"12",r:"1",key:"1vctgf"}],["circle",{cx:"9",cy:"5",r:"1",key:"hp0tcf"}],["circle",{cx:"9",cy:"19",r:"1",key:"fkjjf6"}],["circle",{cx:"15",cy:"12",r:"1",key:"1tmaij"}],["circle",{cx:"15",cy:"5",r:"1",key:"19l28e"}],["circle",{cx:"15",cy:"19",r:"1",key:"f4zoj3"}]])},61511:(e,t,n)=>{"use strict";n.d(t,{eW:()=>o,n$:()=>i,yl:()=>l});var r=n(53310);function i(){return(0,r.NiT)().getTextContent()}function l(e){return()=>(function(e){if(!function(e,t=!0){if(e)return!1;let n=i();return t&&(n=n.trim()),""===n}(e,!1))return!1;let t=(0,r.NiT)().getChildren(),n=t.length;if(n>1)return!1;for(let e=0;e<n;e++){let n=t[e];if((0,r.Cyw)(n))return!1;if((0,r.ff4)(n)){if(!(0,r.bSg)(n)||0!==n.__indent)return!1;let t=n.getChildren(),i=t.length;for(let n=0;n<i;n++){let n=t[e];if(!(0,r.kFe)(n))return!1}}}return!0})(e)}function o(e,t,n,i){let l=e=>e instanceof n,o=e=>{let t=(0,r.sTu)(e.getTextContent());t.setFormat(e.getFormat()),e.replace(t)};return[e.registerNodeTransform(r.Ey8,e=>{if(!e.isSimpleText())return;let n,s=e.getPreviousSibling(),a=e.getTextContent(),u=e;if((0,r.kFe)(s)){let n=s.getTextContent(),r=t(n+a);if(l(s)){if(null===r||0!==s.getLatest().__mode)return void o(s);{let t=r.end-n.length;if(t>0){let r=n+a.slice(0,t);if(s.select(),s.setTextContent(r),t===a.length)e.remove();else{let n=a.slice(t);e.setTextContent(n)}return}}}else if(null===r||r.start<n.length)return}let c=0;for(;;){let e,d=null===(n=t(a))?"":a.slice(n.end);if(a=d,""===d){let e=u.getNextSibling();if((0,r.kFe)(e)){let n=t(d=u.getTextContent()+e.getTextContent());if(null===n)return void(l(e)?o(e):e.markDirty());if(0!==n.start)return}}if(null===n)return;if(0===n.start&&(0,r.kFe)(s)&&s.isTextEntity()){c+=n.end;continue}0===n.start?[e,u]=u.splitText(n.end):[,e,u]=u.splitText(n.start+c,n.end+c),void 0===e&&function(e,...t){let n=new URL("https://lexical.dev/docs/error"),r=new URLSearchParams;for(let e of(r.append("code",165),t))r.append("v",e);throw n.search=r.toString(),Error(`Minified Lexical error #${165}; visit ${n.toString()} for the full message or use the non-minified dev environment for full errors and additional helpful warnings.`)}(165,"nodeToReplace");let f=i(e);if(f.setFormat(e.getFormat()),e.replace(f),null==u)return;c=0,s=f}}),e.registerNodeTransform(n,e=>{let n=e.getTextContent(),i=t(n);if(null===i||0!==i.start)return void o(e);if(n.length>i.end)return void e.splitText(i.end);let s=e.getPreviousSibling();(0,r.kFe)(s)&&s.isTextEntity()&&(o(s),o(e));let a=e.getNextSibling();(0,r.kFe)(a)&&a.isTextEntity()&&(o(a),l(e)&&o(e))})]}},61742:(e,t,n)=>{"use strict";n.d(t,{A:()=>r});let r=(0,n(78340).A)("Underline",[["path",{d:"M6 4v6a6 6 0 0 0 12 0V4",key:"9kb039"}],["line",{x1:"4",x2:"20",y1:"20",y2:"20",key:"nun2al"}]])},62239:(e,t,n)=>{"use strict";n.d(t,{Db:()=>o,FJ:()=>u,Yh:()=>d,hx:()=>p,iK:()=>f,k_:()=>c,yW:()=>g,zA:()=>a});var r=n(43971),i=n(53310);let l=new Set(["http:","https:","mailto:","sms:","tel:"]);class o extends i.fGB{static getType(){return"link"}static clone(e){return new o(e.__url,{rel:e.__rel,target:e.__target,title:e.__title},e.__key)}constructor(e="",t={},n){super(n);let{target:r=null,rel:i=null,title:l=null}=t;this.__url=e,this.__target=r,this.__rel=i,this.__title=l}createDOM(e){let t=document.createElement("a");return this.updateLinkDOM(null,t,e),(0,r.ZB)(t,e.theme.link),t}updateLinkDOM(e,t,n){if((0,i.nYP)(t))for(let n of(e&&e.__url===this.__url||(t.href=this.sanitizeUrl(this.__url)),["target","rel","title"])){let r=`__${n}`,i=this[r];e&&e[r]===i||(i?t[n]=i:t.removeAttribute(n))}}updateDOM(e,t,n){return this.updateLinkDOM(e,t,n),!1}static importDOM(){return{a:e=>({conversion:s,priority:1})}}static importJSON(e){return a().updateFromJSON(e)}updateFromJSON(e){return super.updateFromJSON(e).setURL(e.url).setRel(e.rel||null).setTarget(e.target||null).setTitle(e.title||null)}sanitizeUrl(e){e=v(e);try{let t=new URL(v(e));if(!l.has(t.protocol))return"about:blank"}catch(e){}return e}exportJSON(){return{...super.exportJSON(),rel:this.getRel(),target:this.getTarget(),title:this.getTitle(),url:this.getURL()}}getURL(){return this.getLatest().__url}setURL(e){let t=this.getWritable();return t.__url=e,t}getTarget(){return this.getLatest().__target}setTarget(e){let t=this.getWritable();return t.__target=e,t}getRel(){return this.getLatest().__rel}setRel(e){let t=this.getWritable();return t.__rel=e,t}getTitle(){return this.getLatest().__title}setTitle(e){let t=this.getWritable();return t.__title=e,t}insertNewAfter(e,t=!0){let n=a(this.__url,{rel:this.__rel,target:this.__target,title:this.__title});return this.insertAfter(n,t),n}canInsertTextBefore(){return!1}canInsertTextAfter(){return!1}canBeEmpty(){return!1}isInline(){return!0}extractWithChild(e,t,n){if(!(0,i.I2P)(t))return!1;let r=t.anchor.getNode(),l=t.focus.getNode();return this.isParentOf(r)&&this.isParentOf(l)&&t.getTextContent().length>0}isEmailURI(){return this.__url.startsWith("mailto:")}isWebSiteURI(){return this.__url.startsWith("https://")||this.__url.startsWith("http://")}}function s(e){let t=null;if((0,i.nYP)(e)){let n=e.textContent;(null!==n&&""!==n||e.children.length>0)&&(t=a(e.getAttribute("href")||"",{rel:e.getAttribute("rel"),target:e.getAttribute("target"),title:e.getAttribute("title")}))}return{node:t}}function a(e="",t){return(0,i.pTq)(new o(e,t))}function u(e){return e instanceof o}class c extends o{constructor(e="",t={},n){super(e,t,n),this.__isUnlinked=void 0!==t.isUnlinked&&null!==t.isUnlinked&&t.isUnlinked}static getType(){return"autolink"}static clone(e){return new c(e.__url,{isUnlinked:e.__isUnlinked,rel:e.__rel,target:e.__target,title:e.__title},e.__key)}getIsUnlinked(){return this.__isUnlinked}setIsUnlinked(e){let t=this.getWritable();return t.__isUnlinked=e,t}createDOM(e){return this.__isUnlinked?document.createElement("span"):super.createDOM(e)}updateDOM(e,t,n){return super.updateDOM(e,t,n)||e.__isUnlinked!==this.__isUnlinked}static importJSON(e){return d().updateFromJSON(e)}updateFromJSON(e){return super.updateFromJSON(e).setIsUnlinked(e.isUnlinked||!1)}static importDOM(){return null}exportJSON(){return{...super.exportJSON(),isUnlinked:this.__isUnlinked}}insertNewAfter(e,t=!0){let n=this.getParentOrThrow().insertNewAfter(e,t);if((0,i.ff4)(n)){let e=d(this.__url,{isUnlinked:this.__isUnlinked,rel:this.__rel,target:this.__target,title:this.__title});return n.append(e),e}return null}}function d(e="",t){return(0,i.pTq)(new c(e,t))}function f(e){return e instanceof c}let g=(0,i.guI)("TOGGLE_LINK_COMMAND");function h(e,t){if("element"===e.type){let n=e.getNode();return(0,i.ff4)(n)||function(e,...t){let n=new URL("https://lexical.dev/docs/error"),r=new URLSearchParams;for(let e of(r.append("code",252),t))r.append("v",e);throw n.search=r.toString(),Error(`Minified Lexical error #${252}; visit ${n.toString()} for the full message or use the non-minified dev environment for full errors and additional helpful warnings.`)}(252),n.getChildren()[e.offset+t]||null}return null}function p(e,t={}){let{target:n,title:l}=t,o=void 0===t.rel?"noreferrer":t.rel,s=(0,i.vJq)();if(null===s||!(0,i.I2P)(s)&&!(0,i.RTZ)(s))return;if((0,i.RTZ)(s)){let t=s.getNodes();if(0===t.length)return;return void t.forEach(t=>{if(null===e){let e=(0,r.Bt)(t,e=>!f(e)&&u(e));e&&(e.insertBefore(t),0===e.getChildren().length&&e.remove())}else{let i=(0,r.Bt)(t,e=>!f(e)&&u(e));if(i)i.setURL(e),void 0!==n&&i.setTarget(n),void 0!==o&&i.setRel(o);else{let r=a(e,{rel:o,target:n});t.insertBefore(r),r.append(t)}}})}let c=s.extract();
1if(null===e)return void c.forEach(e=>{let t=(0,r.Bt)(e,e=>!f(e)&&u(e));if(t){let e=t.getChildren();for(let n=0;n<e.length;n++)t.insertBefore(e[n]);t.remove()}});let d=new Set,g=t=>{d.has(t.getKey())||(d.add(t.getKey()),t.setURL(e),void 0!==n&&t.setTarget(n),void 0!==o&&t.setRel(o),void 0!==l&&t.setTitle(l))};if(1===c.length){let e=m(c[0],u);if(null!==e)return g(e)}!function(e){let t=(0,i.vJq)();if(!(0,i.I2P)(t))return e();let n=(0,i.CaD)(t),r=n.isBackward(),l=h(n.anchor,r?-1:0),o=h(n.focus,r?0:-1);if(e(),l||o){let e=(0,i.vJq)();if((0,i.I2P)(e)){let t=e.clone();if(l){let e=l.getParent();e&&t.anchor.set(e.getKey(),l.getIndexWithinParent()+ +!!r,"element")}if(o){let e=o.getParent();e&&t.focus.set(e.getKey(),o.getIndexWithinParent()+ +!r,"element")}(0,i.n1P)((0,i.CaD)(t))}}}(()=>{let t=null;for(let r of c){if(!r.isAttached())continue;let s=m(r,u);if(s){g(s);continue}if((0,i.ff4)(r)){if(!r.isInline())continue;if(u(r)){if(!(f(r)||null!==t&&t.getParentOrThrow().isParentOf(r))){g(r),t=r;continue}for(let e of r.getChildren())r.insertBefore(e);r.remove();continue}}let c=r.getPreviousSibling();u(c)&&c.is(t)?c.append(r):(t=a(e,{rel:o,target:n,title:l}),r.insertAfter(t),t.append(r))}})}function m(e,t){let n=e;for(;null!==n&&null!==n.getParent()&&!t(n);)n=n.getParentOrThrow();return t(n)?n:null}let y=/^\+?[0-9\s()-]{5,}$/;function v(e){return e.match(/^[a-z][a-z0-9+.-]*:/i)||e.match(/^[/#.]/)?e:e.includes("@")?`mailto:${e}`:y.test(e)?`tel:${e}`:`https://${e}`}},63012:(e,t,n)=>{"use strict";n.d(t,{A:()=>r});let r=(0,n(78340).A)("FileImage",[["path",{d:"M15 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V7Z",key:"1rqfz7"}],["path",{d:"M14 2v4a2 2 0 0 0 2 2h4",key:"tnqrlb"}],["circle",{cx:"10",cy:"12",r:"2",key:"737tya"}],["path",{d:"m20 17-1.296-1.296a2.41 2.41 0 0 0-3.408 0L9 22",key:"wt3hpn"}]])},63815:(e,t,n)=>{"use strict";n.d(t,{W:()=>a});var r=n(62239),i=n(36997),l=n(43971),o=n(53310),s=n(12115);function a({validateUrl:e,attributes:t}){let[n]=(0,i.DF)();return(0,s.useEffect)(()=>{if(!n.hasNodes([r.Db]))throw Error("LinkPlugin: LinkNode not registered on editor");return(0,l.Sd)(n.registerCommand(r.yW,n=>{if(null===n)return(0,r.hx)(n),!0;if("string"==typeof n)return!(void 0!==e&&!e(n))&&((0,r.hx)(n,t),!0);{let{url:e,target:i,rel:l,title:o}=n;return(0,r.hx)(e,{...t,rel:l,target:i,title:o}),!0}},o.AcJ),void 0!==e?n.registerCommand(o.waI,i=>{let s=(0,o.vJq)();if(!(0,o.I2P)(s)||s.isCollapsed()||!(0,l.xj)(i,ClipboardEvent)||null===i.clipboardData)return!1;let a=i.clipboardData.getData("text");return!!e(a)&&!s.getNodes().some(e=>(0,o.ff4)(e))&&(n.dispatchCommand(r.yW,{...t,url:a}),i.preventDefault(),!0)},o.AcJ):()=>{})},[n,e,t]),null}},64005:(e,t,n)=>{"use strict";n.d(t,{C:()=>a});var r=n(36997),i=n(35758),l=n(43971),o=n(53310),s=n(12115);function a(){let[e]=(0,r.DF)();return(0,s.useEffect)(()=>e.registerCommand(i.s0,e=>{let t=(0,o.vJq)();if(!(0,o.I2P)(t))return!1;if(null!==t.focus.getNode()){let e=(0,i.PL)();(0,l.Pe)(e)}return!0},o.jZM),[e]),null}},64246:(e,t,n)=>{"use strict";n.d(t,{D:()=>l,d:()=>i});var r=n(53310);class i extends r.Kp7{constructor(e,t){super(t),this.__format=e||""}exportJSON(){return{...super.exportJSON(),format:this.__format||""}}updateFromJSON(e){return super.updateFromJSON(e).setFormat(e.format||"")}canIndent(){return!1}createDOM(){return document.createElement("div")}updateDOM(){return!1}setFormat(e){let t=this.getWritable();return t.__format=e,t}isInline(){return!1}}function l(e){return e instanceof i}},64476:(e,t,n)=>{"use strict";n.d(t,{E:()=>a});var r=n(80175),i=n(36997),l=n(35758),o=n(12115);let s=[{dependencies:[l.fS],export:e=>(0,l.Hd)(e)?"***":null,regExp:/^(---|\*\*\*|___)\s?$/,replace:(e,t,n,r)=>{let i=(0,l.PL)();r||null!=e.getNextSibling()?e.replace(i):e.insertBefore(i),i.selectNext()},type:"element"},...r.Rm];function a({transformers:e=s}){let[t]=(0,i.DF)();return(0,o.useEffect)(()=>(0,r.iM)(t,e),[t,e]),null}},66234:(e,t,n)=>{"use strict";n.d(t,{A:()=>r});let r="object"==typeof global&&global&&global.Object===Object&&global},67635:(e,t,n)=>{"use strict";n.d(t,{A:()=>r});
1let r=(0,n(78340).A)("Copy",[["rect",{width:"14",height:"14",x:"8",y:"8",rx:"2",ry:"2",key:"17jyea"}],["path",{d:"M4 16c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h10c1.1 0 2 .9 2 2",key:"zix9uf"}]])},68342:()=>{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(e){e.inside.interpolation.inside=Prism.languages.swift})},68459:(e,t,n)=>{"use strict";n.d(t,{A:()=>r});let r=(0,n(78340).A)("Trash2",[["path",{d:"M3 6h18",key:"d0wm0j"}],["path",{d:"M19 6v14c0 1-1 2-2 2H7c-1 0-2-1-2-2V6",key:"4alrt4"}],["path",{d:"M8 6V4c0-1 1-2 2-2h4c1 0 2 1 2 2v2",key:"v07s0e"}],["line",{x1:"10",x2:"10",y1:"11",y2:"17",key:"1uufr5"}],["line",{x1:"14",x2:"14",y1:"11",y2:"17",key:"xtxkd"}]])},69343:()=>{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>
1\/=]+(?:\s*=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+(?=[\s>]))|(?=[\s/>])))+)?\s*\/?>/,greedy:!0,inside:{tag:{pattern:/^<\/?[^\s>\/]+/,inside:{punctuation:/^<\/?/,namespace:/^[^\s>\/:]+:/}},"special-attr":[],"attr-value":{pattern:/=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+)/,inside:{punctuation:[{pattern:/^=/,alias:"attr-equals"},{pattern:/^(\s*)["']|["']$/,lookbehind:!0}]}},punctuation:/\/?>/,"attr-name":{pattern:/[^\s>\/]+/,inside:{namespace:/^[^\s>\/:]+:/}}}},entity:[{pattern:/&[\da-z]{1,8};/i,alias:"named-entity"},/&#x?[\da-f]{1,8};/i]},Prism.languages.markup.tag.inside["attr-value"].inside.entity=Prism.languages.markup.entity,Prism.languages.markup.doctype.inside["internal-subset"].inside=Prism.languages.markup,Prism.hooks.add("wrap",function(e){"entity"===e.type&&(e.attributes.title=e.content.replace(/&amp;/,"&"))}),Object.defineProperty(Prism.languages.markup.tag,"addInlined",{value:function(e,t){var n={};n["language-"+t]={pattern:/(^<!\[CDATA\[)[\s\S]+?(?=\]\]>$)/i,lookbehind:!0,inside:Prism.languages[t]},n.cdata=/^<!\[CDATA\[|\]\]>$/i;var r={"included-cdata":{pattern:/<!\[CDATA\[[\s\S]*?\]\]>/i,inside:n}};r["language-"+t]={pattern:/[\s\S]+/,inside:Prism.languages[t]};var i={};i[e]={pattern:RegExp(/(<__[^>]*>)(?:<!\[CDATA\[(?:[^\]]|\](?!\]>))*\]\]>|(?!<!\[CDATA\[)[\s\S])*?(?=<\/__>)/.source.replace(/__/g,function(){return e}),"i"),lookbehind:!0,greedy:!0,inside:r},Prism.languages.insertBefore("markup","cdata",i)}}),Object.defineProperty(Prism.languages.markup.tag,"addAttribute",{value:function(e,t){Prism.languages.markup.tag.inside["special-attr"].push({pattern:RegExp(/(^|["'\s])/.source+"(?:"+e+")"+/\s*=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+(?=[\s>]))/.source,"i"),lookbehind:!0,inside:{"attr-name":/^[^\s=]+/,"attr-value":{pattern:/=[\s\S]+/,inside:{value:{pattern:/(^=\s*(["']|(?!["'])))\S[\s\S]*(?=\2$)/,lookbehind:!0,alias:[t,"language-"+t],inside:Prism.languages[t]},punctuation:[{pattern:/^=/,alias:"attr-equals"},/"|'/]}}}})}}),Prism.languages.html=Prism.languages.markup,Prism.languages.mathml=Prism.languages.markup,Prism.languages.svg=Prism.languages.markup,Prism.languages.xml=Prism.languages.extend("markup",{}),Prism.languages.ssml=Prism.languages.xml,Prism.languages.atom=Prism.languages.xml,Prism.languages.rss=Prism.languages.xml},69534:()=>{!function(e){var t=/(?:"(?:\\(?:\r\n|[\s\S])|[^"\\\r\n])*"|'(?:\\(?:\r\n|[\s\S])|[^'\\\r\n])*')/;e.languages.css={comment:/\/\*[\s\S]*?\*\//,atrule:{pattern:RegExp("@[\\w-](?:"+/[^;{\s"']|\s+(?!\s)/.source+"|"+t.source+")*?"+/(?:;|(?=\s*\{))/.source),inside:{rule:/^@[\w-]+/,"selector-function-argument":{pattern:/(\bselector\s*\(\s*(?![\s)]))(?:[^()\s]|\s+(?![\s)])|\((?:[^()]|\([^()]*\))*\))+(?=\s*\))/,lookbehind:!0,alias:"selector"},keyword:{pattern:/(^|[^\w-])(?:and|not|only|or)(?![\w-])/,lookbehind:!0}}},url:{pattern:RegExp("\\burl\\((?:"+t.source+"|"+/(?:[^\\\r\n()"']|\\[\s\S])*/.source+")\\)","i"),greedy:!0,inside:{function:/^url/i,punctuation:/^\(|\)$/,string:{pattern:RegExp("^"+t.source+"$"),alias:"url"}}},selector:{pattern:RegExp("(^|[{}\\s])[^{}\\s](?:[^{};\"'\\s]|\\s+(?![\\s{])|"+t.source+")*(?=\\s*\\{)"),lookbehind:!0},string:{pattern:t,greedy:!0},property:{pattern:/(^|[^-\w\xA0-\uFFFF])(?!\s)[-_a-z\xA0-\uFFFF](?:(?!\s)[-\w\xA0-\uFFFF])*(?=\s*:)/i,lookbehind:!0},important:/!important\b/i,function:{pattern:/(^|[^-a-z0-9])[-a-z0-9]+(?=\()/i,lookbehind:!0},punctuation:/[(){};:,]/},e.languages.css.atrule.inside.rest=e.languages.css;var n=e.languages.markup;n&&(n.tag.addInlined("style","css"),n.tag.addAttribute("style","css"))}(Prism)},69556:()=>{!function(e){var t=/\b(?:alignas|alignof|asm|auto|bool|break|case|catch|char|char16_t|char32_t|char8_t|class|co_await|co_return|co_yield|compl|concept|const|const_cast|consteval|constexpr|constinit|continue|decltype|default|delete|do|double|dynamic_cast|else|enum|explicit|export|extern|final|float|for|friend|goto|if|import|inline|int|int16_t|int32_t|int64_t|int8_t|long|module|mutable|namespace|new|noexcept|nullptr|operator|override|private|protected|public|register|reinterpret_cast|requires|return|short|signed|sizeof|static|static_assert|static_cast|struct|switch|template|this|thread_local|throw|try|typedef|typeid|typename|uint16_t|uint32_t|uint64_t|uint8_t|union|unsigned|using|virtual|void|volatile|wchar_t|while)\b/,n=/\b(?!<keyword>)\w+(?:\s*\.\s*\w+)*\b/.source.replace(/<keyword>/g,function(){return t.source});e.languages.cpp=e.languages.extend("c",{"class-name":[{pattern:RegExp(/(\b(?:class|concept|enum|struct|typename)\s+)(?!<keyword>)\w+/.source.replace(/<keyword>/g,function(){return t.source})),lookbehind:!0}
1,/\b[A-Z]\w*(?=\s*::\s*\w+\s*\()/,/\b[A-Z_]\w*(?=\s*::\s*~\w+\s*\()/i,/\b\w+(?=\s*<(?:[^<>]|<(?:[^<>]|<[^<>]*>)*>)*>\s*::\s*\w+\s*\()/],keyword:t,number:{pattern:/(?:\b0b[01']+|\b0x(?:[\da-f']+(?:\.[\da-f']*)?|\.[\da-f']+)(?:p[+-]?[\d']+)?|(?:\b[\d']+(?:\.[\d']*)?|\B\.[\d']+)(?:e[+-]?[\d']+)?)[ful]{0,4}/i,greedy:!0},operator:/>>=?|<<=?|->|--|\+\+|&&|\|\||[?:~]|<=>|[-+*/%&|^!=<>]=?|\b(?:and|and_eq|bitand|bitor|not|not_eq|or|or_eq|xor|xor_eq)\b/,boolean:/\b(?:false|true)\b/}),e.languages.insertBefore("cpp","string",{module:{pattern:RegExp(/(\b(?:import|module)\s+)/.source+"(?:"+/"(?:\\(?:\r\n|[\s\S])|[^"\\\r\n])*"|<[^<>\r\n]*>/.source+"|"+/<mod-name>(?:\s*:\s*<mod-name>)?|:\s*<mod-name>/.source.replace(/<mod-name>/g,function(){return n})+")"),lookbehind:!0,greedy:!0,inside:{string:/^[<"][\s\S]+/,operator:/:/,punctuation:/\./}},"raw-string":{pattern:/R"([^()\\ ]{0,16})\([\s\S]*?\)\1"/,alias:"string",greedy:!0}}),e.languages.insertBefore("cpp","keyword",{"generic-function":{pattern:/\b(?!operator\b)[a-z_]\w*\s*<(?:[^<>]|<[^<>]*>)*>(?=\s*\()/i,inside:{function:/^\w+/,generic:{pattern:/<[\s\S]+/,alias:"class-name",inside:e.languages.cpp}}}}),e.languages.insertBefore("cpp","operator",{"double-colon":{pattern:/::/,alias:"punctuation"}}),e.languages.insertBefore("cpp","class-name",{"base-clause":{pattern:/(\b(?:class|struct)\s+\w+\s*:\s*)[^;{}"'\s]+(?:\s+[^;{}"'\s]+)*(?=\s*[;{])/,lookbehind:!0,greedy:!0,inside:e.languages.extend("cpp",{})}}),e.languages.insertBefore("inside","double-colon",{"class-name":/\b[a-z_]\w*\b(?!\s*::)/i},e.languages.cpp["base-clause"])}(Prism)},70130:(e,t,n)=>{"use strict";n.d(t,{A:()=>r});let r=(0,n(78340).A)("AlignJustify",[["path",{d:"M3 12h18",key:"1i2n21"}],["path",{d:"M3 18h18",key:"1h113x"}],["path",{d:"M3 6h18",key:"d0wm0j"}]])},70535:(e,t,n)=>{"use strict";n.d(t,{NE:()=>l,Vd:()=>i,XL:()=>o});var r=n(53310);class i extends r.fGB{$config(){return this.config("overflow",{$transform(e){e.isEmpty()&&e.remove()},extends:r.fGB})}createDOM(e){let t=document.createElement("span"),n=e.theme.characterLimit;return"string"==typeof n&&(t.className=n),t}updateDOM(e,t){return!1}insertNewAfter(e,t=!0){return this.getParentOrThrow().insertNewAfter(e,t)}excludeFromCopy(){return!0}}function l(){return(0,r.pTq)(new i)}function o(e){return e instanceof i}},70707:(e,t,n)=>{"use strict";n.d(t,{A:()=>r});let r=(0,n(78340).A)("CircleUserRound",[["path",{d:"M18 20a6 6 0 0 0-12 0",key:"1qehca"}],["circle",{cx:"12",cy:"10",r:"4",key:"1h16sb"}],["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}]])},73261:()=>{},73300:(e,t,n)=>{"use strict";n.d(t,{A:()=>r});let r=(0,n(78340).A)("Clipboard",[["rect",{width:"8",height:"4",x:"8",y:"2",rx:"1",ry:"1",key:"tgr4d6"}],["path",{d:"M16 4h2a2 2 0 0 1 2 2v14a2 2 0 0 1-2 2H6a2 2 0 0 1-2-2V6a2 2 0 0 1 2-2h2",key:"116196"}]])},73974:(e,t,n)=>{"use strict";n.d(t,{D:()=>s});var r=n(36997),i=n(53310),l=n(12115);let o="undefined"!=typeof window&&void 0!==window.document&&void 0!==window.document.createElement?l.useLayoutEffect:l.useEffect;function s({ignoreHistoryMergeTagChange:e=!0,ignoreSelectionChange:t=!1,onChange:n}){let[l]=(0,r.DF)();return o(()=>{if(n)return l.registerUpdateListener(({editorState:r,dirtyElements:o,dirtyLeaves:s,prevEditorState:a,tags:u})=>{t&&0===o.size&&0===s.size||e&&u.has(i.T40)||a.isEmpty()||n(r,l,u)})},[l,e,t,n]),null}},75492:()=>{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}
1,75543:(e,t,n)=>{"use strict";n.d(t,{A:()=>r});let r=(0,n(78340).A)("IndentIncrease",[["path",{d:"M21 12H11",key:"wd7e0v"}],["path",{d:"M21 18H11",key:"4wu86t"}],["path",{d:"M21 6H11",key:"6dy1d6"}],["path",{d:"m3 8 4 4-4 4",key:"1a3j6y"}]])},76295:(e,t,n)=>{"use strict";n.d(t,{A:()=>r});let r=(0,n(78340).A)("AlignLeft",[["path",{d:"M15 12H3",key:"6jk70r"}],["path",{d:"M17 18H3",key:"1amg6g"}],["path",{d:"M21 6H3",key:"1jwq7v"}]])},76755:(e,t,n)=>{"use strict";n.d(t,{g:()=>a});var r=n(62239),i=n(36997),l=n(43971),o=n(53310),s=n(12115);function a({newTab:e=!0,disabled:t=!1}){let[n]=(0,i.DF)();return(0,s.useEffect)(()=>{let i=i=>{let s=i.target;if(!(0,o.vAA)(s))return;let a=(0,o.scG)(s);if(null===a)return;let u=null,c=null;if(a.update(()=>{let e=(0,o.xL4)(s);if(null!==e){let n=(0,l.Bt)(e,o.ff4);if(!t)if((0,r.FJ)(n))u=n.sanitizeUrl(n.getURL()),c=n.getTarget();else{let e=function(e,t){let n=e;for(;null!=n;){if(t(n))return n;n=n.parentNode}return null}(s,o.nYP);null!==e&&(u=e.href,c=e.target)}}}),null===u||""===u)return;let d=n.getEditorState().read(o.vJq);if((0,o.I2P)(d)&&!d.isCollapsed())return void i.preventDefault();let f="auxclick"===i.type&&1===i.button;window.open(u,e||f||i.metaKey||i.ctrlKey||"_blank"===c?"_blank":"_self"),i.preventDefault()},s=e=>{1===e.button&&i(e)};return n.registerRootListener((e,t)=>{null!==t&&(t.removeEventListener("click",i),t.removeEventListener("mouseup",s)),null!==e&&(e.addEventListener("click",i),e.addEventListener("mouseup",s))})},[n,e,t]),null}},76867:(e,t,n)=>{"use strict";n.d(t,{Q:()=>o});var r=n(99491),i=n(36997),l=n(12115);function o({hasStrictIndent:e=!1}){let[t]=(0,i.DF)();return(0,l.useEffect)(()=>{if(!t.hasNodes([r.v5,r.YW]))throw Error("ListPlugin: ListNode and/or ListItemNode not registered on editor")},[t]),(0,l.useEffect)(()=>{if(e)return(0,r.Js)(t)},[t,e]),(0,l.useEffect)(()=>(0,r.cz)(t),[t]),null}},77061:(e,t,n)=>{"use strict";n.d(t,{A:()=>a});var r=n(33761),i=n(44706),l=n(98547),o=Math.max,s=Math.min;let a=function(e,t,n){var a,u,c,d,f,g,h=0,p=!1,m=!1,y=!0;if("function"!=typeof e)throw TypeError("Expected a function");function v(t){var n=a,r=u;return a=u=void 0,h=t,d=e.apply(r,n)}function _(e){var n=e-g,r=e-h;return void 0===g||n>=t||n<0||m&&r>=c}function b(){var e,n,r,l=(0,i.A)();if(_(l))return x(l);f=setTimeout(b,(e=l-g,n=l-h,r=t-e,m?s(r,c-n):r))}function x(e){return(f=void 0,y&&a)?v(e):(a=u=void 0,d)}function S(){var e,n=(0,i.A)(),r=_(n);if(a=arguments,u=this,g=n,r){if(void 0===f)return h=e=g,f=setTimeout(b,t),p?v(e):d;if(m)return clearTimeout(f),f=setTimeout(b,t),v(g)}return void 0===f&&(f=setTimeout(b,t)),d}return t=(0,l.A)(t)||0,(0,r.A)(n)&&(p=!!n.leading,c=(m="maxWait"in n)?o((0,l.A)(n.maxWait)||0,t):c,y="trailing"in n?!!n.trailing:y),S.cancel=function(){void 0!==f&&clearTimeout(f),h=0,a=g=u=f=void 0},S.flush=function(){return void 0===f?d:x((0,i.A)())},S}},77314:(e,t,n)=>{"use strict";n.d(t,{A:()=>r});let r=(0,n(78340).A)("ListOrdered",[["path",{d:"M10 12h11",key:"6m4ad9"}],["path",{d:"M10 18h11",key:"11hvi2"}],["path",{d:"M10 6h11",key:"c7qv1k"}],["path",{d:"M4 10h2",key:"16xx2s"}],["path",{d:"M4 6h1v4",key:"cnovpq"}],["path",{d:"M6 18H4c0-1 2-2 2-3s-1-1.5-2-1",key:"m9a95d"}]])},77494:(e,t,n)=>{"use strict";n.d(t,{A:()=>r});let r=function(e){return null!=e&&"object"==typeof e}},79763:(e,t,n)=>{"use strict";n.d(t,{E:()=>a});var r=n(84105),i=n(36997),l=n(82513),o=n(12115);let s=RegExp(function(){let{alpha:e,alphanumeric:t,hashChars:n}=function(){let e=String.fromCharCode,t="A-Za-z\xaa\xb5\xba\xc0-\xd6\xd8-\xf6\xf8-Ɂɐ-ˁˆ-ˑˠ-ˤˮͺΆΈ-ΊΌΎ-ΡΣ-ώϐ-ϵϷ-ҁҊ-ӎӐ-ӹԀ-ԏԱ-Ֆՙա-ևא-תװ-ײء-غـ-يٮ-ٯٱ-ۓەۥ-ۦۮ-ۯۺ-ۼۿܐܒ-ܯݍ-ݭހ-ޥޱऄ-हऽॐक़-ॡॽঅ-ঌএ-ঐও-নপ-রলশ-হঽৎড়-ঢ়য়-ৡৰ-ৱਅ-ਊਏ-ਐਓ-ਨਪ-ਰਲ-ਲ਼ਵ-ਸ਼ਸ-ਹਖ਼-ੜਫ਼ੲ-ੴઅ-ઍએ-ઑઓ-નપ-રલ-ળવ-હઽૐૠ-ૡଅ-ଌଏ-ଐଓ-ନପ-ରଲ-ଳଵ-ହଽଡ଼-ଢ଼ୟ-ୡୱஃஅ-ஊஎ-ஐஒ-கங-சஜஞ-டண-தந-பம-ஹఅ-ఌఎ-ఐఒ-నప-ళవ-హౠ-ౡಅ-ಌಎ-ಐಒ-ನಪ-ಳವ-ಹಽೞೠ-ೡഅ-ഌഎ-ഐഒ-നപ-ഹൠ-ൡඅ-ඖක-නඳ-රලව-ෆก-ะา-ำเ-ๆກ-ຂຄງ-ຈຊຍດ-ທນ-ຟມ-ຣລວສ-ຫອ-ະາ-ຳຽເ-ໄໆໜ-ໝༀཀ-ཇཉ-ཪྈ-ྋက-အဣ-ဧဩ-ဪၐ-ၕႠ-Ⴥა-ჺჼᄀ-ᅙᅟ-ᆢᆨ-ᇹሀ-ቈቊ-ቍቐ-ቖቘቚ-ቝበ-ኈኊ-ኍነ-ኰኲ-ኵኸ-ኾዀዂ-ዅወ-ዖዘ-ጐጒ-ጕጘ-ፚᎀ-ᎏᎠ-Ᏼᐁ-ᙬᙯ-ᙶᚁ-ᚚᚠ-ᛪᜀ-ᜌᜎ-ᜑᜠ-ᜱᝀ-ᝑᝠ-ᝬᝮ-ᝰក-ឳៗៜᠠ-ᡷᢀ-ᢨᤀ-ᤜᥐ-ᥭᥰ-ᥴᦀ-ᦩᧁ-ᧇᨀ-ᨖᴀ-ᶿḀ-ẛẠ-ỹἀ-ἕἘ-Ἕἠ-ὅὈ-Ὅὐ-ὗὙὛὝὟ-ώᾀ-ᾴᾶ-ᾼιῂ-ῄῆ-ῌῐ-ΐῖ-Ίῠ-Ῥῲ-ῴῶ-ῼⁱⁿₐ-ₔℂℇℊ-ℓℕℙ-ℝℤΩℨK-ℭℯ-ℱℳ-ℹℼ-ℿⅅ-ⅉⰀ-Ⱞⰰ-ⱞⲀ-ⳤⴀ-ⴥⴰ-ⵥⵯⶀ-ⶖⶠ-ⶦⶨ-ⶮⶰ-ⶶⶸ-ⶾⷀ-ⷆⷈ-ⷎⷐ-ⷖⷘ-ⷞ々-〆〱-〵〻-〼ぁ-ゖゝ-ゟァ-ヺー-ヿㄅ-ㄬㄱ-ㆎㆠ-ㆷㇰ-ㇿ㐀-䶵一-龻ꀀ-ꒌꠀ-ꠁꠃ-ꠅꠇ-ꠊꠌ-ꠢ가-힣豈-鶴侮-頻並-龎ff-stﬓ-ﬗיִײַ-ﬨשׁ-זּטּ-לּמּנּ-סּףּ-פּצּ-ﮱﯓ-ﴽﵐ-ﶏﶒ-ﷇﷰ-ﷻﹰ-ﹴﹶ-ﻼA-Za-zヲ-하-ᅦᅧ-ᅬᅭ-ᅲᅳ-ᅵ\xc0-\xd6\xd8-\xf6\xf8-\xffĀ-ɏɓ-ɔɖ-ɗəɛɣɨɯɲʉʋʻ̀-ͯḀ-ỿЀ-ӿԀ-ԧⷠ-ⷿꙀ-֑ꚟ-ֿׁ-ׂׄ-ׇׅא-תװ-״﬒-ﬨשׁ-זּטּ-לּמּנּ-סּףּ-פּצּ-ﭏؐ-ؚؠ-ٟٮ-ۓە-ۜ۞-۪ۨ-ۯۺ-ۼۿݐ-ݿࢠࢢ-ࢬࣤ-ࣾﭐ-ﮱﯓ-ﴽﵐ-ﶏﶒ-ﷇﷰ-ﷻﹰ-ﹴﹶ-ﻼ‌-‌ก-ฺเ-๎ᄀ-ᇿ㄰-ㆅꥠ-꥿가-힯ힰ-퟿ᄀ-ᅵァ-ヺー-ヾヲ-゚0-9A-Za-zぁ-ゖ゙-ゞ㐀-䶿一-鿿"+e(173824)+"-"+e(177983)+e(177984)+"-"+e(178207)+e(194560)+"-"+e(195103)+"〃々〻";return{alpha:t,alphanumeric:t+"̀-ͯ҃-֑҆-ֹֻ-ֽֿׁ-ׂׄ-ׇׅؐ-ًؕ-ٰٞۖ-ۜ۟-ۤۧ-۪ۨ-ܑۭܰ-݊ަ-ްँ-ः़ा-्॑-॔ॢ-ॣঁ-ঃ়া-ৄে-ৈো-্ৗৢ-ৣਁ-ਃ਼ਾ-ੂੇ-ੈੋ-੍ੰ-ੱઁ-ઃ઼ા-ૅે-ૉો-્ૢ-ૣଁ-ଃ଼ା-ୃେ-ୈୋ-୍ୖ-ୗஂா
1-ூெ-ைொ-்ௗఁ-ఃా-ౄె-ైొ-్ౕ-ౖಂ-ಃ಼ಾ-ೄೆ-ೈೊ-್ೕ-ೖം-ഃാ-ൃെ-ൈൊ-്ൗං-ඃ්ා-ුූෘ-ෟෲ-ෳัิ-ฺ็-๎ັິ-ູົ-ຼ່-ໍ༘-༹༙༵༷༾-༿ཱ-྄྆-྇ྐ-ྗྙ-ྼ࿆ာ-ဲံ-္ၖ-ၙ፟ᜒ-᜔ᜲ-᜴ᝒ-ᝓᝲ-ᝳា-៓៝᠋-᠍ᢩᤠ-ᤫᤰ-᤻ᦰ-ᧀᧈ-ᧉᨗ-ᨛ᷀-᷃⃐-⃥⃜⃡-⃫〪-゙〯-゚ꠂ꠆ꠋꠣ-ꠧﬞ︀-️︠-︣0-9٠-٩۰-۹०-९০-৯੦-੯૦-૯୦-୯௦-௯౦-౯೦-೯൦-൯๐-๙໐-໙༠-༩၀-၉០-៩᠐-᠙᥆-᥏᧐-᧙0-9_",hashChars:"#\\uFF03"}}(),r="["+t+"]";return"(^|$|[^&/"+t+"])(["+n+"])("+r+"*["+e+"]"+r+"*)"}(),"i");function a(){let[e]=(0,i.DF)();(0,o.useEffect)(()=>{if(!e.hasNodes([r.ZZ]))throw Error("HashtagPlugin: HashtagNode not registered on editor")},[e]);let t=(0,o.useCallback)(e=>(0,r.Lr)(e.getTextContent()),[]),n=(0,o.useCallback)(e=>{let t=s.exec(e);if(null===t)return null;let n=t[3].length+1,r=t.index+t[1].length;return{end:r+n,start:r}},[]);return(0,l.q)(n,r.ZZ,t),null}},80175:(e,t,n)=>{"use strict";n.d(t,{Gi:()=>W,JI:()=>J,Rm:()=>U,Wn:()=>q,Yz:()=>j,_s:()=>K,bk:()=>Z,iM:()=>x,r5:()=>H});var r=n(53310),i=n(99491),l=n(46716),o=n(43971),s=n(47395),a=n(62239);function u(e,t){let n={};for(let r of e){let e=t(r);e&&(n[e]?n[e].push(r):n[e]=[r])}return n}function c(e){let t=u(e,e=>e.type);return{element:t.element||[],multilineElement:t["multiline-element"]||[],textFormat:t["text-format"]||[],textMatch:t["text-match"]||[]}}let d=/[!-/:-@[-`{-~\s]/,f=/^\s{0,3}$/;function g(e){if(!(0,r.bSg)(e))return!1;let t=e.getFirstChild();return null==t||1===e.getChildrenSize()&&(0,r.kFe)(t)&&f.test(t.getTextContent())}function h(e,t,n,i,l){let o=[],s=e.getChildren();i||(i=[]),l||(l=[]);t:for(let e of s){for(let r of n){if(!r.export)continue;let s=r.export(e,e=>h(e,t,n,i,[...l,...i]),(e,n)=>p(e,n,t,i,l));if(null!=s){o.push(s);continue t}}(0,r.wH$)(e)?o.push("\n"):(0,r.kFe)(e)?o.push(p(e,e.getTextContent(),t,i,l)):(0,r.ff4)(e)?o.push(h(e,t,n,i,l)):(0,r.Cyw)(e)&&o.push(e.getTextContent())}return o.join("")}function p(e,t,n,r,i){let l=0===e.getFormat()?t:t.replace(/^\s+|\s+$/g,e=>[...e].map(e=>"&#"+e.codePointAt(0)+";").join(""));e.hasFormat("code")||(l=l.replace(/([*_`~\\])/g,"\\$1"));let o="",s="",a="",u=m(e,!0),c=m(e,!1),d=new Set;for(let t of n){let n=t.format[0],i=t.tag;y(e,n)&&!d.has(n)&&(d.add(n),y(u,n)&&r.find(e=>e.tag===i)||(r.push({format:n,tag:i}),o+=i))}for(let t=0;t<r.length;t++){let n=y(e,r[t].format),l=y(c,r[t].format);if(n&&l)continue;let o=[...r];for(;o.length>t;){let e=o.pop();i&&e&&i.find(t=>t.tag===e.tag)||(e&&"string"==typeof e.tag&&(n?l||(a+=e.tag):s+=e.tag),r.pop())}break}return s+(l=o+l+a)}function m(e,t){let n=t?e.getPreviousSibling():e.getNextSibling();if(!n){let r=e.getParentOrThrow();r.isInline()&&(n=t?r.getPreviousSibling():r.getNextSibling())}for(;n;){if((0,r.ff4)(n)){if(!n.isInline())break;let e=t?n.getLastDescendant():n.getFirstDescendant();if((0,r.kFe)(e))return e;n=t?n.getPreviousSibling():n.getNextSibling()}if((0,r.kFe)(n))return n;if(!(0,r.ff4)(n))break}return null}function y(e,t){return(0,r.kFe)(e)&&e.hasFormat(t)}function v(e){return(0,r.kFe)(e)&&!e.hasFormat("code")}function _(e,t,n){let r=n.length;for(let i=t;i>=r;i--){let t=i-r;if(b(e,t,n,0,r)&&" "!==e[t+r])return t}return -1}function b(e,t,n,r,i){for(let l=0;l<i;l++)if(e[t+l]!==n[r+l])return!1;return!0}function x(e,t=U){let n=c(t),i=u(n.textFormat,({tag:e})=>e[e.length-1]),l=u(n.textMatch,({trigger:e})=>e);for(let n of t){let t=n.type;if("element"===t||"text-match"===t||"multiline-element"===t)for(let t of n.dependencies)e.hasNode(t)||function(e,...t){let n=new URL("https://lexical.dev/docs/error"),r=new URLSearchParams;for(let e of(r.append("code",173),t))r.append("v",e);throw n.search=r.toString(),Error(`Minified Lexical error #${173}; visit ${n.toString()} for the full message or use the non-minified dev environment for full errors and additional helpful warnings.`)}(173,t.getType())}return e.registerUpdateListener(({tags:t,dirtyLeaves:o,editorState:a,prevEditorState:u})=>{if(t.has(r.Ng_)||t.has(r.n0X)||e.isComposing())return;let c=a.read(r.vJq),f=u.read(r.vJq);if(!(0,r.I2P)(f)||!(0,r.I2P)(c)||!c.isCollapsed()||c.is(f))return;
1let g=c.anchor.key,h=c.anchor.offset,p=a._nodeMap.get(g);(0,r.kFe)(p)&&o.has(g)&&(1===h||!(h>f.anchor.offset+1))&&e.update(()=>{var e;if(!v(p))return;let t=p.getParent();null===t||(0,s.a5)(t)||function(e,t,n,i){let l=e.getParent();if(!(0,r.IqF)(l)||e.getFirstChild()!==t)return!1;let o=t.getTextContent();if(" "!==o[n-1])return!1;for(let{regExp:r,replace:l}of i){let i=o.match(r);if(i&&i[0].length===(i[0].endsWith(" ")?n:n-1)){let r=t.getNextSiblings(),[o,s]=t.splitText(n);if(!1!==l(e,s?[s,...r]:r,i,!1))return o.remove(),!0}}return!1}(t,p,e=c.anchor.offset,n.element)||function(e,t,n,i){let l=e.getParent();if(!(0,r.IqF)(l)||e.getFirstChild()!==t)return!1;let o=t.getTextContent();if(" "!==o[n-1])return!1;for(let{regExpStart:r,replace:l,regExpEnd:s}of i){if(s&&!("optional"in s)||s&&"optional"in s&&!s.optional)continue;let i=o.match(r);if(i&&i[0].length===(i[0].endsWith(" ")?n:n-1)){let r=t.getNextSiblings(),[o,s]=t.splitText(n);if(!1!==l(e,s?[s,...r]:r,i,null,null,!1))return o.remove(),!0}}return!1}(t,p,e,n.multilineElement)||function(e,t,n){let r=e.getTextContent(),i=n[r[t-1]];if(null==i)return!1;for(let n of(t<r.length&&(r=r.slice(0,t)),i)){let t;if(!n.replace||!n.regExp)continue;let i=r.match(n.regExp);if(null===i)continue;let l=i.index||0,o=l+i[0].length;return 0===l?[t]=e.splitText(o):[,t]=e.splitText(l,o),t.selectNext(0,0),n.replace(t,i),!0}return!1}(p,e,l)||function(e,t,n){let i=e.getTextContent(),l=t-1,o=i[l],s=n[o];if(s)for(let t of s){let{tag:n}=t,s=n.length,a=l-s+1;if(s>1&&!b(i,a,n,0,s)||" "===i[a-1])continue;let u=i[l+1];if(!1===t.intraword&&u&&!d.test(u))continue;let c=e,f=_(i,a,n),g=c;for(;f<0&&(g=g.getPreviousSibling())&&!(0,r.wH$)(g);)if((0,r.kFe)(g)){if(g.hasFormat("code"))continue;let e=g.getTextContent();c=g,f=_(e,e.length,n)}if(f<0||c===e&&f+s===a)continue;let h=c.getTextContent();if(f>0&&h[f-1]===o)continue;let p=h[f-1];if(!1===t.intraword&&p&&!d.test(p))continue;let m=e.getTextContent(),y=m.slice(0,a)+m.slice(l+1);e.setTextContent(y);let v=c===e?y:h;c.setTextContent(v.slice(0,f)+v.slice(f+s));let x=(0,r.vJq)(),S=(0,r.uTE)();(0,r.n1P)(S);let w=l-s*(c===e?2:1)+1;for(let n of(S.anchor.set(c.__key,f,"text"),S.focus.set(e.__key,w,"text"),t.format))S.hasFormat(n)||S.formatText(n);for(let e of(S.anchor.set(S.focus.key,S.focus.offset,S.focus.type),t.format))S.hasFormat(e)&&S.toggleFormat(e);return(0,r.I2P)(x)&&(S.format=x.format),!0}}(p,e,i)})})}let S=/^(\s*)(\d{1,})\.\s/,w=/^(\s*)[-*+]\s/,C=/^(\s*)(?:-\s)?\s?(\[(\s|x)?\])\s/i,k=/^(#{1,6})\s/,E=/^>\s/,T=/^[ \t]*```([\w-]+)?/,A=/[ \t]*```$/,N=/^[ \t]*```[^`]+(?:(?:`{1,2}|`{4,})[^`]+)*```(?:[^`]|$)/,F=/^(?:\|)(.+)(?:\|)\s?$/,R=/^(\| ?:?-*:? ?)+\|\s?$/,M=e=>(t,n,r,i)=>{let l=e(r);l.append(...n),t.replace(l),i||l.select(0,0)},O=e=>(t,n,r,l)=>{let o=t.getPreviousSibling(),s=t.getNextSibling(),a=(0,i.i)("check"===e?"x"===r[3]:void 0);if((0,i.HY)(s)&&s.getListType()===e){let e=s.getFirstChild();null!==e?e.insertBefore(a):s.append(a),t.remove()}else if((0,i.HY)(o)&&o.getListType()===e)o.append(a),t.remove();else{let n=(0,i.DE)(e,"number"===e?Number(r[2]):void 0);n.append(a),t.replace(n)}a.append(...n),l||a.select(0,0);let u=function(e){let t=e.match(/\t/g),n=e.match(/ /g),r=0;return t&&(r+=t.length),n&&(r+=Math.floor(n.length/4)),r}(r[1]);u&&a.setIndent(u)},I=(e,t,n)=>{let r=[],l=e.getChildren(),o=0;for(let s of l)if((0,i.Mz)(s)){if(1===s.getChildrenSize()){let e=s.getFirstChild();if((0,i.HY)(e)){r.push(I(e,t,n+1));continue}}let l=" ".repeat(4*n),a=e.getListType(),u="number"===a?`${e.getStart()+o}. `:"check"===a?`- [${s.getChecked()?"x":" "}] `:"- ";r.push(l+u+t(s)),o++}return r.join("\n")},P={dependencies:[l.jL],export:(e,t)=>{if(!(0,l.Pi)(e))return null;let n=Number(e.getTag().slice(1));return"#".repeat(n)+" "+t(e)},regExp:k,replace:M(e=>{let t="h"+e[1].length;return(0,l.fi)(t)}),type:"element"},L={dependencies:[l.dJ],export:(e,t)=>{if(!(0,l.jd)(e))return null;let n=t(e).split("\n"),r=[];for(let e of n)r.push("> "+e);return r.join("\n")},regExp:E,replace:(e,t,n,i)=>{if(i){let n=e.getPreviousSibling();if((0,l.jd)(n))return n.splice(n.getChildrenSize(),0,[(0,r.WKo)(),...t]),void e.remove()}let o=(0,l.xi)();o.append(...t),e.replace(o),i||o.select(0,0)},type:"element"},D={dependencies:[s.iK],export:e=>{if(!(0,s.a5)(e))return null;let t=e.getTextContent();return"```"+(e.getLanguage()||"")+(t?"\n"+t:"")+"\n```"},regExpEnd:{optional:!0,regExp:A},regExpStart:T,replace:(e,t,n,i,l,o)=>{let a,u;if(!t&&l){if(1===l.length)i?(a=(0,s.QC)(),u=n[1]+l[0]):(a=(0,s.QC)(n[1]),u=l[0].startsWith(" ")?l[0].slice(1):l[0]);else{if(a=(0,s.QC)(n[1]),0===l[0].trim().length)for(;l.length>0&&!l[0].length;)l.shift();else l[0]=l[0].startsWith(" ")?l[0].slice(1):l[0];for(;l.length>0&&!l[l.length-1].length;)l.pop();u=l.join("\n")}let t=(0,r.sTu)(u);a.append(t),e.append(a)}else t&&M(e=>(0,s.QC)(e?e[1]:void 0))(e,t,n,o)},type:"multiline-element"},B={dependencies:[i.v5,i.YW],export:(e,t)=>(0,i.HY)(e)?I(e,t,0):null,regExp:w,replace:O("bullet"),type:"element"}
1,K={dependencies:[i.v5,i.YW],export:(e,t)=>(0,i.HY)(e)?I(e,t,0):null,regExp:C,replace:O("check"),type:"element"},z={dependencies:[i.v5,i.YW],export:(e,t)=>(0,i.HY)(e)?I(e,t,0):null,regExp:S,replace:O("number"),type:"element"},$={dependencies:[a.Db],export:(e,t,n)=>{if(!(0,a.FJ)(e)||(0,a.iK)(e))return null;let r=e.getTitle(),i=t(e);return r?`[${i}](${e.getURL()} "${r}")`:`[${i}](${e.getURL()})`},importRegExp:/(?:\[([^[]+)\])(?:\((?:([^()\s]+)(?:\s"((?:[^"]*\\")*[^"]*)"\s*)?)\))/,regExp:/(?:\[([^[]+)\])(?:\((?:([^()\s]+)(?:\s"((?:[^"]*\\")*[^"]*)"\s*)?)\))$/,replace:(e,t)=>{let[,n,i,l]=t,o=(0,a.zA)(i,{title:l}),s=(0,r.sTu)(n);return s.setFormat(e.getFormat()),o.append(s),e.replace(o),s},trigger:")",type:"text-match"},W=[P,L,B,z],j=[D],J=[{format:["code"],tag:"`",type:"text-format"},{format:["bold","italic"],tag:"***",type:"text-format"},{format:["bold","italic"],intraword:!1,tag:"___",type:"text-format"},{format:["bold"],tag:"**",type:"text-format"},{format:["bold"],intraword:!1,tag:"__",type:"text-format"},{format:["highlight"],tag:"==",type:"text-format"},{format:["italic"],tag:"*",type:"text-format"},{format:["italic"],intraword:!1,tag:"_",type:"text-format"},{format:["strikethrough"],tag:"~~",type:"text-format"}],H=[$],U=[...W,...j,...J,...H];function q(e,t=U,n,s=!1,a=!1){let u=s?e:function(e,t=!1){let n=e.split("\n"),r=!1,i=[];for(let e=0;e<n.length;e++){let l=n[e],o=i[i.length-1];N.test(l)?i.push(l):T.test(l)||A.test(l)?(r=!r,i.push(l)):r||""===l||""===o||!o||k.test(o)||k.test(l)||E.test(l)||S.test(l)||w.test(l)||C.test(l)||F.test(l)||R.test(l)||!t?i.push(l):i[i.length-1]=o+l}return i.join("\n")}(e,a);return(function(e,t=!1){let n=c(e),s=function(e){let t={},n={},r=[];for(let i of e){let{tag:e}=i;t[e]=i;let l=e.replace(/(\*|\^|\+)/g,"\\$1");r.push(l),1===e.length?n[e]=RegExp(`(?<![\\\\${l}])(${l})((\\\\${l})?.*?[^${l}\\s](\\\\${l})?)((?<!\\\\)|(?<=\\\\\\\\))(${l})(?![\\\\${l}])`):n[e]=RegExp(`(?<!\\\\)(${l})((\\\\${l})?.*?[^\\s](\\\\${l})?)((?<!\\\\)|(?<=\\\\\\\\))(${l})(?!\\\\)`)}return{fullMatchRegExpByTag:n,openTagsRegExp:RegExp(`(?<![\\\\])(${r.join("|")})`,"g"),transformersByTag:t}}(n.textFormat);return(e,a)=>{let u=e.split("\n"),c=u.length,f=a||(0,r.NiT)();f.clear();for(let e=0;e<c;e++){let a=u[e],[c,g]=function(e,t,n,r){for(let i of n){let{handleImportAfterStartMatch:n,regExpEnd:l,regExpStart:o,replace:s}=i,a=e[t].match(o);if(!a)continue;if(n){let l=n({lines:e,rootNode:r,startLineIndex:t,startMatch:a,transformer:i});if(null===l)continue;if(l)return l}let u="object"==typeof l&&"regExp"in l?l.regExp:l,c=l&&"object"==typeof l&&"optional"in l?l.optional:!l,d=t,f=e.length;for(;d<f;){let n=u?e[d].match(u):null;if(!n&&(!c||c&&d<f-1)||n&&t===d&&n.index===a.index){d++;continue}let i=[];if(n&&t===d)i.push(e[t].slice(a[0].length,-n[0].length));else for(let r=t;r<=d;r++)if(r===t){let t=e[r].slice(a[0].length);i.push(t)}else if(r===d&&n){let t=e[r].slice(0,-n[0].length);i.push(t)}else i.push(e[r]);if(!1!==s(r,null,a,n,i,!0))return[!0,d];break}}return[!1,t]}(u,e,n.multilineElement,f);c?e=g:function(e,t,n,s,a,u){let c=(0,r.sTu)(e),f=(0,r.lJ7)();for(let{regExp:r,replace:i}of(f.append(c),t.append(f),n)){let t=e.match(r);if(t&&(c.setTextContent(e.slice(t[0].length)),!1!==i(f,[c],t,!0)))break}if(function e(t,n,r){let i=function(e,t){let n=function(e,t){let n=e.match(t.openTagsRegExp);if(null==n)return null;for(let r of n){let n=r.replace(/^\s/,""),i=t.fullMatchRegExpByTag[n];if(null==i)continue;let l=e.match(i),o=t.transformersByTag[n];if(null!=l&&null!=o){if(!1!==o.intraword)return l;let{index:t=0}=l,n=e[t-1],r=e[t+l[0].length];if((!n||d.test(n))&&(!r||d.test(r)))return l}}return null}(e.getTextContent(),t);if(!n)return null;let r=n.index||0;return{endIndex:r+n[0].length,match:n,startIndex:r,transformer:t.transformersByTag[n[1]]}}(t,n),l=function(e,t){let n,r,i,l;for(let o of t){if(!o.replace||!o.importRegExp)continue;let t=e.getTextContent().match(o.importRegExp);if(!t)continue;let s=t.index||0,a=o.getEndIndex?o.getEndIndex(e,t):s+t[0].length;!1!==a&&(void 0===n||void 0===r||s<n&&a>r)&&(n=s,r=a,i=o,l=t)}return void 0===n||void 0===r||void 0===i||void 0===l?null:{endIndex:r,match:l,startIndex:n,transformer:i}}(t,r);if(i&&l&&(i.startIndex<=l.startIndex&&i.endIndex>=l.endIndex?l=null:i=null),i){let l=function(e,t,n,r,i){let l,o,s,a=e.getTextContent();if(i[0]===a?l=e:0===t?[l,o]=e.splitText(n):[s,l,o]=e.splitText(t,n),l.setTextContent(i[2]),r)for(let e of r.format)l.hasFormat(e)||l.toggleFormat(e);return{nodeAfter:o,nodeBefore:s,transformedNode:l}}
1(t,i.startIndex,i.endIndex,i.transformer,i.match);v(l.nodeAfter)&&e(l.nodeAfter,n,r),v(l.nodeBefore)&&e(l.nodeBefore,n,r),v(l.transformedNode)&&e(l.transformedNode,n,r)}else if(l){var o,s,a,u;let i,c,d,f=(o=l.startIndex,s=l.endIndex,a=l.transformer,u=l.match,0===o?[i,c]=t.splitText(s):[d,i,c]=t.splitText(o,s),a.replace?{nodeAfter:c,nodeBefore:d,transformedNode:a.replace(i,u)||void 0}:null);if(!f)return;v(f.nodeAfter)&&e(f.nodeAfter,n,r),v(f.nodeBefore)&&e(f.nodeBefore,n,r),v(f.transformedNode)&&e(f.transformedNode,n,r)}let c=t.getTextContent().replace(/\\([*_`~\\])/g,"$1").replace(/&#(\d+);/g,(e,t)=>String.fromCodePoint(t));t.setTextContent(c)}(c,s,a),f.isAttached()&&e.length>0){let e=f.getPreviousSibling();if(!u&&((0,r.bSg)(e)||(0,l.jd)(e)||(0,i.HY)(e))){let t=e;if((0,i.HY)(e)){let n=e.getLastDescendant();t=null==n?null:(0,o.Bt)(n,i.Mz)}null!=t&&t.getTextContentSize()>0&&(t.splice(t.getChildrenSize(),0,[(0,r.WKo)(),...f.getChildren()]),f.remove())}}}(a,f,n.element,s,n.textMatch,t)}for(let e of f.getChildren())!t&&g(e)&&f.getChildrenSize()>1&&e.remove();null!==(0,r.vJq)()&&f.selectStart()}})(t,s)(u,n)}function Z(e=U,t,n=!1){return(function(e,t=!1){let n=c(e),i=[...n.multilineElement,...n.element],l=!t,o=n.textFormat.filter(e=>1===e.format.length).sort((e,t)=>Number(e.format.includes("code"))-Number(t.format.includes("code")));return e=>{let t=[],s=(e||(0,r.NiT)()).getChildren();for(let e=0;e<s.length;e++){let a=s[e],u=function(e,t,n,i){for(let r of t){if(!r.export)continue;let t=r.export(e,e=>h(e,n,i));if(null!=t)return t}return(0,r.ff4)(e)?h(e,n,i):(0,r.Cyw)(e)?e.getTextContent():null}(a,i,o,n.textMatch);null!=u&&t.push(l&&e>0&&!g(a)&&!g(s[e-1])?"\n".concat(u):u)}return t.join("\n")}})(e,n)(t)}},81983:(e,t,n)=>{"use strict";n.d(t,{A:()=>r});let r=(0,n(78340).A)("PaintBucket",[["path",{d:"m19 11-8-8-8.6 8.6a2 2 0 0 0 0 2.8l5.2 5.2c.8.8 2 .8 2.8 0L19 11Z",key:"irua1i"}],["path",{d:"m5 2 5 5",key:"1lls2c"}],["path",{d:"M2 13h15",key:"1hkzvu"}],["path",{d:"M22 20a2 2 0 1 1-4 0c0-1.6 1.7-2.4 2-4 .3 1.6 2 2.4 2 4Z",key:"xk76lq"}]])},82482:(e,t,n)=>{"use strict";n.d(t,{A:()=>r});let r=(0,n(78340).A)("Minus",[["path",{d:"M5 12h14",key:"1ays0h"}]])},82513:(e,t,n)=>{"use strict";n.d(t,{q:()=>s});var r=n(36997),i=n(61511),l=n(43971),o=n(12115);function s(e,t,n){let[s]=(0,r.DF)();(0,o.useEffect)(()=>(0,l.Sd)(...(0,i.eW)(s,e,t,n)),[n,s,e,t])}},83430:(e,t,n)=>{"use strict";n.d(t,{A:()=>r});let r=(0,n(78340).A)("Figma",[["path",{d:"M5 5.5A3.5 3.5 0 0 1 8.5 2H12v7H8.5A3.5 3.5 0 0 1 5 5.5z",key:"1340ok"}],["path",{d:"M12 2h3.5a3.5 3.5 0 1 1 0 7H12V2z",key:"1hz3m3"}],["path",{d:"M12 12.5a3.5 3.5 0 1 1 7 0 3.5 3.5 0 1 1-7 0z",key:"1oz8n2"}],["path",{d:"M5 19.5A3.5 3.5 0 0 1 8.5 16H12v3.5a3.5 3.5 0 1 1-7 0z",key:"1ff65i"}],["path",{d:"M5 12.5A3.5 3.5 0 0 1 8.5 9H12v7H8.5A3.5 3.5 0 0 1 5 12.5z",key:"pdip6e"}]])},83489:(e,t,n)=>{"use strict";n.d(t,{$S:()=>b,BJ:()=>g,Cb:()=>y,Nx:()=>u,Rk:()=>_,SD:()=>a,Wh:()=>s,Xg:()=>d,_A:()=>c,zI:()=>p});var r=n(53310);function i(e,...t){let n=new URL("https://lexical.dev/docs/error"),r=new URLSearchParams;for(let n of(r.append("code",e),t))r.append("v",n);throw n.search=r.toString(),Error(`Minified Lexical error #${e}; visit ${n.toString()} for the full message or use the non-minified dev environment for full errors and additional helpful warnings.`)}let l=new Map;function o(e){let t={};if(!e)return t;for(let n of e.split(";"))if(""!==n){let[e,r]=n.split(/:([^]+)/);e&&r&&(t[e.trim()]=r.trim())}return t}function s(e){let t=l.get(e);return void 0===t&&(t=o(e),l.set(e,t)),t}function a(e,t){let n=e.getStartEndPoints();if(t.isSelected(e)&&!(0,r.Rb_)(t)&&null!==n){let[i,l]=n,o=e.isBackward(),s=i.getNode(),a=l.getNode(),u=t.is(s),c=t.is(a);if(u||c){let[n,i]=(0,r.Cku)(e),l=s.is(a),u=t.is(o?a:s),c=t.is(o?s:a),d,f=0;l?(f=n>i?i:n,d=n>i?n:i):u?(f=o?i:n,d=void 0):c&&(f=0,d=o?n:i),t.__text=t.__text.slice(f,d)}}return t}function u(e){if("text"===e.type)return e.offset===e.getNode().getTextContentSize();let t=e.getNode();return(0,r.ff4)(t)||i(177),e.offset===t.getChildrenSize()}function c(e,t,n){let i=t.getNode(),l=n;if((0,r.ff4)(i)){let e=i.getDescendantByIndex(t.offset);null!==e&&(i=e)}for(;l>0&&null!==i;){if((0,r.ff4)(i)){let e=i.getLastDescendant();null!==e&&(i=e)}let n=i.getPreviousSibling(),o=0;if(null===n){let e=i.getParentOrThrow(),t=e.getPreviousSibling();for(;null===t;){if(null===(e=e.getParent())){n=null;break}t=e.getPreviousSibling()}null!==e&&(o=2*!e.isInline(),n=t)}let s=i.getTextContent();""===s&&(0,r.ff4)(i)&&!i.isInline()&&(s="\n\n");let a=s.length;if(!(0,r.kFe)(i)||l>=a){let e=i.getParent();i.remove(),null==e||0!==e.getChildrenSize()||(0,r.hVZ)(e)||e.remove(),l-=a+o,i=n}else{let n=i.getKey(),o=e.getEditorState().read(()=>{let e=(0,r.nsf)(n);return(0,r.kFe)(e)&&e.isSimpleText()?e.getTextContent():null}),u=a-l,c=s.slice(0,u);if(null!==o&&o!==s){let e=(0,r.S1w)(),t=i;if(i.isSimpleText())i.setTextContent(o);else{let e=(0,r.sTu)(o);i.replace(e),t=e}if((0,r.I2P)(e)&&e.isCollapsed()){let n=e.anchor.offset;t.select(n,n)}}else if(i.isSimpleText()){let e=t.key===n,r=t.offset;r<l&&(r=a);let o=e?r-l:0,s=e?r:u;if(e&&0===o){let[e]=i.splitText(o,s);e.remove()}else{let[,e]=i.splitText(o,s);e.remove()}}else{let e=(0,r.sTu)(c);i.replace(e)}l=0}}}function d(e){let t=e.getStyle(),n=o(t);l.set(t,n)}function f(e,t){((0,r.I2P)(e)?e.isCollapsed():(0,r.kFe)(e)||(0,r.ff4)(e))||i(280);let n=s((0,r.I2P)(e)?e.style:(0,r.kFe)(e)?e.getStyle():e.getTextStyle()),o=Object.entries(t).reduce((t,[r,i])=>("function"==typeof i?t[r]=i(n[r],e):null===i?delete t[r]:t[r]=i,t),{...n}),a=function(e){let t="";for(let n in e)n&&(t+=`${n}: ${e[n]};`);return t}(o);(0,r.I2P)(e)||(0,r.kFe)(e)?e.setStyle(a):e.setTextStyle(a),l.set(a,o)}function g(e,t){if((0,r.I2P)(e)&&e.isCollapsed()){f(e,t);let n=e.anchor.getNode();(0,r.ff4)(n)&&n.isEmpty()&&f(n,t)}!function(e){let t=(0,r.vJq)();if(!t)return;let n=new Map;if((0,r.I2P)(t))for(let e of(0,r.$iu)(t).getTextSlices())e&&n.set(e.caret.origin.getKey(),e.getSliceIndices());for(let i of t.getNodes()){if(!(0,r.kFe)(i)||!i.canHaveFormat())continue;let[t,l]=n.get(i.getKey())||[0,i.getTextContentSize()];l!==t&&e((0,r.Rb_)(i)||0===t&&l===i.getTextContentSize()?i:i.splitText(t,l)[
1+(0!==t)])}(0,r.I2P)(t)&&"text"===t.anchor.type&&"text"===t.focus.type&&t.anchor.key===t.focus.key&&function(e){if(e.isBackward()){let{anchor:t,focus:n}=e,{key:r,offset:i,type:l}=t;t.set(n.key,n.offset,n.type),n.set(r,i,l)}}(t)}(e=>{f(e,t)})}function h(e,t){let n=e.getFormatType(),r=e.getIndent();n!==t.getFormatType()&&t.setFormat(n),r!==t.getIndent()&&t.setIndent(r)}function p(e,t,n=h){if(null===e)return;let i=e.getStartEndPoints(),l=new Map,o=null;if(i){let[e,t]=i;(o=(0,r.uTE)()).anchor.set(e.key,e.offset,e.type),o.focus.set(t.key,t.offset,t.type);let n=x(e.getNode(),r.w3H),s=x(t.getNode(),r.w3H);(0,r.ff4)(n)&&l.set(n.getKey(),n),(0,r.ff4)(s)&&l.set(s.getKey(),s)}for(let t of e.getNodes())if((0,r.ff4)(t)&&(0,r.w3H)(t))l.set(t.getKey(),t);else if(null===i){let e=x(t,r.w3H);(0,r.ff4)(e)&&l.set(e.getKey(),e)}for(let[e,r]of l){let i=t();n(r,i),r.replace(i,!0),o&&(e===o.anchor.key&&o.anchor.set(i.getKey(),o.anchor.offset,o.anchor.type),e===o.focus.key&&o.focus.set(i.getKey(),o.focus.offset,o.focus.type))}o&&e.is((0,r.vJq)())&&(0,r.n1P)(o)}function m(e){let t=e.anchor.getNode(),n=(0,r.hVZ)(t)?t:t.getParentOrThrow(),i=(0,r.i0_)().getElementByKey(n.getKey());if(null===i)return!1;let l=i.ownerDocument.defaultView;return null!==l&&"vertical-rl"===l.getComputedStyle(i).writingMode}function y(e,t){let n=m(e)?!t:t;v(e)&&(n=!n);let i=(0,r.Ave)(e.focus,n?"previous":"next");if((0,r.pGK)(i))return!1;for(let e of(0,r.mWO)(i)){if((0,r.cmH)(e))return!e.origin.isInline();if(!(0,r.ff4)(e.origin)){if((0,r.Cyw)(e.origin))return!0;break}}return!1}function v(e){let t=e.anchor.getNode();return"rtl"===((0,r.hVZ)(t)?t:t.getParentOrThrow()).getDirection()}function _(e,t,n){let r,i=v(e);r=m(e)||i?!n:n,e.modify(t?"extend":"move",r,"character")}function b(e,t,n=""){let i=null,l=e.getNodes(),o=e.anchor,a=e.focus,u=e.isBackward(),c=u?a.offset:o.offset,d=u?a.getNode():o.getNode();if((0,r.I2P)(e)&&e.isCollapsed()&&""!==e.style){let n=s(e.style);if(null!==n&&t in n)return n[t]}for(let e=0;e<l.length;e++){let o=l[e];if((0===e||0!==c||!o.is(d))&&(0,r.kFe)(o)){let e=function(e,t,n){let r=s(e.getStyle());return null!==r&&r[t]||n}(o,t,n);if(null===i)i=e;else if(i!==e){i="";break}}}return null===i?n:i}function x(e,t){let n=e;for(;null!==n&&null!==n.getParent()&&!t(n);)n=n.getParentOrThrow();return t(n)?n:null}},84105:(e,t,n)=>{"use strict";n.d(t,{Lr:()=>o,ZZ:()=>l});var r=n(43971),i=n(53310);class l extends i.Ey8{static getType(){return"hashtag"}static clone(e){return new l(e.__text,e.__key)}createDOM(e){let t=super.createDOM(e);return(0,r.ZB)(t,e.theme.hashtag),t}static importJSON(e){return o().updateFromJSON(e)}canInsertTextBefore(){return!1}isTextEntity(){return!0}}function o(e=""){return(0,i.pTq)(new l(e))}},86737:(e,t,n)=>{"use strict";n.d(t,{y:()=>g});var r=n(36997),i=n(12115),l=n(70535),o=n(61511),s=n(43971),a=n(53310),u=n(95155);function c(e){let t=(0,l.NE)();return e.replace(t),t.append(e),t}let d=null;function f({remainingCharacters:e}){return(0,u.jsx)("span",{className:"characters-limit "+(e<0?"characters-limit-exceeded":""),children:e})}function g({charset:e="UTF-16",maxLength:t=5,renderer:n=f}){let[u]=(0,r.DF)(),[g,h]=(0,i.useState)(t);return function(e,t,n=Object.freeze({})){let{strlen:r=e=>e.length,remainingCharacters:u=()=>{}}=n;(0,i.useEffect)(()=>{e.hasNodes([l.Vd])||function(e,...t){let n=new URL("https://lexical.dev/docs/error"),r=new URLSearchParams;for(let e of(r.append("code",57),t))r.append("v",e);throw n.search=r.toString(),Error(`Minified Lexical error #${57}; visit ${n.toString()} for the full message or use the non-minified dev environment for full errors and additional helpful warnings.`)}(57)},[e]),(0,i.useEffect)(()=>{let n=e.getEditorState().read(o.n$),i=0;return(0,s.Sd)(e.registerTextContentListener(e=>{n=e}),e.registerUpdateListener(({dirtyLeaves:o,dirtyElements:d})=>{let f=e.isComposing(),g=o.size>0||d.size>0;if(f||!g)return;let h=r(n),p=h>t||null!==i&&i>t;if(u(t-h),null===i||p){let i=function(e,t,n){let r=Intl.Segmenter,i=0,l=0;if("function"==typeof r)for(let{segment:o}of(new r).segment(e)){let e=l+n(o);if(e>t)break;l=e,i+=o.length}else{let r=Array.from(e),o=r.length;for(let e=0;e<o;e++){let o=r[e],s=l+n(o);if(s>t)break;l=s,i+=o.length}}return i}(n,t,r);e.update(()=>{!function(e){let t=(0,s.Ie)(),n=t.length,r=0;for(let i=0;i<n;i+=1){let{node:n}=t[i],o=(0,a.jG6)(n)&&!(0,s.Bt)(n,l.XL);if((0,l.XL)(n)){let t=r;if(r+n.getTextContentSize()<=e){let e=n.getParent(),t=n.getPreviousSibling(),r=n.getNextSibling();(0,s.wn)(n);let i=(0,a.vJq)();!(0,a.I2P)(i)||i.anchor.getNode().isAttached()&&i.focus.getNode().isAttached()||((0,a.kFe)(t)?t.select():(0,a.kFe)(r)?r.select():null!==e&&e.select())}else if(t<e){let r=n.getFirstDescendant(),i=t+(null!==r?r.getTextContentSize():0);((0,a.kFe)(r)&&r.isSimpleText()||i<=e)&&(0,s.wn)(n)}}else if(o){let t=r;if((r+=n.getTextContentSize())>e&&!(0,l.XL)(n.getParent())){let r,i=(0,a.vJq)();if(t<e&&(0,a.kFe)(n)&&n.isSimpleText()){let[,i]=n.splitText(e-t);r=c(i)}else r=c(n);null!==i&&(0,a.n1P)(i),function(e){let t=e.getPreviousSibling();if(!(0,l.XL)(t))return;let n=e.getFirstChild(),r=t.getChildren(),i=r.length;if(null===n)e.append(...r);else for(let e=0;e<i;e++)n.insertBefore(r[e]);let o=(0,a.vJq)();if((0,a.I2P)(o)){let n=o.anchor,r=n.getNode(),l=o.focus,s=n.getNode();r.is(t)?n.set(e.getKey(),n.offset,"element"):r.is(e)&&n.set(e.getKey(),i+n.offset,"element"),s.is(t)?l.set(e.getKey(),l.offset,"element"):s.is(e)&&l.set(e.getKey(),i+l.offset,"element")}t.remove()}(r)}}}}(i)},{tag:a.T40})}i=h}),e.registerCommand(a.WuB,e=>{let t=(0,a.vJq)();if(!(0,a.I2P)(t))return!1;let n=t.anchor.getNode().getParent(),r=n?n.getParent():null,i=r?r.getNextSibling():null;return t.deleteCharacter(e),r&&r.isEmpty()?r.remove():(0,a.ff4)(i)&&i.isEmpty()&&i.remove(),!0},a.AcJ))},[e,t,u,r])}(u,t,(0,i.useMemo)(()=>({remainingCharacters:h,strlen:t=>{if("UTF-8"===e){let e=void 0===window.TextEncoder?null:(null===d&&(d=new window.TextEncoder),d);if(null===e){let e=encodeURIComponent(t).match(/%[89ABab]/g);return t.length+(e?e.length:0)}return e.encode(t).length}if("UTF-16"===e)return t.length;throw Error("Unrecognized charset")}}),[e])),n({remainingCharacters:g})}},87213:()=>{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?|CA
1SE|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:/[;[\]()`,.]/}},88449:(e,t,n)=>{"use strict";n.d(t,{A:()=>r});let r=(0,n(78340).A)("Twitter",[["path",{d:"M22 4s-.7 2.1-2 3.4c1.6 10-9.4 17.3-18 11.6 2.2.1 4.4-.6 6-2C3 15.5.5 9.6 3 5c2.2 2.6 5.6 4.1 9 4-.9-4.2 4-6.6 7-3.8 1.1 0 3-1.2 3-1.2z",key:"pff0z6"}]])},91219:(e,t,n)=>{"use strict";n.d(t,{A:()=>o});var r=n(99491),i=n(36997),l=n(12115);function o(){let[e]=(0,i.DF)();return(0,l.useEffect)(()=>(0,r.GO)(e),[e]),null}},91405:(e,t,n)=>{"use strict";n.d(t,{A:()=>r});let r=(0,n(78340).A)("Columns3",[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}],["path",{d:"M9 3v18",key:"fh3hqa"}],["path",{d:"M15 3v18",key:"14nvp0"}]])},92669:(e,t,n)=>{"use strict";n.d(t,{A:()=>r});let r=(0,n(78340).A)("Bold",[["path",{d:"M6 12h9a4 4 0 0 1 0 8H7a1 1 0 0 1-1-1V5a1 1 0 0 1 1-1h7a4 4 0 0 1 0 8",key:"mg9rjx"}]])},93923:(e,t,n)=>{var r=function(e){var t=/(?:^|\s)lang(?:uage)?-([\w-]+)(?=\s|$)/i,n=0,r={},i={manual:e.Prism&&e.Prism.manual,disableWorkerMessageHandler:e.Prism&&e.Prism.disableWorkerMessageHandler,util:{encode:function e(t){return t instanceof l?new l(t.type,e(t.content),t.alias):Array.isArray(t)?t.map(e):t.replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/\u00a0/g," ")},type:function(e){return Object.prototype.toString.call(e).slice(8,-1)},objId:function(e){return e.__id||Object.defineProperty(e,"__id",{value:++n}),e.__id},clone:function e(t,n){var r,l;switch(n=n||{},i.util.type(t)){case"Object":if(n[l=i.util.objId(t)])return n[l];for(var o in r={},n[l]=r,t)t.hasOwnProperty(o)&&(r[o]=e(t[o],n));return r;case"Array":if(n[l=i.util.objId(t)])return n[l];return r=[],n[l]=r,t.forEach(function(t,i){r[i]=e(t,n)}),r;default:return t}},getLanguage:function(e){for(;e;){var n=t.exec(e.className);if(n)return n[1].toLowerCase();e=e.parentElement}return"none"},setLanguage:function(e,n){e.className=e.className.replace(RegExp(t,"gi"),""),e.classList.add("language-"+n)},currentScript:function(){if("undefined"==typeof document)return null;if(document.currentScript&&"SCRIPT"===document.currentScript.tagName&&1)return document.currentScript;try{throw Error()}catch(r){var e=(/at [^(\r\n]*\((.*):[^:]+:[^:]+\)$/i.exec(r.stack)||[])[1];if(e){var t=document.getElementsByTagName("script");for(var n in t)if(t[n].src==e)return t[n]}return null}},isActive:function(e,t,n){for(var r="no-"+t;e;){var i=e.classList;if(i.contains(t))return!0;
1if(i.contains(r))return!1;e=e.parentElement}return!!n}},languages:{plain:r,plaintext:r,text:r,txt:r,extend:function(e,t){var n=i.util.clone(i.languages[e]);for(var r in t)n[r]=t[r];return n},insertBefore:function(e,t,n,r){var l=(r=r||i.languages)[e],o={};for(var s in l)if(l.hasOwnProperty(s)){if(s==t)for(var a in n)n.hasOwnProperty(a)&&(o[a]=n[a]);n.hasOwnProperty(s)||(o[s]=l[s])}var u=r[e];return r[e]=o,i.languages.DFS(i.languages,function(t,n){n===u&&t!=e&&(this[t]=o)}),o},DFS:function e(t,n,r,l){l=l||{};var o=i.util.objId;for(var s in t)if(t.hasOwnProperty(s)){n.call(t,s,t[s],r||s);var a=t[s],u=i.util.type(a);"Object"!==u||l[o(a)]?"Array"!==u||l[o(a)]||(l[o(a)]=!0,e(a,n,s,l)):(l[o(a)]=!0,e(a,n,null,l))}}},plugins:{},highlightAll:function(e,t){i.highlightAllUnder(document,e,t)},highlightAllUnder:function(e,t,n){var r={callback:n,container:e,selector:'code[class*="language-"], [class*="language-"] code, code[class*="lang-"], [class*="lang-"] code'};i.hooks.run("before-highlightall",r),r.elements=Array.prototype.slice.apply(r.container.querySelectorAll(r.selector)),i.hooks.run("before-all-elements-highlight",r);for(var l,o=0;l=r.elements[o++];)i.highlightElement(l,!0===t,r.callback)},highlightElement:function(t,n,r){var l=i.util.getLanguage(t),o=i.languages[l];i.util.setLanguage(t,l);var s=t.parentElement;s&&"pre"===s.nodeName.toLowerCase()&&i.util.setLanguage(s,l);var a=t.textContent,u={element:t,language:l,grammar:o,code:a};function c(e){u.highlightedCode=e,i.hooks.run("before-insert",u),u.element.innerHTML=u.highlightedCode,i.hooks.run("after-highlight",u),i.hooks.run("complete",u),r&&r.call(u.element)}if(i.hooks.run("before-sanity-check",u),(s=u.element.parentElement)&&"pre"===s.nodeName.toLowerCase()&&!s.hasAttribute("tabindex")&&s.setAttribute("tabindex","0"),!u.code){i.hooks.run("complete",u),r&&r.call(u.element);return}if(i.hooks.run("before-highlight",u),!u.grammar)return void c(i.util.encode(u.code));if(n&&e.Worker){var d=new Worker(i.filename);d.onmessage=function(e){c(e.data)},d.postMessage(JSON.stringify({language:u.language,code:u.code,immediateClose:!0}))}else c(i.highlight(u.code,u.grammar,u.language))},highlight:function(e,t,n){var r={code:e,grammar:t,language:n};if(i.hooks.run("before-tokenize",r),!r.grammar)throw Error('The language "'+r.language+'" has no grammar.');return r.tokens=i.tokenize(r.code,r.grammar),i.hooks.run("after-tokenize",r),l.stringify(i.util.encode(r.tokens),r.language)},tokenize:function(e,t){var n=t.rest;if(n){for(var r in n)t[r]=n[r];delete t.rest}var u=new s;return a(u,u.head,e),function e(t,n,r,s,u,c){for(var d in r)if(r.hasOwnProperty(d)&&r[d]){var f=r[d];f=Array.isArray(f)?f:[f];for(var g=0;g<f.length;++g){if(c&&c.cause==d+","+g)return;var h=f[g],p=h.inside,m=!!h.lookbehind,y=!!h.greedy,v=h.alias;if(y&&!h.pattern.global){var _=h.pattern.toString().match(/[imsuy]*$/)[0];h.pattern=RegExp(h.pattern.source,_+"g")}for(var b=h.pattern||h,x=s.next,S=u;x!==n.tail&&(!c||!(S>=c.reach));S+=x.value.length,x=x.next){var w,C=x.value;if(n.length>t.length)return;if(!(C instanceof l)){var k=1;if(y){if(!(w=o(b,S,t,m))||w.index>=t.length)break;var E=w.index,T=w.index+w[0].length,A=S;for(A+=x.value.length;E>=A;)A+=(x=x.next).value.length;if(A-=x.value.length,S=A,x.value instanceof l)continue;for(var N=x;N!==n.tail&&(A<T||"string"==typeof N.value);N=N.next)k++,A+=N.value.length;k--,C=t.slice(S,A),w.index-=S}else if(!(w=o(b,0,C,m)))continue;var E=w.index,F=w[0],R=C.slice(0,E),M=C.slice(E+F.length),O=S+C.length;c&&O>c.reach&&(c.reach=O);var I=x.prev;if(R&&(I=a(n,I,R),S+=R.length),function(e,t,n){for(var r=t.next,i=0;i<n&&r!==e.tail;i++)r=r.next;t.next=r,r.prev=t,e.length-=i}(n,I,k),x=a(n,I,new l(d,p?i.tokenize(F,p):F,v,F)),M&&a(n,x,M),k>1){var P={cause:d+","+g,reach:O};e(t,n,r,x.prev,S,P),c&&P.reach>c.reach&&(c.reach=P.reach)}}}}}}(e,u,t,u.head,0),function(e){for(var t=[],n=e.head.next;n!==e.tail;)t.push(n.value),n=n.next;return t}(u)},hooks:{all:{},add:function(e,t){var n=i.hooks.all;n[e]=n[e]||[],n[e].push(t)},run:function(e,t){var n=i.hooks.all[e];if(n&&n.length)for(var r,l=0;r=n[l++];)r(t)}},Token:l};function l(e,t,n,r){this.type=e,this.content=t,this.alias=n,this.length=0|(r||"").length}function o(e,t,n,r){e.lastIndex=t;var i=e.exec(n);if(i&&r&&i[1]){var l=i[1].length;i.index+=l,i[0]=i[0].slice(l)}return i}function s(){var e={value:null,prev:null,next:null},t={value:null,prev:e,next:null};e.next=t,this.head=e,this.tail=t,this.length=0}function a(e,t,n){var r=t.next,i={value:n,prev:t,next:r};return t.next=i,r.prev=i,e.length++,i}if(e.Prism=i,l.stringify=function e(t,n){if("string"==typeof t)return t;if(Array.isArray(t)){var r="";return t.forEach(function(t){r+=e(t,n)}),r}var l={type:t.type,content:e(t.content,n),tag:"span",classes:["token",t.type],attributes:{},language:n},o=t.alias;o&&(Array.isArray(o)?Array.prototype.push.apply(l.classes,o):l.classes.push(o)),i.hooks.run("wrap",l);var s="";for(var a in l.attributes)s+=" "+a+'="'+(l.attributes[a]||"").replace(/"/g,"&quot;")+'"';return"<"+l.tag+' class="'+l.classes.join(" ")+'"'+s+">"+l.content+"</"+l.tag+">"},!e.document)return e.addEventListener&&(i.disableWorkerMessageHandler||e.addEventListener("message",function(t){var n=JSON.parse(t.data),r=n.language,l=n.code,o=n.immediateClose;e.postMessage(i.highlight(l,i.languages[r],r)),o&&e.close()},!1)),i;var u=i.util.currentScript();function c(){i.manual||i.highlightAll()}if(u&&(i.filename=u.src,u.hasAttribute("data-manual")&&(i.manual=!0)),!i.manual){var d=document.readyState;"loading"===d||"interactive"===d&&u&&u.defer?document.addEventListener("DOMContentLoaded",c):window.requestAnimationFrame?window.requestAnimationFrame(c):window.setTimeout(c,16)}return i}("undefined"!=typeof window?window:"undefined"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope?self:{});e.exports&&(e.exports=r),void 0!==n.g&&(n.g.Prism=r),r.languages.markup={comment:{pattern:/<!--(?:(?!<!--)[\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>
1\/=]+(?:\s*=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+(?=[\s>]))|(?=[\s/>])))+)?\s*\/?>/,greedy:!0,inside:{tag:{pattern:/^<\/?[^\s>\/]+/,inside:{punctuation:/^<\/?/,namespace:/^[^\s>\/:]+:/}},"special-attr":[],"attr-value":{pattern:/=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+)/,inside:{punctuation:[{pattern:/^=/,alias:"attr-equals"},{pattern:/^(\s*)["']|["']$/,lookbehind:!0}]}},punctuation:/\/?>/,"attr-name":{pattern:/[^\s>\/]+/,inside:{namespace:/^[^\s>\/:]+:/}}}},entity:[{pattern:/&[\da-z]{1,8};/i,alias:"named-entity"},/&#x?[\da-f]{1,8};/i]},r.languages.markup.tag.inside["attr-value"].inside.entity=r.languages.markup.entity,r.languages.markup.doctype.inside["internal-subset"].inside=r.languages.markup,r.hooks.add("wrap",function(e){"entity"===e.type&&(e.attributes.title=e.content.replace(/&amp;/,"&"))}),Object.defineProperty(r.languages.markup.tag,"addInlined",{value:function(e,t){var n={};n["language-"+t]={pattern:/(^<!\[CDATA\[)[\s\S]+?(?=\]\]>$)/i,lookbehind:!0,inside:r.languages[t]},n.cdata=/^<!\[CDATA\[|\]\]>$/i;var i={"included-cdata":{pattern:/<!\[CDATA\[[\s\S]*?\]\]>/i,inside:n}};i["language-"+t]={pattern:/[\s\S]+/,inside:r.languages[t]};var l={};l[e]={pattern:RegExp(/(<__[^>]*>)(?:<!\[CDATA\[(?:[^\]]|\](?!\]>))*\]\]>|(?!<!\[CDATA\[)[\s\S])*?(?=<\/__>)/.source.replace(/__/g,function(){return e}),"i"),lookbehind:!0,greedy:!0,inside:i},r.languages.insertBefore("markup","cdata",l)}}),Object.defineProperty(r.languages.markup.tag,"addAttribute",{value:function(e,t){r.languages.markup.tag.inside["special-attr"].push({pattern:RegExp(/(^|["'\s])/.source+"(?:"+e+")"+/\s*=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+(?=[\s>]))/.source,"i"),lookbehind:!0,inside:{"attr-name":/^[^\s=]+/,"attr-value":{pattern:/=[\s\S]+/,inside:{value:{pattern:/(^=\s*(["']|(?!["'])))\S[\s\S]*(?=\2$)/,lookbehind:!0,alias:[t,"language-"+t],inside:r.languages[t]},punctuation:[{pattern:/^=/,alias:"attr-equals"},/"|'/]}}}})}}),r.languages.html=r.languages.markup,r.languages.mathml=r.languages.markup,r.languages.svg=r.languages.markup,r.languages.xml=r.languages.extend("markup",{}),r.languages.ssml=r.languages.xml,r.languages.atom=r.languages.xml,r.languages.rss=r.languages.xml,function(e){var t=/(?:"(?:\\(?:\r\n|[\s\S])|[^"\\\r\n])*"|'(?:\\(?:\r\n|[\s\S])|[^'\\\r\n])*')/;e.languages.css={comment:/\/\*[\s\S]*?\*\//,atrule:{pattern:RegExp("@[\\w-](?:"+/[^;{\s"']|\s+(?!\s)/.source+"|"+t.source+")*?"+/(?:;|(?=\s*\{))/.source),inside:{rule:/^@[\w-]+/,"selector-function-argument":{pattern:/(\bselector\s*\(\s*(?![\s)]))(?:[^()\s]|\s+(?![\s)])|\((?:[^()]|\([^()]*\))*\))+(?=\s*\))/,lookbehind:!0,alias:"selector"},keyword:{pattern:/(^|[^\w-])(?:and|not|only|or)(?![\w-])/,lookbehind:!0}}},url:{pattern:RegExp("\\burl\\((?:"+t.source+"|"+/(?:[^\\\r\n()"']|\\[\s\S])*/.source+")\\)","i"),greedy:!0,inside:{function:/^url/i,punctuation:/^\(|\)$/,string:{pattern:RegExp("^"+t.source+"$"),alias:"url"}}},selector:{pattern:RegExp("(^|[{}\\s])[^{}\\s](?:[^{};\"'\\s]|\\s+(?![\\s{])|"+t.source+")*(?=\\s*\\{)"),lookbehind:!0},string:{pattern:t,greedy:!0},property:{pattern:/(^|[^-\w\xA0-\uFFFF])(?!\s)[-_a-z\xA0-\uFFFF](?:(?!\s)[-\w\xA0-\uFFFF])*(?=\s*:)/i,lookbehind:!0},important:/!important\b/i,function:{pattern:/(^|[^-a-z0-9])[-a-z0-9]+(?=\()/i,lookbehind:!0},punctuation:/[(){};:,]/},e.languages.css.atrule.inside.rest=e.languages.css;var n=e.languages.markup;n&&(n.tag.addInlined("style","css"),n.tag.addAttribute("style","css"))}(r),r.languages.clike={comment:[{pattern:/(^|[^\\])\/\*[\s\S]*?(?:\*\/|$)/,lookbehind:!0,greedy:!0},{pattern:/(^|[^\\:])\/\/.*/,lookbehind:!0,greedy:!0}],string:{pattern:/(["'])(?:\\(?:\r\n|[\s\S])|(?!\1)[^\\\r\n])*\1/,greedy:!0},"class-name":{pattern:/(\b(?:class|extends|implements|instanceof|interface|new|trait)\s+|\bcatch\s+\()[\w.\\]+/i,lookbehind:!0,inside:{punctuation:/[.\\]/}},keyword:/\b(?:break|catch|continue|do|else|finally|for|function|if|in|instanceof|new|null|return|throw|try|while)\b/,boolean:/\b(?:false|true)\b/,function:/\b\w+(?=\()/,number:/\b0x[\da-f]+\b|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e[+-]?\d+)?/i,operator:/[<>]=?|[!=]=?=?|--?|\+\+?|&&?|\|\|?|[?*/~^%]/,punctuation:/[{}[\];(),.:]/},r.languages.javascript=r.languages.extend("clike",{"class-name":[r.languages.clike["class-name"],{pattern:/(^|[^$\w\xA0-\uFFFF])(?!\s)[_$A-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\.(?:constructor|prototype))/,lookbehind:!0}],keyword:[{pattern:/((?:^|\})\s*)catch\b/,lookbehind:!0},{pattern:/(^|[^.]|\.\.\.\s*)\b(?:as|assert(?=\s*\{)|async(?=\s*(?:function\b|\(|[$\w\xA0-\uFFFF]|$))|await|break|case|class|const|continue|debugger|default|delete|do|else|enum|export|extends|finally(?=\s*(?:\{|$))|for|from(?=\s*(?:['"]|$))|function|(?:get|set)(?=\s*(?:[#\[$\w\xA0-\uFFFF]|$))|if|implements|import|in|instanceof|interface|let|new|null|of|package|private|protected|public|return|static|super|switch|this|throw|try|typeof|undefined|var|void|while|with|yield)\b/,lookbehind:!0}],function:/#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*(?:\.\s*(?:apply|bind|call)\s*)?\()/,number:{pattern:RegExp(/(^|[^\w$])/.source+"(?:"+(/NaN|Infinity/.source+"|"+/0[bB][01]+(?:_[01]+)*n?/.source+"|"+/0[oO][0-7]+(?:_[0-7]+)*n?/.source+"|"+/0[xX][\dA-Fa-f]+(?:_[\dA-Fa-f]+)*n?/.source+"|"+/\d+(?:_\d+)*n/.source)+"|"+/(?:\d+(?:_\d+)*(?
1:\.(?:\d+(?:_\d+)*)?)?|\.\d+(?:_\d+)*)(?:[Ee][+-]?\d+(?:_\d+)*)?/.source+")"+/(?![\w$])/.source),lookbehind:!0},operator:/--|\+\+|\*\*=?|=>|&&=?|\|\|=?|[!=]==|<<=?|>>>?=?|[-+*/%&|^!=<>]=?|\.{3}|\?\?=?|\?\.?|[~:]/}),r.languages.javascript["class-name"][0].pattern=/(\b(?:class|extends|implements|instanceof|interface|new)\s+)[\w.\\]+/,r.languages.insertBefore("javascript","keyword",{regex:{pattern:RegExp(/((?:^|[^$\w\xA0-\uFFFF."'\])\s]|\b(?:return|yield))\s*)/.source+/\//.source+"(?:"+/(?:\[(?:[^\]\\\r\n]|\\.)*\]|\\.|[^/\\\[\r\n])+\/[dgimyus]{0,7}/.source+"|"+/(?:\[(?:[^[\]\\\r\n]|\\.|\[(?:[^[\]\\\r\n]|\\.|\[(?:[^[\]\\\r\n]|\\.)*\])*\])*\]|\\.|[^/\\\[\r\n])+\/[dgimyus]{0,7}v[dgimyus]{0,7}/.source+")"+/(?=(?:\s|\/\*(?:[^*]|\*(?!\/))*\*\/)*(?:$|[\r\n,.;:})\]]|\/\/))/.source),lookbehind:!0,greedy:!0,inside:{"regex-source":{pattern:/^(\/)[\s\S]+(?=\/[a-z]*$)/,lookbehind:!0,alias:"language-regex",inside:r.languages.regex},"regex-delimiter":/^\/|\/$/,"regex-flags":/^[a-z]+$/}},"function-variable":{pattern:/#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*[=:]\s*(?:async\s*)?(?:\bfunction\b|(?:\((?:[^()]|\([^()]*\))*\)|(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*)\s*=>))/,alias:"function"},parameter:[{pattern:/(function(?:\s+(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*)?\s*\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\))/,lookbehind:!0,inside:r.languages.javascript},{pattern:/(^|[^$\w\xA0-\uFFFF])(?!\s)[_$a-z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*=>)/i,lookbehind:!0,inside:r.languages.javascript},{pattern:/(\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\)\s*=>)/,lookbehind:!0,inside:r.languages.javascript},{pattern:/((?:\b|\s|^)(?!(?:as|async|await|break|case|catch|class|const|continue|debugger|default|delete|do|else|enum|export|extends|finally|for|from|function|get|if|implements|import|in|instanceof|interface|let|new|null|of|package|private|protected|public|return|set|static|super|switch|this|throw|try|typeof|undefined|var|void|while|with|yield)(?![$\w\xA0-\uFFFF]))(?:(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*\s*)\(\s*|\]\s*\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\)\s*\{)/,lookbehind:!0,inside:r.languages.javascript}],constant:/\b[A-Z](?:[A-Z_]|\dx?)*\b/}),r.languages.insertBefore("javascript","string",{hashbang:{pattern:/^#!.*/,greedy:!0,alias:"comment"},"template-string":{pattern:/`(?:\\[\s\S]|\$\{(?:[^{}]|\{(?:[^{}]|\{[^}]*\})*\})+\}|(?!\$\{)[^\\`])*`/,greedy:!0,inside:{"template-punctuation":{pattern:/^`|`$/,alias:"string"},interpolation:{pattern:/((?:^|[^\\])(?:\\{2})*)\$\{(?:[^{}]|\{(?:[^{}]|\{[^}]*\})*\})+\}/,lookbehind:!0,inside:{"interpolation-punctuation":{pattern:/^\$\{|\}$/,alias:"punctuation"},rest:r.languages.javascript}},string:/[\s\S]+/}},"string-property":{pattern:/((?:^|[,{])[ \t]*)(["'])(?:\\(?:\r\n|[\s\S])|(?!\2)[^\\\r\n])*\2(?=\s*:)/m,lookbehind:!0,greedy:!0,alias:"property"}}),r.languages.insertBefore("javascript","operator",{"literal-property":{pattern:/((?:^|[,{])[ \t]*)(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*:)/m,lookbehind:!0,alias:"property"}}),r.languages.markup&&(r.languages.markup.tag.addInlined("script","javascript"),r.languages.markup.tag.addAttribute(/on(?:abort|blur|change|click|composition(?:end|start|update)|dblclick|error|focus(?:in|out)?|key(?:down|up)|load|mouse(?:down|enter|leave|move|out|over|up)|reset|resize|scroll|select|slotchange|submit|unload|wheel)/.source,"javascript")),r.languages.js=r.languages.javascript,function(){if(void 0!==r&&"undefined"!=typeof document){Element.prototype.matches||(Element.prototype.matches=Element.prototype.msMatchesSelector||Element.prototype.webkitMatchesSelector);var e={js:"javascript",py:"python",rb:"ruby",ps1:"powershell",psm1:"powershell",sh:"bash",bat:"batch",h:"c",tex:"latex"},t="data-src-status",n="loading",i="loaded",l="pre[data-src]:not(["+t+'="'+i+'"]):not(['+t+'="'+n+'"])';r.hooks.add("before-highlightall",function(e){e.selector+=", "+l}),r.hooks.add("before-sanity-check",function(o){var s=o.element;if(s.matches(l)){o.code="",s.setAttribute(t,n);var a,u,c,d,f=s.appendChild(document.createElement("CODE"));f.textContent="Loading…";var g=s.getAttribute("data-src"),h=o.language;if("none"===h){var p=(/\.(\w+)$/.exec(g)||[,"none"])[1];h=e[p]||p}r.util.setLanguage(f,h),r.util.setLanguage(s,h);var m=r.plugins.autoloader;m&&m.loadLanguages(h),a=g,u=function(e){s.setAttribute(t,i);var n=function(e){var t=/^\s*(\d+)\s*(?:(,)\s*(?:(\d+)\s*)?)?$/.exec(e||"");if(t){var n=Number(t[1]),r=t[2],i=t[3];return r?i?[n,Number(i)]:[n,void 0]:[n,n]}}(s.getAttribute("data-range"));if(n){var l=e.split(/\r\n?|\n/g),o=n[0],a=null==n[1]?l.length:n[1];o<0&&(o+=l.length),o=Math.max(0,Math.min(o-1,l.length)),a<0&&(a+=l.length),a=Math.max(0,Math.min(a,l.length)),e=l.slice(o,a).join("\n"),s.hasAttribute("data-start")||s.setAttribute("data-start",String(o+1))}f.textContent=e,r.highlightElement(f)},c=function(e){s.setAttribute(t,"failed"),f.textContent=e},(d=new XMLHttpRequest).open("GET",a,!0),d.onreadystatechange=function(){var e;4==d.readyState&&(d.status<400&&d.responseText?u(d.responseText):d.status>=400?c((e=d.status,"✖ Error "+e+" while fetching file: "+d.statusText)):c("✖ Error: File does not exist or is empty"))},d.send(null)}}),r.plugins.fileHighlight={highlight:function(e){for(var t,n=(e||document).querySelectorAll(l),i=0;t=n[i++];)r.highlightElement(t)}};var o=!1;r.fileHighlight=function(){o||(console.warn("Prism.fileHighlight is deprecated. Use `Prism.plugins.fileHighlight.highlight` instead."),o=!0),r.plugins.fileHighlight.highlight.apply(this,arguments)}}}()},95350:()=>{!function(e){var t=e.languages.powershell={comment:[{pattern:/(^|[^`])<#[\s\S]*?#>/,lookbehind:!0},{pattern:/(^|[^`])#.*/,lookbehind:!0}
1],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:/[|{}[\];(),.]/};t.string[0].inside={function:{pattern:/(^|[^`])\$\((?:\$\([^\r\n()]*\)|(?!\$\()[^\r\n)])*\)/,lookbehind:!0,inside:t},boolean:t.boolean,variable:t.variable}}(Prism)},95749:(e,t,n)=>{"use strict";n.d(t,{A:()=>d});var r=n(29703),i=Object.prototype,l=i.hasOwnProperty,o=i.toString,s=r.A?r.A.toStringTag:void 0;let a=function(e){var t=l.call(e,s),n=e[s];try{e[s]=void 0;var r=!0}catch(e){}var i=o.call(e);return r&&(t?e[s]=n:delete e[s]),i};var u=Object.prototype.toString,c=r.A?r.A.toStringTag:void 0;let d=function(e){return null==e?void 0===e?"[object Undefined]":"[object Null]":c&&c in Object(e)?a(e):u.call(e)}},97865:(e,t,n)=>{"use strict";n.d(t,{A:()=>r});let r=(0,n(78340).A)("Diff",[["path",{d:"M12 3v14",key:"7cf3v8"}],["path",{d:"M5 10h14",key:"elsbfy"}],["path",{d:"M5 21h14",key:"11awu3"}]])},98547:(e,t,n)=>{"use strict";n.d(t,{A:()=>g});var r=/\s/;let i=function(e){for(var t=e.length;t--&&r.test(e.charAt(t)););return t};var l=/^\s+/,o=n(33761),s=n(38374),a=0/0,u=/^[-+]0x[0-9a-f]+$/i,c=/^0b[01]+$/i,d=/^0o[0-7]+$/i,f=parseInt;let g=function(e){if("number"==typeof e)return e;if((0,s.A)(e))return a;if((0,o.A)(e)){var t,n="function"==typeof e.valueOf?e.valueOf():e;e=(0,o.A)(n)?n+"":n}if("string"!=typeof e)return 0===e?e:+e;e=(t=e)?t.slice(0,i(t)+1).replace(l,""):t;var r=c.test(e);return r||d.test(e)?f(e.slice(2),r?2:8):u.test(e)?a:+e}},99491:(e,t,n)=>{"use strict";n.d(t,{DE:()=>T,GO:()=>F,HY:()=>A,Js:()=>$,Mz:()=>x,YW:()=>v,cz:()=>z,g2:()=>s,i:()=>b,mJ:()=>N,q7:()=>D,v5:()=>S,x:()=>B});var r=n(43971),i=n(53310),l=n(83489);function o(e,...t){let n=new URL("https://lexical.dev/docs/error"),r=new URLSearchParams;for(let n of(r.append("code",e),t))r.append("v",n);throw n.search=r.toString(),Error(`Minified Lexical error #${e}; visit ${n.toString()} for the full message or use the non-minified dev environment for full errors and additional helpful warnings.`)}function s(e){let t=1,n=e.getParent();for(;null!=n;){if(x(n)){let e=n.getParent();if(A(e)){t++,n=e.getParent();continue}o(40)}break}return t}function a(e){let t=e.getParent();A(t)||o(40);let n=t;for(;null!==n;)A(n=n.getParent())&&(t=n);return t}function u(e){return x(e)&&A(e.getFirstChild())}function c(e){return b().append(e)}function d(e,t){return x(e)&&(0===t.length||1===t.length&&e.is(t[0])&&0===e.getChildrenSize())}function f(e){let t=(0,i.vJq)();if(null!==t){let n=t.getNodes();if((0,i.I2P)(t)){let r=t.getStartEndPoints();null===r&&o(143);let[l]=r,s=l.getNode(),a=s.getParent();if((0,i.IqF)(s)){let e=s.getFirstChild();if(e)n=e.selectStart().getNodes();else{let e=(0,i.lJ7)();s.append(e),n=e.select().getNodes()}}else if(d(s,n)){let t=T(e);if((0,i.IqF)(a)){s.replace(t);let e=b();(0,i.ff4)(s)&&(e.setFormat(s.getFormatType()),e.setIndent(s.getIndent())),t.append(e)}else if(x(s)){let e=s.getParentOrThrow();g(t,e.getChildren()),e.replace(t)}return}}let r=new Set;for(let t=0;t<n.length;t++){let l=n[t];if((0,i.ff4)(l)&&l.isEmpty()&&!x(l)&&!r.has(l.getKey())){h(l,e);continue}let o=(0,i.jG6)(l)?l.getParent():x(l)&&l.isEmpty()?l:null;for(;null!=o;){let t=o.getKey();if(A(o)){if(!r.has(t)){let n=T(e);g(n,o.getChildren()),o.replace(n),r.add(t)}break}{let n=o.getParent();if((0,i.IqF)(n)&&!r.has(t)){r.add(t),h(o,e);break}o=n}}}}}function g(e,t){e.splice(e.getChildrenSize(),0,t)}function h(e,t){let n;if(A(e))return e;let r=e.getPreviousSibling(),i=e.getNextSibling(),l=b();
1if(g(l,e.getChildren()),A(r)&&t===r.getListType())r.append(l),A(i)&&t===i.getListType()&&(g(r,i.getChildren()),i.remove()),n=r;else if(A(i)&&t===i.getListType())i.getFirstChildOrThrow().insertBefore(l),n=i;else{let r=T(t);r.append(l),e.replace(r),n=r}return l.setFormat(e.getFormatType()),l.setIndent(e.getIndent()),e.remove(),n}function p(e,t){let n=e.getLastChild(),r=t.getFirstChild();n&&r&&u(n)&&u(r)&&(p(n.getFirstChild(),r.getFirstChild()),r.remove());let i=t.getChildren();i.length>0&&e.append(...i),t.remove()}function m(e){let t="check"!==e.getListType(),n=e.getStart();for(let r of e.getChildren())x(r)&&(r.getValue()!==n&&r.setValue(n),t&&null!=r.getLatest().__checked&&r.setChecked(void 0),A(r.getFirstChild())||n++)}function y(...e){let t=[];for(let n of e)if(n&&"string"==typeof n)for(let[e]of n.matchAll(/\S+/g))t.push(e);return t}class v extends i.fGB{$config(){return this.config("listitem",{$transform:e=>{if(null==e.__checked)return;let t=e.getParent();A(t)&&"check"!==t.getListType()&&null!=e.getChecked()&&e.setChecked(void 0)},extends:i.fGB,importDOM:(0,i.kBm)({li:()=>({conversion:_,priority:0})})})}constructor(e=1,t,n){super(n),this.__value=void 0===e?1:e,this.__checked=t}afterCloneFrom(e){super.afterCloneFrom(e),this.__value=e.__value,this.__checked=e.__checked}createDOM(e){let t=document.createElement("li");return this.updateListItemDOM(null,t,e),t}updateListItemDOM(e,t,n){let i=this.getParent();A(i)&&"check"===i.getListType()&&(A(this.getFirstChild())?(t.removeAttribute("role"),t.removeAttribute("tabIndex"),t.removeAttribute("aria-checked")):(t.setAttribute("role","checkbox"),t.setAttribute("tabIndex","-1"),e&&this.__checked===e.__checked||t.setAttribute("aria-checked",this.getChecked()?"true":"false"))),t.value=this.__value,function(e,t,n){let i,l=[],o=[],s=t.list,a=s?s.listitem:void 0;if(s&&s.nested&&(i=s.nested.listitem),void 0!==a&&l.push(...y(a)),s){let e=n.getParent(),t=A(e)&&"check"===e.getListType(),r=n.getChecked();t&&!r||o.push(s.listitemUnchecked),t&&r||o.push(s.listitemChecked),t&&l.push(r?s.listitemChecked:s.listitemUnchecked)}if(void 0!==i){let e=y(i);n.getChildren().some(e=>A(e))?l.push(...e):o.push(...e)}o.length>0&&(0,r.HE)(e,...o),l.length>0&&(0,r.ZB)(e,...l)}(t,n.theme,this);let o=e?e.__style:"",s=this.__style;o!==s&&(""===s?t.removeAttribute("style"):t.style.cssText=s),function(e,t,n){let r=(0,l.Wh)(t.__textStyle);for(let t in r)e.style.setProperty(`--listitem-marker-${t}`,r[t]);if(n)for(let t in(0,l.Wh)(n.__textStyle))t in r||e.style.removeProperty(`--listitem-marker-${t}`)}(t,this,e)}updateDOM(e,t,n){return this.updateListItemDOM(e,t,n),!1}updateFromJSON(e){return super.updateFromJSON(e).setValue(e.value).setChecked(e.checked)}exportDOM(e){let t=this.createDOM(e._config),n=this.getFormatType();n&&(t.style.textAlign=n);let r=this.getDirection();return r&&(t.dir=r),{element:t}}exportJSON(){return{...super.exportJSON(),checked:this.getChecked(),value:this.getValue()}}append(...e){for(let t=0;t<e.length;t++){let n=e[t];if((0,i.ff4)(n)&&this.canMergeWith(n)){let e=n.getChildren();this.append(...e),n.remove()}else super.append(n)}return this}replace(e,t){if(x(e))return super.replace(e);this.setIndent(0);let n=this.getParentOrThrow();if(!A(n))return e;if(n.__first===this.getKey())n.insertBefore(e);else if(n.__last===this.getKey())n.insertAfter(e);else{let t=T(n.getListType()),r=this.getNextSibling();for(;r;){let e=r;r=r.getNextSibling(),t.append(e)}n.insertAfter(e),e.insertAfter(t)}
1return t&&((0,i.ff4)(e)||o(139),this.getChildren().forEach(t=>{e.append(t)})),this.remove(),0===n.getChildrenSize()&&n.remove(),e}insertAfter(e,t=!0){let n=this.getParentOrThrow();if(A(n)||o(39),x(e))return super.insertAfter(e,t);let r=this.getNextSiblings();if(n.insertAfter(e,t),0!==r.length){let i=T(n.getListType());r.forEach(e=>i.append(e)),e.insertAfter(i,t)}return e}remove(e){let t=this.getPreviousSibling(),n=this.getNextSibling();super.remove(e),t&&n&&u(t)&&u(n)&&(p(t.getFirstChild(),n.getFirstChild()),n.remove())}insertNewAfter(e,t=!0){let n=b().updateFromJSON(this.exportJSON()).setChecked(!this.getChecked()&&void 0);return this.insertAfter(n,t),n}collapseAtStart(e){let t=(0,i.lJ7)();this.getChildren().forEach(e=>t.append(e));let n=this.getParentOrThrow(),r=n.getParentOrThrow(),l=x(r);if(1===n.getChildrenSize())if(l)n.remove(),r.select();else{n.insertBefore(t),n.remove();let r=e.anchor,i=e.focus,l=t.getKey();"element"===r.type&&r.getNode().is(this)&&r.set(l,r.offset,"element"),"element"===i.type&&i.getNode().is(this)&&i.set(l,i.offset,"element")}else n.insertBefore(t),this.remove();return!0}getValue(){return this.getLatest().__value}setValue(e){let t=this.getWritable();return t.__value=e,t}getChecked(){let e,t=this.getLatest(),n=this.getParent();return A(n)&&(e=n.getListType()),"check"===e?!!t.__checked:void 0}setChecked(e){let t=this.getWritable();return t.__checked=e,t}toggleChecked(){let e=this.getWritable();return e.setChecked(!e.__checked)}getIndent(){let e=this.getParent();if(null===e||!this.isAttached())return this.getLatest().__indent;let t=e.getParentOrThrow(),n=0;for(;x(t);)t=t.getParentOrThrow().getParentOrThrow(),n++;return n}setIndent(e){"number"!=typeof e&&o(117),(e=Math.floor(e))>=0||o(199);let t=this.getIndent();for(;t!==e;)t<e?(function(e){let t=new Set;if(u(e)||t.has(e.getKey()))return;let n=e.getParent(),r=e.getNextSibling(),i=e.getPreviousSibling();if(u(r)&&u(i)){let n=i.getFirstChild();if(A(n)){n.append(e);let i=r.getFirstChild();A(i)&&(g(n,i.getChildren()),r.remove(),t.add(r.getKey()))}}else if(u(r)){let t=r.getFirstChild();if(A(t)){let n=t.getFirstChild();null!==n&&n.insertBefore(e)}}else if(u(i)){let t=i.getFirstChild();A(t)&&t.append(e)}else if(A(n)){let t=b().setTextFormat(e.getTextFormat()).setTextStyle(e.getTextStyle()),l=T(n.getListType()).setTextFormat(n.getTextFormat()).setTextStyle(n.getTextStyle());t.append(l),l.append(e),i?i.insertAfter(t):r?r.insertBefore(t):n.append(t)}}(this),t++):(function(e){if(u(e))return;let t=e.getParent(),n=t?t.getParent():void 0;if(A(n?n.getParent():void 0)&&x(n)&&A(t)){let r=t?t.getFirstChild():void 0,i=t?t.getLastChild():void 0;if(e.is(r))n.insertBefore(e),t.isEmpty()&&n.remove();else if(e.is(i))n.insertAfter(e),t.isEmpty()&&n.remove();else{let r=t.getListType(),i=b(),l=T(r);
1i.append(l),e.getPreviousSiblings().forEach(e=>l.append(e));let o=b(),s=T(r);o.append(s),g(s,e.getNextSiblings()),n.insertBefore(i),n.insertAfter(o),n.replace(e)}}}(this),t--);return this}canInsertAfter(e){return x(e)}canReplaceWith(e){return x(e)}canMergeWith(e){return x(e)||(0,i.bSg)(e)}extractWithChild(e,t){if(!(0,i.I2P)(t))return!1;let n=t.anchor.getNode(),r=t.focus.getNode();return this.isParentOf(n)&&this.isParentOf(r)&&this.getTextContent().length===t.getTextContent().length}isParentRequired(){return!0}createParentElementNode(){return T("bullet")}canMergeWhenEmpty(){return!0}}function _(e){if(e.classList.contains("task-list-item")){for(let n of e.children)if("INPUT"===n.tagName){var t;return"checkbox"!==(t=n).getAttribute("type")?{node:null}:{node:b(t.hasAttribute("checked"))}}}let n=e.getAttribute("aria-checked");return{node:b("true"===n||"false"!==n&&void 0)}}function b(e){return(0,i.pTq)(new v(void 0,e))}function x(e){return e instanceof v}class S extends i.fGB{$config(){return this.config("list",{$transform:e=>{!function(e){let t=e.getNextSibling();A(t)&&e.getListType()===t.getListType()&&p(e,t)}(e),m(e)},extends:i.fGB,importDOM:(0,i.kBm)({ol:()=>({conversion:k,priority:0}),ul:()=>({conversion:k,priority:0})})})}constructor(e="number",t=1,n){super(n);let r=E[e]||e;this.__listType=r,this.__tag="number"===r?"ol":"ul",this.__start=t}afterCloneFrom(e){super.afterCloneFrom(e),this.__listType=e.__listType,this.__tag=e.__tag,this.__start=e.__start}getTag(){return this.getLatest().__tag}setListType(e){let t=this.getWritable();return t.__listType=e,t.__tag="number"===e?"ol":"ul",t}getListType(){return this.getLatest().__listType}getStart(){return this.getLatest().__start}setStart(e){let t=this.getWritable();return t.__start=e,t}createDOM(e,t){let n=this.__tag,r=document.createElement(n);return 1!==this.__start&&r.setAttribute("start",String(this.__start)),r.__lexicalListType=this.__listType,w(r,e.theme,this),r}updateDOM(e,t,n){return e.__tag!==this.__tag||(w(t,n.theme,this),!1)}updateFromJSON(e){return super.updateFromJSON(e).setListType(e.listType).setStart(e.start)}exportDOM(e){let t=this.createDOM(e._config,e);return(0,i.sby)(t)&&(1!==this.__start&&t.setAttribute("start",String(this.__start)),"check"===this.__listType&&t.setAttribute("__lexicalListType","check")),{element:t}}exportJSON(){return{...super.exportJSON(),listType:this.getListType(),start:this.getStart(),tag:this.getTag()}}canBeEmpty(){return!1}canIndent(){return!1}splice(e,t,n){let r=n;for(let e=0;e<n.length;e++){let t=n[e];x(t)||(r===n&&(r=[...n]),r[e]=b().append(!(0,i.ff4)(t)||A(t)||t.isInline()?t:(0,i.sTu)(t.getTextContent())))}return super.splice(e,t,r)}extractWithChild(e){return x(e)}}function w(e,t,n){let i=[],l=[],o=t.list;if(void 0!==o){let e,t=o[`${n.__tag}Depth`]||[],r=s(n)-1,a=r%t.length,u=t[a],c=o[n.__tag],d=o.nested,f=o.checklist;if(void 0!==d&&d.list&&(e=d.list),void 0!==c&&i.push(c),void 0!==f&&"check"===n.__listType&&i.push(f),void 0!==u){i.push(...y(u));for(let e=0;e<t.length;e++)e!==a&&l.push(n.__tag+e)}if(void 0!==e){let t=y(e);r>1?i.push(...t):l.push(...t)}}l.length>0&&(0,r.HE)(e,...l),i.length>0&&(0,r.ZB)(e,...i)}function C(e){let t=[];for(let n=0;n<e.length;n++){let r=e[n];if(x(r)){t.push(r);let e=r.getChildren();e.length>1&&e.forEach(e=>{A(e)&&t.push(c(e))})}else t.push(c(r))}return t}function k(e){let t=e.nodeName.toLowerCase(),n=null;return"ol"===t?n=T("number",e.start):"ul"===t&&(n=!function(e){if("check"===e.getAttribute("__lexicallisttype")||e.classList.contains("contains-task-list"))return!0;for(let t of e.childNodes)if((0,i.sby)(t)&&t.hasAttribute("aria-checked"))return!0;return!1}(e)?T("bullet"):T("check")),{after:C,node:n}}let E={ol:"number",ul:"bullet"};function T(e="number",t=1){return(0,i.pTq)(new S(e,t))}function A(e){return e instanceof S}let N=(0,i.guI)("INSERT_CHECK_LIST_COMMAND");function F(e){return(0,r.Sd)(e.registerCommand(N,()=>(f("check"),!0),i.AcJ),e.registerCommand(i.bbF,t=>P(t,e,!1),i.AcJ),e.registerCommand(i.UDz,t=>P(t,e,!0),i.AcJ),e.registerCommand(i.Q$N,()=>{if(null!=I()){let t=e.getRootElement();return null!=t&&t.focus(),!0}return!1},i.AcJ),e.registerCommand(i.Huu,t=>{let n=I();return!(null==n||!e.isEditable())&&(e.update(()=>{let e=(0,i.xL4)(n);x(e)&&(t.preventDefault(),e.toggleChecked())}),!0)},i.AcJ),e.registerCommand(i.AX0,t=>e.getEditorState().read(()=>{let n=(0,i.vJq)();if((0,i.I2P)(n)&&n.isCollapsed()){let{anchor:l}=n,o="element"===l.type;if(o||0===l.offset){let n=l.getNode(),s=(0,r.Bt)(n,e=>(0,i.ff4)(e)&&!e.isInline());if(x(s)){let r=s.getParent();if(A(r)&&"check"===r.getListType()&&(o||s.getFirstDescendant()===n)){let n=e.getElementByKey(s.__key);if(null!=n&&document.activeElement!==n)return n.focus(),t.preventDefault(),!0}}}}return!1}),i.AcJ),e.registerRootListener((e,t)=>
1{null!==e&&(e.addEventListener("click",M),e.addEventListener("pointerdown",O)),null!==t&&(t.removeEventListener("click",M),t.removeEventListener("pointerdown",O))}))}function R(e,t){let n=e.target;if(!(0,i.sby)(n))return;let l=n.firstChild;if((0,i.sby)(l)&&("UL"===l.tagName||"OL"===l.tagName))return;let o=n.parentNode;if(!o||"check"!==o.__lexicalListType)return;let s=n.getBoundingClientRect(),a=(0,r.OV)(n),u=e.clientX/a,c=parseFloat((window.getComputedStyle?window.getComputedStyle(n,"::before"):{width:"0px"}).width),d=32*("touch"===e.pointerType);("rtl"===n.dir?u<s.right+d&&u>s.right-c-d:u>s.left-d&&u<s.left+c+d)&&t()}function M(e){R(e,()=>{if((0,i.sby)(e.target)){let t=e.target,n=(0,i.scG)(t);null!=n&&n.isEditable()&&n.update(()=>{let e=(0,i.xL4)(t);x(e)&&(t.focus(),e.toggleChecked())})}})}function O(e){R(e,()=>{e.preventDefault()})}function I(){let e=document.activeElement;return(0,i.sby)(e)&&"LI"===e.tagName&&null!=e.parentNode&&"check"===e.parentNode.__lexicalListType?e:null}function P(e,t,n){let r=I();return null!=r&&t.update(()=>{let l=(0,i.xL4)(r);if(!x(l))return;let o=function(e,t){let n=t?e.getPreviousSibling():e.getNextSibling(),r=e;for(;null==n&&x(r);)null!=(r=r.getParentOrThrow().getParent())&&(n=t?r.getPreviousSibling():r.getNextSibling());for(;x(n);){let e=t?n.getLastChild():n.getFirstChild();if(!A(e))return n;n=t?e.getLastChild():e.getFirstChild()}return null}(l,n);if(null!=o){o.selectStart();let n=t.getElementByKey(o.__key);null!=n&&(e.preventDefault(),setTimeout(()=>{n.focus()},0))}}),!1}let L=(0,i.guI)("UPDATE_LIST_START_COMMAND"),D=(0,i.guI)("INSERT_UNORDERED_LIST_COMMAND"),B=(0,i.guI)("INSERT_ORDERED_LIST_COMMAND"),K=(0,i.guI)("REMOVE_LIST_COMMAND");function z(e){return(0,r.Sd)(e.registerCommand(B,()=>(f("number"),!0),i.AcJ),e.registerCommand(L,e=>{let{listNodeKey:t,newStart:n}=e,r=(0,i.nsf)(t);return!!A(r)&&("number"===r.getListType()&&(r.setStart(n),m(r)),!0)},i.AcJ),e.registerCommand(D,()=>(f("bullet"),!0),i.AcJ),e.registerCommand(K,()=>((function(){let e=(0,i.vJq)();if((0,i.I2P)(e)){let t=new Set,n=e.getNodes(),l=e.anchor.getNode();if(d(l,n))t.add(a(l));else for(let e=0;e<n.length;e++){let l=n[e];if((0,i.jG6)(l)){let e=(0,r.eu)(l,v);null!=e&&t.add(a(e))}}for(let n of t){let t=n;for(let r of function e(t){let n=[],r=t.getChildren().filter(x);for(let t=0;t<r.length;t++){let i=r[t],l=i.getFirstChild();A(l)?n=n.concat(e(l)):n.push(i)}return n}(n)){let n=(0,i.lJ7)().setTextStyle(e.style).setTextFormat(e.format);g(n,r.getChildren()),t.insertAfter(n),t=n,r.__key===e.anchor.key&&(0,i.wp6)(e.anchor,(0,i.lSZ)((0,i.uwZ)(n,"next"))),r.__key===e.focus.key&&(0,i.wp6)(e.focus,(0,i.lSZ)((0,i.uwZ)(n,"next"))),r.remove()}n.remove()}}})(),!0),i.AcJ),e.registerCommand(i.XKQ,()=>(function(){let e,t=(0,i.vJq)();if(!(0,i.I2P)(t)||!t.isCollapsed())return!1;let n=t.anchor.getNode();if(!x(n)||0!==n.getChildrenSize())return!1;let r=a(n),l=n.getParent();A(l)||o(40);let s=l.getParent();if((0,i.IqF)(s))e=(0,i.lJ7)(),r.insertAfter(e);else{if(!x(s))return!1;e=b(),s.insertAfter(e)}e.setTextStyle(t.style).setTextFormat(t.format).select();let u=n.getNextSiblings();if(u.length>0){let t=T(l.getListType());if(x(e)){let n=b();n.append(t),e.insertAfter(n)}else e.insertAfter(t);t.append(...u)}return function(e){let t=e;for(;null==t.getNextSibling()&&null==t.getPreviousSibling();){let e=t.getParent();if(null==e||!x(e)&&!A(e))break;t=e}t.remove()}(n),!0})(),i.AcJ),e.registerNodeTransform(v,e=>{let t=e.getFirstChild();if(t){if((0,i.kFe)(t)){let n=t.getStyle(),r=t.getFormat();e.getTextStyle()!==n&&e.setTextStyle(n),e.getTextFormat()!==r&&e.setTextFormat(r)}}else{let t=(0,i.vJq)();(0,i.I2P)(t)&&(t.style!==e.getTextStyle()||t.format!==e.getTextFormat())&&t.isCollapsed()&&e.is(t.anchor.getNode())&&e.setTextStyle(t.style).setTextFormat(t.format)}}),e.registerNodeTransform(i.Ey8,e=>{let t=e.getParent();if(x(t)&&e.is(t.getFirstChild())){let n=e.getStyle(),r=e.getFormat();n===t.getTextStyle()&&r===t.getTextFormat()||t.setTextStyle(n).setTextFormat(r)}}))}function $(e){let t=e=>{let t=e.getParent();if(A(e.getFirstChild())||!A(t))return;let n=(0,r.Bt)(e,e=>x(e)&&A(e.getParent())&&x(e.getPreviousSibling()));if(null===n&&e.getIndent()>0)e.setIndent(0);else if(x(n)){let r=n.getPreviousSibling();if(x(r)){let n=(function(e){let t=e,n=t.getFirstChild();for(;A(n);){let e=n.getLastChild();if(!x(e))break;n=(t=e).getFirstChild()}return t})(r).getParent();if(A(n)){let r=s(n);r+1<s(t)&&e.setIndent(r)}}}};return e.registerNodeTransform(S,e=>{let n=[e];for(;n.length>0;){let e=n.shift();if(A(e)){for(let r of e.getChildren())if(x(r)){t(r);let e=r.getFirstChild();A(e)&&n.push(e)}}}})}}}]);

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