PageSourceSearch

https://condoscan.ca/_next/static/chunks/2594.9b34f39c0c7cb642.js

js condoscan.ca collected 2026-10-09 01:17:10 UTC 466,935 bytes, 1 lines download raw bytes

1!function(){try{var 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]="66454d0a-a001-4584-8e20-c626fe2bf002",e._sentryDebugIdIdentifier="sentry-dbid-66454d0a-a001-4584-8e20-c626fe2bf002")}catch(e){}}(),(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[2594],{191:(e,t,n)=>{"use strict";n.d(t,{_:()=>v});var r=n(34102),i=n(61259),l=n(80632),o=n(12115),a=n(45276),s=n(33289),u=n(47887),c=n(85203),d=n(74898),f=n(65333);let p=o.forwardRef((e,t)=>{let{children:n,className:r,...i}=e;return o.createElement(u.q7,{...i,ref:t,className:c(r,d.Ay.selectItem)},o.createElement(u.p4,null,n))}),h=e=>{let{title:t,placeholder:n,className:r}=e,[l,s]=(0,i.uX)(a.pc,a.yr);return o.createElement(f.I,{title:t},o.createElement(u.l9,{"aria-label":n,className:c(d.Ay.selectTrigger,r),"data-toolbar-item":!0,disabled:l},o.createElement(u.WT,{placeholder:n}),o.createElement(u.In,{className:d.Ay.selectDropdownArrow},s("arrow_drop_down"))))},g=e=>{let{children:t,className:n=d.Ay.selectContainer}=e,r=(0,i.X3)(a.xZ);return o.createElement(u.ZL,{container:null==r?void 0:r.current},o.createElement(u.UC,{className:c(n,"mdxeditor-select-content"),onCloseAutoFocus:e=>{e.preventDefault()},position:"popper"},o.createElement(u.LM,{"data-editor-dropdown":!0,style:{maxHeight:"var(--radix-select-content-available-height)"}},t)))},m=e=>o.createElement(u.bL,{value:e.value||"",onValueChange:e.onChange,disabled:e.disabled},o.createElement(h,{title:e.triggerTitle,placeholder:e.placeholder}),o.createElement(g,null,e.items.map((e,t)=>"separator"===e?o.createElement(u.wv,{key:t}):o.createElement(p,{key:t,value:e.value},e.label)))),v=()=>{let e=(0,i.qM)(a.vR),t=(0,i.X3)(a.X3),n=(0,i.X3)(a.TI),u=n.includes("quote"),c=n.includes("headings"),d=(0,a.Bd)();if(!u&&!c)return null;let f=[{label:d("toolbar.blockTypes.paragraph","Paragraph"),value:"paragraph"}];if(u&&f.push({label:d("toolbar.blockTypes.quote","Quote"),value:"quote"}),c){let e=(0,i.X3)(s.OO);f.push(...e.map(e=>({label:d("toolbar.blockTypes.heading","Heading {{level}}",{level:e}),value:"h".concat(e)})))}return o.createElement(m,{value:t,onChange:t=>{switch(t){case"quote":e(()=>(0,r.xi)());break;case"paragraph":e(()=>(0,l.lJ7)());break;case"":break;default:if(t.startsWith("h"))e(()=>(0,r.fi)(t));else throw Error("Unknown block type: ".concat(t))}},triggerTitle:d("toolbar.blockTypeSelect.selectBlockTypeTooltip","Select block type"),placeholder:d("toolbar.blockTypeSelect.placeholder","Block type"),items:f})}},319:(e,t,n)=>{"use strict";n.d(t,{Jy:()=>v,Lf:()=>C,OV:()=>b,Pe:()=>p,RM:()=>f,V0:()=>u,Ws:()=>x,cj:()=>h,eu:()=>c,gA:()=>m,mB:()=>d,xj:()=>g});var r=n(79299),i=n(80632);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.`)}function o(e){return`${e}px`}let a={attributes:!0,characterData:!0,childList:!0,subtree:!0};function s(e,t,n,r){if("text"!==t.type&&(0,i.ff4)(n)){let l=(0,i.FfB)(n,r,e);return[l.element,l.getFirstChildOffset()+t.offset]}return[((0,i.kFe)(n)?(0,i.OCP)(n,r,e):(0,i.c_R)(r))||r,t.offset]}function u(e,t){let n=null,u=()=>{let u=e.getRootElement(),c=null!==u?u.ownerDocument.defaultView:null,d=null!==c?c.getSelection():null,f=null!==d?(0,i.Mgk)(d,u).anch
1orNode:null;null!==f&&null!==u&&u.contains(f)?null!==n&&(n(),n=null):null===n&&(n=function(e,t=function(e){for(let t of e){let e=t.style;"Highlight"!==e.background&&(e.background="Highlight"),"HighlightText"!==e.color&&(e.color="HighlightText"),e.marginTop!==o(-1.5)&&(e.marginTop=o(-1.5)),e.paddingTop!==o(4)&&(e.paddingTop=o(4)),e.paddingBottom!==o(0)&&(e.paddingBottom=o(0))}}){let n=null,u=null,c=null,d=null,f=null,p=null,h=()=>{};function g(g){g.read(()=>{let g=(0,i.vJq)();if(!(0,i.I2P)(g))return n=null,c=null,d=null,p=null,h(),void(h=()=>{});let[m,v]=function(e){let t=e.getStartEndPoints();return e.isBackward()?[t[1],t[0]]:t}(g),y=m.getNode(),b=y.getKey(),x=m.offset,C=v.getNode(),w=C.getKey(),E=v.offset,_=e.getElementByKey(b),S=e.getElementByKey(w),k=null===n||_!==u||x!==c||b!==n.getKey(),T=null===d||S!==f||E!==p||w!==d.getKey();if((k||T)&&null!==_&&null!==S){let n=function(e,t,n,r,i,l,o){let a=(e._window?e._window.document:document).createRange();return a.setStart(...s(e,t,n,r)),a.setEnd(...s(e,i,l,o)),a}(e,m,y,_,v,C,S);h(),h=function(e,t,n){let s=null,u=null,c=null,d=[],f=(0,i.nAs)(e.getRootElement()).createElement("div");function p(){var a;null===s&&l(182),null===u&&l(183);let{left:c,top:p}=u.getBoundingClientRect(),h=function(e){let t=(e,t)=>t.left>=e.left-1&&t.top>=e.top-1&&t.right<=e.right+1&&t.bottom<=e.bottom+1,n=[];for(let r of Array.from(e))if(!(r.width<.5||r.height<.5||n.some(e=>t(r,e)))){for(let e=n.length-1;e>=0;e--)t(n[e],r)&&n.splice(e,1);n.push(r)}return n}((0,r.zT)(e,t));f.isConnected||(a=u).insertBefore(f,a.firstChild);let g=!1;for(let e=0;e<h.length;e++){let t=h[e],n=d[e]||(0,i.nAs)(s).createElement("div"),r=n.style;"absolute"!==r.position&&(r.position="absolute",g=!0);let l=o(t.left-c);r.left!==l&&(r.left=l,g=!0);let a=o(t.top-p);r.top!==a&&(n.style.top=a,g=!0);let u=o(t.width);r.width!==u&&(n.style.width=u,g=!0);let m=o(t.height);r.height!==m&&(n.style.height=m,g=!0),n.parentNode!==f&&(f.append(n),g=!0),d[e]=n}for(;d.length>h.length;){let e=d.pop();null!=e&&e.remove()}g&&n(d)}function h(){for(let e of(u=null,s=null,null!==c&&c.disconnect(),c=null,f.remove(),d))e.remove();d=[]}f.style.position="relative";let g=e.registerRootListener(function t(){let n=e.getRootElement();if(null===n)return h();let r=n.parentElement;if(!(0,i.sby)(r))return h();h(),s=n,u=r,(c=new MutationObserver(n=>{let r=e.getRootElement(),i=r&&r.parentElement;if(r!==s||i!==u)return t();for(let e of n)if(!f.contains(e.target))return p()})).observe(r,a),p()});return()=>{g(),h()}}(e,n,t)}n=y,u=_,c=x,d=C,f=S,p=E},{editor:e})}return g(e.getEditorState()),(0,i.Sdt)(e.registerUpdateListener(({editorState:e})=>g(e)),()=>{h()})}(e,t))};return e.registerRootListener(e=>{if(e){let t=e.ownerDocument,r=(0,i.Sdt)((0,i.K6z)(t,"selectionchange",u),()=>{null!==n&&n()});return u(),r}})}function c(e,t){let n=e;for(;null!=n;){if(n instanceof t)return n;n=n.getParent()}return null}function d(e){let t=(0,i.BtT)(e,e=>(0,i.ff4)(e)&&!e.isInline());return(0,i.ff4)(t)||l(4,e.__key),t}function f(e,t){let n=(0,i.NZv)((0,i.I2P)(t)?(0,i.$iu)(t):t,"next"),r=(0,i.ex6)(n.anchor.origin),l=(0,i.ex6)(e.getLatest());if(null===r?null!==l:!r.is(l))return!1;let o=(0,i.lSZ)((0,i.uwZ)(e,"next")),a=(0,i.Csq)((0,i.lSZ)((0,i.uwZ)(e,"previous")),"next");return 0>=(0,i.AcB)(n.anchor,o)&&(0,i.AcB)(n.focus,a)>=0}function p(e){let t,n=(0,i.vJq)()||(0,i.S1w)();if((0,i.I2P)(n))t=(0,i.Ave)(n.focus,"next");else{if(null!=n){let e=n.getNodes(),r=e[e.length-1];r&&(t=(0,i.IlV)(r,"next"))}t=t||(0,i.uwZ)((0,i.NiT)(),"previous").getFlipped().insert((0,i.lJ7)())}let r=(0,i.rdQ)(e,t),l=(0,i.erb)(r),o=(0,i.cmH)(l)?(0,i.lSZ)(l):r;return(0,i.xQ8)((0,i.sWS)(o)),e.getLatest()}function h(e,t){let n=t();return e.replace(n),n.append(e),n}function g(e,t){return null!==e&&Object.getPrototypeOf(e).constructor.name===t.name}function m(e){let t=null;if(g(e,DragEvent)?t=e.dataTransfer:g(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 v(e){let t=(0,i.vJq)();if(!(0,i.I2P)(t))return!1;let n=new Set,r=t.getNodes();for(let t=0;t<r.length;t++){let l=r[t],o=l.getKey();if(n.has(o))continue;let a=(0,i.BtT)(l,e=>(0,i.ff4)(e)&&!e.isInline());if(null===a)continue;let s=a.getKey();a.canIndent()&&!n.has(s)&&(n.add(s),e(a))}return n.size>0}let y=!(i.$Mp||!i.qxK)&&void 0;function b(e,t=!1){let n=1;if(function(){if(void 0===y){let e=document.createElement("div");
1e.style.position="absolute",e.style.opacity="0",e.style.width="100px",e.style.left="-1000px",document.body.appendChild(e);let t=e.getBoundingClientRect();e.style.setProperty("zoom","2"),y=e.getBoundingClientRect().width===t.width,document.body.removeChild(e)}return y}()||t){let t=e&&e.ownerDocument.defaultView||window;for(;e;)n*=Number(t.getComputedStyle(e).getPropertyValue("zoom")),e=(0,i.dCx)(e)}return n}function x(e,t){let n=(0,i.vJq)();if((0,i.I2P)(n)&&n.isCollapsed()){let a=(0,i.BtT)(n.anchor.getNode(),e);if(a){var l,o;let e=a.getParent();if(null!==e&&e.getFirstChild()===a&&(l=n.anchor,o=a,(0,r._n)(l,o,"previous")))return a.insertBefore((0,i.lJ7)()).selectEnd(),t&&t.preventDefault(),!0}}return!1}function C(e,t){let n=(0,i.vJq)();if((0,i.I2P)(n)&&n.isCollapsed()){let a=(0,i.BtT)(n.anchor.getNode(),e);if(a){var l,o;let e=a.getParent();if(null!==e&&e.getLastChild()===a&&(l=n.anchor,o=a,(0,r._n)(l,o,"next")))return a.insertAfter((0,i.lJ7)()).selectEnd(),t&&t.preventDefault(),!0}}return!1}},451:(e,t,n)=>{"use strict";n.d(t,{O:()=>v});var r=n(12115),i=n(48243);let l={testNode:"link",visitNode(e){let{mdastNode:t,actions:n}=e;n.addAndStepInto((0,i.zA)(t.url,{title:t.title}))}},o={testLexicalNode:i.FJ,visitLexicalNode:e=>{let{lexicalNode:t,actions:n}=e;n.addAndStepInto("link",{url:t.getURL(),title:t.getTitle()})}};var a=n(57259),s=n(44997);function u({validateUrl:e,attributes:t}){let[n]=(0,s.DF)();return(0,r.useEffect)(()=>{if(!n.hasNodes([i.Db]))throw Error("LinkPlugin: LinkNode not registered on editor")}),(0,r.useEffect)(()=>(0,i.Ou)(n,(0,a.v)({attributes:t,validateUrl:e})),[n,e,t]),null}function c({matchers:e,onChange:t,excludeParents:n}){let[l]=(0,s.DF)();return(0,r.useEffect)(()=>{l.hasNodes([i.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)}),(0,r.useEffect)(()=>(0,i.Pm)(l,{changeHandlers:t?[t]:[],excludeParents:n??[],matchers:e}),[l,e,t,n]),null}let d=[(0,i.oP)(/((https?:\/\/(www\.)?)|(www\.))[-a-zA-Z0-9@:%._+~#=]{1,256}\.[a-zA-Z0-9()]{1,6}\b([-a-zA-Z0-9()@:%_+.~#?&//=]*)/,e=>e.startsWith("http")?e:"https://".concat(e)),(0,i.oP)(/(([^<>()[\]\\.,;:\s@"]+(\.[^<>()[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))/,e=>"mailto:".concat(e))],f=()=>r.createElement(c,{matchers:d});var p=n(61259),h=n(11919),g=n(45276);let m=(0,p.fh)(!1),v=(0,h.Z)({init(e,t){let n=!!(null==t?void 0:t.disableAutoLink),a=(null==t?void 0:t.validateUrl)?{validateUrl:t.validateUrl}:{},s=()=>r.createElement(r.Fragment,null,r.createElement(u,{...a}),n?null:r.createElement(f,null));e.pubIn({[g.$0]:"link",[g.R1]:l,[g.q]:[i.Db,i.k_],[g.iI]:o,[m]:n,[g.Id]:s,[g.dH]:s,[g.aC]:s})}})},956:(e,t,n)=>{"use strict";n.d(t,{R:()=>o});var r=n(12115),i=n(95155);class l extends r.Component{state={hasError:!1};static getDerivedStateFromError(){return{hasError:!0}}componentDidCatch(e,t){this.props.onError(e instanceof Error?e:Error(String(e),{cause:e}),t)}render(){return this.state.hasError?this.props.fallback:this.props.children}}function o({children:e,fallback:t,onError:n}){return(0,i.jsx)(l,{fallback:void 0===t?(0,i.jsx)("div",{style:{border:"1px solid #f00",color:"#f00",padding:"8px"},children:"An error was thrown."}):t,onError:n,children:e})}},1624:(e,t,n)=>{"use strict";n.d(t,{r:()=>eR});var r=n(12115),i=n(80632),l=n(17498),o=n(57259);function a(e,t){let n=e;for(let r=(0,i.IlV)(e,t);r&&(S(r.origin)||(0,i.MK6)(r.origin));r=r.getAdjacentCaret())n=r.origin;return n}function s(e){return a(e,"previous")}n(319);let u="data-language",c="data-highlight-language",d="data-theme";class f extends i.fGB{__language;__theme;__isSyntaxHighlightSupported;static getType(){return"code"}static clone(e){return new f(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=(0,i.A$M)().createElement("code");
1(0,i.ZB7)(t,e.theme.code),t.setAttribute("spellcheck","false");let n=this.getLanguage();n&&(t.setAttribute(u,n),this.getIsSyntaxHighlightSupported()&&t.setAttribute(c,n));let r=this.getTheme();r&&t.setAttribute(d,r);let l=this.getStyle();return l&&(0,i.brn)(t.style,l),t}updateDOM(e,t,n){let r=this.__language,l=e.__language;r?r!==l&&t.setAttribute(u,r):l&&t.removeAttribute(u);let o=this.__isSyntaxHighlightSupported;e.__isSyntaxHighlightSupported&&l?o&&r?r!==l&&t.setAttribute(c,r):t.removeAttribute(c):o&&r&&t.setAttribute(c,r);let a=this.__theme,s=e.__theme;a?a!==s&&t.setAttribute(d,a):s&&t.removeAttribute(d);let f=this.__style,p=e.__style;return f!==p&&(0,i.brn)(t.style,f,p),!1}exportDOM(e){let t=(0,i.A$M)().createElement("pre");(0,i.ZB7)(t,e._config.theme.code),t.setAttribute("spellcheck","false");let n=this.getLanguage();n&&(t.setAttribute(u,n),this.getIsSyntaxHighlightSupported()&&t.setAttribute(c,n));let r=this.getTheme();r&&t.setAttribute(d,r);let l=this.getStyle();return l&&(0,i.brn)(t.style,l),{element:t}}static importDOM(){return{code:e=>null!=e.textContent&&(/\r?\n/.test(e.textContent)||function e(t,n){for(let r of t.childNodes)if((0,i.sby)(r)&&r.tagName===n||e(r,n))return!0;return!1}(e,"BR"))?{conversion:g,priority:1}:null,div:()=>({conversion:m,priority:1}),pre:()=>({conversion:g,priority:0}),table:e=>x(e)?{conversion:v,priority:3}:null,td:e=>{let t=e.closest("table");return e.classList.contains("js-file-line")||t&&x(t)?{conversion:y,priority:3}:null},tr:e=>{let t=e.closest("table");return t&&x(t)?{conversion:y,priority:3}:null}}}static importJSON(e){return p().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){if(!(0,o.xT)((0,i.i0_)(),"@lexical/code")){let t=C(e);if(t)return t}let{anchor:n,focus:r}=e,l=(n.isBefore(r)?n:r).getNode();if((0,i.kFe)(l)){let e=s(l),t=[];for(;;)if((0,i.MK6)(e))t.push((0,i.ev7)()),e=e.getNextSibling();else{if(!S(e))break;{let n=0,r=e.getTextContent(),i=e.getTextContentSize();for(;n<i&&" "===r[n];)n++;if(0!==n&&t.push(_(" ".repeat(n))),n!==i)break;e=e.getNextSibling()}}let r=l.splitText(n.offset)[0],o=+(0!==n.offset),a=r.getIndexWithinParent()+o,u=l.getParentOrThrow(),c=[(0,i.WKo)(),...t];u.splice(a,0,c);let d=t[t.length-1];d?d.select():0===n.offset?r.selectPrevious():r.getNextSibling().selectNext(0,0)}if(h(l)){let{offset:t}=e.anchor;l.splice(t,0,[(0,i.WKo)()]),l.select(t+1,t+1)}return null}canIndent(){return!1}collapseAtStart(){let e=(0,i.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 p(e,t){return(0,i.phO)(f).setLanguage(e).setTheme(t)}function h(e){return e instanceof f}function g(e){return{node:p(e.getAttribute(u))}}function m(e){let t=b(e);return t||function(e){let t=e.parentElement;for(;null!==t;){if(b(t))return!0;t=t.parentElement}return!1}(e)?{node:t?p():null}:{node:null}}function v(){return{node:p()}}function y(){return{node:null}}function b(e){return null!==e.style.fontFamily.match("monospace")}function x(e){return e.classList.contains("js-file-line-container")}function C(e){let{anchor:t}=e;if(e.isCollapsed()&&"element"===t.type){let e=t.getNode();if(h(e)){let n=e.getChildrenSize();if(n>=2&&t.offset===n){let t=e.getLastChild();if((0,i.wH$)(t)&&(0,i.wH$)(t.getPreviousSibling())){let t=(0,i.lJ7)();return e.splice(n-2,2,[]).insertAfter(t,!1),t.select(),t}}}}return null}class w extends i.Ey8{__highlightType;constructor(e="",t,n){super(e,n),this.__highlightType=t}static getType(){return"code-highlight"}static clone(e){return new w(e.__text,e.__highlightType||void 0,e.__key)}afterCloneFrom(e){super.afterCloneFrom(e),this.__highlightType=e.__highlightType}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(e.theme,this.__highlightType);return(0,i.ZB7)(t,n),t}updateDOM(e,t,n){let r=super.updateDOM(e,t,n),l=E(n.theme,e.__highlightType),o=E(n.theme,this.__highlightType);return l!==o&&(l&&(0,i.HEf)(t,l),o&&(0,i.ZB7)(t,o)),r}static importJSON(e){return _().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 p()}}function E(e,t){return t&&e&&e.codeHighlight&&e.codeHighlight[t]}function _(e="",t){return(0,i.pTq)(new w(e,t))}function S(e){return e instanceof w}let k="data-language";function T(e){return null!==e.style.fontFamily.match("monospace")}function N(e){let t=e.parentElement;for(;null!==t;){if(T(t))return!0;t=t.parentElement}return!1}let A=(0,l.BU)([(0,l.Bu)({$import:(e,t)=>e.$importChildren(t),match:l.VR.tag("tr","td"),name:"@lexical/code/github-code-table/unwrap"})]),I=(0,l.Bu)({$import:(e,t)=>[p(t.getAttribute(k)).splice(0,0,e.$importChildren(t))],match:l.VR.tag("pre"),name:"@lexical/code/pre"}),M=(0,l.Bu)({$import:(e,t,n)=>{let r=t.textContent||"";return/\r?\n/.test(r)||null!==t.querySelector("br")?[p(t.getAttribute(k)).splice(0,0,e.$importChildren(t))]:n()},match:l.VR.tag("code"),name:"@lexical/code/code-multiline"});function P(e){if(!(0,i.sby)(e))return!1;let t=e.style.fontFamily,n=e.style.whiteSpace;return"string"==typeof t&&/monospace/i.test(t)&&"string"==typeof n&&n.startsWith("pre")}function R(e){let t=!1,n=[],r="",l=!1,o=()=>{l&&(n.push(r),r="",l=!1)};for(let a of Array.from(e.childNodes))if((0,i.sby)(a))"DIV"===a.tagName?(o(),n.push(a.textContent||""),t=!0):"BR"===a.tagName?(o(),n.push(""),t=!0):(r+=a.textContent||"",l=!0);else if((0,i.YPs)(a)){let e=a.textContent||"";e.length>0&&(r+=e,l=!0)}return o(),t?n:null}let O=(0,l.BU)([(0,l.Bu)({$import:(e,t,n)=>{if(!P(t)||N(t))return n();let r=R(t);return null===r||0===r.length?n():[p().splice(0,0,(0,i._jw)(r.join("\n")))]},match:l.VR.tag("div"),name:"@lexical/code/vscode-wrapper"}),(0,l.Bu)({$import:(e,t,n)=>{if(!P(t)||N(t))return n();let r=t.previousElementSibling;if(r&&P(r))return[];let l=[],o=t;for(;o&&P(o);)l.push("BR"===o.tagName?"":o.textContent||""),o=o.nextElementSibling;return l.length<2?n():[p().splice(0,0,(0,i._jw)(l.join("\n")))]},match:l.VR.tag("div","br"),name:"@lexical/code/vscode-line-run"})]),L=(0,l.Bu)({$import:(e,t,n)=>T(t)?[p().splice(0,0,e.$importChildren(t))]:N(t)?e.$importChildren(t):n(),match:l.VR.tag("div"),name:"@lexical/code/div"}),F=[(0,l.Bu)({$import:(e,t)=>[p().splice(0,0,e.$importChildren(t,{rules:A}))],match:l.VR.tag("table").classAll("js-file-line-container"),name:"@lexical/code/github-code-table"}),(0,l.Bu)({$import:(e,t)=>e.$importChildren(t),match:l.VR.tag("td").classAll("js-file-line"),name:"@lexical/code/github-code-cell-by-class"}),M,I,L];l._e,l.Zj;var V=n(48243),D=n(77059),j=n(34102);function H(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}let J=/[!-/:-@[-`{-~\s]/;function B(e){return e.replace(/\\([!-/:-@[-`{-~])/g,"$1").replace(/&#(\d+);/g,(e,t)=>String.fromCodePoint(Number(t)))}let $=(0,i.urt)("mdListMarker",{parse:e=>"string"==typeof e&&/^[-*+]$/.test(e)?e:"-",resetOnCopyNode:!0}),Z=(0,i.urt)("mdCodeFence",{parse:e=>"string"==typeof e&&/^`{3,}$/.test(e)?e:"```",resetOnCopyNode:!0}),U=(0,i.urt)("mdHardLineBreak",{parse:e=>"string"==typeof e&&/^(\\| {2,})$/.test(e)?e:"",resetOnCopyNode:!0}),W=e=>(t,n,r,i)=>{let l=e(r);l.append(...n),t.replace(l),i||l.select(0,0)},K=e=>(t,n,r,l)=>{let o=t.getPreviousSibling(),a=t.getNextSibling(),s=(0,D.i)("check"===e?"x"===r[3]:void 0),u=r[0].trim()[0],c="bullet"!==e&&"check"!==e||u!==$.parse(u)?void 0:u;if((0,D.HY)(a)&&a.getListType()===e){c&&(0,i.Chh)(a,$,c);let n=a.getFirstChild();null!==n?n.insertBefore(s):a.append(s),"number"===e&&a.setStart(Number(r[2])),t.remove()}else if((0,D.HY)(o)&&o.getListType()===e)c&&(0,i.Chh)(o,$,c),o.append(s),t.remove();else{let n=(0,D.DE)(e,"number"===e?Number(r[2]):void 0);c&&(0,i.Chh)(n,$,c),n.append(s),t.replace(n)}s.append(...n),l||s.select(0,0);let d=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]);d&&s.setIndent(d)},z=(e,t,n,r)=>{let l=[],o=e.getChildren(),a=0;for(let s of o)if((0,D.Mz)(s)){if(1===s.getChildrenSize()){let e=s.getFirstChild();if((0,D.HY)(e)){let i=z(e,t,n+1,r);i&&l.push(i);continue}}if(r&&!s.getChildren().some(e=>e.isSelected(r)))continue;let o=" ".repeat(4*n),u=e.getListType(),c=(0,i.I8X)(e,$),d="number"===u?`${e.getStart()+a}. `:"check"===u?`${c} [${s.getChecked()?"x":" "}] `:c+" ",f=t(s);"number"!==u&&(f=f.replace(/^(\s{0,3}\d+)(\.\s)/,"$1\\$2")),l.push(o+d+f),a++}return l.join("\n")},q={dependencies:[j.jL],export:(e,t)=>{if(!(0,j.Pi)(e))return null;let n=Number(e.getTag().slice(1));return"#".repeat(n)+" "+t(e)},regExp:/^(#{1,6})\s/,replace:W(e=>{let t="h"+e[1].length;return(0,j.fi)(t)}),triggerOnEnter:!0,type:"element"},G={dependencies:[j.dJ],export:(e,t)=>{if(!(0,j.jd)(e))return null;let n=t(e).split("\n"),r=[];for(let e of n)r.push("> "+e);return r.join("\n")},regExp:/^>\s/,replace:(e,t,n,r)=>{if(r){let n=e.getPreviousSibling();if((0,j.jd)(n))return n.splice(n.getChildrenSize(),0,[function(e){let t=(0,i.WKo)(),n=function(e){let t=e.getChildren(),n=t.length-1,r=t[n];if(!(0,i.kFe)(r))return null;let l=r.getTextContent(),o=function(e){if(e.endsWith("\\"))return[e.slice(0,-1),"\\"];let t=e.match(/^(.*?\S)( {2,})$/);return t?[t[1],t[2]]:null}(l);if(null!==o){let[e,t]=o;return r.setTextContent(e),t}return/^ {2,}$/.test(l)&&function(e,t){for(let n=t-1;n>=0&&!(0,i.wH$)(e[n]);n--)if(/\S/.test(e[n].getTextContent()))return!0;return!1}(t,n)?(r.setTextContent(""),l):null}(e);return null!==n&&(0,i.Chh)(t,U,n),t}(n),...t]),void e.remove()}let l=(0,j.xi)();l.append(...t),e.replace(l),r||l.select(0,0)},triggerOnEnter:!0,type:"element"},Y={dependencies:[f],export:e=>{if(!h(e))return null;let t=e.getTextContent(),n=(0,i.I8X)(e,Z);if(t.indexOf(n)>-1){let e=t.match(/`{3,}/g);if(e){let t=Math.max(...e.map(e=>e.length));n="`".repeat(t+1)}}return n+(e.getLanguage()||"")+(t?"\n"+t:"")+"\n"+n},handleImportAfterStartMatch:({lines:e,rootNode:t,startLineIndex:n,startMatch:r})=>{let i=r[1],l=i.trim().length,o=e[n],a=r.index+i.length,s=o.slice(a),u=RegExp(`\`{${l},}$`);if(u.test(s)){let e=s.match(u),i=s.slice(0,s.lastIndexOf(e[0])),l=[...r];return l[2]="",Y.replace(t,null,l,e,[i],!0),[!0,n]}let c=RegExp(`^[ \\t]*\`{${l},}$`);for(let i=n+1;i<e.length;i++){let l=e[i];if(c.test(l)){let a=l.match(c),s=e.slice(n+1,i),u=o.slice(r[0].length);return u.length>0&&s.unshift(u),Y.replace(t,null,r,a,s,!0),[!0,i]}}
1let d=e.slice(n+1),f=o.slice(r[0].length);return f.length>0&&d.unshift(f),Y.replace(t,null,r,null,d,!0),[!0,e.length-1]},regExpEnd:{optional:!0,regExp:/^[ \t]*`{3,}$/},regExpStart:/^([ \t]*`{3,})([\w-]+)?[ \t]?/,replace:(e,t,n,r,l,o)=>{let a,s,u=n[1]?n[1].trim():"```",c=n[2]||void 0;if(!t&&l){if(1===l.length)r?(a=p(c),s=l[0]):(a=p(c),s=l[0].startsWith(" ")?l[0].slice(1):l[0]);else{for(a=p(c),l.length>0&&(0===l[0].trim().length?l.shift():l[0].startsWith(" ")&&(l[0]=l[0].slice(1)));l.length>0&&!l[l.length-1].length;)l.pop();s=l.join("\n")}(0,i.Chh)(a,Z,u);let t=(0,i.sTu)(s);a.append(t),e.append(a)}else t&&W(e=>p(e?e[2]:void 0))(e,t,n,o)},type:"multiline-element"},X={dependencies:[D.v5,D.YW],export:(e,t,n)=>(0,D.HY)(e)?z(e,t,0,n):null,regExp:/^(\s*)[-*+]\s/,replace:K("bullet"),triggerOnEnter:!0,type:"element"},Q={dependencies:[D.v5,D.YW],export:(e,t,n)=>(0,D.HY)(e)?z(e,t,0,n):null,regExp:/^(\s*)(?:[-*+]\s)?\s?(\[(\s|x)?\])\s/i,replace:K("check"),triggerOnEnter:!0,type:"element"},ee={dependencies:[D.v5,D.YW],export:(e,t,n)=>(0,D.HY)(e)?z(e,t,0,n):null,regExp:/^(\s*)(\d{1,})\.\s/,replace:K("number"),triggerOnEnter:!0,type:"element"},et={format:["code"],tag:"`",type:"text-format"},en={format:["bold","italic"],tag:"***",type:"text-format"},er={format:["bold","italic"],intraword:!1,tag:"___",type:"text-format"},ei={format:["bold"],tag:"**",type:"text-format"},el={format:["bold"],intraword:!1,tag:"__",type:"text-format"},eo={format:["italic"],tag:"*",type:"text-format"},ea={format:["italic"],intraword:!1,tag:"_",type:"text-format"},es={dependencies:[V.Db],export:(e,t,n)=>{if(!(0,V.FJ)(e)||(0,V.iK)(e))return null;let r=t(e),i=e.getTitle();return null!=i&&(i=i.replace(/([\\"])/g,"\\$1")),i?`[${r}](${e.getURL()} "${i}")`:`[${r}](${e.getURL()})`},importRegExp:/(?:\[(.+?)\])(?:\((?:([^()\s]+)(?:\s"((?:[^"]*\\")*[^"]*)"\s*)?)\))/,regExp:/(?:\[([^[\]]*(?:\[[^[\]]*\][^[\]]*)*)\])(?:\((?:([^()\s]+)(?:\s"((?:[^"]*\\")*[^"]*)"\s*)?)\))$/,replace:(e,t)=>{if((0,i.BtT)(e,V.FJ))return;let[,n,r,l]=t,o=null!=r?B(r):void 0,a=null!=l?B(l):void 0,s=(0,V.zA)(o,{title:a}),u=n.split("[").length-1,c=n.split("]").length-1,d=n,f="";if(u<c)return;if(u>c){let e=n.split("[");f="["+e[0],d=e.slice(1).join("[")}let p=(0,i.sTu)(d);return p.setFormat(e.getFormat()),s.append(p),e.replace(s),f&&s.insertBefore((0,i.sTu)(f)),p},trigger:")",type:"text-match"},eu=[q,G,X,ee,Y,et,en,er,ei,el,{format:["highlight"],tag:"==",type:"text-format"},eo,ea,{format:["strikethrough"],tag:"~~",type:"text-format"},es];function ec(e){return(0,i.kFe)(e)&&!e.hasFormat("code")}function ed(e,t,n,r,l){let o=e.getParent();if(!(0,i.IqF)(o)||e.getFirstChild()!==t)return!1;let a=t.getTextContent();if(!l&&" "!==a[n-1])return!1;for(let{regExp:i,replace:o}of r){let r=a.match(i),s=l||r&&r[0].endsWith(" ")?n:n-1;if(r&&r[0].length===s){let i=t.getNextSiblings(),[l,a]=t.splitText(n);if(!1!==o(e,a?[a,...i]:i,r,!1))return l.remove(),!0}}return!1}function ef(e,t,n,r,l){let o=e.getParent();if(!(0,i.IqF)(o)||e.getFirstChild()!==t)return!1;let a=t.getTextContent();if(!l&&" "!==a[n-1])return!1;for(let{regExpStart:i,replace:o,regExpEnd:s}of r){if(s&&!("optional"in s)||s&&"optional"in s&&!s.optional)continue;let r=a.match(i);if(r){let i=l||r[0].endsWith(" ")?n:n-1;if(r[0].length!==i)continue;let a=t.getNextSiblings(),[s,u]=t.splitText(n);if(!1!==o(e,u?[u,...a]:a,r,null,null,!1))return s.remove(),!0}}return!1}function ep(e,t,n){let r=n.length;for(let i=t;i>=r;i--){let t=i-r;if(eh(e,t,n,0,r)&&" "!==e[t+r])return t}return -1}function eh(e,t,n,r,i){for(let l=0;l<i;l++)if(e[t+l]!==n[r+l])return!1;return!0}var eg=n(44997);let em=[{dependencies:[o.fS],export:e=>(0,o.Hd)(e)?"***":null,regExp:/^(---|\*\*\*|___)\s?$/,replace:(e,t,n,r)=>{let i=(0,o.PL)();r||null!=e.getNextSibling()?e.replace(i):e.insertBefore(i),i.selectNext()},triggerOnEnter:!0,type:"element"},...eu];function ev({transformers:e=em}){let[t]=(0,eg.DF)();return(0,r.useEffect)(()=>(function(e,t=eu){let n=function(e){let t=H(e,e=>e.type);return{element:t.element||[],multilineElement:t["multiline-element"]||[],textFormat:t["text-format"]||[],textMatch:t["text-match"]||[]}}(t),r=n.element.filter(e=>e.triggerOnEnter),l=H(n.textFormat,({tag:e})=>e[e.length-1]),o=H(n.textMatch,({trigger:e})=>e),a=new Set([" "]);for(let e of n.textFormat)a.add(e.tag.slice(-1));for(let e of n.textMatch)void 0!==e.trigger&&a.add(e.trigger);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(0,i.Sdt)(e.registerUpdateListener(({tags:t,dirtyLeaves:r,editorState:s,prevEditorState:u})=>
1{if(t.has(i.Ng_)||t.has(i.n0X)||e.isComposing())return;let c=t.has(i.sne),d=s.read(i.vJq),f=u.read(i.vJq);if(!(0,i.I2P)(f)||!(0,i.I2P)(d)||!d.isCollapsed()||d.is(f)&&!c)return;let p=d.anchor.key,g=d.anchor.offset,m=s._nodeMap.get(p);if((0,i.kFe)(m)&&r.has(p)&&(c||1===g||!(g>f.anchor.offset+1))){if(c){let e=s.read(()=>m.getTextContent())[g-1];if(!a.has(e))return}e.update(()=>{let e;if(!ec(m))return;let t=m.getParent();null===t||h(t)||(ed(t,m,e=d.anchor.offset,n.element)||ef(t,m,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}(m,e,o)||function(e,t,n){let r=e.getTextContent(),l=t-1,o=r[l],a=n[o];if(!a)return!1;for(let t of a){let{tag:n}=t,a=n.length,s=l-a+1;if(a>1&&!eh(r,s,n,0,a)||" "===r[s-1])continue;let u=r[l+1];if(!1===t.intraword&&u&&!J.test(u))continue;let c=e,d=ep(r,s,n),f=c;for(;d<0&&(f=f.getPreviousSibling())&&!(0,i.wH$)(f);)if((0,i.kFe)(f)){if(f.hasFormat("code"))continue;let e=f.getTextContent();c=f,d=ep(e,e.length,n)}if(d<0||c===e&&d+a===s)continue;let p=c.getTextContent();if(d>0&&p[d-1]===o)continue;let h=p[d-1];if(!1===t.intraword&&h&&!J.test(h)||!t.format.includes("code")&&function(e,t){let n=0,r=e.getTextContent();for(let e=0;e<t;e++)"`"===r[e]&&n++;return n%2!=0}(c,d))continue;let g=e.getTextContent(),m=g.slice(0,s)+g.slice(l+1);e.setTextContent(m);let v=c===e?m:p;c.setTextContent(v.slice(0,d)+v.slice(d+a));let y=(0,i.vJq)(),b=(0,i.uTE)();(0,i.n1P)(b);let x=l-a*(c===e?2:1)+1;for(let n of(b.anchor.set(c.__key,d,"text"),b.focus.set(e.__key,x,"text"),t.format))b.formatText(n,i.LZn[n]);for(let e of(b.anchor.set(b.focus.key,b.focus.offset,b.focus.type),t.format))b.hasFormat(e)&&b.toggleFormat(e);return(0,i.I2P)(y)&&(b.format=y.format),!0}return!1}(m,e,l))&&(0,i.JAT)(i.bMH)})}}),e.registerCommand(i.RTo,e=>{if(null!==e&&e.shiftKey)return!1;let t=(0,i.vJq)();if(!(0,i.I2P)(t)||!t.isCollapsed())return!1;let l=t.anchor.offset,o=t.anchor.getNode();if(!(0,i.kFe)(o)||!ec(o))return!1;let a=o.getParent();return!(null===a||h(a))&&l===o.getTextContent().length&&!(!ef(a,o,l,n.multilineElement,!0)&&!ed(a,o,l,r,!0))&&(null!==e&&e.preventDefault(),!0)},i.AcJ))})(t,e),[t,e]),null}var ey=n(11919),eb=n(61259),ex=n(11018);function eC(){let e=ex.lQ;return{publish:()=>{e()},subscribe:t=>{e=t}}}var ew=n(45276),eE=Object.defineProperty,e_=(e,t,n)=>((e,t,n)=>t in e?eE(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n)(e,"symbol"!=typeof t?t+"":t,n);class eS extends i.Kp7{static getType(){return"codeblock"}static clone(e){return new eS(e.__code,e.__language,e.__meta,e.__key)}afterCloneFrom(e){super.afterCloneFrom(e),this.__code=e.__code,this.__meta=e.__meta,this.__language=e.__language,this.__focusEmitter=eC()}static importJSON(e){let t="string"==typeof e.code?e.code:"";return eA({code:t,language:"string"==typeof e.language?e.language:"",meta:"string"==typeof e.meta?e.meta:""})}static importDOM(){return{pre:()=>({conversion:eI,priority:3})}}exportJSON(){return{code:this.getCode(),language:this.getLanguage(),meta:this.getMeta(),type:"codeblock",version:1}}createDOM(e,t){return document.createElement("div")}updateDOM(){return!1}getCode(){return this.__code}getMeta(){return this.__meta}getLanguage(){return this.__language}decorate(e){return r.createElement(eN,{parentEditor:e,code:this.getCode(),meta:this.getMeta(),language:this.getLanguage(),codeBlockNode:this,nodeKey:this.getKey(),focusEmitter:this.__focusEmitter})}isInline(){return!1}constructor(e,t,n,r){super(r),e_(this,"__code"),e_(this,"__meta"),e_(this,"__language"),e_(this,"__focusEmitter",eC()),e_(this,"setCode",e=>{e!==this.__code&&(this.getWritable().__code=e)}),e_(this,"setMeta",e=>{e!==this.__meta&&(this.getWritable().__meta=e)}),e_(this,"setLanguage",e=>{e!==this.__language&&(this.getWritable().__language=e)}),e_(this,"select",()=>{this.__focusEmitter.publish()}),this.__code=e,this.__meta=n,this.__language=t}}let ek=r.createContext(null),eT=e=>{let{parentEditor:t,lexicalNode:n,children:i}=e,l=r.useMemo(()=>({lexicalNode:n,parentEditor:t,setCode:e=>{t.update(()=>{n.setCode(e),setTimeout(()=>{t.dispatchCommand(ew.Cc,void 0)}
1,0)})},setLanguage:e=>{t.update(()=>{n.setLanguage(e)})},setMeta:e=>{t.update(()=>{n.setMeta(e)})}}),[n,t]);return r.createElement(ek.Provider,{value:l},i)},eN=e=>{let t=(0,eb.X3)(ew.Wd),n=(0,eb.X3)(ew.uf),i=function(e,t,n,r){var i;let l=[...e].sort((e,t)=>t.priority-e.priority),o=null!=n?n:"";return null!=(i=l.find(e=>e.match(null!=t?t:"",o)))?i:l.find(e=>e.match(null!=r?r:"",o))}(t,e.language,e.meta,n);if(!i)throw Error("No CodeBlockEditor registered for language=".concat(e.language," meta=").concat(e.meta));let l=i.Editor,{codeBlockNode:o,parentEditor:a,...s}=e;return r.createElement(eT,{parentEditor:e.parentEditor,lexicalNode:e.codeBlockNode},r.createElement(l,{...s}))};function eA(e){let{code:t="",language:n="",meta:r=""}=e;return new eS(t,n,r)}function eI(e){var t,n,r;let i=e.textContent,l=null!=(t=e.getAttribute("class"))?t:"",o=null!=(n=e.getAttribute("data-language"))?n:"",a=/language-(\w+)/.exec(l);return{node:eA({code:i,language:a?a[1]:o,meta:null!=(r=e.getAttribute("data-meta"))?r:""})}}var eM=n(33289),eP=n(34134);let eR=(0,ey.Z)({init(e){let t=e.getValue(ew.TI),n=t.includes("headings")?e.getValue(eM.OO):[],i=function(e,t){let n=[en,er,ei,el,et,eo,ea];if(e.includes("headings")){let e,r=Math.min(...t),i=Math.max(...t),l=new RegExp("^(#{".concat(r,",").concat(i,"})\\s")),o={dependencies:[j.jL],export:(e,t)=>{if(!(0,j.Pi)(e))return null;let n=Number(e.getTag().slice(1));return"#".repeat(n)+" "+t(e)},regExp:l,replace:(e=e=>{let t="h".concat(e[1].length);return(0,j.fi)(t)},(t,n,r)=>{let i=e(r);i.append(...n),t.replace(i),i.select(0,0)}),type:"element"};n.push(o)}if(e.includes("thematicBreak")&&n.push(eO),e.includes("quote")&&n.push(G),e.includes("link")&&n.push(es),e.includes("lists")&&n.push(ee,X,Q),e.includes("codeblock")){let e={...Y,dependencies:[eS],replace:(e,t,n)=>{var r;let i=eA({code:"",language:null!=(r=n[1])?r:"",meta:""});e.selectPrevious(),e.replace(i),setTimeout(()=>{i.select()},80)}};n.push(e)}return n}(t,n),l=i.filter(e=>!eL.has(e));e.pubIn({[ew.aC]:()=>r.createElement(ev,{transformers:i}),[ew.Id]:()=>r.createElement(ev,{transformers:i}),[ew.dH]:()=>r.createElement(ev,{transformers:l})})}}),eO={dependencies:[eP.fS],export:e=>(0,o.Hd)(e)?"***":null,regExp:/^(---|\*\*\*|___)\s?$/,replace:(e,t,n,r)=>{let i=(0,eP.PL)();r||null!=e.getNextSibling()?e.replace(i):e.insertBefore(i),i.selectNext()},type:"element"},eL=new Set([ee,X,Q])},3324:(e,t,n)=>{"use strict";n.d(t,{Y:()=>m});var r=n(11919),i=n(57259),l=n(34134),o=n(44997),a=n(319),s=n(80632),u=n(12115);function c(){let[e]=(0,o.DF)();return(0,u.useEffect)(()=>e.registerCommand(i.s0,e=>{let t=(0,s.vJq)();if(!(0,s.I2P)(t))return!1;if(null!==t.focus.getNode()){let e=(0,l.PL)();(0,a.Pe)(e)}return!0},s.jZM),[e]),null}var d=n(61259),f=n(45276);let p={testLexicalNode:e=>e instanceof l.fS,visitLexicalNode(e){let{actions:t}=e;t.addAndStepInto("thematicBreak")}},h={testNode:"thematicBreak",visitNode(e){let{actions:t}=e;t.addAndStepInto((0,l.PL)())}},g=(0,d.rc)(e=>{e.sub(e.pipe(g,(0,d.EY)(f.Cp)),e=>{let[,t]=e;
1null==t||t.dispatchCommand(i.s0,void 0)})}),m=(0,r.Z)({init(e){e.pubIn({[f.$0]:"thematicBreak",[f.R1]:h,[f.q]:l.fS,[f.iI]:p,[f.aC]:c})}})},3805:(e,t,n)=>{"use strict";n.d(t,{a:()=>d});var r=n(44997),i=n(12115),l=n(80632),o=n(95155),a=n(62313);let s=l.qxK?i.useLayoutEffect:i.useEffect,u=(0,i.forwardRef)(function({editor:e,ariaActiveDescendant:t,ariaAutoComplete:n,ariaControls:r,ariaDescribedBy:l,ariaErrorMessage:a,ariaExpanded:u,ariaInvalid:c,ariaLabel:d,ariaLabelledBy:f,ariaMultiline:p,ariaOwns:h,ariaRequired:g,autoCapitalize:m,className:v,id:y,role:b="textbox",spellCheck:x=!0,style:C,tabIndex:w,"data-testid":E,..._},S){let[k,T]=(0,i.useState)(e.isEditable()),N=(0,i.useCallback)(t=>{t&&t.ownerDocument&&t.ownerDocument.defaultView?e.setRootElement(t):e.setRootElement(null)},[e]),A=(0,i.useMemo)(()=>(function(...e){return t=>{for(let n of e)"function"==typeof n?n(t):null!=n&&(n.current=t)}})(S,N),[N,S]);return s(()=>(T(e.isEditable()),e.registerEditableListener(e=>{T(e)})),[e]),(0,o.jsx)("div",{"aria-activedescendant":k?t:void 0,"aria-autocomplete":k?n:"none","aria-controls":k?r:void 0,"aria-describedby":l,...null!=a?{"aria-errormessage":a}:{},"aria-expanded":k&&"combobox"===b?!!u:void 0,...null!=c?{"aria-invalid":c}:{},"aria-label":d,"aria-labelledby":f,"aria-multiline":p,"aria-owns":k?h:void 0,"aria-readonly":!k||void 0,"aria-required":g,autoCapitalize:m,className:v,contentEditable:k,"data-testid":E,id:y,ref:A,role:b,spellCheck:x,style:C,tabIndex:w??(k?void 0:-1),..._})});function c(e){return e.read("latest",(0,a.yl)(e.isComposing()))}let d=(0,i.forwardRef)(function(e,t){let{placeholder:n,...i}=e,[l]=(0,r.DF)();return(0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)(u,{editor:l,...i,ref:t}),null!=n&&(0,o.jsx)(f,{editor:l,content:n})]})});function f({content:e,editor:t}){let n=function(e){let[t,n]=(0,i.useState)(()=>c(e));return s(()=>{function t(){n(c(e))}return t(),(0,l.Sdt)(e.registerUpdateListener(()=>{t()}),e.registerEditableListener(()=>{t()}))},[e]),t}(t),[r,a]=(0,i.useState)(t.isEditable());if((0,i.useLayoutEffect)(()=>(a(t.isEditable()),t.registerEditableListener(e=>{a(e)})),[t]),!n)return null;let u=null;return"function"==typeof e?u=e(r):null!==e&&(u=e),null===u?null:(0,o.jsx)("div",{"aria-hidden":!0,children:u})}},4492:(e,t,n)=>{"use strict";n.d(t,{n:()=>f});var r=n(3805),i=n(956),l=n(96803),o=n(80632),a=n(44997),s=n(12115),u=n(47650),c=n(95155);let d={EditorChildrenComponent:function({contentEditable:e,children:t}){return(0,c.jsxs)(c.Fragment,{children:[e,t]})},ErrorBoundary:i.R,contentEditable:(0,c.jsx)(r.a,{}),decorators:[]},f=(0,o.vE9)({build(e,t,n){n.getPeer(l.m.name)||function(e,...t){let n=new URL("https://lexical.dev/docs/error"),r=new URLSearchParams;for(let e of(r.append("code",321),t))r.append("v",e);throw n.search=r.toString(),Error(`Minified Lexical error #${321}; visit ${n.toString()} for the full message or use the non-minified dev environment for full errors and additional helpful warnings.`)}(321,[...n.getDirectDependentNames()].join(" "));let r=[e,{getTheme:()=>e._config.theme}];return{Component:function(e,t){let[n]=t,r=e.decorators.map(e=>"function"==typeof e?(0,c.jsx)(e,{context:t}):e);return function(i){let{EditorChildrenComponent:l=e.EditorChildrenComponent,ErrorBoundary:o=e.ErrorBoundary,contentEditable:d=e.contentEditable,children:f}=i,p=function(e,t){let[n,r]=(0,s.useMemo)(()=>[t=>e.registerDecoratorListener(t),()=>e.getDecorators()],[e]),i=(0,s.useSyncExternalStore)(n,r,r);return(0,s.useMemo)(()=>{let n=[];for(let r in i){let l=e.getElementByKey(r);if(null!==l){let o=(0,c.jsx)(t,{onError:t=>{e._onError(t)},children:(0,c.jsx)(s.Suspense,{fallback:null,children:i[r]})});n.push((0,u.createPortal)(o,l,r))}}return n},[t,i,e])}(n,o),h=(0,s.useMemo)(()=>r.map((e,t)=>(0,c.jsx)(o,{onError:e=>{n._onError(e)},children:(0,c.jsx)(s.Suspense,{fallback:null,children:e})},t)),[o]);return(0,c.jsx)(a.Gu.Provider,{value:t,children:(0,c.jsxs)(l,{context:t,contentEditable:d,children:[f,h,p]})})}}(t,r),context:r}},config:d,mergeConfig(e,t){let n=(0,o.Tc1)(e,t);return t.decorators&&(n.decorators=t.decorators.length>0?[...e.decorators,...t.decorators]:e.decorators),n}
1,name:"@lexical/react/React",peerDependencies:[(0,o.aif)(l.m.name)]})},8953:(e,t,n)=>{"use strict";n.d(t,{c3:()=>V});var r=n(11919),i=n(61259),l=n(74037),o=n(99027),a=n(45276),s=n(80632),u=n(12115),c=n(11018),d=n(3805),f=n(956),p=n(93502),h=n(41029),g=n(82763),m=n(61536),v=n(91249),y=n(73531),b=n(85203),x=n(74898),C=n(17093);let w=e=>0===e?"th":"td",E={center:x.Ay.centeredCell,left:x.Ay.leftAlignedCell,right:x.Ay.rightAlignedCell},_=e=>{let{mdastNode:t,parentEditor:n,lexicalTable:r}=e,[l,o]=u.useState(null),[c,d]=(0,i.uX)(a.yr,a.pc),f=u.useMemo(()=>e=>(null!=e.__cacheKey||(e.__cacheKey=function(){let e=[...Array(256).keys()].map(e=>e.toString(16).padStart(2,"0")),t=crypto.getRandomValues(new Uint8Array(16));return t[6]=15&t[6]|64,t[8]=63&t[8]|128,[...t.entries()].map(t=>{let[n,r]=t;return[4,6,8,10].includes(n)?"-".concat(e[r]):e[r]}).join("")}()),e.__cacheKey),[]),p=u.useCallback(e=>{let t=r.getColCount();if(null===e)return void o(null);let[i,l]=e;if(i>t-1&&(i=0,l++),i<0&&(i=t-1,l-=1),l>r.getRowCount()-1){o(null),n.update(()=>{if(r.getLatest().getNextSibling())r.getLatest().selectNext();else{let e=(0,s.lJ7)();r.insertAfter(e),e.select()}});return}if(l<0){o(null),n.update(()=>{r.getLatest().selectPrevious()});return}o([i,l])},[r,n]);u.useEffect(()=>{r.focusEmitter.subscribe(p)},[r,p]);let h=u.useCallback(e=>{e.preventDefault(),n.update(()=>{r.addRowToBottom(),o([0,r.getRowCount()])})},[n,r]),g=u.useCallback(e=>{e.preventDefault(),n.update(()=>{r.addColumnToRight(),o([r.getColCount(),0])})},[n,r]),[m,v]=u.useState([-1,-1]),y=u.useCallback(e=>{let t=e.target;for(;t&&!["TH","TD"].includes(t.tagName);){if(t===e.currentTarget)return;t=t.parentElement}if(null===t)return;let n=t.parentElement;v(["TFOOT"===n.parentElement.tagName?-1:Array.from(n.children).indexOf(t),"TH"===t.tagName?-1:Array.from(n.parentElement.children).indexOf(n)])},[]),b=(0,a.Bd)();return u.createElement("table",{className:x.Ay.tableEditor,onMouseOver:y,onMouseLeave:()=>{v([-1,-1])}},u.createElement("colgroup",null,d?null:u.createElement("col",null),Array.from({length:t.children[0].children.length},(e,n)=>{var r,i;let l=E[null!=(i=(null!=(r=t.align)?r:[])[n])?i:"left"];return u.createElement("col",{key:n,className:l})}),d?null:u.createElement("col",null)),d||u.createElement("thead",null,u.createElement("tr",null,u.createElement("th",{className:x.Ay.tableToolsColumn}),Array.from({length:t.children[0].children.length},(e,i)=>{var l;return u.createElement("th",{key:i,"data-tool-cell":!0},u.createElement(T,{...{setActiveCellWithBoundaries:p,parentEditor:n,colIndex:i,highlightedCoordinates:m,lexicalTable:r,align:(null!=(l=t.align)?l:[])[i]}}))}),u.createElement("th",{className:x.Ay.tableToolsColumn,"data-tool-cell":!0},u.createElement("button",{className:x.Ay.iconButton,type:"button",title:b("table.deleteTable","Delete table"),onClick:e=>{e.preventDefault(),n.update(()=>{r.selectNext(),r.remove()})}},c("delete_small"))))),u.createElement("tbody",null,t.children.map((e,i)=>{let o=w(i);return u.createElement("tr",{key:i},d||u.createElement(o,{className:x.Ay.toolCell,"data-tool-cell":!0},u.createElement(N,{setActiveCellWithBoundaries:p,parentEditor:n,rowIndex:i,highlightedCoordinates:m,lexicalTable:r})),e.children.map((e,o)=>{var a;return u.createElement(S,{align:null==(a=t.align)?void 0:a[o],key:f(e),contents:e.children,setActiveCell:p,...{rowIndex:i,colIndex:o,lexicalTable:r,parentEditor:n,activeCell:d?[-1,-1]:l}})}),d||0===i&&u.createElement("th",{rowSpan:r.getRowCount(),"data-tool-cell":!0},u.createElement("button",{type:"button",className:x.Ay.addColumnButton,onClick:g},c("add_column"))))})),d||u.createElement("tfoot",null,u.createElement("tr",null,u.createElement("th",
1null),u.createElement("th",{colSpan:r.getColCount(),"data-tool-cell":!0},u.createElement("button",{type:"button",className:x.Ay.addRowButton,onClick:h},c("add_row"))),u.createElement("th",null))))},S=e=>{let{align:t,...n}=e,{activeCell:r,setActiveCell:i}=n,l=(null==r?void 0:r[0])===n.colIndex&&r[1]===n.rowIndex,o=E[null!=t?t:"left"],a=w(n.rowIndex);return u.createElement(a,{className:o,"data-active":l,onClick:()=>{i([n.colIndex,n.rowIndex])}},u.createElement(k,{...n,focus:l}))},k=e=>{let{focus:t,setActiveCell:n,parentEditor:r,lexicalTable:l,contents:o,colIndex:c,rowIndex:g}=e,[y,b,x,w,E,_,S,k,T,N]=(0,i.uX)(a.b$,a.IJ,a.G7,a.X_,a.uQ,a.Wd,a.uf,a.nK,a.u0,a.Di),[A,I]=u.useState(null);u.useEffect(()=>{let e=(0,C.dj)({name:"@mdxeditor/table-cell",nodes:x,namespace:"TableCellEditor",parentEditor:r,historyMode:"table-local",initialEditorState:()=>{(0,v.CP)({root:(0,s.NiT)(),mdastRoot:{type:"root",children:[{type:"paragraph",children:o}]},visitors:y,jsxComponentDescriptors:w,directiveDescriptors:E,codeBlockEditorDescriptors:_,defaultCodeBlockLanguage:S})}});return I(e),()=>{e.dispose()}},[]);let M=u.useCallback(e=>{A&&(A.getEditorState().read(()=>{let e=(0,m.J)({root:(0,s.NiT)(),jsxComponentDescriptors:w,visitors:b,jsxIsAvailable:k});r.update(()=>{l.updateCellContents(c,g,e.children[0].children)},{discrete:!0}),r.dispatchCommand(a.Cc,void 0)}),n(e))},[c,A,b,w,k,l,r,g,n]);return(u.useEffect(()=>{if(A)return(0,s.Sdt)(A.registerCommand(s.OXk,e=>(e.preventDefault(),M(e.shiftKey?[c-1,g]:[c+1,g]),!0),s.da8),A.registerCommand(s.$7r,()=>(n([c,g]),!1),s.AcJ),A.registerCommand(s.RTo,e=>(null==e||e.preventDefault(),M((null==e?void 0:e.shiftKey)?[c,g-1]:[c,g+1]),!0),s.da8),A.registerCommand(s.I2H,e=>!function e(t,n){return null!==t&&t!==n&&(void 0!==t.dataset.editorDialog||void 0!==t.dataset.toolbarItem||!!t.dataset.editorDropdown||e(t.parentElement,n))}(e.relatedTarget,T.getRootElement())&&(M(null),!0),s.jZM),A.registerCommand(a.Cc,()=>(M(null),!0),s.jZM))},[c,A,T,g,M,n]),u.useEffect(()=>{t&&A&&A.focus()},[t,A]),A)?u.createElement(p.p,{initialEditor:A},u.createElement(h.$,{contentEditable:u.createElement(d.a,null),placeholder:u.createElement("div",null),ErrorBoundary:f.R}),N.map((e,t)=>u.createElement(e,{key:t}))):null},T=e=>{let{parentEditor:t,highlightedCoordinates:n,align:r,lexicalTable:l,colIndex:o,setActiveCellWithBoundaries:s}=e,[c,d]=(0,i.uX)(a.xZ,a.yr),f=u.useCallback(e=>{t.update(()=>{l.insertColumnAt(e)}),s([e,0])},[t,l,s]),p=u.useCallback(e=>{t.update(()=>{l.deleteColumnAt(e)})},[t,l]),h=u.useCallback((e,n)=>{t.update(()=>{l.setColumnAlign(e,n)})},[t,l]),m=(0,a.Bd)();return u.createElement(g.bL,null,u.createElement(g.Wv,{className:x.Ay.tableColumnEditorTrigger,"data-active":n[0]===o+1,title:m("table.columnMenu","Column menu")},d("more_horiz")),u.createElement(g.ZL,{container:null==c?void 0:c.current},u.createElement(g.hl,{className:b(x.Ay.tableColumnEditorPopoverContent),onOpenAutoFocus:e=>{e.preventDefault()},sideOffset:5,side:"top"},u.createElement(y.bL,{className:x.Ay.tableColumnEditorToolbar},u.createElement(y.OY,{className:x.Ay.toggleGroupRoot,onValueChange:e=>{h(o,e)},value:null!=r?r:"left",type:"single","aria-label":m("table.textAlignment","Text alignment")},u.createElement(y.sy,{value:"left",title:m("table.alignLeft","Align left")},d("format_align_left")),u.createElement(y.sy,{value:"center",title:m("table.alignCenter","Align center")},d("format_align_center")),u.createElement(y.sy,{value:"right",title:m("table.alignRight","Align right")},d("format_align_right"))),u.createElement(y.wv,null),u.createElement(y.$n,{onClick:f.bind(null,o),title:m("table.insertColumnLeft","Insert a column to the left of this one")},d("insert_col_left")),u.createElement(y.$n,{onClick:f.bind(null,o+1),title:m("table.insertColumnRight","Insert a column to the right of this one")},d("insert_col_right")),u.createElement(y.$n,{onClick:p.bind(null,o),title:m("table.deleteColumn","Delete this column")},d("delete_small"))),u.createElement(g.i3,{className:x.Ay.popoverArrow}))))},N=e=>{let{parentEditor:t,highlightedCoordinates:n,lexicalTable:r,rowIndex:l,setActiveCellWithBoundaries:o}=e,[s,c]=(0,i.uX)(a.xZ,a.yr),d=u.useCallback(e=>{t.update(()=>{r.insertRowAt(e)}),o([0,e])},[t,r,o]),f=u.useCallback(e=>{t.update(()=>{r.deleteRowAt(e)})},[t,r]),p=(0,a.Bd)();return u.createElement(g.bL,null,u.createElement(g.Wv,{className:x.Ay.tableColumnEditorTrigger,"data-active":n[1]===l,title:p("table.rowMenu","Row menu")},c("more_horiz")),u.createElement(g.ZL,{container:null==s?void 0:s.current},u.createElement(g.hl,{className:b(x.Ay.tableColumnEditorPopoverContent),onOpenAutoFocus:e=>{e.preventDefault()},sideOffset:5,side:"bottom"},u.createElement(y.bL,{className:x.Ay.tableColumnEditorToolbar},u.createElement(y.$n,{onClick:d.bind(null,l),title:p("table.insertRowAbove","Insert a row above this one")},c("insert_row_above")),u.createElement(y.$n,{onClick:d.bind(null,l+1),title:p("table.insertRowBelow","Insert a row below this one")},c("insert_row_below")),u.createElement(y.$n,{onClick:f.bind(null,l),title:p("table.deleteRow","Delete this row")},c("delete_small"))),u.createElement(g.i3,{className:x.Ay.popoverArrow}))))};var A=Object.defineProperty,I=(e,t,n)=>((e,t,n)=>t in e?A(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n)(e,"symbol"!=typeof t?t+"":t,n);let M={type:"tableCell",children:[]};class P extends s.Kp7{static getType(){return"table"}static clone(e){return new P(structuredClone(e.__mdastNode),e.__key)}static importJSON(e){return new P(e.mdastNode)}static importDOM(){return{table:()=>({conversion:R,priority:3})}}exportJSON(){return{mdastNode:structuredClone(this.__mdastNode),type:"table",version:1}}getMdastNode(){return this.__mdastNode}getRowCount(){return this.__mdastNode.children.length}getColCount(){var e;return(null==(e=this.__mdastNode.children[0])?void 0:e.children.length)||0}createDOM(){return document.createElement("div")}updateDOM(){return!1}
1updateCellContents(e,t,n){let r=this.getWritable().__mdastNode,i=r.children[t],l=i.children,o=l[e],a=Array.from(l),s={...o,children:n},u={...i,children:a};a[e]=s,r.children[t]=u}insertColumnAt(e){let t=this.getWritable().__mdastNode;for(let n=0;n<t.children.length;n++){let r=t.children[n],i=Array.from(r.children),l={...r,children:i};i.splice(e,0,structuredClone(M)),t.children[n]=l}t.align&&t.align.length>0&&t.align.splice(e,0,"left")}deleteColumnAt(e){let t=this.getWritable().__mdastNode;for(let n=0;n<t.children.length;n++){let r=t.children[n],i=Array.from(r.children),l={...r,children:i};i.splice(e,1),t.children[n]=l}}insertRowAt(e){let t=this.getWritable().__mdastNode,n={type:"tableRow",children:Array.from({length:this.getColCount()},()=>structuredClone(M))};t.children.splice(e,0,n)}deleteRowAt(e){1===this.getRowCount()?(this.selectNext(),this.remove()):this.getWritable().__mdastNode.children.splice(e,1)}addRowToBottom(){this.insertRowAt(this.getRowCount())}addColumnToRight(){this.insertColumnAt(this.getColCount())}setColumnAlign(e,t){let n=this.getWritable().__mdastNode;null!=n.align||(n.align=[]),n.align[e]=t}decorate(e){return u.createElement(_,{lexicalTable:this,mdastNode:this.__mdastNode,parentEditor:e})}select(e){this.focusEmitter.publish(null!=e?e:[0,0])}isInline(){return!1}constructor(e,t){super(t),I(this,"__mdastNode"),I(this,"focusEmitter",function(){let e=c.lQ;return{publish:t=>{e(t)},subscribe:t=>{e=t}}}()),this.__mdastNode=null!=e?e:{type:"table",children:[]}}}function R(e){return{node:new P({type:"table",children:Array.from(e.querySelectorAll("tr")).map(e=>({type:"tableRow",children:Array.from(e.querySelectorAll("td, th")).map(e=>({type:"tableCell",children:[{type:"text",value:e.textContent}]}))}))})}}let O={testLexicalNode:function(e){return e instanceof P},visitLexicalNode(e){let{actions:t,mdastParent:n,lexicalNode:r}=e;t.appendToParent(n,r.getMdastNode())}},L={testNode:"table",visitNode(e){let{mdastNode:t,lexicalParent:n}=e;n.append(new P(t))}},F=(0,i.HN)(e=>{e.link(e.pipe(F,(0,i.Tj)(e=>{let{rows:t,columns:n}=e;return()=>new P(function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:1,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1,n={type:"table",children:[]};for(let r=0;r<e;r++){let e={type:"tableRow",children:[]};for(let n=0;n<t;n++){let t={type:"tableCell",children:[]};e.children.push(t)}n.children.push(e)}return n}(t,n))})),a.p3)}),V=(0,r.Z)({init(e,t){var n,r;e.pubIn({[a.C2]:(0,l.c)(),[a.cx]:(0,o.x)(),[a.R1]:L,[a.q]:P,[a.iI]:O,[a.lN]:(0,l.d)({tableCellPadding:null==(n=null==t?void 0:t.tableCellPadding)||n,tablePipeAlign:null==(r=null==t?void 0:t.tablePipeAlign)||r})})}})},11018:(e,t,n)=>{"use strict";function r(){}n.d(t,{lQ:()=>r})},11919:(e,t,n)=>{"use strict";n.d(t,{Z:()=>o,g:()=>a});var r=n(12115),i=n(61259),l=n(38195);function o(e){return function(t){return{init:n=>{var r;return null==(r=e.init)?void 0:r.call(e,n,t)},postInit:n=>{var r;return null==(r=e.postInit)?void 0:r.call(e,n,t)},update:n=>{var r;return null==(r=e.update)?void 0:r.call(e,n,t)}}}}function a(e){let{children:t,plugins:n}=e,[o,a]=r.useState(null);return(r.useEffect(()=>{var e,t;let r=new i.Mx;try{for(let t of n)null==(e=t.init)||e.call(t,r);for(let e of n)null==(t=e.postInit)||t.call(e,r)}catch(e){try{(0,l.F)(r)}catch(t){throw AggregateError([e,t],"Realm plugin initialization and cleanup both failed")}throw e}return a(r),()=>{(0,l.F)(r)}},[]),r.useEffect(()=>{var e;if(o)for(let t of n)null==(e=t.update)||e.call(t,o)}),o)?r.createElement(i.Zb.Provider,{value:o},t):null}},12758:(e,t,n)=>{e.exports=n(19298)()},13174:(e,t,n)=>{"use strict";n.d(t,{oQ:()=>i,sY:()=>r});let r="undefined"!=typeof window&&void 0!==window.document.createElement&&(()=>{var e;let t=null==(e=navigator.userAgentData)?void 0:e.platform;return t?/mac/i.test(t):/Mac|iPod|iPhone|iPad/.test(navigator.userAgent)})();function i(e,t){return r?e:t}},14445:(e,t,n)=>{"use strict";n.d(t,{X:()=>i});let r=["mdxJsxTextElement","mdxJsxFlowElement"];function i(e){return r.includes(e.type)&&l.includes(e.name)}let l=["a","abbr","address","area","article","aside","audio","b","base","bdi","bdo","blockquote","body","br","button","canvas","caption","cite","code","col","colgroup","data","datalist","dd","del","details","dfn","dialog","div","dl","dt","em","embed","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","iframe","input","ins","kbd","label","legend","li","link","main","map","mark","meta","meter","nav","noscript","object","ol","optgroup","option","output","p","param","picture","pre","progress","q","rp","rt","ruby","s","samp","script","section","select","small","source","span","strong","style","sub","summary","sup","table","tbody","td","template","textarea","tfoot","th","thead","time","title","tr","track","u","ul","var","video","wbr"]},16178:(e,t,n)=>{"use strict";n.d(t,{l:()=>u});var r=n(80632),i=n(61259),l=n(12115),o=n(13174),a=n(45276),s=n(87797);let u=()=>{let[e,t]=(0,i.uX)(a.yr,a.Cp),[n,u]=l.useState(!1),[c,d]=l.useState(!1),f=(0,a.Bd)();return l.useEffect(()=>{if(t)return(0,r.Sdt)(t.registerCommand(r.KfJ,e=>(u(e),!1),r.da8),t.registerCommand(r.WWb,e=>(d(e),!1),r.da8))},[t]),l.createElement(s.F8,{items:[{title:f("toolbar.undo","Undo {{shortcut}}",{shortcut:o.sY?"⌘Z":"Ctrl+Z"}),disabled:!n,contents:e("undo"),active:!1,onChange:()=>null==t?void 0:t.dispatchCommand(r.ZKf,void 0)},{title:f("toolbar.redo","Redo {{shortcut}}",{shortcut:o.sY?"⌘Y":"Ctrl+Y"}),disabled:!c,contents:e("redo"),active:!1,onChange:()=>null==t?void 0:t.dispatchCommand(r.V30,void 0)}]})}}
1,17093:(e,t,n)=>{"use strict";n.d(t,{dj:()=>f});var r=n(57259),i=n(42019),l=n(4492),o=n(96803),a=n(80632);let s=new WeakSet,u=new WeakMap,c=new Set([a.haT,a.Ey8,a.GRK,a.MZu,a.fD3]),d=new WeakMap;function f(e){let{name:t,namespace:n,nodes:f,theme:p,editable:h=!0,parentEditor:g,historyMode:m,historyState:v,initialEditorState:y,onError:b=e=>{throw e}}=e,x=[o.m,(0,a.O0w)(l.n,{contentEditable:null}),(0,a.O0w)(r.jZ,{setOptions:{tag:a.n0X},updateOptions:{tag:a.n0X}})];if(g&&x.push((0,a.O0w)(r.gn,{$getParentEditor:()=>g,inheritEditableFromParent:!0})),"nested-shared"===m)x.push(i.jd);else if("root-shared"===m||"nested-external"===m){if(!v)throw Error("".concat(m," requires a historyState"));x.push((0,a.O0w)(i.We,{createInitialHistoryState:()=>v,disabled:!1}))}else"table-local"===m&&x.push((0,a.O0w)(i.We,{disabled:!1}));let C=(0,a.vE9)({name:t,namespace:n,nodes:null==f?void 0:f.filter(e=>!c.has(e)),theme:p,editable:h,$initialEditorState:y,onError:b,dependencies:x}),w=(0,r.C_)(C),E=(0,r.xT)(w,i.We.name),_=null==E?void 0:E.output.historyState.value;_&&u.set(w,_),_&&!d.has(_)&&d.set(_,_.current);let S=_?w.registerUpdateListener(e=>{let{dirtyElements:t,dirtyLeaves:n,tags:r}=e,i=_.current;if(r.has(a.n0X)||t.size>0||n.size>0)return void d.set(_,i);let l=d.get(_);(null==i?void 0:i.editor)===w&&l&&l.editor!==w&&(_.undoStack.push({...l}),_.redoStack=[],w.dispatchCommand(a.KfJ,!0),w.dispatchCommand(a.WWb,!1)),d.set(_,i)}):()=>void 0,k=new Set,T=_?w.registerCommand(a.$7r,()=>{let e=setTimeout(()=>{k.delete(e),w.dispatchCommand(a.KfJ,_.undoStack.length>0),w.dispatchCommand(a.WWb,_.redoStack.length>0)});return k.add(e),!1},a.AcJ):()=>void 0,N=w.dispose.bind(w),A=!1;return w.dispose=()=>{A||(A=!0,k.forEach(clearTimeout),k.clear(),T(),S(),N())},"root-shared"===m&&s.add(w),w}},17498:(e,t,n)=>{"use strict";let r;n.d(t,{Ah:()=>function e(t,n){let r=[],i=[],o=()=>{0!==i.length&&(r.push(n().splice(0,0,i)),i=[])};for(let a of t)if(K(a)){if(o(),(0,l.ff4)(a)){let t=e(a.getChildren(),n);a.splice(0,a.getChildrenSize(),t)}r.push(a)}else i.push(a);return o(),r},BU:()=>eh,Bu:()=>L,FD:()=>z,LR:()=>$,S$:()=>P,VR:()=>eE,Zj:()=>ex,_e:()=>ew,_l:()=>V,bP:()=>G,dA:()=>p,dh:()=>eS,g2:()=>ek,k4:()=>K,up:()=>eC,vT:()=>F});var i=n(79299),l=n(80632),o=n(319),a=n(57259);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 u(e,t){let{key:n}=t;return e&&n in e?e[n]:t.defaultValue}function c(e){return r&&r.editor===e?r:void 0}function d(e,t){let n=c(t);return n&&n[e]}function f(e,t){let n=t;for(let r of e){let[e,i]=function(e,t){if("cfg"in t){let{cfg:n,updater:r}=t;return[n,r(u(e,n))]}return t}(n,r),l=e.key;if(n===t&&u(n,e)===i)continue;let o=n===t||void 0===n?Object.create(t||null):n;o[l]=i,n=o}return n}function p(e,t){return[e,t]}function h(e,t,n,i=(0,l.i0_)()){let o=r,a=c(i);try{return r={...a,editor:i,[e]:t},n()}finally{r=o}}function g(e,t=()=>{}){return(n,r=(0,l.i0_)())=>i=>{let l=c(r),o=l&&l[e],a=f(n,o||t(r));return a&&a!==o?h(e,a,i,r):i()}}function m(e,t,n,r){return Object.assign((0,l.urt)(Symbol(t),{isEqual:r,parse:n}),{[e]:!0})}function v(e){if(!(0,l.mB$)(e)||null===e.querySelector("style"))return;let t=new Map;try{for(let n of Array.from(e.styleSheets)){let r;try{r=n.cssRules}catch(e){continue}for(let n of Array.from(r)){let r;if((0,o.xj)(n,CSSStyleRule)){try{r=e.querySelectorAll(n.selectorText)}catch(e){continue}for(let e of Array.from(r)){if(!(0,l.sby)(e))continue;let r=function(e){let n=t.get(e);if(void 0===n){n=new Set;for(let t=0;t<e.style.length;t++)n.add(e.style[t]);t.set(e,n)}return n}(e);for(let t=0;t<n.style.length;t++){let i=n.style[t];r.has(i)||e.style.setProperty(i,n.style.getPropertyValue(i),n.style.getPropertyPriority(i))}}}}}}catch(e){}}let y="@lexical/html/DOM",b=Symbol.for("@lexical/html/DOMExportContext"),x="@lexical/html/DOMImport",C=Symbol.for("@lexical/html/DOMImportContext"),w=m(b,"isExport",Boolean,void 0),E=g(b,function(e){let t=(0,a.xT)(e,y);return t?t.output.defaults:void 0});l.haT,()=>{let e=(0,l.A$M)().createElement("div");return e.role="textbox",{element:e}};let _=Symbol.for("@lexical/html/SelectorImpl");function S(e,t){let n={kind:"element",predicate:0===t.length?l.sby:1===t.length?t[0]:(e,n)=>{for(let r of t)if(!r(e,n))return!1;return!0},tags:e},r=n=>S(e,[...t,n]);return{[_]:n,attr:(e,t,n)=>r(N(e,t,n)),classAll:(...e)=>r(T(e)),classAny:(...e)=>r(function(e){let t=k(e);return 0===t.length?()=>!1:e=>{if(!(0,l.sby)(e))return!1;let n=e.classList;for(let e of t)if(n.contains(e))return!0;return!1}}(e)),styleAny:(e,t,n)=>r(function(e,t,n){if("string"==typeof t)return n=>(0,l.sby)(n)&&n.style.getPropertyValue(e)===t;if(t instanceof RegExp){let r=n&&n.capture;return(n,i)=>{if(!(0,l.sby)(n))return!1;let o=n.style.getPropertyValue(e);if(!o)return!1;let a=o.match(t);return null!==a&&(void 0!==r&&(i[r]=a),!0)}}s(362,JSON.stringify(e))}
1(e,t,n))}}function k(e){let t=[];for(let n of e)n&&t.push(n);return t}function T(e){let t=k(e);return 0===t.length?()=>!0:e=>{if(!(0,l.sby)(e))return!1;let n=e.classList;for(let e of t)if(!n.contains(e))return!1;return!0}}function N(e,t,n){if(!0===t)return t=>(0,l.sby)(t)&&t.hasAttribute(e);if("string"==typeof t)return n=>(0,l.sby)(n)&&n.getAttribute(e)===t;if(t instanceof RegExp){let r=n&&n.capture;return(n,i)=>{if(!(0,l.sby)(n))return!1;let o=n.getAttribute(e);if(null==o)return!1;let a=o.match(t);return null!==a&&(void 0!==r&&(i[r]=a),!0)}}s(361,JSON.stringify(e))}let A={[_]:{kind:"text",predicate:l.YPs,tags:new Set}},I={[_]:{kind:"comment",predicate:e=>8===e.nodeType,tags:new Set}},M={any:()=>S(new Set,[]),comment:()=>I,tag(...e){e.length>0||s(363);let t=new Set;for(let n of e)t.add(n.toUpperCase());return S(t,[])},text:()=>A};function P(e,t){return(0,l.sby)(e)&&e.nodeName===t.toUpperCase()}let R=/[A-Za-z0-9_-]/;class O{constructor(e,t){this.source=e,this.pos=t}peek(e=0){return this.source[this.pos+e]||""}consume(){return this.source[this.pos++]||""}eof(){return this.pos>=this.source.length}skipWhitespace(){for(;!this.eof()&&/\s/.test(this.peek());)this.pos++}readIdent(){let e=this.pos;for(;!this.eof()&&R.test(this.peek());)this.pos++;return this.source.slice(e,this.pos)}readQuoted(){let e=this.consume();this.assert('"'===e||"'"===e,"expected quote");let t=this.pos;for(;!this.eof()&&this.peek()!==e;)"\\"===this.peek()?this.pos+=2:this.pos++;this.assert(!this.eof(),"unterminated string");let n=this.source.slice(t,this.pos);return this.pos++,n.replace(/\\(.)/g,"$1")}assert(e,t){e||s(364,String(this.pos+1),t,this.source)}}function L(e){return e}let F=m(C,"importSource",()=>"unknown",void 0),V=m(C,"importSourceDataTransfer",()=>null,void 0),D=m(C,"textFormat",()=>0,void 0),j=m(C,"textStyle",()=>({}),void 0);function H(e){if(!(0,l.sby)(e))return!1;if("PRE"===e.nodeName)return!0;let t=e.style.whiteSpace;return"string"==typeof t&&t.startsWith("pre")}function J(e){if((0,l.YPs)(e))return!0;if(!(0,l.sby)(e))return!1;let t=e.style.display;return t?t.startsWith("inline"):!(0,l.a9V)(e)&&(0,l._On)(e)}let B=m(C,"whitespaceConfig",()=>({isInline:J,preservesWhitespace:H}),void 0),$=m(C,"importOverlays",()=>[],void 0);class Z{constructor(e){this.record=e}get(e){return u(this.record,e)}set(e,t){this.record[e.key]=t}update(e,t){this.record[e.key]=t(u(this.record,e))}has(e){return Object.prototype.hasOwnProperty.call(this.record,e.key)}}function U(e){let t=(0,a.xT)(e,x);return t?t.output.defaults:void 0}let W=g(C,U);function K(e){return(0,l.y68)(e)||(0,l.Cyw)(e)&&!e.isInline()}function z(e,t){var n;if(!(0,l.sby)(t))return e;let r=t.style.textAlign;if(n=r,!X.has(n))return e;for(let t of e)(0,l.y68)(t)&&""===t.getFormatType()&&t.setFormat(r);return e}function q(e,t,n){1===e.length&&(0,l.wH$)(e[0])&&(e=[]);let r=(0,l.lJ7)();if((0,l.sby)(n)){var i;let e=n.style.textAlign;i=e,X.has(i)&&r.setFormat(e)}return[r.splice(0,0,e)]}let G={$accepts:K,$packageRun:q,name:"BlockSchema"},Y={$accepts:K,$packageRun:q,name:"RootSchema"},X=new Set(["center","end","justify","left","right","start"]),Q={B:{fontWeight:"bold"},EM:{fontStyle:"italic"},I:{fontStyle:"italic"},S:{textDecoration:"line-through"},STRONG:{fontWeight:"bold"},SUB:{verticalAlign:"sub"},SUP:{verticalAlign:"super"},U:{textDecoration:"underline"}},ee={CODE:l.jGx,MARK:l.sM8},et=new Set(["font-weight","font-style","text-decoration","vertical-align"]),en={$import:(e,t)=>{var n;let r=e.get(D),i=Q[t.nodeName],o=function(e){return{fontStyle:e.style.fontStyle,fontWeight:e.style.fontWeight,textDecoration:e.style.textDecoration,verticalAlign:e.style.verticalAlign}}(t),a=r&~(n=function(e){let t=0,n=0,{fontWeight:r,fontStyle:i,textDecoration:o,verticalAlign:a}=e;if("700"===r||"bold"===r?t|=l.FAd:"normal"!==r&&"400"!==r||(n|=l.FAd),"italic"===i?t|=l.S3D:"normal"===i&&(n|=l.S3D),o){let e=o.split(" ");e.includes("underline")&&(t|=l.IgX),e.includes("line-through")&&(t|=l.J61),e.includes("none")&&(n|=l.IgX|l.J61)}return"sub"===a?(t|=l.TeU,n|=l.o4q):"super"===a?(t|=l.o4q,n|=l.TeU):"baseline"===a&&(n|=l.TeU|l.o4q),{clear:n,set:t}}(i?{fontStyle:o.fontStyle||i.fontStyle,fontWeight:o.fontWeight||i.fontWeight,textDecoration:o.textDecoration||i.textDecoration,verticalAlign:o.verticalAlign||i.verticalAlign}:o)).clear|n.set,s=ee[t.nodeName];return s&&(a|=s),a===r?e.$importChildren(t):e.$importChildren(t,{context:[[D,a]]})},match:M.tag("b","strong","em","i","code","mark","s","sub","sup","u","span"),name:"@lexical/html/inline-format"};function er(e,t,n){let r=e;for(;;){let e=null;for(;null===(e=t?r.nextSibling:r.previousSibling);){let e=r.parentNode;if(null===e)return null;r=e}if(r=e,!n.isInline(r))return null;let i=r;for(;null!==(i=t?r.firstChild:r.lastChild);)r=i;if((0,l.YPs)(r))return r;if("BR"===r.nodeName)return null}}function ei(e,t){return 0!==t&&(0,l.kFe)(e)?e.setFormat(t):e}function el(e,t){if((0,l.kFe)(e)){let n=function(e){let t="";for(let n in e)et.has(n)||(t+=`${n}: ${e[n]}; `);return t.trimEnd()}(t);""!==n&&e.setStyle(n)}return e}let eo={$import:(e,t)=>{let n=e.get(D),r=e.get(j),i=e.get(B);if(function(e,t){let n=e.parentNode;for(;null!==n;){if(t.preservesWhitespace(n))return!0;n=n.parentNode}return!1}(t,i)){let e=(0,l._jw)(t.textContent||"");for(let t of e)ei(t,n),el(t,r);return e}let o=function(e,t){let n=(e.textContent||"").replace(/\r/g,"").replace(/[ \t\n]+/g," ");
1if(0===n.length)return"";if(" "===n[0]){let r=e,i=!0;for(;null!==r&&null!==(r=er(r,!1,t));){let e=r.textContent||"";if(e.length>0){/[ \t\n]$/.test(e)&&(n=n.slice(1)),i=!1;break}}i&&(n=n.slice(1))}if(n.length>0&&" "===n[n.length-1]){let r=e,i=!0;for(;null!==r&&null!==(r=er(r,!0,t));)if((r.textContent||"").replace(/^( |\t|\r?\n)+/,"").length>0){i=!1;break}i&&(n=n.slice(0,-1))}return n}(t,i);if(""===o)return[];let a=(0,l.sTu)(o);return ei(a,n),el(a,r),[a]},match:M.text(),name:"@lexical/html/#text"},ea={$import:()=>[],match:M.tag("script","style"),name:"@lexical/html/script-style-ignore"},es={$import:(e,t)=>(0,l.J_T)(t)||(0,l.RB3)(t)?[]:[(0,l.WKo)()],match:M.tag("br"),name:"@lexical/html/br"},eu=[ea,{$import:(e,t)=>{let n=(0,l.lJ7)();if((0,l.Sz2)(n,t),(0,l.dxY)(t,n),""===n.getFormatType()){let e=t.getAttribute("align");e&&X.has(e)&&n.setFormat(e)}return(0,l.q3P)(n,t),[n.splice(0,0,e.$importChildren(t))]},match:M.tag("p"),name:"@lexical/html/p"},{$import:(e,t,n)=>(0,l.i0_)().hasNode(a.fS)?[(0,a.PL)()]:n(),match:M.tag("hr"),name:"@lexical/html/hr"},{$import:(e,t,n)=>(0,l.a9V)(t)?z(e.$importChildren(t,{schema:G}),t):n(),match:M.any(),name:"@lexical/html/transparent-block"},eo,es,en];function ec(e){let t=[],n=new Map,r=[],i=[],l=[],o=new Set;e.forEach((e,a)=>{let u=function(e){let t=e[_];return void 0===t&&s(360),t}(e.match),c=e.name||function(e,t){if("text"===e.kind)return`#text@${t}`;if("comment"===e.kind)return`#comment@${t}`;if(0===e.tags.size)return`*@${t}`;let n=Array.from(e.tags).join(",").toLowerCase();return`${n}@${t}`}(u,a);if(e.name&&o.add(e.name),t.push({$import:e.$import,name:c,predicate:u.predicate}),"text"===u.kind)i.push(a);else if("comment"===u.kind)l.push(a);else if(0===u.tags.size)r.push(a);else for(let e of u.tags){let t=n.get(e);t||(t=[],n.set(e,t)),t.push(a)}});let a=new Map;if(0===r.length)for(let[e,t]of n)a.set(e,t);else for(let[e,t]of n)a.set(e,function(e,t){let n=[],r=0,i=0;for(;r<e.length&&i<t.length;)e[r]<=t[i]?n.push(e[r++]):n.push(t[i++]);for(;r<e.length;)n.push(e[r++]);for(;i<t.length;)n.push(t[i++]);return n}(t,r));return{byTag:a,commentIndices:l,rules:t,textIndices:i,wildcardIndices:r}}function ed(e,t){return(0,l.YPs)(t)?e.textIndices:8===t.nodeType?e.commentIndices:(0,l.sby)(t)?e.byTag.get(t.nodeName)||e.wildcardIndices:ef}let ef=Object.freeze([]);function ep(e){let t=[];for(let r of e){var n;if("object"==typeof(n=r)&&null!==n&&"__type"in n&&"CompiledOverlayRules"===n.__type)for(let e of r.rules)t.push(e);else t.push(r)}return t}function eh(e){let t=ep(e);return{__type:"CompiledOverlayRules",dispatch:ec(t),rules:t}}let eg=Object.freeze({});function em(e,t,n){let r=n&&n.$onChild,i=[];for(let n of Array.from(t.childNodes))for(let t of ev(e,n,void 0)){let e=r?r(t):t;null!=e&&i.push(e)}let l=n&&n.$after?n.$after(i):i,o=n&&n.schema;return o?function(e,t,n,r){let i=[],l=null,o=()=>{if(null===l)return;let t=l;if(l=null,e.$packageRun){let n=e.$packageRun(t,null,r);if(n.length>0){for(let e of n)i.push(e);return}}if("hoist"===e.onReject)for(let e of t)i.push(e)};for(let n of t)e.$accepts(n,null)?(o(),i.push(n)):(null===l&&(l=[]),l.push(n));return o(),e.$finalize?e.$finalize(i,n):i}(o,l,null,t):l}function ev(e,t,n){let r=()=>(function(e,t){let n=function(e,t){let n=[];for(let r=e.overlays.length-1;r>=0;r--){let i=e.overlays[r],l=ed(i,t);l.length>0&&n.push({dispatch:i,indices:l})}let r=ed(e.dispatch,t);return r.length>0&&n.push({dispatch:e.dispatch,indices:r}),n}(e,t);if(0===n.length)return ey(e,t);let r=0,i=0,o=()=>{for(;r<n.length;){let{dispatch:a,indices:s}=n[r];for(;i<s.length;){let n=s[i++],r=a.rules[n],c={};if(r.predicate(t,c)){let n=function(e,t){return{$importChildren:(t,n)=>(function(e,t,n){let r=n&&n.rules?n.rules.dispatch:void 0;r&&e.overlays.push(r);try{let r=()=>em(e,t,n);return n&&n.context?W(n.context,e.editor)(r):r()}finally{r&&e.overlays.pop()}})(e,t,n),$importOne:(t,n)=>ev(e,t,n),captures:t,get:t=>(function(e,t=(0,l.i0_)()){return u(d(C,t)||U(t),e)})(t,e.editor),session:e.session}}(e,0===Object.keys(c).length?eg:c);try{return r.$import(n,t,o)}catch(e){throw e}}}r++,i=0}return ey(e,t)};return o()})(e,t);return n&&n.context?W(n.context,e.editor)(r):r()}function ey(e,t){if(0===t.childNodes.length)return[];let n=[];for(let r of Array.from(t.childNodes))for(let t of ev(e,r,void 0))n.push(t);return n}let eb={$import:(e,t)=>e.$importChildren(t),match:M.any(),name:"@lexical/html/default-hoist"},ex=(0,l.vE9)({build(e,t){let n=ec(ep(t.rules)),r=f(t.contextDefaults,void 0),i=t.preprocess;return{$generateNodesFromDOM:(t,o)=>{let a=d(C,e)||r,s=o&&o.context?f(o.context,a):a,u=void 0!==s&&s!==a?s:Object.create(a||null),
1c=new Z(u);return function(e,t,n){let r=e.length-1,i=()=>{for(;r>=0;)return void(0,e[r--])(t,n,i)};i()}(o&&o.preprocess?[...i,...o.preprocess]:i,t,{session:c}),h(C,u,()=>em({dispatch:n,editor:e,overlays:c.get($).map(e=>e.dispatch),session:c},(0,l.mB$)(t)?t.body:t,{schema:Y}),e)},defaults:r}},config:{contextDefaults:[],preprocess:[(e,t,n)=>{v(e),n()}],rules:[eb]},mergeConfig:(e,t)=>(0,l.Tc1)(e,{...t,...t.contextDefaults&&{contextDefaults:[...e.contextDefaults,...t.contextDefaults]},...t.preprocess&&{preprocess:[...e.preprocess,...t.preprocess]},...t.rules&&{rules:[...t.rules,...e.rules]}}),name:x});function eC(e,t){return(0,a.fU)(ex).$generateNodesFromDOM(e,t)}let ew=(0,l.vE9)({dependencies:[(0,l.O0w)(ex,{rules:eu})],name:"@lexical/html/CoreImport"}),eE=(a.SY,{any:M.any,comment:M.comment,css:function(e){let t=new O(e,0),n=[];for(;;){let e=function(e){let t=new Set,n=[],r=[];if(e.skipWhitespace(),"*"===e.peek())e.consume();else if(R.test(e.peek())){let n=e.readIdent();n&&t.add(n.toUpperCase())}for(;!e.eof();){let t=e.peek();if("."===t){e.consume();let t=e.readIdent();e.assert(""!==t,'expected class name after "."'),r.push(t)}else if("#"===t){e.consume();let t=e.readIdent();e.assert(""!==t,'expected id after "#"'),n.push(N("id",t))}else{if("["!==t)break;{e.consume(),e.skipWhitespace();let t=e.readIdent();e.assert(""!==t,'expected attribute name after "["'),e.skipWhitespace();let r=!0;if("="===e.peek()){e.consume(),e.skipWhitespace();let t=e.peek();'"'===t||"'"===t?r=e.readQuoted():(r=e.readIdent(),e.assert(""!==r,"expected attribute value")),e.skipWhitespace()}e.assert("]"===e.peek(),'expected "]"'),e.consume(),n.push(N(t,r))}}}return r.length>0&&n.push(T(r)),{predicates:n,tags:t}}(t);if(n.push(e),t.skipWhitespace(),t.eof())break;t.assert(","===t.peek(),'expected "," (selector lists are the only supported combinator)'),t.consume(),t.skipWhitespace()}if(1===n.length)return S(n[0].tags,n[0].predicates);let r=new Set;for(let e of n)for(let t of e.tags)r.add(t);return S(r,[(e,t)=>{for(let r of n){let n=e.nodeName;if(r.tags.size>0&&!r.tags.has(n))continue;let i=!0;for(let n of r.predicates)if(!n(e,t)){i=!1;break}if(i)return!0}return!1}])},tag:M.tag,text:M.text}),e_=new Set(["STYLE","SCRIPT"]);function eS(e,t){v(t);let n=(0,l.mB$)(t)?t.body.childNodes:t.childNodes,r=[],i=[];for(let t of n)if(!e_.has(t.nodeName)){let n=function e(t,n,r,i,o=new Map,a){let s=[];if(e_.has(t.nodeName))return s;let u=null,c=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),d=c?c(t):null,f=null;if(null!==d){f=d.after;let e=d.node;if(null!==(u=Array.isArray(e)?e[e.length-1]:e)){for(let[,e]of o)if(!(u=e(u,a)))break;u&&s.push(...Array.isArray(e)?e:[u])}null!=d.forChild&&o.set(t.nodeName,d.forChild)}let p=t.childNodes,h=[],g=(null==u||!(0,l.IqF)(u))&&(null!=u&&(0,l.y68)(u)||i);for(let t=0;t<p.length;t++)h.push(...e(p[t],n,r,g,new Map(o),u));if(null!=f&&(h=f(h)),(0,l.a9V)(t)&&(h=function(e,t,n){let r=e.style.textAlign,i=[],o=[];for(let e=0;e<t.length;e++){let a=t[e];if((0,l.y68)(a))r&&!a.getFormat()&&a.setFormat(r),i.push(a);else if(o.push(a),e===t.length-1||e<t.length-1&&(0,l.y68)(t[e+1])){let e=n();e.setFormat(r),e.append(...o),i.push(e),o=[]}}return i}(t,h,g?()=>{let e=new l.A7V;return r.push(e),e}:l.lJ7)),null==u)if(h.length>0)for(let e of h)s.push(e);else(0,l.a9V)(t)&&null!=t.nextSibling&&null!=t.previousSibling&&(0,l._On)(t.nextSibling)&&(0,l._On)(t.previousSibling)&&s.push((0,l.WKo)());else(0,l.ff4)(u)&&u.append(...h);return s}(t,e,i,!1);if(null!==n)for(let e of n)r.push(e)}return function(e){for(let t of e)t.getParent()&&t.getNextSibling()instanceof l.A7V&&t.insertAfter((0,l.WKo)());for(let t of e){let e=t.getParent();e&&e.splice(t.getIndexWithinParent(),1,t.getChildren())}}(i),r}function ek(e,t=null){return("undefined"==typeof document||"undefined"==typeof window&&void 0===global.window)&&s(338),(0,l.Q2o)(e),function(e,t=null,n=(0,l.i0_)()){return E([[w,!0]],n)(()=>{let r=(0,l.NiT)(),o=function(e=(0,l.i0_)()){let t=function(e){let t=(0,a.xT)(e,y);return t?t.output.runtime:void 0}(e);return t?t.getSessionConfig():(0,l.MSq)(e)}(n),s=(0,l.I2P)(t)?(0,l.ex6)(t.anchor.getNode()):null,u=e.append.bind(e);for(let e of((0,l.ff4)(s)?s:r).getChildren())!function e(t,n,r,o=null,a=(0,l.MSq)(t)){let s=a.$shouldInclude(n,o,t),u=a.$shouldExclude(n,o,t),c=n;null!==o&&(0,l.kFe)(n)&&(c=(0,i.SD)(o,n,"clone"));let{element:d,after:f,append:p,$getChildNodes:h}
1=a.$exportDOM(c,t);if(!d)return!1;let g=(0,l.A$M)().createDocumentFragment(),m=h?h():(0,l.ff4)(c)?c.getChildren():[],v=s&&(0,l.RTZ)(o)&&(0,l.ff4)(n)?null:o,y=g.append.bind(g);for(let r of m){let i=e(t,r,y,v,a);!s&&i&&a.$extractWithChild(n,r,o,"html",t)&&(s=!0)}if(s&&!u){if(((0,l.sby)(d)||(0,l.K8K)(d))&&(p?p(g):d.append(g)),r(d),f){let e=f.call(c,d);e&&((0,l.K8K)(d)?d.replaceChildren(e):d.replaceWith(e))}}else r(g);return s}(n,e,u,t,o);return e})}((0,l.A$M)().createElement("div"),t,e).innerHTML}},19298:(e,t,n)=>{"use strict";var r=n(53341);function i(){}function l(){}l.resetWarningCache=i,e.exports=function(){function e(e,t,n,i,l,o){if(o!==r){var a=Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw a.name="Invariant Violation",a}}function t(){return e}e.isRequired=e;var n={array:e,bigint:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,elementType:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t,checkPropTypes:l,resetWarningCache:i}
1;return n.PropTypes=n,n}},29170:(e,t,n)=>{"use strict";n.d(t,{l:()=>C});let r={}.hasOwnProperty,i={}.hasOwnProperty;var l=n(62737),o=n(69512),a=n(48411);let s=[function(e,t,n,r){if("code"===t.type&&(0,o.m)(t,r)&&("list"===e.type||e.type===t.type&&(0,o.m)(e,r)))return!1;if("spread"in n&&"boolean"==typeof n.spread){if("paragraph"===e.type&&(e.type===t.type||"definition"===t.type||"heading"===t.type&&(0,a.f)(t,r)))return;return+!!n.spread}}],u=["autolink","destinationLiteral","destinationRaw","reference","titleQuote","titleApostrophe"],c=[{character:"	",after:"[\\r\\n]",inConstruct:"phrasing"},{character:"	",before:"[\\r\\n]",inConstruct:"phrasing"},{character:"	",inConstruct:["codeFencedLangGraveAccent","codeFencedLangTilde"]},{character:"\r",inConstruct:["codeFencedLangGraveAccent","codeFencedLangTilde","codeFencedMetaGraveAccent","codeFencedMetaTilde","destinationLiteral","headingAtx"]},{character:"\n",inConstruct:["codeFencedLangGraveAccent","codeFencedLangTilde","codeFencedMetaGraveAccent","codeFencedMetaTilde","destinationLiteral","headingAtx"]},{character:" ",after:"[\\r\\n]",inConstruct:"phrasing"},{character:" ",before:"[\\r\\n]",inConstruct:"phrasing"},{character:" ",inConstruct:["codeFencedLangGraveAccent","codeFencedLangTilde"]},{character:"!",after:"\\[",inConstruct:"phrasing",notInConstruct:u},{character:'"',inConstruct:"titleQuote"},{atBreak:!0,character:"#"},{character:"#",inConstruct:"headingAtx",after:"(?:[\r\n]|$)"},{character:"&",after:"[#A-Za-z]",inConstruct:"phrasing"},{character:"'",inConstruct:"titleApostrophe"},{character:"(",inConstruct:"destinationRaw"},{before:"\\]",character:"(",inConstruct:"phrasing",notInConstruct:u},{atBreak:!0,before:"\\d+",character:")"},{character:")",inConstruct:"destinationRaw"},{atBreak:!0,character:"*",after:"(?:[ 	\r\n*])"},{character:"*",inConstruct:"phrasing",notInConstruct:u},{atBreak:!0,character:"+",after:"(?:[ 	\r\n])"},{atBreak:!0,character:"-",after:"(?:[ 	\r\n-])"},{atBreak:!0,before:"\\d+",character:".",after:"(?:[ 	\r\n]|$)"},{atBreak:!0,character:"<",after:"[!/?A-Za-z]"},{character:"<",after:"[!/?A-Za-z]",inConstruct:"phrasing",notInConstruct:u},{character:"<",inConstruct:"destinationLiteral"},{atBreak:!0,character:"="},{atBreak:!0,character:">"},{character:">",inConstruct:"destinationLiteral"},{atBreak:!0,character:"["},{character:"[",inConstruct:"phrasing",notInConstruct:u},{character:"[",inConstruct:["label","reference"]},{character:"\\",after:"[\\r\\n]",inConstruct:"phrasing"},{character:"]",inConstruct:["label","reference"]},{atBreak:!0,character:"_"},{character:"_",inConstruct:"phrasing",notInConstruct:u},{atBreak:!0,character:"`"},{character:"`",inConstruct:["codeFencedLangGraveAccent","codeFencedMetaGraveAccent"]},{character:"`",inConstruct:"phrasing",notInConstruct:u},{atBreak:!0,character:"~"}];var d=n(55592);function f(e){return e.label||!e.identifier?e.label||"":(0,d.s)(e.identifier)}function p(e){if(!e._compiled){let t=(e.atBreak?"[\\r\\n][\\t ]*":"")+(e.before?"(?:"+e.before+")":"");e._compiled=RegExp((t?"("+t+")":"")+(/[|\\{}()[\]^$+*?.-]/.test(e.character)?"\\":"")+e.character+(e.after?"(?:"+e.after+")":""),"g")}return e._compiled}var h=n(9038);let g=/\r?\n|\r/g;function m(e,t){let n,r=[],i=0,l=0;for(;n=g.exec(e);)o(e.slice(i,n.index)),r.push(n[0]),i=n.index+n[0].length,l++;return o(e.slice(i)),r.join("");function o(e){r.push(t(e,l,!e))}}var v=n(91305);function y(e,t){return e-t}function b(e,t){let n,r=/\\(?=[!-/:-@[-`{-~])/g,i=[],l=[],o=e+t,a=-1,s=0;for(;n=r.exec(o);)i.push(n.index);for(;++a<i.length;)s!==i[a]&&l.push(e.slice(s,i[a])),l.push("\\"),s=i[a];return l.push(e.slice(s)),l.join("")}function x(e){let t=e||{},n=t.now||{},r=t.lineShift||0,i=n.line||1,l=n.column||1;return{move:function(e){let t=e||"",n=t.split(/\r?\n|\r/g),o=n[n.length-1];return i+=n.length-1,l=1===n.length?l+o.length:1+o.length+r,t},current:function(){return{now:{line:i,column:l},lineShift:r}},shift:function(e){r+=e}}}function C(e,t){let n={associationId:f,containerPhrasing:S,containerFlow:k,createTracker:x,compilePattern:p,enter:function(e){return n.stack.push(e),function(){n.stack.pop()}},handlers:{...l.p},handle:void 0,indentLines:m,indexStack:[],join:[...s],options:{},safe:T,stack:[],unsafe:[...c]};!function e(t,n){var r,l,o,a;let s,u=-1;if(n.extensions)for(;++u<n.extensions.length;)e(t,n.extensions[u]);for(s in n)if(i.call(n,s))switch(s){case"extensions":break;case"unsafe":case"join":r=t[s],(l=n[s])&&r.push(...l);break;case"handlers":o=t[s],(a=n[s])&&Object.assign(o,a);break;default:t.options[s]=n[s]}return t}(n,t||{}),n.options.tightDefinitions&&n.join.push(_),n.handle=function(e,t){let n=t||{};function i(t,...n){let l=i.invalid,o=i.handlers;if(t&&r.call(t,e)){let n=String(t[e]);l=r.call(o,n)?o[n]:i.unknown}if(l)return l.call(this,t,...n)}return i.handlers=n.handlers||{},i.invalid=n.invalid,i.unknown=n.unknown,i}("type",{invalid:w,unknown:E,handlers:n.handlers});let o=n.handle(e,void 0,n,{before:"\n",after:"\n",now:{line:1,column:1},lineShift:0});
1return o&&10!==o.charCodeAt(o.length-1)&&13!==o.charCodeAt(o.length-1)&&(o+="\n"),o}function w(e){throw Error("Cannot handle value `"+e+"`, expected node")}function E(e){throw Error("Cannot handle unknown node `"+e.type+"`")}function _(e,t){if("definition"===e.type&&e.type===t.type)return 0}function S(e,t){return function(e,t,n){let r,i=t.indexStack,l=e.children||[],o=[],a=-1,s=n.before;i.push(-1);let u=t.createTracker(n);for(;++a<l.length;){let c,d=l[a];if(i[i.length-1]=a,a+1<l.length){let n=t.handle.handlers[l[a+1].type];n&&n.peek&&(n=n.peek),c=n?n(l[a+1],e,t,{before:"",after:"",...u.current()}).charAt(0):""}else c=n.after;o.length>0&&("\r"===s||"\n"===s)&&"html"===d.type&&(o[o.length-1]=o[o.length-1].replace(/(\r?\n|\r)$/," "),s=" ",(u=t.createTracker(n)).move(o.join("")));let f=t.handle(d,e,t,{...u.current(),after:c,before:s});r&&r===f.slice(0,1)&&(f=(0,h.T)(r.charCodeAt(0))+f.slice(1));let p=t.attentionEncodeSurroundingInfo;t.attentionEncodeSurroundingInfo=void 0,r=void 0,p&&(o.length>0&&p.before&&s===o[o.length-1].slice(-1)&&(o[o.length-1]=o[o.length-1].slice(0,-1)+(0,h.T)(s.charCodeAt(0))),p.after&&(r=c)),u.move(f),o.push(f),s=f.slice(-1)}return i.pop(),o.join("")}(e,this,t)}function k(e,t){return function(e,t,n){let r=t.indexStack,i=e.children||[],l=t.createTracker(n),o=[],a=-1;for(r.push(-1);++a<i.length;){let n=i[a];r[r.length-1]=a,o.push(l.move(t.handle(n,e,t,{before:"\n",after:"\n",...l.current()}))),"list"!==n.type&&(t.bulletLastUsed=void 0),a<i.length-1&&o.push(l.move(function(e,t,n,r){let i=r.join.length;for(;i--;){let l=r.join[i](e,t,n,r);if(!0===l||1===l)break;if("number"==typeof l)return"\n".repeat(1+l);if(!1===l)return"\n\n\x3c!----\x3e\n\n"}return"\n\n"}(n,i[a+1],e,t)))}return r.pop(),o.join("")}(e,this,t)}function T(e,t){return function(e,t,n){let r=(n.before||"")+(t||"")+(n.after||""),i=[],l=[],o={},a=-1;for(;++a<e.unsafe.length;){let t,n=e.unsafe[a];if(!(0,v.q)(e.stack,n))continue;let l=e.compilePattern(n);for(;t=l.exec(r);){let e="before"in n||!!n.atBreak,r="after"in n,l=t.index+(e?t[1].length:0);i.includes(l)?(o[l].before&&!e&&(o[l].before=!1),o[l].after&&!r&&(o[l].after=!1)):(i.push(l),o[l]={before:e,after:r})}}i.sort(y);let s=n.before?n.before.length:0,u=r.length-(n.after?n.after.length:0);for(a=-1;++a<i.length;){let e=i[a];!(e<s)&&!(e>=u)&&(!(e+1<u)||i[a+1]!==e+1||!o[e].after||o[e+1].before||o[e+1].after)&&(i[a-1]!==e-1||!o[e].before||o[e-1].before||o[e-1].after)&&(s!==e&&l.push(b(r.slice(s,e),"\\")),s=e,!/[!-/:-@[-`{-~]/.test(r.charAt(e))||n.encode&&n.encode.includes(r.charAt(e))?(l.push((0,h.T)(r.charCodeAt(e))),s++):l.push("\\"))}return l.push(b(r.slice(s,u),n.after)),l.join("")}(this,e,t)}},30485:(e,t,n)=>{"use strict";n.d(t,{Pc:()=>d,Ug:()=>u});var r=n(57259),i=n(80632);let l={bold:"bold",italic:"italic",strikeThrough:"strikethrough",subscript:"subscript",superscript:"superscript",underline:"underline"},o=Symbol.for("@lexical/dragon/WindowState");function a(e,t,n,r){if(r){let e=t.editors.get(r);e&&e.delete(n)&&0===e.size&&t.editors.delete(r)}t.installs.delete(n)&&0===t.installs.size&&(t.dispose(),delete e[o])}function s(e){return e&&e.ownerDocument.defaultView}function u(e){let t=(0,r.jX)(()=>s(e.getRootElement()),t=>e.registerRootListener(e=>{t.value=s(e)}));return(0,r.QZ)(()=>{let n=t.value;if(n)return function(e,t,n){let r,i=(void 0===(r=e[o])&&(r={dispose:()=>{},editors:new Map,installs:new Set},e[o]=r),r);if(0===i.installs.size){let t=c.bind(e);e.addEventListener("message",t,!0),i.dispose=()=>{e.removeEventListener("message",t,!0)}}if(i.installs.add(t),n){let e=i.editors.get(n)||new Set;e.add(t),i.editors.set(n,e)}return a.bind(null,e,i,t,n)}(n,Symbol("@lexical/dragon/editorInstall"),e)})}function c(e){if(e.origin!==this.location.origin)return;let t=function(e){let t=e[o];if(void 0===t)return null;let n=(0,i.lue)((0,i.v39)(e.document));return(0,i.Uqh)(n)&&t.editors.has(n)?n:null}(this);if(null===t)return;let n=e.data;if("string"==typeof n){let r;try{r=JSON.parse(n)}catch(e){return}if(r&&"nuanria_messaging"===r.protocol&&"request"===r.type){let n=r.payload;if(n&&"makeChanges"===n.functionId){let r=n.args;if(Array.isArray(r)){let[n,o,a,s,u,c]=r;if(![n,o,s,u].every(Number.isFinite)||"string"!=typeof a&&-1!==a)return;t.update(()=>{let t=(0,i.vJq)();if((0,i.I2P)(t)){let r=t.anchor,d=r.getNode(),f=0,p=0;if((0,i.kFe)(d)&&n>=0&&o>=0&&(f=n,p=n+o,t.setTextNodeRange(d,f,d,p)),"string"!=typeof a||f===p&&""===a||(t.insertRawText(a),d=r.getNode()),(0,i.kFe)(d)){let e=d.getTextContentSize();f=Math.min(Math.max(s,0),e),p=s<0||u<0?f:Math.min(s+u,e),t.setTextNodeRange(d,f,d,p)}if("string"==typeof c&&u>0&&!t.isCollapsed()){let e=l[c];void 0!==e&&t.formatText(e)}e.stopImmediatePropagation()}})}}}}}let d=(0,i.vE9)({build:(e,t,n)=>(0,r.v)(t),config:(0,i.lVE)({disabled:"undefined"==typeof window}),name:"@lexical/dragon",register:(e,t,n)=>(0,r.QZ)(()=>n.getOutput().disabled.value?void 0:u(e))})},30710:(e,t,n)=>{"use strict";n.d(t,{FA:()=>r,Ig:()=>o,J6:()=>l,S3:()=>i,Te:()=>s,jG:()=>a,o4:()=>u,sM:()=>c});let r=1,i=2,l=4,o=8,a=16,s=32,u=64,c=128}
1,33289:(e,t,n)=>{"use strict";n.d(t,{OO:()=>h,xO:()=>g});var r=n(34102),i=n(61259),l=n(80632),o=n(11919),a=n(13174),s=n(45276);let u={testLexicalNode:r.Pi,visitLexicalNode:e=>{let{lexicalNode:t,actions:n}=e,r=parseInt(t.getTag()[1],10);n.addAndStepInto("heading",{depth:r})}},c={testNode:"heading",visitNode:function(e){let{mdastNode:t,actions:n}=e;n.addAndStepInto((0,r.fi)("h".concat(t.depth)))}},d=["Digit0","Digit1","Digit2","Digit3","Digit4","Digit5","Digit6"],f=[1,2,3,4,5,6],p={Digit1:1,Digit2:2,Digit3:3,Digit4:4,Digit5:5,Digit6:6},h=(0,i.fh)(f,e=>{e.pub(s.Jl,t=>t.registerCommand(l.R18,n=>{let{code:i,ctrlKey:o,metaKey:u,altKey:c}=n;return!!(d.includes(i)&&(0,a.oQ)(u,o))&&!!c&&(n.preventDefault(),t.update(()=>{if("Digit0"===i)e.pub(s.vR,()=>(0,l.lJ7)());else{let t=e.getValue(h),n=p[i];t.includes(n)&&e.pub(s.vR,()=>(0,r.fi)("h".concat(n)))}}),!0)},l.AcJ))}),g=(0,o.Z)({init(e,t){var n;e.pubIn({[s.$0]:"headings",[s.R1]:c,[s.q]:r.jL,[s.iI]:u}),e.pub(h,null!=(n=null==t?void 0:t.allowedHeadingLevels)?n:f)},update(e,t){var n;e.pub(h,null!=(n=null==t?void 0:t.allowedHeadingLevels)?n:f)}})},34102:(e,t,n)=>{"use strict";n.d(t,{Pi:()=>E,ZI:()=>L,dJ:()=>g,fi:()=>w,jL:()=>y,jd:()=>v,xi:()=>m});var r=n(37859),i=n(57259),l=n(79299),o=n(319),a=n(80632),s=n(30485),u=n(17498);let c=(0,u.Bu)({$import:(e,t)=>{let n=w(t.nodeName.toLowerCase());return(0,a.dxY)(t,n),(0,a.Sz2)(n,t),(0,a.q3P)(n,t),[n.splice(0,0,e.$importChildren(t))]},match:u.VR.tag("h1","h2","h3","h4","h5","h6"),name:"@lexical/rich-text/heading"}),d=(0,u.Bu)({$import:(e,t)=>{let n=m();return(0,a.Sz2)(n,t),(0,a.dxY)(t,n),(0,a.q3P)(n,t),[n.splice(0,0,e.$importChildren(t))]},match:u.VR.tag("blockquote"),name:"@lexical/rich-text/blockquote"}),f=(u.VR.tag("blockquote"),[c,d,(0,u.Bu)({$import:(e,t,n)=>{let r=t.firstChild;return r&&(0,a.sby)(r)&&"SPAN"===r.nodeName&&"26pt"===r.style.fontSize?e.$importChildren(t):n()},match:u.VR.tag("p"),name:"@lexical/rich-text/google-docs-title-p"}),(0,u.Bu)({$import:(e,t,n)=>"26pt"!==t.style.fontSize?n():[w("h1").splice(0,0,e.$importChildren(t))],match:u.VR.tag("span"),name:"@lexical/rich-text/google-docs-title-span"})]),p=((s.Pc,i.Bw,i.vw,u._e,u.Zj),(0,a.guI)("DRAG_DROP_PASTE_FILE")),h=(0,a.urt)("shadowRoot",{parse:Boolean});class g extends a.fGB{static getType(){return"quote"}static clone(e){return new g(e.__key)}$config(){return this.config("quote",{extends:a.fGB,stateConfigs:[{flat:!0,stateConfig:h}]})}isShadowRoot(){return(0,a.I8X)(this,h)}setIsShadowRoot(e){return(0,a.Chh)(this,h,e)}createDOM(e){let t=(0,a.A$M)().createElement("blockquote");return(0,a.ZB7)(t,e.theme.quote),t}updateDOM(e,t){return!1}static importDOM(){return{blockquote:e=>({conversion:C,priority:0})}}exportDOM(e){let{element:t}=super.exportDOM(e);if((0,a.sby)(t)){this.isEmpty()&&t.append((0,a.A$M)().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 m().updateFromJSON(e)}exportJSON(){return super.exportJSON()}insertNewAfter(e,t){let n=(0,a.lJ7)(),r=this.getDirection();return n.setDirection(r),this.insertAfter(n,t),n}collapseAtStart(){if(this.isShadowRoot()){for(let e of this.getChildren())this.insertBefore(e);return this.remove(),!0}let e=(0,a.lJ7)();
1return this.getChildren().forEach(t=>e.append(t)),this.replace(e),!0}canMergeWhenEmpty(){return!0}}function m(e){let t=(0,a.pTq)(new g);return e&&e.shadowRoot?t.setIsShadowRoot(!0):t}function v(e){return e instanceof g}class y extends a.fGB{__tag;static getType(){return"heading"}static clone(e){return new y(e.__tag,e.__key)}afterCloneFrom(e){super.afterCloneFrom(e),this.__tag=e.__tag}constructor(e="h1",t){super(t),this.__tag=e}getTag(){return this.getLatest().__tag}setTag(e){let t=this.getWritable();return t.__tag=e,t}createDOM(e){let t=this.__tag,n=(0,a.A$M)().createElement(t),r=e.theme.heading;if(void 0!==r){let e=r[t];(0,a.ZB7)(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,a.sby)(t)){this.isEmpty()&&t.append((0,a.A$M)().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,a.lJ7)(),l=this.getDirection();if(i.setDirection(l),this.insertAfter(i,t),0===n&&!this.isEmpty()&&e){let e=(0,a.lJ7)();e.select(),this.replace(e,!0)}return i}collapseAtStart(){if(this.isEmpty()){let e=(0,a.lJ7)();
1this.getChildren().forEach(t=>e.append(t)),this.replace(e)}return!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),(0,a.dxY)(e,n),(0,a.Sz2)(n,e),(0,a.q3P)(n,e)),{node:n}}function C(e){let t=m();return(0,a.Sz2)(t,e),(0,a.dxY)(e,t),(0,a.q3P)(t,e),{node:t}}function w(e="h1"){return(0,a.pTq)(new y(e))}function E(e){return e instanceof y}function _(e){let t=(0,a.xL4)(e);return(0,a.Cyw)(t)}function S(e,t,n,r){let i=!1,l=null;if(e.isCollapsed()&&"text"===e.anchor.type){let t=e.anchor.getNode();if((0,a.kFe)(t)){l=t;let r=e.anchor.offset,o=r===t.getTextContentSize()&&null===t.getNextSibling(),a=0===r&&null===t.getPreviousSibling();i="end"===n&&o||"start"===n&&a||"both"===n&&(o||a)}}let o=!1;for(let[n,s]of Object.entries(r))if(null!=s&&s[t]){if(s.onlyAtBoundary){if(!(i&&l&&(0,a.kFe)(l)&&l.hasFormat(n)))continue;o=!0}e.hasFormat(n)&&e.toggleFormat(n)}o&&e.setStyle("")}let k={capitalize:{enter:!0,space:!0,tab:!0},lowercase:{enter:!0,space:!0,tab:!0},uppercase:{enter:!0,space:!0,tab:!0}};function T(e,t){return function(e,t){if(!e.isCollapsed())return!1;let n=(0,a.Ave)(e.focus,t),r=(0,a.BtT)(n.origin,a.TQ);if(!r)return!1;let i=e.focus.getNode();if(!r.is(i)&&!(0,a.ELr)(i,r))return!1;let l=(0,a.TJt)(n,(0,a.IlV)(r,t));if(l.getTextSlices().some(e=>e&&e.getTextContentSize()>0))return!1;let o=(0,a.TJt)(l.anchor.getSiblingCaret(),l.focus),s=o.anchor.origin;for(let e of o){if(!(0,a.OpE)(e)||!e.origin.is(s.getParent()))return!1;s=e.origin}let u=r;for(let e of(0,a.mWO)((0,a.IlV)(r,t))){if(!e.origin.is(u.getParent())){if((0,a.jj2)(e.origin)){let e=(0,a.IlV)(u,t);return(0,a.xQ8)((0,a.TJt)(e,e)),!0}break}if(!(0,a.TQ)(e.origin))break;u=e.origin}return!1}(e,t)||function(e,t){if(!e.isCollapsed()||"element"!==e.anchor.type)return!1;let n=(0,a.Ave)(e.anchor,t).getNodeAtCaret();return!(!(0,a.TQ)(n)||n.isInline()||((0,a.xQ8)((0,a.sWS)((0,a.lSZ)((0,a.uwZ)(n,t)))),0))}(e,t)}function N(e){return(0,a.Cyw)(e)&&!e.isInline()&&!e.isIsolated()&&e.isKeyboardSelectable()}function A(e){let t=(0,a.rUs)();t.add(e),(0,a.n1P)(t)}function I(e,t){if(!e.isCollapsed())return!1;let n=e.focus,r=n.getNode(),i=t?"previous":"next",l=(0,a.Ave)(n,i);if("element"===n.type&&(0,a.ff4)(r)&&((0,a.hVZ)(r)||(0,a.TQ)(r))){let e=l.getNodeAtCaret();return!(null===e||!N(e))&&(A(e.__key),!0)}let o=(0,a.BtT)((0,a.ff4)(r)?r:r.getParentOrThrow(),e=>(0,a.ff4)(e)&&!e.isInline()&&(0,a.IqF)(e.getParent()));if(null===o)return!1;let s=(0,a.IlV)(o,i).getNodeAtCaret();if(null===s||!N(s))return!1;if(0===o.getTextContentSize())return A(s.__key),!0;let u=(0,a.i0_)().getRootElement();if(null===u)return!1;let c=(0,a.peL)(u.ownerDocument.defaultView);if(null===c||0===c.rangeCount)return!1;let d=c.anchorNode,f=c.anchorOffset,p=c.focusNode,h=c.focusOffset;c.modify("move",t?"backward":"forward","line");let g=c.anchorNode,m=c.anchorOffset;if(null===g)return M(c,d,f,p,h),!1;let v=(0,a.xL4)(g);return M(c,d,f,p,h),null!==v&&(g===d&&m===f?(A(s.__key),!0):!v.is(o)&&!(0,a.ELr)(v,o)&&(A(s.__key),!0))}function M(e,t,n,r,i){null!==t&&null!==r&&e.setBaseAndExtent(t,n,r,i)}function P(e,t){if(!e.isCollapsed())return!1;let n=e.focus.getNode(),i=(0,a.BtT)((0,a.ff4)(n)?n:n.getParentOrThrow(),e=>(0,a.ff4)(e)&&!e.isInline());if(null===i)return!1;let l=(0,a.i0_)(),o=l.getRootElement();if(null===o)return!1;let s=o.ownerDocument.defaultView;if(null===s)return!1;let u=!1;for(let e of i.getChildren())if((0,a.ff4)(e)&&e.isInline()){let t=l.getElementByKey(e.getKey());if(null!==t){let e=s.getComputedStyle(t).display;if("inline-grid"===e||"inline-flex"===e){u=!0;break}}}if(!u)return!1;let c=(0,a.IlV)(i,t?"previous":"next").getNodeAtCaret();if(null===c||!(0,a.ff4)(c)){if(t){let e=i.getFirstDescendant();(0,a.kFe)(e)?e.select(0,0):i.select(0,0)}else{let e=i.getLastDescendant();if((0,a.kFe)(e)){let t=e.getTextContentSize();e.select(t,t)}else{let e=i.getChildrenSize();i.select(e,e)}}return!0}let d=l.getElementByKey(c.getKey());if(null===d)return!1;let f=(0,a.peL)(s);if(null===f||0===f.rangeCount)return!1;let p=f.getRangeAt(0).cloneRange();p.collapse(!0);let h=p.getBoundingClientRect(),g=d.getBoundingClientRect(),m=g.top+g.height/2;if(h.height>0){let t=(0,r.go)(h.left,m,o);if(null!==t&&d.contains(t.node)){let n=o.ownerDocument.createRange();return n.setStart(t.node,t.offset),n.collapse(!0),e.applyDOMRange(n),e.dirty=!0,!0}}let v=t?c.getLastDescendant():c.getFirstDescendant();if((0,a.kFe)(v)){let e=t?v.getTextContentSize():0;v.select(e,e)}else{let e=c.getChildrenSize();c.select(t?e:0,t?e:0)}return!0}function R(e,t){let n=(0,a.IlV)(e,t),r=n.getAdjacentCaret();null!==r&&(0,a.ff4)(r.origin)&&!r.origin.isInline()&&r.origin.isShadowRoot()?(0,a.xQ8)((0,a.sWS)(n)):"next"===t?e.selectNext(0,0):e.selectPrevious()}function O(e,t,n){n.preventDefault(),n.stopPropagation();let r=e.getNodes();if(0===r.length)return!0;let i=r.map(e=>(0,a.IlV)(e,"next")).sort(a.AcB),l=(t?i[0]:i[i.length-1]).origin,o=(0,a.BtT)(l,e=>e!==l&&(0,a.ff4)(e)&&!e.isInline())??(0,a.NiT)(),s=t?0:o.getChildrenSize();return o.select(s,s),!0}function L(e,t=(0,i.vP)(k)){return(0,a.Sdt)(e.registerCommand(a.d8p,()=>{let e=(0,a.vJq)();return(0,a.RTZ)(e)?(e.clear(),!0):((0,a.I2P)(e)&&S(e,"click","both",t.peek()),!1)},a.jZM),e.registerCommand(a.WuB,e=>{let t=(0,a.vJq)();return(0,a.I2P)(t)?(t.deleteCharacter(e),!0):!!(0,a.RTZ)(t)&&(t.deleteNodes(),!0)},a.jZM),e.registerCommand(a.hi0,e=>{let t=(0,a.vJq)();return!!(0,a.I2P)(t)&&(t.deleteWord(e),!0)},a.jZM),e.registerCommand(a.viC,e=>{let t=(0,a.vJq)();return!!(0,a.I2P)(t)&&(t.deleteLine(e),!0)},a.jZM),e.registerCommand(a.bM3,t=>{let n=(0,a.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,a.I2P)(n)){let e=t.data;return e&&n.insertText(e),!0}}return!0},a.jZM),e.registerCommand(a.$ey,()=>{let e=(0,a.vJq)();return!!(0,a.I2P)(e)&&(e.removeText(),!0)},a.jZM),e.registerCommand(a.mB,e=>{let t=(0,a.vJq)();return!(!(0,a.I2P)(t)&&!(0,a.RTZ)(t))&&((0,a.hVL)(t,e),!0)},a.jZM),e.registerCommand(a.hkE,e=>{let t=(0,a.vJq)();return!(!(0,a.I2P)(t)&&!(0,a.RTZ)(t))&&((0,a.Htb)(t,e),!0)},a.jZM),e.registerCommand(a.fUS,e=>{let t=(0,a.vJq)();if(!(0,a.I2P)(t)&&!(0,a.RTZ)(t))return!1;for(let n of t.getNodes()){let t=(0,a.BtT)(n,e=>(0,a.ff4)(e)&&!e.isInline());null!==t&&t.setFormat(e)}return!0},a.jZM),e.registerCommand(a.FEN,e=>{let t=(0,a.vJq)();return!!(0,a.I2P)(t)&&(t.insertLineBreak(e),!0)},a.jZM),e.registerCommand(a.XKQ,()=>{let e=(0,a.vJq)();return!!(0,a.I2P)(e)&&(e.insertParagraph(),!0)},a.jZM),e.registerCommand(a.YW5,()=>{let e=(0,a.ev7)(),t=(0,a.vJq)();return(0,a.I2P)(t)&&(e.setFormat(t.format),e.setStyle(t.style)),(0,a.H2A)([e]),!0},a.jZM),e.registerCommand(a.PiT,()=>(0,o.Jy)(e=>{let t=e.getIndent();e.setIndent(t+1)}),a.jZM),e.registerCommand(a.sik,()=>(0,o.Jy)(e=>{let t=e.getIndent();t>0&&e.setIndent(Math.max(0,t-1))}),a.jZM),e.registerCommand(a.UDz,e=>{let t=(0,a.vJq)();if((0,a.RTZ)(t)){let n=t.getNodes();if(n.length>0)return e.preventDefault(),R(n[0],"previous"),!0}else if((0,a.I2P)(t)&&(!e.shiftKey&&T(t,"previous")||!e.shiftKey&&I(t,!0)||!e.shiftKey&&P(t,!0)))return e.preventDefault(),!0;return!1},a.jZM),e.registerCommand(a.bbF,e=>{let t=(0,a.vJq)();if((0,a.RTZ)(t)){let n=t.getNodes();if(n.length>0)return e.preventDefault(),R(n[0],"next"),!0}else if((0,a.I2P)(t)&&(function(e){let t=e.focus;return"root"===t.key&&t.offset===(0,a.NiT)().getChildrenSize()}(t)||!e.shiftKey&&T(t,"next")||!e.shiftKey&&I(t,!1)||!e.shiftKey&&P(t,!1)))return e.preventDefault(),!0;return!1},a.jZM),e.registerCommand(a.AX0,e=>{let n=(0,a.vJq)();if((0,a.RTZ)(n)){let t=n.getNodes();if(t.length>0)return e.preventDefault(),R(t[0],(0,l.dt)(t[0])?"next":"previous"),!0}if(!(0,a.I2P)(n))return!1;if(!e.shiftKey&&T(n,(0,l.dt)(n.anchor.getNode())?"next":"previous"))return e.preventDefault(),!0;if(e.shiftKey||S(n,"arrow","start",t.peek()),(0,l.Cb)(n,!0)){let t=e.shiftKey;return e.preventDefault(),(0,l.Rk)(n,t,!0),!0}return!1},a.jZM),e.registerCommand(a.JM3,e=>{let n=(0,a.vJq)();if((0,a.RTZ)(n)){let t=n.getNodes();if(t.length>0)return e.preventDefault(),R(t[0],(0,l.dt)(t[0])?"previous":"next"),!0}if(!(0,a.I2P)(n))return!1;if(!e.shiftKey&&T(n,(0,l.dt)(n.anchor.getNode())?"previous":"next"))return e.preventDefault(),!0;if(e.shiftKey||S(n,"arrow","end",t.peek()),(0,l.Cb)(n,!1)){let t=e.shiftKey;return e.preventDefault(),(0,l.Rk)(n,t,!1),!0}return!1},a.jZM),e.registerCommand(a.gCZ,t=>{let n=(0,a.vJq)();if(!(0,a.RTZ)(n)&&_(t.target))return!1;if((0,a.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,a.hVZ)(n))return!1;let r=(0,o.mB)(n);return r.getIndent()>0&&(r.is(n)||n.is(r.getFirstDescendant()))}(n))return t.preventDefault(),e.dispatchCommand(a.sik,void 0);if(a.pz6&&a.aT4)return!1}else if(!(0,a.RTZ)(n))return!1;return t.preventDefault(),e.dispatchCommand(a.WuB,!0)},a.jZM),e.registerCommand(a.w$Z,t=>{let n=(0,a.vJq)();return!(!(0,a.RTZ)(n)&&_(t.target))&&!(!(0,a.I2P)(n)&&!(0,a.RTZ)(n))&&(t.preventDefault(),e.dispatchCommand(a.WuB,!1))},a.jZM),e.registerCommand(a.RTo,n=>{let r=(0,a.vJq)();if((0,a.RTZ)(r)){let e=r.getNodes();1===e.length&&(0,a.Cyw)(e[0])&&!e[0].isInline()&&(r=e[0].selectNext())}if(!(0,a.I2P)(r))return!1;if(S(r,"enter","both",t.peek()),null!==n){if((a.pz6||a.YwR||a.DzG)&&a.aT4)return!1;if(n.preventDefault(),n.shiftKey)return e.dispatchCommand(a.FEN,!1)}return e.dispatchCommand(a.XKQ,void 0)},a.jZM),e.registerCommand(a.Q$N,()=>{let t=(0,a.vJq)();return!!(0,a.I2P)(t)&&(e.blur(),!0)},a.jZM),e.registerCommand(a.Sr4,t=>{let[,n]=(0,o.gA)(t);
1if(n.length>0){let i=t.clientX,l=t.clientY,o=(0,r.go)(i,l,e.getRootElement());if(null!==o){let{offset:t,node:r}=o,i=(0,a.xL4)(r);if(null!==i){let e=(0,a.uTE)();if((0,a.kFe)(i))e.anchor.set(i.getKey(),t,"text"),e.focus.set(i.getKey(),t,"text");else{let t=i.getParentOrThrow().getKey(),n=i.getIndexWithinParent()+1;e.anchor.set(t,n,"element"),e.focus.set(t,n,"element")}let n=(0,a.CaD)(e);(0,a.n1P)(n)}e.dispatchCommand(p,n)}return t.preventDefault(),!0}return(0,r.jL)(t,e)},a.jZM),e.registerCommand(a.TgX,t=>{let[n]=(0,o.gA)(t),i=(0,a.vJq)();return!(n&&!(0,a.I2P)(i))&&((0,a.I2P)(i)&&!i.isCollapsed()&&null!==t.dataTransfer&&((0,r._R)(t.dataTransfer,(0,r.xg)(i)),(0,r.dF)(t.dataTransfer,e)),!0)},a.jZM),e.registerCommand(a.riq,t=>{let[n]=(0,o.gA)(t),i=(0,a.vJq)();if(n&&!(0,a.I2P)(i))return!1;let l=t.clientX,s=t.clientY,u=(0,r.go)(l,s,e.getRootElement());if(null!==u){let e=(0,a.xL4)(u.node);(0,a.Cyw)(e)&&t.preventDefault()}return!0},a.jZM),e.registerCommand(a.HYn,()=>{let e=(0,a.vJq)();return(0,a.e1k)((0,a.I2P)(e)&&null!==(0,a.ex6)(e.anchor.getNode())?e:null),!0},a.jZM),e.registerCommand(a.u5G,t=>((0,r.lW)(e,(0,o.xj)(t,ClipboardEvent)?t:null),!0),a.jZM),e.registerCommand(a.VSO,t=>((async function(e,t){await (0,r.lW)(t,(0,o.xj)(e,ClipboardEvent)?e:null),t.update(()=>{let e=(0,a.vJq)();(0,a.I2P)(e)?e.removeText():(0,a.RTZ)(e)&&e.getNodes().forEach(e=>e.remove())},{tag:a.Ap3})})(t,e),!0),a.jZM),e.registerCommand(a.waI,t=>{let[,n,i]=(0,o.gA)(t);return n.length>0&&!i?(e.dispatchCommand(p,n),!0):!((0,a.vAA)(t.target)&&(0,a.Pl0)(t.target))&&null!==(0,a.vJq)()&&(t.preventDefault(),e.update(()=>{let n=(0,a.vJq)(),i=(0,o.xj)(t,InputEvent)||(0,o.xj)(t,KeyboardEvent)?null:t.clipboardData;null!=i&&null!==n&&(0,r.Bi)(i,n,e)},{tag:a.fwY}),!0)},a.jZM),e.registerCommand(a.Huu,()=>{let e=(0,a.vJq)();return(0,a.I2P)(e)&&S(e,"space","both",t.peek()),!1},a.jZM),e.registerCommand(a.OXk,()=>{let e=(0,a.vJq)();return(0,a.I2P)(e)&&S(e,"tab","both",t.peek()),!1},a.jZM),e.registerCommand(a.A6j,e=>{let t=(0,a.vJq)();if((0,a.RTZ)(t))return O(t,!1,e);if(!(0,a.I2P)(t))return!1;let{anchor:n}=t;if("element"!==n.type||0!==n.offset)return!1;let r=n.getNode();if(!(0,a.ff4)(r))return!1;let i=r.getFirstChild();if(!(0,a.Cyw)(i)||!i.isInline())return!1;let l=r.getKey(),o=r.selectEnd();return e.shiftKey&&o.anchor.set(l,0,"element"),e.preventDefault(),e.stopPropagation(),!0},a.jZM),e.registerCommand(a.RpX,e=>{let t=(0,a.vJq)();if((0,a.RTZ)(t))return O(t,!0,e);if(!(0,a.I2P)(t))return!1;let{anchor:n,focus:r}=t,i=(0,a.BtT)(r.getNode(),e=>(0,a.ff4)(e)&&!e.isInline());if(null===i)return!1;let l=i.getFirstChild();if(!(0,a.Cyw)(l)||!l.isInline()||(0,a.BtT)(n.getNode(),e=>(0,a.ff4)(e)&&!e.isInline())!==i)return!1;let o=i.getKey();return("element"!==r.type||r.key!==o||0!==r.offset)&&(t.focus.set(o,0,"element"),e.shiftKey||t.anchor.set(o,0,"element"),e.preventDefault(),e.stopPropagation(),!0)},a.jZM))}},34134:(e,t,n)=>{"use strict";n.d(t,{PL:()=>f,fS:()=>c});var r=n(57259),i=n(44997),l=n(80632),o=n(12115);function a(e,t){return e.read("latest",()=>{let e=(0,l.nsf)(t);return null!==e&&e.isSelected()})}var s=n(95155);function u({nodeKey:e}){let[t]=(0,i.DF)(),[n,r,s]=function(e){let[t]=(0,i.DF)(),[n,r]=(0,o.useState)(()=>a(t,e));return(0,o.useEffect)(()=>{let n=!0,i=t.registerUpdateListener(()=>{n&&r(a(t,e))});return()=>{n=!1,i()}},[t,e]),[n,(0,o.useCallback)(n=>{t.update(()=>{let t=(0,l.vJq)();(0,l.RTZ)(t)||(t=(0,l.rUs)(),(0,l.n1P)(t)),(0,l.RTZ)(t)&&(n?t.add(e):t.delete(e))})},[t,e]),(0,o.useCallback)(()=>{t.update(()=>{let e=(0,l.vJq)();(0,l.RTZ)(e)&&e.clear()})},[t])]}(e);return(0,o.useEffect)(()=>(0,l.Sdt)(t.registerCommand(l.d8p,i=>{let o=t.getElementByKey(e);return(0,l.WmC)(i)===o&&(i.shiftKey||s(),r(!n),!0)},l.AcJ)),[s,t,n,e,r]),(0,o.useEffect)(()=>{let r=t.getElementByKey(e),i=t._config.theme.hrSelected??"selected";null!==r&&(n?(0,l.ZB7)(r,i):(0,l.HEf)(r,i))},[t,n,e]),null}class c extends r.fS{static getType(){return"horizontalrule"}static clone(e){return new c(e.__key)}static importJSON(e){return f().updateFromJSON(e)}static importDOM(){return{hr:()=>({conversion:d,priority:0})}}decorate(){return(0,s.jsx)(u,{nodeKey:this.__key})}}function d(){return{node:f()}}function f(){return(0,l.pTq)(new c)}},37796:(e,t,n)=>{"use strict";n.d(t,{d:()=>s});var r=n(12115),i=n(87797),l=n(76669),o=n(61259),a=n(45276);let s=()=>{let e=(0,o.qM)(l.NN),t=(0,o.X3)(a.yr),n=(0,a.Bd)();return r.createElement(i.gx,{"aria-label":n("toolbar.link","Create link"),title:n("toolbar.link","Create link"),onPointerDown:e=>{e.preventDefault()},onClick:t=>{e()}},t("link"))}},37859:(e,t,n)=>{"use strict";n.d(t,{Bi:()=>y,_R:()=>I,dF:()=>x,g$:()=>_,gh:()=>E,go:()=>s,jL:()=>C,lW:()=>k,xg:()=>A});var r=n(80632),i=n(57259),l=n(17498),o=n(79299),a=n(319);function s(e,t,n=null){let i=(0,r.nAs)(n),l=n?(0,r.IWk)(n):[],o=null!==n&&l.length>0;if(o&&"function"==typeof i.caretPositionFromPoint){let o=i.caretPositionFromPoint(e,t,{shadowRoots:l});if(null!==o&&function(e,t){for(let n=e;null!==n;){if(n===t)return!0;n=(0,r.dCx)(n)}return!1}(o.offsetNode,n))return{node:o.offsetNode,offset:o.offset}}if(o){let l=n.getRootNode();if((0,r.R3g)(l)){let r=l.elementFromPoint(e,t);if(null!==r&&n.contains(r)){let n=function(e,t,n,r){let i=r.createRange(),l=e=>t<e.top?e.top-t:t>e.bottom?t-e.bottom:0,o=t=>e<t.left?t.left-e:e>t.right?e-t.right:0,a=r.createTreeWalker(n,NodeFilter.SHOW_TEXT),s=null,u=1/0,c=1/0;for(let e=a.nextNode();e;e=a.nextNode())for(let t of(i.selectNodeContents(e),i.getClientRects())){let n=l(t),r=o(t);(n<u||n===u&&r<c)&&(u=n,c=r,s=e)}if(null===s)return null;let d=0,f=1/0,p=1/0;for(let t=0;t<=s.length;t++){i.setStart(s,t),i.collapse(!0);let n=i.getBoundingClientRect(),r=l(n),o=Math.abs(e-n.left);(r<f||r===f&&o<p)&&(f=r,p=o,d=t)}return{node:s,offset:d}}(e,t,r,i);if(null!==n)return n}}}if("function"==typeof i.caretRangeFromPoint){let n=i.caretRangeFromPoint(e,t);return null===n?null:{node:n.startContainer,offset:n.startOffset}}if("function"==typeof i.caretPositionFromPoint){let n=i.caretPositionFromPoint(e,t);return null===n?null:{node:n.offsetNode,offset:n.offset}}return null}function u(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 c={"application/x-lexical-editor":0,"text/html":10,"text/plain":20,"text/uri-l
1ist":30},d=(e,t)=>{if(!(0,r.I2P)(t))return t.insertRawText(e),!0;let n=e=>{let t=(0,r.vJq)();(0,r.I2P)(t)&&e(t)};return(0,r.NEy)(e,{linebreak:()=>n(e=>e.insertParagraph()),tab:()=>n(e=>e.insertNodes([(0,r.ev7)()])),text:e=>n(t=>t.insertText(e))}),!0},f={"application/x-lexical-editor":[(e,t,n)=>{try{let n=(0,r.i0_)(),i=JSON.parse(e);if(i&&i.namespace===n._config.namespace&&Array.isArray(i.nodes))return w(n,_(i.nodes),t),!0}catch(e){console.error(e)}return n()}],"text/html":[(e,t,n)=>{try{let n=(0,r.i0_)(),i=(new DOMParser).parseFromString(function(e){return window.trustedTypes&&window.trustedTypes.createPolicy?window.trustedTypes.createPolicy("lexical",{createHTML:e=>e}).createHTML(e):e}(e),"text/html");return w(n,(0,l.dh)(n,i),t),!0}catch(e){return console.error(e),n()}}],"text/plain":[d],"text/uri-list":[d]};function p(e,t,n){let r=t.getData("text/plain");for(let i of Object.keys(e.$importMimeType).filter(t=>void 0!==e.$importMimeType[t]).sort((t,n)=>{let r=e.priority[t],i=e.priority[n];return void 0===r&&void 0===i?t<n?-1:+(t>n):void 0===r?1:void 0===i?-1:r-i})){let l=t.getData(i);if(l&&("text/html"!==i||l!==r)&&function(e,t,n,r){if(!e)return!1;let i=l=>!!e[l]&&e[l](t,n,i.bind(null,l-1),r);return i(e.length-1)}(e.$importMimeType[i],l,n,t))return!0}return!1}let h={$importMimeType:f,$insertDataTransfer:(e,t)=>p({$importMimeType:f,priority:c},e,t),priority:c},g=(0,r.vE9)({build:(e,t)=>({$importMimeType:t.$importMimeType,$insertDataTransfer:(e,n)=>p(t,e,n),priority:t.priority}),config:(0,r.lVE)({$importMimeType:f,priority:c}),mergeConfig(e,t){let n=(0,r.Tc1)(e,t);if(t.$importMimeType){let r={...e.$importMimeType};for(let[e,n]of Object.entries(t.$importMimeType))if(n){let t=r[e];r[e]=t?[...t,...n]:n}n.$importMimeType=r}return t.priority&&(n.priority={...e.priority,...t.priority}),n},name:"@lexical/clipboard/Import"});function m(e,t=(0,r.vJq)()){return null==t&&u(166),(0,r.I2P)(t)&&t.isCollapsed()||0===t.getNodes().length?"":(0,l.g2)(e,t)}function v(e,t=(0,r.vJq)()){return null==t&&u(166),(0,r.I2P)(t)&&t.isCollapsed()||0===t.getNodes().length?null:JSON.stringify(E(e,t))}function y(e,t,n){(function(){let e=(0,i.cP)(g.name);return e?e.output:h})().$insertDataTransfer(e,t)}l._e;let b="application/x-lexical-drag";function x(e,t){let n={editorKey:t.getKey()};e.setData(b,JSON.stringify(n))}function C(e,t){return function(e,t,n){let i=e.dataTransfer;if(null===i)return!1;let l=function(e){var t;let n,r=e.getData(b);if(!r)return null;try{n=JSON.parse(r)}catch(e){return null}return null!==(t=n)&&"object"==typeof t&&"editorKey"in t&&"string"==typeof t.editorKey?n:null}(i);if(null===l)return!1;let o=function(e,t){let n=s(e.clientX,e.clientY,t.getRootElement());if(null===n)return null;let i=(0,r.xL4)(n.node);if(null===i)return null;if((0,r.kFe)(i))return(0,r.T8n)(i,"next",n.offset);if((0,r.ff4)(i))return(0,r.hdR)(i,n.offset,"next");let l=i.getParent();return null===l?null:(0,r.hdR)(l,i.getIndexWithinParent()+1,"next")}(e,t);if(null===o)return!1;let a=(0,r.k1Q)(o);if(null===a)return!1;let u=l.editorKey===t.getKey(),c=(0,r.vJq)();if(u){if(!(0,r.I2P)(c)||c.isCollapsed())return!1;if(function(e,t){let{anchor:n,focus:i}=(0,r.NZv)((0,r.$iu)(t),"next");return 0>(0,r.AcB)(n,e)&&0>(0,r.AcB)(e,i)}(o,c))return e.preventDefault(),!0;c.removeText()}if(!a.origin.isAttached())return e.preventDefault(),!0;if(n(i,(0,r.xQ8)((0,r.sWS)(a)),t),!u){let e=t.getRootElement(),n=e?e.ownerDocument:null,i=n?function(e,t){for(let n of(0,r.CMH)(t)){let t=(0,r.lue)(n);if((0,r.Uqh)(t)&&t.getKey()===e&&(0,r.sby)(n))return n}return null}(l.editorKey,n):null;null!==i&&i.dispatchEvent(new InputEvent("beforeinput",{bubbles:!0,cancelable:!0,inputType:"deleteByDrag"}))}return e.preventDefault(),!0}(e,t,y)}function w(e,t,n){e.dispatchCommand(r.oqR,{nodes:t,selection:n})||(n.insertNodes(t),function(e){if((0,r.I2P)(e)&&e.isCollapsed()){let t=e.anchor,n=null,i=(0,r.Ave)(t,"previous");if(i)if((0,r.rN)(i))n=i.origin;else for(let e of(0,r.TJt)(i,(0,r.uwZ)((0,r.NiT)(),"next").getFlipped())){if((0,r.kFe)(e.origin)){n=e.origin;break}if((0,r.ff4)(e.origin)&&!e.origin.isInline())break}if(n&&(0,r.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))}function E(e,t){let n=[],i=(0,r.NiT)(),l=(0,r.I2P)(t)?t.anchor.getNode():(0,r.RTZ)(t)?t.getNodes()[0]??null:null,a=null!==l?(0,r.ex6)(l):null,s=((0,r.ff4)(a)?a:i).getChildren();for(let i=0;i<s.length;i++)!function e(t,n,i,l=[]){let a=null===n||i.isSelected(n),s=(0,r.ff4)(i)&&i.excludeFromCopy("html"),c=i;null!==n&&(0,r.kFe)(c)&&(c=(0,o.SD)(n,c,"clone"));let d=(0,r.ff4)(c)?c.getChildren():[],f=function(e){let t=e.exportJSON(),n=e.constructor;return t.type!==n.getType()&&u(58,n.name),(0,r.ff4)(e)&&(Array.isArray(t.children)||u(59,n.name)),t}(c);(0,r.kFe)(c)&&0===c.getTextContentSize()&&(a=!1);let p=a&&(0,r.RTZ)(n)&&(0,r.ff4)(i)?null:n;for(let l=0;l<d.length;l++){let o=d[l],s=e(t,p,o,f.children);!a&&(0,r.ff4)(i)&&s&&i.extractWithChild(o,n,"clone")&&(a=!0)}if(a&&!s){let n=(0,r.vU2)(c);if(n.length>0){let i={};for(let l of n){let n=(0,r.DTJ)(c,l);null===n&&u(366,c.constructor.name,l);let o=[];e(t,null,n,o),1===o.length&&o[0].type===n.getType()||u(385,l,c.constructor.name,String(o.length),String(o.length>0?o[0].type:"none")),i[l]=o[0]}f.$slots=i}}
1if(a&&!s)l.push(f);else if(Array.isArray(f.children))for(let e=0;e<f.children.length;e++){let t=f.children[e];l.push(t)}return a}(e,t,s[i],n);return{namespace:e._config.namespace,nodes:n}}function _(e){let t=[];for(let n of e)t.push((0,r.GMe)(n));return t}let S=null;async function k(e,t,n){if(null!==S)return!1;if(null!==t)return new Promise((r,i)=>{e.update(()=>{r(T(e,t,n))})});let i=e.getRootElement(),l=e._window||window,o=l.document,s=(0,r.peL)(l);if(null===i||null===s)return!1;let u=o.createElement("span");u.style.position="fixed",u.style.top="-1000px",u.append(o.createTextNode("#")),i.append(u);let c=o.createRange();return c.setStart(u,0),c.setEnd(u,1),s.removeAllRanges(),s.addRange(c),new Promise((t,i)=>{let s=e.registerCommand(r.u5G,r=>((0,a.xj)(r,ClipboardEvent)&&(s(),null!==S&&(l.clearTimeout(S),S=null),t(T(e,r,n))),!0),r.da8);S=l.setTimeout(()=>{s(),S=null,t(!1)},50),o.execCommand("copy"),u.remove()})}function T(e,t,n){if(void 0===n){let t=(0,r.peL)(e._window),i=(0,r.vJq)();if(!i||i.isCollapsed()||!t)return!1;let l=(0,r.Mgk)(t,e.getRootElement()),o=l.anchorNode,a=l.focusNode;if(null!==o&&null!==a&&!(0,r.LYZ)(e,o,a))return!1;n=A(i)}t.preventDefault();let i=t.clipboardData;return null!==i&&(I(i,n),!0)}let N=[["text/html",m],["application/x-lexical-editor",v]];function A(e=(0,r.vJq)()){var t=function(e=(0,r.i0_)()){let t=(0,i.xT)(e,P.name);return t?t.output:M}();let n={"text/plain":""};for(let[r,i]of Object.entries(t))if(i){let t=function(e,t){let n=r=>e[r]?e[r](t,n.bind(null,r-1)):null;return n(e.length-1)}(i,e);null!==t&&(n[r]=t)}return n}function I(e,t){for(let[n]of N)void 0===t[n]&&e.setData(n,"");for(let n in t){let r=t[n];void 0!==r&&e.setData(n,r)}}let M={"application/x-lexical-editor":[(e,t)=>e?v((0,r.i0_)(),e):t()],"text/html":[(e,t)=>e?m((0,r.i0_)(),e):t()],"text/plain":[(e,t)=>e?e.getTextContent():t()]},P=(0,r.vE9)({build:(e,t,n)=>t.$exportMimeType,config:(0,r.lVE)({$exportMimeType:M}),mergeConfig(e,t){let n=(0,r.Tc1)(e,t);if(t.$exportMimeType){let r={...e.$exportMimeType};for(let[e,n]of Object.entries(t.$exportMimeType))if(n){let t=r[e];r[e]=t?[...t,...n]:n}n.$exportMimeType=r}return n},name:"@lexical/clipboard/GetClipboardData"})},38195:(e,t,n)=>{"use strict";n.d(t,{F:()=>l,R:()=>i});let r=new WeakMap;function i(e,t){let n=r.get(e);return n||(n=new Set,r.set(e,n)),n.add(t),()=>{n.delete(t)}}function l(e){let t,n=r.get(e);if(r.delete(e),!n)return;let i=!1;for(let e of[...n].reverse())try{e()}catch(e){i||(i=!0,t=e)}if(i)throw t instanceof Error?t:Error("Realm cleanup failed with a non-Error value")}},38993:(e,t,n)=>{"use strict";n.d(t,{OL:()=>a,UT:()=>d,eo:()=>f,kI:()=>p});var r=n(80632),i=n(37859),l=n(79299),o=n(61536);function a(e){try{let t=e.anchor,n=e.focus,r=e.anchor.getNode(),i=e.focus.getNode();if(r===i)return r;if(e.isBackward())return(0,l.Nx)(n)?r:i;return(0,l.Nx)(t)?r:i}catch(e){return null}}let s=["transform","perspective","filter","backdrop-filter","contain","container-type"],u=["layout","paint","strict","content"];function c(e,t){let n=function(e){let t=null==e?void 0:e.parentElement;for(;t;){let e=window.getComputedStyle(t),n=e.willChange.split(",").map(e=>e.trim()).some(e=>s.includes(e));if("none"!==e.transform||"none"!==e.perspective||"none"!==e.filter||"none"!==e.backdropFilter||u.includes(e.contain)||"normal"!==e.containerType||"auto"===e.contentVisibility||n)return t;t=t.parentElement}return null}(t);if(n){let t=n.getBoundingClientRect();return{top:Math.round(e.top-t.top),left:Math.round(e.left-t.left),width:Math.round(e.width),height:Math.round(e.height)}}return{top:Math.round(e.top),left:Math.round(e.left),width:Math.round(e.width),height:Math.round(e.height)}}function d(e,t){let n=e.getRootElement(),r=e.getElementByKey(t);return null===n||null===r?null:c(r.getBoundingClientRect(),n)}function f(e){let t=(0,r.vJq)(),n=window.getSelection(),i=document.activeElement,l=e.getRootElement();if(null!==t&&null!==n&&null!==l&&l.contains(n.anchorNode)&&e.isEditable()){let e,t=n.getRangeAt(0);if(n.isCollapsed){let t=n.anchorNode;(null==t?void 0:t.nodeType)==3&&(t=t.parentNode),(e=t.getBoundingClientRect()).width=0}else if(n.anchorNode===l){let t=l;for(;null!=t.firstElementChild;)t=t.firstElementChild;e=t.getBoundingClientRect()}else e=t.getBoundingClientRect();return c(e,l)}return null==i||i.className,null}function p(e,t){let n=null,l=[],a="";e.getEditorState().read(()=>{let t=(0,r.vJq)();!(!t||(0,r.I2P)(t)&&t.isCollapsed())&&0!==t.getNodes().length&&(l=(0,i.gh)(e,t).nodes).length>0&&(n=(0,r.ieJ)())},{editor:e});let s=n;if(!s||0===l.length)return"";let u={error:void 0,failed:!1};if(s.update(()=>{try{let e=(0,r.NiT)(),n=(0,i.g$)(l),s=(0,r.lJ7)(),u=()=>{s.isEmpty()||(e.append(s),s=(0,r.lJ7)())};for(let t of n)t.isInline()?s.append(t):(u(),e.append(t));u(),a=(0,o.i)({root:e,...t})}catch(e){u.failed=!0,u.error=e}},{discrete:!0,skipTransforms:!0}),u.failed)throw u.error;return a.replace(/\n+$/u,"")}}
1,41029:(e,t,n)=>{"use strict";n.d(t,{$:()=>b});var r=n(44997),i=n(12115),l=n(80632);let o=l.qxK?i.useLayoutEffect:i.useEffect;function a(e){return{initialValueFn:()=>e.isEditable(),subscribe:t=>e.registerEditableListener(t)}}var s=n(57259),u=n(96803),c=n(47650),d=n(95155),f=n(62313),p=n(30485),h=n(34102);let g=l.qxK?i.useLayoutEffect:i.useEffect;function m({editor:e,ErrorBoundary:t}){let[n,r]=(0,i.useState)(()=>e.getDecorators());return g(()=>e.registerDecoratorListener(e=>{(0,c.flushSync)(()=>{r(e)})}),[e]),(0,i.useEffect)(()=>{r(e.getDecorators())},[e]),(0,i.useMemo)(()=>{let r=[],l=Object.keys(n);for(let o=0;o<l.length;o++){let a=l[o],s=(0,d.jsx)(t,{onError:t=>e._onError(t),children:(0,d.jsx)(i.Suspense,{fallback:null,children:n[a]})}),u=e.getElementByKey(a);null!==u&&r.push((0,c.createPortal)(s,u,a))}return r},[t,n,e])}function v({editor:e,ErrorBoundary:t}){return!function(e){let t=s.iZ.maybeFromEditor(e);if(t&&t.hasExtensionByName(u.m.name)){for(let e of["@lexical/plain-text","@lexical/rich-text"])t.hasExtensionByName(e)&&function(e,...t){let n=new URL("https://lexical.dev/docs/error"),r=new URLSearchParams;for(let e of(r.append("code",320),t))r.append("v",e);throw n.search=r.toString(),Error(`Minified Lexical error #${320}; visit ${n.toString()} for the full message or use the non-minified dev environment for full errors and additional helpful warnings.`)}(320,e);return!0}return!1}(e)?(0,d.jsx)(m,{editor:e,ErrorBoundary:t}):null}function y(e){return e.read("latest",(0,f.yl)(e.isComposing()))}function b({contentEditable:e,placeholder:t=null,ErrorBoundary:n}){var i;let[o]=(0,r.DF)();return g(()=>(0,l.Sdt)((0,h.ZI)(i),(0,p.Ug)(i)),[i=o]),(0,d.jsxs)(d.Fragment,{children:[e,(0,d.jsx)(x,{content:t}),(0,d.jsx)(v,{editor:o,ErrorBoundary:n})]})}function x({content:e}){let[t]=(0,r.DF)(),n=function(e){let[t,n]=(0,i.useState)(()=>y(e));return g(()=>{function t(){n(y(e))}return t(),(0,l.Sdt)(e.registerUpdateListener(()=>{t()}),e.registerEditableListener(()=>{t()}))},[e]),t}(t),s=function(){let[e]=(0,r.DF)(),t=(0,i.useMemo)(()=>a(e),[e,a]),[n,l]=(0,i.useState)(()=>t.initialValueFn()),s=(0,i.useRef)(n);return o(()=>{let{initialValueFn:e,subscribe:n}=t,r=e();return s.current!==r&&(s.current=r,l(r)),n(e=>{s.current=e,l(e)})},[t,a]),n}();return n?"function"==typeof e?e(s):e:null}},42019:(e,t,n)=>{"use strict";n.d(t,{We:()=>a,ht:()=>o,jd:()=>s});var r=n(57259),i=n(80632);function l(e,t){e.undoStack=[],e.redoStack=[],e.current=null,t&&t(e)}function o(){return{current:null,redoStack:[],undoStack:[]}}let a=(0,i.vE9)({build:(e,{delay:t,createInitialHistoryState:n,disabled:i,maxDepth:l,now:o},a)=>({...(0,r.v)({delay:t,disabled:i,historyState:n(e),maxDepth:l,now:o}),...a.getInitResult()}),config:(0,i.lVE)({createInitialHistoryState:o,delay:300,disabled:"undefined"==typeof window,maxDepth:null,now:Date.now}),init:()=>({canRedo:(0,r.vP)(!1),canUndo:(0,r.vP)(!1)}),name:"@lexical/history/History",register:(e,t,n)=>{let{canUndo:o,canRedo:a}=n.getInitResult(),s=n.getOutput(),u=e=>(0,r.vA)(()=>{o.value=null!=e&&e.undoStack.length>0,a.value=null!=e&&e.redoStack.length>0});return(0,r.QZ)(()=>{if(!s.disabled.value)return function(e,t,n,r=Date.now,o,a=null){let s,u,c,d,f,p=(s=r(),u=0,c=s,d=0,f=null,(t,l,o,a,p,h)=>{let g=r();if(h.has(i.xKE)&&(c=s,d=u,f=t),h.has(i.n0X))return u=0,s=g,2;h.has(i.sne)&&f&&(s=c,u=d,t=f);let m=h.has(i.fwY)||h.has(i.Ap3)?0:function(e,t,n,r,l){if(null===e||0===n.size&&0===r.size&&!l)return 0;let o=t._selection,a=e._selection;if(l)return 1;if(!((0,i.I2P)(o)&&(0,i.I2P)(a)&&a.isCollapsed()&&o.isCollapsed()))return 0;let s=function(e,t,n){let r=e._nodeMap,l=[];for(let e of t){let t=r.get(e);void 0!==t&&l.push(t)}for(let[e,t]of n){if(!t)continue;let n=r.get(e);void 0===n||(0,i.hVZ)(n)||l.push(n)}return l}(t,n,r);if(0===s.length)return 0;if(s.length>1){let n=t._nodeMap,r=n.get(o.anchor.key),l=n.get(a.anchor.key);return r&&l&&!e._nodeMap.has(r.__key)&&(0,i.kFe)(r)&&1===r.__text.length&&1===o.anchor.offset?2:0}let u=s[0],c=e._nodeMap.get(u.__key);if(!(0,i.kFe)(c)||!(0,i.kFe)(u)||c.__mode!==u.__mode)return 0;let d=c.__text,f=u.__text;if(d===f)return 0;let p=o.anchor,h=a.anchor;if(p.key!==h.key||"text"!==p.type)return 0;let g=p.offset,m=h.offset,v=f.length-d.length;return 1===v&&m===g-1?2:-1===v&&m===g+1?3:4*(-1===v&&m===g)}(t,l,a,p,e.isComposing()),v=(()=>{let r=null===o||o.editor===e,c=h.has(i.bMH);if(!c&&r&&h.has(i.T40))return 0;if(1===m)return 2;if(null===t)return 1;let d=l._selection;if(!(a.size>0||p.size>0))return 2*(null===d);let f="number"==typeof n?n:n.peek();return!1===c&&0!==m&&m===u&&g<s+f&&r||1===a.size&&function(e,t,n){let r=t._nodeMap.get(e),l=n._nodeMap.get(e),o=t._selection,a=n._selection;return!((0,i.I2P)(o)&&(0,i.I2P)(a)&&"element"===o.anchor.type&&"element"===o.focus.type&&"text"===a.anchor.type&&"text"===a.focus.type||!(0,i.kFe)(r)||!(0,i.kFe)(l)||r.__parent!==l.__parent)&&JSON.stringify(t.read(()=>r.exportJSON()))===JSON.stringify(n.read(()=>l.exportJSON()))}(Array.from(a)[0],t,l)?0:1})();return s=g,u=m,v}),h=()=>{o&&o(t)};return h(),(0,i.Sdt)(e.registerCommand(i.ZKf,()=>((function(e,t,n){let r=t.redoStack,l=t.undoStack;if(0!==l.length){let o=t.current,a=l.pop();null!==o&&(r.push(o),e.dispatchCommand(i.WWb,!0)),0===l.length&&e.dispatchCommand(i.KfJ,!1),t.current=a||null,n&&n(t),a&&a.editor.setEditorState(a.editorState,{tag:i.n0X})}})(e,t,o),!0),i.jZM),e.registerCommand(i.V30,()=>((function(e,t,n){let r=t.redoStack,l=t.undoStack;if(0!==r.length){let o=t.current;null!==o&&(l.push(o),e.dispatchCommand(i.KfJ,!0));let a=r.pop();0===r.length&&e.dispatchCommand(i.WWb,!1),t.current=a||null,n&&n(t),a&&a.editor.setEditorState(a.editorState,{tag:i.n0X})}})(e,t,o),!0),i.jZM),e.registerCommand(i.SKc,()=>(l(t,o),!1),i.jZM),e.registerCommand(i.t5V,()=>(l(t,o),e.dispatchCommand(i.WWb,!1),e.dispatchCommand(i.KfJ,!1),!0),i.jZM),e.registerUpdateListener(({editorState:n,prevEditorState:r,dirtyLeaves:l,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=p(r,n,u,l,o,s);if(1===g){if(0!==c.length&&(t.redoStack=[],e.dispatchCommand(i.WWb,!1)),null!==u){d.push({...u});let t="number"==typeof a||null===a?a:a.peek();null!==t&&d.length>t&&d.splice(0,d.length-t),e.dispatchCommand(i.KfJ,!0)}}else if(2===g)return;t.current={editor:e,editorState:n},h()}))}(e,s.historyState.value,s.delay,()=>s.now.peek()(),u,s.maxDepth);u(null)})}}),s=(0,i.vE9)({build:(e,{disabled:t,parentEditor:n})=>(0,r.v)({disabled:t,parentEditor:n||e._parentEditor}),config:(0,i.lVE)({disabled:!1,parentEditor:null}),dependencies:[(0,i.O0w)(a,{disabled:!0})],name:"@lexical/history/SharedHistory",register:(e,t,n)=>(0,r.QZ)(()=>{let{disabled:e,parentEditor:t}=n.getOutput();if(!e.value){let{output:e}=n.getDependency(a),i=function(e){return e?(0,r.xT)(e,a.name):null}(t.value);if(!i)return;let l=i.output;(0,r.vA)(()=>{e.delay.value=l.delay.value,e.historyState.value=l.historyState.value,e.now.value=l.now.value,e.disabled.value=l.disabled.value})}})})},43066:(e,t,n)=>{"use strict";n.d(t,{p:()=>c});var r=n(45276),i=n(61259),l=n(12115),o=n(30710),a=n(87797),s=n(74898);let u=e=>{let{format:t,addTitle:n,removeTitle:o,icon:s,formatName:u}=e,[c,d]=(0,i.uX)(r.PI,r.yr),f=(0,i.qM)(r.C_),p=(c&t)!=0;return l.createElement(a.hf,{title:p?o:n,on:p,onValueChange:()=>{f(u)}},d(s))},c=e=>{let{options:t}=e,n=(0,r.Bd)(),i=void 0===t;return l.createElement("div",{className:s.Ay.toolbarGroupOfGroups},i||t.includes("Bold")?l.createElement(u,{format:o.FA,addTitle:n("toolbar.bold","Bold"),removeTitle:n("toolbar.removeBold","Remove bold"),icon:"format_bold",formatName:"bold"}):null,i||t.includes("Italic")?l.createElement(u,{format:o.S3,addTitle:n("toolbar.italic","Italic"),removeTitle:n("toolbar.removeItalic","Remove italic"),icon:"format_italic",formatName:"italic"}):null,i||t.includes("Underline")?l.createElement(u,{format:o.Ig,addTitle:n("toolbar.underline","Underline"),removeTitle:n("toolbar.removeUnderline","Remove underline"),icon:"format_underlined",formatName:"underline"}):null)}},43909:(e,t,n)=>{"use strict";n.d(t,{R:()=>_});var r=n(61259),i=n(12115),l=n(45276),o=n(11919),a=n(93502),s=n(3805),u=n(956),c=n(41029),d=n(85203);let f={undo:i.createElement("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},i.createElement("path",{d:"M7.202 18.5V17H14.3788C15.4224 17 16.3205 16.6554 17.073 15.9663C17.8257 15.2773 18.202 14.4263 18.202 13.4135C18.202 12.4007 17.8257 11.5512 17.073 10.8652C16.3205 10.1794 15.4224 9.8365 14.3788 9.8365H7.35775L10.1402 12.6193L9.0865 13.673L4.5 9.0865L9.0865 4.5L10.1402 5.55375L7.35775 8.3365H14.3788C15.8416 8.3365 17.0945 8.82467 18.1375 9.801C19.1805 10.7773 19.702 11.9815 19.702 13.4135C19.702 14.8455 19.1805 16.0513 18.1375 17.0308C17.0945 18.0103 15.8416 18.5 14.3788 18.5H7.202Z",fill:"currentColor"})),redo:i.createElement("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},i.createElement("path",{d:"M9.6211 18.5C8.15827 18.5 6.90535 18.0103 5.86235 17.0308C4.81935 16.0513 4.29785 14.8455 4.29785 13.4135C4.29785 11.9815 4.81935 10.7773 5.86235 9.801C6.90535 8.82467 8.15827 8.3365 9.6211 8.3365H16.6421L13.8596 5.55375L14.9134 4.5L19.4999 9.0865L14.9134 13.673L13.8596 12.6193L16.6421 9.8365H9.6211C8.57744 9.8365 7.67935 10.1794 6.92685 10.8652C6.17418 11.5512 5.79785 12.4007 5.79785 13.4135C5.79785 14.4263 6.17418 15.2773 6.92685 15.9663C7.67935 16.6554 8.57744 17 9.6211 17H16.7979V18.5H9.6211Z",fill:"currentColor"})),format_bold:i.createElement("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},i.createElement("path",{d:"M7.33838 18.625V5.375H12.1999C13.219 5.375 14.1405 5.69233 14.9644 6.327C15.788 6.9615 16.1999 7.816 16.1999 8.8905C16.1999 9.63783 16.0194 10.2471 15.6584 10.7182C15.2975 11.1894 14.9088 11.5314 14.4921 11.7442C15.005 11.9211 15.4947 12.2708 15.9614 12.7933C16.428 13.3
1158 16.6614 14.0193 16.6614 14.9038C16.6614 16.1819 16.1902 17.1217 15.2479 17.723C14.3055 18.3243 13.3562 18.625 12.3999 18.625H7.33838ZM9.48838 16.6328H12.3191C13.1063 16.6328 13.6627 16.4142 13.9884 15.977C14.314 15.5398 14.4769 15.1206 14.4769 14.7192C14.4769 14.3179 14.314 13.8987 13.9884 13.4615C13.6627 13.0243 13.0909 12.8058 12.2729 12.8058H9.48838V16.6328ZM9.48838 10.875H12.0826C12.6903 10.875 13.172 10.7013 13.5279 10.3538C13.8835 10.0064 14.0614 9.59042 14.0614 9.10575C14.0614 8.59042 13.8733 8.16925 13.4971 7.84225C13.1208 7.51542 12.6595 7.352 12.1134 7.352H9.48838V10.875Z",fill:"currentColor"})),format_italic:i.createElement("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},i.createElement("path",{d:"M5.39404 18.625V16.8173H9.21129L12.4518 7.18275H8.63454V5.375H17.7883V7.18275H14.2785L11.0383 16.8173H14.5478V18.625H5.39404Z",fill:"currentColor"})),format_underlined:i.createElement("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},i.createElement("path",{d:"M5.34619 22.125V20.625H18.6537V22.125H5.34619ZM11.9999 18.5287C10.4448 18.5287 9.23102 18.0566 8.35869 17.1125C7.48619 16.1683 7.04994 14.9032 7.04994 13.3172V5.41345H8.90369V13.4095C8.90369 14.4198 9.17228 15.2295 9.70944 15.8385C10.2466 16.4475 11.0101 16.752 11.9999 16.752C12.9898 16.752 13.7533 16.4475 14.2904 15.8385C14.8276 15.2295 15.0962 14.4198 15.0962 13.4095V5.41345H16.9499V13.3172C16.9499 14.9032 16.5137 16.1683 15.6412 17.1125C14.7689 18.0566 13.5551 18.5287 11.9999 18.5287Z",fill:"currentColor"})),format_highlight:i.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"1.75",strokeLinecap:"round",strokeLinejoin:"round"},i.createElement("path",{d:"m9 11-6 6v3h9l3-3"}),i.createElement("path",{d:"m22 12-4.6 4.6a2 2 0 0 1-2.8 0l-5.2-5.2a2 2 0 0 1 0-2.8L14 4"})),code:i.createElement("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},i.createElement("path",{d:"M7.99994 17.6537L2.34619 11.9999L7.99994 6.34619L9.06919 7.41544L4.46919 12.0154L9.05369 16.5999L7.99994 17.6537ZM15.9999 17.6537L14.9307 16.5844L19.5307 11.9844L14.9462 7.39994L15.9999 6.34619L21.6537 11.9999L15.9999 17.6537Z",fill:"currentColor"})),strikeThrough:i.createElement("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},i.createElement("path",{d:"M12.15 19.6923C10.9732 19.6923 9.9315 19.359 9.025 18.6923C8.11867 18.0256 7.45525 17.1128 7.03475 15.9538L8.6385 15.2635C8.91667 16.0444 9.3545 16.6867 9.952 17.1905C10.5493 17.6944 11.2923 17.9463 12.1808 17.9463C12.9578 17.9463 13.6744 17.7508 14.3307 17.3598C14.9872 16.9686 15.3155 16.3487 15.3155 15.5C15.3155 15.123 15.2555 14.7968 15.1355 14.5213C15.0157 14.2456 14.8462 13.9885 14.627 13.75H16.677C16.7987 13.9705 16.8932 14.2256 16.9605 14.5153C17.0278 14.8051 17.0615 15.1334 17.0615 15.5C17.0615 16.8372 16.5747 17.8702 15.601 18.599C14.6272 19.3279 13.4768 19.6923 12.15 19.6923ZM2.25 11.75V10.25H21.75V11.75H2.25ZM12.05 4.19629C13.0475 4.19629 13.9123 4.42704 14.6443 4.88854C15.3763 5.35004 15.9673 6.05896 16.4173 7.01529L14.823 7.73079C14.6218 7.26029 14.2978 6.84462 13.851 6.48379C13.4042 6.12279 12.8141 5.94229 12.0808 5.94229C11.2244 5.94229 10.5392 6.16221 10.025 6.60204C9.51083 7.04171 9.264 7.59104 9.2845 8.25004H7.5385C7.50133 7.16421 7.89783 6.21712 8.728 5.40879C9.558 4.60046 10.6653 4.19629 12.05 4.19629Z",fill:"currentColor"})),superscript:i.createElement("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},i.createElement("path",{d:"M16.6924 8V6.2115C16.6924 5.95383 16.7786 5.73875 16.9511 5.56625C17.1235 5.39392 17.3385 5.30775 17.5961 5.30775H19.5001V4.38475H16.6924V3.5H19.4809C19.7385 3.5 19.9536 3.58625 20.1261 3.75875C20.2985 3.93108 20.3846 4.14617 20.3846 4.404V5.2885C20.3846 5.54617 20.2985 5.76125 20.1261 5.93375C19.9536 6.10608 19.7385 6.19225 19.4809 6.19225H17.5771V7.1155H20.3846V8H16.6924ZM4.44238 18.5L8.84638 11.6287L4.77713 5.30775H6.74438L9.95963 10.404H10.0214L13.2501 5.30775H15.2329L11.1194 
111.6287L15.5579 18.5H13.5751L10.0214 12.9308H9.95963L6.42513 18.5H4.44238Z",fill:"currentColor"})),subscript:i.createElement("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},i.createElement("path",{d:"M16.6924 20.5V18.7115C16.6924 18.4538 16.7786 18.2387 16.9511 18.0662C17.1235 17.8939 17.3385 17.8077 17.5961 17.8077H19.5001V16.8845H16.6924V16H19.4809C19.7385 16 19.9536 16.0863 20.1261 16.2587C20.2985 16.4311 20.3846 16.6461 20.3846 16.9038V17.7885C20.3846 18.0462 20.2985 18.2612 20.1261 18.4337C19.9536 18.6061 19.7385 18.6923 19.4809 18.6923H17.5771V19.6152H20.3846V20.5H16.6924ZM4.44238 18.6923L8.84638 11.8212L4.77713 5.5H6.74438L9.95963 10.5962H10.0214L13.2501 5.5H15.2329L11.1194 11.8212L15.5579 18.6923H13.5751L10.0214 13.123H9.95963L6.42513 18.6923H4.44238Z",fill:"currentColor"})),format_list_bulleted:i.createElement("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},i.createElement("path",{d:"M9.30775 18.75V17.25H20.5V18.75H9.30775ZM9.30775 12.75V11.25H20.5V12.75H9.30775ZM9.30775 6.75005V5.25005H20.5V6.75005H9.30775ZM5.1635 19.6635C4.706 19.6635 4.31442 19.5006 3.98875 19.1748C3.66292 18.8491 3.5 18.4575 3.5 18C3.5 17.5425 3.66292 17.151 3.98875 16.8253C4.31442 16.4995 4.706 16.3365 5.1635 16.3365C5.621 16.3365 6.01258 16.4995 6.33825 16.8253C6.66408 17.151 6.827 17.5425 6.827 18C6.827 18.4575 6.66408 18.8491 6.33825 19.1748C6.
101258 19.5006 5.621 19.6635 5.1635 19.6635ZM5.1635 13.6635C4.706 13.6635 4.31442 13.5006 3.98875 13.1748C3.66292 12.8491 3.5 12.4575 3.5 12C3.5 11.5425 3.66292 11.151 3.98875 10.8253C4.31442 10.4995 4.706 10.3365 5.1635 10.3365C5.621 10.3365 6.01258 10.4995 6.33825 10.8253C6.66408 11.151 6.827 11.5425 6.827 12C6.827 12.4575 6.66408 12.8491 6.33825 13.1748C6.01258 13.5006 5.621 13.6635 5.1635 13.6635ZM5.1635 7.66355C4.706 7.66355 4.31442 7.50063 3.98875 7.1748C3.66292 6.84913 3.5 6.45755 3.5 6.00005C3.5 5.54255 3.66292 5.15096 3.98875 4.8253C4.31442 4.49946 4.706 4.33655 5.1635 4.33655C5.621 4.33655 6.01258 4.49946 6.33825 4.8253C6.66408 5.15096 6.827 5.54255 6.827 6.00005C6.827 6.45755 6.66408 6.84913 6.33825 7.1748C6.01258 7.50063 5.621 7.66355 5.1635 7.66355Z",fill:"currentColor"})),format_list_numbered:i.createElement("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},i.createElement("path",{d:"M3.5 21.5V20.3078H6V19.25H4.5V18.0577H6V17H3.5V15.8077H6.34625C6.58592 15.8077 6.78683 15.8888 6.949 16.051C7.11117 16.2132 7.19225 16.4141 7.19225 16.6538V17.8462C7.19225 18.0859 7.11117 18.2868 6.949 18.449C6.78683 18.6112 6.58592 18.6923 6.34625 18.6923C6.58592 18.6923 6.78683 18.7733 6.949 18.9355C7.11117 19.0977 7.19225 19.2987 7.19225 19.5385V20.6538C7.19225 20.8936 7.11117 21.0946 6.949 21.2568C6.78683 21.4189 6.58592 21.5 6.34625 21.5H3.5ZM3.5 14.8463V12.25C3.5 12.0103 3.58108 11.8093 3.74325 11.647C3.90542 11.4848 4.10642 11.4038 4.34625 11.4038H6V10.3462H3.5V9.15375H6.34625C6.58592 9.15375 6.78683 9.23483 6.949 9.397C7.11117 9.55933 7.19225 9.76033 7.19225 10V11.75C7.19225 11.9897 7.11117 12.1907 6.949 12.353C6.78683 12.5152 6.58592 12.5963 6.34625 12.5963H4.69225V13.6538H7.19225V14.8463H3.5ZM5 8.19225V3.69225H3.5V2.5H6.19225V8.19225H5ZM9.30775 18.75V17.25H20.5V18.75H9.30775ZM9.30775 12.75V11.25H20.5V12.75H9.30775ZM9.30775 6.75V5.25H20.5V6.75H9.30775Z",fill:"currentColor"})),format_list_checked:i.createElement("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},i.createElement("path",{d:"M5.69425 18.452L2.5 15.2578L3.54425 14.2135L5.66925 16.3385L9.91925 12.0885L10.9635 13.1578L5.69425 18.452ZM5.69425 10.8365L2.5 7.64227L3.54425 6.59802L5.66925 8.72302L9.91925 4.47302L10.9635 5.54227L5.69425 10.8365ZM13.0095 16.5578V15.0578H21.5095V16.5578H13.0095ZM13.0095 8.94227V7.44227H21.5095V8.94227H13.0095Z",fill:"currentColor"})),link:i.createElement("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},i.createElement("path",{d:"M10.8077 16.5385H7.0385C5.78283 16.5385 4.7125 16.096 3.8275 15.211C2.9425 14.3262 2.5 13.256 2.5 12.0005C2.5 10.745 2.9425 9.67471 3.8275 8.78955C4.7125 7.90421 5.78283 7.46155 7.0385 7.46155H10.8077V8.96155H7.0385C6.19867 8.96155 5.48233 9.25805 4.8895 9.85105C4.2965 10.444 4 11.1604 4 12C4 12.8397 4.2965 13.556 4.8895 14.149C5.48233 14.742 6.19867 15.0385 7.0385 15.0385H10.8077V16.5385ZM8.25 12.75V11.25H15.75V12.75H8.25ZM13.1923 16.5385V15.0385H16.9615C17.8013 15.0385 18.5177 14.742 19.1105 14.149C19.7035 13.556 20 12.8397 20 12C20 11.1604 19.7035 10.444 19.1105 9.85105C18.5177 9.25805 17.8013 8.96155 16.9615 8.96155H13.1923V7.46155H16.9615C18.2172 7.46155 19.2875 7.90405 20.1725 8.78905C21.0575 9.67388 21.5 10.744 21.5 11.9995C21.5 13.255 21.0575 14.3254 20.1725 15.2105C19.2875 16.0959 18.2172 16.5385 16.9615 16.5385H13.1923Z",fill:"currentColor"})),add_photo:i.createElement("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},i.createElement("path",{d:"M5.11537 20.5C4.6182 20.5 4.19262 20.323 3.83862 19.969C3.48462 19.615 3.30762 19.1894 3.30762 18.6922V5.30773C3.30762 4.81056 3.48462 4.38498 3.83862 4.03098C4.19262 3.67698 4.6182 3.49998 5.11537 3.49998H13.8076V4.99998H5.11537C5.02553 4.99998 4.95178 5.02881 4.89412 5.08648C4.83645 5.14415 4.80762 5.2179 4.80762 5.30773V18.6922C4.80762 18.7821 4.83645 18.8558 4.89412 18.9135C4.95178 18.9711 5.02553 19 5.11537 19H18.4999C18.5895 19 18.6633 18.9711 18.7211 18.9135C18.7788 18.8558 18.8076 18.7821 18.8076 18.6922V9.99998H20.3076V18.6922C20.3076 19.1894 20.1306 19.615 19.7766 19.969C19.4226 20.323 18.997 20.5 18.4999 20.5H5.11537ZM17.1921 8.61523V6.61523H15.1921V5.11548H17.1921V3.11548H18.6921V5.11548H20.6921V6.61523H18.6921V8.61523H17.1921ZM6.55762 16.75H17.1344L13.8459 12.3655L11.0384 16.0192L9.03837 13.4615L6.55762 16.75Z",fill:"currentColor"})),table:i.createElement("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},i.createElement("path",{d:"M3.5 18.6923V5.30775C3.5 4.81058 3.677 4.385 4.031 4.031C4.385 3.677 4.81058 3.5 5.30775 3.5H18.6923C19.1894 3.5 19.615 3.677 19.969 4.031C20.323 4.385 20.5 4.81058 20.5 5.30775V18.6923C20.5 19.1894 20.323 19.615 19.969 19.969C19.615 20.323 19.1894 20.5 18.6923 20.5H5.30775C4.81058 20.5 4.385 20.323 4.031 19.969C3.677 19.615 3.5 19.1894 3.5 18.6923ZM5 9.077H19V5.30775C19 5.21792 18.9712 5.14417 18.9135 5.0865C18.8558 5.02883 18.7821 5 18.6923 5H5.30775C5.21792 5 5.14417 5.02883 5.0865 5.0865C5.02883 5.14417 5 5.21792 5 5.30775V9.077ZM10.1615 14.0385H13.8385V10.577H10.1615V14.0385ZM10.1615 19H13.8385V15.5385H10.1615V19ZM5 14.0385H8.6615V10.577H5V14.0385ZM15.3385 14.0385H19V10.577H15.3385V14.0385ZM5.30775 19H8.661
15V15.5385H5V18.6923C5 18.7821 5.02883 18.8558 5.0865 18.9135C5.14417 18.9712 5.21792 19 5.30775 19ZM15.3385 19H18.6923C18.7821 19 18.8558 18.9712 18.9135 18.9135C18.9712 18.8558 19 18.7821 19 18.6923V15.5385H15.3385V19Z",fill:"currentColor"})),horizontal_rule:i.createElement("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},i.createElement("path",{d:"M4.5 12.75V11.25H19.5V12.75H4.5Z",fill:"currentColor"})),frontmatter:i.createElement("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},i.createElement("path",{d:"M4.5 8.75V7.25H8.5V8.75H4.5Z",fill:"currentColor"}),i.createElement("path",{d:"M4.5 14.75V13.25H8.5V14.75H4.5Z",fill:"currentColor"}),i.createElement("path",{d:"M9.5 8.75V7.25H13.5V8.75H9.5Z",fill:"currentColor"}),i.createElement("path",{d:"M9.5 14.75V13.25H13.5V14.75H9.5Z",fill:"currentColor"}),i.createElement("path",{d:"M14.5 8.75V7.25H18.5V8.75H14.5Z",fill:"currentColor"}),i.createElement("path",{d:"M14.5 14.75V13.25H18.5V14.75H14.5Z",fill:"currentColor"})),frame_source:i.createElement("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},i.createElement("path",{d:"M8.6 15.2443L5.35575 12L8.6 8.75575L9.64425 9.825L7.46925 12L9.64425 14.175L8.6 15.2443ZM15.4 15.2443L14.3558 14.175L16.5307 12L14.3558 9.825L15.4 8.75575L18.6443 12L15.4 15.2443ZM5.30775 20.5C4.80258 20.5 4.375 20.325 4.025 19.975C3.675 19.625 3.5 19.1974 3.5 18.6923V15H5V18.6923C5 18.7692 5.03208 18.8398 5.09625 18.9038C5.16025 18.9679 5.23075 19 5.30775 19H9V20.5H5.30775ZM15 20.5V19H18.6923C18.7692 19 18.8398 18.9679 18.9038 18.9038C18.9679 18.8398 19 18.7692 19 18.6923V15H20.5V18.6923C20.5 19.1974 20.325 19.625 19.975 19.975C19.625 20.325 19.1974 20.5 18.6923 20.5H15ZM3.5 9V5.30775C3.5 4.80258 3.675 4.375 4.025 4.025C4.375 3.675 4.80258 3.5 5.30775 3.5H9V5H5.30775C5.23075 5 5.16025 5.03208 5.09625 5.09625C5.03208 5.16025 5 5.23075 5 5.30775V9H3.5ZM19 9V5.30775C19 5.23075 18.9679 5.16025 18.9038 5.09625C18.8398 5.03208 18.7692 5 18.6923 5H15V3.5H18.6923C19.1974 3.5 19.625 3.675 19.975 4.025C20.325 4.375 20.5 4.80258 20.5 5.30775V9H19Z",fill:"currentColor"})),arrow_drop_down:i.createElement("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},i.createElement("path",{d:"M11.9999 14.6537L7.59619 10.25H16.4037L11.9999 14.6537Z",fill:"currentColor"})),admonition:i.createElement("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},i.createElement("path",{d:"M12.0001 21.4C11.7654 21.4 11.5385 21.3548 11.3193 21.2645C11.1002 21.174 10.9002 21.0435 10.7193 20.873L3.1271 13.2807C2.9566 13.0999 2.8261 12.8999 2.7356 12.6807C2.64526 12.4616 2.6001 12.2346 2.6001 12C2.6001 11.7653 2.64526 11.5358 2.7356 11.3115C2.8261 11.0871 2.9566 10.8897 3.1271 10.7192L10.7193 3.12698C10.9002 2.94614 11.1002 2.81314 11.3193 2.72798C11.5385 2.64264 11.7654 2.59998 12.0001 2.59998C12.2348 2.59998 12.4643 2.64264 12.6886 2.72798C12.9129 2.81314 13.1103 2.94614 13.2808 3.12698L20.8731 10.7192C21.0539 10.8897 21.1869 11.0871 21.2721 11.3115C21.3574 11.5358 21.4001 11.7653 21.4001 12C21.4001 12.2346 21.3574 12.4616 21.2721 12.6807C21.1869 12.8999 21.0539 13.0999 20.8731 13.2807L13.2808 20.873C13.1103 21.0435 12.9129 21.174 12.6886 21.2645C12.4643 21.3548 12.2348 21.4 12.0001 21.4ZM12.2213 19.8037L19.8039 12.2212C19.8552 12.1699 19.8808 12.0961 19.8808 12C19.8808 11.9038 19.8552 11.8301 19.8039 11.7787L12.2213 4.19623C12.17 4.14489 12.0963 4.11923 12.0001 4.11923C11.9039 4.11923 11.8302 4.14489 11.7788 4.19623L4.19635 11.7787C4.14501 11.8301 4.11935 11.9038 4.11935 12C4.11935 12.0961 4.14501 12.1699 4.19635 12.2212L11.7788 19.8037C11.8302 19.8551 11.9039 19.8807 12.0001 19.8807C12.0963 19.8807 12.17 19.8551 12.2213 19.8037ZM11.2501 13.0865H12.7501V7.47123H11.2501V13.0865ZM12.0001 15.702C12.2258 15.702 12.4168 15.6237 12.5731 15.4672C12.7296 15.3109 12.8078 15.1199 12.8078 14.8942C12.8078 14.6686 12.7296 14.4776 12.5731 14.3212C12.4168 14.1647 12.2258 14.0865 12.0001 14.0865C11.7744 14.0865 11.5834 14.1647 11.4271 14.3212C11.2706 14.4776 11.1923 14.6686 11.1923 14.8942C11.1923 15.1199 11.2706 15.3109 11.4271 15.4672C11.5834 15.6237 11.7744 15.702 12.0001 15.702Z",fill:"currentColor"})),rich_text:i.createElement("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},i.createElement("path",{d:"M5.30775 20.5C4.80258 20.5 4.375 20.325 4.025 19.975C3.675 19.625 3.5 19.1974 3.5 18.6923V5.30775C3.5 4.80258 3.675 4.375 4.025 4.025C4.375 3.675 4.80258 3.5 5.30775 3.5H18.6923C19.1974 3.5 19.625 3.675 19.975 4.025C20.325 4.375 20.5 4.80258 20.5 5.30775V18.6923C20.5 19.1974 20.325 19.625 19.975 19.975C19.625 20.325 19.1974 20.5 18.6923 20.5H5.30775ZM5.30775 19H18.6923C18.7692 19 18.8398 18.9679 18.9038 18.9038C18.9679 18.8398 19 18.7692 19 18.6923V5.30775C19 5.23075 18.9679 5.16025 18.9038 5.09625C18.8398 5.03208 18.7692 5 18.6923 5H5.30775C5.23075 5 5.16025 5.03208 5.09625 5.09625C5.03208 5.16025 5 5.23075 5 5.30775V18.6923C5 18.7692 5.03208 18.8398 5.09625 18.9038C5.16025 18.9679 5.23075 19 5.30775 19ZM6.75 17H17.3268L14 12.3655L11.2308 16.0192L9 13.4615L6.75 17Z",fill:"currentColor"}),i.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M6 12V6.5H9.1925C9.5925 6.5 9.9425 6.65 10.2425 6.95C10.5425 7.25 10.6925 7.6 10.6925 8V8.6925C10.6925 9.03733 10.605 9.32675 10.43 9.56075C10.255 9.79458 10.0168 9.97817 9.7155 10.1115L10.6155 12H9.404L8.504 10.1925H7.1925V12H6ZM9.1925 9H7.1925V7.6925H9.1925C9.26933 7.6925 9.33983 7.7245 9.404 7.7885C9.468 7.85267 9.5 7.92317 9.5 8V8.6925C9.5 8.76933 9.468 8.83983 9.404 8.904C9.33983 8.968 9.26933 9 9.1925 9Z",fill:"currentColor"}),i.createElement("path",{d:"M12.5 7H17.5V8.25H12.5V7Z",fill:"currentColor"}),i.createElement("path",{d:"M12.5 9.25H17.5V10.5H12.5V9.25Z",fill:"currentColor"})),difference:i.createElement("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},i.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M5.30775 20.5C4.80258 20.5 4.375 20.325 4.025 19.975C3.675 19.625 3.5 19.1974 3.5 18.6923V5.30775C3.5 4.80258 3.675 4.375 4.025 4.025C4.375 3.675 4.80258 3.5 5.30775 3.5H18.6923C19.1974 3.5 19.625 3.675 19.975 4.025C20.325 4.375 20.5 4.80258 20.5 5.30775V18.6923C20.5 19.1974 20.325 19.625 19.975 19.975C19.625 20.325 19.1974 20.5 18.6923 20.5H5.30775ZM18.6923 19H5.30775C5.23075 19 5.16025 18.9679 5.09625 18.9038C5.03208 18.8398 5 18.7692 5 18.6923V5.30775C5 5.23075 5.03208 5.16025 5.09625 5.09625C5.16025 5.03208 5.23075 5 5.30775 5H18.6923C18.7692 5 18.8398 5.03208 18.9038 5.09625C18.9679 5.16025 19 5.23075 19 5.30775V18.6923C19 18.7692 18.9679 18.8398 18.9038 18.9038C18.8398 18.9679 18.7692 19 18.6923 19Z",fill:"currentColor"}),i.createElement("rect",{x:"9",y:"10",width:"5.5",height:"1.5",fill:"currentColor"}),i.createElement("rect",{x:"9",y:"15",width:"5.5",height:"1.5",fill:"currentColor"}),i.createElement("rect",{x:"11",y:"8",width:"1.5",height:"5.5",fill:"currentColor"})),markdown:i.createElement("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},i.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M5.30775 20.5C4.80258 20.5 4.375 20.325 4.025 19.975C3.675 19.625 3.5 19.1974 3.5 18.6923V5.30775C3.5 4.80258 3.675 4.375 4.025 4.025C4.375 3.675 4.80258 3.5 5.30775 3.5H18.6923C19.1974 3.5 19.625 3.675 19.975 4.025C20.325 4.375 20.5 4.80258 20.5 5.30775V18.6923C20.5 19.1974 20.325 19.625 19.975 19.975C19.625 20.325 19.1974 20.5 18.6923 20.5H5.30775ZM18.6923 19H5.30775C5.23075 19 5.16025 18.9679 5.09625 18.9038C5.03208 18.8398 5 18.7692 5 18.6923V5.30775C5 5.23075 5.03208 5.16025 5.09625 5.09625C5.16025 5.03208 5.23075 5 5.30775 5H18.6923C18.7692 5 18.8398 5.03208 18.9038 5.09625C18.9679 5.16025 19 5.23075 19 5.30775V18.6923C19 18.7692 18.9679 18.8398 18.9038 18.9038C18.8398 18.9679 18.7692 19 18.6923 19Z",fill:"currentColor"}),i.createElement("path",{d:"M13 15H11.5V11L9.5 14L7.5 11V15H6V8H7.5L9.5 11L11.5 8H13V15Z",fill:"currentColor"}),i.createElement("path",{d:"M15.9921 15.5833L13.2886 12.8797L14.0546 12.1137L15.4504 13.5016V7.99597L16.5336 7.99993V13.5016L17.9296 12.1137L18.6954 12.8797L15.9921 15.5833Z",fill:"currentColor"})),open_in_new:i.createElement("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},i.createElement("path",{d:"M5.30775 20.5C4.80258 20.5 4.375 20.325 4.025 19.975C3.675 19.625 3.5 19.1974 3.5 18.6923V5.30775C3.5 4.80258 3.675 4.375 4.025 4.025C4.375 3.675 4.80258 3.5 5.30775 3.5H11.6152V5H5.30775C5.23075 5 5.16025 5.03208 5.09625 5.09625C5.03208 5.16025 5 5.23075 5 5.30775V18.6923C5 18.7692 5.03208 18.8398 5.09625 18.9038C5.16025 18.9679 5.23075 19 5.30775 19H18.6923C18.7692 19 18.8398 18.9679 18.9038 18.9038C18.9679 18.8398 19 18.7692 19 18.6923V12.3848H20.5V18.6923C20.5 19.1974 20.325 19.625 19.975 19.975C19.625 20.325 19.1974 20.5 18.6923 20.5H5.30775ZM9.71925 15.3345L8.6655 14.2808L17.9462 5H14V3.5H20.5V10H19V6.05375L9.71925 15.3345Z",fill:"currentColor"})),link_off:i.createElement("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},i.createElement("path",{d:"M18.8843 16.1038L17.7498 14.9385C18.4228 14.7552 18.9661 14.3946 19.3796 13.8568C19.7931 13.319 19.9998 12.7 19.9998 12C19.9998 11.1604 19.705 10.444 19.1153 9.85105C18.5255 9.25805 17.8139 8.96155 16.9806 8.96155H13.1728V7.46155H16.9806C18.2293 7.46155 19.2947 7.90422 20.1768 8.78955C21.0588 9.67472 21.4998 10.7449 21.4998 12C21.4998 12.8859 21.262 13.6951 20.7863 14.4278C20.3107 15.1606 19.6767 15.7193 18.8843 16.1038ZM15.5806 12.75L14.0806 11.25H15.7306V12.75H15.5806ZM20.1461 22.2538L1.74609 3.8538L2.79984 2.80005L21.1998 21.2L20.1461 22.2538ZM10.8268 16.5386H7.03834C5.78318 16.5386 4.71301 16.0959 3.82784 15.2105C2.94251 14.3254 2.49984 13.2552 2.49984 12C2.49984 10.8885 2.85784 9.91322 3.57384 9.07405C4.28984 8.23505 5.18826 7.72838 6.26909 7.55405H6.49984L7.90759 8.96155H7.03834C6.19851 8.96155 5.48218 9.25805 4.88934 9.85105C4.29634 10.444 3.99984 11.1604 3.99984 12C3.99984 12.8397 4.29634 13.556 4.88934 14.149C5.48218 14.742 6.19851 15.0385 7.03834 15.0385H10.8268V16.5386ZM8.26909 12.75V11.25H10.2113L11.6863 12.75H8.26909Z",fill:"currentColor"})),edit:i.createElement("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},i.createElement("path",{d:"M5 19H6.2615L16.498 8.7635L15.2365 7.502L5 17.7385V19ZM3.5 20.5V17.1155L16.6905 3.93075C16.8417 3.79342 17.0086 3.68733 17.1913 3.6125C17.3741 3.5375 17.5658 3.5 17.7663 3.5C17.9668 3.5 18.1609 3.53558 18.3488 3.60675C18.5367 3.67792 18.7032 3.79108 18.848 3.94625L20.0693 5.
118275C20.2244 5.32758 20.335 5.49425 20.401 5.68275C20.467 5.87125 20.5 6.05975 20.5 6.24825C20.5 6.44942 20.4657 6.64133 20.397 6.824C20.3283 7.00683 20.2191 7.17383 20.0693 7.325L6.8845 20.5H3.5ZM15.8562 8.14375L15.2365 7.502L16.498 8.7635L15.8562 8.14375Z",fill:"currentColor"})),content_copy:i.createElement("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},i.createElement("path",{d:"M9.05775 17.5C8.55258 17.5 8.125 17.325 7.775 16.975C7.425 16.625 7.25 16.1974 7.25 15.6923V4.30775C7.25 3.80258 7.425 3.375 7.775 3.025C8.125 2.675 8.55258 2.5 9.05775 2.5H17.4423C17.9474 2.5 18.375 2.675 18.725 3.025C19.075 3.375 19.25 3.80258 19.25 4.30775V15.6923C19.25 16.1974 19.075 16.625 18.725 16.975C18.375 17.325 17.9474 17.5 17.4423 17.5H9.05775ZM9.05775 16H17.4423C17.5192 16 17.5898 15.9679 17.6538 15.9038C17.7179 15.8398 17.75 15.7692 17.75 15.6923V4.30775C17.75 4.23075 17.7179 4.16025 17.6538 4.09625C17.5898 4.03208 17.5192 4 17.4423 4H9.05775C8.98075 4 8.91025 4.03208 8.84625 4.09625C8.78208 4.16025 8.75 4.23075 8.75 4.30775V15.6923C8.75 15.7692 8.78208 15.8398 8.84625 15.9038C8.91025 15.9679 8.98075 16 9.05775 16ZM5.55775 21C5.05258 21 4.625 20.825 4.275 20.475C3.925 20.125 3.75 19.6974 3.75 19.1923V6.30775H5.25V19.1923C5.25 19.2693 5.28208 19.3398 5.34625 19.4038C5.41025 19.4679 5.48075 19.5 5.55775 19.5H15.4423V21H5.55775Z",fill:"currentColor"})),more_horiz:i.createElement("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},i.createElement("path",{d:"M6.23096 13.5C5.81846 13.5 5.46537 13.3531 5.17171 13.0592C4.87787 12.7656 4.73096 12.4125 4.73096 12C4.73096 11.5875 4.87787 11.2344 5.17171 10.9408C5.46537 10.6469 5.81846 10.5 6.23096 10.5C6.64346 10.5 6.99662 10.6469 7.29046 10.9408C7.58412 11.2344 7.73096 11.5875 7.73096 12C7.73096 12.4125 7.58412 12.7656 7.29046 13.0592C6.99662 13.3531 6.64346 13.5 6.23096 13.5ZM12.0002 13.5C11.5877 13.5 11.2346 13.3531 10.941 13.0592C10.6471 12.7656 10.5002 12.4125 10.5002 12C10.5002 11.5875 10.6471 11.2344 10.941 10.9408C11.2346 10.6469 11.5877 10.5 12.0002 10.5C12.4127 10.5 12.7658 10.6469 13.0595 10.9408C13.3533 11.2344 13.5002 11.5875 13.5002 12C13.5002 12.4125 13.3533 12.7656 13.0595 13.0592C12.7658 13.3531 12.4127 13.5 12.0002 13.5ZM17.7695 13.5C17.357 13.5 17.0038 13.3531 16.71 13.0592C16.4163 12.7656 16.2695 12.4125 16.2695 12C16.2695 11.5875 16.4163 11.2344 16.71 10.9408C17.0038 10.6469 17.357 10.5 17.7695 10.5C18.182 10.5 18.535 10.6469 18.8287 10.9408C19.1225 11.2344 19.2695 11.5875 19.2695 12C19.2695 12.4125 19.1225 12.7656 18.8287 13.0592C18.535 13.3531 18.182 13.5 17.7695 13.5Z",fill:"currentColor"})),more_vert:i.createElement("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},i.createElement("path",{d:"M12 19.2692C11.5875 19.2692 11.2344 19.1223 10.9408 18.8285C10.6469 18.5348 10.5 18.1817 10.5 17.7692C10.5 17.3567 10.6469 17.0035 10.9408 16.7097C11.2344 16.416 11.5875 16.2692 12 16.2692C12.4125 16.2692 12.7656 16.416 13.0592 16.7097C13.3531 17.0035 13.5 17.3567 13.5 17.7692C13.5 18.1817 13.3531 18.5348 13.0592 18.8285C12.7656 19.1223 12.4125 19.2692 12 19.2692ZM12 13.5C11.5875 13.5 11.2344 13.353 10.9408 13.0592C10.6469 12.7655 10.5 12.4125 10.5 12C10.5 11.5875 10.6469 11.2344 10.9408 10.9407C11.2344 10.6469 11.5875 10.5 12 10.5C12.4125 10.5 12.7656 10.6469 13.0592 10.9407C13.3531 11.2344 13.5 11.5875 13.5 12C13.5 12.4125 13.3531 12.7655 13.0592 13.0592C12.7656 13.353 12.4125 13.5 12 13.5ZM12 7.73071C11.5875 7.73071 11.2344 7.58388 10.9408 7.29021C10.6469 6.99638 10.5 6.64321 10.5 6.23071C10.5 5.81821 10.6469 5.46513 10.9408 5.17146C11.2344 4.87763 11.5875 4.73071 12 4.73071C12.4125 4.73071 12.7656 4.87763 13.0592 5.17146C13.3531 5.46513 13.5 5.81821 13.5 6.23071C13.5 6.64321 13.3531 6.99638 13.0592 7.29021C12.7656 7.58388 12.4125 7.73071 12 7.73071Z",fill:"currentColor"})),close:i.createElement("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},i.createElement("path",{d:"M6.39994 18.6538L5.34619 17.6L10.9462 12L5.34619 6.4L6.39994 5.34625L11.9999 10.9463L17.5999 5.34625L18.6537 6.4L13.0537 12L18.6537 17.6L17.5999 18.6538L11.9999 13.0538L6.39994 18.6538Z",fill:"currentColor"})),settings:i.createElement("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},i.createElement("path",{d:"M9.69225 21.5L9.3115 18.4538C9.04367 18.3641 8.769 18.2385 8.4875 18.077C8.20617 17.9153 7.95459 17.7422 7.73275 17.5577L4.9115 18.75L2.604 14.75L5.04425 12.9058C5.02125 12.7571 5.00492 12.6077 4.99525 12.4578C4.98559 12.3078 4.98075 12.1583 4.98075 12.0095C4.98075 11.8673 4.98559 11.7228 4.99525 11.576C5.00492 11.4292 5.02125 11.2686 5.04425 11.0943L2.604 9.25L4.9115 5.26925L7.723 6.452C7.96417 6.261 8.22159 6.08633 8.49525 5.928C8.76892 5.76967 9.03784 5.64242 9.302 5.54625L9.69225 2.5H14.3078L14.6885 5.55575C14.9885 5.66475 15.2599 5.792 15.5028 5.9375C15.7458 6.083 15.991 6.2545 16.2385 6.452L19.0885 5.26925L21.396 9.25L18.9173 11.123C18.9531 11.2845 18.9727 11.4355 18.976 11.576C18.9792 11.7163 18.9808 11.8577 18.9808 12C18.9808 12.1358 18.9775 12.274 18.971 12.4145C18.9647 12.5548 18.9417 12.7154 18.902 12.8963L21.3615 14.75L19.0538 18.75L16.2385 17.548C15.99
11 17.7455 15.7384 17.9202 15.4808 18.072C15.2231 18.224 14.959 18.3481 14.6885 18.4443L14.3078 21.5H9.69225ZM11 20H12.9655L13.325 17.3212C13.8353 17.1879 14.3017 16.9985 14.724 16.753C15.1465 16.5073 15.5539 16.1916 15.9463 15.8057L18.4308 16.85L19.4155 15.15L17.2463 13.5155C17.3296 13.2565 17.3863 13.0026 17.4163 12.7537C17.4464 12.5051 17.4615 12.2538 17.4615 12C17.4615 11.7397 17.4464 11.4884 17.4163 11.2463C17.3863 11.0039 17.3296 10.7564 17.2463 10.5038L19.4345 8.85L18.45 7.15L15.9365 8.2095C15.6018 7.85183 15.2009 7.53583 14.7338 7.2615C14.2664 6.98717 13.7937 6.79292 13.3155 6.67875L13 4H11.0155L10.6845 6.66925C10.1743 6.78975 9.70325 6.97433 9.27125 7.223C8.83909 7.47183 8.42684 7.79233 8.0345 8.1845L5.55 7.15L4.5655 8.85L6.725 10.4595C6.64167 10.6968 6.58334 10.9437 6.55 11.2C6.51667 11.4563 6.5 11.7262 6.5 12.0095C6.5 12.2698 6.51667 12.525 6.55 12.775C6.58334 13.025 6.6385 13.2718 6.7155 13.5155L4.5655 15.15L5.55 16.85L8.025 15.8C8.4045 16.1897 8.81025 16.5089 9.24225 16.7578C9.67442 17.0064 10.152 17.1974 10.675 17.3307L11 20ZM12.0115 15C12.8435 15 13.5515 14.708 14.1355 14.124C14.7195 13.54 15.0115 12.832 15.0115 12C15.0115 11.168 14.7195 10.46 14.1355 9.876C13.5515 9.292 12.8435 9 12.0115 9C11.1692 9 10.4586 9.292 9.87975 9.876C9.30092 10.46 9.0115 11.168 9.0115 12C9.0115 12.832 9.30092 13.54 9.87975 14.124C10.4586 14.708 11.1692 15 12.0115 15Z",fill:"currentColor"})),delete_big:i.createElement("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},i.createElement("path",{d:"M7.30775 20.5C6.80908 20.5 6.38308 20.3234 6.02975 19.9702C5.67658 19.6169 5.5 19.1909 5.5 18.6922V5.99998H4.5V4.49998H9V3.61548H15V4.49998H19.5V5.99998H18.5V18.6922C18.5 19.1974 18.325 19.625 17.975 19.975C17.625 20.325 17.1974 20.5 16.6923 20.5H7.30775ZM17 5.99998H7V18.6922C7 18.7821 7.02883 18.8558 7.0865 18.9135C7.14417 18.9711 7.21792 19 7.30775 19H16.6923C16.7692 19 16.8398 18.9679 16.9038 18.9037C16.9679 18.8397 17 18.7692 17 18.6922V5.99998ZM9.404 17H10.9037V7.99998H9.404V17ZM13.0962 17H14.596V7.99998H13.0962V17Z",fill:"currentColor"})),delete_small:i.createElement("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},i.createElement("path",{d:"M7.30775 20.5C6.80908 20.5 6.38308 20.3234 6.02975 19.9702C5.67658 19.6169 5.5 19.1909 5.5 18.6922V5.99998H4.5V4.49998H9V3.61548H15V4.49998H19.5V5.99998H18.5V18.6922C18.5 19.1974 18.325 19.625 17.975 19.975C17.625 20.325 17.1974 20.5 16.6923 20.5H7.30775ZM17 5.99998H7V18.6922C7 18.7821 7.02883 18.8558 7.0865 18.9135C7.14417 18.9711 7.21792 19 7.30775 19H16.6923C16.7692 19 16.8398 18.9679 16.9038 18.9037C16.9679 18.8397 17 18.7692 17 18.6922V5.99998ZM9.404 17H10.9037V7.99998H9.404V17ZM13.0962 17H14.596V7.99998H13.0962V17Z",fill:"currentColor"})),format_align_center:i.createElement("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},i.createElement("path",{d:"M3.5 20.5V19H20.5V20.5H3.5ZM7.5 16.625V15.125H16.5V16.625H7.5ZM3.5 12.75V11.25H20.5V12.75H3.5ZM7.5 8.875V7.375H16.5V8.875H7.5ZM3.5 5V3.5H20.5V5H3.5Z",fill:"currentColor"})),format_align_left:i.createElement("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},i.createElement("path",{d:"M3.5 20.5V19H20.5V20.5H3.5ZM3.5 16.625V15.125H14.5V16.625H3.5ZM3.5 12.75V11.25H20.5V12.75H3.5ZM3.5 8.875V7.375H14.5V8.875H3.5ZM3.5 5V3.5H20.5V5H3.5Z",fill:"currentColor"})),format_align_right:i.createElement("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},i.createElement("path",{d:"M3.5 5V3.5H20.5V5H3.5ZM9.5 8.875V7.375H20.5V8.875H9.5ZM3.5 12.75V11.25H20.5V12.75H3.5ZM9.5 16.625V15.125H20.5V16.625H9.5ZM3.5 20.5V19H20.5V20.5H3.5Z",fill:"currentColor"})),add_row:i.createElement("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},i.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M4.025 10.2077C4.375 9.85775 4.80258 9.68275 5.30775 9.68275H6.5V11.1827H5.30775C5.21792 11.1827 5.14417 11.2116 5.0865 11.2693C5.02883 11.3269 5 11.4007 5 11.4905V16.1923C5 16.2821 5.02883 16.3558 5.0865 16.4135C5.14417 16.4712 5.21792 16.5 5.30775 16.5H18.6923C18.7821 16.5 18.8558 16.4712 18.9135 16.4135C18.9712 16.3558 19 16.2821 19 16.1923V11.4905C19 11.4007 18.9712 11.3269 18.9135 11.2693C18.8558 11.2116 18.7821 11.1827 18.6923 11.1827H17.6923V9.68275H18.6923C19.1974 9.68275 19.625 9.85775 19.975 10.2077C20.325 10.5577 20.5 10.9853 20.5 11.4905V16.1923C20.5 16.6974 20.325 17.125 19.975 17.475C19.625 17.825 19.1974 18 18.6923 18H5.30775C4.80258 18 4.375 17.825 4.025 17.475C3.675 17.125 3.5 16.6974 3.5 16.1923V11.4905C3.5 10.9853 3.675 10.5577 4.025 10.2077Z",fill:"currentColor"}),i.createElement("path",{d:"M11.3848 9.68275V7.5H12.8848V9.68275H15V11.1827H12.8848V13.2307H11.3848V11.1827H9.26925V9.68275H11.3848Z",fill:"currentColor"})),add_column:i.createElement("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},i.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M9.70775 4.025C9.35775 4.375 9.18275 4.80258 9.18275 5.30775V6.5H10.6827V5.30775C10.6827 5.21792 10.7116 5.14417 10.7693 5.0865C10.8269 5.02883 10.9007 5 10.9905 5H15.6923C15.7821 5 15.8558 5.02883 15.9135 5.0865C15.9712 5.14417 16 5.21792 16 5.30775V18.6923C16 18.7821 15.9712 18.8558 15.9135 18.9135C15.8558 18.9712 15.7821 19 15.6923 19H10.9905C10.9007 19 10.8269 18.9712 10.7693 18.9135C10.7116 18.8558 10.6827 18.7821 10.6827 18.6923V17.6923H9.18275V18.6923C9.18275 19.1974 9.35775 19.625 9.70775 19.975C10.0577 20.325 10.4853 20.5 10.9905 20.5H15.6923C16.1974 20.5 16.625 20.325 16.975 19.975C17.325 19.625 17.5 19.1974 17.5 18.6923V5.30775C17.5 4.80258 17.325 4.375 16.975 4.025C16.625 3.675 16.1974 3.5 15.6923 3.5H10.9905C10.4853 3.5 10.0577 3.675 9.70775 4.025Z",fill:"currentColor"}),i.createElement("path",{d:"M9.18275 11.3848H7V12.8848H9.18275V15H10.6827V12.8848H12.7307V11.3848H10.6827V9.26925H9.18275V11.3848Z",fill:"currentColor"})),insert_col_left:i.createElement("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},i.createElement("path",{d:"M13.0001 20.1152H8.67713H8.75388H8.69238H13.0001ZM7.19238 19.8075C7.19238 20.3127 7.36738 20.7402 7.71738 21.0902C8.06738 21.4402 8.49497 21.6152 9.00013 21.6152H12.6924C13.1975 21.6152 13.6251 21.4402 13.9751 21.0902C14.3251 20.7402 14.5001 20.3127 14.5001 19.8075V10.423H13.0001V19.8075C13.0001 19.8973 12.9713 19.9711 12.9136 20.0287C12.856 20.0864 12.7822 20.1152 12.6924 20.1152H9.00013C8.9103 20.1152 8.83655 20.0864 8.77888 20.0287C8.72122 19.9711 8.69238 19.8973 8.69238 19.8075V4.69223C8.26422 4.74357 7.90722 4.93299 7.62138 5.26048C7.33538 5.58798 7.19238 5.97548 7.19238 6.42298V19.8075ZM13.0001 2.49998V4.61523H10.8846V6.11523H13.0001V8.23073H14.5001V6.11523H16.6154V4.61523H14.5001V2.49998H13.0001Z",fill:"currentColor"})),insert_row_above:i.createElement("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},i.createElement("path",{d:"M20.1152 9.99987V14.3229V14.2461V14.3076V9.99987ZM19.8075 15.8076C20.3127 15.8076 20.7402 15.6326 21.0902 15.2826C21.4402 14.9326 21.6152 14.505 21.6152 13.9999V10.3076C21.6152 9.80245 21.4402 9.37487 21.0902 9.02487C20.7402 8.67487 20.3127 8.49987 19.8075 8.49987H10.423V9.99987H19.8075C19.8973 9.99987 19.9711 10.0287 20.0287 10.0864C20.0864 10.144 20.1152 10.2178 20.1152 10.3076V13.9999C20.1152 14.0897 20.0864 14.1635 20.0287 14.2211C19.9711 14.2788 19.8973 14.3076 19.8075 14.3076H4.69223C4.74357 14.7358 4.93299 15.0928 5.26048 15.3786C5.58798 15.6646 5.97548 15.8076 6.42298 15.8076H19.8075ZM2.49998 9.99987H4.61523V12.1154H6.11523V9.99987H8.23073V8.49987H6.11523V6.38462H4.61523V8.49987H2.49998V9.99987Z",fill:"currentColor"})),insert_row_below:i.createElement("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},i.createElement("path",{d:"M20.1152 14.1924V9.86939V9.94614V9.88464V14.1924ZM19.8075 8.38464C20.3127 8.38464 20.7402 8.55964 21.0902 8.90964C21.4402 9.25964 21.6152 9.68723 21.6152 10.1924V13.8846C21.6152 14.3898 21.4402 14.8174 21.0902 15.1674C20.7402 15.5174 20.3127 15.6924 19.8075 15.6924H10.423V14.1924H19.8075C19.8973 14.1924 19.9711 14.1636 20.0287 14.1059C20.0864 14.0482 20.1152 13.9745 20.1152 13.8846V10.1924C20.1152 10.1026 20.0864 10.0288 20.0287 9.97114C19.9711 9.91348 19.8973 9.88464 19.8075 9.88464H4.69223C4.74357 9.45648 4.93299 9.09948 5.26048 8.81364C5.58798 8.52764 5.97548 8.38464 6.42298 8.38464H19.8075ZM2.49998 14.1924H4.61523V12.0769H6.11523V14.1924H8.23073V15.6924H6.11523V1
17.8076H4.61523V15.6924H2.49998V14.1924Z",fill:"currentColor"})),insert_col_right:i.createElement("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},i.createElement("path",{d:"M10.8075 20.1152H15.1305H15.0537H15.1152H10.8075ZM16.6152 19.8075C16.6152 20.3127 16.4402 20.7402 16.0902 21.0902C15.7402 21.4402 15.3127 21.6152 14.8075 21.6152H11.1152C10.6101 21.6152 10.1825 21.4402 9.83248 21.0902C9.48248 20.7402 9.30748 20.3127 9.30748 19.8075V10.423H10.8075V19.8075C10.8075 19.8973 10.8363 19.9711 10.894 20.0287C10.9517 20.0864 11.0254 20.1152 11.1152 20.1152H14.8075C14.8973 20.1152 14.9711 20.0864 15.0287 20.0287C15.0864 19.9711 15.1152 19.8973 15.1152 19.8075V4.69223C15.5434 4.74357 15.9004 4.93299 16.1862 5.26048C16.4722 5.58798 16.6152 5.97548 16.6152 6.42298V19.8075ZM10.8075 2.49998V4.61523H12.923V6.11523H10.8075V8.23073H9.30748V6.11523H7.19223V4.61523H9.30748V2.49998H10.8075Z",fill:"currentColor"})),check:i.createElement("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},i.createElement("path",{d:"M9.54983 17.6537L4.21533 12.3192L5.28433 11.25L9.54983 15.5155L18.7153 6.34998L19.7843 7.41923L9.54983 17.6537Z",fill:"currentColor"}))};var p=n(74898),h=n(11018),g=n(38993);let m=e=>{let{children:t}=e,n=(0,r.X3)(l.u0);return i.createElement(a.p,{initialEditor:n},t)},v=()=>{let e=(0,l.Bd)(),t=(0,r.qM)(l.Xz),n=(0,r.qM)(l.N2),[o,a,f,h,g,m,v]=(0,r.uX)(l.X2,l.J2,l.GS,l.Me,l.yY,l.M0,l.sF);return i.createElement(i.Fragment,null,h.map((e,t)=>i.createElement(e,{key:t})),i.createElement(C,{wrappers:g},i.createElement("div",{className:d(p.Ay.rootContentEditableWrapper,"mdxeditor-root-contenteditable")},i.createElement(c.$,{contentEditable:i.createElement("div",{ref:e=>{n(e),t(e?{current:e}:null)},className:"mdxeditor-contenteditable-wrapper"},i.createElement(s.a,{className:d(p.Ay.contentEditable,o),ariaLabel:e("contentArea.editableMarkdown","editable markdown"),spellCheck:a})),placeholder:i.createElement("div",{className:d(p.Ay.contentEditable,p.Ay.placeholder,o)},i.createElement("p",null,m)),ErrorBoundary:u.R}))),f.map((e,t)=>i.createElement(e,{key:t})),v.map((e,t)=>i.createElement(e,{key:t})))},y={listItemIndent:"one"},b=e=>f[e];function x(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=t;for(let[e,t]of Object.entries(n))r=r.replaceAll("{{".concat(e,"}}"),String(t));return r}let C=e=>{let{wrappers:t,children:n}=e;if(0===t.length)return i.createElement(i.Fragment,null,n);let r=t[0];return i.createElement(r,null,i.createElement(C,{wrappers:t.slice(1)},n))},w=e=>{let{children:t,className:n,overlayContainer:o}=e,a=i.useRef(null),s=i.useRef(null),u=(0,r.qM)(l.xZ),c=(0,r.qM)(l.mF);return i.useEffect(()=>{let e=document.createElement("div");return e.classList.add("mdxeditor-popup-container",p.Ay.editorRoot,p.Ay.popupContainer,...(null!=n?n:"").trim().split(" ").filter(Boolean)),(null!=o?o:document.body).appendChild(e),a.current=e,u(a),c(s),()=>{e.remove()}},[n,a,o,u,c]),i.createElement("div",{className:d("mdxeditor",p.Ay.editorRoot,p.Ay.editorWrapper,n),ref:s},t)},E=e=>{let{onReady:t,onDispose:n}=e,o=(0,r.LO)(),a=i.useMemo(()=>(function(e){return{getMarkdown:()=>{let t=e.getValue(l.n$);return"source"===t||"diff"===t?e.getValue(l.Bn):e.getValue(l.oF)},setMarkdown:t=>{e.pub(l.Sv,t)},insertMarkdown:t=>{e.pub(l.HU,t)},focus:(t,n)=>{var r;null==(r=e.getValue(l.u0))||r.focus(t,n)},getContentEditableHTML:()=>{var t,n;return null!=(n=null==(t=e.getValue(l.Xz))?void 0:t.current.innerHTML)?n:""},getSelectionMarkdown:()=>{let t=e.getValue(l.n$);if("source"===t||"diff"===t)return"";let n=e.getValue(l.Cp);if(!n)return"";let r=e.getValue(l.IJ),i=e.getValue(l.dY),o=e.getValue(l.Jf),a=e.getValue(l.X_),s=e.getValue(l.nK);return(0,g.kI)(n,{visitors:r,toMarkdownExtensions:i,toMarkdownOptions:o,jsxComponentDescriptors:a,jsxIsAvailable:s})}}})(o),[o]);return i.useLayoutEffect(()=>(t(a),()=>{n(a)}),[a,n,t]),null},_=i.forwardRef((e,t)=>{var n,r,a,s,u,c,d,f,p,g,C,_,S,k,T,N;let A=i.useRef(null),I=i.useRef(null),M=i.useRef([]),P=i.useRef(!1===e.trim?e.markdown:e.markdown.trim()),R=i.useCallback(e=>{let t=A.current;t&&null===I.current?e(t):M.current.push(e)},[]),O=i.useMemo(()=>({getMarkdown:()=>{var e,t;return null!=(t=null==(e=A.current)?void 0:e.getMarkdown())?t:P.current},setMarkdown:e=>{P.current=e,R(t=>{t.setMarkdown(e)})},insertMarkdown:e=>{R(t=>{t.insertMarkdown(e)})},focus:(e,t)=>{R(n=>{n.focus(e,t)})},getContentEditableHTML:()=>{var e,t;return null!=(t=null==(e=A.current)?void 0:e.getContentEditableHTML())?t:""}
1,getSelectionMarkdown:()=>{var e,t;return null!=(t=null==(e=A.current)?void 0:e.getSelectionMarkdown())?t:""}}),[R]),L=i.useCallback(e=>{if(A.current=e,I.current===e)return;if(0===M.current.length){P.current=e.getMarkdown();return}I.current=e;let t=()=>{if(A.current!==e){I.current===e&&(I.current=null);return}let n=M.current.shift();if(!n){I.current=null,P.current=e.getMarkdown();return}n(e),queueMicrotask(t)};t()},[]),F=i.useCallback(e=>{A.current===e&&(P.current=e.getMarkdown(),A.current=null)},[]);return i.useImperativeHandle(t,()=>O,[O]),i.createElement(o.g,{plugins:[(0,l.LH)({contentEditableClassName:null!=(n=e.contentEditableClassName)?n:"",spellCheck:null==(r=e.spellCheck)||r,initialMarkdown:e.markdown,onChange:null!=(a=e.onChange)?a:h.lQ,onBlur:null!=(s=e.onBlur)?s:h.lQ,toMarkdownOptions:null!=(u=e.toMarkdownOptions)?u:y,autoFocus:null!=(c=e.autoFocus)&&c,placeholder:null!=(d=e.placeholder)?d:"",readOnly:!!e.readOnly,iconComponentFor:null!=(f=e.iconComponentFor)?f:b,suppressHtmlProcessing:null!=(p=e.suppressHtmlProcessing)&&p,onError:null!=(g=e.onError)?g:h.lQ,translation:null!=(C=e.translation)?C:x,trim:null==(_=e.trim)||_,lexicalTheme:e.lexicalTheme,..."editorState"in e?{editorState:e.editorState}:{},suppressSharedHistory:null!=(S=e.suppressSharedHistory)&&S,additionalLexicalNodes:null!=(k=e.additionalLexicalNodes)?k:[],lexicalEditorNamespace:null!=(T=e.lexicalEditorNamespace)?T:"MDXEditor"}),...null!=(N=e.plugins)?N:[]]},i.createElement(w,{className:e.className,overlayContainer:e.overlayContainer},i.createElement(m,null,i.createElement(v,null))),i.createElement(E,{onReady:L,onDispose:F}))})},44997:(e,t,n)=>{"use strict";n.d(t,{DF:()=>l,Gu:()=>i});var r=n(12115);let i=(0,r.createContext)(null);function l(){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}},45276:(e,t,n)=>{"use strict";n.d(t,{Cc:()=>te,Cp:()=>tn,TI:()=>ns,$0:()=>nu,O2:()=>t7,aC:()=>t5,iI:()=>tD,R1:()=>tL,q:()=>tO,C2:()=>tV,Id:()=>t4,cx:()=>tF,dH:()=>ne,lN:()=>tj,IZ:()=>t9,C_:()=>tf,sF:()=>t3,Wd:()=>tA,GS:()=>t1,X2:()=>tr,Xz:()=>tR,N2:()=>tZ,vR:()=>ni,LH:()=>nf,Z4:()=>tQ,Jl:()=>tX,X3:()=>nr,PI:()=>tu,cj:()=>tp,uf:()=>tI,uQ:()=>tN,Nn:()=>nt,xZ:()=>tM,mF:()=>tP,yY:()=>t8,IJ:()=>tE,yr:()=>tq,b$:()=>tb,p3:()=>nl,HU:()=>tB,X_:()=>tT,nK:()=>tk,oF:()=>tg,Bn:()=>na,M0:()=>to,pc:()=>tl,u0:()=>tt,Sv:()=>tJ,J2:()=>ti,Di:()=>t6,dY:()=>t_,Jf:()=>tS,Me:()=>t2,Bd:()=>np,G7:()=>tx,n$:()=>no});var r=n(11919),i=n(42019),l=n(34102),o=n(79299),a=n(80632),s=n(319),u=n(61259),c=n(3922),d=n(9548);h.peek=function(){return"="};var f={canContainEols:["highlight"],enter:{highlight:function(e){this.enter({type:"highlight",children:[]},e)}},exit:{highlight:function(e){this.exit(e)}}},p={unsafe:[{character:"=",inConstruct:"phrasing",notInConstruct:["autolink","destinationLiteral","destinationRaw","reference","titleQuote","titleApostrophe"]}],handlers:{highlight:h}};function h(e,t,n,r){let i=n.createTracker(r),l=n.enter("highlight"),o=i.move("==");return o+=i.move(n.containerPhrasing(e,{before:o,after:"=",...i.current()})),o+=i.move("=="),l(),o}var g=n(5009),m=n(63758);let v=["AElig","AMP","Aacute","Acirc","Agrave","Aring","Atilde","Auml","COPY","Ccedil","ETH","Eacute","Ecirc","Egrave","Euml","GT","Iacute","Icirc","Igrave","Iuml","LT","Ntilde","Oacute","Ocirc","Ograve","Oslash","Otilde","Ouml","QUOT","REG","THORN","Uacute","Ucirc","Ugrave","Uuml","Yacute","aacute","acirc","acute","aelig","agrave","amp","aring","atilde","auml","brvbar","ccedil","cedil","cent","copy","curren","deg","divide","eacute","ecirc","egrave","eth","euml","frac12","frac14","frac34","gt","iacute","icirc","iexcl","igrave","iquest","iuml","laquo","lt","macr","micro","middot","nbsp","not","ntilde","oacute","ocirc","ograve","ordf","ordm","oslash","otilde","ouml","para","plusmn","pound","quot","raquo","reg","sect","shy","sup1","
1sup2","sup3","szlig","thorn","times","uacute","ucirc","ugrave","uml","uuml","yacute","yen","yuml"],y={0:"�",128:"€",130:"‚",131:"ƒ",132:"„",133:"…",134:"†",135:"‡",136:"ˆ",137:"‰",138:"Š",139:"‹",140:"Œ",142:"Ž",145:"‘",146:"’",147:"“",148:"”",149:"•",150:"–",151:"—",152:"˜",153:"™",154:"š",155:"›",156:"œ",158:"ž",159:"Ÿ"};function b(e){let t="string"==typeof e?e.charCodeAt(0):e;return t>=48&&t<=57}function x(e){let t="string"==typeof e?e.charCodeAt(0):e;return t>=97&&t<=102||t>=65&&t<=70||t>=48&&t<=57}function C(e){return function(e){let t="string"==typeof e?e.charCodeAt(0):e;return t>=97&&t<=122||t>=65&&t<=90}(e)||b(e)}var w=n(17039);let E=["","Named character references must be terminated by a semicolon","Numeric character references must be terminated by a semicolon","Named character references cannot be empty","Numeric character references cannot be empty","Named character references must be known","Numeric character references cannot be disallowed","Numeric character references cannot be outside the permissible Unicode range"],_=/["&'<>`]/g,S=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,k=/[\x01-\t\v\f\x0E-\x1F\x7F\x81\x8D\x8F\x90\x9D\xA0-\uFFFF]/g,T=/[|\\{}()[\]^$+*?.]/g,N=new WeakMap;function A(e){return"&#x"+e.toString(16).toUpperCase()+";"}var I=n(16277),M=n(18283);function P(e){let t=0,n=e.stack.length;for(;--n>-1;){let r=e.stack[n];if("blockquote"===r||"listItem"===r)break;"mdxJsxFlowElement"===r&&t++}return t}function R(e){return"  ".repeat(e)}function O(){return"<"}var L=n(38173),F=n(87358);let V,D,j,H,J=!0;void 0!==F&&({FORCE_COLOR:V,NODE_DISABLE_COLORS:D,NO_COLOR:j,TERM:H}=F.env||{},J=F.stdout&&F.stdout.isTTY);let B={enabled:!D&&null==j&&"dumb"!==H&&(null!=V&&"0"!==V||J),reset:Z(0,0),bold:Z(1,22),dim:Z(2,22),italic:Z(3,23),underline:Z(4,24),inverse:Z(7,27),hidden:Z(8,28),strikethrough:Z(9,29),black:Z(30,39),red:Z(31,39),green:Z(32,39),yellow:Z(33,39),blue:Z(34,39),magenta:Z(35,39),cyan:Z(36,39),white:Z(37,39),gray:Z(90,39),grey:Z(90,39),bgBlack:Z(40,49),bgRed:Z(41,49),bgGreen:Z(42,49),bgYellow:Z(43,49),bgBlue:Z(44,49),bgMagenta:Z(45,49),bgCyan:Z(46,49),bgWhite:Z(47,49)};function $(e,t){let n=0,r,i="",l="";for(;n<e.length;n++)i+=(r=e[n]).open,l+=r.close,~t.indexOf(r.close)&&(t=t.replace(r.rgx,r.close+r.open));return i+t+l}function Z(e,t){let n={open:`\x1b[${e}m`,close:`\x1b[${t}m`,rgx:RegExp(`\\x1b\\[${t}m`,"g")};return function(t){let r;return void 0!==this&&void 0!==this.has?(~this.has.indexOf(e)||(this.has.push(e),this.keys.push(n)),void 0===t?this:B.enabled?$(this.keys,t+""):t+""):void 0===t?((r={has:[e],keys:[n]}).reset=B.reset.bind(r),r.bold=B.bold.bind(r),r.dim=B.dim.bind(r),r.italic=B.italic.bind(r),r.underline=B.underline.bind(r),r.inverse=B.inverse.bind(r),r.hidden=B.hidden.bind(r),r.strikethrough=B.strikethrough.bind(r),r.black=B.black.bind(r),r.red=B.red.bind(r),r.green=B.green.bind(r),r.yellow=B.yellow.bind(r),r.blue=B.blue.bind(r),r.magenta=B.magenta.bind(r),r.cyan=B.cyan.bind(r),r.white=B.white.bind(r),r.gray=B.gray.bind(r),r.grey=B.grey.bind(r),r.bgBlack=B.bgBlack.bind(r),r.bgRed=B.bgRed.bind(r),r.bgGreen=B.bgGreen.bind(r),r.bgYellow=B.bgYellow.bind(r),r.bgBlue=B.bgBlue.bind(r),r.bgMagenta=B.bgMagenta.bind(r),r.bgCyan=B.bgCyan.bind(r),r.bgWhite=B.bgWhite.bind(r),r):B.enabled?$([n],t+""):t+""}}function U(){}U.prototype={diff:function(e,t){var n,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},i=r.callback;"function"==typeof r&&(i=r,r={}),this.options=r;var l=this;function o(e){return i?(setTimeout(function(){i(void 0,e)},0),!0):e}e=this.castInput(e),t=this.castInput(t),e=this.removeEmpty(this.tokenize(e));var a=(t=this.removeEmpty(this.tokenize(t))).length,s=e.length,u=1,c=a+s;r.maxEditLength&&(c=Math.min(c,r.maxEditLength));var d=null!=(n=r.timeout)?n:1/0,f=Date.now()+d,p=[{oldPos:-1,lastComponent:void 0}],h=this.extractCommon(p[0],t,e,0);if(p[0].oldPos+1>=s&&h+1>=a)return o([{value:this.join(t),count:t.length}]);var g=-1/0,m=1/0;function v(){for(var n=Math.max(g,-u);n<=Math.min(m,u);n+=2){var r=void 0,i=p[n-1],c=p[n+1];i&&(p[n-1]=void 0);var d=!1;if(c){var f=c.oldPos-n;d=c&&0<=f&&f<a}var v=i&&i.oldPos+1<s;if(!d&&!v){p[n]=void 0;continue}if(r=!v||d&&i.oldPos+1<c.oldPos?l.addToPath(c,!0,void 0,0):l.addToPath(i,void 0,!0,1),h=l.extractCommon(r,t,e,n),r.oldPos+1>=s&&h+1>=a)return o(function(e,t,n,r,i){for(var l,o=[];t;)o.push(t),l=t.previousComponent,delete t.previousComponent,t=l;o.reverse();for(var a=0,s=o.length,u=0,c=0;a<s;a++){var d=o[a];if(d.removed){if(d.value=e.join(r.slice(c,c+d.count)),c+=d.count,a&&o[a-1].added){var f=o[a-1];o[a-1]=o[a],o[a]=f}}else{if(!d.added&&i){var p=n.slice(u,u+d.count);p=p.map(function(e,t){var n=r[c+t];return n.length>e.length?n:e}),d.value=e.join(p)}else d.value=e.join(n.slice(u,u+d.count));u+=d.count,d.added||(c+=d.count)}
1}var h=o[s-1];return s>1&&"string"==typeof h.value&&(h.added||h.removed)&&e.equals("",h.value)&&(o[s-2].value+=h.value,o.pop()),o}(l,r.lastComponent,t,e,l.useLongestToken));p[n]=r,r.oldPos+1>=s&&(m=Math.min(m,n-1)),h+1>=a&&(g=Math.max(g,n+1))}u++}if(i)!function e(){setTimeout(function(){if(u>c||Date.now()>f)return i();v()||e()},0)}();else for(;u<=c&&Date.now()<=f;){var y=v();if(y)return y}},addToPath:function(e,t,n,r){var i=e.lastComponent;return i&&i.added===t&&i.removed===n?{oldPos:e.oldPos+r,lastComponent:{count:i.count+1,added:t,removed:n,previousComponent:i.previousComponent}}:{oldPos:e.oldPos+r,lastComponent:{count:1,added:t,removed:n,previousComponent:i}}},extractCommon:function(e,t,n,r){for(var i=t.length,l=n.length,o=e.oldPos,a=o-r,s=0;a+1<i&&o+1<l&&this.equals(t[a+1],n[o+1]);)a++,o++,s++;return s&&(e.lastComponent={count:s,previousComponent:e.lastComponent}),e.oldPos=o,a},equals:function(e,t){return this.options.comparator?this.options.comparator(e,t):e===t||this.options.ignoreCase&&e.toLowerCase()===t.toLowerCase()},removeEmpty:function(e){for(var t=[],n=0;n<e.length;n++)e[n]&&t.push(e[n]);return t},castInput:function(e){return e},tokenize:function(e){return e.split("")},join:function(e){return e.join("")}};var W=new U,K=/^[A-Za-z\xC0-\u02C6\u02C8-\u02D7\u02DE-\u02FF\u1E00-\u1EFF]+$/,z=/\S/,q=new U;q.equals=function(e,t){return this.options.ignoreCase&&(e=e.toLowerCase(),t=t.toLowerCase()),e===t||this.options.ignoreWhitespace&&!z.test(e)&&!z.test(t)},q.tokenize=function(e){for(var t=e.split(/([^\S\r\n]+|[()[\]{}'"\r\n]|\b)/),n=0;n<t.length-1;n++)!t[n+1]&&t[n+2]&&K.test(t[n])&&K.test(t[n+2])&&(t[n]+=t[n+2],t.splice(n+1,2),n--);return t};var G=new U;function Y(e){return(Y="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}G.tokenize=function(e){this.options.stripTrailingCr&&(e=e.replace(/\r\n/g,"\n"));var t=[],n=e.split(/(\n|\r\n)/);n[n.length-1]||n.pop();for(var r=0;r<n.length;r++){var i=n[r];r%2&&!this.options.newlineIsToken?t[t.length-1]+=i:(this.options.ignoreWhitespace&&(i=i.trim()),t.push(i))}return t},new U().tokenize=function(e){return e.split(/(\S.+?[.!?])(?=\s+|$)/)},new U().tokenize=function(e){return e.split(/([{}:;,]|\s+)/)};var X=Object.prototype.toString,Q=new U;Q.useLongestToken=!0,Q.tokenize=G.tokenize,Q.castInput=function(e){var t=this.options,n=t.undefinedReplacement,r=t.stringifyReplacer,i=void 0===r?function(e,t){return void 0===t?n:t}:r;return"string"==typeof e?e:JSON.stringify(function e(t,n,r,i,l){for(n=n||[],r=r||[],i&&(t=i(l,t)),o=0;o<n.length;o+=1)if(n[o]===t)return r[o];if("[object Array]"===X.call(t)){for(n.push(t),a=Array(t.length),r.push(a),o=0;o<t.length;o+=1)a[o]=e(t[o],n,r,i,l);return n.pop(),r.pop(),a}if(t&&t.toJSON&&(t=t.toJSON()),"object"===Y(t)&&null!==t){n.push(t),a={},r.push(a);var o,a,s,u=[];for(s in t)t.hasOwnProperty(s)&&u.push(s);for(u.sort(),o=0;o<u.length;o+=1)a[s=u[o]]=e(t[s],n,r,i,s);n.pop(),r.pop()}else a=t;return a}(e,null,null,i),i,"  ")},Q.equals=function(e,t){return U.prototype.equals.call(Q,e.replace(/,([\r\n])/g,"$1"),t.replace(/,([\r\n])/g,"$1"))};var ee=new U;ee.tokenize=function(e){return e.slice()},ee.join=ee.removeEmpty=function(e){return e};B.red,B.grey,B.green,B.dim().italic,B.dim("→"),B.dim("\xb7"),B.dim("↵");function et(e){let t=(e=e.replace(/\r?\n/g,"\n")).match(/^[ \t]*(?=\S)/gm),n=0,r=1/0,i=(t||[]).length;for(;n<i;n++)r=Math.min(r,t[n].length);return i&&r?e.replace(RegExp(`^[ \\t]{${r}}`,"gm"),""):e}class en extends Error{constructor(e={}
1){super(e.message),this.name="Assertion",this.code="ERR_ASSERTION",Error.captureStackTrace&&Error.captureStackTrace(this,this.constructor),this.details=e.details||!1,this.generated=!!e.generated,this.operator=e.operator,this.expects=e.expects,this.actual=e.actual}}function er(e,t,n,r,i,l,o){if(e)return;if(o instanceof Error)throw o;let a=i&&i(t,n);throw new en({actual:t,expects:n,operator:r,message:o||l,details:a,generated:!o})}function ei(e,t){er(!e,!0,!1,"not",!1,"Expected value to be falsey",t)}ei.ok=ei,ei.equal=function(e,t,n){er(!(0,L.j)(e,t),e,t,"not.equal",!1,"Expected values not to be deeply equal",n)},ei.type=function(e,t,n){let r=typeof e;er(r!==t,r,t,"not.type",!1,`Expected "${r}" not to be "${t}"`,n)},ei.instance=function(e,t,n){let r="`"+(t.name||t.constructor.name)+"`";er(!(e instanceof t),e,t,"not.instance",!1,`Expected value not to be an instance of ${r}`,n)},ei.snapshot=function(e,t,n){er((e=et(e))!==(t=et(t)),e,t,"not.snapshot",!1,"Expected value not to match snapshot",n)},ei.fixture=function(e,t,n){er((e=et(e))!==(t=et(t)),e,t,"not.fixture",!1,"Expected value not to match fixture",n)},ei.match=function(e,t,n){"string"==typeof t?er(!e.includes(t),e,t,"not.match",!1,`Expected value not to include "${t}" substring`,n):er(!t.test(e),e,t,"not.match",!1,`Expected value not to match \`${String(t)}\` pattern`,n)},ei.throws=function(e,t,n){n||"string"!=typeof t||(n=t,t=null);try{e()}catch(e){"function"==typeof t?er(!t(e),!0,!1,"not.throws",!1,"Expected function not to throw matching exception",n):t instanceof RegExp?er(!t.test(e.message),!0,!1,"not.throws",!1,`Expected function not to throw exception matching \`${String(t)}\` pattern`,n):t||er(!1,!0,!1,"not.throws",!1,"Expected function not to throw",n)}};var el=n(17032),eo=n(23362),ea=n(41006);let es={equalsTo:61},eu={data:"data",characterEscape:"characterEscape"},ec={attentionSideAfter:2};var ed="highlightSequenceTemporary",ef="highlightSequence",ep=n(34091),eh=n(79168),eg=n(3407);let em={}.hasOwnProperty,ev=Symbol("continue"),ey=Symbol("exit"),eb=Symbol("skip");function ex(e){return Array.isArray(e)?e:"number"==typeof e?[ev,e]:[e]}function eC(e){return!!(e&&"object"==typeof e&&"type"in e&&"string"==typeof e.type&&e.type.length>0)}function ew(e){return/^\s*$/.test(e.replace(/\/\*[\s\S]*?\*\//g,"").replace(/\/\/[^\r\n]*(\r\n|\n|\r)/g,""))}function eE(e){let t=e||{},n=t.loc||{},r=t.range||[void 0,void 0],i=e_(n.start,r[0]||t.start),l=e_(n.end,r[1]||t.end);if(i&&l)return{start:i,end:l}}function e_(e,t){if(e&&"object"==typeof e){let n="line"in e?eS(e.line):void 0,r="column"in e?eS(e.column):void 0;if(n&&void 0!==r)return{line:n,column:r+1,offset:eS(t)}}}function eS(e){return"number"==typeof e&&e>-1?e:void 0}let ek="https://github.com/micromark/micromark-extension-mdx-expression/tree/main/packages/micromark-extension-mdx-expression",eT="#unexpected-type-in-code-expected-an-object-spread-spread";function eN(e,t,n,r,i,l,o,a,s,u,c){let d,f,p=this,h=this.events.length+3,g=0;return function(t){return e.enter(n),e.enter(r),e.consume(t),e.exit(r),d=p.now(),m};function m(c){if(null===c){if(f)throw f;let e=new M.o("Unexpected end of file in expression, expected a corresponding closing brace for `{`",{place:p.now(),ruleId:"unexpected-eof",source:"micromark-extension-mdx-expression"});throw e.url=ek+"#unexpected-end-of-file-in-expression-expected-a-corresponding-closing-brace-for-",e}if((0,eg.HP)(c))return e.enter("lineEnding"),e.consume(c),e.exit("lineEnding"),y;if(125===c&&0===g){let g=l?eA.call(p,l,o,i,h,d,u||!1,s||!1):{type:"ok",estree:void 0};if("ok"===g.type){e.enter(r),e.consume(c),e.exit(r);let i=e.exit(n);return a&&g.estree&&Object.assign(i,{estree:g.estree}),t}return f=g.message,e.enter(i),e.consume(c),v}return e.enter(i),v(c)}function v(t){return 125===t&&0===g||null===t||(0,eg.HP)(t)?(e.exit(i),m(t)):(123!==t||l?125===t&&(g-=1):g+=1,e.consume(t),v)}function y(t){let n=p.now();if(n.line!==d.line&&!c&&p.parser.lazy[n.line]){let e=new M.o("Unexpected lazy line in expression in container, expected line to be prefixed with `>` when in a block quote, whitespace when in a list, etc",{place:p.now(),ruleId:"unex
1pected-lazy",source:"micromark-extension-mdx-expression"});throw e.url=ek+"#unexpected-lazy-line-in-expression-in-container-expected-line-to-be-prefixed",e}return(0,eg.On)(t)?(0,eh.N)(e,m,"linePrefix",3)(t):m(t)}}function eA(e,t,n,r,i,l,o){let a=function(e,t){let n,r,i=t.prefix||"",l=t.suffix||"",o=Object.assign({},t.acornOptions),a=[],s=[],u=o.onComment,c=o.onToken,d=!1,f=Object.assign({},o,{onComment:a,preserveParens:!0});c&&(f.onToken=s);let p=function(e,t){let n={value:"",stops:[]},r=-1;for(;++r<e.length;){let i=e[r];if("enter"===i[0]){let e=i[1].type;if("lineEnding"===e||t.includes(e)){let e=i[2].sliceStream(i[1]);for(;e.length>0&&-1===e[0];)e.shift();let t=function(e){let t,n=-1,r=[];for(;++n<e.length;){let i,l=e[n];if("string"==typeof l)i=l;else switch(l){case -5:i="\r";break;case -4:i="\n";break;case -3:i="\r\n";break;case -2:i="	";break;case -1:if(t)continue;i=" ";break;default:i=String.fromCharCode(l)}t=-2===l,r.push(i)}return r.join("")}(e);n.stops.push([n.value.length,i[1].start]),n.value+=t,n.stops.push([n.value.length,i[1].end])}}}return n}(e,t.tokenTypes),h=p.value,g=i+h+l,m=t.expression&&ew(h);if(m&&!t.allowEmpty)throw new M.o("Unexpected empty expression",{place:x(0),ruleId:"unexpected-empty-expression",source:"micromark-extension-mdx-expression"});try{n=t.expression&&!m?t.acorn.parseExpressionAt(g,0,f):t.acorn.parse(g,f)}catch(t){let e=x(t.pos);t.message=String(t.message).replace(/ \(\d+:\d+\)$/,""),t.pos=e.offset,t.loc={line:e.line,column:e.column-1},r=t,d=t.raisedAt>=i.length+h.length||"Unterminated comment"===t.message}if(n&&t.expression&&!m)if(ew(g.slice(n.end,g.length-l.length)))n={type:"Program",start:0,end:i.length+h.length,body:[{type:"ExpressionStatement",expression:n,start:0,end:i.length+h.length}],sourceType:"module",comments:[]};else{let e=x(n.end),t=Error("Unexpected content after expression");t.pos=e.offset,t.loc={line:e.line,column:e.column-1},r=t,n=void 0}if(n){var v,y;let e,t;if(n.comments=a,v=n,"function"==typeof(y=function(e,t,n,r){let i=r[r.length-1],l=t;"ParenthesizedExpression"===e.type&&i&&l&&("number"==typeof n&&(i=i[l],l=n),i[l]=e.expression),b(e)})?e=y:y,(function n(r,i,l,o){return eC(r)&&(a.displayName="node ("+r.type+")"),a;function a(){let a=e?ex(e(r,i,l,o)):[];if(a[0]===ey)return a;if(a[0]!==eb){let e;for(e in r)if(em.call(r,e)&&r[e]&&"object"==typeof r[e]&&"data"!==e&&"position"!==e){let t=o.concat(r),i=r[e];if(Array.isArray(i)){let r=0;for(;r>-1&&r<i.length;){let l=i[r];if(eC(l)){let i=n(l,e,r,t)();if(i[0]===ey)return i;r="number"==typeof i[1]?i[1]:r+1}else r++}}else if(eC(i)){let r=n(i,e,void 0,t)();if(r[0]===ey)return r}}}return t?ex(t(r,i,l,o)):a}})(v,void 0,void 0,[])(),Array.isArray(u))u.push(...a);else if("function"==typeof u)for(let e of a)u("Block"===e.type,e.value,e.start,e.end,e.loc.start,e.loc.end);for(let e of s)e.end<=i.length||e.start-i.length>=h.length||(b(e),Array.isArray(c)?c.push(e):c(e))}return{estree:n,error:r,swallow:d};function b(e){let t=x(e.start),n=x(e.end);e.start=t.offset,e.end=n.offset,e.loc={start:{line:t.line,column:t.column-1,offset:t.offset},end:{line:n.line,column:n.column-1,offset:n.offset}},e.range=[e.start,e.end]}function x(e){let n=e-i.length;n<0?n=0:n>h.length&&(n=h.length);let r=function(e,t){let n=0;for(;n<e.length&&e[n][0]<=t;)n+=1;if(0===n)return;let[r,i]=e[n-1],l=t-r;return{line:i.line,column:i.column+l,offset:i.offset+l}}(p.stops,n);return r||(r={line:t.start.line,column:t.start.column,offset:t.start.offset}),r}}(this.events.slice(r),{acorn:e,tokenTypes:[n],acornOptions:t,start:i,expression:!0,allowEmpty:l,prefix:o?"({":"",suffix:o?"})":""}),s=a.estree;if(o&&s){let e=s.body[0];if("ExpressionStatement"!==e.type||"ObjectExpression"!==e.expression.type){let t=eE(e),n=new M.o("Unexpected `"+e.type+"` in code: expected an object spread (`{...spread}`)",{place:t.start,ruleId:"non-spread",source:"micromark-extension-mdx-expression"});throw n.url=ek+eT,n}if(e.expression.properties[1]){let t=eE(e.expression.properties[1]),n=new M.o("Unexpected extra content in spread: only a single spread is supported",{place:t.start,ruleId:"spread-extra",source:"micromark-extension-mdx-expression"});throw n.url=ek+"#unexpected-extra-content-in-spread-only-a-single-spread-is-supported",n}if(e.expression.properties[0]&&"SpreadElement"!==e.expression.properties[0].type){let t=eE(e.expression.properties[0]),n=new M.o("Unexpected `"+e.expression.properties[0].type+"` in code: only spread elements are supported",{place:t.start,ruleId:"non-spread",source:"micromark-extension-mdx-expression"});throw n.url=ek+eT,n}}if(a.error){let e=new M.o("Could not parse expression with acorn",{cause:a.error,place:{line:a.error.loc.line,column:a.error.loc.column+1,offset:a.error.pos},ruleId:"acorn",source:"micromark-extension-mdx-expression"});return e.url=ek+"#could-not-parse-expression-with-acorn",{type:"nok",message:e}}return{type:"ok",estree:s}}let eI="https://github.com/micromark/micromark-extension-mdx-jsx";function eM(e,t,n,r,i,l,o,a,s,u,c,d,f,p,h,g,m,v,y,b,x,C,w,E,_,S,k,T,N,A,I,P){let R,O,L=this;return function(t){return e.enter(a),e.enter(s),e.consume(t),e.exit(s),F};function F(e){return(0,eg.Ee)(e)?n(e):(R=V,ei(e))}function V(t){return 47===t?(e.enter(u),e.consume(t),e.exit(u),R=D,ei):62===t?er(t):null!==t&&t>=0&&(0,ep.ni)(t)?(e.enter(d),e.enter(f),e.consume(t),j):void eo(t,"before name","a character that can start a name, such as a letter, `$`, or `_`"+(33===t?" (note: to create a comment in MDX, use `{/* text */}`)":""))}function D(t){return 62===t?er(t):null!==t&&t>=0&&(0,ep.ni)(t)?(e.enter(d),e.enter(f),e.consume(t),j):void eo(t,"before name","a character that can start a name, such as a letter, `$`, or `_`"+(42===t||47===t?" (note: JS comments in JSX tags are not supported in MDX)":""))}function j(t){return null!==t&&t>=0&&(0,ep.jD)(t,{jsx:!0})?(e.consume(t),j):46===t||47===t||58===t||62===t||123===t||(0,eg.Ee)(t)||(0,eg.Ny)(t)?(e.exit(f),R=H,ei(t)):void eo(t,"in name","a 
1name character such as letters, digits, `$`, or `_`; whitespace before attributes; or the end of the tag"+(64===t?" (note: to create a link in MDX, use `[text](url)`)":""))}function H(t){return 46===t?(e.enter(p),e.consume(t),e.exit(p),R=J,ei):58===t?(e.enter(g),e.consume(t),e.exit(g),R=Z,ei):47===t||62===t||123===t||null!==t&&t>=0&&(0,ep.ni)(t)?(e.exit(d),K(t)):void eo(t,"after name","a character that can start an attribute name, such as a letter, `$`, or `_`; whitespace before attributes; or the end of the tag")}function J(t){if(null!==t&&t>=0&&(0,ep.ni)(t))return e.enter(h),e.consume(t),B;eo(t,"before member name","a character that can start an attribute name, such as a letter, `$`, or `_`; whitespace before attributes; or the end of the tag")}function B(t){return null!==t&&t>=0&&(0,ep.jD)(t,{jsx:!0})?(e.consume(t),B):46===t||47===t||62===t||123===t||(0,eg.Ee)(t)||(0,eg.Ny)(t)?(e.exit(h),R=$,ei(t)):void eo(t,"in member name","a name character such as letters, digits, `$`, or `_`; whitespace before attributes; or the end of the tag"+(64===t?" (note: to create a link in MDX, use `[text](url)`)":""))}function $(t){return 46===t?(e.enter(p),e.consume(t),e.exit(p),R=J,ei):47===t||62===t||123===t||null!==t&&t>=0&&(0,ep.ni)(t)?(e.exit(d),K(t)):void eo(t,"after member name","a character that can start an attribute name, such as a letter, `$`, or `_`; whitespace before attributes; or the end of the tag")}function Z(t){if(null!==t&&t>=0&&(0,ep.ni)(t))return e.enter(m),e.consume(t),U;eo(t,"before local name","a character that can start a name, such as a letter, `$`, or `_`"+(43===t||null!==t&&t>46&&t<58?" (note: to create a link in MDX, use `[text](url)`)":""))}function U(t){return null!==t&&t>=0&&(0,ep.jD)(t,{jsx:!0})?(e.consume(t),U):47===t||62===t||123===t||(0,eg.Ee)(t)||(0,eg.Ny)(t)?(e.exit(m),R=W,ei(t)):void eo(t,"in local name","a name character such as letters, digits, `$`, or `_`; whitespace before attributes; or the end of the tag")}function W(t){if(47===t||62===t||123===t||null!==t&&t>=0&&(0,ep.ni)(t))return e.exit(d),K(t);eo(t,"after local name","a character that can start an attribute name, such as a letter, `$`, or `_`; whitespace before attributes; or the end of the tag")}function K(t){return 47===t?(e.enter(c),e.consume(t),e.exit(c),R=en,ei):62===t?er(t):123===t?eN.call(L,e,z,v,y,b,r,i,l,!0,!1,o)(t):null!==t&&t>=0&&(0,ep.ni)(t)?(e.enter(x),e.enter(C),e.enter(w),e.consume(t),q):void eo(t,"before attribute name","a character that can start an attribute name, such as a letter, `$`, or `_`; whitespace before attributes; or the end of the tag")}function z(e){return R=K,ei(e)}function q(t){return null!==t&&t>=0&&(0,ep.jD)(t,{jsx:!0})?(e.consume(t),q):47===t||58===t||61===t||62===t||123===t||(0,eg.Ee)(t)||(0,eg.Ny)(t)?(e.exit(w),R=G,ei(t)):void eo(t,"in attribute name","an attribute name character such as letters, digits, `$`, or `_`; `=` to initialize a value; whitespace before attributes; or the end of the tag")}function G(t){return 58===t?(e.enter(E),e.consume(t),e.exit(E),R=Y,ei):61===t?(e.exit(C),e.enter(S),e.consume(t),e.exit(S),R=ee,ei):47===t||62===t||123===t||(0,eg.Ee)(t)||(0,eg.Ny)(t)||null!==t&&t>=0&&(0,ep.ni)(t)?(e.exit(C),e.exit(x),R=K,ei(t)):void eo(t,"after attribute name","a character that can start an attribute name, such as a letter, `$`, or `_`; `=` to initialize a value; or the end of the tag")}function Y(t){if(null!==t&&t>=0&&(0,ep.ni)(t))return e.enter(_),e.consume(t),X;eo(t,"before local attribute name","a character that can start an attribute name, such as a letter, `$`, or `_`; `=` to initialize a value; or the end of the tag")}function X(t){return null!==t&&t>=0&&(0,ep.jD)(t,{jsx:!0})?(e.consume(t),X):47===t||61===t||62===t||123===t||(0,eg.Ee)(t)||(0,eg.Ny)(t)?(e.exit(_),e.exit(C),R=Q,ei(t)):void eo(t,"in local attribute name","an attribute name character such as letters, digits, `$`, or `_`; `=` to initialize a value; whitespace before attributes; or the end of the tag")}function Q(t){return 61===t?(e.enter(S),e.consume(t),e.exit(S),R=ee,ei):47===t||62===t||123===t||null!==t&&t>=0&&(0,ep.ni)(t)?(e.exit(x),K(t)):void eo(t,"after local attribute name","a character that can start an attribute name, such as a letter, `$`, or `_`; `=` to initialize a value; or the end of the tag")}function ee(t){return 34===t||39===t?(e.enter(k),e.enter(T),e.consume(t),e.exit(T),O=t,function t(n){return(null===n&&eo(n,"in attribute value","a corresponding closing quote `"+String.fromCodePoint(O)+"`"),n===O)?(e.enter(T),e.consume(n),e.exit(T),e.exit(k),e.exit(x),O=void 0,R=K,ei):(0,eg.HP)(n)?(R=t,ei(n)):(e.enter(N),function n(r){return null===r||r===O||(0,eg.HP)(r)?(e.exit(N),t(r)):(e.consume(r),n)}(n))}):123===t?eN.call(L,e,et,A,I,P,r,i,l,!1,!1,o)(t):void eo(t,"before attribute value","a character that can start an attribute value, such as `\"`, `'`, or `{`"+(60===t?" (note: to use an element or fragment as a prop value in MDX, use `{<element />}`)":""))}function et(t){return e.exit(x),R=K,ei(t)}function en(e){if(62===e)return er(e);eo(e,"after self-closing slash","`>` to end the tag"+(42===e||47===e?" (note: JS comments in JSX tags are not supported in MDX)":""))}function er(n){return e.enter(s),e.consume(n),e.exit(s),e.exit(a),t}function ei(t){return(0,eg.HP)(t)?(e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),el):(0,eg.On)(t)||(0,eg.Ny)(t)?(e.enter("esWhitespace"),function t(n){return(0,eg.HP)(n)?(e.exit("esWhitespace"),ei(n)):(0,eg.On)(n)||(0,eg.Ny)(n)?(e.consume(n),t):(e.exit("esWhitespace"),R(n))}(t)):R(t)}function el(e){if(!o&&L.parser.lazy[L.now().line]){let e=new M.o("Unexpected lazy line in container, expected line to be prefixed with `>` when in a block quote, whitespace when in a list, etc",L.now(),"micromark-extension-mdx-jsx:unexpected-lazy");throw e.url=eI+"#unexpected-lazy-line-in-container-expected-line-to-be",e}return ei(e)}function eo(e,t,n){let r=new M.o("Unexpected "+(null===e?"end of file":"character `"+(96===e?"` ` `":String.fromCodePoint(e))+"` (U+"+e.toString(16).toUpperCase().padStart(4,"0")+")")+" "+t+", expected "+n,L.now(),"micromark-extension-mdx-jsx:unexpected-"+(null===e?"eof":"character"));throw r.url=eI+(null===e?"#unexpected-end-of-file-at-expected-expect":"#unexpected-character-at-ex
1pected-expect"),r}}var eP=n(61536),eR=n(91249),eO=n(11018),eL=Object.defineProperty,eF=(e,t,n)=>((e,t,n)=>t in e?eL(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n)(e,"symbol"!=typeof t?t+"":t,n);let eV="generic-html";class eD extends a.fGB{static getType(){return eV}static clone(e){return new eD(e.__tag,e.__nodeType,e.__attributes,e.__key)}getTag(){return this.__tag}getNodeType(){return this.__nodeType}getAttributes(){return this.__attributes}updateAttributes(e){this.getWritable().__attributes=e}getStyle(){var e;return null==(e=this.__attributes.find(e=>"style"===e.name))?void 0:e.value}createDOM(){let e=this.__tag,t=document.createElement(e);return this.__attributes.forEach(e=>{t.setAttribute(e.name,e.value)}),t}updateDOM(){return!1}static importDOM(){return{}}exportDOM(e){let{element:t}=super.exportDOM(e);return{element:t}}static importJSON(e){let t=ej(e.tag,e.mdxType,e.attributes);return t.setFormat(e.format),t.setIndent(e.indent),t.setDirection(e.direction),t}exportJSON(){return{...super.exportJSON(),tag:this.getTag(),attributes:this.__attributes,mdxType:this.__nodeType,type:eV,version:1}}extractWithChild(){return!0}isInline(){return"mdxJsxTextElement"===this.__nodeType}constructor(e,t,n,r){super(r),eF(this,"__tag"),eF(this,"__nodeType"),eF(this,"__attributes"),this.__tag=e,this.__nodeType=t,this.__attributes=n}}function ej(e,t,n){return(0,a.pTq)(new eD(e,t,n))}let eH={testLexicalNode:function(e){return e instanceof eD},visitLexicalNode(e){let{actions:t,lexicalNode:n}=e;t.addAndStepInto("mdxJsxTextElement",{name:n.getTag(),type:n.getNodeType(),attributes:n.getAttributes()})},priority:-100},eJ={testLexicalNode:a.wH$,visitLexicalNode:e=>{let{mdastParent:t,actions:n}=e;n.appendToParent(t,{type:"text",value:"\n"})}},eB={testLexicalNode:a.bSg,visitLexicalNode:e=>{let{actions:t}=e;t.addAndStepInto("paragraph")}},e$={testLexicalNode:a.hVZ,visitLexicalNode:e=>{let{actions:t}=e;t.addAndStepInto("root")}};var eZ=n(30710);function eU(e){return"text"===e.type}let eW=["u","span","sub","sup"],eK={shouldJoin:(e,t)=>["text","emphasis","strong","highlight"].includes(e.type)?e.type===t.type:!!("mdxJsxTextElement"===e.type&&"mdxJsxTextElement"===t.type&&eW.includes(t.name))&&e.name===t.name&&JSON.stringify(e.attributes)===JSON.stringify(t.attributes),join:(e,t)=>eU(e)&&eU(t)?{type:"text",value:e.value+t.value}:{...e,children:[...e.children,...t.children]},testLexicalNode:a.kFe,visitLexicalNode:e=>{let{lexicalNode:t,mdastParent:n,actions:r}=e,i=t.getPreviousSibling(),l=(0,a.kFe)(i)?i.getFormat():0,o=t.getTextContent(),s=t.getFormat(),u=t.getStyle(),c=n;if(u&&(c=r.appendToParent(c,{type:"mdxJsxTextElement",name:"span",children:[],attributes:[{type:"mdxJsxAttribute",name:"style",value:u}]})),l&s&eZ.Ig&&(c=r.appendToParent(c,{type:"mdxJsxTextElement",name:"u",children:[],attributes:[]})),l&s&eZ.o4&&(c=r.appendToParent(c,{type:"mdxJsxTextElement",name:"sup",children:[],attributes:[]})),l&s&eZ.Te&&(c=r.appendToParent(c,{type:"mdxJsxTextElement",name:"sub",children:[],attributes:[]})),l&s&eZ.S3&&(c=r.appendToParent(c,{type:"emphasis",children:[]})),l&s&eZ.FA&&(c=r.appendToParent(c,{type:"strong",children:[]})),l&s&eZ.J6&&(c=r.appendToParent(c,{type:"delete",children:[]})),l&s&eZ.sM&&(c=r.appendToParent(c,{type:"highlight",children:[]})),s&eZ.Ig&&!(l&eZ.Ig)&&(c=r.appendToParent(c,{type:"mdxJsxTextElement",name:"u",children:[],attributes:[]})),s&eZ.o4&&!(l&eZ.o4)&&(c=r.appendToParent(c,{type:"mdxJsxTextElement",name:"sup",children:[],attributes:[]})),s&eZ.Te&&!(l&eZ.Te)&&(c=r.appendToParent(c,{type:"mdxJsxTextElement",name:"sub",children:[],attributes:[]})),s&eZ.S3&&!(l&eZ.S3)&&(c=r.appendToParent(c,{type:"emphasis",children:[]})),s&eZ.FA&&!(l&eZ.FA)&&(c=r.appendToParent(c,{type:"strong",children:[]})),s&eZ.J6&&!(l&eZ.J6)&&(c=r.appendToParent(c,{type:"delete",children:[]})),s&eZ.sM&&!(l&eZ.sM)&&(c=r.appendToParent(c,{type:"highlight",children:[]})),s&eZ.jG)return void r.appendToParent(c,{type:"inlineCode",value:o});r.appendToParent(c,{type:"text",value:o})}},ez={testNode:"break",visitNode:function(e){let{lexicalParent:t}=e;t.append((0,a.WKo)())}};function eq(e,t){return[{testNode:t=>"mdxJsxTextElement"===t.type&&t.name===e,visitNode(e){let{actions:n,mdastNode:r,lexicalParent:i}=e;n.addFormatting(t),n.visitChildren(r,i)}},{testNode:t=>"html"===t.type&&t.value==="<".concat(e,">"),visitNode(e){let{actions:n,mdastParent:r}=e;n.addFormatting(t,r)}},{testNode:t=>"html"===t.type&&t.value==="</".concat(e,">"),visitNode(e){let{actions:n,mdastParent:r}=e;n.removeFormatting(t,r)}}]}let eG=[{testNode:"emphasis",visitNode(e){let{mdastNode:t,actions:n,lexicalParent:r}=e;n.addFormatting(eZ.S3),n.visitChildren(t,r)}},{testNode:"strong",visitNode(e){let{mdastNode:t,actions:n,lexicalParent:r}=e;n.addFormatting(eZ.FA),n.visitChildren(t,r)}},...eq("u",eZ.Ig),...eq("code",eZ.jG),{testNode:"inlineCode",visitNode(e){let{mdastNode:t,actions:n}=e;n.addAndStepInto((0,a.sTu)(t.value).setFormat(n.getParentFormatting()|eZ.jG))}},{testNode:"delete",visitNode(e){let{mdastNode:t,actions:n,lexicalParent:r}=e;n.addFormatting(eZ.J6),n.visitChildren(t,r)}},{testNode:"highlight",visitNode(e){let{mdastNode:t,actions:n,lexicalParent:r}=e;n.addFormatting(eZ.sM),n.visitChildren(t,r)}},...eq("sup",eZ.o4),...eq("sub",eZ.Te)],eY={testNode:n(14445).X,visitNode:function(e){let{mdastNode:t,actions:n,lexicalParent:r}=e;"span"===t.name&&1===t.attributes.length&&"mdxJsxAttribute"===t.attributes[0].type&&"style"===t.attributes[0].name?(n.addStyle(t.attributes[0].value,t),n.visitChildren(t,r)):n.addAndStepInto(ej(t.name,t.type,t.attributes))},priority:-100},eX=["listitem","admonition"],eQ={testNode:"paragraph",visitNode:function(e){let{mdastNode:t,mdastParent:n,lexicalParent:r,actions:i}=e,l=r.getType();if(eX.includes(l)){var o;let e=null!=(o=null==n?void 0:n.children.indexOf(t))?o:-1,s=e>0?null==n?void 0:n.children.at(e-1):void 0;"listitem"===l&&(null==s?void 0:s.type)==="paragraph"&&r.append((0,a.WKo)(),(0,a.WKo)()),i.visitChildren(t,r)}else i.addAndStepInto((0,a.lJ7)())}},e0={testNode:"root",visitNode(e){let{actions:t,mdastNode:n,lexicalParent:r}=e;t.visitChildren(n,r)}},e1={testNode:"text",visitNode(e){let{mdastNode:t,actions:n}=e,r=(0,a.sTu)(t.value);r.setFormat(n.getParentFormatting());let i=n.getParentStyle();""!==i&&r.setStyle(i),n.addAndStepInto(r)}},e5={dash:45,eof:null,exclamationMark:33,greaterThan:62},e2={data:"data",lineEnding:"lineEnding",linePrefix:"linePrefix"}
1,e9=(e,t,n)=>{return function(t){return e.enter("comment"),e.consume(t),r};function r(t){return t===e5.exclamationMark?(e.consume(t),i):n(t)}function i(t){return t===e5.dash?(e.consume(t),l):n(t)}function l(t){return t===e5.dash?(e.consume(t),o):n(t)}function o(t){return t===e5.greaterThan?n(t):(0,eg.HP)(t)?u(t):(e.enter(e2.data),t===e5.dash)?(e.consume(t),a):s(t)}function a(e){return e===e5.greaterThan?n(e):s(e)}function s(t){return t===e5.eof?n(t):t===e5.dash?(e.consume(t),d):(0,eg.HP)(t)?(e.exit(e2.data),u(t)):(e.consume(t),s)}function u(t){return e.enter(e2.lineEnding),e.consume(t),e.exit(e2.lineEnding),(0,eh.N)(e,c,e2.linePrefix)}function c(t){return(0,eg.HP)(t)?u(t):(e.enter(e2.data),s(t))}function d(t){return t===e5.dash?(e.consume(t),f):s(t)}function f(n){return n===e5.greaterThan?(e.exit(e2.data),e.enter("commentEnd"),e.consume(n),e.exit("commentEnd"),e.exit("comment"),t(n)):n===e5.dash?(e.consume(n),f):s(n)}},e3={flow:{60:{tokenize:e9,concrete:!0}},text:{60:{tokenize:e9}}},e7={bold:"_bold_6j9u9_10",italic:"_italic_6j9u9_14",underline:"_underline_6j9u9_18",strikethrough:"_strikethrough_6j9u9_34",underlineStrikethrough:"_underlineStrikethrough_6j9u9_38",subscript:"_subscript_6j9u9_42",superscript:"_superscript_6j9u9_47",code:"_code_6j9u9_52",quote:"_quote_6j9u9_59",nestedListItem:"_nestedListItem_6j9u9_66",listitem:"_listitem_6j9u9_76",listItemChecked:"_listItemChecked_6j9u9_80",listItemUnchecked:"_listItemUnchecked_6j9u9_81",admonitionDanger:"_admonitionDanger_6j9u9_158",admonitionInfo:"_admonitionInfo_6j9u9_159",admonitionNote:"_admonitionNote_6j9u9_160",admonitionTip:"_admonitionTip_6j9u9_161",admonitionCaution:"_admonitionCaution_6j9u9_162"},e8={quote:e7.quote,text:{bold:e7.bold,italic:e7.italic,underline:e7.underline,code:e7.code,strikethrough:e7.strikethrough,subscript:e7.subscript,superscript:e7.superscript,underlineStrikethrough:e7.underlineStrikethrough},list:{listitem:e7.listitem,listitemChecked:e7.listItemChecked,listitemUnchecked:e7.listItemUnchecked,nested:{listitem:e7.nestedListItem}},admonition:{danger:e7.admonitionDanger,info:e7.admonitionInfo,note:e7.admonitionNote,tip:e7.admonitionTip,caution:e7.admonitionCaution}};var e4=n(38195),e6=n(17093);let te=(0,a.guI)("NESTED_EDITOR_UPDATED_COMMAND"),tt=(0,u.fh)(null),tn=(0,u.fh)(null),tr=(0,u.fh)(""),ti=(0,u.fh)(!0),tl=(0,u.fh)(!1,e=>{e.sub(e.pipe(tl,(0,u.EY)(tt)),e=>{let[t,n]=e;null==n||n.setEditable(!t)})}),to=(0,u.fh)(""),ta=(0,u.fh)(!1),ts=(0,u.fh)(!1),tu=(0,u.fh)(0),tc=(0,u.fh)(null),td=(0,u.HN)(e=>{e.link(e.pipe(tc,(0,u.pb)(e=>null!==e)),td)}),tf=(0,u.HN)(e=>{e.sub(e.pipe(tf,(0,u.EY)(tn)),e=>{let[t,n]=e;null==n||n.dispatchCommand(a.mB,t)})}),tp=(0,u.fh)(null,e=>{e.sub(e.pipe(tp,(0,u.EY)(tn)),t=>{let[n,r]=t;if(!n||!r)return;let i=n.anchor.getNode(),o="root"===i.getKey()?i:(0,a.BtT)(i,e=>{let t=e.getParent();return null!==t&&(0,a.IqF)(t)});null!=o||(o=i.getTopLevelElementOrThrow());let s=o.getKey();if(null!==r.getElementByKey(s)){let t=(0,l.Pi)(o)?o.getTag():o.getType();e.pub(nr,t)}})}),th=(0,u.fh)(""),tg=(0,u.fh)(""),tm=(0,u.fh)(!1),tv=(0,u.HN)(e=>{e.link(tg,tv),e.sub(th,t=>{e.pubIn({[tm]:!0,[tg]:t})})}),ty=(0,u.HN)(e=>{e.link(e.pipe(tv,(0,u.EY)(tH),(0,u.pb)(e=>{let[,t]=e;return!t}),(0,u.Tj)(e=>{let[t]=e;return t})),ty)},!0),tb=(0,u.fh)([]),tx=(0,u.fh)([]),tC=(0,u.fh)([]),tw=(0,u.fh)([]),tE=(0,u.fh)([]),t_=(0,u.fh)([]),tS=(0,u.fh)({}),tk=(0,u.fh)(!1),tT=(0,u.fh)([]),tN=(0,u.fh)([]),tA=(0,u.fh)([]),tI=(0,u.fh)(""),tM=(0,u.fh)(null),tP=(0,u.fh)(null),tR=(0,u.fh)(null),tO=tG(tx),tL=tG(tb),tF=tG(tC),tV=tG(tw),tD=tG(tE),tj=tG(t_),tH=(0,u.fh)(!1),tJ=(0,u.HN)(e=>{e.sub(e.pipe(tJ,(0,u.EY)(tg,tt,ts),(0,u.pb)(e=>{let[t,n]=e;return t.trim()!==n.trim()})),t=>{let[n,,r,i]=t;e.pub(tH,!0),null==r||r.update(()=>{(0,a.NiT)().clear(),t0(e,(0,a.NiT)(),n),i?r.focus():(0,a.n1P)(null)},{onUpdate:()=>{e.pub(tH,!1)}})})}),tB=(0,u.HN)(e=>{e.sub(e.pipe(tB,(0,u.EY)(tn,ts)),t=>{let[n,r,i]=t;null==r||r.update(()=>{let t=(0,a.vJq)();if(null!==t){let r={children:[],append(e){this.children.push(e)},getType:()=>t.getNodes()[0].getType()};t0(e,r,n),(0,a.H2A)(r.children)}i?r.focus():(0,a.n1P)(null)})})});function t$(){return(0,u.SQ)((e,t)=>
1{let[n,r]=t;return e.forEach(e=>{if(!e)throw Error("You have a subscription that does not return a teardown");e()}),r?n.map(e=>e(r)):[]},[])}let tZ=(0,u.fh)(null),tU=(0,u.fh)([],e=>{e.pipe(e.combine(tU,tn),t$())}),tW=(0,u.fh)([],e=>{e.pipe(e.combine(tW,tt),t$())}),tK=(0,u.fh)(null,eO.lQ,(e,t)=>!!(e&&t&&e.editorRef===t.editorRef)),tz=(0,u.HN)(),tq=(0,u.fh)(e=>{throw Error("No icon component for ".concat(e))});function tG(e,t){return(0,u.HN)((n,r)=>{n.changeWith(e,r,(e,t)=>{Array.isArray(t)||(t=[t]);let n=e;for(let r of t)e.includes(r)||(n=[...n,r]);return n}),null==t||t(n,r)})}function tY(e){let t=(0,a.vJq)();(0,a.I2P)(t)&&e.pubIn({[tp]:t,[tu]:t.format})}let tX=tG(tW,(e,t)=>{e.pub(t,[t=>t.registerCommand(a.MvL,(t,n)=>(e.pubIn({[tn]:n,[ts]:!0}),null===n._parentEditor&&n.getEditorState().read(()=>{e.pub(tK,{rootNode:(0,a.NiT)(),editorType:"lexical",editorRef:n})}),tY(e),!1),a.da8),t=>t.registerUpdateListener(n=>{let r,{dirtyElements:i,dirtyLeaves:l,editorState:o}=n;null===e.getValue(tc)&&(0!==i.size||0!==l.size)&&(o.read(()=>{(0,a.NiT)().getLastChild()instanceof a.Kp7&&t.update(()=>{(0,a.NiT)().append((0,a.lJ7)())},{discrete:!0}),r=(0,eP.i)({root:(0,a.NiT)(),visitors:e.getValue(tE),jsxComponentDescriptors:e.getValue(tT),toMarkdownExtensions:e.getValue(t_),toMarkdownOptions:e.getValue(tS),jsxIsAvailable:e.getValue(tk)})}),e.pub(tg,r.trim()),e.pub(tm,!1))}),t=>t.registerCommand(a.$7r,()=>(e.pub(ts,!0),!1),a.da8)])}),tQ=tG(tU,(e,t)=>{e.pub(t,[t=>t.registerUpdateListener(t=>{let{editorState:n}=t;n.read(()=>{tY(e)})}),t=>t.registerCommand(a.I2H,t=>{var n;let r=e.getValue(tt);return r&&((null==(n=r.getRootElement())?void 0:n.contains(t.relatedTarget))||e.pubIn({[ts]:!1,[tz]:t})),!1},a.da8)])});function t0(e,t,n){try{(0,eR.Gi)({root:t,visitors:e.getValue(tb),mdastExtensions:e.getValue(tw),markdown:n,syntaxExtensions:e.getValue(tC),jsxComponentDescriptors:e.getValue(tT),directiveDescriptors:e.getValue(tN),codeBlockEditorDescriptors:e.getValue(tA),defaultCodeBlockLanguage:e.getValue(tI)}),e.pub(tc,null)}catch(t){if(t instanceof eR.zy||t instanceof eR.Wr)e.pubIn({[tg]:n,[tc]:{error:t.message,source:n}});else throw t}}let t1=(0,u.fh)([]),t5=tG(t1),t2=(0,u.fh)([]),t9=tG(t2),t3=(0,u.fh)([]),t7=tG(t3),t8=(0,u.fh)([]);tG(t8);let t4=tG((0,u.fh)([])),t6=(0,u.fh)([]),ne=tG(t6),nt=(0,u.fh)(!1,e=>{e.link(e.pipe(tn,(0,u.Tj)(e=>{var t,n,r;return["td","th"].includes(null!=(r=null==(n=null==(t=null==e?void 0:e.getRootElement())?void 0:t.parentNode)?void 0:n.nodeName.toLowerCase())?r:"")})),nt)}),nn=(0,u.fh)((0,i.ht)()),nr=(0,u.fh)("");(0,u.HN)();let ni=(0,u.HN)(e=>{e.sub(e.pipe(ni,(0,u.EY)(tn)),e=>{let[t,n]=e;null==n||n.update(()=>{let e=(0,a.vJq)();(0,a.I2P)(e)&&((0,o.zI)(e,t),setTimeout(()=>{n.focus()}))})})}),nl=(0,u.HN)(e=>{e.sub(e.pipe(nl,(0,u.EY)(tn)),e=>{let[t,n]=e;null==n||n.focus(()=>{n.getEditorState().read(()=>{let e=(0,a.vJq)();(0,a.I2P)(e)&&(n.update(()=>{let e=t();e.isInline()?((0,a.H2A)([e]),(0,a.IqF)(e.getParentOrThrow())&&(0,s.cj)(e,a.lJ7).selectEnd()):(0,s.Pe)(e),setTimeout(()=>{"select"in e&&"function"==typeof e.select&&e.select()})}),setTimeout(()=>{n.dispatchCommand(te,void 0)}))})},{defaultSelection:"rootEnd"})})}),no=(0,u.fh)("rich-text",e=>{function t(){return(0,u.SQ)((e,t)=>({current:e.next,next:t}),{current:"rich-text",next:"rich-text"})}e.sub(e.pipe(no,t(),(0,u.EY)(na)),t=>{let[{current:n},r]=t;("source"===n||"diff"===n)&&e.pub(tJ,r)}),e.sub(e.pipe(no,t(),(0,u.pb)(e=>"rich-text"===e.current),(0,u.EY)(tn)),e=>{let[,t]=e;
1null==t||t.dispatchCommand(te,void 0)})}),na=(0,u.fh)("",e=>{e.link(tg,na),e.link(na,tv)},!0),ns=(0,u.fh)([]),nu=tG(ns),nc=(0,u.fh)(()=>{throw Error("No translation function provided")}),nd=(0,u.fh)(e8),nf=(0,r.Z)({init(e,t){var n,r;let l=null!=(n=null==t?void 0:t.initialMarkdown)?n:"";e.register(tX),e.register(tQ),e.register(tv),e.register(na),e.pubIn({[th]:(null==t?void 0:t.trim)?l.trim():l,[tq]:null==t?void 0:t.iconComponentFor,[tL]:[e0,eQ,e1,ez,...eG],[tO]:[a.fD3,a.Ey8,eD],[tD]:[e$,eB,eK,eJ,eH],[tr]:null==t?void 0:t.contentEditableClassName,[ti]:null==t?void 0:t.spellCheck,[tS]:null==t?void 0:t.toMarkdownOptions,[ta]:null==t?void 0:t.autoFocus,[to]:null==t?void 0:t.placeholder,[tl]:null==t?void 0:t.readOnly,[nc]:null==t?void 0:t.translation,[nn]:(0,i.ht)(),[tV]:[(0,d.p)(),f],[tF]:[(0,c.K)(),function(){let e={name:"highlight",tokenize:function(e,t,n){let r=this.previous,i=this.events,l=0;return function(o){return(er(o===es.equalsTo,!1,!0,"ok",!1,"Expected value to be truthy","expected `=`"),r===es.equalsTo&&i[i.length-1][1].type!==eu.characterEscape)?n(o):(e.enter(ed),function i(o){let a=(0,eo.S)(r);if(o===es.equalsTo)return l>1?n(o):(e.consume(o),l++,i);if(l<2)return n(o);let s=e.exit(ed),u=(0,eo.S)(o);return s._open=!u||u===ec.attentionSideAfter&&!!a,s._close=!a||a===ec.attentionSideAfter&&!!u,t(o)}(o))}},resolveAll:function(e,t){let n=-1;for(;++n<e.length;)if("enter"===e[n][0]&&e[n][1].type===ed&&e[n][1]._close){let r=n;for(;r--;)if("exit"===e[r][0]&&e[r][1].type===ed&&e[r][1]._open&&e[n][1].end.offset-e[n][1].start.offset==e[r][1].end.offset-e[r][1].start.offset){e[n][1].type=ef,e[r][1].type=ef;let i={type:"highlight",start:Object.assign({},e[r][1].start),end:Object.assign({},e[n][1].end)},l={type:"highlightText",start:Object.assign({},e[r][1].end),end:Object.assign({},e[n][1].start)},o=[["enter",i,t],["enter",e[r][1],t],["exit",e[r][1],t],["enter",l,t]],a=t.parser.constructs.insideSpan.null;a&&(0,el.m)(o,o.length,0,(0,ea.W)(a,e.slice(r+1,n),t)),(0,el.m)(o,o.length,0,[["exit",l,t],["enter",e[n][1],t],["exit",e[n][1],t],["exit",i,t]]),(0,el.m)(e,r-1,n-r+3,o),n=r+o.length-2;break}}for(n=-1;++n<e.length;)e[n][1].type===ed&&(e[n][1].type=eu.data);return e}};return{text:{[es.equalsTo]:e},insideSpan:{null:[e]},attentionMarkers:{null:[es.equalsTo]}}}()],[tj]:[function(e){let t={},n=t.quote||'"',r=t.quoteSmart||!1,i=t.tightSelfClosing||!1,l=t.printWidth||1/0,o='"'===n?"'":'"';if('"'!==n&&"'"!==n)throw Error("Cannot serialize attribute values with `"+n+"` for `options.quote`, expected `\"`, or `'`");return a.peek=O,{handlers:{mdxJsxFlowElement:a,mdxJsxTextElement:a},unsafe:[{character:"<",inConstruct:["phrasing"]},{atBreak:!0,character:"<"}],fences:!0,resourceLink:!0};function a(e,t,a,s){let u="mdxJsxFlowElement"===e.type,c=!!e.name&&(!e.children||0===e.children.length),d=R(P(a)),f=a.createTracker(s),p=a.createTracker(s),h=[],m=(u?d:"")+"<"+(e.name||""),v=a.enter(e.type);if(f.move(m),p.move(m),e.attributes&&e.attributes.length>0){if(!e.name)throw Error("Cannot serialize fragment w/ attributes");let t=-1;for(;++t<e.attributes.length;){let i,l=e.attributes[t];if("mdxJsxExpressionAttribute"===l.type)i="{"+(l.value||"")+"}";else{if(!l.name)throw Error("Cannot serialize attribute w/o name");let e=l.value,t=l.name,a="";if(null==e);else if("object"==typeof e)a="{"+(e.value||"")+"}";else{let t=r&&(0,g.D)(e,n)>(0,g.D)(e,o)?o:n;a=t+function(e,t){var n=e,r=Object.assign({format:A},t);if(n=n.replace(r.subset?function(e){let t=N.get(e);return t||(t=function(e){let t=[],n=-1;for(;++n<e.length;)t.push(e[n].replace(T,"\\$&"));return RegExp("(?:"+t.join("|")+")","g")}(e),N.set(e,t)),t}(r.subset):_,i),r.subset||r.escapeOnly)return n;return n.replace(S,function(e,t,n){return r.format((e.charCodeAt(0)-55296)*1024+e.charCodeAt(1)-56320+65536,n.charCodeAt(t+2),r)}).replace(k,i);function i(e,t,n){return r.format(e.charCodeAt(0),n.charCodeAt(t+1),r)}}(e,{subset:[t]})+t}i=t+(a?"=":"")+a}h.push(i)}}let y=!1,b=h.join(" ");u&&(/\r?\n|\r/.test(b)||f.current().now.column+b.length+(c?i?2:3:1)>l)&&(y=!0);let x=f,C=m;if(y){x=p;let e=-1;for(;++e<h.length;)h[e]=d+"  "+h[e];C+=x.move("\n"+h.join("\n")+"\n"+d)}else b&&(C+=x.move(" "+b));return c&&(C+=x.move((i||y?"":" ")+"/")),C+=x.move(">"),e.children&&e.children.length>0&&("mdxJsxTextElement"===e.type?C+=x.move(a.containerPhrasing(e,{...x.current(),before:">",after:"<"})):(x.shift(2),C+=x.move("\n"),C+=x.move(function(e,t,n){let r=t.indexStack,i=e.children,l=t.createTracker(n),o=R(P(t)),a=[],s=-1;for(r.push(-1);++s<i.length;){let n=i[s];r[r.length-1]=s;let u={before:"\n",after:"\n",...l.current()}
1,c=t.handle(n,e,t,u),d="mdxJsxFlowElement"===n.type?c:t.indentLines(c,function(e,t,n){return(n?"":o)+e});a.push(l.move(d)),"list"!==n.type&&(t.bulletLastUsed=void 0),s<i.length-1&&a.push(l.move("\n\n"))}return r.pop(),a.join("")}(e,a,x.current())),C+=x.move("\n"))),c||(C+=x.move((u?d:"")+"</"+(e.name||"")+">")),v(),C}}(),(0,d.K)(),p],[nd]:null!=(r=null==t?void 0:t.lexicalTheme)?r:e8}),e.singletonSub(td,null==t?void 0:t.onError),e.singletonSub(ty,n=>{null==t||t.onChange(n,e.getValue(tm))}),e.singletonSub(tz,null==t?void 0:t.onBlur),(null==t?void 0:t.suppressHtmlProcessing)||e.pubIn({[tV]:[function(){return{canContainEols:["mdxJsxTextElement"],enter:{mdxJsxFlowTag:r,mdxJsxFlowTagClosingMarker:i,mdxJsxFlowTagAttribute:d,mdxJsxFlowTagExpressionAttribute:f,mdxJsxFlowTagAttributeValueLiteral:e,mdxJsxFlowTagAttributeValueExpression:e,mdxJsxFlowTagSelfClosingMarker:o,mdxJsxTextTag:r,mdxJsxTextTagClosingMarker:i,mdxJsxTextTagAttribute:d,mdxJsxTextTagExpressionAttribute:f,mdxJsxTextTagAttributeValueLiteral:e,mdxJsxTextTagAttributeValueExpression:e,mdxJsxTextTagSelfClosingMarker:o},exit:{mdxJsxFlowTagClosingMarker:a,mdxJsxFlowTagNamePrimary:s,mdxJsxFlowTagNameMember:u,mdxJsxFlowTagNameLocal:c,mdxJsxFlowTagExpressionAttribute:p,mdxJsxFlowTagExpressionAttributeValue:n,mdxJsxFlowTagAttributeNamePrimary:h,mdxJsxFlowTagAttributeNameLocal:g,mdxJsxFlowTagAttributeValueLiteral:_,mdxJsxFlowTagAttributeValueLiteralValue:n,mdxJsxFlowTagAttributeValueExpression:S,mdxJsxFlowTagAttributeValueExpressionValue:n,mdxJsxFlowTagSelfClosingMarker:k,mdxJsxFlowTag:T,mdxJsxTextTagClosingMarker:a,mdxJsxTextTagNamePrimary:s,mdxJsxTextTagNameMember:u,mdxJsxTextTagNameLocal:c,mdxJsxTextTagExpressionAttribute:p,mdxJsxTextTagExpressionAttributeValue:n,mdxJsxTextTagAttributeNamePrimary:h,mdxJsxTextTagAttributeNameLocal:g,mdxJsxTextTagAttributeValueLiteral:_,mdxJsxTextTagAttributeValueLiteralValue:n,mdxJsxTextTagAttributeValueExpression:S,mdxJsxTextTagAttributeValueExpressionValue:n,mdxJsxTextTagSelfClosingMarker:k,mdxJsxTextTag:T}};function e(){this.buffer()}function t(e){return{line:e.line,column:e.column,offset:e.offset}}function n(e){this.config.enter.data.call(this,e),this.config.exit.data.call(this,e)}function r(e){let t={name:void 0,attributes:[],close:!1,selfClosing:!1,start:e.start,end:e.end};this.data.mdxJsxTagStack||(this.data.mdxJsxTagStack=[]),this.data.mdxJsxTag=t,this.buffer()}function i(e){let t=this.data.mdxJsxTagStack;if((0,m.ok)(t,"expected `mdxJsxTagStack`"),0===t.length)throw new M.o("Unexpected closing slash `/` in tag, expected an open tag first",{start:e.start,end:e.end},"mdast-util-mdx-jsx:unexpected-closing-slash")}function l(e){let t=this.data.mdxJsxTag;if((0,m.ok)(t,"expected `mdxJsxTag`"),t.close)throw new M.o("Unexpected attribute in closing tag, expected the end of the tag",{start:e.start,end:e.end},"mdast-util-mdx-jsx:unexpected-attribute")}function o(e){let t=this.data.mdxJsxTag;if((0,m.ok)(t,"expected `mdxJsxTag`"),t.close)throw new M.o("Unexpected self-closing slash `/` in closing tag, expected the end of the tag",{start:e.start,end:e.end},"mdast-util-mdx-jsx:unexpected-self-closing-slash")}function a(){let e=this.data.mdxJsxTag;(0,m.ok)(e,"expected `mdxJsxTag`"),e.close=!0}function s(e){let t=this.data.mdxJsxTag;(0,m.ok)(t,"expected `mdxJsxTag`"),t.name=this.sliceSerialize(e)}function u(e){let t=this.data.mdxJsxTag;(0,m.ok)(t,"expected `mdxJsxTag`"),t.name+="."+this.sliceSerialize(e)}function c(e){let t=this.data.mdxJsxTag;(0,m.ok)(t,"expected `mdxJsxTag`"),t.name+=":"+this.sliceSerialize(e)}function d(e){let n=this.data.mdxJsxTag;(0,m.ok)(n,"expected `mdxJsxTag`"),l.call(this,e),n.attributes.push({type:"mdxJsxAttribute",name:"",value:null,position:{start:t(e.start),end:void 0}})}function f(e){let n=this.data.mdxJsxTag;(0,m.ok)(n,"expected `mdxJsxTag`"),l.call(this,e),n.attributes.push({type:"mdxJsxExpressionAttribute",value:"",position:{start:t(e.start),end:void 0}}),this.buffer()}function p(e){let n=this.data.mdxJsxTag;(0,m.ok)(n,"expected `mdxJsxTag`");let r=n.attributes[n.attributes.length-1];(0,m.ok)("mdxJsxExpressionAttribute"===r.type);let i=e.estree;r.value=this.resume(),(0,m.ok)(void 0!==r.position),r.position.end=t(e.end),i&&(r.data={estree:i})}function h(e){let n=this.data.mdxJsxTag;(0,m.ok)(n,"expected `mdxJsxTag`");let r=n.attributes[n.attributes.length-1];(0,m.ok)("mdxJsxAttribute"===r.type),r.name=this.sliceSerialize(e),(0,m.ok)(void 0!==r.position),r.position.end=t(e.end)}function g(e){let n=this.data.mdxJsxTag;(0,m.ok)(n,"expected `mdxJsxTag`");let r=n.attributes[n.attributes.length-1];(0,m.ok)("mdxJsxAttribute"===r.type),r.name+=":"+this.sliceSerialize(e),(0,m.ok)(void 0!==r.position),r.position.end=t(e.end)}function _(e){let n=this.data.mdxJsxTag;(0,m.ok)(n,"expected `mdxJsxTag`");let r=n.attributes[n.attributes.length-1];r.value=function(e,t){let n,r,i,l=t||{},o="string"==typeof l.additional?l.additional.charCodeAt(0):l.additional,a=[],s=0,u=-1,c="";l.position&&("start"in l.position||"indent"in l.position?(r=l.position.indent,n=l.position.start):n=l.position);let d=(n?n.line:0)||1,f=(n?n.column:0)||1,p=m();for(s--;++s<=e.length;)if(10===i&&(f=(r?r[u]:0)||1),38===(i=e.charCodeAt(s))){let t,n=e.charCodeAt(s+1);if(9===n||10===n||12===n||32===n||38===n||60===n||Number.isNaN(n)||o&&n===o){c+=String.fromCharCode(i),f++;continue}let r=s+1,u=r,d=r;if(35===n){d=++u;let n=e.charCodeAt(d);88===n||120===n?(t="hexadecimal",d=++u):t="decimal"}else t="named";let E="",k="",T="",N="named"===t?C:"decimal"===t?b:x;for(d--;++d<=e.length;){let n=e.charCodeAt(d);if(!N(n))break;T+=String.fromCharCode(n),"named"===t&&v.includes(T)&&(E=T,k=(0,w.s)(T))}let A=59===e.charCodeAt(d);if(A){d++;let e="named"===t&&(0,w.s)(T);e&&(E=T,k=e)}let I=1+d-r,M="";if(A||!1!==l.nonTerminated)if(T)if("named"===t){if(A&&!k)_(5,1);else if(E!==T&&(I=1+(d=u+E.length)-u,A=!1),!A){let t=E?1:3;if(l.attribute){let n=e.charCodeAt(d);61===n?(_(t,I),k=""):C(n)?k="":_(t,I)}else _(t,I)}M=k}else{var h,g;A||_(2,I);let e=Number.parseInt(T,"hexadecimal"===t?16:10);if((h=e)>=55296&&h<=57343||h>1114111)_(7,I),M=String.fromCharCode(65533);else if(e in y)_(6,I),M=y[e];else{let t="";((g=e)>=1&&g<=8||11===g||g>=13&&g<=31||g>=127&&g<=159||g>=64976&&g<=65007||(65535&g)==65535||(65535&g)==65534)&&_(6,I),e>65535&&(e-=65536,t+=String.fromCharCode(e>>>10|55296),e=56320|1023&e),M=t+String.fromCharCode(e)}}else"named"!==t&&_(4,I);if(M){S(),p=m(),s=d-1,f+=d-r+1,a.push(M);let t=m();t.offset++,l.reference&&l.reference.call(l.referenceContext||void 0,M,{start:p,end:t},e.slice(r-1,d)),p=t}else T=e.slice(r-1,d),c+=T,f+=T.length,s=d-1}else 10===i&&(d++,u++,f=0),Number.isNaN(i)?S():(c+=String.fromCharCode(i),f++);return a.join("");function m(){return{line:d,column:f,offset:s+((n?n.offset:0)||0)}}function _(e,t){let n;l.warning&&(n=m(),n.column+=t,n.offset+=t,l.warning.call(l.warningContext||void 0,E[e],n,e))}function S(){c&&(a.push(c),l.text&&l.text.call(l.textContext||void 0,c,{start:p,end:m()}),c="")}}(this.resume(),{nonTerminated:!1}),(0,m.ok)(void 0!==r.position),r.position.end=t(e.end)}function S(e){let n=this.data.mdxJsxTag;(0,m.ok)(n,"expected `mdxJsxTag`");let r=n.attributes[n.attributes.length-1];(0,m.ok)("mdxJsxAttribute"===r.type);let i={type:"mdxJsxAttributeValueExpression",value:this.resume()},l=e.estree;l&&(i.data={estree:l}),r.value=i,(0,m.ok)(void 0!==r.position),r.position.end=t(e.end)}function k(){let e=this.data.mdxJsxTag;(0,m.ok)(e,"expected `mdxJsxTag`"),e.selfClosing=!0}function T(e){let t=this.data.mdxJsxTag;(0,m.ok)(t,"expected `mdxJsxTag`");let n=this.data.mdxJsxTagStack;(0,m.ok)(n,"expected `mdxJsxTagStack`");let r=n[n.length-1];if(t.close&&r.name!==t.name)throw new M.o("Unexpected closing tag `"+P(t)+"`, expected corresponding closing tag for `"+P(r)+"` ("+(0,I.L)(r)+")",{start:e.start,end:e.end},"mdast-util-mdx-jsx:end-tag-mismatch");this.resume(),t.close?n.pop():this.enter({type:"mdxJsxTextTag"===e.type?"mdxJsxTextElement":"mdxJsxFlowElement",name:t.name||null,attributes:t.attributes,children:[]},e,N),t.selfClosing||t.close?this.exit(e,A):n.push(t)}function N(e,t){let n=this.data.mdxJsxTagStack;(0,m.ok)(n,"expected `mdxJsxTagStack`");let r=n[n.length-1];(0,m.ok)(r,"expected `mdxJsxTag`");let i=e?" before the end of `"+e.type+"`":"",l=e?{start:e.start,end:e.end}:void 0;throw new M.o("Expected a closing tag for `"+P(r)+"` ("+(0,I.L)({start:t.start,end:t.end})+")"+i,l,"mdast-util-mdx-jsx:end-tag-mismatch")}function A(e,t){let n=this.data.mdxJsxTag;throw(0,m.ok)(n,"expected `mdxJsxTag`"),new M.o("Expected the closing tag `"+P(n)+"` either after the end of `"+t.type+"` ("+(0,I.L)(t.end)+") or another opening tag after the start of `"+t.type+"` ("+(0,I.L)(t.start)+")",{start:e.start,end:e.end},"mdast-util-mdx-jsx:end-tag-mismatch")}function P(e){return"<"+(e.close?"/":"")+(e.name||"")+">"}}
1(),{canContainEols:["comment"],enter:{comment(e){this.buffer()}},exit:{comment(e){this.resume()}}}],[tF]:[function(e){var t,n,r,i;let l,o={},a=o.acorn;if(a){if(!a.parse||!a.parseExpressionAt)throw Error("Expected a proper `acorn` instance passed in as `options.acorn`");l=Object.assign({ecmaVersion:2024,sourceType:"module"},o.acornOptions,{locations:!0})}else if(o.acornOptions||o.addResult)throw Error("Expected an `acorn` instance passed in as `options.acorn`");return{flow:{60:(t=a||void 0,n={acornOptions:l,addResult:o.addResult||void 0},{concrete:!0,name:"mdxJsxFlowTag",tokenize:function(e,r,i){let l=this;return function(e){return o(e)};function o(r){return eM.call(l,e,a,i,t,n.acornOptions,n.addResult,!1,"mdxJsxFlowTag","mdxJsxFlowTagMarker","mdxJsxFlowTagClosingMarker","mdxJsxFlowTagSelfClosingMarker","mdxJsxFlowTagName","mdxJsxFlowTagNamePrimary","mdxJsxFlowTagNameMemberMarker","mdxJsxFlowTagNameMember","mdxJsxFlowTagNamePrefixMarker","mdxJsxFlowTagNameLocal","mdxJsxFlowTagExpressionAttribute","mdxJsxFlowTagExpressionAttributeMarker","mdxJsxFlowTagExpressionAttributeValue","mdxJsxFlowTagAttribute","mdxJsxFlowTagAttributeName","mdxJsxFlowTagAttributeNamePrimary","mdxJsxFlowTagAttributeNamePrefixMarker","mdxJsxFlowTagAttributeNameLocal","mdxJsxFlowTagAttributeInitializerMarker","mdxJsxFlowTagAttributeValueLiteral","mdxJsxFlowTagAttributeValueLiteralMarker","mdxJsxFlowTagAttributeValueLiteralValue","mdxJsxFlowTagAttributeValueExpression","mdxJsxFlowTagAttributeValueExpressionMarker","mdxJsxFlowTagAttributeValueExpressionValue")(r)}function a(t){return(0,eg.On)(t)?(0,eh.N)(e,s,"whitespace")(t):s(t)}function s(t){let n,a=l.parser.constructs.flow[123];for(let e of Array.isArray(a)?a:a?[a]:[])if("mdxFlowExpression"===e.name){n=e;break}return 60===t?o(t):123===t&&n?e.attempt(n,s,i)(t):null===t||(0,eg.HP)(t)?r(t):i(t)}}})},text:{60:(r=a||void 0,i={acornOptions:l,addResult:o.addResult||void 0},{name:"mdxJsxTextTag",tokenize:function(e,t,n){return eM.call(this,e,t,n,r,i.acornOptions,i.addResult,!0,"mdxJsxTextTag","mdxJsxTextTagMarker","mdxJsxTextTagClosingMarker","mdxJsxTextTagSelfClosingMarker","mdxJsxTextTagName","mdxJsxTextTagNamePrimary","mdxJsxTextTagNameMemberMarker","mdxJsxTextTagNameMember","mdxJsxTextTagNamePrefixMarker","mdxJsxTextTagNameLocal","mdxJsxTextTagExpressionAttribute","mdxJsxTextTagExpressionAttributeMarker","mdxJsxTextTagExpressionAttributeValue","mdxJsxTextTagAttribute","mdxJsxTextTagAttributeName","mdxJsxTextTagAttributeNamePrimary","mdxJsxTextTagAttributeNamePrefixMarker","mdxJsxTextTagAttributeNameLocal","mdxJsxTextTagAttributeInitializerMarker","mdxJsxTextTagAttributeValueLiteral","mdxJsxTextTagAttributeValueLiteralMarker","mdxJsxTextTagAttributeValueLiteralValue","mdxJsxTextTagAttributeValueExpression","mdxJsxTextTagAttributeValueExpressionMarker","mdxJsxTextTagAttributeValueExpressionValue")}})}}}(),{disable:{null:["autolink","codeIndented","htmlFlow","htmlText"]}},e3],[tL]:eY})},postInit(e,t){var n,r;let i=(0,e6.dj)({name:"@mdxeditor/root",editable:(null==t?void 0:t.readOnly)!==!0,namespace:null!=(n=null==t?void 0:t.lexicalEditorNamespace)?n:"MDXEditor",nodes:[...e.getValue(tx),...null!=(r=null==t?void 0:t.additionalLexicalNodes)?r:[]],theme:e.getValue(nd),historyMode:(null==t?void 0:t.suppressSharedHistory)?"none":"root-shared",historyState:e.getValue(nn),initialEditorState:(null==t?void 0:t.editorState)===null?null:()=>{var n;let r=null!=(n=null==t?void 0:t.initialMarkdown.trim())?n:"";t0(e,(0,a.NiT)(),r)}});(0,e4.R)(e,()=>{i.dispose()});let l=null==t?void 0:t.autoFocus;if((null==t?void 0:t.editorState)!==null&&l){let t=setTimeout(()=>{var e;i.focus(eO.lQ,{defaultSelection:!0===l?"rootStart":null!=(e=l.defaultSelection)?e:"rootStart"})});(0,e4.R)(e,()=>{clearTimeout(t)})}e.pub(tt,i),e.pub(tn,i)},update(e,t){e.pubIn({[tr]:null==t?void 0:t.contentEditableClassName,[ti]:null==t?void 0:t.spellCheck,[tS]:null==t?void 0:t.toMarkdownOptions,[ta]:null==t?void 0:t.autoFocus,[to]:null==t?void 0:t.placeholder,[tl]:null==t?void 0:t.readOnly}),e.singletonSub(ty,n=>{null==t||t.onChange(n,e.getValue(tm))}),e.singletonSub(tz,null==t?void 0:t.onBlur),e.singletonSub(td,null==t?void 0:t.onError)}});function np(){return(0,u.X3)(nc)}},45757:(e,t,n)=>{"use strict";n.d(t,{F7:()=>d});var r=n(11919),i=n(61259),l=n(12115),o=n(45276),a=n(87797);let s=(0,i.fh)(()=>null),u=(0,i.fh)(""),c=()=>"This is an empty toolbar. Pass `{toolbarContents: () => { return <>toolbar components</> }}` to the toolbarPlugin to customize it.",d=(0,r.Z)({init(e,t){var n,r;let d=(null==t?void 0:t.toolbarPosition)==="bottom"?o.O2:o.IZ;e.pubIn({[s]:null!=(n=null==t?void 0:t.toolbarContents)?n:c,[u]:null!=(r=null==t?void 0:t.toolbarClassName)?r:"",[d]:()=>{let[e,t,n]=(0,i.uX)(s,o.pc,u);return l.createElement(a.bL,{className:n,readOnly:t},e())}})},update(e,t){var n,r;e.pub(s,null!=(n=null==t?void 0:t.toolbarContents)?n:c),e.pub(u,null!=(r=null==t?void 0:t.toolbarClassName)?r:"")}})}
1,48243:(e,t,n)=>{"use strict";n.d(t,{Db:()=>s,FJ:()=>h,Ou:()=>_,Pm:()=>L,iK:()=>v,k_:()=>g,oP:()=>S,yW:()=>y,zA:()=>p});var r=n(57259),i=n(80632),l=n(17498),o=n(319);let a=new Set(["http:","https:","mailto:","sms:","tel:"]);class s extends i.fGB{__url;__target;__rel;__title;static getType(){return"link"}static clone(e){return new s(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}afterCloneFrom(e){super.afterCloneFrom(e),this.__url=e.__url,this.__rel=e.__rel,this.__target=e.__target,this.__title=e.__title}createDOM(e){let t=(0,i.A$M)().createElement("a");return this.updateLinkDOM(null,t,e),(0,i.ZB7)(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:f,priority:1})}}static importJSON(e){return p().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){let t=e;e=w(e);try{let t=new URL(w(e));if(!a.has(t.protocol))return"about:blank"}catch(n){let e=t.replace(/[\u0000-\u001F\u007F\s]/g,"").match(/^([a-z][a-z0-9+.-]*):/i);if(null!=e&&!a.has(`${e[1].toLowerCase()}:`))return"about:blank"}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=(0,i.CHU)(this);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.is(r)||this.isParentOf(r))&&(this.is(l)||this.isParentOf(l))&&t.getTextContent().length>0}isEmailURI(){return this.__url.startsWith("mailto:")}isWebSiteURI(){return this.__url.startsWith("https://")||this.__url.startsWith("http://")}shouldMergeAdjacentLink(e){return this.getType()===e.getType()&&this.__url===e.__url&&this.__target===e.__target&&this.__rel===e.__rel&&this.__title===e.__title}}function u(e){let t=(0,i.Ave)(e,"next");return[t,t.getFlipped()]}function c(e,t){for(let n of t)if(n.origin.isAttached()){let t=(0,i.lSZ)(n);return void(0,i.wp6)(e,t)}}function d(e){let t=(0,i.vJq)(),n=null,r=null;function l(){(0,i.I2P)(t)&&(c(t.anchor,n),c(t.focus,r),(0,i.CaD)(t))}(0,i.I2P)(t)&&(n=u(t.anchor),r=u(t.focus));let o=!1;for(let t of(0,i.uwZ)(e,"next")){let n=t.origin;if((0,i.ff4)(n)&&!n.isInline()){let r=n.getChildren();if(r.length>0){let t=(0,i.CHU)(e);t.append(...r),n.append(t),o=!0}(0,i.rdQ)(n,(0,i.NG9)(t),{$shouldSplit:()=>!1})}}function a(e,t,n){let[r,l]=e,o=e=>(0,i.OpE)(e)&&e.origin.is(t);if(!o(r)&&!o(l))return e;let a=(0,i.lSZ)((0,i.uwZ)(n,"next"));return[a,a.getFlipped()]}if(e.isAttached()){let t=e.getPreviousSibling();if(h(t)&&t.shouldMergeAdjacentLink(e))return n&&(n=a(n,t,e)),r&&(r=a(r,t,e)),t.append(...e.getChildren()),e.remove(),void l();let i=e.getNextSibling();h(i)&&e.shouldMergeAdjacentLink(i)&&(n&&(n=a(n,e,i)),r&&(r=a(r,e,i)),e.append(...i.getChildren()),i.remove(),o=!0)}if(o){if(!e.canBeEmpty()&&e.isEmpty()){let t=e.getParent();e.remove(),t&&t.isEmpty()&&t.remove()}l()}}function f(e){let t=null;if((0,i.nYP)(e)){let n=e.textContent;(null!==n&&""!==n||e.children.length>0)&&(t=p(e.getAttribute("href")||"",{rel:e.getAttribute("rel"),target:e.getAttribute("target"),title:e.getAttribute("title")}))}return{node:t}}function p(e="",t){return(0,i.pTq)(new s(e,t))}function h(e){return e instanceof s}class g extends s{__isUnlinked;constructor(e="",t={},n){super(e,t,n),this.__isUnlinked=void 0!==t.isUnlinked&&null!==t.isUnlinked&&t.isUnlinked}afterCloneFrom(e){super.afterCloneFrom(e),this.__isUnlinked=e.__isUnlinked}static getType(){return"autolink"}static clone(e){return new g(e.__url,{isUnlinked:e.__isUnlinked,rel:e.__rel,target:e.__target,title:e.__title},e.__key)}shouldMergeAdjacentLink(e){return!1}getIsUnlinked(){return this.__isUnlinked}setIsUnlinked(e){let t=this.getWritable();return t.__isUnlinked=e,t}createDOM(e){return this.__isUnlinked?(0,i.A$M)().createElement("span"):super.createDOM(e)}updateDOM(e,t,n){return super.updateDOM(e,t,n)||e.__isUnlinked!==this.__isUnlinked}static importJSON(e){return m().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=m(this.__url,{isUnlinked:this.__isUnlinked,rel:this.__rel,target:this.__target,title:this.__title});return this.insertAfter(n,t),n}}function m(e="",t){return(0,i.pTq)(new g(e,t))}function v(e){return e instanceof g}let y=(0,i.guI)("TOGGLE_LINK_COMMAND");function b(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 x(e,t={}){let n;if(e&&"object"==typeof e){let{url:r,...i}=e;n=r,t={...i,...t}}else n=e;let{target:r,title:l}=t,o=void 0===t.rel?"noreferrer":t.rel,a=(0,i.vJq)();if(null===a||!(0,i.I2P)(a)&&!(0,i.RTZ)(a))return;if((0,i.RTZ)(a)){let e=a.getNodes();if(0===e.length)return;
1return void e.forEach(e=>{if(null===n){let t=(0,i.BtT)(e,e=>!v(e)&&h(e));t&&(t.insertBefore(e),0===t.getChildren().length&&t.remove())}else{let t=(0,i.BtT)(e,e=>!v(e)&&h(e));if(t)t.setURL(n),void 0!==r&&t.setTarget(r),void 0!==o&&t.setRel(o);else{let t=p(n,{rel:o,target:r});e.insertBefore(t),t.append(e)}}})}if(a.isCollapsed()&&null===n)for(let e of a.getNodes()){let t=(0,i.BtT)(e,e=>!v(e)&&h(e));return void(null!==t&&(t.getParentOrThrow().splice(t.getIndexWithinParent(),0,t.getChildren()),t.remove()))}let s=a.extract();if(null===n){let e=new Set;return void s.forEach(t=>{let n=(0,i.BtT)(t,e=>!v(e)&&h(e));if(null!==n){let t=n.getKey();if(e.has(t))return;!function(e,t){let n=new Set(t.filter(t=>e.isParentOf(t)).map(e=>e.getKey())),r=e.getChildren(),l=r=>n.has(r.getKey())||(0,i.ff4)(r)&&t.some(t=>e.isParentOf(t)&&r.isParentOf(t)),o=r.filter(l);if(o.length===r.length)return r.forEach(t=>e.insertBefore(t)),e.remove();let a=r.findIndex(l),s=r.findLastIndex(l),u=s===r.length-1;if(0===a)o.forEach(t=>e.insertBefore(t));else if(u)for(let t=o.length-1;t>=0;t--)e.insertAfter(o[t]);else{for(let t=o.length-1;t>=0;t--)e.insertAfter(o[t]);let t=r.slice(s+1);if(t.length>0){let n=(0,i.CHU)(e);o[o.length-1].insertAfter(n),t.forEach(e=>n.append(e))}}}(n,s),e.add(t)}})}let u=new Set,c=e=>{u.has(e.getKey())||(u.add(e.getKey()),e.setURL(n),void 0!==r&&e.setTarget(r),void 0!==o&&e.setRel(o),void 0!==l&&e.setTitle(l))};if(1===s.length){let e=s[0],t=(0,i.BtT)(e,h);if(null!==t)return c(t)}!function(e){let t=(0,i.vJq)();if(!(0,i.I2P)(t))return e();let n=(0,i.CaD)(t),r=n.isBackward(),l=b(n.anchor,r?-1:0),o=b(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 e=null;for(let t of s){if(!t.isAttached())continue;let a=(0,i.BtT)(t,h);if(a){c(a);continue}if((0,i.ff4)(t)){if(!t.isInline())continue;if(h(t)){if(!(v(t)||null!==e&&e.getParentOrThrow().isParentOf(t))){c(t),e=t;continue}for(let e of t.getChildren())t.insertBefore(e);t.remove();continue}}let s=t.getPreviousSibling();h(s)&&s.is(e)?s.append(t):(e=p(n,{rel:o,target:r,title:l}),t.insertAfter(e),e.append(t))}})}let C=/^\+?[0-9\s()-]{5,}$/;function w(e){return e.match(/^[a-z][a-z0-9+.-]*:/i)||e.match(/^[/#.]/)?e:e.includes("@")?`mailto:${e}`:C.test(e)?`tel:${e}`:`https://${e}`}let E=[(0,l.Bu)({$import:(e,t)=>{if(!t.textContent&&0===t.children.length)return[];let n=t.getAttribute("href")||"",r={rel:t.getAttribute("rel"),target:t.getAttribute("target"),title:t.getAttribute("title")};return(0,l.Ah)(e.$importChildren(t),()=>p(n,r))},match:l.VR.tag("a"),name:"@lexical/link/a"})];function _(e,t){return(0,i.Sdt)(e.registerNodeTransform(s,d),e.registerCommand(y,e=>{let n=t.validateUrl.peek(),r=t.attributes.peek();if(null===e)return x(null),!0;if("string"==typeof e)return!(void 0!==n&&!n(e))&&(x(e,r),!0);{let{url:t,target:n,rel:i,title:l}=e;return x(t,{...r,rel:i,target:n,title:l}),!0}},i.jZM),(0,r.QZ)(()=>{let n=t.validateUrl.value;if(!n)return;let r=t.attributes.value;return e.registerCommand(i.waI,t=>{let l=(0,i.vJq)();if(!(0,i.I2P)(l)||l.isCollapsed()||!(0,o.xj)(t,ClipboardEvent)||null===t.clipboardData)return!1;let a=t.clipboardData.getData("text");return!!n(a)&&!l.getNodes().some(e=>(0,i.ff4)(e)||(0,i.kFe)(e)&&!e.isSimpleText())&&(e.dispatchCommand(y,{...r,url:a}),t.preventDefault(),!0)},i.AcJ)}))}function S(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 k(e,t){for(let n=0;n<t.length;n++){let r=t[n](e);if(r)return r}return null}l._e,l.Zj,S(/(([^<>()[\]\\.,;:\s@"]{1,64}(\.[^<>()[\]\\.,;:\s@"]{1,64}){0,63})|(".{1,255}"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\])|(([a-zA-Z\-0-9]{1,63}\.){1,127}[a-zA-Z]{2,63}))/,e=>`mailto:${e}`);let T=/[.,;\s]/;function N(e,t){var n;return n=e[e.length-1],t.test(n)}function A(e,t){var n;return n=e[0],t.test(n)}function I(e,t){let n=e.getPreviousSibling();return(0,i.ff4)(n)&&(n=n.getLastDescendant()),null===n||(0,i.wH$)(n)||(0,i.kFe)(n)&&N(n.getTextContent(),t)}function M(e,t){let n=e.getNextSibling();return(0,i.ff4)(n)&&(n=n.getFirstDescendant()),null===n||(0,i.wH$)(n)||(0,i.kFe)(n)&&A(n.getTextContent(),t)}function P(e,t,n,r){let l=e.getChildren(),o=l.length;for(let t=0;t<o;t++){let r=l[t];if(!(0,i.kFe)(r)||!r.isSimpleText())return R(e),void n(null,e.getURL())}let a=e.getTextContent(),s=k(a,t);
1if(null===s||s.text!==a||!I(e,r)||!M(e,r))return R(e),void n(null,e.getURL());let u=e.getURL();if(u!==s.url&&(e.setURL(s.url),n(s.url,u)),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 R(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())}let O={changeHandlers:[],excludeParents:[],matchers:[],separatorRegex:T};function L(e,t=O){let{matchers:n,changeHandlers:r,excludeParents:l,separatorRegex:o=T}=t,a=(e,t)=>{for(let n of r)n(e,t)};return(0,i.Sdt)(e.registerNodeTransform(i.Ey8,e=>{let t=e.getParentOrThrow(),r=e.getPreviousSibling();v(t)?P(t,n,a,o):h(t)||l.some(e=>e(t))||(e.isSimpleText()&&(A(e.getTextContent(),o)||!v(r))&&function(e,t,n,r){for(let t of e){let e=t.getParent();if(v(e)&&!e.getIsUnlinked())return}let l=[...e],o=l.map(e=>e.getTextContent()).join(""),a,s=o,u=0;for(;(a=k(s,t))&&null!==a;){let e=a.index,t=e+a.length;if(function(e,t,n,r,i){var l,o;return!!(e>0?(l=r[e-1],n.test(l)):I(i[0],n))&&(t<r.length?(o=r[t],n.test(o)):M(i[i.length-1],n))}(u+e,u+t,r,o,l)){let[r,,o,c]=function(e,t,n){let r=[],i=[],l=[],o=0,a=0,s=[...e];for(;s.length>0;){let e=s[0],u=e.getTextContent().length,c=a;a+u<=t?(r.push(e),o+=u):c>=n?l.push(e):i.push(e),a+=u,s.shift()}return[o,r,i,l]}(l,u+e,u+t),d=!1;for(let e of o){let t=e.getParent();if(v(t)&&!t.getIsUnlinked()){d=!0;break}}if(d){u+=t,s=s.substring(t);continue}let f=function(e,t,n,r){let l=m(r.url,r.attributes);if(1===e.length){let o,a=e[0];0===t?[o,a]=a.splitText(n):[,o,a]=a.splitText(t,n);let s=(0,i.sTu)(r.text);return s.setFormat(o.getFormat()),s.setDetail(o.getDetail()),s.setStyle(o.getStyle()),l.append(s),o.replace(l),a}if(e.length>1){let r,o=e[0],a,s=o.getTextContent().length;0===t?a=o:[,a]=o.splitText(t);let u=[];for(let t=1;t<e.length;t++){let i=e[t],l=i.getTextContent().length,o=s;if(o<n)if(s+l<=n)u.push(i);else{let[e,t]=i.splitText(n-o);u.push(e),r=t}s+=l}let c=(0,i.vJq)(),d=c?c.getNodes().find(i.kFe):void 0,f=(0,i.sTu)(a.getTextContent());return f.setFormat(a.getFormat()),f.setDetail(a.getDetail()),f.setStyle(a.getStyle()),l.append(f,...u),d&&d===a&&((0,i.I2P)(c)?f.select(c.anchor.offset,c.focus.offset):(0,i.RTZ)(c)&&f.select(0,f.getTextContent().length)),a.replace(l),r}}(o,u+e-r,u+t-r,a);l=f?[f,...c]:c,n(a.url,null),u=0}else u+=t;s=s.substring(t)}}(function(e){let t=[e],n=e.getNextSibling();for(;null!==n&&(0,i.kFe)(n)&&n.isSimpleText()&&(t.push(n),!/[\s]/.test(n.getTextContent()));)n=n.getNextSibling();return t}(e),n,a,o),function(e,t,n,r){let i=e.getParent(),l=e.getPreviousSibling(),o=e.getNextSibling(),a=e.getTextContent();if(!v(i)||i.getIsUnlinked()){if(v(l)&&!l.getIsUnlinked()&&l.is(e.getPreviousSibling())&&e.getParent()===l.getParent()){if(!A(a,r))return R(l),n(null,l.getURL());if(l.isEmailURI()?/^\.[a-zA-Z]{2,}/.test(a):/^\.[a-zA-Z0-9]{1,}/.test(a)){let i=l.getTextContent()+a,o=k(i,t);null!==o&&o.text===i&&(l.append(e),P(l,t,n,r),n(null,l.getURL()))}}!v(o)||o.getIsUnlinked()||N(a,r)||o.is(e.getNextSibling())&&e.getParent()===o.getParent()&&(R(o),n(null,o.getURL()))}}(e,n,a,o))}),e.registerCommand(y,e=>{let t=(0,i.vJq)();return null===e&&!!(0,i.I2P)(t)&&(t.extract().forEach(e=>{let t=e.getParent();v(t)&&(t.setIsUnlinked(!t.getIsUnlinked()),t.markDirty())}),!1)},i.AcJ))}},53341:e=>{"use strict";e.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},54434:(e,t,n)=>{"use strict";n.d(t,{Nq:()=>E,SH:()=>w,Zq:()=>_});var r=n(45276),i=n(77059);let l={testNode:"list",visitNode:function(e){let{mdastNode:t,lexicalParent:n,actions:r}=e,l=t.children.some(e=>"boolean"==typeof e.checked)?"check":t.ordered?"number":"bullet",o=(0,i.DE)(l);if((0,i.Mz)(n)){let e=(0,i.i)();e.append(o),n.insertAfter(e)}else n.append(o);r.visitChildren(t,o)}},o={testNode:"listItem",visitNode(e){var t;let{mdastNode:n,actions:r,lexicalParent:l}=e,o="check"===l.getListType()?null!=(t=n.checked)&&t:void 0;r.addAndStepInto((0,i.i)(o))}},a={testLexicalNode:i.HY,visitLexicalNode:e=>{let{lexicalNode:t,actions:n}=e;n.addAndStepInto("list",{ordered:"number"===t.getListType(),spread:!1})}};var s=n(80632);let u={testLexicalNode:i.Mz,visitLexicalNode:e=>{let{lexicalNode:t,mdastParent:n,actions:r}=e,l=t.getChildren(),o=l[0];if(1===l.length&&(0,i.HY)(o)){let e=n.children.at(-1);e?r.visitChildren(t,e):r.visitChildren(o,n)}else{let e=t.getParent(),i=r.appendToParent(n,{type:"listItem",checked:"check"===e.getListType()?!!t.getChecked():void 0,spread:!1,children:[]}),l=null;for(let e of t.getChildren())(0,s.kFe)(e)||(0,s.wH$)(e)||e.isInline()&&((0,s.ff4)(e)||(0,s.Cyw)(e))?(null!=l||(l=r.appendToParent(i,{type:"paragraph",children:[]})),r.visit(e,l)):(l=null,r.visit(e,i))}}};var c=n(57259),d=n(44997),f=n(12115);function p({maxIndent:e,$canIndent:t}){let[n]=(0,d.DF)();return(0,f.useEffect)(()=>(0,c.MM)(n,e,t),[n,e,t]),null}function h({disableTakeFocusOnClick:e=!1}){let[t]=(0,d.DF)();return(0,f.useEffect)(()=>(0,i.GO)(t,{disableTakeFocusOnClick:e}),[t,e]),null}function g({hasStrictIndent:e=!1,shouldPreserveNumbering:t=!1}
1){let[n]=(0,d.DF)();return(0,f.useEffect)(()=>{if(!n.hasNodes([i.v5,i.YW]))throw Error("ListPlugin: ListNode and/or ListItemNode not registered on editor")},[n]),(0,f.useEffect)(()=>(0,s.Sdt)((0,i.cz)(n,{restoreNumbering:t}),e?(0,i.Js)(n):()=>{}),[n,e,t]),(0,f.useEffect)(()=>(0,i.cz)(n),[n]),null}var m=n(319),v=n(80861),y=n(12795),b=n(61259),x=n(11919);let C=new Map([["number",i.x],["bullet",i.q7],["check",i.mJ],["",i.uS]]),w=(0,b.fh)("",e=>{e.sub(e.pipe(r.cj,(0,b.EY)(r.Cp)),t=>{let[n,r]=t;if(!n||!r)return;let l=n.anchor.getNode(),o="root"===l.getKey()?l:(0,s.BtT)(l,e=>{let t=e.getParent();return null!==t&&(0,s.IqF)(t)});null!=o||(o=l.getTopLevelElementOrThrow());let a=o.getKey();if(null!==r.getElementByKey(a))if((0,i.HY)(o)){let t=(0,m.eu)(l,i.v5),n=t?t.getListType():o.getListType();e.pub(w,n)}else e.pub(w,"")})}),E=(0,b.HN)(e=>{e.sub(e.pipe(E,(0,b.EY)(r.Cp)),e=>{let[t,n]=e;null==n||n.dispatchCommand(C.get(t),void 0)})}),_=(0,x.Z)({init(e){var t;null==(t=e.getValue(r.u0))||t.registerCommand(s.PiT,()=>!function(e){let t=(0,s.vJq)();if(!(0,s.I2P)(t))return!1;let n=function(e){let t=e.getNodes();return new Set(0===t.length?[e.anchor.getNode().getParentOrThrow(),e.focus.getNode().getParentOrThrow()]:t.map(e=>(0,s.ff4)(e)?e:e.getParentOrThrow()))}(t),r=0;for(let e of n)if((0,i.HY)(e))r=Math.max((0,i.g2)(e)+1,r);else if((0,i.Mz)(e)){let t=e.getParent();if((null==t?void 0:t.getChildren().length)===1){let e=t.getParent();if((0,i.Mz)(e)&&1===e.getChildren().length)return!1}if(!(0,i.HY)(t))throw Error("ListMaxIndentLevelPlugin: A ListItemNode must have a ListNode for a parent.");r=Math.max((0,i.g2)(t)+1,r)}return r<=7}(7),s.da8),e.pubIn({[r.$0]:"lists",[r.C2]:(0,y.S)(),[r.cx]:(0,v.J)(),[r.R1]:[l,o],[r.q]:[i.YW,i.v5],[r.iI]:[a,u],[r.lN]:(0,y.P)(),[r.aC]:[p,g,h],[r.Id]:[p,g,h]})}})},57259:(e,t,n)=>{"use strict";let r,i,l;n.d(t,{Bw:()=>eu,C_:()=>Z,Hd:()=>el,MM:()=>ep,PL:()=>ei,QZ:()=>A,SY:()=>eo,XT:()=>M,cP:()=>X,fS:()=>en,fU:()=>Y,gn:()=>ea,iZ:()=>z,jX:()=>R,jZ:()=>B,s0:()=>et,v:()=>I,vA:()=>c,vP:()=>x,vw:()=>ed,wD:()=>q,xT:()=>G});var o=n(80632),a=n(319);let s=Symbol.for("preact-signals");function u(){if(p>1)return void p--;let e,t=!1;for(!function(){let e=f;for(f=void 0;void 0!==e;)e.S.v===e.v&&(e.S.i=e.i),e=e.o}();void 0!==i;){let n=i;for(i=void 0,h++;void 0!==n;){let r=n.u;if(n.u=void 0,n.f&=-3,!(8&n.f)&&C(n))try{n.c()}catch(n){t||(e=n,t=!0)}n=r}}if(h=0,p--,t)throw e}function c(e){if(p>0)return e();m=++g,p++;try{return e()}finally{u()}}function d(e){let t=r;r=void 0;try{return e()}finally{r=t}}let f,p=0,h=0,g=0,m=0,v=0;function y(e){if(void 0===r)return;let t=e.n;return void 0===t||t.t!==r?(t={i:0,S:e,p:r.s,n:void 0,t:r,e:void 0,x:void 0,r:t},void 0!==r.s&&(r.s.n=t),r.s=t,e.n=t,32&r.f&&e.S(t),t):-1===t.i?(t.i=0,void 0!==t.n&&(t.n.p=t.p,void 0!==t.p&&(t.p.n=t.n),t.p=r.s,t.n=void 0,r.s.n=t,r.s=t),t):void 0}function b(e,t){this.v=e,this.i=0,this.n=void 0,this.t=void 0,this.l=0,this.W=null==t?void 0:t.watched,this.Z=null==t?void 0:t.unwatched,this.name=null==t?void 0:t.name}function x(e,t){return new b(e,t)}function C(e){for(let t=e.s;void 0!==t;t=t.n)if(t.S.i!==t.i||!t.S.h()||t.S.i!==t.i)return!0;return!1}function w(e){for(let t=e.s;void 0!==t;t=t.n){let n=t.S.n;if(void 0!==n&&(t.r=n),t.S.n=t,t.i=-1,void 0===t.n){e.s=t;break}}}function E(e){let t,n=e.s;for(;void 0!==n;){let e=n.p;-1===n.i?(n.S.U(n),void 0!==e&&(e.n=n.n),void 0!==n.n&&(n.n.p=e)):t=n,n.S.n=n.r,void 0!==n.r&&(n.r=void 0),n=e}e.s=t}function _(e,t){b.call(this,void 0),this.x=e,this.s=void 0,this.g=v-1,this.f=4,this.W=null==t?void 0:t.watched,this.Z=null==t?void 0:t.unwatched,this.name=null==t?void 0:t.name}function S(e){let t=e.m;if(e.m=void 0,"function"==typeof t){p++;let n=r;r=void 0;try{t()}catch(t){throw e.f&=-2,e.f|=8,k(e),t}finally{r=n,u()}}}function k(e){for(let t=e.s;void 0!==t;t=t.n)t.S.U(t);e.x=void 0,e.s=void 0,S(e)}function T(e){if(r!==this)throw Error("Out-of-order effect");E(this),r=e,this.f&=-2,8&this.f&&k(this),u()}function N(e,t){this.x=e,this.m=void 0,this.s=void 0,this.u=void 0,this.f=32,this.name=null==t?void 0:t.name}function A(e,t){let n=new N(e,t);try{n.c()}catch(e){throw n.d(),e}let r=n.d.bind(n);return r[Symbol.dispose]=r,r}function I(e,t={}){let n={};for(let r in e){let i=t[r],l=x(void 0===i?e[r]:i);n[r]=l}return n}function M(e){let t=new Set,n=new Set;for(let r of P(e)){let e="function"==typeof r?r:r.replace;(0,o.TSH)(e),t.add(e.getType()),n.add(e)}return{nodes:n,types:t}}function P(e){return("function"==typeof e.nodes?e.nodes():e.nodes)||[]}function R(e,t){let n;return x(e(),{unwatched(){n&&(n(),n=void 0)},watched(){this.value=e(),n=t(this)}})}b.prototype.brand=s,b.prototype.h=function(){return!0},b.prototype.S=function(e){let t=this.t;t!==e&&void 0===e.e&&(e.x=t,this.t=e,void 0!==t?t.e=e:d(()=>{var e;null==(e=this.W)||e.call(this)}))},b.prototype.U=function(e){if(void 0!==this.t){let t=e.e,n=e.x;void 0!==t&&(t.x=n,e.e=void 0),void 0!==n&&(n.e=t,e.x=void 0),e===this.t&&(this.t=n,void 0===n&&d(()=>{var e;null==(e=this.Z)||e.call(this)}))}},b.prototype.subscribe=function(e){return A(()=>
1{let t=this.value,n=r;r=void 0;try{e(t)}finally{r=n}},{name:"sub"})},b.prototype.valueOf=function(){return this.value},b.prototype.toString=function(){return this.value+""},b.prototype.toJSON=function(){return this.value},b.prototype.peek=function(){let e=r;r=void 0;try{return this.value}finally{r=e}},Object.defineProperty(b.prototype,"value",{get(){let e=y(this);return void 0!==e&&(e.i=this.i),this.v},set(e){if(e!==this.v){if(h>100)throw Error("Cycle detected");0!==p&&0===h&&this.l!==m&&(this.l=m,f={S:this,v:this.v,i:this.i,o:f}),this.v=e,this.i++,v++,p++;try{for(let e=this.t;void 0!==e;e=e.x)e.t.N()}finally{u()}}}}),_.prototype=new b,_.prototype.h=function(){if(this.f&=-3,1&this.f)return!1;if(32==(36&this.f)||(this.f&=-5,this.g===v))return!0;if(this.g=v,this.f|=1,this.i>0&&!C(this))return this.f&=-2,!0;let e=r;try{w(this),r=this;let e=this.x();(16&this.f||this.v!==e||0===this.i)&&(this.v=e,this.f&=-17,this.i++)}catch(e){this.v=e,this.f|=16,this.i++}return r=e,E(this),this.f&=-2,!0},_.prototype.S=function(e){if(void 0===this.t){this.f|=36;for(let e=this.s;void 0!==e;e=e.n)e.S.S(e)}b.prototype.S.call(this,e)},_.prototype.U=function(e){if(void 0!==this.t&&(b.prototype.U.call(this,e),void 0===this.t)){this.f&=-33;for(let e=this.s;void 0!==e;e=e.n)e.S.U(e)}},_.prototype.N=function(){if(!(2&this.f)){this.f|=6;for(let e=this.t;void 0!==e;e=e.x)e.t.N()}}
1,Object.defineProperty(_.prototype,"value",{get(){if(1&this.f)throw Error("Cycle detected");let e=y(this);if(this.h(),void 0!==e&&(e.i=this.i),16&this.f)throw this.v;return this.v}}),N.prototype.c=function(){let e=this.S();try{if(8&this.f||void 0===this.x)return;let e=this.x();"function"==typeof e&&(this.m=e)}finally{e()}},N.prototype.S=function(){if(1&this.f)throw Error("Cycle detected");this.f|=1,this.f&=-9,S(this),w(this),p++;let e=r;return r=this,T.bind(this,e)},N.prototype.N=function(){2&this.f||(this.f|=2,this.u=i,i=this)},N.prototype.d=function(){this.f|=8,1&this.f||k(this)},N.prototype.dispose=function(){this.d()},o.Kp7;let O=(0,o.vE9)({build:e=>R(()=>e.getEditorState(),t=>e.registerUpdateListener(e=>{t.value=e.editorState})),name:"@lexical/extension/EditorState"});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.`)}try{l="0.48.0+prod.esm"}catch(e){}let F=l??'"<unknown>+source"',V=new Set(["__proto__","constructor","prototype"]),D=new Set;class j{builder;configs;_dependency;_peerNameSet;extension;state;_signal;constructor(e,t){this.builder=e,this.extension=t,this.configs=new Set,this.state={id:0}}mergeConfigs(){let e=this.extension.config||{},t=this.extension.mergeConfig?this.extension.mergeConfig.bind(this.extension):o.Tc1;for(let n of this.configs)e=t(e,n);return e}init(e){let t,n=this.state;2===n.id||L(306,String(n.id));let r={getDependency:this.getInitDependency.bind(this),getDirectDependentNames:this.getDirectDependentNames.bind(this),getPeer:this.getInitPeer.bind(this),getPeerNameSet:this.getPeerNameSet.bind(this)},i={...r,getDependency:this.getDependency.bind(this),getInitResult:this.getInitResult.bind(this),getPeer:this.getPeer.bind(this)},l=Object.assign(n,{config:this.mergeConfigs(),id:3,registerState:r});this.state=l,this.extension.init&&(t=this.extension.init(e,l.config,r)),this.state=Object.assign(l,{id:4,initResult:t,registerState:i})}build(e){let t,n=this.state;4!==n.id&&L(307,String(n.id),String(5)),this.extension.build&&(t=this.extension.build(e,n.config,n.registerState));let r={...n.registerState,getOutput:()=>t,getSignal:this.getSignal.bind(this)};this.state=Object.assign(n,{id:5,output:t,registerState:r})}register(e,t){this._signal=t;let n=this.state;5!==n.id&&L(308,String(n.id),String(5));let r=this.extension.register&&this.extension.register(e,n.config,n.registerState);return this.state=Object.assign(n,{id:6}),()=>{let e=this.state;7!==e.id&&L(309,String(n.id),String(7)),this.state=Object.assign(e,{id:5}),r&&r()}}afterRegistration(e){let t,n=this.state;return 6!==n.id&&L(310,String(n.id),String(6)),this.extension.afterRegistration&&(t=this.extension.afterRegistration(e,n.config,n.registerState)),this.state=Object.assign(n,{id:7}),t}getSignal(){return void 0===this._signal&&L(311),this._signal}getInitResult(){void 0===this.extension.init&&L(312,this.extension.name);let e=this.state;return e.id>=4||L(313,String(e.id),String(4)),e.initResult}getInitPeer(e){let t=this.builder.extensionNameMap.get(e);return t?t.getExtensionInitDependency():void 0}getExtensionInitDependency(){let e=this.state;return e.id>=3||L(314,String(e.id),String(3)),{config:e.config}}getPeer(e){let t=this.builder.extensionNameMap.get(e);return t?t.getExtensionDependency():void 0}getInitDependency(e){let t=this.builder.getExtensionRep(e);return void 0===t&&L(315,this.extension.name,e.name),t.getExtensionInitDependency()}getDependency(e){let t=this.builder.getExtensionRep(e);return void 0===t&&L(315,this.extension.name,e.name),t.getExtensionDependency()}getState(){let e=this.state;return e.id>=7||L(316,String(e.id),String(7)),e}getDirectDependentNames(){return this.builder.incomingEdges.get(this.extension.name)||D}getPeerNameSet(){let e=this._peerNameSet;return e||(e=new Set((this.extension.peerDependencies||[]).map(([e])=>e)),this._peerNameSet=e),e}getExtensionDependency(){if(!this._dependency){let e=this.state;e.id>=5||L(317,this.extension.name),this._dependency={config:e.config,init:e.initResult,output:e.output}}return this._dependency}}let H={tag:o.T40};function J(){let e=(0,o.NiT)();e.isEmpty()&&e.append((0,o.lJ7)())}let B=(0,o.vE9)({config:(0,o.lVE)({setOptions:H,updateOptions:H}),init:({$initialEditorState:e=J})=>({$initialEditorState:e,initialized:!1}),afterRegistration(e,{updateOptions:t,setOptions:n},r){let i=r.getInitResult();if(!i.initialized){i.initialized=!0;let{$initialEditorState:r}=i;if((0,o.v0B)(r))e.setEditorState(r,n);else if("function"==typeof r)e.update(()=>{r(e)},t);else if(r&&("string"==typeof r||"object"==typeof r)){let t=e.parseEditorState(r);e.setEditorState(t,n)}}return()=>{}},name:"@lexical/extension/InitialState",nodes:[o.haT,o.Ey8,o.GRK,o.MZu,o.fD3]}),$=Symbol.for("@lexical/extension/LexicalBuilder");function Z(...e){return z.fromExtensions(e).buildEditor()}function U(){}function W(e){throw e}function K(e){return Array.isArray(e)?e:[e]}class z{roots;extensionNameMap;outgoingConfigEdges;incomingEdges;conflicts;_sortedExtensionReps;PACKAGE_VERSION;constructor(e){for(let t of(this.outgoingConfigEdges=new Map,this.incomingEdges=new Map,this.extensionNameMap=new Map,this.conflicts=new Map,this.PACKAGE_VERSION=F,this.roots=e,e))this.addExtension(t)}static fromExtensions(e){let t=[K(B)];for(let n of e)t.push(K(n));return new z(t)}static maybeFromEditor(e){let t=e[$];return t&&(t.PACKAGE_VERSION!==F&&L(292,t.PACKAGE_VERSION,F),t instanceof z||L(293)),t}static fromEditor(e){let t=z.maybeFromEditor(e);return void 0===t&&L(294),t}constructEditor(){let{$initialEditorState:e,onError:t,onWarn:n,...r}=this.buildCreateEditorArgs(),i=Object.assign((0,o.ieJ)({...r,...t?{onError:e=>{t(e,i)}}:{},...n?{onWarn:e=>{n(e,i)}}:{}}),{[$]:this});for(let e of this.sortedExtensionReps())e.build(i);return i}buildEditor(){let e=U;function t(){try{e()}finally{e=U}}let n=Object.assign(this.constructEditor(),{dispose:t,[Symbol.dispose]:t});
1return e=(0,o.Sdt)(this.registerEditor(n),()=>n.setRootElement(null)),n}hasExtensionByName(e){return this.extensionNameMap.has(e)}getExtensionRep(e){let t=this.extensionNameMap.get(e.name);if(t)return t.extension!==e&&L(295,e.name),t}addEdge(e,t,n){let r=this.outgoingConfigEdges.get(e);r?r.set(t,n):this.outgoingConfigEdges.set(e,new Map([[t,n]]));let i=this.incomingEdges.get(t);i?i.add(e):this.incomingEdges.set(t,new Set([e]))}addExtension(e){void 0!==this._sortedExtensionReps&&L(296);let[t]=K(e);"string"!=typeof t.name&&L(297,typeof t.name);let n=this.extensionNameMap.get(t.name);if(void 0!==n&&n.extension!==t&&L(298,t.name),!n){n=new j(this,t),this.extensionNameMap.set(t.name,n);let e=this.conflicts.get(t.name);for(let n of("string"==typeof e&&L(299,t.name,e),t.conflictsWith||[]))this.extensionNameMap.has(n)&&L(299,t.name,n),this.conflicts.set(n,t.name);for(let e of t.dependencies||[]){let n=K(e);this.addEdge(t.name,n[0].name,n.slice(1)),this.addExtension(n)}for(let[e,n]of t.peerDependencies||[])this.addEdge(t.name,e,n?[n]:[])}}sortedExtensionReps(){if(this._sortedExtensionReps)return this._sortedExtensionReps;let e=[],t=(n,r)=>{var i,l;let o=n.state;if(2===o.id)return;let a=n.extension.name;0===o.id||L(300,a,r||"[unknown]"),0===(i=o).id||L(304,String(i.id),String(0)),n.state=o=Object.assign(i,{id:1});let s=this.outgoingConfigEdges.get(a);if(s)for(let e of s.keys()){let n=this.extensionNameMap.get(e);n&&t(n,a)}1===(l=o).id||L(305,String(l.id),String(1)),n.state=o=Object.assign(l,{id:2}),e.push(n)};for(let e of this.extensionNameMap.values())0===e.state.id&&t(e);for(let t of e)for(let[e,n]of this.outgoingConfigEdges.get(t.extension.name)||[])if(n.length>0){let t=this.extensionNameMap.get(e);if(t)for(let e of n)t.configs.add(e)}for(let[e,...t]of this.roots)if(t.length>0){let n=this.extensionNameMap.get(e.name);for(let r of(void 0===n&&L(301,e.name),t))n.configs.add(r)}return this._sortedExtensionReps=e,this._sortedExtensionReps}registerEditor(e){let t=this.sortedExtensionReps(),n=new AbortController,r=[()=>n.abort()],i=n.signal;for(let n of t){let t=n.register(e,i);t&&r.push(t)}for(let n of t){let t=n.afterRegistration(e);t&&r.push(t)}return(0,o.Sdt)(...r)}buildCreateEditorArgs(){let e={},t=new Set,n=new Map,r=new Map,i={},l={},o=this.sortedExtensionReps();for(let a of o){let{extension:o}=a;if(void 0!==o.onError&&(e.onError=o.onError),void 0!==o.onWarn&&(e.onWarn=o.onWarn),void 0!==o.disableEvents&&(e.disableEvents=o.disableEvents),void 0!==o.parentEditor&&(e.parentEditor=o.parentEditor),void 0!==o.editable&&(e.editable=o.editable),void 0!==o.namespace&&(e.namespace=o.namespace),void 0!==o.$initialEditorState&&(e.$initialEditorState=o.$initialEditorState),o.nodes)for(let e of P(o)){if("function"!=typeof e){let t=n.get(e.replace);t&&L(302,o.name,e.replace.name,t.extension.name),n.set(e.replace,a)}t.add(e)}if(o.html){if(o.html.export)for(let[e,t]of o.html.export.entries())r.set(e,t);o.html.import&&Object.assign(i,o.html.import)}o.theme&&function e(t,n){if(t&&n&&!Array.isArray(n)&&"object"==typeof t&&"object"==typeof n){for(let r in n)!V.has(r)&&Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=e(t[r],n[r]));return t}return n}(l,o.theme)}Object.keys(l).length>0&&(e.theme=l),t.size&&(e.nodes=[...t]);let a=Object.keys(i).length>0,s=r.size>0;for(let t of((a||s)&&(e.html={},a&&(e.html.import=i),s&&(e.html.export=r)),o))t.init(e);return e.onError||(e.onError=W),e}}function q(e,t){let n=z.fromEditor(e).getExtensionRep(t);return void 0===n&&L(303,t.name),n.getExtensionDependency()}function G(e,t){let n=z.maybeFromEditor(e);if(!n)return;let r=n.extensionNameMap.get(t);return r?r.getExtensionDependency():void 0}function Y(e){return q((0,o.i0_)(),e).output}function X(e){return G((0,o.i0_)(),e)}let Q=new Set,ee=(0,o.vE9)({build(e,t,n){let r=n.getDependency(O).output,i=x({watchedNodeKeys:new Map}),l=R(()=>{},()=>A(()=>{let e=l.peek(),{watchedNodeKeys:t}=i.value,n,a=!1;r.value.read(()=>{if((0,o.vJq)())for(let[r,i]of t.entries()){if(0===i.size){t.delete(r);continue}let l=(0,o.nsf)(r),s=l&&l.isSelected()||!1;a=a||s!==(!!e&&e.has(r)),s&&(n=n||new Set).add(r)}}),!a&&n&&e&&n.size===e.size||(l.value=n)}));
1return{watchNodeKey:function(e){let t=new _(()=>(l.value||Q).has(e),void 0),{watchedNodeKeys:n}=i.peek(),r=n.get(e),o=void 0!==r;return(r=r||new Set).add(t),o||(n.set(e,r),i.value={watchedNodeKeys:n}),t}}},dependencies:[O],name:"@lexical/extension/NodeSelection"}),et=(0,o.guI)("INSERT_HORIZONTAL_RULE_COMMAND");class en extends o.Kp7{static getType(){return"horizontalrule"}static clone(e){return new en(e.__key)}static importJSON(e){return ei().updateFromJSON(e)}static importDOM(){return{hr:()=>({conversion:er,priority:0})}}exportDOM(){return{element:(0,o.A$M)().createElement("hr")}}createDOM(e){let t=(0,o.A$M)().createElement("hr");return(0,o.ZB7)(t,e.theme.hr),t}getTextContent(){return"\n"}isInline(){return!1}updateDOM(){return!1}}function er(){return{node:ei()}}function ei(){return(0,o.phO)(en)}function el(e){return e instanceof en}let eo=(0,o.vE9)({dependencies:[O,ee],name:"@lexical/extension/HorizontalRule",nodes:()=>[en],register(e,t,n){let{watchNodeKey:r}=n.getDependency(ee).output,i=x({nodeSelections:new Map}),l=e._config.theme.hrSelected??"selected";return(0,o.Sdt)(e.registerCommand(et,e=>{let t=(0,o.vJq)();if(!(0,o.I2P)(t))return!1;if(null!==t.focus.getNode()){let e=ei();(0,a.Pe)(e)}return!0},o.jZM),e.registerCommand(o.d8p,e=>{if((0,o.vAA)(e.target)){let t=(0,o.pJU)(e.target);if(el(t))return function(e,t=!1){let n,r=(0,o.vJq)(),i=e.isSelected(),l=e.getKey();t&&(0,o.RTZ)(r)?n=r:(n=(0,o.rUs)(),(0,o.n1P)(n)),i?n.delete(l):n.add(l)}(t,e.shiftKey),!0}return!1},o.AcJ),e.registerMutationListener(en,(t,n)=>{c(()=>{let n=!1,{nodeSelections:l}=i.peek();for(let[i,o]of t.entries())if("destroyed"===o)l.delete(i),n=!0;else{let t=l.get(i),o=e.getElementByKey(i);t?t.domNode.value=o:(n=!0,l.set(i,{domNode:x(o),selectedSignal:r(i)}))}n&&(i.value={nodeSelections:l})})}),A(()=>{let e=[];for(let{domNode:t,selectedSignal:n}of i.value.nodeSelections.values())e.push(A(()=>{let e=t.value;e&&(n.value?(0,o.ZB7)(e,l):(0,o.HEf)(e,l))}));return(0,o.Sdt)(...e)}))}}),ea=(0,o.vE9)({build:(e,t)=>I({inheritEditableFromParent:t.inheritEditableFromParent}),config:(0,o.lVE)({$getParentEditor:function(){let e=(0,o.i0_)();return z.fromEditor(e),e},inheritEditableFromParent:!1}),init:(e,t,n)=>{let r=t.$getParentEditor();e.parentEditor=r,e.theme=e.theme||r._config.theme},name:"@lexical/extension/NestedEditor",register:(e,t,n)=>A(()=>{let t=e._parentEditor;if(t&&n.getOutput().inheritEditableFromParent.value)return e.setEditable(t.isEditable()),t.registerEditableListener(e.setEditable.bind(e))})});function es(e){(0,o.ff4)(e)&&e.isInline()&&e.isEmpty()&&e.remove()}let eu=(0,o.vE9)({build:(e,t,n)=>I(t),config:(0,o.lVE)({disabled:!1}),name:"@lexical/NormalizeInlineElements",register:(e,t,n)=>{let r=n.getOutput();return A(()=>{if(!r.disabled.value){let t=[];for(let{klass:n,transforms:r}of e._nodes.values())n.prototype instanceof o.fGB&&n.prototype.isInline!==o.fGB.prototype.isInline&&(r.add(es),t.push(()=>r.delete(es)));return()=>t.forEach(e=>e())}})}}),ec=new Set([o.XI_,o.OQi]),ed=(0,o.vE9)({build:(e,t,n)=>I(t),config:(0,o.lVE)({$fixFocusOverselection:function(){let e=(0,o.vJq)();if((0,o.I2P)(e)&&!e.isCollapsed()){let t=(0,o.NZv)((0,o.$iu)(e),"next"),n=t.focus;for((0,o.rN)(n)&&t.anchor.origin!==n.origin&&0===n.offset&&(n=(0,o.NG9)(n.getSiblingCaret())),(0,o.OpE)(n)&&t.anchor.origin!==n.origin&&(0,o.wH$)(n.origin)&&(n=(0,o.NG9)(n));(0,o.cmH)(n)&&t.anchor.origin!==n.origin;)n=(0,o.NG9)((0,o.IlV)(n.origin,"next"));if((0,o.OpE)(n)&&(0,o.ff4)(n.origin)&&(n=(0,o.lSZ)((0,o.uwZ)(n.origin,"previous")).getFlipped()),!(n=(0,o.lSZ)(n)).isSamePointCaret(t.focus)){let e=(0,o.xQ8)((0,o.TJt)(t.anchor,n)),r=(0,o.i0_)().getRootElement(),i=r&&(0,o.peL)(r.ownerDocument.defaultView);i&&(0,o.mYE)((0,o.S1w)(),e,(0,o.i0_)(),i,ec,r)}}},dateNow:Date.now,disabled:!1,thresholdMsec:100}),name:"@lexical/NormalizeTripleClickSelection",register:(e,t,n)=>A(()=>{let t=n.getOutput();if(!t.disabled.value)return e.registerRootListener(n=>{if(!n)return;let r=0,i=e=>{if(e?3===e.detail:r>0){let n=t.dateNow.peek()();r=e&&"mousedown"===e.type||n-r<=t.thresholdMsec.peek()?n:0}return r};return(0,o.Sdt)(e.registerCommand(o.MvL,()=>(i(null)&&(r=0,t.$fixFocusOverselection.peek()()),!1),o.xyu),(0,o.Nwr)(n,{mousedown:i,mouseup:i},!0))})})});function ef(e){return e.canIndent()}function ep(e,t,n=ef){return(0,o.Sdt)(e.registerCommand(o.OXk,t=>{let n=(0,o.vJq)();if(!(0,o.I2P)(n))return!1;t.preventDefault();let r=!function(e){if(e.getNodes().filter(e=>(0,o.y68)(e)&&e.canIndent()).length>0)return!0;let t=e.anchor,n=e.focus,r=n.isBefore(t)?n:t,i=r.getNode(),l=(0,a.mB)(i);if(l.canIndent()){let e=l.getKey(),t=(0,o.uTE)();
1if(t.anchor.set(e,0,"element"),t.focus.set(e,0,"element"),(t=(0,o.CaD)(t)).anchor.is(r))return!0}return!1}(n)?o.YW5:t.shiftKey?o.sik:o.PiT;return e.dispatchCommand(r,void 0)},o.jZM),e.registerCommand(o.PiT,()=>{let e="number"==typeof t?t:t?t.peek():null,r=(0,o.vJq)();if(!(0,o.I2P)(r))return!1;let i="function"==typeof n?n:n.peek();return(0,a.Jy)(t=>{if(i(t)){let n=t.getIndent()+1;(!e||n<e)&&t.setIndent(n)}})},o.da8))}},61259:(e,t,n)=>{"use strict";let r;n.d(t,{EY:()=>E,HN:()=>g,LO:()=>y,Mx:()=>p,SQ:()=>S,Tj:()=>w,X3:()=>b,Zb:()=>v,fh:()=>h,pb:()=>_,qM:()=>C,rc:()=>m,uX:()=>x});var i=n(12115);n(95155);var l=Object.defineProperty,o=(e,t,n)=>((e,t,n)=>t in e?l(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n)(e,"symbol"!=typeof t?t+"":t,n);class a{constructor(e=new Map){this.map=e}clone(){return new a(new Map(this.map))}increment(e){let t=this.map.get(e)??0;this.map.set(e,t+1)}decrement(e,t){let n=this.map.get(e);void 0!==n&&(n-=1,this.map.set(e,n),0===n&&t())}}class s{constructor(){o(this,"map",new Map)}getOrCreate(e){let t=this.map.get(e);return void 0===t&&(t=new Set,this.map.set(e,t)),t}get(e){return this.map.get(e)}use(e,t){let n=this.get(e);void 0!==n&&t(n)}delete(e){return this.map.delete(e)}}function u(){}let c="cell";function d(e,t){return e===t}let f=new Map;class p{constructor(e={}){for(let t of(o(this,"subscriptions",new s),o(this,"singletonSubscriptions",new Map),o(this,"graph",new s),o(this,"state",new Map),o(this,"distinctNodes",new Map),o(this,"executionMaps",new Map),o(this,"definitionRegistry",new Set),o(this,"combinedCells",[]),Object.getOwnPropertySymbols(e)))this.state.set(t,e[t])}cellInstance(e,t=!0,n=Symbol()){return this.state.has(n)||this.state.set(n,e),!1===t||this.distinctNodes.has(n)||this.distinctNodes.set(n,!0===t?d:t),n}signalInstance(e=!0,t=Symbol()){return!1!==e&&this.distinctNodes.set(t,!0===e?d:e),t}sub(e,t){this.register(e);let n=this.subscriptions.getOrCreate(e);return n.add(t),()=>n.delete(t)}singletonSub(e,t){return this.register(e),void 0===t?this.singletonSubscriptions.delete(e):this.singletonSubscriptions.set(e,t),()=>this.singletonSubscriptions.delete(e)}resetSingletonSubs(){this.singletonSubscriptions.clear()}subMultiple(e,t){let n=this.signalInstance();return this.connect({map:e=>(...t)=>{e(t)},sink:n,sources:e}),this.sub(n,t)}pubIn(e){var t;let n=Reflect.ownKeys(e),r=this.getExecutionMap(n),i=r.refCount.clone(),l=r.participatingNodes.slice(),o=new Map(this.state),a=e=>{this.graph.use(e,t=>{for(let{sources:n,sink:r}of t)n.has(e)&&i.decrement(r,()=>{l.splice(l.indexOf(r),1),a(r)})})};for(;;){let n=l.shift();if(void 0===n)break;let i=!1,s=e=>{let t=this.distinctNodes.get(n);if(null!=t&&t(o.get(n),e)){i=!1;return}i=!0,o.set(n,e),this.state.has(n)&&this.state.set(n,e)};if(Object.prototype.hasOwnProperty.call(e,n)?s(e[n]):r.projections.use(n,e=>{for(let t of e){let e=[...Array.from(t.sources),...Array.from(t.pulls)].map(e=>o.get(e));t.map(s)(...e)}}),i){let e=o.get(n);this.inContext(()=>{this.subscriptions.use(n,t=>{for(let n of t)n(e)})}),null==(t=this.singletonSubscriptions.get(n))||t(e)}else a(n)}}connect({sources:e,pulls:t=[],map:n,sink:r}){let i={map:n,pulls:new Set(t),sink:this.register(r),sources:new Set(e)};for(let n of[...e,...t])this.register(n),this.graph.getOrCreate(n).add(i);this.executionMaps.clear()}pub(e,t){this.pubIn({[e]:t})}pipe(e,...t){return this.combineOperators(...t)(e)}transformer(...e){return t=>{var n;let r;return n=this.signalInstance(),r=n,this.link(this.pipe(r,...e),t),n}}link(e,t){this.connect({map:e=>t=>{e(t)},sink:t,sources:[e]})}combine(...e){var t,n;return n=t=this.signalInstance(),this.connect({map:e=>(...t)=>{e(t)},sink:n,sources:e}),t}combineCells(...e){let t=this.combinedCells.find(t=>e.length===t.sources.length&&e.every((e,n)=>e===t.sources[n]));if(t)return t.cell;let n=this.cellInstance(e.map(e=>this.getValue(e)),!0);return this.connect({map:e=>(...t)=>{e(t)},sink:n,sources:e}),this.combinedCells.push({sources:e,cell:n}),n}getValue(e){return this.register(e),this.state.get(e)}getValues(e){return e.map(e=>this.getValue(e))}register(e){var t,n;let r=f.get(e);return void 0===r||this.definitionRegistry.has(e)?e:(this.definitionRegistry.add(e),n=t=r.type===c?this.cellInstance(r.
1initial,r.distinct,e):this.signalInstance(r.distinct,e),this.inContext(()=>{r.init(this,n)}),t)}inContext(e){let t=r;r=this;let n=e();return r=t,n}changeWith(e,t,n){this.connect({sources:[t],pulls:[e],sink:e,map:e=>(t,r)=>{e(n(r,t))}})}calculateExecutionMap(e){let t=[],n=new Set,r=new s,i=new a,l=new s,o=(e,a=0)=>{i.increment(e),n.has(e)||(this.register(e),r.use(e,e=>{a=Math.max(...Array.from(e).map(e=>t.indexOf(e)))+1}),this.graph.use(e,t=>{for(let n of t)n.sources.has(e)?(l.getOrCreate(n.sink).add(n),o(n.sink,a)):r.getOrCreate(n.sink).add(e)}),n.add(e),t.splice(a,0,e))};return e.forEach(o),{participatingNodes:t,pendingPulls:r,projections:l,refCount:i}}getExecutionMap(e){let t=e;if(1===e.length){t=e[0];let n=this.executionMaps.get(t);if(void 0!==n)return n}else for(let[t,n]of this.executionMaps.entries())if(Array.isArray(t)&&t.length===e.length&&t.every(t=>e.includes(t)))return n;let n=this.calculateExecutionMap(e);return this.executionMaps.set(t,n),n}combineOperators(...e){return t=>{for(let n of e)t=n(t,this);return t}}}function h(e,t=u,n=!0){var r,i;return i=r=Symbol(),f.set(i,{type:c,distinct:n,initial:e,init:t}),r}function g(e=u,t=!1){var n,r;return r=n=Symbol(),f.set(r,{type:"signal",distinct:t,init:e}),n}function m(e=u){var t,n;return n=t=Symbol(),f.set(n,{type:"signal",distinct:!1,init:e}),t}let v=i.createContext(null);function y(){let e=i.useContext(v);if(null===e)throw Error("useRealm must be used within a RealmContextProvider");return e}function b(e){let t=y();t.register(e);let n=i.useCallback(n=>t.sub(e,n),[t,e]);return i.useSyncExternalStore(n,()=>t.getValue(e),()=>t.getValue(e))}function x(...e){let t=y();return b(i.useMemo(()=>t.combineCells.apply(t,e),[t,...e]))}function C(e){let t=y();return t.register(e),i.useCallback(n=>{t.pub(e,n)},[t,e])}function w(e){return(t,n)=>{let r=n.signalInstance();return n.connect({map:t=>n=>{t(e(n))},sink:r,sources:[t]}),r}}function E(...e){return(t,n)=>{let r=n.signalInstance();return n.connect({map:e=>(...t)=>{e(t)},pulls:e,sink:r,sources:[t]}),r}}function _(e){return(t,n)=>{let r=n.signalInstance();return n.connect({map:t=>n=>{e(n)&&t(n)},sink:r,sources:[t]}),r}}function S(e,t){return(n,r)=>{let i=r.signalInstance();return r.connect({map:n=>r=>{n(t=e(t,r))},sink:i,sources:[n]}),i}}},61536:(e,t,n)=>{"use strict";n.d(t,{J:()=>a,i:()=>c});var r=n(80632),i=n(29170),l=n(14445);function o(e){let t={};return e.split(";").filter(e=>""!==e.trim()).forEach(e=>{let[n,r]=e.split(":").map(e=>e.trim());t[n]=r}),t}function a(e){let{root:t,visitors:n,jsxComponentDescriptors:i,jsxIsAvailable:a,addImportStatements:c=!0}=e,d=null,f=new Set,p=new Map;function h(e,t){f.add(e),t&&p.set(e,{...t})}function g(e,t){if(null===d)return d=t;if(!(e.children instanceof Array))throw Error("Attempting to append children to a non-parent");let r=e.children,i=r.at(-1);if(i){let e=n.find(e=>{var n;return null==(n=e.shouldJoin)?void 0:n.call(e,i,t)});if(e){let n=e.join(i,t);return r.splice(r.length-1,1,n),n}}return r.push(t),t}
1function m(e,t){e.getChildren().forEach(e=>{v(e,t)})}function v(e,t){var i;let l=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,o=n.find((t,n)=>{var r;return(null==l||!l.has(n))&&(null==(r=t.testLexicalNode)?void 0:r.call(t,e))});if(!o)throw Error("no lexical visitor found for ".concat(e.getType()),{cause:e});null==(i=o.visitLexicalNode)||i.call(o,{lexicalNode:e,mdastParent:t,actions:{addAndStepInto(n){let i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},l=!(arguments.length>2)||void 0===arguments[2]||arguments[2],o={type:n,...i,...l?{children:[]}:{}};g(t,o),(0,r.ff4)(e)&&l&&m(e,o)},appendToParent:g,visitChildren:m,visit:v,registerReferredComponent:h,nextVisitor(){v(e,t,(null!=l?l:new Set).add(n.indexOf(o)))}}})}if(n=[...n].sort((e,t)=>{var n,r;return(null!=(n=t.priority)?n:0)-(null!=(r=e.priority)?r:0)}),v(t,null),null===d)throw Error("traversal ended with no root element");let y=new Map,b=new Map;for(let e of f){var x,C;let t=null!=(C=null!=(x=i.find(t=>t.name===e))?x:p.get(e))?C:i.find(e=>"*"===e.name);if(!t)throw Error("Component ".concat(e," is used but not imported"));if(t.source)if(t.defaultExport)b.set(e,t.source);else{let{source:n}=t,r=y.get(n);r?r.push(e):y.set(n,[e])}}if(!c){for(let[e,t]of y.entries()){let n=t.filter(e=>p.has(e));n.length>0?y.set(e,n):y.delete(e)}for(let e of b.keys())p.has(e)||b.delete(e)}let w=Array.from(y).map(e=>{let[t,n]=e;return{type:"mdxjsEsm",value:"import { ".concat(n.join(", ")," } from '").concat(t,"'")}});w.push(...Array.from(b).map(e=>{let[t,n]=e;return{type:"mdxjsEsm",value:"import ".concat(t," from '").concat(n,"'")}}));let E=d,_=E.children.find(e=>"yaml"===e.type);return _?E.children.splice(E.children.indexOf(_)+1,0,...w):E.children.unshift(...w),function e(t,n){if("strong"===t.type||"emphasis"===t.type){let r=t.children.at(-1);if((null==r?void 0:r.type)==="text"){let i=s.exec(r.value);if(i){r.value=r.value.replace(s,"");let l=n.at(-1);l&&(l.children.splice(l.children.indexOf(t)+1,0,{type:"text",value:i[0]}),e(l,n.slice(0,-1)))}}let i=t.children.at(0);if((null==i?void 0:i.type)==="text"){let r=u.exec(i.value);if(r){i.value=i.value.replace(u,"");let l=n.at(-1);l&&(l.children.splice(l.children.indexOf(t),0,{type:"text",value:r[0]}),e(l,n.slice(0,-1)))}}}"children"in t&&t.children.length>0&&t.children.forEach(r=>{e(r,[...n,t])})}(E,[]),function e(t){if("children"in t&&t.children.length>0){if((0,l.X)(t)&&1===t.children.length){let e=t.children[0];"mdxJsxTextElement"===e.type&&"span"===e.name&&(e.attributes.forEach(e=>{if("mdxJsxAttribute"===e.type){let n=t.attributes.find(t=>"mdxJsxAttribute"===t.type&&t.name===e.name);if(n)if("className"===e.name){let t=new Set([...n.value.split(" "),...e.value.split(" ")]);n.value=Array.from(t).join(" ")}else"style"===e.name&&(n.value=function(e,t){let n=o(e),r=o(t);return Object.entries({...n,...r}).map(e=>{let[t,n]=e;return"".concat(t,": ").concat(n)}).join("; ")}(n.value,e.value));else t.attributes.push(e)}}),t.children=e.children)}t.children.forEach(t=>{e(t)})}}(E),a||function e(t){if(Object.hasOwn(t,"children")){let n=[];t.children.forEach(t=>{"mdxJsxTextElement"===t.type&&"u"===t.name?n.push({type:"html",value:"<u>"},...t.children,{type:"html",value:"</u>"}):(n.push(t),e(t))}),t.children=n}}(E),E}let s=/\s+$/,u=/^\s+/;function c(e){let{root:t,toMarkdownOptions:n,toMarkdownExtensions:r,visitors:l,jsxComponentDescriptors:o,jsxIsAvailable:s}=e;return(0,i.l)(a({root:t,visitors:l,jsxComponentDescriptors:o,jsxIsAvailable:s}),{extensions:r,...n})+"\n"}},62249:(e,t,n)=>{"use strict";n(97453)},62313:(e,t,n)=>{"use strict";n.d(t,{yl:()=>i});var r=n(80632);function i(e){return()=>(function(e){if(!function(e,t=!0){if(e)return!1;let n=(0,r.NiT)().getTextContent();return t&&(n=n.trim()),""===n}(e,!1))return!1;let t=(0,r.NiT)().getChildren(),n=t.length;if(n>1)return!1;for(let e=0;e<n;e++){let n=t[e];if((0,r.Cyw)(n))return!1;if((0,r.ff4)(n)){if(!(0,r.bSg)(n)||0!==n.__indent)return!1;let t=n.getChildren(),i=t.length;for(let n=0;n<i;n++){let n=t[e];if(!(0,r.kFe)(n))return!1}}}return!0})(e)}},65333:(e,t,n)=>{"use strict";n.d(t,{I:()=>u});var r=n(47520),i=n(85203),l=n(12115),o=n(74898),a=n(61259),s=n(45276);let u=l.forwardRef((e,t)=>
1{let{title:n,children:u}=e,c=(0,a.X3)(s.xZ);return l.createElement(r.Kq,{delayDuration:100},l.createElement(r.bL,null,l.createElement(r.l9,{ref:t,asChild:!0},l.createElement("span",{className:o.Ay.tooltipTrigger},u)),l.createElement(r.ZL,{container:null==c?void 0:c.current},l.createElement(r.UC,{className:i(o.Ay.tooltipContent),sideOffset:10},n))))})},70062:(e,t,n)=>{"use strict";n.d(t,{G:()=>s});var r=n(34102);let i={testNode:"blockquote",visitNode(e){let{actions:t}=e;t.addAndStepInto((0,r.xi)())}},l={testLexicalNode:r.jd,visitLexicalNode:e=>{let{actions:t}=e;t.addAndStepInto("blockquote")}};var o=n(11919),a=n(45276);let s=(0,o.Z)({init(e){e.pubIn({[a.$0]:"quote",[a.R1]:i,[a.q]:r.dJ,[a.iI]:l})}})},73531:(e,t,n)=>{"use strict";n.d(t,{$n:()=>r$,bL:()=>rJ,wv:()=>rB,OY:()=>rZ,sy:()=>rU});var r,i,l,o,a=n(12115),s=n.t(a,2),u=n(95155),c=Object.defineProperty,d=(e,t)=>c(e,"name",{value:t,configurable:!0});function f(e,t=[]){let n=[];function r(t,r){let i=a.createContext(r);i.displayName=t+"Context";let l=n.length;n=[...n,r];let o=d(t=>{let{scope:n,children:r,...o}=t,s=n?.[e]?.[l]||i,c=a.useMemo(()=>o,Object.values(o));return(0,u.jsx)(s.Provider,{value:c,children:r})},"Provider");function s(n,o,u={}){let{optional:c=!1}=u,d=o?.[e]?.[l]||i,f=a.useContext(d);if(f)return f;if(void 0!==r)return r;if(!c)throw Error(`\`${n}\` must be used within \`${t}\``)}return o.displayName=t+"Provider",d(s,"useContext"),[o,s]}d(r,"createContext");let i=d(()=>{let t=n.map(e=>a.createContext(e));return d(function(n){let r=n?.[e]||t;return a.useMemo(()=>({[`__scope${e}`]:{...n,[e]:r}}),[n,r])},"useScope")},"createScope");return i.scopeName=e,[r,p(i,...t)]}function p(...e){let t=e[0];if(1===e.length)return t;let n=d(()=>{let n=e.map(e=>({useScope:e(),scopeName:e.scopeName}));return d(function(e){let r=n.reduce((t,{useScope:n,scopeName:r})=>{let i=n(e)[`__scope${r}`];return{...t,...i}},{});return a.useMemo(()=>({[`__scope${t.scopeName}`]:r}),[r])},"useComposedScopes")},"createScope");return n.scopeName=t.scopeName,n}d(function(e,t){let n=a.createContext(t);n.displayName=e+"Context";let r=d(e=>{let{children:t,...r}=e,i=a.useMemo(()=>r,Object.values(r));return(0,u.jsx)(n.Provider,{value:i,children:t})},"Provider");function i(r,l={}){let{optional:o=!1}=l,s=a.useContext(n);if(s)return s;if(void 0!==t)return t;if(!o)throw Error(`\`${r}\` must be used within \`${e}\``)}return r.displayName=e+"Provider",d(i,"useContext"),[r,i]},"createContext"),d(f,"createContextScope"),d(p,"composeContextScopes");var h=Object.defineProperty,g=(e,t)=>h(e,"name",{value:t,configurable:!0}),m=!!("undefined"!=typeof window&&window.document&&window.document.createElement);function v(e,t,{checkForDefaultPrevented:n=!0}={}){return g(function(r){if(e?.(r),!1===n||!r||!r.defaultPrevented)return t?.(r)},"handleEvent")}function y(e){if(!m)throw Error("Cannot access document outside of the DOM");return e?.ownerDocument??document}function b(e){return"IFRAME"===e.tagName}g(v,"composeEventHandlers"),g(function(e){if(!m)throw Error("Cannot access window outside of the DOM");return e?.ownerDocument?.defaultView??window},"getOwnerWindow"),g(y,"getOwnerDocument"),g(function e(t,n=!1){let{activeElement:r}=y(t);if(!r?.nodeName)return null;if(b(r)&&r.contentDocument)return e(r.contentDocument.body,n);if(n){let e=r.getAttribute("aria-activedescendant");if(e){let t=y(r).getElementById(e);if(t)return t}}return r},"getActiveElement"),g(b,"isFrame");var x=n(67325),C=n(75777),w=n(15378),E=Object.defineProperty,_=(e,t)=>
1E(e,"name",{value:t,configurable:!0});function S(e,t){if("function"==typeof e)return e(t);null!=e&&(e.current=t)}function k(...e){return t=>{let n=!1,r=e.map(e=>{let r=S(e,t);return n||"function"!=typeof r||(n=!0),r});if(n)return()=>{for(let t=0;t<r.length;t++){let n=r[t];"function"==typeof n?n():S(e[t],null)}}}}function T(...e){return a.useCallback(k(...e),e)}_(S,"setRef"),_(k,"composeRefs"),_(T,"useComposedRefs");var N=Object.defineProperty,A=(e,t)=>N(e,"name",{value:t,configurable:!0});function I(e){let t=a.forwardRef((t,n)=>{let{children:r,...i}=t,l=null,o=!1,s=[];V(r)&&"function"==typeof J&&(r=J(r._payload)),a.Children.forEach(r,e=>{if(L(e)){o=!0;let t="child"in e.props?e.props.child:e.props.children;V(t)&&"function"==typeof J&&(t=J(t._payload)),l=P(e,t),s.push(l?.props?.children)}else s.push(e)}),l?l=a.cloneElement(l,void 0,s):!o&&1===a.Children.count(r)&&a.isValidElement(r)&&(l=r);let u=l?O(l):void 0,c=T(n,u);if(!l){if(r||0===r)throw Error(o?H(e):j(e));return r}let d=R(i,l.props??{});return l.type!==a.Fragment&&(d.ref=n?c:u),a.cloneElement(l,d)});return t.displayName=`${e}.Slot`,t}A(I,"createSlot");var M=Symbol.for("radix.slottable");A(function(e){let t=A(e=>"child"in e?e.children(e.child):e.children,"Slottable");return t.displayName=`${e}.Slottable`,t.__radixId=M,t},"createSlottable");var P=A((e,t)=>{if("child"in e.props){let t=e.props.child;return a.isValidElement(t)?a.cloneElement(t,void 0,e.props.children(t.props.children)):null}return a.isValidElement(t)?t:null},"getSlottableElementFromSlottable");function R(e,t){let n={...t};for(let r in t){let i=e[r],l=t[r];/^on[A-Z]/.test(r)?i&&l?n[r]=(...e)=>{let t=l(...e);return i(...e),t}:i&&(n[r]=i):"style"===r?n[r]={...i,...l}:"className"===r&&(n[r]=[i,l].filter(Boolean).join(" "))}return{...e,...n}}function O(e){let t=Object.getOwnPropertyDescriptor(e.props,"ref")?.get,n=t&&"isReactWarning"in t&&t.isReactWarning;return n?e.ref:(n=(t=Object.getOwnPropertyDescriptor(e,"ref")?.get)&&"isReactWarning"in t&&t.isReactWarning)?e.props.ref:e.props.ref||e.ref}function L(e){return a.isValidElement(e)&&"function"==typeof e.type&&"__radixId"in e.type&&e.type.__radixId===M}A(R,"mergeProps"),A(O,"getElementRef"),A(L,"isSlottable");var F=Symbol.for("react.lazy");function V(e){return null!=e&&"object"==typeof e&&"$$typeof"in e&&e.$$typeof===F&&"_payload"in e&&D(e._payload)}function D(e){return"object"==typeof e&&null!==e&&"then"in e}A(V,"isLazyComponent"),A(D,"isPromiseLike");var j=A(e=>`${e} failed to slot onto its children. Expected a single React element child or \`Slottable\`.`,"createSlotError"),H=A(e=>`${e} failed to slot onto its \`Slottable\`. Expected \`Slottable\` to receive a single React element child.`,"createSlottableError"),J=s[" use ".trim().toString()],B=Object.defineProperty,$=(e,t)=>B(e,"name",{value:t,configurable:!0});function Z(e){let t=e+"CollectionProvider",[n,r]=f(t),[i,l]=n(t,{collectionRef:{current:null},itemMap:new Map}),o=$(e=>{let{scope:t,children:n}=e,r=a.useRef(null),l=a.useRef(new Map).current;return(0,u.jsx)(i,{scope:t,itemMap:l,collectionRef:r,children:n})},"CollectionProvider");o.displayName=t;let s=e+"CollectionSlot",c=I(s),d=a.forwardRef((e,t)=>{let{scope:n,children:r}=e,i=T(t,l(s,n).collectionRef);return(0,u.jsx)(c,{ref:i,children:r})});d.displayName=s;let p=e+"CollectionItemSlot",h="data-radix-collection-item",g=I(p),m=a.forwardRef((e,t)=>{let{scope:n,children:r,...i}=e,o=a.useRef(null),s=T(t,o),c=l(p,n);return a.useEffect(()=>(c.itemMap.set(o,{ref:o,...i}),()=>void c.itemMap.delete(o))),(0,u.jsx)(g,{...{[h]:""},ref:s,children:r})});function v(t){let n=l(e+"CollectionConsumer",t);return a.useCallback(()=>{let e=n.collectionRef.current;if(!e)return[];let t=Array.from(e.querySelectorAll("[".concat(h,"]")));return Array.from(n.itemMap.values()).sort((e,n)=>t.indexOf(e.ref.current)-t.indexOf(n.ref.current))},[n.collectionRef,n.itemMap])}return m.displayName=p,$(v,"useCollection"),[{Provider:o,Slot:d,ItemSlot:m},v,r]}$(Z,"createCollection");var U=new WeakMap,W=(r=new WeakMap,$(i=class e extends Map{set(e,t){return U.get(this)&&(this.has(e)?(0,x._)(this,r)[(0,x._)(this,r).indexOf(e)]=e:(0,x._)(this,r).push(e)),super.set(e,t),this}insert(e,t,n){let i,l=this.has(t),o=(0,x._)(this,r).length,a=q(e),s=a>=0?a:o+a,u=s<0||s>=o?-1:s;if(u===this.size||l&&u===this.size-1||-1===u)return this.set(t,n),this;let c=this.size+ +!l;a<0&&s++;let d=[...(0,x._)(this,r)],f=!1;for(let e=s;e<c;e++)if(s===e){let r=d[e];d[e]===t&&(r=d[e+1]),l&&this.delete(t),i=this.get(r),this.set(t,n)}else{f||d[e-1]!==t||(f=!0);let n=d[f?e:e-1],r=i;i=this.get(n),this.delete(n),this.set(n,r)}return this}with(t,n,r){let i=new e(this);return i.insert(t,n,r),i}before(e){let t=(0,x._)(this,r).indexOf(e)-1;if(!(t<0))return this.entryAt(t)}setBefore(e,t,n){let i=(0,x._)(this,r).indexOf(e);return -1===i?this:this.insert(i,t,n)}after(e){let t=(0,x._)(this,r).indexOf(e);if(-1!==(t=-1===t||t===this.size-1?-1:t+1))return this.entryAt(t)}setAfter(e,t,n){let i=(0,x._)(this,r).indexOf(e);return -1===i?this:this.insert(i+1,t,n)}first(){return this.entryAt(0)}last(){return this.entryAt(-1)}clear(){return(0,w._)(this,r,[]),super.clear()}delete(e){let t=super.delete(e);return t&&(0,x._)(this,r).splice((0,x._)(this,r).indexOf(e),1),t}deleteAt(e){let t=this.keyAt(e);return void 0!==t&&this.delete(t)}at(e){let t=K((0,x._)(this,r),e);if(void 0!==t)return this.get(t)}entryAt(e){let t=K((0,x._)(this,r),e);if(void 0!==t)return[t,this.get(t)]}indexOf(e){return(0,x._)(this,r).indexOf(e)}keyAt(e){return K((0,x._)(this,r),e)}from(e,t){let n=this.indexOf(e);if(-1===n)return;let r=n+t;return r<0&&(r=0),r>=this.size&&(r=this.size-1),this.at(r)}keyFrom(e,t){let n=this.indexOf(e);if(-1===n)return;let r=n+t;return r<0&&(r=0),r>=this.size&&(r=this.size-1),this.keyAt(r)}find(e,t){let n=0;for(let r of this){if(Reflect.apply(e,t,[r,n,this]))return r;n++}
1}findIndex(e,t){let n=0;for(let r of this){if(Reflect.apply(e,t,[r,n,this]))return n;n++}return -1}filter(t,n){let r=[],i=0;for(let e of this)Reflect.apply(t,n,[e,i,this])&&r.push(e),i++;return new e(r)}map(t,n){let r=[],i=0;for(let e of this)r.push([e[0],Reflect.apply(t,n,[e,i,this])]),i++;return new e(r)}reduce(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];let[r,i]=t,l=0,o=null!=i?i:this.at(0);for(let e of this)o=0===l&&1===t.length?e:Reflect.apply(r,this,[o,e,l,this]),l++;return o}reduceRight(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];let[r,i]=t,l=null!=i?i:this.at(-1);for(let e=this.size-1;e>=0;e--){let n=this.at(e);l=e===this.size-1&&1===t.length?n:Reflect.apply(r,this,[l,n,e,this])}return l}toSorted(t){return new e([...this.entries()].sort(t))}toReversed(){let t=new e;for(let e=this.size-1;e>=0;e--){let n=this.keyAt(e),r=this.get(n);t.set(n,r)}return t}toSpliced(){for(var t=arguments.length,n=Array(t),r=0;r<t;r++)n[r]=arguments[r];let i=[...this.entries()];return i.splice(...n),new e(i)}slice(t,n){let r=new e,i=this.size-1;if(void 0===t)return r;t<0&&(t+=this.size),void 0!==n&&n>0&&(i=n-1);for(let e=t;e<=i;e++){let t=this.keyAt(e),n=this.get(t);r.set(t,n)}return r}every(e,t){let n=0;for(let r of this){if(!Reflect.apply(e,t,[r,n,this]))return!1;n++}return!0}some(e,t){let n=0;for(let r of this){if(Reflect.apply(e,t,[r,n,this]))return!0;n++}return!1}constructor(e){super(e),(0,C._)(this,r,{writable:!0,value:void 0}),(0,w._)(this,r,[...super.keys()]),U.set(this,!0)}},"OrderedDict"),i);function K(e,t){if("at"in Array.prototype)return Array.prototype.at.call(e,t);let n=z(e,t);return -1===n?void 0:e[n]}function z(e,t){let n=e.length,r=q(t),i=r>=0?r:n+r;return i<0||i>=n?-1:i}function q(e){return e!=e||0===e?0:Math.trunc(e)}function G(e,t){if(e===t)return!0;if("object"!=typeof e||"object"!=typeof t||null==e||null==t)return!1;let n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(let r of n)if(!Object.prototype.hasOwnProperty.call(t,r)||e[r]!==t[r])return!1;return!0}function Y(e,t){return!!(t.compareDocumentPosition(e)&Node.DOCUMENT_POSITION_PRECEDING)}function X(e,t){return e[1].element&&t[1].element?Y(e[1].element,t[1].element)?-1:1:0}function Q(e){return new MutationObserver(t=>{for(let n of t)if("childList"===n.type)return void e()})}$(K,"at"),$(z,"toSafeIndex"),$(q,"toSafeInteger"),$(function(e){let t=e+"CollectionProvider",[n,r]=f(t),[i,l]=n(t,{collectionElement:null,collectionRef:{current:null},collectionRefObject:{current:null},itemMap:new W,setItemMap:$(()=>void 0,"setItemMap")}),o=$(e=>{let{state:t,...n}=e;return t?(0,u.jsx)(c,{...n,state:t}):(0,u.jsx)(s,{...n})},"CollectionProvider");o.displayName=t;let s=$(e=>{let t=y();return(0,u.jsx)(c,{...e,state:t})},"CollectionInit");s.displayName=t+"Init";let c=$(e=>{let{scope:t,children:n,state:r}=e,l=a.useRef(null),[o,s]=a.useState(null),c=T(l,s),[d,f]=r;return a.useEffect(()=>{if(!o)return;let e=Q(()=>{});return e.observe(o,{childList:!0,subtree:!0}),()=>{e.disconnect()}},[o]),(0,u.jsx)(i,{scope:t,itemMap:d,setItemMap:f,collectionRef:c,collectionRefObject:l,collectionElement:o,children:n})},"CollectionProviderImpl");c.displayName=t+"Impl";let d=e+"CollectionSlot",p=I(d),h=a.forwardRef((e,t)=>{let{scope:n,children:r}=e,i=T(t,l(d,n).collectionRef);return(0,u.jsx)(p,{ref:i,children:r})});h.displayName=d;let g=e+"CollectionItemSlot",m=I(g),v=a.forwardRef((e,t)=>{let{scope:n,children:r,...i}=e,o=a.useRef(null),[s,c]=a.useState(null),d=T(t,o,c),{setItemMap:f}=l(g,n),p=a.useRef(i);G(p.current,i)||(p.current=i);let h=p.current;return a.useEffect(()=>(f(e=>s?e.has(s)?e.set(s,{...h,element:s}).toSorted(X):(e.set(s,{...h,element:s}),e.toSorted(X)):e),()=>{f(e=>s&&e.has(s)?(e.delete(s),new W(e)):e)}),[s,h,f]),(0,u.jsx)(m,{"data-radix-collection-item":"",ref:d,children:r})});function y(){return a.useState(new W)}function b(t){let{itemMap:n}=l(e+"CollectionConsumer",t);return n}return v.displayName=g,$(y,"useInitCollection"),$(b,"useCollection"),[{Provider:o,Slot:h,ItemSlot:v},{createCollectionScope:r,useCollection:b,useInitCollection:y}]},"createCollection"),$(G,"shallowEqual"),$(Y,"isElementPreceding"),$(X,"sortByDocumentPosition"),$(Q,"getChildListObserver");var ee=globalThis?.document?a.useLayoutEffect:()=>{},et=Object.defineProperty,en=s[" useId ".trim().toString()]||(()=>void 0),er=0;function ei(e){let[t,n]=a.useState(en());return ee(()=>{e||n(e=>e??String(er++))},[e]),e||(t?`radix-${t}`:"")}et(ei,"name",{value:"useId",configurable:!0});var el=n(47650),eo=Object.defineProperty,ea=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"].reduce((e,t)=>
1{let n=I(`Primitive.${t}`),r=a.forwardRef((e,r)=>{let{asChild:i,...l}=e;return"undefined"!=typeof window&&(window[Symbol.for("radix-ui")]=!0),(0,u.jsx)(i?n:t,{...l,ref:r})});return r.displayName=`Primitive.${t}`,{...e,[t]:r}},{});function es(e){let t=a.useRef(e);return a.useEffect(()=>{t.current=e}),a.useMemo(()=>(...e)=>t.current?.(...e),[])}eo(function(e,t){e&&el.flushSync(()=>e.dispatchEvent(t))},"name",{value:"dispatchDiscreteCustomEvent",configurable:!0}),(0,Object.defineProperty)(es,"name",{value:"useCallbackRef",configurable:!0});var eu=Object.defineProperty,ec=s[" useEffectEvent ".trim().toString()],ed=s[" useInsertionEffect ".trim().toString()];function ef(e){if("function"==typeof ec)return ec(e);let t=a.useRef(()=>{throw Error("Cannot call an event handler while rendering.")});return"function"==typeof ed?ed(()=>{t.current=e}):ee(()=>{t.current=e}),a.useMemo(()=>(...e)=>t.current?.(...e),[])}eu(ef,"name",{value:"useEffectEvent",configurable:!0});var ep=Object.defineProperty,eh=(e,t)=>ep(e,"name",{value:t,configurable:!0}),eg=s[" useInsertionEffect ".trim().toString()]||ee;function em({prop:e,defaultProp:t,onChange:n=eh(()=>{},"onChange"),caller:r}){let[i,l,o]=ev({defaultProp:t,onChange:n}),s=void 0!==e,u=s?e:i;return[u,a.useCallback(t=>{if(s){let n=ey(t)?t(e):t;n!==e&&o.current?.(n)}else l(t)},[s,e,l,o])]}function ev({defaultProp:e,onChange:t}){let[n,r]=a.useState(e),i=a.useRef(n),l=a.useRef(t);return eg(()=>{l.current=t},[t]),a.useEffect(()=>{i.current!==n&&(l.current?.(n),i.current=n)},[n,i]),[n,r,l]}function ey(e){return"function"==typeof e}eh(em,"useControllableState"),eh(ev,"useUncontrolledState"),eh(ey,"isFunction");var eb=Symbol("RADIX:SYNC_STATE");eh(function(e,t,n,r){let{prop:i,defaultProp:l,onChange:o,caller:s}=t,u=void 0!==i,c=ef(o),d=[{...n,state:l}];r&&d.push(r);let[f,p]=a.useReducer((t,n)=>{if(n.type===eb)return{...t,state:n.state};let r=e(t,n);return u&&!Object.is(r.state,t.state)&&c(r.state),r},...d),h=f.state,g=a.useRef(h);a.useEffect(()=>{g.current!==h&&(g.current=h,u||c(h))},[h,g,u]);let m=a.useMemo(()=>void 0!==i?{...f,state:i}:f,[f,i]);return a.useEffect(()=>{u&&!Object.is(i,f.state)&&p({type:eb,state:i})},[i,f.state,u]),[m,p]},"useControllableStateReducer");var ex=Object.defineProperty,eC=a.createContext(void 0);function ew(e){let t=a.useContext(eC);return e||t||"ltr"}ex(ew,"name",{value:"useDirection",configurable:!0});var eE=Object.defineProperty,e_=(e,t)=>eE(e,"name",{value:t,configurable:!0}),eS=!1;function ek(){let[e,t]=a.useState(eS);return a.useEffect(()=>{eS||(eS=!0,t(!0))},[]),e}e_(ek,"useIsHydrated");var eT=s[" useSyncExternalStore ".trim().toString()];function eN(){return()=>{}}function eA(){return eT(eN,()=>!0,()=>!1)}e_(eN,"subscribe"),e_(eA,"useIsHydratedModern");var eI="function"==typeof eT?eA:ek,eM=Object.defineProperty,eP=(e,t)=>eM(e,"name",{value:t,configurable:!0}),eR="rovingFocusGroup.onEntryFocus",eO={bubbles:!1,cancelable:!0},eL="RovingFocusGroup",[eF,eV,eD]=Z(eL),[ej,eH]=f(eL,[eD]),[eJ,eB]=ej(eL),e$=a.forwardRef(eP(function(e,t){return(0,u.jsx)(eF.Provider,{scope:e.__scopeRovingFocusGroup,children:(0,u.jsx)(eF.Slot,{scope:e.__scopeRovingFocusGroup,children:(0,u.jsx)(eZ,{...e,ref:t})})})},"RovingFocusGroup")),eZ=a.forwardRef(eP(function(e,t){let{__scopeRovingFocusGroup:n,orientation:r,loop:i=!1,dir:l,currentTabStopId:o,defaultCurrentTabStopId:s,onCurrentTabStopIdChange:c,onEntryFocus:d,preventScrollOnEntryFocus:f=!1,...p}=e,h=a.useRef(null),g=T(t,h),m=ew(l),[y,b]=em({prop:o,defaultProp:null!=s?s:null,onChange:c,caller:eL}),[x,C]=a.useState(!1),w=es(d),E=eV(n),_=a.useRef(!1),[S,k]=a.useState(0);return a.useEffect(()=>{let e=h.current;if(e)return e.addEventListener(eR,w),()=>e.removeEventListener(eR,w)},[w]),(0,u.jsx)(eJ,{scope:n,orientation:r,dir:m,loop:i,currentTabStopId:y,onItemFocus:a.useCallback(e=>b(e),[b]),onItemShiftTab:a.useCallback(()=>C(!0),[]),onFocusableItemAdd:a.useCallback(()=>k(e=>e+1),[]),onFocusableItemRemove:a.useCallback(()=>k(e=>e-1),[]),children:(0,u.jsx)(ea.div,{tabIndex:x||0===S?-1:0,"data-orientation":r,...p,ref:g,style:{outline:"none",...e.style},onMouseDown:v(e.onMouseDown,()=>{_.current=!0}),onFocus:v(e.onFocus,e=>{let t=!_.current;if(e.target===e.currentTarget&&t&&!x){let t=new CustomEvent(eR,eO);if(e.currentTarget.dispatchEvent(t),!t.defaultPrevented){let e=E().filter(e=>
1e.focusable);eq([e.find(e=>e.active),e.find(e=>e.id===y),...e].filter(Boolean).map(e=>e.ref.current),f)}}_.current=!1}),onBlur:v(e.onBlur,()=>C(!1))})})},"RovingFocusGroupImpl")),eU=a.forwardRef(eP(function(e,t){let{__scopeRovingFocusGroup:n,focusable:r=!0,active:i=!1,tabStopId:l,children:o,...s}=e,c=ei(),d=l||c,f=eB("RovingFocusGroupItem",n),p=f.currentTabStopId===d,h=eV(n),{onFocusableItemAdd:g,onFocusableItemRemove:m,currentTabStopId:y}=f,b=eI();return ee(()=>{if(b&&r)return g(),()=>m()},[b,r,g,m]),a.useEffect(()=>{if(!b&&r)return g(),()=>m()},[b,r,g,m]),(0,u.jsx)(eF.ItemSlot,{scope:n,id:d,focusable:r,active:i,children:(0,u.jsx)(ea.span,{tabIndex:p?0:-1,"data-orientation":f.orientation,...s,ref:t,onMouseDown:v(e.onMouseDown,e=>{r?f.onItemFocus(d):e.preventDefault()}),onFocus:v(e.onFocus,()=>f.onItemFocus(d)),onKeyDown:v(e.onKeyDown,e=>{if("Tab"===e.key&&e.shiftKey)return void f.onItemShiftTab();if(e.target!==e.currentTarget)return;let t=ez(e,f.orientation,f.dir);if(void 0!==t){if(e.metaKey||e.ctrlKey||e.altKey||e.shiftKey)return;e.preventDefault();let n=h().filter(e=>e.focusable).map(e=>e.ref.current);if("last"===t)n.reverse();else if("prev"===t||"next"===t){"prev"===t&&n.reverse();let r=n.indexOf(e.currentTarget);n=f.loop?eG(n,r+1):n.slice(r+1)}setTimeout(()=>eq(n))}}),children:"function"==typeof o?o({isCurrentTabStop:p,hasTabStop:null!=y}):o})})},"RovingFocusGroupItem")),eW={ArrowLeft:"prev",ArrowUp:"prev",ArrowRight:"next",ArrowDown:"next",PageUp:"first",Home:"first",PageDown:"last",End:"last"};function eK(e,t){return"rtl"!==t?e:"ArrowLeft"===e?"ArrowRight":"ArrowRight"===e?"ArrowLeft":e}function ez(e,t,n){let r=eK(e.key,n);if(!("vertical"===t&&["ArrowLeft","ArrowRight"].includes(r))&&!("horizontal"===t&&["ArrowUp","ArrowDown"].includes(r)))return eW[r]}function eq(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=document.activeElement;for(let r of e)if(r===n||(r.focus({preventScroll:t}),document.activeElement!==n))return}function eG(e,t){return e.map((n,r)=>e[(t+r)%e.length])}eP(eK,"getDirectionAwareKey"),eP(ez,"getFocusIntent"),eP(eq,"focusFirst"),eP(eG,"wrapArray");var eY=Object.defineProperty,eX=(e,t)=>eY(e,"name",{value:t,configurable:!0});function eQ(e,t){if("function"==typeof e)return e(t);null!=e&&(e.current=t)}function e0(...e){return t=>{let n=!1,r=e.map(e=>{let r=eQ(e,t);return n||"function"!=typeof r||(n=!0),r});if(n)return()=>{for(let t=0;t<r.length;t++){let n=r[t];"function"==typeof n?n():eQ(e[t],null)}}}}function e1(...e){return a.useCallback(e0(...e),e)}eX(eQ,"setRef"),eX(e0,"composeRefs"),eX(e1,"useComposedRefs");var e5=Object.defineProperty,e2=(e,t)=>e5(e,"name",{value:t,configurable:!0});function e9(e){let t=a.forwardRef((t,n)=>{let{children:r,...i}=t,l=null,o=!1,s=[];tt(r)&&"function"==typeof tl&&(r=tl(r._payload)),a.Children.forEach(r,e=>{if(e6(e)){o=!0;let t="child"in e.props?e.props.child:e.props.children;tt(t)&&"function"==typeof tl&&(t=tl(t._payload)),l=e7(e,t),s.push(l?.props?.children)}else s.push(e)}),l?l=a.cloneElement(l,void 0,s):!o&&1===a.Children.count(r)&&a.isValidElement(r)&&(l=r);let u=l?e4(l):void 0,c=e1(n,u);
1if(!l){if(r||0===r)throw Error(o?ti(e):tr(e));return r}let d=e8(i,l.props??{});return l.type!==a.Fragment&&(d.ref=n?c:u),a.cloneElement(l,d)});return t.displayName=`${e}.Slot`,t}e2(e9,"createSlot");var e3=Symbol.for("radix.slottable");e2(function(e){let t=e2(e=>"child"in e?e.children(e.child):e.children,"Slottable");return t.displayName=`${e}.Slottable`,t.__radixId=e3,t},"createSlottable");var e7=e2((e,t)=>{if("child"in e.props){let t=e.props.child;return a.isValidElement(t)?a.cloneElement(t,void 0,e.props.children(t.props.children)):null}return a.isValidElement(t)?t:null},"getSlottableElementFromSlottable");function e8(e,t){let n={...t};for(let r in t){let i=e[r],l=t[r];/^on[A-Z]/.test(r)?i&&l?n[r]=(...e)=>{let t=l(...e);return i(...e),t}:i&&(n[r]=i):"style"===r?n[r]={...i,...l}:"className"===r&&(n[r]=[i,l].filter(Boolean).join(" "))}return{...e,...n}}function e4(e){let t=Object.getOwnPropertyDescriptor(e.props,"ref")?.get,n=t&&"isReactWarning"in t&&t.isReactWarning;return n?e.ref:(n=(t=Object.getOwnPropertyDescriptor(e,"ref")?.get)&&"isReactWarning"in t&&t.isReactWarning)?e.props.ref:e.props.ref||e.ref}function e6(e){return a.isValidElement(e)&&"function"==typeof e.type&&"__radixId"in e.type&&e.type.__radixId===e3}e2(e8,"mergeProps"),e2(e4,"getElementRef"),e2(e6,"isSlottable");var te=Symbol.for("react.lazy");function tt(e){return null!=e&&"object"==typeof e&&"$$typeof"in e&&e.$$typeof===te&&"_payload"in e&&tn(e._payload)}function tn(e){return"object"==typeof e&&null!==e&&"then"in e}e2(tt,"isLazyComponent"),e2(tn,"isPromiseLike");var tr=e2(e=>`${e} failed to slot onto its children. Expected a single React element child or \`Slottable\`.`,"createSlotError"),ti=e2(e=>`${e} failed to slot onto its \`Slottable\`. Expected \`Slottable\` to receive a single React element child.`,"createSlottableError"),tl=s[" use ".trim().toString()],to=Object.defineProperty,ta=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"].reduce((e,t)=>{let n=e9(`Primitive.${t}`),r=a.forwardRef((e,r)=>{let{asChild:i,...l}=e;return"undefined"!=typeof window&&(window[Symbol.for("radix-ui")]=!0),(0,u.jsx)(i?n:t,{...l,ref:r})});return r.displayName=`Primitive.${t}`,{...e,[t]:r}},{});to(function(e,t){e&&el.flushSync(()=>e.dispatchEvent(t))},"name",{value:"dispatchDiscreteCustomEvent",configurable:!0});var ts=Object.defineProperty,tu=(e,t)=>ts(e,"name",{value:t,configurable:!0}),tc="horizontal",td=["horizontal","vertical"],tf=a.forwardRef(tu(function(e,t){let{decorative:n,orientation:r=tc,...i}=e,l=tp(r)?r:tc;return(0,u.jsx)(ta.div,{"data-orientation":l,...n?{role:"none"}:{"aria-orientation":"vertical"===l?l:void 0,role:"separator"},...i,ref:t})},"Separator"));function tp(e){return td.includes(e)}tu(tp,"isValidOrientation");var th=Object.defineProperty,tg=(e,t)=>th(e,"name",{value:t,configurable:!0});function tm(e,t=[]){let n=[];function r(t,r){let i=a.createContext(r);i.displayName=t+"Context";let l=n.length;n=[...n,r];let o=tg(t=>{let{scope:n,children:r,...o}=t,s=n?.[e]?.[l]||i,c=a.useMemo(()=>o,Object.values(o));return(0,u.jsx)(s.Provider,{value:c,children:r})},"Provider");function s(n,o,u={}){let{optional:c=!1}=u,d=o?.[e]?.[l]||i,f=a.useContext(d);if(f)return f;if(void 0!==r)return r;if(!c)throw Error(`\`${n}\` must be used within \`${t}\``)}return o.displayName=t+"Provider",tg(s,"useContext"),[o,s]}tg(r,"createContext");let i=tg(()=>{let t=n.map(e=>a.createContext(e));return tg(function(n){let r=n?.[e]||t;return a.useMemo(()=>({[`__scope${e}`]:{...n,[e]:r}}),[n,r])},"useScope")},"createScope");return i.scopeName=e,[r,tv(i,...t)]}function tv(...e){let t=e[0];if(1===e.length)return t;let n=tg(()=>{let n=e.map(e=>({useScope:e(),scopeName:e.scopeName}));return tg(function(e){let r=n.reduce((t,{useScope:n,scopeName:r})=>{let i=n(e)[`__scope${r}`];return{...t,...i}},{});return a.useMemo(()=>({[`__scope${t.scopeName}`]:r}),[r])},"useComposedScopes")},"createScope");return n.scopeName=t.scopeName,n}tg(function(e,t){let n=a.createContext(t);n.displayName=e+"Context";let r=tg(e=>{let{children:t,...r}=e,i=a.useMemo(()=>r,Object.values(r));return(0,u.jsx)(n.Provider,{value:i,children:t})},"Provider");function i(r,l={}){let{optional:o=!1}=l,s=a.useContext(n);if(s)return s;if(void 0!==t)return t;if(!o)throw Error(`\`${r}\` must be used within \`${e}\``)}return r.displayName=e+"Provider",tg(i,"useContext"),[r,i]},"createContext"),tg(tm,"createContextScope"),tg(tv,"composeContextScopes");var ty=Object.defineProperty,tb=(e,t)=>ty(e,"name",{value:t,configurable:!0});function tx(e,t){if("function"==typeof e)return e(t);null!=e&&(e.current=t)}function tC(...e){return t=>{let n=!1,r=e.map(e=>{let r=tx(e,t);return n||"function"!=typeof r||(n=!0),r});if(n)return()=>{for(let t=0;t<r.length;t++){let n=r[t];"function"==typeof n?n():tx(e[t],null)}}}}function tw(...e){return a.useCallback(tC(...e),e)}tb(tx,"setRef"),tb(tC,"composeRefs"),tb(tw,"useComposedRefs");var tE=Object.defineProperty,t_=(e,t)=>
1tE(e,"name",{value:t,configurable:!0});function tS(e){let t=a.forwardRef((t,n)=>{let{children:r,...i}=t,l=null,o=!1,s=[];tP(r)&&"function"==typeof tF&&(r=tF(r._payload)),a.Children.forEach(r,e=>{if(tI(e)){o=!0;let t="child"in e.props?e.props.child:e.props.children;tP(t)&&"function"==typeof tF&&(t=tF(t._payload)),l=tT(e,t),s.push(l?.props?.children)}else s.push(e)}),l?l=a.cloneElement(l,void 0,s):!o&&1===a.Children.count(r)&&a.isValidElement(r)&&(l=r);let u=l?tA(l):void 0,c=tw(n,u);if(!l){if(r||0===r)throw Error(o?tL(e):tO(e));return r}let d=tN(i,l.props??{});return l.type!==a.Fragment&&(d.ref=n?c:u),a.cloneElement(l,d)});return t.displayName=`${e}.Slot`,t}t_(tS,"createSlot");var tk=Symbol.for("radix.slottable");t_(function(e){let t=t_(e=>"child"in e?e.children(e.child):e.children,"Slottable");return t.displayName=`${e}.Slottable`,t.__radixId=tk,t},"createSlottable");var tT=t_((e,t)=>{if("child"in e.props){let t=e.props.child;return a.isValidElement(t)?a.cloneElement(t,void 0,e.props.children(t.props.children)):null}return a.isValidElement(t)?t:null},"getSlottableElementFromSlottable");function tN(e,t){let n={...t};for(let r in t){let i=e[r],l=t[r];/^on[A-Z]/.test(r)?i&&l?n[r]=(...e)=>{let t=l(...e);return i(...e),t}:i&&(n[r]=i):"style"===r?n[r]={...i,...l}:"className"===r&&(n[r]=[i,l].filter(Boolean).join(" "))}return{...e,...n}}function tA(e){let t=Object.getOwnPropertyDescriptor(e.props,"ref")?.get,n=t&&"isReactWarning"in t&&t.isReactWarning;return n?e.ref:(n=(t=Object.getOwnPropertyDescriptor(e,"ref")?.get)&&"isReactWarning"in t&&t.isReactWarning)?e.props.ref:e.props.ref||e.ref}function tI(e){return a.isValidElement(e)&&"function"==typeof e.type&&"__radixId"in e.type&&e.type.__radixId===tk}t_(tN,"mergeProps"),t_(tA,"getElementRef"),t_(tI,"isSlottable");var tM=Symbol.for("react.lazy");function tP(e){return null!=e&&"object"==typeof e&&"$$typeof"in e&&e.$$typeof===tM&&"_payload"in e&&tR(e._payload)}function tR(e){return"object"==typeof e&&null!==e&&"then"in e}t_(tP,"isLazyComponent"),t_(tR,"isPromiseLike");var tO=t_(e=>`${e} failed to slot onto its children. Expected a single React element child or \`Slottable\`.`,"createSlotError"),tL=t_(e=>`${e} failed to slot onto its \`Slottable\`. Expected \`Slottable\` to receive a single React element child.`,"createSlottableError"),tF=s[" use ".trim().toString()],tV=Object.defineProperty,tD=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"].reduce((e,t)=>{let n=tS(`Primitive.${t}`),r=a.forwardRef((e,r)=>{let{asChild:i,...l}=e;return"undefined"!=typeof window&&(window[Symbol.for("radix-ui")]=!0),(0,u.jsx)(i?n:t,{...l,ref:r})});return r.displayName=`Primitive.${t}`,{...e,[t]:r}},{});tV(function(e,t){e&&el.flushSync(()=>e.dispatchEvent(t))},"name",{value:"dispatchDiscreteCustomEvent",configurable:!0});var tj=Object.defineProperty,tH=(e,t)=>tj(e,"name",{value:t,configurable:!0}),tJ=!!("undefined"!=typeof window&&window.document&&window.document.createElement);function tB(e,t,{checkForDefaultPrevented:n=!0}={}){return tH(function(r){if(e?.(r),!1===n||!r||!r.defaultPrevented)return t?.(r)},"handleEvent")}function t$(e){if(!tJ)throw Error("Cannot access document outside of the DOM");return e?.ownerDocument??document}function tZ(e){return"IFRAME"===e.tagName}tH(tB,"composeEventHandlers"),tH(function(e){if(!tJ)throw Error("Cannot access window outside of the DOM");return e?.ownerDocument?.defaultView??window},"getOwnerWindow"),tH(t$,"getOwnerDocument"),tH(function e(t,n=!1){let{activeElement:r}=t$(t);if(!r?.nodeName)return null;if(tZ(r)&&r.contentDocument)return e(r.contentDocument.body,n);if(n){let e=r.getAttribute("aria-activedescendant");if(e){let t=t$(r).getElementById(e);if(t)return t}}return r},"getActiveElement"),tH(tZ,"isFrame");var tU=Object.defineProperty,tW=(e,t)=>tU(e,"name",{value:t,configurable:!0});function tK(e){let t=e+"CollectionProvider",[n,r]=tm(t),[i,l]=n(t,{collectionRef:{current:null},itemMap:new Map}),o=tW(e=>{let{scope:t,children:n}=e,r=a.useRef(null),l=a.useRef(new Map).current;return(0,u.jsx)(i,{scope:t,itemMap:l,collectionRef:r,children:n})},"CollectionProvider");o.displayName=t;let s=e+"CollectionSlot",c=tS(s),d=a.forwardRef((e,t)=>
1{let{scope:n,children:r}=e,i=tw(t,l(s,n).collectionRef);return(0,u.jsx)(c,{ref:i,children:r})});d.displayName=s;let f=e+"CollectionItemSlot",p="data-radix-collection-item",h=tS(f),g=a.forwardRef((e,t)=>{let{scope:n,children:r,...i}=e,o=a.useRef(null),s=tw(t,o),c=l(f,n);return a.useEffect(()=>(c.itemMap.set(o,{ref:o,...i}),()=>void c.itemMap.delete(o))),(0,u.jsx)(h,{...{[p]:""},ref:s,children:r})});function m(t){let n=l(e+"CollectionConsumer",t);return a.useCallback(()=>{let e=n.collectionRef.current;if(!e)return[];let t=Array.from(e.querySelectorAll("[".concat(p,"]")));return Array.from(n.itemMap.values()).sort((e,n)=>t.indexOf(e.ref.current)-t.indexOf(n.ref.current))},[n.collectionRef,n.itemMap])}return g.displayName=f,tW(m,"useCollection"),[{Provider:o,Slot:d,ItemSlot:g},m,r]}tW(tK,"createCollection");var tz=new WeakMap,tq=(l=new WeakMap,tW(o=class e extends Map{set(e,t){return tz.get(this)&&(this.has(e)?(0,x._)(this,l)[(0,x._)(this,l).indexOf(e)]=e:(0,x._)(this,l).push(e)),super.set(e,t),this}insert(e,t,n){let r,i=this.has(t),o=(0,x._)(this,l).length,a=tX(e),s=a>=0?a:o+a,u=s<0||s>=o?-1:s;if(u===this.size||i&&u===this.size-1||-1===u)return this.set(t,n),this;let c=this.size+ +!i;a<0&&s++;let d=[...(0,x._)(this,l)],f=!1;for(let e=s;e<c;e++)if(s===e){let l=d[e];d[e]===t&&(l=d[e+1]),i&&this.delete(t),r=this.get(l),this.set(t,n)}else{f||d[e-1]!==t||(f=!0);let n=d[f?e:e-1],i=r;r=this.get(n),this.delete(n),this.set(n,i)}return this}with(t,n,r){let i=new e(this);return i.insert(t,n,r),i}before(e){let t=(0,x._)(this,l).indexOf(e)-1;if(!(t<0))return this.entryAt(t)}setBefore(e,t,n){let r=(0,x._)(this,l).indexOf(e);return -1===r?this:this.insert(r,t,n)}after(e){let t=(0,x._)(this,l).indexOf(e);if(-1!==(t=-1===t||t===this.size-1?-1:t+1))return this.entryAt(t)}setAfter(e,t,n){let r=(0,x._)(this,l).indexOf(e);return -1===r?this:this.insert(r+1,t,n)}first(){return this.entryAt(0)}last(){return this.entryAt(-1)}clear(){return(0,w._)(this,l,[]),super.clear()}delete(e){let t=super.delete(e);return t&&(0,x._)(this,l).splice((0,x._)(this,l).indexOf(e),1),t}deleteAt(e){let t=this.keyAt(e);return void 0!==t&&this.delete(t)}at(e){let t=tG((0,x._)(this,l),e);if(void 0!==t)return this.get(t)}entryAt(e){let t=tG((0,x._)(this,l),e);if(void 0!==t)return[t,this.get(t)]}indexOf(e){return(0,x._)(this,l).indexOf(e)}keyAt(e){return tG((0,x._)(this,l),e)}from(e,t){let n=this.indexOf(e);if(-1===n)return;let r=n+t;return r<0&&(r=0),r>=this.size&&(r=this.size-1),this.at(r)}keyFrom(e,t){let n=this.indexOf(e);if(-1===n)return;let r=n+t;return r<0&&(r=0),r>=this.size&&(r=this.size-1),this.keyAt(r)}find(e,t){let n=0;for(let r of this){if(Reflect.apply(e,t,[r,n,this]))return r;n++}}findIndex(e,t){let n=0;for(let r of this){if(Reflect.apply(e,t,[r,n,this]))return n;n++}return -1}filter(t,n){let r=[],i=0;for(let e of this)Reflect.apply(t,n,[e,i,this])&&r.push(e),i++;return new e(r)}map(t,n){let r=[],i=0;for(let e of this)r.push([e[0],Reflect.apply(t,n,[e,i,this])]),i++;return new e(r)}reduce(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];let[r,i]=t,l=0,o=null!=i?i:this.at(0);for(let e of this)o=0===l&&1===t.length?e:Reflect.apply(r,this,[o,e,l,this]),l++;return o}reduceRight(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];let[r,i]=t,l=null!=i?i:this.at(-1);for(let e=this.size-1;e>=0;e--){let n=this.at(e);l=e===this.size-1&&1===t.length?n:Reflect.apply(r,this,[l,n,e,this])}return l}toSorted(t){return new e([...this.entries()].sort(t))}toReversed(){let t=new e;for(let e=this.size-1;e>=0;e--){let n=this.keyAt(e),r=this.get(n);t.set(n,r)}return t}toSpliced(){for(var t=arguments.length,n=Array(t),r=0;r<t;r++)n[r]=arguments[r];let i=[...this.entries()];return i.splice(...n),new e(i)}slice(t,n){let r=new e,i=this.size-1;if(void 0===t)return r;t<0&&(t+=this.size),void 0!==n&&n>0&&(i=n-1);for(let e=t;e<=i;e++){let t=this.keyAt(e),n=this.get(t);r.set(t,n)}return r}every(e,t){let n=0;for(let r of this){if(!Reflect.apply(e,t,[r,n,this]))return!1;n++}return!0}some(e,t){let n=0;for(let r of this){if(Reflect.apply(e,t,[r,n,this]))return!0;n++}return!1}constructor(e){super(e),(0,C._)(this,l,{writable:!0,value:void 0}),(0,w._)(this,l,[...super.keys()]),tz.set(this,!0)}},"OrderedDict"),o);function tG(e,t){if("at"in Array.prototype)return Array.prototype.at.call(e,t);let n=tY(e,t);return -1===n?void 0:e[n]}function tY(e,t){let n=e.length,r=tX(t),i=r>=0?r:n+r;return i<0||i>=n?-1:i}function tX(e){return e!=e||0===e?0:Math.trunc(e)}function tQ(e,t){if(e===t)return!0;
1if("object"!=typeof e||"object"!=typeof t||null==e||null==t)return!1;let n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(let r of n)if(!Object.prototype.hasOwnProperty.call(t,r)||e[r]!==t[r])return!1;return!0}function t0(e,t){return!!(t.compareDocumentPosition(e)&Node.DOCUMENT_POSITION_PRECEDING)}function t1(e,t){return e[1].element&&t[1].element?t0(e[1].element,t[1].element)?-1:1:0}function t5(e){return new MutationObserver(t=>{for(let n of t)if("childList"===n.type)return void e()})}tW(tG,"at"),tW(tY,"toSafeIndex"),tW(tX,"toSafeInteger"),tW(function(e){let t=e+"CollectionProvider",[n,r]=tm(t),[i,l]=n(t,{collectionElement:null,collectionRef:{current:null},collectionRefObject:{current:null},itemMap:new tq,setItemMap:tW(()=>void 0,"setItemMap")}),o=tW(e=>{let{state:t,...n}=e;return t?(0,u.jsx)(c,{...n,state:t}):(0,u.jsx)(s,{...n})},"CollectionProvider");o.displayName=t;let s=tW(e=>{let t=v();return(0,u.jsx)(c,{...e,state:t})},"CollectionInit");s.displayName=t+"Init";let c=tW(e=>{let{scope:t,children:n,state:r}=e,l=a.useRef(null),[o,s]=a.useState(null),c=tw(l,s),[d,f]=r;return a.useEffect(()=>{if(!o)return;let e=t5(()=>{});return e.observe(o,{childList:!0,subtree:!0}),()=>{e.disconnect()}},[o]),(0,u.jsx)(i,{scope:t,itemMap:d,setItemMap:f,collectionRef:c,collectionRefObject:l,collectionElement:o,children:n})},"CollectionProviderImpl");c.displayName=t+"Impl";let d=e+"CollectionSlot",f=tS(d),p=a.forwardRef((e,t)=>{let{scope:n,children:r}=e,i=tw(t,l(d,n).collectionRef);return(0,u.jsx)(f,{ref:i,children:r})});p.displayName=d;let h=e+"CollectionItemSlot",g=tS(h),m=a.forwardRef((e,t)=>{let{scope:n,children:r,...i}=e,o=a.useRef(null),[s,c]=a.useState(null),d=tw(t,o,c),{setItemMap:f}=l(h,n),p=a.useRef(i);tQ(p.current,i)||(p.current=i);let m=p.current;return a.useEffect(()=>(f(e=>s?e.has(s)?e.set(s,{...m,element:s}).toSorted(t1):(e.set(s,{...m,element:s}),e.toSorted(t1)):e),()=>{f(e=>s&&e.has(s)?(e.delete(s),new tq(e)):e)}),[s,m,f]),(0,u.jsx)(g,{"data-radix-collection-item":"",ref:d,children:r})});function v(){return a.useState(new tq)}function y(t){let{itemMap:n}=l(e+"CollectionConsumer",t);return n}return m.displayName=h,tW(v,"useInitCollection"),tW(y,"useCollection"),[{Provider:o,Slot:p,ItemSlot:m},{createCollectionScope:r,useCollection:y,useInitCollection:v}]},"createCollection"),tW(tQ,"shallowEqual"),tW(t0,"isElementPreceding"),tW(t1,"sortByDocumentPosition"),tW(t5,"getChildListObserver");var t2=globalThis?.document?a.useLayoutEffect:()=>{},t9=Object.defineProperty,t3=s[" useId ".trim().toString()]||(()=>void 0),t7=0;function t8(e){let[t,n]=a.useState(t3());return t2(()=>{e||n(e=>e??String(t7++))},[e]),e||(t?`radix-${t}`:"")}function t4(e){let t=a.useRef(e);return a.useEffect(()=>{t.current=e}),a.useMemo(()=>(...e)=>t.current?.(...e),[])}t9(t8,"name",{value:"useId",configurable:!0}),(0,Object.defineProperty)(t4,"name",{value:"useCallbackRef",configurable:!0});var t6=Object.defineProperty,ne=s[" useEffectEvent ".trim().toString()],nt=s[" useInsertionEffect ".trim().toString()];function nn(e){if("function"==typeof ne)return ne(e);let t=a.useRef(()=>{throw Error("Cannot call an event handler while rendering.")});return"function"==typeof nt?nt(()=>{t.current=e}):t2(()=>{t.current=e}),a.useMemo(()=>(...e)=>t.current?.(...e),[])}t6(nn,"name",{value:"useEffectEvent",configurable:!0});var nr=Object.defineProperty,ni=(e,t)=>nr(e,"name",{value:t,configurable:!0}),nl=s[" useInsertionEffect ".trim().toString()]||t2;function no({prop:e,defaultProp:t,onChange:n=ni(()=>{},"onChange"),caller:r}){let[i,l,o]=na({defaultProp:t,onChange:n}),s=void 0!==e,u=s?e:i;return[u,a.useCallback(t=>{if(s){let n=ns(t)?t(e):t;n!==e&&o.current?.(n)}else l(t)},[s,e,l,o])]}function na({defaultProp:e,onChange:t}){let[n,r]=a.useState(e),i=a.useRef(n),l=a.useRef(t);return nl(()=>{l.current=t},[t]),a.useEffect(()=>{i.current!==n&&(l.current?.(n),i.current=n)},[n,i]),[n,r,l]}function ns(e){return"function"==typeof e}ni(no,"useControllableState"),ni(na,"useUncontrolledState"),ni(ns,"isFunction");var nu=Symbol("RADIX:SYNC_STATE");ni(function(e,t,n,r){let{prop:i,defaultProp:l,onChange:o,caller:s}=t,u=void 0!==i,c=nn(o),d=[{...n,state:l}];r&&d.push(r);let[f,p]=a.useReducer((t,n)=>{if(n.type===nu)return{...t,state:n.state};let r=e(t,n);
1return u&&!Object.is(r.state,t.state)&&c(r.state),r},...d),h=f.state,g=a.useRef(h);a.useEffect(()=>{g.current!==h&&(g.current=h,u||c(h))},[h,g,u]);let m=a.useMemo(()=>void 0!==i?{...f,state:i}:f,[f,i]);return a.useEffect(()=>{u&&!Object.is(i,f.state)&&p({type:nu,state:i})},[i,f.state,u]),[m,p]},"useControllableStateReducer");var nc=Object.defineProperty,nd=a.createContext(void 0);function nf(e){let t=a.useContext(nd);return e||t||"ltr"}nc(nf,"name",{value:"useDirection",configurable:!0});var np=Object.defineProperty,nh=(e,t)=>np(e,"name",{value:t,configurable:!0}),ng="rovingFocusGroup.onEntryFocus",nm={bubbles:!1,cancelable:!0},nv="RovingFocusGroup",[ny,nb,nx]=tK(nv),[nC,nw]=tm(nv,[nx]),[nE,n_]=nC(nv),nS=a.forwardRef(nh(function(e,t){return(0,u.jsx)(ny.Provider,{scope:e.__scopeRovingFocusGroup,children:(0,u.jsx)(ny.Slot,{scope:e.__scopeRovingFocusGroup,children:(0,u.jsx)(nk,{...e,ref:t})})})},"RovingFocusGroup")),nk=a.forwardRef(nh(function(e,t){let{__scopeRovingFocusGroup:n,orientation:r,loop:i=!1,dir:l,currentTabStopId:o,defaultCurrentTabStopId:s,onCurrentTabStopIdChange:c,onEntryFocus:d,preventScrollOnEntryFocus:f=!1,...p}=e,h=a.useRef(null),g=tw(t,h),m=nf(l),[v,y]=no({prop:o,defaultProp:null!=s?s:null,onChange:c,caller:nv}),[b,x]=a.useState(!1),C=t4(d),w=nb(n),E=a.useRef(!1),[_,S]=a.useState(0);return a.useEffect(()=>{let e=h.current;if(e)return e.addEventListener(ng,C),()=>e.removeEventListener(ng,C)},[C]),(0,u.jsx)(nE,{scope:n,orientation:r,dir:m,loop:i,currentTabStopId:v,onItemFocus:a.useCallback(e=>y(e),[y]),onItemShiftTab:a.useCallback(()=>x(!0),[]),onFocusableItemAdd:a.useCallback(()=>S(e=>e+1),[]),onFocusableItemRemove:a.useCallback(()=>S(e=>e-1),[]),children:(0,u.jsx)(tD.div,{tabIndex:b||0===_?-1:0,"data-orientation":r,...p,ref:g,style:{outline:"none",...e.style},onMouseDown:tB(e.onMouseDown,()=>{E.current=!0}),onFocus:tB(e.onFocus,e=>{let t=!E.current;if(e.target===e.currentTarget&&t&&!b){let t=new CustomEvent(ng,nm);if(e.currentTarget.dispatchEvent(t),!t.defaultPrevented){let e=w().filter(e=>e.focusable);nM([e.find(e=>e.active),e.find(e=>e.id===v),...e].filter(Boolean).map(e=>e.ref.current),f)}}E.current=!1}),onBlur:tB(e.onBlur,()=>x(!1))})})},"RovingFocusGroupImpl")),nT=a.forwardRef(nh(function(e,t){let{__scopeRovingFocusGroup:n,focusable:r=!0,active:i=!1,tabStopId:l,children:o,...s}=e,c=t8(),d=l||c,f=n_("RovingFocusGroupItem",n),p=f.currentTabStopId===d,h=nb(n),{onFocusableItemAdd:g,onFocusableItemRemove:m,currentTabStopId:v}=f,y=eI();return t2(()=>{if(y&&r)return g(),()=>m()},[y,r,g,m]),a.useEffect(()=>{if(!y&&r)return g(),()=>m()},[y,r,g,m]),(0,u.jsx)(ny.ItemSlot,{scope:n,id:d,focusable:r,active:i,children:(0,u.jsx)(tD.span,{tabIndex:p?0:-1,"data-orientation":f.orientation,...s,ref:t,onMouseDown:tB(e.onMouseDown,e=>{r?f.onItemFocus(d):e.preventDefault()}),onFocus:tB(e.onFocus,()=>f.onItemFocus(d)),onKeyDown:tB(e.onKeyDown,e=>{if("Tab"===e.key&&e.shiftKey)return void f.onItemShiftTab();if(e.target!==e.currentTarget)return;let t=nI(e,f.orientation,f.dir);if(void 0!==t){if(e.metaKey||e.ctrlKey||e.altKey||e.shiftKey)return;e.preventDefault();let n=h().filter(e=>e.focusable).map(e=>e.ref.current);if("last"===t)n.reverse();else if("prev"===t||"next"===t){"prev"===t&&n.reverse();let r=n.indexOf(e.currentTarget);n=f.loop?nP(n,r+1):n.slice(r+1)}setTimeout(()=>nM(n))}}),children:"function"==typeof o?o({isCurrentTabStop:p,hasTabStop:null!=v}):o})})},"RovingFocusGroupItem")),nN={ArrowLeft:"prev",ArrowUp:"prev",ArrowRight:"next",ArrowDown:"next",PageUp:"first",Home:"first",PageDown:"last",End:"last"};function nA(e,t){return"rtl"!==t?e:"ArrowLeft"===e?"ArrowRight":"ArrowRight"===e?"ArrowLeft":e}function nI(e,t,n){let r=nA(e.key,n);if(!("vertical"===t&&["ArrowLeft","ArrowRight"].includes(r))&&!("horizontal"===t&&["ArrowUp","ArrowDown"].includes(r)))return nN[r]}function nM(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=document.activeElement;for(let r of e)if(r===n||(r.focus({preventScroll:t}),document.activeElement!==n))return}function nP(e,t){return e.map((n,r)=>e[(t+r)%e.length])}nh(nA,"getDirectionAwareKey"),nh(nI,"getFocusIntent"),nh(nM,"focusFirst"),nh(nP,"wrapArray");var nR=Object.defineProperty,nO=(e,t)=>
1nR(e,"name",{value:t,configurable:!0}),nL=!!("undefined"!=typeof window&&window.document&&window.document.createElement);function nF(e,t,{checkForDefaultPrevented:n=!0}={}){return nO(function(r){if(e?.(r),!1===n||!r||!r.defaultPrevented)return t?.(r)},"handleEvent")}function nV(e){if(!nL)throw Error("Cannot access document outside of the DOM");return e?.ownerDocument??document}function nD(e){return"IFRAME"===e.tagName}nO(nF,"composeEventHandlers"),nO(function(e){if(!nL)throw Error("Cannot access window outside of the DOM");return e?.ownerDocument?.defaultView??window},"getOwnerWindow"),nO(nV,"getOwnerDocument"),nO(function e(t,n=!1){let{activeElement:r}=nV(t);if(!r?.nodeName)return null;if(nD(r)&&r.contentDocument)return e(r.contentDocument.body,n);if(n){let e=r.getAttribute("aria-activedescendant");if(e){let t=nV(r).getElementById(e);if(t)return t}}return r},"getActiveElement"),nO(nD,"isFrame");var nj=globalThis?.document?a.useLayoutEffect:()=>{},nH=Object.defineProperty,nJ=s[" useEffectEvent ".trim().toString()],nB=s[" useInsertionEffect ".trim().toString()];function n$(e){if("function"==typeof nJ)return nJ(e);let t=a.useRef(()=>{throw Error("Cannot call an event handler while rendering.")});return"function"==typeof nB?nB(()=>{t.current=e}):nj(()=>{t.current=e}),a.useMemo(()=>(...e)=>t.current?.(...e),[])}nH(n$,"name",{value:"useEffectEvent",configurable:!0});var nZ=Object.defineProperty,nU=(e,t)=>nZ(e,"name",{value:t,configurable:!0}),nW=s[" useInsertionEffect ".trim().toString()]||nj;function nK({prop:e,defaultProp:t,onChange:n=nU(()=>{},"onChange"),caller:r}){let[i,l,o]=nz({defaultProp:t,onChange:n}),s=void 0!==e,u=s?e:i;return[u,a.useCallback(t=>{if(s){let n=nq(t)?t(e):t;n!==e&&o.current?.(n)}else l(t)},[s,e,l,o])]}function nz({defaultProp:e,onChange:t}){let[n,r]=a.useState(e),i=a.useRef(n),l=a.useRef(t);return nW(()=>{l.current=t},[t]),a.useEffect(()=>{i.current!==n&&(l.current?.(n),i.current=n)},[n,i]),[n,r,l]}function nq(e){return"function"==typeof e}nU(nK,"useControllableState"),nU(nz,"useUncontrolledState"),nU(nq,"isFunction");var nG=Symbol("RADIX:SYNC_STATE");nU(function(e,t,n,r){let{prop:i,defaultProp:l,onChange:o,caller:s}=t,u=void 0!==i,c=n$(o),d=[{...n,state:l}];r&&d.push(r);let[f,p]=a.useReducer((t,n)=>{if(n.type===nG)return{...t,state:n.state};let r=e(t,n);return u&&!Object.is(r.state,t.state)&&c(r.state),r},...d),h=f.state,g=a.useRef(h);a.useEffect(()=>{g.current!==h&&(g.current=h,u||c(h))},[h,g,u]);let m=a.useMemo(()=>void 0!==i?{...f,state:i}:f,[f,i]);return a.useEffect(()=>{u&&!Object.is(i,f.state)&&p({type:nG,state:i})},[i,f.state,u]),[m,p]},"useControllableStateReducer");var nY=Object.defineProperty,nX=(e,t)=>nY(e,"name",{value:t,configurable:!0});function nQ(e,t){if("function"==typeof e)return e(t);null!=e&&(e.current=t)}function n0(...e){return t=>{let n=!1,r=e.map(e=>{let r=nQ(e,t);return n||"function"!=typeof r||(n=!0),r});if(n)return()=>{for(let t=0;t<r.length;t++){let n=r[t];"function"==typeof n?n():nQ(e[t],null)}}}}function n1(...e){return a.useCallback(n0(...e),e)}nX(nQ,"setRef"),nX(n0,"composeRefs"),nX(n1,"useComposedRefs");var n5=Object.defineProperty,n2=(e,t)=>n5(e,"name",{value:t,configurable:!0});function n9(e){let t=a.forwardRef((t,n)=>{let{children:r,...i}=t,l=null,o=!1,s=[];rt(r)&&"function"==typeof rl&&(r=rl(r._payload)),a.Children.forEach(r,e=>{if(n6(e)){o=!0;let t="child"in e.props?e.props.child:e.props.children;rt(t)&&"function"==typeof rl&&(t=rl(t._payload)),l=n7(e,t),s.push(l?.props?.children)}else s.push(e)}),l?l=a.cloneElement(l,void 0,s):!o&&1===a.Children.count(r)&&a.isValidElement(r)&&(l=r);let u=l?n4(l):void 0,c=n1(n,u);if(!l){if(r||0===r)throw Error(o?ri(e):rr(e));return r}let d=n8(i,l.props??{});return l.type!==a.Fragment&&(d.ref=n?c:u),a.cloneElement(l,d)});return t.displayName=`${e}.Slot`,t}n2(n9,"createSlot");var n3=Symbol.for("radix.slottable");n2(function(e){let t=n2(e=>"child"in e?e.children(e.child):e.children,"Slottable");return t.displayName=`${e}.Slottable`,t.__radixId=n3,t},"createSlottable");var n7=n2((e,t)=>{if("child"in e.props){let t=e.props.child;return a.isValidElement(t)?a.cloneElement(t,void 0,e.props.children(t.props.children)):null}return a.isValidElement(t)?t:null},"getSlottableElementFromSlottable");function n8(e,t){let n={...t};for(let r in t){let i=e[r],l=t[r];/^on[A-Z]/.test(r)?i&&l?n[r]=(...e)=>{let t=l(...e);return i(...e),t}:i&&(n[r]=i):"style"===r?n[r]={...i,...l}
1:"className"===r&&(n[r]=[i,l].filter(Boolean).join(" "))}return{...e,...n}}function n4(e){let t=Object.getOwnPropertyDescriptor(e.props,"ref")?.get,n=t&&"isReactWarning"in t&&t.isReactWarning;return n?e.ref:(n=(t=Object.getOwnPropertyDescriptor(e,"ref")?.get)&&"isReactWarning"in t&&t.isReactWarning)?e.props.ref:e.props.ref||e.ref}function n6(e){return a.isValidElement(e)&&"function"==typeof e.type&&"__radixId"in e.type&&e.type.__radixId===n3}n2(n8,"mergeProps"),n2(n4,"getElementRef"),n2(n6,"isSlottable");var re=Symbol.for("react.lazy");function rt(e){return null!=e&&"object"==typeof e&&"$$typeof"in e&&e.$$typeof===re&&"_payload"in e&&rn(e._payload)}function rn(e){return"object"==typeof e&&null!==e&&"then"in e}n2(rt,"isLazyComponent"),n2(rn,"isPromiseLike");var rr=n2(e=>`${e} failed to slot onto its children. Expected a single React element child or \`Slottable\`.`,"createSlotError"),ri=n2(e=>`${e} failed to slot onto its \`Slottable\`. Expected \`Slottable\` to receive a single React element child.`,"createSlottableError"),rl=s[" use ".trim().toString()],ro=Object.defineProperty,ra=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"].reduce((e,t)=>{let n=n9(`Primitive.${t}`),r=a.forwardRef((e,r)=>{let{asChild:i,...l}=e;return"undefined"!=typeof window&&(window[Symbol.for("radix-ui")]=!0),(0,u.jsx)(i?n:t,{...l,ref:r})});return r.displayName=`Primitive.${t}`,{...e,[t]:r}},{});ro(function(e,t){e&&el.flushSync(()=>e.dispatchEvent(t))},"name",{value:"dispatchDiscreteCustomEvent",configurable:!0});var rs=Object.defineProperty,ru=a.forwardRef(rs(function(e,t){let{pressed:n,defaultPressed:r,onPressedChange:i,...l}=e,[o,a]=nK({prop:n,onChange:i,defaultProp:null!=r&&r,caller:"Toggle"});return(0,u.jsx)(ra.button,{type:"button","aria-pressed":o,"data-state":o?"on":"off","data-disabled":e.disabled?"":void 0,...l,ref:t,onClick:nF(e.onClick,()=>{e.disabled||a(!o)})})},"name",{value:"Toggle",configurable:!0})),rc=Object.defineProperty,rd=(e,t)=>rc(e,"name",{value:t,configurable:!0}),rf="ToggleGroup",[rp,rh]=tm(rf,[nw]),rg=nw(),rm=a.forwardRef(rd(function(e,t){let{type:n,...r}=e;if("single"===n)return(0,u.jsx)(rb,{role:"radiogroup",...r,ref:t});if("multiple"===n)return(0,u.jsx)(rx,{role:"toolbar",...r,ref:t});throw Error("Missing prop `type` expected on `".concat(rf,"`"))},"ToggleGroup")),[rv,ry]=rp(rf),rb=a.forwardRef(rd(function(e,t){let{value:n,defaultValue:r,onValueChange:i=rd(()=>{},"onValueChange"),...l}=e,[o,s]=no({prop:n,defaultProp:null!=r?r:"",onChange:i,caller:rf});return(0,u.jsx)(rv,{scope:e.__scopeToggleGroup,type:"single",value:a.useMemo(()=>o?[o]:[],[o]),onItemActivate:s,onItemDeactivate:a.useCallback(()=>s(""),[s]),children:(0,u.jsx)(rE,{...l,ref:t})})},"ToggleGroupImplSingle")),rx=a.forwardRef(rd(function(e,t){let{value:n,defaultValue:r,onValueChange:i=rd(()=>{},"onValueChange"),...l}=e,[o,s]=no({prop:n,defaultProp:null!=r?r:[],onChange:i,caller:rf}),c=a.useCallback(e=>s(function(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];return[...t,e]}),[s]),d=a.useCallback(e=>s(function(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];return t.filter(t=>t!==e)}),[s]);return(0,u.jsx)(rv,{scope:e.__scopeToggleGroup,type:"multiple",value:o,onItemActivate:c,onItemDeactivate:d,children:(0,u.jsx)(rE,{...l,ref:t})})},"ToggleGroupImplMultiple")),[rC,rw]=rp(rf),rE=a.forwardRef(rd(function(e,t){let{__scopeToggleGroup:n,disabled:r=!1,rovingFocus:i=!0,orientation:l,dir:o,loop:a=!0,...s}=e,c=rg(n),d=nf(o),f={dir:d,...s};return(0,u.jsx)(rC,{scope:n,rovingFocus:i,disabled:r,children:i?(0,u.jsx)(nS,{asChild:!0,...c,orientation:l,dir:d,loop:a,children:(0,u.jsx)(tD.div,{...f,ref:t})}):(0,u.jsx)(tD.div,{...f,ref:t})})},"ToggleGroupImpl")),r_="ToggleGroupItem",rS=a.forwardRef(rd(function(e,t){let n=ry(r_,e.__scopeToggleGroup),r=rw(r_,e.__scopeToggleGroup),i=rg(e.__scopeToggleGroup),l=n.value.includes(e.value),o=r.disabled||e.disabled,s={...e,pressed:l,disabled:o},c=a.useRef(null);return r.rovingFocus?(0,u.jsx)(nT,{asChild:!0,...i,focusable:!o,active:l,ref:c,children:(0,u.jsx)(rk,{...s,ref:t})}):(0,u.jsx)(rk,{...s,ref:t})},"ToggleGroupItem")),rk=a.forwardRef(rd(function(e,t){let{__scopeToggleGroup:n,value:r,...i}=e,l=ry(r_,n),o={role:"radio","aria-checked":e.pressed,"aria-pressed":void 0},a="single"===l.type?o:void 0;
1return(0,u.jsx)(ru,{...a,...i,ref:t,onPressedChange:e=>{e?l.onItemActivate(r):l.onItemDeactivate(r)}})},"ToggleGroupItemImpl")),rT=Object.defineProperty,rN=(e,t)=>rT(e,"name",{value:t,configurable:!0}),rA="Toolbar",[rI,rM]=f(rA,[eH,rh]),rP=eH(),rR=rh(),[rO,rL]=rI(rA),rF=a.forwardRef(rN(function(e,t){let{__scopeToolbar:n,orientation:r="horizontal",dir:i,loop:l=!0,...o}=e,a=rP(n),s=ew(i);return(0,u.jsx)(rO,{scope:n,orientation:r,dir:s,children:(0,u.jsx)(e$,{asChild:!0,...a,orientation:r,dir:s,loop:l,children:(0,u.jsx)(ea.div,{role:"toolbar","aria-orientation":r,dir:s,...o,ref:t})})})},"Toolbar")),rV=a.forwardRef(rN(function(e,t){let{__scopeToolbar:n,...r}=e,i=rL("ToolbarSeparator",n);return(0,u.jsx)(tf,{orientation:"horizontal"===i.orientation?"vertical":"horizontal",...r,ref:t})},"ToolbarSeparator")),rD=a.forwardRef(rN(function(e,t){let{__scopeToolbar:n,...r}=e,i=rP(n);return(0,u.jsx)(eU,{asChild:!0,...i,focusable:!e.disabled,children:(0,u.jsx)(ea.button,{type:"button",...r,ref:t})})},"ToolbarButton")),rj=a.forwardRef(rN(function(e,t){let{__scopeToolbar:n,...r}=e,i=rL("ToolbarToggleGroup",n),l=rR(n);return(0,u.jsx)(rm,{"data-orientation":i.orientation,dir:i.dir,...l,...r,ref:t,rovingFocus:!1})},"ToolbarToggleGroup")),rH=a.forwardRef(rN(function(e,t){let{__scopeToolbar:n,...r}=e,i=rR(n),l={__scopeToolbar:e.__scopeToolbar};return(0,u.jsx)(rD,{asChild:!0,...l,children:(0,u.jsx)(rS,{...i,...r,ref:t})})},"ToolbarToggleItem")),rJ=rF,rB=rV,r$=rD,rZ=rj,rU=rH},74898:(e,t,n)=>{"use strict";n.d(t,{Ay:()=>r});let r={editorRoot:"_editorRoot_er3ed_53",editorWrapper:"_editorWrapper_er3ed_155",toolbarRoot:"_toolbarRoot_er3ed_162",readOnlyToolbarRoot:"_readOnlyToolbarRoot_er3ed_189",toolbarToggleItem:"_toolbarToggleItem_er3ed_208",toolbarGroupOfGroups:"_toolbarGroupOfGroups_er3ed_219",toolbarToggleSingleGroup:"_toolbarToggleSingleGroup_er3ed_224",toolbarButton:"_toolbarButton_er3ed_239",activeToolbarButton:"_activeToolbarButton_er3ed_275",toolbarButtonDropdownContainer:"_toolbarButtonDropdownContainer_er3ed_286",selectContainer:"_selectContainer_er3ed_288",selectItem:"_selectItem_er3ed_301",toolbarButtonSelectTrigger:"_toolbarButtonSelectTrigger_er3ed_307",selectTrigger:"_selectTrigger_er3ed_308",selectDropdownArrow:"_selectDropdownArrow_er3ed_373",contentEditable:"_contentEditable_er3ed_379",codeMirrorWrapper:"_codeMirrorWrapper_er3ed_391",codeMirrorToolbar:"_codeMirrorToolbar_er3ed_408",propertyPanelTitle:"_propertyPanelTitle_er3ed_430",propertyEditorTable:"_propertyEditorTable_er3ed_438",iconButton:"_iconButton_er3ed_456",readOnlyColumnCell:"_readOnlyColumnCell_er3ed_461",buttonsFooter:"_buttonsFooter_er3ed_474",propertyEditorInput:"_propertyEditorInput_er3ed_480",primaryButton:"_primaryButton_er3ed_506",secondaryButton:"_secondaryButton_er3ed_507",smallButton:"_smallButton_er3ed_522",dialogForm:"_dialogForm_er3ed_534",linkDialogEditForm:"_linkDialogEditForm_er3ed_540",linkDialogInputContainer:"_linkDialogInputContainer_er3ed_548",linkDialogInputWrapper:"_linkDialogInputWrapper_er3ed_554",linkDialogInput:"_linkDialogInput_er3ed_548",linkDialogAnchor:"_linkDialogAnchor_er3ed_586",linkDialogPopoverContent:"_linkDialogPopoverContent_er3ed_600",tableColumnEditorPopoverContent:"_tableColumnEditorPopoverContent_er3ed_601",dialogContent:"_dialogContent_er3ed_602",largeDialogContent:"_largeDialogContent_er3ed_614",dialogTitle:"_dialogTitle_er3ed_624",dialogCloseButton:"_dialogCloseButton_er3ed_630",popoverContent:"_popoverContent_er3ed_637",popoverArrow:"_popoverArrow_er3ed_649",linkDialogPreviewAnchor:"_linkDialogPreviewAnchor_er3ed_653",tooltipTrigger:"_tooltipTrigger_er3ed_676",tooltipContent:"_tooltipContent_er3ed_680",actionButton:"_actionButton_er3ed_694",primaryActionButton:"_primaryActionButton_er3ed_701",tableEditor:"_tableEditor_er3ed_713",toolCell:"_toolCell_er3ed_724",tableColumnEditorTrigger:"_tableColumnEditorTrigger_er3ed_743",addRowButton:"_addRowButton_er3ed_745",addColumnButton:"_addColumnButton_er3ed_746",tableColumnEditorToolbar:"_tableColumnEditorToolbar_er3ed_788",toggleGroupRoot:"_toggleGroupRoot_er3ed_801",tableToolsColumn:"_tableToolsColumn_er3ed_819",leftAlignedCell:"_leftAlignedCell_er3ed_828",rightAlignedCell:"_rightAlignedCell_er3ed_832",centeredCell:"_centeredCell_er3ed_836",dialogOverlay:"_dialogOverlay_er3ed_869",focu
1sedImage:"_focusedImage_er3ed_915",imageWrapper:"_imageWrapper_er3ed_919",editImageToolbar:"_editImageToolbar_er3ed_932",editImageButton:"_editImageButton_er3ed_936",inlineEditor:"_inlineEditor_er3ed_942",blockEditor:"_blockEditor_er3ed_951",nestedEditor:"_nestedEditor_er3ed_960",genericComponentName:"_genericComponentName_er3ed_979",diffSourceToggleWrapper:"_diffSourceToggleWrapper_er3ed_985",ggDiffSourceToggle:"_ggDiffSourceToggle_er3ed_993",diffSourceToggle:"_diffSourceToggle_er3ed_985",selectWithLabel:"_selectWithLabel_er3ed_1011",toolbarTitleMode:"_toolbarTitleMode_er3ed_1026",imageControlWrapperResizing:"_imageControlWrapperResizing_er3ed_1031",imageResizer:"_imageResizer_er3ed_1035",imageResizerN:"_imageResizerN_er3ed_1044",imageResizerNe:"_imageResizerNe_er3ed_1050",imageResizerE:"_imageResizerE_er3ed_1056",imageResizerSe:"_imageResizerSe_er3ed_1062",imageResizerS:"_imageResizerS_er3ed_1062",imageResizerSw:"_imageResizerSw_er3ed_1074",imageResizerW:"_imageResizerW_er3ed_1080",imageResizerNw:"_imageResizerNw_er3ed_1086",imagePlaceholder:"_imagePlaceholder_er3ed_1092",imageDimensionsContainer:"_imageDimensionsContainer_er3ed_1100",placeholder:"_placeholder_er3ed_1105",rootContentEditableWrapper:"_rootContentEditableWrapper_er3ed_1118",downshiftInputWrapper:"_downshiftInputWrapper_er3ed_1128",downshiftInput:"_downshiftInput_er3ed_1128",downshiftAutocompleteContainer:"_downshiftAutocompleteContainer_er3ed_1159",textInput:"_textInput_er3ed_1205",multiFieldForm:"_multiFieldForm_er3ed_1213",formField:"_formField_er3ed_1219",markdownParseError:"_markdownParseError_er3ed_1230",popupContainer:"_popupContainer_er3ed_1239",inputSizer:"_inputSizer_er3ed_1244"}},76669:(e,t,n)=>{"use strict";n.d(t,{py:()=>tR,A:()=>tV,Mi:()=>tB,_5:()=>tM,zr:()=>tD,WK:()=>tI,NN:()=>tF,XI:()=>tL,sm:()=>tJ,_F:()=>tO,uQ:()=>tP});var r=n(48243),i=n(61259),l=n(80632),o=n(11919),a=n(13174),s=n(38993),u=n(45276),c=n(82763),d=n(47520),f=n(12115);function p(e,t){if(null==e)return{};var n={};for(var r in e)if(({}).hasOwnProperty.call(e,r)){if(-1!==t.indexOf(r))continue;n[r]=e[r]}return n}function h(){return(h=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(null,arguments)}var g=n(12758),m=n.n(g);n(62249);let v=e=>"object"==typeof e&&null!=e&&1===e.nodeType,y=(e,t)=>(!t||"hidden"!==e)&&"visible"!==e&&"clip"!==e,b=(e,t)=>{if(e.clientHeight<e.scrollHeight||e.clientWidth<e.scrollWidth){let n=getComputedStyle(e,null);return y(n.overflowY,t)||y(n.overflowX,t)||(e=>{let t=(e=>{if(!e.ownerDocument||!e.ownerDocument.defaultView)return null;try{return e.ownerDocument.defaultView.frameElement}catch(e){return null}})(e);return!!t&&(t.clientHeight<e.scrollHeight||t.clientWidth<e.scrollWidth)})(e)}return!1},x=(e,t,n,r,i,l,o,a)=>l<e&&o>t||l>e&&o<t?0:l<=e&&a<=n||o>=t&&a>=n?l-e-r:o>t&&a<n||l<e&&a>n?o-t+i:0,C=e=>{let t=e.parentElement;return null==t?e.getRootNode().host||null:t};var w=n(71450),E=0;function _(){}function S(e,t,n){return e===t||t instanceof n.Node&&e.contains&&e.contains(t)}function k(e,t){var n;function r(){n&&clearTimeout(n)}function i(){for(var i=arguments.length,l=Array(i),o=0;o<i;o++)l[o]=arguments[o];r(),n=setTimeout(function(){n=null,e.apply(void 0,l)},t)}return i.cancel=r,i}function T(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];return function(e){for(var n=arguments.length,r=Array(n>1?n-1:0),i=1;i<n;i++)r[i-1]=arguments[i];return t.some(function(t){return t&&t.apply(void 0,[e].concat(r)),e.preventDownshiftDefault||e.hasOwnProperty("nativeEvent")&&e.nativeEvent.preventDownshiftDefault})}}function N(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];return function(e){t.forEach(function(t){"function"==typeof t?t(e):t&&(t.current=e)})}}function A(e,t){return Object.keys(e).reduce(function(n,r){return n[r]=void 0!==t[r]?t[r]:e[r],n},{})}function I(e){var t=e.key,n=e.keyCode;return n>=37&&n<=40&&0!==t.indexOf("Arrow")?"Arrow"+t:t}function M(e,t,n,r,i){if(void 0===i&&(i=!0),0===n)return -1;var l=n-1;("number"!=typeof t||t<0||t>=n)&&(t=e>0?-1:l+1);var o=t+e;o<0?o=i?l:0:o>l&&(o=i?0:l);var a=P(e,o,n,r,i);return -1===a?t>=n?-1:t:a}function P(e,t,n,r,i){var l=r(t);if(!l||!l.hasAttribute("disabled"))return t;if(e>0){for(var o=t+1;o<n;o++)if(!r(o).hasAttribute("disabled"))return o}else for(var a=t-1;a>=0;a--)if(!r(a).hasAttribute("disabled"))return a;return i?e>0?P(1,0,n,r,!1):P(-1,n-1,n,r,!1):-1}function R(e,t,n,r){return void 0===r&&(r=!0),t.some(function(t){return t&&(S(t,e,n)||r&&S(t,n.document.activeElement,n))})}var O=k(function(e){F(e).textContent=""},500);function L(e,t){var n=F(t);e&&(n.textContent=e,O(t))}function F(e){void 0===e&&(e=document);var t=e.getElementById("a11y-status-message");return t||((t=e.createElement("div")).setAttribute("id","a11y-status-message"),t.setAttribute("role","status"),t.setAttribute("aria-live","polite"),t.setAttribute("aria-relevant","additions text"),Object.assign(t.style,{border:"0",clip:"rect(0 0 0 0)",height:"1px",margin:"-1px",overflow:"hidden",padding:"0",position:"absolute",width:"1px"}),e.body.appendChild(t)),t}var V=["isInitialMount","highlightedIndex","items","environment"],D={highlightedIndex:-1,isOpen:!1,selectedItem:null,inputValue:""},j=k(function(e,t){L(e(),t)},200),H="undefined"!=typeof window&&void 0!==window.document&&void 0!==window.document.createElement?f.useLayoutEffect:f.useEffect;function J(e){var t=e.id,n=void 0===t?"downshift-"+String(E++):t,r=e.labelId,i=e.menuId,l=e.getItemId,o=e.toggleButtonId,a=e.inputId;return(0,f.useRef)({labelId:r||n+"-label",menuId:i||n+"-menu",getItemId:l||function(e){return n+"-item-"+e},toggleButtonId:o||n+"-toggle-button",inputId:a||n+"-input"}).current}function B(e,t,n,r){var i,l;if(void 0===e){if(void 0===t)throw Error(r);i=n[t],l=t}else l=void 0===t?n.indexOf(e):t,i=e;return[i,l]}function $(e){return""+e.slice(0,1).toUpperCase()+e.slice(1)}function Z(e){var t=(0,f.useRef)(e);return t.current=e,t}function U(e,t,n){var r=(0,f.useRef)(),i=(0,f.useRef)(),l=(0,f.useCallback)(function(t,n){i.current=n;var r=e(t=A(t,n.props),n);return n.props.stateReducer(t,h({},n,{changes:r}))},[e]),o=(0,f.useReducer)(l,t),a=o[0],s=o[1],u=Z(n),c=(0,f.useCallback)(function(e){return s(h({props:u.current},e))},[u]),d=i.current;return(0,f.useEffect)(function(){var e,t,n,i;d&&r.current&&r.current!==a&&(e=A(r.current,d.props),t=d.props,n=d.type,i={},Object.keys(e).forEach(function(t){var n,r,l,o,s,u,c;n=t,r=d,l=e,o=a,s=r.props,u=r.type,s[c="on"+$(n)+"Change"]&&void 0!==o[n]&&o[n]!==l[n]&&s[c](h({type:u},o)),a[t]!==e[t]&&(i[t]=a[t])}),t.onStateChange&&Object.keys(i).length&&t.onStateChange(h({type:n},i))),r.current=a},[a,n,d]),[a,c]}var W={itemToString:function(e){return e?String(e):""},stateReducer:function(e,t){return t.changes},getA11ySelectionMessage:function(e){var t=e.selectedItem,n=e.itemToString;return t?n(t)+" has been selected.":""},scrollIntoView:function(e,t){e&&((e,t)=>{var n,r,i,l,o,a;if("undefined"==typeof document)return[];let{scrollMode:s,block:u,inline:c,boundary:d,skipOverflowHiddenElements:f}=t,p="function"==typeof d?d:e=>e!==d;if(!v(e))throw TypeError("Invalid target");let h=document.scrollingElement||document.documentElement,g=[],m=e;for(;v(m)&&p(m);){if((m=C(m))===h){g.push(m);break}null!=m&&m===document.body&&b(m)&&!b(document.documentElement)||null!=m&&b(m,f)&&g.push(m)}
1let y=null!=(r=null==(n=window.visualViewport)?void 0:n.width)?r:innerWidth,w=null!=(l=null==(i=window.visualViewport)?void 0:i.height)?l:innerHeight,E=null!=(o=window.scrollX)?o:pageXOffset,_=null!=(a=window.scrollY)?a:pageYOffset,{height:S,width:k,top:T,right:N,bottom:A,left:I}=e.getBoundingClientRect(),M="start"===u||"nearest"===u?T:"end"===u?A:T+S/2,P="center"===c?I+k/2:"end"===c?N:I,R=[];for(let e=0;e<g.length;e++){let t=g[e],{height:n,width:r,top:i,right:l,bottom:o,left:a}=t.getBoundingClientRect();if("if-needed"===s&&T>=0&&I>=0&&A<=w&&N<=y&&T>=i&&A<=o&&I>=a&&N<=l)break;let d=getComputedStyle(t),f=parseInt(d.borderLeftWidth,10),p=parseInt(d.borderTopWidth,10),m=parseInt(d.borderRightWidth,10),v=parseInt(d.borderBottomWidth,10),b=0,C=0,O="offsetWidth"in t?t.offsetWidth-t.clientWidth-f-m:0,L="offsetHeight"in t?t.offsetHeight-t.clientHeight-p-v:0,F="offsetWidth"in t?0===t.offsetWidth?0:r/t.offsetWidth:0,V="offsetHeight"in t?0===t.offsetHeight?0:n/t.offsetHeight:0;if(h===t)b="start"===u?M:"end"===u?M-w:"nearest"===u?x(_,_+w,w,p,v,_+M,_+M+S,S):M-w/2,C="start"===c?P:"center"===c?P-y/2:"end"===c?P-y:x(E,E+y,y,f,m,E+P,E+P+k,k),b=Math.max(0,b+_),C=Math.max(0,C+E);else{b="start"===u?M-i-p:"end"===u?M-o+v+L:"nearest"===u?x(i,o,n,p,v+L,M,M+S,S):M-(i+n/2)+L/2,C="start"===c?P-a-f:"center"===c?P-(a+r/2)+O/2:"end"===c?P-l+m+O:x(a,l,r,f,m+O,P,P+k,k);let{scrollLeft:e,scrollTop:s}=t;b=Math.max(0,Math.min(s+b/V,t.scrollHeight-n/V+L)),C=Math.max(0,Math.min(e+C/F,t.scrollWidth-r/F+O)),M+=s-b,P+=e-C}R.push({el:t,top:b,left:C})}return R})(e,{boundary:t,block:"nearest",scrollMode:"if-needed"}
1).forEach(function(e){var t=e.el,n=e.top,r=e.left;t.scrollTop=n,t.scrollLeft=r})},environment:"undefined"==typeof window?{}:window};function K(e,t,n){void 0===n&&(n=D);var r=e["default"+$(t)];return void 0!==r?r:n[t]}function z(e,t,n){void 0===n&&(n=D);var r=e[t];if(void 0!==r)return r;var i=e["initial"+$(t)];return void 0!==i?i:K(e,t,n)}function q(e){var t=z(e,"selectedItem"),n=z(e,"isOpen"),r=z(e,"highlightedIndex"),i=z(e,"inputValue");return{highlightedIndex:r<0&&t&&n?e.items.indexOf(t):r,isOpen:n,selectedItem:t,inputValue:i}}function G(e,t,n){var r=e.items,i=e.initialHighlightedIndex,l=e.defaultHighlightedIndex,o=t.selectedItem,a=t.highlightedIndex;return 0===r.length?-1:void 0!==i&&a===i?i:void 0!==l?l:o?r.indexOf(o):0===n?-1:n<0?r.length-1:0}function Y(e,t,n,r){var i=(0,f.useRef)({isMouseDown:!1,isTouchMove:!1});return(0,f.useEffect)(function(){if((null==n?void 0:n.addEventListener)!=null){var l=function(){i.current.isMouseDown=!0},o=function(l){i.current.isMouseDown=!1,e&&!R(l.target,t.map(function(e){return e.current}),n)&&r()},a=function(){i.current.isTouchMove=!1},s=function(){i.current.isTouchMove=!0},u=function(l){!e||i.current.isTouchMove||R(l.target,t.map(function(e){return e.current}),n,!1)||r()};return n.addEventListener("mousedown",l),n.addEventListener("mouseup",o),n.addEventListener("touchstart",a),n.addEventListener("touchmove",s),n.addEventListener("touchend",u),function(){n.removeEventListener("mousedown",l),n.removeEventListener("mouseup",o),n.removeEventListener("touchstart",a),n.removeEventListener("touchmove",s),n.removeEventListener("touchend",u)}}},[e,n]),i}var X=function(){return _};function Q(e,t,n){var r=n.isInitialMount,i=n.highlightedIndex,l=n.items,o=n.environment,a=p(n,V);(0,f.useEffect)(function(){r||j(function(){return e(h({highlightedIndex:i,highlightedItem:l[i],resultCount:l.length},a))},o.document)},t)}function ee(e){var t=e.highlightedIndex,n=e.isOpen,r=e.itemRefs,i=e.getItemNodeFromIndex,l=e.menuElement,o=e.scrollIntoView,a=(0,f.useRef)(!0);return H(function(){!(t<0)&&n&&Object.keys(r.current).length&&(!1===a.current?a.current=!0:o(i(t),l))},[t]),a}function et(e,t,n){void 0===n&&(n=!0);var r,i=(null==(r=e.items)?void 0:r.length)&&t>=0;return h({isOpen:!1,highlightedIndex:-1},i&&h({selectedItem:e.items[t],isOpen:K(e,"isOpen"),highlightedIndex:K(e,"highlightedIndex")},n&&{inputValue:e.itemToString(e.items[t])}))}function en(e,t,n){var r,i=t.type,l=t.props;switch(i){case n.ItemMouseMove:r={highlightedIndex:t.disabled?-1:t.index};break;case n.MenuMouseLeave:r={highlightedIndex:-1};break;case n.ToggleButtonClick:case n.FunctionToggleMenu:r={isOpen:!e.isOpen,highlightedIndex:e.isOpen?-1:G(l,e,0)};break;case n.FunctionOpenMenu:r={isOpen:!0,highlightedIndex:G(l,e,0)};break;case n.FunctionCloseMenu:r={isOpen:!1};break;case n.FunctionSetHighlightedIndex:r={highlightedIndex:t.highlightedIndex};break;case n.FunctionSetInputValue:r={inputValue:t.inputValue};break;case n.FunctionReset:r={highlightedIndex:K(l,"highlightedIndex"),isOpen:K(l,"isOpen"),selectedItem:K(l,"selectedItem"),inputValue:K(l,"inputValue")};break;default:throw Error("Reducer called without proper action type.")}return h({},e,r)}m().array.isRequired,m().func,m().func,m().func,m().number,m().number,m().number,m().bool,m().bool,m().bool,m().any,m().any,m().any,m().string,m().string,m().string,m().func,m().string,m().func,m().func,m().func,m().func,m().func,m().shape({addEventListener:m().func,removeEventListener:m().func,document:m().shape({getElementById:m().func,activeElement:m().any,body:m().any})});var er=(0,w.Cl)((0,w.Cl)({},W),{getA11yStatusMessage:function(e){var t=e.isOpen,n=e.resultCount,r=e.previousResultCount;return t?n?n!==r?"".concat(n," result").concat(1===n?" is":"s are"," available, use up and down arrow keys to navigate. Press Enter or Space Bar keys to select."):"":"No results are available.":""}}),ei=Object.freeze({__proto__:null,ToggleButtonClick:0,ToggleButtonKeyDownArrowDown:1,ToggleButtonKeyDownArrowUp:2,ToggleButtonKeyDownCharacter:3,ToggleButtonKeyDownEscape:4,ToggleButtonKeyDownHome:5,ToggleButtonKeyDownEnd:6,ToggleButtonKeyDownEnter:7,ToggleButtonKeyDownSpaceButton:8,ToggleButtonKeyDownPageUp:9,ToggleButtonKeyDownPageDown:10,ToggleButtonBlur:11,MenuMouseLeave:12,ItemMouseMove:13,ItemClick:14,FunctionToggleMenu:15,FunctionOpenMenu:16,FunctionCloseMenu:17,FunctionSetHighlightedIndex:18,FunctionSelectItem:19,FunctionSetInputValue:20,FunctionReset:21});var el=Object.freeze({__proto__:null,InputKeyDownArrowDown:0,InputKeyDownArrowUp:1,InputKeyDownEscape:2,InputKeyDownHome:3,InputKeyDownEnd:4,InputKeyDownPageUp:5,InputKeyDownPageDown:6,InputKeyDownEnter:7,InputChange:8,InputBlur:9,InputFocus:10,MenuMouseLeave:11,ItemMouseMove:12,ItemClick:13,ToggleButtonClick:14,FunctionToggleMenu:15,FunctionOpenMenu:16,FunctionCloseMenu:17,FunctionSetHighlightedIndex:18,FunctionSelectItem:19,FunctionSetInputValue:20,FunctionReset:21,ControlledPropUpdatedSelectedItem:22});m().array.isRequired,m().func,m().func,m().func,m().func,m().number,m().number,m().number,m().bool,m().bool,m().bool,m().any,m().any,m().any,m().str
1ing,m().string,m().string,m().string,m().string,m().string,m().func,m().string,m().string,m().func,m().func,m().func,m().func,m().func,m().func,m().shape({addEventListener:m().func,removeEventListener:m().func,document:m().shape({getElementById:m().func,activeElement:m().any,body:m().any})});var eo=h({},W,{selectedItemChanged:function(e,t){return e!==t},getA11yStatusMessage:function(e){var t=e.isOpen,n=e.resultCount,r=e.previousResultCount;return t?n?n!==r?n+" result"+(1===n?" is":"s are")+" available, use up and down arrow keys to navigate. Press Enter key to select.":"":"No results are available.":""}});function ea(e,t){var n,r,i=t.type,l=t.props,o=t.altKey;switch(i){case 13:r={isOpen:K(l,"isOpen"),highlightedIndex:K(l,"highlightedIndex"),selectedItem:l.items[t.index],inputValue:l.itemToString(l.items[t.index])};break;case 0:r=e.isOpen?{highlightedIndex:M(1,e.highlightedIndex,l.items.length,t.getItemNodeFromIndex,!0)}:{highlightedIndex:o&&null==e.selectedItem?-1:G(l,e,1,t.getItemNodeFromIndex),isOpen:l.items.length>=0};break;case 1:r=e.isOpen?o?et(l,e.highlightedIndex):{highlightedIndex:M(-1,e.highlightedIndex,l.items.length,t.getItemNodeFromIndex,!0)}:{highlightedIndex:G(l,e,-1,t.getItemNodeFromIndex),isOpen:l.items.length>=0};break;case 7:r=et(l,e.highlightedIndex);break;case 2:r=h({isOpen:!1,highlightedIndex:-1},!e.isOpen&&{selectedItem:null,inputValue:""});break;case 5:r={highlightedIndex:M(-10,e.highlightedIndex,l.items.length,t.getItemNodeFromIndex,!1)};break;case 6:r={highlightedIndex:M(10,e.highlightedIndex,l.items.length,t.getItemNodeFromIndex,!1)};break;case 3:r={highlightedIndex:P(1,0,l.items.length,t.getItemNodeFromIndex,!1)};break;case 4:r={highlightedIndex:P(-1,l.items.length-1,l.items.length,t.getItemNodeFromIndex,!1)};break;case 9:r=h({isOpen:!1,highlightedIndex:-1},e.highlightedIndex>=0&&(null==(n=l.items)?void 0:n.length)&&t.selectItem&&{selectedItem:l.items[e.highlightedIndex],inputValue:l.itemToString(l.items[e.highlightedIndex])});break;case 8:r={isOpen:!0,highlightedIndex:K(l,"highlightedIndex"),inputValue:t.inputValue};break;case 10:r={isOpen:!0,highlightedIndex:G(l,e,0)};break;case 19:r={selectedItem:t.selectedItem,inputValue:l.itemToString(t.selectedItem)};break;case 22:r={inputValue:t.inputValue};break;default:return en(e,t,el)}return h({},e,r)}var es=["onMouseLeave","refKey","ref"],eu=["item","index","refKey","ref","onMouseMove","onMouseDown","onClick","onPress","disabled"],ec=["onClick","onPress","refKey","ref"],ed=["onKeyDown","onChange","onInput","onFocus","onBlur","onChangeText","refKey","ref"];function ef(e){void 0===e&&(e={});var t,n,r,i,l,o,a,s=h({},eo,e),u=s.initialIsOpen,c=s.defaultIsOpen,d=s.items,g=s.scrollIntoView,m=s.environment,v=s.getA11yStatusMessage,y=s.getA11ySelectionMessage,b=s.itemToString,x=(n=(t=q(s)).selectedItem,""===(r=t.inputValue)&&n&&void 0===s.defaultInputValue&&void 0===s.initialInputValue&&void 0===s.inputValue&&(r=s.itemToString(n)),h({},t,{inputValue:r})),C=(i=(0,f.useRef)(),o=(l=U(ea,x,s))[0],a=l[1],(0,f.useEffect)(function(){void 0!==s.selectedItem&&(s.selectedItemChanged(i.current,s.selectedItem)&&a({type:22,inputValue:s.itemToString(s.selectedItem)}),i.current=o.selectedItem===i.current?s.selectedItem:o.selectedItem)},[o.selectedItem,s.selectedItem]),[A(o,s),a]),w=C[0],E=C[1],_=w.isOpen,S=w.highlightedIndex,k=w.selectedItem,M=w.inputValue,P=(0,f.useRef)(null),R=(0,f.useRef)({}),O=(0,f.useRef)(null),L=(0,f.useRef)(null),F=(0,f.useRef)(!0),V=J(s),D=(0,f.useRef)(),j=Z({state:w,props:s}),H=(0,f.useCallback)(function(e){return R.current[V.getItemId(e)]},[V]);Q(v,[_,S,M,d],h({isInitialMount:F.current,previousResultCount:D.current,items:d,environment:m,itemToString:b},w)),Q(y,[k],h({isInitialMount:F.current,previousResultCount:D.current,items:d,environment:m,itemToString:b},w));var $=ee({menuElement:P.current,highlightedIndex:S,isOpen:_,itemRefs:R,scrollIntoView:g,getItemNodeFromIndex:H});F.current,(0,f.useEffect)(function(){(u||c||_)&&O.current&&O.current.focus()},[]),(0,f.useEffect)(function(){F.current||(D.current=d.length)});var W=Y(_,[O,P,L],m,function(){E({type:9,selectItem:!1})}),K=X("getInputProps","getMenuProps");(0,f.useEffect)(function(){return F.current=!1,function(){F.current=!0}},[]),(0,f.useEffect)(function(){var e,t;_?(null==(e=m.document)?void 0:e.activeElement)!==O.current&&(null==O||null==(t=O.current)||t.focu
1s()):R.current={}},[_,m]);var z=(0,f.useMemo)(function(){return{ArrowDown:function(e){e.preventDefault(),E({type:0,altKey:e.altKey,getItemNodeFromIndex:H})},ArrowUp:function(e){e.preventDefault(),E({type:1,altKey:e.altKey,getItemNodeFromIndex:H})},Home:function(e){j.current.state.isOpen&&(e.preventDefault(),E({type:3,getItemNodeFromIndex:H}))},End:function(e){j.current.state.isOpen&&(e.preventDefault(),E({type:4,getItemNodeFromIndex:H}))},Escape:function(e){var t=j.current.state;(t.isOpen||t.inputValue||t.selectedItem||t.highlightedIndex>-1)&&(e.preventDefault(),E({type:2}))},Enter:function(e){j.current.state.isOpen&&229!==e.which&&(e.preventDefault(),E({type:7,getItemNodeFromIndex:H}))},PageUp:function(e){j.current.state.isOpen&&(e.preventDefault(),E({type:5,getItemNodeFromIndex:H}))},PageDown:function(e){j.current.state.isOpen&&(e.preventDefault(),E({type:6,getItemNodeFromIndex:H}))}}},[E,j,H]),G=(0,f.useCallback)(function(e){return h({id:V.labelId,htmlFor:V.inputId},e)},[V]),et=(0,f.useCallback)(function(e,t){var n,r=void 0===e?{}:e,i=r.onMouseLeave,l=r.refKey,o=void 0===l?"ref":l,a=r.ref,s=p(r,es),u=(void 0===t?{}:t).suppressRefError;return K("getMenuProps",void 0!==u&&u,o,P),h(((n={})[o]=N(a,function(e){P.current=e}),n.id=V.menuId,n.role="listbox",n["aria-labelledby"]=s&&s["aria-label"]?void 0:""+V.labelId,n.onMouseLeave=T(i,function(){E({type:11})}),n),s)},[E,K,V]),en=(0,f.useCallback)(function(e){var t,n,r=void 0===e?{}:e,i=r.item,l=r.index,o=r.refKey,a=r.ref,s=r.onMouseMove,u=r.onMouseDown,c=r.onClick;r.onPress;var d=r.disabled,f=p(r,eu),g=j.current,m=g.props,v=g.state,y=B(i,l,m.items,"Pass either item or index to getItemProps!")[1];return h(((t={})[void 0===o?"ref":o]=N(a,function(e){e&&(R.current[V.getItemId(y)]=e)}),t.disabled=d,t.role="option",t["aria-selected"]=""+(y===v.highlightedIndex),t.id=V.getItemId(y),t),!d&&((n={}).onClick=T(c,function(){E({type:13,index:y})}),n),{onMouseMove:T(s,function(){y!==v.highlightedIndex&&($.current=!1,E({type:12,index:y,disabled:d}))}),onMouseDown:T(u,function(e){return e.preventDefault()})},f)},[E,j,$,V]),er=(0,f.useCallback)(function(e){var t,n=void 0===e?{}:e,r=n.onClick;n.onPress;var i=n.refKey,l=n.ref,o=p(n,ec),a=j.current.state;return h(((t={})[void 0===i?"ref":i]=N(l,function(e){L.current=e}),t["aria-controls"]=V.menuId,t["aria-expanded"]=a.isOpen,t.id=V.toggleButtonId,t.tabIndex=-1,t),!o.disabled&&h({},{onClick:T(r,function(){E({type:14})})}),o)},[E,j,V]),ei=(0,f.useCallback)(function(e,t){var n,r,i=void 0===e?{}:e,l=i.onKeyDown,o=i.onChange,a=i.onInput,s=i.onFocus,u=i.onBlur;i.onChangeText;var c=i.refKey,d=void 0===c?"ref":c,f=i.ref,g=p(i,ed),v=(void 0===t?{}:t).suppressRefError;K("getInputProps",void 0!==v&&v,d,O);var y=j.current.state,b={};return g.disabled||((r={}).onChange=T(o,a,function(e){E({type:8,inputValue:e.target.value})}),r.onKeyDown=T(l,function(e){var t=I(e);t&&z[t]&&z[t](e)}),r.onBlur=T(u,function(e){y.isOpen&&!W.current.isMouseDown&&E({type:9,selectItem:null!==e.relatedTarget||m.document.activeElement===m.document.body})}),r.onFocus=T(s,function(){y.isOpen||E({type:10})}),b=r),h(((n={})[d]=N(f,function(e){O.current=e}),n["aria-activedescendant"]=y.isOpen&&y.highlightedIndex>-1?V.getItemId(y.highlightedIndex):"",n["aria-autocomplete"]="list",n["aria-controls"]=V.menuId,n["aria-expanded"]=y.isOpen,n["aria-labelledby"]=g&&g["aria-label"]?void 0:""+V.labelId,n.autoComplete="off",n.id=V.inputId,n.role="combobox",n.value=y.inputValue,n),b,g)},[K,j,V,z,E,W,m]),el=(0,f.useCallback)(function(){E({type:15})},[E]),ef=(0,f.useCallback)(function(){E({type:17})},[E]),ep=(0,f.useCallback)(function(){E({type:16})},[E]),eh=(0,f.useCallback)(function(e){E({type:18,highlightedIndex:e})},[E]),eg=(0,f.useCallback)(function(e){E({type:19,selectedItem:e})},[E]);return{getItemProps:en,getLabelProps:G,getMenuProps:et,getInputProps:ei,getToggleButtonProps:er,toggleMenu:el,openMenu:ep,closeMenu:ef,setHighlightedIndex:eh,setInputValue:(0,f.useCallback)(function(e){E({type:20,inputValue:e})},[E]),selectItem:eg,reset:(0,f.useCallback)(function(){E({type:21})},[E]),highlightedIndex:S,isOpen:_,selectedItem:k,inputValue:M}}ef.stateChangeTypes=el;m().array,m().array,m().array,m().func,m().func,m().func,m().number,m().number,m().number,m().func,m().func,m().str
1ing,m().string,m().shape({addEventListener:m().func,removeEventListener:m().func,document:m().shape({getElementById:m().func,activeElement:m().any,body:m().any})});var ep={itemToString:W.itemToString,stateReducer:W.stateReducer,environment:W.environment,getA11yRemovalMessage:function(e){var t=e.removedSelectedItem;return(0,e.itemToString)(t)+" has been removed."},keyNavigationNext:"ArrowRight",keyNavigationPrevious:"ArrowLeft"},eh=Object.freeze({__proto__:null,SelectedItemClick:0,SelectedItemKeyDownDelete:1,SelectedItemKeyDownBackspace:2,SelectedItemKeyDownNavigationNext:3,SelectedItemKeyDownNavigationPrevious:4,DropdownKeyDownNavigationPrevious:5,DropdownKeyDownBackspace:6,DropdownClick:7,FunctionAddSelectedItem:8,FunctionRemoveSelectedItem:9,FunctionSetSelectedItems:10,FunctionSetActiveIndex:11,FunctionReset:12});var eg=e=>e instanceof Date,em=e=>null==e;let ev=e=>"object"==typeof e;var ey=e=>!em(e)&&!Array.isArray(e)&&ev(e)&&!eg(e),eb=e=>ey(e)&&e.target?"checkbox"===e.target.type?e.target.checked:"file"===e.target.type?e.target.files:e.target.value:e,ex=(e,t)=>t.split(".").some((t,n,r)=>!isNaN(Number(t))&&e.has(r.slice(0,n).join("."))),eC=e=>{let t=e.constructor&&e.constructor.prototype;return ey(t)&&t.hasOwnProperty("isPrototypeOf")},ew="undefined"!=typeof window&&void 0!==window.HTMLElement&&"undefined"!=typeof document;function eE(e){if(e instanceof Date)return new Date(e);let t="undefined"!=typeof FileList&&e instanceof FileList;if(ew&&(e instanceof Blob||t))return e;let n=Array.isArray(e);if(!n&&!(ey(e)&&eC(e)))return e;let r=n?[]:Object.create(Object.getPrototypeOf(e));for(let t in e)Object.prototype.hasOwnProperty.call(e,t)&&(r[t]=eE(e[t]));return r}let e_={BLUR:"blur",FOCUS_OUT:"focusout",CHANGE:"change",SUBMIT:"submit",TRIGGER:"trigger",VALID:"valid"},eS={onBlur:"onBlur",onChange:"onChange",onSubmit:"onSubmit",onTouched:"onTouched",all:"all"},ek={max:"max",min:"min",maxLength:"maxLength",minLength:"minLength",pattern:"pattern",required:"required",validate:"validate"},eT="root",eN=["__proto__","constructor","prototype"],eA=/^\w*$/;var eI=e=>eA.test(e),eM=e=>void 0===e;let eP=/[.[\]'"]/;var eR=e=>e.split(eP).filter(Boolean),eO=(e,t,n)=>{if(!t||!ey(e))return n;let r=eI(t)?[t]:eR(t);if(r.some(e=>eN.includes(e)))return n;let i=r.reduce((e,t)=>em(e)?void 0:e[t],e);return eM(i)||i===e?eM(e[t])?n:e[t]:i},eL=e=>"function"==typeof e,eF=(e,t,n)=>{let r=-1,i=eI(t)?[t]:eR(t),l=i.length,o=l-1;for(;++r<l;){let t=i[r],l=n;if(r!==o){let n=e[t];l=ey(n)||Array.isArray(n)?n:isNaN(+i[r+1])?{}:[]}if(eN.includes(t))return;e[t]=l,e=e[t]}};let eV=f.createContext(null);eV.displayName="HookFormControlContext";let eD=()=>f.useContext(eV);var ej=(e,t,n,r=!0)=>{let i={};for(let l in e)Object.defineProperty(i,l,{get:()=>(t._proxyFormState[l]!==eS.all&&(t._proxyFormState[l]=!r||eS.all),n&&(n[l]=!0),e[l])});return i};let eH=ew?f.useLayoutEffect:f.useEffect;var eJ=e=>"string"==typeof e,eB=(e,t,n,r,i)=>eJ(e)?(r&&t.watch.add(e),eO(n,e,i)):Array.isArray(e)?e.map(e=>(r&&t.watch.add(e),eO(n,e))):(r&&(t.watchAll=!0),n),e$=e=>em(e)||!ev(e);let eZ=(e,t)=>0===t.length&&!Array.isArray(e)&&!eC(e);function eU(e,t,n=new WeakMap){if(e===t)return!0;if(e$(e)||e$(t))return Object.is(e,t);if(eg(e)&&eg(t))return Object.is(e.getTime(),t.getTime());let r=Object.keys(e),i=Object.keys(t);if(r.length!==i.length)return!1;if(eZ(e,r)||eZ(t,i))return Object.is(e,t);if(!r.length&&Array.isArray(e)!==Array.isArray(t))return!1;let l=n.get(e);if(l&&l.has(t))return!0;if(l)l.add(t);else{let r=new WeakSet;r.add(t),n.set(e,r)}for(let i of r){let r=e[i];if(!(i in t))return!1;if("ref"!==i){let e=t[i];if(eg(r)&&eg(e)||(ey(r)||Array.isArray(r))&&(ey(e)||Array.isArray(e))?!eU(r,e,n):!Object.is(r,e))return!1}}return!0}let eW=e=>e.render(function(e){let t=eD(),{name:n,disabled:r,control:i=t,shouldUnregister:l,defaultValue:o,exact:a=!0}=e,s=ex(i._names.array,n),u=f.useMemo(()=>
1eO(i._formValues,n,eO(i._defaultValues,n,o)),[i,n,o]),c=function(e){let t=eD(),{control:n=t,name:r,defaultValue:i,disabled:l,exact:o,compute:a}=e||{},s=f.useRef(i),u=f.useRef(a),c=f.useRef(void 0),d=f.useRef(n),p=f.useRef(r);u.current=a;let[h,g]=f.useState(()=>{let e=n._getWatch(r,s.current);return u.current?u.current(e):e}),m=f.useCallback(e=>{let t=eB(r,n._names,e||n._formValues,!1,s.current);return u.current?u.current(t):t},[n._formValues,n._names,r]),v=f.useCallback(e=>{if(!l){let t=eB(r,n._names,e||n._formValues,!1,s.current);if(u.current){let e=u.current(t);eU(e,c.current)||(g(e),c.current=e)}else g(t)}},[n._formValues,n._names,l,r]);eH(()=>(d.current===n&&eU(p.current,r)||(d.current=n,p.current=r,v()),n._subscribe({name:r,formState:{values:!0},exact:o,callback:e=>{v(e.values)}})),[n,o,r,v]),f.useEffect(()=>n._removeUnmounted());let y=d.current!==n,b=p.current,x=f.useMemo(()=>{if(l)return null;let e=!y&&!eU(b,r);return y||e?m():null},[l,y,r,b,m]);return null!==x?x:h}({control:i,name:n,defaultValue:u,exact:a}),d=function(e){let t=eD(),{control:n=t,disabled:r,name:i,exact:l}=e||{},[o,a]=f.useState(()=>({...n._formState,defaultValues:n._defaultValues})),s=f.useRef({isDirty:!1,isLoading:!1,dirtyFields:!1,touchedFields:!1,validatingFields:!1,isValidating:!1,isValid:!1,errors:!1});return eH(()=>n._subscribe({name:i,formState:s.current,exact:l,callback:e=>{r||a({...n._formState,...e,defaultValues:n._defaultValues})}}),[i,r,l]),f.useEffect(()=>{s.current.isValid&&n._setValid(!0)},[n]),f.useMemo(()=>ej(o,n,s.current,!1),[o,n])}({control:i,name:n,exact:a}),p=f.useRef(e),h=f.useRef(null),g=f.useRef(i.register(n,{...e.rules,value:c,..."boolean"==typeof e.disabled?{disabled:e.disabled}:{}}));p.current=e;let m=f.useMemo(()=>Object.defineProperties({},{invalid:{enumerable:!0,get:()=>!!eO(d.errors,n)},isDirty:{enumerable:!0,get:()=>!!eO(d.dirtyFields,n)},isTouched:{enumerable:!0,get:()=>!!eO(d.touchedFields,n)},isValidating:{enumerable:!0,get:()=>!!eO(d.validatingFields,n)},error:{enumerable:!0,get:()=>eO(d.errors,n)}}),[d,n]),v=f.useCallback(e=>{let t=eb(e);return eO(i._fields,n)||(g.current=i.register(n,{...p.current.rules,value:t})),g.current.onChange({target:{value:eb(e),name:n},type:e_.CHANGE})},[n,i]),y=f.useCallback(()=>g.current.onBlur({target:{value:eO(i._formValues,n),name:n},type:e_.BLUR}),[n,i._formValues]),b=f.useCallback(e=>{e&&(h.current={focus:()=>eL(e.focus)&&e.focus(),select:()=>eL(e.select)&&e.select(),setCustomValidity:t=>eL(e.setCustomValidity)&&e.setCustomValidity(t),reportValidity:()=>eL(e.reportValidity)&&e.reportValidity()});let t=eO(i._fields,n);t&&t._f&&e&&(t._f.ref=h.current)},[i._fields,n]),x=f.useMemo(()=>({name:n,value:c,..."boolean"==typeof r||d.disabled?{disabled:d.disabled||r}:{},onChange:v,onBlur:y,ref:b}),[n,r,d.disabled,v,y,b,c]);return f.useEffect(()=>{let e=i._options.shouldUnregister||l;g.current=i.register(n,{...p.current.rules,..."boolean"==typeof p.current.disabled?{disabled:p.current.disabled}:{}});let t=(e,t)=>{let n=eO(i._fields,e);n&&n._f&&(n._f.mount=t)};if(t(n,!0),e){let e=eE(eO(l?i._defaultValues:i._options.values||i._defaultValues,n,eO(i._options.defaultValues,n,p.current.defaultValue)));eF(i._defaultValues,n,e),eM(eO(i._formValues,n))&&eF(i._formValues,n,e)}if(s||i.register(n),h.current){let e=eO(i._fields,n);e&&e._f&&(e._f.ref=h.current)}return()=>{(s?e&&!i._state.action:e)?i.unregister(n):t(n,!1)}},[n,i,s,l]),f.useEffect(()=>{i._setDisabledField({disabled:r,name:n})},[r,n,i]),f.useMemo(()=>({field:x,formState:d,fieldState:m}),[x,d,m])}(e));var eK=e=>({isOnSubmit:!e||e===eS.onSubmit,isOnBlur:e===eS.onBlur,isOnChange:e===eS.onChange,isOnAll:e===eS.all,isOnTouch:e===eS.onTouched}),ez=(e,t,n)=>{if(n)return!1;if(t.watchAll||t.watch.has(e))return!0;for(let n of t.watch)if(e.startsWith(n)&&"."===e.charAt(n.length))return!0;return!1};let eq=(e,t,n,r)=>{for(let i of n||Object.keys(e)){if("_f"===i)continue;let l=n?eO(e,i):e[i];if(l){let{_f:e}=l;if(e){if(e.refs&&e.refs[0]&&t(e.refs[0],i)&&!r)return!0;else if(e.ref&&t(e.ref,e.name)&&!r)return!0;else if(eq(l,t))break}else if((ey(l)||Array.isArray(l))&&eq(l,t))break}}};var eG=(e,t,n)=>{let r=eO(e,n),i=Array.isArray(r)?r:[];return eF(i,eT,t[n]),eF(e,n,i),e},eY=e=>ey(e)&&!Object.keys(e).length,eX=e=>{if(!ew)return!1;let t=e?e.ownerDocument:0;return e instanceof(t&&t.defaultView?t.defaultView.HTMLElement:HTMLElement)},eQ=(e,t,n,r,i)=>t?{...n[e],types:{...n[e]&&n[e].types?n[e].types:{},[r]:i||!0}}:{};let e0={value:!1,isValid:!1},e1={value:!0,isValid:!0};var e5=e=>{if(Array.isArray(e)){if(e.length>1){let t=e.filter(e=>e&&e.checked&&!e.disabled).map(e=>e.value);return{value:t,isValid:!!t.length}}return e[0].checked&&!e[0].disabled?e[0].attributes&&!eM(e[0].attributes.value)?eM(e[0].value)||""===e[0].value?e1:{value:e[0].value,isValid:!0}:e1:e0}return e0};let e2={isValid:!1,value:null};var e9=e=>Array.isArray(e)?e.reduce((e,t)=>
1t&&t.checked&&!t.disabled?{isValid:!0,value:t.value}:e,e2):e2;function e3(e,t,n="validate"){if(eJ(e)||Array.isArray(e)&&e.every(eJ)||"boolean"==typeof e&&!e)return{type:n,message:eJ(e)?e:"",ref:t}}var e7=e=>!ey(e)||e instanceof RegExp?{value:e,message:""}:e,e8=async(e,t,n,r,i,l)=>{let{ref:o,refs:a,required:s,maxLength:u,minLength:c,min:d,max:f,pattern:p,validate:h,name:g,valueAsNumber:m,mount:v}=e._f,y=eO(n,g);if(!v||t.has(g))return{};let b=a?a[0]:o,x=e=>{if(i&&b.reportValidity){let t="boolean"==typeof e?"":e||"";a?a.forEach(e=>e.setCustomValidity(t)):b.setCustomValidity(t),b.reportValidity()}},C={},w="radio"===o.type,E="checkbox"===o.type,_=(m||"file"===o.type)&&eM(o.value)&&eM(y)||eX(o)&&""===o.value||""===y||Array.isArray(y)&&!y.length,S=eQ.bind(null,g,r,C),k=(e,t,n,r=ek.maxLength,i=ek.minLength)=>{let l=e?t:n;C[g]={type:e?r:i,message:l,ref:o,...S(e?r:i,l)}};if(l?!Array.isArray(y)||!y.length:s&&(!(w||E)&&(_||em(y))||"boolean"==typeof y&&!y||E&&!e5(a).isValid||w&&!e9(a).isValid)){let{value:e,message:t}=eJ(s)?{value:!!s,message:s}:e7(s);if(e&&(C[g]={type:ek.required,message:t,ref:b,...S(ek.required,t)},!r))return x(t),C}if(!_&&(!em(d)||!em(f))){let e,t,n=e7(f),i=e7(d);if(em(y)||isNaN(y)){let r=o.valueAsDate||new Date(y),l=e=>new Date(new Date().toDateString()+" "+e),a="time"==o.type,s="week"==o.type;eJ(n.value)&&y&&(e=a?l(y)>l(n.value):s?y>n.value:r>new Date(n.value)),eJ(i.value)&&y&&(t=a?l(y)<l(i.value):s?y<i.value:r<new Date(i.value))}else{let r=o.valueAsNumber||(y?+y:y);em(n.value)||(e=r>n.value),em(i.value)||(t=r<i.value)}if((e||t)&&(k(!!e,n.message,i.message,ek.max,ek.min),!r))return x(C[g].message),C}if((u||c)&&!_&&(eJ(y)||l&&Array.isArray(y))){let e=e7(u),t=e7(c),n=!em(e.value)&&y.length>+e.value,i=!em(t.value)&&y.length<+t.value;if((n||i)&&(k(n,e.message,t.message),!r))return x(C[g].message),C}if(p&&!_&&eJ(y)){let{value:e,message:t}=e7(p);if(e instanceof RegExp&&!y.match(e)&&(C[g]={type:ek.pattern,message:t,ref:o,...S(ek.pattern,t)},!r))return x(t),C}if(h){if(eL(h)){let e=e3(await h(y,n),b);if(e&&(C[g]={...e,...S(ek.validate,e.message)},!r))return x(e.message),C}else if(ey(h)){let e={};for(let t in h){if(!eY(e)&&!r)break;let i=e3(await h[t](y,n),b,t);i&&(e={...i,...S(t,i.message)},x(i.message),r&&(C[g]=e))}if(!eY(e)&&(C[g]={ref:b,...e},!r))return C}}return x(!0),C},e4=e=>Array.isArray(e)?e:[e],e6=e=>Array.isArray(e)?e.filter(Boolean):[];function te(e,t){if(eJ(t)&&Object.prototype.hasOwnProperty.call(e,t))return delete e[t],e;let n=Array.isArray(t)?t:eI(t)?[t]:eR(t);if(n.some(e=>eN.includes(String(e))))return e;let r=1===n.length?e:function(e,t){let n=t.length-1,r=0;for(;r<n;){if(em(e)){e=void 0;break}e=e[t[r]],r++}return e}(e,n),i=n.length-1,l=n[i];return r&&delete r[l],0!==i&&(ey(r)&&eY(r)||Array.isArray(r)&&function(e){for(let t in e)if(e.hasOwnProperty(t)&&!eM(e[t]))return!1;return!0}(r))&&te(e,n.slice(0,-1)),e}let tt=e=>{let t={};for(let n of Object.keys(e))if(ev(e[n])&&null!==e[n]&&!eg(e[n])){let r=tt(e[n]);for(let e of Object.keys(r))t[`${n}.${e}`]=r[e]}else t[n]=e[n];return t};f.createContext(null).displayName="HookFormContext";var tn=()=>{let e=[];return{get observers(){return e},next:t=>{for(let n of e)n.next&&n.next(t)},subscribe:t=>(e.push(t),{unsubscribe:()=>{e=e.filter(e=>e!==t)}}),unsubscribe:()=>{e=[]}}},tr=e=>eX(e)&&e.isConnected;function ti(e){return Array.isArray(e)||ey(e)}function tl(e){return Array.isArray(e)||ey(e)&&!(e=>{for(let t in e)if(eL(e[t]))return!0;return!1})(e)}function to(e){return!!(e&&"_f"in e)}function ta(e){return Array.isArray(e)?!e.some(e=>!eM(e)):!Object.keys(e).length}function ts(e,t){Array.isArray(e)?e[t]=void 0:delete e[t]}function tu(e,t={},n){for(let r in e){let i=e[r],l=n&&n[r];!tl(i)||Array.isArray(i)&&to(l)?eM(i)||(t[r]=!0):(t[r]=Array.isArray(i)?[]:{},tu(i,t[r],l),ta(t[r])&&ts(t,r))}return t}function tc(e,t,n,r){for(let i in n||(n=tu(t,{},r)),e){let l=e[i],o=r&&r[i];!tl(l)||Array.isArray(l)&&to(o)?eU(l,t[i])?ts(n,i):n[i]=!0:(eM(t)||e$(n[i])?n[i]=tu(l,Array.isArray(l)?[]:{},o):tc(l,em(t)?{}:t[i],n[i],o),ta(n[i])&&ts(n,i))}return n}var td=(e,{valueAsNumber:t,valueAsDate:n,setValueAs:r})=>eM(e)?e:t?""===e?NaN:e?+e:e:n&&eJ(e)?new Date(e):r?r(e):e;function tf(e){let t=e.ref;return"file"===t.type?t.files:"radio"===t.type?e9(e.refs).value:"select-multiple"===t.type?[...t.selectedOptions].map(({value:e})=>e):"checkbox"===t.type?e5(e.refs).value:td(t.value,e)}var tp=e=>eM(e)?e:e instanceof RegExp?e.source:ey(e)?e.value instanceof RegExp?e.value.source:e.value:e;let th="AsyncFunction";var tg=e=>{if(!e||!e.validate)return!1;if(eL(e.validate))return e.validate.constructor.name===th;if(ey(e.validate)){for(let t in e.validate)if(e.validate[t].constructor.name===th)return!0}return!1};function tm(e,t,n){let r=eO(e,n);if(r||eI(n))return{error:r,name:n};let i=n.split(".");for(;i.length;){let r=i.join("."),l=eO(t,r),o=eO(e,r);if(l&&!Array.isArray(l)&&n!==r)break;
1if(o&&o.type)return{name:r,error:o};if(o&&o.root&&o.root.type)return{name:`${r}.root`,error:o.root};i.pop()}return{name:n}}let tv={mode:eS.onSubmit,reValidateMode:eS.onChange,shouldFocusError:!0},ty="form",tb={submitCount:0,isDirty:!1,isReady:!1,isValidating:!1,isSubmitted:!1,isSubmitting:!1,isSubmitSuccessful:!1,isValid:!1,touchedFields:{},dirtyFields:{},validatingFields:{}};var tx=n(74898);let tC=e=>e.suggestions.length>0?f.createElement(tw,{...e}):f.createElement("input",{className:tx.Ay.textInput,size:40,autoFocus:!0,...e.register(e.inputName)}),tw=e=>{let{autofocus:t,suggestions:n,control:r,inputName:l,placeholder:o,initialInputValue:a,setValue:s}=e,[c,d]=f.useState(n.slice(0,20)),p=(0,i.X3)(u.yr),h=n.length>0,{isOpen:g,getToggleButtonProps:m,getMenuProps:v,getInputProps:y,highlightedIndex:b,getItemProps:x,selectedItem:C}=ef({initialInputValue:a,onInputValueChange(e){let{inputValue:t=""}=e;s(l,t),t=t.toLowerCase()||"";let r=[];for(let e of n)if(e.toLowerCase().includes(t)&&(r.push(e),r.length>=20))break;d(r)},items:c,itemToString:e=>null!=e?e:""}),w=g&&c.length>0;return f.createElement("div",{className:tx.Ay.downshiftAutocompleteContainer},f.createElement("div",{"data-visible-dropdown":w,className:tx.Ay.downshiftInputWrapper},f.createElement(eW,{name:l,control:r,render:e=>{let{field:n}=e,r=y();return f.createElement("input",{...r,name:n.name,placeholder:o,className:tx.Ay.downshiftInput,size:30,"data-editor-dialog":!0,autoFocus:t})}}),h&&f.createElement("button",{"aria-label":"toggle menu",type:"button",...m()},p("arrow_drop_down"))),f.createElement("div",{className:tx.Ay.downshiftAutocompleteContainer},f.createElement("ul",{...v(),"data-visible":w},c.map((e,t)=>f.createElement("li",{"data-selected":C===e,"data-highlighted":b===t,key:"".concat(e).concat(t),...x({item:e,index:t})},e)))))};var tE=n(85203);function t_(e){let{url:t,title:n,text:r,onSubmit:i,onCancel:l,linkAutocompleteSuggestions:o,showLinkTitleField:a,showAnchorTextField:s}=e,{register:c,handleSubmit:d,control:p,setValue:h,reset:g}=function(e={}){let t=f.useRef(void 0),n=f.useRef(void 0),r=f.useRef(e.formControl),[i,l]=f.useState(()=>({...eE(tb),isLoading:eL(e.defaultValues),errors:e.errors||{},disabled:e.disabled||!1,defaultValues:eL(e.defaultValues)?void 0:e.defaultValues}));if(!t.current||e.formControl&&r.current!==e.formControl)if(r.current=e.formControl,e.formControl)t.current={...e.formControl,formState:i},e.defaultValues&&!eL(e.defaultValues)&&e.formControl.reset(e.defaultValues,e.resetOptions);else{let{formControl:n,...r}=function(e={}){let t={...tv,...e},n={...eE(tb),isLoading:eL(t.defaultValues),errors:t.errors||{},disabled:t.disabled||!1},r={},i=(ey(t.defaultValues)||ey(t.values))&&eE(t.defaultValues||t.values)||{},l=t.shouldUnregister?{}:eE(i),o={action:!1,mount:!1,watch:!1,keepIsValid:!1},a={mount:new Set,disabled:new Set,unMount:new Set,array:new Set,watch:new Set,registerName:new Set},s={},u={},c=0,d=eK(t.mode),f=eK(t.reValidateMode),p={isDirty:!1,dirtyFields:!1,validatingFields:!1,touchedFields:!1,isValidating:!1,isValid:!1,errors:!1},h={...p},g={...h},m={array:tn(),state:tn()},v=0,y=t.criteriaMode===eS.all,b=(e,t)=>n=>{clearTimeout(u[e]),u[e]=setTimeout(t,n)},x=async e=>{if(!o.keepIsValid&&!t.disabled&&(h.isValid||g.isValid||e)){let e,i=++v;t.resolver?(e=eY((await k()).errors),i===v&&C()):e=await A({fields:r,onlyCheckValid:!0,eventType:e_.VALID}),i===v&&e!==n.isValid&&m.state.next({isValid:e})}},C=(e,r)=>{!t.disabled&&(h.isValidating||h.validatingFields||g.isValidating||g.validatingFields)&&((e||Array.from(a.mount)).forEach(e=>{e&&(r?eF(n.validatingFields,e,r):te(n.validatingFields,e))}),m.state.next({validatingFields:n.validatingFields,isValidating:!eY(n.validatingFields)}))},w=()=>{n.dirtyFields=tc(i,l,void 0,r)},E=(e,t)=>{eF(n.errors,e,t),n.errors={...n.errors},m.state.next({errors:n.errors})},_=(t,s,u,c)=>{let d=eO(r,t);if(d){if((e=>{let t=eI(e)?[e]:eR(e),n=l,r=i;for(let e=0;e<t.length-1;e++){let i=t[e];if(n=em(n)?n:n[i],r=em(r)?r:r[i],null===n&&null!==r)return!0}return!1})(t))return;let r=eM(eO(l,t)),f=eO(l,t,eM(u)?eO(i,t):u);eM(f)||c&&c.defaultChecked||s?eF(l,t,s?f:tf(d._f)):P(t,f),o.mount&&!o.action&&(x(),r&&n.isDirty&&(h.isDirty||g.isDirty)&&
1(I()||(n.isDirty=!1,m.state.next({...n}))),e.shouldUnregister&&r&&!eM(eO(l,t))&&ez(t,a)&&(o.watch=!0))}},S=(e,o,a,s,u)=>{let c=!1,d=!1,f={name:e};if(!t.disabled||!0===s){if(!a||s){let t=eU(eO(i,e),o);if((h.isDirty||g.isDirty)&&(d=n.isDirty,n.isDirty=f.isDirty=!t||I(),c=d!==f.isDirty),d=!!eO(n.dirtyFields,e),t!==n.isDirty){var p=n.dirtyFields,v=tc(i,l,void 0,r);for(let e in p)e in v||delete p[e];Object.assign(p,v)}else t?te(n.dirtyFields,e):eF(n.dirtyFields,e,!0);f.dirtyFields=n.dirtyFields,c=c||(h.dirtyFields||g.dirtyFields)&&!t!==d}if(a){let t=eO(n.touchedFields,e);t||(eF(n.touchedFields,e,a),f.touchedFields=n.touchedFields,c=c||(h.touchedFields||g.touchedFields)&&t!==a)}c&&u&&m.state.next(f)}return c?f:{}},k=async e=>(C(e,!0),await t.resolver(l,t.context,((e,t,n,r)=>{let i={};for(let n of e){let e=eO(t,n);e&&eF(i,n,e._f)}return{criteriaMode:n,names:[...e],fields:i,shouldUseNativeValidation:r}})(e||a.mount,r,t.criteriaMode,t.shouldUseNativeValidation))),T=async e=>{let{errors:t}=await k(e);if(C(e),e){for(let r of e){let e=eO(t,r);e?a.array.has(r)&&ey(e)&&!Object.keys(e).some(e=>!Number.isNaN(Number(e)))?eG(n.errors,{[r]:e},r):eF(n.errors,r,e):te(n.errors,r)}n.errors={...n.errors}}else n.errors=t;return t},N=async({name:t,eventType:r})=>{if(e.validate){let i=await e.validate({formValues:l,formState:n,name:t,eventType:r});if(ey(i))for(let e in i){let t=i[e];t&&J(`${ty}.${e}`,{message:eJ(t.message)?t.message:"",type:t.type||ek.validate})}else eJ(i)||!i?J(ty,{message:i||"",type:ek.validate}):H(ty);return i}return!0},A=async({fields:r,onlyCheckValid:i,name:o,eventType:s,context:u={valid:!0,runRootValidation:!1}})=>{if(e.validate&&(u.runRootValidation=!0,!await N({name:o,eventType:s}))&&(u.valid=!1,i))return u.valid;for(let o in r){let c=r[o];if(c){let{_f:r,...d}=c;if(r){let o=a.array.has(r.name),s=c._f&&tg(c._f),d=h.validatingFields||h.isValidating||g.validatingFields||g.isValidating;s&&d&&C([r.name],!0);let f=await e8(c,a.disabled,l,y,t.shouldUseNativeValidation&&!i,o);if(s&&d&&C([r.name]),f[r.name]&&(u.valid=!1,i)||(i||(eO(f,r.name)?o?eG(n.errors,f,r.name):eF(n.errors,r.name,f[r.name]):te(n.errors,r.name)),e.shouldUseNativeValidation&&f[r.name]))break}eY(d)||await A({context:u,onlyCheckValid:i,fields:d,name:o,eventType:s})}}return u.valid},I=(e,t)=>(e&&t&&eF(l,e,t),!eU(o.mount?l:i,i)),M=(e,t,n)=>eB(e,a,{...o.mount?l:eM(t)?i:eJ(e)?{[e]:t}:t},n,t),P=(e,t,n={},i=!1,o=!1)=>{let a=eO(r,e),s=t;if(a){let n=a._f;n&&(n.disabled||eF(l,e,td(t,n)),s=eX(n.ref)&&em(t)?"":t,"select-multiple"===n.ref.type?[...n.ref.options].forEach(e=>e.selected=s.includes(e.value)):n.refs?"checkbox"===n.ref.type?n.refs.forEach(e=>{e.defaultChecked&&e.disabled||(Array.isArray(s)?e.checked=!!s.find(t=>t===e.value):e.checked=s===e.value||!!s)}):n.refs.forEach(e=>e.checked=e.value===s):"file"===n.ref.type?n.ref.value="":(n.ref.value=s,n.ref.type||o||m.state.next({name:e,values:i?l:eE(l)})))}(n.shouldDirty||n.shouldTouch)&&S(e,s,n.shouldTouch,n.shouldDirty,!o),n.shouldValidate&&D(e,{delayError:n.delayError})},R=(e,t,n,i=!1,o=!1)=>{for(let s in a.array.has(e)&&m.array.next({name:e,values:i?l:eE(l)}),t){if(!t.hasOwnProperty(s))return;let l=t[s],u=e+"."+s,c=eO(r,u);(a.array.has(e)||ey(l)||c&&!c._f)&&!eg(l)?R(u,l,n,i,o):P(u,l,n,i,o)}},O=(e,t,i,s,u=!1)=>{let c=eO(r,e),d=a.array.has(e),f=s?t:eE(t),p=eU(eO(l,e),f);if(p||eF(l,e,f),d)m.array.next({name:e,values:s?l:eE(l)}),(h.isDirty||h.dirtyFields||g.isDirty||g.dirtyFields)&&i.shouldDirty&&(w(),u||m.state.next({name:e,dirtyFields:n.dirtyFields,isDirty:I(e,f)}));else{let t=Array.isArray(f)&&!f.length||eY(f);!c||c._f||em(f)||t?P(e,f,i,s,u):R(e,f,i,s,u)}if(!p&&!u){let t=ez(e,a),r=s?l:eE(l);m.state.next({...t&&n,name:o.mount||t?e:void 0,values:r})}},L=(e,t,n={})=>O(e,t,n,!1),F=async i=>{o.mount=!0;let p=i.target,v=p.name,w=!0,_=eO(r,v),T=e=>{w=Number.isNaN(e)||eg(e)&&isNaN(e.getTime())||eU(e,eO(l,v,e))};if(_){let o,j,H,J=p.type?tf(_._f):eb(i),B=i.type===e_.BLUR||i.type===e_.FOCUS_OUT,$=!((H=_._f).mount&&(H.required||H.min||H.max||H.maxLength||H.minLength||H.pattern||H.validate))&&!e.validate&&!t.resolver&&!eO(n.errors,v)&&!_._f.deps,Z=$||(I=B,M=eO(n.touchedFields,v),P=n.isSubmitted,R=f,!(O=d).isOnAll&&(!P&&O.isOnTouch?!(M||I):(P?R.isOnBlur:O.isOnBlur)?!I:(P?!R.isOnChange:!O.isOnChange)||I)),U=ez(v,a,B);if(eF(l,v,J),B){if(!p||!p.readOnly){_._f.onBlur&&_._f.onBlur(i);let e=s[v];e&&e(0)}}else _._f.onChange&&_._f.onChange(i);let W=S(v,J,B),K=!eY(W)||U;if(B||m.state.next({name:v,type:i.type,...c?{values:eE(l)}:{}}),Z)return(!$||!n.isValid)&&(h.isValid||g.isValid)&&("onBlur"===t.mode?B&&x():B||x()),K&&m.state.next({name:v,...U?{}:W});if(!t.resolver&&e.validate&&await N({name:v,eventType:i.type}),!B&&U&&m.state.next({...n}),t.resolver){let{errors:e}=await k([v]);if(C([v]),T(J),!w){eY(W)||m.state.next(W);return}let t=tm(n.errors,r,v),i=tm(e,r,t.name||v);o=i.error,v=i.name,j=eY(e)}else C([v],!0),o=(await e8(_,a.disabled,l,y,t.shouldUseNativeValidation))[v],C([v]),T(J),w&&(o?j=!1:(h.isValid||g.isValid)&&(j=await A({fields:r,onlyCheckValid:!0,name:v,eventType:i.type})));if(w){_._f.deps&&(!Array.isArray(_._f.deps)||_._f.deps.length>0)&&D(_._f.deps);var I,M,P,R,O,L=v,F=j,V=o;let e=eO(n.errors,L),r=(h.isValid||g.isValid)&&"boolean"==typeof F&&n.isValid!==F;if(t.delayError&&V?(s[L]=b(L,()=>E(L,V)),s[L](t.delayError)):(clearTimeout(u[L]),delete s[L],V?eF(n.errors,L,V):te(n.errors,L),n.errors={...n.errors}),(V?!eU(e,V):e)||!eY(W)||r){let e={...W,...r&&"boolean"==typeof F?{isValid:F}:{},errors:n.errors,name:L};n={...n,...e},m.state.next(e)}}}},V=(e,t)=>{if(eO(n.errors,t)&&e.focus)return e.focus(),1},D=async(e,i={})=>{let l,o,c=e4(e);if(t.resolver){let t=await T(eM(e)?e:c);l=eY(t),o=e?!c.some(e=>eO(t,e)):l}else e?((o=(await Promise.all(c.map(async e=>{let t=eO(r,e);return await A({fields:t&&t._f?{[e]:t}:t,eventType:e_.TRIGGER})}))).every(Boolean))||n.isValid)&&x():o=l=await A({fields:r,name:e,eventType:e_.TRIGGER});if(i.delayError&&t.delayError&&eJ(e)){let r=eO(n.errors,e);r?(te(n.errors,e),s[e]=b(e,()=>E(e,r)),s[e](t.delayError)):(clearTimeout(u[e]),delete s[e])}return m.state.next({...!eJ(e)||(h.isValid||g.isValid)&&l!==n.isValid?{}:{name:e},...t.resolver||!e?{isValid:l}:{},errors:n.errors}),i.shouldFocus&&!o&&eq(r,V,e?c:a.mount),o},j=(e,t)=>({invalid:!!eO((t||n).errors,e),isDirty:!!eO((t||n).dirtyFields,e),error:eO((t||n).errors,e),isValidating:!!eO(n.validatingFields,e),isTouched:!!eO((t||n).touchedFields,e)}),H=e=>{let t=e?e4(e):void 0;
1null==t||t.forEach(e=>te(n.errors,e)),t?t.forEach(e=>{m.state.next({name:e,errors:n.errors})}):(n.errors={},m.state.next({errors:n.errors}))},J=(e,t,i)=>{let l=(eO(r,e,{_f:{}})._f||{}).ref,{ref:o,message:a,type:s,...u}=eO(n.errors,e)||{};eF(n.errors,e,{...u,...t,ref:l}),m.state.next({name:e,errors:n.errors,isValid:!1}),i&&i.shouldFocus&&l&&l.focus&&l.focus()},B=e=>{var t;let r=!!(null==(t=e.formState)?void 0:t.values);r&&c++;let{unsubscribe:o}=m.state.subscribe({next:t=>{let r,o,a;if(r=e.name,o=t.name,a=e.exact,(!r||!o||r===o||e4(r).some(e=>e&&(a?e===o||e.startsWith(o+"."):e.startsWith(o)||o.startsWith(e))))&&((e,t,n,r)=>{n(e);let i=Object.keys(e).filter(e=>"name"!==e);return!i.length||r&&i.length>=Object.keys(t).length||i.find(e=>t[e]===(!r||eS.all))})(t,e.formState||h,G,e.reRenderRoot)){let r={...l};e.callback({values:r,...n,...t,defaultValues:i})}}});if(!r)return o;let a=!1;return()=>{a||(a=!0,c--,o())}},$=(e,o={})=>{for(let s of e?e4(e):a.mount)a.mount.delete(s),a.array.delete(s),o.keepValue||(te(r,s),te(l,s)),o.keepError||te(n.errors,s),o.keepDirty||te(n.dirtyFields,s),o.keepTouched||te(n.touchedFields,s),o.keepIsValidating||te(n.validatingFields,s),t.shouldUnregister||o.keepDefaultValue||te(i,s);m.state.next({values:eE(l)}),m.state.next({...n,...!o.keepDirty?{}:{isDirty:I()}}),o.keepIsValid||x()},Z=({disabled:e,name:t})=>{if("boolean"==typeof e&&o.mount||e||a.disabled.has(t)){let n=a.disabled.has(t);e?a.disabled.add(t):a.disabled.delete(t),!!e!==n&&o.mount&&!o.action&&x()}},U=(e,n={})=>{let l=eO(r,e),s="boolean"==typeof n.disabled||"boolean"==typeof t.disabled,u=!a.registerName.has(e)&&l&&l._f&&!l._f.mount;return(eF(r,e,{...l||{},_f:{...l&&l._f?l._f:{ref:{name:e}},name:e,mount:!0,...n}}),a.mount.add(e),l&&!u)?Z({disabled:"boolean"==typeof n.disabled?n.disabled:t.disabled,name:e}):_(e,!0,n.value),{...s?{disabled:n.disabled||t.disabled}:{},...t.progressive?{required:!!n.required,min:tp(n.min),max:tp(n.max),minLength:tp(n.minLength),maxLength:tp(n.maxLength),pattern:tp(n.pattern)}:{},name:e,onChange:F,onBlur:F,ref:s=>{if(s){let t;a.registerName.add(e),U(e,n),a.registerName.delete(e),l=eO(r,e);let o=eM(s.value)&&s.querySelectorAll&&s.querySelectorAll("input,select,textarea")[0]||s,u="radio"===(t=o).type||"checkbox"===t.type,c=l._f.refs||[];if(u?c.find(e=>e===o):o===l._f.ref)return;let d={...l._f};u?(d.refs=[...c.filter(tr),o,...Array.isArray(eO(i,e))?[{}]:[]],d.ref={type:o.type,name:e}):(d.ref=o,delete d.refs),eF(r,e,{_f:d}),_(e,!1,void 0,o)}else(l=eO(r,e,{}))._f&&(l._f.mount=!1),(t.shouldUnregister||n.shouldUnregister)&&!(ex(a.array,e)&&o.action)&&a.unMount.add(e)}}},W=()=>t.shouldFocusError&&!t.shouldUseNativeValidation&&eq(r,V,a.mount),K=(e,i)=>async o=>{let s,u;o&&(o.preventDefault&&o.preventDefault(),o.persist&&o.persist());let c=eE(l);if(m.state.next({isSubmitting:!0}),t.resolver){let{errors:e,values:t}=await k();C(),n.errors=e,c=eE(t)}else await A({fields:r,eventType:e_.SUBMIT});if(a.disabled.size)for(let e of a.disabled)te(c,e);if(te(n.errors,eT),eY(n.errors)){m.state.next({errors:{}});try{s=await e(c,o)}catch(e){u=e}}else i&&await i({...n.errors},o),W(),setTimeout(W);if(m.state.next({isSubmitted:!0,isSubmitting:!1,isSubmitSuccessful:eY(n.errors)&&!u,submitCount:n.submitCount+1,errors:n.errors}),u)throw u;return s},z=(e,s={})=>{let u=e?eE(e):i,c=eE(u),d=eY(e),f=r;if(s.keepDefaultValues||(i=u),!s.keepValues){if(s.keepDirtyValues)for(let e of Array.from(new Set([...a.mount,...function e(t,n,r="",i=[]){for(let l in t){let o=r?`${r}.${l}`:l,a=t[l];ti(a)&&ti(eO(n,o))?e(a,n,o,i):i.push(o)}return i}(tc(i,l,void 0,f),n.dirtyFields)]))){let t=eO(n.dirtyFields,e),r=eO(l,e),i=eO(c,e);t&&!eM(r)?eF(c,e,r):t||eM(i)||L(e,i)}else{if(ew&&eM(e))for(let e of a.mount){let t=eO(r,e);if(t&&t._f){let e=Array.isArray(t._f.refs)?t._f.refs[0]:t._f.ref;if(eX(e)){let t=e.closest("form");if(t){t.reset();break}}}}if(s.keepFieldsRef)for(let e of a.mount)L(e,eO(c,e));else r={}}if(t.shouldUnregister){if(l=s.keepDefaultValues?eE(i):{},s.keepFieldsRef)for(let e of a.mount)eF(l,e,eO(c,e))}else l=eE(c);m.array.next({values:{...c}}),m.state.next({name:void 0,type:void 0,values:{...c}})}a={mount:s.keepDirtyValues?a.mount:new Set,unMount:new Set,array:new Set,registerName:new Set,disabled:new Set,watch:new Set,watchAll:!1,focus:""},o.mount=!h.isValid||!!s.keepIsValid||!!s.keepDirtyValues||!t.shouldUnregister&&!eY(c),o.watch=!!t.shouldUnregister,o.keepIsValid=!!s.keepIsValid,o.action=!1,s.keepErrors||(n.errors={}),m.state.next({submitCount:s.keepSubmitCount?n.submitCount:0,isDirty:!d&&(s.keepDirty?n.isDirty:s.keepValues?I():!!(s.keepDefaultValues&&!eU(e,i))),isSubmitted:!!s.keepIsSubmitted&&n.isSubmitted,dirtyFields:d?{}:s.keepDirtyValues?s.keepDefaultValues&&l?tc(i,l,void 0,f):n.dirtyFields:s.keepDefaultValues&&e?tc(i,e,void 0,f):s.keepDirty?n.dirtyFields:{},touchedFields:s.keepTouched?n.touchedFields:{},errors:s.keepErrors?n.errors:{},isSubmitSuccessful:!!s.keepIsSubmitSuccessful&&n.isSubmitSuccessful,isSubmitting:!1,defaultValues:i})},q=(e,n)=>z(eL(e)?e(l):e,{...t.resetOptions,...n}),G=e=>{let{name:t,type:r,values:i,...l}=e;n={...n,...l}},Y={control:{register:U,unregister:$,getFieldState:j,handleSubmit:K,setError:J,_subscribe:B,_runSchema:k,_updateIsValidating:C,_focusError:W,_getWatch:M,_getDirty:I,_setValid:x,_setFieldArray:(e,i=[],a,s,u=!0,c=!0)=>
1{if(s&&a&&!t.disabled){if(o.action=!0,c&&Array.isArray(eO(r,e))){let t=a(eO(r,e),s.argA,s.argB);u&&eF(r,e,t)}if(c&&Array.isArray(eO(n.errors,e))){let t,r=a(eO(n.errors,e),s.argA,s.argB);u&&eF(n.errors,e,r),e6(eO(t=n.errors,e)).length||te(t,e)}if((h.touchedFields||g.touchedFields)&&c&&Array.isArray(eO(n.touchedFields,e))){let t=a(eO(n.touchedFields,e),s.argA,s.argB);u&&eF(n.touchedFields,e,t)}(h.dirtyFields||g.dirtyFields)&&w(),m.state.next({name:e,isDirty:I(e,i),dirtyFields:n.dirtyFields,errors:n.errors,isValid:n.isValid})}else eF(l,e,i)},_setDisabledField:Z,_setErrors:e=>{n.errors=e,m.state.next({errors:n.errors,isValid:!1})},_getFieldArray:e=>e6(eO(o.mount?l:i,e,t.shouldUnregister?eO(i,e,[]):[])),_reset:z,_resetDefaultValues:()=>eL(t.defaultValues)&&t.defaultValues().then(e=>{q(e,t.resetOptions),m.state.next({isLoading:!1})}),_removeUnmounted:()=>{for(let e of a.unMount){let t=eO(r,e);t&&(t._f.refs?t._f.refs.every(e=>!tr(e)):!tr(t._f.ref))&&$(e)}a.unMount=new Set},_disableForm:e=>{"boolean"==typeof e&&(m.state.next({disabled:e}),eq(r,(t,n)=>{let i=eO(r,n);i&&(t.disabled=i._f.disabled||e,Array.isArray(i._f.refs)&&i._f.refs.forEach(t=>{t.disabled=i._f.disabled||e}))},0,!1))},_subjects:m,_proxyFormState:h,get _fields(){return r},get _formValues(){return l},get _state(){return o},set _state(value){o=value},get _defaultValues(){return i},get _names(){return a},set _names(value){a=value},get _formState(){return n},get _options(){return t},set _options(value){d=eK((t={...t,...value}).mode),f=eK(t.reValidateMode)}},subscribe:e=>(o.mount=!0,g={...g,...e.formState},B({...e,formState:{...p,...e.formState}})),trigger:D,register:U,handleSubmit:K,watch:(e,t)=>{if(eL(e)){c++;let{unsubscribe:n}=m.state.subscribe({next:n=>"values"in n&&e(n.values||M(void 0,t),n)}),r=!1;return{unsubscribe:()=>{r||(r=!0,c--,n())}}}return M(e,t,!0)},setValue:L,setValues:(e,t={})=>{let r=eL(e)?e(l):e;if(!eU(l,r)){l={...l,...r};let e=tt(r);for(let n of a.mount)n in e&&O(n,e[n],t,!0,!0);m.state.next({...n,name:void 0,type:void 0,...c?{values:l}:{}}),t.shouldValidate&&x()}},getValues:(e,t)=>{let r={...o.mount?l:i};return t&&(r=function e(t,n){let r={};for(let i in t)if(t.hasOwnProperty(i)){let l=t[i],o=n[i];if(l&&ey(l)&&o){let t=e(l,o);ey(t)&&(r[i]=t)}else t[i]&&(r[i]=o)}return r}(t.dirtyFields?n.dirtyFields:n.touchedFields,r)),eM(e)?r:eJ(e)?eO(r,e):e.map(e=>eO(r,e))},reset:q,resetField:(e,t={})=>{eO(r,e)&&(eM(t.defaultValue)?L(e,eE(eO(i,e))):(L(e,t.defaultValue),eF(i,e,eE(t.defaultValue))),t.keepTouched||te(n.touchedFields,e),t.keepDirty||(te(n.dirtyFields,e),n.isDirty=t.defaultValue?I(e,eE(eO(i,e))):I()),!t.keepError&&(te(n.errors,e),h.isValid&&x()),m.state.next({...n}))},resetDefaultValues:(e,t={})=>{if(i=eE(e),!t.keepDirty){let e=tc(i,l,void 0,r);n.dirtyFields=e,n.isDirty=!eY(e)}t.keepIsValid||x(),m.state.next({...n,defaultValues:i})},clearErrors:H,unregister:$,setError:J,setFocus:(e,t={})=>{let n=eO(r,e),i=n&&n._f;if(i){let e=i.refs?i.refs[0]:i.ref;e.focus&&setTimeout(()=>{e.focus(),t.shouldSelect&&eL(e.select)&&e.select()})}},getFieldState:j};return{...Y,formControl:Y}}(e);t.current={...r,formState:i}}let o=t.current.control;return o._options=e,eH(()=>{let e=o._subscribe({formState:o._proxyFormState,callback:()=>l({...o._formState,defaultValues:o._defaultValues}),reRenderRoot:!0});return l(e=>({...e,isReady:!0})),o._formState.isReady=!0,e},[o]),f.useEffect(()=>o._disableForm(e.disabled),[o,e.disabled]),f.useEffect(()=>{e.mode&&(o._options.mode=e.mode),e.reValidateMode&&(o._options.reValidateMode=e.reValidateMode)},[o,e.mode,e.reValidateMode]),f.useEffect(()=>{e.errors&&(o._setErrors(e.errors),o._focusError())},[o,e.errors]),f.useEffect(()=>{e.shouldUnregister&&o._subjects.state.next({values:o._getWatch()})},[o,e.shouldUnregister]),f.useEffect(()=>{if(o._proxyFormState.isDirty){let e=o._getDirty();e!==i.isDirty&&o._subjects.state.next({isDirty:e})}},[o,i.isDirty]),f.useEffect(()=>{var t;e.values&&!eU(e.values,n.current)?(o._reset(e.values,{keepFieldsRef:!0,...o._options.resetOptions}),(null==(t=o._options.resetOptions)?void 0:t.keepIsValid)||o._setValid(),n.current=e.values,l(e=>({...e}))):o._resetDefaultValues()},[o,e.values]),f.useEffect(()=>{o._state.mount||(o._setValid(),o._state.mount=!0),o._state.watch&&(o._state.watch=!1,o._subjects.state.next({...o._formState})),o._removeUnmounted()}),t.current.formState=f.useMemo(()=>ej(i,o),[o,i]),t.current}({values:{url:t,title:n,text:r}}),m=(0,u.Bd)();return f.createElement("form",{onSubmit:e=>{d(i)(e),e.stopPropagation(),e.preventDefault()},onReset:e=>{e.stopPropagation(),l()},onKeyDown:e=>{"Escape"===e.key&&(e.stopPropagation(),l())},className:tE(tx.Ay.multiFieldForm,tx.Ay.linkDialogEditForm)},f.createElement("div",{className:tx.Ay.formField}
1,f.createElement("label",{htmlFor:"link-url"},m("createLink.url","URL")),f.createElement(tC,{register:c,initialInputValue:t,inputName:"url",suggestions:o,setValue:h,control:p,placeholder:m("createLink.urlPlaceholder","Select or paste an URL"),autofocus:!0})),s?f.createElement("div",{className:tx.Ay.formField},f.createElement("label",{htmlFor:"link-text",title:m("createLink.textTooltip","The text to be displayed for the link")},m("createLink.text","Anchor text")),f.createElement("input",{id:"link-text",className:tx.Ay.textInput,size:40,...c("text")})):null,a?f.createElement("div",{className:tx.Ay.formField},f.createElement("label",{htmlFor:"link-title",title:m("createLink.titleTooltip","The link's title attribute, shown on hover")},m("createLink.title","Link title")),f.createElement("input",{id:"link-title",className:tx.Ay.textInput,size:40,...c("title")})):null,f.createElement("div",{style:{display:"flex",justifyContent:"flex-end",gap:"var(--spacing-2)"}},f.createElement("button",{type:"submit",title:m("createLink.saveTooltip","Set URL"),"aria-label":m("createLink.saveTooltip","Set URL"),className:tE(tx.Ay.primaryButton)},m("dialogControls.save","Save")),f.createElement("button",{type:"reset",title:m("createLink.cancelTooltip","Cancel change"),"aria-label":m("createLink.cancelTooltip","Cancel change"),className:tE(tx.Ay.secondaryButton)},m("dialogControls.cancel","Cancel"))))}(0,l.guI)();let tS=()=>{var e;let[t,n,r,l,o,a,s,p]=(0,i.uX)(u.xZ,u.N2,u.Cp,u.yr,tM,tV,tD,tJ),h=(0,i.qM)(tI),g=(0,i.qM)(tP),m=(0,i.qM)(tR),v=(0,i.qM)(tO),y=(0,i.qM)(tL);f.useEffect(()=>{let e=null==n?void 0:n.closest(".mdxeditor-root-contenteditable"),t=()=>{null==r||r.getEditorState().read(()=>{h(!0)})};return window.addEventListener("resize",t),window.addEventListener("scroll",t),null==e||e.addEventListener("scroll",t),()=>{window.removeEventListener("resize",t),window.removeEventListener("scroll",t),null==e||e.removeEventListener("scroll",t)}},[r,n,h]);let[b,x]=f.useState(!1),C=(0,u.Bd)();if("inactive"===o.type)return null;let w=o.rectangle,E="preview"===o.type&&o.url.startsWith("http");return f.createElement(c.bL,{open:!0},f.createElement(c.Mz,{"data-visible":"edit"===o.type,className:tx.Ay.linkDialogAnchor,style:{to
1p:"".concat(w.top,"px"),left:"".concat(w.left,"px"),width:"".concat(w.width,"px"),height:"".concat(w.height,"px")}}),f.createElement(c.ZL,{container:null==t?void 0:t.current},f.createElement(c.UC,{className:tE(tx.Ay.linkDialogPopoverContent),sideOffset:5,updatePositionStrategy:"always",onOpenAutoFocus:e=>{e.preventDefault()},key:o.linkNodeKey},"edit"===o.type&&f.createElement(t_,{url:o.url,title:o.title,text:o.text,onSubmit:g,onCancel:m.bind(null),linkAutocompleteSuggestions:a,showLinkTitleField:p,showAnchorTextField:o.withAnchorText}),"preview"===o.type&&f.createElement(f.Fragment,null,f.createElement("a",{className:tx.Ay.linkDialogPreviewAnchor,"data-testid":"link-dialog-preview",href:null!=(e=o.href)?e:"about:blank",...E?{target:"_blank",rel:"noreferrer"}:{},onClick:e=>{null!==s&&(e.preventDefault(),s(o.url))},title:E?C("linkPreview.open","Open {{url}} in new window",{url:o.url}):o.url},f.createElement("span",null,o.url),E&&l("open_in_new")),f.createElement(tk,{onClick:()=>{v()},title:C("linkPreview.edit","Edit link URL"),"aria-label":C("linkPreview.edit","Edit link URL")},l("edit")),f.createElement(d.Kq,null,f.createElement(d.bL,{open:b},f.createElement(d.l9,{asChild:!0},f.createElement(tk,{title:C("linkPreview.copyToClipboard","Copy to clipboard"),"aria-label":C("linkPreview.copyToClipboard","Copy to clipboard"),onClick:()=>{window.navigator.clipboard.writeText(o.url).then(()=>{x(!0),setTimeout(()=>{x(!1)},1e3)})}},l(b?"check":"content_copy"))),f.createElement(d.ZL,{container:null==t?void 0:t.current},f.createElement(d.UC,{className:tE(tx.Ay.tooltipContent),sideOffset:5},C("linkPreview.copied","Copied!"),f.createElement(d.i3,null))))),f.createElement(tk,{title:C("linkPreview.remove","Remove link"),"aria-label":C("linkPreview.remove","Remove link"),onClick:()=>{y()}},l("link_off"))),f.createElement(c.i3,{className:tx.Ay.popoverArrow}))))},tk=f.forwardRef((e,t)=>{let{className:n,...r}=e;return f.createElement("button",{className:tE(tx.Ay.actionButton,n),ref:t,...r})});function tT(e){if(!e)return null;let t=(0,s.OL)(e);if(null===t)return null;let n=t.getParent();return(0,r.FJ)(n)?n:(0,r.FJ)(t)?t:null}function tN(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:(0,l.vJq)();if(!(0,l.RTZ)(e))return null;let t=e.getNodes(),n=1===t.length?t[0]:null;return(0,l.Cyw)(n)&&n.isInline()?n:null}function tA(e,t,n){return e?e.getEditorState().read(()=>{var e;let i=""===t?null:(0,l.nsf)(t),o=(0,l.vJq)(),a=(0,l.I2P)(o)?tT(o):null,s=(0,r.FJ)(i)?i:a;return null!=(e=null==s?void 0:s.sanitizeUrl(n))?e:"about:blank"}):"about:blank"}let tI=(0,i.HN)(),tM=(0,i.fh)({type:"inactive"},e=>{e.pub(u.Z4,t=>t.registerCommand(l.Q$N,()=>"preview"===e.getValue(tM).type&&(e.pub(tM,{type:"inactive"}),!0),l.AcJ)),e.sub(e.pipe(u.n$),t=>{"rich-text"!==t&&e.pub(tM,{type:"inactive"})}),e.pub(u.Z4,t=>t.registerCommand(l.R18,t=>{if("k"===t.key&&(a.sY?t.metaKey:t.ctrlKey)&&!e.getValue(u.pc)){let n=(0,l.vJq)();if((0,l.I2P)(n)||null!==tN(n))return e.pub(tF),t.stopPropagation(),t.preventDefault(),!0}return!1},l.WgU)),e.sub(e.pipe(tO,(0,i.EY)(tM,u.Cp)),t=>{let[,n,i]=t;if("preview"===n.type)setTimeout(()=>{null==i||i.getEditorState().read(()=>{let t=(0,l.nsf)(n.linkNodeKey),i=!!(0,r.FJ)(t)&&t.getTextContent().length>0&&1>=t.getChildrenSize(),o=i&&t?t.getTextContent():"";e.pub(tM,{type:"edit",initialUrl:n.url,url:n.url,title:n.title,text:o,withAnchorText:i,linkNodeKey:n.linkNodeKey,decoratorNodeKey:n.decoratorNodeKey,rectangle:n.rectangle})})});else throw Error("Cannot switch to edit mode when not in preview mode")}),e.sub(e.pipe(tP,(0,i.EY)(u.Cp,tM,u.cj)),t=>{var n,i,o,a,s,u,c;let[d,f,p,h]=t,g=null!=(a=null==(n=d.text)?void 0:n.trim())?a:"",m=null!=(s=null==(i=d.url)?void 0:i.trim())?s:"",v=null!=(u=null==(o=d.title)?void 0:o.trim())?u:"";if(""!==m){if(void 0!==p.decoratorNodeKey){let t="";if(null==f||f.update(()=>{let e=(0,l.nsf)(p.decoratorNodeKey);if(null===e)return;let n=(0,l.rUs)();if(n.add(e.getKey()),(0,l.n1P)(n),!f.dispatchCommand(r.yW,m))return;let i=e.getParent();(0,r.FJ)(i)&&(i.setTitle(v),t=i.getKey())},{discrete:!0}),""===t)return;e.pub(tM,{type:"preview",linkNodeKey:t,decoratorNodeKey:p.decoratorNodeKey,rectangle:p.rectangle,title:v,url:m,href:tA(f,t,m)});return}if(null==h?void 0:h.isCollapsed()){let e=g||v||m;null==f||f.update(()=>{let t=tT(h);if(t)if((0,r.iK)(t)){let e=(0,r.zA)(m,{title:v});e.append((0,l.sTu)(g)),t.replace(e),e.select()}else t.setURL(m),t.setTitle(v),tH(t.getFirstChild(),g);else{let t=(0,r.zA)(m,{title:v});t.append((0,l.sTu)(e)),(0,l.H2A)([t]),t.select()}},{discrete:!0})}else null==f||f.update(()=>{tH(null==h?void 0:h.anchor.getNode(),g)}),null==f||f.dispatchCommand(r.yW,{url:m,title:v});e.pub(tM,{type:"preview",linkNodeKey:p.linkNodeKey,rectangle:p.rectangle,title:v,url:m,href:tA(f,null!=(c=p.linkNodeKey)?c:"",m)})}else"edit"===p.type&&""!==p.initialUrl&&(void 0!==p.decoratorNodeKey?null==f||f.update(()=>{let e=(0,l.nsf)(p.decoratorNodeKey);if(null===e)return;let t=(0,l.rUs)();
1t.add(e.getKey()),(0,l.n1P)(t),f.dispatchCommand(r.yW,null)}):null==f||f.dispatchCommand(r.yW,null)),e.pub(tM,{type:"inactive"})}),e.link(e.pipe(tR,(0,i.EY)(tM,u.Cp),(0,i.Tj)(e=>{let[,t,n]=e;if("edit"===t.type)return(null==n||n.focus(),""===t.initialUrl)?{type:"inactive"}:{type:"preview",url:t.initialUrl,href:tA(n,t.linkNodeKey,t.initialUrl),linkNodeKey:t.linkNodeKey,decoratorNodeKey:t.decoratorNodeKey,rectangle:t.rectangle};throw Error("Cannot cancel edit when not in edit mode")})),tM),e.link(e.pipe(e.combine(u.cj,tI),(0,i.EY)(u.Cp,tM,u.pc),(0,i.Tj)(e=>{let[[t],n,r,i]=e;if(void 0!==r.decoratorNodeKey&&n&&!i){if(n.getEditorState().read(()=>{let e=(0,l.vJq)();if(!(0,l.RTZ)(e))return null;let t=e.getNodes();return 1===t.length?t[0].getKey():null})!==r.decoratorNodeKey)return{type:"inactive"};let e=(0,s.UT)(n,r.decoratorNodeKey);return null===e?{type:"inactive"}:{...r,rectangle:e}}if(!(0,l.I2P)(t)||!n||i)return{type:"inactive"};{let e=tT(t);if(!t.isCollapsed()||!e)return{type:"inactive"};{let t=(0,s.eo)(n);return t?{type:"preview",url:e.getURL(),href:e.sanitizeUrl(e.getURL()),linkNodeKey:e.getKey(),title:e.getTitle(),rectangle:t}:{type:"inactive"}}}})),tM)}),tP=(0,i.HN)(),tR=(0,i.rc)();(0,i.rc)();let tO=(0,i.rc)(),tL=(0,i.rc)(e=>{e.sub(e.pipe(tL,(0,i.EY)(u.Cp)),e=>{let[,t]=e;
1null==t||t.dispatchCommand(r.yW,null)})}),tF=(0,i.rc)(e=>{e.sub(e.pipe(tF,(0,i.EY)(u.cj,u.Cp)),t=>{let[,n,i]=t;if(!i)return;let o=i.getEditorState().read(()=>{var e,t,n;let i=tN();if(null===i)return null;let l=i.getParent(),o=(0,r.FJ)(l)?l:null;return{nodeKey:i.getKey(),url:null!=(e=null==o?void 0:o.getURL())?e:"",title:null!=(t=null==o?void 0:o.getTitle())?t:"",linkNodeKey:null!=(n=null==o?void 0:o.getKey())?n:""}});if(null!==o){let t=(0,s.UT)(i,o.nodeKey);if(null===t)return;e.pub(tM,{type:"edit",initialUrl:o.url,url:o.url,title:o.title,text:"",withAnchorText:!1,linkNodeKey:o.linkNodeKey,decoratorNodeKey:o.nodeKey,rectangle:t});return}(0,l.I2P)(n)&&i.focus(()=>{setTimeout(()=>{i.getEditorState().read(()=>{var t,r,l,o;let a=tT(n),u=(0,s.eo)(i);if(null===u)return;let c=null!=(t=null==a?void 0:a.getURL())?t:"",d=null!=(r=null==a?void 0:a.getURL())?r:"",f=null!=(l=null==a?void 0:a.getTitle())?l:"",p=null!=(o=null==a?void 0:a.getKey())?o:"",h=a?a.getTextContent().length>0&&1>=a.getChildrenSize():n.isCollapsed(),g=h&&a?a.getTextContent():"";e.pub(tM,{type:"edit",initialUrl:c,url:d,title:f,text:g,withAnchorText:h,linkNodeKey:p,rectangle:u})})})})})}),tV=(0,i.fh)([]),tD=(0,i.fh)(null),tj=(0,i.fh)(null,e=>{e.pub(u.Z4,t=>{function n(n){let[i,o]=e.getValues([u.pc,tj]);i&&null!==o&&t.update(()=>{let e=(0,l.xL4)(n.target);if(null!==e){let t=(0,l.BtT)(e,e=>e instanceof r.Db);
1null!==t&&o(n,t,t.getURL())}})}return t.registerRootListener((e,t)=>{e&&e.addEventListener("click",n),t&&t.removeEventListener("click",n)})})});function tH(e,t){(0,l.kFe)(e)&&t&&(e.setTextContent(t),e.selectStart())}let tJ=(0,i.fh)(!0),tB=(0,o.Z)({init(e,t){var n,r,i,l;e.pub(u.aC,null!=(n=null==t?void 0:t.LinkDialog)?n:tS),e.pub(tD,null!=(r=null==t?void 0:t.onClickLinkCallback)?r:null),e.pub(tj,null!=(i=null==t?void 0:t.onReadOnlyClickLinkCallback)?i:null),e.pub(tJ,null==(l=null==t?void 0:t.showLinkTitleField)||l)},update(e){var t;let n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};e.pub(tV,null!=(t=n.linkAutocompleteSuggestions)?t:[])}})},77059:(e,t,n)=>{"use strict";n.d(t,{DE:()=>N,GO:()=>M,HY:()=>A,Js:()=>K,Mz:()=>E,YW:()=>y,cz:()=>W,g2:()=>s,i:()=>w,mJ:()=>I,q7:()=>$,uS:()=>U,v5:()=>_,x:()=>Z});var r=n(319),i=n(80632),l=n(57259),o=n(17498);function a(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(E(n)){let e=n.getParent();if(A(e)){t++,n=e.getParent();continue}a(40)}break}return t}function u(e){let t=e.getParent();A(t)||a(40);let n=t,r=t;for(;null!==r;)A(r=r.getParent())&&(n=r);return n}function c(e){return E(e)&&A(e.getFirstChild())}function d(e,t){return E(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(),l=r.getNode(),o=l.getParent();if((0,i.IqF)(l)){let e=l.getFirstChild();if(e)n=e.selectStart().getNodes();else{let e=(0,i.lJ7)();l.append(e),n=e.select().getNodes()}}else if(d(l,n)){let t=N(e);if((0,i.IqF)(o)){l.replace(t);let e=w();(0,i.ff4)(l)&&(e.setFormat(l.getFormatType()),e.setIndent(l.getIndent())),t.append(e)}else if(E(l)){let e=l.getParentOrThrow();p(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()&&!E(l)&&!r.has(l.getKey())){h(l,e);continue}let o=(0,i.jG6)(l)?l.getParent():E(l)&&l.isEmpty()?l:null;for(;null!=o;){let t=o.getKey();if(A(o)){if(!r.has(t)){let n=N(e);p(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 p(e,t){e.splice(e.getChildrenSize(),0,t)}function h(e,t){let n;if(A(e))return e;let r=e.getPreviousSibling(),l=e.getNextSibling(),o=w();
1if(p(o,e.getChildren()),A(r)&&t===r.getListType())r.append(o),A(l)&&t===l.getListType()&&(p(r,l.getChildren()),l.remove()),n=r;else if(A(l)&&t===l.getListType())l.getFirstChildOrThrow().insertBefore(o),n=l;else{let r=N(t);r.append(o),e.replace(r),n=r}o.setFormat(e.getFormatType()),o.setIndent(e.getIndent());let a=(0,i.vJq)();return(0,i.I2P)(a)&&(n.getKey()===a.anchor.key&&a.anchor.set(o.getKey(),a.anchor.offset,"element"),n.getKey()===a.focus.key&&a.focus.set(o.getKey(),a.focus.offset,"element")),e.remove(),n}function g(e,t){let n=e.getLastChild(),r=t.getFirstChild();n&&r&&c(n)&&c(r)&&(g(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())E(r)&&(r.getValue()!==n&&r.setValue(n),t&&null!=r.getLatest().__checked&&r.setChecked(void 0),A(r.getFirstChild())||n++)}function v(e){if(c(e))return;let t=e.getParent(),n=t?t.getParent():void 0;if(A(n?n.getParent():void 0)&&E(n)&&A(t)){let r=t?t.getFirstChild():void 0,l=t?t.getLastChild():void 0;if(e.is(r))n.insertBefore(e),t.isEmpty()&&n.remove();else if(e.is(l))n.insertAfter(e),t.isEmpty()&&n.remove();else{let r=(0,i.CHU)(e),l=(0,i.CHU)(t);
1r.append(l),e.getPreviousSiblings().forEach(e=>l.append(e));let o=(0,i.CHU)(e),a=(0,i.CHU)(t);o.append(a),p(a,e.getNextSiblings()),n.insertBefore(r),n.insertAfter(o),n.replace(e)}}}class y extends i.fGB{__value;__checked;$config(){return this.config("listitem",{$transform:e=>{let t=e.getParent();if(A(t))"check"!==t.getListType()&&null!=e.getChecked()&&e.setChecked(void 0);else if(t){let n=e.createParentElementNode();A(n)||a(340);let r=[e];for(let t of["previous","next"])for(let{origin:n}of(r.reverse(),(0,i.IlV)(e,t))){if(!E(n))break;r.push(n)}e.insertBefore(n),n.splice(0,0,r),(0,i.IqF)(t)||((0,i.rdQ)(n,(0,i.NG9)((0,i.IlV)(n,"next")),{$shouldSplit:()=>!1,removeEmptyDestination:!0}),t.isEmpty()&&t.isAttached()&&t.remove())}},extends:i.fGB,importDOM:(0,i.kBm)({li:()=>({conversion:b,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=(0,i.A$M)().createElement("li");return this.updateListItemDOM(null,t,e),t}updateListItemDOM(e,t,n){!function(e,t){let n=t.getParent();!A(n)||"check"!==n.getListType()||A(t.getFirstChild())?(e.removeAttribute("role"),e.removeAttribute("tabIndex"),e.removeAttribute("aria-checked")):(e.setAttribute("role","checkbox"),e.setAttribute("tabIndex","-1"),e.setAttribute("aria-checked",t.getChecked()?"true":"false"))}(t,this),t.value=this.__value,function(e,t,n){let r=t.list;if(!r)return;let l=r.listitem,o=r.nested&&r.nested.listitem,a=n.getParent(),s=A(a)&&"check"===a.getListType(),u=n.getChecked(),c=n.getChildren().some(e=>A(e)),d=[];void 0!==r.listitemChecked&&d.push(r.listitemChecked),void 0!==r.listitemUnchecked&&d.push(r.listitemUnchecked),void 0!==o&&d.push(...(0,i.GYG)(o)),d.length>0&&(0,i.HEf)(e,...d);let f=[];if(void 0!==l&&f.push(...(0,i.GYG)(l)),s){let e=u?r.listitemChecked:r.listitemUnchecked;void 0!==e&&f.push(e)}void 0!==o&&c&&f.push(...(0,i.GYG)(o)),f.length>0&&(0,i.ZB7)(e,...f)}(t,n.theme,this);let r=e?e.__style:"",l=this.__style;r!==l&&(0,i.brn)(t.style,l,r),function(e,t,n){let r=t.__textStyle,l=n?n.__textStyle:"";if(null!==n&&l===r)return;let o=(0,i.WhU)(r);for(let t in o)e.style.setProperty(`--listitem-marker-${t}`,o[t]);if(""!==l)for(let t in(0,i.WhU)(l))t in o||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),c(this)?{after(e){if((0,i.sby)(e)){let t=e.previousElementSibling;if((0,i.sby)(t)&&"LI"===t.nodeName){for(;e.firstChild;)t.append(e.firstChild);e.remove()}}return e},element:t}:{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(E(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=(0,i.CHU)(n),r=this.getNextSibling();for(;r;){let e=r;r=r.getNextSibling(),t.append(e)}n.insertAfter(e),e.insertAfter(t)}let r=this.__key,l=0;if(t&&((0,i.ff4)(e)||a(139),l=e.getChildrenSize(),e.splice(l,0,this.getChildren())),t&&(0,i.ff4)(e)){let t=(0,i.vJq)();if((0,i.I2P)(t))for(let n of t.getStartEndPoints())n.key===r&&"element"===n.type&&n.set(e.getKey(),l+n.offset,"element")}return this.remove(),0===n.getChildrenSize()&&n.remove(),e}insertAfter(e,t=!0){let n=this.getParentOrThrow();if(A(n)||a(39),E(e))return super.insertAfter(e,t);let r=this.getNextSiblings();if(n.insertAfter(e,t),0!==r.length){let l=(0,i.CHU)(n);r.forEach(e=>l.append(e)),e.insertAfter(l,t)}return e}remove(e){let t=this.getPreviousSibling(),n=this.getNextSibling();super.remove(e),t&&n&&c(t)&&c(n)&&(g(t.getFirstChild(),n.getFirstChild()),n.remove())}resetOnCopyNodeFrom(e){super.resetOnCopyNodeFrom(e),e.getChecked()&&this.setChecked(!1)}insertNewAfter(e,t=!0){let n=(0,i.CHU)(this);return this.insertAfter(n,t),n}collapseAtStart(e){if(c(this))return!1;let t=this.getParentOrThrow();if(E(t.getParentOrThrow()))return v(this),!0;let n=(0,i.lJ7)().append(...this.getChildren()),r=this.getNextSiblings();if(r.length>0){let e=(0,i.CHU)(t);e.append(...r),t.insertAfter(e)}return t.insertAfter(n),this.remove(),0===t.getChildrenSize()&&t.remove(),n.selectStart(),!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(;E(t);)t=t.getParentOrThrow().getParentOrThrow(),n++;return n}setIndent(e){"number"!=typeof e&&a(117),(e=Math.floor(e))>=0||a(199);let t=this.getIndent();for(;t!==e;)t<e?(function(e){let t=new Set;if(c(e)||t.has(e.getKey()))return;let n=e.getParent(),r=e.getNextSibling(),l=e.getPreviousSibling();if(c(r)&&c(l)){let n=l.getFirstChild();if(A(n)){n.append(e);let i=r.getFirstChild();A(i)&&(p(n,i.getChildren()),r.remove(),t.add(r.getKey()))}}else if(c(r)){let t=r.getFirstChild();if(A(t)){let n=t.getFirstChild();null!==n&&n.insertBefore(e)}}else if(c(l)){let t=l.getFirstChild();A(t)&&t.append(e)}else if(A(n)){let t=(0,i.CHU)(e),o=(0,i.CHU)(n);t.append(o),o.append(e),l?l.insertAfter(t):r?r.insertBefore(t):n.append(t)}}(this),t++):(v(this),t--);return this}canInsertAfter(e){return E(e)}canReplaceWith(e){return E(e)}canMergeWith(e){return E(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 N("bullet")}canMergeWhenEmpty(){return!0}}function b(e){if(e.classList.contains("task-list-item")){for(let t of e.children)if("INPUT"===t.tagName)return x(t)}if(e.classList.contains("joplin-checkbox")){for(let t of e.children)if(t.classList.contains("checkbox-wrapper")&&t.children.length>0&&"INPUT"===t.children[0].tagName)return x(t.children[0])}let t=e.getAttribute("aria-checked"),n=w("true"===t||"false"!==t&&void 0);return(0,i.Sz2)(n,e),{after:C.bind(null,n),node:(0,i.q3P)(n,e)}}function x(e){if("checkbox"!==e.getAttribute("type"))return{node:null};let t=w(e.hasAttribute("checked"));return{after:C.bind(null,t),node:t}}function C(e,t){let n=t[0];return 1===t.length&&(0,i.bSg)(n)&&!e.getFormatType()&&n.getFormatType()?(e.setFormat(n.getFormatType()),n.getChildren()):t}function w(e){return(0,i.pTq)(new y(void 0,e))}function E(e){return e instanceof y}class _ extends i.fGB{__tag;__start;__listType;$config(){return this.config("list",{$transform:e=>{!function(e){let t=e.getNextSibling();A(t)&&e.getListType()===t.getListType()&&g(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=T[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=(0,i.A$M)().createElement(n);return 1!==this.__start&&r.setAttribute("start",String(this.__start)),r.__lexicalListType=this.__listType,S(r,e.theme,this),r}updateDOM(e,t,n){return e.__tag!==this.__tag||e.__listType!==this.__listType||(S(t,n.theme,this),e.__start!==this.__start&&t.setAttribute("start",String(this.__start)),!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];E(t)||(r===n&&(r=[...n]),r[e]=this.createListItemNode().append(!(0,i.ff4)(t)||A(t)||t.isInline()?t:(0,i.sTu)(t.getTextContent())))}return super.splice(e,t,r)}extractWithChild(e){return E(e)}createListItemNode(){return w()}}function S(e,t,n){let r=[],l=[],o=t.list;if(void 0!==o){let e,t=o[`${n.__tag}Depth`]||[],a=s(n)-1,u=a%t.length,c=t[u],d=o[n.__tag],f=o.nested,p=o.checklist;if(void 0!==f&&f.list&&(e=f.list),void 0!==d&&r.push(d),void 0!==p&&"check"===n.__listType&&r.push(p),void 0!==c){r.push(...(0,i.GYG)(c));for(let e=0;e<t.length;e++)e!==u&&l.push(n.__tag+e)}if(void 0!==e){let t=(0,i.GYG)(e);a>1?r.push(...t):l.push(...t)}}l.length>0&&(0,i.HEf)(e,...l),r.length>0&&(0,i.ZB7)(e,...r)}function k(e){let t;return t=(0,i.sby)(e)&&"ol"===e.nodeName.toLowerCase()?N("number",e.start):!function(e){if("check"===e.getAttribute("__lexicallisttype")||e.classList.contains("contains-task-list")||"1"===e.getAttribute("data-is-checklist"))return!0;for(let t of e.childNodes)if((0,i.sby)(t)&&t.hasAttribute("aria-checked"))return!0;return!1}(e)?N("bullet"):N("check"),(0,i.q3P)(t,e),{after:e=>(function(e,t){let n=t.createListItemNode.bind(t),r=[];for(let t=0;t<e.length;t++){let i=e[t];if(E(i)){r.push(i);let e=i.getChildren();e.length>
11&&e.forEach(e=>{A(e)&&r.push(n().append(e))})}else r.push(n().append(i))}return r})(e,t),node:t}}let T={ol:"number",ul:"bullet"};function N(e="number",t=1){return(0,i.pTq)(new _(e,t))}function A(e){return e instanceof _}let I=(0,i.guI)("INSERT_CHECK_LIST_COMMAND");function M(e,t){let n=t&&t.disableTakeFocusOnClick||!1,r="boolean"==typeof n?()=>n:n.peek.bind(n),l=e=>{let t=e.target;if(!(0,i.sby)(t))return!1;let n=t.__lexicalCheckListLastHandled;return void 0!==n&&e.timeStamp-n<500},o=e=>{let t=e.target;(0,i.sby)(t)&&(t.__lexicalCheckListLastHandled=e.timeStamp)},a=e=>{l(e)||(o(e),R(e,r()))},s=e=>{"touch"===e.pointerType&&(l(e)||(o(e),R(e,r())))},u=e=>{var t;t=r(),P(e,()=>{e.preventDefault(),t&&e.stopPropagation()})};return(0,i.Sdt)(e.registerCommand(I,()=>(f("check"),!0),i.AcJ),e.registerCommand(i.bbF,t=>L(t,e,!1),i.AcJ),e.registerCommand(i.UDz,t=>L(t,e,!0),i.AcJ),e.registerCommand(i.Q$N,()=>{if(null!=O(e)){let t=e.getRootElement();return null!=t&&t.focus(),!0}return!1},i.AcJ),e.registerCommand(i.Huu,t=>{let n=O(e);return!(null==n||!e.isEditable())&&(e.update(()=>{let e=(0,i.xL4)(n);E(e)&&(t.preventDefault(),e.toggleChecked())}),!0)},i.AcJ),e.registerCommand(i.AX0,t=>e.read("latest",()=>{let n=(0,i.vJq)();if((0,i.I2P)(n)&&n.isCollapsed()){let{anchor:r}=n,l="element"===r.type;if(l||0===r.offset){let n=r.getNode(),o=(0,i.BtT)(n,e=>(0,i.ff4)(e)&&!e.isInline());if(E(o)){let r=o.getParent();if(A(r)&&"check"===r.getListType()&&(l||o.getFirstDescendant()===n)){let n=e.getElementByKey(o.__key);if(null!=n&&(0,i.bqM)(n)!==n)return n.focus(),t.preventDefault(),!0}}}}return!1}),i.AcJ),e.registerRootListener(e=>{if(null!==e)return(0,i.Sdt)((0,i.Nwr)(e,{click:a,pointerup:s}),(0,i.Nwr)(e,{mousedown:u,pointerdown:u},{capture:!0}),(0,i.K6z)(e,"touchstart",u,{capture:!0,passive:!1}))}))}function P(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 a=null,s=null;if("clientX"in e)a=e.clientX;else if("touches"in e){let t=e.touches;t.length>0&&(a=t[0].clientX,s="touch")}if(null==a)return;let u=n.getBoundingClientRect(),c=a/(0,r.OV)(n),d=n.ownerDocument.defaultView,f=parseFloat((d?d.getComputedStyle(n,"::before"):{width:"0px"}).width),p=32*("touch"===s||"pointerType"in e&&"touch"===e.pointerType);("rtl"===n.dir?c<u.right+p&&c>u.right-f-p:c>u.left-p&&c<u.left+f+p)&&t()}function R(e,t){P(e,()=>{if((0,i.sby)(e.target)){let n=e.target,r=(0,i.scG)(n);null!=r&&r.isEditable()&&r.update(()=>{let e=(0,i.xL4)(n);E(e)&&(t?((0,i.JAT)(i.XI_),(0,i.JAT)(i.$c$)):n.focus(),e.toggleChecked())})}})}function O(e){let t=e.getRootElement(),n=t?(0,i.bqM)(t):null;return(0,i.sby)(n)&&"LI"===n.tagName&&null!=n.parentNode&&"check"===n.parentNode.__lexicalListType?n:null}function L(e,t,n){let r=O(t);return null!=r&&t.update(()=>{let l=(0,i.xL4)(r);if(!E(l))return;let o=function(e,t){let n=t?e.getPreviousSibling():e.getNextSibling(),r=e;for(;null==n&&E(r);)null!=(r=r.getParentOrThrow().getParent())&&(n=t?r.getPreviousSibling():r.getNextSibling());for(;E(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 F=(0,o.Bu)({$import:(e,t)=>{let n;return n=(0,o.S$)(t,"ol")?N("number",t.start):t.matches('[__lexicallisttype="check"], .contains-task-list, [data-is-checklist="1"]')||null!==t.querySelector(":scope > [aria-checked]")?N("check"):N("bullet"),(0,i.q3P)(n,t),[n.splice(0,0,(0,o.FD)(function(e){let t=[];for(let n of e)if(E(n)){t.push(n);let e=n.getChildren();if(e.length>1)for(let n of e)A(n)&&t.push(w().append(n))}else t.push(w().append(n));return t}(e.$importChildren(t)),t))]},match:o.VR.tag("ol","ul"),name:"@lexical/list/list"});function V(e,t){if(1!==t.length)return t;let n=t[0];return(0,i.bSg)(n)&&!e.getFormatType()&&n.getFormatType()?(e.setFormat(n.getFormatType()),n.getChildren()):t}function D(e){let t=e=>(0,o.k4)(e)&&!A(e);if(!e.some(t))return e;let n=[],r=[],l=()=>{r.length>0&&(n.push(r),r=[])};for(let o of e)t(o)?(l(),n.push((0,i.ff4)(o)?o.getChildren():[o])):r.push(o);l();let a=[];for(let e of n)a.length>0&&a.push((0,i.WKo)()),a.push(...e);return a}let j=(0,o.Bu)({$import:(e,t)=>{let n=t.getAttribute("aria-checked"),r=w("true"===n||"false"!==n&&void 0);return(0,i.Sz2)(r,t),(0,i.q3P)(r,t),[r.splice(0,0,D(V(r,e.$importChildren(t))))]},match:o.VR.tag("li"),name:"@lexical/list/li"});function H(e,t,n){let r=(0,o.S$)(n,"input")?n:n.querySelector('input[type="checkbox"]');if(!r||"checkbox"!==r.getAttribute("type"))return[];let l=w(r.hasAttribute("checked"));return(0,i.Sz2)(l,t),(0,i.q3P)(l,t),[l.splice(0,0,D(V(l,e.$importChildren(t))))]}let J=[(0,o.Bu)({$import:(e,t,n)=>{let r=t.querySelector(':scope > input[type="checkbox"]');return r?H(e,t,r):n()},match:o.VR.tag("li").classAll("task-list-item"),name:"@lexical/list/li-task-list-item"}),(0,o.Bu)({$import:(e,t,n)=>{let r=t.querySelector(":scope > .checkbox-wrapper");if(!r)return n();let i=r.querySelector(':scope > input[type="checkbox"]');return i?H(e,t,i):n()},match:o.VR.tag("li").classAll("joplin-checkbox"),name:"@lexical/list/li-joplin-checkbox"}),F,j],B=(0,i.guI)("UPDATE_LIST_START_COMMAND"),$=(0,i.guI)("INSERT_UNORDERED_LIST_COMMAND"),Z=(0,i.guI)("INSERT_ORDERED_LIST_COMMAND"),U=(0,i.guI)("REMOVE_LIST_COMMAND");function W(e,t){return(0,i.Sdt)(e.registerCommand(Z,()=>(f("number"),!0),i.AcJ),e.registerCommand(B,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($,()=>
1(f("bullet"),!0),i.AcJ),e.registerCommand(U,()=>((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(u(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,y);null!=e&&t.add(u(e))}}for(let n of t){let t=n;for(let r of function e(t){let n=[],r=t.getChildren().filter(E);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);p(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(e=!1){let t,n=(0,i.vJq)();if(!(0,i.I2P)(n)||!n.isCollapsed())return!1;let r=n.anchor.getNode(),l=null;if(E(r)&&0===r.getChildrenSize())l=r;else if((0,i.kFe)(r)){let e=r.getParent();E(e)&&e.getChildren().every(e=>(0,i.kFe)(e)&&""===e.getTextContent().trim())&&(l=e)}if(null===l)return!1;let o=u(l),s=l.getParent();A(s)||a(40);let c=s.getParent();if((0,i.IqF)(c))t=(0,i.lJ7)(),o.insertAfter(t);else{if(!E(c))return!1;t=(0,i.CHU)(c),c.insertAfter(t)}t.setTextStyle(n.style).setTextFormat(n.format).select();let d=l.getNextSiblings();if(d.length>0){var f;let n=e?(f=l,s.getStart()+f.getIndexWithinParent()):1,r=(0,i.CHU)(s).setStart(n);if(E(t)){let e=(0,i.CHU)(t);e.append(r),t.insertAfter(e)}else t.insertAfter(r);r.append(...d)}return function(e){let t=e;for(;null==t.getNextSibling()&&null==t.getPreviousSibling();){let e=t.getParent();if(null==e||!E(e)&&!A(e))break;t=e}t.remove()}(l),!0})(!!(t&&t.restoreNumbering)),i.AcJ),e.registerCommand(i.gCZ,e=>{if(function(){let e=(0,i.vJq)();if(!(0,i.I2P)(e)||!e.isCollapsed()||0!==e.anchor.offset)return!1;let t=e.anchor.getNode(),n=(0,i.BtT)(t,E);if(!E(n))return!1;let r=n.getFirstDescendant();if(null===r||!n.is(t)&&!r.is(t))return!1;let l=n.getParent();if(!A(l)||!n.is(l.getFirstChild()))return!1;let o=l.getPreviousSibling();if(!(0,i.Cyw)(o)||o.isIsolated()||!o.isKeyboardSelectable()&&o.isInline())return!1;let a=(0,i.lJ7)().append(...n.getChildren());return l.insertBefore(a),n.remove(),l.isEmpty()&&l.remove(),a.selectStart(),!0}())return e.preventDefault(),!0;let t=(0,i.vJq)();if(!(0,i.I2P)(t)||!t.isCollapsed())return!1;let{anchor:n}=t;if(0!==n.offset)return!1;let r=n.getNode();for(;!E(r);){if(null!==r.getPreviousSibling())return!1;let e=r.getParent();if(null===e)return!1;r=e}return!(!E(r)||!r.collapseAtStart(t))&&(e.preventDefault(),!0)},i.H1t),e.registerNodeTransform(y,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(E(t)&&e.is(t.getFirstChild())){let n=e.getStyle(),r=e.getFormat();n===t.getTextStyle()&&r===t.getTextFormat()||t.setTextStyle(n).setTextFormat(r)}}))}function K(e){let t=e=>{let t=e.getParent();if(A(e.getFirstChild())||!A(t))return;let n=(0,i.BtT)(e,e=>E(e)&&A(e.getParent())&&E(e.getPreviousSibling()));if(null===n&&e.getIndent()>0)e.setIndent(0);else if(E(n)){let r=n.getPreviousSibling();if(E(r)){let n=(function(e){let t=e,n=t.getFirstChild();for(;A(n);){let e=n.getLastChild();if(!E(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(_,e=>{let n=[e];for(;n.length>0;){let e=n.shift();if(A(e)){for(let r of e.getChildren())if(E(r)){t(r);let e=r.getFirstChild();A(e)&&n.push(e)}}}})}o._e,o.Zj}
1,79299:(e,t,n)=>{"use strict";n.d(t,{Cb:()=>g,Nx:()=>u,Rk:()=>v,SD:()=>s,_n:()=>d,dt:()=>a,zI:()=>f,zT:()=>i});var r=n(80632);function i(e,t){let n=e.getRootElement();if(null===n)return[];let r=n.getBoundingClientRect(),i=getComputedStyle(n),l=parseFloat(i.paddingLeft)+parseFloat(i.paddingRight),o=Array.from(t.getClientRects()),a,s=o.length;o.sort((e,t)=>{let n=e.top-t.top;return 3>=Math.abs(n)?e.left-t.left:n});for(let e=0;e<s;e++){let t=o[e],n=a&&a.top<=t.top&&a.top+a.height>t.top&&a.left+a.width>t.left,i=t.width+l===r.width;n||i?(o.splice(e--,1),s--):a=t}return o}function l(e){let t=(0,r.i0_)().getElementByKey(e.getKey());if(null===t)return null;let n=t.ownerDocument.defaultView;return null===n?null:n.getComputedStyle(t)}function o(e){return l((0,r.hVZ)(e)?e:e.getParentOrThrow())}function a(e){let t=o(e);return null!==t&&"rtl"===t.direction}function s(e,t,n="self"){let i=e.getStartEndPoints();if(t.isSelected(e)&&!(0,r.Rb_)(t)&&null!==i){let[l,o]=i,a=e.isBackward(),s=l.getNode(),u=o.getNode(),c=t.is(s),d=t.is(u);if(c||d){let[i,l]=(0,r.Cku)(e),o=s.is(u),c=t.is(a?u:s),d=t.is(a?s:u),f,p=0;o?(p=i>l?l:i,f=i>l?i:l):c?(p=a?l:i,f=void 0):d&&(p=0,f=a?i:l);let h=t.__text.slice(p,f);h!==t.__text&&("clone"===n&&(t=(0,r.U5P)(t)),t.__text=h)}}return t}function u(e){if("text"===e.type)return e.offset===e.getNode().getTextContentSize();let t=e.getNode();return(0,r.ff4)(t)||function(e,...t){let n=new URL("https://lexical.dev/docs/error"),r=new URLSearchParams;for(let e of(r.append("code",177),t))r.append("v",e);throw n.search=r.toString(),Error(`Minified Lexical error #${177}; visit ${n.toString()} for the full message or use the non-minified dev environment for full errors and additional helpful warnings.`)}(177),e.offset===t.getChildrenSize()}function c(e,t){let n=e.getFormatType(),r=e.getIndent();n!==t.getFormatType()&&t.setFormat(n),r!==t.getIndent()&&t.setIndent(r)}function d(e,t,n){let i=(0,r.Ave)(e,n);if((0,r.pGK)(i))return!1;for(;i;i=i.getParentCaret()){let e=i.getParentAtCaret();if(!e||i.getNodeAtCaret())break;if(t.is(e))return!0}return!1}function f(e,t,n=c){if(!e)return;let i=e.getStartEndPoints(),l=!1,o=null,a=new Map;if(i){let[t,n]=i,s=(0,r.BtT)(t.getNode(),r.w3H);o=(0,r.BtT)(n.getNode(),r.w3H);let u=e.isBackward()?"previous":"next";l=(0,r.ff4)(o)&&!o.is(s)&&function(e,t,n){let i=e.getNode();return(!(0,r.ff4)(i)||!i.isEmpty())&&d(e,t,n)}(n,o,(0,r.hpJ)(u)),(0,r.ff4)(s)&&a.set(s.getKey(),s),(0,r.ff4)(o)&&!l&&a.set(o.getKey(),o)}for(let t of e.getNodes())if((0,r.ff4)(t)&&(0,r.w3H)(t)){if(l&&t.is(o))continue;a.set(t.getKey(),t)}else if(!i){let e=(0,r.BtT)(t,r.w3H);(0,r.ff4)(e)&&a.set(e.getKey(),e)}for(let e of a.values()){let r=t();n(e,r),e.replace(r,!0)}}function p(e){let t=h(e);return null!==t&&"vertical-rl"===t.writingMode}function h(e){let t=e.anchor.getNode();return(0,r.ff4)(t)?l(t):o(t)}function g(e,t){let n=p(e)?!t:t;m(e)&&(n=!n);let i=(0,r.Ave)(e.focus,n?"previous":"next");if((0,r.pGK)(i))return!1;if((0,r.rN)(i)&&!(0,r.MK6)(i.origin)&&i.origin.isUnmergeable()){let e=i.getNodeAtCaret();if((0,r.kFe)(e)&&!(0,r.MK6)(e))return!0}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 m(e){let t=h(e);return null!==t&&"rtl"===t.direction}function v(e,t,n){let r,i=m(e);r=p(e)||i?!n:n,e.modify(t?"extend":"move",r,"character")}},82763:(e,t,n)=>{"use strict";n.d(t,{Mz:()=>tP,i3:()=>tL,UC:()=>tO,hl:()=>t_,Wv:()=>ty,ZL:()=>tR,bL:()=>tM});var r,i=n(12115),l=n.t(i,2),o=Object.defineProperty,a=(e,t)=>o(e,"name",{value:t,configurable:!0}),s=!!("undefined"!=typeof window&&window.document&&window.document.createElement);function u(e,t,{checkForDefaultPrevented:n=!0}={}){return a(function(r){if(e?.(r),!1===n||!r||!r.defaultPrevented)return t?.(r)},"handleEvent")}function c(e){if(!s)throw Error("Cannot access document outside of the DOM");return e?.ownerDocument??document}function d(e){return"IFRAME"===e.tagName}a(u,"composeEventHandlers"),a(function(e){if(!s)throw Error("Cannot access window outside of the DOM");return e?.ownerDocument?.defaultView??window},"getOwnerWindow"),a(c,"getOwnerDocument"),a(function e(t,n=!1){let{activeElement:r}=c(t);if(!r?.nodeName)return null;if(d(r)&&r.contentDocument)return e(r.contentDocument.body,n);if(n){let e=r.getAttribute("aria-activedescendant");if(e){let t=c(r).getElementById(e);if(t)return t}}return r},"getActiveElement"),a(d,"isFrame");var f=Object.defineProperty,p=(e,t)=>f(e,"name",{value:t,configurable:!0});function h(e,t){if("function"==typeof e)return e(t);null!=e&&(e.current=t)}function g(...e){return t=>{let n=!1,r=e.map(e=>{let r=h(e,t);return n||"function"!=typeof r||(n=!0),r});if(n)return()=>{for(let t=0;t<r.length;t++){let n=r[t];"function"==typeof n?n():h(e[t],null)}}}}function m(...e){return i.useCallback(g(...e),e)}p(h,"setRef"),p(g,"composeRefs"),p(m,"useComposedRefs");var v=n(95155),y=Object.defineProperty,b=(e,t)=>y(e,"name",{value:t,configurable:!0});function x(e,t=[]){let n=[];function r(t,r){let l=i.createContext(r);l.displayName=t+"Context";let o=n.length;n=[...n,r];let a=b(t=>{let{scope:n,children:r,...a}=t,s=n?.[e]?.[o]||l,u=i.useMemo(()=>a,Object.values(a));return(0,v.jsx)(s.Provider,{value:u,children:r})},"Provider");function s(n,a,u={}){let{optional:c=!1}
1=u,d=a?.[e]?.[o]||l,f=i.useContext(d);if(f)return f;if(void 0!==r)return r;if(!c)throw Error(`\`${n}\` must be used within \`${t}\``)}return a.displayName=t+"Provider",b(s,"useContext"),[a,s]}b(r,"createContext");let l=b(()=>{let t=n.map(e=>i.createContext(e));return b(function(n){let r=n?.[e]||t;return i.useMemo(()=>({[`__scope${e}`]:{...n,[e]:r}}),[n,r])},"useScope")},"createScope");return l.scopeName=e,[r,C(l,...t)]}function C(...e){let t=e[0];if(1===e.length)return t;let n=b(()=>{let n=e.map(e=>({useScope:e(),scopeName:e.scopeName}));return b(function(e){let r=n.reduce((t,{useScope:n,scopeName:r})=>{let i=n(e)[`__scope${r}`];return{...t,...i}},{});return i.useMemo(()=>({[`__scope${t.scopeName}`]:r}),[r])},"useComposedScopes")},"createScope");return n.scopeName=t.scopeName,n}b(function(e,t){let n=i.createContext(t);n.displayName=e+"Context";let r=b(e=>{let{children:t,...r}=e,l=i.useMemo(()=>r,Object.values(r));return(0,v.jsx)(n.Provider,{value:l,children:t})},"Provider");function l(r,o={}){let{optional:a=!1}=o,s=i.useContext(n);if(s)return s;if(void 0!==t)return t;if(!a)throw Error(`\`${r}\` must be used within \`${e}\``)}return r.displayName=e+"Provider",b(l,"useContext"),[r,l]},"createContext"),b(x,"createContextScope"),b(C,"composeContextScopes");var w=n(47650),E=Object.defineProperty,_=(e,t)=>
1E(e,"name",{value:t,configurable:!0});function S(e){let t=i.forwardRef((t,n)=>{let{children:r,...l}=t,o=null,a=!1,s=[];P(r)&&"function"==typeof F&&(r=F(r._payload)),i.Children.forEach(r,e=>{if(I(e)){a=!0;let t="child"in e.props?e.props.child:e.props.children;P(t)&&"function"==typeof F&&(t=F(t._payload)),o=T(e,t),s.push(o?.props?.children)}else s.push(e)}),o?o=i.cloneElement(o,void 0,s):!a&&1===i.Children.count(r)&&i.isValidElement(r)&&(o=r);let u=o?A(o):void 0,c=m(n,u);if(!o){if(r||0===r)throw Error(a?L(e):O(e));return r}let d=N(l,o.props??{});return o.type!==i.Fragment&&(d.ref=n?c:u),i.cloneElement(o,d)});return t.displayName=`${e}.Slot`,t}_(S,"createSlot");var k=Symbol.for("radix.slottable");_(function(e){let t=_(e=>"child"in e?e.children(e.child):e.children,"Slottable");return t.displayName=`${e}.Slottable`,t.__radixId=k,t},"createSlottable");var T=_((e,t)=>{if("child"in e.props){let t=e.props.child;return i.isValidElement(t)?i.cloneElement(t,void 0,e.props.children(t.props.children)):null}return i.isValidElement(t)?t:null},"getSlottableElementFromSlottable");function N(e,t){let n={...t};for(let r in t){let i=e[r],l=t[r];/^on[A-Z]/.test(r)?i&&l?n[r]=(...e)=>{let t=l(...e);return i(...e),t}:i&&(n[r]=i):"style"===r?n[r]={...i,...l}:"className"===r&&(n[r]=[i,l].filter(Boolean).join(" "))}return{...e,...n}}function A(e){let t=Object.getOwnPropertyDescriptor(e.props,"ref")?.get,n=t&&"isReactWarning"in t&&t.isReactWarning;return n?e.ref:(n=(t=Object.getOwnPropertyDescriptor(e,"ref")?.get)&&"isReactWarning"in t&&t.isReactWarning)?e.props.ref:e.props.ref||e.ref}function I(e){return i.isValidElement(e)&&"function"==typeof e.type&&"__radixId"in e.type&&e.type.__radixId===k}_(N,"mergeProps"),_(A,"getElementRef"),_(I,"isSlottable");var M=Symbol.for("react.lazy");function P(e){return null!=e&&"object"==typeof e&&"$$typeof"in e&&e.$$typeof===M&&"_payload"in e&&R(e._payload)}function R(e){return"object"==typeof e&&null!==e&&"then"in e}_(P,"isLazyComponent"),_(R,"isPromiseLike");var O=_(e=>`${e} failed to slot onto its children. Expected a single React element child or \`Slottable\`.`,"createSlotError"),L=_(e=>`${e} failed to slot onto its \`Slottable\`. Expected \`Slottable\` to receive a single React element child.`,"createSlottableError"),F=l[" use ".trim().toString()],V=Object.defineProperty,D=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"].reduce((e,t)=>{let n=S(`Primitive.${t}`),r=i.forwardRef((e,r)=>{let{asChild:i,...l}=e;return"undefined"!=typeof window&&(window[Symbol.for("radix-ui")]=!0),(0,v.jsx)(i?n:t,{...l,ref:r})});return r.displayName=`Primitive.${t}`,{...e,[t]:r}},{});function j(e,t){e&&w.flushSync(()=>e.dispatchEvent(t))}function H(e){let t=i.useRef(e);return i.useEffect(()=>{t.current=e}),i.useMemo(()=>(...e)=>t.current?.(...e),[])}V(j,"name",{value:"dispatchDiscreteCustomEvent",configurable:!0}),(0,Object.defineProperty)(H,"name",{value:"useCallbackRef",configurable:!0});var J=Object.defineProperty,B=(e,t)=>J(e,"name",{value:t,configurable:!0}),$="dismissableLayer.update",Z=i.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set,dismissableSurfaces:new Set}),U=i.forwardRef(B(function(e,t){var n,l;let{disableOutsidePointerEvents:o=!1,deferPointerDownOutside:a=!1,onEscapeKeyDown:s,onPointerDownOutside:c,onFocusOutside:d,onInteractOutside:f,onDismiss:p,...h}=e,g=i.useContext(Z),[y,b]=i.useState(null),x=null!=(l=null==y?void 0:y.ownerDocument)?l:null==(n=globalThis)?void 0:n.document,[,C]=i.useState({}),w=m(t,b),E=Array.from(g.layers),[_]=[...g.layersWithOutsidePointerEventsDisabled].slice(-1),S=_?E.indexOf(_):-1,k=y?E.indexOf(y):-1,T=g.layersWithOutsidePointerEventsDisabled.size>0,N=k>=S,A=i.useRef(!1),I=K(e=>{null==c||c(e),null==f||f(e),e.defaultPrevented||null==p||p()},{ownerDocument:x,deferPointerDownOutside:a,isDeferredPointerDownOutsideRef:A,dismissableSurfaces:g.dismissableSurfaces,shouldHandlePointerDownOutside:i.useCallback(e=>{if(!(e instanceof Node))return!1;let t=[...g.branches].some(t=>t.contains(e));return N&&!t},[g.branches,N])}),M=z(e=>{if(a&&A.current)return;let t=e.target;![...g.branches].some(e=>e.contains(t))&&(null==d||d(e),null==f||f(e),e.defaultPrevented||null==p||p())}
1,x),P=!!y&&k===E.length-1,R=H(e=>{"Escape"===e.key&&(null==s||s(e),!e.defaultPrevented&&p&&(e.preventDefault(),p()))});return i.useEffect(()=>{if(P)return x.addEventListener("keydown",R,{capture:!0}),()=>x.removeEventListener("keydown",R,{capture:!0})},[x,P,R]),i.useEffect(()=>{if(y)return o&&(0===g.layersWithOutsidePointerEventsDisabled.size&&(r=x.body.style.pointerEvents,x.body.style.pointerEvents="none"),g.layersWithOutsidePointerEventsDisabled.add(y)),g.layers.add(y),q(),()=>{o&&(g.layersWithOutsidePointerEventsDisabled.delete(y),0===g.layersWithOutsidePointerEventsDisabled.size&&(x.body.style.pointerEvents=r))}},[y,x,o,g]),i.useEffect(()=>()=>{y&&(g.layers.delete(y),g.layersWithOutsidePointerEventsDisabled.delete(y),q())},[y,g]),i.useEffect(()=>{let e=B(()=>C({}),"handleUpdate");return document.addEventListener($,e),()=>document.removeEventListener($,e)},[]),(0,v.jsx)(D.div,{...h,ref:w,style:{pointerEvents:T?N?"auto":"none":void 0,...e.style},onFocusCapture:u(e.onFocusCapture,M.onFocusCapture),onBlurCapture:u(e.onBlurCapture,M.onBlurCapture),onPointerDownCapture:u(e.onPointerDownCapture,I.onPointerDownCapture)})},"DismissableLayer"));B(function(){let e=i.useContext(Z),[t,n]=i.useState(null);return i.useEffect(()=>{if(t)return e.dismissableSurfaces.add(t),()=>{e.dismissableSurfaces.delete(t)}},[t,e.dismissableSurfaces]),n},"useDismissableLayerSurface");var W=B(()=>!0,"IS_TRUE");function K(e,t){var n;let{ownerDocument:r=null==(n=globalThis)?void 0:n.document,deferPointerDownOutside:l=!1,isDeferredPointerDownOutsideRef:o,dismissableSurfaces:a,shouldHandlePointerDownOutside:s=W}=t,u=H(e),c=i.useRef(!1),d=i.useRef(!1),f=i.useRef(new Map),p=i.useRef(()=>{});return i.useEffect(()=>{function e(){d.current=!1,o.current=!1,f.current.clear()}function t(){return Array.from(f.current.values()).some(Boolean)}function n(e){if(!d.current)return;let t=e.target;t instanceof Node&&[...a].some(e=>e.contains(t))||f.current.set(e.type,!0),"click"===e.type&&window.setTimeout(()=>{d.current&&p.current()},0)}function i(e){d.current&&f.current.set(e.type,!1)}B(e,"resetOutsideInteraction"),B(t,"isOutsideInteractionIntercepted"),B(n,"handleInteractionCapture"),B(i,"handleInteractionBubble");let h=B(n=>{if(n.target&&!c.current){let i=function(){r.removeEventListener("click",p.current);let n=t();e(),n||G("dismissableLayer.pointerDownOutside",u,a,{discrete:!0})};if(B(i,"handleAndDispatchPointerDownOutsideEvent"),!s(n.target)){r.removeEventListener("click",p.current),e(),c.current=!1;return}let a={originalEvent:n};d.current=!0,o.current=l&&0===n.button,f.current.clear(),l&&0===n.button?(r.removeEventListener("click",p.current),p.current=i,r.addEventListener("click",p.current,{once:!0})):i()}else r.removeEventListener("click",p.current),e();c.current=!1},"handlePointerDown"),g=["pointerup","mousedown","mouseup","touchstart","touchend","click"];for(let e of g)r.addEventListener(e,n,!0),r.addEventListener(e,i);let m=window.setTimeout(()=>{r.addEventListener("pointerdown",h)},0);return()=>{for(let e of(window.clearTimeout(m),r.removeEventListener("pointerdown",h),r.removeEventListener("click",p.current),g))r.removeEventListener(e,n,!0),r.removeEventListener(e,i)}},[r,u,l,o,a,s]),{onPointerDownCapture:B(()=>c.current=!0,"onPointerDownCapture")}}function z(e){var t;let n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null==(t=globalThis)?void 0:t.document,r=H(e),l=i.useRef(!1);return i.useEffect(()=>
1{let e=B(e=>{e.target&&!l.current&&G("dismissableLayer.focusOutside",r,{originalEvent:e},{discrete:!1})},"handleFocus");return n.addEventListener("focusin",e),()=>n.removeEventListener("focusin",e)},[n,r]),{onFocusCapture:B(()=>l.current=!0,"onFocusCapture"),onBlurCapture:B(()=>l.current=!1,"onBlurCapture")}}function q(){let e=new CustomEvent($);document.dispatchEvent(e)}function G(e,t,n,r){let{discrete:i}=r,l=n.originalEvent.target,o=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:n});t&&l.addEventListener(e,t,{once:!0}),i?j(l,o):l.dispatchEvent(o)}B(K,"usePointerDownOutside"),B(z,"useFocusOutside"),B(q,"dispatchUpdate"),B(G,"handleAndDispatchCustomEvent");var Y=Object.defineProperty,X=(e,t)=>Y(e,"name",{value:t,configurable:!0}),Q=0,ee=null;function et(){i.useEffect(()=>{ee||(ee={start:en(),end:en()});let{start:e,end:t}=ee;return document.body.firstElementChild!==e&&document.body.insertAdjacentElement("afterbegin",e),document.body.lastElementChild!==t&&document.body.insertAdjacentElement("beforeend",t),Q++,()=>{1===Q&&(null==ee||ee.start.remove(),null==ee||ee.end.remove(),ee=null),Q=Math.max(0,Q-1)}},[])}function en(){let e=document.createElement("span");return e.setAttribute("data-radix-focus-guard",""),e.tabIndex=0,e.style.outline="none",e.style.opacity="0",e.style.position="fixed",e.style.pointerEvents="none",e}X(function(e){return et(),e.children},"FocusGuards"),X(et,"useFocusGuards"),X(en,"createFocusGuard");var er=Object.defineProperty,ei=(e,t)=>er(e,"name",{value:t,configurable:!0}),el="focusScope.autoFocusOnMount",eo="focusScope.autoFocusOnUnmount",ea={bubbles:!1,cancelable:!0},es=i.forwardRef(ei(function(e,t){let{loop:n=!1,trapped:r=!1,onMountAutoFocus:l,onUnmountAutoFocus:o,...a}=e,[s,u]=i.useState(null),c=H(l),d=H(o),f=i.useRef(null),p=m(t,u),h=i.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;i.useEffect(()=>{if(r){let e=function(e){if(h.paused||!s)return;let t=e.target;s.contains(t)?f.current=t:eg(f.current,{select:!0})},t=function(e){if(h.paused||!s)return;let t=e.relatedTarget;null!==t&&(s.contains(t)||eg(f.current,{select:!0}))},n=function(e){if(document.activeElement===document.body)for(let t of e)t.removedNodes.length>0&&eg(s)};ei(e,"handleFocusIn"),ei(t,"handleFocusOut"),ei(n,"handleMutations"),document.addEventListener("focusin",e),document.addEventListener("focusout",t);let r=new MutationObserver(n);return s&&r.observe(s,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",e),document.removeEventListener("focusout",t),r.disconnect()}}},[r,s,h.paused]),i.useEffect(()=>{if(s){em.add(h);let e=document.activeElement;if(!s.contains(e)){let t=new CustomEvent(el,ea);s.addEventListener(el,c),s.dispatchEvent(t),t.defaultPrevented||(eu(eb(ed(s)),{select:!0}),document.activeElement===e&&eg(s))}return()=>{s.removeEventListener(el,c),setTimeout(()=>{let t=new CustomEvent(eo,ea);s.addEventListener(eo,d),s.dispatchEvent(t),t.defaultPrevented||eg(null!=e?e:document.body,{select:!0}),s.removeEventListener(eo,d),em.remove(h)},0)}}},[s,c,d,h]);let g=i.useCallback(e=>{if(!n&&!r||h.paused)return;let t="Tab"===e.key&&!e.altKey&&!e.ctrlKey&&!e.metaKey,i=document.activeElement;if(t&&i){let t=e.currentTarget,[r,l]=ec(t);r&&l?e.shiftKey||i!==l?e.shiftKey&&i===r&&(e.preventDefault(),n&&eg(l,{select:!0})):(e.preventDefault(),n&&eg(r,{select:!0})):i===t&&e.preventDefault()}},[n,r,h.paused]);return(0,v.jsx)(D.div,{tabIndex:-1,...a,ref:p,onKeyDown:g})},"FocusScope"));function eu(e){let{select:t=!1}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=document.activeElement;for(let r of e)if(eg(r,{select:t}),document.activeElement!==n)return}function ec(e){let t=ed(e);return[ef(t,e),ef(t.reverse(),e)]}function ed(e){let t=[],n=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:ei(e=>{let t="INPUT"===e.tagName&&"hidden"===e.type;return e.disabled||e.hidden||t?NodeFilter.FILTER_SKIP:e.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP},"acceptNode")});for(;n.nextNode();)t.push(n.currentNode);return t}function ef(e,t){let n="function"==typeof t.checkVisibility&&t.checkVisibility({checkVisibilityCSS:!0});for(let r of e)if(!(n?!r.checkVisibility({checkVisibilityCSS:!0}):ep(r,{upTo:t})))return r}function ep(e,t){let{upTo:n}=t;if("hidden"===getComputedStyle(e).visibility)return!0;for(;e&&(void 0===n||e!==n);){if("none"===getComputedStyle(e).display)return!0;e=e.parentElement}return!1}function eh(e){return e instanceof HTMLInputElement&&"select"in e}function eg(e){let{select:t=!1}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(e&&e.focus){let n=document.activeElement;e.focus({preventScroll:!0}),e!==n&&eh(e)&&t&&e.select()}}ei(eu,"focusFirst"),ei(ec,"getTabbableEdges"),ei(ed,"getTabbableCandidates"),ei(ef,"findVisible"),ei(ep,"isHidden"),ei(eh,"isSelectableInput"),ei(eg,"focus");var em=ev();function ev(){let e=[];return{add(t){let n=e[0];t!==n&&(null==n||n.pause()),(e=ey(e,t)).unshift(t)},remove(t){var n;null==(n=(e=ey(e,t))[0])||n.resume()}}}function ey(e,t){let n=[...e],r=n.indexOf(t);return -1!==r&&n.splice(r,1),n}function eb(e){return e.filter(e=>"A"!==e.tagName)}ei(ev,"createFocusScopesStack"),ei(ey,"arrayRemove"),ei(eb,"removeLinks");var ex=globalThis?.document?i.useLayoutEffect:()=>{},eC=Object.defineProperty,ew=l[" useId ".trim().toString()]||(()=>void 0),eE=0;function e_(e){let[t,n]=i.useState(ew());return ex(()=>{e||n(e=>e??String(eE++))},[e]),e||(t?`radix-${t}`:"")}eC(e_,"name",{value:"useId",configurable:!0});var eS=n(88334),ek=n(58146),eT=Object.defineProperty,eN=i.forwardRef(eT(function(e,t){let{children:n,width:r=10,height:i=5,...l}=e;return(0,v.jsx)(D.svg,{...l,ref:t,width:r,height:i,viewBox:"0 0 30 10",preserveAspectRatio:"none",children:e.asChild?n:(0,v.jsx)("polygon",{points:"0,0 30,0 15,10"})})},"name",{value:"Arrow",configurable:!0}));function eA(e){let[t,n]=i.useState(void 0);return ex(()=>
1{if(e){n({width:e.offsetWidth,height:e.offsetHeight});let t=new ResizeObserver(t=>{let r,i;if(!Array.isArray(t)||!t.length)return;let l=t[0];if("borderBoxSize"in l){let e=l.borderBoxSize,t=Array.isArray(e)?e[0]:e;r=t.inlineSize,i=t.blockSize}else r=e.offsetWidth,i=e.offsetHeight;n({width:r,height:i})});return t.observe(e,{box:"border-box"}),()=>t.unobserve(e)}n(void 0)},[e]),t}(0,Object.defineProperty)(eA,"name",{value:"useSize",configurable:!0});var eI=Object.defineProperty,eM=(e,t)=>eI(e,"name",{value:t,configurable:!0}),eP="Popper",[eR,eO]=x(eP),[eL,eF]=eR(eP),eV=eM(e=>{let{__scopePopper:t,children:n}=e,[r,l]=i.useState(null),[o,a]=i.useState(void 0);return(0,v.jsx)(eL,{scope:t,anchor:r,onAnchorChange:l,placementState:o,setPlacementState:a,children:n})},"Popper"),eD=i.forwardRef(eM(function(e,t){let{__scopePopper:n,virtualRef:r,...l}=e,o=eF("PopperAnchor",n),a=i.useRef(null),s=o.onAnchorChange,u=m(t,i.useCallback(e=>{a.current=e,e&&s(e)},[s])),c=i.useRef(null);i.useEffect(()=>{if(!r)return;let e=c.current;c.current=r.current,e!==c.current&&s(c.current)});let d=o.placementState&&eK(o.placementState),f=null==d?void 0:d[0],p=null==d?void 0:d[1];return r?null:(0,v.jsx)(D.div,{"data-radix-popper-side":f,"data-radix-popper-align":p,...l,ref:u})},"PopperAnchor")),ej="PopperContent",[eH,eJ]=eR(ej),eB=i.forwardRef(eM(function(e,t){var n,r,l,o,a,s,u,c,d;let{__scopePopper:f,side:p="bottom",sideOffset:h=0,align:g="center",alignOffset:y=0,arrowPadding:b=0,avoidCollisions:x=!0,collisionBoundary:C=[],collisionPadding:w=0,sticky:E="partial",hideWhenDetached:_=!1,updatePositionStrategy:S="optimized",onPlaced:k,...T}=e,N=eF(ej,f),[A,I]=i.useState(null),M=m(t,I),[P,R]=i.useState(null),O=eA(P),L=null!=(c=null==O?void 0:O.width)?c:0,F=null!=(d=null==O?void 0:O.height)?d:0,V="number"==typeof w?w:{top:0,right:0,bottom:0,left:0,...w},j=Array.isArray(C)?C:[C],J=j.length>0,B={padding:V,boundary:j.filter(eU),altBoundary:J},{refs:$,floatingStyles:Z,placement:U,isPositioned:W,middlewareData:K}=(0,eS.we)({strategy:"fixed",placement:p+("center"!==g?"-"+g:""),whileElementsMounted:eM(function(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];return(0,ek.ll)(...t,{animationFrame:"always"===S})},"whileElementsMounted"),elements:{reference:N.anchor},middleware:[(0,eS.cY)({mainAxis:h+F,alignmentAxis:y}),x&&(0,eS.BN)({mainAxis:!0,crossAxis:!1,limiter:"partial"===E?(0,eS.ER)():void 0,...B}),x&&(0,eS.UU)({...B}),(0,eS.Ej)({...B,apply:eM(e=>{let{elements:t,rects:n,availableWidth:r,availableHeight:i}=e,{width:l,height:o}=n.reference,a=t.floating.style;a.setProperty("--radix-popper-available-width","".concat(r,"px")),a.setProperty("--radix-popper-available-height","".concat(i,"px")),a.setProperty("--radix-popper-anchor-width","".concat(l,"px")),a.setProperty("--radix-popper-anchor-height","".concat(o,"px"))},"apply")}),P&&(0,eS.UE)({element:P,padding:b}),eW({arrowWidth:L,arrowHeight:F}),_&&(0,eS.jD)({strategy:"referenceHidden",...B,boundary:J?B.boundary:void 0})]}),z=N.setPlacementState;ex(()=>(z(U),()=>{z(void 0)}),[U,z]);let[q,G]=eK(U),Y=H(k);ex(()=>{W&&(null==Y||Y())},[W,Y]);let X=null==(n=K.arrow)?void 0:n.x,Q=null==(r=K.arrow)?void 0:r.y,ee=(null==(l=K.arrow)?void 0:l.centerOffset)!==0,[et,en]=i.useState();return ex(()=>{A&&en(window.getComputedStyle(A).zIndex)},[A]),(0,v.jsx)("div",{ref:$.setFloating,"data-radix-popper-content-wrapper":"",style:{...Z,transform:W?Z.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:et,"--radix-popper-transform-origin":[null==(o=K.transformOrigin)?void 0:o.x,null==(a=K.transformOrigin)?void 0:a.y].join(" "),...(null==(s=K.hide)?void 0:s.referenceHidden)&&{visibility:"hidden",pointerEvents:"none"}},dir:e.dir,children:(0,v.jsx)(eH,{scope:f,placedSide:q,placedAlign:G,onArrowChange:R,arrowX:X,arrowY:Q,shouldHideArrow:ee,children:(0,v.jsx)(D.div,{"data-side":q,"data-align":G,...T,ref:M,style:{...T.style,animation:W?null==(u=T.style)?void 0:u.animation:"none"}})})})},"PopperContent")),e$={top:"bottom",right:"left",bottom:"top",left:"right"},eZ=i.forwardRef(eM(function(e,t){let{__scopePopper:n,...r}
1=e,i=eJ("PopperArrow",n),l=e$[i.placedSide];return(0,v.jsx)("span",{ref:i.onArrowChange,style:{position:"absolute",left:i.arrowX,top:i.arrowY,[l]:0,transformOrigin:{top:"",right:"0 0",bottom:"center 0",left:"100% 0"}[i.placedSide],transform:{top:"translateY(100%)",right:"translateY(50%) rotate(90deg) translateX(-50%)",bottom:"rotate(180deg)",left:"translateY(50%) rotate(-90deg) translateX(50%)"}[i.placedSide],visibility:i.shouldHideArrow?"hidden":void 0},children:(0,v.jsx)(eN,{...r,ref:t,style:{...r.style,display:"block"}})})},"PopperArrow"));function eU(e){return null!==e}eM(eU,"isNotNull");var eW=eM(e=>({name:"transformOrigin",options:e,fn(t){var n,r,i,l,o;let{placement:a,rects:s,middlewareData:u}=t,c=(null==(n=u.arrow)?void 0:n.centerOffset)!==0,d=c?0:e.arrowWidth,f=c?0:e.arrowHeight,[p,h]=eK(a),g={start:"0%",center:"50%",end:"100%"}[h],m=(null!=(l=null==(r=u.arrow)?void 0:r.x)?l:0)+d/2,v=(null!=(o=null==(i=u.arrow)?void 0:i.y)?o:0)+f/2,y="",b="";return"bottom"===p?(y=c?g:"".concat(m,"px"),b="".concat(-f,"px")):"top"===p?(y=c?g:"".concat(m,"px"),b="".concat(s.floating.height+f,"px")):"right"===p?(y="".concat(-f,"px"),b=c?g:"".concat(v,"px")):"left"===p&&(y="".concat(s.floating.width+f,"px"),b=c?g:"".concat(v,"px")),{data:{x:y,y:b}}}}),"transformOrigin");function eK(e){let[t,n="center"]=e.split("-");return[t,n]}eM(eK,"getSideAndAlignFromPlacement");var ez=Object.defineProperty,eq=i.forwardRef(ez(function(e,t){var n,r;let{container:l,...o}=e,[a,s]=i.useState(!1);ex(()=>s(!0),[]);let u=l||a&&(null==(r=globalThis)||null==(n=r.document)?void 0:n.body);return u?w.createPortal((0,v.jsx)(D.div,{...o,ref:t}),u):null},"name",{value:"Portal",configurable:!0})),eG=Object.defineProperty,eY=(e,t)=>eG(e,"name",{value:t,configurable:!0});function eX(e,t){return i.useReducer((e,n)=>{let r=t[e][n];return null!=r?r:e},e)}eY(eX,"useStateMachine");var eQ=eY(e=>{let{present:t,children:n}=e,r=e0(t),l="function"==typeof n?n({present:r.isPresent}):i.Children.only(n),o=e5(r.ref,e9(l));return"function"==typeof n||r.isPresent?i.cloneElement(l,{ref:o}):null},"Presence");function e0(e){let[t,n]=i.useState(),r=i.useRef(null),l=i.useRef(e),o=i.useRef("none"),a=i.useRef(void 0),[s,u]=eX(e?"mounted":"unmounted",{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return i.useEffect(()=>{if("mounted"===s){var e;o.current=null!=(e=a.current)?e:e2(r.current),a.current=void 0}else o.current="none"},[s]),ex(()=>{let t=r.current,n=l.current;if(n!==e){let r=o.current,i=e2(t);e?(a.current=i,u("MOUNT")):"none"===i||(null==t?void 0:t.display)==="none"?u("UNMOUNT"):n&&r!==i?u("ANIMATION_OUT"):u("UNMOUNT"),l.current=e}},[e,u]),ex(()=>{if(t){var e;let n,i=null!=(e=t.ownerDocument.defaultView)?e:window,a=eY(e=>{let o=e2(r.current).includes(CSS.escape(e.animationName));if(e.target===t&&o&&(u("ANIMATION_END"),!l.current)){let e=t.style.animationFillMode;t.style.animationFillMode="forwards",n=i.setTimeout(()=>{"forwards"===t.style.animationFillMode&&(t.style.animationFillMode=e)})}},"handleAnimationEnd"),s=eY(e=>{e.target===t&&(o.current=e2(r.current))},"handleAnimationStart");return t.addEventListener("animationstart",s),t.addEventListener("animationcancel",a),t.addEventListener("animationend",a),()=>{i.clearTimeout(n),t.removeEventListener("animationstart",s),t.removeEventListener("animationcancel",a),t.removeEventListener("animationend",a)}}u("ANIMATION_END")},[t,u]),{isPresent:["mounted","unmountSuspended"].includes(s),ref:i.useCallback(e=>{if(e){let t=getComputedStyle(e);r.current=t,a.current=e2(t)}else r.current=null;n(e)},[])}}function e1(e,t){if("function"==typeof e)return e(t);null!=e&&(e.current=t)}function e5(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];let r=i.useRef(t);return r.current=t,i.useCallback(e=>{let t=r.current,n=!1,i=t.map(t=>{let r=e1(t,e);return n||"function"!=typeof r||(n=!0),r});if(n)return()=>{for(let e=0;e<i.length;e++){let n=i[e];"function"==typeof n?n():e1(t[e],null)}}},[])}function e2(e){return(null==e?void 0:e.animationName)||"none"}function e9(e){var t,n;let r=null==(t=Object.getOwnPropertyDescriptor(e.props,"ref"))?void 0:t.get,i=r&&"isReactWarning"in r&&r.isReactWarning;return i?e.ref:(i=(r=null==(n=Object.getOwnPropertyDescriptor(e,"ref"))?void 0:n.get)&&"isReactWarning"in r&&r.isReactWarning)?e.props.ref:e.props.ref||e.ref}eY(e0,"usePresence"),eY(e1,"setRef"),eY(e5,"useStableComposedRefs"),eY(e2,"getAnimationName"),eY
1(e9,"getElementRef");var e3=Object.defineProperty,e7=l[" useEffectEvent ".trim().toString()],e8=l[" useInsertionEffect ".trim().toString()];function e4(e){if("function"==typeof e7)return e7(e);let t=i.useRef(()=>{throw Error("Cannot call an event handler while rendering.")});return"function"==typeof e8?e8(()=>{t.current=e}):ex(()=>{t.current=e}),i.useMemo(()=>(...e)=>t.current?.(...e),[])}e3(e4,"name",{value:"useEffectEvent",configurable:!0});var e6=Object.defineProperty,te=(e,t)=>e6(e,"name",{value:t,configurable:!0}),tt=l[" useInsertionEffect ".trim().toString()]||ex;function tn({prop:e,defaultProp:t,onChange:n=te(()=>{},"onChange"),caller:r}){let[l,o,a]=tr({defaultProp:t,onChange:n}),s=void 0!==e,u=s?e:l;return[u,i.useCallback(t=>{if(s){let n=ti(t)?t(e):t;n!==e&&a.current?.(n)}else o(t)},[s,e,o,a])]}function tr({defaultProp:e,onChange:t}){let[n,r]=i.useState(e),l=i.useRef(n),o=i.useRef(t);return tt(()=>{o.current=t},[t]),i.useEffect(()=>{l.current!==n&&(o.current?.(n),l.current=n)},[n,l]),[n,r,o]}function ti(e){return"function"==typeof e}te(tn,"useControllableState"),te(tr,"useUncontrolledState"),te(ti,"isFunction");var tl=Symbol("RADIX:SYNC_STATE");te(function(e,t,n,r){let{prop:l,defaultProp:o,onChange:a,caller:s}=t,u=void 0!==l,c=e4(a),d=[{...n,state:o}];r&&d.push(r);let[f,p]=i.useReducer((t,n)=>{if(n.type===tl)return{...t,state:n.state};let r=e(t,n);return u&&!Object.is(r.state,t.state)&&c(r.state),r},...d),h=f.state,g=i.useRef(h);i.useEffect(()=>{g.current!==h&&(g.current=h,u||c(h))},[h,g,u]);let m=i.useMemo(()=>void 0!==l?{...f,state:l}:f,[f,l]);return i.useEffect(()=>{u&&!Object.is(l,f.state)&&p({type:tl,state:l})},[l,f.state,u]),[m,p]},"useControllableStateReducer");var to=n(97745),ta=n(14432),ts=Object.defineProperty,tu=(e,t)=>ts(e,"name",{value:t,configurable:!0}),tc="Popover",[td,tf]=x(tc,[eO]),tp=eO(),[th,tg]=td(tc),tm=tu(e=>{let{__scopePopover:t,children:n,open:r,defaultOpen:l,onOpenChange:o,modal:a=!1}=e,s=tp(t),u=i.useRef(null),[c,d]=i.useState(!1),[f,p]=tn({prop:r,defaultProp:null!=l&&l,onChange:o,caller:tc});return(0,v.jsx)(eV,{...s,children:(0,v.jsx)(th,{scope:t,contentId:e_(),triggerRef:u,open:f,onOpenChange:p,onOpenToggle:i.useCallback(()=>p(e=>!e),[p]),hasCustomAnchor:c,onCustomAnchorAdd:i.useCallback(()=>d(!0),[]),onCustomAnchorRemove:i.useCallback(()=>d(!1),[]),modal:a,children:n})})},"Popover"),tv=i.forwardRef(tu(function(e,t){let{__scopePopover:n,...r}=e,l=tg("PopoverAnchor",n),o=tp(n),{onCustomAnchorAdd:a,onCustomAnchorRemove:s}=l;return i.useEffect(()=>(a(),()=>s()),[a,s]),(0,v.jsx)(eD,{...o,...r,ref:t})},"PopoverAnchor")),ty=i.forwardRef(tu(function(e,t){let{__scopePopover:n,...r}=e,i=tg("PopoverTrigger",n),l=tp(n),o=m(t,i.triggerRef),a=(0,v.jsx)(D.button,{type:"button","aria-haspopup":"dialog","aria-expanded":i.open,"aria-controls":i.open?i.contentId:void 0,"data-state":tI(i.open),...r,ref:o,onClick:u(e.onClick,i.onOpenToggle)});return i.hasCustomAnchor?a:(0,v.jsx)(eD,{asChild:!0,...l,children:a})},"PopoverTrigger")),tb="PopoverPortal",[tx,tC]=td(tb,{forceMount:void 0}),tw=tu(e=>{let{__scopePopover:t,forceMount:n,children:r,container:i}=e,l=tg(tb,t);return(0,v.jsx)(tx,{scope:t,forceMount:n,children:(0,v.jsx)(eQ,{present:n||l.open,children:(0,v.jsx)(eq,{asChild:!0,container:i,children:r})})})},"PopoverPortal"),tE="PopoverContent",t_=i.forwardRef(tu(function(e,t){let n=tC(tE,e.__scopePopover),{forceMount:r=n.forceMount,...i}=e,l=tg(tE,e.__scopePopover);return(0,v.jsx)(eQ,{present:r||l.open,children:l.modal?(0,v.jsx)(tk,{...i,ref:t}):(0,v.jsx)(tT,{...i,ref:t})})},"PopoverContent")),tS=S("PopoverContent.RemoveScroll"),tk=i.forwardRef(tu(function(e,t){let n=tg(tE,e.__scopePopover),r=i.useRef(null),l=m(t,r),o=i.useRef(!1);return i.useEffect(()=>{let e=r.current;if(e)return(0,to.Eq)(e)},[]),(0,v.jsx)(ta.A,{as:tS,allowPinchZoom:!0,children:(0,v.jsx)(tN,{...e,ref:l,trapFocus:n.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:u(e.onCloseAutoFocus,e=>{var t;e.preventDefault(),o.current||null==(t=n.triggerRef.current)||t.focus()}),onPointerDownOutside:u(e.onPointerDownOutside,e=>{let t=e.detail.originalEvent,n=0===t.button&&!0===t.ctrlKey;o.current=2===t.button||n},{checkForDefaultPrevented:!1}),onFocusOutside:u(e.onFocusOutside,e=>e.preventDefault(),{checkForDefaultPrevented:!1})})})},"PopoverContentModal")),tT=i.forwardRef(tu(function(e,t){let n=tg(tE,e.__scopePopover),r=i.useRef(!1),l=i.useRef(!1);return(0,v.jsx)(tN,{...e,ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:t=>{var i,o;null==(i=e.onCloseAutoFocus)||i.call(e,t),t.defaultPrevented||(r.current||null==(o=n.triggerRef.current)||o.focus(),t.preventDefault()),r.current=!1,l.current=!1},onInteractOutside:t=>{var i,o;null==(i=e.onInteractOutside)||i.call(e,t),t.defaultPrevented||(r.current=!0,"pointerdown"===t.detail.originalEvent.type&&(l.current=!0));let a=t.target;(null==(o=n.triggerRef.current)?void 0:o.contains(a))&&t.preventDefault(),"focusin"===t.detail.originalEvent.type&&l.current&&t.preventDefault()}})},"PopoverContentNonModal")),tN=i.forwardRef(tu(function(e,t){let{__scopePopover:n,trapFocus:r,onOpenAutoFocus:i,onCloseAutoFocus:l,disableOutsidePointerEvents:o,onEscapeKeyDown:a,onPointerDownOutside:s,onFocusOutside:u,onInteractOutside:c,...d}=e,f=tg(tE,n),p=tp(n);return et(),(0,v.jsx)(es,{asChild:!0,loop:!0,trapped:r,onMountAutoFocus:i,onUnmountAutoFocus:l,children:(0,v.jsx)(U,{asChild:!0,disableOutsidePointerEvents:o,onInteractOutside:c,onEscapeKeyDown:a,onPointerDownOutside:s,onFocusOutside:u,onDismiss:()=>f.onOpenChange(!1),deferPointerDownOutside:!0,children:(0,v.jsx)(eB,{"data-state":tI(f.open),role:"dialog",id:f.contentId,...p,...d,ref:t,style:{...d.style,"--radix-popover-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-popover-content-available-width":"var(--radix-popper-available-width)","--radix-popover-content-available-height":"var(--radix-popper-available-height)","--radix-popover-trigger-width":"var(--radix-popper-anchor-width)","--radix-popover-trigger-height":"var(--radix-popper-anchor-height)"}})})})},"PopoverContentImpl")),tA=i.forwardRef(tu(function(e,t){let{__scopePopover:n,...r}=e,i=tp(n);return(0,v.jsx)(eZ,{...i,...r,ref:t})},"PopoverArrow"));function tI(e){return e?"open":"closed"}tu(tI,"getState");var tM=tm,tP=tv,tR=tw,tO=t_,tL=tA},85203:(e,t)=>{var n;!function(){"use strict";var r={}.hasOwnProperty;function i(){for(var e="",t=0;t<arguments.length;t++){var n=arguments[t];
1n&&(e=l(e,function(e){if("string"==typeof e||"number"==typeof e)return e;if("object"!=typeof e)return"";if(Array.isArray(e))return i.apply(null,e);if(e.toString!==Object.prototype.toString&&!e.toString.toString().includes("[native code]"))return e.toString();var t="";for(var n in e)r.call(e,n)&&e[n]&&(t=l(t,n));return t}(n)))}return e}function l(e,t){return t?e?e+" "+t:e+t:e}e.exports?(i.default=i,e.exports=i):void 0===(n=(function(){return i}).apply(t,[]))||(e.exports=n)}()},87797:(e,t,n)=>{"use strict";n.d(t,{F8:()=>g,bL:()=>d,fp:()=>m,gx:()=>f,hf:()=>h,wv:()=>v});var r,i=n(73531),l=n(85203),o=n(12115),a=n(74898),s=n(65333),u=n(45276);function c(e,t){return o.forwardRef((n,r)=>{let i=l(t.className,n.className);return o.createElement(e,{...t,...n,className:i,ref:r})})}let d=e=>{let{readOnly:t,children:n,className:r}=e;return o.createElement(i.bL,{className:l("mdxeditor-toolbar",a.Ay.toolbarRoot,{[a.Ay.readOnlyToolbarRoot]:t},r),...t?{tabIndex:-1}:{}},n)},f=(r=c(i.$n,{className:a.Ay.toolbarButton,"data-toolbar-item":!0}),e=>{let{title:t,children:n,...i}=e;return o.createElement(r,{"aria-label":t,...i},o.createElement(s.I,{title:t},n))}),p=c(i.sy,{className:a.Ay.toolbarToggleItem,"data-toolbar-item":!0});c(i.OY,{type:"single",className:a.Ay.toolbarToggleSingleGroup});let h=o.forwardRef((e,t)=>{let{on:n,title:r,children:l,disabled:u,...c}=e;return o.createElement(i.OY,{type:"single",className:a.Ay.toolbarToggleSingleGroup,...c,value:n?"on":"off",ref:t},o.createElement(p,{"aria-label":r,value:"on",disabled:u},o.createElement(s.I,{title:r},l)))}),g=e=>{let{items:t}=e;return o.createElement("div",{className:a.Ay.toolbarGroupOfGroups},t.map((e,t)=>o.createElement(h,{key:t,title:e.title,on:e.active,onValueChange:t=>{e.onChange("on"===t)},disabled:e.disabled},e.contents)))},m=e=>{let{value:t,onChange:n,className:r,ggClassName:c,items:d,disabled:f}=e,h=(0,u.Bd)();return o.createElement("div",{className:l(a.Ay.toolbarGroupOfGroups,c)},o.createElement(i.OY,{"aria-label":h("toolbar.toggleGroup","toggle group"),type:"single",className:l(a.Ay.toolbarToggleSingleGroup,r),onValueChange:n,value:t||"",disabled:f,onFocus:e=>{e.preventDefault()}},d.map((e,t)=>o.createElement(p,{key:t,"aria-label":e.title,value:e.value},o.createElement(s.I,{title:e.title},e.contents)))))},v=i.wv},91249:(e,t,n)=>{"use strict";n.d(t,{CP:()=>u,Gi:()=>s,Wr:()=>a,zy:()=>o});var r=n(97853),i=n(29170);function l(e){return e.children instanceof Array}class o extends Error{constructor(e,t){super(e),this.name="MarkdownParseError",this.cause=t}}class a extends Error{constructor(e){super(e),this.name="UnrecognizedMarkdownConstructError"}}function s(e){var t;let n,{root:i,markdown:l,visitors:a,syntaxExtensions:s,mdastExtensions:c,...d}=e;try{n=(0,r.Y)(l,{extensions:s,mdastExtensions:c})}catch(e){if(e instanceof Error)throw new o("Error parsing markdown: ".concat(e.message),e);throw new o("Error parsing markdown: ".concat(e),e)}0===n.children.length&&n.children.push({type:"paragraph",children:[]}),(null==(t=n.children.at(-1))?void 0:t.type)!=="paragraph"&&n.children.push({type:"paragraph",children:[]}),u({root:i,mdastRoot:n,visitors:a,...d})}function u(e){let{root:t,mdastRoot:n,visitors:r,...o}=e,s=new WeakMap,u=new WeakMap,c=function(e){let t=new Map;return"root"!==e.type?{importDeclarations:{}}:(e.children.filter(e=>"mdxjsEsm"===e.type).filter(e=>
1e.value.startsWith("import ")).forEach(e=>{var n,r,i;(null!=(i=null==(r=null==(n=e.data)?void 0:n.estree)?void 0:r.body)?i:[]).forEach(e=>{"ImportDeclaration"===e.type&&e.specifiers.forEach(n=>{t.set(n.local.name,{source:"".concat(e.source.value),defaultExport:"ImportDefaultSpecifier"===n.type})})})}),{importDeclarations:Object.fromEntries(t.entries())})}(n);function d(e,t){if(!l(e))throw Error("Attempting to visit children of a non-parent");e.children.forEach(n=>{f(n,t,e)})}function f(e,t,n){let p=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null,h=r.find((t,n)=>(null==p||!p.has(n))&&("string"==typeof t.testNode?t.testNode===e.type:t.testNode(e,o)));if(!h)try{throw new a("Unsupported markdown syntax: ".concat((0,i.l)(e)))}catch(t){throw new a("Parsing of the following markdown structure failed: ".concat(JSON.stringify({type:e.type,name:"name"in e?e.name:"N/A"})))}h.visitNode({mdastNode:e,lexicalParent:t,mdastParent:n,descriptors:o,metaData:c,actions:{visitChildren:d,nextVisitor(){f(e,t,n,(null!=p?p:new Set).add(r.indexOf(h)))},addAndStepInto(n){t.append(n),l(e)&&d(e,n)},addFormatting(t,r){if(!r&&l(e)&&(r=e),r){var i;s.set(r,t|(null!=(i=s.get(n))?i:0))}},removeFormatting(t,r){if(!r&&l(e)&&(r=e),r){var i;s.set(r,t^(null!=(i=s.get(n))?i:0))}},getParentFormatting(){var e;return null!=(e=s.get(n))?e:0},addStyle(t,n){!n&&l(e)&&(n=e),n&&u.set(n,t)},getParentStyle(){var e;return null!=(e=u.get(n))?e:""}}})}r=r.sort((e,t)=>{var n,r;return(null!=(n=t.priority)?n:0)-(null!=(r=e.priority)?r:0)}),f(n,t,null)}},93502:(e,t,n)=>{"use strict";n.d(t,{p:()=>o});var r=n(57259),i=n(4492),l=n(95155);function o({initialEditor:e,children:t}){let{Component:n}=(0,r.wD)(e,i.n).output;return(0,l.jsx)(n,{children:t})}},96803:(e,t,n)=>{"use strict";n.d(t,{m:()=>r});let r=(0,n(80632).vE9)({name:"@lexical/react/ReactProvider"})},97325:(e,t,n)=>{"use strict";n.d(t,{I:()=>u});var r=n(12115),i=n(54434),l=n(87797),o=n(61259),a=n(45276);let s={bullet:"format_list_bulleted",number:"format_list_numbered",check:"format_list_checked"},u=e=>{let{options:t=["bullet","number","check"]}=e,[n,u,c]=(0,o.uX)(i.SH,a.yr,a.Nn),d=(0,o.qM)(i.Nq),f=(0,a.Bd)(),p={bullet:f("toolbar.bulletedList","Bulleted list"),number:f("toolbar.numberedList","Numbered list"),check:f("toolbar.checkList","Check list")},h=t.map(e=>({value:e,title:p[e],contents:u(s[e])}));return r.createElement(l.fp,{value:n||"",items:h,onChange:d,disabled:c})}},97453:(e,t)=>{"use strict";var n=60103,r=60106,i=60107,l=60108,o=60114,a=60109,s=60110,u=60112,c=60113,d=60120,f=60115,p=60116;if("function"==typeof Symbol&&Symbol.for){var h=Symbol.for;n=h("react.element"),r=h("react.portal"),i=h("react.fragment"),l=h("react.strict_mode"),o=h("react.profiler"),a=h("react.provider"),s=h("react.context"),u=h("react.forward_ref"),c=h("react.suspense"),d=h("react.suspense_list"),f=h("react.memo"),p=h("react.lazy"),h("react.block"),h("react.server.block"),h("react.fundamental"),h("react.debug_trace_mode"),h("react.legacy_hidden")}},98032:()=>{}}]);

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.