vibe64 0.1.63 → 0.1.64

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.
Files changed (70) hide show
  1. package/bin/upgrade-state.js +3581 -3575
  2. package/dist/assets/{GithubBrowserTabs-DEq5_tSs.js → GithubBrowserTabs-Cf6ce1lO.js} +1 -1
  3. package/dist/assets/{LocalDatabaseServer-CrQ9aolO.js → LocalDatabaseServer-0VGIcy5Q.js} +1 -1
  4. package/dist/assets/{Vibe64AuthSettingsButton-Bbgu_IRu.js → Vibe64AuthSettingsButton-BGtVvQq0.js} +1 -1
  5. package/dist/assets/{Vibe64ConversationLog-MGFaNVSu.js → Vibe64ConversationLog-Cv_BE9yH.js} +1 -1
  6. package/dist/assets/{Vibe64DashboardShell-i01oU7QS.js → Vibe64DashboardShell-B3TN3NBS.js} +1 -1
  7. package/dist/assets/{Vibe64DatabaseWorkspace-BqOIE7at.js → Vibe64DatabaseWorkspace-CU0jCfP_.js} +1 -1
  8. package/dist/assets/{Vibe64FileArea-B8_Tqtgv.js → Vibe64FileArea-BWl-q11N.js} +1 -1
  9. package/dist/assets/{Vibe64OutputControls-eaoCQsYn.js → Vibe64OutputControls-DnfGKZHs.js} +1 -1
  10. package/dist/assets/{Vibe64RepositoryWorkspace-CoSH_5qZ.js → Vibe64RepositoryWorkspace-3UKN_pPs.js} +1 -1
  11. package/dist/assets/{Vibe64SessionFiles-Dt1EY-Qo.js → Vibe64SessionFiles-B1U6XSWQ.js} +1 -1
  12. package/dist/assets/{Vibe64SessionSourceEditor-D5-abooo.js → Vibe64SessionSourceEditor-De1QyTOd.js} +1 -1
  13. package/dist/assets/{Vibe64UiStoryboardView-CyuufVBB.js → Vibe64UiStoryboardView-JRGcklim.js} +1 -1
  14. package/dist/assets/{Vibe64UnavailableSessions-CaLRMl-0.js → Vibe64UnavailableSessions-Bd_-gPuL.js} +1 -1
  15. package/dist/assets/{_pageId_-M5CNslNQ.js → _pageId_-DIPouI7Z.js} +1 -1
  16. package/dist/assets/{_sessionId_-jSlkZQLV.js → _sessionId_-qH7uIGNl.js} +1 -1
  17. package/dist/assets/{_slug_-ClQKNEA9.js → _slug_-CaHlSQ8I.js} +5 -5
  18. package/dist/assets/{access-BqnqYSZR.js → access-O4hOM9ov.js} +1 -1
  19. package/dist/assets/{app-D7V6OMMB.js → app-CXljwZ0u.js} +1 -1
  20. package/dist/assets/{changes-odK1bV6J.js → changes-C5gleyWS.js} +1 -1
  21. package/dist/assets/{client-P5LOKvwh.js → client-CI-o7ITq.js} +2 -2
  22. package/dist/assets/{client-rknXpZ1o.js → client-DMEf6RSZ.js} +1 -1
  23. package/dist/assets/{client-DwF9Q0VQ.js → client-Do8szX_w.js} +2 -2
  24. package/dist/assets/{client-BLY6SeL-.js → client-fF-hq8nJ.js} +1 -1
  25. package/dist/assets/contracts-CNUMi5L0.js +3 -0
  26. package/dist/assets/{conversation-BoB7Drme.js → conversation-DiL2PEct.js} +3 -3
  27. package/dist/assets/{conversation-BMyk8R_u.css → conversation-RscSzQxq.css} +1 -1
  28. package/dist/assets/{dashboard-D6JkBdZg.js → dashboard-BWlG0Nli.js} +1 -1
  29. package/dist/assets/{english-definitions-CwCZ8VJ-.js → english-definitions-DcuZfQ4p.js} +1 -1
  30. package/dist/assets/env-D3DVC-Gd.js +1 -0
  31. package/dist/assets/{env-CCUgAwiV.css → env-i_R_LXlE.css} +1 -1
  32. package/dist/assets/{history-IBqZqdSL.js → history-BrWT8DRp.js} +1 -1
  33. package/dist/assets/{index-DAareKn3.js → index-HrVsvggI.js} +2 -2
  34. package/dist/assets/{integrations-BBMdyyMq.js → integrations-C4p_QTuv.js} +1 -1
  35. package/dist/assets/{issues-DwUO1HjX.js → issues-KxOOLtSM.js} +1 -1
  36. package/dist/assets/{learning-DAIqaO0B.js → learning-BWqH7wag.js} +1 -1
  37. package/dist/assets/{pages-DoUMcieZ.js → pages-DcNh-g_z.js} +1 -1
  38. package/dist/assets/{project-files-DilujZdI.js → project-files-C3a_vnA4.js} +1 -1
  39. package/dist/assets/{publish-KZQ_gdoN.js → publish-B1f2baHh.js} +1 -1
  40. package/dist/assets/{pull-requests-BB3CAadu.js → pull-requests-BHq5Yafl.js} +1 -1
  41. package/dist/assets/{repository-B90tiuN6.js → repository-DMBew8kp.js} +1 -1
  42. package/dist/assets/{settings-DdbhtNHb.js → settings-DDpgGhWO.js} +1 -1
  43. package/dist/assets/{useArchivedVibe64Sessions-B_pM75gN.js → useArchivedVibe64Sessions-C5Qguyob.js} +1 -1
  44. package/dist/assets/useAssistantAttachments-DvEl7gX6.js +2 -0
  45. package/dist/assets/{useVibe64ConversationLog-Ch0ZbnCG.js → useVibe64ConversationLog-BZ5g9Jp7.js} +2 -2
  46. package/dist/assets/{useVibe64SessionData-COsXmbMm.js → useVibe64SessionData-D9d4NfDo.js} +1 -1
  47. package/dist/assets/{useVibe64SessionSelection-CKBC-ZJw.js → useVibe64SessionSelection-DT1rJVvx.js} +1 -1
  48. package/dist/assets/{vibe64RepositoryRealtime-BIXVm4u9.js → vibe64RepositoryRealtime-kSshUn2K.js} +1 -1
  49. package/dist/assets/{vibe64SavedEnvValues-CU_SdjKx.js → vibe64SavedEnvValues-CgfMvj_h.js} +1 -1
  50. package/dist/assets/{vibe64SessionFocus-C0LfHXbF.js → vibe64SessionFocus-CLtCTOxq.js} +1 -1
  51. package/dist/index.html +5 -5
  52. package/docs/colleague-usage/coding-agent-goal-pause.md +4 -3
  53. package/docs/colleague-usage/coding-agent-goals.md +26 -18
  54. package/docs/colleague-usage/development-env.md +37 -5
  55. package/node_modules/@jskit-ai/assistant-core/CHANGELOG.md +6 -1
  56. package/node_modules/@jskit-ai/assistant-core/locales/en.json +2 -1
  57. package/node_modules/@jskit-ai/assistant-core/package.json +1 -1
  58. package/node_modules/@jskit-ai/assistant-runtime/CHANGELOG.md +1 -0
  59. package/node_modules/@jskit-ai/assistant-runtime/package.json +1 -1
  60. package/node_modules/@jskit-ai/assistant-voice/package.json +1 -1
  61. package/node_modules/@local/vibe64-execution/src/host/execHelper.js +671 -572
  62. package/node_modules/@local/vibe64-genesis/bin/vibe64-genesis-host-context +480 -479
  63. package/node_modules/@local/vibe64-genesis/src/server/index.js +22 -21
  64. package/node_modules/@local/vibe64-genesis/src/server/promptContext.js +103 -102
  65. package/node_modules/@local/vibe64-runtime/src/server/codexAppServerProcess.js +790 -740
  66. package/package.json +4 -4
  67. package/server.bundle.mjs +37263 -37176
  68. package/dist/assets/contracts-CCZaLqSE.js +0 -1
  69. package/dist/assets/env-CIy7uwLb.js +0 -1
  70. package/dist/assets/useAssistantAttachments-BkYZckgz.js +0 -2
