@uniformdev/uniform-mcp 20.35.1-alpha.188 → 20.35.1-alpha.210
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.mjs +5 -5
- package/package.json +8 -8
package/dist/index.mjs
CHANGED
|
@@ -48,7 +48,7 @@ var Dae=Object.create;var ux=Object.defineProperty;var Lae=Object.getOwnProperty
|
|
|
48
48
|
`||u===`\r
|
|
49
49
|
`?c.insertParagraph():u===" "?c.insertNodes([Jr()]):c.insertText(u)}}}else e.insertRawText(s)}function F6(t,e,r){t.dispatchCommand(Ta,{nodes:e,selection:r})||(r.insertNodes(e),function(n){if(V(n)&&n.isCollapsed()){let o=n.anchor,i=null,s=wo(o,"previous");if(s)if(au(s))i=s.origin;else{let a=nu(s,Dr(At(),"next").getFlipped());for(let l of a){if(ie(l.origin)){i=l.origin;break}if(G(l.origin)&&!l.origin.isInline())break}}if(i&&ie(i)){let a=i.getFormat(),l=i.getStyle();n.format===a&&n.style===l||(n.format=a,n.style=l,n.dirty=!0)}}}(r))}function IU(t,e,r,n=[]){let o=e===null||r.isSelected(e),i=G(r)&&r.excludeFromCopy("html"),s=r;e!==null&&ie(s)&&(s=Su(e,s,"clone"));let a=G(s)?s.getChildren():[],l=function(c){let u=c.exportJSON(),d=c.constructor;if(u.type!==d.getType()&&O4(58,d.name),G(c)){let f=u.children;Array.isArray(f)||O4(59,d.name)}return u}(s);ie(s)&&s.getTextContentSize()===0&&(o=!1);for(let c=0;c<a.length;c++){let u=a[c],d=IU(t,e,u,l.children);!o&&G(r)&&d&&r.extractWithChild(u,e,"clone")&&(o=!0)}if(o&&!i)n.push(l);else if(Array.isArray(l.children))for(let c=0;c<l.children.length;c++){let u=l.children[c];n.push(u)}return o}function kU(t,e){let r=[],n=At().getChildren();for(let o=0;o<n.length;o++)IU(t,e,n[o],r);return{namespace:t._config.namespace,nodes:r}}function RU(t){let e=[];for(let r=0;r<t.length;r++){let n=t[r],o=m2(n);ie(o)&&Z2(o),e.push(o)}return e}async function Tve(t,e,r){if(cg!==null)return!1;if(e!==null)return new Promise((c,u)=>{t.update(()=>{c(AU(t,e,r))})});let n=t.getRootElement(),o=t._window||window,i=o.document,s=Lo(o);if(n===null||s===null)return!1;let a=i.createElement("span");a.style.cssText="position: fixed; top: -1000px;",a.append(i.createTextNode("#")),n.append(a);let l=new Range;return l.setStart(a,0),l.setEnd(a,1),s.removeAllRanges(),s.addRange(l),new Promise((c,u)=>{let d=t.registerCommand(fu,f=>(Er(f,ClipboardEvent)&&(d(),cg!==null&&(o.clearTimeout(cg),cg=null),c(AU(t,f,r))),!0),Qt);cg=o.setTimeout(()=>{d(),cg=null,c(!1)},50),i.execCommand("copy"),a.remove()})}function AU(t,e,r){if(r===void 0){let o=Lo(t._window),i=H();if(!i||i.isCollapsed()||!o)return!1;let s=o.anchorNode,a=o.focusNode;if(s!==null&&a!==null&&!H2(t,s,a))return!1;r=FU(i)}e.preventDefault();let n=e.clipboardData;return n!==null&&(BU(n,r),!0)}function FU(t=H()){let e={"text/plain":t?t.getTextContent():""};if(t){let r=ri();for(let[n,o]of PU){let i=o(r,t);i!==null&&(e[n]=i)}}return e}function BU(t,e){for(let[r]of PU)e[r]===void 0&&t.setData(r,"");for(let r in e){let n=e[r];n!==void 0&&t.setData(r,n)}}var cg,PU,jU=ue(async()=>{"use strict";await f4();await es();await cn();await ht();cg=null;PU=[["text/html",OU],["application/x-lexical-editor",MU]]});var Ra,WFe,GFe,M4,YFe,ZFe,qFe,ug,JFe,Pa,XFe,F1=ue(async()=>{"use strict";Ra=await(process.env.NODE_ENV!=="production"?LU().then(()=>DU):jU().then(()=>zU)),WFe=Ra.$generateJSONFromSelectedNodes,GFe=Ra.$generateNodesFromSerializedNodes,M4=Ra.$getClipboardDataFromSelection,YFe=Ra.$getHtmlContent,ZFe=Ra.$getLexicalContent,qFe=Ra.$insertDataTransferForPlainText,ug=Ra.$insertDataTransferForRichText,JFe=Ra.$insertGeneratedNodes,Pa=Ra.copyToClipboard,XFe=Ra.setLexicalClipboardDataTransfer});var HU={};Pt(HU,{DragonExtension:()=>$ve,registerDragonSupport:()=>VU});function VU(t){let e=window.location.origin,r=n=>{if(n.origin!==e)return;let o=t.getRootElement();if(document.activeElement!==o)return;let i=n.data;if(typeof i=="string"){let s;try{s=JSON.parse(i)}catch{return}if(s&&s.protocol==="nuanria_messaging"&&s.type==="request"){let a=s.payload;if(a&&a.functionId==="makeChanges"){let l=a.args;if(l){let[c,u,d,f,p]=l;t.update(()=>{let m=H();if(V(m)){let g=m.anchor,h=g.getNode(),v=0,y=0;if(ie(h)&&c>=0&&u>=0&&(v=c,y=c+u,m.setTextNodeRange(h,v,h,y)),(v!==y||d!=="")&&(m.insertRawText(d),h=g.getNode()),ie(h)){v=f,y=f+p;let b=h.getTextContentSize();v=v>b?b:v,y=y>b?b:y,m.setTextNodeRange(h,v,h,y)}n.stopImmediatePropagation()}})}}}}};return window.addEventListener("message",r,!0),()=>{window.removeEventListener("message",r,!0)}}var $ve,UU=ue(async()=>{"use strict";await Hl();await ht();$ve=Ye({build:(t,e,r)=>Jn(e),config:er({disabled:typeof window>"u"}),name:"@lexical/dragon",register:(t,e,r)=>jr(()=>r.getOutput().disabled.value?void 0:VU(t))})});var WU={};Pt(WU,{DragonExtension:()=>Nve,registerDragonSupport:()=>KU});function KU(t){let e=window.location.origin,r=n=>{if(n.origin!==e)return;let o=t.getRootElement();if(document.activeElement!==o)return;let i=n.data;if(typeof i=="string"){let s;try{s=JSON.parse(i)}catch{return}if(s&&s.protocol==="nuanria_messaging"&&s.type==="request"){let a=s.payload;if(a&&a.functionId==="makeChanges"){let l=a.args;if(l){let[c,u,d,f,p]=l;t.update(()=>{let m=H();if(V(m)){let g=m.anchor,h=g.getNode(),v=0,y=0;if(ie(h)&&c>=0&&u>=0&&(v=c,y=c+u,m.setTextNodeRange(h,v,h,y)),v===y&&d===""||(m.insertRawText(d),h=g.getNode()),ie(h)){v=f,y=f+p;let b=h.getTextContentSize();v=v>b?b:v,y=y>b?b:y,m.setTextNodeRange(h,v,h,y)}n.stopImmediatePropagation()}})}}}}};return window.addEventListener("message",r,!0),()=>{window.removeEventListener("message",r,!0)}}var Nve,GU=ue(async()=>{"use strict";await Hl();await ht();Nve=Ye({build:(t,e,r)=>Jn(e),config:er({disabled:typeof window>"u"}),name:"@lexical/dragon",register:(t,e,r)=>jr(()=>r.getOutput().disabled.value?void 0:KU(t))})});var YU,I4,oBe,B6=ue(async()=>{"use strict";YU=await(process.env.NODE_ENV!=="production"?UU().then(()=>HU):GU().then(()=>WU)),I4=YU.DragonExtension,oBe=YU.registerDragonSupport});var tK={};Pt(tK,{$createHeadingNode:()=>fg,$createQuoteNode:()=>V6,$isHeadingNode:()=>Pve,$isQuoteNode:()=>kve,DRAG_DROP_PASTE:()=>j6,HeadingNode:()=>mg,QuoteNode:()=>pg,RichTextExtension:()=>Vve,eventFiles:()=>B1,registerRichText:()=>eK});function ZU(t,e){if(typeof document.caretRangeFromPoint<"u"){let r=document.caretRangeFromPoint(t,e);return r===null?null:{node:r.startContainer,offset:r.startOffset}}else if(document.caretPositionFromPoint!=="undefined"){let r=document.caretPositionFromPoint(t,e);return r===null?null:{node:r.offsetNode,offset:r.offset}}else return null}function V6(){return Mt(new pg)}function kve(t){return t instanceof pg}function JU(t){return t.nodeName.toLowerCase()==="span"?t.style.fontSize==="26pt":!1}function dg(t){let e=t.nodeName.toLowerCase(),r=null;return(e==="h1"||e==="h2"||e==="h3"||e==="h4"||e==="h5"||e==="h6")&&(r=fg(e),t.style!==null&&(Hm(t,r),r.setFormat(t.style.textAlign))),{node:r}}function Rve(t){let e=V6();return t.style!==null&&(e.setFormat(t.style.textAlign),Hm(t,e)),{node:e}}function fg(t="h1"){return Mt(new mg(t))}function Pve(t){return t instanceof mg}function Fve(t,e){t.preventDefault(),e.update(()=>{let r=H(),n=Er(t,InputEvent)||Er(t,KeyboardEvent)?null:t.clipboardData;n!=null&&r!==null&&ug(n,r,e)},{tag:$2})}async function Bve(t,e){await Pa(e,Er(t,ClipboardEvent)?t:null),e.update(()=>{let r=H();V(r)?r.removeText():Je(r)&&r.getNodes().forEach(n=>n.remove())})}function B1(t){let e=null;if(Er(t,DragEvent)?e=t.dataTransfer:Er(t,ClipboardEvent)&&(e=t.clipboardData),e===null)return[!1,[],!1];let r=e.types,n=r.includes("Files"),o=r.includes("text/html")||r.includes("text/plain");return[n,Array.from(e.files),o]}function XU(t){let e=H();if(!V(e))return!1;let r=new Set,n=e.getNodes();for(let o=0;o<n.length;o++){let i=n[o],s=i.getKey();if(r.has(s))continue;let a=se(i,c=>G(c)&&!c.isInline());if(a===null)continue;let l=a.getKey();a.canIndent()&&!r.has(l)&&(r.add(l),t(a))}return r.size>0}function QU(t){let e=gt(t);return Xr(e)}function zve(t){let e=t.focus;return e.key==="root"&&e.offset===At().getChildrenSize()}function jve(t){if(!t.isCollapsed())return!1;let{anchor:e}=t;if(e.offset!==0)return!1;let r=e.getNode();if(ni(r))return!1;let n=La(r);return n.getIndent()>0&&(n.is(r)||r.is(n.getFirstDescendant()))}function z6(t){for(let e of["lowercase","uppercase","capitalize"])t.hasFormat(e)&&t.toggleFormat(e)}function eK(t){return at(t.registerCommand(qi,r=>{let n=H();return Je(n)?(n.clear(),!0):!1},me),t.registerCommand(Ji,r=>{let n=H();return V(n)?(n.deleteCharacter(r),!0):Je(n)?(n.deleteNodes(),!0):!1},me),t.registerCommand(mu,r=>{let n=H();return V(n)?(n.deleteWord(r),!0):!1},me),t.registerCommand(Ca,r=>{let n=H();return V(n)?(n.deleteLine(r),!0):!1},me),t.registerCommand(du,r=>{let n=H();if(typeof r=="string")n!==null&&n.insertText(r);else{if(n===null)return!1;let o=r.dataTransfer;if(o!=null)ug(o,n,t);else if(V(n)){let i=r.data;return i&&n.insertText(i),!0}}return!0},me),t.registerCommand(N2,()=>{let r=H();return V(r)?(r.removeText(),!0):!1},me),t.registerCommand(vu,r=>{let n=H();return V(n)?(n.formatText(r),!0):!1},me),t.registerCommand(hu,r=>{let n=H();if(!V(n)&&!Je(n))return!1;let o=n.getNodes();for(let i of o){let s=se(i,a=>G(a)&&!a.isInline());s!==null&&s.setFormat(r)}return!0},me),t.registerCommand(Pm,r=>{let n=H();return V(n)?(n.insertLineBreak(r),!0):!1},me),t.registerCommand(No,()=>{let r=H();return V(r)?(r.insertParagraph(),!0):!1},me),t.registerCommand(oi,()=>(ks([Jr()]),!0),me),t.registerCommand(Br,()=>XU(r=>{let n=r.getIndent();r.setIndent(n+1)}),me),t.registerCommand(xn,()=>XU(r=>{let n=r.getIndent();n>0&&r.setIndent(Math.max(0,n-1))}),me),t.registerCommand(Qr,r=>{let n=H();if(Je(n)){let o=n.getNodes();if(o.length>0)return r.preventDefault(),o[0].selectPrevious(),!0}else if(V(n)){let o=Om(n.focus,!0);if(!r.shiftKey&&Xr(o)&&!o.isIsolated()&&!o.isInline())return o.selectPrevious(),r.preventDefault(),!0}return!1},me),t.registerCommand(Zn,r=>{let n=H();if(Je(n)){let o=n.getNodes();if(o.length>0)return r.preventDefault(),o[0].selectNext(0,0),!0}else if(V(n)){if(zve(n))return r.preventDefault(),!0;let o=Om(n.focus,!1);if(!r.shiftKey&&Xr(o)&&!o.isIsolated()&&!o.isInline())return o.selectNext(),r.preventDefault(),!0}return!1},me),t.registerCommand(ii,r=>{let n=H();if(Je(n)){let o=n.getNodes();if(o.length>0)return r.preventDefault(),Um(o[0])?o[0].selectNext(0,0):o[0].selectPrevious(),!0}if(!V(n))return!1;if(Bl(n,!0)){let o=r.shiftKey;return r.preventDefault(),Fl(n,o,!0),!0}return!1},me),t.registerCommand(_a,r=>{let n=H();if(Je(n)){let i=n.getNodes();if(i.length>0)return r.preventDefault(),Um(i[0])?i[0].selectPrevious():i[0].selectNext(0,0),!0}if(!V(n))return!1;let o=r.shiftKey;return Bl(n,!1)?(r.preventDefault(),Fl(n,o,!1),!0):!1},me),t.registerCommand(wa,r=>{if(QU(r.target))return!1;let n=H();if(V(n)){if(jve(n))return r.preventDefault(),t.dispatchCommand(xn,void 0);if(qU&&navigator.language==="ko-KR")return!1}else if(!Je(n))return!1;return r.preventDefault(),t.dispatchCommand(Ji,!0)},me),t.registerCommand(Ea,r=>{if(QU(r.target))return!1;let n=H();return V(n)||Je(n)?(r.preventDefault(),t.dispatchCommand(Ji,!1)):!1},me),t.registerCommand(E2,r=>{let n=H();if(!V(n))return!1;if(z6(n),r!==null){if((qU||Ove||Ive)&&Ave)return!1;if(r.preventDefault(),r.shiftKey)return t.dispatchCommand(Pm,!1)}return t.dispatchCommand(No,void 0)},me),t.registerCommand(Xi,()=>{let r=H();return V(r)?(t.blur(),!0):!1},me),t.registerCommand(S2,r=>{let[,n]=B1(r);if(n.length>0){let i=r.clientX,s=r.clientY,a=ZU(i,s);if(a!==null){let{offset:l,node:c}=a,u=gt(c);if(u!==null){let d=yn();if(ie(u))d.anchor.set(u.getKey(),l,"text"),d.focus.set(u.getKey(),l,"text");else{let p=u.getParentOrThrow().getKey(),m=u.getIndexWithinParent()+1;d.anchor.set(p,m,"element"),d.focus.set(p,m,"element")}let f=Yn(d);qe(f)}t.dispatchCommand(j6,n)}return r.preventDefault(),!0}let o=H();return!!V(o)},me),t.registerCommand(C2,r=>{let[n]=B1(r),o=H();return!(n&&!V(o))},me),t.registerCommand(x2,r=>{let[n]=B1(r),o=H();if(n&&!V(o))return!1;let i=r.clientX,s=r.clientY,a=ZU(i,s);if(a!==null){let l=gt(a.node);Xr(l)&&r.preventDefault()}return!0},me),t.registerCommand(L2,()=>(lu(),!0),me),t.registerCommand(fu,r=>(Pa(t,Er(r,ClipboardEvent)?r:null),!0),me),t.registerCommand(pu,r=>(Bve(r,t),!0),me),t.registerCommand(Pl,r=>{let[,n,o]=B1(r);return n.length>0&&!o?(t.dispatchCommand(j6,n),!0):zr(r.target)&&V2(r.target)?!1:H()!==null?(Fve(r,t),!0):!1},me),t.registerCommand(yu,r=>{let n=H();return V(n)&&z6(n),!1},me),t.registerCommand(Do,r=>{let n=H();return V(n)&&z6(n),!1},me))}var bf,Dve,Lve,Ave,Ove,qU,Mve,Ive,j6,pg,mg,Vve,rK=ue(async()=>{"use strict";await F1();await B6();await es();await cn();await ht();bf=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",Dve=bf&&"documentMode"in document?document.documentMode:null,Lve=bf&&/Mac|iPod|iPhone|iPad/.test(navigator.platform),Ave=bf&&"InputEvent"in window&&!Dve?"getTargetRanges"in new window.InputEvent("input"):!1,Ove=bf&&/Version\/[\d.]+.*Safari/.test(navigator.userAgent),qU=bf&&/iPad|iPhone|iPod/.test(navigator.userAgent)&&!window.MSStream,Mve=bf&&/^(?=.*Chrome).*/i.test(navigator.userAgent),Ive=bf&&/AppleWebKit\/[\d.]+/.test(navigator.userAgent)&&Lve&&!Mve,j6=wt("DRAG_DROP_PASTE_FILE"),pg=class t extends kt{static getType(){return"quote"}static clone(e){return new t(e.__key)}createDOM(e){let r=document.createElement("blockquote");return Pe(r,e.theme.quote),r}updateDOM(e,r){return!1}static importDOM(){return{blockquote:e=>({conversion:Rve,priority:0})}}exportDOM(e){let{element:r}=super.exportDOM(e);if(Nt(r)){this.isEmpty()&&r.append(document.createElement("br"));let n=this.getFormatType();n&&(r.style.textAlign=n);let o=this.getDirection();o&&(r.dir=o)}return{element:r}}static importJSON(e){return V6().updateFromJSON(e)}insertNewAfter(e,r){let n=de(),o=this.getDirection();return n.setDirection(o),this.insertAfter(n,r),n}collapseAtStart(){let e=de();return this.getChildren().forEach(n=>e.append(n)),this.replace(e),!0}canMergeWhenEmpty(){return!0}};mg=class t extends kt{__tag;static getType(){return"heading"}static clone(e){return new t(e.__tag,e.__key)}constructor(e,r){super(r),this.__tag=e}getTag(){return this.__tag}setTag(e){let r=this.getWritable();return this.__tag=e,r}createDOM(e){let r=this.__tag,n=document.createElement(r),i=e.theme.heading;if(i!==void 0){let s=i[r];Pe(n,s)}return n}updateDOM(e,r,n){return e.__tag!==this.__tag}static importDOM(){return{h1:e=>({conversion:dg,priority:0}),h2:e=>({conversion:dg,priority:0}),h3:e=>({conversion:dg,priority:0}),h4:e=>({conversion:dg,priority:0}),h5:e=>({conversion:dg,priority:0}),h6:e=>({conversion:dg,priority:0}),p:e=>{let n=e.firstChild;return n!==null&&JU(n)?{conversion:()=>({node:null}),priority:3}:null},span:e=>JU(e)?{conversion:r=>({node:fg("h1")}),priority:3}:null}}exportDOM(e){let{element:r}=super.exportDOM(e);if(Nt(r)){this.isEmpty()&&r.append(document.createElement("br"));let n=this.getFormatType();n&&(r.style.textAlign=n);let o=this.getDirection();o&&(r.dir=o)}return{element:r}}static importJSON(e){return fg(e.tag).updateFromJSON(e)}updateFromJSON(e){return super.updateFromJSON(e).setTag(e.tag)}exportJSON(){return{...super.exportJSON(),tag:this.getTag()}}insertNewAfter(e,r=!0){let n=e?e.anchor.offset:0,o=this.getLastDescendant(),s=!o||e&&e.anchor.key===o.getKey()&&n===o.getTextContentSize()||!e?de():fg(this.getTag()),a=this.getDirection();if(s.setDirection(a),this.insertAfter(s,r),n===0&&!this.isEmpty()&&e){let l=de();l.select(),this.replace(l,!0)}return s}collapseAtStart(){let e=this.isEmpty()?de():fg(this.getTag());return this.getChildren().forEach(n=>e.append(n)),this.replace(e),!0}extractWithChild(){return!0}};Vve=Ye({conflictsWith:["@lexical/plain-text"],dependencies:[I4],name:"@lexical/rich-text",nodes:[mg,pg],register:eK})});var cK={};Pt(cK,{$createHeadingNode:()=>hg,$createQuoteNode:()=>K6,$isHeadingNode:()=>Jve,$isQuoteNode:()=>Zve,DRAG_DROP_PASTE:()=>U6,HeadingNode:()=>yg,QuoteNode:()=>vg,RichTextExtension:()=>Xve,eventFiles:()=>z1,registerRichText:()=>lK});function nK(t,e){if(document.caretRangeFromPoint!==void 0){let r=document.caretRangeFromPoint(t,e);return r===null?null:{node:r.startContainer,offset:r.startOffset}}if(document.caretPositionFromPoint!=="undefined"){let r=document.caretPositionFromPoint(t,e);return r===null?null:{node:r.offsetNode,offset:r.offset}}return null}function K6(){return Mt(new vg)}function Zve(t){return t instanceof vg}function iK(t){return t.nodeName.toLowerCase()==="span"&&t.style.fontSize==="26pt"}function gg(t){let e=t.nodeName.toLowerCase(),r=null;return e!=="h1"&&e!=="h2"&&e!=="h3"&&e!=="h4"&&e!=="h5"&&e!=="h6"||(r=hg(e),t.style!==null&&(Hm(t,r),r.setFormat(t.style.textAlign))),{node:r}}function qve(t){let e=K6();return t.style!==null&&(e.setFormat(t.style.textAlign),Hm(t,e)),{node:e}}function hg(t="h1"){return Mt(new yg(t))}function Jve(t){return t instanceof yg}function z1(t){let e=null;if(Er(t,DragEvent)?e=t.dataTransfer:Er(t,ClipboardEvent)&&(e=t.clipboardData),e===null)return[!1,[],!1];let r=e.types,n=r.includes("Files"),o=r.includes("text/html")||r.includes("text/plain");return[n,Array.from(e.files),o]}function sK(t){let e=H();if(!V(e))return!1;let r=new Set,n=e.getNodes();for(let o=0;o<n.length;o++){let i=n[o],s=i.getKey();if(r.has(s))continue;let a=se(i,c=>G(c)&&!c.isInline());if(a===null)continue;let l=a.getKey();a.canIndent()&&!r.has(l)&&(r.add(l),t(a))}return r.size>0}function aK(t){let e=gt(t);return Xr(e)}function H6(t){for(let e of["lowercase","uppercase","capitalize"])t.hasFormat(e)&&t.toggleFormat(e)}function lK(t){return at(t.registerCommand(qi,e=>{let r=H();return!!Je(r)&&(r.clear(),!0)},me),t.registerCommand(Ji,e=>{let r=H();return V(r)?(r.deleteCharacter(e),!0):!!Je(r)&&(r.deleteNodes(),!0)},me),t.registerCommand(mu,e=>{let r=H();return!!V(r)&&(r.deleteWord(e),!0)},me),t.registerCommand(Ca,e=>{let r=H();return!!V(r)&&(r.deleteLine(e),!0)},me),t.registerCommand(du,e=>{let r=H();if(typeof e=="string")r!==null&&r.insertText(e);else{if(r===null)return!1;let n=e.dataTransfer;if(n!=null)ug(n,r,t);else if(V(r)){let o=e.data;return o&&r.insertText(o),!0}}return!0},me),t.registerCommand(N2,()=>{let e=H();return!!V(e)&&(e.removeText(),!0)},me),t.registerCommand(vu,e=>{let r=H();return!!V(r)&&(r.formatText(e),!0)},me),t.registerCommand(hu,e=>{let r=H();if(!V(r)&&!Je(r))return!1;let n=r.getNodes();for(let o of n){let i=se(o,s=>G(s)&&!s.isInline());i!==null&&i.setFormat(e)}return!0},me),t.registerCommand(Pm,e=>{let r=H();return!!V(r)&&(r.insertLineBreak(e),!0)},me),t.registerCommand(No,()=>{let e=H();return!!V(e)&&(e.insertParagraph(),!0)},me),t.registerCommand(oi,()=>(ks([Jr()]),!0),me),t.registerCommand(Br,()=>sK(e=>{let r=e.getIndent();e.setIndent(r+1)}),me),t.registerCommand(xn,()=>sK(e=>{let r=e.getIndent();r>0&&e.setIndent(Math.max(0,r-1))}),me),t.registerCommand(Qr,e=>{let r=H();if(Je(r)){let n=r.getNodes();if(n.length>0)return e.preventDefault(),n[0].selectPrevious(),!0}else if(V(r)){let n=Om(r.focus,!0);if(!e.shiftKey&&Xr(n)&&!n.isIsolated()&&!n.isInline())return n.selectPrevious(),e.preventDefault(),!0}return!1},me),t.registerCommand(Zn,e=>{let r=H();if(Je(r)){let n=r.getNodes();if(n.length>0)return e.preventDefault(),n[0].selectNext(0,0),!0}else if(V(r)){if(function(o){let i=o.focus;return i.key==="root"&&i.offset===At().getChildrenSize()}(r))return e.preventDefault(),!0;let n=Om(r.focus,!1);if(!e.shiftKey&&Xr(n)&&!n.isIsolated()&&!n.isInline())return n.selectNext(),e.preventDefault(),!0}return!1},me),t.registerCommand(ii,e=>{let r=H();if(Je(r)){let n=r.getNodes();if(n.length>0)return e.preventDefault(),Um(n[0])?n[0].selectNext(0,0):n[0].selectPrevious(),!0}if(!V(r))return!1;if(Bl(r,!0)){let n=e.shiftKey;return e.preventDefault(),Fl(r,n,!0),!0}return!1},me),t.registerCommand(_a,e=>{let r=H();if(Je(r)){let o=r.getNodes();if(o.length>0)return e.preventDefault(),Um(o[0])?o[0].selectPrevious():o[0].selectNext(0,0),!0}if(!V(r))return!1;let n=e.shiftKey;return!!Bl(r,!1)&&(e.preventDefault(),Fl(r,n,!1),!0)},me),t.registerCommand(wa,e=>{if(aK(e.target))return!1;let r=H();if(V(r)){if(function(n){if(!n.isCollapsed())return!1;let{anchor:o}=n;if(o.offset!==0)return!1;let i=o.getNode();if(ni(i))return!1;let s=La(i);return s.getIndent()>0&&(s.is(i)||i.is(s.getFirstDescendant()))}(r))return e.preventDefault(),t.dispatchCommand(xn,void 0);if(oK&&navigator.language==="ko-KR")return!1}else if(!Je(r))return!1;return e.preventDefault(),t.dispatchCommand(Ji,!0)},me),t.registerCommand(Ea,e=>{if(aK(e.target))return!1;let r=H();return!(!V(r)&&!Je(r))&&(e.preventDefault(),t.dispatchCommand(Ji,!1))},me),t.registerCommand(E2,e=>{let r=H();if(!V(r))return!1;if(H6(r),e!==null){if((oK||Wve||Yve)&&Kve)return!1;if(e.preventDefault(),e.shiftKey)return t.dispatchCommand(Pm,!1)}return t.dispatchCommand(No,void 0)},me),t.registerCommand(Xi,()=>{let e=H();return!!V(e)&&(t.blur(),!0)},me),t.registerCommand(S2,e=>{let[,r]=z1(e);if(r.length>0){let o=nK(e.clientX,e.clientY);if(o!==null){let{offset:i,node:s}=o,a=gt(s);if(a!==null){let l=yn();if(ie(a))l.anchor.set(a.getKey(),i,"text"),l.focus.set(a.getKey(),i,"text");else{let u=a.getParentOrThrow().getKey(),d=a.getIndexWithinParent()+1;l.anchor.set(u,d,"element"),l.focus.set(u,d,"element")}let c=Yn(l);qe(c)}t.dispatchCommand(U6,r)}return e.preventDefault(),!0}let n=H();return!!V(n)},me),t.registerCommand(C2,e=>{let[r]=z1(e),n=H();return!(r&&!V(n))},me),t.registerCommand(x2,e=>{let[r]=z1(e),n=H();if(r&&!V(n))return!1;let o=nK(e.clientX,e.clientY);if(o!==null){let i=gt(o.node);Xr(i)&&e.preventDefault()}return!0},me),t.registerCommand(L2,()=>(lu(),!0),me),t.registerCommand(fu,e=>(Pa(t,Er(e,ClipboardEvent)?e:null),!0),me),t.registerCommand(pu,e=>(async function(r,n){await Pa(n,Er(r,ClipboardEvent)?r:null),n.update(()=>{let o=H();V(o)?o.removeText():Je(o)&&o.getNodes().forEach(i=>i.remove())})}(e,t),!0),me),t.registerCommand(Pl,e=>{let[,r,n]=z1(e);return r.length>0&&!n?(t.dispatchCommand(U6,r),!0):zr(e.target)&&V2(e.target)?!1:H()!==null&&(function(o,i){o.preventDefault(),i.update(()=>{let s=H(),a=Er(o,InputEvent)||Er(o,KeyboardEvent)?null:o.clipboardData;a!=null&&s!==null&&ug(a,s,i)},{tag:$2})}(e,t),!0)},me),t.registerCommand(yu,e=>{let r=H();return V(r)&&H6(r),!1},me),t.registerCommand(Do,e=>{let r=H();return V(r)&&H6(r),!1},me))}var xf,Hve,Uve,Kve,Wve,oK,Gve,Yve,U6,vg,yg,Xve,uK=ue(async()=>{"use strict";await F1();await B6();await es();await cn();await ht();xf=typeof window<"u"&&window.document!==void 0&&window.document.createElement!==void 0,Hve=xf&&"documentMode"in document?document.documentMode:null,Uve=xf&&/Mac|iPod|iPhone|iPad/.test(navigator.platform),Kve=!(!xf||!("InputEvent"in window)||Hve)&&"getTargetRanges"in new window.InputEvent("input"),Wve=xf&&/Version\/[\d.]+.*Safari/.test(navigator.userAgent),oK=xf&&/iPad|iPhone|iPod/.test(navigator.userAgent)&&!window.MSStream,Gve=xf&&/^(?=.*Chrome).*/i.test(navigator.userAgent),Yve=xf&&/AppleWebKit\/[\d.]+/.test(navigator.userAgent)&&Uve&&!Gve,U6=wt("DRAG_DROP_PASTE_FILE"),vg=class t extends kt{static getType(){return"quote"}static clone(e){return new t(e.__key)}createDOM(e){let r=document.createElement("blockquote");return Pe(r,e.theme.quote),r}updateDOM(e,r){return!1}static importDOM(){return{blockquote:e=>({conversion:qve,priority:0})}}exportDOM(e){let{element:r}=super.exportDOM(e);if(Nt(r)){this.isEmpty()&&r.append(document.createElement("br"));let n=this.getFormatType();n&&(r.style.textAlign=n);let o=this.getDirection();o&&(r.dir=o)}return{element:r}}static importJSON(e){return K6().updateFromJSON(e)}insertNewAfter(e,r){let n=de(),o=this.getDirection();return n.setDirection(o),this.insertAfter(n,r),n}collapseAtStart(){let e=de();return this.getChildren().forEach(r=>e.append(r)),this.replace(e),!0}canMergeWhenEmpty(){return!0}};yg=class t extends kt{__tag;static getType(){return"heading"}static clone(e){return new t(e.__tag,e.__key)}constructor(e,r){super(r),this.__tag=e}getTag(){return this.__tag}setTag(e){let r=this.getWritable();return this.__tag=e,r}createDOM(e){let r=this.__tag,n=document.createElement(r),o=e.theme.heading;if(o!==void 0){let i=o[r];Pe(n,i)}return n}updateDOM(e,r,n){return e.__tag!==this.__tag}static importDOM(){return{h1:e=>({conversion:gg,priority:0}),h2:e=>({conversion:gg,priority:0}),h3:e=>({conversion:gg,priority:0}),h4:e=>({conversion:gg,priority:0}),h5:e=>({conversion:gg,priority:0}),h6:e=>({conversion:gg,priority:0}),p:e=>{let r=e.firstChild;return r!==null&&iK(r)?{conversion:()=>({node:null}),priority:3}:null},span:e=>iK(e)?{conversion:r=>({node:hg("h1")}),priority:3}:null}}exportDOM(e){let{element:r}=super.exportDOM(e);if(Nt(r)){this.isEmpty()&&r.append(document.createElement("br"));let n=this.getFormatType();n&&(r.style.textAlign=n);let o=this.getDirection();o&&(r.dir=o)}return{element:r}}static importJSON(e){return hg(e.tag).updateFromJSON(e)}updateFromJSON(e){return super.updateFromJSON(e).setTag(e.tag)}exportJSON(){return{...super.exportJSON(),tag:this.getTag()}}insertNewAfter(e,r=!0){let n=e?e.anchor.offset:0,o=this.getLastDescendant(),i=!o||e&&e.anchor.key===o.getKey()&&n===o.getTextContentSize()||!e?de():hg(this.getTag()),s=this.getDirection();if(i.setDirection(s),this.insertAfter(i,r),n===0&&!this.isEmpty()&&e){let a=de();a.select(),this.replace(a,!0)}return i}collapseAtStart(){let e=this.isEmpty()?de():hg(this.getTag());return this.getChildren().forEach(r=>e.append(r)),this.replace(e),!0}extractWithChild(){return!0}};Xve=Ye({conflictsWith:["@lexical/plain-text"],dependencies:[I4],name:"@lexical/rich-text",nodes:[yg,vg],register:lK})});var Fa,k4,R4,P4,ku,hBe,bg,xg,vBe,yBe,bBe,F4=ue(async()=>{"use strict";Fa=await(process.env.NODE_ENV!=="production"?rK().then(()=>tK):uK().then(()=>cK)),k4=Fa.$createHeadingNode,R4=Fa.$createQuoteNode,P4=Fa.$isHeadingNode,ku=Fa.$isQuoteNode,hBe=Fa.DRAG_DROP_PASTE,bg=Fa.HeadingNode,xg=Fa.QuoteNode,vBe=Fa.RichTextExtension,yBe=Fa.eventFiles,bBe=Fa.registerRichText});var FK={};Pt(FK,{$computeTableMap:()=>mo,$computeTableMapSkipCellCheck:()=>Kl,$createTableCellNode:()=>ui,$createTableNode:()=>W4,$createTableNodeWithDimensions:()=>xK,$createTableRowNode:()=>_f,$createTableSelection:()=>o9,$createTableSelectionFrom:()=>NK,$deleteTableColumn:()=>uye,$deleteTableColumnAtSelection:()=>EK,$deleteTableColumn__EXPERIMENTAL:()=>fye,$deleteTableRowAtSelection:()=>wK,$deleteTableRow__EXPERIMENTAL:()=>dye,$findCellNode:()=>_g,$findTableNode:()=>Wl,$getElementForTableNode:()=>IK,$getNodeTriplet:()=>Ln,$getTableAndElementByKey:()=>i9,$getTableCellNodeFromLexicalNode:()=>rye,$getTableCellNodeRect:()=>q6,$getTableColumnIndexFromTableCellNode:()=>oye,$getTableNodeFromLexicalNodeOrThrow:()=>U4,$getTableRowIndexFromTableCellNode:()=>nye,$getTableRowNodeFromTableCellNodeOrThrow:()=>r9,$insertTableColumn:()=>lye,$insertTableColumnAtSelection:()=>_K,$insertTableColumn__EXPERIMENTAL:()=>cye,$insertTableRow:()=>sye,$insertTableRowAtSelection:()=>SK,$insertTableRow__EXPERIMENTAL:()=>aye,$isScrollableTablesActive:()=>U1,$isTableCellNode:()=>ze,$isTableNode:()=>Vr,$isTableRowNode:()=>cr,$isTableSelection:()=>Ut,$mergeCells:()=>TK,$removeTableRowAtIndex:()=>iye,$unmergeCell:()=>mye,INSERT_TABLE_COMMAND:()=>bK,TableCellHeaderStates:()=>br,TableCellNode:()=>za,TableExtension:()=>Wye,TableNode:()=>ja,TableObserver:()=>H4,TableRowNode:()=>Sf,applyTableHandlers:()=>DK,getDOMCellFromTarget:()=>H1,getTableElement:()=>Ru,getTableObserverFromTableElement:()=>l9,registerTableCellUnmergeTransform:()=>kK,registerTablePlugin:()=>PK,registerTableSelectionObserver:()=>RK,setScrollableTablesActive:()=>MK});function W6(t){return t==="middle"||t==="bottom"}function dK(t){let e=t,r=t.nodeName.toLowerCase(),n;e9.test(e.style.width)&&(n=parseFloat(e.style.width));let o=ui(r==="th"?br.ROW:br.NO_STATUS,e.colSpan,n);o.__rowSpan=e.rowSpan;let i=e.style.backgroundColor;i!==""&&(o.__backgroundColor=i);let s=e.style.verticalAlign;W6(s)&&(o.__verticalAlign=s);let a=e.style,l=(a&&a.textDecoration||"").split(" "),c=a.fontWeight==="700"||a.fontWeight==="bold",u=l.includes("line-through"),d=a.fontStyle==="italic",f=l.includes("underline");return{after:p=>{let m=[],g=null,h=()=>{if(g){let v=g.getFirstChild();Ge(v)&&g.getChildrenSize()===1&&v.remove()}};for(let v of p)p2(v)||ie(v)||Ge(v)?(ie(v)&&(c&&v.toggleFormat("bold"),u&&v.toggleFormat("strikethrough"),d&&v.toggleFormat("italic"),f&&v.toggleFormat("underline")),g?g.append(v):(g=de().append(v),m.push(g))):(m.push(v),h(),g=null);return h(),m.length===0&&m.push(de()),m},node:o}}function ui(t=br.NO_STATUS,e=1,r){return Mt(new za(t,e,r))}function ze(t){return t instanceof za}function we(t){throw new Error(t)}function eye(t){let e=t,r;return e9.test(e.style.height)&&(r=parseFloat(e.style.height)),{after:n=>Wm(n,ze),node:_f(r)}}function _f(t){return Mt(new Sf(t))}function cr(t){return t instanceof Sf}function xK(t,e,r=!0){let n=W4();for(let o=0;o<t;o++){let i=_f();for(let s=0;s<e;s++){let a=br.NO_STATUS;typeof r=="object"?(o===0&&r.rows&&(a|=br.ROW),s===0&&r.columns&&(a|=br.COLUMN)):r&&(o===0&&(a|=br.ROW),s===0&&(a|=br.COLUMN));let l=ui(a),c=de();c.append(bt()),l.append(c),i.append(l)}n.append(i)}return n}function rye(t){let e=se(t,r=>ze(r));return ze(e)?e:null}function r9(t){let e=se(t,r=>cr(r));if(cr(e))return e;throw new Error("Expected table cell to be inside of table row.")}function U4(t){let e=se(t,r=>Vr(r));if(Vr(e))return e;throw new Error("Expected table cell to be inside of table.")}function nye(t){let e=r9(t);return U4(e).getChildren().findIndex(n=>n.is(e))}function oye(t){return r9(t).getChildren().findIndex(r=>r.is(t))}function CK(t,e){let r=U4(t),{x:n,y:o}=r.getCordsFromCellNode(t,e);return{above:r.getCellNodeFromCords(n,o-1,e),below:r.getCellNodeFromCords(n,o+1,e),left:r.getCellNodeFromCords(n-1,o,e),right:r.getCellNodeFromCords(n+1,o,e)}}function iye(t,e){let r=t.getChildren();if(e>=r.length||e<0)throw new Error("Expected table cell to be inside of table row.");return r[e].remove(),t}function sye(t,e,r=!0,n,o){let i=t.getChildren();if(e>=i.length||e<0)throw new Error("Table row target index out of range");let s=i[e];if(cr(s))for(let a=0;a<n;a++){let l=s.getChildren(),c=l.length,u=_f();for(let d=0;d<c;d++){let f=l[d];ze(f)||we("Expected table cell");let{above:p,below:m}=CK(f,o),g=br.NO_STATUS,h=p&&p.getWidth()||m&&m.getWidth()||void 0;(p&&p.hasHeaderState(br.COLUMN)||m&&m.hasHeaderState(br.COLUMN))&&(g|=br.COLUMN);let v=ui(g,1,h);v.append(de()),u.append(v)}r?s.insertAfter(u):s.insertBefore(u)}else throw new Error("Row before insertion index does not exist.");return t}function SK(t=!0){let e=H();V(e)||Ut(e)||we("Expected a RangeSelection or TableSelection");let r=e.anchor.getNode(),n=e.focus.getNode(),[o]=Ln(r),[i,,s]=Ln(n),[,a,l]=mo(s,i,o),{startRow:c}=l,{startRow:u}=a;return t?Y6(c+o.__rowSpan>u+i.__rowSpan?o:i,!0):Y6(u<c?i:o,!1)}function Y6(t,e=!0){let[,,r]=Ln(t),[n,o]=mo(r,t,t),i=n[0].length,{startRow:s}=o,a=null;if(e){let l=s+t.__rowSpan-1,c=n[l],u=_f();for(let f=0;f<i;f++){let{cell:p,startRow:m}=c[f];if(m+p.__rowSpan-1<=l){let h=c[f].cell.__headerState,v=G6(h,br.COLUMN);u.append(ui(v).append(de()))}else p.setRowSpan(p.__rowSpan+1)}let d=r.getChildAtIndex(l);cr(d)||we("insertAfterEndRow is not a TableRowNode"),d.insertAfter(u),a=u}else{let l=s,c=n[l],u=_f();for(let f=0;f<i;f++){let{cell:p,startRow:m}=c[f];if(m===l){let h=c[f].cell.__headerState,v=G6(h,br.COLUMN);u.append(ui(v).append(de()))}else p.setRowSpan(p.__rowSpan+1)}let d=r.getChildAtIndex(l);cr(d)||we("insertBeforeStartRow is not a TableRowNode"),d.insertBefore(u),a=u}return a}function lye(t,e,r=!0,n,o){let i=t.getChildren(),s=[];for(let a=0;a<i.length;a++){let l=i[a];if(cr(l))for(let c=0;c<n;c++){let u=l.getChildren();if(e>=u.length||e<0)throw new Error("Table column target index out of range");let d=u[e];ze(d)||we("Expected table cell");let{left:f,right:p}=CK(d,o),m=br.NO_STATUS;(f&&f.hasHeaderState(br.ROW)||p&&p.hasHeaderState(br.ROW))&&(m|=br.ROW);let g=ui(m);g.append(de()),s.push({newTableCell:g,targetCell:d})}}return s.forEach(({newTableCell:a,targetCell:l})=>{r?l.insertAfter(a):l.insertBefore(a)}),t}function _K(t=!0){let e=H();V(e)||Ut(e)||we("Expected a RangeSelection or TableSelection");let r=e.anchor.getNode(),n=e.focus.getNode(),[o]=Ln(r),[i,,s]=Ln(n),[,a,l]=mo(s,i,o),{startColumn:c}=l,{startColumn:u}=a;return t?Z6(c+o.__colSpan>u+i.__colSpan?o:i,!0):Z6(u<c?i:o,!1)}function Z6(t,e=!0,r=!0){let[,,n]=Ln(t),[o,i]=mo(n,t,t),s=o.length,{startColumn:a}=i,l=e?a+t.__colSpan-1:a-1,c=n.getFirstChild();cr(c)||we("Expected firstTable child to be a row");let u=null;function d(m=br.NO_STATUS){let g=ui(m).append(de());return u===null&&(u=g),g}let f=c;e:for(let m=0;m<s;m++){if(m!==0){let S=f.getNextSibling();cr(S)||we("Expected row nextSibling to be a row"),f=S}let g=o[m],h=g[l<0?0:l].cell.__headerState,v=G6(h,br.ROW);if(l<0){n9(f,d(v));continue}let{cell:y,startColumn:b,startRow:x}=g[l];if(b+y.__colSpan-1<=l){let S=y,_=x,w=l;for(;_!==m&&S.__rowSpan>1;)if(w-=y.__colSpan,w>=0){let{cell:T,startRow:N}=g[w];S=T,_=N}else{f.append(d(v));continue e}S.insertAfter(d(v))}else y.setColSpan(y.__colSpan+1)}u!==null&&r&&V1(u);let p=n.getColWidths();if(p){let m=[...p],g=l<0?0:l,h=m[g];m.splice(g,0,h),n.setColWidths(m)}return u}function uye(t,e){let r=t.getChildren();for(let n=0;n<r.length;n++){let o=r[n];if(cr(o)){let i=o.getChildren();if(e>=i.length||e<0)throw new Error("Table column target index out of range");i[e].remove()}}return t}function wK(){let t=H();V(t)||Ut(t)||we("Expected a RangeSelection or TableSelection");let[e,r]=t.isBackward()?[t.focus.getNode(),t.anchor.getNode()]:[t.anchor.getNode(),t.focus.getNode()],[n,,o]=Ln(e),[i]=Ln(r),[s,a,l]=mo(o,n,i),{startRow:c}=a,{startRow:u}=l,d=u+i.__rowSpan-1;if(s.length===d-c+1){o.remove();return}let f=s[0].length,p=s[d+1],m=o.getChildAtIndex(d+1);for(let g=d;g>=c;g--){for(let v=f-1;v>=0;v--){let{cell:y,startRow:b,startColumn:x}=s[g][v];if(x===v){if(b<c||b+y.__rowSpan-1>d){let S=Math.max(b,c),_=Math.min(y.__rowSpan+b-1,d),w=S<=_?_-S+1:0;y.setRowSpan(y.__rowSpan-w)}if(b>=c&&b+y.__rowSpan-1>d&&g===d){m===null&&we("Expected nextRowNode not to be null");let S=null;for(let _=0;_<v;_++){let w=p[_],T=w.cell;w.startRow===g+1&&(S=T),T.__colSpan>1&&(_+=T.__colSpan-1)}S===null?n9(m,y):S.insertAfter(y)}}}let h=o.getChildAtIndex(g);cr(h)||we(`Expected TableNode childAtIndex(${String(g)}) to be RowNode`),h.remove()}if(p!==void 0){let{cell:g}=p[0];V1(g)}else{let g=s[c-1],{cell:h}=g[0];V1(h)}}function EK(){let t=H();V(t)||Ut(t)||we("Expected a RangeSelection or TableSelection");let e=t.anchor.getNode(),r=t.focus.getNode(),[n,,o]=Ln(e),[i]=Ln(r),[s,a,l]=mo(o,n,i),{startColumn:c}=a,{startRow:u,startColumn:d}=l,f=Math.min(c,d),p=Math.max(c+n.__colSpan-1,d+i.__colSpan-1),m=p-f+1;if(s[0].length===p-f+1){o.selectPrevious(),o.remove();return}let h=s.length;for(let x=0;x<h;x++)for(let S=f;S<=p;S++){let{cell:_,startColumn:w}=s[x][S];if(w<f){if(S===f){let T=f-w;_.setColSpan(_.__colSpan-Math.min(m,_.__colSpan-T))}}else if(w+_.__colSpan-1>p){if(S===p){let T=p-w+1;_.setColSpan(_.__colSpan-T)}}else _.remove()}let v=s[u],y=c>d?v[c+n.__colSpan]:v[d+i.__colSpan];if(y!==void 0){let{cell:x}=y;V1(x)}else{let x=d<c?v[d-1]:v[c-1],{cell:S}=x;V1(S)}let b=o.getColWidths();if(b){let x=[...b];x.splice(f,m),o.setColWidths(x)}}function V1(t){let e=t.getFirstDescendant();e==null?t.selectStart():e.getParentOrThrow().selectStart()}function n9(t,e){let r=t.getFirstChild();r!==null?r.insertBefore(e):t.append(e)}function TK(t){if(t.length===0)return null;let e=U4(t[0]),[r]=Kl(e,null,null),n=1/0,o=-1/0,i=1/0,s=-1/0,a=new Set;for(let p of r)for(let m of p){if(!m||!m.cell)continue;let g=m.cell.getKey();if(!a.has(g)&&t.some(h=>h.is(m.cell))){a.add(g);let h=m.startRow,v=m.startColumn,y=m.cell.__rowSpan||1,b=m.cell.__colSpan||1;n=Math.min(n,h),o=Math.max(o,h+y-1),i=Math.min(i,v),s=Math.max(s,v+b-1)}}if(n===1/0||i===1/0)return null;let l=o-n+1,c=s-i+1,u=r[n][i];if(!u.cell)return null;let d=u.cell;d.setColSpan(c),d.setRowSpan(l);let f=new Set([d.getKey()]);for(let p=n;p<=o;p++)for(let m=i;m<=s;m++){let g=r[p][m];if(!g.cell)continue;let h=g.cell,v=h.getKey();f.has(v)||(f.add(v),pye(h)||d.append(...h.getChildren()),h.remove())}return d.getChildrenSize()===0&&d.append(de()),d}function pye(t){if(t.getChildrenSize()!==1)return!1;let e=t.getFirstChildOrThrow();return!(!Gn(e)||!e.isEmpty())}function mye(){let t=H();V(t)||Ut(t)||we("Expected a RangeSelection or TableSelection");let e=t.anchor.getNode(),r=se(e,ze);return ze(r)||we("Expected to find a parent TableCellNode"),$K(r)}function $K(t){let[e,r,n]=Ln(t),o=e.__colSpan,i=e.__rowSpan;if(o===1&&i===1)return;let[s,a]=mo(n,e,e),{startColumn:l,startRow:c}=a,u=e.__headerState&br.COLUMN,d=Array.from({length:o},(m,g)=>{let h=u;for(let v=0;h!==0&&v<s.length;v++)h&=s[v][g+l].cell.__headerState;return h}),f=e.__headerState&br.ROW,p=Array.from({length:i},(m,g)=>{let h=f;for(let v=0;h!==0&&v<s[0].length;v++)h&=s[g+c][v].cell.__headerState;return h});if(o>1){for(let m=1;m<o;m++)e.insertAfter(ui(d[m]|p[0]).append(de()));e.setColSpan(1)}if(i>1){let m;for(let g=1;g<i;g++){let h=c+g,v=s[h];m=(m||r).getNextSibling(),cr(m)||we("Expected row next sibling to be a row");let y=null;for(let b=0;b<l;b++){let x=v[b],S=x.cell;x.startRow===h&&(y=S),S.__colSpan>1&&(b+=S.__colSpan-1)}if(y===null)for(let b=o-1;b>=0;b--)n9(m,ui(d[b]|p[g]).append(de()));else for(let b=o-1;b>=0;b--)y.insertAfter(ui(d[b]|p[g]).append(de()))}e.setRowSpan(1)}}function mo(t,e,r){let[n,o,i]=Kl(t,e,r);return o===null&&we("Anchor not found in Table"),i===null&&we("Focus not found in Table"),[n,o,i]}function Kl(t,e,r){let n=[],o=null,i=null;function s(l){let c=n[l];return c===void 0&&(n[l]=c=[]),c}let a=t.getChildren();for(let l=0;l<a.length;l++){let c=a[l];cr(c)||we("Expected TableNode children to be TableRowNode");let u=s(l);for(let d=c.getFirstChild(),f=0;d!=null;d=d.getNextSibling()){for(ze(d)||we("Expected TableRowNode children to be TableCellNode");u[f]!==void 0;)f++;let p={cell:d,startColumn:f,startRow:l},{__rowSpan:m,__colSpan:g}=d;for(let h=0;h<m&&!(l+h>=a.length);h++){let v=s(l+h);for(let y=0;y<g;y++)v[f+y]=p}e!==null&&o===null&&e.is(d)&&(o=p),r!==null&&i===null&&r.is(d)&&(i=p)}}return[n,o,i]}function Ln(t){let e;if(t instanceof za)e=t;else if("__type"in t){let o=se(t,ze);ze(o)||we("Expected to find a parent TableCellNode"),e=o}else{let o=se(t.getNode(),ze);ze(o)||we("Expected to find a parent TableCellNode"),e=o}let r=e.getParent();cr(r)||we("Expected TableCellNode to have a parent TableRowNode");let n=r.getParent();return Vr(n)||we("Expected TableRowNode to have a parent TableNode"),[e,r,n]}function gye(t,e){let{minColumn:r,maxColumn:n,minRow:o,maxRow:i}=e,s=1,a=1,l=1,c=1,u=t[o],d=t[i];for(let f=r;f<=n;f++)s=Math.max(s,u[f].cell.__rowSpan),c=Math.max(c,d[f].cell.__rowSpan);for(let f=o;f<=i;f++)a=Math.max(a,t[f][r].cell.__colSpan),l=Math.max(l,t[f][n].cell.__colSpan);return{bottomSpan:c,leftSpan:a,rightSpan:l,topSpan:s}}function K4(t,e,r){let n=Math.min(e.startColumn,r.startColumn),o=Math.min(e.startRow,r.startRow),i=Math.max(e.startColumn+e.cell.__colSpan-1,r.startColumn+r.cell.__colSpan-1),s=Math.max(e.startRow+e.cell.__rowSpan-1,r.startRow+r.cell.__rowSpan-1),a;do{a=!1;for(let l=0;l<t.length;l++)for(let c=0;c<t[0].length;c++){let u=t[l][c];if(!u)continue;let d=u.startColumn+u.cell.__colSpan-1,f=u.startRow+u.cell.__rowSpan-1,p=u.startColumn<=i&&d>=n,m=u.startRow<=s&&f>=o;if(p&&m){let g=Math.min(n,u.startColumn),h=Math.max(i,d),v=Math.min(o,u.startRow),y=Math.max(s,f);(g!==n||h!==i||v!==o||y!==s)&&(n=g,i=h,o=v,s=y,a=!0)}}}while(a);return{maxColumn:i,maxRow:s,minColumn:n,minRow:o}}function q6(t){let[e,,r]=Ln(t),n=r.getChildren(),o=n.length,i=n[0].getChildren().length,s=new Array(o);for(let a=0;a<o;a++)s[a]=new Array(i);for(let a=0;a<o;a++){let c=n[a].getChildren(),u=0;for(let d=0;d<c.length;d++){for(;s[a][u];)u++;let f=c[d],p=f.__rowSpan||1,m=f.__colSpan||1;for(let g=0;g<p;g++)for(let h=0;h<m;h++)s[a+g][u+h]=f;if(e===f)return{colSpan:m,columnIndex:u,rowIndex:a,rowSpan:p};u+=m}}return null}function pK(t){let[[e,r,n,o],[i,s,a,l]]=["anchor","focus"].map(c=>{let u=t[c].getNode(),d=se(u,ze);ze(d)||we(`Expected TableSelection ${c} to be (or a child of) TableCellNode, got key ${u.getKey()} of type ${u.getType()}`);let f=d.getParent();cr(f)||we(`Expected TableSelection ${c} cell parent to be a TableRowNode`);let p=f.getParent();return Vr(p)||we(`Expected TableSelection ${c} row parent to be a TableNode`),[u,d,f,p]});return o.is(l)||we("Expected TableSelection anchor and focus to be in the same table"),{anchorCell:r,anchorNode:e,anchorRow:n,anchorTable:o,focusCell:s,focusNode:i,focusRow:a,focusTable:l}}function Ut(t){return t instanceof V4}function o9(){let t=vn("root",0,"element"),e=vn("root",0,"element");return new V4("root",t,e)}function NK(t,e,r){let n=t.getKey(),o=e.getKey(),i=r.getKey();t.isAttached()||we(`$createTableSelectionFrom: tableNode ${n} is not attached`),t.is(Wl(e))||we(`$createTableSelectionFrom: anchorCell ${o} is not in table ${n}`),t.is(Wl(r))||we(`$createTableSelectionFrom: focusCell ${i} is not in table ${n}`);let s=H(),a=Ut(s)?s.clone():o9();return a.set(t.getKey(),e.getKey(),r.getKey()),a}function hye(t,e){let r=[[t]];for(let n=r.at(-1);n!==void 0&&r.length>0;n=r.at(-1)){let o=n.pop();o===void 0?r.pop():e(o)!==!1&&G(o)&&r.push(o.getChildren())}}function i9(t,e=ri()){let r=st(t);Vr(r)||we(`TableObserver: Expected tableNodeKey ${t} to be a TableNode`);let n=Ru(r,e.getElementByKey(t));return n===null&&we(`TableObserver: Expected to find TableElement in DOM for key ${t}`),{tableElement:n,tableNode:r}}function Sg(t){return ai(t)&&t.nodeName==="TABLE"}function Ru(t,e){if(!e)return e;let r=Sg(e)?e:t.getDOMSlot(e).element;return r.nodeName!=="TABLE"&&we(`getTableElement: Expecting table in as DOM node for TableNode, not ${e.nodeName}`),r}function a9(t){return t._window}function j1(t,e){for(let r=e,n=null;r!==null;r=r.getParent()){if(t.is(r))return n;ze(r)&&(n=r)}return null}function DK(t,e,r,n){let o=r.getRootElement(),i=a9(r);o!==null&&i!==null||we("applyTableHandlers: editor has no root element set");let s=new H4(r,t.getKey()),a=Ru(t,e);Sye(a,s),s.listenersToRemove.add(()=>Cye(a,s));let l=()=>{if(s.isSelecting)return;let m=()=>{s.isSelecting=!1,i.removeEventListener("pointerup",m),i.removeEventListener("pointermove",g)},g=h=>{if(!vye(h)&&s.isSelecting){s.isSelecting=!1,i.removeEventListener("pointerup",m),i.removeEventListener("pointermove",g);return}if(!zr(h.target))return;let v=null,y=!(fK||a.contains(h.target));if(y)v=mK(a,h.target);else for(let b of document.elementsFromPoint(h.clientX,h.clientY))if(v=mK(a,b),v)break;v&&(s.focusCell===null||v.elem!==s.focusCell.elem)&&(s.setNextFocus({focusCell:v,override:y}),r.dispatchCommand(si,void 0))};s.isSelecting=!0,i.addEventListener("pointerup",m,s.listenerOptions),i.addEventListener("pointermove",g,s.listenerOptions)},c=m=>{if(s.pointerType=m.pointerType,m.button!==0||!zr(m.target)||!i)return;let g=H1(m.target);g!==null&&r.update(()=>{let h=Wn();if(fK&&m.shiftKey&&Ba(h,t)&&(V(h)||Ut(h))){let v=h.anchor.getNode(),y=j1(t,h.anchor.getNode());y?(s.$setAnchorCellForSelection(Cf(s,y)),s.$setFocusCellForSelection(g),Ul(m)):(t.isBefore(v)?t.selectStart():t.selectEnd()).anchor.set(h.anchor.key,h.anchor.offset,h.anchor.type)}else m.pointerType!=="touch"&&s.$setAnchorCellForSelection(g)}),l()};a.addEventListener("pointerdown",c,s.listenerOptions),s.listenersToRemove.add(()=>{a.removeEventListener("pointerdown",c)});let u=m=>{m.detail>=3&&zr(m.target)&&H1(m.target)!==null&&m.preventDefault()};a.addEventListener("mousedown",u,s.listenerOptions),s.listenersToRemove.add(()=>{a.removeEventListener("mousedown",u)});let d=m=>{let g=m.target;m.button!==0||!zr(g)||r.update(()=>{let h=H();Ut(h)&&h.tableKey===s.tableNodeKey&&o.contains(g)&&s.$clearHighlight()})};i.addEventListener("pointerdown",d,s.listenerOptions),s.listenersToRemove.add(()=>{i.removeEventListener("pointerdown",d)});for(let[m,g]of yye)s.listenersToRemove.add(r.registerCommand(m,h=>OK(r,h,g,t,s),uu));s.listenersToRemove.add(r.registerCommand(Xi,m=>{let g=H();if(Ut(g)){let h=j1(t,g.focus.getNode());if(h!==null)return Ul(m),h.selectEnd(),!0}return!1},uu));let f=m=>()=>{let g=H();if(!Ba(g,t))return!1;if(Ut(g))return s.$clearText(),!0;if(V(g)){let h=j1(t,g.anchor.getNode());if(!ze(h))return!1;let v=g.anchor.getNode(),y=g.focus.getNode(),b=t.isParentOf(v),x=t.isParentOf(y);if(b&&!x||x&&!b)return s.$clearText(),!0;let _=se(g.anchor.getNode(),T=>G(T)),w=_&&se(_,T=>G(T)&&ze(T.getParent()));if(!G(w)||!G(_))return!1;if(m===Ca&&w.getPreviousSibling()===null)return!0}return!1};for(let m of bye)s.listenersToRemove.add(r.registerCommand(m,f(m),Qt));let p=m=>{let g=H();if(!(Ut(g)||V(g)))return!1;let h=t.isParentOf(g.anchor.getNode()),v=t.isParentOf(g.focus.getNode());if(h!==v){let y=h?"anchor":"focus",b=h?"focus":"anchor",{key:x,offset:S,type:_}=g[b];return t[g[y].isBefore(g[b])?"selectPrevious":"selectNext"]()[b].set(x,S,_),!1}return Ba(g,t)&&Ut(g)?(m&&(m.preventDefault(),m.stopPropagation()),s.$clearText(),!0):!1};for(let m of xye)s.listenersToRemove.add(r.registerCommand(m,p,Qt));return s.listenersToRemove.add(r.registerCommand(pu,m=>{let g=H();if(g){if(!(Ut(g)||V(g)))return!1;Pa(r,Er(m,ClipboardEvent)?m:null,M4(g));let h=p(m);return V(g)?(g.removeText(),!0):h}return!1},Qt)),s.listenersToRemove.add(r.registerCommand(vu,m=>{let g=H();if(!Ba(g,t))return!1;if(Ut(g))return s.$formatCells(m),!0;if(V(g)){let h=se(g.anchor.getNode(),v=>ze(v));if(!ze(h))return!1}return!1},Qt)),s.listenersToRemove.add(r.registerCommand(hu,m=>{let g=H();if(!Ut(g)||!Ba(g,t))return!1;let h=g.anchor.getNode(),v=g.focus.getNode();if(!ze(h)||!ze(v))return!1;if(Dye(g,t))return t.setFormat(m),!0;let[y,b,x]=mo(t,h,v),S=Math.max(b.startRow+b.cell.__rowSpan-1,x.startRow+x.cell.__rowSpan-1),_=Math.max(b.startColumn+b.cell.__colSpan-1,x.startColumn+x.cell.__colSpan-1),w=Math.min(b.startRow,x.startRow),T=Math.min(b.startColumn,x.startColumn),N=new Set;for(let $=w;$<=S;$++)for(let E=T;E<=_;E++){let R=y[$][E].cell;if(N.has(R))continue;N.add(R),R.setFormat(m);let O=R.getChildren();for(let A=0;A<O.length;A++){let B=O[A];G(B)&&!B.isInline()&&B.setFormat(m)}}return!0},Qt)),s.listenersToRemove.add(r.registerCommand(du,m=>{let g=H();if(!Ba(g,t))return!1;if(Ut(g))return s.$clearHighlight(),!1;if(V(g)){let h=se(g.anchor.getNode(),v=>ze(v));if(!ze(h))return!1;if(typeof m=="string"){let v=vK(r,g,t);if(v)return hK(v,t,[bt(m)]),!0}}return!1},Qt)),n&&s.listenersToRemove.add(r.registerCommand(Do,m=>{let g=H();if(!V(g)||!g.isCollapsed()||!Ba(g,t))return!1;let h=_g(g.anchor.getNode());return h===null||!t.is(Wl(h))?!1:(Ul(m),wye(h,m.shiftKey?"previous":"next"),!0)},Qt)),s.listenersToRemove.add(r.registerCommand($1,m=>t.isSelected(),uu)),s.listenersToRemove.add(r.registerCommand(Ta,(m,g)=>{if(r!==g)return!1;let{nodes:h,selection:v}=m,y=v.getStartEndPoints(),b=Ut(v),S=V(v)&&se(v.anchor.getNode(),Z=>ze(Z))!==null&&se(v.focus.getNode(),Z=>ze(Z))!==null||b;if(h.length!==1||!Vr(h[0])||!S||y===null)return!1;let[_,w]=y,[T,N,$]=Ln(_),E=se(w.getNode(),Z=>ze(Z));if(!ze(T)||!ze(E)||!cr(N)||!Vr($))return!1;let R=h[0],[O,A,B]=mo($,T,E),[D]=Kl(R,null,null),F=O.length,P=F>0?O[0].length:0,z=A.startRow,j=A.startColumn,I=D.length,Y=I>0?D[0].length:0;if(b){let Z=K4(O,A,B),Ce=Z.maxRow-Z.minRow+1,ne=Z.maxColumn-Z.minColumn+1;z=Z.minRow,j=Z.minColumn,I=Math.min(I,Ce),Y=Math.min(Y,ne)}let te=!1,fe=Math.min(F,z+I)-1,xe=Math.min(P,j+Y)-1,Ze=new Set;for(let Z=z;Z<=fe;Z++)for(let Ce=j;Ce<=xe;Ce++){let ne=O[Z][Ce];Ze.has(ne.cell.getKey())||ne.cell.__rowSpan===1&&ne.cell.__colSpan===1||($K(ne.cell),Ze.add(ne.cell.getKey()),te=!0)}let[Ae]=Kl($.getWritable(),null,null),pe=I-F+z;for(let Z=0;Z<pe;Z++){let Ce=Ae[F-1][0];Y6(Ce.cell)}let Me=Y-P+j;for(let Z=0;Z<Me;Z++){let Ce=Ae[0][P-1];Z6(Ce.cell,!0,!1)}[Ae]=Kl($.getWritable(),null,null);for(let Z=z;Z<z+I;Z++)for(let Ce=j;Ce<j+Y;Ce++){let ne=Z-z,Fe=Ce-j,pt=D[ne][Fe];if(pt.startRow!==ne||pt.startColumn!==Fe)continue;let rt=pt.cell;if(rt.__rowSpan!==1||rt.__colSpan!==1){let X=[],He=Math.min(Z+rt.__rowSpan,z+I)-1,Ot=Math.min(Ce+rt.__colSpan,j+Y)-1;for(let nt=Z;nt<=He;nt++)for(let Zr=Ce;Zr<=Ot;Zr++){let Mo=Ae[nt][Zr];X.push(Mo.cell)}TK(X),te=!0}let{cell:it}=Ae[Z][Ce],fo=it.getChildren();rt.getChildren().forEach(X=>{ie(X)&&de().append(X),it.append(X)}),fo.forEach(X=>X.remove())}if(b&&te){let[Z]=Kl($.getWritable(),null,null);Z[A.startRow][A.startColumn].cell.selectEnd()}return!0},Qt)),s.listenersToRemove.add(r.registerCommand(si,()=>{let m=H(),g=Wn(),h=s.getAndClearNextFocus();if(h!==null){let{focusCell:y}=h;if(Ut(m)&&m.tableKey===s.tableNodeKey)return y.x===s.focusX&&y.y===s.focusY?!1:(s.$setFocusCellForSelection(y),!0);if(y!==s.anchorCell&&Ba(m,t))return s.$setFocusCellForSelection(y),!0}if(s.getAndClearShouldCheckSelection()&&V(g)&&V(m)&&m.isCollapsed()){let y=m.anchor.getNode(),b=t.getFirstChild(),x=_g(y);if(x!==null&&cr(b)){let S=b.getFirstChild();if(ze(S)&&t.is(se(x,_=>_.is(t)||_.is(S))))return S.selectStart(),!0}}if(V(m)){let{anchor:y,focus:b}=m,x=y.getNode(),S=b.getNode(),_=_g(x),w=_g(S),T=!!(_&&t.is(Wl(_))),N=!!(w&&t.is(Wl(w))),$=T!==N,E=T&&N,R=m.isBackward();if($){let O=m.clone();if(N){let[A]=mo(t,w,w),B=A[0][0].cell,D=A[A.length-1].at(-1).cell;O.focus.set(R?B.getKey():D.getKey(),R?B.getChildrenSize():D.getChildrenSize(),"element")}else if(T){let[A]=mo(t,_,_),B=A[0][0].cell,D=A[A.length-1].at(-1).cell;O.anchor.set(R?D.getKey():B.getKey(),R?D.getChildrenSize():0,"element")}qe(O),gK(r,s)}else if(E&&(_.is(w)||(s.$setAnchorCellForSelection(Cf(s,_)),s.$setFocusCellForSelection(Cf(s,w),!0)),s.pointerType==="touch"&&s.isSelecting&&m.isCollapsed()&&V(g)&&g.isCollapsed())){let O=_g(g.anchor.getNode());O&&!O.is(w)&&(s.$setAnchorCellForSelection(Cf(s,O)),s.$setFocusCellForSelection(Cf(s,w),!0),s.pointerType=null)}}else if(m&&Ut(m)&&m.is(g)&&m.tableKey===t.getKey()){let y=Lo(i);if(y&&y.anchorNode&&y.focusNode){let b=gt(y.focusNode),x=b&&!t.isParentOf(b),S=gt(y.anchorNode),_=S&&t.isParentOf(S);if(x&&_&&y.rangeCount>0){let w=i2(y,r);w&&(w.anchor.set(t.getKey(),m.isBackward()?t.getChildrenSize():0,"element"),y.removeAllRanges(),qe(w))}}}return m&&!m.is(g)&&(Ut(m)||Ut(g))&&s.tableSelection&&!s.tableSelection.is(g)?(Ut(m)&&m.tableKey===s.tableNodeKey?s.$updateTableTableSelection(m):!Ut(m)&&Ut(g)&&g.tableKey===s.tableNodeKey&&s.$updateTableTableSelection(null),!1):(s.hasHijackedSelectionStyles&&!t.isSelected()?_ye(r,s):!s.hasHijackedSelectionStyles&&t.isSelected()&&gK(r,s),!1)},Qt)),s.listenersToRemove.add(r.registerCommand(No,()=>{let m=H();if(!V(m)||!m.isCollapsed()||!Ba(m,t))return!1;let g=vK(r,m,t);return g?(hK(g,t),!0):!1},Qt)),s}function Cye(t,e){l9(t)===e&&delete t[s9]}function Sye(t,e){l9(t)!==null&&we("tableElement already has an attached TableObserver"),t[s9]=e}function l9(t){return t[s9]||null}function H1(t){let e=t;for(;e!=null;){let r=e.nodeName;if(r==="TD"||r==="TH"){let n=e._cell;return n===void 0?null:n}e=e.parentNode}return null}function mK(t,e){if(!t.contains(e))return null;let r=null;for(let n=e;n!=null;n=n.parentNode){if(n===t)return r;let o=n.nodeName;(o==="TD"||o==="TH")&&(r=n._cell||null)}return null}function wg(t,e){let r=Ru(t,e),n=[],o={columns:0,domRows:n,rows:0},i=r.querySelector("tr"),s=0,a=0;for(n.length=0;i!=null;){let l=i.nodeName;if(l==="TD"||l==="TH"){let d=i,f={elem:d,hasBackgroundColor:d.style.backgroundColor!=="",highlighted:!1,x:s,y:a};i._cell=f;let p=n[a];p===void 0&&(p=n[a]=[]),p[s]=f}else{let d=i.firstChild;if(d!=null){i=d;continue}}let c=i.nextSibling;if(c!=null){s++,i=c;continue}let u=i.parentNode;if(u!=null){let d=u.nextSibling;if(d==null)break;a++,s=0,i=d}}return o.columns=s+1,o.rows=a+1,o}function B4(t,e,r){let n=new Set(r?r.getNodes():[]);c9(e,(o,i)=>{let s=o.elem;n.has(i)?(o.highlighted=!0,LK(t,o)):(o.highlighted=!1,AK(t,o),s.getAttribute("style")||s.removeAttribute("style"))})}function c9(t,e){let{domRows:r}=t;for(let n=0;n<r.length;n++){let o=r[n];if(o)for(let i=0;i<o.length;i++){let s=o[i];if(!s)continue;let a=gt(s.elem);a!==null&&e(s,a,{x:i,y:n})}}}function gK(t,e){e.$disableHighlightStyle(),c9(e.table,r=>{r.highlighted=!0,LK(t,r)})}function _ye(t,e){e.$enableHighlightStyle(),c9(e.table,r=>{let n=r.elem;r.highlighted=!1,AK(t,r),n.getAttribute("style")||n.removeAttribute("style")})}function wye(t,e){let r=e==="next"?"getNextSibling":"getPreviousSibling",n=e==="next"?"getFirstChild":"getLastChild",o=t[r]();if(G(o))return o.selectEnd();let i=se(t,cr);i===null&&we("selectAdjacentCell: Cell not in table row");for(let a=i[r]();cr(a);a=a[r]()){let l=a[n]();if(G(l))return l.selectEnd()}let s=se(i,Vr);return s===null&&we("selectAdjacentCell: Row not in table"),e==="next"?s.selectNext():s.selectPrevious()}function J6(t,e){let r,n;if(e.startColumn===t.minColumn)r="minColumn";else if(e.startColumn+e.cell.__colSpan-1===t.maxColumn)r="maxColumn";else return null;if(e.startRow===t.minRow)n="minRow";else if(e.startRow+e.cell.__rowSpan-1===t.maxRow)n="maxRow";else return null;return[r,n]}function Tye(t,e){let r=J6(t,e);return r===null&&we(`getCornerOrThrow: cell ${e.cell.getKey()} is not at a corner of rect`),r}function j4([t,e]){return[t==="minColumn"?"maxColumn":"minColumn",e==="minRow"?"maxRow":"minRow"]}function Cg(t,e,[r,n]){let o=e[n],i=t[o];i===void 0&&we(`cellAtCornerOrThrow: ${n} = ${String(o)} missing in tableMap`);let s=e[r],a=i[s];return a===void 0&&we(`cellAtCornerOrThrow: ${r} = ${String(s)} missing in tableMap`),a}function $ye(t,e,r){let n=K4(t,e,r),o=J6(n,e);if(o)return[Cg(t,n,o),Cg(t,n,j4(o))];let i=J6(n,r);if(i)return[Cg(t,n,j4(i)),Cg(t,n,i)];let s=["minColumn","minRow"];return[Cg(t,n,s),Cg(t,n,j4(s))]}function Nye(t,e,r,n,o){let i=K4(e,r,n),s=gye(e,i),{topSpan:a,leftSpan:l,bottomSpan:c,rightSpan:u}=s,d=Tye(i,r),[f,p]=j4(d),m=i[f],g=i[p];o==="forward"?m+=f==="maxColumn"?1:l:o==="backward"?m-=f==="minColumn"?1:u:o==="down"?g+=p==="maxRow"?1:a:o==="up"&&(g-=p==="minRow"?1:c);let h=e[g];if(h===void 0)return!1;let v=h[m];if(v===void 0)return!1;let[y,b]=$ye(e,r,v),x=Cf(t,y.cell),S=Cf(t,b.cell);return t.$setAnchorCellForSelection(x),t.$setFocusCellForSelection(S,!0),!0}function Ba(t,e){if(V(t)||Ut(t)){let r=e.isParentOf(t.anchor.getNode()),n=e.isParentOf(t.focus.getNode());return r&&n}return!1}function Dye(t,e){if(Ut(t)){let r=t.anchor.getNode(),n=t.focus.getNode();if(e&&r&&n){let[o]=mo(e,r,n);return r.getKey()===o[0][0].cell.getKey()&&n.getKey()===o[o.length-1].at(-1).cell.getKey()}}return!1}function z4(t,e){e?t.selectStart():t.selectEnd()}function LK(t,e){let r=e.elem,n=t._config.theme,o=gt(r);ze(o)||we("Expected to find LexicalNode from Table Cell DOMNode"),Pe(r,n.tableCellSelected)}function AK(t,e){let r=e.elem,n=gt(r);ze(n)||we("Expected to find LexicalNode from Table Cell DOMNode");let o=t._config.theme;yr(r,o.tableCellSelected)}function _g(t){let e=se(t,ze);return ze(e)?e:null}function Wl(t){let e=se(t,Vr);return Vr(e)?e:null}function Lye(t){for(let e=t,r=t;r!==null;e=r,r=r.getParent())if(G(r)){if(r!==e&&r.getFirstChild()!==e)return null;if(!r.isInline())return r}return null}function Aye(t,e,r,n,o,i,s){let a=wo(r.focus,o?"previous":"next");if(iu(a))return!1;let l=a;for(let h of ya(a).iterNodeCarets("shadowRoot")){if(!(su(h)&&G(h.origin)))return!1;l=h}let c=l.getParentAtCaret();if(!ze(c))return!1;let u=c,d=Mye(Xt(u,l.direction)),f=se(u,Vr);if(!(f&&f.is(i)))return!1;let p=t.getElementByKey(u.getKey()),m=H1(p);if(!p||!m)return!1;let g=IK(t,f);if(s.table=g,d)if(n==="extend"){let h=H1(t.getElementByKey(d.origin.getKey()));if(!h)return!1;s.$setAnchorCellForSelection(m),s.$setFocusCellForSelection(h,!0)}else{let h=bn(d);$o(r.anchor,h),$o(r.focus,h)}else if(n==="extend")s.$setAnchorCellForSelection(m),s.$setFocusCellForSelection(m,!0);else{let h=Oye(Xt(f,a.direction));$o(r.anchor,h),$o(r.focus,h)}return Ul(e),!0}function Oye(t){let e=ba(t);return To(e)?bn(e):t}function Mye(t){for(let e of ya(t).iterNodeCarets("root")){let{origin:r}=e;if(ze(r)){if(To(e))return Dr(r,t.direction)}else if(!cr(r))break}return null}function OK(t,e,r,n,o){if((r==="up"||r==="down")&&Iye(t))return!1;let i=H();if(!Ba(i,n)){if(V(i)){if(r==="backward"){if(i.focus.offset>0)return!1;let s=Lye(i.focus.getNode());if(!s)return!1;let a=s.getPreviousSibling();return Vr(a)?(Ul(e),e.shiftKey?i.focus.set(a.getParentOrThrow().getKey(),a.getIndexWithinParent(),"element"):a.selectEnd(),!0):!1}else if(e.shiftKey&&(r==="up"||r==="down")){let s=i.focus.getNode();if(!i.isCollapsed()&&(r==="up"&&!i.isBackward()||r==="down"&&i.isBackward())){let l=se(s,p=>Vr(p));if(ze(l)&&(l=se(l,Vr)),l!==n||!l)return!1;let c=r==="down"?l.getNextSibling():l.getPreviousSibling();if(!c)return!1;let u=0;r==="up"&&G(c)&&(u=c.getChildrenSize());let d=c;if(r==="up"&&G(c)){let p=c.getLastChild();d=p||c,u=ie(d)?d.getTextContentSize():0}let f=i.clone();return f.focus.set(d.getKey(),u,ie(d)?"text":"element"),qe(f),Ul(e),!0}else if(It(s)){let l=r==="up"?i.getNodes()[i.getNodes().length-1]:i.getNodes()[0];if(l&&j1(n,l)!==null){let u=n.getFirstDescendant(),d=n.getLastDescendant();if(!u||!d)return!1;let[f]=Ln(u),[p]=Ln(d),m=n.getCordsFromCellNode(f,o.table),g=n.getCordsFromCellNode(p,o.table),h=n.getDOMCellFromCordsOrThrow(m.x,m.y,o.table),v=n.getDOMCellFromCordsOrThrow(g.x,g.y,o.table);return o.$setAnchorCellForSelection(h),o.$setFocusCellForSelection(v,!0),!0}return!1}else{let l=se(s,u=>G(u)&&!u.isInline());if(ze(l)&&(l=se(l,Vr)),!l)return!1;let c=r==="down"?l.getNextSibling():l.getPreviousSibling();if(Vr(c)&&o.tableNodeKey===c.getKey()){let u=c.getFirstDescendant(),d=c.getLastDescendant();if(!u||!d)return!1;let[f]=Ln(u),[p]=Ln(d),m=i.clone();return m.focus.set((r==="up"?f:p).getKey(),r==="up"?0:p.getChildrenSize(),"element"),Ul(e),qe(m),!0}}}}return r==="down"&&U1(t)&&o.setShouldCheckSelection(),!1}if(V(i)){if(r==="backward"||r==="forward"){let s=e.shiftKey?"extend":"move";return Aye(t,e,i,s,r==="backward",n,o)}if(i.isCollapsed()){let{anchor:s,focus:a}=i,l=se(s.getNode(),ze),c=se(a.getNode(),ze);if(!ze(l)||!l.is(c))return!1;let u=Wl(l);if(u!==n&&u!=null){let y=Ru(u,t.getElementByKey(u.getKey()));if(y!=null)return o.table=wg(u,y),OK(t,e,r,u,o)}let d=t.getElementByKey(l.__key),f=t.getElementByKey(s.key);if(f==null||d==null)return!1;let p;if(s.type==="element")p=f.getBoundingClientRect();else{let y=Lo(a9(t));if(y===null||y.rangeCount===0)return!1;p=y.getRangeAt(0).getBoundingClientRect()}let m=r==="up"?l.getFirstChild():l.getLastChild();if(m==null)return!1;let g=t.getElementByKey(m.__key);if(g==null)return!1;let h=g.getBoundingClientRect();if(r==="up"?h.top>p.top-p.height:p.bottom+p.height>h.bottom){Ul(e);let y=n.getCordsFromCellNode(l,o.table);if(e.shiftKey){let b=n.getDOMCellFromCordsOrThrow(y.x,y.y,o.table);o.$setAnchorCellForSelection(b),o.$setFocusCellForSelection(b,!0)}else return Eye(o,n,y.x,y.y,r);return!0}}}else if(Ut(i)){let{anchor:s,focus:a}=i,l=se(s.getNode(),ze),c=se(a.getNode(),ze),[u]=i.getNodes();Vr(u)||we("$handleArrowKey: TableSelection.getNodes()[0] expected to be TableNode");let d=Ru(u,t.getElementByKey(u.getKey()));if(!ze(l)||!ze(c)||!Vr(u)||d==null)return!1;o.$updateTableTableSelection(i);let f=wg(u,d),p=n.getCordsFromCellNode(l,f),m=n.getDOMCellFromCordsOrThrow(p.x,p.y,f);if(o.$setAnchorCellForSelection(m),Ul(e),e.shiftKey){let[g,h,v]=mo(n,l,c);return Nye(o,g,h,v,r)}else c.selectEnd();return!0}return!1}function Ul(t){t.preventDefault(),t.stopImmediatePropagation(),t.stopPropagation()}function Iye(t){let e=t.getRootElement();return e?e.hasAttribute("aria-controls")&&e.getAttribute("aria-controls")==="typeahead-menu":!1}function hK(t,e,r){let n=de();t==="first"?e.insertBefore(n):e.insertAfter(n),n.append(...r||[]),n.selectEnd()}function vK(t,e,r){let n=r.getParent();if(!n)return;let o=Lo(a9(t));if(!o)return;let i=o.anchorNode,s=t.getElementByKey(n.getKey()),a=Ru(r,t.getElementByKey(r.getKey()));if(!i||!s||!a||!s.contains(i)||a.contains(i))return;let l=se(e.anchor.getNode(),y=>ze(y));if(!l)return;let c=se(l,y=>Vr(y));if(!Vr(c)||!c.is(r))return;let[u,d]=mo(r,l,l),f=u[0][0],p=u[u.length-1][u[0].length-1],{startRow:m,startColumn:g}=d,h=m===f.startRow&&g===f.startColumn,v=m===p.startRow&&g===p.startColumn;return h?"first":v?"last":void 0}function Cf(t,e){let{tableNode:r}=t.$lookup(),n=r.getCordsFromCellNode(e,t.table);return r.getDOMCellFromCordsOrThrow(n.x,n.y,t.table)}function X6(t,e,r){return j1(t,gt(e,r))}function kye(t){return Nt(t)&&t.nodeName==="DIV"}function Rye(t,e,r,n){let o=t.querySelector("colgroup");if(!o)return;let i=[];for(let s=0;s<r;s++){let a=document.createElement("col"),l=n&&n[s];l&&(a.style.width=`${l}px`),i.push(a)}o.replaceChildren(...i)}function Pye(t,e,r){r?(Pe(t,e.theme.tableRowStriping),t.setAttribute("data-lexical-row-striping","true")):(yr(t,e.theme.tableRowStriping),t.removeAttribute("data-lexical-row-striping"))}function Fye(t,e,r,n){n>0?(Pe(t,r.theme.tableFrozenColumn),e.setAttribute("data-lexical-frozen-column","true")):(yr(t,r.theme.tableFrozenColumn),e.removeAttribute("data-lexical-frozen-column"))}function Bye(t,e,r,n){n>0?(Pe(t,r.theme.tableFrozenRow),e.setAttribute("data-lexical-frozen-row","true")):(yr(t,r.theme.tableFrozenRow),e.removeAttribute("data-lexical-frozen-row"))}function yK(t,e,r){if(!e.theme.tableAlignment)return;let n=[],o=[];for(let i of["center","right"]){let s=e.theme.tableAlignment[i];s&&(i===r?o:n).push(s)}yr(t,...n),Pe(t,...o)}function U1(t=ri()){return Q6.has(t)}function MK(t,e){e?(t._config.theme.tableScrollableWrapper||console.warn("TableNode: hasHorizontalScroll is active but theme.tableScrollableWrapper is not defined."),Q6.add(t)):Q6.delete(t)}function IK(t,e){let r=t.getElementByKey(e.getKey());return r===null&&we("$getElementForTableNode: Table Element Not Found"),wg(e,r)}function zye(t){let e=W4();t.hasAttribute("data-lexical-row-striping")&&e.setRowStriping(!0),t.hasAttribute("data-lexical-frozen-column")&&e.setFrozenColumns(1),t.hasAttribute("data-lexical-frozen-row")&&e.setFrozenRows(1);let r=t.querySelector(":scope > colgroup");if(r){let n=[];for(let o of r.querySelectorAll(":scope > col")){let i=o.style.width||"";if(!e9.test(i)&&(i=o.getAttribute("width")||"",!/^\d+$/.test(i))){n=void 0;break}n.push(parseFloat(i))}n&&e.setColWidths(n)}return{after:n=>Wm(n,cr),node:e}}function W4(){return Mt(new ja)}function Vr(t){return t instanceof ja}function jye({rows:t,columns:e,includeHeaders:r}){let n=H()||Wn();if(!n||!V(n)||Wl(n.anchor.getNode()))return!1;let o=xK(Number(t),Number(e),r);r4(o);let i=o.getFirstDescendant();return ie(i)&&i.select(),!0}function Vye(t){cr(t.getParent())?t.isEmpty()&&t.append(de()):t.remove()}function Hye(t){Vr(t.getParent())?Gm(t,ze):t.remove()}function Uye(t){Gm(t,cr);let[e]=Kl(t,null,null),r=e.reduce((o,i)=>Math.max(o,i.length),0),n=t.getChildren();for(let o=0;o<e.length;++o){let i=n[o];if(!i)continue;cr(i)||we(`TablePlugin: Expecting all children of TableNode to be TableRowNode, found ${i.constructor.name} (type ${i.getType()})`);let s=e[o].reduce((a,l)=>l?1+a:a,0);if(s!==r)for(let a=s;a<r;++a){let l=ui();l.append(de()),i.append(l)}}}function Kye(t){if(t.detail<3||!zr(t.target))return!1;let e=gt(t.target);if(e===null)return!1;let r=se(e,o=>G(o)&&!o.isInline());if(r===null)return!1;let n=r.getParent();return ze(n)?(r.select(0),!0):!1}function kK(t){return t.registerNodeTransform(za,e=>{if(e.getColSpan()>1||e.getRowSpan()>1){let[,,r]=Ln(e),[n]=mo(r,e,e),o=n.length,i=n[0].length,s=r.getFirstChild();cr(s)||we("Expected TableNode first child to be a RowNode");let a=[];for(let l=0;l<o;l++){l!==0&&(s=s.getNextSibling(),cr(s)||we("Expected TableNode first child to be a RowNode"));let c=null;for(let u=0;u<i;u++){let d=n[l][u],f=d.cell;if(d.startRow===l&&d.startColumn===u)c=f,a.push(f);else if(f.getColSpan()>1||f.getRowSpan()>1){ze(f)||we("Expected TableNode cell to be a TableCellNode");let p=ui(f.__headerState);c!==null?c.insertAfter(p):t4(s,p)}}}for(let l of a)l.setColSpan(1),l.setRowSpan(1)}})}function RK(t,e=!0){let r=new Map,n=(i,s,a)=>{let l=Ru(i,a),c=DK(i,l,t,e);r.set(s,[c,l])},o=t.registerMutationListener(ja,i=>{t.getEditorState().read(()=>{for(let[s,a]of i){let l=r.get(s);if(a==="created"||a==="updated"){let{tableNode:c,tableElement:u}=i9(s);l===void 0?n(c,s,u):u!==l[1]&&(l[0].removeListeners(),r.delete(s),n(c,s,u))}else a==="destroyed"&&l!==void 0&&(l[0].removeListeners(),r.delete(s))}},{editor:t})},{skipInitialization:!1});return()=>{o();for(let[,[i]]of r)i.removeListeners()}}function PK(t){return t.hasNodes([ja])||we("TablePlugin: TableNode is not registered on editor"),at(t.registerCommand(bK,jye,me),t.registerCommand(Ta,({nodes:e,selection:r},n)=>t!==n||!V(r)?!1:Wl(r.anchor.getNode())!==null&&e.some(Vr),me),t.registerCommand(qi,Kye,me),t.registerNodeTransform(ja,Uye),t.registerNodeTransform(Sf,Hye),t.registerNodeTransform(za,Vye))}var e9,Qve,br,za,bK,Sf,t9,tye,fK,G6,aye,cye,dye,fye,V4,H4,s9,vye,yye,bye,xye,Eye,Q6,ja,Wye,BK=ue(async()=>{"use strict";await cn();await ht();await Hl();await F1();e9=/^(\d+(?:\.\d+)?)px$/,Qve=75,br={BOTH:3,COLUMN:2,NO_STATUS:0,ROW:1},za=class t extends kt{__colSpan;__rowSpan;__headerState;__width;__backgroundColor;__verticalAlign;static getType(){return"tablecell"}static clone(e){return new t(e.__headerState,e.__colSpan,e.__width,e.__key)}afterCloneFrom(e){super.afterCloneFrom(e),this.__rowSpan=e.__rowSpan,this.__backgroundColor=e.__backgroundColor,this.__verticalAlign=e.__verticalAlign}static importDOM(){return{td:e=>({conversion:dK,priority:0}),th:e=>({conversion:dK,priority:0})}}static importJSON(e){return ui().updateFromJSON(e)}updateFromJSON(e){return super.updateFromJSON(e).setHeaderStyles(e.headerState).setColSpan(e.colSpan||1).setRowSpan(e.rowSpan||1).setWidth(e.width||void 0).setBackgroundColor(e.backgroundColor||null).setVerticalAlign(e.verticalAlign||void 0)}constructor(e=br.NO_STATUS,r=1,n,o){super(o),this.__colSpan=r,this.__rowSpan=1,this.__headerState=e,this.__width=n,this.__backgroundColor=null,this.__verticalAlign=void 0}createDOM(e){let r=document.createElement(this.getTag());return this.__width&&(r.style.width=`${this.__width}px`),this.__colSpan>1&&(r.colSpan=this.__colSpan),this.__rowSpan>1&&(r.rowSpan=this.__rowSpan),this.__backgroundColor!==null&&(r.style.backgroundColor=this.__backgroundColor),W6(this.__verticalAlign)&&(r.style.verticalAlign=this.__verticalAlign),Pe(r,e.theme.tableCell,this.hasHeader()&&e.theme.tableCellHeader),r}exportDOM(e){let r=super.exportDOM(e);if(ai(r.element)){let n=r.element;n.setAttribute("data-temporary-table-cell-lexical-key",this.getKey()),n.style.border="1px solid black",this.__colSpan>1&&(n.colSpan=this.__colSpan),this.__rowSpan>1&&(n.rowSpan=this.__rowSpan),n.style.width=`${this.getWidth()||Qve}px`,n.style.verticalAlign=this.getVerticalAlign()||"top",n.style.textAlign="start",this.__backgroundColor===null&&this.hasHeader()&&(n.style.backgroundColor="#f2f3f5")}return r}exportJSON(){return{...super.exportJSON(),...W6(this.__verticalAlign)&&{verticalAlign:this.__verticalAlign},backgroundColor:this.getBackgroundColor(),colSpan:this.__colSpan,headerState:this.__headerState,rowSpan:this.__rowSpan,width:this.getWidth()}}getColSpan(){return this.getLatest().__colSpan}setColSpan(e){let r=this.getWritable();return r.__colSpan=e,r}getRowSpan(){return this.getLatest().__rowSpan}setRowSpan(e){let r=this.getWritable();return r.__rowSpan=e,r}getTag(){return this.hasHeader()?"th":"td"}setHeaderStyles(e,r=br.BOTH){let n=this.getWritable();return n.__headerState=e&r|n.__headerState&~r,n}getHeaderStyles(){return this.getLatest().__headerState}setWidth(e){let r=this.getWritable();return r.__width=e,r}getWidth(){return this.getLatest().__width}getBackgroundColor(){return this.getLatest().__backgroundColor}setBackgroundColor(e){let r=this.getWritable();return r.__backgroundColor=e,r}getVerticalAlign(){return this.getLatest().__verticalAlign}setVerticalAlign(e){let r=this.getWritable();return r.__verticalAlign=e||void 0,r}toggleHeaderStyle(e){let r=this.getWritable();return(r.__headerState&e)===e?r.__headerState-=e:r.__headerState+=e,r}hasHeaderState(e){return(this.getHeaderStyles()&e)===e}hasHeader(){return this.getLatest().__headerState!==br.NO_STATUS}updateDOM(e){return e.__headerState!==this.__headerState||e.__width!==this.__width||e.__colSpan!==this.__colSpan||e.__rowSpan!==this.__rowSpan||e.__backgroundColor!==this.__backgroundColor||e.__verticalAlign!==this.__verticalAlign}isShadowRoot(){return!0}collapseAtStart(){return!0}canBeEmpty(){return!1}canIndent(){return!1}};bK=wt("INSERT_TABLE_COMMAND");Sf=class t extends kt{__height;static getType(){return"tablerow"}static clone(e){return new t(e.__height,e.__key)}static importDOM(){return{tr:e=>({conversion:eye,priority:0})}}static importJSON(e){return _f().updateFromJSON(e)}updateFromJSON(e){return super.updateFromJSON(e).setHeight(e.height)}constructor(e,r){super(r),this.__height=e}exportJSON(){let e=this.getHeight();return{...super.exportJSON(),...e===void 0?void 0:{height:e}}}createDOM(e){let r=document.createElement("tr");return this.__height&&(r.style.height=`${this.__height}px`),Pe(r,e.theme.tableRow),r}extractWithChild(e,r,n){return n==="html"}isShadowRoot(){return!0}setHeight(e){let r=this.getWritable();return r.__height=e,r}getHeight(){return this.getLatest().__height}updateDOM(e){return e.__height!==this.__height}canBeEmpty(){return!1}canIndent(){return!1}};t9=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",tye=t9&&"documentMode"in document?document.documentMode:null,fK=t9&&/^(?!.*Seamonkey)(?=.*Firefox).*/i.test(navigator.userAgent);t9&&"InputEvent"in window&&!tye&&"getTargetRanges"in new window.InputEvent("input");G6=(t,e)=>t===br.BOTH||t===e?e:br.NO_STATUS;aye=SK;cye=_K;dye=wK;fye=EK;V4=class t{tableKey;anchor;focus;_cachedNodes;dirty;constructor(e,r,n){this.anchor=r,this.focus=n,r._selection=this,n._selection=this,this._cachedNodes=null,this.dirty=!1,this.tableKey=e}getStartEndPoints(){return[this.anchor,this.focus]}isValid(){if(this.tableKey==="root"||this.anchor.key==="root"||this.anchor.type!=="element"||this.focus.key==="root"||this.focus.type!=="element")return!1;let e=st(this.tableKey),r=st(this.anchor.key),n=st(this.focus.key);return e!==null&&r!==null&&n!==null}isBackward(){return this.focus.isBefore(this.anchor)}getCachedNodes(){return this._cachedNodes}setCachedNodes(e){this._cachedNodes=e}is(e){return Ut(e)&&this.tableKey===e.tableKey&&this.anchor.is(e.anchor)&&this.focus.is(e.focus)}set(e,r,n){this.dirty=this.dirty||e!==this.tableKey||r!==this.anchor.key||n!==this.focus.key,this.tableKey=e,this.anchor.key=r,this.focus.key=n,this._cachedNodes=null}clone(){return new t(this.tableKey,vn(this.anchor.key,this.anchor.offset,this.anchor.type),vn(this.focus.key,this.focus.offset,this.focus.type))}isCollapsed(){return!1}extract(){return this.getNodes()}insertRawText(e){}insertText(){}hasFormat(e){let r=0;this.getNodes().filter(ze).forEach(i=>{let s=i.getFirstChild();Gn(s)&&(r|=s.getTextFormat())});let o=A2[e];return(r&o)!==0}insertNodes(e){let r=this.focus.getNode();G(r)||we("Expected TableSelection focus to be an ElementNode"),Yn(r.select(0,r.getChildrenSize())).insertNodes(e)}getShape(){let{anchorCell:e,focusCell:r}=pK(this),n=q6(e);n===null&&we("getCellRect: expected to find AnchorNode");let o=q6(r);o===null&&we("getCellRect: expected to find focusCellNode");let i=Math.min(n.columnIndex,o.columnIndex),s=Math.max(n.columnIndex+n.colSpan-1,o.columnIndex+o.colSpan-1),a=Math.min(n.rowIndex,o.rowIndex),l=Math.max(n.rowIndex+n.rowSpan-1,o.rowIndex+o.rowSpan-1);return{fromX:Math.min(i,s),fromY:Math.min(a,l),toX:Math.max(i,s),toY:Math.max(a,l)}}getNodes(){if(!this.isValid())return[];let e=this._cachedNodes;if(e!==null)return e;let{anchorTable:r,anchorCell:n,focusCell:o}=pK(this),i=o.getParents()[1];if(i!==r){if(r.isParentOf(o)){let h=i.getParent();h==null&&we("Expected focusCellParent to have a parent"),this.set(this.tableKey,o.getKey(),h.getKey())}else{let h=r.getParent();h==null&&we("Expected gridParent to have a parent"),this.set(this.tableKey,h.getKey(),o.getKey())}return this.getNodes()}let[s,a,l]=mo(r,n,o),{minColumn:c,maxColumn:u,minRow:d,maxRow:f}=K4(s,a,l),p=new Map([[r.getKey(),r]]),m=null;for(let h=d;h<=f;h++)for(let v=c;v<=u;v++){let{cell:y}=s[h][v],b=y.getParent();cr(b)||we("Expected TableCellNode parent to be a TableRowNode"),b!==m&&(p.set(b.getKey(),b),m=b),p.has(y.getKey())||hye(y,x=>{p.set(x.getKey(),x)})}let g=Array.from(p.values());return B2()||(this._cachedNodes=g),g}getTextContent(){let e=this.getNodes().filter(n=>ze(n)),r="";for(let n=0;n<e.length;n++){let o=e[n],i=o.__parent,s=(e[n+1]||{}).__parent;r+=o.getTextContent()+(s!==i?`
|
|
50
50
|
`:" ")}return r}};H4=class{focusX;focusY;listenersToRemove;table;isHighlightingCells;anchorX;anchorY;tableNodeKey;anchorCell;focusCell;anchorCellNodeKey;focusCellNodeKey;editor;tableSelection;hasHijackedSelectionStyles;isSelecting;pointerType;shouldCheckSelection;abortController;listenerOptions;nextFocus;constructor(e,r){this.isHighlightingCells=!1,this.anchorX=-1,this.anchorY=-1,this.focusX=-1,this.focusY=-1,this.listenersToRemove=new Set,this.tableNodeKey=r,this.editor=e,this.table={columns:0,domRows:[],rows:0},this.tableSelection=null,this.anchorCellNodeKey=null,this.focusCellNodeKey=null,this.anchorCell=null,this.focusCell=null,this.hasHijackedSelectionStyles=!1,this.isSelecting=!1,this.pointerType=null,this.shouldCheckSelection=!1,this.abortController=new AbortController,this.listenerOptions={signal:this.abortController.signal},this.nextFocus=null,this.trackTable()}getTable(){return this.table}removeListeners(){this.abortController.abort("removeListeners"),Array.from(this.listenersToRemove).forEach(e=>e()),this.listenersToRemove.clear()}$lookup(){return i9(this.tableNodeKey,this.editor)}trackTable(){let e=new MutationObserver(r=>{this.editor.getEditorState().read(()=>{let n=!1;for(let s=0;s<r.length;s++){let c=r[s].target.nodeName;if(c==="TABLE"||c==="TBODY"||c==="THEAD"||c==="TR"){n=!0;break}}if(!n)return;let{tableNode:o,tableElement:i}=this.$lookup();this.table=wg(o,i)},{editor:this.editor})});this.editor.getEditorState().read(()=>{let{tableNode:r,tableElement:n}=this.$lookup();this.table=wg(r,n),e.observe(n,{attributes:!0,childList:!0,subtree:!0})},{editor:this.editor})}$clearHighlight(){let e=this.editor;this.isHighlightingCells=!1,this.anchorX=-1,this.anchorY=-1,this.focusX=-1,this.focusY=-1,this.tableSelection=null,this.anchorCellNodeKey=null,this.focusCellNodeKey=null,this.anchorCell=null,this.focusCell=null,this.hasHijackedSelectionStyles=!1,this.$enableHighlightStyle();let{tableNode:r,tableElement:n}=this.$lookup(),o=wg(r,n);B4(e,o,null),H()!==null&&(qe(null),e.dispatchCommand(si,void 0))}$enableHighlightStyle(){let e=this.editor,{tableElement:r}=this.$lookup();yr(r,e._config.theme.tableSelection),r.classList.remove("disable-selection"),this.hasHijackedSelectionStyles=!1}$disableHighlightStyle(){let{tableElement:e}=this.$lookup();Pe(e,this.editor._config.theme.tableSelection),this.hasHijackedSelectionStyles=!0}$updateTableTableSelection(e){if(e!==null){e.tableKey!==this.tableNodeKey&&we(`TableObserver.$updateTableTableSelection: selection.tableKey !== this.tableNodeKey ('${e.tableKey}' !== '${this.tableNodeKey}')`);let r=this.editor;this.tableSelection=e,this.isHighlightingCells=!0,this.$disableHighlightStyle(),this.updateDOMSelection(),B4(r,this.table,this.tableSelection)}else this.$clearHighlight()}setShouldCheckSelection(){this.shouldCheckSelection=!0}getAndClearShouldCheckSelection(){return this.shouldCheckSelection?(this.shouldCheckSelection=!1,!0):!1}setNextFocus(e){this.nextFocus=e}getAndClearNextFocus(){let{nextFocus:e}=this;return e!==null&&(this.nextFocus=null),e}updateDOMSelection(){if(this.anchorCell!==null&&this.focusCell!==null){let e=Lo(this.editor._window);e&&e.rangeCount>0&&e.removeAllRanges()}}$setFocusCellForSelection(e,r=!1){let n=this.editor,{tableNode:o}=this.$lookup(),i=e.x,s=e.y;if(this.focusCell=e,!this.isHighlightingCells&&(this.anchorX!==i||this.anchorY!==s||r))this.isHighlightingCells=!0,this.$disableHighlightStyle();else if(i===this.focusX&&s===this.focusY)return!1;if(this.focusX=i,this.focusY=s,this.isHighlightingCells){let a=X6(o,e.elem);if(this.tableSelection!=null&&this.anchorCellNodeKey!=null&&a!==null)return this.focusCellNodeKey=a.getKey(),this.tableSelection=NK(o,this.$getAnchorTableCellOrThrow(),a),qe(this.tableSelection),n.dispatchCommand(si,void 0),B4(n,this.table,this.tableSelection),!0}return!1}$getAnchorTableCell(){return this.anchorCellNodeKey?st(this.anchorCellNodeKey):null}$getAnchorTableCellOrThrow(){let e=this.$getAnchorTableCell();return e===null&&we("TableObserver anchorTableCell is null"),e}$getFocusTableCell(){return this.focusCellNodeKey?st(this.focusCellNodeKey):null}$getFocusTableCellOrThrow(){let e=this.$getFocusTableCell();return e===null&&we("TableObserver focusTableCell is null"),e}$setAnchorCellForSelection(e){this.isHighlightingCells=!1,this.anchorCell=e,this.anchorX=e.x,this.anchorY=e.y;let{tableNode:r}=this.$lookup(),n=X6(r,e.elem);if(n!==null){let o=n.getKey();this.tableSelection=this.tableSelection!=null?this.tableSelection.clone():o9(),this.anchorCellNodeKey=o}}$formatCells(e){let r=H();Ut(r)||we("Expected Table selection");let n=yn(),o=n.anchor,i=n.focus,s=r.getNodes().filter(ze);s.length>0||we("No table cells present");let a=s[0].getFirstChild(),l=Gn(a)?a.getFormatFlags(e,null):null;s.forEach(c=>{o.set(c.getKey(),0,"element"),i.set(c.getKey(),c.getChildrenSize(),"element"),n.formatText(e,l)}),qe(r),this.editor.dispatchCommand(si,void 0)}$clearText(){let{editor:e}=this,r=st(this.tableNodeKey);if(!Vr(r))throw new Error("Expected TableNode.");let n=H();Ut(n)||we("Expected TableSelection");let o=n.getNodes().filter(ze),i=r.getFirstChild(),s=r.getLastChild();if(o.length>0&&i!==null&&s!==null&&cr(i)&&cr(s)&&o[0]===i.getFirstChild()&&o[o.length-1]===s.getLastChild()){r.selectPrevious();let l=r.getParent();r.remove(),ni(l)&&l.isEmpty()&&e.dispatchCommand(No,void 0);return}o.forEach(l=>{if(G(l)){let c=de(),u=bt();c.append(u),l.append(c),l.getChildren().forEach(d=>{d!==c&&d.remove()})}}),B4(e,this.table,null),qe(null),e.dispatchCommand(si,void 0)}},s9="__lexicalTableSelection",vye=t=>(t.buttons&1)===1;yye=[[Zn,"down"],[Qr,"up"],[ii,"backward"],[_a,"forward"]],bye=[mu,Ca,Ji],xye=[wa,Ea];Eye=(t,e,r,n,o)=>{let i=o==="forward";switch(o){case"backward":case"forward":return r!==(i?t.table.columns-1:0)?z4(e.getCellNodeFromCordsOrThrow(r+(i?1:-1),n,t.table),i):n!==(i?t.table.rows-1:0)?z4(e.getCellNodeFromCordsOrThrow(i?0:t.table.columns-1,n+(i?1:-1),t.table),i):i?e.selectNext():e.selectPrevious(),!0;case"up":return n!==0?z4(e.getCellNodeFromCordsOrThrow(r,n-1,t.table),!1):e.selectPrevious(),!0;case"down":return n!==t.table.rows-1?z4(e.getCellNodeFromCordsOrThrow(r,n+1,t.table),!0):e.selectNext(),!0;default:return!1}};Q6=new WeakSet;ja=class t extends kt{__rowStriping;__frozenColumnCount;__frozenRowCount;__colWidths;static getType(){return"table"}getColWidths(){return this.getLatest().__colWidths}setColWidths(e){let r=this.getWritable();return r.__colWidths=e!==void 0?Object.freeze(e):e,r}static clone(e){return new t(e.__key)}afterCloneFrom(e){super.afterCloneFrom(e),this.__colWidths=e.__colWidths,this.__rowStriping=e.__rowStriping,this.__frozenColumnCount=e.__frozenColumnCount,this.__frozenRowCount=e.__frozenRowCount}static importDOM(){return{table:e=>({conversion:zye,priority:1})}}static importJSON(e){return W4().updateFromJSON(e)}updateFromJSON(e){return super.updateFromJSON(e).setRowStriping(e.rowStriping||!1).setFrozenColumns(e.frozenColumnCount||0).setFrozenRows(e.frozenRowCount||0).setColWidths(e.colWidths)}constructor(e){super(e),this.__rowStriping=!1,this.__frozenColumnCount=0,this.__frozenRowCount=0,this.__colWidths=void 0}exportJSON(){return{...super.exportJSON(),colWidths:this.getColWidths(),frozenColumnCount:this.__frozenColumnCount?this.__frozenColumnCount:void 0,frozenRowCount:this.__frozenRowCount?this.__frozenRowCount:void 0,rowStriping:this.__rowStriping?this.__rowStriping:void 0}}extractWithChild(e,r,n){return n==="html"}getDOMSlot(e){let r=Sg(e)?e:e.querySelector("table");return Sg(r)||we("TableNode.getDOMSlot: createDOM() did not return a table"),super.getDOMSlot(e).withElement(r).withAfter(r.querySelector("colgroup"))}createDOM(e,r){let n=document.createElement("table");this.__style&&(n.style.cssText=this.__style);let o=document.createElement("colgroup");if(n.appendChild(o),U2(o),Pe(n,e.theme.table),this.updateTableElement(null,n,e),U1(r)){let i=document.createElement("div"),s=e.theme.tableScrollableWrapper;return s?Pe(i,s):i.style.cssText="overflow-x: auto;",i.appendChild(n),this.updateTableWrapper(null,i,n,e),i}return n}updateTableWrapper(e,r,n,o){this.__frozenColumnCount!==(e?e.__frozenColumnCount:0)&&Fye(r,n,o,this.__frozenColumnCount),this.__frozenRowCount!==(e?e.__frozenRowCount:0)&&Bye(r,n,o,this.__frozenRowCount)}updateTableElement(e,r,n){this.__style!==(e?e.__style:"")&&(r.style.cssText=this.__style),this.__rowStriping!==(e?e.__rowStriping:!1)&&Pye(r,n,this.__rowStriping),Rye(r,n,this.getColumnCount(),this.getColWidths()),yK(r,n,this.getFormatType())}updateDOM(e,r,n){let i=this.getDOMSlot(r).element;return r===i===U1()?!0:(kye(r)&&this.updateTableWrapper(e,r,i,n),this.updateTableElement(e,i,n),!1)}exportDOM(e){let r=super.exportDOM(e),{element:n}=r;return{after:o=>{if(r.after&&(o=r.after(o)),!Sg(o)&&Nt(o)&&(o=o.querySelector("table")),!Sg(o))return null;yK(o,e._config,this.getFormatType());let[i]=Kl(this,null,null),s=new Map;for(let u of i)for(let d of u){let f=d.cell.getKey();s.has(f)||s.set(f,{colSpan:d.cell.getColSpan(),startColumn:d.startColumn})}let a=new Set;for(let u of o.querySelectorAll(":scope > tr > [data-temporary-table-cell-lexical-key]")){let d=u.getAttribute("data-temporary-table-cell-lexical-key");if(d){let f=s.get(d);if(u.removeAttribute("data-temporary-table-cell-lexical-key"),f){s.delete(d);for(let p=0;p<f.colSpan;p++)a.add(p+f.startColumn)}}}let l=o.querySelector(":scope > colgroup");if(l){let u=Array.from(o.querySelectorAll(":scope > colgroup > col")).filter((d,f)=>a.has(f));l.replaceChildren(...u)}let c=o.querySelectorAll(":scope > tr");if(c.length>0){let u=document.createElement("tbody");for(let d of c)u.appendChild(d);o.append(u)}return o},element:!Sg(n)&&Nt(n)?n.querySelector("table"):n}}canBeEmpty(){return!1}isShadowRoot(){return!0}getCordsFromCellNode(e,r){let{rows:n,domRows:o}=r;for(let i=0;i<n;i++){let s=o[i];if(s!=null)for(let a=0;a<s.length;a++){let l=s[a];if(l==null)continue;let{elem:c}=l,u=X6(this,c);if(u!==null&&e.is(u))return{x:a,y:i}}}throw new Error("Cell not found in table.")}getDOMCellFromCords(e,r,n){let{domRows:o}=n,i=o[r];if(i==null)return null;let s=e<i.length?e:i.length-1,a=i[s];return a??null}getDOMCellFromCordsOrThrow(e,r,n){let o=this.getDOMCellFromCords(e,r,n);if(!o)throw new Error("Cell not found at cords.");return o}getCellNodeFromCords(e,r,n){let o=this.getDOMCellFromCords(e,r,n);if(o==null)return null;let i=gt(o.elem);return ze(i)?i:null}getCellNodeFromCordsOrThrow(e,r,n){let o=this.getCellNodeFromCords(e,r,n);if(!o)throw new Error("Node at cords not TableCellNode.");return o}getRowStriping(){return!!this.getLatest().__rowStriping}setRowStriping(e){let r=this.getWritable();return r.__rowStriping=e,r}setFrozenColumns(e){let r=this.getWritable();return r.__frozenColumnCount=e,r}getFrozenColumns(){return this.getLatest().__frozenColumnCount}setFrozenRows(e){let r=this.getWritable();return r.__frozenRowCount=e,r}getFrozenRows(){return this.getLatest().__frozenRowCount}canSelectBefore(){return!0}canIndent(){return!1}getColumnCount(){let e=this.getFirstChild();if(!e)return 0;let r=0;return e.getChildren().forEach(n=>{ze(n)&&(r+=n.getColSpan())}),r}};Wye=Ye({build(t,e,r){return Jn(e)},config:er({hasCellBackgroundColor:!0,hasCellMerge:!0,hasHorizontalScroll:!0,hasTabHandler:!0}),name:"@lexical/table/Table",nodes:[ja,Sf,za],register(t,e,r){let n=r.getOutput();return at(jr(()=>{let o=n.hasHorizontalScroll.value;U1(t)!==o&&(MK(t,o),t.registerNodeTransform(ja,()=>{})())}),PK(t),jr(()=>RK(t,n.hasTabHandler.value)),jr(()=>n.hasCellMerge.value?void 0:kK(t)),jr(()=>n.hasCellBackgroundColor.value?void 0:t.registerNodeTransform(za,o=>{o.getBackgroundColor()!==null&&o.setBackgroundColor(null)})))}})});var pW={};Pt(pW,{$computeTableMap:()=>go,$computeTableMapSkipCellCheck:()=>Yl,$createTableCellNode:()=>di,$createTableNode:()=>e3,$createTableNodeWithDimensions:()=>ZK,$createTableRowNode:()=>$f,$createTableSelection:()=>w9,$createTableSelectionFrom:()=>nW,$deleteTableColumn:()=>nbe,$deleteTableColumnAtSelection:()=>eW,$deleteTableColumn__EXPERIMENTAL:()=>ibe,$deleteTableRowAtSelection:()=>QK,$deleteTableRow__EXPERIMENTAL:()=>obe,$findCellNode:()=>$g,$findTableNode:()=>Ef,$getElementForTableNode:()=>cW,$getNodeTriplet:()=>An,$getTableAndElementByKey:()=>E9,$getTableCellNodeFromLexicalNode:()=>Zye,$getTableCellNodeRect:()=>g9,$getTableColumnIndexFromTableCellNode:()=>Jye,$getTableNodeFromLexicalNodeOrThrow:()=>Q4,$getTableRowIndexFromTableCellNode:()=>qye,$getTableRowNodeFromTableCellNodeOrThrow:()=>S9,$insertTableColumn:()=>tbe,$insertTableColumnAtSelection:()=>XK,$insertTableColumn__EXPERIMENTAL:()=>rbe,$insertTableRow:()=>Qye,$insertTableRowAtSelection:()=>JK,$insertTableRow__EXPERIMENTAL:()=>ebe,$isScrollableTablesActive:()=>Y1,$isTableCellNode:()=>je,$isTableNode:()=>Hr,$isTableRowNode:()=>ur,$isTableSelection:()=>Kt,$mergeCells:()=>tW,$removeTableRowAtIndex:()=>Xye,$unmergeCell:()=>abe,INSERT_TABLE_COMMAND:()=>YK,TableCellHeaderStates:()=>xr,TableCellNode:()=>Ha,TableExtension:()=>Cbe,TableNode:()=>Ua,TableObserver:()=>X4,TableRowNode:()=>Tf,applyTableHandlers:()=>oW,getDOMCellFromTarget:()=>G1,getTableElement:()=>Pu,getTableObserverFromTableElement:()=>v9,registerTableCellUnmergeTransform:()=>uW,registerTablePlugin:()=>fW,registerTableSelectionObserver:()=>dW,setScrollableTablesActive:()=>lW});function d9(t){return t==="middle"||t==="bottom"}function zK(t){let e=t,r=t.nodeName.toLowerCase(),n;x9.test(e.style.width)&&(n=parseFloat(e.style.width));let o=di(r==="th"?xr.ROW:xr.NO_STATUS,e.colSpan,n);o.__rowSpan=e.rowSpan;let i=e.style.backgroundColor;i!==""&&(o.__backgroundColor=i);let s=e.style.verticalAlign;d9(s)&&(o.__verticalAlign=s);let a=e.style,l=(a&&a.textDecoration||"").split(" "),c=a.fontWeight==="700"||a.fontWeight==="bold",u=l.includes("line-through"),d=a.fontStyle==="italic",f=l.includes("underline");return{after:p=>{let m=[],g=null,h=()=>{if(g){let v=g.getFirstChild();Ge(v)&&g.getChildrenSize()===1&&v.remove()}};for(let v of p)p2(v)||ie(v)||Ge(v)?(ie(v)&&(c&&v.toggleFormat("bold"),u&&v.toggleFormat("strikethrough"),d&&v.toggleFormat("italic"),f&&v.toggleFormat("underline")),g?g.append(v):(g=de().append(v),m.push(g))):(m.push(v),h(),g=null);return h(),m.length===0&&m.push(de()),m},node:o}}function di(t=xr.NO_STATUS,e=1,r){return Mt(new Ha(t,e,r))}function je(t){return t instanceof Ha}function Oe(t,...e){let r=new URL("https://lexical.dev/docs/error"),n=new URLSearchParams;n.append("code",t);for(let o of e)n.append("v",o);throw r.search=n.toString(),Error(`Minified Lexical error #${t}; visit ${r.toString()} for the full message or use the non-minified dev environment for full errors and additional helpful warnings.`)}function Gye(t){let e=t,r;return x9.test(e.style.height)&&(r=parseFloat(e.style.height)),{after:n=>Wm(n,je),node:$f(r)}}function $f(t){return Mt(new Tf(t))}function ur(t){return t instanceof Tf}function ZK(t,e,r=!0){let n=e3();for(let o=0;o<t;o++){let i=$f();for(let s=0;s<e;s++){let a=xr.NO_STATUS;typeof r=="object"?(o===0&&r.rows&&(a|=xr.ROW),s===0&&r.columns&&(a|=xr.COLUMN)):r&&(o===0&&(a|=xr.ROW),s===0&&(a|=xr.COLUMN));let l=di(a),c=de();c.append(bt()),l.append(c),i.append(l)}n.append(i)}return n}function Zye(t){let e=se(t,r=>je(r));return je(e)?e:null}function S9(t){let e=se(t,r=>ur(r));if(ur(e))return e;throw new Error("Expected table cell to be inside of table row.")}function Q4(t){let e=se(t,r=>Hr(r));if(Hr(e))return e;throw new Error("Expected table cell to be inside of table.")}function qye(t){let e=S9(t);return Q4(e).getChildren().findIndex(r=>r.is(e))}function Jye(t){return S9(t).getChildren().findIndex(e=>e.is(t))}function qK(t,e){let r=Q4(t),{x:n,y:o}=r.getCordsFromCellNode(t,e);return{above:r.getCellNodeFromCords(n,o-1,e),below:r.getCellNodeFromCords(n,o+1,e),left:r.getCellNodeFromCords(n-1,o,e),right:r.getCellNodeFromCords(n+1,o,e)}}function Xye(t,e){let r=t.getChildren();if(e>=r.length||e<0)throw new Error("Expected table cell to be inside of table row.");return r[e].remove(),t}function Qye(t,e,r=!0,n,o){let i=t.getChildren();if(e>=i.length||e<0)throw new Error("Table row target index out of range");let s=i[e];if(!ur(s))throw new Error("Row before insertion index does not exist.");for(let a=0;a<n;a++){let l=s.getChildren(),c=l.length,u=$f();for(let d=0;d<c;d++){let f=l[d];je(f)||Oe(12);let{above:p,below:m}=qK(f,o),g=xr.NO_STATUS,h=p&&p.getWidth()||m&&m.getWidth()||void 0;(p&&p.hasHeaderState(xr.COLUMN)||m&&m.hasHeaderState(xr.COLUMN))&&(g|=xr.COLUMN);let v=di(g,1,h);v.append(de()),u.append(v)}r?s.insertAfter(u):s.insertBefore(u)}return t}function JK(t=!0){let e=H();V(e)||Kt(e)||Oe(188);let r=e.anchor.getNode(),n=e.focus.getNode(),[o]=An(r),[i,,s]=An(n),[,a,l]=go(s,i,o),{startRow:c}=l,{startRow:u}=a;return t?p9(c+o.__rowSpan>u+i.__rowSpan?o:i,!0):p9(u<c?i:o,!1)}function p9(t,e=!0){let[,,r]=An(t),[n,o]=go(r,t,t),i=n[0].length,{startRow:s}=o,a=null;if(e){let l=s+t.__rowSpan-1,c=n[l],u=$f();for(let f=0;f<i;f++){let{cell:p,startRow:m}=c[f];if(m+p.__rowSpan-1<=l){let g=c[f].cell.__headerState,h=f9(g,xr.COLUMN);u.append(di(h).append(de()))}else p.setRowSpan(p.__rowSpan+1)}let d=r.getChildAtIndex(l);ur(d)||Oe(256),d.insertAfter(u),a=u}else{let l=s,c=n[l],u=$f();for(let f=0;f<i;f++){let{cell:p,startRow:m}=c[f];if(m===l){let g=c[f].cell.__headerState,h=f9(g,xr.COLUMN);u.append(di(h).append(de()))}else p.setRowSpan(p.__rowSpan+1)}let d=r.getChildAtIndex(l);ur(d)||Oe(257),d.insertBefore(u),a=u}return a}function tbe(t,e,r=!0,n,o){let i=t.getChildren(),s=[];for(let a=0;a<i.length;a++){let l=i[a];if(ur(l))for(let c=0;c<n;c++){let u=l.getChildren();if(e>=u.length||e<0)throw new Error("Table column target index out of range");let d=u[e];je(d)||Oe(12);let{left:f,right:p}=qK(d,o),m=xr.NO_STATUS;(f&&f.hasHeaderState(xr.ROW)||p&&p.hasHeaderState(xr.ROW))&&(m|=xr.ROW);let g=di(m);g.append(de()),s.push({newTableCell:g,targetCell:d})}}return s.forEach(({newTableCell:a,targetCell:l})=>{r?l.insertAfter(a):l.insertBefore(a)}),t}function XK(t=!0){let e=H();V(e)||Kt(e)||Oe(188);let r=e.anchor.getNode(),n=e.focus.getNode(),[o]=An(r),[i,,s]=An(n),[,a,l]=go(s,i,o),{startColumn:c}=l,{startColumn:u}=a;return t?m9(c+o.__colSpan>u+i.__colSpan?o:i,!0):m9(u<c?i:o,!1)}function m9(t,e=!0,r=!0){let[,,n]=An(t),[o,i]=go(n,t,t),s=o.length,{startColumn:a}=i,l=e?a+t.__colSpan-1:a-1,c=n.getFirstChild();ur(c)||Oe(120);let u=null;function d(m=xr.NO_STATUS){let g=di(m).append(de());return u===null&&(u=g),g}let f=c;e:for(let m=0;m<s;m++){if(m!==0){let S=f.getNextSibling();ur(S)||Oe(121),f=S}let g=o[m],h=g[l<0?0:l].cell.__headerState,v=f9(h,xr.ROW);if(l<0){_9(f,d(v));continue}let{cell:y,startColumn:b,startRow:x}=g[l];if(b+y.__colSpan-1<=l){let S=y,_=x,w=l;for(;_!==m&&S.__rowSpan>1;){if(w-=y.__colSpan,!(w>=0)){f.append(d(v));continue e}{let{cell:T,startRow:N}=g[w];S=T,_=N}}S.insertAfter(d(v))}else y.setColSpan(y.__colSpan+1)}u!==null&&r&&W1(u);let p=n.getColWidths();if(p){let m=[...p],g=l<0?0:l,h=m[g];m.splice(g,0,h),n.setColWidths(m)}return u}function nbe(t,e){let r=t.getChildren();for(let n=0;n<r.length;n++){let o=r[n];if(ur(o)){let i=o.getChildren();if(e>=i.length||e<0)throw new Error("Table column target index out of range");i[e].remove()}}return t}function QK(){let t=H();V(t)||Kt(t)||Oe(188);let[e,r]=t.isBackward()?[t.focus.getNode(),t.anchor.getNode()]:[t.anchor.getNode(),t.focus.getNode()],[n,,o]=An(e),[i]=An(r),[s,a,l]=go(o,n,i),{startRow:c}=a,{startRow:u}=l,d=u+i.__rowSpan-1;if(s.length===d-c+1)return void o.remove();let f=s[0].length,p=s[d+1],m=o.getChildAtIndex(d+1);for(let g=d;g>=c;g--){for(let v=f-1;v>=0;v--){let{cell:y,startRow:b,startColumn:x}=s[g][v];if(x===v){if(b<c||b+y.__rowSpan-1>d){let S=Math.max(b,c),_=Math.min(y.__rowSpan+b-1,d),w=S<=_?_-S+1:0;y.setRowSpan(y.__rowSpan-w)}if(b>=c&&b+y.__rowSpan-1>d&&g===d){m===null&&Oe(122);let S=null;for(let _=0;_<v;_++){let w=p[_],T=w.cell;w.startRow===g+1&&(S=T),T.__colSpan>1&&(_+=T.__colSpan-1)}S===null?_9(m,y):S.insertAfter(y)}}}let h=o.getChildAtIndex(g);ur(h)||Oe(206,String(g)),h.remove()}if(p!==void 0){let{cell:g}=p[0];W1(g)}else{let g=s[c-1],{cell:h}=g[0];W1(h)}}function eW(){let t=H();V(t)||Kt(t)||Oe(188);let e=t.anchor.getNode(),r=t.focus.getNode(),[n,,o]=An(e),[i]=An(r),[s,a,l]=go(o,n,i),{startColumn:c}=a,{startRow:u,startColumn:d}=l,f=Math.min(c,d),p=Math.max(c+n.__colSpan-1,d+i.__colSpan-1),m=p-f+1;if(s[0].length===p-f+1)return o.selectPrevious(),void o.remove();let g=s.length;for(let b=0;b<g;b++)for(let x=f;x<=p;x++){let{cell:S,startColumn:_}=s[b][x];if(_<f){if(x===f){let w=f-_;S.setColSpan(S.__colSpan-Math.min(m,S.__colSpan-w))}}else if(_+S.__colSpan-1>p){if(x===p){let w=p-_+1;S.setColSpan(S.__colSpan-w)}}else S.remove()}let h=s[u],v=c>d?h[c+n.__colSpan]:h[d+i.__colSpan];if(v!==void 0){let{cell:b}=v;W1(b)}else{let b=d<c?h[d-1]:h[c-1],{cell:x}=b;W1(x)}let y=o.getColWidths();if(y){let b=[...y];b.splice(f,m),o.setColWidths(b)}}function W1(t){let e=t.getFirstDescendant();e==null?t.selectStart():e.getParentOrThrow().selectStart()}function _9(t,e){let r=t.getFirstChild();r!==null?r.insertBefore(e):t.append(e)}function tW(t){if(t.length===0)return null;let e=Q4(t[0]),[r]=Yl(e,null,null),n=1/0,o=-1/0,i=1/0,s=-1/0,a=new Set;for(let p of r)for(let m of p){if(!m||!m.cell)continue;let g=m.cell.getKey();if(!a.has(g)&&t.some(h=>h.is(m.cell))){a.add(g);let h=m.startRow,v=m.startColumn,y=m.cell.__rowSpan||1,b=m.cell.__colSpan||1;n=Math.min(n,h),o=Math.max(o,h+y-1),i=Math.min(i,v),s=Math.max(s,v+b-1)}}if(n===1/0||i===1/0)return null;let l=o-n+1,c=s-i+1,u=r[n][i];if(!u.cell)return null;let d=u.cell;d.setColSpan(c),d.setRowSpan(l);let f=new Set([d.getKey()]);for(let p=n;p<=o;p++)for(let m=i;m<=s;m++){let g=r[p][m];if(!g.cell)continue;let h=g.cell,v=h.getKey();f.has(v)||(f.add(v),sbe(h)||d.append(...h.getChildren()),h.remove())}return d.getChildrenSize()===0&&d.append(de()),d}function sbe(t){if(t.getChildrenSize()!==1)return!1;let e=t.getFirstChildOrThrow();return!(!Gn(e)||!e.isEmpty())}function abe(){let t=H();V(t)||Kt(t)||Oe(188);let e=t.anchor.getNode(),r=se(e,je);return je(r)||Oe(148),rW(r)}function rW(t){let[e,r,n]=An(t),o=e.__colSpan,i=e.__rowSpan;if(o===1&&i===1)return;let[s,a]=go(n,e,e),{startColumn:l,startRow:c}=a,u=e.__headerState&xr.COLUMN,d=Array.from({length:o},(m,g)=>{let h=u;for(let v=0;h!==0&&v<s.length;v++)h&=s[v][g+l].cell.__headerState;return h}),f=e.__headerState&xr.ROW,p=Array.from({length:i},(m,g)=>{let h=f;for(let v=0;h!==0&&v<s[0].length;v++)h&=s[g+c][v].cell.__headerState;return h});if(o>1){for(let m=1;m<o;m++)e.insertAfter(di(d[m]|p[0]).append(de()));e.setColSpan(1)}if(i>1){let m;for(let g=1;g<i;g++){let h=c+g,v=s[h];m=(m||r).getNextSibling(),ur(m)||Oe(125);let y=null;for(let b=0;b<l;b++){let x=v[b],S=x.cell;x.startRow===h&&(y=S),S.__colSpan>1&&(b+=S.__colSpan-1)}if(y===null)for(let b=o-1;b>=0;b--)_9(m,di(d[b]|p[g]).append(de()));else for(let b=o-1;b>=0;b--)y.insertAfter(di(d[b]|p[g]).append(de()))}e.setRowSpan(1)}}function go(t,e,r){let[n,o,i]=Yl(t,e,r);return o===null&&Oe(207),i===null&&Oe(208),[n,o,i]}function Yl(t,e,r){let n=[],o=null,i=null;function s(l){let c=n[l];return c===void 0&&(n[l]=c=[]),c}let a=t.getChildren();for(let l=0;l<a.length;l++){let c=a[l];ur(c)||Oe(209);let u=s(l);for(let d=c.getFirstChild(),f=0;d!=null;d=d.getNextSibling()){for(je(d)||Oe(147);u[f]!==void 0;)f++;let p={cell:d,startColumn:f,startRow:l},{__rowSpan:m,__colSpan:g}=d;for(let h=0;h<m&&!(l+h>=a.length);h++){let v=s(l+h);for(let y=0;y<g;y++)v[f+y]=p}e!==null&&o===null&&e.is(d)&&(o=p),r!==null&&i===null&&r.is(d)&&(i=p)}}return[n,o,i]}function An(t){let e;if(t instanceof Ha)e=t;else if("__type"in t){let o=se(t,je);je(o)||Oe(148),e=o}else{let o=se(t.getNode(),je);je(o)||Oe(148),e=o}let r=e.getParent();ur(r)||Oe(149);let n=r.getParent();return Hr(n)||Oe(210),[e,r,n]}function q4(t,e,r){let n,o=Math.min(e.startColumn,r.startColumn),i=Math.min(e.startRow,r.startRow),s=Math.max(e.startColumn+e.cell.__colSpan-1,r.startColumn+r.cell.__colSpan-1),a=Math.max(e.startRow+e.cell.__rowSpan-1,r.startRow+r.cell.__rowSpan-1);do{n=!1;for(let l=0;l<t.length;l++)for(let c=0;c<t[0].length;c++){let u=t[l][c];if(!u)continue;let d=u.startColumn+u.cell.__colSpan-1,f=u.startRow+u.cell.__rowSpan-1,p=u.startColumn<=s&&d>=o,m=u.startRow<=a&&f>=i;if(p&&m){let g=Math.min(o,u.startColumn),h=Math.max(s,d),v=Math.min(i,u.startRow),y=Math.max(a,f);g===o&&h===s&&v===i&&y===a||(o=g,s=h,i=v,a=y,n=!0)}}}while(n);return{maxColumn:s,maxRow:a,minColumn:o,minRow:i}}function g9(t){let[e,,r]=An(t),n=r.getChildren(),o=n.length,i=n[0].getChildren().length,s=new Array(o);for(let a=0;a<o;a++)s[a]=new Array(i);for(let a=0;a<o;a++){let l=n[a].getChildren(),c=0;for(let u=0;u<l.length;u++){for(;s[a][c];)c++;let d=l[u],f=d.__rowSpan||1,p=d.__colSpan||1;for(let m=0;m<f;m++)for(let g=0;g<p;g++)s[a+m][c+g]=d;if(e===d)return{colSpan:p,columnIndex:c,rowIndex:a,rowSpan:f};c+=p}}return null}function VK(t){let[[e,r,n,o],[i,s,a,l]]=["anchor","focus"].map(c=>{let u=t[c].getNode(),d=se(u,je);je(d)||Oe(238,c,u.getKey(),u.getType());let f=d.getParent();ur(f)||Oe(239,c);let p=f.getParent();return Hr(p)||Oe(240,c),[u,d,f,p]});return o.is(l)||Oe(241),{anchorCell:r,anchorNode:e,anchorRow:n,anchorTable:o,focusCell:s,focusNode:i,focusRow:a,focusTable:l}}function Kt(t){return t instanceof J4}function w9(){let t=vn("root",0,"element"),e=vn("root",0,"element");return new J4("root",t,e)}function nW(t,e,r){t.getKey(),e.getKey(),r.getKey();let n=H(),o=Kt(n)?n.clone():w9();return o.set(t.getKey(),e.getKey(),r.getKey()),o}function lbe(t,e){let r=[[t]];for(let n=r.at(-1);n!==void 0&&r.length>0;n=r.at(-1)){let o=n.pop();o===void 0?r.pop():e(o)!==!1&&G(o)&&r.push(o.getChildren())}}function E9(t,e=ri()){let r=st(t);Hr(r)||Oe(231,t);let n=Pu(r,e.getElementByKey(t));return n===null&&Oe(232,t),{tableElement:n,tableNode:r}}function Tg(t){return ai(t)&&t.nodeName==="TABLE"}function Pu(t,e){if(!e)return e;let r=Tg(e)?e:t.getDOMSlot(e).element;return r.nodeName!=="TABLE"&&Oe(245,e.nodeName),r}function T9(t){return t._window}function K1(t,e){for(let r=e,n=null;r!==null;r=r.getParent()){if(t.is(r))return n;je(r)&&(n=r)}return null}function oW(t,e,r,n){let o=r.getRootElement(),i=T9(r);o!==null&&i!==null||Oe(246);let s=new X4(r,t.getKey()),a=Pu(t,e);(function(p,m){v9(p)!==null&&Oe(205),p[h9]=m})(a,s),s.listenersToRemove.add(()=>function(p,m){v9(p)===m&&delete p[h9]}(a,s));let l=p=>{if(s.pointerType=p.pointerType,p.button!==0||!zr(p.target)||!i)return;let m=G1(p.target);m!==null&&r.update(()=>{let g=Wn();if(jK&&p.shiftKey&&Va(g,t)&&(V(g)||Kt(g))){let h=g.anchor.getNode(),v=K1(t,g.anchor.getNode());v?(s.$setAnchorCellForSelection(wf(s,v)),s.$setFocusCellForSelection(m),Gl(p)):(t.isBefore(h)?t.selectStart():t.selectEnd()).anchor.set(g.anchor.key,g.anchor.offset,g.anchor.type)}else p.pointerType!=="touch"&&s.$setAnchorCellForSelection(m)}),(()=>{if(s.isSelecting)return;let g=()=>{s.isSelecting=!1,i.removeEventListener("pointerup",g),i.removeEventListener("pointermove",h)},h=v=>{if(1&~v.buttons&&s.isSelecting)return s.isSelecting=!1,i.removeEventListener("pointerup",g),void i.removeEventListener("pointermove",h);if(!zr(v.target))return;let y=null,b=!(jK||a.contains(v.target));if(b)y=HK(a,v.target);else for(let x of document.elementsFromPoint(v.clientX,v.clientY))if(y=HK(a,x),y)break;!y||s.focusCell!==null&&y.elem===s.focusCell.elem||(s.setNextFocus({focusCell:y,override:b}),r.dispatchCommand(si,void 0))};s.isSelecting=!0,i.addEventListener("pointerup",g,s.listenerOptions),i.addEventListener("pointermove",h,s.listenerOptions)})()};a.addEventListener("pointerdown",l,s.listenerOptions),s.listenersToRemove.add(()=>{a.removeEventListener("pointerdown",l)});let c=p=>{p.detail>=3&&zr(p.target)&&G1(p.target)!==null&&p.preventDefault()};a.addEventListener("mousedown",c,s.listenerOptions),s.listenersToRemove.add(()=>{a.removeEventListener("mousedown",c)});let u=p=>{let m=p.target;p.button===0&&zr(m)&&r.update(()=>{let g=H();Kt(g)&&g.tableKey===s.tableNodeKey&&o.contains(m)&&s.$clearHighlight()})};i.addEventListener("pointerdown",u,s.listenerOptions),s.listenersToRemove.add(()=>{i.removeEventListener("pointerdown",u)});for(let[p,m]of cbe)s.listenersToRemove.add(r.registerCommand(p,g=>aW(r,g,m,t,s),uu));s.listenersToRemove.add(r.registerCommand(Xi,p=>{let m=H();if(Kt(m)){let g=K1(t,m.focus.getNode());if(g!==null)return Gl(p),g.selectEnd(),!0}return!1},uu));let d=p=>()=>{let m=H();if(!Va(m,t))return!1;if(Kt(m))return s.$clearText(),!0;if(V(m)){if(!je(K1(t,m.anchor.getNode())))return!1;let g=m.anchor.getNode(),h=m.focus.getNode(),v=t.isParentOf(g),y=t.isParentOf(h);if(v&&!y||y&&!v)return s.$clearText(),!0;let b=se(m.anchor.getNode(),S=>G(S)),x=b&&se(b,S=>G(S)&&je(S.getParent()));if(!G(x)||!G(b))return!1;if(p===Ca&&x.getPreviousSibling()===null)return!0}return!1};for(let p of ube)s.listenersToRemove.add(r.registerCommand(p,d(p),Qt));let f=p=>{let m=H();if(!Kt(m)&&!V(m))return!1;let g=t.isParentOf(m.anchor.getNode());if(g!==t.isParentOf(m.focus.getNode())){let h=g?"anchor":"focus",v=g?"focus":"anchor",{key:y,offset:b,type:x}=m[v];return t[m[h].isBefore(m[v])?"selectPrevious":"selectNext"]()[v].set(y,b,x),!1}return!!Va(m,t)&&!!Kt(m)&&(p&&(p.preventDefault(),p.stopPropagation()),s.$clearText(),!0)};for(let p of dbe)s.listenersToRemove.add(r.registerCommand(p,f,Qt));return s.listenersToRemove.add(r.registerCommand(pu,p=>{let m=H();if(m){if(!Kt(m)&&!V(m))return!1;Pa(r,Er(p,ClipboardEvent)?p:null,M4(m));let g=f(p);return V(m)?(m.removeText(),!0):g}return!1},Qt)),s.listenersToRemove.add(r.registerCommand(vu,p=>{let m=H();if(!Va(m,t))return!1;if(Kt(m))return s.$formatCells(p),!0;if(V(m)){let g=se(m.anchor.getNode(),h=>je(h));if(!je(g))return!1}return!1},Qt)),s.listenersToRemove.add(r.registerCommand(hu,p=>{let m=H();if(!Kt(m)||!Va(m,t))return!1;let g=m.anchor.getNode(),h=m.focus.getNode();if(!je(g)||!je(h))return!1;if(function(N,$){if(Kt(N)){let E=N.anchor.getNode(),R=N.focus.getNode();if($&&E&&R){let[O]=go($,E,R);return E.getKey()===O[0][0].cell.getKey()&&R.getKey()===O[O.length-1].at(-1).cell.getKey()}}return!1}(m,t))return t.setFormat(p),!0;let[v,y,b]=go(t,g,h),x=Math.max(y.startRow+y.cell.__rowSpan-1,b.startRow+b.cell.__rowSpan-1),S=Math.max(y.startColumn+y.cell.__colSpan-1,b.startColumn+b.cell.__colSpan-1),_=Math.min(y.startRow,b.startRow),w=Math.min(y.startColumn,b.startColumn),T=new Set;for(let N=_;N<=x;N++)for(let $=w;$<=S;$++){let E=v[N][$].cell;if(T.has(E))continue;T.add(E),E.setFormat(p);let R=E.getChildren();for(let O=0;O<R.length;O++){let A=R[O];G(A)&&!A.isInline()&&A.setFormat(p)}}return!0},Qt)),s.listenersToRemove.add(r.registerCommand(du,p=>{let m=H();if(!Va(m,t))return!1;if(Kt(m))return s.$clearHighlight(),!1;if(V(m)){let g=se(m.anchor.getNode(),h=>je(h));if(!je(g))return!1;if(typeof p=="string"){let h=WK(r,m,t);if(h)return KK(h,t,[bt(p)]),!0}}return!1},Qt)),n&&s.listenersToRemove.add(r.registerCommand(Do,p=>{let m=H();if(!V(m)||!m.isCollapsed()||!Va(m,t))return!1;let g=$g(m.anchor.getNode());return!(g===null||!t.is(Ef(g)))&&(Gl(p),function(h,v){let y=v==="next"?"getNextSibling":"getPreviousSibling",b=v==="next"?"getFirstChild":"getLastChild",x=h[y]();if(G(x))return x.selectEnd();let S=se(h,ur);S===null&&Oe(247);for(let w=S[y]();ur(w);w=w[y]()){let T=w[b]();if(G(T))return T.selectEnd()}let _=se(S,Hr);_===null&&Oe(248),v==="next"?_.selectNext():_.selectPrevious()}(g,p.shiftKey?"previous":"next"),!0)},Qt)),s.listenersToRemove.add(r.registerCommand($1,p=>t.isSelected(),uu)),s.listenersToRemove.add(r.registerCommand(Ta,(p,m)=>{if(r!==m)return!1;let{nodes:g,selection:h}=p,v=h.getStartEndPoints(),y=Kt(h),b=V(h)&&se(h.anchor.getNode(),pe=>je(pe))!==null&&se(h.focus.getNode(),pe=>je(pe))!==null||y;if(g.length!==1||!Hr(g[0])||!b||v===null)return!1;let[x,S]=v,[_,w,T]=An(x),N=se(S.getNode(),pe=>je(pe));if(!(je(_)&&je(N)&&ur(w)&&Hr(T)))return!1;let $=g[0],[E,R,O]=go(T,_,N),[A]=Yl($,null,null),B=E.length,D=B>0?E[0].length:0,F=R.startRow,P=R.startColumn,z=A.length,j=z>0?A[0].length:0;if(y){let pe=q4(E,R,O),Me=pe.maxRow-pe.minRow+1,Z=pe.maxColumn-pe.minColumn+1;F=pe.minRow,P=pe.minColumn,z=Math.min(z,Me),j=Math.min(j,Z)}let I=!1,Y=Math.min(B,F+z)-1,te=Math.min(D,P+j)-1,fe=new Set;for(let pe=F;pe<=Y;pe++)for(let Me=P;Me<=te;Me++){let Z=E[pe][Me];fe.has(Z.cell.getKey())||Z.cell.__rowSpan===1&&Z.cell.__colSpan===1||(rW(Z.cell),fe.add(Z.cell.getKey()),I=!0)}let[xe]=Yl(T.getWritable(),null,null),Ze=z-B+F;for(let pe=0;pe<Ze;pe++)p9(xe[B-1][0].cell);let Ae=j-D+P;for(let pe=0;pe<Ae;pe++)m9(xe[0][D-1].cell,!0,!1);[xe]=Yl(T.getWritable(),null,null);for(let pe=F;pe<F+z;pe++)for(let Me=P;Me<P+j;Me++){let Z=pe-F,Ce=Me-P,ne=A[Z][Ce];if(ne.startRow!==Z||ne.startColumn!==Ce)continue;let Fe=ne.cell;if(Fe.__rowSpan!==1||Fe.__colSpan!==1){let it=[],fo=Math.min(pe+Fe.__rowSpan,F+z)-1,X=Math.min(Me+Fe.__colSpan,P+j)-1;for(let He=pe;He<=fo;He++)for(let Ot=Me;Ot<=X;Ot++){let nt=xe[He][Ot];it.push(nt.cell)}tW(it),I=!0}let{cell:pt}=xe[pe][Me],rt=pt.getChildren();Fe.getChildren().forEach(it=>{ie(it)&&de().append(it),pt.append(it)}),rt.forEach(it=>it.remove())}if(y&&I){let[pe]=Yl(T.getWritable(),null,null);pe[R.startRow][R.startColumn].cell.selectEnd()}return!0},Qt)),s.listenersToRemove.add(r.registerCommand(si,()=>{let p=H(),m=Wn(),g=s.getAndClearNextFocus();if(g!==null){let{focusCell:h}=g;if(Kt(p)&&p.tableKey===s.tableNodeKey)return(h.x!==s.focusX||h.y!==s.focusY)&&(s.$setFocusCellForSelection(h),!0);if(h!==s.anchorCell&&Va(p,t))return s.$setFocusCellForSelection(h),!0}if(s.getAndClearShouldCheckSelection()&&V(m)&&V(p)&&p.isCollapsed()){let h=p.anchor.getNode(),v=t.getFirstChild(),y=$g(h);if(y!==null&&ur(v)){let b=v.getFirstChild();if(je(b)&&t.is(se(y,x=>x.is(t)||x.is(b))))return b.selectStart(),!0}}if(V(p)){let{anchor:h,focus:v}=p,y=h.getNode(),b=v.getNode(),x=$g(y),S=$g(b),_=!(!x||!t.is(Ef(x))),w=!(!S||!t.is(Ef(S))),T=_!==w,N=_&&w,$=p.isBackward();if(T){let E=p.clone();if(w){let[R]=go(t,S,S),O=R[0][0].cell,A=R[R.length-1].at(-1).cell;E.focus.set($?O.getKey():A.getKey(),$?O.getChildrenSize():A.getChildrenSize(),"element")}else if(_){let[R]=go(t,x,x),O=R[0][0].cell,A=R[R.length-1].at(-1).cell;E.anchor.set($?A.getKey():O.getKey(),$?A.getChildrenSize():0,"element")}qe(E),UK(r,s)}else if(N&&(x.is(S)||(s.$setAnchorCellForSelection(wf(s,x)),s.$setFocusCellForSelection(wf(s,S),!0)),s.pointerType==="touch"&&s.isSelecting&&p.isCollapsed()&&V(m)&&m.isCollapsed())){let E=$g(m.anchor.getNode());E&&!E.is(S)&&(s.$setAnchorCellForSelection(wf(s,E)),s.$setFocusCellForSelection(wf(s,S),!0),s.pointerType=null)}}else if(p&&Kt(p)&&p.is(m)&&p.tableKey===t.getKey()){let h=Lo(i);if(h&&h.anchorNode&&h.focusNode){let v=gt(h.focusNode),y=v&&!t.isParentOf(v),b=gt(h.anchorNode),x=b&&t.isParentOf(b);if(y&&x&&h.rangeCount>0){let S=i2(h,r);S&&(S.anchor.set(t.getKey(),p.isBackward()?t.getChildrenSize():0,"element"),h.removeAllRanges(),qe(S))}}}return p&&!p.is(m)&&(Kt(p)||Kt(m))&&s.tableSelection&&!s.tableSelection.is(m)?(Kt(p)&&p.tableKey===s.tableNodeKey?s.$updateTableTableSelection(p):!Kt(p)&&Kt(m)&&m.tableKey===s.tableNodeKey&&s.$updateTableTableSelection(null),!1):(s.hasHijackedSelectionStyles&&!t.isSelected()?function(h,v){v.$enableHighlightStyle(),$9(v.table,y=>{let b=y.elem;y.highlighted=!1,sW(h,y),b.getAttribute("style")||b.removeAttribute("style")})}(r,s):!s.hasHijackedSelectionStyles&&t.isSelected()&&UK(r,s),!1)},Qt)),s.listenersToRemove.add(r.registerCommand(No,()=>{let p=H();if(!V(p)||!p.isCollapsed()||!Va(p,t))return!1;let m=WK(r,p,t);return!!m&&(KK(m,t),!0)},Qt)),s}function v9(t){return t[h9]||null}function G1(t){let e=t;for(;e!=null;){let r=e.nodeName;if(r==="TD"||r==="TH"){let n=e._cell;return n===void 0?null:n}e=e.parentNode}return null}function HK(t,e){if(!t.contains(e))return null;let r=null;for(let n=e;n!=null;n=n.parentNode){if(n===t)return r;let o=n.nodeName;o!=="TD"&&o!=="TH"||(r=n._cell||null)}return null}function Ng(t,e){let r=[],n={columns:0,domRows:r,rows:0},o=Pu(t,e).querySelector("tr"),i=0,s=0;for(r.length=0;o!=null;){let a=o.nodeName;if(a==="TD"||a==="TH"){let u={elem:o,hasBackgroundColor:o.style.backgroundColor!=="",highlighted:!1,x:i,y:s};o._cell=u;let d=r[s];d===void 0&&(d=r[s]=[]),d[i]=u}else{let u=o.firstChild;if(u!=null){o=u;continue}}let l=o.nextSibling;if(l!=null){i++,o=l;continue}let c=o.parentNode;if(c!=null){let u=c.nextSibling;if(u==null)break;s++,i=0,o=u}}return n.columns=i+1,n.rows=s+1,n}function G4(t,e,r){let n=new Set(r?r.getNodes():[]);$9(e,(o,i)=>{let s=o.elem;n.has(i)?(o.highlighted=!0,iW(t,o)):(o.highlighted=!1,sW(t,o),s.getAttribute("style")||s.removeAttribute("style"))})}function $9(t,e){let{domRows:r}=t;for(let n=0;n<r.length;n++){let o=r[n];if(o)for(let i=0;i<o.length;i++){let s=o[i];if(!s)continue;let a=gt(s.elem);a!==null&&e(s,a,{x:i,y:n})}}}function UK(t,e){e.$disableHighlightStyle(),$9(e.table,r=>{r.highlighted=!0,iW(t,r)})}function u9(t,e){let r,n;if(e.startColumn===t.minColumn)r="minColumn";else{if(e.startColumn+e.cell.__colSpan-1!==t.maxColumn)return null;r="maxColumn"}if(e.startRow===t.minRow)n="minRow";else{if(e.startRow+e.cell.__rowSpan-1!==t.maxRow)return null;n="maxRow"}return[r,n]}function Y4([t,e]){return[t==="minColumn"?"maxColumn":"minColumn",e==="minRow"?"maxRow":"minRow"]}function Eg(t,e,[r,n]){let o=e[n],i=t[o];i===void 0&&Oe(250,n,String(o));let s=e[r],a=i[s];return a===void 0&&Oe(250,r,String(s)),a}function pbe(t,e,r,n,o){let i=q4(e,r,n),s=function(_,w){let{minColumn:T,maxColumn:N,minRow:$,maxRow:E}=w,R=1,O=1,A=1,B=1,D=_[$],F=_[E];for(let P=T;P<=N;P++)R=Math.max(R,D[P].cell.__rowSpan),B=Math.max(B,F[P].cell.__rowSpan);for(let P=$;P<=E;P++)O=Math.max(O,_[P][T].cell.__colSpan),A=Math.max(A,_[P][N].cell.__colSpan);return{bottomSpan:B,leftSpan:O,rightSpan:A,topSpan:R}}(e,i),{topSpan:a,leftSpan:l,bottomSpan:c,rightSpan:u}=s,d=function(_,w){let T=u9(_,w);return T===null&&Oe(249,w.cell.getKey()),T}(i,r),[f,p]=Y4(d),m=i[f],g=i[p];o==="forward"?m+=f==="maxColumn"?1:l:o==="backward"?m-=f==="minColumn"?1:u:o==="down"?g+=p==="maxRow"?1:a:o==="up"&&(g-=p==="minRow"?1:c);let h=e[g];if(h===void 0)return!1;let v=h[m];if(v===void 0)return!1;let[y,b]=function(_,w,T){let N=q4(_,w,T),$=u9(N,w);if($)return[Eg(_,N,$),Eg(_,N,Y4($))];let E=u9(N,T);if(E)return[Eg(_,N,Y4(E)),Eg(_,N,E)];let R=["minColumn","minRow"];return[Eg(_,N,R),Eg(_,N,Y4(R))]}(e,r,v),x=wf(t,y.cell),S=wf(t,b.cell);return t.$setAnchorCellForSelection(x),t.$setFocusCellForSelection(S,!0),!0}function Va(t,e){if(V(t)||Kt(t)){let r=e.isParentOf(t.anchor.getNode()),n=e.isParentOf(t.focus.getNode());return r&&n}return!1}function Z4(t,e){e?t.selectStart():t.selectEnd()}function iW(t,e){let r=e.elem,n=t._config.theme;je(gt(r))||Oe(131),Pe(r,n.tableCellSelected)}function sW(t,e){let r=e.elem;je(gt(r))||Oe(131);let n=t._config.theme;yr(r,n.tableCellSelected)}function $g(t){let e=se(t,je);return je(e)?e:null}function Ef(t){let e=se(t,Hr);return Hr(e)?e:null}function mbe(t,e,r,n,o,i,s){let a=wo(r.focus,o?"previous":"next");if(iu(a))return!1;let l=a;for(let h of ya(a).iterNodeCarets("shadowRoot")){if(!su(h)||!G(h.origin))return!1;l=h}let c=l.getParentAtCaret();if(!je(c))return!1;let u=c,d=function(h){for(let v of ya(h).iterNodeCarets("root")){let{origin:y}=v;if(je(y)){if(To(v))return Dr(y,h.direction)}else if(!ur(y))break}return null}(Xt(u,l.direction)),f=se(u,Hr);if(!f||!f.is(i))return!1;let p=t.getElementByKey(u.getKey()),m=G1(p);if(!p||!m)return!1;let g=cW(t,f);if(s.table=g,d)if(n==="extend"){let h=G1(t.getElementByKey(d.origin.getKey()));if(!h)return!1;s.$setAnchorCellForSelection(m),s.$setFocusCellForSelection(h,!0)}else{let h=bn(d);$o(r.anchor,h),$o(r.focus,h)}else if(n==="extend")s.$setAnchorCellForSelection(m),s.$setFocusCellForSelection(m,!0);else{let h=function(v){let y=ba(v);return To(y)?bn(y):v}(Xt(f,a.direction));$o(r.anchor,h),$o(r.focus,h)}return Gl(e),!0}function aW(t,e,r,n,o){if((r==="up"||r==="down")&&function(s){let a=s.getRootElement();return a?a.hasAttribute("aria-controls")&&a.getAttribute("aria-controls")==="typeahead-menu":!1}(t))return!1;let i=H();if(!Va(i,n)){if(V(i)){if(r==="backward"){if(i.focus.offset>0)return!1;let s=function(l){for(let c=l,u=l;u!==null;c=u,u=u.getParent())if(G(u)){if(u!==c&&u.getFirstChild()!==c)return null;if(!u.isInline())return u}return null}(i.focus.getNode());if(!s)return!1;let a=s.getPreviousSibling();return!!Hr(a)&&(Gl(e),e.shiftKey?i.focus.set(a.getParentOrThrow().getKey(),a.getIndexWithinParent(),"element"):a.selectEnd(),!0)}if(e.shiftKey&&(r==="up"||r==="down")){let s=i.focus.getNode();if(!i.isCollapsed()&&(r==="up"&&!i.isBackward()||r==="down"&&i.isBackward())){let a=se(s,f=>Hr(f));if(je(a)&&(a=se(a,Hr)),a!==n||!a)return!1;let l=r==="down"?a.getNextSibling():a.getPreviousSibling();if(!l)return!1;let c=0;r==="up"&&G(l)&&(c=l.getChildrenSize());let u=l;r==="up"&&G(l)&&(u=l.getLastChild()||l,c=ie(u)?u.getTextContentSize():0);let d=i.clone();return d.focus.set(u.getKey(),c,ie(u)?"text":"element"),qe(d),Gl(e),!0}if(It(s)){let a=r==="up"?i.getNodes()[i.getNodes().length-1]:i.getNodes()[0];if(a&&K1(n,a)!==null){let l=n.getFirstDescendant(),c=n.getLastDescendant();if(!l||!c)return!1;let[u]=An(l),[d]=An(c),f=n.getCordsFromCellNode(u,o.table),p=n.getCordsFromCellNode(d,o.table),m=n.getDOMCellFromCordsOrThrow(f.x,f.y,o.table),g=n.getDOMCellFromCordsOrThrow(p.x,p.y,o.table);return o.$setAnchorCellForSelection(m),o.$setFocusCellForSelection(g,!0),!0}return!1}{let a=se(s,c=>G(c)&&!c.isInline());if(je(a)&&(a=se(a,Hr)),!a)return!1;let l=r==="down"?a.getNextSibling():a.getPreviousSibling();if(Hr(l)&&o.tableNodeKey===l.getKey()){let c=l.getFirstDescendant(),u=l.getLastDescendant();if(!c||!u)return!1;let[d]=An(c),[f]=An(u),p=i.clone();return p.focus.set((r==="up"?d:f).getKey(),r==="up"?0:f.getChildrenSize(),"element"),Gl(e),qe(p),!0}}}}return r==="down"&&Y1(t)&&o.setShouldCheckSelection(),!1}if(V(i)){if(r==="backward"||r==="forward")return mbe(t,e,i,e.shiftKey?"extend":"move",r==="backward",n,o);if(i.isCollapsed()){let{anchor:s,focus:a}=i,l=se(s.getNode(),je),c=se(a.getNode(),je);if(!je(l)||!l.is(c))return!1;let u=Ef(l);if(u!==n&&u!=null){let v=Pu(u,t.getElementByKey(u.getKey()));if(v!=null)return o.table=Ng(u,v),aW(t,e,r,u,o)}let d=t.getElementByKey(l.__key),f=t.getElementByKey(s.key);if(f==null||d==null)return!1;let p;if(s.type==="element")p=f.getBoundingClientRect();else{let v=Lo(T9(t));if(v===null||v.rangeCount===0)return!1;p=v.getRangeAt(0).getBoundingClientRect()}let m=r==="up"?l.getFirstChild():l.getLastChild();if(m==null)return!1;let g=t.getElementByKey(m.__key);if(g==null)return!1;let h=g.getBoundingClientRect();if(r==="up"?h.top>p.top-p.height:p.bottom+p.height>h.bottom){Gl(e);let v=n.getCordsFromCellNode(l,o.table);if(!e.shiftKey)return fbe(o,n,v.x,v.y,r);{let y=n.getDOMCellFromCordsOrThrow(v.x,v.y,o.table);o.$setAnchorCellForSelection(y),o.$setFocusCellForSelection(y,!0)}return!0}}}else if(Kt(i)){let{anchor:s,focus:a}=i,l=se(s.getNode(),je),c=se(a.getNode(),je),[u]=i.getNodes();Hr(u)||Oe(251);let d=Pu(u,t.getElementByKey(u.getKey()));if(!je(l)||!je(c)||!Hr(u)||d==null)return!1;o.$updateTableTableSelection(i);let f=Ng(u,d),p=n.getCordsFromCellNode(l,f),m=n.getDOMCellFromCordsOrThrow(p.x,p.y,f);if(o.$setAnchorCellForSelection(m),Gl(e),e.shiftKey){let[g,h,v]=go(n,l,c);return pbe(o,g,h,v,r)}return c.selectEnd(),!0}return!1}function Gl(t){t.preventDefault(),t.stopImmediatePropagation(),t.stopPropagation()}function KK(t,e,r){let n=de();t==="first"?e.insertBefore(n):e.insertAfter(n),n.append(...r||[]),n.selectEnd()}function WK(t,e,r){let n=r.getParent();if(!n)return;let o=Lo(T9(t));if(!o)return;let i=o.anchorNode,s=t.getElementByKey(n.getKey()),a=Pu(r,t.getElementByKey(r.getKey()));if(!i||!s||!a||!s.contains(i)||a.contains(i))return;let l=se(e.anchor.getNode(),y=>je(y));if(!l)return;let c=se(l,y=>Hr(y));if(!Hr(c)||!c.is(r))return;let[u,d]=go(r,l,l),f=u[0][0],p=u[u.length-1][u[0].length-1],{startRow:m,startColumn:g}=d,h=m===f.startRow&&g===f.startColumn,v=m===p.startRow&&g===p.startColumn;return h?"first":v?"last":void 0}function wf(t,e){let{tableNode:r}=t.$lookup(),n=r.getCordsFromCellNode(e,t.table);return r.getDOMCellFromCordsOrThrow(n.x,n.y,t.table)}function y9(t,e,r){return K1(t,gt(e,r))}function GK(t,e,r){if(!e.theme.tableAlignment)return;let n=[],o=[];for(let i of["center","right"]){let s=e.theme.tableAlignment[i];s&&(i===r?o:n).push(s)}yr(t,...n),Pe(t,...o)}function Y1(t=ri()){return b9.has(t)}function lW(t,e){e?b9.add(t):b9.delete(t)}function cW(t,e){let r=t.getElementByKey(e.getKey());return r===null&&Oe(230),Ng(e,r)}function gbe(t){let e=e3();t.hasAttribute("data-lexical-row-striping")&&e.setRowStriping(!0),t.hasAttribute("data-lexical-frozen-column")&&e.setFrozenColumns(1),t.hasAttribute("data-lexical-frozen-row")&&e.setFrozenRows(1);let r=t.querySelector(":scope > colgroup");if(r){let n=[];for(let o of r.querySelectorAll(":scope > col")){let i=o.style.width||"";if(!x9.test(i)&&(i=o.getAttribute("width")||"",!/^\d+$/.test(i))){n=void 0;break}n.push(parseFloat(i))}n&&e.setColWidths(n)}return{after:n=>Wm(n,ur),node:e}}function e3(){return Mt(new Ua)}function Hr(t){return t instanceof Ua}function hbe({rows:t,columns:e,includeHeaders:r}){let n=H()||Wn();if(!n||!V(n)||Ef(n.anchor.getNode()))return!1;let o=ZK(Number(t),Number(e),r);r4(o);let i=o.getFirstDescendant();return ie(i)&&i.select(),!0}function vbe(t){ur(t.getParent())?t.isEmpty()&&t.append(de()):t.remove()}function ybe(t){Hr(t.getParent())?Gm(t,je):t.remove()}function bbe(t){Gm(t,ur);let[e]=Yl(t,null,null),r=e.reduce((o,i)=>Math.max(o,i.length),0),n=t.getChildren();for(let o=0;o<e.length;++o){let i=n[o];if(!i)continue;ur(i)||Oe(254,i.constructor.name,i.getType());let s=e[o].reduce((a,l)=>l?1+a:a,0);if(s!==r)for(let a=s;a<r;++a){let l=di();l.append(de()),i.append(l)}}}function xbe(t){if(t.detail<3||!zr(t.target))return!1;let e=gt(t.target);if(e===null)return!1;let r=se(e,n=>G(n)&&!n.isInline());return r===null?!1:!!je(r.getParent())&&(r.select(0),!0)}function uW(t){return t.registerNodeTransform(Ha,e=>{if(e.getColSpan()>1||e.getRowSpan()>1){let[,,r]=An(e),[n]=go(r,e,e),o=n.length,i=n[0].length,s=r.getFirstChild();ur(s)||Oe(175);let a=[];for(let l=0;l<o;l++){l!==0&&(s=s.getNextSibling(),ur(s)||Oe(175));let c=null;for(let u=0;u<i;u++){let d=n[l][u],f=d.cell;if(d.startRow===l&&d.startColumn===u)c=f,a.push(f);else if(f.getColSpan()>1||f.getRowSpan()>1){je(f)||Oe(176);let p=di(f.__headerState);c!==null?c.insertAfter(p):t4(s,p)}}}for(let l of a)l.setColSpan(1),l.setRowSpan(1)}})}function dW(t,e=!0){let r=new Map,n=(i,s,a)=>{let l=Pu(i,a),c=oW(i,l,t,e);r.set(s,[c,l])},o=t.registerMutationListener(Ua,i=>{t.getEditorState().read(()=>{for(let[s,a]of i){let l=r.get(s);if(a==="created"||a==="updated"){let{tableNode:c,tableElement:u}=E9(s);l===void 0?n(c,s,u):u!==l[1]&&(l[0].removeListeners(),r.delete(s),n(c,s,u))}else a==="destroyed"&&l!==void 0&&(l[0].removeListeners(),r.delete(s))}},{editor:t})},{skipInitialization:!1});return()=>{o();for(let[,[i]]of r)i.removeListeners()}}function fW(t){return t.hasNodes([Ua])||Oe(255),at(t.registerCommand(YK,hbe,me),t.registerCommand(Ta,({nodes:e,selection:r},n)=>t!==n||!V(r)?!1:Ef(r.anchor.getNode())!==null&&e.some(Hr),me),t.registerCommand(qi,xbe,me),t.registerNodeTransform(Ua,bbe),t.registerNodeTransform(Tf,ybe),t.registerNodeTransform(Ha,vbe))}var x9,xr,Ha,YK,Tf,C9,Yye,jK,f9,ebe,rbe,obe,ibe,J4,X4,h9,cbe,ube,dbe,fbe,b9,Ua,Cbe,mW=ue(async()=>{"use strict";await cn();await ht();await Hl();await F1();x9=/^(\d+(?:\.\d+)?)px$/,xr={BOTH:3,COLUMN:2,NO_STATUS:0,ROW:1},Ha=class t extends kt{__colSpan;__rowSpan;__headerState;__width;__backgroundColor;__verticalAlign;static getType(){return"tablecell"}static clone(e){return new t(e.__headerState,e.__colSpan,e.__width,e.__key)}afterCloneFrom(e){super.afterCloneFrom(e),this.__rowSpan=e.__rowSpan,this.__backgroundColor=e.__backgroundColor,this.__verticalAlign=e.__verticalAlign}static importDOM(){return{td:e=>({conversion:zK,priority:0}),th:e=>({conversion:zK,priority:0})}}static importJSON(e){return di().updateFromJSON(e)}updateFromJSON(e){return super.updateFromJSON(e).setHeaderStyles(e.headerState).setColSpan(e.colSpan||1).setRowSpan(e.rowSpan||1).setWidth(e.width||void 0).setBackgroundColor(e.backgroundColor||null).setVerticalAlign(e.verticalAlign||void 0)}constructor(e=xr.NO_STATUS,r=1,n,o){super(o),this.__colSpan=r,this.__rowSpan=1,this.__headerState=e,this.__width=n,this.__backgroundColor=null,this.__verticalAlign=void 0}createDOM(e){let r=document.createElement(this.getTag());return this.__width&&(r.style.width=`${this.__width}px`),this.__colSpan>1&&(r.colSpan=this.__colSpan),this.__rowSpan>1&&(r.rowSpan=this.__rowSpan),this.__backgroundColor!==null&&(r.style.backgroundColor=this.__backgroundColor),d9(this.__verticalAlign)&&(r.style.verticalAlign=this.__verticalAlign),Pe(r,e.theme.tableCell,this.hasHeader()&&e.theme.tableCellHeader),r}exportDOM(e){let r=super.exportDOM(e);if(ai(r.element)){let n=r.element;n.setAttribute("data-temporary-table-cell-lexical-key",this.getKey()),n.style.border="1px solid black",this.__colSpan>1&&(n.colSpan=this.__colSpan),this.__rowSpan>1&&(n.rowSpan=this.__rowSpan),n.style.width=`${this.getWidth()||75}px`,n.style.verticalAlign=this.getVerticalAlign()||"top",n.style.textAlign="start",this.__backgroundColor===null&&this.hasHeader()&&(n.style.backgroundColor="#f2f3f5")}return r}exportJSON(){return{...super.exportJSON(),...d9(this.__verticalAlign)&&{verticalAlign:this.__verticalAlign},backgroundColor:this.getBackgroundColor(),colSpan:this.__colSpan,headerState:this.__headerState,rowSpan:this.__rowSpan,width:this.getWidth()}}getColSpan(){return this.getLatest().__colSpan}setColSpan(e){let r=this.getWritable();return r.__colSpan=e,r}getRowSpan(){return this.getLatest().__rowSpan}setRowSpan(e){let r=this.getWritable();return r.__rowSpan=e,r}getTag(){return this.hasHeader()?"th":"td"}setHeaderStyles(e,r=xr.BOTH){let n=this.getWritable();return n.__headerState=e&r|n.__headerState&~r,n}getHeaderStyles(){return this.getLatest().__headerState}setWidth(e){let r=this.getWritable();return r.__width=e,r}getWidth(){return this.getLatest().__width}getBackgroundColor(){return this.getLatest().__backgroundColor}setBackgroundColor(e){let r=this.getWritable();return r.__backgroundColor=e,r}getVerticalAlign(){return this.getLatest().__verticalAlign}setVerticalAlign(e){let r=this.getWritable();return r.__verticalAlign=e||void 0,r}toggleHeaderStyle(e){let r=this.getWritable();return(r.__headerState&e)===e?r.__headerState-=e:r.__headerState+=e,r}hasHeaderState(e){return(this.getHeaderStyles()&e)===e}hasHeader(){return this.getLatest().__headerState!==xr.NO_STATUS}updateDOM(e){return e.__headerState!==this.__headerState||e.__width!==this.__width||e.__colSpan!==this.__colSpan||e.__rowSpan!==this.__rowSpan||e.__backgroundColor!==this.__backgroundColor||e.__verticalAlign!==this.__verticalAlign}isShadowRoot(){return!0}collapseAtStart(){return!0}canBeEmpty(){return!1}canIndent(){return!1}};YK=wt("INSERT_TABLE_COMMAND");Tf=class t extends kt{__height;static getType(){return"tablerow"}static clone(e){return new t(e.__height,e.__key)}static importDOM(){return{tr:e=>({conversion:Gye,priority:0})}}static importJSON(e){return $f().updateFromJSON(e)}updateFromJSON(e){return super.updateFromJSON(e).setHeight(e.height)}constructor(e,r){super(r),this.__height=e}exportJSON(){let e=this.getHeight();return{...super.exportJSON(),...e===void 0?void 0:{height:e}}}createDOM(e){let r=document.createElement("tr");return this.__height&&(r.style.height=`${this.__height}px`),Pe(r,e.theme.tableRow),r}extractWithChild(e,r,n){return n==="html"}isShadowRoot(){return!0}setHeight(e){let r=this.getWritable();return r.__height=e,r}getHeight(){return this.getLatest().__height}updateDOM(e){return e.__height!==this.__height}canBeEmpty(){return!1}canIndent(){return!1}};C9=typeof window<"u"&&window.document!==void 0&&window.document.createElement!==void 0,Yye=C9&&"documentMode"in document?document.documentMode:null,jK=C9&&/^(?!.*Seamonkey)(?=.*Firefox).*/i.test(navigator.userAgent);C9&&"InputEvent"in window&&!Yye&&new window.InputEvent("input");f9=(t,e)=>t===xr.BOTH||t===e?e:xr.NO_STATUS;ebe=JK;rbe=XK;obe=QK;ibe=eW;J4=class t{tableKey;anchor;focus;_cachedNodes;dirty;constructor(e,r,n){this.anchor=r,this.focus=n,r._selection=this,n._selection=this,this._cachedNodes=null,this.dirty=!1,this.tableKey=e}getStartEndPoints(){return[this.anchor,this.focus]}isValid(){if(this.tableKey==="root"||this.anchor.key==="root"||this.anchor.type!=="element"||this.focus.key==="root"||this.focus.type!=="element")return!1;let e=st(this.tableKey),r=st(this.anchor.key),n=st(this.focus.key);return e!==null&&r!==null&&n!==null}isBackward(){return this.focus.isBefore(this.anchor)}getCachedNodes(){return this._cachedNodes}setCachedNodes(e){this._cachedNodes=e}is(e){return Kt(e)&&this.tableKey===e.tableKey&&this.anchor.is(e.anchor)&&this.focus.is(e.focus)}set(e,r,n){this.dirty=this.dirty||e!==this.tableKey||r!==this.anchor.key||n!==this.focus.key,this.tableKey=e,this.anchor.key=r,this.focus.key=n,this._cachedNodes=null}clone(){return new t(this.tableKey,vn(this.anchor.key,this.anchor.offset,this.anchor.type),vn(this.focus.key,this.focus.offset,this.focus.type))}isCollapsed(){return!1}extract(){return this.getNodes()}insertRawText(e){}insertText(){}hasFormat(e){let r=0;this.getNodes().filter(je).forEach(o=>{let i=o.getFirstChild();Gn(i)&&(r|=i.getTextFormat())});let n=A2[e];return(r&n)!==0}insertNodes(e){let r=this.focus.getNode();G(r)||Oe(151),Yn(r.select(0,r.getChildrenSize())).insertNodes(e)}getShape(){let{anchorCell:e,focusCell:r}=VK(this),n=g9(e);n===null&&Oe(153);let o=g9(r);o===null&&Oe(155);let i=Math.min(n.columnIndex,o.columnIndex),s=Math.max(n.columnIndex+n.colSpan-1,o.columnIndex+o.colSpan-1),a=Math.min(n.rowIndex,o.rowIndex),l=Math.max(n.rowIndex+n.rowSpan-1,o.rowIndex+o.rowSpan-1);return{fromX:Math.min(i,s),fromY:Math.min(a,l),toX:Math.max(i,s),toY:Math.max(a,l)}}getNodes(){if(!this.isValid())return[];let e=this._cachedNodes;if(e!==null)return e;let{anchorTable:r,anchorCell:n,focusCell:o}=VK(this),i=o.getParents()[1];if(i!==r){if(r.isParentOf(o)){let h=i.getParent();h==null&&Oe(159),this.set(this.tableKey,o.getKey(),h.getKey())}else{let h=r.getParent();h==null&&Oe(158),this.set(this.tableKey,h.getKey(),o.getKey())}return this.getNodes()}let[s,a,l]=go(r,n,o),{minColumn:c,maxColumn:u,minRow:d,maxRow:f}=q4(s,a,l),p=new Map([[r.getKey(),r]]),m=null;for(let h=d;h<=f;h++)for(let v=c;v<=u;v++){let{cell:y}=s[h][v],b=y.getParent();ur(b)||Oe(160),b!==m&&(p.set(b.getKey(),b),m=b),p.has(y.getKey())||lbe(y,x=>{p.set(x.getKey(),x)})}let g=Array.from(p.values());return B2()||(this._cachedNodes=g),g}getTextContent(){let e=this.getNodes().filter(n=>je(n)),r="";for(let n=0;n<e.length;n++){let o=e[n],i=o.__parent,s=(e[n+1]||{}).__parent;r+=o.getTextContent()+(s!==i?`
|
|
51
|
-
`:" ")}return r}};X4=class{focusX;focusY;listenersToRemove;table;isHighlightingCells;anchorX;anchorY;tableNodeKey;anchorCell;focusCell;anchorCellNodeKey;focusCellNodeKey;editor;tableSelection;hasHijackedSelectionStyles;isSelecting;pointerType;shouldCheckSelection;abortController;listenerOptions;nextFocus;constructor(e,r){this.isHighlightingCells=!1,this.anchorX=-1,this.anchorY=-1,this.focusX=-1,this.focusY=-1,this.listenersToRemove=new Set,this.tableNodeKey=r,this.editor=e,this.table={columns:0,domRows:[],rows:0},this.tableSelection=null,this.anchorCellNodeKey=null,this.focusCellNodeKey=null,this.anchorCell=null,this.focusCell=null,this.hasHijackedSelectionStyles=!1,this.isSelecting=!1,this.pointerType=null,this.shouldCheckSelection=!1,this.abortController=new AbortController,this.listenerOptions={signal:this.abortController.signal},this.nextFocus=null,this.trackTable()}getTable(){return this.table}removeListeners(){this.abortController.abort("removeListeners"),Array.from(this.listenersToRemove).forEach(e=>e()),this.listenersToRemove.clear()}$lookup(){return E9(this.tableNodeKey,this.editor)}trackTable(){let e=new MutationObserver(r=>{this.editor.getEditorState().read(()=>{let n=!1;for(let s=0;s<r.length;s++){let a=r[s].target.nodeName;if(a==="TABLE"||a==="TBODY"||a==="THEAD"||a==="TR"){n=!0;break}}if(!n)return;let{tableNode:o,tableElement:i}=this.$lookup();this.table=Ng(o,i)},{editor:this.editor})});this.editor.getEditorState().read(()=>{let{tableNode:r,tableElement:n}=this.$lookup();this.table=Ng(r,n),e.observe(n,{attributes:!0,childList:!0,subtree:!0})},{editor:this.editor})}$clearHighlight(){let e=this.editor;this.isHighlightingCells=!1,this.anchorX=-1,this.anchorY=-1,this.focusX=-1,this.focusY=-1,this.tableSelection=null,this.anchorCellNodeKey=null,this.focusCellNodeKey=null,this.anchorCell=null,this.focusCell=null,this.hasHijackedSelectionStyles=!1,this.$enableHighlightStyle();let{tableNode:r,tableElement:n}=this.$lookup();G4(e,Ng(r,n),null),H()!==null&&(qe(null),e.dispatchCommand(si,void 0))}$enableHighlightStyle(){let e=this.editor,{tableElement:r}=this.$lookup();yr(r,e._config.theme.tableSelection),r.classList.remove("disable-selection"),this.hasHijackedSelectionStyles=!1}$disableHighlightStyle(){let{tableElement:e}=this.$lookup();Pe(e,this.editor._config.theme.tableSelection),this.hasHijackedSelectionStyles=!0}$updateTableTableSelection(e){if(e!==null){e.tableKey!==this.tableNodeKey&&Oe(233,e.tableKey,this.tableNodeKey);let r=this.editor;this.tableSelection=e,this.isHighlightingCells=!0,this.$disableHighlightStyle(),this.updateDOMSelection(),G4(r,this.table,this.tableSelection)}else this.$clearHighlight()}setShouldCheckSelection(){this.shouldCheckSelection=!0}getAndClearShouldCheckSelection(){return!!this.shouldCheckSelection&&(this.shouldCheckSelection=!1,!0)}setNextFocus(e){this.nextFocus=e}getAndClearNextFocus(){let{nextFocus:e}=this;return e!==null&&(this.nextFocus=null),e}updateDOMSelection(){if(this.anchorCell!==null&&this.focusCell!==null){let e=Lo(this.editor._window);e&&e.rangeCount>0&&e.removeAllRanges()}}$setFocusCellForSelection(e,r=!1){let n=this.editor,{tableNode:o}=this.$lookup(),i=e.x,s=e.y;if(this.focusCell=e,this.isHighlightingCells||this.anchorX===i&&this.anchorY===s&&!r){if(i===this.focusX&&s===this.focusY)return!1}else this.isHighlightingCells=!0,this.$disableHighlightStyle();if(this.focusX=i,this.focusY=s,this.isHighlightingCells){let a=y9(o,e.elem);if(this.tableSelection!=null&&this.anchorCellNodeKey!=null&&a!==null)return this.focusCellNodeKey=a.getKey(),this.tableSelection=nW(o,this.$getAnchorTableCellOrThrow(),a),qe(this.tableSelection),n.dispatchCommand(si,void 0),G4(n,this.table,this.tableSelection),!0}return!1}$getAnchorTableCell(){return this.anchorCellNodeKey?st(this.anchorCellNodeKey):null}$getAnchorTableCellOrThrow(){let e=this.$getAnchorTableCell();return e===null&&Oe(234),e}$getFocusTableCell(){return this.focusCellNodeKey?st(this.focusCellNodeKey):null}$getFocusTableCellOrThrow(){let e=this.$getFocusTableCell();return e===null&&Oe(235),e}$setAnchorCellForSelection(e){this.isHighlightingCells=!1,this.anchorCell=e,this.anchorX=e.x,this.anchorY=e.y;let{tableNode:r}=this.$lookup(),n=y9(r,e.elem);if(n!==null){let o=n.getKey();this.tableSelection=this.tableSelection!=null?this.tableSelection.clone():w9(),this.anchorCellNodeKey=o}}$formatCells(e){let r=H();Kt(r)||Oe(236);let n=yn(),o=n.anchor,i=n.focus,s=r.getNodes().filter(je);s.length>0||Oe(237);let a=s[0].getFirstChild(),l=Gn(a)?a.getFormatFlags(e,null):null;s.forEach(c=>{o.set(c.getKey(),0,"element"),i.set(c.getKey(),c.getChildrenSize(),"element"),n.formatText(e,l)}),qe(r),this.editor.dispatchCommand(si,void 0)}$clearText(){let{editor:e}=this,r=st(this.tableNodeKey);if(!Hr(r))throw new Error("Expected TableNode.");let n=H();Kt(n)||Oe(253);let o=n.getNodes().filter(je),i=r.getFirstChild(),s=r.getLastChild();if(o.length>0&&i!==null&&s!==null&&ur(i)&&ur(s)&&o[0]===i.getFirstChild()&&o[o.length-1]===s.getLastChild()){r.selectPrevious();let a=r.getParent();return r.remove(),void(ni(a)&&a.isEmpty()&&e.dispatchCommand(No,void 0))}o.forEach(a=>{if(G(a)){let l=de(),c=bt();l.append(c),a.append(l),a.getChildren().forEach(u=>{u!==l&&u.remove()})}}),G4(e,this.table,null),qe(null),e.dispatchCommand(si,void 0)}},h9="__lexicalTableSelection";cbe=[[Zn,"down"],[Qr,"up"],[ii,"backward"],[_a,"forward"]],ube=[mu,Ca,Ji],dbe=[wa,Ea];fbe=(t,e,r,n,o)=>{let i=o==="forward";switch(o){case"backward":case"forward":return r!==(i?t.table.columns-1:0)?Z4(e.getCellNodeFromCordsOrThrow(r+(i?1:-1),n,t.table),i):n!==(i?t.table.rows-1:0)?Z4(e.getCellNodeFromCordsOrThrow(i?0:t.table.columns-1,n+(i?1:-1),t.table),i):i?e.selectNext():e.selectPrevious(),!0;case"up":return n!==0?Z4(e.getCellNodeFromCordsOrThrow(r,n-1,t.table),!1):e.selectPrevious(),!0;case"down":return n!==t.table.rows-1?Z4(e.getCellNodeFromCordsOrThrow(r,n+1,t.table),!0):e.selectNext(),!0;default:return!1}};b9=new WeakSet;Ua=class t extends kt{__rowStriping;__frozenColumnCount;__frozenRowCount;__colWidths;static getType(){return"table"}getColWidths(){return this.getLatest().__colWidths}setColWidths(e){let r=this.getWritable();return r.__colWidths=e,r}static clone(e){return new t(e.__key)}afterCloneFrom(e){super.afterCloneFrom(e),this.__colWidths=e.__colWidths,this.__rowStriping=e.__rowStriping,this.__frozenColumnCount=e.__frozenColumnCount,this.__frozenRowCount=e.__frozenRowCount}static importDOM(){return{table:e=>({conversion:gbe,priority:1})}}static importJSON(e){return e3().updateFromJSON(e)}updateFromJSON(e){return super.updateFromJSON(e).setRowStriping(e.rowStriping||!1).setFrozenColumns(e.frozenColumnCount||0).setFrozenRows(e.frozenRowCount||0).setColWidths(e.colWidths)}constructor(e){super(e),this.__rowStriping=!1,this.__frozenColumnCount=0,this.__frozenRowCount=0,this.__colWidths=void 0}exportJSON(){return{...super.exportJSON(),colWidths:this.getColWidths(),frozenColumnCount:this.__frozenColumnCount?this.__frozenColumnCount:void 0,frozenRowCount:this.__frozenRowCount?this.__frozenRowCount:void 0,rowStriping:this.__rowStriping?this.__rowStriping:void 0}}extractWithChild(e,r,n){return n==="html"}getDOMSlot(e){let r=Tg(e)?e:e.querySelector("table");return Tg(r)||Oe(229),super.getDOMSlot(e).withElement(r).withAfter(r.querySelector("colgroup"))}createDOM(e,r){let n=document.createElement("table");this.__style&&(n.style.cssText=this.__style);let o=document.createElement("colgroup");if(n.appendChild(o),U2(o),Pe(n,e.theme.table),this.updateTableElement(null,n,e),Y1(r)){let i=document.createElement("div"),s=e.theme.tableScrollableWrapper;return s?Pe(i,s):i.style.cssText="overflow-x: auto;",i.appendChild(n),this.updateTableWrapper(null,i,n,e),i}return n}updateTableWrapper(e,r,n,o){this.__frozenColumnCount!==(e?e.__frozenColumnCount:0)&&function(i,s,a,l){l>0?(Pe(i,a.theme.tableFrozenColumn),s.setAttribute("data-lexical-frozen-column","true")):(yr(i,a.theme.tableFrozenColumn),s.removeAttribute("data-lexical-frozen-column"))}(r,n,o,this.__frozenColumnCount),this.__frozenRowCount!==(e?e.__frozenRowCount:0)&&function(i,s,a,l){l>0?(Pe(i,a.theme.tableFrozenRow),s.setAttribute("data-lexical-frozen-row","true")):(yr(i,a.theme.tableFrozenRow),s.removeAttribute("data-lexical-frozen-row"))}(r,n,o,this.__frozenRowCount)}updateTableElement(e,r,n){this.__style!==(e?e.__style:"")&&(r.style.cssText=this.__style),this.__rowStriping!==(!!e&&e.__rowStriping)&&function(o,i,s){s?(Pe(o,i.theme.tableRowStriping),o.setAttribute("data-lexical-row-striping","true")):(yr(o,i.theme.tableRowStriping),o.removeAttribute("data-lexical-row-striping"))}(r,n,this.__rowStriping),function(o,i,s,a){let l=o.querySelector("colgroup");if(!l)return;let c=[];for(let u=0;u<s;u++){let d=document.createElement("col"),f=a&&a[u];f&&(d.style.width=`${f}px`),c.push(d)}l.replaceChildren(...c)}(r,0,this.getColumnCount(),this.getColWidths()),GK(r,n,this.getFormatType())}updateDOM(e,r,n){let o=this.getDOMSlot(r).element;return r===o===Y1()||(Nt(i=r)&&i.nodeName==="DIV"&&this.updateTableWrapper(e,r,o,n),this.updateTableElement(e,o,n),!1);var i}exportDOM(e){let r=super.exportDOM(e),{element:n}=r;return{after:o=>{if(r.after&&(o=r.after(o)),!Tg(o)&&Nt(o)&&(o=o.querySelector("table")),!Tg(o))return null;GK(o,e._config,this.getFormatType());let[i]=Yl(this,null,null),s=new Map;for(let u of i)for(let d of u){let f=d.cell.getKey();s.has(f)||s.set(f,{colSpan:d.cell.getColSpan(),startColumn:d.startColumn})}let a=new Set;for(let u of o.querySelectorAll(":scope > tr > [data-temporary-table-cell-lexical-key]")){let d=u.getAttribute("data-temporary-table-cell-lexical-key");if(d){let f=s.get(d);if(u.removeAttribute("data-temporary-table-cell-lexical-key"),f){s.delete(d);for(let p=0;p<f.colSpan;p++)a.add(p+f.startColumn)}}}let l=o.querySelector(":scope > colgroup");if(l){let u=Array.from(o.querySelectorAll(":scope > colgroup > col")).filter((d,f)=>a.has(f));l.replaceChildren(...u)}let c=o.querySelectorAll(":scope > tr");if(c.length>0){let u=document.createElement("tbody");for(let d of c)u.appendChild(d);o.append(u)}return o},element:!Tg(n)&&Nt(n)?n.querySelector("table"):n}}canBeEmpty(){return!1}isShadowRoot(){return!0}getCordsFromCellNode(e,r){let{rows:n,domRows:o}=r;for(let i=0;i<n;i++){let s=o[i];if(s!=null)for(let a=0;a<s.length;a++){let l=s[a];if(l==null)continue;let{elem:c}=l,u=y9(this,c);if(u!==null&&e.is(u))return{x:a,y:i}}}throw new Error("Cell not found in table.")}getDOMCellFromCords(e,r,n){let{domRows:o}=n,i=o[r];if(i==null)return null;let s=i[e<i.length?e:i.length-1];return s??null}getDOMCellFromCordsOrThrow(e,r,n){let o=this.getDOMCellFromCords(e,r,n);if(!o)throw new Error("Cell not found at cords.");return o}getCellNodeFromCords(e,r,n){let o=this.getDOMCellFromCords(e,r,n);if(o==null)return null;let i=gt(o.elem);return je(i)?i:null}getCellNodeFromCordsOrThrow(e,r,n){let o=this.getCellNodeFromCords(e,r,n);if(!o)throw new Error("Node at cords not TableCellNode.");return o}getRowStriping(){return!!this.getLatest().__rowStriping}setRowStriping(e){let r=this.getWritable();return r.__rowStriping=e,r}setFrozenColumns(e){let r=this.getWritable();return r.__frozenColumnCount=e,r}getFrozenColumns(){return this.getLatest().__frozenColumnCount}setFrozenRows(e){let r=this.getWritable();return r.__frozenRowCount=e,r}getFrozenRows(){return this.getLatest().__frozenRowCount}canSelectBefore(){return!0}canIndent(){return!1}getColumnCount(){let e=this.getFirstChild();if(!e)return 0;let r=0;return e.getChildren().forEach(n=>{je(n)&&(r+=n.getColSpan())}),r}};Cbe=Ye({build:(t,e,r)=>Jn(e),config:er({hasCellBackgroundColor:!0,hasCellMerge:!0,hasHorizontalScroll:!0,hasTabHandler:!0}),name:"@lexical/table/Table",nodes:[Ua,Tf,Ha],register(t,e,r){let n=r.getOutput();return at(jr(()=>{let o=n.hasHorizontalScroll.value;Y1(t)!==o&&(lW(t,o),t.registerNodeTransform(Ua,()=>{})())}),fW(t),jr(()=>dW(t,n.hasTabHandler.value)),jr(()=>n.hasCellMerge.value?void 0:uW(t)),jr(()=>n.hasCellBackgroundColor.value?void 0:t.registerNodeTransform(Ha,o=>{o.getBackgroundColor()!==null&&o.setBackgroundColor(null)})))}})});var Ue,DBe,LBe,ABe,OBe,MBe,IBe,kBe,RBe,PBe,FBe,BBe,zBe,jBe,VBe,HBe,UBe,KBe,WBe,GBe,YBe,ZBe,qBe,JBe,XBe,QBe,eze,tze,rze,nze,oze,ize,sze,aze,lze,cze,uze,dze,fze,pze,mze,gW,gze,hW,hze,vW,vze,yze,bze,xze,Cze,Sze,_ze,wze,yW=ue(async()=>{"use strict";Ue=await(process.env.NODE_ENV!=="production"?BK().then(()=>FK):mW().then(()=>pW)),DBe=Ue.$computeTableMap,LBe=Ue.$computeTableMapSkipCellCheck,ABe=Ue.$createTableCellNode,OBe=Ue.$createTableNode,MBe=Ue.$createTableNodeWithDimensions,IBe=Ue.$createTableRowNode,kBe=Ue.$createTableSelection,RBe=Ue.$createTableSelectionFrom,PBe=Ue.$deleteTableColumn,FBe=Ue.$deleteTableColumnAtSelection,BBe=Ue.$deleteTableColumn__EXPERIMENTAL,zBe=Ue.$deleteTableRowAtSelection,jBe=Ue.$deleteTableRow__EXPERIMENTAL,VBe=Ue.$findCellNode,HBe=Ue.$findTableNode,UBe=Ue.$getElementForTableNode,KBe=Ue.$getNodeTriplet,WBe=Ue.$getTableAndElementByKey,GBe=Ue.$getTableCellNodeFromLexicalNode,YBe=Ue.$getTableCellNodeRect,ZBe=Ue.$getTableColumnIndexFromTableCellNode,qBe=Ue.$getTableNodeFromLexicalNodeOrThrow,JBe=Ue.$getTableRowIndexFromTableCellNode,XBe=Ue.$getTableRowNodeFromTableCellNodeOrThrow,QBe=Ue.$insertTableColumn,eze=Ue.$insertTableColumnAtSelection,tze=Ue.$insertTableColumn__EXPERIMENTAL,rze=Ue.$insertTableRow,nze=Ue.$insertTableRowAtSelection,oze=Ue.$insertTableRow__EXPERIMENTAL,ize=Ue.$isScrollableTablesActive,sze=Ue.$isTableCellNode,aze=Ue.$isTableNode,lze=Ue.$isTableRowNode,cze=Ue.$isTableSelection,uze=Ue.$mergeCells,dze=Ue.$removeTableRowAtIndex,fze=Ue.$unmergeCell,pze=Ue.INSERT_TABLE_COMMAND,mze=Ue.TableCellHeaderStates,gW=Ue.TableCellNode,gze=Ue.TableExtension,hW=Ue.TableNode,hze=Ue.TableObserver,vW=Ue.TableRowNode,vze=Ue.applyTableHandlers,yze=Ue.getDOMCellFromTarget,bze=Ue.getTableElement,xze=Ue.getTableObserverFromTableElement,Cze=Ue.registerTableCellUnmergeTransform,Sze=Ue.registerTablePlugin,_ze=Ue.registerTableSelectionObserver,wze=Ue.setScrollableTablesActive});var DW=Ee(lt=>{"use strict";var L9=Symbol.for("react.transitional.element"),Sbe=Symbol.for("react.portal"),_be=Symbol.for("react.fragment"),wbe=Symbol.for("react.strict_mode"),Ebe=Symbol.for("react.profiler"),Tbe=Symbol.for("react.consumer"),$be=Symbol.for("react.context"),Nbe=Symbol.for("react.forward_ref"),Dbe=Symbol.for("react.suspense"),Lbe=Symbol.for("react.memo"),_W=Symbol.for("react.lazy"),Abe=Symbol.for("react.activity"),bW=Symbol.iterator;function Obe(t){return t===null||typeof t!="object"?null:(t=bW&&t[bW]||t["@@iterator"],typeof t=="function"?t:null)}var wW={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},EW=Object.assign,TW={};function Lg(t,e,r){this.props=t,this.context=e,this.refs=TW,this.updater=r||wW}Lg.prototype.isReactComponent={};Lg.prototype.setState=function(t,e){if(typeof t!="object"&&typeof t!="function"&&t!=null)throw Error("takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,t,e,"setState")};Lg.prototype.forceUpdate=function(t){this.updater.enqueueForceUpdate(this,t,"forceUpdate")};function $W(){}$W.prototype=Lg.prototype;function A9(t,e,r){this.props=t,this.context=e,this.refs=TW,this.updater=r||wW}var O9=A9.prototype=new $W;O9.constructor=A9;EW(O9,Lg.prototype);O9.isPureReactComponent=!0;var xW=Array.isArray;function D9(){}var Mr={H:null,A:null,T:null,S:null},NW=Object.prototype.hasOwnProperty;function M9(t,e,r){var n=r.ref;return{$$typeof:L9,type:t,key:e,ref:n!==void 0?n:null,props:r}}function Mbe(t,e){return M9(t.type,e,t.props)}function I9(t){return typeof t=="object"&&t!==null&&t.$$typeof===L9}function Ibe(t){var e={"=":"=0",":":"=2"};return"$"+t.replace(/[=:]/g,function(r){return e[r]})}var CW=/\/+/g;function N9(t,e){return typeof t=="object"&&t!==null&&t.key!=null?Ibe(""+t.key):e.toString(36)}function kbe(t){switch(t.status){case"fulfilled":return t.value;case"rejected":throw t.reason;default:switch(typeof t.status=="string"?t.then(D9,D9):(t.status="pending",t.then(function(e){t.status==="pending"&&(t.status="fulfilled",t.value=e)},function(e){t.status==="pending"&&(t.status="rejected",t.reason=e)})),t.status){case"fulfilled":return t.value;case"rejected":throw t.reason}}throw t}function Dg(t,e,r,n,o){var i=typeof t;(i==="undefined"||i==="boolean")&&(t=null);var s=!1;if(t===null)s=!0;else switch(i){case"bigint":case"string":case"number":s=!0;break;case"object":switch(t.$$typeof){case L9:case Sbe:s=!0;break;case _W:return s=t._init,Dg(s(t._payload),e,r,n,o)}}if(s)return o=o(t),s=n===""?"."+N9(t,0):n,xW(o)?(r="",s!=null&&(r=s.replace(CW,"$&/")+"/"),Dg(o,e,r,"",function(c){return c})):o!=null&&(I9(o)&&(o=Mbe(o,r+(o.key==null||t&&t.key===o.key?"":(""+o.key).replace(CW,"$&/")+"/")+s)),e.push(o)),1;s=0;var a=n===""?".":n+":";if(xW(t))for(var l=0;l<t.length;l++)n=t[l],i=a+N9(n,l),s+=Dg(n,e,r,i,o);else if(l=Obe(t),typeof l=="function")for(t=l.call(t),l=0;!(n=t.next()).done;)n=n.value,i=a+N9(n,l++),s+=Dg(n,e,r,i,o);else if(i==="object"){if(typeof t.then=="function")return Dg(kbe(t),e,r,n,o);throw e=String(t),Error("Objects are not valid as a React child (found: "+(e==="[object Object]"?"object with keys {"+Object.keys(t).join(", ")+"}":e)+"). If you meant to render a collection of children, use an array instead.")}return s}function t3(t,e,r){if(t==null)return t;var n=[],o=0;return Dg(t,n,"","",function(i){return e.call(r,i,o++)}),n}function Rbe(t){if(t._status===-1){var e=t._result;e=e(),e.then(function(r){(t._status===0||t._status===-1)&&(t._status=1,t._result=r)},function(r){(t._status===0||t._status===-1)&&(t._status=2,t._result=r)}),t._status===-1&&(t._status=0,t._result=e)}if(t._status===1)return t._result.default;throw t._result}var SW=typeof reportError=="function"?reportError:function(t){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var e=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof t=="object"&&t!==null&&typeof t.message=="string"?String(t.message):String(t),error:t});if(!window.dispatchEvent(e))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",t);return}console.error(t)},Pbe={map:t3,forEach:function(t,e,r){t3(t,function(){e.apply(this,arguments)},r)},count:function(t){var e=0;return t3(t,function(){e++}),e},toArray:function(t){return t3(t,function(e){return e})||[]},only:function(t){if(!I9(t))throw Error("React.Children.only expected to receive a single React element child.");return t}};lt.Activity=Abe;lt.Children=Pbe;lt.Component=Lg;lt.Fragment=_be;lt.Profiler=Ebe;lt.PureComponent=A9;lt.StrictMode=wbe;lt.Suspense=Dbe;lt.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=Mr;lt.__COMPILER_RUNTIME={__proto__:null,c:function(t){return Mr.H.useMemoCache(t)}};lt.cache=function(t){return function(){return t.apply(null,arguments)}};lt.cacheSignal=function(){return null};lt.cloneElement=function(t,e,r){if(t==null)throw Error("The argument must be a React element, but you passed "+t+".");var n=EW({},t.props),o=t.key;if(e!=null)for(i in e.key!==void 0&&(o=""+e.key),e)!NW.call(e,i)||i==="key"||i==="__self"||i==="__source"||i==="ref"&&e.ref===void 0||(n[i]=e[i]);var i=arguments.length-2;if(i===1)n.children=r;else if(1<i){for(var s=Array(i),a=0;a<i;a++)s[a]=arguments[a+2];n.children=s}return M9(t.type,o,n)};lt.createContext=function(t){return t={$$typeof:$be,_currentValue:t,_currentValue2:t,_threadCount:0,Provider:null,Consumer:null},t.Provider=t,t.Consumer={$$typeof:Tbe,_context:t},t};lt.createElement=function(t,e,r){var n,o={},i=null;if(e!=null)for(n in e.key!==void 0&&(i=""+e.key),e)NW.call(e,n)&&n!=="key"&&n!=="__self"&&n!=="__source"&&(o[n]=e[n]);var s=arguments.length-2;if(s===1)o.children=r;else if(1<s){for(var a=Array(s),l=0;l<s;l++)a[l]=arguments[l+2];o.children=a}if(t&&t.defaultProps)for(n in s=t.defaultProps,s)o[n]===void 0&&(o[n]=s[n]);return M9(t,i,o)};lt.createRef=function(){return{current:null}};lt.forwardRef=function(t){return{$$typeof:Nbe,render:t}};lt.isValidElement=I9;lt.lazy=function(t){return{$$typeof:_W,_payload:{_status:-1,_result:t},_init:Rbe}};lt.memo=function(t,e){return{$$typeof:Lbe,type:t,compare:e===void 0?null:e}};lt.startTransition=function(t){var e=Mr.T,r={};Mr.T=r;try{var n=t(),o=Mr.S;o!==null&&o(r,n),typeof n=="object"&&n!==null&&typeof n.then=="function"&&n.then(D9,SW)}catch(i){SW(i)}finally{e!==null&&r.types!==null&&(e.types=r.types),Mr.T=e}};lt.unstable_useCacheRefresh=function(){return Mr.H.useCacheRefresh()};lt.use=function(t){return Mr.H.use(t)};lt.useActionState=function(t,e,r){return Mr.H.useActionState(t,e,r)};lt.useCallback=function(t,e){return Mr.H.useCallback(t,e)};lt.useContext=function(t){return Mr.H.useContext(t)};lt.useDebugValue=function(){};lt.useDeferredValue=function(t,e){return Mr.H.useDeferredValue(t,e)};lt.useEffect=function(t,e){return Mr.H.useEffect(t,e)};lt.useEffectEvent=function(t){return Mr.H.useEffectEvent(t)};lt.useId=function(){return Mr.H.useId()};lt.useImperativeHandle=function(t,e,r){return Mr.H.useImperativeHandle(t,e,r)};lt.useInsertionEffect=function(t,e){return Mr.H.useInsertionEffect(t,e)};lt.useLayoutEffect=function(t,e){return Mr.H.useLayoutEffect(t,e)};lt.useMemo=function(t,e){return Mr.H.useMemo(t,e)};lt.useOptimistic=function(t,e){return Mr.H.useOptimistic(t,e)};lt.useReducer=function(t,e,r){return Mr.H.useReducer(t,e,r)};lt.useRef=function(t){return Mr.H.useRef(t)};lt.useState=function(t){return Mr.H.useState(t)};lt.useSyncExternalStore=function(t,e,r){return Mr.H.useSyncExternalStore(t,e,r)};lt.useTransition=function(){return Mr.H.useTransition()};lt.version="19.2.0"});var LW=Ee((tt,r3)=>{"use strict";process.env.NODE_ENV!=="production"&&function(){function t(L,W){Object.defineProperty(n.prototype,L,{get:function(){console.warn("%s(...) is deprecated in plain JavaScript React classes. %s",W[0],W[1])}})}function e(L){return L===null||typeof L!="object"?null:(L=Z&&L[Z]||L["@@iterator"],typeof L=="function"?L:null)}function r(L,W){L=(L=L.constructor)&&(L.displayName||L.name)||"ReactClass";var le=L+"."+W;Ce[le]||(console.error("Can't call %s on a component that is not yet mounted. This is a no-op, but it might indicate a bug in your application. Instead, assign to `this.state` directly or define a `state = {};` class property with the desired state in the %s component.",W,L),Ce[le]=!0)}function n(L,W,le){this.props=L,this.context=W,this.refs=pt,this.updater=le||ne}function o(){}function i(L,W,le){this.props=L,this.context=W,this.refs=pt,this.updater=le||ne}function s(){}function a(L){return""+L}function l(L){try{a(L);var W=!1}catch{W=!0}if(W){W=console;var le=W.error,ge=typeof Symbol=="function"&&Symbol.toStringTag&&L[Symbol.toStringTag]||L.constructor.name||"Object";return le.call(W,"The provided key is an unsupported type %s. This value must be coerced to a string before using it here.",ge),a(L)}}function c(L){if(L==null)return null;if(typeof L=="function")return L.$$typeof===fo?null:L.displayName||L.name||null;if(typeof L=="string")return L;switch(L){case z:return"Fragment";case I:return"Profiler";case j:return"StrictMode";case xe:return"Suspense";case Ze:return"SuspenseList";case Me:return"Activity"}if(typeof L=="object")switch(typeof L.tag=="number"&&console.error("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),L.$$typeof){case P:return"Portal";case te:return L.displayName||"Context";case Y:return(L._context.displayName||"Context")+".Consumer";case fe:var W=L.render;return L=L.displayName,L||(L=W.displayName||W.name||"",L=L!==""?"ForwardRef("+L+")":"ForwardRef"),L;case Ae:return W=L.displayName||null,W!==null?W:c(L.type)||"Memo";case pe:W=L._payload,L=L._init;try{return c(L(W))}catch{}}return null}function u(L){if(L===z)return"<>";if(typeof L=="object"&&L!==null&&L.$$typeof===pe)return"<...>";try{var W=c(L);return W?"<"+W+">":"<...>"}catch{return"<...>"}}function d(){var L=X.A;return L===null?null:L.getOwner()}function f(){return Error("react-stack-top-frame")}function p(L){if(He.call(L,"key")){var W=Object.getOwnPropertyDescriptor(L,"key").get;if(W&&W.isReactWarning)return!1}return L.key!==void 0}function m(L,W){function le(){nt||(nt=!0,console.error("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://react.dev/link/special-props)",W))}le.isReactWarning=!0,Object.defineProperty(L,"key",{get:le,configurable:!0})}function g(){var L=c(this.type);return Mo[L]||(Mo[L]=!0,console.error("Accessing element.ref was removed in React 19. ref is now a regular prop. It will be removed from the JSX Element type in a future release.")),L=this.props.ref,L!==void 0?L:null}function h(L,W,le,ge,Re,St){var mt=le.ref;return L={$$typeof:F,type:L,key:W,props:le,_owner:ge},(mt!==void 0?mt:null)!==null?Object.defineProperty(L,"ref",{enumerable:!1,get:g}):Object.defineProperty(L,"ref",{enumerable:!1,value:null}),L._store={},Object.defineProperty(L._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:0}),Object.defineProperty(L,"_debugInfo",{configurable:!1,enumerable:!1,writable:!0,value:null}),Object.defineProperty(L,"_debugStack",{configurable:!1,enumerable:!1,writable:!0,value:Re}),Object.defineProperty(L,"_debugTask",{configurable:!1,enumerable:!1,writable:!0,value:St}),Object.freeze&&(Object.freeze(L.props),Object.freeze(L)),L}function v(L,W){return W=h(L.type,W,L.props,L._owner,L._debugStack,L._debugTask),L._store&&(W._store.validated=L._store.validated),W}function y(L){b(L)?L._store&&(L._store.validated=1):typeof L=="object"&&L!==null&&L.$$typeof===pe&&(L._payload.status==="fulfilled"?b(L._payload.value)&&L._payload.value._store&&(L._payload.value._store.validated=1):L._store&&(L._store.validated=1))}function b(L){return typeof L=="object"&&L!==null&&L.$$typeof===F}function x(L){var W={"=":"=0",":":"=2"};return"$"+L.replace(/[=:]/g,function(le){return W[le]})}function S(L,W){return typeof L=="object"&&L!==null&&L.key!=null?(l(L.key),x(""+L.key)):W.toString(36)}function _(L){switch(L.status){case"fulfilled":return L.value;case"rejected":throw L.reason;default:switch(typeof L.status=="string"?L.then(s,s):(L.status="pending",L.then(function(W){L.status==="pending"&&(L.status="fulfilled",L.value=W)},function(W){L.status==="pending"&&(L.status="rejected",L.reason=W)})),L.status){case"fulfilled":return L.value;case"rejected":throw L.reason}}throw L}function w(L,W,le,ge,Re){var St=typeof L;(St==="undefined"||St==="boolean")&&(L=null);var mt=!1;if(L===null)mt=!0;else switch(St){case"bigint":case"string":case"number":mt=!0;break;case"object":switch(L.$$typeof){case F:case P:mt=!0;break;case pe:return mt=L._init,w(mt(L._payload),W,le,ge,Re)}}if(mt){mt=L,Re=Re(mt);var Sr=ge===""?"."+S(mt,0):ge;return it(Re)?(le="",Sr!=null&&(le=Sr.replace(LI,"$&/")+"/"),w(Re,W,le,"",function($c){return $c})):Re!=null&&(b(Re)&&(Re.key!=null&&(mt&&mt.key===Re.key||l(Re.key)),le=v(Re,le+(Re.key==null||mt&&mt.key===Re.key?"":(""+Re.key).replace(LI,"$&/")+"/")+Sr),ge!==""&&mt!=null&&b(mt)&&mt.key==null&&mt._store&&!mt._store.validated&&(le._store.validated=2),Re=le),W.push(Re)),1}if(mt=0,Sr=ge===""?".":ge+":",it(L))for(var _t=0;_t<L.length;_t++)ge=L[_t],St=Sr+S(ge,_t),mt+=w(ge,W,le,St,Re);else if(_t=e(L),typeof _t=="function")for(_t===L.entries&&(E0||console.warn("Using Maps as children is not supported. Use an array of keyed ReactElements instead."),E0=!0),L=_t.call(L),_t=0;!(ge=L.next()).done;)ge=ge.value,St=Sr+S(ge,_t++),mt+=w(ge,W,le,St,Re);else if(St==="object"){if(typeof L.then=="function")return w(_(L),W,le,ge,Re);throw W=String(L),Error("Objects are not valid as a React child (found: "+(W==="[object Object]"?"object with keys {"+Object.keys(L).join(", ")+"}":W)+"). If you meant to render a collection of children, use an array instead.")}return mt}function T(L,W,le){if(L==null)return L;var ge=[],Re=0;return w(L,ge,"","",function(St){return W.call(le,St,Re++)}),ge}function N(L){if(L._status===-1){var W=L._ioInfo;W!=null&&(W.start=W.end=performance.now()),W=L._result;var le=W();if(le.then(function(Re){if(L._status===0||L._status===-1){L._status=1,L._result=Re;var St=L._ioInfo;St!=null&&(St.end=performance.now()),le.status===void 0&&(le.status="fulfilled",le.value=Re)}},function(Re){if(L._status===0||L._status===-1){L._status=2,L._result=Re;var St=L._ioInfo;St!=null&&(St.end=performance.now()),le.status===void 0&&(le.status="rejected",le.reason=Re)}}),W=L._ioInfo,W!=null){W.value=le;var ge=le.displayName;typeof ge=="string"&&(W.name=ge)}L._status===-1&&(L._status=0,L._result=le)}if(L._status===1)return W=L._result,W===void 0&&console.error(`lazy: Expected the result of a dynamic import() call. Instead received: %s
|
|
51
|
+
`:" ")}return r}};X4=class{focusX;focusY;listenersToRemove;table;isHighlightingCells;anchorX;anchorY;tableNodeKey;anchorCell;focusCell;anchorCellNodeKey;focusCellNodeKey;editor;tableSelection;hasHijackedSelectionStyles;isSelecting;pointerType;shouldCheckSelection;abortController;listenerOptions;nextFocus;constructor(e,r){this.isHighlightingCells=!1,this.anchorX=-1,this.anchorY=-1,this.focusX=-1,this.focusY=-1,this.listenersToRemove=new Set,this.tableNodeKey=r,this.editor=e,this.table={columns:0,domRows:[],rows:0},this.tableSelection=null,this.anchorCellNodeKey=null,this.focusCellNodeKey=null,this.anchorCell=null,this.focusCell=null,this.hasHijackedSelectionStyles=!1,this.isSelecting=!1,this.pointerType=null,this.shouldCheckSelection=!1,this.abortController=new AbortController,this.listenerOptions={signal:this.abortController.signal},this.nextFocus=null,this.trackTable()}getTable(){return this.table}removeListeners(){this.abortController.abort("removeListeners"),Array.from(this.listenersToRemove).forEach(e=>e()),this.listenersToRemove.clear()}$lookup(){return E9(this.tableNodeKey,this.editor)}trackTable(){let e=new MutationObserver(r=>{this.editor.getEditorState().read(()=>{let n=!1;for(let s=0;s<r.length;s++){let a=r[s].target.nodeName;if(a==="TABLE"||a==="TBODY"||a==="THEAD"||a==="TR"){n=!0;break}}if(!n)return;let{tableNode:o,tableElement:i}=this.$lookup();this.table=Ng(o,i)},{editor:this.editor})});this.editor.getEditorState().read(()=>{let{tableNode:r,tableElement:n}=this.$lookup();this.table=Ng(r,n),e.observe(n,{attributes:!0,childList:!0,subtree:!0})},{editor:this.editor})}$clearHighlight(){let e=this.editor;this.isHighlightingCells=!1,this.anchorX=-1,this.anchorY=-1,this.focusX=-1,this.focusY=-1,this.tableSelection=null,this.anchorCellNodeKey=null,this.focusCellNodeKey=null,this.anchorCell=null,this.focusCell=null,this.hasHijackedSelectionStyles=!1,this.$enableHighlightStyle();let{tableNode:r,tableElement:n}=this.$lookup();G4(e,Ng(r,n),null),H()!==null&&(qe(null),e.dispatchCommand(si,void 0))}$enableHighlightStyle(){let e=this.editor,{tableElement:r}=this.$lookup();yr(r,e._config.theme.tableSelection),r.classList.remove("disable-selection"),this.hasHijackedSelectionStyles=!1}$disableHighlightStyle(){let{tableElement:e}=this.$lookup();Pe(e,this.editor._config.theme.tableSelection),this.hasHijackedSelectionStyles=!0}$updateTableTableSelection(e){if(e!==null){e.tableKey!==this.tableNodeKey&&Oe(233,e.tableKey,this.tableNodeKey);let r=this.editor;this.tableSelection=e,this.isHighlightingCells=!0,this.$disableHighlightStyle(),this.updateDOMSelection(),G4(r,this.table,this.tableSelection)}else this.$clearHighlight()}setShouldCheckSelection(){this.shouldCheckSelection=!0}getAndClearShouldCheckSelection(){return!!this.shouldCheckSelection&&(this.shouldCheckSelection=!1,!0)}setNextFocus(e){this.nextFocus=e}getAndClearNextFocus(){let{nextFocus:e}=this;return e!==null&&(this.nextFocus=null),e}updateDOMSelection(){if(this.anchorCell!==null&&this.focusCell!==null){let e=Lo(this.editor._window);e&&e.rangeCount>0&&e.removeAllRanges()}}$setFocusCellForSelection(e,r=!1){let n=this.editor,{tableNode:o}=this.$lookup(),i=e.x,s=e.y;if(this.focusCell=e,this.isHighlightingCells||this.anchorX===i&&this.anchorY===s&&!r){if(i===this.focusX&&s===this.focusY)return!1}else this.isHighlightingCells=!0,this.$disableHighlightStyle();if(this.focusX=i,this.focusY=s,this.isHighlightingCells){let a=y9(o,e.elem);if(this.tableSelection!=null&&this.anchorCellNodeKey!=null&&a!==null)return this.focusCellNodeKey=a.getKey(),this.tableSelection=nW(o,this.$getAnchorTableCellOrThrow(),a),qe(this.tableSelection),n.dispatchCommand(si,void 0),G4(n,this.table,this.tableSelection),!0}return!1}$getAnchorTableCell(){return this.anchorCellNodeKey?st(this.anchorCellNodeKey):null}$getAnchorTableCellOrThrow(){let e=this.$getAnchorTableCell();return e===null&&Oe(234),e}$getFocusTableCell(){return this.focusCellNodeKey?st(this.focusCellNodeKey):null}$getFocusTableCellOrThrow(){let e=this.$getFocusTableCell();return e===null&&Oe(235),e}$setAnchorCellForSelection(e){this.isHighlightingCells=!1,this.anchorCell=e,this.anchorX=e.x,this.anchorY=e.y;let{tableNode:r}=this.$lookup(),n=y9(r,e.elem);if(n!==null){let o=n.getKey();this.tableSelection=this.tableSelection!=null?this.tableSelection.clone():w9(),this.anchorCellNodeKey=o}}$formatCells(e){let r=H();Kt(r)||Oe(236);let n=yn(),o=n.anchor,i=n.focus,s=r.getNodes().filter(je);s.length>0||Oe(237);let a=s[0].getFirstChild(),l=Gn(a)?a.getFormatFlags(e,null):null;s.forEach(c=>{o.set(c.getKey(),0,"element"),i.set(c.getKey(),c.getChildrenSize(),"element"),n.formatText(e,l)}),qe(r),this.editor.dispatchCommand(si,void 0)}$clearText(){let{editor:e}=this,r=st(this.tableNodeKey);if(!Hr(r))throw new Error("Expected TableNode.");let n=H();Kt(n)||Oe(253);let o=n.getNodes().filter(je),i=r.getFirstChild(),s=r.getLastChild();if(o.length>0&&i!==null&&s!==null&&ur(i)&&ur(s)&&o[0]===i.getFirstChild()&&o[o.length-1]===s.getLastChild()){r.selectPrevious();let a=r.getParent();return r.remove(),void(ni(a)&&a.isEmpty()&&e.dispatchCommand(No,void 0))}o.forEach(a=>{if(G(a)){let l=de(),c=bt();l.append(c),a.append(l),a.getChildren().forEach(u=>{u!==l&&u.remove()})}}),G4(e,this.table,null),qe(null),e.dispatchCommand(si,void 0)}},h9="__lexicalTableSelection";cbe=[[Zn,"down"],[Qr,"up"],[ii,"backward"],[_a,"forward"]],ube=[mu,Ca,Ji],dbe=[wa,Ea];fbe=(t,e,r,n,o)=>{let i=o==="forward";switch(o){case"backward":case"forward":return r!==(i?t.table.columns-1:0)?Z4(e.getCellNodeFromCordsOrThrow(r+(i?1:-1),n,t.table),i):n!==(i?t.table.rows-1:0)?Z4(e.getCellNodeFromCordsOrThrow(i?0:t.table.columns-1,n+(i?1:-1),t.table),i):i?e.selectNext():e.selectPrevious(),!0;case"up":return n!==0?Z4(e.getCellNodeFromCordsOrThrow(r,n-1,t.table),!1):e.selectPrevious(),!0;case"down":return n!==t.table.rows-1?Z4(e.getCellNodeFromCordsOrThrow(r,n+1,t.table),!0):e.selectNext(),!0;default:return!1}};b9=new WeakSet;Ua=class t extends kt{__rowStriping;__frozenColumnCount;__frozenRowCount;__colWidths;static getType(){return"table"}getColWidths(){return this.getLatest().__colWidths}setColWidths(e){let r=this.getWritable();return r.__colWidths=e,r}static clone(e){return new t(e.__key)}afterCloneFrom(e){super.afterCloneFrom(e),this.__colWidths=e.__colWidths,this.__rowStriping=e.__rowStriping,this.__frozenColumnCount=e.__frozenColumnCount,this.__frozenRowCount=e.__frozenRowCount}static importDOM(){return{table:e=>({conversion:gbe,priority:1})}}static importJSON(e){return e3().updateFromJSON(e)}updateFromJSON(e){return super.updateFromJSON(e).setRowStriping(e.rowStriping||!1).setFrozenColumns(e.frozenColumnCount||0).setFrozenRows(e.frozenRowCount||0).setColWidths(e.colWidths)}constructor(e){super(e),this.__rowStriping=!1,this.__frozenColumnCount=0,this.__frozenRowCount=0,this.__colWidths=void 0}exportJSON(){return{...super.exportJSON(),colWidths:this.getColWidths(),frozenColumnCount:this.__frozenColumnCount?this.__frozenColumnCount:void 0,frozenRowCount:this.__frozenRowCount?this.__frozenRowCount:void 0,rowStriping:this.__rowStriping?this.__rowStriping:void 0}}extractWithChild(e,r,n){return n==="html"}getDOMSlot(e){let r=Tg(e)?e:e.querySelector("table");return Tg(r)||Oe(229),super.getDOMSlot(e).withElement(r).withAfter(r.querySelector("colgroup"))}createDOM(e,r){let n=document.createElement("table");this.__style&&(n.style.cssText=this.__style);let o=document.createElement("colgroup");if(n.appendChild(o),U2(o),Pe(n,e.theme.table),this.updateTableElement(null,n,e),Y1(r)){let i=document.createElement("div"),s=e.theme.tableScrollableWrapper;return s?Pe(i,s):i.style.cssText="overflow-x: auto;",i.appendChild(n),this.updateTableWrapper(null,i,n,e),i}return n}updateTableWrapper(e,r,n,o){this.__frozenColumnCount!==(e?e.__frozenColumnCount:0)&&function(i,s,a,l){l>0?(Pe(i,a.theme.tableFrozenColumn),s.setAttribute("data-lexical-frozen-column","true")):(yr(i,a.theme.tableFrozenColumn),s.removeAttribute("data-lexical-frozen-column"))}(r,n,o,this.__frozenColumnCount),this.__frozenRowCount!==(e?e.__frozenRowCount:0)&&function(i,s,a,l){l>0?(Pe(i,a.theme.tableFrozenRow),s.setAttribute("data-lexical-frozen-row","true")):(yr(i,a.theme.tableFrozenRow),s.removeAttribute("data-lexical-frozen-row"))}(r,n,o,this.__frozenRowCount)}updateTableElement(e,r,n){this.__style!==(e?e.__style:"")&&(r.style.cssText=this.__style),this.__rowStriping!==(!!e&&e.__rowStriping)&&function(o,i,s){s?(Pe(o,i.theme.tableRowStriping),o.setAttribute("data-lexical-row-striping","true")):(yr(o,i.theme.tableRowStriping),o.removeAttribute("data-lexical-row-striping"))}(r,n,this.__rowStriping),function(o,i,s,a){let l=o.querySelector("colgroup");if(!l)return;let c=[];for(let u=0;u<s;u++){let d=document.createElement("col"),f=a&&a[u];f&&(d.style.width=`${f}px`),c.push(d)}l.replaceChildren(...c)}(r,0,this.getColumnCount(),this.getColWidths()),GK(r,n,this.getFormatType())}updateDOM(e,r,n){let o=this.getDOMSlot(r).element;return r===o===Y1()||(Nt(i=r)&&i.nodeName==="DIV"&&this.updateTableWrapper(e,r,o,n),this.updateTableElement(e,o,n),!1);var i}exportDOM(e){let r=super.exportDOM(e),{element:n}=r;return{after:o=>{if(r.after&&(o=r.after(o)),!Tg(o)&&Nt(o)&&(o=o.querySelector("table")),!Tg(o))return null;GK(o,e._config,this.getFormatType());let[i]=Yl(this,null,null),s=new Map;for(let u of i)for(let d of u){let f=d.cell.getKey();s.has(f)||s.set(f,{colSpan:d.cell.getColSpan(),startColumn:d.startColumn})}let a=new Set;for(let u of o.querySelectorAll(":scope > tr > [data-temporary-table-cell-lexical-key]")){let d=u.getAttribute("data-temporary-table-cell-lexical-key");if(d){let f=s.get(d);if(u.removeAttribute("data-temporary-table-cell-lexical-key"),f){s.delete(d);for(let p=0;p<f.colSpan;p++)a.add(p+f.startColumn)}}}let l=o.querySelector(":scope > colgroup");if(l){let u=Array.from(o.querySelectorAll(":scope > colgroup > col")).filter((d,f)=>a.has(f));l.replaceChildren(...u)}let c=o.querySelectorAll(":scope > tr");if(c.length>0){let u=document.createElement("tbody");for(let d of c)u.appendChild(d);o.append(u)}return o},element:!Tg(n)&&Nt(n)?n.querySelector("table"):n}}canBeEmpty(){return!1}isShadowRoot(){return!0}getCordsFromCellNode(e,r){let{rows:n,domRows:o}=r;for(let i=0;i<n;i++){let s=o[i];if(s!=null)for(let a=0;a<s.length;a++){let l=s[a];if(l==null)continue;let{elem:c}=l,u=y9(this,c);if(u!==null&&e.is(u))return{x:a,y:i}}}throw new Error("Cell not found in table.")}getDOMCellFromCords(e,r,n){let{domRows:o}=n,i=o[r];if(i==null)return null;let s=i[e<i.length?e:i.length-1];return s??null}getDOMCellFromCordsOrThrow(e,r,n){let o=this.getDOMCellFromCords(e,r,n);if(!o)throw new Error("Cell not found at cords.");return o}getCellNodeFromCords(e,r,n){let o=this.getDOMCellFromCords(e,r,n);if(o==null)return null;let i=gt(o.elem);return je(i)?i:null}getCellNodeFromCordsOrThrow(e,r,n){let o=this.getCellNodeFromCords(e,r,n);if(!o)throw new Error("Node at cords not TableCellNode.");return o}getRowStriping(){return!!this.getLatest().__rowStriping}setRowStriping(e){let r=this.getWritable();return r.__rowStriping=e,r}setFrozenColumns(e){let r=this.getWritable();return r.__frozenColumnCount=e,r}getFrozenColumns(){return this.getLatest().__frozenColumnCount}setFrozenRows(e){let r=this.getWritable();return r.__frozenRowCount=e,r}getFrozenRows(){return this.getLatest().__frozenRowCount}canSelectBefore(){return!0}canIndent(){return!1}getColumnCount(){let e=this.getFirstChild();if(!e)return 0;let r=0;return e.getChildren().forEach(n=>{je(n)&&(r+=n.getColSpan())}),r}};Cbe=Ye({build:(t,e,r)=>Jn(e),config:er({hasCellBackgroundColor:!0,hasCellMerge:!0,hasHorizontalScroll:!0,hasTabHandler:!0}),name:"@lexical/table/Table",nodes:[Ua,Tf,Ha],register(t,e,r){let n=r.getOutput();return at(jr(()=>{let o=n.hasHorizontalScroll.value;Y1(t)!==o&&(lW(t,o),t.registerNodeTransform(Ua,()=>{})())}),fW(t),jr(()=>dW(t,n.hasTabHandler.value)),jr(()=>n.hasCellMerge.value?void 0:uW(t)),jr(()=>n.hasCellBackgroundColor.value?void 0:t.registerNodeTransform(Ha,o=>{o.getBackgroundColor()!==null&&o.setBackgroundColor(null)})))}})});var Ue,DBe,LBe,ABe,OBe,MBe,IBe,kBe,RBe,PBe,FBe,BBe,zBe,jBe,VBe,HBe,UBe,KBe,WBe,GBe,YBe,ZBe,qBe,JBe,XBe,QBe,eze,tze,rze,nze,oze,ize,sze,aze,lze,cze,uze,dze,fze,pze,mze,gW,gze,hW,hze,vW,vze,yze,bze,xze,Cze,Sze,_ze,wze,yW=ue(async()=>{"use strict";Ue=await(process.env.NODE_ENV!=="production"?BK().then(()=>FK):mW().then(()=>pW)),DBe=Ue.$computeTableMap,LBe=Ue.$computeTableMapSkipCellCheck,ABe=Ue.$createTableCellNode,OBe=Ue.$createTableNode,MBe=Ue.$createTableNodeWithDimensions,IBe=Ue.$createTableRowNode,kBe=Ue.$createTableSelection,RBe=Ue.$createTableSelectionFrom,PBe=Ue.$deleteTableColumn,FBe=Ue.$deleteTableColumnAtSelection,BBe=Ue.$deleteTableColumn__EXPERIMENTAL,zBe=Ue.$deleteTableRowAtSelection,jBe=Ue.$deleteTableRow__EXPERIMENTAL,VBe=Ue.$findCellNode,HBe=Ue.$findTableNode,UBe=Ue.$getElementForTableNode,KBe=Ue.$getNodeTriplet,WBe=Ue.$getTableAndElementByKey,GBe=Ue.$getTableCellNodeFromLexicalNode,YBe=Ue.$getTableCellNodeRect,ZBe=Ue.$getTableColumnIndexFromTableCellNode,qBe=Ue.$getTableNodeFromLexicalNodeOrThrow,JBe=Ue.$getTableRowIndexFromTableCellNode,XBe=Ue.$getTableRowNodeFromTableCellNodeOrThrow,QBe=Ue.$insertTableColumn,eze=Ue.$insertTableColumnAtSelection,tze=Ue.$insertTableColumn__EXPERIMENTAL,rze=Ue.$insertTableRow,nze=Ue.$insertTableRowAtSelection,oze=Ue.$insertTableRow__EXPERIMENTAL,ize=Ue.$isScrollableTablesActive,sze=Ue.$isTableCellNode,aze=Ue.$isTableNode,lze=Ue.$isTableRowNode,cze=Ue.$isTableSelection,uze=Ue.$mergeCells,dze=Ue.$removeTableRowAtIndex,fze=Ue.$unmergeCell,pze=Ue.INSERT_TABLE_COMMAND,mze=Ue.TableCellHeaderStates,gW=Ue.TableCellNode,gze=Ue.TableExtension,hW=Ue.TableNode,hze=Ue.TableObserver,vW=Ue.TableRowNode,vze=Ue.applyTableHandlers,yze=Ue.getDOMCellFromTarget,bze=Ue.getTableElement,xze=Ue.getTableObserverFromTableElement,Cze=Ue.registerTableCellUnmergeTransform,Sze=Ue.registerTablePlugin,_ze=Ue.registerTableSelectionObserver,wze=Ue.setScrollableTablesActive});var DW=Ee(lt=>{"use strict";var L9=Symbol.for("react.transitional.element"),Sbe=Symbol.for("react.portal"),_be=Symbol.for("react.fragment"),wbe=Symbol.for("react.strict_mode"),Ebe=Symbol.for("react.profiler"),Tbe=Symbol.for("react.consumer"),$be=Symbol.for("react.context"),Nbe=Symbol.for("react.forward_ref"),Dbe=Symbol.for("react.suspense"),Lbe=Symbol.for("react.memo"),_W=Symbol.for("react.lazy"),Abe=Symbol.for("react.activity"),bW=Symbol.iterator;function Obe(t){return t===null||typeof t!="object"?null:(t=bW&&t[bW]||t["@@iterator"],typeof t=="function"?t:null)}var wW={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},EW=Object.assign,TW={};function Lg(t,e,r){this.props=t,this.context=e,this.refs=TW,this.updater=r||wW}Lg.prototype.isReactComponent={};Lg.prototype.setState=function(t,e){if(typeof t!="object"&&typeof t!="function"&&t!=null)throw Error("takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,t,e,"setState")};Lg.prototype.forceUpdate=function(t){this.updater.enqueueForceUpdate(this,t,"forceUpdate")};function $W(){}$W.prototype=Lg.prototype;function A9(t,e,r){this.props=t,this.context=e,this.refs=TW,this.updater=r||wW}var O9=A9.prototype=new $W;O9.constructor=A9;EW(O9,Lg.prototype);O9.isPureReactComponent=!0;var xW=Array.isArray;function D9(){}var Mr={H:null,A:null,T:null,S:null},NW=Object.prototype.hasOwnProperty;function M9(t,e,r){var n=r.ref;return{$$typeof:L9,type:t,key:e,ref:n!==void 0?n:null,props:r}}function Mbe(t,e){return M9(t.type,e,t.props)}function I9(t){return typeof t=="object"&&t!==null&&t.$$typeof===L9}function Ibe(t){var e={"=":"=0",":":"=2"};return"$"+t.replace(/[=:]/g,function(r){return e[r]})}var CW=/\/+/g;function N9(t,e){return typeof t=="object"&&t!==null&&t.key!=null?Ibe(""+t.key):e.toString(36)}function kbe(t){switch(t.status){case"fulfilled":return t.value;case"rejected":throw t.reason;default:switch(typeof t.status=="string"?t.then(D9,D9):(t.status="pending",t.then(function(e){t.status==="pending"&&(t.status="fulfilled",t.value=e)},function(e){t.status==="pending"&&(t.status="rejected",t.reason=e)})),t.status){case"fulfilled":return t.value;case"rejected":throw t.reason}}throw t}function Dg(t,e,r,n,o){var i=typeof t;(i==="undefined"||i==="boolean")&&(t=null);var s=!1;if(t===null)s=!0;else switch(i){case"bigint":case"string":case"number":s=!0;break;case"object":switch(t.$$typeof){case L9:case Sbe:s=!0;break;case _W:return s=t._init,Dg(s(t._payload),e,r,n,o)}}if(s)return o=o(t),s=n===""?"."+N9(t,0):n,xW(o)?(r="",s!=null&&(r=s.replace(CW,"$&/")+"/"),Dg(o,e,r,"",function(c){return c})):o!=null&&(I9(o)&&(o=Mbe(o,r+(o.key==null||t&&t.key===o.key?"":(""+o.key).replace(CW,"$&/")+"/")+s)),e.push(o)),1;s=0;var a=n===""?".":n+":";if(xW(t))for(var l=0;l<t.length;l++)n=t[l],i=a+N9(n,l),s+=Dg(n,e,r,i,o);else if(l=Obe(t),typeof l=="function")for(t=l.call(t),l=0;!(n=t.next()).done;)n=n.value,i=a+N9(n,l++),s+=Dg(n,e,r,i,o);else if(i==="object"){if(typeof t.then=="function")return Dg(kbe(t),e,r,n,o);throw e=String(t),Error("Objects are not valid as a React child (found: "+(e==="[object Object]"?"object with keys {"+Object.keys(t).join(", ")+"}":e)+"). If you meant to render a collection of children, use an array instead.")}return s}function t3(t,e,r){if(t==null)return t;var n=[],o=0;return Dg(t,n,"","",function(i){return e.call(r,i,o++)}),n}function Rbe(t){if(t._status===-1){var e=t._result;e=e(),e.then(function(r){(t._status===0||t._status===-1)&&(t._status=1,t._result=r)},function(r){(t._status===0||t._status===-1)&&(t._status=2,t._result=r)}),t._status===-1&&(t._status=0,t._result=e)}if(t._status===1)return t._result.default;throw t._result}var SW=typeof reportError=="function"?reportError:function(t){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var e=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof t=="object"&&t!==null&&typeof t.message=="string"?String(t.message):String(t),error:t});if(!window.dispatchEvent(e))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",t);return}console.error(t)},Pbe={map:t3,forEach:function(t,e,r){t3(t,function(){e.apply(this,arguments)},r)},count:function(t){var e=0;return t3(t,function(){e++}),e},toArray:function(t){return t3(t,function(e){return e})||[]},only:function(t){if(!I9(t))throw Error("React.Children.only expected to receive a single React element child.");return t}};lt.Activity=Abe;lt.Children=Pbe;lt.Component=Lg;lt.Fragment=_be;lt.Profiler=Ebe;lt.PureComponent=A9;lt.StrictMode=wbe;lt.Suspense=Dbe;lt.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=Mr;lt.__COMPILER_RUNTIME={__proto__:null,c:function(t){return Mr.H.useMemoCache(t)}};lt.cache=function(t){return function(){return t.apply(null,arguments)}};lt.cacheSignal=function(){return null};lt.cloneElement=function(t,e,r){if(t==null)throw Error("The argument must be a React element, but you passed "+t+".");var n=EW({},t.props),o=t.key;if(e!=null)for(i in e.key!==void 0&&(o=""+e.key),e)!NW.call(e,i)||i==="key"||i==="__self"||i==="__source"||i==="ref"&&e.ref===void 0||(n[i]=e[i]);var i=arguments.length-2;if(i===1)n.children=r;else if(1<i){for(var s=Array(i),a=0;a<i;a++)s[a]=arguments[a+2];n.children=s}return M9(t.type,o,n)};lt.createContext=function(t){return t={$$typeof:$be,_currentValue:t,_currentValue2:t,_threadCount:0,Provider:null,Consumer:null},t.Provider=t,t.Consumer={$$typeof:Tbe,_context:t},t};lt.createElement=function(t,e,r){var n,o={},i=null;if(e!=null)for(n in e.key!==void 0&&(i=""+e.key),e)NW.call(e,n)&&n!=="key"&&n!=="__self"&&n!=="__source"&&(o[n]=e[n]);var s=arguments.length-2;if(s===1)o.children=r;else if(1<s){for(var a=Array(s),l=0;l<s;l++)a[l]=arguments[l+2];o.children=a}if(t&&t.defaultProps)for(n in s=t.defaultProps,s)o[n]===void 0&&(o[n]=s[n]);return M9(t,i,o)};lt.createRef=function(){return{current:null}};lt.forwardRef=function(t){return{$$typeof:Nbe,render:t}};lt.isValidElement=I9;lt.lazy=function(t){return{$$typeof:_W,_payload:{_status:-1,_result:t},_init:Rbe}};lt.memo=function(t,e){return{$$typeof:Lbe,type:t,compare:e===void 0?null:e}};lt.startTransition=function(t){var e=Mr.T,r={};Mr.T=r;try{var n=t(),o=Mr.S;o!==null&&o(r,n),typeof n=="object"&&n!==null&&typeof n.then=="function"&&n.then(D9,SW)}catch(i){SW(i)}finally{e!==null&&r.types!==null&&(e.types=r.types),Mr.T=e}};lt.unstable_useCacheRefresh=function(){return Mr.H.useCacheRefresh()};lt.use=function(t){return Mr.H.use(t)};lt.useActionState=function(t,e,r){return Mr.H.useActionState(t,e,r)};lt.useCallback=function(t,e){return Mr.H.useCallback(t,e)};lt.useContext=function(t){return Mr.H.useContext(t)};lt.useDebugValue=function(){};lt.useDeferredValue=function(t,e){return Mr.H.useDeferredValue(t,e)};lt.useEffect=function(t,e){return Mr.H.useEffect(t,e)};lt.useEffectEvent=function(t){return Mr.H.useEffectEvent(t)};lt.useId=function(){return Mr.H.useId()};lt.useImperativeHandle=function(t,e,r){return Mr.H.useImperativeHandle(t,e,r)};lt.useInsertionEffect=function(t,e){return Mr.H.useInsertionEffect(t,e)};lt.useLayoutEffect=function(t,e){return Mr.H.useLayoutEffect(t,e)};lt.useMemo=function(t,e){return Mr.H.useMemo(t,e)};lt.useOptimistic=function(t,e){return Mr.H.useOptimistic(t,e)};lt.useReducer=function(t,e,r){return Mr.H.useReducer(t,e,r)};lt.useRef=function(t){return Mr.H.useRef(t)};lt.useState=function(t){return Mr.H.useState(t)};lt.useSyncExternalStore=function(t,e,r){return Mr.H.useSyncExternalStore(t,e,r)};lt.useTransition=function(){return Mr.H.useTransition()};lt.version="19.2.1"});var LW=Ee((tt,r3)=>{"use strict";process.env.NODE_ENV!=="production"&&function(){function t(L,W){Object.defineProperty(n.prototype,L,{get:function(){console.warn("%s(...) is deprecated in plain JavaScript React classes. %s",W[0],W[1])}})}function e(L){return L===null||typeof L!="object"?null:(L=Z&&L[Z]||L["@@iterator"],typeof L=="function"?L:null)}function r(L,W){L=(L=L.constructor)&&(L.displayName||L.name)||"ReactClass";var le=L+"."+W;Ce[le]||(console.error("Can't call %s on a component that is not yet mounted. This is a no-op, but it might indicate a bug in your application. Instead, assign to `this.state` directly or define a `state = {};` class property with the desired state in the %s component.",W,L),Ce[le]=!0)}function n(L,W,le){this.props=L,this.context=W,this.refs=pt,this.updater=le||ne}function o(){}function i(L,W,le){this.props=L,this.context=W,this.refs=pt,this.updater=le||ne}function s(){}function a(L){return""+L}function l(L){try{a(L);var W=!1}catch{W=!0}if(W){W=console;var le=W.error,ge=typeof Symbol=="function"&&Symbol.toStringTag&&L[Symbol.toStringTag]||L.constructor.name||"Object";return le.call(W,"The provided key is an unsupported type %s. This value must be coerced to a string before using it here.",ge),a(L)}}function c(L){if(L==null)return null;if(typeof L=="function")return L.$$typeof===fo?null:L.displayName||L.name||null;if(typeof L=="string")return L;switch(L){case z:return"Fragment";case I:return"Profiler";case j:return"StrictMode";case xe:return"Suspense";case Ze:return"SuspenseList";case Me:return"Activity"}if(typeof L=="object")switch(typeof L.tag=="number"&&console.error("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),L.$$typeof){case P:return"Portal";case te:return L.displayName||"Context";case Y:return(L._context.displayName||"Context")+".Consumer";case fe:var W=L.render;return L=L.displayName,L||(L=W.displayName||W.name||"",L=L!==""?"ForwardRef("+L+")":"ForwardRef"),L;case Ae:return W=L.displayName||null,W!==null?W:c(L.type)||"Memo";case pe:W=L._payload,L=L._init;try{return c(L(W))}catch{}}return null}function u(L){if(L===z)return"<>";if(typeof L=="object"&&L!==null&&L.$$typeof===pe)return"<...>";try{var W=c(L);return W?"<"+W+">":"<...>"}catch{return"<...>"}}function d(){var L=X.A;return L===null?null:L.getOwner()}function f(){return Error("react-stack-top-frame")}function p(L){if(He.call(L,"key")){var W=Object.getOwnPropertyDescriptor(L,"key").get;if(W&&W.isReactWarning)return!1}return L.key!==void 0}function m(L,W){function le(){nt||(nt=!0,console.error("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://react.dev/link/special-props)",W))}le.isReactWarning=!0,Object.defineProperty(L,"key",{get:le,configurable:!0})}function g(){var L=c(this.type);return Mo[L]||(Mo[L]=!0,console.error("Accessing element.ref was removed in React 19. ref is now a regular prop. It will be removed from the JSX Element type in a future release.")),L=this.props.ref,L!==void 0?L:null}function h(L,W,le,ge,Re,St){var mt=le.ref;return L={$$typeof:F,type:L,key:W,props:le,_owner:ge},(mt!==void 0?mt:null)!==null?Object.defineProperty(L,"ref",{enumerable:!1,get:g}):Object.defineProperty(L,"ref",{enumerable:!1,value:null}),L._store={},Object.defineProperty(L._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:0}),Object.defineProperty(L,"_debugInfo",{configurable:!1,enumerable:!1,writable:!0,value:null}),Object.defineProperty(L,"_debugStack",{configurable:!1,enumerable:!1,writable:!0,value:Re}),Object.defineProperty(L,"_debugTask",{configurable:!1,enumerable:!1,writable:!0,value:St}),Object.freeze&&(Object.freeze(L.props),Object.freeze(L)),L}function v(L,W){return W=h(L.type,W,L.props,L._owner,L._debugStack,L._debugTask),L._store&&(W._store.validated=L._store.validated),W}function y(L){b(L)?L._store&&(L._store.validated=1):typeof L=="object"&&L!==null&&L.$$typeof===pe&&(L._payload.status==="fulfilled"?b(L._payload.value)&&L._payload.value._store&&(L._payload.value._store.validated=1):L._store&&(L._store.validated=1))}function b(L){return typeof L=="object"&&L!==null&&L.$$typeof===F}function x(L){var W={"=":"=0",":":"=2"};return"$"+L.replace(/[=:]/g,function(le){return W[le]})}function S(L,W){return typeof L=="object"&&L!==null&&L.key!=null?(l(L.key),x(""+L.key)):W.toString(36)}function _(L){switch(L.status){case"fulfilled":return L.value;case"rejected":throw L.reason;default:switch(typeof L.status=="string"?L.then(s,s):(L.status="pending",L.then(function(W){L.status==="pending"&&(L.status="fulfilled",L.value=W)},function(W){L.status==="pending"&&(L.status="rejected",L.reason=W)})),L.status){case"fulfilled":return L.value;case"rejected":throw L.reason}}throw L}function w(L,W,le,ge,Re){var St=typeof L;(St==="undefined"||St==="boolean")&&(L=null);var mt=!1;if(L===null)mt=!0;else switch(St){case"bigint":case"string":case"number":mt=!0;break;case"object":switch(L.$$typeof){case F:case P:mt=!0;break;case pe:return mt=L._init,w(mt(L._payload),W,le,ge,Re)}}if(mt){mt=L,Re=Re(mt);var Sr=ge===""?"."+S(mt,0):ge;return it(Re)?(le="",Sr!=null&&(le=Sr.replace(LI,"$&/")+"/"),w(Re,W,le,"",function($c){return $c})):Re!=null&&(b(Re)&&(Re.key!=null&&(mt&&mt.key===Re.key||l(Re.key)),le=v(Re,le+(Re.key==null||mt&&mt.key===Re.key?"":(""+Re.key).replace(LI,"$&/")+"/")+Sr),ge!==""&&mt!=null&&b(mt)&&mt.key==null&&mt._store&&!mt._store.validated&&(le._store.validated=2),Re=le),W.push(Re)),1}if(mt=0,Sr=ge===""?".":ge+":",it(L))for(var _t=0;_t<L.length;_t++)ge=L[_t],St=Sr+S(ge,_t),mt+=w(ge,W,le,St,Re);else if(_t=e(L),typeof _t=="function")for(_t===L.entries&&(E0||console.warn("Using Maps as children is not supported. Use an array of keyed ReactElements instead."),E0=!0),L=_t.call(L),_t=0;!(ge=L.next()).done;)ge=ge.value,St=Sr+S(ge,_t++),mt+=w(ge,W,le,St,Re);else if(St==="object"){if(typeof L.then=="function")return w(_(L),W,le,ge,Re);throw W=String(L),Error("Objects are not valid as a React child (found: "+(W==="[object Object]"?"object with keys {"+Object.keys(L).join(", ")+"}":W)+"). If you meant to render a collection of children, use an array instead.")}return mt}function T(L,W,le){if(L==null)return L;var ge=[],Re=0;return w(L,ge,"","",function(St){return W.call(le,St,Re++)}),ge}function N(L){if(L._status===-1){var W=L._ioInfo;W!=null&&(W.start=W.end=performance.now()),W=L._result;var le=W();if(le.then(function(Re){if(L._status===0||L._status===-1){L._status=1,L._result=Re;var St=L._ioInfo;St!=null&&(St.end=performance.now()),le.status===void 0&&(le.status="fulfilled",le.value=Re)}},function(Re){if(L._status===0||L._status===-1){L._status=2,L._result=Re;var St=L._ioInfo;St!=null&&(St.end=performance.now()),le.status===void 0&&(le.status="rejected",le.reason=Re)}}),W=L._ioInfo,W!=null){W.value=le;var ge=le.displayName;typeof ge=="string"&&(W.name=ge)}L._status===-1&&(L._status=0,L._result=le)}if(L._status===1)return W=L._result,W===void 0&&console.error(`lazy: Expected the result of a dynamic import() call. Instead received: %s
|
|
52
52
|
|
|
53
53
|
Your code should look like:
|
|
54
54
|
const MyComponent = lazy(() => import('./MyComponent'))
|
|
@@ -60,16 +60,16 @@ Your code should look like:
|
|
|
60
60
|
1. You might have mismatching versions of React and the renderer (such as React DOM)
|
|
61
61
|
2. You might be breaking the Rules of Hooks
|
|
62
62
|
3. You might have more than one copy of React in the same app
|
|
63
|
-
See https://react.dev/link/invalid-hook-call for tips about how to debug and fix this problem.`),L}function E(){X.asyncTransitions--}function R(L){if(ax===null)try{var W=("require"+Math.random()).slice(0,7);ax=(r3&&r3[W]).call(r3,"timers").setImmediate}catch{ax=function(ge){OI===!1&&(OI=!0,typeof MessageChannel>"u"&&console.error("This browser does not have a MessageChannel implementation, so enqueuing tasks via await act(async () => ...) will fail. Please file an issue at https://github.com/facebook/react/issues if you encounter this warning."));var Re=new MessageChannel;Re.port1.onmessage=ge,Re.port2.postMessage(void 0)}}return ax(L)}function O(L){return 1<L.length&&typeof AggregateError=="function"?new AggregateError(L):L[0]}function A(L,W){W!==lx-1&&console.error("You seem to have overlapping act() calls, this is not supported. Be sure to await previous act() calls before making a new one. "),lx=W}function B(L,W,le){var ge=X.actQueue;if(ge!==null)if(ge.length!==0)try{D(ge),R(function(){return B(L,W,le)});return}catch(Re){X.thrownErrors.push(Re)}else X.actQueue=null;0<X.thrownErrors.length?(ge=O(X.thrownErrors),X.thrownErrors.length=0,le(ge)):W(L)}function D(L){if(!HE){HE=!0;var W=0;try{for(;W<L.length;W++){var le=L[W];do{X.didUsePromise=!1;var ge=le(!1);if(ge!==null){if(X.didUsePromise){L[W]=le,L.splice(0,W);return}le=ge}else break}while(!0)}L.length=0}catch(Re){L.splice(0,W+1),X.thrownErrors.push(Re)}finally{HE=!1}}}typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(Error());var F=Symbol.for("react.transitional.element"),P=Symbol.for("react.portal"),z=Symbol.for("react.fragment"),j=Symbol.for("react.strict_mode"),I=Symbol.for("react.profiler"),Y=Symbol.for("react.consumer"),te=Symbol.for("react.context"),fe=Symbol.for("react.forward_ref"),xe=Symbol.for("react.suspense"),Ze=Symbol.for("react.suspense_list"),Ae=Symbol.for("react.memo"),pe=Symbol.for("react.lazy"),Me=Symbol.for("react.activity"),Z=Symbol.iterator,Ce={},ne={isMounted:function(){return!1},enqueueForceUpdate:function(L){r(L,"forceUpdate")},enqueueReplaceState:function(L){r(L,"replaceState")},enqueueSetState:function(L){r(L,"setState")}},Fe=Object.assign,pt={};Object.freeze(pt),n.prototype.isReactComponent={},n.prototype.setState=function(L,W){if(typeof L!="object"&&typeof L!="function"&&L!=null)throw Error("takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,L,W,"setState")},n.prototype.forceUpdate=function(L){this.updater.enqueueForceUpdate(this,L,"forceUpdate")};var rt={isMounted:["isMounted","Instead, make sure to clean up subscriptions and pending requests in componentWillUnmount to prevent memory leaks."],replaceState:["replaceState","Refactor your code to use setState instead (see https://github.com/facebook/react/issues/3236)."]};for(T0 in rt)rt.hasOwnProperty(T0)&&t(T0,rt[T0]);o.prototype=n.prototype,rt=i.prototype=new o,rt.constructor=i,Fe(rt,n.prototype),rt.isPureReactComponent=!0;var it=Array.isArray,fo=Symbol.for("react.client.reference"),X={H:null,A:null,T:null,S:null,actQueue:null,asyncTransitions:0,isBatchingLegacy:!1,didScheduleLegacyUpdate:!1,didUsePromise:!1,thrownErrors:[],getCurrentStack:null,recentlyCreatedOwnerStacks:0},He=Object.prototype.hasOwnProperty,Ot=console.createTask?console.createTask:function(){return null};rt={react_stack_bottom_frame:function(L){return L()}};var nt,Zr,Mo={},Ad=rt.react_stack_bottom_frame.bind(rt,f)(),Fp=Ot(u(f)),E0=!1,LI=/\/+/g,AI=typeof reportError=="function"?reportError:function(L){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var W=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof L=="object"&&L!==null&&typeof L.message=="string"?String(L.message):String(L),error:L});if(!window.dispatchEvent(W))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",L);return}console.error(L)},OI=!1,ax=null,lx=0,cx=!1,HE=!1,MI=typeof queueMicrotask=="function"?function(L){queueMicrotask(function(){return queueMicrotask(L)})}:R;rt=Object.freeze({__proto__:null,c:function(L){return $().useMemoCache(L)}});var T0={map:T,forEach:function(L,W,le){T(L,function(){W.apply(this,arguments)},le)},count:function(L){var W=0;return T(L,function(){W++}),W},toArray:function(L){return T(L,function(W){return W})||[]},only:function(L){if(!b(L))throw Error("React.Children.only expected to receive a single React element child.");return L}};tt.Activity=Me,tt.Children=T0,tt.Component=n,tt.Fragment=z,tt.Profiler=I,tt.PureComponent=i,tt.StrictMode=j,tt.Suspense=xe,tt.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=X,tt.__COMPILER_RUNTIME=rt,tt.act=function(L){var W=X.actQueue,le=lx;lx++;var ge=X.actQueue=W!==null?W:[],Re=!1;try{var St=L()}catch(_t){X.thrownErrors.push(_t)}if(0<X.thrownErrors.length)throw A(W,le),L=O(X.thrownErrors),X.thrownErrors.length=0,L;if(St!==null&&typeof St=="object"&&typeof St.then=="function"){var mt=St;return MI(function(){Re||cx||(cx=!0,console.error("You called act(async () => ...) without await. This could lead to unexpected testing behaviour, interleaving multiple act calls and mixing their scopes. You should - await act(async () => ...);"))}),{then:function(_t,$c){Re=!0,mt.then(function(Bp){if(A(W,le),le===0){try{D(ge),R(function(){return B(Bp,_t,$c)})}catch(Nae){X.thrownErrors.push(Nae)}if(0<X.thrownErrors.length){var $ae=O(X.thrownErrors);X.thrownErrors.length=0,$c($ae)}}else _t(Bp)},function(Bp){A(W,le),0<X.thrownErrors.length&&(Bp=O(X.thrownErrors),X.thrownErrors.length=0),$c(Bp)})}}}var Sr=St;if(A(W,le),le===0&&(D(ge),ge.length!==0&&MI(function(){Re||cx||(cx=!0,console.error("A component suspended inside an `act` scope, but the `act` call was not awaited. When testing React components that depend on asynchronous data, you must await the result:\n\nawait act(() => ...)"))}),X.actQueue=null),0<X.thrownErrors.length)throw L=O(X.thrownErrors),X.thrownErrors.length=0,L;return{then:function(_t,$c){Re=!0,le===0?(X.actQueue=ge,R(function(){return B(Sr,_t,$c)})):_t(Sr)}}},tt.cache=function(L){return function(){return L.apply(null,arguments)}},tt.cacheSignal=function(){return null},tt.captureOwnerStack=function(){var L=X.getCurrentStack;return L===null?null:L()},tt.cloneElement=function(L,W,le){if(L==null)throw Error("The argument must be a React element, but you passed "+L+".");var ge=Fe({},L.props),Re=L.key,St=L._owner;if(W!=null){var mt;e:{if(He.call(W,"ref")&&(mt=Object.getOwnPropertyDescriptor(W,"ref").get)&&mt.isReactWarning){mt=!1;break e}mt=W.ref!==void 0}mt&&(St=d()),p(W)&&(l(W.key),Re=""+W.key);for(Sr in W)!He.call(W,Sr)||Sr==="key"||Sr==="__self"||Sr==="__source"||Sr==="ref"&&W.ref===void 0||(ge[Sr]=W[Sr])}var Sr=arguments.length-2;if(Sr===1)ge.children=le;else if(1<Sr){mt=Array(Sr);for(var _t=0;_t<Sr;_t++)mt[_t]=arguments[_t+2];ge.children=mt}for(ge=h(L.type,Re,ge,St,L._debugStack,L._debugTask),Re=2;Re<arguments.length;Re++)y(arguments[Re]);return ge},tt.createContext=function(L){return L={$$typeof:te,_currentValue:L,_currentValue2:L,_threadCount:0,Provider:null,Consumer:null},L.Provider=L,L.Consumer={$$typeof:Y,_context:L},L._currentRenderer=null,L._currentRenderer2=null,L},tt.createElement=function(L,W,le){for(var ge=2;ge<arguments.length;ge++)y(arguments[ge]);ge={};var Re=null;if(W!=null)for(_t in Zr||!("__self"in W)||"key"in W||(Zr=!0,console.warn("Your app (or one of its dependencies) is using an outdated JSX transform. Update to the modern JSX transform for faster performance: https://react.dev/link/new-jsx-transform")),p(W)&&(l(W.key),Re=""+W.key),W)He.call(W,_t)&&_t!=="key"&&_t!=="__self"&&_t!=="__source"&&(ge[_t]=W[_t]);var St=arguments.length-2;if(St===1)ge.children=le;else if(1<St){for(var mt=Array(St),Sr=0;Sr<St;Sr++)mt[Sr]=arguments[Sr+2];Object.freeze&&Object.freeze(mt),ge.children=mt}if(L&&L.defaultProps)for(_t in St=L.defaultProps,St)ge[_t]===void 0&&(ge[_t]=St[_t]);Re&&m(ge,typeof L=="function"?L.displayName||L.name||"Unknown":L);var _t=1e4>X.recentlyCreatedOwnerStacks++;return h(L,Re,ge,d(),_t?Error("react-stack-top-frame"):Ad,_t?Ot(u(L)):Fp)},tt.createRef=function(){var L={current:null};return Object.seal(L),L},tt.forwardRef=function(L){L!=null&&L.$$typeof===Ae?console.error("forwardRef requires a render function but received a `memo` component. Instead of forwardRef(memo(...)), use memo(forwardRef(...))."):typeof L!="function"?console.error("forwardRef requires a render function but was given %s.",L===null?"null":typeof L):L.length!==0&&L.length!==2&&console.error("forwardRef render functions accept exactly two parameters: props and ref. %s",L.length===1?"Did you forget to use the ref parameter?":"Any additional parameter will be undefined."),L!=null&&L.defaultProps!=null&&console.error("forwardRef render functions do not support defaultProps. Did you accidentally pass a React component?");var W={$$typeof:fe,render:L},le;return Object.defineProperty(W,"displayName",{enumerable:!1,configurable:!0,get:function(){return le},set:function(ge){le=ge,L.name||L.displayName||(Object.defineProperty(L,"name",{value:ge}),L.displayName=ge)}}),W},tt.isValidElement=b,tt.lazy=function(L){L={_status:-1,_result:L};var W={$$typeof:pe,_payload:L,_init:N},le={name:"lazy",start:-1,end:-1,value:null,owner:null,debugStack:Error("react-stack-top-frame"),debugTask:console.createTask?console.createTask("lazy()"):null};return L._ioInfo=le,W._debugInfo=[{awaited:le}],W},tt.memo=function(L,W){L==null&&console.error("memo: The first argument must be a component. Instead received: %s",L===null?"null":typeof L),W={$$typeof:Ae,type:L,compare:W===void 0?null:W};var le;return Object.defineProperty(W,"displayName",{enumerable:!1,configurable:!0,get:function(){return le},set:function(ge){le=ge,L.name||L.displayName||(Object.defineProperty(L,"name",{value:ge}),L.displayName=ge)}}),W},tt.startTransition=function(L){var W=X.T,le={};le._updatedFibers=new Set,X.T=le;try{var ge=L(),Re=X.S;Re!==null&&Re(le,ge),typeof ge=="object"&&ge!==null&&typeof ge.then=="function"&&(X.asyncTransitions++,ge.then(E,E),ge.then(s,AI))}catch(St){AI(St)}finally{W===null&&le._updatedFibers&&(L=le._updatedFibers.size,le._updatedFibers.clear(),10<L&&console.warn("Detected a large number of updates inside startTransition. If this is due to a subscription please re-write it to use React provided hooks. Otherwise concurrent mode guarantees are off the table.")),W!==null&&le.types!==null&&(W.types!==null&&W.types!==le.types&&console.error("We expected inner Transitions to have transferred the outer types set and that you cannot add to the outer Transition while inside the inner.This is a bug in React."),W.types=le.types),X.T=W}},tt.unstable_useCacheRefresh=function(){return $().useCacheRefresh()},tt.use=function(L){return $().use(L)},tt.useActionState=function(L,W,le){return $().useActionState(L,W,le)},tt.useCallback=function(L,W){return $().useCallback(L,W)},tt.useContext=function(L){var W=$();return L.$$typeof===Y&&console.error("Calling useContext(Context.Consumer) is not supported and will cause bugs. Did you mean to call useContext(Context) instead?"),W.useContext(L)},tt.useDebugValue=function(L,W){return $().useDebugValue(L,W)},tt.useDeferredValue=function(L,W){return $().useDeferredValue(L,W)},tt.useEffect=function(L,W){return L==null&&console.warn("React Hook useEffect requires an effect callback. Did you forget to pass a callback to the hook?"),$().useEffect(L,W)},tt.useEffectEvent=function(L){return $().useEffectEvent(L)},tt.useId=function(){return $().useId()},tt.useImperativeHandle=function(L,W,le){return $().useImperativeHandle(L,W,le)},tt.useInsertionEffect=function(L,W){return L==null&&console.warn("React Hook useInsertionEffect requires an effect callback. Did you forget to pass a callback to the hook?"),$().useInsertionEffect(L,W)},tt.useLayoutEffect=function(L,W){return L==null&&console.warn("React Hook useLayoutEffect requires an effect callback. Did you forget to pass a callback to the hook?"),$().useLayoutEffect(L,W)},tt.useMemo=function(L,W){return $().useMemo(L,W)},tt.useOptimistic=function(L,W){return $().useOptimistic(L,W)},tt.useReducer=function(L,W,le){return $().useReducer(L,W,le)},tt.useRef=function(L){return $().useRef(L)},tt.useState=function(L){return $().useState(L)},tt.useSyncExternalStore=function(L,W,le){return $().useSyncExternalStore(L,W,le)},tt.useTransition=function(){return $().useTransition()},tt.version="19.2.0",typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error())}()});var K=Ee(($ze,k9)=>{"use strict";process.env.NODE_ENV==="production"?k9.exports=DW():k9.exports=LW()});var OW={};Pt(OW,{LexicalComposerContext:()=>AW,createLexicalComposerContext:()=>Bbe,useLexicalComposerContext:()=>zbe});function Fbe(t){throw new Error(t)}function Bbe(t,e){let r=null;t!=null&&(r=t[1]);function n(){return e??(r!=null?r.getTheme():null)}return{getTheme:n}}function zbe(){let t=(0,n3.useContext)(AW);return t==null&&Fbe("LexicalComposerContext.useLexicalComposerContext: cannot find a LexicalComposerContext"),t}var n3,AW,MW=ue(()=>{"use strict";n3=k(K(),1);AW=(0,n3.createContext)(null)});var kW={};Pt(kW,{LexicalComposerContext:()=>IW,createLexicalComposerContext:()=>jbe,useLexicalComposerContext:()=>Vbe});function jbe(t,e){let r=null;return t!=null&&(r=t[1]),{getTheme:function(){return e??(r!=null?r.getTheme():null)}}}function Vbe(){let t=(0,o3.useContext)(IW);return t==null&&function(e,...r){let n=new URL("https://lexical.dev/docs/error"),o=new URLSearchParams;o.append("code",e);for(let i of r)o.append("v",i);throw n.search=o.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.`)}(8),t}var o3,IW,RW=ue(()=>{"use strict";o3=k(K(),1),IW=(0,o3.createContext)(null)});var R9,Nze,Dze,Ag,i3=ue(async()=>{"use strict";R9=await(process.env.NODE_ENV!=="production"?Promise.resolve().then(()=>(MW(),OW)):Promise.resolve().then(()=>(RW(),kW))),Nze=R9.LexicalComposerContext,Dze=R9.createLexicalComposerContext,Ag=R9.useLexicalComposerContext});var FW={};Pt(FW,{useLexicalNodeSelection:()=>Hbe});function PW(t,e){return t.getEditorState().read(()=>{let r=st(e);return r===null?!1:r.isSelected()})}function Hbe(t){let[e]=Ag(),[r,n]=(0,Nf.useState)(()=>PW(e,t));(0,Nf.useEffect)(()=>{let s=!0,a=e.registerUpdateListener(()=>{s&&n(PW(e,t))});return()=>{s=!1,a()}},[e,t]);let o=(0,Nf.useCallback)(s=>{e.update(()=>{let a=H();Je(a)||(a=ru(),qe(a)),Je(a)&&(s?a.add(t):a.delete(t))})},[e,t]),i=(0,Nf.useCallback)(()=>{e.update(()=>{let s=H();Je(s)&&s.clear()})},[e]);return[r,o,i]}var Nf,BW=ue(async()=>{"use strict";await i3();await ht();Nf=k(K(),1)});var jW={};Pt(jW,{useLexicalNodeSelection:()=>Ube});function zW(t,e){return t.getEditorState().read(()=>{let r=st(e);return r!==null&&r.isSelected()})}function Ube(t){let[e]=Ag(),[r,n]=(0,Df.useState)(()=>zW(e,t));return(0,Df.useEffect)(()=>{let o=!0,i=e.registerUpdateListener(()=>{o&&n(zW(e,t))});return()=>{o=!1,i()}},[e,t]),[r,(0,Df.useCallback)(o=>{e.update(()=>{let i=H();Je(i)||(i=ru(),qe(i)),Je(i)&&(o?i.add(t):i.delete(t))})},[e,t]),(0,Df.useCallback)(()=>{e.update(()=>{let o=H();Je(o)&&o.clear()})},[e])]}var Df,VW=ue(async()=>{"use strict";await i3();await ht();Df=k(K(),1)});var Kbe,HW,UW=ue(async()=>{"use strict";Kbe=await(process.env.NODE_ENV!=="production"?BW().then(()=>FW):VW().then(()=>jW)),HW=Kbe.useLexicalNodeSelection});function Gbe(t){if(t.sheet)return t.sheet;for(var e=0;e<document.styleSheets.length;e++)if(document.styleSheets[e].ownerNode===t)return document.styleSheets[e]}function Ybe(t){var e=document.createElement("style");return e.setAttribute("data-emotion",t.key),t.nonce!==void 0&&e.setAttribute("nonce",t.nonce),e.appendChild(document.createTextNode("")),e.setAttribute("data-s",""),e}var Wbe,KW,WW=ue(()=>{"use strict";Wbe=!1;KW=function(){function t(r){var n=this;this._insertTag=function(o){var i;n.tags.length===0?n.insertionPoint?i=n.insertionPoint.nextSibling:n.prepend?i=n.container.firstChild:i=n.before:i=n.tags[n.tags.length-1].nextSibling,n.container.insertBefore(o,i),n.tags.push(o)},this.isSpeedy=r.speedy===void 0?!Wbe:r.speedy,this.tags=[],this.ctr=0,this.nonce=r.nonce,this.key=r.key,this.container=r.container,this.prepend=r.prepend,this.insertionPoint=r.insertionPoint,this.before=null}var e=t.prototype;return e.hydrate=function(n){n.forEach(this._insertTag)},e.insert=function(n){this.ctr%(this.isSpeedy?65e3:1)===0&&this._insertTag(Ybe(this));var o=this.tags[this.tags.length-1];if(this.isSpeedy){var i=Gbe(o);try{i.insertRule(n,i.cssRules.length)}catch{}}else o.appendChild(document.createTextNode(n));this.ctr++},e.flush=function(){this.tags.forEach(function(n){var o;return(o=n.parentNode)==null?void 0:o.removeChild(n)}),this.tags=[],this.ctr=0},t}()});var ho,Z1,zt,s3,Og,Mg,GW,a3,YW,l3=ue(()=>{"use strict";ho="-ms-",Z1="-moz-",zt="-webkit-",s3="comm",Og="rule",Mg="decl",GW="@import",a3="@keyframes",YW="@layer"});function JW(t,e){return un(t,0)^45?(((e<<2^un(t,0))<<2^un(t,1))<<2^un(t,2))<<2^un(t,3):0}function c3(t){return t.trim()}function P9(t,e){return(t=e.exec(t))?t[0]:t}function Rt(t,e,r){return t.replace(e,r)}function q1(t,e){return t.indexOf(e)}function un(t,e){return t.charCodeAt(e)|0}function Fu(t,e,r){return t.slice(e,r)}function Fo(t){return t.length}function Ig(t){return t.length}function kg(t,e){return e.push(t),t}function F9(t,e){return t.map(e).join("")}var ZW,Lf,qW,Rg=ue(()=>{"use strict";ZW=Math.abs,Lf=String.fromCharCode,qW=Object.assign});function J1(t,e,r,n,o,i,s){return{value:t,root:e,parent:r,type:n,props:o,children:i,line:u3,column:Pg,length:s,return:""}}function zg(t,e){return qW(J1("",null,null,"",null,null,0),t,{length:-t.length},e)}function QW(){return _n}function eG(){return _n=Bo>0?un(Bg,--Bo):0,Pg--,_n===10&&(Pg=1,u3--),_n}function zo(){return _n=Bo<XW?un(Bg,Bo++):0,Pg++,_n===10&&(Pg=1,u3++),_n}function ns(){return un(Bg,Bo)}function X1(){return Bo}function jg(t,e){return Fu(Bg,t,e)}function Fg(t){switch(t){case 0:case 9:case 10:case 13:case 32:return 5;case 33:case 43:case 44:case 47:case 62:case 64:case 126:case 59:case 123:case 125:return 4;case 58:return 3;case 34:case 39:case 40:case 91:return 2;case 41:case 93:return 1}return 0}function d3(t){return u3=Pg=1,XW=Fo(Bg=t),Bo=0,[]}function f3(t){return Bg="",t}function Vg(t){return c3(jg(Bo-1,B9(t===91?t+2:t===40?t+1:t)))}function tG(t){for(;(_n=ns())&&_n<33;)zo();return Fg(t)>2||Fg(_n)>3?"":" "}function rG(t,e){for(;--e&&zo()&&!(_n<48||_n>102||_n>57&&_n<65||_n>70&&_n<97););return jg(t,X1()+(e<6&&ns()==32&&zo()==32))}function B9(t){for(;zo();)switch(_n){case t:return Bo;case 34:case 39:t!==34&&t!==39&&B9(_n);break;case 40:t===41&&B9(t);break;case 92:zo();break}return Bo}function nG(t,e){for(;zo()&&t+_n!==57;)if(t+_n===84&&ns()===47)break;return"/*"+jg(e,Bo-1)+"*"+Lf(t===47?t:zo())}function oG(t){for(;!Fg(ns());)zo();return jg(t,Bo)}var u3,Pg,XW,Bo,_n,Bg,z9=ue(()=>{"use strict";Rg();u3=1,Pg=1,XW=0,Bo=0,_n=0,Bg=""});function j9(t){return f3(p3("",null,null,null,[""],t=d3(t),0,[0],t))}function p3(t,e,r,n,o,i,s,a,l){for(var c=0,u=0,d=s,f=0,p=0,m=0,g=1,h=1,v=1,y=0,b="",x=o,S=i,_=n,w=b;h;)switch(m=y,y=zo()){case 40:if(m!=108&&un(w,d-1)==58){q1(w+=Rt(Vg(y),"&","&\f"),"&\f")!=-1&&(v=-1);break}case 34:case 39:case 91:w+=Vg(y);break;case 9:case 10:case 13:case 32:w+=tG(m);break;case 92:w+=rG(X1()-1,7);continue;case 47:switch(ns()){case 42:case 47:kg(Zbe(nG(zo(),X1()),e,r),l);break;default:w+="/"}break;case 123*g:a[c++]=Fo(w)*v;case 125*g:case 59:case 0:switch(y){case 0:case 125:h=0;case 59+u:v==-1&&(w=Rt(w,/\f/g,"")),p>0&&Fo(w)-d&&kg(p>32?sG(w+";",n,r,d-1):sG(Rt(w," ","")+";",n,r,d-2),l);break;case 59:w+=";";default:if(kg(_=iG(w,e,r,c,u,o,a,b,x=[],S=[],d),i),y===123)if(u===0)p3(w,e,_,_,x,i,d,a,S);else switch(f===99&&un(w,3)===110?100:f){case 100:case 108:case 109:case 115:p3(t,_,_,n&&kg(iG(t,_,_,0,0,o,a,b,o,x=[],d),S),o,S,d,a,n?x:S);break;default:p3(w,_,_,_,[""],S,0,a,S)}}c=u=p=0,g=v=1,b=w="",d=s;break;case 58:d=1+Fo(w),p=m;default:if(g<1){if(y==123)--g;else if(y==125&&g++==0&&eG()==125)continue}switch(w+=Lf(y),y*g){case 38:v=u>0?1:(w+="\f",-1);break;case 44:a[c++]=(Fo(w)-1)*v,v=1;break;case 64:ns()===45&&(w+=Vg(zo())),f=ns(),u=d=Fo(b=w+=oG(X1())),y++;break;case 45:m===45&&Fo(w)==2&&(g=0)}}return i}function iG(t,e,r,n,o,i,s,a,l,c,u){for(var d=o-1,f=o===0?i:[""],p=Ig(f),m=0,g=0,h=0;m<n;++m)for(var v=0,y=Fu(t,d+1,d=ZW(g=s[m])),b=t;v<p;++v)(b=c3(g>0?f[v]+" "+y:Rt(y,/&\f/g,f[v])))&&(l[h++]=b);return J1(t,e,r,o===0?Og:a,l,c,u)}function Zbe(t,e,r){return J1(t,e,r,s3,Lf(QW()),Fu(t,2,-2),0)}function sG(t,e,r,n){return J1(t,e,r,Mg,Fu(t,0,n),Fu(t,n+1,-1),n)}var aG=ue(()=>{"use strict";l3();Rg();z9()});var lG=ue(()=>{"use strict"});function Bu(t,e){for(var r="",n=Ig(t),o=0;o<n;o++)r+=e(t[o],o,t,e)||"";return r}function V9(t,e,r,n){switch(t.type){case YW:if(t.children.length)break;case GW:case Mg:return t.return=t.return||t.value;case s3:return"";case a3:return t.return=t.value+"{"+Bu(t.children,n)+"}";case Og:t.value=t.props.join(",")}return Fo(r=Bu(t.children,n))?t.return=t.value+"{"+r+"}":""}var cG=ue(()=>{"use strict";l3();Rg()});function H9(t){var e=Ig(t);return function(r,n,o,i){for(var s="",a=0;a<e;a++)s+=t[a](r,n,o,i)||"";return s}}function uG(t){return function(e){e.root||(e=e.return)&&t(e)}}var dG=ue(()=>{"use strict";Rg()});var fG=ue(()=>{"use strict";l3();Rg();aG();lG();z9();cG();dG()});var U9,Q1=ue(()=>{"use strict";U9=function(e){var r=new WeakMap;return function(n){if(r.has(n))return r.get(n);var o=e(n);return r.set(n,o),o}}});function m3(t){var e=Object.create(null);return function(r){return e[r]===void 0&&(e[r]=t(r)),e[r]}}var K9=ue(()=>{"use strict"});function gG(t,e){switch(JW(t,e)){case 5103:return zt+"print-"+t+t;case 5737:case 4201:case 3177:case 3433:case 1641:case 4457:case 2921:case 5572:case 6356:case 5844:case 3191:case 6645:case 3005:case 6391:case 5879:case 5623:case 6135:case 4599:case 4855:case 4215:case 6389:case 5109:case 5365:case 5621:case 3829:return zt+t+t;case 5349:case 4246:case 4810:case 6968:case 2756:return zt+t+Z1+t+ho+t+t;case 6828:case 4268:return zt+t+ho+t+t;case 6165:return zt+t+ho+"flex-"+t+t;case 5187:return zt+t+Rt(t,/(\w+).+(:[^]+)/,zt+"box-$1$2"+ho+"flex-$1$2")+t;case 5443:return zt+t+ho+"flex-item-"+Rt(t,/flex-|-self/,"")+t;case 4675:return zt+t+ho+"flex-line-pack"+Rt(t,/align-content|flex-|-self/,"")+t;case 5548:return zt+t+ho+Rt(t,"shrink","negative")+t;case 5292:return zt+t+ho+Rt(t,"basis","preferred-size")+t;case 6060:return zt+"box-"+Rt(t,"-grow","")+zt+t+ho+Rt(t,"grow","positive")+t;case 4554:return zt+Rt(t,/([^-])(transform)/g,"$1"+zt+"$2")+t;case 6187:return Rt(Rt(Rt(t,/(zoom-|grab)/,zt+"$1"),/(image-set)/,zt+"$1"),t,"")+t;case 5495:case 3959:return Rt(t,/(image-set\([^]*)/,zt+"$1$`$1");case 4968:return Rt(Rt(t,/(.+:)(flex-)?(.*)/,zt+"box-pack:$3"+ho+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+zt+t+t;case 4095:case 3583:case 4068:case 2532:return Rt(t,/(.+)-inline(.+)/,zt+"$1$2")+t;case 8116:case 7059:case 5753:case 5535:case 5445:case 5701:case 4933:case 4677:case 5533:case 5789:case 5021:case 4765:if(Fo(t)-1-e>6)switch(un(t,e+1)){case 109:if(un(t,e+4)!==45)break;case 102:return Rt(t,/(.+:)(.+)-([^]+)/,"$1"+zt+"$2-$3$1"+Z1+(un(t,e+3)==108?"$3":"$2-$3"))+t;case 115:return~q1(t,"stretch")?gG(Rt(t,"stretch","fill-available"),e)+t:t}break;case 4949:if(un(t,e+1)!==115)break;case 6444:switch(un(t,Fo(t)-3-(~q1(t,"!important")&&10))){case 107:return Rt(t,":",":"+zt)+t;case 101:return Rt(t,/(.+:)([^;!]+)(;|!.+)?/,"$1"+zt+(un(t,14)===45?"inline-":"")+"box$3$1"+zt+"$2$3$1"+ho+"$2box$3")+t}break;case 5936:switch(un(t,e+11)){case 114:return zt+t+ho+Rt(t,/[svh]\w+-[tblr]{2}/,"tb")+t;case 108:return zt+t+ho+Rt(t,/[svh]\w+-[tblr]{2}/,"tb-rl")+t;case 45:return zt+t+ho+Rt(t,/[svh]\w+-[tblr]{2}/,"lr")+t}return zt+t+ho+t+t}return t}var W9,qbe,Jbe,Xbe,pG,Qbe,exe,txe,mG,rxe,ev,Hg=ue(()=>{"use strict";WW();fG();Q1();K9();W9=typeof document<"u",qbe=function(e,r,n){for(var o=0,i=0;o=i,i=ns(),o===38&&i===12&&(r[n]=1),!Fg(i);)zo();return jg(e,Bo)},Jbe=function(e,r){var n=-1,o=44;do switch(Fg(o)){case 0:o===38&&ns()===12&&(r[n]=1),e[n]+=qbe(Bo-1,r,n);break;case 2:e[n]+=Vg(o);break;case 4:if(o===44){e[++n]=ns()===58?"&\f":"",r[n]=e[n].length;break}default:e[n]+=Lf(o)}while(o=zo());return e},Xbe=function(e,r){return f3(Jbe(d3(e),r))},pG=new WeakMap,Qbe=function(e){if(!(e.type!=="rule"||!e.parent||e.length<1)){for(var r=e.value,n=e.parent,o=e.column===n.column&&e.line===n.line;n.type!=="rule";)if(n=n.parent,!n)return;if(!(e.props.length===1&&r.charCodeAt(0)!==58&&!pG.get(n))&&!o){pG.set(e,!0);for(var i=[],s=Xbe(r,i),a=n.props,l=0,c=0;l<s.length;l++)for(var u=0;u<a.length;u++,c++)e.props[c]=i[l]?s[l].replace(/&\f/g,a[u]):a[u]+" "+s[l]}}},exe=function(e){if(e.type==="decl"){var r=e.value;r.charCodeAt(0)===108&&r.charCodeAt(2)===98&&(e.return="",e.value="")}};txe=function(e,r,n,o){if(e.length>-1&&!e.return)switch(e.type){case Mg:e.return=gG(e.value,e.length);break;case a3:return Bu([zg(e,{value:Rt(e.value,"@","@"+zt)})],o);case Og:if(e.length)return F9(e.props,function(i){switch(P9(i,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return Bu([zg(e,{props:[Rt(i,/:(read-\w+)/,":"+Z1+"$1")]})],o);case"::placeholder":return Bu([zg(e,{props:[Rt(i,/:(plac\w+)/,":"+zt+"input-$1")]}),zg(e,{props:[Rt(i,/:(plac\w+)/,":"+Z1+"$1")]}),zg(e,{props:[Rt(i,/:(plac\w+)/,ho+"input-$1")]})],o)}return""})}},mG=W9?void 0:U9(function(){return m3(function(){return{}})}),rxe=[txe],ev=function(e){var r=e.key;if(W9&&r==="css"){var n=document.querySelectorAll("style[data-emotion]:not([data-s])");Array.prototype.forEach.call(n,function(x){var S=x.getAttribute("data-emotion");S.indexOf(" ")!==-1&&(document.head.appendChild(x),x.setAttribute("data-s",""))})}var o=e.stylisPlugins||rxe,i={},s,a=[];W9&&(s=e.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+r+' "]'),function(x){for(var S=x.getAttribute("data-emotion").split(" "),_=1;_<S.length;_++)i[S[_]]=!0;a.push(x)}));var l,c=[Qbe,exe];if(mG){var m=[V9],g=H9(c.concat(o,m)),h=function(S){return Bu(j9(S),g)},v=mG(o)(r),y=function(S,_){var w=_.name;return v[w]===void 0&&(v[w]=h(S?S+"{"+_.styles+"}":_.styles)),v[w]};l=function(S,_,w,T){var N=_.name,$=y(S,_);if(b.compat===void 0)return T&&(b.inserted[N]=!0),$;if(T)b.inserted[N]=$;else return $}}else{var u,d=[V9,uG(function(x){u.insert(x)})],f=H9(c.concat(o,d)),p=function(S){return Bu(j9(S),f)};l=function(S,_,w,T){u=w,p(S?S+"{"+_.styles+"}":_.styles),T&&(b.inserted[_.name]=!0)}}var b={key:r,sheet:new KW({key:r,container:s,nonce:e.nonce,speedy:e.speedy,prepend:e.prepend,insertionPoint:e.insertionPoint}),nonce:e.nonce,inserted:i,registered:{},insert:l};return b.sheet.hydrate(a),b}});var hG=ue(()=>{"use strict"});var yG=Ee(dr=>{"use strict";var Qn=typeof Symbol=="function"&&Symbol.for,G9=Qn?Symbol.for("react.element"):60103,Y9=Qn?Symbol.for("react.portal"):60106,g3=Qn?Symbol.for("react.fragment"):60107,h3=Qn?Symbol.for("react.strict_mode"):60108,v3=Qn?Symbol.for("react.profiler"):60114,y3=Qn?Symbol.for("react.provider"):60109,b3=Qn?Symbol.for("react.context"):60110,Z9=Qn?Symbol.for("react.async_mode"):60111,x3=Qn?Symbol.for("react.concurrent_mode"):60111,C3=Qn?Symbol.for("react.forward_ref"):60112,S3=Qn?Symbol.for("react.suspense"):60113,nxe=Qn?Symbol.for("react.suspense_list"):60120,_3=Qn?Symbol.for("react.memo"):60115,w3=Qn?Symbol.for("react.lazy"):60116,oxe=Qn?Symbol.for("react.block"):60121,ixe=Qn?Symbol.for("react.fundamental"):60117,sxe=Qn?Symbol.for("react.responder"):60118,axe=Qn?Symbol.for("react.scope"):60119;function Di(t){if(typeof t=="object"&&t!==null){var e=t.$$typeof;switch(e){case G9:switch(t=t.type,t){case Z9:case x3:case g3:case v3:case h3:case S3:return t;default:switch(t=t&&t.$$typeof,t){case b3:case C3:case w3:case _3:case y3:return t;default:return e}}case Y9:return e}}}function vG(t){return Di(t)===x3}dr.AsyncMode=Z9;dr.ConcurrentMode=x3;dr.ContextConsumer=b3;dr.ContextProvider=y3;dr.Element=G9;dr.ForwardRef=C3;dr.Fragment=g3;dr.Lazy=w3;dr.Memo=_3;dr.Portal=Y9;dr.Profiler=v3;dr.StrictMode=h3;dr.Suspense=S3;dr.isAsyncMode=function(t){return vG(t)||Di(t)===Z9};dr.isConcurrentMode=vG;dr.isContextConsumer=function(t){return Di(t)===b3};dr.isContextProvider=function(t){return Di(t)===y3};dr.isElement=function(t){return typeof t=="object"&&t!==null&&t.$$typeof===G9};dr.isForwardRef=function(t){return Di(t)===C3};dr.isFragment=function(t){return Di(t)===g3};dr.isLazy=function(t){return Di(t)===w3};dr.isMemo=function(t){return Di(t)===_3};dr.isPortal=function(t){return Di(t)===Y9};dr.isProfiler=function(t){return Di(t)===v3};dr.isStrictMode=function(t){return Di(t)===h3};dr.isSuspense=function(t){return Di(t)===S3};dr.isValidElementType=function(t){return typeof t=="string"||typeof t=="function"||t===g3||t===x3||t===v3||t===h3||t===S3||t===nxe||typeof t=="object"&&t!==null&&(t.$$typeof===w3||t.$$typeof===_3||t.$$typeof===y3||t.$$typeof===b3||t.$$typeof===C3||t.$$typeof===ixe||t.$$typeof===sxe||t.$$typeof===axe||t.$$typeof===oxe)};dr.typeOf=Di});var bG=Ee(fr=>{"use strict";process.env.NODE_ENV!=="production"&&function(){"use strict";var t=typeof Symbol=="function"&&Symbol.for,e=t?Symbol.for("react.element"):60103,r=t?Symbol.for("react.portal"):60106,n=t?Symbol.for("react.fragment"):60107,o=t?Symbol.for("react.strict_mode"):60108,i=t?Symbol.for("react.profiler"):60114,s=t?Symbol.for("react.provider"):60109,a=t?Symbol.for("react.context"):60110,l=t?Symbol.for("react.async_mode"):60111,c=t?Symbol.for("react.concurrent_mode"):60111,u=t?Symbol.for("react.forward_ref"):60112,d=t?Symbol.for("react.suspense"):60113,f=t?Symbol.for("react.suspense_list"):60120,p=t?Symbol.for("react.memo"):60115,m=t?Symbol.for("react.lazy"):60116,g=t?Symbol.for("react.block"):60121,h=t?Symbol.for("react.fundamental"):60117,v=t?Symbol.for("react.responder"):60118,y=t?Symbol.for("react.scope"):60119;function b(ne){return typeof ne=="string"||typeof ne=="function"||ne===n||ne===c||ne===i||ne===o||ne===d||ne===f||typeof ne=="object"&&ne!==null&&(ne.$$typeof===m||ne.$$typeof===p||ne.$$typeof===s||ne.$$typeof===a||ne.$$typeof===u||ne.$$typeof===h||ne.$$typeof===v||ne.$$typeof===y||ne.$$typeof===g)}function x(ne){if(typeof ne=="object"&&ne!==null){var Fe=ne.$$typeof;switch(Fe){case e:var pt=ne.type;switch(pt){case l:case c:case n:case i:case o:case d:return pt;default:var rt=pt&&pt.$$typeof;switch(rt){case a:case u:case m:case p:case s:return rt;default:return Fe}}case r:return Fe}}}var S=l,_=c,w=a,T=s,N=e,$=u,E=n,R=m,O=p,A=r,B=i,D=o,F=d,P=!1;function z(ne){return P||(P=!0,console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 17+. Update your code to use ReactIs.isConcurrentMode() instead. It has the exact same API.")),j(ne)||x(ne)===l}function j(ne){return x(ne)===c}function I(ne){return x(ne)===a}function Y(ne){return x(ne)===s}function te(ne){return typeof ne=="object"&&ne!==null&&ne.$$typeof===e}function fe(ne){return x(ne)===u}function xe(ne){return x(ne)===n}function Ze(ne){return x(ne)===m}function Ae(ne){return x(ne)===p}function pe(ne){return x(ne)===r}function Me(ne){return x(ne)===i}function Z(ne){return x(ne)===o}function Ce(ne){return x(ne)===d}fr.AsyncMode=S,fr.ConcurrentMode=_,fr.ContextConsumer=w,fr.ContextProvider=T,fr.Element=N,fr.ForwardRef=$,fr.Fragment=E,fr.Lazy=R,fr.Memo=O,fr.Portal=A,fr.Profiler=B,fr.StrictMode=D,fr.Suspense=F,fr.isAsyncMode=z,fr.isConcurrentMode=j,fr.isContextConsumer=I,fr.isContextProvider=Y,fr.isElement=te,fr.isForwardRef=fe,fr.isFragment=xe,fr.isLazy=Ze,fr.isMemo=Ae,fr.isPortal=pe,fr.isProfiler=Me,fr.isStrictMode=Z,fr.isSuspense=Ce,fr.isValidElementType=b,fr.typeOf=x}()});var xG=Ee((gje,q9)=>{"use strict";process.env.NODE_ENV==="production"?q9.exports=yG():q9.exports=bG()});var Q9=Ee((hje,TG)=>{"use strict";var J9=xG(),lxe={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},cxe={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},uxe={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},wG={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},X9={};X9[J9.ForwardRef]=uxe;X9[J9.Memo]=wG;function CG(t){return J9.isMemo(t)?wG:X9[t.$$typeof]||lxe}var dxe=Object.defineProperty,fxe=Object.getOwnPropertyNames,SG=Object.getOwnPropertySymbols,pxe=Object.getOwnPropertyDescriptor,mxe=Object.getPrototypeOf,_G=Object.prototype;function EG(t,e,r){if(typeof e!="string"){if(_G){var n=mxe(e);n&&n!==_G&&EG(t,n,r)}var o=fxe(e);SG&&(o=o.concat(SG(e)));for(var i=CG(t),s=CG(e),a=0;a<o.length;++a){var l=o[a];if(!cxe[l]&&!(r&&r[l])&&!(s&&s[l])&&!(i&&i[l])){var c=pxe(e,l);try{dxe(t,l,c)}catch{}}}}return t}TG.exports=EG});function Ug(t,e,r){var n="";return r.split(" ").forEach(function(o){t[o]!==void 0?e.push(t[o]+";"):o&&(n+=o+" ")}),n}var eN,E3,tv,Kg=ue(()=>{"use strict";eN=typeof document<"u";E3=function(e,r,n){var o=e.key+"-"+r.name;(n===!1||eN===!1&&e.compat!==void 0)&&e.registered[o]===void 0&&(e.registered[o]=r.styles)},tv=function(e,r,n){E3(e,r,n);var o=e.key+"-"+r.name;if(e.inserted[r.name]===void 0){var i="",s=r;do{var a=e.insert(r===s?"."+o:"",s,e.sheet,!0);!eN&&a!==void 0&&(i+=a),s=s.next}while(s!==void 0);if(!eN&&i.length!==0)return i}}});function $G(t){for(var e=0,r,n=0,o=t.length;o>=4;++n,o-=4)r=t.charCodeAt(n)&255|(t.charCodeAt(++n)&255)<<8|(t.charCodeAt(++n)&255)<<16|(t.charCodeAt(++n)&255)<<24,r=(r&65535)*1540483477+((r>>>16)*59797<<16),r^=r>>>24,e=(r&65535)*1540483477+((r>>>16)*59797<<16)^(e&65535)*1540483477+((e>>>16)*59797<<16);switch(o){case 3:e^=(t.charCodeAt(n+2)&255)<<16;case 2:e^=(t.charCodeAt(n+1)&255)<<8;case 1:e^=t.charCodeAt(n)&255,e=(e&65535)*1540483477+((e>>>16)*59797<<16)}return e^=e>>>13,e=(e&65535)*1540483477+((e>>>16)*59797<<16),((e^e>>>15)>>>0).toString(36)}var NG=ue(()=>{"use strict"});var DG,LG=ue(()=>{"use strict";DG={animationIterationCount:1,aspectRatio:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,scale:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1}});function rv(t,e,r){if(r==null)return"";var n=r;if(n.__emotion_styles!==void 0)return n;switch(typeof r){case"boolean":return"";case"object":{var o=r;if(o.anim===1)return Ka={name:o.name,styles:o.styles,next:Ka},o.name;var i=r;if(i.styles!==void 0){var s=i.next;if(s!==void 0)for(;s!==void 0;)Ka={name:s.name,styles:s.styles,next:Ka},s=s.next;var a=i.styles+";";return a}return bxe(t,e,r)}case"function":{if(t!==void 0){var l=Ka,c=r(t);return Ka=l,rv(t,e,c)}break}}var u=r;if(e==null)return u;var d=e[u];return d!==void 0?d:u}function bxe(t,e,r){var n="";if(Array.isArray(r))for(var o=0;o<r.length;o++)n+=rv(t,e,r[o])+";";else for(var i in r){var s=r[i];if(typeof s!="object"){var a=s;e!=null&&e[a]!==void 0?n+=i+"{"+e[a]+"}":AG(a)&&(n+=tN(i)+":"+OG(i,a)+";")}else{if(i==="NO_COMPONENT_SELECTOR"&&gxe)throw new Error(yxe);if(Array.isArray(s)&&typeof s[0]=="string"&&(e==null||e[s[0]]===void 0))for(var l=0;l<s.length;l++)AG(s[l])&&(n+=tN(i)+":"+OG(i,s[l])+";");else{var c=rv(t,e,s);switch(i){case"animation":case"animationName":{n+=tN(i)+":"+c+";";break}default:n+=i+"{"+c+"}"}}}}return n}function zu(t,e,r){if(t.length===1&&typeof t[0]=="object"&&t[0]!==null&&t[0].styles!==void 0)return t[0];var n=!0,o="";Ka=void 0;var i=t[0];if(i==null||i.raw===void 0)n=!1,o+=rv(r,e,i);else{var s=i;o+=s[0]}for(var a=1;a<t.length;a++)if(o+=rv(r,e,t[a]),n){var l=i;o+=l[a]}MG.lastIndex=0;for(var c="",u;(u=MG.exec(o))!==null;)c+="-"+u[1];var d=$G(o)+c;return{name:d,styles:o,next:Ka}}var gxe,hxe,vxe,IG,AG,tN,OG,yxe,MG,Ka,Wg=ue(()=>{"use strict";NG();LG();K9();gxe=!1,hxe=/[A-Z]|^ms/g,vxe=/_EMO_([^_]+?)_([^]*?)_EMO_/g,IG=function(e){return e.charCodeAt(1)===45},AG=function(e){return e!=null&&typeof e!="boolean"},tN=m3(function(t){return IG(t)?t:t.replace(hxe,"-$&").toLowerCase()}),OG=function(e,r){switch(e){case"animation":case"animationName":if(typeof r=="string")return r.replace(vxe,function(n,o,i){return Ka={name:o,styles:i,next:Ka},o})}return DG[e]!==1&&!IG(e)&&typeof r=="number"&&r!==0?r+"px":r},yxe="Component selectors can only be used in conjunction with @emotion/babel-plugin, the swc Emotion plugin, or another Emotion-aware compiler transform.";MG=/label:\s*([^\s;{]+)\s*(;|$)/g});var T3,xxe,kG,Cxe,rN,$3=ue(()=>{"use strict";T3=k(K()),xxe=typeof document<"u",kG=function(e){return e()},Cxe=T3.useInsertionEffect?T3.useInsertionEffect:!1,rN=xxe&&Cxe||kG});var fi,nv,RG,oN,N3,Oje,iN,PG,Af,nN,ov,Sxe,_xe,iv,sN=ue(()=>{"use strict";fi=k(K()),nv=k(K());Hg();hG();Q1();Kg();Wg();$3();RG=!1,oN=typeof document<"u",N3=fi.createContext(typeof HTMLElement<"u"?ev({key:"css"}):null),Oje=N3.Provider,iN=function(e){return(0,nv.forwardRef)(function(r,n){var o=(0,nv.useContext)(N3);return e(r,o,n)})};oN||(iN=function(e){return function(r){var n=(0,nv.useContext)(N3);return n===null?(n=ev({key:"css"}),fi.createElement(N3.Provider,{value:n},e(r,n))):e(r,n)}});PG=fi.createContext({}),Af={}.hasOwnProperty,nN="__EMOTION_TYPE_PLEASE_DO_NOT_USE__",ov=function(e,r){var n={};for(var o in r)Af.call(r,o)&&(n[o]=r[o]);return n[nN]=e,n},Sxe=function(e){var r=e.cache,n=e.serialized,o=e.isStringTag;E3(r,n,o);var i=rN(function(){return tv(r,n,o)});if(!oN&&i!==void 0){for(var s,a=n.name,l=n.next;l!==void 0;)a+=" "+l.name,l=l.next;return fi.createElement("style",(s={},s["data-emotion"]=r.key+" "+a,s.dangerouslySetInnerHTML={__html:i},s.nonce=r.sheet.nonce,s))}return null},_xe=iN(function(t,e,r){var n=t.css;typeof n=="string"&&e.registered[n]!==void 0&&(n=e.registered[n]);var o=t[nN],i=[n],s="";typeof t.className=="string"?s=Ug(e.registered,i,t.className):t.className!=null&&(s=t.className+" ");var a=zu(i,void 0,fi.useContext(PG));s+=e.key+"-"+a.name;var l={};for(var c in t)Af.call(t,c)&&c!=="css"&&c!==nN&&!RG&&(l[c]=t[c]);return l.className=s,r&&(l.ref=r),fi.createElement(fi.Fragment,null,fi.createElement(Sxe,{cache:e,serialized:a,isStringTag:typeof o=="string"}),fi.createElement(o,l))}),iv=_xe});var lN=Ee((Ije,Zl)=>{"use strict";function aN(){return Zl.exports=aN=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var n in r)({}).hasOwnProperty.call(r,n)&&(t[n]=r[n])}return t},Zl.exports.__esModule=!0,Zl.exports.default=Zl.exports,aN.apply(null,arguments)}Zl.exports=aN,Zl.exports.__esModule=!0,Zl.exports.default=Zl.exports});function C(){for(var t=arguments.length,e=new Array(t),r=0;r<t;r++)e[r]=arguments[r];return zu(e)}function tn(){var t=C.apply(void 0,arguments),e="animation-"+t.name;return{name:e,styles:"@keyframes "+e+"{"+t.styles+"}",anim:1,toString:function(){return"_EMO_"+this.name+"_"+this.styles+"_EMO_"}}}var Gg,jje,Hje,FG,re=ue(()=>{"use strict";sN();Gg=k(K());Kg();$3();Wg();Hg();jje=k(lN());Q1();Hje=k(Q9()),FG=function(e,r){var n=arguments;if(r==null||!Af.call(r,"css"))return Gg.createElement.apply(void 0,n);var o=n.length,i=new Array(o);i[0]=iv,i[1]=ov(e,r);for(var s=2;s<o;s++)i[s]=n[s];return Gg.createElement.apply(null,i)};(function(t){var e;e||(e=t.JSX||(t.JSX={}))})(FG||(FG={}))});var zG=Ee(D3=>{"use strict";var wxe=Symbol.for("react.transitional.element"),Exe=Symbol.for("react.fragment");function BG(t,e,r){var n=null;if(r!==void 0&&(n=""+r),e.key!==void 0&&(n=""+e.key),"key"in e){r={};for(var o in e)o!=="key"&&(r[o]=e[o])}else r=e;return e=r.ref,{$$typeof:wxe,type:t,key:n,ref:e!==void 0?e:null,props:r}}D3.Fragment=Exe;D3.jsx=BG;D3.jsxs=BG});var jG=Ee(L3=>{"use strict";process.env.NODE_ENV!=="production"&&function(){function t(I){if(I==null)return null;if(typeof I=="function")return I.$$typeof===E?null:I.displayName||I.name||null;if(typeof I=="string")return I;switch(I){case h:return"Fragment";case y:return"Profiler";case v:return"StrictMode";case _:return"Suspense";case w:return"SuspenseList";case $:return"Activity"}if(typeof I=="object")switch(typeof I.tag=="number"&&console.error("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),I.$$typeof){case g:return"Portal";case x:return I.displayName||"Context";case b:return(I._context.displayName||"Context")+".Consumer";case S:var Y=I.render;return I=I.displayName,I||(I=Y.displayName||Y.name||"",I=I!==""?"ForwardRef("+I+")":"ForwardRef"),I;case T:return Y=I.displayName||null,Y!==null?Y:t(I.type)||"Memo";case N:Y=I._payload,I=I._init;try{return t(I(Y))}catch{}}return null}function e(I){return""+I}function r(I){try{e(I);var Y=!1}catch{Y=!0}if(Y){Y=console;var te=Y.error,fe=typeof Symbol=="function"&&Symbol.toStringTag&&I[Symbol.toStringTag]||I.constructor.name||"Object";return te.call(Y,"The provided key is an unsupported type %s. This value must be coerced to a string before using it here.",fe),e(I)}}function n(I){if(I===h)return"<>";if(typeof I=="object"&&I!==null&&I.$$typeof===N)return"<...>";try{var Y=t(I);return Y?"<"+Y+">":"<...>"}catch{return"<...>"}}function o(){var I=R.A;return I===null?null:I.getOwner()}function i(){return Error("react-stack-top-frame")}function s(I){if(O.call(I,"key")){var Y=Object.getOwnPropertyDescriptor(I,"key").get;if(Y&&Y.isReactWarning)return!1}return I.key!==void 0}function a(I,Y){function te(){D||(D=!0,console.error("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://react.dev/link/special-props)",Y))}te.isReactWarning=!0,Object.defineProperty(I,"key",{get:te,configurable:!0})}function l(){var I=t(this.type);return F[I]||(F[I]=!0,console.error("Accessing element.ref was removed in React 19. ref is now a regular prop. It will be removed from the JSX Element type in a future release.")),I=this.props.ref,I!==void 0?I:null}function c(I,Y,te,fe,xe,Ze){var Ae=te.ref;return I={$$typeof:m,type:I,key:Y,props:te,_owner:fe},(Ae!==void 0?Ae:null)!==null?Object.defineProperty(I,"ref",{enumerable:!1,get:l}):Object.defineProperty(I,"ref",{enumerable:!1,value:null}),I._store={},Object.defineProperty(I._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:0}),Object.defineProperty(I,"_debugInfo",{configurable:!1,enumerable:!1,writable:!0,value:null}),Object.defineProperty(I,"_debugStack",{configurable:!1,enumerable:!1,writable:!0,value:xe}),Object.defineProperty(I,"_debugTask",{configurable:!1,enumerable:!1,writable:!0,value:Ze}),Object.freeze&&(Object.freeze(I.props),Object.freeze(I)),I}function u(I,Y,te,fe,xe,Ze){var Ae=Y.children;if(Ae!==void 0)if(fe)if(A(Ae)){for(fe=0;fe<Ae.length;fe++)d(Ae[fe]);Object.freeze&&Object.freeze(Ae)}else console.error("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");else d(Ae);if(O.call(Y,"key")){Ae=t(I);var pe=Object.keys(Y).filter(function(Z){return Z!=="key"});fe=0<pe.length?"{key: someKey, "+pe.join(": ..., ")+": ...}":"{key: someKey}",j[Ae+fe]||(pe=0<pe.length?"{"+pe.join(": ..., ")+": ...}":"{}",console.error(`A props object containing a "key" prop is being spread into JSX:
|
|
63
|
+
See https://react.dev/link/invalid-hook-call for tips about how to debug and fix this problem.`),L}function E(){X.asyncTransitions--}function R(L){if(ax===null)try{var W=("require"+Math.random()).slice(0,7);ax=(r3&&r3[W]).call(r3,"timers").setImmediate}catch{ax=function(ge){OI===!1&&(OI=!0,typeof MessageChannel>"u"&&console.error("This browser does not have a MessageChannel implementation, so enqueuing tasks via await act(async () => ...) will fail. Please file an issue at https://github.com/facebook/react/issues if you encounter this warning."));var Re=new MessageChannel;Re.port1.onmessage=ge,Re.port2.postMessage(void 0)}}return ax(L)}function O(L){return 1<L.length&&typeof AggregateError=="function"?new AggregateError(L):L[0]}function A(L,W){W!==lx-1&&console.error("You seem to have overlapping act() calls, this is not supported. Be sure to await previous act() calls before making a new one. "),lx=W}function B(L,W,le){var ge=X.actQueue;if(ge!==null)if(ge.length!==0)try{D(ge),R(function(){return B(L,W,le)});return}catch(Re){X.thrownErrors.push(Re)}else X.actQueue=null;0<X.thrownErrors.length?(ge=O(X.thrownErrors),X.thrownErrors.length=0,le(ge)):W(L)}function D(L){if(!HE){HE=!0;var W=0;try{for(;W<L.length;W++){var le=L[W];do{X.didUsePromise=!1;var ge=le(!1);if(ge!==null){if(X.didUsePromise){L[W]=le,L.splice(0,W);return}le=ge}else break}while(!0)}L.length=0}catch(Re){L.splice(0,W+1),X.thrownErrors.push(Re)}finally{HE=!1}}}typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(Error());var F=Symbol.for("react.transitional.element"),P=Symbol.for("react.portal"),z=Symbol.for("react.fragment"),j=Symbol.for("react.strict_mode"),I=Symbol.for("react.profiler"),Y=Symbol.for("react.consumer"),te=Symbol.for("react.context"),fe=Symbol.for("react.forward_ref"),xe=Symbol.for("react.suspense"),Ze=Symbol.for("react.suspense_list"),Ae=Symbol.for("react.memo"),pe=Symbol.for("react.lazy"),Me=Symbol.for("react.activity"),Z=Symbol.iterator,Ce={},ne={isMounted:function(){return!1},enqueueForceUpdate:function(L){r(L,"forceUpdate")},enqueueReplaceState:function(L){r(L,"replaceState")},enqueueSetState:function(L){r(L,"setState")}},Fe=Object.assign,pt={};Object.freeze(pt),n.prototype.isReactComponent={},n.prototype.setState=function(L,W){if(typeof L!="object"&&typeof L!="function"&&L!=null)throw Error("takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,L,W,"setState")},n.prototype.forceUpdate=function(L){this.updater.enqueueForceUpdate(this,L,"forceUpdate")};var rt={isMounted:["isMounted","Instead, make sure to clean up subscriptions and pending requests in componentWillUnmount to prevent memory leaks."],replaceState:["replaceState","Refactor your code to use setState instead (see https://github.com/facebook/react/issues/3236)."]};for(T0 in rt)rt.hasOwnProperty(T0)&&t(T0,rt[T0]);o.prototype=n.prototype,rt=i.prototype=new o,rt.constructor=i,Fe(rt,n.prototype),rt.isPureReactComponent=!0;var it=Array.isArray,fo=Symbol.for("react.client.reference"),X={H:null,A:null,T:null,S:null,actQueue:null,asyncTransitions:0,isBatchingLegacy:!1,didScheduleLegacyUpdate:!1,didUsePromise:!1,thrownErrors:[],getCurrentStack:null,recentlyCreatedOwnerStacks:0},He=Object.prototype.hasOwnProperty,Ot=console.createTask?console.createTask:function(){return null};rt={react_stack_bottom_frame:function(L){return L()}};var nt,Zr,Mo={},Ad=rt.react_stack_bottom_frame.bind(rt,f)(),Fp=Ot(u(f)),E0=!1,LI=/\/+/g,AI=typeof reportError=="function"?reportError:function(L){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var W=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof L=="object"&&L!==null&&typeof L.message=="string"?String(L.message):String(L),error:L});if(!window.dispatchEvent(W))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",L);return}console.error(L)},OI=!1,ax=null,lx=0,cx=!1,HE=!1,MI=typeof queueMicrotask=="function"?function(L){queueMicrotask(function(){return queueMicrotask(L)})}:R;rt=Object.freeze({__proto__:null,c:function(L){return $().useMemoCache(L)}});var T0={map:T,forEach:function(L,W,le){T(L,function(){W.apply(this,arguments)},le)},count:function(L){var W=0;return T(L,function(){W++}),W},toArray:function(L){return T(L,function(W){return W})||[]},only:function(L){if(!b(L))throw Error("React.Children.only expected to receive a single React element child.");return L}};tt.Activity=Me,tt.Children=T0,tt.Component=n,tt.Fragment=z,tt.Profiler=I,tt.PureComponent=i,tt.StrictMode=j,tt.Suspense=xe,tt.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=X,tt.__COMPILER_RUNTIME=rt,tt.act=function(L){var W=X.actQueue,le=lx;lx++;var ge=X.actQueue=W!==null?W:[],Re=!1;try{var St=L()}catch(_t){X.thrownErrors.push(_t)}if(0<X.thrownErrors.length)throw A(W,le),L=O(X.thrownErrors),X.thrownErrors.length=0,L;if(St!==null&&typeof St=="object"&&typeof St.then=="function"){var mt=St;return MI(function(){Re||cx||(cx=!0,console.error("You called act(async () => ...) without await. This could lead to unexpected testing behaviour, interleaving multiple act calls and mixing their scopes. You should - await act(async () => ...);"))}),{then:function(_t,$c){Re=!0,mt.then(function(Bp){if(A(W,le),le===0){try{D(ge),R(function(){return B(Bp,_t,$c)})}catch(Nae){X.thrownErrors.push(Nae)}if(0<X.thrownErrors.length){var $ae=O(X.thrownErrors);X.thrownErrors.length=0,$c($ae)}}else _t(Bp)},function(Bp){A(W,le),0<X.thrownErrors.length&&(Bp=O(X.thrownErrors),X.thrownErrors.length=0),$c(Bp)})}}}var Sr=St;if(A(W,le),le===0&&(D(ge),ge.length!==0&&MI(function(){Re||cx||(cx=!0,console.error("A component suspended inside an `act` scope, but the `act` call was not awaited. When testing React components that depend on asynchronous data, you must await the result:\n\nawait act(() => ...)"))}),X.actQueue=null),0<X.thrownErrors.length)throw L=O(X.thrownErrors),X.thrownErrors.length=0,L;return{then:function(_t,$c){Re=!0,le===0?(X.actQueue=ge,R(function(){return B(Sr,_t,$c)})):_t(Sr)}}},tt.cache=function(L){return function(){return L.apply(null,arguments)}},tt.cacheSignal=function(){return null},tt.captureOwnerStack=function(){var L=X.getCurrentStack;return L===null?null:L()},tt.cloneElement=function(L,W,le){if(L==null)throw Error("The argument must be a React element, but you passed "+L+".");var ge=Fe({},L.props),Re=L.key,St=L._owner;if(W!=null){var mt;e:{if(He.call(W,"ref")&&(mt=Object.getOwnPropertyDescriptor(W,"ref").get)&&mt.isReactWarning){mt=!1;break e}mt=W.ref!==void 0}mt&&(St=d()),p(W)&&(l(W.key),Re=""+W.key);for(Sr in W)!He.call(W,Sr)||Sr==="key"||Sr==="__self"||Sr==="__source"||Sr==="ref"&&W.ref===void 0||(ge[Sr]=W[Sr])}var Sr=arguments.length-2;if(Sr===1)ge.children=le;else if(1<Sr){mt=Array(Sr);for(var _t=0;_t<Sr;_t++)mt[_t]=arguments[_t+2];ge.children=mt}for(ge=h(L.type,Re,ge,St,L._debugStack,L._debugTask),Re=2;Re<arguments.length;Re++)y(arguments[Re]);return ge},tt.createContext=function(L){return L={$$typeof:te,_currentValue:L,_currentValue2:L,_threadCount:0,Provider:null,Consumer:null},L.Provider=L,L.Consumer={$$typeof:Y,_context:L},L._currentRenderer=null,L._currentRenderer2=null,L},tt.createElement=function(L,W,le){for(var ge=2;ge<arguments.length;ge++)y(arguments[ge]);ge={};var Re=null;if(W!=null)for(_t in Zr||!("__self"in W)||"key"in W||(Zr=!0,console.warn("Your app (or one of its dependencies) is using an outdated JSX transform. Update to the modern JSX transform for faster performance: https://react.dev/link/new-jsx-transform")),p(W)&&(l(W.key),Re=""+W.key),W)He.call(W,_t)&&_t!=="key"&&_t!=="__self"&&_t!=="__source"&&(ge[_t]=W[_t]);var St=arguments.length-2;if(St===1)ge.children=le;else if(1<St){for(var mt=Array(St),Sr=0;Sr<St;Sr++)mt[Sr]=arguments[Sr+2];Object.freeze&&Object.freeze(mt),ge.children=mt}if(L&&L.defaultProps)for(_t in St=L.defaultProps,St)ge[_t]===void 0&&(ge[_t]=St[_t]);Re&&m(ge,typeof L=="function"?L.displayName||L.name||"Unknown":L);var _t=1e4>X.recentlyCreatedOwnerStacks++;return h(L,Re,ge,d(),_t?Error("react-stack-top-frame"):Ad,_t?Ot(u(L)):Fp)},tt.createRef=function(){var L={current:null};return Object.seal(L),L},tt.forwardRef=function(L){L!=null&&L.$$typeof===Ae?console.error("forwardRef requires a render function but received a `memo` component. Instead of forwardRef(memo(...)), use memo(forwardRef(...))."):typeof L!="function"?console.error("forwardRef requires a render function but was given %s.",L===null?"null":typeof L):L.length!==0&&L.length!==2&&console.error("forwardRef render functions accept exactly two parameters: props and ref. %s",L.length===1?"Did you forget to use the ref parameter?":"Any additional parameter will be undefined."),L!=null&&L.defaultProps!=null&&console.error("forwardRef render functions do not support defaultProps. Did you accidentally pass a React component?");var W={$$typeof:fe,render:L},le;return Object.defineProperty(W,"displayName",{enumerable:!1,configurable:!0,get:function(){return le},set:function(ge){le=ge,L.name||L.displayName||(Object.defineProperty(L,"name",{value:ge}),L.displayName=ge)}}),W},tt.isValidElement=b,tt.lazy=function(L){L={_status:-1,_result:L};var W={$$typeof:pe,_payload:L,_init:N},le={name:"lazy",start:-1,end:-1,value:null,owner:null,debugStack:Error("react-stack-top-frame"),debugTask:console.createTask?console.createTask("lazy()"):null};return L._ioInfo=le,W._debugInfo=[{awaited:le}],W},tt.memo=function(L,W){L==null&&console.error("memo: The first argument must be a component. Instead received: %s",L===null?"null":typeof L),W={$$typeof:Ae,type:L,compare:W===void 0?null:W};var le;return Object.defineProperty(W,"displayName",{enumerable:!1,configurable:!0,get:function(){return le},set:function(ge){le=ge,L.name||L.displayName||(Object.defineProperty(L,"name",{value:ge}),L.displayName=ge)}}),W},tt.startTransition=function(L){var W=X.T,le={};le._updatedFibers=new Set,X.T=le;try{var ge=L(),Re=X.S;Re!==null&&Re(le,ge),typeof ge=="object"&&ge!==null&&typeof ge.then=="function"&&(X.asyncTransitions++,ge.then(E,E),ge.then(s,AI))}catch(St){AI(St)}finally{W===null&&le._updatedFibers&&(L=le._updatedFibers.size,le._updatedFibers.clear(),10<L&&console.warn("Detected a large number of updates inside startTransition. If this is due to a subscription please re-write it to use React provided hooks. Otherwise concurrent mode guarantees are off the table.")),W!==null&&le.types!==null&&(W.types!==null&&W.types!==le.types&&console.error("We expected inner Transitions to have transferred the outer types set and that you cannot add to the outer Transition while inside the inner.This is a bug in React."),W.types=le.types),X.T=W}},tt.unstable_useCacheRefresh=function(){return $().useCacheRefresh()},tt.use=function(L){return $().use(L)},tt.useActionState=function(L,W,le){return $().useActionState(L,W,le)},tt.useCallback=function(L,W){return $().useCallback(L,W)},tt.useContext=function(L){var W=$();return L.$$typeof===Y&&console.error("Calling useContext(Context.Consumer) is not supported and will cause bugs. Did you mean to call useContext(Context) instead?"),W.useContext(L)},tt.useDebugValue=function(L,W){return $().useDebugValue(L,W)},tt.useDeferredValue=function(L,W){return $().useDeferredValue(L,W)},tt.useEffect=function(L,W){return L==null&&console.warn("React Hook useEffect requires an effect callback. Did you forget to pass a callback to the hook?"),$().useEffect(L,W)},tt.useEffectEvent=function(L){return $().useEffectEvent(L)},tt.useId=function(){return $().useId()},tt.useImperativeHandle=function(L,W,le){return $().useImperativeHandle(L,W,le)},tt.useInsertionEffect=function(L,W){return L==null&&console.warn("React Hook useInsertionEffect requires an effect callback. Did you forget to pass a callback to the hook?"),$().useInsertionEffect(L,W)},tt.useLayoutEffect=function(L,W){return L==null&&console.warn("React Hook useLayoutEffect requires an effect callback. Did you forget to pass a callback to the hook?"),$().useLayoutEffect(L,W)},tt.useMemo=function(L,W){return $().useMemo(L,W)},tt.useOptimistic=function(L,W){return $().useOptimistic(L,W)},tt.useReducer=function(L,W,le){return $().useReducer(L,W,le)},tt.useRef=function(L){return $().useRef(L)},tt.useState=function(L){return $().useState(L)},tt.useSyncExternalStore=function(L,W,le){return $().useSyncExternalStore(L,W,le)},tt.useTransition=function(){return $().useTransition()},tt.version="19.2.1",typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error())}()});var K=Ee(($ze,k9)=>{"use strict";process.env.NODE_ENV==="production"?k9.exports=DW():k9.exports=LW()});var OW={};Pt(OW,{LexicalComposerContext:()=>AW,createLexicalComposerContext:()=>Bbe,useLexicalComposerContext:()=>zbe});function Fbe(t){throw new Error(t)}function Bbe(t,e){let r=null;t!=null&&(r=t[1]);function n(){return e??(r!=null?r.getTheme():null)}return{getTheme:n}}function zbe(){let t=(0,n3.useContext)(AW);return t==null&&Fbe("LexicalComposerContext.useLexicalComposerContext: cannot find a LexicalComposerContext"),t}var n3,AW,MW=ue(()=>{"use strict";n3=k(K(),1);AW=(0,n3.createContext)(null)});var kW={};Pt(kW,{LexicalComposerContext:()=>IW,createLexicalComposerContext:()=>jbe,useLexicalComposerContext:()=>Vbe});function jbe(t,e){let r=null;return t!=null&&(r=t[1]),{getTheme:function(){return e??(r!=null?r.getTheme():null)}}}function Vbe(){let t=(0,o3.useContext)(IW);return t==null&&function(e,...r){let n=new URL("https://lexical.dev/docs/error"),o=new URLSearchParams;o.append("code",e);for(let i of r)o.append("v",i);throw n.search=o.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.`)}(8),t}var o3,IW,RW=ue(()=>{"use strict";o3=k(K(),1),IW=(0,o3.createContext)(null)});var R9,Nze,Dze,Ag,i3=ue(async()=>{"use strict";R9=await(process.env.NODE_ENV!=="production"?Promise.resolve().then(()=>(MW(),OW)):Promise.resolve().then(()=>(RW(),kW))),Nze=R9.LexicalComposerContext,Dze=R9.createLexicalComposerContext,Ag=R9.useLexicalComposerContext});var FW={};Pt(FW,{useLexicalNodeSelection:()=>Hbe});function PW(t,e){return t.getEditorState().read(()=>{let r=st(e);return r===null?!1:r.isSelected()})}function Hbe(t){let[e]=Ag(),[r,n]=(0,Nf.useState)(()=>PW(e,t));(0,Nf.useEffect)(()=>{let s=!0,a=e.registerUpdateListener(()=>{s&&n(PW(e,t))});return()=>{s=!1,a()}},[e,t]);let o=(0,Nf.useCallback)(s=>{e.update(()=>{let a=H();Je(a)||(a=ru(),qe(a)),Je(a)&&(s?a.add(t):a.delete(t))})},[e,t]),i=(0,Nf.useCallback)(()=>{e.update(()=>{let s=H();Je(s)&&s.clear()})},[e]);return[r,o,i]}var Nf,BW=ue(async()=>{"use strict";await i3();await ht();Nf=k(K(),1)});var jW={};Pt(jW,{useLexicalNodeSelection:()=>Ube});function zW(t,e){return t.getEditorState().read(()=>{let r=st(e);return r!==null&&r.isSelected()})}function Ube(t){let[e]=Ag(),[r,n]=(0,Df.useState)(()=>zW(e,t));return(0,Df.useEffect)(()=>{let o=!0,i=e.registerUpdateListener(()=>{o&&n(zW(e,t))});return()=>{o=!1,i()}},[e,t]),[r,(0,Df.useCallback)(o=>{e.update(()=>{let i=H();Je(i)||(i=ru(),qe(i)),Je(i)&&(o?i.add(t):i.delete(t))})},[e,t]),(0,Df.useCallback)(()=>{e.update(()=>{let o=H();Je(o)&&o.clear()})},[e])]}var Df,VW=ue(async()=>{"use strict";await i3();await ht();Df=k(K(),1)});var Kbe,HW,UW=ue(async()=>{"use strict";Kbe=await(process.env.NODE_ENV!=="production"?BW().then(()=>FW):VW().then(()=>jW)),HW=Kbe.useLexicalNodeSelection});function Gbe(t){if(t.sheet)return t.sheet;for(var e=0;e<document.styleSheets.length;e++)if(document.styleSheets[e].ownerNode===t)return document.styleSheets[e]}function Ybe(t){var e=document.createElement("style");return e.setAttribute("data-emotion",t.key),t.nonce!==void 0&&e.setAttribute("nonce",t.nonce),e.appendChild(document.createTextNode("")),e.setAttribute("data-s",""),e}var Wbe,KW,WW=ue(()=>{"use strict";Wbe=!1;KW=function(){function t(r){var n=this;this._insertTag=function(o){var i;n.tags.length===0?n.insertionPoint?i=n.insertionPoint.nextSibling:n.prepend?i=n.container.firstChild:i=n.before:i=n.tags[n.tags.length-1].nextSibling,n.container.insertBefore(o,i),n.tags.push(o)},this.isSpeedy=r.speedy===void 0?!Wbe:r.speedy,this.tags=[],this.ctr=0,this.nonce=r.nonce,this.key=r.key,this.container=r.container,this.prepend=r.prepend,this.insertionPoint=r.insertionPoint,this.before=null}var e=t.prototype;return e.hydrate=function(n){n.forEach(this._insertTag)},e.insert=function(n){this.ctr%(this.isSpeedy?65e3:1)===0&&this._insertTag(Ybe(this));var o=this.tags[this.tags.length-1];if(this.isSpeedy){var i=Gbe(o);try{i.insertRule(n,i.cssRules.length)}catch{}}else o.appendChild(document.createTextNode(n));this.ctr++},e.flush=function(){this.tags.forEach(function(n){var o;return(o=n.parentNode)==null?void 0:o.removeChild(n)}),this.tags=[],this.ctr=0},t}()});var ho,Z1,zt,s3,Og,Mg,GW,a3,YW,l3=ue(()=>{"use strict";ho="-ms-",Z1="-moz-",zt="-webkit-",s3="comm",Og="rule",Mg="decl",GW="@import",a3="@keyframes",YW="@layer"});function JW(t,e){return un(t,0)^45?(((e<<2^un(t,0))<<2^un(t,1))<<2^un(t,2))<<2^un(t,3):0}function c3(t){return t.trim()}function P9(t,e){return(t=e.exec(t))?t[0]:t}function Rt(t,e,r){return t.replace(e,r)}function q1(t,e){return t.indexOf(e)}function un(t,e){return t.charCodeAt(e)|0}function Fu(t,e,r){return t.slice(e,r)}function Fo(t){return t.length}function Ig(t){return t.length}function kg(t,e){return e.push(t),t}function F9(t,e){return t.map(e).join("")}var ZW,Lf,qW,Rg=ue(()=>{"use strict";ZW=Math.abs,Lf=String.fromCharCode,qW=Object.assign});function J1(t,e,r,n,o,i,s){return{value:t,root:e,parent:r,type:n,props:o,children:i,line:u3,column:Pg,length:s,return:""}}function zg(t,e){return qW(J1("",null,null,"",null,null,0),t,{length:-t.length},e)}function QW(){return _n}function eG(){return _n=Bo>0?un(Bg,--Bo):0,Pg--,_n===10&&(Pg=1,u3--),_n}function zo(){return _n=Bo<XW?un(Bg,Bo++):0,Pg++,_n===10&&(Pg=1,u3++),_n}function ns(){return un(Bg,Bo)}function X1(){return Bo}function jg(t,e){return Fu(Bg,t,e)}function Fg(t){switch(t){case 0:case 9:case 10:case 13:case 32:return 5;case 33:case 43:case 44:case 47:case 62:case 64:case 126:case 59:case 123:case 125:return 4;case 58:return 3;case 34:case 39:case 40:case 91:return 2;case 41:case 93:return 1}return 0}function d3(t){return u3=Pg=1,XW=Fo(Bg=t),Bo=0,[]}function f3(t){return Bg="",t}function Vg(t){return c3(jg(Bo-1,B9(t===91?t+2:t===40?t+1:t)))}function tG(t){for(;(_n=ns())&&_n<33;)zo();return Fg(t)>2||Fg(_n)>3?"":" "}function rG(t,e){for(;--e&&zo()&&!(_n<48||_n>102||_n>57&&_n<65||_n>70&&_n<97););return jg(t,X1()+(e<6&&ns()==32&&zo()==32))}function B9(t){for(;zo();)switch(_n){case t:return Bo;case 34:case 39:t!==34&&t!==39&&B9(_n);break;case 40:t===41&&B9(t);break;case 92:zo();break}return Bo}function nG(t,e){for(;zo()&&t+_n!==57;)if(t+_n===84&&ns()===47)break;return"/*"+jg(e,Bo-1)+"*"+Lf(t===47?t:zo())}function oG(t){for(;!Fg(ns());)zo();return jg(t,Bo)}var u3,Pg,XW,Bo,_n,Bg,z9=ue(()=>{"use strict";Rg();u3=1,Pg=1,XW=0,Bo=0,_n=0,Bg=""});function j9(t){return f3(p3("",null,null,null,[""],t=d3(t),0,[0],t))}function p3(t,e,r,n,o,i,s,a,l){for(var c=0,u=0,d=s,f=0,p=0,m=0,g=1,h=1,v=1,y=0,b="",x=o,S=i,_=n,w=b;h;)switch(m=y,y=zo()){case 40:if(m!=108&&un(w,d-1)==58){q1(w+=Rt(Vg(y),"&","&\f"),"&\f")!=-1&&(v=-1);break}case 34:case 39:case 91:w+=Vg(y);break;case 9:case 10:case 13:case 32:w+=tG(m);break;case 92:w+=rG(X1()-1,7);continue;case 47:switch(ns()){case 42:case 47:kg(Zbe(nG(zo(),X1()),e,r),l);break;default:w+="/"}break;case 123*g:a[c++]=Fo(w)*v;case 125*g:case 59:case 0:switch(y){case 0:case 125:h=0;case 59+u:v==-1&&(w=Rt(w,/\f/g,"")),p>0&&Fo(w)-d&&kg(p>32?sG(w+";",n,r,d-1):sG(Rt(w," ","")+";",n,r,d-2),l);break;case 59:w+=";";default:if(kg(_=iG(w,e,r,c,u,o,a,b,x=[],S=[],d),i),y===123)if(u===0)p3(w,e,_,_,x,i,d,a,S);else switch(f===99&&un(w,3)===110?100:f){case 100:case 108:case 109:case 115:p3(t,_,_,n&&kg(iG(t,_,_,0,0,o,a,b,o,x=[],d),S),o,S,d,a,n?x:S);break;default:p3(w,_,_,_,[""],S,0,a,S)}}c=u=p=0,g=v=1,b=w="",d=s;break;case 58:d=1+Fo(w),p=m;default:if(g<1){if(y==123)--g;else if(y==125&&g++==0&&eG()==125)continue}switch(w+=Lf(y),y*g){case 38:v=u>0?1:(w+="\f",-1);break;case 44:a[c++]=(Fo(w)-1)*v,v=1;break;case 64:ns()===45&&(w+=Vg(zo())),f=ns(),u=d=Fo(b=w+=oG(X1())),y++;break;case 45:m===45&&Fo(w)==2&&(g=0)}}return i}function iG(t,e,r,n,o,i,s,a,l,c,u){for(var d=o-1,f=o===0?i:[""],p=Ig(f),m=0,g=0,h=0;m<n;++m)for(var v=0,y=Fu(t,d+1,d=ZW(g=s[m])),b=t;v<p;++v)(b=c3(g>0?f[v]+" "+y:Rt(y,/&\f/g,f[v])))&&(l[h++]=b);return J1(t,e,r,o===0?Og:a,l,c,u)}function Zbe(t,e,r){return J1(t,e,r,s3,Lf(QW()),Fu(t,2,-2),0)}function sG(t,e,r,n){return J1(t,e,r,Mg,Fu(t,0,n),Fu(t,n+1,-1),n)}var aG=ue(()=>{"use strict";l3();Rg();z9()});var lG=ue(()=>{"use strict"});function Bu(t,e){for(var r="",n=Ig(t),o=0;o<n;o++)r+=e(t[o],o,t,e)||"";return r}function V9(t,e,r,n){switch(t.type){case YW:if(t.children.length)break;case GW:case Mg:return t.return=t.return||t.value;case s3:return"";case a3:return t.return=t.value+"{"+Bu(t.children,n)+"}";case Og:t.value=t.props.join(",")}return Fo(r=Bu(t.children,n))?t.return=t.value+"{"+r+"}":""}var cG=ue(()=>{"use strict";l3();Rg()});function H9(t){var e=Ig(t);return function(r,n,o,i){for(var s="",a=0;a<e;a++)s+=t[a](r,n,o,i)||"";return s}}function uG(t){return function(e){e.root||(e=e.return)&&t(e)}}var dG=ue(()=>{"use strict";Rg()});var fG=ue(()=>{"use strict";l3();Rg();aG();lG();z9();cG();dG()});var U9,Q1=ue(()=>{"use strict";U9=function(e){var r=new WeakMap;return function(n){if(r.has(n))return r.get(n);var o=e(n);return r.set(n,o),o}}});function m3(t){var e=Object.create(null);return function(r){return e[r]===void 0&&(e[r]=t(r)),e[r]}}var K9=ue(()=>{"use strict"});function gG(t,e){switch(JW(t,e)){case 5103:return zt+"print-"+t+t;case 5737:case 4201:case 3177:case 3433:case 1641:case 4457:case 2921:case 5572:case 6356:case 5844:case 3191:case 6645:case 3005:case 6391:case 5879:case 5623:case 6135:case 4599:case 4855:case 4215:case 6389:case 5109:case 5365:case 5621:case 3829:return zt+t+t;case 5349:case 4246:case 4810:case 6968:case 2756:return zt+t+Z1+t+ho+t+t;case 6828:case 4268:return zt+t+ho+t+t;case 6165:return zt+t+ho+"flex-"+t+t;case 5187:return zt+t+Rt(t,/(\w+).+(:[^]+)/,zt+"box-$1$2"+ho+"flex-$1$2")+t;case 5443:return zt+t+ho+"flex-item-"+Rt(t,/flex-|-self/,"")+t;case 4675:return zt+t+ho+"flex-line-pack"+Rt(t,/align-content|flex-|-self/,"")+t;case 5548:return zt+t+ho+Rt(t,"shrink","negative")+t;case 5292:return zt+t+ho+Rt(t,"basis","preferred-size")+t;case 6060:return zt+"box-"+Rt(t,"-grow","")+zt+t+ho+Rt(t,"grow","positive")+t;case 4554:return zt+Rt(t,/([^-])(transform)/g,"$1"+zt+"$2")+t;case 6187:return Rt(Rt(Rt(t,/(zoom-|grab)/,zt+"$1"),/(image-set)/,zt+"$1"),t,"")+t;case 5495:case 3959:return Rt(t,/(image-set\([^]*)/,zt+"$1$`$1");case 4968:return Rt(Rt(t,/(.+:)(flex-)?(.*)/,zt+"box-pack:$3"+ho+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+zt+t+t;case 4095:case 3583:case 4068:case 2532:return Rt(t,/(.+)-inline(.+)/,zt+"$1$2")+t;case 8116:case 7059:case 5753:case 5535:case 5445:case 5701:case 4933:case 4677:case 5533:case 5789:case 5021:case 4765:if(Fo(t)-1-e>6)switch(un(t,e+1)){case 109:if(un(t,e+4)!==45)break;case 102:return Rt(t,/(.+:)(.+)-([^]+)/,"$1"+zt+"$2-$3$1"+Z1+(un(t,e+3)==108?"$3":"$2-$3"))+t;case 115:return~q1(t,"stretch")?gG(Rt(t,"stretch","fill-available"),e)+t:t}break;case 4949:if(un(t,e+1)!==115)break;case 6444:switch(un(t,Fo(t)-3-(~q1(t,"!important")&&10))){case 107:return Rt(t,":",":"+zt)+t;case 101:return Rt(t,/(.+:)([^;!]+)(;|!.+)?/,"$1"+zt+(un(t,14)===45?"inline-":"")+"box$3$1"+zt+"$2$3$1"+ho+"$2box$3")+t}break;case 5936:switch(un(t,e+11)){case 114:return zt+t+ho+Rt(t,/[svh]\w+-[tblr]{2}/,"tb")+t;case 108:return zt+t+ho+Rt(t,/[svh]\w+-[tblr]{2}/,"tb-rl")+t;case 45:return zt+t+ho+Rt(t,/[svh]\w+-[tblr]{2}/,"lr")+t}return zt+t+ho+t+t}return t}var W9,qbe,Jbe,Xbe,pG,Qbe,exe,txe,mG,rxe,ev,Hg=ue(()=>{"use strict";WW();fG();Q1();K9();W9=typeof document<"u",qbe=function(e,r,n){for(var o=0,i=0;o=i,i=ns(),o===38&&i===12&&(r[n]=1),!Fg(i);)zo();return jg(e,Bo)},Jbe=function(e,r){var n=-1,o=44;do switch(Fg(o)){case 0:o===38&&ns()===12&&(r[n]=1),e[n]+=qbe(Bo-1,r,n);break;case 2:e[n]+=Vg(o);break;case 4:if(o===44){e[++n]=ns()===58?"&\f":"",r[n]=e[n].length;break}default:e[n]+=Lf(o)}while(o=zo());return e},Xbe=function(e,r){return f3(Jbe(d3(e),r))},pG=new WeakMap,Qbe=function(e){if(!(e.type!=="rule"||!e.parent||e.length<1)){for(var r=e.value,n=e.parent,o=e.column===n.column&&e.line===n.line;n.type!=="rule";)if(n=n.parent,!n)return;if(!(e.props.length===1&&r.charCodeAt(0)!==58&&!pG.get(n))&&!o){pG.set(e,!0);for(var i=[],s=Xbe(r,i),a=n.props,l=0,c=0;l<s.length;l++)for(var u=0;u<a.length;u++,c++)e.props[c]=i[l]?s[l].replace(/&\f/g,a[u]):a[u]+" "+s[l]}}},exe=function(e){if(e.type==="decl"){var r=e.value;r.charCodeAt(0)===108&&r.charCodeAt(2)===98&&(e.return="",e.value="")}};txe=function(e,r,n,o){if(e.length>-1&&!e.return)switch(e.type){case Mg:e.return=gG(e.value,e.length);break;case a3:return Bu([zg(e,{value:Rt(e.value,"@","@"+zt)})],o);case Og:if(e.length)return F9(e.props,function(i){switch(P9(i,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return Bu([zg(e,{props:[Rt(i,/:(read-\w+)/,":"+Z1+"$1")]})],o);case"::placeholder":return Bu([zg(e,{props:[Rt(i,/:(plac\w+)/,":"+zt+"input-$1")]}),zg(e,{props:[Rt(i,/:(plac\w+)/,":"+Z1+"$1")]}),zg(e,{props:[Rt(i,/:(plac\w+)/,ho+"input-$1")]})],o)}return""})}},mG=W9?void 0:U9(function(){return m3(function(){return{}})}),rxe=[txe],ev=function(e){var r=e.key;if(W9&&r==="css"){var n=document.querySelectorAll("style[data-emotion]:not([data-s])");Array.prototype.forEach.call(n,function(x){var S=x.getAttribute("data-emotion");S.indexOf(" ")!==-1&&(document.head.appendChild(x),x.setAttribute("data-s",""))})}var o=e.stylisPlugins||rxe,i={},s,a=[];W9&&(s=e.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+r+' "]'),function(x){for(var S=x.getAttribute("data-emotion").split(" "),_=1;_<S.length;_++)i[S[_]]=!0;a.push(x)}));var l,c=[Qbe,exe];if(mG){var m=[V9],g=H9(c.concat(o,m)),h=function(S){return Bu(j9(S),g)},v=mG(o)(r),y=function(S,_){var w=_.name;return v[w]===void 0&&(v[w]=h(S?S+"{"+_.styles+"}":_.styles)),v[w]};l=function(S,_,w,T){var N=_.name,$=y(S,_);if(b.compat===void 0)return T&&(b.inserted[N]=!0),$;if(T)b.inserted[N]=$;else return $}}else{var u,d=[V9,uG(function(x){u.insert(x)})],f=H9(c.concat(o,d)),p=function(S){return Bu(j9(S),f)};l=function(S,_,w,T){u=w,p(S?S+"{"+_.styles+"}":_.styles),T&&(b.inserted[_.name]=!0)}}var b={key:r,sheet:new KW({key:r,container:s,nonce:e.nonce,speedy:e.speedy,prepend:e.prepend,insertionPoint:e.insertionPoint}),nonce:e.nonce,inserted:i,registered:{},insert:l};return b.sheet.hydrate(a),b}});var hG=ue(()=>{"use strict"});var yG=Ee(dr=>{"use strict";var Qn=typeof Symbol=="function"&&Symbol.for,G9=Qn?Symbol.for("react.element"):60103,Y9=Qn?Symbol.for("react.portal"):60106,g3=Qn?Symbol.for("react.fragment"):60107,h3=Qn?Symbol.for("react.strict_mode"):60108,v3=Qn?Symbol.for("react.profiler"):60114,y3=Qn?Symbol.for("react.provider"):60109,b3=Qn?Symbol.for("react.context"):60110,Z9=Qn?Symbol.for("react.async_mode"):60111,x3=Qn?Symbol.for("react.concurrent_mode"):60111,C3=Qn?Symbol.for("react.forward_ref"):60112,S3=Qn?Symbol.for("react.suspense"):60113,nxe=Qn?Symbol.for("react.suspense_list"):60120,_3=Qn?Symbol.for("react.memo"):60115,w3=Qn?Symbol.for("react.lazy"):60116,oxe=Qn?Symbol.for("react.block"):60121,ixe=Qn?Symbol.for("react.fundamental"):60117,sxe=Qn?Symbol.for("react.responder"):60118,axe=Qn?Symbol.for("react.scope"):60119;function Di(t){if(typeof t=="object"&&t!==null){var e=t.$$typeof;switch(e){case G9:switch(t=t.type,t){case Z9:case x3:case g3:case v3:case h3:case S3:return t;default:switch(t=t&&t.$$typeof,t){case b3:case C3:case w3:case _3:case y3:return t;default:return e}}case Y9:return e}}}function vG(t){return Di(t)===x3}dr.AsyncMode=Z9;dr.ConcurrentMode=x3;dr.ContextConsumer=b3;dr.ContextProvider=y3;dr.Element=G9;dr.ForwardRef=C3;dr.Fragment=g3;dr.Lazy=w3;dr.Memo=_3;dr.Portal=Y9;dr.Profiler=v3;dr.StrictMode=h3;dr.Suspense=S3;dr.isAsyncMode=function(t){return vG(t)||Di(t)===Z9};dr.isConcurrentMode=vG;dr.isContextConsumer=function(t){return Di(t)===b3};dr.isContextProvider=function(t){return Di(t)===y3};dr.isElement=function(t){return typeof t=="object"&&t!==null&&t.$$typeof===G9};dr.isForwardRef=function(t){return Di(t)===C3};dr.isFragment=function(t){return Di(t)===g3};dr.isLazy=function(t){return Di(t)===w3};dr.isMemo=function(t){return Di(t)===_3};dr.isPortal=function(t){return Di(t)===Y9};dr.isProfiler=function(t){return Di(t)===v3};dr.isStrictMode=function(t){return Di(t)===h3};dr.isSuspense=function(t){return Di(t)===S3};dr.isValidElementType=function(t){return typeof t=="string"||typeof t=="function"||t===g3||t===x3||t===v3||t===h3||t===S3||t===nxe||typeof t=="object"&&t!==null&&(t.$$typeof===w3||t.$$typeof===_3||t.$$typeof===y3||t.$$typeof===b3||t.$$typeof===C3||t.$$typeof===ixe||t.$$typeof===sxe||t.$$typeof===axe||t.$$typeof===oxe)};dr.typeOf=Di});var bG=Ee(fr=>{"use strict";process.env.NODE_ENV!=="production"&&function(){"use strict";var t=typeof Symbol=="function"&&Symbol.for,e=t?Symbol.for("react.element"):60103,r=t?Symbol.for("react.portal"):60106,n=t?Symbol.for("react.fragment"):60107,o=t?Symbol.for("react.strict_mode"):60108,i=t?Symbol.for("react.profiler"):60114,s=t?Symbol.for("react.provider"):60109,a=t?Symbol.for("react.context"):60110,l=t?Symbol.for("react.async_mode"):60111,c=t?Symbol.for("react.concurrent_mode"):60111,u=t?Symbol.for("react.forward_ref"):60112,d=t?Symbol.for("react.suspense"):60113,f=t?Symbol.for("react.suspense_list"):60120,p=t?Symbol.for("react.memo"):60115,m=t?Symbol.for("react.lazy"):60116,g=t?Symbol.for("react.block"):60121,h=t?Symbol.for("react.fundamental"):60117,v=t?Symbol.for("react.responder"):60118,y=t?Symbol.for("react.scope"):60119;function b(ne){return typeof ne=="string"||typeof ne=="function"||ne===n||ne===c||ne===i||ne===o||ne===d||ne===f||typeof ne=="object"&&ne!==null&&(ne.$$typeof===m||ne.$$typeof===p||ne.$$typeof===s||ne.$$typeof===a||ne.$$typeof===u||ne.$$typeof===h||ne.$$typeof===v||ne.$$typeof===y||ne.$$typeof===g)}function x(ne){if(typeof ne=="object"&&ne!==null){var Fe=ne.$$typeof;switch(Fe){case e:var pt=ne.type;switch(pt){case l:case c:case n:case i:case o:case d:return pt;default:var rt=pt&&pt.$$typeof;switch(rt){case a:case u:case m:case p:case s:return rt;default:return Fe}}case r:return Fe}}}var S=l,_=c,w=a,T=s,N=e,$=u,E=n,R=m,O=p,A=r,B=i,D=o,F=d,P=!1;function z(ne){return P||(P=!0,console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 17+. Update your code to use ReactIs.isConcurrentMode() instead. It has the exact same API.")),j(ne)||x(ne)===l}function j(ne){return x(ne)===c}function I(ne){return x(ne)===a}function Y(ne){return x(ne)===s}function te(ne){return typeof ne=="object"&&ne!==null&&ne.$$typeof===e}function fe(ne){return x(ne)===u}function xe(ne){return x(ne)===n}function Ze(ne){return x(ne)===m}function Ae(ne){return x(ne)===p}function pe(ne){return x(ne)===r}function Me(ne){return x(ne)===i}function Z(ne){return x(ne)===o}function Ce(ne){return x(ne)===d}fr.AsyncMode=S,fr.ConcurrentMode=_,fr.ContextConsumer=w,fr.ContextProvider=T,fr.Element=N,fr.ForwardRef=$,fr.Fragment=E,fr.Lazy=R,fr.Memo=O,fr.Portal=A,fr.Profiler=B,fr.StrictMode=D,fr.Suspense=F,fr.isAsyncMode=z,fr.isConcurrentMode=j,fr.isContextConsumer=I,fr.isContextProvider=Y,fr.isElement=te,fr.isForwardRef=fe,fr.isFragment=xe,fr.isLazy=Ze,fr.isMemo=Ae,fr.isPortal=pe,fr.isProfiler=Me,fr.isStrictMode=Z,fr.isSuspense=Ce,fr.isValidElementType=b,fr.typeOf=x}()});var xG=Ee((gje,q9)=>{"use strict";process.env.NODE_ENV==="production"?q9.exports=yG():q9.exports=bG()});var Q9=Ee((hje,TG)=>{"use strict";var J9=xG(),lxe={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},cxe={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},uxe={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},wG={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},X9={};X9[J9.ForwardRef]=uxe;X9[J9.Memo]=wG;function CG(t){return J9.isMemo(t)?wG:X9[t.$$typeof]||lxe}var dxe=Object.defineProperty,fxe=Object.getOwnPropertyNames,SG=Object.getOwnPropertySymbols,pxe=Object.getOwnPropertyDescriptor,mxe=Object.getPrototypeOf,_G=Object.prototype;function EG(t,e,r){if(typeof e!="string"){if(_G){var n=mxe(e);n&&n!==_G&&EG(t,n,r)}var o=fxe(e);SG&&(o=o.concat(SG(e)));for(var i=CG(t),s=CG(e),a=0;a<o.length;++a){var l=o[a];if(!cxe[l]&&!(r&&r[l])&&!(s&&s[l])&&!(i&&i[l])){var c=pxe(e,l);try{dxe(t,l,c)}catch{}}}}return t}TG.exports=EG});function Ug(t,e,r){var n="";return r.split(" ").forEach(function(o){t[o]!==void 0?e.push(t[o]+";"):o&&(n+=o+" ")}),n}var eN,E3,tv,Kg=ue(()=>{"use strict";eN=typeof document<"u";E3=function(e,r,n){var o=e.key+"-"+r.name;(n===!1||eN===!1&&e.compat!==void 0)&&e.registered[o]===void 0&&(e.registered[o]=r.styles)},tv=function(e,r,n){E3(e,r,n);var o=e.key+"-"+r.name;if(e.inserted[r.name]===void 0){var i="",s=r;do{var a=e.insert(r===s?"."+o:"",s,e.sheet,!0);!eN&&a!==void 0&&(i+=a),s=s.next}while(s!==void 0);if(!eN&&i.length!==0)return i}}});function $G(t){for(var e=0,r,n=0,o=t.length;o>=4;++n,o-=4)r=t.charCodeAt(n)&255|(t.charCodeAt(++n)&255)<<8|(t.charCodeAt(++n)&255)<<16|(t.charCodeAt(++n)&255)<<24,r=(r&65535)*1540483477+((r>>>16)*59797<<16),r^=r>>>24,e=(r&65535)*1540483477+((r>>>16)*59797<<16)^(e&65535)*1540483477+((e>>>16)*59797<<16);switch(o){case 3:e^=(t.charCodeAt(n+2)&255)<<16;case 2:e^=(t.charCodeAt(n+1)&255)<<8;case 1:e^=t.charCodeAt(n)&255,e=(e&65535)*1540483477+((e>>>16)*59797<<16)}return e^=e>>>13,e=(e&65535)*1540483477+((e>>>16)*59797<<16),((e^e>>>15)>>>0).toString(36)}var NG=ue(()=>{"use strict"});var DG,LG=ue(()=>{"use strict";DG={animationIterationCount:1,aspectRatio:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,scale:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1}});function rv(t,e,r){if(r==null)return"";var n=r;if(n.__emotion_styles!==void 0)return n;switch(typeof r){case"boolean":return"";case"object":{var o=r;if(o.anim===1)return Ka={name:o.name,styles:o.styles,next:Ka},o.name;var i=r;if(i.styles!==void 0){var s=i.next;if(s!==void 0)for(;s!==void 0;)Ka={name:s.name,styles:s.styles,next:Ka},s=s.next;var a=i.styles+";";return a}return bxe(t,e,r)}case"function":{if(t!==void 0){var l=Ka,c=r(t);return Ka=l,rv(t,e,c)}break}}var u=r;if(e==null)return u;var d=e[u];return d!==void 0?d:u}function bxe(t,e,r){var n="";if(Array.isArray(r))for(var o=0;o<r.length;o++)n+=rv(t,e,r[o])+";";else for(var i in r){var s=r[i];if(typeof s!="object"){var a=s;e!=null&&e[a]!==void 0?n+=i+"{"+e[a]+"}":AG(a)&&(n+=tN(i)+":"+OG(i,a)+";")}else{if(i==="NO_COMPONENT_SELECTOR"&&gxe)throw new Error(yxe);if(Array.isArray(s)&&typeof s[0]=="string"&&(e==null||e[s[0]]===void 0))for(var l=0;l<s.length;l++)AG(s[l])&&(n+=tN(i)+":"+OG(i,s[l])+";");else{var c=rv(t,e,s);switch(i){case"animation":case"animationName":{n+=tN(i)+":"+c+";";break}default:n+=i+"{"+c+"}"}}}}return n}function zu(t,e,r){if(t.length===1&&typeof t[0]=="object"&&t[0]!==null&&t[0].styles!==void 0)return t[0];var n=!0,o="";Ka=void 0;var i=t[0];if(i==null||i.raw===void 0)n=!1,o+=rv(r,e,i);else{var s=i;o+=s[0]}for(var a=1;a<t.length;a++)if(o+=rv(r,e,t[a]),n){var l=i;o+=l[a]}MG.lastIndex=0;for(var c="",u;(u=MG.exec(o))!==null;)c+="-"+u[1];var d=$G(o)+c;return{name:d,styles:o,next:Ka}}var gxe,hxe,vxe,IG,AG,tN,OG,yxe,MG,Ka,Wg=ue(()=>{"use strict";NG();LG();K9();gxe=!1,hxe=/[A-Z]|^ms/g,vxe=/_EMO_([^_]+?)_([^]*?)_EMO_/g,IG=function(e){return e.charCodeAt(1)===45},AG=function(e){return e!=null&&typeof e!="boolean"},tN=m3(function(t){return IG(t)?t:t.replace(hxe,"-$&").toLowerCase()}),OG=function(e,r){switch(e){case"animation":case"animationName":if(typeof r=="string")return r.replace(vxe,function(n,o,i){return Ka={name:o,styles:i,next:Ka},o})}return DG[e]!==1&&!IG(e)&&typeof r=="number"&&r!==0?r+"px":r},yxe="Component selectors can only be used in conjunction with @emotion/babel-plugin, the swc Emotion plugin, or another Emotion-aware compiler transform.";MG=/label:\s*([^\s;{]+)\s*(;|$)/g});var T3,xxe,kG,Cxe,rN,$3=ue(()=>{"use strict";T3=k(K()),xxe=typeof document<"u",kG=function(e){return e()},Cxe=T3.useInsertionEffect?T3.useInsertionEffect:!1,rN=xxe&&Cxe||kG});var fi,nv,RG,oN,N3,Oje,iN,PG,Af,nN,ov,Sxe,_xe,iv,sN=ue(()=>{"use strict";fi=k(K()),nv=k(K());Hg();hG();Q1();Kg();Wg();$3();RG=!1,oN=typeof document<"u",N3=fi.createContext(typeof HTMLElement<"u"?ev({key:"css"}):null),Oje=N3.Provider,iN=function(e){return(0,nv.forwardRef)(function(r,n){var o=(0,nv.useContext)(N3);return e(r,o,n)})};oN||(iN=function(e){return function(r){var n=(0,nv.useContext)(N3);return n===null?(n=ev({key:"css"}),fi.createElement(N3.Provider,{value:n},e(r,n))):e(r,n)}});PG=fi.createContext({}),Af={}.hasOwnProperty,nN="__EMOTION_TYPE_PLEASE_DO_NOT_USE__",ov=function(e,r){var n={};for(var o in r)Af.call(r,o)&&(n[o]=r[o]);return n[nN]=e,n},Sxe=function(e){var r=e.cache,n=e.serialized,o=e.isStringTag;E3(r,n,o);var i=rN(function(){return tv(r,n,o)});if(!oN&&i!==void 0){for(var s,a=n.name,l=n.next;l!==void 0;)a+=" "+l.name,l=l.next;return fi.createElement("style",(s={},s["data-emotion"]=r.key+" "+a,s.dangerouslySetInnerHTML={__html:i},s.nonce=r.sheet.nonce,s))}return null},_xe=iN(function(t,e,r){var n=t.css;typeof n=="string"&&e.registered[n]!==void 0&&(n=e.registered[n]);var o=t[nN],i=[n],s="";typeof t.className=="string"?s=Ug(e.registered,i,t.className):t.className!=null&&(s=t.className+" ");var a=zu(i,void 0,fi.useContext(PG));s+=e.key+"-"+a.name;var l={};for(var c in t)Af.call(t,c)&&c!=="css"&&c!==nN&&!RG&&(l[c]=t[c]);return l.className=s,r&&(l.ref=r),fi.createElement(fi.Fragment,null,fi.createElement(Sxe,{cache:e,serialized:a,isStringTag:typeof o=="string"}),fi.createElement(o,l))}),iv=_xe});var lN=Ee((Ije,Zl)=>{"use strict";function aN(){return Zl.exports=aN=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var n in r)({}).hasOwnProperty.call(r,n)&&(t[n]=r[n])}return t},Zl.exports.__esModule=!0,Zl.exports.default=Zl.exports,aN.apply(null,arguments)}Zl.exports=aN,Zl.exports.__esModule=!0,Zl.exports.default=Zl.exports});function C(){for(var t=arguments.length,e=new Array(t),r=0;r<t;r++)e[r]=arguments[r];return zu(e)}function tn(){var t=C.apply(void 0,arguments),e="animation-"+t.name;return{name:e,styles:"@keyframes "+e+"{"+t.styles+"}",anim:1,toString:function(){return"_EMO_"+this.name+"_"+this.styles+"_EMO_"}}}var Gg,jje,Hje,FG,re=ue(()=>{"use strict";sN();Gg=k(K());Kg();$3();Wg();Hg();jje=k(lN());Q1();Hje=k(Q9()),FG=function(e,r){var n=arguments;if(r==null||!Af.call(r,"css"))return Gg.createElement.apply(void 0,n);var o=n.length,i=new Array(o);i[0]=iv,i[1]=ov(e,r);for(var s=2;s<o;s++)i[s]=n[s];return Gg.createElement.apply(null,i)};(function(t){var e;e||(e=t.JSX||(t.JSX={}))})(FG||(FG={}))});var zG=Ee(D3=>{"use strict";var wxe=Symbol.for("react.transitional.element"),Exe=Symbol.for("react.fragment");function BG(t,e,r){var n=null;if(r!==void 0&&(n=""+r),e.key!==void 0&&(n=""+e.key),"key"in e){r={};for(var o in e)o!=="key"&&(r[o]=e[o])}else r=e;return e=r.ref,{$$typeof:wxe,type:t,key:n,ref:e!==void 0?e:null,props:r}}D3.Fragment=Exe;D3.jsx=BG;D3.jsxs=BG});var jG=Ee(L3=>{"use strict";process.env.NODE_ENV!=="production"&&function(){function t(I){if(I==null)return null;if(typeof I=="function")return I.$$typeof===E?null:I.displayName||I.name||null;if(typeof I=="string")return I;switch(I){case h:return"Fragment";case y:return"Profiler";case v:return"StrictMode";case _:return"Suspense";case w:return"SuspenseList";case $:return"Activity"}if(typeof I=="object")switch(typeof I.tag=="number"&&console.error("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),I.$$typeof){case g:return"Portal";case x:return I.displayName||"Context";case b:return(I._context.displayName||"Context")+".Consumer";case S:var Y=I.render;return I=I.displayName,I||(I=Y.displayName||Y.name||"",I=I!==""?"ForwardRef("+I+")":"ForwardRef"),I;case T:return Y=I.displayName||null,Y!==null?Y:t(I.type)||"Memo";case N:Y=I._payload,I=I._init;try{return t(I(Y))}catch{}}return null}function e(I){return""+I}function r(I){try{e(I);var Y=!1}catch{Y=!0}if(Y){Y=console;var te=Y.error,fe=typeof Symbol=="function"&&Symbol.toStringTag&&I[Symbol.toStringTag]||I.constructor.name||"Object";return te.call(Y,"The provided key is an unsupported type %s. This value must be coerced to a string before using it here.",fe),e(I)}}function n(I){if(I===h)return"<>";if(typeof I=="object"&&I!==null&&I.$$typeof===N)return"<...>";try{var Y=t(I);return Y?"<"+Y+">":"<...>"}catch{return"<...>"}}function o(){var I=R.A;return I===null?null:I.getOwner()}function i(){return Error("react-stack-top-frame")}function s(I){if(O.call(I,"key")){var Y=Object.getOwnPropertyDescriptor(I,"key").get;if(Y&&Y.isReactWarning)return!1}return I.key!==void 0}function a(I,Y){function te(){D||(D=!0,console.error("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://react.dev/link/special-props)",Y))}te.isReactWarning=!0,Object.defineProperty(I,"key",{get:te,configurable:!0})}function l(){var I=t(this.type);return F[I]||(F[I]=!0,console.error("Accessing element.ref was removed in React 19. ref is now a regular prop. It will be removed from the JSX Element type in a future release.")),I=this.props.ref,I!==void 0?I:null}function c(I,Y,te,fe,xe,Ze){var Ae=te.ref;return I={$$typeof:m,type:I,key:Y,props:te,_owner:fe},(Ae!==void 0?Ae:null)!==null?Object.defineProperty(I,"ref",{enumerable:!1,get:l}):Object.defineProperty(I,"ref",{enumerable:!1,value:null}),I._store={},Object.defineProperty(I._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:0}),Object.defineProperty(I,"_debugInfo",{configurable:!1,enumerable:!1,writable:!0,value:null}),Object.defineProperty(I,"_debugStack",{configurable:!1,enumerable:!1,writable:!0,value:xe}),Object.defineProperty(I,"_debugTask",{configurable:!1,enumerable:!1,writable:!0,value:Ze}),Object.freeze&&(Object.freeze(I.props),Object.freeze(I)),I}function u(I,Y,te,fe,xe,Ze){var Ae=Y.children;if(Ae!==void 0)if(fe)if(A(Ae)){for(fe=0;fe<Ae.length;fe++)d(Ae[fe]);Object.freeze&&Object.freeze(Ae)}else console.error("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");else d(Ae);if(O.call(Y,"key")){Ae=t(I);var pe=Object.keys(Y).filter(function(Z){return Z!=="key"});fe=0<pe.length?"{key: someKey, "+pe.join(": ..., ")+": ...}":"{key: someKey}",j[Ae+fe]||(pe=0<pe.length?"{"+pe.join(": ..., ")+": ...}":"{}",console.error(`A props object containing a "key" prop is being spread into JSX:
|
|
64
64
|
let props = %s;
|
|
65
65
|
<%s {...props} />
|
|
66
66
|
React keys must be passed directly to JSX without using spread:
|
|
67
67
|
let props = %s;
|
|
68
|
-
<%s key={someKey} {...props} />`,fe,Ae,pe,Ae),j[Ae+fe]=!0)}if(Ae=null,te!==void 0&&(r(te),Ae=""+te),s(Y)&&(r(Y.key),Ae=""+Y.key),"key"in Y){te={};for(var Me in Y)Me!=="key"&&(te[Me]=Y[Me])}else te=Y;return Ae&&a(te,typeof I=="function"?I.displayName||I.name||"Unknown":I),c(I,Ae,te,o(),xe,Ze)}function d(I){f(I)?I._store&&(I._store.validated=1):typeof I=="object"&&I!==null&&I.$$typeof===N&&(I._payload.status==="fulfilled"?f(I._payload.value)&&I._payload.value._store&&(I._payload.value._store.validated=1):I._store&&(I._store.validated=1))}function f(I){return typeof I=="object"&&I!==null&&I.$$typeof===m}var p=K(),m=Symbol.for("react.transitional.element"),g=Symbol.for("react.portal"),h=Symbol.for("react.fragment"),v=Symbol.for("react.strict_mode"),y=Symbol.for("react.profiler"),b=Symbol.for("react.consumer"),x=Symbol.for("react.context"),S=Symbol.for("react.forward_ref"),_=Symbol.for("react.suspense"),w=Symbol.for("react.suspense_list"),T=Symbol.for("react.memo"),N=Symbol.for("react.lazy"),$=Symbol.for("react.activity"),E=Symbol.for("react.client.reference"),R=p.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,O=Object.prototype.hasOwnProperty,A=Array.isArray,B=console.createTask?console.createTask:function(){return null};p={react_stack_bottom_frame:function(I){return I()}};var D,F={},P=p.react_stack_bottom_frame.bind(p,i)(),z=B(n(i)),j={};L3.Fragment=h,L3.jsx=function(I,Y,te){var fe=1e4>R.recentlyCreatedOwnerStacks++;return u(I,Y,te,!1,fe?Error("react-stack-top-frame"):P,fe?B(n(I)):z)},L3.jsxs=function(I,Y,te){var fe=1e4>R.recentlyCreatedOwnerStacks++;return u(I,Y,te,!0,fe?Error("react-stack-top-frame"):P,fe?B(n(I)):z)}}()});var rn=Ee((Gje,cN)=>{"use strict";process.env.NODE_ENV==="production"?cN.exports=zG():cN.exports=jG()});var BY=Ee(FY=>{"use strict";var ih=K();function iCe(t,e){return t===e&&(t!==0||1/t===1/e)||t!==t&&e!==e}var sCe=typeof Object.is=="function"?Object.is:iCe,aCe=ih.useState,lCe=ih.useEffect,cCe=ih.useLayoutEffect,uCe=ih.useDebugValue;function dCe(t,e){var r=e(),n=aCe({inst:{value:r,getSnapshot:e}}),o=n[0].inst,i=n[1];return cCe(function(){o.value=r,o.getSnapshot=e,AN(o)&&i({inst:o})},[t,r,e]),lCe(function(){return AN(o)&&i({inst:o}),t(function(){AN(o)&&i({inst:o})})},[t]),uCe(r),r}function AN(t){var e=t.getSnapshot;t=t.value;try{var r=e();return!sCe(t,r)}catch{return!0}}function fCe(t,e){return e()}var pCe=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?fCe:dCe;FY.useSyncExternalStore=ih.useSyncExternalStore!==void 0?ih.useSyncExternalStore:pCe});var jY=Ee(zY=>{"use strict";process.env.NODE_ENV!=="production"&&function(){function t(p,m){return p===m&&(p!==0||1/p===1/m)||p!==p&&m!==m}function e(p,m){u||o.startTransition===void 0||(u=!0,console.error("You are using an outdated, pre-release alpha of React 18 that does not support useSyncExternalStore. The use-sync-external-store shim will not work correctly. Upgrade to a newer pre-release."));var g=m();if(!d){var h=m();i(g,h)||(console.error("The result of getSnapshot should be cached to avoid an infinite loop"),d=!0)}h=s({inst:{value:g,getSnapshot:m}});var v=h[0].inst,y=h[1];return l(function(){v.value=g,v.getSnapshot=m,r(v)&&y({inst:v})},[p,g,m]),a(function(){return r(v)&&y({inst:v}),p(function(){r(v)&&y({inst:v})})},[p]),c(g),g}function r(p){var m=p.getSnapshot;p=p.value;try{var g=m();return!i(p,g)}catch{return!0}}function n(p,m){return m()}typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(Error());var o=K(),i=typeof Object.is=="function"?Object.is:t,s=o.useState,a=o.useEffect,l=o.useLayoutEffect,c=o.useDebugValue,u=!1,d=!1,f=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?n:e;zY.useSyncExternalStore=o.useSyncExternalStore!==void 0?o.useSyncExternalStore:f,typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error())}()});var VY=Ee((YHe,ON)=>{"use strict";process.env.NODE_ENV==="production"?ON.exports=BY():ON.exports=jY()});var nZ=Ee(Wo=>{"use strict";var ECe=K();function rZ(t){var e="https://react.dev/errors/"+t;if(1<arguments.length){e+="?args[]="+encodeURIComponent(arguments[1]);for(var r=2;r<arguments.length;r++)e+="&args[]="+encodeURIComponent(arguments[r])}return"Minified React error #"+t+"; visit "+e+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function Yu(){}var Ko={d:{f:Yu,r:function(){throw Error(rZ(522))},D:Yu,C:Yu,L:Yu,m:Yu,X:Yu,S:Yu,M:Yu},p:0,findDOMNode:null},TCe=Symbol.for("react.portal");function $Ce(t,e,r){var n=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:TCe,key:n==null?null:""+n,children:t,containerInfo:e,implementation:r}}var Sv=ECe.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;function W3(t,e){if(t==="font")return"";if(typeof e=="string")return e==="use-credentials"?e:""}Wo.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=Ko;Wo.createPortal=function(t,e){var r=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11)throw Error(rZ(299));return $Ce(t,e,null,r)};Wo.flushSync=function(t){var e=Sv.T,r=Ko.p;try{if(Sv.T=null,Ko.p=2,t)return t()}finally{Sv.T=e,Ko.p=r,Ko.d.f()}};Wo.preconnect=function(t,e){typeof t=="string"&&(e?(e=e.crossOrigin,e=typeof e=="string"?e==="use-credentials"?e:"":void 0):e=null,Ko.d.C(t,e))};Wo.prefetchDNS=function(t){typeof t=="string"&&Ko.d.D(t)};Wo.preinit=function(t,e){if(typeof t=="string"&&e&&typeof e.as=="string"){var r=e.as,n=W3(r,e.crossOrigin),o=typeof e.integrity=="string"?e.integrity:void 0,i=typeof e.fetchPriority=="string"?e.fetchPriority:void 0;r==="style"?Ko.d.S(t,typeof e.precedence=="string"?e.precedence:void 0,{crossOrigin:n,integrity:o,fetchPriority:i}):r==="script"&&Ko.d.X(t,{crossOrigin:n,integrity:o,fetchPriority:i,nonce:typeof e.nonce=="string"?e.nonce:void 0})}};Wo.preinitModule=function(t,e){if(typeof t=="string")if(typeof e=="object"&&e!==null){if(e.as==null||e.as==="script"){var r=W3(e.as,e.crossOrigin);Ko.d.M(t,{crossOrigin:r,integrity:typeof e.integrity=="string"?e.integrity:void 0,nonce:typeof e.nonce=="string"?e.nonce:void 0})}}else e==null&&Ko.d.M(t)};Wo.preload=function(t,e){if(typeof t=="string"&&typeof e=="object"&&e!==null&&typeof e.as=="string"){var r=e.as,n=W3(r,e.crossOrigin);Ko.d.L(t,r,{crossOrigin:n,integrity:typeof e.integrity=="string"?e.integrity:void 0,nonce:typeof e.nonce=="string"?e.nonce:void 0,type:typeof e.type=="string"?e.type:void 0,fetchPriority:typeof e.fetchPriority=="string"?e.fetchPriority:void 0,referrerPolicy:typeof e.referrerPolicy=="string"?e.referrerPolicy:void 0,imageSrcSet:typeof e.imageSrcSet=="string"?e.imageSrcSet:void 0,imageSizes:typeof e.imageSizes=="string"?e.imageSizes:void 0,media:typeof e.media=="string"?e.media:void 0})}};Wo.preloadModule=function(t,e){if(typeof t=="string")if(e){var r=W3(e.as,e.crossOrigin);Ko.d.m(t,{as:typeof e.as=="string"&&e.as!=="script"?e.as:void 0,crossOrigin:r,integrity:typeof e.integrity=="string"?e.integrity:void 0})}else Ko.d.m(t)};Wo.requestFormReset=function(t){Ko.d.r(t)};Wo.unstable_batchedUpdates=function(t,e){return t(e)};Wo.useFormState=function(t,e,r){return Sv.H.useFormState(t,e,r)};Wo.useFormStatus=function(){return Sv.H.useHostTransitionStatus()};Wo.version="19.2.
|
|
68
|
+
<%s key={someKey} {...props} />`,fe,Ae,pe,Ae),j[Ae+fe]=!0)}if(Ae=null,te!==void 0&&(r(te),Ae=""+te),s(Y)&&(r(Y.key),Ae=""+Y.key),"key"in Y){te={};for(var Me in Y)Me!=="key"&&(te[Me]=Y[Me])}else te=Y;return Ae&&a(te,typeof I=="function"?I.displayName||I.name||"Unknown":I),c(I,Ae,te,o(),xe,Ze)}function d(I){f(I)?I._store&&(I._store.validated=1):typeof I=="object"&&I!==null&&I.$$typeof===N&&(I._payload.status==="fulfilled"?f(I._payload.value)&&I._payload.value._store&&(I._payload.value._store.validated=1):I._store&&(I._store.validated=1))}function f(I){return typeof I=="object"&&I!==null&&I.$$typeof===m}var p=K(),m=Symbol.for("react.transitional.element"),g=Symbol.for("react.portal"),h=Symbol.for("react.fragment"),v=Symbol.for("react.strict_mode"),y=Symbol.for("react.profiler"),b=Symbol.for("react.consumer"),x=Symbol.for("react.context"),S=Symbol.for("react.forward_ref"),_=Symbol.for("react.suspense"),w=Symbol.for("react.suspense_list"),T=Symbol.for("react.memo"),N=Symbol.for("react.lazy"),$=Symbol.for("react.activity"),E=Symbol.for("react.client.reference"),R=p.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,O=Object.prototype.hasOwnProperty,A=Array.isArray,B=console.createTask?console.createTask:function(){return null};p={react_stack_bottom_frame:function(I){return I()}};var D,F={},P=p.react_stack_bottom_frame.bind(p,i)(),z=B(n(i)),j={};L3.Fragment=h,L3.jsx=function(I,Y,te){var fe=1e4>R.recentlyCreatedOwnerStacks++;return u(I,Y,te,!1,fe?Error("react-stack-top-frame"):P,fe?B(n(I)):z)},L3.jsxs=function(I,Y,te){var fe=1e4>R.recentlyCreatedOwnerStacks++;return u(I,Y,te,!0,fe?Error("react-stack-top-frame"):P,fe?B(n(I)):z)}}()});var rn=Ee((Gje,cN)=>{"use strict";process.env.NODE_ENV==="production"?cN.exports=zG():cN.exports=jG()});var BY=Ee(FY=>{"use strict";var ih=K();function iCe(t,e){return t===e&&(t!==0||1/t===1/e)||t!==t&&e!==e}var sCe=typeof Object.is=="function"?Object.is:iCe,aCe=ih.useState,lCe=ih.useEffect,cCe=ih.useLayoutEffect,uCe=ih.useDebugValue;function dCe(t,e){var r=e(),n=aCe({inst:{value:r,getSnapshot:e}}),o=n[0].inst,i=n[1];return cCe(function(){o.value=r,o.getSnapshot=e,AN(o)&&i({inst:o})},[t,r,e]),lCe(function(){return AN(o)&&i({inst:o}),t(function(){AN(o)&&i({inst:o})})},[t]),uCe(r),r}function AN(t){var e=t.getSnapshot;t=t.value;try{var r=e();return!sCe(t,r)}catch{return!0}}function fCe(t,e){return e()}var pCe=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?fCe:dCe;FY.useSyncExternalStore=ih.useSyncExternalStore!==void 0?ih.useSyncExternalStore:pCe});var jY=Ee(zY=>{"use strict";process.env.NODE_ENV!=="production"&&function(){function t(p,m){return p===m&&(p!==0||1/p===1/m)||p!==p&&m!==m}function e(p,m){u||o.startTransition===void 0||(u=!0,console.error("You are using an outdated, pre-release alpha of React 18 that does not support useSyncExternalStore. The use-sync-external-store shim will not work correctly. Upgrade to a newer pre-release."));var g=m();if(!d){var h=m();i(g,h)||(console.error("The result of getSnapshot should be cached to avoid an infinite loop"),d=!0)}h=s({inst:{value:g,getSnapshot:m}});var v=h[0].inst,y=h[1];return l(function(){v.value=g,v.getSnapshot=m,r(v)&&y({inst:v})},[p,g,m]),a(function(){return r(v)&&y({inst:v}),p(function(){r(v)&&y({inst:v})})},[p]),c(g),g}function r(p){var m=p.getSnapshot;p=p.value;try{var g=m();return!i(p,g)}catch{return!0}}function n(p,m){return m()}typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(Error());var o=K(),i=typeof Object.is=="function"?Object.is:t,s=o.useState,a=o.useEffect,l=o.useLayoutEffect,c=o.useDebugValue,u=!1,d=!1,f=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?n:e;zY.useSyncExternalStore=o.useSyncExternalStore!==void 0?o.useSyncExternalStore:f,typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error())}()});var VY=Ee((YHe,ON)=>{"use strict";process.env.NODE_ENV==="production"?ON.exports=BY():ON.exports=jY()});var nZ=Ee(Wo=>{"use strict";var ECe=K();function rZ(t){var e="https://react.dev/errors/"+t;if(1<arguments.length){e+="?args[]="+encodeURIComponent(arguments[1]);for(var r=2;r<arguments.length;r++)e+="&args[]="+encodeURIComponent(arguments[r])}return"Minified React error #"+t+"; visit "+e+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function Yu(){}var Ko={d:{f:Yu,r:function(){throw Error(rZ(522))},D:Yu,C:Yu,L:Yu,m:Yu,X:Yu,S:Yu,M:Yu},p:0,findDOMNode:null},TCe=Symbol.for("react.portal");function $Ce(t,e,r){var n=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:TCe,key:n==null?null:""+n,children:t,containerInfo:e,implementation:r}}var Sv=ECe.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;function W3(t,e){if(t==="font")return"";if(typeof e=="string")return e==="use-credentials"?e:""}Wo.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=Ko;Wo.createPortal=function(t,e){var r=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11)throw Error(rZ(299));return $Ce(t,e,null,r)};Wo.flushSync=function(t){var e=Sv.T,r=Ko.p;try{if(Sv.T=null,Ko.p=2,t)return t()}finally{Sv.T=e,Ko.p=r,Ko.d.f()}};Wo.preconnect=function(t,e){typeof t=="string"&&(e?(e=e.crossOrigin,e=typeof e=="string"?e==="use-credentials"?e:"":void 0):e=null,Ko.d.C(t,e))};Wo.prefetchDNS=function(t){typeof t=="string"&&Ko.d.D(t)};Wo.preinit=function(t,e){if(typeof t=="string"&&e&&typeof e.as=="string"){var r=e.as,n=W3(r,e.crossOrigin),o=typeof e.integrity=="string"?e.integrity:void 0,i=typeof e.fetchPriority=="string"?e.fetchPriority:void 0;r==="style"?Ko.d.S(t,typeof e.precedence=="string"?e.precedence:void 0,{crossOrigin:n,integrity:o,fetchPriority:i}):r==="script"&&Ko.d.X(t,{crossOrigin:n,integrity:o,fetchPriority:i,nonce:typeof e.nonce=="string"?e.nonce:void 0})}};Wo.preinitModule=function(t,e){if(typeof t=="string")if(typeof e=="object"&&e!==null){if(e.as==null||e.as==="script"){var r=W3(e.as,e.crossOrigin);Ko.d.M(t,{crossOrigin:r,integrity:typeof e.integrity=="string"?e.integrity:void 0,nonce:typeof e.nonce=="string"?e.nonce:void 0})}}else e==null&&Ko.d.M(t)};Wo.preload=function(t,e){if(typeof t=="string"&&typeof e=="object"&&e!==null&&typeof e.as=="string"){var r=e.as,n=W3(r,e.crossOrigin);Ko.d.L(t,r,{crossOrigin:n,integrity:typeof e.integrity=="string"?e.integrity:void 0,nonce:typeof e.nonce=="string"?e.nonce:void 0,type:typeof e.type=="string"?e.type:void 0,fetchPriority:typeof e.fetchPriority=="string"?e.fetchPriority:void 0,referrerPolicy:typeof e.referrerPolicy=="string"?e.referrerPolicy:void 0,imageSrcSet:typeof e.imageSrcSet=="string"?e.imageSrcSet:void 0,imageSizes:typeof e.imageSizes=="string"?e.imageSizes:void 0,media:typeof e.media=="string"?e.media:void 0})}};Wo.preloadModule=function(t,e){if(typeof t=="string")if(e){var r=W3(e.as,e.crossOrigin);Ko.d.m(t,{as:typeof e.as=="string"&&e.as!=="script"?e.as:void 0,crossOrigin:r,integrity:typeof e.integrity=="string"?e.integrity:void 0})}else Ko.d.m(t)};Wo.requestFormReset=function(t){Ko.d.r(t)};Wo.unstable_batchedUpdates=function(t,e){return t(e)};Wo.useFormState=function(t,e,r){return Sv.H.useFormState(t,e,r)};Wo.useFormStatus=function(){return Sv.H.useHostTransitionStatus()};Wo.version="19.2.1"});var oZ=Ee(Go=>{"use strict";process.env.NODE_ENV!=="production"&&function(){function t(){}function e(d){return""+d}function r(d,f,p){var m=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;try{e(m);var g=!1}catch{g=!0}return g&&(console.error("The provided key is an unsupported type %s. This value must be coerced to a string before using it here.",typeof Symbol=="function"&&Symbol.toStringTag&&m[Symbol.toStringTag]||m.constructor.name||"Object"),e(m)),{$$typeof:c,key:m==null?null:""+m,children:d,containerInfo:f,implementation:p}}function n(d,f){if(d==="font")return"";if(typeof f=="string")return f==="use-credentials"?f:""}function o(d){return d===null?"`null`":d===void 0?"`undefined`":d===""?"an empty string":'something with type "'+typeof d+'"'}function i(d){return d===null?"`null`":d===void 0?"`undefined`":d===""?"an empty string":typeof d=="string"?JSON.stringify(d):typeof d=="number"?"`"+d+"`":'something with type "'+typeof d+'"'}function s(){var d=u.H;return d===null&&console.error(`Invalid hook call. Hooks can only be called inside of the body of a function component. This could happen for one of the following reasons:
|
|
69
69
|
1. You might have mismatching versions of React and the renderer (such as React DOM)
|
|
70
70
|
2. You might be breaking the Rules of Hooks
|
|
71
71
|
3. You might have more than one copy of React in the same app
|
|
72
|
-
See https://react.dev/link/invalid-hook-call for tips about how to debug and fix this problem.`),d}typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(Error());var a=K(),l={d:{f:t,r:function(){throw Error("Invalid form element. requestFormReset must be passed a form that was rendered by React.")},D:t,C:t,L:t,m:t,X:t,S:t,M:t},p:0,findDOMNode:null},c=Symbol.for("react.portal"),u=a.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;typeof Map=="function"&&Map.prototype!=null&&typeof Map.prototype.forEach=="function"&&typeof Set=="function"&&Set.prototype!=null&&typeof Set.prototype.clear=="function"&&typeof Set.prototype.forEach=="function"||console.error("React depends on Map and Set built-in types. Make sure that you load a polyfill in older browsers. https://reactjs.org/link/react-polyfills"),Go.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=l,Go.createPortal=function(d,f){var p=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!f||f.nodeType!==1&&f.nodeType!==9&&f.nodeType!==11)throw Error("Target container is not a DOM element.");return r(d,f,null,p)},Go.flushSync=function(d){var f=u.T,p=l.p;try{if(u.T=null,l.p=2,d)return d()}finally{u.T=f,l.p=p,l.d.f()&&console.error("flushSync was called from inside a lifecycle method. React cannot flush when React is already rendering. Consider moving this call to a scheduler task or micro task.")}},Go.preconnect=function(d,f){typeof d=="string"&&d?f!=null&&typeof f!="object"?console.error("ReactDOM.preconnect(): Expected the `options` argument (second) to be an object but encountered %s instead. The only supported option at this time is `crossOrigin` which accepts a string.",i(f)):f!=null&&typeof f.crossOrigin!="string"&&console.error("ReactDOM.preconnect(): Expected the `crossOrigin` option (second argument) to be a string but encountered %s instead. Try removing this option or passing a string value instead.",o(f.crossOrigin)):console.error("ReactDOM.preconnect(): Expected the `href` argument (first) to be a non-empty string but encountered %s instead.",o(d)),typeof d=="string"&&(f?(f=f.crossOrigin,f=typeof f=="string"?f==="use-credentials"?f:"":void 0):f=null,l.d.C(d,f))},Go.prefetchDNS=function(d){if(typeof d!="string"||!d)console.error("ReactDOM.prefetchDNS(): Expected the `href` argument (first) to be a non-empty string but encountered %s instead.",o(d));else if(1<arguments.length){var f=arguments[1];typeof f=="object"&&f.hasOwnProperty("crossOrigin")?console.error("ReactDOM.prefetchDNS(): Expected only one argument, `href`, but encountered %s as a second argument instead. This argument is reserved for future options and is currently disallowed. It looks like the you are attempting to set a crossOrigin property for this DNS lookup hint. Browsers do not perform DNS queries using CORS and setting this attribute on the resource hint has no effect. Try calling ReactDOM.prefetchDNS() with just a single string argument, `href`.",i(f)):console.error("ReactDOM.prefetchDNS(): Expected only one argument, `href`, but encountered %s as a second argument instead. This argument is reserved for future options and is currently disallowed. Try calling ReactDOM.prefetchDNS() with just a single string argument, `href`.",i(f))}typeof d=="string"&&l.d.D(d)},Go.preinit=function(d,f){if(typeof d=="string"&&d?f==null||typeof f!="object"?console.error("ReactDOM.preinit(): Expected the `options` argument (second) to be an object with an `as` property describing the type of resource to be preinitialized but encountered %s instead.",i(f)):f.as!=="style"&&f.as!=="script"&&console.error('ReactDOM.preinit(): Expected the `as` property in the `options` argument (second) to contain a valid value describing the type of resource to be preinitialized but encountered %s instead. Valid values for `as` are "style" and "script".',i(f.as)):console.error("ReactDOM.preinit(): Expected the `href` argument (first) to be a non-empty string but encountered %s instead.",o(d)),typeof d=="string"&&f&&typeof f.as=="string"){var p=f.as,m=n(p,f.crossOrigin),g=typeof f.integrity=="string"?f.integrity:void 0,h=typeof f.fetchPriority=="string"?f.fetchPriority:void 0;p==="style"?l.d.S(d,typeof f.precedence=="string"?f.precedence:void 0,{crossOrigin:m,integrity:g,fetchPriority:h}):p==="script"&&l.d.X(d,{crossOrigin:m,integrity:g,fetchPriority:h,nonce:typeof f.nonce=="string"?f.nonce:void 0})}},Go.preinitModule=function(d,f){var p="";if(typeof d=="string"&&d||(p+=" The `href` argument encountered was "+o(d)+"."),f!==void 0&&typeof f!="object"?p+=" The `options` argument encountered was "+o(f)+".":f&&"as"in f&&f.as!=="script"&&(p+=" The `as` option encountered was "+i(f.as)+"."),p)console.error("ReactDOM.preinitModule(): Expected up to two arguments, a non-empty `href` string and, optionally, an `options` object with a valid `as` property.%s",p);else switch(p=f&&typeof f.as=="string"?f.as:"script",p){case"script":break;default:p=i(p),console.error('ReactDOM.preinitModule(): Currently the only supported "as" type for this function is "script" but received "%s" instead. This warning was generated for `href` "%s". In the future other module types will be supported, aligning with the import-attributes proposal. Learn more here: (https://github.com/tc39/proposal-import-attributes)',p,d)}typeof d=="string"&&(typeof f=="object"&&f!==null?(f.as==null||f.as==="script")&&(p=n(f.as,f.crossOrigin),l.d.M(d,{crossOrigin:p,integrity:typeof f.integrity=="string"?f.integrity:void 0,nonce:typeof f.nonce=="string"?f.nonce:void 0})):f==null&&l.d.M(d))},Go.preload=function(d,f){var p="";if(typeof d=="string"&&d||(p+=" The `href` argument encountered was "+o(d)+"."),f==null||typeof f!="object"?p+=" The `options` argument encountered was "+o(f)+".":typeof f.as=="string"&&f.as||(p+=" The `as` option encountered was "+o(f.as)+"."),p&&console.error('ReactDOM.preload(): Expected two arguments, a non-empty `href` string and an `options` object with an `as` property valid for a `<link rel="preload" as="..." />` tag.%s',p),typeof d=="string"&&typeof f=="object"&&f!==null&&typeof f.as=="string"){p=f.as;var m=n(p,f.crossOrigin);l.d.L(d,p,{crossOrigin:m,integrity:typeof f.integrity=="string"?f.integrity:void 0,nonce:typeof f.nonce=="string"?f.nonce:void 0,type:typeof f.type=="string"?f.type:void 0,fetchPriority:typeof f.fetchPriority=="string"?f.fetchPriority:void 0,referrerPolicy:typeof f.referrerPolicy=="string"?f.referrerPolicy:void 0,imageSrcSet:typeof f.imageSrcSet=="string"?f.imageSrcSet:void 0,imageSizes:typeof f.imageSizes=="string"?f.imageSizes:void 0,media:typeof f.media=="string"?f.media:void 0})}},Go.preloadModule=function(d,f){var p="";typeof d=="string"&&d||(p+=" The `href` argument encountered was "+o(d)+"."),f!==void 0&&typeof f!="object"?p+=" The `options` argument encountered was "+o(f)+".":f&&"as"in f&&typeof f.as!="string"&&(p+=" The `as` option encountered was "+o(f.as)+"."),p&&console.error('ReactDOM.preloadModule(): Expected two arguments, a non-empty `href` string and, optionally, an `options` object with an `as` property valid for a `<link rel="modulepreload" as="..." />` tag.%s',p),typeof d=="string"&&(f?(p=n(f.as,f.crossOrigin),l.d.m(d,{as:typeof f.as=="string"&&f.as!=="script"?f.as:void 0,crossOrigin:p,integrity:typeof f.integrity=="string"?f.integrity:void 0})):l.d.m(d))},Go.requestFormReset=function(d){l.d.r(d)},Go.unstable_batchedUpdates=function(d,f){return d(f)},Go.useFormState=function(d,f,p){return s().useFormState(d,f,p)},Go.useFormStatus=function(){return s().useHostTransitionStatus()},Go.version="19.2.0",typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error())}()});var Hs=Ee((HUe,RN)=>{"use strict";function iZ(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function")){if(process.env.NODE_ENV!=="production")throw new Error("^_^");try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(iZ)}catch(t){console.error(t)}}}process.env.NODE_ENV==="production"?(iZ(),RN.exports=nZ()):RN.exports=oZ()});var o3e,pJ=ue(()=>{"use strict";o3e=[{id:"ci",name:"Circum Icons",projectUrl:"https://circumicons.com/",license:"MPL-2.0 license",licenseUrl:"https://github.com/Klarr-Agency/Circum-Icons/blob/main/LICENSE"},{id:"fa",name:"Font Awesome 5",projectUrl:"https://fontawesome.com/",license:"CC BY 4.0 License",licenseUrl:"https://creativecommons.org/licenses/by/4.0/"},{id:"fa6",name:"Font Awesome 6",projectUrl:"https://fontawesome.com/",license:"CC BY 4.0 License",licenseUrl:"https://creativecommons.org/licenses/by/4.0/"},{id:"io",name:"Ionicons 4",projectUrl:"https://ionicons.com/",license:"MIT",licenseUrl:"https://github.com/ionic-team/ionicons/blob/master/LICENSE"},{id:"io5",name:"Ionicons 5",projectUrl:"https://ionicons.com/",license:"MIT",licenseUrl:"https://github.com/ionic-team/ionicons/blob/master/LICENSE"},{id:"md",name:"Material Design icons",projectUrl:"http://google.github.io/material-design-icons/",license:"Apache License Version 2.0",licenseUrl:"https://github.com/google/material-design-icons/blob/master/LICENSE"},{id:"ti",name:"Typicons",projectUrl:"http://s-ings.com/typicons/",license:"CC BY-SA 3.0",licenseUrl:"https://creativecommons.org/licenses/by-sa/3.0/"},{id:"go",name:"Github Octicons icons",projectUrl:"https://octicons.github.com/",license:"MIT",licenseUrl:"https://github.com/primer/octicons/blob/master/LICENSE"},{id:"fi",name:"Feather",projectUrl:"https://feathericons.com/",license:"MIT",licenseUrl:"https://github.com/feathericons/feather/blob/master/LICENSE"},{id:"lu",name:"Lucide",projectUrl:"https://lucide.dev/",license:"ISC",licenseUrl:"https://github.com/lucide-icons/lucide/blob/main/LICENSE"},{id:"gi",name:"Game Icons",projectUrl:"https://game-icons.net/",license:"CC BY 3.0",licenseUrl:"https://creativecommons.org/licenses/by/3.0/"},{id:"wi",name:"Weather Icons",projectUrl:"https://erikflowers.github.io/weather-icons/",license:"SIL OFL 1.1",licenseUrl:"http://scripts.sil.org/OFL"},{id:"di",name:"Devicons",projectUrl:"https://vorillaz.github.io/devicons/",license:"MIT",licenseUrl:"https://opensource.org/licenses/MIT"},{id:"ai",name:"Ant Design Icons",projectUrl:"https://github.com/ant-design/ant-design-icons",license:"MIT",licenseUrl:"https://opensource.org/licenses/MIT"},{id:"bs",name:"Bootstrap Icons",projectUrl:"https://github.com/twbs/icons",license:"MIT",licenseUrl:"https://opensource.org/licenses/MIT"},{id:"ri",name:"Remix Icon",projectUrl:"https://github.com/Remix-Design/RemixIcon",license:"Apache License Version 2.0",licenseUrl:"http://www.apache.org/licenses/"},{id:"fc",name:"Flat Color Icons",projectUrl:"https://github.com/icons8/flat-color-icons",license:"MIT",licenseUrl:"https://opensource.org/licenses/MIT"},{id:"gr",name:"Grommet-Icons",projectUrl:"https://github.com/grommet/grommet-icons",license:"Apache License Version 2.0",licenseUrl:"http://www.apache.org/licenses/"},{id:"hi",name:"Heroicons",projectUrl:"https://github.com/tailwindlabs/heroicons",license:"MIT",licenseUrl:"https://opensource.org/licenses/MIT"},{id:"hi2",name:"Heroicons 2",projectUrl:"https://github.com/tailwindlabs/heroicons",license:"MIT",licenseUrl:"https://opensource.org/licenses/MIT"},{id:"si",name:"Simple Icons",projectUrl:"https://simpleicons.org/",license:"CC0 1.0 Universal",licenseUrl:"https://creativecommons.org/publicdomain/zero/1.0/"},{id:"sl",name:"Simple Line Icons",projectUrl:"https://thesabbir.github.io/simple-line-icons/",license:"MIT",licenseUrl:"https://opensource.org/licenses/MIT"},{id:"im",name:"IcoMoon Free",projectUrl:"https://github.com/Keyamoon/IcoMoon-Free",license:"CC BY 4.0 License",licenseUrl:"https://github.com/Keyamoon/IcoMoon-Free/blob/master/License.txt"},{id:"bi",name:"BoxIcons",projectUrl:"https://github.com/atisawd/boxicons",license:"MIT",licenseUrl:"https://github.com/atisawd/boxicons/blob/master/LICENSE"},{id:"cg",name:"css.gg",projectUrl:"https://github.com/astrit/css.gg",license:"MIT",licenseUrl:"https://opensource.org/licenses/MIT"},{id:"vsc",name:"VS Code Icons",projectUrl:"https://github.com/microsoft/vscode-codicons",license:"CC BY 4.0",licenseUrl:"https://creativecommons.org/licenses/by/4.0/"},{id:"tb",name:"Tabler Icons",projectUrl:"https://github.com/tabler/tabler-icons",license:"MIT",licenseUrl:"https://opensource.org/licenses/MIT"},{id:"tfi",name:"Themify Icons",projectUrl:"https://github.com/lykmapipo/themify-icons",license:"MIT",licenseUrl:"https://github.com/thecreation/standard-icons/blob/master/modules/themify-icons/LICENSE"},{id:"rx",name:"Radix Icons",projectUrl:"https://icons.radix-ui.com",license:"MIT",licenseUrl:"https://github.com/radix-ui/icons/blob/master/LICENSE"},{id:"pi",name:"Phosphor Icons",projectUrl:"https://github.com/phosphor-icons/core",license:"MIT",licenseUrl:"https://github.com/phosphor-icons/core/blob/main/LICENSE"},{id:"lia",name:"Icons8 Line Awesome",projectUrl:"https://icons8.com/line-awesome",license:"MIT",licenseUrl:"https://github.com/icons8/line-awesome/blob/master/LICENSE.md"}]});var T8,AS,OS,$8=ue(()=>{"use strict";T8=k(K(),1),AS={color:void 0,size:void 0,className:void 0,style:void 0,attr:void 0},OS=T8.default.createContext&&T8.default.createContext(AS)});function s3e(t,e){if(t==null)return{};var r=a3e(t,e),n,o;if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);for(o=0;o<i.length;o++)n=i[o],!(e.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(t,n)&&(r[n]=t[n])}return r}function a3e(t,e){if(t==null)return{};var r={};for(var n in t)if(Object.prototype.hasOwnProperty.call(t,n)){if(e.indexOf(n)>=0)continue;r[n]=t[n]}return r}function MS(){return MS=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(t[n]=r[n])}return t},MS.apply(this,arguments)}function mJ(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(o){return Object.getOwnPropertyDescriptor(t,o).enumerable})),r.push.apply(r,n)}return r}function IS(t){for(var e=1;e<arguments.length;e++){var r=arguments[e]!=null?arguments[e]:{};e%2?mJ(Object(r),!0).forEach(function(n){l3e(t,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):mJ(Object(r)).forEach(function(n){Object.defineProperty(t,n,Object.getOwnPropertyDescriptor(r,n))})}return t}function l3e(t,e,r){return e=c3e(e),e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function c3e(t){var e=u3e(t,"string");return typeof e=="symbol"?e:e+""}function u3e(t,e){if(typeof t!="object"||!t)return t;var r=t[Symbol.toPrimitive];if(r!==void 0){var n=r.call(t,e||"default");if(typeof n!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}function gJ(t){return t&&t.map((e,r)=>xh.default.createElement(e.tag,IS({key:r},e.attr),gJ(e.child)))}function ut(t){return e=>xh.default.createElement(hJ,MS({attr:IS({},t.attr)},e),gJ(t.child))}function hJ(t){var e=r=>{var{attr:n,size:o,title:i}=t,s=s3e(t,i3e),a=o||r.size||"1em",l;return r.className&&(l=r.className),t.className&&(l=(l?l+" ":"")+t.className),xh.default.createElement("svg",MS({stroke:"currentColor",fill:"currentColor",strokeWidth:"0"},r.attr,n,s,{className:l,style:IS(IS({color:t.color||r.color},r.style),t.style),height:a,width:a,xmlns:"http://www.w3.org/2000/svg"}),i&&xh.default.createElement("title",null,i),t.children)};return OS!==void 0?xh.default.createElement(OS.Consumer,null,r=>e(r)):e(AS)}var xh,i3e,vJ=ue(()=>{"use strict";xh=k(K(),1);$8();i3e=["attr","size","title"]});var Zs={};Pt(Zs,{DefaultContext:()=>AS,GenIcon:()=>ut,IconBase:()=>hJ,IconContext:()=>OS,IconsManifest:()=>o3e});var ki=ue(()=>{"use strict";pJ();vJ();$8()});var bJ=Ee((jQe,yJ)=>{"use strict";var d3e=(ki(),sa(Zs)).GenIcon;yJ.exports.MdSettings=function(e){return d3e({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0V0z"},child:[]},{tag:"path",attr:{d:"M19.14 12.94c.04-.3.06-.61.06-.94 0-.32-.02-.64-.07-.94l2.03-1.58a.49.49 0 0 0 .12-.61l-1.92-3.32a.488.488 0 0 0-.59-.22l-2.39.96c-.5-.38-1.03-.7-1.62-.94l-.36-2.54a.484.484 0 0 0-.48-.41h-3.84c-.24 0-.43.17-.47.41l-.36 2.54c-.59.24-1.13.57-1.62.94l-2.39-.96c-.22-.08-.47 0-.59.22L2.74 8.87c-.12.21-.08.47.12.61l2.03 1.58c-.05.3-.09.63-.09.94s.02.64.07.94l-2.03 1.58a.49.49 0 0 0-.12.61l1.92 3.32c.12.22.37.29.59.22l2.39-.96c.5.38 1.03.7 1.62.94l.36 2.54c.05.24.24.41.48.41h3.84c.24 0 .44-.17.47-.41l.36-2.54c.59-.24 1.13-.56 1.62-.94l2.39.96c.22.08.47 0 .59-.22l1.92-3.32c.12-.22.07-.47-.12-.61l-2.01-1.58zM12 15.6c-1.98 0-3.6-1.62-3.6-3.6s1.62-3.6 3.6-3.6 3.6 1.62 3.6 3.6-1.62 3.6-3.6 3.6z"},child:[]}]})(e)}});var N8=Ee((VQe,xJ)=>{"use strict";var f3e=(ki(),sa(Zs)).GenIcon;xJ.exports.CgClose=function(e){return f3e({tag:"svg",attr:{viewBox:"0 0 24 24",fill:"none"},child:[{tag:"path",attr:{d:"M6.2253 4.81108C5.83477 4.42056 5.20161 4.42056 4.81108 4.81108C4.42056 5.20161 4.42056 5.83477 4.81108 6.2253L10.5858 12L4.81114 17.7747C4.42062 18.1652 4.42062 18.7984 4.81114 19.1889C5.20167 19.5794 5.83483 19.5794 6.22535 19.1889L12 13.4142L17.7747 19.1889C18.1652 19.5794 18.7984 19.5794 19.1889 19.1889C19.5794 18.7984 19.5794 18.1652 19.1889 17.7747L13.4142 12L19.189 6.2253C19.5795 5.83477 19.5795 5.20161 19.189 4.81108C18.7985 4.42056 18.1653 4.42056 17.7748 4.81108L12 10.5858L6.2253 4.81108Z",fill:"currentColor"},child:[]}]})(e)}});var SJ=Ee((HQe,CJ)=>{"use strict";var p3e=(ki(),sa(Zs)).GenIcon;CJ.exports.CgChevronDown=function(e){return p3e({tag:"svg",attr:{viewBox:"0 0 24 24",fill:"none"},child:[{tag:"path",attr:{d:"M6.34317 7.75732L4.92896 9.17154L12 16.2426L19.0711 9.17157L17.6569 7.75735L12 13.4142L6.34317 7.75732Z",fill:"currentColor"},child:[]}]})(e)}});var D8=Ee((UQe,_J)=>{"use strict";var m3e=(ki(),sa(Zs)).GenIcon;_J.exports.MdWarning=function(e){return m3e({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"},child:[]},{tag:"path",attr:{d:"M1 21h22L12 2 1 21zm12-3h-2v-2h2v2zm0-4h-2v-4h2v4z"},child:[]}]})(e)}});var EJ=Ee((KQe,wJ)=>{"use strict";var g3e=(ki(),sa(Zs)).GenIcon;wJ.exports.MdInfoOutline=function(e){return g3e({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0V0z"},child:[]},{tag:"path",attr:{d:"M11 7h2v2h-2V7zm0 4h2v6h-2v-6zm1-9C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm0 18c-4.41 0-8-3.59-8-8s3.59-8 8-8 8 3.59 8 8-3.59 8-8 8z"},child:[]}]})(e)}});var ey=Ee((YQe,lc)=>{"use strict";function L8(t){"@babel/helpers - typeof";return lc.exports=L8=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},lc.exports.__esModule=!0,lc.exports.default=lc.exports,L8(t)}lc.exports=L8,lc.exports.__esModule=!0,lc.exports.default=lc.exports});var NJ=Ee((ZQe,ty)=>{"use strict";var $J=ey().default;function h3e(t,e){if($J(t)!="object"||!t)return t;var r=t[Symbol.toPrimitive];if(r!==void 0){var n=r.call(t,e||"default");if($J(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}ty.exports=h3e,ty.exports.__esModule=!0,ty.exports.default=ty.exports});var A8=Ee((qQe,ry)=>{"use strict";var v3e=ey().default,y3e=NJ();function b3e(t){var e=y3e(t,"string");return v3e(e)=="symbol"?e:e+""}ry.exports=b3e,ry.exports.__esModule=!0,ry.exports.default=ry.exports});var O8=Ee((JQe,ny)=>{"use strict";var x3e=A8();function C3e(t,e,r){return(e=x3e(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}ny.exports=C3e,ny.exports.__esModule=!0,ny.exports.default=ny.exports});var LJ=Ee((XQe,oy)=>{"use strict";var S3e=O8();function DJ(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(o){return Object.getOwnPropertyDescriptor(t,o).enumerable})),r.push.apply(r,n)}return r}function _3e(t){for(var e=1;e<arguments.length;e++){var r=arguments[e]!=null?arguments[e]:{};e%2?DJ(Object(r),!0).forEach(function(n){S3e(t,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):DJ(Object(r)).forEach(function(n){Object.defineProperty(t,n,Object.getOwnPropertyDescriptor(r,n))})}return t}oy.exports=_3e,oy.exports.__esModule=!0,oy.exports.default=oy.exports});var AJ=Ee((QQe,iy)=>{"use strict";function w3e(t){if(Array.isArray(t))return t}iy.exports=w3e,iy.exports.__esModule=!0,iy.exports.default=iy.exports});var OJ=Ee((eet,sy)=>{"use strict";function E3e(t,e){var r=t==null?null:typeof Symbol<"u"&&t[Symbol.iterator]||t["@@iterator"];if(r!=null){var n,o,i,s,a=[],l=!0,c=!1;try{if(i=(r=r.call(t)).next,e===0){if(Object(r)!==r)return;l=!1}else for(;!(l=(n=i.call(r)).done)&&(a.push(n.value),a.length!==e);l=!0);}catch(u){c=!0,o=u}finally{try{if(!l&&r.return!=null&&(s=r.return(),Object(s)!==s))return}finally{if(c)throw o}}return a}}sy.exports=E3e,sy.exports.__esModule=!0,sy.exports.default=sy.exports});var M8=Ee((tet,ay)=>{"use strict";function T3e(t,e){(e==null||e>t.length)&&(e=t.length);for(var r=0,n=Array(e);r<e;r++)n[r]=t[r];return n}ay.exports=T3e,ay.exports.__esModule=!0,ay.exports.default=ay.exports});var I8=Ee((ret,ly)=>{"use strict";var MJ=M8();function $3e(t,e){if(t){if(typeof t=="string")return MJ(t,e);var r={}.toString.call(t).slice(8,-1);return r==="Object"&&t.constructor&&(r=t.constructor.name),r==="Map"||r==="Set"?Array.from(t):r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?MJ(t,e):void 0}}ly.exports=$3e,ly.exports.__esModule=!0,ly.exports.default=ly.exports});var IJ=Ee((net,cy)=>{"use strict";function N3e(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
72
|
+
See https://react.dev/link/invalid-hook-call for tips about how to debug and fix this problem.`),d}typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(Error());var a=K(),l={d:{f:t,r:function(){throw Error("Invalid form element. requestFormReset must be passed a form that was rendered by React.")},D:t,C:t,L:t,m:t,X:t,S:t,M:t},p:0,findDOMNode:null},c=Symbol.for("react.portal"),u=a.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;typeof Map=="function"&&Map.prototype!=null&&typeof Map.prototype.forEach=="function"&&typeof Set=="function"&&Set.prototype!=null&&typeof Set.prototype.clear=="function"&&typeof Set.prototype.forEach=="function"||console.error("React depends on Map and Set built-in types. Make sure that you load a polyfill in older browsers. https://reactjs.org/link/react-polyfills"),Go.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=l,Go.createPortal=function(d,f){var p=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!f||f.nodeType!==1&&f.nodeType!==9&&f.nodeType!==11)throw Error("Target container is not a DOM element.");return r(d,f,null,p)},Go.flushSync=function(d){var f=u.T,p=l.p;try{if(u.T=null,l.p=2,d)return d()}finally{u.T=f,l.p=p,l.d.f()&&console.error("flushSync was called from inside a lifecycle method. React cannot flush when React is already rendering. Consider moving this call to a scheduler task or micro task.")}},Go.preconnect=function(d,f){typeof d=="string"&&d?f!=null&&typeof f!="object"?console.error("ReactDOM.preconnect(): Expected the `options` argument (second) to be an object but encountered %s instead. The only supported option at this time is `crossOrigin` which accepts a string.",i(f)):f!=null&&typeof f.crossOrigin!="string"&&console.error("ReactDOM.preconnect(): Expected the `crossOrigin` option (second argument) to be a string but encountered %s instead. Try removing this option or passing a string value instead.",o(f.crossOrigin)):console.error("ReactDOM.preconnect(): Expected the `href` argument (first) to be a non-empty string but encountered %s instead.",o(d)),typeof d=="string"&&(f?(f=f.crossOrigin,f=typeof f=="string"?f==="use-credentials"?f:"":void 0):f=null,l.d.C(d,f))},Go.prefetchDNS=function(d){if(typeof d!="string"||!d)console.error("ReactDOM.prefetchDNS(): Expected the `href` argument (first) to be a non-empty string but encountered %s instead.",o(d));else if(1<arguments.length){var f=arguments[1];typeof f=="object"&&f.hasOwnProperty("crossOrigin")?console.error("ReactDOM.prefetchDNS(): Expected only one argument, `href`, but encountered %s as a second argument instead. This argument is reserved for future options and is currently disallowed. It looks like the you are attempting to set a crossOrigin property for this DNS lookup hint. Browsers do not perform DNS queries using CORS and setting this attribute on the resource hint has no effect. Try calling ReactDOM.prefetchDNS() with just a single string argument, `href`.",i(f)):console.error("ReactDOM.prefetchDNS(): Expected only one argument, `href`, but encountered %s as a second argument instead. This argument is reserved for future options and is currently disallowed. Try calling ReactDOM.prefetchDNS() with just a single string argument, `href`.",i(f))}typeof d=="string"&&l.d.D(d)},Go.preinit=function(d,f){if(typeof d=="string"&&d?f==null||typeof f!="object"?console.error("ReactDOM.preinit(): Expected the `options` argument (second) to be an object with an `as` property describing the type of resource to be preinitialized but encountered %s instead.",i(f)):f.as!=="style"&&f.as!=="script"&&console.error('ReactDOM.preinit(): Expected the `as` property in the `options` argument (second) to contain a valid value describing the type of resource to be preinitialized but encountered %s instead. Valid values for `as` are "style" and "script".',i(f.as)):console.error("ReactDOM.preinit(): Expected the `href` argument (first) to be a non-empty string but encountered %s instead.",o(d)),typeof d=="string"&&f&&typeof f.as=="string"){var p=f.as,m=n(p,f.crossOrigin),g=typeof f.integrity=="string"?f.integrity:void 0,h=typeof f.fetchPriority=="string"?f.fetchPriority:void 0;p==="style"?l.d.S(d,typeof f.precedence=="string"?f.precedence:void 0,{crossOrigin:m,integrity:g,fetchPriority:h}):p==="script"&&l.d.X(d,{crossOrigin:m,integrity:g,fetchPriority:h,nonce:typeof f.nonce=="string"?f.nonce:void 0})}},Go.preinitModule=function(d,f){var p="";if(typeof d=="string"&&d||(p+=" The `href` argument encountered was "+o(d)+"."),f!==void 0&&typeof f!="object"?p+=" The `options` argument encountered was "+o(f)+".":f&&"as"in f&&f.as!=="script"&&(p+=" The `as` option encountered was "+i(f.as)+"."),p)console.error("ReactDOM.preinitModule(): Expected up to two arguments, a non-empty `href` string and, optionally, an `options` object with a valid `as` property.%s",p);else switch(p=f&&typeof f.as=="string"?f.as:"script",p){case"script":break;default:p=i(p),console.error('ReactDOM.preinitModule(): Currently the only supported "as" type for this function is "script" but received "%s" instead. This warning was generated for `href` "%s". In the future other module types will be supported, aligning with the import-attributes proposal. Learn more here: (https://github.com/tc39/proposal-import-attributes)',p,d)}typeof d=="string"&&(typeof f=="object"&&f!==null?(f.as==null||f.as==="script")&&(p=n(f.as,f.crossOrigin),l.d.M(d,{crossOrigin:p,integrity:typeof f.integrity=="string"?f.integrity:void 0,nonce:typeof f.nonce=="string"?f.nonce:void 0})):f==null&&l.d.M(d))},Go.preload=function(d,f){var p="";if(typeof d=="string"&&d||(p+=" The `href` argument encountered was "+o(d)+"."),f==null||typeof f!="object"?p+=" The `options` argument encountered was "+o(f)+".":typeof f.as=="string"&&f.as||(p+=" The `as` option encountered was "+o(f.as)+"."),p&&console.error('ReactDOM.preload(): Expected two arguments, a non-empty `href` string and an `options` object with an `as` property valid for a `<link rel="preload" as="..." />` tag.%s',p),typeof d=="string"&&typeof f=="object"&&f!==null&&typeof f.as=="string"){p=f.as;var m=n(p,f.crossOrigin);l.d.L(d,p,{crossOrigin:m,integrity:typeof f.integrity=="string"?f.integrity:void 0,nonce:typeof f.nonce=="string"?f.nonce:void 0,type:typeof f.type=="string"?f.type:void 0,fetchPriority:typeof f.fetchPriority=="string"?f.fetchPriority:void 0,referrerPolicy:typeof f.referrerPolicy=="string"?f.referrerPolicy:void 0,imageSrcSet:typeof f.imageSrcSet=="string"?f.imageSrcSet:void 0,imageSizes:typeof f.imageSizes=="string"?f.imageSizes:void 0,media:typeof f.media=="string"?f.media:void 0})}},Go.preloadModule=function(d,f){var p="";typeof d=="string"&&d||(p+=" The `href` argument encountered was "+o(d)+"."),f!==void 0&&typeof f!="object"?p+=" The `options` argument encountered was "+o(f)+".":f&&"as"in f&&typeof f.as!="string"&&(p+=" The `as` option encountered was "+o(f.as)+"."),p&&console.error('ReactDOM.preloadModule(): Expected two arguments, a non-empty `href` string and, optionally, an `options` object with an `as` property valid for a `<link rel="modulepreload" as="..." />` tag.%s',p),typeof d=="string"&&(f?(p=n(f.as,f.crossOrigin),l.d.m(d,{as:typeof f.as=="string"&&f.as!=="script"?f.as:void 0,crossOrigin:p,integrity:typeof f.integrity=="string"?f.integrity:void 0})):l.d.m(d))},Go.requestFormReset=function(d){l.d.r(d)},Go.unstable_batchedUpdates=function(d,f){return d(f)},Go.useFormState=function(d,f,p){return s().useFormState(d,f,p)},Go.useFormStatus=function(){return s().useHostTransitionStatus()},Go.version="19.2.1",typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error())}()});var Hs=Ee((HUe,RN)=>{"use strict";function iZ(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function")){if(process.env.NODE_ENV!=="production")throw new Error("^_^");try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(iZ)}catch(t){console.error(t)}}}process.env.NODE_ENV==="production"?(iZ(),RN.exports=nZ()):RN.exports=oZ()});var o3e,pJ=ue(()=>{"use strict";o3e=[{id:"ci",name:"Circum Icons",projectUrl:"https://circumicons.com/",license:"MPL-2.0 license",licenseUrl:"https://github.com/Klarr-Agency/Circum-Icons/blob/main/LICENSE"},{id:"fa",name:"Font Awesome 5",projectUrl:"https://fontawesome.com/",license:"CC BY 4.0 License",licenseUrl:"https://creativecommons.org/licenses/by/4.0/"},{id:"fa6",name:"Font Awesome 6",projectUrl:"https://fontawesome.com/",license:"CC BY 4.0 License",licenseUrl:"https://creativecommons.org/licenses/by/4.0/"},{id:"io",name:"Ionicons 4",projectUrl:"https://ionicons.com/",license:"MIT",licenseUrl:"https://github.com/ionic-team/ionicons/blob/master/LICENSE"},{id:"io5",name:"Ionicons 5",projectUrl:"https://ionicons.com/",license:"MIT",licenseUrl:"https://github.com/ionic-team/ionicons/blob/master/LICENSE"},{id:"md",name:"Material Design icons",projectUrl:"http://google.github.io/material-design-icons/",license:"Apache License Version 2.0",licenseUrl:"https://github.com/google/material-design-icons/blob/master/LICENSE"},{id:"ti",name:"Typicons",projectUrl:"http://s-ings.com/typicons/",license:"CC BY-SA 3.0",licenseUrl:"https://creativecommons.org/licenses/by-sa/3.0/"},{id:"go",name:"Github Octicons icons",projectUrl:"https://octicons.github.com/",license:"MIT",licenseUrl:"https://github.com/primer/octicons/blob/master/LICENSE"},{id:"fi",name:"Feather",projectUrl:"https://feathericons.com/",license:"MIT",licenseUrl:"https://github.com/feathericons/feather/blob/master/LICENSE"},{id:"lu",name:"Lucide",projectUrl:"https://lucide.dev/",license:"ISC",licenseUrl:"https://github.com/lucide-icons/lucide/blob/main/LICENSE"},{id:"gi",name:"Game Icons",projectUrl:"https://game-icons.net/",license:"CC BY 3.0",licenseUrl:"https://creativecommons.org/licenses/by/3.0/"},{id:"wi",name:"Weather Icons",projectUrl:"https://erikflowers.github.io/weather-icons/",license:"SIL OFL 1.1",licenseUrl:"http://scripts.sil.org/OFL"},{id:"di",name:"Devicons",projectUrl:"https://vorillaz.github.io/devicons/",license:"MIT",licenseUrl:"https://opensource.org/licenses/MIT"},{id:"ai",name:"Ant Design Icons",projectUrl:"https://github.com/ant-design/ant-design-icons",license:"MIT",licenseUrl:"https://opensource.org/licenses/MIT"},{id:"bs",name:"Bootstrap Icons",projectUrl:"https://github.com/twbs/icons",license:"MIT",licenseUrl:"https://opensource.org/licenses/MIT"},{id:"ri",name:"Remix Icon",projectUrl:"https://github.com/Remix-Design/RemixIcon",license:"Apache License Version 2.0",licenseUrl:"http://www.apache.org/licenses/"},{id:"fc",name:"Flat Color Icons",projectUrl:"https://github.com/icons8/flat-color-icons",license:"MIT",licenseUrl:"https://opensource.org/licenses/MIT"},{id:"gr",name:"Grommet-Icons",projectUrl:"https://github.com/grommet/grommet-icons",license:"Apache License Version 2.0",licenseUrl:"http://www.apache.org/licenses/"},{id:"hi",name:"Heroicons",projectUrl:"https://github.com/tailwindlabs/heroicons",license:"MIT",licenseUrl:"https://opensource.org/licenses/MIT"},{id:"hi2",name:"Heroicons 2",projectUrl:"https://github.com/tailwindlabs/heroicons",license:"MIT",licenseUrl:"https://opensource.org/licenses/MIT"},{id:"si",name:"Simple Icons",projectUrl:"https://simpleicons.org/",license:"CC0 1.0 Universal",licenseUrl:"https://creativecommons.org/publicdomain/zero/1.0/"},{id:"sl",name:"Simple Line Icons",projectUrl:"https://thesabbir.github.io/simple-line-icons/",license:"MIT",licenseUrl:"https://opensource.org/licenses/MIT"},{id:"im",name:"IcoMoon Free",projectUrl:"https://github.com/Keyamoon/IcoMoon-Free",license:"CC BY 4.0 License",licenseUrl:"https://github.com/Keyamoon/IcoMoon-Free/blob/master/License.txt"},{id:"bi",name:"BoxIcons",projectUrl:"https://github.com/atisawd/boxicons",license:"MIT",licenseUrl:"https://github.com/atisawd/boxicons/blob/master/LICENSE"},{id:"cg",name:"css.gg",projectUrl:"https://github.com/astrit/css.gg",license:"MIT",licenseUrl:"https://opensource.org/licenses/MIT"},{id:"vsc",name:"VS Code Icons",projectUrl:"https://github.com/microsoft/vscode-codicons",license:"CC BY 4.0",licenseUrl:"https://creativecommons.org/licenses/by/4.0/"},{id:"tb",name:"Tabler Icons",projectUrl:"https://github.com/tabler/tabler-icons",license:"MIT",licenseUrl:"https://opensource.org/licenses/MIT"},{id:"tfi",name:"Themify Icons",projectUrl:"https://github.com/lykmapipo/themify-icons",license:"MIT",licenseUrl:"https://github.com/thecreation/standard-icons/blob/master/modules/themify-icons/LICENSE"},{id:"rx",name:"Radix Icons",projectUrl:"https://icons.radix-ui.com",license:"MIT",licenseUrl:"https://github.com/radix-ui/icons/blob/master/LICENSE"},{id:"pi",name:"Phosphor Icons",projectUrl:"https://github.com/phosphor-icons/core",license:"MIT",licenseUrl:"https://github.com/phosphor-icons/core/blob/main/LICENSE"},{id:"lia",name:"Icons8 Line Awesome",projectUrl:"https://icons8.com/line-awesome",license:"MIT",licenseUrl:"https://github.com/icons8/line-awesome/blob/master/LICENSE.md"}]});var T8,AS,OS,$8=ue(()=>{"use strict";T8=k(K(),1),AS={color:void 0,size:void 0,className:void 0,style:void 0,attr:void 0},OS=T8.default.createContext&&T8.default.createContext(AS)});function s3e(t,e){if(t==null)return{};var r=a3e(t,e),n,o;if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);for(o=0;o<i.length;o++)n=i[o],!(e.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(t,n)&&(r[n]=t[n])}return r}function a3e(t,e){if(t==null)return{};var r={};for(var n in t)if(Object.prototype.hasOwnProperty.call(t,n)){if(e.indexOf(n)>=0)continue;r[n]=t[n]}return r}function MS(){return MS=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(t[n]=r[n])}return t},MS.apply(this,arguments)}function mJ(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(o){return Object.getOwnPropertyDescriptor(t,o).enumerable})),r.push.apply(r,n)}return r}function IS(t){for(var e=1;e<arguments.length;e++){var r=arguments[e]!=null?arguments[e]:{};e%2?mJ(Object(r),!0).forEach(function(n){l3e(t,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):mJ(Object(r)).forEach(function(n){Object.defineProperty(t,n,Object.getOwnPropertyDescriptor(r,n))})}return t}function l3e(t,e,r){return e=c3e(e),e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function c3e(t){var e=u3e(t,"string");return typeof e=="symbol"?e:e+""}function u3e(t,e){if(typeof t!="object"||!t)return t;var r=t[Symbol.toPrimitive];if(r!==void 0){var n=r.call(t,e||"default");if(typeof n!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}function gJ(t){return t&&t.map((e,r)=>xh.default.createElement(e.tag,IS({key:r},e.attr),gJ(e.child)))}function ut(t){return e=>xh.default.createElement(hJ,MS({attr:IS({},t.attr)},e),gJ(t.child))}function hJ(t){var e=r=>{var{attr:n,size:o,title:i}=t,s=s3e(t,i3e),a=o||r.size||"1em",l;return r.className&&(l=r.className),t.className&&(l=(l?l+" ":"")+t.className),xh.default.createElement("svg",MS({stroke:"currentColor",fill:"currentColor",strokeWidth:"0"},r.attr,n,s,{className:l,style:IS(IS({color:t.color||r.color},r.style),t.style),height:a,width:a,xmlns:"http://www.w3.org/2000/svg"}),i&&xh.default.createElement("title",null,i),t.children)};return OS!==void 0?xh.default.createElement(OS.Consumer,null,r=>e(r)):e(AS)}var xh,i3e,vJ=ue(()=>{"use strict";xh=k(K(),1);$8();i3e=["attr","size","title"]});var Zs={};Pt(Zs,{DefaultContext:()=>AS,GenIcon:()=>ut,IconBase:()=>hJ,IconContext:()=>OS,IconsManifest:()=>o3e});var ki=ue(()=>{"use strict";pJ();vJ();$8()});var bJ=Ee((jQe,yJ)=>{"use strict";var d3e=(ki(),sa(Zs)).GenIcon;yJ.exports.MdSettings=function(e){return d3e({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0V0z"},child:[]},{tag:"path",attr:{d:"M19.14 12.94c.04-.3.06-.61.06-.94 0-.32-.02-.64-.07-.94l2.03-1.58a.49.49 0 0 0 .12-.61l-1.92-3.32a.488.488 0 0 0-.59-.22l-2.39.96c-.5-.38-1.03-.7-1.62-.94l-.36-2.54a.484.484 0 0 0-.48-.41h-3.84c-.24 0-.43.17-.47.41l-.36 2.54c-.59.24-1.13.57-1.62.94l-2.39-.96c-.22-.08-.47 0-.59.22L2.74 8.87c-.12.21-.08.47.12.61l2.03 1.58c-.05.3-.09.63-.09.94s.02.64.07.94l-2.03 1.58a.49.49 0 0 0-.12.61l1.92 3.32c.12.22.37.29.59.22l2.39-.96c.5.38 1.03.7 1.62.94l.36 2.54c.05.24.24.41.48.41h3.84c.24 0 .44-.17.47-.41l.36-2.54c.59-.24 1.13-.56 1.62-.94l2.39.96c.22.08.47 0 .59-.22l1.92-3.32c.12-.22.07-.47-.12-.61l-2.01-1.58zM12 15.6c-1.98 0-3.6-1.62-3.6-3.6s1.62-3.6 3.6-3.6 3.6 1.62 3.6 3.6-1.62 3.6-3.6 3.6z"},child:[]}]})(e)}});var N8=Ee((VQe,xJ)=>{"use strict";var f3e=(ki(),sa(Zs)).GenIcon;xJ.exports.CgClose=function(e){return f3e({tag:"svg",attr:{viewBox:"0 0 24 24",fill:"none"},child:[{tag:"path",attr:{d:"M6.2253 4.81108C5.83477 4.42056 5.20161 4.42056 4.81108 4.81108C4.42056 5.20161 4.42056 5.83477 4.81108 6.2253L10.5858 12L4.81114 17.7747C4.42062 18.1652 4.42062 18.7984 4.81114 19.1889C5.20167 19.5794 5.83483 19.5794 6.22535 19.1889L12 13.4142L17.7747 19.1889C18.1652 19.5794 18.7984 19.5794 19.1889 19.1889C19.5794 18.7984 19.5794 18.1652 19.1889 17.7747L13.4142 12L19.189 6.2253C19.5795 5.83477 19.5795 5.20161 19.189 4.81108C18.7985 4.42056 18.1653 4.42056 17.7748 4.81108L12 10.5858L6.2253 4.81108Z",fill:"currentColor"},child:[]}]})(e)}});var SJ=Ee((HQe,CJ)=>{"use strict";var p3e=(ki(),sa(Zs)).GenIcon;CJ.exports.CgChevronDown=function(e){return p3e({tag:"svg",attr:{viewBox:"0 0 24 24",fill:"none"},child:[{tag:"path",attr:{d:"M6.34317 7.75732L4.92896 9.17154L12 16.2426L19.0711 9.17157L17.6569 7.75735L12 13.4142L6.34317 7.75732Z",fill:"currentColor"},child:[]}]})(e)}});var D8=Ee((UQe,_J)=>{"use strict";var m3e=(ki(),sa(Zs)).GenIcon;_J.exports.MdWarning=function(e){return m3e({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"},child:[]},{tag:"path",attr:{d:"M1 21h22L12 2 1 21zm12-3h-2v-2h2v2zm0-4h-2v-4h2v4z"},child:[]}]})(e)}});var EJ=Ee((KQe,wJ)=>{"use strict";var g3e=(ki(),sa(Zs)).GenIcon;wJ.exports.MdInfoOutline=function(e){return g3e({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0V0z"},child:[]},{tag:"path",attr:{d:"M11 7h2v2h-2V7zm0 4h2v6h-2v-6zm1-9C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm0 18c-4.41 0-8-3.59-8-8s3.59-8 8-8 8 3.59 8 8-3.59 8-8 8z"},child:[]}]})(e)}});var ey=Ee((YQe,lc)=>{"use strict";function L8(t){"@babel/helpers - typeof";return lc.exports=L8=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},lc.exports.__esModule=!0,lc.exports.default=lc.exports,L8(t)}lc.exports=L8,lc.exports.__esModule=!0,lc.exports.default=lc.exports});var NJ=Ee((ZQe,ty)=>{"use strict";var $J=ey().default;function h3e(t,e){if($J(t)!="object"||!t)return t;var r=t[Symbol.toPrimitive];if(r!==void 0){var n=r.call(t,e||"default");if($J(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}ty.exports=h3e,ty.exports.__esModule=!0,ty.exports.default=ty.exports});var A8=Ee((qQe,ry)=>{"use strict";var v3e=ey().default,y3e=NJ();function b3e(t){var e=y3e(t,"string");return v3e(e)=="symbol"?e:e+""}ry.exports=b3e,ry.exports.__esModule=!0,ry.exports.default=ry.exports});var O8=Ee((JQe,ny)=>{"use strict";var x3e=A8();function C3e(t,e,r){return(e=x3e(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}ny.exports=C3e,ny.exports.__esModule=!0,ny.exports.default=ny.exports});var LJ=Ee((XQe,oy)=>{"use strict";var S3e=O8();function DJ(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(o){return Object.getOwnPropertyDescriptor(t,o).enumerable})),r.push.apply(r,n)}return r}function _3e(t){for(var e=1;e<arguments.length;e++){var r=arguments[e]!=null?arguments[e]:{};e%2?DJ(Object(r),!0).forEach(function(n){S3e(t,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):DJ(Object(r)).forEach(function(n){Object.defineProperty(t,n,Object.getOwnPropertyDescriptor(r,n))})}return t}oy.exports=_3e,oy.exports.__esModule=!0,oy.exports.default=oy.exports});var AJ=Ee((QQe,iy)=>{"use strict";function w3e(t){if(Array.isArray(t))return t}iy.exports=w3e,iy.exports.__esModule=!0,iy.exports.default=iy.exports});var OJ=Ee((eet,sy)=>{"use strict";function E3e(t,e){var r=t==null?null:typeof Symbol<"u"&&t[Symbol.iterator]||t["@@iterator"];if(r!=null){var n,o,i,s,a=[],l=!0,c=!1;try{if(i=(r=r.call(t)).next,e===0){if(Object(r)!==r)return;l=!1}else for(;!(l=(n=i.call(r)).done)&&(a.push(n.value),a.length!==e);l=!0);}catch(u){c=!0,o=u}finally{try{if(!l&&r.return!=null&&(s=r.return(),Object(s)!==s))return}finally{if(c)throw o}}return a}}sy.exports=E3e,sy.exports.__esModule=!0,sy.exports.default=sy.exports});var M8=Ee((tet,ay)=>{"use strict";function T3e(t,e){(e==null||e>t.length)&&(e=t.length);for(var r=0,n=Array(e);r<e;r++)n[r]=t[r];return n}ay.exports=T3e,ay.exports.__esModule=!0,ay.exports.default=ay.exports});var I8=Ee((ret,ly)=>{"use strict";var MJ=M8();function $3e(t,e){if(t){if(typeof t=="string")return MJ(t,e);var r={}.toString.call(t).slice(8,-1);return r==="Object"&&t.constructor&&(r=t.constructor.name),r==="Map"||r==="Set"?Array.from(t):r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?MJ(t,e):void 0}}ly.exports=$3e,ly.exports.__esModule=!0,ly.exports.default=ly.exports});var IJ=Ee((net,cy)=>{"use strict";function N3e(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
73
73
|
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}cy.exports=N3e,cy.exports.__esModule=!0,cy.exports.default=cy.exports});var kJ=Ee((oet,uy)=>{"use strict";var D3e=AJ(),L3e=OJ(),A3e=I8(),O3e=IJ();function M3e(t,e){return D3e(t)||L3e(t,e)||A3e(t,e)||O3e()}uy.exports=M3e,uy.exports.__esModule=!0,uy.exports.default=uy.exports});var RJ=Ee((iet,dy)=>{"use strict";function I3e(t,e){if(t==null)return{};var r={};for(var n in t)if({}.hasOwnProperty.call(t,n)){if(e.indexOf(n)!==-1)continue;r[n]=t[n]}return r}dy.exports=I3e,dy.exports.__esModule=!0,dy.exports.default=dy.exports});var PJ=Ee((set,fy)=>{"use strict";var k3e=RJ();function R3e(t,e){if(t==null)return{};var r,n,o=k3e(t,e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);for(n=0;n<i.length;n++)r=i[n],e.indexOf(r)===-1&&{}.propertyIsEnumerable.call(t,r)&&(o[r]=t[r])}return o}fy.exports=R3e,fy.exports.__esModule=!0,fy.exports.default=fy.exports});var FJ=Ee((aet,py)=>{"use strict";function P3e(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}py.exports=P3e,py.exports.__esModule=!0,py.exports.default=py.exports});var zJ=Ee((cet,my)=>{"use strict";var F3e=A8();function BJ(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,F3e(n.key),n)}}function B3e(t,e,r){return e&&BJ(t.prototype,e),r&&BJ(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t}my.exports=B3e,my.exports.__esModule=!0,my.exports.default=my.exports});var jJ=Ee((uet,cc)=>{"use strict";function k8(t,e){return cc.exports=k8=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,n){return r.__proto__=n,r},cc.exports.__esModule=!0,cc.exports.default=cc.exports,k8(t,e)}cc.exports=k8,cc.exports.__esModule=!0,cc.exports.default=cc.exports});var VJ=Ee((det,gy)=>{"use strict";var z3e=jJ();function j3e(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&z3e(t,e)}gy.exports=j3e,gy.exports.__esModule=!0,gy.exports.default=gy.exports});var HJ=Ee((fet,uc)=>{"use strict";function R8(t){return uc.exports=R8=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},uc.exports.__esModule=!0,uc.exports.default=uc.exports,R8(t)}uc.exports=R8,uc.exports.__esModule=!0,uc.exports.default=uc.exports});var KJ=Ee((pet,dc)=>{"use strict";function UJ(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(dc.exports=UJ=function(){return!!t},dc.exports.__esModule=!0,dc.exports.default=dc.exports)()}dc.exports=UJ,dc.exports.__esModule=!0,dc.exports.default=dc.exports});var WJ=Ee((met,hy)=>{"use strict";function V3e(t){if(t===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}hy.exports=V3e,hy.exports.__esModule=!0,hy.exports.default=hy.exports});var GJ=Ee((get,vy)=>{"use strict";var H3e=ey().default,U3e=WJ();function K3e(t,e){if(e&&(H3e(e)=="object"||typeof e=="function"))return e;if(e!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return U3e(t)}vy.exports=K3e,vy.exports.__esModule=!0,vy.exports.default=vy.exports});var ZJ=Ee((het,yy)=>{"use strict";var YJ=HJ(),W3e=KJ(),G3e=GJ();function Y3e(t){var e=W3e();return function(){var r,n=YJ(t);if(e){var o=YJ(this).constructor;r=Reflect.construct(n,arguments,o)}else r=n.apply(this,arguments);return G3e(this,r)}}yy.exports=Y3e,yy.exports.__esModule=!0,yy.exports.default=yy.exports});var qJ=Ee((vet,by)=>{"use strict";var Z3e=M8();function q3e(t){if(Array.isArray(t))return Z3e(t)}by.exports=q3e,by.exports.__esModule=!0,by.exports.default=by.exports});var JJ=Ee((yet,xy)=>{"use strict";function J3e(t){if(typeof Symbol<"u"&&t[Symbol.iterator]!=null||t["@@iterator"]!=null)return Array.from(t)}xy.exports=J3e,xy.exports.__esModule=!0,xy.exports.default=xy.exports});var XJ=Ee((bet,Cy)=>{"use strict";function X3e(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
|
|
74
74
|
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}Cy.exports=X3e,Cy.exports.__esModule=!0,Cy.exports.default=Cy.exports});var QJ=Ee((xet,Sy)=>{"use strict";var Q3e=qJ(),eSe=JJ(),tSe=I8(),rSe=XJ();function nSe(t){return Q3e(t)||eSe(t)||tSe(t)||rSe()}Sy.exports=nSe,Sy.exports.__esModule=!0,Sy.exports.default=Sy.exports});var eX=Ee((Cet,_y)=>{"use strict";function oSe(t,e){return e||(e=t.slice(0)),Object.freeze(Object.defineProperties(t,{raw:{value:Object.freeze(e)}}))}_y.exports=oSe,_y.exports.__esModule=!0,_y.exports.default=_y.exports});var rX=Ee((Bet,tX)=>{"use strict";var aSe=(ki(),sa(Zs)).GenIcon;tX.exports.CgSearch=function(e){return aSe({tag:"svg",attr:{viewBox:"0 0 24 24",fill:"none"},child:[{tag:"path",attr:{fillRule:"evenodd",clipRule:"evenodd",d:"M18.319 14.4326C20.7628 11.2941 20.542 6.75347 17.6569 3.86829C14.5327 0.744098 9.46734 0.744098 6.34315 3.86829C3.21895 6.99249 3.21895 12.0578 6.34315 15.182C9.22833 18.0672 13.769 18.2879 16.9075 15.8442C16.921 15.8595 16.9351 15.8745 16.9497 15.8891L21.1924 20.1317C21.5829 20.5223 22.2161 20.5223 22.6066 20.1317C22.9971 19.7412 22.9971 19.1081 22.6066 18.7175L18.364 14.4749C18.3493 14.4603 18.3343 14.4462 18.319 14.4326ZM16.2426 5.28251C18.5858 7.62565 18.5858 11.4246 16.2426 13.7678C13.8995 16.1109 10.1005 16.1109 7.75736 13.7678C5.41421 11.4246 5.41421 7.62565 7.75736 5.28251C10.1005 2.93936 13.8995 2.93936 16.2426 5.28251Z",fill:"currentColor"},child:[]}]})(e)}});var see=Ee((hft,iee)=>{"use strict";var lwe=(ki(),sa(Zs)).GenIcon;iee.exports.CgExternal=function(e){return lwe({tag:"svg",attr:{viewBox:"0 0 24 24",fill:"none"},child:[{tag:"path",attr:{d:"M15.6396 7.02527H12.0181V5.02527H19.0181V12.0253H17.0181V8.47528L12.1042 13.3892L10.6899 11.975L15.6396 7.02527Z",fill:"currentColor"},child:[]},{tag:"path",attr:{d:"M10.9819 6.97473H4.98193V18.9747H16.9819V12.9747H14.9819V16.9747H6.98193V8.97473H10.9819V6.97473Z",fill:"currentColor"},child:[]}]})(e)}});var lee=Ee((vft,aee)=>{"use strict";var cwe=(ki(),sa(Zs)).GenIcon;aee.exports.TbCheck=function(e){return cwe({tag:"svg",attr:{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},child:[{tag:"path",attr:{d:"M5 12l5 5l10 -10"},child:[]}]})(e)}});var uee=Ee((yft,cee)=>{"use strict";var uwe=(ki(),sa(Zs)).GenIcon;cee.exports.TbMinus=function(e){return uwe({tag:"svg",attr:{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},child:[{tag:"path",attr:{d:"M5 12l14 0"},child:[]}]})(e)}});var fee=Ee((bft,dee)=>{"use strict";var dwe=(ki(),sa(Zs)).GenIcon;dee.exports.CgChevronRight=function(e){return dwe({tag:"svg",attr:{viewBox:"0 0 24 24",fill:"none"},child:[{tag:"path",attr:{d:"M10.5858 6.34317L12 4.92896L19.0711 12L12 19.0711L10.5858 17.6569L16.2427 12L10.5858 6.34317Z",fill:"currentColor"},child:[]}]})(e)}});var ete=Ee((cb,zO)=>{"use strict";(function(t,e){typeof cb=="object"&&typeof zO=="object"?zO.exports=e(K()):typeof define=="function"&&define.amd?define(["react"],e):typeof cb=="object"?cb.ReactPaginate=e(K()):t.ReactPaginate=e(t.React)})(cb,t=>(()=>{var e={703:(i,s,a)=>{"use strict";var l=a(414);function c(){}function u(){}u.resetWarningCache=c,i.exports=function(){function d(m,g,h,v,y,b){if(b!==l){var x=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw x.name="Invariant Violation",x}}function f(){return d}d.isRequired=d;var p={array:d,bigint:d,bool:d,func:d,number:d,object:d,string:d,symbol:d,any:d,arrayOf:f,element:d,elementType:d,instanceOf:f,node:d,objectOf:f,oneOf:f,oneOfType:f,shape:f,exact:f,checkPropTypes:u,resetWarningCache:c};return p.PropTypes=p,p}},697:(i,s,a)=>{i.exports=a(703)()},414:i=>{"use strict";i.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},98:i=>{"use strict";i.exports=t}},r={};function n(i){var s=r[i];if(s!==void 0)return s.exports;var a=r[i]={exports:{}};return e[i](a,a.exports,n),a.exports}n.n=i=>{var s=i&&i.__esModule?()=>i.default:()=>i;return n.d(s,{a:s}),s},n.d=(i,s)=>{for(var a in s)n.o(s,a)&&!n.o(i,a)&&Object.defineProperty(i,a,{enumerable:!0,get:s[a]})},n.o=(i,s)=>Object.prototype.hasOwnProperty.call(i,s),n.r=i=>{typeof Symbol<"u"&&Symbol.toStringTag&&Object.defineProperty(i,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(i,"__esModule",{value:!0})};var o={};return(()=>{"use strict";n.r(o),n.d(o,{default:()=>N});var i=n(98),s=n.n(i),a=n(697),l=n.n(a);function c(){return c=Object.assign?Object.assign.bind():function($){for(var E=1;E<arguments.length;E++){var R=arguments[E];for(var O in R)Object.prototype.hasOwnProperty.call(R,O)&&($[O]=R[O])}return $},c.apply(this,arguments)}var u=function($){var E=$.pageClassName,R=$.pageLinkClassName,O=$.page,A=$.selected,B=$.activeClassName,D=$.activeLinkClassName,F=$.getEventListener,P=$.pageSelectedHandler,z=$.href,j=$.extraAriaContext,I=$.pageLabelBuilder,Y=$.rel,te=$.ariaLabel||"Page "+O+(j?" "+j:""),fe=null;return A&&(fe="page",te=$.ariaLabel||"Page "+O+" is your current page",E=E!==void 0?E+" "+B:B,R!==void 0?D!==void 0&&(R=R+" "+D):R=D),s().createElement("li",{className:E},s().createElement("a",c({rel:Y,role:z?void 0:"button",className:R,href:z,tabIndex:A?"-1":"0","aria-label":te,"aria-current":fe,onKeyPress:P},F(P)),I(O)))};u.propTypes={pageSelectedHandler:l().func.isRequired,selected:l().bool.isRequired,pageClassName:l().string,pageLinkClassName:l().string,activeClassName:l().string,activeLinkClassName:l().string,extraAriaContext:l().string,href:l().string,ariaLabel:l().string,page:l().number.isRequired,getEventListener:l().func.isRequired,pageLabelBuilder:l().func.isRequired,rel:l().string};let d=u;function f(){return f=Object.assign?Object.assign.bind():function($){for(var E=1;E<arguments.length;E++){var R=arguments[E];for(var O in R)Object.prototype.hasOwnProperty.call(R,O)&&($[O]=R[O])}return $},f.apply(this,arguments)}var p=function($){var E=$.breakLabel,R=$.breakAriaLabel,O=$.breakClassName,A=$.breakLinkClassName,B=$.breakHandler,D=$.getEventListener,F=O||"break";return s().createElement("li",{className:F},s().createElement("a",f({className:A,role:"button",tabIndex:"0","aria-label":R,onKeyPress:B},D(B)),E))};p.propTypes={breakLabel:l().oneOfType([l().string,l().node]),breakAriaLabel:l().string,breakClassName:l().string,breakLinkClassName:l().string,breakHandler:l().func.isRequired,getEventListener:l().func.isRequired};let m=p;function g($){var E=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"";return $??E}function h($){return h=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(E){return typeof E}:function(E){return E&&typeof Symbol=="function"&&E.constructor===Symbol&&E!==Symbol.prototype?"symbol":typeof E},h($)}function v(){return v=Object.assign?Object.assign.bind():function($){for(var E=1;E<arguments.length;E++){var R=arguments[E];for(var O in R)Object.prototype.hasOwnProperty.call(R,O)&&($[O]=R[O])}return $},v.apply(this,arguments)}function y($,E){for(var R=0;R<E.length;R++){var O=E[R];O.enumerable=O.enumerable||!1,O.configurable=!0,"value"in O&&(O.writable=!0),Object.defineProperty($,O.key,O)}}function b($,E){return b=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(R,O){return R.__proto__=O,R},b($,E)}function x($,E){if(E&&(h(E)==="object"||typeof E=="function"))return E;if(E!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return S($)}function S($){if($===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return $}function _($){return _=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(E){return E.__proto__||Object.getPrototypeOf(E)},_($)}function w($,E,R){return E in $?Object.defineProperty($,E,{value:R,enumerable:!0,configurable:!0,writable:!0}):$[E]=R,$}var T=function($){(function(F,P){if(typeof P!="function"&&P!==null)throw new TypeError("Super expression must either be null or a function");F.prototype=Object.create(P&&P.prototype,{constructor:{value:F,writable:!0,configurable:!0}}),Object.defineProperty(F,"prototype",{writable:!1}),P&&b(F,P)})(D,$);var E,R,O,A,B=(O=D,A=function(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}(),function(){var F,P=_(O);if(A){var z=_(this).constructor;F=Reflect.construct(P,arguments,z)}else F=P.apply(this,arguments);return x(this,F)});function D(F){var P,z;return function(j,I){if(!(j instanceof I))throw new TypeError("Cannot call a class as a function")}(this,D),w(S(P=B.call(this,F)),"handlePreviousPage",function(j){var I=P.state.selected;P.handleClick(j,null,I>0?I-1:void 0,{isPrevious:!0})}),w(S(P),"handleNextPage",function(j){var I=P.state.selected,Y=P.props.pageCount;P.handleClick(j,null,I<Y-1?I+1:void 0,{isNext:!0})}),w(S(P),"handlePageSelected",function(j,I){if(P.state.selected===j)return P.callActiveCallback(j),void P.handleClick(I,null,void 0,{isActive:!0});P.handleClick(I,null,j)}),w(S(P),"handlePageChange",function(j){P.state.selected!==j&&(P.setState({selected:j}),P.callCallback(j))}),w(S(P),"getEventListener",function(j){return w({},P.props.eventListener,j)}),w(S(P),"handleClick",function(j,I,Y){var te=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{},fe=te.isPrevious,xe=fe!==void 0&&fe,Ze=te.isNext,Ae=Ze!==void 0&&Ze,pe=te.isBreak,Me=pe!==void 0&&pe,Z=te.isActive,Ce=Z!==void 0&&Z;j.preventDefault?j.preventDefault():j.returnValue=!1;var ne=P.state.selected,Fe=P.props.onClick,pt=Y;if(Fe){var rt=Fe({index:I,selected:ne,nextSelectedPage:Y,event:j,isPrevious:xe,isNext:Ae,isBreak:Me,isActive:Ce});if(rt===!1)return;Number.isInteger(rt)&&(pt=rt)}pt!==void 0&&P.handlePageChange(pt)}),w(S(P),"handleBreakClick",function(j,I){var Y=P.state.selected;P.handleClick(I,j,Y<j?P.getForwardJump():P.getBackwardJump(),{isBreak:!0})}),w(S(P),"callCallback",function(j){P.props.onPageChange!==void 0&&typeof P.props.onPageChange=="function"&&P.props.onPageChange({selected:j})}),w(S(P),"callActiveCallback",function(j){P.props.onPageActive!==void 0&&typeof P.props.onPageActive=="function"&&P.props.onPageActive({selected:j})}),w(S(P),"getElementPageRel",function(j){var I=P.state.selected,Y=P.props,te=Y.nextPageRel,fe=Y.prevPageRel,xe=Y.selectedPageRel;return I-1===j?fe:I===j?xe:I+1===j?te:void 0}),w(S(P),"pagination",function(){var j=[],I=P.props,Y=I.pageRangeDisplayed,te=I.pageCount,fe=I.marginPagesDisplayed,xe=I.breakLabel,Ze=I.breakClassName,Ae=I.breakLinkClassName,pe=I.breakAriaLabels,Me=P.state.selected;if(te<=Y)for(var Z=0;Z<te;Z++)j.push(P.getPageElement(Z));else{var Ce=Y/2,ne=Y-Ce;Me>te-Y/2?Ce=Y-(ne=te-Me):Me<Y/2&&(ne=Y-(Ce=Me));var Fe,pt,rt=function(He){return P.getPageElement(He)},it=[];for(Fe=0;Fe<te;Fe++){var fo=Fe+1;if(fo<=fe)it.push({type:"page",index:Fe,display:rt(Fe)});else if(fo>te-fe)it.push({type:"page",index:Fe,display:rt(Fe)});else if(Fe>=Me-Ce&&Fe<=Me+(Me===0&&Y>1?ne-1:ne))it.push({type:"page",index:Fe,display:rt(Fe)});else if(xe&&it.length>0&&it[it.length-1].display!==pt&&(Y>0||fe>0)){var X=Fe<Me?pe.backward:pe.forward;pt=s().createElement(m,{key:Fe,breakAriaLabel:X,breakLabel:xe,breakClassName:Ze,breakLinkClassName:Ae,breakHandler:P.handleBreakClick.bind(null,Fe),getEventListener:P.getEventListener}),it.push({type:"break",index:Fe,display:pt})}}it.forEach(function(He,Ot){var nt=He;He.type==="break"&&it[Ot-1]&&it[Ot-1].type==="page"&&it[Ot+1]&&it[Ot+1].type==="page"&&it[Ot+1].index-it[Ot-1].index<=2&&(nt={type:"page",index:He.index,display:rt(He.index)}),j.push(nt.display)})}return j}),F.initialPage!==void 0&&F.forcePage!==void 0&&console.warn("(react-paginate): Both initialPage (".concat(F.initialPage,") and forcePage (").concat(F.forcePage,") props are provided, which is discouraged.")+` Use exclusively forcePage prop for a controlled component.
|
|
75
75
|
See https://reactjs.org/docs/forms.html#controlled-components`),z=F.initialPage?F.initialPage:F.forcePage?F.forcePage:0,P.state={selected:z},P}return E=D,(R=[{key:"componentDidMount",value:function(){var F=this.props,P=F.initialPage,z=F.disableInitialCallback,j=F.extraAriaContext,I=F.pageCount,Y=F.forcePage;P===void 0||z||this.callCallback(P),j&&console.warn("DEPRECATED (react-paginate): The extraAriaContext prop is deprecated. You should now use the ariaLabelBuilder instead."),Number.isInteger(I)||console.warn("(react-paginate): The pageCount prop value provided is not an integer (".concat(I,"). Did you forget a Math.ceil()?")),P!==void 0&&P>I-1&&console.warn("(react-paginate): The initialPage prop provided is greater than the maximum page index from pageCount prop (".concat(P," > ").concat(I-1,").")),Y!==void 0&&Y>I-1&&console.warn("(react-paginate): The forcePage prop provided is greater than the maximum page index from pageCount prop (".concat(Y," > ").concat(I-1,")."))}},{key:"componentDidUpdate",value:function(F){this.props.forcePage!==void 0&&this.props.forcePage!==F.forcePage&&(this.props.forcePage>this.props.pageCount-1&&console.warn("(react-paginate): The forcePage prop provided is greater than the maximum page index from pageCount prop (".concat(this.props.forcePage," > ").concat(this.props.pageCount-1,").")),this.setState({selected:this.props.forcePage})),Number.isInteger(F.pageCount)&&!Number.isInteger(this.props.pageCount)&&console.warn("(react-paginate): The pageCount prop value provided is not an integer (".concat(this.props.pageCount,"). Did you forget a Math.ceil()?"))}},{key:"getForwardJump",value:function(){var F=this.state.selected,P=this.props,z=P.pageCount,j=F+P.pageRangeDisplayed;return j>=z?z-1:j}},{key:"getBackwardJump",value:function(){var F=this.state.selected-this.props.pageRangeDisplayed;return F<0?0:F}},{key:"getElementHref",value:function(F){var P=this.props,z=P.hrefBuilder,j=P.pageCount,I=P.hrefAllControls;if(z)return I||F>=0&&F<j?z(F+1,j,this.state.selected):void 0}},{key:"ariaLabelBuilder",value:function(F){var P=F===this.state.selected;if(this.props.ariaLabelBuilder&&F>=0&&F<this.props.pageCount){var z=this.props.ariaLabelBuilder(F+1,P);return this.props.extraAriaContext&&!P&&(z=z+" "+this.props.extraAriaContext),z}}},{key:"getPageElement",value:function(F){var P=this.state.selected,z=this.props,j=z.pageClassName,I=z.pageLinkClassName,Y=z.activeClassName,te=z.activeLinkClassName,fe=z.extraAriaContext,xe=z.pageLabelBuilder;return s().createElement(d,{key:F,pageSelectedHandler:this.handlePageSelected.bind(null,F),selected:P===F,rel:this.getElementPageRel(F),pageClassName:j,pageLinkClassName:I,activeClassName:Y,activeLinkClassName:te,extraAriaContext:fe,href:this.getElementHref(F),ariaLabel:this.ariaLabelBuilder(F),page:F+1,pageLabelBuilder:xe,getEventListener:this.getEventListener})}},{key:"render",value:function(){var F=this.props.renderOnZeroPageCount;if(this.props.pageCount===0&&F!==void 0)return F&&F(this.props);var P=this.props,z=P.disabledClassName,j=P.disabledLinkClassName,I=P.pageCount,Y=P.className,te=P.containerClassName,fe=P.previousLabel,xe=P.previousClassName,Ze=P.previousLinkClassName,Ae=P.previousAriaLabel,pe=P.prevRel,Me=P.nextLabel,Z=P.nextClassName,Ce=P.nextLinkClassName,ne=P.nextAriaLabel,Fe=P.nextRel,pt=this.state.selected,rt=pt===0,it=pt===I-1,fo="".concat(g(xe)).concat(rt?" ".concat(g(z)):""),X="".concat(g(Z)).concat(it?" ".concat(g(z)):""),He="".concat(g(Ze)).concat(rt?" ".concat(g(j)):""),Ot="".concat(g(Ce)).concat(it?" ".concat(g(j)):""),nt=rt?"true":"false",Zr=it?"true":"false";return s().createElement("ul",{className:Y||te,role:"navigation","aria-label":"Pagination"},s().createElement("li",{className:fo},s().createElement("a",v({className:He,href:this.getElementHref(pt-1),tabIndex:rt?"-1":"0",role:"button",onKeyPress:this.handlePreviousPage,"aria-disabled":nt,"aria-label":Ae,rel:pe},this.getEventListener(this.handlePreviousPage)),fe)),this.pagination(),s().createElement("li",{className:X},s().createElement("a",v({className:Ot,href:this.getElementHref(pt+1),tabIndex:it?"-1":"0",role:"button",onKeyPress:this.handleNextPage,"aria-disabled":Zr,"aria-label":ne,rel:Fe},this.getEventListener(this.handleNextPage)),Me)))}}])&&y(E.prototype,R),Object.defineProperty(E,"prototype",{writable:!1}),D}(i.Component);w(T,"propTypes",{pageCount:l().number.isRequired,pageRangeDisplayed:l().number,marginPagesDisplayed:l().number,previousLabel:l().node,previousAriaLabel:l().string,prevPageRel:l().string,prevRel:l().string,nextLabel:l().node,nextAriaLabel:l().string,nextPageRel:l().string,nextRel:l().string,breakLabel:l().oneOfType([l().string,l().node]),breakAriaLabels:l().shape({forward:l().string,backward:l().string}),hrefBuilder:l().func,hrefAllControls:l().bool,onPageChange:l().func,onPageActive:l().func,onClick:l().func,initialPage:l().number,forcePage:l().number,disableInitialCallback:l().bool,containerClassName:l().string,className:l().string,pageClassName:l().string,pageLinkClassName:l().string,pageLabelBuilder:l().func,activeClassName:l().string,activeLinkClassName:l().string,previousClassName:l().string,nextClassName:l().string,previousLinkClassName:l().string,nextLinkClassName:l().string,disabledClassName:l().string,disabledLinkClassName:l().string,breakClassName:l().string,breakLinkClassName:l().string,extraAriaContext:l().string,ariaLabelBuilder:l().func,eventListener:l().string,renderOnZeroPageCount:l().func,selectedPageRel:l().string}),w(T,"defaultProps",{pageRangeDisplayed:2,marginPagesDisplayed:3,activeClassName:"selected",previousLabel:"Previous",previousClassName:"previous",previousAriaLabel:"Previous page",prevPageRel:"prev",prevRel:"prev",nextLabel:"Next",nextClassName:"next",nextAriaLabel:"Next page",nextPageRel:"next",nextRel:"next",breakLabel:"...",breakAriaLabels:{forward:"Jump forward",backward:"Jump backward"},disabledClassName:"disabled",disableInitialCallback:!1,pageLabelBuilder:function($){return $},eventListener:"onClick",renderOnZeroPageCount:void 0,selectedPageRel:"canonical",hrefAllControls:!1});let N=T})(),o})())});var pte={};Pt(pte,{$createAutoLinkNode:()=>dw,$createLinkNode:()=>Qh,$isAutoLinkNode:()=>sl,$isLinkNode:()=>il,$toggleLink:()=>ub,AutoLinkExtension:()=>e5e,AutoLinkNode:()=>db,ClickableLinkExtension:()=>UEe,LinkExtension:()=>HO,LinkNode:()=>gp,TOGGLE_LINK_COMMAND:()=>fw,createLinkMatcherWithRegExp:()=>KEe,formatUrl:()=>jO,registerAutoLink:()=>fte,registerClickableLink:()=>ste,registerLink:()=>ite,toggleLink:()=>t5e});function PEe(t){throw new Error(t)}function BEe(t){let e=null;if(Aa(t)){let r=t.textContent;(r!==null&&r!==""||t.children.length>0)&&(e=Qh(t.getAttribute("href")||"",{rel:t.getAttribute("rel"),target:t.getAttribute("target"),title:t.getAttribute("title")}))}return{node:e}}function Qh(t="",e){return Mt(new gp(t,e))}function il(t){return t instanceof gp}function dw(t="",e){return Mt(new db(t,e))}function sl(t){return t instanceof db}function ote(t,e){if(t.type==="element"){let r=t.getNode();return G(r)||PEe("$getPointNode: element point is not an ElementNode"),r.getChildren()[t.offset+e]||null}return null}function zEe(t){let e=H();if(!V(e))return t();let r=Yn(e),n=r.isBackward(),o=ote(r.anchor,n?-1:0),i=ote(r.focus,n?0:-1),s=t();if(o||i){let a=H();if(V(a)){let l=a.clone();if(o){let c=o.getParent();c&&l.anchor.set(c.getKey(),o.getIndexWithinParent()+(n?1:0),"element")}if(i){let c=i.getParent();c&&l.focus.set(c.getKey(),i.getIndexWithinParent()+(n?0:1),"element")}qe(Yn(l))}}return s}function ub(t,e={}){let r;if(t&&typeof t=="object"){let{url:u,...d}=t;r=u,e={...d,...e}}else r=t;let{target:n,title:o}=e,i=e.rel===void 0?"noreferrer":e.rel,s=H();if(s===null||!V(s)&&!Je(s))return;if(Je(s)){let u=s.getNodes();if(u.length===0)return;u.forEach(d=>{if(r===null){let f=se(d,p=>!sl(p)&&il(p));f&&(f.insertBefore(d),f.getChildren().length===0&&f.remove())}else{let f=se(d,p=>!sl(p)&&il(p));if(f)f.setURL(r),n!==void 0&&f.setTarget(n),i!==void 0&&f.setRel(i);else{let p=Qh(r,{rel:i,target:n});d.insertBefore(p),p.append(d)}}});return}let a=s.extract();if(r===null){a.forEach(u=>{let d=se(u,f=>!sl(f)&&il(f));if(d){let f=d.getChildren();for(let p=0;p<f.length;p++)d.insertBefore(f[p]);d.remove()}});return}let l=new Set,c=u=>{l.has(u.getKey())||(l.add(u.getKey()),u.setURL(r),n!==void 0&&u.setTarget(n),i!==void 0&&u.setRel(i),o!==void 0&&u.setTitle(o))};if(a.length===1){let u=a[0],d=se(u,il);if(d!==null)return c(d)}zEe(()=>{let u=null;for(let d of a){if(!d.isAttached())continue;let f=se(d,il);if(f){c(f);continue}if(G(d)){if(!d.isInline())continue;if(il(d)){if(!sl(d)&&(u===null||!u.getParentOrThrow().isParentOf(d))){c(d),u=d;continue}for(let m of d.getChildren())d.insertBefore(m);d.remove();continue}}let p=d.getPreviousSibling();if(il(p)&&p.is(u)){p.append(d);continue}u=Qh(r,{rel:i,target:n,title:o}),d.insertAfter(u),u.append(d)}})}function jO(t){return t.match(/^[a-z][a-z0-9+.-]*:/i)||t.match(/^[/#.]/)?t:t.includes("@")?`mailto:${t}`:jEe.test(t)?`tel:${t}`:`https://${t}`}function ite(t,e){return at(jr(()=>t.registerCommand(fw,r=>{let n=e.validateUrl.peek(),o=e.attributes.peek();if(r===null)return ub(null),!0;if(typeof r=="string")return n===void 0||n(r)?(ub(r,o),!0):!1;{let{url:i,target:s,rel:a,title:l}=r;return ub(i,{...o,rel:a,target:s,title:l}),!0}},Ie)),jr(()=>{let r=e.validateUrl.value;if(!r)return;let n=e.attributes.value;return t.registerCommand(Pl,o=>{let i=H();if(!V(i)||i.isCollapsed()||!Er(o,ClipboardEvent)||o.clipboardData===null)return!1;let s=o.clipboardData.getData("text");return r(s)?i.getNodes().some(a=>G(a))?!1:(t.dispatchCommand(fw,{...n,url:s}),o.preventDefault(),!0):!1},Ie)}))}function HEe(t,e){let r=t;for(;r!=null;){if(e(r))return r;r=r.parentNode}return null}function ste(t,e,r={}){let n=i=>{let s=i.target;if(!zr(s))return;let a=Cu(s);if(a===null)return;let l=null,c=null;if(a.update(()=>{let f=gt(s);if(f!==null){let p=se(f,G);if(!e.disabled.peek())if(il(p))l=p.sanitizeUrl(p.getURL()),c=p.getTarget();else{let m=HEe(s,Aa);m!==null&&(l=m.href,c=m.target)}}}),l===null||l==="")return;let u=t.getEditorState().read(H);if(V(u)&&!u.isCollapsed()){i.preventDefault();return}let d=i.type==="auxclick"&&i.button===1;window.open(l,e.newTab.peek()||d||i.metaKey||i.ctrlKey||c==="_blank"?"_blank":"_self"),i.preventDefault()},o=i=>{i.button===1&&n(i)};return t.registerRootListener((i,s)=>{s!==null&&(s.removeEventListener("click",n),s.removeEventListener("mouseup",o)),i!==null&&(i.addEventListener("click",n,r),i.addEventListener("mouseup",o,r))})}function KEe(t,e=r=>r){return r=>{let n=t.exec(r);return n===null?null:{index:n.index,length:n[0].length,text:n[0],url:e(n[0])}}}function ate(t,e){for(let r=0;r<e.length;r++){let n=e[r](t);if(n)return n}return null}function pw(t){return WEe.test(t)}function lte(t){return pw(t[t.length-1])}function UO(t){return pw(t[0])}function GEe(t,e){return e?/^\.[a-zA-Z]{2,}/.test(t):/^\.[a-zA-Z0-9]{1,}/.test(t)}function cte(t){let e=t.getPreviousSibling();return G(e)&&(e=e.getLastDescendant()),e===null||Ge(e)||ie(e)&<e(e.getTextContent())}function ute(t){let e=t.getNextSibling();return G(e)&&(e=e.getFirstDescendant()),e===null||Ge(e)||ie(e)&&UO(e.getTextContent())}function YEe(t,e,r,n){return(t>0?pw(r[t-1]):cte(n[0]))?e<r.length?pw(r[e]):ute(n[n.length-1]):!1}function ZEe(t,e,r){let n=[],o=[],i=[],s=0,a=0,l=[...t];for(;l.length>0;){let c=l[0],d=c.getTextContent().length,f=a;a+d<=e?(n.push(c),s+=d):f>=r?i.push(c):o.push(c),a+=d,l.shift()}return[s,n,o,i]}function qEe(t,e,r,n){let o=dw(n.url,n.attributes);if(t.length===1){let i=t[0],s;e===0?[s,i]=i.splitText(r):[,s,i]=i.splitText(e,r);let a=bt(n.text);return a.setFormat(s.getFormat()),a.setDetail(s.getDetail()),a.setStyle(s.getStyle()),o.append(a),s.replace(o),i}else if(t.length>1){let i=t[0],s=i.getTextContent().length,a;e===0?a=i:[,a]=i.splitText(e);let l=[],c;for(let p=1;p<t.length;p++){let m=t[p],h=m.getTextContent().length,v=s,y=s+h;if(v<r)if(y<=r)l.push(m);else{let[b,x]=m.splitText(r-v);l.push(b),c=x}s+=h}let u=H(),d=u?u.getNodes().find(ie):void 0,f=bt(a.getTextContent());return f.setFormat(a.getFormat()),f.setDetail(a.getDetail()),f.setStyle(a.getStyle()),o.append(f,...l),d&&d===a&&(V(u)?f.select(u.anchor.offset,u.focus.offset):Je(u)&&f.select(0,f.getTextContent().length)),a.replace(o),c}}function JEe(t,e,r){let n=[...t],o=n.map(l=>l.getTextContent()).join(""),i=o,s,a=0;for(;(s=ate(i,e))&&s!==null;){let l=s.index,c=s.length,u=l+c;if(YEe(a+l,a+u,o,n)){let[f,,p,m]=ZEe(n,a+l,a+u),g=a+l-f,h=a+u-f,v=qEe(p,g,h,s);n=v?[v,...m]:m,r(s.url,null),a=0}else a+=u;i=i.substring(u)}}function VO(t,e,r){let n=t.getChildren(),o=n.length;for(let l=0;l<o;l++){let c=n[l];if(!ie(c)||!c.isSimpleText()){uw(t),r(null,t.getURL());return}}let i=t.getTextContent(),s=ate(i,e);if(s===null||s.text!==i){uw(t),r(null,t.getURL());return}if(!cte(t)||!ute(t)){uw(t),r(null,t.getURL());return}let a=t.getURL();if(a!==s.url&&(t.setURL(s.url),r(s.url,a)),s.attributes){let l=t.getRel();l!==s.attributes.rel&&(t.setRel(s.attributes.rel||null),r(s.attributes.rel||null,l));let c=t.getTarget();c!==s.attributes.target&&(t.setTarget(s.attributes.target||null),r(s.attributes.target||null,c))}}function XEe(t,e,r){let n=t.getPreviousSibling(),o=t.getNextSibling(),i=t.getTextContent();sl(n)&&!n.getIsUnlinked()&&(!UO(i)||GEe(i,n.isEmailURI()))&&(n.append(t),VO(n,e,r),r(null,n.getURL())),sl(o)&&!o.getIsUnlinked()&&!lte(i)&&(uw(o),VO(o,e,r),r(null,o.getURL()))}function uw(t){let e=t.getChildren(),r=e.length;for(let n=r-1;n>=0;n--)t.insertAfter(e[n]);return t.remove(),e.map(n=>n.getLatest())}function QEe(t){let e=[t],r=t.getNextSibling();for(;r!==null&&ie(r)&&r.isSimpleText()&&(e.push(r),!/[\s]/.test(r.getTextContent()));)r=r.getNextSibling();return e}function fte(t,e=dte){let{matchers:r,changeHandlers:n}=e,o=(i,s)=>{for(let a of n)a(i,s)};return at(t.registerNodeTransform(qn,i=>{let s=i.getParentOrThrow(),a=i.getPreviousSibling();if(sl(s)&&!s.getIsUnlinked())VO(s,r,o);else if(!il(s)){if(i.isSimpleText()&&(UO(i.getTextContent())||!sl(a))){let l=QEe(i);JEe(l,r,o)}XEe(i,r,o)}}),t.registerCommand(fw,i=>{let s=H();return i!==null||!V(s)||s.extract().forEach(l=>{let c=l.getParent();sl(c)&&(c.setIsUnlinked(!c.getIsUnlinked()),c.markDirty())}),!1},Ie))}var FEe,gp,db,fw,jEe,VEe,HO,UEe,WEe,dte,e5e,t5e,mte=ue(async()=>{"use strict";await cn();await ht();await Hl();FEe=new Set(["http:","https:","mailto:","sms:","tel:"]),gp=class t extends kt{__url;__target;__rel;__title;static getType(){return"link"}static clone(e){return new t(e.__url,{rel:e.__rel,target:e.__target,title:e.__title},e.__key)}constructor(e="",r={},n){super(n);let{target:o=null,rel:i=null,title:s=null}=r;this.__url=e,this.__target=o,this.__rel=i,this.__title=s}createDOM(e){let r=document.createElement("a");return this.updateLinkDOM(null,r,e),Pe(r,e.theme.link),r}updateLinkDOM(e,r,n){if(Aa(r)){(!e||e.__url!==this.__url)&&(r.href=this.sanitizeUrl(this.__url));for(let o of["target","rel","title"]){let i=`__${o}`,s=this[i];(!e||e[i]!==s)&&(s?r[o]=s:r.removeAttribute(o))}}}updateDOM(e,r,n){return this.updateLinkDOM(e,r,n),!1}static importDOM(){return{a:e=>({conversion:BEe,priority:1})}}static importJSON(e){return Qh().updateFromJSON(e)}updateFromJSON(e){return super.updateFromJSON(e).setURL(e.url).setRel(e.rel||null).setTarget(e.target||null).setTitle(e.title||null)}sanitizeUrl(e){e=jO(e);try{let r=new URL(jO(e));if(!FEe.has(r.protocol))return"about:blank"}catch{return e}return e}exportJSON(){return{...super.exportJSON(),rel:this.getRel(),target:this.getTarget(),title:this.getTitle(),url:this.getURL()}}getURL(){return this.getLatest().__url}setURL(e){let r=this.getWritable();return r.__url=e,r}getTarget(){return this.getLatest().__target}setTarget(e){let r=this.getWritable();return r.__target=e,r}getRel(){return this.getLatest().__rel}setRel(e){let r=this.getWritable();return r.__rel=e,r}getTitle(){return this.getLatest().__title}setTitle(e){let r=this.getWritable();return r.__title=e,r}insertNewAfter(e,r=!0){let n=Qh(this.__url,{rel:this.__rel,target:this.__target,title:this.__title});return this.insertAfter(n,r),n}canInsertTextBefore(){return!1}canInsertTextAfter(){return!1}canBeEmpty(){return!1}isInline(){return!0}extractWithChild(e,r,n){if(!V(r))return!1;let o=r.anchor.getNode(),i=r.focus.getNode();return this.isParentOf(o)&&this.isParentOf(i)&&r.getTextContent().length>0}isEmailURI(){return this.__url.startsWith("mailto:")}isWebSiteURI(){return this.__url.startsWith("https://")||this.__url.startsWith("http://")}};db=class t extends gp{__isUnlinked;constructor(e="",r={},n){super(e,r,n),this.__isUnlinked=r.isUnlinked!==void 0&&r.isUnlinked!==null?r.isUnlinked:!1}static getType(){return"autolink"}static clone(e){return new t(e.__url,{isUnlinked:e.__isUnlinked,rel:e.__rel,target:e.__target,title:e.__title},e.__key)}getIsUnlinked(){return this.__isUnlinked}setIsUnlinked(e){let r=this.getWritable();return r.__isUnlinked=e,r}createDOM(e){return this.__isUnlinked?document.createElement("span"):super.createDOM(e)}updateDOM(e,r,n){return super.updateDOM(e,r,n)||e.__isUnlinked!==this.__isUnlinked}static importJSON(e){return dw().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,r=!0){let n=this.getParentOrThrow().insertNewAfter(e,r);if(G(n)){let o=dw(this.__url,{isUnlinked:this.__isUnlinked,rel:this.__rel,target:this.__target,title:this.__title});return n.append(o),o}return null}};fw=wt("TOGGLE_LINK_COMMAND");jEe=/^\+?[0-9\s()-]{5,}$/;VEe={attributes:void 0,validateUrl:void 0};HO=Ye({build(t,e,r){return Jn(e)},config:VEe,name:"@lexical/link/Link",nodes:[gp],register(t,e,r){return ite(t,r.getOutput())}});UEe=Ye({build(t,e,r){return Jn(e)},config:er({disabled:!1,newTab:!1}),dependencies:[HO],name:"@lexical/link/ClickableLink",register(t,e,r){return ste(t,r.getOutput())}});WEe=/[.,;\s]/;dte={changeHandlers:[],matchers:[]};e5e=Ye({config:dte,dependencies:[HO],mergeConfig(t,e){let r=Qi(t,e);for(let n of["matchers","changeHandlers"]){let o=e[n];Array.isArray(o)&&(r[n]=[...t[n],...o])}return r},name:"@lexical/link/AutoLink",register:fte}),t5e=ub});var wte={};Pt(wte,{$createAutoLinkNode:()=>gw,$createLinkNode:()=>e0,$isAutoLinkNode:()=>ll,$isLinkNode:()=>al,$toggleLink:()=>fb,AutoLinkExtension:()=>d5e,AutoLinkNode:()=>pb,ClickableLinkExtension:()=>i5e,LinkExtension:()=>YO,LinkNode:()=>hp,TOGGLE_LINK_COMMAND:()=>hw,createLinkMatcherWithRegExp:()=>s5e,formatUrl:()=>WO,registerAutoLink:()=>_te,registerClickableLink:()=>vte,registerLink:()=>hte,toggleLink:()=>f5e});function n5e(t){let e=null;if(Aa(t)){let r=t.textContent;(r!==null&&r!==""||t.children.length>0)&&(e=e0(t.getAttribute("href")||"",{rel:t.getAttribute("rel"),target:t.getAttribute("target"),title:t.getAttribute("title")}))}return{node:e}}function e0(t="",e){return Mt(new hp(t,e))}function al(t){return t instanceof hp}function gw(t="",e){return Mt(new pb(t,e))}function ll(t){return t instanceof pb}function gte(t,e){if(t.type==="element"){let r=t.getNode();return G(r)||function(n,...o){let i=new URL("https://lexical.dev/docs/error"),s=new URLSearchParams;s.append("code",n);for(let a of o)s.append("v",a);throw i.search=s.toString(),Error(`Minified Lexical error #${n}; visit ${i.toString()} for the full message or use the non-minified dev environment for full errors and additional helpful warnings.`)}(252),r.getChildren()[t.offset+e]||null}return null}function fb(t,e={}){let r;if(t&&typeof t=="object"){let{url:u,...d}=t;r=u,e={...d,...e}}else r=t;let{target:n,title:o}=e,i=e.rel===void 0?"noreferrer":e.rel,s=H();if(s===null||!V(s)&&!Je(s))return;if(Je(s)){let u=s.getNodes();return u.length===0?void 0:void u.forEach(d=>{if(r===null){let f=se(d,p=>!ll(p)&&al(p));f&&(f.insertBefore(d),f.getChildren().length===0&&f.remove())}else{let f=se(d,p=>!ll(p)&&al(p));if(f)f.setURL(r),n!==void 0&&f.setTarget(n),i!==void 0&&f.setRel(i);else{let p=e0(r,{rel:i,target:n});d.insertBefore(p),p.append(d)}}})}let a=s.extract();if(r===null)return void a.forEach(u=>{let d=se(u,f=>!ll(f)&&al(f));if(d){let f=d.getChildren();for(let p=0;p<f.length;p++)d.insertBefore(f[p]);d.remove()}});let l=new Set,c=u=>{l.has(u.getKey())||(l.add(u.getKey()),u.setURL(r),n!==void 0&&u.setTarget(n),i!==void 0&&u.setRel(i),o!==void 0&&u.setTitle(o))};if(a.length===1){let u=a[0],d=se(u,al);if(d!==null)return c(d)}(function(u){let d=H();if(!V(d))return u();let f=Yn(d),p=f.isBackward(),m=gte(f.anchor,p?-1:0),g=gte(f.focus,p?0:-1),h=u();if(m||g){let v=H();if(V(v)){let y=v.clone();if(m){let b=m.getParent();b&&y.anchor.set(b.getKey(),m.getIndexWithinParent()+(p?1:0),"element")}if(g){let b=g.getParent();b&&y.focus.set(b.getKey(),g.getIndexWithinParent()+(p?0:1),"element")}qe(Yn(y))}}})(()=>{let u=null;for(let d of a){if(!d.isAttached())continue;let f=se(d,al);if(f){c(f);continue}if(G(d)){if(!d.isInline())continue;if(al(d)){if(!(ll(d)||u!==null&&u.getParentOrThrow().isParentOf(d))){c(d),u=d;continue}for(let m of d.getChildren())d.insertBefore(m);d.remove();continue}}let p=d.getPreviousSibling();al(p)&&p.is(u)?p.append(d):(u=e0(r,{rel:i,target:n,title:o}),d.insertAfter(u),u.append(d))}})}function WO(t){return t.match(/^[a-z][a-z0-9+.-]*:/i)||t.match(/^[/#.]/)?t:t.includes("@")?`mailto:${t}`:o5e.test(t)?`tel:${t}`:`https://${t}`}function hte(t,e){return at(jr(()=>t.registerCommand(hw,r=>{let n=e.validateUrl.peek(),o=e.attributes.peek();if(r===null)return fb(null),!0;if(typeof r=="string")return!(n!==void 0&&!n(r))&&(fb(r,o),!0);{let{url:i,target:s,rel:a,title:l}=r;return fb(i,{...o,rel:a,target:s,title:l}),!0}},Ie)),jr(()=>{let r=e.validateUrl.value;if(!r)return;let n=e.attributes.value;return t.registerCommand(Pl,o=>{let i=H();if(!V(i)||i.isCollapsed()||!Er(o,ClipboardEvent)||o.clipboardData===null)return!1;let s=o.clipboardData.getData("text");return!!r(s)&&!i.getNodes().some(a=>G(a))&&(t.dispatchCommand(hw,{...n,url:s}),o.preventDefault(),!0)},Ie)}))}function vte(t,e,r={}){let n=i=>{let s=i.target;if(!zr(s))return;let a=Cu(s);if(a===null)return;let l=null,c=null;if(a.update(()=>{let f=gt(s);if(f!==null){let p=se(f,G);if(!e.disabled.peek())if(al(p))l=p.sanitizeUrl(p.getURL()),c=p.getTarget();else{let m=function(g,h){let v=g;for(;v!=null;){if(h(v))return v;v=v.parentNode}return null}(s,Aa);m!==null&&(l=m.href,c=m.target)}}}),l===null||l==="")return;let u=t.getEditorState().read(H);if(V(u)&&!u.isCollapsed())return void i.preventDefault();let d=i.type==="auxclick"&&i.button===1;window.open(l,e.newTab.peek()||d||i.metaKey||i.ctrlKey||c==="_blank"?"_blank":"_self"),i.preventDefault()},o=i=>{i.button===1&&n(i)};return t.registerRootListener((i,s)=>{s!==null&&(s.removeEventListener("click",n),s.removeEventListener("mouseup",o)),i!==null&&(i.addEventListener("click",n,r),i.addEventListener("mouseup",o,r))})}function s5e(t,e=r=>r){return r=>{let n=t.exec(r);return n===null?null:{index:n.index,length:n[0].length,text:n[0],url:e(n[0])}}}function yte(t,e){for(let r=0;r<e.length;r++){let n=e[r](t);if(n)return n}return null}function vw(t){return a5e.test(t)}function bte(t){return vw(t[t.length-1])}function GO(t){return vw(t[0])}function xte(t){let e=t.getPreviousSibling();return G(e)&&(e=e.getLastDescendant()),e===null||Ge(e)||ie(e)&&bte(e.getTextContent())}function Cte(t){let e=t.getNextSibling();return G(e)&&(e=e.getFirstDescendant()),e===null||Ge(e)||ie(e)&&GO(e.getTextContent())}function l5e(t,e,r,n){return(t>0?vw(r[t-1]):xte(n[0]))?e<r.length?vw(r[e]):Cte(n[n.length-1]):!1}function c5e(t,e,r){let n=[],o=[],i=[],s=0,a=0,l=[...t];for(;l.length>0;){let c=l[0],u=c.getTextContent().length,d=a;a+u<=e?(n.push(c),s+=u):d>=r?i.push(c):o.push(c),a+=u,l.shift()}return[s,n,o,i]}function u5e(t,e,r,n){let o=gw(n.url,n.attributes);if(t.length===1){let i,s=t[0];e===0?[i,s]=s.splitText(r):[,i,s]=s.splitText(e,r);let a=bt(n.text);return a.setFormat(i.getFormat()),a.setDetail(i.getDetail()),a.setStyle(i.getStyle()),o.append(a),i.replace(o),s}if(t.length>1){let i=t[0],s,a=i.getTextContent().length;e===0?s=i:[,s]=i.splitText(e);let l=[],c;for(let p=1;p<t.length;p++){let m=t[p],g=m.getTextContent().length,h=a;if(h<r)if(a+g<=r)l.push(m);else{let[v,y]=m.splitText(r-h);l.push(v),c=y}a+=g}let u=H(),d=u?u.getNodes().find(ie):void 0,f=bt(s.getTextContent());return f.setFormat(s.getFormat()),f.setDetail(s.getDetail()),f.setStyle(s.getStyle()),o.append(f,...l),d&&d===s&&(V(u)?f.select(u.anchor.offset,u.focus.offset):Je(u)&&f.select(0,f.getTextContent().length)),s.replace(o),c}}function KO(t,e,r){let n=t.getChildren(),o=n.length;for(let l=0;l<o;l++){let c=n[l];if(!ie(c)||!c.isSimpleText())return mw(t),void r(null,t.getURL())}let i=t.getTextContent(),s=yte(i,e);if(s===null||s.text!==i||!xte(t)||!Cte(t))return mw(t),void r(null,t.getURL());let a=t.getURL();if(a!==s.url&&(t.setURL(s.url),r(s.url,a)),s.attributes){let l=t.getRel();l!==s.attributes.rel&&(t.setRel(s.attributes.rel||null),r(s.attributes.rel||null,l));let c=t.getTarget();c!==s.attributes.target&&(t.setTarget(s.attributes.target||null),r(s.attributes.target||null,c))}}function mw(t){let e=t.getChildren();for(let r=e.length-1;r>=0;r--)t.insertAfter(e[r]);return t.remove(),e.map(r=>r.getLatest())}function _te(t,e=Ste){let{matchers:r,changeHandlers:n}=e,o=(i,s)=>{for(let a of n)a(i,s)};return at(t.registerNodeTransform(qn,i=>{let s=i.getParentOrThrow(),a=i.getPreviousSibling();if(ll(s)&&!s.getIsUnlinked())KO(s,r,o);else if(!al(s)){if(i.isSimpleText()&&(GO(i.getTextContent())||!ll(a))){let l=function(c){let u=[c],d=c.getNextSibling();for(;d!==null&&ie(d)&&d.isSimpleText()&&(u.push(d),!/[\s]/.test(d.getTextContent()));)d=d.getNextSibling();return u}(i);(function(c,u,d){let f=[...c],p=f.map(v=>v.getTextContent()).join(""),m,g=p,h=0;for(;(m=yte(g,u))&&m!==null;){let v=m.index,y=v+m.length;if(l5e(h+v,h+y,p,f)){let[b,,x,S]=c5e(f,h+v,h+y),_=u5e(x,h+v-b,h+y-b,m);f=_?[_,...S]:S,d(m.url,null),h=0}else h+=y;g=g.substring(y)}})(l,r,o)}(function(l,c,u){let d=l.getPreviousSibling(),f=l.getNextSibling(),p=l.getTextContent();var m;!ll(d)||d.getIsUnlinked()||GO(p)&&(m=p,!(d.isEmailURI()?/^\.[a-zA-Z]{2,}/.test(m):/^\.[a-zA-Z0-9]{1,}/.test(m)))||(d.append(l),KO(d,c,u),u(null,d.getURL())),!ll(f)||f.getIsUnlinked()||bte(p)||(mw(f),KO(f,c,u),u(null,f.getURL()))})(i,r,o)}}),t.registerCommand(hw,i=>{let s=H();return i!==null||!V(s)||s.extract().forEach(a=>{let l=a.getParent();ll(l)&&(l.setIsUnlinked(!l.getIsUnlinked()),l.markDirty())}),!1},Ie))}var r5e,hp,pb,hw,o5e,YO,i5e,a5e,Ste,d5e,f5e,Ete=ue(async()=>{"use strict";await cn();await ht();await Hl();r5e=new Set(["http:","https:","mailto:","sms:","tel:"]),hp=class t extends kt{__url;__target;__rel;__title;static getType(){return"link"}static clone(e){return new t(e.__url,{rel:e.__rel,target:e.__target,title:e.__title},e.__key)}constructor(e="",r={},n){super(n);let{target:o=null,rel:i=null,title:s=null}=r;this.__url=e,this.__target=o,this.__rel=i,this.__title=s}createDOM(e){let r=document.createElement("a");return this.updateLinkDOM(null,r,e),Pe(r,e.theme.link),r}updateLinkDOM(e,r,n){if(Aa(r)){e&&e.__url===this.__url||(r.href=this.sanitizeUrl(this.__url));for(let o of["target","rel","title"]){let i=`__${o}`,s=this[i];e&&e[i]===s||(s?r[o]=s:r.removeAttribute(o))}}}updateDOM(e,r,n){return this.updateLinkDOM(e,r,n),!1}static importDOM(){return{a:e=>({conversion:n5e,priority:1})}}static importJSON(e){return e0().updateFromJSON(e)}updateFromJSON(e){return super.updateFromJSON(e).setURL(e.url).setRel(e.rel||null).setTarget(e.target||null).setTitle(e.title||null)}sanitizeUrl(e){e=WO(e);try{let r=new URL(WO(e));if(!r5e.has(r.protocol))return"about:blank"}catch{return e}return e}exportJSON(){return{...super.exportJSON(),rel:this.getRel(),target:this.getTarget(),title:this.getTitle(),url:this.getURL()}}getURL(){return this.getLatest().__url}setURL(e){let r=this.getWritable();return r.__url=e,r}getTarget(){return this.getLatest().__target}setTarget(e){let r=this.getWritable();return r.__target=e,r}getRel(){return this.getLatest().__rel}setRel(e){let r=this.getWritable();return r.__rel=e,r}getTitle(){return this.getLatest().__title}setTitle(e){let r=this.getWritable();return r.__title=e,r}insertNewAfter(e,r=!0){let n=e0(this.__url,{rel:this.__rel,target:this.__target,title:this.__title});return this.insertAfter(n,r),n}canInsertTextBefore(){return!1}canInsertTextAfter(){return!1}canBeEmpty(){return!1}isInline(){return!0}extractWithChild(e,r,n){if(!V(r))return!1;let o=r.anchor.getNode(),i=r.focus.getNode();return this.isParentOf(o)&&this.isParentOf(i)&&r.getTextContent().length>0}isEmailURI(){return this.__url.startsWith("mailto:")}isWebSiteURI(){return this.__url.startsWith("https://")||this.__url.startsWith("http://")}};pb=class t extends hp{__isUnlinked;constructor(e="",r={},n){super(e,r,n),this.__isUnlinked=r.isUnlinked!==void 0&&r.isUnlinked!==null&&r.isUnlinked}static getType(){return"autolink"}static clone(e){return new t(e.__url,{isUnlinked:e.__isUnlinked,rel:e.__rel,target:e.__target,title:e.__title},e.__key)}getIsUnlinked(){return this.__isUnlinked}setIsUnlinked(e){let r=this.getWritable();return r.__isUnlinked=e,r}createDOM(e){return this.__isUnlinked?document.createElement("span"):super.createDOM(e)}updateDOM(e,r,n){return super.updateDOM(e,r,n)||e.__isUnlinked!==this.__isUnlinked}static importJSON(e){return gw().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,r=!0){let n=this.getParentOrThrow().insertNewAfter(e,r);if(G(n)){let o=gw(this.__url,{isUnlinked:this.__isUnlinked,rel:this.__rel,target:this.__target,title:this.__title});return n.append(o),o}return null}};hw=wt("TOGGLE_LINK_COMMAND");o5e=/^\+?[0-9\s()-]{5,}$/;YO=Ye({build:(t,e,r)=>Jn(e),config:{attributes:void 0,validateUrl:void 0},name:"@lexical/link/Link",nodes:[hp],register:(t,e,r)=>hte(t,r.getOutput())});i5e=Ye({build:(t,e,r)=>Jn(e),config:er({disabled:!1,newTab:!1}),dependencies:[YO],name:"@lexical/link/ClickableLink",register:(t,e,r)=>vte(t,r.getOutput())});a5e=/[.,;\s]/;Ste={changeHandlers:[],matchers:[]};d5e=Ye({config:Ste,dependencies:[YO],mergeConfig(t,e){let r=Qi(t,e);for(let n of["matchers","changeHandlers"]){let o=e[n];Array.isArray(o)&&(r[n]=[...t[n],...o])}return r},name:"@lexical/link/AutoLink",register:_te}),f5e=fb});var bo,Jpt,yw,bw,xw,Xpt,Qpt,emt,tmt,rmt,Cw,nmt,omt,imt,smt,amt,lmt,cmt,ZO=ue(async()=>{"use strict";bo=await(process.env.NODE_ENV!=="production"?mte().then(()=>pte):Ete().then(()=>wte)),Jpt=bo.$createAutoLinkNode,yw=bo.$createLinkNode,bw=bo.$isAutoLinkNode,xw=bo.$isLinkNode,Xpt=bo.$toggleLink,Qpt=bo.AutoLinkExtension,emt=bo.AutoLinkNode,tmt=bo.ClickableLinkExtension,rmt=bo.LinkExtension,Cw=bo.LinkNode,nmt=bo.TOGGLE_LINK_COMMAND,omt=bo.createLinkMatcherWithRegExp,imt=bo.formatUrl,smt=bo.registerAutoLink,amt=bo.registerClickableLink,lmt=bo.registerLink,cmt=bo.toggleLink});var nre={};Pt(nre,{$convertFromMarkdownString:()=>F5e,$convertToMarkdownString:()=>B5e,BOLD_ITALIC_STAR:()=>Ute,BOLD_ITALIC_UNDERSCORE:()=>Kte,BOLD_STAR:()=>Wte,BOLD_UNDERSCORE:()=>Gte,CHECK_LIST:()=>A5e,CODE:()=>Bte,ELEMENT_TRANSFORMERS:()=>Xte,HEADING:()=>Pte,HIGHLIGHT:()=>Hte,INLINE_CODE:()=>Vte,ITALIC_STAR:()=>Zte,ITALIC_UNDERSCORE:()=>qte,LINK:()=>Jte,MULTILINE_ELEMENT_TRANSFORMERS:()=>Qte,ORDERED_LIST:()=>jte,QUOTE:()=>Fte,STRIKETHROUGH:()=>Yte,TEXT_FORMAT_TRANSFORMERS:()=>ere,TEXT_MATCH_TRANSFORMERS:()=>tre,TRANSFORMERS:()=>$w,UNORDERED_LIST:()=>zte,registerMarkdownShortcuts:()=>P5e});function qO(t,e){let r={};for(let n of t){let o=e(n);o&&(r[o]?r[o].push(n):r[o]=[n])}return r}function QO(t){let e=qO(t,r=>r.type);return{element:e.element||[],multilineElement:e["multiline-element"]||[],textFormat:e["text-format"]||[],textMatch:e["text-match"]||[]}}function JO(t){if(!Gn(t))return!1;let e=t.getFirstChild();return e==null||t.getChildrenSize()===1&&ie(e)&&p5e.test(e.getTextContent())}function m5e(t,e=!1){let r=QO(t),n=[...r.multilineElement,...r.element],o=!e,i=r.textFormat.filter(s=>s.format.length===1).sort((s,a)=>Number(s.format.includes("code"))-Number(a.format.includes("code")));return s=>{let a=[],l=(s||At()).getChildren();for(let c=0;c<l.length;c++){let u=l[c],d=g5e(u,n,i,r.textMatch);d!=null&&a.push(o&&c>0&&!JO(u)&&!JO(l[c-1])?`
|
|
@@ -98,7 +98,7 @@ See https://reactjs.org/docs/forms.html#controlled-components`),z=F.initialPage?
|
|
|
98
98
|
The prompt should describe the information you are looking for.
|
|
99
99
|
You may be detailed but do not use more than 100 words.
|
|
100
100
|
When answering a user question, your prompt should be exactly that question.`)}),outputSchema:zp.object({success:zp.boolean(),error:zp.string().optional().describe("The error message if the question was not answered successfully"),answerMarkdown:zp.string().describe("The answer, in markdown format, from the Uniform docs chatbot")}),runsAt:"server",timeout:60,callable:!0};var zI=k(BI());var jI=(0,zI.default)(6),dx=class t extends Error{constructor(r,n,o,i,s,a){super(`${r}
|
|
101
|
-
${i}${s?" "+s:""} (${n} ${o}${a?` Request ID: ${a}`:""})`);this.errorMessage=r;this.fetchMethod=n;this.fetchUri=o;this.statusCode=i;this.statusText=s;this.requestId=a;Object.setPrototypeOf(this,t.prototype)}};var fx=class t{options;constructor(e){if(!e.apiKey&&!e.bearerToken)throw new Error("You must provide an API key or a bearer token");let r=e.fetch;if(!r)if(typeof window<"u")r=window.fetch.bind(window);else if(typeof fetch<"u")r=fetch;else throw new Error("You must provide or polyfill a fetch implementation when not in a browser");this.options={...e,fetch:r,apiHost:this.ensureApiHost(e.apiHost),apiKey:e.apiKey??null,projectId:e.projectId??null,bearerToken:e.bearerToken??null,limitPolicy:e.limitPolicy??jI,bypassCache:e.bypassCache??!1}}async apiClient(e,r){return(await this.apiClientWithResponse(e,r)).body}async apiClientWithResponse(e,r){return this.options.limitPolicy(async()=>{let n=this.options.apiKey?{"x-api-key":this.options.apiKey}:{Authorization:`Bearer ${this.options.bearerToken}`};this.options.bypassCache&&(n["x-bypass-cache"]="true");let{fetch:o,signal:i}=this.options,a=await Rae(()=>o(e.toString(),{...r,signal:i,headers:{...r?.headers,...n}}));if(!a.ok){let l="";try{let c=await a.text();try{let u=JSON.parse(c);u.errorMessage?l=Array.isArray(u.errorMessage)?u.errorMessage.join(", "):u.errorMessage:l=c}catch{l=c}}catch{l="General error"}throw new dx(l,r?.method??"GET",e.toString(),a.status,a.statusText,t.getRequestId(a))}return r?.expectNoContent?{response:a,body:null}:{response:a,body:await a.json()}})}createUrl(e,r,n){let o=new URL(`${n??this.options.apiHost}${e}`);return Object.entries(r??{}).forEach(([i,s])=>{typeof s<"u"&&s!==null&&o.searchParams.append(i,Array.isArray(s)?s.join(","):s?.toString()??"")}),o}ensureApiHost(e){if(!e)return"https://uniform.app";if(!e?.startsWith("http"))throw new Error('Your apiHost must start with "http"');if(e.indexOf("/",8)>-1)throw new Error("Your apiHost must not contain a path element after the domain");if(e.indexOf("?")>-1)throw new Error("Your apiHost must not contain a query string");return e?.endsWith("/")&&(e=e.substring(0,e.length-1)),e}static getRequestId(e){let r=e.headers.get("apigw-requestid");if(r)return r}};async function Rae(t){let r=5,n;for(;r>0&&(n=await t(),n.status===429);){let o=0;try{let a=n.clone(),l=a.headers.get("date"),c=l?new Date(l).getTime():void 0,d=(await a.json())?.info?.reset;typeof c=="number"&&typeof d=="number"&&(o=Math.max(0,Math.min(Math.round(1.1*(d-c)),1e4)))}catch{}let i=Math.pow(2,5-r)*333,s=i+Math.round(Math.random()*(i/2))*(Math.random()>.5?1:-1);await new Promise(a=>setTimeout(a,o+s)),r-=1}return n}var px=class extends fx{telemetryContext;constructor(e){e.apiHost||(e.apiHost="https://ai.uniform.global"),super(e),this.telemetryContext=e.telemetryContext}async invoke(e,r){let n={};if(this.telemetryContext){let{threadId:i,uniformClient:s,userAgent:a}=this.telemetryContext;i&&(n["x-thread-id"]=i),s&&(n["x-uniform-client"]=s),a&&(n["user-agent"]=a)}return(await this.apiClientWithResponse(new URL(`/projects/${this.options.projectId}/tools/${e}`,this.options.apiHost),{method:"POST",body:r?JSON.stringify(r):void 0,headers:Object.keys(n).length>0?n:void 0})).body}};var VI={name:"@uniformdev/uniform-mcp",version:"20.43.1",description:"Uniform MCP Server",license:"SEE LICENSE IN LICENSE.txt",bin:{"uniform-mcp":"./dist/index.mjs"},exports:{types:"./dist/index.d.mts",import:"./dist/index.mjs"},sideEffects:!1,scripts:{build:"tsup",dev:"tsup --watch",clean:"rimraf dist",lint:'eslint "src/**/*.{js,ts,tsx}"',format:'prettier --write "src/**/*.{js,ts,tsx}"',mcp:"node dist/index.mjs"},dependencies:{"@modelcontextprotocol/sdk":"^1.12.0","@types/uuid":"9.0.4","@uniformdev/canvas":"workspace:*","@uniformdev/project-map":"workspace:*","fast-json-patch":"^3.1.1",immer:"10.1.3",jsdom:"24.1.3",uuid:"9.0.1",zod:"3.25.76"},files:["/dist"],publishConfig:{access:"public"},devDependencies:{"@types/jsdom":"^27.0.0","@uniformdev/design-system":"workspace:*","@uniformdev/files":"workspace:*","@uniformdev/mesh-edgehancer-sdk":"workspace:*","@uniformdev/richtext":"workspace:*"}};var UI=process.env.UNIFORM_API_KEY,WE=process.env.UNIFORM_PROJECT_ID,HI=process.env.UNIFORM_API_HOST??"https://uniform.app",Fae=process.env.UNIFORM_AI_API_HOST??"https://ai.uniform.global";if(!UI&&process.env.NODE_ENV!=="test")throw new Error("UNIFORM_API_KEY is not set");if(!WE&&process.env.NODE_ENV!=="test")throw new Error("UNIFORM_PROJECT_ID is not set");var be={apiHost:HI,apiKey:UI,projectId:WE,aiApiHost:Fae,baseWebUrl:`${HI}/projects/${WE}`};function Od(){return new px({...be,apiHost:be.aiApiHost,telemetryContext:{userAgent:`uniform-mcp/${VI.version}`,uniformClient:"mcp"}})}function KI(t){t.tool("askQuestion","Ask the Uniform Docs assistant, Una, questions about Uniform features, usage, and best practices",kI.inputSchema.shape,async e=>{let n=await Od().invoke("askQuestion",e);return{content:[{type:"text",text:JSON.stringify(n,null,2)}]}})}import{autoFixParameterGroups as qI,CanvasClient as rle}from"@uniformdev/canvas";import*as bx from"zod/v3";import Bae from"fast-json-patch";function mx(t,e){return Bae.applyPatch(t,e).newDocument}import*as aa from"zod/v3";var gx=aa.array(aa.object({op:aa.enum(["add","remove","replace"]),path:aa.string().describe("The JSON path to patch"),value:aa.unknown().describe("The value to patch - for remove, leave this blank")}));function zae(t){return Array.isArray(t)&&t.length>0}function WI(t){return!!t&&typeof t=="object"&&"type"in t}function GI(t){return typeof t=="object"&&t!==null&&"root"in t&&WI(t.root)}function Md(t){return"children"in t&&zae(t.children)}var jae=({context:t,renderChildren:e})=>Md(t.currentNode)?`${e(t.currentNode.children)} `:"";var Vae=({context:t,renderChildren:e})=>{if(!Md(t.currentNode))return"";let r=e(t.currentNode.children);return r.endsWith(" ")?r:`${r} `};var Hae=({context:t,renderChildren:e})=>Md(t.currentNode)?`${e(t.currentNode.children)} `:"";var Uae=({context:t,renderChildren:e})=>Md(t.currentNode)?`${e(t.currentNode.children)} `:"";var Kae=({context:t,renderChildren:e})=>Md(t.currentNode)?`${e(t.currentNode.children)} `:"";var Wae=({context:t,renderChildren:e})=>Md(t.currentNode)?`${e(t.currentNode.children)} `:"";var Gae=({context:t})=>t.currentNode.text;var Yae=()=>" ";var Zae=()=>" ",qae=new Map([["text",Gae],["tab",Yae],["linebreak",Zae],["paragraph",Hae],["listitem",Vae],["heading",jae],["table",Uae],["tablecell",Kae],["tablerow",Wae]]),Jae=t=>{let e=qae.get(t.currentNode.type);return e||(({context:r,renderChildren:n})=>Md(r.currentNode)?n(r.currentNode.children):"")};function Xae(t,e){let r=[];return e?.ancestorNodes&&(r=r.concat(e.ancestorNodes)),e?.currentNode&&r.unshift(e.currentNode),{...e??{},currentNode:t,ancestorNodes:r}}function GE(t,e){var r;if(!WI(t))return"";let n=Xae(t,e),o=(r=n.resolveRenderer)==null?void 0:r.call(n,n);if(typeof o>"u")o=Jae(n);else if(o===null)return"";let i=s=>Qae(s,n);if(o){let s=o({context:n,renderChildren:i});return n.ancestorNodes.length>0?s:s.trim()}else throw new Error(`There is no renderer for node type: ${n.currentNode.type}`)}function Qae(t,e){return Array.isArray(t)?t.map(r=>GE(r,e)).join(""):""}var ele=[{label:"Heading 1",type:"h1"},{label:"Heading 2",type:"h2"},{label:"Heading 3",type:"h3"},{label:"Heading 4",type:"h4"},{label:"Heading 5",type:"h5"},{label:"Heading 6",type:"h6"},{label:"Bullet List",type:"unorderedList"},{label:"Ordered List",type:"orderedList"},{label:"Link",type:"link"},{label:"Blockquote",type:"quote"},{label:"Code Block",type:"code"},{label:"Table",type:"table"},{label:"Asset",type:"asset"},{label:"Dynamic Token",type:"variable"}],tle=[{label:"Bold",type:"bold"},{label:"Italic",type:"italic"},{label:"Underline",type:"underline"},{label:"Strikethrough",type:"strikethrough"},{label:"Code",type:"code"},{label:"Superscript",type:"superscript"},{label:"Subscript",type:"subscript"}];var hx={required:!1,formatting:{builtIn:tle.map(t=>t.type)},elements:{builtIn:ele.map(t=>t.type)},elementsConfig:{asset:{allowedTypes:["image"]}}};import*as hn from"zod/v3";import*as Zt from"zod/v3";var vx=Zt.object({name:Zt.string().describe('Title-cased display name. Ex: "Headline"'),id:Zt.string().describe("The public ID. Must be unique within the current entity fields/parameters."),type:Zt.enum(["text","richText","select","multi-select","number","date","dateTime","checkbox","link","asset","json","contentReference","$enr","group"]).describe("The data type of the property. The group type defines a grouping of other properties."),guidance:Zt.string().describe('Describe what kind of content should be populated, for a LLM to use as a guide. 1-2 sentences max. Ex: "Meta tags based on the content", "2-3 word headline"'),localizable:Zt.boolean().describe("Whether values are stored as locale-specific"),typeConfig:Zt.object({allowedTypes:Zt.array(Zt.enum(["image","video","audio","other"])).optional().describe("The types of asset allowed. ONLY applies when type=asset, omit for other types"),options:Zt.array(Zt.object({text:Zt.string().describe("The text to display to the author"),value:Zt.string().describe("The value to store for the option")})).optional().describe("The author-selectable options for the select property. ONLY applies when type=select or multi-select, omit for other types"),required:Zt.boolean().optional().describe("Whether an author must enter a value for this property"),min:Zt.number().optional().describe("When type=number, this is the smallest allowed value (omit for no minimum). When type=multi-select, this is the minimum number of selections the author must make (omit for no minimum). When type=reference and isMulti=true, this is the minimum number of references the author must select (omit for no minimum). Omit for all other types."),max:Zt.number().optional().describe("When type=number, this is the largest allowed value (omit for no maximum). When type=multi-select, this is the maximum number of selections the author can make (omit for no maximum). When type=reference and isMulti=true, this is the maximum number of references the author can select (omit for no maximum). Omit for all other types."),allowedContentTypes:Zt.array(Zt.string()).optional().describe("When type=reference, this is a list of content type public IDs the author can reference. The content type ID must already exist. Omit for all other types."),isMulti:Zt.boolean().optional().describe("When type=reference, this is whether the author can select multiple referenced entries. When false, only one reference is allowed. Omit for all other types."),childrenParams:Zt.array(Zt.string()).optional().describe("When type=group, this is a list of public IDs of the properties to group. The property ID must be defined within this definition. Omit for all other types."),collapsed:Zt.boolean().optional().describe("When type=group, this is whether the group is collapsed by default."),schema:Zt.any().describe("When type=json, this is an optional JSON schema the property value must follow. Omit for all other types.")}).optional()});var YI=hn.object({name:hn.string().describe('Title-cased display name of the component. Ex: "Hero"'),id:hn.string().describe("Public ID of the component, the camelCase version of name, using only alphanumeric characters"),description:hn.string().describe('Describe the purpose of the component in 1-2 sentences. If the component seems generic, such as "Promo" or "Hero", this should be blank.'),canBeComposition:hn.boolean().describe("True if the component can have pages/compositions created from it. False if it is a part of a page."),parameters:hn.array(vx).describe("The properties of the component. The key is the publicId of the property.").optional(),slots:hn.array(hn.object({name:hn.string().describe('Title-cased display name of the slot. Ex: "Content"'),id:hn.string().describe("The public id of the slot. Must be unique within this component's slots."),allowedComponents:hn.array(hn.string()).describe("The components public IDs allowed in the slot."),minComponents:hn.number().describe("The minimum number of components allowed in the slot. Omit for no minimum.").min(0).optional(),maxComponents:hn.number().describe("The maximum number of components allowed in the slot. Omit for no maximum.").min(1).optional(),inheritAllowedComponents:hn.boolean().describe("Set to false")})).describe("The slots of the component. The key is the publicId of the slot.").optional()});function ZI(t){let e=t.slots?.map(o=>({...o,patternsInAllowedComponents:!0,inheritAllowedComponents:!1,maxComponents:o.maxComponents===0?void 0:o.maxComponents,minComponents:o.minComponents===0?void 0:o.minComponents})),r=t.parameters?.find(o=>o.type==="asset"&&typeof o.typeConfig=="object"&&o.typeConfig!==null&&"allowedTypes"in o.typeConfig&&Array.isArray(o.typeConfig.allowedTypes)&&o.typeConfig.allowedTypes?.includes("image"))?.id,n=t.parameters?.find(o=>o.type==="text")?.id;return{...t,slots:e,titleParameter:n,thumbnailParameter:r}}function yx(t){return`${be.baseWebUrl}/dashboards/canvas/components/${t}`}function jp(t,e){let r=t.filter(n=>e===void 0&&n.type==="richText"||e!==void 0&&e.includes(n.id));if(r.length!==0)for(let n of r){if(n.typeConfig===void 0){n.typeConfig=hx;continue}n.typeConfig={...hx,required:n.typeConfig.required??hx.required}}}var nle={action:bx.enum(["create","update","delete"]).describe("The action to perform"),publicId:bx.string().describe("Public ID of the component, the camelCase version of name, using only alphanumeric characters"),component:YI.describe("Full component definition to create. Omit for update or delete.").optional(),patches:gx.describe("JSON patch to apply to the existing component definition. Omit for create or delete.").optional()};function JI(t){t.tool("componentAction","Creates, updates, or deletes a Uniform Component definition (or Composition definition)",nle,async({publicId:e,action:r,component:n,patches:o})=>{let i=new rle(be),s=!1;if(r==="create"){if(!n)throw new Error("Component definition is required for create");let a=ZI(n);a.parameters&&(s=qI(a.parameters),jp(a.parameters)),await i.updateComponentDefinition({componentDefinition:a})}if(r==="update"){if(!o)throw new Error("Patches are required for update");let a=await i.getComponentDefinitions({componentId:e});if(!a.componentDefinitions.length)throw new Error(`Component with public ID ${e} does not exist, try creating it instead`);let l=a.componentDefinitions[0],c=l.parameters?.filter(d=>d.type==="richText").map(d=>d.id),u=mx(l,o);if(u.parameters){s=qI(u.parameters);let d=u.parameters?.filter(f=>f.type==="richText").map(f=>f.id).filter(f=>!c?.includes(f));jp(u.parameters,d)}await i.updateComponentDefinition({componentDefinition:u})}return r==="delete"&&await i.removeComponentDefinition({componentId:e}),{content:[{type:"text",text:JSON.stringify({success:!0,editUrl:yx(e),warning:s?"Issues with parameter group order were fixed. Ensure definition data is re-fetched before any future updates.":void 0},null,2)}]}})}import{CanvasClient as XI}from"@uniformdev/canvas";import*as QI from"zod/v3";var ole={id:QI.string()};function ek(t){t.tool("componentList","Lists all Uniform Component definitions",async()=>{let n=(await new XI(be).getComponentDefinitions({includeSystem:!0})).componentDefinitions.map(o=>({id:o.id,name:o.name,type:o.canBeComposition?"composition":"component",description:o.description,editUrl:yx(o.id)}));return{content:[{type:"text",text:JSON.stringify(n,null,2)}]}}),t.tool("componentGet","Gets a Uniform Component definition details (slots, parameters, etc.)",ole,async({id:e})=>{let n=await new XI(be).getComponentDefinitions({componentId:e,includeSystem:!0});return{content:[{type:"text",text:JSON.stringify(n.componentDefinitions[0],null,2)}]}})}import*as et from"zod/v3";import*as Vp from"zod/v3";var Nc=Vp.object({componentId:Vp.string().describe("ID of the component pattern instance the data resource belongs to - can be created in the same call to this tool"),dataResourceName:Vp.string().describe("Name of the data resource to update. Must be defined as a pattern data resource on the pattern, new names cannot be created"),editInstructions:Vp.string().describe('Prompt that will be used to generate the data resource value. Omission will leave the value unchanged. To reset an overridden value to pattern default, say "reset override".').optional()}).describe("A value change to a pattern data resource. Omit unchanged data resources.");var ile=et.object({parentComponentId:et.string().describe("ID of the component the slot belongs to"),slotName:et.string().describe("Public ID of the target slot"),slotIndex:et.number().describe("Index to insert the new component at. Omit for append.").optional(),newComponentInstanceUuid:et.string().uuid().describe("UUID of the new component to create. You MUST generate a valid unique UUID using the `createUuid` tool."),instanceType:et.enum(["component","componentPattern"]),componentType:et.string().describe("Public ID of the component definition to insert. Component definition must be registered with Uniform. Omit when inserting a component pattern instance.").optional(),componentPatternId:et.string().describe("UUID of the component pattern definition to insert. Component pattern must be registered with Uniform. Omit when inserting a component instance.").optional()}),xx=et.object({componentId:et.string().describe("ID of the component the parameter belongs to - can be created in the same call to this tool"),parameterId:et.string().describe("Public ID of the parameter to update. Must be defined in the component type of the parent componentId"),parameterType:et.string().describe("The type of the parameterId as defined on the component definition"),fromLocale:et.string().describe("When translating from a different locale, use the locale you are translating from. Omit for non-localized values.").optional(),locale:et.string().describe("Locale of the parameter value. Omit for non-localized values.").optional(),editInstructions:et.string().describe('Prompt that will be used to generate the parameter value. Omission will leave the value unchanged. To reset an overridden value to pattern default, say "reset override".').optional()}).describe("A value change to a parameter. Omit unchanged parameters."),Cx=et.object({createComponentInstances:et.array(ile).describe("New components to insert in slots. Do not use for moves or duplications. Omit for delete. These actions are performed before moving, duplicating, or deleting components, and parameter updates.").optional(),moveComponentInstances:et.array(et.object({componentId:et.string().describe("Existing component ID to move. Cannot be root component."),newParentComponentId:et.string(),newSlotName:et.string().describe("Destination slot to move to"),newSlotIndex:et.number().describe("Destination index in the parent slot to move to")})).describe("Moves existing component instances to a new location in a composition. The destination can be the same slot to cause a reorder. Omit for create or delete, or if nothing needs moving. These actions are performed before duplicating or deleting components, and parameter updates.").optional(),duplicateComponentInstances:et.array(et.string().describe("Component ID to duplicate. Cannot be root component. All descendants of the duplicated component will be duplicated as well. Duplicates are placed in the same slot as the original component, at the end.")).describe("Component instances to duplicate/copy. Omit when empty. These actions are performed before deleting components and parameter updates.").optional(),deleteComponentInstances:et.array(et.string().describe("Component ID to remove. Cannot be the pattern root component.")).describe("Component instances to delete from slots during an update. Omit for create or delete, or if nothing needs deleting. These actions are performed after moving and duplicating components, and before parameter updates.").optional(),dataResourceUpdates:et.array(Nc).describe("Updates to pattern data resources. Use empty array if no changes are needed.").optional()}),Dc=et.object({enableLocales:et.array(et.string()).describe("Locales to enable. Omit for no change.").optional(),disableLocales:et.array(et.string()).describe("Locales to disable. Existing data in disabled locales will be lost. Omit for no change.").optional()}),sle=et.object({summary:et.string().describe("Short summary of the edit that was made.").optional(),success:et.boolean()}),LOe=et.object({success:et.boolean().describe("Whether all actions were successful"),actionsTaken:et.array(sle).describe("Array of individual actions that were taken")});import*as dl from"zod/v3";var ale=xx.extend({overridable:dl.enum(["yes","no"]).describe("Whether the parameter value set on the pattern definition is overridable by pattern consumers. Omit when no change is needed.").optional()}),tk=Cx.extend({name:dl.string().describe("Name of the pattern. If the name does not need to be changed, omit this field. Always include for creates.").optional(),type:dl.string().describe("Component definition type of the pattern. Must be registered with Uniform. Always include for creates. Omit otherwise.").optional(),description:dl.string().describe("Description of the pattern for authors. If the description does not need to be changed, omit this field.").optional(),parameterUpdates:dl.array(ale).describe("Updates to the parameters of the pattern. Use empty array if no changes are needed.").optional(),dataResourceUpdates:dl.array(Nc).describe("Updates to the pattern instance data resources. Use empty array if no changes are needed.").optional(),localeUpdates:Dc.optional()}).describe("Modification instructions for the pattern");import*as Lc from"zod/v3";var rk=Lc.object({...Cx.shape,name:Lc.string().describe("Name of the composition. If the name does not need to be changed, omit this field. Always include for creates.").optional(),type:Lc.string().describe("Component definition type of the composition. Must be registered with Uniform and have canBeComposition=true in the component definition. Always include for creates. Omit otherwise.").optional(),parameterUpdates:Lc.array(xx).describe("Updates to the parameters of the pattern. Use empty array if no changes are needed.").optional(),localeUpdates:Dc.optional(),dataResourceUpdates:Lc.array(Nc).describe("Updates to pattern instance data resources. Use empty array if no changes are needed.").optional()}).describe("Modification instructions for the composition");import*as la from"zod/v3";import*as qo from"zod/v3";var YE=qo.object({fieldId:qo.string().describe("Public ID of the field to update. Must be defined in the content type of the parent entry."),fieldType:qo.string().describe("The type of the fieldId as defined on the content type"),fromLocale:qo.string().describe("When translating from a different locale, use the locale you are translating from. Omit for non-localized values.").optional(),locale:qo.string().describe("Locale of the field value. Omit for non-localized values.").optional(),editInstructions:qo.string().describe('Prompt that will be used to generate the field value. Omission will leave the value unchanged. To reset an overridden value to pattern default, say "reset override".').optional()}).describe("A value change to a field. Omit unchanged fields."),nk=qo.object({type:qo.string().describe("Content type of the entry. Must be registered with Uniform. Always include for creates. Omit otherwise.").optional(),slug:qo.string().describe("Slug (human-readable identifier) of the entry. If the slug does not need to be changed, omit this field.").optional(),fieldUpdates:qo.array(YE).describe("Updates to the fields of the entry. Use empty array if no changes are needed.").optional(),localeUpdates:Dc.optional(),dataResourceUpdates:qo.array(Nc).describe("Updates to the data resources of the entry. Use empty array if no changes are needed.").optional()}).describe("Modification instructions for the entry");var lle=YE.extend({overridable:la.enum(["yes","no"]).describe("Whether the parameter value set on the pattern definition is overridable by pattern consumers. Omit when no change is needed.").optional()}),ok=la.object({name:la.string().describe("Name of the entry pattern. If the name does not need to be changed, omit this field. Always include for creates.").optional(),type:la.string().describe("Content type of the entry pattern. Must be registered with Uniform. Always include for creates. Omit otherwise.").optional(),description:la.string().describe("Description of the entry pattern for authors. If the description does not need to be changed, omit this field.").optional(),fieldUpdates:la.array(lle).describe("Updates to the fields of the entry pattern. Use empty array if no changes are needed.").optional(),localeUpdates:Dc.optional()}).describe("Modification instructions for the entry pattern");import*as so from"zod/v3";import{CANVAS_BLOCK_PARAM_TYPE as j8e,CANVAS_SLOT_SECTION_TYPE as tie}from"@uniformdev/canvas";import{getEffectivePropertyValue as V8e}from"@uniformdev/canvas";import{CANVAS_PERSONALIZATION_PARAM as H8e}from"@uniformdev/canvas";var Id="uniformContentInternalReference";var ik="$p:";function sk(t){return`${ik}${t}`}function ak(t){return t.startsWith(ik)}function ZE(t){return{...t,allowedComponentsIndex:new Set(t?.allowedComponents??[]),maxComponents:t?.maxComponents??Number.MAX_VALUE,minComponents:t?.minComponents??0,allowAllPatternsOfAllowedTypes:!t?.patternsInAllowedComponents}}import{CANVAS_HYPOTHESIS_PARAM as YOe,CANVAS_LOCALIZATION_SLOT as ZOe,CANVAS_LOCALIZATION_TYPE as qOe,CANVAS_PERSONALIZATION_ALGORITHM_PARAM as JOe,CANVAS_PERSONALIZATION_ALGORITHM_TYPE as XOe,CANVAS_PERSONALIZATION_EVENT_NAME_PARAM as QOe,CANVAS_PERSONALIZATION_TAKE_PARAM as eMe,CANVAS_PERSONALIZE_SLOT as tMe,CANVAS_PERSONALIZE_TYPE as rMe,CANVAS_SLOT_SECTION_GROUP_TYPE_PARAM as nMe,CANVAS_SLOT_SECTION_MAX_PARAM as oMe,CANVAS_SLOT_SECTION_MIN_PARAM as iMe,CANVAS_SLOT_SECTION_NAME_PARAM as sMe,CANVAS_SLOT_SECTION_SLOT as aMe,CANVAS_SLOT_SECTION_SPECIFIC_PARAM as lMe,CANVAS_SLOT_SECTION_TYPE as cMe,CANVAS_TEST_SLOT as uMe,CANVAS_TEST_TYPE as dMe}from"@uniformdev/canvas";var cle={$personalization:{isNestableIntoItself:!0},$test:void 0,$localization:void 0,$loop:void 0,$slotSection:{isAutoAllowed:!0,isNestableIntoItself:!0,isOnlyAllowedInPatternEditor:!0}},lk=t=>cle[t];function Sx(t,e,r=!1){let n=lk(t.type);if(n?.isOnlyAllowedInPatternEditor&&!r)return!1;if(n?.isAutoAllowed||e.allowAllComponents)return!0;let o=e.allowedComponentsIndex.has(t.type);return e.allowAllPatternsOfAllowedTypes||!t._pattern?o:e.allowedComponentsIndex.has(sk(t._pattern))||!1}var Hp=({twee:t,parentSlotDefinition:e,nodeId:r,componentDefinitionsIndex:n})=>{if(!e.inheritAllowedComponents)return e;let o=t.getParentInfo(r);if(!o)return;let i=n[o.value.type]?.slots?.find(({id:s})=>s===o.parentName);if(i)return Hp({parentSlotDefinition:i,nodeId:o.parentId,twee:t,componentDefinitionsIndex:n})};import{CANVAS_SLOT_SECTION_GROUP_TYPE_PARAM as ck,CANVAS_SLOT_SECTION_MAX_PARAM as ule,CANVAS_SLOT_SECTION_MIN_PARAM as dle,CANVAS_SLOT_SECTION_NAME_PARAM as fle,CANVAS_SLOT_SECTION_SPECIFIC_PARAM as ple,CANVAS_SLOT_SECTION_TYPE as mle}from"@uniformdev/canvas";var qE=({nodeId:t,twee:e,componentDefinitionsIndex:r})=>{if(e.getNodeById(t)?.value.type!==mle)return;let o=e.getNodeProperty(t,ck)?.value??"inherit",i=gle({twee:e,nodeId:t,componentDefinitionsIndex:r}),s=e.getNodeProperty(t,fle)?.value??"Slot Section",a=Number(e.getNodeProperty(t,dle)?.value),l=Number(e.getNodeProperty(t,ule)?.value);return{id:"$slotSectionItems",name:s,allowedComponents:i,inheritAllowedComponents:o==="inherit",allowAllComponents:!1,patternsInAllowedComponents:!0,minComponents:isNaN(a)?void 0:a,maxComponents:isNaN(l)?void 0:l}},gle=({twee:t,nodeId:e,componentDefinitionsIndex:r})=>{let n=t.getNodeProperty(e,ck)?.value;if(n!=="specific"&&n!=="except")return[];let o=t.getNodeProperty(e,ple)?.value??[],i=new Set(o),s=t.getParentInfo(e),l=r[s?.value.type??""]?.slots?.find(u=>u.id===s?.parentName);if(!l)return[];let c=Hp({twee:t,nodeId:s.parentId,componentDefinitionsIndex:r,parentSlotDefinition:l});if(n==="except")return c?.allowAllComponents?(console.error(`Slot section "${e}" has groupType "except" but parent allows all components. This combination is not supported; all components will be allowed.`),[]):(c?.allowedComponents??[]).filter(u=>!i.has(u));if(!c?.allowAllComponents){let u=new Set(c?.allowedComponents??[]);return o.filter(d=>u.has(d)||ak(d))}return o};function _x(t,e,r,n){return`ref-${t}-${e}`+(r?`-${r}`:"")+(n!==void 0&&n>-1?`(${n})`:"")}function uk(t,e={}){let{targetLocale:r,enabledLocales:n=[],isPatternParameter:o=!1}=e,i=r??(n.length>0?"${locale}":void 0);return{type:Id,...o?{isPatternParameter:!0}:{},variables:{entryIds:t,...i?{locale:i}:{}}}}function Ex({definition:t,lastUserChoice:e,currentValue:r}){if(t&&!t.localizable)return!1;if(r){if(r.locales&&wx(r.locales)||r.localesConditions&&wx(r.localesConditions))return!0;if(r.value!==void 0||r.conditions!==void 0)return!1}if(e!==void 0)return e;if(t)return!t.notLocalizedByDefault}function wx(t){return Array.isArray(t)?t.some(e=>wx(e)):t===void 0?!1:t===null||typeof t!="object"?!0:Object.values(t).some(e=>wx(e))}function JE({twee:t,nodeId:e,currentEditorLocale:r,definition:n}){let o=t.getNodeById(e),i=o?.propertyValueLocalizability?.[n.id],s=t.getNodeProperty(e,n?.id),a=Ex({lastUserChoice:i,currentValue:s,definition:n});if(o&&a!==void 0&&a!==(i??!1)&&t.updateNode({nodeId:e,updateMetadata:l=>{l.propertyValueLocalizability[n.id]=a},doNotSetDirty:!0}),a)return r}function dk({twee:t,nodeId:e,dataType:r,dataResourceName:n,dataResourceEdit:o}){if(!t.getNodeById(e))throw new Error(`Node with ID ${e} not found`);o.action==="resetOverride"?t.updateNode({nodeId:e,updateDataResources:[{type:"reset",name:n}]}):o.action==="setValue"&&t.updateNode({nodeId:e,updateDataResources:[{type:"set",name:n,value:{type:r,variables:o.newValue}}]})}import{CANVAS_ENRICHMENT_TAG_PARAM as O8e,CANVAS_PERSONALIZATION_ALGORITHM_PARAM as M8e,CANVAS_PERSONALIZATION_PARAM as I8e,CANVAS_PERSONALIZE_SLOT as k8e,convertToBindExpression as R8e,createVariableReference as P8e,isSystemComponentDefinition as F8e}from"@uniformdev/canvas";var fk=Object.prototype.hasOwnProperty;function po(t,e){var r,n;if(t===e)return!0;if(t&&e&&(r=t.constructor)===e.constructor){if(r===Date)return t.getTime()===e.getTime();if(r===RegExp)return t.toString()===e.toString();if(r===Array){if((n=t.length)===e.length)for(;n--&&po(t[n],e[n]););return n===-1}if(!r||typeof t=="object"){n=0;for(r in t)if(fk.call(t,r)&&++n&&!fk.call(e,r)||!(r in e)||!po(t[r],e[r]))return!1;return Object.keys(e).length===n}}return t!==t&&e!==e}function Tx(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var n in r)t[n]=r[n]}return t}var hle={read:function(t){return t[0]==='"'&&(t=t.slice(1,-1)),t.replace(/(%[\dA-F]{2})+/gi,decodeURIComponent)},write:function(t){return encodeURIComponent(t).replace(/%(2[346BF]|3[AC-F]|40|5[BDE]|60|7[BCD])/g,decodeURIComponent)}};function XE(t,e){function r(o,i,s){if(!(typeof document>"u")){s=Tx({},e,s),typeof s.expires=="number"&&(s.expires=new Date(Date.now()+s.expires*864e5)),s.expires&&(s.expires=s.expires.toUTCString()),o=encodeURIComponent(o).replace(/%(2[346B]|5E|60|7C)/g,decodeURIComponent).replace(/[()]/g,escape);var a="";for(var l in s)s[l]&&(a+="; "+l,s[l]!==!0&&(a+="="+s[l].split(";")[0]));return document.cookie=o+"="+t.write(i,o)+a}}function n(o){if(!(typeof document>"u"||arguments.length&&!o)){for(var i=document.cookie?document.cookie.split("; "):[],s={},a=0;a<i.length;a++){var l=i[a].split("="),c=l.slice(1).join("=");try{var u=decodeURIComponent(l[0]);if(s[u]=t.read(c,u),o===u)break}catch{}}return o?s[o]:s}}return Object.create({set:r,get:n,remove:function(o,i){r(o,"",Tx({},i,{expires:-1}))},withAttributes:function(o){return XE(this.converter,Tx({},this.attributes,o))},withConverter:function(o){return XE(Tx({},this.converter,o),this.attributes)}},{attributes:{value:Object.freeze(e)},converter:{value:Object.freeze(t)}})}var vle=XE(hle,{path:"/"});function $0(t){return{all:t=t||new Map,on:function(e,r){var n=t.get(e);n?n.push(r):t.set(e,[r])},off:function(e,r){var n=t.get(e);n&&(r?n.splice(n.indexOf(r)>>>0,1):t.set(e,[]))},emit:function(e,r){var n=t.get(e);n&&n.slice().map(function(o){o(r)}),(n=t.get("*"))&&n.slice().map(function(o){o(e,r)})}}}var hk=k(N0(),1);var Sk=k(N0(),1),_k=k(N0(),1);var xle=t=>{throw TypeError(t)};var n5=(t,e,r)=>e.has(t)||xle("Cannot "+r),hr=(t,e,r)=>(n5(t,e,"read from private field"),r?r.call(t):e.get(t));var mk=(t,e,r,n)=>(n5(t,e,"write to private field"),n?n.call(t,r):e.set(t,r),r),L0=(t,e,r)=>(n5(t,e,"access private method"),r);var Cle="_",Sle;Sle=new WeakMap;var _le,wle;_le=new WeakMap;wle=new WeakMap;var Ele,Tle,$le,Nle;Ele=new WeakMap;Tle=new WeakMap;$le=new WeakMap;Nle=new WeakMap;function Dle(t,e){return`${t}${Cle}${e}`}function Lle(t,e){var r;if(typeof t>"u"||t===null)return!1;let n=Number(t);if(isNaN(n))return!1;switch((r=e?.op)!=null?r:"="){case"=":return n===e.rhs;case"!=":return n!==e.rhs;case">":return n>e.rhs;case"<":return n<e.rhs;default:return console.warn(`Unknown match type ${e.op} is false.`),!1}}function Ale(t,e){return`${t} ${Ole(e)}`}function Ole(t){return`${t.op} ${t.rhs}`}var QE=Dle("$pvc","v"),Mle=({update:t,criteria:e,commands:r,onLogMessage:n})=>{var o,i;if(e.type!=="PVC")return{result:!1,changed:!1};let s=!!(t.state.url&&(!t.previousState||((o=t.state.url)==null?void 0:o.toString())!==((i=t.previousState.url)==null?void 0:i.toString()))),l=(t.visitor.sessionScores[QE]||0)+1,c={result:!1,changed:s},u=r.some(d=>d.type==="modscoreS"&&d.data.dimension===QE);return s&&!u&&r.push({type:"modscoreS",data:{dimension:QE,delta:1}}),Lle(l,e.match)&&(c.result=!0),n?.(["debug",203,{criteria:e,result:c,explanation:Ale(l,e.match)}]),c};Mle.alwaysExecute=!0;var Ile;Ile=new WeakMap;var gk="ssc";var kle,Rle,Ple;kle=new WeakMap;Rle=new WeakMap;Ple=new WeakMap;var e5="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",PMe=e5.split(""),Fle=new Array(123);for(let t=0;t<e5.length;t++)Fle[e5.charCodeAt(t)]=t;var Ble,zle,jle,Vle;Ble=new WeakMap;zle=new WeakMap;jle=new WeakMap;Vle=new WeakMap;var Hle,Ule;Hle=new WeakSet;Ule=async function(){let t=await new Promise(e=>{setTimeout(()=>{e(void 0)},2e3)});t&&this.signalAsyncDataUpdate(t)};var Kle=()=>({quirks:{},scores:{},sessionScores:{},tests:{},goals:{},consent:!1,controlGroup:!1,personalizeVariants:{}}),zMe=(0,hk.default)();var Wle,Gle;Wle=new WeakSet;Gle=function(t){return this.partitionKey?`${this.partitionKey}.${t}`:t};var vk="ufvisitor",kd,o5,$x,Si,D0,yk,Yle,bk,Zle,t5,qle;kd=new WeakMap;o5=new WeakMap;$x=new WeakMap;Si=new WeakMap;D0=new WeakSet;yk=function(){return hr(this,o5).get(vk)};Yle=function(t,e=!1){var r,n,o,i,s,a,l,c,u,d,f;let p=hr(this,D0,yk),m=Date.now();L0(this,D0,t5).call(this,t.scores),L0(this,D0,t5).call(this,t.sessionScores),(n=(r=hr(this,Si)).decay)==null||n.call(r,{now:m,lastUpd:p?.updated,scores:t.scores,sessionScores:t.sessionScores,onLogMessage:hr(this,Si).onLogMessage});let g=!po(p?.visitorData.scores,t.scores),h=!po(p?.visitorData.sessionScores,t.sessionScores),v=!po(p?.visitorData.quirks,t.quirks),y=!po(p?.visitorData.tests,t.tests),b=!po(p?.visitorData.goals,t.goals),x={updated:m,visitorData:t};if(L0(this,D0,bk).call(this),hr(this,o5).set(vk,x,!!t.consent),(i=(o=hr(this,Si)).onLogMessage)==null||i.call(o,["debug",102,t]),!e&&((g||h)&&hr(this,kd).emit("scoresUpdated",t),v&&hr(this,kd).emit("quirksUpdated",t),y&&hr(this,kd).emit("testsUpdated",t),((s=p?.visitorData)==null?void 0:s.consent)!==t.consent&&hr(this,kd).emit("consentUpdated",t),((a=p?.visitorData)==null?void 0:a.controlGroup)!==t.controlGroup&&(hr(this,kd).emit("controlGroupUpdated",t),(u=(c=hr(this,Si)).onLogMessage)==null||u.call(c,["debug",104,(l=t.controlGroup)!=null?l:!1])),b)){let S=Object.keys((d=t.goals)!=null?d:{});for(let _=0;_<S.length;_++){let w=S[_];(f=p?.visitorData.goals)!=null&&f[w]||hr(this,kd).emit("goalConverted",{goalId:w})}}};bk=function(){typeof document>"u"||!hr(this,Si).visitLifespan||(hr(this,$x)&&window.clearTimeout(hr(this,$x)),mk(this,$x,window.setTimeout(()=>{this.data},hr(this,Si).visitLifespan+50)))};Zle=function(t){let e=hr(this,Si).visitLifespan;return e?t.updated+e<Date.now():!1};t5=function(t){var e,r;if(hr(this,Si).manifest)for(let n in t){let o=t[n],i=hr(this,Si).manifest.getDimensionByKey(n);i&&o>i.cap&&((r=(e=hr(this,Si)).onLogMessage)==null||r.call(e,["debug",110,{dim:n,score:o,cap:i.cap}]),t[n]=i.cap)}};qle=function(){var t,e,r;return{...Kle(),consent:(t=hr(this,Si).defaultConsent)!=null?t:!1,controlGroup:(r=(e=hr(this,Si).manifest)==null?void 0:e.rollForControlGroup())!=null?r:!1}};var Jle,Xle,Nx,Qle,ece,tce,rce,nce,Dx,r5,oce,xk,ice,Ck;Jle=new WeakMap;Xle=new WeakMap;Nx=new WeakMap;Qle=new WeakMap;ece=new WeakMap;tce=new WeakMap;rce=new WeakMap;nce=new WeakMap;Dx=new WeakMap;r5=new WeakSet;oce=function(t){hr(this,Dx).emit("testResult",t)};xk=async function(t){let e=this.manifest.computeGoals(t);e.length!==0&&await this.storage.updateData(e)};ice=function(t){let e=L0(this,r5,Ck).call(this,t);!po(e,hr(this,Nx))&&(mk(this,Nx,e),L0(this,r5,xk).call(this,{scores:hr(this,Nx),quirks:void 0}),hr(this,Dx).emit("scoresUpdated",e),hr(this,Dx).emit("log",["info",3,e]))};Ck=function(t){var e;let r={...t.scores};for(let n in t.sessionScores)r[n]=((e=r[n])!=null?e:0)+t.sessionScores[n];return r=this.manifest.computeAggregateDimensions(r),r};var HMe=(0,Sk.default)();var UMe=(0,_k.default)();await Xm();var V0e=await(process.env.NODE_ENV!=="production"?EV().then(()=>wV):$V().then(()=>TV)),NV=V0e.createHeadlessEditor;await f4();await L4();await F4();await yW();await i3();await UW();await es();await cn();import{createVariableReference as w8e}from"@uniformdev/canvas";var ju=k(rn());sN();var Zje=k(K());Hg();var Jje=k(lN());Q1();var Qje=k(Q9());Kg();Wg();$3();var pi=ju.Fragment,M=function(e,r,n){return Af.call(r,"css")?ju.jsx(iv,ov(e,r),n):ju.jsx(e,r,n)},ae=function(e,r,n){return Af.call(r,"css")?ju.jsxs(iv,ov(e,r),n):ju.jsxs(e,r,n)};re();re();re();re();re();function VG(t){for(var e=[],r=1;r<arguments.length;r++)e[r-1]=arguments[r];t&&t.addEventListener&&t.addEventListener.apply(t,e)}function HG(t){for(var e=[],r=1;r<arguments.length;r++)e[r-1]=arguments[r];t&&t.removeEventListener&&t.removeEventListener.apply(t,e)}var UG=typeof window<"u";var KG=k(K());var js=k(K());function uN(t,e){e===void 0&&(e=0);var r=(0,js.useRef)(!1),n=(0,js.useRef)(),o=(0,js.useRef)(t),i=(0,js.useCallback)(function(){return r.current},[]),s=(0,js.useCallback)(function(){r.current=!1,n.current&&clearTimeout(n.current),n.current=setTimeout(function(){r.current=!0,o.current()},e)},[e]),a=(0,js.useCallback)(function(){r.current=null,n.current&&clearTimeout(n.current)},[]);return(0,js.useEffect)(function(){o.current=t},[t]),(0,js.useEffect)(function(){return s(),a},[e]),[i,a,s]}function A3(t,e,r){e===void 0&&(e=0),r===void 0&&(r=[]);var n=uN(t,e),o=n[0],i=n[1],s=n[2];return(0,KG.useEffect)(s,r),[o,i]}var Yg=k(K());var Txe=function(t){return t===void 0&&(t={laptopL:1440,laptop:1024,tablet:768}),function(){var e=(0,Yg.useState)(UG?window.innerWidth:0),r=e[0],n=e[1];(0,Yg.useEffect)(function(){var s=function(){n(window.innerWidth)};return s(),VG(window,"resize",s),function(){HG(window,"resize",s)}});var o=(0,Yg.useMemo)(function(){return Object.entries(t).sort(function(s,a){return s[1]>=a[1]?1:-1})},[t]),i=o.reduce(function(s,a){var l=a[0],c=a[1];return r>=c?l:s},o[0][0]);return i}},dN=Txe;re();re();re();var HTe=k(K());re();re();var $xe=Object.defineProperty,Nxe=Object.defineProperties,Dxe=Object.getOwnPropertyDescriptors,O3=Object.getOwnPropertySymbols,GG=Object.prototype.hasOwnProperty,YG=Object.prototype.propertyIsEnumerable,WG=(t,e,r)=>e in t?$xe(t,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[e]=r,q=(t,e)=>{for(var r in e||(e={}))GG.call(e,r)&&WG(t,r,e[r]);if(O3)for(var r of O3(e))YG.call(e,r)&&WG(t,r,e[r]);return t},ce=(t,e)=>Nxe(t,Dxe(e)),$e=(t,e)=>{var r={};for(var n in t)GG.call(t,n)&&e.indexOf(n)<0&&(r[n]=t[n]);if(t!=null&&O3)for(var n of O3(t))e.indexOf(n)<0&&YG.call(t,n)&&(r[n]=t[n]);return r};var Lxe=Object.defineProperty,Axe=Object.defineProperties,Oxe=Object.getOwnPropertyDescriptors,M3=Object.getOwnPropertySymbols,qG=Object.prototype.hasOwnProperty,JG=Object.prototype.propertyIsEnumerable,ZG=(t,e,r)=>e in t?Lxe(t,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[e]=r,ct=(t,e)=>{for(var r in e||(e={}))qG.call(e,r)&&ZG(t,r,e[r]);if(M3)for(var r of M3(e))JG.call(e,r)&&ZG(t,r,e[r]);return t},pr=(t,e)=>Axe(t,Oxe(e)),I3=(t,e)=>{var r={};for(var n in t)qG.call(t,n)&&e.indexOf(n)<0&&(r[n]=t[n]);if(t!=null&&M3)for(var n of M3(t))e.indexOf(n)<0&&JG.call(t,n)&&(r[n]=t[n]);return r};function Of(...t){}function sv(t,e){if(Mxe(t)){let r=Ixe(e)?e():e;return t(r)}return t}function Mxe(t){return typeof t=="function"}function Ixe(t){return typeof t=="function"}function jo(t,e){return typeof Object.hasOwn=="function"?Object.hasOwn(t,e):Object.prototype.hasOwnProperty.call(t,e)}function Ir(...t){return(...e)=>{for(let r of t)typeof r=="function"&&r(...e)}}function fN(t){return t.normalize("NFD").replace(/[\u0300-\u036f]/g,"")}function pN(t,e){let r=ct({},t);for(let n of e)jo(r,n)&&delete r[n];return r}function mN(t,e){let r={};for(let n of e)jo(t,n)&&(r[n]=t[n]);return r}function av(t){return t}function vt(t,e){if(!t)throw typeof e!="string"?new Error("Invariant failed"):new Error(e)}function gN(t){return Object.keys(t)}function Wa(t,...e){let r=typeof t=="function"?t(...e):t;return r==null?!1:!r}function Vs(t){return t.disabled||t["aria-disabled"]===!0||t["aria-disabled"]==="true"}function Vo(t){let e={};for(let r in t)t[r]!==void 0&&(e[r]=t[r]);return e}function ot(...t){for(let e of t)if(e!==void 0)return e}var XG=k(K(),1);function lv(t,e){typeof t=="function"?t(e):t&&(t.current=e)}function kxe(t){return!t||!(0,XG.isValidElement)(t)?!1:"ref"in t.props||"ref"in t}function QG(t){return kxe(t)?q({},t.props).ref||t.ref:null}function eY(t,e){let r=q({},t);for(let n in e){if(!jo(e,n))continue;if(n==="className"){let i="className";r[i]=t[i]?`${t[i]} ${e[i]}`:e[i];continue}if(n==="style"){let i="style";r[i]=t[i]?q(q({},t[i]),e[i]):e[i];continue}let o=e[n];if(typeof o=="function"&&n.startsWith("on")){let i=t[n];if(typeof i=="function"){r[n]=(...s)=>{o(...s),i(...s)};continue}}r[n]=o}return r}var ql=Rxe();function Rxe(){var t;return typeof window<"u"&&!!((t=window.document)!=null&&t.createElement)}function Dt(t){return t?"self"in t?t.document:t.ownerDocument||document:document}function Mf(t){return t?"self"in t?t.self:Dt(t).defaultView||window:self}function Li(t,e=!1){let{activeElement:r}=Dt(t);if(!r?.nodeName)return null;if(cv(r)&&r.contentDocument)return Li(r.contentDocument.body,e);if(e){let n=r.getAttribute("aria-activedescendant");if(n){let o=Dt(r).getElementById(n);if(o)return o}}return r}function Wt(t,e){return t===e||t.contains(e)}function cv(t){return t.tagName==="IFRAME"}function mi(t){let e=t.tagName.toLowerCase();return e==="button"?!0:e==="input"&&t.type?Pxe.indexOf(t.type)!==-1:!1}var Pxe=["button","color","file","image","reset","submit"];function uv(t){if(typeof t.checkVisibility=="function")return t.checkVisibility();let e=t;return e.offsetWidth>0||e.offsetHeight>0||t.getClientRects().length>0}function Ho(t){try{let e=t instanceof HTMLInputElement&&t.selectionStart!==null,r=t.tagName==="TEXTAREA";return e||r||!1}catch{return!1}}function dv(t){return t.isContentEditable||Ho(t)}function hN(t){if(Ho(t))return t.value;if(t.isContentEditable){let e=Dt(t).createRange();return e.selectNodeContents(t),e.toString()}return""}function vN(t){let e=0,r=0;if(Ho(t))e=t.selectionStart||0,r=t.selectionEnd||0;else if(t.isContentEditable){let n=Dt(t).getSelection();if(n?.rangeCount&&n.anchorNode&&Wt(t,n.anchorNode)&&n.focusNode&&Wt(t,n.focusNode)){let o=n.getRangeAt(0),i=o.cloneRange();i.selectNodeContents(t),i.setEnd(o.startContainer,o.startOffset),e=i.toString().length,i.setEnd(o.endContainer,o.endOffset),r=i.toString().length}}return{start:e,end:r}}function Zg(t,e){let r=["dialog","menu","listbox","tree","grid"],n=t?.getAttribute("role");return n&&r.indexOf(n)!==-1?n:e}function fv(t,e){var r;let n={menu:"menuitem",listbox:"option",tree:"treeitem"},o=Zg(t);return o&&(r=n[o])!=null?r:e}function k3(t){if(!t)return null;let e=r=>r==="auto"||r==="scroll";if(t.clientHeight&&t.scrollHeight>t.clientHeight){let{overflowY:r}=getComputedStyle(t);if(e(r))return t}else if(t.clientWidth&&t.scrollWidth>t.clientWidth){let{overflowX:r}=getComputedStyle(t);if(e(r))return t}return k3(t.parentElement)||document.scrollingElement||document.body}function pv(t,e){let r=t.map((o,i)=>[i,o]),n=!1;return r.sort(([o,i],[s,a])=>{let l=e(i),c=e(a);return l===c||!l||!c?0:Fxe(l,c)?(o>s&&(n=!0),-1):(o<s&&(n=!0),1)}),n?r.map(([o,i])=>i):t}function Fxe(t,e){return!!(e.compareDocumentPosition(t)&Node.DOCUMENT_POSITION_PRECEDING)}function tY(){return ql&&!!navigator.maxTouchPoints}function qg(){return ql?/mac|iphone|ipad|ipod/i.test(navigator.platform):!1}function If(){return ql&&qg()&&/apple/i.test(navigator.vendor)}function yN(){return ql&&/firefox\//i.test(navigator.userAgent)}function bN(){return ql&&navigator.platform.startsWith("Mac")&&!tY()}function R3(t){return!!(t.currentTarget&&!Wt(t.currentTarget,t.target))}function eo(t){return t.target===t.currentTarget}function rY(t){let e=t.currentTarget;if(!e)return!1;let r=qg();if(r&&!t.metaKey||!r&&!t.ctrlKey)return!1;let n=e.tagName.toLowerCase();return n==="a"||n==="button"&&e.type==="submit"||n==="input"&&e.type==="submit"}function nY(t){let e=t.currentTarget;if(!e)return!1;let r=e.tagName.toLowerCase();return t.altKey?r==="a"||r==="button"&&e.type==="submit"||r==="input"&&e.type==="submit":!1}function oY(t,e,r){let n=new Event(e,r);return t.dispatchEvent(n)}function kf(t,e){let r=new FocusEvent("blur",e),n=t.dispatchEvent(r),o=pr(ct({},e),{bubbles:!0});return t.dispatchEvent(new FocusEvent("focusout",o)),n}function iY(t,e,r){let n=new KeyboardEvent(e,r);return t.dispatchEvent(n)}function xN(t,e){let r=new MouseEvent("click",e);return t.dispatchEvent(r)}function Vu(t,e){let r=e||t.currentTarget,n=t.relatedTarget;return!n||!Wt(r,n)}function Hu(t,e,r,n){let i=(a=>{if(n){let c=setTimeout(a,n);return()=>clearTimeout(c)}let l=requestAnimationFrame(a);return()=>cancelAnimationFrame(l)})(()=>{t.removeEventListener(e,s,!0),r()}),s=()=>{i(),r()};return t.addEventListener(e,s,{once:!0,capture:!0}),i}function Ur(t,e,r,n=window){let o=[];try{n.document.addEventListener(t,e,r);for(let s of Array.from(n.frames))o.push(Ur(t,e,r,s))}catch{}return()=>{try{n.document.removeEventListener(t,e,r)}catch{}for(let s of o)s()}}var Bxe=k(K(),1),Kr=k(K(),1),CN=q({},Bxe),sY=CN.useId,KVe=CN.useDeferredValue,aY=CN.useInsertionEffect,Ct=ql?Kr.useLayoutEffect:Kr.useEffect;function F3(t){let e=(0,Kr.useRef)(t);return Ct(()=>{e.current=t}),e}function ke(t){let e=(0,Kr.useRef)(()=>{throw new Error("Cannot call an event handler while rendering.")});return aY?aY(()=>{e.current=t}):e.current=t,(0,Kr.useCallback)((...r)=>{var n;return(n=e.current)==null?void 0:n.call(e,...r)},[])}function dY(t){let[e,r]=(0,Kr.useState)(null);return Ct(()=>{if(e==null||!t)return;let n=null;return t(o=>(n=o,e)),()=>{t(n)}},[e,t]),[e,r]}function xt(...t){return(0,Kr.useMemo)(()=>{if(t.some(Boolean))return e=>{for(let r of t)lv(r,e)}},t)}function gi(t){if(sY){let n=sY();return t||n}let[e,r]=(0,Kr.useState)(t);return Ct(()=>{if(t||e)return;let n=Math.random().toString(36).slice(2,8);r(`id-${n}`)},[t,e]),t||e}function B3(t,e){let r=i=>{if(typeof i=="string")return i},[n,o]=(0,Kr.useState)(()=>r(e));return Ct(()=>{let i=t&&"current"in t?t.current:t;o(i?.tagName.toLowerCase()||r(e))},[t,e]),n}function Uu(t,e){let r=(0,Kr.useRef)(!1);(0,Kr.useEffect)(()=>{if(r.current)return t();r.current=!0},e),(0,Kr.useEffect)(()=>()=>{r.current=!1},[])}function fY(){return(0,Kr.useReducer)(()=>[],[])}function dn(t){return ke(typeof t=="function"?t:()=>t)}function Cr(t,e,r=[]){let n=(0,Kr.useCallback)(o=>(t.wrapElement&&(o=t.wrapElement(o)),e(o)),[...r,t.wrapElement]);return ce(q({},t),{wrapElement:n})}function Jg(t=!1,e){let[r,n]=(0,Kr.useState)(null);return{portalRef:xt(n,e),portalNode:r,domReady:!t||r}}function z3(t,e,r){let n=t.onLoadedMetadataCapture,o=(0,Kr.useMemo)(()=>Object.assign(()=>{},ce(q({},n),{[e]:r})),[n,e,r]);return[n?.[e],{onLoadedMetadataCapture:o}]}var lY=!1;function Xg(){return(0,Kr.useEffect)(()=>{lY||(Ur("mousemove",jxe,!0),Ur("mousedown",P3,!0),Ur("mouseup",P3,!0),Ur("keydown",P3,!0),Ur("scroll",P3,!0),lY=!0)},[]),ke(()=>SN)}var SN=!1,cY=0,uY=0;function zxe(t){let e=t.movementX||t.screenX-cY,r=t.movementY||t.screenY-uY;return cY=t.screenX,uY=t.screenY,e||r||process.env.NODE_ENV==="test"}function jxe(t){zxe(t)&&(SN=!0)}function P3(){SN=!1}var Uo=k(K(),1),Rf=k(rn(),1);function _e(t){let e=Uo.forwardRef((r,n)=>t(ce(q({},r),{ref:n})));return e.displayName=t.displayName||t.name,e}function Ku(t,e){return Uo.memo(t,e)}function Ne(t,e){let r=e,{wrapElement:n,render:o}=r,i=$e(r,["wrapElement","render"]),s=xt(e.ref,QG(o)),a;if(Uo.isValidElement(o)){let l=ce(q({},o.props),{ref:s});a=Uo.cloneElement(o,eY(i,l))}else o?a=o(i):a=(0,Rf.jsx)(t,q({},i));return n?n(a):a}function Le(t){let e=(r={})=>t(r);return e.displayName=t.name,e}function wn(t=[],e=[]){let r=Uo.createContext(void 0),n=Uo.createContext(void 0),o=()=>Uo.useContext(r),i=(c=!1)=>{let u=Uo.useContext(n),d=o();return c?u:u||d},s=()=>{let c=Uo.useContext(n),u=o();if(!(c&&c===u))return u},a=c=>t.reduceRight((u,d)=>(0,Rf.jsx)(d,ce(q({},c),{children:u})),(0,Rf.jsx)(r.Provider,q({},c)));return{context:r,scopedContext:n,useContext:o,useScopedContext:i,useProviderContext:s,ContextProvider:a,ScopedContextProvider:c=>(0,Rf.jsx)(a,ce(q({},c),{children:e.reduceRight((u,d)=>(0,Rf.jsx)(d,ce(q({},c),{children:u})),(0,Rf.jsx)(n.Provider,q({},c)))}))}}var mv=wn(),pY=mv.useContext,XVe=mv.useScopedContext,QVe=mv.useProviderContext,mY=mv.ContextProvider,gY=mv.ScopedContextProvider;var _N=k(K(),1),gv=wn([mY],[gY]),Qg=gv.useContext,nHe=gv.useScopedContext,hY=gv.useProviderContext,Wu=gv.ContextProvider,eh=gv.ScopedContextProvider,vY=(0,_N.createContext)(void 0),yY=(0,_N.createContext)(void 0);var Vxe={id:null};function bY(t,e,r=!1){let n=t.findIndex(o=>o.id===e);return[...t.slice(n+1),...r?[Vxe]:[],...t.slice(0,n)]}function xY(t,e){return t.find(r=>e?!r.disabled&&r.id!==e:!r.disabled)}function Ga(t,e){return e&&t.item(e)||null}function CY(t){let e=[];for(let r of t){let n=e.find(o=>{var i;return((i=o[0])==null?void 0:i.rowId)===r.rowId});n?n.push(r):e.push([r])}return e}function SY(t,e=!1){if(Ho(t))t.setSelectionRange(e?t.value.length:0,t.value.length);else if(t.isContentEditable){let r=Dt(t).getSelection();r?.selectAllChildren(t),e&&r?.collapseToEnd()}}var wN=Symbol("FOCUS_SILENTLY");function _Y(t){t[wN]=!0,t.focus({preventScroll:!0})}function wY(t){let e=t[wN];return delete t[wN],e}function Pf(t,e,r){if(!e||e===r)return!1;let n=t.item(e.id);return!(!n||r&&n.element===r)}var j3=k(K(),1),Hxe="div",EN=Le(function(e){var r=e,{store:n,shouldRegisterItem:o=!0,getItem:i=av,element:s}=r,a=$e(r,["store","shouldRegisterItem","getItem","element"]);let l=pY();n=n||l;let c=gi(a.id),u=(0,j3.useRef)(s);return(0,j3.useEffect)(()=>{let d=u.current;if(!c||!d||!o)return;let f=i({id:c,element:d});return n?.renderItem(f)},[c,o,i,n]),a=ce(q({},a),{ref:xt(u,a.ref)}),Vo(a)}),fHe=_e(function(e){let r=EN(e);return Ne(Hxe,r)});var EY=k(K(),1),V3=(0,EY.createContext)(!0);var H3="input:not([type='hidden']):not([disabled]), select:not([disabled]), textarea:not([disabled]), a[href], button:not([disabled]), [tabindex], summary, iframe, object, embed, area[href], audio[controls], video[controls], [contenteditable]:not([contenteditable='false'])";function Uxe(t){return Number.parseInt(t.getAttribute("tabindex")||"0",10)<0}function Ai(t){return!(!t.matches(H3)||!uv(t)||t.closest("[inert]"))}function th(t){if(!Ai(t)||Uxe(t))return!1;if(!("form"in t)||!t.form||t.checked||t.type!=="radio")return!0;let e=t.form.elements.namedItem(t.name);if(!e||!("length"in e))return!0;let r=Li(t);return!r||r===t||!("form"in r)||r.form!==t.form||r.name!==t.name}function TN(t,e){let r=Array.from(t.querySelectorAll(H3));e&&r.unshift(t);let n=r.filter(Ai);return n.forEach((o,i)=>{if(cv(o)&&o.contentDocument){let s=o.contentDocument.body;n.splice(i,1,...TN(s))}}),n}function hv(t,e,r){let n=Array.from(t.querySelectorAll(H3)),o=n.filter(th);return e&&th(t)&&o.unshift(t),o.forEach((i,s)=>{if(cv(i)&&i.contentDocument){let a=i.contentDocument.body,l=hv(a,!1,r);o.splice(s,1,...l)}}),!o.length&&r?n:o}function TY(t,e,r){let[n]=hv(t,e,r);return n||null}function Kxe(t,e,r,n){let o=Li(t),i=TN(t,e),s=i.indexOf(o),a=i.slice(s+1);return a.find(th)||(r?i.find(th):null)||(n?a[0]:null)||null}function U3(t,e){return Kxe(document.body,!1,t,e)}function Wxe(t,e,r,n){let o=Li(t),i=TN(t,e).reverse(),s=i.indexOf(o),a=i.slice(s+1);return a.find(th)||(r?i.find(th):null)||(n?a[0]:null)||null}function $N(t,e){return Wxe(document.body,!1,t,e)}function $Y(t){for(;t&&!Ai(t);)t=t.closest(H3);return t||null}function Ff(t){let e=Li(t);if(!e)return!1;if(e===t)return!0;let r=e.getAttribute("aria-activedescendant");return r?r===t.id:!1}function os(t){let e=Li(t);if(!e)return!1;if(Wt(t,e))return!0;let r=e.getAttribute("aria-activedescendant");return!r||!("id"in t)?!1:r===t.id?!0:!!t.querySelector(`#${CSS.escape(r)}`)}function K3(t){!os(t)&&Ai(t)&&t.focus()}function Gxe(t){var e;let r=(e=t.getAttribute("tabindex"))!=null?e:"";t.setAttribute("data-tabindex",r),t.setAttribute("tabindex","-1")}function NY(t,e){let r=hv(t,e);for(let n of r)Gxe(n)}function DY(t){let e=t.querySelectorAll("[data-tabindex]"),r=n=>{let o=n.getAttribute("data-tabindex");n.removeAttribute("data-tabindex"),o?n.setAttribute("tabindex",o):n.removeAttribute("tabindex")};t.hasAttribute("data-tabindex")&&r(t);for(let n of e)r(n)}function LY(t,e){"scrollIntoView"in t?(t.focus({preventScroll:!0}),t.scrollIntoView(ct({block:"nearest",inline:"nearest"},e))):t.focus()}var Oi=k(K(),1),Yxe="div",AY=If(),Zxe=["text","search","url","tel","email","password","number","date","month","week","time","datetime","datetime-local"],kY=Symbol("safariFocusAncestor");function RY(t){return t?!!t[kY]:!1}function OY(t,e){t&&(t[kY]=e)}function qxe(t){let{tagName:e,readOnly:r,type:n}=t;return e==="TEXTAREA"&&!r||e==="SELECT"&&!r?!0:e==="INPUT"&&!r?Zxe.includes(n):!!(t.isContentEditable||t.getAttribute("role")==="combobox"&&t.dataset.name)}function Jxe(t){return"labels"in t?t.labels:null}function MY(t){return t.tagName.toLowerCase()==="input"&&t.type?t.type==="radio"||t.type==="checkbox":!1}function Xxe(t){return t?t==="button"||t==="summary"||t==="input"||t==="select"||t==="textarea"||t==="a":!0}function Qxe(t){return t?t==="button"||t==="input"||t==="select"||t==="textarea":!0}function eCe(t,e,r,n,o){return t?e?r&&!n?-1:void 0:r?o:o||0:o}function NN(t,e){return ke(r=>{t?.(r),!r.defaultPrevented&&e&&(r.stopPropagation(),r.preventDefault())})}var IY=!1,DN=!0;function tCe(t){let e=t.target;e&&"hasAttribute"in e&&(e.hasAttribute("data-focus-visible")||(DN=!1))}function rCe(t){t.metaKey||t.ctrlKey||t.altKey||(DN=!0)}var Jl=Le(function(e){var r=e,{focusable:n=!0,accessibleWhenDisabled:o,autoFocus:i,onFocusVisible:s}=r,a=$e(r,["focusable","accessibleWhenDisabled","autoFocus","onFocusVisible"]);let l=(0,Oi.useRef)(null);(0,Oi.useEffect)(()=>{n&&(IY||(Ur("mousedown",tCe,!0),Ur("keydown",rCe,!0),IY=!0))},[n]),AY&&(0,Oi.useEffect)(()=>{if(!n)return;let D=l.current;if(!D||!MY(D))return;let F=Jxe(D);if(!F)return;let P=()=>queueMicrotask(()=>D.focus());for(let z of F)z.addEventListener("mouseup",P);return()=>{for(let z of F)z.removeEventListener("mouseup",P)}},[n]);let c=n&&Vs(a),u=!!c&&!o,[d,f]=(0,Oi.useState)(!1);(0,Oi.useEffect)(()=>{n&&u&&d&&f(!1)},[n,u,d]),(0,Oi.useEffect)(()=>{if(!n||!d)return;let D=l.current;if(!D||typeof IntersectionObserver>"u")return;let F=new IntersectionObserver(()=>{Ai(D)||f(!1)});return F.observe(D),()=>F.disconnect()},[n,d]);let p=NN(a.onKeyPressCapture,c),m=NN(a.onMouseDownCapture,c),g=NN(a.onClickCapture,c),h=a.onMouseDown,v=ke(D=>{if(h?.(D),D.defaultPrevented||!n)return;let F=D.currentTarget;if(!AY||R3(D)||!mi(F)&&!MY(F))return;let P=!1,z=()=>{P=!0},j={capture:!0,once:!0};F.addEventListener("focusin",z,j);let I=$Y(F.parentElement);OY(I,!0),Hu(F,"mouseup",()=>{F.removeEventListener("focusin",z,!0),OY(I,!1),!P&&K3(F)})}),y=(D,F)=>{if(F&&(D.currentTarget=F),!n)return;let P=D.currentTarget;P&&Ff(P)&&(s?.(D),!D.defaultPrevented&&(P.dataset.focusVisible="true",f(!0)))},b=a.onKeyDownCapture,x=ke(D=>{if(b?.(D),D.defaultPrevented||!n||d||D.metaKey||D.altKey||D.ctrlKey||!eo(D))return;let F=D.currentTarget;Hu(F,"focusout",()=>y(D,F))}),S=a.onFocusCapture,_=ke(D=>{if(S?.(D),D.defaultPrevented||!n)return;if(!eo(D)){f(!1);return}let F=D.currentTarget,P=()=>y(D,F);DN||qxe(D.target)?Hu(D.target,"focusout",P):f(!1)}),w=a.onBlur,T=ke(D=>{w?.(D),n&&Vu(D)&&(D.currentTarget.removeAttribute("data-focus-visible"),f(!1))}),N=(0,Oi.useContext)(V3),$=ke(D=>{n&&i&&D&&N&&queueMicrotask(()=>{Ff(D)||Ai(D)&&D.focus()})}),E=B3(l),R=n&&Xxe(E),O=n&&Qxe(E),A=a.style,B=(0,Oi.useMemo)(()=>u?q({pointerEvents:"none"},A):A,[u,A]);return a=ce(q({"data-focus-visible":n&&d||void 0,"data-autofocus":i||void 0,"aria-disabled":c||void 0},a),{ref:xt(l,$,a.ref),style:B,tabIndex:eCe(n,u,R,O,a.tabIndex),disabled:O&&u?!0:void 0,contentEditable:c?void 0:a.contentEditable,onKeyPressCapture:p,onClickCapture:g,onMouseDownCapture:m,onMouseDown:v,onKeyDownCapture:x,onFocusCapture:_,onBlur:T}),Vo(a)}),DHe=_e(function(e){let r=Jl(e);return Ne(Yxe,r)});var Gu=k(K(),1),nCe="button";function PY(t){if(!t.isTrusted)return!1;let e=t.currentTarget;return t.key==="Enter"?mi(e)||e.tagName==="SUMMARY"||e.tagName==="A":t.key===" "?mi(e)||e.tagName==="SUMMARY"||e.tagName==="INPUT"||e.tagName==="SELECT":!1}var oCe=Symbol("command"),vv=Le(function(e){var r=e,{clickOnEnter:n=!0,clickOnSpace:o=!0}=r,i=$e(r,["clickOnEnter","clickOnSpace"]);let s=(0,Gu.useRef)(null),[a,l]=(0,Gu.useState)(!1);(0,Gu.useEffect)(()=>{s.current&&l(mi(s.current))},[]);let[c,u]=(0,Gu.useState)(!1),d=(0,Gu.useRef)(!1),f=Vs(i),[p,m]=z3(i,oCe,!0),g=i.onKeyDown,h=ke(b=>{g?.(b);let x=b.currentTarget;if(b.defaultPrevented||p||f||!eo(b)||Ho(x)||x.isContentEditable)return;let S=n&&b.key==="Enter",_=o&&b.key===" ",w=b.key==="Enter"&&!n,T=b.key===" "&&!o;if(w||T){b.preventDefault();return}if(S||_){let N=PY(b);if(S){if(!N){b.preventDefault();let $=b,{view:E}=$,R=$e($,["view"]),O=()=>xN(x,R);yN()?Hu(x,"keyup",O):queueMicrotask(O)}}else _&&(d.current=!0,N||(b.preventDefault(),u(!0)))}}),v=i.onKeyUp,y=ke(b=>{if(v?.(b),b.defaultPrevented||p||f||b.metaKey)return;let x=o&&b.key===" ";if(d.current&&x&&(d.current=!1,!PY(b))){b.preventDefault(),u(!1);let S=b.currentTarget,_=b,{view:w}=_,T=$e(_,["view"]);queueMicrotask(()=>xN(S,T))}});return i=ce(q(q({"data-active":c||void 0,type:a?"button":void 0},m),i),{ref:xt(s,i.ref),onKeyDown:h,onKeyUp:y}),i=Jl(i),i}),BHe=_e(function(e){let r=vv(e);return Ne(nCe,r)});function Bf(t,e){let r=t.__unstableInternals;return vt(r,"Invalid store"),r[e]}function fn(t,...e){let r=t,n=r,o=Symbol(),i=Of,s=new Set,a=new Set,l=new Set,c=new Set,u=new Set,d=new WeakMap,f=new WeakMap,p=T=>(l.add(T),()=>l.delete(T)),m=()=>{let T=s.size,N=Symbol();s.add(N);let $=()=>{s.delete(N),!s.size&&i()};if(T)return $;let E=gN(r).map(A=>Ir(...e.map(B=>{var D;let F=(D=B?.getState)==null?void 0:D.call(B);if(F&&jo(F,A))return On(B,[A],P=>{_(A,P[A],!0)})}))),R=[];for(let A of l)R.push(A());let O=e.map(rh);return i=Ir(...E,...R,...O),$},g=(T,N,$=c)=>($.add(N),f.set(N,T),()=>{var E;(E=d.get(N))==null||E(),d.delete(N),f.delete(N),$.delete(N)}),h=(T,N)=>g(T,N),v=(T,N)=>(d.set(N,N(r,r)),g(T,N)),y=(T,N)=>(d.set(N,N(r,n)),g(T,N,u)),b=T=>fn(mN(r,T),w),x=T=>fn(pN(r,T),w),S=()=>r,_=(T,N,$=!1)=>{var E;if(!jo(r,T))return;let R=sv(N,r[T]);if(R===r[T])return;if(!$)for(let D of e)(E=D?.setState)==null||E.call(D,T,R);let O=r;r=pr(ct({},r),{[T]:R});let A=Symbol();o=A,a.add(T);let B=(D,F,P)=>{var z;let j=f.get(D),I=Y=>P?P.has(Y):Y===T;(!j||j.some(I))&&((z=d.get(D))==null||z(),d.set(D,D(r,F)))};for(let D of c)B(D,O);queueMicrotask(()=>{if(o!==A)return;let D=r;for(let F of u)B(F,n,a);n=D,a.clear()})},w={getState:S,setState:_,__unstableInternals:{setup:p,init:m,subscribe:h,sync:v,batch:y,pick:b,omit:x}};return w}function hi(t,...e){if(t)return Bf(t,"setup")(...e)}function rh(t,...e){if(t)return Bf(t,"init")(...e)}function nh(t,...e){if(t)return Bf(t,"subscribe")(...e)}function On(t,...e){if(t)return Bf(t,"sync")(...e)}function oh(t,...e){if(t)return Bf(t,"batch")(...e)}function zf(t,...e){if(t)return Bf(t,"omit")(...e)}function LN(t,...e){if(t)return Bf(t,"pick")(...e)}function jf(...t){var e;let r={};for(let o of t){let i=(e=o?.getState)==null?void 0:e.call(o);i&&Object.assign(r,i)}let n=fn(r,...t);return Object.assign({},...t,n)}function Xl(t,e){if(process.env.NODE_ENV==="production"||!e)return;let r=Object.entries(t).filter(([i,s])=>i.startsWith("default")&&s!==void 0).map(([i])=>{var s;let a=i.replace("default","");return`${((s=a[0])==null?void 0:s.toLowerCase())||""}${a.slice(1)}`});if(!r.length)return;let n=e.getState();if(r.filter(i=>jo(n,i)).length)throw new Error(`Passing a store prop in conjunction with a default state is not supported.
|
|
101
|
+
${i}${s?" "+s:""} (${n} ${o}${a?` Request ID: ${a}`:""})`);this.errorMessage=r;this.fetchMethod=n;this.fetchUri=o;this.statusCode=i;this.statusText=s;this.requestId=a;Object.setPrototypeOf(this,t.prototype)}};var fx=class t{options;constructor(e){if(!e.apiKey&&!e.bearerToken)throw new Error("You must provide an API key or a bearer token");let r=e.fetch;if(!r)if(typeof window<"u")r=window.fetch.bind(window);else if(typeof fetch<"u")r=fetch;else throw new Error("You must provide or polyfill a fetch implementation when not in a browser");this.options={...e,fetch:r,apiHost:this.ensureApiHost(e.apiHost),apiKey:e.apiKey??null,projectId:e.projectId??null,bearerToken:e.bearerToken??null,limitPolicy:e.limitPolicy??jI,bypassCache:e.bypassCache??!1}}async apiClient(e,r){return(await this.apiClientWithResponse(e,r)).body}async apiClientWithResponse(e,r){return this.options.limitPolicy(async()=>{let n=this.options.apiKey?{"x-api-key":this.options.apiKey}:{Authorization:`Bearer ${this.options.bearerToken}`};this.options.bypassCache&&(n["x-bypass-cache"]="true");let{fetch:o,signal:i}=this.options,a=await Rae(()=>o(e.toString(),{...r,signal:i,headers:{...r?.headers,...n}}));if(!a.ok){let l="";try{let c=await a.text();try{let u=JSON.parse(c);u.errorMessage?l=Array.isArray(u.errorMessage)?u.errorMessage.join(", "):u.errorMessage:l=c}catch{l=c}}catch{l="General error"}throw new dx(l,r?.method??"GET",e.toString(),a.status,a.statusText,t.getRequestId(a))}return r?.expectNoContent?{response:a,body:null}:{response:a,body:await a.json()}})}createUrl(e,r,n){let o=new URL(`${n??this.options.apiHost}${e}`);return Object.entries(r??{}).forEach(([i,s])=>{typeof s<"u"&&s!==null&&o.searchParams.append(i,Array.isArray(s)?s.join(","):s?.toString()??"")}),o}ensureApiHost(e){if(!e)return"https://uniform.app";if(!e?.startsWith("http"))throw new Error('Your apiHost must start with "http"');if(e.indexOf("/",8)>-1)throw new Error("Your apiHost must not contain a path element after the domain");if(e.indexOf("?")>-1)throw new Error("Your apiHost must not contain a query string");return e?.endsWith("/")&&(e=e.substring(0,e.length-1)),e}static getRequestId(e){let r=e.headers.get("apigw-requestid");if(r)return r}};async function Rae(t){let r=5,n;for(;r>0&&(n=await t(),n.status===429);){let o=0;try{let a=n.clone(),l=a.headers.get("date"),c=l?new Date(l).getTime():void 0,d=(await a.json())?.info?.reset;typeof c=="number"&&typeof d=="number"&&(o=Math.max(0,Math.min(Math.round(1.1*(d-c)),1e4)))}catch{}let i=Math.pow(2,5-r)*333,s=i+Math.round(Math.random()*(i/2))*(Math.random()>.5?1:-1);await new Promise(a=>setTimeout(a,o+s)),r-=1}return n}var px=class extends fx{telemetryContext;constructor(e){e.apiHost||(e.apiHost="https://ai.uniform.global"),super(e),this.telemetryContext=e.telemetryContext}async invoke(e,r){let n={};if(this.telemetryContext){let{threadId:i,uniformClient:s,userAgent:a}=this.telemetryContext;i&&(n["x-thread-id"]=i),s&&(n["x-uniform-client"]=s),a&&(n["user-agent"]=a)}return(await this.apiClientWithResponse(new URL(`/projects/${this.options.projectId}/tools/${e}`,this.options.apiHost),{method:"POST",body:r?JSON.stringify(r):void 0,headers:Object.keys(n).length>0?n:void 0})).body}};var VI={name:"@uniformdev/uniform-mcp",version:"20.44.0",description:"Uniform MCP Server",license:"SEE LICENSE IN LICENSE.txt",bin:{"uniform-mcp":"./dist/index.mjs"},exports:{types:"./dist/index.d.mts",import:"./dist/index.mjs"},sideEffects:!1,scripts:{build:"tsup",dev:"tsup --watch",clean:"rimraf dist",lint:'eslint "src/**/*.{js,ts,tsx}"',format:'prettier --write "src/**/*.{js,ts,tsx}"',mcp:"node dist/index.mjs"},dependencies:{"@modelcontextprotocol/sdk":"^1.12.0","@types/uuid":"9.0.4","@uniformdev/canvas":"workspace:*","@uniformdev/project-map":"workspace:*","fast-json-patch":"^3.1.1",immer:"10.1.3",jsdom:"24.1.3",uuid:"9.0.1",zod:"3.25.76"},files:["/dist"],publishConfig:{access:"public"},devDependencies:{"@types/jsdom":"^27.0.0","@uniformdev/design-system":"workspace:*","@uniformdev/files":"workspace:*","@uniformdev/mesh-edgehancer-sdk":"workspace:*","@uniformdev/richtext":"workspace:*"}};var UI=process.env.UNIFORM_API_KEY,WE=process.env.UNIFORM_PROJECT_ID,HI=process.env.UNIFORM_API_HOST??"https://uniform.app",Fae=process.env.UNIFORM_AI_API_HOST??"https://ai.uniform.global";if(!UI&&process.env.NODE_ENV!=="test")throw new Error("UNIFORM_API_KEY is not set");if(!WE&&process.env.NODE_ENV!=="test")throw new Error("UNIFORM_PROJECT_ID is not set");var be={apiHost:HI,apiKey:UI,projectId:WE,aiApiHost:Fae,baseWebUrl:`${HI}/projects/${WE}`};function Od(){return new px({...be,apiHost:be.aiApiHost,telemetryContext:{userAgent:`uniform-mcp/${VI.version}`,uniformClient:"mcp"}})}function KI(t){t.tool("askQuestion","Ask the Uniform Docs assistant, Una, questions about Uniform features, usage, and best practices",kI.inputSchema.shape,async e=>{let n=await Od().invoke("askQuestion",e);return{content:[{type:"text",text:JSON.stringify(n,null,2)}]}})}import{autoFixParameterGroups as qI,CanvasClient as rle}from"@uniformdev/canvas";import*as bx from"zod/v3";import Bae from"fast-json-patch";function mx(t,e){return Bae.applyPatch(t,e).newDocument}import*as aa from"zod/v3";var gx=aa.array(aa.object({op:aa.enum(["add","remove","replace"]),path:aa.string().describe("The JSON path to patch"),value:aa.unknown().describe("The value to patch - for remove, leave this blank")}));function zae(t){return Array.isArray(t)&&t.length>0}function WI(t){return!!t&&typeof t=="object"&&"type"in t}function GI(t){return typeof t=="object"&&t!==null&&"root"in t&&WI(t.root)}function Md(t){return"children"in t&&zae(t.children)}var jae=({context:t,renderChildren:e})=>Md(t.currentNode)?`${e(t.currentNode.children)} `:"";var Vae=({context:t,renderChildren:e})=>{if(!Md(t.currentNode))return"";let r=e(t.currentNode.children);return r.endsWith(" ")?r:`${r} `};var Hae=({context:t,renderChildren:e})=>Md(t.currentNode)?`${e(t.currentNode.children)} `:"";var Uae=({context:t,renderChildren:e})=>Md(t.currentNode)?`${e(t.currentNode.children)} `:"";var Kae=({context:t,renderChildren:e})=>Md(t.currentNode)?`${e(t.currentNode.children)} `:"";var Wae=({context:t,renderChildren:e})=>Md(t.currentNode)?`${e(t.currentNode.children)} `:"";var Gae=({context:t})=>t.currentNode.text;var Yae=()=>" ";var Zae=()=>" ",qae=new Map([["text",Gae],["tab",Yae],["linebreak",Zae],["paragraph",Hae],["listitem",Vae],["heading",jae],["table",Uae],["tablecell",Kae],["tablerow",Wae]]),Jae=t=>{let e=qae.get(t.currentNode.type);return e||(({context:r,renderChildren:n})=>Md(r.currentNode)?n(r.currentNode.children):"")};function Xae(t,e){let r=[];return e?.ancestorNodes&&(r=r.concat(e.ancestorNodes)),e?.currentNode&&r.unshift(e.currentNode),{...e??{},currentNode:t,ancestorNodes:r}}function GE(t,e){var r;if(!WI(t))return"";let n=Xae(t,e),o=(r=n.resolveRenderer)==null?void 0:r.call(n,n);if(typeof o>"u")o=Jae(n);else if(o===null)return"";let i=s=>Qae(s,n);if(o){let s=o({context:n,renderChildren:i});return n.ancestorNodes.length>0?s:s.trim()}else throw new Error(`There is no renderer for node type: ${n.currentNode.type}`)}function Qae(t,e){return Array.isArray(t)?t.map(r=>GE(r,e)).join(""):""}var ele=[{label:"Heading 1",type:"h1"},{label:"Heading 2",type:"h2"},{label:"Heading 3",type:"h3"},{label:"Heading 4",type:"h4"},{label:"Heading 5",type:"h5"},{label:"Heading 6",type:"h6"},{label:"Bullet List",type:"unorderedList"},{label:"Ordered List",type:"orderedList"},{label:"Link",type:"link"},{label:"Blockquote",type:"quote"},{label:"Code Block",type:"code"},{label:"Table",type:"table"},{label:"Asset",type:"asset"},{label:"Dynamic Token",type:"variable"}],tle=[{label:"Bold",type:"bold"},{label:"Italic",type:"italic"},{label:"Underline",type:"underline"},{label:"Strikethrough",type:"strikethrough"},{label:"Code",type:"code"},{label:"Superscript",type:"superscript"},{label:"Subscript",type:"subscript"}];var hx={required:!1,formatting:{builtIn:tle.map(t=>t.type)},elements:{builtIn:ele.map(t=>t.type)},elementsConfig:{asset:{allowedTypes:["image"]}}};import*as hn from"zod/v3";import*as Zt from"zod/v3";var vx=Zt.object({name:Zt.string().describe('Title-cased display name. Ex: "Headline"'),id:Zt.string().describe("The public ID. Must be unique within the current entity fields/parameters."),type:Zt.enum(["text","richText","select","multi-select","number","date","dateTime","checkbox","link","asset","json","contentReference","$enr","group"]).describe("The data type of the property. The group type defines a grouping of other properties."),guidance:Zt.string().describe('Describe what kind of content should be populated, for a LLM to use as a guide. 1-2 sentences max. Ex: "Meta tags based on the content", "2-3 word headline"'),localizable:Zt.boolean().describe("Whether values are stored as locale-specific"),typeConfig:Zt.object({allowedTypes:Zt.array(Zt.enum(["image","video","audio","other"])).optional().describe("The types of asset allowed. ONLY applies when type=asset, omit for other types"),options:Zt.array(Zt.object({text:Zt.string().describe("The text to display to the author"),value:Zt.string().describe("The value to store for the option")})).optional().describe("The author-selectable options for the select property. ONLY applies when type=select or multi-select, omit for other types"),required:Zt.boolean().optional().describe("Whether an author must enter a value for this property"),min:Zt.number().optional().describe("When type=number, this is the smallest allowed value (omit for no minimum). When type=multi-select, this is the minimum number of selections the author must make (omit for no minimum). When type=reference and isMulti=true, this is the minimum number of references the author must select (omit for no minimum). Omit for all other types."),max:Zt.number().optional().describe("When type=number, this is the largest allowed value (omit for no maximum). When type=multi-select, this is the maximum number of selections the author can make (omit for no maximum). When type=reference and isMulti=true, this is the maximum number of references the author can select (omit for no maximum). Omit for all other types."),allowedContentTypes:Zt.array(Zt.string()).optional().describe("When type=reference, this is a list of content type public IDs the author can reference. The content type ID must already exist. Omit for all other types."),isMulti:Zt.boolean().optional().describe("When type=reference, this is whether the author can select multiple referenced entries. When false, only one reference is allowed. Omit for all other types."),childrenParams:Zt.array(Zt.string()).optional().describe("When type=group, this is a list of public IDs of the properties to group. The property ID must be defined within this definition. Omit for all other types."),collapsed:Zt.boolean().optional().describe("When type=group, this is whether the group is collapsed by default."),schema:Zt.any().describe("When type=json, this is an optional JSON schema the property value must follow. Omit for all other types.")}).optional()});var YI=hn.object({name:hn.string().describe('Title-cased display name of the component. Ex: "Hero"'),id:hn.string().describe("Public ID of the component, the camelCase version of name, using only alphanumeric characters"),description:hn.string().describe('Describe the purpose of the component in 1-2 sentences. If the component seems generic, such as "Promo" or "Hero", this should be blank.'),canBeComposition:hn.boolean().describe("True if the component can have pages/compositions created from it. False if it is a part of a page."),parameters:hn.array(vx).describe("The properties of the component. The key is the publicId of the property.").optional(),slots:hn.array(hn.object({name:hn.string().describe('Title-cased display name of the slot. Ex: "Content"'),id:hn.string().describe("The public id of the slot. Must be unique within this component's slots."),allowedComponents:hn.array(hn.string()).describe("The components public IDs allowed in the slot."),minComponents:hn.number().describe("The minimum number of components allowed in the slot. Omit for no minimum.").min(0).optional(),maxComponents:hn.number().describe("The maximum number of components allowed in the slot. Omit for no maximum.").min(1).optional(),inheritAllowedComponents:hn.boolean().describe("Set to false")})).describe("The slots of the component. The key is the publicId of the slot.").optional()});function ZI(t){let e=t.slots?.map(o=>({...o,patternsInAllowedComponents:!0,inheritAllowedComponents:!1,maxComponents:o.maxComponents===0?void 0:o.maxComponents,minComponents:o.minComponents===0?void 0:o.minComponents})),r=t.parameters?.find(o=>o.type==="asset"&&typeof o.typeConfig=="object"&&o.typeConfig!==null&&"allowedTypes"in o.typeConfig&&Array.isArray(o.typeConfig.allowedTypes)&&o.typeConfig.allowedTypes?.includes("image"))?.id,n=t.parameters?.find(o=>o.type==="text")?.id;return{...t,slots:e,titleParameter:n,thumbnailParameter:r}}function yx(t){return`${be.baseWebUrl}/dashboards/canvas/components/${t}`}function jp(t,e){let r=t.filter(n=>e===void 0&&n.type==="richText"||e!==void 0&&e.includes(n.id));if(r.length!==0)for(let n of r){if(n.typeConfig===void 0){n.typeConfig=hx;continue}n.typeConfig={...hx,required:n.typeConfig.required??hx.required}}}var nle={action:bx.enum(["create","update","delete"]).describe("The action to perform"),publicId:bx.string().describe("Public ID of the component, the camelCase version of name, using only alphanumeric characters"),component:YI.describe("Full component definition to create. Omit for update or delete.").optional(),patches:gx.describe("JSON patch to apply to the existing component definition. Omit for create or delete.").optional()};function JI(t){t.tool("componentAction","Creates, updates, or deletes a Uniform Component definition (or Composition definition)",nle,async({publicId:e,action:r,component:n,patches:o})=>{let i=new rle(be),s=!1;if(r==="create"){if(!n)throw new Error("Component definition is required for create");let a=ZI(n);a.parameters&&(s=qI(a.parameters),jp(a.parameters)),await i.updateComponentDefinition({componentDefinition:a})}if(r==="update"){if(!o)throw new Error("Patches are required for update");let a=await i.getComponentDefinitions({componentId:e});if(!a.componentDefinitions.length)throw new Error(`Component with public ID ${e} does not exist, try creating it instead`);let l=a.componentDefinitions[0],c=l.parameters?.filter(d=>d.type==="richText").map(d=>d.id),u=mx(l,o);if(u.parameters){s=qI(u.parameters);let d=u.parameters?.filter(f=>f.type==="richText").map(f=>f.id).filter(f=>!c?.includes(f));jp(u.parameters,d)}await i.updateComponentDefinition({componentDefinition:u})}return r==="delete"&&await i.removeComponentDefinition({componentId:e}),{content:[{type:"text",text:JSON.stringify({success:!0,editUrl:yx(e),warning:s?"Issues with parameter group order were fixed. Ensure definition data is re-fetched before any future updates.":void 0},null,2)}]}})}import{CanvasClient as XI}from"@uniformdev/canvas";import*as QI from"zod/v3";var ole={id:QI.string()};function ek(t){t.tool("componentList","Lists all Uniform Component definitions",async()=>{let n=(await new XI(be).getComponentDefinitions({includeSystem:!0})).componentDefinitions.map(o=>({id:o.id,name:o.name,type:o.canBeComposition?"composition":"component",description:o.description,editUrl:yx(o.id)}));return{content:[{type:"text",text:JSON.stringify(n,null,2)}]}}),t.tool("componentGet","Gets a Uniform Component definition details (slots, parameters, etc.)",ole,async({id:e})=>{let n=await new XI(be).getComponentDefinitions({componentId:e,includeSystem:!0});return{content:[{type:"text",text:JSON.stringify(n.componentDefinitions[0],null,2)}]}})}import*as et from"zod/v3";import*as Vp from"zod/v3";var Nc=Vp.object({componentId:Vp.string().describe("ID of the component pattern instance the data resource belongs to - can be created in the same call to this tool"),dataResourceName:Vp.string().describe("Name of the data resource to update. Must be defined as a pattern data resource on the pattern, new names cannot be created"),editInstructions:Vp.string().describe('Prompt that will be used to generate the data resource value. Omission will leave the value unchanged. To reset an overridden value to pattern default, say "reset override".').optional()}).describe("A value change to a pattern data resource. Omit unchanged data resources.");var ile=et.object({parentComponentId:et.string().describe("ID of the component the slot belongs to"),slotName:et.string().describe("Public ID of the target slot"),slotIndex:et.number().describe("Index to insert the new component at. Omit for append.").optional(),newComponentInstanceUuid:et.string().uuid().describe("UUID of the new component to create. You MUST generate a valid unique UUID using the `createUuid` tool."),instanceType:et.enum(["component","componentPattern"]),componentType:et.string().describe("Public ID of the component definition to insert. Component definition must be registered with Uniform. Omit when inserting a component pattern instance.").optional(),componentPatternId:et.string().describe("UUID of the component pattern definition to insert. Component pattern must be registered with Uniform. Omit when inserting a component instance.").optional()}),xx=et.object({componentId:et.string().describe("ID of the component the parameter belongs to - can be created in the same call to this tool"),parameterId:et.string().describe("Public ID of the parameter to update. Must be defined in the component type of the parent componentId"),parameterType:et.string().describe("The type of the parameterId as defined on the component definition"),fromLocale:et.string().describe("When translating from a different locale, use the locale you are translating from. Omit for non-localized values.").optional(),locale:et.string().describe("Locale of the parameter value. Omit for non-localized values.").optional(),editInstructions:et.string().describe('Prompt that will be used to generate the parameter value. Omission will leave the value unchanged. To reset an overridden value to pattern default, say "reset override".').optional()}).describe("A value change to a parameter. Omit unchanged parameters."),Cx=et.object({createComponentInstances:et.array(ile).describe("New components to insert in slots. Do not use for moves or duplications. Omit for delete. These actions are performed before moving, duplicating, or deleting components, and parameter updates.").optional(),moveComponentInstances:et.array(et.object({componentId:et.string().describe("Existing component ID to move. Cannot be root component."),newParentComponentId:et.string(),newSlotName:et.string().describe("Destination slot to move to"),newSlotIndex:et.number().describe("Destination index in the parent slot to move to")})).describe("Moves existing component instances to a new location in a composition. The destination can be the same slot to cause a reorder. Omit for create or delete, or if nothing needs moving. These actions are performed before duplicating or deleting components, and parameter updates.").optional(),duplicateComponentInstances:et.array(et.string().describe("Component ID to duplicate. Cannot be root component. All descendants of the duplicated component will be duplicated as well. Duplicates are placed in the same slot as the original component, at the end.")).describe("Component instances to duplicate/copy. Omit when empty. These actions are performed before deleting components and parameter updates.").optional(),deleteComponentInstances:et.array(et.string().describe("Component ID to remove. Cannot be the pattern root component.")).describe("Component instances to delete from slots during an update. Omit for create or delete, or if nothing needs deleting. These actions are performed after moving and duplicating components, and before parameter updates.").optional(),dataResourceUpdates:et.array(Nc).describe("Updates to pattern data resources. Use empty array if no changes are needed.").optional()}),Dc=et.object({enableLocales:et.array(et.string()).describe("Locales to enable. Omit for no change.").optional(),disableLocales:et.array(et.string()).describe("Locales to disable. Existing data in disabled locales will be lost. Omit for no change.").optional()}),sle=et.object({summary:et.string().describe("Short summary of the edit that was made.").optional(),success:et.boolean()}),LOe=et.object({success:et.boolean().describe("Whether all actions were successful"),actionsTaken:et.array(sle).describe("Array of individual actions that were taken")});import*as dl from"zod/v3";var ale=xx.extend({overridable:dl.enum(["yes","no"]).describe("Whether the parameter value set on the pattern definition is overridable by pattern consumers. Omit when no change is needed.").optional()}),tk=Cx.extend({name:dl.string().describe("Name of the pattern. If the name does not need to be changed, omit this field. Always include for creates.").optional(),type:dl.string().describe("Component definition type of the pattern. Must be registered with Uniform. Always include for creates. Omit otherwise.").optional(),description:dl.string().describe("Description of the pattern for authors. If the description does not need to be changed, omit this field.").optional(),parameterUpdates:dl.array(ale).describe("Updates to the parameters of the pattern. Use empty array if no changes are needed.").optional(),dataResourceUpdates:dl.array(Nc).describe("Updates to the pattern instance data resources. Use empty array if no changes are needed.").optional(),localeUpdates:Dc.optional()}).describe("Modification instructions for the pattern");import*as Lc from"zod/v3";var rk=Lc.object({...Cx.shape,name:Lc.string().describe("Name of the composition. If the name does not need to be changed, omit this field. Always include for creates.").optional(),type:Lc.string().describe("Component definition type of the composition. Must be registered with Uniform and have canBeComposition=true in the component definition. Always include for creates. Omit otherwise.").optional(),parameterUpdates:Lc.array(xx).describe("Updates to the parameters of the pattern. Use empty array if no changes are needed.").optional(),localeUpdates:Dc.optional(),dataResourceUpdates:Lc.array(Nc).describe("Updates to pattern instance data resources. Use empty array if no changes are needed.").optional()}).describe("Modification instructions for the composition");import*as la from"zod/v3";import*as qo from"zod/v3";var YE=qo.object({fieldId:qo.string().describe("Public ID of the field to update. Must be defined in the content type of the parent entry."),fieldType:qo.string().describe("The type of the fieldId as defined on the content type"),fromLocale:qo.string().describe("When translating from a different locale, use the locale you are translating from. Omit for non-localized values.").optional(),locale:qo.string().describe("Locale of the field value. Omit for non-localized values.").optional(),editInstructions:qo.string().describe('Prompt that will be used to generate the field value. Omission will leave the value unchanged. To reset an overridden value to pattern default, say "reset override".').optional()}).describe("A value change to a field. Omit unchanged fields."),nk=qo.object({type:qo.string().describe("Content type of the entry. Must be registered with Uniform. Always include for creates. Omit otherwise.").optional(),slug:qo.string().describe("Slug (human-readable identifier) of the entry. If the slug does not need to be changed, omit this field.").optional(),fieldUpdates:qo.array(YE).describe("Updates to the fields of the entry. Use empty array if no changes are needed.").optional(),localeUpdates:Dc.optional(),dataResourceUpdates:qo.array(Nc).describe("Updates to the data resources of the entry. Use empty array if no changes are needed.").optional()}).describe("Modification instructions for the entry");var lle=YE.extend({overridable:la.enum(["yes","no"]).describe("Whether the parameter value set on the pattern definition is overridable by pattern consumers. Omit when no change is needed.").optional()}),ok=la.object({name:la.string().describe("Name of the entry pattern. If the name does not need to be changed, omit this field. Always include for creates.").optional(),type:la.string().describe("Content type of the entry pattern. Must be registered with Uniform. Always include for creates. Omit otherwise.").optional(),description:la.string().describe("Description of the entry pattern for authors. If the description does not need to be changed, omit this field.").optional(),fieldUpdates:la.array(lle).describe("Updates to the fields of the entry pattern. Use empty array if no changes are needed.").optional(),localeUpdates:Dc.optional()}).describe("Modification instructions for the entry pattern");import*as so from"zod/v3";import{CANVAS_BLOCK_PARAM_TYPE as j8e,CANVAS_SLOT_SECTION_TYPE as tie}from"@uniformdev/canvas";import{getEffectivePropertyValue as V8e}from"@uniformdev/canvas";import{CANVAS_PERSONALIZATION_PARAM as H8e}from"@uniformdev/canvas";var Id="uniformContentInternalReference";var ik="$p:";function sk(t){return`${ik}${t}`}function ak(t){return t.startsWith(ik)}function ZE(t){return{...t,allowedComponentsIndex:new Set(t?.allowedComponents??[]),maxComponents:t?.maxComponents??Number.MAX_VALUE,minComponents:t?.minComponents??0,allowAllPatternsOfAllowedTypes:!t?.patternsInAllowedComponents}}import{CANVAS_HYPOTHESIS_PARAM as YOe,CANVAS_LOCALIZATION_SLOT as ZOe,CANVAS_LOCALIZATION_TYPE as qOe,CANVAS_PERSONALIZATION_ALGORITHM_PARAM as JOe,CANVAS_PERSONALIZATION_ALGORITHM_TYPE as XOe,CANVAS_PERSONALIZATION_EVENT_NAME_PARAM as QOe,CANVAS_PERSONALIZATION_TAKE_PARAM as eMe,CANVAS_PERSONALIZE_SLOT as tMe,CANVAS_PERSONALIZE_TYPE as rMe,CANVAS_SLOT_SECTION_GROUP_TYPE_PARAM as nMe,CANVAS_SLOT_SECTION_MAX_PARAM as oMe,CANVAS_SLOT_SECTION_MIN_PARAM as iMe,CANVAS_SLOT_SECTION_NAME_PARAM as sMe,CANVAS_SLOT_SECTION_SLOT as aMe,CANVAS_SLOT_SECTION_SPECIFIC_PARAM as lMe,CANVAS_SLOT_SECTION_TYPE as cMe,CANVAS_TEST_SLOT as uMe,CANVAS_TEST_TYPE as dMe}from"@uniformdev/canvas";var cle={$personalization:{isNestableIntoItself:!0},$test:void 0,$localization:void 0,$loop:void 0,$slotSection:{isAutoAllowed:!0,isNestableIntoItself:!0,isOnlyAllowedInPatternEditor:!0}},lk=t=>cle[t];function Sx(t,e,r=!1){let n=lk(t.type);if(n?.isOnlyAllowedInPatternEditor&&!r)return!1;if(n?.isAutoAllowed||e.allowAllComponents)return!0;let o=e.allowedComponentsIndex.has(t.type);return e.allowAllPatternsOfAllowedTypes||!t._pattern?o:e.allowedComponentsIndex.has(sk(t._pattern))||!1}var Hp=({twee:t,parentSlotDefinition:e,nodeId:r,componentDefinitionsIndex:n})=>{if(!e.inheritAllowedComponents)return e;let o=t.getParentInfo(r);if(!o)return;let i=n[o.value.type]?.slots?.find(({id:s})=>s===o.parentName);if(i)return Hp({parentSlotDefinition:i,nodeId:o.parentId,twee:t,componentDefinitionsIndex:n})};import{CANVAS_SLOT_SECTION_GROUP_TYPE_PARAM as ck,CANVAS_SLOT_SECTION_MAX_PARAM as ule,CANVAS_SLOT_SECTION_MIN_PARAM as dle,CANVAS_SLOT_SECTION_NAME_PARAM as fle,CANVAS_SLOT_SECTION_SPECIFIC_PARAM as ple,CANVAS_SLOT_SECTION_TYPE as mle}from"@uniformdev/canvas";var qE=({nodeId:t,twee:e,componentDefinitionsIndex:r})=>{if(e.getNodeById(t)?.value.type!==mle)return;let o=e.getNodeProperty(t,ck)?.value??"inherit",{allowedComponents:i,patternsInAllowedComponents:s}=gle({twee:e,nodeId:t,componentDefinitionsIndex:r}),a=e.getNodeProperty(t,fle)?.value??"Slot Section",l=Number(e.getNodeProperty(t,dle)?.value),c=Number(e.getNodeProperty(t,ule)?.value);return{id:"$slotSectionItems",name:a,allowedComponents:i,inheritAllowedComponents:o==="inherit",allowAllComponents:!1,patternsInAllowedComponents:s,minComponents:isNaN(l)?void 0:l,maxComponents:isNaN(c)?void 0:c}},gle=({twee:t,nodeId:e,componentDefinitionsIndex:r})=>{let n=t.getNodeProperty(e,ck)?.value;if(n!=="specific"&&n!=="except")return{allowedComponents:[],patternsInAllowedComponents:!0};let o=t.getNodeProperty(e,ple)?.value??[],i=new Set(o),s=t.getParentInfo(e),l=r[s?.value.type??""]?.slots?.find(d=>d.id===s?.parentName);if(!l)return{allowedComponents:[],patternsInAllowedComponents:!0};let c=Hp({twee:t,nodeId:s.parentId,componentDefinitionsIndex:r,parentSlotDefinition:l}),u=c?.patternsInAllowedComponents??!1;if(n==="except")return c?.allowAllComponents?(console.error(`Slot section "${e}" has groupType "except" but parent allows all components. This combination is not supported; all components will be allowed.`),{allowedComponents:[],patternsInAllowedComponents:u}):{allowedComponents:(c?.allowedComponents??[]).filter(f=>!i.has(f)),patternsInAllowedComponents:u};if(!c?.allowAllComponents){let d=new Set(c?.allowedComponents??[]);return{allowedComponents:o.filter(p=>d.has(p)||ak(p)),patternsInAllowedComponents:u}}return{allowedComponents:o,patternsInAllowedComponents:u}};function _x(t,e,r,n){return`ref-${t}-${e}`+(r?`-${r}`:"")+(n!==void 0&&n>-1?`(${n})`:"")}function uk(t,e={}){let{targetLocale:r,enabledLocales:n=[],isPatternParameter:o=!1}=e,i=r??(n.length>0?"${locale}":void 0);return{type:Id,...o?{isPatternParameter:!0}:{},variables:{entryIds:t,...i?{locale:i}:{}}}}function Ex({definition:t,lastUserChoice:e,currentValue:r}){if(t&&!t.localizable)return!1;if(r){if(r.locales&&wx(r.locales)||r.localesConditions&&wx(r.localesConditions))return!0;if(r.value!==void 0||r.conditions!==void 0)return!1}if(e!==void 0)return e;if(t)return!t.notLocalizedByDefault}function wx(t){return Array.isArray(t)?t.some(e=>wx(e)):t===void 0?!1:t===null||typeof t!="object"?!0:Object.values(t).some(e=>wx(e))}function JE({twee:t,nodeId:e,currentEditorLocale:r,definition:n}){let o=t.getNodeById(e),i=o?.propertyValueLocalizability?.[n.id],s=t.getNodeProperty(e,n?.id),a=Ex({lastUserChoice:i,currentValue:s,definition:n});if(o&&a!==void 0&&a!==(i??!1)&&t.updateNode({nodeId:e,updateMetadata:l=>{l.propertyValueLocalizability[n.id]=a},doNotSetDirty:!0}),a)return r}function dk({twee:t,nodeId:e,dataType:r,dataResourceName:n,dataResourceEdit:o}){if(!t.getNodeById(e))throw new Error(`Node with ID ${e} not found`);o.action==="resetOverride"?t.updateNode({nodeId:e,updateDataResources:[{type:"reset",name:n}]}):o.action==="setValue"&&t.updateNode({nodeId:e,updateDataResources:[{type:"set",name:n,value:{type:r,variables:o.newValue}}]})}import{CANVAS_ENRICHMENT_TAG_PARAM as O8e,CANVAS_PERSONALIZATION_ALGORITHM_PARAM as M8e,CANVAS_PERSONALIZATION_PARAM as I8e,CANVAS_PERSONALIZE_SLOT as k8e,convertToBindExpression as R8e,createVariableReference as P8e,isSystemComponentDefinition as F8e}from"@uniformdev/canvas";var fk=Object.prototype.hasOwnProperty;function po(t,e){var r,n;if(t===e)return!0;if(t&&e&&(r=t.constructor)===e.constructor){if(r===Date)return t.getTime()===e.getTime();if(r===RegExp)return t.toString()===e.toString();if(r===Array){if((n=t.length)===e.length)for(;n--&&po(t[n],e[n]););return n===-1}if(!r||typeof t=="object"){n=0;for(r in t)if(fk.call(t,r)&&++n&&!fk.call(e,r)||!(r in e)||!po(t[r],e[r]))return!1;return Object.keys(e).length===n}}return t!==t&&e!==e}function Tx(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var n in r)t[n]=r[n]}return t}var hle={read:function(t){return t[0]==='"'&&(t=t.slice(1,-1)),t.replace(/(%[\dA-F]{2})+/gi,decodeURIComponent)},write:function(t){return encodeURIComponent(t).replace(/%(2[346BF]|3[AC-F]|40|5[BDE]|60|7[BCD])/g,decodeURIComponent)}};function XE(t,e){function r(o,i,s){if(!(typeof document>"u")){s=Tx({},e,s),typeof s.expires=="number"&&(s.expires=new Date(Date.now()+s.expires*864e5)),s.expires&&(s.expires=s.expires.toUTCString()),o=encodeURIComponent(o).replace(/%(2[346B]|5E|60|7C)/g,decodeURIComponent).replace(/[()]/g,escape);var a="";for(var l in s)s[l]&&(a+="; "+l,s[l]!==!0&&(a+="="+s[l].split(";")[0]));return document.cookie=o+"="+t.write(i,o)+a}}function n(o){if(!(typeof document>"u"||arguments.length&&!o)){for(var i=document.cookie?document.cookie.split("; "):[],s={},a=0;a<i.length;a++){var l=i[a].split("="),c=l.slice(1).join("=");try{var u=decodeURIComponent(l[0]);if(s[u]=t.read(c,u),o===u)break}catch{}}return o?s[o]:s}}return Object.create({set:r,get:n,remove:function(o,i){r(o,"",Tx({},i,{expires:-1}))},withAttributes:function(o){return XE(this.converter,Tx({},this.attributes,o))},withConverter:function(o){return XE(Tx({},this.converter,o),this.attributes)}},{attributes:{value:Object.freeze(e)},converter:{value:Object.freeze(t)}})}var vle=XE(hle,{path:"/"});function $0(t){return{all:t=t||new Map,on:function(e,r){var n=t.get(e);n?n.push(r):t.set(e,[r])},off:function(e,r){var n=t.get(e);n&&(r?n.splice(n.indexOf(r)>>>0,1):t.set(e,[]))},emit:function(e,r){var n=t.get(e);n&&n.slice().map(function(o){o(r)}),(n=t.get("*"))&&n.slice().map(function(o){o(e,r)})}}}var hk=k(N0(),1);var Sk=k(N0(),1),_k=k(N0(),1);var xle=t=>{throw TypeError(t)};var n5=(t,e,r)=>e.has(t)||xle("Cannot "+r),hr=(t,e,r)=>(n5(t,e,"read from private field"),r?r.call(t):e.get(t));var mk=(t,e,r,n)=>(n5(t,e,"write to private field"),n?n.call(t,r):e.set(t,r),r),L0=(t,e,r)=>(n5(t,e,"access private method"),r);var Cle="_",Sle;Sle=new WeakMap;var _le,wle;_le=new WeakMap;wle=new WeakMap;var Ele,Tle,$le,Nle;Ele=new WeakMap;Tle=new WeakMap;$le=new WeakMap;Nle=new WeakMap;function Dle(t,e){return`${t}${Cle}${e}`}function Lle(t,e){var r;if(typeof t>"u"||t===null)return!1;let n=Number(t);if(isNaN(n))return!1;switch((r=e?.op)!=null?r:"="){case"=":return n===e.rhs;case"!=":return n!==e.rhs;case">":return n>e.rhs;case"<":return n<e.rhs;default:return console.warn(`Unknown match type ${e.op} is false.`),!1}}function Ale(t,e){return`${t} ${Ole(e)}`}function Ole(t){return`${t.op} ${t.rhs}`}var QE=Dle("$pvc","v"),Mle=({update:t,criteria:e,commands:r,onLogMessage:n})=>{var o,i;if(e.type!=="PVC")return{result:!1,changed:!1};let s=!!(t.state.url&&(!t.previousState||((o=t.state.url)==null?void 0:o.toString())!==((i=t.previousState.url)==null?void 0:i.toString()))),l=(t.visitor.sessionScores[QE]||0)+1,c={result:!1,changed:s},u=r.some(d=>d.type==="modscoreS"&&d.data.dimension===QE);return s&&!u&&r.push({type:"modscoreS",data:{dimension:QE,delta:1}}),Lle(l,e.match)&&(c.result=!0),n?.(["debug",203,{criteria:e,result:c,explanation:Ale(l,e.match)}]),c};Mle.alwaysExecute=!0;var Ile;Ile=new WeakMap;var gk="ssc";var kle,Rle,Ple;kle=new WeakMap;Rle=new WeakMap;Ple=new WeakMap;var e5="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",PMe=e5.split(""),Fle=new Array(123);for(let t=0;t<e5.length;t++)Fle[e5.charCodeAt(t)]=t;var Ble,zle,jle,Vle;Ble=new WeakMap;zle=new WeakMap;jle=new WeakMap;Vle=new WeakMap;var Hle,Ule;Hle=new WeakSet;Ule=async function(){let t=await new Promise(e=>{setTimeout(()=>{e(void 0)},2e3)});t&&this.signalAsyncDataUpdate(t)};var Kle=()=>({quirks:{},scores:{},sessionScores:{},tests:{},goals:{},consent:!1,controlGroup:!1,personalizeVariants:{}}),zMe=(0,hk.default)();var Wle,Gle;Wle=new WeakSet;Gle=function(t){return this.partitionKey?`${this.partitionKey}.${t}`:t};var vk="ufvisitor",kd,o5,$x,Si,D0,yk,Yle,bk,Zle,t5,qle;kd=new WeakMap;o5=new WeakMap;$x=new WeakMap;Si=new WeakMap;D0=new WeakSet;yk=function(){return hr(this,o5).get(vk)};Yle=function(t,e=!1){var r,n,o,i,s,a,l,c,u,d,f;let p=hr(this,D0,yk),m=Date.now();L0(this,D0,t5).call(this,t.scores),L0(this,D0,t5).call(this,t.sessionScores),(n=(r=hr(this,Si)).decay)==null||n.call(r,{now:m,lastUpd:p?.updated,scores:t.scores,sessionScores:t.sessionScores,onLogMessage:hr(this,Si).onLogMessage});let g=!po(p?.visitorData.scores,t.scores),h=!po(p?.visitorData.sessionScores,t.sessionScores),v=!po(p?.visitorData.quirks,t.quirks),y=!po(p?.visitorData.tests,t.tests),b=!po(p?.visitorData.goals,t.goals),x={updated:m,visitorData:t};if(L0(this,D0,bk).call(this),hr(this,o5).set(vk,x,!!t.consent),(i=(o=hr(this,Si)).onLogMessage)==null||i.call(o,["debug",102,t]),!e&&((g||h)&&hr(this,kd).emit("scoresUpdated",t),v&&hr(this,kd).emit("quirksUpdated",t),y&&hr(this,kd).emit("testsUpdated",t),((s=p?.visitorData)==null?void 0:s.consent)!==t.consent&&hr(this,kd).emit("consentUpdated",t),((a=p?.visitorData)==null?void 0:a.controlGroup)!==t.controlGroup&&(hr(this,kd).emit("controlGroupUpdated",t),(u=(c=hr(this,Si)).onLogMessage)==null||u.call(c,["debug",104,(l=t.controlGroup)!=null?l:!1])),b)){let S=Object.keys((d=t.goals)!=null?d:{});for(let _=0;_<S.length;_++){let w=S[_];(f=p?.visitorData.goals)!=null&&f[w]||hr(this,kd).emit("goalConverted",{goalId:w})}}};bk=function(){typeof document>"u"||!hr(this,Si).visitLifespan||(hr(this,$x)&&window.clearTimeout(hr(this,$x)),mk(this,$x,window.setTimeout(()=>{this.data},hr(this,Si).visitLifespan+50)))};Zle=function(t){let e=hr(this,Si).visitLifespan;return e?t.updated+e<Date.now():!1};t5=function(t){var e,r;if(hr(this,Si).manifest)for(let n in t){let o=t[n],i=hr(this,Si).manifest.getDimensionByKey(n);i&&o>i.cap&&((r=(e=hr(this,Si)).onLogMessage)==null||r.call(e,["debug",110,{dim:n,score:o,cap:i.cap}]),t[n]=i.cap)}};qle=function(){var t,e,r;return{...Kle(),consent:(t=hr(this,Si).defaultConsent)!=null?t:!1,controlGroup:(r=(e=hr(this,Si).manifest)==null?void 0:e.rollForControlGroup())!=null?r:!1}};var Jle,Xle,Nx,Qle,ece,tce,rce,nce,Dx,r5,oce,xk,ice,Ck;Jle=new WeakMap;Xle=new WeakMap;Nx=new WeakMap;Qle=new WeakMap;ece=new WeakMap;tce=new WeakMap;rce=new WeakMap;nce=new WeakMap;Dx=new WeakMap;r5=new WeakSet;oce=function(t){hr(this,Dx).emit("testResult",t)};xk=async function(t){let e=this.manifest.computeGoals(t);e.length!==0&&await this.storage.updateData(e)};ice=function(t){let e=L0(this,r5,Ck).call(this,t);!po(e,hr(this,Nx))&&(mk(this,Nx,e),L0(this,r5,xk).call(this,{scores:hr(this,Nx),quirks:void 0}),hr(this,Dx).emit("scoresUpdated",e),hr(this,Dx).emit("log",["info",3,e]))};Ck=function(t){var e;let r={...t.scores};for(let n in t.sessionScores)r[n]=((e=r[n])!=null?e:0)+t.sessionScores[n];return r=this.manifest.computeAggregateDimensions(r),r};var HMe=(0,Sk.default)();var UMe=(0,_k.default)();await Xm();var V0e=await(process.env.NODE_ENV!=="production"?EV().then(()=>wV):$V().then(()=>TV)),NV=V0e.createHeadlessEditor;await f4();await L4();await F4();await yW();await i3();await UW();await es();await cn();import{createVariableReference as w8e}from"@uniformdev/canvas";var ju=k(rn());sN();var Zje=k(K());Hg();var Jje=k(lN());Q1();var Qje=k(Q9());Kg();Wg();$3();var pi=ju.Fragment,M=function(e,r,n){return Af.call(r,"css")?ju.jsx(iv,ov(e,r),n):ju.jsx(e,r,n)},ae=function(e,r,n){return Af.call(r,"css")?ju.jsxs(iv,ov(e,r),n):ju.jsxs(e,r,n)};re();re();re();re();re();function VG(t){for(var e=[],r=1;r<arguments.length;r++)e[r-1]=arguments[r];t&&t.addEventListener&&t.addEventListener.apply(t,e)}function HG(t){for(var e=[],r=1;r<arguments.length;r++)e[r-1]=arguments[r];t&&t.removeEventListener&&t.removeEventListener.apply(t,e)}var UG=typeof window<"u";var KG=k(K());var js=k(K());function uN(t,e){e===void 0&&(e=0);var r=(0,js.useRef)(!1),n=(0,js.useRef)(),o=(0,js.useRef)(t),i=(0,js.useCallback)(function(){return r.current},[]),s=(0,js.useCallback)(function(){r.current=!1,n.current&&clearTimeout(n.current),n.current=setTimeout(function(){r.current=!0,o.current()},e)},[e]),a=(0,js.useCallback)(function(){r.current=null,n.current&&clearTimeout(n.current)},[]);return(0,js.useEffect)(function(){o.current=t},[t]),(0,js.useEffect)(function(){return s(),a},[e]),[i,a,s]}function A3(t,e,r){e===void 0&&(e=0),r===void 0&&(r=[]);var n=uN(t,e),o=n[0],i=n[1],s=n[2];return(0,KG.useEffect)(s,r),[o,i]}var Yg=k(K());var Txe=function(t){return t===void 0&&(t={laptopL:1440,laptop:1024,tablet:768}),function(){var e=(0,Yg.useState)(UG?window.innerWidth:0),r=e[0],n=e[1];(0,Yg.useEffect)(function(){var s=function(){n(window.innerWidth)};return s(),VG(window,"resize",s),function(){HG(window,"resize",s)}});var o=(0,Yg.useMemo)(function(){return Object.entries(t).sort(function(s,a){return s[1]>=a[1]?1:-1})},[t]),i=o.reduce(function(s,a){var l=a[0],c=a[1];return r>=c?l:s},o[0][0]);return i}},dN=Txe;re();re();re();var HTe=k(K());re();re();var $xe=Object.defineProperty,Nxe=Object.defineProperties,Dxe=Object.getOwnPropertyDescriptors,O3=Object.getOwnPropertySymbols,GG=Object.prototype.hasOwnProperty,YG=Object.prototype.propertyIsEnumerable,WG=(t,e,r)=>e in t?$xe(t,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[e]=r,q=(t,e)=>{for(var r in e||(e={}))GG.call(e,r)&&WG(t,r,e[r]);if(O3)for(var r of O3(e))YG.call(e,r)&&WG(t,r,e[r]);return t},ce=(t,e)=>Nxe(t,Dxe(e)),$e=(t,e)=>{var r={};for(var n in t)GG.call(t,n)&&e.indexOf(n)<0&&(r[n]=t[n]);if(t!=null&&O3)for(var n of O3(t))e.indexOf(n)<0&&YG.call(t,n)&&(r[n]=t[n]);return r};var Lxe=Object.defineProperty,Axe=Object.defineProperties,Oxe=Object.getOwnPropertyDescriptors,M3=Object.getOwnPropertySymbols,qG=Object.prototype.hasOwnProperty,JG=Object.prototype.propertyIsEnumerable,ZG=(t,e,r)=>e in t?Lxe(t,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[e]=r,ct=(t,e)=>{for(var r in e||(e={}))qG.call(e,r)&&ZG(t,r,e[r]);if(M3)for(var r of M3(e))JG.call(e,r)&&ZG(t,r,e[r]);return t},pr=(t,e)=>Axe(t,Oxe(e)),I3=(t,e)=>{var r={};for(var n in t)qG.call(t,n)&&e.indexOf(n)<0&&(r[n]=t[n]);if(t!=null&&M3)for(var n of M3(t))e.indexOf(n)<0&&JG.call(t,n)&&(r[n]=t[n]);return r};function Of(...t){}function sv(t,e){if(Mxe(t)){let r=Ixe(e)?e():e;return t(r)}return t}function Mxe(t){return typeof t=="function"}function Ixe(t){return typeof t=="function"}function jo(t,e){return typeof Object.hasOwn=="function"?Object.hasOwn(t,e):Object.prototype.hasOwnProperty.call(t,e)}function Ir(...t){return(...e)=>{for(let r of t)typeof r=="function"&&r(...e)}}function fN(t){return t.normalize("NFD").replace(/[\u0300-\u036f]/g,"")}function pN(t,e){let r=ct({},t);for(let n of e)jo(r,n)&&delete r[n];return r}function mN(t,e){let r={};for(let n of e)jo(t,n)&&(r[n]=t[n]);return r}function av(t){return t}function vt(t,e){if(!t)throw typeof e!="string"?new Error("Invariant failed"):new Error(e)}function gN(t){return Object.keys(t)}function Wa(t,...e){let r=typeof t=="function"?t(...e):t;return r==null?!1:!r}function Vs(t){return t.disabled||t["aria-disabled"]===!0||t["aria-disabled"]==="true"}function Vo(t){let e={};for(let r in t)t[r]!==void 0&&(e[r]=t[r]);return e}function ot(...t){for(let e of t)if(e!==void 0)return e}var XG=k(K(),1);function lv(t,e){typeof t=="function"?t(e):t&&(t.current=e)}function kxe(t){return!t||!(0,XG.isValidElement)(t)?!1:"ref"in t.props||"ref"in t}function QG(t){return kxe(t)?q({},t.props).ref||t.ref:null}function eY(t,e){let r=q({},t);for(let n in e){if(!jo(e,n))continue;if(n==="className"){let i="className";r[i]=t[i]?`${t[i]} ${e[i]}`:e[i];continue}if(n==="style"){let i="style";r[i]=t[i]?q(q({},t[i]),e[i]):e[i];continue}let o=e[n];if(typeof o=="function"&&n.startsWith("on")){let i=t[n];if(typeof i=="function"){r[n]=(...s)=>{o(...s),i(...s)};continue}}r[n]=o}return r}var ql=Rxe();function Rxe(){var t;return typeof window<"u"&&!!((t=window.document)!=null&&t.createElement)}function Dt(t){return t?"self"in t?t.document:t.ownerDocument||document:document}function Mf(t){return t?"self"in t?t.self:Dt(t).defaultView||window:self}function Li(t,e=!1){let{activeElement:r}=Dt(t);if(!r?.nodeName)return null;if(cv(r)&&r.contentDocument)return Li(r.contentDocument.body,e);if(e){let n=r.getAttribute("aria-activedescendant");if(n){let o=Dt(r).getElementById(n);if(o)return o}}return r}function Wt(t,e){return t===e||t.contains(e)}function cv(t){return t.tagName==="IFRAME"}function mi(t){let e=t.tagName.toLowerCase();return e==="button"?!0:e==="input"&&t.type?Pxe.indexOf(t.type)!==-1:!1}var Pxe=["button","color","file","image","reset","submit"];function uv(t){if(typeof t.checkVisibility=="function")return t.checkVisibility();let e=t;return e.offsetWidth>0||e.offsetHeight>0||t.getClientRects().length>0}function Ho(t){try{let e=t instanceof HTMLInputElement&&t.selectionStart!==null,r=t.tagName==="TEXTAREA";return e||r||!1}catch{return!1}}function dv(t){return t.isContentEditable||Ho(t)}function hN(t){if(Ho(t))return t.value;if(t.isContentEditable){let e=Dt(t).createRange();return e.selectNodeContents(t),e.toString()}return""}function vN(t){let e=0,r=0;if(Ho(t))e=t.selectionStart||0,r=t.selectionEnd||0;else if(t.isContentEditable){let n=Dt(t).getSelection();if(n?.rangeCount&&n.anchorNode&&Wt(t,n.anchorNode)&&n.focusNode&&Wt(t,n.focusNode)){let o=n.getRangeAt(0),i=o.cloneRange();i.selectNodeContents(t),i.setEnd(o.startContainer,o.startOffset),e=i.toString().length,i.setEnd(o.endContainer,o.endOffset),r=i.toString().length}}return{start:e,end:r}}function Zg(t,e){let r=["dialog","menu","listbox","tree","grid"],n=t?.getAttribute("role");return n&&r.indexOf(n)!==-1?n:e}function fv(t,e){var r;let n={menu:"menuitem",listbox:"option",tree:"treeitem"},o=Zg(t);return o&&(r=n[o])!=null?r:e}function k3(t){if(!t)return null;let e=r=>r==="auto"||r==="scroll";if(t.clientHeight&&t.scrollHeight>t.clientHeight){let{overflowY:r}=getComputedStyle(t);if(e(r))return t}else if(t.clientWidth&&t.scrollWidth>t.clientWidth){let{overflowX:r}=getComputedStyle(t);if(e(r))return t}return k3(t.parentElement)||document.scrollingElement||document.body}function pv(t,e){let r=t.map((o,i)=>[i,o]),n=!1;return r.sort(([o,i],[s,a])=>{let l=e(i),c=e(a);return l===c||!l||!c?0:Fxe(l,c)?(o>s&&(n=!0),-1):(o<s&&(n=!0),1)}),n?r.map(([o,i])=>i):t}function Fxe(t,e){return!!(e.compareDocumentPosition(t)&Node.DOCUMENT_POSITION_PRECEDING)}function tY(){return ql&&!!navigator.maxTouchPoints}function qg(){return ql?/mac|iphone|ipad|ipod/i.test(navigator.platform):!1}function If(){return ql&&qg()&&/apple/i.test(navigator.vendor)}function yN(){return ql&&/firefox\//i.test(navigator.userAgent)}function bN(){return ql&&navigator.platform.startsWith("Mac")&&!tY()}function R3(t){return!!(t.currentTarget&&!Wt(t.currentTarget,t.target))}function eo(t){return t.target===t.currentTarget}function rY(t){let e=t.currentTarget;if(!e)return!1;let r=qg();if(r&&!t.metaKey||!r&&!t.ctrlKey)return!1;let n=e.tagName.toLowerCase();return n==="a"||n==="button"&&e.type==="submit"||n==="input"&&e.type==="submit"}function nY(t){let e=t.currentTarget;if(!e)return!1;let r=e.tagName.toLowerCase();return t.altKey?r==="a"||r==="button"&&e.type==="submit"||r==="input"&&e.type==="submit":!1}function oY(t,e,r){let n=new Event(e,r);return t.dispatchEvent(n)}function kf(t,e){let r=new FocusEvent("blur",e),n=t.dispatchEvent(r),o=pr(ct({},e),{bubbles:!0});return t.dispatchEvent(new FocusEvent("focusout",o)),n}function iY(t,e,r){let n=new KeyboardEvent(e,r);return t.dispatchEvent(n)}function xN(t,e){let r=new MouseEvent("click",e);return t.dispatchEvent(r)}function Vu(t,e){let r=e||t.currentTarget,n=t.relatedTarget;return!n||!Wt(r,n)}function Hu(t,e,r,n){let i=(a=>{if(n){let c=setTimeout(a,n);return()=>clearTimeout(c)}let l=requestAnimationFrame(a);return()=>cancelAnimationFrame(l)})(()=>{t.removeEventListener(e,s,!0),r()}),s=()=>{i(),r()};return t.addEventListener(e,s,{once:!0,capture:!0}),i}function Ur(t,e,r,n=window){let o=[];try{n.document.addEventListener(t,e,r);for(let s of Array.from(n.frames))o.push(Ur(t,e,r,s))}catch{}return()=>{try{n.document.removeEventListener(t,e,r)}catch{}for(let s of o)s()}}var Bxe=k(K(),1),Kr=k(K(),1),CN=q({},Bxe),sY=CN.useId,KVe=CN.useDeferredValue,aY=CN.useInsertionEffect,Ct=ql?Kr.useLayoutEffect:Kr.useEffect;function F3(t){let e=(0,Kr.useRef)(t);return Ct(()=>{e.current=t}),e}function ke(t){let e=(0,Kr.useRef)(()=>{throw new Error("Cannot call an event handler while rendering.")});return aY?aY(()=>{e.current=t}):e.current=t,(0,Kr.useCallback)((...r)=>{var n;return(n=e.current)==null?void 0:n.call(e,...r)},[])}function dY(t){let[e,r]=(0,Kr.useState)(null);return Ct(()=>{if(e==null||!t)return;let n=null;return t(o=>(n=o,e)),()=>{t(n)}},[e,t]),[e,r]}function xt(...t){return(0,Kr.useMemo)(()=>{if(t.some(Boolean))return e=>{for(let r of t)lv(r,e)}},t)}function gi(t){if(sY){let n=sY();return t||n}let[e,r]=(0,Kr.useState)(t);return Ct(()=>{if(t||e)return;let n=Math.random().toString(36).slice(2,8);r(`id-${n}`)},[t,e]),t||e}function B3(t,e){let r=i=>{if(typeof i=="string")return i},[n,o]=(0,Kr.useState)(()=>r(e));return Ct(()=>{let i=t&&"current"in t?t.current:t;o(i?.tagName.toLowerCase()||r(e))},[t,e]),n}function Uu(t,e){let r=(0,Kr.useRef)(!1);(0,Kr.useEffect)(()=>{if(r.current)return t();r.current=!0},e),(0,Kr.useEffect)(()=>()=>{r.current=!1},[])}function fY(){return(0,Kr.useReducer)(()=>[],[])}function dn(t){return ke(typeof t=="function"?t:()=>t)}function Cr(t,e,r=[]){let n=(0,Kr.useCallback)(o=>(t.wrapElement&&(o=t.wrapElement(o)),e(o)),[...r,t.wrapElement]);return ce(q({},t),{wrapElement:n})}function Jg(t=!1,e){let[r,n]=(0,Kr.useState)(null);return{portalRef:xt(n,e),portalNode:r,domReady:!t||r}}function z3(t,e,r){let n=t.onLoadedMetadataCapture,o=(0,Kr.useMemo)(()=>Object.assign(()=>{},ce(q({},n),{[e]:r})),[n,e,r]);return[n?.[e],{onLoadedMetadataCapture:o}]}var lY=!1;function Xg(){return(0,Kr.useEffect)(()=>{lY||(Ur("mousemove",jxe,!0),Ur("mousedown",P3,!0),Ur("mouseup",P3,!0),Ur("keydown",P3,!0),Ur("scroll",P3,!0),lY=!0)},[]),ke(()=>SN)}var SN=!1,cY=0,uY=0;function zxe(t){let e=t.movementX||t.screenX-cY,r=t.movementY||t.screenY-uY;return cY=t.screenX,uY=t.screenY,e||r||process.env.NODE_ENV==="test"}function jxe(t){zxe(t)&&(SN=!0)}function P3(){SN=!1}var Uo=k(K(),1),Rf=k(rn(),1);function _e(t){let e=Uo.forwardRef((r,n)=>t(ce(q({},r),{ref:n})));return e.displayName=t.displayName||t.name,e}function Ku(t,e){return Uo.memo(t,e)}function Ne(t,e){let r=e,{wrapElement:n,render:o}=r,i=$e(r,["wrapElement","render"]),s=xt(e.ref,QG(o)),a;if(Uo.isValidElement(o)){let l=ce(q({},o.props),{ref:s});a=Uo.cloneElement(o,eY(i,l))}else o?a=o(i):a=(0,Rf.jsx)(t,q({},i));return n?n(a):a}function Le(t){let e=(r={})=>t(r);return e.displayName=t.name,e}function wn(t=[],e=[]){let r=Uo.createContext(void 0),n=Uo.createContext(void 0),o=()=>Uo.useContext(r),i=(c=!1)=>{let u=Uo.useContext(n),d=o();return c?u:u||d},s=()=>{let c=Uo.useContext(n),u=o();if(!(c&&c===u))return u},a=c=>t.reduceRight((u,d)=>(0,Rf.jsx)(d,ce(q({},c),{children:u})),(0,Rf.jsx)(r.Provider,q({},c)));return{context:r,scopedContext:n,useContext:o,useScopedContext:i,useProviderContext:s,ContextProvider:a,ScopedContextProvider:c=>(0,Rf.jsx)(a,ce(q({},c),{children:e.reduceRight((u,d)=>(0,Rf.jsx)(d,ce(q({},c),{children:u})),(0,Rf.jsx)(n.Provider,q({},c)))}))}}var mv=wn(),pY=mv.useContext,XVe=mv.useScopedContext,QVe=mv.useProviderContext,mY=mv.ContextProvider,gY=mv.ScopedContextProvider;var _N=k(K(),1),gv=wn([mY],[gY]),Qg=gv.useContext,nHe=gv.useScopedContext,hY=gv.useProviderContext,Wu=gv.ContextProvider,eh=gv.ScopedContextProvider,vY=(0,_N.createContext)(void 0),yY=(0,_N.createContext)(void 0);var Vxe={id:null};function bY(t,e,r=!1){let n=t.findIndex(o=>o.id===e);return[...t.slice(n+1),...r?[Vxe]:[],...t.slice(0,n)]}function xY(t,e){return t.find(r=>e?!r.disabled&&r.id!==e:!r.disabled)}function Ga(t,e){return e&&t.item(e)||null}function CY(t){let e=[];for(let r of t){let n=e.find(o=>{var i;return((i=o[0])==null?void 0:i.rowId)===r.rowId});n?n.push(r):e.push([r])}return e}function SY(t,e=!1){if(Ho(t))t.setSelectionRange(e?t.value.length:0,t.value.length);else if(t.isContentEditable){let r=Dt(t).getSelection();r?.selectAllChildren(t),e&&r?.collapseToEnd()}}var wN=Symbol("FOCUS_SILENTLY");function _Y(t){t[wN]=!0,t.focus({preventScroll:!0})}function wY(t){let e=t[wN];return delete t[wN],e}function Pf(t,e,r){if(!e||e===r)return!1;let n=t.item(e.id);return!(!n||r&&n.element===r)}var j3=k(K(),1),Hxe="div",EN=Le(function(e){var r=e,{store:n,shouldRegisterItem:o=!0,getItem:i=av,element:s}=r,a=$e(r,["store","shouldRegisterItem","getItem","element"]);let l=pY();n=n||l;let c=gi(a.id),u=(0,j3.useRef)(s);return(0,j3.useEffect)(()=>{let d=u.current;if(!c||!d||!o)return;let f=i({id:c,element:d});return n?.renderItem(f)},[c,o,i,n]),a=ce(q({},a),{ref:xt(u,a.ref)}),Vo(a)}),fHe=_e(function(e){let r=EN(e);return Ne(Hxe,r)});var EY=k(K(),1),V3=(0,EY.createContext)(!0);var H3="input:not([type='hidden']):not([disabled]), select:not([disabled]), textarea:not([disabled]), a[href], button:not([disabled]), [tabindex], summary, iframe, object, embed, area[href], audio[controls], video[controls], [contenteditable]:not([contenteditable='false'])";function Uxe(t){return Number.parseInt(t.getAttribute("tabindex")||"0",10)<0}function Ai(t){return!(!t.matches(H3)||!uv(t)||t.closest("[inert]"))}function th(t){if(!Ai(t)||Uxe(t))return!1;if(!("form"in t)||!t.form||t.checked||t.type!=="radio")return!0;let e=t.form.elements.namedItem(t.name);if(!e||!("length"in e))return!0;let r=Li(t);return!r||r===t||!("form"in r)||r.form!==t.form||r.name!==t.name}function TN(t,e){let r=Array.from(t.querySelectorAll(H3));e&&r.unshift(t);let n=r.filter(Ai);return n.forEach((o,i)=>{if(cv(o)&&o.contentDocument){let s=o.contentDocument.body;n.splice(i,1,...TN(s))}}),n}function hv(t,e,r){let n=Array.from(t.querySelectorAll(H3)),o=n.filter(th);return e&&th(t)&&o.unshift(t),o.forEach((i,s)=>{if(cv(i)&&i.contentDocument){let a=i.contentDocument.body,l=hv(a,!1,r);o.splice(s,1,...l)}}),!o.length&&r?n:o}function TY(t,e,r){let[n]=hv(t,e,r);return n||null}function Kxe(t,e,r,n){let o=Li(t),i=TN(t,e),s=i.indexOf(o),a=i.slice(s+1);return a.find(th)||(r?i.find(th):null)||(n?a[0]:null)||null}function U3(t,e){return Kxe(document.body,!1,t,e)}function Wxe(t,e,r,n){let o=Li(t),i=TN(t,e).reverse(),s=i.indexOf(o),a=i.slice(s+1);return a.find(th)||(r?i.find(th):null)||(n?a[0]:null)||null}function $N(t,e){return Wxe(document.body,!1,t,e)}function $Y(t){for(;t&&!Ai(t);)t=t.closest(H3);return t||null}function Ff(t){let e=Li(t);if(!e)return!1;if(e===t)return!0;let r=e.getAttribute("aria-activedescendant");return r?r===t.id:!1}function os(t){let e=Li(t);if(!e)return!1;if(Wt(t,e))return!0;let r=e.getAttribute("aria-activedescendant");return!r||!("id"in t)?!1:r===t.id?!0:!!t.querySelector(`#${CSS.escape(r)}`)}function K3(t){!os(t)&&Ai(t)&&t.focus()}function Gxe(t){var e;let r=(e=t.getAttribute("tabindex"))!=null?e:"";t.setAttribute("data-tabindex",r),t.setAttribute("tabindex","-1")}function NY(t,e){let r=hv(t,e);for(let n of r)Gxe(n)}function DY(t){let e=t.querySelectorAll("[data-tabindex]"),r=n=>{let o=n.getAttribute("data-tabindex");n.removeAttribute("data-tabindex"),o?n.setAttribute("tabindex",o):n.removeAttribute("tabindex")};t.hasAttribute("data-tabindex")&&r(t);for(let n of e)r(n)}function LY(t,e){"scrollIntoView"in t?(t.focus({preventScroll:!0}),t.scrollIntoView(ct({block:"nearest",inline:"nearest"},e))):t.focus()}var Oi=k(K(),1),Yxe="div",AY=If(),Zxe=["text","search","url","tel","email","password","number","date","month","week","time","datetime","datetime-local"],kY=Symbol("safariFocusAncestor");function RY(t){return t?!!t[kY]:!1}function OY(t,e){t&&(t[kY]=e)}function qxe(t){let{tagName:e,readOnly:r,type:n}=t;return e==="TEXTAREA"&&!r||e==="SELECT"&&!r?!0:e==="INPUT"&&!r?Zxe.includes(n):!!(t.isContentEditable||t.getAttribute("role")==="combobox"&&t.dataset.name)}function Jxe(t){return"labels"in t?t.labels:null}function MY(t){return t.tagName.toLowerCase()==="input"&&t.type?t.type==="radio"||t.type==="checkbox":!1}function Xxe(t){return t?t==="button"||t==="summary"||t==="input"||t==="select"||t==="textarea"||t==="a":!0}function Qxe(t){return t?t==="button"||t==="input"||t==="select"||t==="textarea":!0}function eCe(t,e,r,n,o){return t?e?r&&!n?-1:void 0:r?o:o||0:o}function NN(t,e){return ke(r=>{t?.(r),!r.defaultPrevented&&e&&(r.stopPropagation(),r.preventDefault())})}var IY=!1,DN=!0;function tCe(t){let e=t.target;e&&"hasAttribute"in e&&(e.hasAttribute("data-focus-visible")||(DN=!1))}function rCe(t){t.metaKey||t.ctrlKey||t.altKey||(DN=!0)}var Jl=Le(function(e){var r=e,{focusable:n=!0,accessibleWhenDisabled:o,autoFocus:i,onFocusVisible:s}=r,a=$e(r,["focusable","accessibleWhenDisabled","autoFocus","onFocusVisible"]);let l=(0,Oi.useRef)(null);(0,Oi.useEffect)(()=>{n&&(IY||(Ur("mousedown",tCe,!0),Ur("keydown",rCe,!0),IY=!0))},[n]),AY&&(0,Oi.useEffect)(()=>{if(!n)return;let D=l.current;if(!D||!MY(D))return;let F=Jxe(D);if(!F)return;let P=()=>queueMicrotask(()=>D.focus());for(let z of F)z.addEventListener("mouseup",P);return()=>{for(let z of F)z.removeEventListener("mouseup",P)}},[n]);let c=n&&Vs(a),u=!!c&&!o,[d,f]=(0,Oi.useState)(!1);(0,Oi.useEffect)(()=>{n&&u&&d&&f(!1)},[n,u,d]),(0,Oi.useEffect)(()=>{if(!n||!d)return;let D=l.current;if(!D||typeof IntersectionObserver>"u")return;let F=new IntersectionObserver(()=>{Ai(D)||f(!1)});return F.observe(D),()=>F.disconnect()},[n,d]);let p=NN(a.onKeyPressCapture,c),m=NN(a.onMouseDownCapture,c),g=NN(a.onClickCapture,c),h=a.onMouseDown,v=ke(D=>{if(h?.(D),D.defaultPrevented||!n)return;let F=D.currentTarget;if(!AY||R3(D)||!mi(F)&&!MY(F))return;let P=!1,z=()=>{P=!0},j={capture:!0,once:!0};F.addEventListener("focusin",z,j);let I=$Y(F.parentElement);OY(I,!0),Hu(F,"mouseup",()=>{F.removeEventListener("focusin",z,!0),OY(I,!1),!P&&K3(F)})}),y=(D,F)=>{if(F&&(D.currentTarget=F),!n)return;let P=D.currentTarget;P&&Ff(P)&&(s?.(D),!D.defaultPrevented&&(P.dataset.focusVisible="true",f(!0)))},b=a.onKeyDownCapture,x=ke(D=>{if(b?.(D),D.defaultPrevented||!n||d||D.metaKey||D.altKey||D.ctrlKey||!eo(D))return;let F=D.currentTarget;Hu(F,"focusout",()=>y(D,F))}),S=a.onFocusCapture,_=ke(D=>{if(S?.(D),D.defaultPrevented||!n)return;if(!eo(D)){f(!1);return}let F=D.currentTarget,P=()=>y(D,F);DN||qxe(D.target)?Hu(D.target,"focusout",P):f(!1)}),w=a.onBlur,T=ke(D=>{w?.(D),n&&Vu(D)&&(D.currentTarget.removeAttribute("data-focus-visible"),f(!1))}),N=(0,Oi.useContext)(V3),$=ke(D=>{n&&i&&D&&N&&queueMicrotask(()=>{Ff(D)||Ai(D)&&D.focus()})}),E=B3(l),R=n&&Xxe(E),O=n&&Qxe(E),A=a.style,B=(0,Oi.useMemo)(()=>u?q({pointerEvents:"none"},A):A,[u,A]);return a=ce(q({"data-focus-visible":n&&d||void 0,"data-autofocus":i||void 0,"aria-disabled":c||void 0},a),{ref:xt(l,$,a.ref),style:B,tabIndex:eCe(n,u,R,O,a.tabIndex),disabled:O&&u?!0:void 0,contentEditable:c?void 0:a.contentEditable,onKeyPressCapture:p,onClickCapture:g,onMouseDownCapture:m,onMouseDown:v,onKeyDownCapture:x,onFocusCapture:_,onBlur:T}),Vo(a)}),DHe=_e(function(e){let r=Jl(e);return Ne(Yxe,r)});var Gu=k(K(),1),nCe="button";function PY(t){if(!t.isTrusted)return!1;let e=t.currentTarget;return t.key==="Enter"?mi(e)||e.tagName==="SUMMARY"||e.tagName==="A":t.key===" "?mi(e)||e.tagName==="SUMMARY"||e.tagName==="INPUT"||e.tagName==="SELECT":!1}var oCe=Symbol("command"),vv=Le(function(e){var r=e,{clickOnEnter:n=!0,clickOnSpace:o=!0}=r,i=$e(r,["clickOnEnter","clickOnSpace"]);let s=(0,Gu.useRef)(null),[a,l]=(0,Gu.useState)(!1);(0,Gu.useEffect)(()=>{s.current&&l(mi(s.current))},[]);let[c,u]=(0,Gu.useState)(!1),d=(0,Gu.useRef)(!1),f=Vs(i),[p,m]=z3(i,oCe,!0),g=i.onKeyDown,h=ke(b=>{g?.(b);let x=b.currentTarget;if(b.defaultPrevented||p||f||!eo(b)||Ho(x)||x.isContentEditable)return;let S=n&&b.key==="Enter",_=o&&b.key===" ",w=b.key==="Enter"&&!n,T=b.key===" "&&!o;if(w||T){b.preventDefault();return}if(S||_){let N=PY(b);if(S){if(!N){b.preventDefault();let $=b,{view:E}=$,R=$e($,["view"]),O=()=>xN(x,R);yN()?Hu(x,"keyup",O):queueMicrotask(O)}}else _&&(d.current=!0,N||(b.preventDefault(),u(!0)))}}),v=i.onKeyUp,y=ke(b=>{if(v?.(b),b.defaultPrevented||p||f||b.metaKey)return;let x=o&&b.key===" ";if(d.current&&x&&(d.current=!1,!PY(b))){b.preventDefault(),u(!1);let S=b.currentTarget,_=b,{view:w}=_,T=$e(_,["view"]);queueMicrotask(()=>xN(S,T))}});return i=ce(q(q({"data-active":c||void 0,type:a?"button":void 0},m),i),{ref:xt(s,i.ref),onKeyDown:h,onKeyUp:y}),i=Jl(i),i}),BHe=_e(function(e){let r=vv(e);return Ne(nCe,r)});function Bf(t,e){let r=t.__unstableInternals;return vt(r,"Invalid store"),r[e]}function fn(t,...e){let r=t,n=r,o=Symbol(),i=Of,s=new Set,a=new Set,l=new Set,c=new Set,u=new Set,d=new WeakMap,f=new WeakMap,p=T=>(l.add(T),()=>l.delete(T)),m=()=>{let T=s.size,N=Symbol();s.add(N);let $=()=>{s.delete(N),!s.size&&i()};if(T)return $;let E=gN(r).map(A=>Ir(...e.map(B=>{var D;let F=(D=B?.getState)==null?void 0:D.call(B);if(F&&jo(F,A))return On(B,[A],P=>{_(A,P[A],!0)})}))),R=[];for(let A of l)R.push(A());let O=e.map(rh);return i=Ir(...E,...R,...O),$},g=(T,N,$=c)=>($.add(N),f.set(N,T),()=>{var E;(E=d.get(N))==null||E(),d.delete(N),f.delete(N),$.delete(N)}),h=(T,N)=>g(T,N),v=(T,N)=>(d.set(N,N(r,r)),g(T,N)),y=(T,N)=>(d.set(N,N(r,n)),g(T,N,u)),b=T=>fn(mN(r,T),w),x=T=>fn(pN(r,T),w),S=()=>r,_=(T,N,$=!1)=>{var E;if(!jo(r,T))return;let R=sv(N,r[T]);if(R===r[T])return;if(!$)for(let D of e)(E=D?.setState)==null||E.call(D,T,R);let O=r;r=pr(ct({},r),{[T]:R});let A=Symbol();o=A,a.add(T);let B=(D,F,P)=>{var z;let j=f.get(D),I=Y=>P?P.has(Y):Y===T;(!j||j.some(I))&&((z=d.get(D))==null||z(),d.set(D,D(r,F)))};for(let D of c)B(D,O);queueMicrotask(()=>{if(o!==A)return;let D=r;for(let F of u)B(F,n,a);n=D,a.clear()})},w={getState:S,setState:_,__unstableInternals:{setup:p,init:m,subscribe:h,sync:v,batch:y,pick:b,omit:x}};return w}function hi(t,...e){if(t)return Bf(t,"setup")(...e)}function rh(t,...e){if(t)return Bf(t,"init")(...e)}function nh(t,...e){if(t)return Bf(t,"subscribe")(...e)}function On(t,...e){if(t)return Bf(t,"sync")(...e)}function oh(t,...e){if(t)return Bf(t,"batch")(...e)}function zf(t,...e){if(t)return Bf(t,"omit")(...e)}function LN(t,...e){if(t)return Bf(t,"pick")(...e)}function jf(...t){var e;let r={};for(let o of t){let i=(e=o?.getState)==null?void 0:e.call(o);i&&Object.assign(r,i)}let n=fn(r,...t);return Object.assign({},...t,n)}function Xl(t,e){if(process.env.NODE_ENV==="production"||!e)return;let r=Object.entries(t).filter(([i,s])=>i.startsWith("default")&&s!==void 0).map(([i])=>{var s;let a=i.replace("default","");return`${((s=a[0])==null?void 0:s.toLowerCase())||""}${a.slice(1)}`});if(!r.length)return;let n=e.getState();if(r.filter(i=>jo(n,i)).length)throw new Error(`Passing a store prop in conjunction with a default state is not supported.
|
|
102
102
|
|
|
103
103
|
const store = useSelectStore();
|
|
104
104
|
<SelectProvider store={store} defaultValue="Apple" />
|