;/*FB_PKG_DELIM*/ __d("BaseButtonV2.react",["BaseTextV2.react","CometPressable.react","react","react-compiler-runtime","react-strict-dom"],(function(a,b,c,d,e,f,g){"use strict";var h=["ref"],i=["addOnAbsolute","addOnEnd","addOnStart","content","disabled","focusable","icon","id","isUsingCustomFocusRing","linkProps","onFocusIn","onFocusOut","onHoverIn","onHoverOut","onPress","onPressIn","onPressOut","showDynamicHover","sizeVariant","suppressHydrationWarning","testid","testOnly_pressed","variant","widthMode","xstyle"],j,k=j||(j=d("react")),l=j.useRef,m={button:{display:"x78zum5",flexDirection:"xdt5ytf",justifyContent:"xl56j7k",position:"x1n2onr6",width:"xh8yej3",$$css:!0},container:{display:"x78zum5",flexDirection:"xdt5ytf",position:"x1n2onr6",width:"xnq0rdo",$$css:!0},content:{borderTopStyle:"x13fuv20",borderInlineEndStyle:"x18b5jzi",borderBottomStyle:"x1q0q8m5",borderInlineStartStyle:"x1t7ytsu",boxSizing:"x9f619",display:"x78zum5",justifyContent:"xl56j7k",$$css:!0},item:{alignItems:"x6s0dn4",display:"x78zum5",flexShrink:"x2lah0s",$$css:!0},pressed:{borderTopStyle:"x13fuv20",borderInlineEndStyle:"x18b5jzi",borderBottomStyle:"x1q0q8m5",borderInlineStartStyle:"x1t7ytsu",$$css:!0},widthModeConstrained:{width:"xnq0rdo",$$css:!0},widthModeFit:{width:"xeq5yr9",$$css:!0},widthModeFlexible:{boxSizing:"x9f619",width:"xh8yej3",$$css:!0}};function a(a){var b=d("react-compiler-runtime").c(96),e,f;b[0]!==a?(f=a.ref,e=babelHelpers.objectWithoutPropertiesLoose(a,h),b[0]=a,b[1]=e,b[2]=f):(e=b[1],f=b[2]);var g,j,n,o,p,q,r,s,t,u,v,w,x,y,z,A,B,C,D,E,F,G,H,I,J;if(b[3]!==e){a=e;g=a.addOnAbsolute;j=a.addOnEnd;n=a.addOnStart;o=a.content;C=a.disabled;p=a.focusable;q=a.icon;r=a.id;s=a.isUsingCustomFocusRing;t=a.linkProps;u=a.onFocusIn;v=a.onFocusOut;w=a.onHoverIn;x=a.onHoverOut;y=a.onPress;z=a.onPressIn;A=a.onPressOut;D=a.showDynamicHover;B=a.sizeVariant;E=a.suppressHydrationWarning;H=a.testid;F=a.testOnly_pressed;I=a.variant;G=a.widthMode;J=a.xstyle;a=babelHelpers.objectWithoutPropertiesLoose(a,i);b[3]=e;b[4]=g;b[5]=j;b[6]=n;b[7]=a;b[8]=o;b[9]=p;b[10]=q;b[11]=r;b[12]=s;b[13]=t;b[14]=u;b[15]=v;b[16]=w;b[17]=x;b[18]=y;b[19]=z;b[20]=A;b[21]=B;b[22]=C;b[23]=D;b[24]=E;b[25]=F;b[26]=G;b[27]=H;b[28]=I;b[29]=J}else g=b[4],j=b[5],n=b[6],a=b[7],o=b[8],p=b[9],q=b[10],r=b[11],s=b[12],t=b[13],u=b[14],v=b[15],w=b[16],x=b[17],y=b[18],z=b[19],A=b[20],B=b[21],C=b[22],D=b[23],E=b[24],F=b[25],G=b[26],H=b[27],I=b[28],J=b[29];e=C===void 0?!1:C;C=D===void 0?!1:D;D=E===void 0?!1:E;E=F===void 0?!1:F;F=G===void 0?"flexible":G;G=l(null);var K;b[30]!==z?(K=function(a){typeof z==="function"&&z(a)},b[30]=z,b[31]=K):K=b[31];K=K;var L;b[32]!==A?(L=function(a){typeof A==="function"&&A(a)},b[32]=A,b[33]=L):L=b[33];L=L;var M=n!=null&&B.xstyleConfig.addOnStart,N=j!=null&&B.xstyleConfig.addOnEnd,O=e&&I.xstyleConfig.disabled,P;b[34]!==B.xstyleConfig.content||b[35]!==O||b[36]!==M||b[37]!==N||b[38]!==I.xstyleConfig.content||b[39]!==J?(P=[m.content,I.xstyleConfig.content,B.xstyleConfig.content,M,N,O,J],b[34]=B.xstyleConfig.content,b[35]=O,b[36]=M,b[37]=N,b[38]=I.xstyleConfig.content,b[39]=J,b[40]=P):P=b[40];b[41]!==n||b[42]!==q||b[43]!==B.xstyleConfig.item?(O=n!=null?k.jsx(d("react-strict-dom").html.div,{style:[m.item,B.xstyleConfig.item],children:n}):q!=null?k.jsx(d("react-strict-dom").html.div,{style:[m.item,B.xstyleConfig.item],children:q}):null,b[41]=n,b[42]=q,b[43]=B.xstyleConfig.item,b[44]=O):O=b[44];b[45]!==o||b[46]!==B.xstyleConfig.item||b[47]!==I.textProps?(M=o!=null?k.jsx(d("react-strict-dom").html.div,{style:[m.item,B.xstyleConfig.item],children:typeof o==="function"?o():I.textProps!=null?k.jsx(c("BaseTextV2.react"),babelHelpers["extends"]({},I.textProps,{children:o})):null}):null,b[45]=o,b[46]=B.xstyleConfig.item,b[47]=I.textProps,b[48]=M):M=b[48];b[49]!==j||b[50]!==B.xstyleConfig.item?(N=j!=null?k.jsx(d("react-strict-dom").html.div,{style:[m.item,B.xstyleConfig.item],children:j}):null,b[49]=j,b[50]=B.xstyleConfig.item,b[51]=N):N=b[51];J=g!=null?g:null;b[52]!==P||b[53]!==O||b[54]!==M||b[55]!==N||b[56]!==J?(n=k.jsxs(d("react-strict-dom").html.div,{ref:G,style:P,children:[O,M,N,J]}),b[52]=P,b[53]=O,b[54]=M,b[55]=N,b[56]=J,b[57]=n):n=b[57];q=n;o=F==="flexible"&&m.widthModeFlexible;j=F==="constrained"&&m.widthModeConstrained;g=F==="fit"&&m.widthModeFit;b[58]!==o||b[59]!==j||b[60]!==g||b[61]!==I.xstyleConfig.pressedTransform?(G=[I.xstyleConfig.pressedTransform,m.container,o,j,g],b[58]=o,b[59]=j,b[60]=g,b[61]=I.xstyleConfig.pressedTransform,b[62]=G):G=b[62];b[63]!==B.xstyleConfig.hovered||b[64]!==I.xstyleConfig.hovered?(P=[I.xstyleConfig.hovered,B.xstyleConfig.hovered],b[63]=B.xstyleConfig.hovered,b[64]=I.xstyleConfig.hovered,b[65]=P):P=b[65];b[66]!==B.xstyleConfig.pressed||b[67]!==I.xstyleConfig.pressed?(O=[m.pressed,B.xstyleConfig.pressed,I.xstyleConfig.pressed],b[66]=B.xstyleConfig.pressed,b[67]=I.xstyleConfig.pressed,b[68]=O):O=b[68];b[69]!==a||b[70]!==e||b[71]!==p||b[72]!==q||b[73]!==r||b[74]!==s||b[75]!==t||b[76]!==u||b[77]!==v||b[78]!==w||b[79]!==x||b[80]!==y||b[81]!==K||b[82]!==L||b[83]!==f||b[84]!==C||b[85]!==D||b[86]!==P||b[87]!==O||b[88]!==E||b[89]!==H||b[90]!==I.xstyleConfig.pressableOverlay||b[91]!==I.xstyleConfig.pressableOverlayFocusVisible?(M=k.jsx(c("CometPressable.react"),babelHelpers["extends"]({},a,{disabled:e,focusable:p,id:r,isUsingCustomFocusRing:s,linkProps:t,onFocusIn:u,onFocusOut:v,onHoverIn:w,onHoverOut:x,onPress:y,onPressIn:K,onPressOut:L,overlayFocusVisibleStyle:I.xstyleConfig.pressableOverlayFocusVisible,overlayHoveredStyle:P,overlayPressedStyle:O,overlayXStyle:I.xstyleConfig.pressableOverlay,ref:f,showDynamicHover:C,suppressHydrationWarning:D,testOnly_pressed:E,testid:void 0,xstyle:m.button,children:q})),b[69]=a,b[70]=e,b[71]=p,b[72]=q,b[73]=r,b[74]=s,b[75]=t,b[76]=u,b[77]=v,b[78]=w,b[79]=x,b[80]=y,b[81]=K,b[82]=L,b[83]=f,b[84]=C,b[85]=D,b[86]=P,b[87]=O,b[88]=E,b[89]=H,b[90]=I.xstyleConfig.pressableOverlay,b[91]=I.xstyleConfig.pressableOverlayFocusVisible,b[92]=M):M=b[92];b[93]!==G||b[94]!==M?(N=k.jsx(d("react-strict-dom").html.div,{style:G,children:M}),b[93]=G,b[94]=M,b[95]=N):N=b[95];return N}g["default"]=a}),98); __d("LexicalClearEditorPlugin",["cr:2120"],(function(a,b,c,d,e,f){e.exports=b("cr:2120")}),null); __d("LexicalEditorRefPlugin",["cr:4949"],(function(a,b,c,d,e,f){e.exports=b("cr:4949")}),null); __d("LexicalErrorBoundary",["cr:2260"],(function(a,b,c,d,e,f){e.exports=b("cr:2260")}),null); __d("LexicalListPlugin",["cr:797"],(function(a,b,c,d,e,f){e.exports=b("cr:797")}),null); __d("LexicalMarkdown",["cr:2906"],(function(a,b,c,d,e,f){e.exports=b("cr:2906")}),null); __d("LexicalOnChangePlugin",["cr:2356"],(function(a,b,c,d,e,f){e.exports=b("cr:2356")}),null); __d("LexicalPlainTextPlugin",["cr:739"],(function(a,b,c,d,e,f){e.exports=b("cr:739")}),null); __d("MLCClickableLinkPlugin.react",["FBLogger","Lexical","LexicalComposerContext","LexicalLink","LexicalUtils","react"],(function(a,b,c,d,e,f,g){"use strict";var h,i=(h||d("react")).useEffect;function j(a){a=a;while(a!=null){var b=a.__lexicalEditor;if(b!=null)return b;a=a.parentNode}return null}function k(a,b){a=a.parentNode;while(a!=null){if(b(a))return a;a=a.parentNode}return null}var l=new Set(["http:","https:","mailto:","sms:","tel:","mailto:"]);function m(a){if(a==null)return;var b=a.getTarget();b!=="_blank"&&a.setTarget("_blank")}function a(a){a=a.newTab;var b=a===void 0?!0:a;a=d("LexicalComposerContext").useLexicalComposerContext();var e=a[0];i(function(){var a=function(a){var f=a.target,g=j(f);if(g===null)return;var h=null;g.update(function(){var a=d("Lexical").$getNearestNodeFromDOMNode(f);if(a!==null){var b=f instanceof HTMLAnchorElement?f:k(f,function(a){return a instanceof HTMLAnchorElement});b instanceof HTMLAnchorElement&&(h=b.href);if(h===null||h===""){b=d("LexicalUtils").$findMatchingParent(a,d("Lexical").$isElementNode);d("LexicalLink").$isLinkNode(b)&&(h=b.getURL())}}});if(h===null||h==="")return;try{g=new URL(h);l.has(g.protocol)||(h="about:blank",c("FBLogger")("MLC").warn("Blocked potentially malicious URL protocol: %s",g.protocol))}catch(a){c("FBLogger")("MLC").warn("Failed to parse URL")}g=e.getEditorState().read(d("Lexical").$getSelection);if(d("Lexical").$isRangeSelection(g)&&!g.isCollapsed()){a.preventDefault();return}a.preventDefault();window.open(h,b||a.metaKey||a.ctrlKey?"_blank":"_self")},f=function(b){b.button===1&&e.isEditable()&&a(b)};return e.registerRootListener(function(b,c){c!==null&&(c.removeEventListener("click",a),c.removeEventListener("mouseup",f)),b!==null&&(b.addEventListener("click",a),b.addEventListener("mouseup",f))})},[e,b]);i(function(){if(!b)return;var a=[];e.hasNodes([d("LexicalLink").LinkNode])&&a.push(e.registerNodeTransform(d("LexicalLink").LinkNode,m));e.hasNodes([d("LexicalLink").AutoLinkNode])&&a.push(e.registerNodeTransform(d("LexicalLink").AutoLinkNode,m));if(a.length===0)return;return d("LexicalUtils").mergeRegister.apply(void 0,a)},[e,b]);return null}g["default"]=a}),98); __d("LexicalContentEditable",["cr:2483"],(function(a,b,c,d,e,f){e.exports=b("cr:2483")}),null); __d("MLCContentEditableCommands",["Lexical"],(function(a,b,c,d,e,f,g){"use strict";a=d("Lexical").createCommand();g.MLC_EDITOR_ARIA_COMMAND=a}),98); __d("MLCContentEditable.react",["cx","Lexical","LexicalComposerContext","LexicalContentEditable","MLCContentEditableCommands","joinClasses","react","stylex"],(function(a,b,c,d,e,f,g,h){"use strict";var i=["ariaAutoComplete","ariaDescribedBy","ariaErrorMessage","ariaExpanded","ariaInvalid","ariaLabel","ariaLabelledBy","ariaMultiline","ariaOwnerID","ariaRequired","autoCapitalize","autoComplete","autoCorrect","data-testid","id","readOnly","ref","role","spellCheck","tabIndex","xstyle"],j,k,l=k||(k=d("react"));b=k;var m=b.useLayoutEffect,n=b.useState,o={editor:{color:"xzsf02u",overflowX:"xw2csxc",overflowY:"x1odjw0f",position:"x1n2onr6",tabSize:"x1hnll1o",":focus-visible_outline":"xpqswwc",$$css:!0}};function a(a){var b=a.ariaAutoComplete,e=a.ariaDescribedBy,f=a.ariaErrorMessage,g=a.ariaExpanded,h=a.ariaInvalid,k=a.ariaLabel,p=a.ariaLabelledBy,q=a.ariaMultiline,r=a.ariaOwnerID,s=a.ariaRequired,t=a.autoCapitalize,u=a.autoComplete,v=a.autoCorrect,w=a["data-testid"];w=w===void 0?"mlc-content-editable":w;w=a.id;var x=a.readOnly;x=x===void 0?!1:x;var y=a.ref,z=a.role;z=z===void 0?"textbox":z;var A=a.spellCheck;A=A===void 0?!0:A;var B=a.tabIndex,C=a.xstyle;a=babelHelpers.objectWithoutPropertiesLoose(a,i);var D=d("LexicalComposerContext").useLexicalComposerContext(),E=D[0];D=n(!x);x=D[0];var F=D[1];D=n(void 0);var G=D[0],H=D[1];D=n(void 0);var I=D[0],J=D[1];m(function(){F(E.isEditable());return E.registerEditableListener(F)},[E]);m(function(){return E.registerCommand(d("MLCContentEditableCommands").MLC_EDITOR_ARIA_COMMAND,function(a){Object.prototype.hasOwnProperty.call(a,"activeDescendantID")&&H(a.activeDescendantID);Object.prototype.hasOwnProperty.call(a,"controlsID")&&J(a.controlsID);return!1},d("Lexical").COMMAND_PRIORITY_EDITOR)},[E]);return l.jsx(d("LexicalContentEditable").ContentEditable,babelHelpers["extends"]({ariaActiveDescendant:G!=null?G:void 0,ariaAutoComplete:b,ariaControls:I!=null?I:void 0,ariaInvalid:h,ariaErrorMessage:f,ariaDescribedBy:e,ariaExpanded:g,ariaLabel:(D=k==null?void 0:k.toString())!=null?D:void 0,ariaLabelledBy:p,ariaMultiline:q,ariaOwns:r,ariaRequired:s!=null?s:void 0,autoCapitalize:t,autoComplete:u,autoCorrect:v,className:c("joinClasses")((j||(j=c("stylex")))(o.editor,C),x?"notranslate":""),id:w,"data-testid":void 0,role:z},a,{spellCheck:A,suppressContentEditableWarning:!0,tabIndex:B,ref:y}))}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),98); __d("MLCDebuggerKeyboardActivatedPlugin.react",["cr:3058","react","stylex"],(function(a,b,c,d,e,f,g){"use strict";var h,i,j=i||d("react");function a(a){a=a.xstyle;return b("cr:3058")?j.jsx("div",babelHelpers["extends"]({},(h||(h=c("stylex"))).props(a),{children:j.jsx(b("cr:3058"),{})})):null}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),98); __d("MLCEditablePlugin.react",["LexicalComposerContext","react"],(function(a,b,c,d,e,f,g){"use strict";var h,i=(h||d("react")).useEffect;function a(a){var b=a.isEditable;a=d("LexicalComposerContext").useLexicalComposerContext();var c=a[0];i(function(){return c.setEditable(b)},[c,b]);return null}g["default"]=a}),98); __d("LexicalHistoryPlugin",["cr:293"],(function(a,b,c,d,e,f){e.exports=b("cr:293")}),null); __d("MLCHistoryPlugin.react",["LexicalHistoryPlugin","react"],(function(a,b,c,d,e,f,g){"use strict";var h,i=h||(h=d("react"));c=h;e=c.createContext;var j=c.useContext,k=c.useMemo,l=e({historyState:void 0});function m(){return j(l)}function a(a){a=a.children;var b=k(function(){return{historyState:d("LexicalHistoryPlugin").createEmptyHistoryState()}},[]);return i.jsx(l.Provider,{value:b,children:a})}a.displayName=a.name+" [from "+f.id+"]";function b(){var a=m();a=a.historyState;return i.jsx(d("LexicalHistoryPlugin").HistoryPlugin,{externalHistoryState:a})}b.displayName=b.name+" [from "+f.id+"]";g.SharedHistoryContext=a;g.MLCHistoryPlugin=b}),98); __d("MLCNestingEnforcementPlugin.react",["FBLogger","Lexical","LexicalCode","LexicalComposerContext","LexicalList","LexicalRichText","LexicalUtils","react"],(function(a,b,c,d,e,f,g){"use strict";var h,i=(h||d("react")).useEffect,j=[d("Lexical").ParagraphNode,d("LexicalRichText").HeadingNode,d("LexicalRichText").QuoteNode,d("LexicalCode").CodeNode,d("LexicalList").ListNode];function a(a){a=a.topLevelNodes;var b=a===void 0?j:a;a=d("LexicalComposerContext").useLexicalComposerContext();var c=a[0];i(function(){return k(c,b)},[c,b]);return null}a.displayName=a.name+" [from "+f.id+"]";function k(a,b){var e=0,f=!1,g=function(b){var g=b.getParent();if(g==null||d("Lexical").$isRootOrShadowRoot(b.getParentOrThrow()))return;if(b.isInline()){c("FBLogger")("lexical").mustfix("Inline nodes should not be used as top level children nodes");return}if(d("LexicalList").$isListItemNode(b)&&d("LexicalList").$isListNode(g)||d("LexicalList").$isListNode(b)&&d("LexicalList").$isListItemNode(g))return;var h=e+250>Date.now();a.isEditable()&&(h?c("FBLogger")("lexical").mustfix('Unexpected node "%s" within "%s" after copy-pasting',b.getType(),g.getType()):f||(f=!0,c("FBLogger")("lexical").mustfix('Unexpected node "%s" within "%s"',b.getType(),g.getType())));if(d("LexicalList").$isListItemNode(g)){if(d("Lexical").$isElementNode(b)){for(h of b.getChildren())b.insertBefore(h);b.remove()}return}h=null;for(b of g.getChildren())if((d("Lexical").$isElementNode(b)||d("Lexical").$isDecoratorNode(b))&&!b.isInline()){if(d("Lexical").$isParagraphNode(b)&&!d("Lexical").$isParagraphNode(g)){var i=l(g);g.insertBefore(i);i.append.apply(i,b.getChildren());b.remove()}else g.insertBefore(b);h=null}else h==null&&(h=l(g),g.insertBefore(h)),h.append(b);g.remove()};return d("LexicalUtils").mergeRegister.apply(void 0,[a.registerCommand(d("Lexical").PASTE_COMMAND,function(){e=Date.now();return!1},d("Lexical").COMMAND_PRIORITY_HIGH)].concat(b.map(function(b){return a.registerNodeTransform(b,g)})))}function l(a){var b=a.__key;a.__key=void 0;var c=a.constructor.clone(a);a.__key=b;return c}g.MLCNestingEnforcementPlugin=a;g.registerNestingEnforcementPlugin=k}),98); __d("CometAIChatComposer.react",["Lexical","LexicalClearEditorPlugin","LexicalComposerContext","LexicalEditorRefPlugin","LexicalErrorBoundary","LexicalListPlugin","LexicalMarkdown","LexicalOnChangePlugin","LexicalPlainTextPlugin","MLCClickableLinkPlugin.react","MLCContentEditable.react","MLCDebuggerKeyboardActivatedPlugin.react","MLCEditablePlugin.react","MLCHistoryPlugin.react","MLCNestingEnforcementPlugin.react","react","react-compiler-runtime"],(function(a,b,c,d,e,f,g){"use strict";var h,i=h||(h=d("react"));b=h;var j=b.useEffect,k=b.useImperativeHandle,l=b.useRef,m={contentEditable:{paddingTop:"x1fng94r",paddingBottom:"x3ui2wh",paddingInlineStart:"x14nvz1",paddingInlineEnd:"x1kh0atj",paddingLeft:null,paddingRight:null,width:"xh8yej3",$$css:!0}};function a(a){var b=d("react-compiler-runtime").c(34),e=a.children,f=a.composerRef,g=a.onChange,h=a.onEnter,j=a.placeholderText;a=a.readOnly;j=j===void 0?"Type a message...":j;a=a===void 0?!1:a;var p=l(),q;b[0]===Symbol["for"]("react.memo_cache_sentinel")?(q=function(){return{getMarkdownValue:function(){var a;return(a=(a=p.current)==null?void 0:a.getEditorState().read(n))!=null?a:""},setMarkdownValue:function(a){var b;(b=p.current)==null||b.update(function(){return d("LexicalMarkdown").$convertFromMarkdownString(a,d("LexicalMarkdown").TRANSFORMERS)})}}},b[0]=q):q=b[0];k(f,q);b[1]===Symbol["for"]("react.memo_cache_sentinel")?(f={className:"x6s0dn4 x9f619 x78zum5 xdj266r xat24cr xvc5jky x11t971q x12af0ww x1n2onr6 xh8yej3"},b[1]=f):f=b[1];q=!a;var r;b[2]!==q?(r=i.jsx(c("MLCEditablePlugin.react"),{isEditable:q}),b[2]=q,b[3]=r):r=b[3];b[4]===Symbol["for"]("react.memo_cache_sentinel")?(q=i.jsx(d("LexicalEditorRefPlugin").EditorRefPlugin,{editorRef:p}),b[4]=q):q=b[4];var s;b[5]!==j?(s=j.toString(),b[5]=j,b[6]=s):s=b[6];var t;b[7]!==j?(t=j.toString(),b[7]=j,b[8]=t):t=b[8];var u;b[9]===Symbol["for"]("react.memo_cache_sentinel")?(u={className:"xve9zqi x1lq0bke x1id91fo x6s0dn4 xrqfkbs x78zum5 x1ngkj8j x1o0tod xat24cr x1us19tq x6ikm8r x10wlt62 x47corl x10l6tqk xlyipyv x13vifvy xuxw1ft"},b[9]=u):u=b[9];b[10]!==j?(u=i.jsx("div",babelHelpers["extends"]({},u,{children:j})),b[10]=j,b[11]=u):u=b[11];j=a?-1:0;var v;b[12]!==a||b[13]!==u||b[14]!==j||b[15]!==s||b[16]!==t?(v=i.jsx(d("LexicalPlainTextPlugin").PlainTextPlugin,{ErrorBoundary:d("LexicalErrorBoundary").LexicalErrorBoundary,contentEditable:i.jsx(c("MLCContentEditable.react"),{"aria-placeholder":s,ariaLabel:t,placeholder:u,readOnly:a,role:"textbox",tabIndex:j,xstyle:m.contentEditable})}),b[12]=a,b[13]=u,b[14]=j,b[15]=s,b[16]=t,b[17]=v):v=b[17];b[18]===Symbol["for"]("react.memo_cache_sentinel")?(a=i.jsx(d("MLCHistoryPlugin.react").MLCHistoryPlugin,{}),b[18]=a):a=b[18];b[19]!==g?(u=g&&i.jsx(d("LexicalOnChangePlugin").OnChangePlugin,{ignoreHistoryMergeTagChange:!0,ignoreSelectionChange:!0,onChange:g}),b[19]=g,b[20]=u):u=b[20];b[21]===Symbol["for"]("react.memo_cache_sentinel")?(j=i.jsx(d("MLCNestingEnforcementPlugin.react").MLCNestingEnforcementPlugin,{}),s=i.jsx(c("MLCClickableLinkPlugin.react"),{}),t=i.jsx(c("MLCDebuggerKeyboardActivatedPlugin.react"),{}),g=i.jsx(d("LexicalListPlugin").ListPlugin,{}),b[21]=j,b[22]=s,b[23]=t,b[24]=g):(j=b[21],s=b[22],t=b[23],g=b[24]);var w;b[25]!==h?(w=i.jsx(o,{onEnter:h}),b[25]=h,b[26]=w):w=b[26];b[27]===Symbol["for"]("react.memo_cache_sentinel")?(h=i.jsx(d("LexicalClearEditorPlugin").ClearEditorPlugin,{}),b[27]=h):h=b[27];b[28]!==e||b[29]!==v||b[30]!==u||b[31]!==w||b[32]!==r?(f=i.jsxs("div",babelHelpers["extends"]({},f,{children:[r,q,v,a,u,j,s,t,g,w,h,e]})),b[28]=e,b[29]=v,b[30]=u,b[31]=w,b[32]=r,b[33]=f):f=b[33];return f}function n(){return d("LexicalMarkdown").$convertToMarkdownString(d("LexicalMarkdown").TRANSFORMERS)}function o(a){var b=d("react-compiler-runtime").c(4),c=a.onEnter;a=d("LexicalComposerContext").useLexicalComposerContext();var e=a[0],f;b[0]!==e||b[1]!==c?(a=function(){return e.registerCommand(d("Lexical").KEY_ENTER_COMMAND,function(a){if(a!=null&&!a.shiftKey&&!a.altKey){a.preventDefault();a.stopPropagation();c==null||c();return!0}return!1},d("Lexical").COMMAND_PRIORITY_LOW)},f=[e,c],b[0]=e,b[1]=c,b[2]=a,b[3]=f):(a=b[2],f=b[3]);j(a,f);return null}g["default"]=a}),98); __d("BizAIWebAgentChatComposer.react",["CometAIChatComposer.react","Lexical","LexicalComposerContext","promiseDone","react","useBizAIWebAgentAppContext","useInitChatPlugin"],(function(a,b,c,d,e,f,g){"use strict";var h,i=h||(h=d("react")),j=h.useEffect;function a(a){var b=a.isDisabled,d=a.onBlur,e=a.onFocus,f=a.onSend;a=a.placeholderText;return i.jsx(c("CometAIChatComposer.react"),{onEnter:f,placeholderText:a,children:i.jsx(k,{isDisabled:b,onBlur:d,onFocus:e})})}a.displayName=a.name+" [from "+f.id+"]";function k(a){var b=a.isDisabled,e=a.onBlur,f=a.onFocus;a=d("LexicalComposerContext").useLexicalComposerContext();var g=a[0];a=d("useBizAIWebAgentAppContext").useBizAIWebAgentAppContext();var h=a.accessToken;a=a.pageID;a=c("useInitChatPlugin")(a,h);var i=a[0];j(function(){var a;g.setEditable(!b);var h=g.registerCommand((a=d("Lexical")).FOCUS_COMMAND,function(){f();c("promiseDone")(i());return!1},a.COMMAND_PRIORITY_LOW),j=g.registerCommand(a.BLUR_COMMAND,function(){e();return!1},a.COMMAND_PRIORITY_LOW);return function(){h(),j()}},[g,i,b,f,e]);return null}k.displayName=k.name+" [from "+f.id+"]";g["default"]=a}),98); __d("CometAIChatComposerBar.react",["react","react-compiler-runtime"],(function(a,b,c,d,e,f,g){"use strict";var h,i=h||d("react");function a(a){var b=d("react-compiler-runtime").c(12),c=a.addonEnd,e=a.addonStart,f=a.composer;a=a.containerRef;var g;b[0]===Symbol["for"]("react.memo_cache_sentinel")?(g={className:"x6s0dn4 x1l4qqt7 x78zum5 x5yr21d x1k9pr53 xoxz7dx x8k7bp0 xlqvq7y"},b[0]=g):g=b[0];var h;b[1]!==e?(h=e!=null&&i.jsx("div",{className:"x6s0dn4 x78zum5 x2lah0s",children:e}),b[1]=e,b[2]=h):h=b[2];b[3]!==f?(e=f!=null&&i.jsx("div",{className:"x1iyjqo2 x1igyflx x5yr21d xw2csxc x1odjw0f",children:f}),b[3]=f,b[4]=e):e=b[4];b[5]!==c?(f=c!=null&&i.jsx("div",{className:"x6s0dn4 x78zum5 x2lah0s",children:c}),b[5]=c,b[6]=f):f=b[6];b[7]!==a||b[8]!==h||b[9]!==e||b[10]!==f?(c=i.jsxs("div",babelHelpers["extends"]({},g,{ref:a,children:[h,e,f]})),b[7]=a,b[8]=h,b[9]=e,b[10]=f,b[11]=c):c=b[11];return c}g["default"]=a}),98); __d("LexicalText",["cr:2181"],(function(a,b,c,d,e,f){e.exports=b("cr:2181")}),null); __d("CometAIChatComposerUtils",["Lexical","LexicalComposerContext","LexicalText","react","react-compiler-runtime"],(function(a,b,c,d,e,f,g){"use strict";var h;(h||d("react")).useCallback;function i(a,b){b===void 0&&(b=d("LexicalText").$rootTextContent);var c=a.read(d("LexicalText").$isRootTextContentEmptyCurry(a.isComposing()));if(c)return!1;c=a.read(b);a.dispatchCommand(d("Lexical").CLEAR_EDITOR_COMMAND);return c}function a(a){var b=d("react-compiler-runtime").c(3),c=a===void 0?d("LexicalText").$rootTextContent:a;a=d("LexicalComposerContext").useLexicalComposerContext();var e=a[0];b[0]!==c||b[1]!==e?(a=function(){return i(e,c)},b[0]=c,b[1]=e,b[2]=a):a=b[2];return a}g.submit=i;g.useSubmit=a}),98); __d("CometAIChatVariants",[],(function(a,b,c,d,e,f,g){"use strict";a={body:{fontFamily:"xkko6bf",$$css:!0},playPauseButtonColor:{color:"xerylg8",$$css:!0},primaryButtonColor:{color:"x1d20s99",$$css:!0},primaryColor:{color:"x5das44",$$css:!0},secondaryButtonColor:{color:"xkmbu2v",$$css:!0},secondaryColor:{color:"xxdcdb7",$$css:!0},sendButtonColor:{color:"x11mbpn8",$$css:!0},videoSettingsButtonColor:{color:"xa6jc3z",$$css:!0}};b={fontSize:24,lineGap:12,xstyleConfig:{textType:a.body}};c={fontSize:24,lineGap:12,xstyleConfig:{textType:a.body}};d={xstyleConfig:{textColor:a.primaryColor}};e={xstyleConfig:{textColor:a.secondaryColor}};g.BaseTextVariantsStyles=a;g.BaseTextPrimaryVariants=b;g.BaseTextSecondaryVariants=c;g.BaseTextPrimaryColorVariants=d;g.BaseTextSecondaryColorVariants=e}),98); __d("CometAIButtonVariants",["BaseTextV2FontMetrics","CometAIChatVariants"],(function(a,b,c,d,e,f,g){"use strict";var h;a={addOnEnd:{paddingInlineEnd:"xb0skou",$$css:!0},addOnStart:{paddingInlineStart:"xm7ej31",$$css:!0},content:{borderStartStartRadius:"x108zi7b",borderStartEndRadius:"xptc2yw",borderEndEndRadius:"x9rfz56",borderEndStartRadius:"x1g96nva",height:"xtvhyu8",paddingInlineStart:"x1fusasz",paddingInlineEnd:"xlxrflx",paddingLeft:null,paddingRight:null,$$css:!0},hovered:{borderStartStartRadius:"x1jolsv8",borderStartEndRadius:"x59v7l6",borderEndEndRadius:"xlwld6e",borderEndStartRadius:"xq8c02f",$$css:!0},item:{marginInlineStart:"x1g62k5s",marginInlineEnd:"x7d8vv3",marginLeft:null,marginRight:null,$$css:!0},pressed:{borderStartStartRadius:"x87mwbd",borderStartEndRadius:"x1p3snn7",borderEndEndRadius:"xlfsog2",borderEndStartRadius:"xdez5g5",$$css:!0}};b={addOnEnd:{paddingInlineEnd:"xnwqfbb",$$css:!0},addOnStart:{paddingInlineStart:"xz4yzji",$$css:!0},content:{borderStartStartRadius:"x9hy6r0",borderStartEndRadius:"x6t5fea",borderEndEndRadius:"xxp0a1f",borderEndStartRadius:"x1tkrlma",height:"x10wiklo",paddingInlineStart:"xdqwkc4",paddingInlineEnd:"x1sk2mxn",paddingLeft:null,paddingRight:null,$$css:!0},hovered:{borderStartStartRadius:"xs7hhfa",borderStartEndRadius:"x1lzzlag",borderEndEndRadius:"xtllk9e",borderEndStartRadius:"x1jqz5qk",$$css:!0},item:{marginInlineStart:"x1fwptdy",marginInlineEnd:"x1kknhk0",marginLeft:null,marginRight:null,$$css:!0},pressed:{borderStartStartRadius:"xlfxcb",borderStartEndRadius:"xc4890o",borderEndEndRadius:"x1lxtoe0",borderEndStartRadius:"x445vtw",$$css:!0}};c={addOnEnd:{paddingInlineEnd:"x14gr3ur",$$css:!0},addOnStart:{paddingInlineStart:"x28gv8d",$$css:!0},content:{borderStartStartRadius:"x13nfzom",borderStartEndRadius:"xsa509x",borderEndEndRadius:"x194jh7n",borderEndStartRadius:"x1onxe6",height:"x1qiquib",paddingInlineStart:"x17ahkho",paddingInlineEnd:"xy099il",paddingLeft:null,paddingRight:null,$$css:!0},hovered:{borderStartStartRadius:"x2vt7gq",borderStartEndRadius:"xsqh2ya",borderEndEndRadius:"xoxnjqw",borderEndStartRadius:"x8vih16",$$css:!0},item:{marginInlineStart:"x17mv7dx",marginInlineEnd:"x1s9gvy",marginLeft:null,marginRight:null,$$css:!0},pressed:{borderStartStartRadius:"xs93c0a",borderStartEndRadius:"xpj3784",borderEndEndRadius:"x1sz3r17",borderEndStartRadius:"x1okay99",$$css:!0}};e={addOnEnd:{paddingInlineEnd:"x72v508",$$css:!0},addOnStart:{paddingInlineStart:"x5brn7t",$$css:!0},content:{borderStartStartRadius:"x1uzb2q3",borderStartEndRadius:"x1nyg9ey",borderEndEndRadius:"xe1gmz5",borderEndStartRadius:"xuamg6b",height:"x187hdy6",paddingInlineStart:"x29dmkm",paddingInlineEnd:"x1d9phlu",paddingLeft:null,paddingRight:null,width:"xsh8sk7",$$css:!0},item:{marginInlineStart:"xuu4fns",marginInlineEnd:"x1aig6c5",marginLeft:null,marginRight:null,$$css:!0},pressed:{borderStartStartRadius:"xb3gm2p",borderStartEndRadius:"xdayzol",borderEndEndRadius:"x1hh0hq",borderEndStartRadius:"x1066att",$$css:!0}};f={addOnEnd:{paddingInlineEnd:"x18qa0c7",$$css:!0},addOnStart:{paddingInlineStart:"xful44n",$$css:!0},content:{borderStartStartRadius:"xdggi31",borderStartEndRadius:"xb7ocj2",borderEndEndRadius:"x8hu4uu",borderEndStartRadius:"x1uxufkw",height:"x16strv0",minWidth:"x3w13vn",paddingInlineStart:"xt6ml21",paddingInlineEnd:"x8i91aj",paddingLeft:null,paddingRight:null,$$css:!0},item:{marginInlineStart:"x34u8v3",marginInlineEnd:"xbmw4dl",marginLeft:null,marginRight:null,$$css:!0},pressed:{borderStartStartRadius:"x1ggf85o",borderStartEndRadius:"x5bau9p",borderEndEndRadius:"x11opkkn",borderEndStartRadius:"xrulbe9",$$css:!0}};var i={addOnEnd:{paddingInlineEnd:"xseapn1",$$css:!0},addOnStart:{paddingInlineStart:"x16g4vc3",$$css:!0},content:{borderStartStartRadius:"x5jko73",borderStartEndRadius:"xfo7dsl",borderEndEndRadius:"x1vpyl65",borderEndStartRadius:"x10nvz52",height:"x12n1r7z",minWidth:"x3w13vn",paddingInlineStart:"xoror6y",paddingInlineEnd:"xfxq6rw",paddingLeft:null,paddingRight:null,$$css:!0},item:{marginInlineStart:"xqcssjp",marginInlineEnd:"xqyqqcc",marginLeft:null,marginRight:null,$$css:!0},pressed:{borderStartStartRadius:"x1jeqpfa",borderStartEndRadius:"x1k7mu0z",borderEndEndRadius:"x15aifbl",borderEndStartRadius:"xaagse0",$$css:!0}},j={addOnEnd:{paddingInlineEnd:"x3c854i",$$css:!0},addOnStart:{paddingInlineStart:"x12uyswo",$$css:!0},content:{borderStartStartRadius:"xdhalyx",borderStartEndRadius:"xz5op32",borderEndEndRadius:"x142p3g2",borderEndStartRadius:"xnbmvhc",height:"xn61ai7",paddingInlineStart:"xa2vt5b",paddingInlineEnd:"xuirq98",paddingLeft:null,paddingRight:null,width:"x1f5v11j",$$css:!0},item:{marginInlineStart:"xt5vcea",marginInlineEnd:"xyurkci",marginLeft:null,marginRight:null,$$css:!0},pressed:{borderStartStartRadius:"x1hm9171",borderStartEndRadius:"x1azzwyl",borderEndEndRadius:"x9n22bl",borderEndStartRadius:"x162ol0a",$$css:!0}},k={addOnEnd:{paddingInlineEnd:"x1ip57nd",$$css:!0},addOnStart:{paddingInlineStart:"x1pvuzmj",$$css:!0},content:{borderStartStartRadius:"xpna047",borderStartEndRadius:"xp5h1cc",borderEndEndRadius:"x5k6me1",borderEndStartRadius:"x8kuvrn",height:"x1omkq3i",paddingInlineStart:"xp22iqn",paddingInlineEnd:"xz72ba6",paddingLeft:null,paddingRight:null,width:"xm9pda9",$$css:!0},item:{marginInlineStart:"x1eqlchn",marginInlineEnd:"xfkbbzb",marginLeft:null,marginRight:null,$$css:!0},pressed:{borderStartStartRadius:"xh2agfi",borderStartEndRadius:"x1qbjoa2",borderEndEndRadius:"x138l9s6",borderEndStartRadius:"x19qcsdr",$$css:!0}},l={addOnEnd:{paddingInlineEnd:"xih0ywe",$$css:!0},addOnStart:{paddingInlineStart:"x1xvxrcr",$$css:!0},content:{borderStartStartRadius:"xbjgfjw",borderStartEndRadius:"x15l7ex0",borderEndEndRadius:"xja5gno",borderEndStartRadius:"xcdv3j8",height:"x16nmjk2",paddingInlineStart:"xbvvvbd",paddingInlineEnd:"x5clr02",paddingLeft:null,paddingRight:null,width:"x197xsv9",$$css:!0},item:{marginInlineStart:"xpf8pjz",marginInlineEnd:"x148ujzs",marginLeft:null,marginRight:null,$$css:!0},pressed:{borderStartStartRadius:"xbjgfjw",borderStartEndRadius:"x15l7ex0",borderEndEndRadius:"xja5gno",borderEndStartRadius:"xcdv3j8",$$css:!0}},m={addOnEnd:{paddingInlineEnd:"xyf7qg3",$$css:!0},addOnStart:{paddingInlineStart:"x4g4vxm",$$css:!0},content:{height:"x1lm9rsd",paddingInlineStart:"xybdag2",paddingInlineEnd:"x3yf6n4",paddingLeft:null,paddingRight:null,width:"xwe6cml",$$css:!0},item:{marginInlineStart:"x1x9zhme",marginInlineEnd:"x1c5nqec",marginLeft:null,marginRight:null,$$css:!0},pressed:{$$css:!0}},n={content:{backgroundColor:"xtrbpun",borderTopColor:"x1gqi9p1",borderInlineEndColor:"x1dsc2ce",borderBottomColor:"xl6ylev",borderInlineStartColor:"x1qw1ngv",borderTopWidth:"x10vi6e5",borderInlineEndWidth:"x1ynhf1w",borderBottomWidth:"x9fy1s2",borderInlineStartWidth:"x1kpd6le",$$css:!0},disabled:{backgroundColor:"x1o2n20e",opacity:"x4k2z10",$$css:!0},hovered:{backgroundColor:"x1hze5ug",$$css:!0},pressed:{borderTopColor:"x1990pw5",borderInlineEndColor:"xc9xjwp",borderBottomColor:"x19a67bw",borderInlineStartColor:"x3tnb9a",borderTopWidth:"xr6823d",borderInlineEndWidth:"xywy1s7",borderBottomWidth:"x12qqpnx",borderInlineStartWidth:"xhanu75",$$css:!0}},o={content:{backgroundColor:"x1spgr7v",borderTopColor:"x3qsp2c",borderInlineEndColor:"x1vzv01m",borderBottomColor:"x1lizwg9",borderInlineStartColor:"x123goe7",borderTopWidth:"x13kg7z0",borderInlineEndWidth:"xfrv6ys",borderBottomWidth:"x1no3b6y",borderInlineStartWidth:"xkpoxqq",$$css:!0},disabled:{backgroundColor:"xscowc0",opacity:"x10ddhkm",$$css:!0},hovered:{backgroundColor:"x1op5onb",$$css:!0},pressed:{borderTopColor:"xzwdkm5",borderInlineEndColor:"x1urcoq1",borderBottomColor:"x1tdm0oy",borderInlineStartColor:"xgiqz6i",borderTopWidth:"x19ff7fs",borderInlineEndWidth:"xkhk5db",borderBottomWidth:"x1qvp8qn",borderInlineStartWidth:"x1y04h7w",$$css:!0}},p={content:{backgroundColor:"xnbkjcv",borderTopColor:"x10tzozu",borderInlineEndColor:"x1vyq7va",borderBottomColor:"x1h5hqdz",borderInlineStartColor:"x1mp6p4w",borderTopWidth:"x7930yt",borderInlineEndWidth:"x1xr3w9z",borderBottomWidth:"xw68n31",borderInlineStartWidth:"x12p1vt6",$$css:!0},disabled:{backgroundColor:"x193l9cl",opacity:"xsmi43k",$$css:!0},hovered:{backgroundColor:"xcvf39y",borderStartStartRadius:"x1r0051x",borderStartEndRadius:"x1f34plj",borderEndEndRadius:"xw3gf2m",borderEndStartRadius:"xk4k5g3",$$css:!0},pressed:{borderTopColor:"x15549x6",borderInlineEndColor:"x1gwnf7h",borderBottomColor:"xh1w48e",borderInlineStartColor:"xarb415",borderTopWidth:"x1kgf7hy",borderInlineEndWidth:"x12ez8fk",borderBottomWidth:"xuvgo1k",borderInlineStartWidth:"xh4ty2",$$css:!0}},q={content:{backgroundColor:"x117dpqa",borderTopColor:"xtvki2d",borderInlineEndColor:"xkpv0jv",borderBottomColor:"x1wx45py",borderInlineStartColor:"xibauwu",borderTopWidth:"xldsiz1",borderInlineEndWidth:"x1n2606p",borderBottomWidth:"x1ple2b0",borderInlineStartWidth:"xxpmyqi",$$css:!0},disabled:{backgroundColor:"x1ulqrt1",opacity:"x1gpkmiw",$$css:!0},hovered:{backgroundColor:"x1h8izil",borderStartStartRadius:"x4ddqf4",borderStartEndRadius:"x1ka9dji",borderEndEndRadius:"x1nrnnz7",borderEndStartRadius:"xp81svi",$$css:!0},pressed:{borderTopColor:"x1572s9s",borderInlineEndColor:"xvpnlf8",borderBottomColor:"xf8dkhy",borderInlineStartColor:"x1v71tji",borderTopWidth:"xnoktoh",borderInlineEndWidth:"x1i0i12b",borderBottomWidth:"xv8lpz9",borderInlineStartWidth:"xot9f6x",$$css:!0}},r={content:{backgroundColor:"xlxlte3",borderTopColor:"xhil1aj",borderInlineEndColor:"x19pehws",borderBottomColor:"x6gxpzy",borderInlineStartColor:"x1idzf3r",borderTopWidth:"x48ir63",borderInlineEndWidth:"xvuj027",borderBottomWidth:"x1ydftrz",borderInlineStartWidth:"x1ti6lmy",$$css:!0},disabled:{backgroundColor:"x11w77tz",opacity:"x16eck56",$$css:!0},hovered:{backgroundColor:"xd6axf8",borderStartStartRadius:"xns13jb",borderStartEndRadius:"x1cqkcm9",borderEndEndRadius:"xc7vs4h",borderEndStartRadius:"xs2uvft",$$css:!0},pressed:{borderTopColor:"x7u3ihv",borderInlineEndColor:"x1mha4c",borderBottomColor:"x1e86boe",borderInlineStartColor:"x1ybp1bl",borderTopWidth:"xyawx13",borderInlineEndWidth:"xp1e1l9",borderBottomWidth:"x8shrn9",borderInlineStartWidth:"x1430m23",$$css:!0}},s={content:{backgroundColor:"xdij42p",borderTopColor:"x7u5hat",borderInlineEndColor:"x1gk21k7",borderBottomColor:"x1ghi0ee",borderInlineStartColor:"xl5lrq3",borderTopWidth:"xe4nanf",borderInlineEndWidth:"x72y2ba",borderBottomWidth:"x1eahvoz",borderInlineStartWidth:"x1fib9d2",$$css:!0},disabled:{backgroundColor:"x854z7i",opacity:"x1mvel06",$$css:!0},hovered:{backgroundColor:"xatcfe",borderStartStartRadius:"xvtyy9e",borderStartEndRadius:"x1396o6g",borderEndEndRadius:"xtab2f5",borderEndStartRadius:"x1x0zzpa",$$css:!0},pressed:{borderTopColor:"x164l1qe",borderInlineEndColor:"xr0z6kk",borderBottomColor:"xdkng60",borderInlineStartColor:"x1ixac2n",borderTopWidth:"x5ek9by",borderInlineEndWidth:"x1j07z7b",borderBottomWidth:"x1o5kxgy",borderInlineStartWidth:"xl203x7",$$css:!0}},t={content:{backgroundColor:"xt2rxqw",borderTopColor:"xpe53tf",borderInlineEndColor:"xvvlph3",borderBottomColor:"x195er5w",borderInlineStartColor:"x1wyibgp",borderTopWidth:"xbsgh1h",borderInlineEndWidth:"x193d0or",borderBottomWidth:"x1f4kjfo",borderInlineStartWidth:"x1qa9h0z",$$css:!0},disabled:{backgroundColor:"x10bk1yw",opacity:"xyymqsf",$$css:!0},hovered:{backgroundColor:"x1q4r9ba",borderStartStartRadius:"xliks0o",borderStartEndRadius:"x1rqsryp",borderEndEndRadius:"xtpu6wh",borderEndStartRadius:"x1277j8g",$$css:!0},pressed:{borderTopColor:"xrk5wly",borderInlineEndColor:"x1bpu3z",borderBottomColor:"xcbg5xz",borderInlineStartColor:"x1hiucq6",borderTopWidth:"x1cn3m4i",borderInlineEndWidth:"xbxxrqp",borderBottomWidth:"x1rrl0ly",borderInlineStartWidth:"xby2qot",$$css:!0}},u={content:{backgroundColor:"x1lqn97a",borderTopColor:"x1uh45mx",borderInlineEndColor:"xnikddz",borderBottomColor:"x6yn8gd",borderInlineStartColor:"x1ayn3f1",borderTopWidth:"x19gbjdr",borderInlineEndWidth:"x1qygnud",borderBottomWidth:"x1l8dtxv",borderInlineStartWidth:"x8lulg9",$$css:!0},disabled:{$$css:!0},hovered:{$$css:!0},pressed:{backgroundColor:"x1lqn97a",borderTopColor:"x1uh45mx",borderInlineEndColor:"xnikddz",borderBottomColor:"x6yn8gd",borderInlineStartColor:"x1ayn3f1",borderTopWidth:"x19gbjdr",borderInlineEndWidth:"x1qygnud",borderBottomWidth:"x1l8dtxv",borderInlineStartWidth:"x8lulg9",$$css:!0}},v={content:{borderTopColor:"x63it8z",borderInlineEndColor:"x3cdtq4",borderBottomColor:"xsr4ph7",borderInlineStartColor:"x1pu11xr",borderTopWidth:"xxq34pc",borderInlineEndWidth:"x135cb3m",borderBottomWidth:"x15659ox",borderInlineStartWidth:"x155l9ra",$$css:!0},disabled:{$$css:!0},hovered:{$$css:!0},pressed:{borderTopWidth:"xxq34pc",borderInlineEndWidth:"x135cb3m",borderBottomWidth:"x15659ox",borderInlineStartWidth:"x155l9ra",$$css:!0},pressedTransform:{transform:"xzhx7h5 xvruv2t",$$css:!0}},w={fontSize:16,lineGap:12,xstyleConfig:{textType:(h=d("CometAIChatVariants")).BaseTextVariantsStyles.body}},x={fontSize:16,lineGap:12,xstyleConfig:{textType:h.BaseTextVariantsStyles.body}},y={fontSize:16,lineGap:12,xstyleConfig:{textType:h.BaseTextVariantsStyles.body}},z={fontSize:16,lineGap:12,xstyleConfig:{textType:h.BaseTextVariantsStyles.body}},A={fontSize:16,lineGap:12,xstyleConfig:{textType:h.BaseTextVariantsStyles.body}},B={xstyleConfig:{textColor:h.BaseTextVariantsStyles.primaryButtonColor}},C={xstyleConfig:{textColor:h.BaseTextVariantsStyles.secondaryButtonColor}},D={xstyleConfig:{textColor:h.BaseTextVariantsStyles.sendButtonColor}},E={xstyleConfig:{textColor:h.BaseTextVariantsStyles.playPauseButtonColor}};h={xstyleConfig:{textColor:h.BaseTextVariantsStyles.videoSettingsButtonColor}};d={textProps:{colorVariant:B,fontMetrics:(B=d("BaseTextV2FontMetrics")).OptimisticDisplayFontMetrics,typeVariant:w},xstyleConfig:babelHelpers["extends"]({},n)};w={textProps:{colorVariant:C,fontMetrics:B.OptimisticDisplayFontMetrics,typeVariant:x},xstyleConfig:babelHelpers["extends"]({},o)};n={textProps:{colorVariant:D,fontMetrics:B.OptimisticDisplayFontMetrics,typeVariant:y},xstyleConfig:babelHelpers["extends"]({},p)};C={xstyleConfig:babelHelpers["extends"]({},q)};x={xstyleConfig:babelHelpers["extends"]({},r)};o={xstyleConfig:babelHelpers["extends"]({},s)};D={xstyleConfig:babelHelpers["extends"]({},t)};y={textProps:{colorVariant:E,fontMetrics:B.OptimisticDisplayFontMetrics,typeVariant:z},xstyleConfig:babelHelpers["extends"]({},u)};p={textProps:{colorVariant:h,fontMetrics:B.OptimisticDisplayFontMetrics,typeVariant:A},xstyleConfig:babelHelpers["extends"]({},v)};q={xstyleConfig:c};r={xstyleConfig:b};s={xstyleConfig:a};t={xstyleConfig:e};E={xstyleConfig:f};z={xstyleConfig:i};u={xstyleConfig:j};h={xstyleConfig:k};B={xstyleConfig:l};A={xstyleConfig:m};g.primaryVariant=d;g.secondaryVariant=w;g.sendButtonTypeVariant=n;g.callButtonTypeVariant=C;g.stopButtonTypeVariant=x;g.microphoneButtonTypeVariant=o;g.speakerButtonTypeVariant=D;g.playPauseButtonTypeVariant=y;g.videoSettingsToggleButtonTypeVariant=p;g.largeVariant=q;g.mediumVariant=r;g.smallVariant=s;g.sendButtonSizeVariant=t;g.callButtonSizeVariant=E;g.stopButtonSizeVariant=z;g.microphoneButtonSizeVariant=u;g.speakerButtonSizeVariant=h;g.playPauseSizeVariant=B;g.videoSettingsToggleButtonSizeVariant=A}),98); __d("CometAIButton.react",["BaseButtonV2.react","CometAIButtonVariants","react","react-compiler-runtime"],(function(a,b,c,d,e,f,g){"use strict";var h=["size","type"],i,j=i||d("react"),k={primary:d("CometAIButtonVariants").primaryVariant,secondary:d("CometAIButtonVariants").secondaryVariant},l={large:d("CometAIButtonVariants").largeVariant,medium:d("CometAIButtonVariants").mediumVariant,small:d("CometAIButtonVariants").smallVariant};function a(a){var b=d("react-compiler-runtime").c(8),e,f,g;b[0]!==a?(f=a.size,g=a.type,e=babelHelpers.objectWithoutPropertiesLoose(a,h),b[0]=a,b[1]=e,b[2]=f,b[3]=g):(e=b[1],f=b[2],g=b[3]);a=f===void 0?"medium":f;f=g===void 0?"primary":g;g=typeof a==="string"?l[a]:a;a=typeof f==="string"?k[f]:f;b[4]!==e||b[5]!==g||b[6]!==a?(f=j.jsx(c("BaseButtonV2.react"),babelHelpers["extends"]({},e,{sizeVariant:g,variant:a})),b[4]=e,b[5]=g,b[6]=a,b[7]=f):f=b[7];return f}g["default"]=a}),98); __d("FBNucleusArrowUpOutline20Icon.react",["react"],(function(a,b,c,d,e,f,g){"use strict";var h,i=h||d("react");function a(a){return i.jsxs("svg",babelHelpers["extends"]({viewBox:"0 0 20 20",width:"1em",height:"1em",fill:"currentColor"},a,{children:[a.title!=null&&i.jsx("title",{children:a.title}),a.children!=null&&i.jsx("defs",{children:a.children}),i.jsx("path",{d:"M3.22 8.22a.75.75 0 0 0 1.06 1.06l2.015-2.018c.98-.983 1.992-1.998 2.955-2.958V17.25a.75.75 0 1 0 1.5 0V4.31l2.983 2.983c.687.687 1.358 1.36 1.987 1.987a.75.75 0 1 0 1.06-1.06L14.8 6.238l-.006-.005a7432.899 7432.899 0 0 0-3.209-3.21 2.245 2.245 0 0 0-3.172-.003c-1.03 1.027-2.125 2.125-3.184 3.186-.695.697-1.375 1.38-2.01 2.014z"})]}))}a.displayName=a.name+" [from "+f.id+"]";a._size=20;a._isSVG=!0;b=a;g["default"]=b}),98); __d("CometAIChatSendButton.react",["CometAIBaseTheme.stylex","CometAIButton.react","CometAIButtonVariants","CometAIIcon.react","FBNucleusArrowUpOutline20Icon.react","react","react-compiler-runtime"],(function(a,b,c,d,e,f,g){"use strict";var h,i=h||d("react");function a(a){var b=d("react-compiler-runtime").c(3),e;b[0]===Symbol["for"]("react.memo_cache_sentinel")?(e=i.jsx(c("CometAIIcon.react"),{color:d("CometAIBaseTheme.stylex").baseThemeVars.sendButtonText,icon:c("FBNucleusArrowUpOutline20Icon.react"),size:20}),b[0]=e):e=b[0];b[1]!==a?(e=i.jsx(c("CometAIButton.react"),babelHelpers["extends"]({icon:e,size:d("CometAIButtonVariants").sendButtonSizeVariant,type:d("CometAIButtonVariants").sendButtonTypeVariant,widthMode:"constrained"},a)),b[1]=a,b[2]=e):e=b[2];return e}g["default"]=a}),98); __d("useLexicalIsTextContentEmpty",["cr:1022"],(function(a,b,c,d,e,f){e.exports=b("cr:1022")}),null); __d("BizAIWebAgentChatComposerBar.react",["fbt","BizAIWebAgentChatComposer.react","BizAIWebAgentConstants","BizAIWebAgentMessageUtils","BizAIWebAgentTypes.flow","BizAIWebAgentUserContext.react","CometAIChatComposerBar.react","CometAIChatComposerUtils","CometAIChatSendButton.react","LexicalComposerContext","react","useBizAIWebAgentAppContext","useBizAIWebAgentLogger","useBizAIWebAgentSharedState","useLexicalIsTextContentEmpty"],(function(a,b,c,d,e,f,g,h){"use strict";var i,j=i||(i=d("react")),k=i.useCallback;function a(a){var b=a.containerRef,e=a.isDisabled,f=a.onComposerBlur,g=a.onComposerFocus,i=a.onSendMessage;a=d("BizAIWebAgentUserContext.react").useBizAIWebAgentUserContext();a=a.url;a=c("useBizAIWebAgentLogger")({url:a});var l=a.logAnalyticsFalcoEvent;a=d("LexicalComposerContext").useLexicalComposerContext();var m=a[0];a=d("useLexicalIsTextContentEmpty").useLexicalIsTextContentEmpty(m,!0);var n=d("useBizAIWebAgentSharedState").useBizAIWebAgentSharedState();n=n.state.expansionState;var o=d("useBizAIWebAgentAppContext").useBizAIWebAgentAppContext(),p=o.composerPlaceholderText,q=o.isMobile;o=o.isSendingMessage;n=n===d("BizAIWebAgentTypes.flow").PluginExpansionState.COLLAPSED;var r=n||a||o,s=d("CometAIChatComposerUtils").useSubmit(),t=k(function(){var a=s();q&&window.requestAnimationFrame(function(){m.blur()});var b=d("BizAIWebAgentMessageUtils").makeOfflineThreadingID();i(a||"",b,"composer",null,!0);l({component:"composer_send_button",eventName:"click",eventType:"click",extraInfo:{traceId:b},surface:"thread_view"})},[s,q,i,l,m]);return j.jsx("div",babelHelpers["extends"]({},{0:{className:"x1xdjtnv x1n7pe9n x1gom1jb xazzw69 x18ize2o x1hm1naf x1ejj01b x4h3fod x13fuv20 x18b5jzi x1q0q8m5 x1t7ytsu x178xt8z x1lun4ml xso031l xpilrb4 x1yrsyyn x10b6aqq x25sj25 x1icxu4v"},1:{className:"x1xdjtnv x1n7pe9n x1gom1jb xazzw69 x18ize2o x1hm1naf x1ejj01b x4h3fod x13fuv20 x18b5jzi x1q0q8m5 x1t7ytsu x178xt8z x1lun4ml xso031l xpilrb4 x25sj25 x1icxu4v xexx8yu x18d9i69"}}[!!!a<<0],{children:j.jsx(c("CometAIChatComposerBar.react"),{addonEnd:n||r?null:j.jsx(c("CometAIChatSendButton.react"),{"aria-label":h._(/*BTDS*/"Send message to get help from Meta AI"),onPress:t}),composer:n?null:j.jsx(c("BizAIWebAgentChatComposer.react"),{isDisabled:e,onBlur:f,onFocus:g,onSend:o?void 0:t,placeholderText:p!=null?p:d("BizAIWebAgentConstants").COMPOSER_PLACEHOLDER_TEXT}),containerRef:b})}))}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),226); __d("BizAIWebAgentDisclaimer.react",["BizAIWebAgentImpressionWrapper","react","useBizAIWebAgentLogger"],(function(a,b,c,d,e,f,g){"use strict";var h,i=h||d("react");function a(a){var b=a.body,d=a.cta,e=a.dataTestid;e=a.isMobile;var f=e===void 0?!1:e,g=a.isWelcomeMessageDisclaimer;e=c("useBizAIWebAgentLogger")({});var h=e.logAnalyticsFalcoEvent;return i.jsx(c("BizAIWebAgentImpressionWrapper"),{onImpression:function(){h({component:"disclaimer_message",eventName:"impression",eventType:"impression",surface:"thread_view"})},children:function(a){return i.jsxs("div",babelHelpers["extends"]({ref:a,role:"status"},{0:{className:"xsycjck x1c7xvu7 x1pg5gke x1j61x8r xk50ysn x1yppyca xd4r4e8 x1y1aw1k xyri2b x18d9i69 x1c1uobl x2b8uid xh8yej3"},2:{className:"xsycjck x1c7xvu7 x1pg5gke x1j61x8r xk50ysn x1yppyca xd4r4e8 x2b8uid xh8yej3 x1yrsyyn xyri2b x10b6aqq x1c1uobl"},1:{className:"xsycjck x1c7xvu7 x1pg5gke x1j61x8r x1yppyca xd4r4e8 x2b8uid xh8yej3 xo1l8bm xexx8yu x1x5flf6 x1l90r2v xwn43p0"},3:{className:"xsycjck x1c7xvu7 x1pg5gke x1j61x8r x1yppyca xd4r4e8 x2b8uid xh8yej3 xo1l8bm xexx8yu x1x5flf6 x1l90r2v xwn43p0"}}[!!g<<1|!!f<<0],{"data-testid":void 0,children:[b," ",d!=null&&i.jsx("a",babelHelpers["extends"]({},{0:{className:"x1oyba65 x1s688f"},1:{className:"x1oyba65 xo1l8bm"}}[!!f<<0],{href:d.url,onClick:function(){return h({component:"disclosure_message_learn_more_button",eventName:"click",eventType:"click",surface:"thread_view"})},target:"_blank",children:d.text}))]}))}})}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),98); __d("FBNucleusGenAiStarFilled24Icon.react",["react"],(function(a,b,c,d,e,f,g){"use strict";var h,i=h||d("react");function a(a){return i.jsxs("svg",babelHelpers["extends"]({viewBox:"0 0 24 24",width:"1em",height:"1em",fill:"currentColor"},a,{children:[a.title!=null&&i.jsx("title",{children:a.title}),a.children!=null&&i.jsx("defs",{children:a.children}),i.jsx("path",{d:"M10.312 9.16c-.718-1.538-2.907-1.538-3.625 0l-.386.828a6.859 6.859 0 0 1-3.314 3.314l-.827.386c-1.539.718-1.539 2.906 0 3.624l.827.386A6.858 6.858 0 0 1 6.3 21.012l.386.827c.718 1.54 2.907 1.54 3.625 0l.386-.826a6.859 6.859 0 0 1 3.314-3.315l.827-.386c1.539-.718 1.539-2.906 0-3.624l-.827-.386a6.859 6.859 0 0 1-3.314-3.314l-.386-.827zM12 1a3 3 0 1 0 0 6 3 3 0 0 0 0-6zm8.94 12.053c1.487.399 2.848-.962 2.45-2.45l-1.346-5.018c-.398-1.488-2.257-1.986-3.346-.897l-3.674 3.674c-1.089 1.089-.59 2.948.897 3.346l5.019 1.345z"})]}))}a.displayName=a.name+" [from "+f.id+"]";a._size=24;a._isSVG=!0;b=a;g["default"]=b}),98); __d("BizAIWebAgentPluginPill.react",["CometSVGIcon.react","FBNucleusGenAiStarFilled24Icon.react","react"],(function(a,b,c,d,e,f,g){"use strict";var h,i=h||d("react");function a(a){var b=a.fullQuestion,d=a.isMobile;d=d===void 0?!1:d;var e=a.onClick;a=a.question;return i.jsxs("button",babelHelpers["extends"]({"aria-label":b!=null?b:a,"data-testid":void 0},{0:{className:"x6s0dn4 x1xnj5cr x120xd9q x1k4ovr2 xdfaw6k xefzod x972fbf x10w94by x1qhh985 x14e42zd xayvuls xfex06f x1ypdohk x78zum5 x1uxerd5 xz9dl7a xpdmqnj xsag5q8 x1g0dm76 xlkovuz xh8yej3 x1x1g5al"},1:{className:"x6s0dn4 x1xnj5cr x120xd9q x1k4ovr2 xdfaw6k xefzod xayvuls xfex06f x1ypdohk x78zum5 x1uxerd5 xz9dl7a xpdmqnj xsag5q8 x1g0dm76 xlkovuz xh8yej3 x1x1g5al x1q85c4o x1hohm31 x15gj8v5 x139c44z x197dmg0 x178xt8z x1lun4ml xso031l xpilrb4"}}[!!d<<0],{onClick:e,style:{"--secondary-icon":"rgba(111,111,111, 0.54)"},children:[i.jsx("span",{className:"x2lah0s",children:i.jsx(c("CometSVGIcon.react"),{color:"secondary",component:c("FBNucleusGenAiStarFilled24Icon.react"),size:16})}),i.jsx("span",{className:"x1iyjqo2 x6ikm8r x10wlt62 x1yc453h xlyipyv xuxw1ft",children:a})]}))}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),98); __d("VultureJSDeadComponent.react",["RecoverableViolationWithComponentStack.react","react"],(function(a,b,c,d,e,f,g){"use strict";var h=["name"],i,j=i||c("react"),k="VultureJSDeadComponent was hit. This should never happen as this component is intended to be used to replace dead components, as a stub. this being hit indicates that a component may have been cleaned up in error.";function a(a){var b=a.name;babelHelpers.objectWithoutPropertiesLoose(a,h);a=b!=null?k+" Expected component "+b:k;return j.jsx(c("RecoverableViolationWithComponentStack.react"),{errorMessage:a,projectName:"vulture_js"})}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),98); __d("WebScrollableAreaContext",["react"],(function(a,b,c,d,e,f,g){"use strict";var h;a=h||d("react");b=a.createContext([]);c=b;g["default"]=c}),98); __d("WebScrollableArea.react",["UserAgent","VultureJSDeadComponent.react","WebScrollableAreaContext","debounce","react","resize-observer-polyfill-deprecated","stylex","vulture"],(function(a,b,c,d,e,f,g){"use strict";var h=["ref"],i=["children","data-visualcompletion","expanding","hideScrollbar","horizontal","id","onScroll","scrollTriggerBottomRef","scrollTriggerTopRef","tabIndex","testid","vertical","withBottomShadow","withTopShadow","xstyle"],j,k,l=k||(k=d("react"));b=k;var m=b.useContext,n=b.useEffect,o=b.useImperativeHandle,p=b.useMemo,q=b.useRef,r=b.useState,s={"default":{MsOverflowStyle:"x2atdfe",MsScrollChaining:"xb57i2i",MsScrollRails:"x1q594ok",WebkitOverflowScrolling:"x5lxg6s",display:"x78zum5",flexDirection:"xdt5ytf",overflowX:"x6ikm8r",overflowY:"x10wlt62",position:"x1n2onr6",zIndex:"x1ja2u2z",$$css:!0},expanding:{flexBasis:"x1l7klhg",flexGrow:"x1iyjqo2",flexShrink:"xs83m0k",minHeight:"x2lwn1j",$$css:!0},hideScrollbar:{MsOverflowStyle:"x1pq812k",scrollbarWidth:"x1rohswg","::-webkit-scrollbar_height":"x1yqm8si","::-webkit-scrollbar_width":"xjx87ck",$$css:!0},horizontalAuto:{overflowX:"xw2csxc",overscrollBehaviorX:"x7p5m3t",$$css:!0},perspective:{perspective:"xx8ngbg",perspectiveOrigin:"xwo3gff",position:"x1n2onr6",transformStyle:"x1oyok0e",$$css:!0},verticalAuto:{overflowY:"x1odjw0f",overscrollBehaviorY:"x1e4zzel",$$css:!0}};function a(a){var b=a.ref;a=babelHelpers.objectWithoutPropertiesLoose(a,h);var d=a.children,e=a["data-visualcompletion"],f=a.expanding;f=f===void 0?!1:f;var g=a.hideScrollbar,k=g===void 0?!1:g,w=a.horizontal;g=a.id;var x=a.onScroll,y=a.scrollTriggerBottomRef,z=a.scrollTriggerTopRef,A=a.tabIndex,B=a.testid,C=a.vertical;B=a.withBottomShadow;B=B===void 0?!1:B;var D=a.withTopShadow;D=D===void 0?!1:D;var E=a.xstyle;a=babelHelpers.objectWithoutPropertiesLoose(a,i);var F=p(function(){return!C||k||w||v()},[C,k,w]),G=r(!1),H=G[0],I=G[1];G=r(!1);var J=G[0],K=G[1];G=r(!1);var L=G[0],M=G[1],N=m(c("WebScrollableAreaContext")),O=q(null),P=q(null),Q=q(null),R=q(null),S=q(null),T=q(0);n(function(){if(F)return;var a=O.current,b=P.current,d=Q.current,e=R.current;if(a==null||b==null||d==null||e==null)return;var f=0,g=0,h=function(){e.style.display="none";d.style.display="none";var a=b.getBoundingClientRect(),c=Math.ceil(a.height);g=a.top;T.current=b.scrollHeight;a=T.current;a!==b.scrollHeight&&(a=b.scrollHeight);f=Math.pow(c,2)/a;var h=(c-f)/(a-c);d.style.right="0px";e.style.right="0px";d.style.height=a<=c?"0px":f+"px";e.style.height=a+"px";d.style.transform=["matrix3d(\n 1,0,0,0,\n 0,1,0,0,\n 0,0,1,0,\n 0,0,0,-1)","scale("+1/h+")","translateZ("+(1-1/h)+"px)","translateZ(-2px)"].join(" ");d.style.display="block";e.style.display=a<=c?"none":"block"},i=function(a){a.preventDefault();var c=a.clientY;a=b.clientHeight;var d=b.scrollTop;M(!0);var h=T.current/a;a=d/h;var i=function(a){a.preventDefault(),a.stopPropagation(),a.stopImmediatePropagation()};if(cg+a+f){var j=c0&&h({event:"ai_chat_plugin_faq_pills_impression_v2",eventState:"success",logMessage:"FAQ pills impression in MWP V2"}),g({component:"faq_pill_list",eventName:"impression",eventType:"impression",extraInfo:{faqCount:b.length.toString()},surface:"thread_view"})};return i.jsx(c("BizAIWebAgentImpressionWrapper"),{onImpression:a,children:function(a){return i.jsx(c("BizAIWebAgentPluginPillList.react"),{containerRef:a,faqs:b,isMobile:e,onClick:f})}})}j.displayName=j.name+" [from "+f.id+"]";g["default"]=a}),98); __d("BizAIWebAgentProactiveMessagePill.react",["BizAIWebAgentImpressionWrapper","BizAIWebAgentUserContext.react","react","useBizAIWebAgentAppContext","useBizAIWebAgentLogger","useBizAIWebAgentSharedState"],(function(a,b,c,d,e,f,g){"use strict";var h,i=h||(h=d("react"));b=h;var j=b.useCallback,k=b.useEffect,l=b.useRef,m=b.useState;function a(a){var b=a.messageText;a=d("useBizAIWebAgentSharedState").useBizAIWebAgentSharedState();var e=a.fullyExpandPlugin;a=d("useBizAIWebAgentAppContext").useBizAIWebAgentAppContext();var f=a.setIsActivatedOnce;a=m(!1);var g=a[0],h=a[1],n=l(null),o=l(null);a=d("BizAIWebAgentUserContext.react").useBizAIWebAgentUserContext();a=a.url;a=c("useBizAIWebAgentLogger")({url:a});var p=a.logAnalyticsFalcoEvent;k(function(){var a=function(){if(n.current&&o.current){var a=n.current.scrollWidth,b=o.current.clientWidth-24;h(a>b)}};a();window.addEventListener("resize",a);return function(){return window.removeEventListener("resize",a)}},[b]);a=j(function(){p({component:"proactive_pill",eventName:"impression",eventType:"impression",surface:"facade"})},[p]);return i.jsx(c("BizAIWebAgentImpressionWrapper"),{onImpression:a,children:function(a){return i.jsxs("div",{className:"x1y1aw1k xf159sx xwib8y2 xmzvs34",ref:a,children:[i.jsx("button",{className:"x6s0dn4 xwtmsiy x1ua1ujl xksyday xshg46c xlej2ay x972fbf x10w94by x1qhh985 x14e42zd xayvuls xfex06f x1ypdohk x78zum5 x1uxerd5 xvc5jky x11t971q x6ikm8r x10wlt62 xz9dl7a xpdmqnj xsag5q8 x1g0dm76 xlkovuz xuxw1ft xh8yej3 x1x1g5al","data-testid":void 0,onClick:function(){f(!0),e(),p({component:"proactive_pill",eventName:"click",eventType:"click",surface:"facade"})},ref:o,style:{"--secondary-icon":"rgba(111,111,111, 0.54)"},children:i.jsx("span",{ref:n,style:g?{animation:"scroll-text "+Math.max(b.length*.1,3)+"s linear infinite",display:"inline-block",whiteSpace:"nowrap"}:{whiteSpace:"nowrap"},children:g?b+" "+b:b})}),g&&i.jsx("style",{children:"\n @keyframes scroll-text {\n 0% {\n transform: translateX(0);\n }\n 100% {\n transform: translateX(-50%);\n }\n }\n "})]})}})}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),98); __d("BizAIWebAgentProfilePicture.react",["BizAIWebAgentConstants","Image.react","react"],(function(a,b,c,d,e,f,g){"use strict";var h,i=h||d("react");b=0;var j=d("BizAIWebAgentConstants").COMPOSER_ASSET_SIZE+b*2;function a(a){a=a.profilePicUrl;return i.jsx(c("Image.react"),{className:"xoo0cl7 x5spice x1plq8au x1f8ewjj x1c9tyrk xeusxvb x1pahc9y x1ertn4p x13fuv20 x18b5jzi x1q0q8m5 x1t7ytsu x178xt8z x1lun4ml xso031l xpilrb4 x9f619 xexx8yu xyri2b x18d9i69 x1c1uobl",height:j,src:a,width:j})}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),98); __d("BizAIWebAgentProfilePictureButton.react",["BizAIWebAgentConstants","BizAIWebAgentImpressionWrapper","BizAIWebAgentProfilePicture.react","BizAIWebAgentTypes.flow","BizAIWebAgentUserContext.react","react","useBizAIWebAgentAppContext","useBizAIWebAgentLogger","useBizAIWebAgentSharedState"],(function(a,b,c,d,e,f,g){"use strict";var h,i=h||(h=d("react")),j=h.useCallback;function a(a){var b=a.isDisabled,e=b===void 0?!1:b,f=a.onClick,g=a.profilePicUrl;b=d("useBizAIWebAgentAppContext").useBizAIWebAgentAppContext();var h=b.shouldUseIconOnlyCompressedState;a=d("useBizAIWebAgentSharedState").useBizAIWebAgentSharedState();var k=a.state.expansionState;b=d("BizAIWebAgentUserContext.react").useBizAIWebAgentUserContext();a=b.url;b=c("useBizAIWebAgentLogger")({url:a});var l=b.logAnalyticsFalcoEvent,m=j(function(){f==null||f();var a=h&&k===d("BizAIWebAgentTypes.flow").PluginExpansionState.COLLAPSED?"profile_picture_sparkle":"profile_picture_brand";l({component:a,eventName:"click",eventType:"click",surface:"facade"})},[f,h,k,l]);a=j(function(){k===d("BizAIWebAgentTypes.flow").PluginExpansionState.COLLAPSED&&h?l({component:"profile_picture_sparkle",eventName:"impression",eventType:"impression",surface:"facade"}):k!==d("BizAIWebAgentTypes.flow").PluginExpansionState.FULLY_EXPANDED&&l({component:"profile_picture_brand",eventName:"impression",eventType:"impression",surface:"facade"})},[h,k,l]);return i.jsx(c("BizAIWebAgentImpressionWrapper"),{onImpression:a,children:function(a){return i.jsx("button",babelHelpers["extends"]({"aria-label":d("BizAIWebAgentConstants").COMPOSER_PLACEHOLDER_TEXT_MOBILE,disabled:e,ref:a},{0:{className:"x1uwsscb x1ypdohk x78zum5 xdt5ytf xl56j7k x1n2onr6"},1:{className:"x1uwsscb x78zum5 xdt5ytf xl56j7k x1n2onr6 x1sqbtui"}}[!!e<<0],{onClick:m,children:i.jsx(c("BizAIWebAgentProfilePicture.react"),{profilePicUrl:g})}))}})}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),98); __d("CrossFilled16.svg.react",["react"],(function(a,b,c,d,e,f,g){"use strict";var h,i=h||d("react");function a(a){return i.jsxs("svg",babelHelpers["extends"]({viewBox:"0 0 16 16",width:"1em",height:"1em",fill:"currentColor"},a,{children:[a.title!=null&&i.jsx("title",{children:a.title}),a.children!=null&&i.jsx("defs",{children:a.children}),i.jsx("g",{fillRule:"evenodd",transform:"translate(-448 -544)",children:i.jsxs("g",{fillRule:"nonzero",children:[i.jsx("path",{d:"m96.803 388.364 10.333 10.333a.75.75 0 0 0 1.06-1.06l-10.332-10.334a.75.75 0 0 0-1.06 1.06z",transform:"translate(353.5 159)"}),i.jsx("path",{d:"m107.136 387.303-10.333 10.333a.75.75 0 1 0 1.06 1.06l10.334-10.332a.75.75 0 0 0-1.06-1.06z",transform:"translate(353.5 159)"})]})})]}))}a.displayName=a.name+" [from "+f.id+"]";a._isSVG=!0;b=a;g["default"]=b}),98); __d("BizAIWebAgentFacadeComposer.react",["fbt","BizAIWebAgentConstants","BizAIWebAgentImpressionWrapper","BizAIWebAgentPluginDismissalUtils","BizAIWebAgentPluginPill.react","BizAIWebAgentProactiveMessagePill.react","BizAIWebAgentProfilePictureButton.react","BizAIWebAgentTypes.flow","BizAIWebAgentUserContext.react","CometAIButton.react","CometAIButtonVariants","CometAIChatComposerBar.react","CometAIIcon.react","CrossFilled16.svg.react","justknobx","react","useBizAIWebAgentAppContext","useBizAIWebAgentLogger","useBizAIWebAgentSharedState"],(function(a,b,c,d,e,f,g,h){"use strict";var i,j=i||(i=d("react"));b=i;var k=b.useEffect,l=b.useMemo;e={content:{backgroundColor:"x1spgr7v",borderStartStartRadius:"x1uzb2q3",borderStartEndRadius:"x1nyg9ey",borderEndEndRadius:"xe1gmz5",borderEndStartRadius:"xuamg6b",borderTopWidth:"x972fbf",borderInlineEndWidth:"x10w94by",borderBottomWidth:"x1qhh985",borderInlineStartWidth:"x14e42zd",$$css:!0},disabled:{backgroundColor:"xscowc0",opacity:"x10ddhkm",$$css:!0},hovered:{backgroundColor:"x1op5onb",borderStartStartRadius:"x1uzb2q3",borderStartEndRadius:"x1nyg9ey",borderEndEndRadius:"xe1gmz5",borderEndStartRadius:"xuamg6b",$$css:!0},pressed:{borderTopColor:"xzwdkm5",borderInlineEndColor:"x1urcoq1",borderBottomColor:"x1tdm0oy",borderInlineStartColor:"xgiqz6i",borderStartStartRadius:"x1uzb2q3",borderStartEndRadius:"x1nyg9ey",borderEndEndRadius:"xe1gmz5",borderEndStartRadius:"xuamg6b",borderTopWidth:"x19ff7fs",borderInlineEndWidth:"xkhk5db",borderBottomWidth:"x1qvp8qn",borderInlineStartWidth:"x1y04h7w",$$css:!0}};var m={cometButtonStyle:{backgroundColor:"x15wezs5",$$css:!0},composerIcon:{color:"xkmbu2v",height:"xlup9mm",width:"x1kky2od",$$css:!0}},n=babelHelpers["extends"]({},d("CometAIButtonVariants").secondaryVariant,{xstyleConfig:e}),o=c("justknobx")._("1916");function a(a){var b=a.containerRef,e=a.iceBreakerText,f=a.onComposerClick,g=a.onIceBreakerClick,i=a.onProfileClick;a=a.profilePicUrl;var p=d("useBizAIWebAgentSharedState").useBizAIWebAgentSharedState(),q=p.collapsePlugin;p=p.state;var r=p.expansionState,s=p.proactiveMessageValue;p=d("useBizAIWebAgentAppContext").useBizAIWebAgentAppContext();var t=p.autoCollapseDurationMs,u=p.composerPlaceholderText,v=p.isMobile;p=d("BizAIWebAgentUserContext.react").useBizAIWebAgentUserContext();p=p.url;p=c("useBizAIWebAgentLogger")({url:p});var w=p.logAnalyticsFalcoEvent,x=r===d("BizAIWebAgentTypes.flow").PluginExpansionState.PARTIALLY_EXPANDED,y=u!=null?u:d("BizAIWebAgentConstants").COMPOSER_PLACEHOLDER_TEXT_MOBILE,z=u!=null?u:d("BizAIWebAgentConstants").COMPOSER_PLACEHOLDER_TEXT;k(function(){if(v&&x){var a=window.setTimeout(function(){q()},t);return function(){return window.clearTimeout(a)}}},[t,q,x,v]);p=l(function(){if(x&&!o)return j.jsxs("button",{className:"x1uwsscb x1ypdohk x78zum5 xdt5ytf xl56j7k x1n2onr6 xuxw1ft",onClick:g,children:[j.jsx("h1",{className:"xrls24z xve9zqi x1pg5gke x1fcty0u xdj266r x14z9mp xat24cr x1lziwak xexx8yu xyri2b x18d9i69 x1c1uobl",children:z}),j.jsx("h2",{className:"x1uwsscb xve9zqi x1ngkj8j x1lq0bke x1ud3kw6 xdj266r x14z9mp xat24cr x1lziwak xexx8yu xyri2b x18d9i69 x1c1uobl xlyipyv xuxw1ft",children:e})]});return x&&o?j.jsx(c("BizAIWebAgentImpressionWrapper"),{onImpression:function(){w({component:"composer_button",eventName:"impression",eventType:"impression",surface:"facade"})},children:function(a){return j.jsx("button",{className:"x1uwsscb x1ypdohk x78zum5 xdt5ytf xl56j7k x1n2onr6 xuxw1ft",onClick:f,ref:a,children:j.jsx("h1",babelHelpers["extends"]({},{0:{className:"xrls24z xve9zqi x1ngkj8j x1fcty0u xdj266r x14z9mp xat24cr x1lziwak xexx8yu xyri2b x18d9i69 x1c1uobl"},1:{className:"xve9zqi x1ngkj8j x1fcty0u xdj266r x14z9mp xat24cr x1lziwak xexx8yu xyri2b x18d9i69 x1c1uobl x1mqxbix"}}[!!(s!=null)<<0],{children:s!=null?s:y}))})}}):null},[z,y,e,x,w,f,g,s]);r=l(function(){return!x?null:j.jsx(c("BizAIWebAgentImpressionWrapper"),{onImpression:function(){w({component:"composer_button",eventName:"impression",eventType:"impression",surface:"facade"})},children:function(a){return j.jsx("button",{className:"x1uwsscb x1ypdohk x78zum5 xdt5ytf xl56j7k x1n2onr6 xuxw1ft","data-testid":void 0,onClick:f,ref:a,children:j.jsx("h1",{className:"xrls24z xve9zqi x1fcty0u xdj266r x14z9mp xat24cr x1lziwak xexx8yu x18d9i69 x1jchvi3 xcicffo xuxw1ft",children:z})})}})},[z,x,w,f]);return j.jsxs("div",{className:"x1yrsyyn x10b6aqq x25sj25 x1icxu4v",children:[!v&&x&&j.jsx("div",{className:"xn3w4p2 x1k70j0n xzueoph x6ikm8r x10wlt62 x25sj25 x1icxu4v x1n2onr6 xh8yej3",children:j.jsx("div",{className:"xfjzax6 xxkxylk x1u6ievf x1dwmuk9 xa3vuyk x1ey2m1c x1n2onr6",children:s!=null?j.jsx(c("BizAIWebAgentProactiveMessagePill.react"),{messageText:s}):j.jsx("div",{className:"xj9uezu xpf9j6y",children:j.jsx(c("BizAIWebAgentPluginPill.react"),{onClick:g,question:e})})})}),j.jsx("div",babelHelpers["extends"]({},{0:{},1:{className:"x15bq1sd x1u6ievf xqcmdr3 xa3vuyk"}}[!!v<<0],{children:j.jsx(c("CometAIChatComposerBar.react"),{addonEnd:x?j.jsx(c("BizAIWebAgentImpressionWrapper"),{onImpression:function(){w({component:"close_button",eventName:"impression",eventType:"impression",surface:"facade"})},children:function(a){return j.jsx(c("CometAIButton.react"),{"aria-label":h._(/*BTDS*/"Close"),icon:j.jsx(c("CometAIIcon.react"),{icon:c("CrossFilled16.svg.react"),xstyle:m.composerIcon}),onPress:function(){d("BizAIWebAgentPluginDismissalUtils").setPluginDismissed(),q(),w({component:"close_button",eventName:"click",eventType:"click",surface:"facade"})},ref:a,size:d("CometAIButtonVariants").sendButtonSizeVariant,type:n,widthMode:"constrained",xstyle:m.cometButtonStyle})}}):null,addonStart:j.jsx(c("BizAIWebAgentProfilePictureButton.react"),{onClick:i,profilePicUrl:a}),composer:v?p:r,containerRef:b})}))]})}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),226); __d("BizAIWebAgentPluginCloseButton.react",["fbt","BizAIWebAgent.stylex","CometSVGIcon.react","CrossFilled16.svg.react","react"],(function(a,b,c,d,e,f,g,h){"use strict";var i,j=i||(i=d("react"));b=i;var k=b.useEffect,l=b.useState;function a(a){var b=a.backgroundColor;b=b===void 0?d("BizAIWebAgent.stylex").BizAIWebAgentDesktopTokens.buttonPrimaryBackgroundColor:b;a=a.onClick;var e=l(-1),f=e[0],g=e[1];k(function(){g(0)},[]);return j.jsx("button",{className:"x6s0dn4 x1uwsscb x74ypmw x1c9tyrk xeusxvb x1pahc9y x1ertn4p x78zum5 x10w6t97 xl56j7k x1td3qas","aria-label":h._(/*BTDS*/"Close chat window"),onClick:a,style:{backgroundColor:b},tabIndex:f,children:j.jsx(c("CometSVGIcon.react"),{color:"primary",component:c("CrossFilled16.svg.react"),size:16})})}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),226); __d("BizAIWebAgentThreadViewHeaderTestingText.react",["fbt","react","useBizWebCometBizAIMWPSandboxContext.hook"],(function(a,b,c,d,e,f,g,h){"use strict";var i,j=i||d("react");function a(){var a=c("useBizWebCometBizAIMWPSandboxContext.hook")();return j.jsxs("div",{className:"x6s0dn4 x78zum5 xdt5ytf xl56j7k x1hq5gj4 xq1n1xh x1o6q14k x1sy10c2",children:[j.jsx("h3",{className:"x1c3i2sq x1xlr1w8 x2b8uid",children:h._(/*BTDS*/"Test chat")}),j.jsx("div",{className:"x1f6kntn x2b8uid",children:(a==null?void 0:a.isInOnboardingV3Stepper)===!0?h._(/*BTDS*/"Try chatting with your AI as if you were a customer. Click {=m1} on one of the prompts or type a question directly in the chat.",[h._implicitParam("=m1",j.jsx("strong",{children:h._(/*BTDS*/"Test")}))]):h._(/*BTDS*/"Try chatting with your AI as if you were a customer. Select a scenario or type in a question to see a response.")})]})}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),226); __d("BizAIWebAgentThreadViewHeader.react",["BizAIWebAgentPluginCloseButton.react","BizAIWebAgentProfileImageWithFallback.react","BizAIWebAgentThreadViewHeaderTestingText.react","react"],(function(a,b,c,d,e,f,g){"use strict";var h,i=h||d("react");function a(a){var b=a.hideCloseButton,d=a.hostSiteUrl,e=a.isCollapsed,f=a.isMBSSandbox,g=a.onClose,h=a.profilePicUrl;a=a.showTestingInstructions;var j=e?32:84,k=e?32:84;d=(d=d==null?void 0:d.includes("ogee.com"))!=null?d:!1;return i.jsxs("div",{className:"x12peec7 x9f619 xz9dl7a xpdmqnj xsag5q8 x1g0dm76 xh8yej3","data-testid":void 0,children:[i.jsx("div",babelHelpers["extends"]({},{0:{className:"x6s0dn4 x78zum5 xl56j7k x21xpn4"},2:{className:"x6s0dn4 x78zum5 xl56j7k x21xpn4 xej9ukj"},1:{className:"x6s0dn4 x78zum5 xl56j7k x21xpn4 xyamay9 xyri2b x1l90r2v x1c1uobl"},3:{className:"x6s0dn4 x78zum5 xl56j7k x21xpn4 xyamay9 xyri2b x1l90r2v x1c1uobl"}}[!!!e<<1|!!(f===!0)<<0],{children:h!=null&&i.jsx(c("BizAIWebAgentProfileImageWithFallback.react"),{className:{0:"x1axxidk x198npf8 xhwk646 x1thyah7 x1c9tyrk xeusxvb x1pahc9y x1ertn4p x13fuv20 x18b5jzi x1q0q8m5 x1t7ytsu x178xt8z x1lun4ml xso031l xpilrb4 x9f619",1:"x1axxidk x198npf8 xhwk646 x1thyah7 x1c9tyrk xeusxvb x1pahc9y x1ertn4p x13fuv20 x18b5jzi x1q0q8m5 x1t7ytsu x178xt8z x1lun4ml xso031l xpilrb4 x9f619 x1y1aw1k xf159sx xwib8y2 xmzvs34"}[!!d<<0],height:j,src:h,width:k})})),!e&&a===!0&&i.jsx(c("BizAIWebAgentThreadViewHeaderTestingText.react"),{}),b!==!0&&i.jsx("div",{className:"x1ypdohk x10l6tqk xlftelb x1tk7jg1",children:i.jsx(c("BizAIWebAgentPluginCloseButton.react"),{onClick:g})})]})}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),98); /** * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. * * * @fullSyntaxTransform * @es6-async_DO_NOT_USE * @generated SignedSource<<5715d55ea7e999a1b3909eba13557eb1>> * * @nolint * @oncall lexical_web_text_editor * @preserve-invariant-messages * @preserve-whitespace * @preventMunge */__d("LexicalClearEditorPlugin.prod",["LexicalComposerContext","LexicalExtension","react"],(function $module_LexicalClearEditorPlugin_prod(global,require,requireDynamic,requireLazy,module,exports){ "use strict";var _require_closure_react;var o=_require_closure_react||(_require_closure_react=require("react"));var r="undefined"!=typeof window&&void 0!==window.document&&void 0!==window.document.createElement?o.useLayoutEffect:o.useEffect;exports.ClearEditorPlugin=function(_ref){var o=_ref.onClear;var _t$useLexicalComposer=require("LexicalComposerContext").useLexicalComposerContext(),n=_t$useLexicalComposer[0];return r(function(){return require("LexicalExtension").registerClearEditor(n,o);},[n,o]),null;};}),null); /** * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. * * * @fullSyntaxTransform * @es6-async_DO_NOT_USE * @generated SignedSource<<4ba13524308c1dd46ac5b44adf0aeab2>> * * @nolint * @oncall lexical_web_text_editor * @preserve-invariant-messages * @preserve-whitespace * @preventMunge */__d("LexicalContentEditable.prod",["LexicalComposerContext","LexicalText","LexicalUtils","react"],(function $module_LexicalContentEditable_prod(global,require,requireDynamic,requireLazy,module,exports){ "use strict";var _excluded=["editor","ariaActiveDescendant","ariaAutoComplete","ariaControls","ariaDescribedBy","ariaErrorMessage","ariaExpanded","ariaInvalid","ariaLabel","ariaLabelledBy","ariaMultiline","ariaOwns","ariaRequired","autoCapitalize","className","id","role","spellCheck","style","tabIndex","data-testid"],_excluded2=["placeholder"];var _require_closure_react;var t=_require_closure_react||(_require_closure_react=require("react")),a=_require_closure_react;var n="undefined"!=typeof window&&void 0!==window.document&&void 0!==window.document.createElement?t.useLayoutEffect:t.useEffect;function o(_ref,q){var e=_ref.editor,i=_ref.ariaActiveDescendant,r=_ref.ariaAutoComplete,o=_ref.ariaControls,l=_ref.ariaDescribedBy,s=_ref.ariaErrorMessage,d=_ref.ariaExpanded,u=_ref.ariaInvalid,c=_ref.ariaLabel,f=_ref.ariaLabelledBy,b=_ref.ariaMultiline,m=_ref.ariaOwns,x=_ref.ariaRequired,E=_ref.autoCapitalize,p=_ref.className,C=_ref.id,_ref$role=_ref.role,v=_ref$role===void 0?"textbox":_ref$role,_ref$spellCheck=_ref.spellCheck,w=_ref$spellCheck===void 0?!0:_ref$spellCheck,y=_ref.style,L=_ref.tabIndex,g=_ref["data-testid"],h=babelHelpers.objectWithoutPropertiesLoose(_ref,_excluded);var _t$useState=t.useState(e.isEditable()),R=_t$useState[0],j=_t$useState[1],S=t.useCallback(function(t){t&&t.ownerDocument&&t.ownerDocument.defaultView?e.setRootElement(t):e.setRootElement(null);},[e]),D=t.useMemo(function(){return function(){for(var _len=arguments.length,e=new Array(_len),_key=0;_key<_len;_key++){e[_key]=arguments[_key];}return function(t){for(var _a of e)"function"==typeof _a?_a(t):null!=_a&&(_a.current=t);};}(q,S);},[S,q]);return n(function(){return j(e.isEditable()),e.registerEditableListener(function(e){j(e);});},[e]),a.jsx("div",babelHelpers["extends"]({"aria-activedescendant":R?i:void 0,"aria-autocomplete":R?r:"none","aria-controls":R?o:void 0,"aria-describedby":l},null!=s?{"aria-errormessage":s}:{},{"aria-expanded":R&&"combobox"===v?!!d:void 0},null!=u?{"aria-invalid":u}:{},{"aria-label":c,"aria-labelledby":f,"aria-multiline":b,"aria-owns":R?m:void 0,"aria-readonly":!R||void 0,"aria-required":x,autoCapitalize:E,className:p,contentEditable:R,"data-testid":g,id:C,ref:D,role:v,spellCheck:w,style:y,tabIndex:L},h));}var l=t.forwardRef(o);function s(e){return e.getEditorState().read(require("LexicalText").$canShowPlaceholderCurry(e.isComposing()));}var d=t.forwardRef(u);function u(t,i){var r=t.placeholder,n=babelHelpers.objectWithoutPropertiesLoose(t,_excluded2),_e$useLexicalComposer=require("LexicalComposerContext").useLexicalComposerContext(),o=_e$useLexicalComposer[0];return a.jsxs(a.Fragment,{children:[a.jsx(l,babelHelpers["extends"]({editor:o},n,{ref:i})),null!=r&&a.jsx(c,{editor:o,content:r})]});}function c(_ref2){var e=_ref2.content,i=_ref2.editor;var o=function(e){var _t$useState3=t.useState(function(){return s(e);}),a=_t$useState3[0],i=_t$useState3[1];return n(function(){function t(){var t=s(e);i(t);}return t(),require("LexicalUtils").mergeRegister(e.registerUpdateListener(function(){t();}),e.registerEditableListener(function(){t();}));},[e]),a;}(i),_t$useState2=t.useState(i.isEditable()),l=_t$useState2[0],d=_t$useState2[1];if(t.useLayoutEffect(function(){return d(i.isEditable()),i.registerEditableListener(function(e){d(e);});},[i]),!o)return null;var u=null;return"function"==typeof e?u=e(l):null!==e&&(u=e),null===u?null:a.jsx("div",{"aria-hidden":!0,children:u});}exports.ContentEditable=d,exports.ContentEditableElement=l;}),null); /** * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. * * * @fullSyntaxTransform * @es6-async_DO_NOT_USE * @generated SignedSource<<65df3bcfdf732365cfd14a227cb1105f>> * * @nolint * @oncall lexical_web_text_editor * @preserve-invariant-messages * @preserve-whitespace * @preventMunge */__d("LexicalEditorRefPlugin.prod",["LexicalComposerContext","react"],(function $module_LexicalEditorRefPlugin_prod(global,require,requireDynamic,requireLazy,module,exports){ "use strict";var _require_closure_react;function t(e){var t=Object.create(null);if(e)for(var r in e)t[r]=e[r];return t["default"]=e,t;}var r=t(_require_closure_react||(_require_closure_react=require("react")));exports.EditorRefPlugin=function(_ref){var t=_ref.editorRef;var _e$useLexicalComposer=require("LexicalComposerContext").useLexicalComposerContext(),o=_e$useLexicalComposer[0];return r.useEffect(function(){"function"==typeof t?t(o):"object"==typeof t&&(t.current=o);},[o]),null;};}),null); /** * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. * * * @fullSyntaxTransform * @es6-async_DO_NOT_USE * @generated SignedSource<> * * @nolint * @oncall lexical_web_text_editor * @preserve-invariant-messages * @preserve-whitespace * @preventMunge */__d("LexicalErrorBoundary.prod",["react"],(function $module_LexicalErrorBoundary_prod(global,require,requireDynamic,requireLazy,module,exports){ "use strict";var _require_closure_react;var r=_require_closure_react||(_require_closure_react=require("react")),e=_require_closure_react;var t=r.createContext(null),o={didCatch:!1,error:null};var _s4=function(_r$Component){function s(r){var _this;_this=_r$Component.call(this,r)||this,_this.resetErrorBoundary=_this.resetErrorBoundary.bind(babelHelpers.assertThisInitialized(_this)),_this.state=o;return _this;}babelHelpers.inheritsLoose(s,_r$Component);s.getDerivedStateFromError=function getDerivedStateFromError(r){return{didCatch:!0,error:r};};var _proto=s.prototype;_proto.resetErrorBoundary=function resetErrorBoundary(){var r=this.state.error;if(null!==r){for(var e,t,_s=arguments.length,n=new Array(_s),i=0;i<_s;i++)n[i]=arguments[i];null===(e=(t=this.props).onReset)||void 0===e||e.call(t,{args:n,reason:"imperative-api"}),this.setState(o);}};_proto.componentDidCatch=function componentDidCatch(r,e){var t,o;null===(t=(o=this.props).onError)||void 0===t||t.call(o,r,e);};_proto.componentDidUpdate=function componentDidUpdate(r,e){var t=this.state.didCatch,_s2=this.props.resetKeys;var n,i;t&&null!==e.error&&function(){var r=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];return r.length!==e.length||r.some(function(r,t){return!Object.is(r,e[t]);});}(r.resetKeys,_s2)&&(null===(n=(i=this.props).onReset)||void 0===n||n.call(i,{next:_s2,prev:r.resetKeys,reason:"keys"}),this.setState(o));};_proto.render=function render(){var _this$props=this.props,e=_this$props.children,o=_this$props.fallbackRender,_s3=_this$props.FallbackComponent,n=_this$props.fallback,_this$state=this.state,i=_this$state.didCatch,a=_this$state.error;var l=e;if(i){var _e={error:a,resetErrorBoundary:this.resetErrorBoundary};if("function"==typeof o)l=o(_e);else if(_s3)l=r.createElement(_s3,_e);else{if(void 0===n)throw a;l=n;}}return r.createElement(t.Provider,{value:{didCatch:i,error:a,resetErrorBoundary:this.resetErrorBoundary}},l);};return s;}(r.Component);exports.LexicalErrorBoundary=function(_ref){var r=_ref.children,t=_ref.onError;return e.jsx(_s4,{fallback:e.jsx("div",{style:{border:"1px solid #f00",color:"#f00",padding:"8px"},children:"An error was thrown."}),onError:t,children:r});};}),null); __d("LexicalHistory",["cr:2904"],(function(a,b,c,d,e,f){e.exports=b("cr:2904")}),null); /** * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. * * * @fullSyntaxTransform * @es6-async_DO_NOT_USE * @generated SignedSource<<3e6f1172f8335546252f6af2b7254906>> * * @nolint * @oncall lexical_web_text_editor * @preserve-invariant-messages * @preserve-whitespace * @preventMunge */__d("LexicalHistory.prod",["Lexical","LexicalExtension","LexicalUtils"],(function $module_LexicalHistory_prod(global,require,requireDynamic,requireLazy,module,exports){ "use strict";var _require_Lexical;function r(e,t,r,o,i){if(null===e||0===r.size&&0===o.size&&!i)return 0;var s=t._selection,a=e._selection;if(i)return 1;if(!(require("Lexical").$isRangeSelection(s)&&require("Lexical").$isRangeSelection(a)&&a.isCollapsed()&&s.isCollapsed()))return 0;var c=function(e,t,r){var o=e._nodeMap,i=[];for(var _e of t){var _t=o.get(_e);void 0!==_t&&i.push(_t);}for(var _ref2 of r){var _e2=_ref2[0];var _t2=_ref2[1];{if(!_t2)continue;var _r=o.get(_e2);void 0===_r||require("Lexical").$isRootNode(_r)||i.push(_r);}}return i;}(t,r,o);if(0===c.length)return 0;if(c.length>1){var _r2=t._nodeMap,_o=_r2.get(s.anchor.key),_i=_r2.get(a.anchor.key);return _o&&_i&&!e._nodeMap.has(_o.__key)&&require("Lexical").$isTextNode(_o)&&1===_o.__text.length&&1===s.anchor.offset?2:0;}var d=c[0],u=e._nodeMap.get(d.__key);if(!require("Lexical").$isTextNode(u)||!require("Lexical").$isTextNode(d)||u.__mode!==d.__mode)return 0;var l=u.__text,_=d.__text;if(l===_)return 0;var f=s.anchor,p=a.anchor;if(f.key!==p.key||"text"!==f.type)return 0;var h=f.offset,O=p.offset,S=_.length-l.length;return 1===S&&O===h-1?2:-1===S&&O===h+1?3:-1===S&&O===h?4:0;}function o(e,t){var o=Date.now(),i=0;return function(s,a,c,d,u,l){var _=Date.now();if(l.has(require("Lexical").HISTORIC_TAG))return i=0,o=_,2;var f=r(s,a,d,u,e.isComposing()),p=function(){var r=null===c||c.editor===e,p=l.has(require("Lexical").HISTORY_PUSH_TAG);if(!p&&r&&l.has(require("Lexical").HISTORY_MERGE_TAG))return 0;if(null===s)return 1;var h=a._selection;if(!(d.size>0||u.size>0))return null!==h?0:2;var O="number"==typeof t?t:t.peek();if(!1===p&&0!==f&&f===i&&_> * * @nolint * @oncall lexical_web_text_editor * @preserve-invariant-messages * @preserve-whitespace * @preventMunge */__d("LexicalHistoryPlugin.prod",["LexicalComposerContext","LexicalHistory","react"],(function $module_LexicalHistoryPlugin_prod(global,require,requireDynamic,requireLazy,module,exports){ "use strict";var _require_closure_react;var r=_require_closure_react||(_require_closure_react=require("react"));exports.createEmptyHistoryState=require("LexicalHistory").createEmptyHistoryState,exports.HistoryPlugin=function(_ref){var o=_ref.delay,s=_ref.externalHistoryState;var _e$useLexicalComposer=require("LexicalComposerContext").useLexicalComposerContext(),i=_e$useLexicalComposer[0];return function(e,o,s){if(s===void 0){s=1e3;}var i=r.useMemo(function(){return o||require("LexicalHistory").createEmptyHistoryState();},[o]);r.useEffect(function(){return require("LexicalHistory").registerHistory(e,i,s);},[s,e,i]);}(i,s,o),null;};}),null); /** * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. * * * @fullSyntaxTransform * @es6-async_DO_NOT_USE * @generated SignedSource<<057230f3c406db14f76e8d873dafe6bf>> * * @nolint * @oncall lexical_web_text_editor * @preserve-invariant-messages * @preserve-whitespace * @preventMunge */__d("LexicalListPlugin.prod",["LexicalComposerContext","LexicalList","react"],(function $module_LexicalListPlugin_prod(global,require,requireDynamic,requireLazy,module,exports){ "use strict";var _require_closure_react;var r=_require_closure_react||(_require_closure_react=require("react"));exports.ListPlugin=function(_ref){var _ref$hasStrictIndent=_ref.hasStrictIndent,i=_ref$hasStrictIndent===void 0?!1:_ref$hasStrictIndent;var _t$useLexicalComposer=require("LexicalComposerContext").useLexicalComposerContext(),s=_t$useLexicalComposer[0];return r.useEffect(function(){if(!s.hasNodes([require("LexicalList").ListNode,require("LexicalList").ListItemNode]))throw new Error("ListPlugin: ListNode and/or ListItemNode not registered on editor");},[s]),r.useEffect(function(){if(i)return require("LexicalList").registerListStrictIndentTransform(s);},[s,i]),function(t){r.useEffect(function(){return require("LexicalList").registerList(t);},[t]);}(s),null;};}),null); /** * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. * * * @fullSyntaxTransform * @es6-async_DO_NOT_USE * @generated SignedSource<<528847865e35da3f18c4caaca8d0ba38>> * * @nolint * @oncall lexical_web_text_editor * @preserve-invariant-messages * @preserve-whitespace * @preventMunge */__d("LexicalMarkdown.prod",["Lexical","LexicalCode","LexicalLink","LexicalList","LexicalRichText","LexicalUtils"],(function $module_LexicalMarkdown_prod(global,require,requireDynamic,requireLazy,module,exports){ "use strict";var _require_LexicalList;function s(e,t){var n={};for(var _o of e){var _e=t(_o);_e&&(n[_e]?n[_e].push(_o):n[_e]=[_o]);}return n;}function c(e){var t=s(e,function(e){return e.type;});return{element:t.element||[],multilineElement:t["multiline-element"]||[],textFormat:t["text-format"]||[],textMatch:t["text-match"]||[]};}var l=/[!-/:-@[-`{-~\s]/,a=/^\s{0,3}$/;function f(t){if(!require("Lexical").$isParagraphNode(t))return!1;var n=t.getFirstChild();return null==n||1===t.getChildrenSize()&&require("Lexical").$isTextNode(n)&&a.test(n.getTextContent());}function d(t,n,o,r){for(var _e2 of n){if(!_e2["export"])continue;var _n=_e2["export"](t,function(e){return u(e,o,r);});if(null!=_n)return _n;}return require("Lexical").$isElementNode(t)?u(t,o,r):require("Lexical").$isDecoratorNode(t)?t.getTextContent():null;}function u(t,n,o,r,i){var s=[],c=t.getChildren();r||(r=[]),i||(i=[]);e:for(var _t of c){for(var _e3 of o){if(!_e3["export"])continue;var _c=_e3["export"](_t,function(e){return u(e,n,o,r,[].concat(i,r));},function(e,t){return g(e,t,n,r,i);});if(null!=_c){s.push(_c);continue e;}}require("Lexical").$isLineBreakNode(_t)?s.push("\n"):require("Lexical").$isTextNode(_t)?s.push(g(_t,_t.getTextContent(),n,r,i)):require("Lexical").$isElementNode(_t)?s.push(u(_t,n,o,r,i)):require("Lexical").$isDecoratorNode(_t)&&s.push(_t.getTextContent());}return s.join("");}function g(e,t,n,o,r){var i=0===e.getFormat()?t:function(e){return e.replace(/^\s+|\s+$/g,function(e){return[].concat(e).map(function(e){return"&#"+e.codePointAt(0)+";";}).join("");});}(t);e.hasFormat("code")||(i=i.replace(/([*_`~\\])/g,"\\$1"));var s="",c="",l="";var a=p(e,!0),f=p(e,!1),d=new Set();var _loop=function _loop(){var n=_t2.format[0],r=_t2.tag;x(e,n)&&!d.has(n)&&(d.add(n),x(a,n)&&o.find(function(e){return e.tag===r;})||(o.push({format:n,tag:r}),s+=r));};for(var _t2 of n){_loop();}for(var _t3=0;_t3_t3;){_loop2();}break;}return i=s+i+l,c+i;}function p(t,n){var o=n?t.getPreviousSibling():t.getNextSibling();if(!o){var _e4=t.getParentOrThrow();_e4.isInline()&&(o=n?_e4.getPreviousSibling():_e4.getNextSibling());}for(;o;){if(require("Lexical").$isElementNode(o)){if(!o.isInline())break;var _t4=n?o.getLastDescendant():o.getFirstDescendant();if(require("Lexical").$isTextNode(_t4))return _t4;o=n?o.getPreviousSibling():o.getNextSibling();}if(require("Lexical").$isTextNode(o))return o;if(!require("Lexical").$isElementNode(o))return null;}return null;}function x(t,n){return require("Lexical").$isTextNode(t)&&t.hasFormat(n);}function h(e,t){var n=function(e,t){var n=e.match(t.openTagsRegExp);if(null==n)return null;for(var _o2 of n){var _n3=_o2.replace(/^\s/,""),_r=t.fullMatchRegExpByTag[_n3];if(null==_r)continue;var _i2=e.match(_r),_s2=t.transformersByTag[_n3];if(null!=_i2&&null!=_s2){if(!1!==_s2.intraword)return _i2;var _i2$index=_i2.index,_t5=_i2$index===void 0?0:_i2$index,_n4=e[_t5-1],_o3=e[_t5+_i2[0].length];if((!_n4||l.test(_n4))&&(!_o3||l.test(_o3)))return _i2;}}return null;}(e.getTextContent(),t);if(!n)return null;var o=n.index||0;return{endIndex:o+n[0].length,match:n,startIndex:o,transformer:t.transformersByTag[n[1]]};}function m(t){return require("Lexical").$isTextNode(t)&&!t.hasFormat("code");}function $(e,t,n){var o=h(e,t),r=function(e,t){var n=e;var o,r,i,s;for(var _e5 of t){if(!_e5.replace||!_e5.importRegExp)continue;var _t6=n.getTextContent().match(_e5.importRegExp);if(!_t6)continue;var _c2=_t6.index||0,_l=_e5.getEndIndex?_e5.getEndIndex(n,_t6):_c2+_t6[0].length;!1!==_l&&(void 0===o||void 0===r||_c2r||_l<=o))&&(o=_c2,r=_l,i=_e5,s=_t6);}return void 0===o||void 0===r||void 0===i||void 0===s?null:{endIndex:r,match:s,startIndex:o,transformer:i};}(e,n);if(o&&r&&(o.startIndex<=r.startIndex&&o.endIndex>=r.endIndex||r.startIndex>o.endIndex?r=null:o=null),o){var _r2=function(e,t,n,o,r,_e$splitText,_e$splitText2){var i=e.getTextContent();var s,c,l;if(r[0]===i?s=e:0===t?(_e$splitText=e.splitText(n),s=_e$splitText[0],c=_e$splitText[1],_e$splitText):(_e$splitText2=e.splitText(t,n),l=_e$splitText2[0],s=_e$splitText2[1],c=_e$splitText2[2],_e$splitText2),s.setTextContent(r[2]),o)for(var _e6 of o.format)s.hasFormat(_e6)||s.toggleFormat(_e6);return{nodeAfter:c,nodeBefore:l,transformedNode:s};}(e,o.startIndex,o.endIndex,o.transformer,o.match);m(_r2.nodeAfter)&&$(_r2.nodeAfter,t,n),m(_r2.nodeBefore)&&$(_r2.nodeBefore,t,n),m(_r2.transformedNode)&&$(_r2.transformedNode,t,n);}else if(r){var _o4=function(e,t,n,o,r,_e$splitText3,_e$splitText4){var i,s,c;return 0===t?(_e$splitText3=e.splitText(n),i=_e$splitText3[0],s=_e$splitText3[1],_e$splitText3):(_e$splitText4=e.splitText(t,n),c=_e$splitText4[0],i=_e$splitText4[1],s=_e$splitText4[2],_e$splitText4),o.replace?{nodeAfter:s,nodeBefore:c,transformedNode:o.replace(i,r)||void 0}:null;}(e,r.startIndex,r.endIndex,r.transformer,r.match);if(!_o4)return;m(_o4.nodeAfter)&&$(_o4.nodeAfter,t,n),m(_o4.nodeBefore)&&$(_o4.nodeBefore,t,n),m(_o4.transformedNode)&&$(_o4.transformedNode,t,n);}var i=e.getTextContent().replace(/\\([*_`~\\])/g,"$1").replace(/&#(\d+);/g,function(e,t){return String.fromCodePoint(t);});e.setTextContent(i);}function N(t,n){if(n===void 0){n=!1;}var o=c(t),r=function(e){var t={},n={},o=[],r="(?1&&_e9.remove();null!==require("Lexical").$getSelection()&&l.selectStart();};}function T(e,t,n,o){for(var _r4 of n){var _n5=_r4.handleImportAfterStartMatch,_i5=_r4.regExpEnd,_s3=_r4.regExpStart,_c4=_r4.replace,_l2=e[t].match(_s3);if(!_l2)continue;if(_n5){var _i6=_n5({lines:e,rootNode:o,startLineIndex:t,startMatch:_l2,transformer:_r4});if(null===_i6)continue;if(_i6)return _i6;}var _a="object"==typeof _i5&&"regExp"in _i5?_i5.regExp:_i5,_f=_i5&&"object"==typeof _i5&&"optional"in _i5?_i5.optional:!_i5;var _d=t;var _u=e.length;for(;_d<_u;){var _n6=_a?e[_d].match(_a):null;if(!_n6&&(!_f||_f&&_d<_u-1)){_d++;continue;}if(_n6&&t===_d&&_n6.index===_l2.index){_d++;continue;}var _r5=[];if(_n6&&t===_d)_r5.push(e[t].slice(_l2[0].length,-_n6[0].length));else for(var _o5=t;_o5<=_d;_o5++)if(_o5===t){var _t8=e[_o5].slice(_l2[0].length);_r5.push(_t8);}else if(_o5===_d&&_n6){var _t9=e[_o5].slice(0,-_n6[0].length);_r5.push(_t9);}else _r5.push(e[_o5]);if(!1!==_c4(o,null,_l2,_n6,_r5,!0))return[!0,_d];break;}}return[!1,t];}function E(r,i,s,c,l,a){var f=require("Lexical").$createTextNode(r),d=require("Lexical").$createParagraphNode();d.append(f),i.append(d);for(var _ref2 of s){var _e0=_ref2.regExp;var _t0=_ref2.replace;{var _n7=r.match(_e0);if(_n7&&(f.setTextContent(r.slice(_n7[0].length)),!1!==_t0(d,[f],_n7,!0)))break;}}if($(f,c,l),d.isAttached()&&r.length>0){var _r6=d.getPreviousSibling();if(!a&&(require("Lexical").$isParagraphNode(_r6)||require("LexicalRichText").$isQuoteNode(_r6)||require("LexicalList").$isListNode(_r6))){var _n8=_r6;if(require("LexicalList").$isListNode(_r6)){var _e1=_r6.getLastDescendant();_n8=null==_e1?null:require("LexicalUtils").$findMatchingParent(_e1,require("LexicalList").$isListItemNode);}null!=_n8&&_n8.getTextContentSize()>0&&(_n8.splice(_n8.getChildrenSize(),0,[require("Lexical").$createLineBreakNode()].concat(d.getChildren())),d.remove());}}}function S(e){var n=new URL("https://lexical.dev/docs/error"),o=new URLSearchParams();o.append("code",e);for(var _len=arguments.length,t=new Array(_len>1?_len-1:0),_key=1;_key<_len;_key++){t[_key-1]=arguments[_key];}for(var _e10 of t)o.append("v",_e10);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.");}var L=/^(\s*)(\d{1,})\.\s/,C=/^(\s*)[-*+]\s/,R=/^(\s*)(?:[-*+]\s)?\s?(\[(\s|x)?\])\s/i,I=/^(#{1,6})\s/,y=/^>\s/,v=/^[ \t]*```([\w-]+)?/,_=/[ \t]*```$/,b=/^[ \t]*```[^`]+(?:(?:`{1,2}|`{4,})[^`]+)*```(?:[^`]|$)/,A=/^(?:\|)(.+)(?:\|)\s?$/,F=/^(\| ?:?-*:? ?)+\|\s?$/,k=/^<[a-z_][\w-]*(?:\s[^<>]*)?\/?>/i,M=/^<\/[a-z_][\w-]*\s*>/i,O=function O(e){return new RegExp("(?:"+e.source+")$",e.flags);},w=require("Lexical").createState("mdListMarker",{parse:function parse(e){return"string"==typeof e&&/^[-*+]$/.test(e)?e:"-";}}),B=function B(e){return function(t,n,o,r){var i=e(o);i.append.apply(i,n),t.replace(i),r||i.select(0,0);};};var D=function D(n){return function(o,r,i,s){var c=o.getPreviousSibling(),l=o.getNextSibling(),a=require("LexicalList").$createListItemNode("check"===n?"x"===i[3]:void 0),f=i[0].trim()[0],d="bullet"!==n&&"check"!==n||f!==w.parse(f)?void 0:f;if(require("LexicalList").$isListNode(l)&&l.getListType()===n){d&&require("Lexical").$setState(l,w,d);var _t1=l.getFirstChild();null!==_t1?_t1.insertBefore(a):l.append(a),o.remove();}else if(require("LexicalList").$isListNode(c)&&c.getListType()===n)d&&require("Lexical").$setState(c,w,d),c.append(a),o.remove();else{var _r7=require("LexicalList").$createListNode(n,"number"===n?Number(i[2]):void 0);d&&require("Lexical").$setState(_r7,w,d),_r7.append(a),o.replace(_r7);}a.append.apply(a,r),s||a.select(0,0);var u=function(e){var t=e.match(/\t/g),n=e.match(/ /g);var o=0;return t&&(o+=t.length),n&&(o+=Math.floor(n.length/4)),o;}(i[1]);u&&a.setIndent(u);};},_P=function P(n,o,r){var i=[],s=n.getChildren();var c=0;for(var _l3 of s)if(require("LexicalList").$isListItemNode(_l3)){if(1===_l3.getChildrenSize()){var _e11=_l3.getFirstChild();if(require("LexicalList").$isListNode(_e11)){i.push(_P(_e11,o,r+1));continue;}}var _s4=" ".repeat(4*r),_a2=n.getListType(),_f2=require("Lexical").$getState(n,w),_d2="number"===_a2?n.getStart()+c+". ":"check"===_a2?_f2+" ["+(_l3.getChecked()?"x":" ")+"] ":_f2+" ";i.push(_s4+_d2+o(_l3)),c++;}return i.join("\n");},U={dependencies:[require("LexicalRichText").HeadingNode],"export":function _export(e,t){if(!require("LexicalRichText").$isHeadingNode(e))return null;var o=Number(e.getTag().slice(1));return"#".repeat(o)+" "+t(e);},regExp:I,replace:B(function(e){var t="h"+e[1].length;return require("LexicalRichText").$createHeadingNode(t);}),type:"element"},H={dependencies:[require("LexicalRichText").QuoteNode],"export":function _export(e,t){if(!require("LexicalRichText").$isQuoteNode(e))return null;var o=t(e).split("\n"),r=[];for(var _e12 of o)r.push("> "+_e12);return r.join("\n");},regExp:y,replace:function replace(t,o,r,i){if(i){var _r8=t.getPreviousSibling();if(require("LexicalRichText").$isQuoteNode(_r8))return _r8.splice(_r8.getChildrenSize(),0,[require("Lexical").$createLineBreakNode()].concat(o)),void t.remove();}var s=require("LexicalRichText").$createQuoteNode();s.append.apply(s,o),t.replace(s),i||s.select(0,0);},type:"element"},j={dependencies:[require("LexicalCode").CodeNode],"export":function _export(e){if(!require("LexicalCode").$isCodeNode(e))return null;var t=e.getTextContent();return"```"+(e.getLanguage()||"")+(t?"\n"+t:"")+"\n```";},regExpEnd:{optional:!0,regExp:_},regExpStart:v,replace:function replace(t,n,o,i,s,c){var l,a;if(!n&&s){if(1===s.length)i?(l=require("LexicalCode").$createCodeNode(),a=o[1]+s[0]):(l=require("LexicalCode").$createCodeNode(o[1]),a=s[0].startsWith(" ")?s[0].slice(1):s[0]);else{if(l=require("LexicalCode").$createCodeNode(o[1]),0===s[0].trim().length)for(;s.length>0&&!s[0].length;)s.shift();else s[0]=s[0].startsWith(" ")?s[0].slice(1):s[0];for(;s.length>0&&!s[s.length-1].length;)s.pop();a=s.join("\n");}var _n9=require("Lexical").$createTextNode(a);l.append(_n9),t.append(l);}else n&&B(function(e){return require("LexicalCode").$createCodeNode(e?e[1]:void 0);})(t,n,o,c);},type:"multiline-element"},z={dependencies:[(_require_LexicalList=require("LexicalList")).ListNode,_require_LexicalList.ListItemNode],"export":function _export(e,n){return require("LexicalList").$isListNode(e)?_P(e,n,0):null;},regExp:C,replace:D("bullet"),type:"element"},q={dependencies:[_require_LexicalList.ListNode,_require_LexicalList.ListItemNode],"export":function _export(e,n){return require("LexicalList").$isListNode(e)?_P(e,n,0):null;},regExp:R,replace:D("check"),type:"element"},G={dependencies:[_require_LexicalList.ListNode,_require_LexicalList.ListItemNode],"export":function _export(e,n){return require("LexicalList").$isListNode(e)?_P(e,n,0):null;},regExp:L,replace:D("number"),type:"element"},Q={format:["code"],tag:"`",type:"text-format"},W={format:["highlight"],tag:"==",type:"text-format"},K={format:["bold","italic"],tag:"***",type:"text-format"},X={format:["bold","italic"],intraword:!1,tag:"___",type:"text-format"},J={format:["bold"],tag:"**",type:"text-format"},V={format:["bold"],intraword:!1,tag:"__",type:"text-format"},Y={format:["strikethrough"],tag:"~~",type:"text-format"},Z={format:["italic"],tag:"*",type:"text-format"},ee={format:["italic"],intraword:!1,tag:"_",type:"text-format"},te={dependencies:[require("LexicalLink").LinkNode],"export":function _export(e,t,n){if(!require("LexicalLink").$isLinkNode(e)||require("LexicalLink").$isAutoLinkNode(e))return null;var o=e.getTitle(),r=t(e);return o?"["+r+"]("+e.getURL()+" \""+o+"\")":"["+r+"]("+e.getURL()+")";},importRegExp:/(?:\[(.+?)\])(?:\((?:([^()\s]+)(?:\s\"((?:[^\"]*\\")*[^\"]*)\"\s*)?)\))/,regExp:/(?:\[(.+?)\])(?:\((?:([^()\s]+)(?:\s\"((?:[^\"]*\\")*[^\"]*)\"\s*)?)\))$/,replace:function replace(t,n){var o=n[1],r=n[2],s=n[3],c=require("LexicalLink").$createLinkNode(r,{title:s}),l=o.split("[").length-1,a=o.split("]").length-1;var f=o,d="";if(la){var _e13=o.split("[");d="["+_e13[0],f=_e13.slice(1).join("[");}var u=require("Lexical").$createTextNode(f);return u.setFormat(t.getFormat()),c.append(u),t.replace(c),d&&c.insertBefore(require("Lexical").$createTextNode(d)),u;},trigger:")",type:"text-match"},ne=[U,H,z,G],oe=[j],re=[Q,K,X,J,V,W,Z,ee,Y],ie=[te],se=[].concat(ne,oe,re,ie);function ce(e,t,n){var o=n.length;for(var _r9=t;_r9>=o;_r9--){var _t10=_r9-o;if(le(e,_t10,n,0,o)&&" "!==e[_t10+o])return _t10;}return-1;}function le(e,t,n,o,r){for(var _i7=0;_i70&&!f(_t11)&&!f(c[_e15-1])?"\n".concat(_l4):_l4);}return n.join("\n");};}(t,o)(n);},exports.BOLD_ITALIC_STAR=K,exports.BOLD_ITALIC_UNDERSCORE=X,exports.BOLD_STAR=J,exports.BOLD_UNDERSCORE=V,exports.CHECK_LIST=q,exports.CODE=j,exports.ELEMENT_TRANSFORMERS=ne,exports.HEADING=U,exports.HIGHLIGHT=W,exports.INLINE_CODE=Q,exports.ITALIC_STAR=Z,exports.ITALIC_UNDERSCORE=ee,exports.LINK=te,exports.MULTILINE_ELEMENT_TRANSFORMERS=oe,exports.ORDERED_LIST=G,exports.QUOTE=H,exports.STRIKETHROUGH=Y,exports.TEXT_FORMAT_TRANSFORMERS=re,exports.TEXT_MATCH_TRANSFORMERS=ie,exports.TRANSFORMERS=se,exports.UNORDERED_LIST=z,exports.registerMarkdownShortcuts=function(t,n){if(n===void 0){n=se;}var o=c(n),i=s(o.textFormat,function(_ref3){var e=_ref3.tag;return e[e.length-1];}),a=s(o.textMatch,function(_ref4){var e=_ref4.trigger;return e;});for(var _e16 of n){var _n0=_e16.type;if("element"===_n0||"text-match"===_n0||"multiline-element"===_n0){var _n1=_e16.dependencies;for(var _e17 of _n1)t.hasNode(_e17)||S(173,_e17.getType());}}var f=function f(t,n,r){(function(t,n,o,r){var i=t.getParent();if(!require("Lexical").$isRootOrShadowRoot(i)||t.getFirstChild()!==n)return!1;var s=n.getTextContent();if(" "!==s[o-1])return!1;for(var _ref6 of r){var _e18=_ref6.regExp;var _i9=_ref6.replace;{var _r0=s.match(_e18);if(_r0&&_r0[0].length===(_r0[0].endsWith(" ")?o:o-1)){var _e19=n.getNextSiblings(),_n$splitText=n.splitText(o),_s6=_n$splitText[0],_c5=_n$splitText[1];if(!1!==_i9(t,_c5?[_c5].concat(_e19):_e19,_r0,!1))return _s6.remove(),!0;}}}return!1;})(t,n,r,o.element)||function(t,n,o,r){var i=t.getParent();if(!require("Lexical").$isRootOrShadowRoot(i)||t.getFirstChild()!==n)return!1;var s=n.getTextContent();if(" "!==s[o-1])return!1;for(var _ref8 of r){var _e20=_ref8.regExpStart;var _i0=_ref8.replace;var _c6=_ref8.regExpEnd;{if(_c6&&!("optional"in _c6)||_c6&&"optional"in _c6&&!_c6.optional)continue;var _r1=s.match(_e20);if(_r1&&_r1[0].length===(_r1[0].endsWith(" ")?o:o-1)){var _e21=n.getNextSiblings(),_n$splitText2=n.splitText(o),_s7=_n$splitText2[0],_c7=_n$splitText2[1];if(!1!==_i0(t,_c7?[_c7].concat(_e21):_e21,_r1,null,null,!1))return _s7.remove(),!0;}}}return!1;}(t,n,r,o.multilineElement)||function(e,t,n){var o=e.getTextContent();var r=n[o[t-1]];if(null==r)return!1;t1&&!le(r,_a3,_o6,0,_c8))continue;if(" "===r[_a3-1])continue;var _f3=r[i+1];if(!1===_n11.intraword&&_f3&&!l.test(_f3))continue;var _d3=t;var _u2=_d3,_g=ce(r,_a3,_o6),_p=_u2;for(;_g<0&&(_p=_p.getPreviousSibling())&&!require("Lexical").$isLineBreakNode(_p);)if(require("Lexical").$isTextNode(_p)){if(_p.hasFormat("code"))continue;var _e22=_p.getTextContent();_u2=_p,_g=ce(_e22,_e22.length,_o6);}if(_g<0)continue;if(_u2===_d3&&_g+_c8===_a3)continue;var _x=_u2.getTextContent();if(_g>0&&_x[_g-1]===s)continue;var _h=_x[_g-1];if(!1===_n11.intraword&&_h&&!l.test(_h))continue;var _m=_d3.getTextContent(),_$=_m.slice(0,_a3)+_m.slice(i+1);_d3.setTextContent(_$);var _N=_u2===_d3?_$:_x;_u2.setTextContent(_N.slice(0,_g)+_N.slice(_g+_c8));var _T2=require("Lexical").$getSelection(),_E=require("Lexical").$createRangeSelection();require("Lexical").$setSelection(_E);var _S=i-_c8*(_u2===_d3?2:1)+1;_E.anchor.set(_u2.__key,_g,"text"),_E.focus.set(_d3.__key,_S,"text");for(var _e23 of _n11.format)_E.hasFormat(_e23)||_E.formatText(_e23);_E.anchor.set(_E.focus.key,_E.focus.offset,_E.focus.type);for(var _e24 of _n11.format)_E.hasFormat(_e24)&&_E.toggleFormat(_e24);return require("Lexical").$isRangeSelection(_T2)&&(_E.format=_T2.format),!0;}}(n,r,i);};return t.registerUpdateListener(function(_ref9){var n=_ref9.tags,o=_ref9.dirtyLeaves,i=_ref9.editorState,s=_ref9.prevEditorState;if(n.has(require("Lexical").COLLABORATION_TAG)||n.has(require("Lexical").HISTORIC_TAG))return;if(t.isComposing())return;var c=i.read(require("Lexical").$getSelection),l=s.read(require("Lexical").$getSelection);if(!require("Lexical").$isRangeSelection(l)||!require("Lexical").$isRangeSelection(c)||!c.isCollapsed()||c.is(l))return;var a=c.anchor.key,d=c.anchor.offset,u=i._nodeMap.get(a);!require("Lexical").$isTextNode(u)||!o.has(a)||1!==d&&d>l.anchor.offset+1||t.update(function(){if(!m(u))return;var e=u.getParent();null===e||require("LexicalCode").$isCodeNode(e)||f(e,u,c.anchor.offset);});});};}),null); /** * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. * * * @fullSyntaxTransform * @es6-async_DO_NOT_USE * @generated SignedSource<> * * @nolint * @oncall lexical_web_text_editor * @preserve-invariant-messages * @preserve-whitespace * @preventMunge */__d("LexicalOnChangePlugin.prod",["Lexical","LexicalComposerContext","react"],(function $module_LexicalOnChangePlugin_prod(global,require,requireDynamic,requireLazy,module,exports){ "use strict";var _require_closure_react;var i=_require_closure_react||(_require_closure_react=require("react"));var n="undefined"!=typeof window&&void 0!==window.document&&void 0!==window.document.createElement?i.useLayoutEffect:i.useEffect;exports.OnChangePlugin=function(_ref){var _ref$ignoreHistoryMer=_ref.ignoreHistoryMergeTagChange,i=_ref$ignoreHistoryMer===void 0?!0:_ref$ignoreHistoryMer,_ref$ignoreSelectionC=_ref.ignoreSelectionChange,r=_ref$ignoreSelectionC===void 0?!1:_ref$ignoreSelectionC,o=_ref.onChange;var _e$useLexicalComposer=require("LexicalComposerContext").useLexicalComposerContext(),s=_e$useLexicalComposer[0];return n(function(){if(o)return s.registerUpdateListener(function(_ref2){var e=_ref2.editorState,n=_ref2.dirtyElements,a=_ref2.dirtyLeaves,u=_ref2.prevEditorState,c=_ref2.tags;r&&0===n.size&&0===a.size||i&&c.has(require("Lexical").HISTORY_MERGE_TAG)||u.isEmpty()||o(e,s,c);});},[s,i,r,o]),null;};}),null); __d("LexicalPlainText",["cr:2909"],(function(a,b,c,d,e,f){e.exports=b("cr:2909")}),null); /** * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. * * * @fullSyntaxTransform * @es6-async_DO_NOT_USE * @generated SignedSource<<5694f223b034b3d3ddc1d1b1c0c5241e>> * * @nolint * @oncall lexical_web_text_editor * @preserve-invariant-messages * @preserve-whitespace * @preventMunge */__d("LexicalPlainText.prod",["Lexical","LexicalClipboard","LexicalDragon","LexicalSelection","LexicalUtils"],(function $module_LexicalPlainText_prod(global,require,requireDynamic,requireLazy,module,exports){ "use strict";var o="undefined"!=typeof window&&void 0!==window.document&&void 0!==window.document.createElement,a=o&&"documentMode"in document?document.documentMode:null,s=o&&/Mac|iPod|iPhone|iPad/.test(navigator.platform),l=!(!o||!("InputEvent"in window)||a)&&"getTargetRanges"in new window.InputEvent("input"),c=o&&/Version\/[\d.]+.*Safari/.test(navigator.userAgent),R=o&&/iPad|iPhone|iPod/.test(navigator.userAgent)&&!window.MSStream,D=o&&/^(?=.*Chrome).*/i.test(navigator.userAgent),O=o&&/AppleWebKit\/[\d.]+/.test(navigator.userAgent)&&s&&!D;function C(t,n){n.update(function(){if(null!==t){var _o=require("LexicalUtils").objectKlassEquals(t,KeyboardEvent)?null:t.clipboardData,_a=require("Lexical").$getSelection();if(null!==_a&&!_a.isCollapsed()&&null!=_o){t.preventDefault();var _i=require("LexicalClipboard").$getHtmlContent(n);null!==_i&&_o.setData("text/html",_i),_o.setData("text/plain",_a.getTextContent());}}});}function M(t){var _require_Lexical;return require("LexicalUtils").mergeRegister(t.registerCommand((_require_Lexical=require("Lexical")).DELETE_CHARACTER_COMMAND,function(e){var t=require("Lexical").$getSelection();return!!require("Lexical").$isRangeSelection(t)&&(t.deleteCharacter(e),!0);},_require_Lexical.COMMAND_PRIORITY_EDITOR),t.registerCommand(_require_Lexical.DELETE_WORD_COMMAND,function(e){var t=require("Lexical").$getSelection();return!!require("Lexical").$isRangeSelection(t)&&(t.deleteWord(e),!0);},_require_Lexical.COMMAND_PRIORITY_EDITOR),t.registerCommand(_require_Lexical.DELETE_LINE_COMMAND,function(e){var t=require("Lexical").$getSelection();return!!require("Lexical").$isRangeSelection(t)&&(t.deleteLine(e),!0);},_require_Lexical.COMMAND_PRIORITY_EDITOR),t.registerCommand(_require_Lexical.CONTROLLED_TEXT_INSERTION_COMMAND,function(t){var n=require("Lexical").$getSelection();if(!require("Lexical").$isRangeSelection(n))return!1;if("string"==typeof t)n.insertText(t);else{var _i2=t.dataTransfer;if(null!=_i2)require("LexicalClipboard").$insertDataTransferForPlainText(_i2,n);else{var _e=t.data;_e&&n.insertText(_e);}}return!0;},_require_Lexical.COMMAND_PRIORITY_EDITOR),t.registerCommand(_require_Lexical.REMOVE_TEXT_COMMAND,function(){var e=require("Lexical").$getSelection();return!!require("Lexical").$isRangeSelection(e)&&(e.removeText(),!0);},_require_Lexical.COMMAND_PRIORITY_EDITOR),t.registerCommand(_require_Lexical.INSERT_LINE_BREAK_COMMAND,function(e){var t=require("Lexical").$getSelection();return!!require("Lexical").$isRangeSelection(t)&&(t.insertLineBreak(e),!0);},_require_Lexical.COMMAND_PRIORITY_EDITOR),t.registerCommand(_require_Lexical.INSERT_PARAGRAPH_COMMAND,function(){var e=require("Lexical").$getSelection();return!!require("Lexical").$isRangeSelection(e)&&(e.insertLineBreak(),!0);},_require_Lexical.COMMAND_PRIORITY_EDITOR),t.registerCommand(_require_Lexical.KEY_ARROW_LEFT_COMMAND,function(e){var t=require("Lexical").$getSelection();if(!require("Lexical").$isRangeSelection(t))return!1;var i=e,o=i.shiftKey;return!!require("LexicalSelection").$shouldOverrideDefaultCharacterSelection(t,!0)&&(i.preventDefault(),require("LexicalSelection").$moveCharacter(t,o,!0),!0);},_require_Lexical.COMMAND_PRIORITY_EDITOR),t.registerCommand(_require_Lexical.KEY_ARROW_RIGHT_COMMAND,function(e){var t=require("Lexical").$getSelection();if(!require("Lexical").$isRangeSelection(t))return!1;var i=e,o=i.shiftKey;return!!require("LexicalSelection").$shouldOverrideDefaultCharacterSelection(t,!1)&&(i.preventDefault(),require("LexicalSelection").$moveCharacter(t,o,!1),!0);},_require_Lexical.COMMAND_PRIORITY_EDITOR),t.registerCommand(_require_Lexical.KEY_BACKSPACE_COMMAND,function(e){var n=require("Lexical").$getSelection();return!!require("Lexical").$isRangeSelection(n)&&(!R||"ko-KR"!==navigator.language)&&(e.preventDefault(),t.dispatchCommand(require("Lexical").DELETE_CHARACTER_COMMAND,!0));},_require_Lexical.COMMAND_PRIORITY_EDITOR),t.registerCommand(_require_Lexical.KEY_DELETE_COMMAND,function(e){var n=require("Lexical").$getSelection();return!!require("Lexical").$isRangeSelection(n)&&(e.preventDefault(),t.dispatchCommand(require("Lexical").DELETE_CHARACTER_COMMAND,!1));},_require_Lexical.COMMAND_PRIORITY_EDITOR),t.registerCommand(_require_Lexical.KEY_ENTER_COMMAND,function(e){var n=require("Lexical").$getSelection();if(!require("Lexical").$isRangeSelection(n))return!1;if(null!==e){if((R||c||O)&&l)return!1;e.preventDefault();}return t.dispatchCommand(require("Lexical").INSERT_LINE_BREAK_COMMAND,!1);},_require_Lexical.COMMAND_PRIORITY_EDITOR),t.registerCommand(_require_Lexical.SELECT_ALL_COMMAND,function(){return require("Lexical").$selectAll(),!0;},_require_Lexical.COMMAND_PRIORITY_EDITOR),t.registerCommand(_require_Lexical.COPY_COMMAND,function(e){var n=require("Lexical").$getSelection();return!!require("Lexical").$isRangeSelection(n)&&(C(e,t),!0);},_require_Lexical.COMMAND_PRIORITY_EDITOR),t.registerCommand(_require_Lexical.CUT_COMMAND,function(e){var n=require("Lexical").$getSelection();return!!require("Lexical").$isRangeSelection(n)&&(function(e,t){C(e,t),t.update(function(){var e=require("Lexical").$getSelection();require("Lexical").$isRangeSelection(e)&&e.removeText();});}(e,t),!0);},_require_Lexical.COMMAND_PRIORITY_EDITOR),t.registerCommand(_require_Lexical.PASTE_COMMAND,function(n){var o=require("Lexical").$getSelection();return!!require("Lexical").$isRangeSelection(o)&&(function(t,n){t.preventDefault(),n.update(function(){var n=require("Lexical").$getSelection(),o=require("LexicalUtils").objectKlassEquals(t,ClipboardEvent)?t.clipboardData:null;null!=o&&require("Lexical").$isRangeSelection(n)&&require("LexicalClipboard").$insertDataTransferForPlainText(o,n);},{tag:require("Lexical").PASTE_TAG});}(n,t),!0);},_require_Lexical.COMMAND_PRIORITY_EDITOR),t.registerCommand(_require_Lexical.DROP_COMMAND,function(e){var t=require("Lexical").$getSelection();return!!require("Lexical").$isRangeSelection(t)&&(e.preventDefault(),!0);},_require_Lexical.COMMAND_PRIORITY_EDITOR),t.registerCommand(_require_Lexical.DRAGSTART_COMMAND,function(e){var t=require("Lexical").$getSelection();return!!require("Lexical").$isRangeSelection(t)&&(e.preventDefault(),!0);},_require_Lexical.COMMAND_PRIORITY_EDITOR));}var g=require("Lexical").defineExtension({conflictsWith:["LexicalRichText"],dependencies:[require("LexicalDragon").DragonExtension],name:"LexicalPlainText",register:M});exports.PlainTextExtension=g,exports.registerPlainText=M;}),null); __d("LexicalReactProviderExtension",["cr:13740"],(function(a,b,c,d,e,f){e.exports=b("cr:13740")}),null); __d("useLexicalEditable",["cr:4793"],(function(a,b,c,d,e,f){e.exports=b("cr:4793")}),null); /** * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. * * * @fullSyntaxTransform * @es6-async_DO_NOT_USE * @generated SignedSource<> * * @nolint * @oncall lexical_web_text_editor * @preserve-invariant-messages * @preserve-whitespace * @preventMunge */__d("LexicalPlainTextPlugin.prod",["LexicalComposerContext","LexicalDragon","LexicalExtension","LexicalPlainText","LexicalReactProviderExtension","LexicalText","LexicalUtils","ReactDOM","react","useLexicalEditable"],(function $module_LexicalPlainTextPlugin_prod(global,require,requireDynamic,requireLazy,module,exports){ "use strict";var _require_closure_react;var o=_require_closure_react||(_require_closure_react=require("react")),c=_require_closure_react;function d(e){var t=new URL("https://lexical.dev/docs/error"),n=new URLSearchParams();n.append("code",e);for(var _len=arguments.length,r=new Array(_len>1?_len-1:0),_key=1;_key<_len;_key++){r[_key-1]=arguments[_key];}for(var _e of r)n.append("v",_e);throw t.search=n.toString(),Error("Minified Lexical error #"+e+"; visit "+t.toString()+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings.");}var x="undefined"!=typeof window&&void 0!==window.document&&void 0!==window.document.createElement?o.useLayoutEffect:o.useEffect;function f(_ref){var e=_ref.editor,r=_ref.ErrorBoundary;return function(e,r){var _o$useState=o.useState(function(){return e.getDecorators();}),t=_o$useState[0],n=_o$useState[1];return x(function(){return e.registerDecoratorListener(function(e){require("ReactDOM").flushSync(function(){n(e);});});},[e]),o.useEffect(function(){n(e.getDecorators());},[e]),o.useMemo(function(){var n=[],a=Object.keys(t);for(var _s=0;_s> * * @nolint * @oncall lexical_web_text_editor * @preserve-invariant-messages * @preserve-whitespace * @preventMunge */__d("LexicalReactProviderExtension.prod",["Lexical"],(function $module_LexicalReactProviderExtension_prod(global,require,requireDynamic,requireLazy,module,exports){ "use strict";var e=require("Lexical").defineExtension({name:"@lexical/react/ReactProvider"});exports.ReactProviderExtension=e;}),null); /** * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. * * * @fullSyntaxTransform * @es6-async_DO_NOT_USE * @generated SignedSource<<7dcdb223bf348832203cf99dbbd5db05>> * * @nolint * @oncall lexical_web_text_editor * @preserve-invariant-messages * @preserve-whitespace * @preventMunge */__d("LexicalText.prod",["Lexical"],(function $module_LexicalText_prod(global,require,requireDynamic,requireLazy,module,exports){ "use strict";function e(){return require("Lexical").$getRoot().getTextContent();}function n(t,n){if(n===void 0){n=!0;}if(t)return!1;var r=e();return n&&(r=r.trim()),""===r;}function r(e){if(!n(e,!1))return!1;var r=require("Lexical").$getRoot().getChildren(),o=r.length;if(o>1)return!1;for(var _e=0;_e1?_len-1:0),_key=1;_key<_len;_key++){e[_key-1]=arguments[_key];}for(var _t of e)r.append("v",_t);throw n.search=r.toString(),Error("Minified Lexical error #"+t+"; visit "+n.toString()+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings.");}exports.$canShowPlaceholder=r,exports.$canShowPlaceholderCurry=function(t){return function(){return r(t);};},exports.$findTextIntersectionFromCharacters=function(e,n){var r=e.getFirstChild(),o=0;t:for(;null!==r;){if(require("Lexical").$isElementNode(r)){var _t2=r.getFirstChild();if(null!==_t2){r=_t2;continue;}}else if(require("Lexical").$isTextNode(r)){var _t3=r.getTextContentSize();if(o+_t3>n)return{node:r,offset:n-o};o+=_t3;}var _e2=r.getNextSibling();if(null!==_e2){r=_e2;continue;}var i=r.getParent();for(;null!==i;){var _t4=i.getNextSibling();if(null!==_t4){r=_t4;continue t;}i=i.getParent();}break;}return null;},exports.$isRootTextContentEmpty=n,exports.$isRootTextContentEmptyCurry=function(t,e){return function(){return n(t,e);};},exports.$rootTextContent=e,exports.registerLexicalTextEntity=function(e,n,r,i){var s=function s(t){return t instanceof r;},l=function l(e){var n=require("Lexical").$createTextNode(e.getTextContent());n.setFormat(e.getFormat()),e.replace(n);};return[e.registerNodeTransform(require("Lexical").TextNode,function(e){if(!e.isSimpleText())return;var r,u=e.getPreviousSibling(),c=e.getTextContent(),f=e;if(require("Lexical").$isTextNode(u)){var _t5=u.getTextContent(),_r2=n(_t5+c);if(s(u)){if(null===_r2||0!==function(t){return t.getLatest().__mode;}(u))return void l(u);{var _n4=_r2.end-_t5.length;if(_n4>0){var _r3=_t5+c.slice(0,_n4);if(u.select(),u.setTextContent(_r3),_n4===c.length)e.remove();else{var _t6=c.slice(_n4);e.setTextContent(_t6);}return;}}}else if(null===_r2||_r2.start<_t5.length)return;}var d=0;for(;;){var _f$splitText,_f$splitText2;r=n(c);var _e3=void 0,a=null===r?"":c.slice(r.end);if(c=a,""===a){var _e4=f.getNextSibling();if(require("Lexical").$isTextNode(_e4)){a=f.getTextContent()+_e4.getTextContent();var _t7=n(a);if(null===_t7)return void(s(_e4)?l(_e4):_e4.markDirty());if(0!==_t7.start)return;}}if(null===r)return;if(0===r.start&&require("Lexical").$isTextNode(u)&&u.isTextEntity()){d+=r.end;continue;}0===r.start?(_f$splitText=f.splitText(r.end),_e3=_f$splitText[0],f=_f$splitText[1],_f$splitText):(_f$splitText2=f.splitText(r.start+d,r.end+d),_e3=_f$splitText2[1],f=_f$splitText2[2],_f$splitText2),void 0===_e3&&o(165,"nodeToReplace");var x=i(_e3);if(x.setFormat(_e3.getFormat()),_e3.replace(x),null==f)return;d=0,u=x;}}),e.registerNodeTransform(r,function(e){var r=e.getTextContent(),o=n(r);if(null===o||0!==o.start)return void l(e);if(r.length>o.end)return void e.splitText(o.end);var i=e.getPreviousSibling();require("Lexical").$isTextNode(i)&&i.isTextEntity()&&(l(i),l(e));var u=e.getNextSibling();require("Lexical").$isTextNode(u)&&u.isTextEntity()&&(l(u),s(e)&&l(e));})];};}),null); /** * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. * * * @fullSyntaxTransform * @es6-async_DO_NOT_USE * @generated SignedSource<<7436c8dc7367c270e1db7b9c3652e01f>> * * @nolint * @oncall lexical_web_text_editor * @preserve-invariant-messages * @preserve-whitespace * @preventMunge */__d("useLexicalEditable.prod",["LexicalComposerContext","react"],(function $module_useLexicalEditable_prod(global,require,requireDynamic,requireLazy,module,exports){ "use strict";var _require_closure_react;var t=_require_closure_react||(_require_closure_react=require("react"));var n="undefined"!=typeof window&&void 0!==window.document&&void 0!==window.document.createElement?t.useLayoutEffect:t.useEffect;function i(e){return{initialValueFn:function initialValueFn(){return e.isEditable();},subscribe:function subscribe(t){return e.registerEditableListener(t);}};}exports.useLexicalEditable=function(){return function(i){var _e$useLexicalComposer=require("LexicalComposerContext").useLexicalComposerContext(),r=_e$useLexicalComposer[0],u=t.useMemo(function(){return i(r);},[r,i]),_t$useState=t.useState(function(){return u.initialValueFn();}),o=_t$useState[0],s=_t$useState[1],c=t.useRef(o);return n(function(){var e=u.initialValueFn,t=u.subscribe,n=e();return c.current!==n&&(c.current=n,s(n)),t(function(e){c.current=e,s(e);});},[u,i]),o;}(i);};}),null); /** * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. * * * @fullSyntaxTransform * @es6-async_DO_NOT_USE * @generated SignedSource<<16f22a53fef6760f4bf37e7f7c631e39>> * * @nolint * @oncall lexical_web_text_editor * @preserve-invariant-messages * @preserve-whitespace * @preventMunge */__d("useLexicalIsTextContentEmpty.prod",["LexicalText","react"],(function $module_useLexicalIsTextContentEmpty_prod(global,require,requireDynamic,requireLazy,module,exports){ "use strict";var _require_closure_react;var t=_require_closure_react||(_require_closure_react=require("react"));var o="undefined"!=typeof window&&void 0!==window.document&&void 0!==window.document.createElement?t.useLayoutEffect:t.useEffect;exports.useLexicalIsTextContentEmpty=function(n,i){var _t$useState=t.useState(n.getEditorState().read(require("LexicalText").$isRootTextContentEmptyCurry(n.isComposing(),i))),r=_t$useState[0],s=_t$useState[1];return o(function(){return n.registerUpdateListener(function(_ref){var t=_ref.editorState;var o=n.isComposing(),r=t.read(require("LexicalText").$isRootTextContentEmptyCurry(o,i));s(r);});},[n,i]),r;};}),null);