@tickernelz/wardmote-ui 2026.1114.1 → 2026.1114.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/assets/{ActiveAgentsPanel-CKzCe8AC.js → ActiveAgentsPanel-CF0fwsze.js} +1 -1
- package/dist/assets/{AdapterManager-DFPaPUUr.js → AdapterManager-DUXWwNxv.js} +1 -1
- package/dist/assets/{AdvancedToolsRoute-CN5fWS4T.js → AdvancedToolsRoute-BamlkE3p.js} +1 -1
- package/dist/assets/{AgentActionButtons-a9LacJPP.js → AgentActionButtons-CPIhsP04.js} +1 -1
- package/dist/assets/{AgentBubbleActionRow-DIr3TdR9.js → AgentBubbleActionRow-BUAUmJKa.js} +1 -1
- package/dist/assets/{AgentChat-D5FDUYuV.js → AgentChat-BAn_ghsu.js} +1 -1
- package/dist/assets/{AgentChats-TN5SE_gN.js → AgentChats-f73hodzr.js} +1 -1
- package/dist/assets/{AgentDefaults-CiVVS_pQ.js → AgentDefaults-BL1XYvEo.js} +1 -1
- package/dist/assets/{AgentDetail-bCAmWRXs.js → AgentDetail-DthxFfuB.js} +1 -1
- package/dist/assets/{AgentTodoCard-BpmvHEsm.js → AgentTodoCard-BvgkWD0T.js} +1 -1
- package/dist/assets/{Agents-CToMMxGu.js → Agents-D5qI6yZZ.js} +3 -3
- package/dist/assets/{AppDetail-P807ou0a.js → AppDetail-B6PtMl8J.js} +1 -1
- package/dist/assets/{AppNotConnected-DuA4PukX.js → AppNotConnected-C_tGn786.js} +1 -1
- package/dist/assets/{ApprovalCard-BDdZDBMj.js → ApprovalCard-DrfZAdGQ.js} +1 -1
- package/dist/assets/{ApprovalDetail-CVgy1uNi.js → ApprovalDetail-sfPpfdXc.js} +1 -1
- package/dist/assets/{ApprovalPayload-H5zW6yQ4.js → ApprovalPayload-C4F3ItGH.js} +1 -1
- package/dist/assets/{Approvals-DL6kx45P.js → Approvals-DZoMl7_m.js} +1 -1
- package/dist/assets/{AppsConnect-DH7aSjtS.js → AppsConnect-D8Gu187f.js} +1 -1
- package/dist/assets/{AppsReview-Bf7oB0ES.js → AppsReview-DokFETm0.js} +1 -1
- package/dist/assets/{ArtifactCard-Cp4KPgZl.js → ArtifactCard-BTf2-JIV.js} +1 -1
- package/dist/assets/{Artifacts-Dz3eHCaQ.js → Artifacts-CK8FaygC.js} +1 -1
- package/dist/assets/{AssistantConnection-5Y4fBVXq.js → AssistantConnection-BlKC7jk0.js} +1 -1
- package/dist/assets/{AttentionInteractionResolver-DlP6a6AG.js → AttentionInteractionResolver-C2iz6oqT.js} +1 -1
- package/dist/assets/{AuditHub-Dz2UXl0c.js → AuditHub-DMhunMn8.js} +1 -1
- package/dist/assets/{BoardChat-DsMVXf5M.js → BoardChat-C4W8JLKB.js} +1 -1
- package/dist/assets/{BootstrapSetupUxLab-CWWisaHp.js → BootstrapSetupUxLab-D58OwniR.js} +1 -1
- package/dist/assets/{Browse-Be6aSv-F.js → Browse-BDjohBak.js} +1 -1
- package/dist/assets/{BudgetPolicyCard-Dka022-Z.js → BudgetPolicyCard-DfAAgk9Z.js} +1 -1
- package/dist/assets/{CaseDetail-DdJrlm0m.js → CaseDetail-CL0FC5sG.js} +1 -1
- package/dist/assets/{Cases-Da1szfrr.js → Cases-C-7dXrEt.js} +1 -1
- package/dist/assets/{ChatEndpointDetail-DSOH-zfs.js → ChatEndpointDetail-C-IYAYG8.js} +1 -1
- package/dist/assets/{ChatEndpointSetup-J23lq-xi.js → ChatEndpointSetup-CM3QixMj.js} +1 -1
- package/dist/assets/{ChoiceControls-B9yrYshK.js → ChoiceControls-3Qpci4yE.js} +1 -1
- package/dist/assets/{Companies-BkHWSxdB.js → Companies-97toQ8Cw.js} +1 -1
- package/dist/assets/{CompanyAccess-BaiGlxY1.js → CompanyAccess-CKhS1BaS.js} +1 -1
- package/dist/assets/{CompanyActivity-CMBXXwCw.js → CompanyActivity-DzNrAyAb.js} +1 -1
- package/dist/assets/{CompanyConnections-CVzsivTW.js → CompanyConnections-ORCH4i3U.js} +1 -1
- package/dist/assets/{CompanyEnvironments-K7piWRrx.js → CompanyEnvironments-DphURbtb.js} +1 -1
- package/dist/assets/{CompanyExport-Bo8tUPaY.js → CompanyExport-XeVCUcK3.js} +1 -1
- package/dist/assets/{CompanyImport-CBVjSXPA.js → CompanyImport-DPKpUaRa.js} +1 -1
- package/dist/assets/{CompanySettings-CuU9qSp5.js → CompanySettings-4JQpzuS1.js} +1 -1
- package/dist/assets/{CompanySettingsPluginPage-59_bMQQ3.js → CompanySettingsPluginPage-cVvXh0_G.js} +1 -1
- package/dist/assets/{CompanySkills-GBJMThWx.js → CompanySkills-BA_9Ztwj.js} +1 -1
- package/dist/assets/{ComposerAddMenu-D9z2INup.js → ComposerAddMenu-DNp4ecG8.js} +1 -1
- package/dist/assets/{ConfigureBuiltInAgentModal-D8Xnl51H.js → ConfigureBuiltInAgentModal-CQCHDkl4.js} +1 -1
- package/dist/assets/{ConnectionSetupFlow-DKjP5RBZ.js → ConnectionSetupFlow-BaarToKu.js} +1 -1
- package/dist/assets/{CopyableGatewayUrl-GuvA-DoQ.js → CopyableGatewayUrl-DxQsV7Hr.js} +1 -1
- package/dist/assets/{Dashboard-Cgj9BeTt.js → Dashboard--iaPJqJp.js} +1 -1
- package/dist/assets/{DashboardLive-Ku1cHAj9.js → DashboardLive-4rGeotay.js} +1 -1
- package/dist/assets/{DecisionDateChips-Z97mgInq.js → DecisionDateChips-CJOLtNrJ.js} +1 -1
- package/dist/assets/{DecisionModelSettings-NrNERkaW.js → DecisionModelSettings-D-OxKIGP.js} +1 -1
- package/dist/assets/{DecisionQueuePage-D8cyKm4V.js → DecisionQueuePage-D-kNFav_.js} +1 -1
- package/dist/assets/{DesignGuide-DvO3NaE-.js → DesignGuide-D7486q4b.js} +1 -1
- package/dist/assets/{DocumentFrameHeader-DTSqcw4Q.js → DocumentFrameHeader-B61HhahB.js} +1 -1
- package/dist/assets/{EmailEndpointSetup-Cm_KKjjw.js → EmailEndpointSetup-6OHb9B4q.js} +1 -1
- package/dist/assets/{ExecutionWorkspaceDetail-CVB4ZY8I.js → ExecutionWorkspaceDetail-BGV-9D5Y.js} +1 -1
- package/dist/assets/{FolderControls-B7TWghGc.js → FolderControls-L2RzbfdQ.js} +1 -1
- package/dist/assets/{GatewayDetail-DB1J44bF.js → GatewayDetail-CdXNQ9gD.js} +1 -1
- package/dist/assets/{GatewaysList-CKSwMmOi.js → GatewaysList-B0Jq1IRC.js} +1 -1
- package/dist/assets/{GoalDetail-Bscma2qU.js → GoalDetail-D2VhPtvw.js} +1 -1
- package/dist/assets/{GoalTree-jEFB788p.js → GoalTree-kFpgH4dA.js} +1 -1
- package/dist/assets/{Goals-jLNZ4UKT.js → Goals-B-_gq_Qu.js} +1 -1
- package/dist/assets/{ImageGalleryModal-CghUxjQC.js → ImageGalleryModal-DzKBMOnu.js} +1 -1
- package/dist/assets/{Inbox-DHwNNh-Z.js → Inbox-zllmqRcB.js} +1 -1
- package/dist/assets/{InstanceAdvanced-C5IIPBwh.js → InstanceAdvanced-B7tDfjwG.js} +1 -1
- package/dist/assets/{InviteLanding-BHmCRaWY.js → InviteLanding-brwa_8NC.js} +1 -1
- package/dist/assets/{IssueChatLongThreadPerf-JH8rtLk0.js → IssueChatLongThreadPerf-D0HJe6IV.js} +1 -1
- package/dist/assets/{IssueChatThread-ByTyrsxz.js → IssueChatThread-CMXzuvrF.js} +1 -1
- package/dist/assets/{IssueDetail-BIif8Swu.js → IssueDetail-DGdg-mB8.js} +1 -1
- package/dist/assets/{IssueDocumentAnnotations-BVdH4RTa.js → IssueDocumentAnnotations-BK-LgExc.js} +1 -1
- package/dist/assets/{IssueOutputSection-CFE6aU9L.js → IssueOutputSection-aSyiE1pg.js} +1 -1
- package/dist/assets/{IssueRecoveryActionCard-DBgE7aMm.js → IssueRecoveryActionCard-vAuL_OEC.js} +1 -1
- package/dist/assets/{IssueThreadInteractionCard-C3LFe8cu.js → IssueThreadInteractionCard-wFidFTIh.js} +1 -1
- package/dist/assets/{Issues-B5QG33RC.js → Issues-CsmM33z_.js} +1 -1
- package/dist/assets/{LiveNowTodoLine-D52WDE8-.js → LiveNowTodoLine-CP32NNp_.js} +1 -1
- package/dist/assets/{ManagedAiConnectionDetails-C9nV0oIT.js → ManagedAiConnectionDetails-Ba0awZ-O.js} +1 -1
- package/dist/assets/{McpConnect-Bk8Qskqw.js → McpConnect-CYLP1yLX.js} +1 -1
- package/dist/assets/{MembershipAction-DjdBY6Bk.js → MembershipAction-CKs7Ua9x.js} +1 -1
- package/dist/assets/{ModelsAndProviders-BtbhNxf_.js → ModelsAndProviders-gaR7HDQm.js} +1 -1
- package/dist/assets/{NewAgent-C4JqnMkp.js → NewAgent-DBQzvxIr.js} +1 -1
- package/dist/assets/{OmpAllSettings-aHENTYf5.js → OmpAllSettings-B_Knr51Z.js} +1 -1
- package/dist/assets/{PipelineSettings-CCoxV9Es.js → PipelineSettings-Dl-94FB5.js} +1 -1
- package/dist/assets/{Pipelines-DaQPh688.js → Pipelines-CY9hGe0h.js} +1 -1
- package/dist/assets/{PixelsOffice-D1X7mdpk.js → PixelsOffice-BgyGZsiV.js} +1 -1
- package/dist/assets/{PluginPage-B4kdPADI.js → PluginPage-CMA4Ei50.js} +1 -1
- package/dist/assets/{PluginSettings-yP8NX-sM.js → PluginSettings-Cm4H1JRT.js} +1 -1
- package/dist/assets/{ProfileDetailRoute-DMdAvFmb.js → ProfileDetailRoute-BEBctbC6.js} +1 -1
- package/dist/assets/{ProfileSettings-DVm3Tqzs.js → ProfileSettings-Djo7BLIj.js} +1 -1
- package/dist/assets/{ProfileWizardRoute-CijS7-aN.js → ProfileWizardRoute-DxLujEtD.js} +1 -1
- package/dist/assets/{ProjectDetail-DeLSGbmz.js → ProjectDetail-CmmdvUHn.js} +1 -1
- package/dist/assets/{ProjectWorkspaceDetail-DPajDjA-.js → ProjectWorkspaceDetail-BsA0hJ-k.js} +1 -1
- package/dist/assets/{ProjectWorkspacesContent-BCATCcZI.js → ProjectWorkspacesContent-BNNI_WAk.js} +1 -1
- package/dist/assets/{Projects-DPmo6PFV.js → Projects-BTAauZr0.js} +1 -1
- package/dist/assets/{PublicIssueSharePage-B_W1Qpy_.js → PublicIssueSharePage-DdPjfmD9.js} +1 -1
- package/dist/assets/{ReviewQueueCard-DhfCjwYP.js → ReviewQueueCard-BC6VY8Bc.js} +1 -1
- package/dist/assets/{RichWorkProductCard-rJC8tWnB.js → RichWorkProductCard-ClpMt_Bh.js} +1 -1
- package/dist/assets/{RoutineDetail-Cb0oYk5B.js → RoutineDetail-BT6_GKnC.js} +1 -1
- package/dist/assets/{RoutineRunVariablesDialog-CWNUGmiH.js → RoutineRunVariablesDialog-D_Mls1sV.js} +1 -1
- package/dist/assets/{Routines-Ct6W3Ht-.js → Routines-4LevOfvV.js} +1 -1
- package/dist/assets/{ScrollToBottom-BvL4b3BQ.js → ScrollToBottom-jItsgDR8.js} +1 -1
- package/dist/assets/{Search-CXiBakEC.js → Search-bmcm0_m_.js} +1 -1
- package/dist/assets/{Secrets-XUpMCMhK.js → Secrets-DfR1fBAZ.js} +1 -1
- package/dist/assets/{SkillSourceTree-Brg47aIX.js → SkillSourceTree--FWKWyF3.js} +1 -1
- package/dist/assets/{SkillSources-C3kuN9Hz.js → SkillSources-jUDjqy5i.js} +1 -1
- package/dist/assets/{SkillStudio-DVVVKjdn.js → SkillStudio-BsqtUnzF.js} +1 -1
- package/dist/assets/{SourceTrustBadge-D-MXuX_l.js → SourceTrustBadge-CfBrvKL3.js} +1 -1
- package/dist/assets/{StatusCards-BmNOGr1d.js → StatusCards-Dt3zorUZ.js} +1 -1
- package/dist/assets/{SummarySlotCard-DiTaQ4km.js → SummarySlotCard-D1C0qH2L.js} +1 -1
- package/dist/assets/{TaskChatLab-fOJfHKjI.js → TaskChatLab-B0coUvdp.js} +1 -1
- package/dist/assets/{TaskChatMarker-Cgyrmeab.js → TaskChatMarker-C40twVjh.js} +1 -1
- package/dist/assets/{TaskChatProtocolCard-DrIe_IYV.js → TaskChatProtocolCard--bi_tc6i.js} +1 -1
- package/dist/assets/{TaskChatThreadView-DKqNA1fZ.js → TaskChatThreadView-DkzFDrLW.js} +1 -1
- package/dist/assets/{TaskDetailRelationsPanel-C9mJfMvL.js → TaskDetailRelationsPanel-DZGkinoJ.js} +1 -1
- package/dist/assets/{TaskTreeControls-B1CSnDVK.js → TaskTreeControls-DznugVpi.js} +1 -1
- package/dist/assets/Terminal-NjEb5-2b.js +1 -0
- package/dist/assets/TerminalView-DZxK2Ei5.js +58 -0
- package/dist/assets/{TrustPresetSection-D4qB_VZo.js → TrustPresetSection-CjNwNBo3.js} +1 -1
- package/dist/assets/{UserProfile-Cavc3nhB.js → UserProfile-Dujv3qdz.js} +1 -1
- package/dist/assets/{WhatNeedsMe-B7BSt_wb.js → WhatNeedsMe-C9P2EsqQ.js} +1 -1
- package/dist/assets/{Workspaces-CDTiwIHd.js → Workspaces-BTgSx9nA.js} +1 -1
- package/dist/assets/{connection-owner-Cx9obLlP.js → connection-owner-DL4yKhSt.js} +1 -1
- package/dist/assets/dist-ypeTPGg_.js +1 -0
- package/dist/assets/dropdown-menu-DEO3mF_E.js +1 -0
- package/dist/assets/{environment-variables-editor-CCxeFKKk.js → environment-variables-editor-0qgSPgNN.js} +1 -1
- package/dist/assets/{index-B7mmhFG7.js → index-3AxqhPET.js} +4 -4
- package/dist/assets/index-B5bd7Tk6.css +2 -0
- package/dist/assets/{issue-properties-C_y5-tny.js → issue-properties-B1cYnBDU.js} +1 -1
- package/dist/assets/{issue-workspace-selection-ChtddJZC.js → issue-workspace-selection-S8UgGgK1.js} +1 -1
- package/dist/assets/{pipeline-stage-presentation-jxAxpF6f.js → pipeline-stage-presentation-5UBw7nsb.js} +1 -1
- package/dist/assets/{shared-hwt7Xn4W.js → shared-4LF6wQ38.js} +1 -1
- package/dist/assets/{tool-taxonomy-6170LibQ.js → tool-taxonomy-B5zpbkHA.js} +1 -1
- package/dist/assets/{transcript-adapter-C9uEslxp.js → transcript-adapter-C29ZJiU2.js} +1 -1
- package/dist/assets/{useSummaryDraftStream-BulT3Wwh.js → useSummaryDraftStream-R2Y2bAUU.js} +1 -1
- package/dist/index.html +7 -6
- package/dist/sw.js +1 -1
- package/package.json +1 -1
- package/dist/assets/Terminal-CGmILZtz.js +0 -1
- package/dist/assets/TerminalView-BqCU9Vc3.js +0 -58
- package/dist/assets/dropdown-menu-CqRAF7Oj.js +0 -1
- package/dist/assets/index-KZ2bEg2H.css +0 -2
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
var Tu=Object.defineProperty;var i=(t,e)=>Tu(t,"name",{value:e,configurable:!0});import{i as ui,t as Cu}from"./rolldown-runtime-ZpX3ckPj.js";import{b as ku,h as Yn,l as te,na as Au,ta as Eu}from"./createLucideIcon-DJi9suAC.js";import{a as Pa,h as Ru}from"./star-BZgQbzhV.js";import{d as ju,g as Mu,n as Nu,t as Du,u as Ou,v as Pu}from"./queryKeys-DYV5MhM_.js";import{C as Ba,E as Bu,S as $u,w as Lu}from"./ConnectionSetupFlow-DKjP5RBZ.js";import{X as Vu}from"./mention-chips-D8856Q0_.js";import{r as Fu}from"./responsible-user-denial-Dyl0BwU5.js";import{Bt as Uu,I as qu,Ut as $a,_t as La,an as Ln,at as Va,b as zu,it as Hu,m as Fa,t as Is}from"./router-2UfGeejU.js";import{a as Wu,c as Ku,i as Ju,n as Qu,o as Yu,r as Gu,s as Xu,t as Zu}from"./alert-dialog-Blls2GnU.js";import{a as ed,n as di,t as hi}from"./avatar-UO226cef.js";import{i as On,p as Ua,r as qa,t as za}from"./dropdown-menu-CqRAF7Oj.js";import{a as td,s as sd,t as nd}from"./MarkdownEditor-DXD-Cu3u.js";import{o as rd,r as id,t as od}from"./popover-BhYHYj7q.js";import{t as wr}from"./arrow-right-BL5kYtCZ.js";import{t as Ts}from"./check-Ctsrlfa-.js";import{t as ts}from"./chevron-down-BCvxsWfI.js";import{t as ad}from"./circle-IAHLDvLO.js";import{a as cd,c as ld,d as ud,f as dd,i as hd,n as fd,o as md,p as fi,t as pd}from"./ComposerAddMenu-D9z2INup.js";import{_ as gd,b as bd,d as xd,p as vd,t as Gn,x as Co}from"./MarkdownBody-BTjuUgFa.js";import{t as en}from"./copy-_wvZOjTe.js";import{t as Ha}from"./ellipsis-BTiLRUn4.js";import{t as yd}from"./eye-off-CVVA-EWh.js";import{t as mi}from"./flag-R0AVTKGk.js";import{r as pt,t as Ee}from"./button-CMwV3L1P.js";import{h as _d,p as wd,s as Wa,t as Ka}from"./IssueThreadInteractionCard-C3LFe8cu.js";import{t as Sd}from"./rotate-ccw-CQEJ4ewP.js";import{t as Id}from"./search-04O7m-IF.js";import{t as Ja}from"./square-B2aH51tE.js";import{t as Td}from"./thumbs-down-C2BkjZOy.js";import{t as Cd}from"./thumbs-up-OW2IsTL7.js";import{t as Qa}from"./trash-D7zTaHTj.js";import{t as Xn}from"./triangle-alert-CBVKiaXB.js";import{t as kd}from"./x-DRDFdlYE.js";import{i as pi,n as gi,t as bi}from"./tooltip-B5WQ3lq5.js";import{t as Jt}from"./badge-DuA2EgZC.js";import{t as rt}from"./AgentAvatar-DgGEobSY.js";import{n as Zn}from"./ToastContext-DMdt9oTd.js";import{t as Ad}from"./heartbeats-DOyojsaN.js";import{t as Ed}from"./instanceSettings-D8g_QlS-.js";import{a as Ya,i as Ga,n as Xa,r as Za,s as ec,t as tc}from"./dialog-CKUblzlR.js";import{r as Qt}from"./assignees-DkQNbPzi.js";import{t as Rd}from"./textarea-BRPEfJ-g.js";import{t as sc}from"./attachment-icon-4xDiQblX.js";import{a as jd,c as Sr,d as Ft,g as Sn,h as ko,l as Md,m as Ut,o as Nd,p as Dd,s as Ao,u as Od,v as Eo}from"./TaskChatComposerTakeoverContext-BJAHPHve.js";import{t as Pd}from"./InlineEntitySelector-v2Q4C8oT.js";import{t as Bd}from"./InlineBanner-VQ5mstsR.js";import{t as Cs}from"./clipboard-CTLKYvRL.js";import{t as $r}from"./card-Bru3x_SJ.js";import{_ as $d,a as Ld,d as Vd,i as Fd,l as Ud,n as qd,r as zd,s as Hd}from"./issue-blockers-DLfa24KC.js";import{Et as Wd,Ha as nc,P as Vn,Tt as Kd,h as Jd,m as Qd,p as rc}from"./index-B7mmhFG7.js";import{_ as Yd,a as xi,d as Gd,h as Xd,i as Zd,n as eh,p as th,r as sh,s as nh,t as rh}from"./system-notice-comment-CL_SWj_f.js";import{n as ih,r as oh,t as ah}from"./run-log-chunks-ZnzOvrXs.js";import{t as ch}from"./useSecondTick-Gige2l0t.js";import{a as Ro,c as lh,d as uh,f as dh,g as vi,h as hh,i as fh,l as mh,m as ph,r as gh,s as bh,t as Pn}from"./SourceTrustBadge-D-MXuX_l.js";import{t as xh}from"./IssueRecoveryActionCard-DBgE7aMm.js";import{t as vh}from"./CommentAttributionChip-fz5Mn0RW.js";var x=ui(Au(),1),c=ui(Eu(),1);function jo(t){const e=t.executionWorkspaceId??t.projectWorkspaceId;return t.label??(e?e.slice(0,8):"None")}i(jo,"formatTimelineWorkspaceLabel");function ks(t){return typeof t!="object"||t===null||Array.isArray(t)?null:t}i(ks,"asRecord$2");function Ht(t,e){return Object.prototype.hasOwnProperty.call(t,e)}i(Ht,"hasOwn");function Me(t){return typeof t=="string"&&t.length>0?t:null}i(Me,"nullableString");function Mo(t){return new Date(t).getTime()}i(Mo,"toTimestamp$2");function yh(t,e){return t.agentId===e.agentId&&t.userId===e.userId}i(yh,"sameAssignee");function _h(t,e){return t.projectWorkspaceId===e.projectWorkspaceId&&t.executionWorkspaceId===e.executionWorkspaceId&&t.mode===e.mode&&t.label===e.label}i(_h,"sameWorkspace");function No(t){const e=ks(t);return e?{label:Me(e.label),projectWorkspaceId:Me(e.projectWorkspaceId),executionWorkspaceId:Me(e.executionWorkspaceId),mode:Me(e.mode)}:null}i(No,"workspaceFromRecord");function wh(t){const e=ks(t.workspaceChange);if(!e)return null;const s=No(e.from),n=No(e.to);return!s||!n||_h(s,n)?null:{from:s,to:n}}i(wh,"workspaceChangeFromDetails");function ic(t){return[...t].sort((e,s)=>{const n=Mo(e.createdAt)-Mo(s.createdAt);return n!==0?n:e.id.localeCompare(s.id)})}i(ic,"sortTimelineEvents");function r_(t){const e=[];for(const s of t??[]){if(s.action!=="issue.updated")continue;const n=ks(s.details);if(!n||!Ht(n,"workMode"))continue;const r=ks(n._previous);!r||!Ht(r,"workMode")||e.push({id:s.id,createdAt:s.createdAt,from:Me(r.workMode),to:Me(n.workMode)})}return ic(e)}i(r_,"extractIssueWorkModeChanges");function i_(t){const e=[];for(const s of t??[]){const n=ks(s.details);if(!n)continue;if(s.action==="issue.comment_added"){if(n.followUpRequested!==!0&&n.resumeIntent!==!0||n.reopened===!0)continue;const l=Me(n.commentId);e.push({id:s.id,createdAt:s.createdAt,actorType:s.actorType,actorId:s.actorId,runId:s.runId??null,commentId:l,followUpRequested:!0});continue}if(s.action!=="issue.updated")continue;const r=ks(n._previous),o={id:s.id,createdAt:s.createdAt,actorType:s.actorType,actorId:s.actorId,runId:s.runId??null};if((n.followUpRequested===!0||n.resumeIntent===!0)&&(o.followUpRequested=!0,o.commentId=Me(n.commentId)),Ht(n,"status")){const l=Me(r?.status)??Me(n.reopenedFrom),u=Me(n.status);l!==u&&(o.statusChange={from:l,to:u})}if(Ht(n,"assigneeAgentId")||Ht(n,"assigneeUserId")){const l={agentId:Me(r?.assigneeAgentId),userId:Me(r?.assigneeUserId)},u={agentId:Ht(n,"assigneeAgentId")?Me(n.assigneeAgentId):l.agentId,userId:Ht(n,"assigneeUserId")?Me(n.assigneeUserId):l.userId};yh(l,u)||(o.assigneeChange={from:l,to:u})}const a=wh(n);a&&(o.workspaceChange=a),(o.statusChange||o.assigneeChange||o.workspaceChange||o.followUpRequested)&&e.push(o)}return ic(e)}i(i_,"extractIssueTimelineEvents");var vs=null;function Sh(t,e){t.currentIndex=0,t.wipContextDeps=null,t.wipCommitCallbacks=[];const s=vs;vs=t;try{if(e(),t.isFirstRender=!1,t.cells.length!==t.currentIndex)throw new Error(`Rendered ${t.currentIndex} hooks but expected ${t.cells.length}. Hooks must be called in the exact same order in every render.`)}finally{vs=s}}i(Sh,"withResourceFiber");function et(){if(!vs)throw new Error("No resource fiber available");return vs}i(et,"getCurrentResourceFiber");function Tt(){return vs}i(Tt,"peekResourceFiber");var De=typeof process<"u"&&!1,oc=i(t=>({version:0,committedVersion:0,dispatchUpdate:t,changelog:[],committedLog:[],unsettledCount:0,rollbackCallbacks:[]}),"createResourceFiberRoot"),yi=i(t=>{t.committedVersion=t.version;for(const e of t.changelog)e.logged=!1,e.settled||(e.settled=!0,t.unsettledCount--),t.committedLog.push(e);t.changelog.length=0,t.unsettledCount===0&&(t.committedLog.length=0),t.rollbackCallbacks.length=0},"commitRoot"),Gs=i((t,e)=>{const s=t.version>e;if(t.version=e,s){for(let n=0;n<t.rollbackCallbacks.length;n++)t.rollbackCallbacks[n]();if(t.rollbackCallbacks.length=0,e<=t.committedVersion){const n=[];for(;t.committedVersion-n.length>e;){const r=t.committedLog.pop();if(r===void 0){if(De)throw new Error("tap: committed history is shorter than the replay base.");break}_i(r.fiber,r.cell),r.cell.workInProgress=r.prevState,n.push({record:r,prevState:r.prevState,eagerState:r.eagerState,hasEagerState:r.hasEagerState})}if(n.length>0){const r=t.committedVersion;er(t,()=>{for(let o=n.length-1;o>=0;o--){const a=n[o];a.record.prevState=a.prevState,a.record.eagerState=a.eagerState,a.record.hasEagerState=a.hasEagerState,t.committedLog.push(a.record)}t.committedVersion=r})}t.committedVersion=e;for(const r of t.changelog)r.logged=!1;t.changelog.length=0}else{for(;t.committedVersion+t.changelog.length>e;)t.changelog.pop().logged=!1;for(let n=0;n<t.changelog.length;n++)ac(t.changelog[n]);yi(t)}}},"setRootVersion"),ac=i(t=>{_i(t.fiber,t.cell),t.queued||(t.queued=!0,(t.cell.queue??=[]).push(t))},"applyChangelogRecord"),an=i((t,e)=>{t.wipCommitCallbacks.push(e)},"addCommit"),er=i((t,e)=>{t.rollbackCallbacks.push(e)},"addRollback"),_i=i((t,e)=>{e.isDirty||(e.isDirty=!0,t.markDirty?.(),er(t.root,()=>{if(e.queue!==null){for(const s of e.queue)s.queued=!1;e.queue=null}e.workInProgress=e.current,e.isDirty=!1}))},"markReducerDirty"),cc=Symbol.for("react.memo_cache_sentinel"),lc=i(t=>new Array(t).fill(cc),"createMemoCache"),Ih=i((t,e)=>{const s=t.memoCache;let n=s.workInProgress;if(n===null){const a=s.current;n=a===null?[]:a.map(l=>l.slice()),s.workInProgress=n,er(t.root,()=>{s.workInProgress=null})}const r=s.index++;let o=n[r];return o===void 0?(o=lc(e),n[r]=o):De&&o.length,o},"nextFiberMemoCache"),uc=i(t=>Ih(et(),t),"useMemoCache"),Th=x.default,Ch=i(t=>(0,x.useMemo)(()=>{const e=lc(t);return e[cc]=!0,e},[]),"useReactMemoCacheShim"),kh=Th.__COMPILER_RUNTIME?.c??Ch,Ah=i(()=>Tt()!==null,"inTap$1"),se=i(t=>Ah()?uc(t):kh(t),"c"),Je=i((t,...e)=>Object.assign(Object.create(null),t,...e),"nullProtoRecord"),tr=i(()=>{throw new Error("Rendered more hooks than during the previous render. Hooks must be called in the exact same order in every render.")},"throwRenderedMoreHooks"),sr=i(()=>{throw new Error("Hook order changed between renders")},"throwHookOrderChanged"),Eh=i(t=>({type:t,setup:void 0,setupDeps:void 0,cleanup:void 0,deps:null,generation:0}),"newEffect");function dc(t,e,s){const n=et(),r=n.currentIndex++,o=n.cells[r],a=o===void 0?Eh(s):o.type===s?o:sr();if(o===void 0&&(n.isFirstRender||tr(),n.cells[r]=a,s==="insertion"?(n.insertionCells??=[]).push(a):n.effectCells.push(a)),a.deps!==null&&!!e!=!!a.deps)throw new Error("useEffect called with and without dependencies across re-renders");an(n,()=>{a.setup=t,a.setupDeps=e,a.generation++})}i(dc,"useEffectImpl");function gt(t,e){dc(t,e,"effect")}i(gt,"useEffect$3");var cn=i((t,e)=>{De&&(t.length,e.length);for(let s=0;s<t.length&&s<e.length;s++)if(!Object.is(t[s],e[s]))return!1;return!0},"depsShallowEqual"),Do=i((t,e)=>{an(t,()=>{e.current=e.wip,e.currentDeps=e.wipDeps,e.isDirty=!1})},"addMemoCommit"),nr=i((t,e)=>{const s=et(),n=s.currentIndex++;let r=s.cells[n];if(r===void 0){s.isFirstRender||tr();const l=t();return De&&s.devStrictMode&&t(),r={type:"memo",current:l,currentDeps:e,wip:l,wipDeps:e,isDirty:!1},s.cells[n]=r,l}r.type!=="memo"&&sr();const o=r;if(cn(o.wipDeps,e))return o.isDirty&&Do(s,o),o.wip;const a=t();return De&&s.devStrictMode&&t(),o.wip=a,o.wipDeps=e,o.isDirty||(o.isDirty=!0,er(s.root,()=>{o.wip=o.current,o.wipDeps=o.currentDeps,o.isDirty=!1})),Do(s,o),a},"useMemo$5");function Ds(t){return nr(()=>({current:t}),[])}i(Ds,"useRef$5");var wi=Symbol("tap.Context.defaultValue"),Rh=i(t=>t,"asTap"),st=new Map,Wt=new Set,jh=i(()=>new Map(st),"cloneCurrentTapContext"),Lr=i((t,e)=>{const s=st;st=t;try{return e()}finally{st=s}},"withTapContextRoot"),hc=i((t,e)=>{t[wi]=e},"attachDefaultValueToContext"),fc=i(t=>typeof t=="object"&&t!==null&&wi in t,"isTapContext"),mc=i(t=>typeof t=="object"&&t!==null&&"$$typeof"in t&&t.$$typeof===Symbol.for("react.context"),"isReactContext"),pc=i(t=>fc(t)||mc(t),"isReadableTapContext"),gc=i(t=>{if(!fc(t)){if(mc(t)){hc(t,t._currentValue??t._currentValue2);return}throw new Error("A tap resource's `use()` only accepts a tap context.")}},"assertTapContext"),rr=i((t,e,s)=>{if(typeof t!="object"||t===null)throw new Error("useContextProvider only accepts a React context.");gc(t);const n=t,r=et(),o=Ds(void 0),a=o.current===void 0||!Object.is(o.current.value,e);gt(()=>{o.current={value:e}},[e]);const l=st.get(n),u=l!==void 0||st.has(n);st.set(n,{value:e,source:r});try{return Mh(n,a,s)}finally{u?st.set(n,l):st.delete(n)}},"useContextProvider"),Mh=i((t,e,s)=>{const n=Wt.has(t);e?Wt.add(t):Wt.delete(t);try{return s()}finally{n?Wt.add(t):Wt.delete(t)}},"withChangedContext"),bc=i(t=>{gc(t);const e=t,s=Nh(e,t),n=et();return(n.wipContextDeps??=new Map).set(e,s.source),s.value},"useContext$2"),Nh=i((t,e)=>st.get(t)??{value:Rh(e)[wi],source:null},"getCurrentContextValue"),Dh=i((t,e,s,n)=>{if(!n)return s;let r=s;for(const[o,a]of n)a===e||a===t||(r??=new Map).set(o,a);return r},"mergeContextDeps"),xc=i((t,e=t.wipContextDeps)=>{const s=Tt();!s||!e||(s.wipContextDeps=Dh(s,t,s.wipContextDeps,e))},"bubbleContextDeps"),vc=i(()=>Wt.size>0,"hasChangedContexts"),Si=i(t=>{if(!t.contextDeps||!vc())return!1;for(const e of Wt.keys())if(t.contextDeps.has(e))return!0;return!1},"hasContextDepsChanged"),Oh=i((t,e,s)=>{if(t.isNeverMounted)throw new Error("Resource updated before mount");let n=!1,r=!0;t.root.unsettledCount++,t.root.dispatchUpdate(()=>(n||(n=!0,s&&t.root.changelog.length===0&&!e.cell.isDirty&&!e.hasEagerState&&(e.prevState=e.cell.workInProgress,e.eagerState=s(e.cell.workInProgress,e.action),e.hasEagerState=!0,r=!Object.is(e.cell.current,e.eagerState),!r&&!e.settled&&(e.settled=!0,t.root.unsettledCount--))),r),()=>(n=!0,r=!0,ac(e),e.logged||(e.logged=!0,t.root.changelog.push(e)),!0))},"dispatchOnFiber"),Ph=i((t,e,s,n,r)=>{const o=n?n(s):s;De&&t.devStrictMode&&n&&n(s);const a={type:"reducer",workInProgress:o,current:o,isDirty:!1,queue:null,renderQueue:null,reducer:e,dispatch:i(l=>{const u=Tt();if(u!==null){if(u!==t)throw new Error("Cannot update a resource while rendering a different resource.");(t.renderPendingCells??=new Set).add(a),(a.renderQueue??=[]).push(l)}else{const d={fiber:t,cell:a,action:l,hasEagerState:!1,eagerState:void 0,prevState:a.current,settled:!1,queued:!1,logged:!1};Oh(t,d,r?e:void 0)}},"dispatch")};return a},"createReducerCell");function yc(t,e,s,n){const r=et(),o=r.currentIndex++,a=r.cells[o],l=(()=>{if(a!==void 0)return a.type==="reducer"?a:sr();r.isFirstRender||tr();const d=Ph(r,t,e,s,n);return r.cells[o]=d,d})(),u=l.queue;if(u!==null){const d=t===l.reducer;for(let h=0;h<u.length;h++){const f=u[h];!f.hasEagerState||!d||!Object.is(f.prevState,l.workInProgress)?(f.prevState=l.workInProgress,f.eagerState=t(l.workInProgress,f.action),f.hasEagerState=!0,De&&r.devStrictMode&&(f.eagerState=t(l.workInProgress,f.action))):De&&r.devStrictMode&&t(l.workInProgress,f.action),f.queued=!1,l.workInProgress=f.eagerState}l.queue=null}if(l.reducer=t,l.renderQueue!==null){let d=l.workInProgress;for(const h of l.renderQueue)d=t(d,h);l.renderQueue=null,r.renderPendingCells?.delete(l),Object.is(d,l.workInProgress)||(_i(r,l),l.workInProgress=d)}return l.isDirty&&an(r,()=>{l.current=l.workInProgress,l.isDirty=!1}),[l.workInProgress,l.dispatch]}i(yc,"useReducerImpl");function Ii(t,e,s){return yc(t,e,s,!1)}i(Ii,"useReducer$1");var Bh=i((t,e)=>typeof e=="function"?e(t):e,"stateReducer"),$h=i(t=>t===void 0?void 0:typeof t=="function"?t():t,"stateInit");function _c(t){return yc(Bh,t,$h,!0)}i(_c,"useState$3");var Ti=i((t,e)=>nr(()=>t,e),"useCallback$4");function wc(t,e){dc(t,e,"insertion")}i(wc,"useInsertionEffect$2");function Ci(t){const e=et(),s=Ds(t);return s.current!==t&&an(e,()=>{s.current=t}),Ti(((...n)=>{if(De&&Tt())throw new Error("useEffectEvent cannot be called during render");return s.current(...n)}),[])}i(Ci,"useEffectEvent$1");var Sc=i(t=>t!==null&&typeof t=="object"&&typeof t.then=="function","isThenable$1"),Oo=i(()=>{},"noop"),Lh=i(t=>{const e=t;switch(typeof e.status!="string"?(e.status="pending",t.then(s=>{e.status==="pending"&&(e.status="fulfilled",e.value=s)},s=>{e.status==="pending"&&(e.status="rejected",e.reason=s)})):e.status!=="fulfilled"&&e.status!=="rejected"&&t.then(Oo,Oo),e.status){case"fulfilled":return e.value;case"rejected":throw e.reason;default:throw t}},"trackThenable"),ki=i(t=>Sc(t)?Lh(t):bc(t),"use$1"),Po=!1,Ic=i((t,e,s=e)=>{const n=et().isNeverMounted,r=n?s():e();De&&!Po&&(!n||s===e)&&(Object.is(r,e())||(Po=!0));const[,o]=Ii(u=>u+1,0),a=Ds(0),l=Ci(()=>{try{if(Object.is(r,e()))return a.current=0,!1}catch{}return!0});return gt(()=>t(()=>{l()&&o()}),[t]),gt(()=>{if(l()){if(++a.current>50)throw a.current=0,new Error("Maximum update depth exceeded. The result of getSnapshot should be cached to avoid an infinite loop.");o()}},[t,r,e]),r},"useSyncExternalStore$1"),Tc=i((t,e)=>{},"useDebugValue$1"),Vh=0,Fh=i(()=>{const t=Ds(null);return t.current??=`:tap${Vh++}:`,t.current},"useId$1"),Cc=i((t,e,s)=>{const n=i(()=>{if(!t)return;const r=e();if(typeof t=="function"){const o=t(r);return typeof o=="function"?o:()=>t(null)}return t.current=r,()=>{t.current=null}},"attach");s==null?gt(n):gt(n,[...s,t])},"useImperativeHandle$2"),Uh=x.default;function qh(t){const e=(0,x.useRef)(t);return(0,x.useInsertionEffect)(()=>{e.current=t}),(0,x.useCallback)(((...s)=>e.current(...s)),[])}i(qh,"useReactEffectEventShim");var zh=Uh.useEffectEvent??qh,Le=i(()=>Tt()!==null,"inTap"),ke=x.default,ye=i(t=>Le()?_c(t):ke.useState(t),"useState$2"),Hh=i((t,e,s)=>Le()?Ii(t,e,s):ke.useReducer(t,e,s),"useReducer"),$e=i(t=>Le()?Ds(t):ke.useRef(t),"useRef$3"),qe=i((t,e)=>Le()?nr(t,e):ke.useMemo(t,e),"useMemo$4"),Wh=i((t,e)=>Le()?Ti(t,e):ke.useCallback(t,e),"useCallback$2"),be=i((t,e)=>Le()?gt(t,e):ke.useEffect(t,e),"useEffect$2"),Kh=i((t,e)=>Le()?gt(t,e):ke.useLayoutEffect(t,e),"useLayoutEffect$1"),Jh=i(t=>Le()?Ci(t):zh(t),"useEffectEvent"),ir=i((t,e,s)=>Le()?Ic(t,e,s):ke.useSyncExternalStore(t,e,s),"useSyncExternalStore"),Qh=i((t,e)=>Le()?Tc(t,e):ke.useDebugValue(t,e),"useDebugValue"),Os=i((t,e)=>Le()?wc(t,e):ke.useInsertionEffect(t,e),"useInsertionEffect"),Yh=i((t,e,s)=>Le()?Cc(t,e,s):ke.useImperativeHandle(t,e,s),"useImperativeHandle$1"),Gh=i(t=>ke.forwardRef(t),"forwardRef$1"),kc=i((t,e)=>ke.memo(t,e),"memo$1"),o_=ke.Fragment,a_=ke.Children,c_=ke.Suspense,ss=i(t=>{const e=ke.createContext(t);return hc(e,t),e},"createContext$1"),Ai=i(t=>Le()&&pc(t)?ki(t):ke.use(t),"use"),or=i(t=>Le()&&pc(t)?ki(t):ke.useContext(t),"useContext$1"),Ct=i((t,e)=>{if(t.length!==0){if(t.length===1)throw t[0];for(const s of t);throw new AggregateError(t,e)}},"throwAggregated"),Xh=50,Ke={schedulers:new Set,isScheduled:!1},nt=null,Vr=[],Ac=class{static{i(this,"UpdateScheduler")}_isDirty=!1;_task;constructor(t){this._task=t}get isDirty(){return this._isDirty}markDirty(){if(nt&&(nt.get(this)??0)>=Xh)throw new Error("Maximum update depth exceeded. This can happen when a resource repeatedly calls setState inside useEffect.");this._isDirty=!0,Ke.schedulers.add(this),Ec()}runTask(){nt?.set(this,(nt.get(this)??0)+1),this._isDirty=!1,this._task()}settle(){this._isDirty=!1}},Zh=[],l_=new Ac(()=>{const t=Zh.splice(0),e=[];for(const s of t)try{s()}catch(n){e.push(n)}Ct(e,"Errors occurred while running scheduled tasks")}),ef=i(t=>{if(nt!==null){Vr.push(t);return}t()},"scheduleNotify"),Ec=i(()=>{Ke.isScheduled||(Ke.isScheduled=!0,tf())},"scheduleFlush"),Fr=i(()=>{const t=nt;nt=new Map;const e=[];try{for(const s of Ke.schedulers)if(Ke.schedulers.delete(s),!!s.isDirty)try{s.runTask()}catch(n){e.push(n)}}finally{if(nt=t,Ke.schedulers.clear(),Ke.isScheduled=!1,nt===null)for(;Vr.length>0;)try{Vr.shift()()}catch(s){e.push(s)}}Ct(e,"Errors occurred during flushSync")},"flushScheduled"),tf=(()=>{if(typeof MessageChannel<"u"){let t=null,e;return()=>{if(!t){const s=new MessageChannel;s.port1.onmessage=()=>{t?.unref?.(),Fr()},t=s.port1,e=s.port2}t.ref?.(),e.postMessage(null)}}return()=>setTimeout(Fr,0)})(),sf=i(t=>{if(nt!==null)return t();const e=Ke;Ke={schedulers:new Set,isScheduled:!0};try{const s=t();return Fr(),s}finally{const s=Ke.schedulers;if(Ke=e,s.size>0){for(const n of s)Ke.schedulers.add(n);Ec()}}},"flushTapSync");function nf(t){if(t.length===0)return;let e;for(let s=0;s<t.length;s++)try{t[s]()}catch(n){(e??=[]).push(n)}e!==void 0&&Ct(e,"Errors during commit")}i(nf,"commitAllCallbacks");function rf(t){const e=t.setup,s=t.setupDeps,n=t.generation;let r;try{const o=e();if(o!==void 0&&typeof o!="function")throw new Error(`An effect function must either return a cleanup function or nothing. Received: ${typeof o}`);r=o}finally{t.generation===n?(t.cleanup=r,t.deps=s):r?.()}}i(rf,"setupEffect");var of=i(t=>t.setup===void 0?!1:t.deps===null||t.setupDeps===void 0?!0:!cn(t.deps,t.setupDeps),"effectNeedsRun");function Bo(t,e){let s;for(const n of t)of(n)&&(s??=[]).push(n);if(s===void 0)return e;for(const n of s)if(n.deps=null,n.cleanup!==void 0)try{n.cleanup()}catch(r){(e??=[]).push(r)}finally{n.cleanup=void 0}for(const n of s)try{rf(n)}catch(r){(e??=[]).push(r)}return e}i(Bo,"reconcileCells");function $o(t,e=!0){let s;t.insertionCells!==null&&e&&(s=Bo(t.insertionCells,s)),s=Bo(t.effectCells,s),s!==void 0&&Ct(s,"Errors during commit")}i($o,"reconcileEffects");function Lo(t){let e;for(const s of t)if(s.deps=null,s.cleanup)try{s.cleanup?.()}catch(n){(e??=[]).push(n)}finally{s.cleanup=void 0}e!==void 0&&Ct(e,"Errors during cleanup")}i(Lo,"cleanupCells");var af={useState:_c,useReducer:Ii,useRef:Ds,useMemo:nr,useCallback:Ti,useEffect:gt,useLayoutEffect:gt,useInsertionEffect:wc,useEffectEvent:Ci,useContext:bc,use:ki,useSyncExternalStore:Ic,useDebugValue:Tc,useId:Fh,useImperativeHandle:Cc,useMemoCache:uc},Vo=x.default,qt=Vo.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE??Vo.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,In=qt==null?null:"H"in qt?{get current(){return qt.H},set current(t){qt.H=t}}:"ReactCurrentDispatcher"in qt?{get current(){return qt.ReactCurrentDispatcher.current},set current(t){qt.ReactCurrentDispatcher.current=t}}:null;function cf(t){if(!In)return t();const e=In.current;In.current=af;try{return t()}finally{In.current=e}}i(cf,"withReactDispatcher");function Rc(t,e,s=void 0,n){return{hook:t,root:e,markDirty:s,devStrictMode:n,cells:[],effectCells:[],insertionCells:null,hostCells:null,contextDeps:null,wipContextDeps:null,wipCommitCallbacks:null,memoCache:{current:null,workInProgress:null,index:0},renderPendingCells:null,currentIndex:0,isFirstRender:!0,isMounted:!1,isReleased:!1,isNeverMounted:!0}}i(Rc,"createResourceFiber");function jc(t){t.wipCommitCallbacks=null,t.wipContextDeps=null,t.memoCache.workInProgress=null}i(jc,"discardWipRender");function As(t,e,s){try{e?(t.isReleased=!0,t.insertionCells!==null&&Lo(t.insertionCells)):t.isMounted&&(t.isMounted=!1,Lo(t.effectCells))}catch(n){(s??=[]).push(n)}if(t.hostCells!==null){for(const n of t.hostCells)if(n.fiber!==null&&(s=As(n.fiber,e,s)),n.fibers!==null)for(const{fiber:r}of n.fibers.values())s=As(r,e,s)}return s}i(As,"cleanupResourceFiber");function Ei(t,e=!0){let s;e&&(s=As(t,!0,s)),s=As(t,!1,s),s!==void 0&&Ct(s,"Errors during cleanup")}i(Ei,"unmountResourceFiber");function Mc(t){let e;for(const s of t)s.isReleased&&(e=As(s,!0,e));for(const s of t)e=As(s,!1,e);e!==void 0&&Ct(e,"Errors during cleanup")}i(Mc,"unmountResourceFibers");function St(t,e){if(t.renderPendingCells!==null){for(const r of t.renderPendingCells)r.renderQueue=null;t.renderPendingCells.clear()}let s=0,n;try{do{if(++s>25)throw new Error("Too many re-renders. tap limits the number of renders to prevent an infinite loop.");t.memoCache.index=0,Sh(t,()=>{n=cf(()=>t.hook(...e))})}while((t.renderPendingCells?.size??0)>0)}catch(r){throw jc(t),r}return xc(t),n}i(St,"renderResourceFiber");function Yt(t){const e=t.wipCommitCallbacks;t.wipCommitCallbacks=null;const s=De&&!t.isMounted&&t.devStrictMode==="root";t.isMounted=!0,t.isNeverMounted=!1,e!==null&&(t.contextDeps=t.wipContextDeps,yi(t.root),t.memoCache.workInProgress!==null&&(t.memoCache.current=t.memoCache.workInProgress,t.memoCache.workInProgress=null),nf(e)),s&&($o(t,e!==null),Ei(t,!1),t.isMounted=!0),$o(t,!s&&e!==null)}i(Yt,"commitResourceFiber");var lf=i(()=>{const t=et();return t.devStrictMode?t.isFirstRender?"child":"root":null},"getTapDevMode"),uf=i(()=>"child","child"),Fo=i(()=>null,"notDevMode"),df=i(()=>{if(!De)return Fo;const t=$e(0);return ye(()=>t.current++),t.current!==2?Fo:uf},"useDevStrictModeReact"),Nc=i(()=>Tt()?lf:df(),"useDevStrictMode"),hf=i(t=>{const e=et(),s=e.currentIndex++,n=e.cells[s];let r;if(n===void 0){e.isFirstRender||tr();const o=t instanceof Map;r={type:"host",fiber:o?null:t,fibers:o?t:null},e.cells[s]=r,(e.hostCells??=[]).push(r)}else n.type!=="host"&&sr(),r=n;return r.fibers===null&&r.fiber!==t&&an(e,()=>{r.fiber=t}),r},"useHostCell"),Uo=i((t,e)=>{if(!(t instanceof Map))return e(t);for(const{fiber:s}of t.values())e(s)},"forEachHostedFiber"),ff=i(t=>{t.isReleased=!1},"acquire"),mf=i(t=>{t.isReleased=!0,t.isMounted||queueMicrotask(()=>{t.isReleased&&Ei(t,!0)})},"release"),pf=i(t=>{Os(()=>(Uo(t,ff),()=>Uo(t,mf)),[t]),be(()=>()=>{Mc(t instanceof Map?Array.from(t.values(),({fiber:e})=>e):[t])},[t])},"useHostLifecycleReact"),ar=i(t=>Tt()?hf(t):(pf(t),null),"useHostLifecycle"),gf=i(()=>{const t=$e(0),e=t.current,s=et();return{version:e,markDirty:qe(()=>()=>{t.current++,s.markDirty?.()},[s]),root:s.root}},"useResourceFiberHostUtilsTap"),bf=i(()=>{const[t]=ye(()=>oc((r,o)=>{let a=!1;n(l=>(a=!r(),a?l:l+1)),a||s(()=>r()&&o())})),[e,s]=Hh((r,o)=>(Gs(t,r),r+(o()?1:0)),0),[,n]=ye(0);return Gs(t,e),{root:t,version:e,markDirty:void 0}},"useResourceFiberHostUtilsReact"),Ri=i(()=>{const t=Nc(),{root:e,version:s,markDirty:n}=Tt()?gf():bf();return{version:s,createFiber:Wh((r,o,a)=>Rc(r,e,a?()=>{a(),n?.()}:n,t()),[])}},"useResourceFiberHost"),xf=i(t=>t(),"useHostRoot"),vf=i(t=>{const e=[];for(const s of t)try{s()}catch(n){e.push(n)}Ct(e,"Errors occurred while notifying Tap root subscribers")},"notifySubscribers$1"),yf=i((t,e,s)=>{const n=new Ac(()=>l.handleUpdate()),r=[],o=oc((u,d)=>{r.length===0&&!u()||(r.push(d),n.markDirty())}),a=Rc(xf,o,void 0,e),l={scheduler:n,queue:r,fiber:a,subscribers:new Set,pendingHostRender:!1,isMounted:!1,hasRendered:!1,committedRender:t,context:new Map,value:void 0,applyQueue:i(()=>{Gs(o,o.committedVersion);for(const u of r)De&&a.devStrictMode&&u(),u();return Gs(o,o.committedVersion+o.changelog.length),r.length},"applyQueue"),publish:i((u,d)=>{n.isDirty||o.committedVersion!==d||l.value===u||(l.value=u,ef(()=>vf(l.subscribers)))},"publish"),finishFlush:i((u,d,h)=>{yi(o),r.splice(0,h),l.pendingHostRender=!1,r.length===0&&n.settle(),l.isMounted&&Yt(a),l.publish(u,d)},"finishFlush"),handleUpdate:i(()=>{const u=l.applyQueue();let d;try{De&&a.devStrictMode&&Lr(l.context,()=>St(a,[l.committedRender])),d=Lr(l.context,()=>St(a,[l.committedRender]))}catch(h){if(Gs(o,o.committedVersion),Sc(h)){const f=i(()=>{l.isMounted&&n.markDirty()},"retry");h.then(f,f);return}if(l.isMounted){l.pendingHostRender=!0,s(f=>f+1);return}throw h}if(n.isDirty)throw new Error("Scheduler is dirty, this should never happen");l.finishFlush(d,o.version,u)},"handleUpdate")};return l},"createInstance"),_f=i(t=>{const[,e]=ye(0),s=Nc(),n=$e(null),r=n.current??=yf(t,s(),e),o=jh(),a=r.scheduler.isDirty||r.pendingHostRender?r.applyQueue():0,l=Lr(o,()=>St(r.fiber,[t])),u={render:t,context:o,value:l,drained:a,wip:r.fiber.wipCommitCallbacks,version:r.fiber.root.version,processed:!1};return r.hasRendered||(r.hasRendered=!0,r.committedRender=t,r.context=o,r.value=l),be(()=>(r.isMounted=!0,()=>{r.isMounted=!1}),[r]),ar(r.fiber),be(()=>{if(u.processed){r.fiber.isMounted||(Yt(r.fiber),r.queue.length&&!r.scheduler.isDirty&&r.scheduler.markDirty());return}if(u.processed=!0,r.committedRender=u.render,r.context=u.context,r.fiber.wipCommitCallbacks!==u.wip){r.scheduler.isDirty||r.handleUpdate();return}if(u.drained>0&&r.fiber.root.version===u.version){r.finishFlush(u.value,u.version,u.drained);return}Yt(r.fiber),r.publish(u.value,u.version)}),qe(()=>({getValue:i(()=>r.value,"getValue"),subscribe:i(d=>(r.subscribers.add(d),()=>r.subscribers.delete(d)),"subscribe")}),[r])},"useTapRoot");function he(t){return(...e)=>({hook:t,args:e})}i(he,"resource");function Oe(t,e,s){return typeof e=="function"?(...n)=>Oe(t,e(...n)):s?{...e,key:t,deps:s}:{...e,key:t}}i(Oe,"withKey");var wf=i((t,e)=>({fiber:t,key:e,currentDeps:null,current:null,wipDeps:null,wip:null}),"createHostState");function kt(t){const{version:e,createFiber:s}=Ri(),n=$e(null),r=n.current??=wf(s(t.hook,t.key),t.key),o=qe(()=>r.fiber.hook===t.hook&&r.key===t.key&&!r.fiber.isReleased?r.fiber:s(t.hook,t.key),[r,t.hook,t.key,s]);r.wipDeps=r.currentDeps,r.wip=r.current;const a=[o,e,t.args];(Si(o)||r.currentDeps===null||!cn(r.currentDeps,a))&&(r.wipDeps=a,r.wip={value:St(o,t.args)});const l=r.wip,u=ar(o);return be(()=>{if(r.currentDeps=r.wipDeps,r.current=r.wip,r.fiber=o,r.key=t.key,Yt(o),u!==null)return()=>{u.fiber!==o&&Ei(o,!0)}},[r,u,o,t.key,l]),l.value}i(kt,"useResource");var Sf=i((t,e,s)=>{const n=$e(null),r=n.current??(n.current={wipDeps:null,wip:null,currentDeps:null,current:null});return r.wipDeps=r.currentDeps,r.wip=r.current,be(()=>{r.currentDeps=r.wipDeps,r.current=r.wip}),!s&&r.currentDeps&&cn(r.currentDeps,e)?r.current:(r.wipDeps=e,r.wip=t(),r.wip)},"useRenderMemo"),qo=i((t,e)=>{const s=t.get(e);s&&(s.isDirty=!0)},"markChildDirty"),If=i((t,e)=>!t.isDirty&&!Si(t.fiber)&&e!==void 0&&t.committedDeps!==void 0&&cn(t.committedDeps,e),"canReuse"),Tf=i(t=>{if(!vc())return!1;for(const{fiber:e}of t.values())if(Si(e))return!0;return!1},"hasAnyChildContextDepsChanged");function ji(t){const[e]=ye(()=>new Map),{version:s,createFiber:n}=Ri(),r=Tf(e);let o=!1;const a=Sf(()=>{const l=new Set,u=[];let d=0;for(let h=0;h<t.length;h++){const f=t[h],p=f.key;if(p===void 0)throw new Error(`useResources did not provide a key for array at index ${h}`);if(l.has(p))throw new Error(`Duplicate key ${p} in useResources`);l.add(p);let m=e.get(p);if(m)if(m.fiber.hook!==f.hook){const g=n(f.hook,f.key,()=>qo(e,p)),b=St(g,f.args);m.next={value:b,deps:f.deps,remount:g},o=!0}else if(If(m,f.deps))typeof m.next=="object"&&jc(m.fiber),m.fiber.contextDeps&&xc(m.fiber,m.fiber.contextDeps),m.next="skip";else{const g=St(m.fiber,f.args);m.next={value:g,deps:f.deps}}else{const g=n(f.hook,f.key,()=>qo(e,p));m={fiber:g,next:{value:St(g,f.args),deps:f.deps},isDirty:!1,committedDeps:void 0,committedValue:void 0},d++,e.set(p,m)}u.push(typeof m.next=="object"?m.next.value:m.committedValue)}if(e.size>u.length-d)for(const h of e.keys())l.has(h)||(e.get(h).next="delete",o=!0);return u},[t,e,n,s],r);return ar(e),be(()=>{if(o){const l=[];for(const[u,d]of e.entries()){const h=d.next;h==="delete"?(l.push(d.fiber),e.delete(u)):h!=="skip"&&h.remount&&(l.push(d.fiber),d.fiber=h.remount)}for(const u of l)u.isReleased=!0;Mc(l)}for(const l of e.values()){const u=l.next;u==="skip"?!l.fiber.isNeverMounted&&!l.fiber.isMounted&&Yt(l.fiber):u!=="delete"&&(Yt(l.fiber),l.committedDeps=u.deps,l.committedValue=u.value,l.isDirty=!1,l.next="skip")}},[a,e,o]),a}i(ji,"useResources");var Cf=i(t=>t(),"useHostRender"),Dc=i(t=>{const{createFiber:e}=Ri(),[s]=ye(()=>e(Cf,void 0)),n=St(s,[t]);ar(s);let r=!1;const o=i(()=>{r&&s.isMounted||(r=!0,Yt(s))},"effects");return be(o),{value:n,effects:o}},"useTapHost"),kf=i(()=>{const t=se(4),[e,s]=ye(Ef);let n;t[0]===Symbol.for("react.memo_cache_sentinel")?(n=i((u,d)=>(s(h=>{const f=Je(h.renderers);return f[u]=[...f[u]??[],d],{...h,renderers:f}}),()=>{s(h=>{const f=Je(h.renderers),p=f[u]?.filter(m=>m!==d)??[];return p.length>0?f[u]=p:delete f[u],{...h,renderers:f}})}),"t0"),t[0]=n):n=t[0];const r=n;let o;t[1]===Symbol.for("react.memo_cache_sentinel")?(o=i(u=>(s(d=>({...d,fallbacks:[...d.fallbacks,u]})),()=>{s(d=>({...d,fallbacks:d.fallbacks.filter(h=>h!==u)}))}),"t1"),t[1]=o):o=t[1];const a=o;let l;return t[2]!==e?(l={getState:i(()=>e,"getState"),setDataUI:r,setFallbackDataUI:a},t[2]=e,t[3]=l):l=t[3],l},"useDataRenderers"),Af=he(kf);function Ef(){return{renderers:Je(),fallbacks:[]}}i(Ef,"_temp$8");var dt=i((t,e,s)=>{const n=i(r=>{},"reportError");for(const r of t)try{const o=r(typeof e=="function"?e():e);o!==null&&(typeof o=="object"||typeof o=="function")&&"then"in o&&typeof o.then=="function"&&Promise.resolve(o).catch(n)}catch(o){n(o)}},"notifyEventListeners"),Oc=i(t=>t,"AuiConfig"),Rf=new Set(["$$typeof","nodeType","then","__v_raw","__v_isRef","__v_isReactive","__v_isReadonly","__v_isShallow","__v_skip"]),Gt=i((t,e)=>{if(t===Symbol.toStringTag)return e;if(typeof t!="symbol"){if(t==="toJSON")return()=>e;if(!Rf.has(t))return!1}},"handleIntrospectionProp"),tn=class{static{i(this,"BaseProxyHandler")}getOwnPropertyDescriptor(t,e){const s=this.get(t,e);if(s!==void 0)return{value:s,writable:!1,enumerable:!0,configurable:!0}}set(){return!1}setPrototypeOf(){return!1}defineProperty(){return!1}deleteProperty(){return!1}preventExtensions(){return!1}},Es=Symbol("assistant-ui.store.clientId"),Ur=Symbol("assistant-ui.store.instanceTag"),Pc=i((t,e)=>{const s=new Proxy((()=>{}),{apply:i(()=>(e(),s),"apply"),get:i((n,r)=>r==="source"?t.source:r==="query"?t.query:r==="name"?t.name:r===Es?Mi(e()):e()[r],"get"),has:i((n,r)=>r==="source"||r==="query"||r==="name"||r===Es||r in e(),"has"),ownKeys:i(()=>Reflect.ownKeys(e()),"ownKeys"),getOwnPropertyDescriptor:i((n,r)=>{if(!(typeof r=="symbol"||!(r in e())))return{value:e()[r],writable:!1,enumerable:!0,configurable:!0}},"getOwnPropertyDescriptor")});return s},"createClientAccessor"),Bc=i((t,e)=>{const s=i(()=>{throw new Error(t)},"fail");return new Proxy((()=>{}),{apply:s,get:i((n,r)=>{if(r==="source"||r==="query")return null;if(r==="name")return e;if(r===Es)return s();const o=Gt(r,"AssistantClientAccessor");return o!==!1?o:s()},"get"),has:i((n,r)=>r==="source"||r==="query"||r==="name","has"),ownKeys:i(()=>[],"ownKeys"),getOwnPropertyDescriptor:i(()=>{},"getOwnPropertyDescriptor")})},"createErrorClientAccessor"),cr=i(t=>t?.source!=null,"isScopeAvailable"),qr=i(t=>t?.source===null,"isScopeUnavailable"),Mi=i(t=>t[Es]??t,"getClientId"),jf=i(t=>t[Ur]??Mi(t),"getClientInstanceId"),Kt=i(t=>t==="optional"||t==="subscribe"||t==="on"||t==="__proto__"||typeof t=="symbol","isIgnoredClientKey"),zr=i(t=>{const e=[];for(const s in t)Kt(s)||e.push(s);return e},"clientScopeKeys"),Mf=class extends tn{static{i(this,"OptionalClientViewProxyHandler")}#e;constructor(t){super(),this.#e=t}get(t,e){const s=Gt(e,"OptionalAssistantClient");if(s!==!1)return s;if(Kt(e))return;const n=this.#e[e];return cr(n)?n:void 0}ownKeys(){return zr(this.#e)}has(t,e){return!Kt(e)&&e in this.#e}},$c=i(t=>new Proxy({},new Mf(t)),"createOptionalClientView"),zo=i(()=>()=>{},"NO_OP_SUBSCRIBE"),Nf="You are using a component or hook that requires an AuiProvider. Wrap your component in an <AuiProvider> component.",Df=class extends tn{static{i(this,"EmptyAssistantClientProxyHandler")}#e;#t;#s;#n;constructor(t,e,s){super(),this.#e=t,this.#t=e,this.#s=s}get(t,e){if(e==="subscribe"||e==="on")return zo;if(e==="optional")return this.#n??=$c(this.#s());const s=Gt(e,this.#e);return s!==!1?s:Bc(this.#t(String(e)),String(e))}ownKeys(){return["subscribe","on","optional"]}getOwnPropertyDescriptor(t,e){if(e!=="optional")return super.getOwnPropertyDescriptor(t,e);const s=this.get(t,e);if(s!==void 0)return{value:s,writable:!1,enumerable:!1,configurable:!0}}has(t,e){return e==="subscribe"||e==="on"||e==="optional"}},Of=i((t,e)=>{const s=new Proxy({},new Df(t,e,()=>s));return s},"createEmptyAssistantClient"),ys=Of("DefaultAssistantClient",()=>Nf),Pf=i(()=>new Proxy({},{get(t,e){const s=Gt(e,"AssistantClient");return s!==!1?s:Bc(`The current scope does not have a "${String(e)}" property.`,String(e))}}),"createRootAssistantClient"),Ni=ss(ys),Bf=i(()=>{},"NOOP_EFFECT"),Lc=new WeakMap,$f=i(t=>Lc.get(t)??Bf,"getTapEffects"),Lf=i((t,e)=>{Lc.set(t,e)},"setTapEffects"),Di=i(()=>or(Ni),"useAssistantContextValue"),Vf=i((t,e)=>rr(Ni,t,e),"useAssistantContextProvider"),Hr=Symbol("assistant-ui.transform-scopes");function Vc(t,e){const s=t;if(s[Hr])throw new Error("transformScopes is already attached to this resource");s[Hr]=e}i(Vc,"attachTransformScopes");function Ff(t){return t[Hr]}i(Ff,"getTransformScopes");var Fc=i(t=>typeof t=="string"?{scope:t.split(".")[0],event:t}:{scope:t.scope,event:t.event},"normalizeEventSelector"),Wr=Symbol("assistant-ui.store.clientIndex"),Uf=i(t=>t[Wr],"getClientIndex"),Uc=ss([]),Oi=i(()=>Ai(Uc),"useClientStack"),qf=i((t,e)=>{const s=se(3),n=Oi();let r;return s[0]!==t||s[1]!==n?(r=[...n,t],s[0]=t,s[1]=n,s[2]=r):r=s[2],rr(Uc,r,e)},"useClientStackProvider"),Fn=Symbol("assistant-ui.store.getValue"),Ho=i(t=>{const e=t[Fn];if(!e)throw new Error("Client scope contains a non-client resource. Ensure your Derived get() returns a client created with useClientResource(), not a plain resource.");return e.getState?.()},"getClientState"),Wo=new Map;function zf(t){let e=Wo.get(t);return e||(e=i(function(...s){if(!this||typeof this!="object")throw new Error(`Method "${String(t)}" called without proper context. This may indicate the function was called incorrectly.`);const n=this[Fn];if(!n)throw new Error(`Method "${String(t)}" called on invalid client proxy. Ensure you are calling this method on a valid client instance.`);const r=n[t];if(!r)throw new Error(`Method "${String(t)}" is not implemented.`);if(typeof r!="function")throw new Error(`"${String(t)}" is not a function.`);return r(...s)},"template"),Wo.set(t,e)),e}i(zf,"getOrCreateProxyFn");var Hf=class extends tn{static{i(this,"ClientProxyHandler")}boundFns;cachedReceiver;outputRef;tagRef;index;self;constructor(t,e,s){super(),this.outputRef=t,this.tagRef=e,this.index=s}get(t,e,s){if(e===Fn)return this.outputRef.current;if(e===Wr)return this.index;if(e===Es)return this.self;if(e===Ur)return this.tagRef.current;const n=Gt(e,"ClientProxy");if(n!==!1)return n;const r=this.outputRef.current[e];if(typeof r=="function"){if(s===void 0)return r;(!this.boundFns||this.cachedReceiver!==s)&&(this.boundFns=new Map,this.cachedReceiver=s);let o=this.boundFns.get(e);return o||(o=zf(e).bind(s),this.boundFns.set(e,o)),o}return r}ownKeys(){return Object.keys(this.outputRef.current)}has(t,e){return e===Fn||e===Wr||e===Es||e===Ur?!0:e in this.outputRef.current}},Rs=i(t=>{const e=$e(null),s=$e(null),n=qe(()=>({}),[t.hook,t.key]),r=Oi().length,o=qe(()=>{const l=new Hf(e,s,r),u=new Proxy({},l);return l.self=u,u},[r]),a=qf(o,i(function(){return kt(t)},"WithClientStack"));return e.current||(e.current=a,s.current=n),be(()=>{e.current=a,s.current=n}),{methods:o,state:a.getState?.(),key:t.key}},"useClientResource"),qc=he(Rs),Un=0,Kr=0,Wf=i(t=>{Un++,Kr++;try{return t()}finally{Kr--,Un++}},"withBatchedStateReads"),Kf=i(t=>{let e;const s=new Map;let n=-1;const r=i(l=>{if(Kr===0)return Ho(t[l]());if(n!==Un)s.clear(),n=Un;else if(s.has(l))return s.get(l);const u=Ho(t[l]());return s.set(l,u),u},"readScopeState");class o extends tn{static{i(this,"OptionalAssistantStateProxyHandler")}get(u,d){const h=Gt(d,"OptionalAssistantState");if(h!==!1)return h;const f=d;if(!Kt(f)&&cr(t[f]))return r(f)}ownKeys(){return zr(t)}has(u,d){return!Kt(d)&&d in t}}class a extends tn{static{i(this,"ProxiedAssistantStateProxyHandler")}get(u,d){const h=Gt(d,"AssistantState");if(h!==!1)return h;if(d==="optional")return e??=new Proxy({},new o);const f=d;if(!Kt(f))return r(f)}ownKeys(){return[...zr(t),"optional"]}has(u,d){return d==="optional"||!Kt(d)&&d in t}}return new Proxy({},new a)},"createProxiedAssistantState"),Ko=new WeakMap,Jf=i(t=>{let e=Ko.get(t);return e||(e=Kf(t),Ko.set(t,e)),e},"getProxiedAssistantState"),zc=ss(null),Jo=Symbol("aui.scope-effect-unapplied"),Qf=i((t,e)=>rr(zc,t,e),"useAssistantTapContextProvider"),Pi=i(()=>{const t=Ai(zc);if(!t)throw new Error("AssistantTapContext is not available");return t},"useAssistantTapContext"),Hc=i(()=>Pi().clientRef,"useAssistantClientRef"),Wc=i((t,e,s)=>{const n=se(8),{clientRef:r}=Pi();let o;n[0]!==r||n[1]!==e||n[2]!==t?(o=i(()=>{const l=r.current;if(l===null)throw new Error("useAssistantScopeEffect ran before the client was committed. This is likely an internal bug in assistant-ui.");const u=i(()=>{const m=r.current?.[t];return m!==void 0&&cr(m)?jf(m):void 0},"identityOf");let d=Jo,h;const f=i(m=>{if(h?.(),h=void 0,d=Jo,m!==void 0){const g=e();h=typeof g=="function"?g:void 0}d=m},"apply");f(u());const p=l.subscribe(()=>{const m=u();m!==d&&f(m)});return()=>{p(),h?.()}},"t0"),n[0]=r,n[1]=e,n[2]=t,n[3]=o):o=n[3];let a;n[4]!==r||n[5]!==s||n[6]!==t?(a=[r,t,...s],n[4]=r,n[5]=s,n[6]=t,n[7]=a):a=n[7],be(o,a)},"useAssistantScopeEffect"),Ps=i(()=>{const t=se(3),{emit:e}=Pi(),s=Oi();let n;return t[0]!==s||t[1]!==e?(n=i((r,o)=>{e(r,o,s)},"t0"),t[0]=s,t[1]=e,t[2]=n):n=t[2],Jh(n)},"useAssistantEmit"),Jr=ss(void 0),Kc=i((t,e)=>{const s=Ai(Jr);return rr(Jr,t??s,e)},"useDestroySignalProvider"),Xt=i((t,e)=>{if(Array.isArray(t)!==Array.isArray(e))return!1;if(Array.isArray(t)&&Array.isArray(e)){if(t.length!==e.length)return!1;for(let n=0;n<t.length;n++)if(!Object.is(t[n],e[n]))return!1;return!0}const s=Object.keys(t);return s.length===Object.keys(e).length&&s.every(n=>Object.hasOwn(e,n)&&Object.is(t[n],e[n]))},"shallowEqual"),Jc=Symbol("assistant-ui.derived-hook"),Yf=i(t=>{t[Jc]=!0},"markDerivedHook"),Gf=i(t=>t[Jc]===!0,"isDerivedHook"),Qo=i(t=>{},"reportListenerError"),Yo=i((t,e,s)=>{try{const n=t(e,s);n!==null&&(typeof n=="object"||typeof n=="function")&&typeof n.then=="function"&&Promise.resolve(n).catch(Qo)}catch(n){Qo(n)}},"invokeListener"),Xf=i(()=>{const t=new Map,e=new Set,s=new Set;return{on(n,r){const o=r;if(n==="*")return e.add(o),()=>e.delete(o);let a=t.get(n);return a||(a=new Set,t.set(n,a)),a.add(o),()=>{a.delete(o),a.size===0&&t.get(n)===a&&t.delete(n)}},emit(n,r,o){!t.has(n)&&e.size===0||queueMicrotask(()=>{const a=t.get(n);if(a)for(const l of a)Yo(l,r,o);if(e.size>0){const l={event:n,payload:r};for(const u of e)Yo(u,l,o)}})},subscribe(n){return s.add(n),()=>s.delete(n)},notifySubscribers(){Wf(()=>{for(const n of s)try{n()}catch{}})}}},"createNotificationManager"),Qc=i(()=>ye(Xf)[0],"useNotificationManager"),Yc=i(()=>{const[t]=ye(()=>({controller:new AbortController,generation:0}));return Os(()=>{const e=++t.generation;return()=>queueMicrotask(()=>{t.generation===e&&t.controller.abort()})},[t]),t.controller.signal},"useHostDestroySignal"),Qr=i(t=>{const e=qe(()=>({}),[]);return e.v!==void 0&&Xt(e.v,t)?e.v:(e.v=t,t)},"useShallowStable"),Gc=(()=>{try{return!1}catch{return!1}})(),Zf=i((t,e)=>{const s={...t},n=new Set;let r=!0;for(;r;){r=!1;for(const o of Object.values(s)){if(n.has(o.hook))continue;n.add(o.hook);const a=Ff(o.hook);if(a){a(s,e),r=!0;break}}}return s},"applyTransformScopes"),lr=i(t=>Gf(t.hook),"isDerivedElement"),em=i(t=>{if(!lr(t))return{source:"root",query:{}};const e=t.args[0];return{source:e.source,query:e.query??{}}},"metaOf"),Yr=Symbol.for("aui.event-receiver-ref"),Xc=i((t,e)=>{const s=t===ys?Pf():t,n=Object.create(s);Object.assign(n,e);let r;return Object.defineProperty(n,"optional",{get:i(()=>r??=$c(n),"get"),enumerable:!1}),n},"createClientObject"),tm=i(({notifications:t,clientRef:e})=>qe(()=>({subscribe:t.subscribe,on:i(function(s,n){if(!this)throw new Error("const { on } = useAui() is not supported. Use aui.on() instead.");const{scope:r,event:o}=Fc(s),a=s[Yr];if(r!=="*"&&!a&&qr(this[r]))throw new Error(`Scope "${r}" is not available. Use { scope: "*", event: "${o}" } to listen globally.`);const l=t.on(o,(d,h)=>{if(r==="*")return n(d);const f=((a??e).current??this)[r];if(!cr(f))return;const p=Mi(f);if(p===h[Uf(p)])return n(d)});if(r!=="*"){if(a){if(e.parent===ys)return l}else if(qr(e.parent[r]))return l}const u=e.parent.on(s,n);return()=>{l(),u()}},"on")}),[t,e]),"useClientFields"),Zc=i(t=>{const e=se(5);let s;e[0]!==t?(s=em(t),e[0]=t,e[1]=s):s=e[1];const{source:n,query:r}=s,o=Qr(r);let a;return e[2]!==n||e[3]!==o?(a={source:n,query:o},e[2]=n,e[3]=o,e[4]=a):a=e[4],Qr(a)},"useScopeMeta"),sm=i((t,e)=>{const s=se(3);let n;return s[0]!==e||s[1]!==t?(n=e?t:qc(t),s[0]=e,s[1]=t,s[2]=n):n=s[2],kt(n)},"useScopeValue"),nm=i((t,e)=>{const s=Di(),n=lr(e),r=sm(e,n),o=n?r:r.methods,a=Zc(e),l=qe(()=>Pc({name:t,...a},()=>o),[t,a,o]);return s[t]=l,l},"useScopeMount"),rm=he(nm),im=i(t=>{const e=se(2);let s;return e[0]!==t?(s=t.map(hm),e[0]=t,e[1]=s):s=e[1],ji(s)},"useScopeMounts"),el=i((t,e)=>{const s=Qr(e),n=qe(()=>({}),[]);return n.deps!==s&&(n.deps=s,n.client=t),n.client},"useCommittedClient"),tl=i(({parent:t,entries:e,clientRef:s,notifications:n})=>{const r=tm({notifications:n,clientRef:s}),o=Xc(t,r),a=qe(()=>({clientRef:s,emit:n.emit}),[s,n.emit]),l=Qf(a,i(function(){return Vf(o,i(function(){return im(e)},"WithBuildingClient"))},"WithTapContext"));return{client:el(o,[t,...l])}},"useAuiRoot"),om=i(({parent:t,entries:e,destroySignal:s})=>{const n=$e({parent:t,current:null}).current,{value:r,effects:o}=Dc(i(function(){const l=Qc(),{client:u}=Kc(s,i(function(){return tl({parent:t,entries:e,clientRef:n,notifications:l})},"useOwnedRoot"));return be(()=>t.subscribe(l.notifySubscribers),[t,l]),be(()=>l.notifySubscribers()),u},"AssistantClientHost"));return Os(()=>{n.parent=t,n.current=r},[r,t,n]),{client:r,effects:o}},"useHostedAssistantClient"),am=i(({parent:t,entries:e,destroySignal:s})=>{const n=$e({parent:t,current:null}).current,{value:r,effects:o}=Dc(i(function(){const l=Qc(),u=_f(i(function(){return Kc(s,i(function(){return tl({parent:t,entries:e,clientRef:n,notifications:l})},"useOwnedRoot"))},"AuiRoot")),d=ir(u.subscribe,()=>u.getValue().client,()=>u.getValue().client);return be(()=>{const h=i(()=>sf(()=>{n.current=u.getValue().client,l.notifySubscribers()}),"notify"),f=u.subscribe(h),p=t.subscribe(h);return()=>{f(),p()}},[u,t,l]),d},"LegacyAssistantClientHost"));return Os(()=>{n.parent=t,n.current=r},[r,t,n]),{client:r,effects:o}},"useTapRootAssistantClient"),cm=i((t,e,s,n)=>{const{get:r}=n.args[0],o=ir(t.subscribe,()=>r(t),()=>r(t)),a=Zc(n),l=qe(()=>Pc({name:s,...a},()=>o),[s,a,o]);return e[s]=l,l},"useDerivedScopeMount"),lm=i((t,e)=>{if(Gc){const[l]=ye(()=>e.map(([h])=>h).join(",")),u=e.find(([,h])=>!lr(h));if(u)throw new Error(`Scope "${u[0]}" is a root scope but this useAui mounted derived-only; remount with a new key to change scope kinds.`);const d=e.map(([h])=>h).join(",");if(d!==l)throw new Error(`A derived-only config mounted scopes [${l}] but now has [${d}]; remount with a new key to change the scope set.`)}const s=$e({parent:t,current:null}).current,n=i(function(l,u){if(!this)throw new Error("const { on } = useAui() is not supported. Use aui.on() instead.");const{scope:d,event:h}=Fc(l);if(d==="*")return t.on(l,u);const f=l[Yr];if(!f&&qr(this[d]))throw new Error(`Scope "${d}" is not available. Use { scope: "*", event: "${h}" } to listen globally.`);return t.on({scope:d,event:h,[Yr]:f??s},u)},"on"),r=Xc(t,{subscribe:t.subscribe,on:n}),o=e.map(([l,u])=>cm(t,r,l,u)),a=el(r,[t,...o]);return Os(()=>{s.parent=t,s.current=a},[a,t,s]),a},"useDerivedOnlyClient"),um=i((t,e)=>{const s=se(8);let n;s[0]!==e||s[1]!==t?(n=Object.entries(Zf(e,t)),s[0]=e,s[1]=t,s[2]=n):n=s[2];const r=n;let o;s[3]!==r?(o=i(()=>r.length===0||r.some(fm),"t1"),s[3]=r,s[4]=o):o=s[4];const[a]=ye(o);let l;return s[5]!==r||s[6]!==a?(l={entries:r,rooted:a},s[5]=r,s[6]=a,s[7]=l):l=s[7],l},"useScopeEntries"),sl=i((t,e,s,n)=>{const{entries:r,rooted:o}=um(t,e);return o?s({parent:t,entries:r,destroySignal:n}):{client:lm(t,r)}},"useConfiguredAuiImpl"),dm=i((t,e,s)=>sl(t,e,om,s),"useConfiguredAui");function Bi(t){const e=Di();if(t){const s=Yc(),{client:n,effects:r}=sl(e,t,am,s);return r&&Lf(n,r),n}return e}i(Bi,"useAui");function hm(t){const[e,s]=t;return Oe(e,rm(e,s))}i(hm,"_temp$7");function fm(t){const[,e]=t;return!lr(e)}i(fm,"_temp2$6");var mm=i(t=>{const e=se(6),s=Bi();let n;e[0]!==s?(n=Jf(s),e[0]=s,e[1]=n):n=e[1];const r=n;let o,a;e[2]!==r||e[3]!==t?(o=i(()=>t(r),"t1"),a=i(()=>t(r),"t2"),e[2]=r,e[3]=t,e[4]=o,e[5]=a):(o=e[4],a=e[5]);const l=ir(s.subscribe,o,a);if(typeof l=="object"&&l!==null&&(l===r||l===r.optional))throw new Error("You tried to return the entire AssistantState. This is not supported due to technical limitations.");return Qh(l),l},"useAuiState"),nl=i(t=>{const e=se(3),{get:s}=t,n=Bi();let r;return e[0]!==n||e[1]!==s?(r=i(()=>s(n),"t1"),e[0]=n,e[1]=s,e[2]=r):r=e[2],mm(r)},"useDerived");Yf(nl);var Tn=he(nl),rl=i(t=>{if(t.key===void 0)throw new Error("useClientLookup: Element has no key");return t.key},"getElementKey");function it(t){const e=se(12);let s;e[0]!==t?(s=t.map(bm),e[0]=t,e[1]=s):s=e[1];const n=ji(s);let r;e[2]!==t?(r=t.reduce(gm,Object.create(null)),e[2]=t,e[3]=r):r=e[3];const o=r;let a;e[4]!==n?(a=n.map(pm),e[4]=n,e[5]=a):a=e[5];const l=a;let u;e[6]!==o||e[7]!==n?(u=i(h=>{if("index"in h){if(h.index<0||h.index>=n.length)throw new Error(`useClientLookup: index ${h.index} out of bounds (length: ${n.length}) (ignore if recovered)`);return n[h.index].methods}const f=o[h.key];if(f===void 0)throw new Error(`useClientLookup: key "${h.key}" not found (ignore if recovered)`);return n[f].methods},"t3"),e[6]=o,e[7]=n,e[8]=u):u=e[8];let d;return e[9]!==l||e[10]!==u?(d={state:l,get:u},e[9]=l,e[10]=u,e[11]=d):d=e[11],d}i(it,"useClientLookup");function pm(t){return t.state}i(pm,"_temp3$3");function gm(t,e,s){return t[rl(e)]=s,t}i(gm,"_temp2$5");function bm(t){return Oe(rl(t),qc(t),t.deps)}i(bm,"_temp$6");var Xe=Symbol("skip-update"),ht=i((t,...e)=>{const s=[];for(const n of t)try{n(...e)}catch(r){s.push(r)}if(s.length===1)throw s[0];if(s.length>1){for(const n of s);throw new AggregateError(s)}},"notifySubscribers"),Bs=i(t=>{ht(t)},"runCleanups"),$i=i((t,e)=>{try{t()}catch{}throw e},"rollbackSubscription"),il=i((t,e)=>t===void 0||e===void 0?t===e:Xt(t,e),"shallowEqualOrUndefined"),Li=class{static{i(this,"BaseSubscribable")}_subscribers=new Set;subscribe(t){return this._subscribers.add(t),()=>this._subscribers.delete(t)}waitForUpdate(){return new Promise(t=>{const e=this.subscribe(()=>{e(),t()})})}_notifySubscribers(){ht(this._subscribers)}},ur=class{static{i(this,"BaseSubject")}_subscriptions=new Set;_connection;get isConnected(){return!!this._connection}notifySubscribers(t,e){if(e){dt(this._subscriptions,t,e);return}ht(this._subscriptions,t)}_updateConnection(){if(this._subscriptions.size>0){if(this._connection)return;this._connection=this._connect()}else{const t=this._connection;this._connection=void 0,t?.()}}subscribe(t){this._subscriptions.add(t);try{this._updateConnection()}catch(e){throw this._subscriptions.delete(t),e}return()=>{this._subscriptions.delete(t),this._updateConnection()}}},Ge=class extends ur{static{i(this,"ShallowMemoizeSubject")}get path(){return this.binding.path}binding;constructor(t){super(),this.binding=t;const e=t.getState();if(e===Xe)throw new Error("Entry not available in the store");this._previousState=e}_previousState;getState=i(()=>(this.isConnected||this._syncState(),this._previousState),"getState");_syncState(){const t=this.binding.getState();return t===Xe||il(t,this._previousState)?!1:(this._previousState=t,!0)}_connect(){const t=i(()=>{this._syncState()&&this.notifySubscribers()},"callback"),e=this.binding.subscribe(t);try{return this._syncState(),e}catch(s){throw $i(e,s)}}},Vi=class extends ur{static{i(this,"LazyMemoizeSubject")}get path(){return this.binding.path}binding;constructor(t){super(),this.binding=t}_previousStateDirty=!0;_previousState;getState=i(()=>{if(!this.isConnected||this._previousStateDirty){const t=this.binding.getState();t!==Xe&&(this._previousState===void 0||!il(t,this._previousState))&&(this._previousState=t),this._previousStateDirty=!1}if(this._previousState===void 0)throw new Error("Entry not available in the store");return this._previousState},"getState");_connect(){const t=i(()=>{this._previousStateDirty=!0,this.notifySubscribers()},"callback"),e=this.binding.subscribe(t);return this._previousStateDirty=!0,e}},qn=class extends ur{static{i(this,"NestedSubscriptionSubject")}get path(){return this.binding.path}binding;constructor(t){super(),this.binding=t}getState(){return this.binding.getState()}outerSubscribe(t){return this.binding.subscribe(t)}_connect(){const t=i(()=>{this.notifySubscribers()},"callback");let e=this.binding.getState(),s=e?.subscribe(t);const n=i(()=>{const o=this.binding.getState();if(o===e)return;e=o;const a=s;s=void 0;try{a?.()}finally{s=o?.subscribe(t),t()}},"onRuntimeUpdate");let r;try{r=this.outerSubscribe(n)}catch(o){throw $i(()=>s?.(),o)}return()=>Bs([()=>r(),()=>s?.()])}},ol=class extends ur{static{i(this,"EventSubscriptionSubject")}config;constructor(t){super(),this.config=t}getState(){return this.config.binding.getState()}outerSubscribe(t){return this.config.binding.subscribe(t)}_connect(){const t=`Runtime event "${this.config.event}"`,e=i(a=>{this.notifySubscribers(a,t)},"callback");let s=this.config.binding.getState(),n=s?.unstable_on(this.config.event,e);const r=i(()=>{const a=this.config.binding.getState();if(a===s)return;s=a;const l=n;n=void 0;try{l?.()}finally{n=a?.unstable_on(this.config.event,e),this.config.notifyOnRebind&&e({})}},"onRuntimeUpdate");let o;try{o=this.outerSubscribe(r)}catch(a){throw $i(()=>n?.(),a)}return()=>Bs([()=>o(),()=>n?.()])}},Ir=i(t=>{if(!t.overwrite)return t;const{overwrite:e,...s}=t;return s},"stripOverwrite"),xm=i(t=>{const e=Array.from(t).map(n=>n.getModelContext()).sort((n,r)=>(r.priority??0)-(n.priority??0)),s=Je();return e.reduce((n,r)=>{const o=r.priority??0;if(r.system&&(n.system?n.system+=`
|
|
1
|
+
var Tu=Object.defineProperty;var i=(t,e)=>Tu(t,"name",{value:e,configurable:!0});import{i as ui,t as Cu}from"./rolldown-runtime-ZpX3ckPj.js";import{b as ku,h as Yn,l as te,na as Au,ta as Eu}from"./createLucideIcon-DJi9suAC.js";import{a as Pa,h as Ru}from"./star-BZgQbzhV.js";import{d as ju,g as Mu,n as Nu,t as Du,u as Ou,v as Pu}from"./queryKeys-DYV5MhM_.js";import{C as Ba,E as Bu,S as $u,w as Lu}from"./ConnectionSetupFlow-BaarToKu.js";import{X as Vu}from"./mention-chips-D8856Q0_.js";import{r as Fu}from"./responsible-user-denial-Dyl0BwU5.js";import{Bt as Uu,I as qu,Ut as $a,_t as La,an as Ln,at as Va,b as zu,it as Hu,m as Fa,t as Is}from"./router-2UfGeejU.js";import{a as Wu,c as Ku,i as Ju,n as Qu,o as Yu,r as Gu,s as Xu,t as Zu}from"./alert-dialog-Blls2GnU.js";import{a as ed,n as di,t as hi}from"./avatar-UO226cef.js";import{i as On,p as Ua,r as qa,t as za}from"./dropdown-menu-DEO3mF_E.js";import{a as td,s as sd,t as nd}from"./MarkdownEditor-DXD-Cu3u.js";import{o as rd,r as id,t as od}from"./popover-BhYHYj7q.js";import{t as wr}from"./arrow-right-BL5kYtCZ.js";import{t as Ts}from"./check-Ctsrlfa-.js";import{t as ts}from"./chevron-down-BCvxsWfI.js";import{t as ad}from"./circle-IAHLDvLO.js";import{a as cd,c as ld,d as ud,f as dd,i as hd,n as fd,o as md,p as fi,t as pd}from"./ComposerAddMenu-DNp4ecG8.js";import{_ as gd,b as bd,d as xd,p as vd,t as Gn,x as Co}from"./MarkdownBody-BTjuUgFa.js";import{t as en}from"./copy-_wvZOjTe.js";import{t as Ha}from"./ellipsis-BTiLRUn4.js";import{t as yd}from"./eye-off-CVVA-EWh.js";import{t as mi}from"./flag-R0AVTKGk.js";import{r as pt,t as Ee}from"./button-CMwV3L1P.js";import{h as _d,p as wd,s as Wa,t as Ka}from"./IssueThreadInteractionCard-wFidFTIh.js";import{t as Sd}from"./rotate-ccw-CQEJ4ewP.js";import{t as Id}from"./search-04O7m-IF.js";import{t as Ja}from"./square-B2aH51tE.js";import{t as Td}from"./thumbs-down-C2BkjZOy.js";import{t as Cd}from"./thumbs-up-OW2IsTL7.js";import{t as Qa}from"./trash-D7zTaHTj.js";import{t as Xn}from"./triangle-alert-CBVKiaXB.js";import{t as kd}from"./x-DRDFdlYE.js";import{i as pi,n as gi,t as bi}from"./tooltip-B5WQ3lq5.js";import{t as Jt}from"./badge-DuA2EgZC.js";import{t as rt}from"./AgentAvatar-DgGEobSY.js";import{n as Zn}from"./ToastContext-DMdt9oTd.js";import{t as Ad}from"./heartbeats-DOyojsaN.js";import{t as Ed}from"./instanceSettings-D8g_QlS-.js";import{a as Ya,i as Ga,n as Xa,r as Za,s as ec,t as tc}from"./dialog-CKUblzlR.js";import{r as Qt}from"./assignees-DkQNbPzi.js";import{t as Rd}from"./textarea-BRPEfJ-g.js";import{t as sc}from"./attachment-icon-4xDiQblX.js";import{a as jd,c as Sr,d as Ft,g as Sn,h as ko,l as Md,m as Ut,o as Nd,p as Dd,s as Ao,u as Od,v as Eo}from"./TaskChatComposerTakeoverContext-BJAHPHve.js";import{t as Pd}from"./InlineEntitySelector-v2Q4C8oT.js";import{t as Bd}from"./InlineBanner-VQ5mstsR.js";import{t as Cs}from"./clipboard-CTLKYvRL.js";import{t as $r}from"./card-Bru3x_SJ.js";import{_ as $d,a as Ld,d as Vd,i as Fd,l as Ud,n as qd,r as zd,s as Hd}from"./issue-blockers-DLfa24KC.js";import{Et as Wd,Ha as nc,P as Vn,Tt as Kd,h as Jd,m as Qd,p as rc}from"./index-3AxqhPET.js";import{_ as Yd,a as xi,d as Gd,h as Xd,i as Zd,n as eh,p as th,r as sh,s as nh,t as rh}from"./system-notice-comment-CL_SWj_f.js";import{n as ih,r as oh,t as ah}from"./run-log-chunks-ZnzOvrXs.js";import{t as ch}from"./useSecondTick-Gige2l0t.js";import{a as Ro,c as lh,d as uh,f as dh,g as vi,h as hh,i as fh,l as mh,m as ph,r as gh,s as bh,t as Pn}from"./SourceTrustBadge-CfBrvKL3.js";import{t as xh}from"./IssueRecoveryActionCard-vAuL_OEC.js";import{t as vh}from"./CommentAttributionChip-fz5Mn0RW.js";var x=ui(Au(),1),c=ui(Eu(),1);function jo(t){const e=t.executionWorkspaceId??t.projectWorkspaceId;return t.label??(e?e.slice(0,8):"None")}i(jo,"formatTimelineWorkspaceLabel");function ks(t){return typeof t!="object"||t===null||Array.isArray(t)?null:t}i(ks,"asRecord$2");function Ht(t,e){return Object.prototype.hasOwnProperty.call(t,e)}i(Ht,"hasOwn");function Me(t){return typeof t=="string"&&t.length>0?t:null}i(Me,"nullableString");function Mo(t){return new Date(t).getTime()}i(Mo,"toTimestamp$2");function yh(t,e){return t.agentId===e.agentId&&t.userId===e.userId}i(yh,"sameAssignee");function _h(t,e){return t.projectWorkspaceId===e.projectWorkspaceId&&t.executionWorkspaceId===e.executionWorkspaceId&&t.mode===e.mode&&t.label===e.label}i(_h,"sameWorkspace");function No(t){const e=ks(t);return e?{label:Me(e.label),projectWorkspaceId:Me(e.projectWorkspaceId),executionWorkspaceId:Me(e.executionWorkspaceId),mode:Me(e.mode)}:null}i(No,"workspaceFromRecord");function wh(t){const e=ks(t.workspaceChange);if(!e)return null;const s=No(e.from),n=No(e.to);return!s||!n||_h(s,n)?null:{from:s,to:n}}i(wh,"workspaceChangeFromDetails");function ic(t){return[...t].sort((e,s)=>{const n=Mo(e.createdAt)-Mo(s.createdAt);return n!==0?n:e.id.localeCompare(s.id)})}i(ic,"sortTimelineEvents");function r_(t){const e=[];for(const s of t??[]){if(s.action!=="issue.updated")continue;const n=ks(s.details);if(!n||!Ht(n,"workMode"))continue;const r=ks(n._previous);!r||!Ht(r,"workMode")||e.push({id:s.id,createdAt:s.createdAt,from:Me(r.workMode),to:Me(n.workMode)})}return ic(e)}i(r_,"extractIssueWorkModeChanges");function i_(t){const e=[];for(const s of t??[]){const n=ks(s.details);if(!n)continue;if(s.action==="issue.comment_added"){if(n.followUpRequested!==!0&&n.resumeIntent!==!0||n.reopened===!0)continue;const l=Me(n.commentId);e.push({id:s.id,createdAt:s.createdAt,actorType:s.actorType,actorId:s.actorId,runId:s.runId??null,commentId:l,followUpRequested:!0});continue}if(s.action!=="issue.updated")continue;const r=ks(n._previous),o={id:s.id,createdAt:s.createdAt,actorType:s.actorType,actorId:s.actorId,runId:s.runId??null};if((n.followUpRequested===!0||n.resumeIntent===!0)&&(o.followUpRequested=!0,o.commentId=Me(n.commentId)),Ht(n,"status")){const l=Me(r?.status)??Me(n.reopenedFrom),u=Me(n.status);l!==u&&(o.statusChange={from:l,to:u})}if(Ht(n,"assigneeAgentId")||Ht(n,"assigneeUserId")){const l={agentId:Me(r?.assigneeAgentId),userId:Me(r?.assigneeUserId)},u={agentId:Ht(n,"assigneeAgentId")?Me(n.assigneeAgentId):l.agentId,userId:Ht(n,"assigneeUserId")?Me(n.assigneeUserId):l.userId};yh(l,u)||(o.assigneeChange={from:l,to:u})}const a=wh(n);a&&(o.workspaceChange=a),(o.statusChange||o.assigneeChange||o.workspaceChange||o.followUpRequested)&&e.push(o)}return ic(e)}i(i_,"extractIssueTimelineEvents");var vs=null;function Sh(t,e){t.currentIndex=0,t.wipContextDeps=null,t.wipCommitCallbacks=[];const s=vs;vs=t;try{if(e(),t.isFirstRender=!1,t.cells.length!==t.currentIndex)throw new Error(`Rendered ${t.currentIndex} hooks but expected ${t.cells.length}. Hooks must be called in the exact same order in every render.`)}finally{vs=s}}i(Sh,"withResourceFiber");function et(){if(!vs)throw new Error("No resource fiber available");return vs}i(et,"getCurrentResourceFiber");function Tt(){return vs}i(Tt,"peekResourceFiber");var De=typeof process<"u"&&!1,oc=i(t=>({version:0,committedVersion:0,dispatchUpdate:t,changelog:[],committedLog:[],unsettledCount:0,rollbackCallbacks:[]}),"createResourceFiberRoot"),yi=i(t=>{t.committedVersion=t.version;for(const e of t.changelog)e.logged=!1,e.settled||(e.settled=!0,t.unsettledCount--),t.committedLog.push(e);t.changelog.length=0,t.unsettledCount===0&&(t.committedLog.length=0),t.rollbackCallbacks.length=0},"commitRoot"),Gs=i((t,e)=>{const s=t.version>e;if(t.version=e,s){for(let n=0;n<t.rollbackCallbacks.length;n++)t.rollbackCallbacks[n]();if(t.rollbackCallbacks.length=0,e<=t.committedVersion){const n=[];for(;t.committedVersion-n.length>e;){const r=t.committedLog.pop();if(r===void 0){if(De)throw new Error("tap: committed history is shorter than the replay base.");break}_i(r.fiber,r.cell),r.cell.workInProgress=r.prevState,n.push({record:r,prevState:r.prevState,eagerState:r.eagerState,hasEagerState:r.hasEagerState})}if(n.length>0){const r=t.committedVersion;er(t,()=>{for(let o=n.length-1;o>=0;o--){const a=n[o];a.record.prevState=a.prevState,a.record.eagerState=a.eagerState,a.record.hasEagerState=a.hasEagerState,t.committedLog.push(a.record)}t.committedVersion=r})}t.committedVersion=e;for(const r of t.changelog)r.logged=!1;t.changelog.length=0}else{for(;t.committedVersion+t.changelog.length>e;)t.changelog.pop().logged=!1;for(let n=0;n<t.changelog.length;n++)ac(t.changelog[n]);yi(t)}}},"setRootVersion"),ac=i(t=>{_i(t.fiber,t.cell),t.queued||(t.queued=!0,(t.cell.queue??=[]).push(t))},"applyChangelogRecord"),an=i((t,e)=>{t.wipCommitCallbacks.push(e)},"addCommit"),er=i((t,e)=>{t.rollbackCallbacks.push(e)},"addRollback"),_i=i((t,e)=>{e.isDirty||(e.isDirty=!0,t.markDirty?.(),er(t.root,()=>{if(e.queue!==null){for(const s of e.queue)s.queued=!1;e.queue=null}e.workInProgress=e.current,e.isDirty=!1}))},"markReducerDirty"),cc=Symbol.for("react.memo_cache_sentinel"),lc=i(t=>new Array(t).fill(cc),"createMemoCache"),Ih=i((t,e)=>{const s=t.memoCache;let n=s.workInProgress;if(n===null){const a=s.current;n=a===null?[]:a.map(l=>l.slice()),s.workInProgress=n,er(t.root,()=>{s.workInProgress=null})}const r=s.index++;let o=n[r];return o===void 0?(o=lc(e),n[r]=o):De&&o.length,o},"nextFiberMemoCache"),uc=i(t=>Ih(et(),t),"useMemoCache"),Th=x.default,Ch=i(t=>(0,x.useMemo)(()=>{const e=lc(t);return e[cc]=!0,e},[]),"useReactMemoCacheShim"),kh=Th.__COMPILER_RUNTIME?.c??Ch,Ah=i(()=>Tt()!==null,"inTap$1"),se=i(t=>Ah()?uc(t):kh(t),"c"),Je=i((t,...e)=>Object.assign(Object.create(null),t,...e),"nullProtoRecord"),tr=i(()=>{throw new Error("Rendered more hooks than during the previous render. Hooks must be called in the exact same order in every render.")},"throwRenderedMoreHooks"),sr=i(()=>{throw new Error("Hook order changed between renders")},"throwHookOrderChanged"),Eh=i(t=>({type:t,setup:void 0,setupDeps:void 0,cleanup:void 0,deps:null,generation:0}),"newEffect");function dc(t,e,s){const n=et(),r=n.currentIndex++,o=n.cells[r],a=o===void 0?Eh(s):o.type===s?o:sr();if(o===void 0&&(n.isFirstRender||tr(),n.cells[r]=a,s==="insertion"?(n.insertionCells??=[]).push(a):n.effectCells.push(a)),a.deps!==null&&!!e!=!!a.deps)throw new Error("useEffect called with and without dependencies across re-renders");an(n,()=>{a.setup=t,a.setupDeps=e,a.generation++})}i(dc,"useEffectImpl");function gt(t,e){dc(t,e,"effect")}i(gt,"useEffect$3");var cn=i((t,e)=>{De&&(t.length,e.length);for(let s=0;s<t.length&&s<e.length;s++)if(!Object.is(t[s],e[s]))return!1;return!0},"depsShallowEqual"),Do=i((t,e)=>{an(t,()=>{e.current=e.wip,e.currentDeps=e.wipDeps,e.isDirty=!1})},"addMemoCommit"),nr=i((t,e)=>{const s=et(),n=s.currentIndex++;let r=s.cells[n];if(r===void 0){s.isFirstRender||tr();const l=t();return De&&s.devStrictMode&&t(),r={type:"memo",current:l,currentDeps:e,wip:l,wipDeps:e,isDirty:!1},s.cells[n]=r,l}r.type!=="memo"&&sr();const o=r;if(cn(o.wipDeps,e))return o.isDirty&&Do(s,o),o.wip;const a=t();return De&&s.devStrictMode&&t(),o.wip=a,o.wipDeps=e,o.isDirty||(o.isDirty=!0,er(s.root,()=>{o.wip=o.current,o.wipDeps=o.currentDeps,o.isDirty=!1})),Do(s,o),a},"useMemo$5");function Ds(t){return nr(()=>({current:t}),[])}i(Ds,"useRef$5");var wi=Symbol("tap.Context.defaultValue"),Rh=i(t=>t,"asTap"),st=new Map,Wt=new Set,jh=i(()=>new Map(st),"cloneCurrentTapContext"),Lr=i((t,e)=>{const s=st;st=t;try{return e()}finally{st=s}},"withTapContextRoot"),hc=i((t,e)=>{t[wi]=e},"attachDefaultValueToContext"),fc=i(t=>typeof t=="object"&&t!==null&&wi in t,"isTapContext"),mc=i(t=>typeof t=="object"&&t!==null&&"$$typeof"in t&&t.$$typeof===Symbol.for("react.context"),"isReactContext"),pc=i(t=>fc(t)||mc(t),"isReadableTapContext"),gc=i(t=>{if(!fc(t)){if(mc(t)){hc(t,t._currentValue??t._currentValue2);return}throw new Error("A tap resource's `use()` only accepts a tap context.")}},"assertTapContext"),rr=i((t,e,s)=>{if(typeof t!="object"||t===null)throw new Error("useContextProvider only accepts a React context.");gc(t);const n=t,r=et(),o=Ds(void 0),a=o.current===void 0||!Object.is(o.current.value,e);gt(()=>{o.current={value:e}},[e]);const l=st.get(n),u=l!==void 0||st.has(n);st.set(n,{value:e,source:r});try{return Mh(n,a,s)}finally{u?st.set(n,l):st.delete(n)}},"useContextProvider"),Mh=i((t,e,s)=>{const n=Wt.has(t);e?Wt.add(t):Wt.delete(t);try{return s()}finally{n?Wt.add(t):Wt.delete(t)}},"withChangedContext"),bc=i(t=>{gc(t);const e=t,s=Nh(e,t),n=et();return(n.wipContextDeps??=new Map).set(e,s.source),s.value},"useContext$2"),Nh=i((t,e)=>st.get(t)??{value:Rh(e)[wi],source:null},"getCurrentContextValue"),Dh=i((t,e,s,n)=>{if(!n)return s;let r=s;for(const[o,a]of n)a===e||a===t||(r??=new Map).set(o,a);return r},"mergeContextDeps"),xc=i((t,e=t.wipContextDeps)=>{const s=Tt();!s||!e||(s.wipContextDeps=Dh(s,t,s.wipContextDeps,e))},"bubbleContextDeps"),vc=i(()=>Wt.size>0,"hasChangedContexts"),Si=i(t=>{if(!t.contextDeps||!vc())return!1;for(const e of Wt.keys())if(t.contextDeps.has(e))return!0;return!1},"hasContextDepsChanged"),Oh=i((t,e,s)=>{if(t.isNeverMounted)throw new Error("Resource updated before mount");let n=!1,r=!0;t.root.unsettledCount++,t.root.dispatchUpdate(()=>(n||(n=!0,s&&t.root.changelog.length===0&&!e.cell.isDirty&&!e.hasEagerState&&(e.prevState=e.cell.workInProgress,e.eagerState=s(e.cell.workInProgress,e.action),e.hasEagerState=!0,r=!Object.is(e.cell.current,e.eagerState),!r&&!e.settled&&(e.settled=!0,t.root.unsettledCount--))),r),()=>(n=!0,r=!0,ac(e),e.logged||(e.logged=!0,t.root.changelog.push(e)),!0))},"dispatchOnFiber"),Ph=i((t,e,s,n,r)=>{const o=n?n(s):s;De&&t.devStrictMode&&n&&n(s);const a={type:"reducer",workInProgress:o,current:o,isDirty:!1,queue:null,renderQueue:null,reducer:e,dispatch:i(l=>{const u=Tt();if(u!==null){if(u!==t)throw new Error("Cannot update a resource while rendering a different resource.");(t.renderPendingCells??=new Set).add(a),(a.renderQueue??=[]).push(l)}else{const d={fiber:t,cell:a,action:l,hasEagerState:!1,eagerState:void 0,prevState:a.current,settled:!1,queued:!1,logged:!1};Oh(t,d,r?e:void 0)}},"dispatch")};return a},"createReducerCell");function yc(t,e,s,n){const r=et(),o=r.currentIndex++,a=r.cells[o],l=(()=>{if(a!==void 0)return a.type==="reducer"?a:sr();r.isFirstRender||tr();const d=Ph(r,t,e,s,n);return r.cells[o]=d,d})(),u=l.queue;if(u!==null){const d=t===l.reducer;for(let h=0;h<u.length;h++){const f=u[h];!f.hasEagerState||!d||!Object.is(f.prevState,l.workInProgress)?(f.prevState=l.workInProgress,f.eagerState=t(l.workInProgress,f.action),f.hasEagerState=!0,De&&r.devStrictMode&&(f.eagerState=t(l.workInProgress,f.action))):De&&r.devStrictMode&&t(l.workInProgress,f.action),f.queued=!1,l.workInProgress=f.eagerState}l.queue=null}if(l.reducer=t,l.renderQueue!==null){let d=l.workInProgress;for(const h of l.renderQueue)d=t(d,h);l.renderQueue=null,r.renderPendingCells?.delete(l),Object.is(d,l.workInProgress)||(_i(r,l),l.workInProgress=d)}return l.isDirty&&an(r,()=>{l.current=l.workInProgress,l.isDirty=!1}),[l.workInProgress,l.dispatch]}i(yc,"useReducerImpl");function Ii(t,e,s){return yc(t,e,s,!1)}i(Ii,"useReducer$1");var Bh=i((t,e)=>typeof e=="function"?e(t):e,"stateReducer"),$h=i(t=>t===void 0?void 0:typeof t=="function"?t():t,"stateInit");function _c(t){return yc(Bh,t,$h,!0)}i(_c,"useState$3");var Ti=i((t,e)=>nr(()=>t,e),"useCallback$4");function wc(t,e){dc(t,e,"insertion")}i(wc,"useInsertionEffect$2");function Ci(t){const e=et(),s=Ds(t);return s.current!==t&&an(e,()=>{s.current=t}),Ti(((...n)=>{if(De&&Tt())throw new Error("useEffectEvent cannot be called during render");return s.current(...n)}),[])}i(Ci,"useEffectEvent$1");var Sc=i(t=>t!==null&&typeof t=="object"&&typeof t.then=="function","isThenable$1"),Oo=i(()=>{},"noop"),Lh=i(t=>{const e=t;switch(typeof e.status!="string"?(e.status="pending",t.then(s=>{e.status==="pending"&&(e.status="fulfilled",e.value=s)},s=>{e.status==="pending"&&(e.status="rejected",e.reason=s)})):e.status!=="fulfilled"&&e.status!=="rejected"&&t.then(Oo,Oo),e.status){case"fulfilled":return e.value;case"rejected":throw e.reason;default:throw t}},"trackThenable"),ki=i(t=>Sc(t)?Lh(t):bc(t),"use$1"),Po=!1,Ic=i((t,e,s=e)=>{const n=et().isNeverMounted,r=n?s():e();De&&!Po&&(!n||s===e)&&(Object.is(r,e())||(Po=!0));const[,o]=Ii(u=>u+1,0),a=Ds(0),l=Ci(()=>{try{if(Object.is(r,e()))return a.current=0,!1}catch{}return!0});return gt(()=>t(()=>{l()&&o()}),[t]),gt(()=>{if(l()){if(++a.current>50)throw a.current=0,new Error("Maximum update depth exceeded. The result of getSnapshot should be cached to avoid an infinite loop.");o()}},[t,r,e]),r},"useSyncExternalStore$1"),Tc=i((t,e)=>{},"useDebugValue$1"),Vh=0,Fh=i(()=>{const t=Ds(null);return t.current??=`:tap${Vh++}:`,t.current},"useId$1"),Cc=i((t,e,s)=>{const n=i(()=>{if(!t)return;const r=e();if(typeof t=="function"){const o=t(r);return typeof o=="function"?o:()=>t(null)}return t.current=r,()=>{t.current=null}},"attach");s==null?gt(n):gt(n,[...s,t])},"useImperativeHandle$2"),Uh=x.default;function qh(t){const e=(0,x.useRef)(t);return(0,x.useInsertionEffect)(()=>{e.current=t}),(0,x.useCallback)(((...s)=>e.current(...s)),[])}i(qh,"useReactEffectEventShim");var zh=Uh.useEffectEvent??qh,Le=i(()=>Tt()!==null,"inTap"),ke=x.default,ye=i(t=>Le()?_c(t):ke.useState(t),"useState$2"),Hh=i((t,e,s)=>Le()?Ii(t,e,s):ke.useReducer(t,e,s),"useReducer"),$e=i(t=>Le()?Ds(t):ke.useRef(t),"useRef$3"),qe=i((t,e)=>Le()?nr(t,e):ke.useMemo(t,e),"useMemo$4"),Wh=i((t,e)=>Le()?Ti(t,e):ke.useCallback(t,e),"useCallback$2"),be=i((t,e)=>Le()?gt(t,e):ke.useEffect(t,e),"useEffect$2"),Kh=i((t,e)=>Le()?gt(t,e):ke.useLayoutEffect(t,e),"useLayoutEffect$1"),Jh=i(t=>Le()?Ci(t):zh(t),"useEffectEvent"),ir=i((t,e,s)=>Le()?Ic(t,e,s):ke.useSyncExternalStore(t,e,s),"useSyncExternalStore"),Qh=i((t,e)=>Le()?Tc(t,e):ke.useDebugValue(t,e),"useDebugValue"),Os=i((t,e)=>Le()?wc(t,e):ke.useInsertionEffect(t,e),"useInsertionEffect"),Yh=i((t,e,s)=>Le()?Cc(t,e,s):ke.useImperativeHandle(t,e,s),"useImperativeHandle$1"),Gh=i(t=>ke.forwardRef(t),"forwardRef$1"),kc=i((t,e)=>ke.memo(t,e),"memo$1"),o_=ke.Fragment,a_=ke.Children,c_=ke.Suspense,ss=i(t=>{const e=ke.createContext(t);return hc(e,t),e},"createContext$1"),Ai=i(t=>Le()&&pc(t)?ki(t):ke.use(t),"use"),or=i(t=>Le()&&pc(t)?ki(t):ke.useContext(t),"useContext$1"),Ct=i((t,e)=>{if(t.length!==0){if(t.length===1)throw t[0];for(const s of t);throw new AggregateError(t,e)}},"throwAggregated"),Xh=50,Ke={schedulers:new Set,isScheduled:!1},nt=null,Vr=[],Ac=class{static{i(this,"UpdateScheduler")}_isDirty=!1;_task;constructor(t){this._task=t}get isDirty(){return this._isDirty}markDirty(){if(nt&&(nt.get(this)??0)>=Xh)throw new Error("Maximum update depth exceeded. This can happen when a resource repeatedly calls setState inside useEffect.");this._isDirty=!0,Ke.schedulers.add(this),Ec()}runTask(){nt?.set(this,(nt.get(this)??0)+1),this._isDirty=!1,this._task()}settle(){this._isDirty=!1}},Zh=[],l_=new Ac(()=>{const t=Zh.splice(0),e=[];for(const s of t)try{s()}catch(n){e.push(n)}Ct(e,"Errors occurred while running scheduled tasks")}),ef=i(t=>{if(nt!==null){Vr.push(t);return}t()},"scheduleNotify"),Ec=i(()=>{Ke.isScheduled||(Ke.isScheduled=!0,tf())},"scheduleFlush"),Fr=i(()=>{const t=nt;nt=new Map;const e=[];try{for(const s of Ke.schedulers)if(Ke.schedulers.delete(s),!!s.isDirty)try{s.runTask()}catch(n){e.push(n)}}finally{if(nt=t,Ke.schedulers.clear(),Ke.isScheduled=!1,nt===null)for(;Vr.length>0;)try{Vr.shift()()}catch(s){e.push(s)}}Ct(e,"Errors occurred during flushSync")},"flushScheduled"),tf=(()=>{if(typeof MessageChannel<"u"){let t=null,e;return()=>{if(!t){const s=new MessageChannel;s.port1.onmessage=()=>{t?.unref?.(),Fr()},t=s.port1,e=s.port2}t.ref?.(),e.postMessage(null)}}return()=>setTimeout(Fr,0)})(),sf=i(t=>{if(nt!==null)return t();const e=Ke;Ke={schedulers:new Set,isScheduled:!0};try{const s=t();return Fr(),s}finally{const s=Ke.schedulers;if(Ke=e,s.size>0){for(const n of s)Ke.schedulers.add(n);Ec()}}},"flushTapSync");function nf(t){if(t.length===0)return;let e;for(let s=0;s<t.length;s++)try{t[s]()}catch(n){(e??=[]).push(n)}e!==void 0&&Ct(e,"Errors during commit")}i(nf,"commitAllCallbacks");function rf(t){const e=t.setup,s=t.setupDeps,n=t.generation;let r;try{const o=e();if(o!==void 0&&typeof o!="function")throw new Error(`An effect function must either return a cleanup function or nothing. Received: ${typeof o}`);r=o}finally{t.generation===n?(t.cleanup=r,t.deps=s):r?.()}}i(rf,"setupEffect");var of=i(t=>t.setup===void 0?!1:t.deps===null||t.setupDeps===void 0?!0:!cn(t.deps,t.setupDeps),"effectNeedsRun");function Bo(t,e){let s;for(const n of t)of(n)&&(s??=[]).push(n);if(s===void 0)return e;for(const n of s)if(n.deps=null,n.cleanup!==void 0)try{n.cleanup()}catch(r){(e??=[]).push(r)}finally{n.cleanup=void 0}for(const n of s)try{rf(n)}catch(r){(e??=[]).push(r)}return e}i(Bo,"reconcileCells");function $o(t,e=!0){let s;t.insertionCells!==null&&e&&(s=Bo(t.insertionCells,s)),s=Bo(t.effectCells,s),s!==void 0&&Ct(s,"Errors during commit")}i($o,"reconcileEffects");function Lo(t){let e;for(const s of t)if(s.deps=null,s.cleanup)try{s.cleanup?.()}catch(n){(e??=[]).push(n)}finally{s.cleanup=void 0}e!==void 0&&Ct(e,"Errors during cleanup")}i(Lo,"cleanupCells");var af={useState:_c,useReducer:Ii,useRef:Ds,useMemo:nr,useCallback:Ti,useEffect:gt,useLayoutEffect:gt,useInsertionEffect:wc,useEffectEvent:Ci,useContext:bc,use:ki,useSyncExternalStore:Ic,useDebugValue:Tc,useId:Fh,useImperativeHandle:Cc,useMemoCache:uc},Vo=x.default,qt=Vo.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE??Vo.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,In=qt==null?null:"H"in qt?{get current(){return qt.H},set current(t){qt.H=t}}:"ReactCurrentDispatcher"in qt?{get current(){return qt.ReactCurrentDispatcher.current},set current(t){qt.ReactCurrentDispatcher.current=t}}:null;function cf(t){if(!In)return t();const e=In.current;In.current=af;try{return t()}finally{In.current=e}}i(cf,"withReactDispatcher");function Rc(t,e,s=void 0,n){return{hook:t,root:e,markDirty:s,devStrictMode:n,cells:[],effectCells:[],insertionCells:null,hostCells:null,contextDeps:null,wipContextDeps:null,wipCommitCallbacks:null,memoCache:{current:null,workInProgress:null,index:0},renderPendingCells:null,currentIndex:0,isFirstRender:!0,isMounted:!1,isReleased:!1,isNeverMounted:!0}}i(Rc,"createResourceFiber");function jc(t){t.wipCommitCallbacks=null,t.wipContextDeps=null,t.memoCache.workInProgress=null}i(jc,"discardWipRender");function As(t,e,s){try{e?(t.isReleased=!0,t.insertionCells!==null&&Lo(t.insertionCells)):t.isMounted&&(t.isMounted=!1,Lo(t.effectCells))}catch(n){(s??=[]).push(n)}if(t.hostCells!==null){for(const n of t.hostCells)if(n.fiber!==null&&(s=As(n.fiber,e,s)),n.fibers!==null)for(const{fiber:r}of n.fibers.values())s=As(r,e,s)}return s}i(As,"cleanupResourceFiber");function Ei(t,e=!0){let s;e&&(s=As(t,!0,s)),s=As(t,!1,s),s!==void 0&&Ct(s,"Errors during cleanup")}i(Ei,"unmountResourceFiber");function Mc(t){let e;for(const s of t)s.isReleased&&(e=As(s,!0,e));for(const s of t)e=As(s,!1,e);e!==void 0&&Ct(e,"Errors during cleanup")}i(Mc,"unmountResourceFibers");function St(t,e){if(t.renderPendingCells!==null){for(const r of t.renderPendingCells)r.renderQueue=null;t.renderPendingCells.clear()}let s=0,n;try{do{if(++s>25)throw new Error("Too many re-renders. tap limits the number of renders to prevent an infinite loop.");t.memoCache.index=0,Sh(t,()=>{n=cf(()=>t.hook(...e))})}while((t.renderPendingCells?.size??0)>0)}catch(r){throw jc(t),r}return xc(t),n}i(St,"renderResourceFiber");function Yt(t){const e=t.wipCommitCallbacks;t.wipCommitCallbacks=null;const s=De&&!t.isMounted&&t.devStrictMode==="root";t.isMounted=!0,t.isNeverMounted=!1,e!==null&&(t.contextDeps=t.wipContextDeps,yi(t.root),t.memoCache.workInProgress!==null&&(t.memoCache.current=t.memoCache.workInProgress,t.memoCache.workInProgress=null),nf(e)),s&&($o(t,e!==null),Ei(t,!1),t.isMounted=!0),$o(t,!s&&e!==null)}i(Yt,"commitResourceFiber");var lf=i(()=>{const t=et();return t.devStrictMode?t.isFirstRender?"child":"root":null},"getTapDevMode"),uf=i(()=>"child","child"),Fo=i(()=>null,"notDevMode"),df=i(()=>{if(!De)return Fo;const t=$e(0);return ye(()=>t.current++),t.current!==2?Fo:uf},"useDevStrictModeReact"),Nc=i(()=>Tt()?lf:df(),"useDevStrictMode"),hf=i(t=>{const e=et(),s=e.currentIndex++,n=e.cells[s];let r;if(n===void 0){e.isFirstRender||tr();const o=t instanceof Map;r={type:"host",fiber:o?null:t,fibers:o?t:null},e.cells[s]=r,(e.hostCells??=[]).push(r)}else n.type!=="host"&&sr(),r=n;return r.fibers===null&&r.fiber!==t&&an(e,()=>{r.fiber=t}),r},"useHostCell"),Uo=i((t,e)=>{if(!(t instanceof Map))return e(t);for(const{fiber:s}of t.values())e(s)},"forEachHostedFiber"),ff=i(t=>{t.isReleased=!1},"acquire"),mf=i(t=>{t.isReleased=!0,t.isMounted||queueMicrotask(()=>{t.isReleased&&Ei(t,!0)})},"release"),pf=i(t=>{Os(()=>(Uo(t,ff),()=>Uo(t,mf)),[t]),be(()=>()=>{Mc(t instanceof Map?Array.from(t.values(),({fiber:e})=>e):[t])},[t])},"useHostLifecycleReact"),ar=i(t=>Tt()?hf(t):(pf(t),null),"useHostLifecycle"),gf=i(()=>{const t=$e(0),e=t.current,s=et();return{version:e,markDirty:qe(()=>()=>{t.current++,s.markDirty?.()},[s]),root:s.root}},"useResourceFiberHostUtilsTap"),bf=i(()=>{const[t]=ye(()=>oc((r,o)=>{let a=!1;n(l=>(a=!r(),a?l:l+1)),a||s(()=>r()&&o())})),[e,s]=Hh((r,o)=>(Gs(t,r),r+(o()?1:0)),0),[,n]=ye(0);return Gs(t,e),{root:t,version:e,markDirty:void 0}},"useResourceFiberHostUtilsReact"),Ri=i(()=>{const t=Nc(),{root:e,version:s,markDirty:n}=Tt()?gf():bf();return{version:s,createFiber:Wh((r,o,a)=>Rc(r,e,a?()=>{a(),n?.()}:n,t()),[])}},"useResourceFiberHost"),xf=i(t=>t(),"useHostRoot"),vf=i(t=>{const e=[];for(const s of t)try{s()}catch(n){e.push(n)}Ct(e,"Errors occurred while notifying Tap root subscribers")},"notifySubscribers$1"),yf=i((t,e,s)=>{const n=new Ac(()=>l.handleUpdate()),r=[],o=oc((u,d)=>{r.length===0&&!u()||(r.push(d),n.markDirty())}),a=Rc(xf,o,void 0,e),l={scheduler:n,queue:r,fiber:a,subscribers:new Set,pendingHostRender:!1,isMounted:!1,hasRendered:!1,committedRender:t,context:new Map,value:void 0,applyQueue:i(()=>{Gs(o,o.committedVersion);for(const u of r)De&&a.devStrictMode&&u(),u();return Gs(o,o.committedVersion+o.changelog.length),r.length},"applyQueue"),publish:i((u,d)=>{n.isDirty||o.committedVersion!==d||l.value===u||(l.value=u,ef(()=>vf(l.subscribers)))},"publish"),finishFlush:i((u,d,h)=>{yi(o),r.splice(0,h),l.pendingHostRender=!1,r.length===0&&n.settle(),l.isMounted&&Yt(a),l.publish(u,d)},"finishFlush"),handleUpdate:i(()=>{const u=l.applyQueue();let d;try{De&&a.devStrictMode&&Lr(l.context,()=>St(a,[l.committedRender])),d=Lr(l.context,()=>St(a,[l.committedRender]))}catch(h){if(Gs(o,o.committedVersion),Sc(h)){const f=i(()=>{l.isMounted&&n.markDirty()},"retry");h.then(f,f);return}if(l.isMounted){l.pendingHostRender=!0,s(f=>f+1);return}throw h}if(n.isDirty)throw new Error("Scheduler is dirty, this should never happen");l.finishFlush(d,o.version,u)},"handleUpdate")};return l},"createInstance"),_f=i(t=>{const[,e]=ye(0),s=Nc(),n=$e(null),r=n.current??=yf(t,s(),e),o=jh(),a=r.scheduler.isDirty||r.pendingHostRender?r.applyQueue():0,l=Lr(o,()=>St(r.fiber,[t])),u={render:t,context:o,value:l,drained:a,wip:r.fiber.wipCommitCallbacks,version:r.fiber.root.version,processed:!1};return r.hasRendered||(r.hasRendered=!0,r.committedRender=t,r.context=o,r.value=l),be(()=>(r.isMounted=!0,()=>{r.isMounted=!1}),[r]),ar(r.fiber),be(()=>{if(u.processed){r.fiber.isMounted||(Yt(r.fiber),r.queue.length&&!r.scheduler.isDirty&&r.scheduler.markDirty());return}if(u.processed=!0,r.committedRender=u.render,r.context=u.context,r.fiber.wipCommitCallbacks!==u.wip){r.scheduler.isDirty||r.handleUpdate();return}if(u.drained>0&&r.fiber.root.version===u.version){r.finishFlush(u.value,u.version,u.drained);return}Yt(r.fiber),r.publish(u.value,u.version)}),qe(()=>({getValue:i(()=>r.value,"getValue"),subscribe:i(d=>(r.subscribers.add(d),()=>r.subscribers.delete(d)),"subscribe")}),[r])},"useTapRoot");function he(t){return(...e)=>({hook:t,args:e})}i(he,"resource");function Oe(t,e,s){return typeof e=="function"?(...n)=>Oe(t,e(...n)):s?{...e,key:t,deps:s}:{...e,key:t}}i(Oe,"withKey");var wf=i((t,e)=>({fiber:t,key:e,currentDeps:null,current:null,wipDeps:null,wip:null}),"createHostState");function kt(t){const{version:e,createFiber:s}=Ri(),n=$e(null),r=n.current??=wf(s(t.hook,t.key),t.key),o=qe(()=>r.fiber.hook===t.hook&&r.key===t.key&&!r.fiber.isReleased?r.fiber:s(t.hook,t.key),[r,t.hook,t.key,s]);r.wipDeps=r.currentDeps,r.wip=r.current;const a=[o,e,t.args];(Si(o)||r.currentDeps===null||!cn(r.currentDeps,a))&&(r.wipDeps=a,r.wip={value:St(o,t.args)});const l=r.wip,u=ar(o);return be(()=>{if(r.currentDeps=r.wipDeps,r.current=r.wip,r.fiber=o,r.key=t.key,Yt(o),u!==null)return()=>{u.fiber!==o&&Ei(o,!0)}},[r,u,o,t.key,l]),l.value}i(kt,"useResource");var Sf=i((t,e,s)=>{const n=$e(null),r=n.current??(n.current={wipDeps:null,wip:null,currentDeps:null,current:null});return r.wipDeps=r.currentDeps,r.wip=r.current,be(()=>{r.currentDeps=r.wipDeps,r.current=r.wip}),!s&&r.currentDeps&&cn(r.currentDeps,e)?r.current:(r.wipDeps=e,r.wip=t(),r.wip)},"useRenderMemo"),qo=i((t,e)=>{const s=t.get(e);s&&(s.isDirty=!0)},"markChildDirty"),If=i((t,e)=>!t.isDirty&&!Si(t.fiber)&&e!==void 0&&t.committedDeps!==void 0&&cn(t.committedDeps,e),"canReuse"),Tf=i(t=>{if(!vc())return!1;for(const{fiber:e}of t.values())if(Si(e))return!0;return!1},"hasAnyChildContextDepsChanged");function ji(t){const[e]=ye(()=>new Map),{version:s,createFiber:n}=Ri(),r=Tf(e);let o=!1;const a=Sf(()=>{const l=new Set,u=[];let d=0;for(let h=0;h<t.length;h++){const f=t[h],p=f.key;if(p===void 0)throw new Error(`useResources did not provide a key for array at index ${h}`);if(l.has(p))throw new Error(`Duplicate key ${p} in useResources`);l.add(p);let m=e.get(p);if(m)if(m.fiber.hook!==f.hook){const g=n(f.hook,f.key,()=>qo(e,p)),b=St(g,f.args);m.next={value:b,deps:f.deps,remount:g},o=!0}else if(If(m,f.deps))typeof m.next=="object"&&jc(m.fiber),m.fiber.contextDeps&&xc(m.fiber,m.fiber.contextDeps),m.next="skip";else{const g=St(m.fiber,f.args);m.next={value:g,deps:f.deps}}else{const g=n(f.hook,f.key,()=>qo(e,p));m={fiber:g,next:{value:St(g,f.args),deps:f.deps},isDirty:!1,committedDeps:void 0,committedValue:void 0},d++,e.set(p,m)}u.push(typeof m.next=="object"?m.next.value:m.committedValue)}if(e.size>u.length-d)for(const h of e.keys())l.has(h)||(e.get(h).next="delete",o=!0);return u},[t,e,n,s],r);return ar(e),be(()=>{if(o){const l=[];for(const[u,d]of e.entries()){const h=d.next;h==="delete"?(l.push(d.fiber),e.delete(u)):h!=="skip"&&h.remount&&(l.push(d.fiber),d.fiber=h.remount)}for(const u of l)u.isReleased=!0;Mc(l)}for(const l of e.values()){const u=l.next;u==="skip"?!l.fiber.isNeverMounted&&!l.fiber.isMounted&&Yt(l.fiber):u!=="delete"&&(Yt(l.fiber),l.committedDeps=u.deps,l.committedValue=u.value,l.isDirty=!1,l.next="skip")}},[a,e,o]),a}i(ji,"useResources");var Cf=i(t=>t(),"useHostRender"),Dc=i(t=>{const{createFiber:e}=Ri(),[s]=ye(()=>e(Cf,void 0)),n=St(s,[t]);ar(s);let r=!1;const o=i(()=>{r&&s.isMounted||(r=!0,Yt(s))},"effects");return be(o),{value:n,effects:o}},"useTapHost"),kf=i(()=>{const t=se(4),[e,s]=ye(Ef);let n;t[0]===Symbol.for("react.memo_cache_sentinel")?(n=i((u,d)=>(s(h=>{const f=Je(h.renderers);return f[u]=[...f[u]??[],d],{...h,renderers:f}}),()=>{s(h=>{const f=Je(h.renderers),p=f[u]?.filter(m=>m!==d)??[];return p.length>0?f[u]=p:delete f[u],{...h,renderers:f}})}),"t0"),t[0]=n):n=t[0];const r=n;let o;t[1]===Symbol.for("react.memo_cache_sentinel")?(o=i(u=>(s(d=>({...d,fallbacks:[...d.fallbacks,u]})),()=>{s(d=>({...d,fallbacks:d.fallbacks.filter(h=>h!==u)}))}),"t1"),t[1]=o):o=t[1];const a=o;let l;return t[2]!==e?(l={getState:i(()=>e,"getState"),setDataUI:r,setFallbackDataUI:a},t[2]=e,t[3]=l):l=t[3],l},"useDataRenderers"),Af=he(kf);function Ef(){return{renderers:Je(),fallbacks:[]}}i(Ef,"_temp$8");var dt=i((t,e,s)=>{const n=i(r=>{},"reportError");for(const r of t)try{const o=r(typeof e=="function"?e():e);o!==null&&(typeof o=="object"||typeof o=="function")&&"then"in o&&typeof o.then=="function"&&Promise.resolve(o).catch(n)}catch(o){n(o)}},"notifyEventListeners"),Oc=i(t=>t,"AuiConfig"),Rf=new Set(["$$typeof","nodeType","then","__v_raw","__v_isRef","__v_isReactive","__v_isReadonly","__v_isShallow","__v_skip"]),Gt=i((t,e)=>{if(t===Symbol.toStringTag)return e;if(typeof t!="symbol"){if(t==="toJSON")return()=>e;if(!Rf.has(t))return!1}},"handleIntrospectionProp"),tn=class{static{i(this,"BaseProxyHandler")}getOwnPropertyDescriptor(t,e){const s=this.get(t,e);if(s!==void 0)return{value:s,writable:!1,enumerable:!0,configurable:!0}}set(){return!1}setPrototypeOf(){return!1}defineProperty(){return!1}deleteProperty(){return!1}preventExtensions(){return!1}},Es=Symbol("assistant-ui.store.clientId"),Ur=Symbol("assistant-ui.store.instanceTag"),Pc=i((t,e)=>{const s=new Proxy((()=>{}),{apply:i(()=>(e(),s),"apply"),get:i((n,r)=>r==="source"?t.source:r==="query"?t.query:r==="name"?t.name:r===Es?Mi(e()):e()[r],"get"),has:i((n,r)=>r==="source"||r==="query"||r==="name"||r===Es||r in e(),"has"),ownKeys:i(()=>Reflect.ownKeys(e()),"ownKeys"),getOwnPropertyDescriptor:i((n,r)=>{if(!(typeof r=="symbol"||!(r in e())))return{value:e()[r],writable:!1,enumerable:!0,configurable:!0}},"getOwnPropertyDescriptor")});return s},"createClientAccessor"),Bc=i((t,e)=>{const s=i(()=>{throw new Error(t)},"fail");return new Proxy((()=>{}),{apply:s,get:i((n,r)=>{if(r==="source"||r==="query")return null;if(r==="name")return e;if(r===Es)return s();const o=Gt(r,"AssistantClientAccessor");return o!==!1?o:s()},"get"),has:i((n,r)=>r==="source"||r==="query"||r==="name","has"),ownKeys:i(()=>[],"ownKeys"),getOwnPropertyDescriptor:i(()=>{},"getOwnPropertyDescriptor")})},"createErrorClientAccessor"),cr=i(t=>t?.source!=null,"isScopeAvailable"),qr=i(t=>t?.source===null,"isScopeUnavailable"),Mi=i(t=>t[Es]??t,"getClientId"),jf=i(t=>t[Ur]??Mi(t),"getClientInstanceId"),Kt=i(t=>t==="optional"||t==="subscribe"||t==="on"||t==="__proto__"||typeof t=="symbol","isIgnoredClientKey"),zr=i(t=>{const e=[];for(const s in t)Kt(s)||e.push(s);return e},"clientScopeKeys"),Mf=class extends tn{static{i(this,"OptionalClientViewProxyHandler")}#e;constructor(t){super(),this.#e=t}get(t,e){const s=Gt(e,"OptionalAssistantClient");if(s!==!1)return s;if(Kt(e))return;const n=this.#e[e];return cr(n)?n:void 0}ownKeys(){return zr(this.#e)}has(t,e){return!Kt(e)&&e in this.#e}},$c=i(t=>new Proxy({},new Mf(t)),"createOptionalClientView"),zo=i(()=>()=>{},"NO_OP_SUBSCRIBE"),Nf="You are using a component or hook that requires an AuiProvider. Wrap your component in an <AuiProvider> component.",Df=class extends tn{static{i(this,"EmptyAssistantClientProxyHandler")}#e;#t;#s;#n;constructor(t,e,s){super(),this.#e=t,this.#t=e,this.#s=s}get(t,e){if(e==="subscribe"||e==="on")return zo;if(e==="optional")return this.#n??=$c(this.#s());const s=Gt(e,this.#e);return s!==!1?s:Bc(this.#t(String(e)),String(e))}ownKeys(){return["subscribe","on","optional"]}getOwnPropertyDescriptor(t,e){if(e!=="optional")return super.getOwnPropertyDescriptor(t,e);const s=this.get(t,e);if(s!==void 0)return{value:s,writable:!1,enumerable:!1,configurable:!0}}has(t,e){return e==="subscribe"||e==="on"||e==="optional"}},Of=i((t,e)=>{const s=new Proxy({},new Df(t,e,()=>s));return s},"createEmptyAssistantClient"),ys=Of("DefaultAssistantClient",()=>Nf),Pf=i(()=>new Proxy({},{get(t,e){const s=Gt(e,"AssistantClient");return s!==!1?s:Bc(`The current scope does not have a "${String(e)}" property.`,String(e))}}),"createRootAssistantClient"),Ni=ss(ys),Bf=i(()=>{},"NOOP_EFFECT"),Lc=new WeakMap,$f=i(t=>Lc.get(t)??Bf,"getTapEffects"),Lf=i((t,e)=>{Lc.set(t,e)},"setTapEffects"),Di=i(()=>or(Ni),"useAssistantContextValue"),Vf=i((t,e)=>rr(Ni,t,e),"useAssistantContextProvider"),Hr=Symbol("assistant-ui.transform-scopes");function Vc(t,e){const s=t;if(s[Hr])throw new Error("transformScopes is already attached to this resource");s[Hr]=e}i(Vc,"attachTransformScopes");function Ff(t){return t[Hr]}i(Ff,"getTransformScopes");var Fc=i(t=>typeof t=="string"?{scope:t.split(".")[0],event:t}:{scope:t.scope,event:t.event},"normalizeEventSelector"),Wr=Symbol("assistant-ui.store.clientIndex"),Uf=i(t=>t[Wr],"getClientIndex"),Uc=ss([]),Oi=i(()=>Ai(Uc),"useClientStack"),qf=i((t,e)=>{const s=se(3),n=Oi();let r;return s[0]!==t||s[1]!==n?(r=[...n,t],s[0]=t,s[1]=n,s[2]=r):r=s[2],rr(Uc,r,e)},"useClientStackProvider"),Fn=Symbol("assistant-ui.store.getValue"),Ho=i(t=>{const e=t[Fn];if(!e)throw new Error("Client scope contains a non-client resource. Ensure your Derived get() returns a client created with useClientResource(), not a plain resource.");return e.getState?.()},"getClientState"),Wo=new Map;function zf(t){let e=Wo.get(t);return e||(e=i(function(...s){if(!this||typeof this!="object")throw new Error(`Method "${String(t)}" called without proper context. This may indicate the function was called incorrectly.`);const n=this[Fn];if(!n)throw new Error(`Method "${String(t)}" called on invalid client proxy. Ensure you are calling this method on a valid client instance.`);const r=n[t];if(!r)throw new Error(`Method "${String(t)}" is not implemented.`);if(typeof r!="function")throw new Error(`"${String(t)}" is not a function.`);return r(...s)},"template"),Wo.set(t,e)),e}i(zf,"getOrCreateProxyFn");var Hf=class extends tn{static{i(this,"ClientProxyHandler")}boundFns;cachedReceiver;outputRef;tagRef;index;self;constructor(t,e,s){super(),this.outputRef=t,this.tagRef=e,this.index=s}get(t,e,s){if(e===Fn)return this.outputRef.current;if(e===Wr)return this.index;if(e===Es)return this.self;if(e===Ur)return this.tagRef.current;const n=Gt(e,"ClientProxy");if(n!==!1)return n;const r=this.outputRef.current[e];if(typeof r=="function"){if(s===void 0)return r;(!this.boundFns||this.cachedReceiver!==s)&&(this.boundFns=new Map,this.cachedReceiver=s);let o=this.boundFns.get(e);return o||(o=zf(e).bind(s),this.boundFns.set(e,o)),o}return r}ownKeys(){return Object.keys(this.outputRef.current)}has(t,e){return e===Fn||e===Wr||e===Es||e===Ur?!0:e in this.outputRef.current}},Rs=i(t=>{const e=$e(null),s=$e(null),n=qe(()=>({}),[t.hook,t.key]),r=Oi().length,o=qe(()=>{const l=new Hf(e,s,r),u=new Proxy({},l);return l.self=u,u},[r]),a=qf(o,i(function(){return kt(t)},"WithClientStack"));return e.current||(e.current=a,s.current=n),be(()=>{e.current=a,s.current=n}),{methods:o,state:a.getState?.(),key:t.key}},"useClientResource"),qc=he(Rs),Un=0,Kr=0,Wf=i(t=>{Un++,Kr++;try{return t()}finally{Kr--,Un++}},"withBatchedStateReads"),Kf=i(t=>{let e;const s=new Map;let n=-1;const r=i(l=>{if(Kr===0)return Ho(t[l]());if(n!==Un)s.clear(),n=Un;else if(s.has(l))return s.get(l);const u=Ho(t[l]());return s.set(l,u),u},"readScopeState");class o extends tn{static{i(this,"OptionalAssistantStateProxyHandler")}get(u,d){const h=Gt(d,"OptionalAssistantState");if(h!==!1)return h;const f=d;if(!Kt(f)&&cr(t[f]))return r(f)}ownKeys(){return zr(t)}has(u,d){return!Kt(d)&&d in t}}class a extends tn{static{i(this,"ProxiedAssistantStateProxyHandler")}get(u,d){const h=Gt(d,"AssistantState");if(h!==!1)return h;if(d==="optional")return e??=new Proxy({},new o);const f=d;if(!Kt(f))return r(f)}ownKeys(){return[...zr(t),"optional"]}has(u,d){return d==="optional"||!Kt(d)&&d in t}}return new Proxy({},new a)},"createProxiedAssistantState"),Ko=new WeakMap,Jf=i(t=>{let e=Ko.get(t);return e||(e=Kf(t),Ko.set(t,e)),e},"getProxiedAssistantState"),zc=ss(null),Jo=Symbol("aui.scope-effect-unapplied"),Qf=i((t,e)=>rr(zc,t,e),"useAssistantTapContextProvider"),Pi=i(()=>{const t=Ai(zc);if(!t)throw new Error("AssistantTapContext is not available");return t},"useAssistantTapContext"),Hc=i(()=>Pi().clientRef,"useAssistantClientRef"),Wc=i((t,e,s)=>{const n=se(8),{clientRef:r}=Pi();let o;n[0]!==r||n[1]!==e||n[2]!==t?(o=i(()=>{const l=r.current;if(l===null)throw new Error("useAssistantScopeEffect ran before the client was committed. This is likely an internal bug in assistant-ui.");const u=i(()=>{const m=r.current?.[t];return m!==void 0&&cr(m)?jf(m):void 0},"identityOf");let d=Jo,h;const f=i(m=>{if(h?.(),h=void 0,d=Jo,m!==void 0){const g=e();h=typeof g=="function"?g:void 0}d=m},"apply");f(u());const p=l.subscribe(()=>{const m=u();m!==d&&f(m)});return()=>{p(),h?.()}},"t0"),n[0]=r,n[1]=e,n[2]=t,n[3]=o):o=n[3];let a;n[4]!==r||n[5]!==s||n[6]!==t?(a=[r,t,...s],n[4]=r,n[5]=s,n[6]=t,n[7]=a):a=n[7],be(o,a)},"useAssistantScopeEffect"),Ps=i(()=>{const t=se(3),{emit:e}=Pi(),s=Oi();let n;return t[0]!==s||t[1]!==e?(n=i((r,o)=>{e(r,o,s)},"t0"),t[0]=s,t[1]=e,t[2]=n):n=t[2],Jh(n)},"useAssistantEmit"),Jr=ss(void 0),Kc=i((t,e)=>{const s=Ai(Jr);return rr(Jr,t??s,e)},"useDestroySignalProvider"),Xt=i((t,e)=>{if(Array.isArray(t)!==Array.isArray(e))return!1;if(Array.isArray(t)&&Array.isArray(e)){if(t.length!==e.length)return!1;for(let n=0;n<t.length;n++)if(!Object.is(t[n],e[n]))return!1;return!0}const s=Object.keys(t);return s.length===Object.keys(e).length&&s.every(n=>Object.hasOwn(e,n)&&Object.is(t[n],e[n]))},"shallowEqual"),Jc=Symbol("assistant-ui.derived-hook"),Yf=i(t=>{t[Jc]=!0},"markDerivedHook"),Gf=i(t=>t[Jc]===!0,"isDerivedHook"),Qo=i(t=>{},"reportListenerError"),Yo=i((t,e,s)=>{try{const n=t(e,s);n!==null&&(typeof n=="object"||typeof n=="function")&&typeof n.then=="function"&&Promise.resolve(n).catch(Qo)}catch(n){Qo(n)}},"invokeListener"),Xf=i(()=>{const t=new Map,e=new Set,s=new Set;return{on(n,r){const o=r;if(n==="*")return e.add(o),()=>e.delete(o);let a=t.get(n);return a||(a=new Set,t.set(n,a)),a.add(o),()=>{a.delete(o),a.size===0&&t.get(n)===a&&t.delete(n)}},emit(n,r,o){!t.has(n)&&e.size===0||queueMicrotask(()=>{const a=t.get(n);if(a)for(const l of a)Yo(l,r,o);if(e.size>0){const l={event:n,payload:r};for(const u of e)Yo(u,l,o)}})},subscribe(n){return s.add(n),()=>s.delete(n)},notifySubscribers(){Wf(()=>{for(const n of s)try{n()}catch{}})}}},"createNotificationManager"),Qc=i(()=>ye(Xf)[0],"useNotificationManager"),Yc=i(()=>{const[t]=ye(()=>({controller:new AbortController,generation:0}));return Os(()=>{const e=++t.generation;return()=>queueMicrotask(()=>{t.generation===e&&t.controller.abort()})},[t]),t.controller.signal},"useHostDestroySignal"),Qr=i(t=>{const e=qe(()=>({}),[]);return e.v!==void 0&&Xt(e.v,t)?e.v:(e.v=t,t)},"useShallowStable"),Gc=(()=>{try{return!1}catch{return!1}})(),Zf=i((t,e)=>{const s={...t},n=new Set;let r=!0;for(;r;){r=!1;for(const o of Object.values(s)){if(n.has(o.hook))continue;n.add(o.hook);const a=Ff(o.hook);if(a){a(s,e),r=!0;break}}}return s},"applyTransformScopes"),lr=i(t=>Gf(t.hook),"isDerivedElement"),em=i(t=>{if(!lr(t))return{source:"root",query:{}};const e=t.args[0];return{source:e.source,query:e.query??{}}},"metaOf"),Yr=Symbol.for("aui.event-receiver-ref"),Xc=i((t,e)=>{const s=t===ys?Pf():t,n=Object.create(s);Object.assign(n,e);let r;return Object.defineProperty(n,"optional",{get:i(()=>r??=$c(n),"get"),enumerable:!1}),n},"createClientObject"),tm=i(({notifications:t,clientRef:e})=>qe(()=>({subscribe:t.subscribe,on:i(function(s,n){if(!this)throw new Error("const { on } = useAui() is not supported. Use aui.on() instead.");const{scope:r,event:o}=Fc(s),a=s[Yr];if(r!=="*"&&!a&&qr(this[r]))throw new Error(`Scope "${r}" is not available. Use { scope: "*", event: "${o}" } to listen globally.`);const l=t.on(o,(d,h)=>{if(r==="*")return n(d);const f=((a??e).current??this)[r];if(!cr(f))return;const p=Mi(f);if(p===h[Uf(p)])return n(d)});if(r!=="*"){if(a){if(e.parent===ys)return l}else if(qr(e.parent[r]))return l}const u=e.parent.on(s,n);return()=>{l(),u()}},"on")}),[t,e]),"useClientFields"),Zc=i(t=>{const e=se(5);let s;e[0]!==t?(s=em(t),e[0]=t,e[1]=s):s=e[1];const{source:n,query:r}=s,o=Qr(r);let a;return e[2]!==n||e[3]!==o?(a={source:n,query:o},e[2]=n,e[3]=o,e[4]=a):a=e[4],Qr(a)},"useScopeMeta"),sm=i((t,e)=>{const s=se(3);let n;return s[0]!==e||s[1]!==t?(n=e?t:qc(t),s[0]=e,s[1]=t,s[2]=n):n=s[2],kt(n)},"useScopeValue"),nm=i((t,e)=>{const s=Di(),n=lr(e),r=sm(e,n),o=n?r:r.methods,a=Zc(e),l=qe(()=>Pc({name:t,...a},()=>o),[t,a,o]);return s[t]=l,l},"useScopeMount"),rm=he(nm),im=i(t=>{const e=se(2);let s;return e[0]!==t?(s=t.map(hm),e[0]=t,e[1]=s):s=e[1],ji(s)},"useScopeMounts"),el=i((t,e)=>{const s=Qr(e),n=qe(()=>({}),[]);return n.deps!==s&&(n.deps=s,n.client=t),n.client},"useCommittedClient"),tl=i(({parent:t,entries:e,clientRef:s,notifications:n})=>{const r=tm({notifications:n,clientRef:s}),o=Xc(t,r),a=qe(()=>({clientRef:s,emit:n.emit}),[s,n.emit]),l=Qf(a,i(function(){return Vf(o,i(function(){return im(e)},"WithBuildingClient"))},"WithTapContext"));return{client:el(o,[t,...l])}},"useAuiRoot"),om=i(({parent:t,entries:e,destroySignal:s})=>{const n=$e({parent:t,current:null}).current,{value:r,effects:o}=Dc(i(function(){const l=Qc(),{client:u}=Kc(s,i(function(){return tl({parent:t,entries:e,clientRef:n,notifications:l})},"useOwnedRoot"));return be(()=>t.subscribe(l.notifySubscribers),[t,l]),be(()=>l.notifySubscribers()),u},"AssistantClientHost"));return Os(()=>{n.parent=t,n.current=r},[r,t,n]),{client:r,effects:o}},"useHostedAssistantClient"),am=i(({parent:t,entries:e,destroySignal:s})=>{const n=$e({parent:t,current:null}).current,{value:r,effects:o}=Dc(i(function(){const l=Qc(),u=_f(i(function(){return Kc(s,i(function(){return tl({parent:t,entries:e,clientRef:n,notifications:l})},"useOwnedRoot"))},"AuiRoot")),d=ir(u.subscribe,()=>u.getValue().client,()=>u.getValue().client);return be(()=>{const h=i(()=>sf(()=>{n.current=u.getValue().client,l.notifySubscribers()}),"notify"),f=u.subscribe(h),p=t.subscribe(h);return()=>{f(),p()}},[u,t,l]),d},"LegacyAssistantClientHost"));return Os(()=>{n.parent=t,n.current=r},[r,t,n]),{client:r,effects:o}},"useTapRootAssistantClient"),cm=i((t,e,s,n)=>{const{get:r}=n.args[0],o=ir(t.subscribe,()=>r(t),()=>r(t)),a=Zc(n),l=qe(()=>Pc({name:s,...a},()=>o),[s,a,o]);return e[s]=l,l},"useDerivedScopeMount"),lm=i((t,e)=>{if(Gc){const[l]=ye(()=>e.map(([h])=>h).join(",")),u=e.find(([,h])=>!lr(h));if(u)throw new Error(`Scope "${u[0]}" is a root scope but this useAui mounted derived-only; remount with a new key to change scope kinds.`);const d=e.map(([h])=>h).join(",");if(d!==l)throw new Error(`A derived-only config mounted scopes [${l}] but now has [${d}]; remount with a new key to change the scope set.`)}const s=$e({parent:t,current:null}).current,n=i(function(l,u){if(!this)throw new Error("const { on } = useAui() is not supported. Use aui.on() instead.");const{scope:d,event:h}=Fc(l);if(d==="*")return t.on(l,u);const f=l[Yr];if(!f&&qr(this[d]))throw new Error(`Scope "${d}" is not available. Use { scope: "*", event: "${h}" } to listen globally.`);return t.on({scope:d,event:h,[Yr]:f??s},u)},"on"),r=Xc(t,{subscribe:t.subscribe,on:n}),o=e.map(([l,u])=>cm(t,r,l,u)),a=el(r,[t,...o]);return Os(()=>{s.parent=t,s.current=a},[a,t,s]),a},"useDerivedOnlyClient"),um=i((t,e)=>{const s=se(8);let n;s[0]!==e||s[1]!==t?(n=Object.entries(Zf(e,t)),s[0]=e,s[1]=t,s[2]=n):n=s[2];const r=n;let o;s[3]!==r?(o=i(()=>r.length===0||r.some(fm),"t1"),s[3]=r,s[4]=o):o=s[4];const[a]=ye(o);let l;return s[5]!==r||s[6]!==a?(l={entries:r,rooted:a},s[5]=r,s[6]=a,s[7]=l):l=s[7],l},"useScopeEntries"),sl=i((t,e,s,n)=>{const{entries:r,rooted:o}=um(t,e);return o?s({parent:t,entries:r,destroySignal:n}):{client:lm(t,r)}},"useConfiguredAuiImpl"),dm=i((t,e,s)=>sl(t,e,om,s),"useConfiguredAui");function Bi(t){const e=Di();if(t){const s=Yc(),{client:n,effects:r}=sl(e,t,am,s);return r&&Lf(n,r),n}return e}i(Bi,"useAui");function hm(t){const[e,s]=t;return Oe(e,rm(e,s))}i(hm,"_temp$7");function fm(t){const[,e]=t;return!lr(e)}i(fm,"_temp2$6");var mm=i(t=>{const e=se(6),s=Bi();let n;e[0]!==s?(n=Jf(s),e[0]=s,e[1]=n):n=e[1];const r=n;let o,a;e[2]!==r||e[3]!==t?(o=i(()=>t(r),"t1"),a=i(()=>t(r),"t2"),e[2]=r,e[3]=t,e[4]=o,e[5]=a):(o=e[4],a=e[5]);const l=ir(s.subscribe,o,a);if(typeof l=="object"&&l!==null&&(l===r||l===r.optional))throw new Error("You tried to return the entire AssistantState. This is not supported due to technical limitations.");return Qh(l),l},"useAuiState"),nl=i(t=>{const e=se(3),{get:s}=t,n=Bi();let r;return e[0]!==n||e[1]!==s?(r=i(()=>s(n),"t1"),e[0]=n,e[1]=s,e[2]=r):r=e[2],mm(r)},"useDerived");Yf(nl);var Tn=he(nl),rl=i(t=>{if(t.key===void 0)throw new Error("useClientLookup: Element has no key");return t.key},"getElementKey");function it(t){const e=se(12);let s;e[0]!==t?(s=t.map(bm),e[0]=t,e[1]=s):s=e[1];const n=ji(s);let r;e[2]!==t?(r=t.reduce(gm,Object.create(null)),e[2]=t,e[3]=r):r=e[3];const o=r;let a;e[4]!==n?(a=n.map(pm),e[4]=n,e[5]=a):a=e[5];const l=a;let u;e[6]!==o||e[7]!==n?(u=i(h=>{if("index"in h){if(h.index<0||h.index>=n.length)throw new Error(`useClientLookup: index ${h.index} out of bounds (length: ${n.length}) (ignore if recovered)`);return n[h.index].methods}const f=o[h.key];if(f===void 0)throw new Error(`useClientLookup: key "${h.key}" not found (ignore if recovered)`);return n[f].methods},"t3"),e[6]=o,e[7]=n,e[8]=u):u=e[8];let d;return e[9]!==l||e[10]!==u?(d={state:l,get:u},e[9]=l,e[10]=u,e[11]=d):d=e[11],d}i(it,"useClientLookup");function pm(t){return t.state}i(pm,"_temp3$3");function gm(t,e,s){return t[rl(e)]=s,t}i(gm,"_temp2$5");function bm(t){return Oe(rl(t),qc(t),t.deps)}i(bm,"_temp$6");var Xe=Symbol("skip-update"),ht=i((t,...e)=>{const s=[];for(const n of t)try{n(...e)}catch(r){s.push(r)}if(s.length===1)throw s[0];if(s.length>1){for(const n of s);throw new AggregateError(s)}},"notifySubscribers"),Bs=i(t=>{ht(t)},"runCleanups"),$i=i((t,e)=>{try{t()}catch{}throw e},"rollbackSubscription"),il=i((t,e)=>t===void 0||e===void 0?t===e:Xt(t,e),"shallowEqualOrUndefined"),Li=class{static{i(this,"BaseSubscribable")}_subscribers=new Set;subscribe(t){return this._subscribers.add(t),()=>this._subscribers.delete(t)}waitForUpdate(){return new Promise(t=>{const e=this.subscribe(()=>{e(),t()})})}_notifySubscribers(){ht(this._subscribers)}},ur=class{static{i(this,"BaseSubject")}_subscriptions=new Set;_connection;get isConnected(){return!!this._connection}notifySubscribers(t,e){if(e){dt(this._subscriptions,t,e);return}ht(this._subscriptions,t)}_updateConnection(){if(this._subscriptions.size>0){if(this._connection)return;this._connection=this._connect()}else{const t=this._connection;this._connection=void 0,t?.()}}subscribe(t){this._subscriptions.add(t);try{this._updateConnection()}catch(e){throw this._subscriptions.delete(t),e}return()=>{this._subscriptions.delete(t),this._updateConnection()}}},Ge=class extends ur{static{i(this,"ShallowMemoizeSubject")}get path(){return this.binding.path}binding;constructor(t){super(),this.binding=t;const e=t.getState();if(e===Xe)throw new Error("Entry not available in the store");this._previousState=e}_previousState;getState=i(()=>(this.isConnected||this._syncState(),this._previousState),"getState");_syncState(){const t=this.binding.getState();return t===Xe||il(t,this._previousState)?!1:(this._previousState=t,!0)}_connect(){const t=i(()=>{this._syncState()&&this.notifySubscribers()},"callback"),e=this.binding.subscribe(t);try{return this._syncState(),e}catch(s){throw $i(e,s)}}},Vi=class extends ur{static{i(this,"LazyMemoizeSubject")}get path(){return this.binding.path}binding;constructor(t){super(),this.binding=t}_previousStateDirty=!0;_previousState;getState=i(()=>{if(!this.isConnected||this._previousStateDirty){const t=this.binding.getState();t!==Xe&&(this._previousState===void 0||!il(t,this._previousState))&&(this._previousState=t),this._previousStateDirty=!1}if(this._previousState===void 0)throw new Error("Entry not available in the store");return this._previousState},"getState");_connect(){const t=i(()=>{this._previousStateDirty=!0,this.notifySubscribers()},"callback"),e=this.binding.subscribe(t);return this._previousStateDirty=!0,e}},qn=class extends ur{static{i(this,"NestedSubscriptionSubject")}get path(){return this.binding.path}binding;constructor(t){super(),this.binding=t}getState(){return this.binding.getState()}outerSubscribe(t){return this.binding.subscribe(t)}_connect(){const t=i(()=>{this.notifySubscribers()},"callback");let e=this.binding.getState(),s=e?.subscribe(t);const n=i(()=>{const o=this.binding.getState();if(o===e)return;e=o;const a=s;s=void 0;try{a?.()}finally{s=o?.subscribe(t),t()}},"onRuntimeUpdate");let r;try{r=this.outerSubscribe(n)}catch(o){throw $i(()=>s?.(),o)}return()=>Bs([()=>r(),()=>s?.()])}},ol=class extends ur{static{i(this,"EventSubscriptionSubject")}config;constructor(t){super(),this.config=t}getState(){return this.config.binding.getState()}outerSubscribe(t){return this.config.binding.subscribe(t)}_connect(){const t=`Runtime event "${this.config.event}"`,e=i(a=>{this.notifySubscribers(a,t)},"callback");let s=this.config.binding.getState(),n=s?.unstable_on(this.config.event,e);const r=i(()=>{const a=this.config.binding.getState();if(a===s)return;s=a;const l=n;n=void 0;try{l?.()}finally{n=a?.unstable_on(this.config.event,e),this.config.notifyOnRebind&&e({})}},"onRuntimeUpdate");let o;try{o=this.outerSubscribe(r)}catch(a){throw $i(()=>n?.(),a)}return()=>Bs([()=>o(),()=>n?.()])}},Ir=i(t=>{if(!t.overwrite)return t;const{overwrite:e,...s}=t;return s},"stripOverwrite"),xm=i(t=>{const e=Array.from(t).map(n=>n.getModelContext()).sort((n,r)=>(r.priority??0)-(n.priority??0)),s=Je();return e.reduce((n,r)=>{const o=r.priority??0;if(r.system&&(n.system?n.system+=`
|
|
2
2
|
|
|
3
3
|
${r.system}`:n.system=r.system),r.tools)for(const[a,l]of Object.entries(r.tools)){const u=n.tools!==void 0&&Object.hasOwn(n.tools,a)?n.tools[a]:void 0;if(u&&u!==l){const d=s[a];if(d===o){if(!l.overwrite)throw new Error(`You tried to define a tool with the name ${a}, but it already exists.`);n.tools[a]=Ir(l);continue}const h=d>o?u:l,f=d>o?l:u;n.tools[a]=Ir({...f,...h}),s[a]=Math.max(d,o);continue}n.tools||(n.tools=Je()),n.tools[a]=Ir(l),Object.hasOwn(s,a)||(s[a]=o)}return r.config&&(n.config={...r.config,...n.config}),r.callSettings&&(n.callSettings={...r.callSettings,...n.callSettings}),r.unstable_composerMetadata&&(n.unstable_composerMetadata={...r.unstable_composerMetadata,...n.unstable_composerMetadata}),n},{})},"mergeModelContexts"),al=class{static{i(this,"CompositeContextProvider")}_providers=new Map;_providerUnsubscribes=new Map;getModelContext(){return xm(new Set(this._providers.values()))}registerModelContextProvider(t){const e=Symbol();this._providers.set(e,t);let s;try{s=t.subscribe?.(()=>{this.notifySubscribers()})}catch(r){this._providers.delete(e);try{this.notifySubscribers()}catch{}throw r}this._providerUnsubscribes.set(e,s),this.notifySubscribers();let n=!1;return()=>{if(n)return;n=!0,this._providers.delete(e);const r=this._providerUnsubscribes.get(e);this._providerUnsubscribes.delete(e);let o=!1,a;const l=i(u=>{try{u()}catch(d){o||(o=!0,a=d)}},"runCleanup");if(r&&l(r),l(()=>this.notifySubscribers()),o)throw a}}_subscribers=new Set;notifySubscribers(){ht(this._subscribers)}subscribe(t){return this._subscribers.add(t),()=>{this._subscribers.delete(t)}}},vm=i((t,e)=>t.length===e.length&&t.every((s,n)=>Object.is(s,e[n])),"depsEqual"),Go=i((t,e)=>{const[s]=ye(()=>({pending:void 0}));be(()=>{const n=s.pending;s.pending=void 0;let r;return n!==void 0&&vm(n.deps,e)?r=n:(n?.cleanup?.(),r={deps:e,cleanup:t()}),()=>{s.pending=r,queueMicrotask(()=>{s.pending===r&&(s.pending=void 0,r.cleanup?.())})}},e)},"useReplaySafeEffect"),Gr=[],ym={modelName:void 0,toolNames:Gr},_m=i((t,e)=>t===e||Xt(t,e),"toolNamesEqual"),Cn=i((t,e)=>{const s=t.getModelContext(),n=s.config?.modelName,r=s.tools?Object.keys(s.tools).sort():Gr,o=r.length?r:Gr;return n===e.modelName&&_m(o,e.toolNames)?e:{modelName:n,toolNames:o}},"deriveState"),wm=i(()=>{const t=se(11);let e;t[0]===Symbol.for("react.memo_cache_sentinel")?(e=new al,t[0]=e):e=t[0];const s=e;let n;t[1]===Symbol.for("react.memo_cache_sentinel")?(n=i(()=>Cn(s,ym),"t1"),t[1]=n):n=t[1];const[r,o]=ye(n);let a,l;t[2]===Symbol.for("react.memo_cache_sentinel")?(a=i(()=>(o(m=>Cn(s,m)),s.subscribe(()=>{o(m=>Cn(s,m))})),"t2"),l=[s],t[2]=a,t[3]=l):(a=t[2],l=t[3]),be(a,l);let u;t[4]!==r?(u=i(()=>Cn(s,r),"t4"),t[4]=r,t[5]=u):u=t[5];let d,h,f;t[6]===Symbol.for("react.memo_cache_sentinel")?(d=i(()=>s.getModelContext(),"t5"),h=i(m=>s.subscribe(m),"t6"),f=i(m=>s.registerModelContextProvider(m),"t7"),t[6]=d,t[7]=h,t[8]=f):(d=t[6],h=t[7],f=t[8]);let p;return t[9]!==u?(p={getState:u,getModelContext:d,subscribe:h,register:f},t[9]=u,t[10]=p):p=t[10],p},"useModelContext"),cl=he(wm),Sm=i((t,e)=>{if(!(e.status?.type==="running"||e.status?.type==="requires-action")){const n=t.complete;return typeof n!="function"?n??null:n({args:e.args,result:e.result})}const s=t.running;return typeof s!="function"?s??null:s({args:e.args})},"resolveToolCallText"),Im=i(t=>t.display!==void 0?t.display==="standalone":t.type==="human","isStandaloneToolDisplay"),Tm=i(t=>i(function(s){return Sm(t,s)},"ToolCallTextComponent"),"makeToolCallTextComponent"),ll=i(t=>{const e=se(16),{toolkit:s,mcpApp:n}=t;let r;e[0]!==n?(r=n?[Oe("mcpApp",n)]:[],e[0]=n,e[1]=r):r=e[1];const o=ji(r)[0],[a,l]=ye(km);let u;e[2]!==o||e[3]!==a?(u={toolUIs:a,mcpApp:o},e[2]=o,e[3]=a,e[4]=u):u=e[4];const d=u,h=Hc();let f;e[5]===Symbol.for("react.memo_cache_sentinel")?(f=i((v,y,T)=>{const E={render:y,renderText:T?.renderText,standalone:T?.standalone??!1};return l(C=>{const N=Je(C);return N[v]=[...N[v]??[],E],N}),()=>{l(C=>{const N=C[v]?.filter(M=>M!==E)??[],q=Je(C);return N.length>0?(q[v]=N,q):(delete q[v],q)})}},"t3"),e[5]=f):f=e[5];const p=f;let m,g;e[6]!==s?(m=i(()=>{if(!s)return;const v=[];for(const[y,T]of Object.entries(s)){const E="render"in T?T.render:void 0,C="renderText"in T?T.renderText:void 0,N=E??(C?Tm(C):void 0);N&&v.push(p(y,N,{standalone:Im(T),renderText:C}))}return()=>Bs(v)},"t4"),g=[s,p],e[6]=s,e[7]=m,e[8]=g):(m=e[7],g=e[8]),be(m,g);let b;e[9]!==h||e[10]!==s?(b=i(()=>{if(!s)return;const v=Object.entries(s).reduce(Am,Je());return h.current.modelContext().register({getModelContext:i(()=>({tools:v}),"getModelContext")})},"t6"),e[9]=h,e[10]=s,e[11]=b):b=e[11];let S;e[12]!==s?(S=[s],e[12]=s,e[13]=S):S=e[13],Wc("modelContext",b,S);let w;return e[14]!==d?(w={getState:i(()=>d,"getState"),setToolUI:p},e[14]=d,e[15]=w):w=e[15],w},"useTools"),Cm=he(ll);Vc(ll,(t,e)=>{!t.modelContext&&e.modelContext.source===null&&(t.modelContext=cl())});function km(){return Je()}i(km,"_temp$5");function Am(t,e){const[s,n]=e;if(n.type==="mcp")return t;const{display:r,render:o,renderText:a,...l}=n;return t[s]=l,t}i(Am,"_temp2$4");var ns=i(t=>ir(t.subscribe,t.getState,t.getServerSnapshot),"useSubscribable"),Em=Symbol.for("assistant-ui.silent-runtime-action"),Rm=i(t=>typeof t=="object"&&t!==null&&Em in t,"isSilentRuntimeAction"),ul=i((t,e)=>{const s=e();return s.catch(n=>{Rm(n)}),s},"handleRuntimeAction"),jm=i(t=>{const e=se(9),{runtime:s}=t,n=ns(s);let r;e[0]!==n?(r=i(()=>n,"t1"),e[0]=n,e[1]=r):r=e[1];let o,a;e[2]!==s?(o=i(()=>ul("attachment remove",s.remove),"t2"),a=i(()=>s,"t3"),e[2]=s,e[3]=o,e[4]=a):(o=e[3],a=e[4]);let l;return e[5]!==r||e[6]!==o||e[7]!==a?(l={getState:r,remove:o,__internal_getRuntime:a},e[5]=r,e[6]=o,e[7]=a,e[8]=l):l=e[8],l},"useAttachmentRuntimeClient"),dl=he(jm),Mm=i(t=>{const e=se(5),{runtime:s,index:n}=t;let r;e[0]!==n||e[1]!==s?(r=s.getAttachmentByIndex(n),e[0]=n,e[1]=s,e[2]=r):r=e[2];const o=r;let a;return e[3]!==o?(a=dl({runtime:o}),e[3]=o,e[4]=a):a=e[4],kt(a)},"useComposerAttachmentClientByIndex"),Nm=he(Mm),Dm=i(({item:t,onMove:e,onRemove:s})=>({getState:i(()=>t,"getState"),steer:i(()=>e({lane:"steer",insertAfter:null}),"steer"),move:e,remove:s}),"useQueueItemClient"),Om=he(Dm),Pm=i(t=>{const e=se(65),{threadIdRef:s,messageIdRef:n,runtime:r,isSuggestion:o}=t,a=ns(r),l=Ps(),u=$e(!1);let d,h;e[0]!==l||e[1]!==n||e[2]!==r||e[3]!==s?(d=i(()=>{const k=[],P=r.unstable_on("send",H=>{const Y=u.current;u.current=!1,l("composer.send",{threadId:s.current,...n&&{messageId:n.current},chars:H.chars,attachments:H.attachments,...Y?{suggestion:!0}:void 0})});k.push(P);const L=r.unstable_on("attachmentAdd",H=>{l("composer.attachmentAdd",{threadId:s.current,...n&&{messageId:n.current},...H.contentType?{contentType:H.contentType}:void 0})});return k.push(L),k.push(r.unstable_on("attachmentAddError",H=>{l("composer.attachmentAddError",{threadId:s.current,...n&&{messageId:n.current},...H.attachmentId&&{attachmentId:H.attachmentId},reason:H.reason,message:H.message,...H.contentType?{contentType:H.contentType}:void 0})})),()=>Bs(k)},"t1"),h=[r,l,s,n],e[0]=l,e[1]=n,e[2]=r,e[3]=s,e[4]=d,e[5]=h):(d=e[4],h=e[5]),be(d,h);let f;if(e[6]!==r||e[7]!==a.attachments){let k;e[9]!==r?(k=i((P,L)=>Oe(P.id,Nm({runtime:r,index:L}),[r,L]),"t4"),e[9]=r,e[10]=k):k=e[10],f=a.attachments.map(k),e[6]=r,e[7]=a.attachments,e[8]=f}else f=e[8];const p=it(f),m=a.queue;let g;if(e[11]!==m||e[12]!==r){let k;e[14]!==r?(k=i(P=>Oe(P.id,Om({item:P,onMove:i(L=>r.moveQueueItem(P.id,L),"onMove"),onRemove:i(()=>r.removeQueueItem(P.id),"onRemove")})),"t5"),e[14]=r,e[15]=k):k=e[15],g=m.map(k),e[11]=m,e[12]=r,e[13]=g}else g=e[13];const b=it(g),S=a.type??"thread";let w;e[16]!==p.state||e[17]!==m||e[18]!==a.attachmentAccept||e[19]!==a.canCancel||e[20]!==a.canSend||e[21]!==a.dictation||e[22]!==a.inTransit||e[23]!==a.isEditing||e[24]!==a.isEmpty||e[25]!==a.quote||e[26]!==a.role||e[27]!==a.runConfig||e[28]!==a.submission||e[29]!==a.text||e[30]!==S?(w={text:a.text,role:a.role,attachments:p.state,runConfig:a.runConfig,isEditing:a.isEditing,canCancel:a.canCancel,canSend:a.canSend,attachmentAccept:a.attachmentAccept,isEmpty:a.isEmpty,type:S,dictation:a.dictation,quote:a.quote,queue:m,submission:a.submission,inTransit:a.inTransit},e[16]=p.state,e[17]=m,e[18]=a.attachmentAccept,e[19]=a.canCancel,e[20]=a.canSend,e[21]=a.dictation,e[22]=a.inTransit,e[23]=a.isEditing,e[24]=a.isEmpty,e[25]=a.quote,e[26]=a.role,e[27]=a.runConfig,e[28]=a.submission,e[29]=a.text,e[30]=S,e[31]=w):w=e[31];const v=w;let y;e[32]!==v?(y=i(()=>v,"t7"),e[32]=v,e[33]=y):y=e[33];let T;e[34]!==o||e[35]!==r?(T=i(k=>{const P=r.getState();u.current=P.canSend&&(o?.(P.text)??!1),r.send(k)},"t8"),e[34]=o,e[35]=r,e[36]=T):T=e[36];let E;e[37]!==l||e[38]!==n||e[39]!==r||e[40]!==s?(E=i(()=>{!n&&r.getState().canCancel&&l("composer.cancel",{threadId:s.current}),r.cancel()},"t9"),e[37]=l,e[38]=n,e[39]=r,e[40]=s,e[41]=E):E=e[41];const C=r.beginEdit??Bm;let N;e[42]!==p?(N=i(k=>"id"in k?p.get({key:k.id}):p.get(k),"t11"),e[42]=p,e[43]=N):N=e[43];let q;e[44]!==b?(q=i(k=>"id"in k?b.get({key:k.id}):b.get(k),"t12"),e[44]=b,e[45]=q):q=e[45];let M;e[46]!==r?(M=i(()=>r,"t13"),e[46]=r,e[47]=M):M=e[47];let R;return e[48]!==r.addAttachment||e[49]!==r.clearAttachments||e[50]!==r.reset||e[51]!==r.setQuote||e[52]!==r.setRole||e[53]!==r.setRunConfig||e[54]!==r.setText||e[55]!==r.startDictation||e[56]!==r.stopDictation||e[57]!==C||e[58]!==N||e[59]!==q||e[60]!==M||e[61]!==y||e[62]!==T||e[63]!==E?(R={getState:y,setText:r.setText,setRole:r.setRole,setRunConfig:r.setRunConfig,addAttachment:r.addAttachment,reset:r.reset,clearAttachments:r.clearAttachments,send:T,cancel:E,beginEdit:C,startDictation:r.startDictation,stopDictation:r.stopDictation,setQuote:r.setQuote,attachment:N,queueItem:q,__internal_getRuntime:M},e[48]=r.addAttachment,e[49]=r.clearAttachments,e[50]=r.reset,e[51]=r.setQuote,e[52]=r.setRole,e[53]=r.setRunConfig,e[54]=r.setText,e[55]=r.startDictation,e[56]=r.stopDictation,e[57]=C,e[58]=N,e[59]=q,e[60]=M,e[61]=y,e[62]=T,e[63]=E,e[64]=R):R=e[64],R},"useComposerClient"),hl=he(Pm);function Bm(){throw new Error("beginEdit is not supported in this runtime")}i(Bm,"_temp$4");var fl=i(t=>({get current(){return t()}}),"liveRef"),$m=i(t=>{const e=se(17),{runtime:s}=t,n=ns(s);let r;e[0]!==n?(r=i(()=>n,"t1"),e[0]=n,e[1]=r):r=e[1];let o,a,l;e[2]!==s?(o=i(f=>s.addToolResult(f),"t2"),a=i(f=>s.resumeToolCall(f),"t3"),l=i(f=>s.respondToToolApproval(f),"t4"),e[2]=s,e[3]=o,e[4]=a,e[5]=l):(o=e[3],a=e[4],l=e[5]);let u;e[6]!==s.unstable_recordInteraction?(u=s.unstable_recordInteraction&&{unstable_recordInteraction:i(f=>s.unstable_recordInteraction(f),"unstable_recordInteraction")},e[6]=s.unstable_recordInteraction,e[7]=u):u=e[7];let d;e[8]!==s?(d=i(()=>s,"t6"),e[8]=s,e[9]=d):d=e[9];let h;return e[10]!==r||e[11]!==o||e[12]!==a||e[13]!==l||e[14]!==u||e[15]!==d?(h={getState:r,addToolResult:o,resumeToolCall:a,respondToToolApproval:l,...u,__internal_getRuntime:d},e[10]=r,e[11]=o,e[12]=a,e[13]=l,e[14]=u,e[15]=d,e[16]=h):h=e[16],h},"useMessagePartClient"),Lm=he($m),Vm=i(t=>{const e=se(5),{runtime:s,index:n}=t;let r;e[0]!==n||e[1]!==s?(r=s.getAttachmentByIndex(n),e[0]=n,e[1]=s,e[2]=r):r=e[2];const o=r;let a;return e[3]!==o?(a=dl({runtime:o}),e[3]=o,e[4]=a):a=e[4],kt(a)},"useMessageAttachmentClientByIndex"),Fm=he(Vm),Um=i(t=>{const e=se(5),{runtime:s,index:n}=t;let r;e[0]!==n||e[1]!==s?(r=s.getMessagePartByIndex(n),e[0]=n,e[1]=s,e[2]=r):r=e[2];const o=r;let a;return e[3]!==o?(a=Lm({runtime:o}),e[3]=o,e[4]=a):a=e[4],kt(a)},"useMessagePartByIndex"),qm=he(Um),zm=i(t=>{const e=se(77),{runtime:s,threadIdRef:n,threadId:r,isLast:o}=t,a=ns(s),l=Ps(),[u,d]=ye(!1),[h,f]=ye(!1);let p;e[0]!==s?(p=fl(()=>s.getState().id),e[0]=s,e[1]=p):p=e[1];const m=p,g=$e(a.status);let b;e[2]!==l||e[3]!==s||e[4]!==r?(b=i(A=>{l(A,{threadId:r,messageId:s.getState().id})},"t2"),e[2]=l,e[3]=s,e[4]=r,e[5]=b):b=e[5];const S=b;let w,v;e[6]!==l||e[7]!==a.id||e[8]!==a.status||e[9]!==r?(w=i(()=>{const A=a.status,$=g.current;g.current=A,A?.type==="incomplete"&&A.reason==="error"&&($?.type!=="incomplete"||$.reason!=="error")&&l("message.error",{threadId:r,messageId:a.id,reason:"error"})},"t3"),v=[a.status,a.id,l,r],e[6]=l,e[7]=a.id,e[8]=a.status,e[9]=r,e[10]=w,e[11]=v):(w=e[10],v=e[11]),be(w,v);let y;e[12]!==m||e[13]!==s.composer||e[14]!==n?(y=hl({runtime:s.composer,threadIdRef:n,messageIdRef:m}),e[12]=m,e[13]=s.composer,e[14]=n,e[15]=y):y=e[15];const T=Rs(y);let E;if(e[16]!==s||e[17]!==a.content){let A;e[19]!==s?(A=i(($,K)=>Oe("toolCallId"in $&&$.toolCallId!=null?`toolCallId-${$.toolCallId}`:`index-${K}`,qm({runtime:s,index:K}),[s,K]),"t7"),e[19]=s,e[20]=A):A=e[20],E=a.content.map(A),e[16]=s,e[17]=a.content,e[18]=E}else E=e[18];const C=it(E);let N;e[21]!==a.attachments?(N=a.attachments??[],e[21]=a.attachments,e[22]=N):N=e[22];let q;if(e[23]!==s||e[24]!==N){let A;e[26]!==s?(A=i(($,K)=>Oe($.id,Fm({runtime:s,index:K}),[s,K]),"t9"),e[26]=s,e[27]=A):A=e[27],q=N.map(A),e[23]=s,e[24]=N,e[25]=q}else q=e[25];const M=it(q),R=a;let k;e[28]!==o?(k=o===!1?{isLast:o}:{},e[28]=o,e[29]=k):k=e[29];let P;e[30]!==T.state||e[31]!==u||e[32]!==h||e[33]!==C.state||e[34]!==k||e[35]!==R?(P={...R,...k,parts:C.state,composer:T.state,isCopied:u,isHovering:h},e[30]=T.state,e[31]=u,e[32]=h,e[33]=C.state,e[34]=k,e[35]=R,e[36]=P):P=e[36];const L=P;let H;e[37]!==L?(H=i(()=>L,"t12"),e[37]=L,e[38]=H):H=e[38];let Y;e[39]!==T.methods?(Y=i(()=>T.methods,"t13"),e[39]=T.methods,e[40]=Y):Y=e[40];let I;e[41]!==s?(I=i(()=>s.delete(),"t14"),e[41]=s,e[42]=I):I=e[42];let V,F;e[43]!==S||e[44]!==s?(V=i(A=>(S("message.reload"),s.reload(A)),"t15"),F=i(()=>(S("message.speak"),s.speak()),"t16"),e[43]=S,e[44]=s,e[45]=V,e[46]=F):(V=e[45],F=e[46]);let G,ne;e[47]!==s?(G=i(()=>s.stopSpeaking(),"t17"),ne=i(A=>s.submitFeedback(A),"t18"),e[47]=s,e[48]=G,e[49]=ne):(G=e[48],ne=e[49]);let X;e[50]!==S||e[51]!==s?(X=i(A=>(S("message.branchSwitched"),s.switchToBranch(A)),"t19"),e[50]=S,e[51]=s,e[52]=X):X=e[52];let we;e[53]!==s?(we=i(()=>s.unstable_getCopyText(),"t20"),e[53]=s,e[54]=we):we=e[54];let pe;e[55]!==C?(pe=i(A=>"index"in A?C.get({index:A.index}):C.get({key:`toolCallId-${A.toolCallId}`}),"t21"),e[55]=C,e[56]=pe):pe=e[56];let fe;e[57]!==M?(fe=i(A=>"id"in A?M.get({key:A.id}):M.get(A),"t22"),e[57]=M,e[58]=fe):fe=e[58];let xe;e[59]!==S?(xe=i(A=>{A&&S("message.copied"),d(A)},"t23"),e[59]=S,e[60]=xe):xe=e[60];let ue;e[61]!==s?(ue=i(()=>s,"t24"),e[61]=s,e[62]=ue):ue=e[62];let j;return e[63]!==H||e[64]!==Y||e[65]!==I||e[66]!==V||e[67]!==F||e[68]!==G||e[69]!==ne||e[70]!==X||e[71]!==we||e[72]!==pe||e[73]!==fe||e[74]!==xe||e[75]!==ue?(j={getState:H,composer:Y,delete:I,reload:V,speak:F,stopSpeaking:G,submitFeedback:ne,switchToBranch:X,getCopyText:we,part:pe,attachment:fe,setIsCopied:xe,setIsHovering:f,__internal_getRuntime:ue},e[63]=H,e[64]=Y,e[65]=I,e[66]=V,e[67]=F,e[68]=G,e[69]=ne,e[70]=X,e[71]=we,e[72]=pe,e[73]=fe,e[74]=xe,e[75]=ue,e[76]=j):j=e[76],j},"useMessageClient"),Hm=he(zm),js=i(t=>t.content.filter(e=>e.type==="text").map(e=>e.text).join(`
|
|
4
4
|
|