;!function(){try { var e="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof global?global:"undefined"!=typeof window?window:"undefined"!=typeof self?self:{},n=(new e.Error).stack;n&&((e._debugIds|| (e._debugIds={}))[n]="edce0552-fed1-2e11-98e4-9883422cf1af")}catch(e){}}(); (globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,39491,e=>{"use strict";var t=e.i(733783),n=e.i(908464),i=e.i(552038),a=e.i(703920),r=e.i(294237),o=e.i(472361),l=e.i(899272),s=e.i(382862);let u=(0,r.cva)("enabled:active:scale-98 inline-flex shrink-0 cursor-pointer items-center justify-center rounded-round focus:not-focus-visible:outline-none transition-transform duration-150 ease-in-out disabled:pointer-events-none disabled:opacity-50 select-none",{defaultVariants:{size:"36",variant:"primary"},variants:{size:{20:"size-5",24:"size-6",28:"size-7",32:"size-8","32-24":"size-8",36:"size-9","36-24":"size-9",48:"size-12"},variant:{...a.baseButtonVariants}}}),c={20:14,24:20,28:20,32:20,"32-24":24,36:28,"36-24":24,48:24},d=e=>e,f=o.forwardRef(function(e,a){let r,o,f,p,m,x,v,g,h,b,y,C,S,w,j,N,D,P,R,I,E,T,k,z,O=(0,n.c)(46);O[0]!==e?({asChild:w,className:g,icon:r,iconClassName:h,label:b,size:S,variant:N,analyticsEvent:f,analyticsActionOverride:o,analyticsMetadata:m,analyticsMediaId:p,analyticsTargetArea:v,analyticsTarget:x,onClick:y,children:j,...C}=e,O[0]=e,O[1]=r,O[2]=o,O[3]=f,O[4]=p,O[5]=m,O[6]=x,O[7]=v,O[8]=g,O[9]=h,O[10]=b,O[11]=y,O[12]=C,O[13]=S,O[14]=w,O[15]=j,O[16]=N):(r=O[1],o=O[2],f=O[3],p=O[4],m=O[5],x=O[6],v=O[7],g=O[8],h=O[9],b=O[10],y=O[11],C=O[12],S=O[13],w=O[14],j=O[15],N=O[16]);let _=void 0===j?d:j,A=void 0!==w&&w?i.Slot:"button",F=c[S??"32"]??20,{wrapWithAnalytics:B}=(0,s.useAnalyticsHandler)(f,x??"IconButton",o,m,p,v),M=("on-media"===N||"on-media-borderless"===N)&&"dark";O[17]!==M?(D=(0,l.cn)("contents",M),O[17]=M,O[18]=D):D=O[18];let L=b;return O[19]!==g||O[20]!==S||O[21]!==N?(P=(0,l.cn)(u({className:g,size:S,variant:N})),O[19]=g,O[20]=S,O[21]=N,O[22]=P):P=O[22],O[23]!==y||O[24]!==B?(R=B(y),O[23]=y,O[24]=B,O[25]=R):R=O[25],O[26]!==h?(I=(0,l.cn)("m-0.5",h),O[26]=h,O[27]=I):I=O[27],O[28]!==r||O[29]!==F||O[30]!==I?(E=(0,t.jsx)(r,{className:I,size:F}),O[28]=r,O[29]=F,O[30]=I,O[31]=E):E=O[31],O[32]!==_||O[33]!==E?(T=_(E),O[32]=_,O[33]=E,O[34]=T):T=O[34],O[35]!==A||O[36]!==C||O[37]!==a||O[38]!==T||O[39]!==L||O[40]!==P||O[41]!==R?(k=(0,t.jsx)(A,{ref:a,"aria-label":L,className:P,"data-slot":"button",onClick:R,...C,children:T}),O[35]=A,O[36]=C,O[37]=a,O[38]=T,O[39]=L,O[40]=P,O[41]=R,O[42]=k):k=O[42],O[43]!==k||O[44]!==D?(z=(0,t.jsx)("div",{className:D,children:k}),O[43]=k,O[44]=D,O[45]=z):z=O[45],z});f.displayName="IconButton",e.s(["IconButton",0,f])},124845,e=>{"use strict";var t=e.i(472361),n=e.i(943473),i=e.i(443644),a=e.i(833946),r=e.i(168048),o=e.i(559451),l=e.i(788115),s=e.i(322358),u=e.i(713792),c=e.i(708085),d=e.i(421482),f=e.i(882657),p=e.i(813579),m=e.i(73772),x=e.i(688164),v=e.i(733783),g="Dialog",[h,b]=(0,a.createContextScope)(g),[y,C]=h(g),S=e=>{let{__scopeDialog:n,children:i,open:a,defaultOpen:l,onOpenChange:s,modal:u=!0}=e,c=t.useRef(null),d=t.useRef(null),[f,p]=(0,o.useControllableState)({prop:a,defaultProp:l??!1,onChange:s,caller:g});return(0,v.jsx)(y,{scope:n,triggerRef:c,contentRef:d,contentId:(0,r.useId)(),titleId:(0,r.useId)(),descriptionId:(0,r.useId)(),open:f,onOpenChange:p,onOpenToggle:t.useCallback(()=>p(e=>!e),[p]),modal:u,children:i})};S.displayName=g;var w="DialogTrigger",j=t.forwardRef((e,t)=>{let{__scopeDialog:a,...r}=e,o=C(w,a),l=(0,i.useComposedRefs)(t,o.triggerRef);return(0,v.jsx)(d.Primitive.button,{type:"button","aria-haspopup":"dialog","aria-expanded":o.open,"aria-controls":o.open?o.contentId:void 0,"data-state":K(o.open),...r,ref:l,onClick:(0,n.composeEventHandlers)(e.onClick,o.onOpenToggle)})});j.displayName=w;var N="DialogPortal",[D,P]=h(N,{forceMount:void 0}),R=e=>{let{__scopeDialog:n,forceMount:i,children:a,container:r}=e,o=C(N,n);return(0,v.jsx)(D,{scope:n,forceMount:i,children:t.Children.map(a,e=>(0,v.jsx)(c.Presence,{present:i||o.open,children:(0,v.jsx)(u.Portal,{asChild:!0,container:r,children:e})}))})};R.displayName=N;var I="DialogOverlay",E=t.forwardRef((e,t)=>{let n=P(I,e.__scopeDialog),{forceMount:i=n.forceMount,...a}=e,r=C(I,e.__scopeDialog);return r.modal?(0,v.jsx)(c.Presence,{present:i||r.open,children:(0,v.jsx)(k,{...a,ref:t})}):null});E.displayName=I;var T=(0,x.createSlot)("DialogOverlay.RemoveScroll"),k=t.forwardRef((e,t)=>{let{__scopeDialog:n,...a}=e,r=C(I,n),o=(0,l.useDismissableLayerSurface)(),s=(0,i.useComposedRefs)(t,o);return(0,v.jsx)(p.RemoveScroll,{as:T,allowPinchZoom:!0,shards:[r.contentRef],children:(0,v.jsx)(d.Primitive.div,{"data-state":K(r.open),...a,ref:s,style:{pointerEvents:"auto",...a.style}})})}),z="DialogContent",O=t.forwardRef((e,t)=>{let n=P(z,e.__scopeDialog),{forceMount:i=n.forceMount,...a}=e,r=C(z,e.__scopeDialog);return(0,v.jsx)(c.Presence,{present:i||r.open,children:r.modal?(0,v.jsx)(_,{...a,ref:t}):(0,v.jsx)(A,{...a,ref:t})})});O.displayName=z;var _=t.forwardRef((e,a)=>{let r=C(z,e.__scopeDialog),o=t.useRef(null),l=(0,i.useComposedRefs)(a,r.contentRef,o);return t.useEffect(()=>{let e=o.current;if(e)return(0,m.hideOthers)(e)},[]),(0,v.jsx)(F,{...e,ref:l,trapFocus:r.open,disableOutsidePointerEvents:r.open,onCloseAutoFocus:(0,n.composeEventHandlers)(e.onCloseAutoFocus,e=>{e.preventDefault(),r.triggerRef.current?.focus()}),onPointerDownOutside:(0,n.composeEventHandlers)(e.onPointerDownOutside,e=>{let t=e.detail.originalEvent,n=0===t.button&&!0===t.ctrlKey;(2===t.button||n)&&e.preventDefault()}),onFocusOutside:(0,n.composeEventHandlers)(e.onFocusOutside,e=>e.preventDefault())})}),A=t.forwardRef((e,n)=>{let i=C(z,e.__scopeDialog),a=t.useRef(!1),r=t.useRef(!1);return(0,v.jsx)(F,{...e,ref:n,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:t=>{e.onCloseAutoFocus?.(t),t.defaultPrevented||(a.current||i.triggerRef.current?.focus(),t.preventDefault()),a.current=!1,r.current=!1},onInteractOutside:t=>{e.onInteractOutside?.(t),t.defaultPrevented||(a.current=!0,"pointerdown"===t.detail.originalEvent.type&&(r.current=!0));let n=t.target;i.triggerRef.current?.contains(n)&&t.preventDefault(),"focusin"===t.detail.originalEvent.type&&r.current&&t.preventDefault()}})}),F=t.forwardRef((e,t)=>{let{__scopeDialog:n,trapFocus:i,onOpenAutoFocus:a,onCloseAutoFocus:r,...o}=e,u=C(z,n);return(0,f.useFocusGuards)(),(0,v.jsx)(v.Fragment,{children:(0,v.jsx)(s.FocusScope,{asChild:!0,loop:!0,trapped:i,onMountAutoFocus:a,onUnmountAutoFocus:r,children:(0,v.jsx)(l.DismissableLayer,{role:"dialog",id:u.contentId,"aria-describedby":u.descriptionId,"aria-labelledby":u.titleId,"data-state":K(u.open),...o,ref:t,deferPointerDownOutside:!0,onDismiss:()=>u.onOpenChange(!1)})})})}),B="DialogTitle",M=t.forwardRef((e,t)=>{let{__scopeDialog:n,...i}=e,a=C(B,n);return(0,v.jsx)(d.Primitive.h2,{id:a.titleId,...i,ref:t})});M.displayName=B;var L="DialogDescription",H=t.forwardRef((e,t)=>{let{__scopeDialog:n,...i}=e,a=C(L,n);return(0,v.jsx)(d.Primitive.p,{id:a.descriptionId,...i,ref:t})});H.displayName=L;var $="DialogClose",q=t.forwardRef((e,t)=>{let{__scopeDialog:i,...a}=e,r=C($,i);return(0,v.jsx)(d.Primitive.button,{type:"button",...a,ref:t,onClick:(0,n.composeEventHandlers)(e.onClick,()=>r.onOpenChange(!1))})});function K(e){return e?"open":"closed"}q.displayName=$,e.s(["Close",0,q,"Content",0,O,"Description",0,H,"Overlay",0,E,"Portal",0,R,"Root",0,S,"Title",0,M,"Trigger",0,j])},213434,e=>{"use strict";var t=e.i(733783),n=e.i(908464),i=e.i(124845),a=e.i(571613),r=e.i(267989),o=e.i(899272),l=e.i(39491),s=e.i(314516);function u(e){let a,r,o=(0,n.c)(4);return o[0]!==e?({...a}=e,o[0]=e,o[1]=a):a=o[1],o[2]!==a?(r=(0,t.jsx)(i.Portal,{"data-slot":"dialog-portal",...a}),o[2]=a,o[3]=r):r=o[3],r}function c(e){let a,r,o=(0,n.c)(4);return o[0]!==e?({...a}=e,o[0]=e,o[1]=a):a=o[1],o[2]!==a?(r=(0,t.jsx)(i.Close,{"data-slot":"dialog-close",...a}),o[2]=a,o[3]=r):r=o[3],r}e.s(["Dialog",0,function(e){let a,r,o=(0,n.c)(4);return o[0]!==e?({...a}=e,o[0]=e,o[1]=a):a=o[1],o[2]!==a?(r=(0,t.jsx)(i.Root,{"data-slot":"dialog",...a}),o[2]=a,o[3]=r):r=o[3],r},"DialogClose",0,c,"DialogContent",0,function(e){let d,f,p,m,x,v,g,h,b,y,C,S,w,j,N,D,P,R,I,E,T,k=(0,n.c)(44);k[0]!==e?({className:p,contentClassName:m,backgroundClassName:d,overlayClassName:v,children:f,showCloseButton:h,header:x,...g}=e,k[0]=e,k[1]=d,k[2]=f,k[3]=p,k[4]=m,k[5]=x,k[6]=v,k[7]=g,k[8]=h):(d=k[1],f=k[2],p=k[3],m=k[4],x=k[5],v=k[6],g=k[7],h=k[8]);let z=void 0===h||h,O=v??"backdrop-blur-elevation-01";return k[9]!==O?(b=(0,o.cn)("data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 bg-fill-dialog-overlay fixed inset-0 z-50",O),k[9]=O,k[10]=b):b=k[10],k[11]!==b?(y=(0,t.jsx)(i.Overlay,{"data-slot":"dialog-overlay",className:b}),k[11]=b,k[12]=y):y=k[12],k[13]!==p?(C=!p?.includes("max-h")&&"max-h-[calc(100dvh-4rem)]",k[13]=p,k[14]=C):C=k[14],k[15]!==p?(S=!p?.includes("max-w")&&"max-w-[calc(100%-2rem)] sm:max-w-lg",k[15]=p,k[16]=S):S=k[16],k[17]!==p||k[18]!==C||k[19]!==S?(w=(0,o.cn)("group/dialog-content data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 shadow-blur-elevation-03 rounded-32 fixed top-[50%] left-[50%] z-50 flex w-full translate-x-[-50%] translate-y-[-50%] flex-col gap-0 overflow-hidden duration-200 outline-none",C,S,p),k[17]=p,k[18]=C,k[19]=S,k[20]=w):w=k[20],k[21]!==d?(j=(0,o.cn)("backdrop-blur-elevation-03 bg-fill-dialog absolute inset-0 -z-10 rounded-[inherit]",d),k[21]=d,k[22]=j):j=k[22],k[23]!==j?(N=(0,t.jsx)("div",{className:j}),k[23]=j,k[24]=N):N=k[24],k[25]!==x||k[26]!==z?(D=(x||z)&&(0,t.jsxs)(s.Flexbox,{direction:"row",gap:2,alignItems:"start",className:"shrink-0 ps-6 pe-4 pt-4 pb-4",children:[z&&(0,t.jsx)("div",{"aria-hidden":!0,className:"w-5 shrink-0 sm:hidden"}),x,z&&(0,t.jsx)(c,{asChild:!0,children:(0,t.jsx)(l.IconButton,{"data-slot":"dialog-close",icon:a.default,label:r.fbs._("Close",null,{hk:"UaJ3l"}),variant:"elevated",size:"28"})})]}),k[25]=x,k[26]=z,k[27]=D):D=k[27],k[28]!==m?(P=(0,o.cn)("min-h-0 flex-1 overflow-y-auto px-6 pb-6",m),k[28]=m,k[29]=P):P=k[29],k[30]!==f||k[31]!==P?(R=(0,t.jsx)("div",{className:P,children:f}),k[30]=f,k[31]=P,k[32]=R):R=k[32],k[33]!==D||k[34]!==R?(I=(0,t.jsxs)("div",{className:"relative flex min-h-0 flex-1 flex-col",children:[D,R]}),k[33]=D,k[34]=R,k[35]=I):I=k[35],k[36]!==g||k[37]!==I||k[38]!==w||k[39]!==N?(E=(0,t.jsxs)(i.Content,{"data-slot":"dialog-content",className:w,...g,children:[N,I]}),k[36]=g,k[37]=I,k[38]=w,k[39]=N,k[40]=E):E=k[40],k[41]!==E||k[42]!==y?(T=(0,t.jsxs)(u,{"data-slot":"dialog-portal",children:[y,E]}),k[41]=E,k[42]=y,k[43]=T):T=k[43],T},"DialogContentPrimitive",0,function(e){let a,r,l,s,u=(0,n.c)(8);return u[0]!==e?({className:a,...r}=e,u[0]=e,u[1]=a,u[2]=r):(a=u[1],r=u[2]),u[3]!==a?(l=(0,o.cn)("data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 fixed z-50 outline-none",a),u[3]=a,u[4]=l):l=u[4],u[5]!==r||u[6]!==l?(s=(0,t.jsx)(i.Content,{"data-slot":"dialog-content-primitive",className:l,...r}),u[5]=r,u[6]=l,u[7]=s):s=u[7],s},"DialogDescription",0,function(e){let a,r,l,s,u=(0,n.c)(8);return u[0]!==e?({className:a,...r}=e,u[0]=e,u[1]=a,u[2]=r):(a=u[1],r=u[2]),u[3]!==a?(l=(0,o.cn)("text-body text-text-secondary",a),u[3]=a,u[4]=l):l=u[4],u[5]!==r||u[6]!==l?(s=(0,t.jsx)(i.Description,{"data-slot":"dialog-description",className:l,...r}),u[5]=r,u[6]=l,u[7]=s):s=u[7],s},"DialogHeader",0,function(e){let i,a,r,l,u=(0,n.c)(8);return u[0]!==e?({className:i,...a}=e,u[0]=e,u[1]=i,u[2]=a):(i=u[1],a=u[2]),u[3]!==i?(r=(0,o.cn)("flex min-h-7 flex-1 justify-center gap-1 text-center has-data-[slot=dialog-description]:h-auto sm:text-start",i),u[3]=i,u[4]=r):r=u[4],u[5]!==a||u[6]!==r?(l=(0,t.jsx)(s.Flexbox,{"data-slot":"dialog-header",direction:"column",gap:1,className:r,...a}),u[5]=a,u[6]=r,u[7]=l):l=u[7],l},"DialogOverlay",0,function(e){let a,r,l,s,u=(0,n.c)(8);return u[0]!==e?({className:a,...r}=e,u[0]=e,u[1]=a,u[2]=r):(a=u[1],r=u[2]),u[3]!==a?(l=(0,o.cn)("data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 bg-fill-dialog-overlay backdrop-blur-elevation-01 fixed inset-0 z-50",a),u[3]=a,u[4]=l):l=u[4],u[5]!==r||u[6]!==l?(s=(0,t.jsx)(i.Overlay,{"data-slot":"dialog-overlay",className:l,...r}),u[5]=r,u[6]=l,u[7]=s):s=u[7],s},"DialogPortal",0,u,"DialogTitle",0,function(e){let a,r,l,s,u=(0,n.c)(8);return u[0]!==e?({className:a,...r}=e,u[0]=e,u[1]=a,u[2]=r):(a=u[1],r=u[2]),u[3]!==a?(l=(0,o.cn)("text-title-3-emphasized flex flex-col justify-center",a),u[3]=a,u[4]=l):l=u[4],u[5]!==r||u[6]!==l?(s=(0,t.jsx)(i.Title,{"data-slot":"dialog-title",className:l,...r}),u[5]=r,u[6]=l,u[7]=s):s=u[7],s},"DialogTrigger",0,function(e){let a,r,o=(0,n.c)(4);return o[0]!==e?({...a}=e,o[0]=e,o[1]=a):a=o[1],o[2]!==a?(r=(0,t.jsx)(i.Trigger,{asChild:!0,"data-slot":"dialog-trigger",...a}),o[2]=a,o[3]=r):r=o[3],r}])},304581,e=>{"use strict";var t=e.i(365895);e.s(["useEctoNextEnabled",0,function(){return(0,t.useMcBool)("caed903e",!1)}])},935054,461885,e=>{"use strict";var t=e.i(733783),n=e.i(908464),i=e.i(472361),a=e.i(899272);let r={regular:"px-3 py-2.5 h-11 rounded-16",small:"px-2.5 py-1.5 h-9 rounded-12"},o=i.forwardRef(function(e,i){let o,l,s,u,c,d,f=(0,n.c)(13);f[0]!==e?({className:o,size:s,type:u,...l}=e,f[0]=e,f[1]=o,f[2]=l,f[3]=s,f[4]=u):(o=f[1],l=f[2],s=f[3],u=f[4]);let p=r[void 0===s?"regular":s];return f[5]!==o||f[6]!==p?(c=(0,a.cn)("placeholder:text-text-secondary bg-bg-secondary text-text-primary text-subheadline w-full min-w-0 -outline-offset-1 focus-visible:outline disabled:pointer-events-none disabled:cursor-not-allowed disabled:opacity-50",p,o),f[5]=o,f[6]=p,f[7]=c):c=f[7],f[8]!==l||f[9]!==i||f[10]!==c||f[11]!==u?(d=(0,t.jsx)("input",{ref:i,type:u,"data-slot":"input",className:c,...l}),f[8]=l,f[9]=i,f[10]=c,f[11]=u,f[12]=d):d=f[12],d}),l=i.forwardRef(function(e,i){let o,l,s,u,c,d,f,p,m,x,v,g,h,b,y,C,S,w,j,N=(0,n.c)(40);N[0]!==e?({className:l,label:c,required:f,requiredLabel:m,caption:o,startIcon:p,endIcon:s,size:x,error:u,...d}=e,N[0]=e,N[1]=o,N[2]=l,N[3]=s,N[4]=u,N[5]=c,N[6]=d,N[7]=f,N[8]=p,N[9]=m,N[10]=x):(o=N[1],l=N[2],s=N[3],u=N[4],c=N[5],d=N[6],f=N[7],p=N[8],m=N[9],x=N[10]);let D=void 0===m?"(required)":m,P=void 0===x?"regular":x;N[11]===Symbol.for("react.memo_cache_sentinel")?(v=(0,a.cn)("text-subheadline text-text-secondary mb-1 block","px-2"),N[11]=v):v=N[11];let R=f&&D;N[12]!==c||N[13]!==R?(g=(0,t.jsxs)("label",{className:v,children:[c," ",R]}),N[12]=c,N[13]=R,N[14]=g):g=N[14],N[15]!==p?(h=p&&(0,t.jsx)("div",{className:"text-text-tertiary absolute start-3 flex items-center",children:p}),N[15]=p,N[16]=h):h=N[16];let I=r[P],E=p&&"ps-10",T=s&&"pe-10",k=u&&"outline-icon-destructive outline-2! -outline-offset-2";return N[17]!==l||N[18]!==k||N[19]!==I||N[20]!==E||N[21]!==T?(b=(0,a.cn)("placeholder:text-text-secondary bg-bg-secondary text-text-primary text-subheadline w-full min-w-0 -outline-offset-1 focus-visible:outline disabled:pointer-events-none disabled:cursor-not-allowed disabled:opacity-50",I,E,T,k,l),N[17]=l,N[18]=k,N[19]=I,N[20]=E,N[21]=T,N[22]=b):b=N[22],N[23]!==d||N[24]!==i||N[25]!==b?(y=(0,t.jsx)("input",{ref:i,"data-slot":"input",className:b,...d}),N[23]=d,N[24]=i,N[25]=b,N[26]=y):y=N[26],N[27]!==s?(C=s&&(0,t.jsx)("div",{className:"text-text-tertiary absolute end-3 flex items-center",children:s}),N[27]=s,N[28]=C):C=N[28],N[29]!==y||N[30]!==C||N[31]!==h?(S=(0,t.jsxs)("div",{className:"relative flex items-center",children:[h,y,C]}),N[29]=y,N[30]=C,N[31]=h,N[32]=S):S=N[32],N[33]!==o||N[34]!==u?(w=o&&(0,t.jsx)("p",{className:(0,a.cn)("text-body-small mt-1","px-2",u?"text-text-destructive":"text-text-tertiary"),children:o}),N[33]=o,N[34]=u,N[35]=w):w=N[35],N[36]!==S||N[37]!==w||N[38]!==g?(j=(0,t.jsxs)("div",{className:"w-full",children:[g,S,w]}),N[36]=S,N[37]=w,N[38]=g,N[39]=j):j=N[39],j});e.s(["Input",0,o,"InputField",0,l],461885);let s=i.forwardRef(function({testid:e,...n},i){return(0,t.jsx)("input",{...n,"data-testid":e,ref:i})});s.displayName="BaseInput";let u={regular:"px-3 py-2.5 h-11 rounded-16",small:"px-2.5 py-1.5 h-9 rounded-12"};function c(e){let i,r,o,l,c,d,f,p=(0,n.c)(14);p[0]!==e?({className:i,size:l,type:c,ref:o,...r}=e,p[0]=e,p[1]=i,p[2]=r,p[3]=o,p[4]=l,p[5]=c):(i=p[1],r=p[2],o=p[3],l=p[4],c=p[5]);let m=u[void 0===l?"regular":l];return p[6]!==i||p[7]!==m?(d=(0,a.cn)("placeholder:text-text-secondary bg-bg-secondary text-text-primary text-subheadline w-full min-w-0 -outline-offset-1 focus-visible:outline disabled:pointer-events-none disabled:cursor-not-allowed disabled:opacity-50",m,i),p[6]=i,p[7]=m,p[8]=d):d=p[8],p[9]!==r||p[10]!==o||p[11]!==d||p[12]!==c?(f=(0,t.jsx)(s,{ref:o,type:c,"data-slot":"input",className:d,...r}),p[9]=r,p[10]=o,p[11]=d,p[12]=c,p[13]=f):f=p[13],f}var d=e.i(304581);e.s(["Input",0,function(e){let i,a=(0,n.c)(3),r=(0,d.useEctoNextEnabled)();return a[0]!==r||a[1]!==e?(i=r?(0,t.jsx)(c,{...e}):(0,t.jsx)(o,{...e}),a[0]=r,a[1]=e,a[2]=i):i=a[2],i}],935054)},30512,e=>{"use strict";var t=e.i(472361),n=e.i(943473),i=e.i(833946),a=e.i(559451),r=e.i(91467),o=e.i(443644),l=e.i(421482),s=e.i(708085),u=e.i(168048),c=e.i(733783),d="Collapsible",[f,p]=(0,i.createContextScope)(d),[m,x]=f(d),v=t.forwardRef((e,n)=>{let{__scopeCollapsible:i,open:r,defaultOpen:o,disabled:s,onOpenChange:f,...p}=e,[x,v]=(0,a.useControllableState)({prop:r,defaultProp:o??!1,onChange:f,caller:d});return(0,c.jsx)(m,{scope:i,disabled:s,contentId:(0,u.useId)(),open:x,onOpenToggle:t.useCallback(()=>v(e=>!e),[v]),children:(0,c.jsx)(l.Primitive.div,{"data-state":S(x),"data-disabled":s?"":void 0,...p,ref:n})})});v.displayName=d;var g="CollapsibleTrigger",h=t.forwardRef((e,t)=>{let{__scopeCollapsible:i,...a}=e,r=x(g,i);return(0,c.jsx)(l.Primitive.button,{type:"button","aria-controls":r.open?r.contentId:void 0,"aria-expanded":r.open||!1,"data-state":S(r.open),"data-disabled":r.disabled?"":void 0,disabled:r.disabled,...a,ref:t,onClick:(0,n.composeEventHandlers)(e.onClick,r.onOpenToggle)})});h.displayName=g;var b="CollapsibleContent",y=t.forwardRef((e,t)=>{let{forceMount:n,...i}=e,a=x(b,e.__scopeCollapsible);return(0,c.jsx)(s.Presence,{present:n||a.open,children:({present:e})=>(0,c.jsx)(C,{...i,ref:t,present:e})})});y.displayName=b;var C=t.forwardRef((e,n)=>{let{__scopeCollapsible:i,present:a,children:s,...u}=e,d=x(b,i),[f,p]=t.useState(a),m=t.useRef(null),v=(0,o.useComposedRefs)(n,m),g=t.useRef(0),h=g.current,y=t.useRef(0),C=y.current,w=d.open||f,j=t.useRef(w),N=t.useRef(void 0);return t.useEffect(()=>{let e=requestAnimationFrame(()=>j.current=!1);return()=>cancelAnimationFrame(e)},[]),(0,r.useLayoutEffect)(()=>{let e=m.current;if(e){N.current=N.current||{transitionDuration:e.style.transitionDuration,animationName:e.style.animationName},e.style.transitionDuration="0s",e.style.animationName="none";let t=e.getBoundingClientRect();g.current=t.height,y.current=t.width,j.current||(e.style.transitionDuration=N.current.transitionDuration,e.style.animationName=N.current.animationName),p(a)}},[d.open,a]),(0,c.jsx)(l.Primitive.div,{"data-state":S(d.open),"data-disabled":d.disabled?"":void 0,id:d.contentId,hidden:!w,...u,ref:v,style:{"--radix-collapsible-content-height":h?`${h}px`:void 0,"--radix-collapsible-content-width":C?`${C}px`:void 0,...e.style},children:w&&s})});function S(e){return e?"open":"closed"}e.s(["CollapsibleContent",0,y,"CollapsibleTrigger",0,h,"Content",0,y,"Root",0,v,"Trigger",0,h])},336576,e=>{"use strict";let t=e.i(472361).default.createContext(null);e.s(["SidebarContext",0,t])},993139,e=>{"use strict";var t=e.i(908464),n=e.i(472361);let i=new Map,a=new Map,r=new Map,o=new Set,l=new Set,s=new Set;function u(){o.forEach(e=>e())}function c(){l.forEach(e=>e())}function d(){s.forEach(e=>e())}function f(e,t){return null==e||null==t?null==e&&null==t:e.stage===t.stage&&e.title===t.title&&e.detail===t.detail&&e.currentChainPass===t.currentChainPass&&e.totalChainPasses===t.totalChainPasses&&e.totalChains===t.totalChains&&e.successfulChains===t.successfulChains&&e.failedChains===t.failedChains&&e.completedChainIndex===t.completedChainIndex&&e.chainSucceeded===t.chainSucceeded}function p(e){let t=`${e.title} ${e.detail}`.match(/\bchain\s+(\d+)\b/i);if(!t?.[1])return null;let n=Number.parseInt(t[1],10);return!Number.isFinite(n)||n<=0?null:n}function m(e){return"chain_started"===e.stage||"chain_iteration_completed"===e.stage?e.stage:"unknown"!==e.stage||null==p(e)?null:`${e.title} ${e.detail}`.toLowerCase().includes("started")?"chain_started":null!=e.currentChainPass&&e.currentChainPass>0?"chain_iteration_completed":null}function x(e){switch(m(e)){case"chain_started":return 1;case"chain_iteration_completed":return 2;default:return 0}}function v(e,t){let n=a.get(e);n&&n.startTime===t.startTime&&n.durationSeconds===t.durationSeconds||(a.set(e,t),c())}function g(e){let i,a=(0,t.c)(2);a[0]!==e?(i=()=>e?r.get(e)??null:null,a[0]=e,a[1]=i):i=a[1];let o=i;return(0,n.useSyncExternalStore)(b,o,h)}function h(){return null}function b(e){return s.add(e),()=>{s.delete(e)}}function y(){return null}function C(e){return o.add(e),()=>{o.delete(e)}}function S(){return null}function w(e){return o.add(e),()=>{o.delete(e)}}function j(){return null}function N(e){return l.add(e),()=>{l.delete(e)}}let D=new Map,P=new Set;function R(){P.forEach(e=>e())}function I(){return!0}function E(e){return P.add(e),()=>{P.delete(e)}}let T=new Map,k=new Set;function z(){k.forEach(e=>e())}let O=new Map,_=new Set;function A(){_.forEach(e=>e())}let F=Object.freeze([]),B=new Map,M=new Set;function L(){M.forEach(e=>e())}e.s(["clearConversation",0,function(){i.clear(),a.clear(),r.clear(),D.clear(),T.clear(),O.clear(),B.clear(),u(),c(),d(),R(),z(),A(),L()},"clearHasSubagentRows",0,function(e){O.has(e)&&(O.delete(e),A())},"clearSubtitleArtifacts",0,function(e){B.has(e)&&(B.delete(e),L())},"getStreamingMessageId",0,function(){for(let[e,t]of i)if(t.isStreaming)return e;return null},"initializeTiming",0,function(e){v(e,{startTime:Date.now(),durationSeconds:null})},"registerSections",0,function(e,t){let n=i.get(e);n&&n.conversationId===t.conversationId&&n.tabs===t.tabs&&n.sections===t.sections&&n.panelTitle===t.panelTitle&&n.isStreaming===t.isStreaming&&n.sourcesKey===t.sourcesKey&&n.clientSources===t.clientSources&&n.autoCloseSecondaryScreen===t.autoCloseSecondaryScreen||(i.set(e,t),u())},"setBigBrainStatus",0,function(e,t){let n=r.get(e)??null,i=t??null;if(null==n&&null==i)return;if(null==i){r.delete(e),d();return}let a=!f(n?.latestStatus,i),o=n?.perChainStatuses??[],l=function(e){if(0===x(e))return null;let t=e.completedChainIndex;return null==t||t<0?p(e):t+1}(i);if(null!=l){let e=function(e,t){let n=m(e);if(null==n)return e;let i=null!=e.completedChainIndex&&e.completedChainIndex>=0?e.completedChainIndex:t-1;return e.stage===n&&e.completedChainIndex===i?e:{...e,stage:n,completedChainIndex:i}}(i,l),t=o.find(e=>e.chainNumber===l);t?function(e,t){let n=e.status.currentChainPass??0,i=t.currentChainPass??0;if(i!==n)return i>n;let a=x(e.status),r=x(t);return r!==a?r>a:!f(e.status,t)}(t,e)&&(o=o.map(t=>t.chainNumber===l?{chainNumber:l,observedAt:Date.now(),status:e}:t)):o=[...o,{chainNumber:l,observedAt:Date.now(),status:e}].sort((e,t)=>e.chainNumber-t.chainNumber)}let s=o!==(n?.perChainStatuses??[]);(a||s)&&(r.set(e,{latestStatus:i,perChainStatuses:o,version:(n?.version??0)+1}),d())},"setHasSubagentRows",0,function(e,t){O.get(e)!==t&&(O.set(e,t),A())},"setSubtitleArtifacts",0,function(e,t){!function(e,t){if(e===t)return!0;if(e.length!==t.length)return!1;for(let n=0;n!e||(D.get(e)??!0),a[0]=e,a[1]=i):i=a[1];let r=i;return(0,n.useSyncExternalStore)(E,r,I)},"useLatestSectionsMessageIdForConversation",0,function(e){let a,r=(0,t.c)(2);r[0]!==e?(a=()=>(function(e){if(!e)return null;let t=null;for(let[n,a]of i)a.conversationId===e&&(t=n);return t})(e),r[0]=e,r[1]=a):a=r[1];let o=a;return(0,n.useSyncExternalStore)(C,o,y)},"useSections",0,function(e){let a,r=(0,t.c)(2);r[0]!==e?(a=()=>e?i.get(e)??null:null,r[0]=e,r[1]=a):a=r[1];let o=a;return(0,n.useSyncExternalStore)(w,o,S)},"useTiming",0,function(e){let i,r=(0,t.c)(2);r[0]!==e?(i=()=>e?a.get(e)??null:null,r[0]=e,r[1]=i):i=r[1];let o=i;return(0,n.useSyncExternalStore)(N,o,j)}])},262252,e=>{"use strict";var t=e.i(908464),n=e.i(472361),i=e.i(826158);function a(e,t,n){try{localStorage.setItem(t,n),e.notify()}catch{}}function r(e,t,n){try{let i=t(e);return void 0!==i?i:n}catch{return n}}let o=new Map;e.s(["useLocalStorageState",0,function(e,l,s,u){let c,d,f,p,m,x=(0,t.c)(16),v=void 0===s?JSON.parse:s,g=void 0===u?JSON.stringify:u;x[0]!==e?(c=function(e){let t=o.get(e);if(t)return t;let n=new Set,i={subscribe:e=>(n.add(e),()=>n.delete(e)),getSnapshot(){try{return localStorage.getItem(e)??void 0}catch{return}},getServerSnapshot(){},notify(){for(let e of n)e()}};return window.addEventListener("storage",t=>{t.storageArea===window.localStorage&&(t.key===e||null===t.key)&&i.notify()}),o.set(e,i),i}(e),x[0]=e,x[1]=c):c=x[1];let h=c,b=(0,n.useSyncExternalStore)(h.subscribe,h.getSnapshot,h.getServerSnapshot);x[2]!==l||x[3]!==v||x[4]!==b?(d=void 0===b?l:r(b,v,l),x[2]=l,x[3]=v,x[4]=b,x[5]=d):d=x[5];let y=d,C=(0,n.useRef)(g),S=(0,n.useRef)(v),w=(0,n.useRef)(l);x[6]!==l||x[7]!==v||x[8]!==g?(f=()=>{C.current=g,S.current=v,w.current=l},x[6]=l,x[7]=v,x[8]=g,x[9]=f):f=x[9],(0,n.useEffect)(f),x[10]!==e||x[11]!==h?(p=t=>{"function"!=typeof t?a(h,e,C.current(t)):(0,i.runExclusive)(e,()=>{let n=h.getSnapshot(),i=void 0===n?w.current:r(n,S.current,w.current);a(h,e,C.current(t(i)))})},x[10]=e,x[11]=h,x[12]=p):p=x[12];let j=p;return x[13]!==j||x[14]!==y?(m=[y,j],x[13]=j,x[14]=y,x[15]=m):m=x[15],m}])},278350,e=>{"use strict";var t=e.i(472361);let n=(0,t.createContext)(null),i={current:null};e.s(["EctoComposerActionContext",0,n,"getGlobalComposerAction",0,function(){return i.current},"setGlobalComposerAction",0,function(e){i.current=e},"useComposerAction",0,function(){return(0,t.useContext)(n)}])},373680,e=>{"use strict";e.s(["default",0,function(e,{leading:t,wait:n,maxWait:i}={}){let a,r,o,l=!0;function s(){if(void 0!==o){let t=o;o=void 0,e(...t)}}function u(){clearTimeout(r),r=void 0,a=void 0,!0!==t&&s(),l=!0}function c(){r=void 0,s()}function d(...s){!0===t&&l?(l=!1,o=void 0,e(...s)):o=s,clearTimeout(a),a=window.setTimeout(u,n),null!=i&&void 0===r&&(r=window.setTimeout(c,i))}return d.isPending=()=>null!=a||null!=r,d.reset=()=>{clearTimeout(a),clearTimeout(r),a=void 0,r=void 0,o=void 0,l=!0},d}])},415443,e=>{"use strict";let t=e.i(472361).default.createContext([]);e.s(["EctoScrollableAreaContext",0,t])},448,e=>{"use strict";var t=e.i(733783),n=e.i(908464),i=e.i(899272),a=e.i(898097),r=e.i(261205),o=e.i(294237),l=e.i(762554);let s=(0,o.cva)("cursor-pointer focus:not-focus-visible:outline-none [text-decoration-color:currentColor]",{variants:{variant:{primary:"text-text-primary-link font-semibold hover:underline active:underline",secondary:"text-text-secondary font-normal hover:underline active:text-text-primary active:underline",currentColor:"text-current hover:underline active:underline"},display:{inline:"inline-flex items-center",block:"block"},isDisabled:{true:"opacity-50 pointer-events-none no-underline hover:no-underline active:no-underline",false:""}},defaultVariants:{variant:"primary",display:"inline",isDisabled:!1}}),u={primary:"text-text-primary",secondary:"text-text-secondary",tertiary:"text-text-tertiary",quaternary:"text-text-quaternary",white:"text-text-white",link:"text-text-primary-link",destructive:"text-text-destructive",success:"text-text-success"};function c(e){let o,c,d,f,p,m,x,v,g,h,b,y,C,S,w,j,N,D,P,R=(0,n.c)(48);R[0]!==e?({children:p,className:m,color:x,display:h,href:v,iconStart:o,isDisabled:b,testid:y,textStyle:C,variant:S,analyticsEvent:d,analyticsActionOverride:c,analyticsMetadata:f,...g}=e,R[0]=e,R[1]=o,R[2]=c,R[3]=d,R[4]=f,R[5]=p,R[6]=m,R[7]=x,R[8]=v,R[9]=g,R[10]=h,R[11]=b,R[12]=y,R[13]=C,R[14]=S):(o=R[1],c=R[2],d=R[3],f=R[4],p=R[5],m=R[6],x=R[7],v=R[8],g=R[9],h=R[10],b=R[11],y=R[12],C=R[13],S=R[14]);let I=void 0===h?"inline":h,E=void 0!==b&&b;R[15]!==c||R[16]!==d||R[17]!==f?(w=null==d?void 0:{eventName:d,actionTarget:"EctoLink",actionType:c??"click",metadata:f},R[15]=c,R[16]=d,R[17]=f,R[18]=w):w=R[18];let T=w,k=x??(S?void 0:"link");R[19]!==o?(j=o&&(0,t.jsx)(o,{className:"me-1 shrink-0",size:16}),R[19]=o,R[20]=j):j=R[20],R[21]!==p||R[22]!==j||R[23]!==C?(N=(0,t.jsxs)(a.Text,{as:"span",className:"inline-flex items-center text-current",variant:C,children:[j,p]}),R[21]=p,R[22]=j,R[23]=C,R[24]=N):N=R[24];let z=N;R[25]!==m||R[26]!==I||R[27]!==k||R[28]!==E||R[29]!==S?(D=(0,i.cn)(s({variant:k?void 0:S,display:I,isDisabled:E}),k&&u[k],!E&&"hover:underline active:underline",m),R[25]=m,R[26]=I,R[27]=k,R[28]=E,R[29]=S,R[30]=D):D=R[30];let O=D;if(""===v){let e;return R[31]!==O||R[32]!==z||R[33]!==y?(e=(0,t.jsx)("span",{className:O,"data-testid":y,children:z}),R[31]=O,R[32]=z,R[33]=y,R[34]=e):e=R[34],e}if(v.startsWith("http://")||v.startsWith("https://")){let e,n=g;return R[35]!==O||R[36]!==z||R[37]!==v||R[38]!==n||R[39]!==y?(e=(0,t.jsx)(r.EctoAnchor,{className:O,"data-testid":y,href:v,...n,children:z}),R[35]=O,R[36]=z,R[37]=v,R[38]=n,R[39]=y,R[40]=e):e=R[40],e}return R[41]!==T||R[42]!==O||R[43]!==z||R[44]!==v||R[45]!==g||R[46]!==y?(P=(0,t.jsx)(l.EctoBaseLink,{...g,className:O,"data-testid":y,href:v,analytics:T,children:z}),R[41]=T,R[42]=O,R[43]=z,R[44]=v,R[45]=g,R[46]=y,R[47]=P):P=R[47],P}c.displayName="Link",e.s(["EctoLink",0,c])},482708,e=>{"use strict";var t=e.i(733783),n=e.i(908464),i=e.i(402073);e.s(["InteractionAreaProvider",0,function(e){let a,r,o=(0,n.c)(5),{targetArea:l,children:s}=e;o[0]!==l?(a={targetArea:l},o[0]=l,o[1]=a):a=o[1];let u=a;return o[2]!==s||o[3]!==u?(r=(0,t.jsx)(i.InteractionAreaContext.Provider,{value:u,children:s}),o[2]=s,o[3]=u,o[4]=r):r=o[4],r}])},719022,e=>{"use strict";var t=e.i(733783),n=e.i(908464),i=e.i(472361);let a=(0,i.createContext)({preset:null,setPreset:()=>{}});e.s(["ComposerPresetProvider",0,function(e){let r,o,l=(0,n.c)(5),{children:s}=e,[u,c]=(0,i.useState)(null);l[0]!==u?(r={preset:u,setPreset:c},l[0]=u,l[1]=r):r=l[1];let d=r;return l[2]!==s||l[3]!==d?(o=(0,t.jsx)(a.Provider,{value:d,children:s}),l[2]=s,l[3]=d,l[4]=o):o=l[4],o},"MockComposerPresetProvider",0,function(e){let r,o,l=(0,n.c)(5),{children:s}=e,[u,c]=(0,i.useState)(null);l[0]!==u?(r={preset:u,setPreset:c},l[0]=u,l[1]=r):r=l[1];let d=r;return l[2]!==s||l[3]!==d?(o=(0,t.jsx)(a.Provider,{value:d,children:s}),l[2]=s,l[3]=d,l[4]=o):o=l[4],o},"useComposerPreset",0,function(){return(0,i.useContext)(a)}])}]); //# debugId=edce0552-fed1-2e11-98e4-9883422cf1af