@@ -0,0 +1 @@
1
+ import{Et as unref,G as renderList,H as openBlock,J as resolveDynamicComponent,K as renderSlot,Tt as toValue,Xt as toDisplayString,b as createVNode,d as createBaseVNode,f as createBlock,i as Fragment,it as watch,m as createElementBlock,ot as withCtx,p as createCommentVNode,u as computed,vt as ref,y as createTextVNode}from"./runtime-core.esm-bundler-Bi1P1jMa.js";import{S as VIcon,t as VChip}from"./VChip-D2IukBZw.js";import{t as useEndpointResource}from"./useEndpointResource-CmMwteuX.js";import{g as useRoute}from"./useApi-BPuI6ZR9-rsYWyW6m.js";import{n as VAlert}from"./VSkeletonLoader-Bl9P5wdh.js";import{t as VTextField}from"./VTextField-B9R7EIjg.js";import{o as ROUTE_VISIBILITY_PUBLIC}from"./visibility-Cq31Xy7I.js";import{t as VBtn}from"./VBtn-2vbH580C.js";import{t as VCheckbox}from"./VCheckbox-BK0ss4F4.js";import{t as VDialog}from"./VDialog-BCIrX462.js";import{i as VCardTitle,n as VCardText,o as VCardActions,t as VCard}from"./VCard-BFqQSnAE.js";import{t as VTable}from"./VTable-DHazU0Xx.js";import{t as VSpacer}from"./VSpacer-GgPR_AzN.js";import{i as VExpansionPanelText,n as VExpansionPanel,r as VExpansionPanelTitle,t as VExpansionPanels}from"./VExpansionPanels-BHw1Id_o.js";import{t as _plugin_vue_export_helper_default}from"./_plugin-vue_export-helper-DNW4j-dv.js";import{t as useCommand}from"./useCommand-CNDe8gM-.js";import{o as reloadPage}from"./browser-D8z6v6Ge.js";import{D as envQueryKey,S as VIBE64_PROJECT_CHANGED_EVENT,a as ENV_ENDPOINT,b as VIBE64_ENV_USER_VALUES_API_SUFFIX,i as ENV_DOWNLOAD_ENDPOINT,o as ENV_SECRET_REVEAL_ENDPOINT,s as ENV_USER_VALUES_ENDPOINT,v as VIBE64_ENV_DOWNLOAD_API_SUFFIX,y as VIBE64_ENV_SECRET_REVEAL_API_SUFFIX}from"./studioGateApi-UqmdV50W.js";import{G as VTabs,K as VTab,N as useVibe64ProjectSlug}from"./index-HrVsvggI.js";import{n as saveBlobAsFile}from"./vibe64AttachmentDownload-BWRCIKUr.js";import{t as Vibe64AsyncModuleState_default}from"./Vibe64AsyncModuleState-9bN0_H45.js";import{n as useVibe64SessionSelection}from"./useVibe64SessionSelection-DT1rJVvx.js";import{t as Vibe64DashboardPageHeader_default}from"./Vibe64DashboardPageHeader-xfRLZ94G.js";import{n as envValueWithoutFinalLineEnding}from"./contracts-CNUMi5L0.js";import{n as savedEnvValueEnvironment,r as useVibe64SavedEnvValues,t as recordIsSavedEnvValue}from"./vibe64SavedEnvValues-CgfMvj_h.js";var _hoisted_1$3={key:0,class:`runtime-config-records-table__actions-column`};var _hoisted_2$2={key:0};var _hoisted_3$2=[`onClick`];var _hoisted_4$2=[`title`];var _hoisted_5$2={class:`runtime-config-records-table__linked-label`};var _hoisted_6$1={key:1,class:`runtime-config-records-table__secret-value`};var _hoisted_7={key:0};var _hoisted_8={key:0,class:`runtime-config-records-table__saved-actions`};var _hoisted_9={key:1,class:`runtime-config-records-table__edit`};var _hoisted_10={class:`runtime-config-records-table__edit-actions`};function writeNothing(){}var _sfc_main$3={__name:`RuntimeConfigRecordsTable`,props:{environmentLabel:{default:`environment`,type:String},onRemoveRecord:{default:writeNothing,type:Function},onSaveRecord:{default:writeNothing,type:Function},records:{default:()=>[],type:Array},revealedSecrets:{default:()=>({}),type:Object},saveBusy:{default:false,type:Boolean},secretRevealBusyKey:{default:``,type:String},secretRevealEnabled:{default:false,type:Boolean},showActions:{default:false,type:Boolean}},emits:[`hide-secret`,`reveal-secret`,`saved-value-changed`],setup(__props,{emit:__emit}){const emit=__emit;const props=__props;const draftValues=ref({});const pendingRow=ref(null);const rowErrors=ref({});const savedRowValues=ref({});watch(()=>props.records,()=>{savedRowValues.value={}});const writeBusy=computed(()=>props.saveBusy||Boolean(pendingRow.value));const projectSlug=useVibe64ProjectSlug();const savedValues=useVibe64SavedEnvValues();function recordKey(record={}){return`${record.scope||props.environmentLabel}:${record.key||``}`}function draftTouched(record={}){return Object.hasOwn(draftValues.value,recordKey(record))}function draftValue(record={}){return draftTouched(record)?draftValues.value[recordKey(record)]:``}function setDraftValue(record={},value=``){draftValues.value={...draftValues.value,[recordKey(record)]:String(value??``)};setRowError(recordKey(record),``)}function rowPending(record={},action=``){return pendingRow.value?.key===recordKey(record)&&pendingRow.value.action===action}function rowError(record={}){return rowErrors.value[recordKey(record)]||``}function setRowError(key=``,message=``){const{[key]:_previous,...others}=rowErrors.value;rowErrors.value=message?{...others,[key]:message}:others}async function runRowWrite(record,action,write,fallbackError){const key=recordKey(record);pendingRow.value={action,key};setRowError(key,``);try{await write();return true}catch(error){setRowError(key,String(error?.message||fallbackError));return false}finally{pendingRow.value=null}}function recordValueLabel(record={}){const saved=Object.hasOwn(savedRowValues.value,recordKey(record));if(record.secret)return secretIsRevealed(record)?String(props.revealedSecrets[record.key]??``):record.valuePresent||saved?`********`:``;return String(saved?savedRowValues.value[recordKey(record)]:record.value??``)}function secretIsRevealed(record={}){return Boolean(record.key)&&Object.hasOwn(props.revealedSecrets,record.key)}function secretVisibilityAction(record={}){return secretIsRevealed(record)?`Hide`:`Reveal`}function secretVisibilityLabel(record={}){return`${secretVisibilityAction(record)} ${record.key||`secret`}`}function toggleSecretVisibility(record={}){emit(secretIsRevealed(record)?`hide-secret`:`reveal-secret`,record)}async function saveRecord(record={}){if(!props.showActions||!draftTouched(record)||writeBusy.value)return false;const key=recordKey(record);const value=draftValue(record);const saved=await runRowWrite(record,`save`,()=>props.onSaveRecord({record,value}),`${record.key||`The value`} could not be saved.`);if(saved)savedRowValues.value={...savedRowValues.value,[key]:value};if(saved&&draftValues.value[key]===value){const{[key]:_saved,...others}=draftValues.value;draftValues.value=others}return saved}async function removeRecord(record={}){if(!props.showActions||writeBusy.value)return false;return runRowWrite(record,`remove`,()=>props.onRemoveRecord(record),`${record.key||`The value`} could not be removed.`)}async function copyKey(key=``){const text=String(key||``);if(typeof navigator!==`undefined`&&navigator.clipboard&&text)await navigator.clipboard.writeText(text)}return(_ctx,_cache)=>{return openBlock(),createBlock(VTable,{class:`runtime-config-records-table`,density:`compact`},{default:withCtx(()=>[createBaseVNode(`colgroup`,null,[_cache[2]||(_cache[2]=createBaseVNode(`col`,{class:`runtime-config-records-table__key-column`},null,-1)),_cache[3]||(_cache[3]=createBaseVNode(`col`,{class:`runtime-config-records-table__value-column`},null,-1)),__props.showActions?(openBlock(),createElementBlock(`col`,_hoisted_1$3)):createCommentVNode(``,true)]),createBaseVNode(`thead`,null,[createBaseVNode(`tr`,null,[_cache[4]||(_cache[4]=createBaseVNode(`th`,null,`Key`,-1)),_cache[5]||(_cache[5]=createBaseVNode(`th`,null,`Value`,-1)),__props.showActions?(openBlock(),createElementBlock(`th`,_hoisted_2$2,`Actions`)):createCommentVNode(``,true)])]),createBaseVNode(`tbody`,null,[(openBlock(true),createElementBlock(Fragment,null,renderList(__props.records,record=>{return openBlock(),createElementBlock(`tr`,{key:recordKey(record)},[createBaseVNode(`td`,null,[createBaseVNode(`button`,{class:`runtime-config-records-table__key`,type:`button`,onClick:$event=>copyKey(record.key)},toDisplayString(record.key),9,_hoisted_3$2)]),createBaseVNode(`td`,null,[unref(recordIsSavedEnvValue)(record)?(openBlock(),createElementBlock(`div`,{key:0,class:`runtime-config-records-table__linked`,title:record.label},[createVNode(VIcon,{class:`runtime-config-records-table__linked-icon`,icon:`$link`,size:`16`}),createBaseVNode(`span`,_hoisted_5$2,toDisplayString(record.label||`Linked`),1)],8,_hoisted_4$2)):record.secret?(openBlock(),createElementBlock(`div`,_hoisted_6$1,[createBaseVNode(`code`,null,toDisplayString(recordValueLabel(record)),1),__props.secretRevealEnabled&&record.valuePresent?(openBlock(),createBlock(VBtn,{key:0,"aria-label":secretVisibilityLabel(record),disabled:Boolean(__props.secretRevealBusyKey)&&__props.secretRevealBusyKey!==record.key,loading:__props.secretRevealBusyKey===record.key,size:`x-small`,type:`button`,variant:`text`,onClick:$event=>toggleSecretVisibility(record)},{default:withCtx(()=>[createTextVNode(toDisplayString(secretVisibilityAction(record)),1)]),_:2},1032,[`aria-label`,`disabled`,`loading`,`onClick`])):createCommentVNode(``,true)])):(openBlock(),createElementBlock(Fragment,{key:2},[createTextVNode(toDisplayString(recordValueLabel(record)),1)],64))]),__props.showActions?(openBlock(),createElementBlock(`td`,_hoisted_7,[unref(recordIsSavedEnvValue)(record)?(openBlock(),createElementBlock(`div`,_hoisted_8,[unref(savedValues)?(openBlock(),createBlock(resolveDynamicComponent(unref(savedValues).component),{key:0,environment:unref(savedEnvValueEnvironment)(__props.environmentLabel),placement:`env-row`,"project-slug":unref(projectSlug),secret:record.secret===true,variable:record.key,onChanged:_cache[0]||(_cache[0]=$event=>_ctx.$emit(`saved-value-changed`))},null,40,[`environment`,`project-slug`,`secret`,`variable`])):createCommentVNode(``,true)])):(openBlock(),createElementBlock(`div`,_hoisted_9,[createVNode(VTextField,{"error-messages":rowError(record),"hide-details":!rowError(record),"model-value":draftValue(record),type:record.secret?`password`:`text`,density:`compact`,label:`New value`,spellcheck:`false`,variant:`outlined`,"onUpdate:modelValue":$event=>setDraftValue(record,$event)},null,8,[`error-messages`,`hide-details`,`model-value`,`type`,`onUpdate:modelValue`]),createBaseVNode(`span`,_hoisted_10,[unref(savedValues)?(openBlock(),createBlock(resolveDynamicComponent(unref(savedValues).component),{key:0,environment:unref(savedEnvValueEnvironment)(__props.environmentLabel),"has-value":record.valuePresent===true,placement:`env-row`,"project-slug":unref(projectSlug),secret:record.secret===true,variable:record.key,onChanged:_cache[1]||(_cache[1]=$event=>_ctx.$emit(`saved-value-changed`))},null,40,[`environment`,`has-value`,`project-slug`,`secret`,`variable`])):createCommentVNode(``,true),createVNode(VBtn,{disabled:!draftTouched(record)||writeBusy.value&&!rowPending(record,`save`),loading:rowPending(record,`save`),size:`small`,type:`button`,variant:`tonal`,onClick:$event=>saveRecord(record)},{default:withCtx(()=>[..._cache[6]||(_cache[6]=[createTextVNode(` Save `,-1)])]),_:1},8,[`disabled`,`loading`,`onClick`]),createVNode(VBtn,{disabled:writeBusy.value&&!rowPending(record,`remove`),loading:rowPending(record,`remove`),size:`small`,type:`button`,variant:`text`,onClick:$event=>removeRecord(record)},{default:withCtx(()=>[..._cache[7]||(_cache[7]=[createTextVNode(` Remove `,-1)])]),_:1},8,[`disabled`,`loading`,`onClick`])])]))])):createCommentVNode(``,true)])}),128))])]),_:1})}}};var RuntimeConfigRecordsTable_default=_plugin_vue_export_helper_default(_sfc_main$3,[[`__scopeId`,`data-v-d55963fd`]]);var _hoisted_1$2={class:`runtime-config-records`};var _hoisted_2$1={class:`runtime-config-records__section`};var _hoisted_3$1={class:`runtime-config-records__heading`};var _hoisted_4$1={key:1,class:`runtime-config-records__empty`};var _hoisted_5$1={class:`runtime-config-records__system-title`};var _sfc_main$2={__name:`RuntimeConfigRecordsView`,props:{editableEmptyText:{default:`No user Env values.`,type:String},editableTitle:{default:`User values`,type:String},environmentLabel:{default:`environment`,type:String},onRemoveRecord:{required:true,type:Function},onSaveRecord:{required:true,type:Function},readonly:{default:false,type:Boolean},records:{default:()=>[],type:Array},revealedSecrets:{default:()=>({}),type:Object},saveBusy:{default:false,type:Boolean},secretRevealBusyKey:{default:``,type:String},secretRevealEnabled:{default:false,type:Boolean},systemTitle:{default:`System values`,type:String}},emits:[`hide-secret`,`reveal-secret`,`saved-value-changed`],setup(__props){const props=__props;const records=computed(()=>Array.isArray(props.records)?props.records:[]);const editableRecords=computed(()=>records.value.filter(recordEditable));const systemRecords=computed(()=>records.value.filter(record=>!recordEditable(record)));function recordEditable(record={}){return record.editable===true||recordIsSavedEnvValue(record)}return(_ctx,_cache)=>{return openBlock(),createElementBlock(`section`,_hoisted_1$2,[createBaseVNode(`section`,_hoisted_2$1,[createBaseVNode(`div`,_hoisted_3$1,[createBaseVNode(`h2`,null,toDisplayString(__props.editableTitle),1),createVNode(VChip,{size:`x-small`,variant:`tonal`},{default:withCtx(()=>[createTextVNode(toDisplayString(editableRecords.value.length),1)]),_:1})]),editableRecords.value.length?(openBlock(),createBlock(RuntimeConfigRecordsTable_default,{key:0,"environment-label":__props.environmentLabel,records:editableRecords.value,"revealed-secrets":__props.revealedSecrets,"save-busy":__props.saveBusy,"secret-reveal-busy-key":__props.secretRevealBusyKey,"secret-reveal-enabled":__props.secretRevealEnabled,"show-actions":!__props.readonly,"on-remove-record":__props.onRemoveRecord,"on-save-record":__props.onSaveRecord,onHideSecret:_cache[0]||(_cache[0]=$event=>_ctx.$emit(`hide-secret`,$event)),onRevealSecret:_cache[1]||(_cache[1]=$event=>_ctx.$emit(`reveal-secret`,$event)),onSavedValueChanged:_cache[2]||(_cache[2]=$event=>_ctx.$emit(`saved-value-changed`))},null,8,[`environment-label`,`records`,`revealed-secrets`,`save-busy`,`secret-reveal-busy-key`,`secret-reveal-enabled`,`show-actions`,`on-remove-record`,`on-save-record`])):(openBlock(),createElementBlock(`p`,_hoisted_4$1,toDisplayString(__props.editableEmptyText),1))]),systemRecords.value.length?(openBlock(),createBlock(VExpansionPanels,{key:0,class:`runtime-config-records__system`,variant:`accordion`},{default:withCtx(()=>[createVNode(VExpansionPanel,null,{default:withCtx(()=>[createVNode(VExpansionPanelTitle,null,{default:withCtx(()=>[createBaseVNode(`span`,_hoisted_5$1,[createTextVNode(toDisplayString(__props.systemTitle)+` `,1),createVNode(VChip,{size:`x-small`,variant:`tonal`},{default:withCtx(()=>[createTextVNode(toDisplayString(systemRecords.value.length),1)]),_:1})])]),_:1}),createVNode(VExpansionPanelText,null,{default:withCtx(()=>[createVNode(RuntimeConfigRecordsTable_default,{"environment-label":__props.environmentLabel,records:systemRecords.value,"revealed-secrets":__props.revealedSecrets,"secret-reveal-busy-key":__props.secretRevealBusyKey,"secret-reveal-enabled":__props.secretRevealEnabled,onHideSecret:_cache[3]||(_cache[3]=$event=>_ctx.$emit(`hide-secret`,$event)),onRevealSecret:_cache[4]||(_cache[4]=$event=>_ctx.$emit(`reveal-secret`,$event))},null,8,[`environment-label`,`records`,`revealed-secrets`,`secret-reveal-busy-key`,`secret-reveal-enabled`])]),_:1})]),_:1})]),_:1})):createCommentVNode(``,true)])}}};var RuntimeConfigRecordsView_default=_plugin_vue_export_helper_default(_sfc_main$2,[[`__scopeId`,`data-v-bcf2f6c4`]]);function useRuntimeConfigDotenvDownload({fileName,readContent}){const downloadBusy=ref(false);const downloadError=ref(``);async function downloadDotenv(){if(downloadBusy.value)return false;downloadBusy.value=true;downloadError.value=``;try{const content=await readContent();if(typeof content!==`string`)return false;saveBlobAsFile(new Blob([content],{type:`text/plain;charset=utf-8`}),String(toValue(fileName)));return true}catch(error){downloadError.value=String(error?.message||`The .env file could not be downloaded.`);return false}finally{downloadBusy.value=false}}return{downloadBusy,downloadDotenv,downloadError}}function runtimeConfigSecretKey(value={}){return String(typeof value===`string`?value:value.key||``).trim()}function useRuntimeConfigSecretReveal({revealValue}){const revealedSecrets=ref({});const secretRevealBusyKey=ref(``);async function revealSecret(record={}){const key=runtimeConfigSecretKey(record);if(!key||secretRevealBusyKey.value)return false;secretRevealBusyKey.value=key;try{const value=await revealValue(key,record);if(value===void 0||value===null)return false;revealedSecrets.value={...revealedSecrets.value,[key]:String(value)};return true}finally{secretRevealBusyKey.value=``}}function hideSecret(record={}){const key=runtimeConfigSecretKey(record);if(!key||!Object.hasOwn(revealedSecrets.value,key))return false;const next={...revealedSecrets.value};delete next[key];revealedSecrets.value=next;return true}function clearRevealedSecrets(){revealedSecrets.value={}}return{clearRevealedSecrets,hideSecret,revealedSecrets,revealSecret,secretRevealBusyKey}}var PROJECT_ENVIRONMENT=`dev`;var PROJECT_ENVIRONMENT_LABEL=`development`;function recordEditable(record={}){return record.editable===true}function recordMissing(record={}){return record.valuePresent!==true&&(record.missing===true||Array.isArray(record.requiredFor)&&record.requiredFor.length>0)}function useVibe64ProjectEnv({projectSlug,selectedSessionId}){const envResource=useEndpointResource({fallbackLoadError:`Env could not load.`,path:ENV_ENDPOINT,queryKey:computed(()=>[...envQueryKey(`app`,ROUTE_VISIBILITY_PUBLIC,projectSlug.value),PROJECT_ENVIRONMENT,selectedSessionId.value||`baseline`]),readQuery:computed(()=>({environment:PROJECT_ENVIRONMENT,...selectedSessionId.value?{sessionId:selectedSessionId.value}:{}})),realtime:{event:VIBE64_PROJECT_CHANGED_EVENT},refreshOnPull:true,requestRecoveryLabel:`Env`});const saveCommand=useCommand({access:`never`,apiSuffix:VIBE64_ENV_USER_VALUES_API_SUFFIX,buildCommandOptions:()=>({method:`PUT`,path:ENV_USER_VALUES_ENDPOINT}),buildRawPayload:(_model,{context})=>({environment:PROJECT_ENVIRONMENT,...selectedSessionId.value?{sessionId:selectedSessionId.value}:{},values:context.values||{}}),fallbackRunError:`Env value could not be saved.`,messages:{error:`Env value could not be saved.`,success:`Env saved.`},ownershipFilter:ROUTE_VISIBILITY_PUBLIC,placementSource:`vibe64.env.user-values.save`,surfaceId:`app`,writeMethod:`PUT`});const revealCommand=useCommand({access:`never`,apiSuffix:VIBE64_ENV_SECRET_REVEAL_API_SUFFIX,buildCommandOptions:()=>({method:`POST`,path:ENV_SECRET_REVEAL_ENDPOINT}),buildRawPayload:(_model,{context})=>({environment:PROJECT_ENVIRONMENT,key:context.key,...selectedSessionId.value?{sessionId:selectedSessionId.value}:{}}),fallbackRunError:`Env secret could not be revealed.`,messages:{error:`Env secret could not be revealed.`},ownershipFilter:ROUTE_VISIBILITY_PUBLIC,placementSource:`vibe64.env.secret.reveal`,suppressSuccessMessage:true,surfaceId:`app`,writeMethod:`POST`});const{clearRevealedSecrets,hideSecret,revealedSecrets,revealSecret,secretRevealBusyKey}=useRuntimeConfigSecretReveal({async revealValue(key){const response=await revealCommand.run({key});return response?.ok===false?null:response?.value}});const downloadCommand=useCommand({access:`never`,apiSuffix:VIBE64_ENV_DOWNLOAD_API_SUFFIX,buildCommandOptions:()=>({method:`POST`,path:ENV_DOWNLOAD_ENDPOINT}),buildRawPayload:()=>({environment:PROJECT_ENVIRONMENT,...selectedSessionId.value?{sessionId:selectedSessionId.value}:{}}),fallbackRunError:`Env could not be downloaded.`,messages:{error:`Env could not be downloaded.`},ownershipFilter:ROUTE_VISIBILITY_PUBLIC,placementSource:`vibe64.env.download`,suppressSuccessMessage:true,surfaceId:`app`,writeMethod:`POST`});const{downloadBusy,downloadDotenv,downloadError}=useRuntimeConfigDotenvDownload({fileName:()=>`${projectSlug.value}-${PROJECT_ENVIRONMENT_LABEL}.env`,async readContent(){return(await downloadCommand.run())?.content}});watch([projectSlug,selectedSessionId],()=>{clearRevealedSecrets();downloadError.value=``});const env=computed(()=>envResource.data.value?.env||{});const envConfigSourceLabel=computed(()=>String(env.value?.configSource?.label||``));const envInitialLoading=computed(()=>envResource.isInitialLoading.value===true);const refreshBusy=ref(false);const envLoadError=computed(()=>String(envResource.loadError.value||``));const envUnavailable=computed(()=>Boolean(env.value?.unavailable));const envUnavailableMessage=computed(()=>String(env.value?.unavailable?.message||`Project Env is unavailable. Fix the project configuration and try again.`));const saveBusy=computed(()=>saveCommand.isRunning===true);const records=computed(()=>Array.isArray(env.value?.records)?env.value.records:[]);const missingRecords=computed(()=>records.value.filter(recordMissing));const expectedMissingRecords=computed(()=>missingRecords.value.filter(recordEditable));async function refresh(){refreshBusy.value=true;try{await reloadEnv()}finally{refreshBusy.value=false}}async function reloadEnv(){clearRevealedSecrets();await envResource.reload()}async function saveValues(values={},{waitForRefresh=true}={}){for(const key of Object.keys(values))hideSecret(key);await saveCommand.run({values});const refreshed=envResource.reload();if(waitForRefresh)await refreshed}return{downloadBusy,downloadDotenv,downloadError,envConfigSourceLabel,envInitialLoading,envLoadError,envUnavailable,envUnavailableMessage,expectedMissingRecords,hideSecret,missingRecords,records,refresh,refreshBusy,reloadEnv,revealedSecrets,revealSecret,saveBusy,saveValues,secretRevealBusyKey}}var _hoisted_1$1={class:`env-panel`};var _hoisted_2={key:3,class:`env-panel__expected`};var _hoisted_3={class:`env-panel__section-heading env-panel__section-heading--inline`};var _hoisted_4={class:`env-panel__expected-keys`};var _hoisted_5={class:`env-panel__add`};var _hoisted_6={key:1,class:`env-panel__add-error`,role:`alert`};var PROJECT_ENV_TAB=`dev`;var _sfc_main$1={__name:`EnvPanel`,setup(__props){const projectSlug=useVibe64ProjectSlug();const selectedSessionId=useVibe64SessionSelection({projectSlug}).selectedId;const activeTab=ref(PROJECT_ENV_TAB);const savedValues=useVibe64SavedEnvValues();const newValue=ref(emptyNewValue());const route=useRoute();watch(()=>[route.query.prefillKey,route.query.prefillValue,route.query.prefillSecret],([key,value,secret])=>{if(typeof key!==`string`||!/^[A-Z_][A-Z0-9_]*$/u.test(key)||key.length>200)return;if(secret===`true`)newValue.value={key,value:``,secret:true};else if(value===void 0||typeof value===`string`&&value.length<=4096)newValue.value={key,value:value??``,secret:false}},{immediate:true});const pendingRemoval=ref(null);const{downloadBusy,downloadDotenv,downloadError,envConfigSourceLabel,envInitialLoading,envLoadError,envUnavailable,envUnavailableMessage,expectedMissingRecords,hideSecret,missingRecords,records,refresh,refreshBusy,reloadEnv,revealedSecrets,revealSecret,saveBusy,saveValues,secretRevealBusyKey}=useVibe64ProjectEnv({projectSlug,selectedSessionId});const addBusy=ref(false);const addError=ref(``);const removeError=ref(``);watch([projectSlug,selectedSessionId],()=>{addError.value=``});const removeConfirmOpen=computed({get:()=>Boolean(pendingRemoval.value),set:open=>{if(!open&&!saveBusy.value)pendingRemoval.value=null}});const pendingRemovalKey=computed(()=>String(pendingRemoval.value?.key||``));const projectEnvTabActive=computed(()=>activeTab.value===PROJECT_ENV_TAB);const existingNewValue=computed(()=>records.value.some(record=>record.key===String(newValue.value.key||``).trim()&&record.valuePresent===true));const environmentLabel=PROJECT_ENVIRONMENT_LABEL;function emptyNewValue(){return{key:``,secret:true,value:``}}function selectExpectedRecord(record={}){const key=String(record.key||``).trim();if(!key)return;newValue.value={key,secret:record.secret===true,value:``}}async function saveRecord({record={},value=``}={}){if(!recordEditable(record))return;await saveValues({[record.key]:{secret:record.secret===true,value}},{waitForRefresh:false})}function requestRemoveRecord(record={}){if(!recordEditable(record))return;removeError.value=``;pendingRemoval.value=record}function cancelRemoveRecord(){if(!saveBusy.value)pendingRemoval.value=null}async function confirmRemoveRecord(){const record=pendingRemoval.value;if(!recordEditable(record)){pendingRemoval.value=null;return}removeError.value=``;try{await saveValues({[record.key]:{remove:true}});pendingRemoval.value=null}catch(error){removeError.value=String(error?.message||`${record.key} could not be removed.`)}}async function saveNewValue(){const key=String(newValue.value.key||``).trim();if(!key)return;addBusy.value=true;addError.value=``;try{await saveValues({[key]:{secret:newValue.value.secret===true,value:envValueWithoutFinalLineEnding(newValue.value.value)}});newValue.value=emptyNewValue()}catch(error){addError.value=String(error?.message||`${key} could not be saved.`)}finally{addBusy.value=false}}async function savedValueChanged(){newValue.value=emptyNewValue();await reloadEnv()}return(_ctx,_cache)=>{return openBlock(),createElementBlock(`section`,_hoisted_1$1,[createVNode(Vibe64DashboardPageHeader_default,{description:`Values supplied to this project's development processes.`,icon:`$settingsApplications`,title:`Env`},{meta:withCtx(()=>[unref(envConfigSourceLabel)?(openBlock(),createBlock(VChip,{key:0,class:`env-panel__source`,label:``,size:`small`,variant:`tonal`},{default:withCtx(()=>[createTextVNode(toDisplayString(unref(envConfigSourceLabel)),1)]),_:1})):createCommentVNode(``,true)]),actions:withCtx(()=>[projectEnvTabActive.value?(openBlock(),createElementBlock(Fragment,{key:0},[createVNode(VBtn,{disabled:unref(envInitialLoading),loading:unref(downloadBusy),"prepend-icon":`$download`,rounded:`pill`,type:`button`,variant:`tonal`,onClick:unref(downloadDotenv)},{default:withCtx(()=>[..._cache[6]||(_cache[6]=[createTextVNode(` Download .env `,-1)])]),_:1},8,[`disabled`,`loading`,`onClick`]),createVNode(VBtn,{loading:unref(refreshBusy),"prepend-icon":`$refresh`,rounded:`pill`,type:`button`,variant:`tonal`,onClick:unref(refresh)},{default:withCtx(()=>[..._cache[7]||(_cache[7]=[createTextVNode(` Refresh `,-1)])]),_:1},8,[`loading`,`onClick`])],64)):createCommentVNode(``,true),renderSlot(_ctx.$slots,`tab-actions`,{activeTab:activeTab.value},void 0,true)]),_:3}),createVNode(VTabs,{modelValue:activeTab.value,"onUpdate:modelValue":_cache[0]||(_cache[0]=$event=>activeTab.value=$event),class:`env-panel__tabs`,color:`primary`,density:`comfortable`},{default:withCtx(()=>[createVNode(VTab,{value:PROJECT_ENV_TAB},{default:withCtx(()=>[..._cache[8]||(_cache[8]=[createTextVNode(`Development`,-1)])]),_:1}),renderSlot(_ctx.$slots,`tabs`,{},void 0,true)]),_:3},8,[`modelValue`]),projectEnvTabActive.value&&(unref(envInitialLoading)||unref(envLoadError))?(openBlock(),createBlock(Vibe64AsyncModuleState_default,{key:0,label:`Env`,loading:unref(envInitialLoading),message:unref(envLoadError)||`Loading Env.`,"min-height":`12rem`,onReload:unref(reloadPage),onRetry:unref(refresh)},null,8,[`loading`,`message`,`onReload`,`onRetry`])):projectEnvTabActive.value?(openBlock(),createElementBlock(Fragment,{key:1},[unref(downloadError)?(openBlock(),createBlock(VAlert,{key:0,class:`env-panel__alert`,closable:``,density:`compact`,type:`error`,variant:`tonal`,"onClick:close":_cache[1]||(_cache[1]=$event=>downloadError.value=``)},{default:withCtx(()=>[createTextVNode(toDisplayString(unref(downloadError)),1)]),_:1})):createCommentVNode(``,true),unref(envUnavailable)?(openBlock(),createBlock(VAlert,{key:1,class:`env-panel__alert`,type:`info`,variant:`tonal`,density:`compact`},{default:withCtx(()=>[createTextVNode(toDisplayString(unref(envUnavailableMessage)),1)]),_:1})):createCommentVNode(``,true),unref(missingRecords).length?(openBlock(),createBlock(VAlert,{key:2,class:`env-panel__alert`,type:`warning`,variant:`tonal`,density:`compact`},{default:withCtx(()=>[createTextVNode(` Missing `+toDisplayString(unref(environmentLabel))+` value(s): `+toDisplayString(unref(missingRecords).map(record=>record.key).join(`, `)),1)]),_:1})):createCommentVNode(``,true),unref(expectedMissingRecords).length?(openBlock(),createElementBlock(`section`,_hoisted_2,[createBaseVNode(`div`,_hoisted_3,[_cache[9]||(_cache[9]=createBaseVNode(`h2`,null,`Expected user values`,-1)),createVNode(VChip,{size:`x-small`,variant:`tonal`},{default:withCtx(()=>[createTextVNode(toDisplayString(unref(expectedMissingRecords).length),1)]),_:1})]),createBaseVNode(`div`,_hoisted_4,[(openBlock(true),createElementBlock(Fragment,null,renderList(unref(expectedMissingRecords),record=>{return openBlock(),createBlock(VBtn,{key:`expected:${record.key}`,size:`small`,type:`button`,variant:`tonal`,onClick:$event=>selectExpectedRecord(record)},{default:withCtx(()=>[createTextVNode(toDisplayString(record.key),1)]),_:2},1032,[`onClick`])}),128))])])):createCommentVNode(``,true),existingNewValue.value?(openBlock(),createBlock(VAlert,{key:4,type:`info`,variant:`tonal`},{default:withCtx(()=>[createTextVNode(toDisplayString(newValue.value.key)+` already has a value. Saving replaces this value in development; other Env values stay unchanged. `,1)]),_:1})):createCommentVNode(``,true),createBaseVNode(`section`,_hoisted_5,[createVNode(VTextField,{modelValue:newValue.value.key,"onUpdate:modelValue":_cache[2]||(_cache[2]=$event=>newValue.value.key=$event),density:`compact`,"hide-details":``,label:`Key`,spellcheck:`false`,variant:`outlined`},null,8,[`modelValue`]),createVNode(VTextField,{modelValue:newValue.value.value,"onUpdate:modelValue":_cache[3]||(_cache[3]=$event=>newValue.value.value=$event),type:newValue.value.secret?`password`:`text`,density:`compact`,"hide-details":``,label:`Value`,spellcheck:`false`,variant:`outlined`},null,8,[`modelValue`,`type`]),createVNode(VCheckbox,{modelValue:newValue.value.secret,"onUpdate:modelValue":_cache[4]||(_cache[4]=$event=>newValue.value.secret=$event),density:`compact`,"hide-details":``,label:`Secret`},null,8,[`modelValue`]),createVNode(VBtn,{disabled:!newValue.value.key||unref(saveBusy)&&!addBusy.value,loading:addBusy.value,color:`primary`,type:`button`,variant:`flat`,onClick:saveNewValue},{default:withCtx(()=>[createTextVNode(toDisplayString(existingNewValue.value?`Replace value`:`Add`),1)]),_:1},8,[`disabled`,`loading`]),unref(savedValues)?(openBlock(),createBlock(resolveDynamicComponent(unref(savedValues).component),{key:0,environment:unref(savedEnvValueEnvironment)(unref(environmentLabel)),"has-value":existingNewValue.value,placement:`env-add`,"project-slug":unref(projectSlug),secret:newValue.value.secret===true,variable:String(newValue.value.key||``).trim(),onChanged:savedValueChanged},null,40,[`environment`,`has-value`,`project-slug`,`secret`,`variable`])):createCommentVNode(``,true),addError.value?(openBlock(),createElementBlock(`p`,_hoisted_6,toDisplayString(addError.value),1)):createCommentVNode(``,true)]),createVNode(RuntimeConfigRecordsView_default,{"editable-empty-text":`No user Env values.`,"editable-title":`User values`,"environment-label":unref(environmentLabel),records:unref(records),"revealed-secrets":unref(revealedSecrets),"save-busy":unref(saveBusy),"secret-reveal-busy-key":unref(secretRevealBusyKey),"secret-reveal-enabled":``,"system-title":`System values`,onHideSecret:unref(hideSecret),onRemoveRecord:requestRemoveRecord,onRevealSecret:unref(revealSecret),onSaveRecord:saveRecord,onSavedValueChanged:unref(reloadEnv)},null,8,[`environment-label`,`records`,`revealed-secrets`,`save-busy`,`secret-reveal-busy-key`,`onHideSecret`,`onRevealSecret`,`onSavedValueChanged`])],64)):renderSlot(_ctx.$slots,`tab-panel`,{activeTab:activeTab.value},void 0,true,2),createVNode(VDialog,{modelValue:removeConfirmOpen.value,"onUpdate:modelValue":_cache[5]||(_cache[5]=$event=>removeConfirmOpen.value=$event),"max-width":`30rem`},{default:withCtx(()=>[createVNode(VCard,null,{default:withCtx(()=>[createVNode(VCardTitle,null,{default:withCtx(()=>[..._cache[10]||(_cache[10]=[createTextVNode(`Remove Env value?`,-1)])]),_:1}),createVNode(VCardText,null,{default:withCtx(()=>[createBaseVNode(`code`,null,toDisplayString(pendingRemovalKey.value),1),_cache[11]||(_cache[11]=createTextVNode(` will no longer be supplied to this project's development processes. `,-1)),removeError.value?(openBlock(),createBlock(VAlert,{key:0,class:`mt-3`,density:`compact`,type:`error`,variant:`tonal`},{default:withCtx(()=>[createTextVNode(toDisplayString(removeError.value),1)]),_:1})):createCommentVNode(``,true)]),_:1}),createVNode(VCardActions,null,{default:withCtx(()=>[createVNode(VSpacer),createVNode(VBtn,{disabled:unref(saveBusy),type:`button`,variant:`text`,onClick:cancelRemoveRecord},{default:withCtx(()=>[..._cache[12]||(_cache[12]=[createTextVNode(` Cancel `,-1)])]),_:1},8,[`disabled`]),createVNode(VBtn,{color:`error`,loading:unref(saveBusy),type:`button`,variant:`flat`,onClick:confirmRemoveRecord},{default:withCtx(()=>[..._cache[13]||(_cache[13]=[createTextVNode(` Remove `,-1)])]),_:1},8,[`loading`])]),_:1})]),_:1})]),_:1},8,[`modelValue`])])}}};var EnvPanel_default=_plugin_vue_export_helper_default(_sfc_main$1,[[`__scopeId`,`data-v-6c975391`]]);var _hoisted_1={class:`vibe64-dashboard-page`};var _sfc_main={__name:`index`,setup(__props){return(_ctx,_cache)=>{return openBlock(),createElementBlock(`section`,_hoisted_1,[createVNode(EnvPanel_default)])}}};var env_default=_plugin_vue_export_helper_default(_sfc_main,[[`__scopeId`,`data-v-c6bb4035`]]);export{env_default as default};
@@ -1 +1 @@
1
- .runtime-config-records-table[data-v-d55963fd]{border:1px solid rgba(var(--v-theme-on-surface), .1);border-radius:8px;width:100%;overflow:hidden;container:runtime-config-records/inline-size}.runtime-config-records-table[data-v-d55963fd] table{table-layout:fixed;width:100%}.runtime-config-records-table__key-column[data-v-d55963fd]{width:26%}.runtime-config-records-table__value-column[data-v-d55963fd]{width:34%}.runtime-config-records-table__actions-column[data-v-d55963fd]{width:40%}.runtime-config-records-table th[data-v-d55963fd],.runtime-config-records-table td[data-v-d55963fd]{vertical-align:middle;min-width:0}.runtime-config-records-table__key[data-v-d55963fd]{appearance:none;background:rgb(var(--v-theme-primary-container));border-radius:var(--v64-shape-sm,8px);color:rgb(var(--v-theme-on-primary-container));cursor:pointer;overflow-wrap:anywhere;text-align:left;border:0;max-width:100%;padding:2px 8px;font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,monospace;font-size:.86rem;font-weight:650}.runtime-config-records-table__key[data-v-d55963fd]:hover{background:color-mix(in srgb, rgb(var(--v-theme-primary)) 22%, rgb(var(--v-theme-surface)))}.runtime-config-records-table__key[data-v-d55963fd]:focus-visible{outline:2px solid rgb(var(--v-theme-primary));outline-offset:2px}.runtime-config-records-table__secret-value[data-v-d55963fd]{grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:.25rem;min-width:0;display:grid}.runtime-config-records-table__secret-value code[data-v-d55963fd]{white-space:nowrap;min-width:0;overflow-x:auto}.runtime-config-records-table__edit[data-v-d55963fd]{flex-wrap:wrap;align-items:center;gap:.5rem;min-width:0;padding-block:4px;display:flex}.runtime-config-records-table__edit>.v-input[data-v-d55963fd]{flex:7rem}.runtime-config-records-table__linked[data-v-d55963fd]{background:rgb(var(--v-theme-surface-container));border-radius:var(--v64-shape-sm,8px);color:rgb(var(--v-theme-on-surface-variant));align-items:center;gap:6px;min-width:0;max-width:100%;margin-block:6px;padding:4px 10px 4px 8px;display:inline-flex}.runtime-config-records-table__linked-icon[data-v-d55963fd]{color:rgb(var(--v-theme-primary));flex:none}.runtime-config-records-table__linked-label[data-v-d55963fd]{font:var(--v64-type-label-lg,500 .875rem/1.25rem system-ui, sans-serif);-webkit-line-clamp:2;overflow-wrap:anywhere;-webkit-box-orient:vertical;min-width:0;display:-webkit-box;overflow:hidden}.runtime-config-records-table__edit-actions[data-v-d55963fd]{flex:none;align-items:center;gap:.25rem;margin-inline-start:auto;display:inline-flex}.runtime-config-records-table__saved-actions[data-v-d55963fd]{justify-content:flex-end;align-items:center;min-width:0;min-height:40px;display:flex}.runtime-config-records-table__edit[data-v-d55963fd] .v-field{min-width:0}@container runtime-config-records (width<=56rem){.runtime-config-records-table__edit>.v-input[data-v-d55963fd]{flex-basis:100%}}@container runtime-config-records (width<=40rem){.runtime-config-records-table[data-v-d55963fd] table,.runtime-config-records-table[data-v-d55963fd] tbody{min-width:0;display:block}.runtime-config-records-table[data-v-d55963fd] colgroup,.runtime-config-records-table[data-v-d55963fd] thead{display:none}.runtime-config-records-table[data-v-d55963fd] tbody>tr{grid-template-columns:minmax(0,1fr);gap:4px;padding:10px 12px;display:grid}.runtime-config-records-table[data-v-d55963fd] tbody>tr+tr{border-top:thin solid rgba(var(--v-border-color), var(--v-border-opacity))}.runtime-config-records-table[data-v-d55963fd] tbody>tr>td{min-width:0;border:0!important;height:auto!important;padding:0!important}}.runtime-config-records[data-v-bcf2f6c4]{gap:.85rem;min-width:0;display:grid}.runtime-config-records__section[data-v-bcf2f6c4]{gap:.5rem;min-width:0;display:grid}.runtime-config-records__heading[data-v-bcf2f6c4]{justify-content:flex-start;align-items:center;gap:.5rem;display:flex}.runtime-config-records__heading h2[data-v-bcf2f6c4]{font:var(--v64-type-title-md,600 1rem/1.5rem system-ui, sans-serif);letter-spacing:0;margin:0}.runtime-config-records__empty[data-v-bcf2f6c4]{border:1px dashed rgb(var(--v-theme-outline));border-radius:var(--v64-shape-lg,16px);color:rgb(var(--v-theme-on-surface-variant));font:var(--v64-type-body-md,400 .875rem/1.25rem system-ui, sans-serif);padding:var(--v64-space-5,24px) var(--v64-space-4,16px);text-align:center;margin:0}.runtime-config-records__system-title[data-v-bcf2f6c4]{align-items:center;gap:.5rem;min-width:0;display:inline-flex}.env-panel[data-v-850e0f41]{gap:var(--v64-space-4,16px);min-width:0;display:grid}.env-panel__source[data-v-850e0f41]{font-weight:600}.env-panel__tabs[data-v-850e0f41]{border-bottom:1px solid rgb(var(--v-theme-outline-variant))}.env-panel__tabs[data-v-850e0f41] .v-tab{letter-spacing:0;text-transform:none}.env-panel__alert[data-v-850e0f41]{border-radius:var(--v64-shape-md,12px)}.env-panel__expected[data-v-850e0f41],.env-panel__add[data-v-850e0f41]{background:rgb(var(--v-theme-surface-container-low));border:1px solid rgb(var(--v-theme-outline-variant));border-radius:var(--v64-shape-lg,16px)}.env-panel__add[data-v-850e0f41]{align-items:center;gap:var(--v64-space-3,12px);padding:var(--v64-space-4,16px);flex-wrap:wrap;display:flex}.env-panel__add>.v-text-field[data-v-850e0f41]:first-child{flex:1.1 10rem}.env-panel__add>.v-text-field[data-v-850e0f41]:nth-child(2){flex:1.4 12rem}.env-panel__add>.v-checkbox[data-v-850e0f41]{flex:none}.env-panel__add[data-v-850e0f41] .v-field{background:rgb(var(--v-theme-surface));border-radius:var(--v64-shape-sm,8px)}.env-panel__add-error[data-v-850e0f41]{color:rgb(var(--v-theme-error));font:var(--v64-type-body-sm,400 .75rem/1rem system-ui, sans-serif);flex:100%;margin:0}.env-panel__add>.v-btn[data-v-850e0f41]{border-radius:var(--v64-shape-full,999px);padding-inline:var(--v64-space-5,24px)}.env-panel__expected[data-v-850e0f41]{gap:var(--v64-space-2,8px);min-width:0;display:grid;overflow:hidden}.env-panel__section-heading[data-v-850e0f41]{align-items:center;gap:var(--v64-space-2,8px);padding:var(--v64-space-3,12px) var(--v64-space-4,16px) 0;justify-content:space-between;display:flex}.env-panel__section-heading--inline[data-v-850e0f41]{justify-content:flex-start}.env-panel__section-heading h2[data-v-850e0f41]{font:var(--v64-type-title-md,600 1rem/1.5rem system-ui, sans-serif);letter-spacing:0;margin:0}.env-panel__expected-keys[data-v-850e0f41]{align-items:center;gap:var(--v64-space-2,8px);padding:0 var(--v64-space-4,16px) var(--v64-space-4,16px);flex-wrap:wrap;display:flex}@media (width<=900px){.env-panel__add[data-v-850e0f41]{flex-direction:column;align-items:stretch}.env-panel__add>.v-text-field[data-v-850e0f41]:nth-child(n){flex:none}}.vibe64-dashboard-page[data-v-c6bb4035]{gap:.75rem;min-width:0;display:grid}
1
+ .runtime-config-records-table[data-v-d55963fd]{border:1px solid rgba(var(--v-theme-on-surface), .1);border-radius:8px;width:100%;overflow:hidden;container:runtime-config-records/inline-size}.runtime-config-records-table[data-v-d55963fd] table{table-layout:fixed;width:100%}.runtime-config-records-table__key-column[data-v-d55963fd]{width:26%}.runtime-config-records-table__value-column[data-v-d55963fd]{width:34%}.runtime-config-records-table__actions-column[data-v-d55963fd]{width:40%}.runtime-config-records-table th[data-v-d55963fd],.runtime-config-records-table td[data-v-d55963fd]{vertical-align:middle;min-width:0}.runtime-config-records-table__key[data-v-d55963fd]{appearance:none;background:rgb(var(--v-theme-primary-container));border-radius:var(--v64-shape-sm,8px);color:rgb(var(--v-theme-on-primary-container));cursor:pointer;overflow-wrap:anywhere;text-align:left;border:0;max-width:100%;padding:2px 8px;font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,monospace;font-size:.86rem;font-weight:650}.runtime-config-records-table__key[data-v-d55963fd]:hover{background:color-mix(in srgb, rgb(var(--v-theme-primary)) 22%, rgb(var(--v-theme-surface)))}.runtime-config-records-table__key[data-v-d55963fd]:focus-visible{outline:2px solid rgb(var(--v-theme-primary));outline-offset:2px}.runtime-config-records-table__secret-value[data-v-d55963fd]{grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:.25rem;min-width:0;display:grid}.runtime-config-records-table__secret-value code[data-v-d55963fd]{white-space:nowrap;min-width:0;overflow-x:auto}.runtime-config-records-table__edit[data-v-d55963fd]{flex-wrap:wrap;align-items:center;gap:.5rem;min-width:0;padding-block:4px;display:flex}.runtime-config-records-table__edit>.v-input[data-v-d55963fd]{flex:7rem}.runtime-config-records-table__linked[data-v-d55963fd]{background:rgb(var(--v-theme-surface-container));border-radius:var(--v64-shape-sm,8px);color:rgb(var(--v-theme-on-surface-variant));align-items:center;gap:6px;min-width:0;max-width:100%;margin-block:6px;padding:4px 10px 4px 8px;display:inline-flex}.runtime-config-records-table__linked-icon[data-v-d55963fd]{color:rgb(var(--v-theme-primary));flex:none}.runtime-config-records-table__linked-label[data-v-d55963fd]{font:var(--v64-type-label-lg,500 .875rem/1.25rem system-ui, sans-serif);-webkit-line-clamp:2;overflow-wrap:anywhere;-webkit-box-orient:vertical;min-width:0;display:-webkit-box;overflow:hidden}.runtime-config-records-table__edit-actions[data-v-d55963fd]{flex:none;align-items:center;gap:.25rem;margin-inline-start:auto;display:inline-flex}.runtime-config-records-table__saved-actions[data-v-d55963fd]{justify-content:flex-end;align-items:center;min-width:0;min-height:40px;display:flex}.runtime-config-records-table__edit[data-v-d55963fd] .v-field{min-width:0}@container runtime-config-records (width<=56rem){.runtime-config-records-table__edit>.v-input[data-v-d55963fd]{flex-basis:100%}}@container runtime-config-records (width<=40rem){.runtime-config-records-table[data-v-d55963fd] table,.runtime-config-records-table[data-v-d55963fd] tbody{min-width:0;display:block}.runtime-config-records-table[data-v-d55963fd] colgroup,.runtime-config-records-table[data-v-d55963fd] thead{display:none}.runtime-config-records-table[data-v-d55963fd] tbody>tr{grid-template-columns:minmax(0,1fr);gap:4px;padding:10px 12px;display:grid}.runtime-config-records-table[data-v-d55963fd] tbody>tr+tr{border-top:thin solid rgba(var(--v-border-color), var(--v-border-opacity))}.runtime-config-records-table[data-v-d55963fd] tbody>tr>td{min-width:0;border:0!important;height:auto!important;padding:0!important}}.runtime-config-records[data-v-bcf2f6c4]{gap:.85rem;min-width:0;display:grid}.runtime-config-records__section[data-v-bcf2f6c4]{gap:.5rem;min-width:0;display:grid}.runtime-config-records__heading[data-v-bcf2f6c4]{justify-content:flex-start;align-items:center;gap:.5rem;display:flex}.runtime-config-records__heading h2[data-v-bcf2f6c4]{font:var(--v64-type-title-md,600 1rem/1.5rem system-ui, sans-serif);letter-spacing:0;margin:0}.runtime-config-records__empty[data-v-bcf2f6c4]{border:1px dashed rgb(var(--v-theme-outline));border-radius:var(--v64-shape-lg,16px);color:rgb(var(--v-theme-on-surface-variant));font:var(--v64-type-body-md,400 .875rem/1.25rem system-ui, sans-serif);padding:var(--v64-space-5,24px) var(--v64-space-4,16px);text-align:center;margin:0}.runtime-config-records__system-title[data-v-bcf2f6c4]{align-items:center;gap:.5rem;min-width:0;display:inline-flex}.env-panel[data-v-6c975391]{gap:var(--v64-space-4,16px);min-width:0;display:grid}.env-panel__source[data-v-6c975391]{font-weight:600}.env-panel__tabs[data-v-6c975391]{border-bottom:1px solid rgb(var(--v-theme-outline-variant))}.env-panel__tabs[data-v-6c975391] .v-tab{letter-spacing:0;text-transform:none}.env-panel__alert[data-v-6c975391]{border-radius:var(--v64-shape-md,12px)}.env-panel__expected[data-v-6c975391],.env-panel__add[data-v-6c975391]{background:rgb(var(--v-theme-surface-container-low));border:1px solid rgb(var(--v-theme-outline-variant));border-radius:var(--v64-shape-lg,16px)}.env-panel__add[data-v-6c975391]{align-items:center;gap:var(--v64-space-3,12px);padding:var(--v64-space-4,16px);flex-wrap:wrap;display:flex}.env-panel__add>.v-text-field[data-v-6c975391]:first-child{flex:1.1 10rem}.env-panel__add>.v-text-field[data-v-6c975391]:nth-child(2){flex:1.4 12rem}.env-panel__add>.v-checkbox[data-v-6c975391]{flex:none}.env-panel__add[data-v-6c975391] .v-field{background:rgb(var(--v-theme-surface));border-radius:var(--v64-shape-sm,8px)}.env-panel__add-error[data-v-6c975391]{color:rgb(var(--v-theme-error));font:var(--v64-type-body-sm,400 .75rem/1rem system-ui, sans-serif);flex:100%;margin:0}.env-panel__add>.v-btn[data-v-6c975391]{border-radius:var(--v64-shape-full,999px);padding-inline:var(--v64-space-5,24px)}.env-panel__expected[data-v-6c975391]{gap:var(--v64-space-2,8px);min-width:0;display:grid;overflow:hidden}.env-panel__section-heading[data-v-6c975391]{align-items:center;gap:var(--v64-space-2,8px);padding:var(--v64-space-3,12px) var(--v64-space-4,16px) 0;justify-content:space-between;display:flex}.env-panel__section-heading--inline[data-v-6c975391]{justify-content:flex-start}.env-panel__section-heading h2[data-v-6c975391]{font:var(--v64-type-title-md,600 1rem/1.5rem system-ui, sans-serif);letter-spacing:0;margin:0}.env-panel__expected-keys[data-v-6c975391]{align-items:center;gap:var(--v64-space-2,8px);padding:0 var(--v64-space-4,16px) var(--v64-space-4,16px);flex-wrap:wrap;display:flex}@media (width<=900px){.env-panel__add[data-v-6c975391]{flex-direction:column;align-items:stretch}.env-panel__add>.v-text-field[data-v-6c975391]:nth-child(n){flex:none}}.vibe64-dashboard-page[data-v-c6bb4035]{gap:.75rem;min-width:0;display:grid}
@@ -1 +1 @@
1
- import{Et as unref,G as renderList,H as openBlock,K as renderSlot,Kt as normalizeClass,Xt as toDisplayString,b as createVNode,d as createBaseVNode,f as createBlock,i as Fragment,m as createElementBlock,ot as withCtx,p as createCommentVNode,y as createTextVNode}from"./runtime-core.esm-bundler-Bi1P1jMa.js";import{S as VIcon,t as VChip}from"./VChip-D2IukBZw.js";import{n as VAlert,t as VSkeletonLoader}from"./VSkeletonLoader-Bl9P5wdh.js";import{t as VBtn}from"./VBtn-2vbH580C.js";import{t as VSheet}from"./VSheet-D5wAuyc2.js";import{n as VCardText,t as VCard}from"./VCard-BFqQSnAE.js";import{t as _plugin_vue_export_helper_default}from"./_plugin-vue_export-helper-DNW4j-dv.js";import{c as vibe64SessionStatusColor,i as vibe64SessionDisplayTitle,l as vibe64SessionStatusLabel}from"./vibe64SessionViewModel-CQCds_jb.js";import{t as Vibe64UnavailableSessions_default}from"./Vibe64UnavailableSessions-CaLRMl-0.js";import{t as Vibe64DashboardPageHeader_default}from"./Vibe64DashboardPageHeader-xfRLZ94G.js";import{a as useArchivedVibe64Sessions,n as archivedVibe64SessionsEmits,r as archivedVibe64SessionsProps}from"./useArchivedVibe64Sessions-B_pM75gN.js";var _hoisted_1$1={class:`studio-archived-sessions d-flex flex-column ga-3`};var _hoisted_2={key:0,class:`studio-archived-sessions__copy`};var _hoisted_3={class:`text-headline-small font-weight-bold ma-0`};var _hoisted_4={key:0,class:`text-body-medium on-surface-variant mb-0`};var _hoisted_5={key:2,"aria-label":`Loading archived sessions`,class:`studio-archived-sessions__grid`,role:`status`};var _hoisted_6={class:`studio-archived-sessions__card-heading`};var _hoisted_7={class:`studio-archived-sessions__identity`};var _hoisted_8={class:`text-title-medium mb-1`};var _hoisted_9={class:`text-body-medium on-surface-variant mb-0`};var _hoisted_10={key:4,class:`studio-archived-sessions__grid`};var _hoisted_11={class:`studio-archived-sessions__card-heading`};var _hoisted_12={class:`studio-archived-sessions__icon`};var _hoisted_13={class:`studio-archived-sessions__identity`};var _hoisted_14={class:`studio-archived-sessions__session-id`};var _hoisted_15={class:`studio-archived-sessions__meta`};var _hoisted_16=[`datetime`];var _hoisted_17={key:5,class:`studio-archived-sessions__more`};var _hoisted_18={class:`text-body-small on-surface-variant`};var _sfc_main$1={__name:`ArchivedVibe64Sessions`,props:archivedVibe64SessionsProps,emits:archivedVibe64SessionsEmits,setup(__props,{expose:__expose,emit:__emit}){const{error,formatArchivedAt,hasMore,loadSessions,loading,sessionCount,sessionRoute,sessions,showMore,unavailableSessions}=useArchivedVibe64Sessions(__emit);__expose({refresh:loadSessions});return(_ctx,_cache)=>{return openBlock(),createElementBlock(`section`,_hoisted_1$1,[_ctx.title||_ctx.$slots.title||_ctx.description||_ctx.showRefresh?(openBlock(),createElementBlock(`div`,{key:0,class:normalizeClass([`studio-archived-sessions__header`,{"studio-archived-sessions__header--actions-only":!_ctx.title&&!_ctx.$slots.title&&!_ctx.description}])},[_ctx.title||_ctx.$slots.title||_ctx.description?(openBlock(),createElementBlock(`div`,_hoisted_2,[renderSlot(_ctx.$slots,`title`,{},()=>[createBaseVNode(`h2`,_hoisted_3,toDisplayString(_ctx.title),1)],true),_ctx.description?(openBlock(),createElementBlock(`p`,_hoisted_4,toDisplayString(_ctx.description),1)):createCommentVNode(``,true)])):createCommentVNode(``,true),_ctx.showRefresh?(openBlock(),createBlock(VBtn,{key:1,class:`studio-archived-sessions__refresh`,disabled:unref(loading),"prepend-icon":`$refresh`,size:`small`,variant:`tonal`,onClick:unref(loadSessions)},{default:withCtx(()=>[createTextVNode(toDisplayString(unref(loading)?`Refreshing…`:`Refresh`),1)]),_:1},8,[`disabled`,`onClick`])):createCommentVNode(``,true)],2)):createCommentVNode(``,true),unref(error)?(openBlock(),createBlock(VAlert,{key:1,type:`error`,variant:`tonal`,density:`comfortable`},{default:withCtx(()=>[createTextVNode(toDisplayString(unref(error)),1)]),_:1})):createCommentVNode(``,true),createVNode(Vibe64UnavailableSessions_default,{sessions:unref(unavailableSessions),loading:unref(loading),onRecheck:unref(loadSessions)},null,8,[`sessions`,`loading`,`onRecheck`]),unref(loading)&&unref(sessions).length<1?(openBlock(),createElementBlock(`div`,_hoisted_5,[(openBlock(),createElementBlock(Fragment,null,renderList(4,index=>{return createVNode(VCard,{key:`archived-session-skeleton-${index}`,class:`studio-archived-sessions__card`,rounded:`lg`},{default:withCtx(()=>[createVNode(VCardText,{class:`studio-archived-sessions__card-body`},{default:withCtx(()=>[createBaseVNode(`div`,_hoisted_6,[createVNode(VSkeletonLoader,{class:`studio-archived-sessions__skeleton-icon`,type:`avatar`}),createBaseVNode(`div`,_hoisted_7,[createVNode(VSkeletonLoader,{type:`text`}),createVNode(VSkeletonLoader,{type:`chip@2`})]),createVNode(VSkeletonLoader,{class:`studio-archived-sessions__skeleton-button`,type:`button`})])]),_:1})]),_:1})}),64))])):createCommentVNode(``,true),!unref(loading)&&unref(sessions).length<1&&!unref(unavailableSessions).length&&!unref(error)?(openBlock(),createBlock(VSheet,{key:3,rounded:`lg`,class:`studio-archived-sessions__empty`},{default:withCtx(()=>[createBaseVNode(`h2`,_hoisted_8,toDisplayString(_ctx.emptyTitle),1),createBaseVNode(`p`,_hoisted_9,toDisplayString(_ctx.emptyText),1)]),_:1})):createCommentVNode(``,true),unref(sessions).length?(openBlock(),createElementBlock(`div`,_hoisted_10,[(openBlock(true),createElementBlock(Fragment,null,renderList(unref(sessions),session=>{return openBlock(),createBlock(VCard,{key:session.sessionId,class:`studio-archived-sessions__card`,rounded:`lg`},{default:withCtx(()=>[createVNode(VCardText,{class:`studio-archived-sessions__card-body`},{default:withCtx(()=>[createBaseVNode(`div`,_hoisted_11,[createBaseVNode(`div`,_hoisted_12,[createVNode(VIcon,{icon:`$inventory2`,size:`22`})]),createBaseVNode(`div`,_hoisted_13,[createBaseVNode(`div`,_hoisted_14,toDisplayString(unref(vibe64SessionDisplayTitle)(session)),1),createBaseVNode(`div`,_hoisted_15,[createVNode(VChip,{color:unref(vibe64SessionStatusColor)(session.status),size:`x-small`,variant:`tonal`},{default:withCtx(()=>[createTextVNode(toDisplayString(unref(vibe64SessionStatusLabel)(session.status||`archived`)),1)]),_:2},1032,[`color`]),session.sourceReady?(openBlock(),createBlock(VChip,{key:0,color:`success`,size:`x-small`,variant:`tonal`},{default:withCtx(()=>[..._cache[0]||(_cache[0]=[createTextVNode(` source available `,-1)])]),_:1})):createCommentVNode(``,true)]),createBaseVNode(`time`,{class:`studio-archived-sessions__archived-at text-body-small on-surface-variant`,datetime:session.archivedAt||void 0},` Archived `+toDisplayString(unref(formatArchivedAt)(session.archivedAt)),9,_hoisted_16)]),createVNode(VBtn,{class:`studio-archived-sessions__view`,"prepend-icon":`$visibility`,size:`small`,to:unref(sessionRoute)(session),variant:`tonal`},{default:withCtx(()=>[..._cache[1]||(_cache[1]=[createTextVNode(` View `,-1)])]),_:1},8,[`to`])])]),_:2},1024)]),_:2},1024)}),128))])):createCommentVNode(``,true),unref(sessions).length&&unref(hasMore)?(openBlock(),createElementBlock(`div`,_hoisted_17,[createBaseVNode(`span`,_hoisted_18,` Showing `+toDisplayString(unref(sessions).length)+` of `+toDisplayString(unref(sessionCount)),1),createVNode(VBtn,{loading:unref(loading),disabled:unref(loading),"prepend-icon":`$expand`,variant:`tonal`,onClick:unref(showMore)},{default:withCtx(()=>[..._cache[2]||(_cache[2]=[createTextVNode(` Show more `,-1)])]),_:1},8,[`loading`,`disabled`,`onClick`])])):createCommentVNode(``,true)])}}};var ArchivedVibe64Sessions_default=_plugin_vue_export_helper_default(_sfc_main$1,[[`__scopeId`,`data-v-894e175b`]]);var _hoisted_1={class:`vibe64-dashboard-page`};var _sfc_main={__name:`index`,setup(__props){return(_ctx,_cache)=>{return openBlock(),createElementBlock(`section`,_hoisted_1,[createVNode(ArchivedVibe64Sessions_default,{"empty-text":`Archived chats will appear here after their active workspaces are removed.`,"empty-title":`No archived chats`},{title:withCtx(()=>[createVNode(Vibe64DashboardPageHeader_default,{description:`Archived chats and their conversations.`,icon:`$history`,title:`Session history`})]),_:1})])}}};var history_default=_plugin_vue_export_helper_default(_sfc_main,[[`__scopeId`,`data-v-fa2cb3fa`]]);export{history_default as default};
1
+ import{Et as unref,G as renderList,H as openBlock,K as renderSlot,Kt as normalizeClass,Xt as toDisplayString,b as createVNode,d as createBaseVNode,f as createBlock,i as Fragment,m as createElementBlock,ot as withCtx,p as createCommentVNode,y as createTextVNode}from"./runtime-core.esm-bundler-Bi1P1jMa.js";import{S as VIcon,t as VChip}from"./VChip-D2IukBZw.js";import{n as VAlert,t as VSkeletonLoader}from"./VSkeletonLoader-Bl9P5wdh.js";import{t as VBtn}from"./VBtn-2vbH580C.js";import{t as VSheet}from"./VSheet-D5wAuyc2.js";import{n as VCardText,t as VCard}from"./VCard-BFqQSnAE.js";import{t as _plugin_vue_export_helper_default}from"./_plugin-vue_export-helper-DNW4j-dv.js";import{c as vibe64SessionStatusColor,i as vibe64SessionDisplayTitle,l as vibe64SessionStatusLabel}from"./vibe64SessionViewModel-CQCds_jb.js";import{t as Vibe64UnavailableSessions_default}from"./Vibe64UnavailableSessions-Bd_-gPuL.js";import{t as Vibe64DashboardPageHeader_default}from"./Vibe64DashboardPageHeader-xfRLZ94G.js";import{a as useArchivedVibe64Sessions,n as archivedVibe64SessionsEmits,r as archivedVibe64SessionsProps}from"./useArchivedVibe64Sessions-C5Qguyob.js";var _hoisted_1$1={class:`studio-archived-sessions d-flex flex-column ga-3`};var _hoisted_2={key:0,class:`studio-archived-sessions__copy`};var _hoisted_3={class:`text-headline-small font-weight-bold ma-0`};var _hoisted_4={key:0,class:`text-body-medium on-surface-variant mb-0`};var _hoisted_5={key:2,"aria-label":`Loading archived sessions`,class:`studio-archived-sessions__grid`,role:`status`};var _hoisted_6={class:`studio-archived-sessions__card-heading`};var _hoisted_7={class:`studio-archived-sessions__identity`};var _hoisted_8={class:`text-title-medium mb-1`};var _hoisted_9={class:`text-body-medium on-surface-variant mb-0`};var _hoisted_10={key:4,class:`studio-archived-sessions__grid`};var _hoisted_11={class:`studio-archived-sessions__card-heading`};var _hoisted_12={class:`studio-archived-sessions__icon`};var _hoisted_13={class:`studio-archived-sessions__identity`};var _hoisted_14={class:`studio-archived-sessions__session-id`};var _hoisted_15={class:`studio-archived-sessions__meta`};var _hoisted_16=[`datetime`];var _hoisted_17={key:5,class:`studio-archived-sessions__more`};var _hoisted_18={class:`text-body-small on-surface-variant`};var _sfc_main$1={__name:`ArchivedVibe64Sessions`,props:archivedVibe64SessionsProps,emits:archivedVibe64SessionsEmits,setup(__props,{expose:__expose,emit:__emit}){const{error,formatArchivedAt,hasMore,loadSessions,loading,sessionCount,sessionRoute,sessions,showMore,unavailableSessions}=useArchivedVibe64Sessions(__emit);__expose({refresh:loadSessions});return(_ctx,_cache)=>{return openBlock(),createElementBlock(`section`,_hoisted_1$1,[_ctx.title||_ctx.$slots.title||_ctx.description||_ctx.showRefresh?(openBlock(),createElementBlock(`div`,{key:0,class:normalizeClass([`studio-archived-sessions__header`,{"studio-archived-sessions__header--actions-only":!_ctx.title&&!_ctx.$slots.title&&!_ctx.description}])},[_ctx.title||_ctx.$slots.title||_ctx.description?(openBlock(),createElementBlock(`div`,_hoisted_2,[renderSlot(_ctx.$slots,`title`,{},()=>[createBaseVNode(`h2`,_hoisted_3,toDisplayString(_ctx.title),1)],true),_ctx.description?(openBlock(),createElementBlock(`p`,_hoisted_4,toDisplayString(_ctx.description),1)):createCommentVNode(``,true)])):createCommentVNode(``,true),_ctx.showRefresh?(openBlock(),createBlock(VBtn,{key:1,class:`studio-archived-sessions__refresh`,disabled:unref(loading),"prepend-icon":`$refresh`,size:`small`,variant:`tonal`,onClick:unref(loadSessions)},{default:withCtx(()=>[createTextVNode(toDisplayString(unref(loading)?`Refreshing…`:`Refresh`),1)]),_:1},8,[`disabled`,`onClick`])):createCommentVNode(``,true)],2)):createCommentVNode(``,true),unref(error)?(openBlock(),createBlock(VAlert,{key:1,type:`error`,variant:`tonal`,density:`comfortable`},{default:withCtx(()=>[createTextVNode(toDisplayString(unref(error)),1)]),_:1})):createCommentVNode(``,true),createVNode(Vibe64UnavailableSessions_default,{sessions:unref(unavailableSessions),loading:unref(loading),onRecheck:unref(loadSessions)},null,8,[`sessions`,`loading`,`onRecheck`]),unref(loading)&&unref(sessions).length<1?(openBlock(),createElementBlock(`div`,_hoisted_5,[(openBlock(),createElementBlock(Fragment,null,renderList(4,index=>{return createVNode(VCard,{key:`archived-session-skeleton-${index}`,class:`studio-archived-sessions__card`,rounded:`lg`},{default:withCtx(()=>[createVNode(VCardText,{class:`studio-archived-sessions__card-body`},{default:withCtx(()=>[createBaseVNode(`div`,_hoisted_6,[createVNode(VSkeletonLoader,{class:`studio-archived-sessions__skeleton-icon`,type:`avatar`}),createBaseVNode(`div`,_hoisted_7,[createVNode(VSkeletonLoader,{type:`text`}),createVNode(VSkeletonLoader,{type:`chip@2`})]),createVNode(VSkeletonLoader,{class:`studio-archived-sessions__skeleton-button`,type:`button`})])]),_:1})]),_:1})}),64))])):createCommentVNode(``,true),!unref(loading)&&unref(sessions).length<1&&!unref(unavailableSessions).length&&!unref(error)?(openBlock(),createBlock(VSheet,{key:3,rounded:`lg`,class:`studio-archived-sessions__empty`},{default:withCtx(()=>[createBaseVNode(`h2`,_hoisted_8,toDisplayString(_ctx.emptyTitle),1),createBaseVNode(`p`,_hoisted_9,toDisplayString(_ctx.emptyText),1)]),_:1})):createCommentVNode(``,true),unref(sessions).length?(openBlock(),createElementBlock(`div`,_hoisted_10,[(openBlock(true),createElementBlock(Fragment,null,renderList(unref(sessions),session=>{return openBlock(),createBlock(VCard,{key:session.sessionId,class:`studio-archived-sessions__card`,rounded:`lg`},{default:withCtx(()=>[createVNode(VCardText,{class:`studio-archived-sessions__card-body`},{default:withCtx(()=>[createBaseVNode(`div`,_hoisted_11,[createBaseVNode(`div`,_hoisted_12,[createVNode(VIcon,{icon:`$inventory2`,size:`22`})]),createBaseVNode(`div`,_hoisted_13,[createBaseVNode(`div`,_hoisted_14,toDisplayString(unref(vibe64SessionDisplayTitle)(session)),1),createBaseVNode(`div`,_hoisted_15,[createVNode(VChip,{color:unref(vibe64SessionStatusColor)(session.status),size:`x-small`,variant:`tonal`},{default:withCtx(()=>[createTextVNode(toDisplayString(unref(vibe64SessionStatusLabel)(session.status||`archived`)),1)]),_:2},1032,[`color`]),session.sourceReady?(openBlock(),createBlock(VChip,{key:0,color:`success`,size:`x-small`,variant:`tonal`},{default:withCtx(()=>[..._cache[0]||(_cache[0]=[createTextVNode(` source available `,-1)])]),_:1})):createCommentVNode(``,true)]),createBaseVNode(`time`,{class:`studio-archived-sessions__archived-at text-body-small on-surface-variant`,datetime:session.archivedAt||void 0},` Archived `+toDisplayString(unref(formatArchivedAt)(session.archivedAt)),9,_hoisted_16)]),createVNode(VBtn,{class:`studio-archived-sessions__view`,"prepend-icon":`$visibility`,size:`small`,to:unref(sessionRoute)(session),variant:`tonal`},{default:withCtx(()=>[..._cache[1]||(_cache[1]=[createTextVNode(` View `,-1)])]),_:1},8,[`to`])])]),_:2},1024)]),_:2},1024)}),128))])):createCommentVNode(``,true),unref(sessions).length&&unref(hasMore)?(openBlock(),createElementBlock(`div`,_hoisted_17,[createBaseVNode(`span`,_hoisted_18,` Showing `+toDisplayString(unref(sessions).length)+` of `+toDisplayString(unref(sessionCount)),1),createVNode(VBtn,{loading:unref(loading),disabled:unref(loading),"prepend-icon":`$expand`,variant:`tonal`,onClick:unref(showMore)},{default:withCtx(()=>[..._cache[2]||(_cache[2]=[createTextVNode(` Show more `,-1)])]),_:1},8,[`loading`,`disabled`,`onClick`])])):createCommentVNode(``,true)])}}};var ArchivedVibe64Sessions_default=_plugin_vue_export_helper_default(_sfc_main$1,[[`__scopeId`,`data-v-894e175b`]]);var _hoisted_1={class:`vibe64-dashboard-page`};var _sfc_main={__name:`index`,setup(__props){return(_ctx,_cache)=>{return openBlock(),createElementBlock(`section`,_hoisted_1,[createVNode(ArchivedVibe64Sessions_default,{"empty-text":`Archived chats will appear here after their active workspaces are removed.`,"empty-title":`No archived chats`},{title:withCtx(()=>[createVNode(Vibe64DashboardPageHeader_default,{description:`Archived chats and their conversations.`,icon:`$history`,title:`Session history`})]),_:1})])}}};var history_default=_plugin_vue_export_helper_default(_sfc_main,[[`__scopeId`,`data-v-fa2cb3fa`]]);export{history_default as default};
@@ -1,5 +1,5 @@
1
- const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/pages-5jaEclQo.js","assets/runtime-core.esm-bundler-Bi1P1jMa.js","assets/useApi-BPuI6ZR9-rsYWyW6m.js","assets/usePaths-CvUbx5-V.js","assets/returnToPath-CILshEkc.js","assets/normalize-BD25VwNK.js","assets/linkPath-BsiibCNd.js","assets/surface-CBlx7sF_.js","assets/placement-1lT0lW3-.js","assets/pathname-JHQIKk21.js","assets/route-block-DbL-SuOj.js","assets/app-D7V6OMMB.js","assets/VSkeletonLoader-Bl9P5wdh.js","assets/VChip-D2IukBZw.js","assets/VChip-4Nj-0ztL.css","assets/lazy-vXRXMwYF.js","assets/VBtn-2vbH580C.js","assets/VBtn-C1plz3b1.css","assets/VSkeletonLoader-DXZarZ9m.css","assets/useVibe64Learning-DiLAIKbI.js","assets/preload-helper-BvdcsxN9.js","assets/vibe64AssistantHost-CyWUOG-F.js","assets/asyncModuleRecovery-BALhPqsY.js","assets/VSheet-D5wAuyc2.js","assets/VSheet-BbLSwuzR.css","assets/VDialog-BCIrX462.js","assets/VOverlay-EPzW7eVB.js","assets/VOverlay-DG-PukqI.css","assets/VDialog-DP-kc9Gx.css","assets/_plugin-vue_export-helper-DNW4j-dv.js","assets/browser-D8z6v6Ge.js","assets/StudioErrorNotice-CCT_T6mT.js","assets/StudioErrorNotice-CQfeUEOD.css","assets/browserLocalStorage-B4C7rHrs.js","assets/clipboard-CZs9aH3L.js","assets/useVibe64Learning-B9b7aUr-.css","assets/Vibe64AuthSettingsButton-Bbgu_IRu.js","assets/VMenu-Bql3E6DV.js","assets/VMenu-DCU7zd0B.css","assets/layout-B_cpKP4k.js","assets/VTextField-B9R7EIjg.js","assets/VTextField-F6unyhrS.css","assets/client-BRcncaFt.js","assets/useEndpointResource-CmMwteuX.js","assets/httpClient-Bwitq9Xf.js","assets/queryPath-yKLyWw8V.js","assets/validators-HqYRjxEO.js","assets/deepFreeze-BgoYkoTa.js","assets/visibility-Cq31Xy7I.js","assets/useRealtimeEvent-B4oRg9Dt.js","assets/errorMessageHelpers-BjIt31kK.js","assets/i18n-BuXRXGaO.js","assets/i18n-DpzQwXg6.js","assets/i18n-BkxO7BMl.js","assets/VSelect-Ch00dyiM.js","assets/VCheckboxBtn-DDlYJnth.js","assets/VCheckboxBtn-o1O5Bixh.css","assets/VSelect-yFA6_y4G.css","assets/vibe64ProjectScope.local-B9ZpdYlf.js","assets/studioUrls-k_pQIuPs.js","assets/VAutocomplete-BnpXAJGa.js","assets/VAutocomplete-D48FgPMA.css","assets/VCheckbox-BK0ss4F4.js","assets/VCheckbox-ChRKi1kj.css","assets/VCard-BFqQSnAE.js","assets/VCard-dv-Dc592.css","assets/VRow-Dz87sIhY.js","assets/VRow-BdVn5u8X.css","assets/VSpacer-GgPR_AzN.js","assets/VSpacer-DfbUir7X.css","assets/VExpansionPanels-BHw1Id_o.js","assets/VExpansionPanels-cvCWEkWz.css","assets/VRadioGroup-CL3HTmyT.js","assets/VRadioGroup-C9f4tbih.css","assets/VSwitch-DftK1EyR.js","assets/VSwitch-DAlld-JI.css","assets/useCommand-CNDe8gM-.js","assets/error-BQ7r64JO.js","assets/i18n-Dm74yE_M.js","assets/useUiFeedback-CWb6o71Z.js","assets/shared-B6plZPQ_.js","assets/errors-D17nJYne.js","assets/assistantRouting-BS0ZW5Ki.js","assets/shared-DjZEYqzW.js","assets/vibe64ApiResponses-DuJ9mfus.js","assets/studioGateApi-UqmdV50W.js","assets/client-CM6TGZc9.css","assets/VToolbar-C8ydxLzq.js","assets/VToolbar-CY3-1Sb0.css","assets/ShellOutlet-CdjsJfg9.js","assets/windowSizeClass-DQekxFgV.js","assets/Vibe64AuthSettingsButton-DFfFPrd7.css","assets/app-BavZ6hrk.css","assets/learning-DAIqaO0B.js","assets/_slug_-ClQKNEA9.js","assets/placement-B2V88UDJ.js","assets/vibe64GithubProject-CJneIo5O.js","assets/vibe64SessionToolDefinitions-BijEEwqu.js","assets/client-rknXpZ1o.js","assets/client-BEV2Ihna.css","assets/VTextarea-CMgyRNk-.js","assets/VTextarea--uW4w6nq.css","assets/useAssistantAttachments-BkYZckgz.js","assets/client-4uCr4dYG.js","assets/conversation-BoB7Drme.js","assets/thinkingText-mMYz6e03.js","assets/conversation-BMyk8R_u.css","assets/SelectField-RGWl_ms9.js","assets/vueRefOrGetterValue-y-4f_In7.js","assets/vibe64BrowserTabOrigin-vIN_87mi.js","assets/vibe64SessionRequestConfig-DVRCRAex.js","assets/Vibe64ConversationLog-MGFaNVSu.js","assets/vibe64FileUpload-BDkcaUyk.js","assets/conversation-D7T_us2O.js","assets/vibe64SessionViewModel-CQCds_jb.js","assets/client-BLY6SeL-.js","assets/devtools-CN5uWJaH-_xug6686.js","assets/VTable-DHazU0Xx.js","assets/VTable-LbK8_KkU.css","assets/client-BBJzQIWS.css","assets/Vibe64ConversationLog-ksf1U6PP.css","assets/vibe64RepositoryRealtime-BIXVm4u9.js","assets/vibe64RepositoryRealtime-rnWlv9jw.css","assets/vibe64SessionDebugLog-BfO7tG1A.js","assets/vibe64SessionFocus-C0LfHXbF.js","assets/vibe64SessionFocus-BCojr4E-.css","assets/Vibe64DestinationButton-CdyyK9tj.js","assets/Vibe64DestinationButton-ZxY1Lwie.css","assets/Vibe64AsyncModuleState-9bN0_H45.js","assets/Vibe64AsyncModuleState-B68r3Cm5.css","assets/Vibe64DashboardShell-i01oU7QS.js","assets/Vibe64DashboardShell-D0GNI4V8.css","assets/vibe64SessionInfo-D68p7LdH.js","assets/vibe64SessionPanelModel-B-WkXnPu.js","assets/useVibe64SessionData-COsXmbMm.js","assets/useVibe64SessionSelection-CKBC-ZJw.js","assets/useVibe64ConversationLog-Ch0ZbnCG.js","assets/Vibe64UnavailableSessions-CaLRMl-0.js","assets/Vibe64UnavailableSessions-DQdNuGSD.css","assets/_slug_-CZmGS16g.css","assets/dashboard-D6JkBdZg.js","assets/_sessionTool_-CBf51mfK.js","assets/_sessionTool_-DiYoi-BF.css","assets/access-BqnqYSZR.js","assets/access-BH1OsqPS.css","assets/changes-odK1bV6J.js","assets/Vibe64RepositoryWorkspace-CoSH_5qZ.js","assets/libesm-CR-iGldz.js","assets/Vibe64DashboardPageHeader-xfRLZ94G.js","assets/Vibe64DashboardPageHeader-2JX76yfq.css","assets/Vibe64RepositoryWorkspace-BWu6OV32.css","assets/env-CIy7uwLb.js","assets/vibe64AttachmentDownload-BWRCIKUr.js","assets/vibe64SavedEnvValues-CU_SdjKx.js","assets/contracts-CCZaLqSE.js","assets/env-CCUgAwiV.css","assets/health-B9ZoQC78.js","assets/health-xnU0lci9.css","assets/history-IBqZqdSL.js","assets/useArchivedVibe64Sessions-B_pM75gN.js","assets/history-BSIuLgnI.css","assets/_sessionId_-jSlkZQLV.js","assets/Vibe64SessionFiles-Dt1EY-Qo.js","assets/Vibe64FileArea-B8_Tqtgv.js","assets/fileTypes-2k5HCkMT.js","assets/fileTypes-c-LysNzr.css","assets/Vibe64FileArea-ZEzsvLt2.css","assets/Vibe64SessionSourceEditor-D5-abooo.js","assets/dist-CDa9Iec1.js","assets/client-DwF9Q0VQ.js","assets/Vibe64SessionSourceEditor-l0R5uY2U.css","assets/Vibe64SessionFiles-BKWcpSXz.css","assets/_sessionId_-7PyIUeUr.css","assets/integrations-BBMdyyMq.js","assets/english-definitions-CwCZ8VJ-.js","assets/integrations-CwgrZgmM.css","assets/issues-DwUO1HjX.js","assets/GithubBrowserTabs-DEq5_tSs.js","assets/issues-D46llNv-.css","assets/pages-DoUMcieZ.js","assets/pages-DpVxXdGt.css","assets/_pageId_-M5CNslNQ.js","assets/project-files-DilujZdI.js","assets/project-files-DjEn-Hp2.css","assets/publish-KZQ_gdoN.js","assets/publish-C9O0tDPB.css","assets/pull-requests-BB3CAadu.js","assets/pull-requests-DtqrTix0.css","assets/repository-B90tiuN6.js","assets/session-B5MoHBVk.js","assets/session-BJhq3K2n.css","assets/settings-DdbhtNHb.js","assets/settings-BKZcbISO.css","assets/error-BqMxhgpB.js"])))=>i.map(i=>d[i]);
2
- import{a as __exportAll}from"./placement-B2V88UDJ.js";import{$ as useId,B as onUnmounted,C as getCurrentInstance,Ct as toRef,E as h$1,Et as unref,G as renderList,H as openBlock,I as onBeforeUnmount,J as resolveDynamicComponent,Jt as normalizeProps,K as renderSlot,Kt as normalizeClass,M as mergeProps,N as nextTick$1,O as inject$1,Q as useAttrs,S as defineComponent,T as guardReactiveProps,Tt as toValue,U as provide,Xt as toDisplayString,Yt as normalizeStyle,_ as createSlots,_t as readonly,at as watchEffect,b as createVNode,d as createBaseVNode,et as useModel,f as createBlock,ft as isRef,gt as reactive,ht as proxyRefs,i as Fragment,it as watch,j as mergeModels,lt as effectScope,m as createElementBlock,mt as onScopeDispose,o as Teleport,ot as withCtx,p as createCommentVNode,st as withDirectives,tt as useSlots,u as computed,ut as getCurrentScope,v as createStaticVNode,vt as ref,xt as shallowRef,y as createTextVNode,yt as shallowReactive,z as onMounted}from"./runtime-core.esm-bundler-Bi1P1jMa.js";import{At as defineComponent$1,B as VImg,Bn as useElementSize,Bt as propsFactory,C as makeGroupItemProps,Cn as keys,Ct as VClassIcon,D as genOverlays,Dn as omit,E as useGroupItem,En as noop,Fn as IN_BROWSER,G as useRounded,H as MaybeTransition,I as makeElevationProps,In as PREFERS_REDUCED_MOTION,It as provideDefaults,J as useTextColor,Jn as isObject$1,K as useBackgroundColor,Kn as isNullOrUndefined,L as useElevation,M as makeDensityProps,Mn as resolveSize,Mt as DefaultsSymbol,N as useDensity,Nt as RootDefaultsSymbol,O as makeVariantProps,On as padStart,Ot as standardEasing,P as makeLocationProps,Pt as createDefaults,Qn as range,R as makeBorderProps,S as VIcon,St as IconValue,T as useGroup,Tn as mergeDeep,Tt as useRender,Un as isBoolean,W as makeRoundedProps,Wn as isFunction,X as useDimension,Xt as toPhysical,Y as makeDimensionProps,Yn as isString,Z as VDefaultsProvider,Zt as CircularBuffer,_ as VProgressLinear,_t as useLocale,a as VAvatar,ar as useCssVars,at as makeThemeProps,bt as useToggleScope,cr as vShow,ct as GoToSymbol,d as useRouter,f as makePositionProps,ft as createDisplay,gt as createLocale,ht as LocaleSymbol,i as makeVSlideGroupProps,ir as createApp,it as createTheme,jn as refElement,jt as genericComponent,k as useVariant,kn as pick$1,lr as withKeys,lt as createGoTo,mt as useDisplay,nn as clamp$1,nt as makeTagProps,ot as provideTheme,p as usePosition,pt as makeDisplayProps,r as VSlideGroup,rn as convertToUnit,rr as Transition,rt as ThemeSymbol,t as VChip,tr as consoleWarn,ur as withModifiers,ut as DisplaySymbol,vt as useRtl,wt as VSvgIcon,xt as IconSymbol,yt as useProxiedModel,z as useBorder,zt as makeComponentProps}from"./VChip-D2IukBZw.js";import{a as createListenerSubscription,c as normalizeAdditionalActions,d as createPinia,i as createErrorRuntime,l as normalizeSeverity,n as SHELL_WEB_ERROR_RUNTIME_KEY,o as createDefaultErrorPolicy,r as useShellWebErrorRuntime,s as normalizeAction,t as useShellErrorPresentationStore,u as normalizeText}from"./error-BQ7r64JO.js";import{A as partialMatchKey,C as environmentManager,D as matchMutation,E as hashQueryKeyByOptions,F as getClientKey,M as skipToken,N as useQueryClient,O as matchQuery,P as cloneDeepUnref,S as Subscribable,T as hashKey,_ as Mutation,b as notifyManager,g as useQuery,h as useMutation,j as resolveQueryValue,k as noop$1,t as useEndpointResource,v as Query,w as functionalUpdate,x as focusManager,y as onlineManager}from"./useEndpointResource-CmMwteuX.js";import{_ as useRouter$1,a as isAbsolutePath,c as isNavigationFailure,d as mergeOptions,f as noop$2,g as useRoute,h as routerViewLocationKey,i as createRouterError,m as routerKey,n as applyToParams,o as isArray,p as routeLocationKey,r as assign,t as NavigationFailureType,u as matchedRouteKey,v as viewDepthKey}from"./useApi-BPuI6ZR9-rsYWyW6m.js";import{C as scrollToPosition,D as useCallbacks,E as stripBase,S as saveScrollPosition,T as stringifyURL,a as encodeHash,b as parseQuery,c as extractComponentsGuards,d as guardToPromiseFn,f as isBrowser,g as isSameRouteRecord,h as isSameRouteLocationParams,i as decode$2,l as getSavedScrollPosition,m as isSameRouteLocation,n as computeScrollPosition,o as encodeParam,p as isRouteName,r as createHref,s as extractChangingRecords,t as START_LOCATION_NORMALIZED,u as getScrollKey,v as normalizeBase,w as stringifyQuery,x as parseURL,y as normalizeQuery}from"./devtools-CN5uWJaH-_xug6686.js";import{i as normalizePathname$1,n as BOOTSTRAP_PATH}from"./returnToPath-CILshEkc.js";import{l as normalizeRecordId,o as normalizeLowerText,p as toText,r as isRecord,s as normalizeObject,t as TRANSACTION_OUTCOMES,u as normalizeText$1}from"./normalize-BD25VwNK.js";import{n as resolveLinkPath,r as splitPathQueryHash,t as isExternalLinkTarget}from"./linkPath-BsiibCNd.js";import{n as splitPathQueryAndHash,t as appendQueryString}from"./queryPath-yKLyWw8V.js";import{t as __vitePreload}from"./preload-helper-BvdcsxN9.js";import{t as VSelect}from"./VSelect-Ch00dyiM.js";import{n as VAlert,t as VSkeletonLoader}from"./VSkeletonLoader-Bl9P5wdh.js";import{a as useFocusTrap,f as getScrollParent,i as makeFocusTrapProps,l as forwardRefs,n as makeVOverlayProps,o as makeDelayProps,p as animate,r as useScopeId,s as useDelay,t as VOverlay,u as useSsrBoot}from"./VOverlay-EPzW7eVB.js";import{n as useLazy,t as makeLazyProps}from"./lazy-vXRXMwYF.js";import{s as VListItem,t as VMenu,u as VDivider}from"./VMenu-Bql3E6DV.js";import{f as createMaterialVuetifyOptions,i as SHELL_ASYNC_MODULE_RECOVERY_RUNTIME_KEY,l as theme,m as mdi,p as aliases,t as useVibe64Learning}from"./useVibe64Learning-DiLAIKbI.js";import{a as useLayout,i as makeLayoutProps,n as createLayout,o as useLayoutItem,r as makeLayoutItemProps,t as VuetifyLayoutKey}from"./layout-B_cpKP4k.js";import{t as VTextField}from"./VTextField-B9R7EIjg.js";import{a as VIBE64_ASSISTANT_VIEWER_KEY,c as VIBE64_COLLEAGUE_INTEGRATIONS_KEY,d as VIBE64_COLLEAGUE_PLAN_KEY,f as VIBE64_COLLEAGUE_PREVIEW_KEY,g as VIBE64_PAGE_FOCUS_KEY,h as VIBE64_PAGE_ACTIVITY_KEY,i as VIBE64_ASSISTANT_HOST_KEY,l as VIBE64_COLLEAGUE_LAUNCHER_KEY,m as VIBE64_LEARNING_KEY,o as VIBE64_BROWSER_NAVIGATION_KEY,p as VIBE64_COLLEAGUE_VIEW_KEY,r as VIBE64_AI_TASK_TRAY_KEY,s as VIBE64_COLLEAGUE_DATABASE_KEY,t as LOCAL_ASSISTANT_VIEWER,u as VIBE64_COLLEAGUE_LAYOUT_KEY}from"./vibe64AssistantHost-CyWUOG-F.js";import{a as isJsonRestSchemaInstance,i as normalizeSingleSchemaDefinition,n as validateSchemaPayload,o as createSchema,r as createCursorListValidator,t as RECORD_ID_PATTERN}from"./validators-HqYRjxEO.js";import{t as AppError}from"./errors-D17nJYne.js";import{a as projectSlugFromPathname,o as projectSlugFromRoute,r as projectAppPath,s as vibe64ProjectQueryScope}from"./vibe64ProjectScope.local-B9ZpdYlf.js";import{a as shouldRetryTransientQueryFailure,i as createHttpClient,n as getHttpWebClient,o as transientQueryRetryDelay,t as configureHttpWebClient,u as encodeJsonApiResourceQueryObject}from"./httpClient-Bwitq9Xf.js";import{t as deepFreeze}from"./deepFreeze-BgoYkoTa.js";import{t as resolveScopedApiBasePath}from"./surface-CBlx7sF_.js";import{n as resolveStudioRequestUrl,r as resolveWebSocketUrl$1,t as requestStudio}from"./studioUrls-k_pQIuPs.js";import{C as VForm,E as useVibe64ColleagueModel,S as VTooltip,T as createVibe64ColleagueModelBridge,a as aiOnboardingAvailable,b as VIBE64_ACCOUNTS_CHANGED_EVENT,i as _sfc_main$53,l as requestVibe64AiOnboarding,r as AiOnboardingNudge_default,s as aiOnboardingNeeded,w as VIBE64_COLLEAGUE_MODEL_KEY,x as VIBE64_CONNECTIONS_CHANGED_EVENT}from"./client-BRcncaFt.js";import{n as formatMessage,t as catalogMessage}from"./i18n-DpzQwXg6.js";import{a as createStructuredLogger,c as filterRoutesBySurface,i as staysOnSamePage,l as getClientAppConfig,n as createSurfaceShellRouter,o as summarizeRouterRoutes,r as resolveClientBootstrapDebugEnabled,s as createSurfaceRuntime,t as bootstrapClientShellApp,u as resolveMobileConfig}from"./client-4uCr4dYG.js";import{r as useJskitText,t as registerJskitMessages}from"./i18n-BuXRXGaO.js";import{a as isDynamicImportError,i as installAsyncModuleRecoveryHandlers,o as notifyAsyncModuleLoadError,r as guardedReloadApp,s as pagePathname,t as createAsyncModuleRecoveryState}from"./asyncModuleRecovery-BALhPqsY.js";import{o as ROUTE_VISIBILITY_PUBLIC}from"./visibility-Cq31Xy7I.js";import{n as makeVBtnProps,r as VProgressCircular,t as VBtn}from"./VBtn-2vbH580C.js";import{t as VCheckbox}from"./VCheckbox-BK0ss4F4.js";import{t as VSheet}from"./VSheet-D5wAuyc2.js";import{t as VDialog}from"./VDialog-BCIrX462.js";import{a as VCardSubtitle,i as VCardTitle,n as VCardText,o as VCardActions,r as VCardItem,t as VCard}from"./VCard-BFqQSnAE.js";import{t as VSpacer}from"./VSpacer-GgPR_AzN.js";import{t as VSwitch}from"./VSwitch-DftK1EyR.js";import{t as VTextarea}from"./VTextarea-CMgyRNk-.js";import{t as _plugin_vue_export_helper_default}from"./_plugin-vue_export-helper-DNW4j-dv.js";import{a as en_default$10}from"./useAssistantAttachments-BkYZckgz.js";import{_ as _sfc_main$54,a as useAssistantQuestions,b as parseLongTextReviewBlocks,m as AssistantTranscript_default,n as draftWithRestoredMessage,p as AssistantPromptInput_default,r as unmatchedOptimisticMessages,s as AssistantConversationElement_default,t as createAssistantMessageDelivery,v as LongTextPreviewBlocks_default}from"./conversation-BoB7Drme.js";import{i as useRealtimeSocket,n as REALTIME_SOCKET_KEY,r as useRealtimeEvent,t as NO_REALTIME_SOCKET}from"./useRealtimeEvent-B4oRg9Dt.js";import{t as en_default$11}from"./i18n-Dm74yE_M.js";import{n as en_default$13,t as en_default$12}from"./i18n-BkxO7BMl.js";import{t as _sfc_main$55}from"./SelectField-RGWl_ms9.js";import"./errorMessageHelpers-BjIt31kK.js";import{t as useCommand}from"./useCommand-CNDe8gM-.js";import{C as normalizePlacementTopologyDefinition,S as normalizePlacementLayoutClass,a as resolveSurfaceNavigationTargetFromPlacementContext,b as normalizePlacementTarget,c as pageDocument,f as pageWindow,i as resolveSurfaceIdFromPlacementPathname,m as useWebPlacementContext,p as SHELL_WEB_PLACEMENT_RUNTIME_KEY,r as resolveSurfaceDefinitionFromPlacementContext,s as resolveSurfaceRouteParamsFromPlacementPathname,t as buildSurfaceConfigContext,u as pageTitle,v as isRenderableComponent,x as normalizeSurface,y as normalizePlacementDefinition}from"./placement-1lT0lW3-.js";import{n as useSurfaceRouteContext,r as resolveShellLinkPath,t as usePaths}from"./usePaths-CvUbx5-V.js";import{t as readRefOrGetterValue}from"./vueRefOrGetterValue-y-4f_In7.js";import{i as hasWindowFunction$1}from"./browser-D8z6v6Ge.js";import{r as vibe64RealtimeOriginPayload}from"./vibe64BrowserTabOrigin-vIN_87mi.js";import{L as vibe64SessionPath,i as VIBE64_ASSISTANT_MODEL_ACCESS_API_SUFFIX,o as VIBE64_SESSIONS_API_SUFFIX,r as VIBE64_ASSISTANTS_API_SUFFIX,v as vibe64AssistantCapabilitiesQueryKey,y as vibe64AssistantModelAccessPath}from"./vibe64SessionRequestConfig-DVRCRAex.js";import{u as VIBE64_AGENT_PROVIDERS}from"./shared-B6plZPQ_.js";import{f as assistantRoutingFromMetadata}from"./assistantRouting-BS0ZW5Ki.js";import{r as writeLocalStorageJson,t as readLocalStorageJson}from"./browserLocalStorage-B4C7rHrs.js";import{a as normalizeConversationLogPage,c as conversationTurnMessages,i as mergeConversationLogPages,l as conversationTurnsFromMessages,o as normalizeConversationLogPagination,s as mergeConversationStream,t as applyConversationLogPatch}from"./conversation-D7T_us2O.js";import{t as resolveWindowSizeClass}from"./windowSizeClass-DQekxFgV.js";(function polyfill(){const relList=document.createElement(`link`).relList;if(relList&&relList.supports&&relList.supports(`modulepreload`))return;for(const link of document.querySelectorAll(`link[rel="modulepreload"]`))processPreload(link);new MutationObserver(mutations=>{for(const mutation of mutations){if(mutation.type!==`childList`)continue;for(const node of mutation.addedNodes)if(node.tagName===`LINK`&&node.rel===`modulepreload`)processPreload(node)}}).observe(document,{childList:true,subtree:true});function getFetchOpts(link){const fetchOpts={};if(link.integrity)fetchOpts.integrity=link.integrity;if(link.referrerPolicy)fetchOpts.referrerPolicy=link.referrerPolicy;if(link.crossOrigin===`use-credentials`)fetchOpts.credentials=`include`;else if(link.crossOrigin===`anonymous`)fetchOpts.credentials=`omit`;else fetchOpts.credentials=`same-origin`;return fetchOpts}function processPreload(link){if(link.ep)return;link.ep=true;const fetchOpts=getFetchOpts(link);fetch(link.href,fetchOpts)}})();var MutationCache$1=class extends Subscribable{#mutations;#scopes;#mutationId;constructor(config={}){super();this.config=config;this.#mutations=new Set;this.#scopes=new Map;this.#mutationId=0}build(client,options,state){const mutation=new Mutation({client,mutationCache:this,mutationId:++this.#mutationId,options:client.defaultMutationOptions(options),state});this.add(mutation);return mutation}add(mutation){this.#mutations.add(mutation);const scope=scopeFor(mutation);if(typeof scope===`string`){const scopedMutations=this.#scopes.get(scope);if(scopedMutations)scopedMutations.push(mutation);else this.#scopes.set(scope,[mutation])}this.notify({type:`added`,mutation})}remove(mutation){if(this.#mutations.delete(mutation)){const scope=scopeFor(mutation);if(typeof scope===`string`){const scopedMutations=this.#scopes.get(scope);if(scopedMutations){if(scopedMutations.length>1){const index=scopedMutations.indexOf(mutation);if(index!==-1)scopedMutations.splice(index,1)}else if(scopedMutations[0]===mutation)this.#scopes.delete(scope)}}}this.notify({type:`removed`,mutation})}canRun(mutation){const scope=scopeFor(mutation);if(typeof scope===`string`){const firstPendingMutation=this.#scopes.get(scope)?.find(m=>m.state.status===`pending`);return!firstPendingMutation||firstPendingMutation===mutation}else return true}runNext(mutation){const scope=scopeFor(mutation);if(typeof scope===`string`)return(this.#scopes.get(scope)?.find(m=>m!==mutation&&m.state.isPaused))?.continue()??Promise.resolve();else return Promise.resolve()}clear(){notifyManager.batch(()=>{this.#mutations.forEach(mutation=>{this.notify({type:`removed`,mutation})});this.#mutations.clear();this.#scopes.clear()})}getAll(){return Array.from(this.#mutations)}find(filters){const defaultedFilters={exact:true,...filters};return this.getAll().find(mutation=>matchMutation(defaultedFilters,mutation))}findAll(filters={}){return this.getAll().filter(mutation=>matchMutation(filters,mutation))}notify(event){notifyManager.batch(()=>{this.listeners.forEach(listener=>{listener(event)})})}resumePausedMutations(){const pausedMutations=this.getAll().filter(x=>x.state.isPaused);return notifyManager.batch(()=>Promise.all(pausedMutations.map(mutation=>mutation.continue().catch(noop$1))))}};function scopeFor(mutation){return mutation.options.scope?.id}var QueryCache$1=class extends Subscribable{#queries;constructor(config={}){super();this.config=config;this.#queries=new Map}build(client,options,state){const queryKey=options.queryKey;const queryHash=options.queryHash??hashQueryKeyByOptions(queryKey,options);let query=this.get(queryHash);if(!query){query=new Query({client,queryKey,queryHash,options:client.defaultQueryOptions(options),state,defaultOptions:client.getQueryDefaults(queryKey)});this.add(query)}return query}add(query){if(!this.#queries.has(query.queryHash)){this.#queries.set(query.queryHash,query);this.notify({type:`added`,query})}}remove(query){const queryInMap=this.#queries.get(query.queryHash);if(queryInMap){query.destroy();if(queryInMap===query)this.#queries.delete(query.queryHash);this.notify({type:`removed`,query})}}clear(){notifyManager.batch(()=>{this.getAll().forEach(query=>{this.remove(query)})})}get(queryHash){return this.#queries.get(queryHash)}getAll(){return[...this.#queries.values()]}find(filters){const defaultedFilters={exact:true,...filters};return this.getAll().find(query=>matchQuery(defaultedFilters,query))}findAll(filters={}){const queries=this.getAll();return Object.keys(filters).length>0?queries.filter(query=>matchQuery(filters,query)):queries}notify(event){notifyManager.batch(()=>{this.listeners.forEach(listener=>{listener(event)})})}onFocus(){notifyManager.batch(()=>{this.getAll().forEach(query=>{query.onFocus()})})}onOnline(){notifyManager.batch(()=>{this.getAll().forEach(query=>{query.onOnline()})})}};var QueryClient$1=class{#queryCache;#mutationCache;#defaultOptions;#queryDefaults;#mutationDefaults;#mountCount;#unsubscribeFocus;#unsubscribeOnline;constructor(config={}){this.#queryCache=config.queryCache||new QueryCache$1;this.#mutationCache=config.mutationCache||new MutationCache$1;this.#defaultOptions=config.defaultOptions||{};this.#queryDefaults=new Map;this.#mutationDefaults=new Map;this.#mountCount=0}mount(){this.#mountCount++;if(this.#mountCount!==1)return;this.#unsubscribeFocus=focusManager.subscribe(async focused=>{if(focused){await this.resumePausedMutations();this.#queryCache.onFocus()}});this.#unsubscribeOnline=onlineManager.subscribe(async online=>{if(online){await this.resumePausedMutations();this.#queryCache.onOnline()}})}unmount(){this.#mountCount--;if(this.#mountCount!==0)return;this.#unsubscribeFocus?.();this.#unsubscribeFocus=void 0;this.#unsubscribeOnline?.();this.#unsubscribeOnline=void 0}isFetching(filters){return this.#queryCache.findAll({...filters,fetchStatus:`fetching`}).length}isMutating(filters){return this.#mutationCache.findAll({...filters,status:`pending`}).length}getQueryData(queryKey){const options=this.defaultQueryOptions({queryKey});return this.#queryCache.get(options.queryHash)?.state.data}ensureQueryData(options){const defaultedOptions=this.defaultQueryOptions(options);const query=this.#queryCache.build(this,defaultedOptions);const cachedData=query.state.data;if(cachedData===void 0)return this.fetchQuery(options);if(options.revalidateIfStale&&query.isStaleByTime(resolveQueryValue(defaultedOptions.staleTime,query)))this.prefetchQuery(defaultedOptions);return Promise.resolve(cachedData)}getQueriesData(filters){return this.#queryCache.findAll(filters).map(({queryKey,state})=>{return[queryKey,state.data]})}setQueryData(queryKey,updater,options){const defaultedOptions=this.defaultQueryOptions({queryKey});const prevData=this.#queryCache.get(defaultedOptions.queryHash)?.state.data;const data=functionalUpdate(updater,prevData);if(data===void 0)return;return this.#queryCache.build(this,defaultedOptions).setData(data,{...options,manual:true})}setQueriesData(filters,updater,options){return notifyManager.batch(()=>this.#queryCache.findAll(filters).map(({queryKey})=>[queryKey,this.setQueryData(queryKey,updater,options)]))}getQueryState(queryKey){const options=this.defaultQueryOptions({queryKey});return this.#queryCache.get(options.queryHash)?.state}removeQueries(filters){const queryCache=this.#queryCache;notifyManager.batch(()=>{queryCache.findAll(filters).forEach(query=>{queryCache.remove(query)})})}resetQueries(filters,options){const queryCache=this.#queryCache;return notifyManager.batch(()=>{const matched=queryCache.findAll(filters);const queriesToRefetch=new Set(matched);matched.forEach(query=>{query.reset()});return this.refetchQueries({type:`active`,predicate:query=>queriesToRefetch.has(query)},options)})}cancelQueries(filters,cancelOptions={}){const defaultedCancelOptions={revert:true,...cancelOptions};const promises=notifyManager.batch(()=>this.#queryCache.findAll(filters).map(query=>query.cancel(defaultedCancelOptions)));return Promise.all(promises).then(noop$1).catch(noop$1)}invalidateQueries(filters,options={}){return notifyManager.batch(()=>{this.#queryCache.findAll(filters).forEach(query=>{query.invalidate()});if(filters?.refetchType===`none`)return Promise.resolve();return this.refetchQueries({...filters,type:filters?.refetchType??filters?.type??`active`},options)})}refetchQueries(filters,options={}){const fetchOptions={...options,cancelRefetch:options.cancelRefetch??true};const promises=notifyManager.batch(()=>this.#queryCache.findAll(filters).filter(query=>!query.isDisabled()&&!query.isStatic()).map(query=>{let promise=query.fetch(void 0,fetchOptions);if(!fetchOptions.throwOnError)promise=promise.catch(noop$1);return query.state.fetchStatus===`paused`?Promise.resolve():promise}));return Promise.all(promises).then(noop$1)}async query(options){const defaultedOptions=this.defaultQueryOptions(options);if(defaultedOptions.retry===void 0)defaultedOptions.retry=false;const query=this.#queryCache.build(this,defaultedOptions);const queryData=query.isStaleByTime(resolveQueryValue(defaultedOptions.staleTime,query))?await query.fetch(defaultedOptions):query.state.data;const select=defaultedOptions.select;if(select)return select(queryData);return queryData}fetchQuery(options){const defaultedOptions=this.defaultQueryOptions(options);if(defaultedOptions.retry===void 0)defaultedOptions.retry=false;const query=this.#queryCache.build(this,defaultedOptions);return query.isStaleByTime(resolveQueryValue(defaultedOptions.staleTime,query))?query.fetch(defaultedOptions):Promise.resolve(query.state.data)}prefetchQuery(options){return this.fetchQuery(options).then(noop$1).catch(noop$1)}infiniteQuery(options){options._type=`infinite`;return this.query(options)}fetchInfiniteQuery(options){options._type=`infinite`;return this.fetchQuery(options)}prefetchInfiniteQuery(options){return this.fetchInfiniteQuery(options).then(noop$1).catch(noop$1)}ensureInfiniteQueryData(options){options._type=`infinite`;return this.ensureQueryData(options)}resumePausedMutations(){if(onlineManager.isOnline())return this.#mutationCache.resumePausedMutations();return Promise.resolve()}getQueryCache(){return this.#queryCache}getMutationCache(){return this.#mutationCache}getDefaultOptions(){return this.#defaultOptions}setDefaultOptions(options){this.#defaultOptions=options}setQueryDefaults(queryKey,options){this.#queryDefaults.set(hashKey(queryKey),{queryKey,defaultOptions:options})}getQueryDefaults(queryKey){const defaults=[...this.#queryDefaults.values()];const result={};defaults.forEach(queryDefault=>{if(partialMatchKey(queryKey,queryDefault.queryKey))Object.assign(result,queryDefault.defaultOptions)});return result}setMutationDefaults(mutationKey,options){this.#mutationDefaults.set(hashKey(mutationKey),{mutationKey,defaultOptions:options})}getMutationDefaults(mutationKey){const defaults=[...this.#mutationDefaults.values()];const result={};defaults.forEach(queryDefault=>{if(partialMatchKey(mutationKey,queryDefault.mutationKey))Object.assign(result,queryDefault.defaultOptions)});return result}defaultQueryOptions(options){if(options._defaulted)return options;const defaultedOptions={...this.#defaultOptions.queries,...this.getQueryDefaults(options.queryKey),...options,_defaulted:true};if(!defaultedOptions.queryHash)defaultedOptions.queryHash=hashQueryKeyByOptions(defaultedOptions.queryKey,defaultedOptions);if(defaultedOptions.refetchOnReconnect===void 0)defaultedOptions.refetchOnReconnect=defaultedOptions.networkMode!==`always`;if(defaultedOptions.throwOnError===void 0)defaultedOptions.throwOnError=!!defaultedOptions.suspense;if(!defaultedOptions.networkMode&&defaultedOptions.persister)defaultedOptions.networkMode=`offlineFirst`;if(defaultedOptions.queryFn===skipToken)defaultedOptions.enabled=false;return defaultedOptions}defaultMutationOptions(options){if(options?._defaulted)return options;return{...this.#defaultOptions.mutations,...options?.mutationKey&&this.getMutationDefaults(options.mutationKey),...options,_defaulted:true}}clear(){this.#queryCache.clear();this.#mutationCache.clear()}};var QueryCache=class extends QueryCache$1{find(filters){return super.find(cloneDeepUnref(filters))}findAll(filters={}){return super.findAll(cloneDeepUnref(filters))}};var MutationCache=class extends MutationCache$1{find(filters){return super.find(cloneDeepUnref(filters))}findAll(filters={}){return super.findAll(cloneDeepUnref(filters))}};var QueryClient=class extends QueryClient$1{constructor(config={}){const vueQueryConfig={defaultOptions:config.defaultOptions,queryCache:config.queryCache||new QueryCache,mutationCache:config.mutationCache||new MutationCache};super(vueQueryConfig);this.isRestoring=ref(false)}isFetching(filters={}){return super.isFetching(cloneDeepUnref(filters))}isMutating(filters={}){return super.isMutating(cloneDeepUnref(filters))}getQueryData(queryKey){return super.getQueryData(cloneDeepUnref(queryKey))}ensureQueryData(options){return super.ensureQueryData(cloneDeepUnref(options))}getQueriesData(filters){return super.getQueriesData(cloneDeepUnref(filters))}setQueryData(queryKey,updater,options={}){return super.setQueryData(cloneDeepUnref(queryKey),updater,cloneDeepUnref(options))}setQueriesData(filters,updater,options={}){return super.setQueriesData(cloneDeepUnref(filters),updater,cloneDeepUnref(options))}getQueryState(queryKey){return super.getQueryState(cloneDeepUnref(queryKey))}removeQueries(filters={}){return super.removeQueries(cloneDeepUnref(filters))}resetQueries(filters={},options={}){return super.resetQueries(cloneDeepUnref(filters),cloneDeepUnref(options))}cancelQueries(filters={},options={}){return super.cancelQueries(cloneDeepUnref(filters),cloneDeepUnref(options))}invalidateQueries(filters={},options={}){const filtersCloned=cloneDeepUnref(filters);const optionsCloned=cloneDeepUnref(options);super.invalidateQueries({...filtersCloned,refetchType:`none`},optionsCloned);if(filtersCloned.refetchType===`none`)return Promise.resolve();const refetchFilters={...filtersCloned,type:filtersCloned.refetchType??filtersCloned.type??`active`};return nextTick$1().then(()=>{return super.refetchQueries(refetchFilters,optionsCloned)})}refetchQueries(filters={},options={}){return super.refetchQueries(cloneDeepUnref(filters),cloneDeepUnref(options))}query(options){return super.query(cloneDeepUnref(options))}fetchQuery(options){return super.fetchQuery(cloneDeepUnref(options))}prefetchQuery(options){return super.prefetchQuery(cloneDeepUnref(options))}infiniteQuery(options){return super.infiniteQuery(cloneDeepUnref(options))}fetchInfiniteQuery(options){return super.fetchInfiniteQuery(cloneDeepUnref(options))}prefetchInfiniteQuery(options){return super.prefetchInfiniteQuery(cloneDeepUnref(options))}setDefaultOptions(options){super.setDefaultOptions(cloneDeepUnref(options))}setQueryDefaults(queryKey,options){super.setQueryDefaults(cloneDeepUnref(queryKey),cloneDeepUnref(options))}getQueryDefaults(queryKey){return super.getQueryDefaults(cloneDeepUnref(queryKey))}setMutationDefaults(mutationKey,options){super.setMutationDefaults(cloneDeepUnref(mutationKey),cloneDeepUnref(options))}getMutationDefaults(mutationKey){return super.getMutationDefaults(cloneDeepUnref(mutationKey))}};var VueQueryPlugin={install:(app,options={})=>{const clientKey=getClientKey(options.queryClientKey);let client;if(`queryClient`in options&&options.queryClient)client=options.queryClient;else{const clientConfig=`queryClientConfig`in options?options.queryClientConfig:void 0;client=new QueryClient(clientConfig)}if(!environmentManager.isServer())client.mount();let persisterUnmount=()=>{};if(options.clientPersister){if(client.isRestoring)client.isRestoring.value=true;const[unmount,promise]=options.clientPersister(client);persisterUnmount=unmount;promise.then(()=>{if(client.isRestoring)client.isRestoring.value=false;options.clientPersisterOnSuccess?.(client)})}const cleanup=()=>{client.unmount();persisterUnmount()};if(app.onUnmount)app.onUnmount(cleanup);else{const originalUnmount=app.unmount;app.unmount=function vueQueryUnmount(){cleanup();originalUnmount()}}if(false)app.mixin({beforeCreate(){if(!this._provided){const provideCache={};Object.defineProperty(this,"_provided",{get:()=>provideCache,set:v=>Object.assign(provideCache,v)})}this._provided[clientKey]=client}});else app.provide(clientKey,client)}};var createBaseLocation=()=>location.protocol+`//`+location.host;function createCurrentLocation(base,location){const{pathname,search,hash}=location;const hashPos=base.indexOf(`#`);if(hashPos>-1){let slicePos=hash.includes(base.slice(hashPos))?base.slice(hashPos).length:1;let pathFromHash=hash.slice(slicePos);if(pathFromHash[0]!==`/`)pathFromHash=`/`+pathFromHash;return stripBase(pathFromHash,``)}return stripBase(pathname,base)+search+hash}function useHistoryListeners(base,historyState,currentLocation,replace){let listeners=[];let teardowns=[];let pauseState=null;const popStateHandler=({state})=>{const to=createCurrentLocation(base,location);const from=currentLocation.value;const fromState=historyState.value;let delta=0;if(state){currentLocation.value=to;historyState.value=state;if(pauseState&&pauseState===from){pauseState=null;return}delta=fromState?state.position-fromState.position:0}else replace(to);listeners.forEach(listener=>{listener(currentLocation.value,from,{delta,type:`pop`,direction:delta?delta>0?`forward`:`back`:``})})};function pauseListeners(){pauseState=currentLocation.value}function listen(callback){listeners.push(callback);const teardown=()=>{const index=listeners.indexOf(callback);if(index>-1)listeners.splice(index,1)};teardowns.push(teardown);return teardown}function beforeUnloadListener(){const{history}=window;if(!history.state)return;history.replaceState(assign({},history.state,{scroll:computeScrollPosition()}),``)}function destroy(){for(const teardown of teardowns)teardown();teardowns=[];window.removeEventListener(`popstate`,popStateHandler);window.removeEventListener(`pagehide`,beforeUnloadListener)}window.addEventListener(`popstate`,popStateHandler);window.addEventListener(`pagehide`,beforeUnloadListener);return{pauseListeners,listen,destroy}}function buildState(back,current,forward,replaced=false){return{back,current,forward,replaced,position:window.history.length,scroll:null}}function useHistoryStateNavigation(base){const{history,location}=window;const currentLocation={value:createCurrentLocation(base,location)};const historyState={value:history.state};if(!historyState.value)changeLocation(currentLocation.value,{back:null,current:currentLocation.value,forward:null,position:history.length-1,replaced:true,scroll:null},true);function changeLocation(to,state,replace){const hashIndex=base.indexOf(`#`);const url=hashIndex>-1?(location.host&&document.querySelector(`base`)?base:base.slice(hashIndex))+to:createBaseLocation()+base+to;try{history[replace?`replaceState`:`pushState`](state,``,url);historyState.value=state}catch(err){console.error(err);location[replace?`replace`:`assign`](url)}}function replace(to,data){changeLocation(to,assign({},history.state,buildState(historyState.value.back,to,historyState.value.forward,true),data,{position:historyState.value.position}),true);currentLocation.value=to}function push(to,data){const currentState=assign({},historyState.value,history.state,{forward:to,scroll:computeScrollPosition()});changeLocation(currentState.current,currentState,true);changeLocation(to,assign({},buildState(currentLocation.value,to,null),{position:currentState.position+1},data),false);currentLocation.value=to}return{location:currentLocation,state:historyState,push,replace}}function createWebHistory(base){base=normalizeBase(base);const historyNavigation=useHistoryStateNavigation(base);const historyListeners=useHistoryListeners(base,historyNavigation.state,historyNavigation.location,historyNavigation.replace);function go(delta,triggerListeners=true){if(!triggerListeners)historyListeners.pauseListeners();history.go(delta)}const routerHistory=assign({location:``,base,go,createHref:createHref.bind(null,base)},historyNavigation,historyListeners);Object.defineProperty(routerHistory,"location",{enumerable:true,get:()=>historyNavigation.location.value});Object.defineProperty(routerHistory,"state",{enumerable:true,get:()=>historyNavigation.state.value});return routerHistory}var ROOT_TOKEN={type:0,value:``};var VALID_PARAM_RE=/[a-zA-Z0-9_]/;function tokenizePath(path){if(!path)return[[]];if(path===`/`)return[[ROOT_TOKEN]];if(!isAbsolutePath(path))throw new Error(`Invalid path "${path}"`);function crash(message){throw new Error(`ERR (${state})/"${buffer}": ${message}`)}let state=0;let previousState=state;const tokens=[];let segment;function finalizeSegment(){if(segment)tokens.push(segment);segment=[]}let i=0;let char;let buffer=``;let customRe=``;function consumeBuffer(){if(!buffer)return;if(state===0)segment.push({type:0,value:buffer});else if(state===1||state===2||state===3){if(segment.length>1&&(char===`*`||char===`+`))crash(`A repeatable param (${buffer}) must be alone in its segment. eg: '/:ids+.`);segment.push({type:1,value:buffer,regexp:customRe,repeatable:char===`*`||char===`+`,optional:char===`*`||char===`?`})}else crash(`Invalid state to consume buffer`);buffer=``}function addCharToBuffer(){buffer+=char}while(i<path.length){char=path[i++];switch(state){case 0:if(char===`\\`){previousState=state;state=4}else if(char===`/`){if(buffer)consumeBuffer();finalizeSegment()}else if(char===`:`){consumeBuffer();state=1}else addCharToBuffer();break;case 4:addCharToBuffer();state=previousState;break;case 1:if(char===`(`)state=2;else if(VALID_PARAM_RE.test(char))addCharToBuffer();else{consumeBuffer();state=0;if(char!==`*`&&char!==`?`&&char!==`+`)i--}break;case 2:if(char===`)`){if(customRe[customRe.length-1]==`\\`)customRe=customRe.slice(0,-1)+char;else state=3}else customRe+=char;break;case 3:consumeBuffer();state=0;if(char!==`*`&&char!==`?`&&char!==`+`)i--;customRe=``;break;default:crash(`Unknown state`)}}if(state===2)crash(`Unfinished custom RegExp for param "${buffer}"`);consumeBuffer();finalizeSegment();return tokens}var BASE_PARAM_PATTERN=`[^/]+?`;var BASE_PATH_PARSER_OPTIONS={sensitive:false,strict:false,start:true,end:true};var REGEX_CHARS_RE=/[.+*?^${}()[\]/\\]/g;function tokensToParser(segments,extraOptions){const options=assign({},BASE_PATH_PARSER_OPTIONS,extraOptions);const score=[];let pattern=options.start?`^`:``;const keys=[];for(const segment of segments){const segmentScores=segment.length?[]:[90];if(options.strict&&!segment.length)pattern+=`/`;for(let tokenIndex=0;tokenIndex<segment.length;tokenIndex++){const token=segment[tokenIndex];let subSegmentScore=40+(options.sensitive?.25:0);if(token.type===0){if(!tokenIndex)pattern+=`/`;pattern+=token.value.replace(REGEX_CHARS_RE,`\\$&`);subSegmentScore+=40}else if(token.type===1){const{value,repeatable,optional,regexp}=token;keys.push({name:value,repeatable,optional});const re=regexp?regexp:BASE_PARAM_PATTERN;if(re!==BASE_PARAM_PATTERN){subSegmentScore+=10;try{new RegExp(`(${re})`)}catch(err){throw new Error(`Invalid custom RegExp for param "${value}" (${re}): `+err.message)}}let subPattern=repeatable?`((?:${re})(?:/(?:${re}))*)`:`(${re})`;if(!tokenIndex)subPattern=optional&&segment.length<2?`(?:/${subPattern})`:`/`+subPattern;if(optional)subPattern+=`?`;pattern+=subPattern;subSegmentScore+=20;if(optional)subSegmentScore+=-8;if(repeatable)subSegmentScore+=-20;if(re===`.*`)subSegmentScore+=-50}segmentScores.push(subSegmentScore)}score.push(segmentScores)}if(options.strict&&options.end){const i=score.length-1;score[i][score[i].length-1]+=.7000000000000001}if(!options.strict)pattern+=`/?`;if(options.end)pattern+=`$`;else if(options.strict&&!pattern.endsWith(`/`))pattern+=`(?:/|$)`;const re=new RegExp(pattern,options.sensitive?``:`i`);function parse(path){const match=path.match(re);const params={};if(!match)return null;for(let i=1;i<match.length;i++){const value=match[i]||``;const key=keys[i-1];params[key.name]=value&&key.repeatable?value.split(`/`):value}return params}function stringify(params){let path=``;let avoidDuplicatedSlash=false;for(const segment of segments){if(!avoidDuplicatedSlash||!path.endsWith(`/`))path+=`/`;avoidDuplicatedSlash=false;for(const token of segment)if(token.type===0)path+=token.value;else if(token.type===1){const{value,repeatable,optional}=token;const param=value in params?params[value]:``;if(isArray(param)&&!repeatable)throw new Error(`Provided param "${value}" is an array but it is not repeatable (* or + modifiers)`);const text=isArray(param)?param.join(`/`):param;if(!text){if(optional){if(segment.length<2){if(path.endsWith(`/`))path=path.slice(0,-1);else avoidDuplicatedSlash=true}}else throw new Error(`Missing required param "${value}"`)}path+=text}}return path||`/`}return{re,score,keys,parse,stringify}}function compareScoreArray(a,b){let i=0;while(i<a.length&&i<b.length){const diff=b[i]-a[i];if(diff)return diff;i++}if(a.length<b.length)return a.length===1&&a[0]===80?-1:1;else if(a.length>b.length)return b.length===1&&b[0]===80?1:-1;return 0}function comparePathParserScore(a,b){let i=0;const aScore=a.score;const bScore=b.score;while(i<aScore.length&&i<bScore.length){const comp=compareScoreArray(aScore[i],bScore[i]);if(comp)return comp;i++}if(Math.abs(bScore.length-aScore.length)===1){if(isLastScoreNegative(aScore))return 1;if(isLastScoreNegative(bScore))return-1}return bScore.length-aScore.length}function isLastScoreNegative(score){const last=score[score.length-1];return score.length>0&&last[last.length-1]<0}var PATH_PARSER_OPTIONS_DEFAULTS={strict:false,end:true,sensitive:false};function createRouteRecordMatcher(record,parent,options){const parser=tokensToParser(tokenizePath(record.path),options);const matcher=assign(parser,{record,parent,children:[],alias:[]});if(parent){if(!matcher.record.aliasOf===!parent.record.aliasOf)parent.children.push(matcher)}return matcher}function createRouterMatcher(routes,globalOptions){const matchers=[];const matcherMap=new Map;globalOptions=mergeOptions(PATH_PARSER_OPTIONS_DEFAULTS,globalOptions);function getRecordMatcher(name){return matcherMap.get(name)}function addRoute(record,parent,originalRecord){const isRootAdd=!originalRecord;const mainNormalizedRecord=normalizeRouteRecord(record);mainNormalizedRecord.aliasOf=originalRecord&&originalRecord.record;const options=mergeOptions(globalOptions,record);const normalizedRecords=[mainNormalizedRecord];if(`alias`in record){const aliases=typeof record.alias===`string`?[record.alias]:record.alias;for(const alias of aliases)normalizedRecords.push(normalizeRouteRecord(assign({},mainNormalizedRecord,{components:originalRecord?originalRecord.record.components:mainNormalizedRecord.components,path:alias,aliasOf:originalRecord?originalRecord.record:mainNormalizedRecord})))}let matcher;let originalMatcher;for(const normalizedRecord of normalizedRecords){const{path}=normalizedRecord;if(parent&&!isAbsolutePath(path)){const parentPath=parent.record.path;const connectingSlash=parentPath[parentPath.length-1]===`/`?``:`/`;normalizedRecord.path=parent.record.path+(path&&connectingSlash+path)}matcher=createRouteRecordMatcher(normalizedRecord,parent,options);if(originalRecord)originalRecord.alias.push(matcher);else{originalMatcher=originalMatcher||matcher;if(originalMatcher!==matcher)originalMatcher.alias.push(matcher);if(isRootAdd&&record.name&&!isAliasRecord(matcher))removeRoute(record.name)}if(isMatchable(matcher))insertMatcher(matcher);if(mainNormalizedRecord.children){const children=mainNormalizedRecord.children;for(let i=0;i<children.length;i++)addRoute(children[i],matcher,originalRecord&&originalRecord.children[i])}originalRecord=originalRecord||matcher}return originalMatcher?()=>{removeRoute(originalMatcher)}:noop$2}function removeRoute(matcherRef){if(isRouteName(matcherRef)){const matcher=matcherMap.get(matcherRef);if(matcher){matcherMap.delete(matcherRef);matchers.splice(matchers.indexOf(matcher),1);matcher.children.forEach(removeRoute);matcher.alias.forEach(removeRoute)}}else{const index=matchers.indexOf(matcherRef);if(index>-1){matchers.splice(index,1);if(matcherRef.record.name)matcherMap.delete(matcherRef.record.name);matcherRef.children.forEach(removeRoute);matcherRef.alias.forEach(removeRoute)}}}function getRoutes(){return matchers}function insertMatcher(matcher){const index=findInsertionIndex(matcher,matchers);matchers.splice(index,0,matcher);if(matcher.record.name&&!isAliasRecord(matcher))matcherMap.set(matcher.record.name,matcher)}function resolve(location,currentLocation){let matcher;let params={};let path;let name;if(`name`in location&&location.name){matcher=matcherMap.get(location.name);if(!matcher)throw createRouterError(1,{location});name=matcher.record.name;params=assign(pickParams(currentLocation.params,matcher.keys.filter(k=>!k.optional).concat(matcher.parent?matcher.parent.keys.filter(k=>k.optional):[]).map(k=>k.name)),location.params&&pickParams(location.params,matcher.keys.map(k=>k.name)));path=matcher.stringify(params)}else if(location.path!=null){path=location.path;matcher=matchers.find(m=>m.re.test(path));if(matcher){params=matcher.parse(path);name=matcher.record.name;matcher.keys.forEach(key=>{if(key.optional&&!params[key.name])delete params[key.name]})}}else{matcher=currentLocation.name?matcherMap.get(currentLocation.name):matchers.find(m=>m.re.test(currentLocation.path));if(!matcher)throw createRouterError(1,{location,currentLocation});name=matcher.record.name;params=assign({},currentLocation.params,location.params);path=matcher.stringify(params)}const matched=[];let parentMatcher=matcher;while(parentMatcher){matched.unshift(parentMatcher.record);parentMatcher=parentMatcher.parent}return{name,path,params,matched,meta:mergeMetaFields(matched)}}routes.forEach(route=>addRoute(route));function clearRoutes(){matchers.length=0;matcherMap.clear()}return{addRoute,resolve,removeRoute,clearRoutes,getRoutes,getRecordMatcher}}function pickParams(params,keys){const newParams={};for(const key of keys)if(key in params)newParams[key]=params[key];return newParams}function normalizeRouteRecord(record){const normalized={path:record.path,redirect:record.redirect,name:record.name,meta:record.meta||{},aliasOf:record.aliasOf,beforeEnter:record.beforeEnter,props:normalizeRecordProps(record),children:record.children||[],instances:{},leaveGuards:new Set,updateGuards:new Set,enterCallbacks:{},components:`components`in record?record.components||null:record.component&&{default:record.component}};Object.defineProperty(normalized,"mods",{value:{}});return normalized}function normalizeRecordProps(record){const propsObject={};const props=record.props||false;if(`component`in record)propsObject.default=props;else for(const name in record.components)propsObject[name]=typeof props===`object`?props[name]:props;return propsObject}function isAliasRecord(record){while(record){if(record.record.aliasOf)return true;record=record.parent}return false}function mergeMetaFields(matched){return matched.reduce((meta,record)=>assign(meta,record.meta),{})}function findInsertionIndex(matcher,matchers){let lower=0;let upper=matchers.length;while(lower!==upper){const mid=lower+upper>>1;if(comparePathParserScore(matcher,matchers[mid])<0)upper=mid;else lower=mid+1}const insertionAncestor=getInsertionAncestor(matcher);if(insertionAncestor)upper=matchers.lastIndexOf(insertionAncestor,upper-1);return upper}function getInsertionAncestor(matcher){let ancestor=matcher;while(ancestor=ancestor.parent)if(isMatchable(ancestor)&&comparePathParserScore(matcher,ancestor)===0)return ancestor}function isMatchable({record}){return!!(record.name||record.components&&Object.keys(record.components).length||record.redirect)}function useLink(props){const router=inject$1(routerKey);const currentRoute=inject$1(routeLocationKey);const route=computed(()=>{const to=unref(props.to);return router.resolve(to)});const activeRecordIndex=computed(()=>{const{matched}=route.value;const{length}=matched;const routeMatched=matched[length-1];const currentMatched=currentRoute.matched;if(!routeMatched||!currentMatched.length)return-1;const index=currentMatched.findIndex(isSameRouteRecord.bind(null,routeMatched));if(index>-1)return index;const parentRecordPath=getOriginalPath(matched[length-2]);return length>1&&getOriginalPath(routeMatched)===parentRecordPath&&currentMatched[currentMatched.length-1].path!==parentRecordPath?currentMatched.findIndex(isSameRouteRecord.bind(null,matched[length-2])):index});const isActive=computed(()=>activeRecordIndex.value>-1&&includesParams(currentRoute.params,route.value.params));const isExactActive=computed(()=>activeRecordIndex.value>-1&&activeRecordIndex.value===currentRoute.matched.length-1&&isSameRouteLocationParams(currentRoute.params,route.value.params));function navigate(e={}){if(guardEvent(e)){const p=router[unref(props.replace)?`replace`:`push`](unref(props.to)).catch(noop$2);if(props.viewTransition&&typeof document!==`undefined`&&`startViewTransition`in document)document.startViewTransition(()=>p);return p}return Promise.resolve()}return{route,href:computed(()=>route.value.href),isActive,isExactActive,navigate}}function preferSingleVNode(vnodes){return vnodes.length===1?vnodes[0]:vnodes}var RouterLink=defineComponent({name:`RouterLink`,compatConfig:{MODE:3},props:{to:{type:[String,Object],required:true},replace:Boolean,activeClass:String,exactActiveClass:String,custom:Boolean,ariaCurrentValue:{type:String,default:`page`},viewTransition:Boolean},useLink,setup(props,{slots}){const link=reactive(useLink(props));const{options}=inject$1(routerKey);const elClass=computed(()=>({[getLinkClass(props.activeClass,options.linkActiveClass,`router-link-active`)]:link.isActive,[getLinkClass(props.exactActiveClass,options.linkExactActiveClass,`router-link-exact-active`)]:link.isExactActive}));return()=>{const children=slots.default&&preferSingleVNode(slots.default(link));return props.custom?children:h$1(`a`,{"aria-current":link.isExactActive?props.ariaCurrentValue:null,href:link.href,onClick:link.navigate,class:elClass.value},children)}}});function guardEvent(e){if(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)return;if(e.defaultPrevented)return;if(e.button!==void 0&&e.button!==0)return;if(e.currentTarget&&e.currentTarget.getAttribute){const target=e.currentTarget.getAttribute(`target`);if(/\b_blank\b/i.test(target))return}if(e.preventDefault)e.preventDefault();return true}function includesParams(outer,inner){for(const key in inner){const innerValue=inner[key];const outerValue=outer[key];if(isArray(innerValue)){if(!isArray(outerValue)||outerValue.length!==innerValue.length||innerValue.some((value,i)=>value.valueOf()!==outerValue[i].valueOf()))return false}else if(innerValue!==outerValue)return false}return true}function getOriginalPath(record){return record?record.aliasOf?record.aliasOf.path:record.path:``}var getLinkClass=(propClass,globalClass,defaultClass)=>propClass!=null?propClass:globalClass!=null?globalClass:defaultClass;var RouterViewImpl=defineComponent({name:`RouterView`,inheritAttrs:false,props:{name:{type:String,default:`default`},route:Object},compatConfig:{MODE:3},setup(props,{attrs,slots}){const injectedRoute=inject$1(routerViewLocationKey);const routeToDisplay=computed(()=>props.route||injectedRoute.value);const injectedDepth=inject$1(viewDepthKey,0);const depth=computed(()=>{let initialDepth=unref(injectedDepth);const{matched}=routeToDisplay.value;let matchedRoute;while((matchedRoute=matched[initialDepth])&&!matchedRoute.components)initialDepth++;return initialDepth});const matchedRouteRef=computed(()=>routeToDisplay.value.matched[depth.value]);provide(viewDepthKey,computed(()=>depth.value+1));provide(matchedRouteKey,matchedRouteRef);provide(routerViewLocationKey,routeToDisplay);const viewRef=ref();watch(()=>[viewRef.value,matchedRouteRef.value,props.name],([instance,to,name],[oldInstance,from,_oldName])=>{if(to){to.instances[name]=instance;if(from&&from!==to&&instance&&instance===oldInstance){if(!to.leaveGuards.size)to.leaveGuards=from.leaveGuards;if(!to.updateGuards.size)to.updateGuards=from.updateGuards}}if(instance&&to&&(!from||!isSameRouteRecord(to,from)||!oldInstance))(to.enterCallbacks[name]||[]).forEach(callback=>callback(instance))},{flush:`post`});return()=>{const route=routeToDisplay.value;const currentName=props.name;const matchedRoute=matchedRouteRef.value;const ViewComponent=matchedRoute&&matchedRoute.components[currentName];if(!ViewComponent)return normalizeSlot(slots.default,{Component:ViewComponent,route});const routePropsOption=matchedRoute.props[currentName];const routeProps=routePropsOption?routePropsOption===true?route.params:typeof routePropsOption===`function`?routePropsOption(route):routePropsOption:null;const onVnodeUnmounted=vnode=>{if(vnode.component.isUnmounted)matchedRoute.instances[currentName]=null};const component=h$1(ViewComponent,assign({},routeProps,attrs,{onVnodeUnmounted,ref:viewRef}));return normalizeSlot(slots.default,{Component:component,route})||component}}});function normalizeSlot(slot,data){if(!slot)return null;const slotContent=slot(data);return slotContent.length===1?slotContent[0]:slotContent}var RouterView=RouterViewImpl;function createRouter(options){const matcher=createRouterMatcher(options.routes,options);const parseQuery$1=options.parseQuery||parseQuery;const stringifyQuery$1=options.stringifyQuery||stringifyQuery;const routerHistory=options.history;const beforeGuards=useCallbacks();const beforeResolveGuards=useCallbacks();const afterGuards=useCallbacks();const currentRoute=shallowRef(START_LOCATION_NORMALIZED);const routesVersion=shallowRef(0);let pendingLocation=START_LOCATION_NORMALIZED;if(isBrowser&&options.scrollBehavior&&`scrollRestoration`in history)history.scrollRestoration=`manual`;const normalizeParams=applyToParams.bind(null,paramValue=>``+paramValue);const encodeParams=applyToParams.bind(null,encodeParam);const decodeParams=applyToParams.bind(null,decode$2);function addRoute(parentOrRoute,route){let parent;let record;if(isRouteName(parentOrRoute)){parent=matcher.getRecordMatcher(parentOrRoute);record=route}else record=parentOrRoute;const removeRoute=matcher.addRoute(record,parent);routesVersion.value++;return()=>{removeRoute();routesVersion.value++}}function removeRoute(name){const recordMatcher=matcher.getRecordMatcher(name);if(recordMatcher){matcher.removeRoute(recordMatcher);routesVersion.value++}}function clearRoutes(){matcher.clearRoutes();routesVersion.value++}function getRoutes(){return matcher.getRoutes().map(routeMatcher=>routeMatcher.record)}function hasRoute(name){return!!matcher.getRecordMatcher(name)}function resolve(rawLocation,currentLocation){routesVersion.value;if(typeof rawLocation===`string`){currentLocation=currentLocation||(rawLocation.startsWith(`/`)?START_LOCATION_NORMALIZED:currentRoute.value);const locationNormalized=parseURL(parseQuery$1,rawLocation,currentLocation.path);const matchedRoute=matcher.resolve({path:locationNormalized.path},currentLocation);const href=routerHistory.createHref(locationNormalized.fullPath);return assign(locationNormalized,matchedRoute,{params:decodeParams(matchedRoute.params),redirectedFrom:void 0,href})}currentLocation=assign({},currentLocation||(rawLocation.path!=null&&rawLocation.path.startsWith(`/`)&&!(`name`in rawLocation&&rawLocation.name)?START_LOCATION_NORMALIZED:currentRoute.value));let matcherLocation;if(rawLocation.path!=null)matcherLocation=assign({},rawLocation,{path:parseURL(parseQuery$1,rawLocation.path,currentLocation.path).path});else{const targetParams=assign({},rawLocation.params);for(const key in targetParams)if(targetParams[key]==null)delete targetParams[key];matcherLocation=assign({},rawLocation,{params:encodeParams(targetParams)});currentLocation.params=encodeParams(currentLocation.params)}const matchedRoute=matcher.resolve(matcherLocation,currentLocation);const hash=rawLocation.hash||``;matchedRoute.params=normalizeParams(decodeParams(matchedRoute.params));const fullPath=stringifyURL(stringifyQuery$1,assign({},rawLocation,{hash:encodeHash(hash),path:matchedRoute.path}));const href=routerHistory.createHref(fullPath);return assign({fullPath,hash,query:stringifyQuery$1===stringifyQuery?normalizeQuery(rawLocation.query):rawLocation.query||{}},matchedRoute,{redirectedFrom:void 0,href})}function locationAsObject(to){return typeof to===`string`?parseURL(parseQuery$1,to,currentRoute.value.path):assign({},to)}function checkCanceledNavigation(to,from){if(pendingLocation!==to)return createRouterError(8,{from,to})}function push(to){return pushWithRedirect(to)}function replace(to){return push(assign(locationAsObject(to),{replace:true}))}function handleRedirectRecord(to,from){const lastMatched=to.matched[to.matched.length-1];if(lastMatched&&lastMatched.redirect){const{redirect}=lastMatched;let newTargetLocation=typeof redirect===`function`?redirect(to,from):redirect;if(typeof newTargetLocation===`string`){newTargetLocation=newTargetLocation.includes(`?`)||newTargetLocation.includes(`#`)?newTargetLocation=locationAsObject(newTargetLocation):{path:newTargetLocation};newTargetLocation.params={}}return assign({query:to.query,hash:to.hash,params:newTargetLocation.path!=null?{}:to.params},newTargetLocation)}}function pushWithRedirect(to,redirectedFrom){const targetLocation=pendingLocation=resolve(to);const from=currentRoute.value;const data=to.state;const force=to.force;const replace=to.replace===true;const shouldRedirect=handleRedirectRecord(targetLocation,from);if(shouldRedirect)return pushWithRedirect(assign(locationAsObject(shouldRedirect),{state:typeof shouldRedirect===`object`?assign({},data,shouldRedirect.state):data,force,replace}),redirectedFrom||targetLocation);const toLocation=targetLocation;toLocation.redirectedFrom=redirectedFrom;let failure;if(!force&&isSameRouteLocation(stringifyQuery$1,from,targetLocation)){failure=createRouterError(16,{to:toLocation,from});handleScroll(from,from,true,false)}return(failure?Promise.resolve(failure):navigate(toLocation,from)).catch(error=>isNavigationFailure(error)?isNavigationFailure(error,2)?error:markAsReady(error):triggerError(error,toLocation,from)).then(failure=>{if(failure){if(isNavigationFailure(failure,2))return pushWithRedirect(assign({replace},locationAsObject(failure.to),{state:typeof failure.to===`object`?assign({},data,failure.to.state):data,force}),redirectedFrom||toLocation)}else failure=finalizeNavigation(toLocation,from,true,replace,data);triggerAfterEach(toLocation,from,failure);return failure})}function checkCanceledNavigationAndReject(to,from){const error=checkCanceledNavigation(to,from);return error?Promise.reject(error):Promise.resolve()}function runWithContext(fn){const app=installedApps.values().next().value;return app&&typeof app.runWithContext===`function`?app.runWithContext(fn):fn()}function navigate(to,from){let guards;const[leavingRecords,updatingRecords,enteringRecords]=extractChangingRecords(to,from);guards=extractComponentsGuards(leavingRecords.reverse(),`beforeRouteLeave`,to,from);for(const record of leavingRecords)record.leaveGuards.forEach(guard=>{guards.push(guardToPromiseFn(guard,to,from))});const canceledNavigationCheck=checkCanceledNavigationAndReject.bind(null,to,from);guards.push(canceledNavigationCheck);return runGuardQueue(guards).then(()=>{guards=[];for(const guard of beforeGuards.list())guards.push(guardToPromiseFn(guard,to,from));guards.push(canceledNavigationCheck);return runGuardQueue(guards)}).then(()=>{guards=extractComponentsGuards(updatingRecords,`beforeRouteUpdate`,to,from);for(const record of updatingRecords)record.updateGuards.forEach(guard=>{guards.push(guardToPromiseFn(guard,to,from))});guards.push(canceledNavigationCheck);return runGuardQueue(guards)}).then(()=>{guards=[];for(const record of enteringRecords)if(record.beforeEnter){if(isArray(record.beforeEnter))for(const beforeEnter of record.beforeEnter)guards.push(guardToPromiseFn(beforeEnter,to,from));else guards.push(guardToPromiseFn(record.beforeEnter,to,from))}guards.push(canceledNavigationCheck);return runGuardQueue(guards)}).then(()=>{to.matched.forEach(record=>record.enterCallbacks={});guards=extractComponentsGuards(enteringRecords,`beforeRouteEnter`,to,from,runWithContext);guards.push(canceledNavigationCheck);return runGuardQueue(guards)}).then(()=>{guards=[];for(const guard of beforeResolveGuards.list())guards.push(guardToPromiseFn(guard,to,from));guards.push(canceledNavigationCheck);return runGuardQueue(guards)}).catch(err=>isNavigationFailure(err,8)?err:Promise.reject(err))}function triggerAfterEach(to,from,failure){afterGuards.list().forEach(guard=>runWithContext(()=>guard(to,from,failure)))}function finalizeNavigation(toLocation,from,isPush,replace,data){const error=checkCanceledNavigation(toLocation,from);if(error)return error;const isFirstNavigation=from===START_LOCATION_NORMALIZED;const state=!isBrowser?{}:history.state;if(isPush){if(replace||isFirstNavigation)routerHistory.replace(toLocation.fullPath,assign({scroll:isFirstNavigation&&state&&state.scroll},data));else routerHistory.push(toLocation.fullPath,data)}currentRoute.value=toLocation;handleScroll(toLocation,from,isPush,isFirstNavigation);markAsReady()}let removeHistoryListener;function setupListeners(){if(removeHistoryListener)return;removeHistoryListener=routerHistory.listen((to,_from,info)=>{if(!router.listening)return;const toLocation=resolve(to);const shouldRedirect=handleRedirectRecord(toLocation,router.currentRoute.value);if(shouldRedirect){pushWithRedirect(assign(shouldRedirect,{replace:true,force:true}),toLocation).catch(noop$2);return}pendingLocation=toLocation;const from=currentRoute.value;if(isBrowser&&info.delta)saveScrollPosition(getScrollKey(from.fullPath,info.delta));navigate(toLocation,from).catch(error=>{if(isNavigationFailure(error,12))return error;if(isNavigationFailure(error,2)){pushWithRedirect(assign(locationAsObject(error.to),{force:true}),toLocation).then(failure=>{if(isNavigationFailure(failure,20)&&!info.delta&&info.type===`pop`)routerHistory.go(-1,false)}).catch(noop$2);return Promise.reject()}if(info.delta)routerHistory.go(-info.delta,false);return triggerError(error,toLocation,from)}).then(failure=>{failure=failure||finalizeNavigation(toLocation,from,false);if(failure){if(info.delta&&!isNavigationFailure(failure,8))routerHistory.go(-info.delta,false);else if(info.type===`pop`&&isNavigationFailure(failure,20))routerHistory.go(-1,false)}triggerAfterEach(toLocation,from,failure)}).catch(noop$2)})}let readyHandlers=useCallbacks();let errorListeners=useCallbacks();let ready;function triggerError(error,to,from){markAsReady(error);const list=errorListeners.list();if(list.length)list.forEach(handler=>handler(error,to,from));else console.error(error);return Promise.reject(error)}function isReady(){if(ready&&currentRoute.value!==START_LOCATION_NORMALIZED)return Promise.resolve();return new Promise((resolve,reject)=>{readyHandlers.add([resolve,reject])})}function markAsReady(err){if(!ready){ready=!err;setupListeners();readyHandlers.list().forEach(([resolve,reject])=>err?reject(err):resolve());readyHandlers.reset()}return err}function handleScroll(to,from,isPush,isFirstNavigation){const{scrollBehavior}=options;if(!isBrowser||!scrollBehavior)return Promise.resolve();const scrollPosition=!isPush&&getSavedScrollPosition(getScrollKey(to.fullPath,0))||(isFirstNavigation||!isPush)&&history.state&&history.state.scroll||null;return nextTick$1().then(()=>scrollBehavior(to,from,scrollPosition)).then(position=>to===currentRoute.value&&position&&scrollToPosition(position)).catch(err=>to===currentRoute.value&&triggerError(err,to,from))}const go=delta=>routerHistory.go(delta);let started;const installedApps=new Set;const router={currentRoute,listening:true,addRoute,removeRoute,clearRoutes,hasRoute,getRoutes,resolve,options,push,replace,go,back:()=>go(-1),forward:()=>go(1),beforeEach:beforeGuards.add,beforeResolve:beforeResolveGuards.add,afterEach:afterGuards.add,onError:errorListeners.add,isReady,install(app){app.component(`RouterLink`,RouterLink);app.component(`RouterView`,RouterView);app.config.globalProperties.$router=router;Object.defineProperty(app.config.globalProperties,"$route",{enumerable:true,get:()=>unref(currentRoute)});if(isBrowser&&!started&&currentRoute.value===START_LOCATION_NORMALIZED){started=true;push(routerHistory.location).catch(err=>{})}const reactiveRoute={};for(const key in START_LOCATION_NORMALIZED)Object.defineProperty(reactiveRoute,key,{get:()=>currentRoute.value[key],enumerable:true});app.provide(routerKey,router);app.provide(routeLocationKey,shallowReactive(reactiveRoute));app.provide(routerViewLocationKey,currentRoute);const unmountApp=app.unmount;installedApps.add(app);app.unmount=function(){installedApps.delete(app);if(installedApps.size<1){pendingLocation=START_LOCATION_NORMALIZED;removeHistoryListener&&removeHistoryListener();removeHistoryListener=null;currentRoute.value=START_LOCATION_NORMALIZED;started=false;ready=false}unmountApp()}}};function runGuardQueue(guards){return guards.reduce((promise,guard)=>promise.then(()=>runWithContext(guard)),Promise.resolve())}return router}function queryStringToObject(queryString=``){const normalizedQueryString=String(queryString||``).trim().replace(/^\?+/,``);if(!normalizedQueryString)return;const params=new URLSearchParams(normalizedQueryString);const query={};for(const[key,value]of params.entries()){if(!Object.prototype.hasOwnProperty.call(query,key)){query[key]=value;continue}if(Array.isArray(query[key])){query[key].push(value);continue}query[key]=[query[key],value]}return query}function redirectToChild(childTarget=``){const normalizedChildTarget=String(childTarget||``).trim();return function redirectToChildRoute(to){const resolvedTarget=resolveLinkPath(String(to.path||`/`),normalizedChildTarget);const{pathname,queryString,hash}=splitPathQueryAndHash(resolvedTarget);return{path:pathname||`/`,query:queryStringToObject(queryString)??to.query,hash:hash||String(to.hash||``)}}}var dashboard_vue_definePage_vue_lang_default={redirect:redirectToChild(`env`)};function _mergeRouteRecord(main,...routeRecords){return routeRecords.reduce((acc,routeRecord)=>{const meta=Object.assign({},acc.meta,routeRecord.meta);const alias=[].concat(acc.alias||[],routeRecord.alias||[]);Object.assign(acc,routeRecord);acc.meta=meta;acc.alias=alias;return acc},main)}var routes=[{path:`/`,name:`/`,component:()=>__vitePreload(()=>import(`./pages-5jaEclQo.js`),__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10])),meta:{"jskit":{"scope":`global`}}},{path:`/app`,children:[{path:``,name:`/app/`,component:()=>__vitePreload(()=>import(`./app-D7V6OMMB.js`),__vite__mapDeps([11,1,2,12,13,14,15,16,17,18,19,5,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,4,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,7,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,8,6,3,9,79,80,81,82,83,84,85,86,87,88,89,90,91,10,92])),meta:{"jskit":{"surface":`app`}}},{path:`learning`,name:`/app/learning`,component:()=>__vitePreload(()=>import(`./learning-DAIqaO0B.js`),__vite__mapDeps([93,1,94,95,8,4,5,6,7,96,97,58,47,13,14,77,51,52,78,43,44,45,46,48,49,50,53,2,20,54,26,15,27,37,38,40,41,55,56,23,24,57,12,16,17,18,19,21,22,25,28,29,30,31,32,33,34,35,59,42,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,3,9,79,80,81,82,83,84,85,86,36,39,87,88,89,90,91,98,99,100,101,102,103,104,105,106,107,108,109,110,111,112,113,114,115,116,117,118,119,120,121,122,123,10,124,125,126,127,128,129,130,131,132,133,134,135,136,137,138,139])),meta:{"jskit":{"surface":`app`}}},{path:`project`,children:[{path:`:slug`,name:`/app/project/[slug]`,component:()=>__vitePreload(()=>import(`./_slug_-ClQKNEA9.js`).then(n=>n.n),__vite__mapDeps([94,95,8,1,4,5,6,7,96,97,58,47,13,14,77,51,52,78,43,44,45,46,48,49,50,53,2,20,54,26,15,27,37,38,40,41,55,56,23,24,57,12,16,17,18,19,21,22,25,28,29,30,31,32,33,34,35,59,42,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,3,9,79,80,81,82,83,84,85,86,36,39,87,88,89,90,91,98,99,100,101,102,103,104,105,106,107,108,109,110,111,112,113,114,115,116,117,118,119,120,121,122,123,10,124,125,126,127,128,129,130,131,132,133,134,135,136,137,138,139])),children:[_mergeRouteRecord({path:`dashboard`,name:`/app/project/[slug]/dashboard`,component:()=>__vitePreload(()=>import(`./dashboard-D6JkBdZg.js`),__vite__mapDeps([140,1,130,95,8,4,5,6,7,96,97,58,47,2,54,13,14,26,15,27,37,38,40,41,55,56,23,24,57,29,30,89,51,52,78,9,90,131])),children:[{path:`:sessionTool`,name:`/app/project/[slug]/dashboard/[sessionTool]`,component:()=>__vitePreload(()=>import(`./_sessionTool_-CBf51mfK.js`),__vite__mapDeps([141,1,2,29,97,58,47,142]))},{path:`access`,children:[{path:``,name:`/app/project/[slug]/dashboard/access/`,component:()=>__vitePreload(()=>import(`./access-BqnqYSZR.js`),__vite__mapDeps([143,1,13,14,43,5,44,4,45,46,47,48,49,50,51,52,53,54,26,15,27,37,38,40,41,55,56,23,24,57,12,16,17,18,29,76,77,78,7,8,6,3,2,9,79,30,85,58,59,128,129,135,110,109,144]))}]},{path:`changes`,children:[{path:``,name:`/app/project/[slug]/dashboard/changes/`,component:()=>__vitePreload(()=>import(`./changes-odK1bV6J.js`),__vite__mapDeps([145,1,146,95,8,4,5,6,7,96,97,58,47,13,14,12,15,16,17,18,37,26,27,38,44,45,46,23,24,25,28,64,65,68,69,29,49,108,110,48,109,30,83,84,31,32,33,121,104,54,40,41,55,56,57,51,52,60,61,100,101,102,103,22,105,106,122,147,148,149,150]))}]},{path:`env`,children:[{path:``,name:`/app/project/[slug]/dashboard/env/`,component:()=>__vitePreload(()=>import(`./env-CIy7uwLb.js`),__vite__mapDeps([151,1,13,14,43,5,44,4,45,46,47,48,49,50,51,52,53,2,12,15,16,17,18,40,26,27,41,62,55,56,63,25,28,64,65,117,118,68,69,70,71,29,76,77,78,7,8,6,3,9,79,30,85,58,59,152,84,128,129,135,110,109,148,149,153,154,155]))}]},{path:`health`,children:[{path:``,name:`/app/project/[slug]/dashboard/health/`,component:()=>__vitePreload(()=>import(`./health-B9ZoQC78.js`),__vite__mapDeps([156,1,13,14,43,5,44,4,45,46,47,48,49,50,51,52,53,12,15,16,17,18,42,2,54,26,27,37,38,40,41,55,56,23,24,57,19,20,21,22,25,28,29,30,31,32,33,34,35,58,59,7,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,8,6,3,9,79,80,81,82,83,84,85,86,148,149,157]))}]},{path:`history`,children:[{path:``,name:`/app/project/[slug]/dashboard/history/`,component:()=>__vitePreload(()=>import(`./history-IBqZqdSL.js`),__vite__mapDeps([158,1,13,14,12,15,16,17,18,23,24,64,65,29,114,5,137,70,71,79,77,51,52,78,50,44,4,45,46,47,53,34,138,148,149,159,43,48,49,2,58,3,6,7,8,9,108,110,109,30,113,105,133,136,20,80,81,160]))},{path:`:sessionId`,name:`/app/project/[slug]/dashboard/history/[sessionId]`,component:()=>__vitePreload(()=>import(`./_sessionId_-jSlkZQLV.js`),__vite__mapDeps([161,1,13,14,12,15,16,17,18,23,24,29,111,43,5,44,4,45,46,47,48,49,50,51,52,53,58,59,7,25,26,27,28,64,65,68,69,102,103,6,22,104,54,37,38,40,41,55,56,57,60,61,100,101,105,106,76,77,78,8,3,2,9,79,110,109,30,80,81,82,83,112,84,113,114,115,116,117,118,119,120,162,95,96,97,163,87,88,34,164,165,152,166,167,108,33,168,169,20,123,147,170,171,159,133,136,172]))}]},{path:`integrations`,children:[{path:``,name:`/app/project/[slug]/dashboard/integrations/`,component:()=>__vitePreload(()=>import(`./integrations-BBMdyyMq.js`),__vite__mapDeps([173,95,8,1,4,5,6,7,96,97,58,47,13,14,43,44,45,46,48,49,50,51,52,53,2,54,26,15,27,37,38,40,41,55,56,23,24,57,12,16,17,18,21,103,22,60,61,62,63,25,28,64,65,66,67,70,71,74,75,100,101,29,107,76,77,78,3,9,79,108,109,30,110,33,174,128,129,153,154,175]))}]},{path:`issues`,children:[{path:``,name:`/app/project/[slug]/dashboard/issues/`,component:()=>__vitePreload(()=>import(`./issues-DwUO1HjX.js`),__vite__mapDeps([176,1,13,14,43,5,44,4,45,46,47,48,49,50,51,52,53,2,12,15,16,17,18,26,27,37,38,40,41,58,59,7,60,54,55,56,23,24,57,61,25,28,64,65,68,69,100,101,29,107,79,77,78,109,30,96,126,127,177,178]))}]},{path:`pages`,children:[{path:``,name:`/app/project/[slug]/dashboard/pages/`,component:()=>__vitePreload(()=>import(`./pages-DoUMcieZ.js`),__vite__mapDeps([179,1,2,58,29,115,13,14,116,12,15,16,17,18,37,26,27,38,44,4,5,45,46,47,59,7,25,28,64,65,117,118,68,69,79,77,51,52,78,50,53,84,119,148,149,180]))},{path:`:pageId`,name:`/app/project/[slug]/dashboard/pages/[pageId]`,component:()=>__vitePreload(()=>import(`./_pageId_-M5CNslNQ.js`),__vite__mapDeps([181,1,2,58,115,13,14,116,12,15,16,17,18,37,26,27,38,44,4,5,45,46,47,59,7,25,28,64,65,117,118,68,69,29,79,77,51,52,78,50,53,84,119]))}]},{path:`project-files`,children:[{path:``,name:`/app/project/[slug]/dashboard/project-files/`,component:()=>__vitePreload(()=>import(`./project-files-DilujZdI.js`),__vite__mapDeps([182,1,13,14,2,58,59,44,4,5,45,46,47,7,29,110,48,109,30,163,12,15,16,17,18,37,26,27,38,40,41,87,88,25,28,64,65,68,69,100,101,102,103,6,51,52,22,79,77,78,50,53,83,112,84,34,164,165,152,166,148,149,183]))}]},{path:`publish`,children:[{path:``,name:`/app/project/[slug]/dashboard/publish/`,component:()=>__vitePreload(()=>import(`./publish-KZQ_gdoN.js`),__vite__mapDeps([184,1,13,14,12,15,16,17,18,26,27,37,38,40,41,44,4,5,45,46,47,59,58,7,62,55,56,63,23,24,25,28,64,65,68,69,72,73,100,101,29,107,54,57,51,52,60,61,53,148,149,185]))}]},{path:`pull-requests`,children:[{path:``,name:`/app/project/[slug]/dashboard/pull-requests/`,component:()=>__vitePreload(()=>import(`./pull-requests-BB3CAadu.js`),__vite__mapDeps([186,1,13,14,43,5,44,4,45,46,47,48,49,50,51,52,53,2,54,26,15,27,37,38,40,41,55,56,23,24,57,12,16,17,18,58,59,7,25,28,64,65,68,69,29,104,60,61,100,101,102,103,6,22,105,106,79,77,78,113,114,96,124,42,19,20,21,30,31,32,33,34,35,62,63,66,67,70,71,72,73,74,75,76,8,3,9,80,81,82,83,84,85,86,107,108,110,109,125,126,127,177,187]))}]},{path:`repository`,children:[{path:``,name:`/app/project/[slug]/dashboard/repository/`,component:()=>__vitePreload(()=>import(`./repository-B90tiuN6.js`),__vite__mapDeps([188,1,146,95,8,4,5,6,7,96,97,58,47,13,14,12,15,16,17,18,37,26,27,38,44,45,46,23,24,25,28,64,65,68,69,29,49,108,110,48,109,30,83,84,31,32,33,121,104,54,40,41,55,56,57,51,52,60,61,100,101,102,103,22,105,106,122,147,148,149,150]))}]},{path:`session`,children:[{path:``,name:`/app/project/[slug]/dashboard/session/`,component:()=>__vitePreload(()=>import(`./session-B5MoHBVk.js`),__vite__mapDeps([189,1,13,14,16,17,23,24,29,132,5,114,148,149,190]))}]},{path:`settings`,children:[{path:``,name:`/app/project/[slug]/dashboard/settings/`,component:()=>__vitePreload(()=>import(`./settings-DdbhtNHb.js`),__vite__mapDeps([191,1,43,5,44,4,45,46,47,48,49,50,51,52,53,2,54,13,14,26,15,27,37,38,40,41,55,56,23,24,57,12,16,17,18,59,58,7,62,63,72,73,74,75,100,101,29,107,60,61,76,77,78,8,6,3,9,79,30,110,109,85,128,129,134,108,114,123,83,133,135,192]))}]}]},dashboard_vue_definePage_vue_lang_default)],meta:{"jskit":{"surface":`app`}}}]}]}];function genDefaults(){return{svg:{component:VSvgIcon},class:{component:VClassIcon}}}function createIcons(options){const sets=genDefaults();const defaultSet=options?.defaultSet??`mdi`;if(defaultSet===`mdi`&&!sets.mdi)sets.mdi=mdi;return mergeDeep({defaultSet,sets,aliases:{...aliases,vuetify:[`M8.2241 14.2009L12 21L22 3H14.4459L8.2241 14.2009Z`,[`M7.26303 12.4733L7.00113 12L2 3H12.5261C12.5261 3 12.5261 3 12.5261 3L7.26303 12.4733Z`,.6]],"vuetify-outline":`svg:M7.26 12.47 12.53 3H2L7.26 12.47ZM14.45 3 8.22 14.2 12 21 22 3H14.45ZM18.6 5 12 16.88 10.51 14.2 15.62 5ZM7.26 8.35 5.4 5H9.13L7.26 8.35Z`,"vuetify-play":[`m6.376 13.184-4.11-7.192C1.505 4.66 2.467 3 4.003 3h8.532l-.953 1.576-.006.01-.396.677c-.429.732-.214 1.507.194 2.015.404.503 1.092.878 1.869.806a3.72 3.72 0 0 1 1.005.022c.276.053.434.143.523.237.138.146.38.635-.25 2.09-.893 1.63-1.553 1.722-1.847 1.677-.213-.033-.468-.158-.756-.406a4.95 4.95 0 0 1-.8-.927c-.39-.564-1.04-.84-1.66-.846-.625-.006-1.316.27-1.693.921l-.478.826-.911 1.506Z`,[`M9.093 11.552c.046-.079.144-.15.32-.148a.53.53 0 0 1 .43.207c.285.414.636.847 1.046 1.2.405.35.914.662 1.516.754 1.334.205 2.502-.698 3.48-2.495l.014-.028.013-.03c.687-1.574.774-2.852-.005-3.675-.37-.391-.861-.586-1.333-.676a5.243 5.243 0 0 0-1.447-.044c-.173.016-.393-.073-.54-.257-.145-.18-.127-.316-.082-.392l.393-.672L14.287 3h5.71c1.536 0 2.499 1.659 1.737 2.992l-7.997 13.996c-.768 1.344-2.706 1.344-3.473 0l-3.037-5.314 1.377-2.278.004-.006.004-.007.481-.831Z`,.6]]}},options)}function weekInfo(locale){const code=locale.slice(-2).toUpperCase();switch(true){case locale===`GB-alt-variant`:return{firstDay:0,firstWeekSize:4};case locale===`001`:return{firstDay:1,firstWeekSize:1};case`AG AS BD BR BS BT BW BZ CA CO DM DO ET GT GU HK HN ID IL IN JM JP KE
1
+ const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/pages-5jaEclQo.js","assets/runtime-core.esm-bundler-Bi1P1jMa.js","assets/useApi-BPuI6ZR9-rsYWyW6m.js","assets/usePaths-CvUbx5-V.js","assets/returnToPath-CILshEkc.js","assets/normalize-BD25VwNK.js","assets/linkPath-BsiibCNd.js","assets/surface-CBlx7sF_.js","assets/placement-1lT0lW3-.js","assets/pathname-JHQIKk21.js","assets/route-block-DbL-SuOj.js","assets/app-CXljwZ0u.js","assets/VSkeletonLoader-Bl9P5wdh.js","assets/VChip-D2IukBZw.js","assets/VChip-4Nj-0ztL.css","assets/lazy-vXRXMwYF.js","assets/VBtn-2vbH580C.js","assets/VBtn-C1plz3b1.css","assets/VSkeletonLoader-DXZarZ9m.css","assets/useVibe64Learning-DiLAIKbI.js","assets/preload-helper-BvdcsxN9.js","assets/vibe64AssistantHost-CyWUOG-F.js","assets/asyncModuleRecovery-BALhPqsY.js","assets/VSheet-D5wAuyc2.js","assets/VSheet-BbLSwuzR.css","assets/VDialog-BCIrX462.js","assets/VOverlay-EPzW7eVB.js","assets/VOverlay-DG-PukqI.css","assets/VDialog-DP-kc9Gx.css","assets/_plugin-vue_export-helper-DNW4j-dv.js","assets/browser-D8z6v6Ge.js","assets/StudioErrorNotice-CCT_T6mT.js","assets/StudioErrorNotice-CQfeUEOD.css","assets/browserLocalStorage-B4C7rHrs.js","assets/clipboard-CZs9aH3L.js","assets/useVibe64Learning-B9b7aUr-.css","assets/Vibe64AuthSettingsButton-BGtVvQq0.js","assets/VMenu-Bql3E6DV.js","assets/VMenu-DCU7zd0B.css","assets/layout-B_cpKP4k.js","assets/VTextField-B9R7EIjg.js","assets/VTextField-F6unyhrS.css","assets/client-BRcncaFt.js","assets/useEndpointResource-CmMwteuX.js","assets/httpClient-Bwitq9Xf.js","assets/queryPath-yKLyWw8V.js","assets/validators-HqYRjxEO.js","assets/deepFreeze-BgoYkoTa.js","assets/visibility-Cq31Xy7I.js","assets/useRealtimeEvent-B4oRg9Dt.js","assets/errorMessageHelpers-BjIt31kK.js","assets/i18n-BuXRXGaO.js","assets/i18n-DpzQwXg6.js","assets/i18n-BkxO7BMl.js","assets/VSelect-Ch00dyiM.js","assets/VCheckboxBtn-DDlYJnth.js","assets/VCheckboxBtn-o1O5Bixh.css","assets/VSelect-yFA6_y4G.css","assets/vibe64ProjectScope.local-B9ZpdYlf.js","assets/studioUrls-k_pQIuPs.js","assets/VAutocomplete-BnpXAJGa.js","assets/VAutocomplete-D48FgPMA.css","assets/VCheckbox-BK0ss4F4.js","assets/VCheckbox-ChRKi1kj.css","assets/VCard-BFqQSnAE.js","assets/VCard-dv-Dc592.css","assets/VRow-Dz87sIhY.js","assets/VRow-BdVn5u8X.css","assets/VSpacer-GgPR_AzN.js","assets/VSpacer-DfbUir7X.css","assets/VExpansionPanels-BHw1Id_o.js","assets/VExpansionPanels-cvCWEkWz.css","assets/VRadioGroup-CL3HTmyT.js","assets/VRadioGroup-C9f4tbih.css","assets/VSwitch-DftK1EyR.js","assets/VSwitch-DAlld-JI.css","assets/useCommand-CNDe8gM-.js","assets/error-BQ7r64JO.js","assets/i18n-Dm74yE_M.js","assets/useUiFeedback-CWb6o71Z.js","assets/shared-B6plZPQ_.js","assets/errors-D17nJYne.js","assets/assistantRouting-BS0ZW5Ki.js","assets/shared-DjZEYqzW.js","assets/vibe64ApiResponses-DuJ9mfus.js","assets/studioGateApi-UqmdV50W.js","assets/client-CM6TGZc9.css","assets/VToolbar-C8ydxLzq.js","assets/VToolbar-CY3-1Sb0.css","assets/ShellOutlet-CdjsJfg9.js","assets/windowSizeClass-DQekxFgV.js","assets/Vibe64AuthSettingsButton-DFfFPrd7.css","assets/app-BavZ6hrk.css","assets/learning-BWqH7wag.js","assets/_slug_-CaHlSQ8I.js","assets/placement-B2V88UDJ.js","assets/vibe64GithubProject-CJneIo5O.js","assets/vibe64SessionToolDefinitions-BijEEwqu.js","assets/client-DMEf6RSZ.js","assets/client-BEV2Ihna.css","assets/VTextarea-CMgyRNk-.js","assets/VTextarea--uW4w6nq.css","assets/useAssistantAttachments-DvEl7gX6.js","assets/client-4uCr4dYG.js","assets/conversation-DiL2PEct.js","assets/thinkingText-mMYz6e03.js","assets/conversation-RscSzQxq.css","assets/SelectField-RGWl_ms9.js","assets/vueRefOrGetterValue-y-4f_In7.js","assets/vibe64BrowserTabOrigin-vIN_87mi.js","assets/vibe64SessionRequestConfig-DVRCRAex.js","assets/Vibe64ConversationLog-Cv_BE9yH.js","assets/vibe64FileUpload-BDkcaUyk.js","assets/conversation-D7T_us2O.js","assets/vibe64SessionViewModel-CQCds_jb.js","assets/client-fF-hq8nJ.js","assets/devtools-CN5uWJaH-_xug6686.js","assets/VTable-DHazU0Xx.js","assets/VTable-LbK8_KkU.css","assets/client-BBJzQIWS.css","assets/Vibe64ConversationLog-ksf1U6PP.css","assets/vibe64RepositoryRealtime-kSshUn2K.js","assets/vibe64RepositoryRealtime-rnWlv9jw.css","assets/vibe64SessionDebugLog-BfO7tG1A.js","assets/vibe64SessionFocus-CLtCTOxq.js","assets/vibe64SessionFocus-BCojr4E-.css","assets/Vibe64DestinationButton-CdyyK9tj.js","assets/Vibe64DestinationButton-ZxY1Lwie.css","assets/Vibe64AsyncModuleState-9bN0_H45.js","assets/Vibe64AsyncModuleState-B68r3Cm5.css","assets/Vibe64DashboardShell-B3TN3NBS.js","assets/Vibe64DashboardShell-D0GNI4V8.css","assets/vibe64SessionInfo-D68p7LdH.js","assets/vibe64SessionPanelModel-B-WkXnPu.js","assets/useVibe64SessionData-D9d4NfDo.js","assets/useVibe64SessionSelection-DT1rJVvx.js","assets/useVibe64ConversationLog-BZ5g9Jp7.js","assets/Vibe64UnavailableSessions-Bd_-gPuL.js","assets/Vibe64UnavailableSessions-DQdNuGSD.css","assets/_slug_-CZmGS16g.css","assets/dashboard-BWlG0Nli.js","assets/_sessionTool_-CBf51mfK.js","assets/_sessionTool_-DiYoi-BF.css","assets/access-O4hOM9ov.js","assets/access-BH1OsqPS.css","assets/changes-C5gleyWS.js","assets/Vibe64RepositoryWorkspace-3UKN_pPs.js","assets/libesm-CR-iGldz.js","assets/Vibe64DashboardPageHeader-xfRLZ94G.js","assets/Vibe64DashboardPageHeader-2JX76yfq.css","assets/Vibe64RepositoryWorkspace-BWu6OV32.css","assets/env-D3DVC-Gd.js","assets/vibe64AttachmentDownload-BWRCIKUr.js","assets/contracts-CNUMi5L0.js","assets/vibe64SavedEnvValues-CgfMvj_h.js","assets/env-i_R_LXlE.css","assets/health-B9ZoQC78.js","assets/health-xnU0lci9.css","assets/history-BrWT8DRp.js","assets/useArchivedVibe64Sessions-C5Qguyob.js","assets/history-BSIuLgnI.css","assets/_sessionId_-qH7uIGNl.js","assets/Vibe64SessionFiles-B1U6XSWQ.js","assets/Vibe64FileArea-BWl-q11N.js","assets/fileTypes-2k5HCkMT.js","assets/fileTypes-c-LysNzr.css","assets/Vibe64FileArea-ZEzsvLt2.css","assets/Vibe64SessionSourceEditor-De1QyTOd.js","assets/dist-CDa9Iec1.js","assets/client-Do8szX_w.js","assets/Vibe64SessionSourceEditor-l0R5uY2U.css","assets/Vibe64SessionFiles-BKWcpSXz.css","assets/_sessionId_-7PyIUeUr.css","assets/integrations-C4p_QTuv.js","assets/english-definitions-DcuZfQ4p.js","assets/integrations-CwgrZgmM.css","assets/issues-KxOOLtSM.js","assets/GithubBrowserTabs-Cf6ce1lO.js","assets/issues-D46llNv-.css","assets/pages-DcNh-g_z.js","assets/pages-DpVxXdGt.css","assets/_pageId_-DIPouI7Z.js","assets/project-files-C3a_vnA4.js","assets/project-files-DjEn-Hp2.css","assets/publish-B1f2baHh.js","assets/publish-C9O0tDPB.css","assets/pull-requests-BHq5Yafl.js","assets/pull-requests-DtqrTix0.css","assets/repository-DMBew8kp.js","assets/session-B5MoHBVk.js","assets/session-BJhq3K2n.css","assets/settings-DDpgGhWO.js","assets/settings-BKZcbISO.css","assets/error-BqMxhgpB.js"])))=>i.map(i=>d[i]);
2
+ import{a as __exportAll}from"./placement-B2V88UDJ.js";import{$ as useId,B as onUnmounted,C as getCurrentInstance,Ct as toRef,E as h$1,Et as unref,G as renderList,H as openBlock,I as onBeforeUnmount,J as resolveDynamicComponent,Jt as normalizeProps,K as renderSlot,Kt as normalizeClass,M as mergeProps,N as nextTick$1,O as inject$1,Q as useAttrs,S as defineComponent,T as guardReactiveProps,Tt as toValue,U as provide,Xt as toDisplayString,Yt as normalizeStyle,_ as createSlots,_t as readonly,at as watchEffect,b as createVNode,d as createBaseVNode,et as useModel,f as createBlock,ft as isRef,gt as reactive,ht as proxyRefs,i as Fragment,it as watch,j as mergeModels,lt as effectScope,m as createElementBlock,mt as onScopeDispose,o as Teleport,ot as withCtx,p as createCommentVNode,st as withDirectives,tt as useSlots,u as computed,ut as getCurrentScope,v as createStaticVNode,vt as ref,xt as shallowRef,y as createTextVNode,yt as shallowReactive,z as onMounted}from"./runtime-core.esm-bundler-Bi1P1jMa.js";import{At as defineComponent$1,B as VImg,Bn as useElementSize,Bt as propsFactory,C as makeGroupItemProps,Cn as keys,Ct as VClassIcon,D as genOverlays,Dn as omit,E as useGroupItem,En as noop,Fn as IN_BROWSER,G as useRounded,H as MaybeTransition,I as makeElevationProps,In as PREFERS_REDUCED_MOTION,It as provideDefaults,J as useTextColor,Jn as isObject$1,K as useBackgroundColor,Kn as isNullOrUndefined,L as useElevation,M as makeDensityProps,Mn as resolveSize,Mt as DefaultsSymbol,N as useDensity,Nt as RootDefaultsSymbol,O as makeVariantProps,On as padStart,Ot as standardEasing,P as makeLocationProps,Pt as createDefaults,Qn as range,R as makeBorderProps,S as VIcon,St as IconValue,T as useGroup,Tn as mergeDeep,Tt as useRender,Un as isBoolean,W as makeRoundedProps,Wn as isFunction,X as useDimension,Xt as toPhysical,Y as makeDimensionProps,Yn as isString,Z as VDefaultsProvider,Zt as CircularBuffer,_ as VProgressLinear,_t as useLocale,a as VAvatar,ar as useCssVars,at as makeThemeProps,bt as useToggleScope,cr as vShow,ct as GoToSymbol,d as useRouter,f as makePositionProps,ft as createDisplay,gt as createLocale,ht as LocaleSymbol,i as makeVSlideGroupProps,ir as createApp,it as createTheme,jn as refElement,jt as genericComponent,k as useVariant,kn as pick$1,lr as withKeys,lt as createGoTo,mt as useDisplay,nn as clamp$1,nt as makeTagProps,ot as provideTheme,p as usePosition,pt as makeDisplayProps,r as VSlideGroup,rn as convertToUnit,rr as Transition,rt as ThemeSymbol,t as VChip,tr as consoleWarn,ur as withModifiers,ut as DisplaySymbol,vt as useRtl,wt as VSvgIcon,xt as IconSymbol,yt as useProxiedModel,z as useBorder,zt as makeComponentProps}from"./VChip-D2IukBZw.js";import{a as createListenerSubscription,c as normalizeAdditionalActions,d as createPinia,i as createErrorRuntime,l as normalizeSeverity,n as SHELL_WEB_ERROR_RUNTIME_KEY,o as createDefaultErrorPolicy,r as useShellWebErrorRuntime,s as normalizeAction,t as useShellErrorPresentationStore,u as normalizeText}from"./error-BQ7r64JO.js";import{A as partialMatchKey,C as environmentManager,D as matchMutation,E as hashQueryKeyByOptions,F as getClientKey,M as skipToken,N as useQueryClient,O as matchQuery,P as cloneDeepUnref,S as Subscribable,T as hashKey,_ as Mutation,b as notifyManager,g as useQuery,h as useMutation,j as resolveQueryValue,k as noop$1,t as useEndpointResource,v as Query,w as functionalUpdate,x as focusManager,y as onlineManager}from"./useEndpointResource-CmMwteuX.js";import{_ as useRouter$1,a as isAbsolutePath,c as isNavigationFailure,d as mergeOptions,f as noop$2,g as useRoute,h as routerViewLocationKey,i as createRouterError,m as routerKey,n as applyToParams,o as isArray,p as routeLocationKey,r as assign,t as NavigationFailureType,u as matchedRouteKey,v as viewDepthKey}from"./useApi-BPuI6ZR9-rsYWyW6m.js";import{C as scrollToPosition,D as useCallbacks,E as stripBase,S as saveScrollPosition,T as stringifyURL,a as encodeHash,b as parseQuery,c as extractComponentsGuards,d as guardToPromiseFn,f as isBrowser,g as isSameRouteRecord,h as isSameRouteLocationParams,i as decode$2,l as getSavedScrollPosition,m as isSameRouteLocation,n as computeScrollPosition,o as encodeParam,p as isRouteName,r as createHref,s as extractChangingRecords,t as START_LOCATION_NORMALIZED,u as getScrollKey,v as normalizeBase,w as stringifyQuery,x as parseURL,y as normalizeQuery}from"./devtools-CN5uWJaH-_xug6686.js";import{i as normalizePathname$1,n as BOOTSTRAP_PATH}from"./returnToPath-CILshEkc.js";import{l as normalizeRecordId,o as normalizeLowerText,p as toText,r as isRecord,s as normalizeObject,t as TRANSACTION_OUTCOMES,u as normalizeText$1}from"./normalize-BD25VwNK.js";import{n as resolveLinkPath,r as splitPathQueryHash,t as isExternalLinkTarget}from"./linkPath-BsiibCNd.js";import{n as splitPathQueryAndHash,t as appendQueryString}from"./queryPath-yKLyWw8V.js";import{t as __vitePreload}from"./preload-helper-BvdcsxN9.js";import{t as VSelect}from"./VSelect-Ch00dyiM.js";import{n as VAlert,t as VSkeletonLoader}from"./VSkeletonLoader-Bl9P5wdh.js";import{a as useFocusTrap,f as getScrollParent,i as makeFocusTrapProps,l as forwardRefs,n as makeVOverlayProps,o as makeDelayProps,p as animate,r as useScopeId,s as useDelay,t as VOverlay,u as useSsrBoot}from"./VOverlay-EPzW7eVB.js";import{n as useLazy,t as makeLazyProps}from"./lazy-vXRXMwYF.js";import{s as VListItem,t as VMenu,u as VDivider}from"./VMenu-Bql3E6DV.js";import{f as createMaterialVuetifyOptions,i as SHELL_ASYNC_MODULE_RECOVERY_RUNTIME_KEY,l as theme,m as mdi,p as aliases,t as useVibe64Learning}from"./useVibe64Learning-DiLAIKbI.js";import{a as useLayout,i as makeLayoutProps,n as createLayout,o as useLayoutItem,r as makeLayoutItemProps,t as VuetifyLayoutKey}from"./layout-B_cpKP4k.js";import{t as VTextField}from"./VTextField-B9R7EIjg.js";import{a as VIBE64_ASSISTANT_VIEWER_KEY,c as VIBE64_COLLEAGUE_INTEGRATIONS_KEY,d as VIBE64_COLLEAGUE_PLAN_KEY,f as VIBE64_COLLEAGUE_PREVIEW_KEY,g as VIBE64_PAGE_FOCUS_KEY,h as VIBE64_PAGE_ACTIVITY_KEY,i as VIBE64_ASSISTANT_HOST_KEY,l as VIBE64_COLLEAGUE_LAUNCHER_KEY,m as VIBE64_LEARNING_KEY,o as VIBE64_BROWSER_NAVIGATION_KEY,p as VIBE64_COLLEAGUE_VIEW_KEY,r as VIBE64_AI_TASK_TRAY_KEY,s as VIBE64_COLLEAGUE_DATABASE_KEY,t as LOCAL_ASSISTANT_VIEWER,u as VIBE64_COLLEAGUE_LAYOUT_KEY}from"./vibe64AssistantHost-CyWUOG-F.js";import{a as isJsonRestSchemaInstance,i as normalizeSingleSchemaDefinition,n as validateSchemaPayload,o as createSchema,r as createCursorListValidator,t as RECORD_ID_PATTERN}from"./validators-HqYRjxEO.js";import{t as AppError}from"./errors-D17nJYne.js";import{a as projectSlugFromPathname,o as projectSlugFromRoute,r as projectAppPath,s as vibe64ProjectQueryScope}from"./vibe64ProjectScope.local-B9ZpdYlf.js";import{a as shouldRetryTransientQueryFailure,i as createHttpClient,n as getHttpWebClient,o as transientQueryRetryDelay,t as configureHttpWebClient,u as encodeJsonApiResourceQueryObject}from"./httpClient-Bwitq9Xf.js";import{t as deepFreeze}from"./deepFreeze-BgoYkoTa.js";import{t as resolveScopedApiBasePath}from"./surface-CBlx7sF_.js";import{n as resolveStudioRequestUrl,r as resolveWebSocketUrl$1,t as requestStudio}from"./studioUrls-k_pQIuPs.js";import{C as VForm,E as useVibe64ColleagueModel,S as VTooltip,T as createVibe64ColleagueModelBridge,a as aiOnboardingAvailable,b as VIBE64_ACCOUNTS_CHANGED_EVENT,i as _sfc_main$53,l as requestVibe64AiOnboarding,r as AiOnboardingNudge_default,s as aiOnboardingNeeded,w as VIBE64_COLLEAGUE_MODEL_KEY,x as VIBE64_CONNECTIONS_CHANGED_EVENT}from"./client-BRcncaFt.js";import{n as formatMessage,t as catalogMessage}from"./i18n-DpzQwXg6.js";import{a as createStructuredLogger,c as filterRoutesBySurface,i as staysOnSamePage,l as getClientAppConfig,n as createSurfaceShellRouter,o as summarizeRouterRoutes,r as resolveClientBootstrapDebugEnabled,s as createSurfaceRuntime,t as bootstrapClientShellApp,u as resolveMobileConfig}from"./client-4uCr4dYG.js";import{r as useJskitText,t as registerJskitMessages}from"./i18n-BuXRXGaO.js";import{a as isDynamicImportError,i as installAsyncModuleRecoveryHandlers,o as notifyAsyncModuleLoadError,r as guardedReloadApp,s as pagePathname,t as createAsyncModuleRecoveryState}from"./asyncModuleRecovery-BALhPqsY.js";import{o as ROUTE_VISIBILITY_PUBLIC}from"./visibility-Cq31Xy7I.js";import{n as makeVBtnProps,r as VProgressCircular,t as VBtn}from"./VBtn-2vbH580C.js";import{t as VCheckbox}from"./VCheckbox-BK0ss4F4.js";import{t as VSheet}from"./VSheet-D5wAuyc2.js";import{t as VDialog}from"./VDialog-BCIrX462.js";import{a as VCardSubtitle,i as VCardTitle,n as VCardText,o as VCardActions,r as VCardItem,t as VCard}from"./VCard-BFqQSnAE.js";import{t as VSpacer}from"./VSpacer-GgPR_AzN.js";import{t as VSwitch}from"./VSwitch-DftK1EyR.js";import{t as VTextarea}from"./VTextarea-CMgyRNk-.js";import{t as _plugin_vue_export_helper_default}from"./_plugin-vue_export-helper-DNW4j-dv.js";import{a as en_default$10}from"./useAssistantAttachments-DvEl7gX6.js";import{_ as _sfc_main$54,a as useAssistantQuestions,b as parseLongTextReviewBlocks,m as AssistantTranscript_default,n as draftWithRestoredMessage,p as AssistantPromptInput_default,r as unmatchedOptimisticMessages,s as AssistantConversationElement_default,t as createAssistantMessageDelivery,v as LongTextPreviewBlocks_default}from"./conversation-DiL2PEct.js";import{i as useRealtimeSocket,n as REALTIME_SOCKET_KEY,r as useRealtimeEvent,t as NO_REALTIME_SOCKET}from"./useRealtimeEvent-B4oRg9Dt.js";import{t as en_default$11}from"./i18n-Dm74yE_M.js";import{n as en_default$13,t as en_default$12}from"./i18n-BkxO7BMl.js";import{t as _sfc_main$55}from"./SelectField-RGWl_ms9.js";import"./errorMessageHelpers-BjIt31kK.js";import{t as useCommand}from"./useCommand-CNDe8gM-.js";import{C as normalizePlacementTopologyDefinition,S as normalizePlacementLayoutClass,a as resolveSurfaceNavigationTargetFromPlacementContext,b as normalizePlacementTarget,c as pageDocument,f as pageWindow,i as resolveSurfaceIdFromPlacementPathname,m as useWebPlacementContext,p as SHELL_WEB_PLACEMENT_RUNTIME_KEY,r as resolveSurfaceDefinitionFromPlacementContext,s as resolveSurfaceRouteParamsFromPlacementPathname,t as buildSurfaceConfigContext,u as pageTitle,v as isRenderableComponent,x as normalizeSurface,y as normalizePlacementDefinition}from"./placement-1lT0lW3-.js";import{n as useSurfaceRouteContext,r as resolveShellLinkPath,t as usePaths}from"./usePaths-CvUbx5-V.js";import{t as readRefOrGetterValue}from"./vueRefOrGetterValue-y-4f_In7.js";import{i as hasWindowFunction$1}from"./browser-D8z6v6Ge.js";import{r as vibe64RealtimeOriginPayload}from"./vibe64BrowserTabOrigin-vIN_87mi.js";import{L as vibe64SessionPath,i as VIBE64_ASSISTANT_MODEL_ACCESS_API_SUFFIX,o as VIBE64_SESSIONS_API_SUFFIX,r as VIBE64_ASSISTANTS_API_SUFFIX,v as vibe64AssistantCapabilitiesQueryKey,y as vibe64AssistantModelAccessPath}from"./vibe64SessionRequestConfig-DVRCRAex.js";import{u as VIBE64_AGENT_PROVIDERS}from"./shared-B6plZPQ_.js";import{f as assistantRoutingFromMetadata}from"./assistantRouting-BS0ZW5Ki.js";import{r as writeLocalStorageJson,t as readLocalStorageJson}from"./browserLocalStorage-B4C7rHrs.js";import{a as normalizeConversationLogPage,c as conversationTurnMessages,i as mergeConversationLogPages,l as conversationTurnsFromMessages,o as normalizeConversationLogPagination,s as mergeConversationStream,t as applyConversationLogPatch}from"./conversation-D7T_us2O.js";import{t as resolveWindowSizeClass}from"./windowSizeClass-DQekxFgV.js";(function polyfill(){const relList=document.createElement(`link`).relList;if(relList&&relList.supports&&relList.supports(`modulepreload`))return;for(const link of document.querySelectorAll(`link[rel="modulepreload"]`))processPreload(link);new MutationObserver(mutations=>{for(const mutation of mutations){if(mutation.type!==`childList`)continue;for(const node of mutation.addedNodes)if(node.tagName===`LINK`&&node.rel===`modulepreload`)processPreload(node)}}).observe(document,{childList:true,subtree:true});function getFetchOpts(link){const fetchOpts={};if(link.integrity)fetchOpts.integrity=link.integrity;if(link.referrerPolicy)fetchOpts.referrerPolicy=link.referrerPolicy;if(link.crossOrigin===`use-credentials`)fetchOpts.credentials=`include`;else if(link.crossOrigin===`anonymous`)fetchOpts.credentials=`omit`;else fetchOpts.credentials=`same-origin`;return fetchOpts}function processPreload(link){if(link.ep)return;link.ep=true;const fetchOpts=getFetchOpts(link);fetch(link.href,fetchOpts)}})();var MutationCache$1=class extends Subscribable{#mutations;#scopes;#mutationId;constructor(config={}){super();this.config=config;this.#mutations=new Set;this.#scopes=new Map;this.#mutationId=0}build(client,options,state){const mutation=new Mutation({client,mutationCache:this,mutationId:++this.#mutationId,options:client.defaultMutationOptions(options),state});this.add(mutation);return mutation}add(mutation){this.#mutations.add(mutation);const scope=scopeFor(mutation);if(typeof scope===`string`){const scopedMutations=this.#scopes.get(scope);if(scopedMutations)scopedMutations.push(mutation);else this.#scopes.set(scope,[mutation])}this.notify({type:`added`,mutation})}remove(mutation){if(this.#mutations.delete(mutation)){const scope=scopeFor(mutation);if(typeof scope===`string`){const scopedMutations=this.#scopes.get(scope);if(scopedMutations){if(scopedMutations.length>1){const index=scopedMutations.indexOf(mutation);if(index!==-1)scopedMutations.splice(index,1)}else if(scopedMutations[0]===mutation)this.#scopes.delete(scope)}}}this.notify({type:`removed`,mutation})}canRun(mutation){const scope=scopeFor(mutation);if(typeof scope===`string`){const firstPendingMutation=this.#scopes.get(scope)?.find(m=>m.state.status===`pending`);return!firstPendingMutation||firstPendingMutation===mutation}else return true}runNext(mutation){const scope=scopeFor(mutation);if(typeof scope===`string`)return(this.#scopes.get(scope)?.find(m=>m!==mutation&&m.state.isPaused))?.continue()??Promise.resolve();else return Promise.resolve()}clear(){notifyManager.batch(()=>{this.#mutations.forEach(mutation=>{this.notify({type:`removed`,mutation})});this.#mutations.clear();this.#scopes.clear()})}getAll(){return Array.from(this.#mutations)}find(filters){const defaultedFilters={exact:true,...filters};return this.getAll().find(mutation=>matchMutation(defaultedFilters,mutation))}findAll(filters={}){return this.getAll().filter(mutation=>matchMutation(filters,mutation))}notify(event){notifyManager.batch(()=>{this.listeners.forEach(listener=>{listener(event)})})}resumePausedMutations(){const pausedMutations=this.getAll().filter(x=>x.state.isPaused);return notifyManager.batch(()=>Promise.all(pausedMutations.map(mutation=>mutation.continue().catch(noop$1))))}};function scopeFor(mutation){return mutation.options.scope?.id}var QueryCache$1=class extends Subscribable{#queries;constructor(config={}){super();this.config=config;this.#queries=new Map}build(client,options,state){const queryKey=options.queryKey;const queryHash=options.queryHash??hashQueryKeyByOptions(queryKey,options);let query=this.get(queryHash);if(!query){query=new Query({client,queryKey,queryHash,options:client.defaultQueryOptions(options),state,defaultOptions:client.getQueryDefaults(queryKey)});this.add(query)}return query}add(query){if(!this.#queries.has(query.queryHash)){this.#queries.set(query.queryHash,query);this.notify({type:`added`,query})}}remove(query){const queryInMap=this.#queries.get(query.queryHash);if(queryInMap){query.destroy();if(queryInMap===query)this.#queries.delete(query.queryHash);this.notify({type:`removed`,query})}}clear(){notifyManager.batch(()=>{this.getAll().forEach(query=>{this.remove(query)})})}get(queryHash){return this.#queries.get(queryHash)}getAll(){return[...this.#queries.values()]}find(filters){const defaultedFilters={exact:true,...filters};return this.getAll().find(query=>matchQuery(defaultedFilters,query))}findAll(filters={}){const queries=this.getAll();return Object.keys(filters).length>0?queries.filter(query=>matchQuery(filters,query)):queries}notify(event){notifyManager.batch(()=>{this.listeners.forEach(listener=>{listener(event)})})}onFocus(){notifyManager.batch(()=>{this.getAll().forEach(query=>{query.onFocus()})})}onOnline(){notifyManager.batch(()=>{this.getAll().forEach(query=>{query.onOnline()})})}};var QueryClient$1=class{#queryCache;#mutationCache;#defaultOptions;#queryDefaults;#mutationDefaults;#mountCount;#unsubscribeFocus;#unsubscribeOnline;constructor(config={}){this.#queryCache=config.queryCache||new QueryCache$1;this.#mutationCache=config.mutationCache||new MutationCache$1;this.#defaultOptions=config.defaultOptions||{};this.#queryDefaults=new Map;this.#mutationDefaults=new Map;this.#mountCount=0}mount(){this.#mountCount++;if(this.#mountCount!==1)return;this.#unsubscribeFocus=focusManager.subscribe(async focused=>{if(focused){await this.resumePausedMutations();this.#queryCache.onFocus()}});this.#unsubscribeOnline=onlineManager.subscribe(async online=>{if(online){await this.resumePausedMutations();this.#queryCache.onOnline()}})}unmount(){this.#mountCount--;if(this.#mountCount!==0)return;this.#unsubscribeFocus?.();this.#unsubscribeFocus=void 0;this.#unsubscribeOnline?.();this.#unsubscribeOnline=void 0}isFetching(filters){return this.#queryCache.findAll({...filters,fetchStatus:`fetching`}).length}isMutating(filters){return this.#mutationCache.findAll({...filters,status:`pending`}).length}getQueryData(queryKey){const options=this.defaultQueryOptions({queryKey});return this.#queryCache.get(options.queryHash)?.state.data}ensureQueryData(options){const defaultedOptions=this.defaultQueryOptions(options);const query=this.#queryCache.build(this,defaultedOptions);const cachedData=query.state.data;if(cachedData===void 0)return this.fetchQuery(options);if(options.revalidateIfStale&&query.isStaleByTime(resolveQueryValue(defaultedOptions.staleTime,query)))this.prefetchQuery(defaultedOptions);return Promise.resolve(cachedData)}getQueriesData(filters){return this.#queryCache.findAll(filters).map(({queryKey,state})=>{return[queryKey,state.data]})}setQueryData(queryKey,updater,options){const defaultedOptions=this.defaultQueryOptions({queryKey});const prevData=this.#queryCache.get(defaultedOptions.queryHash)?.state.data;const data=functionalUpdate(updater,prevData);if(data===void 0)return;return this.#queryCache.build(this,defaultedOptions).setData(data,{...options,manual:true})}setQueriesData(filters,updater,options){return notifyManager.batch(()=>this.#queryCache.findAll(filters).map(({queryKey})=>[queryKey,this.setQueryData(queryKey,updater,options)]))}getQueryState(queryKey){const options=this.defaultQueryOptions({queryKey});return this.#queryCache.get(options.queryHash)?.state}removeQueries(filters){const queryCache=this.#queryCache;notifyManager.batch(()=>{queryCache.findAll(filters).forEach(query=>{queryCache.remove(query)})})}resetQueries(filters,options){const queryCache=this.#queryCache;return notifyManager.batch(()=>{const matched=queryCache.findAll(filters);const queriesToRefetch=new Set(matched);matched.forEach(query=>{query.reset()});return this.refetchQueries({type:`active`,predicate:query=>queriesToRefetch.has(query)},options)})}cancelQueries(filters,cancelOptions={}){const defaultedCancelOptions={revert:true,...cancelOptions};const promises=notifyManager.batch(()=>this.#queryCache.findAll(filters).map(query=>query.cancel(defaultedCancelOptions)));return Promise.all(promises).then(noop$1).catch(noop$1)}invalidateQueries(filters,options={}){return notifyManager.batch(()=>{this.#queryCache.findAll(filters).forEach(query=>{query.invalidate()});if(filters?.refetchType===`none`)return Promise.resolve();return this.refetchQueries({...filters,type:filters?.refetchType??filters?.type??`active`},options)})}refetchQueries(filters,options={}){const fetchOptions={...options,cancelRefetch:options.cancelRefetch??true};const promises=notifyManager.batch(()=>this.#queryCache.findAll(filters).filter(query=>!query.isDisabled()&&!query.isStatic()).map(query=>{let promise=query.fetch(void 0,fetchOptions);if(!fetchOptions.throwOnError)promise=promise.catch(noop$1);return query.state.fetchStatus===`paused`?Promise.resolve():promise}));return Promise.all(promises).then(noop$1)}async query(options){const defaultedOptions=this.defaultQueryOptions(options);if(defaultedOptions.retry===void 0)defaultedOptions.retry=false;const query=this.#queryCache.build(this,defaultedOptions);const queryData=query.isStaleByTime(resolveQueryValue(defaultedOptions.staleTime,query))?await query.fetch(defaultedOptions):query.state.data;const select=defaultedOptions.select;if(select)return select(queryData);return queryData}fetchQuery(options){const defaultedOptions=this.defaultQueryOptions(options);if(defaultedOptions.retry===void 0)defaultedOptions.retry=false;const query=this.#queryCache.build(this,defaultedOptions);return query.isStaleByTime(resolveQueryValue(defaultedOptions.staleTime,query))?query.fetch(defaultedOptions):Promise.resolve(query.state.data)}prefetchQuery(options){return this.fetchQuery(options).then(noop$1).catch(noop$1)}infiniteQuery(options){options._type=`infinite`;return this.query(options)}fetchInfiniteQuery(options){options._type=`infinite`;return this.fetchQuery(options)}prefetchInfiniteQuery(options){return this.fetchInfiniteQuery(options).then(noop$1).catch(noop$1)}ensureInfiniteQueryData(options){options._type=`infinite`;return this.ensureQueryData(options)}resumePausedMutations(){if(onlineManager.isOnline())return this.#mutationCache.resumePausedMutations();return Promise.resolve()}getQueryCache(){return this.#queryCache}getMutationCache(){return this.#mutationCache}getDefaultOptions(){return this.#defaultOptions}setDefaultOptions(options){this.#defaultOptions=options}setQueryDefaults(queryKey,options){this.#queryDefaults.set(hashKey(queryKey),{queryKey,defaultOptions:options})}getQueryDefaults(queryKey){const defaults=[...this.#queryDefaults.values()];const result={};defaults.forEach(queryDefault=>{if(partialMatchKey(queryKey,queryDefault.queryKey))Object.assign(result,queryDefault.defaultOptions)});return result}setMutationDefaults(mutationKey,options){this.#mutationDefaults.set(hashKey(mutationKey),{mutationKey,defaultOptions:options})}getMutationDefaults(mutationKey){const defaults=[...this.#mutationDefaults.values()];const result={};defaults.forEach(queryDefault=>{if(partialMatchKey(mutationKey,queryDefault.mutationKey))Object.assign(result,queryDefault.defaultOptions)});return result}defaultQueryOptions(options){if(options._defaulted)return options;const defaultedOptions={...this.#defaultOptions.queries,...this.getQueryDefaults(options.queryKey),...options,_defaulted:true};if(!defaultedOptions.queryHash)defaultedOptions.queryHash=hashQueryKeyByOptions(defaultedOptions.queryKey,defaultedOptions);if(defaultedOptions.refetchOnReconnect===void 0)defaultedOptions.refetchOnReconnect=defaultedOptions.networkMode!==`always`;if(defaultedOptions.throwOnError===void 0)defaultedOptions.throwOnError=!!defaultedOptions.suspense;if(!defaultedOptions.networkMode&&defaultedOptions.persister)defaultedOptions.networkMode=`offlineFirst`;if(defaultedOptions.queryFn===skipToken)defaultedOptions.enabled=false;return defaultedOptions}defaultMutationOptions(options){if(options?._defaulted)return options;return{...this.#defaultOptions.mutations,...options?.mutationKey&&this.getMutationDefaults(options.mutationKey),...options,_defaulted:true}}clear(){this.#queryCache.clear();this.#mutationCache.clear()}};var QueryCache=class extends QueryCache$1{find(filters){return super.find(cloneDeepUnref(filters))}findAll(filters={}){return super.findAll(cloneDeepUnref(filters))}};var MutationCache=class extends MutationCache$1{find(filters){return super.find(cloneDeepUnref(filters))}findAll(filters={}){return super.findAll(cloneDeepUnref(filters))}};var QueryClient=class extends QueryClient$1{constructor(config={}){const vueQueryConfig={defaultOptions:config.defaultOptions,queryCache:config.queryCache||new QueryCache,mutationCache:config.mutationCache||new MutationCache};super(vueQueryConfig);this.isRestoring=ref(false)}isFetching(filters={}){return super.isFetching(cloneDeepUnref(filters))}isMutating(filters={}){return super.isMutating(cloneDeepUnref(filters))}getQueryData(queryKey){return super.getQueryData(cloneDeepUnref(queryKey))}ensureQueryData(options){return super.ensureQueryData(cloneDeepUnref(options))}getQueriesData(filters){return super.getQueriesData(cloneDeepUnref(filters))}setQueryData(queryKey,updater,options={}){return super.setQueryData(cloneDeepUnref(queryKey),updater,cloneDeepUnref(options))}setQueriesData(filters,updater,options={}){return super.setQueriesData(cloneDeepUnref(filters),updater,cloneDeepUnref(options))}getQueryState(queryKey){return super.getQueryState(cloneDeepUnref(queryKey))}removeQueries(filters={}){return super.removeQueries(cloneDeepUnref(filters))}resetQueries(filters={},options={}){return super.resetQueries(cloneDeepUnref(filters),cloneDeepUnref(options))}cancelQueries(filters={},options={}){return super.cancelQueries(cloneDeepUnref(filters),cloneDeepUnref(options))}invalidateQueries(filters={},options={}){const filtersCloned=cloneDeepUnref(filters);const optionsCloned=cloneDeepUnref(options);super.invalidateQueries({...filtersCloned,refetchType:`none`},optionsCloned);if(filtersCloned.refetchType===`none`)return Promise.resolve();const refetchFilters={...filtersCloned,type:filtersCloned.refetchType??filtersCloned.type??`active`};return nextTick$1().then(()=>{return super.refetchQueries(refetchFilters,optionsCloned)})}refetchQueries(filters={},options={}){return super.refetchQueries(cloneDeepUnref(filters),cloneDeepUnref(options))}query(options){return super.query(cloneDeepUnref(options))}fetchQuery(options){return super.fetchQuery(cloneDeepUnref(options))}prefetchQuery(options){return super.prefetchQuery(cloneDeepUnref(options))}infiniteQuery(options){return super.infiniteQuery(cloneDeepUnref(options))}fetchInfiniteQuery(options){return super.fetchInfiniteQuery(cloneDeepUnref(options))}prefetchInfiniteQuery(options){return super.prefetchInfiniteQuery(cloneDeepUnref(options))}setDefaultOptions(options){super.setDefaultOptions(cloneDeepUnref(options))}setQueryDefaults(queryKey,options){super.setQueryDefaults(cloneDeepUnref(queryKey),cloneDeepUnref(options))}getQueryDefaults(queryKey){return super.getQueryDefaults(cloneDeepUnref(queryKey))}setMutationDefaults(mutationKey,options){super.setMutationDefaults(cloneDeepUnref(mutationKey),cloneDeepUnref(options))}getMutationDefaults(mutationKey){return super.getMutationDefaults(cloneDeepUnref(mutationKey))}};var VueQueryPlugin={install:(app,options={})=>{const clientKey=getClientKey(options.queryClientKey);let client;if(`queryClient`in options&&options.queryClient)client=options.queryClient;else{const clientConfig=`queryClientConfig`in options?options.queryClientConfig:void 0;client=new QueryClient(clientConfig)}if(!environmentManager.isServer())client.mount();let persisterUnmount=()=>{};if(options.clientPersister){if(client.isRestoring)client.isRestoring.value=true;const[unmount,promise]=options.clientPersister(client);persisterUnmount=unmount;promise.then(()=>{if(client.isRestoring)client.isRestoring.value=false;options.clientPersisterOnSuccess?.(client)})}const cleanup=()=>{client.unmount();persisterUnmount()};if(app.onUnmount)app.onUnmount(cleanup);else{const originalUnmount=app.unmount;app.unmount=function vueQueryUnmount(){cleanup();originalUnmount()}}if(false)app.mixin({beforeCreate(){if(!this._provided){const provideCache={};Object.defineProperty(this,"_provided",{get:()=>provideCache,set:v=>Object.assign(provideCache,v)})}this._provided[clientKey]=client}});else app.provide(clientKey,client)}};var createBaseLocation=()=>location.protocol+`//`+location.host;function createCurrentLocation(base,location){const{pathname,search,hash}=location;const hashPos=base.indexOf(`#`);if(hashPos>-1){let slicePos=hash.includes(base.slice(hashPos))?base.slice(hashPos).length:1;let pathFromHash=hash.slice(slicePos);if(pathFromHash[0]!==`/`)pathFromHash=`/`+pathFromHash;return stripBase(pathFromHash,``)}return stripBase(pathname,base)+search+hash}function useHistoryListeners(base,historyState,currentLocation,replace){let listeners=[];let teardowns=[];let pauseState=null;const popStateHandler=({state})=>{const to=createCurrentLocation(base,location);const from=currentLocation.value;const fromState=historyState.value;let delta=0;if(state){currentLocation.value=to;historyState.value=state;if(pauseState&&pauseState===from){pauseState=null;return}delta=fromState?state.position-fromState.position:0}else replace(to);listeners.forEach(listener=>{listener(currentLocation.value,from,{delta,type:`pop`,direction:delta?delta>0?`forward`:`back`:``})})};function pauseListeners(){pauseState=currentLocation.value}function listen(callback){listeners.push(callback);const teardown=()=>{const index=listeners.indexOf(callback);if(index>-1)listeners.splice(index,1)};teardowns.push(teardown);return teardown}function beforeUnloadListener(){const{history}=window;if(!history.state)return;history.replaceState(assign({},history.state,{scroll:computeScrollPosition()}),``)}function destroy(){for(const teardown of teardowns)teardown();teardowns=[];window.removeEventListener(`popstate`,popStateHandler);window.removeEventListener(`pagehide`,beforeUnloadListener)}window.addEventListener(`popstate`,popStateHandler);window.addEventListener(`pagehide`,beforeUnloadListener);return{pauseListeners,listen,destroy}}function buildState(back,current,forward,replaced=false){return{back,current,forward,replaced,position:window.history.length,scroll:null}}function useHistoryStateNavigation(base){const{history,location}=window;const currentLocation={value:createCurrentLocation(base,location)};const historyState={value:history.state};if(!historyState.value)changeLocation(currentLocation.value,{back:null,current:currentLocation.value,forward:null,position:history.length-1,replaced:true,scroll:null},true);function changeLocation(to,state,replace){const hashIndex=base.indexOf(`#`);const url=hashIndex>-1?(location.host&&document.querySelector(`base`)?base:base.slice(hashIndex))+to:createBaseLocation()+base+to;try{history[replace?`replaceState`:`pushState`](state,``,url);historyState.value=state}catch(err){console.error(err);location[replace?`replace`:`assign`](url)}}function replace(to,data){changeLocation(to,assign({},history.state,buildState(historyState.value.back,to,historyState.value.forward,true),data,{position:historyState.value.position}),true);currentLocation.value=to}function push(to,data){const currentState=assign({},historyState.value,history.state,{forward:to,scroll:computeScrollPosition()});changeLocation(currentState.current,currentState,true);changeLocation(to,assign({},buildState(currentLocation.value,to,null),{position:currentState.position+1},data),false);currentLocation.value=to}return{location:currentLocation,state:historyState,push,replace}}function createWebHistory(base){base=normalizeBase(base);const historyNavigation=useHistoryStateNavigation(base);const historyListeners=useHistoryListeners(base,historyNavigation.state,historyNavigation.location,historyNavigation.replace);function go(delta,triggerListeners=true){if(!triggerListeners)historyListeners.pauseListeners();history.go(delta)}const routerHistory=assign({location:``,base,go,createHref:createHref.bind(null,base)},historyNavigation,historyListeners);Object.defineProperty(routerHistory,"location",{enumerable:true,get:()=>historyNavigation.location.value});Object.defineProperty(routerHistory,"state",{enumerable:true,get:()=>historyNavigation.state.value});return routerHistory}var ROOT_TOKEN={type:0,value:``};var VALID_PARAM_RE=/[a-zA-Z0-9_]/;function tokenizePath(path){if(!path)return[[]];if(path===`/`)return[[ROOT_TOKEN]];if(!isAbsolutePath(path))throw new Error(`Invalid path "${path}"`);function crash(message){throw new Error(`ERR (${state})/"${buffer}": ${message}`)}let state=0;let previousState=state;const tokens=[];let segment;function finalizeSegment(){if(segment)tokens.push(segment);segment=[]}let i=0;let char;let buffer=``;let customRe=``;function consumeBuffer(){if(!buffer)return;if(state===0)segment.push({type:0,value:buffer});else if(state===1||state===2||state===3){if(segment.length>1&&(char===`*`||char===`+`))crash(`A repeatable param (${buffer}) must be alone in its segment. eg: '/:ids+.`);segment.push({type:1,value:buffer,regexp:customRe,repeatable:char===`*`||char===`+`,optional:char===`*`||char===`?`})}else crash(`Invalid state to consume buffer`);buffer=``}function addCharToBuffer(){buffer+=char}while(i<path.length){char=path[i++];switch(state){case 0:if(char===`\\`){previousState=state;state=4}else if(char===`/`){if(buffer)consumeBuffer();finalizeSegment()}else if(char===`:`){consumeBuffer();state=1}else addCharToBuffer();break;case 4:addCharToBuffer();state=previousState;break;case 1:if(char===`(`)state=2;else if(VALID_PARAM_RE.test(char))addCharToBuffer();else{consumeBuffer();state=0;if(char!==`*`&&char!==`?`&&char!==`+`)i--}break;case 2:if(char===`)`){if(customRe[customRe.length-1]==`\\`)customRe=customRe.slice(0,-1)+char;else state=3}else customRe+=char;break;case 3:consumeBuffer();state=0;if(char!==`*`&&char!==`?`&&char!==`+`)i--;customRe=``;break;default:crash(`Unknown state`)}}if(state===2)crash(`Unfinished custom RegExp for param "${buffer}"`);consumeBuffer();finalizeSegment();return tokens}var BASE_PARAM_PATTERN=`[^/]+?`;var BASE_PATH_PARSER_OPTIONS={sensitive:false,strict:false,start:true,end:true};var REGEX_CHARS_RE=/[.+*?^${}()[\]/\\]/g;function tokensToParser(segments,extraOptions){const options=assign({},BASE_PATH_PARSER_OPTIONS,extraOptions);const score=[];let pattern=options.start?`^`:``;const keys=[];for(const segment of segments){const segmentScores=segment.length?[]:[90];if(options.strict&&!segment.length)pattern+=`/`;for(let tokenIndex=0;tokenIndex<segment.length;tokenIndex++){const token=segment[tokenIndex];let subSegmentScore=40+(options.sensitive?.25:0);if(token.type===0){if(!tokenIndex)pattern+=`/`;pattern+=token.value.replace(REGEX_CHARS_RE,`\\$&`);subSegmentScore+=40}else if(token.type===1){const{value,repeatable,optional,regexp}=token;keys.push({name:value,repeatable,optional});const re=regexp?regexp:BASE_PARAM_PATTERN;if(re!==BASE_PARAM_PATTERN){subSegmentScore+=10;try{new RegExp(`(${re})`)}catch(err){throw new Error(`Invalid custom RegExp for param "${value}" (${re}): `+err.message)}}let subPattern=repeatable?`((?:${re})(?:/(?:${re}))*)`:`(${re})`;if(!tokenIndex)subPattern=optional&&segment.length<2?`(?:/${subPattern})`:`/`+subPattern;if(optional)subPattern+=`?`;pattern+=subPattern;subSegmentScore+=20;if(optional)subSegmentScore+=-8;if(repeatable)subSegmentScore+=-20;if(re===`.*`)subSegmentScore+=-50}segmentScores.push(subSegmentScore)}score.push(segmentScores)}if(options.strict&&options.end){const i=score.length-1;score[i][score[i].length-1]+=.7000000000000001}if(!options.strict)pattern+=`/?`;if(options.end)pattern+=`$`;else if(options.strict&&!pattern.endsWith(`/`))pattern+=`(?:/|$)`;const re=new RegExp(pattern,options.sensitive?``:`i`);function parse(path){const match=path.match(re);const params={};if(!match)return null;for(let i=1;i<match.length;i++){const value=match[i]||``;const key=keys[i-1];params[key.name]=value&&key.repeatable?value.split(`/`):value}return params}function stringify(params){let path=``;let avoidDuplicatedSlash=false;for(const segment of segments){if(!avoidDuplicatedSlash||!path.endsWith(`/`))path+=`/`;avoidDuplicatedSlash=false;for(const token of segment)if(token.type===0)path+=token.value;else if(token.type===1){const{value,repeatable,optional}=token;const param=value in params?params[value]:``;if(isArray(param)&&!repeatable)throw new Error(`Provided param "${value}" is an array but it is not repeatable (* or + modifiers)`);const text=isArray(param)?param.join(`/`):param;if(!text){if(optional){if(segment.length<2){if(path.endsWith(`/`))path=path.slice(0,-1);else avoidDuplicatedSlash=true}}else throw new Error(`Missing required param "${value}"`)}path+=text}}return path||`/`}return{re,score,keys,parse,stringify}}function compareScoreArray(a,b){let i=0;while(i<a.length&&i<b.length){const diff=b[i]-a[i];if(diff)return diff;i++}if(a.length<b.length)return a.length===1&&a[0]===80?-1:1;else if(a.length>b.length)return b.length===1&&b[0]===80?1:-1;return 0}function comparePathParserScore(a,b){let i=0;const aScore=a.score;const bScore=b.score;while(i<aScore.length&&i<bScore.length){const comp=compareScoreArray(aScore[i],bScore[i]);if(comp)return comp;i++}if(Math.abs(bScore.length-aScore.length)===1){if(isLastScoreNegative(aScore))return 1;if(isLastScoreNegative(bScore))return-1}return bScore.length-aScore.length}function isLastScoreNegative(score){const last=score[score.length-1];return score.length>0&&last[last.length-1]<0}var PATH_PARSER_OPTIONS_DEFAULTS={strict:false,end:true,sensitive:false};function createRouteRecordMatcher(record,parent,options){const parser=tokensToParser(tokenizePath(record.path),options);const matcher=assign(parser,{record,parent,children:[],alias:[]});if(parent){if(!matcher.record.aliasOf===!parent.record.aliasOf)parent.children.push(matcher)}return matcher}function createRouterMatcher(routes,globalOptions){const matchers=[];const matcherMap=new Map;globalOptions=mergeOptions(PATH_PARSER_OPTIONS_DEFAULTS,globalOptions);function getRecordMatcher(name){return matcherMap.get(name)}function addRoute(record,parent,originalRecord){const isRootAdd=!originalRecord;const mainNormalizedRecord=normalizeRouteRecord(record);mainNormalizedRecord.aliasOf=originalRecord&&originalRecord.record;const options=mergeOptions(globalOptions,record);const normalizedRecords=[mainNormalizedRecord];if(`alias`in record){const aliases=typeof record.alias===`string`?[record.alias]:record.alias;for(const alias of aliases)normalizedRecords.push(normalizeRouteRecord(assign({},mainNormalizedRecord,{components:originalRecord?originalRecord.record.components:mainNormalizedRecord.components,path:alias,aliasOf:originalRecord?originalRecord.record:mainNormalizedRecord})))}let matcher;let originalMatcher;for(const normalizedRecord of normalizedRecords){const{path}=normalizedRecord;if(parent&&!isAbsolutePath(path)){const parentPath=parent.record.path;const connectingSlash=parentPath[parentPath.length-1]===`/`?``:`/`;normalizedRecord.path=parent.record.path+(path&&connectingSlash+path)}matcher=createRouteRecordMatcher(normalizedRecord,parent,options);if(originalRecord)originalRecord.alias.push(matcher);else{originalMatcher=originalMatcher||matcher;if(originalMatcher!==matcher)originalMatcher.alias.push(matcher);if(isRootAdd&&record.name&&!isAliasRecord(matcher))removeRoute(record.name)}if(isMatchable(matcher))insertMatcher(matcher);if(mainNormalizedRecord.children){const children=mainNormalizedRecord.children;for(let i=0;i<children.length;i++)addRoute(children[i],matcher,originalRecord&&originalRecord.children[i])}originalRecord=originalRecord||matcher}return originalMatcher?()=>{removeRoute(originalMatcher)}:noop$2}function removeRoute(matcherRef){if(isRouteName(matcherRef)){const matcher=matcherMap.get(matcherRef);if(matcher){matcherMap.delete(matcherRef);matchers.splice(matchers.indexOf(matcher),1);matcher.children.forEach(removeRoute);matcher.alias.forEach(removeRoute)}}else{const index=matchers.indexOf(matcherRef);if(index>-1){matchers.splice(index,1);if(matcherRef.record.name)matcherMap.delete(matcherRef.record.name);matcherRef.children.forEach(removeRoute);matcherRef.alias.forEach(removeRoute)}}}function getRoutes(){return matchers}function insertMatcher(matcher){const index=findInsertionIndex(matcher,matchers);matchers.splice(index,0,matcher);if(matcher.record.name&&!isAliasRecord(matcher))matcherMap.set(matcher.record.name,matcher)}function resolve(location,currentLocation){let matcher;let params={};let path;let name;if(`name`in location&&location.name){matcher=matcherMap.get(location.name);if(!matcher)throw createRouterError(1,{location});name=matcher.record.name;params=assign(pickParams(currentLocation.params,matcher.keys.filter(k=>!k.optional).concat(matcher.parent?matcher.parent.keys.filter(k=>k.optional):[]).map(k=>k.name)),location.params&&pickParams(location.params,matcher.keys.map(k=>k.name)));path=matcher.stringify(params)}else if(location.path!=null){path=location.path;matcher=matchers.find(m=>m.re.test(path));if(matcher){params=matcher.parse(path);name=matcher.record.name;matcher.keys.forEach(key=>{if(key.optional&&!params[key.name])delete params[key.name]})}}else{matcher=currentLocation.name?matcherMap.get(currentLocation.name):matchers.find(m=>m.re.test(currentLocation.path));if(!matcher)throw createRouterError(1,{location,currentLocation});name=matcher.record.name;params=assign({},currentLocation.params,location.params);path=matcher.stringify(params)}const matched=[];let parentMatcher=matcher;while(parentMatcher){matched.unshift(parentMatcher.record);parentMatcher=parentMatcher.parent}return{name,path,params,matched,meta:mergeMetaFields(matched)}}routes.forEach(route=>addRoute(route));function clearRoutes(){matchers.length=0;matcherMap.clear()}return{addRoute,resolve,removeRoute,clearRoutes,getRoutes,getRecordMatcher}}function pickParams(params,keys){const newParams={};for(const key of keys)if(key in params)newParams[key]=params[key];return newParams}function normalizeRouteRecord(record){const normalized={path:record.path,redirect:record.redirect,name:record.name,meta:record.meta||{},aliasOf:record.aliasOf,beforeEnter:record.beforeEnter,props:normalizeRecordProps(record),children:record.children||[],instances:{},leaveGuards:new Set,updateGuards:new Set,enterCallbacks:{},components:`components`in record?record.components||null:record.component&&{default:record.component}};Object.defineProperty(normalized,"mods",{value:{}});return normalized}function normalizeRecordProps(record){const propsObject={};const props=record.props||false;if(`component`in record)propsObject.default=props;else for(const name in record.components)propsObject[name]=typeof props===`object`?props[name]:props;return propsObject}function isAliasRecord(record){while(record){if(record.record.aliasOf)return true;record=record.parent}return false}function mergeMetaFields(matched){return matched.reduce((meta,record)=>assign(meta,record.meta),{})}function findInsertionIndex(matcher,matchers){let lower=0;let upper=matchers.length;while(lower!==upper){const mid=lower+upper>>1;if(comparePathParserScore(matcher,matchers[mid])<0)upper=mid;else lower=mid+1}const insertionAncestor=getInsertionAncestor(matcher);if(insertionAncestor)upper=matchers.lastIndexOf(insertionAncestor,upper-1);return upper}function getInsertionAncestor(matcher){let ancestor=matcher;while(ancestor=ancestor.parent)if(isMatchable(ancestor)&&comparePathParserScore(matcher,ancestor)===0)return ancestor}function isMatchable({record}){return!!(record.name||record.components&&Object.keys(record.components).length||record.redirect)}function useLink(props){const router=inject$1(routerKey);const currentRoute=inject$1(routeLocationKey);const route=computed(()=>{const to=unref(props.to);return router.resolve(to)});const activeRecordIndex=computed(()=>{const{matched}=route.value;const{length}=matched;const routeMatched=matched[length-1];const currentMatched=currentRoute.matched;if(!routeMatched||!currentMatched.length)return-1;const index=currentMatched.findIndex(isSameRouteRecord.bind(null,routeMatched));if(index>-1)return index;const parentRecordPath=getOriginalPath(matched[length-2]);return length>1&&getOriginalPath(routeMatched)===parentRecordPath&&currentMatched[currentMatched.length-1].path!==parentRecordPath?currentMatched.findIndex(isSameRouteRecord.bind(null,matched[length-2])):index});const isActive=computed(()=>activeRecordIndex.value>-1&&includesParams(currentRoute.params,route.value.params));const isExactActive=computed(()=>activeRecordIndex.value>-1&&activeRecordIndex.value===currentRoute.matched.length-1&&isSameRouteLocationParams(currentRoute.params,route.value.params));function navigate(e={}){if(guardEvent(e)){const p=router[unref(props.replace)?`replace`:`push`](unref(props.to)).catch(noop$2);if(props.viewTransition&&typeof document!==`undefined`&&`startViewTransition`in document)document.startViewTransition(()=>p);return p}return Promise.resolve()}return{route,href:computed(()=>route.value.href),isActive,isExactActive,navigate}}function preferSingleVNode(vnodes){return vnodes.length===1?vnodes[0]:vnodes}var RouterLink=defineComponent({name:`RouterLink`,compatConfig:{MODE:3},props:{to:{type:[String,Object],required:true},replace:Boolean,activeClass:String,exactActiveClass:String,custom:Boolean,ariaCurrentValue:{type:String,default:`page`},viewTransition:Boolean},useLink,setup(props,{slots}){const link=reactive(useLink(props));const{options}=inject$1(routerKey);const elClass=computed(()=>({[getLinkClass(props.activeClass,options.linkActiveClass,`router-link-active`)]:link.isActive,[getLinkClass(props.exactActiveClass,options.linkExactActiveClass,`router-link-exact-active`)]:link.isExactActive}));return()=>{const children=slots.default&&preferSingleVNode(slots.default(link));return props.custom?children:h$1(`a`,{"aria-current":link.isExactActive?props.ariaCurrentValue:null,href:link.href,onClick:link.navigate,class:elClass.value},children)}}});function guardEvent(e){if(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)return;if(e.defaultPrevented)return;if(e.button!==void 0&&e.button!==0)return;if(e.currentTarget&&e.currentTarget.getAttribute){const target=e.currentTarget.getAttribute(`target`);if(/\b_blank\b/i.test(target))return}if(e.preventDefault)e.preventDefault();return true}function includesParams(outer,inner){for(const key in inner){const innerValue=inner[key];const outerValue=outer[key];if(isArray(innerValue)){if(!isArray(outerValue)||outerValue.length!==innerValue.length||innerValue.some((value,i)=>value.valueOf()!==outerValue[i].valueOf()))return false}else if(innerValue!==outerValue)return false}return true}function getOriginalPath(record){return record?record.aliasOf?record.aliasOf.path:record.path:``}var getLinkClass=(propClass,globalClass,defaultClass)=>propClass!=null?propClass:globalClass!=null?globalClass:defaultClass;var RouterViewImpl=defineComponent({name:`RouterView`,inheritAttrs:false,props:{name:{type:String,default:`default`},route:Object},compatConfig:{MODE:3},setup(props,{attrs,slots}){const injectedRoute=inject$1(routerViewLocationKey);const routeToDisplay=computed(()=>props.route||injectedRoute.value);const injectedDepth=inject$1(viewDepthKey,0);const depth=computed(()=>{let initialDepth=unref(injectedDepth);const{matched}=routeToDisplay.value;let matchedRoute;while((matchedRoute=matched[initialDepth])&&!matchedRoute.components)initialDepth++;return initialDepth});const matchedRouteRef=computed(()=>routeToDisplay.value.matched[depth.value]);provide(viewDepthKey,computed(()=>depth.value+1));provide(matchedRouteKey,matchedRouteRef);provide(routerViewLocationKey,routeToDisplay);const viewRef=ref();watch(()=>[viewRef.value,matchedRouteRef.value,props.name],([instance,to,name],[oldInstance,from,_oldName])=>{if(to){to.instances[name]=instance;if(from&&from!==to&&instance&&instance===oldInstance){if(!to.leaveGuards.size)to.leaveGuards=from.leaveGuards;if(!to.updateGuards.size)to.updateGuards=from.updateGuards}}if(instance&&to&&(!from||!isSameRouteRecord(to,from)||!oldInstance))(to.enterCallbacks[name]||[]).forEach(callback=>callback(instance))},{flush:`post`});return()=>{const route=routeToDisplay.value;const currentName=props.name;const matchedRoute=matchedRouteRef.value;const ViewComponent=matchedRoute&&matchedRoute.components[currentName];if(!ViewComponent)return normalizeSlot(slots.default,{Component:ViewComponent,route});const routePropsOption=matchedRoute.props[currentName];const routeProps=routePropsOption?routePropsOption===true?route.params:typeof routePropsOption===`function`?routePropsOption(route):routePropsOption:null;const onVnodeUnmounted=vnode=>{if(vnode.component.isUnmounted)matchedRoute.instances[currentName]=null};const component=h$1(ViewComponent,assign({},routeProps,attrs,{onVnodeUnmounted,ref:viewRef}));return normalizeSlot(slots.default,{Component:component,route})||component}}});function normalizeSlot(slot,data){if(!slot)return null;const slotContent=slot(data);return slotContent.length===1?slotContent[0]:slotContent}var RouterView=RouterViewImpl;function createRouter(options){const matcher=createRouterMatcher(options.routes,options);const parseQuery$1=options.parseQuery||parseQuery;const stringifyQuery$1=options.stringifyQuery||stringifyQuery;const routerHistory=options.history;const beforeGuards=useCallbacks();const beforeResolveGuards=useCallbacks();const afterGuards=useCallbacks();const currentRoute=shallowRef(START_LOCATION_NORMALIZED);const routesVersion=shallowRef(0);let pendingLocation=START_LOCATION_NORMALIZED;if(isBrowser&&options.scrollBehavior&&`scrollRestoration`in history)history.scrollRestoration=`manual`;const normalizeParams=applyToParams.bind(null,paramValue=>``+paramValue);const encodeParams=applyToParams.bind(null,encodeParam);const decodeParams=applyToParams.bind(null,decode$2);function addRoute(parentOrRoute,route){let parent;let record;if(isRouteName(parentOrRoute)){parent=matcher.getRecordMatcher(parentOrRoute);record=route}else record=parentOrRoute;const removeRoute=matcher.addRoute(record,parent);routesVersion.value++;return()=>{removeRoute();routesVersion.value++}}function removeRoute(name){const recordMatcher=matcher.getRecordMatcher(name);if(recordMatcher){matcher.removeRoute(recordMatcher);routesVersion.value++}}function clearRoutes(){matcher.clearRoutes();routesVersion.value++}function getRoutes(){return matcher.getRoutes().map(routeMatcher=>routeMatcher.record)}function hasRoute(name){return!!matcher.getRecordMatcher(name)}function resolve(rawLocation,currentLocation){routesVersion.value;if(typeof rawLocation===`string`){currentLocation=currentLocation||(rawLocation.startsWith(`/`)?START_LOCATION_NORMALIZED:currentRoute.value);const locationNormalized=parseURL(parseQuery$1,rawLocation,currentLocation.path);const matchedRoute=matcher.resolve({path:locationNormalized.path},currentLocation);const href=routerHistory.createHref(locationNormalized.fullPath);return assign(locationNormalized,matchedRoute,{params:decodeParams(matchedRoute.params),redirectedFrom:void 0,href})}currentLocation=assign({},currentLocation||(rawLocation.path!=null&&rawLocation.path.startsWith(`/`)&&!(`name`in rawLocation&&rawLocation.name)?START_LOCATION_NORMALIZED:currentRoute.value));let matcherLocation;if(rawLocation.path!=null)matcherLocation=assign({},rawLocation,{path:parseURL(parseQuery$1,rawLocation.path,currentLocation.path).path});else{const targetParams=assign({},rawLocation.params);for(const key in targetParams)if(targetParams[key]==null)delete targetParams[key];matcherLocation=assign({},rawLocation,{params:encodeParams(targetParams)});currentLocation.params=encodeParams(currentLocation.params)}const matchedRoute=matcher.resolve(matcherLocation,currentLocation);const hash=rawLocation.hash||``;matchedRoute.params=normalizeParams(decodeParams(matchedRoute.params));const fullPath=stringifyURL(stringifyQuery$1,assign({},rawLocation,{hash:encodeHash(hash),path:matchedRoute.path}));const href=routerHistory.createHref(fullPath);return assign({fullPath,hash,query:stringifyQuery$1===stringifyQuery?normalizeQuery(rawLocation.query):rawLocation.query||{}},matchedRoute,{redirectedFrom:void 0,href})}function locationAsObject(to){return typeof to===`string`?parseURL(parseQuery$1,to,currentRoute.value.path):assign({},to)}function checkCanceledNavigation(to,from){if(pendingLocation!==to)return createRouterError(8,{from,to})}function push(to){return pushWithRedirect(to)}function replace(to){return push(assign(locationAsObject(to),{replace:true}))}function handleRedirectRecord(to,from){const lastMatched=to.matched[to.matched.length-1];if(lastMatched&&lastMatched.redirect){const{redirect}=lastMatched;let newTargetLocation=typeof redirect===`function`?redirect(to,from):redirect;if(typeof newTargetLocation===`string`){newTargetLocation=newTargetLocation.includes(`?`)||newTargetLocation.includes(`#`)?newTargetLocation=locationAsObject(newTargetLocation):{path:newTargetLocation};newTargetLocation.params={}}return assign({query:to.query,hash:to.hash,params:newTargetLocation.path!=null?{}:to.params},newTargetLocation)}}function pushWithRedirect(to,redirectedFrom){const targetLocation=pendingLocation=resolve(to);const from=currentRoute.value;const data=to.state;const force=to.force;const replace=to.replace===true;const shouldRedirect=handleRedirectRecord(targetLocation,from);if(shouldRedirect)return pushWithRedirect(assign(locationAsObject(shouldRedirect),{state:typeof shouldRedirect===`object`?assign({},data,shouldRedirect.state):data,force,replace}),redirectedFrom||targetLocation);const toLocation=targetLocation;toLocation.redirectedFrom=redirectedFrom;let failure;if(!force&&isSameRouteLocation(stringifyQuery$1,from,targetLocation)){failure=createRouterError(16,{to:toLocation,from});handleScroll(from,from,true,false)}return(failure?Promise.resolve(failure):navigate(toLocation,from)).catch(error=>isNavigationFailure(error)?isNavigationFailure(error,2)?error:markAsReady(error):triggerError(error,toLocation,from)).then(failure=>{if(failure){if(isNavigationFailure(failure,2))return pushWithRedirect(assign({replace},locationAsObject(failure.to),{state:typeof failure.to===`object`?assign({},data,failure.to.state):data,force}),redirectedFrom||toLocation)}else failure=finalizeNavigation(toLocation,from,true,replace,data);triggerAfterEach(toLocation,from,failure);return failure})}function checkCanceledNavigationAndReject(to,from){const error=checkCanceledNavigation(to,from);return error?Promise.reject(error):Promise.resolve()}function runWithContext(fn){const app=installedApps.values().next().value;return app&&typeof app.runWithContext===`function`?app.runWithContext(fn):fn()}function navigate(to,from){let guards;const[leavingRecords,updatingRecords,enteringRecords]=extractChangingRecords(to,from);guards=extractComponentsGuards(leavingRecords.reverse(),`beforeRouteLeave`,to,from);for(const record of leavingRecords)record.leaveGuards.forEach(guard=>{guards.push(guardToPromiseFn(guard,to,from))});const canceledNavigationCheck=checkCanceledNavigationAndReject.bind(null,to,from);guards.push(canceledNavigationCheck);return runGuardQueue(guards).then(()=>{guards=[];for(const guard of beforeGuards.list())guards.push(guardToPromiseFn(guard,to,from));guards.push(canceledNavigationCheck);return runGuardQueue(guards)}).then(()=>{guards=extractComponentsGuards(updatingRecords,`beforeRouteUpdate`,to,from);for(const record of updatingRecords)record.updateGuards.forEach(guard=>{guards.push(guardToPromiseFn(guard,to,from))});guards.push(canceledNavigationCheck);return runGuardQueue(guards)}).then(()=>{guards=[];for(const record of enteringRecords)if(record.beforeEnter){if(isArray(record.beforeEnter))for(const beforeEnter of record.beforeEnter)guards.push(guardToPromiseFn(beforeEnter,to,from));else guards.push(guardToPromiseFn(record.beforeEnter,to,from))}guards.push(canceledNavigationCheck);return runGuardQueue(guards)}).then(()=>{to.matched.forEach(record=>record.enterCallbacks={});guards=extractComponentsGuards(enteringRecords,`beforeRouteEnter`,to,from,runWithContext);guards.push(canceledNavigationCheck);return runGuardQueue(guards)}).then(()=>{guards=[];for(const guard of beforeResolveGuards.list())guards.push(guardToPromiseFn(guard,to,from));guards.push(canceledNavigationCheck);return runGuardQueue(guards)}).catch(err=>isNavigationFailure(err,8)?err:Promise.reject(err))}function triggerAfterEach(to,from,failure){afterGuards.list().forEach(guard=>runWithContext(()=>guard(to,from,failure)))}function finalizeNavigation(toLocation,from,isPush,replace,data){const error=checkCanceledNavigation(toLocation,from);if(error)return error;const isFirstNavigation=from===START_LOCATION_NORMALIZED;const state=!isBrowser?{}:history.state;if(isPush){if(replace||isFirstNavigation)routerHistory.replace(toLocation.fullPath,assign({scroll:isFirstNavigation&&state&&state.scroll},data));else routerHistory.push(toLocation.fullPath,data)}currentRoute.value=toLocation;handleScroll(toLocation,from,isPush,isFirstNavigation);markAsReady()}let removeHistoryListener;function setupListeners(){if(removeHistoryListener)return;removeHistoryListener=routerHistory.listen((to,_from,info)=>{if(!router.listening)return;const toLocation=resolve(to);const shouldRedirect=handleRedirectRecord(toLocation,router.currentRoute.value);if(shouldRedirect){pushWithRedirect(assign(shouldRedirect,{replace:true,force:true}),toLocation).catch(noop$2);return}pendingLocation=toLocation;const from=currentRoute.value;if(isBrowser&&info.delta)saveScrollPosition(getScrollKey(from.fullPath,info.delta));navigate(toLocation,from).catch(error=>{if(isNavigationFailure(error,12))return error;if(isNavigationFailure(error,2)){pushWithRedirect(assign(locationAsObject(error.to),{force:true}),toLocation).then(failure=>{if(isNavigationFailure(failure,20)&&!info.delta&&info.type===`pop`)routerHistory.go(-1,false)}).catch(noop$2);return Promise.reject()}if(info.delta)routerHistory.go(-info.delta,false);return triggerError(error,toLocation,from)}).then(failure=>{failure=failure||finalizeNavigation(toLocation,from,false);if(failure){if(info.delta&&!isNavigationFailure(failure,8))routerHistory.go(-info.delta,false);else if(info.type===`pop`&&isNavigationFailure(failure,20))routerHistory.go(-1,false)}triggerAfterEach(toLocation,from,failure)}).catch(noop$2)})}let readyHandlers=useCallbacks();let errorListeners=useCallbacks();let ready;function triggerError(error,to,from){markAsReady(error);const list=errorListeners.list();if(list.length)list.forEach(handler=>handler(error,to,from));else console.error(error);return Promise.reject(error)}function isReady(){if(ready&&currentRoute.value!==START_LOCATION_NORMALIZED)return Promise.resolve();return new Promise((resolve,reject)=>{readyHandlers.add([resolve,reject])})}function markAsReady(err){if(!ready){ready=!err;setupListeners();readyHandlers.list().forEach(([resolve,reject])=>err?reject(err):resolve());readyHandlers.reset()}return err}function handleScroll(to,from,isPush,isFirstNavigation){const{scrollBehavior}=options;if(!isBrowser||!scrollBehavior)return Promise.resolve();const scrollPosition=!isPush&&getSavedScrollPosition(getScrollKey(to.fullPath,0))||(isFirstNavigation||!isPush)&&history.state&&history.state.scroll||null;return nextTick$1().then(()=>scrollBehavior(to,from,scrollPosition)).then(position=>to===currentRoute.value&&position&&scrollToPosition(position)).catch(err=>to===currentRoute.value&&triggerError(err,to,from))}const go=delta=>routerHistory.go(delta);let started;const installedApps=new Set;const router={currentRoute,listening:true,addRoute,removeRoute,clearRoutes,hasRoute,getRoutes,resolve,options,push,replace,go,back:()=>go(-1),forward:()=>go(1),beforeEach:beforeGuards.add,beforeResolve:beforeResolveGuards.add,afterEach:afterGuards.add,onError:errorListeners.add,isReady,install(app){app.component(`RouterLink`,RouterLink);app.component(`RouterView`,RouterView);app.config.globalProperties.$router=router;Object.defineProperty(app.config.globalProperties,"$route",{enumerable:true,get:()=>unref(currentRoute)});if(isBrowser&&!started&&currentRoute.value===START_LOCATION_NORMALIZED){started=true;push(routerHistory.location).catch(err=>{})}const reactiveRoute={};for(const key in START_LOCATION_NORMALIZED)Object.defineProperty(reactiveRoute,key,{get:()=>currentRoute.value[key],enumerable:true});app.provide(routerKey,router);app.provide(routeLocationKey,shallowReactive(reactiveRoute));app.provide(routerViewLocationKey,currentRoute);const unmountApp=app.unmount;installedApps.add(app);app.unmount=function(){installedApps.delete(app);if(installedApps.size<1){pendingLocation=START_LOCATION_NORMALIZED;removeHistoryListener&&removeHistoryListener();removeHistoryListener=null;currentRoute.value=START_LOCATION_NORMALIZED;started=false;ready=false}unmountApp()}}};function runGuardQueue(guards){return guards.reduce((promise,guard)=>promise.then(()=>runWithContext(guard)),Promise.resolve())}return router}function queryStringToObject(queryString=``){const normalizedQueryString=String(queryString||``).trim().replace(/^\?+/,``);if(!normalizedQueryString)return;const params=new URLSearchParams(normalizedQueryString);const query={};for(const[key,value]of params.entries()){if(!Object.prototype.hasOwnProperty.call(query,key)){query[key]=value;continue}if(Array.isArray(query[key])){query[key].push(value);continue}query[key]=[query[key],value]}return query}function redirectToChild(childTarget=``){const normalizedChildTarget=String(childTarget||``).trim();return function redirectToChildRoute(to){const resolvedTarget=resolveLinkPath(String(to.path||`/`),normalizedChildTarget);const{pathname,queryString,hash}=splitPathQueryAndHash(resolvedTarget);return{path:pathname||`/`,query:queryStringToObject(queryString)??to.query,hash:hash||String(to.hash||``)}}}var dashboard_vue_definePage_vue_lang_default={redirect:redirectToChild(`env`)};function _mergeRouteRecord(main,...routeRecords){return routeRecords.reduce((acc,routeRecord)=>{const meta=Object.assign({},acc.meta,routeRecord.meta);const alias=[].concat(acc.alias||[],routeRecord.alias||[]);Object.assign(acc,routeRecord);acc.meta=meta;acc.alias=alias;return acc},main)}var routes=[{path:`/`,name:`/`,component:()=>__vitePreload(()=>import(`./pages-5jaEclQo.js`),__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10])),meta:{"jskit":{"scope":`global`}}},{path:`/app`,children:[{path:``,name:`/app/`,component:()=>__vitePreload(()=>import(`./app-CXljwZ0u.js`),__vite__mapDeps([11,1,2,12,13,14,15,16,17,18,19,5,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,4,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,7,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,8,6,3,9,79,80,81,82,83,84,85,86,87,88,89,90,91,10,92])),meta:{"jskit":{"surface":`app`}}},{path:`learning`,name:`/app/learning`,component:()=>__vitePreload(()=>import(`./learning-BWqH7wag.js`),__vite__mapDeps([93,1,94,95,8,4,5,6,7,96,97,58,47,13,14,77,51,52,78,43,44,45,46,48,49,50,53,2,20,54,26,15,27,37,38,40,41,55,56,23,24,57,12,16,17,18,19,21,22,25,28,29,30,31,32,33,34,35,59,42,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,3,9,79,80,81,82,83,84,85,86,36,39,87,88,89,90,91,98,99,100,101,102,103,104,105,106,107,108,109,110,111,112,113,114,115,116,117,118,119,120,121,122,123,10,124,125,126,127,128,129,130,131,132,133,134,135,136,137,138,139])),meta:{"jskit":{"surface":`app`}}},{path:`project`,children:[{path:`:slug`,name:`/app/project/[slug]`,component:()=>__vitePreload(()=>import(`./_slug_-CaHlSQ8I.js`).then(n=>n.n),__vite__mapDeps([94,95,8,1,4,5,6,7,96,97,58,47,13,14,77,51,52,78,43,44,45,46,48,49,50,53,2,20,54,26,15,27,37,38,40,41,55,56,23,24,57,12,16,17,18,19,21,22,25,28,29,30,31,32,33,34,35,59,42,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,3,9,79,80,81,82,83,84,85,86,36,39,87,88,89,90,91,98,99,100,101,102,103,104,105,106,107,108,109,110,111,112,113,114,115,116,117,118,119,120,121,122,123,10,124,125,126,127,128,129,130,131,132,133,134,135,136,137,138,139])),children:[_mergeRouteRecord({path:`dashboard`,name:`/app/project/[slug]/dashboard`,component:()=>__vitePreload(()=>import(`./dashboard-BWlG0Nli.js`),__vite__mapDeps([140,1,130,95,8,4,5,6,7,96,97,58,47,2,54,13,14,26,15,27,37,38,40,41,55,56,23,24,57,29,30,89,51,52,78,9,90,131])),children:[{path:`:sessionTool`,name:`/app/project/[slug]/dashboard/[sessionTool]`,component:()=>__vitePreload(()=>import(`./_sessionTool_-CBf51mfK.js`),__vite__mapDeps([141,1,2,29,97,58,47,142]))},{path:`access`,children:[{path:``,name:`/app/project/[slug]/dashboard/access/`,component:()=>__vitePreload(()=>import(`./access-O4hOM9ov.js`),__vite__mapDeps([143,1,13,14,43,5,44,4,45,46,47,48,49,50,51,52,53,54,26,15,27,37,38,40,41,55,56,23,24,57,12,16,17,18,29,76,77,78,7,8,6,3,2,9,79,30,85,58,59,128,129,135,110,109,144]))}]},{path:`changes`,children:[{path:``,name:`/app/project/[slug]/dashboard/changes/`,component:()=>__vitePreload(()=>import(`./changes-C5gleyWS.js`),__vite__mapDeps([145,1,146,95,8,4,5,6,7,96,97,58,47,13,14,12,15,16,17,18,37,26,27,38,44,45,46,23,24,25,28,64,65,68,69,29,49,108,110,48,109,30,83,84,31,32,33,121,104,54,40,41,55,56,57,51,52,60,61,100,101,102,103,22,105,106,122,147,148,149,150]))}]},{path:`env`,children:[{path:``,name:`/app/project/[slug]/dashboard/env/`,component:()=>__vitePreload(()=>import(`./env-D3DVC-Gd.js`),__vite__mapDeps([151,1,13,14,43,5,44,4,45,46,47,48,49,50,51,52,53,2,12,15,16,17,18,40,26,27,41,62,55,56,63,25,28,64,65,117,118,68,69,70,71,29,76,77,78,7,8,6,3,9,79,30,85,58,59,152,84,128,129,135,110,109,148,149,153,154,155]))}]},{path:`health`,children:[{path:``,name:`/app/project/[slug]/dashboard/health/`,component:()=>__vitePreload(()=>import(`./health-B9ZoQC78.js`),__vite__mapDeps([156,1,13,14,43,5,44,4,45,46,47,48,49,50,51,52,53,12,15,16,17,18,42,2,54,26,27,37,38,40,41,55,56,23,24,57,19,20,21,22,25,28,29,30,31,32,33,34,35,58,59,7,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,8,6,3,9,79,80,81,82,83,84,85,86,148,149,157]))}]},{path:`history`,children:[{path:``,name:`/app/project/[slug]/dashboard/history/`,component:()=>__vitePreload(()=>import(`./history-BrWT8DRp.js`),__vite__mapDeps([158,1,13,14,12,15,16,17,18,23,24,64,65,29,114,5,137,70,71,79,77,51,52,78,50,44,4,45,46,47,53,34,138,148,149,159,43,48,49,2,58,3,6,7,8,9,108,110,109,30,113,105,133,136,20,80,81,160]))},{path:`:sessionId`,name:`/app/project/[slug]/dashboard/history/[sessionId]`,component:()=>__vitePreload(()=>import(`./_sessionId_-qH7uIGNl.js`),__vite__mapDeps([161,1,13,14,12,15,16,17,18,23,24,29,111,43,5,44,4,45,46,47,48,49,50,51,52,53,58,59,7,25,26,27,28,64,65,68,69,102,103,6,22,104,54,37,38,40,41,55,56,57,60,61,100,101,105,106,76,77,78,8,3,2,9,79,110,109,30,80,81,82,83,112,84,113,114,115,116,117,118,119,120,162,95,96,97,163,87,88,34,164,165,152,166,167,108,33,168,169,20,123,147,170,171,159,133,136,172]))}]},{path:`integrations`,children:[{path:``,name:`/app/project/[slug]/dashboard/integrations/`,component:()=>__vitePreload(()=>import(`./integrations-C4p_QTuv.js`),__vite__mapDeps([173,95,8,1,4,5,6,7,96,97,58,47,13,14,43,44,45,46,48,49,50,51,52,53,2,54,26,15,27,37,38,40,41,55,56,23,24,57,12,16,17,18,21,103,22,60,61,62,63,25,28,64,65,66,67,70,71,74,75,100,101,29,107,76,77,78,3,9,79,108,109,30,110,33,174,128,129,154,153,175]))}]},{path:`issues`,children:[{path:``,name:`/app/project/[slug]/dashboard/issues/`,component:()=>__vitePreload(()=>import(`./issues-KxOOLtSM.js`),__vite__mapDeps([176,1,13,14,43,5,44,4,45,46,47,48,49,50,51,52,53,2,12,15,16,17,18,26,27,37,38,40,41,58,59,7,60,54,55,56,23,24,57,61,25,28,64,65,68,69,100,101,29,107,79,77,78,109,30,96,126,127,177,178]))}]},{path:`pages`,children:[{path:``,name:`/app/project/[slug]/dashboard/pages/`,component:()=>__vitePreload(()=>import(`./pages-DcNh-g_z.js`),__vite__mapDeps([179,1,2,58,29,115,13,14,116,12,15,16,17,18,37,26,27,38,44,4,5,45,46,47,59,7,25,28,64,65,117,118,68,69,79,77,51,52,78,50,53,84,119,148,149,180]))},{path:`:pageId`,name:`/app/project/[slug]/dashboard/pages/[pageId]`,component:()=>__vitePreload(()=>import(`./_pageId_-DIPouI7Z.js`),__vite__mapDeps([181,1,2,58,115,13,14,116,12,15,16,17,18,37,26,27,38,44,4,5,45,46,47,59,7,25,28,64,65,117,118,68,69,29,79,77,51,52,78,50,53,84,119]))}]},{path:`project-files`,children:[{path:``,name:`/app/project/[slug]/dashboard/project-files/`,component:()=>__vitePreload(()=>import(`./project-files-C3a_vnA4.js`),__vite__mapDeps([182,1,13,14,2,58,59,44,4,5,45,46,47,7,29,110,48,109,30,163,12,15,16,17,18,37,26,27,38,40,41,87,88,25,28,64,65,68,69,100,101,102,103,6,51,52,22,79,77,78,50,53,83,112,84,34,164,165,152,166,148,149,183]))}]},{path:`publish`,children:[{path:``,name:`/app/project/[slug]/dashboard/publish/`,component:()=>__vitePreload(()=>import(`./publish-B1f2baHh.js`),__vite__mapDeps([184,1,13,14,12,15,16,17,18,26,27,37,38,40,41,44,4,5,45,46,47,59,58,7,62,55,56,63,23,24,25,28,64,65,68,69,72,73,100,101,29,107,54,57,51,52,60,61,53,148,149,185]))}]},{path:`pull-requests`,children:[{path:``,name:`/app/project/[slug]/dashboard/pull-requests/`,component:()=>__vitePreload(()=>import(`./pull-requests-BHq5Yafl.js`),__vite__mapDeps([186,1,13,14,43,5,44,4,45,46,47,48,49,50,51,52,53,2,54,26,15,27,37,38,40,41,55,56,23,24,57,12,16,17,18,58,59,7,25,28,64,65,68,69,29,104,60,61,100,101,102,103,6,22,105,106,79,77,78,113,114,96,124,42,19,20,21,30,31,32,33,34,35,62,63,66,67,70,71,72,73,74,75,76,8,3,9,80,81,82,83,84,85,86,107,108,110,109,125,126,127,177,187]))}]},{path:`repository`,children:[{path:``,name:`/app/project/[slug]/dashboard/repository/`,component:()=>__vitePreload(()=>import(`./repository-DMBew8kp.js`),__vite__mapDeps([188,1,146,95,8,4,5,6,7,96,97,58,47,13,14,12,15,16,17,18,37,26,27,38,44,45,46,23,24,25,28,64,65,68,69,29,49,108,110,48,109,30,83,84,31,32,33,121,104,54,40,41,55,56,57,51,52,60,61,100,101,102,103,22,105,106,122,147,148,149,150]))}]},{path:`session`,children:[{path:``,name:`/app/project/[slug]/dashboard/session/`,component:()=>__vitePreload(()=>import(`./session-B5MoHBVk.js`),__vite__mapDeps([189,1,13,14,16,17,23,24,29,132,5,114,148,149,190]))}]},{path:`settings`,children:[{path:``,name:`/app/project/[slug]/dashboard/settings/`,component:()=>__vitePreload(()=>import(`./settings-DDpgGhWO.js`),__vite__mapDeps([191,1,43,5,44,4,45,46,47,48,49,50,51,52,53,2,54,13,14,26,15,27,37,38,40,41,55,56,23,24,57,12,16,17,18,59,58,7,62,63,72,73,74,75,100,101,29,107,60,61,76,77,78,8,6,3,9,79,30,110,109,85,128,129,134,108,114,123,83,133,135,192]))}]}]},dashboard_vue_definePage_vue_lang_default)],meta:{"jskit":{"surface":`app`}}}]}]}];function genDefaults(){return{svg:{component:VSvgIcon},class:{component:VClassIcon}}}function createIcons(options){const sets=genDefaults();const defaultSet=options?.defaultSet??`mdi`;if(defaultSet===`mdi`&&!sets.mdi)sets.mdi=mdi;return mergeDeep({defaultSet,sets,aliases:{...aliases,vuetify:[`M8.2241 14.2009L12 21L22 3H14.4459L8.2241 14.2009Z`,[`M7.26303 12.4733L7.00113 12L2 3H12.5261C12.5261 3 12.5261 3 12.5261 3L7.26303 12.4733Z`,.6]],"vuetify-outline":`svg:M7.26 12.47 12.53 3H2L7.26 12.47ZM14.45 3 8.22 14.2 12 21 22 3H14.45ZM18.6 5 12 16.88 10.51 14.2 15.62 5ZM7.26 8.35 5.4 5H9.13L7.26 8.35Z`,"vuetify-play":[`m6.376 13.184-4.11-7.192C1.505 4.66 2.467 3 4.003 3h8.532l-.953 1.576-.006.01-.396.677c-.429.732-.214 1.507.194 2.015.404.503 1.092.878 1.869.806a3.72 3.72 0 0 1 1.005.022c.276.053.434.143.523.237.138.146.38.635-.25 2.09-.893 1.63-1.553 1.722-1.847 1.677-.213-.033-.468-.158-.756-.406a4.95 4.95 0 0 1-.8-.927c-.39-.564-1.04-.84-1.66-.846-.625-.006-1.316.27-1.693.921l-.478.826-.911 1.506Z`,[`M9.093 11.552c.046-.079.144-.15.32-.148a.53.53 0 0 1 .43.207c.285.414.636.847 1.046 1.2.405.35.914.662 1.516.754 1.334.205 2.502-.698 3.48-2.495l.014-.028.013-.03c.687-1.574.774-2.852-.005-3.675-.37-.391-.861-.586-1.333-.676a5.243 5.243 0 0 0-1.447-.044c-.173.016-.393-.073-.54-.257-.145-.18-.127-.316-.082-.392l.393-.672L14.287 3h5.71c1.536 0 2.499 1.659 1.737 2.992l-7.997 13.996c-.768 1.344-2.706 1.344-3.473 0l-3.037-5.314 1.377-2.278.004-.006.004-.007.481-.831Z`,.6]]}},options)}function weekInfo(locale){const code=locale.slice(-2).toUpperCase();switch(true){case locale===`GB-alt-variant`:return{firstDay:0,firstWeekSize:4};case locale===`001`:return{firstDay:1,firstWeekSize:1};case`AG AS BD BR BS BT BW BZ CA CO DM DO ET GT GU HK HN ID IL IN JM JP KE
3
3
  KH KR LA MH MM MO MT MX MZ NI NP PA PE PH PK PR PY SA SG SV TH TT TW UM US
4
4
  VE VI WS YE ZA ZW`.includes(code):return{firstDay:0,firstWeekSize:1};case`AI AL AM AR AU AZ BA BM BN BY CL CM CN CR CY EC GE HR KG KZ LB LK LV
5
5
  MD ME MK MN MY NZ RO RS SI TJ TM TR UA UY UZ VN XK`.includes(code):return{firstDay:1,firstWeekSize:1};case`AD AN AT AX BE BG CH CZ DE DK EE ES FI FJ FO FR GB GF GP GR HU IE IS