1(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,63127,e=>{"use strict";var t=e.i(843476),n=e.i(927289),r=e.i(271645);e.i(513036);var i=e.i(872768),a=e.i(714741),o=e.i(530136);e.i(726493);var l=e.i(288562),s=e.i(207069),c=e.i(845750),d=e.i(875995),u=e.i(947469),p=e.i(621415),m=e.i(946329),h=e.i(242817),f=e.i(696939),g=e.i(15069),x=e.i(683080),y=e.i(857177),b=e.i(32388),v=e.i(845134),w=e.i(49659),k=e.i(269762),_=e.i(756251),T=e.i(689605),C=e.i(556842);async function S(e,t){if("mcp:ready"===e.type)return[{kind:"send",message:{type:"mcp:setGlobals",globals:{toolOutput:t.result.structuredContent??t.result.content[0]?.text}}}];if("2.0"!==e.jsonrpc||"string"!=typeof e.method)return[{kind:"none"}];let{id:n,method:r,params:i={}}=e,a=e=>({kind:"reply",message:{jsonrpc:"2.0",id:n,result:e}}),o=e=>({kind:"reply",message:{jsonrpc:"2.0",id:n,error:{code:-32e3,message:e}}});switch(r){case"ui/initialize":return[a({protocolVersion:"2026-01-26",hostInfo:{name:"YouSpot",version:"1.0.0"},hostCapabilities:{openLinks:{},serverTools:{},sandbox:{csp:{}}},hostContext:{theme:t.theme,displayMode:"inline",availableDisplayModes:["inline"],containerDimensions:{maxHeight:800},platform:"web",userAgent:"YouSpot"}})];case"ui/notifications/initialized":return[{kind:"send",message:{jsonrpc:"2.0",method:"ui/notifications/tool-input",params:{arguments:t.arguments}}},{kind:"send",message:{jsonrpc:"2.0",method:"ui/notifications/tool-result",params:t.result}}];case"ui/notifications/size-changed":{var l;let e="number"==typeof(l=i.height)&&Number.isFinite(l)?Math.min(800,Math.max(80,Math.ceil(l))):null;return null===e?[{kind:"none"}]:[{kind:"resize",height:e}]}case"ui/open-link":{let e=function(e){if("string"!=typeof e)return null;try{let t=new URL(e);return"https:"===t.protocol||"http:"===t.protocol?t.href:null}catch{return null}}(i.url);if(!e)return[o("Invalid URL")];return[t.openLink?.(e)?a({}):o("Link opening denied")]}case"ui/message":{let e=i.content,n=e?.type==="text"&&"string"==typeof e.text?e.text.trim():"";if(!n)return[o("Invalid message format")];return[t.sendMessage?.(n)?a({}):o("Message sending denied")]}case"ui/request-display-mode":return[a({mode:"inline"})];case"ui/update-model-context":case"ping":return[a({})];case"tools/call":{let e="string"==typeof i.name?i.name:"",n=i.arguments??{};if(!e||!t.callTool)return[o("Tool calls are not available here")];try{let r=await t.callTool(e,n);return[a(r)]}catch(e){return[o(e instanceof Error?e.message:"Tool call failed")]}}case"resources/read":case"tools/list":case"prompts/list":return[o("Not supported by this host")];default:return void 0===n?[{kind:"none"}]:[o(`Unknown method ${r}`)]}}var j=e.i(938827);function N({data:e,conversationId:n}){let i=(0,j.useConnectorAppView)(e.connector_id,e.resource_uri),{sendText:a}=(0,C.useChatActions)(),o=(0,r.useRef)(null),[l,s]=(0,r.useState)(160),c=i.data?.html??null;return((0,r.useEffect)(()=>
1{let t=o.current;if(!t||!c)return;let r=window.matchMedia?.("(prefers-color-scheme: dark)").matches?"dark":"light",i={arguments:e.arguments??{},result:{content:[{type:"text",text:e.text??""}],...void 0!==e.structured_content&&null!==e.structured_content?{structuredContent:e.structured_content}:{},isError:!1},theme:r,openLink:e=>(window.open(e,"_blank","noopener,noreferrer"),!0),sendMessage:e=>(a(e),!0),callTool:async(t,r)=>{let i=(await T.api.connectors.appCall(e.connector_id,{name:t,arguments:r,conversation_id:n})).result;return{content:[{type:"text",text:"string"==typeof i.result?i.result:JSON.stringify(i)}],...void 0!==i.structured_content?{structuredContent:i.structured_content}:{},isError:!!i.error}}},l=e=>{e.source===t.contentWindow&&S(e.data,i).then(e=>{for(let n of e)"reply"===n.kind||"send"===n.kind?t.contentWindow?.postMessage(n.message,"*"):"resize"===n.kind&&s(n.height)})};return window.addEventListener("message",l),()=>window.removeEventListener("message",l)},[c,e,n,a]),i.isError)?(0,t.jsx)(k.Alert,{variant:"warning",children:"This connector view could not be loaded."}):c&&i.data?(0,t.jsx)("div",{className:`overflow-hidden rounded-frame ${i.data.prefers_border?"border border-border":""}`,"data-slot":"mcp-app",children:(0,t.jsx)(_.default,{ref:o,title:`${e.connector_label??"Connector"}: ${e.tool}`,html:c,scripts:!0,policy:i.data.csp,style:{height:l,width:"100%",border:0,display:"block"}})}):null}var E=e.i(768402),A=e.i(33851);function O({elicitation:e,onSubmit:n,onDecline:i}){let a=e.requested_schema?.properties??{},[o,l]=(0,r.useState)({});return"url"===e.mode&&e.url?(0,t.jsxs)("div",{className:"flex flex-col gap-2 border-t border-border p-3","data-slot":"tool-elicitation",children:[(0,t.jsx)("p",{className:"m-0 text-sm",children:e.message}),(0,t.jsxs)("div",{className:"flex flex-wrap gap-2",children:[(0,t.jsx)("a",{href:e.url,target:"_blank",rel:"noopener noreferrer",className:"text-sm font-medium text-primary underline",children:"Open the link"}),(0,t.jsx)(E.Button,{variant:"primary",onPress:()=>n({}),children:"Done"}),(0,t.jsx)(E.Button,{variant:"quiet",onPress:i,children:"Cancel"})]})]}):(0,t.jsxs)("div",{className:"flex flex-col gap-2 border-t border-border p-3","data-slot":"tool-elicitation",children:[(0,t.jsx)("p",{className:"m-0 text-sm",children:e.message}),Object.entries(a).map(([e,n])=>(0,t.jsx)(A.TextField,{label:n.title??e,description:n.description,value:o[e]??"",onChange:t=>l(n=>({...n,[e]:t})),placeholder:"boolean"===n.type?"yes or no":n.enum?n.enum.join(" | "):void 0},e)),(0,t.jsxs)("div",{className:"flex flex-wrap gap-2",children:[(0,t.jsx)(E.Button,{variant:"primary",onPress:()=>{let e={};for(let[t,n]of Object.entries(a)){let r=o[t]??(void 0!==n.default?String(n.default):"");"boolean"===n.type?e[t]="true"===r||"yes"===r||"1"===r:"number"===n.type||"integer"===n.type?e[t]=""===r?null:Number(r):e[t]=r}n(e)},children:"Send"}),(0,t.jsx)(E.Button,{variant:"quiet",onPress:i,children:"Cancel"})]})]})}function R({part:e,title:n}){let{respondToApproval:r}=(0,C.useChatActions)(),i="approval-requested"!==e.state&&"approval-responded"!==e.state?{}:e.approval.descriptor??{};if("approval-responded"===e.state)return(0,t.jsx)(f.ToolApproval,{answered:e.approval.approved?"approved":"denied",onAllow:()=>{},onDeny:()=>{}});if("approval-requested"!==e.state)return null;let a=e.approval.id,o="elicitation"===i.kind&&i.elicitation?(0,t.jsx)(O,{elicitation:i.elicitation,onSubmit:e=>r(a,!0,{elicitation:e}),onDecline:()=>r(a,!1)}):(0,t.jsx)(f.ToolApproval,{reason:e.approval.requestReason,destructive:i.destructive,onAllow:()=>r(a,!0),onAllowAlways:()=>r(a,!0,{always:!0}),onDeny:()=>r(a,!1)});if(!n)return o;let l=e.input&&Object.keys(e.input).length>0?JSON.stringify(e.input):null;return(0,t.jsxs)("div",{className:"mt-2 rounded-frame border border-warning/50 bg-card","data-slot":"tool-approval-panel",children:[(0,t.jsxs)("div",{className:"flex flex-col gap-0.5 px-3 py-2",children:[(0,t.jsx)("p",{className:"m-0 text-sm font-medium text-foreground",children:n}),l?(0,t.jsx)("p",{className:"m-0 truncate font-mono text-xs text-muted-foreground",children:l}):null]}),o]})}var I=e.i(585318);function M({iconUrl:e}){return e?(0,t.jsx)("img",{src:e,alt:"",className:"size-4 rounded-sm"}):null}function P({block:e,live:n,connectorTools:r}){let{token:i}=(0,y.useAuth)(),{data:a}=(0,v.useToolLabels)(i),o=(0,s.activityTools)(e),l=e=>r?.[e]?.label??a?.[e]??(0,I.connectorToolTitle)(e),c=e.items.flatMap(e=>"reasoning"===e.kind&&e.text.trim()?[e.text]:[]).join("\n\n");if(0===o.length)return(0,t.jsxs)(m.Reasoning,{isStreaming:(0,s.activityThinking)(e),children:[(0,t.jsx)(m.ReasoningTrigger,{}),(0,t.jsx)(m.ReasoningContent,{children:c})]});let d=(0,s.activityStatus)(e,n,l),u=o.some(e=>"approval-requested"===e.state);return(0,t.jsxs)(f.ToolStack,{states:o.map(e=>
1e.state),sources:(0,I.toolSources)(o.map(e=>e.toolName),r),status:d,streaming:n||null!==d,defaultOpen:u,children:[c?(0,t.jsx)(h.Response,{className:"text-sm text-muted-foreground",children:c}):null,o.map(e=>{let n=r?.[e.toolName],i="approval-requested"===e.state;return(0,t.jsxs)(f.Tool,{defaultExpanded:"output-error"===e.state||i,children:[(0,t.jsx)(f.ToolHeader,{name:e.toolName,title:l(e.toolName),state:e.state,icon:n?.icon_url?(0,t.jsx)(M,{iconUrl:n.icon_url}):void 0}),(0,t.jsxs)(f.ToolContent,{children:[(0,t.jsx)(f.ToolInput,{input:e.input}),"output-available"===e.state||"output-error"===e.state?(0,t.jsx)(f.ToolOutput,{output:e.output,errorText:e.errorText}):null]}),"approval-responded"===e.state?(0,t.jsx)(R,{part:e}):null]},e.toolCallId)})]})}function D({block:e,connectorTools:n}){let{token:r}=(0,y.useAuth)(),{data:i}=(0,v.useToolLabels)(r),a=(0,s.activityTools)(e).filter(e=>"approval-requested"===e.state);return 0===a.length?null:a.map(e=>(0,t.jsx)(R,{part:e,title:n?.[e.toolName]?.label??i?.[e.toolName]??(0,I.connectorToolTitle)(e.toolName)??e.toolName},`${e.toolCallId}-approval`))}function L({blocks:e,legacy:n,messageId:r,streaming:i,owned:a,connectorTools:o,conversationId:l=null}){let s=(0,b.useChatRegistry)();return e.map((c,d)=>{let u=`${r}:${c.id}`;return"activity"===c.kind?(0,t.jsxs)("div",{className:"flex flex-col",children:[(0,t.jsx)(P,{block:c,live:i&&d===e.length-1,connectorTools:o}),(0,t.jsx)(D,{block:c,connectorTools:o})]},u):"app"===c.kind?(0,t.jsx)(N,{data:c.data,conversationId:l},u):n?(0,t.jsx)(w.LegacyReply,{html:c.text,instance:u},u):(0,x.segmentGenUI)(c.text).map((n,r)=>"text"===n.kind?(0,t.jsx)(h.Response,{children:n.text},`${u}-${r}`):a?.has(n.attrs.type??"")||i&&d===e.length-1?null:(0,t.jsx)("div",{className:"genui-card",children:(0,t.jsx)(g.UIComponent,{attrs:n.attrs,instance:`${u}-${r}`,registry:s})},`${u}-${r}`))})}var F=e.i(16205),z=e.i(800216),B=e.i(599486),$=e.i(518951),H=e.i(974832),U=e.i(544807),q=e.i(212225);function V({saved:e,onSave:n}){if(e?.status==="saved"){let n=e.objectId?"a":"span";return(0,t.jsxs)(n,{...e.objectId?{href:`/brain/object/${e.objectId}`}:{},title:"Saved to your Second Brain",className:"inline-flex items-center gap-1 text-xs text-primary",children:[(0,t.jsx)(z.Check,{"aria-hidden":!0,className:"size-3.5"}),"Saved to your brain"]})}return(0,t.jsx)(U.Actions,{children:(0,t.jsx)(U.Action,{label:"Save to your Second Brain",onPress:n,isDisabled:e?.status==="saving",...(0,q.trackId)(q.TRACK_IDS.chatReplySave),children:(0,t.jsx)(F.Brain,{"aria-hidden":!0,className:"size-4"})})})}function W({messageId:e,rating:n,onRate:r}){return(0,t.jsxs)(U.Actions,{children:[(0,t.jsx)(U.Action,{label:"up"===n?"Rated helpful":"Helpful",onPress:()=>r(e,"up"),className:"up"===n?"text-success":void 0,...(0,q.trackId)(q.TRACK_IDS.chatReplyRateUp),children:(0,t.jsx)(H.ThumbsUp,{"aria-hidden":!0,className:"size-4"})}),(0,t.jsx)(U.Action,{label:"down"===n?"Rated unhelpful":"Not helpful",onPress:()=>r(e,"down"),className:"down"===n?"text-destructive":void 0,...(0,q.trackId)(q.TRACK_IDS.chatReplyRateDown),children:(0,t.jsx)($.ThumbsDown,{"aria-hidden":!0,className:"size-4"})})]})}function X({elapsed:e,sources:n,connectorTools:r,saveable:i,saved:a,onSave:o,editable:l,onEdit:s,messageId:c,rating:d,onRate:u}){let p="number"==typeof e;return p||0!==n.length||i||l||c?(0,t.jsxs)("div",{className:"flex flex-wrap items-center gap-2",children:[p?(0,t.jsx)("span",{className:"text-xs text-muted-foreground",children:(e=>{if(e<60)return`${e.toFixed(1)}s`;let t=Math.floor(e/60);return`${t}m ${Math.round(e-60*t)}s`})(e)}):null,(0,t.jsx)(I.ToolSourceChips,{names:n,connectorTools:r}),i?(0,t.jsx)(V,{saved:a,onSave:o}):null,l?(0,t.jsx)(U.Actions,{children:(0,t.jsx)(U.Action,{label:"Edit this reply",onPress:s,...(0,q.trackId)(q.TRACK_IDS.chatReplyEdit),children:(0,t.jsx)(B.Pencil,{"aria-hidden":!0,className:"size-4"})})}):null,c?(0,t.jsx)(W,{messageId:c,rating:d,onRate:u}):null]}):null}function G(e){let t=e.parts.find(e=>"data-turn"===e.type);return t?.type==="data-turn"?{elapsed:t.data.elapsed_time,tools:t.data.tool_calls,messageId:t.data.message_id??null}:{elapsed:e.metadata?.elapsedTime??null,tools:e.metadata?.toolCalls??[],messageId:e.metadata?.messageId??null}}e.s(["AssistantTurn",0,function({message:e,streaming:m,canSave:h,saved:f,onSave:g,rating:x,onRate:y}){let b=(0,r.useMemo)(()=>(0,s.blocksOf)(e.parts),[e.parts]),[v,w]=(0,r.useState)(!1),k=(0,u.useComposedCards)(e,m),{elapsed:_,tools:T,messageId:C}=G(e),S=e.metadata?.format==="html",j=function(e){let t=[];for(let n of e.parts){if("text"!==n.type)continue;let e=n.text.trim();e&&t.push(e)}return t.join("\n\n")}(e),N=m?j:(0,d.replyMarkdown)(j,k.spec,k.owned),E=(0,s.waitingFor)(b,m),A=T.length?T:b.flatMap(e=>"activity"===e.kind?(0,s.activityTools)(e).map(e=>e.toolName):[]),O=!!j&&!m&&!S,R=e.parts.find(e=>"data-conversation"===e.type),I=(0,c.useConnectorToolLabels)(e),M=R?.type==="data-conversation"?R.data.id:null;return(0,t.jsxs)(a.Message,{from:"assistant",className:"items-start",children:[(0,t.jsx)(a.MessageAvatar,{name:"YouSpot"}),(0,t.jsxs)(a.MessageContent,{variant:"flat",children:[(0,t.jsx)(L,{blocks:b,legacy:S,messageId:e.id,streaming:m,owned:k.owned,connectorTools:I,conversationId:M}),k.spec&&!m?(0,t.jsx)(l.ComposedCardsView,{spec:k.spec,registry:k.registry}):null,E?(0,t.jsxs)("span",{className:"flex min-h-10 items-center gap-2",children:[(0,t.jsx)(i.Loader,{size:14,label:E}),(0,t.jsxs)(o.Shimmer,{children:[E,"â¦"]})]}):null,e.metadata?.delivery?(0,t.jsx)("p",{className:"mt-2 text-xs text-muted-foreground",role:"status",children:(0,n.deliveryLabel)(e.metadata.delivery)}):null,(0,t.jsx)(X,{elapsed:_,sources:A,connectorTools:I,saveable:h&&!!j,saved:f,onSave:()=>g(N),editable:O,onEdit:()=>w(!0),messageId:C,rating:x,onRate:y}),O?(0,t.jsx)(p.default,{open:v,text:N,onClose:()=>w(!1)}):null]})]})},"replyRowId",0,function(e){return G(e).messageId}],63127)},659676,218942,e=>{"use strict";var t=e.i(843476),n=e.i(271645),r=e.i(518951);e.i(513036);var i=e.i(768402),a=e.i(607619),o=e.i(758282),l=e.i(135911),s=e.i(815887),c=e.i(797334),d=e.i(297039),u=e.i(315547),p=e.i(857177),m=e.i(698060),h=e.i(564728),f=e.i(439563);let g=[{key:"wrong",label:"Not true"},{key:"off_topic",label:"Didn't answer what I asked"},{key:"missing",label:"Missed what I already have"},{key:"too_long",label:"Too long"},{key:"other",label:"Something else"}],x=Object.fromEntries(g.map(e=>[e.key,e.label]));function y({target:e,onClose:a}){let{token:l}
1=(0,p.useAuth)(),[b,v]=(0,n.useState)(null),[w,k]=(0,n.useState)(""),[_,T]=(0,n.useState)(!1),[C,S]=(0,n.useState)(null),[j,N]=(0,n.useState)(!1);(0,n.useEffect)(()=>{(0,f.trackFeedbackOpened)("chat_reply",{conversation_id:e.conversationId,chat_surface:e.surface})},[e]);let E=async()=>{if(!b)return;T(!0),S(null);let t=w.trim(),n={...(0,h.collectFeedbackContext)(),feedback_kind:"reply_report",reason:b,message_id:e.messageId,surface:e.surface,...e.conversationId?{conversation_id:e.conversationId}:{}};try{let r=await (0,m.submitFeedback)(l,{feedback:[x[b]??b,t].filter(Boolean).join("\n\n"),rating:null,source_url:"string"==typeof n.url?n.url:null,context:n});if(!r.success)return void S("not_authenticated"===r.error?"Sign in again and we will take it from there.":"That didn't send. Try again?");(0,f.trackFeedbackSubmitted)("chat_reply",{rating:null,hasText:!!t,path:String(n.path??""),reason:b,conversationId:e.conversationId}),N(!0)}finally{T(!1)}};return j?(0,t.jsx)(u.default,{onClose:a,children:"A human reads every one of these. The answer you marked comes with it."}):(0,t.jsxs)("div",{className:"flex flex-col gap-4",children:[(0,t.jsxs)(o.Heading,{slot:"title",className:"text-foreground m-0 flex items-center gap-2 text-lg font-semibold",children:[(0,t.jsx)(r.ThumbsDown,{size:18,className:"text-destructive"}),"What was wrong with it?"]}),(0,t.jsx)("p",{className:"text-muted-foreground m-0 text-sm",children:"Noted either way. A reason turns it into something we can fix."}),(0,t.jsx)(d.ToggleButtonGroup,{selectionMode:"single",selectedKeys:b?[b]:[],onSelectionChange:e=>v([...e][0]??null),className:"flex-wrap",children:g.map(({key:e,label:n})=>(0,t.jsx)(c.ToggleButton,{id:e,className:"h-8 px-3 text-[13px]",children:n},e))}),(0,t.jsx)(s.TextArea,{label:"Anything else? (optional)",value:w,onChange:k,rows:3,placeholder:"What did you expect instead?"}),C&&(0,t.jsx)("p",{className:"text-destructive m-0 text-[13px]",children:C}),(0,t.jsxs)("div",{className:"flex items-center justify-end gap-2.5",children:[(0,t.jsx)(i.Button,{variant:"quiet",onPress:a,isDisabled:_,children:"Skip"}),(0,t.jsx)(i.Button,{onPress:E,isDisabled:!b||_,isPending:_,children:"Send"})]})]})}async function b(e){try{return await e.json()}catch{return{success:!1,error:`Server error (${e.status})`}}}e.s(["default",0,function({open:e,target:n,onClose:r}){return(0,t.jsx)(l.Modal,{isOpen:e,onOpenChange:e=>{e||r()},isDismissable:!0,children:(0,t.jsx)(a.Dialog,{className:"max-w-[480px]",children:n&&(0,t.jsx)(y,{target:n,onClose:r},`${n.surface}:${n.messageId}`)})})},"useReplyReport",0,function(){let[e,t]=(0,n.useState)(null),[r,i]=(0,n.useState)(!1);return{target:e,open:r,ask:(0,n.useCallback)(e=>{t(e),i(!0)},[]),close:(0,n.useCallback)(()=>i(!1),[])}}],659676),e.s(["useVoiceInput",0,function({token:e,onText:t,onError:r,onDone:i}){let[a,o]=(0,n.useState)("idle"),[l,s]=(0,n.useState)(""),c=(0,n.useRef)(null),d=(0,n.useRef)(null),u=(0,n.useRef)(null),p=(0,n.useRef)(null),m=(0,n.useRef)(null),h=(0,n.useRef)(""),f=(0,n.useRef)(!1),g=(0,n.useRef)(null),x=(0,n.useRef)(null),y=(0,n.useRef)(0),v=(0,n.useRef)(t),w=(0,n.useRef)(r),k=(0,n.useRef)(i);v.current=t,w.current=r,k.current=i;let _=(0,n.useRef)("manual"),T=e=>{k.current?.(e??_.current)},C=()=>{m.current&&clearTimeout(m.current),m.current=null},S=()=>{x.current&&clearInterval(x.current),x.current=null,g.current?.close().catch(()=>{}),g.current=null},j=e=>{let t=window.AudioContext||window.webkitAudioContext;if(!t)return;let n=new t;g.current=n;let r=n.createAnalyser();r.fftSize=512,n.createMediaStreamSource(e).connect(r);let i=new Uint8Array(r.fftSize),a=Date.now();y.current=0,x.current=setInterval(()=>{r.getByteTimeDomainData(i);let e=0;for(let t=0;t<i.length;t++){let n=(i[t]-128)/128;e+=n*n}let t=Math.sqrt(e/i.length),n=Date.now();if(t>=.02){y.current=n;return}let o=y.current;o?n-o>=2500&&(_.current="silence",O()):n-a>=15e3&&(w.current("Didn't hear anything â check your mic and try again."),_.current="error",O())},100)},N=()=>{C(),S(),f.current=!1,d.current=null,c.current?.close(),c.current=null,u.current?.getTracks().forEac
1h(e=>e.stop()),u.current=null,h.current="",s(""),o("idle")};(0,n.useEffect)(()=>()=>{C(),S();let e=p.current;e&&"inactive"!==e.state&&(e.onstop=null,e.stop()),c.current?.close(),u.current?.getTracks().forEach(e=>e.stop())},[]);let E=async(t,n)=>{o("finishing");try{let r=new FormData;r.append("audio",t,n);let i={};e&&(i["X-AgentAI-User-Token"]=e);let a=await fetch("/api/chat/transcribe",{method:"POST",headers:i,credentials:"include",body:r}),o=await b(a);if(!o.success)throw Error(String(o.error||"Transcription failed"));o.text&&v.current(String(o.text)),T()}catch(e){w.current(e instanceof Error?e.message:"Could not transcribe that recording"),T("error")}finally{o("idle")}},A=async t=>{let n={};e&&(n["X-AgentAI-User-Token"]=e);let r=await fetch("/api/chat/transcribe/session",{method:"POST",headers:n,credentials:"include"}),i=await b(r);if(!i.success||!i.client_secret)throw Error(String(i.error||"Could not start live transcription"));let a=new RTCPeerConnection;c.current=a,t.getTracks().forEach(e=>a.addTrack(e,t));let l=a.createDataChannel("oai-events");d.current=l,l.onmessage=e=>{let t;try{t=JSON.parse(e.data)}catch{return}if("conversation.item.input_audio_transcription.delta"===t.type)h.current+=t.delta||"",s(h.current),y.current=Date.now();else if("conversation.item.input_audio_transcription.completed"===t.type){h.current="",s("");let e=(t.transcript||"").trim();e&&v.current(e),f.current&&(N(),T())}};let u=await a.createOffer();await a.setLocalDescription(u);let p=await fetch("https://api.openai.com/v1/realtime/calls",{method:"POST",headers:{Authorization:`Bearer ${i.client_secret}`,"Content-Type":"application/sdp"},body:u.sdp});if(!p.ok)throw Error(`Realtime connect failed (${p.status})`);await a.setRemoteDescription({type:"answer",sdp:await p.text()}),o("recording"),j(t),C(),m.current=setTimeout(()=>{_.current="cap",O()},3e5)},O=()=>{C(),S();let e=p.current;if(e&&"inactive"!==e.state){e.stop(),p.current=null;return}c.current?(o("finishing"),f.current=!0,u.current?.getTracks().forEach(e=>e.stop()),d.current?.readyState==="open"&&d.current.send(JSON.stringify({type:"input_audio_buffer.commit"})),m.current=setTimeout(()=>{let e=h.current.trim();e&&v.current(e),N(),T()},1500)):N()};return{state:a,partial:l,start:async()=>{let e;try{e=await navigator.mediaDevices.getUserMedia({audio:!0})}catch{w.current("Microphone access was blocked â allow it in your browser and try again.");return}u.current=e,o("connecting");try{await A(e)}catch{var t;let n,r,i;c.current?.close(),c.current=null,t=e,n=["audio/webm;codecs=opus","audio/webm","audio/mp4"].find(e=>MediaRecorder.isTypeSupported(e)),r=new MediaRecorder(t,n?{mimeType:n}:void 0),i=[],r.ondataavailable=e=>{e.data.size>0&&i.push(e.data)},r.onstop=()=>{t.getTracks().forEach(e=>e.stop()),u.current=null;let e=r.mimeType||"audio/webm",n=new Blob(i,{type:e});n.size<2e3?o("idle"):E(n,e.includes("mp4")?"audio.mp4":"audio.webm")},p.current=r,r.start(),o("recording"),j(t),C(),m.current=setTimeout(()=>{_.current="cap",O()},3e5)}},stop:()=>{_.current="manual",O()}}}],218942)},255688,e=>{"use strict";var t=e.i(843476);e.i(77898);var n=e.i(56727);e.s(["ThreadShape",0,function({count:e}){return(0,t.jsx)("div",{"aria-hidden":!0,className:"flex flex-col gap-6",children:Array.from({length:Math.min(Math.max(e,2),6)}).map((e,r)=>(0,t.jsxs)("div",{className:r%2==0?"flex flex-col items-end gap-2":"flex flex-col gap-2",children:[(0,t.jsx)(n.SkeletonLine,{width:r%2==0?"42%":"92%",height:14}),r%2==0?null:(0,t.jsx)(n.SkeletonLine,{width:"76%",height:14})]},r))})}])},18350,477187,e=>{"use strict";var t=e.i(843476);e.i(513036);var n=e.i(714741),r=e.i(242817),i=e.i(341451),a=e.i(41686),o=e.i(630601),l=e.i(845134),s=e.i(857177),c=e.i(212225),d=e.i(271645),u=e.i(29150),p=e.i(978396),m=e.i(487635),h=e.i(872768),f=e.i(852220);function g({src:e}){let[n,r]=(0,d.useState)(!1);return n?(0,t.jsx)(p.Image,{"aria-hidden":!0,className:"size-3.5"}):(0,t.jsx)("img",{src:e,alt:"",className:"size-6 rounded border border-border object-cover object-top",onError:()=>r(!0)})}function x({attachment:e,onRemove:n,busy:r,failed:i}){let a=i?void 0:(0,f.attachmentPreview)(e),o="image"===e.kind?p.Image:u.FileText;return(0,t.jsxs)("span",{"data-busy":r||void 0,className:"flex max-w-56 items-center gap-1.5 rounded-lg border border-border bg-surface px-2 py-1 data-busy:opacity-60",children:[(0,t.jsx)("span",{className:"flex shrink-0 items-center text-primary",children:r?(0,t.jsx)(h.Loader,{size:13,label:"Uploading"}):a?(0,t.jsx)(g,{src:a}
1,a):(0,t.jsx)(o,{"aria-hidden":!0,className:"size-3.5"})}),(0,t.jsx)("span",{className:"truncate text-xs text-foreground",title:e.name,children:e.name}),i?(0,t.jsx)("span",{className:"text-xs text-destructive",children:"Upload failed"}):null,e.size>0?(0,t.jsx)("span",{className:"shrink-0 text-xs text-muted-foreground",children:(0,f.formatSize)(e.size)}):null,n?(0,t.jsx)("button",{type:"button",onClick:n,"aria-label":`Remove ${e.name}`,className:"shrink-0 cursor-pointer text-muted-foreground transition hover:text-destructive",children:(0,t.jsx)(m.X,{"aria-hidden":!0,className:"size-3.5"})}):null]})}function y({text:e}){let{authenticated:n}=(0,s.useAuth)(),r=(0,l.useSavedPromptToggle)(n);return n?(0,t.jsx)(i.SavePromptAction,{saved:r.isSaved(e),pending:r.pending,onToggle:()=>r.toggle(e),...(0,c.trackId)(c.TRACK_IDS.chatPromptSave)}):null}e.s(["AttachmentChip",0,x],477187),e.s(["UserTurn",0,function({message:e}){let i=(0,a.messageText)(e),l=i.startsWith(o.REVISION_PREFIX)?i.slice(o.REVISION_PREFIX.length).trim():null,s=e.metadata?.attachments??[],c=null===l&&i.trim().length>0;return(0,t.jsx)(n.Message,{from:"user",children:(0,t.jsxs)("div",{className:"flex min-w-0 max-w-[85%] flex-col items-end gap-1",children:[(0,t.jsxs)(n.MessageContent,{variant:"flat",className:"max-w-full items-end",children:[s.length>0?(0,t.jsx)("span",{className:"flex flex-wrap justify-end gap-1.5",children:s.map(e=>(0,t.jsx)(x,{attachment:e},e.file_id))}):null,null!==l?(0,t.jsxs)("span",{className:"block text-left",children:[(0,t.jsx)("span",{className:"text-muted-foreground text-xs",children:o.REVISION_PREFIX}),(0,t.jsx)(r.Response,{mode:"static",animated:!1,caret:void 0,skipHtml:!0,children:l})]}):i?(0,t.jsx)(r.Response,{mode:"static",animated:!1,caret:void 0,skipHtml:!0,children:i}):null]}),c?(0,t.jsx)(y,{text:i}):null]})})}],18350)},228395,440256,e=>{"use strict";var t=e.i(843476),n=e.i(899975),r=e.i(321819),i=e.i(189807),a=e.i(857177),o=e.i(230726),l=e.i(40388),s=e.i(268864),c=e.i(68157);e.s(["default",0,function(e){let d=(0,o.useAuthMode)(),u=(0,s.useIsSatelliteHost)(),{authenticated:p,user:m}=(0,a.useAuth)(),h=(0,l.useClerkLoadTimeout)(!1);return p?(0,t.jsxs)("p",{className:"m-0 text-sm",style:{color:c.CRM_COLORS.sub},children:["Good news â you're already signed up",m?.email?` and signed in as ${m.email}`:" and signed in",", so there's nothing to fill in. Ask me anything."]}):"clerk"!==d?null:!1!==u?(0,t.jsxs)("div",{className:"max-w-[560px] py-1.5",children:[u&&(0,t.jsx)("a",{href:"/sign-up","data-track-id":"signup-cta-chat",style:{display:"inline-block",padding:"10px 22px",fontSize:15,fontWeight:600,color:"white",backgroundColor:c.CRM_COLORS.orange,borderRadius:8,textDecoration:"none"},children:"Sign up"}),(0,t.jsxs)("p",{className:"mb-0 mt-2.5 text-[13px]",style:{color:c.CRM_COLORS.sub},children:["Already have an account?"," ",(0,t.jsx)("a",{href:"/sign-in?redirect_url=%2Fchat",style:{color:c.CRM_COLORS.orange,fontWeight:600},children:"Sign in"})]})]}):(0,t.jsxs)("div",{className:"max-w-[560px] py-1.5",children:[(0,t.jsx)(r.ClerkLoading,{children:h?(0,t.jsxs)("p",{className:"m-0 py-6 text-sm",style:{color:c.CRM_COLORS.sub},children:["The sign-up form is having trouble loading. You can try the"," ",(0,t.jsx)("a",{href:"/sign-up","data-track-id":"signup-cta-chat",style:{color:c.CRM_COLORS.orange,fontWeight:600},children:"sign-up page"})," ","directly, or"," ",(0,t.jsx)("a",{href:"/sign-in?redirect_url=%2Fchat",style:{color:c.CRM_COLORS.orange,fontWeight:600},children:"sign in"})," ","if you already have an account."]}):(0,t.jsx)("p",{className:"m-0 py-6 text-sm",style:{color:c.CRM_COLORS.sub},children:"Loading sign-upâ¦"})}),(0,t.jsxs)(n.ClerkLoaded,{children:[(0,t.jsx)(i.SignUp,{routing:"hash",forceRedirectUrl:"/welcome",appearance:{elements:{cardBox:{boxShadow:"none",border:`1.5px solid ${c.CRM_COLORS.line}`,width:"100%"},card:{padding:"18px 20px 16px",gap:"14px"},headerTitle:{display:"none"},headerSubtitle:{display:"none"},header:{display:"none"},main:{display:"grid",gridTemplateColumns:"auto auto 1fr",alignItems:"center",columnGap:"14px","@media (max-width: 520px)":{display:"flex",flexDirection:"column"}},dividerRow:{flexDirection:"column",alignSelf:"stretch",height:"auto","@media (max-width: 520px)":{flexDirection:"row",alignSelf:"auto"}},dividerLine:{flex:1,width:"1px",height:"auto","@media (max-width: 520px)":{width:"auto",height:"1px"}},form:{gap:"12px"},footer:{display:"none"}}}}),(0,t.jsxs)("p",{className:"mb-0 mt-2.5 text-[13px]",style:{color:c.CRM_COLORS.sub},children:["Already have an account?"," ",(0,t.jsx)("a",{href:"/sign-in?redirect_url=%2Fchat",style:{color:c.CRM_COLORS.orange,fontWeight:600},children:"Sign in"})]})]})]})}],228395);var d=e.i(912598),u=e.i(49052),p=e.i(701281);e.s(["default",0,function({returnTo:e,onQueued:n}){let r=(0,d.useQueryClient)();return(0,t.jsx)(u.default,{source:"chat",returnTo:e,onQueued:()=>{r.invalidateQueries({queryKey:p.queryKeys.integrations.all()}),r.invalidateQueries({queryKey:p.queryKeys.rampup.state()}),n?.()}})}],440256)},556842,e=>{"use strict";var t=e.i(843476),n=e.i(271645);let r=(0,n.createContext)({respondToApproval:()=>{},sendText:()=>{},threadKey:null});e.s(["ChatActionsProvider",0,function({value:e,children:n}){return(0,t.jsx)(r.Provider,{value:e,children:n})},"approvalReason",0,function(e){return e?.elicitation?`elicitation:${JSON.stringify(e.elicitation)}`:e?.always?"always":void 0},"useChatActions",0,function(){return(0,n.useContext)(r)}])},88637,e=>{"use strict";var t=e.i(41686);let n=e=>e.trim().toLowerCase();e.s(["askedPrompts",0,function(e){let r=new Map;for(let i of e){if("user"!==i.role)continue;let e=n((0,t.messageText)(i));e&&r.set(e,i.metadata?.sentAt??0)}return r},"lookupAsked",0,function(e,t,r){let i,a,o=e.get(n(t));return void 0===o?null:{when:o&&null!==r?(a=(i=new Date(o)).toLocaleTimeString("en-US",{hour:"numeric",minute:"2-digit"}),i.toDateString()===new Date(r).toDateString()?a:`${i.toLocaleDateString("en-US",{month:"short",day:"numeric"})}, ${a}`):null}}])},852220,e=>{"use strict";var t=e.i(689605),n=e.i(787508),r=e.i(736997),i=e.i(279004);async function a(t){try{let n=await e.A(825834);n.GlobalWorkerOptions.workerSrc=new e.U(e.r(979463)).toString();let r=Uint8Array.from(atob(t.split(",")[1]),e=>e.charCodeAt(0)),i=n.getDocument({data:r}),a=await (await i.promise).getPage(1),o=96/a.getViewport({scale:1}).height,l=a.getViewport({scale:o}),s=document.createElement("canvas");s.width=Math.ceil(l.width),s.height=Math.ceil(l.height),await a.render({canvas:s,viewport:l}).promise;let c=s.toDataURL("image/png");return await i.destroy(),c}catch{return null}}async function o(e){if((0,r.isHeifFile)(e.name,e.type)){if(e.size>0x2000000)throw Error(`${e.name}
1 is too large, HEIC and HEIF files must be under 32MB`);if(e.size>3145728){let r=await (0,n.getFilestackClient)(),i=await r.upload(e,{onProgress:()=>{}});return(await t.api.chat.upload({filename:e.name,media_type:e.type,filestack_url:i.url})).file}let r=new FormData;return r.append("file",e),(await t.api.chat.upload(r)).file}let o=e.type.startsWith("image/");if(!o&&e.size>3145728)throw Error(`${e.name} is too large, files must be under 3MB`);let l=o?await (0,i.resizeImageFile)(e,3145728):await new Promise((t,n)=>{let r=new FileReader;r.onload=()=>"string"==typeof r.result?t(r.result):n(Error("Could not read that file")),r.onerror=()=>n(Error("Could not read that file")),r.readAsDataURL(e)});if((0,i.dataUrlBytes)(l)>3145728)throw Error("This file is too large, files must be under 3MB");let s=await t.api.chat.upload({filename:e.name,media_type:e.type,data:l});if("pdf"===s.file.kind){let e=await a(l);if(e)return{...s.file,preview:e}}return s.file}e.s(["ACCEPTED_TYPES",0,"image/png,image/jpeg,image/gif,image/webp,image/heic,image/heif,image/heic-sequence,image/heif-sequence,.heic,.heif,.heics,.heifs,.hif,application/pdf,text/plain,text/markdown,text/csv,text/calendar,.md,.ics","MAX_ATTACHMENTS",0,5,"attachmentPreview",0,function(e){return"image"===e.kind?(0,r.filePreviewHref)(e.file_id):e.preview},"formatSize",0,e=>e<1024?`${e} B`:e<1048576?`${Math.round(e/1024)} KB`:`${(e/1048576).toFixed(1)} MB`,"uploadChatFile",0,o])},285275,e=>{"use strict";let t=(0,e.i(235884).default)("mic",[["path",{d:"M12 19v3",key:"npa21l"}],["path",{d:"M19 10v2a7 7 0 0 1-14 0v-2",key:"1vc78b"}],["rect",{x:"9",y:"2",width:"6",height:"13",rx:"3",key:"s6n7sd"}]]);e.s(["default",0,t])},429735,(e,t,n)=>{var r,i;(i=r||(r={})).Root="root",i.Text="text",i.Directive="directive",i.Comment="comment",i.Script="script",i.Style="style",i.Tag="tag",i.CDATA="cdata",i.Doctype="doctype",r.Root,r.Text,r.Directive,r.Comment,r.Script,r.Style,r.Tag,r.CDATA,r.Doctype,Object.defineProperty(n,"ElementType",{enumerable:!0,get:function(){return r}}),n.isTag=function(e){return e.type===r.Tag||e.type===r.Script||e.type===r.Style}},686863,(e,t,n)=>{let r=e.r(429735);var i=class{parent=null;prev=null;next=null;startIndex=null;endIndex=null;get parentNode(){return this.parent}set parentNode(e){this.parent=e}get previousSibling(){return this.prev}set previousSibling(e){this.prev=e}get nextSibling(){return this.next}set nextSibling(e){this.next=e}cloneNode(e=!1){return b(this,e)}},a=class extends i{data;constructor(e){super(),this.data=e}get nodeValue(){return this.data}set nodeValue(e){this.data=e}},o=class extends a{type=r.ElementType.Text;get nodeType(){return 3}},l=class extends a{type=r.ElementType.Comment;get nodeType(){return 8}},s=class extends a{type=r.ElementType.Directive;name;constructor(e,t){super(t),this.name=e}get nodeType(){return 1}"x-name";"x-publicId";"x-systemId"},c=class extends i{children;constructor(e){super(),this.children=e}get firstChild(){return this.children[0]??null}get lastChild(){return this.children.length>0?this.children[this.children.length-1]:null}get childNodes(){return this.children}set childNodes(e){this.children=e}},d=class extends c{type=r.ElementType.CDATA;get nodeType(){return 4}},u=class extends c{type=r.ElementType.Root;get nodeType(){return 9}},p=class extends c{name;attribs;type;constructor(e,t,n=[],i="script"===e?r.ElementType.Script:"style"===e?r.ElementType.Style:r.ElementType.Tag){super(n),this.name=e,this.attribs=t,this.type=i}get nodeType(){return 1}get tagName(){return this.name}set tagName(e){this.name=e}get attributes(){return Object.keys(this.attribs).map(e=>({name:e,value:this.attribs[e],namespace:this["x-attribsNamespace"]?.[e],prefix:this["x-attribsPrefix"]?.[e]}))}namespace;"x-attribsNamespace";"x-attribsPrefix"};function m(e){return r.isTag(e)}function h(e){return e.type===r.ElementType.CDATA}function f(e){return e.type===r.ElementType.Text}function g(e){return e.type===r.ElementType.Comment}function x(e){return e.type===r.ElementType.Directive}function y(e){return e.type===r.ElementType.Root}function b(e,t=!1){let n;if(f(e))n=new o(e.data);else if(g(e))n=new l(e.data);else if(m(e)){let r=t?v(e.children):[],i=new p(e.name,{...e.attribs},r);for(let e of r)e.parent=i;null!=e.namespace&&(i.namespace=e.namespace),e["x-attribsNamespace"]&&(i["x-attribsNamespace"]={...e["x-attribsNamespace"]}),e["x-attribsPrefix"]&&(i["x-attribsPrefix"]={...e["x-attribsPrefix"]}),n=i}else if(h(e)){let r=t?v(e.children):[],i=new d(r);for(let e of r)e.parent=i;n=i}else if(y(e)){let r=t?v(e.children):[],i=new u(r);for(let e of r)e.parent=i;e["x-mode"]&&(i["x-mode"]=e["x-mode"]),n=i}else if(x(e)){let t=new s(e.name,e.data);null!=e["x-name"]&&(t["x-name"]=e["x-name"],t["x-publicId"]=e["x-publicId"],t["x-systemId"]=e["x-systemId"]),n=t}else throw Error(`Not implemented yet: ${e.type}`);return n.startIndex=e.startIndex,n.endIndex=e.endIndex,null!=e.sourceCodeLocation&&(n.sourceCodeLocation=e.sourceCodeLocation),n}function v(e){let t=e.map(e=>b(e,!0));for(let e=1;e<t.length;e++)t[e].prev=t[e-1],t[e-1].next=t[e];return t}n.CDATA=d,n.Comment=l,n.DataNode=a,n.Document=u,n.Element=p,n.Node=i,n.NodeWithChildren=c,n.ProcessingInstruction=s,n.Text=o,n.cloneNode=b,n.isCDATA=h,n.isComment=g,n.isDirective=x,n.isDocument=y,n.isTag=m,n.isText=f},699235,(e,t,n)=>{let r=["animateMotion","animateTransform","clipPath","feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDropShadow","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence","foreignObject","linearGradient","radialGradient","textPath"],i=r.reduce((e,t)=>
1(e[t.toLowerCase()]=t,e),{});n.CASE_SENSITIVE_TAG_NAMES=r,n.CASE_SENSITIVE_TAG_NAMES_MAP=i},73217,(e,t,n)=>{let r=e.r(686863),i=e.r(699235),a=RegExp("\r","g"),o=`__HTML_DOM_PARSER_CARRIAGE_RETURN_PLACEHOLDER_${Date.now().toString()}__`,l=RegExp(o,"g");function s(e){return e.replace(l,"\r")}n.escapeSpecialCharacters=function(e){return e.replace(a,o)},n.formatDOM=function e(t,n=null,a){let o,l=[],c=0,d=t.length;for(;c<d;c++){let a=t[c];switch(a.nodeType){case 1:{let t=function(e){var t;let n=(t=e=e.toLowerCase(),i.CASE_SENSITIVE_TAG_NAMES_MAP[t]);return n||e}(a.nodeName);(o=new r.Element(t,function(e){let t={},n=0,r=e.length;for(;n<r;n++){let r=e[n];t[r.name]=r.value}return t}(a.attributes))).children=e("template"===t?a.content.childNodes:a.childNodes,o);break}case 3:o=new r.Text(s(a.nodeValue??""));break;case 8:o=new r.Comment(a.nodeValue??"");break;default:continue}let d=l[c-1]??null;d&&(d.next=o),o.parent=n,o.prev=d,o.next=null,l.push(o)}return a&&((o=new r.ProcessingInstruction(a.substring(0,a.indexOf(" ")).toLowerCase(),a)).next=l[0]??null,o.parent=n,l.unshift(o),l[1]&&(l[1].prev=l[0])),l},n.hasOpenTag=function(e,t){let n="<"+t,r=e.toLowerCase().indexOf(n);if(-1===r)return!1;let i=e[r+n.length];return">"===i||" "===i||" "===i||"\n"===i||"\r"===i||"/"===i},n.revertEscapedCharacters=s},612369,(e,t,n)=>{let r,i=e.r(73217),a="html",o="head",l="body",s=/<([a-zA-Z]+[0-9]?)/;function c(e,t){return t?t.createHTML(e):e}let d=(e,t,n)=>{throw Error("This browser does not support `document.implementation.createHTMLDocument`")},u=(e,t,n)=>{throw Error("This browser does not support `DOMParser.prototype.parseFromString`")},p="object"==typeof window&&window.DOMParser;if("function"==typeof p){let e=new p;d=u=(t,n,r)=>(n&&(t=`<${n}>${t}</${n}>`),e.parseFromString(t,"text/html"))}if("object"==typeof document&&document.implementation){let e=document.implementation.createHTMLDocument();d=function(t,n,r){if(n){let i=e.documentElement.querySelector(n);return i&&(i.innerHTML=c(t,r)),e}return e.documentElement.innerHTML=c(t,r),e}}let m="object"==typeof document&&document.createElement("template");m&&m.content&&(r=(e,t)=>(m.innerHTML=c(e,t),m.content.childNodes)),n.default=function(e,t){e=i.escapeSpecialCharacters(e);let n=s.exec(e)?.[1]?.toLowerCase();switch(n){case a:{let t=u(e);if(!i.hasOpenTag(e,o)){let e=t.querySelector(o);e?.parentNode?.removeChild(e)}if(!i.hasOpenTag(e,l)){let e=t.querySelector(l);e?.parentNode?.removeChild(e)}return t.querySelectorAll(a)}case o:case l:{let r=d(e,void 0,t).querySelectorAll(n);if(i.hasOpenTag(e,l)&&i.hasOpenTag(e,o))return r[0].parentNode?.childNodes??document.createDocumentFragment().childNodes;return r}default:if(r)return r(e,t);return d(e,l,t).querySelector(l)?.childNodes??document.createDocumentFragment().childNodes}},n.getHTMLForInnerHTML=c},971883,(e,t,n)=>{Object.defineProperties(n,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});let r=e.r(73217),i=e.r(612369),a=/<(![a-zA-Z\s]+)>/;n.default=function(e,t){if("string"!=typeof e)throw TypeError("First argument must be a string");if(!e)return[];let n=a.exec(e),o=n?n[1]:void 0;return r.formatDOM(i.default(e,t?.trustedTypePolicy),null,o)}},559878,(e,t,n)=>{n.SAME=0,n.CAMELCASE=1,n.possibleStandardNames={accept:0,acceptCharset:1,"accept-charset":"acceptCharset",accessKey:1,action:0,allowFullScreen:1,alt:0,as:0,async:0,autoCapitalize:1,autoComplete:1,autoCorrect:1,autoFocus:1,autoPlay:1,autoSave:1,capture:0,cellPadding:1,cellSpacing:1,challenge:0,charSet:1,checked:0,children:0,cite:0,class:"className",classID:1,className:1,cols:0,colSpan:1,content:0,contentEditable:1,contextMenu:1,controls:0,controlsList:1,coords:0,crossOrigin:1,dangerouslySetInnerHTML:1,data:0,dateTime:1,default:0,defaultChecked:1,defaultValue:1,defer:0,dir:0,disabled:0,disablePictureInPicture:1,disableRemotePlayback:1,download:0,draggable:0,encType:1,enterKeyHint:1,for:"htmlFor",form:0,formMethod:1,formAction:1,formEncType:1,formNoValidate:1,formTarget:1,frameBorder:1,headers:0,height:0,hidden:0,high:0,href:0,hrefLang:1,htmlFor:1,httpEquiv:1,"http-equiv":"httpEquiv",icon:0,id:0,innerHTML:1,inputMode:1,integrity:0,is:0,itemID:1,itemProp:1,itemRef:1,itemScope:1,itemType:1,keyParams:1,keyType:1,kind:0,label:0,lang:0,list:0,loop:0,low:0,manifest:0,marginWidth:1,marginHeight:1,max:0,maxLength:1,media:0,mediaGroup:1,method:0,min:0,minLength:1,multiple:0,muted:0,name:0,noModule:1,nonce:0,noValidate:1,open:0,optimum:0,pattern:0,placeholder:0,playsInl
1ine:1,poster:0,preload:0,profile:0,radioGroup:1,readOnly:1,referrerPolicy:1,rel:0,required:0,reversed:0,role:0,rows:0,rowSpan:1,sandbox:0,scope:0,scoped:0,scrolling:0,seamless:0,selected:0,shape:0,size:0,sizes:0,span:0,spellCheck:1,src:0,srcDoc:1,srcLang:1,srcSet:1,start:0,step:0,style:0,summary:0,tabIndex:1,target:0,title:0,type:0,useMap:1,value:0,width:0,wmode:0,wrap:0,about:0,accentHeight:1,"accent-height":"accentHeight",accumulate:0,additive:0,alignmentBaseline:1,"alignment-baseline":"alignmentBaseline",allowReorder:1,alphabetic:0,amplitude:0,arabicForm:1,"arabic-form":"arabicForm",ascent:0,attributeName:1,attributeType:1,autoReverse:1,azimuth:0,baseFrequency:1,baselineShift:1,"baseline-shift":"baselineShift",baseProfile:1,bbox:0,begin:0,bias:0,by:0,calcMode:1,capHeight:1,"cap-height":"capHeight",clip:0,clipPath:1,"clip-path":"clipPath",clipPathUnits:1,clipRule:1,"clip-rule":"clipRule",color:0,colorInterpolation:1,"color-interpolation":"colorInterpolation",colorInterpolationFilters:1,"color-interpolation-filters":"colorInterpolationFilters",colorProfile:1,"color-profile":"colorProfile",colorRendering:1,"color-rendering":"colorRendering",contentScriptType:1,contentStyleType:1,cursor:0,cx:0,cy:0,d:0,datatype:0,decelerate:0,descent:0,diffuseConstant:1,direction:0,display:0,divisor:0,dominantBaseline:1,"dominant-baseline":"dominantBaseline",dur:0,dx:0,dy:0,edgeMode:1,elevation:0,enableBackground:1,"enable-background":"enableBackground",end:0,exponent:0,externalResourcesRequired:1,fill:0,fillOpacity:1,"fill-opacity":"fillOpacity",fillRule:1,"fill-rule":"fillRule",filter:0,filterRes:1,filterUnits:1,floodOpacity:1,"flood-opacity":"floodOpacity",floodColor:1,"flood-color":"floodColor",focusable:0,fontFamily:1,"font-family":"fontFamily",fontSize:1,"font-size":"fontSize",fontSizeAdjust:1,"font-size-adjust":"fontSizeAdjust",fontStretch:1,"font-stretch":"fontStretch",fontStyle:1,"font-style":"fontStyle",fontVariant:1,"font-variant":"fontVariant",fontWeight:1,"font-weight":"fontWeight",format:0,from:0,fx:0,fy:0,g1:0,g2:0,glyphName:1,"glyph-name":"glyphName",glyphOrientationHorizontal:1,"glyph-orientation-horizontal":"glyphOrientationHorizontal",glyphOrientationVertical:1,"glyph-orientation-vertical":"glyphOrientationVertical",glyphRef:1,gradientTransform:1,gradientUnits:1,hanging:0,horizAdvX:1,"horiz-adv-x":"horizAdvX",horizOriginX:1,"horiz-origin-x":"horizOriginX",ideographic:0,imageRendering:1,"image-rendering":"imageRendering",in2:0,in:0,inlist:0,intercept:0,k1:0,k2:0,k3:0,k4:0,k:0,kernelMatrix:1,kernelUnitLength:1,kerning:0,keyPoints:1,keySplines:1,keyTimes:1,lengthAdjust:1,letterSpacing:1,"letter-spacing":"letterSpacing",lightingColor:1,"lighting-color":"lightingColor",limitingConeAngle:1,local:0,markerEnd:1,"marker-end":"markerEnd",markerHeight:1,markerMid:1,"marker-mid":"markerMid",markerStart:1,"marker-start":"markerStart",markerUnits:1,markerWidth:1,mask:0,maskContentUnits:1,maskUnits:1,mathematical:0,mode:0,numOctaves:1,offset:0,opacity:0,operator:0,order:0,orient:0,orientation:0,origin:0,overflow:0,overlinePosition:1,"overline-position":"overlinePosition",overlineThickness:1,"overline-thickness":"overlineThickness",paintOrder:1,"paint-order":"paintOrder",panose1:0,"panose-1":"panose1",pathLength:1,patternContentUnits:1,patternTransform:1,patternUnits:1,pointerEvents:1,"pointer-events":"pointerEvents",points:0,pointsAtX:1,pointsAtY:1,pointsAtZ:1,prefix:0,preserveAlpha:1,preserveAspectRatio:1,primitiveUnits:1,property:0,r:0,radius:0,refX:1,refY:1,renderingIntent:1,"rendering-intent":"renderingIntent",repeatCount:1,repeatDur:1,requiredExtensions:1,requiredFeatures:1,resource:0,restart:0,result:0,results:0,rotate:0,rx:0,ry:0,scale:0,security:0,seed:0,shapeRendering:1,"shape-rendering":"shapeRendering",slope:0,spacing:0,specularConstant:1,specularExponent:1,speed:0,spreadMethod:1,startOffset:1,stdDeviation:1,stemh:0,stemv:0,stitchTiles:1,stopColor:1,"stop-color":"stopColor",stopOpacity:1,"stop-opacity":"stopOpacity",strikethroughPosition:1,"strikethrough-position":"strikethroughPosition",strikethroughThickness:1,"strikethrough-thickness":"strikethroughThickness",string:0,stroke:0,strokeDasharray:1,"stroke-dasharray":"strokeDasharray",strokeDashoffset:1,"stroke-dashoffset":"strokeDashoffset",strokeLinecap:1,"stroke-linecap":"strokeLinecap",strokeLinejoin:1,"stroke-linejoin":"strokeLinejoin",strokeMiterlimit:1,"stroke-miterlimit":"strokeMiterlimit",strokeWidth:1,"stroke-width":"strokeWidth",strokeOpacity:1,"stroke-opacity":"strokeOpacity",suppressContentEditableWarning:1,suppressHydrationWarning:1,surfaceScale:1,systemLanguage:1,tableValues:1,targetX:1,targetY:1,textAnchor:1,"text-anchor":"textAnchor",textDecoration:1,"text-decoration":"textDecoration",textLength:1,textRendering:1,"text-rendering":"textRendering",to:0,transform:0,typeof:0,u1:0,u2:0,underlinePosition:1,"underline-position":"underlinePosition",underlineThickness:1,"underline-thickness":"underlineThickness",unicode:0,unicodeBidi:1,"unicode
1-bidi":"unicodeBidi",unicodeRange:1,"unicode-range":"unicodeRange",unitsPerEm:1,"units-per-em":"unitsPerEm",unselectable:0,vAlphabetic:1,"v-alphabetic":"vAlphabetic",values:0,vectorEffect:1,"vector-effect":"vectorEffect",version:0,vertAdvY:1,"vert-adv-y":"vertAdvY",vertOriginX:1,"vert-origin-x":"vertOriginX",vertOriginY:1,"vert-origin-y":"vertOriginY",vHanging:1,"v-hanging":"vHanging",vIdeographic:1,"v-ideographic":"vIdeographic",viewBox:1,viewTarget:1,visibility:0,vMathematical:1,"v-mathematical":"vMathematical",vocab:0,widths:0,wordSpacing:1,"word-spacing":"wordSpacing",writingMode:1,"writing-mode":"writingMode",x1:0,x2:0,x:0,xChannelSelector:1,xHeight:1,"x-height":"xHeight",xlinkActuate:1,"xlink:actuate":"xlinkActuate",xlinkArcrole:1,"xlink:arcrole":"xlinkArcrole",xlinkHref:1,"xlink:href":"xlinkHref",xlinkRole:1,"xlink:role":"xlinkRole",xlinkShow:1,"xlink:show":"xlinkShow",xlinkTitle:1,"xlink:title":"xlinkTitle",xlinkType:1,"xlink:type":"xlinkType",xmlBase:1,"xml:base":"xmlBase",xmlLang:1,"xml:lang":"xmlLang",xmlns:0,"xml:space":"xmlSpace",xmlnsXlink:1,"xmlns:xlink":"xmlnsXlink",xmlSpace:1,y1:0,y2:0,y:0,yChannelSelector:1,z:0,zoomAndPan:1}},594555,(e,t,n)=>{"use strict";function r(e,t,n,r,i,a,o){this.acceptsBooleans=2===t||3===t||4===t,this.attributeName=r,this.attributeNamespace=i,this.mustUseProperty=n,this.propertyName=e,this.type=t,this.sanitizeURL=a,this.removeEmptyString=o}let i={};["children","dangerouslySetInnerHTML","defaultValue","defaultChecked","innerHTML","suppressContentEditableWarning","suppressHydrationWarning","style"].forEach(e=>{i[e]=new r(e,0,!1,e,null,!1,!1)}),[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(([e,t])=>{i[e]=new r(e,1,!1,t,null,!1,!1)}),["contentEditable","draggable","spellCheck","value"].forEach(e=>{i[e]=new r(e,2,!1,e.toLowerCase(),null,!1,!1)}),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(e=>{i[e]=new r(e,2,!1,e,null,!1,!1)}),["allowFullScreen","async","autoFocus","autoPlay","controls","default","defer","disabled","disablePictureInPicture","disableRemotePlayback","formNoValidate","hidden","loop","noModule","noValidate","open","playsInline","readOnly","required","reversed","scoped","seamless","itemScope"].forEach(e=>{i[e]=new r(e,3,!1,e.toLowerCase(),null,!1,!1)}),["checked","multiple","muted","selected"].forEach(e=>{i[e]=new r(e,3,!0,e,null,!1,!1)}),["capture","download"].forEach(e=>{i[e]=new r(e,4,!1,e,null,!1,!1)}),["cols","rows","size","span"].forEach(e=>{i[e]=new r(e,6,!1,e,null,!1,!1)}),["rowSpan","start"].forEach(e=>{i[e]=new r(e,5,!1,e.toLowerCase(),null,!1,!1)});let a=/[\-\:]([a-z])/g,o=e=>e[1].toUpperCase();["accent-height","alignment-baseline","arabic-form","baseline-shift","cap-height","clip-path","clip-rule","color-interpolation","color-interpolation-filters","color-profile","color-rendering","dominant-baseline","enable-background","fill-opacity","fill-rule","flood-color","flood-opacity","font-family","font-size","font-size-adjust","font-stretch","font-style","font-variant","font-weight","glyph-name","glyph-orientation-horizontal","glyph-orientation-vertical","horiz-adv-x","horiz-origin-x","image-rendering","letter-spacing","lighting-color","marker-end","marker-mid","marker-start","overline-position","overline-thickness","paint-order","panose-1","pointer-events","rendering-intent","shape-rendering","stop-color","stop-opacity","strikethrough-position","strikethrough-thickness","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke-width","text-anchor","text-decoration","text-rendering","underline-position","underline-thickness","unicode-bidi","unicode-range","units-per-em","v-alphabetic","v-hanging","v-ideographic","v-mathematical","vector-effect","vert-adv-y","vert-origin-x","vert-origin-y","word-spacing","writing-mode","xmlns:xlink","x-height"].forEach(e=>{let t=e.replace(a,o);i[t]=new r(t,1,!1,e,null,!1,!1)}),["xlink:actuate","xlink:arcrole","xlink:role","xlink:show","xlink:title","xlink:type"].forEach(e=>{let t=e.replace(a,o);i[t]=new r(t,1,!1,e,"http://www.w3.org/1999/xlink",!1,!1)}
1),["xml:base","xml:lang","xml:space"].forEach(e=>{let t=e.replace(a,o);i[t]=new r(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)}),["tabIndex","crossOrigin"].forEach(e=>{i[e]=new r(e,1,!1,e.toLowerCase(),null,!1,!1)}),i.xlinkHref=new r("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1),["src","href","action","formAction"].forEach(e=>{i[e]=new r(e,1,!1,e.toLowerCase(),null,!0,!0)});let{CAMELCASE:l,SAME:s,possibleStandardNames:c}=e.r(559878),d=RegExp.prototype.test.bind(RegExp("^(data|aria)-[:A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD\\-.0-9\\u00B7\\u0300-\\u036F\\u203F-\\u2040]*$")),u=Object.keys(c).reduce((e,t)=>{let n=c[t];return n===s?e[t]=t:n===l?e[t.toLowerCase()]=t:e[t]=n,e},{});n.BOOLEAN=3,n.BOOLEANISH_STRING=2,n.NUMERIC=5,n.OVERLOADED_BOOLEAN=4,n.POSITIVE_NUMERIC=6,n.RESERVED=0,n.STRING=1,n.getPropertyInfo=function(e){return i.hasOwnProperty(e)?i[e]:null},n.isCustomAttribute=d,n.possibleStandardNames=u},126568,(e,t,n)=>{"use strict";var r=/\/\*(?:[^*]|\*(?!\/))*\*\//g,i=/\n/g,a=/^\s*/,o=/^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/,l=/^:\s*/,s=/^((?:'(?:\\.|[^'\\])*'|"(?:\\.|[^"\\])*"|url\((?:'(?:\\.|[^'\\])*'|"(?:\\.|[^"\\])*"|[^)]*)\)|[^};])+)/,c=/^[;\s]*/;t.exports=function(e,t){if("string"!=typeof e)throw TypeError("First argument must be a string");if(!e)return[];t=t||{};var n=1,d=1;function u(e){var t=e.match(i);t&&(n+=t.length);var r=e.lastIndexOf("\n");d=~r?e.length-r:d+e.length}function p(){var e={line:n,column:d};return function(t){return t.position=new m(e),f(a),t}}function m(e){this.start=e,this.end={line:n,column:d},this.source=t.source}function h(r){var i=Error(t.source+":"+n+":"+d+": "+r);if(i.reason=r,i.filename=t.source,i.line=n,i.column=d,i.source=e,t.silent);else throw i}function f(t){var n=t.exec(e);if(n){var r=n[0];return u(r),e=e.slice(r.length),n}}function g(e){for(var t;t=x();)e.push(t);return e}function x(){var t=p();if("/"==e.charAt(0)&&"*"==e.charAt(1)){for(var n=2;""!=e.charAt(n)&&("*"!=e.charAt(n)||"/"!=e.charAt(n+1));)++n;if(n+=2,""===e.charAt(n-1))return h("End of comment missing");var r=e.slice(2,n-2);return d+=2,u(r),e=e.slice(n),d+=2,t({type:"comment",comment:r})}}m.prototype.content=e,f(a);var y,b=[];for(g(b);y=function(){var e=p(),t=f(o);if(t){if(x(),!f(l))return h("property missing ':'");var n=f(s),i=e({type:"declaration",property:t[0].replace(r,"").trim(),value:n?n[0].replace(r,"").trim():""});return f(c),i}}();)b.push(y),g(b);return b}},270454,(e,t,n)=>{let r,i;var a=Object.create,o=Object.defineProperty,l=Object.getOwnPropertyDescriptor,s=Object.getOwnPropertyNames,c=Object.getPrototypeOf,d=Object.prototype.hasOwnProperty;let u=e.r(126568);i=null!=(r=u)?a(c(r)):{},u=((e,t,n)=>{if(t&&"object"==typeof t||"function"==typeof t)for(var r,i=s(t),a=0,c=i.length;a<c;a++)r=i[a],d.call(e,r)||void 0===r||o(e,r,{get:(e=>t[e]).bind(null,r),enumerable:!(n=l(t,r))||n.enumerable});return e})(r&&r.__esModule?i:o(i,"default",{value:r,enumerable:!0}),r),t.exports=function(e,t){let n=null;if(!e||"string"!=typeof e)return n;let r=(0,u.default)(e),i="function"==typeof t;return r.forEach(e=>{if("declaration"!==e.type)return;let{property:r,value:a}=e;i?t(r,a,e):a&&((n=n??{})[r]=a)}),n}},803187,(e,t,n)=>{let r,i;var a=Object.create,o=Object.defineProperty,l=Object.getOwnPropertyDescriptor,s=Object.getOwnPropertyNames,c=Object.getPrototypeOf,d=Object.prototype.hasOwnProperty;let u=e.r(270454);i=null!=(r=u)?a(c(r)):{},u=((e,t,n)=>{if(t&&"object"==typeof t||"function"==typeof t)for(var r,i=s(t),a=0,c=i.length;a<c;a++)r=i[a],d.call(e,r)||void 0===r||o(e,r,{get:(e=>t[e]).bind(null,r),enumerable:!(n=l(t,r))||n.enumerable});return e})(r&&r.__esModule?i:o(i,"default",{value:r,enumerable:!0}),r);let p=/^--[a-zA-Z0-9_-]+$/,m=/-([a-z])/g,h=/^[^-]+$/,f=/^-(webkit|moz|ms|o|khtml)-/,g=/^-(ms)-/,x=(e,t)=>t.toUpperCase(),y=(e,t)=>`${t}-`;t.exports=function(e,t){let n={};return e&&"string"==typeof e&&(0,u.default)(e,(e,r)=>{e&&r&&(n[((e,t={})=>{let n;return!(n=e)||h.test(n)||p.test(n)?e:(e=e.toLowerCase(),(e=t.reactCompat?e.replace(g,y):e.replace(f,y)).replace(m,x))})(e,t)]=r)}),n}},846335,(e,t,n)=>{"use strict";
1var r=e.e&&e.e.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(n,"__esModule",{value:!0}),n.returnFirstArg=n.canTextBeChildOfNode=n.ELEMENTS_WITH_NO_TEXT_CHILDREN=n.PRESERVE_CUSTOM_ATTRIBUTES=void 0,n.isCustomComponent=function(e,t){return e.includes("-")?!o.has(e):!!(t&&"string"==typeof t.is)},n.setStyleProp=function(e,t){if("string"==typeof e){if(!e.trim()){t.style={};return}try{t.style=(0,a.default)(e,l)}catch(e){t.style={}}}};let i=e.r(271645),a=r(e.r(803187)),o=new Set(["annotation-xml","color-profile","font-face","font-face-src","font-face-uri","font-face-format","font-face-name","missing-glyph"]),l={reactCompat:!0};n.PRESERVE_CUSTOM_ATTRIBUTES=Number(i.version.split(".")[0])>=16,n.ELEMENTS_WITH_NO_TEXT_CHILDREN=new Set(["tr","tbody","thead","tfoot","colgroup","table","head","html","frameset"]),n.canTextBeChildOfNode=e=>!n.ELEMENTS_WITH_NO_TEXT_CHILDREN.has(e.name),n.returnFirstArg=e=>e},312467,(e,t,n)=>{"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.default=function(e={},t){let n={},c=!!(e.type&&l[e.type]);for(let l in e){let d=e[l];if((0,r.isCustomAttribute)(l)){n[l]=d;continue}let u=l.toLowerCase(),p=s(u);if(p){let e=(0,r.getPropertyInfo)(p);switch(a.includes(p)&&o.includes(t)&&!c&&(p=s("default"+u)),n[p]=d,null==e?void 0:e.type){case r.BOOLEAN:n[p]=!0;break;case r.OVERLOADED_BOOLEAN:""===d&&(n[p]=!0)}continue}i.PRESERVE_CUSTOM_ATTRIBUTES&&(n[l]=d)}return(0,i.setStyleProp)(e.style,n),n};let r=e.r(594555),i=e.r(846335),a=["checked","value"],o=["input","select","textarea"],l={reset:!0,submit:!0};function s(e){return r.possibleStandardNames[e]}},940597,e=>{"use strict";var t,n;(n=t||(t={})).Root="root",n.Text="text",n.Directive="directive",n.Comment="comment",n.Script="script",n.Style="style",n.Tag="tag",n.CDATA="cdata",n.Doctype="doctype",t.Root,t.Text,t.Directive,t.Comment,t.Script,t.Style,t.Tag,t.CDATA,t.Doctype;class r{parent=null;prev=null;next=null;startIndex=null;endIndex=null;get parentNode(){return this.parent}set parentNode(e){this.parent=e}get previousSibling(){return this.prev}set previousSibling(e){this.prev=e}get nextSibling(){return this.next}set nextSibling(e){this.next=e}cloneNode(e=!1){return b(this,e)}}class i extends r{data;constructor(e){super(),this.data=e}get nodeValue(){return this.data}set nodeValue(e){this.data=e}}class a extends i{type=t.Text;get nodeType(){return 3}}class o extends i{type=t.Comment;get nodeType(){return 8}}class l extends i{type=t.Directive;name;constructor(e,t){super(t),this.name=e}get nodeType(){return 1}"x-name";"x-publicId";"x-systemId"}class s extends r{children;constructor(e){super(),this.children=e}get firstChild(){return this.children[0]??null}get lastChild(){return this.children.length>0?this.children[this.children.length-1]:null}get childNodes(){return this.children}set childNodes(e){this.children=e}}class c extends s{type=t.CDATA;get nodeType(){return 4}}class d extends s{type=t.Root;get nodeType(){return 9}}class u extends s{name;attribs;type;constructor(e,n,r=[],i="script"===e?t.Script:"style"===e?t.Style:t.Tag){super(r),this.name=e,this.attribs=n,this.type=i}get nodeType(){return 1}get tagName(){return this.name}set tagName(e){this.name=e}get attributes(){return Object.keys(this.attribs).map(e=>({name:e,value:this.attribs[e],namespace:this["x-attribsNamespace"]?.[e],prefix:this["x-attribsPrefix"]?.[e]}))}namespace;"x-attribsNamespace";"x-attribsPrefix"}function p(e){return e.type===t.Tag||e.type===t.Script||e.type===t.Style}function m(e){return e.type===t.CDATA}function h(e){return e.type===t.Text}function f(e){return e.type===t.Comment}function g(e){return e.type===t.Directive}function x(e){return e.type===t.Root}function y(e){return Object.hasOwn(e,"children")}function b(e,t=!1){let n;if(h(e))n=new a(e.data);else if(f(e))n=new o(e.data);else if(p(e)){let r=t?v(e.children):[],i=new u(e.name,{...e.attribs},r);for(let e of r)e.parent=i;null!=e.namespace&&(i.namespace=e.namespace),e["x-attribsNamespace"]&&(i["x-attribsNamespace"]={...e["x-attribsNamespace"]}),e["x-attribsPrefix"]&&(i["x-attribsPrefix"]={...e["x-attribsPrefix"]}),n=i}else if(m(e)){let r=t?v(e.children):[],i=new c(r);for(let e of r)e.parent=i;n=i}else if(x(e)){let r=t?v(e.children):[],i=new d(r);for(let e of r)e.parent=i;e["x-mode"]&&(i["x-mode"]=e["x-mode"]),n=i}else if(g(e)){let t=new l(e.name,e.data);null!=e["x-name"]&&(t["x-name"]=e["x-name"],t["x-publicId"]=e["x-publicId"],t["x-systemId"]=e["x-systemId"]),n=t}else throw Error(`Not implemented yet: ${e.type}`);return n.startIndex=e.startIndex,n.endIndex=e.endIndex,null!=e.sourceCodeLocation&&(n.sourceCodeLocation=e.sourceCodeLocation),n}function v(e){let t=e.map(e=>b(e,!0));for(let e=1;e<t.length;e++)t[e].prev=t[e-1],t[e-1].next=t[e];return t}e.s(["CDATA",0,c,"Comment",0,o,"DataNode",0,i,"Document",0,d,"Element",0,u,"Node",0,r,"NodeWithChildren",0,s,"ProcessingInstruction",0,l,"Text",0,a,"cloneNode",0,b,"hasChildren",0,y,"isCDATA",0,m,"isComment",0,f,"isDirective",0,g,"isDocument",0,x,"isTag",0,p,"isText",0,h],928307);let w={withStartIndices:!1,withEndIndices:!1,xmlMode:!1};class k{dom=[];root=new d(this.dom);callback;options;elementCB;done=!1;tagStack=[this.root];lastNode=null;parser=null;constructor(e,t,n){"function"==typeof t&&(n=t,t=w),"object"==typeof e&&(t=e,e=void 0),this.callback=e??null,this.options=t??w,this.elementCB=n??null}onparserinit(e){this.parser=e}onreset(){this.dom=[],this.root=new d(this.dom),this.done=!1,this.tagStack=[this.root],this.lastNode=null,this.parser=null}onend(){this.done||(this.done=!0,this.parser=null,this.handleCallback(null))}onerror(e){this.handleCallback(e)}onclosetag(){this.lastNode=null;let e=this.tagStack.pop();this.options.withEndIndices&&this.parser&&(e.endIndex=this.parser.endIndex),this.elementCB&&this.elementCB(e)}onopentag(e,n){let r=new u(e,n,void 0,this.options.xmlMode?t.Tag:void 0);this.addNode(r),this.tagStack.push(r)}ontext(e){let{lastNode:n}=this;if(n&&n.type===t.Text)n.data+=e,this.options.withEndIndices&&this.parser&&(n.endIndex=this.parser.endIndex);else{let t=new a(e);this.addNode(t),this.lastNode=t}}oncomment(e){if(this.lastNode&&this.lastNode.type===t.Comment){this.lastNode.data+=e;return}let n=new o(e);this.addNode(n),this.lastNode=n}oncommentend(){this.lastNode=null}oncdatastart(){let e=new a(""),t=new c([e]);this.addNode(t),e.parent=t,this.lastNode=e}
1oncdataend(){this.lastNode=null}onprocessinginstruction(e,t){let n=new l(e,t);this.addNode(n)}handleCallback(e){if("function"==typeof this.callback)this.callback(e,this.dom);else if(e)throw e}addNode(e){let t=this.tagStack[this.tagStack.length-1],n=t.children[t.children.length-1];this.options.withStartIndices&&this.parser&&(e.startIndex=this.parser.startIndex),this.options.withEndIndices&&this.parser&&(e.endIndex=this.parser.endIndex),t.children.push(e),n&&(e.prev=n,n.next=e),e.parent=t,this.lastNode=null}}e.s(["DomHandler",0,k,"default",0,k],16170),e.i(16170),e.i(928307),e.s(["CDATA",0,c,"Comment",0,o,"DataNode",0,i,"Document",0,d,"DomHandler",0,k,"Element",0,u,"Node",0,r,"NodeWithChildren",0,s,"ProcessingInstruction",0,l,"Text",0,a,"cloneNode",0,b,"default",0,k,"hasChildren",0,y,"isCDATA",0,m,"isComment",0,f,"isDirective",0,g,"isDocument",0,x,"isTag",0,p,"isText",0,h],940597)},454465,(e,t,n)=>{"use strict";var r=e.e&&e.e.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(n,"__esModule",{value:!0}),n.default=function e(t,n={}){var r,a,c,d,u,p;let m=[],h="function"==typeof n.replace,f=null!=(r=n.transform)?r:l.returnFirstArg,{cloneElement:g,createElement:x,isValidElement:y}=null!=(a=n.library)?a:s,b=t.length;!function e(t){for(let n of t)("tag"===n.type||"script"===n.type||"style"===n.type)&&(Object.setPrototypeOf(n,i.Element.prototype),e(n.children))}(t);for(let r=0;r<b;r++){let i,a=t[r];if(h){let e=null==(c=n.replace)?void 0:c.call(n,a,r);if(y(e)){b>1&&(e=g(e,{key:null!=(d=e.key)?d:r})),m.push(f(e,a,r));continue}}if("text"===a.type){let e=!a.data.trim().length;if(e&&a.parent&&!(0,l.canTextBeChildOfNode)(a.parent)||n.trim&&e)continue;m.push(f(a.data,a,r));continue}let s={};switch((p=a,l.PRESERVE_CUSTOM_ATTRIBUTES&&"tag"===p.type&&(0,l.isCustomComponent)(p.name,p.attribs))?((0,l.setStyleProp)(a.attribs.style,a.attribs),s=a.attribs):a.attribs&&(s=(0,o.default)(a.attribs,a.name)),a.type){case"script":case"style":a.children[0]&&(s.dangerouslySetInnerHTML={__html:a.children[0].data});break;case"tag":"textarea"===a.name&&a.children[0]?s.defaultValue=a.children[0].data:(null==(u=a.children)?void 0:u.length)&&(i=e(a.children,n));break;default:continue}b>1&&(s.key=r),m.push(f(x(a.name,s,i),a,r))}return 1===m.length?m[0]:m};let i=e.r(940597),a=e.r(271645),o=r(e.r(312467)),l=e.r(846335),s={cloneElement:a.cloneElement,createElement:a.createElement,isValidElement:a.isValidElement}},617870,(e,t,n)=>{"use strict";var r=e.e&&e.e.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(n,"__esModule",{value:!0}),n.htmlToDOM=n.domToReact=n.attributesToProps=n.Text=n.ProcessingInstruction=n.Element=n.Comment=void 0,n.default=function(e,t){var n;if("string"!=typeof e)throw TypeError("First argument must be a string");if(!e)return[];let r=Object.assign(Object.assign({},null!=(n=null==t?void 0:t.htmlparser2)?n:l),{trustedTypePolicy:null==t?void 0:t.trustedTypePolicy});return(0,a.default)((0,i.default)(e,r),t)};let i=r(e.r(971883));n.htmlToDOM=i.default,n.attributesToProps=r(e.r(312467)).default;let a=r(e.r(454465));n.domToReact=a.default;var o=e.r(940597);Object.defineProperty(n,"Comment",{enumerable:!0,get:function(){return o.Comment}}),Object.defineProperty(n,"Element",{enumerable:!0,get:function(){return o.Element}}),Object.defineProperty(n,"ProcessingInstruction",{enumerable:!0,get:function(){return o.ProcessingInstruction}}),Object.defineProperty(n,"Text",{enumerable:!0,get:function(){return o.Text}});let l={lowerCaseAttributeNames:!1}},207069,585318,845750,683080,875995,32388,947469,630601,621415,49659,e=>{"use strict";function t(e){return e.items.flatMap(e=>"tool"===e.kind?[e.part]:[])}function n(e){return e.items.some(e=>"reasoning"===e.kind&&e.streaming)}let r=e=>"input-streaming"===e.state||"input-available"===e.state;e.s(["activityStatus",0,function(e,i,a=()=>void 0){let o=t(e).find(r);return o?a(o.toolName)??o.toolName.replace(/_/g," "):t(e).some(e=>"approval-requested"===e.state)?"Waiting for your OK":n(e)?"Thinking":i?"Reading what came back":null},"activityThinking",0,n,"activityTools",0,t,"blocksOf",0,function(e){let t=[],n=0,r=0,i=()=>{let e=t[t.length-1];if(e?.kind==="activity")return e;let n={id:`activity-${r++}`,kind:"activity",items:[]};return t.push(n),n};for(let r of e)if("reasoning"===r.type)i().items.push({kind:"reasoning",text:r.text,streaming:"done"!==r.state});else if("text"===r.type){if(!r.text.trim())continue;t.push({id:`text-${n++}`,kind:"text",text:r.text})}else"dynamic-tool"===r.type?i().items.push({kind:"tool",part:r}):"data-mcp_app"===r.type&&t.push({id:`app-${r.data.call_id}`,kind:"app",data:r.data});return t},"waitingFor",0,function(e,r){if(!r)return null;let i=e[e.length-1];return i?"activity"===i.kind?t(i).length>0||n(i)?null:"Writing the answer":null:"Thinking"}],207069);var i=e.i(271645),a=e.i(843476),o=e.i(16205),l=e.i(700327),s=e.i(454133),c=e.i(17296),d=e.i(495576),u=e.i(516516),p=e.i(882087);let m=(0,e.i(235884).default)("orbit",[["path",{d:"M20.341 6.484A10 10 0 0 1 10.266 21.85",key:"1enhxb"}],["path",{d:"M3.659 17.516A10 10 0 0 1 13.74 2.152",key:"1crzgf"}],["circle",{cx:"12",cy:"12",r:"3",key:"1v7zrd"}],["circle",{cx:"19",cy:"5",r:"2",key:"mhkx31"}],["circle",{cx:"5",cy:"19",r:"2",key:"v8kfzx"}]]);var h=e.i(527454),f=e.i(541575),g=e.i(275664),x=e.i(778044),y=e.i(944266),b=e.i(224744);e.i(513036);var v=e.i(696939);let w=[{match:/integration/,label:"Connections",icon:h.Plug},{match:/plan|billing/,label:"Plan",icon:c.CreditCard},{match:/gmail/,label:"Gmail",icon:p.Mail},{match:/slack/,label:"Slack",icon:g.Slack},{match:/^send_email$/,label:"Email",icon:f.Send},{match:/calendar/,label:"Calendar",icon:s.Calendar},{match:/twitter|tweet/,label:"X",icon:y.Twitter},{match:/hubspot/,label:"HubSpot",icon:m}
1,{match:/graph/,label:"Brain",icon:o.Brain},{match:/^research_company$/,label:"Research",icon:l.Building2},{match:/^find_companies$/,label:"Prospecting",icon:x.Target},{match:/domain/,label:"Domains",icon:d.Globe},{match:/connection|invitation|linkedin|message_correspondents|messages_summary/,label:"LinkedIn",icon:u.Linkedin}],k="mcp__";function _(e){if(!e.startsWith(k))return null;let t=e.slice(k.length),n=t.indexOf("__");return n<=0||n===t.length-2?null:{slug:t.slice(0,n),tool:t.slice(n+2)}}function T(e,t){let n=new Map;for(let r of e){let e=_(r),i=e?{label:t?.[r]?.connector_label??e.slug,icon:h.Plug}:w.find(e=>e.match.test(r))??{label:r.replace(/_/g," "),icon:b.Wrench};n.has(i.label)||n.set(i.label,i)}return[...n.values()]}e.s(["ToolSourceChips",0,function({names:e,connectorTools:t}){let n=T(e,t);if(0===n.length)return null;let r=n.slice(0,v.TOOL_BAR_SOURCE_LIMIT),i=n.length-r.length;return(0,a.jsxs)(a.Fragment,{children:[r.map(({label:e,icon:t})=>(0,a.jsxs)("span",{title:`Used ${e}`,className:"flex items-center gap-1 rounded-full border border-border px-2 py-0.5 text-xs text-muted-foreground",children:[(0,a.jsx)(t,{"aria-hidden":!0,className:"size-3",strokeWidth:2}),e]},e)),i>0?(0,a.jsxs)("span",{title:n.slice(v.TOOL_BAR_SOURCE_LIMIT).map(e=>e.label).join(", "),className:"rounded-full border border-border px-2 py-0.5 text-xs text-muted-foreground",children:["+",i]}):null]})},"connectorToolTitle",0,function(e){let t=_(e);if(!t)return;let n=t.slug.replace(/-/g," ");return`${n.charAt(0).toUpperCase()}${n.slice(1)}: ${t.tool.replace(/_/g," ")}`},"splitConnectorTool",0,_,"toolSources",0,T],585318);var C=e.i(938827);e.s(["useConnectorToolLabels",0,function(e){let{data:t}=(0,C.useConnectors)();return(0,i.useMemo)(()=>{let n=e.parts.find(e=>"data-conversation"===e.type),r=n?.type==="data-conversation"?n.data.connector_tools:void 0,i=new Set;for(let t of e.parts)"dynamic-tool"===t.type&&_(t.toolName)&&i.add(t.toolName);for(let t of e.metadata?.toolCalls??[])_(t)&&i.add(t);if(0===i.size)return r;let a=new Map((t?.connectors??[]).map(e=>[e.slug,e])),o={...r};for(let e of i){if(o[e])continue;let t=_(e),n=t?a.get(t.slug):void 0;if(!t||!n)continue;let r=n.tools?.find(e=>e.name===t.tool);o[e]={label:`${n.label}: ${r?.title??t.tool}`,connector_id:n.connector_id,connector_label:n.label,icon_url:n.icon_url,read_only:r?.is_read_only??!1,tool:t.tool,has_ui:r?.has_ui??!1}}return o},[e.parts,e.metadata?.toolCalls,t])}],845750),e.i(726493);var S=e.i(288562);let j="<ui-component",N=/<ui-component\b([^>]*?)>\s*(?:<\/ui-component\s*>)?/g,E=/\/\s*$/,A=/([a-zA-Z_][a-zA-Z0-9_-]*)\s*=\s*"([^"]*)"/g,O=/^[ \t]{0,3}(`{3,}|~{3,})/,R=/`+[^`\n]*`+/g;function I(e){let t=[],n=null,r=0,i=0;for(let a of e.split("\n")){let e=i+a.length,o=O.exec(a);null===n?o&&(n=o[1],r=i):o&&o[1][0]===n[0]&&o[1].length>=n.length&&""===a.slice(o[0].length).trim()&&(t.push([r,e]),n=null),i=e+1}for(let i of(null!==n&&t.push([r,e.length]),e.matchAll(R))){let e=i.index??0;t.some(([t,n])=>e>=t&&e<n)||t.push([e,e+i[0].length])}return t}function M(e,t){return e.some(([e,n])=>t>=e&&t<n)}function P(e){let t={};for(let n of e.matchAll(A)){let e=n[1],r=n[2];e&&void 0!==r&&(t[e.toLowerCase()]=r)}return t}e.s(["parseGenUIAttrs",0,P,"segmentGenUI",0,function(e){let{body:t}=function(e){let t=I(e),n=e.lastIndexOf(j);if(-1!==n&&!M(t,n)){let t=e.slice(n),r=t.indexOf(">");if(-1===r)return{body:e.slice(0,n),tail:t};if(!E.test(t.slice(0,r))&&!t.includes("</ui-component",r)){let i=t.slice(r+1);if(/^\s*(<(\/(u(i(-(c(o(m(p(o(n(e(n(t)?)?)?)?)?)?)?)?)?)?)?)?)?)?$/.test(i))return{body:e.slice(0,n),tail:t}}}for(let t=Math.min(j.length-1,e.length);t>=1;t--){let n=e.slice(-t);if(j.startsWith(n)&&e.lastIndexOf("<")===e.length-t)return{body:e.slice(0,-t),tail:n}}return{body:e,tail:""}}(e),n=I(t),r=[],i=0;for(let e of t.matchAll(N)){let a=e.index??0;if(M(n,a))continue;let o=t.slice(i,a).trim();o&&r.push({kind:"text",text:o}),r.push({kind:"component",attrs:P(e[1]??"")}),i=a+e[0].length}let a=t.slice(i).trim();return a&&r.push({kind:"text",text:a}),r}],683080);let D=/^[ \t]*<ui-component\b[^<>]*>[ \t]*(?:<\/ui-component>)?[ \t]*$/gim;e.s(["replyMarkdown",0,function(e,t,n=new Set){return[n.size?e.replace(D,e=>n.has(P(e)?.type??"")?"":e):e,t?(0,S.composedMarkdown)(t):""].map(e=>
1e.trim()).filter(Boolean).join("\n\n").replace(/\n{3,}/g,"\n\n")}],875995);var L=e.i(266027),F=e.i(689605),z=e.i(870545),B=e.i(705882),$=e.i(308247),H=e.i(627233),U=e.i(10424),q=e.i(384952),V=e.i(310108),W=e.i(743412);function X(){let e=(0,V.useFlags)(),t=!!e.brand_kits,n=(0,W.studioEnabled)(e),r=!!e.substack,a=!!e.scheduled_inventory;return(0,i.useMemo)(()=>(0,H.createRegistry)({brand_kit_card:t?$.brandKitCardEntry:null,brand_kit_list:t?$.brandKitListEntry:null,artifact_card:n?z.artifactCardEntry:null,artifact_list:n?B.artifactListEntry:null,substack_posts:r?q.substackPostsEntry:null,substack_growth:r?q.substackGrowthEntry:null,scheduled_list:a?U.scheduledListEntry:null}),[t,n,r,a])}e.s(["useChatRegistry",0,X],32388);var G=e.i(701281);let K=new Set;e.s(["useComposedCards",0,function(e,t){let n,r=(0,V.useFlag)("chat_jev_cards"),a=X(),o=(n=e.parts.findLast(e=>"data-cards"===e.type),n?.type==="data-cards"&&n.data.cards.length?n.data:null),l=(0,i.useMemo)(()=>{var e;return r&&(e=o)?new Set(e.cards.map(e=>e.type)):K},[r,o]),s=(0,L.useQuery)({queryKey:G.queryKeys.chat.composedCards(o?.prompt??"",o?.cards.map(e=>e.key)??[]),queryFn:({signal:e})=>(0,S.composeCards)(o.prompt,o.cards,async({state:e,questions:t,signal:n})=>{let{answers:r}=await F.api.chat.evaluateCards({state:e,questions:t},n);return{answers:Object.fromEntries(Object.entries(r).map(([e,t])=>[e,{choice:t.choice,confidence:t.confidence??void 0}]))}},e,a),enabled:r&&null!==o&&function(e,t){if(!t)return!0;let n=e.parts.findLastIndex(e=>"dynamic-tool"===e.type);return e.parts.slice(n+1).some(e=>"text"===e.type&&""!==e.text.trim())}(e,t),staleTime:1/0,retry:!1});return{spec:s.data?.spec??null,registry:a,owned:l}}],947469);var Y=e.i(599486),Z=e.i(768402),J=e.i(607619),Q=e.i(758282),ee=e.i(135911),et=e.i(235979);let en="Here is my revised content:";e.s(["REVISION_PREFIX",0,en],630601);var er=e.i(242037);function ei({text:e,onClose:t}){let[n,r]=(0,i.useState)(()=>e.trim());return(0,a.jsxs)("div",{className:"flex min-h-0 flex-1 flex-col gap-3",children:[(0,a.jsxs)(Q.Heading,{slot:"title",className:"text-foreground m-0 flex shrink-0 items-center gap-2 text-lg font-semibold",children:[(0,a.jsx)(Y.Pencil,{"aria-hidden":!0,size:18}),"Edit this reply"]}),(0,a.jsx)(et.default,{label:"Reply",value:n,onChange:r,expandable:!1,fill:!0}),(0,a.jsxs)("div",{className:"flex shrink-0 items-center justify-end gap-2.5",children:[(0,a.jsx)(Z.Button,{variant:"quiet",onPress:t,children:"Cancel"}),(0,a.jsx)(Z.Button,{onPress:()=>{let e=n.trim();e&&(0,er.sendChatPrompt)(`${en} 2 3${e}`),t()},children:"Submit revision"})]})]})}e.s(["default",0,function({open:e,text:t,onClose:n}){return(0,a.jsx)(ee.Modal,{isOpen:e,onOpenChange:e=>{e||n()},isDismissable:!0,className:"h-[min(85dvh,calc(var(--visual-viewport-height)*.9))] max-w-[min(95vw,1100px)]",children:(0,a.jsx)(J.Dialog,{className:"flex h-full flex-col overflow-hidden p-4 sm:p-6",children:e&&(0,a.jsx)(ei,{text:t,onClose:n})})})}],621415);var ea=e.i(617870);let eo=ea.default.default||ea.default;var el=e.i(15069);let es=/<(p|ul|ol|li|strong|em|b|i|h[345]|a|code|pre|table|br|blockquote|ui-component)\b/i;e.s(["LegacyReply",0,function({html:e,instance:t}){if(!es.test(e))return(0,a.jsx)("p",{className:"whitespace-pre-wrap text-sm leading-relaxed text-foreground",children:e.replace(/'/g,"'").replace(/"/g,'"').replace(/</g,"<").replace(/>/g,">").replace(/&/g,"&")});let n=0;return(0,a.jsx)("div",{className:"min-w-0 text-sm leading-relaxed text-foreground [&>*:first-child]:mt-0 [&>*:last-child]:mb-0 [&_p:not(.genui-card_*)]:mb-3 [&_strong:not(.genui-card_*)]:font-semibold [&_strong:not(.genui-card_*)]:text-foreground [&_em:not(.genui-card_*)]:italic [&_ul:not(.genui-card_*)]:mb-3 [&_ul:not(.genui-card_*)]:list-disc [&_ul:not(.genui-card_*)]:pl-5 [&_ol:not(.genui-card_*)]:mb-3 [&_ol:not(.genui-card_*)]:list-decimal [&_ol:not(.genui-card_*)]:pl-5 [&_li:not(.genui-card_*)]:mb-1.5 [&_h3:not(.genui-card_*)]:mt-5 [&_h3:not(.genui-card_*)]:mb-2 [&_h3:not(.genui-card_*)]:text-base [&_h3:not(.genui-card_*)]:font-semibold [&_h4:not(.genui-card_*)]:mt-4 [&_h4:not(.genui-card_*)]:mb-2 [&_h4:not(.genui-card_*)]:font-semibold [&_h5:not(.genui-card_*)]:mt-4 [&_h5:not(.genui-card_*)]:mb-2 [&_h5:not(.genui-card_*)]:font-semibold [&_a:not(.genui-card_*)]:text-primary [&_a:not(.genui-card_*)]:underline [&_a:not(.genui-card_*)]:underline-offset-2 [&_code:not(.genui-card_*)]:rounded [&_code:not(.genui-card_*)]:bg-surface [&_code:not(.genui-card_*)]:px-1 [&_code:not(.genui-card_*)]:py-0.5 [&_code:not(.genui-card_*)]:font-mono [&_code:not(.genui-card_*)]:text-xs [&_pre:not(.genui-card_*)]:mb-3 [&_pre:not(.genui-card_*)]:overflow-x-auto [&_pre:not(.genui-card_*)]:rounded-lg [&_pre:not(.genui-card_*)]:bg-surface [&_pre:not(.genui-card_*)]:p-3 [&_pre_code:not(.genui-card_*)]:bg-transparent [&_pre_code:not(.genui-card_*)]:p-0 [&_blockquote:not(.genui-card_*)]:mb-3 [&_blockquote:not(.genui-card_*)]:border-l-2 [&_blockquote:not(.genui-card_*)]:border-border [&_blockquote:not(.genui-card_*)]:pl-3 [&_blockquote:not(.genui-card_*)]:text-muted-foreground [&_table:not(.genui-card_*)]:mb-3 [&_table:not(.genui-card_*)]:block [&_table:not(.genui-card_*)]:w-full [&_table:not(.genui-card_*)]:overflow-x-auto [&_table:not(.genui-card_*)]:border-collapse [&_th:not(.genui-card_*)]:border [&_th:not(.genui-card_*)]:border-border [&_th:not(.genui-card_*)]:bg-surface [&_th:not(.genui-card_*)]:px-2.5 [&_th:not(.genui-card_*)]:py-1.5 [&_th:not(.genui-card_*)]:text-left [&_th:not(.genui-card_*)]:font-semibold [&_td:not(.genui-card_*)]:border [&_td:not(.genui-card_*)]:border-border [&_td:not(.genui-card_*)]:px-2.5 [&_td:not(.genui-card_*)]:py-1.5 [&_td:not(.genui-card_*)]:align-top",children:eo(e,{replace:e=>{if(e instanceof ea.Element&&"ui-component"===e.name){let r=n++;return(0,a.jsx)("div",{className:"genui-card",children:(0,a.jsx)(el.UIComponent,{attrs:e.attribs,instance:t?`${t}-${r}`:void 0})})}}})})}],49659)}]);
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.