@runeya/runeya 2.0.4 → 2.0.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/agent/index.js +8 -0
- package/agent/index.js.map +1 -1
- package/{dist-6LF3EWHR.js → dist-RZD3EUA3.js} +51 -4
- package/{dist-6LF3EWHR.js.map → dist-RZD3EUA3.js.map} +1 -1
- package/index.js +1 -1
- package/package.json +2 -2
- package/web/assets/{AddressBar.vue-BKDjFQEO.js → AddressBar.vue-BOHUxRhN.js} +1 -1
- package/web/assets/{AgentPage-BgJ6Oumo.js → AgentPage-DFHxsu-9.js} +1 -1
- package/web/assets/{AgentScalarChatInterface.vue-C__iUL1Z.js → AgentScalarChatInterface.vue-Cxxiyyj8.js} +1 -1
- package/web/assets/{AgentTerminalPage-10MrzYed.js → AgentTerminalPage-D-T5emEl.js} +1 -1
- package/web/assets/AiChatPage-C81mFvv5.js +1 -0
- package/web/assets/{ApiDocsPage-BLR94Cpt.js → ApiDocsPage-CMGvcGEJ.js} +3 -3
- package/web/assets/{AppLayout-CDmZkp4X.js → AppLayout-D10vX1fo.js} +1 -1
- package/web/assets/{AuditPage-DmzLNZum.js → AuditPage-DZiwogoY.js} +1 -1
- package/web/assets/{CodeInput.vue-DESnqXGT.js → CodeInput.vue-8aNMYCYM.js} +1 -1
- package/web/assets/{Collection.vue-DsMsUTvq.js → Collection.vue-N8zZa4pa.js} +1 -1
- package/web/assets/{CollectionAuthentication.vue-CMRcgbVh.js → CollectionAuthentication.vue-cJOxjafo.js} +1 -1
- package/web/assets/CollectionCookies.vue-DrFQqbwv.js +1 -0
- package/web/assets/{CollectionEnvironment.vue-1tFpk-iW.js → CollectionEnvironment.vue-DWPTZ8qx.js} +1 -1
- package/web/assets/{CollectionOverview.vue-ClKgsIxR.js → CollectionOverview.vue-1Qf130d5.js} +1 -1
- package/web/assets/CollectionScripts.vue-DhcFFz80.js +1 -0
- package/web/assets/{CollectionServers.vue-DQQoH4jS.js → CollectionServers.vue-h7E03W0v.js} +1 -1
- package/web/assets/{CollectionSettings.vue-BNccb6p7.js → CollectionSettings.vue-CFrOwl7U.js} +1 -1
- package/web/assets/CollectionSync.vue-PV_tIrJS.js +1 -0
- package/web/assets/{CommandActionInput.vue-B3M0qimk.js → CommandActionInput.vue-L7AcEf6T.js} +1 -1
- package/web/assets/{Cookies.vue-Dm17xLaC.js → Cookies.vue-_P19OjMm.js} +1 -1
- package/web/assets/{DashboardPage-jcsHhPai.js → DashboardPage-BUDWnuJT.js} +1 -1
- package/web/assets/{DataTable.vue-zdywGoM2.js → DataTable.vue-DYVeGQPP.js} +1 -1
- package/web/assets/{DataTableCheckbox.vue-CclkBKvE.js → DataTableCheckbox.vue-n2xCTJj1.js} +1 -1
- package/web/assets/{DataTableHeader.vue-CeoLy43w.js → DataTableHeader.vue-ByesjY2f.js} +1 -1
- package/web/assets/{DataTableInput.vue-3ERbFJoE.js → DataTableInput.vue-uPpuKzrX.js} +1 -1
- package/web/assets/{DeleteSidebarListElement.vue-3UGiyFzi.js → DeleteSidebarListElement.vue-CBIb58rU.js} +1 -1
- package/web/assets/{EditSidebarListElement.vue-CCE5jAED.js → EditSidebarListElement.vue-DqTVSZtI.js} +1 -1
- package/web/assets/{EditorIcon-C2ppEtfo.js → EditorIcon-B70ii4EM.js} +1 -1
- package/web/assets/{EmptyState.vue-DlGCQP8X.js → EmptyState.vue-CcnWPtfW.js} +1 -1
- package/web/assets/{Environment.vue-B9fCQn_o.js → Environment.vue-Cgx06nkH.js} +1 -1
- package/web/assets/{EnvironmentForm-B6sX-gjz.js → EnvironmentForm-iBZzqZKd.js} +1 -1
- package/web/assets/{EnvironmentFormPage-LkjLL2Tx.js → EnvironmentFormPage-YVxAAreT.js} +1 -1
- package/web/assets/{EnvironmentListPage-DJrq-bw9.js → EnvironmentListPage-CHYDJ_c-.js} +1 -1
- package/web/assets/{EnvironmentModal.vue-CGuZ2LaE.js → EnvironmentModal.vue-BJNYZuPC.js} +1 -1
- package/web/assets/{EnvironmentSelector-BLJiz2gj.js → EnvironmentSelector-BZn_taec.js} +1 -1
- package/web/assets/{Form.vue-Cv791OrG.js → Form.vue-NLXFw40d.js} +1 -1
- package/web/assets/{IconSelector.vue-fCHQhHMO.js → IconSelector.vue-Ykh6DAln.js} +1 -1
- package/web/assets/{KanbanBoardPage-DhSVHsG8.js → KanbanBoardPage-gtXv0ZhK.js} +3 -3
- package/web/assets/{KanbanListPage-BeViEJtv.js → KanbanListPage-DMNSYO_o.js} +1 -1
- package/web/assets/{LaunchProjectPage-CIGYCxFP.js → LaunchProjectPage-DSyBuhky.js} +1 -1
- package/web/assets/{LaunchServicesPage-D0j30OXl.js → LaunchServicesPage-CiGkiqwE.js} +1 -1
- package/web/assets/{LogViewer-CXdJvW0h.js → LogViewer-DBVkaZnm.js} +1 -1
- package/web/assets/{ProcessControls-DL7EynVq.js → ProcessControls-Cya4eb3d.js} +1 -1
- package/web/assets/{ProcessDetailPage-DrFtEQIB.js → ProcessDetailPage-8ypC6zkc.js} +1 -1
- package/web/assets/{ProcessMetrics-DI_OfGVK.js → ProcessMetrics-CxRgbaUS.js} +1 -1
- package/web/assets/{ProjectDetailPage-BbTkdOjA.js → ProjectDetailPage-a1lTAjKP.js} +1 -1
- package/web/assets/{ProjectListPage-D5AjQ76w.js → ProjectListPage-Dewqu8Dm.js} +1 -1
- package/web/assets/{RandomJobTestPage-BqA1OISu.js → RandomJobTestPage-E6mevkqw.js} +1 -1
- package/web/assets/{Request.vue-DZqQbBpT.js → Request.vue-DQPTi6ur.js} +1 -1
- package/web/assets/{RequestAuth.vue-D_xgg-Np.js → RequestAuth.vue-DV5nNO3f.js} +1 -1
- package/web/assets/{RequestRoot.vue-BNteZz7y.js → RequestRoot.vue-DKlASKU5.js} +1 -1
- package/web/assets/{ScalarAsciiArt.vue-Bq6jHX7k.js → ScalarAsciiArt.vue-mk9jZSKh.js} +1 -1
- package/web/assets/{ScalarIconEyeSlash.vue-BmXqf-BS.js → ScalarIconEyeSlash.vue-DWKhR_BX.js} +1 -1
- package/web/assets/{ScalarIconTrash.vue-B6zURvRt.js → ScalarIconTrash.vue-CtSwrO5S.js} +1 -1
- package/web/assets/{ScenarioEditorPage-C6ezD0zR.js → ScenarioEditorPage-DogHTbNU.js} +1 -1
- package/web/assets/{ServerVariablesForm.vue-DNmYrfHr.js → ServerVariablesForm.vue-DYmWiAuz.js} +1 -1
- package/web/assets/{ServiceControlsBar-IQttXg13.js → ServiceControlsBar-B8Sm6p9E.js} +1 -1
- package/web/assets/{ServiceDetailPage-KU1gvCBw.js → ServiceDetailPage-DpWLccOg.js} +1 -1
- package/web/assets/{ServiceFormPage-DJjK3iWz.js → ServiceFormPage-DQbOgtB3.js} +1 -1
- package/web/assets/{Settings.vue-DKVhG7ed.js → Settings.vue-buoYkM3l.js} +1 -1
- package/web/assets/{SettingsPage-B_3jbuRH.js → SettingsPage-CCjZq5jP.js} +1 -1
- package/web/assets/{SetupKeyPage-CuqL0je4.js → SetupKeyPage-BdSpJPDR.js} +1 -1
- package/web/assets/{SetupPage-66SJwdOq.js → SetupPage-BsWaVllB.js} +1 -1
- package/web/assets/{Sidebar.vue-Bi6nDDuM.js → Sidebar.vue-DntMEn5m.js} +1 -1
- package/web/assets/{SidebarButton.vue-DXlFKFt7.js → SidebarButton.vue-DTin2zI2.js} +1 -1
- package/web/assets/{SidebarListElement.vue-RCpzoEDa.js → SidebarListElement.vue-zlfRLuE5.js} +1 -1
- package/web/assets/{UnlockPage-DOJwyaIc.js → UnlockPage-CmwRV1XA.js} +1 -1
- package/web/assets/{VariablesTable-DKZDozPX.js → VariablesTable-C8lxLV1V.js} +1 -1
- package/web/assets/{ViewLayout.vue-CA3dFsBE.js → ViewLayout.vue-C7w_U_o6.js} +1 -1
- package/web/assets/{ViewLayoutContent.vue-D0ZyDMeg.js → ViewLayoutContent.vue-CAXM5eIo.js} +1 -1
- package/web/assets/{ViewLayoutSection.vue-2zO572AC.js → ViewLayoutSection.vue-BzJIsja7.js} +1 -1
- package/web/assets/{active-entities-y4R6TMSt.js → active-entities-C2TbBQeI.js} +1 -1
- package/web/assets/{api-reference-BxlRg4qR.js → api-reference-BJkGMKQj.js} +1 -1
- package/web/assets/{autocomplete-6qBTCyf6.js → autocomplete-CxPmwkcZ.js} +1 -1
- package/web/assets/{card-CCBkP2P8.js → card-D5_gGGD-.js} +1 -1
- package/web/assets/{checkbox-C1esDvCD.js → checkbox-C0sXsL9e.js} +1 -1
- package/web/assets/{chip-DEYEeW-F.js → chip-rnk9_cKV.js} +1 -1
- package/web/assets/{column-aK2I8PaJ.js → column-ChvIrUdH.js} +1 -1
- package/web/assets/{core-CGdWGCUX.js → core-wYvkV3-A.js} +1 -1
- package/web/assets/{cssMode-DpoqIkov.js → cssMode-DdlczEni.js} +1 -1
- package/web/assets/{dist-BFf6fIdo.js → dist-BHh6fQzR.js} +1 -1
- package/web/assets/{dist-wmfsxjxc.js → dist-DBBhfLmf.js} +1 -1
- package/web/assets/{dist-Cu0IbGNw.js → dist-DeOvPbza.js} +1 -1
- package/web/assets/{dist-BpDjOvWf.js → dist-ZJ37S89a.js} +1 -1
- package/web/assets/{divider-Bk4Brbv7.js → divider-D6L7p-FU.js} +1 -1
- package/web/assets/{editor.store-BF8_S543.js → editor.store-CWtgIxvE.js} +1 -1
- package/web/assets/{fieldset-DA1GYALV.js → fieldset-CiwzR0un.js} +1 -1
- package/web/assets/{freemarker2-C0SgSEQX.js → freemarker2-_wLEdPSz.js} +1 -1
- package/web/assets/{handlebars-DgMfQd2U.js → handlebars-66zKrSAk.js} +1 -1
- package/web/assets/{html-XhTY3nJ1.js → html-oM24gnvF.js} +1 -1
- package/web/assets/{htmlMode-a8Q5--J-.js → htmlMode-D65_fKu-.js} +1 -1
- package/web/assets/{index-DtgzVYQA.js → index-D5xJxOo2.js} +5 -5
- package/web/assets/index-Pqvy10Qz.css +1 -0
- package/web/assets/{javascript-CF3GRA6J.js → javascript-D-njx6Yh.js} +1 -1
- package/web/assets/{jsonMode-BVI1ty1E.js → jsonMode-bqHogKpM.js} +1 -1
- package/web/assets/{keyboard-C-kSRd_7.js → keyboard-BzTLpobK.js} +1 -1
- package/web/assets/{lib-Byz6Xoc7.js → lib-CPo2W-Kx.js} +1 -1
- package/web/assets/{library-yLls1gid.js → library-DmdL5Pgv.js} +1 -1
- package/web/assets/{liquid-BTUbnx76.js → liquid-BDL70fhI.js} +1 -1
- package/web/assets/{mdx-CT9JRVqk.js → mdx-Bo_N_Jd-.js} +1 -1
- package/web/assets/{mediaTypes-C2O-9mqw.js → mediaTypes-Cnm-r_sv.js} +1 -1
- package/web/assets/{message-BP6E2kB3.js → message-gtjFpAbc.js} +1 -1
- package/web/assets/{minus-l3m1t2VR.js → minus-C5Lsl7Wp.js} +1 -1
- package/web/assets/{multiselect-Dx1fcUSk.js → multiselect-BlmCsiSW.js} +1 -1
- package/web/assets/{password-DrgM_4MT.js → password-RYOg4soC.js} +1 -1
- package/web/assets/{plus-Dz5uLOsa.js → plus-C52I3-BN.js} +1 -1
- package/web/assets/{pretty-ms-BlzIQVgC.js → pretty-ms-BBvjfSt1.js} +1 -1
- package/web/assets/process.store-3BOses3z.js +1 -0
- package/web/assets/{project.store-IkiJVnHi.js → project.store-emr8mjg8.js} +1 -1
- package/web/assets/{python-D-ygMaD7.js → python-D1UXSNgK.js} +1 -1
- package/web/assets/{radiobutton-BF_JCgK5.js → radiobutton-B0t-WlKP.js} +1 -1
- package/web/assets/{razor-Cj7iiXRp.js → razor-Bd4GOtMe.js} +1 -1
- package/web/assets/router-DHhyM3YQ.js +1 -0
- package/web/assets/{settings.store-DlrIalG7.js → settings.store-CDr0Mia7.js} +1 -1
- package/web/assets/{store-DIQ5cnJB.js → store-CZKREOuj.js} +1 -1
- package/web/assets/{tabpanel-BFvptblG.js → tabpanel-geoVG-sX.js} +1 -1
- package/web/assets/{tag-Bg6HzaCD.js → tag-Dv5CaUPa.js} +1 -1
- package/web/assets/{toggleswitch-COqZTyfv.js → toggleswitch-DNzwv4Lc.js} +1 -1
- package/web/assets/trpc-B-vyi6vd.js +1 -0
- package/web/assets/{tsMode-IV67jT9w.js → tsMode-BkM4CkKr.js} +1 -1
- package/web/assets/{typescript-Bx9S0mR5.js → typescript-CUKl0qxN.js} +1 -1
- package/web/assets/{urls-D-5DkVsl.js → urls-BqL-MrG5.js} +1 -1
- package/web/assets/{use-tree-walker-Xi56Kyhe.js → use-tree-walker-E64HILpa.js} +1 -1
- package/web/assets/useAiChatDrawer-uS6dsG6x.js +1 -0
- package/web/assets/{useClipboard-CQwV_ErZ.js → useClipboard-Bep2crMO.js} +1 -1
- package/web/assets/{useLayout-CtomPxVB.js → useLayout-F9XKAPPL.js} +1 -1
- package/web/assets/{usePluginManager-B0LLVYIo.js → usePluginManager-yL67GqCi.js} +1 -1
- package/web/assets/{useSidebar-lFxMzh7T.js → useSidebar-DVRRagIa.js} +1 -1
- package/web/assets/{vue-router-DyWP0jFg.js → vue-router-uE6ClrN-.js} +1 -1
- package/web/assets/{xml-Chbr5k8r.js → xml-DMOW2yTg.js} +1 -1
- package/web/assets/{yaml-W-9gxiit.js → yaml-D2q3K0ZL.js} +1 -1
- package/web/index.html +2 -2
- package/web/assets/AiChatPage-DHXHJArt.js +0 -1
- package/web/assets/CollectionCookies.vue-giwIx9Oo.js +0 -1
- package/web/assets/CollectionScripts.vue-CfmQLF4T.js +0 -1
- package/web/assets/CollectionSync.vue-Cvrk773s.js +0 -1
- package/web/assets/index-BRDI9Dib.css +0 -1
- package/web/assets/process.store-Bt4k1TZl.js +0 -1
- package/web/assets/router-DcgtzWsZ.js +0 -1
- package/web/assets/trpc-tQqsDgwJ.js +0 -1
- package/web/assets/useAiChatDrawer-CaLJAha9.js +0 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/javascript-
|
|
1
|
+
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/javascript-D-njx6Yh.js","assets/typescript-CUKl0qxN.js","assets/UnlockPage-CmwRV1XA.js","assets/card-D5_gGGD-.js","assets/message-gtjFpAbc.js","assets/password-RYOg4soC.js","assets/UnlockPage-Cx3PYgUl.css","assets/SetupPage-BsWaVllB.js","assets/radiobutton-B0t-WlKP.js","assets/SetupPage-_KXpCQSU.css","assets/SetupKeyPage-BdSpJPDR.js","assets/SetupKeyPage-DoY1Ua1s.css","assets/LaunchProjectPage-DSyBuhky.js","assets/project.store-emr8mjg8.js","assets/LaunchProjectPage-_L_i2xo0.css","assets/LaunchServicesPage-CiGkiqwE.js","assets/checkbox-C0sXsL9e.js","assets/minus-C5Lsl7Wp.js","assets/tag-Dv5CaUPa.js","assets/LaunchServicesPage-BABQz-ey.css","assets/AppLayout-D10vX1fo.js","assets/EditorIcon-B70ii4EM.js","assets/EditorIcon-zS3bHXe1.css","assets/EnvironmentSelector-BZn_taec.js","assets/EnvironmentSelector-B9SZvB3I.css","assets/ServiceControlsBar-B8Sm6p9E.js","assets/ProcessControls-Cya4eb3d.js","assets/ProcessControls-CKmB6sB9.css","assets/ServiceControlsBar-D_S_sGQj.css","assets/editor.store-CWtgIxvE.js","assets/AppLayout-sngalCCj.css","assets/DashboardPage-BUDWnuJT.js","assets/column-ChvIrUdH.js","assets/plus-C52I3-BN.js","assets/DashboardPage-gZJ4_s8T.css","assets/AgentPage-DFHxsu-9.js","assets/autocomplete-CxPmwkcZ.js","assets/chip-rnk9_cKV.js","assets/toggleswitch-DNzwv4Lc.js","assets/AgentPage-BTWkJvqr.css","assets/KanbanListPage-DMNSYO_o.js","assets/tabpanel-geoVG-sX.js","assets/KanbanListPage-DbdjvTCx.css","assets/KanbanBoardPage-gtXv0ZhK.js","assets/uuid-B9GFVXPm.js","assets/lib-CPo2W-Kx.js","assets/w3c-keyname-DDCGDLuI.js","assets/KanbanBoardPage-7nOYpwHn.css","assets/AgentTerminalPage-D-T5emEl.js","assets/AgentTerminalPage-EX_n6P3x.css","assets/AuditPage-DZiwogoY.js","assets/AuditPage-BBV9FW9y.css","assets/SettingsPage-CCjZq5jP.js","assets/LogViewer-DBVkaZnm.js","assets/multiselect-BlmCsiSW.js","assets/LogViewer-CJcXcTP0.css","assets/settings.store-CDr0Mia7.js","assets/SettingsPage-vGhb_tlY.css","assets/ApiDocsPage-CMGvcGEJ.js","assets/dist-DBBhfLmf.js","assets/dist-ZJ37S89a.js","assets/_plugin-vue_export-helper-C7ztIXtE.js","assets/pretty-ms-BBvjfSt1.js","assets/DataTable.vue-DYVeGQPP.js","assets/DataTableCheckbox.vue-n2xCTJj1.js","assets/keyboard-BzTLpobK.js","assets/ServerVariablesForm.vue-DYmWiAuz.js","assets/useLayout-F9XKAPPL.js","assets/store-CZKREOuj.js","assets/use-tree-walker-E64HILpa.js","assets/base64-uZi92-DX.js","assets/AddressBar.vue-BOHUxRhN.js","assets/CodeInput.vue-8aNMYCYM.js","assets/active-entities-C2TbBQeI.js","assets/core-wYvkV3-A.js","assets/vue-router-uE6ClrN-.js","assets/mediaTypes-Cnm-r_sv.js","assets/ScalarAsciiArt.vue-mk9jZSKh.js","assets/CommandActionInput.vue-L7AcEf6T.js","assets/DataTableHeader.vue-ByesjY2f.js","assets/urls-BqL-MrG5.js","assets/ViewLayout.vue-C7w_U_o6.js","assets/ViewLayoutContent.vue-CAXM5eIo.js","assets/ViewLayoutSection.vue-BzJIsja7.js","assets/api-reference-BJkGMKQj.js","assets/ScalarIconEyeSlash.vue-DWKhR_BX.js","assets/ScalarIconTrash.vue-CtSwrO5S.js","assets/library-DmdL5Pgv.js","assets/useClipboard-Bep2crMO.js","assets/dist-DeOvPbza.js","assets/Sidebar.vue-DntMEn5m.js","assets/useSidebar-DVRRagIa.js","assets/dist-DkaYBczY.js","assets/ApiDocsPage-D2Z0wqGZ.css","assets/ScenarioEditorPage-DogHTbNU.js","assets/ScenarioEditorPage-CfBKebp6.css","assets/ServiceFormPage-DQbOgtB3.js","assets/divider-D6L7p-FU.js","assets/fieldset-CiwzR0un.js","assets/ServiceFormPage-CyY-14jH.css","assets/ServiceDetailPage-DpWLccOg.js","assets/VariablesTable-C8lxLV1V.js","assets/VariablesTable-BtdK5olT.css","assets/ProcessMetrics-CxRgbaUS.js","assets/ProcessMetrics-BgEFMdnW.css","assets/ServiceDetailPage-BriHTCpT.css","assets/ProjectListPage-Dewqu8Dm.js","assets/ProjectListPage-BGU6SKAr.css","assets/ProjectDetailPage-a1lTAjKP.js","assets/ProjectDetailPage-CZBB6F-t.css","assets/EnvironmentListPage-CHYDJ_c-.js","assets/EnvironmentForm-iBZzqZKd.js","assets/EnvironmentForm-DVMc303P.css","assets/EnvironmentListPage-BDqcug66.css","assets/EnvironmentFormPage-YVxAAreT.js","assets/EnvironmentFormPage-OaDJvyrc.css","assets/ProcessDetailPage-8ypC6zkc.js","assets/ProcessDetailPage-B0qGKtvQ.css","assets/RandomJobTestPage-E6mevkqw.js","assets/RandomJobTestPage-C1mgTTSY.css"])))=>i.map(i=>d[i]);
|
|
2
2
|
var e=Object.create,t=Object.defineProperty,n=Object.getOwnPropertyDescriptor,r=Object.getOwnPropertyNames,i=Object.getPrototypeOf,a=Object.prototype.hasOwnProperty,o=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),s=(e,n)=>{let r={};for(var i in e)t(r,i,{get:e[i],enumerable:!0});return n&&t(r,Symbol.toStringTag,{value:`Module`}),r},c=(e,i,o,s)=>{if(i&&typeof i==`object`||typeof i==`function`)for(var c=r(i),l=0,u=c.length,d;l<u;l++)d=c[l],!a.call(e,d)&&d!==o&&t(e,d,{get:(e=>i[e]).bind(null,d),enumerable:!(s=n(i,d))||s.enumerable});return e},l=(n,r,a)=>(a=n==null?{}:e(i(n)),c(r||!n||!n.__esModule?t(a,`default`,{value:n,enumerable:!0}):a,n));(function(){let e=document.createElement(`link`).relList;if(e&&e.supports&&e.supports(`modulepreload`))return;for(let e of document.querySelectorAll(`link[rel="modulepreload"]`))n(e);new MutationObserver(e=>{for(let t of e)if(t.type===`childList`)for(let e of t.addedNodes)e.tagName===`LINK`&&e.rel===`modulepreload`&&n(e)}).observe(document,{childList:!0,subtree:!0});function t(e){let t={};return e.integrity&&(t.integrity=e.integrity),e.referrerPolicy&&(t.referrerPolicy=e.referrerPolicy),e.crossOrigin===`use-credentials`?t.credentials=`include`:e.crossOrigin===`anonymous`?t.credentials=`omit`:t.credentials=`same-origin`,t}function n(e){if(e.ep)return;e.ep=!0;let n=t(e);fetch(e.href,n)}})();var u=o((e=>{e.byteLength=c,e.toByteArray=u,e.fromByteArray=p;for(var t=[],n=[],r=typeof Uint8Array<`u`?Uint8Array:Array,i=`ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/`,a=0,o=i.length;a<o;++a)t[a]=i[a],n[i.charCodeAt(a)]=a;n[45]=62,n[95]=63;function s(e){var t=e.length;if(t%4>0)throw Error(`Invalid string. Length must be a multiple of 4`);var n=e.indexOf(`=`);n===-1&&(n=t);var r=n===t?0:4-n%4;return[n,r]}function c(e){var t=s(e),n=t[0],r=t[1];return(n+r)*3/4-r}function l(e,t,n){return(t+n)*3/4-n}function u(e){var t,i=s(e),a=i[0],o=i[1],c=new r(l(e,a,o)),u=0,d=o>0?a-4:a,f;for(f=0;f<d;f+=4)t=n[e.charCodeAt(f)]<<18|n[e.charCodeAt(f+1)]<<12|n[e.charCodeAt(f+2)]<<6|n[e.charCodeAt(f+3)],c[u++]=t>>16&255,c[u++]=t>>8&255,c[u++]=t&255;return o===2&&(t=n[e.charCodeAt(f)]<<2|n[e.charCodeAt(f+1)]>>4,c[u++]=t&255),o===1&&(t=n[e.charCodeAt(f)]<<10|n[e.charCodeAt(f+1)]<<4|n[e.charCodeAt(f+2)]>>2,c[u++]=t>>8&255,c[u++]=t&255),c}function d(e){return t[e>>18&63]+t[e>>12&63]+t[e>>6&63]+t[e&63]}function f(e,t,n){for(var r,i=[],a=t;a<n;a+=3)r=(e[a]<<16&16711680)+(e[a+1]<<8&65280)+(e[a+2]&255),i.push(d(r));return i.join(``)}function p(e){for(var n,r=e.length,i=r%3,a=[],o=16383,s=0,c=r-i;s<c;s+=o)a.push(f(e,s,s+o>c?c:s+o));return i===1?(n=e[r-1],a.push(t[n>>2]+t[n<<4&63]+`==`)):i===2&&(n=(e[r-2]<<8)+e[r-1],a.push(t[n>>10]+t[n>>4&63]+t[n<<2&63]+`=`)),a.join(``)}})),d=o((e=>{e.read=function(e,t,n,r,i){var a,o,s=i*8-r-1,c=(1<<s)-1,l=c>>1,u=-7,d=n?i-1:0,f=n?-1:1,p=e[t+d];for(d+=f,a=p&(1<<-u)-1,p>>=-u,u+=s;u>0;a=a*256+e[t+d],d+=f,u-=8);for(o=a&(1<<-u)-1,a>>=-u,u+=r;u>0;o=o*256+e[t+d],d+=f,u-=8);if(a===0)a=1-l;else if(a===c)return o?NaN:(p?-1:1)*(1/0);else o+=2**r,a-=l;return(p?-1:1)*o*2**(a-r)},e.write=function(e,t,n,r,i,a){var o,s,c,l=a*8-i-1,u=(1<<l)-1,d=u>>1,f=i===23?2**-24-2**-77:0,p=r?0:a-1,m=r?1:-1,h=t<0||t===0&&1/t<0?1:0;for(t=Math.abs(t),isNaN(t)||t===1/0?(s=isNaN(t)?1:0,o=u):(o=Math.floor(Math.log(t)/Math.LN2),t*(c=2**-o)<1&&(o--,c*=2),o+d>=1?t+=f/c:t+=f*2**(1-d),t*c>=2&&(o++,c/=2),o+d>=u?(s=0,o=u):o+d>=1?(s=(t*c-1)*2**i,o+=d):(s=t*2**(d-1)*2**i,o=0));i>=8;e[n+p]=s&255,p+=m,s/=256,i-=8);for(o=o<<i|s,l+=i;l>0;e[n+p]=o&255,p+=m,o/=256,l-=8);e[n+p-m]|=h*128}})),f=o((e=>{var t=u(),n=d(),r=typeof Symbol==`function`&&typeof Symbol.for==`function`?Symbol.for(`nodejs.util.inspect.custom`):null;e.Buffer=s,e.SlowBuffer=b,e.INSPECT_MAX_BYTES=50;var i=2147483647;e.kMaxLength=i,s.TYPED_ARRAY_SUPPORT=a(),!s.TYPED_ARRAY_SUPPORT&&typeof console<`u`&&typeof console.error==`function`&&console.error("This browser lacks typed array (Uint8Array) support which is required by `buffer` v5.x. Use `buffer` v4.x if you require old browser support.");function a(){try{let e=new Uint8Array(1),t={foo:function(){return 42}};return Object.setPrototypeOf(t,Uint8Array.prototype),Object.setPrototypeOf(e,t),e.foo()===42}catch{return!1}}Object.defineProperty(s.prototype,`parent`,{enumerable:!0,get:function(){if(s.isBuffer(this))return this.buffer}}),Object.defineProperty(s.prototype,`offset`,{enumerable:!0,get:function(){if(s.isBuffer(this))return this.byteOffset}});function o(e){if(e>i)throw RangeError(`The value "`+e+`" is invalid for option "size"`);let t=new Uint8Array(e);return Object.setPrototypeOf(t,s.prototype),t}function s(e,t,n){if(typeof e==`number`){if(typeof t==`string`)throw TypeError(`The "string" argument must be of type string. Received type number`);return p(e)}return c(e,t,n)}s.poolSize=8192;function c(e,t,n){if(typeof e==`string`)return m(e,t);if(ArrayBuffer.isView(e))return g(e);if(e==null)throw TypeError(`The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type `+typeof e);if(Pe(e,ArrayBuffer)||e&&Pe(e.buffer,ArrayBuffer)||typeof SharedArrayBuffer<`u`&&(Pe(e,SharedArrayBuffer)||e&&Pe(e.buffer,SharedArrayBuffer)))return _(e,t,n);if(typeof e==`number`)throw TypeError(`The "value" argument must not be of type number. Received type number`);let r=e.valueOf&&e.valueOf();if(r!=null&&r!==e)return s.from(r,t,n);let i=v(e);if(i)return i;if(typeof Symbol<`u`&&Symbol.toPrimitive!=null&&typeof e[Symbol.toPrimitive]==`function`)return s.from(e[Symbol.toPrimitive](`string`),t,n);throw TypeError(`The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type `+typeof e)}s.from=function(e,t,n){return c(e,t,n)},Object.setPrototypeOf(s.prototype,Uint8Array.prototype),Object.setPrototypeOf(s,Uint8Array);function l(e){if(typeof e!=`number`)throw TypeError(`"size" argument must be of type number`);if(e<0)throw RangeError(`The value "`+e+`" is invalid for option "size"`)}function f(e,t,n){return l(e),e<=0||t===void 0?o(e):typeof n==`string`?o(e).fill(t,n):o(e).fill(t)}s.alloc=function(e,t,n){return f(e,t,n)};function p(e){return l(e),o(e<0?0:y(e)|0)}s.allocUnsafe=function(e){return p(e)},s.allocUnsafeSlow=function(e){return p(e)};function m(e,t){if((typeof t!=`string`||t===``)&&(t=`utf8`),!s.isEncoding(t))throw TypeError(`Unknown encoding: `+t);let n=x(e,t)|0,r=o(n),i=r.write(e,t);return i!==n&&(r=r.slice(0,i)),r}function h(e){let t=e.length<0?0:y(e.length)|0,n=o(t);for(let r=0;r<t;r+=1)n[r]=e[r]&255;return n}function g(e){if(Pe(e,Uint8Array)){let t=new Uint8Array(e);return _(t.buffer,t.byteOffset,t.byteLength)}return h(e)}function _(e,t,n){if(t<0||e.byteLength<t)throw RangeError(`"offset" is outside of buffer bounds`);if(e.byteLength<t+(n||0))throw RangeError(`"length" is outside of buffer bounds`);let r;return r=t===void 0&&n===void 0?new Uint8Array(e):n===void 0?new Uint8Array(e,t):new Uint8Array(e,t,n),Object.setPrototypeOf(r,s.prototype),r}function v(e){if(s.isBuffer(e)){let t=y(e.length)|0,n=o(t);return n.length===0||e.copy(n,0,0,t),n}if(e.length!==void 0)return typeof e.length!=`number`||Fe(e.length)?o(0):h(e);if(e.type===`Buffer`&&Array.isArray(e.data))return h(e.data)}function y(e){if(e>=i)throw RangeError(`Attempt to allocate Buffer larger than maximum size: 0x`+i.toString(16)+` bytes`);return e|0}function b(e){return+e!=e&&(e=0),s.alloc(+e)}s.isBuffer=function(e){return e!=null&&e._isBuffer===!0&&e!==s.prototype},s.compare=function(e,t){if(Pe(e,Uint8Array)&&(e=s.from(e,e.offset,e.byteLength)),Pe(t,Uint8Array)&&(t=s.from(t,t.offset,t.byteLength)),!s.isBuffer(e)||!s.isBuffer(t))throw TypeError(`The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array`);if(e===t)return 0;let n=e.length,r=t.length;for(let i=0,a=Math.min(n,r);i<a;++i)if(e[i]!==t[i]){n=e[i],r=t[i];break}return n<r?-1:r<n?1:0},s.isEncoding=function(e){switch(String(e).toLowerCase()){case`hex`:case`utf8`:case`utf-8`:case`ascii`:case`latin1`:case`binary`:case`base64`:case`ucs2`:case`ucs-2`:case`utf16le`:case`utf-16le`:return!0;default:return!1}},s.concat=function(e,t){if(!Array.isArray(e))throw TypeError(`"list" argument must be an Array of Buffers`);if(e.length===0)return s.alloc(0);let n;if(t===void 0)for(t=0,n=0;n<e.length;++n)t+=e[n].length;let r=s.allocUnsafe(t),i=0;for(n=0;n<e.length;++n){let t=e[n];if(Pe(t,Uint8Array))i+t.length>r.length?(s.isBuffer(t)||(t=s.from(t)),t.copy(r,i)):Uint8Array.prototype.set.call(r,t,i);else if(s.isBuffer(t))t.copy(r,i);else throw TypeError(`"list" argument must be an Array of Buffers`);i+=t.length}return r};function x(e,t){if(s.isBuffer(e))return e.length;if(ArrayBuffer.isView(e)||Pe(e,ArrayBuffer))return e.byteLength;if(typeof e!=`string`)throw TypeError(`The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type `+typeof e);let n=e.length,r=arguments.length>2&&arguments[2]===!0;if(!r&&n===0)return 0;let i=!1;for(;;)switch(t){case`ascii`:case`latin1`:case`binary`:return n;case`utf8`:case`utf-8`:return ke(e).length;case`ucs2`:case`ucs-2`:case`utf16le`:case`utf-16le`:return n*2;case`hex`:return n>>>1;case`base64`:return Me(e).length;default:if(i)return r?-1:ke(e).length;t=(``+t).toLowerCase(),i=!0}}s.byteLength=x;function S(e,t,n){let r=!1;if((t===void 0||t<0)&&(t=0),t>this.length||((n===void 0||n>this.length)&&(n=this.length),n<=0)||(n>>>=0,t>>>=0,n<=t))return``;for(e||=`utf8`;;)switch(e){case`hex`:return de(this,t,n);case`utf8`:case`utf-8`:return oe(this,t,n);case`ascii`:return le(this,t,n);case`latin1`:case`binary`:return ue(this,t,n);case`base64`:return ae(this,t,n);case`ucs2`:case`ucs-2`:case`utf16le`:case`utf-16le`:return fe(this,t,n);default:if(r)throw TypeError(`Unknown encoding: `+e);e=(e+``).toLowerCase(),r=!0}}s.prototype._isBuffer=!0;function C(e,t,n){let r=e[t];e[t]=e[n],e[n]=r}s.prototype.swap16=function(){let e=this.length;if(e%2!=0)throw RangeError(`Buffer size must be a multiple of 16-bits`);for(let t=0;t<e;t+=2)C(this,t,t+1);return this},s.prototype.swap32=function(){let e=this.length;if(e%4!=0)throw RangeError(`Buffer size must be a multiple of 32-bits`);for(let t=0;t<e;t+=4)C(this,t,t+3),C(this,t+1,t+2);return this},s.prototype.swap64=function(){let e=this.length;if(e%8!=0)throw RangeError(`Buffer size must be a multiple of 64-bits`);for(let t=0;t<e;t+=8)C(this,t,t+7),C(this,t+1,t+6),C(this,t+2,t+5),C(this,t+3,t+4);return this},s.prototype.toString=function(){let e=this.length;return e===0?``:arguments.length===0?oe(this,0,e):S.apply(this,arguments)},s.prototype.toLocaleString=s.prototype.toString,s.prototype.equals=function(e){if(!s.isBuffer(e))throw TypeError(`Argument must be a Buffer`);return this===e?!0:s.compare(this,e)===0},s.prototype.inspect=function(){let t=``,n=e.INSPECT_MAX_BYTES;return t=this.toString(`hex`,0,n).replace(/(.{2})/g,`$1 `).trim(),this.length>n&&(t+=` ... `),`<Buffer `+t+`>`},r&&(s.prototype[r]=s.prototype.inspect),s.prototype.compare=function(e,t,n,r,i){if(Pe(e,Uint8Array)&&(e=s.from(e,e.offset,e.byteLength)),!s.isBuffer(e))throw TypeError(`The "target" argument must be one of type Buffer or Uint8Array. Received type `+typeof e);if(t===void 0&&(t=0),n===void 0&&(n=e?e.length:0),r===void 0&&(r=0),i===void 0&&(i=this.length),t<0||n>e.length||r<0||i>this.length)throw RangeError(`out of range index`);if(r>=i&&t>=n)return 0;if(r>=i)return-1;if(t>=n)return 1;if(t>>>=0,n>>>=0,r>>>=0,i>>>=0,this===e)return 0;let a=i-r,o=n-t,c=Math.min(a,o),l=this.slice(r,i),u=e.slice(t,n);for(let e=0;e<c;++e)if(l[e]!==u[e]){a=l[e],o=u[e];break}return a<o?-1:o<a?1:0};function w(e,t,n,r,i){if(e.length===0)return-1;if(typeof n==`string`?(r=n,n=0):n>2147483647?n=2147483647:n<-2147483648&&(n=-2147483648),n=+n,Fe(n)&&(n=i?0:e.length-1),n<0&&(n=e.length+n),n>=e.length){if(i)return-1;n=e.length-1}else if(n<0)if(i)n=0;else return-1;if(typeof t==`string`&&(t=s.from(t,r)),s.isBuffer(t))return t.length===0?-1:ee(e,t,n,r,i);if(typeof t==`number`)return t&=255,typeof Uint8Array.prototype.indexOf==`function`?i?Uint8Array.prototype.indexOf.call(e,t,n):Uint8Array.prototype.lastIndexOf.call(e,t,n):ee(e,[t],n,r,i);throw TypeError(`val must be string, number or Buffer`)}function ee(e,t,n,r,i){let a=1,o=e.length,s=t.length;if(r!==void 0&&(r=String(r).toLowerCase(),r===`ucs2`||r===`ucs-2`||r===`utf16le`||r===`utf-16le`)){if(e.length<2||t.length<2)return-1;a=2,o/=2,s/=2,n/=2}function c(e,t){return a===1?e[t]:e.readUInt16BE(t*a)}let l;if(i){let r=-1;for(l=n;l<o;l++)if(c(e,l)===c(t,r===-1?0:l-r)){if(r===-1&&(r=l),l-r+1===s)return r*a}else r!==-1&&(l-=l-r),r=-1}else for(n+s>o&&(n=o-s),l=n;l>=0;l--){let n=!0;for(let r=0;r<s;r++)if(c(e,l+r)!==c(t,r)){n=!1;break}if(n)return l}return-1}s.prototype.includes=function(e,t,n){return this.indexOf(e,t,n)!==-1},s.prototype.indexOf=function(e,t,n){return w(this,e,t,n,!0)},s.prototype.lastIndexOf=function(e,t,n){return w(this,e,t,n,!1)};function te(e,t,n,r){n=Number(n)||0;let i=e.length-n;r?(r=Number(r),r>i&&(r=i)):r=i;let a=t.length;r>a/2&&(r=a/2);let o;for(o=0;o<r;++o){let r=parseInt(t.substr(o*2,2),16);if(Fe(r))return o;e[n+o]=r}return o}function ne(e,t,n,r){return Ne(ke(t,e.length-n),e,n,r)}function T(e,t,n,r){return Ne(Ae(t),e,n,r)}function re(e,t,n,r){return Ne(Me(t),e,n,r)}function ie(e,t,n,r){return Ne(je(t,e.length-n),e,n,r)}s.prototype.write=function(e,t,n,r){if(t===void 0)r=`utf8`,n=this.length,t=0;else if(n===void 0&&typeof t==`string`)r=t,n=this.length,t=0;else if(isFinite(t))t>>>=0,isFinite(n)?(n>>>=0,r===void 0&&(r=`utf8`)):(r=n,n=void 0);else throw Error(`Buffer.write(string, encoding, offset[, length]) is no longer supported`);let i=this.length-t;if((n===void 0||n>i)&&(n=i),e.length>0&&(n<0||t<0)||t>this.length)throw RangeError(`Attempt to write outside buffer bounds`);r||=`utf8`;let a=!1;for(;;)switch(r){case`hex`:return te(this,e,t,n);case`utf8`:case`utf-8`:return ne(this,e,t,n);case`ascii`:case`latin1`:case`binary`:return T(this,e,t,n);case`base64`:return re(this,e,t,n);case`ucs2`:case`ucs-2`:case`utf16le`:case`utf-16le`:return ie(this,e,t,n);default:if(a)throw TypeError(`Unknown encoding: `+r);r=(``+r).toLowerCase(),a=!0}},s.prototype.toJSON=function(){return{type:`Buffer`,data:Array.prototype.slice.call(this._arr||this,0)}};function ae(e,n,r){return n===0&&r===e.length?t.fromByteArray(e):t.fromByteArray(e.slice(n,r))}function oe(e,t,n){n=Math.min(e.length,n);let r=[],i=t;for(;i<n;){let t=e[i],a=null,o=t>239?4:t>223?3:t>191?2:1;if(i+o<=n){let n,r,s,c;switch(o){case 1:t<128&&(a=t);break;case 2:n=e[i+1],(n&192)==128&&(c=(t&31)<<6|n&63,c>127&&(a=c));break;case 3:n=e[i+1],r=e[i+2],(n&192)==128&&(r&192)==128&&(c=(t&15)<<12|(n&63)<<6|r&63,c>2047&&(c<55296||c>57343)&&(a=c));break;case 4:n=e[i+1],r=e[i+2],s=e[i+3],(n&192)==128&&(r&192)==128&&(s&192)==128&&(c=(t&15)<<18|(n&63)<<12|(r&63)<<6|s&63,c>65535&&c<1114112&&(a=c))}}a===null?(a=65533,o=1):a>65535&&(a-=65536,r.push(a>>>10&1023|55296),a=56320|a&1023),r.push(a),i+=o}return ce(r)}var se=4096;function ce(e){let t=e.length;if(t<=se)return String.fromCharCode.apply(String,e);let n=``,r=0;for(;r<t;)n+=String.fromCharCode.apply(String,e.slice(r,r+=se));return n}function le(e,t,n){let r=``;n=Math.min(e.length,n);for(let i=t;i<n;++i)r+=String.fromCharCode(e[i]&127);return r}function ue(e,t,n){let r=``;n=Math.min(e.length,n);for(let i=t;i<n;++i)r+=String.fromCharCode(e[i]);return r}function de(e,t,n){let r=e.length;(!t||t<0)&&(t=0),(!n||n<0||n>r)&&(n=r);let i=``;for(let r=t;r<n;++r)i+=Ie[e[r]];return i}function fe(e,t,n){let r=e.slice(t,n),i=``;for(let e=0;e<r.length-1;e+=2)i+=String.fromCharCode(r[e]+r[e+1]*256);return i}s.prototype.slice=function(e,t){let n=this.length;e=~~e,t=t===void 0?n:~~t,e<0?(e+=n,e<0&&(e=0)):e>n&&(e=n),t<0?(t+=n,t<0&&(t=0)):t>n&&(t=n),t<e&&(t=e);let r=this.subarray(e,t);return Object.setPrototypeOf(r,s.prototype),r};function pe(e,t,n){if(e%1!=0||e<0)throw RangeError(`offset is not uint`);if(e+t>n)throw RangeError(`Trying to access beyond buffer length`)}s.prototype.readUintLE=s.prototype.readUIntLE=function(e,t,n){e>>>=0,t>>>=0,n||pe(e,t,this.length);let r=this[e],i=1,a=0;for(;++a<t&&(i*=256);)r+=this[e+a]*i;return r},s.prototype.readUintBE=s.prototype.readUIntBE=function(e,t,n){e>>>=0,t>>>=0,n||pe(e,t,this.length);let r=this[e+--t],i=1;for(;t>0&&(i*=256);)r+=this[e+--t]*i;return r},s.prototype.readUint8=s.prototype.readUInt8=function(e,t){return e>>>=0,t||pe(e,1,this.length),this[e]},s.prototype.readUint16LE=s.prototype.readUInt16LE=function(e,t){return e>>>=0,t||pe(e,2,this.length),this[e]|this[e+1]<<8},s.prototype.readUint16BE=s.prototype.readUInt16BE=function(e,t){return e>>>=0,t||pe(e,2,this.length),this[e]<<8|this[e+1]},s.prototype.readUint32LE=s.prototype.readUInt32LE=function(e,t){return e>>>=0,t||pe(e,4,this.length),(this[e]|this[e+1]<<8|this[e+2]<<16)+this[e+3]*16777216},s.prototype.readUint32BE=s.prototype.readUInt32BE=function(e,t){return e>>>=0,t||pe(e,4,this.length),this[e]*16777216+(this[e+1]<<16|this[e+2]<<8|this[e+3])},s.prototype.readBigUInt64LE=Le(function(e){e>>>=0,Te(e,`offset`);let t=this[e],n=this[e+7];(t===void 0||n===void 0)&&Ee(e,this.length-8);let r=t+this[++e]*2**8+this[++e]*2**16+this[++e]*2**24,i=this[++e]+this[++e]*2**8+this[++e]*2**16+n*2**24;return BigInt(r)+(BigInt(i)<<BigInt(32))}),s.prototype.readBigUInt64BE=Le(function(e){e>>>=0,Te(e,`offset`);let t=this[e],n=this[e+7];(t===void 0||n===void 0)&&Ee(e,this.length-8);let r=t*2**24+this[++e]*2**16+this[++e]*2**8+this[++e],i=this[++e]*2**24+this[++e]*2**16+this[++e]*2**8+n;return(BigInt(r)<<BigInt(32))+BigInt(i)}),s.prototype.readIntLE=function(e,t,n){e>>>=0,t>>>=0,n||pe(e,t,this.length);let r=this[e],i=1,a=0;for(;++a<t&&(i*=256);)r+=this[e+a]*i;return i*=128,r>=i&&(r-=2**(8*t)),r},s.prototype.readIntBE=function(e,t,n){e>>>=0,t>>>=0,n||pe(e,t,this.length);let r=t,i=1,a=this[e+--r];for(;r>0&&(i*=256);)a+=this[e+--r]*i;return i*=128,a>=i&&(a-=2**(8*t)),a},s.prototype.readInt8=function(e,t){return e>>>=0,t||pe(e,1,this.length),this[e]&128?(255-this[e]+1)*-1:this[e]},s.prototype.readInt16LE=function(e,t){e>>>=0,t||pe(e,2,this.length);let n=this[e]|this[e+1]<<8;return n&32768?n|4294901760:n},s.prototype.readInt16BE=function(e,t){e>>>=0,t||pe(e,2,this.length);let n=this[e+1]|this[e]<<8;return n&32768?n|4294901760:n},s.prototype.readInt32LE=function(e,t){return e>>>=0,t||pe(e,4,this.length),this[e]|this[e+1]<<8|this[e+2]<<16|this[e+3]<<24},s.prototype.readInt32BE=function(e,t){return e>>>=0,t||pe(e,4,this.length),this[e]<<24|this[e+1]<<16|this[e+2]<<8|this[e+3]},s.prototype.readBigInt64LE=Le(function(e){e>>>=0,Te(e,`offset`);let t=this[e],n=this[e+7];(t===void 0||n===void 0)&&Ee(e,this.length-8);let r=this[e+4]+this[e+5]*2**8+this[e+6]*2**16+(n<<24);return(BigInt(r)<<BigInt(32))+BigInt(t+this[++e]*2**8+this[++e]*2**16+this[++e]*2**24)}),s.prototype.readBigInt64BE=Le(function(e){e>>>=0,Te(e,`offset`);let t=this[e],n=this[e+7];(t===void 0||n===void 0)&&Ee(e,this.length-8);let r=(t<<24)+this[++e]*2**16+this[++e]*2**8+this[++e];return(BigInt(r)<<BigInt(32))+BigInt(this[++e]*2**24+this[++e]*2**16+this[++e]*2**8+n)}),s.prototype.readFloatLE=function(e,t){return e>>>=0,t||pe(e,4,this.length),n.read(this,e,!0,23,4)},s.prototype.readFloatBE=function(e,t){return e>>>=0,t||pe(e,4,this.length),n.read(this,e,!1,23,4)},s.prototype.readDoubleLE=function(e,t){return e>>>=0,t||pe(e,8,this.length),n.read(this,e,!0,52,8)},s.prototype.readDoubleBE=function(e,t){return e>>>=0,t||pe(e,8,this.length),n.read(this,e,!1,52,8)};function me(e,t,n,r,i,a){if(!s.isBuffer(e))throw TypeError(`"buffer" argument must be a Buffer instance`);if(t>i||t<a)throw RangeError(`"value" argument is out of bounds`);if(n+r>e.length)throw RangeError(`Index out of range`)}s.prototype.writeUintLE=s.prototype.writeUIntLE=function(e,t,n,r){if(e=+e,t>>>=0,n>>>=0,!r){let r=2**(8*n)-1;me(this,e,t,n,r,0)}let i=1,a=0;for(this[t]=e&255;++a<n&&(i*=256);)this[t+a]=e/i&255;return t+n},s.prototype.writeUintBE=s.prototype.writeUIntBE=function(e,t,n,r){if(e=+e,t>>>=0,n>>>=0,!r){let r=2**(8*n)-1;me(this,e,t,n,r,0)}let i=n-1,a=1;for(this[t+i]=e&255;--i>=0&&(a*=256);)this[t+i]=e/a&255;return t+n},s.prototype.writeUint8=s.prototype.writeUInt8=function(e,t,n){return e=+e,t>>>=0,n||me(this,e,t,1,255,0),this[t]=e&255,t+1},s.prototype.writeUint16LE=s.prototype.writeUInt16LE=function(e,t,n){return e=+e,t>>>=0,n||me(this,e,t,2,65535,0),this[t]=e&255,this[t+1]=e>>>8,t+2},s.prototype.writeUint16BE=s.prototype.writeUInt16BE=function(e,t,n){return e=+e,t>>>=0,n||me(this,e,t,2,65535,0),this[t]=e>>>8,this[t+1]=e&255,t+2},s.prototype.writeUint32LE=s.prototype.writeUInt32LE=function(e,t,n){return e=+e,t>>>=0,n||me(this,e,t,4,4294967295,0),this[t+3]=e>>>24,this[t+2]=e>>>16,this[t+1]=e>>>8,this[t]=e&255,t+4},s.prototype.writeUint32BE=s.prototype.writeUInt32BE=function(e,t,n){return e=+e,t>>>=0,n||me(this,e,t,4,4294967295,0),this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=e&255,t+4};function he(e,t,n,r,i){we(t,r,i,e,n,7);let a=Number(t&BigInt(4294967295));e[n++]=a,a>>=8,e[n++]=a,a>>=8,e[n++]=a,a>>=8,e[n++]=a;let o=Number(t>>BigInt(32)&BigInt(4294967295));return e[n++]=o,o>>=8,e[n++]=o,o>>=8,e[n++]=o,o>>=8,e[n++]=o,n}function ge(e,t,n,r,i){we(t,r,i,e,n,7);let a=Number(t&BigInt(4294967295));e[n+7]=a,a>>=8,e[n+6]=a,a>>=8,e[n+5]=a,a>>=8,e[n+4]=a;let o=Number(t>>BigInt(32)&BigInt(4294967295));return e[n+3]=o,o>>=8,e[n+2]=o,o>>=8,e[n+1]=o,o>>=8,e[n]=o,n+8}s.prototype.writeBigUInt64LE=Le(function(e,t=0){return he(this,e,t,BigInt(0),BigInt(`0xffffffffffffffff`))}),s.prototype.writeBigUInt64BE=Le(function(e,t=0){return ge(this,e,t,BigInt(0),BigInt(`0xffffffffffffffff`))}),s.prototype.writeIntLE=function(e,t,n,r){if(e=+e,t>>>=0,!r){let r=2**(8*n-1);me(this,e,t,n,r-1,-r)}let i=0,a=1,o=0;for(this[t]=e&255;++i<n&&(a*=256);)e<0&&o===0&&this[t+i-1]!==0&&(o=1),this[t+i]=(e/a>>0)-o&255;return t+n},s.prototype.writeIntBE=function(e,t,n,r){if(e=+e,t>>>=0,!r){let r=2**(8*n-1);me(this,e,t,n,r-1,-r)}let i=n-1,a=1,o=0;for(this[t+i]=e&255;--i>=0&&(a*=256);)e<0&&o===0&&this[t+i+1]!==0&&(o=1),this[t+i]=(e/a>>0)-o&255;return t+n},s.prototype.writeInt8=function(e,t,n){return e=+e,t>>>=0,n||me(this,e,t,1,127,-128),e<0&&(e=255+e+1),this[t]=e&255,t+1},s.prototype.writeInt16LE=function(e,t,n){return e=+e,t>>>=0,n||me(this,e,t,2,32767,-32768),this[t]=e&255,this[t+1]=e>>>8,t+2},s.prototype.writeInt16BE=function(e,t,n){return e=+e,t>>>=0,n||me(this,e,t,2,32767,-32768),this[t]=e>>>8,this[t+1]=e&255,t+2},s.prototype.writeInt32LE=function(e,t,n){return e=+e,t>>>=0,n||me(this,e,t,4,2147483647,-2147483648),this[t]=e&255,this[t+1]=e>>>8,this[t+2]=e>>>16,this[t+3]=e>>>24,t+4},s.prototype.writeInt32BE=function(e,t,n){return e=+e,t>>>=0,n||me(this,e,t,4,2147483647,-2147483648),e<0&&(e=4294967295+e+1),this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=e&255,t+4},s.prototype.writeBigInt64LE=Le(function(e,t=0){return he(this,e,t,-BigInt(`0x8000000000000000`),BigInt(`0x7fffffffffffffff`))}),s.prototype.writeBigInt64BE=Le(function(e,t=0){return ge(this,e,t,-BigInt(`0x8000000000000000`),BigInt(`0x7fffffffffffffff`))});function _e(e,t,n,r,i,a){if(n+r>e.length||n<0)throw RangeError(`Index out of range`)}function ve(e,t,r,i,a){return t=+t,r>>>=0,a||_e(e,t,r,4,34028234663852886e22,-34028234663852886e22),n.write(e,t,r,i,23,4),r+4}s.prototype.writeFloatLE=function(e,t,n){return ve(this,e,t,!0,n)},s.prototype.writeFloatBE=function(e,t,n){return ve(this,e,t,!1,n)};function ye(e,t,r,i,a){return t=+t,r>>>=0,a||_e(e,t,r,8,17976931348623157e292,-17976931348623157e292),n.write(e,t,r,i,52,8),r+8}s.prototype.writeDoubleLE=function(e,t,n){return ye(this,e,t,!0,n)},s.prototype.writeDoubleBE=function(e,t,n){return ye(this,e,t,!1,n)},s.prototype.copy=function(e,t,n,r){if(!s.isBuffer(e))throw TypeError(`argument should be a Buffer`);if(n||=0,!r&&r!==0&&(r=this.length),t>=e.length&&(t=e.length),t||=0,r>0&&r<n&&(r=n),r===n||e.length===0||this.length===0)return 0;if(t<0)throw RangeError(`targetStart out of bounds`);if(n<0||n>=this.length)throw RangeError(`Index out of range`);if(r<0)throw RangeError(`sourceEnd out of bounds`);r>this.length&&(r=this.length),e.length-t<r-n&&(r=e.length-t+n);let i=r-n;return this===e&&typeof Uint8Array.prototype.copyWithin==`function`?this.copyWithin(t,n,r):Uint8Array.prototype.set.call(e,this.subarray(n,r),t),i},s.prototype.fill=function(e,t,n,r){if(typeof e==`string`){if(typeof t==`string`?(r=t,t=0,n=this.length):typeof n==`string`&&(r=n,n=this.length),r!==void 0&&typeof r!=`string`)throw TypeError(`encoding must be a string`);if(typeof r==`string`&&!s.isEncoding(r))throw TypeError(`Unknown encoding: `+r);if(e.length===1){let t=e.charCodeAt(0);(r===`utf8`&&t<128||r===`latin1`)&&(e=t)}}else typeof e==`number`?e&=255:typeof e==`boolean`&&(e=Number(e));if(t<0||this.length<t||this.length<n)throw RangeError(`Out of range index`);if(n<=t)return this;t>>>=0,n=n===void 0?this.length:n>>>0,e||=0;let i;if(typeof e==`number`)for(i=t;i<n;++i)this[i]=e;else{let a=s.isBuffer(e)?e:s.from(e,r),o=a.length;if(o===0)throw TypeError(`The value "`+e+`" is invalid for argument "value"`);for(i=0;i<n-t;++i)this[i+t]=a[i%o]}return this};var be={};function xe(e,t,n){be[e]=class extends n{constructor(){super(),Object.defineProperty(this,`message`,{value:t.apply(this,arguments),writable:!0,configurable:!0}),this.name=`${this.name} [${e}]`,this.stack,delete this.name}get code(){return e}set code(e){Object.defineProperty(this,`code`,{configurable:!0,enumerable:!0,value:e,writable:!0})}toString(){return`${this.name} [${e}]: ${this.message}`}}}xe(`ERR_BUFFER_OUT_OF_BOUNDS`,function(e){return e?`${e} is outside of buffer bounds`:`Attempt to access memory outside buffer bounds`},RangeError),xe(`ERR_INVALID_ARG_TYPE`,function(e,t){return`The "${e}" argument must be of type number. Received type ${typeof t}`},TypeError),xe(`ERR_OUT_OF_RANGE`,function(e,t,n){let r=`The value of "${e}" is out of range.`,i=n;return Number.isInteger(n)&&Math.abs(n)>2**32?i=Se(String(n)):typeof n==`bigint`&&(i=String(n),(n>BigInt(2)**BigInt(32)||n<-(BigInt(2)**BigInt(32)))&&(i=Se(i)),i+=`n`),r+=` It must be ${t}. Received ${i}`,r},RangeError);function Se(e){let t=``,n=e.length,r=e[0]===`-`?1:0;for(;n>=r+4;n-=3)t=`_${e.slice(n-3,n)}${t}`;return`${e.slice(0,n)}${t}`}function Ce(e,t,n){Te(t,`offset`),(e[t]===void 0||e[t+n]===void 0)&&Ee(t,e.length-(n+1))}function we(e,t,n,r,i,a){if(e>n||e<t){let r=typeof t==`bigint`?`n`:``,i;throw i=a>3?t===0||t===BigInt(0)?`>= 0${r} and < 2${r} ** ${(a+1)*8}${r}`:`>= -(2${r} ** ${(a+1)*8-1}${r}) and < 2 ** ${(a+1)*8-1}${r}`:`>= ${t}${r} and <= ${n}${r}`,new be.ERR_OUT_OF_RANGE(`value`,i,e)}Ce(r,i,a)}function Te(e,t){if(typeof e!=`number`)throw new be.ERR_INVALID_ARG_TYPE(t,`number`,e)}function Ee(e,t,n){throw Math.floor(e)===e?t<0?new be.ERR_BUFFER_OUT_OF_BOUNDS:new be.ERR_OUT_OF_RANGE(n||`offset`,`>= ${n?1:0} and <= ${t}`,e):(Te(e,n),new be.ERR_OUT_OF_RANGE(n||`offset`,`an integer`,e))}var De=/[^+/0-9A-Za-z-_]/g;function Oe(e){if(e=e.split(`=`)[0],e=e.trim().replace(De,``),e.length<2)return``;for(;e.length%4!=0;)e+=`=`;return e}function ke(e,t){t||=1/0;let n,r=e.length,i=null,a=[];for(let o=0;o<r;++o){if(n=e.charCodeAt(o),n>55295&&n<57344){if(!i){if(n>56319){(t-=3)>-1&&a.push(239,191,189);continue}else if(o+1===r){(t-=3)>-1&&a.push(239,191,189);continue}i=n;continue}if(n<56320){(t-=3)>-1&&a.push(239,191,189),i=n;continue}n=(i-55296<<10|n-56320)+65536}else i&&(t-=3)>-1&&a.push(239,191,189);if(i=null,n<128){if(--t<0)break;a.push(n)}else if(n<2048){if((t-=2)<0)break;a.push(n>>6|192,n&63|128)}else if(n<65536){if((t-=3)<0)break;a.push(n>>12|224,n>>6&63|128,n&63|128)}else if(n<1114112){if((t-=4)<0)break;a.push(n>>18|240,n>>12&63|128,n>>6&63|128,n&63|128)}else throw Error(`Invalid code point`)}return a}function Ae(e){let t=[];for(let n=0;n<e.length;++n)t.push(e.charCodeAt(n)&255);return t}function je(e,t){let n,r,i,a=[];for(let o=0;o<e.length&&!((t-=2)<0);++o)n=e.charCodeAt(o),r=n>>8,i=n%256,a.push(i),a.push(r);return a}function Me(e){return t.toByteArray(Oe(e))}function Ne(e,t,n,r){let i;for(i=0;i<r&&!(i+n>=t.length||i>=e.length);++i)t[i+n]=e[i];return i}function Pe(e,t){return e instanceof t||e!=null&&e.constructor!=null&&e.constructor.name!=null&&e.constructor.name===t.name}function Fe(e){return e!==e}var Ie=(function(){let e=`0123456789abcdef`,t=Array(256);for(let n=0;n<16;++n){let r=n*16;for(let i=0;i<16;++i)t[r+i]=e[n]+e[i]}return t})();function Le(e){return typeof BigInt>`u`?Re:e}function Re(){throw Error(`BigInt not supported`)}}));function p(e){let t=Object.create(null);for(let n of e.split(`,`))t[n]=1;return e=>e in t}var m={},h=[],g=()=>{},_=()=>!1,v=e=>e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&(e.charCodeAt(2)>122||e.charCodeAt(2)<97),y=e=>e.startsWith(`onUpdate:`),b=Object.assign,x=(e,t)=>{let n=e.indexOf(t);n>-1&&e.splice(n,1)},S=Object.prototype.hasOwnProperty,C=(e,t)=>S.call(e,t),w=Array.isArray,ee=e=>ce(e)===`[object Map]`,te=e=>ce(e)===`[object Set]`,ne=e=>ce(e)===`[object Date]`,T=e=>typeof e==`function`,re=e=>typeof e==`string`,ie=e=>typeof e==`symbol`,ae=e=>typeof e==`object`&&!!e,oe=e=>(ae(e)||T(e))&&T(e.then)&&T(e.catch),se=Object.prototype.toString,ce=e=>se.call(e),le=e=>ce(e).slice(8,-1),ue=e=>ce(e)===`[object Object]`,de=e=>re(e)&&e!==`NaN`&&e[0]!==`-`&&``+parseInt(e,10)===e,fe=p(`,key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted`),pe=e=>{let t=Object.create(null);return(n=>t[n]||(t[n]=e(n)))},me=/-\w/g,he=pe(e=>e.replace(me,e=>e.slice(1).toUpperCase())),ge=/\B([A-Z])/g,_e=pe(e=>e.replace(ge,`-$1`).toLowerCase()),ve=pe(e=>e.charAt(0).toUpperCase()+e.slice(1)),ye=pe(e=>e?`on${ve(e)}`:``),be=(e,t)=>!Object.is(e,t),xe=(e,...t)=>{for(let n=0;n<e.length;n++)e[n](...t)},Se=(e,t,n,r=!1)=>{Object.defineProperty(e,t,{configurable:!0,enumerable:!1,writable:r,value:n})},Ce=e=>{let t=parseFloat(e);return isNaN(t)?e:t},we=e=>{let t=re(e)?Number(e):NaN;return isNaN(t)?e:t},Te,Ee=()=>Te||=typeof globalThis<`u`?globalThis:typeof self<`u`?self:typeof window<`u`?window:typeof globalThis<`u`?globalThis:{};function De(e){if(w(e)){let t={};for(let n=0;n<e.length;n++){let r=e[n],i=re(r)?je(r):De(r);if(i)for(let e in i)t[e]=i[e]}return t}else if(re(e)||ae(e))return e}var Oe=/;(?![^(]*\))/g,ke=/:([^]+)/,Ae=/\/\*[^]*?\*\//g;function je(e){let t={};return e.replace(Ae,``).split(Oe).forEach(e=>{if(e){let n=e.split(ke);n.length>1&&(t[n[0].trim()]=n[1].trim())}}),t}function Me(e){let t=``;if(re(e))t=e;else if(w(e))for(let n=0;n<e.length;n++){let r=Me(e[n]);r&&(t+=r+` `)}else if(ae(e))for(let n in e)e[n]&&(t+=n+` `);return t.trim()}function Ne(e){if(!e)return null;let{class:t,style:n}=e;return t&&!re(t)&&(e.class=Me(t)),n&&(e.style=De(n)),e}var Pe=`itemscope,allowfullscreen,formnovalidate,ismap,nomodule,novalidate,readonly`,Fe=p(Pe);Pe+``;function Ie(e){return!!e||e===``}function Le(e,t){if(e.length!==t.length)return!1;let n=!0;for(let r=0;n&&r<e.length;r++)n=Re(e[r],t[r]);return n}function Re(e,t){if(e===t)return!0;let n=ne(e),r=ne(t);if(n||r)return n&&r?e.getTime()===t.getTime():!1;if(n=ie(e),r=ie(t),n||r)return e===t;if(n=w(e),r=w(t),n||r)return n&&r?Le(e,t):!1;if(n=ae(e),r=ae(t),n||r){if(!n||!r||Object.keys(e).length!==Object.keys(t).length)return!1;for(let n in e){let r=e.hasOwnProperty(n),i=t.hasOwnProperty(n);if(r&&!i||!r&&i||!Re(e[n],t[n]))return!1}}return String(e)===String(t)}function ze(e,t){return e.findIndex(e=>Re(e,t))}var Be=e=>!!(e&&e.__v_isRef===!0),E=e=>re(e)?e:e==null?``:w(e)||ae(e)&&(e.toString===se||!T(e.toString))?Be(e)?E(e.value):JSON.stringify(e,Ve,2):String(e),Ve=(e,t)=>Be(t)?Ve(e,t.value):ee(t)?{[`Map(${t.size})`]:[...t.entries()].reduce((e,[t,n],r)=>(e[He(t,r)+` =>`]=n,e),{})}:te(t)?{[`Set(${t.size})`]:[...t.values()].map(e=>He(e))}:ie(t)?He(t):ae(t)&&!w(t)&&!ue(t)?String(t):t,He=(e,t=``)=>ie(e)?`Symbol(${e.description??t})`:e;function Ue(e){return e==null?`initial`:typeof e==`string`?e===``?` `:e:String(e)}var We,Ge=class{constructor(e=!1){this.detached=e,this._active=!0,this._on=0,this.effects=[],this.cleanups=[],this._isPaused=!1,this.parent=We,!e&&We&&(this.index=(We.scopes||=[]).push(this)-1)}get active(){return this._active}pause(){if(this._active){this._isPaused=!0;let e,t;if(this.scopes)for(e=0,t=this.scopes.length;e<t;e++)this.scopes[e].pause();for(e=0,t=this.effects.length;e<t;e++)this.effects[e].pause()}}resume(){if(this._active&&this._isPaused){this._isPaused=!1;let e,t;if(this.scopes)for(e=0,t=this.scopes.length;e<t;e++)this.scopes[e].resume();for(e=0,t=this.effects.length;e<t;e++)this.effects[e].resume()}}run(e){if(this._active){let t=We;try{return We=this,e()}finally{We=t}}}on(){++this._on===1&&(this.prevScope=We,We=this)}off(){this._on>0&&--this._on===0&&(We=this.prevScope,this.prevScope=void 0)}stop(e){if(this._active){this._active=!1;let t,n;for(t=0,n=this.effects.length;t<n;t++)this.effects[t].stop();for(this.effects.length=0,t=0,n=this.cleanups.length;t<n;t++)this.cleanups[t]();if(this.cleanups.length=0,this.scopes){for(t=0,n=this.scopes.length;t<n;t++)this.scopes[t].stop(!0);this.scopes.length=0}if(!this.detached&&this.parent&&!e){let e=this.parent.scopes.pop();e&&e!==this&&(this.parent.scopes[this.index]=e,e.index=this.index)}this.parent=void 0}}};function Ke(e){return new Ge(e)}function qe(){return We}function Je(e,t=!1){We&&We.cleanups.push(e)}var Ye,Xe=new WeakSet,Ze=class{constructor(e){this.fn=e,this.deps=void 0,this.depsTail=void 0,this.flags=5,this.next=void 0,this.cleanup=void 0,this.scheduler=void 0,We&&We.active&&We.effects.push(this)}pause(){this.flags|=64}resume(){this.flags&64&&(this.flags&=-65,Xe.has(this)&&(Xe.delete(this),this.trigger()))}notify(){this.flags&2&&!(this.flags&32)||this.flags&8||tt(this)}run(){if(!(this.flags&1))return this.fn();this.flags|=2,mt(this),it(this);let e=Ye,t=ut;Ye=this,ut=!0;try{return this.fn()}finally{at(this),Ye=e,ut=t,this.flags&=-3}}stop(){if(this.flags&1){for(let e=this.deps;e;e=e.nextDep)ct(e);this.deps=this.depsTail=void 0,mt(this),this.onStop&&this.onStop(),this.flags&=-2}}trigger(){this.flags&64?Xe.add(this):this.scheduler?this.scheduler():this.runIfDirty()}runIfDirty(){ot(this)&&this.run()}get dirty(){return ot(this)}},Qe=0,$e,et;function tt(e,t=!1){if(e.flags|=8,t){e.next=et,et=e;return}e.next=$e,$e=e}function nt(){Qe++}function rt(){if(--Qe>0)return;if(et){let e=et;for(et=void 0;e;){let t=e.next;e.next=void 0,e.flags&=-9,e=t}}let e;for(;$e;){let t=$e;for($e=void 0;t;){let n=t.next;if(t.next=void 0,t.flags&=-9,t.flags&1)try{t.trigger()}catch(t){e||=t}t=n}}if(e)throw e}function it(e){for(let t=e.deps;t;t=t.nextDep)t.version=-1,t.prevActiveLink=t.dep.activeLink,t.dep.activeLink=t}function at(e){let t,n=e.depsTail,r=n;for(;r;){let e=r.prevDep;r.version===-1?(r===n&&(n=e),ct(r),lt(r)):t=r,r.dep.activeLink=r.prevActiveLink,r.prevActiveLink=void 0,r=e}e.deps=t,e.depsTail=n}function ot(e){for(let t=e.deps;t;t=t.nextDep)if(t.dep.version!==t.version||t.dep.computed&&(st(t.dep.computed)||t.dep.version!==t.version))return!0;return!!e._dirty}function st(e){if(e.flags&4&&!(e.flags&16)||(e.flags&=-17,e.globalVersion===ht)||(e.globalVersion=ht,!e.isSSR&&e.flags&128&&(!e.deps&&!e._dirty||!ot(e))))return;e.flags|=2;let t=e.dep,n=Ye,r=ut;Ye=e,ut=!0;try{it(e);let n=e.fn(e._value);(t.version===0||be(n,e._value))&&(e.flags|=128,e._value=n,t.version++)}catch(e){throw t.version++,e}finally{Ye=n,ut=r,at(e),e.flags&=-3}}function ct(e,t=!1){let{dep:n,prevSub:r,nextSub:i}=e;if(r&&(r.nextSub=i,e.prevSub=void 0),i&&(i.prevSub=r,e.nextSub=void 0),n.subs===e&&(n.subs=r,!r&&n.computed)){n.computed.flags&=-5;for(let e=n.computed.deps;e;e=e.nextDep)ct(e,!0)}!t&&!--n.sc&&n.map&&n.map.delete(n.key)}function lt(e){let{prevDep:t,nextDep:n}=e;t&&(t.nextDep=n,e.prevDep=void 0),n&&(n.prevDep=t,e.nextDep=void 0)}var ut=!0,dt=[];function ft(){dt.push(ut),ut=!1}function pt(){let e=dt.pop();ut=e===void 0?!0:e}function mt(e){let{cleanup:t}=e;if(e.cleanup=void 0,t){let e=Ye;Ye=void 0;try{t()}finally{Ye=e}}}var ht=0,gt=class{constructor(e,t){this.sub=e,this.dep=t,this.version=t.version,this.nextDep=this.prevDep=this.nextSub=this.prevSub=this.prevActiveLink=void 0}},_t=class{constructor(e){this.computed=e,this.version=0,this.activeLink=void 0,this.subs=void 0,this.map=void 0,this.key=void 0,this.sc=0,this.__v_skip=!0}track(e){if(!Ye||!ut||Ye===this.computed)return;let t=this.activeLink;if(t===void 0||t.sub!==Ye)t=this.activeLink=new gt(Ye,this),Ye.deps?(t.prevDep=Ye.depsTail,Ye.depsTail.nextDep=t,Ye.depsTail=t):Ye.deps=Ye.depsTail=t,vt(t);else if(t.version===-1&&(t.version=this.version,t.nextDep)){let e=t.nextDep;e.prevDep=t.prevDep,t.prevDep&&(t.prevDep.nextDep=e),t.prevDep=Ye.depsTail,t.nextDep=void 0,Ye.depsTail.nextDep=t,Ye.depsTail=t,Ye.deps===t&&(Ye.deps=e)}return t}trigger(e){this.version++,ht++,this.notify(e)}notify(e){nt();try{for(let e=this.subs;e;e=e.prevSub)e.sub.notify()&&e.sub.dep.notify()}finally{rt()}}};function vt(e){if(e.dep.sc++,e.sub.flags&4){let t=e.dep.computed;if(t&&!e.dep.subs){t.flags|=20;for(let e=t.deps;e;e=e.nextDep)vt(e)}let n=e.dep.subs;n!==e&&(e.prevSub=n,n&&(n.nextSub=e)),e.dep.subs=e}}var yt=new WeakMap,bt=Symbol(``),xt=Symbol(``),St=Symbol(``);function Ct(e,t,n){if(ut&&Ye){let t=yt.get(e);t||yt.set(e,t=new Map);let r=t.get(n);r||(t.set(n,r=new _t),r.map=t,r.key=n),r.track()}}function wt(e,t,n,r,i,a){let o=yt.get(e);if(!o){ht++;return}let s=e=>{e&&e.trigger()};if(nt(),t===`clear`)o.forEach(s);else{let i=w(e),a=i&&de(n);if(i&&n===`length`){let e=Number(r);o.forEach((t,n)=>{(n===`length`||n===St||!ie(n)&&n>=e)&&s(t)})}else switch((n!==void 0||o.has(void 0))&&s(o.get(n)),a&&s(o.get(St)),t){case`add`:i?a&&s(o.get(`length`)):(s(o.get(bt)),ee(e)&&s(o.get(xt)));break;case`delete`:i||(s(o.get(bt)),ee(e)&&s(o.get(xt)));break;case`set`:ee(e)&&s(o.get(bt));break}}rt()}function eee(e,t){let n=yt.get(e);return n&&n.get(t)}function Tt(e){let t=Xt(e);return t===e?t:(Ct(t,`iterate`,St),Jt(e)?t:t.map(Qt))}function Et(e){return Ct(e=Xt(e),`iterate`,St),e}function Dt(e,t){return qt(e)?$t(Kt(e)?Qt(t):t):Qt(t)}var tee={__proto__:null,[Symbol.iterator](){return Ot(this,Symbol.iterator,e=>Dt(this,e))},concat(...e){return Tt(this).concat(...e.map(e=>w(e)?Tt(e):e))},entries(){return Ot(this,`entries`,e=>(e[1]=Dt(this,e[1]),e))},every(e,t){return kt(this,`every`,e,t,void 0,arguments)},filter(e,t){return kt(this,`filter`,e,t,e=>e.map(e=>Dt(this,e)),arguments)},find(e,t){return kt(this,`find`,e,t,e=>Dt(this,e),arguments)},findIndex(e,t){return kt(this,`findIndex`,e,t,void 0,arguments)},findLast(e,t){return kt(this,`findLast`,e,t,e=>Dt(this,e),arguments)},findLastIndex(e,t){return kt(this,`findLastIndex`,e,t,void 0,arguments)},forEach(e,t){return kt(this,`forEach`,e,t,void 0,arguments)},includes(...e){return At(this,`includes`,e)},indexOf(...e){return At(this,`indexOf`,e)},join(e){return Tt(this).join(e)},lastIndexOf(...e){return At(this,`lastIndexOf`,e)},map(e,t){return kt(this,`map`,e,t,void 0,arguments)},pop(){return jt(this,`pop`)},push(...e){return jt(this,`push`,e)},reduce(e,...t){return ree(this,`reduce`,e,t)},reduceRight(e,...t){return ree(this,`reduceRight`,e,t)},shift(){return jt(this,`shift`)},some(e,t){return kt(this,`some`,e,t,void 0,arguments)},splice(...e){return jt(this,`splice`,e)},toReversed(){return Tt(this).toReversed()},toSorted(e){return Tt(this).toSorted(e)},toSpliced(...e){return Tt(this).toSpliced(...e)},unshift(...e){return jt(this,`unshift`,e)},values(){return Ot(this,`values`,e=>Dt(this,e))}};function Ot(e,t,n){let r=Et(e),i=r[t]();return r!==e&&!Jt(e)&&(i._next=i.next,i.next=()=>{let e=i._next();return e.done||(e.value=n(e.value)),e}),i}var nee=Array.prototype;function kt(e,t,n,r,i,a){let o=Et(e),s=o!==e&&!Jt(e),c=o[t];if(c!==nee[t]){let t=c.apply(e,a);return s?Qt(t):t}let l=n;o!==e&&(s?l=function(t,r){return n.call(this,Dt(e,t),r,e)}:n.length>2&&(l=function(t,r){return n.call(this,t,r,e)}));let u=c.call(o,l,r);return s&&i?i(u):u}function ree(e,t,n,r){let i=Et(e),a=n;return i!==e&&(Jt(e)?n.length>3&&(a=function(t,r,i){return n.call(this,t,r,i,e)}):a=function(t,r,i){return n.call(this,t,Dt(e,r),i,e)}),i[t](a,...r)}function At(e,t,n){let r=Xt(e);Ct(r,`iterate`,St);let i=r[t](...n);return(i===-1||i===!1)&&Yt(n[0])?(n[0]=Xt(n[0]),r[t](...n)):i}function jt(e,t,n=[]){ft(),nt();let r=Xt(e)[t].apply(e,n);return rt(),pt(),r}var iee=p(`__proto__,__v_isRef,__isVue`),Mt=new Set(Object.getOwnPropertyNames(Symbol).filter(e=>e!==`arguments`&&e!==`caller`).map(e=>Symbol[e]).filter(ie));function aee(e){ie(e)||(e=String(e));let t=Xt(this);return Ct(t,`has`,e),t.hasOwnProperty(e)}var Nt=class{constructor(e=!1,t=!1){this._isReadonly=e,this._isShallow=t}get(e,t,n){if(t===`__v_skip`)return e.__v_skip;let r=this._isReadonly,i=this._isShallow;if(t===`__v_isReactive`)return!r;if(t===`__v_isReadonly`)return r;if(t===`__v_isShallow`)return i;if(t===`__v_raw`)return n===(r?i?Vt:Bt:i?_ee:gee).get(e)||Object.getPrototypeOf(e)===Object.getPrototypeOf(n)?e:void 0;let a=w(e);if(!r){let e;if(a&&(e=tee[t]))return e;if(t===`hasOwnProperty`)return aee}let o=Reflect.get(e,t,en(e)?e:n);if((ie(t)?Mt.has(t):iee(t))||(r||Ct(e,`get`,t),i))return o;if(en(o)){let e=a&&de(t)?o:o.value;return r&&ae(e)?Wt(e):e}return ae(o)?r?Wt(o):Ht(o):o}},Pt=class extends Nt{constructor(e=!1){super(!1,e)}set(e,t,n,r){let i=e[t],a=w(e)&&de(t);if(!this._isShallow){let e=qt(i);if(!Jt(n)&&!qt(n)&&(i=Xt(i),n=Xt(n)),!a&&en(i)&&!en(n))return e||(i.value=n),!0}let o=a?Number(t)<e.length:C(e,t),s=Reflect.set(e,t,n,en(e)?e:r);return e===Xt(r)&&(o?be(n,i)&&wt(e,`set`,t,n,i):wt(e,`add`,t,n)),s}deleteProperty(e,t){let n=C(e,t),r=e[t],i=Reflect.deleteProperty(e,t);return i&&n&&wt(e,`delete`,t,void 0,r),i}has(e,t){let n=Reflect.has(e,t);return(!ie(t)||!Mt.has(t))&&Ct(e,`has`,t),n}ownKeys(e){return Ct(e,`iterate`,w(e)?`length`:bt),Reflect.ownKeys(e)}},Ft=class extends Nt{constructor(e=!1){super(!0,e)}set(e,t){return!0}deleteProperty(e,t){return!0}},oee=new Pt,see=new Ft,cee=new Pt(!0),lee=new Ft(!0),It=e=>e,Lt=e=>Reflect.getPrototypeOf(e);function uee(e,t,n){return function(...r){let i=this.__v_raw,a=Xt(i),o=ee(a),s=e===`entries`||e===Symbol.iterator&&o,c=e===`keys`&&o,l=i[e](...r),u=n?It:t?$t:Qt;return!t&&Ct(a,`iterate`,c?xt:bt),b(Object.create(l),{next(){let{value:e,done:t}=l.next();return t?{value:e,done:t}:{value:s?[u(e[0]),u(e[1])]:u(e),done:t}}})}}function Rt(e){return function(...t){return e===`delete`?!1:e===`clear`?void 0:this}}function dee(e,t){let n={get(n){let r=this.__v_raw,i=Xt(r),a=Xt(n);e||(be(n,a)&&Ct(i,`get`,n),Ct(i,`get`,a));let{has:o}=Lt(i),s=t?It:e?$t:Qt;if(o.call(i,n))return s(r.get(n));if(o.call(i,a))return s(r.get(a));r!==i&&r.get(n)},get size(){let t=this.__v_raw;return!e&&Ct(Xt(t),`iterate`,bt),t.size},has(t){let n=this.__v_raw,r=Xt(n),i=Xt(t);return e||(be(t,i)&&Ct(r,`has`,t),Ct(r,`has`,i)),t===i?n.has(t):n.has(t)||n.has(i)},forEach(n,r){let i=this,a=i.__v_raw,o=Xt(a),s=t?It:e?$t:Qt;return!e&&Ct(o,`iterate`,bt),a.forEach((e,t)=>n.call(r,s(e),s(t),i))}};return b(n,e?{add:Rt(`add`),set:Rt(`set`),delete:Rt(`delete`),clear:Rt(`clear`)}:{add(e){!t&&!Jt(e)&&!qt(e)&&(e=Xt(e));let n=Xt(this);return Lt(n).has.call(n,e)||(n.add(e),wt(n,`add`,e,e)),this},set(e,n){!t&&!Jt(n)&&!qt(n)&&(n=Xt(n));let r=Xt(this),{has:i,get:a}=Lt(r),o=i.call(r,e);o||=(e=Xt(e),i.call(r,e));let s=a.call(r,e);return r.set(e,n),o?be(n,s)&&wt(r,`set`,e,n,s):wt(r,`add`,e,n),this},delete(e){let t=Xt(this),{has:n,get:r}=Lt(t),i=n.call(t,e);i||=(e=Xt(e),n.call(t,e));let a=r?r.call(t,e):void 0,o=t.delete(e);return i&&wt(t,`delete`,e,void 0,a),o},clear(){let e=Xt(this),t=e.size!==0,n=e.clear();return t&&wt(e,`clear`,void 0,void 0,void 0),n}}),[`keys`,`values`,`entries`,Symbol.iterator].forEach(r=>{n[r]=uee(r,e,t)}),n}function zt(e,t){let n=dee(e,t);return(t,r,i)=>r===`__v_isReactive`?!e:r===`__v_isReadonly`?e:r===`__v_raw`?t:Reflect.get(C(n,r)&&r in t?n:t,r,i)}var fee={get:zt(!1,!1)},pee={get:zt(!1,!0)},mee={get:zt(!0,!1)},hee={get:zt(!0,!0)},gee=new WeakMap,_ee=new WeakMap,Bt=new WeakMap,Vt=new WeakMap;function vee(e){switch(e){case`Object`:case`Array`:return 1;case`Map`:case`Set`:case`WeakMap`:case`WeakSet`:return 2;default:return 0}}function yee(e){return e.__v_skip||!Object.isExtensible(e)?0:vee(le(e))}function Ht(e){return qt(e)?e:Gt(e,!1,oee,fee,gee)}function Ut(e){return Gt(e,!1,cee,pee,_ee)}function Wt(e){return Gt(e,!0,see,mee,Bt)}function bee(e){return Gt(e,!0,lee,hee,Vt)}function Gt(e,t,n,r,i){if(!ae(e)||e.__v_raw&&!(t&&e.__v_isReactive))return e;let a=yee(e);if(a===0)return e;let o=i.get(e);if(o)return o;let s=new Proxy(e,a===2?r:n);return i.set(e,s),s}function Kt(e){return qt(e)?Kt(e.__v_raw):!!(e&&e.__v_isReactive)}function qt(e){return!!(e&&e.__v_isReadonly)}function Jt(e){return!!(e&&e.__v_isShallow)}function Yt(e){return e?!!e.__v_raw:!1}function Xt(e){let t=e&&e.__v_raw;return t?Xt(t):e}function Zt(e){return!C(e,`__v_skip`)&&Object.isExtensible(e)&&Se(e,`__v_skip`,!0),e}var Qt=e=>ae(e)?Ht(e):e,$t=e=>ae(e)?Wt(e):e;function en(e){return e?e.__v_isRef===!0:!1}function D(e){return xee(e,!1)}function tn(e){return xee(e,!0)}function xee(e,t){return en(e)?e:new See(e,t)}var See=class{constructor(e,t){this.dep=new _t,this.__v_isRef=!0,this.__v_isShallow=!1,this._rawValue=t?e:Xt(e),this._value=t?e:Qt(e),this.__v_isShallow=t}get value(){return this.dep.track(),this._value}set value(e){let t=this._rawValue,n=this.__v_isShallow||Jt(e)||qt(e);e=n?e:Xt(e),be(e,t)&&(this._rawValue=e,this._value=n?e:Qt(e),this.dep.trigger())}};function Cee(e){e.dep&&e.dep.trigger()}function O(e){return en(e)?e.value:e}function nn(e){return T(e)?e():O(e)}var wee={get:(e,t,n)=>t===`__v_raw`?e:O(Reflect.get(e,t,n)),set:(e,t,n,r)=>{let i=e[t];return en(i)&&!en(n)?(i.value=n,!0):Reflect.set(e,t,n,r)}};function Tee(e){return Kt(e)?e:new Proxy(e,wee)}var Eee=class{constructor(e){this.__v_isRef=!0,this._value=void 0;let t=this.dep=new _t,{get:n,set:r}=e(t.track.bind(t),t.trigger.bind(t));this._get=n,this._set=r}get value(){return this._value=this._get()}set value(e){this._set(e)}};function rn(e){return new Eee(e)}function an(e){let t=w(e)?Array(e.length):{};for(let n in e)t[n]=kee(e,n);return t}var Dee=class{constructor(e,t,n){this._object=e,this._key=t,this._defaultValue=n,this.__v_isRef=!0,this._value=void 0,this._raw=Xt(e);let r=!0,i=e;if(!w(e)||!de(String(t)))do r=!Yt(i)||Jt(i);while(r&&(i=i.__v_raw));this._shallow=r}get value(){let e=this._object[this._key];return this._shallow&&(e=O(e)),this._value=e===void 0?this._defaultValue:e}set value(e){if(this._shallow&&en(this._raw[this._key])){let t=this._object[this._key];if(en(t)){t.value=e;return}}this._object[this._key]=e}get dep(){return eee(this._raw,this._key)}},Oee=class{constructor(e){this._getter=e,this.__v_isRef=!0,this.__v_isReadonly=!0,this._value=void 0}get value(){return this._value=this._getter()}};function on(e,t,n){return en(e)?e:T(e)?new Oee(e):ae(e)&&arguments.length>1?kee(e,t,n):D(e)}function kee(e,t,n){return new Dee(e,t,n)}var Aee=class{constructor(e,t,n){this.fn=e,this.setter=t,this._value=void 0,this.dep=new _t(this),this.__v_isRef=!0,this.deps=void 0,this.depsTail=void 0,this.flags=16,this.globalVersion=ht-1,this.next=void 0,this.effect=this,this.__v_isReadonly=!t,this.isSSR=n}notify(){if(this.flags|=16,!(this.flags&8)&&Ye!==this)return tt(this,!0),!0}get value(){let e=this.dep.track();return st(this),e&&(e.version=this.dep.version),this._value}set value(e){this.setter&&this.setter(e)}};function jee(e,t,n=!1){let r,i;return T(e)?r=e:(r=e.get,i=e.set),new Aee(r,i,n)}var sn={},cn=new WeakMap,ln=void 0;function Mee(e,t=!1,n=ln){if(n){let t=cn.get(n);t||cn.set(n,t=[]),t.push(e)}}function Nee(e,t,n=m){let{immediate:r,deep:i,once:a,scheduler:o,augmentJob:s,call:c}=n,l=e=>i?e:Jt(e)||i===!1||i===0?un(e,1):un(e),u,d,f,p,h=!1,_=!1;if(en(e)?(d=()=>e.value,h=Jt(e)):Kt(e)?(d=()=>l(e),h=!0):w(e)?(_=!0,h=e.some(e=>Kt(e)||Jt(e)),d=()=>e.map(e=>{if(en(e))return e.value;if(Kt(e))return l(e);if(T(e))return c?c(e,2):e()})):d=T(e)?t?c?()=>c(e,2):e:()=>{if(f){ft();try{f()}finally{pt()}}let t=ln;ln=u;try{return c?c(e,3,[p]):e(p)}finally{ln=t}}:g,t&&i){let e=d,t=i===!0?1/0:i;d=()=>un(e(),t)}let v=qe(),y=()=>{u.stop(),v&&v.active&&x(v.effects,u)};if(a&&t){let e=t;t=(...t)=>{e(...t),y()}}let b=_?Array(e.length).fill(sn):sn,S=e=>{if(!(!(u.flags&1)||!u.dirty&&!e))if(t){let e=u.run();if(i||h||(_?e.some((e,t)=>be(e,b[t])):be(e,b))){f&&f();let n=ln;ln=u;try{let n=[e,b===sn?void 0:_&&b[0]===sn?[]:b,p];b=e,c?c(t,3,n):t(...n)}finally{ln=n}}}else u.run()};return s&&s(S),u=new Ze(d),u.scheduler=o?()=>o(S,!1):S,p=e=>Mee(e,!1,u),f=u.onStop=()=>{let e=cn.get(u);if(e){if(c)c(e,4);else for(let t of e)t();cn.delete(u)}},t?r?S(!0):b=u.run():o?o(S.bind(null,!0),!0):u.run(),y.pause=u.pause.bind(u),y.resume=u.resume.bind(u),y.stop=y,y}function un(e,t=1/0,n){if(t<=0||!ae(e)||e.__v_skip||(n||=new Map,(n.get(e)||0)>=t))return e;if(n.set(e,t),t--,en(e))un(e.value,t,n);else if(w(e))for(let r=0;r<e.length;r++)un(e[r],t,n);else if(te(e)||ee(e))e.forEach(e=>{un(e,t,n)});else if(ue(e)){for(let r in e)un(e[r],t,n);for(let r of Object.getOwnPropertySymbols(e))Object.prototype.propertyIsEnumerable.call(e,r)&&un(e[r],t,n)}return e}function dn(e,t,n,r){try{return r?e(...r):e()}catch(e){pn(e,t,n)}}function fn(e,t,n,r){if(T(e)){let i=dn(e,t,n,r);return i&&oe(i)&&i.catch(e=>{pn(e,t,n)}),i}if(w(e)){let i=[];for(let a=0;a<e.length;a++)i.push(fn(e[a],t,n,r));return i}}function pn(e,t,n,r=!0){let i=t?t.vnode:null,{errorHandler:a,throwUnhandledErrorInProduction:o}=t&&t.appContext.config||m;if(t){let r=t.parent,i=t.proxy,o=`https://vuejs.org/error-reference/#runtime-${n}`;for(;r;){let t=r.ec;if(t){for(let n=0;n<t.length;n++)if(t[n](e,i,o)===!1)return}r=r.parent}if(a){ft(),dn(a,null,10,[e,i,o]),pt();return}}Pee(e,n,i,r,o)}function Pee(e,t,n,r=!0,i=!1){if(i)throw e;console.error(e)}var mn=[],hn=-1,gn=[],_n=null,vn=0,yn=Promise.resolve(),bn=null;function xn(e){let t=bn||yn;return e?t.then(this?e.bind(this):e):t}function Fee(e){let t=hn+1,n=mn.length;for(;t<n;){let r=t+n>>>1,i=mn[r],a=Dn(i);a<e||a===e&&i.flags&2?t=r+1:n=r}return t}function Sn(e){if(!(e.flags&1)){let t=Dn(e),n=mn[mn.length-1];!n||!(e.flags&2)&&t>=Dn(n)?mn.push(e):mn.splice(Fee(t),0,e),e.flags|=1,Cn()}}function Cn(){bn||=yn.then(On)}function wn(e){w(e)?gn.push(...e):_n&&e.id===-1?_n.splice(vn+1,0,e):e.flags&1||(gn.push(e),e.flags|=1),Cn()}function Tn(e,t,n=hn+1){for(;n<mn.length;n++){let t=mn[n];if(t&&t.flags&2){if(e&&t.id!==e.uid)continue;mn.splice(n,1),n--,t.flags&4&&(t.flags&=-2),t(),t.flags&4||(t.flags&=-2)}}}function En(e){if(gn.length){let e=[...new Set(gn)].sort((e,t)=>Dn(e)-Dn(t));if(gn.length=0,_n){_n.push(...e);return}for(_n=e,vn=0;vn<_n.length;vn++){let e=_n[vn];e.flags&4&&(e.flags&=-2),e.flags&8||e(),e.flags&=-2}_n=null,vn=0}}var Dn=e=>e.id==null?e.flags&2?-1:1/0:e.id;function On(e){try{for(hn=0;hn<mn.length;hn++){let e=mn[hn];e&&!(e.flags&8)&&(e.flags&4&&(e.flags&=-2),dn(e,e.i,e.i?15:14),e.flags&4||(e.flags&=-2))}}finally{for(;hn<mn.length;hn++){let e=mn[hn];e&&(e.flags&=-2)}hn=-1,mn.length=0,En(e),bn=null,(mn.length||gn.length)&&On(e)}}var kn=null,An=null;function jn(e){let t=kn;return kn=e,An=e&&e.type.__scopeId||null,t}function Mn(e,t=kn,n){if(!t||e._n)return e;let r=(...n)=>{r._d&&ui(-1);let i=jn(t),a;try{a=e(...n)}finally{jn(i),r._d&&ui(1)}return a};return r._n=!0,r._c=!0,r._d=!0,r}function Nn(e,t){if(kn===null)return e;let n=Ai(kn),r=e.dirs||=[];for(let e=0;e<t.length;e++){let[i,a,o,s=m]=t[e];i&&(T(i)&&(i={mounted:i,updated:i}),i.deep&&un(a),r.push({dir:i,instance:n,value:a,oldValue:void 0,arg:o,modifiers:s}))}return e}function Pn(e,t,n,r){let i=e.dirs,a=t&&t.dirs;for(let o=0;o<i.length;o++){let s=i[o];a&&(s.oldValue=a[o].value);let c=s.dir[r];c&&(ft(),fn(c,n,8,[e.el,s,e,t]),pt())}}function Fn(e,t){if(wi){let n=wi.provides,r=wi.parent&&wi.parent.provides;r===n&&(n=wi.provides=Object.create(r)),n[e]=t}}function In(e,t,n=!1){let r=Ti();if(r||Kr){let i=Kr?Kr._context.provides:r?r.parent==null||r.ce?r.vnode.appContext&&r.vnode.appContext.provides:r.parent.provides:void 0;if(i&&e in i)return i[e];if(arguments.length>1)return n&&T(t)?t.call(r&&r.proxy):t}}function Iee(){return!!(Ti()||Kr)}var Lee=Symbol.for(`v-scx`),Ree=()=>In(Lee);function zee(e,t){return Rn(e,null,t)}function Bee(e,t){return Rn(e,null,{flush:`post`})}function Vee(e,t){return Rn(e,null,{flush:`sync`})}function Ln(e,t,n){return Rn(e,t,n)}function Rn(e,t,n=m){let{immediate:r,deep:i,flush:a,once:o}=n,s=b({},n),c=t&&r||!t&&a!==`post`,l;if(ki){if(a===`sync`){let e=Ree();l=e.__watcherHandles||=[]}else if(!c){let e=()=>{};return e.stop=g,e.resume=g,e.pause=g,e}}let u=wi;s.call=(e,t,n)=>fn(e,u,t,n);let d=!1;a===`post`?s.scheduler=e=>{$r(e,u&&u.suspense)}:a!==`sync`&&(d=!0,s.scheduler=(e,t)=>{t?e():Sn(e)}),s.augmentJob=e=>{t&&(e.flags|=4),d&&(e.flags|=2,u&&(e.id=u.uid,e.i=u))};let f=Nee(e,t,s);return ki&&(l?l.push(f):c&&f()),f}function Hee(e,t,n){let r=this.proxy,i=re(e)?e.includes(`.`)?Uee(r,e):()=>r[e]:e.bind(r,r),a;T(t)?a=t:(a=t.handler,n=t);let o=Oi(this),s=Rn(i,a.bind(r),n);return o(),s}function Uee(e,t){let n=t.split(`.`);return()=>{let t=e;for(let e=0;e<n.length&&t;e++)t=t[n[e]];return t}}var Wee=Symbol(`_vte`),Gee=e=>e.__isTeleport,zn=e=>e&&(e.disabled||e.disabled===``),Kee=e=>e&&(e.defer||e.defer===``),qee=e=>typeof SVGElement<`u`&&e instanceof SVGElement,Jee=e=>typeof MathMLElement==`function`&&e instanceof MathMLElement,Bn=(e,t)=>{let n=e&&e.to;return re(n)?t?t(n):null:n},Yee={name:`Teleport`,__isTeleport:!0,process(e,t,n,r,i,a,o,s,c,l){let{mc:u,pc:d,pbc:f,o:{insert:p,querySelector:m,createText:h,createComment:g}}=l,_=zn(t.props),{shapeFlag:v,children:y,dynamicChildren:b}=t;if(e==null){let e=t.el=h(``),l=t.anchor=h(``);p(e,n,r),p(l,n,r);let d=(e,t)=>{v&16&&u(y,e,t,i,a,o,s,c)},f=()=>{let e=t.target=Bn(t.props,m),n=Zee(e,t,h,p);e&&(o!==`svg`&&qee(e)?o=`svg`:o!==`mathml`&&Jee(e)&&(o=`mathml`),i&&i.isCE&&(i.ce._teleportTargets||(i.ce._teleportTargets=new Set)).add(e),_||(d(e,n),Un(t,!1)))};_&&(d(n,l),Un(t,!0)),Kee(t.props)?(t.el.__isMounted=!1,$r(()=>{f(),delete t.el.__isMounted},a)):f()}else{if(Kee(t.props)&&e.el.__isMounted===!1){$r(()=>{Yee.process(e,t,n,r,i,a,o,s,c,l)},a);return}t.el=e.el,t.targetStart=e.targetStart;let u=t.anchor=e.anchor,p=t.target=e.target,h=t.targetAnchor=e.targetAnchor,g=zn(e.props),v=g?n:p,y=g?u:h;if(o===`svg`||qee(p)?o=`svg`:(o===`mathml`||Jee(p))&&(o=`mathml`),b?(f(e.dynamicChildren,b,v,i,a,o,s),ni(e,t,!0)):c||d(e,t,v,y,i,a,o,s,!1),_)g?t.props&&e.props&&t.props.to!==e.props.to&&(t.props.to=e.props.to):Vn(t,n,u,l,1);else if((t.props&&t.props.to)!==(e.props&&e.props.to)){let e=t.target=Bn(t.props,m);e&&Vn(t,e,null,l,0)}else g&&Vn(t,p,h,l,1);Un(t,_)}},remove(e,t,n,{um:r,o:{remove:i}},a){let{shapeFlag:o,children:s,anchor:c,targetStart:l,targetAnchor:u,target:d,props:f}=e;if(d&&(i(l),i(u)),a&&i(c),o&16){let e=a||!zn(f);for(let i=0;i<s.length;i++){let a=s[i];r(a,t,n,e,!!a.dynamicChildren)}}},move:Vn,hydrate:Xee};function Vn(e,t,n,{o:{insert:r},m:i},a=2){a===0&&r(e.targetAnchor,t,n);let{el:o,anchor:s,shapeFlag:c,children:l,props:u}=e,d=a===2;if(d&&r(o,t,n),(!d||zn(u))&&c&16)for(let e=0;e<l.length;e++)i(l[e],t,n,2);d&&r(s,t,n)}function Xee(e,t,n,r,i,a,{o:{nextSibling:o,parentNode:s,querySelector:c,insert:l,createText:u}},d){function f(e,t,c,l){t.anchor=d(o(e),t,s(e),n,r,i,a),t.targetStart=c,t.targetAnchor=l}let p=t.target=Bn(t.props,c),m=zn(t.props);if(p){let s=p._lpa||p.firstChild;if(t.shapeFlag&16)if(m)f(e,t,s,s&&o(s));else{t.anchor=o(e);let c=s;for(;c;){if(c&&c.nodeType===8){if(c.data===`teleport start anchor`)t.targetStart=c;else if(c.data===`teleport anchor`){t.targetAnchor=c,p._lpa=t.targetAnchor&&o(t.targetAnchor);break}}c=o(c)}t.targetAnchor||Zee(p,t,u,l),d(s&&o(s),t,p,n,r,i,a)}Un(t,m)}else m&&t.shapeFlag&16&&f(e,t,e,o(e));return t.anchor&&o(t.anchor)}var Hn=Yee;function Un(e,t){let n=e.ctx;if(n&&n.ut){let r,i;for(t?(r=e.el,i=e.anchor):(r=e.targetStart,i=e.targetAnchor);r&&r!==i;)r.nodeType===1&&r.setAttribute(`data-v-owner`,n.uid),r=r.nextSibling;n.ut()}}function Zee(e,t,n,r){let i=t.targetStart=n(``),a=t.targetAnchor=n(``);return i[Wee]=a,e&&(r(i,e),r(a,e)),a}var Wn=Symbol(`_leaveCb`),Gn=Symbol(`_enterCb`);function Qee(){let e={isMounted:!1,isLeaving:!1,isUnmounting:!1,leavingVNodes:new Map};return ur(()=>{e.isMounted=!0}),pr(()=>{e.isUnmounting=!0}),e}var Kn=[Function,Array],$ee={mode:String,appear:Boolean,persisted:Boolean,onBeforeEnter:Kn,onEnter:Kn,onAfterEnter:Kn,onEnterCancelled:Kn,onBeforeLeave:Kn,onLeave:Kn,onAfterLeave:Kn,onLeaveCancelled:Kn,onBeforeAppear:Kn,onAppear:Kn,onAfterAppear:Kn,onAppearCancelled:Kn},ete=e=>{let t=e.subTree;return t.component?ete(t.component):t},tte={name:`BaseTransition`,props:$ee,setup(e,{slots:t}){let n=Ti(),r=Qee();return()=>{let i=t.default&&Xn(t.default(),!0);if(!i||!i.length)return;let a=nte(i),o=Xt(e),{mode:s}=o;if(r.isLeaving)return Jn(a);let c=ate(a);if(!c)return Jn(a);let l=qn(c,o,r,n,e=>l=e);c.type!==ai&&Yn(c,l);let u=n.subTree&&ate(n.subTree);if(u&&u.type!==ai&&!pi(u,c)&&ete(n).type!==ai){let e=qn(u,o,r,n);if(Yn(u,e),s===`out-in`&&c.type!==ai)return r.isLeaving=!0,e.afterLeave=()=>{r.isLeaving=!1,n.job.flags&8||n.update(),delete e.afterLeave,u=void 0},Jn(a);s===`in-out`&&c.type!==ai?e.delayLeave=(e,t,n)=>{let i=ite(r,u);i[String(u.key)]=u,e[Wn]=()=>{t(),e[Wn]=void 0,delete l.delayedLeave,u=void 0},l.delayedLeave=()=>{n(),delete l.delayedLeave,u=void 0}}:u=void 0}else u&&=void 0;return a}}};function nte(e){let t=e[0];if(e.length>1){for(let n of e)if(n.type!==ai){t=n;break}}return t}var rte=tte;function ite(e,t){let{leavingVNodes:n}=e,r=n.get(t.type);return r||(r=Object.create(null),n.set(t.type,r)),r}function qn(e,t,n,r,i){let{appear:a,mode:o,persisted:s=!1,onBeforeEnter:c,onEnter:l,onAfterEnter:u,onEnterCancelled:d,onBeforeLeave:f,onLeave:p,onAfterLeave:m,onLeaveCancelled:h,onBeforeAppear:g,onAppear:_,onAfterAppear:v,onAppearCancelled:y}=t,b=String(e.key),x=ite(n,e),S=(e,t)=>{e&&fn(e,r,9,t)},C=(e,t)=>{let n=t[1];S(e,t),w(e)?e.every(e=>e.length<=1)&&n():e.length<=1&&n()},ee={mode:o,persisted:s,beforeEnter(t){let r=c;if(!n.isMounted)if(a)r=g||c;else return;t[Wn]&&t[Wn](!0);let i=x[b];i&&pi(e,i)&&i.el[Wn]&&i.el[Wn](),S(r,[t])},enter(e){let t=l,r=u,i=d;if(!n.isMounted)if(a)t=_||l,r=v||u,i=y||d;else return;let o=!1,s=e[Gn]=t=>{o||(o=!0,S(t?i:r,[e]),ee.delayedLeave&&ee.delayedLeave(),e[Gn]=void 0)};t?C(t,[e,s]):s()},leave(t,r){let i=String(e.key);if(t[Gn]&&t[Gn](!0),n.isUnmounting)return r();S(f,[t]);let a=!1,o=t[Wn]=n=>{a||(a=!0,r(),S(n?h:m,[t]),t[Wn]=void 0,x[i]===e&&delete x[i])};x[i]=e,p?C(p,[t,o]):o()},clone(e){let a=qn(e,t,n,r,i);return i&&i(a),a}};return ee}function Jn(e){if(rr(e))return e=_i(e),e.children=null,e}function ate(e){if(!rr(e))return Gee(e.type)&&e.children?nte(e.children):e;if(e.component)return e.component.subTree;let{shapeFlag:t,children:n}=e;if(n){if(t&16)return n[0];if(t&32&&T(n.default))return n.default()}}function Yn(e,t){e.shapeFlag&6&&e.component?(e.transition=t,Yn(e.component.subTree,t)):e.shapeFlag&128?(e.ssContent.transition=t.clone(e.ssContent),e.ssFallback.transition=t.clone(e.ssFallback)):e.transition=t}function Xn(e,t=!1,n){let r=[],i=0;for(let a=0;a<e.length;a++){let o=e[a],s=n==null?o.key:String(n)+String(o.key==null?a:o.key);o.type===ri?(o.patchFlag&128&&i++,r=r.concat(Xn(o.children,t,s))):(t||o.type!==ai)&&r.push(s==null?o:_i(o,{key:s}))}if(i>1)for(let e=0;e<r.length;e++)r[e].patchFlag=-2;return r}function Zn(e,t){return T(e)?(()=>b({name:e.name},t,{setup:e}))():e}function ote(){let e=Ti();return e?(e.appContext.config.idPrefix||`v`)+`-`+e.ids[0]+ e.ids[1]++:``}function Qn(e){e.ids=[e.ids[0]+ e.ids[2]+++`-`,0,0]}function ste(e){let t=Ti(),n=tn(null);if(t){let r=t.refs===m?t.refs={}:t.refs;Object.defineProperty(r,e,{enumerable:!0,get:()=>n.value,set:e=>n.value=e})}return n}var $n=new WeakMap;function er(e,t,n,r,i=!1){if(w(e)){e.forEach((e,a)=>er(e,t&&(w(t)?t[a]:t),n,r,i));return}if(tr(r)&&!i){r.shapeFlag&512&&r.type.__asyncResolved&&r.component.subTree.component&&er(e,t,n,r.component.subTree);return}let a=r.shapeFlag&4?Ai(r.component):r.el,o=i?null:a,{i:s,r:c}=e,l=t&&t.r,u=s.refs===m?s.refs={}:s.refs,d=s.setupState,f=Xt(d),p=d===m?_:e=>C(f,e),h=e=>!0;if(l!=null&&l!==c){if(cte(t),re(l))u[l]=null,p(l)&&(d[l]=null);else if(en(l)){h(l)&&(l.value=null);let e=t;e.k&&(u[e.k]=null)}}if(T(c))dn(c,s,12,[o,u]);else{let t=re(c),r=en(c);if(t||r){let s=()=>{if(e.f){let n=t?p(c)?d[c]:u[c]:h(c)||!e.k?c.value:u[e.k];if(i)w(n)&&x(n,a);else if(w(n))n.includes(a)||n.push(a);else if(t)u[c]=[a],p(c)&&(d[c]=u[c]);else{let t=[a];h(c)&&(c.value=t),e.k&&(u[e.k]=t)}}else t?(u[c]=o,p(c)&&(d[c]=o)):r&&(h(c)&&(c.value=o),e.k&&(u[e.k]=o))};if(o){let t=()=>{s(),$n.delete(e)};t.id=-1,$n.set(e,t),$r(t,n)}else cte(e),s()}}}function cte(e){let t=$n.get(e);t&&(t.flags|=8,$n.delete(e))}var lte=e=>e.nodeType===8;Ee().requestIdleCallback,Ee().cancelIdleCallback;function ute(e,t){if(lte(e)&&e.data===`[`){let n=1,r=e.nextSibling;for(;r;){if(r.nodeType===1){if(t(r)===!1)break}else if(lte(r))if(r.data===`]`){if(--n===0)break}else r.data===`[`&&n++;r=r.nextSibling}}else t(e)}var tr=e=>!!e.type.__asyncLoader;function dte(e){T(e)&&(e={loader:e});let{loader:t,loadingComponent:n,errorComponent:r,delay:i=200,hydrate:a,timeout:o,suspensible:s=!0,onError:c}=e,l=null,u,d=0,f=()=>(d++,l=null,p()),p=()=>{let e;return l||(e=l=t().catch(e=>{if(e=e instanceof Error?e:Error(String(e)),c)return new Promise((t,n)=>{c(e,()=>t(f()),()=>n(e),d+1)});throw e}).then(t=>e!==l&&l?l:(t&&(t.__esModule||t[Symbol.toStringTag]===`Module`)&&(t=t.default),u=t,t)))};return Zn({name:`AsyncComponentWrapper`,__asyncLoader:p,__asyncHydrate(e,t,n){let r=!1;(t.bu||=[]).push(()=>r=!0);let i=()=>{r||n()},o=a?()=>{let n=a(i,t=>ute(e,t));n&&(t.bum||=[]).push(n)}:i;u?o():p().then(()=>!t.isUnmounted&&o())},get __asyncResolved(){return u},setup(){let e=wi;if(Qn(e),u)return()=>nr(u,e);let t=t=>{l=null,pn(t,e,13,!r)};if(s&&e.suspense||ki)return p().then(t=>()=>nr(t,e)).catch(e=>(t(e),()=>r?hi(r,{error:e}):null));let a=D(!1),c=D(),d=D(!!i);return i&&setTimeout(()=>{d.value=!1},i),o!=null&&setTimeout(()=>{if(!a.value&&!c.value){let e=Error(`Async component timed out after ${o}ms.`);t(e),c.value=e}},o),p().then(()=>{a.value=!0,e.parent&&rr(e.parent.vnode)&&e.parent.update()}).catch(e=>{t(e),c.value=e}),()=>{if(a.value&&u)return nr(u,e);if(c.value&&r)return hi(r,{error:c.value});if(n&&!d.value)return nr(n,e)}}})}function nr(e,t){let{ref:n,props:r,children:i,ce:a}=t.vnode,o=hi(e,r,i);return o.ref=n,o.ce=a,delete t.vnode.ce,o}var rr=e=>e.type.__isKeepAlive;function ir(e,t){or(e,`a`,t)}function ar(e,t){or(e,`da`,t)}function or(e,t,n=wi){let r=e.__wdc||=()=>{let t=n;for(;t;){if(t.isDeactivated)return;t=t.parent}return e()};if(sr(t,r,n),n){let e=n.parent;for(;e&&e.parent;)rr(e.parent.vnode)&&fte(r,t,n,e),e=e.parent}}function fte(e,t,n,r){let i=sr(t,e,r,!0);mr(()=>{x(r[t],i)},n)}function sr(e,t,n=wi,r=!1){if(n){let i=n[e]||(n[e]=[]),a=t.__weh||=(...r)=>{ft();let i=Oi(n),a=fn(t,n,e,r);return i(),pt(),a};return r?i.unshift(a):i.push(a),a}}var cr=e=>(t,n=wi)=>{(!ki||e===`sp`)&&sr(e,(...e)=>t(...e),n)},lr=cr(`bm`),ur=cr(`m`),dr=cr(`bu`),fr=cr(`u`),pr=cr(`bum`),mr=cr(`um`),hr=cr(`sp`),pte=cr(`rtg`),mte=cr(`rtc`);function gr(e,t=wi){sr(`ec`,e,t)}var _r=`components`,hte=`directives`;function vr(e,t){return Sr(_r,e,!0,t)||e}var yr=Symbol.for(`v-ndc`);function br(e){return re(e)?Sr(_r,e,!1)||e:e||yr}function xr(e){return Sr(hte,e)}function Sr(e,t,n=!0,r=!1){let i=kn||wi;if(i){let n=i.type;if(e===_r){let e=Tne(n,!1);if(e&&(e===t||e===he(t)||e===ve(he(t))))return n}let a=Cr(i[e]||n[e],t)||Cr(i.appContext[e],t);return!a&&r?n:a}}function Cr(e,t){return e&&(e[t]||e[he(t)]||e[ve(he(t))])}function wr(e,t,n,r){let i,a=n&&n[r],o=w(e);if(o||re(e)){let n=o&&Kt(e),r=!1,s=!1;n&&(r=!Jt(e),s=qt(e),e=Et(e)),i=Array(e.length);for(let n=0,o=e.length;n<o;n++)i[n]=t(r?s?$t(Qt(e[n])):Qt(e[n]):e[n],n,void 0,a&&a[n])}else if(typeof e==`number`){i=Array(e);for(let n=0;n<e;n++)i[n]=t(n+1,n,void 0,a&&a[n])}else if(ae(e))if(e[Symbol.iterator])i=Array.from(e,(e,n)=>t(e,n,void 0,a&&a[n]));else{let n=Object.keys(e);i=Array(n.length);for(let r=0,o=n.length;r<o;r++){let o=n[r];i[r]=t(e[o],o,r,a&&a[r])}}else i=[];return n&&(n[r]=i),i}function Tr(e,t){for(let n=0;n<t.length;n++){let r=t[n];if(w(r))for(let t=0;t<r.length;t++)e[r[t].name]=r[t].fn;else r&&(e[r.name]=r.key?(...e)=>{let t=r.fn(...e);return t&&(t.key=r.key),t}:r.fn)}return e}function Er(e,t,n={},r,i){if(kn.ce||kn.parent&&tr(kn.parent)&&kn.parent.ce){let e=Object.keys(n).length>0;return t!==`default`&&(n.name=t),k(),di(ri,null,[hi(`slot`,n,r&&r())],e?-2:64)}let a=e[t];a&&a._c&&(a._d=!1),k();let o=a&&Dr(a(n)),s=n.key||o&&o.key,c=di(ri,{key:(s&&!ie(s)?s:`_${t}`)+(!o&&r?`_fb`:``)},o||(r?r():[]),o&&e._===1?64:-2);return!i&&c.scopeId&&(c.slotScopeIds=[c.scopeId+`-s`]),a&&a._c&&(a._d=!0),c}function Dr(e){return e.some(e=>fi(e)?!(e.type===ai||e.type===ri&&!Dr(e.children)):!0)?e:null}function gte(e,t){let n={};for(let r in e)n[t&&/[A-Z]/.test(r)?`on:${r}`:ye(r)]=e[r];return n}var Or=e=>e?gne(e)?Ai(e):Or(e.parent):null,kr=b(Object.create(null),{$:e=>e,$el:e=>e.vnode.el,$data:e=>e.data,$props:e=>e.props,$attrs:e=>e.attrs,$slots:e=>e.slots,$refs:e=>e.refs,$parent:e=>Or(e.parent),$root:e=>Or(e.root),$host:e=>e.ce,$emit:e=>e.emit,$options:e=>Br(e),$forceUpdate:e=>e.f||=()=>{Sn(e.update)},$nextTick:e=>e.n||=xn.bind(e.proxy),$watch:e=>Hee.bind(e)}),Ar=(e,t)=>e!==m&&!e.__isScriptSetup&&C(e,t),_te={get({_:e},t){if(t===`__v_skip`)return!0;let{ctx:n,setupState:r,data:i,props:a,accessCache:o,type:s,appContext:c}=e;if(t[0]!==`$`){let e=o[t];if(e!==void 0)switch(e){case 1:return r[t];case 2:return i[t];case 4:return n[t];case 3:return a[t]}else if(Ar(r,t))return o[t]=1,r[t];else if(i!==m&&C(i,t))return o[t]=2,i[t];else if(C(a,t))return o[t]=3,a[t];else if(n!==m&&C(n,t))return o[t]=4,n[t];else Lr&&(o[t]=0)}let l=kr[t],u,d;if(l)return t===`$attrs`&&Ct(e.attrs,`get`,``),l(e);if((u=s.__cssModules)&&(u=u[t]))return u;if(n!==m&&C(n,t))return o[t]=4,n[t];if(d=c.config.globalProperties,C(d,t))return d[t]},set({_:e},t,n){let{data:r,setupState:i,ctx:a}=e;return Ar(i,t)?(i[t]=n,!0):r!==m&&C(r,t)?(r[t]=n,!0):C(e.props,t)||t[0]===`$`&&t.slice(1)in e?!1:(a[t]=n,!0)},has({_:{data:e,setupState:t,accessCache:n,ctx:r,appContext:i,props:a,type:o}},s){let c;return!!(n[s]||e!==m&&s[0]!==`$`&&C(e,s)||Ar(t,s)||C(a,s)||C(r,s)||C(kr,s)||C(i.config.globalProperties,s)||(c=o.__cssModules)&&c[s])},defineProperty(e,t,n){return n.get==null?C(n,`value`)&&this.set(e,t,n.value,null):e._.accessCache[t]=0,Reflect.defineProperty(e,t,n)}};function jr(){return Nr(`useSlots`).slots}function Mr(){return Nr(`useAttrs`).attrs}function Nr(e){let t=Ti();return t.setupContext||=wne(t)}function Pr(e){return w(e)?e.reduce((e,t)=>(e[t]=null,e),{}):e}function vte(e,t){let n=Pr(e);for(let e in t){if(e.startsWith(`__skip`))continue;let r=n[e];r?w(r)||T(r)?r=n[e]={type:r,default:t[e]}:r.default=t[e]:r===null&&(r=n[e]={default:t[e]}),r&&t[`__skip_${e}`]&&(r.skipFactory=!0)}return n}function Fr(e,t){return!e||!t?e||t:w(e)&&w(t)?e.concat(t):b({},Pr(e),Pr(t))}function Ir(e,t){let n={};for(let r in e)t.includes(r)||Object.defineProperty(n,r,{enumerable:!0,get:()=>e[r]});return n}var Lr=!0;function yte(e){let t=Br(e),n=e.proxy,r=e.ctx;Lr=!1,t.beforeCreate&&Rr(t.beforeCreate,e,`bc`);let{data:i,computed:a,methods:o,watch:s,provide:c,inject:l,created:u,beforeMount:d,mounted:f,beforeUpdate:p,updated:m,activated:h,deactivated:_,beforeDestroy:v,beforeUnmount:y,destroyed:b,unmounted:x,render:S,renderTracked:C,renderTriggered:ee,errorCaptured:te,serverPrefetch:ne,expose:re,inheritAttrs:ie,components:oe,directives:se,filters:ce}=t;if(l&&bte(l,r,null),o)for(let e in o){let t=o[e];T(t)&&(r[e]=t.bind(n))}if(i){let t=i.call(n,n);ae(t)&&(e.data=Ht(t))}if(Lr=!0,a)for(let e in a){let t=a[e],i=ji({get:T(t)?t.bind(n,n):T(t.get)?t.get.bind(n,n):g,set:!T(t)&&T(t.set)?t.set.bind(n):g});Object.defineProperty(r,e,{enumerable:!0,configurable:!0,get:()=>i.value,set:e=>i.value=e})}if(s)for(let e in s)zr(s[e],r,n,e);if(c){let e=T(c)?c.call(n):c;Reflect.ownKeys(e).forEach(t=>{Fn(t,e[t])})}u&&Rr(u,e,`c`);function le(e,t){w(t)?t.forEach(t=>e(t.bind(n))):t&&e(t.bind(n))}if(le(lr,d),le(ur,f),le(dr,p),le(fr,m),le(ir,h),le(ar,_),le(gr,te),le(mte,C),le(pte,ee),le(pr,y),le(mr,x),le(hr,ne),w(re))if(re.length){let t=e.exposed||={};re.forEach(e=>{Object.defineProperty(t,e,{get:()=>n[e],set:t=>n[e]=t,enumerable:!0})})}else e.exposed||={};S&&e.render===g&&(e.render=S),ie!=null&&(e.inheritAttrs=ie),oe&&(e.components=oe),se&&(e.directives=se),ne&&Qn(e)}function bte(e,t,n=g){for(let n in w(e)&&(e=Ur(e)),e){let r=e[n],i;i=ae(r)?`default`in r?In(r.from||n,r.default,!0):In(r.from||n):In(r),en(i)?Object.defineProperty(t,n,{enumerable:!0,configurable:!0,get:()=>i.value,set:e=>i.value=e}):t[n]=i}}function Rr(e,t,n){fn(w(e)?e.map(e=>e.bind(t.proxy)):e.bind(t.proxy),t,n)}function zr(e,t,n,r){let i=r.includes(`.`)?Uee(n,r):()=>n[r];if(re(e)){let n=t[e];T(n)&&Ln(i,n)}else if(T(e))Ln(i,e.bind(n));else if(ae(e))if(w(e))e.forEach(e=>zr(e,t,n,r));else{let r=T(e.handler)?e.handler.bind(n):t[e.handler];T(r)&&Ln(i,r,e)}}function Br(e){let t=e.type,{mixins:n,extends:r}=t,{mixins:i,optionsCache:a,config:{optionMergeStrategies:o}}=e.appContext,s=a.get(t),c;return s?c=s:!i.length&&!n&&!r?c=t:(c={},i.length&&i.forEach(e=>Vr(c,e,o,!0)),Vr(c,t,o)),ae(t)&&a.set(t,c),c}function Vr(e,t,n,r=!1){let{mixins:i,extends:a}=t;for(let o in a&&Vr(e,a,n,!0),i&&i.forEach(t=>Vr(e,t,n,!0)),t)if(!(r&&o===`expose`)){let r=xte[o]||n&&n[o];e[o]=r?r(e[o],t[o]):t[o]}return e}var xte={data:Hr,props:Cte,emits:Cte,methods:Gr,computed:Gr,beforeCreate:Wr,created:Wr,beforeMount:Wr,mounted:Wr,beforeUpdate:Wr,updated:Wr,beforeDestroy:Wr,beforeUnmount:Wr,destroyed:Wr,unmounted:Wr,activated:Wr,deactivated:Wr,errorCaptured:Wr,serverPrefetch:Wr,components:Gr,directives:Gr,watch:wte,provide:Hr,inject:Ste};function Hr(e,t){return t?e?function(){return b(T(e)?e.call(this,this):e,T(t)?t.call(this,this):t)}:t:e}function Ste(e,t){return Gr(Ur(e),Ur(t))}function Ur(e){if(w(e)){let t={};for(let n=0;n<e.length;n++)t[e[n]]=e[n];return t}return e}function Wr(e,t){return e?[...new Set([].concat(e,t))]:t}function Gr(e,t){return e?b(Object.create(null),e,t):t}function Cte(e,t){return e?w(e)&&w(t)?[...new Set([...e,...t])]:b(Object.create(null),Pr(e),Pr(t??{})):t}function wte(e,t){if(!e)return t;if(!t)return e;let n=b(Object.create(null),e);for(let r in t)n[r]=Wr(e[r],t[r]);return n}function Tte(){return{app:null,config:{isNativeTag:_,performance:!1,globalProperties:{},optionMergeStrategies:{},errorHandler:void 0,warnHandler:void 0,compilerOptions:{}},mixins:[],components:{},directives:{},provides:Object.create(null),optionsCache:new WeakMap,propsCache:new WeakMap,emitsCache:new WeakMap}}var Ete=0;function Dte(e,t){return function(n,r=null){T(n)||(n=b({},n)),r!=null&&!ae(r)&&(r=null);let i=Tte(),a=new WeakSet,o=[],s=!1,c=i.app={_uid:Ete++,_component:n,_props:r,_container:null,_context:i,_instance:null,version:One,get config(){return i.config},set config(e){},use(e,...t){return a.has(e)||(e&&T(e.install)?(a.add(e),e.install(c,...t)):T(e)&&(a.add(e),e(c,...t))),c},mixin(e){return i.mixins.includes(e)||i.mixins.push(e),c},component(e,t){return t?(i.components[e]=t,c):i.components[e]},directive(e,t){return t?(i.directives[e]=t,c):i.directives[e]},mount(a,o,l){if(!s){let u=c._ceVNode||hi(n,r);return u.appContext=i,l===!0?l=`svg`:l===!1&&(l=void 0),o&&t?t(u,a):e(u,a,l),s=!0,c._container=a,a.__vue_app__=c,Ai(u.component)}},onUnmount(e){o.push(e)},unmount(){s&&(fn(o,c._instance,16),e(null,c._container),delete c._container.__vue_app__)},provide(e,t){return i.provides[e]=t,c},runWithContext(e){let t=Kr;Kr=c;try{return e()}finally{Kr=t}}};return c}}var Kr=null;function qr(e,t,n=m){let r=Ti(),i=he(t),a=_e(t),o=Ote(e,i),s=rn((o,s)=>{let c,l=m,u;return Vee(()=>{let t=e[i];be(c,t)&&(c=t,s())}),{get(){return o(),n.get?n.get(c):c},set(e){let o=n.set?n.set(e):e;if(!be(o,c)&&!(l!==m&&be(e,l)))return;let d=r.vnode.props;d&&(t in d||i in d||a in d)&&(`onUpdate:${t}`in d||`onUpdate:${i}`in d||`onUpdate:${a}`in d)||(c=e,s()),r.emit(`update:${t}`,o),be(e,o)&&be(e,l)&&!be(o,u)&&s(),l=e,u=o}}});return s[Symbol.iterator]=()=>{let e=0;return{next(){return e<2?{value:e++?o||m:s,done:!1}:{done:!0}}}},s}var Ote=(e,t)=>t===`modelValue`||t===`model-value`?e.modelModifiers:e[`${t}Modifiers`]||e[`${he(t)}Modifiers`]||e[`${_e(t)}Modifiers`];function kte(e,t,...n){if(e.isUnmounted)return;let r=e.vnode.props||m,i=n,a=t.startsWith(`update:`),o=a&&Ote(r,t.slice(7));o&&(o.trim&&(i=n.map(e=>re(e)?e.trim():e)),o.number&&(i=n.map(Ce)));let s,c=r[s=ye(t)]||r[s=ye(he(t))];!c&&a&&(c=r[s=ye(_e(t))]),c&&fn(c,e,6,i);let l=r[s+`Once`];if(l){if(!e.emitted)e.emitted={};else if(e.emitted[s])return;e.emitted[s]=!0,fn(l,e,6,i)}}var Ate=new WeakMap;function jte(e,t,n=!1){let r=n?Ate:t.emitsCache,i=r.get(e);if(i!==void 0)return i;let a=e.emits,o={},s=!1;if(!T(e)){let r=e=>{let n=jte(e,t,!0);n&&(s=!0,b(o,n))};!n&&t.mixins.length&&t.mixins.forEach(r),e.extends&&r(e.extends),e.mixins&&e.mixins.forEach(r)}return!a&&!s?(ae(e)&&r.set(e,null),null):(w(a)?a.forEach(e=>o[e]=null):b(o,a),ae(e)&&r.set(e,o),o)}function Jr(e,t){return!e||!v(t)?!1:(t=t.slice(2).replace(/Once$/,``),C(e,t[0].toLowerCase()+t.slice(1))||C(e,_e(t))||C(e,t))}function Yr(e){let{type:t,vnode:n,proxy:r,withProxy:i,propsOptions:[a],slots:o,attrs:s,emit:c,render:l,renderCache:u,props:d,data:f,setupState:p,ctx:m,inheritAttrs:h}=e,g=jn(e),_,v;try{if(n.shapeFlag&4){let e=i||r,t=e;_=bi(l.call(t,e,u,d,p,f,m)),v=s}else{let e=t;_=bi(e.length>1?e(d,{attrs:s,slots:o,emit:c}):e(d,null)),v=t.props?s:Mte(s)}}catch(t){si.length=0,pn(t,e,1),_=hi(ai)}let b=_;if(v&&h!==!1){let e=Object.keys(v),{shapeFlag:t}=b;e.length&&t&7&&(a&&e.some(y)&&(v=Nte(v,a)),b=_i(b,v,!1,!0))}return n.dirs&&(b=_i(b,null,!1,!0),b.dirs=b.dirs?b.dirs.concat(n.dirs):n.dirs),n.transition&&Yn(b,n.transition),_=b,jn(g),_}var Mte=e=>{let t;for(let n in e)(n===`class`||n===`style`||v(n))&&((t||={})[n]=e[n]);return t},Nte=(e,t)=>{let n={};for(let r in e)(!y(r)||!(r.slice(9)in t))&&(n[r]=e[r]);return n};function Pte(e,t,n){let{props:r,children:i,component:a}=e,{props:o,children:s,patchFlag:c}=t,l=a.emitsOptions;if(t.dirs||t.transition)return!0;if(n&&c>=0){if(c&1024)return!0;if(c&16)return r?Fte(r,o,l):!!o;if(c&8){let e=t.dynamicProps;for(let t=0;t<e.length;t++){let n=e[t];if(o[n]!==r[n]&&!Jr(l,n))return!0}}}else return(i||s)&&(!s||!s.$stable)?!0:r===o?!1:r?o?Fte(r,o,l):!0:!!o;return!1}function Fte(e,t,n){let r=Object.keys(t);if(r.length!==Object.keys(e).length)return!0;for(let i=0;i<r.length;i++){let a=r[i];if(t[a]!==e[a]&&!Jr(n,a))return!0}return!1}function Ite({vnode:e,parent:t},n){for(;t;){let r=t.subTree;if(r.suspense&&r.suspense.activeBranch===e&&(r.el=e.el),r===e)(e=t.vnode).el=n,t=t.parent;else break}}var Lte={},Rte=()=>Object.create(Lte),zte=e=>Object.getPrototypeOf(e)===Lte;function Bte(e,t,n,r=!1){let i={},a=Rte();for(let n in e.propsDefaults=Object.create(null),Hte(e,t,i,a),e.propsOptions[0])n in i||(i[n]=void 0);n?e.props=r?i:Ut(i):e.type.props?e.props=i:e.props=a,e.attrs=a}function Vte(e,t,n,r){let{props:i,attrs:a,vnode:{patchFlag:o}}=e,s=Xt(i),[c]=e.propsOptions,l=!1;if((r||o>0)&&!(o&16)){if(o&8){let n=e.vnode.dynamicProps;for(let r=0;r<n.length;r++){let o=n[r];if(Jr(e.emitsOptions,o))continue;let u=t[o];if(c)if(C(a,o))u!==a[o]&&(a[o]=u,l=!0);else{let t=he(o);i[t]=Xr(c,s,t,u,e,!1)}else u!==a[o]&&(a[o]=u,l=!0)}}}else{Hte(e,t,i,a)&&(l=!0);let r;for(let a in s)(!t||!C(t,a)&&((r=_e(a))===a||!C(t,r)))&&(c?n&&(n[a]!==void 0||n[r]!==void 0)&&(i[a]=Xr(c,s,a,void 0,e,!0)):delete i[a]);if(a!==s)for(let e in a)(!t||!C(t,e))&&(delete a[e],l=!0)}l&&wt(e.attrs,`set`,``)}function Hte(e,t,n,r){let[i,a]=e.propsOptions,o=!1,s;if(t)for(let c in t){if(fe(c))continue;let l=t[c],u;i&&C(i,u=he(c))?!a||!a.includes(u)?n[u]=l:(s||={})[u]=l:Jr(e.emitsOptions,c)||(!(c in r)||l!==r[c])&&(r[c]=l,o=!0)}if(a){let t=Xt(n),r=s||m;for(let o=0;o<a.length;o++){let s=a[o];n[s]=Xr(i,t,s,r[s],e,!C(r,s))}}return o}function Xr(e,t,n,r,i,a){let o=e[n];if(o!=null){let e=C(o,`default`);if(e&&r===void 0){let e=o.default;if(o.type!==Function&&!o.skipFactory&&T(e)){let{propsDefaults:a}=i;if(n in a)r=a[n];else{let o=Oi(i);r=a[n]=e.call(null,t),o()}}else r=e;i.ce&&i.ce._setProp(n,r)}o[0]&&(a&&!e?r=!1:o[1]&&(r===``||r===_e(n))&&(r=!0))}return r}var Ute=new WeakMap;function Wte(e,t,n=!1){let r=n?Ute:t.propsCache,i=r.get(e);if(i)return i;let a=e.props,o={},s=[],c=!1;if(!T(e)){let r=e=>{c=!0;let[n,r]=Wte(e,t,!0);b(o,n),r&&s.push(...r)};!n&&t.mixins.length&&t.mixins.forEach(r),e.extends&&r(e.extends),e.mixins&&e.mixins.forEach(r)}if(!a&&!c)return ae(e)&&r.set(e,h),h;if(w(a))for(let e=0;e<a.length;e++){let t=he(a[e]);Gte(t)&&(o[t]=m)}else if(a)for(let e in a){let t=he(e);if(Gte(t)){let n=a[e],r=o[t]=w(n)||T(n)?{type:n}:b({},n),i=r.type,c=!1,l=!0;if(w(i))for(let e=0;e<i.length;++e){let t=i[e],n=T(t)&&t.name;if(n===`Boolean`){c=!0;break}else n===`String`&&(l=!1)}else c=T(i)&&i.name===`Boolean`;r[0]=c,r[1]=l,(c||C(r,`default`))&&s.push(t)}}let l=[o,s];return ae(e)&&r.set(e,l),l}function Gte(e){return e[0]!==`$`&&!fe(e)}var Zr=e=>e===`_`||e===`_ctx`||e===`$stable`,Qr=e=>w(e)?e.map(bi):[bi(e)],Kte=(e,t,n)=>{if(t._n)return t;let r=Mn((...e)=>Qr(t(...e)),n);return r._c=!1,r},qte=(e,t,n)=>{let r=e._ctx;for(let n in e){if(Zr(n))continue;let i=e[n];if(T(i))t[n]=Kte(n,i,r);else if(i!=null){let e=Qr(i);t[n]=()=>e}}},Jte=(e,t)=>{let n=Qr(t);e.slots.default=()=>n},Yte=(e,t,n)=>{for(let r in t)(n||!Zr(r))&&(e[r]=t[r])},Xte=(e,t,n)=>{let r=e.slots=Rte();if(e.vnode.shapeFlag&32){let e=t._;e?(Yte(r,t,n),n&&Se(r,`_`,e,!0)):qte(t,r)}else t&&Jte(e,t)},Zte=(e,t,n)=>{let{vnode:r,slots:i}=e,a=!0,o=m;if(r.shapeFlag&32){let e=t._;e?n&&e===1?a=!1:Yte(i,t,n):(a=!t.$stable,qte(t,i)),o=t}else t&&(Jte(e,t),o={default:1});if(a)for(let e in i)!Zr(e)&&o[e]==null&&delete i[e]},$r=one;function Qte(e){return $te(e)}function $te(e,t){let n=Ee();n.__VUE__=!0;let{insert:r,remove:i,patchProp:a,createElement:o,createText:s,createComment:c,setText:l,setElementText:u,parentNode:d,nextSibling:f,setScopeId:p=g,insertStaticContent:_}=e,v=(e,t,n,r=null,i=null,a=null,o=void 0,s=null,c=!!t.dynamicChildren)=>{if(e===t)return;e&&!pi(e,t)&&(r=Se(e),ge(e,i,a,!0),e=null),t.patchFlag===-2&&(c=!1,t.dynamicChildren=null);let{type:l,ref:u,shapeFlag:d}=t;switch(l){case ii:y(e,t,n,r);break;case ai:b(e,t,n,r);break;case oi:e??x(t,n,r,o);break;case ri:ae(e,t,n,r,i,a,o,s,c);break;default:d&1?w(e,t,n,r,i,a,o,s,c):d&6?oe(e,t,n,r,i,a,o,s,c):(d&64||d&128)&&l.process(e,t,n,r,i,a,o,s,c,Te)}u!=null&&i?er(u,e&&e.ref,a,t||e,!t):u==null&&e&&e.ref!=null&&er(e.ref,null,a,e,!0)},y=(e,t,n,i)=>{if(e==null)r(t.el=s(t.children),n,i);else{let n=t.el=e.el;t.children!==e.children&&l(n,t.children)}},b=(e,t,n,i)=>{e==null?r(t.el=c(t.children||``),n,i):t.el=e.el},x=(e,t,n,r)=>{[e.el,e.anchor]=_(e.children,t,n,r,e.el,e.anchor)},S=({el:e,anchor:t},n,i)=>{let a;for(;e&&e!==t;)a=f(e),r(e,n,i),e=a;r(t,n,i)},C=({el:e,anchor:t})=>{let n;for(;e&&e!==t;)n=f(e),i(e),e=n;i(t)},w=(e,t,n,r,i,a,o,s,c)=>{if(t.type===`svg`?o=`svg`:t.type===`math`&&(o=`mathml`),e==null)ee(t,n,r,i,a,o,s,c);else{let n=e.el&&e.el._isVueCE?e.el:null;try{n&&n._beginPatch(),T(e,t,i,a,o,s,c)}finally{n&&n._endPatch()}}},ee=(e,t,n,i,s,c,l,d)=>{let f,p,{props:m,shapeFlag:h,transition:g,dirs:_}=e;if(f=e.el=o(e.type,c,m&&m.is,m),h&8?u(f,e.children):h&16&&ne(e.children,f,null,i,s,ei(e,c),l,d),_&&Pn(e,null,i,`created`),te(f,e,e.scopeId,l,i),m){for(let e in m)e!==`value`&&!fe(e)&&a(f,e,null,m[e],c,i);`value`in m&&a(f,`value`,null,m.value,c),(p=m.onVnodeBeforeMount)&&Ci(p,i,e)}_&&Pn(e,null,i,`beforeMount`);let v=ene(s,g);v&&g.beforeEnter(f),r(f,t,n),((p=m&&m.onVnodeMounted)||v||_)&&$r(()=>{p&&Ci(p,i,e),v&&g.enter(f),_&&Pn(e,null,i,`mounted`)},s)},te=(e,t,n,r,i)=>{if(n&&p(e,n),r)for(let t=0;t<r.length;t++)p(e,r[t]);if(i){let n=i.subTree;if(t===n||ane(n.type)&&(n.ssContent===t||n.ssFallback===t)){let t=i.vnode;te(e,t,t.scopeId,t.slotScopeIds,i.parent)}}},ne=(e,t,n,r,i,a,o,s,c=0)=>{for(let l=c;l<e.length;l++)v(null,e[l]=s?xi(e[l]):bi(e[l]),t,n,r,i,a,o,s)},T=(e,t,n,r,i,o,s)=>{let c=t.el=e.el,{patchFlag:l,dynamicChildren:d,dirs:f}=t;l|=e.patchFlag&16;let p=e.props||m,h=t.props||m,g;if(n&&ti(n,!1),(g=h.onVnodeBeforeUpdate)&&Ci(g,n,t,e),f&&Pn(t,e,n,`beforeUpdate`),n&&ti(n,!0),(p.innerHTML&&h.innerHTML==null||p.textContent&&h.textContent==null)&&u(c,``),d?re(e.dynamicChildren,d,c,n,r,ei(t,i),o):s||de(e,t,c,null,n,r,ei(t,i),o,!1),l>0){if(l&16)ie(c,p,h,n,i);else if(l&2&&p.class!==h.class&&a(c,`class`,null,h.class,i),l&4&&a(c,`style`,p.style,h.style,i),l&8){let e=t.dynamicProps;for(let t=0;t<e.length;t++){let r=e[t],o=p[r],s=h[r];(s!==o||r===`value`)&&a(c,r,o,s,i,n)}}l&1&&e.children!==t.children&&u(c,t.children)}else !s&&d==null&&ie(c,p,h,n,i);((g=h.onVnodeUpdated)||f)&&$r(()=>{g&&Ci(g,n,t,e),f&&Pn(t,e,n,`updated`)},r)},re=(e,t,n,r,i,a,o)=>{for(let s=0;s<t.length;s++){let c=e[s],l=t[s];v(c,l,c.el&&(c.type===ri||!pi(c,l)||c.shapeFlag&198)?d(c.el):n,null,r,i,a,o,!0)}},ie=(e,t,n,r,i)=>{if(t!==n){if(t!==m)for(let o in t)!fe(o)&&!(o in n)&&a(e,o,t[o],null,i,r);for(let o in n){if(fe(o))continue;let s=n[o],c=t[o];s!==c&&o!==`value`&&a(e,o,c,s,i,r)}`value`in n&&a(e,`value`,t.value,n.value,i)}},ae=(e,t,n,i,a,o,c,l,u)=>{let d=t.el=e?e.el:s(``),f=t.anchor=e?e.anchor:s(``),{patchFlag:p,dynamicChildren:m,slotScopeIds:h}=t;h&&(l=l?l.concat(h):h),e==null?(r(d,n,i),r(f,n,i),ne(t.children||[],n,f,a,o,c,l,u)):p>0&&p&64&&m&&e.dynamicChildren&&e.dynamicChildren.length===m.length?(re(e.dynamicChildren,m,n,a,o,c,l),(t.key!=null||a&&t===a.subTree)&&ni(e,t,!0)):de(e,t,n,f,a,o,c,l,u)},oe=(e,t,n,r,i,a,o,s,c)=>{t.slotScopeIds=s,e==null?t.shapeFlag&512?i.ctx.activate(t,n,r,o,c):se(t,n,r,i,a,o,c):ce(e,t,c)},se=(e,t,n,r,i,a,o)=>{let s=e.component=mne(e,r,i);if(rr(e)&&(s.ctx.renderer=Te),_ne(s,!1,o),s.asyncDep){if(i&&i.registerDep(s,le,o),!e.el){let r=s.subTree=hi(ai);b(null,r,t,n),e.placeholder=r.el}}else le(s,e,t,n,i,a,o)},ce=(e,t,n)=>{let r=t.component=e.component;if(Pte(e,t,n))if(r.asyncDep&&!r.asyncResolved){ue(r,t,n);return}else r.next=t,r.update();else t.el=e.el,r.vnode=t},le=(e,t,n,r,i,a,o)=>{let s=()=>{if(e.isMounted){let{next:t,bu:n,u:r,parent:c,vnode:l}=e;{let n=nne(e);if(n){t&&(t.el=l.el,ue(e,t,o)),n.asyncDep.then(()=>{e.isUnmounted||s()});return}}let u=t,f;ti(e,!1),t?(t.el=l.el,ue(e,t,o)):t=l,n&&xe(n),(f=t.props&&t.props.onVnodeBeforeUpdate)&&Ci(f,c,t,l),ti(e,!0);let p=Yr(e),m=e.subTree;e.subTree=p,v(m,p,d(m.el),Se(m),e,i,a),t.el=p.el,u===null&&Ite(e,p.el),r&&$r(r,i),(f=t.props&&t.props.onVnodeUpdated)&&$r(()=>Ci(f,c,t,l),i)}else{let o,{el:s,props:c}=t,{bm:l,m:u,parent:d,root:f,type:p}=e,m=tr(t);if(ti(e,!1),l&&xe(l),!m&&(o=c&&c.onVnodeBeforeMount)&&Ci(o,d,t),ti(e,!0),s&&Oe){let t=()=>{e.subTree=Yr(e),Oe(s,e.subTree,e,i,null)};m&&p.__asyncHydrate?p.__asyncHydrate(s,e,t):t()}else{f.ce&&f.ce._def.shadowRoot!==!1&&f.ce._injectChildStyle(p);let o=e.subTree=Yr(e);v(null,o,n,r,e,i,a),t.el=o.el}if(u&&$r(u,i),!m&&(o=c&&c.onVnodeMounted)){let e=t;$r(()=>Ci(o,d,e),i)}(t.shapeFlag&256||d&&tr(d.vnode)&&d.vnode.shapeFlag&256)&&e.a&&$r(e.a,i),e.isMounted=!0,t=n=r=null}};e.scope.on();let c=e.effect=new Ze(s);e.scope.off();let l=e.update=c.run.bind(c),u=e.job=c.runIfDirty.bind(c);u.i=e,u.id=e.uid,c.scheduler=()=>Sn(u),ti(e,!0),l()},ue=(e,t,n)=>{t.component=e;let r=e.vnode.props;e.vnode=t,e.next=null,Vte(e,t.props,r,n),Zte(e,t.children,n),ft(),Tn(e),pt()},de=(e,t,n,r,i,a,o,s,c=!1)=>{let l=e&&e.children,d=e?e.shapeFlag:0,f=t.children,{patchFlag:p,shapeFlag:m}=t;if(p>0){if(p&128){me(l,f,n,r,i,a,o,s,c);return}else if(p&256){pe(l,f,n,r,i,a,o,s,c);return}}m&8?(d&16&&be(l,i,a),f!==l&&u(n,f)):d&16?m&16?me(l,f,n,r,i,a,o,s,c):be(l,i,a,!0):(d&8&&u(n,``),m&16&&ne(f,n,r,i,a,o,s,c))},pe=(e,t,n,r,i,a,o,s,c)=>{e||=h,t||=h;let l=e.length,u=t.length,d=Math.min(l,u),f;for(f=0;f<d;f++){let r=t[f]=c?xi(t[f]):bi(t[f]);v(e[f],r,n,null,i,a,o,s,c)}l>u?be(e,i,a,!0,!1,d):ne(t,n,r,i,a,o,s,c,d)},me=(e,t,n,r,i,a,o,s,c)=>{let l=0,u=t.length,d=e.length-1,f=u-1;for(;l<=d&&l<=f;){let r=e[l],u=t[l]=c?xi(t[l]):bi(t[l]);if(pi(r,u))v(r,u,n,null,i,a,o,s,c);else break;l++}for(;l<=d&&l<=f;){let r=e[d],l=t[f]=c?xi(t[f]):bi(t[f]);if(pi(r,l))v(r,l,n,null,i,a,o,s,c);else break;d--,f--}if(l>d){if(l<=f){let e=f+1,d=e<u?t[e].el:r;for(;l<=f;)v(null,t[l]=c?xi(t[l]):bi(t[l]),n,d,i,a,o,s,c),l++}}else if(l>f)for(;l<=d;)ge(e[l],i,a,!0),l++;else{let p=l,m=l,g=new Map;for(l=m;l<=f;l++){let e=t[l]=c?xi(t[l]):bi(t[l]);e.key!=null&&g.set(e.key,l)}let _,y=0,b=f-m+1,x=!1,S=0,C=Array(b);for(l=0;l<b;l++)C[l]=0;for(l=p;l<=d;l++){let r=e[l];if(y>=b){ge(r,i,a,!0);continue}let u;if(r.key!=null)u=g.get(r.key);else for(_=m;_<=f;_++)if(C[_-m]===0&&pi(r,t[_])){u=_;break}u===void 0?ge(r,i,a,!0):(C[u-m]=l+1,u>=S?S=u:x=!0,v(r,t[u],n,null,i,a,o,s,c),y++)}let w=x?tne(C):h;for(_=w.length-1,l=b-1;l>=0;l--){let e=m+l,d=t[e],f=t[e+1],p=e+1<u?f.el||ine(f):r;C[l]===0?v(null,d,n,p,i,a,o,s,c):x&&(_<0||l!==w[_]?he(d,n,p,2):_--)}}},he=(e,t,n,a,o=null)=>{let{el:s,type:c,transition:l,children:u,shapeFlag:d}=e;if(d&6){he(e.component.subTree,t,n,a);return}if(d&128){e.suspense.move(t,n,a);return}if(d&64){c.move(e,t,n,Te);return}if(c===ri){r(s,t,n);for(let e=0;e<u.length;e++)he(u[e],t,n,a);r(e.anchor,t,n);return}if(c===oi){S(e,t,n);return}if(a!==2&&d&1&&l)if(a===0)l.beforeEnter(s),r(s,t,n),$r(()=>l.enter(s),o);else{let{leave:a,delayLeave:o,afterLeave:c}=l,u=()=>{e.ctx.isUnmounted?i(s):r(s,t,n)},d=()=>{s._isLeaving&&s[Wn](!0),a(s,()=>{u(),c&&c()})};o?o(s,u,d):d()}else r(s,t,n)},ge=(e,t,n,r=!1,i=!1)=>{let{type:a,props:o,ref:s,children:c,dynamicChildren:l,shapeFlag:u,patchFlag:d,dirs:f,cacheIndex:p}=e;if(d===-2&&(i=!1),s!=null&&(ft(),er(s,null,n,e,!0),pt()),p!=null&&(t.renderCache[p]=void 0),u&256){t.ctx.deactivate(e);return}let m=u&1&&f,h=!tr(e),g;if(h&&(g=o&&o.onVnodeBeforeUnmount)&&Ci(g,t,e),u&6)ye(e.component,n,r);else{if(u&128){e.suspense.unmount(n,r);return}m&&Pn(e,null,t,`beforeUnmount`),u&64?e.type.remove(e,t,n,Te,r):l&&!l.hasOnce&&(a!==ri||d>0&&d&64)?be(l,t,n,!1,!0):(a===ri&&d&384||!i&&u&16)&&be(c,t,n),r&&_e(e)}(h&&(g=o&&o.onVnodeUnmounted)||m)&&$r(()=>{g&&Ci(g,t,e),m&&Pn(e,null,t,`unmounted`)},n)},_e=e=>{let{type:t,el:n,anchor:r,transition:a}=e;if(t===ri){ve(n,r);return}if(t===oi){C(e);return}let o=()=>{i(n),a&&!a.persisted&&a.afterLeave&&a.afterLeave()};if(e.shapeFlag&1&&a&&!a.persisted){let{leave:t,delayLeave:r}=a,i=()=>t(n,o);r?r(e.el,o,i):i()}else o()},ve=(e,t)=>{let n;for(;e!==t;)n=f(e),i(e),e=n;i(t)},ye=(e,t,n)=>{let{bum:r,scope:i,job:a,subTree:o,um:s,m:c,a:l}=e;rne(c),rne(l),r&&xe(r),i.stop(),a&&(a.flags|=8,ge(o,e,t,n)),s&&$r(s,t),$r(()=>{e.isUnmounted=!0},t)},be=(e,t,n,r=!1,i=!1,a=0)=>{for(let o=a;o<e.length;o++)ge(e[o],t,n,r,i)},Se=e=>{if(e.shapeFlag&6)return Se(e.component.subTree);if(e.shapeFlag&128)return e.suspense.next();let t=f(e.anchor||e.el),n=t&&t[Wee];return n?f(n):t},Ce=!1,we=(e,t,n)=>{let r;e==null?t._vnode&&(ge(t._vnode,null,null,!0),r=t._vnode.component):v(t._vnode||null,e,t,null,null,null,n),t._vnode=e,Ce||=(Ce=!0,Tn(r),En(),!1)},Te={p:v,um:ge,m:he,r:_e,mt:se,mc:ne,pc:de,pbc:re,n:Se,o:e},De,Oe;return t&&([De,Oe]=t(Te)),{render:we,hydrate:De,createApp:Dte(we,De)}}function ei({type:e,props:t},n){return n===`svg`&&e===`foreignObject`||n===`mathml`&&e===`annotation-xml`&&t&&t.encoding&&t.encoding.includes(`html`)?void 0:n}function ti({effect:e,job:t},n){n?(e.flags|=32,t.flags|=4):(e.flags&=-33,t.flags&=-5)}function ene(e,t){return(!e||e&&!e.pendingBranch)&&t&&!t.persisted}function ni(e,t,n=!1){let r=e.children,i=t.children;if(w(r)&&w(i))for(let t=0;t<r.length;t++){let a=r[t],o=i[t];o.shapeFlag&1&&!o.dynamicChildren&&((o.patchFlag<=0||o.patchFlag===32)&&(o=i[t]=xi(i[t]),o.el=a.el),!n&&o.patchFlag!==-2&&ni(a,o)),o.type===ii&&(o.patchFlag===-1?o.__elIndex=t+(e.type===ri?1:0):o.el=a.el),o.type===ai&&!o.el&&(o.el=a.el)}}function tne(e){let t=e.slice(),n=[0],r,i,a,o,s,c=e.length;for(r=0;r<c;r++){let c=e[r];if(c!==0){if(i=n[n.length-1],e[i]<c){t[r]=i,n.push(r);continue}for(a=0,o=n.length-1;a<o;)s=a+o>>1,e[n[s]]<c?a=s+1:o=s;c<e[n[a]]&&(a>0&&(t[r]=n[a-1]),n[a]=r)}}for(a=n.length,o=n[a-1];a-- >0;)n[a]=o,o=t[o];return n}function nne(e){let t=e.subTree.component;if(t)return t.asyncDep&&!t.asyncResolved?t:nne(t)}function rne(e){if(e)for(let t=0;t<e.length;t++)e[t].flags|=8}function ine(e){if(e.placeholder)return e.placeholder;let t=e.component;return t?ine(t.subTree):null}var ane=e=>e.__isSuspense;function one(e,t){t&&t.pendingBranch?w(e)?t.effects.push(...e):t.effects.push(e):wn(e)}var ri=Symbol.for(`v-fgt`),ii=Symbol.for(`v-txt`),ai=Symbol.for(`v-cmt`),oi=Symbol.for(`v-stc`),si=[],ci=null;function k(e=!1){si.push(ci=e?null:[])}function sne(){si.pop(),ci=si[si.length-1]||null}var li=1;function ui(e,t=!1){li+=e,e<0&&ci&&t&&(ci.hasOnce=!0)}function cne(e){return e.dynamicChildren=li>0?ci||h:null,sne(),li>0&&ci&&ci.push(e),e}function A(e,t,n,r,i,a){return cne(j(e,t,n,r,i,a,!0))}function di(e,t,n,r,i){return cne(hi(e,t,n,r,i,!0))}function fi(e){return e?e.__v_isVNode===!0:!1}function pi(e,t){return e.type===t.type&&e.key===t.key}var lne=({key:e})=>e??null,mi=({ref:e,ref_key:t,ref_for:n})=>(typeof e==`number`&&(e=``+e),e==null?null:re(e)||en(e)||T(e)?{i:kn,r:e,k:t,f:!!n}:e);function j(e,t=null,n=null,r=0,i=null,a=e===ri?0:1,o=!1,s=!1){let c={__v_isVNode:!0,__v_skip:!0,type:e,props:t,key:t&&lne(t),ref:t&&mi(t),scopeId:An,slotScopeIds:null,children:n,component:null,suspense:null,ssContent:null,ssFallback:null,dirs:null,transition:null,el:null,anchor:null,target:null,targetStart:null,targetAnchor:null,staticCount:0,shapeFlag:a,patchFlag:r,dynamicProps:i,dynamicChildren:null,appContext:null,ctx:kn};return s?(Si(c,n),a&128&&e.normalize(c)):n&&(c.shapeFlag|=re(n)?8:16),li>0&&!o&&ci&&(c.patchFlag>0||a&6)&&c.patchFlag!==32&&ci.push(c),c}var hi=une;function une(e,t=null,n=null,r=0,i=null,a=!1){if((!e||e===yr)&&(e=ai),fi(e)){let r=_i(e,t,!0);return n&&Si(r,n),li>0&&!a&&ci&&(r.shapeFlag&6?ci[ci.indexOf(e)]=r:ci.push(r)),r.patchFlag=-2,r}if(Ene(e)&&(e=e.__vccOpts),t){t=gi(t);let{class:e,style:n}=t;e&&!re(e)&&(t.class=Me(e)),ae(n)&&(Yt(n)&&!w(n)&&(n=b({},n)),t.style=De(n))}let o=re(e)?1:ane(e)?128:Gee(e)?64:ae(e)?4:T(e)?2:0;return j(e,t,n,r,i,o,a,!0)}function gi(e){return e?Yt(e)||zte(e)?b({},e):e:null}function _i(e,t,n=!1,r=!1){let{props:i,ref:a,patchFlag:o,children:s,transition:c}=e,l=t?M(i||{},t):i,u={__v_isVNode:!0,__v_skip:!0,type:e.type,props:l,key:l&&lne(l),ref:t&&t.ref?n&&a?w(a)?a.concat(mi(t)):[a,mi(t)]:mi(t):a,scopeId:e.scopeId,slotScopeIds:e.slotScopeIds,children:s,target:e.target,targetStart:e.targetStart,targetAnchor:e.targetAnchor,staticCount:e.staticCount,shapeFlag:e.shapeFlag,patchFlag:t&&e.type!==ri?o===-1?16:o|16:o,dynamicProps:e.dynamicProps,dynamicChildren:e.dynamicChildren,appContext:e.appContext,dirs:e.dirs,transition:c,component:e.component,suspense:e.suspense,ssContent:e.ssContent&&_i(e.ssContent),ssFallback:e.ssFallback&&_i(e.ssFallback),placeholder:e.placeholder,el:e.el,anchor:e.anchor,ctx:e.ctx,ce:e.ce};return c&&r&&Yn(u,c.clone(u)),u}function vi(e=` `,t=0){return hi(ii,null,e,t)}function dne(e,t){let n=hi(oi,null,e);return n.staticCount=t,n}function yi(e=``,t=!1){return t?(k(),di(ai,null,e)):hi(ai,null,e)}function bi(e){return e==null||typeof e==`boolean`?hi(ai):w(e)?hi(ri,null,e.slice()):fi(e)?xi(e):hi(ii,null,String(e))}function xi(e){return e.el===null&&e.patchFlag!==-1||e.memo?e:_i(e)}function Si(e,t){let n=0,{shapeFlag:r}=e;if(t==null)t=null;else if(w(t))n=16;else if(typeof t==`object`)if(r&65){let n=t.default;n&&(n._c&&(n._d=!1),Si(e,n()),n._c&&(n._d=!0));return}else{n=32;let r=t._;!r&&!zte(t)?t._ctx=kn:r===3&&kn&&(kn.slots._===1?t._=1:(t._=2,e.patchFlag|=1024))}else T(t)?(t={default:t,_ctx:kn},n=32):(t=String(t),r&64?(n=16,t=[vi(t)]):n=8);e.children=t,e.shapeFlag|=n}function M(...e){let t={};for(let n=0;n<e.length;n++){let r=e[n];for(let e in r)if(e===`class`)t.class!==r.class&&(t.class=Me([t.class,r.class]));else if(e===`style`)t.style=De([t.style,r.style]);else if(v(e)){let n=t[e],i=r[e];i&&n!==i&&!(w(n)&&n.includes(i))&&(t[e]=n?[].concat(n,i):i)}else e!==``&&(t[e]=r[e])}return t}function Ci(e,t,n,r=null){fn(e,t,7,[n,r])}var fne=Tte(),pne=0;function mne(e,t,n){let r=e.type,i=(t?t.appContext:e.appContext)||fne,a={uid:pne++,vnode:e,type:r,parent:t,appContext:i,root:null,next:null,subTree:null,effect:null,update:null,job:null,scope:new Ge(!0),render:null,proxy:null,exposed:null,exposeProxy:null,withProxy:null,provides:t?t.provides:Object.create(i.provides),ids:t?t.ids:[``,0,0],accessCache:null,renderCache:[],components:null,directives:null,propsOptions:Wte(r,i),emitsOptions:jte(r,i),emit:null,emitted:null,propsDefaults:m,inheritAttrs:r.inheritAttrs,ctx:m,data:m,props:m,attrs:m,slots:m,refs:m,setupState:m,setupContext:null,suspense:n,suspenseId:n?n.pendingId:0,asyncDep:null,asyncResolved:!1,isMounted:!1,isUnmounted:!1,isDeactivated:!1,bc:null,c:null,bm:null,m:null,bu:null,u:null,um:null,bum:null,da:null,a:null,rtg:null,rtc:null,ec:null,sp:null};return a.ctx={_:a},a.root=t?t.root:a,a.emit=kte.bind(null,a),e.ce&&e.ce(a),a}var wi=null,Ti=()=>wi||kn,Ei,Di;{let e=Ee(),t=(t,n)=>{let r;return(r=e[t])||(r=e[t]=[]),r.push(n),e=>{r.length>1?r.forEach(t=>t(e)):r[0](e)}};Ei=t(`__VUE_INSTANCE_SETTERS__`,e=>wi=e),Di=t(`__VUE_SSR_SETTERS__`,e=>ki=e)}var Oi=e=>{let t=wi;return Ei(e),e.scope.on(),()=>{e.scope.off(),Ei(t)}},hne=()=>{wi&&wi.scope.off(),Ei(null)};function gne(e){return e.vnode.shapeFlag&4}var ki=!1;function _ne(e,t=!1,n=!1){t&&Di(t);let{props:r,children:i}=e.vnode,a=gne(e);Bte(e,r,a,t),Xte(e,i,n||t);let o=a?vne(e,t):void 0;return t&&Di(!1),o}function vne(e,t){let n=e.type;e.accessCache=Object.create(null),e.proxy=new Proxy(e.ctx,_te);let{setup:r}=n;if(r){ft();let n=e.setupContext=r.length>1?wne(e):null,i=Oi(e),a=dn(r,e,0,[e.props,n]),o=oe(a);if(pt(),i(),(o||e.sp)&&!tr(e)&&Qn(e),o){if(a.then(hne,hne),t)return a.then(n=>{yne(e,n,t)}).catch(t=>{pn(t,e,0)});e.asyncDep=a}else yne(e,a,t)}else Sne(e,t)}function yne(e,t,n){T(t)?e.type.__ssrInlineRender?e.ssrRender=t:e.render=t:ae(t)&&(e.setupState=Tee(t)),Sne(e,n)}var bne,xne;function Sne(e,t,n){let r=e.type;if(!e.render){if(!t&&bne&&!r.render){let t=r.template||Br(e).template;if(t){let{isCustomElement:n,compilerOptions:i}=e.appContext.config,{delimiters:a,compilerOptions:o}=r;r.render=bne(t,b(b({isCustomElement:n,delimiters:a},i),o))}}e.render=r.render||g,xne&&xne(e)}{let t=Oi(e);ft();try{yte(e)}finally{pt(),t()}}}var Cne={get(e,t){return Ct(e,`get`,``),e[t]}};function wne(e){return{attrs:new Proxy(e.attrs,Cne),slots:e.slots,emit:e.emit,expose:t=>{e.exposed=t||{}}}}function Ai(e){return e.exposed?e.exposeProxy||=new Proxy(Tee(Zt(e.exposed)),{get(t,n){if(n in t)return t[n];if(n in kr)return kr[n](e)},has(e,t){return t in e||t in kr}}):e.proxy}function Tne(e,t=!0){return T(e)?e.displayName||e.name:e.name||t&&e.__name}function Ene(e){return T(e)&&`__vccOpts`in e}var ji=(e,t)=>jee(e,t,ki);function Mi(e,t,n){try{ui(-1);let r=arguments.length;return r===2?ae(t)&&!w(t)?fi(t)?hi(e,null,[t]):hi(e,t):hi(e,null,t):(r>3?n=Array.prototype.slice.call(arguments,2):r===3&&fi(n)&&(n=[n]),hi(e,t,n))}finally{ui(1)}}function Dne(e,t){let n=e.memo;if(n.length!=t.length)return!1;for(let e=0;e<n.length;e++)if(be(n[e],t[e]))return!1;return li>0&&ci&&ci.push(e),!0}var One=`3.5.27`,Ni=void 0,kne=typeof window<`u`&&window.trustedTypes;if(kne)try{Ni=kne.createPolicy(`vue`,{createHTML:e=>e})}catch{}var Ane=Ni?e=>Ni.createHTML(e):e=>e,jne=`http://www.w3.org/2000/svg`,Mne=`http://www.w3.org/1998/Math/MathML`,Pi=typeof document<`u`?document:null,Nne=Pi&&Pi.createElement(`template`),Pne={insert:(e,t,n)=>{t.insertBefore(e,n||null)},remove:e=>{let t=e.parentNode;t&&t.removeChild(e)},createElement:(e,t,n,r)=>{let i=t===`svg`?Pi.createElementNS(jne,e):t===`mathml`?Pi.createElementNS(Mne,e):n?Pi.createElement(e,{is:n}):Pi.createElement(e);return e===`select`&&r&&r.multiple!=null&&i.setAttribute(`multiple`,r.multiple),i},createText:e=>Pi.createTextNode(e),createComment:e=>Pi.createComment(e),setText:(e,t)=>{e.nodeValue=t},setElementText:(e,t)=>{e.textContent=t},parentNode:e=>e.parentNode,nextSibling:e=>e.nextSibling,querySelector:e=>Pi.querySelector(e),setScopeId(e,t){e.setAttribute(t,``)},insertStaticContent(e,t,n,r,i,a){let o=n?n.previousSibling:t.lastChild;if(i&&(i===a||i.nextSibling))for(;t.insertBefore(i.cloneNode(!0),n),!(i===a||!(i=i.nextSibling)););else{Nne.innerHTML=Ane(r===`svg`?`<svg>${e}</svg>`:r===`mathml`?`<math>${e}</math>`:e);let i=Nne.content;if(r===`svg`||r===`mathml`){let e=i.firstChild;for(;e.firstChild;)i.appendChild(e.firstChild);i.removeChild(e)}t.insertBefore(i,n)}return[o?o.nextSibling:t.firstChild,n?n.previousSibling:t.lastChild]}},Fi=`transition`,Ii=`animation`,Li=Symbol(`_vtc`),Fne={name:String,type:String,css:{type:Boolean,default:!0},duration:[String,Number,Object],enterFromClass:String,enterActiveClass:String,enterToClass:String,appearFromClass:String,appearActiveClass:String,appearToClass:String,leaveFromClass:String,leaveActiveClass:String,leaveToClass:String},Ri=b({},$ee,Fne),zi=(e=>(e.displayName=`Transition`,e.props=Ri,e))((e,{slots:t})=>Mi(rte,Hi(e),t)),Bi=(e,t=[])=>{w(e)?e.forEach(e=>e(...t)):e&&e(...t)},Vi=e=>e?w(e)?e.some(e=>e.length>1):e.length>1:!1;function Hi(e){let t={};for(let n in e)n in Fne||(t[n]=e[n]);if(e.css===!1)return t;let{name:n=`v`,type:r,duration:i,enterFromClass:a=`${n}-enter-from`,enterActiveClass:o=`${n}-enter-active`,enterToClass:s=`${n}-enter-to`,appearFromClass:c=a,appearActiveClass:l=o,appearToClass:u=s,leaveFromClass:d=`${n}-leave-from`,leaveActiveClass:f=`${n}-leave-active`,leaveToClass:p=`${n}-leave-to`}=e,m=Ine(i),h=m&&m[0],g=m&&m[1],{onBeforeEnter:_,onEnter:v,onEnterCancelled:y,onLeave:x,onLeaveCancelled:S,onBeforeAppear:C=_,onAppear:w=v,onAppearCancelled:ee=y}=t,te=(e,t,n,r)=>{e._enterCancelled=r,Gi(e,t?u:s),Gi(e,t?l:o),n&&n()},ne=(e,t)=>{e._isLeaving=!1,Gi(e,d),Gi(e,p),Gi(e,f),t&&t()},T=e=>(t,n)=>{let i=e?w:v,o=()=>te(t,e,n);Bi(i,[t,o]),Ki(()=>{Gi(t,e?c:a),Wi(t,e?u:s),Vi(i)||qi(t,r,h,o)})};return b(t,{onBeforeEnter(e){Bi(_,[e]),Wi(e,a),Wi(e,o)},onBeforeAppear(e){Bi(C,[e]),Wi(e,c),Wi(e,l)},onEnter:T(!1),onAppear:T(!0),onLeave(e,t){e._isLeaving=!0;let n=()=>ne(e,t);Wi(e,d),e._enterCancelled?(Wi(e,f),Zi(e)):(Zi(e),Wi(e,f)),Ki(()=>{e._isLeaving&&(Gi(e,d),Wi(e,p),Vi(x)||qi(e,r,g,n))}),Bi(x,[e,n])},onEnterCancelled(e){te(e,!1,void 0,!0),Bi(y,[e])},onAppearCancelled(e){te(e,!0,void 0,!0),Bi(ee,[e])},onLeaveCancelled(e){ne(e),Bi(S,[e])}})}function Ine(e){if(e==null)return null;if(ae(e))return[Ui(e.enter),Ui(e.leave)];{let t=Ui(e);return[t,t]}}function Ui(e){return we(e)}function Wi(e,t){t.split(/\s+/).forEach(t=>t&&e.classList.add(t)),(e[Li]||(e[Li]=new Set)).add(t)}function Gi(e,t){t.split(/\s+/).forEach(t=>t&&e.classList.remove(t));let n=e[Li];n&&(n.delete(t),n.size||(e[Li]=void 0))}function Ki(e){requestAnimationFrame(()=>{requestAnimationFrame(e)})}var Lne=0;function qi(e,t,n,r){let i=e._endId=++Lne,a=()=>{i===e._endId&&r()};if(n!=null)return setTimeout(a,n);let{type:o,timeout:s,propCount:c}=Ji(e,t);if(!o)return r();let l=o+`end`,u=0,d=()=>{e.removeEventListener(l,f),a()},f=t=>{t.target===e&&++u>=c&&d()};setTimeout(()=>{u<c&&d()},s+1),e.addEventListener(l,f)}function Ji(e,t){let n=window.getComputedStyle(e),r=e=>(n[e]||``).split(`, `),i=r(`${Fi}Delay`),a=r(`${Fi}Duration`),o=Yi(i,a),s=r(`${Ii}Delay`),c=r(`${Ii}Duration`),l=Yi(s,c),u=null,d=0,f=0;t===Fi?o>0&&(u=Fi,d=o,f=a.length):t===Ii?l>0&&(u=Ii,d=l,f=c.length):(d=Math.max(o,l),u=d>0?o>l?Fi:Ii:null,f=u?u===Fi?a.length:c.length:0);let p=u===Fi&&/\b(?:transform|all)(?:,|$)/.test(r(`${Fi}Property`).toString());return{type:u,timeout:d,propCount:f,hasTransform:p}}function Yi(e,t){for(;e.length<t.length;)e=e.concat(e);return Math.max(...t.map((t,n)=>Xi(t)+Xi(e[n])))}function Xi(e){return e===`auto`?0:Number(e.slice(0,-1).replace(`,`,`.`))*1e3}function Zi(e){return(e?e.ownerDocument:document).body.offsetHeight}function Rne(e,t,n){let r=e[Li];r&&(t=(t?[t,...r]:[...r]).join(` `)),t==null?e.removeAttribute(`class`):n?e.setAttribute(`class`,t):e.className=t}var Qi=Symbol(`_vod`),$i=Symbol(`_vsh`),ea={name:`show`,beforeMount(e,{value:t},{transition:n}){e[Qi]=e.style.display===`none`?``:e.style.display,n&&t?n.beforeEnter(e):ta(e,t)},mounted(e,{value:t},{transition:n}){n&&t&&n.enter(e)},updated(e,{value:t,oldValue:n},{transition:r}){!t!=!n&&(r?t?(r.beforeEnter(e),ta(e,!0),r.enter(e)):r.leave(e,()=>{ta(e,!1)}):ta(e,t))},beforeUnmount(e,{value:t}){ta(e,t)}};function ta(e,t){e.style.display=t?e[Qi]:`none`,e[$i]=!t}var na=Symbol(``);function zne(e){let t=Ti();if(!t)return;let n=t.ut=(n=e(t.proxy))=>{Array.from(document.querySelectorAll(`[data-v-owner="${t.uid}"]`)).forEach(e=>ia(e,n))},r=()=>{let r=e(t.proxy);t.ce?ia(t.ce,r):ra(t.subTree,r),n(r)};dr(()=>{wn(r)}),ur(()=>{Ln(r,g,{flush:`post`});let e=new MutationObserver(r);e.observe(t.subTree.el.parentNode,{childList:!0}),mr(()=>e.disconnect())})}function ra(e,t){if(e.shapeFlag&128){let n=e.suspense;e=n.activeBranch,n.pendingBranch&&!n.isHydrating&&n.effects.push(()=>{ra(n.activeBranch,t)})}for(;e.component;)e=e.component.subTree;if(e.shapeFlag&1&&e.el)ia(e.el,t);else if(e.type===ri)e.children.forEach(e=>ra(e,t));else if(e.type===oi){let{el:n,anchor:r}=e;for(;n&&(ia(n,t),n!==r);)n=n.nextSibling}}function ia(e,t){if(e.nodeType===1){let n=e.style,r=``;for(let e in t){let i=Ue(t[e]);n.setProperty(`--${e}`,i),r+=`--${e}: ${i};`}n[na]=r}}var Bne=/(?:^|;)\s*display\s*:/;function Vne(e,t,n){let r=e.style,i=re(n),a=!1;if(n&&!i){if(t)if(re(t))for(let e of t.split(`;`)){let t=e.slice(0,e.indexOf(`:`)).trim();n[t]??oa(r,t,``)}else for(let e in t)n[e]??oa(r,e,``);for(let e in n)e===`display`&&(a=!0),oa(r,e,n[e])}else if(i){if(t!==n){let e=r[na];e&&(n+=`;`+e),r.cssText=n,a=Bne.test(n)}}else t&&e.removeAttribute(`style`);Qi in e&&(e[Qi]=a?r.display:``,e[$i]&&(r.display=`none`))}var aa=/\s*!important$/;function oa(e,t,n){if(w(n))n.forEach(n=>oa(e,t,n));else if(n??=``,t.startsWith(`--`))e.setProperty(t,n);else{let r=Hne(e,t);aa.test(n)?e.setProperty(_e(r),n.replace(aa,``),`important`):e[r]=n}}var sa=[`Webkit`,`Moz`,`ms`],ca={};function Hne(e,t){let n=ca[t];if(n)return n;let r=he(t);if(r!==`filter`&&r in e)return ca[t]=r;r=ve(r);for(let n=0;n<sa.length;n++){let i=sa[n]+r;if(i in e)return ca[t]=i}return t}var la=`http://www.w3.org/1999/xlink`;function ua(e,t,n,r,i,a=Fe(t)){r&&t.startsWith(`xlink:`)?n==null?e.removeAttributeNS(la,t.slice(6,t.length)):e.setAttributeNS(la,t,n):n==null||a&&!Ie(n)?e.removeAttribute(t):e.setAttribute(t,a?``:ie(n)?String(n):n)}function da(e,t,n,r,i){if(t===`innerHTML`||t===`textContent`){n!=null&&(e[t]=t===`innerHTML`?Ane(n):n);return}let a=e.tagName;if(t===`value`&&a!==`PROGRESS`&&!a.includes(`-`)){let r=a===`OPTION`?e.getAttribute(`value`)||``:e.value,i=n==null?e.type===`checkbox`?`on`:``:String(n);(r!==i||!(`_value`in e))&&(e.value=i),n??e.removeAttribute(t),e._value=n;return}let o=!1;if(n===``||n==null){let r=typeof e[t];r===`boolean`?n=Ie(n):n==null&&r===`string`?(n=``,o=!0):r===`number`&&(n=0,o=!0)}try{e[t]=n}catch{}o&&e.removeAttribute(i||t)}function fa(e,t,n,r){e.addEventListener(t,n,r)}function Une(e,t,n,r){e.removeEventListener(t,n,r)}var pa=Symbol(`_vei`);function Wne(e,t,n,r,i=null){let a=e[pa]||(e[pa]={}),o=a[t];if(r&&o)o.value=r;else{let[n,s]=Gne(t);r?fa(e,n,a[t]=Jne(r,i),s):o&&(Une(e,n,o,s),a[t]=void 0)}}var ma=/(?:Once|Passive|Capture)$/;function Gne(e){let t;if(ma.test(e)){t={};let n;for(;n=e.match(ma);)e=e.slice(0,e.length-n[0].length),t[n[0].toLowerCase()]=!0}return[e[2]===`:`?e.slice(3):_e(e.slice(2)),t]}var ha=0,Kne=Promise.resolve(),qne=()=>ha||=(Kne.then(()=>ha=0),Date.now());function Jne(e,t){let n=e=>{if(!e._vts)e._vts=Date.now();else if(e._vts<=n.attached)return;fn(Yne(e,n.value),t,5,[e])};return n.value=e,n.attached=qne(),n}function Yne(e,t){if(w(t)){let n=e.stopImmediatePropagation;return e.stopImmediatePropagation=()=>{n.call(e),e._stopped=!0},t.map(e=>t=>!t._stopped&&e&&e(t))}else return t}var ga=e=>e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)>96&&e.charCodeAt(2)<123,Xne=(e,t,n,r,i,a)=>{let o=i===`svg`;t===`class`?Rne(e,r,o):t===`style`?Vne(e,n,r):v(t)?y(t)||Wne(e,t,n,r,a):(t[0]===`.`?(t=t.slice(1),!0):t[0]===`^`?(t=t.slice(1),!1):Zne(e,t,r,o))?(da(e,t,r),!e.tagName.includes(`-`)&&(t===`value`||t===`checked`||t===`selected`)&&ua(e,t,r,o,a,t!==`value`)):e._isVueCE&&(/[A-Z]/.test(t)||!re(r))?da(e,he(t),r,a,t):(t===`true-value`?e._trueValue=r:t===`false-value`&&(e._falseValue=r),ua(e,t,r,o))};function Zne(e,t,n,r){if(r)return!!(t===`innerHTML`||t===`textContent`||t in e&&ga(t)&&T(n));if(t===`spellcheck`||t===`draggable`||t===`translate`||t===`autocorrect`||t===`sandbox`&&e.tagName===`IFRAME`||t===`form`||t===`list`&&e.tagName===`INPUT`||t===`type`&&e.tagName===`TEXTAREA`)return!1;if(t===`width`||t===`height`){let t=e.tagName;if(t===`IMG`||t===`VIDEO`||t===`CANVAS`||t===`SOURCE`)return!1}return ga(t)&&re(n)?!1:t in e}var _a=new WeakMap,va=new WeakMap,ya=Symbol(`_moveCb`),ba=Symbol(`_enterCb`),Qne=(e=>(delete e.props.mode,e))({name:`TransitionGroup`,props:b({},Ri,{tag:String,moveClass:String}),setup(e,{slots:t}){let n=Ti(),r=Qee(),i,a;return fr(()=>{if(!i.length)return;let t=e.moveClass||`${e.name||`v`}-move`;if(!nre(i[0].el,n.vnode.el,t)){i=[];return}i.forEach($ne),i.forEach(ere);let r=i.filter(tre);Zi(n.vnode.el),r.forEach(e=>{let n=e.el,r=n.style;Wi(n,t),r.transform=r.webkitTransform=r.transitionDuration=``;let i=n[ya]=e=>{e&&e.target!==n||(!e||e.propertyName.endsWith(`transform`))&&(n.removeEventListener(`transitionend`,i),n[ya]=null,Gi(n,t))};n.addEventListener(`transitionend`,i)}),i=[]}),()=>{let o=Xt(e),s=Hi(o),c=o.tag||ri;if(i=[],a)for(let e=0;e<a.length;e++){let t=a[e];t.el&&t.el instanceof Element&&(i.push(t),Yn(t,qn(t,s,r,n)),_a.set(t,{left:t.el.offsetLeft,top:t.el.offsetTop}))}a=t.default?Xn(t.default()):[];for(let e=0;e<a.length;e++){let t=a[e];t.key!=null&&Yn(t,qn(t,s,r,n))}return hi(c,null,a)}}});function $ne(e){let t=e.el;t[ya]&&t[ya](),t[ba]&&t[ba]()}function ere(e){va.set(e,{left:e.el.offsetLeft,top:e.el.offsetTop})}function tre(e){let t=_a.get(e),n=va.get(e),r=t.left-n.left,i=t.top-n.top;if(r||i){let t=e.el.style;return t.transform=t.webkitTransform=`translate(${r}px,${i}px)`,t.transitionDuration=`0s`,e}}function nre(e,t,n){let r=e.cloneNode(),i=e[Li];i&&i.forEach(e=>{e.split(/\s+/).forEach(e=>e&&r.classList.remove(e))}),n.split(/\s+/).forEach(e=>e&&r.classList.add(e)),r.style.display=`none`;let a=t.nodeType===1?t:t.parentNode;a.appendChild(r);let{hasTransform:o}=Ji(r);return a.removeChild(r),o}var xa=e=>{let t=e.props[`onUpdate:modelValue`]||!1;return w(t)?e=>xe(t,e):t};function rre(e){e.target.composing=!0}function Sa(e){let t=e.target;t.composing&&(t.composing=!1,t.dispatchEvent(new Event(`input`)))}var Ca=Symbol(`_assign`);function wa(e,t,n){return t&&(e=e.trim()),n&&(e=Ce(e)),e}var Ta={created(e,{modifiers:{lazy:t,trim:n,number:r}},i){e[Ca]=xa(i);let a=r||i.props&&i.props.type===`number`;fa(e,t?`change`:`input`,t=>{t.target.composing||e[Ca](wa(e.value,n,a))}),(n||a)&&fa(e,`change`,()=>{e.value=wa(e.value,n,a)}),t||(fa(e,`compositionstart`,rre),fa(e,`compositionend`,Sa),fa(e,`change`,Sa))},mounted(e,{value:t}){e.value=t??``},beforeUpdate(e,{value:t,oldValue:n,modifiers:{lazy:r,trim:i,number:a}},o){if(e[Ca]=xa(o),e.composing)return;let s=(a||e.type===`number`)&&!/^0\d/.test(e.value)?Ce(e.value):e.value,c=t??``;s!==c&&(document.activeElement===e&&e.type!==`range`&&(r&&t===n||i&&e.value.trim()===c)||(e.value=c))}},Ea={deep:!0,created(e,t,n){e[Ca]=xa(n),fa(e,`change`,()=>{let t=e._modelValue,n=ja(e),r=e.checked,i=e[Ca];if(w(t)){let e=ze(t,n),a=e!==-1;if(r&&!a)i(t.concat(n));else if(!r&&a){let n=[...t];n.splice(e,1),i(n)}}else if(te(t)){let e=new Set(t);r?e.add(n):e.delete(n),i(e)}else i(Ma(e,r))})},mounted:Da,beforeUpdate(e,t,n){e[Ca]=xa(n),Da(e,t,n)}};function Da(e,{value:t,oldValue:n},r){e._modelValue=t;let i;if(w(t))i=ze(t,r.props.value)>-1;else if(te(t))i=t.has(r.props.value);else{if(t===n)return;i=Re(t,Ma(e,!0))}e.checked!==i&&(e.checked=i)}var Oa={created(e,{value:t},n){e.checked=Re(t,n.props.value),e[Ca]=xa(n),fa(e,`change`,()=>{e[Ca](ja(e))})},beforeUpdate(e,{value:t,oldValue:n},r){e[Ca]=xa(r),t!==n&&(e.checked=Re(t,r.props.value))}},ka={deep:!0,created(e,{value:t,modifiers:{number:n}},r){let i=te(t);fa(e,`change`,()=>{let t=Array.prototype.filter.call(e.options,e=>e.selected).map(e=>n?Ce(ja(e)):ja(e));e[Ca](e.multiple?i?new Set(t):t:t[0]),e._assigning=!0,xn(()=>{e._assigning=!1})}),e[Ca]=xa(r)},mounted(e,{value:t}){Aa(e,t)},beforeUpdate(e,t,n){e[Ca]=xa(n)},updated(e,{value:t}){e._assigning||Aa(e,t)}};function Aa(e,t){let n=e.multiple,r=w(t);if(!(n&&!r&&!te(t))){for(let i=0,a=e.options.length;i<a;i++){let a=e.options[i],o=ja(a);if(n)if(r){let e=typeof o;e===`string`||e===`number`?a.selected=t.some(e=>String(e)===String(o)):a.selected=ze(t,o)>-1}else a.selected=t.has(o);else if(Re(ja(a),t)){e.selectedIndex!==i&&(e.selectedIndex=i);return}}!n&&e.selectedIndex!==-1&&(e.selectedIndex=-1)}}function ja(e){return`_value`in e?e._value:e.value}function Ma(e,t){let n=t?`_trueValue`:`_falseValue`;return n in e?e[n]:t}var ire={created(e,t,n){Na(e,t,n,null,`created`)},mounted(e,t,n){Na(e,t,n,null,`mounted`)},beforeUpdate(e,t,n,r){Na(e,t,n,r,`beforeUpdate`)},updated(e,t,n,r){Na(e,t,n,r,`updated`)}};function are(e,t){switch(e){case`SELECT`:return ka;case`TEXTAREA`:return Ta;default:switch(t){case`checkbox`:return Ea;case`radio`:return Oa;default:return Ta}}}function Na(e,t,n,r,i){let a=are(e.tagName,n.props&&n.props.type)[i];a&&a(e,t,n,r)}var ore=[`ctrl`,`shift`,`alt`,`meta`],sre={stop:e=>e.stopPropagation(),prevent:e=>e.preventDefault(),self:e=>e.target!==e.currentTarget,ctrl:e=>!e.ctrlKey,shift:e=>!e.shiftKey,alt:e=>!e.altKey,meta:e=>!e.metaKey,left:e=>`button`in e&&e.button!==0,middle:e=>`button`in e&&e.button!==1,right:e=>`button`in e&&e.button!==2,exact:(e,t)=>ore.some(n=>e[`${n}Key`]&&!t.includes(n))},Pa=(e,t)=>{let n=e._withMods||={},r=t.join(`.`);return n[r]||(n[r]=((n,...r)=>{for(let e=0;e<t.length;e++){let r=sre[t[e]];if(r&&r(n,t))return}return e(n,...r)}))},cre={esc:`escape`,space:` `,up:`arrow-up`,left:`arrow-left`,right:`arrow-right`,down:`arrow-down`,delete:`backspace`},Fa=(e,t)=>{let n=e._withKeys||={},r=t.join(`.`);return n[r]||(n[r]=(n=>{if(!(`key`in n))return;let r=_e(n.key);if(t.some(e=>e===r||cre[e]===r))return e(n)}))},lre=b({patchProp:Xne},Pne),ure;function Ia(){return ure||=Qte(lre)}var dre=((...e)=>{Ia().render(...e)}),La=((...e)=>{let t=Ia().createApp(...e),{mount:n}=t;return t.mount=e=>{let r=pre(e);if(!r)return;let i=t._component;!T(i)&&!i.render&&!i.template&&(i.template=r.innerHTML),r.nodeType===1&&(r.textContent=``);let a=n(r,!1,fre(r));return r instanceof Element&&(r.removeAttribute(`v-cloak`),r.setAttribute(`data-v-app`,``)),a},t});function fre(e){if(e instanceof SVGElement)return`svg`;if(typeof MathMLElement==`function`&&e instanceof MathMLElement)return`mathml`}function pre(e){return re(e)?document.querySelector(e):e}var mre=f(),Ra,za=e=>Ra=e,Ba=Symbol();function Va(e){return e&&typeof e==`object`&&Object.prototype.toString.call(e)===`[object Object]`&&typeof e.toJSON!=`function`}var Ha;(function(e){e.direct=`direct`,e.patchObject=`patch object`,e.patchFunction=`patch function`})(Ha||={});var hre=typeof window<`u`,Ua=(()=>typeof window==`object`&&window.window===window?window:typeof self==`object`&&self.self===self?self:typeof globalThis==`object`&&globalThis.global===globalThis||typeof globalThis==`object`?globalThis:{HTMLElement:null})();function gre(e,{autoBom:t=!1}={}){return t&&/^\s*(?:text\/\S*|application\/xml|\S*\/\S*\+xml)\s*;.*charset\s*=\s*utf-8/i.test(e.type)?new Blob([``,e],{type:e.type}):e}function Wa(e,t,n){let r=new XMLHttpRequest;r.open(`GET`,e),r.responseType=`blob`,r.onload=function(){_re(r.response,t,n)},r.onerror=function(){console.error(`could not download file`)},r.send()}function Ga(e){let t=new XMLHttpRequest;t.open(`HEAD`,e,!1);try{t.send()}catch{}return t.status>=200&&t.status<=299}function Ka(e){try{e.dispatchEvent(new MouseEvent(`click`))}catch{let t=document.createEvent(`MouseEvents`);t.initMouseEvent(`click`,!0,!0,window,0,0,0,80,20,!1,!1,!1,!1,0,null),e.dispatchEvent(t)}}var qa=typeof navigator==`object`?navigator:{userAgent:``},Ja=(()=>/Macintosh/.test(qa.userAgent)&&/AppleWebKit/.test(qa.userAgent)&&!/Safari/.test(qa.userAgent))(),_re=hre?typeof HTMLAnchorElement<`u`&&`download`in HTMLAnchorElement.prototype&&!Ja?vre:`msSaveOrOpenBlob`in qa?yre:bre:()=>{};function vre(e,t=`download`,n){let r=document.createElement(`a`);r.download=t,r.rel=`noopener`,typeof e==`string`?(r.href=e,r.origin===location.origin?Ka(r):Ga(r.href)?Wa(e,t,n):(r.target=`_blank`,Ka(r))):(r.href=URL.createObjectURL(e),setTimeout(function(){URL.revokeObjectURL(r.href)},4e4),setTimeout(function(){Ka(r)},0))}function yre(e,t=`download`,n){if(typeof e==`string`)if(Ga(e))Wa(e,t,n);else{let t=document.createElement(`a`);t.href=e,t.target=`_blank`,setTimeout(function(){Ka(t)})}else navigator.msSaveOrOpenBlob(gre(e,n),t)}function bre(e,t,n,r){if(r||=open(``,`_blank`),r&&(r.document.title=r.document.body.innerText=`downloading...`),typeof e==`string`)return Wa(e,t,n);let i=e.type===`application/octet-stream`,a=/constructor/i.test(String(Ua.HTMLElement))||`safari`in Ua,o=/CriOS\/[\d]+/.test(navigator.userAgent);if((o||i&&a||Ja)&&typeof FileReader<`u`){let t=new FileReader;t.onloadend=function(){let e=t.result;if(typeof e!=`string`)throw r=null,Error(`Wrong reader.result type`);e=o?e:e.replace(/^data:[^;]*;/,`data:attachment/file;`),r?r.location.href=e:location.assign(e),r=null},t.readAsDataURL(e)}else{let t=URL.createObjectURL(e);r?r.location.assign(t):location.href=t,r=null,setTimeout(function(){URL.revokeObjectURL(t)},4e4)}}var{assign:xre}=Object;function Sre(){let e=Ke(!0),t=e.run(()=>D({})),n=[],r=[],i=Zt({install(e){za(i),i._a=e,e.provide(Ba,i),e.config.globalProperties.$pinia=i,r.forEach(e=>n.push(e)),r=[]},use(e){return this._a?n.push(e):r.push(e),this},_p:n,_a:null,_e:e,_s:new Map,state:t});return i}var Ya=()=>{};function Xa(e,t,n,r=Ya){e.push(t);let i=()=>{let n=e.indexOf(t);n>-1&&(e.splice(n,1),r())};return!n&&qe()&&Je(i),i}function Za(e,...t){e.slice().forEach(e=>{e(...t)})}var Cre=e=>e(),Qa=Symbol(),$a=Symbol();function eo(e,t){for(let n in e instanceof Map&&t instanceof Map?t.forEach((t,n)=>e.set(n,t)):e instanceof Set&&t instanceof Set&&t.forEach(e.add,e),t){if(!t.hasOwnProperty(n))continue;let r=t[n],i=e[n];Va(i)&&Va(r)&&e.hasOwnProperty(n)&&!en(r)&&!Kt(r)?e[n]=eo(i,r):e[n]=r}return e}var wre=Symbol();function Tre(e){return!Va(e)||!e.hasOwnProperty(wre)}var{assign:to}=Object;function Ere(e){return!!(en(e)&&e.effect)}function Dre(e,t,n,r){let{state:i,actions:a,getters:o}=t,s=n.state.value[e],c;function l(){return s||(n.state.value[e]=i?i():{}),to(an(n.state.value[e]),a,Object.keys(o||{}).reduce((t,r)=>(t[r]=Zt(ji(()=>{za(n);let t=n._s.get(e);return o[r].call(t,t)})),t),{}))}return c=no(e,l,t,n,r,!0),c}function no(e,t,n={},r,i,a){let o,s=to({actions:{}},n),c={deep:!0},l,u,d=[],f=[],p=r.state.value[e];!a&&!p&&(r.state.value[e]={});let m;function h(t){let n;l=u=!1,typeof t==`function`?(t(r.state.value[e]),n={type:Ha.patchFunction,storeId:e,events:void 0}):(eo(r.state.value[e],t),n={type:Ha.patchObject,payload:t,storeId:e,events:void 0});let i=m=Symbol();xn().then(()=>{m===i&&(l=!0)}),u=!0,Za(d,n,r.state.value[e])}let g=a?function(){let{state:e}=n,t=e?e():{};this.$patch(e=>{to(e,t)})}:Ya;function _(){o.stop(),d=[],f=[],r._s.delete(e)}let v=(t,n=``)=>{if(Qa in t)return t[$a]=n,t;let i=function(){za(r);let n=Array.from(arguments),a=[],o=[];function s(e){a.push(e)}function c(e){o.push(e)}Za(f,{args:n,name:i[$a],store:y,after:s,onError:c});let l;try{l=t.apply(this&&this.$id===e?this:y,n)}catch(e){throw Za(o,e),e}return l instanceof Promise?l.then(e=>(Za(a,e),e)).catch(e=>(Za(o,e),Promise.reject(e))):(Za(a,l),l)};return i[Qa]=!0,i[$a]=n,i},y=Ht({_p:r,$id:e,$onAction:Xa.bind(null,f),$patch:h,$reset:g,$subscribe(t,n={}){let i=Xa(d,t,n.detached,()=>a()),a=o.run(()=>Ln(()=>r.state.value[e],r=>{(n.flush===`sync`?u:l)&&t({storeId:e,type:Ha.direct,events:void 0},r)},to({},c,n)));return i},$dispose:_});r._s.set(e,y);let b=(r._a&&r._a.runWithContext||Cre)(()=>r._e.run(()=>(o=Ke()).run(()=>t({action:v}))));for(let t in b){let n=b[t];en(n)&&!Ere(n)||Kt(n)?a||(p&&Tre(n)&&(en(n)?n.value=p[t]:eo(n,p[t])),r.state.value[e][t]=n):typeof n==`function`&&(b[t]=v(n,t),s.actions[t]=n)}return to(y,b),to(Xt(y),b),Object.defineProperty(y,`$state`,{get:()=>r.state.value[e],set:e=>{h(t=>{to(t,e)})}}),r._p.forEach(e=>{to(y,o.run(()=>e({store:y,app:r._a,pinia:r,options:s})))}),p&&a&&n.hydrate&&n.hydrate(y.$state,p),l=!0,u=!0,y}function ro(e,t,n){let r,i,a=typeof t==`function`;typeof e==`string`?(r=e,i=a?n:t):(i=e,r=e.id);function o(e,n){let o=Iee();return e||=o?In(Ba,null):null,e&&za(e),e=Ra,e._s.has(r)||(a?no(r,t,i,e):Dre(r,i,e)),e._s.get(r)}return o.$id=r,o}function io(e){{let t=Xt(e),n={};for(let r in t){let i=t[r];i.effect?n[r]=ji({get:()=>e[r],set(t){e[r]=t}}):(en(i)||Kt(i))&&(n[r]=on(e,r))}return n}}var Ore=Object.defineProperty,ao=Object.getOwnPropertySymbols,kre=Object.prototype.hasOwnProperty,Are=Object.prototype.propertyIsEnumerable,oo=(e,t,n)=>t in e?Ore(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,jre=(e,t)=>{for(var n in t||={})kre.call(t,n)&&oo(e,n,t[n]);if(ao)for(var n of ao(t))Are.call(t,n)&&oo(e,n,t[n]);return e};function so(e){return e==null||e===``||Array.isArray(e)&&e.length===0||!(e instanceof Date)&&typeof e==`object`&&Object.keys(e).length===0}function Mre(e,t,n,r=1){let i=-1,a=so(e),o=so(t);return i=a&&o?0:a?r:o?-r:typeof e==`string`&&typeof t==`string`?n(e,t):e<t?-1:e>t?1:0,i}function co(e,t,n=new WeakSet){if(e===t)return!0;if(!e||!t||typeof e!=`object`||typeof t!=`object`||n.has(e)||n.has(t))return!1;n.add(e).add(t);let r=Array.isArray(e),i=Array.isArray(t),a,o,s;if(r&&i){if(o=e.length,o!=t.length)return!1;for(a=o;a--!==0;)if(!co(e[a],t[a],n))return!1;return!0}if(r!=i)return!1;let c=e instanceof Date,l=t instanceof Date;if(c!=l)return!1;if(c&&l)return e.getTime()==t.getTime();let u=e instanceof RegExp,d=t instanceof RegExp;if(u!=d)return!1;if(u&&d)return e.toString()==t.toString();let f=Object.keys(e);if(o=f.length,o!==Object.keys(t).length)return!1;for(a=o;a--!==0;)if(!Object.prototype.hasOwnProperty.call(t,f[a]))return!1;for(a=o;a--!==0;)if(s=f[a],!co(e[s],t[s],n))return!1;return!0}function Nre(e,t){return co(e,t)}function lo(e){return typeof e==`function`&&`call`in e&&`apply`in e}function uo(e){return!so(e)}function fo(e,t){if(!e||!t)return null;try{let n=e[t];if(uo(n))return n}catch{}if(Object.keys(e).length){if(lo(t))return t(e);if(t.indexOf(`.`)===-1)return e[t];{let n=t.split(`.`),r=e;for(let e=0,t=n.length;e<t;++e){if(r==null)return null;r=r[n[e]]}return r}}return null}function po(e,t,n){return n?fo(e,n)===fo(t,n):Nre(e,t)}function Pre(e,t){if(e!=null&&t&&t.length){for(let n of t)if(po(e,n))return!0}return!1}function mo(e,t=!0){return e instanceof Object&&e.constructor===Object&&(t||Object.keys(e).length!==0)}function ho(e={},t={}){let n=jre({},e);return Object.keys(t).forEach(r=>{let i=r;mo(t[i])&&i in e&&mo(e[i])?n[i]=ho(e[i],t[i]):n[i]=t[i]}),n}function go(...e){return e.reduce((e,t,n)=>n===0?t:ho(e,t),{})}function Fre(e,t){let n=-1;if(t){for(let r=0;r<t.length;r++)if(t[r]===e){n=r;break}}return n}function _o(e,t){let n=-1;if(uo(e))try{n=e.findLastIndex(t)}catch{n=e.lastIndexOf([...e].reverse().find(t))}return n}function vo(e,...t){return lo(e)?e(...t):e}function yo(e,t=!0){return typeof e==`string`&&(t||e!==``)}function bo(e){return yo(e)?e.replace(/(-|_)/g,``).toLowerCase():e}function xo(e,t=``,n={}){let r=bo(t).split(`.`),i=r.shift();return i?mo(e)?xo(vo(e[Object.keys(e).find(e=>bo(e)===i)||``],n),r.join(`.`),n):void 0:vo(e,n)}function So(e,t=!0){return Array.isArray(e)&&(t||e.length!==0)}function Ire(e){return uo(e)&&!isNaN(e)}function Co(e=``){return uo(e)&&e.length===1&&!!e.match(/\S| /)}function Lre(){return new Intl.Collator(void 0,{numeric:!0}).compare}function wo(e,t){if(t){let n=t.test(e);return t.lastIndex=0,n}return!1}function Rre(...e){return go(...e)}function To(e){return e&&e.replace(/\/\*(?:(?!\*\/)[\s\S])*\*\/|[\r\n\t]+/g,``).replace(/ {2,}/g,` `).replace(/ ([{:}]) /g,`$1`).replace(/([;,]) /g,`$1`).replace(/ !/g,`!`).replace(/: /g,`:`).trim()}function Eo(e){if(e&&/[\xC0-\xFF\u0100-\u017E]/.test(e)){let t={A:/[\xC0-\xC5\u0100\u0102\u0104]/g,AE:/[\xC6]/g,C:/[\xC7\u0106\u0108\u010A\u010C]/g,D:/[\xD0\u010E\u0110]/g,E:/[\xC8-\xCB\u0112\u0114\u0116\u0118\u011A]/g,G:/[\u011C\u011E\u0120\u0122]/g,H:/[\u0124\u0126]/g,I:/[\xCC-\xCF\u0128\u012A\u012C\u012E\u0130]/g,IJ:/[\u0132]/g,J:/[\u0134]/g,K:/[\u0136]/g,L:/[\u0139\u013B\u013D\u013F\u0141]/g,N:/[\xD1\u0143\u0145\u0147\u014A]/g,O:/[\xD2-\xD6\xD8\u014C\u014E\u0150]/g,OE:/[\u0152]/g,R:/[\u0154\u0156\u0158]/g,S:/[\u015A\u015C\u015E\u0160]/g,T:/[\u0162\u0164\u0166]/g,U:/[\xD9-\xDC\u0168\u016A\u016C\u016E\u0170\u0172]/g,W:/[\u0174]/g,Y:/[\xDD\u0176\u0178]/g,Z:/[\u0179\u017B\u017D]/g,a:/[\xE0-\xE5\u0101\u0103\u0105]/g,ae:/[\xE6]/g,c:/[\xE7\u0107\u0109\u010B\u010D]/g,d:/[\u010F\u0111]/g,e:/[\xE8-\xEB\u0113\u0115\u0117\u0119\u011B]/g,g:/[\u011D\u011F\u0121\u0123]/g,i:/[\xEC-\xEF\u0129\u012B\u012D\u012F\u0131]/g,ij:/[\u0133]/g,j:/[\u0135]/g,k:/[\u0137,\u0138]/g,l:/[\u013A\u013C\u013E\u0140\u0142]/g,n:/[\xF1\u0144\u0146\u0148\u014B]/g,p:/[\xFE]/g,o:/[\xF2-\xF6\xF8\u014D\u014F\u0151]/g,oe:/[\u0153]/g,r:/[\u0155\u0157\u0159]/g,s:/[\u015B\u015D\u015F\u0161]/g,t:/[\u0163\u0165\u0167]/g,u:/[\xF9-\xFC\u0169\u016B\u016D\u016F\u0171\u0173]/g,w:/[\u0175]/g,y:/[\xFD\xFF\u0177]/g,z:/[\u017A\u017C\u017E]/g};for(let n in t)e=e.replace(t[n],n)}return e}function zre(e,t,n){e&&t!==n&&(n>=e.length&&(n%=e.length,t%=e.length),e.splice(n,0,e.splice(t,1)[0]))}function Bre(e,t,n=1,r,i=1){let a=Mre(e,t,r,n),o=n;return(so(e)||so(t))&&(o=i===1?n:i),o*a}function Vre(e){return yo(e,!1)?e[0].toUpperCase()+e.slice(1):e}function Do(e){return yo(e)?e.replace(/(_)/g,`-`).replace(/([a-z])([A-Z])/g,`$1-$2`).toLowerCase():e}function Oo(){let e=new Map;return{on(t,n){let r=e.get(t);return r?r.push(n):r=[n],e.set(t,r),this},off(t,n){let r=e.get(t);return r&&r.splice(r.indexOf(n)>>>0,1),this},emit(t,n){let r=e.get(t);r&&r.forEach(e=>{e(n)})},clear(){e.clear()}}}function ko(...e){if(e){let t=[];for(let n=0;n<e.length;n++){let r=e[n];if(!r)continue;let i=typeof r;if(i===`string`||i===`number`)t.push(r);else if(i===`object`){let e=Array.isArray(r)?[ko(...r)]:Object.entries(r).map(([e,t])=>t?e:void 0);t=e.length?t.concat(e.filter(e=>!!e)):t}}return t.join(` `).trim()}}function Ao(e,t){return e?e.classList?e.classList.contains(t):RegExp(`(^| )`+t+`( |$)`,`gi`).test(e.className):!1}function jo(e,t){if(e&&t){let n=t=>{Ao(e,t)||(e.classList?e.classList.add(t):e.className+=` `+t)};[t].flat().filter(Boolean).forEach(e=>e.split(` `).forEach(n))}}function Hre(){return window.innerWidth-document.documentElement.offsetWidth}function Ure(e){typeof e==`string`?jo(document.body,e||`p-overflow-hidden`):(e!=null&&e.variableName&&document.body.style.setProperty(e.variableName,Hre()+`px`),jo(document.body,e?.className||`p-overflow-hidden`))}function Wre(e){if(e){let t=document.createElement(`a`);if(t.download!==void 0){let{name:n,src:r}=e;return t.setAttribute(`href`,r),t.setAttribute(`download`,n),t.style.display=`none`,document.body.appendChild(t),t.click(),document.body.removeChild(t),!0}}return!1}function Gre(e,t){let n=new Blob([e],{type:`application/csv;charset=utf-8;`});window.navigator.msSaveOrOpenBlob?navigator.msSaveOrOpenBlob(n,t+`.csv`):Wre({name:t+`.csv`,src:URL.createObjectURL(n)})||(e=`data:text/csv;charset=utf-8,`+e,window.open(encodeURI(e)))}function Mo(e,t){if(e&&t){let n=t=>{e.classList?e.classList.remove(t):e.className=e.className.replace(RegExp(`(^|\\b)`+t.split(` `).join(`|`)+`(\\b|$)`,`gi`),` `)};[t].flat().filter(Boolean).forEach(e=>e.split(` `).forEach(n))}}function Kre(e){typeof e==`string`?Mo(document.body,e||`p-overflow-hidden`):(e!=null&&e.variableName&&document.body.style.removeProperty(e.variableName),Mo(document.body,e?.className||`p-overflow-hidden`))}function No(e){for(let t of document==null?void 0:document.styleSheets)try{for(let n of t?.cssRules)for(let t of n?.style)if(e.test(t))return{name:t,value:n.style.getPropertyValue(t).trim()}}catch{}return null}function qre(e){let t={width:0,height:0};if(e){let[n,r]=[e.style.visibility,e.style.display],i=e.getBoundingClientRect();e.style.visibility=`hidden`,e.style.display=`block`,t.width=i.width||e.offsetWidth,t.height=i.height||e.offsetHeight,e.style.display=r,e.style.visibility=n}return t}function Po(){let e=window,t=document,n=t.documentElement,r=t.getElementsByTagName(`body`)[0];return{width:e.innerWidth||n.clientWidth||r.clientWidth,height:e.innerHeight||n.clientHeight||r.clientHeight}}function Fo(e){return e?Math.abs(e.scrollLeft):0}function Jre(){let e=document.documentElement;return(window.pageXOffset||Fo(e))-(e.clientLeft||0)}function Yre(){let e=document.documentElement;return(window.pageYOffset||e.scrollTop)-(e.clientTop||0)}function Io(e){return e?getComputedStyle(e).direction===`rtl`:!1}function Lo(e,t,n=!0){if(e){let r=e.offsetParent?{width:e.offsetWidth,height:e.offsetHeight}:qre(e),i=r.height,a=r.width,o=t.offsetHeight,s=t.offsetWidth,c=t.getBoundingClientRect(),l=Yre(),u=Jre(),d=Po(),f,p,m=`top`;c.top+o+i>d.height?(f=c.top+l-i,m=`bottom`,f<0&&(f=l)):f=o+c.top+l,p=c.left+a>d.width?Math.max(0,c.left+u+s-a):c.left+u,Io(e)?e.style.insetInlineEnd=p+`px`:e.style.insetInlineStart=p+`px`,e.style.top=f+`px`,e.style.transformOrigin=m,n&&(e.style.marginTop=m===`bottom`?`calc(${No(/-anchor-gutter$/)?.value??`2px`} * -1)`:No(/-anchor-gutter$/)?.value??``)}}function Ro(e,t){e&&(typeof t==`string`?e.style.cssText=t:Object.entries(t||{}).forEach(([t,n])=>e.style[t]=n))}function zo(e,t){if(e instanceof HTMLElement){let n=e.offsetWidth;if(t){let t=getComputedStyle(e);n+=parseFloat(t.marginLeft)+parseFloat(t.marginRight)}return n}return 0}function Xre(e,t,n=!0,r=void 0){if(e){let i=e.offsetParent?{width:e.offsetWidth,height:e.offsetHeight}:qre(e),a=t.offsetHeight,o=t.getBoundingClientRect(),s=Po(),c,l,u=r??`top`;if(!r&&o.top+a+i.height>s.height?(c=-1*i.height,u=`bottom`,o.top+c<0&&(c=-1*o.top)):c=a,l=i.width>s.width?o.left*-1:o.left+i.width>s.width?(o.left+i.width-s.width)*-1:0,e.style.top=c+`px`,e.style.insetInlineStart=l+`px`,e.style.transformOrigin=u,n){let t=No(/-anchor-gutter$/)?.value;e.style.marginTop=u===`bottom`?`calc(${t??`2px`} * -1)`:t??``}}}function Bo(e){if(e){let t=e.parentNode;return t&&t instanceof ShadowRoot&&t.host&&(t=t.host),t}return null}function Zre(e){return!!(e!=null&&e.nodeName&&Bo(e))}function Vo(e){return typeof Element<`u`?e instanceof Element:typeof e==`object`&&!!e&&e.nodeType===1&&typeof e.nodeName==`string`}function Qre(){if(window.getSelection){let e=window.getSelection()||{};e.empty?e.empty():e.removeAllRanges&&e.rangeCount>0&&e.getRangeAt(0).getClientRects().length>0&&e.removeAllRanges()}}function Ho(e,t={}){if(Vo(e)){let n=(t,r)=>{var i;let a=(i=e?.$attrs)!=null&&i[t]?[e?.$attrs?.[t]]:[];return[r].flat().reduce((e,r)=>{if(r!=null){let i=typeof r;if(i===`string`||i===`number`)e.push(r);else if(i===`object`){let i=Array.isArray(r)?n(t,r):Object.entries(r).map(([e,n])=>t===`style`&&(n||n===0)?`${e.replace(/([a-z])([A-Z])/g,`$1-$2`).toLowerCase()}:${n}`:n?e:void 0);e=i.length?e.concat(i.filter(e=>!!e)):e}}return e},a)};Object.entries(t).forEach(([t,r])=>{if(r!=null){let i=t.match(/^on(.+)/);i?e.addEventListener(i[1].toLowerCase(),r):t===`p-bind`||t===`pBind`?Ho(e,r):(r=t===`class`?[...new Set(n(`class`,r))].join(` `).trim():t===`style`?n(`style`,r).join(`;`).trim():r,(e.$attrs=e.$attrs||{})&&(e.$attrs[t]=r),e.setAttribute(t,r))}})}}function Uo(e,t={},...n){if(e){let r=document.createElement(e);return Ho(r,t),r.append(...n),r}}function $re(e,t){if(e){e.style.opacity=`0`;let n=+new Date,r=`0`,i=function(){r=`${+e.style.opacity+(new Date().getTime()-n)/t}`,e.style.opacity=r,n=+new Date,+r<1&&(`requestAnimationFrame`in window?requestAnimationFrame(i):setTimeout(i,16))};i()}}function eie(e,t){return Vo(e)?Array.from(e.querySelectorAll(t)):[]}function Wo(e,t){return Vo(e)?e.matches(t)?e:e.querySelector(t):null}function Go(e,t){e&&document.activeElement!==e&&e.focus(t)}function Ko(e,t){if(Vo(e)){let n=e.getAttribute(t);return isNaN(n)?n===`true`||n===`false`?n===`true`:n:+n}}function qo(e,t=``){let n=eie(e,`button:not([tabindex = "-1"]):not([disabled]):not([style*="display:none"]):not([hidden])${t},
|
|
3
3
|
[href]:not([tabindex = "-1"]):not([style*="display:none"]):not([hidden])${t},
|
|
4
4
|
input:not([tabindex = "-1"]):not([disabled]):not([style*="display:none"]):not([hidden])${t},
|
|
@@ -1587,7 +1587,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
1587
1587
|
transform: scale(0.93);
|
|
1588
1588
|
}
|
|
1589
1589
|
}
|
|
1590
|
-
`,classes:{mask:function(e){var t=e.instance,n=e.props,r=[`left`,`right`,`top`,`bottom`].find(function(e){return e===n.position});return[`p-drawer-mask`,{"p-overlay-mask p-overlay-mask-enter-active":n.modal,"p-drawer-open":t.containerVisible,"p-drawer-full":t.fullScreen},r?`p-drawer-${r}`:``]},root:function(e){var t=e.instance;return[`p-drawer p-component`,{"p-drawer-full":t.fullScreen}]},header:`p-drawer-header`,title:`p-drawer-title`,pcCloseButton:`p-drawer-close-button`,content:`p-drawer-content`,footer:`p-drawer-footer`},inlineStyles:{mask:function(e){var t=e.position,n=e.modal;return{position:`fixed`,height:`100%`,width:`100%`,left:0,top:0,display:`flex`,justifyContent:t===`left`?`flex-start`:t===`right`?`flex-end`:`center`,alignItems:t===`top`?`flex-start`:t===`bottom`?`flex-end`:`center`,pointerEvents:n?`auto`:`none`}},root:{pointerEvents:`auto`}}}),hme={name:`BaseDrawer`,extends:Iu,props:{visible:{type:Boolean,default:!1},position:{type:String,default:`left`},header:{type:null,default:null},baseZIndex:{type:Number,default:0},autoZIndex:{type:Boolean,default:!0},dismissable:{type:Boolean,default:!0},showCloseIcon:{type:Boolean,default:!0},closeButtonProps:{type:Object,default:function(){return{severity:`secondary`,text:!0,rounded:!0}}},closeIcon:{type:String,default:void 0},modal:{type:Boolean,default:!0},blockScroll:{type:Boolean,default:!1},closeOnEscape:{type:Boolean,default:!0}},style:mme,provide:function(){return{$pcDrawer:this,$parentInstance:this}}};function Rd(e){"@babel/helpers - typeof";return Rd=typeof Symbol==`function`&&typeof Symbol.iterator==`symbol`?function(e){return typeof e}:function(e){return e&&typeof Symbol==`function`&&e.constructor===Symbol&&e!==Symbol.prototype?`symbol`:typeof e},Rd(e)}function zd(e,t,n){return(t=gme(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function gme(e){var t=_me(e,`string`);return Rd(t)==`symbol`?t:t+``}function _me(e,t){if(Rd(e)!=`object`||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(Rd(r)!=`object`)return r;throw TypeError(`@@toPrimitive must return a primitive value.`)}return(t===`string`?String:Number)(e)}var Bd={name:`Drawer`,extends:hme,inheritAttrs:!1,emits:[`update:visible`,`show`,`after-show`,`hide`,`after-hide`,`before-hide`],data:function(){return{containerVisible:this.visible}},container:null,mask:null,content:null,headerContainer:null,footerContainer:null,closeButton:null,outsideClickListener:null,documentKeydownListener:null,watch:{dismissable:function(e){e&&!this.modal?this.bindOutsideClickListener():this.unbindOutsideClickListener()}},updated:function(){this.visible&&(this.containerVisible=this.visible)},beforeUnmount:function(){this.disableDocumentSettings(),this.mask&&this.autoZIndex&&os.clear(this.mask),this.container=null,this.mask=null},methods:{hide:function(){this.$emit(`update:visible`,!1)},onEnter:function(){this.$emit(`show`),this.focus(),this.bindDocumentKeyDownListener(),this.autoZIndex&&os.set(`modal`,this.mask,this.baseZIndex||this.$primevue.config.zIndex.modal)},onAfterEnter:function(){this.enableDocumentSettings(),this.$emit(`after-show`)},onBeforeLeave:function(){this.modal&&!this.isUnstyled&&jo(this.mask,`p-overlay-mask-leave-active`),this.$emit(`before-hide`)},onLeave:function(){this.$emit(`hide`)},onAfterLeave:function(){this.autoZIndex&&os.clear(this.mask),this.unbindDocumentKeyDownListener(),this.containerVisible=!1,this.disableDocumentSettings(),this.$emit(`after-hide`)},onMaskClick:function(e){this.dismissable&&this.modal&&this.mask===e.target&&this.hide()},focus:function(){var e=function(e){return e&&e.querySelector(`[autofocus]`)},t=this.$slots.header&&e(this.headerContainer);t||(t=this.$slots.default&&e(this.container),t||(t=this.$slots.footer&&e(this.footerContainer),t||=this.closeButton)),t&&Go(t)},enableDocumentSettings:function(){this.dismissable&&!this.modal&&this.bindOutsideClickListener(),this.blockScroll&&jd()},disableDocumentSettings:function(){this.unbindOutsideClickListener(),this.blockScroll&&Md()},onKeydown:function(e){e.code===`Escape`&&this.closeOnEscape&&this.hide()},containerRef:function(e){this.container=e},maskRef:function(e){this.mask=e},contentRef:function(e){this.content=e},headerContainerRef:function(e){this.headerContainer=e},footerContainerRef:function(e){this.footerContainer=e},closeButtonRef:function(e){this.closeButton=e?e.$el:void 0},bindDocumentKeyDownListener:function(){this.documentKeydownListener||(this.documentKeydownListener=this.onKeydown,document.addEventListener(`keydown`,this.documentKeydownListener))},unbindDocumentKeyDownListener:function(){this.documentKeydownListener&&=(document.removeEventListener(`keydown`,this.documentKeydownListener),null)},bindOutsideClickListener:function(){var e=this;this.outsideClickListener||(this.outsideClickListener=function(t){e.isOutsideClicked(t)&&e.hide()},document.addEventListener(`click`,this.outsideClickListener,!0))},unbindOutsideClickListener:function(){this.outsideClickListener&&=(document.removeEventListener(`click`,this.outsideClickListener,!0),null)},isOutsideClicked:function(e){return this.container&&!this.container.contains(e.target)}},computed:{fullScreen:function(){return this.position===`full`},closeAriaLabel:function(){return this.$primevue.config.locale.aria?this.$primevue.config.locale.aria.close:void 0},dataP:function(){return ko(zd(zd(zd({"full-screen":this.position===`full`},this.position,this.position),`open`,this.containerVisible),`modal`,this.modal))}},directives:{focustrap:Ad},components:{Button:Sd,Portal:Tu,TimesIcon:Yu}},vme=[`data-p`],yme=[`role`,`aria-modal`,`data-p`];function bme(e,t,n,r,i,a){var o=vr(`Button`),s=vr(`Portal`),c=xr(`focustrap`);return k(),di(s,null,{default:Mn(function(){return[i.containerVisible?(k(),A(`div`,M({key:0,ref:a.maskRef,onMousedown:t[0]||=function(){return a.onMaskClick&&a.onMaskClick.apply(a,arguments)},class:e.cx(`mask`),style:e.sx(`mask`,!0,{position:e.position,modal:e.modal}),"data-p":a.dataP},e.ptm(`mask`)),[hi(zi,M({name:`p-drawer`,onEnter:a.onEnter,onAfterEnter:a.onAfterEnter,onBeforeLeave:a.onBeforeLeave,onLeave:a.onLeave,onAfterLeave:a.onAfterLeave,appear:``},e.ptm(`transition`)),{default:Mn(function(){return[e.visible?Nn((k(),A(`div`,M({key:0,ref:a.containerRef,class:e.cx(`root`),style:e.sx(`root`),role:e.modal?`dialog`:`complementary`,"aria-modal":e.modal?!0:void 0,"data-p":a.dataP},e.ptmi(`root`)),[e.$slots.container?Er(e.$slots,`container`,{key:0,closeCallback:a.hide}):(k(),A(ri,{key:1},[j(`div`,M({ref:a.headerContainerRef,class:e.cx(`header`)},e.ptm(`header`)),[Er(e.$slots,`header`,{class:Me(e.cx(`title`))},function(){return[e.header?(k(),A(`div`,M({key:0,class:e.cx(`title`)},e.ptm(`title`)),E(e.header),17)):yi(``,!0)]}),e.showCloseIcon?Er(e.$slots,`closebutton`,{key:0,closeCallback:a.hide},function(){return[hi(o,M({ref:a.closeButtonRef,type:`button`,class:e.cx(`pcCloseButton`),"aria-label":a.closeAriaLabel,unstyled:e.unstyled,onClick:a.hide},e.closeButtonProps,{pt:e.ptm(`pcCloseButton`),"data-pc-group-section":`iconcontainer`}),{icon:Mn(function(t){return[Er(e.$slots,`closeicon`,{},function(){return[(k(),di(br(e.closeIcon?`span`:`TimesIcon`),M({class:[e.closeIcon,t.class]},e.ptm(`pcCloseButton`).icon),null,16,[`class`]))]})]}),_:3},16,[`class`,`aria-label`,`unstyled`,`onClick`,`pt`])]}):yi(``,!0)],16),j(`div`,M({ref:a.contentRef,class:e.cx(`content`)},e.ptm(`content`)),[Er(e.$slots,`default`)],16),e.$slots.footer?(k(),A(`div`,M({key:0,ref:a.footerContainerRef,class:e.cx(`footer`)},e.ptm(`footer`)),[Er(e.$slots,`footer`)],16)):yi(``,!0)],64))],16,yme)),[[c]]):yi(``,!0)]}),_:3},16,[`onEnter`,`onAfterEnter`,`onBeforeLeave`,`onLeave`,`onAfterLeave`])],16,vme)):yi(``,!0)]}),_:3})}Bd.render=bme;var xme={key:0,class:`error-boundary`},Sme={class:`error-content`},Cme={class:`error-message`},wme=Zn({__name:`ErrorBoundary`,setup(e){let{t}=Hc(),n=D(null);gr(e=>(n.value=e instanceof Error?e:Error(String(e)),console.error(`[ErrorBoundary]`,e),!1));function r(){n.value=null}return(e,i)=>n.value?(k(),A(`div`,xme,[j(`div`,Sme,[i[0]||=j(`i`,{class:`pi pi-exclamation-triangle error-icon`},null,-1),j(`h3`,null,E(O(t)(`errorBoundary.title`)),1),j(`p`,Cme,E(n.value.message),1),hi(O(Sd),{label:O(t)(`errorBoundary.tryAgain`),icon:`pi pi-refresh`,onClick:r},null,8,[`label`])])])):Er(e.$slots,`default`,{key:1},void 0,!0)}}),Vd=(e,t)=>{let n=e.__vccOpts||e;for(let[e,r]of t)n[e]=r;return n},Tme=Vd(wme,[[`__scopeId`,`data-v-50a21909`]]),Eme=Object.create,Hd=Object.defineProperty,Dme=Object.getOwnPropertyDescriptor,Ud=Object.getOwnPropertyNames,Ome=Object.getPrototypeOf,kme=Object.prototype.hasOwnProperty,Wd=(e,t)=>function(){return t||(0,e[Ud(e)[0]])((t={exports:{}}).exports,t),t.exports},Ame=(e,t,n,r)=>{if(t&&typeof t==`object`||typeof t==`function`)for(var i=Ud(t),a=0,o=i.length,s;a<o;a++)s=i[a],!kme.call(e,s)&&s!==n&&Hd(e,s,{get:(e=>t[e]).bind(null,s),enumerable:!(r=Dme(t,s))||r.enumerable});return e},Gd=(e,t,n)=>(n=e==null?{}:Eme(Ome(e)),Ame(t||!e||!e.__esModule?Hd(n,`default`,{value:e,enumerable:!0}):n,e)),Kd=Wd({"../../node_modules/.pnpm/@oxc-project+runtime@0.72.2/node_modules/@oxc-project/runtime/src/helpers/typeof.js"(e,t){function n(e){"@babel/helpers - typeof";return t.exports=n=typeof Symbol==`function`&&typeof Symbol.iterator==`symbol`?function(e){return typeof e}:function(e){return e&&typeof Symbol==`function`&&e.constructor===Symbol&&e!==Symbol.prototype?`symbol`:typeof e},t.exports.__esModule=!0,t.exports.default=t.exports,n(e)}t.exports=n,t.exports.__esModule=!0,t.exports.default=t.exports}}),jme=Wd({"../../node_modules/.pnpm/@oxc-project+runtime@0.72.2/node_modules/@oxc-project/runtime/src/helpers/toPrimitive.js"(e,t){var n=Kd().default;function r(e,t){if(n(e)!=`object`||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var i=r.call(e,t||`default`);if(n(i)!=`object`)return i;throw TypeError(`@@toPrimitive must return a primitive value.`)}return(t===`string`?String:Number)(e)}t.exports=r,t.exports.__esModule=!0,t.exports.default=t.exports}}),Mme=Wd({"../../node_modules/.pnpm/@oxc-project+runtime@0.72.2/node_modules/@oxc-project/runtime/src/helpers/toPropertyKey.js"(e,t){var n=Kd().default,r=jme();function i(e){var t=r(e,`string`);return n(t)==`symbol`?t:t+``}t.exports=i,t.exports.__esModule=!0,t.exports.default=t.exports}}),qd=Wd({"../../node_modules/.pnpm/@oxc-project+runtime@0.72.2/node_modules/@oxc-project/runtime/src/helpers/defineProperty.js"(e,t){var n=Mme();function r(e,t,r){return(t=n(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}t.exports=r,t.exports.__esModule=!0,t.exports.default=t.exports}}),Jd=Wd({"../../node_modules/.pnpm/@oxc-project+runtime@0.72.2/node_modules/@oxc-project/runtime/src/helpers/objectSpread2.js"(e,t){var n=qd();function r(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function i(e){for(var t=1;t<arguments.length;t++){var i=arguments[t]==null?{}:arguments[t];t%2?r(Object(i),!0).forEach(function(t){n(e,t,i[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(i)):r(Object(i)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(i,t))})}return e}t.exports=i,t.exports.__esModule=!0,t.exports.default=t.exports}});function Yd(e){let t={subscribe(t){let n=null,r=!1,i=!1,a=!1;function o(){if(n===null){a=!0;return}i||(i=!0,typeof n==`function`?n():n&&n.unsubscribe())}return n=e({next(e){var n;r||(n=t.next)==null||n.call(t,e)},error(e){var n;r||(r=!0,(n=t.error)==null||n.call(t,e),o())},complete(){var e;r||(r=!0,(e=t.complete)==null||e.call(t),o())}}),a&&o(),{unsubscribe:o}},pipe(...e){return e.reduce(Nme,t)}};return t}function Nme(e,t){return t(e)}function Pme(e){let t=new AbortController;return new Promise((n,r)=>{let i=!1;function a(){i||(i=!0,o.unsubscribe())}t.signal.addEventListener(`abort`,()=>{r(t.signal.reason)});let o=e.subscribe({next(e){i=!0,n(e),a()},error(e){r(e)},complete(){t.abort(),a()}})})}function Fme(e){return e=>{let t=0,n=null,r=[];function i(){n||=e.subscribe({next(e){for(let n of r){var t;(t=n.next)==null||t.call(n,e)}},error(e){for(let n of r){var t;(t=n.error)==null||t.call(n,e)}},complete(){for(let t of r){var e;(e=t.complete)==null||e.call(t)}}})}function a(){if(t===0&&n){let e=n;n=null,e.unsubscribe()}}return Yd(e=>(t++,r.push(e),i(),{unsubscribe(){t--,a();let n=r.findIndex(t=>t===e);n>-1&&r.splice(n,1)}}))}}function Xd(e){let t=e,n=[],r=e=>{t!==void 0&&e.next(t),n.push(e)},i=e=>{n.splice(n.indexOf(e),1)},a=Yd(e=>(r(e),()=>{i(e)}));return a.next=e=>{if(t!==e){t=e;for(let t of n)t.next(e)}},a.get=()=>t,a}function Zd(e){return Yd(t=>{function n(t=0,r=e.op){let i=e.links[t];if(!i)throw Error(`No more links to execute - did you forget to add an ending link?`);return i({op:r,next(e){return n(t+1,e)}})}return n().subscribe(t)})}function Qd(e){return Array.isArray(e)?e:[e]}function $d(e){return t=>{let n=Qd(e.true).map(e=>e(t)),r=Qd(e.false).map(e=>e(t));return t=>Yd(i=>{let a=e.condition(t.op)?n:r;return Zd({op:t.op,links:a}).subscribe(i)})}}function ef(e){return!!e&&!Array.isArray(e)&&typeof e==`object`}function Ime(){return Object.create(null)}var tf=e=>e();function nf(e=0){return new Promise(t=>setTimeout(t,e))}var rf={PARSE_ERROR:-32700,BAD_REQUEST:-32600,INTERNAL_SERVER_ERROR:-32603,NOT_IMPLEMENTED:-32603,BAD_GATEWAY:-32603,SERVICE_UNAVAILABLE:-32603,GATEWAY_TIMEOUT:-32603,UNAUTHORIZED:-32001,PAYMENT_REQUIRED:-32002,FORBIDDEN:-32003,NOT_FOUND:-32004,METHOD_NOT_SUPPORTED:-32005,TIMEOUT:-32008,CONFLICT:-32009,PRECONDITION_FAILED:-32012,PAYLOAD_TOO_LARGE:-32013,UNSUPPORTED_MEDIA_TYPE:-32015,UNPROCESSABLE_CONTENT:-32022,PRECONDITION_REQUIRED:-32028,TOO_MANY_REQUESTS:-32029,CLIENT_CLOSED_REQUEST:-32099};rf.BAD_GATEWAY,rf.SERVICE_UNAVAILABLE,rf.GATEWAY_TIMEOUT,rf.INTERNAL_SERVER_ERROR;var Lme=Object.create,af=Object.defineProperty,Rme=Object.getOwnPropertyDescriptor,of=Object.getOwnPropertyNames,zme=Object.getPrototypeOf,Bme=Object.prototype.hasOwnProperty,sf=(e,t)=>function(){return t||(0,e[of(e)[0]])((t={exports:{}}).exports,t),t.exports},Vme=(e,t,n,r)=>{if(t&&typeof t==`object`||typeof t==`function`)for(var i=of(t),a=0,o=i.length,s;a<o;a++)s=i[a],!Bme.call(e,s)&&s!==n&&af(e,s,{get:(e=>t[e]).bind(null,s),enumerable:!(r=Rme(t,s))||r.enumerable});return e},cf=(e,t,n)=>(n=e==null?{}:Lme(zme(e)),Vme(t||!e||!e.__esModule?af(n,`default`,{value:e,enumerable:!0}):n,e)),lf=()=>{},uf=e=>{Object.freeze&&Object.freeze(e)};function df(e,t,n){let r=t.join(`.`);return n[r]??(n[r]=new Proxy(lf,{get(r,i){if(!(typeof i!=`string`||i===`then`))return df(e,[...t,i],n)},apply(n,r,i){let a=t[t.length-1],o={args:i,path:t};return a===`call`?o={args:i.length>=2?[i[1]]:[],path:t.slice(0,-1)}:a===`apply`&&(o={args:i.length>=2?i[1]:[],path:t.slice(0,-1)}),uf(o.args),uf(o.path),e(o)}})),n[r]}var Hme=e=>df(e,[],Ime()),Ume=e=>new Proxy(lf,{get(t,n){if(n!==`then`)return e(n)}}),ff=sf({"../../node_modules/.pnpm/@oxc-project+runtime@0.72.2/node_modules/@oxc-project/runtime/src/helpers/typeof.js"(e,t){function n(e){"@babel/helpers - typeof";return t.exports=n=typeof Symbol==`function`&&typeof Symbol.iterator==`symbol`?function(e){return typeof e}:function(e){return e&&typeof Symbol==`function`&&e.constructor===Symbol&&e!==Symbol.prototype?`symbol`:typeof e},t.exports.__esModule=!0,t.exports.default=t.exports,n(e)}t.exports=n,t.exports.__esModule=!0,t.exports.default=t.exports}}),Wme=sf({"../../node_modules/.pnpm/@oxc-project+runtime@0.72.2/node_modules/@oxc-project/runtime/src/helpers/toPrimitive.js"(e,t){var n=ff().default;function r(e,t){if(n(e)!=`object`||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var i=r.call(e,t||`default`);if(n(i)!=`object`)return i;throw TypeError(`@@toPrimitive must return a primitive value.`)}return(t===`string`?String:Number)(e)}t.exports=r,t.exports.__esModule=!0,t.exports.default=t.exports}}),Gme=sf({"../../node_modules/.pnpm/@oxc-project+runtime@0.72.2/node_modules/@oxc-project/runtime/src/helpers/toPropertyKey.js"(e,t){var n=ff().default,r=Wme();function i(e){var t=r(e,`string`);return n(t)==`symbol`?t:t+``}t.exports=i,t.exports.__esModule=!0,t.exports.default=t.exports}}),pf=sf({"../../node_modules/.pnpm/@oxc-project+runtime@0.72.2/node_modules/@oxc-project/runtime/src/helpers/defineProperty.js"(e,t){var n=Gme();function r(e,t,r){return(t=n(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}t.exports=r,t.exports.__esModule=!0,t.exports.default=t.exports}}),mf=sf({"../../node_modules/.pnpm/@oxc-project+runtime@0.72.2/node_modules/@oxc-project/runtime/src/helpers/objectSpread2.js"(e,t){var n=pf();function r(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function i(e){for(var t=1;t<arguments.length;t++){var i=arguments[t]==null?{}:arguments[t];t%2?r(Object(i),!0).forEach(function(t){n(e,t,i[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(i)):r(Object(i)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(i,t))})}return e}t.exports=i,t.exports.__esModule=!0,t.exports.default=t.exports}});cf(mf(),1),cf(pf(),1);var hf=cf(mf(),1);function Kme(e,t){if(`error`in e){let n=t.deserialize(e.error);return{ok:!1,error:(0,hf.default)((0,hf.default)({},e),{},{error:n})}}return{ok:!0,result:(0,hf.default)((0,hf.default)({},e.result),(!e.result.type||e.result.type===`data`)&&{type:`data`,data:t.deserialize(e.result.data)})}}var gf=class extends Error{constructor(){super(`Unable to transform response from server`)}};function _f(e,t){let n;try{n=Kme(e,t)}catch{throw new gf}if(!n.ok&&(!ef(n.error.error)||typeof n.error.error.code!=`number`)||n.ok&&!ef(n.result))throw new gf;return n}cf(mf(),1);var vf=Gd(qd(),1),yf=Gd(Jd(),1);function qme(e){return e instanceof bf}function Jme(e){return ef(e)&&ef(e.error)&&typeof e.error.code==`number`&&typeof e.error.message==`string`}function Yme(e,t){return typeof e==`string`?e:ef(e)&&typeof e.message==`string`?e.message:t}var bf=class e extends Error{constructor(t,n){var r,i;let a=n?.cause;super(t,{cause:a}),(0,vf.default)(this,`cause`,void 0),(0,vf.default)(this,`shape`,void 0),(0,vf.default)(this,`data`,void 0),(0,vf.default)(this,`meta`,void 0),this.meta=n?.meta,this.cause=a,this.shape=n==null||(r=n.result)==null?void 0:r.error,this.data=n==null||(i=n.result)==null?void 0:i.error.data,this.name=`TRPCClientError`,Object.setPrototypeOf(this,e.prototype)}static from(t,n={}){let r=t;return qme(r)?(n.meta&&(r.meta=(0,yf.default)((0,yf.default)({},r.meta),n.meta)),r):Jme(r)?new e(r.error.message,(0,yf.default)((0,yf.default)({},n),{},{result:r,cause:n.cause})):new e(Yme(r,`Unknown error`),(0,yf.default)((0,yf.default)({},n),{},{cause:r}))}};function xf(e){let t=e;return t?`input`in t?t:{input:t,output:t}:{input:{serialize:e=>e,deserialize:e=>e},output:{serialize:e=>e,deserialize:e=>e}}}var Sf=e=>typeof e==`function`;function Xme(e){if(e)return e;if(typeof window<`u`&&Sf(window.fetch))return window.fetch;if(typeof globalThis<`u`&&Sf(globalThis.fetch))return globalThis.fetch;throw Error(`No fetch implementation found`)}var Cf=Gd(Jd(),1);function wf(e){return{url:e.url.toString(),fetch:e.fetch,transformer:xf(e.transformer),methodOverride:e.methodOverride}}function Zme(e){let t={};for(let n=0;n<e.length;n++)t[n]=e[n];return t}var Qme={query:`GET`,mutation:`POST`,subscription:`PATCH`};function Tf(e){return`input`in e?e.transformer.input.serialize(e.input):Zme(e.inputs.map(t=>e.transformer.input.serialize(t)))}var Ef=e=>{let t=e.url.split(`?`),n=t[0].replace(/\/$/,``)+`/`+e.path,r=[];if(t[1]&&r.push(t[1]),`inputs`in e&&r.push(`batch=1`),e.type===`query`||e.type===`subscription`){let t=Tf(e);t!==void 0&&e.methodOverride!==`POST`&&r.push(`input=${encodeURIComponent(JSON.stringify(t))}`)}return r.length&&(n+=`?`+r.join(`&`)),n},$me=e=>{if(e.type===`query`&&e.methodOverride!==`POST`)return;let t=Tf(e);return t===void 0?void 0:JSON.stringify(t)},Df=e=>Of((0,Cf.default)((0,Cf.default)({},e),{},{contentTypeHeader:`application/json`,getUrl:Ef,getBody:$me})),ehe=class extends Error{constructor(){let e=`AbortError`;super(e),this.name=e,this.message=e}},the=e=>{var t;if(e?.aborted)throw(t=e.throwIfAborted)==null||t.call(e),typeof DOMException<`u`?new DOMException(`AbortError`,`AbortError`):new ehe};async function nhe(e){the(e.signal);let t=e.getUrl(e),n=e.getBody(e),r=e.methodOverride??Qme[e.type],i=await(async()=>{let t=await e.headers();return Symbol.iterator in t?Object.fromEntries(t):t})(),a=(0,Cf.default)((0,Cf.default)((0,Cf.default)({},e.contentTypeHeader&&r!==`GET`?{"content-type":e.contentTypeHeader}:{}),e.trpcAcceptHeader?{"trpc-accept":e.trpcAcceptHeader}:void 0),i);return Xme(e.fetch)(t,{method:r,signal:e.signal,body:n,headers:a})}async function Of(e){let t={},n=await nhe(e);t.response=n;let r=await n.json();return t.responseJSON=r,{json:r,meta:t}}function rhe(e){return e instanceof Uint8Array||e instanceof Blob}function ihe(e){return e instanceof FormData}var kf=Gd(Jd(),1),ahe=e=>{if(`input`in e){let{input:t}=e;if(ihe(t)){if(e.type!==`mutation`&&e.methodOverride!==`POST`)throw Error(`FormData is only supported for mutations`);return Of((0,kf.default)((0,kf.default)({},e),{},{contentTypeHeader:void 0,getUrl:Ef,getBody:()=>t}))}if(rhe(t)){if(e.type!==`mutation`&&e.methodOverride!==`POST`)throw Error(`Octet type input is only supported for mutations`);return Of((0,kf.default)((0,kf.default)({},e),{},{contentTypeHeader:`application/octet-stream`,getUrl:Ef,getBody:()=>t}))}}return Df(e)};function ohe(e){let t=wf(e);return()=>n=>{let{op:r}=n;return Yd(n=>{let{path:i,input:a,type:o}=r;if(o===`subscription`)throw Error("Subscriptions are unsupported by `httpLink` - use `httpSubscriptionLink` or `wsLink`");let s=ahe((0,kf.default)((0,kf.default)({},t),{},{type:o,path:i,input:a,signal:r.signal,headers(){return e.headers?typeof e.headers==`function`?e.headers({op:r}):e.headers:{}}})),c;return s.then(e=>{c=e.meta;let r=_f(e.json,t.transformer.output);if(!r.ok){n.error(bf.from(r.error,{meta:c}));return}n.next({context:e.meta,result:r.result}),n.complete()}).catch(e=>{n.error(bf.from(e,{meta:c}))}),()=>{}})}}var Af=()=>{throw Error(`Something went wrong. Please submit an issue at https://github.com/trpc/trpc/issues/new`)};function jf(e){let t=null,n=null,r=()=>{clearTimeout(n),n=null,t=null};function i(t){let n=[[]],r=0;for(;;){let o=t[r];if(!o)break;let s=n[n.length-1];if(o.aborted){var i;(i=o.reject)==null||i.call(o,Error(`Aborted`)),r++;continue}if(e.validate(s.concat(o).map(e=>e.key))){s.push(o),r++;continue}if(s.length===0){var a;(a=o.reject)==null||a.call(o,Error(`Input is too big for a single dispatch`)),r++;continue}n.push([])}return n}function a(){let n=i(t);r();for(let t of n){if(!t.length)continue;let n={items:t};for(let e of t)e.batch=n;e.fetch(n.items.map(e=>e.key)).then(async e=>{await Promise.all(e.map(async(e,t)=>{let r=n.items[t];try{var i;let t=await Promise.resolve(e);(i=r.resolve)==null||i.call(r,t)}catch(e){var a;(a=r.reject)==null||a.call(r,e)}r.batch=null,r.reject=null,r.resolve=null}));for(let e of n.items){var t;(t=e.reject)==null||t.call(e,Error(`Missing result`)),e.batch=null}}).catch(e=>{for(let r of n.items){var t;(t=r.reject)==null||t.call(r,e),r.batch=null}})}}function o(e){let r={aborted:!1,key:e,batch:null,resolve:Af,reject:Af},i=new Promise((e,n)=>{r.reject=n,r.resolve=e,t??=[],t.push(r)});return n??=setTimeout(a),i}return{load:o}}function she(...e){let t=new AbortController,n=e.length,r=0,i=()=>{++r===n&&t.abort()};for(let t of e)t?.aborted?i():t?.addEventListener(`abort`,i,{once:!0});return t.signal}var Mf=Gd(Jd(),1);function che(e){let t=wf(e),n=e.maxURLLength??1/0,r=e.maxItems??1/0;return()=>{let i=i=>({validate(e){if(n===1/0&&r===1/0)return!0;if(e.length>r)return!1;let a=e.map(e=>e.path).join(`,`),o=e.map(e=>e.input);return Ef((0,Mf.default)((0,Mf.default)({},t),{},{type:i,path:a,inputs:o,signal:null})).length<=n},async fetch(n){let r=n.map(e=>e.path).join(`,`),a=n.map(e=>e.input),o=she(...n.map(e=>e.signal)),s=await Df((0,Mf.default)((0,Mf.default)({},t),{},{path:r,inputs:a,type:i,headers(){return e.headers?typeof e.headers==`function`?e.headers({opList:n}):e.headers:{}},signal:o}));return(Array.isArray(s.json)?s.json:n.map(()=>s.json)).map(e=>({meta:s.meta,json:e}))}}),a={query:jf(i(`query`)),mutation:jf(i(`mutation`))};return({op:e})=>Yd(n=>{if(e.type===`subscription`)throw Error("Subscriptions are unsupported by `httpLink` - use `httpSubscriptionLink` or `wsLink`");let r=a[e.type].load(e),i;return r.then(e=>{i=e;let r=_f(e.json,t.transformer.output);if(!r.ok){n.error(bf.from(r.error,{meta:e.meta}));return}n.next({context:e.meta,result:r.result}),n.complete()}).catch(e=>{n.error(bf.from(e,{meta:i?.meta}))}),()=>{}})}}Gd(Jd(),1);var lhe={encode:e=>JSON.stringify(e),decode:e=>{if(typeof e!=`string`)throw Error(`jsonEncoder received binary data. JSON uses text frames. Use a binary encoder for binary data.`);return JSON.parse(e)}},uhe={enabled:!1,closeMs:0},dhe={enabled:!1,pongTimeoutMs:1e3,intervalMs:5e3},fhe=e=>e===0?0:Math.min(1e3*2**e,3e4),Nf=(e,...t)=>typeof e==`function`?e(...t):e,phe=Gd(qd(),1),Pf=class e extends Error{constructor(t){super(t.message,{cause:t.cause}),this.name=`TRPCWebSocketClosedError`,Object.setPrototypeOf(this,e.prototype)}},mhe=class{constructor(e,t){this.onTimeout=e,this.timeoutMs=t,(0,phe.default)(this,`timeout`,void 0)}reset(){this.timeout&&=(clearTimeout(this.timeout),setTimeout(this.onTimeout,this.timeoutMs))}start(){clearTimeout(this.timeout),this.timeout=setTimeout(this.onTimeout,this.timeoutMs)}stop(){clearTimeout(this.timeout),this.timeout=void 0}};function Ff(){let e,t;return{promise:new Promise((n,r)=>{e=n,t=r}),resolve:e,reject:t}}async function hhe(e){let t=await Nf(e.url);return e.connectionParams?t+`${t.includes(`?`)?`&`:`?`}connectionParams=1`:t}async function ghe(e,t){let n={method:`connectionParams`,data:await Nf(e)};return t.encode(n)}var If=Gd(qd(),1),_he=class{constructor(){(0,If.default)(this,`outgoingRequests`,[]),(0,If.default)(this,`pendingRequests`,{})}register(e,t){let{promise:n,resolve:r}=Ff();return this.outgoingRequests.push({id:String(e.id),message:e,end:n,callbacks:{next:t.next,complete:()=>{t.complete(),r()},error:e=>{t.error(e),r()}}}),()=>{this.delete(e.id),t.complete(),r()}}delete(e){e!==null&&(this.outgoingRequests=this.outgoingRequests.filter(({id:t})=>t!==String(e)),delete this.pendingRequests[String(e)])}flush(){let e=this.outgoingRequests;this.outgoingRequests=[];for(let t of e)this.pendingRequests[t.id]=t;return e}getPendingRequests(){return Object.values(this.pendingRequests)}getPendingRequest(e){return e===null?null:this.pendingRequests[String(e)]}getOutgoingRequests(){return this.outgoingRequests}getRequests(){return[...this.getOutgoingRequests().map(e=>({state:`outgoing`,message:e.message,end:e.end,callbacks:e.callbacks})),...this.getPendingRequests().map(e=>({state:`pending`,message:e.message,end:e.end,callbacks:e.callbacks}))]}hasPendingRequests(){return this.getPendingRequests().length>0}hasPendingSubscriptions(){return this.getPendingRequests().some(e=>e.message.method===`subscription`)}hasOutgoingRequests(){return this.outgoingRequests.length>0}},Lf=Gd(qd(),1);function vhe(e){let{promise:t,resolve:n,reject:r}=Ff();return e.addEventListener(`open`,()=>{e.removeEventListener(`error`,r),n()}),e.addEventListener(`error`,r),t}function yhe(e,{intervalMs:t,pongTimeoutMs:n}){let r,i;function a(){r=setTimeout(()=>{e.send(`PING`),i=setTimeout(()=>{e.close()},n)},t)}function o(){clearTimeout(r),a()}function s(){clearTimeout(i),o()}e.addEventListener(`open`,a),e.addEventListener(`message`,({data:e})=>{clearTimeout(r),a(),e===`PONG`&&s()}),e.addEventListener(`close`,()=>{clearTimeout(r),clearTimeout(i)})}var Rf=class e{constructor(t){if((0,Lf.default)(this,`id`,++e.connectCount),(0,Lf.default)(this,`WebSocketPonyfill`,void 0),(0,Lf.default)(this,`urlOptions`,void 0),(0,Lf.default)(this,`keepAliveOpts`,void 0),(0,Lf.default)(this,`encoder`,void 0),(0,Lf.default)(this,`wsObservable`,Xd(null)),(0,Lf.default)(this,`openPromise`,null),this.WebSocketPonyfill=t.WebSocketPonyfill??WebSocket,!this.WebSocketPonyfill)throw Error("No WebSocket implementation found - you probably don't want to use this on the server, but if you do you need to pass a `WebSocket`-ponyfill");this.urlOptions=t.urlOptions,this.keepAliveOpts=t.keepAlive,this.encoder=t.encoder}get ws(){return this.wsObservable.get()}set ws(e){this.wsObservable.next(e)}isOpen(){return!!this.ws&&this.ws.readyState===this.WebSocketPonyfill.OPEN&&!this.openPromise}isClosed(){return!!this.ws&&(this.ws.readyState===this.WebSocketPonyfill.CLOSING||this.ws.readyState===this.WebSocketPonyfill.CLOSED)}async open(){var t=this;if(t.openPromise)return t.openPromise;t.id=++e.connectCount,t.openPromise=hhe(t.urlOptions).then(e=>new t.WebSocketPonyfill(e)).then(async e=>{t.ws=e,e.binaryType=`arraybuffer`,e.addEventListener(`message`,function({data:e}){e===`PING`&&this.send(`PONG`)}),t.keepAliveOpts.enabled&&yhe(e,t.keepAliveOpts),e.addEventListener(`close`,()=>{t.ws===e&&(t.ws=null)}),await vhe(e),t.urlOptions.connectionParams&&e.send(await ghe(t.urlOptions.connectionParams,t.encoder))});try{await t.openPromise}finally{t.openPromise=null}}async close(){var e=this;try{await e.openPromise}finally{var t;(t=e.ws)==null||t.close()}}};(0,Lf.default)(Rf,`connectCount`,0);function bhe(e){return e.isOpen()?{id:e.id,state:`open`,ws:e.ws}:e.isClosed()?{id:e.id,state:`closed`,ws:e.ws}:e.ws?{id:e.id,state:`connecting`,ws:e.ws}:null}var zf=Gd(qd(),1),Bf=Gd(Jd(),1),xhe=class{constructor(e){(0,zf.default)(this,`connectionState`,void 0),(0,zf.default)(this,`allowReconnect`,!1),(0,zf.default)(this,`requestManager`,new _he),(0,zf.default)(this,`activeConnection`,void 0),(0,zf.default)(this,`reconnectRetryDelay`,void 0),(0,zf.default)(this,`inactivityTimeout`,void 0),(0,zf.default)(this,`callbacks`,void 0),(0,zf.default)(this,`lazyMode`,void 0),(0,zf.default)(this,`encoder`,void 0),(0,zf.default)(this,`reconnecting`,null),this.encoder=e.experimental_encoder??lhe,this.callbacks={onOpen:e.onOpen,onClose:e.onClose,onError:e.onError};let t=(0,Bf.default)((0,Bf.default)({},uhe),e.lazy);this.inactivityTimeout=new mhe(()=>{if(this.requestManager.hasOutgoingRequests()||this.requestManager.hasPendingRequests()){this.inactivityTimeout.reset();return}this.close().catch(()=>null)},t.closeMs),this.activeConnection=new Rf({WebSocketPonyfill:e.WebSocket,urlOptions:e,keepAlive:(0,Bf.default)((0,Bf.default)({},dhe),e.keepAlive),encoder:this.encoder}),this.activeConnection.wsObservable.subscribe({next:e=>{e&&this.setupWebSocketListeners(e)}}),this.reconnectRetryDelay=e.retryDelayMs??fhe,this.lazyMode=t.enabled,this.connectionState=Xd({type:`state`,state:t.enabled?`idle`:`connecting`,error:null}),this.lazyMode||this.open().catch(()=>null)}async open(){var e=this;e.allowReconnect=!0,e.connectionState.get().state===`idle`&&e.connectionState.next({type:`state`,state:`connecting`,error:null});try{await e.activeConnection.open()}catch(t){return e.reconnect(new Pf({message:`Initialization error`,cause:t})),e.reconnecting}}async close(){var e=this;e.allowReconnect=!1,e.inactivityTimeout.stop();let t=[];for(let n of e.requestManager.getRequests())n.message.method===`subscription`?n.callbacks.complete():n.state===`outgoing`?n.callbacks.error(bf.from(new Pf({message:`Closed before connection was established`}))):t.push(n.end);await Promise.all(t).catch(()=>null),await e.activeConnection.close().catch(()=>null),e.connectionState.next({type:`state`,state:`idle`,error:null})}request({op:{id:e,type:t,path:n,input:r,signal:i},transformer:a,lastEventId:o}){return Yd(s=>{let c=this.batchSend({id:e,method:t,params:{input:a.input.serialize(r),path:n,lastEventId:o}},(0,Bf.default)((0,Bf.default)({},s),{},{next(e){let t=_f(e,a.output);if(!t.ok){s.error(bf.from(t.error));return}s.next({result:t.result})}}));return()=>{c(),t===`subscription`&&this.activeConnection.isOpen()&&this.send({id:e,method:`subscription.stop`}),i?.removeEventListener(`abort`,c)}})}get connection(){return bhe(this.activeConnection)}reconnect(e){var t=this;if(this.connectionState.next({type:`state`,state:`connecting`,error:bf.from(e)}),this.reconnecting)return;let n=async e=>{try{await nf(t.reconnectRetryDelay(e)),t.allowReconnect&&(await t.activeConnection.close(),await t.activeConnection.open(),t.requestManager.hasPendingRequests()&&t.send(t.requestManager.getPendingRequests().map(({message:e})=>e))),t.reconnecting=null}catch{await n(e+1)}};this.reconnecting=n(0)}setupWebSocketListeners(e){var t=this;let n=e=>{let t=this.requestManager.getPendingRequests();for(let{message:n,callbacks:r}of t)n.method!==`subscription`&&(r.error(bf.from(e??new Pf({message:`WebSocket closed`,cause:e}))),this.requestManager.delete(n.id))};e.addEventListener(`open`,()=>{tf(async()=>{var e,n;t.lazyMode&&t.inactivityTimeout.start(),(e=(n=t.callbacks).onOpen)==null||e.call(n),t.connectionState.next({type:`state`,state:`pending`,error:null})}).catch(t=>{e.close(3e3),n(t)})}),e.addEventListener(`message`,({data:e})=>{if(this.inactivityTimeout.reset(),[`PING`,`PONG`].includes(e))return;let t=this.encoder.decode(e);if(`method`in t){this.handleIncomingRequest(t);return}this.handleResponseMessage(t)}),e.addEventListener(`close`,e=>{var t,r;n(e),(t=(r=this.callbacks).onClose)==null||t.call(r,e),(!this.lazyMode||this.requestManager.hasPendingSubscriptions())&&this.reconnect(new Pf({message:`WebSocket closed`,cause:e}))}),e.addEventListener(`error`,e=>{var t,r;n(e),(t=(r=this.callbacks).onError)==null||t.call(r,e),this.reconnect(new Pf({message:`WebSocket closed`,cause:e}))})}handleResponseMessage(e){let t=this.requestManager.getPendingRequest(e.id);if(!t)return;t.callbacks.next(e);let n=!0;`result`in e&&t.message.method===`subscription`&&(e.result.type===`data`&&(t.message.params.lastEventId=e.result.id),e.result.type!==`stopped`&&(n=!1)),n&&(t.callbacks.complete(),this.requestManager.delete(e.id))}handleIncomingRequest(e){e.method===`reconnect`&&this.reconnect(new Pf({message:`Server requested reconnect`}))}send(e){if(!this.activeConnection.isOpen())throw Error(`Active connection is not open`);let t=e instanceof Array?e:[e];this.activeConnection.ws.send(this.encoder.encode(t.length===1?t[0]:t))}batchSend(e,t){var n=this;return this.inactivityTimeout.reset(),tf(async()=>{n.activeConnection.isOpen()||await n.open(),await nf(0),n.requestManager.hasOutgoingRequests()&&n.send(n.requestManager.flush().map(({message:e})=>e))}).catch(n=>{this.requestManager.delete(e.id),t.error(bf.from(n))}),this.requestManager.register(e,t)}};function She(e){return new xhe(e)}function Che(e){let{client:t}=e,n=xf(e.transformer);return()=>({op:e})=>Yd(r=>{let i=e.type===`subscription`?t.connectionState.subscribe({next(t){r.next({result:t,context:e.context})}}):null,a=t.request({op:e,transformer:n}).subscribe(r);return()=>{a.unsubscribe(),i?.unsubscribe()}})}var Vf=Gd(qd(),1),Hf=Gd(Jd(),1),whe=class{constructor(e){(0,Vf.default)(this,`links`,void 0),(0,Vf.default)(this,`runtime`,void 0),(0,Vf.default)(this,`requestId`,void 0),this.requestId=0,this.runtime={},this.links=e.links.map(e=>e(this.runtime))}$request(e){return Zd({links:this.links,op:(0,Hf.default)((0,Hf.default)({},e),{},{context:e.context??{},id:++this.requestId})}).pipe(Fme())}async requestAsPromise(e){var t=this;try{return(await Pme(t.$request(e))).result.data}catch(e){throw bf.from(e)}}query(e,t,n){return this.requestAsPromise({type:`query`,path:e,input:t,context:n?.context,signal:n?.signal})}mutation(e,t,n){return this.requestAsPromise({type:`mutation`,path:e,input:t,context:n?.context,signal:n?.signal})}subscription(e,t,n){return this.$request({type:`subscription`,path:e,input:t,context:n.context,signal:n.signal}).subscribe({next(e){switch(e.result.type){case`state`:var t;(t=n.onConnectionStateChange)==null||t.call(n,e.result);break;case`started`:var r;(r=n.onStarted)==null||r.call(n,{context:e.context});break;case`stopped`:var i;(i=n.onStopped)==null||i.call(n);break;case`data`:case void 0:var a;(a=n.onData)==null||a.call(n,e.result.data);break}},error(e){var t;(t=n.onError)==null||t.call(n,e)},complete(){var e;(e=n.onComplete)==null||e.call(n)}})}},The=Symbol.for(`trpc_untypedClient`),Ehe={query:`query`,mutate:`mutation`,subscribe:`subscription`},Dhe=e=>Ehe[e];function Ohe(e){let t=Hme(({path:t,args:n})=>{let r=[...t],i=Dhe(r.pop()),a=r.join(`.`);return e[i](a,...n)});return Ume(n=>n===The?e:t[n])}function Uf(e){return Ohe(new whe(e))}Gd(Jd(),1),Gd(Jd(),1),Gd(Wd({"../../node_modules/.pnpm/@oxc-project+runtime@0.72.2/node_modules/@oxc-project/runtime/src/helpers/asyncIterator.js"(e,t){function n(e){var t,n,i,a=2;for(typeof Symbol<`u`&&(n=Symbol.asyncIterator,i=Symbol.iterator);a--;){if(n&&(t=e[n])!=null)return t.call(e);if(i&&(t=e[i])!=null)return new r(t.call(e));n=`@@asyncIterator`,i=`@@iterator`}throw TypeError(`Object is not async iterable`)}function r(e){function t(e){if(Object(e)!==e)return Promise.reject(TypeError(e+` is not an object.`));var t=e.done;return Promise.resolve(e.value).then(function(e){return{value:e,done:t}})}return r=function(e){this.s=e,this.n=e.next},r.prototype={s:null,n:null,next:function(){return t(this.n.apply(this.s,arguments))},return:function(e){var n=this.s.return;return n===void 0?Promise.resolve({value:e,done:!0}):t(n.apply(this.s,arguments))},throw:function(e){var n=this.s.return;return n===void 0?Promise.reject(e):t(n.apply(this.s,arguments))}},new r(e)}t.exports=n,t.exports.__esModule=!0,t.exports.default=t.exports}})(),1),Gd(Jd(),1);var khe=Wd({"../../node_modules/.pnpm/@oxc-project+runtime@0.72.2/node_modules/@oxc-project/runtime/src/helpers/usingCtx.js"(e,t){function n(){var e=typeof SuppressedError==`function`?SuppressedError:function(e,t){var n=Error();return n.name=`SuppressedError`,n.error=e,n.suppressed=t,n},t={},n=[];function r(e,t){if(t!=null){if(Object(t)!==t)throw TypeError(`using declarations can only be used with objects, functions, null, or undefined.`);if(e)var r=t[Symbol.asyncDispose||Symbol.for(`Symbol.asyncDispose`)];if(r===void 0&&(r=t[Symbol.dispose||Symbol.for(`Symbol.dispose`)],e))var i=r;if(typeof r!=`function`)throw TypeError(`Object is not disposable.`);i&&(r=function(){try{i.call(t)}catch(e){return Promise.reject(e)}}),n.push({v:t,d:r,a:e})}else e&&n.push({d:t,a:e});return t}return{e:t,u:r.bind(null,!1),a:r.bind(null,!0),d:function(){var r,i=this.e,a=0;function o(){for(;r=n.pop();)try{if(!r.a&&a===1)return a=0,n.push(r),Promise.resolve().then(o);if(r.d){var e=r.d.call(r.v);if(r.a)return a|=2,Promise.resolve(e).then(o,s)}else a|=1}catch(e){return s(e)}if(a===1)return i===t?Promise.resolve():Promise.reject(i);if(i!==t)throw i}function s(n){return i=i===t?n:new e(n,i),o()}return o()}}}t.exports=n,t.exports.__esModule=!0,t.exports.default=t.exports}}),Wf=Wd({"../../node_modules/.pnpm/@oxc-project+runtime@0.72.2/node_modules/@oxc-project/runtime/src/helpers/OverloadYield.js"(e,t){function n(e,t){this.v=e,this.k=t}t.exports=n,t.exports.__esModule=!0,t.exports.default=t.exports}}),Ahe=Wd({"../../node_modules/.pnpm/@oxc-project+runtime@0.72.2/node_modules/@oxc-project/runtime/src/helpers/awaitAsyncGenerator.js"(e,t){var n=Wf();function r(e){return new n(e,0)}t.exports=r,t.exports.__esModule=!0,t.exports.default=t.exports}}),jhe=Wd({"../../node_modules/.pnpm/@oxc-project+runtime@0.72.2/node_modules/@oxc-project/runtime/src/helpers/wrapAsyncGenerator.js"(e,t){var n=Wf();function r(e){return function(){return new i(e.apply(this,arguments))}}function i(e){var t,r;function i(t,r){try{var o=e[t](r),s=o.value,c=s instanceof n;Promise.resolve(c?s.v:s).then(function(n){if(c){var r=t===`return`?`return`:`next`;if(!s.k||n.done)return i(r,n);n=e[r](n).value}a(o.done?`return`:`normal`,n)},function(e){i(`throw`,e)})}catch(e){a(`throw`,e)}}function a(e,n){switch(e){case`return`:t.resolve({value:n,done:!0});break;case`throw`:t.reject(n);break;default:t.resolve({value:n,done:!1})}(t=t.next)?i(t.key,t.arg):r=null}this._invoke=function(e,n){return new Promise(function(a,o){var s={key:e,arg:n,resolve:a,reject:o,next:null};r?r=r.next=s:(t=r=s,i(e,n))})},typeof e.return!=`function`&&(this.return=void 0)}i.prototype[typeof Symbol==`function`&&Symbol.asyncIterator||`@@asyncIterator`]=function(){return this},i.prototype.next=function(e){return this._invoke(`next`,e)},i.prototype.throw=function(e){return this._invoke(`throw`,e)},i.prototype.return=function(e){return this._invoke(`return`,e)},t.exports=r,t.exports.__esModule=!0,t.exports.default=t.exports}});Gd(khe(),1),Gd(Ahe(),1),Gd(jhe(),1),Gd(Jd(),1);var Gf=D(`connected`),Kf=D(navigator.onLine),qf=0;function Jf(){Kf.value=!0,Gf.value=`connected`}function Yf(){Kf.value=!1,Gf.value=`disconnected`}function Xf(e){Gf.value=e}function Mhe(){return ur(()=>{qf===0&&(window.addEventListener(`online`,Jf),window.addEventListener(`offline`,Yf)),qf++}),mr(()=>{qf--,qf===0&&(window.removeEventListener(`online`,Jf),window.removeEventListener(`offline`,Yf))}),{state:Gf,isOnline:Kf}}var Zf=`runeya:jwt`;function Nhe(e){sessionStorage.setItem(Zf,e)}function Qf(){return sessionStorage.getItem(Zf)}function Phe(){sessionStorage.removeItem(Zf)}async function $f(){let e=await fetch(`/api/status`,{signal:AbortSignal.timeout(5e3)});if(!e.ok)throw Error(`Failed to fetch server status`);return e.json()}async function Fhe(e){let t=await fetch(`/api/unlock`,{method:`POST`,headers:{"Content-Type":`application/json`},body:JSON.stringify({masterPassword:e}),signal:AbortSignal.timeout(3e4)});if(t.status===429)throw Error(`Trop de tentatives. Réessayez dans 15 minutes.`);if(t.status===401)throw Error(`Master password incorrect`);if(!t.ok){let e=await t.json().catch(()=>({}));throw Error(e.error??`Erreur serveur`)}return(await t.json()).token}async function Ihe(e,t){let n={masterPassword:e};t&&(n.encryptionKey=t);let r=await fetch(`/api/setup`,{method:`POST`,headers:{"Content-Type":`application/json`},body:JSON.stringify(n),signal:AbortSignal.timeout(3e4)});if(r.status===429)throw Error(`Trop de tentatives. Réessayez dans 15 minutes.`);if(!r.ok){let e=await r.json().catch(()=>({}));throw Error(e.error??`Erreur serveur`)}return(await r.json()).token}var Lhe=`modulepreload`,Rhe=function(e){return`/`+e},ep={};const tp=function(e,t,n){let r=Promise.resolve();if(t&&t.length>0){let e=document.getElementsByTagName(`link`),i=document.querySelector(`meta[property=csp-nonce]`),a=i?.nonce||i?.getAttribute(`nonce`);function o(e){return Promise.all(e.map(e=>Promise.resolve(e).then(e=>({status:`fulfilled`,value:e}),e=>({status:`rejected`,reason:e}))))}r=o(t.map(t=>{if(t=Rhe(t,n),t in ep)return;ep[t]=!0;let r=t.endsWith(`.css`),i=r?`[rel="stylesheet"]`:``;if(n)for(let n=e.length-1;n>=0;n--){let i=e[n];if(i.href===t&&(!r||i.rel===`stylesheet`))return}else if(document.querySelector(`link[href="${t}"]${i}`))return;let o=document.createElement(`link`);if(o.rel=r?`stylesheet`:Lhe,r||(o.as=`script`),o.crossOrigin=``,o.href=t,a&&o.setAttribute(`nonce`,a),document.head.appendChild(o),r)return new Promise((e,n)=>{o.addEventListener(`load`,e),o.addEventListener(`error`,()=>n(Error(`Unable to preload CSS for ${t}`)))})}))}function i(e){let t=new Event(`vite:preloadError`,{cancelable:!0});if(t.payload=e,window.dispatchEvent(t),!t.defaultPrevented)throw e}return r.then(t=>{for(let e of t||[])e.status===`rejected`&&i(e.reason);return e().catch(i)})};var zhe=`runeya:ws-debug`;function Bhe(){try{return localStorage.getItem(zhe)===`1`}catch{return!1}}function np(...e){Bhe()&&console.log(`[trpc][ws]`,new Date().toISOString(),...e)}function Vhe(){np(`closeTrpcWs()`),pp?.close(),pp=null,gp=hp(),mp=!1}var rp=new Set;function ip(e){return rp.add(e),()=>rp.delete(e)}var ap=!1;function op(e=`unknown`){ap||(ap=!0,np(`handleAuthError()`,{reason:e,tokenPresent:!!Qf()}),Phe(),Vhe(),tp(async()=>{let{useProcessStore:e}=await import(`./process.store-Bt4k1TZl.js`);return{useProcessStore:e}},[]).then(({useProcessStore:e})=>{try{e().stopStatusStream()}catch{}}).catch(()=>{}),tp(async()=>{let{useAiChatDrawer:e}=await import(`./useAiChatDrawer-CaLJAha9.js`);return{useAiChatDrawer:e}},[]).then(({useAiChatDrawer:e})=>e().close()).catch(()=>{}),Xf(`connected`),tp(async()=>{let{router:e}=await import(`./router-DcgtzWsZ.js`);return{router:e}},[]).then(({router:e})=>{let t=e.currentRoute.value,n=new Set([`unlock`,`setup`,`setup-key`]).has(t.name)?void 0:t.fullPath;e.push({name:`unlock`,query:n?{redirect:n}:void 0}).catch(()=>{}).finally(()=>{ap=!1})}).catch(()=>{ap=!1}))}function sp(){return`/api/trpc`}function Hhe(){let e=`${window.location.protocol===`https:`?`wss:`:`ws:`}//${window.location.host}`,t=Qf();return t?`${e}?token=${encodeURIComponent(t)}`:e}var cp=()=>{let e=Qf();return e?{Authorization:`Bearer ${e}`}:{}},lp=async(e,t)=>{let n=await globalThis.fetch(e,t);return n.status===401&&op(`http-401`),n};function up(){return che({url:sp(),headers:cp,fetch:lp})}function dp(){return ohe({url:sp(),headers:cp,fetch:lp})}var fp=new Set([`chat.getClaudeUsage`,`chat.getCodexUsage`]),pp=null,mp=!1;function hp(){return Uf({links:[$d({condition:e=>fp.has(e.path),true:dp(),false:up()})]})}function Uhe(e){return Uf({links:[$d({condition:e=>e.type===`subscription`,true:Che({client:e}),false:$d({condition:e=>fp.has(e.path),true:dp(),false:up()})})]})}var gp=hp(),_p=0;function Whe(e){return She({url:()=>Hhe(),retryDelayMs:()=>500,lazy:{enabled:!1,closeMs:0},keepAlive:{enabled:!0,intervalMs:1e4},onOpen(){e===_p&&(np(`auth ws onOpen — firing`,rp.size,`reopen callbacks`),np(`[trpc][ws] onOpen — firing reopen callbacks`,rp.size),Xf(`connected`),rp.forEach(e=>e()))},onError(t){e===_p&&np(`auth ws onError`,t)},onClose(t){if(e===_p){if(np(`auth ws onClose`,t),t?.code===4401){op(`ws-close-4401`);return}Ghe().catch(()=>{}),Xf(`reconnecting`)}}})}async function Ghe(){let e=Qf();if(!e||Khe(e)){op(`ws-check-token`);return}try{let e=await globalThis.fetch(`/api/status`,{signal:AbortSignal.timeout(5e3)});e.ok&&(await e.json()).state!==`unlocked`&&op(`ws-check-status`)}catch{}}function Khe(e){try{let t=JSON.parse(atob(e.split(`.`)[1]??``));return t.exp!=null&&t.exp<=Math.floor(Date.now()/1e3)}catch{return!0}}function vp(e=!1){if(np(`initTrpcWs() start`),!e&&mp&&pp){np(`initTrpcWs() already initialized, skip`);return}pp?.close(),Xf(`connected`),_p++,pp=Whe(_p),gp=Uhe(pp),mp=!0}const yp=new Proxy({},{get(e,t){return gp[t]}}),bp=Object.freeze({status:`aborted`});function N(e,t,n){function r(n,r){if(n._zod||Object.defineProperty(n,`_zod`,{value:{def:r,constr:o,traits:new Set},enumerable:!1}),n._zod.traits.has(e))return;n._zod.traits.add(e),t(n,r);let i=o.prototype,a=Object.keys(i);for(let e=0;e<a.length;e++){let t=a[e];t in n||(n[t]=i[t].bind(n))}}let i=n?.Parent??Object;class a extends i{}Object.defineProperty(a,`name`,{value:e});function o(e){var t;let i=n?.Parent?new a:this;r(i,e),(t=i._zod).deferred??(t.deferred=[]);for(let e of i._zod.deferred)e();return i}return Object.defineProperty(o,`init`,{value:r}),Object.defineProperty(o,Symbol.hasInstance,{value:t=>n?.Parent&&t instanceof n.Parent?!0:t?._zod?.traits?.has(e)}),Object.defineProperty(o,`name`,{value:e}),o}const xp=Symbol(`zod_brand`);var Sp=class extends Error{constructor(){super(`Encountered Promise during synchronous parse. Use .parseAsync() instead.`)}},Cp=class extends Error{constructor(e){super(`Encountered unidirectional transform during encode: ${e}`),this.name=`ZodEncodeError`}};const wp={};function Tp(e){return e&&Object.assign(wp,e),wp}var Ep=s({BIGINT_FORMAT_RANGES:()=>$p,Class:()=>_ge,NUMBER_FORMAT_RANGES:()=>Qp,aborted:()=>rm,allowsEval:()=>Hp,assert:()=>Zhe,assertEqual:()=>qhe,assertIs:()=>Yhe,assertNever:()=>Xhe,assertNotEqual:()=>Jhe,assignProp:()=>Ip,base64ToUint8Array:()=>dge,base64urlToUint8Array:()=>pge,cached:()=>Ap,captureStackTrace:()=>Bp,cleanEnum:()=>uge,cleanRegex:()=>Mp,clone:()=>Jp,cloneDef:()=>$he,createTransparentProxy:()=>age,defineLazy:()=>Fp,esc:()=>Rp,escapeRegex:()=>qp,extend:()=>nm,finalizeIssue:()=>om,floatSafeRemainder:()=>Np,getElementAtPath:()=>ege,getEnumValues:()=>Dp,getLengthableOrigin:()=>cm,getParsedType:()=>ige,getSizableOrigin:()=>sm,hexToUint8Array:()=>hge,isObject:()=>Vp,isPlainObject:()=>Up,issue:()=>um,joinValues:()=>Op,jsonStringifyReplacer:()=>kp,merge:()=>sge,mergeDefs:()=>Lp,normalizeParams:()=>Yp,nullish:()=>jp,numKeys:()=>rge,objectClone:()=>Qhe,omit:()=>tm,optionalKeys:()=>Zp,parsedType:()=>lm,partial:()=>cge,pick:()=>em,prefixIssues:()=>im,primitiveTypes:()=>Kp,promiseAllObject:()=>tge,propertyKeyTypes:()=>Gp,randomString:()=>nge,required:()=>lge,safeExtend:()=>oge,shallowClone:()=>Wp,slugify:()=>zp,stringifyPrimitive:()=>Xp,uint8ArrayToBase64:()=>fge,uint8ArrayToBase64url:()=>mge,uint8ArrayToHex:()=>gge,unwrapMessage:()=>am},1);function qhe(e){return e}function Jhe(e){return e}function Yhe(e){}function Xhe(e){throw Error(`Unexpected value in exhaustive check`)}function Zhe(e){}function Dp(e){let t=Object.values(e).filter(e=>typeof e==`number`);return Object.entries(e).filter(([e,n])=>t.indexOf(+e)===-1).map(([e,t])=>t)}function Op(e,t=`|`){return e.map(e=>Xp(e)).join(t)}function kp(e,t){return typeof t==`bigint`?t.toString():t}function Ap(e){return{get value(){{let t=e();return Object.defineProperty(this,`value`,{value:t}),t}throw Error(`cached value already set`)}}}function jp(e){return e==null}function Mp(e){let t=e.startsWith(`^`)?1:0,n=e.endsWith(`$`)?e.length-1:e.length;return e.slice(t,n)}function Np(e,t){let n=(e.toString().split(`.`)[1]||``).length,r=t.toString(),i=(r.split(`.`)[1]||``).length;if(i===0&&/\d?e-\d?/.test(r)){let e=r.match(/\d?e-(\d?)/);e?.[1]&&(i=Number.parseInt(e[1]))}let a=n>i?n:i;return Number.parseInt(e.toFixed(a).replace(`.`,``))%Number.parseInt(t.toFixed(a).replace(`.`,``))/10**a}var Pp=Symbol(`evaluating`);function Fp(e,t,n){let r;Object.defineProperty(e,t,{get(){if(r!==Pp)return r===void 0&&(r=Pp,r=n()),r},set(n){Object.defineProperty(e,t,{value:n})},configurable:!0})}function Qhe(e){return Object.create(Object.getPrototypeOf(e),Object.getOwnPropertyDescriptors(e))}function Ip(e,t,n){Object.defineProperty(e,t,{value:n,writable:!0,enumerable:!0,configurable:!0})}function Lp(...e){let t={};for(let n of e){let e=Object.getOwnPropertyDescriptors(n);Object.assign(t,e)}return Object.defineProperties({},t)}function $he(e){return Lp(e._zod.def)}function ege(e,t){return t?t.reduce((e,t)=>e?.[t],e):e}function tge(e){let t=Object.keys(e),n=t.map(t=>e[t]);return Promise.all(n).then(e=>{let n={};for(let r=0;r<t.length;r++)n[t[r]]=e[r];return n})}function nge(e=10){let t=``;for(let n=0;n<e;n++)t+=`abcdefghijklmnopqrstuvwxyz`[Math.floor(Math.random()*26)];return t}function Rp(e){return JSON.stringify(e)}function zp(e){return e.toLowerCase().trim().replace(/[^\w\s-]/g,``).replace(/[\s_-]+/g,`-`).replace(/^-+|-+$/g,``)}const Bp=`captureStackTrace`in Error?Error.captureStackTrace:(...e)=>{};function Vp(e){return typeof e==`object`&&!!e&&!Array.isArray(e)}const Hp=Ap(()=>{if(typeof navigator<`u`&&navigator?.userAgent?.includes(`Cloudflare`))return!1;try{return Function(``),!0}catch{return!1}});function Up(e){if(Vp(e)===!1)return!1;let t=e.constructor;if(t===void 0||typeof t!=`function`)return!0;let n=t.prototype;return!(Vp(n)===!1||Object.prototype.hasOwnProperty.call(n,`isPrototypeOf`)===!1)}function Wp(e){return Up(e)?{...e}:Array.isArray(e)?[...e]:e}function rge(e){let t=0;for(let n in e)Object.prototype.hasOwnProperty.call(e,n)&&t++;return t}const ige=e=>{let t=typeof e;switch(t){case`undefined`:return`undefined`;case`string`:return`string`;case`number`:return Number.isNaN(e)?`nan`:`number`;case`boolean`:return`boolean`;case`function`:return`function`;case`bigint`:return`bigint`;case`symbol`:return`symbol`;case`object`:return Array.isArray(e)?`array`:e===null?`null`:e.then&&typeof e.then==`function`&&e.catch&&typeof e.catch==`function`?`promise`:typeof Map<`u`&&e instanceof Map?`map`:typeof Set<`u`&&e instanceof Set?`set`:typeof Date<`u`&&e instanceof Date?`date`:typeof File<`u`&&e instanceof File?`file`:`object`;default:throw Error(`Unknown data type: ${t}`)}},Gp=new Set([`string`,`number`,`symbol`]),Kp=new Set([`string`,`number`,`bigint`,`boolean`,`symbol`,`undefined`]);function qp(e){return e.replace(/[.*+?^${}()|[\]\\]/g,`\\$&`)}function Jp(e,t,n){let r=new e._zod.constr(t??e._zod.def);return(!t||n?.parent)&&(r._zod.parent=e),r}function Yp(e){let t=e;if(!t)return{};if(typeof t==`string`)return{error:()=>t};if(t?.message!==void 0){if(t?.error!==void 0)throw Error("Cannot specify both `message` and `error` params");t.error=t.message}return delete t.message,typeof t.error==`string`?{...t,error:()=>t.error}:t}function age(e){let t;return new Proxy({},{get(n,r,i){return t??=e(),Reflect.get(t,r,i)},set(n,r,i,a){return t??=e(),Reflect.set(t,r,i,a)},has(n,r){return t??=e(),Reflect.has(t,r)},deleteProperty(n,r){return t??=e(),Reflect.deleteProperty(t,r)},ownKeys(n){return t??=e(),Reflect.ownKeys(t)},getOwnPropertyDescriptor(n,r){return t??=e(),Reflect.getOwnPropertyDescriptor(t,r)},defineProperty(n,r,i){return t??=e(),Reflect.defineProperty(t,r,i)}})}function Xp(e){return typeof e==`bigint`?e.toString()+`n`:typeof e==`string`?`"${e}"`:`${e}`}function Zp(e){return Object.keys(e).filter(t=>e[t]._zod.optin===`optional`&&e[t]._zod.optout===`optional`)}const Qp={safeint:[-(2**53-1),2**53-1],int32:[-2147483648,2147483647],uint32:[0,4294967295],float32:[-34028234663852886e22,34028234663852886e22],float64:[-Number.MAX_VALUE,Number.MAX_VALUE]},$p={int64:[BigInt(`-9223372036854775808`),BigInt(`9223372036854775807`)],uint64:[BigInt(0),BigInt(`18446744073709551615`)]};function em(e,t){let n=e._zod.def,r=n.checks;if(r&&r.length>0)throw Error(`.pick() cannot be used on object schemas containing refinements`);return Jp(e,Lp(e._zod.def,{get shape(){let e={};for(let r in t){if(!(r in n.shape))throw Error(`Unrecognized key: "${r}"`);t[r]&&(e[r]=n.shape[r])}return Ip(this,`shape`,e),e},checks:[]}))}function tm(e,t){let n=e._zod.def,r=n.checks;if(r&&r.length>0)throw Error(`.omit() cannot be used on object schemas containing refinements`);return Jp(e,Lp(e._zod.def,{get shape(){let r={...e._zod.def.shape};for(let e in t){if(!(e in n.shape))throw Error(`Unrecognized key: "${e}"`);t[e]&&delete r[e]}return Ip(this,`shape`,r),r},checks:[]}))}function nm(e,t){if(!Up(t))throw Error(`Invalid input to extend: expected a plain object`);let n=e._zod.def.checks;if(n&&n.length>0){let n=e._zod.def.shape;for(let e in t)if(Object.getOwnPropertyDescriptor(n,e)!==void 0)throw Error("Cannot overwrite keys on object schemas containing refinements. Use `.safeExtend()` instead.")}return Jp(e,Lp(e._zod.def,{get shape(){let n={...e._zod.def.shape,...t};return Ip(this,`shape`,n),n}}))}function oge(e,t){if(!Up(t))throw Error(`Invalid input to safeExtend: expected a plain object`);return Jp(e,Lp(e._zod.def,{get shape(){let n={...e._zod.def.shape,...t};return Ip(this,`shape`,n),n}}))}function sge(e,t){return Jp(e,Lp(e._zod.def,{get shape(){let n={...e._zod.def.shape,...t._zod.def.shape};return Ip(this,`shape`,n),n},get catchall(){return t._zod.def.catchall},checks:[]}))}function cge(e,t,n){let r=t._zod.def.checks;if(r&&r.length>0)throw Error(`.partial() cannot be used on object schemas containing refinements`);return Jp(t,Lp(t._zod.def,{get shape(){let r=t._zod.def.shape,i={...r};if(n)for(let t in n){if(!(t in r))throw Error(`Unrecognized key: "${t}"`);n[t]&&(i[t]=e?new e({type:`optional`,innerType:r[t]}):r[t])}else for(let t in r)i[t]=e?new e({type:`optional`,innerType:r[t]}):r[t];return Ip(this,`shape`,i),i},checks:[]}))}function lge(e,t,n){return Jp(t,Lp(t._zod.def,{get shape(){let r=t._zod.def.shape,i={...r};if(n)for(let t in n){if(!(t in i))throw Error(`Unrecognized key: "${t}"`);n[t]&&(i[t]=new e({type:`nonoptional`,innerType:r[t]}))}else for(let t in r)i[t]=new e({type:`nonoptional`,innerType:r[t]});return Ip(this,`shape`,i),i}}))}function rm(e,t=0){if(e.aborted===!0)return!0;for(let n=t;n<e.issues.length;n++)if(e.issues[n]?.continue!==!0)return!0;return!1}function im(e,t){return t.map(t=>{var n;return(n=t).path??(n.path=[]),t.path.unshift(e),t})}function am(e){return typeof e==`string`?e:e?.message}function om(e,t,n){let r={...e,path:e.path??[]};return e.message||(r.message=am(e.inst?._zod.def?.error?.(e))??am(t?.error?.(e))??am(n.customError?.(e))??am(n.localeError?.(e))??`Invalid input`),delete r.inst,delete r.continue,t?.reportInput||delete r.input,r}function sm(e){return e instanceof Set?`set`:e instanceof Map?`map`:e instanceof File?`file`:`unknown`}function cm(e){return Array.isArray(e)?`array`:typeof e==`string`?`string`:`unknown`}function lm(e){let t=typeof e;switch(t){case`number`:return Number.isNaN(e)?`nan`:`number`;case`object`:{if(e===null)return`null`;if(Array.isArray(e))return`array`;let t=e;if(t&&Object.getPrototypeOf(t)!==Object.prototype&&`constructor`in t&&t.constructor)return t.constructor.name}}return t}function um(...e){let[t,n,r]=e;return typeof t==`string`?{message:t,code:`custom`,input:n,inst:r}:{...t}}function uge(e){return Object.entries(e).filter(([e,t])=>Number.isNaN(Number.parseInt(e,10))).map(e=>e[1])}function dge(e){let t=atob(e),n=new Uint8Array(t.length);for(let e=0;e<t.length;e++)n[e]=t.charCodeAt(e);return n}function fge(e){let t=``;for(let n=0;n<e.length;n++)t+=String.fromCharCode(e[n]);return btoa(t)}function pge(e){let t=e.replace(/-/g,`+`).replace(/_/g,`/`);return dge(t+`=`.repeat((4-t.length%4)%4))}function mge(e){return fge(e).replace(/\+/g,`-`).replace(/\//g,`_`).replace(/=/g,``)}function hge(e){let t=e.replace(/^0x/,``);if(t.length%2!=0)throw Error(`Invalid hex string length`);let n=new Uint8Array(t.length/2);for(let e=0;e<t.length;e+=2)n[e/2]=Number.parseInt(t.slice(e,e+2),16);return n}function gge(e){return Array.from(e).map(e=>e.toString(16).padStart(2,`0`)).join(``)}var _ge=class{constructor(...e){}},vge=(e,t)=>{e.name=`$ZodError`,Object.defineProperty(e,`_zod`,{value:e._zod,enumerable:!1}),Object.defineProperty(e,`issues`,{value:t,enumerable:!1}),e.message=JSON.stringify(t,kp,2),Object.defineProperty(e,`toString`,{value:()=>e.message,enumerable:!1})};const dm=N(`$ZodError`,vge),fm=N(`$ZodError`,vge,{Parent:Error});function pm(e,t=e=>e.message){let n={},r=[];for(let i of e.issues)i.path.length>0?(n[i.path[0]]=n[i.path[0]]||[],n[i.path[0]].push(t(i))):r.push(t(i));return{formErrors:r,fieldErrors:n}}function mm(e,t=e=>e.message){let n={_errors:[]},r=e=>{for(let i of e.issues)if(i.code===`invalid_union`&&i.errors.length)i.errors.map(e=>r({issues:e}));else if(i.code===`invalid_key`)r({issues:i.issues});else if(i.code===`invalid_element`)r({issues:i.issues});else if(i.path.length===0)n._errors.push(t(i));else{let e=n,r=0;for(;r<i.path.length;){let n=i.path[r];r===i.path.length-1?(e[n]=e[n]||{_errors:[]},e[n]._errors.push(t(i))):e[n]=e[n]||{_errors:[]},e=e[n],r++}}};return r(e),n}function yge(e,t=e=>e.message){let n={errors:[]},r=(e,i=[])=>{var a,o;for(let s of e.issues)if(s.code===`invalid_union`&&s.errors.length)s.errors.map(e=>r({issues:e},s.path));else if(s.code===`invalid_key`)r({issues:s.issues},s.path);else if(s.code===`invalid_element`)r({issues:s.issues},s.path);else{let e=[...i,...s.path];if(e.length===0){n.errors.push(t(s));continue}let r=n,c=0;for(;c<e.length;){let n=e[c],i=c===e.length-1;typeof n==`string`?(r.properties??={},(a=r.properties)[n]??(a[n]={errors:[]}),r=r.properties[n]):(r.items??=[],(o=r.items)[n]??(o[n]={errors:[]}),r=r.items[n]),i&&r.errors.push(t(s)),c++}}};return r(e),n}function bge(e){let t=[],n=e.map(e=>typeof e==`object`?e.key:e);for(let e of n)typeof e==`number`?t.push(`[${e}]`):typeof e==`symbol`?t.push(`[${JSON.stringify(String(e))}]`):/[^\w$]/.test(e)?t.push(`[${JSON.stringify(e)}]`):(t.length&&t.push(`.`),t.push(e));return t.join(``)}function xge(e){let t=[],n=[...e.issues].sort((e,t)=>(e.path??[]).length-(t.path??[]).length);for(let e of n)t.push(`✖ ${e.message}`),e.path?.length&&t.push(` → at ${bge(e.path)}`);return t.join(`
|
|
1590
|
+
`,classes:{mask:function(e){var t=e.instance,n=e.props,r=[`left`,`right`,`top`,`bottom`].find(function(e){return e===n.position});return[`p-drawer-mask`,{"p-overlay-mask p-overlay-mask-enter-active":n.modal,"p-drawer-open":t.containerVisible,"p-drawer-full":t.fullScreen},r?`p-drawer-${r}`:``]},root:function(e){var t=e.instance;return[`p-drawer p-component`,{"p-drawer-full":t.fullScreen}]},header:`p-drawer-header`,title:`p-drawer-title`,pcCloseButton:`p-drawer-close-button`,content:`p-drawer-content`,footer:`p-drawer-footer`},inlineStyles:{mask:function(e){var t=e.position,n=e.modal;return{position:`fixed`,height:`100%`,width:`100%`,left:0,top:0,display:`flex`,justifyContent:t===`left`?`flex-start`:t===`right`?`flex-end`:`center`,alignItems:t===`top`?`flex-start`:t===`bottom`?`flex-end`:`center`,pointerEvents:n?`auto`:`none`}},root:{pointerEvents:`auto`}}}),hme={name:`BaseDrawer`,extends:Iu,props:{visible:{type:Boolean,default:!1},position:{type:String,default:`left`},header:{type:null,default:null},baseZIndex:{type:Number,default:0},autoZIndex:{type:Boolean,default:!0},dismissable:{type:Boolean,default:!0},showCloseIcon:{type:Boolean,default:!0},closeButtonProps:{type:Object,default:function(){return{severity:`secondary`,text:!0,rounded:!0}}},closeIcon:{type:String,default:void 0},modal:{type:Boolean,default:!0},blockScroll:{type:Boolean,default:!1},closeOnEscape:{type:Boolean,default:!0}},style:mme,provide:function(){return{$pcDrawer:this,$parentInstance:this}}};function Rd(e){"@babel/helpers - typeof";return Rd=typeof Symbol==`function`&&typeof Symbol.iterator==`symbol`?function(e){return typeof e}:function(e){return e&&typeof Symbol==`function`&&e.constructor===Symbol&&e!==Symbol.prototype?`symbol`:typeof e},Rd(e)}function zd(e,t,n){return(t=gme(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function gme(e){var t=_me(e,`string`);return Rd(t)==`symbol`?t:t+``}function _me(e,t){if(Rd(e)!=`object`||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(Rd(r)!=`object`)return r;throw TypeError(`@@toPrimitive must return a primitive value.`)}return(t===`string`?String:Number)(e)}var Bd={name:`Drawer`,extends:hme,inheritAttrs:!1,emits:[`update:visible`,`show`,`after-show`,`hide`,`after-hide`,`before-hide`],data:function(){return{containerVisible:this.visible}},container:null,mask:null,content:null,headerContainer:null,footerContainer:null,closeButton:null,outsideClickListener:null,documentKeydownListener:null,watch:{dismissable:function(e){e&&!this.modal?this.bindOutsideClickListener():this.unbindOutsideClickListener()}},updated:function(){this.visible&&(this.containerVisible=this.visible)},beforeUnmount:function(){this.disableDocumentSettings(),this.mask&&this.autoZIndex&&os.clear(this.mask),this.container=null,this.mask=null},methods:{hide:function(){this.$emit(`update:visible`,!1)},onEnter:function(){this.$emit(`show`),this.focus(),this.bindDocumentKeyDownListener(),this.autoZIndex&&os.set(`modal`,this.mask,this.baseZIndex||this.$primevue.config.zIndex.modal)},onAfterEnter:function(){this.enableDocumentSettings(),this.$emit(`after-show`)},onBeforeLeave:function(){this.modal&&!this.isUnstyled&&jo(this.mask,`p-overlay-mask-leave-active`),this.$emit(`before-hide`)},onLeave:function(){this.$emit(`hide`)},onAfterLeave:function(){this.autoZIndex&&os.clear(this.mask),this.unbindDocumentKeyDownListener(),this.containerVisible=!1,this.disableDocumentSettings(),this.$emit(`after-hide`)},onMaskClick:function(e){this.dismissable&&this.modal&&this.mask===e.target&&this.hide()},focus:function(){var e=function(e){return e&&e.querySelector(`[autofocus]`)},t=this.$slots.header&&e(this.headerContainer);t||(t=this.$slots.default&&e(this.container),t||(t=this.$slots.footer&&e(this.footerContainer),t||=this.closeButton)),t&&Go(t)},enableDocumentSettings:function(){this.dismissable&&!this.modal&&this.bindOutsideClickListener(),this.blockScroll&&jd()},disableDocumentSettings:function(){this.unbindOutsideClickListener(),this.blockScroll&&Md()},onKeydown:function(e){e.code===`Escape`&&this.closeOnEscape&&this.hide()},containerRef:function(e){this.container=e},maskRef:function(e){this.mask=e},contentRef:function(e){this.content=e},headerContainerRef:function(e){this.headerContainer=e},footerContainerRef:function(e){this.footerContainer=e},closeButtonRef:function(e){this.closeButton=e?e.$el:void 0},bindDocumentKeyDownListener:function(){this.documentKeydownListener||(this.documentKeydownListener=this.onKeydown,document.addEventListener(`keydown`,this.documentKeydownListener))},unbindDocumentKeyDownListener:function(){this.documentKeydownListener&&=(document.removeEventListener(`keydown`,this.documentKeydownListener),null)},bindOutsideClickListener:function(){var e=this;this.outsideClickListener||(this.outsideClickListener=function(t){e.isOutsideClicked(t)&&e.hide()},document.addEventListener(`click`,this.outsideClickListener,!0))},unbindOutsideClickListener:function(){this.outsideClickListener&&=(document.removeEventListener(`click`,this.outsideClickListener,!0),null)},isOutsideClicked:function(e){return this.container&&!this.container.contains(e.target)}},computed:{fullScreen:function(){return this.position===`full`},closeAriaLabel:function(){return this.$primevue.config.locale.aria?this.$primevue.config.locale.aria.close:void 0},dataP:function(){return ko(zd(zd(zd({"full-screen":this.position===`full`},this.position,this.position),`open`,this.containerVisible),`modal`,this.modal))}},directives:{focustrap:Ad},components:{Button:Sd,Portal:Tu,TimesIcon:Yu}},vme=[`data-p`],yme=[`role`,`aria-modal`,`data-p`];function bme(e,t,n,r,i,a){var o=vr(`Button`),s=vr(`Portal`),c=xr(`focustrap`);return k(),di(s,null,{default:Mn(function(){return[i.containerVisible?(k(),A(`div`,M({key:0,ref:a.maskRef,onMousedown:t[0]||=function(){return a.onMaskClick&&a.onMaskClick.apply(a,arguments)},class:e.cx(`mask`),style:e.sx(`mask`,!0,{position:e.position,modal:e.modal}),"data-p":a.dataP},e.ptm(`mask`)),[hi(zi,M({name:`p-drawer`,onEnter:a.onEnter,onAfterEnter:a.onAfterEnter,onBeforeLeave:a.onBeforeLeave,onLeave:a.onLeave,onAfterLeave:a.onAfterLeave,appear:``},e.ptm(`transition`)),{default:Mn(function(){return[e.visible?Nn((k(),A(`div`,M({key:0,ref:a.containerRef,class:e.cx(`root`),style:e.sx(`root`),role:e.modal?`dialog`:`complementary`,"aria-modal":e.modal?!0:void 0,"data-p":a.dataP},e.ptmi(`root`)),[e.$slots.container?Er(e.$slots,`container`,{key:0,closeCallback:a.hide}):(k(),A(ri,{key:1},[j(`div`,M({ref:a.headerContainerRef,class:e.cx(`header`)},e.ptm(`header`)),[Er(e.$slots,`header`,{class:Me(e.cx(`title`))},function(){return[e.header?(k(),A(`div`,M({key:0,class:e.cx(`title`)},e.ptm(`title`)),E(e.header),17)):yi(``,!0)]}),e.showCloseIcon?Er(e.$slots,`closebutton`,{key:0,closeCallback:a.hide},function(){return[hi(o,M({ref:a.closeButtonRef,type:`button`,class:e.cx(`pcCloseButton`),"aria-label":a.closeAriaLabel,unstyled:e.unstyled,onClick:a.hide},e.closeButtonProps,{pt:e.ptm(`pcCloseButton`),"data-pc-group-section":`iconcontainer`}),{icon:Mn(function(t){return[Er(e.$slots,`closeicon`,{},function(){return[(k(),di(br(e.closeIcon?`span`:`TimesIcon`),M({class:[e.closeIcon,t.class]},e.ptm(`pcCloseButton`).icon),null,16,[`class`]))]})]}),_:3},16,[`class`,`aria-label`,`unstyled`,`onClick`,`pt`])]}):yi(``,!0)],16),j(`div`,M({ref:a.contentRef,class:e.cx(`content`)},e.ptm(`content`)),[Er(e.$slots,`default`)],16),e.$slots.footer?(k(),A(`div`,M({key:0,ref:a.footerContainerRef,class:e.cx(`footer`)},e.ptm(`footer`)),[Er(e.$slots,`footer`)],16)):yi(``,!0)],64))],16,yme)),[[c]]):yi(``,!0)]}),_:3},16,[`onEnter`,`onAfterEnter`,`onBeforeLeave`,`onLeave`,`onAfterLeave`])],16,vme)):yi(``,!0)]}),_:3})}Bd.render=bme;var xme={key:0,class:`error-boundary`},Sme={class:`error-content`},Cme={class:`error-message`},wme=Zn({__name:`ErrorBoundary`,setup(e){let{t}=Hc(),n=D(null);gr(e=>(n.value=e instanceof Error?e:Error(String(e)),console.error(`[ErrorBoundary]`,e),!1));function r(){n.value=null}return(e,i)=>n.value?(k(),A(`div`,xme,[j(`div`,Sme,[i[0]||=j(`i`,{class:`pi pi-exclamation-triangle error-icon`},null,-1),j(`h3`,null,E(O(t)(`errorBoundary.title`)),1),j(`p`,Cme,E(n.value.message),1),hi(O(Sd),{label:O(t)(`errorBoundary.tryAgain`),icon:`pi pi-refresh`,onClick:r},null,8,[`label`])])])):Er(e.$slots,`default`,{key:1},void 0,!0)}}),Vd=(e,t)=>{let n=e.__vccOpts||e;for(let[e,r]of t)n[e]=r;return n},Tme=Vd(wme,[[`__scopeId`,`data-v-50a21909`]]),Eme=Object.create,Hd=Object.defineProperty,Dme=Object.getOwnPropertyDescriptor,Ud=Object.getOwnPropertyNames,Ome=Object.getPrototypeOf,kme=Object.prototype.hasOwnProperty,Wd=(e,t)=>function(){return t||(0,e[Ud(e)[0]])((t={exports:{}}).exports,t),t.exports},Ame=(e,t,n,r)=>{if(t&&typeof t==`object`||typeof t==`function`)for(var i=Ud(t),a=0,o=i.length,s;a<o;a++)s=i[a],!kme.call(e,s)&&s!==n&&Hd(e,s,{get:(e=>t[e]).bind(null,s),enumerable:!(r=Dme(t,s))||r.enumerable});return e},Gd=(e,t,n)=>(n=e==null?{}:Eme(Ome(e)),Ame(t||!e||!e.__esModule?Hd(n,`default`,{value:e,enumerable:!0}):n,e)),Kd=Wd({"../../node_modules/.pnpm/@oxc-project+runtime@0.72.2/node_modules/@oxc-project/runtime/src/helpers/typeof.js"(e,t){function n(e){"@babel/helpers - typeof";return t.exports=n=typeof Symbol==`function`&&typeof Symbol.iterator==`symbol`?function(e){return typeof e}:function(e){return e&&typeof Symbol==`function`&&e.constructor===Symbol&&e!==Symbol.prototype?`symbol`:typeof e},t.exports.__esModule=!0,t.exports.default=t.exports,n(e)}t.exports=n,t.exports.__esModule=!0,t.exports.default=t.exports}}),jme=Wd({"../../node_modules/.pnpm/@oxc-project+runtime@0.72.2/node_modules/@oxc-project/runtime/src/helpers/toPrimitive.js"(e,t){var n=Kd().default;function r(e,t){if(n(e)!=`object`||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var i=r.call(e,t||`default`);if(n(i)!=`object`)return i;throw TypeError(`@@toPrimitive must return a primitive value.`)}return(t===`string`?String:Number)(e)}t.exports=r,t.exports.__esModule=!0,t.exports.default=t.exports}}),Mme=Wd({"../../node_modules/.pnpm/@oxc-project+runtime@0.72.2/node_modules/@oxc-project/runtime/src/helpers/toPropertyKey.js"(e,t){var n=Kd().default,r=jme();function i(e){var t=r(e,`string`);return n(t)==`symbol`?t:t+``}t.exports=i,t.exports.__esModule=!0,t.exports.default=t.exports}}),qd=Wd({"../../node_modules/.pnpm/@oxc-project+runtime@0.72.2/node_modules/@oxc-project/runtime/src/helpers/defineProperty.js"(e,t){var n=Mme();function r(e,t,r){return(t=n(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}t.exports=r,t.exports.__esModule=!0,t.exports.default=t.exports}}),Jd=Wd({"../../node_modules/.pnpm/@oxc-project+runtime@0.72.2/node_modules/@oxc-project/runtime/src/helpers/objectSpread2.js"(e,t){var n=qd();function r(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function i(e){for(var t=1;t<arguments.length;t++){var i=arguments[t]==null?{}:arguments[t];t%2?r(Object(i),!0).forEach(function(t){n(e,t,i[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(i)):r(Object(i)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(i,t))})}return e}t.exports=i,t.exports.__esModule=!0,t.exports.default=t.exports}});function Yd(e){let t={subscribe(t){let n=null,r=!1,i=!1,a=!1;function o(){if(n===null){a=!0;return}i||(i=!0,typeof n==`function`?n():n&&n.unsubscribe())}return n=e({next(e){var n;r||(n=t.next)==null||n.call(t,e)},error(e){var n;r||(r=!0,(n=t.error)==null||n.call(t,e),o())},complete(){var e;r||(r=!0,(e=t.complete)==null||e.call(t),o())}}),a&&o(),{unsubscribe:o}},pipe(...e){return e.reduce(Nme,t)}};return t}function Nme(e,t){return t(e)}function Pme(e){let t=new AbortController;return new Promise((n,r)=>{let i=!1;function a(){i||(i=!0,o.unsubscribe())}t.signal.addEventListener(`abort`,()=>{r(t.signal.reason)});let o=e.subscribe({next(e){i=!0,n(e),a()},error(e){r(e)},complete(){t.abort(),a()}})})}function Fme(e){return e=>{let t=0,n=null,r=[];function i(){n||=e.subscribe({next(e){for(let n of r){var t;(t=n.next)==null||t.call(n,e)}},error(e){for(let n of r){var t;(t=n.error)==null||t.call(n,e)}},complete(){for(let t of r){var e;(e=t.complete)==null||e.call(t)}}})}function a(){if(t===0&&n){let e=n;n=null,e.unsubscribe()}}return Yd(e=>(t++,r.push(e),i(),{unsubscribe(){t--,a();let n=r.findIndex(t=>t===e);n>-1&&r.splice(n,1)}}))}}function Xd(e){let t=e,n=[],r=e=>{t!==void 0&&e.next(t),n.push(e)},i=e=>{n.splice(n.indexOf(e),1)},a=Yd(e=>(r(e),()=>{i(e)}));return a.next=e=>{if(t!==e){t=e;for(let t of n)t.next(e)}},a.get=()=>t,a}function Zd(e){return Yd(t=>{function n(t=0,r=e.op){let i=e.links[t];if(!i)throw Error(`No more links to execute - did you forget to add an ending link?`);return i({op:r,next(e){return n(t+1,e)}})}return n().subscribe(t)})}function Qd(e){return Array.isArray(e)?e:[e]}function $d(e){return t=>{let n=Qd(e.true).map(e=>e(t)),r=Qd(e.false).map(e=>e(t));return t=>Yd(i=>{let a=e.condition(t.op)?n:r;return Zd({op:t.op,links:a}).subscribe(i)})}}function ef(e){return!!e&&!Array.isArray(e)&&typeof e==`object`}function Ime(){return Object.create(null)}var tf=e=>e();function nf(e=0){return new Promise(t=>setTimeout(t,e))}var rf={PARSE_ERROR:-32700,BAD_REQUEST:-32600,INTERNAL_SERVER_ERROR:-32603,NOT_IMPLEMENTED:-32603,BAD_GATEWAY:-32603,SERVICE_UNAVAILABLE:-32603,GATEWAY_TIMEOUT:-32603,UNAUTHORIZED:-32001,PAYMENT_REQUIRED:-32002,FORBIDDEN:-32003,NOT_FOUND:-32004,METHOD_NOT_SUPPORTED:-32005,TIMEOUT:-32008,CONFLICT:-32009,PRECONDITION_FAILED:-32012,PAYLOAD_TOO_LARGE:-32013,UNSUPPORTED_MEDIA_TYPE:-32015,UNPROCESSABLE_CONTENT:-32022,PRECONDITION_REQUIRED:-32028,TOO_MANY_REQUESTS:-32029,CLIENT_CLOSED_REQUEST:-32099};rf.BAD_GATEWAY,rf.SERVICE_UNAVAILABLE,rf.GATEWAY_TIMEOUT,rf.INTERNAL_SERVER_ERROR;var Lme=Object.create,af=Object.defineProperty,Rme=Object.getOwnPropertyDescriptor,of=Object.getOwnPropertyNames,zme=Object.getPrototypeOf,Bme=Object.prototype.hasOwnProperty,sf=(e,t)=>function(){return t||(0,e[of(e)[0]])((t={exports:{}}).exports,t),t.exports},Vme=(e,t,n,r)=>{if(t&&typeof t==`object`||typeof t==`function`)for(var i=of(t),a=0,o=i.length,s;a<o;a++)s=i[a],!Bme.call(e,s)&&s!==n&&af(e,s,{get:(e=>t[e]).bind(null,s),enumerable:!(r=Rme(t,s))||r.enumerable});return e},cf=(e,t,n)=>(n=e==null?{}:Lme(zme(e)),Vme(t||!e||!e.__esModule?af(n,`default`,{value:e,enumerable:!0}):n,e)),lf=()=>{},uf=e=>{Object.freeze&&Object.freeze(e)};function df(e,t,n){let r=t.join(`.`);return n[r]??(n[r]=new Proxy(lf,{get(r,i){if(!(typeof i!=`string`||i===`then`))return df(e,[...t,i],n)},apply(n,r,i){let a=t[t.length-1],o={args:i,path:t};return a===`call`?o={args:i.length>=2?[i[1]]:[],path:t.slice(0,-1)}:a===`apply`&&(o={args:i.length>=2?i[1]:[],path:t.slice(0,-1)}),uf(o.args),uf(o.path),e(o)}})),n[r]}var Hme=e=>df(e,[],Ime()),Ume=e=>new Proxy(lf,{get(t,n){if(n!==`then`)return e(n)}}),ff=sf({"../../node_modules/.pnpm/@oxc-project+runtime@0.72.2/node_modules/@oxc-project/runtime/src/helpers/typeof.js"(e,t){function n(e){"@babel/helpers - typeof";return t.exports=n=typeof Symbol==`function`&&typeof Symbol.iterator==`symbol`?function(e){return typeof e}:function(e){return e&&typeof Symbol==`function`&&e.constructor===Symbol&&e!==Symbol.prototype?`symbol`:typeof e},t.exports.__esModule=!0,t.exports.default=t.exports,n(e)}t.exports=n,t.exports.__esModule=!0,t.exports.default=t.exports}}),Wme=sf({"../../node_modules/.pnpm/@oxc-project+runtime@0.72.2/node_modules/@oxc-project/runtime/src/helpers/toPrimitive.js"(e,t){var n=ff().default;function r(e,t){if(n(e)!=`object`||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var i=r.call(e,t||`default`);if(n(i)!=`object`)return i;throw TypeError(`@@toPrimitive must return a primitive value.`)}return(t===`string`?String:Number)(e)}t.exports=r,t.exports.__esModule=!0,t.exports.default=t.exports}}),Gme=sf({"../../node_modules/.pnpm/@oxc-project+runtime@0.72.2/node_modules/@oxc-project/runtime/src/helpers/toPropertyKey.js"(e,t){var n=ff().default,r=Wme();function i(e){var t=r(e,`string`);return n(t)==`symbol`?t:t+``}t.exports=i,t.exports.__esModule=!0,t.exports.default=t.exports}}),pf=sf({"../../node_modules/.pnpm/@oxc-project+runtime@0.72.2/node_modules/@oxc-project/runtime/src/helpers/defineProperty.js"(e,t){var n=Gme();function r(e,t,r){return(t=n(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}t.exports=r,t.exports.__esModule=!0,t.exports.default=t.exports}}),mf=sf({"../../node_modules/.pnpm/@oxc-project+runtime@0.72.2/node_modules/@oxc-project/runtime/src/helpers/objectSpread2.js"(e,t){var n=pf();function r(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function i(e){for(var t=1;t<arguments.length;t++){var i=arguments[t]==null?{}:arguments[t];t%2?r(Object(i),!0).forEach(function(t){n(e,t,i[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(i)):r(Object(i)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(i,t))})}return e}t.exports=i,t.exports.__esModule=!0,t.exports.default=t.exports}});cf(mf(),1),cf(pf(),1);var hf=cf(mf(),1);function Kme(e,t){if(`error`in e){let n=t.deserialize(e.error);return{ok:!1,error:(0,hf.default)((0,hf.default)({},e),{},{error:n})}}return{ok:!0,result:(0,hf.default)((0,hf.default)({},e.result),(!e.result.type||e.result.type===`data`)&&{type:`data`,data:t.deserialize(e.result.data)})}}var gf=class extends Error{constructor(){super(`Unable to transform response from server`)}};function _f(e,t){let n;try{n=Kme(e,t)}catch{throw new gf}if(!n.ok&&(!ef(n.error.error)||typeof n.error.error.code!=`number`)||n.ok&&!ef(n.result))throw new gf;return n}cf(mf(),1);var vf=Gd(qd(),1),yf=Gd(Jd(),1);function qme(e){return e instanceof bf}function Jme(e){return ef(e)&&ef(e.error)&&typeof e.error.code==`number`&&typeof e.error.message==`string`}function Yme(e,t){return typeof e==`string`?e:ef(e)&&typeof e.message==`string`?e.message:t}var bf=class e extends Error{constructor(t,n){var r,i;let a=n?.cause;super(t,{cause:a}),(0,vf.default)(this,`cause`,void 0),(0,vf.default)(this,`shape`,void 0),(0,vf.default)(this,`data`,void 0),(0,vf.default)(this,`meta`,void 0),this.meta=n?.meta,this.cause=a,this.shape=n==null||(r=n.result)==null?void 0:r.error,this.data=n==null||(i=n.result)==null?void 0:i.error.data,this.name=`TRPCClientError`,Object.setPrototypeOf(this,e.prototype)}static from(t,n={}){let r=t;return qme(r)?(n.meta&&(r.meta=(0,yf.default)((0,yf.default)({},r.meta),n.meta)),r):Jme(r)?new e(r.error.message,(0,yf.default)((0,yf.default)({},n),{},{result:r,cause:n.cause})):new e(Yme(r,`Unknown error`),(0,yf.default)((0,yf.default)({},n),{},{cause:r}))}};function xf(e){let t=e;return t?`input`in t?t:{input:t,output:t}:{input:{serialize:e=>e,deserialize:e=>e},output:{serialize:e=>e,deserialize:e=>e}}}var Sf=e=>typeof e==`function`;function Xme(e){if(e)return e;if(typeof window<`u`&&Sf(window.fetch))return window.fetch;if(typeof globalThis<`u`&&Sf(globalThis.fetch))return globalThis.fetch;throw Error(`No fetch implementation found`)}var Cf=Gd(Jd(),1);function wf(e){return{url:e.url.toString(),fetch:e.fetch,transformer:xf(e.transformer),methodOverride:e.methodOverride}}function Zme(e){let t={};for(let n=0;n<e.length;n++)t[n]=e[n];return t}var Qme={query:`GET`,mutation:`POST`,subscription:`PATCH`};function Tf(e){return`input`in e?e.transformer.input.serialize(e.input):Zme(e.inputs.map(t=>e.transformer.input.serialize(t)))}var Ef=e=>{let t=e.url.split(`?`),n=t[0].replace(/\/$/,``)+`/`+e.path,r=[];if(t[1]&&r.push(t[1]),`inputs`in e&&r.push(`batch=1`),e.type===`query`||e.type===`subscription`){let t=Tf(e);t!==void 0&&e.methodOverride!==`POST`&&r.push(`input=${encodeURIComponent(JSON.stringify(t))}`)}return r.length&&(n+=`?`+r.join(`&`)),n},$me=e=>{if(e.type===`query`&&e.methodOverride!==`POST`)return;let t=Tf(e);return t===void 0?void 0:JSON.stringify(t)},Df=e=>Of((0,Cf.default)((0,Cf.default)({},e),{},{contentTypeHeader:`application/json`,getUrl:Ef,getBody:$me})),ehe=class extends Error{constructor(){let e=`AbortError`;super(e),this.name=e,this.message=e}},the=e=>{var t;if(e?.aborted)throw(t=e.throwIfAborted)==null||t.call(e),typeof DOMException<`u`?new DOMException(`AbortError`,`AbortError`):new ehe};async function nhe(e){the(e.signal);let t=e.getUrl(e),n=e.getBody(e),r=e.methodOverride??Qme[e.type],i=await(async()=>{let t=await e.headers();return Symbol.iterator in t?Object.fromEntries(t):t})(),a=(0,Cf.default)((0,Cf.default)((0,Cf.default)({},e.contentTypeHeader&&r!==`GET`?{"content-type":e.contentTypeHeader}:{}),e.trpcAcceptHeader?{"trpc-accept":e.trpcAcceptHeader}:void 0),i);return Xme(e.fetch)(t,{method:r,signal:e.signal,body:n,headers:a})}async function Of(e){let t={},n=await nhe(e);t.response=n;let r=await n.json();return t.responseJSON=r,{json:r,meta:t}}function rhe(e){return e instanceof Uint8Array||e instanceof Blob}function ihe(e){return e instanceof FormData}var kf=Gd(Jd(),1),ahe=e=>{if(`input`in e){let{input:t}=e;if(ihe(t)){if(e.type!==`mutation`&&e.methodOverride!==`POST`)throw Error(`FormData is only supported for mutations`);return Of((0,kf.default)((0,kf.default)({},e),{},{contentTypeHeader:void 0,getUrl:Ef,getBody:()=>t}))}if(rhe(t)){if(e.type!==`mutation`&&e.methodOverride!==`POST`)throw Error(`Octet type input is only supported for mutations`);return Of((0,kf.default)((0,kf.default)({},e),{},{contentTypeHeader:`application/octet-stream`,getUrl:Ef,getBody:()=>t}))}}return Df(e)};function ohe(e){let t=wf(e);return()=>n=>{let{op:r}=n;return Yd(n=>{let{path:i,input:a,type:o}=r;if(o===`subscription`)throw Error("Subscriptions are unsupported by `httpLink` - use `httpSubscriptionLink` or `wsLink`");let s=ahe((0,kf.default)((0,kf.default)({},t),{},{type:o,path:i,input:a,signal:r.signal,headers(){return e.headers?typeof e.headers==`function`?e.headers({op:r}):e.headers:{}}})),c;return s.then(e=>{c=e.meta;let r=_f(e.json,t.transformer.output);if(!r.ok){n.error(bf.from(r.error,{meta:c}));return}n.next({context:e.meta,result:r.result}),n.complete()}).catch(e=>{n.error(bf.from(e,{meta:c}))}),()=>{}})}}var Af=()=>{throw Error(`Something went wrong. Please submit an issue at https://github.com/trpc/trpc/issues/new`)};function jf(e){let t=null,n=null,r=()=>{clearTimeout(n),n=null,t=null};function i(t){let n=[[]],r=0;for(;;){let o=t[r];if(!o)break;let s=n[n.length-1];if(o.aborted){var i;(i=o.reject)==null||i.call(o,Error(`Aborted`)),r++;continue}if(e.validate(s.concat(o).map(e=>e.key))){s.push(o),r++;continue}if(s.length===0){var a;(a=o.reject)==null||a.call(o,Error(`Input is too big for a single dispatch`)),r++;continue}n.push([])}return n}function a(){let n=i(t);r();for(let t of n){if(!t.length)continue;let n={items:t};for(let e of t)e.batch=n;e.fetch(n.items.map(e=>e.key)).then(async e=>{await Promise.all(e.map(async(e,t)=>{let r=n.items[t];try{var i;let t=await Promise.resolve(e);(i=r.resolve)==null||i.call(r,t)}catch(e){var a;(a=r.reject)==null||a.call(r,e)}r.batch=null,r.reject=null,r.resolve=null}));for(let e of n.items){var t;(t=e.reject)==null||t.call(e,Error(`Missing result`)),e.batch=null}}).catch(e=>{for(let r of n.items){var t;(t=r.reject)==null||t.call(r,e),r.batch=null}})}}function o(e){let r={aborted:!1,key:e,batch:null,resolve:Af,reject:Af},i=new Promise((e,n)=>{r.reject=n,r.resolve=e,t??=[],t.push(r)});return n??=setTimeout(a),i}return{load:o}}function she(...e){let t=new AbortController,n=e.length,r=0,i=()=>{++r===n&&t.abort()};for(let t of e)t?.aborted?i():t?.addEventListener(`abort`,i,{once:!0});return t.signal}var Mf=Gd(Jd(),1);function che(e){let t=wf(e),n=e.maxURLLength??1/0,r=e.maxItems??1/0;return()=>{let i=i=>({validate(e){if(n===1/0&&r===1/0)return!0;if(e.length>r)return!1;let a=e.map(e=>e.path).join(`,`),o=e.map(e=>e.input);return Ef((0,Mf.default)((0,Mf.default)({},t),{},{type:i,path:a,inputs:o,signal:null})).length<=n},async fetch(n){let r=n.map(e=>e.path).join(`,`),a=n.map(e=>e.input),o=she(...n.map(e=>e.signal)),s=await Df((0,Mf.default)((0,Mf.default)({},t),{},{path:r,inputs:a,type:i,headers(){return e.headers?typeof e.headers==`function`?e.headers({opList:n}):e.headers:{}},signal:o}));return(Array.isArray(s.json)?s.json:n.map(()=>s.json)).map(e=>({meta:s.meta,json:e}))}}),a={query:jf(i(`query`)),mutation:jf(i(`mutation`))};return({op:e})=>Yd(n=>{if(e.type===`subscription`)throw Error("Subscriptions are unsupported by `httpLink` - use `httpSubscriptionLink` or `wsLink`");let r=a[e.type].load(e),i;return r.then(e=>{i=e;let r=_f(e.json,t.transformer.output);if(!r.ok){n.error(bf.from(r.error,{meta:e.meta}));return}n.next({context:e.meta,result:r.result}),n.complete()}).catch(e=>{n.error(bf.from(e,{meta:i?.meta}))}),()=>{}})}}Gd(Jd(),1);var lhe={encode:e=>JSON.stringify(e),decode:e=>{if(typeof e!=`string`)throw Error(`jsonEncoder received binary data. JSON uses text frames. Use a binary encoder for binary data.`);return JSON.parse(e)}},uhe={enabled:!1,closeMs:0},dhe={enabled:!1,pongTimeoutMs:1e3,intervalMs:5e3},fhe=e=>e===0?0:Math.min(1e3*2**e,3e4),Nf=(e,...t)=>typeof e==`function`?e(...t):e,phe=Gd(qd(),1),Pf=class e extends Error{constructor(t){super(t.message,{cause:t.cause}),this.name=`TRPCWebSocketClosedError`,Object.setPrototypeOf(this,e.prototype)}},mhe=class{constructor(e,t){this.onTimeout=e,this.timeoutMs=t,(0,phe.default)(this,`timeout`,void 0)}reset(){this.timeout&&=(clearTimeout(this.timeout),setTimeout(this.onTimeout,this.timeoutMs))}start(){clearTimeout(this.timeout),this.timeout=setTimeout(this.onTimeout,this.timeoutMs)}stop(){clearTimeout(this.timeout),this.timeout=void 0}};function Ff(){let e,t;return{promise:new Promise((n,r)=>{e=n,t=r}),resolve:e,reject:t}}async function hhe(e){let t=await Nf(e.url);return e.connectionParams?t+`${t.includes(`?`)?`&`:`?`}connectionParams=1`:t}async function ghe(e,t){let n={method:`connectionParams`,data:await Nf(e)};return t.encode(n)}var If=Gd(qd(),1),_he=class{constructor(){(0,If.default)(this,`outgoingRequests`,[]),(0,If.default)(this,`pendingRequests`,{})}register(e,t){let{promise:n,resolve:r}=Ff();return this.outgoingRequests.push({id:String(e.id),message:e,end:n,callbacks:{next:t.next,complete:()=>{t.complete(),r()},error:e=>{t.error(e),r()}}}),()=>{this.delete(e.id),t.complete(),r()}}delete(e){e!==null&&(this.outgoingRequests=this.outgoingRequests.filter(({id:t})=>t!==String(e)),delete this.pendingRequests[String(e)])}flush(){let e=this.outgoingRequests;this.outgoingRequests=[];for(let t of e)this.pendingRequests[t.id]=t;return e}getPendingRequests(){return Object.values(this.pendingRequests)}getPendingRequest(e){return e===null?null:this.pendingRequests[String(e)]}getOutgoingRequests(){return this.outgoingRequests}getRequests(){return[...this.getOutgoingRequests().map(e=>({state:`outgoing`,message:e.message,end:e.end,callbacks:e.callbacks})),...this.getPendingRequests().map(e=>({state:`pending`,message:e.message,end:e.end,callbacks:e.callbacks}))]}hasPendingRequests(){return this.getPendingRequests().length>0}hasPendingSubscriptions(){return this.getPendingRequests().some(e=>e.message.method===`subscription`)}hasOutgoingRequests(){return this.outgoingRequests.length>0}},Lf=Gd(qd(),1);function vhe(e){let{promise:t,resolve:n,reject:r}=Ff();return e.addEventListener(`open`,()=>{e.removeEventListener(`error`,r),n()}),e.addEventListener(`error`,r),t}function yhe(e,{intervalMs:t,pongTimeoutMs:n}){let r,i;function a(){r=setTimeout(()=>{e.send(`PING`),i=setTimeout(()=>{e.close()},n)},t)}function o(){clearTimeout(r),a()}function s(){clearTimeout(i),o()}e.addEventListener(`open`,a),e.addEventListener(`message`,({data:e})=>{clearTimeout(r),a(),e===`PONG`&&s()}),e.addEventListener(`close`,()=>{clearTimeout(r),clearTimeout(i)})}var Rf=class e{constructor(t){if((0,Lf.default)(this,`id`,++e.connectCount),(0,Lf.default)(this,`WebSocketPonyfill`,void 0),(0,Lf.default)(this,`urlOptions`,void 0),(0,Lf.default)(this,`keepAliveOpts`,void 0),(0,Lf.default)(this,`encoder`,void 0),(0,Lf.default)(this,`wsObservable`,Xd(null)),(0,Lf.default)(this,`openPromise`,null),this.WebSocketPonyfill=t.WebSocketPonyfill??WebSocket,!this.WebSocketPonyfill)throw Error("No WebSocket implementation found - you probably don't want to use this on the server, but if you do you need to pass a `WebSocket`-ponyfill");this.urlOptions=t.urlOptions,this.keepAliveOpts=t.keepAlive,this.encoder=t.encoder}get ws(){return this.wsObservable.get()}set ws(e){this.wsObservable.next(e)}isOpen(){return!!this.ws&&this.ws.readyState===this.WebSocketPonyfill.OPEN&&!this.openPromise}isClosed(){return!!this.ws&&(this.ws.readyState===this.WebSocketPonyfill.CLOSING||this.ws.readyState===this.WebSocketPonyfill.CLOSED)}async open(){var t=this;if(t.openPromise)return t.openPromise;t.id=++e.connectCount,t.openPromise=hhe(t.urlOptions).then(e=>new t.WebSocketPonyfill(e)).then(async e=>{t.ws=e,e.binaryType=`arraybuffer`,e.addEventListener(`message`,function({data:e}){e===`PING`&&this.send(`PONG`)}),t.keepAliveOpts.enabled&&yhe(e,t.keepAliveOpts),e.addEventListener(`close`,()=>{t.ws===e&&(t.ws=null)}),await vhe(e),t.urlOptions.connectionParams&&e.send(await ghe(t.urlOptions.connectionParams,t.encoder))});try{await t.openPromise}finally{t.openPromise=null}}async close(){var e=this;try{await e.openPromise}finally{var t;(t=e.ws)==null||t.close()}}};(0,Lf.default)(Rf,`connectCount`,0);function bhe(e){return e.isOpen()?{id:e.id,state:`open`,ws:e.ws}:e.isClosed()?{id:e.id,state:`closed`,ws:e.ws}:e.ws?{id:e.id,state:`connecting`,ws:e.ws}:null}var zf=Gd(qd(),1),Bf=Gd(Jd(),1),xhe=class{constructor(e){(0,zf.default)(this,`connectionState`,void 0),(0,zf.default)(this,`allowReconnect`,!1),(0,zf.default)(this,`requestManager`,new _he),(0,zf.default)(this,`activeConnection`,void 0),(0,zf.default)(this,`reconnectRetryDelay`,void 0),(0,zf.default)(this,`inactivityTimeout`,void 0),(0,zf.default)(this,`callbacks`,void 0),(0,zf.default)(this,`lazyMode`,void 0),(0,zf.default)(this,`encoder`,void 0),(0,zf.default)(this,`reconnecting`,null),this.encoder=e.experimental_encoder??lhe,this.callbacks={onOpen:e.onOpen,onClose:e.onClose,onError:e.onError};let t=(0,Bf.default)((0,Bf.default)({},uhe),e.lazy);this.inactivityTimeout=new mhe(()=>{if(this.requestManager.hasOutgoingRequests()||this.requestManager.hasPendingRequests()){this.inactivityTimeout.reset();return}this.close().catch(()=>null)},t.closeMs),this.activeConnection=new Rf({WebSocketPonyfill:e.WebSocket,urlOptions:e,keepAlive:(0,Bf.default)((0,Bf.default)({},dhe),e.keepAlive),encoder:this.encoder}),this.activeConnection.wsObservable.subscribe({next:e=>{e&&this.setupWebSocketListeners(e)}}),this.reconnectRetryDelay=e.retryDelayMs??fhe,this.lazyMode=t.enabled,this.connectionState=Xd({type:`state`,state:t.enabled?`idle`:`connecting`,error:null}),this.lazyMode||this.open().catch(()=>null)}async open(){var e=this;e.allowReconnect=!0,e.connectionState.get().state===`idle`&&e.connectionState.next({type:`state`,state:`connecting`,error:null});try{await e.activeConnection.open()}catch(t){return e.reconnect(new Pf({message:`Initialization error`,cause:t})),e.reconnecting}}async close(){var e=this;e.allowReconnect=!1,e.inactivityTimeout.stop();let t=[];for(let n of e.requestManager.getRequests())n.message.method===`subscription`?n.callbacks.complete():n.state===`outgoing`?n.callbacks.error(bf.from(new Pf({message:`Closed before connection was established`}))):t.push(n.end);await Promise.all(t).catch(()=>null),await e.activeConnection.close().catch(()=>null),e.connectionState.next({type:`state`,state:`idle`,error:null})}request({op:{id:e,type:t,path:n,input:r,signal:i},transformer:a,lastEventId:o}){return Yd(s=>{let c=this.batchSend({id:e,method:t,params:{input:a.input.serialize(r),path:n,lastEventId:o}},(0,Bf.default)((0,Bf.default)({},s),{},{next(e){let t=_f(e,a.output);if(!t.ok){s.error(bf.from(t.error));return}s.next({result:t.result})}}));return()=>{c(),t===`subscription`&&this.activeConnection.isOpen()&&this.send({id:e,method:`subscription.stop`}),i?.removeEventListener(`abort`,c)}})}get connection(){return bhe(this.activeConnection)}reconnect(e){var t=this;if(this.connectionState.next({type:`state`,state:`connecting`,error:bf.from(e)}),this.reconnecting)return;let n=async e=>{try{await nf(t.reconnectRetryDelay(e)),t.allowReconnect&&(await t.activeConnection.close(),await t.activeConnection.open(),t.requestManager.hasPendingRequests()&&t.send(t.requestManager.getPendingRequests().map(({message:e})=>e))),t.reconnecting=null}catch{await n(e+1)}};this.reconnecting=n(0)}setupWebSocketListeners(e){var t=this;let n=e=>{let t=this.requestManager.getPendingRequests();for(let{message:n,callbacks:r}of t)n.method!==`subscription`&&(r.error(bf.from(e??new Pf({message:`WebSocket closed`,cause:e}))),this.requestManager.delete(n.id))};e.addEventListener(`open`,()=>{tf(async()=>{var e,n;t.lazyMode&&t.inactivityTimeout.start(),(e=(n=t.callbacks).onOpen)==null||e.call(n),t.connectionState.next({type:`state`,state:`pending`,error:null})}).catch(t=>{e.close(3e3),n(t)})}),e.addEventListener(`message`,({data:e})=>{if(this.inactivityTimeout.reset(),[`PING`,`PONG`].includes(e))return;let t=this.encoder.decode(e);if(`method`in t){this.handleIncomingRequest(t);return}this.handleResponseMessage(t)}),e.addEventListener(`close`,e=>{var t,r;n(e),(t=(r=this.callbacks).onClose)==null||t.call(r,e),(!this.lazyMode||this.requestManager.hasPendingSubscriptions())&&this.reconnect(new Pf({message:`WebSocket closed`,cause:e}))}),e.addEventListener(`error`,e=>{var t,r;n(e),(t=(r=this.callbacks).onError)==null||t.call(r,e),this.reconnect(new Pf({message:`WebSocket closed`,cause:e}))})}handleResponseMessage(e){let t=this.requestManager.getPendingRequest(e.id);if(!t)return;t.callbacks.next(e);let n=!0;`result`in e&&t.message.method===`subscription`&&(e.result.type===`data`&&(t.message.params.lastEventId=e.result.id),e.result.type!==`stopped`&&(n=!1)),n&&(t.callbacks.complete(),this.requestManager.delete(e.id))}handleIncomingRequest(e){e.method===`reconnect`&&this.reconnect(new Pf({message:`Server requested reconnect`}))}send(e){if(!this.activeConnection.isOpen())throw Error(`Active connection is not open`);let t=e instanceof Array?e:[e];this.activeConnection.ws.send(this.encoder.encode(t.length===1?t[0]:t))}batchSend(e,t){var n=this;return this.inactivityTimeout.reset(),tf(async()=>{n.activeConnection.isOpen()||await n.open(),await nf(0),n.requestManager.hasOutgoingRequests()&&n.send(n.requestManager.flush().map(({message:e})=>e))}).catch(n=>{this.requestManager.delete(e.id),t.error(bf.from(n))}),this.requestManager.register(e,t)}};function She(e){return new xhe(e)}function Che(e){let{client:t}=e,n=xf(e.transformer);return()=>({op:e})=>Yd(r=>{let i=e.type===`subscription`?t.connectionState.subscribe({next(t){r.next({result:t,context:e.context})}}):null,a=t.request({op:e,transformer:n}).subscribe(r);return()=>{a.unsubscribe(),i?.unsubscribe()}})}var Vf=Gd(qd(),1),Hf=Gd(Jd(),1),whe=class{constructor(e){(0,Vf.default)(this,`links`,void 0),(0,Vf.default)(this,`runtime`,void 0),(0,Vf.default)(this,`requestId`,void 0),this.requestId=0,this.runtime={},this.links=e.links.map(e=>e(this.runtime))}$request(e){return Zd({links:this.links,op:(0,Hf.default)((0,Hf.default)({},e),{},{context:e.context??{},id:++this.requestId})}).pipe(Fme())}async requestAsPromise(e){var t=this;try{return(await Pme(t.$request(e))).result.data}catch(e){throw bf.from(e)}}query(e,t,n){return this.requestAsPromise({type:`query`,path:e,input:t,context:n?.context,signal:n?.signal})}mutation(e,t,n){return this.requestAsPromise({type:`mutation`,path:e,input:t,context:n?.context,signal:n?.signal})}subscription(e,t,n){return this.$request({type:`subscription`,path:e,input:t,context:n.context,signal:n.signal}).subscribe({next(e){switch(e.result.type){case`state`:var t;(t=n.onConnectionStateChange)==null||t.call(n,e.result);break;case`started`:var r;(r=n.onStarted)==null||r.call(n,{context:e.context});break;case`stopped`:var i;(i=n.onStopped)==null||i.call(n);break;case`data`:case void 0:var a;(a=n.onData)==null||a.call(n,e.result.data);break}},error(e){var t;(t=n.onError)==null||t.call(n,e)},complete(){var e;(e=n.onComplete)==null||e.call(n)}})}},The=Symbol.for(`trpc_untypedClient`),Ehe={query:`query`,mutate:`mutation`,subscribe:`subscription`},Dhe=e=>Ehe[e];function Ohe(e){let t=Hme(({path:t,args:n})=>{let r=[...t],i=Dhe(r.pop()),a=r.join(`.`);return e[i](a,...n)});return Ume(n=>n===The?e:t[n])}function Uf(e){return Ohe(new whe(e))}Gd(Jd(),1),Gd(Jd(),1),Gd(Wd({"../../node_modules/.pnpm/@oxc-project+runtime@0.72.2/node_modules/@oxc-project/runtime/src/helpers/asyncIterator.js"(e,t){function n(e){var t,n,i,a=2;for(typeof Symbol<`u`&&(n=Symbol.asyncIterator,i=Symbol.iterator);a--;){if(n&&(t=e[n])!=null)return t.call(e);if(i&&(t=e[i])!=null)return new r(t.call(e));n=`@@asyncIterator`,i=`@@iterator`}throw TypeError(`Object is not async iterable`)}function r(e){function t(e){if(Object(e)!==e)return Promise.reject(TypeError(e+` is not an object.`));var t=e.done;return Promise.resolve(e.value).then(function(e){return{value:e,done:t}})}return r=function(e){this.s=e,this.n=e.next},r.prototype={s:null,n:null,next:function(){return t(this.n.apply(this.s,arguments))},return:function(e){var n=this.s.return;return n===void 0?Promise.resolve({value:e,done:!0}):t(n.apply(this.s,arguments))},throw:function(e){var n=this.s.return;return n===void 0?Promise.reject(e):t(n.apply(this.s,arguments))}},new r(e)}t.exports=n,t.exports.__esModule=!0,t.exports.default=t.exports}})(),1),Gd(Jd(),1);var khe=Wd({"../../node_modules/.pnpm/@oxc-project+runtime@0.72.2/node_modules/@oxc-project/runtime/src/helpers/usingCtx.js"(e,t){function n(){var e=typeof SuppressedError==`function`?SuppressedError:function(e,t){var n=Error();return n.name=`SuppressedError`,n.error=e,n.suppressed=t,n},t={},n=[];function r(e,t){if(t!=null){if(Object(t)!==t)throw TypeError(`using declarations can only be used with objects, functions, null, or undefined.`);if(e)var r=t[Symbol.asyncDispose||Symbol.for(`Symbol.asyncDispose`)];if(r===void 0&&(r=t[Symbol.dispose||Symbol.for(`Symbol.dispose`)],e))var i=r;if(typeof r!=`function`)throw TypeError(`Object is not disposable.`);i&&(r=function(){try{i.call(t)}catch(e){return Promise.reject(e)}}),n.push({v:t,d:r,a:e})}else e&&n.push({d:t,a:e});return t}return{e:t,u:r.bind(null,!1),a:r.bind(null,!0),d:function(){var r,i=this.e,a=0;function o(){for(;r=n.pop();)try{if(!r.a&&a===1)return a=0,n.push(r),Promise.resolve().then(o);if(r.d){var e=r.d.call(r.v);if(r.a)return a|=2,Promise.resolve(e).then(o,s)}else a|=1}catch(e){return s(e)}if(a===1)return i===t?Promise.resolve():Promise.reject(i);if(i!==t)throw i}function s(n){return i=i===t?n:new e(n,i),o()}return o()}}}t.exports=n,t.exports.__esModule=!0,t.exports.default=t.exports}}),Wf=Wd({"../../node_modules/.pnpm/@oxc-project+runtime@0.72.2/node_modules/@oxc-project/runtime/src/helpers/OverloadYield.js"(e,t){function n(e,t){this.v=e,this.k=t}t.exports=n,t.exports.__esModule=!0,t.exports.default=t.exports}}),Ahe=Wd({"../../node_modules/.pnpm/@oxc-project+runtime@0.72.2/node_modules/@oxc-project/runtime/src/helpers/awaitAsyncGenerator.js"(e,t){var n=Wf();function r(e){return new n(e,0)}t.exports=r,t.exports.__esModule=!0,t.exports.default=t.exports}}),jhe=Wd({"../../node_modules/.pnpm/@oxc-project+runtime@0.72.2/node_modules/@oxc-project/runtime/src/helpers/wrapAsyncGenerator.js"(e,t){var n=Wf();function r(e){return function(){return new i(e.apply(this,arguments))}}function i(e){var t,r;function i(t,r){try{var o=e[t](r),s=o.value,c=s instanceof n;Promise.resolve(c?s.v:s).then(function(n){if(c){var r=t===`return`?`return`:`next`;if(!s.k||n.done)return i(r,n);n=e[r](n).value}a(o.done?`return`:`normal`,n)},function(e){i(`throw`,e)})}catch(e){a(`throw`,e)}}function a(e,n){switch(e){case`return`:t.resolve({value:n,done:!0});break;case`throw`:t.reject(n);break;default:t.resolve({value:n,done:!1})}(t=t.next)?i(t.key,t.arg):r=null}this._invoke=function(e,n){return new Promise(function(a,o){var s={key:e,arg:n,resolve:a,reject:o,next:null};r?r=r.next=s:(t=r=s,i(e,n))})},typeof e.return!=`function`&&(this.return=void 0)}i.prototype[typeof Symbol==`function`&&Symbol.asyncIterator||`@@asyncIterator`]=function(){return this},i.prototype.next=function(e){return this._invoke(`next`,e)},i.prototype.throw=function(e){return this._invoke(`throw`,e)},i.prototype.return=function(e){return this._invoke(`return`,e)},t.exports=r,t.exports.__esModule=!0,t.exports.default=t.exports}});Gd(khe(),1),Gd(Ahe(),1),Gd(jhe(),1),Gd(Jd(),1);var Gf=D(`connected`),Kf=D(navigator.onLine),qf=0;function Jf(){Kf.value=!0,Gf.value=`connected`}function Yf(){Kf.value=!1,Gf.value=`disconnected`}function Xf(e){Gf.value=e}function Mhe(){return ur(()=>{qf===0&&(window.addEventListener(`online`,Jf),window.addEventListener(`offline`,Yf)),qf++}),mr(()=>{qf--,qf===0&&(window.removeEventListener(`online`,Jf),window.removeEventListener(`offline`,Yf))}),{state:Gf,isOnline:Kf}}var Zf=`runeya:jwt`;function Nhe(e){sessionStorage.setItem(Zf,e)}function Qf(){return sessionStorage.getItem(Zf)}function Phe(){sessionStorage.removeItem(Zf)}async function $f(){let e=await fetch(`/api/status`,{signal:AbortSignal.timeout(5e3)});if(!e.ok)throw Error(`Failed to fetch server status`);return e.json()}async function Fhe(e){let t=await fetch(`/api/unlock`,{method:`POST`,headers:{"Content-Type":`application/json`},body:JSON.stringify({masterPassword:e}),signal:AbortSignal.timeout(3e4)});if(t.status===429)throw Error(`Trop de tentatives. Réessayez dans 15 minutes.`);if(t.status===401)throw Error(`Master password incorrect`);if(!t.ok){let e=await t.json().catch(()=>({}));throw Error(e.error??`Erreur serveur`)}return(await t.json()).token}async function Ihe(e,t){let n={masterPassword:e};t&&(n.encryptionKey=t);let r=await fetch(`/api/setup`,{method:`POST`,headers:{"Content-Type":`application/json`},body:JSON.stringify(n),signal:AbortSignal.timeout(3e4)});if(r.status===429)throw Error(`Trop de tentatives. Réessayez dans 15 minutes.`);if(!r.ok){let e=await r.json().catch(()=>({}));throw Error(e.error??`Erreur serveur`)}return(await r.json()).token}var Lhe=`modulepreload`,Rhe=function(e){return`/`+e},ep={};const tp=function(e,t,n){let r=Promise.resolve();if(t&&t.length>0){let e=document.getElementsByTagName(`link`),i=document.querySelector(`meta[property=csp-nonce]`),a=i?.nonce||i?.getAttribute(`nonce`);function o(e){return Promise.all(e.map(e=>Promise.resolve(e).then(e=>({status:`fulfilled`,value:e}),e=>({status:`rejected`,reason:e}))))}r=o(t.map(t=>{if(t=Rhe(t,n),t in ep)return;ep[t]=!0;let r=t.endsWith(`.css`),i=r?`[rel="stylesheet"]`:``;if(n)for(let n=e.length-1;n>=0;n--){let i=e[n];if(i.href===t&&(!r||i.rel===`stylesheet`))return}else if(document.querySelector(`link[href="${t}"]${i}`))return;let o=document.createElement(`link`);if(o.rel=r?`stylesheet`:Lhe,r||(o.as=`script`),o.crossOrigin=``,o.href=t,a&&o.setAttribute(`nonce`,a),document.head.appendChild(o),r)return new Promise((e,n)=>{o.addEventListener(`load`,e),o.addEventListener(`error`,()=>n(Error(`Unable to preload CSS for ${t}`)))})}))}function i(e){let t=new Event(`vite:preloadError`,{cancelable:!0});if(t.payload=e,window.dispatchEvent(t),!t.defaultPrevented)throw e}return r.then(t=>{for(let e of t||[])e.status===`rejected`&&i(e.reason);return e().catch(i)})};var zhe=`runeya:ws-debug`;function Bhe(){try{return localStorage.getItem(zhe)===`1`}catch{return!1}}function np(...e){Bhe()&&console.log(`[trpc][ws]`,new Date().toISOString(),...e)}function Vhe(){np(`closeTrpcWs()`),pp?.close(),pp=null,gp=hp(),mp=!1}var rp=new Set;function ip(e){return rp.add(e),()=>rp.delete(e)}var ap=!1;function op(e=`unknown`){ap||(ap=!0,np(`handleAuthError()`,{reason:e,tokenPresent:!!Qf()}),Phe(),Vhe(),tp(async()=>{let{useProcessStore:e}=await import(`./process.store-3BOses3z.js`);return{useProcessStore:e}},[]).then(({useProcessStore:e})=>{try{e().stopStatusStream()}catch{}}).catch(()=>{}),tp(async()=>{let{useAiChatDrawer:e}=await import(`./useAiChatDrawer-uS6dsG6x.js`);return{useAiChatDrawer:e}},[]).then(({useAiChatDrawer:e})=>e().close()).catch(()=>{}),Xf(`connected`),tp(async()=>{let{router:e}=await import(`./router-DHhyM3YQ.js`);return{router:e}},[]).then(({router:e})=>{let t=e.currentRoute.value,n=new Set([`unlock`,`setup`,`setup-key`]).has(t.name)?void 0:t.fullPath;e.push({name:`unlock`,query:n?{redirect:n}:void 0}).catch(()=>{}).finally(()=>{ap=!1})}).catch(()=>{ap=!1}))}function sp(){return`/api/trpc`}function Hhe(){let e=`${window.location.protocol===`https:`?`wss:`:`ws:`}//${window.location.host}`,t=Qf();return t?`${e}?token=${encodeURIComponent(t)}`:e}var cp=()=>{let e=Qf();return e?{Authorization:`Bearer ${e}`}:{}},lp=async(e,t)=>{let n=await globalThis.fetch(e,t);return n.status===401&&op(`http-401`),n};function up(){return che({url:sp(),headers:cp,fetch:lp})}function dp(){return ohe({url:sp(),headers:cp,fetch:lp})}var fp=new Set([`chat.getClaudeUsage`,`chat.getCodexUsage`]),pp=null,mp=!1;function hp(){return Uf({links:[$d({condition:e=>fp.has(e.path),true:dp(),false:up()})]})}function Uhe(e){return Uf({links:[$d({condition:e=>e.type===`subscription`,true:Che({client:e}),false:$d({condition:e=>fp.has(e.path),true:dp(),false:up()})})]})}var gp=hp(),_p=0;function Whe(e){return She({url:()=>Hhe(),retryDelayMs:()=>500,lazy:{enabled:!1,closeMs:0},keepAlive:{enabled:!0,intervalMs:1e4},onOpen(){e===_p&&(np(`auth ws onOpen — firing`,rp.size,`reopen callbacks`),np(`[trpc][ws] onOpen — firing reopen callbacks`,rp.size),Xf(`connected`),rp.forEach(e=>e()))},onError(t){e===_p&&np(`auth ws onError`,t)},onClose(t){if(e===_p){if(np(`auth ws onClose`,t),t?.code===4401){op(`ws-close-4401`);return}Ghe().catch(()=>{}),Xf(`reconnecting`)}}})}async function Ghe(){let e=Qf();if(!e||Khe(e)){op(`ws-check-token`);return}try{let e=await globalThis.fetch(`/api/status`,{signal:AbortSignal.timeout(5e3)});e.ok&&(await e.json()).state!==`unlocked`&&op(`ws-check-status`)}catch{}}function Khe(e){try{let t=JSON.parse(atob(e.split(`.`)[1]??``));return t.exp!=null&&t.exp<=Math.floor(Date.now()/1e3)}catch{return!0}}function vp(e=!1){if(np(`initTrpcWs() start`),!e&&mp&&pp){np(`initTrpcWs() already initialized, skip`);return}pp?.close(),Xf(`connected`),_p++,pp=Whe(_p),gp=Uhe(pp),mp=!0}const yp=new Proxy({},{get(e,t){return gp[t]}}),bp=Object.freeze({status:`aborted`});function N(e,t,n){function r(n,r){if(n._zod||Object.defineProperty(n,`_zod`,{value:{def:r,constr:o,traits:new Set},enumerable:!1}),n._zod.traits.has(e))return;n._zod.traits.add(e),t(n,r);let i=o.prototype,a=Object.keys(i);for(let e=0;e<a.length;e++){let t=a[e];t in n||(n[t]=i[t].bind(n))}}let i=n?.Parent??Object;class a extends i{}Object.defineProperty(a,`name`,{value:e});function o(e){var t;let i=n?.Parent?new a:this;r(i,e),(t=i._zod).deferred??(t.deferred=[]);for(let e of i._zod.deferred)e();return i}return Object.defineProperty(o,`init`,{value:r}),Object.defineProperty(o,Symbol.hasInstance,{value:t=>n?.Parent&&t instanceof n.Parent?!0:t?._zod?.traits?.has(e)}),Object.defineProperty(o,`name`,{value:e}),o}const xp=Symbol(`zod_brand`);var Sp=class extends Error{constructor(){super(`Encountered Promise during synchronous parse. Use .parseAsync() instead.`)}},Cp=class extends Error{constructor(e){super(`Encountered unidirectional transform during encode: ${e}`),this.name=`ZodEncodeError`}};const wp={};function Tp(e){return e&&Object.assign(wp,e),wp}var Ep=s({BIGINT_FORMAT_RANGES:()=>$p,Class:()=>_ge,NUMBER_FORMAT_RANGES:()=>Qp,aborted:()=>rm,allowsEval:()=>Hp,assert:()=>Zhe,assertEqual:()=>qhe,assertIs:()=>Yhe,assertNever:()=>Xhe,assertNotEqual:()=>Jhe,assignProp:()=>Ip,base64ToUint8Array:()=>dge,base64urlToUint8Array:()=>pge,cached:()=>Ap,captureStackTrace:()=>Bp,cleanEnum:()=>uge,cleanRegex:()=>Mp,clone:()=>Jp,cloneDef:()=>$he,createTransparentProxy:()=>age,defineLazy:()=>Fp,esc:()=>Rp,escapeRegex:()=>qp,extend:()=>nm,finalizeIssue:()=>om,floatSafeRemainder:()=>Np,getElementAtPath:()=>ege,getEnumValues:()=>Dp,getLengthableOrigin:()=>cm,getParsedType:()=>ige,getSizableOrigin:()=>sm,hexToUint8Array:()=>hge,isObject:()=>Vp,isPlainObject:()=>Up,issue:()=>um,joinValues:()=>Op,jsonStringifyReplacer:()=>kp,merge:()=>sge,mergeDefs:()=>Lp,normalizeParams:()=>Yp,nullish:()=>jp,numKeys:()=>rge,objectClone:()=>Qhe,omit:()=>tm,optionalKeys:()=>Zp,parsedType:()=>lm,partial:()=>cge,pick:()=>em,prefixIssues:()=>im,primitiveTypes:()=>Kp,promiseAllObject:()=>tge,propertyKeyTypes:()=>Gp,randomString:()=>nge,required:()=>lge,safeExtend:()=>oge,shallowClone:()=>Wp,slugify:()=>zp,stringifyPrimitive:()=>Xp,uint8ArrayToBase64:()=>fge,uint8ArrayToBase64url:()=>mge,uint8ArrayToHex:()=>gge,unwrapMessage:()=>am},1);function qhe(e){return e}function Jhe(e){return e}function Yhe(e){}function Xhe(e){throw Error(`Unexpected value in exhaustive check`)}function Zhe(e){}function Dp(e){let t=Object.values(e).filter(e=>typeof e==`number`);return Object.entries(e).filter(([e,n])=>t.indexOf(+e)===-1).map(([e,t])=>t)}function Op(e,t=`|`){return e.map(e=>Xp(e)).join(t)}function kp(e,t){return typeof t==`bigint`?t.toString():t}function Ap(e){return{get value(){{let t=e();return Object.defineProperty(this,`value`,{value:t}),t}throw Error(`cached value already set`)}}}function jp(e){return e==null}function Mp(e){let t=e.startsWith(`^`)?1:0,n=e.endsWith(`$`)?e.length-1:e.length;return e.slice(t,n)}function Np(e,t){let n=(e.toString().split(`.`)[1]||``).length,r=t.toString(),i=(r.split(`.`)[1]||``).length;if(i===0&&/\d?e-\d?/.test(r)){let e=r.match(/\d?e-(\d?)/);e?.[1]&&(i=Number.parseInt(e[1]))}let a=n>i?n:i;return Number.parseInt(e.toFixed(a).replace(`.`,``))%Number.parseInt(t.toFixed(a).replace(`.`,``))/10**a}var Pp=Symbol(`evaluating`);function Fp(e,t,n){let r;Object.defineProperty(e,t,{get(){if(r!==Pp)return r===void 0&&(r=Pp,r=n()),r},set(n){Object.defineProperty(e,t,{value:n})},configurable:!0})}function Qhe(e){return Object.create(Object.getPrototypeOf(e),Object.getOwnPropertyDescriptors(e))}function Ip(e,t,n){Object.defineProperty(e,t,{value:n,writable:!0,enumerable:!0,configurable:!0})}function Lp(...e){let t={};for(let n of e){let e=Object.getOwnPropertyDescriptors(n);Object.assign(t,e)}return Object.defineProperties({},t)}function $he(e){return Lp(e._zod.def)}function ege(e,t){return t?t.reduce((e,t)=>e?.[t],e):e}function tge(e){let t=Object.keys(e),n=t.map(t=>e[t]);return Promise.all(n).then(e=>{let n={};for(let r=0;r<t.length;r++)n[t[r]]=e[r];return n})}function nge(e=10){let t=``;for(let n=0;n<e;n++)t+=`abcdefghijklmnopqrstuvwxyz`[Math.floor(Math.random()*26)];return t}function Rp(e){return JSON.stringify(e)}function zp(e){return e.toLowerCase().trim().replace(/[^\w\s-]/g,``).replace(/[\s_-]+/g,`-`).replace(/^-+|-+$/g,``)}const Bp=`captureStackTrace`in Error?Error.captureStackTrace:(...e)=>{};function Vp(e){return typeof e==`object`&&!!e&&!Array.isArray(e)}const Hp=Ap(()=>{if(typeof navigator<`u`&&navigator?.userAgent?.includes(`Cloudflare`))return!1;try{return Function(``),!0}catch{return!1}});function Up(e){if(Vp(e)===!1)return!1;let t=e.constructor;if(t===void 0||typeof t!=`function`)return!0;let n=t.prototype;return!(Vp(n)===!1||Object.prototype.hasOwnProperty.call(n,`isPrototypeOf`)===!1)}function Wp(e){return Up(e)?{...e}:Array.isArray(e)?[...e]:e}function rge(e){let t=0;for(let n in e)Object.prototype.hasOwnProperty.call(e,n)&&t++;return t}const ige=e=>{let t=typeof e;switch(t){case`undefined`:return`undefined`;case`string`:return`string`;case`number`:return Number.isNaN(e)?`nan`:`number`;case`boolean`:return`boolean`;case`function`:return`function`;case`bigint`:return`bigint`;case`symbol`:return`symbol`;case`object`:return Array.isArray(e)?`array`:e===null?`null`:e.then&&typeof e.then==`function`&&e.catch&&typeof e.catch==`function`?`promise`:typeof Map<`u`&&e instanceof Map?`map`:typeof Set<`u`&&e instanceof Set?`set`:typeof Date<`u`&&e instanceof Date?`date`:typeof File<`u`&&e instanceof File?`file`:`object`;default:throw Error(`Unknown data type: ${t}`)}},Gp=new Set([`string`,`number`,`symbol`]),Kp=new Set([`string`,`number`,`bigint`,`boolean`,`symbol`,`undefined`]);function qp(e){return e.replace(/[.*+?^${}()|[\]\\]/g,`\\$&`)}function Jp(e,t,n){let r=new e._zod.constr(t??e._zod.def);return(!t||n?.parent)&&(r._zod.parent=e),r}function Yp(e){let t=e;if(!t)return{};if(typeof t==`string`)return{error:()=>t};if(t?.message!==void 0){if(t?.error!==void 0)throw Error("Cannot specify both `message` and `error` params");t.error=t.message}return delete t.message,typeof t.error==`string`?{...t,error:()=>t.error}:t}function age(e){let t;return new Proxy({},{get(n,r,i){return t??=e(),Reflect.get(t,r,i)},set(n,r,i,a){return t??=e(),Reflect.set(t,r,i,a)},has(n,r){return t??=e(),Reflect.has(t,r)},deleteProperty(n,r){return t??=e(),Reflect.deleteProperty(t,r)},ownKeys(n){return t??=e(),Reflect.ownKeys(t)},getOwnPropertyDescriptor(n,r){return t??=e(),Reflect.getOwnPropertyDescriptor(t,r)},defineProperty(n,r,i){return t??=e(),Reflect.defineProperty(t,r,i)}})}function Xp(e){return typeof e==`bigint`?e.toString()+`n`:typeof e==`string`?`"${e}"`:`${e}`}function Zp(e){return Object.keys(e).filter(t=>e[t]._zod.optin===`optional`&&e[t]._zod.optout===`optional`)}const Qp={safeint:[-(2**53-1),2**53-1],int32:[-2147483648,2147483647],uint32:[0,4294967295],float32:[-34028234663852886e22,34028234663852886e22],float64:[-Number.MAX_VALUE,Number.MAX_VALUE]},$p={int64:[BigInt(`-9223372036854775808`),BigInt(`9223372036854775807`)],uint64:[BigInt(0),BigInt(`18446744073709551615`)]};function em(e,t){let n=e._zod.def,r=n.checks;if(r&&r.length>0)throw Error(`.pick() cannot be used on object schemas containing refinements`);return Jp(e,Lp(e._zod.def,{get shape(){let e={};for(let r in t){if(!(r in n.shape))throw Error(`Unrecognized key: "${r}"`);t[r]&&(e[r]=n.shape[r])}return Ip(this,`shape`,e),e},checks:[]}))}function tm(e,t){let n=e._zod.def,r=n.checks;if(r&&r.length>0)throw Error(`.omit() cannot be used on object schemas containing refinements`);return Jp(e,Lp(e._zod.def,{get shape(){let r={...e._zod.def.shape};for(let e in t){if(!(e in n.shape))throw Error(`Unrecognized key: "${e}"`);t[e]&&delete r[e]}return Ip(this,`shape`,r),r},checks:[]}))}function nm(e,t){if(!Up(t))throw Error(`Invalid input to extend: expected a plain object`);let n=e._zod.def.checks;if(n&&n.length>0){let n=e._zod.def.shape;for(let e in t)if(Object.getOwnPropertyDescriptor(n,e)!==void 0)throw Error("Cannot overwrite keys on object schemas containing refinements. Use `.safeExtend()` instead.")}return Jp(e,Lp(e._zod.def,{get shape(){let n={...e._zod.def.shape,...t};return Ip(this,`shape`,n),n}}))}function oge(e,t){if(!Up(t))throw Error(`Invalid input to safeExtend: expected a plain object`);return Jp(e,Lp(e._zod.def,{get shape(){let n={...e._zod.def.shape,...t};return Ip(this,`shape`,n),n}}))}function sge(e,t){return Jp(e,Lp(e._zod.def,{get shape(){let n={...e._zod.def.shape,...t._zod.def.shape};return Ip(this,`shape`,n),n},get catchall(){return t._zod.def.catchall},checks:[]}))}function cge(e,t,n){let r=t._zod.def.checks;if(r&&r.length>0)throw Error(`.partial() cannot be used on object schemas containing refinements`);return Jp(t,Lp(t._zod.def,{get shape(){let r=t._zod.def.shape,i={...r};if(n)for(let t in n){if(!(t in r))throw Error(`Unrecognized key: "${t}"`);n[t]&&(i[t]=e?new e({type:`optional`,innerType:r[t]}):r[t])}else for(let t in r)i[t]=e?new e({type:`optional`,innerType:r[t]}):r[t];return Ip(this,`shape`,i),i},checks:[]}))}function lge(e,t,n){return Jp(t,Lp(t._zod.def,{get shape(){let r=t._zod.def.shape,i={...r};if(n)for(let t in n){if(!(t in i))throw Error(`Unrecognized key: "${t}"`);n[t]&&(i[t]=new e({type:`nonoptional`,innerType:r[t]}))}else for(let t in r)i[t]=new e({type:`nonoptional`,innerType:r[t]});return Ip(this,`shape`,i),i}}))}function rm(e,t=0){if(e.aborted===!0)return!0;for(let n=t;n<e.issues.length;n++)if(e.issues[n]?.continue!==!0)return!0;return!1}function im(e,t){return t.map(t=>{var n;return(n=t).path??(n.path=[]),t.path.unshift(e),t})}function am(e){return typeof e==`string`?e:e?.message}function om(e,t,n){let r={...e,path:e.path??[]};return e.message||(r.message=am(e.inst?._zod.def?.error?.(e))??am(t?.error?.(e))??am(n.customError?.(e))??am(n.localeError?.(e))??`Invalid input`),delete r.inst,delete r.continue,t?.reportInput||delete r.input,r}function sm(e){return e instanceof Set?`set`:e instanceof Map?`map`:e instanceof File?`file`:`unknown`}function cm(e){return Array.isArray(e)?`array`:typeof e==`string`?`string`:`unknown`}function lm(e){let t=typeof e;switch(t){case`number`:return Number.isNaN(e)?`nan`:`number`;case`object`:{if(e===null)return`null`;if(Array.isArray(e))return`array`;let t=e;if(t&&Object.getPrototypeOf(t)!==Object.prototype&&`constructor`in t&&t.constructor)return t.constructor.name}}return t}function um(...e){let[t,n,r]=e;return typeof t==`string`?{message:t,code:`custom`,input:n,inst:r}:{...t}}function uge(e){return Object.entries(e).filter(([e,t])=>Number.isNaN(Number.parseInt(e,10))).map(e=>e[1])}function dge(e){let t=atob(e),n=new Uint8Array(t.length);for(let e=0;e<t.length;e++)n[e]=t.charCodeAt(e);return n}function fge(e){let t=``;for(let n=0;n<e.length;n++)t+=String.fromCharCode(e[n]);return btoa(t)}function pge(e){let t=e.replace(/-/g,`+`).replace(/_/g,`/`);return dge(t+`=`.repeat((4-t.length%4)%4))}function mge(e){return fge(e).replace(/\+/g,`-`).replace(/\//g,`_`).replace(/=/g,``)}function hge(e){let t=e.replace(/^0x/,``);if(t.length%2!=0)throw Error(`Invalid hex string length`);let n=new Uint8Array(t.length/2);for(let e=0;e<t.length;e+=2)n[e/2]=Number.parseInt(t.slice(e,e+2),16);return n}function gge(e){return Array.from(e).map(e=>e.toString(16).padStart(2,`0`)).join(``)}var _ge=class{constructor(...e){}},vge=(e,t)=>{e.name=`$ZodError`,Object.defineProperty(e,`_zod`,{value:e._zod,enumerable:!1}),Object.defineProperty(e,`issues`,{value:t,enumerable:!1}),e.message=JSON.stringify(t,kp,2),Object.defineProperty(e,`toString`,{value:()=>e.message,enumerable:!1})};const dm=N(`$ZodError`,vge),fm=N(`$ZodError`,vge,{Parent:Error});function pm(e,t=e=>e.message){let n={},r=[];for(let i of e.issues)i.path.length>0?(n[i.path[0]]=n[i.path[0]]||[],n[i.path[0]].push(t(i))):r.push(t(i));return{formErrors:r,fieldErrors:n}}function mm(e,t=e=>e.message){let n={_errors:[]},r=e=>{for(let i of e.issues)if(i.code===`invalid_union`&&i.errors.length)i.errors.map(e=>r({issues:e}));else if(i.code===`invalid_key`)r({issues:i.issues});else if(i.code===`invalid_element`)r({issues:i.issues});else if(i.path.length===0)n._errors.push(t(i));else{let e=n,r=0;for(;r<i.path.length;){let n=i.path[r];r===i.path.length-1?(e[n]=e[n]||{_errors:[]},e[n]._errors.push(t(i))):e[n]=e[n]||{_errors:[]},e=e[n],r++}}};return r(e),n}function yge(e,t=e=>e.message){let n={errors:[]},r=(e,i=[])=>{var a,o;for(let s of e.issues)if(s.code===`invalid_union`&&s.errors.length)s.errors.map(e=>r({issues:e},s.path));else if(s.code===`invalid_key`)r({issues:s.issues},s.path);else if(s.code===`invalid_element`)r({issues:s.issues},s.path);else{let e=[...i,...s.path];if(e.length===0){n.errors.push(t(s));continue}let r=n,c=0;for(;c<e.length;){let n=e[c],i=c===e.length-1;typeof n==`string`?(r.properties??={},(a=r.properties)[n]??(a[n]={errors:[]}),r=r.properties[n]):(r.items??=[],(o=r.items)[n]??(o[n]={errors:[]}),r=r.items[n]),i&&r.errors.push(t(s)),c++}}};return r(e),n}function bge(e){let t=[],n=e.map(e=>typeof e==`object`?e.key:e);for(let e of n)typeof e==`number`?t.push(`[${e}]`):typeof e==`symbol`?t.push(`[${JSON.stringify(String(e))}]`):/[^\w$]/.test(e)?t.push(`[${JSON.stringify(e)}]`):(t.length&&t.push(`.`),t.push(e));return t.join(``)}function xge(e){let t=[],n=[...e.issues].sort((e,t)=>(e.path??[]).length-(t.path??[]).length);for(let e of n)t.push(`✖ ${e.message}`),e.path?.length&&t.push(` → at ${bge(e.path)}`);return t.join(`
|
|
1591
1591
|
`)}const hm=e=>(t,n,r,i)=>{let a=r?Object.assign(r,{async:!1}):{async:!1},o=t._zod.run({value:n,issues:[]},a);if(o instanceof Promise)throw new Sp;if(o.issues.length){let t=new(i?.Err??e)(o.issues.map(e=>om(e,a,Tp())));throw Bp(t,i?.callee),t}return o.value},gm=hm(fm),_m=e=>async(t,n,r,i)=>{let a=r?Object.assign(r,{async:!0}):{async:!0},o=t._zod.run({value:n,issues:[]},a);if(o instanceof Promise&&(o=await o),o.issues.length){let t=new(i?.Err??e)(o.issues.map(e=>om(e,a,Tp())));throw Bp(t,i?.callee),t}return o.value},vm=_m(fm),ym=e=>(t,n,r)=>{let i=r?{...r,async:!1}:{async:!1},a=t._zod.run({value:n,issues:[]},i);if(a instanceof Promise)throw new Sp;return a.issues.length?{success:!1,error:new(e??dm)(a.issues.map(e=>om(e,i,Tp())))}:{success:!0,data:a.value}},bm=ym(fm),xm=e=>async(t,n,r)=>{let i=r?Object.assign(r,{async:!0}):{async:!0},a=t._zod.run({value:n,issues:[]},i);return a instanceof Promise&&(a=await a),a.issues.length?{success:!1,error:new e(a.issues.map(e=>om(e,i,Tp())))}:{success:!0,data:a.value}},Sm=xm(fm),Cm=e=>(t,n,r)=>{let i=r?Object.assign(r,{direction:`backward`}):{direction:`backward`};return hm(e)(t,n,i)},Sge=Cm(fm),wm=e=>(t,n,r)=>hm(e)(t,n,r),Cge=wm(fm),Tm=e=>async(t,n,r)=>{let i=r?Object.assign(r,{direction:`backward`}):{direction:`backward`};return _m(e)(t,n,i)},wge=Tm(fm),Em=e=>async(t,n,r)=>_m(e)(t,n,r),Tge=Em(fm),Dm=e=>(t,n,r)=>{let i=r?Object.assign(r,{direction:`backward`}):{direction:`backward`};return ym(e)(t,n,i)},Ege=Dm(fm),Om=e=>(t,n,r)=>ym(e)(t,n,r),Dge=Om(fm),km=e=>async(t,n,r)=>{let i=r?Object.assign(r,{direction:`backward`}):{direction:`backward`};return xm(e)(t,n,i)},Oge=km(fm),Am=e=>async(t,n,r)=>xm(e)(t,n,r),kge=Am(fm);var jm=s({base64:()=>t_e,base64url:()=>Nm,bigint:()=>d_e,boolean:()=>p_e,browserEmail:()=>qge,cidrv4:()=>$ge,cidrv6:()=>e_e,cuid:()=>Age,cuid2:()=>jge,date:()=>o_e,datetime:()=>l_e,domain:()=>r_e,duration:()=>Ige,e164:()=>i_e,email:()=>Hge,emoji:()=>Yge,extendedDuration:()=>Lge,guid:()=>Rge,hex:()=>v_e,hostname:()=>n_e,html5Email:()=>Uge,idnEmail:()=>Kge,integer:()=>f_e,ipv4:()=>Xge,ipv6:()=>Zge,ksuid:()=>Pge,lowercase:()=>g_e,mac:()=>Qge,md5_base64:()=>b_e,md5_base64url:()=>x_e,md5_hex:()=>y_e,nanoid:()=>Fge,null:()=>m_e,number:()=>Pm,rfc5322Email:()=>Wge,sha1_base64:()=>C_e,sha1_base64url:()=>w_e,sha1_hex:()=>S_e,sha256_base64:()=>E_e,sha256_base64url:()=>D_e,sha256_hex:()=>T_e,sha384_base64:()=>k_e,sha384_base64url:()=>A_e,sha384_hex:()=>O_e,sha512_base64:()=>M_e,sha512_base64url:()=>N_e,sha512_hex:()=>j_e,string:()=>u_e,time:()=>c_e,ulid:()=>Mge,undefined:()=>h_e,unicodeEmail:()=>Gge,uppercase:()=>__e,uuid:()=>Mm,uuid4:()=>zge,uuid6:()=>Bge,uuid7:()=>Vge,xid:()=>Nge},1);const Age=/^[cC][^\s-]{8,}$/,jge=/^[0-9a-z]+$/,Mge=/^[0-9A-HJKMNP-TV-Za-hjkmnp-tv-z]{26}$/,Nge=/^[0-9a-vA-V]{20}$/,Pge=/^[A-Za-z0-9]{27}$/,Fge=/^[a-zA-Z0-9_-]{21}$/,Ige=/^P(?:(\d+W)|(?!.*W)(?=\d|T\d)(\d+Y)?(\d+M)?(\d+D)?(T(?=\d)(\d+H)?(\d+M)?(\d+([.,]\d+)?S)?)?)$/,Lge=/^[-+]?P(?!$)(?:(?:[-+]?\d+Y)|(?:[-+]?\d+[.,]\d+Y$))?(?:(?:[-+]?\d+M)|(?:[-+]?\d+[.,]\d+M$))?(?:(?:[-+]?\d+W)|(?:[-+]?\d+[.,]\d+W$))?(?:(?:[-+]?\d+D)|(?:[-+]?\d+[.,]\d+D$))?(?:T(?=[\d+-])(?:(?:[-+]?\d+H)|(?:[-+]?\d+[.,]\d+H$))?(?:(?:[-+]?\d+M)|(?:[-+]?\d+[.,]\d+M$))?(?:[-+]?\d+(?:[.,]\d+)?S)?)??$/,Rge=/^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$/,Mm=e=>e?RegExp(`^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-${e}[0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12})$`):/^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$/,zge=Mm(4),Bge=Mm(6),Vge=Mm(7),Hge=/^(?!\.)(?!.*\.\.)([A-Za-z0-9_'+\-\.]*)[A-Za-z0-9_+-]@([A-Za-z0-9][A-Za-z0-9\-]*\.)+[A-Za-z]{2,}$/,Uge=/^[a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+@[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)*$/,Wge=/^(([^<>()\[\]\\.,;:\s@"]+(\.[^<>()\[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$/,Gge=/^[^\s@"]{1,64}@[^\s@]{1,255}$/u,Kge=Gge,qge=/^[a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+@[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)*$/;var Jge=`^(\\p{Extended_Pictographic}|\\p{Emoji_Component})+$`;function Yge(){return new RegExp(Jge,`u`)}const Xge=/^(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])$/,Zge=/^(([0-9a-fA-F]{1,4}:){7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:))$/,Qge=e=>{let t=qp(e??`:`);return RegExp(`^(?:[0-9A-F]{2}${t}){5}[0-9A-F]{2}$|^(?:[0-9a-f]{2}${t}){5}[0-9a-f]{2}$`)},$ge=/^((25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\/([0-9]|[1-2][0-9]|3[0-2])$/,e_e=/^(([0-9a-fA-F]{1,4}:){7}[0-9a-fA-F]{1,4}|::|([0-9a-fA-F]{1,4})?::([0-9a-fA-F]{1,4}:?){0,6})\/(12[0-8]|1[01][0-9]|[1-9]?[0-9])$/,t_e=/^$|^(?:[0-9a-zA-Z+/]{4})*(?:(?:[0-9a-zA-Z+/]{2}==)|(?:[0-9a-zA-Z+/]{3}=))?$/,Nm=/^[A-Za-z0-9_-]*$/,n_e=/^(?=.{1,253}\.?$)[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[-0-9a-zA-Z]{0,61}[0-9a-zA-Z])?)*\.?$/,r_e=/^([a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?\.)+[a-zA-Z]{2,}$/,i_e=/^\+[1-9]\d{6,14}$/;var a_e=`(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))`;const o_e=RegExp(`^${a_e}$`);function s_e(e){let t=`(?:[01]\\d|2[0-3]):[0-5]\\d`;return typeof e.precision==`number`?e.precision===-1?`${t}`:e.precision===0?`${t}:[0-5]\\d`:`${t}:[0-5]\\d\\.\\d{${e.precision}}`:`${t}(?::[0-5]\\d(?:\\.\\d+)?)?`}function c_e(e){return RegExp(`^${s_e(e)}$`)}function l_e(e){let t=s_e({precision:e.precision}),n=[`Z`];e.local&&n.push(``),e.offset&&n.push(`([+-](?:[01]\\d|2[0-3]):[0-5]\\d)`);let r=`${t}(?:${n.join(`|`)})`;return RegExp(`^${a_e}T(?:${r})$`)}const u_e=e=>{let t=e?`[\\s\\S]{${e?.minimum??0},${e?.maximum??``}}`:`[\\s\\S]*`;return RegExp(`^${t}$`)},d_e=/^-?\d+n?$/,f_e=/^-?\d+$/,Pm=/^-?\d+(?:\.\d+)?$/,p_e=/^(?:true|false)$/i;var m_e=/^null$/i,h_e=/^undefined$/i;const g_e=/^[^A-Z]*$/,__e=/^[^a-z]*$/,v_e=/^[0-9a-fA-F]*$/;function Fm(e,t){return RegExp(`^[A-Za-z0-9+/]{${e}}${t}$`)}function Im(e){return RegExp(`^[A-Za-z0-9_-]{${e}}$`)}const y_e=/^[0-9a-fA-F]{32}$/,b_e=Fm(22,`==`),x_e=Im(22),S_e=/^[0-9a-fA-F]{40}$/,C_e=Fm(27,`=`),w_e=Im(27),T_e=/^[0-9a-fA-F]{64}$/,E_e=Fm(43,`=`),D_e=Im(43),O_e=/^[0-9a-fA-F]{96}$/,k_e=Fm(64,``),A_e=Im(64),j_e=/^[0-9a-fA-F]{128}$/,M_e=Fm(86,`==`),N_e=Im(86),Lm=N(`$ZodCheck`,(e,t)=>{var n;e._zod??={},e._zod.def=t,(n=e._zod).onattach??(n.onattach=[])});var P_e={number:`number`,bigint:`bigint`,object:`date`};const Rm=N(`$ZodCheckLessThan`,(e,t)=>{Lm.init(e,t);let n=P_e[typeof t.value];e._zod.onattach.push(e=>{let n=e._zod.bag,r=(t.inclusive?n.maximum:n.exclusiveMaximum)??1/0;t.value<r&&(t.inclusive?n.maximum=t.value:n.exclusiveMaximum=t.value)}),e._zod.check=r=>{(t.inclusive?r.value<=t.value:r.value<t.value)||r.issues.push({origin:n,code:`too_big`,maximum:typeof t.value==`object`?t.value.getTime():t.value,input:r.value,inclusive:t.inclusive,inst:e,continue:!t.abort})}}),zm=N(`$ZodCheckGreaterThan`,(e,t)=>{Lm.init(e,t);let n=P_e[typeof t.value];e._zod.onattach.push(e=>{let n=e._zod.bag,r=(t.inclusive?n.minimum:n.exclusiveMinimum)??-1/0;t.value>r&&(t.inclusive?n.minimum=t.value:n.exclusiveMinimum=t.value)}),e._zod.check=r=>{(t.inclusive?r.value>=t.value:r.value>t.value)||r.issues.push({origin:n,code:`too_small`,minimum:typeof t.value==`object`?t.value.getTime():t.value,input:r.value,inclusive:t.inclusive,inst:e,continue:!t.abort})}}),F_e=N(`$ZodCheckMultipleOf`,(e,t)=>{Lm.init(e,t),e._zod.onattach.push(e=>{var n;(n=e._zod.bag).multipleOf??(n.multipleOf=t.value)}),e._zod.check=n=>{if(typeof n.value!=typeof t.value)throw Error(`Cannot mix number and bigint in multiple_of check.`);(typeof n.value==`bigint`?n.value%t.value===BigInt(0):Np(n.value,t.value)===0)||n.issues.push({origin:typeof n.value,code:`not_multiple_of`,divisor:t.value,input:n.value,inst:e,continue:!t.abort})}}),I_e=N(`$ZodCheckNumberFormat`,(e,t)=>{Lm.init(e,t),t.format=t.format||`float64`;let n=t.format?.includes(`int`),r=n?`int`:`number`,[i,a]=Qp[t.format];e._zod.onattach.push(e=>{let r=e._zod.bag;r.format=t.format,r.minimum=i,r.maximum=a,n&&(r.pattern=f_e)}),e._zod.check=o=>{let s=o.value;if(n){if(!Number.isInteger(s)){o.issues.push({expected:r,format:t.format,code:`invalid_type`,continue:!1,input:s,inst:e});return}if(!Number.isSafeInteger(s)){s>0?o.issues.push({input:s,code:`too_big`,maximum:2**53-1,note:`Integers must be within the safe integer range.`,inst:e,origin:r,inclusive:!0,continue:!t.abort}):o.issues.push({input:s,code:`too_small`,minimum:-(2**53-1),note:`Integers must be within the safe integer range.`,inst:e,origin:r,inclusive:!0,continue:!t.abort});return}}s<i&&o.issues.push({origin:`number`,input:s,code:`too_small`,minimum:i,inclusive:!0,inst:e,continue:!t.abort}),s>a&&o.issues.push({origin:`number`,input:s,code:`too_big`,maximum:a,inclusive:!0,inst:e,continue:!t.abort})}}),L_e=N(`$ZodCheckBigIntFormat`,(e,t)=>{Lm.init(e,t);let[n,r]=$p[t.format];e._zod.onattach.push(e=>{let i=e._zod.bag;i.format=t.format,i.minimum=n,i.maximum=r}),e._zod.check=i=>{let a=i.value;a<n&&i.issues.push({origin:`bigint`,input:a,code:`too_small`,minimum:n,inclusive:!0,inst:e,continue:!t.abort}),a>r&&i.issues.push({origin:`bigint`,input:a,code:`too_big`,maximum:r,inclusive:!0,inst:e,continue:!t.abort})}}),R_e=N(`$ZodCheckMaxSize`,(e,t)=>{var n;Lm.init(e,t),(n=e._zod.def).when??(n.when=e=>{let t=e.value;return!jp(t)&&t.size!==void 0}),e._zod.onattach.push(e=>{let n=e._zod.bag.maximum??1/0;t.maximum<n&&(e._zod.bag.maximum=t.maximum)}),e._zod.check=n=>{let r=n.value;r.size<=t.maximum||n.issues.push({origin:sm(r),code:`too_big`,maximum:t.maximum,inclusive:!0,input:r,inst:e,continue:!t.abort})}}),z_e=N(`$ZodCheckMinSize`,(e,t)=>{var n;Lm.init(e,t),(n=e._zod.def).when??(n.when=e=>{let t=e.value;return!jp(t)&&t.size!==void 0}),e._zod.onattach.push(e=>{let n=e._zod.bag.minimum??-1/0;t.minimum>n&&(e._zod.bag.minimum=t.minimum)}),e._zod.check=n=>{let r=n.value;r.size>=t.minimum||n.issues.push({origin:sm(r),code:`too_small`,minimum:t.minimum,inclusive:!0,input:r,inst:e,continue:!t.abort})}}),B_e=N(`$ZodCheckSizeEquals`,(e,t)=>{var n;Lm.init(e,t),(n=e._zod.def).when??(n.when=e=>{let t=e.value;return!jp(t)&&t.size!==void 0}),e._zod.onattach.push(e=>{let n=e._zod.bag;n.minimum=t.size,n.maximum=t.size,n.size=t.size}),e._zod.check=n=>{let r=n.value,i=r.size;if(i===t.size)return;let a=i>t.size;n.issues.push({origin:sm(r),...a?{code:`too_big`,maximum:t.size}:{code:`too_small`,minimum:t.size},inclusive:!0,exact:!0,input:n.value,inst:e,continue:!t.abort})}}),V_e=N(`$ZodCheckMaxLength`,(e,t)=>{var n;Lm.init(e,t),(n=e._zod.def).when??(n.when=e=>{let t=e.value;return!jp(t)&&t.length!==void 0}),e._zod.onattach.push(e=>{let n=e._zod.bag.maximum??1/0;t.maximum<n&&(e._zod.bag.maximum=t.maximum)}),e._zod.check=n=>{let r=n.value;if(r.length<=t.maximum)return;let i=cm(r);n.issues.push({origin:i,code:`too_big`,maximum:t.maximum,inclusive:!0,input:r,inst:e,continue:!t.abort})}}),H_e=N(`$ZodCheckMinLength`,(e,t)=>{var n;Lm.init(e,t),(n=e._zod.def).when??(n.when=e=>{let t=e.value;return!jp(t)&&t.length!==void 0}),e._zod.onattach.push(e=>{let n=e._zod.bag.minimum??-1/0;t.minimum>n&&(e._zod.bag.minimum=t.minimum)}),e._zod.check=n=>{let r=n.value;if(r.length>=t.minimum)return;let i=cm(r);n.issues.push({origin:i,code:`too_small`,minimum:t.minimum,inclusive:!0,input:r,inst:e,continue:!t.abort})}}),U_e=N(`$ZodCheckLengthEquals`,(e,t)=>{var n;Lm.init(e,t),(n=e._zod.def).when??(n.when=e=>{let t=e.value;return!jp(t)&&t.length!==void 0}),e._zod.onattach.push(e=>{let n=e._zod.bag;n.minimum=t.length,n.maximum=t.length,n.length=t.length}),e._zod.check=n=>{let r=n.value,i=r.length;if(i===t.length)return;let a=cm(r),o=i>t.length;n.issues.push({origin:a,...o?{code:`too_big`,maximum:t.length}:{code:`too_small`,minimum:t.length},inclusive:!0,exact:!0,input:n.value,inst:e,continue:!t.abort})}}),Bm=N(`$ZodCheckStringFormat`,(e,t)=>{var n,r;Lm.init(e,t),e._zod.onattach.push(e=>{let n=e._zod.bag;n.format=t.format,t.pattern&&(n.patterns??=new Set,n.patterns.add(t.pattern))}),t.pattern?(n=e._zod).check??(n.check=n=>{t.pattern.lastIndex=0,!t.pattern.test(n.value)&&n.issues.push({origin:`string`,code:`invalid_format`,format:t.format,input:n.value,...t.pattern?{pattern:t.pattern.toString()}:{},inst:e,continue:!t.abort})}):(r=e._zod).check??(r.check=()=>{})}),W_e=N(`$ZodCheckRegex`,(e,t)=>{Bm.init(e,t),e._zod.check=n=>{t.pattern.lastIndex=0,!t.pattern.test(n.value)&&n.issues.push({origin:`string`,code:`invalid_format`,format:`regex`,input:n.value,pattern:t.pattern.toString(),inst:e,continue:!t.abort})}}),G_e=N(`$ZodCheckLowerCase`,(e,t)=>{t.pattern??=g_e,Bm.init(e,t)}),K_e=N(`$ZodCheckUpperCase`,(e,t)=>{t.pattern??=__e,Bm.init(e,t)}),q_e=N(`$ZodCheckIncludes`,(e,t)=>{Lm.init(e,t);let n=qp(t.includes),r=new RegExp(typeof t.position==`number`?`^.{${t.position}}${n}`:n);t.pattern=r,e._zod.onattach.push(e=>{let t=e._zod.bag;t.patterns??=new Set,t.patterns.add(r)}),e._zod.check=n=>{n.value.includes(t.includes,t.position)||n.issues.push({origin:`string`,code:`invalid_format`,format:`includes`,includes:t.includes,input:n.value,inst:e,continue:!t.abort})}}),J_e=N(`$ZodCheckStartsWith`,(e,t)=>{Lm.init(e,t);let n=RegExp(`^${qp(t.prefix)}.*`);t.pattern??=n,e._zod.onattach.push(e=>{let t=e._zod.bag;t.patterns??=new Set,t.patterns.add(n)}),e._zod.check=n=>{n.value.startsWith(t.prefix)||n.issues.push({origin:`string`,code:`invalid_format`,format:`starts_with`,prefix:t.prefix,input:n.value,inst:e,continue:!t.abort})}}),Y_e=N(`$ZodCheckEndsWith`,(e,t)=>{Lm.init(e,t);let n=RegExp(`.*${qp(t.suffix)}$`);t.pattern??=n,e._zod.onattach.push(e=>{let t=e._zod.bag;t.patterns??=new Set,t.patterns.add(n)}),e._zod.check=n=>{n.value.endsWith(t.suffix)||n.issues.push({origin:`string`,code:`invalid_format`,format:`ends_with`,suffix:t.suffix,input:n.value,inst:e,continue:!t.abort})}});function X_e(e,t,n){e.issues.length&&t.issues.push(...im(n,e.issues))}const Z_e=N(`$ZodCheckProperty`,(e,t)=>{Lm.init(e,t),e._zod.check=e=>{let n=t.schema._zod.run({value:e.value[t.property],issues:[]},{});if(n instanceof Promise)return n.then(n=>X_e(n,e,t.property));X_e(n,e,t.property)}}),Q_e=N(`$ZodCheckMimeType`,(e,t)=>{Lm.init(e,t);let n=new Set(t.mime);e._zod.onattach.push(e=>{e._zod.bag.mime=t.mime}),e._zod.check=r=>{n.has(r.value.type)||r.issues.push({code:`invalid_value`,values:t.mime,input:r.value.type,inst:e,continue:!t.abort})}}),$_e=N(`$ZodCheckOverwrite`,(e,t)=>{Lm.init(e,t),e._zod.check=e=>{e.value=t.tx(e.value)}});var eve=class{constructor(e=[]){this.content=[],this.indent=0,this&&(this.args=e)}indented(e){this.indent+=1,e(this),--this.indent}write(e){if(typeof e==`function`){e(this,{execution:`sync`}),e(this,{execution:`async`});return}let t=e.split(`
|
|
1592
1592
|
`).filter(e=>e),n=Math.min(...t.map(e=>e.length-e.trimStart().length)),r=t.map(e=>e.slice(n)).map(e=>` `.repeat(this.indent*2)+e);for(let e of r)this.content.push(e)}compile(){let e=Function,t=this?.args,n=[...(this?.content??[``]).map(e=>` ${e}`)];return new e(...t,n.join(`
|
|
1593
1593
|
`))}};const tve={major:4,minor:3,patch:6},Vm=N(`$ZodType`,(e,t)=>{var n;e??={},e._zod.def=t,e._zod.bag=e._zod.bag||{},e._zod.version=tve;let r=[...e._zod.def.checks??[]];e._zod.traits.has(`$ZodCheck`)&&r.unshift(e);for(let t of r)for(let n of t._zod.onattach)n(e);if(r.length===0)(n=e._zod).deferred??(n.deferred=[]),e._zod.deferred?.push(()=>{e._zod.run=e._zod.parse});else{let t=(e,t,n)=>{let r=rm(e),i;for(let a of t){if(a._zod.def.when){if(!a._zod.def.when(e))continue}else if(r)continue;let t=e.issues.length,o=a._zod.check(e);if(o instanceof Promise&&n?.async===!1)throw new Sp;if(i||o instanceof Promise)i=(i??Promise.resolve()).then(async()=>{await o,e.issues.length!==t&&(r||=rm(e,t))});else{if(e.issues.length===t)continue;r||=rm(e,t)}}return i?i.then(()=>e):e},n=(n,i,a)=>{if(rm(n))return n.aborted=!0,n;let o=t(i,r,a);if(o instanceof Promise){if(a.async===!1)throw new Sp;return o.then(t=>e._zod.parse(t,a))}return e._zod.parse(o,a)};e._zod.run=(i,a)=>{if(a.skipChecks)return e._zod.parse(i,a);if(a.direction===`backward`){let t=e._zod.parse({value:i.value,issues:[]},{...a,skipChecks:!0});return t instanceof Promise?t.then(e=>n(e,i,a)):n(t,i,a)}let o=e._zod.parse(i,a);if(o instanceof Promise){if(a.async===!1)throw new Sp;return o.then(e=>t(e,r,a))}return t(o,r,a)}}Fp(e,`~standard`,()=>({validate:t=>{try{let n=bm(e,t);return n.success?{value:n.data}:{issues:n.error?.issues}}catch{return Sm(e,t).then(e=>e.success?{value:e.data}:{issues:e.error?.issues})}},vendor:`zod`,version:1}))}),Hm=N(`$ZodString`,(e,t)=>{Vm.init(e,t),e._zod.pattern=[...e?._zod.bag?.patterns??[]].pop()??u_e(e._zod.bag),e._zod.parse=(n,r)=>{if(t.coerce)try{n.value=String(n.value)}catch{}return typeof n.value==`string`||n.issues.push({expected:`string`,code:`invalid_type`,input:n.value,inst:e}),n}}),Um=N(`$ZodStringFormat`,(e,t)=>{Bm.init(e,t),Hm.init(e,t)}),nve=N(`$ZodGUID`,(e,t)=>{t.pattern??=Rge,Um.init(e,t)}),rve=N(`$ZodUUID`,(e,t)=>{if(t.version){let e={v1:1,v2:2,v3:3,v4:4,v5:5,v6:6,v7:7,v8:8}[t.version];if(e===void 0)throw Error(`Invalid UUID version: "${t.version}"`);t.pattern??=Mm(e)}else t.pattern??=Mm();Um.init(e,t)}),ive=N(`$ZodEmail`,(e,t)=>{t.pattern??=Hge,Um.init(e,t)}),ave=N(`$ZodURL`,(e,t)=>{Um.init(e,t),e._zod.check=n=>{try{let r=n.value.trim(),i=new URL(r);t.hostname&&(t.hostname.lastIndex=0,t.hostname.test(i.hostname)||n.issues.push({code:`invalid_format`,format:`url`,note:`Invalid hostname`,pattern:t.hostname.source,input:n.value,inst:e,continue:!t.abort})),t.protocol&&(t.protocol.lastIndex=0,t.protocol.test(i.protocol.endsWith(`:`)?i.protocol.slice(0,-1):i.protocol)||n.issues.push({code:`invalid_format`,format:`url`,note:`Invalid protocol`,pattern:t.protocol.source,input:n.value,inst:e,continue:!t.abort})),t.normalize?n.value=i.href:n.value=r;return}catch{n.issues.push({code:`invalid_format`,format:`url`,input:n.value,inst:e,continue:!t.abort})}}}),ove=N(`$ZodEmoji`,(e,t)=>{t.pattern??=Yge(),Um.init(e,t)}),sve=N(`$ZodNanoID`,(e,t)=>{t.pattern??=Fge,Um.init(e,t)}),cve=N(`$ZodCUID`,(e,t)=>{t.pattern??=Age,Um.init(e,t)}),lve=N(`$ZodCUID2`,(e,t)=>{t.pattern??=jge,Um.init(e,t)}),uve=N(`$ZodULID`,(e,t)=>{t.pattern??=Mge,Um.init(e,t)}),dve=N(`$ZodXID`,(e,t)=>{t.pattern??=Nge,Um.init(e,t)}),fve=N(`$ZodKSUID`,(e,t)=>{t.pattern??=Pge,Um.init(e,t)}),pve=N(`$ZodISODateTime`,(e,t)=>{t.pattern??=l_e(t),Um.init(e,t)}),mve=N(`$ZodISODate`,(e,t)=>{t.pattern??=o_e,Um.init(e,t)}),hve=N(`$ZodISOTime`,(e,t)=>{t.pattern??=c_e(t),Um.init(e,t)}),gve=N(`$ZodISODuration`,(e,t)=>{t.pattern??=Ige,Um.init(e,t)}),_ve=N(`$ZodIPv4`,(e,t)=>{t.pattern??=Xge,Um.init(e,t),e._zod.bag.format=`ipv4`}),vve=N(`$ZodIPv6`,(e,t)=>{t.pattern??=Zge,Um.init(e,t),e._zod.bag.format=`ipv6`,e._zod.check=n=>{try{new URL(`http://[${n.value}]`)}catch{n.issues.push({code:`invalid_format`,format:`ipv6`,input:n.value,inst:e,continue:!t.abort})}}}),yve=N(`$ZodMAC`,(e,t)=>{t.pattern??=Qge(t.delimiter),Um.init(e,t),e._zod.bag.format=`mac`}),bve=N(`$ZodCIDRv4`,(e,t)=>{t.pattern??=$ge,Um.init(e,t)}),xve=N(`$ZodCIDRv6`,(e,t)=>{t.pattern??=e_e,Um.init(e,t),e._zod.check=n=>{let r=n.value.split(`/`);try{if(r.length!==2)throw Error();let[e,t]=r;if(!t)throw Error();let n=Number(t);if(`${n}`!==t||n<0||n>128)throw Error();new URL(`http://[${e}]`)}catch{n.issues.push({code:`invalid_format`,format:`cidrv6`,input:n.value,inst:e,continue:!t.abort})}}});function Wm(e){if(e===``)return!0;if(e.length%4!=0)return!1;try{return atob(e),!0}catch{return!1}}const Sve=N(`$ZodBase64`,(e,t)=>{t.pattern??=t_e,Um.init(e,t),e._zod.bag.contentEncoding=`base64`,e._zod.check=n=>{Wm(n.value)||n.issues.push({code:`invalid_format`,format:`base64`,input:n.value,inst:e,continue:!t.abort})}});function Cve(e){if(!Nm.test(e))return!1;let t=e.replace(/[-_]/g,e=>e===`-`?`+`:`/`);return Wm(t.padEnd(Math.ceil(t.length/4)*4,`=`))}const wve=N(`$ZodBase64URL`,(e,t)=>{t.pattern??=Nm,Um.init(e,t),e._zod.bag.contentEncoding=`base64url`,e._zod.check=n=>{Cve(n.value)||n.issues.push({code:`invalid_format`,format:`base64url`,input:n.value,inst:e,continue:!t.abort})}}),Tve=N(`$ZodE164`,(e,t)=>{t.pattern??=i_e,Um.init(e,t)});function Eve(e,t=null){try{let n=e.split(`.`);if(n.length!==3)return!1;let[r]=n;if(!r)return!1;let i=JSON.parse(atob(r));return!(`typ`in i&&i?.typ!==`JWT`||!i.alg||t&&(!(`alg`in i)||i.alg!==t))}catch{return!1}}const Dve=N(`$ZodJWT`,(e,t)=>{Um.init(e,t),e._zod.check=n=>{Eve(n.value,t.alg)||n.issues.push({code:`invalid_format`,format:`jwt`,input:n.value,inst:e,continue:!t.abort})}}),Ove=N(`$ZodCustomStringFormat`,(e,t)=>{Um.init(e,t),e._zod.check=n=>{t.fn(n.value)||n.issues.push({code:`invalid_format`,format:t.format,input:n.value,inst:e,continue:!t.abort})}}),Gm=N(`$ZodNumber`,(e,t)=>{Vm.init(e,t),e._zod.pattern=e._zod.bag.pattern??Pm,e._zod.parse=(n,r)=>{if(t.coerce)try{n.value=Number(n.value)}catch{}let i=n.value;if(typeof i==`number`&&!Number.isNaN(i)&&Number.isFinite(i))return n;let a=typeof i==`number`?Number.isNaN(i)?`NaN`:Number.isFinite(i)?void 0:`Infinity`:void 0;return n.issues.push({expected:`number`,code:`invalid_type`,input:i,inst:e,...a?{received:a}:{}}),n}}),kve=N(`$ZodNumberFormat`,(e,t)=>{I_e.init(e,t),Gm.init(e,t)}),Km=N(`$ZodBoolean`,(e,t)=>{Vm.init(e,t),e._zod.pattern=p_e,e._zod.parse=(n,r)=>{if(t.coerce)try{n.value=!!n.value}catch{}let i=n.value;return typeof i==`boolean`||n.issues.push({expected:`boolean`,code:`invalid_type`,input:i,inst:e}),n}}),qm=N(`$ZodBigInt`,(e,t)=>{Vm.init(e,t),e._zod.pattern=d_e,e._zod.parse=(n,r)=>{if(t.coerce)try{n.value=BigInt(n.value)}catch{}return typeof n.value==`bigint`||n.issues.push({expected:`bigint`,code:`invalid_type`,input:n.value,inst:e}),n}}),Ave=N(`$ZodBigIntFormat`,(e,t)=>{L_e.init(e,t),qm.init(e,t)}),jve=N(`$ZodSymbol`,(e,t)=>{Vm.init(e,t),e._zod.parse=(t,n)=>{let r=t.value;return typeof r==`symbol`||t.issues.push({expected:`symbol`,code:`invalid_type`,input:r,inst:e}),t}}),Mve=N(`$ZodUndefined`,(e,t)=>{Vm.init(e,t),e._zod.pattern=h_e,e._zod.values=new Set([void 0]),e._zod.optin=`optional`,e._zod.optout=`optional`,e._zod.parse=(t,n)=>{let r=t.value;return r===void 0||t.issues.push({expected:`undefined`,code:`invalid_type`,input:r,inst:e}),t}}),Nve=N(`$ZodNull`,(e,t)=>{Vm.init(e,t),e._zod.pattern=m_e,e._zod.values=new Set([null]),e._zod.parse=(t,n)=>{let r=t.value;return r===null||t.issues.push({expected:`null`,code:`invalid_type`,input:r,inst:e}),t}}),Pve=N(`$ZodAny`,(e,t)=>{Vm.init(e,t),e._zod.parse=e=>e}),Fve=N(`$ZodUnknown`,(e,t)=>{Vm.init(e,t),e._zod.parse=e=>e}),Ive=N(`$ZodNever`,(e,t)=>{Vm.init(e,t),e._zod.parse=(t,n)=>(t.issues.push({expected:`never`,code:`invalid_type`,input:t.value,inst:e}),t)}),Lve=N(`$ZodVoid`,(e,t)=>{Vm.init(e,t),e._zod.parse=(t,n)=>{let r=t.value;return r===void 0||t.issues.push({expected:`void`,code:`invalid_type`,input:r,inst:e}),t}}),Rve=N(`$ZodDate`,(e,t)=>{Vm.init(e,t),e._zod.parse=(n,r)=>{if(t.coerce)try{n.value=new Date(n.value)}catch{}let i=n.value,a=i instanceof Date;return a&&!Number.isNaN(i.getTime())||n.issues.push({expected:`date`,code:`invalid_type`,input:i,...a?{received:`Invalid Date`}:{},inst:e}),n}});function zve(e,t,n){e.issues.length&&t.issues.push(...im(n,e.issues)),t.value[n]=e.value}const Bve=N(`$ZodArray`,(e,t)=>{Vm.init(e,t),e._zod.parse=(n,r)=>{let i=n.value;if(!Array.isArray(i))return n.issues.push({expected:`array`,code:`invalid_type`,input:i,inst:e}),n;n.value=Array(i.length);let a=[];for(let e=0;e<i.length;e++){let o=i[e],s=t.element._zod.run({value:o,issues:[]},r);s instanceof Promise?a.push(s.then(t=>zve(t,n,e))):zve(s,n,e)}return a.length?Promise.all(a).then(()=>n):n}});function Jm(e,t,n,r,i){if(e.issues.length){if(i&&!(n in r))return;t.issues.push(...im(n,e.issues))}e.value===void 0?n in r&&(t.value[n]=void 0):t.value[n]=e.value}function Vve(e){let t=Object.keys(e.shape);for(let n of t)if(!e.shape?.[n]?._zod?.traits?.has(`$ZodType`))throw Error(`Invalid element at key "${n}": expected a Zod schema`);let n=Zp(e.shape);return{...e,keys:t,keySet:new Set(t),numKeys:t.length,optionalKeys:new Set(n)}}function Hve(e,t,n,r,i,a){let o=[],s=i.keySet,c=i.catchall._zod,l=c.def.type,u=c.optout===`optional`;for(let i in t){if(s.has(i))continue;if(l===`never`){o.push(i);continue}let a=c.run({value:t[i],issues:[]},r);a instanceof Promise?e.push(a.then(e=>Jm(e,n,i,t,u))):Jm(a,n,i,t,u)}return o.length&&n.issues.push({code:`unrecognized_keys`,keys:o,input:t,inst:a}),e.length?Promise.all(e).then(()=>n):n}const Ym=N(`$ZodObject`,(e,t)=>{if(Vm.init(e,t),!Object.getOwnPropertyDescriptor(t,`shape`)?.get){let e=t.shape;Object.defineProperty(t,`shape`,{get:()=>{let n={...e};return Object.defineProperty(t,`shape`,{value:n}),n}})}let n=Ap(()=>Vve(t));Fp(e._zod,`propValues`,()=>{let e=t.shape,n={};for(let t in e){let r=e[t]._zod;if(r.values){n[t]??(n[t]=new Set);for(let e of r.values)n[t].add(e)}}return n});let r=Vp,i=t.catchall,a;e._zod.parse=(t,o)=>{a??=n.value;let s=t.value;if(!r(s))return t.issues.push({expected:`object`,code:`invalid_type`,input:s,inst:e}),t;t.value={};let c=[],l=a.shape;for(let e of a.keys){let n=l[e],r=n._zod.optout===`optional`,i=n._zod.run({value:s[e],issues:[]},o);i instanceof Promise?c.push(i.then(n=>Jm(n,t,e,s,r))):Jm(i,t,e,s,r)}return i?Hve(c,s,t,o,n.value,e):c.length?Promise.all(c).then(()=>t):t}}),Uve=N(`$ZodObjectJIT`,(e,t)=>{Ym.init(e,t);let n=e._zod.parse,r=Ap(()=>Vve(t)),i=e=>{let t=new eve([`shape`,`payload`,`ctx`]),n=r.value,i=e=>{let t=Rp(e);return`shape[${t}]._zod.run({ value: input[${t}], issues: [] }, ctx)`};t.write(`const input = payload.value;`);let a=Object.create(null),o=0;for(let e of n.keys)a[e]=`key_${o++}`;t.write(`const newResult = {};`);for(let r of n.keys){let n=a[r],o=Rp(r),s=e[r]?._zod?.optout===`optional`;t.write(`const ${n} = ${i(r)};`),s?t.write(`
|
|
@@ -2069,7 +2069,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
2069
2069
|
padding-block-end: dt('select.padding.y');
|
|
2070
2070
|
}
|
|
2071
2071
|
`,classes:{root:function(e){var t=e.instance,n=e.props,r=e.state;return[`p-select p-component p-inputwrapper`,{"p-disabled":n.disabled,"p-invalid":t.$invalid,"p-variant-filled":t.$variant===`filled`,"p-focus":r.focused,"p-inputwrapper-filled":t.$filled,"p-inputwrapper-focus":r.focused||r.overlayVisible,"p-select-open":r.overlayVisible,"p-select-fluid":t.$fluid,"p-select-sm p-inputfield-sm":n.size===`small`,"p-select-lg p-inputfield-lg":n.size===`large`}]},label:function(e){var t=e.instance,n=e.props;return[`p-select-label`,{"p-placeholder":!n.editable&&t.label===n.placeholder,"p-select-label-empty":!n.editable&&!t.$slots.value&&(t.label===`p-emptylabel`||t.label?.length===0)}]},clearIcon:`p-select-clear-icon`,dropdown:`p-select-dropdown`,loadingicon:`p-select-loading-icon`,dropdownIcon:`p-select-dropdown-icon`,overlay:`p-select-overlay p-component`,header:`p-select-header`,pcFilter:`p-select-filter`,listContainer:`p-select-list-container`,list:`p-select-list`,optionGroup:`p-select-option-group`,optionGroupLabel:`p-select-option-group-label`,option:function(e){var t=e.instance,n=e.props,r=e.state,i=e.option,a=e.focusedOption;return[`p-select-option`,{"p-select-option-selected":t.isSelected(i)&&n.highlightOnSelect,"p-focus":r.focusedOptionIndex===a,"p-disabled":t.isOptionDisabled(i)}]},optionLabel:`p-select-option-label`,optionCheckIcon:`p-select-option-check-icon`,optionBlankIcon:`p-select-option-blank-icon`,emptyMessage:`p-select-empty-message`}}),FEe={name:`BaseSelect`,extends:$v,props:{options:Array,optionLabel:[String,Function],optionValue:[String,Function],optionDisabled:[String,Function],optionGroupLabel:[String,Function],optionGroupChildren:[String,Function],scrollHeight:{type:String,default:`14rem`},filter:Boolean,filterPlaceholder:String,filterLocale:String,filterMatchMode:{type:String,default:`contains`},filterFields:{type:Array,default:null},editable:Boolean,placeholder:{type:String,default:null},dataKey:null,showClear:{type:Boolean,default:!1},inputId:{type:String,default:null},inputClass:{type:[String,Object],default:null},inputStyle:{type:Object,default:null},labelId:{type:String,default:null},labelClass:{type:[String,Object],default:null},labelStyle:{type:Object,default:null},panelClass:{type:[String,Object],default:null},overlayStyle:{type:Object,default:null},overlayClass:{type:[String,Object],default:null},panelStyle:{type:Object,default:null},appendTo:{type:[String,Object],default:`body`},loading:{type:Boolean,default:!1},clearIcon:{type:String,default:void 0},dropdownIcon:{type:String,default:void 0},filterIcon:{type:String,default:void 0},loadingIcon:{type:String,default:void 0},resetFilterOnHide:{type:Boolean,default:!1},resetFilterOnClear:{type:Boolean,default:!1},virtualScrollerOptions:{type:Object,default:null},autoOptionFocus:{type:Boolean,default:!1},autoFilterFocus:{type:Boolean,default:!1},selectOnFocus:{type:Boolean,default:!1},focusOnHover:{type:Boolean,default:!0},highlightOnSelect:{type:Boolean,default:!0},checkmark:{type:Boolean,default:!1},filterMessage:{type:String,default:null},selectionMessage:{type:String,default:null},emptySelectionMessage:{type:String,default:null},emptyFilterMessage:{type:String,default:null},emptyMessage:{type:String,default:null},tabindex:{type:Number,default:0},ariaLabel:{type:String,default:null},ariaLabelledby:{type:String,default:null}},style:PEe,provide:function(){return{$pcSelect:this,$parentInstance:this}}};function oy(e){"@babel/helpers - typeof";return oy=typeof Symbol==`function`&&typeof Symbol.iterator==`symbol`?function(e){return typeof e}:function(e){return e&&typeof Symbol==`function`&&e.constructor===Symbol&&e!==Symbol.prototype?`symbol`:typeof e},oy(e)}function IEe(e){return BEe(e)||zEe(e)||REe(e)||LEe()}function LEe(){throw TypeError(`Invalid attempt to spread non-iterable instance.
|
|
2072
|
-
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function REe(e,t){if(e){if(typeof e==`string`)return sy(e,t);var n={}.toString.call(e).slice(8,-1);return n===`Object`&&e.constructor&&(n=e.constructor.name),n===`Map`||n===`Set`?Array.from(e):n===`Arguments`||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?sy(e,t):void 0}}function zEe(e){if(typeof Symbol<`u`&&e[Symbol.iterator]!=null||e[`@@iterator`]!=null)return Array.from(e)}function BEe(e){if(Array.isArray(e))return sy(e)}function sy(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function VEe(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function HEe(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]==null?{}:arguments[t];t%2?VEe(Object(n),!0).forEach(function(t){cy(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):VEe(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function cy(e,t,n){return(t=UEe(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function UEe(e){var t=WEe(e,`string`);return oy(t)==`symbol`?t:t+``}function WEe(e,t){if(oy(e)!=`object`||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(oy(r)!=`object`)return r;throw TypeError(`@@toPrimitive must return a primitive value.`)}return(t===`string`?String:Number)(e)}var ly={name:`Select`,extends:FEe,inheritAttrs:!1,emits:[`change`,`focus`,`blur`,`before-show`,`before-hide`,`show`,`hide`,`filter`],outsideClickListener:null,scrollHandler:null,resizeListener:null,labelClickListener:null,matchMediaOrientationListener:null,overlay:null,list:null,virtualScroller:null,searchTimeout:null,searchValue:null,isModelValueChanged:!1,data:function(){return{clicked:!1,focused:!1,focusedOptionIndex:-1,filterValue:null,overlayVisible:!1,queryOrientation:null}},watch:{modelValue:function(){this.isModelValueChanged=!0},options:function(){this.autoUpdateModel()}},mounted:function(){this.autoUpdateModel(),this.bindLabelClickListener(),this.bindMatchMediaOrientationListener()},updated:function(){this.overlayVisible&&this.isModelValueChanged&&this.scrollInView(this.findSelectedOptionIndex()),this.isModelValueChanged=!1},beforeUnmount:function(){this.unbindOutsideClickListener(),this.unbindResizeListener(),this.unbindLabelClickListener(),this.unbindMatchMediaOrientationListener(),this.scrollHandler&&=(this.scrollHandler.destroy(),null),this.overlay&&=(os.clear(this.overlay),null)},methods:{getOptionIndex:function(e,t){return this.virtualScrollerDisabled?e:t&&t(e).index},getOptionLabel:function(e){return this.optionLabel?fo(e,this.optionLabel):e},getOptionValue:function(e){return this.optionValue?fo(e,this.optionValue):e},getOptionRenderKey:function(e,t){return(this.dataKey?fo(e,this.dataKey):this.getOptionLabel(e))+`_`+t},getPTItemOptions:function(e,t,n,r){return this.ptm(r,{context:{option:e,index:n,selected:this.isSelected(e),focused:this.focusedOptionIndex===this.getOptionIndex(n,t),disabled:this.isOptionDisabled(e)}})},isOptionDisabled:function(e){return this.optionDisabled?fo(e,this.optionDisabled):!1},isOptionGroup:function(e){return this.optionGroupLabel&&e.optionGroup&&e.group},getOptionGroupLabel:function(e){return fo(e,this.optionGroupLabel)},getOptionGroupChildren:function(e){return fo(e,this.optionGroupChildren)},getAriaPosInset:function(e){var t=this;return(this.optionGroupLabel?e-this.visibleOptions.slice(0,e).filter(function(e){return t.isOptionGroup(e)}).length:e)+1},show:function(e){this.$emit(`before-show`),this.overlayVisible=!0,this.focusedOptionIndex=this.focusedOptionIndex===-1?this.autoOptionFocus?this.findFirstFocusedOptionIndex():this.editable?-1:this.findSelectedOptionIndex():this.focusedOptionIndex,e&&Go(this.$refs.focusInput)},hide:function(e){var t=this,n=function(){t.$emit(`before-hide`),t.overlayVisible=!1,t.clicked=!1,t.focusedOptionIndex=-1,t.searchValue=``,t.resetFilterOnHide&&(t.filterValue=null),e&&Go(t.$refs.focusInput)};setTimeout(function(){n()},0)},onFocus:function(e){this.disabled||(this.focused=!0,this.overlayVisible&&(this.focusedOptionIndex=this.focusedOptionIndex===-1?this.autoOptionFocus?this.findFirstFocusedOptionIndex():this.editable?-1:this.findSelectedOptionIndex():this.focusedOptionIndex,this.scrollInView(this.focusedOptionIndex)),this.$emit(`focus`,e))},onBlur:function(e){var t=this;setTimeout(function(){var n,r;t.focused=!1,t.focusedOptionIndex=-1,t.searchValue=``,t.$emit(`blur`,e),(n=(r=t.formField).onBlur)==null||n.call(r,e)},100)},onKeyDown:function(e){if(this.disabled){e.preventDefault();return}if(uie())switch(e.code){case`Backspace`:this.onBackspaceKey(e,this.editable);break;case`Enter`:case`NumpadDecimal`:this.onEnterKey(e);break;default:e.preventDefault();return}var t=e.metaKey||e.ctrlKey;switch(e.code){case`ArrowDown`:this.onArrowDownKey(e);break;case`ArrowUp`:this.onArrowUpKey(e,this.editable);break;case`ArrowLeft`:case`ArrowRight`:this.onArrowLeftKey(e,this.editable);break;case`Home`:this.onHomeKey(e,this.editable);break;case`End`:this.onEndKey(e,this.editable);break;case`PageDown`:this.onPageDownKey(e);break;case`PageUp`:this.onPageUpKey(e);break;case`Space`:this.onSpaceKey(e,this.editable);break;case`Enter`:case`NumpadEnter`:this.onEnterKey(e);break;case`Escape`:this.onEscapeKey(e);break;case`Tab`:this.onTabKey(e);break;case`Backspace`:this.onBackspaceKey(e,this.editable);break;case`ShiftLeft`:case`ShiftRight`:break;default:!t&&Co(e.key)&&(!this.overlayVisible&&this.show(),!this.editable&&this.searchOptions(e,e.key),this.filter&&(this.filterValue=e.key));break}this.clicked=!1},onEditableInput:function(e){var t=e.target.value;this.searchValue=``,!this.searchOptions(e,t)&&(this.focusedOptionIndex=-1),this.updateModel(e,t),!this.overlayVisible&&uo(t)&&this.show()},onContainerClick:function(e){this.disabled||this.loading||e.target.tagName===`INPUT`||e.target.getAttribute(`data-pc-section`)===`clearicon`||e.target.closest(`[data-pc-section="clearicon"]`)||((!this.overlay||!this.overlay.contains(e.target))&&(this.overlayVisible?this.hide(!0):this.show(!0)),this.clicked=!0)},onClearClick:function(e){this.updateModel(e,null),this.resetFilterOnClear&&(this.filterValue=null)},onFirstHiddenFocus:function(e){Go(e.relatedTarget===this.$refs.focusInput?Jo(this.overlay,`:not([data-p-hidden-focusable="true"])`):this.$refs.focusInput)},onLastHiddenFocus:function(e){Go(e.relatedTarget===this.$refs.focusInput?Xo(this.overlay,`:not([data-p-hidden-focusable="true"])`):this.$refs.focusInput)},onOptionSelect:function(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0,r=this.getOptionValue(t);this.updateModel(e,r),n&&this.hide(!0)},onOptionMouseMove:function(e,t){this.focusOnHover&&this.changeFocusedOptionIndex(e,t)},onFilterChange:function(e){var t=e.target.value;this.filterValue=t,this.focusedOptionIndex=-1,this.$emit(`filter`,{originalEvent:e,value:t}),!this.virtualScrollerDisabled&&this.virtualScroller.scrollToIndex(0)},onFilterKeyDown:function(e){if(!e.isComposing)switch(e.code){case`ArrowDown`:this.onArrowDownKey(e);break;case`ArrowUp`:this.onArrowUpKey(e,!0);break;case`ArrowLeft`:case`ArrowRight`:this.onArrowLeftKey(e,!0);break;case`Home`:this.onHomeKey(e,!0);break;case`End`:this.onEndKey(e,!0);break;case`Enter`:case`NumpadEnter`:this.onEnterKey(e);break;case`Escape`:this.onEscapeKey(e);break;case`Tab`:this.onTabKey(e);break}},onFilterBlur:function(){this.focusedOptionIndex=-1},onFilterUpdated:function(){this.overlayVisible&&this.alignOverlay()},onOverlayClick:function(e){ny.emit(`overlay-click`,{originalEvent:e,target:this.$el})},onOverlayKeyDown:function(e){switch(e.code){case`Escape`:this.onEscapeKey(e);break}},onArrowDownKey:function(e){if(!this.overlayVisible)this.show(),this.editable&&this.changeFocusedOptionIndex(e,this.findSelectedOptionIndex());else{var t=this.focusedOptionIndex===-1?this.clicked?this.findFirstOptionIndex():this.findFirstFocusedOptionIndex():this.findNextOptionIndex(this.focusedOptionIndex);this.changeFocusedOptionIndex(e,t)}e.preventDefault()},onArrowUpKey:function(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;if(e.altKey&&!t)this.focusedOptionIndex!==-1&&this.onOptionSelect(e,this.visibleOptions[this.focusedOptionIndex]),this.overlayVisible&&this.hide(),e.preventDefault();else{var n=this.focusedOptionIndex===-1?this.clicked?this.findLastOptionIndex():this.findLastFocusedOptionIndex():this.findPrevOptionIndex(this.focusedOptionIndex);this.changeFocusedOptionIndex(e,n),!this.overlayVisible&&this.show(),e.preventDefault()}},onArrowLeftKey:function(e){arguments.length>1&&arguments[1]!==void 0&&arguments[1]&&(this.focusedOptionIndex=-1)},onHomeKey:function(e){if(arguments.length>1&&arguments[1]!==void 0&&arguments[1]){var t=e.currentTarget;e.shiftKey?t.setSelectionRange(0,e.target.selectionStart):(t.setSelectionRange(0,0),this.focusedOptionIndex=-1)}else this.changeFocusedOptionIndex(e,this.findFirstOptionIndex()),!this.overlayVisible&&this.show();e.preventDefault()},onEndKey:function(e){if(arguments.length>1&&arguments[1]!==void 0&&arguments[1]){var t=e.currentTarget;if(e.shiftKey)t.setSelectionRange(e.target.selectionStart,t.value.length);else{var n=t.value.length;t.setSelectionRange(n,n),this.focusedOptionIndex=-1}}else this.changeFocusedOptionIndex(e,this.findLastOptionIndex()),!this.overlayVisible&&this.show();e.preventDefault()},onPageUpKey:function(e){this.scrollInView(0),e.preventDefault()},onPageDownKey:function(e){this.scrollInView(this.visibleOptions.length-1),e.preventDefault()},onEnterKey:function(e){this.overlayVisible?(this.focusedOptionIndex!==-1&&this.onOptionSelect(e,this.visibleOptions[this.focusedOptionIndex]),this.hide(!0)):(this.focusedOptionIndex=-1,this.onArrowDownKey(e)),e.preventDefault()},onSpaceKey:function(e){!(arguments.length>1&&arguments[1]!==void 0&&arguments[1])&&this.onEnterKey(e)},onEscapeKey:function(e){this.overlayVisible&&this.hide(!0),e.preventDefault(),e.stopPropagation()},onTabKey:function(e){arguments.length>1&&arguments[1]!==void 0&&arguments[1]||(this.overlayVisible&&this.hasFocusableElements()?(Go(this.$refs.firstHiddenFocusableElementOnOverlay),e.preventDefault()):(this.focusedOptionIndex!==-1&&this.onOptionSelect(e,this.visibleOptions[this.focusedOptionIndex]),this.overlayVisible&&this.hide(this.filter)))},onBackspaceKey:function(e){arguments.length>1&&arguments[1]!==void 0&&arguments[1]&&!this.overlayVisible&&this.show()},onOverlayEnter:function(e){var t=this;os.set(`overlay`,e,this.$primevue.config.zIndex.overlay),Ro(e,{position:`absolute`,top:`0`}),this.alignOverlay(),this.scrollInView(),this.$attrSelector&&e.setAttribute(this.$attrSelector,``),setTimeout(function(){t.autoFilterFocus&&t.filter&&Go(t.$refs.filterInput.$el),t.autoUpdateModel()},1)},onOverlayAfterEnter:function(){this.bindOutsideClickListener(),this.bindScrollListener(),this.bindResizeListener(),this.$emit(`show`)},onOverlayLeave:function(){var e=this;this.unbindOutsideClickListener(),this.unbindScrollListener(),this.unbindResizeListener(),this.autoFilterFocus&&this.filter&&!this.editable&&this.$nextTick(function(){e.$refs.filterInput&&Go(e.$refs.filterInput.$el)}),this.$emit(`hide`),this.overlay=null},onOverlayAfterLeave:function(e){os.clear(e)},alignOverlay:function(){this.appendTo===`self`?Xre(this.overlay,this.$el):this.overlay&&(this.overlay.style.minWidth=zo(this.$el)+`px`,Lo(this.overlay,this.$el))},bindOutsideClickListener:function(){var e=this;this.outsideClickListener||(this.outsideClickListener=function(t){var n=t.composedPath();e.overlayVisible&&e.overlay&&!n.includes(e.$el)&&!n.includes(e.overlay)&&e.hide()},document.addEventListener(`click`,this.outsideClickListener,!0))},unbindOutsideClickListener:function(){this.outsideClickListener&&=(document.removeEventListener(`click`,this.outsideClickListener,!0),null)},bindScrollListener:function(){var e=this;this.scrollHandler||=new el(this.$refs.container,function(){e.overlayVisible&&e.hide()}),this.scrollHandler.bindScrollListener()},unbindScrollListener:function(){this.scrollHandler&&this.scrollHandler.unbindScrollListener()},bindResizeListener:function(){var e=this;this.resizeListener||(this.resizeListener=function(){e.overlayVisible&&!ns()&&e.hide()},window.addEventListener(`resize`,this.resizeListener))},unbindResizeListener:function(){this.resizeListener&&=(window.removeEventListener(`resize`,this.resizeListener),null)},bindLabelClickListener:function(){var e=this;if(!this.editable&&!this.labelClickListener){var t=document.querySelector(`label[for="${this.labelId}"]`);t&&ts(t)&&(this.labelClickListener=function(){Go(e.$refs.focusInput)},t.addEventListener(`click`,this.labelClickListener))}},unbindLabelClickListener:function(){if(this.labelClickListener){var e=document.querySelector(`label[for="${this.labelId}"]`);e&&ts(e)&&e.removeEventListener(`click`,this.labelClickListener)}},bindMatchMediaOrientationListener:function(){var e=this;this.matchMediaOrientationListener||(this.queryOrientation=matchMedia(`(orientation: portrait)`),this.matchMediaOrientationListener=function(){e.alignOverlay()},this.queryOrientation.addEventListener(`change`,this.matchMediaOrientationListener))},unbindMatchMediaOrientationListener:function(){this.matchMediaOrientationListener&&=(this.queryOrientation.removeEventListener(`change`,this.matchMediaOrientationListener),this.queryOrientation=null,null)},hasFocusableElements:function(){return qo(this.overlay,`:not([data-p-hidden-focusable="true"])`).length>0},isOptionExactMatched:function(e){return this.isValidOption(e)&&typeof this.getOptionLabel(e)==`string`&&this.getOptionLabel(e)?.toLocaleLowerCase(this.filterLocale)==this.searchValue.toLocaleLowerCase(this.filterLocale)},isOptionStartsWith:function(e){return this.isValidOption(e)&&typeof this.getOptionLabel(e)==`string`&&this.getOptionLabel(e)?.toLocaleLowerCase(this.filterLocale).startsWith(this.searchValue.toLocaleLowerCase(this.filterLocale))},isValidOption:function(e){return uo(e)&&!(this.isOptionDisabled(e)||this.isOptionGroup(e))},isValidSelectedOption:function(e){return this.isValidOption(e)&&this.isSelected(e)},isSelected:function(e){return po(this.d_value,this.getOptionValue(e),this.equalityKey)},findFirstOptionIndex:function(){var e=this;return this.visibleOptions.findIndex(function(t){return e.isValidOption(t)})},findLastOptionIndex:function(){var e=this;return _o(this.visibleOptions,function(t){return e.isValidOption(t)})},findNextOptionIndex:function(e){var t=this,n=e<this.visibleOptions.length-1?this.visibleOptions.slice(e+1).findIndex(function(e){return t.isValidOption(e)}):-1;return n>-1?n+e+1:e},findPrevOptionIndex:function(e){var t=this,n=e>0?_o(this.visibleOptions.slice(0,e),function(e){return t.isValidOption(e)}):-1;return n>-1?n:e},findSelectedOptionIndex:function(){var e=this;return this.visibleOptions.findIndex(function(t){return e.isValidSelectedOption(t)})},findFirstFocusedOptionIndex:function(){var e=this.findSelectedOptionIndex();return e<0?this.findFirstOptionIndex():e},findLastFocusedOptionIndex:function(){var e=this.findSelectedOptionIndex();return e<0?this.findLastOptionIndex():e},searchOptions:function(e,t){var n=this;this.searchValue=(this.searchValue||``)+t;var r=-1,i=!1;return uo(this.searchValue)&&(r=this.visibleOptions.findIndex(function(e){return n.isOptionExactMatched(e)}),r===-1&&(r=this.visibleOptions.findIndex(function(e){return n.isOptionStartsWith(e)})),r!==-1&&(i=!0),r===-1&&this.focusedOptionIndex===-1&&(r=this.findFirstFocusedOptionIndex()),r!==-1&&this.changeFocusedOptionIndex(e,r)),this.searchTimeout&&clearTimeout(this.searchTimeout),this.searchTimeout=setTimeout(function(){n.searchValue=``,n.searchTimeout=null},500),i},changeFocusedOptionIndex:function(e,t){this.focusedOptionIndex!==t&&(this.focusedOptionIndex=t,this.scrollInView(),this.selectOnFocus&&this.onOptionSelect(e,this.visibleOptions[t],!1))},scrollInView:function(){var e=this,t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:-1;this.$nextTick(function(){var n=t===-1?e.focusedOptionId:`${e.$id}_${t}`,r=Wo(e.list,`li[id="${n}"]`);r?r.scrollIntoView&&r.scrollIntoView({block:`nearest`,inline:`nearest`}):e.virtualScrollerDisabled||e.virtualScroller&&e.virtualScroller.scrollToIndex(t===-1?e.focusedOptionIndex:t)})},autoUpdateModel:function(){this.autoOptionFocus&&(this.focusedOptionIndex=this.findFirstFocusedOptionIndex()),this.selectOnFocus&&this.autoOptionFocus&&!this.$filled&&this.onOptionSelect(null,this.visibleOptions[this.focusedOptionIndex],!1)},updateModel:function(e,t){this.writeValue(t,e),this.$emit(`change`,{originalEvent:e,value:t})},flatOptions:function(e){var t=this;return(e||[]).reduce(function(e,n,r){e.push({optionGroup:n,group:!0,index:r});var i=t.getOptionGroupChildren(n);return i&&i.forEach(function(t){return e.push(t)}),e},[])},overlayRef:function(e){this.overlay=e},listRef:function(e,t){this.list=e,t&&t(e)},virtualScrollerRef:function(e){this.virtualScroller=e}},computed:{visibleOptions:function(){var e=this,t=this.optionGroupLabel?this.flatOptions(this.options):this.options||[];if(this.filterValue){var n=Wie.filter(t,this.searchFields,this.filterValue,this.filterMatchMode,this.filterLocale);if(this.optionGroupLabel){var r=this.options||[],i=[];return r.forEach(function(t){var r=e.getOptionGroupChildren(t).filter(function(e){return n.includes(e)});r.length>0&&i.push(HEe(HEe({},t),{},cy({},typeof e.optionGroupChildren==`string`?e.optionGroupChildren:`items`,IEe(r))))}),this.flatOptions(i)}return n}return t},hasSelectedOption:function(){return this.$filled},label:function(){var e=this.findSelectedOptionIndex();return e===-1?this.placeholder||`p-emptylabel`:this.getOptionLabel(this.visibleOptions[e])},editableInputValue:function(){var e=this.findSelectedOptionIndex();return e===-1?this.d_value||``:this.getOptionLabel(this.visibleOptions[e])},equalityKey:function(){return this.optionValue?null:this.dataKey},searchFields:function(){return this.filterFields||[this.optionLabel]},filterResultMessageText:function(){return uo(this.visibleOptions)?this.filterMessageText.replaceAll(`{0}`,this.visibleOptions.length):this.emptyFilterMessageText},filterMessageText:function(){return this.filterMessage||this.$primevue.config.locale.searchMessage||``},emptyFilterMessageText:function(){return this.emptyFilterMessage||this.$primevue.config.locale.emptySearchMessage||this.$primevue.config.locale.emptyFilterMessage||``},emptyMessageText:function(){return this.emptyMessage||this.$primevue.config.locale.emptyMessage||``},selectionMessageText:function(){return this.selectionMessage||this.$primevue.config.locale.selectionMessage||``},emptySelectionMessageText:function(){return this.emptySelectionMessage||this.$primevue.config.locale.emptySelectionMessage||``},selectedMessageText:function(){return this.$filled?this.selectionMessageText.replaceAll(`{0}`,`1`):this.emptySelectionMessageText},focusedOptionId:function(){return this.focusedOptionIndex===-1?null:`${this.$id}_${this.focusedOptionIndex}`},ariaSetSize:function(){var e=this;return this.visibleOptions.filter(function(t){return!e.isOptionGroup(t)}).length},isClearIconVisible:function(){return this.showClear&&this.d_value!=null&&!this.disabled&&!this.loading},virtualScrollerDisabled:function(){return!this.virtualScrollerOptions},containerDataP:function(){return ko(cy({invalid:this.$invalid,disabled:this.disabled,focus:this.focused,fluid:this.$fluid,filled:this.$variant===`filled`},this.size,this.size))},labelDataP:function(){return ko(cy(cy({placeholder:!this.editable&&this.label===this.placeholder,clearable:this.showClear,disabled:this.disabled,editable:this.editable},this.size,this.size),`empty`,!this.editable&&!this.$slots.value&&(this.label===`p-emptylabel`||this.label.length===0)))},dropdownIconDataP:function(){return ko(cy({},this.size,this.size))},overlayDataP:function(){return ko(cy({},`portal-`+this.appendTo,`portal-`+this.appendTo))}},directives:{ripple:nd},components:{InputText:ty,VirtualScroller:ay,Portal:Tu,InputIcon:Qv,IconField:Zv,TimesIcon:Yu,ChevronDownIcon:qv,SpinnerIcon:pd,SearchIcon:Yv,CheckIcon:Uu,BlankIcon:QTe}},GEe=[`id`,`data-p`],KEe=[`name`,`id`,`value`,`placeholder`,`tabindex`,`disabled`,`aria-label`,`aria-labelledby`,`aria-expanded`,`aria-controls`,`aria-activedescendant`,`aria-invalid`,`data-p`],qEe=[`name`,`id`,`tabindex`,`aria-label`,`aria-labelledby`,`aria-expanded`,`aria-controls`,`aria-activedescendant`,`aria-invalid`,`aria-disabled`,`data-p`],JEe=[`data-p`],YEe=[`id`],XEe=[`id`],ZEe=[`id`,`aria-label`,`aria-selected`,`aria-disabled`,`aria-setsize`,`aria-posinset`,`onMousedown`,`onMousemove`,`data-p-selected`,`data-p-focused`,`data-p-disabled`];function QEe(e,t,n,r,i,a){var o=vr(`SpinnerIcon`),s=vr(`InputText`),c=vr(`SearchIcon`),l=vr(`InputIcon`),u=vr(`IconField`),d=vr(`CheckIcon`),f=vr(`BlankIcon`),p=vr(`VirtualScroller`),m=vr(`Portal`),h=xr(`ripple`);return k(),A(`div`,M({ref:`container`,id:e.$id,class:e.cx(`root`),onClick:t[12]||=function(){return a.onContainerClick&&a.onContainerClick.apply(a,arguments)},"data-p":a.containerDataP},e.ptmi(`root`)),[e.editable?(k(),A(`input`,M({key:0,ref:`focusInput`,name:e.name,id:e.labelId||e.inputId,type:`text`,class:[e.cx(`label`),e.inputClass,e.labelClass],style:[e.inputStyle,e.labelStyle],value:a.editableInputValue,placeholder:e.placeholder,tabindex:e.disabled?-1:e.tabindex,disabled:e.disabled,autocomplete:`off`,role:`combobox`,"aria-label":e.ariaLabel,"aria-labelledby":e.ariaLabelledby,"aria-haspopup":`listbox`,"aria-expanded":i.overlayVisible,"aria-controls":i.overlayVisible?e.$id+`_list`:void 0,"aria-activedescendant":i.focused?a.focusedOptionId:void 0,"aria-invalid":e.invalid||void 0,onFocus:t[0]||=function(){return a.onFocus&&a.onFocus.apply(a,arguments)},onBlur:t[1]||=function(){return a.onBlur&&a.onBlur.apply(a,arguments)},onKeydown:t[2]||=function(){return a.onKeyDown&&a.onKeyDown.apply(a,arguments)},onInput:t[3]||=function(){return a.onEditableInput&&a.onEditableInput.apply(a,arguments)},"data-p":a.labelDataP},e.ptm(`label`)),null,16,KEe)):(k(),A(`span`,M({key:1,ref:`focusInput`,name:e.name,id:e.labelId||e.inputId,class:[e.cx(`label`),e.inputClass,e.labelClass],style:[e.inputStyle,e.labelStyle],tabindex:e.disabled?-1:e.tabindex,role:`combobox`,"aria-label":e.ariaLabel||(a.label===`p-emptylabel`?void 0:a.label),"aria-labelledby":e.ariaLabelledby,"aria-haspopup":`listbox`,"aria-expanded":i.overlayVisible,"aria-controls":e.$id+`_list`,"aria-activedescendant":i.focused?a.focusedOptionId:void 0,"aria-invalid":e.invalid||void 0,"aria-disabled":e.disabled,onFocus:t[4]||=function(){return a.onFocus&&a.onFocus.apply(a,arguments)},onBlur:t[5]||=function(){return a.onBlur&&a.onBlur.apply(a,arguments)},onKeydown:t[6]||=function(){return a.onKeyDown&&a.onKeyDown.apply(a,arguments)},"data-p":a.labelDataP},e.ptm(`label`)),[Er(e.$slots,`value`,{value:e.d_value,placeholder:e.placeholder},function(){return[vi(E(a.label===`p-emptylabel`?`\xA0`:a.label??`empty`),1)]})],16,qEe)),a.isClearIconVisible?Er(e.$slots,`clearicon`,{key:2,class:Me(e.cx(`clearIcon`)),clearCallback:a.onClearClick},function(){return[(k(),di(br(e.clearIcon?`i`:`TimesIcon`),M({ref:`clearIcon`,class:[e.cx(`clearIcon`),e.clearIcon],onClick:a.onClearClick},e.ptm(`clearIcon`),{"data-pc-section":`clearicon`}),null,16,[`class`,`onClick`]))]}):yi(``,!0),j(`div`,M({class:e.cx(`dropdown`)},e.ptm(`dropdown`)),[e.loading?Er(e.$slots,`loadingicon`,{key:0,class:Me(e.cx(`loadingIcon`))},function(){return[e.loadingIcon?(k(),A(`span`,M({key:0,class:[e.cx(`loadingIcon`),`pi-spin`,e.loadingIcon],"aria-hidden":`true`},e.ptm(`loadingIcon`)),null,16)):(k(),di(o,M({key:1,class:e.cx(`loadingIcon`),spin:``,"aria-hidden":`true`},e.ptm(`loadingIcon`)),null,16,[`class`]))]}):Er(e.$slots,`dropdownicon`,{key:1,class:Me(e.cx(`dropdownIcon`))},function(){return[(k(),di(br(e.dropdownIcon?`span`:`ChevronDownIcon`),M({class:[e.cx(`dropdownIcon`),e.dropdownIcon],"aria-hidden":`true`,"data-p":a.dropdownIconDataP},e.ptm(`dropdownIcon`)),null,16,[`class`,`data-p`]))]})],16),hi(m,{appendTo:e.appendTo},{default:Mn(function(){return[hi(zi,M({name:`p-anchored-overlay`,onEnter:a.onOverlayEnter,onAfterEnter:a.onOverlayAfterEnter,onLeave:a.onOverlayLeave,onAfterLeave:a.onOverlayAfterLeave},e.ptm(`transition`)),{default:Mn(function(){return[i.overlayVisible?(k(),A(`div`,M({key:0,ref:a.overlayRef,class:[e.cx(`overlay`),e.panelClass,e.overlayClass],style:[e.panelStyle,e.overlayStyle],onClick:t[10]||=function(){return a.onOverlayClick&&a.onOverlayClick.apply(a,arguments)},onKeydown:t[11]||=function(){return a.onOverlayKeyDown&&a.onOverlayKeyDown.apply(a,arguments)},"data-p":a.overlayDataP},e.ptm(`overlay`)),[j(`span`,M({ref:`firstHiddenFocusableElementOnOverlay`,role:`presentation`,"aria-hidden":`true`,class:`p-hidden-accessible p-hidden-focusable`,tabindex:0,onFocus:t[7]||=function(){return a.onFirstHiddenFocus&&a.onFirstHiddenFocus.apply(a,arguments)}},e.ptm(`hiddenFirstFocusableEl`),{"data-p-hidden-accessible":!0,"data-p-hidden-focusable":!0}),null,16),Er(e.$slots,`header`,{value:e.d_value,options:a.visibleOptions}),e.filter?(k(),A(`div`,M({key:0,class:e.cx(`header`)},e.ptm(`header`)),[hi(u,{unstyled:e.unstyled,pt:e.ptm(`pcFilterContainer`)},{default:Mn(function(){return[hi(s,{ref:`filterInput`,type:`text`,value:i.filterValue,onVnodeMounted:a.onFilterUpdated,onVnodeUpdated:a.onFilterUpdated,class:Me(e.cx(`pcFilter`)),placeholder:e.filterPlaceholder,variant:e.variant,unstyled:e.unstyled,role:`searchbox`,autocomplete:`off`,"aria-owns":e.$id+`_list`,"aria-activedescendant":a.focusedOptionId,onKeydown:a.onFilterKeyDown,onBlur:a.onFilterBlur,onInput:a.onFilterChange,pt:e.ptm(`pcFilter`),formControl:{novalidate:!0}},null,8,[`value`,`onVnodeMounted`,`onVnodeUpdated`,`class`,`placeholder`,`variant`,`unstyled`,`aria-owns`,`aria-activedescendant`,`onKeydown`,`onBlur`,`onInput`,`pt`]),hi(l,{unstyled:e.unstyled,pt:e.ptm(`pcFilterIconContainer`)},{default:Mn(function(){return[Er(e.$slots,`filtericon`,{},function(){return[e.filterIcon?(k(),A(`span`,M({key:0,class:e.filterIcon},e.ptm(`filterIcon`)),null,16)):(k(),di(c,Ne(M({key:1},e.ptm(`filterIcon`))),null,16))]})]}),_:3},8,[`unstyled`,`pt`])]}),_:3},8,[`unstyled`,`pt`]),j(`span`,M({role:`status`,"aria-live":`polite`,class:`p-hidden-accessible`},e.ptm(`hiddenFilterResult`),{"data-p-hidden-accessible":!0}),E(a.filterResultMessageText),17)],16)):yi(``,!0),j(`div`,M({class:e.cx(`listContainer`),style:{"max-height":a.virtualScrollerDisabled?e.scrollHeight:``}},e.ptm(`listContainer`)),[hi(p,M({ref:a.virtualScrollerRef},e.virtualScrollerOptions,{items:a.visibleOptions,style:{height:e.scrollHeight},tabindex:-1,disabled:a.virtualScrollerDisabled,pt:e.ptm(`virtualScroller`)}),Tr({content:Mn(function(n){var r=n.styleClass,o=n.contentRef,s=n.items,c=n.getItemOptions,l=n.contentStyle,u=n.itemSize;return[j(`ul`,M({ref:function(e){return a.listRef(e,o)},id:e.$id+`_list`,class:[e.cx(`list`),r],style:l,role:`listbox`},e.ptm(`list`)),[(k(!0),A(ri,null,wr(s,function(n,r){return k(),A(ri,{key:a.getOptionRenderKey(n,a.getOptionIndex(r,c))},[a.isOptionGroup(n)?(k(),A(`li`,M({key:0,id:e.$id+`_`+a.getOptionIndex(r,c),style:{height:u?u+`px`:void 0},class:e.cx(`optionGroup`),role:`option`},{ref_for:!0},e.ptm(`optionGroup`)),[Er(e.$slots,`optiongroup`,{option:n.optionGroup,index:a.getOptionIndex(r,c)},function(){return[j(`span`,M({class:e.cx(`optionGroupLabel`)},{ref_for:!0},e.ptm(`optionGroupLabel`)),E(a.getOptionGroupLabel(n.optionGroup)),17)]})],16,XEe)):Nn((k(),A(`li`,M({key:1,id:e.$id+`_`+a.getOptionIndex(r,c),class:e.cx(`option`,{option:n,focusedOption:a.getOptionIndex(r,c)}),style:{height:u?u+`px`:void 0},role:`option`,"aria-label":a.getOptionLabel(n),"aria-selected":a.isSelected(n),"aria-disabled":a.isOptionDisabled(n),"aria-setsize":a.ariaSetSize,"aria-posinset":a.getAriaPosInset(a.getOptionIndex(r,c)),onMousedown:function(e){return a.onOptionSelect(e,n)},onMousemove:function(e){return a.onOptionMouseMove(e,a.getOptionIndex(r,c))},onClick:t[8]||=Pa(function(){},[`stop`]),"data-p-selected":!e.checkmark&&a.isSelected(n),"data-p-focused":i.focusedOptionIndex===a.getOptionIndex(r,c),"data-p-disabled":a.isOptionDisabled(n)},{ref_for:!0},a.getPTItemOptions(n,c,r,`option`)),[e.checkmark?(k(),A(ri,{key:0},[a.isSelected(n)?(k(),di(d,M({key:0,class:e.cx(`optionCheckIcon`)},{ref_for:!0},e.ptm(`optionCheckIcon`)),null,16,[`class`])):(k(),di(f,M({key:1,class:e.cx(`optionBlankIcon`)},{ref_for:!0},e.ptm(`optionBlankIcon`)),null,16,[`class`]))],64)):yi(``,!0),Er(e.$slots,`option`,{option:n,selected:a.isSelected(n),index:a.getOptionIndex(r,c)},function(){return[j(`span`,M({class:e.cx(`optionLabel`)},{ref_for:!0},e.ptm(`optionLabel`)),E(a.getOptionLabel(n)),17)]})],16,ZEe)),[[h]])],64)}),128)),i.filterValue&&(!s||s&&s.length===0)?(k(),A(`li`,M({key:0,class:e.cx(`emptyMessage`),role:`option`},e.ptm(`emptyMessage`),{"data-p-hidden-accessible":!0}),[Er(e.$slots,`emptyfilter`,{},function(){return[vi(E(a.emptyFilterMessageText),1)]})],16)):!e.options||e.options&&e.options.length===0?(k(),A(`li`,M({key:1,class:e.cx(`emptyMessage`),role:`option`},e.ptm(`emptyMessage`),{"data-p-hidden-accessible":!0}),[Er(e.$slots,`empty`,{},function(){return[vi(E(a.emptyMessageText),1)]})],16)):yi(``,!0)],16,YEe)]}),_:2},[e.$slots.loader?{name:`loader`,fn:Mn(function(t){var n=t.options;return[Er(e.$slots,`loader`,{options:n})]}),key:`0`}:void 0]),1040,[`items`,`style`,`disabled`,`pt`])],16),Er(e.$slots,`footer`,{value:e.d_value,options:a.visibleOptions}),!e.options||e.options&&e.options.length===0?(k(),A(`span`,M({key:1,role:`status`,"aria-live":`polite`,class:`p-hidden-accessible`},e.ptm(`hiddenEmptyMessage`),{"data-p-hidden-accessible":!0}),E(a.emptyMessageText),17)):yi(``,!0),j(`span`,M({role:`status`,"aria-live":`polite`,class:`p-hidden-accessible`},e.ptm(`hiddenSelectedMessage`),{"data-p-hidden-accessible":!0}),E(a.selectedMessageText),17),j(`span`,M({ref:`lastHiddenFocusableElementOnOverlay`,role:`presentation`,"aria-hidden":`true`,class:`p-hidden-accessible p-hidden-focusable`,tabindex:0,onFocus:t[9]||=function(){return a.onLastHiddenFocus&&a.onLastHiddenFocus.apply(a,arguments)}},e.ptm(`hiddenLastFocusableEl`),{"data-p-hidden-accessible":!0,"data-p-hidden-focusable":!0}),null,16)],16,JEe)):yi(``,!0)]}),_:3},16,[`onEnter`,`onAfterEnter`,`onLeave`,`onAfterLeave`])]}),_:3},8,[`appendTo`])],16,GEe)}ly.render=QEe;const uy=ro(`scenario`,()=>{let e=D([]),t=D(!1);async function n(){t.value=!0;try{e.value=await yp.scenario.list.query()}catch{e.value=[]}finally{t.value=!1}}async function r(t){let n=await yp.scenario.create.mutate(t);return e.value=[...e.value,n],n}async function i(t){let n=e.value.find(e=>e.id===t);if(!n)throw Error(`Scenario not found`);return r({name:`${n.name} (copie)`,description:n.description,leaderId:n.leaderId,groups:n.groups,nodes:n.nodes,traversalMode:n.traversalMode})}async function a(t,n){let r=await yp.scenario.update.mutate({id:t,...n});return e.value=e.value.map(e=>e.id===t?r:e),r}async function o(t){await yp.scenario.delete.mutate({id:t}),e.value=e.value.filter(e=>e.id!==t)}return{scenarios:e,loading:t,fetchScenarios:n,createScenario:r,duplicateScenario:i,updateScenario:a,deleteScenario:o}}),dy=ro(`agent`,()=>{let e=D([]),t=D(!1),n=D(null),r=null,i=0,a=null,o=ji(()=>e.value.length),s=ji(()=>e.value.filter(e=>e.status.connected)),c=ji(()=>t=>e.value.find(e=>e.config.id===t)??null);async function l(){t.value=!0,n.value=null;try{e.value=await yp.agent.list.query()}catch(e){n.value=Vv(e)??`Failed to fetch agents`}finally{t.value=!1}}async function u(e,t,r){n.value=null;try{let n=await yp.agent.register.mutate({name:e,url:t,passphrase:r});return await l(),n}catch(e){return n.value=Vv(e)??`Failed to register agent`,null}}async function d(t,r){n.value=null;try{let n=await yp.agent.update.mutate({id:t,...r}),i=e.value.findIndex(e=>e.config.id===t);if(i>=0){let t=[...e.value];t[i]={...t[i],config:{...t[i].config,...n}},e.value=t}return n}catch(e){return n.value=Vv(e)??`Failed to update agent`,null}}async function f(t){n.value=null;try{return await yp.agent.remove.mutate({id:t}),e.value=e.value.filter(e=>e.config.id!==t),!0}catch(e){return n.value=Vv(e)??`Failed to remove agent`,!1}}async function p(t,r){n.value=null;try{let n=await yp.agent.update.mutate({id:t,passthroughEnv:r}),i=e.value.findIndex(e=>e.config.id===t);if(i>=0){let t=[...e.value];t[i]={...t[i],config:{...t[i].config,passthroughEnv:n.passthroughEnv}},e.value=t}return n}catch(e){return n.value=Vv(e)??`Failed to update passthrough env`,null}}function m(){if(i>=5){console.warn(`[agent.store] Max status subscription retries (5) reached`);return}let e=Mv*2**i+Math.random()*300;i++,a=setTimeout(()=>{a=null,h()},e)}function h(){r||=yp.agent.onStatus.subscribe(void 0,{onData(t){i=0;let n=e.value.findIndex(e=>e.config.id===t.agentId);if(n>=0){let r=[...e.value];r[n]={...r[n],status:t.status},e.value=r}},onError(e){r=null,console.error(`[agent.store] Status subscription error:`,e),m()}})}function g(){a&&=(clearTimeout(a),null),r&&=(r.unsubscribe(),null),i=0}return{agents:e,loading:t,error:n,agentCount:o,connectedAgents:s,getById:c,fetchAll:l,register:u,update:d,remove:f,updatePassthroughEnv:p,subscribeStatus:h,unsubscribeStatus:g}});var $Ee={key:0,class:`scenario-selector__agent-section`},eDe={class:`scenario-selector__agent-label`},tDe={class:`scenario-selector__ai-section`},nDe={class:`scenario-selector__section-header`},rDe={class:`scenario-selector__section-title`},iDe={class:`scenario-selector__ai-grid`},aDe=[`onClick`],oDe={class:`scenario-selector__ai-card-name`},sDe={key:0,class:`scenario-selector__ai-card-model-text`},cDe={class:`scenario-selector__ai-card-name`},lDe={class:`scenario-selector__ai-card-name`},uDe={key:2,class:`scenario-selector__ai-empty`},dDe={class:`scenario-selector__scenarios-section`},fDe={class:`scenario-selector__section-header`},pDe={class:`scenario-selector__section-title`},mDe={key:0,class:`scenario-selector__loading`},hDe={key:1,class:`scenario-selector__empty`},gDe={key:2,class:`scenario-selector__grid`},_De=[`onClick`],vDe={class:`scenario-selector__card-name`},yDe={key:0,class:`scenario-selector__card-desc`},bDe={class:`scenario-selector__card-meta`},xDe={key:0,style:{"margin-left":`auto`,opacity:`0.6`,"font-size":`0.75rem`}},SDe=Vd(Zn({__name:`ScenarioSelector`,props:{compact:{type:Boolean,default:!1}},emits:[`selectScenario`,`skip`],setup(e,{emit:t}){let n=t,r=wu(),i=uy(),{scenarios:a,loading:o}=io(i),{close:s}=Bv(),{t:c}=Hc(),l=Gv(),{providers:u,selectedProviderId:d,claudeCodeAvailable:f,codexAvailable:p}=io(l),m=dy(),{connectedAgents:h}=io(m),{contextServiceId:g}=Bv(),_=Hv(),v=D(g.value?_.getById(g.value)?.effectiveAgentId??void 0:void 0),y=ji(()=>{let e=[{label:c(`scenarioSelector.defaultAgent`),value:void 0}];for(let t of h.value)e.push({label:t.config.name||t.config.id,value:t.config.id});return e});function b(){s(),r.push({name:`settings`,query:{section:`scenario`}})}function x(){s(),r.push({name:`settings`,query:{section:`ai`}})}return Ln(v,e=>{l.checkCliAvailability(e)}),ur(()=>{i.fetchScenarios(),l.fetchProviders(),l.checkCliAvailability(),m.fetchAll()}),(t,r)=>(k(),A(`div`,{class:Me([`scenario-selector`,{"scenario-selector--compact":e.compact}])},[O(h).length>1?(k(),A(`div`,$Ee,[j(`label`,eDe,E(O(c)(`scenarioSelector.agentLabel`)),1),hi(O(ly),{modelValue:v.value,"onUpdate:modelValue":r[0]||=e=>v.value=e,options:y.value,"option-label":`label`,"option-value":`value`,class:`scenario-selector__agent-select`},null,8,[`modelValue`,`options`])])):yi(``,!0),j(`div`,tDe,[j(`div`,nDe,[j(`span`,rDe,E(O(c)(`scenarioSelector.aiSection`)),1),hi(O(Sd),{label:O(c)(`scenarioSelector.manageProviders`),icon:`pi pi-cog`,size:`small`,severity:`secondary`,text:``,onClick:x},null,8,[`label`])]),j(`div`,iDe,[(k(!0),A(ri,null,wr(O(u),e=>(k(),A(`div`,{key:e.id,class:`scenario-selector__ai-card`,onClick:t=>n(`skip`,`keep`,e.id,v.value)},[r[3]||=j(`span`,{class:`scenario-selector__ai-card-badge scenario-selector__ai-card-badge--cloud`},[j(`i`,{class:`pi pi-cloud`})],-1),j(`div`,oDe,E(e.label),1),e.model?(k(),A(`span`,sDe,E(e.model),1)):yi(``,!0)],8,aDe))),128)),O(f)?(k(),A(`div`,{key:0,class:`scenario-selector__ai-card`,onClick:r[1]||=e=>n(`skip`,`claude-code`,null,v.value)},[r[4]||=j(`span`,{class:`scenario-selector__ai-card-badge scenario-selector__ai-card-badge--cli`},[j(`i`,{class:`pi pi-desktop`})],-1),j(`div`,cDe,E(O(c)(`aiChatPage.runner.claudeCode`)),1)])):yi(``,!0),O(p)?(k(),A(`div`,{key:1,class:`scenario-selector__ai-card`,onClick:r[2]||=e=>n(`skip`,`codex`,null,v.value)},[r[5]||=j(`span`,{class:`scenario-selector__ai-card-badge scenario-selector__ai-card-badge--cli`},[j(`i`,{class:`pi pi-desktop`})],-1),j(`div`,lDe,E(O(c)(`aiChatPage.runner.codex`)),1)])):yi(``,!0),O(u).length===0&&!O(f)&&!O(p)?(k(),A(`div`,uDe,[j(`p`,null,E(O(c)(`scenarioSelector.noProviders`)),1),hi(O(Sd),{label:O(c)(`scenarioSelector.configureProvider`),icon:`pi pi-plus`,size:`small`,onClick:x},null,8,[`label`])])):yi(``,!0)])]),j(`div`,dDe,[j(`div`,fDe,[j(`span`,pDe,E(O(c)(`scenarioSelector.scenariosSection`)),1),hi(O(Sd),{label:O(c)(`scenarioSelector.manageScenarios`),icon:`pi pi-cog`,size:`small`,severity:`secondary`,text:``,onClick:b},null,8,[`label`])]),O(o)?(k(),A(`div`,mDe,[...r[6]||=[j(`i`,{class:`pi pi-spin pi-spinner`},null,-1)]])):O(a).length===0?(k(),A(`div`,hDe,[j(`p`,null,E(O(c)(`scenarioSelector.empty`)),1),hi(O(Sd),{label:O(c)(`scenarioSelector.create`),icon:`pi pi-building`,onClick:b},null,8,[`label`])])):(k(),A(`div`,gDe,[(k(!0),A(ri,null,wr(O(a),e=>(k(),A(`div`,{key:e.id,class:`scenario-selector__card`,onClick:t=>n(`selectScenario`,e.id,`keep`,O(d),v.value)},[j(`div`,vDe,[j(`i`,{class:Me(`pi ${e.icon||`pi-building`}`)},null,2),vi(` `+E(e.name),1)]),e.description?(k(),A(`div`,yDe,E(e.description),1)):yi(``,!0),j(`div`,bDe,[r[8]||=j(`i`,{class:`pi pi-users`},null,-1),vi(` `+E(e.nodes.length)+` `+E(O(c)(`scenarioSelector.nodes`))+` `,1),e.isPublished?(k(),A(`span`,xDe,[r[7]||=j(`i`,{class:`pi pi-globe`},null,-1),vi(` `+E(O(c)(`scenarioSelector.published`)),1)])):yi(``,!0)])],8,_De))),128))]))])],2))}}),[[`__scopeId`,`data-v-b20c9755`]]),fy={name:`ChevronRightIcon`,extends:Hu};function CDe(e){return DDe(e)||EDe(e)||TDe(e)||wDe()}function wDe(){throw TypeError(`Invalid attempt to spread non-iterable instance.
|
|
2072
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function REe(e,t){if(e){if(typeof e==`string`)return sy(e,t);var n={}.toString.call(e).slice(8,-1);return n===`Object`&&e.constructor&&(n=e.constructor.name),n===`Map`||n===`Set`?Array.from(e):n===`Arguments`||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?sy(e,t):void 0}}function zEe(e){if(typeof Symbol<`u`&&e[Symbol.iterator]!=null||e[`@@iterator`]!=null)return Array.from(e)}function BEe(e){if(Array.isArray(e))return sy(e)}function sy(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function VEe(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function HEe(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]==null?{}:arguments[t];t%2?VEe(Object(n),!0).forEach(function(t){cy(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):VEe(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function cy(e,t,n){return(t=UEe(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function UEe(e){var t=WEe(e,`string`);return oy(t)==`symbol`?t:t+``}function WEe(e,t){if(oy(e)!=`object`||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(oy(r)!=`object`)return r;throw TypeError(`@@toPrimitive must return a primitive value.`)}return(t===`string`?String:Number)(e)}var ly={name:`Select`,extends:FEe,inheritAttrs:!1,emits:[`change`,`focus`,`blur`,`before-show`,`before-hide`,`show`,`hide`,`filter`],outsideClickListener:null,scrollHandler:null,resizeListener:null,labelClickListener:null,matchMediaOrientationListener:null,overlay:null,list:null,virtualScroller:null,searchTimeout:null,searchValue:null,isModelValueChanged:!1,data:function(){return{clicked:!1,focused:!1,focusedOptionIndex:-1,filterValue:null,overlayVisible:!1,queryOrientation:null}},watch:{modelValue:function(){this.isModelValueChanged=!0},options:function(){this.autoUpdateModel()}},mounted:function(){this.autoUpdateModel(),this.bindLabelClickListener(),this.bindMatchMediaOrientationListener()},updated:function(){this.overlayVisible&&this.isModelValueChanged&&this.scrollInView(this.findSelectedOptionIndex()),this.isModelValueChanged=!1},beforeUnmount:function(){this.unbindOutsideClickListener(),this.unbindResizeListener(),this.unbindLabelClickListener(),this.unbindMatchMediaOrientationListener(),this.scrollHandler&&=(this.scrollHandler.destroy(),null),this.overlay&&=(os.clear(this.overlay),null)},methods:{getOptionIndex:function(e,t){return this.virtualScrollerDisabled?e:t&&t(e).index},getOptionLabel:function(e){return this.optionLabel?fo(e,this.optionLabel):e},getOptionValue:function(e){return this.optionValue?fo(e,this.optionValue):e},getOptionRenderKey:function(e,t){return(this.dataKey?fo(e,this.dataKey):this.getOptionLabel(e))+`_`+t},getPTItemOptions:function(e,t,n,r){return this.ptm(r,{context:{option:e,index:n,selected:this.isSelected(e),focused:this.focusedOptionIndex===this.getOptionIndex(n,t),disabled:this.isOptionDisabled(e)}})},isOptionDisabled:function(e){return this.optionDisabled?fo(e,this.optionDisabled):!1},isOptionGroup:function(e){return this.optionGroupLabel&&e.optionGroup&&e.group},getOptionGroupLabel:function(e){return fo(e,this.optionGroupLabel)},getOptionGroupChildren:function(e){return fo(e,this.optionGroupChildren)},getAriaPosInset:function(e){var t=this;return(this.optionGroupLabel?e-this.visibleOptions.slice(0,e).filter(function(e){return t.isOptionGroup(e)}).length:e)+1},show:function(e){this.$emit(`before-show`),this.overlayVisible=!0,this.focusedOptionIndex=this.focusedOptionIndex===-1?this.autoOptionFocus?this.findFirstFocusedOptionIndex():this.editable?-1:this.findSelectedOptionIndex():this.focusedOptionIndex,e&&Go(this.$refs.focusInput)},hide:function(e){var t=this,n=function(){t.$emit(`before-hide`),t.overlayVisible=!1,t.clicked=!1,t.focusedOptionIndex=-1,t.searchValue=``,t.resetFilterOnHide&&(t.filterValue=null),e&&Go(t.$refs.focusInput)};setTimeout(function(){n()},0)},onFocus:function(e){this.disabled||(this.focused=!0,this.overlayVisible&&(this.focusedOptionIndex=this.focusedOptionIndex===-1?this.autoOptionFocus?this.findFirstFocusedOptionIndex():this.editable?-1:this.findSelectedOptionIndex():this.focusedOptionIndex,this.scrollInView(this.focusedOptionIndex)),this.$emit(`focus`,e))},onBlur:function(e){var t=this;setTimeout(function(){var n,r;t.focused=!1,t.focusedOptionIndex=-1,t.searchValue=``,t.$emit(`blur`,e),(n=(r=t.formField).onBlur)==null||n.call(r,e)},100)},onKeyDown:function(e){if(this.disabled){e.preventDefault();return}if(uie())switch(e.code){case`Backspace`:this.onBackspaceKey(e,this.editable);break;case`Enter`:case`NumpadDecimal`:this.onEnterKey(e);break;default:e.preventDefault();return}var t=e.metaKey||e.ctrlKey;switch(e.code){case`ArrowDown`:this.onArrowDownKey(e);break;case`ArrowUp`:this.onArrowUpKey(e,this.editable);break;case`ArrowLeft`:case`ArrowRight`:this.onArrowLeftKey(e,this.editable);break;case`Home`:this.onHomeKey(e,this.editable);break;case`End`:this.onEndKey(e,this.editable);break;case`PageDown`:this.onPageDownKey(e);break;case`PageUp`:this.onPageUpKey(e);break;case`Space`:this.onSpaceKey(e,this.editable);break;case`Enter`:case`NumpadEnter`:this.onEnterKey(e);break;case`Escape`:this.onEscapeKey(e);break;case`Tab`:this.onTabKey(e);break;case`Backspace`:this.onBackspaceKey(e,this.editable);break;case`ShiftLeft`:case`ShiftRight`:break;default:!t&&Co(e.key)&&(!this.overlayVisible&&this.show(),!this.editable&&this.searchOptions(e,e.key),this.filter&&(this.filterValue=e.key));break}this.clicked=!1},onEditableInput:function(e){var t=e.target.value;this.searchValue=``,!this.searchOptions(e,t)&&(this.focusedOptionIndex=-1),this.updateModel(e,t),!this.overlayVisible&&uo(t)&&this.show()},onContainerClick:function(e){this.disabled||this.loading||e.target.tagName===`INPUT`||e.target.getAttribute(`data-pc-section`)===`clearicon`||e.target.closest(`[data-pc-section="clearicon"]`)||((!this.overlay||!this.overlay.contains(e.target))&&(this.overlayVisible?this.hide(!0):this.show(!0)),this.clicked=!0)},onClearClick:function(e){this.updateModel(e,null),this.resetFilterOnClear&&(this.filterValue=null)},onFirstHiddenFocus:function(e){Go(e.relatedTarget===this.$refs.focusInput?Jo(this.overlay,`:not([data-p-hidden-focusable="true"])`):this.$refs.focusInput)},onLastHiddenFocus:function(e){Go(e.relatedTarget===this.$refs.focusInput?Xo(this.overlay,`:not([data-p-hidden-focusable="true"])`):this.$refs.focusInput)},onOptionSelect:function(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0,r=this.getOptionValue(t);this.updateModel(e,r),n&&this.hide(!0)},onOptionMouseMove:function(e,t){this.focusOnHover&&this.changeFocusedOptionIndex(e,t)},onFilterChange:function(e){var t=e.target.value;this.filterValue=t,this.focusedOptionIndex=-1,this.$emit(`filter`,{originalEvent:e,value:t}),!this.virtualScrollerDisabled&&this.virtualScroller.scrollToIndex(0)},onFilterKeyDown:function(e){if(!e.isComposing)switch(e.code){case`ArrowDown`:this.onArrowDownKey(e);break;case`ArrowUp`:this.onArrowUpKey(e,!0);break;case`ArrowLeft`:case`ArrowRight`:this.onArrowLeftKey(e,!0);break;case`Home`:this.onHomeKey(e,!0);break;case`End`:this.onEndKey(e,!0);break;case`Enter`:case`NumpadEnter`:this.onEnterKey(e);break;case`Escape`:this.onEscapeKey(e);break;case`Tab`:this.onTabKey(e);break}},onFilterBlur:function(){this.focusedOptionIndex=-1},onFilterUpdated:function(){this.overlayVisible&&this.alignOverlay()},onOverlayClick:function(e){ny.emit(`overlay-click`,{originalEvent:e,target:this.$el})},onOverlayKeyDown:function(e){switch(e.code){case`Escape`:this.onEscapeKey(e);break}},onArrowDownKey:function(e){if(!this.overlayVisible)this.show(),this.editable&&this.changeFocusedOptionIndex(e,this.findSelectedOptionIndex());else{var t=this.focusedOptionIndex===-1?this.clicked?this.findFirstOptionIndex():this.findFirstFocusedOptionIndex():this.findNextOptionIndex(this.focusedOptionIndex);this.changeFocusedOptionIndex(e,t)}e.preventDefault()},onArrowUpKey:function(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;if(e.altKey&&!t)this.focusedOptionIndex!==-1&&this.onOptionSelect(e,this.visibleOptions[this.focusedOptionIndex]),this.overlayVisible&&this.hide(),e.preventDefault();else{var n=this.focusedOptionIndex===-1?this.clicked?this.findLastOptionIndex():this.findLastFocusedOptionIndex():this.findPrevOptionIndex(this.focusedOptionIndex);this.changeFocusedOptionIndex(e,n),!this.overlayVisible&&this.show(),e.preventDefault()}},onArrowLeftKey:function(e){arguments.length>1&&arguments[1]!==void 0&&arguments[1]&&(this.focusedOptionIndex=-1)},onHomeKey:function(e){if(arguments.length>1&&arguments[1]!==void 0&&arguments[1]){var t=e.currentTarget;e.shiftKey?t.setSelectionRange(0,e.target.selectionStart):(t.setSelectionRange(0,0),this.focusedOptionIndex=-1)}else this.changeFocusedOptionIndex(e,this.findFirstOptionIndex()),!this.overlayVisible&&this.show();e.preventDefault()},onEndKey:function(e){if(arguments.length>1&&arguments[1]!==void 0&&arguments[1]){var t=e.currentTarget;if(e.shiftKey)t.setSelectionRange(e.target.selectionStart,t.value.length);else{var n=t.value.length;t.setSelectionRange(n,n),this.focusedOptionIndex=-1}}else this.changeFocusedOptionIndex(e,this.findLastOptionIndex()),!this.overlayVisible&&this.show();e.preventDefault()},onPageUpKey:function(e){this.scrollInView(0),e.preventDefault()},onPageDownKey:function(e){this.scrollInView(this.visibleOptions.length-1),e.preventDefault()},onEnterKey:function(e){this.overlayVisible?(this.focusedOptionIndex!==-1&&this.onOptionSelect(e,this.visibleOptions[this.focusedOptionIndex]),this.hide(!0)):(this.focusedOptionIndex=-1,this.onArrowDownKey(e)),e.preventDefault()},onSpaceKey:function(e){!(arguments.length>1&&arguments[1]!==void 0&&arguments[1])&&this.onEnterKey(e)},onEscapeKey:function(e){this.overlayVisible&&this.hide(!0),e.preventDefault(),e.stopPropagation()},onTabKey:function(e){arguments.length>1&&arguments[1]!==void 0&&arguments[1]||(this.overlayVisible&&this.hasFocusableElements()?(Go(this.$refs.firstHiddenFocusableElementOnOverlay),e.preventDefault()):(this.focusedOptionIndex!==-1&&this.onOptionSelect(e,this.visibleOptions[this.focusedOptionIndex]),this.overlayVisible&&this.hide(this.filter)))},onBackspaceKey:function(e){arguments.length>1&&arguments[1]!==void 0&&arguments[1]&&!this.overlayVisible&&this.show()},onOverlayEnter:function(e){var t=this;os.set(`overlay`,e,this.$primevue.config.zIndex.overlay),Ro(e,{position:`absolute`,top:`0`}),this.alignOverlay(),this.scrollInView(),this.$attrSelector&&e.setAttribute(this.$attrSelector,``),setTimeout(function(){t.autoFilterFocus&&t.filter&&Go(t.$refs.filterInput.$el),t.autoUpdateModel()},1)},onOverlayAfterEnter:function(){this.bindOutsideClickListener(),this.bindScrollListener(),this.bindResizeListener(),this.$emit(`show`)},onOverlayLeave:function(){var e=this;this.unbindOutsideClickListener(),this.unbindScrollListener(),this.unbindResizeListener(),this.autoFilterFocus&&this.filter&&!this.editable&&this.$nextTick(function(){e.$refs.filterInput&&Go(e.$refs.filterInput.$el)}),this.$emit(`hide`),this.overlay=null},onOverlayAfterLeave:function(e){os.clear(e)},alignOverlay:function(){this.appendTo===`self`?Xre(this.overlay,this.$el):this.overlay&&(this.overlay.style.minWidth=zo(this.$el)+`px`,Lo(this.overlay,this.$el))},bindOutsideClickListener:function(){var e=this;this.outsideClickListener||(this.outsideClickListener=function(t){var n=t.composedPath();e.overlayVisible&&e.overlay&&!n.includes(e.$el)&&!n.includes(e.overlay)&&e.hide()},document.addEventListener(`click`,this.outsideClickListener,!0))},unbindOutsideClickListener:function(){this.outsideClickListener&&=(document.removeEventListener(`click`,this.outsideClickListener,!0),null)},bindScrollListener:function(){var e=this;this.scrollHandler||=new el(this.$refs.container,function(){e.overlayVisible&&e.hide()}),this.scrollHandler.bindScrollListener()},unbindScrollListener:function(){this.scrollHandler&&this.scrollHandler.unbindScrollListener()},bindResizeListener:function(){var e=this;this.resizeListener||(this.resizeListener=function(){e.overlayVisible&&!ns()&&e.hide()},window.addEventListener(`resize`,this.resizeListener))},unbindResizeListener:function(){this.resizeListener&&=(window.removeEventListener(`resize`,this.resizeListener),null)},bindLabelClickListener:function(){var e=this;if(!this.editable&&!this.labelClickListener){var t=document.querySelector(`label[for="${this.labelId}"]`);t&&ts(t)&&(this.labelClickListener=function(){Go(e.$refs.focusInput)},t.addEventListener(`click`,this.labelClickListener))}},unbindLabelClickListener:function(){if(this.labelClickListener){var e=document.querySelector(`label[for="${this.labelId}"]`);e&&ts(e)&&e.removeEventListener(`click`,this.labelClickListener)}},bindMatchMediaOrientationListener:function(){var e=this;this.matchMediaOrientationListener||(this.queryOrientation=matchMedia(`(orientation: portrait)`),this.matchMediaOrientationListener=function(){e.alignOverlay()},this.queryOrientation.addEventListener(`change`,this.matchMediaOrientationListener))},unbindMatchMediaOrientationListener:function(){this.matchMediaOrientationListener&&=(this.queryOrientation.removeEventListener(`change`,this.matchMediaOrientationListener),this.queryOrientation=null,null)},hasFocusableElements:function(){return qo(this.overlay,`:not([data-p-hidden-focusable="true"])`).length>0},isOptionExactMatched:function(e){return this.isValidOption(e)&&typeof this.getOptionLabel(e)==`string`&&this.getOptionLabel(e)?.toLocaleLowerCase(this.filterLocale)==this.searchValue.toLocaleLowerCase(this.filterLocale)},isOptionStartsWith:function(e){return this.isValidOption(e)&&typeof this.getOptionLabel(e)==`string`&&this.getOptionLabel(e)?.toLocaleLowerCase(this.filterLocale).startsWith(this.searchValue.toLocaleLowerCase(this.filterLocale))},isValidOption:function(e){return uo(e)&&!(this.isOptionDisabled(e)||this.isOptionGroup(e))},isValidSelectedOption:function(e){return this.isValidOption(e)&&this.isSelected(e)},isSelected:function(e){return po(this.d_value,this.getOptionValue(e),this.equalityKey)},findFirstOptionIndex:function(){var e=this;return this.visibleOptions.findIndex(function(t){return e.isValidOption(t)})},findLastOptionIndex:function(){var e=this;return _o(this.visibleOptions,function(t){return e.isValidOption(t)})},findNextOptionIndex:function(e){var t=this,n=e<this.visibleOptions.length-1?this.visibleOptions.slice(e+1).findIndex(function(e){return t.isValidOption(e)}):-1;return n>-1?n+e+1:e},findPrevOptionIndex:function(e){var t=this,n=e>0?_o(this.visibleOptions.slice(0,e),function(e){return t.isValidOption(e)}):-1;return n>-1?n:e},findSelectedOptionIndex:function(){var e=this;return this.visibleOptions.findIndex(function(t){return e.isValidSelectedOption(t)})},findFirstFocusedOptionIndex:function(){var e=this.findSelectedOptionIndex();return e<0?this.findFirstOptionIndex():e},findLastFocusedOptionIndex:function(){var e=this.findSelectedOptionIndex();return e<0?this.findLastOptionIndex():e},searchOptions:function(e,t){var n=this;this.searchValue=(this.searchValue||``)+t;var r=-1,i=!1;return uo(this.searchValue)&&(r=this.visibleOptions.findIndex(function(e){return n.isOptionExactMatched(e)}),r===-1&&(r=this.visibleOptions.findIndex(function(e){return n.isOptionStartsWith(e)})),r!==-1&&(i=!0),r===-1&&this.focusedOptionIndex===-1&&(r=this.findFirstFocusedOptionIndex()),r!==-1&&this.changeFocusedOptionIndex(e,r)),this.searchTimeout&&clearTimeout(this.searchTimeout),this.searchTimeout=setTimeout(function(){n.searchValue=``,n.searchTimeout=null},500),i},changeFocusedOptionIndex:function(e,t){this.focusedOptionIndex!==t&&(this.focusedOptionIndex=t,this.scrollInView(),this.selectOnFocus&&this.onOptionSelect(e,this.visibleOptions[t],!1))},scrollInView:function(){var e=this,t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:-1;this.$nextTick(function(){var n=t===-1?e.focusedOptionId:`${e.$id}_${t}`,r=Wo(e.list,`li[id="${n}"]`);r?r.scrollIntoView&&r.scrollIntoView({block:`nearest`,inline:`nearest`}):e.virtualScrollerDisabled||e.virtualScroller&&e.virtualScroller.scrollToIndex(t===-1?e.focusedOptionIndex:t)})},autoUpdateModel:function(){this.autoOptionFocus&&(this.focusedOptionIndex=this.findFirstFocusedOptionIndex()),this.selectOnFocus&&this.autoOptionFocus&&!this.$filled&&this.onOptionSelect(null,this.visibleOptions[this.focusedOptionIndex],!1)},updateModel:function(e,t){this.writeValue(t,e),this.$emit(`change`,{originalEvent:e,value:t})},flatOptions:function(e){var t=this;return(e||[]).reduce(function(e,n,r){e.push({optionGroup:n,group:!0,index:r});var i=t.getOptionGroupChildren(n);return i&&i.forEach(function(t){return e.push(t)}),e},[])},overlayRef:function(e){this.overlay=e},listRef:function(e,t){this.list=e,t&&t(e)},virtualScrollerRef:function(e){this.virtualScroller=e}},computed:{visibleOptions:function(){var e=this,t=this.optionGroupLabel?this.flatOptions(this.options):this.options||[];if(this.filterValue){var n=Wie.filter(t,this.searchFields,this.filterValue,this.filterMatchMode,this.filterLocale);if(this.optionGroupLabel){var r=this.options||[],i=[];return r.forEach(function(t){var r=e.getOptionGroupChildren(t).filter(function(e){return n.includes(e)});r.length>0&&i.push(HEe(HEe({},t),{},cy({},typeof e.optionGroupChildren==`string`?e.optionGroupChildren:`items`,IEe(r))))}),this.flatOptions(i)}return n}return t},hasSelectedOption:function(){return this.$filled},label:function(){var e=this.findSelectedOptionIndex();return e===-1?this.placeholder||`p-emptylabel`:this.getOptionLabel(this.visibleOptions[e])},editableInputValue:function(){var e=this.findSelectedOptionIndex();return e===-1?this.d_value||``:this.getOptionLabel(this.visibleOptions[e])},equalityKey:function(){return this.optionValue?null:this.dataKey},searchFields:function(){return this.filterFields||[this.optionLabel]},filterResultMessageText:function(){return uo(this.visibleOptions)?this.filterMessageText.replaceAll(`{0}`,this.visibleOptions.length):this.emptyFilterMessageText},filterMessageText:function(){return this.filterMessage||this.$primevue.config.locale.searchMessage||``},emptyFilterMessageText:function(){return this.emptyFilterMessage||this.$primevue.config.locale.emptySearchMessage||this.$primevue.config.locale.emptyFilterMessage||``},emptyMessageText:function(){return this.emptyMessage||this.$primevue.config.locale.emptyMessage||``},selectionMessageText:function(){return this.selectionMessage||this.$primevue.config.locale.selectionMessage||``},emptySelectionMessageText:function(){return this.emptySelectionMessage||this.$primevue.config.locale.emptySelectionMessage||``},selectedMessageText:function(){return this.$filled?this.selectionMessageText.replaceAll(`{0}`,`1`):this.emptySelectionMessageText},focusedOptionId:function(){return this.focusedOptionIndex===-1?null:`${this.$id}_${this.focusedOptionIndex}`},ariaSetSize:function(){var e=this;return this.visibleOptions.filter(function(t){return!e.isOptionGroup(t)}).length},isClearIconVisible:function(){return this.showClear&&this.d_value!=null&&!this.disabled&&!this.loading},virtualScrollerDisabled:function(){return!this.virtualScrollerOptions},containerDataP:function(){return ko(cy({invalid:this.$invalid,disabled:this.disabled,focus:this.focused,fluid:this.$fluid,filled:this.$variant===`filled`},this.size,this.size))},labelDataP:function(){return ko(cy(cy({placeholder:!this.editable&&this.label===this.placeholder,clearable:this.showClear,disabled:this.disabled,editable:this.editable},this.size,this.size),`empty`,!this.editable&&!this.$slots.value&&(this.label===`p-emptylabel`||this.label.length===0)))},dropdownIconDataP:function(){return ko(cy({},this.size,this.size))},overlayDataP:function(){return ko(cy({},`portal-`+this.appendTo,`portal-`+this.appendTo))}},directives:{ripple:nd},components:{InputText:ty,VirtualScroller:ay,Portal:Tu,InputIcon:Qv,IconField:Zv,TimesIcon:Yu,ChevronDownIcon:qv,SpinnerIcon:pd,SearchIcon:Yv,CheckIcon:Uu,BlankIcon:QTe}},GEe=[`id`,`data-p`],KEe=[`name`,`id`,`value`,`placeholder`,`tabindex`,`disabled`,`aria-label`,`aria-labelledby`,`aria-expanded`,`aria-controls`,`aria-activedescendant`,`aria-invalid`,`data-p`],qEe=[`name`,`id`,`tabindex`,`aria-label`,`aria-labelledby`,`aria-expanded`,`aria-controls`,`aria-activedescendant`,`aria-invalid`,`aria-disabled`,`data-p`],JEe=[`data-p`],YEe=[`id`],XEe=[`id`],ZEe=[`id`,`aria-label`,`aria-selected`,`aria-disabled`,`aria-setsize`,`aria-posinset`,`onMousedown`,`onMousemove`,`data-p-selected`,`data-p-focused`,`data-p-disabled`];function QEe(e,t,n,r,i,a){var o=vr(`SpinnerIcon`),s=vr(`InputText`),c=vr(`SearchIcon`),l=vr(`InputIcon`),u=vr(`IconField`),d=vr(`CheckIcon`),f=vr(`BlankIcon`),p=vr(`VirtualScroller`),m=vr(`Portal`),h=xr(`ripple`);return k(),A(`div`,M({ref:`container`,id:e.$id,class:e.cx(`root`),onClick:t[12]||=function(){return a.onContainerClick&&a.onContainerClick.apply(a,arguments)},"data-p":a.containerDataP},e.ptmi(`root`)),[e.editable?(k(),A(`input`,M({key:0,ref:`focusInput`,name:e.name,id:e.labelId||e.inputId,type:`text`,class:[e.cx(`label`),e.inputClass,e.labelClass],style:[e.inputStyle,e.labelStyle],value:a.editableInputValue,placeholder:e.placeholder,tabindex:e.disabled?-1:e.tabindex,disabled:e.disabled,autocomplete:`off`,role:`combobox`,"aria-label":e.ariaLabel,"aria-labelledby":e.ariaLabelledby,"aria-haspopup":`listbox`,"aria-expanded":i.overlayVisible,"aria-controls":i.overlayVisible?e.$id+`_list`:void 0,"aria-activedescendant":i.focused?a.focusedOptionId:void 0,"aria-invalid":e.invalid||void 0,onFocus:t[0]||=function(){return a.onFocus&&a.onFocus.apply(a,arguments)},onBlur:t[1]||=function(){return a.onBlur&&a.onBlur.apply(a,arguments)},onKeydown:t[2]||=function(){return a.onKeyDown&&a.onKeyDown.apply(a,arguments)},onInput:t[3]||=function(){return a.onEditableInput&&a.onEditableInput.apply(a,arguments)},"data-p":a.labelDataP},e.ptm(`label`)),null,16,KEe)):(k(),A(`span`,M({key:1,ref:`focusInput`,name:e.name,id:e.labelId||e.inputId,class:[e.cx(`label`),e.inputClass,e.labelClass],style:[e.inputStyle,e.labelStyle],tabindex:e.disabled?-1:e.tabindex,role:`combobox`,"aria-label":e.ariaLabel||(a.label===`p-emptylabel`?void 0:a.label),"aria-labelledby":e.ariaLabelledby,"aria-haspopup":`listbox`,"aria-expanded":i.overlayVisible,"aria-controls":e.$id+`_list`,"aria-activedescendant":i.focused?a.focusedOptionId:void 0,"aria-invalid":e.invalid||void 0,"aria-disabled":e.disabled,onFocus:t[4]||=function(){return a.onFocus&&a.onFocus.apply(a,arguments)},onBlur:t[5]||=function(){return a.onBlur&&a.onBlur.apply(a,arguments)},onKeydown:t[6]||=function(){return a.onKeyDown&&a.onKeyDown.apply(a,arguments)},"data-p":a.labelDataP},e.ptm(`label`)),[Er(e.$slots,`value`,{value:e.d_value,placeholder:e.placeholder},function(){return[vi(E(a.label===`p-emptylabel`?`\xA0`:a.label??`empty`),1)]})],16,qEe)),a.isClearIconVisible?Er(e.$slots,`clearicon`,{key:2,class:Me(e.cx(`clearIcon`)),clearCallback:a.onClearClick},function(){return[(k(),di(br(e.clearIcon?`i`:`TimesIcon`),M({ref:`clearIcon`,class:[e.cx(`clearIcon`),e.clearIcon],onClick:a.onClearClick},e.ptm(`clearIcon`),{"data-pc-section":`clearicon`}),null,16,[`class`,`onClick`]))]}):yi(``,!0),j(`div`,M({class:e.cx(`dropdown`)},e.ptm(`dropdown`)),[e.loading?Er(e.$slots,`loadingicon`,{key:0,class:Me(e.cx(`loadingIcon`))},function(){return[e.loadingIcon?(k(),A(`span`,M({key:0,class:[e.cx(`loadingIcon`),`pi-spin`,e.loadingIcon],"aria-hidden":`true`},e.ptm(`loadingIcon`)),null,16)):(k(),di(o,M({key:1,class:e.cx(`loadingIcon`),spin:``,"aria-hidden":`true`},e.ptm(`loadingIcon`)),null,16,[`class`]))]}):Er(e.$slots,`dropdownicon`,{key:1,class:Me(e.cx(`dropdownIcon`))},function(){return[(k(),di(br(e.dropdownIcon?`span`:`ChevronDownIcon`),M({class:[e.cx(`dropdownIcon`),e.dropdownIcon],"aria-hidden":`true`,"data-p":a.dropdownIconDataP},e.ptm(`dropdownIcon`)),null,16,[`class`,`data-p`]))]})],16),hi(m,{appendTo:e.appendTo},{default:Mn(function(){return[hi(zi,M({name:`p-anchored-overlay`,onEnter:a.onOverlayEnter,onAfterEnter:a.onOverlayAfterEnter,onLeave:a.onOverlayLeave,onAfterLeave:a.onOverlayAfterLeave},e.ptm(`transition`)),{default:Mn(function(){return[i.overlayVisible?(k(),A(`div`,M({key:0,ref:a.overlayRef,class:[e.cx(`overlay`),e.panelClass,e.overlayClass],style:[e.panelStyle,e.overlayStyle],onClick:t[10]||=function(){return a.onOverlayClick&&a.onOverlayClick.apply(a,arguments)},onKeydown:t[11]||=function(){return a.onOverlayKeyDown&&a.onOverlayKeyDown.apply(a,arguments)},"data-p":a.overlayDataP},e.ptm(`overlay`)),[j(`span`,M({ref:`firstHiddenFocusableElementOnOverlay`,role:`presentation`,"aria-hidden":`true`,class:`p-hidden-accessible p-hidden-focusable`,tabindex:0,onFocus:t[7]||=function(){return a.onFirstHiddenFocus&&a.onFirstHiddenFocus.apply(a,arguments)}},e.ptm(`hiddenFirstFocusableEl`),{"data-p-hidden-accessible":!0,"data-p-hidden-focusable":!0}),null,16),Er(e.$slots,`header`,{value:e.d_value,options:a.visibleOptions}),e.filter?(k(),A(`div`,M({key:0,class:e.cx(`header`)},e.ptm(`header`)),[hi(u,{unstyled:e.unstyled,pt:e.ptm(`pcFilterContainer`)},{default:Mn(function(){return[hi(s,{ref:`filterInput`,type:`text`,value:i.filterValue,onVnodeMounted:a.onFilterUpdated,onVnodeUpdated:a.onFilterUpdated,class:Me(e.cx(`pcFilter`)),placeholder:e.filterPlaceholder,variant:e.variant,unstyled:e.unstyled,role:`searchbox`,autocomplete:`off`,"aria-owns":e.$id+`_list`,"aria-activedescendant":a.focusedOptionId,onKeydown:a.onFilterKeyDown,onBlur:a.onFilterBlur,onInput:a.onFilterChange,pt:e.ptm(`pcFilter`),formControl:{novalidate:!0}},null,8,[`value`,`onVnodeMounted`,`onVnodeUpdated`,`class`,`placeholder`,`variant`,`unstyled`,`aria-owns`,`aria-activedescendant`,`onKeydown`,`onBlur`,`onInput`,`pt`]),hi(l,{unstyled:e.unstyled,pt:e.ptm(`pcFilterIconContainer`)},{default:Mn(function(){return[Er(e.$slots,`filtericon`,{},function(){return[e.filterIcon?(k(),A(`span`,M({key:0,class:e.filterIcon},e.ptm(`filterIcon`)),null,16)):(k(),di(c,Ne(M({key:1},e.ptm(`filterIcon`))),null,16))]})]}),_:3},8,[`unstyled`,`pt`])]}),_:3},8,[`unstyled`,`pt`]),j(`span`,M({role:`status`,"aria-live":`polite`,class:`p-hidden-accessible`},e.ptm(`hiddenFilterResult`),{"data-p-hidden-accessible":!0}),E(a.filterResultMessageText),17)],16)):yi(``,!0),j(`div`,M({class:e.cx(`listContainer`),style:{"max-height":a.virtualScrollerDisabled?e.scrollHeight:``}},e.ptm(`listContainer`)),[hi(p,M({ref:a.virtualScrollerRef},e.virtualScrollerOptions,{items:a.visibleOptions,style:{height:e.scrollHeight},tabindex:-1,disabled:a.virtualScrollerDisabled,pt:e.ptm(`virtualScroller`)}),Tr({content:Mn(function(n){var r=n.styleClass,o=n.contentRef,s=n.items,c=n.getItemOptions,l=n.contentStyle,u=n.itemSize;return[j(`ul`,M({ref:function(e){return a.listRef(e,o)},id:e.$id+`_list`,class:[e.cx(`list`),r],style:l,role:`listbox`},e.ptm(`list`)),[(k(!0),A(ri,null,wr(s,function(n,r){return k(),A(ri,{key:a.getOptionRenderKey(n,a.getOptionIndex(r,c))},[a.isOptionGroup(n)?(k(),A(`li`,M({key:0,id:e.$id+`_`+a.getOptionIndex(r,c),style:{height:u?u+`px`:void 0},class:e.cx(`optionGroup`),role:`option`},{ref_for:!0},e.ptm(`optionGroup`)),[Er(e.$slots,`optiongroup`,{option:n.optionGroup,index:a.getOptionIndex(r,c)},function(){return[j(`span`,M({class:e.cx(`optionGroupLabel`)},{ref_for:!0},e.ptm(`optionGroupLabel`)),E(a.getOptionGroupLabel(n.optionGroup)),17)]})],16,XEe)):Nn((k(),A(`li`,M({key:1,id:e.$id+`_`+a.getOptionIndex(r,c),class:e.cx(`option`,{option:n,focusedOption:a.getOptionIndex(r,c)}),style:{height:u?u+`px`:void 0},role:`option`,"aria-label":a.getOptionLabel(n),"aria-selected":a.isSelected(n),"aria-disabled":a.isOptionDisabled(n),"aria-setsize":a.ariaSetSize,"aria-posinset":a.getAriaPosInset(a.getOptionIndex(r,c)),onMousedown:function(e){return a.onOptionSelect(e,n)},onMousemove:function(e){return a.onOptionMouseMove(e,a.getOptionIndex(r,c))},onClick:t[8]||=Pa(function(){},[`stop`]),"data-p-selected":!e.checkmark&&a.isSelected(n),"data-p-focused":i.focusedOptionIndex===a.getOptionIndex(r,c),"data-p-disabled":a.isOptionDisabled(n)},{ref_for:!0},a.getPTItemOptions(n,c,r,`option`)),[e.checkmark?(k(),A(ri,{key:0},[a.isSelected(n)?(k(),di(d,M({key:0,class:e.cx(`optionCheckIcon`)},{ref_for:!0},e.ptm(`optionCheckIcon`)),null,16,[`class`])):(k(),di(f,M({key:1,class:e.cx(`optionBlankIcon`)},{ref_for:!0},e.ptm(`optionBlankIcon`)),null,16,[`class`]))],64)):yi(``,!0),Er(e.$slots,`option`,{option:n,selected:a.isSelected(n),index:a.getOptionIndex(r,c)},function(){return[j(`span`,M({class:e.cx(`optionLabel`)},{ref_for:!0},e.ptm(`optionLabel`)),E(a.getOptionLabel(n)),17)]})],16,ZEe)),[[h]])],64)}),128)),i.filterValue&&(!s||s&&s.length===0)?(k(),A(`li`,M({key:0,class:e.cx(`emptyMessage`),role:`option`},e.ptm(`emptyMessage`),{"data-p-hidden-accessible":!0}),[Er(e.$slots,`emptyfilter`,{},function(){return[vi(E(a.emptyFilterMessageText),1)]})],16)):!e.options||e.options&&e.options.length===0?(k(),A(`li`,M({key:1,class:e.cx(`emptyMessage`),role:`option`},e.ptm(`emptyMessage`),{"data-p-hidden-accessible":!0}),[Er(e.$slots,`empty`,{},function(){return[vi(E(a.emptyMessageText),1)]})],16)):yi(``,!0)],16,YEe)]}),_:2},[e.$slots.loader?{name:`loader`,fn:Mn(function(t){var n=t.options;return[Er(e.$slots,`loader`,{options:n})]}),key:`0`}:void 0]),1040,[`items`,`style`,`disabled`,`pt`])],16),Er(e.$slots,`footer`,{value:e.d_value,options:a.visibleOptions}),!e.options||e.options&&e.options.length===0?(k(),A(`span`,M({key:1,role:`status`,"aria-live":`polite`,class:`p-hidden-accessible`},e.ptm(`hiddenEmptyMessage`),{"data-p-hidden-accessible":!0}),E(a.emptyMessageText),17)):yi(``,!0),j(`span`,M({role:`status`,"aria-live":`polite`,class:`p-hidden-accessible`},e.ptm(`hiddenSelectedMessage`),{"data-p-hidden-accessible":!0}),E(a.selectedMessageText),17),j(`span`,M({ref:`lastHiddenFocusableElementOnOverlay`,role:`presentation`,"aria-hidden":`true`,class:`p-hidden-accessible p-hidden-focusable`,tabindex:0,onFocus:t[9]||=function(){return a.onLastHiddenFocus&&a.onLastHiddenFocus.apply(a,arguments)}},e.ptm(`hiddenLastFocusableEl`),{"data-p-hidden-accessible":!0,"data-p-hidden-focusable":!0}),null,16)],16,JEe)):yi(``,!0)]}),_:3},16,[`onEnter`,`onAfterEnter`,`onLeave`,`onAfterLeave`])]}),_:3},8,[`appendTo`])],16,GEe)}ly.render=QEe;const uy=ro(`scenario`,()=>{let e=D([]),t=D(!1);async function n(){t.value=!0;try{e.value=await yp.scenario.list.query()}catch{e.value=[]}finally{t.value=!1}}async function r(t){let n=await yp.scenario.create.mutate(t);return e.value=[...e.value,n],n}async function i(t){let n=e.value.find(e=>e.id===t);if(!n)throw Error(`Scenario not found`);return r({name:`${n.name} (copie)`,description:n.description,leaderId:n.leaderId,groups:n.groups,nodes:n.nodes,traversalMode:n.traversalMode})}async function a(t,n){let r=await yp.scenario.update.mutate({id:t,...n});return e.value=e.value.map(e=>e.id===t?r:e),r}async function o(t){await yp.scenario.delete.mutate({id:t}),e.value=e.value.filter(e=>e.id!==t)}return{scenarios:e,loading:t,fetchScenarios:n,createScenario:r,duplicateScenario:i,updateScenario:a,deleteScenario:o}}),dy=ro(`agent`,()=>{let e=D([]),t=D(!1),n=D(null),r=null,i=0,a=null,o=ji(()=>e.value.length),s=ji(()=>e.value.filter(e=>e.status.connected)),c=ji(()=>t=>e.value.find(e=>e.config.id===t)??null);async function l(){t.value=!0,n.value=null;try{e.value=await yp.agent.list.query()}catch(e){n.value=Vv(e)??`Failed to fetch agents`}finally{t.value=!1}}async function u(e,t,r){n.value=null;try{let n=await yp.agent.register.mutate({name:e,url:t,passphrase:r});return await l(),n}catch(e){return n.value=Vv(e)??`Failed to register agent`,null}}async function d(t,r){n.value=null;try{let n=await yp.agent.update.mutate({id:t,...r}),i=e.value.findIndex(e=>e.config.id===t);if(i>=0){let t=[...e.value];t[i]={...t[i],config:{...t[i].config,...n}},e.value=t}return n}catch(e){return n.value=Vv(e)??`Failed to update agent`,null}}async function f(t){n.value=null;try{return await yp.agent.remove.mutate({id:t}),e.value=e.value.filter(e=>e.config.id!==t),!0}catch(e){return n.value=Vv(e)??`Failed to remove agent`,!1}}async function p(t,r){n.value=null;try{let n=await yp.agent.update.mutate({id:t,passthroughEnv:r}),i=e.value.findIndex(e=>e.config.id===t);if(i>=0){let t=[...e.value];t[i]={...t[i],config:{...t[i].config,passthroughEnv:n.passthroughEnv}},e.value=t}return n}catch(e){return n.value=Vv(e)??`Failed to update passthrough env`,null}}function m(){if(i>=5){console.warn(`[agent.store] Max status subscription retries (5) reached`);return}let e=Mv*2**i+Math.random()*300;i++,a=setTimeout(()=>{a=null,h()},e)}function h(){r||=yp.agent.onStatus.subscribe(void 0,{onData(t){i=0;let n=e.value.findIndex(e=>e.config.id===t.agentId);if(n>=0){let r=[...e.value];r[n]={...r[n],status:t.status},e.value=r}},onError(e){r=null,console.error(`[agent.store] Status subscription error:`,e),m()}})}function g(){a&&=(clearTimeout(a),null),r&&=(r.unsubscribe(),null),i=0}return{agents:e,loading:t,error:n,agentCount:o,connectedAgents:s,getById:c,fetchAll:l,register:u,update:d,remove:f,updatePassthroughEnv:p,subscribeStatus:h,unsubscribeStatus:g}});var $Ee={key:0,class:`scenario-selector__agent-section`},eDe={class:`scenario-selector__agent-label`},tDe={class:`scenario-selector__ai-section`},nDe={class:`scenario-selector__section-header`},rDe={class:`scenario-selector__section-title`},iDe={class:`scenario-selector__ai-grid`},aDe=[`onClick`],oDe={class:`scenario-selector__ai-card-name`},sDe={key:0,class:`scenario-selector__ai-card-model-text`},cDe={class:`scenario-selector__ai-card-name`},lDe={class:`scenario-selector__ai-card-name`},uDe={key:2,class:`scenario-selector__ai-empty`},dDe={class:`scenario-selector__scenarios-section`},fDe={class:`scenario-selector__section-header`},pDe={class:`scenario-selector__section-title`},mDe={key:0,class:`scenario-selector__loading`},hDe={key:1,class:`scenario-selector__empty`},gDe={key:2,class:`scenario-selector__grid`},_De=[`onClick`],vDe={class:`scenario-selector__card-name`},yDe={key:0,class:`scenario-selector__card-desc`},bDe={class:`scenario-selector__card-meta`},xDe={key:0,style:{"margin-left":`auto`,opacity:`0.6`,"font-size":`0.75rem`}},SDe=Vd(Zn({__name:`ScenarioSelector`,props:{compact:{type:Boolean,default:!1}},emits:[`selectScenario`,`skip`],setup(e,{emit:t}){let n=t,r=wu(),i=uy(),{scenarios:a,loading:o}=io(i),{close:s}=Bv(),{t:c}=Hc(),l=Gv(),{providers:u,selectedProviderId:d,claudeCodeAvailable:f,codexAvailable:p}=io(l),m=dy(),{connectedAgents:h}=io(m),{contextServiceId:g}=Bv(),_=Hv(),v=D(g.value?_.getById(g.value)?.effectiveAgentId??void 0:void 0),y=ji(()=>{let e=[{label:c(`scenarioSelector.defaultAgent`),value:void 0}];for(let t of h.value)e.push({label:t.config.name||t.config.id,value:t.config.id});return e});function b(){s(),r.push({name:`settings`,query:{section:`scenario`}})}function x(){s(),r.push({name:`settings`,query:{section:`ai`}})}return Ln(v,e=>{l.checkCliAvailability(e)}),ur(()=>{i.fetchScenarios(),l.fetchProviders(),l.checkCliAvailability(),m.fetchAll()}),(t,r)=>(k(),A(`div`,{class:Me([`scenario-selector`,{"scenario-selector--compact":e.compact}])},[O(h).length>1?(k(),A(`div`,$Ee,[j(`label`,eDe,E(O(c)(`scenarioSelector.agentLabel`)),1),hi(O(ly),{modelValue:v.value,"onUpdate:modelValue":r[0]||=e=>v.value=e,options:y.value,"option-label":`label`,"option-value":`value`,class:`scenario-selector__agent-select`},null,8,[`modelValue`,`options`])])):yi(``,!0),j(`div`,tDe,[j(`div`,nDe,[j(`span`,rDe,E(O(c)(`scenarioSelector.aiSection`)),1),hi(O(Sd),{label:O(c)(`scenarioSelector.manageProviders`),icon:`pi pi-cog`,size:`small`,severity:`secondary`,text:``,onClick:x},null,8,[`label`])]),j(`div`,iDe,[(k(!0),A(ri,null,wr(O(u),e=>(k(),A(`div`,{key:e.id,class:`scenario-selector__ai-card`,onClick:t=>n(`skip`,`keep`,e.id,v.value)},[r[3]||=j(`span`,{class:`scenario-selector__ai-card-badge scenario-selector__ai-card-badge--cloud`},[j(`i`,{class:`pi pi-cloud`})],-1),j(`div`,oDe,E(e.label),1),e.model?(k(),A(`span`,sDe,E(e.model),1)):yi(``,!0)],8,aDe))),128)),O(f)?(k(),A(`div`,{key:0,class:`scenario-selector__ai-card`,onClick:r[1]||=e=>n(`skip`,`claude-code`,null,v.value)},[r[4]||=j(`span`,{class:`scenario-selector__ai-card-badge scenario-selector__ai-card-badge--cli`},[j(`i`,{class:`pi pi-desktop`})],-1),j(`div`,cDe,E(O(c)(`aiChatPage.runner.claudeCode`)),1)])):yi(``,!0),O(p)?(k(),A(`div`,{key:1,class:`scenario-selector__ai-card`,onClick:r[2]||=e=>n(`skip`,`codex`,null,v.value)},[r[5]||=j(`span`,{class:`scenario-selector__ai-card-badge scenario-selector__ai-card-badge--cli`},[j(`i`,{class:`pi pi-desktop`})],-1),j(`div`,lDe,E(O(c)(`aiChatPage.runner.codex`)),1)])):yi(``,!0),O(u).length===0&&!O(f)&&!O(p)?(k(),A(`div`,uDe,[j(`p`,null,E(O(c)(`scenarioSelector.noProviders`)),1),hi(O(Sd),{label:O(c)(`scenarioSelector.configureProvider`),icon:`pi pi-plus`,size:`small`,onClick:x},null,8,[`label`])])):yi(``,!0)])]),j(`div`,dDe,[j(`div`,fDe,[j(`span`,pDe,E(O(c)(`scenarioSelector.scenariosSection`)),1),hi(O(Sd),{label:O(c)(`scenarioSelector.manageScenarios`),icon:`pi pi-cog`,size:`small`,severity:`secondary`,text:``,onClick:b},null,8,[`label`])]),O(o)?(k(),A(`div`,mDe,[...r[6]||=[j(`i`,{class:`pi pi-spin pi-spinner`},null,-1)]])):O(a).length===0?(k(),A(`div`,hDe,[j(`p`,null,E(O(c)(`scenarioSelector.empty`)),1),hi(O(Sd),{label:O(c)(`scenarioSelector.create`),icon:`pi pi-building`,onClick:b},null,8,[`label`])])):(k(),A(`div`,gDe,[(k(!0),A(ri,null,wr(O(a),e=>(k(),A(`div`,{key:e.id,class:`scenario-selector__card`,onClick:t=>n(`selectScenario`,e.id,`keep`,O(d),v.value)},[j(`div`,vDe,[j(`i`,{class:Me(`pi ${e.icon||`pi-building`}`)},null,2),vi(` `+E(e.name),1)]),e.description?(k(),A(`div`,yDe,E(e.description),1)):yi(``,!0),j(`div`,bDe,[r[8]||=j(`i`,{class:`pi pi-users`},null,-1),vi(` `+E(e.nodes.length)+` `+E(O(c)(`scenarioSelector.nodes`))+` `,1),e.isPublished?(k(),A(`span`,xDe,[r[7]||=j(`i`,{class:`pi pi-globe`},null,-1),vi(` `+E(O(c)(`scenarioSelector.published`)),1)])):yi(``,!0)])],8,_De))),128))]))])],2))}}),[[`__scopeId`,`data-v-89691d8f`]]),fy={name:`ChevronRightIcon`,extends:Hu};function CDe(e){return DDe(e)||EDe(e)||TDe(e)||wDe()}function wDe(){throw TypeError(`Invalid attempt to spread non-iterable instance.
|
|
2073
2073
|
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function TDe(e,t){if(e){if(typeof e==`string`)return py(e,t);var n={}.toString.call(e).slice(8,-1);return n===`Object`&&e.constructor&&(n=e.constructor.name),n===`Map`||n===`Set`?Array.from(e):n===`Arguments`||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?py(e,t):void 0}}function EDe(e){if(typeof Symbol<`u`&&e[Symbol.iterator]!=null||e[`@@iterator`]!=null)return Array.from(e)}function DDe(e){if(Array.isArray(e))return py(e)}function py(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function ODe(e,t,n,r,i,a){return k(),A(`svg`,M({width:`14`,height:`14`,viewBox:`0 0 14 14`,fill:`none`,xmlns:`http://www.w3.org/2000/svg`},e.pti()),CDe(t[0]||=[j(`path`,{d:`M4.38708 13C4.28408 13.0005 4.18203 12.9804 4.08691 12.9409C3.99178 12.9014 3.9055 12.8433 3.83313 12.7701C3.68634 12.6231 3.60388 12.4238 3.60388 12.2161C3.60388 12.0084 3.68634 11.8091 3.83313 11.6622L8.50507 6.99022L3.83313 2.31827C3.69467 2.16968 3.61928 1.97313 3.62287 1.77005C3.62645 1.56698 3.70872 1.37322 3.85234 1.22959C3.99596 1.08597 4.18972 1.00371 4.3928 1.00012C4.59588 0.996539 4.79242 1.07192 4.94102 1.21039L10.1669 6.43628C10.3137 6.58325 10.3962 6.78249 10.3962 6.99022C10.3962 7.19795 10.3137 7.39718 10.1669 7.54416L4.94102 12.7701C4.86865 12.8433 4.78237 12.9014 4.68724 12.9409C4.59212 12.9804 4.49007 13.0005 4.38708 13Z`,fill:`currentColor`},null,-1)]),16)}fy.render=ODe;var my={name:`ChevronUpIcon`,extends:Hu};function kDe(e){return NDe(e)||MDe(e)||jDe(e)||ADe()}function ADe(){throw TypeError(`Invalid attempt to spread non-iterable instance.
|
|
2074
2074
|
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function jDe(e,t){if(e){if(typeof e==`string`)return hy(e,t);var n={}.toString.call(e).slice(8,-1);return n===`Object`&&e.constructor&&(n=e.constructor.name),n===`Map`||n===`Set`?Array.from(e):n===`Arguments`||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?hy(e,t):void 0}}function MDe(e){if(typeof Symbol<`u`&&e[Symbol.iterator]!=null||e[`@@iterator`]!=null)return Array.from(e)}function NDe(e){if(Array.isArray(e))return hy(e)}function hy(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function PDe(e,t,n,r,i,a){return k(),A(`svg`,M({width:`14`,height:`14`,viewBox:`0 0 14 14`,fill:`none`,xmlns:`http://www.w3.org/2000/svg`},e.pti()),kDe(t[0]||=[j(`path`,{d:`M12.2097 10.4113C12.1057 10.4118 12.0027 10.3915 11.9067 10.3516C11.8107 10.3118 11.7237 10.2532 11.6506 10.1792L6.93602 5.46461L2.22139 10.1476C2.07272 10.244 1.89599 10.2877 1.71953 10.2717C1.54307 10.2556 1.3771 10.1808 1.24822 10.0593C1.11933 9.93766 1.035 9.77633 1.00874 9.6011C0.982477 9.42587 1.0158 9.2469 1.10338 9.09287L6.37701 3.81923C6.52533 3.6711 6.72639 3.58789 6.93602 3.58789C7.14565 3.58789 7.3467 3.6711 7.49502 3.81923L12.7687 9.09287C12.9168 9.24119 13 9.44225 13 9.65187C13 9.8615 12.9168 10.0626 12.7687 10.2109C12.616 10.3487 12.4151 10.4207 12.2097 10.4113Z`,fill:`currentColor`},null,-1)]),16)}my.render=PDe;var FDe=Ds.extend({name:`accordioncontent`,classes:{root:`p-accordioncontent`,contentWrapper:`p-accordioncontent-wrapper`,content:`p-accordioncontent-content`}}),gy={name:`AccordionContent`,extends:{name:`BaseAccordionContent`,extends:Iu,props:{as:{type:[String,Object],default:`DIV`},asChild:{type:Boolean,default:!1}},style:FDe,provide:function(){return{$pcAccordionContent:this,$parentInstance:this}}},inheritAttrs:!1,inject:[`$pcAccordion`,`$pcAccordionPanel`],computed:{id:function(){return`${this.$pcAccordion.$id}_accordioncontent_${this.$pcAccordionPanel.value}`},ariaLabelledby:function(){return`${this.$pcAccordion.$id}_accordionheader_${this.$pcAccordionPanel.value}`},attrs:function(){return M(this.a11yAttrs,this.ptmi(`root`,this.ptParams))},a11yAttrs:function(){return{id:this.id,role:`region`,"aria-labelledby":this.ariaLabelledby,"data-pc-name":`accordioncontent`,"data-p-active":this.$pcAccordionPanel.active}},ptParams:function(){return{context:{active:this.$pcAccordionPanel.active}}}}};function IDe(e,t,n,r,i,a){return e.asChild?Er(e.$slots,`default`,{key:1,class:Me(e.cx(`root`)),active:a.$pcAccordionPanel.active,a11yAttrs:a.a11yAttrs}):(k(),di(zi,M({key:0,name:`p-collapsible`},e.ptm(`transition`,a.ptParams)),{default:Mn(function(){return[!a.$pcAccordion.lazy||a.$pcAccordionPanel.active?Nn((k(),di(br(e.as),M({key:0,class:e.cx(`root`)},a.attrs),{default:Mn(function(){return[j(`div`,M({class:e.cx(`contentWrapper`)},e.ptm(`contentWrapper`,a.ptParams)),[j(`div`,M({class:e.cx(`content`)},e.ptm(`content`,a.ptParams)),[Er(e.$slots,`default`)],16)],16)]}),_:3},16,[`class`])),[[ea,a.$pcAccordion.lazy?!0:a.$pcAccordionPanel.active]]):yi(``,!0)]}),_:3},16))}gy.render=IDe;var LDe=Ds.extend({name:`accordionheader`,classes:{root:`p-accordionheader`,toggleicon:`p-accordionheader-toggle-icon`}}),_y={name:`AccordionHeader`,extends:{name:`BaseAccordionHeader`,extends:Iu,props:{as:{type:[String,Object],default:`BUTTON`},asChild:{type:Boolean,default:!1}},style:LDe,provide:function(){return{$pcAccordionHeader:this,$parentInstance:this}}},inheritAttrs:!1,inject:[`$pcAccordion`,`$pcAccordionPanel`],methods:{onFocus:function(){this.$pcAccordion.selectOnFocus&&this.changeActiveValue()},onClick:function(){!this.$pcAccordion.selectOnFocus&&this.changeActiveValue()},onKeydown:function(e){switch(e.code){case`ArrowDown`:this.onArrowDownKey(e);break;case`ArrowUp`:this.onArrowUpKey(e);break;case`Home`:this.onHomeKey(e);break;case`End`:this.onEndKey(e);break;case`Enter`:case`NumpadEnter`:case`Space`:this.onEnterKey(e);break}},onArrowDownKey:function(e){var t=this.findNextPanel(this.findPanel(e.currentTarget));t?this.changeFocusedPanel(e,t):this.onHomeKey(e),e.preventDefault()},onArrowUpKey:function(e){var t=this.findPrevPanel(this.findPanel(e.currentTarget));t?this.changeFocusedPanel(e,t):this.onEndKey(e),e.preventDefault()},onHomeKey:function(e){var t=this.findFirstPanel();this.changeFocusedPanel(e,t),e.preventDefault()},onEndKey:function(e){var t=this.findLastPanel();this.changeFocusedPanel(e,t),e.preventDefault()},onEnterKey:function(e){this.changeActiveValue(),e.preventDefault()},findPanel:function(e){return e?.closest(`[data-pc-name="accordionpanel"]`)},findHeader:function(e){return Wo(e,`[data-pc-name="accordionheader"]`)},findNextPanel:function(e){var t=arguments.length>1&&arguments[1]!==void 0&&arguments[1]?e:e.nextElementSibling;return t?Ko(t,`data-p-disabled`)?this.findNextPanel(t):this.findHeader(t):null},findPrevPanel:function(e){var t=arguments.length>1&&arguments[1]!==void 0&&arguments[1]?e:e.previousElementSibling;return t?Ko(t,`data-p-disabled`)?this.findPrevPanel(t):this.findHeader(t):null},findFirstPanel:function(){return this.findNextPanel(this.$pcAccordion.$el.firstElementChild,!0)},findLastPanel:function(){return this.findPrevPanel(this.$pcAccordion.$el.lastElementChild,!0)},changeActiveValue:function(){this.$pcAccordion.updateValue(this.$pcAccordionPanel.value)},changeFocusedPanel:function(e,t){Go(this.findHeader(t))}},computed:{id:function(){return`${this.$pcAccordion.$id}_accordionheader_${this.$pcAccordionPanel.value}`},ariaControls:function(){return`${this.$pcAccordion.$id}_accordioncontent_${this.$pcAccordionPanel.value}`},attrs:function(){return M(this.asAttrs,this.a11yAttrs,this.ptmi(`root`,this.ptParams))},asAttrs:function(){return this.as===`BUTTON`?{type:`button`,disabled:this.$pcAccordionPanel.disabled}:void 0},a11yAttrs:function(){return{id:this.id,tabindex:this.$pcAccordion.tabindex,"aria-expanded":this.$pcAccordionPanel.active,"aria-controls":this.ariaControls,"data-pc-name":`accordionheader`,"data-p-disabled":this.$pcAccordionPanel.disabled,"data-p-active":this.$pcAccordionPanel.active,onFocus:this.onFocus,onKeydown:this.onKeydown}},ptParams:function(){return{context:{active:this.$pcAccordionPanel.active}}},dataP:function(){return ko({active:this.$pcAccordionPanel.active})}},components:{ChevronUpIcon:my,ChevronDownIcon:qv},directives:{ripple:nd}};function RDe(e,t,n,r,i,a){var o=xr(`ripple`);return e.asChild?Er(e.$slots,`default`,{key:1,class:Me(e.cx(`root`)),active:a.$pcAccordionPanel.active,a11yAttrs:a.a11yAttrs,onClick:a.onClick}):Nn((k(),di(br(e.as),M({key:0,"data-p":a.dataP,class:e.cx(`root`),onClick:a.onClick},a.attrs),{default:Mn(function(){return[Er(e.$slots,`default`,{active:a.$pcAccordionPanel.active}),Er(e.$slots,`toggleicon`,{active:a.$pcAccordionPanel.active,class:Me(e.cx(`toggleicon`))},function(){return[a.$pcAccordionPanel.active?(k(),di(br(a.$pcAccordion.$slots.collapseicon?a.$pcAccordion.$slots.collapseicon:a.$pcAccordion.collapseIcon?`span`:`ChevronUpIcon`),M({key:0,class:[a.$pcAccordion.collapseIcon,e.cx(`toggleicon`)],"aria-hidden":`true`},e.ptm(`toggleicon`,a.ptParams)),null,16,[`class`])):(k(),di(br(a.$pcAccordion.$slots.expandicon?a.$pcAccordion.$slots.expandicon:a.$pcAccordion.expandIcon?`span`:`ChevronDownIcon`),M({key:1,class:[a.$pcAccordion.expandIcon,e.cx(`toggleicon`)],"aria-hidden":`true`},e.ptm(`toggleicon`,a.ptParams)),null,16,[`class`]))]})]}),_:3},16,[`data-p`,`class`,`onClick`])),[[o]])}_y.render=RDe;var zDe=Ds.extend({name:`accordionpanel`,classes:{root:function(e){var t=e.instance,n=e.props;return[`p-accordionpanel`,{"p-accordionpanel-active":t.active,"p-disabled":n.disabled}]}}}),vy={name:`AccordionPanel`,extends:{name:`BaseAccordionPanel`,extends:Iu,props:{value:{type:[String,Number],default:void 0},disabled:{type:Boolean,default:!1},as:{type:[String,Object],default:`DIV`},asChild:{type:Boolean,default:!1}},style:zDe,provide:function(){return{$pcAccordionPanel:this,$parentInstance:this}}},inheritAttrs:!1,inject:[`$pcAccordion`],computed:{active:function(){return this.$pcAccordion.isItemActive(this.value)},attrs:function(){return M(this.a11yAttrs,this.ptmi(`root`,this.ptParams))},a11yAttrs:function(){return{"data-pc-name":`accordionpanel`,"data-p-disabled":this.disabled,"data-p-active":this.active}},ptParams:function(){return{context:{active:this.active}}}}};function BDe(e,t,n,r,i,a){return e.asChild?Er(e.$slots,`default`,{key:1,class:Me(e.cx(`root`)),active:a.active,a11yAttrs:a.a11yAttrs}):(k(),di(br(e.as),M({key:0,class:e.cx(`root`)},a.attrs),{default:Mn(function(){return[Er(e.$slots,`default`)]}),_:3},16,[`class`]))}vy.render=BDe;var VDe=Ds.extend({name:`accordion`,style:`
|
|
2075
2075
|
.p-accordionpanel {
|
|
@@ -3349,7 +3349,7 @@ ${X$e(W.menuSubmenu)}
|
|
|
3349
3349
|
`:`\r
|
|
3350
3350
|
`),await this._clipboardService.writeText(e)})),n.getOption(92)||e.push(new MN(`diff.inline.revertChange`,F(`diff.inline.revertChange.label`,`Revert this change`),void 0,!0,async()=>{this._editor.revert(this._diff)})),e},autoSelectFirstItem:!0})};this._register(pM(this._diffActions,`mousedown`,e=>{if(!e.leftButton)return;let{top:t,height:n}=TM(this._diffActions),r=Math.floor(l/3);e.preventDefault(),f(e.posx,t+n+r)})),this._register(n.onMouseMove(e=>{(e.target.type===8||e.target.type===5)&&e.target.detail.viewZoneId===this._getViewZoneId()?(u=this._updateLightBulbPosition(this._marginDomNode,e.event.browserEvent.y,l),this.visibility=!0):this.visibility=!1})),this._register(n.onMouseDown(e=>{e.event.leftButton&&(e.target.type===8||e.target.type===5)&&e.target.detail.viewZoneId===this._getViewZoneId()&&(e.event.preventDefault(),u=this._updateLightBulbPosition(this._marginDomNode,e.event.browserEvent.y,l),f(e.event.posx,e.event.posy+l))}))}_updateLightBulbPosition(e,t,n){let{top:r}=TM(e),i=t-r,a=Math.floor(i/n),o=a*n;if(this._diffActions.style.top=`${o}px`,this._viewLineCounts){let e=0;for(let t=0;t<this._viewLineCounts.length;t++)if(e+=this._viewLineCounts[t],a<e)return t}return a}},yit=sF(`diffEditorWidget`,{createHTML:e=>e});function bit(e,t,n,r){bN(r,t.fontInfo);let i=n.length>0,a=new EF(1e4),o=0,s=0,c=[];for(let r=0;r<e.lineTokens.length;r++){let l=r+1,u=e.lineTokens[r],d=e.lineBreakData[r],f=SX.filter(n,l,1,2**53-1);if(d){let n=0;for(let r of d.breakOffsets){let c=u.sliceAndInflate(n,r,0);o=Math.max(o,Cit(s,c,SX.extractWrapped(f,n,r),i,e.mightContainNonBasicASCII,e.mightContainRTL,t,a)),s++,n=r}c.push(d.breakOffsets.length)}else c.push(1),o=Math.max(o,Cit(s,u,f,i,e.mightContainNonBasicASCII,e.mightContainRTL,t,a)),s++}o+=t.scrollBeyondLastColumn;let l=a.build();r.innerHTML=yit?yit.createHTML(l):l;let u=o*t.typicalHalfwidthCharacterWidth;return{heightInLines:s,minWidthInPx:u,viewLineCounts:c}}var xit=class{constructor(e,t,n,r){this.lineTokens=e,this.lineBreakData=t,this.mightContainNonBasicASCII=n,this.mightContainRTL=r}},Sit=class e{static fromEditor(t){let n=t.getOptions(),r=n.get(50),i=n.get(146);return new e(t.getModel()?.getOptions().tabSize||0,r,n.get(33),r.typicalHalfwidthCharacterWidth,n.get(105),n.get(67),i.decorationsWidth,n.get(118),n.get(100),n.get(95),n.get(51))}constructor(e,t,n,r,i,a,o,s,c,l,u){this.tabSize=e,this.fontInfo=t,this.disableMonospaceOptimizations=n,this.typicalHalfwidthCharacterWidth=r,this.scrollBeyondLastColumn=i,this.lineHeight=a,this.lineDecorationsWidth=o,this.stopRenderingLineAfter=s,this.renderWhitespace=c,this.renderControlCharacters=l,this.fontLigatures=u}};function Cit(e,t,n,r,i,a,o,s){s.appendString(`<div class="view-line`),r||s.appendString(` char-delete`),s.appendString(`" style="top:`),s.appendString(String(e*o.lineHeight)),s.appendString(`px;width:1000000px;">`);let c=t.getLineContent(),l=AX.isBasicASCII(c,i),u=AX.containsRTL(c,l,a),d=DX(new wX(o.fontInfo.isMonospace&&!o.disableMonospaceOptimizations,o.fontInfo.canUseHalfwidthRightwardsArrow,c,!1,l,u,0,t,n,o.tabSize,0,o.fontInfo.spaceWidth,o.fontInfo.middotWidth,o.fontInfo.wsmiddotWidth,o.stopRenderingLineAfter,o.renderWhitespace,o.renderControlCharacters,o.fontLigatures!==PE.OFF,null),s);return s.appendString(`</div>`),d.characterMapping.getHorizontalOffset(d.characterMapping.length)}var wit=function(e,t,n,r){var i=arguments.length,a=i<3?t:r===null?r=Object.getOwnPropertyDescriptor(t,n):r,o;if(typeof Reflect==`object`&&typeof Reflect.decorate==`function`)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},Tit=function(e,t){return function(n,r){t(n,r,e)}},V$=class extends R{constructor(e,t,n,r,i,a,o,s,c,l){super(),this._targetWindow=e,this._editors=t,this._diffModel=n,this._options=r,this._diffEditorWidget=i,this._canIgnoreViewZoneUpdateEvent=a,this._origViewZonesToIgnore=o,this._modViewZonesToIgnore=s,this._clipboardService=c,this._contextMenuService=l,this._originalTopPadding=ZU(this,0),this._originalScrollOffset=ZU(this,0),this._originalScrollOffsetAnimated=zrt(this._targetWindow,this._originalScrollOffset,this._store),this._modifiedTopPadding=ZU(this,0),this._modifiedScrollOffset=ZU(this,0),this._modifiedScrollOffsetAnimated=zrt(this._targetWindow,this._modifiedScrollOffset,this._store);let u=ZU(`invalidateAlignmentsState`,0),d=this._register(new tj(()=>{u.set(u.get()+1,void 0)},0));this._register(this._editors.original.onDidChangeViewZones(e=>{this._canIgnoreViewZoneUpdateEvent()||d.schedule()})),this._register(this._editors.modified.onDidChangeViewZones(e=>{this._canIgnoreViewZoneUpdateEvent()||d.schedule()})),this._register(this._editors.original.onDidChangeConfiguration(e=>{(e.hasChanged(147)||e.hasChanged(67))&&d.schedule()})),this._register(this._editors.modified.onDidChangeConfiguration(e=>{(e.hasChanged(147)||e.hasChanged(67))&&d.schedule()}));let f=this._diffModel.map(e=>e?fW(this,e.model.original.onDidChangeTokens,()=>e.model.original.tokenization.backgroundTokenizationState===2):void 0).map((e,t)=>e?.read(t)),p=eW(e=>{let t=this._diffModel.read(e),n=t?.diff.read(e);if(!t||!n)return null;u.read(e);let r=this._options.renderSideBySide.read(e);return Eit(this._editors.original,this._editors.modified,n.mappings,this._origViewZonesToIgnore,this._modViewZonesToIgnore,r)}),m=eW(e=>{let t=this._diffModel.read(e)?.movedTextToCompare.read(e);if(!t)return null;u.read(e);let n=t.changes.map(e=>new _it(e));return Eit(this._editors.original,this._editors.modified,n,this._origViewZonesToIgnore,this._modViewZonesToIgnore,!0)});function h(){let e=document.createElement(`div`);return e.className=`diagonal-fill`,e}let g=this._register(new L);this.viewZones=rW(this,(e,t)=>{g.clear();let n=p.read(e)||[],r=[],a=[],o=this._modifiedTopPadding.read(e);o>0&&a.push({afterLineNumber:0,domNode:document.createElement(`div`),heightInPx:o,showInHiddenAreas:!0,suppressMouseDown:!0});let s=this._originalTopPadding.read(e);s>0&&r.push({afterLineNumber:0,domNode:document.createElement(`div`),heightInPx:s,showInHiddenAreas:!0,suppressMouseDown:!0});let c=this._options.renderSideBySide.read(e),l=c?void 0:this._editors.modified._getViewModel()?.createLineBreaksComputer();if(l){let e=this._editors.original.getModel();for(let t of n)if(t.diff)for(let n=t.originalRange.startLineNumber;n<t.originalRange.endLineNumberExclusive;n++){if(n>e.getLineCount())return{orig:r,mod:a};l?.addRequest(e.getLineContent(n),null,null)}}let u=l?.finalize()??[],d=0,_=this._editors.modified.getOption(67),v=this._diffModel.read(e)?.movedTextToCompare.read(e),y=this._editors.original.getModel()?.mightContainNonBasicASCII()??!1,b=this._editors.original.getModel()?.mightContainRTL()??!1,x=Sit.fromEditor(this._editors.modified);for(let o of n)if(o.diff&&!c&&(!this._options.useTrueInlineDiffRendering.read(e)||!H$(o.diff))){if(!o.originalRange.isEmpty){f.read(e);let t=document.createElement(`div`);t.classList.add(`view-lines`,`line-delete`,`monaco-mouse-cursor-text`);let n=this._editors.original.getModel();if(o.originalRange.endLineNumberExclusive-1>n.getLineCount())return{orig:r,mod:a};let i=new xit(o.originalRange.mapToLineArray(e=>n.tokenization.getLineTokens(e)),o.originalRange.mapToLineArray(e=>u[d++]),y,b),s=[];for(let e of o.diff.innerChanges||[])s.push(new jX(e.originalRange.delta(-(o.diff.original.startLineNumber-1)),O$.className,0));let c=bit(i,x,s,t),l=document.createElement(`div`);if(l.className=`inline-deleted-margin-view-zone`,bN(l,x.fontInfo),this._options.renderIndicators.read(e))for(let e=0;e<c.heightInLines;e++){let t=document.createElement(`div`);t.className=`delete-sign ${RN.asClassName(ait)}`,t.setAttribute(`style`,`position:absolute;top:${e*_}px;width:${x.lineDecorationsWidth}px;height:${_}px;right:0;`),l.appendChild(t)}let p;g.add(new vit(()=>CT(p),l,this._editors.modified,o.diff,this._diffEditorWidget,c.viewLineCounts,this._editors.original.getModel(),this._contextMenuService,this._clipboardService));for(let e=0;e<c.viewLineCounts.length;e++){let t=c.viewLineCounts[e];t>1&&r.push({afterLineNumber:o.originalRange.startLineNumber+e,domNode:h(),heightInPx:(t-1)*_,showInHiddenAreas:!0,suppressMouseDown:!0})}a.push({afterLineNumber:o.modifiedRange.startLineNumber-1,domNode:t,heightInPx:c.heightInLines*_,minWidthInPx:c.minWidthInPx,marginDomNode:l,setZoneId(e){p=e},showInHiddenAreas:!0,suppressMouseDown:!0})}let t=document.createElement(`div`);t.className=`gutter-delete`,r.push({afterLineNumber:o.originalRange.endLineNumberExclusive-1,domNode:h(),heightInPx:o.modifiedHeightInPx,marginDomNode:t,showInHiddenAreas:!0,suppressMouseDown:!0})}else{let n=o.modifiedHeightInPx-o.originalHeightInPx;if(n>0){if(v?.lineRangeMapping.original.delta(-1).deltaLength(2).contains(o.originalRange.endLineNumberExclusive-1))continue;r.push({afterLineNumber:o.originalRange.endLineNumberExclusive-1,domNode:h(),heightInPx:n,showInHiddenAreas:!0,suppressMouseDown:!0})}else{if(v?.lineRangeMapping.modified.delta(-1).deltaLength(2).contains(o.modifiedRange.endLineNumberExclusive-1))continue;function r(){let e=document.createElement(`div`);return e.className=`arrow-revert-change `+RN.asClassName(W.arrowRight),t.add(G(e,`mousedown`,e=>e.stopPropagation())),t.add(G(e,`click`,e=>{e.stopPropagation(),i.revert(o.diff)})),J(`div`,{},e)}let s;o.diff&&o.diff.modified.isEmpty&&this._options.shouldRenderOldRevertArrows.read(e)&&(s=r()),a.push({afterLineNumber:o.modifiedRange.endLineNumberExclusive-1,domNode:h(),heightInPx:-n,marginDomNode:s,showInHiddenAreas:!0,suppressMouseDown:!0})}}for(let t of m.read(e)??[]){if(!v?.lineRangeMapping.original.intersect(t.originalRange)||!v?.lineRangeMapping.modified.intersect(t.modifiedRange))continue;let e=t.modifiedHeightInPx-t.originalHeightInPx;e>0?r.push({afterLineNumber:t.originalRange.endLineNumberExclusive-1,domNode:h(),heightInPx:e,showInHiddenAreas:!0,suppressMouseDown:!0}):a.push({afterLineNumber:t.modifiedRange.endLineNumberExclusive-1,domNode:h(),heightInPx:-e,showInHiddenAreas:!0,suppressMouseDown:!0})}return{orig:r,mod:a}});let _=!1;this._register(this._editors.original.onDidScrollChange(e=>{e.scrollLeftChanged&&!_&&(_=!0,this._editors.modified.setScrollLeft(e.scrollLeft),_=!1)})),this._register(this._editors.modified.onDidScrollChange(e=>{e.scrollLeftChanged&&!_&&(_=!0,this._editors.original.setScrollLeft(e.scrollLeft),_=!1)})),this._originalScrollTop=fW(this._editors.original.onDidScrollChange,()=>this._editors.original.getScrollTop()),this._modifiedScrollTop=fW(this._editors.modified.onDidScrollChange,()=>this._editors.modified.getScrollTop()),this._register(oW(e=>{let t=this._originalScrollTop.read(e)-(this._originalScrollOffsetAnimated.get()-this._modifiedScrollOffsetAnimated.read(e))-(this._originalTopPadding.get()-this._modifiedTopPadding.read(e));t!==this._editors.modified.getScrollTop()&&this._editors.modified.setScrollTop(t,1)})),this._register(oW(e=>{let t=this._modifiedScrollTop.read(e)-(this._modifiedScrollOffsetAnimated.get()-this._originalScrollOffsetAnimated.read(e))-(this._modifiedTopPadding.get()-this._originalTopPadding.read(e));t!==this._editors.original.getScrollTop()&&this._editors.original.setScrollTop(t,1)})),this._register(oW(e=>{let t=this._diffModel.read(e)?.movedTextToCompare.read(e),n=0;if(t){let e=this._editors.original.getTopForLineNumber(t.lineRangeMapping.original.startLineNumber,!0)-this._originalTopPadding.get();n=this._editors.modified.getTopForLineNumber(t.lineRangeMapping.modified.startLineNumber,!0)-this._modifiedTopPadding.get()-e}n>0?(this._modifiedTopPadding.set(0,void 0),this._originalTopPadding.set(n,void 0)):n<0?(this._modifiedTopPadding.set(-n,void 0),this._originalTopPadding.set(0,void 0)):setTimeout(()=>{this._modifiedTopPadding.set(0,void 0),this._originalTopPadding.set(0,void 0)},400),this._editors.modified.hasTextFocus()?this._originalScrollOffset.set(this._modifiedScrollOffset.get()-n,void 0,!0):this._modifiedScrollOffset.set(this._originalScrollOffset.get()+n,void 0,!0)}))}};V$=wit([Tit(8,YY),Tit(9,lV)],V$);function Eit(e,t,n,r,i,a){let o=new fT(Dit(e,r)),s=new fT(Dit(t,i)),c=e.getOption(67),l=t.getOption(67),u=[],d=0,f=0;function p(e,t){for(;;){let n=o.peek(),r=s.peek();if(n&&n.lineNumber>=e&&(n=void 0),r&&r.lineNumber>=t&&(r=void 0),!n&&!r)break;let i=n?n.lineNumber-d:Number.MAX_VALUE,a=r?r.lineNumber-f:Number.MAX_VALUE;i<a?(o.dequeue(),r={lineNumber:n.lineNumber-d+f,heightInPx:0}):i>a?(s.dequeue(),n={lineNumber:r.lineNumber-f+d,heightInPx:0}):(o.dequeue(),s.dequeue()),u.push({originalRange:fL.ofLength(n.lineNumber,1),modifiedRange:fL.ofLength(r.lineNumber,1),originalHeightInPx:c+n.heightInPx,modifiedHeightInPx:l+r.heightInPx,diff:void 0})}}for(let t of n){let n=t.lineRangeMapping;p(n.original.startLineNumber,n.modified.startLineNumber);let r=!0,i=n.modified.startLineNumber,m=n.original.startLineNumber;function h(e,n,a=!1){if(e<m||n<i)return;if(r)r=!1;else if(!a&&(e===m||n===i))return;let d=new fL(m,e),f=new fL(i,n);if(d.isEmpty&&f.isEmpty)return;let p=o.takeWhile(t=>t.lineNumber<e)?.reduce((e,t)=>e+t.heightInPx,0)??0,h=s.takeWhile(e=>e.lineNumber<n)?.reduce((e,t)=>e+t.heightInPx,0)??0;u.push({originalRange:d,modifiedRange:f,originalHeightInPx:d.length*c+p,modifiedHeightInPx:f.length*l+h,diff:t.lineRangeMapping}),m=e,i=n}if(a)for(let t of n.innerChanges||[]){t.originalRange.startColumn>1&&t.modifiedRange.startColumn>1&&h(t.originalRange.startLineNumber,t.modifiedRange.startLineNumber);let n=e.getModel(),r=t.originalRange.endLineNumber<=n.getLineCount()?n.getLineMaxColumn(t.originalRange.endLineNumber):2**53-1;t.originalRange.endColumn<r&&h(t.originalRange.endLineNumber,t.modifiedRange.endLineNumber)}h(n.original.endLineNumberExclusive,n.modified.endLineNumberExclusive,!0),d=n.original.endLineNumberExclusive,f=n.modified.endLineNumberExclusive}return p(Number.MAX_VALUE,Number.MAX_VALUE),u}function Dit(e,t){let n=[],r=[],i=e.getOption(147).wrappingColumn!==-1,a=e._getViewModel().coordinatesConverter,o=e.getOption(67);if(i)for(let t=1;t<=e.getModel().getLineCount();t++){let e=a.getModelLineViewLineCount(t);e>1&&r.push({lineNumber:t,heightInPx:o*(e-1)})}for(let r of e.getWhitespaces()){if(t.has(r.id))continue;let e=r.afterLineNumber===0?0:a.convertViewPositionToModelPosition(new V(r.afterLineNumber,1)).lineNumber;n.push({lineNumber:e,heightInPx:r.height})}return Irt(n,r,e=>e.lineNumber,(e,t)=>({lineNumber:e.lineNumber,heightInPx:e.heightInPx+t.heightInPx}))}function H$(e){return e.innerChanges?e.innerChanges.every(e=>Oit(e.modifiedRange)&&Oit(e.originalRange)||e.originalRange.equalsRange(new H(1,1,1,1))):!1}function Oit(e){return e.startLineNumber===e.endLineNumber}var U$=class e extends R{static#e=this.movedCodeBlockPadding=4;constructor(t,n,r,i,a){super(),this._rootElement=t,this._diffModel=n,this._originalEditorLayoutInfo=r,this._modifiedEditorLayoutInfo=i,this._editors=a,this._originalScrollTop=fW(this,this._editors.original.onDidScrollChange,()=>this._editors.original.getScrollTop()),this._modifiedScrollTop=fW(this,this._editors.modified.onDidScrollChange,()=>this._editors.modified.getScrollTop()),this._viewZonesChanged=mW(`onDidChangeViewZones`,this._editors.modified.onDidChangeViewZones),this.width=ZU(this,0),this._modifiedViewZonesChangedSignal=mW(`modified.onDidChangeViewZones`,this._editors.modified.onDidChangeViewZones),this._originalViewZonesChangedSignal=mW(`original.onDidChangeViewZones`,this._editors.original.onDidChangeViewZones),this._state=rW(this,(t,n)=>{this._element.replaceChildren();let r=this._diffModel.read(t),i=r?.diff.read(t)?.movedTexts;if(!i||i.length===0){this.width.set(0,void 0);return}this._viewZonesChanged.read(t);let a=this._originalEditorLayoutInfo.read(t),o=this._modifiedEditorLayoutInfo.read(t);if(!a||!o){this.width.set(0,void 0);return}this._modifiedViewZonesChangedSignal.read(t),this._originalViewZonesChangedSignal.read(t);let s=i.map(e=>{function n(e,t){return(t.getTopForLineNumber(e.startLineNumber,!0)+t.getTopForLineNumber(e.endLineNumberExclusive,!0))/2}let r=n(e.lineRangeMapping.original,this._editors.original),i=this._originalScrollTop.read(t),a=n(e.lineRangeMapping.modified,this._editors.modified),o=this._modifiedScrollTop.read(t),s=r-i,c=a-o;return{range:new aL(Math.min(r,a),Math.max(r,a)),from:s,to:c,fromWithoutScroll:r,toWithoutScroll:a,move:e}});s.sort(ZRe(lT(e=>e.fromWithoutScroll>e.toWithoutScroll,QRe),lT(e=>e.fromWithoutScroll>e.toWithoutScroll?e.fromWithoutScroll:-e.toWithoutScroll,uT)));let c=kit.compute(s.map(e=>e.range)),l=a.verticalScrollbarWidth,u=(c.getTrackCount()-1)*10+20,d=l+u+(o.contentLeft-e.movedCodeBlockPadding),f=0;for(let e of s){let t=c.getTrack(f),i=l+10+t*10,a=d,s=o.glyphMarginWidth+o.lineNumbersWidth,u=document.createElementNS(`http://www.w3.org/2000/svg`,`rect`);u.classList.add(`arrow-rectangle`),u.setAttribute(`x`,`${a-s}`),u.setAttribute(`y`,`${e.to-18/2}`),u.setAttribute(`width`,`${s}`),u.setAttribute(`height`,`18`),this._element.appendChild(u);let p=document.createElementNS(`http://www.w3.org/2000/svg`,`g`),m=document.createElementNS(`http://www.w3.org/2000/svg`,`path`);m.setAttribute(`d`,`M 0 ${e.from} L ${i} ${e.from} L ${i} ${e.to} L ${a-15} ${e.to}`),m.setAttribute(`fill`,`none`),p.appendChild(m);let h=document.createElementNS(`http://www.w3.org/2000/svg`,`polygon`);h.classList.add(`arrow`),n.add(oW(t=>{m.classList.toggle(`currentMove`,e.move===r.activeMovedText.read(t)),h.classList.toggle(`currentMove`,e.move===r.activeMovedText.read(t))})),h.setAttribute(`points`,`${a-15},${e.to-15/2} ${a},${e.to} ${a-15},${e.to+15/2}`),p.appendChild(h),this._element.appendChild(p),f++}this.width.set(u,void 0)}),this._element=document.createElementNS(`http://www.w3.org/2000/svg`,`svg`),this._element.setAttribute(`class`,`moved-blocks-lines`),this._rootElement.appendChild(this._element),this._register(fD(()=>this._element.remove())),this._register(oW(t=>{let n=this._originalEditorLayoutInfo.read(t),r=this._modifiedEditorLayoutInfo.read(t);!n||!r||(this._element.style.left=`${n.width-n.verticalScrollbarWidth}px`,this._element.style.height=`${n.height}px`,this._element.style.width=`${n.verticalScrollbarWidth+n.contentLeft-e.movedCodeBlockPadding+this.width.read(t)}px`)})),this._register(gW(this._state));let o=eW(e=>{let t=this._diffModel.read(e)?.diff.read(e);return t?t.movedTexts.map(e=>({move:e,original:new f$(dW(e.lineRangeMapping.original.startLineNumber-1),18),modified:new f$(dW(e.lineRangeMapping.modified.startLineNumber-1),18)})):[]});this._register(m$(this._editors.original,o.map(e=>e.map(e=>e.original)))),this._register(m$(this._editors.modified,o.map(e=>e.map(e=>e.modified)))),this._register(lW((e,t)=>{let n=o.read(e);for(let e of n)t.add(new Ait(this._editors.original,e.original,e.move,`original`,this._diffModel.get())),t.add(new Ait(this._editors.modified,e.modified,e.move,`modified`,this._diffModel.get()))}));let s=mW(`original.onDidFocusEditorWidget`,e=>this._editors.original.onDidFocusEditorWidget(()=>setTimeout(()=>e(void 0),0))),c=mW(`modified.onDidFocusEditorWidget`,e=>this._editors.modified.onDidFocusEditorWidget(()=>setTimeout(()=>e(void 0),0))),l=`modified`;this._register(cW({createEmptyChangeSummary:()=>void 0,handleChange:(e,t)=>(e.didChange(s)&&(l=`original`),e.didChange(c)&&(l=`modified`),!0)},e=>{s.read(e),c.read(e);let t=this._diffModel.read(e);if(!t)return;let n=t.diff.read(e),r;if(n&&l===`original`){let t=this._editors.originalCursor.read(e);t&&(r=n.movedTexts.find(e=>e.lineRangeMapping.original.contains(t.lineNumber)))}if(n&&l===`modified`){let t=this._editors.modifiedCursor.read(e);t&&(r=n.movedTexts.find(e=>e.lineRangeMapping.modified.contains(t.lineNumber)))}r!==t.movedTextToCompare.get()&&t.movedTextToCompare.set(void 0,void 0),t.setActiveMovedText(r)}))}},kit=class e{static compute(t){let n=[],r=[];for(let e of t){let t=n.findIndex(t=>!t.intersectsStrict(e));t===-1&&(n.length>=6?t=zWe(n,lT(t=>t.intersectWithRangeLength(e),uT)):(t=n.length,n.push(new PWe))),n[t].addRange(e),r.push(t)}return new e(n.length,r)}constructor(e,t){this._trackCount=e,this.trackPerLineIdx=t}getTrack(e){return this.trackPerLineIdx[e]}getTrackCount(){return this._trackCount}},Ait=class extends d${constructor(e,t,n,r,i){let a=pN(`div.diff-hidden-lines-widget`);super(e,t,a.root),this._editor=e,this._move=n,this._kind=r,this._diffModel=i,this._nodes=pN(`div.diff-moved-code-block`,{style:{marginRight:`4px`}},[pN(`div.text-content@textContent`),pN(`div.action-bar@actionBar`)]),a.root.appendChild(this._nodes.root);let o=fW(this._editor.onDidLayoutChange,()=>this._editor.getLayoutInfo());this._register(p$(this._nodes.root,{paddingRight:o.map(e=>e.verticalScrollbarWidth)}));let s;s=n.changes.length>0?this._kind===`original`?F(`codeMovedToWithChanges`,`Code moved with changes to line {0}-{1}`,this._move.lineRangeMapping.modified.startLineNumber,this._move.lineRangeMapping.modified.endLineNumberExclusive-1):F(`codeMovedFromWithChanges`,`Code moved with changes from line {0}-{1}`,this._move.lineRangeMapping.original.startLineNumber,this._move.lineRangeMapping.original.endLineNumberExclusive-1):this._kind===`original`?F(`codeMovedTo`,`Code moved to line {0}-{1}`,this._move.lineRangeMapping.modified.startLineNumber,this._move.lineRangeMapping.modified.endLineNumberExclusive-1):F(`codeMovedFrom`,`Code moved from line {0}-{1}`,this._move.lineRangeMapping.original.startLineNumber,this._move.lineRangeMapping.original.endLineNumberExclusive-1);let c=this._register(new dG(this._nodes.actionBar,{highlightToggledItems:!0})),l=new MN(``,s,``,!1);c.push(l,{icon:!1,label:!0});let u=new MN(``,`Compare`,RN.asClassName(W.compareChanges),!0,()=>{this._editor.focus(),this._diffModel.movedTextToCompare.set(this._diffModel.movedTextToCompare.get()===n?void 0:this._move,void 0)});this._register(oW(e=>{u.checked=this._diffModel.movedTextToCompare.read(e)===n})),c.push(u,{icon:!1,label:!0})}},jit=class extends R{constructor(e,t,n,r){super(),this._editors=e,this._diffModel=t,this._options=n,this._decorations=eW(this,e=>{let t=this._diffModel.read(e),n=t?.diff.read(e);if(!n)return null;let r=this._diffModel.read(e).movedTextToCompare.read(e),i=this._options.renderIndicators.read(e),a=this._options.showEmptyDecorations.read(e),o=[],s=[];if(!r)for(let r of n.mappings)if(r.lineRangeMapping.original.isEmpty||o.push({range:r.lineRangeMapping.original.toInclusiveRange(),options:i?w$:sit}),r.lineRangeMapping.modified.isEmpty||s.push({range:r.lineRangeMapping.modified.toInclusiveRange(),options:i?C$:oit}),r.lineRangeMapping.modified.isEmpty||r.lineRangeMapping.original.isEmpty)r.lineRangeMapping.original.isEmpty||o.push({range:r.lineRangeMapping.original.toInclusiveRange(),options:k$}),r.lineRangeMapping.modified.isEmpty||s.push({range:r.lineRangeMapping.modified.toInclusiveRange(),options:E$});else{let n=this._options.useTrueInlineDiffRendering.read(e)&&H$(r.lineRangeMapping);for(let e of r.lineRangeMapping.innerChanges||[])if(r.lineRangeMapping.original.contains(e.originalRange.startLineNumber)&&o.push({range:e.originalRange,options:e.originalRange.isEmpty()&&a?A$:O$}),r.lineRangeMapping.modified.contains(e.modifiedRange.startLineNumber)&&s.push({range:e.modifiedRange,options:e.modifiedRange.isEmpty()&&a&&!n?D$:T$}),n){let n=t.model.original.getValueInRange(e.originalRange);s.push({range:e.modifiedRange,options:{description:`deleted-text`,before:{content:n,inlineClassName:`inline-deleted-text`},zIndex:1e5,showIfCollapsed:!0}})}}if(r)for(let e of r.changes){let t=e.original.toInclusiveRange();t&&o.push({range:t,options:i?w$:sit});let n=e.modified.toInclusiveRange();n&&s.push({range:n,options:i?C$:oit});for(let t of e.innerChanges||[])o.push({range:t.originalRange,options:O$}),s.push({range:t.modifiedRange,options:T$})}let c=this._diffModel.read(e).activeMovedText.read(e);for(let e of n.movedTexts)o.push({range:e.lineRangeMapping.original.toInclusiveRange(),options:{description:`moved`,blockClassName:`movedOriginal`+(e===c?` currentMove`:``),blockPadding:[U$.movedCodeBlockPadding,0,U$.movedCodeBlockPadding,U$.movedCodeBlockPadding]}}),s.push({range:e.lineRangeMapping.modified.toInclusiveRange(),options:{description:`moved`,blockClassName:`movedModified`+(e===c?` currentMove`:``),blockPadding:[4,0,4,4]}});return{originalDecorations:o,modifiedDecorations:s}}),this._register(l$(this._editors.original,this._decorations.map(e=>e?.originalDecorations||[]))),this._register(l$(this._editors.modified,this._decorations.map(e=>e?.modifiedDecorations||[])))}},Mit=class{resetSash(){this._sashRatio.set(void 0,void 0)}constructor(e,t){this._options=e,this.dimensions=t,this.sashLeft=tW(this,e=>{let t=this._sashRatio.read(e)??this._options.splitViewDefaultRatio.read(e);return this._computeSashLeft(t,e)},(e,t)=>{let n=this.dimensions.width.get();this._sashRatio.set(e/n,t)}),this._sashRatio=ZU(this,void 0)}_computeSashLeft(e,t){let n=this.dimensions.width.read(t),r=Math.floor(this._options.splitViewDefaultRatio.read(t)*n),i=this._options.enableSplitViewResizing.read(t)?Math.floor(e*n):r;return n<=200?r:i<100?100:i>n-100?n-100:i}},Nit=class extends R{constructor(e,t,n,r,i,a){super(),this._domNode=e,this._dimensions=t,this._enabled=n,this._boundarySashes=r,this.sashLeft=i,this._resetSash=a,this._sash=this._register(new Gq(this._domNode,{getVerticalSashTop:e=>0,getVerticalSashLeft:e=>this.sashLeft.get(),getVerticalSashHeight:e=>this._dimensions.height.get()},{orientation:0})),this._startSashPosition=void 0,this._register(this._sash.onDidStart(()=>{this._startSashPosition=this.sashLeft.get()})),this._register(this._sash.onDidChange(e=>{this.sashLeft.set(this._startSashPosition+(e.currentX-e.startX),void 0)})),this._register(this._sash.onDidEnd(()=>this._sash.layout())),this._register(this._sash.onDidReset(()=>this._resetSash())),this._register(oW(e=>{let t=this._boundarySashes.read(e);t&&(this._sash.orthogonalEndSash=t.bottom)})),this._register(oW(e=>{let t=this._enabled.read(e);this._sash.state=t?3:0,this.sashLeft.read(e),this._dimensions.height.read(e),this._sash.layout()}))}},Pit=class extends R{constructor(e,t,n){super(),this._editor=e,this._domNode=t,this.itemProvider=n,this.scrollTop=fW(this,this._editor.onDidScrollChange,e=>this._editor.getScrollTop()),this.isScrollTopZero=this.scrollTop.map(e=>e===0),this.modelAttached=fW(this,this._editor.onDidChangeModel,e=>this._editor.hasModel()),this.editorOnDidChangeViewZones=mW(`onDidChangeViewZones`,this._editor.onDidChangeViewZones),this.editorOnDidContentSizeChange=mW(`onDidContentSizeChange`,this._editor.onDidContentSizeChange),this.domNodeSizeChanged=hW(`domNodeSizeChanged`),this.views=new Map,this._domNode.className=`gutter monaco-editor`;let r=this._domNode.appendChild(pN(`div.scroll-decoration`,{role:`presentation`,ariaHidden:`true`,style:{width:`100%`}}).root),i=new ResizeObserver(()=>{KU(e=>{this.domNodeSizeChanged.trigger(e)})});i.observe(this._domNode),this._register(fD(()=>i.disconnect())),this._register(oW(e=>{r.className=this.isScrollTopZero.read(e)?``:`scroll-decoration`})),this._register(oW(e=>this.render(e)))}dispose(){super.dispose(),tN(this._domNode)}render(e){if(!this.modelAttached.read(e))return;this.domNodeSizeChanged.read(e),this.editorOnDidChangeViewZones.read(e),this.editorOnDidContentSizeChange.read(e);let t=this.scrollTop.read(e),n=this._editor.getVisibleRanges(),r=new Set(this.views.keys()),i=aL.ofStartAndLength(0,this._domNode.clientHeight);if(!i.isEmpty)for(let a of n){let n=new fL(a.startLineNumber,a.endLineNumber+1),o=this.itemProvider.getIntersectingGutterItems(n,e);KU(e=>{for(let a of o){if(!a.range.intersect(n))continue;r.delete(a.id);let o=this.views.get(a.id);if(o)o.item.set(a,e);else{let e=document.createElement(`div`);this._domNode.appendChild(e);let t=ZU(`item`,a);o=new Fit(t,this.itemProvider.createView(t,e),e),this.views.set(a.id,o)}let s=a.range.startLineNumber<=this._editor.getModel().getLineCount()?this._editor.getTopForLineNumber(a.range.startLineNumber,!0)-t:this._editor.getBottomForLineNumber(a.range.startLineNumber-1,!1)-t,c=(a.range.endLineNumberExclusive===1?Math.max(s,this._editor.getTopForLineNumber(a.range.startLineNumber,!1)-t):Math.max(s,this._editor.getBottomForLineNumber(a.range.endLineNumberExclusive-1,!0)-t))-s;o.domNode.style.top=`${s}px`,o.domNode.style.height=`${c}px`,o.gutterItemView.layout(aL.ofStartAndLength(s,c),i)}})}for(let e of r){let t=this.views.get(e);t.gutterItemView.dispose(),t.domNode.remove(),this.views.delete(e)}}},Fit=class{constructor(e,t,n){this.item=e,this.gutterItemView=t,this.domNode=n}},Iit=class extends NN{constructor(e){super(),this._getContext=e}runAction(e,t){let n=this._getContext();return super.runAction(e,n)}},Lit=class extends vL{constructor(e){super(),this._textModel=e}getValueOfRange(e){return this._textModel.getValueInRange(e)}get length(){let e=this._textModel.getLineCount(),t=this._textModel.getLineLength(e);return new mL(e-1,t)}},Rit=class extends R{constructor(e,t,n={orientation:0}){super(),this.submenuActionViewItems=[],this.hasSecondaryActions=!1,this._onDidChangeDropdownVisibility=this._register(new xBe),this.onDidChangeDropdownVisibility=this._onDidChangeDropdownVisibility.event,this.disposables=this._register(new L),n.hoverDelegate=n.hoverDelegate??this._register(SW()),this.options=n,this.toggleMenuAction=this._register(new W$(()=>this.toggleMenuActionViewItem?.show(),n.toggleMenuTitle)),this.element=document.createElement(`div`),this.element.className=`monaco-toolbar`,e.appendChild(this.element),this.actionBar=this._register(new dG(this.element,{orientation:n.orientation,ariaLabel:n.ariaLabel,actionRunner:n.actionRunner,allowContextMenu:n.allowContextMenu,highlightToggledItems:n.highlightToggledItems,hoverDelegate:n.hoverDelegate,actionViewItemProvider:(e,r)=>{if(e.id===W$.ID)return this.toggleMenuActionViewItem=new KW(e,e.menuActions,t,{actionViewItemProvider:this.options.actionViewItemProvider,actionRunner:this.actionRunner,keybindingProvider:this.options.getKeyBinding,classNames:RN.asClassNameArray(n.moreIcon??W.toolBarMore),anchorAlignmentProvider:this.options.anchorAlignmentProvider,menuAsChild:!!this.options.renderDropdownAsChildElement,skipTelemetry:this.options.skipTelemetry,isMenu:!0,hoverDelegate:this.options.hoverDelegate}),this.toggleMenuActionViewItem.setActionContext(this.actionBar.context),this.disposables.add(this._onDidChangeDropdownVisibility.add(this.toggleMenuActionViewItem.onDidChangeVisibility)),this.toggleMenuActionViewItem;if(n.actionViewItemProvider){let t=n.actionViewItemProvider(e,r);if(t)return t}if(e instanceof FN){let n=new KW(e,e.actions,t,{actionViewItemProvider:this.options.actionViewItemProvider,actionRunner:this.actionRunner,keybindingProvider:this.options.getKeyBinding,classNames:e.class,anchorAlignmentProvider:this.options.anchorAlignmentProvider,menuAsChild:!!this.options.renderDropdownAsChildElement,skipTelemetry:this.options.skipTelemetry,hoverDelegate:this.options.hoverDelegate});return n.setActionContext(this.actionBar.context),this.submenuActionViewItems.push(n),this.disposables.add(this._onDidChangeDropdownVisibility.add(n.onDidChangeVisibility)),n}}}))}set actionRunner(e){this.actionBar.actionRunner=e}get actionRunner(){return this.actionBar.actionRunner}getElement(){return this.element}getItemAction(e){return this.actionBar.getAction(e)}setActions(e,t){this.clear();let n=e?e.slice(0):[];this.hasSecondaryActions=!!(t&&t.length>0),this.hasSecondaryActions&&t&&(this.toggleMenuAction.menuActions=t.slice(0),n.push(this.toggleMenuAction)),n.forEach(e=>{this.actionBar.push(e,{icon:this.options.icon??!0,label:this.options.label??!1,keybinding:this.getKeybindingLabel(e)})})}getKeybindingLabel(e){return(this.options.getKeyBinding?.(e))?.getLabel()??void 0}clear(){this.submenuActionViewItems=[],this.disposables.clear(),this.actionBar.clear()}dispose(){this.clear(),this.disposables.dispose(),super.dispose()}},W$=class e extends MN{static#e=this.ID=`toolbar.toggle.more`;constructor(t,n){n||=F(`moreActions`,`More Actions...`),super(e.ID,n,void 0,!0),this._menuActions=[],this.toggleDropdownMenu=t}async run(){this.toggleDropdownMenu()}get menuActions(){return this._menuActions}set menuActions(e){this._menuActions=e}},zit=function(e,t,n,r){var i=arguments.length,a=i<3?t:r===null?r=Object.getOwnPropertyDescriptor(t,n):r,o;if(typeof Reflect==`object`&&typeof Reflect.decorate==`function`)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},G$=function(e,t){return function(n,r){t(n,r,e)}},K$=class extends Rit{constructor(e,t,n,r,i,a,o,s){super(e,i,{getKeyBinding:e=>a.lookupKeybinding(e.id)??void 0,...t,allowContextMenu:!0,skipTelemetry:typeof t?.telemetrySource==`string`}),this._options=t,this._menuService=n,this._contextKeyService=r,this._contextMenuService=i,this._keybindingService=a,this._commandService=o,this._sessionDisposables=this._store.add(new L);let c=t?.telemetrySource;c&&this._store.add(this.actionBar.onDidRun(e=>s.publicLog2(`workbenchActionExecuted`,{id:e.action.id,from:c})))}setActions(e,t=[],n){this._sessionDisposables.clear();let r=e.slice(),i=t.slice(),a=[],o=0,s=[],c=!1;if(this._options?.hiddenItemStrategy!==-1)for(let e=0;e<r.length;e++){let t=r[e];!(t instanceof jP)&&!(t instanceof AP)||t.hideActions&&(a.push(t.hideActions.toggle),t.hideActions.toggle.checked&&o++,t.hideActions.isHidden&&(c=!0,r[e]=void 0,this._options?.hiddenItemStrategy!==0&&(s[e]=t)))}if(this._options?.overflowBehavior!==void 0){let e=Y1e(new Set(this._options.overflowBehavior.exempted),lE.map(r,e=>e?.id)),t=this._options.overflowBehavior.maxItems-e.size,n=0;for(let i=0;i<r.length;i++){let a=r[i];a&&(n++,!e.has(a.id)&&n>=t&&(r[i]=void 0,s[i]=a))}}Yw(r),Yw(s),super.setActions(r,PN.join(s,i)),(a.length>0||r.length>0)&&this._sessionDisposables.add(G(this.getElement(),`contextmenu`,e=>{let t=new HA(oM(this.getElement()),e),r=this.getItemAction(t.target);if(!r)return;t.preventDefault(),t.stopPropagation();let i=[];if(r instanceof jP&&r.menuKeybinding)i.push(r.menuKeybinding);else if(!(r instanceof AP||r instanceof W$)){let e=!!this._keybindingService.lookupKeybinding(r.id);i.push(i5e(this._commandService,this._keybindingService,r.id,void 0,e))}if(a.length>0){let e=!1;if(o===1&&this._options?.hiddenItemStrategy===0){e=!0;for(let e=0;e<a.length;e++)if(a[e].checked){a[e]=IN({id:r.id,label:r.label,checked:!0,enabled:!1,run(){}});break}}if(!e&&(r instanceof jP||r instanceof AP)){if(!r.hideActions)return;i.push(r.hideActions.hide)}else i.push(IN({id:`label`,label:F(`hide`,`Hide`),enabled:!1,run(){}}))}let s=PN.join(i,a);this._options?.resetMenu&&!n&&(n=[this._options.resetMenu]),c&&n&&(s.push(new PN),s.push(IN({id:`resetThisMenu`,label:F(`resetThisMenu`,`Reset Menu`),run:()=>this._menuService.resetHiddenStates(n)}))),s.length!==0&&this._contextMenuService.showContextMenu({getAnchor:()=>t,getActions:()=>s,menuId:this._options?.contextMenu,menuActionOptions:{renderShortTitle:!0,...this._options?.menuOptions},skipTelemetry:typeof this._options?.telemetrySource==`string`,contextKeyService:this._contextKeyService})}))}};K$=zit([G$(2,DP),G$(3,uP),G$(4,lV),G$(5,uV),G$(6,zN),G$(7,PP)],K$);var q$=class extends K${constructor(e,t,n,r,i,a,o,s,c){super(e,{resetMenu:t,...n},r,i,a,o,s,c),this._onDidChangeMenuItems=this._store.add(new B),this.onDidChangeMenuItems=this._onDidChangeMenuItems.event;let l=this._store.add(r.createMenu(t,i,{emitEventsForSubmenuChanges:!0})),u=()=>{let t=[],r=[];oG(l,n?.menuOptions,{primary:t,secondary:r},n?.toolbarOptions?.primaryGroup,n?.toolbarOptions?.shouldInlineSubmenu,n?.toolbarOptions?.useSeparatorsInPrimaryActions),e.classList.toggle(`has-no-actions`,t.length===0&&r.length===0),super.setActions(t,r)};this._store.add(l.onDidChange(()=>{u(),this._onDidChangeMenuItems.fire(this)})),u()}setActions(){throw new nD(`This toolbar is populated from a menu.`)}};q$=zit([G$(3,DP),G$(4,uP),G$(5,lV),G$(6,uV),G$(7,zN),G$(8,PP)],q$);var Bit=function(e,t,n,r){var i=arguments.length,a=i<3?t:r===null?r=Object.getOwnPropertyDescriptor(t,n):r,o;if(typeof Reflect==`object`&&typeof Reflect.decorate==`function`)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},J$=function(e,t){return function(n,r){t(n,r,e)}},Y$=[],X$=35,Z$=class extends R{constructor(e,t,n,r,i,a,o,s,c){super(),this._diffModel=t,this._editors=n,this._options=r,this._sashLayout=i,this._boundarySashes=a,this._instantiationService=o,this._contextKeyService=s,this._menuService=c,this._menu=this._register(this._menuService.createMenu(EP.DiffEditorHunkToolbar,this._contextKeyService)),this._actions=fW(this,this._menu.onDidChange,()=>this._menu.getActions()),this._hasActions=this._actions.map(e=>e.length>0),this._showSash=eW(this,e=>this._options.renderSideBySide.read(e)&&this._hasActions.read(e)),this.width=eW(this,e=>this._hasActions.read(e)?X$:0),this.elements=pN(`div.gutter@gutter`,{style:{position:`absolute`,height:`100%`,width:X$+`px`}},[]),this._currentDiff=eW(this,e=>{let t=this._diffModel.read(e);if(!t)return;let n=t.diff.read(e)?.mappings,r=this._editors.modifiedCursor.read(e);if(r)return n?.find(e=>e.lineRangeMapping.modified.contains(r.lineNumber))}),this._selectedDiffs=eW(this,e=>{let t=this._diffModel.read(e)?.diff.read(e);if(!t)return Y$;let n=this._editors.modifiedSelections.read(e);if(n.every(e=>e.isEmpty()))return Y$;let r=new pL(n.map(e=>fL.fromRangeInclusive(e))),i=t.mappings.filter(e=>e.lineRangeMapping.innerChanges&&r.intersects(e.lineRangeMapping.modified)).map(e=>({mapping:e,rangeMappings:e.lineRangeMapping.innerChanges.filter(e=>n.some(t=>H.areIntersecting(e.modifiedRange,t)))}));return i.length===0||i.every(e=>e.rangeMappings.length===0)?Y$:i}),this._register(Lrt(e,this.elements.root)),this._register(G(this.elements.root,`click`,()=>{this._editors.modified.focus()})),this._register(p$(this.elements.root,{display:this._hasActions.map(e=>e?`block`:`none`)})),iW(this,t=>this._showSash.read(t)?new Nit(e,this._sashLayout.dimensions,this._options.enableSplitViewResizing,this._boundarySashes,tW(this,e=>this._sashLayout.sashLeft.read(e)-X$,(e,t)=>this._sashLayout.sashLeft.set(e+X$,t)),()=>this._sashLayout.resetSash()):void 0).recomputeInitiallyAndOnChange(this._store),this._register(new Pit(this._editors.modified,this.elements.root,{getIntersectingGutterItems:(e,t)=>{let n=this._diffModel.read(t);if(!n)return[];let r=n.diff.read(t);if(!r)return[];let i=this._selectedDiffs.read(t);if(i.length>0)return[new Vit(SL.fromRangeMappings(i.flatMap(e=>e.rangeMappings)),!0,EP.DiffEditorSelectionToolbar,void 0,n.model.original.uri,n.model.modified.uri)];let a=this._currentDiff.read(t);return r.mappings.map(e=>new Vit(e.lineRangeMapping.withInnerChangesFromLineRanges(),e.lineRangeMapping===a?.lineRangeMapping,EP.DiffEditorHunkToolbar,void 0,n.model.original.uri,n.model.modified.uri))},createView:(e,t)=>this._instantiationService.createInstance(Q$,e,t,this)})),this._register(G(this.elements.gutter,K.MOUSE_WHEEL,e=>{this._editors.modified.getOption(104).handleMouseWheel&&this._editors.modified.delegateScrollFromMouseWheelEvent(e)},{passive:!1}))}computeStagedValue(e){let t=e.innerChanges??[],n=new Lit(this._editors.modifiedModel.get()),r=new Lit(this._editors.original.getModel());return new hL(t.map(e=>e.toTextEdit(n))).apply(r)}layout(e){this.elements.gutter.style.left=e+`px`}};Z$=Bit([J$(6,DN),J$(7,uP),J$(8,DP)],Z$);var Vit=class{constructor(e,t,n,r,i,a){this.mapping=e,this.showAlways=t,this.menuId=n,this.rangeOverride=r,this.originalUri=i,this.modifiedUri=a}get id(){return this.mapping.modified.toString()}get range(){return this.rangeOverride??this.mapping.modified}},Q$=class extends R{constructor(e,t,n,r){super(),this._item=e,this._elements=pN(`div.gutterItem`,{style:{height:`20px`,width:`34px`}},[pN(`div.background@background`,{},[]),pN(`div.buttons@buttons`,{},[])]),this._showAlways=this._item.map(this,e=>e.showAlways),this._menuId=this._item.map(this,e=>e.menuId),this._isSmall=ZU(this,!1),this._lastItemRange=void 0,this._lastViewRange=void 0;let i=this._register(r.createInstance(sV,`element`,!0,{position:{hoverPosition:1}}));this._register(u$(t,this._elements.root)),this._register(oW(e=>{let t=this._showAlways.read(e);this._elements.root.classList.toggle(`noTransition`,!0),this._elements.root.classList.toggle(`showAlways`,t),setTimeout(()=>{this._elements.root.classList.toggle(`noTransition`,!1)},0)})),this._register(lW((e,t)=>{this._elements.buttons.replaceChildren();let a=t.add(r.createInstance(q$,this._elements.buttons,this._menuId.read(e),{orientation:1,hoverDelegate:i,toolbarOptions:{primaryGroup:e=>e.startsWith(`primary`)},overflowBehavior:{maxItems:this._isSmall.read(e)?1:3},hiddenItemStrategy:0,actionRunner:new Iit(()=>{let e=this._item.get(),t=e.mapping;return{mapping:t,originalWithModifiedChanges:n.computeStagedValue(t),originalUri:e.originalUri,modifiedUri:e.modifiedUri}}),menuOptions:{shouldForwardArgs:!0}}));t.add(a.onDidChangeMenuItems(()=>{this._lastItemRange&&this.layout(this._lastItemRange,this._lastViewRange)}))}))}layout(e,t){this._lastItemRange=e,this._lastViewRange=t;let n=this._elements.buttons.clientHeight;this._isSmall.set(this._item.get().mapping.original.startLineNumber===1&&e.length<30,void 0),n=this._elements.buttons.clientHeight;let r=e.length/2-n/2,i=n,a=e.start+r,o=aL.tryCreate(i,t.endExclusive-i-n),s=aL.tryCreate(e.start+i,e.endExclusive-n-i);s&&o&&s.start<s.endExclusive&&(a=o.clip(a),a=s.clip(a)),this._elements.buttons.style.top=`${a-e.start}px`}};Q$=Bit([J$(3,DN)],Q$);function $$(e){return Hit.get(e)}var Hit=class e extends R{static#e=this._map=new Map;static get(t){let n=e._map.get(t);if(!n){n=new e(t),e._map.set(t,n);let r=t.onDidDispose(()=>{let n=e._map.get(t);n&&(e._map.delete(t),n.dispose(),r.dispose())})}return n}_beginUpdate(){this._updateCounter++,this._updateCounter===1&&(this._currentTransaction=new XU(()=>{}))}_endUpdate(){if(this._updateCounter--,this._updateCounter===0){let e=this._currentTransaction;this._currentTransaction=void 0,e.finish()}}constructor(e){super(),this.editor=e,this._updateCounter=0,this._currentTransaction=void 0,this._model=ZU(this,this.editor.getModel()),this.model=this._model,this.isReadonly=fW(this,this.editor.onDidChangeConfiguration,()=>this.editor.getOption(92)),this._versionId=vW({owner:this,lazy:!0},this.editor.getModel()?.getVersionId()??null),this.versionId=this._versionId,this._selections=vW({owner:this,equalsFn:RU(LU(_O.selectionsEqual)),lazy:!0},this.editor.getSelections()??null),this.selections=this._selections,this.isFocused=fW(this,e=>{let t=this.editor.onDidFocusEditorWidget(e),n=this.editor.onDidBlurEditorWidget(e);return{dispose(){t.dispose(),n.dispose()}}},()=>this.editor.hasWidgetFocus()),this.value=tW(this,e=>(this.versionId.read(e),this.model.read(e)?.getValue()??``),(e,t)=>{let n=this.model.get();n!==null&&e!==n.getValue()&&n.setValue(e)}),this.valueIsEmpty=eW(this,e=>(this.versionId.read(e),this.editor.getModel()?.getValueLength()===0)),this.cursorSelection=nW({owner:this,equalsFn:RU(_O.selectionsEqual)},e=>this.selections.read(e)?.[0]??null),this.onDidType=hW(this),this.scrollTop=fW(this.editor.onDidScrollChange,()=>this.editor.getScrollTop()),this.scrollLeft=fW(this.editor.onDidScrollChange,()=>this.editor.getScrollLeft()),this.layoutInfo=fW(this.editor.onDidLayoutChange,()=>this.editor.getLayoutInfo()),this.layoutInfoContentLeft=this.layoutInfo.map(e=>e.contentLeft),this.layoutInfoDecorationsLeft=this.layoutInfo.map(e=>e.decorationsLeft),this.contentWidth=fW(this.editor.onDidContentSizeChange,()=>this.editor.getContentWidth()),this._overlayWidgetCounter=0,this._register(this.editor.onBeginUpdate(()=>this._beginUpdate())),this._register(this.editor.onEndUpdate(()=>this._endUpdate())),this._register(this.editor.onDidChangeModel(()=>{this._beginUpdate();try{this._model.set(this.editor.getModel(),this._currentTransaction),this._forceUpdate()}finally{this._endUpdate()}})),this._register(this.editor.onDidType(e=>{this._beginUpdate();try{this._forceUpdate(),this.onDidType.trigger(this._currentTransaction,e)}finally{this._endUpdate()}})),this._register(this.editor.onDidChangeModelContent(e=>{this._beginUpdate();try{this._versionId.set(this.editor.getModel()?.getVersionId()??null,this._currentTransaction,e),this._forceUpdate()}finally{this._endUpdate()}})),this._register(this.editor.onDidChangeCursorSelection(e=>{this._beginUpdate();try{this._selections.set(this.editor.getSelections(),this._currentTransaction,e),this._forceUpdate()}finally{this._endUpdate()}}))}forceUpdate(e){this._beginUpdate();try{return this._forceUpdate(),e?e(this._currentTransaction):void 0}finally{this._endUpdate()}}_forceUpdate(){this._beginUpdate();try{this._model.set(this.editor.getModel(),this._currentTransaction),this._versionId.set(this.editor.getModel()?.getVersionId()??null,this._currentTransaction,void 0),this._selections.set(this.editor.getSelections(),this._currentTransaction,void 0)}finally{this._endUpdate()}}getOption(e){return fW(this,t=>this.editor.onDidChangeConfiguration(n=>{n.hasChanged(e)&&t(void 0)}),()=>this.editor.getOption(e))}setDecorations(e){let t=new L,n=this.editor.createDecorationsCollection();return t.add(sW({owner:this,debugName:()=>`Apply decorations from ${e.debugName}`},t=>{let r=e.read(t);n.set(r)})),t.add({dispose:()=>{n.clear()}}),t}createOverlayWidget(e){let t=`observableOverlayWidget`+ this._overlayWidgetCounter++,n={getDomNode:()=>e.domNode,getPosition:()=>e.position.get(),getId:()=>t,allowEditorOverflow:e.allowEditorOverflow,getMinContentWidthInPx:()=>e.minContentWidthInPx.get()};this.editor.addOverlayWidget(n);let r=oW(t=>{e.position.read(t),e.minContentWidthInPx.read(t),this.editor.layoutOverlayWidget(n)});return fD(()=>{r.dispose(),this.editor.removeOverlayWidget(n)})}};function e1(e,t){return yQe({createEmptyChangeSummary:()=>({deltas:[],didChange:!1}),handleChange:(t,n)=>{if(t.didChange(e)){let e=t.change;e!==void 0&&n.deltas.push(e),n.didChange=!0}return!0}},(n,r)=>{let i=e.read(n);r.didChange&&t(i,r.deltas)})}function Uit(e,t){let n=new L,r=e1(e,(e,r)=>{n.clear(),t(e,r,n)});return{dispose(){r.dispose(),n.dispose()}}}var Wit=function(e,t,n,r){var i=arguments.length,a=i<3?t:r===null?r=Object.getOwnPropertyDescriptor(t,n):r,o;if(typeof Reflect==`object`&&typeof Reflect.decorate==`function`)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},Git=function(e,t){return function(n,r){t(n,r,e)}},t1,n1=class extends R{static#e=t1=this;static#t=this._breadcrumbsSourceFactory=ZU(t1,()=>({dispose(){},getBreadcrumbItems(e,t){return[]}}));static setBreadcrumbsSourceFactory(e){this._breadcrumbsSourceFactory.set(e,void 0)}get isUpdatingHiddenAreas(){return this._isUpdatingHiddenAreas}constructor(e,t,n,r){super(),this._editors=e,this._diffModel=t,this._options=n,this._instantiationService=r,this._modifiedOutlineSource=iW(this,e=>{let t=this._editors.modifiedModel.read(e),n=t1._breadcrumbsSourceFactory.read(e);return!t||!n?void 0:n(t,this._instantiationService)}),this._isUpdatingHiddenAreas=!1,this._register(this._editors.original.onDidChangeCursorPosition(e=>{if(e.reason===1)return;let t=this._diffModel.get();KU(e=>{for(let n of this._editors.original.getSelections()||[])t?.ensureOriginalLineIsVisible(n.getStartPosition().lineNumber,0,e),t?.ensureOriginalLineIsVisible(n.getEndPosition().lineNumber,0,e)})})),this._register(this._editors.modified.onDidChangeCursorPosition(e=>{if(e.reason===1)return;let t=this._diffModel.get();KU(e=>{for(let n of this._editors.modified.getSelections()||[])t?.ensureModifiedLineIsVisible(n.getStartPosition().lineNumber,0,e),t?.ensureModifiedLineIsVisible(n.getEndPosition().lineNumber,0,e)})}));let i=this._diffModel.map((e,t)=>{let n=e?.unchangedRegions.read(t)??[];return n.length===1&&n[0].modifiedLineNumber===1&&n[0].lineCount===this._editors.modifiedModel.read(t)?.getLineCount()?[]:n});this.viewZones=rW(this,(e,t)=>{let n=this._modifiedOutlineSource.read(e);if(!n)return{origViewZones:[],modViewZones:[]};let r=[],a=[],o=this._options.renderSideBySide.read(e),s=this._options.compactMode.read(e),c=i.read(e);for(let i=0;i<c.length;i++){let l=c[i];if(!l.shouldHideControls(e)&&!(s&&(i===0||i===c.length-1)))if(s){{let e=new f$(eW(this,e=>l.getHiddenOriginalRange(e).startLineNumber-1),12);r.push(e),t.add(new Kit(this._editors.original,e,l,!o))}{let e=new f$(eW(this,e=>l.getHiddenModifiedRange(e).startLineNumber-1),12);a.push(e),t.add(new Kit(this._editors.modified,e,l))}}else{{let e=new f$(eW(this,e=>l.getHiddenOriginalRange(e).startLineNumber-1),24);r.push(e),t.add(new qit(this._editors.original,e,l,l.originalUnchangedRange,!o,n,e=>this._diffModel.get().ensureModifiedLineIsVisible(e,2,void 0),this._options))}{let e=new f$(eW(this,e=>l.getHiddenModifiedRange(e).startLineNumber-1),24);a.push(e),t.add(new qit(this._editors.modified,e,l,l.modifiedUnchangedRange,!1,n,e=>this._diffModel.get().ensureModifiedLineIsVisible(e,2,void 0),this._options))}}}return{origViewZones:r,modViewZones:a}});let a={description:`unchanged lines`,className:`diff-unchanged-lines`,isWholeLine:!0},o={description:`Fold Unchanged`,glyphMarginHoverMessage:new vH(void 0,{isTrusted:!0,supportThemeIcons:!0}).appendMarkdown(F(`foldUnchanged`,`Fold Unchanged Region`)),glyphMarginClassName:`fold-unchanged `+RN.asClassName(W.fold),zIndex:10001};this._register(l$(this._editors.original,eW(this,e=>{let t=i.read(e),n=t.map(e=>({range:e.originalUnchangedRange.toInclusiveRange(),options:a}));for(let r of t)r.shouldHideControls(e)&&n.push({range:H.fromPositions(new V(r.originalLineNumber,1)),options:o});return n}))),this._register(l$(this._editors.modified,eW(this,e=>{let t=i.read(e),n=t.map(e=>({range:e.modifiedUnchangedRange.toInclusiveRange(),options:a}));for(let r of t)r.shouldHideControls(e)&&n.push({range:fL.ofLength(r.modifiedLineNumber,1).toInclusiveRange(),options:o});return n}))),this._register(oW(e=>{let t=i.read(e);this._isUpdatingHiddenAreas=!0;try{this._editors.original.setHiddenAreas(t.map(t=>t.getHiddenOriginalRange(e).toInclusiveRange()).filter(bT)),this._editors.modified.setHiddenAreas(t.map(t=>t.getHiddenModifiedRange(e).toInclusiveRange()).filter(bT))}finally{this._isUpdatingHiddenAreas=!1}})),this._register(this._editors.modified.onMouseUp(e=>{if(!e.event.rightButton&&e.target.position&&e.target.element?.className.includes(`fold-unchanged`)){let t=e.target.position.lineNumber,n=this._diffModel.get();if(!n)return;let r=n.unchangedRegions.get().find(e=>e.modifiedUnchangedRange.includes(t));if(!r)return;r.collapseAll(void 0),e.event.stopPropagation(),e.event.preventDefault()}})),this._register(this._editors.original.onMouseUp(e=>{if(!e.event.rightButton&&e.target.position&&e.target.element?.className.includes(`fold-unchanged`)){let t=e.target.position.lineNumber,n=this._diffModel.get();if(!n)return;let r=n.unchangedRegions.get().find(e=>e.originalUnchangedRange.includes(t));if(!r)return;r.collapseAll(void 0),e.event.stopPropagation(),e.event.preventDefault()}}))}};n1=t1=Wit([Git(3,DN)],n1);var Kit=class extends d${constructor(e,t,n,r=!1){let i=pN(`div.diff-hidden-lines-widget`);super(e,t,i.root),this._unchangedRegion=n,this._hide=r,this._nodes=pN(`div.diff-hidden-lines-compact`,[pN(`div.line-left`,[]),pN(`div.text@text`,[]),pN(`div.line-right`,[])]),i.root.appendChild(this._nodes.root),this._hide&&this._nodes.root.replaceChildren(),this._register(oW(e=>{if(!this._hide){let t=this._unchangedRegion.getHiddenModifiedRange(e).length,n=F(`hiddenLines`,`{0} hidden lines`,t);this._nodes.text.innerText=n}}))}},qit=class extends d${constructor(e,t,n,r,i,a,o,s){let c=pN(`div.diff-hidden-lines-widget`);super(e,t,c.root),this._editor=e,this._unchangedRegion=n,this._unchangedRegionRange=r,this._hide=i,this._modifiedOutlineSource=a,this._revealModifiedHiddenLine=o,this._options=s,this._nodes=pN(`div.diff-hidden-lines`,[pN(`div.top@top`,{title:F(`diff.hiddenLines.top`,`Click or drag to show more above`)}),pN(`div.center@content`,{style:{display:`flex`}},[pN(`div@first`,{style:{display:`flex`,justifyContent:`center`,alignItems:`center`,flexShrink:`0`}},[J(`a`,{title:F(`showUnchangedRegion`,`Show Unchanged Region`),role:`button`,onclick:()=>{this._unchangedRegion.showAll(void 0)}},...OV(`$(unfold)`))]),pN(`div@others`,{style:{display:`flex`,justifyContent:`center`,alignItems:`center`}})]),pN(`div.bottom@bottom`,{title:F(`diff.bottom`,`Click or drag to show more below`),role:`button`})]),c.root.appendChild(this._nodes.root),this._hide?tN(this._nodes.first):this._register(p$(this._nodes.first,{width:$$(this._editor).layoutInfoContentLeft})),this._register(oW(e=>{let t=this._unchangedRegion.visibleLineCountTop.read(e)+this._unchangedRegion.visibleLineCountBottom.read(e)===this._unchangedRegion.lineCount;this._nodes.bottom.classList.toggle(`canMoveTop`,!t),this._nodes.bottom.classList.toggle(`canMoveBottom`,this._unchangedRegion.visibleLineCountBottom.read(e)>0),this._nodes.top.classList.toggle(`canMoveTop`,this._unchangedRegion.visibleLineCountTop.read(e)>0),this._nodes.top.classList.toggle(`canMoveBottom`,!t);let n=this._unchangedRegion.isDragged.read(e),r=this._editor.getDomNode();r&&(r.classList.toggle(`draggingUnchangedRegion`,!!n),n===`top`?(r.classList.toggle(`canMoveTop`,this._unchangedRegion.visibleLineCountTop.read(e)>0),r.classList.toggle(`canMoveBottom`,!t)):n===`bottom`?(r.classList.toggle(`canMoveTop`,!t),r.classList.toggle(`canMoveBottom`,this._unchangedRegion.visibleLineCountBottom.read(e)>0)):(r.classList.toggle(`canMoveTop`,!1),r.classList.toggle(`canMoveBottom`,!1)))}));let l=this._editor;this._register(G(this._nodes.top,`mousedown`,e=>{if(e.button!==0)return;this._nodes.top.classList.toggle(`dragging`,!0),this._nodes.root.classList.toggle(`dragging`,!0),e.preventDefault();let t=e.clientY,n=!1,r=this._unchangedRegion.visibleLineCountTop.get();this._unchangedRegion.isDragged.set(`top`,void 0);let i=oM(this._nodes.top),a=G(i,`mousemove`,e=>{let i=e.clientY-t;n||=Math.abs(i)>2;let a=Math.round(i/l.getOption(67)),o=Math.max(0,Math.min(r+a,this._unchangedRegion.getMaxVisibleLineCountTop()));this._unchangedRegion.visibleLineCountTop.set(o,void 0)}),o=G(i,`mouseup`,e=>{n||this._unchangedRegion.showMoreAbove(this._options.hideUnchangedRegionsRevealLineCount.get(),void 0),this._nodes.top.classList.toggle(`dragging`,!1),this._nodes.root.classList.toggle(`dragging`,!1),this._unchangedRegion.isDragged.set(void 0,void 0),a.dispose(),o.dispose()})})),this._register(G(this._nodes.bottom,`mousedown`,e=>{if(e.button!==0)return;this._nodes.bottom.classList.toggle(`dragging`,!0),this._nodes.root.classList.toggle(`dragging`,!0),e.preventDefault();let t=e.clientY,n=!1,r=this._unchangedRegion.visibleLineCountBottom.get();this._unchangedRegion.isDragged.set(`bottom`,void 0);let i=oM(this._nodes.bottom),a=G(i,`mousemove`,e=>{let i=e.clientY-t;n||=Math.abs(i)>2;let a=Math.round(i/l.getOption(67)),o=Math.max(0,Math.min(r-a,this._unchangedRegion.getMaxVisibleLineCountBottom())),s=this._unchangedRegionRange.endLineNumberExclusive>l.getModel().getLineCount()?l.getContentHeight():l.getTopForLineNumber(this._unchangedRegionRange.endLineNumberExclusive);this._unchangedRegion.visibleLineCountBottom.set(o,void 0);let c=this._unchangedRegionRange.endLineNumberExclusive>l.getModel().getLineCount()?l.getContentHeight():l.getTopForLineNumber(this._unchangedRegionRange.endLineNumberExclusive);l.setScrollTop(l.getScrollTop()+(c-s))}),o=G(i,`mouseup`,e=>{if(this._unchangedRegion.isDragged.set(void 0,void 0),!n){let e=l.getTopForLineNumber(this._unchangedRegionRange.endLineNumberExclusive);this._unchangedRegion.showMoreBelow(this._options.hideUnchangedRegionsRevealLineCount.get(),void 0);let t=l.getTopForLineNumber(this._unchangedRegionRange.endLineNumberExclusive);l.setScrollTop(l.getScrollTop()+(t-e))}this._nodes.bottom.classList.toggle(`dragging`,!1),this._nodes.root.classList.toggle(`dragging`,!1),a.dispose(),o.dispose()})})),this._register(oW(e=>{let t=[];if(!this._hide){let r=n.getHiddenModifiedRange(e).length,i=F(`hiddenLines`,`{0} hidden lines`,r),a=J(`span`,{title:F(`diff.hiddenLines.expandAll`,`Double click to unfold`)},i);a.addEventListener(`dblclick`,e=>{e.button===0&&(e.preventDefault(),this._unchangedRegion.showAll(void 0))}),t.push(a);let o=this._unchangedRegion.getHiddenModifiedRange(e),s=this._modifiedOutlineSource.getBreadcrumbItems(o,e);if(s.length>0){t.push(J(`span`,void 0,`\xA0\xA0|\xA0\xA0`));for(let e=0;e<s.length;e++){let n=s[e],r=pN(`div.breadcrumb-item`,{style:{display:`flex`,alignItems:`center`}},[kV(jO.toIcon(n.kind)),`\xA0`,n.name,...e===s.length-1?[]:[kV(W.chevronRight)]]).root;t.push(r),r.onclick=()=>{this._revealModifiedHiddenLine(n.startLineNumber)}}}}tN(this._nodes.others,...t)}))}},Jit=function(e,t,n,r){var i=arguments.length,a=i<3?t:r===null?r=Object.getOwnPropertyDescriptor(t,n):r,o;if(typeof Reflect==`object`&&typeof Reflect.decorate==`function`)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},Yit=function(e,t){return function(n,r){t(n,r,e)}},r1,i1=class extends R{static#e=r1=this;static#t=this.ONE_OVERVIEW_WIDTH=15;static#n=this.ENTIRE_DIFF_OVERVIEW_WIDTH=this.ONE_OVERVIEW_WIDTH*2;constructor(e,t,n,r,i,a,o){super(),this._editors=e,this._rootElement=t,this._diffModel=n,this._rootWidth=r,this._rootHeight=i,this._modifiedEditorLayoutInfo=a,this._themeService=o,this.width=r1.ENTIRE_DIFF_OVERVIEW_WIDTH;let s=fW(this._themeService.onDidColorThemeChange,()=>this._themeService.getColorTheme()),c=eW(e=>{let t=s.read(e);return{insertColor:t.getColor(PKe)||(t.getColor(MKe)||MB).transparent(2),removeColor:t.getColor(FKe)||(t.getColor(NKe)||NB).transparent(2)}}),l=yN(document.createElement(`div`));l.setClassName(`diffViewport`),l.setPosition(`absolute`);let u=pN(`div.diffOverview`,{style:{position:`absolute`,top:`0px`,width:r1.ENTIRE_DIFF_OVERVIEW_WIDTH+`px`}}).root;this._register(u$(u,l.domNode)),this._register(pM(u,K.POINTER_DOWN,e=>{this._editors.modified.delegateVerticalScrollbarPointerDown(e)})),this._register(G(u,K.MOUSE_WHEEL,e=>{this._editors.modified.delegateScrollFromMouseWheelEvent(e)},{passive:!1})),this._register(u$(this._rootElement,u)),this._register(lW((e,t)=>{let n=this._diffModel.read(e),r=this._editors.original.createOverviewRuler(`original diffOverviewRuler`);r&&(t.add(r),t.add(u$(u,r.getDomNode())));let i=this._editors.modified.createOverviewRuler(`modified diffOverviewRuler`);if(i&&(t.add(i),t.add(u$(u,i.getDomNode()))),!r||!i)return;let a=mW(`viewZoneChanged`,this._editors.original.onDidChangeViewZones),o=mW(`viewZoneChanged`,this._editors.modified.onDidChangeViewZones),s=mW(`hiddenRangesChanged`,this._editors.original.onDidChangeHiddenAreas),d=mW(`hiddenRangesChanged`,this._editors.modified.onDidChangeHiddenAreas);t.add(oW(e=>{a.read(e),o.read(e),s.read(e),d.read(e);let t=c.read(e),l=n?.diff.read(e)?.mappings;function u(e,t,n){let r=n._getViewModel();return r?e.filter(e=>e.length>0).map(e=>{let n=r.coordinatesConverter.convertModelPositionToViewPosition(new V(e.startLineNumber,1)),i=r.coordinatesConverter.convertModelPositionToViewPosition(new V(e.endLineNumberExclusive,1)),a=i.lineNumber-n.lineNumber;return new Att(n.lineNumber,i.lineNumber,a,t.toString())}):[]}let f=u((l||[]).map(e=>e.lineRangeMapping.original),t.removeColor,this._editors.original),p=u((l||[]).map(e=>e.lineRangeMapping.modified),t.insertColor,this._editors.modified);r?.setZones(f),i?.setZones(p)})),t.add(oW(e=>{let t=this._rootHeight.read(e),n=this._rootWidth.read(e),a=this._modifiedEditorLayoutInfo.read(e);if(a){let n=r1.ENTIRE_DIFF_OVERVIEW_WIDTH-2*r1.ONE_OVERVIEW_WIDTH;r.setLayout({top:0,height:t,right:n+r1.ONE_OVERVIEW_WIDTH,width:r1.ONE_OVERVIEW_WIDTH}),i.setLayout({top:0,height:t,right:0,width:r1.ONE_OVERVIEW_WIDTH});let o=this._editors.modifiedScrollTop.read(e),s=this._editors.modifiedScrollHeight.read(e),c=this._editors.modified.getOption(104),u=new gV(c.verticalHasArrows?c.arrowSize:0,c.verticalScrollbarSize,0,a.height,s,o);l.setTop(u.getSliderPosition()),l.setHeight(u.getSliderSize())}else l.setTop(0),l.setHeight(0);u.style.height=t+`px`,u.style.left=n-r1.ENTIRE_DIFF_OVERVIEW_WIDTH+`px`,l.setWidth(r1.ENTIRE_DIFF_OVERVIEW_WIDTH)}))}))}};i1=r1=Jit([Yit(6,ER)],i1);var a1=[],Xit=class extends R{constructor(e,t,n,r){super(),this._editors=e,this._diffModel=t,this._options=n,this._widget=r,this._selectedDiffs=eW(this,e=>{let t=this._diffModel.read(e)?.diff.read(e);if(!t)return a1;let n=this._editors.modifiedSelections.read(e);if(n.every(e=>e.isEmpty()))return a1;let r=new pL(n.map(e=>fL.fromRangeInclusive(e))),i=t.mappings.filter(e=>e.lineRangeMapping.innerChanges&&r.intersects(e.lineRangeMapping.modified)).map(e=>({mapping:e,rangeMappings:e.lineRangeMapping.innerChanges.filter(e=>n.some(t=>H.areIntersecting(e.modifiedRange,t)))}));return i.length===0||i.every(e=>e.rangeMappings.length===0)?a1:i}),this._register(lW((e,t)=>{if(!this._options.shouldRenderOldRevertArrows.read(e))return;let n=this._diffModel.read(e),r=n?.diff.read(e);if(!n||!r||n.movedTextToCompare.read(e))return;let i=[],a=this._selectedDiffs.read(e),o=new Set(a.map(e=>e.mapping));if(a.length>0){let n=this._editors.modifiedSelections.read(e),r=t.add(new Zit(n[n.length-1].positionLineNumber,this._widget,a.flatMap(e=>e.rangeMappings),!0));this._editors.modified.addGlyphMarginWidget(r),i.push(r)}for(let e of r.mappings)if(!o.has(e)&&!e.lineRangeMapping.modified.isEmpty&&e.lineRangeMapping.innerChanges){let n=t.add(new Zit(e.lineRangeMapping.modified.startLineNumber,this._widget,e.lineRangeMapping,!1));this._editors.modified.addGlyphMarginWidget(n),i.push(n)}t.add(fD(()=>{for(let e of i)this._editors.modified.removeGlyphMarginWidget(e)}))}))}},Zit=class e extends R{static#e=this.counter=0;getId(){return this._id}constructor(t,n,r,i){super(),this._lineNumber=t,this._widget=n,this._diffs=r,this._revertSelection=i,this._id=`revertButton${e.counter++}`,this._domNode=pN(`div.revertButton`,{title:this._revertSelection?F(`revertSelectedChanges`,`Revert Selected Changes`):F(`revertChange`,`Revert Change`)},[kV(W.arrowRight)]).root,this._register(G(this._domNode,K.MOUSE_DOWN,e=>{e.button!==2&&(e.stopPropagation(),e.preventDefault())})),this._register(G(this._domNode,K.MOUSE_UP,e=>{e.stopPropagation(),e.preventDefault()})),this._register(G(this._domNode,K.CLICK,e=>{this._diffs instanceof yL?this._widget.revert(this._diffs):this._widget.revertRangeMappings(this._diffs),e.stopPropagation(),e.preventDefault()}))}getDomNode(){return this._domNode}getPosition(){return{lane:HI.Right,range:{startColumn:1,startLineNumber:this._lineNumber,endColumn:1,endLineNumber:this._lineNumber},zIndex:10001}}};function Qit(e,t,n){return xQe({debugName:()=>`Configuration Key "${e}"`},t=>n.onDidChangeConfiguration(n=>{n.affectsConfiguration(e)&&t(n)}),()=>n.getValue(e)??t)}function o1(e,t,n){let r=e.bindTo(t);return sW({debugName:()=>`Set Context Key "${e.key}"`},e=>{r.set(n(e))})}var $it=function(e,t,n,r){var i=arguments.length,a=i<3?t:r===null?r=Object.getOwnPropertyDescriptor(t,n):r,o;if(typeof Reflect==`object`&&typeof Reflect.decorate==`function`)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},eat=function(e,t){return function(n,r){t(n,r,e)}},s1=class extends R{get onDidContentSizeChange(){return this._onDidContentSizeChange.event}constructor(e,t,n,r,i,a,o){super(),this.originalEditorElement=e,this.modifiedEditorElement=t,this._options=n,this._argCodeEditorWidgetOptions=r,this._createInnerEditor=i,this._instantiationService=a,this._keybindingService=o,this.original=this._register(this._createLeftHandSideEditor(this._options.editorOptions.get(),this._argCodeEditorWidgetOptions.originalEditor||{})),this.modified=this._register(this._createRightHandSideEditor(this._options.editorOptions.get(),this._argCodeEditorWidgetOptions.modifiedEditor||{})),this._onDidContentSizeChange=this._register(new B),this.modifiedScrollTop=fW(this,this.modified.onDidScrollChange,()=>this.modified.getScrollTop()),this.modifiedScrollHeight=fW(this,this.modified.onDidScrollChange,()=>this.modified.getScrollHeight()),this.modifiedObs=$$(this.modified),this.originalObs=$$(this.original),this.modifiedModel=this.modifiedObs.model,this.modifiedSelections=fW(this,this.modified.onDidChangeCursorSelection,()=>this.modified.getSelections()??[]),this.modifiedCursor=nW({owner:this,equalsFn:V.equals},e=>this.modifiedSelections.read(e)[0]?.getPosition()??new V(1,1)),this.originalCursor=fW(this,this.original.onDidChangeCursorPosition,()=>this.original.getPosition()??new V(1,1)),this._argCodeEditorWidgetOptions=null,this._register(cW({createEmptyChangeSummary:()=>({}),handleChange:(e,t)=>(e.didChange(n.editorOptions)&&Object.assign(t,e.change.changedOptions),!0)},(e,t)=>{n.editorOptions.read(e),this._options.renderSideBySide.read(e),this.modified.updateOptions(this._adjustOptionsForRightHandSide(e,t)),this.original.updateOptions(this._adjustOptionsForLeftHandSide(e,t))}))}_createLeftHandSideEditor(e,t){let n=this._adjustOptionsForLeftHandSide(void 0,e),r=this._constructInnerEditor(this._instantiationService,this.originalEditorElement,n,t);return r.setContextValue(`isInDiffLeftEditor`,!0),r}_createRightHandSideEditor(e,t){let n=this._adjustOptionsForRightHandSide(void 0,e),r=this._constructInnerEditor(this._instantiationService,this.modifiedEditorElement,n,t);return r.setContextValue(`isInDiffRightEditor`,!0),r}_constructInnerEditor(e,t,n,r){let i=this._createInnerEditor(e,t,n,r);return this._register(i.onDidContentSizeChange(e=>{let t=this.original.getContentWidth()+this.modified.getContentWidth()+i1.ENTIRE_DIFF_OVERVIEW_WIDTH,n=Math.max(this.modified.getContentHeight(),this.original.getContentHeight());this._onDidContentSizeChange.fire({contentHeight:n,contentWidth:t,contentHeightChanged:e.contentHeightChanged,contentWidthChanged:e.contentWidthChanged})})),i}_adjustOptionsForLeftHandSide(e,t){let n=this._adjustOptionsForSubEditor(t);return this._options.renderSideBySide.get()?(n.unicodeHighlight=this._options.editorOptions.get().unicodeHighlight||{},n.wordWrapOverride1=this._options.diffWordWrap.get()):(n.wordWrapOverride1=`off`,n.wordWrapOverride2=`off`,n.stickyScroll={enabled:!1},n.unicodeHighlight={nonBasicASCII:!1,ambiguousCharacters:!1,invisibleCharacters:!1}),n.glyphMargin=this._options.renderSideBySide.get(),t.originalAriaLabel&&(n.ariaLabel=t.originalAriaLabel),n.ariaLabel=this._updateAriaLabel(n.ariaLabel),n.readOnly=!this._options.originalEditable.get(),n.dropIntoEditor={enabled:!n.readOnly},n.extraEditorClassName=`original-in-monaco-diff-editor`,n}_adjustOptionsForRightHandSide(e,t){let n=this._adjustOptionsForSubEditor(t);return t.modifiedAriaLabel&&(n.ariaLabel=t.modifiedAriaLabel),n.ariaLabel=this._updateAriaLabel(n.ariaLabel),n.wordWrapOverride1=this._options.diffWordWrap.get(),n.revealHorizontalRightPadding=GE.revealHorizontalRightPadding.defaultValue+i1.ENTIRE_DIFF_OVERVIEW_WIDTH,n.scrollbar.verticalHasArrows=!1,n.extraEditorClassName=`modified-in-monaco-diff-editor`,n}_adjustOptionsForSubEditor(e){let t={...e,dimension:{height:0,width:0}};return t.inDiffEditor=!0,t.automaticLayout=!1,t.scrollbar={...t.scrollbar||{}},t.folding=!1,t.codeLens=this._options.diffCodeLens.get(),t.fixedOverflowWidgets=!0,t.minimap={...t.minimap||{}},t.minimap.enabled=!1,this._options.hideUnchangedRegions.get()?t.stickyScroll={enabled:!1}:t.stickyScroll=this._options.editorOptions.get().stickyScroll,t}_updateAriaLabel(e){e||=``;let t=F(`diff-aria-navigation-tip`,` use {0} to open the accessibility help.`,this._keybindingService.lookupKeybinding(`editor.action.accessibilityHelp`)?.getAriaLabel());return this._options.accessibilityVerbose.get()?e+t:e?e.replaceAll(t,``):``}};s1=$it([eat(5,DN),eat(6,uV)],s1);var tat=class e extends R{constructor(){super(...arguments),this._id=++e.idCounter,this._onDidDispose=this._register(new B),this.onDidDispose=this._onDidDispose.event}static#e=this.idCounter=0;getId(){return this.getEditorType()+`:v2:`+this._id}getVisibleColumnFromPosition(e){return this._targetEditor.getVisibleColumnFromPosition(e)}getPosition(){return this._targetEditor.getPosition()}setPosition(e,t=`api`){this._targetEditor.setPosition(e,t)}revealLine(e,t=0){this._targetEditor.revealLine(e,t)}revealLineInCenter(e,t=0){this._targetEditor.revealLineInCenter(e,t)}revealLineInCenterIfOutsideViewport(e,t=0){this._targetEditor.revealLineInCenterIfOutsideViewport(e,t)}revealLineNearTop(e,t=0){this._targetEditor.revealLineNearTop(e,t)}revealPosition(e,t=0){this._targetEditor.revealPosition(e,t)}revealPositionInCenter(e,t=0){this._targetEditor.revealPositionInCenter(e,t)}revealPositionInCenterIfOutsideViewport(e,t=0){this._targetEditor.revealPositionInCenterIfOutsideViewport(e,t)}revealPositionNearTop(e,t=0){this._targetEditor.revealPositionNearTop(e,t)}getSelection(){return this._targetEditor.getSelection()}getSelections(){return this._targetEditor.getSelections()}setSelection(e,t=`api`){this._targetEditor.setSelection(e,t)}setSelections(e,t=`api`){this._targetEditor.setSelections(e,t)}revealLines(e,t,n=0){this._targetEditor.revealLines(e,t,n)}revealLinesInCenter(e,t,n=0){this._targetEditor.revealLinesInCenter(e,t,n)}revealLinesInCenterIfOutsideViewport(e,t,n=0){this._targetEditor.revealLinesInCenterIfOutsideViewport(e,t,n)}revealLinesNearTop(e,t,n=0){this._targetEditor.revealLinesNearTop(e,t,n)}revealRange(e,t=0,n=!1,r=!0){this._targetEditor.revealRange(e,t,n,r)}revealRangeInCenter(e,t=0){this._targetEditor.revealRangeInCenter(e,t)}revealRangeInCenterIfOutsideViewport(e,t=0){this._targetEditor.revealRangeInCenterIfOutsideViewport(e,t)}revealRangeNearTop(e,t=0){this._targetEditor.revealRangeNearTop(e,t)}revealRangeNearTopIfOutsideViewport(e,t=0){this._targetEditor.revealRangeNearTopIfOutsideViewport(e,t)}revealRangeAtTop(e,t=0){this._targetEditor.revealRangeAtTop(e,t)}getSupportedActions(){return this._targetEditor.getSupportedActions()}focus(){this._targetEditor.focus()}trigger(e,t,n){this._targetEditor.trigger(e,t,n)}createDecorationsCollection(e){return this._targetEditor.createDecorationsCollection(e)}changeDecorations(e){return this._targetEditor.changeDecorations(e)}},nat=function(e,t,n,r){var i=arguments.length,a=i<3?t:r===null?r=Object.getOwnPropertyDescriptor(t,n):r,o;if(typeof Reflect==`object`&&typeof Reflect.decorate==`function`)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},rat=function(e,t){return function(n,r){t(n,r,e)}},c1=class{get editorOptions(){return this._options}constructor(e,t){this._accessibilityService=t,this._diffEditorWidth=ZU(this,0),this._screenReaderMode=fW(this,this._accessibilityService.onDidChangeScreenReaderOptimized,()=>this._accessibilityService.isScreenReaderOptimized()),this.couldShowInlineViewBecauseOfSize=eW(this,e=>this._options.read(e).renderSideBySide&&this._diffEditorWidth.read(e)<=this._options.read(e).renderSideBySideInlineBreakpoint),this.renderOverviewRuler=eW(this,e=>this._options.read(e).renderOverviewRuler),this.renderSideBySide=eW(this,e=>this.compactMode.read(e)&&this.shouldRenderInlineViewInSmartMode.read(e)?!1:this._options.read(e).renderSideBySide&&!(this._options.read(e).useInlineViewWhenSpaceIsLimited&&this.couldShowInlineViewBecauseOfSize.read(e)&&!this._screenReaderMode.read(e))),this.readOnly=eW(this,e=>this._options.read(e).readOnly),this.shouldRenderOldRevertArrows=eW(this,e=>!(!this._options.read(e).renderMarginRevertIcon||!this.renderSideBySide.read(e)||this.readOnly.read(e)||this.shouldRenderGutterMenu.read(e))),this.shouldRenderGutterMenu=eW(this,e=>this._options.read(e).renderGutterMenu),this.renderIndicators=eW(this,e=>this._options.read(e).renderIndicators),this.enableSplitViewResizing=eW(this,e=>this._options.read(e).enableSplitViewResizing),this.splitViewDefaultRatio=eW(this,e=>this._options.read(e).splitViewDefaultRatio),this.ignoreTrimWhitespace=eW(this,e=>this._options.read(e).ignoreTrimWhitespace),this.maxComputationTimeMs=eW(this,e=>this._options.read(e).maxComputationTime),this.showMoves=eW(this,e=>this._options.read(e).experimental.showMoves&&this.renderSideBySide.read(e)),this.isInEmbeddedEditor=eW(this,e=>this._options.read(e).isInEmbeddedEditor),this.diffWordWrap=eW(this,e=>this._options.read(e).diffWordWrap),this.originalEditable=eW(this,e=>this._options.read(e).originalEditable),this.diffCodeLens=eW(this,e=>this._options.read(e).diffCodeLens),this.accessibilityVerbose=eW(this,e=>this._options.read(e).accessibilityVerbose),this.diffAlgorithm=eW(this,e=>this._options.read(e).diffAlgorithm),this.showEmptyDecorations=eW(this,e=>this._options.read(e).experimental.showEmptyDecorations),this.onlyShowAccessibleDiffViewer=eW(this,e=>this._options.read(e).onlyShowAccessibleDiffViewer),this.compactMode=eW(this,e=>this._options.read(e).compactMode),this.trueInlineDiffRenderingEnabled=eW(this,e=>this._options.read(e).experimental.useTrueInlineView),this.useTrueInlineDiffRendering=eW(this,e=>!this.renderSideBySide.read(e)&&this.trueInlineDiffRenderingEnabled.read(e)),this.hideUnchangedRegions=eW(this,e=>this._options.read(e).hideUnchangedRegions.enabled),this.hideUnchangedRegionsRevealLineCount=eW(this,e=>this._options.read(e).hideUnchangedRegions.revealLineCount),this.hideUnchangedRegionsContextLineCount=eW(this,e=>this._options.read(e).hideUnchangedRegions.contextLineCount),this.hideUnchangedRegionsMinimumLineCount=eW(this,e=>this._options.read(e).hideUnchangedRegions.minimumLineCount),this._model=ZU(this,void 0),this.shouldRenderInlineViewInSmartMode=this._model.map(this,e=>OQe(this,t=>{let n=e?.diff.read(t);return n?iat(n,this.trueInlineDiffRenderingEnabled.read(t)):void 0})).flatten().map(this,e=>!!e),this.inlineViewHideOriginalLineNumbers=this.compactMode;let n={...e,...sat(e,uU)};this._options=ZU(this,n)}updateOptions(e){let t=sat(e,this._options.get()),n={...this._options.get(),...e,...t};this._options.set(n,void 0,{changedOptions:e})}setWidth(e){this._diffEditorWidth.set(e,void 0)}setModel(e){this._model.set(e,void 0)}};c1=nat([rat(1,HH)],c1);function iat(e,t){return e.mappings.every(e=>aat(e.lineRangeMapping)||oat(e.lineRangeMapping)||t&&H$(e.lineRangeMapping))}function aat(e){return e.original.length===0}function oat(e){return e.modified.length===0}function sat(e,t){return{enableSplitViewResizing:wE(e.enableSplitViewResizing,t.enableSplitViewResizing),splitViewDefaultRatio:_ze(e.splitViewDefaultRatio,.5,.1,.9),renderSideBySide:wE(e.renderSideBySide,t.renderSideBySide),renderMarginRevertIcon:wE(e.renderMarginRevertIcon,t.renderMarginRevertIcon),maxComputationTime:EE(e.maxComputationTime,t.maxComputationTime,0,1073741824),maxFileSize:EE(e.maxFileSize,t.maxFileSize,0,1073741824),ignoreTrimWhitespace:wE(e.ignoreTrimWhitespace,t.ignoreTrimWhitespace),renderIndicators:wE(e.renderIndicators,t.renderIndicators),originalEditable:wE(e.originalEditable,t.originalEditable),diffCodeLens:wE(e.diffCodeLens,t.diffCodeLens),renderOverviewRuler:wE(e.renderOverviewRuler,t.renderOverviewRuler),diffWordWrap:AE(e.diffWordWrap,t.diffWordWrap,[`off`,`on`,`inherit`]),diffAlgorithm:AE(e.diffAlgorithm,t.diffAlgorithm,[`legacy`,`advanced`],{smart:`legacy`,experimental:`advanced`}),accessibilityVerbose:wE(e.accessibilityVerbose,t.accessibilityVerbose),experimental:{showMoves:wE(e.experimental?.showMoves,t.experimental.showMoves),showEmptyDecorations:wE(e.experimental?.showEmptyDecorations,t.experimental.showEmptyDecorations),useTrueInlineView:wE(e.experimental?.useTrueInlineView,t.experimental.useTrueInlineView)},hideUnchangedRegions:{enabled:wE(e.hideUnchangedRegions?.enabled??e.experimental?.collapseUnchangedRegions,t.hideUnchangedRegions.enabled),contextLineCount:EE(e.hideUnchangedRegions?.contextLineCount,t.hideUnchangedRegions.contextLineCount,0,1073741824),minimumLineCount:EE(e.hideUnchangedRegions?.minimumLineCount,t.hideUnchangedRegions.minimumLineCount,0,1073741824),revealLineCount:EE(e.hideUnchangedRegions?.revealLineCount,t.hideUnchangedRegions.revealLineCount,0,1073741824)},isInEmbeddedEditor:wE(e.isInEmbeddedEditor,t.isInEmbeddedEditor),onlyShowAccessibleDiffViewer:wE(e.onlyShowAccessibleDiffViewer,t.onlyShowAccessibleDiffViewer),renderSideBySideInlineBreakpoint:EE(e.renderSideBySideInlineBreakpoint,t.renderSideBySideInlineBreakpoint,0,1073741824),useInlineViewWhenSpaceIsLimited:wE(e.useInlineViewWhenSpaceIsLimited,t.useInlineViewWhenSpaceIsLimited),renderGutterMenu:wE(e.renderGutterMenu,t.renderGutterMenu),compactMode:wE(e.compactMode,t.compactMode)}}var cat=function(e,t,n,r){var i=arguments.length,a=i<3?t:r===null?r=Object.getOwnPropertyDescriptor(t,n):r,o;if(typeof Reflect==`object`&&typeof Reflect.decorate==`function`)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},l1=function(e,t){return function(n,r){t(n,r,e)}},u1=class extends tat{get onDidContentSizeChange(){return this._editors.onDidContentSizeChange}constructor(e,t,n,r,i,a,o,s){super(),this._domElement=e,this._parentContextKeyService=r,this._parentInstantiationService=i,this._accessibilitySignalService=o,this._editorProgressService=s,this.elements=pN(`div.monaco-diff-editor.side-by-side`,{style:{position:`relative`,height:`100%`}},[pN(`div.editor.original@original`,{style:{position:`absolute`,height:`100%`}}),pN(`div.editor.modified@modified`,{style:{position:`absolute`,height:`100%`}}),pN(`div.accessibleDiffViewer@accessibleDiffViewer`,{style:{position:`absolute`,height:`100%`}})]),this._diffModelSrc=this._register($U(this,void 0)),this._diffModel=eW(this,e=>this._diffModelSrc.read(e)?.object),this.onDidChangeModel=z.fromObservableLight(this._diffModel),this._contextKeyService=this._register(this._parentContextKeyService.createScoped(this._domElement)),this._instantiationService=this._register(this._parentInstantiationService.createChild(new eX([uP,this._contextKeyService]))),this._boundarySashes=ZU(this,void 0),this._accessibleDiffViewerShouldBeVisible=ZU(this,!1),this._accessibleDiffViewerVisible=eW(this,e=>this._options.onlyShowAccessibleDiffViewer.read(e)?!0:this._accessibleDiffViewerShouldBeVisible.read(e)),this._movedBlocksLinesPart=ZU(this,void 0),this._layoutInfo=eW(this,e=>{let t=this._rootSizeObserver.width.read(e),n=this._rootSizeObserver.height.read(e);this._rootSizeObserver.automaticLayout?this.elements.root.style.height=`100%`:this.elements.root.style.height=n+`px`;let r=this._sash.read(e),i=this._gutter.read(e),a=i?.width.read(e)??0,o=this._overviewRulerPart.read(e)?.width??0,s,c,l,u,d;if(r){let n=r.sashLeft.read(e),i=this._movedBlocksLinesPart.read(e)?.width.read(e)??0;s=0,c=n-a-i,d=n-a,l=n,u=t-l-o}else{d=0;let n=this._options.inlineViewHideOriginalLineNumbers.read(e);s=a,c=n?0:Math.max(5,this._editors.originalObs.layoutInfoDecorationsLeft.read(e)),l=a+c,u=t-l-o}return this.elements.original.style.left=s+`px`,this.elements.original.style.width=c+`px`,this._editors.original.layout({width:c,height:n},!0),i?.layout(d),this.elements.modified.style.left=l+`px`,this.elements.modified.style.width=u+`px`,this._editors.modified.layout({width:u,height:n},!0),{modifiedEditor:this._editors.modified.getLayoutInfo(),originalEditor:this._editors.original.getLayoutInfo()}}),this._diffValue=this._diffModel.map((e,t)=>e?.diff.read(t)),this.onDidUpdateDiff=z.fromObservableLight(this._diffValue),a.willCreateDiffEditor(),this._contextKeyService.createKey(`isInDiffEditor`,!0),this._domElement.appendChild(this.elements.root),this._register(fD(()=>this.elements.root.remove())),this._rootSizeObserver=this._register(new Rrt(this.elements.root,t.dimension)),this._rootSizeObserver.setAutomaticLayout(t.automaticLayout??!1),this._options=this._instantiationService.createInstance(c1,t),this._register(oW(e=>{this._options.setWidth(this._rootSizeObserver.width.read(e))})),this._contextKeyService.createKey($.isEmbeddedDiffEditor.key,!1),this._register(o1($.isEmbeddedDiffEditor,this._contextKeyService,e=>this._options.isInEmbeddedEditor.read(e))),this._register(o1($.comparingMovedCode,this._contextKeyService,e=>!!this._diffModel.read(e)?.movedTextToCompare.read(e))),this._register(o1($.diffEditorRenderSideBySideInlineBreakpointReached,this._contextKeyService,e=>this._options.couldShowInlineViewBecauseOfSize.read(e))),this._register(o1($.diffEditorInlineMode,this._contextKeyService,e=>!this._options.renderSideBySide.read(e))),this._register(o1($.hasChanges,this._contextKeyService,e=>(this._diffModel.read(e)?.diff.read(e)?.mappings.length??0)>0)),this._editors=this._register(this._instantiationService.createInstance(s1,this.elements.original,this.elements.modified,this._options,n,(e,t,n,r)=>this._createInnerEditor(e,t,n,r))),this._register(o1($.diffEditorOriginalWritable,this._contextKeyService,e=>this._options.originalEditable.read(e))),this._register(o1($.diffEditorModifiedWritable,this._contextKeyService,e=>!this._options.readOnly.read(e))),this._register(o1($.diffEditorOriginalUri,this._contextKeyService,e=>this._diffModel.read(e)?.model.original.uri.toString()??``)),this._register(o1($.diffEditorModifiedUri,this._contextKeyService,e=>this._diffModel.read(e)?.model.modified.uri.toString()??``)),this._overviewRulerPart=iW(this,e=>this._options.renderOverviewRuler.read(e)?this._instantiationService.createInstance(R$(i1,e),this._editors,this.elements.root,this._diffModel,this._rootSizeObserver.width,this._rootSizeObserver.height,this._layoutInfo.map(e=>e.modifiedEditor)):void 0).recomputeInitiallyAndOnChange(this._store);let c={height:this._rootSizeObserver.height,width:this._rootSizeObserver.width.map((e,t)=>e-(this._overviewRulerPart.read(t)?.width??0))};this._sashLayout=new Mit(this._options,c),this._sash=iW(this,e=>{let t=this._options.renderSideBySide.read(e);return this.elements.root.classList.toggle(`side-by-side`,t),t?new Nit(this.elements.root,c,this._options.enableSplitViewResizing,this._boundarySashes,this._sashLayout.sashLeft,()=>this._sashLayout.resetSash()):void 0}).recomputeInitiallyAndOnChange(this._store);let l=iW(this,e=>this._instantiationService.createInstance(R$(n1,e),this._editors,this._diffModel,this._options)).recomputeInitiallyAndOnChange(this._store);iW(this,e=>this._instantiationService.createInstance(R$(jit,e),this._editors,this._diffModel,this._options,this)).recomputeInitiallyAndOnChange(this._store);let u=new Set,d=new Set,f=!1,p=iW(this,e=>this._instantiationService.createInstance(R$(V$,e),oM(this._domElement),this._editors,this._diffModel,this._options,this,()=>f||l.get().isUpdatingHiddenAreas,u,d)).recomputeInitiallyAndOnChange(this._store),m=eW(this,e=>{let t=p.read(e).viewZones.read(e).orig,n=l.read(e).viewZones.read(e).origViewZones;return t.concat(n)}),h=eW(this,e=>{let t=p.read(e).viewZones.read(e).mod,n=l.read(e).viewZones.read(e).modViewZones;return t.concat(n)});this._register(m$(this._editors.original,m,e=>{f=e},u));let g;this._register(m$(this._editors.modified,h,e=>{f=e,f?g=c$.capture(this._editors.modified):(g?.restore(this._editors.modified),g=void 0)},d)),this._accessibleDiffViewer=iW(this,e=>this._instantiationService.createInstance(R$(v$,e),this.elements.accessibleDiffViewer,this._accessibleDiffViewerVisible,(e,t)=>this._accessibleDiffViewerShouldBeVisible.set(e,t),this._options.onlyShowAccessibleDiffViewer.map(e=>!e),this._rootSizeObserver.width,this._rootSizeObserver.height,this._diffModel.map((e,t)=>e?.diff.read(t)?.mappings.map(e=>e.lineRangeMapping)),new rit(this._editors))).recomputeInitiallyAndOnChange(this._store);let _=this._accessibleDiffViewerVisible.map(e=>e?`hidden`:`visible`);this._register(p$(this.elements.modified,{visibility:_})),this._register(p$(this.elements.original,{visibility:_})),this._createDiffEditorContributions(),a.addDiffEditor(this),this._gutter=iW(this,e=>this._options.shouldRenderGutterMenu.read(e)?this._instantiationService.createInstance(R$(Z$,e),this.elements.root,this._diffModel,this._editors,this._options,this._sashLayout,this._boundarySashes):void 0),this._register(gW(this._layoutInfo)),iW(this,e=>new(R$(U$,e))(this.elements.root,this._diffModel,this._layoutInfo.map(e=>e.originalEditor),this._layoutInfo.map(e=>e.modifiedEditor),this._editors)).recomputeInitiallyAndOnChange(this._store,e=>{this._movedBlocksLinesPart.set(e,void 0)}),this._register(z.runAndSubscribe(this._editors.modified.onDidChangeCursorPosition,e=>this._handleCursorPositionChange(e,!0))),this._register(z.runAndSubscribe(this._editors.original.onDidChangeCursorPosition,e=>this._handleCursorPositionChange(e,!1)));let v=this._diffModel.map(this,(e,t)=>{if(e)return e.diff.read(t)===void 0&&!e.isDiffUpToDate.read(t)});this._register(lW((e,t)=>{if(v.read(e)===!0){let e=this._editorProgressService.show(!0,1e3);t.add(fD(()=>e.done()))}})),this._register(lW((e,t)=>{t.add(new(R$(Xit,e))(this._editors,this._diffModel,this._options,this))})),this._register(lW((e,t)=>{let n=this._diffModel.read(e);if(n)for(let e of[n.model.original,n.model.modified])t.add(e.onWillDispose(e=>{qE(new nD(`TextModel got disposed before DiffEditorWidget model got reset`)),this.setModel(null)}))})),this._register(oW(e=>{this._options.setModel(this._diffModel.read(e))}))}_createInnerEditor(e,t,n,r){return e.createInstance(a$,t,n,r)}_createDiffEditorContributions(){let e=XP.getDiffEditorContributions();for(let t of e)try{this._register(this._instantiationService.createInstance(t.ctor,this))}catch(e){qE(e)}}get _targetEditor(){return this._editors.modified}getEditorType(){return xX.IDiffEditor}layout(e){this._rootSizeObserver.observe(e)}hasTextFocus(){return this._editors.original.hasTextFocus()||this._editors.modified.hasTextFocus()}saveViewState(){return{original:this._editors.original.saveViewState(),modified:this._editors.modified.saveViewState(),modelState:this._diffModel.get()?.serializeState()}}restoreViewState(e){if(e&&e.original&&e.modified){let t=e;this._editors.original.restoreViewState(t.original),this._editors.modified.restoreViewState(t.modified),t.modelState&&this._diffModel.get()?.restoreSerializedState(t.modelState)}}handleInitialized(){this._editors.original.handleInitialized(),this._editors.modified.handleInitialized()}createViewModel(e){return this._instantiationService.createInstance(z$,e,this._options)}getModel(){return this._diffModel.get()?.model??null}setModel(e){let t=e?`model`in e?h$.create(e).createNewRef(this):h$.create(this.createViewModel(e),this):null;this.setDiffModel(t)}setDiffModel(e,t){let n=this._diffModel.get();!e&&n&&this._accessibleDiffViewer.get().close(),this._diffModel.get()!==e?.object&&YU(t,t=>{let n=e?.object;fW.batchEventsGlobally(t,()=>{this._editors.original.setModel(n?n.model.original:null),this._editors.modified.setModel(n?n.model.modified:null)});let r=this._diffModelSrc.get()?.createNewRef(this);this._diffModelSrc.set(e?.createNewRef(this),t),setTimeout(()=>{r?.dispose()},0)})}updateOptions(e){this._options.updateOptions(e)}getContainerDomNode(){return this._domElement}getOriginalEditor(){return this._editors.original}getModifiedEditor(){return this._editors.modified}getLineChanges(){let e=this._diffModel.get()?.diff.get();return e?lat(e):null}revert(e){let t=this._diffModel.get();!t||!t.isDiffUpToDate.get()||this._editors.modified.executeEdits(`diffEditor`,[{range:e.modified.toExclusiveRange(),text:t.model.original.getValueInRange(e.original.toExclusiveRange())}])}revertRangeMappings(e){let t=this._diffModel.get();if(!t||!t.isDiffUpToDate.get())return;let n=e.map(e=>({range:e.modifiedRange,text:t.model.original.getValueInRange(e.originalRange)}));this._editors.modified.executeEdits(`diffEditor`,n)}_goTo(e){this._editors.modified.setPosition(new V(e.lineRangeMapping.modified.startLineNumber,1)),this._editors.modified.revealRangeInCenter(e.lineRangeMapping.modified.toExclusiveRange())}goToDiff(e){let t=this._diffModel.get()?.diff.get()?.mappings;if(!t||t.length===0)return;let n=this._editors.modified.getPosition().lineNumber,r;r=e===`next`?t.find(e=>e.lineRangeMapping.modified.startLineNumber>n)??t[0]:oL(t,e=>e.lineRangeMapping.modified.startLineNumber<n)??t[t.length-1],this._goTo(r),r.lineRangeMapping.modified.isEmpty?this._accessibilitySignalService.playSignal(iX.diffLineDeleted,{source:`diffEditor.goToDiff`}):r.lineRangeMapping.original.isEmpty?this._accessibilitySignalService.playSignal(iX.diffLineInserted,{source:`diffEditor.goToDiff`}):r&&this._accessibilitySignalService.playSignal(iX.diffLineModified,{source:`diffEditor.goToDiff`})}revealFirstDiff(){let e=this._diffModel.get();e&&this.waitForDiff().then(()=>{let t=e.diff.get()?.mappings;!t||t.length===0||this._goTo(t[0])})}accessibleDiffViewerNext(){this._accessibleDiffViewer.get().next()}accessibleDiffViewerPrev(){this._accessibleDiffViewer.get().prev()}async waitForDiff(){let e=this._diffModel.get();e&&await e.waitForDiff()}mapToOtherSide(){let e=this._editors.modified.hasWidgetFocus(),t=e?this._editors.modified:this._editors.original,n=e?this._editors.original:this._editors.modified,r,i=t.getSelection();if(i){let t=this._diffModel.get()?.diff.get()?.mappings.map(t=>e?t.lineRangeMapping.flip():t.lineRangeMapping);if(t){let e=Urt(i.getStartPosition(),t),n=Urt(i.getEndPosition(),t);r=H.plusRange(e,n)}}return{destination:n,destinationSelection:r}}switchSide(){let{destination:e,destinationSelection:t}=this.mapToOtherSide();e.focus(),t&&e.setSelection(t)}exitCompareMove(){let e=this._diffModel.get();e&&e.movedTextToCompare.set(void 0,void 0)}collapseAllUnchangedRegions(){let e=this._diffModel.get()?.unchangedRegions.get();e&&KU(t=>{for(let n of e)n.collapseAll(t)})}showAllUnchangedRegions(){let e=this._diffModel.get()?.unchangedRegions.get();e&&KU(t=>{for(let n of e)n.showAll(t)})}_handleCursorPositionChange(e,t){if(e?.reason===3){let n=this._diffModel.get()?.diff.get()?.mappings.find(n=>t?n.lineRangeMapping.modified.contains(e.position.lineNumber):n.lineRangeMapping.original.contains(e.position.lineNumber));n?.lineRangeMapping.modified.isEmpty?this._accessibilitySignalService.playSignal(iX.diffLineDeleted,{source:`diffEditor.cursorPositionChanged`}):n?.lineRangeMapping.original.isEmpty?this._accessibilitySignalService.playSignal(iX.diffLineInserted,{source:`diffEditor.cursorPositionChanged`}):n&&this._accessibilitySignalService.playSignal(iX.diffLineModified,{source:`diffEditor.cursorPositionChanged`})}}};u1=cat([l1(3,uP),l1(4,DN),l1(5,kN),l1(6,nX),l1(7,TU)],u1);function lat(e){return e.mappings.map(e=>{let t=e.lineRangeMapping,n,r,i,a,o=t.innerChanges;return t.original.isEmpty?(n=t.original.startLineNumber-1,r=0,o=void 0):(n=t.original.startLineNumber,r=t.original.endLineNumberExclusive-1),t.modified.isEmpty?(i=t.modified.startLineNumber-1,a=0,o=void 0):(i=t.modified.startLineNumber,a=t.modified.endLineNumberExclusive-1),{originalStartLineNumber:n,originalEndLineNumber:r,modifiedStartLineNumber:i,modifiedEndLineNumber:a,charChanges:o?.map(e=>({originalStartLineNumber:e.originalRange.startLineNumber,originalStartColumn:e.originalRange.startColumn,originalEndLineNumber:e.originalRange.endLineNumber,originalEndColumn:e.originalRange.endColumn,modifiedStartLineNumber:e.modifiedRange.startLineNumber,modifiedStartColumn:e.modifiedRange.startColumn,modifiedEndLineNumber:e.modifiedRange.endLineNumber,modifiedEndColumn:e.modifiedRange.endColumn}))}})}var d1=function(e,t,n,r){var i=arguments.length,a=i<3?t:r===null?r=Object.getOwnPropertyDescriptor(t,n):r,o;if(typeof Reflect==`object`&&typeof Reflect.decorate==`function`)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},f1=function(e,t){return function(n,r){t(n,r,e)}},uat=0,dat=!1;function fat(e){if(!e){if(dat)return;dat=!0}RXe(e||Nk.document.body)}var p1=class extends a${constructor(e,t,n,r,i,a,o,s,c,l,u,d,f){let p={...t};p.ariaLabel=p.ariaLabel||RZe.editorViewAccessibleLabel,super(e,p,{},n,r,i,a,c,l,u,d,f),s instanceof uX?this._standaloneKeybindingService=s:this._standaloneKeybindingService=null,fat(p.ariaContainerElement),LQe((e,t)=>n.createInstance(sV,e,t,{})),zQe(o)}addCommand(e,t,n){if(!this._standaloneKeybindingService)return console.warn(`Cannot add command because the editor is configured with an unrecognized KeybindingService`),null;let r=`DYNAMIC_`+ ++uat,i=Y.deserialize(n);return this._standaloneKeybindingService.addDynamicKeybinding(r,e,t,i),r}createContextKey(e,t){return this._contextKeyService.createKey(e,t)}addAction(e){if(typeof e.id!=`string`||typeof e.label!=`string`||typeof e.run!=`function`)throw Error("Invalid action descriptor, `id`, `label` and `run` are required properties!");if(!this._standaloneKeybindingService)return console.warn(`Cannot add keybinding because the editor is configured with an unrecognized KeybindingService`),R.None;let t=e.id,n=e.label,r=Y.and(Y.equals(`editorId`,this.getId()),Y.deserialize(e.precondition)),i=e.keybindings,a=Y.and(r,Y.deserialize(e.keybindingContext)),o=e.contextMenuGroupId||null,s=e.contextMenuOrder||0,c=(t,...n)=>Promise.resolve(e.run(this,...n)),l=new L,u=this.getId()+`:`+t;if(l.add(BN.registerCommand(u,c)),o){let e={command:{id:u,title:n},when:r,group:o,order:s};l.add(kP.appendMenuItem(EP.EditorContext,e))}if(Array.isArray(i))for(let e of i)l.add(this._standaloneKeybindingService.addDynamicKeybinding(u,e,c,a));let d=new snt(u,n,n,void 0,r,(...t)=>Promise.resolve(e.run(this,...t)),this._contextKeyService);return this._actions.set(t,d),l.add(fD(()=>{this._actions.delete(t)})),l}_triggerCommand(e,t){if(this._codeEditorService instanceof PR)try{this._codeEditorService.setActiveCodeEditor(this),super._triggerCommand(e,t)}finally{this._codeEditorService.setActiveCodeEditor(null)}else super._triggerCommand(e,t)}};p1=d1([f1(2,DN),f1(3,kN),f1(4,zN),f1(5,uP),f1(6,oV),f1(7,uV),f1(8,ER),f1(9,WR),f1(10,HH),f1(11,pI),f1(12,hR)],p1);var m1=class extends p1{constructor(e,t,n,r,i,a,o,s,c,l,u,d,f,p,m,h){let g={...t};mX(u,g,!1);let _=c.registerEditorContainer(e);typeof g.theme==`string`&&c.setTheme(g.theme),g.autoDetectHighContrast!==void 0&&c.setAutoDetectHighContrast(!!g.autoDetectHighContrast);let v=g.model;delete g.model,super(e,g,n,r,i,a,o,s,c,l,d,m,h),this._configurationService=u,this._standaloneThemeService=c,this._register(_);let y;if(v===void 0){let e=p.getLanguageIdByMimeType(g.language)||g.language||`plaintext`;y=pat(f,p,g.value||``,e,void 0),this._ownsModel=!0}else y=v,this._ownsModel=!1;if(this._attachModel(y),y){let e={oldModelUrl:null,newModelUrl:y.uri};this._onDidChangeModel.fire(e)}}dispose(){super.dispose()}updateOptions(e){mX(this._configurationService,e,!1),typeof e.theme==`string`&&this._standaloneThemeService.setTheme(e.theme),e.autoDetectHighContrast!==void 0&&this._standaloneThemeService.setAutoDetectHighContrast(!!e.autoDetectHighContrast),super.updateOptions(e)}_postDetachModelCleanup(e){super._postDetachModelCleanup(e),e&&this._ownsModel&&(e.dispose(),this._ownsModel=!1)}};m1=d1([f1(2,DN),f1(3,kN),f1(4,zN),f1(5,uP),f1(6,oV),f1(7,uV),f1(8,IY),f1(9,WR),f1(10,PF),f1(11,HH),f1(12,AN),f1(13,zF),f1(14,pI),f1(15,hR)],m1);var h1=class extends u1{constructor(e,t,n,r,i,a,o,s,c,l,u,d){let f={...t};mX(s,f,!0);let p=a.registerEditorContainer(e);typeof f.theme==`string`&&a.setTheme(f.theme),f.autoDetectHighContrast!==void 0&&a.setAutoDetectHighContrast(!!f.autoDetectHighContrast),super(e,f,{},r,n,i,d,l),this._configurationService=s,this._standaloneThemeService=a,this._register(p)}dispose(){super.dispose()}updateOptions(e){mX(this._configurationService,e,!0),typeof e.theme==`string`&&this._standaloneThemeService.setTheme(e.theme),e.autoDetectHighContrast!==void 0&&this._standaloneThemeService.setAutoDetectHighContrast(!!e.autoDetectHighContrast),super.updateOptions(e)}_createInnerEditor(e,t,n){return e.createInstance(p1,t,n)}getOriginalEditor(){return super.getOriginalEditor()}getModifiedEditor(){return super.getModifiedEditor()}addCommand(e,t,n){return this.getModifiedEditor().addCommand(e,t,n)}createContextKey(e,t){return this.getModifiedEditor().createContextKey(e,t)}addAction(e){return this.getModifiedEditor().addAction(e)}};h1=d1([f1(2,DN),f1(3,uP),f1(4,kN),f1(5,IY),f1(6,WR),f1(7,PF),f1(8,lV),f1(9,TU),f1(10,YY),f1(11,nX)],h1);function pat(e,t,n,r,i){if(n||=``,!r){let r=n.indexOf(`
|
|
3351
3351
|
`),a=n;return r!==-1&&(a=n.substring(0,r)),mat(e,n,t.createByFilepathOrFirstLine(i||null,a),i)}return mat(e,n,t.createById(r),i)}function mat(e,t,n,r){return e.createModel(t,n,r)}var hat=function(e,t,n,r){var i=arguments.length,a=i<3?t:r===null?r=Object.getOwnPropertyDescriptor(t,n):r,o;if(typeof Reflect==`object`&&typeof Reflect.decorate==`function`)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},gat=function(e,t){return function(n,r){t(n,r,e)}},_at=class{constructor(e,t){this.viewModel=e,this.deltaScrollVertical=t}getId(){return this.viewModel}},g1=class extends R{constructor(e,t,n,r,i){super(),this._container=e,this._overflowWidgetsDomNode=t,this._workbenchUIElementFactory=n,this._instantiationService=r,this._viewModel=ZU(this,void 0),this._collapsed=eW(this,e=>this._viewModel.read(e)?.collapsed.read(e)),this._editorContentHeight=ZU(this,500),this.contentHeight=eW(this,e=>(this._collapsed.read(e)?0:this._editorContentHeight.read(e))+this._outerEditorHeight),this._modifiedContentWidth=ZU(this,0),this._modifiedWidth=ZU(this,0),this._originalContentWidth=ZU(this,0),this._originalWidth=ZU(this,0),this.maxScroll=eW(this,e=>{let t=this._modifiedContentWidth.read(e)-this._modifiedWidth.read(e),n=this._originalContentWidth.read(e)-this._originalWidth.read(e);return t>n?{maxScroll:t,width:this._modifiedWidth.read(e)}:{maxScroll:n,width:this._originalWidth.read(e)}}),this._elements=pN(`div.multiDiffEntry`,[pN(`div.header@header`,[pN(`div.header-content`,[pN(`div.collapse-button@collapseButton`),pN(`div.file-path`,[pN(`div.title.modified.show-file-icons@primaryPath`,[]),pN(`div.status.deleted@status`,[`R`]),pN(`div.title.original.show-file-icons@secondaryPath`,[])]),pN(`div.actions@actions`)])]),pN(`div.editorParent`,[pN(`div.editorContainer@editor`)])]),this.editor=this._register(this._instantiationService.createInstance(u1,this._elements.editor,{overflowWidgetsDomNode:this._overflowWidgetsDomNode},{})),this.isModifedFocused=$$(this.editor.getModifiedEditor()).isFocused,this.isOriginalFocused=$$(this.editor.getOriginalEditor()).isFocused,this.isFocused=eW(this,e=>this.isModifedFocused.read(e)||this.isOriginalFocused.read(e)),this._resourceLabel=this._workbenchUIElementFactory.createResourceLabel?this._register(this._workbenchUIElementFactory.createResourceLabel(this._elements.primaryPath)):void 0,this._resourceLabel2=this._workbenchUIElementFactory.createResourceLabel?this._register(this._workbenchUIElementFactory.createResourceLabel(this._elements.secondaryPath)):void 0,this._dataStore=this._register(new L),this._headerHeight=40,this._lastScrollTop=-1,this._isSettingScrollTop=!1;let a=new Fq(this._elements.collapseButton,{});this._register(oW(e=>{a.element.className=``,a.icon=this._collapsed.read(e)?W.chevronRight:W.chevronDown})),this._register(a.onDidClick(()=>{this._viewModel.get()?.collapsed.set(!this._collapsed.get(),void 0)})),this._register(oW(e=>{this._elements.editor.style.display=this._collapsed.read(e)?`none`:`block`})),this._register(this.editor.getModifiedEditor().onDidLayoutChange(e=>{let t=this.editor.getModifiedEditor().getLayoutInfo().contentWidth;this._modifiedWidth.set(t,void 0)})),this._register(this.editor.getOriginalEditor().onDidLayoutChange(e=>{let t=this.editor.getOriginalEditor().getLayoutInfo().contentWidth;this._originalWidth.set(t,void 0)})),this._register(this.editor.onDidContentSizeChange(e=>{JU(t=>{this._editorContentHeight.set(e.contentHeight,t),this._modifiedContentWidth.set(this.editor.getModifiedEditor().getContentWidth(),t),this._originalContentWidth.set(this.editor.getOriginalEditor().getContentWidth(),t)})})),this._register(this.editor.getOriginalEditor().onDidScrollChange(e=>{if(this._isSettingScrollTop||!e.scrollTopChanged||!this._data)return;let t=e.scrollTop-this._lastScrollTop;this._data.deltaScrollVertical(t)})),this._register(oW(e=>{let t=this._viewModel.read(e)?.isActive.read(e);this._elements.root.classList.toggle(`active`,t)})),this._container.appendChild(this._elements.root),this._outerEditorHeight=this._headerHeight,this._contextKeyService=this._register(i.createScoped(this._elements.actions));let o=this._register(this._instantiationService.createChild(new eX([uP,this._contextKeyService])));this._register(o.createInstance(q$,this._elements.actions,EP.MultiDiffEditorFileToolbar,{actionRunner:this._register(new Iit(()=>this._viewModel.get()?.modifiedUri)),menuOptions:{shouldForwardArgs:!0},toolbarOptions:{primaryGroup:e=>e.startsWith(`navigation`)},actionViewItemProvider:(e,t)=>U$e(o,e,t)}))}setScrollLeft(e){this._modifiedContentWidth.get()-this._modifiedWidth.get()>this._originalContentWidth.get()-this._originalWidth.get()?this.editor.getModifiedEditor().setScrollLeft(e):this.editor.getOriginalEditor().setScrollLeft(e)}setData(e){this._data=e;function t(e){return{...e,scrollBeyondLastLine:!1,hideUnchangedRegions:{enabled:!0},scrollbar:{vertical:`hidden`,horizontal:`hidden`,handleMouseWheel:!1,useShadows:!1},renderOverviewRuler:!1,fixedOverflowWidgets:!0,overviewRulerBorder:!1}}if(!e){JU(e=>{this._viewModel.set(void 0,e),this.editor.setDiffModel(null,e),this._dataStore.clear()});return}let n=e.viewModel.documentDiffItem;if(JU(r=>{this._resourceLabel?.setUri(e.viewModel.modifiedUri??e.viewModel.originalUri,{strikethrough:e.viewModel.modifiedUri===void 0});let i=!1,a=!1,o=!1,s=``;e.viewModel.modifiedUri&&e.viewModel.originalUri&&e.viewModel.modifiedUri.path!==e.viewModel.originalUri.path?(s=`R`,i=!0):e.viewModel.modifiedUri?e.viewModel.originalUri||(s=`A`,o=!0):(s=`D`,a=!0),this._elements.status.classList.toggle(`renamed`,i),this._elements.status.classList.toggle(`deleted`,a),this._elements.status.classList.toggle(`added`,o),this._elements.status.innerText=s,this._resourceLabel2?.setUri(i?e.viewModel.originalUri:void 0,{strikethrough:!0}),this._dataStore.clear(),this._viewModel.set(e.viewModel,r),this.editor.setDiffModel(e.viewModel.diffEditorViewModelRef,r),this.editor.updateOptions(t(n.options??{}))}),n.onOptionsDidChange&&this._dataStore.add(n.onOptionsDidChange(()=>{this.editor.updateOptions(t(n.options??{}))})),e.viewModel.isAlive.recomputeInitiallyAndOnChange(this._dataStore,e=>{e||this.setData(void 0)}),e.viewModel.documentDiffItem.contextKeys)for(let[t,n]of Object.entries(e.viewModel.documentDiffItem.contextKeys))this._contextKeyService.createKey(t,n)}render(e,t,n,r){this._elements.root.style.visibility=`visible`,this._elements.root.style.top=`${e.start}px`,this._elements.root.style.height=`${e.length}px`,this._elements.root.style.width=`${t}px`,this._elements.root.style.position=`absolute`;let i=e.length-this._headerHeight,a=Math.max(0,Math.min(r.start-e.start,i));this._elements.header.style.transform=`translateY(${a}px)`,JU(n=>{this.editor.layout({width:t-16-2,height:e.length-this._outerEditorHeight})});try{this._isSettingScrollTop=!0,this._lastScrollTop=n,this.editor.getOriginalEditor().setScrollTop(n)}finally{this._isSettingScrollTop=!1}this._elements.header.classList.toggle(`shadow`,a>0||n>0),this._elements.header.classList.toggle(`collapsed`,a===i)}hide(){this._elements.root.style.top=`-100000px`,this._elements.root.style.visibility=`hidden`}};g1=hat([gat(3,DN),gat(4,uP)],g1);var vat=class{constructor(e){this._create=e,this._unused=new Set,this._used=new Set,this._itemData=new Map}getUnusedObj(e){let t;if(this._unused.size===0)t=this._create(e),this._itemData.set(t,e);else{let n=[...this._unused.values()];t=n.find(t=>this._itemData.get(t).getId()===e.getId())??n[0],this._unused.delete(t),this._itemData.set(t,e),t.setData(e)}return this._used.add(t),{object:t,dispose:()=>{this._used.delete(t),this._unused.size>5?t.dispose():this._unused.add(t)}}}dispose(){for(let e of this._used)e.dispose();for(let e of this._unused)e.dispose();this._used.clear(),this._unused.clear()}},yat=function(e,t,n,r){var i=arguments.length,a=i<3?t:r===null?r=Object.getOwnPropertyDescriptor(t,n):r,o;if(typeof Reflect==`object`&&typeof Reflect.decorate==`function`)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},bat=function(e,t){return function(n,r){t(n,r,e)}},_1=class extends R{constructor(e,t,n,r,i,a){super(),this._element=e,this._dimension=t,this._viewModel=n,this._workbenchUIElementFactory=r,this._parentContextKeyService=i,this._parentInstantiationService=a,this._scrollableElements=pN(`div.scrollContent`,[pN(`div@content`,{style:{overflow:`hidden`}}),pN(`div.monaco-editor@overflowWidgetsDomNode`,{})]),this._scrollable=this._register(new _V({forceIntegerValues:!1,scheduleAtNextAnimationFrame:e=>_M(oM(this._element),e),smoothScrollDuration:100})),this._scrollableElement=this._register(new bV(this._scrollableElements.root,{vertical:1,horizontal:1,useShadows:!1},this._scrollable)),this._elements=pN(`div.monaco-component.multiDiffEditor`,{},[pN(`div`,{},[this._scrollableElement.getDomNode()]),pN(`div.placeholder@placeholder`,{},[pN(`div`,[F(`noChangedFiles`,`No Changed Files`)])])]),this._sizeObserver=this._register(new Rrt(this._element,void 0)),this._objectPool=this._register(new vat(e=>{let t=this._instantiationService.createInstance(g1,this._scrollableElements.content,this._scrollableElements.overflowWidgetsDomNode,this._workbenchUIElementFactory);return t.setData(e),t})),this.scrollTop=fW(this,this._scrollableElement.onScroll,()=>this._scrollableElement.getScrollPosition().scrollTop),this.scrollLeft=fW(this,this._scrollableElement.onScroll,()=>this._scrollableElement.getScrollPosition().scrollLeft),this._viewItemsInfo=rW(this,(e,t)=>{let n=this._viewModel.read(e);if(!n)return{items:[],getItem:e=>{throw new nD}};let r=n.items.read(e),i=new Map;return{items:r.map(e=>{let n=t.add(new xat(e,this._objectPool,this.scrollLeft,e=>{this._scrollableElement.setScrollPosition({scrollTop:this._scrollableElement.getScrollPosition().scrollTop+e})})),r=this._lastDocStates?.[n.getKey()];return r&&KU(e=>{n.setViewState(r,e)}),i.set(e,n),n}),getItem:e=>i.get(e)}}),this._viewItems=this._viewItemsInfo.map(this,e=>e.items),this._spaceBetweenPx=0,this._totalHeight=this._viewItems.map(this,(e,t)=>e.reduce((e,n)=>e+n.contentHeight.read(t)+this._spaceBetweenPx,0)),this._contextKeyService=this._register(this._parentContextKeyService.createScoped(this._element)),this._instantiationService=this._register(this._parentInstantiationService.createChild(new eX([uP,this._contextKeyService]))),this._lastDocStates={},this._contextKeyService.createKey($.inMultiDiffEditor.key,!0),this._register(lW((e,t)=>{let n=this._viewModel.read(e);if(n&&n.contextKeys)for(let[e,r]of Object.entries(n.contextKeys)){let n=this._contextKeyService.createKey(e,void 0);n.set(r),t.add(fD(()=>n.reset()))}}));let o=this._parentContextKeyService.createKey($.multiDiffEditorAllCollapsed.key,!1);this._register(oW(e=>{let t=this._viewModel.read(e);if(t){let n=t.items.read(e).every(t=>t.collapsed.read(e));o.set(n)}})),this._register(oW(e=>{let t=this._dimension.read(e);this._sizeObserver.observe(t)})),this._register(oW(e=>{let t=this._viewItems.read(e);this._elements.placeholder.classList.toggle(`visible`,t.length===0)})),this._scrollableElements.content.style.position=`relative`,this._register(oW(e=>{let t=this._sizeObserver.height.read(e);this._scrollableElements.root.style.height=`${t}px`;let n=this._totalHeight.read(e);this._scrollableElements.content.style.height=`${n}px`;let r=this._sizeObserver.width.read(e),i=r,a=dL(this._viewItems.read(e),lT(t=>t.maxScroll.read(e).maxScroll,uT));a&&(i=r+a.maxScroll.read(e).maxScroll),this._scrollableElement.setScrollDimensions({width:r,height:t,scrollHeight:n,scrollWidth:i})})),e.replaceChildren(this._elements.root),this._register(fD(()=>{e.replaceChildren()})),this._register(this._register(oW(e=>{JU(t=>{this.render(e)})})))}render(e){let t=this.scrollTop.read(e),n=0,r=0,i=0,a=this._sizeObserver.height.read(e),o=aL.ofStartAndLength(t,a),s=this._sizeObserver.width.read(e);for(let c of this._viewItems.read(e)){let l=c.contentHeight.read(e),u=Math.min(l,a),d=aL.ofStartAndLength(r,u),f=aL.ofStartAndLength(i,l);if(f.isBefore(o))n-=l-u,c.hide();else if(f.isAfter(o))c.hide();else{let e=Math.max(0,Math.min(o.start-f.start,l-u));n-=e;let r=aL.ofStartAndLength(t+n,a);c.render(d,e,s,r)}r+=u+this._spaceBetweenPx,i+=l+this._spaceBetweenPx}this._scrollableElements.content.style.transform=`translateY(${-(t+n)}px)`}};_1=yat([bat(4,uP),bat(5,DN)],_1);var xat=class extends R{constructor(e,t,n,r){super(),this.viewModel=e,this._objectPool=t,this._scrollLeft=n,this._deltaScrollVertical=r,this._templateRef=this._register($U(this,void 0)),this.contentHeight=eW(this,e=>this._templateRef.read(e)?.object.contentHeight?.read(e)??this.viewModel.lastTemplateData.read(e).contentHeight),this.maxScroll=eW(this,e=>this._templateRef.read(e)?.object.maxScroll.read(e)??{maxScroll:0,scrollWidth:0}),this.template=eW(this,e=>this._templateRef.read(e)?.object),this._isHidden=ZU(this,!1),this._isFocused=eW(this,e=>this.template.read(e)?.isFocused.read(e)??!1),this.viewModel.setIsFocused(this._isFocused,void 0),this._register(oW(e=>{let t=this._scrollLeft.read(e);this._templateRef.read(e)?.object.setScrollLeft(t)})),this._register(oW(e=>{let t=this._templateRef.read(e);t&&this._isHidden.read(e)&&(t.object.isFocused.read(e)||this._clear())}))}dispose(){this._clear(),super.dispose()}toString(){return`VirtualViewItem(${this.viewModel.documentDiffItem.modified?.uri.toString()})`}getKey(){return this.viewModel.getKey()}setViewState(e,t){this.viewModel.collapsed.set(e.collapsed,t),this._updateTemplateData(t);let n=this.viewModel.lastTemplateData.get(),r=e.selections?.map(_O.liftSelection);this.viewModel.lastTemplateData.set({...n,selections:r},t);let i=this._templateRef.get();i&&r&&i.object.editor.setSelections(r)}_updateTemplateData(e){let t=this._templateRef.get();t&&this.viewModel.lastTemplateData.set({contentHeight:t.object.contentHeight.get(),selections:t.object.editor.getSelections()??void 0},e)}_clear(){let e=this._templateRef.get();e&&KU(t=>{this._updateTemplateData(t),e.object.hide(),this._templateRef.set(void 0,t)})}hide(){this._isHidden.set(!0,void 0)}render(e,t,n,r){this._isHidden.set(!1,void 0);let i=this._templateRef.get();if(!i){i=this._objectPool.getUnusedObj(new _at(this.viewModel,this._deltaScrollVertical)),this._templateRef.set(i,void 0);let e=this.viewModel.lastTemplateData.get().selections;e&&i.object.editor.setSelections(e)}i.object.render(e,n,t,r)}};Q(`multiDiffEditor.headerBackground`,{dark:`#262626`,light:`tab.inactiveBackground`,hcDark:`tab.inactiveBackground`,hcLight:`tab.inactiveBackground`},F(`multiDiffEditor.headerBackground`,`The background color of the diff editor's header`)),Q(`multiDiffEditor.background`,mB,F(`multiDiffEditor.background`,`The background color of the multi file diff editor`)),Q(`multiDiffEditor.border`,{dark:`sideBarSectionHeader.border`,light:`#cccccc`,hcDark:`sideBarSectionHeader.border`,hcLight:`#cccccc`},F(`multiDiffEditor.border`,`The border color of the multi file diff editor`));var Sat=function(e,t,n,r){var i=arguments.length,a=i<3?t:r===null?r=Object.getOwnPropertyDescriptor(t,n):r,o;if(typeof Reflect==`object`&&typeof Reflect.decorate==`function`)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},Cat=function(e,t){return function(n,r){t(n,r,e)}},v1=class extends R{constructor(e,t,n){super(),this._element=e,this._workbenchUIElementFactory=t,this._instantiationService=n,this._dimension=ZU(this,void 0),this._viewModel=ZU(this,void 0),this._widgetImpl=rW(this,(e,t)=>(R$(g1,e),t.add(this._instantiationService.createInstance(R$(_1,e),this._element,this._dimension,this._viewModel,this._workbenchUIElementFactory)))),this._register(gW(this._widgetImpl))}};v1=Sat([Cat(2,DN)],v1);function wat(e,t,n){return bX.initialize(n||{}).createInstance(m1,e,t)}function Tat(e){return bX.get(kN).onCodeEditorAdd(t=>{e(t)})}function Eat(e){return bX.get(kN).onDiffEditorAdd(t=>{e(t)})}function Dat(){return bX.get(kN).listCodeEditors()}function Oat(){return bX.get(kN).listDiffEditors()}function kat(e,t,n){return bX.initialize(n||{}).createInstance(h1,e,t)}function Aat(e,t){return new v1(e,{},bX.initialize(t||{}))}function jat(e){if(typeof e.id!=`string`||typeof e.run!=`function`)throw Error("Invalid command descriptor, `id` and `run` are required properties!");return BN.registerCommand(e.id,e.run)}function Mat(e){if(typeof e.id!=`string`||typeof e.label!=`string`||typeof e.run!=`function`)throw Error("Invalid action descriptor, `id`, `label` and `run` are required properties!");let t=Y.deserialize(e.precondition),n=(n,...r)=>HP.runEditorCommand(n,r,t,(t,n,r)=>Promise.resolve(e.run(n,...r))),r=new L;if(r.add(BN.registerCommand(e.id,n)),e.contextMenuGroupId){let n={command:{id:e.id,title:e.label},when:t,group:e.contextMenuGroupId,order:e.contextMenuOrder||0};r.add(kP.appendMenuItem(EP.EditorContext,n))}if(Array.isArray(e.keybindings)){let n=bX.get(uV);if(!(n instanceof uX))console.warn(`Cannot add keybinding because the editor is configured with an unrecognized KeybindingService`);else{let i=Y.and(t,Y.deserialize(e.keybindingContext));r.add(n.addDynamicKeybindings(e.keybindings.map(t=>({keybinding:t,command:e.id,when:i}))))}}return r}function Nat(e){return Pat([e])}function Pat(e){let t=bX.get(uV);return t instanceof uX?t.addDynamicKeybindings(e.map(e=>({keybinding:e.keybinding,command:e.command,commandArgs:e.commandArgs,when:Y.deserialize(e.when)}))):(console.warn(`Cannot add keybinding because the editor is configured with an unrecognized KeybindingService`),R.None)}function Fat(e,t,n){let r=bX.get(zF),i=r.getLanguageIdByMimeType(t)||t;return pat(bX.get(AN),r,e,i,n)}function Iat(e,t){let n=bX.get(zF),r=n.getLanguageIdByMimeType(t)||t||`plaintext`;e.setLanguage(n.createById(r))}function Lat(e,t,n){e&&bX.get(EG).changeOne(t,e.uri,n)}function Rat(e){bX.get(EG).changeAll(e,[])}function zat(e){return bX.get(EG).read(e)}function Bat(e){return bX.get(EG).onMarkerChanged(e)}function Vat(e){return bX.get(AN).getModel(e)}function Hat(){return bX.get(AN).getModels()}function Uat(e){return bX.get(AN).onModelAdded(e)}function Wat(e){return bX.get(AN).onModelRemoved(e)}function Gat(e){return bX.get(AN).onModelLanguageChanged(t=>{e({model:t.model,oldLanguage:t.oldLanguageId})})}function Kat(e){return Z5e(bX.get(AN),e)}function qat(e,t){let n=bX.get(zF),r=bX.get(IY);return WX.colorizeElement(r,n,e,t).then(()=>{r.registerEditorContainer(e)})}function Jat(e,t,n){let r=bX.get(zF);return bX.get(IY).registerEditorContainer(Nk.document.body),WX.colorize(r,e,t,n)}function Yat(e,t,n=4){return bX.get(IY).registerEditorContainer(Nk.document.body),WX.colorizeModelLine(e,t,n)}function Xat(e){return LO.get(e)||{getInitialState:()=>IH,tokenize:(t,n,r)=>LH(e,r)}}function Zat(e,t){LO.getOrCreate(t);let n=Xat(t),r=Wk(e),i=[],a=n.getInitialState();for(let e=0,t=r.length;e<t;e++){let t=r[e],o=n.tokenize(t,!0,a);i[e]=o.tokens,a=o.endState}return i}function Qat(e,t){bX.get(IY).defineTheme(e,t)}function $at(e){bX.get(IY).setTheme(e)}function eot(){TN.clearAllFontInfos()}function tot(e,t){return BN.registerCommand({id:e,handler:t})}function not(e){return bX.get(wV).registerOpener({async open(t){return typeof t==`string`&&(t=sO.parse(t)),e.open(t)}})}function rot(e){return bX.get(kN).registerCodeEditorOpenHandler(async(t,n,r)=>{if(!n)return null;let i=t.options?.selection,a;return i&&typeof i.endLineNumber==`number`&&typeof i.endColumn==`number`?a=i:i&&(a={lineNumber:i.startLineNumber,column:i.startColumn}),await e.openCodeEditor(n,t.resource,a)?n:null})}function iot(){return{create:wat,getEditors:Dat,getDiffEditors:Oat,onDidCreateEditor:Tat,onDidCreateDiffEditor:Eat,createDiffEditor:kat,addCommand:jat,addEditorAction:Mat,addKeybindingRule:Nat,addKeybindingRules:Pat,createModel:Fat,setModelLanguage:Iat,setModelMarkers:Lat,getModelMarkers:zat,removeAllMarkers:Rat,onDidChangeMarkers:Bat,getModels:Hat,getModel:Vat,onDidCreateModel:Uat,onWillDisposeModel:Wat,onDidChangeModelLanguage:Gat,createWebWorker:Kat,colorizeElement:qat,colorize:Jat,colorizeModelLine:Yat,tokenize:Zat,defineTheme:Qat,setTheme:$at,remeasureFonts:eot,registerCommand:tot,registerLinkOpener:not,registerEditorOpener:rot,AccessibilitySupport:BO,ContentWidgetPositionPreference:KO,CursorChangeReason:qO,DefaultEndOfLine:JO,EditorAutoIndentStrategy:XO,EditorOption:ZO,EndOfLinePreference:QO,EndOfLineSequence:$O,MinimapPosition:uk,MinimapSectionHeaderStyle:dk,MouseTargetType:fk,OverlayWidgetPositionPreference:hk,OverviewRulerLane:gk,GlyphMarginLane:ek,RenderLineNumbersType:yk,RenderMinimap:bk,ScrollbarVisibility:Sk,ScrollType:xk,TextEditorCursorBlinkingStyle:Ok,TextEditorCursorStyle:kk,TrackedRangeStickiness:Ak,WrappingIndent:jk,InjectedTextCursorStops:rk,PositionAffinity:vk,ShowLightbulbIconMode:wk,ConfigurationChangedEvent:_E,BareFontInfo:CN,FontInfo:wN,TextModelResolvedOptions:WI,FindMatch:GI,ApplyUpdateResult:bE,EditorZoom:xN,createMultiFileDiffEditor:Aat,EditorType:xX,EditorOptions:GE}}function aot(e,t){if(!t||!Array.isArray(t))return!1;for(let n of t)if(!e(n))return!1;return!0}function y1(e,t){return typeof e==`boolean`?e:t}function oot(e,t){return typeof e==`string`?e:t}function sot(e){let t={};for(let n of e)t[n]=!0;return t}function cot(e,t=!1){t&&(e=e.map(function(e){return e.toLowerCase()}));let n=sot(e);return t?function(e){return n[e.toLowerCase()]!==void 0&&n.hasOwnProperty(e.toLowerCase())}:function(e){return n[e]!==void 0&&n.hasOwnProperty(e)}}function b1(e,t,n){t=t.replace(/@@/g,``);let r=0,i;do i=!1,t=t.replace(/@(\w+)/g,function(n,r){i=!0;let a=``;if(typeof e[r]==`string`)a=e[r];else if(e[r]&&e[r]instanceof RegExp)a=e[r].source;else if(e[r]===void 0)throw FX(e,`language definition does not contain attribute '`+r+`', used at: `+t);else throw FX(e,`attribute reference '`+r+`' must be a string, used at: `+t);return NX(a)?``:`(?:`+a+`)`}),r++;while(i&&r<5);t=t.replace(/\x01/g,`@`);let a=(e.ignoreCase?`i`:``)+(e.unicode?`u`:``);if(n&&t.match(/\$[sS](\d\d?)/g)){let n=null,r=null;return i=>r&&n===i?r:(n=i,r=new RegExp(E7e(e,t,i),a),r)}return new RegExp(t,a)}function lot(e,t,n,r){if(r<0)return e;if(r<t.length)return t[r];if(r>=100){r-=100;let e=n.split(`.`);if(e.unshift(n),r<e.length)return e[r]}return null}function uot(e,t,n,r){let i=-1,a=n,o=n.match(/^\$(([sS]?)(\d\d?)|#)(.*)$/);o&&(o[3]&&(i=parseInt(o[3]),o[2]&&(i+=100)),a=o[4]);let s=`~`,c=a;!a||a.length===0?(s=`!=`,c=``):/^\w*$/.test(c)?s=`==`:(o=a.match(/^(@|!@|~|!~|==|!=)(.*)$/),o&&(s=o[1],c=o[2]));let l;if((s===`~`||s===`!~`)&&/^(\w|\|)*$/.test(c)){let t=cot(c.split(`|`),e.ignoreCase);l=function(e){return s===`~`?t(e):!t(e)}}else if(s===`@`||s===`!@`){let n=e[c];if(!n)throw FX(e,`the @ match target '`+c+`' is not defined, in rule: `+t);if(!aot(function(e){return typeof e==`string`},n))throw FX(e,`the @ match target '`+c+`' must be an array of strings, in rule: `+t);let r=cot(n,e.ignoreCase);l=function(e){return s===`@`?r(e):!r(e)}}else if(s===`~`||s===`!~`)if(c.indexOf(`$`)<0){let t=b1(e,`^`+c+`$`,!1);l=function(e){return s===`~`?t.test(e):!t.test(e)}}else l=function(t,n,r,i){return b1(e,`^`+IX(e,c,n,r,i)+`$`,!1).test(t)};else if(c.indexOf(`$`)<0){let t=PX(e,c);l=function(e){return s===`==`?e===t:e!==t}}else{let t=PX(e,c);l=function(n,r,i,a,o){let c=IX(e,t,r,i,a);return s===`==`?n===c:n!==c}}return i===-1?{name:n,value:r,test:function(e,t,n,r){return l(e,e,t,n,r)}}:{name:n,value:r,test:function(e,t,n,r){let a=lot(e,t,n,i);return l(a||``,e,t,n,r)}}}function x1(e,t,n){if(n){if(typeof n==`string`)return n;if(n.token||n.token===``){if(typeof n.token!=`string`)throw FX(e,`a 'token' attribute must be of type string, in rule: `+t);{let r={token:n.token};if(n.token.indexOf(`$`)>=0&&(r.tokenSubst=!0),typeof n.bracket==`string`)if(n.bracket===`@open`)r.bracket=1;else if(n.bracket===`@close`)r.bracket=-1;else throw FX(e,`a 'bracket' attribute must be either '@open' or '@close', in rule: `+t);if(n.next){if(typeof n.next!=`string`)throw FX(e,`the next state must be a string value in rule: `+t);{let i=n.next;if(!/^(@pop|@push|@popall)$/.test(i)&&(i[0]===`@`&&(i=i.substr(1)),i.indexOf(`$`)<0&&!D7e(e,IX(e,i,``,[],``))))throw FX(e,`the next state '`+n.next+`' is not defined in rule: `+t);r.next=i}}return typeof n.goBack==`number`&&(r.goBack=n.goBack),typeof n.switchTo==`string`&&(r.switchTo=n.switchTo),typeof n.log==`string`&&(r.log=n.log),typeof n.nextEmbedded==`string`&&(r.nextEmbedded=n.nextEmbedded,e.usesEmbedded=!0),r}}else if(Array.isArray(n)){let r=[];for(let i=0,a=n.length;i<a;i++)r[i]=x1(e,t,n[i]);return{group:r}}else if(n.cases){let r=[];for(let i in n.cases)if(n.cases.hasOwnProperty(i)){let a=x1(e,t,n.cases[i]);i===`@default`||i===`@`||i===``?r.push({test:void 0,value:a,name:i}):i===`@eos`?r.push({test:function(e,t,n,r){return r},value:a,name:i}):r.push(uot(e,t,i,a))}let i=e.defaultToken;return{test:function(e,t,n,a){for(let i of r)if(!i.test||i.test(e,t,n,a))return i.value;return i}}}else throw FX(e,`an action must be a string, an object with a 'token' or 'cases' attribute, or an array of actions; in rule: `+t)}else return{token:``}}var dot=class{constructor(e){this.regex=RegExp(``),this.action={token:``},this.matchOnlyAtLineStart=!1,this.name=``,this.name=e}setRegex(e,t){let n;if(typeof t==`string`)n=t;else if(t instanceof RegExp)n=t.source;else throw FX(e,`rules must start with a match string or regular expression: `+this.name);this.matchOnlyAtLineStart=n.length>0&&n[0]===`^`,this.name=this.name+`: `+n,this.regex=b1(e,`^(?:`+(this.matchOnlyAtLineStart?n.substr(1):n)+`)`,!0)}setAction(e,t){this.action=x1(e,this.name,t)}resolveRegex(e){return this.regex instanceof RegExp?this.regex:this.regex(e)}};function fot(e,t){if(!t||typeof t!=`object`)throw Error(`Monarch: expecting a language definition object`);let n={languageId:e,includeLF:y1(t.includeLF,!1),noThrow:!1,maxStack:100,start:typeof t.start==`string`?t.start:null,ignoreCase:y1(t.ignoreCase,!1),unicode:y1(t.unicode,!1),tokenPostfix:oot(t.tokenPostfix,`.`+e),defaultToken:oot(t.defaultToken,`source`),usesEmbedded:!1,stateNames:{},tokenizer:{},brackets:[]},r=t;r.languageId=e,r.includeLF=n.includeLF,r.ignoreCase=n.ignoreCase,r.unicode=n.unicode,r.noThrow=n.noThrow,r.usesEmbedded=n.usesEmbedded,r.stateNames=t.tokenizer,r.defaultToken=n.defaultToken;function i(e,a,o){for(let s of o){let o=s.include;if(o){if(typeof o!=`string`)throw FX(n,`an 'include' attribute must be a string at: `+e);if(o[0]===`@`&&(o=o.substr(1)),!t.tokenizer[o])throw FX(n,`include target '`+o+`' is not defined at: `+e);i(e+`.`+o,a,t.tokenizer[o])}else{let t=new dot(e);if(Array.isArray(s)&&s.length>=1&&s.length<=3)if(t.setRegex(r,s[0]),s.length>=3)if(typeof s[1]==`string`)t.setAction(r,{token:s[1],next:s[2]});else if(typeof s[1]==`object`){let e=s[1];e.next=s[2],t.setAction(r,e)}else throw FX(n,`a next state as the last element of a rule can only be given if the action is either an object or a string, at: `+e);else t.setAction(r,s[1]);else{if(!s.regex)throw FX(n,`a rule must either be an array, or an object with a 'regex' or 'include' field at: `+e);s.name&&typeof s.name==`string`&&(t.name=s.name),s.matchOnlyAtStart&&(t.matchOnlyAtLineStart=y1(s.matchOnlyAtLineStart,!1)),t.setRegex(r,s.regex),t.setAction(r,s.action)}a.push(t)}}}if(!t.tokenizer||typeof t.tokenizer!=`object`)throw FX(n,`a language definition must define the 'tokenizer' attribute as an object`);for(let e in n.tokenizer=[],t.tokenizer)if(t.tokenizer.hasOwnProperty(e)){n.start||=e;let r=t.tokenizer[e];n.tokenizer[e]=[],i(`tokenizer.`+e,n.tokenizer[e],r)}if(n.usesEmbedded=r.usesEmbedded,t.brackets){if(!Array.isArray(t.brackets))throw FX(n,`the 'brackets' attribute must be defined as an array`)}else t.brackets=[{open:`{`,close:`}`,token:`delimiter.curly`},{open:`[`,close:`]`,token:`delimiter.square`},{open:`(`,close:`)`,token:`delimiter.parenthesis`},{open:`<`,close:`>`,token:`delimiter.angle`}];let a=[];for(let e of t.brackets){let t=e;if(t&&Array.isArray(t)&&t.length===3&&(t={token:t[2],open:t[0],close:t[1]}),t.open===t.close)throw FX(n,`open and close brackets in a 'brackets' attribute must be different: `+t.open+`
|
|
3352
|
-
hint: use the 'bracket' attribute if matching on equal brackets is required.`);if(typeof t.open==`string`&&typeof t.token==`string`&&typeof t.close==`string`)a.push({token:t.token+n.tokenPostfix,open:PX(n,t.open),close:PX(n,t.close)});else throw FX(n,`every element in the 'brackets' array must be a '{open,close,token}' object or array`)}return n.brackets=a,n.noThrow=!0,n}function pot(e){sI.registerLanguage(e)}function mot(){let e=[];return e=e.concat(sI.getLanguages()),e}function hot(e){return bX.get(zF).languageIdCodec.encodeLanguageId(e)}function got(e,t){return bX.withServices(()=>{let n=bX.get(zF).onDidRequestRichLanguageFeatures(r=>{r===e&&(n.dispose(),t())});return n})}function _ot(e,t){return bX.withServices(()=>{let n=bX.get(zF).onDidRequestBasicLanguageFeatures(r=>{r===e&&(n.dispose(),t())});return n})}function vot(e,t){if(!bX.get(zF).isRegisteredLanguageId(e))throw Error(`Cannot set configuration for unknown language ${e}`);return bX.get(pI).register(e,t,100)}var yot=class{constructor(e,t){this._languageId=e,this._actual=t}dispose(){}getInitialState(){return this._actual.getInitialState()}tokenize(e,t,n){if(typeof this._actual.tokenize==`function`)return bot.adaptTokenize(this._languageId,this._actual,e,n);throw Error(`Not supported!`)}tokenizeEncoded(e,t,n){let r=this._actual.tokenizeEncoded(e,n);return new CO(r.tokens,r.endState)}},bot=class e{constructor(e,t,n,r){this._languageId=e,this._actual=t,this._languageService=n,this._standaloneThemeService=r}dispose(){}getInitialState(){return this._actual.getInitialState()}static _toClassicTokens(e,t){let n=[],r=0;for(let i=0,a=e.length;i<a;i++){let a=e[i],o=a.startIndex;i===0?o=0:o<r&&(o=r),n[i]=new xO(o,a.scopes,t),r=o}return n}static adaptTokenize(t,n,r,i){let a=n.tokenize(r,i),o=e._toClassicTokens(a.tokens,t),s;return s=a.endState.equals(i)?i:a.endState,new SO(o,s)}tokenize(t,n,r){return e.adaptTokenize(this._languageId,this._actual,t,r)}_toBinaryTokens(e,t){let n=e.encodeLanguageId(this._languageId),r=this._standaloneThemeService.getColorTheme().tokenTheme,i=[],a=0,o=0;for(let e=0,s=t.length;e<s;e++){let s=t[e],c=r.match(n,s.scopes)|1024;if(a>0&&i[a-1]===c)continue;let l=s.startIndex;e===0?l=0:l<o&&(l=o),i[a++]=l,i[a++]=c,o=l}let s=new Uint32Array(a);for(let e=0;e<a;e++)s[e]=i[e];return s}tokenizeEncoded(e,t,n){let r=this._actual.tokenize(e,n),i=this._toBinaryTokens(this._languageService.languageIdCodec,r.tokens),a;return a=r.endState.equals(n)?n:r.endState,new CO(i,a)}};function xot(e){return typeof e.getInitialState==`function`}function Sot(e){return`tokenizeEncoded`in e}function Cot(e){return e&&typeof e.then==`function`}function wot(e){let t=bX.get(IY);if(e){let n=[null];for(let t=1,r=e.length;t<r;t++)n[t]=Z.fromHex(e[t]);t.setColorMapOverride(n)}else t.setColorMapOverride(null)}function Tot(e,t){return Sot(t)?new yot(e,t):new bot(e,t,bX.get(zF),bX.get(IY))}function S1(e,t){let n=new $Be(async()=>{let n=await Promise.resolve(t.create());return n?xot(n)?Tot(e,n):new UX(bX.get(zF),bX.get(IY),e,fot(e,n),bX.get(PF)):null});return LO.registerFactory(e,n)}function Eot(e,t){if(!bX.get(zF).isRegisteredLanguageId(e))throw Error(`Cannot set tokens provider for unknown language ${e}`);return Cot(t)?S1(e,{create:()=>t}):LO.register(e,Tot(e,t))}function Dot(e,t){return Cot(t)?S1(e,{create:()=>t}):LO.register(e,(t=>new UX(bX.get(zF),bX.get(IY),e,fot(e,t),bX.get(PF)))(t))}function Oot(e,t){return bX.get(hR).referenceProvider.register(e,t)}function kot(e,t){return bX.get(hR).renameProvider.register(e,t)}function Aot(e,t){return bX.get(hR).newSymbolNamesProvider.register(e,t)}function jot(e,t){return bX.get(hR).signatureHelpProvider.register(e,t)}function Mot(e,t){return bX.get(hR).hoverProvider.register(e,{provideHover:async(e,n,r,i)=>{let a=e.getWordAtPosition(n);return Promise.resolve(t.provideHover(e,n,r,i)).then(e=>{if(e)return!e.range&&a&&(e.range=new H(n.lineNumber,a.startColumn,n.lineNumber,a.endColumn)),e.range||=new H(n.lineNumber,n.column,n.lineNumber,n.column),e})}})}function Not(e,t){return bX.get(hR).documentSymbolProvider.register(e,t)}function Pot(e,t){return bX.get(hR).documentHighlightProvider.register(e,t)}function Fot(e,t){return bX.get(hR).linkedEditingRangeProvider.register(e,t)}function Iot(e,t){return bX.get(hR).definitionProvider.register(e,t)}function Lot(e,t){return bX.get(hR).implementationProvider.register(e,t)}function Rot(e,t){return bX.get(hR).typeDefinitionProvider.register(e,t)}function zot(e,t){return bX.get(hR).codeLensProvider.register(e,t)}function Bot(e,t,n){return bX.get(hR).codeActionProvider.register(e,{providedCodeActionKinds:n?.providedCodeActionKinds,documentation:n?.documentation,provideCodeActions:(e,n,r,i)=>{let a=bX.get(EG).read({resource:e.uri}).filter(e=>H.areIntersectingOrTouching(e,n));return t.provideCodeActions(e,n,{markers:a,only:r.only,trigger:r.trigger},i)},resolveCodeAction:t.resolveCodeAction})}function Vot(e,t){return bX.get(hR).documentFormattingEditProvider.register(e,t)}function Hot(e,t){return bX.get(hR).documentRangeFormattingEditProvider.register(e,t)}function Uot(e,t){return bX.get(hR).onTypeFormattingEditProvider.register(e,t)}function Wot(e,t){return bX.get(hR).linkProvider.register(e,t)}function Got(e,t){return bX.get(hR).completionProvider.register(e,t)}function Kot(e,t){return bX.get(hR).colorProvider.register(e,t)}function qot(e,t){return bX.get(hR).foldingRangeProvider.register(e,t)}function Jot(e,t){return bX.get(hR).declarationProvider.register(e,t)}function Yot(e,t){return bX.get(hR).selectionRangeProvider.register(e,t)}function Xot(e,t){return bX.get(hR).documentSemanticTokensProvider.register(e,t)}function Zot(e,t){return bX.get(hR).documentRangeSemanticTokensProvider.register(e,t)}function Qot(e,t){return bX.get(hR).inlineCompletionsProvider.register(e,t)}function $ot(e,t){return bX.get(hR).inlineEditProvider.register(e,t)}function est(e,t){return bX.get(hR).inlayHintsProvider.register(e,t)}function tst(){return{register:pot,getLanguages:mot,onLanguage:got,onLanguageEncountered:_ot,getEncodedLanguageId:hot,setLanguageConfiguration:vot,setColorMap:wot,registerTokensProviderFactory:S1,setTokensProvider:Eot,setMonarchTokensProvider:Dot,registerReferenceProvider:Oot,registerRenameProvider:kot,registerNewSymbolNameProvider:Aot,registerCompletionItemProvider:Got,registerSignatureHelpProvider:jot,registerHoverProvider:Mot,registerDocumentSymbolProvider:Not,registerDocumentHighlightProvider:Pot,registerLinkedEditingRangeProvider:Fot,registerDefinitionProvider:Iot,registerImplementationProvider:Lot,registerTypeDefinitionProvider:Rot,registerCodeLensProvider:zot,registerCodeActionProvider:Bot,registerDocumentFormattingEditProvider:Vot,registerDocumentRangeFormattingEditProvider:Hot,registerOnTypeFormattingEditProvider:Uot,registerLinkProvider:Wot,registerColorProvider:Kot,registerFoldingRangeProvider:qot,registerDeclarationProvider:Jot,registerSelectionRangeProvider:Yot,registerDocumentSemanticTokensProvider:Xot,registerDocumentRangeSemanticTokensProvider:Zot,registerInlineCompletionsProvider:Qot,registerInlineEditProvider:$ot,registerInlayHintsProvider:est,DocumentHighlightKind:YO,CompletionItemKind:UO,CompletionItemTag:WO,CompletionItemInsertTextRule:HO,SymbolKind:Ek,SymbolTag:Dk,IndentAction:nk,CompletionTriggerKind:GO,SignatureHelpTriggerKind:Tk,InlayHintKind:ik,InlineCompletionTriggerKind:ak,InlineEditTriggerKind:ok,CodeActionTriggerType:VO,NewSymbolNameTag:pk,NewSymbolNameTriggerKind:mk,PartialAcceptTriggerKind:_k,HoverVerbosityAction:tk,FoldingRangeKind:MO,SelectedSuggestionInfo:DO}}var C1=ON(`IEditorCancelService`),nst=new lP(`cancellableOperation`,!1,F(`cancellableOperation`,`Whether the editor runs a cancellable operation, e.g. like 'Peek References'`));HF(C1,class{constructor(){this._tokens=new WeakMap}add(e,t){let n=this._tokens.get(e);n||(n=e.invokeWithinContext(e=>({key:nst.bindTo(e.get(uP)),tokens:new dE})),this._tokens.set(e,n));let r;return n.key.set(!0),r=n.tokens.push(t),()=>{r&&=(r(),n.key.set(!n.tokens.isEmpty()),void 0)}}cancel(e){let t=this._tokens.get(e);if(!t)return;let n=t.tokens.pop();n&&(n.cancel(),t.key.set(!t.tokens.isEmpty()))}},1);var rst=class extends ED{constructor(e,t){super(t),this.editor=e,this._unregister=e.invokeWithinContext(t=>t.get(C1).add(e,this))}dispose(){this._unregister(),super.dispose()}};qP(new class extends HP{constructor(){super({id:`editor.cancelOperation`,kbOpts:{weight:100,primary:9},precondition:nst})}runEditorCommand(e,t){e.get(C1).cancel(t)}});var ist=class e{constructor(e,t){if(this.flags=t,this.flags&1){let t=e.getModel();this.modelVersionId=t?Rk(`{0}#{1}`,t.uri.toString(),t.getVersionId()):null}else this.modelVersionId=null;this.flags&4?this.position=e.getPosition():this.position=null,this.flags&2?this.selection=e.getSelection():this.selection=null,this.flags&8?(this.scrollLeft=e.getScrollLeft(),this.scrollTop=e.getScrollTop()):(this.scrollLeft=-1,this.scrollTop=-1)}_equals(t){if(!(t instanceof e))return!1;let n=t;return!(this.modelVersionId!==n.modelVersionId||this.scrollLeft!==n.scrollLeft||this.scrollTop!==n.scrollTop||!this.position&&n.position||this.position&&!n.position||this.position&&n.position&&!this.position.equals(n.position)||!this.selection&&n.selection||this.selection&&!n.selection||this.selection&&n.selection&&!this.selection.equalsRange(n.selection))}validate(t){return this._equals(new e(t,this.flags))}},w1=class extends rst{constructor(e,t,n,r){super(e,r),this._listener=new L,t&4&&this._listener.add(e.onDidChangeCursorPosition(e=>{(!n||!H.containsPosition(n,e.position))&&this.cancel()})),t&2&&this._listener.add(e.onDidChangeCursorSelection(e=>{(!n||!H.containsRange(n,e.selection))&&this.cancel()})),t&8&&this._listener.add(e.onDidScrollChange(e=>this.cancel())),t&1&&(this._listener.add(e.onDidChangeModel(e=>this.cancel())),this._listener.add(e.onDidChangeModelContent(e=>this.cancel())))}dispose(){this._listener.dispose(),super.dispose()}},T1=class extends ED{constructor(e,t){super(t),this._listener=e.onDidChangeContent(()=>this.cancel())}dispose(){this._listener.dispose(),super.dispose()}};function E1(e){return e&&typeof e.getEditorType==`function`?e.getEditorType()===xX.ICodeEditor:!1}function D1(e){return e&&typeof e.getEditorType==`function`?e.getEditorType()===xX.IDiffEditor:!1}function ast(e){return!!e&&typeof e==`object`&&typeof e.onDidChangeActiveEditor==`function`}function ost(e){return E1(e)?e:D1(e)?e.getModifiedEditor():ast(e)&&E1(e.activeCodeEditor)?e.activeCodeEditor:null}var O1=class e{static _handleEolEdits(e,t){let n,r=[];for(let e of t)typeof e.eol==`number`&&(n=e.eol),e.range&&typeof e.text==`string`&&r.push(e);return typeof n==`number`&&e.hasModel()&&e.getModel().pushEOL(n),r}static _isFullModelReplaceEdit(e,t){if(!e.hasModel())return!1;let n=e.getModel(),r=n.validateRange(t.range);return n.getFullModelRange().equalsRange(r)}static execute(t,n,r){r&&t.pushUndoStop();let i=c$.capture(t),a=e._handleEolEdits(t,n);a.length===1&&e._isFullModelReplaceEdit(t,a[0])?t.executeEdits(`formatEditsCommand`,a.map(e=>mU.replace(H.lift(e.range),e.text))):t.executeEdits(`formatEditsCommand`,a.map(e=>mU.replaceMove(H.lift(e.range),e.text))),r&&t.pushUndoStop(),i.restoreRelativeVerticalPositionOfCursor(t)}},sst=class{constructor(e){this.value=e,this._lower=e.toLowerCase()}static toKey(e){return typeof e==`string`?e.toLowerCase():e._lower}},cst=class{constructor(e){if(this._set=new Set,e)for(let t of e)this.add(t)}add(e){this._set.add(sst.toKey(e))}has(e){return this._set.has(sst.toKey(e))}};function lst(e,t,n){let r=[],i=new cst,a=e.ordered(n);for(let e of a)r.push(e),e.extensionId&&i.add(e.extensionId);let o=t.ordered(n);for(let e of o){if(e.extensionId){if(i.has(e.extensionId))continue;i.add(e.extensionId)}r.push({displayName:e.displayName,extensionId:e.extensionId,provideDocumentFormattingEdits(t,n,r){return e.provideDocumentRangeFormattingEdits(t,t.getFullModelRange(),n,r)}})}return r}var k1=class e{static#e=this._selectors=new dE;static setFormatterSelector(t){return{dispose:e._selectors.unshift(t)}}static async select(t,n,r,i){if(t.length===0)return;let a=lE.first(e._selectors);if(a)return await a(t,n,r,i)}};async function ust(e,t,n,r,i,a,o){let s=e.get(DN),{documentRangeFormattingEditProvider:c}=e.get(hR),l=E1(t)?t.getModel():t,u=c.ordered(l),d=await k1.select(u,l,r,2);d&&(i.report(d),await s.invokeFunction(dst,d,t,n,a,o))}async function dst(e,t,n,r,i,a){let o=e.get(CG),s=e.get(FP),c=e.get(nX),l,u;E1(n)?(l=n.getModel(),u=new w1(n,5,void 0,i)):(l=n,u=new T1(n,i));let d=[],f=0;for(let e of aT(r).sort(H.compareRangesUsingStarts))f>0&&H.areIntersectingOrTouching(d[f-1],e)?d[f-1]=H.fromPositions(d[f-1].getStartPosition(),e.getEndPosition()):f=d.push(e);let p=async e=>{s.trace(`[format][provideDocumentRangeFormattingEdits] (request)`,t.extensionId?.value,e);let n=await t.provideDocumentRangeFormattingEdits(l,e,l.getFormattingOptions(),u.token)||[];return s.trace(`[format][provideDocumentRangeFormattingEdits] (response)`,t.extensionId?.value,n),n},m=(e,t)=>{if(!e.length||!t.length)return!1;let n=e.reduce((e,t)=>H.plusRange(e,t.range),e[0].range);if(!t.some(e=>H.intersectRanges(n,e.range)))return!1;for(let n of e)for(let e of t)if(H.intersectRanges(n.range,e.range))return!0;return!1},h=[],g=[];try{if(typeof t.provideDocumentRangesFormattingEdits==`function`){s.trace(`[format][provideDocumentRangeFormattingEdits] (request)`,t.extensionId?.value,d);let e=await t.provideDocumentRangesFormattingEdits(l,d,l.getFormattingOptions(),u.token)||[];s.trace(`[format][provideDocumentRangeFormattingEdits] (response)`,t.extensionId?.value,e),g.push(e)}else{for(let e of d){if(u.token.isCancellationRequested)return!0;g.push(await p(e))}for(let e=0;e<d.length;++e)for(let t=e+1;t<d.length;++t){if(u.token.isCancellationRequested)return!0;if(m(g[e],g[t])){let n=H.plusRange(d[e],d[t]),r=await p(n);d.splice(t,1),d.splice(e,1),d.push(n),g.splice(t,1),g.splice(e,1),g.push(r),e=0,t=0}}}for(let e of g){if(u.token.isCancellationRequested)return!0;let t=await o.computeMoreMinimalEdits(l.uri,e);t&&h.push(...t)}}finally{u.dispose()}if(h.length===0)return!1;if(E1(n))O1.execute(n,h,!0),n.revealPositionInCenterIfOutsideViewport(n.getPosition(),1);else{let[{range:e}]=h,t=new _O(e.startLineNumber,e.startColumn,e.endLineNumber,e.endColumn);l.pushEditOperations([t],h.map(e=>({text:e.text,range:H.lift(e.range),forceMoveMarkers:!0})),e=>{for(let{range:n}of e)if(H.areIntersectingOrTouching(n,t))return[new _O(n.startLineNumber,n.startColumn,n.endLineNumber,n.endColumn)];return null})}return c.playSignal(iX.format,{userGesture:a}),!0}async function fst(e,t,n,r,i,a){let o=e.get(DN),s=e.get(hR),c=E1(t)?t.getModel():t,l=lst(s.documentFormattingEditProvider,s.documentRangeFormattingEditProvider,c),u=await k1.select(l,c,n,1);u&&(r.report(u),await o.invokeFunction(pst,u,t,n,i,a))}async function pst(e,t,n,r,i,a){let o=e.get(CG),s=e.get(nX),c,l;E1(n)?(c=n.getModel(),l=new w1(n,5,void 0,i)):(c=n,l=new T1(n,i));let u;try{let e=await t.provideDocumentFormattingEdits(c,c.getFormattingOptions(),l.token);if(u=await o.computeMoreMinimalEdits(c.uri,e),l.token.isCancellationRequested)return!0}finally{l.dispose()}if(!u||u.length===0)return!1;if(E1(n))O1.execute(n,u,r!==2),r!==2&&n.revealPositionInCenterIfOutsideViewport(n.getPosition(),1);else{let[{range:e}]=u,t=new _O(e.startLineNumber,e.startColumn,e.endLineNumber,e.endColumn);c.pushEditOperations([t],u.map(e=>({text:e.text,range:H.lift(e.range),forceMoveMarkers:!0})),e=>{for(let{range:n}of e)if(H.areIntersectingOrTouching(n,t))return[new _O(n.startLineNumber,n.startColumn,n.endLineNumber,n.endColumn)];return null})}return s.playSignal(iX.format,{userGesture:a}),!0}async function mst(e,t,n,r,i,a){let o=t.documentRangeFormattingEditProvider.ordered(n);for(let t of o){let o=await Promise.resolve(t.provideDocumentRangeFormattingEdits(n,r,i,a)).catch(JE);if(Zw(o))return await e.computeMoreMinimalEdits(n.uri,o)}}async function hst(e,t,n,r,i){let a=lst(t.documentFormattingEditProvider,t.documentRangeFormattingEditProvider,n);for(let t of a){let a=await Promise.resolve(t.provideDocumentFormattingEdits(n,r,i)).catch(JE);if(Zw(a))return await e.computeMoreMinimalEdits(n.uri,a)}}function gst(e,t,n,r,i,a,o){let s=t.onTypeFormattingEditProvider.ordered(n);return s.length===0||s[0].autoFormatTriggerCharacters.indexOf(i)<0?Promise.resolve(void 0):Promise.resolve(s[0].provideOnTypeFormattingEdits(n,r,i,a,o)).catch(JE).then(t=>e.computeMoreMinimalEdits(n.uri,t))}BN.registerCommand(`_executeFormatRangeProvider`,async function(e,...t){let[n,r,i]=t;ST(sO.isUri(n)),ST(H.isIRange(r));let a=e.get(jN),o=e.get(CG),s=e.get(hR),c=await a.createModelReference(n);try{return mst(o,s,c.object.textEditorModel,H.lift(r),i,wD.None)}finally{c.dispose()}}),BN.registerCommand(`_executeFormatDocumentProvider`,async function(e,...t){let[n,r]=t;ST(sO.isUri(n));let i=e.get(jN),a=e.get(CG),o=e.get(hR),s=await i.createModelReference(n);try{return hst(a,o,s.object.textEditorModel,r,wD.None)}finally{s.dispose()}}),BN.registerCommand(`_executeFormatOnTypeProvider`,async function(e,...t){let[n,r,i,a]=t;ST(sO.isUri(n)),ST(V.isIPosition(r)),ST(typeof i==`string`);let o=e.get(jN),s=e.get(CG),c=e.get(hR),l=await o.createModelReference(n);try{return gst(s,c,l.object.textEditorModel,V.lift(r),i,a,wD.None)}finally{l.dispose()}});var A1=s({CancellationTokenSource:()=>_st,Emitter:()=>vst,KeyCode:()=>yst,KeyMod:()=>bst,MarkerSeverity:()=>Tst,MarkerTag:()=>Est,Position:()=>xst,Range:()=>Sst,Selection:()=>Cst,SelectionDirection:()=>wst,Token:()=>Ost,Uri:()=>Dst,editor:()=>M1,languages:()=>N1},1);GE.wrappingIndent.defaultValue=0,GE.glyphMargin.defaultValue=!1,GE.autoIndent.defaultValue=3,GE.overviewRulerLanes.defaultValue=2,k1.setFormatterSelector((e,t,n)=>Promise.resolve(e[0]));var j1=Mk();j1.editor=iot(),j1.languages=tst();const _st=j1.CancellationTokenSource,vst=j1.Emitter,yst=j1.KeyCode,bst=j1.KeyMod,xst=j1.Position,Sst=j1.Range,Cst=j1.Selection,wst=j1.SelectionDirection,Tst=j1.MarkerSeverity,Est=j1.MarkerTag,Dst=j1.Uri,Ost=j1.Token,M1=j1.editor,N1=j1.languages;(globalThis.MonacoEnvironment?.globalAPI||typeof define==`function`&&define.amd)&&(globalThis.monaco=j1),globalThis.require!==void 0&&typeof globalThis.require.config==`function`&&globalThis.require.config({ignoreDuplicateModules:[`vscode-languageserver-types`,`vscode-languageserver-types/main`,`vscode-languageserver-textdocument`,`vscode-languageserver-textdocument/main`,`vscode-nls`,`vscode-nls/vscode-nls`,`jsonc-parser`,`jsonc-parser/main`,`vscode-uri`,`vscode-uri/index`,`vs/basic-languages/typescript/typescript`]});var kst=Object.defineProperty,Ast=Object.getOwnPropertyDescriptor,jst=Object.getOwnPropertyNames,Mst=Object.prototype.hasOwnProperty,Nst=(e,t,n,r)=>{if(t&&typeof t==`object`||typeof t==`function`)for(let i of jst(t))!Mst.call(e,i)&&i!==n&&kst(e,i,{get:()=>t[i],enumerable:!(r=Ast(t,i))||r.enumerable});return e},Pst=(e,t,n)=>(Nst(e,t,`default`),n&&Nst(n,t,`default`)),P1={};Pst(P1,A1);var Fst={},F1={},Ist=class e{static getOrCreate(t){return F1[t]||(F1[t]=new e(t)),F1[t]}constructor(e){this._languageId=e,this._loadingTriggered=!1,this._lazyLoadPromise=new Promise((e,t)=>{this._lazyLoadPromiseResolve=e,this._lazyLoadPromiseReject=t})}load(){return this._loadingTriggered||(this._loadingTriggered=!0,Fst[this._languageId].loader().then(e=>this._lazyLoadPromiseResolve(e),e=>this._lazyLoadPromiseReject(e))),this._lazyLoadPromise}};function I1(e){let t=e.id;Fst[t]=e,P1.languages.register(e);let n=Ist.getOrCreate(t);P1.languages.registerTokensProviderFactory(t,{create:async()=>(await n.load()).language}),P1.languages.onLanguageEncountered(t,async()=>{let e=await n.load();P1.languages.setLanguageConfiguration(t,e.conf)})}I1({id:`abap`,extensions:[`.abap`],aliases:[`abap`,`ABAP`],loader:()=>tp(()=>import(`./abap-C4tHUUCU.js`),[])}),I1({id:`apex`,extensions:[`.cls`],aliases:[`Apex`,`apex`],mimetypes:[`text/x-apex-source`,`text/x-apex`],loader:()=>tp(()=>import(`./apex-6cG6aG-w.js`),[])}),I1({id:`azcli`,extensions:[`.azcli`],aliases:[`Azure CLI`,`azcli`],loader:()=>tp(()=>import(`./azcli-51BngrSU.js`),[])}),I1({id:`bat`,extensions:[`.bat`,`.cmd`],aliases:[`Batch`,`bat`],loader:()=>tp(()=>import(`./bat-BDcdVSIt.js`),[])}),I1({id:`bicep`,extensions:[`.bicep`],aliases:[`Bicep`],loader:()=>tp(()=>import(`./bicep-Cg0BCcky.js`),[])}),I1({id:`cameligo`,extensions:[`.mligo`],aliases:[`Cameligo`],loader:()=>tp(()=>import(`./cameligo-C3ekVui9.js`),[])}),I1({id:`clojure`,extensions:[`.clj`,`.cljs`,`.cljc`,`.edn`],aliases:[`clojure`,`Clojure`],loader:()=>tp(()=>import(`./clojure-Ci5xNgh_.js`),[])}),I1({id:`coffeescript`,extensions:[`.coffee`],aliases:[`CoffeeScript`,`coffeescript`,`coffee`],mimetypes:[`text/x-coffeescript`,`text/coffeescript`],loader:()=>tp(()=>import(`./coffee-xsRz4GKy.js`),[])}),I1({id:`c`,extensions:[`.c`,`.h`],aliases:[`C`,`c`],loader:()=>tp(()=>import(`./cpp-B2gW4e23.js`),[])}),I1({id:`cpp`,extensions:[`.cpp`,`.cc`,`.cxx`,`.hpp`,`.hh`,`.hxx`],aliases:[`C++`,`Cpp`,`cpp`],loader:()=>tp(()=>import(`./cpp-B2gW4e23.js`),[])}),I1({id:`csharp`,extensions:[`.cs`,`.csx`,`.cake`],aliases:[`C#`,`csharp`],loader:()=>tp(()=>import(`./csharp-SRujvHqy.js`),[])}),I1({id:`csp`,extensions:[`.csp`],aliases:[`CSP`,`csp`],loader:()=>tp(()=>import(`./csp-Cr-ll6gP.js`),[])}),I1({id:`css`,extensions:[`.css`],aliases:[`CSS`,`css`],mimetypes:[`text/css`],loader:()=>tp(()=>import(`./css-BYTJZCno.js`),[])}),I1({id:`cypher`,extensions:[`.cypher`,`.cyp`],aliases:[`Cypher`,`OpenCypher`],loader:()=>tp(()=>import(`./cypher-AmQ0R_D3.js`),[])}),I1({id:`dart`,extensions:[`.dart`],aliases:[`Dart`,`dart`],mimetypes:[`text/x-dart-source`,`text/x-dart`],loader:()=>tp(()=>import(`./dart-Du01a0J5.js`),[])}),I1({id:`dockerfile`,extensions:[`.dockerfile`],filenames:[`Dockerfile`],aliases:[`Dockerfile`],loader:()=>tp(()=>import(`./dockerfile-Dtlk9wqf.js`),[])}),I1({id:`ecl`,extensions:[`.ecl`],aliases:[`ECL`,`Ecl`,`ecl`],loader:()=>tp(()=>import(`./ecl-CpmVnLkK.js`),[])}),I1({id:`elixir`,extensions:[`.ex`,`.exs`],aliases:[`Elixir`,`elixir`,`ex`],loader:()=>tp(()=>import(`./elixir-B3MVAC8k.js`),[])}),I1({id:`flow9`,extensions:[`.flow`],aliases:[`Flow9`,`Flow`,`flow9`,`flow`],loader:()=>tp(()=>import(`./flow9-Chkly0RN.js`),[])}),I1({id:`fsharp`,extensions:[`.fs`,`.fsi`,`.ml`,`.mli`,`.fsx`,`.fsscript`],aliases:[`F#`,`FSharp`,`fsharp`],loader:()=>tp(()=>import(`./fsharp-CZvMkppk.js`),[])}),I1({id:`freemarker2`,extensions:[`.ftl`,`.ftlh`,`.ftlx`],aliases:[`FreeMarker2`,`Apache FreeMarker2`],loader:()=>tp(()=>import(`./freemarker2-C0SgSEQX.js`),[]).then(e=>e.TagAutoInterpolationDollar)}),I1({id:`freemarker2.tag-angle.interpolation-dollar`,aliases:[`FreeMarker2 (Angle/Dollar)`,`Apache FreeMarker2 (Angle/Dollar)`],loader:()=>tp(()=>import(`./freemarker2-C0SgSEQX.js`),[]).then(e=>e.TagAngleInterpolationDollar)}),I1({id:`freemarker2.tag-bracket.interpolation-dollar`,aliases:[`FreeMarker2 (Bracket/Dollar)`,`Apache FreeMarker2 (Bracket/Dollar)`],loader:()=>tp(()=>import(`./freemarker2-C0SgSEQX.js`),[]).then(e=>e.TagBracketInterpolationDollar)}),I1({id:`freemarker2.tag-angle.interpolation-bracket`,aliases:[`FreeMarker2 (Angle/Bracket)`,`Apache FreeMarker2 (Angle/Bracket)`],loader:()=>tp(()=>import(`./freemarker2-C0SgSEQX.js`),[]).then(e=>e.TagAngleInterpolationBracket)}),I1({id:`freemarker2.tag-bracket.interpolation-bracket`,aliases:[`FreeMarker2 (Bracket/Bracket)`,`Apache FreeMarker2 (Bracket/Bracket)`],loader:()=>tp(()=>import(`./freemarker2-C0SgSEQX.js`),[]).then(e=>e.TagBracketInterpolationBracket)}),I1({id:`freemarker2.tag-auto.interpolation-dollar`,aliases:[`FreeMarker2 (Auto/Dollar)`,`Apache FreeMarker2 (Auto/Dollar)`],loader:()=>tp(()=>import(`./freemarker2-C0SgSEQX.js`),[]).then(e=>e.TagAutoInterpolationDollar)}),I1({id:`freemarker2.tag-auto.interpolation-bracket`,aliases:[`FreeMarker2 (Auto/Bracket)`,`Apache FreeMarker2 (Auto/Bracket)`],loader:()=>tp(()=>import(`./freemarker2-C0SgSEQX.js`),[]).then(e=>e.TagAutoInterpolationBracket)}),I1({id:`go`,extensions:[`.go`],aliases:[`Go`],loader:()=>tp(()=>import(`./go-dT2iT7lt.js`),[])}),I1({id:`graphql`,extensions:[`.graphql`,`.gql`],aliases:[`GraphQL`,`graphql`,`gql`],mimetypes:[`application/graphql`],loader:()=>tp(()=>import(`./graphql-DmObWyBD.js`),[])}),I1({id:`handlebars`,extensions:[`.handlebars`,`.hbs`],aliases:[`Handlebars`,`handlebars`,`hbs`],mimetypes:[`text/x-handlebars-template`],loader:()=>tp(()=>import(`./handlebars-DgMfQd2U.js`),[])}),I1({id:`hcl`,extensions:[`.tf`,`.tfvars`,`.hcl`],aliases:[`Terraform`,`tf`,`HCL`,`hcl`],loader:()=>tp(()=>import(`./hcl-D1x5Oyp4.js`),[])}),I1({id:`html`,extensions:[`.html`,`.htm`,`.shtml`,`.xhtml`,`.mdoc`,`.jsp`,`.asp`,`.aspx`,`.jshtm`],aliases:[`HTML`,`htm`,`html`,`xhtml`],mimetypes:[`text/html`,`text/x-jshtm`,`text/template`,`text/ng-template`],loader:()=>tp(()=>import(`./html-XhTY3nJ1.js`),[])}),I1({id:`ini`,extensions:[`.ini`,`.properties`,`.gitconfig`],filenames:[`config`,`.gitattributes`,`.gitconfig`,`.editorconfig`],aliases:[`Ini`,`ini`],loader:()=>tp(()=>import(`./ini-Bg2o1S3s.js`),[])}),I1({id:`java`,extensions:[`.java`,`.jav`],aliases:[`Java`,`java`],mimetypes:[`text/x-java-source`,`text/x-java`],loader:()=>tp(()=>import(`./java-XviKSSn5.js`),[])}),I1({id:`javascript`,extensions:[`.js`,`.es6`,`.jsx`,`.mjs`,`.cjs`],firstLine:`^#!.*\\bnode`,filenames:[`jakefile`],aliases:[`JavaScript`,`javascript`,`js`],mimetypes:[`text/javascript`],loader:()=>tp(()=>import(`./javascript-CF3GRA6J.js`),__vite__mapDeps([0,1]))}),I1({id:`julia`,extensions:[`.jl`],aliases:[`julia`,`Julia`],loader:()=>tp(()=>import(`./julia-DfTIwUGh.js`),[])}),I1({id:`kotlin`,extensions:[`.kt`,`.kts`],aliases:[`Kotlin`,`kotlin`],mimetypes:[`text/x-kotlin-source`,`text/x-kotlin`],loader:()=>tp(()=>import(`./kotlin-CNaIBh9d.js`),[])}),I1({id:`less`,extensions:[`.less`],aliases:[`Less`,`less`],mimetypes:[`text/x-less`,`text/less`],loader:()=>tp(()=>import(`./less-D7o76tXd.js`),[])}),I1({id:`lexon`,extensions:[`.lex`],aliases:[`Lexon`],loader:()=>tp(()=>import(`./lexon-Dd374QjV.js`),[])}),I1({id:`lua`,extensions:[`.lua`],aliases:[`Lua`,`lua`],loader:()=>tp(()=>import(`./lua-DZKuiFbY.js`),[])}),I1({id:`liquid`,extensions:[`.liquid`,`.html.liquid`],aliases:[`Liquid`,`liquid`],mimetypes:[`application/liquid`],loader:()=>tp(()=>import(`./liquid-BTUbnx76.js`),[])}),I1({id:`m3`,extensions:[`.m3`,`.i3`,`.mg`,`.ig`],aliases:[`Modula-3`,`Modula3`,`modula3`,`m3`],loader:()=>tp(()=>import(`./m3-CbwRx9Bb.js`),[])}),I1({id:`markdown`,extensions:[`.md`,`.markdown`,`.mdown`,`.mkdn`,`.mkd`,`.mdwn`,`.mdtxt`,`.mdtext`],aliases:[`Markdown`,`markdown`],loader:()=>tp(()=>import(`./markdown-DwLB5Rib.js`),[])}),I1({id:`mdx`,extensions:[`.mdx`],aliases:[`MDX`,`mdx`],loader:()=>tp(()=>import(`./mdx-CT9JRVqk.js`),[])}),I1({id:`mips`,extensions:[`.s`],aliases:[`MIPS`,`MIPS-V`],mimetypes:[`text/x-mips`,`text/mips`,`text/plaintext`],loader:()=>tp(()=>import(`./mips-DLbIq1yM.js`),[])}),I1({id:`msdax`,extensions:[`.dax`,`.msdax`],aliases:[`DAX`,`MSDAX`],loader:()=>tp(()=>import(`./msdax-D4IjoZ6m.js`),[])}),I1({id:`mysql`,extensions:[],aliases:[`MySQL`,`mysql`],loader:()=>tp(()=>import(`./mysql-DQL_jy6H.js`),[])}),I1({id:`objective-c`,extensions:[`.m`],aliases:[`Objective-C`],loader:()=>tp(()=>import(`./objective-c-D74wM5bv.js`),[])}),I1({id:`pascal`,extensions:[`.pas`,`.p`,`.pp`],aliases:[`Pascal`,`pas`],mimetypes:[`text/x-pascal-source`,`text/x-pascal`],loader:()=>tp(()=>import(`./pascal-5tRlZk4O.js`),[])}),I1({id:`pascaligo`,extensions:[`.ligo`],aliases:[`Pascaligo`,`ligo`],loader:()=>tp(()=>import(`./pascaligo-CAE4rAEt.js`),[])}),I1({id:`perl`,extensions:[`.pl`,`.pm`],aliases:[`Perl`,`pl`],loader:()=>tp(()=>import(`./perl-DREAbuQT.js`),[])}),I1({id:`pgsql`,extensions:[],aliases:[`PostgreSQL`,`postgres`,`pg`,`postgre`],loader:()=>tp(()=>import(`./pgsql-DASKdyAW.js`),[])}),I1({id:`php`,extensions:[`.php`,`.php4`,`.php5`,`.phtml`,`.ctp`],aliases:[`PHP`,`php`],mimetypes:[`application/x-php`],loader:()=>tp(()=>import(`./php-C37ZWqoO.js`),[])}),I1({id:`pla`,extensions:[`.pla`],loader:()=>tp(()=>import(`./pla-v5u9R8i1.js`),[])}),I1({id:`postiats`,extensions:[`.dats`,`.sats`,`.hats`],aliases:[`ATS`,`ATS/Postiats`],loader:()=>tp(()=>import(`./postiats-Szt5m-7G.js`),[])}),I1({id:`powerquery`,extensions:[`.pq`,`.pqm`],aliases:[`PQ`,`M`,`Power Query`,`Power Query M`],loader:()=>tp(()=>import(`./powerquery-BzVrUSu3.js`),[])}),I1({id:`powershell`,extensions:[`.ps1`,`.psm1`,`.psd1`],aliases:[`PowerShell`,`powershell`,`ps`,`ps1`],loader:()=>tp(()=>import(`./powershell-BdbPbX_X.js`),[])}),I1({id:`proto`,extensions:[`.proto`],aliases:[`protobuf`,`Protocol Buffers`],loader:()=>tp(()=>import(`./protobuf-qqDa50tu.js`),[])}),I1({id:`pug`,extensions:[`.jade`,`.pug`],aliases:[`Pug`,`Jade`,`jade`],loader:()=>tp(()=>import(`./pug-Cu20UQ5w.js`),[])}),I1({id:`python`,extensions:[`.py`,`.rpy`,`.pyw`,`.cpy`,`.gyp`,`.gypi`],aliases:[`Python`,`py`],firstLine:`^#!/.*\\bpython[0-9.-]*\\b`,loader:()=>tp(()=>import(`./python-D-ygMaD7.js`),[])}),I1({id:`qsharp`,extensions:[`.qs`],aliases:[`Q#`,`qsharp`],loader:()=>tp(()=>import(`./qsharp-DcbHL5X7.js`),[])}),I1({id:`r`,extensions:[`.r`,`.rhistory`,`.rmd`,`.rprofile`,`.rt`],aliases:[`R`,`r`],loader:()=>tp(()=>import(`./r-Bvig6Flk.js`),[])}),I1({id:`razor`,extensions:[`.cshtml`],aliases:[`Razor`,`razor`],mimetypes:[`text/x-cshtml`],loader:()=>tp(()=>import(`./razor-Cj7iiXRp.js`),[])}),I1({id:`redis`,extensions:[`.redis`],aliases:[`redis`],loader:()=>tp(()=>import(`./redis-BxHDcW3-.js`),[])}),I1({id:`redshift`,extensions:[],aliases:[`Redshift`,`redshift`],loader:()=>tp(()=>import(`./redshift-B8dvlzjH.js`),[])}),I1({id:`restructuredtext`,extensions:[`.rst`],aliases:[`reStructuredText`,`restructuredtext`],loader:()=>tp(()=>import(`./restructuredtext-npodtAFM.js`),[])}),I1({id:`ruby`,extensions:[`.rb`,`.rbx`,`.rjs`,`.gemspec`,`.pp`],filenames:[`rakefile`,`Gemfile`],aliases:[`Ruby`,`rb`],loader:()=>tp(()=>import(`./ruby-DiofbcJD.js`),[])}),I1({id:`rust`,extensions:[`.rs`,`.rlib`],aliases:[`Rust`,`rust`],loader:()=>tp(()=>import(`./rust-BjYid3-m.js`),[])}),I1({id:`sb`,extensions:[`.sb`],aliases:[`Small Basic`,`sb`],loader:()=>tp(()=>import(`./sb-CzcPAP71.js`),[])}),I1({id:`scala`,extensions:[`.scala`,`.sc`,`.sbt`],aliases:[`Scala`,`scala`,`SBT`,`Sbt`,`sbt`,`Dotty`,`dotty`],mimetypes:[`text/x-scala-source`,`text/x-scala`,`text/x-sbt`,`text/x-dotty`],loader:()=>tp(()=>import(`./scala-Ci4wFrYi.js`),[])}),I1({id:`scheme`,extensions:[`.scm`,`.ss`,`.sch`,`.rkt`],aliases:[`scheme`,`Scheme`],loader:()=>tp(()=>import(`./scheme-D3iWhvP7.js`),[])}),I1({id:`scss`,extensions:[`.scss`],aliases:[`Sass`,`sass`,`scss`],mimetypes:[`text/x-scss`,`text/scss`],loader:()=>tp(()=>import(`./scss-DdlqDgmu.js`),[])}),I1({id:`shell`,extensions:[`.sh`,`.bash`],aliases:[`Shell`,`sh`],loader:()=>tp(()=>import(`./shell-Bawb9gbH.js`),[])}),I1({id:`sol`,extensions:[`.sol`],aliases:[`sol`,`solidity`,`Solidity`],loader:()=>tp(()=>import(`./solidity-Z2Sq8PBC.js`),[])}),I1({id:`aes`,extensions:[`.aes`],aliases:[`aes`,`sophia`,`Sophia`],loader:()=>tp(()=>import(`./sophia--yD-H1Ow.js`),[])}),I1({id:`sparql`,extensions:[`.rq`],aliases:[`sparql`,`SPARQL`],loader:()=>tp(()=>import(`./sparql-0vv3-wLi.js`),[])}),I1({id:`sql`,extensions:[`.sql`],aliases:[`SQL`],loader:()=>tp(()=>import(`./sql-0gdWKhmJ.js`),[])}),I1({id:`st`,extensions:[`.st`,`.iecst`,`.iecplc`,`.lc3lib`,`.TcPOU`,`.TcDUT`,`.TcGVL`,`.TcIO`],aliases:[`StructuredText`,`scl`,`stl`],loader:()=>tp(()=>import(`./st-rE-x-DTZ.js`),[])}),I1({id:`swift`,aliases:[`Swift`,`swift`],extensions:[`.swift`],mimetypes:[`text/swift`],loader:()=>tp(()=>import(`./swift-CSKeG8Ne.js`),[])}),I1({id:`systemverilog`,extensions:[`.sv`,`.svh`],aliases:[`SV`,`sv`,`SystemVerilog`,`systemverilog`],loader:()=>tp(()=>import(`./systemverilog-CblNM3Im.js`),[])}),I1({id:`verilog`,extensions:[`.v`,`.vh`],aliases:[`V`,`v`,`Verilog`,`verilog`],loader:()=>tp(()=>import(`./systemverilog-CblNM3Im.js`),[])}),I1({id:`tcl`,extensions:[`.tcl`],aliases:[`tcl`,`Tcl`,`tcltk`,`TclTk`,`tcl/tk`,`Tcl/Tk`],loader:()=>tp(()=>import(`./tcl-BYnzj-GZ.js`),[])}),I1({id:`twig`,extensions:[`.twig`],aliases:[`Twig`,`twig`],mimetypes:[`text/x-twig`],loader:()=>tp(()=>import(`./twig-DiGWiEtp.js`),[])}),I1({id:`typescript`,extensions:[`.ts`,`.tsx`,`.cts`,`.mts`],aliases:[`TypeScript`,`ts`,`typescript`],mimetypes:[`text/typescript`],loader:()=>tp(()=>import(`./typescript-Bx9S0mR5.js`),[])}),I1({id:`typespec`,extensions:[`.tsp`],aliases:[`TypeSpec`],loader:()=>tp(()=>import(`./typespec-a6xMcpXw.js`),[])}),I1({id:`vb`,extensions:[`.vb`],aliases:[`Visual Basic`,`vb`],loader:()=>tp(()=>import(`./vb---51HVMC.js`),[])}),I1({id:`wgsl`,extensions:[`.wgsl`],aliases:[`WebGPU Shading Language`,`WGSL`,`wgsl`],loader:()=>tp(()=>import(`./wgsl-2A8z4pT5.js`),[])}),I1({id:`xml`,extensions:[`.xml`,`.xsd`,`.dtd`,`.ascx`,`.csproj`,`.config`,`.props`,`.targets`,`.wxi`,`.wxl`,`.wxs`,`.xaml`,`.svg`,`.svgz`,`.opf`,`.xslt`,`.xsl`],firstLine:`(\\<\\?xml.*)|(\\<svg)|(\\<\\!doctype\\s+svg)`,aliases:[`XML`,`xml`],mimetypes:[`text/xml`,`application/xml`,`application/xaml+xml`,`application/xml-dtd`],loader:()=>tp(()=>import(`./xml-Chbr5k8r.js`),[])}),I1({id:`yaml`,extensions:[`.yaml`,`.yml`],aliases:[`YAML`,`yaml`,`YML`,`yml`],mimetypes:[`application/x-yaml`,`text/x-yaml`],loader:()=>tp(()=>import(`./yaml-W-9gxiit.js`),[])});var Lst=Object.defineProperty,Rst=Object.getOwnPropertyDescriptor,zst=Object.getOwnPropertyNames,Bst=Object.prototype.hasOwnProperty,Vst=(e,t,n,r)=>{if(t&&typeof t==`object`||typeof t==`function`)for(let i of zst(t))!Bst.call(e,i)&&i!==n&&Lst(e,i,{get:()=>t[i],enumerable:!(r=Rst(t,i))||r.enumerable});return e},Hst=(e,t,n)=>(Vst(e,t,`default`),n&&Vst(n,t,`default`)),L1={};Hst(L1,A1);var R1=class{constructor(e,t,n){this._onDidChange=new L1.Emitter,this._languageId=e,this.setOptions(t),this.setModeConfiguration(n)}get onDidChange(){return this._onDidChange.event}get languageId(){return this._languageId}get modeConfiguration(){return this._modeConfiguration}get diagnosticsOptions(){return this.options}get options(){return this._options}setOptions(e){this._options=e||Object.create(null),this._onDidChange.fire(this)}setDiagnosticsOptions(e){this.setOptions(e)}setModeConfiguration(e){this._modeConfiguration=e||Object.create(null),this._onDidChange.fire(this)}},z1={validate:!0,lint:{compatibleVendorPrefixes:`ignore`,vendorPrefix:`warning`,duplicateProperties:`warning`,emptyRules:`warning`,importStatement:`ignore`,boxModel:`ignore`,universalSelector:`ignore`,zeroUnits:`ignore`,fontFaceProperties:`warning`,hexColorLength:`error`,argumentsInColorFunction:`error`,unknownProperties:`warning`,ieHack:`ignore`,unknownVendorSpecificProperties:`ignore`,propertyIgnoredDueToDisplay:`warning`,important:`ignore`,float:`ignore`,idSelector:`ignore`},data:{useDefaultDataProvider:!0},format:{newlineBetweenSelectors:!0,newlineBetweenRules:!0,spaceAroundSelectorSeparator:!1,braceStyle:`collapse`,maxPreserveNewLines:void 0,preserveNewLines:!0}},B1={completionItems:!0,hovers:!0,documentSymbols:!0,definitions:!0,references:!0,documentHighlights:!0,rename:!0,colors:!0,foldingRanges:!0,diagnostics:!0,selectionRanges:!0,documentFormattingEdits:!0,documentRangeFormattingEdits:!0},Ust=new R1(`css`,z1,B1),Wst=new R1(`scss`,z1,B1),Gst=new R1(`less`,z1,B1);L1.languages.css={cssDefaults:Ust,lessDefaults:Gst,scssDefaults:Wst};function V1(){return tp(()=>import(`./cssMode-DpoqIkov.js`),[])}L1.languages.onLanguage(`less`,()=>{V1().then(e=>e.setupMode(Gst))}),L1.languages.onLanguage(`scss`,()=>{V1().then(e=>e.setupMode(Wst))}),L1.languages.onLanguage(`css`,()=>{V1().then(e=>e.setupMode(Ust))});var Kst=Object.defineProperty,qst=Object.getOwnPropertyDescriptor,Jst=Object.getOwnPropertyNames,Yst=Object.prototype.hasOwnProperty,Xst=(e,t,n,r)=>{if(t&&typeof t==`object`||typeof t==`function`)for(let i of Jst(t))!Yst.call(e,i)&&i!==n&&Kst(e,i,{get:()=>t[i],enumerable:!(r=qst(t,i))||r.enumerable});return e},Zst=(e,t,n)=>(Xst(e,t,`default`),n&&Xst(n,t,`default`)),H1={};Zst(H1,A1);var Qst=class{constructor(e,t,n){this._onDidChange=new H1.Emitter,this._languageId=e,this.setOptions(t),this.setModeConfiguration(n)}get onDidChange(){return this._onDidChange.event}get languageId(){return this._languageId}get options(){return this._options}get modeConfiguration(){return this._modeConfiguration}setOptions(e){this._options=e||Object.create(null),this._onDidChange.fire(this)}setModeConfiguration(e){this._modeConfiguration=e||Object.create(null),this._onDidChange.fire(this)}},U1={format:{tabSize:4,insertSpaces:!1,wrapLineLength:120,unformatted:`default": "a, abbr, acronym, b, bdo, big, br, button, cite, code, dfn, em, i, img, input, kbd, label, map, object, q, samp, select, small, span, strong, sub, sup, textarea, tt, var`,contentUnformatted:`pre`,indentInnerHtml:!1,preserveNewLines:!0,maxPreserveNewLines:void 0,indentHandlebars:!1,endWithNewline:!1,extraLiners:`head, body, /html`,wrapAttributes:`auto`},suggest:{},data:{useDefaultDataProvider:!0}};function W1(e){return{completionItems:!0,hovers:!0,documentSymbols:!0,links:!0,documentHighlights:!0,rename:!0,colors:!0,foldingRanges:!0,selectionRanges:!0,diagnostics:e===G1,documentFormattingEdits:e===G1,documentRangeFormattingEdits:e===G1}}var G1=`html`,$st=`handlebars`,ect=`razor`,tct=K1(G1,U1,W1(G1)),nct=tct.defaults,rct=K1($st,U1,W1($st)),ict=rct.defaults,act=K1(ect,U1,W1(ect)),oct=act.defaults;H1.languages.html={htmlDefaults:nct,razorDefaults:oct,handlebarDefaults:ict,htmlLanguageService:tct,handlebarLanguageService:rct,razorLanguageService:act,registerHTMLLanguageService:K1};function sct(){return tp(()=>import(`./htmlMode-a8Q5--J-.js`),[])}function K1(e,t=U1,n=W1(e)){let r=new Qst(e,t,n),i,a=H1.languages.onLanguage(e,async()=>{i=(await sct()).setupMode(r)});return{defaults:r,dispose(){a.dispose(),i?.dispose(),i=void 0}}}var cct=Object.defineProperty,lct=Object.getOwnPropertyDescriptor,uct=Object.getOwnPropertyNames,dct=Object.prototype.hasOwnProperty,fct=(e,t,n,r)=>{if(t&&typeof t==`object`||typeof t==`function`)for(let i of uct(t))!dct.call(e,i)&&i!==n&&cct(e,i,{get:()=>t[i],enumerable:!(r=lct(t,i))||r.enumerable});return e},pct=(e,t,n)=>(fct(e,t,`default`),n&&fct(n,t,`default`)),q1={};pct(q1,A1);var mct=new class{constructor(e,t,n){this._onDidChange=new q1.Emitter,this._languageId=e,this.setDiagnosticsOptions(t),this.setModeConfiguration(n)}get onDidChange(){return this._onDidChange.event}get languageId(){return this._languageId}get modeConfiguration(){return this._modeConfiguration}get diagnosticsOptions(){return this._diagnosticsOptions}setDiagnosticsOptions(e){this._diagnosticsOptions=e||Object.create(null),this._onDidChange.fire(this)}setModeConfiguration(e){this._modeConfiguration=e||Object.create(null),this._onDidChange.fire(this)}}(`json`,{validate:!0,allowComments:!0,schemas:[],enableSchemaRequest:!1,schemaRequest:`warning`,schemaValidation:`warning`,comments:`error`,trailingCommas:`error`},{documentFormattingEdits:!0,documentRangeFormattingEdits:!0,completionItems:!0,hovers:!0,documentSymbols:!0,tokens:!0,colors:!0,foldingRanges:!0,diagnostics:!0,selectionRanges:!0}),hct=()=>gct().then(e=>e.getWorker());q1.languages.json={jsonDefaults:mct,getWorker:hct};function gct(){return tp(()=>import(`./jsonMode-BVI1ty1E.js`),[])}q1.languages.register({id:`json`,extensions:[`.json`,`.bowerrc`,`.jshintrc`,`.jscsrc`,`.eslintrc`,`.babelrc`,`.har`],aliases:[`JSON`,`json`],mimetypes:[`application/json`]}),q1.languages.onLanguage(`json`,()=>{gct().then(e=>e.setupMode(mct))});var _ct=Object.defineProperty,vct=Object.getOwnPropertyDescriptor,yct=Object.getOwnPropertyNames,bct=Object.prototype.hasOwnProperty,xct=(e,t,n,r)=>{if(t&&typeof t==`object`||typeof t==`function`)for(let i of yct(t))!bct.call(e,i)&&i!==n&&_ct(e,i,{get:()=>t[i],enumerable:!(r=vct(t,i))||r.enumerable});return e},Sct=(e,t,n)=>(xct(e,t,`default`),n&&xct(n,t,`default`)),Cct=`5.4.5`,J1={};Sct(J1,A1);var wct=(e=>(e[e.None=0]=`None`,e[e.CommonJS=1]=`CommonJS`,e[e.AMD=2]=`AMD`,e[e.UMD=3]=`UMD`,e[e.System=4]=`System`,e[e.ES2015=5]=`ES2015`,e[e.ESNext=99]=`ESNext`,e))(wct||{}),Tct=(e=>(e[e.None=0]=`None`,e[e.Preserve=1]=`Preserve`,e[e.React=2]=`React`,e[e.ReactNative=3]=`ReactNative`,e[e.ReactJSX=4]=`ReactJSX`,e[e.ReactJSXDev=5]=`ReactJSXDev`,e))(Tct||{}),Ect=(e=>(e[e.CarriageReturnLineFeed=0]=`CarriageReturnLineFeed`,e[e.LineFeed=1]=`LineFeed`,e))(Ect||{}),Dct=(e=>(e[e.ES3=0]=`ES3`,e[e.ES5=1]=`ES5`,e[e.ES2015=2]=`ES2015`,e[e.ES2016=3]=`ES2016`,e[e.ES2017=4]=`ES2017`,e[e.ES2018=5]=`ES2018`,e[e.ES2019=6]=`ES2019`,e[e.ES2020=7]=`ES2020`,e[e.ESNext=99]=`ESNext`,e[e.JSON=100]=`JSON`,e[e.Latest=99]=`Latest`,e))(Dct||{}),Oct=(e=>(e[e.Classic=1]=`Classic`,e[e.NodeJs=2]=`NodeJs`,e))(Oct||{}),kct=class{constructor(e,t,n,r,i){this._onDidChange=new J1.Emitter,this._onDidExtraLibsChange=new J1.Emitter,this._extraLibs=Object.create(null),this._removedExtraLibs=Object.create(null),this._eagerModelSync=!1,this.setCompilerOptions(e),this.setDiagnosticsOptions(t),this.setWorkerOptions(n),this.setInlayHintsOptions(r),this.setModeConfiguration(i),this._onDidExtraLibsChangeTimeout=-1}get onDidChange(){return this._onDidChange.event}get onDidExtraLibsChange(){return this._onDidExtraLibsChange.event}get modeConfiguration(){return this._modeConfiguration}get workerOptions(){return this._workerOptions}get inlayHintsOptions(){return this._inlayHintsOptions}getExtraLibs(){return this._extraLibs}addExtraLib(e,t){let n;if(n=t===void 0?`ts:extralib-${Math.random().toString(36).substring(2,15)}`:t,this._extraLibs[n]&&this._extraLibs[n].content===e)return{dispose:()=>{}};let r=1;return this._removedExtraLibs[n]&&(r=this._removedExtraLibs[n]+1),this._extraLibs[n]&&(r=this._extraLibs[n].version+1),this._extraLibs[n]={content:e,version:r},this._fireOnDidExtraLibsChangeSoon(),{dispose:()=>{let e=this._extraLibs[n];e&&e.version===r&&(delete this._extraLibs[n],this._removedExtraLibs[n]=r,this._fireOnDidExtraLibsChangeSoon())}}}setExtraLibs(e){for(let e in this._extraLibs)this._removedExtraLibs[e]=this._extraLibs[e].version;if(this._extraLibs=Object.create(null),e&&e.length>0)for(let t of e){let e=t.filePath||`ts:extralib-${Math.random().toString(36).substring(2,15)}`,n=t.content,r=1;this._removedExtraLibs[e]&&(r=this._removedExtraLibs[e]+1),this._extraLibs[e]={content:n,version:r}}this._fireOnDidExtraLibsChangeSoon()}_fireOnDidExtraLibsChangeSoon(){this._onDidExtraLibsChangeTimeout===-1&&(this._onDidExtraLibsChangeTimeout=window.setTimeout(()=>{this._onDidExtraLibsChangeTimeout=-1,this._onDidExtraLibsChange.fire(void 0)},0))}getCompilerOptions(){return this._compilerOptions}setCompilerOptions(e){this._compilerOptions=e||Object.create(null),this._onDidChange.fire(void 0)}getDiagnosticsOptions(){return this._diagnosticsOptions}setDiagnosticsOptions(e){this._diagnosticsOptions=e||Object.create(null),this._onDidChange.fire(void 0)}setWorkerOptions(e){this._workerOptions=e||Object.create(null),this._onDidChange.fire(void 0)}setInlayHintsOptions(e){this._inlayHintsOptions=e||Object.create(null),this._onDidChange.fire(void 0)}setMaximumWorkerIdleTime(e){}setEagerModelSync(e){this._eagerModelSync=e}getEagerModelSync(){return this._eagerModelSync}setModeConfiguration(e){this._modeConfiguration=e||Object.create(null),this._onDidChange.fire(void 0)}},Act=Cct,jct={completionItems:!0,hovers:!0,documentSymbols:!0,definitions:!0,references:!0,documentHighlights:!0,rename:!0,diagnostics:!0,documentRangeFormattingEdits:!0,signatureHelp:!0,onTypeFormattingEdits:!0,codeActions:!0,inlayHints:!0},Y1=new kct({allowNonTsExtensions:!0,target:99},{noSemanticValidation:!1,noSyntaxValidation:!1,onlyVisible:!1},{},{},jct),Mct=new kct({allowNonTsExtensions:!0,allowJs:!0,target:99},{noSemanticValidation:!0,noSyntaxValidation:!1,onlyVisible:!1},{},{},jct),Nct=()=>X1().then(e=>e.getTypeScriptWorker()),Pct=()=>X1().then(e=>e.getJavaScriptWorker());J1.languages.typescript={ModuleKind:wct,JsxEmit:Tct,NewLineKind:Ect,ScriptTarget:Dct,ModuleResolutionKind:Oct,typescriptVersion:Act,typescriptDefaults:Y1,javascriptDefaults:Mct,getTypeScriptWorker:Nct,getJavaScriptWorker:Pct};function X1(){return tp(()=>import(`./tsMode-IV67jT9w.js`),[])}J1.languages.onLanguage(`typescript`,()=>X1().then(e=>e.setupTypeScript(Y1))),J1.languages.onLanguage(`javascript`,()=>X1().then(e=>e.setupJavaScript(Mct)));var Fct=class extends MP{constructor(){super({id:`diffEditor.toggleCollapseUnchangedRegions`,title:IT(`toggleCollapseUnchangedRegions`,`Toggle Collapse Unchanged Regions`),icon:W.map,toggled:Y.has(`config.diffEditor.hideUnchangedRegions.enabled`),precondition:Y.has(`isInDiffEditor`),menu:{when:Y.has(`isInDiffEditor`),id:EP.EditorTitle,order:22,group:`navigation`}})}run(e,...t){let n=e.get(PF),r=!n.getValue(`diffEditor.hideUnchangedRegions.enabled`);n.updateValue(`diffEditor.hideUnchangedRegions.enabled`,r)}},Ict=class extends MP{constructor(){super({id:`diffEditor.toggleShowMovedCodeBlocks`,title:IT(`toggleShowMovedCodeBlocks`,`Toggle Show Moved Code Blocks`),precondition:Y.has(`isInDiffEditor`)})}run(e,...t){let n=e.get(PF),r=!n.getValue(`diffEditor.experimental.showMoves`);n.updateValue(`diffEditor.experimental.showMoves`,r)}},Lct=class extends MP{constructor(){super({id:`diffEditor.toggleUseInlineViewWhenSpaceIsLimited`,title:IT(`toggleUseInlineViewWhenSpaceIsLimited`,`Toggle Use Inline View When Space Is Limited`),precondition:Y.has(`isInDiffEditor`)})}run(e,...t){let n=e.get(PF),r=!n.getValue(`diffEditor.useInlineViewWhenSpaceIsLimited`);n.updateValue(`diffEditor.useInlineViewWhenSpaceIsLimited`,r)}},Z1=IT(`diffEditor`,`Diff Editor`),Rct=class extends GP{constructor(){super({id:`diffEditor.switchSide`,title:IT(`switchSide`,`Switch Side`),icon:W.arrowSwap,precondition:Y.has(`isInDiffEditor`),f1:!0,category:Z1})}runEditorCommand(e,t,n){let r=e0(e);if(r instanceof u1){if(n&&n.dryRun)return{destinationSelection:r.mapToOtherSide().destinationSelection};r.switchSide()}}},zct=class extends GP{constructor(){super({id:`diffEditor.exitCompareMove`,title:IT(`exitCompareMove`,`Exit Compare Move`),icon:W.close,precondition:$.comparingMovedCode,f1:!1,category:Z1,keybinding:{weight:1e4,primary:9}})}runEditorCommand(e,t,...n){let r=e0(e);r instanceof u1&&r.exitCompareMove()}},Bct=class extends GP{constructor(){super({id:`diffEditor.collapseAllUnchangedRegions`,title:IT(`collapseAllUnchangedRegions`,`Collapse All Unchanged Regions`),icon:W.fold,precondition:Y.has(`isInDiffEditor`),f1:!0,category:Z1})}runEditorCommand(e,t,...n){let r=e0(e);r instanceof u1&&r.collapseAllUnchangedRegions()}},Vct=class extends GP{constructor(){super({id:`diffEditor.showAllUnchangedRegions`,title:IT(`showAllUnchangedRegions`,`Show All Unchanged Regions`),icon:W.unfold,precondition:Y.has(`isInDiffEditor`),f1:!0,category:Z1})}runEditorCommand(e,t,...n){let r=e0(e);r instanceof u1&&r.showAllUnchangedRegions()}},Q1=class extends MP{constructor(){super({id:`diffEditor.revert`,title:IT(`revert`,`Revert`),f1:!1,category:Z1})}run(e,t){let n=Wct(e,t.originalUri,t.modifiedUri);n instanceof u1&&n.revertRangeMappings(t.mapping.innerChanges??[])}},Hct=IT(`accessibleDiffViewer`,`Accessible Diff Viewer`),$1=class e extends MP{static#e=this.id=`editor.action.accessibleDiffViewer.next`;constructor(){super({id:e.id,title:IT(`editor.action.accessibleDiffViewer.next`,`Go to Next Difference`),category:Hct,precondition:Y.has(`isInDiffEditor`),keybinding:{primary:65,weight:100},f1:!0})}run(e){e0(e)?.accessibleDiffViewerNext()}},Uct=class e extends MP{static#e=this.id=`editor.action.accessibleDiffViewer.prev`;constructor(){super({id:e.id,title:IT(`editor.action.accessibleDiffViewer.prev`,`Go to Previous Difference`),category:Hct,precondition:Y.has(`isInDiffEditor`),keybinding:{primary:1089,weight:100},f1:!0})}run(e){e0(e)?.accessibleDiffViewerPrev()}};function Wct(e,t,n){return e.get(kN).listDiffEditors().find(e=>{let r=e.getModifiedEditor(),i=e.getOriginalEditor();return r&&r.getModel()?.uri.toString()===n.toString()&&i&&i.getModel()?.uri.toString()===t.toString()})||null}function e0(e){let t=e.get(kN).listDiffEditors(),n=FM();if(n){for(let e of t)if(Gct(e.getContainerDomNode(),n))return e}return null}function Gct(e,t){let n=t;for(;n;){if(n===e)return!0;n=n.parentElement}return!1}NP(Fct),NP(Ict),NP(Lct),kP.appendMenuItem(EP.EditorTitle,{command:{id:new Lct().desc.id,title:F(`useInlineViewWhenSpaceIsLimited`,`Use Inline View When Space Is Limited`),toggled:Y.has(`config.diffEditor.useInlineViewWhenSpaceIsLimited`),precondition:Y.has(`isInDiffEditor`)},order:11,group:`1_diff`,when:Y.and($.diffEditorRenderSideBySideInlineBreakpointReached,Y.has(`isInDiffEditor`))}),kP.appendMenuItem(EP.EditorTitle,{command:{id:new Ict().desc.id,title:F(`showMoves`,`Show Moved Code Blocks`),icon:W.move,toggled:YN.create(`config.diffEditor.experimental.showMoves`,!0),precondition:Y.has(`isInDiffEditor`)},order:10,group:`1_diff`,when:Y.has(`isInDiffEditor`)}),NP(Q1);for(let e of[{icon:W.arrowRight,key:$.diffEditorInlineMode.toNegated()},{icon:W.discard,key:$.diffEditorInlineMode}])kP.appendMenuItem(EP.DiffEditorHunkToolbar,{command:{id:new Q1().desc.id,title:F(`revertHunk`,`Revert Block`),icon:e.icon},when:Y.and($.diffEditorModifiedWritable,e.key),order:5,group:`primary`}),kP.appendMenuItem(EP.DiffEditorSelectionToolbar,{command:{id:new Q1().desc.id,title:F(`revertSelection`,`Revert Selection`),icon:e.icon},when:Y.and($.diffEditorModifiedWritable,e.key),order:5,group:`primary`});NP(Rct),NP(zct),NP(Bct),NP(Vct),kP.appendMenuItem(EP.EditorTitle,{command:{id:$1.id,title:F(`Open Accessible Diff Viewer`,`Open Accessible Diff Viewer`),precondition:Y.has(`isInDiffEditor`)},order:10,group:`2_diff`,when:Y.and($.accessibleDiffViewerVisible.negate(),Y.has(`isInDiffEditor`))}),BN.registerCommandAlias(`editor.action.diffReview.next`,$1.id),NP($1),BN.registerCommandAlias(`editor.action.diffReview.prev`,Uct.id),NP(Uct);var Kct=function(e,t,n,r){var i=arguments.length,a=i<3?t:r===null?r=Object.getOwnPropertyDescriptor(t,n):r,o;if(typeof Reflect==`object`&&typeof Reflect.decorate==`function`)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},qct=function(e,t){return function(n,r){t(n,r,e)}},t0;const n0=new lP(`selectionAnchorSet`,!1);var r0=class{static#e=t0=this;static#t=this.ID=`editor.contrib.selectionAnchorController`;static get(e){return e.getContribution(t0.ID)}constructor(e,t){this.editor=e,this.selectionAnchorSetContextKey=n0.bindTo(t),this.modelChangeListener=e.onDidChangeModel(()=>this.selectionAnchorSetContextKey.reset())}setSelectionAnchor(){if(this.editor.hasModel()){let e=this.editor.getPosition();this.editor.changeDecorations(t=>{this.decorationId&&t.removeDecoration(this.decorationId),this.decorationId=t.addDecoration(_O.fromPositions(e,e),{description:`selection-anchor`,stickiness:1,hoverMessage:new vH().appendText(F(`selectionAnchor`,`Selection Anchor`)),className:`selection-anchor`})}),this.selectionAnchorSetContextKey.set(!!this.decorationId),YH(F(`anchorSet`,`Anchor set at {0}:{1}`,e.lineNumber,e.column))}}goToSelectionAnchor(){if(this.editor.hasModel()&&this.decorationId){let e=this.editor.getModel().getDecorationRange(this.decorationId);e&&this.editor.setPosition(e.getStartPosition())}}selectFromAnchorToCursor(){if(this.editor.hasModel()&&this.decorationId){let e=this.editor.getModel().getDecorationRange(this.decorationId);if(e){let t=this.editor.getPosition();this.editor.setSelection(_O.fromPositions(e.getStartPosition(),t)),this.cancelSelectionAnchor()}}}cancelSelectionAnchor(){if(this.decorationId){let e=this.decorationId;this.editor.changeDecorations(t=>{t.removeDecoration(e),this.decorationId=void 0}),this.selectionAnchorSetContextKey.set(!1)}}dispose(){this.cancelSelectionAnchor(),this.modelChangeListener.dispose()}};r0=t0=Kct([qct(1,uP)],r0);var Jct=class extends UP{constructor(){super({id:`editor.action.setSelectionAnchor`,label:F(`setSelectionAnchor`,`Set Selection Anchor`),alias:`Set Selection Anchor`,precondition:void 0,kbOpts:{kbExpr:$.editorTextFocus,primary:ID(2089,2080),weight:100}})}async run(e,t){r0.get(t)?.setSelectionAnchor()}},Yct=class extends UP{constructor(){super({id:`editor.action.goToSelectionAnchor`,label:F(`goToSelectionAnchor`,`Go to Selection Anchor`),alias:`Go to Selection Anchor`,precondition:n0})}async run(e,t){r0.get(t)?.goToSelectionAnchor()}},Xct=class extends UP{constructor(){super({id:`editor.action.selectFromAnchorToCursor`,label:F(`selectFromAnchorToCursor`,`Select from Anchor to Cursor`),alias:`Select from Anchor to Cursor`,precondition:n0,kbOpts:{kbExpr:$.editorTextFocus,primary:ID(2089,2089),weight:100}})}async run(e,t){r0.get(t)?.selectFromAnchorToCursor()}},Zct=class extends UP{constructor(){super({id:`editor.action.cancelSelectionAnchor`,label:F(`cancelSelectionAnchor`,`Cancel Selection Anchor`),alias:`Cancel Selection Anchor`,precondition:n0,kbOpts:{kbExpr:$.editorTextFocus,primary:9,weight:100}})}async run(e,t){r0.get(t)?.cancelSelectionAnchor()}};YP(r0.ID,r0,4),X(Jct),X(Yct),X(Xct),X(Zct);var Qct=Q(`editorOverviewRuler.bracketMatchForeground`,`#A0A0A0`,F(`overviewRulerBracketMatchForeground`,`Overview ruler marker color for matching brackets.`)),$ct=class extends UP{constructor(){super({id:`editor.action.jumpToBracket`,label:F(`smartSelect.jumpBracket`,`Go to Bracket`),alias:`Go to Bracket`,precondition:void 0,kbOpts:{kbExpr:$.editorTextFocus,primary:3165,weight:100}})}run(e,t){i0.get(t)?.jumpToBracket()}},elt=class extends UP{constructor(){super({id:`editor.action.selectToBracket`,label:F(`smartSelect.selectToBracket`,`Select to Bracket`),alias:`Select to Bracket`,precondition:void 0,metadata:{description:IT(`smartSelect.selectToBracketDescription`,`Select the text inside and including the brackets or curly braces`),args:[{name:`args`,schema:{type:`object`,properties:{selectBrackets:{type:`boolean`,default:!0}}}}]}})}run(e,t,n){let r=!0;n&&n.selectBrackets===!1&&(r=!1),i0.get(t)?.selectToBracket(r)}},tlt=class extends UP{constructor(){super({id:`editor.action.removeBrackets`,label:F(`smartSelect.removeBrackets`,`Remove Brackets`),alias:`Remove Brackets`,precondition:void 0,kbOpts:{kbExpr:$.editorTextFocus,primary:2561,weight:100}})}run(e,t){i0.get(t)?.removeBrackets(this.id)}},nlt=class{constructor(e,t,n){this.position=e,this.brackets=t,this.options=n}},i0=class e extends R{static#e=this.ID=`editor.contrib.bracketMatchingController`;static get(t){return t.getContribution(e.ID)}constructor(e){super(),this._editor=e,this._lastBracketsData=[],this._lastVersionId=0,this._decorations=this._editor.createDecorationsCollection(),this._updateBracketsSoon=this._register(new tj(()=>this._updateBrackets(),50)),this._matchBrackets=this._editor.getOption(72),this._updateBracketsSoon.schedule(),this._register(e.onDidChangeCursorPosition(e=>{this._matchBrackets!==`never`&&this._updateBracketsSoon.schedule()})),this._register(e.onDidChangeModelContent(e=>{this._updateBracketsSoon.schedule()})),this._register(e.onDidChangeModel(e=>{this._lastBracketsData=[],this._updateBracketsSoon.schedule()})),this._register(e.onDidChangeModelLanguageConfiguration(e=>{this._lastBracketsData=[],this._updateBracketsSoon.schedule()})),this._register(e.onDidChangeConfiguration(e=>{e.hasChanged(72)&&(this._matchBrackets=this._editor.getOption(72),this._decorations.clear(),this._lastBracketsData=[],this._lastVersionId=0,this._updateBracketsSoon.schedule())})),this._register(e.onDidBlurEditorWidget(()=>{this._updateBracketsSoon.schedule()})),this._register(e.onDidFocusEditorWidget(()=>{this._updateBracketsSoon.schedule()}))}jumpToBracket(){if(!this._editor.hasModel())return;let e=this._editor.getModel(),t=this._editor.getSelections().map(t=>{let n=t.getStartPosition(),r=e.bracketPairs.matchBracket(n),i=null;if(r)r[0].containsPosition(n)&&!r[1].containsPosition(n)?i=r[1].getStartPosition():r[1].containsPosition(n)&&(i=r[0].getStartPosition());else{let t=e.bracketPairs.findEnclosingBrackets(n);if(t)i=t[1].getStartPosition();else{let t=e.bracketPairs.findNextBracket(n);t&&t.range&&(i=t.range.getStartPosition())}}return i?new _O(i.lineNumber,i.column,i.lineNumber,i.column):new _O(n.lineNumber,n.column,n.lineNumber,n.column)});this._editor.setSelections(t),this._editor.revealRange(t[0])}selectToBracket(e){if(!this._editor.hasModel())return;let t=this._editor.getModel(),n=[];this._editor.getSelections().forEach(r=>{let i=r.getStartPosition(),a=t.bracketPairs.matchBracket(i);if(!a&&(a=t.bracketPairs.findEnclosingBrackets(i),!a)){let e=t.bracketPairs.findNextBracket(i);e&&e.range&&(a=t.bracketPairs.matchBracket(e.range.getStartPosition()))}let o=null,s=null;if(a){a.sort(H.compareRangesUsingStarts);let[t,n]=a;if(o=e?t.getStartPosition():t.getEndPosition(),s=e?n.getEndPosition():n.getStartPosition(),n.containsPosition(i)){let e=o;o=s,s=e}}o&&s&&n.push(new _O(o.lineNumber,o.column,s.lineNumber,s.column))}),n.length>0&&(this._editor.setSelections(n),this._editor.revealRange(n[0]))}removeBrackets(e){if(!this._editor.hasModel())return;let t=this._editor.getModel();this._editor.getSelections().forEach(n=>{let r=n.getPosition(),i=t.bracketPairs.matchBracket(r);i||=t.bracketPairs.findEnclosingBrackets(r),i&&(this._editor.pushUndoStop(),this._editor.executeEdits(e,[{range:i[0],text:``},{range:i[1],text:``}]),this._editor.pushUndoStop())})}static#t=this._DECORATION_OPTIONS_WITH_OVERVIEW_RULER=vq.register({description:`bracket-match-overview`,stickiness:1,className:`bracket-match`,overviewRuler:{color:DR(Qct),position:VI.Center}});static#n=this._DECORATION_OPTIONS_WITHOUT_OVERVIEW_RULER=vq.register({description:`bracket-match-no-overview`,stickiness:1,className:`bracket-match`});_updateBrackets(){if(this._matchBrackets===`never`)return;this._recomputeBrackets();let e=[],t=0;for(let n of this._lastBracketsData){let r=n.brackets;r&&(e[t++]={range:r[0],options:n.options},e[t++]={range:r[1],options:n.options})}this._decorations.set(e)}_recomputeBrackets(){if(!this._editor.hasModel()||!this._editor.hasWidgetFocus()){this._lastBracketsData=[],this._lastVersionId=0;return}let t=this._editor.getSelections();if(t.length>100){this._lastBracketsData=[],this._lastVersionId=0;return}let n=this._editor.getModel(),r=n.getVersionId(),i=[];this._lastVersionId===r&&(i=this._lastBracketsData);let a=[],o=0;for(let e=0,n=t.length;e<n;e++){let n=t[e];n.isEmpty()&&(a[o++]=n.getStartPosition())}a.length>1&&a.sort(V.compare);let s=[],c=0,l=0,u=i.length;for(let t=0,r=a.length;t<r;t++){let r=a[t];for(;l<u&&i[l].position.isBefore(r);)l++;if(l<u&&i[l].position.equals(r))s[c++]=i[l];else{let t=n.bracketPairs.matchBracket(r,20),i=e._DECORATION_OPTIONS_WITH_OVERVIEW_RULER;!t&&this._matchBrackets===`always`&&(t=n.bracketPairs.findEnclosingBrackets(r,20),i=e._DECORATION_OPTIONS_WITHOUT_OVERVIEW_RULER),s[c++]=new nlt(r,t,i)}}this._lastBracketsData=s,this._lastVersionId=r}};YP(i0.ID,i0,1),X(elt),X($ct),X(tlt),kP.appendMenuItem(EP.MenubarGoMenu,{group:`5_infile_nav`,command:{id:`editor.action.jumpToBracket`,title:F({key:`miGoToBracket`,comment:[`&& denotes a mnemonic`]},`Go to &&Bracket`)},order:2});var rlt=class{constructor(e,t){this._selection=e,this._isMovingLeft=t}getEditOperations(e,t){if(this._selection.startLineNumber!==this._selection.endLineNumber||this._selection.isEmpty())return;let n=this._selection.startLineNumber,r=this._selection.startColumn,i=this._selection.endColumn;if(!(this._isMovingLeft&&r===1)&&!(!this._isMovingLeft&&i===e.getLineMaxColumn(n)))if(this._isMovingLeft){let a=new H(n,r-1,n,r),o=e.getValueInRange(a);t.addEditOperation(a,null),t.addEditOperation(new H(n,i,n,i),o)}else{let a=new H(n,i,n,i+1),o=e.getValueInRange(a);t.addEditOperation(a,null),t.addEditOperation(new H(n,r,n,r),o)}}computeCursorState(e,t){return this._isMovingLeft?new _O(this._selection.startLineNumber,this._selection.startColumn-1,this._selection.endLineNumber,this._selection.endColumn-1):new _O(this._selection.startLineNumber,this._selection.startColumn+1,this._selection.endLineNumber,this._selection.endColumn+1)}},ilt=class extends UP{constructor(e,t){super(t),this.left=e}run(e,t){if(!t.hasModel())return;let n=[],r=t.getSelections();for(let e of r)n.push(new rlt(e,this.left));t.pushUndoStop(),t.executeCommands(this.id,n),t.pushUndoStop()}},alt=class extends ilt{constructor(){super(!0,{id:`editor.action.moveCarretLeftAction`,label:F(`caret.moveLeft`,`Move Selected Text Left`),alias:`Move Selected Text Left`,precondition:$.writable})}},olt=class extends ilt{constructor(){super(!1,{id:`editor.action.moveCarretRightAction`,label:F(`caret.moveRight`,`Move Selected Text Right`),alias:`Move Selected Text Right`,precondition:$.writable})}};X(alt),X(olt),X(class extends UP{constructor(){super({id:`editor.action.transposeLetters`,label:F(`transposeLetters.label`,`Transpose Letters`),alias:`Transpose Letters`,precondition:$.writable,kbOpts:{kbExpr:$.textInputFocus,primary:0,mac:{primary:306},weight:100}})}run(e,t){if(!t.hasModel())return;let n=t.getModel(),r=[],i=t.getSelections();for(let e of i){if(!e.isEmpty())continue;let t=e.startLineNumber,i=e.startColumn,a=n.getLineMaxColumn(t);if(t===1&&(i===1||i===2&&a===2))continue;let o=i===a?e.getPosition():HZ.rightPosition(n,e.getPosition().lineNumber,e.getPosition().column),s=HZ.leftPosition(n,o),c=HZ.leftPosition(n,s),l=n.getValueInRange(H.fromPositions(c,s)),u=n.getValueInRange(H.fromPositions(s,o)),d=H.fromPositions(c,o);r.push(new LZ(d,u+l))}r.length>0&&(t.pushUndoStop(),t.executeCommands(this.id,r),t.pushUndoStop())}});const a0=(function(){if(typeof crypto==`object`&&typeof crypto.randomUUID==`function`)return crypto.randomUUID.bind(crypto);let e;e=typeof crypto==`object`&&typeof crypto.getRandomValues==`function`?crypto.getRandomValues.bind(crypto):function(e){for(let t=0;t<e.length;t++)e[t]=Math.floor(Math.random()*256);return e};let t=new Uint8Array(16),n=[];for(let e=0;e<256;e++)n.push(e.toString(16).padStart(2,`0`));return function(){e(t),t[6]=t[6]&15|64,t[8]=t[8]&63|128;let r=0,i=``;return i+=n[t[r++]],i+=n[t[r++]],i+=n[t[r++]],i+=n[t[r++]],i+=`-`,i+=n[t[r++]],i+=n[t[r++]],i+=`-`,i+=n[t[r++]],i+=n[t[r++]],i+=`-`,i+=n[t[r++]],i+=n[t[r++]],i+=`-`,i+=n[t[r++]],i+=n[t[r++]],i+=n[t[r++]],i+=n[t[r++]],i+=n[t[r++]],i+=n[t[r++]],i}})();function o0(e){return{asString:async()=>e,asFile:()=>void 0,value:typeof e==`string`?e:void 0}}function slt(e,t,n){let r={id:a0(),name:e,uri:t,data:n};return{asString:async()=>``,asFile:()=>r,value:void 0}}var clt=class{constructor(){this._entries=new Map}get size(){let e=0;for(let t of this._entries)e++;return e}has(e){return this._entries.has(this.toKey(e))}matches(e){let t=[...this._entries.keys()];return lE.some(this,([e,t])=>t.asFile())&&t.push(`files`),ult(s0(e),t)}get(e){return this._entries.get(this.toKey(e))?.[0]}append(e,t){let n=this._entries.get(e);n?n.push(t):this._entries.set(this.toKey(e),[t])}replace(e,t){this._entries.set(this.toKey(e),[t])}delete(e){this._entries.delete(this.toKey(e))}*[Symbol.iterator](){for(let[e,t]of this._entries)for(let n of t)yield[e,n]}toKey(e){return s0(e)}};function s0(e){return e.toLowerCase()}function llt(e,t){return ult(s0(e),t.map(s0))}function ult(e,t){if(e===`*/*`)return t.length>0;if(t.includes(e))return!0;let n=e.match(/^([a-z]+)\/([a-z]+|\*)$/i);if(!n)return!1;let[r,i,a]=n;return a===`*`?t.some(e=>e.startsWith(i+`/`)):!1}const c0=Object.freeze({create:e=>Qw(e.map(e=>e.toString())).join(`\r
|
|
3352
|
+
hint: use the 'bracket' attribute if matching on equal brackets is required.`);if(typeof t.open==`string`&&typeof t.token==`string`&&typeof t.close==`string`)a.push({token:t.token+n.tokenPostfix,open:PX(n,t.open),close:PX(n,t.close)});else throw FX(n,`every element in the 'brackets' array must be a '{open,close,token}' object or array`)}return n.brackets=a,n.noThrow=!0,n}function pot(e){sI.registerLanguage(e)}function mot(){let e=[];return e=e.concat(sI.getLanguages()),e}function hot(e){return bX.get(zF).languageIdCodec.encodeLanguageId(e)}function got(e,t){return bX.withServices(()=>{let n=bX.get(zF).onDidRequestRichLanguageFeatures(r=>{r===e&&(n.dispose(),t())});return n})}function _ot(e,t){return bX.withServices(()=>{let n=bX.get(zF).onDidRequestBasicLanguageFeatures(r=>{r===e&&(n.dispose(),t())});return n})}function vot(e,t){if(!bX.get(zF).isRegisteredLanguageId(e))throw Error(`Cannot set configuration for unknown language ${e}`);return bX.get(pI).register(e,t,100)}var yot=class{constructor(e,t){this._languageId=e,this._actual=t}dispose(){}getInitialState(){return this._actual.getInitialState()}tokenize(e,t,n){if(typeof this._actual.tokenize==`function`)return bot.adaptTokenize(this._languageId,this._actual,e,n);throw Error(`Not supported!`)}tokenizeEncoded(e,t,n){let r=this._actual.tokenizeEncoded(e,n);return new CO(r.tokens,r.endState)}},bot=class e{constructor(e,t,n,r){this._languageId=e,this._actual=t,this._languageService=n,this._standaloneThemeService=r}dispose(){}getInitialState(){return this._actual.getInitialState()}static _toClassicTokens(e,t){let n=[],r=0;for(let i=0,a=e.length;i<a;i++){let a=e[i],o=a.startIndex;i===0?o=0:o<r&&(o=r),n[i]=new xO(o,a.scopes,t),r=o}return n}static adaptTokenize(t,n,r,i){let a=n.tokenize(r,i),o=e._toClassicTokens(a.tokens,t),s;return s=a.endState.equals(i)?i:a.endState,new SO(o,s)}tokenize(t,n,r){return e.adaptTokenize(this._languageId,this._actual,t,r)}_toBinaryTokens(e,t){let n=e.encodeLanguageId(this._languageId),r=this._standaloneThemeService.getColorTheme().tokenTheme,i=[],a=0,o=0;for(let e=0,s=t.length;e<s;e++){let s=t[e],c=r.match(n,s.scopes)|1024;if(a>0&&i[a-1]===c)continue;let l=s.startIndex;e===0?l=0:l<o&&(l=o),i[a++]=l,i[a++]=c,o=l}let s=new Uint32Array(a);for(let e=0;e<a;e++)s[e]=i[e];return s}tokenizeEncoded(e,t,n){let r=this._actual.tokenize(e,n),i=this._toBinaryTokens(this._languageService.languageIdCodec,r.tokens),a;return a=r.endState.equals(n)?n:r.endState,new CO(i,a)}};function xot(e){return typeof e.getInitialState==`function`}function Sot(e){return`tokenizeEncoded`in e}function Cot(e){return e&&typeof e.then==`function`}function wot(e){let t=bX.get(IY);if(e){let n=[null];for(let t=1,r=e.length;t<r;t++)n[t]=Z.fromHex(e[t]);t.setColorMapOverride(n)}else t.setColorMapOverride(null)}function Tot(e,t){return Sot(t)?new yot(e,t):new bot(e,t,bX.get(zF),bX.get(IY))}function S1(e,t){let n=new $Be(async()=>{let n=await Promise.resolve(t.create());return n?xot(n)?Tot(e,n):new UX(bX.get(zF),bX.get(IY),e,fot(e,n),bX.get(PF)):null});return LO.registerFactory(e,n)}function Eot(e,t){if(!bX.get(zF).isRegisteredLanguageId(e))throw Error(`Cannot set tokens provider for unknown language ${e}`);return Cot(t)?S1(e,{create:()=>t}):LO.register(e,Tot(e,t))}function Dot(e,t){return Cot(t)?S1(e,{create:()=>t}):LO.register(e,(t=>new UX(bX.get(zF),bX.get(IY),e,fot(e,t),bX.get(PF)))(t))}function Oot(e,t){return bX.get(hR).referenceProvider.register(e,t)}function kot(e,t){return bX.get(hR).renameProvider.register(e,t)}function Aot(e,t){return bX.get(hR).newSymbolNamesProvider.register(e,t)}function jot(e,t){return bX.get(hR).signatureHelpProvider.register(e,t)}function Mot(e,t){return bX.get(hR).hoverProvider.register(e,{provideHover:async(e,n,r,i)=>{let a=e.getWordAtPosition(n);return Promise.resolve(t.provideHover(e,n,r,i)).then(e=>{if(e)return!e.range&&a&&(e.range=new H(n.lineNumber,a.startColumn,n.lineNumber,a.endColumn)),e.range||=new H(n.lineNumber,n.column,n.lineNumber,n.column),e})}})}function Not(e,t){return bX.get(hR).documentSymbolProvider.register(e,t)}function Pot(e,t){return bX.get(hR).documentHighlightProvider.register(e,t)}function Fot(e,t){return bX.get(hR).linkedEditingRangeProvider.register(e,t)}function Iot(e,t){return bX.get(hR).definitionProvider.register(e,t)}function Lot(e,t){return bX.get(hR).implementationProvider.register(e,t)}function Rot(e,t){return bX.get(hR).typeDefinitionProvider.register(e,t)}function zot(e,t){return bX.get(hR).codeLensProvider.register(e,t)}function Bot(e,t,n){return bX.get(hR).codeActionProvider.register(e,{providedCodeActionKinds:n?.providedCodeActionKinds,documentation:n?.documentation,provideCodeActions:(e,n,r,i)=>{let a=bX.get(EG).read({resource:e.uri}).filter(e=>H.areIntersectingOrTouching(e,n));return t.provideCodeActions(e,n,{markers:a,only:r.only,trigger:r.trigger},i)},resolveCodeAction:t.resolveCodeAction})}function Vot(e,t){return bX.get(hR).documentFormattingEditProvider.register(e,t)}function Hot(e,t){return bX.get(hR).documentRangeFormattingEditProvider.register(e,t)}function Uot(e,t){return bX.get(hR).onTypeFormattingEditProvider.register(e,t)}function Wot(e,t){return bX.get(hR).linkProvider.register(e,t)}function Got(e,t){return bX.get(hR).completionProvider.register(e,t)}function Kot(e,t){return bX.get(hR).colorProvider.register(e,t)}function qot(e,t){return bX.get(hR).foldingRangeProvider.register(e,t)}function Jot(e,t){return bX.get(hR).declarationProvider.register(e,t)}function Yot(e,t){return bX.get(hR).selectionRangeProvider.register(e,t)}function Xot(e,t){return bX.get(hR).documentSemanticTokensProvider.register(e,t)}function Zot(e,t){return bX.get(hR).documentRangeSemanticTokensProvider.register(e,t)}function Qot(e,t){return bX.get(hR).inlineCompletionsProvider.register(e,t)}function $ot(e,t){return bX.get(hR).inlineEditProvider.register(e,t)}function est(e,t){return bX.get(hR).inlayHintsProvider.register(e,t)}function tst(){return{register:pot,getLanguages:mot,onLanguage:got,onLanguageEncountered:_ot,getEncodedLanguageId:hot,setLanguageConfiguration:vot,setColorMap:wot,registerTokensProviderFactory:S1,setTokensProvider:Eot,setMonarchTokensProvider:Dot,registerReferenceProvider:Oot,registerRenameProvider:kot,registerNewSymbolNameProvider:Aot,registerCompletionItemProvider:Got,registerSignatureHelpProvider:jot,registerHoverProvider:Mot,registerDocumentSymbolProvider:Not,registerDocumentHighlightProvider:Pot,registerLinkedEditingRangeProvider:Fot,registerDefinitionProvider:Iot,registerImplementationProvider:Lot,registerTypeDefinitionProvider:Rot,registerCodeLensProvider:zot,registerCodeActionProvider:Bot,registerDocumentFormattingEditProvider:Vot,registerDocumentRangeFormattingEditProvider:Hot,registerOnTypeFormattingEditProvider:Uot,registerLinkProvider:Wot,registerColorProvider:Kot,registerFoldingRangeProvider:qot,registerDeclarationProvider:Jot,registerSelectionRangeProvider:Yot,registerDocumentSemanticTokensProvider:Xot,registerDocumentRangeSemanticTokensProvider:Zot,registerInlineCompletionsProvider:Qot,registerInlineEditProvider:$ot,registerInlayHintsProvider:est,DocumentHighlightKind:YO,CompletionItemKind:UO,CompletionItemTag:WO,CompletionItemInsertTextRule:HO,SymbolKind:Ek,SymbolTag:Dk,IndentAction:nk,CompletionTriggerKind:GO,SignatureHelpTriggerKind:Tk,InlayHintKind:ik,InlineCompletionTriggerKind:ak,InlineEditTriggerKind:ok,CodeActionTriggerType:VO,NewSymbolNameTag:pk,NewSymbolNameTriggerKind:mk,PartialAcceptTriggerKind:_k,HoverVerbosityAction:tk,FoldingRangeKind:MO,SelectedSuggestionInfo:DO}}var C1=ON(`IEditorCancelService`),nst=new lP(`cancellableOperation`,!1,F(`cancellableOperation`,`Whether the editor runs a cancellable operation, e.g. like 'Peek References'`));HF(C1,class{constructor(){this._tokens=new WeakMap}add(e,t){let n=this._tokens.get(e);n||(n=e.invokeWithinContext(e=>({key:nst.bindTo(e.get(uP)),tokens:new dE})),this._tokens.set(e,n));let r;return n.key.set(!0),r=n.tokens.push(t),()=>{r&&=(r(),n.key.set(!n.tokens.isEmpty()),void 0)}}cancel(e){let t=this._tokens.get(e);if(!t)return;let n=t.tokens.pop();n&&(n.cancel(),t.key.set(!t.tokens.isEmpty()))}},1);var rst=class extends ED{constructor(e,t){super(t),this.editor=e,this._unregister=e.invokeWithinContext(t=>t.get(C1).add(e,this))}dispose(){this._unregister(),super.dispose()}};qP(new class extends HP{constructor(){super({id:`editor.cancelOperation`,kbOpts:{weight:100,primary:9},precondition:nst})}runEditorCommand(e,t){e.get(C1).cancel(t)}});var ist=class e{constructor(e,t){if(this.flags=t,this.flags&1){let t=e.getModel();this.modelVersionId=t?Rk(`{0}#{1}`,t.uri.toString(),t.getVersionId()):null}else this.modelVersionId=null;this.flags&4?this.position=e.getPosition():this.position=null,this.flags&2?this.selection=e.getSelection():this.selection=null,this.flags&8?(this.scrollLeft=e.getScrollLeft(),this.scrollTop=e.getScrollTop()):(this.scrollLeft=-1,this.scrollTop=-1)}_equals(t){if(!(t instanceof e))return!1;let n=t;return!(this.modelVersionId!==n.modelVersionId||this.scrollLeft!==n.scrollLeft||this.scrollTop!==n.scrollTop||!this.position&&n.position||this.position&&!n.position||this.position&&n.position&&!this.position.equals(n.position)||!this.selection&&n.selection||this.selection&&!n.selection||this.selection&&n.selection&&!this.selection.equalsRange(n.selection))}validate(t){return this._equals(new e(t,this.flags))}},w1=class extends rst{constructor(e,t,n,r){super(e,r),this._listener=new L,t&4&&this._listener.add(e.onDidChangeCursorPosition(e=>{(!n||!H.containsPosition(n,e.position))&&this.cancel()})),t&2&&this._listener.add(e.onDidChangeCursorSelection(e=>{(!n||!H.containsRange(n,e.selection))&&this.cancel()})),t&8&&this._listener.add(e.onDidScrollChange(e=>this.cancel())),t&1&&(this._listener.add(e.onDidChangeModel(e=>this.cancel())),this._listener.add(e.onDidChangeModelContent(e=>this.cancel())))}dispose(){this._listener.dispose(),super.dispose()}},T1=class extends ED{constructor(e,t){super(t),this._listener=e.onDidChangeContent(()=>this.cancel())}dispose(){this._listener.dispose(),super.dispose()}};function E1(e){return e&&typeof e.getEditorType==`function`?e.getEditorType()===xX.ICodeEditor:!1}function D1(e){return e&&typeof e.getEditorType==`function`?e.getEditorType()===xX.IDiffEditor:!1}function ast(e){return!!e&&typeof e==`object`&&typeof e.onDidChangeActiveEditor==`function`}function ost(e){return E1(e)?e:D1(e)?e.getModifiedEditor():ast(e)&&E1(e.activeCodeEditor)?e.activeCodeEditor:null}var O1=class e{static _handleEolEdits(e,t){let n,r=[];for(let e of t)typeof e.eol==`number`&&(n=e.eol),e.range&&typeof e.text==`string`&&r.push(e);return typeof n==`number`&&e.hasModel()&&e.getModel().pushEOL(n),r}static _isFullModelReplaceEdit(e,t){if(!e.hasModel())return!1;let n=e.getModel(),r=n.validateRange(t.range);return n.getFullModelRange().equalsRange(r)}static execute(t,n,r){r&&t.pushUndoStop();let i=c$.capture(t),a=e._handleEolEdits(t,n);a.length===1&&e._isFullModelReplaceEdit(t,a[0])?t.executeEdits(`formatEditsCommand`,a.map(e=>mU.replace(H.lift(e.range),e.text))):t.executeEdits(`formatEditsCommand`,a.map(e=>mU.replaceMove(H.lift(e.range),e.text))),r&&t.pushUndoStop(),i.restoreRelativeVerticalPositionOfCursor(t)}},sst=class{constructor(e){this.value=e,this._lower=e.toLowerCase()}static toKey(e){return typeof e==`string`?e.toLowerCase():e._lower}},cst=class{constructor(e){if(this._set=new Set,e)for(let t of e)this.add(t)}add(e){this._set.add(sst.toKey(e))}has(e){return this._set.has(sst.toKey(e))}};function lst(e,t,n){let r=[],i=new cst,a=e.ordered(n);for(let e of a)r.push(e),e.extensionId&&i.add(e.extensionId);let o=t.ordered(n);for(let e of o){if(e.extensionId){if(i.has(e.extensionId))continue;i.add(e.extensionId)}r.push({displayName:e.displayName,extensionId:e.extensionId,provideDocumentFormattingEdits(t,n,r){return e.provideDocumentRangeFormattingEdits(t,t.getFullModelRange(),n,r)}})}return r}var k1=class e{static#e=this._selectors=new dE;static setFormatterSelector(t){return{dispose:e._selectors.unshift(t)}}static async select(t,n,r,i){if(t.length===0)return;let a=lE.first(e._selectors);if(a)return await a(t,n,r,i)}};async function ust(e,t,n,r,i,a,o){let s=e.get(DN),{documentRangeFormattingEditProvider:c}=e.get(hR),l=E1(t)?t.getModel():t,u=c.ordered(l),d=await k1.select(u,l,r,2);d&&(i.report(d),await s.invokeFunction(dst,d,t,n,a,o))}async function dst(e,t,n,r,i,a){let o=e.get(CG),s=e.get(FP),c=e.get(nX),l,u;E1(n)?(l=n.getModel(),u=new w1(n,5,void 0,i)):(l=n,u=new T1(n,i));let d=[],f=0;for(let e of aT(r).sort(H.compareRangesUsingStarts))f>0&&H.areIntersectingOrTouching(d[f-1],e)?d[f-1]=H.fromPositions(d[f-1].getStartPosition(),e.getEndPosition()):f=d.push(e);let p=async e=>{s.trace(`[format][provideDocumentRangeFormattingEdits] (request)`,t.extensionId?.value,e);let n=await t.provideDocumentRangeFormattingEdits(l,e,l.getFormattingOptions(),u.token)||[];return s.trace(`[format][provideDocumentRangeFormattingEdits] (response)`,t.extensionId?.value,n),n},m=(e,t)=>{if(!e.length||!t.length)return!1;let n=e.reduce((e,t)=>H.plusRange(e,t.range),e[0].range);if(!t.some(e=>H.intersectRanges(n,e.range)))return!1;for(let n of e)for(let e of t)if(H.intersectRanges(n.range,e.range))return!0;return!1},h=[],g=[];try{if(typeof t.provideDocumentRangesFormattingEdits==`function`){s.trace(`[format][provideDocumentRangeFormattingEdits] (request)`,t.extensionId?.value,d);let e=await t.provideDocumentRangesFormattingEdits(l,d,l.getFormattingOptions(),u.token)||[];s.trace(`[format][provideDocumentRangeFormattingEdits] (response)`,t.extensionId?.value,e),g.push(e)}else{for(let e of d){if(u.token.isCancellationRequested)return!0;g.push(await p(e))}for(let e=0;e<d.length;++e)for(let t=e+1;t<d.length;++t){if(u.token.isCancellationRequested)return!0;if(m(g[e],g[t])){let n=H.plusRange(d[e],d[t]),r=await p(n);d.splice(t,1),d.splice(e,1),d.push(n),g.splice(t,1),g.splice(e,1),g.push(r),e=0,t=0}}}for(let e of g){if(u.token.isCancellationRequested)return!0;let t=await o.computeMoreMinimalEdits(l.uri,e);t&&h.push(...t)}}finally{u.dispose()}if(h.length===0)return!1;if(E1(n))O1.execute(n,h,!0),n.revealPositionInCenterIfOutsideViewport(n.getPosition(),1);else{let[{range:e}]=h,t=new _O(e.startLineNumber,e.startColumn,e.endLineNumber,e.endColumn);l.pushEditOperations([t],h.map(e=>({text:e.text,range:H.lift(e.range),forceMoveMarkers:!0})),e=>{for(let{range:n}of e)if(H.areIntersectingOrTouching(n,t))return[new _O(n.startLineNumber,n.startColumn,n.endLineNumber,n.endColumn)];return null})}return c.playSignal(iX.format,{userGesture:a}),!0}async function fst(e,t,n,r,i,a){let o=e.get(DN),s=e.get(hR),c=E1(t)?t.getModel():t,l=lst(s.documentFormattingEditProvider,s.documentRangeFormattingEditProvider,c),u=await k1.select(l,c,n,1);u&&(r.report(u),await o.invokeFunction(pst,u,t,n,i,a))}async function pst(e,t,n,r,i,a){let o=e.get(CG),s=e.get(nX),c,l;E1(n)?(c=n.getModel(),l=new w1(n,5,void 0,i)):(c=n,l=new T1(n,i));let u;try{let e=await t.provideDocumentFormattingEdits(c,c.getFormattingOptions(),l.token);if(u=await o.computeMoreMinimalEdits(c.uri,e),l.token.isCancellationRequested)return!0}finally{l.dispose()}if(!u||u.length===0)return!1;if(E1(n))O1.execute(n,u,r!==2),r!==2&&n.revealPositionInCenterIfOutsideViewport(n.getPosition(),1);else{let[{range:e}]=u,t=new _O(e.startLineNumber,e.startColumn,e.endLineNumber,e.endColumn);c.pushEditOperations([t],u.map(e=>({text:e.text,range:H.lift(e.range),forceMoveMarkers:!0})),e=>{for(let{range:n}of e)if(H.areIntersectingOrTouching(n,t))return[new _O(n.startLineNumber,n.startColumn,n.endLineNumber,n.endColumn)];return null})}return s.playSignal(iX.format,{userGesture:a}),!0}async function mst(e,t,n,r,i,a){let o=t.documentRangeFormattingEditProvider.ordered(n);for(let t of o){let o=await Promise.resolve(t.provideDocumentRangeFormattingEdits(n,r,i,a)).catch(JE);if(Zw(o))return await e.computeMoreMinimalEdits(n.uri,o)}}async function hst(e,t,n,r,i){let a=lst(t.documentFormattingEditProvider,t.documentRangeFormattingEditProvider,n);for(let t of a){let a=await Promise.resolve(t.provideDocumentFormattingEdits(n,r,i)).catch(JE);if(Zw(a))return await e.computeMoreMinimalEdits(n.uri,a)}}function gst(e,t,n,r,i,a,o){let s=t.onTypeFormattingEditProvider.ordered(n);return s.length===0||s[0].autoFormatTriggerCharacters.indexOf(i)<0?Promise.resolve(void 0):Promise.resolve(s[0].provideOnTypeFormattingEdits(n,r,i,a,o)).catch(JE).then(t=>e.computeMoreMinimalEdits(n.uri,t))}BN.registerCommand(`_executeFormatRangeProvider`,async function(e,...t){let[n,r,i]=t;ST(sO.isUri(n)),ST(H.isIRange(r));let a=e.get(jN),o=e.get(CG),s=e.get(hR),c=await a.createModelReference(n);try{return mst(o,s,c.object.textEditorModel,H.lift(r),i,wD.None)}finally{c.dispose()}}),BN.registerCommand(`_executeFormatDocumentProvider`,async function(e,...t){let[n,r]=t;ST(sO.isUri(n));let i=e.get(jN),a=e.get(CG),o=e.get(hR),s=await i.createModelReference(n);try{return hst(a,o,s.object.textEditorModel,r,wD.None)}finally{s.dispose()}}),BN.registerCommand(`_executeFormatOnTypeProvider`,async function(e,...t){let[n,r,i,a]=t;ST(sO.isUri(n)),ST(V.isIPosition(r)),ST(typeof i==`string`);let o=e.get(jN),s=e.get(CG),c=e.get(hR),l=await o.createModelReference(n);try{return gst(s,c,l.object.textEditorModel,V.lift(r),i,a,wD.None)}finally{l.dispose()}});var A1=s({CancellationTokenSource:()=>_st,Emitter:()=>vst,KeyCode:()=>yst,KeyMod:()=>bst,MarkerSeverity:()=>Tst,MarkerTag:()=>Est,Position:()=>xst,Range:()=>Sst,Selection:()=>Cst,SelectionDirection:()=>wst,Token:()=>Ost,Uri:()=>Dst,editor:()=>M1,languages:()=>N1},1);GE.wrappingIndent.defaultValue=0,GE.glyphMargin.defaultValue=!1,GE.autoIndent.defaultValue=3,GE.overviewRulerLanes.defaultValue=2,k1.setFormatterSelector((e,t,n)=>Promise.resolve(e[0]));var j1=Mk();j1.editor=iot(),j1.languages=tst();const _st=j1.CancellationTokenSource,vst=j1.Emitter,yst=j1.KeyCode,bst=j1.KeyMod,xst=j1.Position,Sst=j1.Range,Cst=j1.Selection,wst=j1.SelectionDirection,Tst=j1.MarkerSeverity,Est=j1.MarkerTag,Dst=j1.Uri,Ost=j1.Token,M1=j1.editor,N1=j1.languages;(globalThis.MonacoEnvironment?.globalAPI||typeof define==`function`&&define.amd)&&(globalThis.monaco=j1),globalThis.require!==void 0&&typeof globalThis.require.config==`function`&&globalThis.require.config({ignoreDuplicateModules:[`vscode-languageserver-types`,`vscode-languageserver-types/main`,`vscode-languageserver-textdocument`,`vscode-languageserver-textdocument/main`,`vscode-nls`,`vscode-nls/vscode-nls`,`jsonc-parser`,`jsonc-parser/main`,`vscode-uri`,`vscode-uri/index`,`vs/basic-languages/typescript/typescript`]});var kst=Object.defineProperty,Ast=Object.getOwnPropertyDescriptor,jst=Object.getOwnPropertyNames,Mst=Object.prototype.hasOwnProperty,Nst=(e,t,n,r)=>{if(t&&typeof t==`object`||typeof t==`function`)for(let i of jst(t))!Mst.call(e,i)&&i!==n&&kst(e,i,{get:()=>t[i],enumerable:!(r=Ast(t,i))||r.enumerable});return e},Pst=(e,t,n)=>(Nst(e,t,`default`),n&&Nst(n,t,`default`)),P1={};Pst(P1,A1);var Fst={},F1={},Ist=class e{static getOrCreate(t){return F1[t]||(F1[t]=new e(t)),F1[t]}constructor(e){this._languageId=e,this._loadingTriggered=!1,this._lazyLoadPromise=new Promise((e,t)=>{this._lazyLoadPromiseResolve=e,this._lazyLoadPromiseReject=t})}load(){return this._loadingTriggered||(this._loadingTriggered=!0,Fst[this._languageId].loader().then(e=>this._lazyLoadPromiseResolve(e),e=>this._lazyLoadPromiseReject(e))),this._lazyLoadPromise}};function I1(e){let t=e.id;Fst[t]=e,P1.languages.register(e);let n=Ist.getOrCreate(t);P1.languages.registerTokensProviderFactory(t,{create:async()=>(await n.load()).language}),P1.languages.onLanguageEncountered(t,async()=>{let e=await n.load();P1.languages.setLanguageConfiguration(t,e.conf)})}I1({id:`abap`,extensions:[`.abap`],aliases:[`abap`,`ABAP`],loader:()=>tp(()=>import(`./abap-C4tHUUCU.js`),[])}),I1({id:`apex`,extensions:[`.cls`],aliases:[`Apex`,`apex`],mimetypes:[`text/x-apex-source`,`text/x-apex`],loader:()=>tp(()=>import(`./apex-6cG6aG-w.js`),[])}),I1({id:`azcli`,extensions:[`.azcli`],aliases:[`Azure CLI`,`azcli`],loader:()=>tp(()=>import(`./azcli-51BngrSU.js`),[])}),I1({id:`bat`,extensions:[`.bat`,`.cmd`],aliases:[`Batch`,`bat`],loader:()=>tp(()=>import(`./bat-BDcdVSIt.js`),[])}),I1({id:`bicep`,extensions:[`.bicep`],aliases:[`Bicep`],loader:()=>tp(()=>import(`./bicep-Cg0BCcky.js`),[])}),I1({id:`cameligo`,extensions:[`.mligo`],aliases:[`Cameligo`],loader:()=>tp(()=>import(`./cameligo-C3ekVui9.js`),[])}),I1({id:`clojure`,extensions:[`.clj`,`.cljs`,`.cljc`,`.edn`],aliases:[`clojure`,`Clojure`],loader:()=>tp(()=>import(`./clojure-Ci5xNgh_.js`),[])}),I1({id:`coffeescript`,extensions:[`.coffee`],aliases:[`CoffeeScript`,`coffeescript`,`coffee`],mimetypes:[`text/x-coffeescript`,`text/coffeescript`],loader:()=>tp(()=>import(`./coffee-xsRz4GKy.js`),[])}),I1({id:`c`,extensions:[`.c`,`.h`],aliases:[`C`,`c`],loader:()=>tp(()=>import(`./cpp-B2gW4e23.js`),[])}),I1({id:`cpp`,extensions:[`.cpp`,`.cc`,`.cxx`,`.hpp`,`.hh`,`.hxx`],aliases:[`C++`,`Cpp`,`cpp`],loader:()=>tp(()=>import(`./cpp-B2gW4e23.js`),[])}),I1({id:`csharp`,extensions:[`.cs`,`.csx`,`.cake`],aliases:[`C#`,`csharp`],loader:()=>tp(()=>import(`./csharp-SRujvHqy.js`),[])}),I1({id:`csp`,extensions:[`.csp`],aliases:[`CSP`,`csp`],loader:()=>tp(()=>import(`./csp-Cr-ll6gP.js`),[])}),I1({id:`css`,extensions:[`.css`],aliases:[`CSS`,`css`],mimetypes:[`text/css`],loader:()=>tp(()=>import(`./css-BYTJZCno.js`),[])}),I1({id:`cypher`,extensions:[`.cypher`,`.cyp`],aliases:[`Cypher`,`OpenCypher`],loader:()=>tp(()=>import(`./cypher-AmQ0R_D3.js`),[])}),I1({id:`dart`,extensions:[`.dart`],aliases:[`Dart`,`dart`],mimetypes:[`text/x-dart-source`,`text/x-dart`],loader:()=>tp(()=>import(`./dart-Du01a0J5.js`),[])}),I1({id:`dockerfile`,extensions:[`.dockerfile`],filenames:[`Dockerfile`],aliases:[`Dockerfile`],loader:()=>tp(()=>import(`./dockerfile-Dtlk9wqf.js`),[])}),I1({id:`ecl`,extensions:[`.ecl`],aliases:[`ECL`,`Ecl`,`ecl`],loader:()=>tp(()=>import(`./ecl-CpmVnLkK.js`),[])}),I1({id:`elixir`,extensions:[`.ex`,`.exs`],aliases:[`Elixir`,`elixir`,`ex`],loader:()=>tp(()=>import(`./elixir-B3MVAC8k.js`),[])}),I1({id:`flow9`,extensions:[`.flow`],aliases:[`Flow9`,`Flow`,`flow9`,`flow`],loader:()=>tp(()=>import(`./flow9-Chkly0RN.js`),[])}),I1({id:`fsharp`,extensions:[`.fs`,`.fsi`,`.ml`,`.mli`,`.fsx`,`.fsscript`],aliases:[`F#`,`FSharp`,`fsharp`],loader:()=>tp(()=>import(`./fsharp-CZvMkppk.js`),[])}),I1({id:`freemarker2`,extensions:[`.ftl`,`.ftlh`,`.ftlx`],aliases:[`FreeMarker2`,`Apache FreeMarker2`],loader:()=>tp(()=>import(`./freemarker2-_wLEdPSz.js`),[]).then(e=>e.TagAutoInterpolationDollar)}),I1({id:`freemarker2.tag-angle.interpolation-dollar`,aliases:[`FreeMarker2 (Angle/Dollar)`,`Apache FreeMarker2 (Angle/Dollar)`],loader:()=>tp(()=>import(`./freemarker2-_wLEdPSz.js`),[]).then(e=>e.TagAngleInterpolationDollar)}),I1({id:`freemarker2.tag-bracket.interpolation-dollar`,aliases:[`FreeMarker2 (Bracket/Dollar)`,`Apache FreeMarker2 (Bracket/Dollar)`],loader:()=>tp(()=>import(`./freemarker2-_wLEdPSz.js`),[]).then(e=>e.TagBracketInterpolationDollar)}),I1({id:`freemarker2.tag-angle.interpolation-bracket`,aliases:[`FreeMarker2 (Angle/Bracket)`,`Apache FreeMarker2 (Angle/Bracket)`],loader:()=>tp(()=>import(`./freemarker2-_wLEdPSz.js`),[]).then(e=>e.TagAngleInterpolationBracket)}),I1({id:`freemarker2.tag-bracket.interpolation-bracket`,aliases:[`FreeMarker2 (Bracket/Bracket)`,`Apache FreeMarker2 (Bracket/Bracket)`],loader:()=>tp(()=>import(`./freemarker2-_wLEdPSz.js`),[]).then(e=>e.TagBracketInterpolationBracket)}),I1({id:`freemarker2.tag-auto.interpolation-dollar`,aliases:[`FreeMarker2 (Auto/Dollar)`,`Apache FreeMarker2 (Auto/Dollar)`],loader:()=>tp(()=>import(`./freemarker2-_wLEdPSz.js`),[]).then(e=>e.TagAutoInterpolationDollar)}),I1({id:`freemarker2.tag-auto.interpolation-bracket`,aliases:[`FreeMarker2 (Auto/Bracket)`,`Apache FreeMarker2 (Auto/Bracket)`],loader:()=>tp(()=>import(`./freemarker2-_wLEdPSz.js`),[]).then(e=>e.TagAutoInterpolationBracket)}),I1({id:`go`,extensions:[`.go`],aliases:[`Go`],loader:()=>tp(()=>import(`./go-dT2iT7lt.js`),[])}),I1({id:`graphql`,extensions:[`.graphql`,`.gql`],aliases:[`GraphQL`,`graphql`,`gql`],mimetypes:[`application/graphql`],loader:()=>tp(()=>import(`./graphql-DmObWyBD.js`),[])}),I1({id:`handlebars`,extensions:[`.handlebars`,`.hbs`],aliases:[`Handlebars`,`handlebars`,`hbs`],mimetypes:[`text/x-handlebars-template`],loader:()=>tp(()=>import(`./handlebars-66zKrSAk.js`),[])}),I1({id:`hcl`,extensions:[`.tf`,`.tfvars`,`.hcl`],aliases:[`Terraform`,`tf`,`HCL`,`hcl`],loader:()=>tp(()=>import(`./hcl-D1x5Oyp4.js`),[])}),I1({id:`html`,extensions:[`.html`,`.htm`,`.shtml`,`.xhtml`,`.mdoc`,`.jsp`,`.asp`,`.aspx`,`.jshtm`],aliases:[`HTML`,`htm`,`html`,`xhtml`],mimetypes:[`text/html`,`text/x-jshtm`,`text/template`,`text/ng-template`],loader:()=>tp(()=>import(`./html-oM24gnvF.js`),[])}),I1({id:`ini`,extensions:[`.ini`,`.properties`,`.gitconfig`],filenames:[`config`,`.gitattributes`,`.gitconfig`,`.editorconfig`],aliases:[`Ini`,`ini`],loader:()=>tp(()=>import(`./ini-Bg2o1S3s.js`),[])}),I1({id:`java`,extensions:[`.java`,`.jav`],aliases:[`Java`,`java`],mimetypes:[`text/x-java-source`,`text/x-java`],loader:()=>tp(()=>import(`./java-XviKSSn5.js`),[])}),I1({id:`javascript`,extensions:[`.js`,`.es6`,`.jsx`,`.mjs`,`.cjs`],firstLine:`^#!.*\\bnode`,filenames:[`jakefile`],aliases:[`JavaScript`,`javascript`,`js`],mimetypes:[`text/javascript`],loader:()=>tp(()=>import(`./javascript-D-njx6Yh.js`),__vite__mapDeps([0,1]))}),I1({id:`julia`,extensions:[`.jl`],aliases:[`julia`,`Julia`],loader:()=>tp(()=>import(`./julia-DfTIwUGh.js`),[])}),I1({id:`kotlin`,extensions:[`.kt`,`.kts`],aliases:[`Kotlin`,`kotlin`],mimetypes:[`text/x-kotlin-source`,`text/x-kotlin`],loader:()=>tp(()=>import(`./kotlin-CNaIBh9d.js`),[])}),I1({id:`less`,extensions:[`.less`],aliases:[`Less`,`less`],mimetypes:[`text/x-less`,`text/less`],loader:()=>tp(()=>import(`./less-D7o76tXd.js`),[])}),I1({id:`lexon`,extensions:[`.lex`],aliases:[`Lexon`],loader:()=>tp(()=>import(`./lexon-Dd374QjV.js`),[])}),I1({id:`lua`,extensions:[`.lua`],aliases:[`Lua`,`lua`],loader:()=>tp(()=>import(`./lua-DZKuiFbY.js`),[])}),I1({id:`liquid`,extensions:[`.liquid`,`.html.liquid`],aliases:[`Liquid`,`liquid`],mimetypes:[`application/liquid`],loader:()=>tp(()=>import(`./liquid-BDL70fhI.js`),[])}),I1({id:`m3`,extensions:[`.m3`,`.i3`,`.mg`,`.ig`],aliases:[`Modula-3`,`Modula3`,`modula3`,`m3`],loader:()=>tp(()=>import(`./m3-CbwRx9Bb.js`),[])}),I1({id:`markdown`,extensions:[`.md`,`.markdown`,`.mdown`,`.mkdn`,`.mkd`,`.mdwn`,`.mdtxt`,`.mdtext`],aliases:[`Markdown`,`markdown`],loader:()=>tp(()=>import(`./markdown-DwLB5Rib.js`),[])}),I1({id:`mdx`,extensions:[`.mdx`],aliases:[`MDX`,`mdx`],loader:()=>tp(()=>import(`./mdx-Bo_N_Jd-.js`),[])}),I1({id:`mips`,extensions:[`.s`],aliases:[`MIPS`,`MIPS-V`],mimetypes:[`text/x-mips`,`text/mips`,`text/plaintext`],loader:()=>tp(()=>import(`./mips-DLbIq1yM.js`),[])}),I1({id:`msdax`,extensions:[`.dax`,`.msdax`],aliases:[`DAX`,`MSDAX`],loader:()=>tp(()=>import(`./msdax-D4IjoZ6m.js`),[])}),I1({id:`mysql`,extensions:[],aliases:[`MySQL`,`mysql`],loader:()=>tp(()=>import(`./mysql-DQL_jy6H.js`),[])}),I1({id:`objective-c`,extensions:[`.m`],aliases:[`Objective-C`],loader:()=>tp(()=>import(`./objective-c-D74wM5bv.js`),[])}),I1({id:`pascal`,extensions:[`.pas`,`.p`,`.pp`],aliases:[`Pascal`,`pas`],mimetypes:[`text/x-pascal-source`,`text/x-pascal`],loader:()=>tp(()=>import(`./pascal-5tRlZk4O.js`),[])}),I1({id:`pascaligo`,extensions:[`.ligo`],aliases:[`Pascaligo`,`ligo`],loader:()=>tp(()=>import(`./pascaligo-CAE4rAEt.js`),[])}),I1({id:`perl`,extensions:[`.pl`,`.pm`],aliases:[`Perl`,`pl`],loader:()=>tp(()=>import(`./perl-DREAbuQT.js`),[])}),I1({id:`pgsql`,extensions:[],aliases:[`PostgreSQL`,`postgres`,`pg`,`postgre`],loader:()=>tp(()=>import(`./pgsql-DASKdyAW.js`),[])}),I1({id:`php`,extensions:[`.php`,`.php4`,`.php5`,`.phtml`,`.ctp`],aliases:[`PHP`,`php`],mimetypes:[`application/x-php`],loader:()=>tp(()=>import(`./php-C37ZWqoO.js`),[])}),I1({id:`pla`,extensions:[`.pla`],loader:()=>tp(()=>import(`./pla-v5u9R8i1.js`),[])}),I1({id:`postiats`,extensions:[`.dats`,`.sats`,`.hats`],aliases:[`ATS`,`ATS/Postiats`],loader:()=>tp(()=>import(`./postiats-Szt5m-7G.js`),[])}),I1({id:`powerquery`,extensions:[`.pq`,`.pqm`],aliases:[`PQ`,`M`,`Power Query`,`Power Query M`],loader:()=>tp(()=>import(`./powerquery-BzVrUSu3.js`),[])}),I1({id:`powershell`,extensions:[`.ps1`,`.psm1`,`.psd1`],aliases:[`PowerShell`,`powershell`,`ps`,`ps1`],loader:()=>tp(()=>import(`./powershell-BdbPbX_X.js`),[])}),I1({id:`proto`,extensions:[`.proto`],aliases:[`protobuf`,`Protocol Buffers`],loader:()=>tp(()=>import(`./protobuf-qqDa50tu.js`),[])}),I1({id:`pug`,extensions:[`.jade`,`.pug`],aliases:[`Pug`,`Jade`,`jade`],loader:()=>tp(()=>import(`./pug-Cu20UQ5w.js`),[])}),I1({id:`python`,extensions:[`.py`,`.rpy`,`.pyw`,`.cpy`,`.gyp`,`.gypi`],aliases:[`Python`,`py`],firstLine:`^#!/.*\\bpython[0-9.-]*\\b`,loader:()=>tp(()=>import(`./python-D1UXSNgK.js`),[])}),I1({id:`qsharp`,extensions:[`.qs`],aliases:[`Q#`,`qsharp`],loader:()=>tp(()=>import(`./qsharp-DcbHL5X7.js`),[])}),I1({id:`r`,extensions:[`.r`,`.rhistory`,`.rmd`,`.rprofile`,`.rt`],aliases:[`R`,`r`],loader:()=>tp(()=>import(`./r-Bvig6Flk.js`),[])}),I1({id:`razor`,extensions:[`.cshtml`],aliases:[`Razor`,`razor`],mimetypes:[`text/x-cshtml`],loader:()=>tp(()=>import(`./razor-Bd4GOtMe.js`),[])}),I1({id:`redis`,extensions:[`.redis`],aliases:[`redis`],loader:()=>tp(()=>import(`./redis-BxHDcW3-.js`),[])}),I1({id:`redshift`,extensions:[],aliases:[`Redshift`,`redshift`],loader:()=>tp(()=>import(`./redshift-B8dvlzjH.js`),[])}),I1({id:`restructuredtext`,extensions:[`.rst`],aliases:[`reStructuredText`,`restructuredtext`],loader:()=>tp(()=>import(`./restructuredtext-npodtAFM.js`),[])}),I1({id:`ruby`,extensions:[`.rb`,`.rbx`,`.rjs`,`.gemspec`,`.pp`],filenames:[`rakefile`,`Gemfile`],aliases:[`Ruby`,`rb`],loader:()=>tp(()=>import(`./ruby-DiofbcJD.js`),[])}),I1({id:`rust`,extensions:[`.rs`,`.rlib`],aliases:[`Rust`,`rust`],loader:()=>tp(()=>import(`./rust-BjYid3-m.js`),[])}),I1({id:`sb`,extensions:[`.sb`],aliases:[`Small Basic`,`sb`],loader:()=>tp(()=>import(`./sb-CzcPAP71.js`),[])}),I1({id:`scala`,extensions:[`.scala`,`.sc`,`.sbt`],aliases:[`Scala`,`scala`,`SBT`,`Sbt`,`sbt`,`Dotty`,`dotty`],mimetypes:[`text/x-scala-source`,`text/x-scala`,`text/x-sbt`,`text/x-dotty`],loader:()=>tp(()=>import(`./scala-Ci4wFrYi.js`),[])}),I1({id:`scheme`,extensions:[`.scm`,`.ss`,`.sch`,`.rkt`],aliases:[`scheme`,`Scheme`],loader:()=>tp(()=>import(`./scheme-D3iWhvP7.js`),[])}),I1({id:`scss`,extensions:[`.scss`],aliases:[`Sass`,`sass`,`scss`],mimetypes:[`text/x-scss`,`text/scss`],loader:()=>tp(()=>import(`./scss-DdlqDgmu.js`),[])}),I1({id:`shell`,extensions:[`.sh`,`.bash`],aliases:[`Shell`,`sh`],loader:()=>tp(()=>import(`./shell-Bawb9gbH.js`),[])}),I1({id:`sol`,extensions:[`.sol`],aliases:[`sol`,`solidity`,`Solidity`],loader:()=>tp(()=>import(`./solidity-Z2Sq8PBC.js`),[])}),I1({id:`aes`,extensions:[`.aes`],aliases:[`aes`,`sophia`,`Sophia`],loader:()=>tp(()=>import(`./sophia--yD-H1Ow.js`),[])}),I1({id:`sparql`,extensions:[`.rq`],aliases:[`sparql`,`SPARQL`],loader:()=>tp(()=>import(`./sparql-0vv3-wLi.js`),[])}),I1({id:`sql`,extensions:[`.sql`],aliases:[`SQL`],loader:()=>tp(()=>import(`./sql-0gdWKhmJ.js`),[])}),I1({id:`st`,extensions:[`.st`,`.iecst`,`.iecplc`,`.lc3lib`,`.TcPOU`,`.TcDUT`,`.TcGVL`,`.TcIO`],aliases:[`StructuredText`,`scl`,`stl`],loader:()=>tp(()=>import(`./st-rE-x-DTZ.js`),[])}),I1({id:`swift`,aliases:[`Swift`,`swift`],extensions:[`.swift`],mimetypes:[`text/swift`],loader:()=>tp(()=>import(`./swift-CSKeG8Ne.js`),[])}),I1({id:`systemverilog`,extensions:[`.sv`,`.svh`],aliases:[`SV`,`sv`,`SystemVerilog`,`systemverilog`],loader:()=>tp(()=>import(`./systemverilog-CblNM3Im.js`),[])}),I1({id:`verilog`,extensions:[`.v`,`.vh`],aliases:[`V`,`v`,`Verilog`,`verilog`],loader:()=>tp(()=>import(`./systemverilog-CblNM3Im.js`),[])}),I1({id:`tcl`,extensions:[`.tcl`],aliases:[`tcl`,`Tcl`,`tcltk`,`TclTk`,`tcl/tk`,`Tcl/Tk`],loader:()=>tp(()=>import(`./tcl-BYnzj-GZ.js`),[])}),I1({id:`twig`,extensions:[`.twig`],aliases:[`Twig`,`twig`],mimetypes:[`text/x-twig`],loader:()=>tp(()=>import(`./twig-DiGWiEtp.js`),[])}),I1({id:`typescript`,extensions:[`.ts`,`.tsx`,`.cts`,`.mts`],aliases:[`TypeScript`,`ts`,`typescript`],mimetypes:[`text/typescript`],loader:()=>tp(()=>import(`./typescript-CUKl0qxN.js`),[])}),I1({id:`typespec`,extensions:[`.tsp`],aliases:[`TypeSpec`],loader:()=>tp(()=>import(`./typespec-a6xMcpXw.js`),[])}),I1({id:`vb`,extensions:[`.vb`],aliases:[`Visual Basic`,`vb`],loader:()=>tp(()=>import(`./vb---51HVMC.js`),[])}),I1({id:`wgsl`,extensions:[`.wgsl`],aliases:[`WebGPU Shading Language`,`WGSL`,`wgsl`],loader:()=>tp(()=>import(`./wgsl-2A8z4pT5.js`),[])}),I1({id:`xml`,extensions:[`.xml`,`.xsd`,`.dtd`,`.ascx`,`.csproj`,`.config`,`.props`,`.targets`,`.wxi`,`.wxl`,`.wxs`,`.xaml`,`.svg`,`.svgz`,`.opf`,`.xslt`,`.xsl`],firstLine:`(\\<\\?xml.*)|(\\<svg)|(\\<\\!doctype\\s+svg)`,aliases:[`XML`,`xml`],mimetypes:[`text/xml`,`application/xml`,`application/xaml+xml`,`application/xml-dtd`],loader:()=>tp(()=>import(`./xml-DMOW2yTg.js`),[])}),I1({id:`yaml`,extensions:[`.yaml`,`.yml`],aliases:[`YAML`,`yaml`,`YML`,`yml`],mimetypes:[`application/x-yaml`,`text/x-yaml`],loader:()=>tp(()=>import(`./yaml-D2q3K0ZL.js`),[])});var Lst=Object.defineProperty,Rst=Object.getOwnPropertyDescriptor,zst=Object.getOwnPropertyNames,Bst=Object.prototype.hasOwnProperty,Vst=(e,t,n,r)=>{if(t&&typeof t==`object`||typeof t==`function`)for(let i of zst(t))!Bst.call(e,i)&&i!==n&&Lst(e,i,{get:()=>t[i],enumerable:!(r=Rst(t,i))||r.enumerable});return e},Hst=(e,t,n)=>(Vst(e,t,`default`),n&&Vst(n,t,`default`)),L1={};Hst(L1,A1);var R1=class{constructor(e,t,n){this._onDidChange=new L1.Emitter,this._languageId=e,this.setOptions(t),this.setModeConfiguration(n)}get onDidChange(){return this._onDidChange.event}get languageId(){return this._languageId}get modeConfiguration(){return this._modeConfiguration}get diagnosticsOptions(){return this.options}get options(){return this._options}setOptions(e){this._options=e||Object.create(null),this._onDidChange.fire(this)}setDiagnosticsOptions(e){this.setOptions(e)}setModeConfiguration(e){this._modeConfiguration=e||Object.create(null),this._onDidChange.fire(this)}},z1={validate:!0,lint:{compatibleVendorPrefixes:`ignore`,vendorPrefix:`warning`,duplicateProperties:`warning`,emptyRules:`warning`,importStatement:`ignore`,boxModel:`ignore`,universalSelector:`ignore`,zeroUnits:`ignore`,fontFaceProperties:`warning`,hexColorLength:`error`,argumentsInColorFunction:`error`,unknownProperties:`warning`,ieHack:`ignore`,unknownVendorSpecificProperties:`ignore`,propertyIgnoredDueToDisplay:`warning`,important:`ignore`,float:`ignore`,idSelector:`ignore`},data:{useDefaultDataProvider:!0},format:{newlineBetweenSelectors:!0,newlineBetweenRules:!0,spaceAroundSelectorSeparator:!1,braceStyle:`collapse`,maxPreserveNewLines:void 0,preserveNewLines:!0}},B1={completionItems:!0,hovers:!0,documentSymbols:!0,definitions:!0,references:!0,documentHighlights:!0,rename:!0,colors:!0,foldingRanges:!0,diagnostics:!0,selectionRanges:!0,documentFormattingEdits:!0,documentRangeFormattingEdits:!0},Ust=new R1(`css`,z1,B1),Wst=new R1(`scss`,z1,B1),Gst=new R1(`less`,z1,B1);L1.languages.css={cssDefaults:Ust,lessDefaults:Gst,scssDefaults:Wst};function V1(){return tp(()=>import(`./cssMode-DdlczEni.js`),[])}L1.languages.onLanguage(`less`,()=>{V1().then(e=>e.setupMode(Gst))}),L1.languages.onLanguage(`scss`,()=>{V1().then(e=>e.setupMode(Wst))}),L1.languages.onLanguage(`css`,()=>{V1().then(e=>e.setupMode(Ust))});var Kst=Object.defineProperty,qst=Object.getOwnPropertyDescriptor,Jst=Object.getOwnPropertyNames,Yst=Object.prototype.hasOwnProperty,Xst=(e,t,n,r)=>{if(t&&typeof t==`object`||typeof t==`function`)for(let i of Jst(t))!Yst.call(e,i)&&i!==n&&Kst(e,i,{get:()=>t[i],enumerable:!(r=qst(t,i))||r.enumerable});return e},Zst=(e,t,n)=>(Xst(e,t,`default`),n&&Xst(n,t,`default`)),H1={};Zst(H1,A1);var Qst=class{constructor(e,t,n){this._onDidChange=new H1.Emitter,this._languageId=e,this.setOptions(t),this.setModeConfiguration(n)}get onDidChange(){return this._onDidChange.event}get languageId(){return this._languageId}get options(){return this._options}get modeConfiguration(){return this._modeConfiguration}setOptions(e){this._options=e||Object.create(null),this._onDidChange.fire(this)}setModeConfiguration(e){this._modeConfiguration=e||Object.create(null),this._onDidChange.fire(this)}},U1={format:{tabSize:4,insertSpaces:!1,wrapLineLength:120,unformatted:`default": "a, abbr, acronym, b, bdo, big, br, button, cite, code, dfn, em, i, img, input, kbd, label, map, object, q, samp, select, small, span, strong, sub, sup, textarea, tt, var`,contentUnformatted:`pre`,indentInnerHtml:!1,preserveNewLines:!0,maxPreserveNewLines:void 0,indentHandlebars:!1,endWithNewline:!1,extraLiners:`head, body, /html`,wrapAttributes:`auto`},suggest:{},data:{useDefaultDataProvider:!0}};function W1(e){return{completionItems:!0,hovers:!0,documentSymbols:!0,links:!0,documentHighlights:!0,rename:!0,colors:!0,foldingRanges:!0,selectionRanges:!0,diagnostics:e===G1,documentFormattingEdits:e===G1,documentRangeFormattingEdits:e===G1}}var G1=`html`,$st=`handlebars`,ect=`razor`,tct=K1(G1,U1,W1(G1)),nct=tct.defaults,rct=K1($st,U1,W1($st)),ict=rct.defaults,act=K1(ect,U1,W1(ect)),oct=act.defaults;H1.languages.html={htmlDefaults:nct,razorDefaults:oct,handlebarDefaults:ict,htmlLanguageService:tct,handlebarLanguageService:rct,razorLanguageService:act,registerHTMLLanguageService:K1};function sct(){return tp(()=>import(`./htmlMode-D65_fKu-.js`),[])}function K1(e,t=U1,n=W1(e)){let r=new Qst(e,t,n),i,a=H1.languages.onLanguage(e,async()=>{i=(await sct()).setupMode(r)});return{defaults:r,dispose(){a.dispose(),i?.dispose(),i=void 0}}}var cct=Object.defineProperty,lct=Object.getOwnPropertyDescriptor,uct=Object.getOwnPropertyNames,dct=Object.prototype.hasOwnProperty,fct=(e,t,n,r)=>{if(t&&typeof t==`object`||typeof t==`function`)for(let i of uct(t))!dct.call(e,i)&&i!==n&&cct(e,i,{get:()=>t[i],enumerable:!(r=lct(t,i))||r.enumerable});return e},pct=(e,t,n)=>(fct(e,t,`default`),n&&fct(n,t,`default`)),q1={};pct(q1,A1);var mct=new class{constructor(e,t,n){this._onDidChange=new q1.Emitter,this._languageId=e,this.setDiagnosticsOptions(t),this.setModeConfiguration(n)}get onDidChange(){return this._onDidChange.event}get languageId(){return this._languageId}get modeConfiguration(){return this._modeConfiguration}get diagnosticsOptions(){return this._diagnosticsOptions}setDiagnosticsOptions(e){this._diagnosticsOptions=e||Object.create(null),this._onDidChange.fire(this)}setModeConfiguration(e){this._modeConfiguration=e||Object.create(null),this._onDidChange.fire(this)}}(`json`,{validate:!0,allowComments:!0,schemas:[],enableSchemaRequest:!1,schemaRequest:`warning`,schemaValidation:`warning`,comments:`error`,trailingCommas:`error`},{documentFormattingEdits:!0,documentRangeFormattingEdits:!0,completionItems:!0,hovers:!0,documentSymbols:!0,tokens:!0,colors:!0,foldingRanges:!0,diagnostics:!0,selectionRanges:!0}),hct=()=>gct().then(e=>e.getWorker());q1.languages.json={jsonDefaults:mct,getWorker:hct};function gct(){return tp(()=>import(`./jsonMode-bqHogKpM.js`),[])}q1.languages.register({id:`json`,extensions:[`.json`,`.bowerrc`,`.jshintrc`,`.jscsrc`,`.eslintrc`,`.babelrc`,`.har`],aliases:[`JSON`,`json`],mimetypes:[`application/json`]}),q1.languages.onLanguage(`json`,()=>{gct().then(e=>e.setupMode(mct))});var _ct=Object.defineProperty,vct=Object.getOwnPropertyDescriptor,yct=Object.getOwnPropertyNames,bct=Object.prototype.hasOwnProperty,xct=(e,t,n,r)=>{if(t&&typeof t==`object`||typeof t==`function`)for(let i of yct(t))!bct.call(e,i)&&i!==n&&_ct(e,i,{get:()=>t[i],enumerable:!(r=vct(t,i))||r.enumerable});return e},Sct=(e,t,n)=>(xct(e,t,`default`),n&&xct(n,t,`default`)),Cct=`5.4.5`,J1={};Sct(J1,A1);var wct=(e=>(e[e.None=0]=`None`,e[e.CommonJS=1]=`CommonJS`,e[e.AMD=2]=`AMD`,e[e.UMD=3]=`UMD`,e[e.System=4]=`System`,e[e.ES2015=5]=`ES2015`,e[e.ESNext=99]=`ESNext`,e))(wct||{}),Tct=(e=>(e[e.None=0]=`None`,e[e.Preserve=1]=`Preserve`,e[e.React=2]=`React`,e[e.ReactNative=3]=`ReactNative`,e[e.ReactJSX=4]=`ReactJSX`,e[e.ReactJSXDev=5]=`ReactJSXDev`,e))(Tct||{}),Ect=(e=>(e[e.CarriageReturnLineFeed=0]=`CarriageReturnLineFeed`,e[e.LineFeed=1]=`LineFeed`,e))(Ect||{}),Dct=(e=>(e[e.ES3=0]=`ES3`,e[e.ES5=1]=`ES5`,e[e.ES2015=2]=`ES2015`,e[e.ES2016=3]=`ES2016`,e[e.ES2017=4]=`ES2017`,e[e.ES2018=5]=`ES2018`,e[e.ES2019=6]=`ES2019`,e[e.ES2020=7]=`ES2020`,e[e.ESNext=99]=`ESNext`,e[e.JSON=100]=`JSON`,e[e.Latest=99]=`Latest`,e))(Dct||{}),Oct=(e=>(e[e.Classic=1]=`Classic`,e[e.NodeJs=2]=`NodeJs`,e))(Oct||{}),kct=class{constructor(e,t,n,r,i){this._onDidChange=new J1.Emitter,this._onDidExtraLibsChange=new J1.Emitter,this._extraLibs=Object.create(null),this._removedExtraLibs=Object.create(null),this._eagerModelSync=!1,this.setCompilerOptions(e),this.setDiagnosticsOptions(t),this.setWorkerOptions(n),this.setInlayHintsOptions(r),this.setModeConfiguration(i),this._onDidExtraLibsChangeTimeout=-1}get onDidChange(){return this._onDidChange.event}get onDidExtraLibsChange(){return this._onDidExtraLibsChange.event}get modeConfiguration(){return this._modeConfiguration}get workerOptions(){return this._workerOptions}get inlayHintsOptions(){return this._inlayHintsOptions}getExtraLibs(){return this._extraLibs}addExtraLib(e,t){let n;if(n=t===void 0?`ts:extralib-${Math.random().toString(36).substring(2,15)}`:t,this._extraLibs[n]&&this._extraLibs[n].content===e)return{dispose:()=>{}};let r=1;return this._removedExtraLibs[n]&&(r=this._removedExtraLibs[n]+1),this._extraLibs[n]&&(r=this._extraLibs[n].version+1),this._extraLibs[n]={content:e,version:r},this._fireOnDidExtraLibsChangeSoon(),{dispose:()=>{let e=this._extraLibs[n];e&&e.version===r&&(delete this._extraLibs[n],this._removedExtraLibs[n]=r,this._fireOnDidExtraLibsChangeSoon())}}}setExtraLibs(e){for(let e in this._extraLibs)this._removedExtraLibs[e]=this._extraLibs[e].version;if(this._extraLibs=Object.create(null),e&&e.length>0)for(let t of e){let e=t.filePath||`ts:extralib-${Math.random().toString(36).substring(2,15)}`,n=t.content,r=1;this._removedExtraLibs[e]&&(r=this._removedExtraLibs[e]+1),this._extraLibs[e]={content:n,version:r}}this._fireOnDidExtraLibsChangeSoon()}_fireOnDidExtraLibsChangeSoon(){this._onDidExtraLibsChangeTimeout===-1&&(this._onDidExtraLibsChangeTimeout=window.setTimeout(()=>{this._onDidExtraLibsChangeTimeout=-1,this._onDidExtraLibsChange.fire(void 0)},0))}getCompilerOptions(){return this._compilerOptions}setCompilerOptions(e){this._compilerOptions=e||Object.create(null),this._onDidChange.fire(void 0)}getDiagnosticsOptions(){return this._diagnosticsOptions}setDiagnosticsOptions(e){this._diagnosticsOptions=e||Object.create(null),this._onDidChange.fire(void 0)}setWorkerOptions(e){this._workerOptions=e||Object.create(null),this._onDidChange.fire(void 0)}setInlayHintsOptions(e){this._inlayHintsOptions=e||Object.create(null),this._onDidChange.fire(void 0)}setMaximumWorkerIdleTime(e){}setEagerModelSync(e){this._eagerModelSync=e}getEagerModelSync(){return this._eagerModelSync}setModeConfiguration(e){this._modeConfiguration=e||Object.create(null),this._onDidChange.fire(void 0)}},Act=Cct,jct={completionItems:!0,hovers:!0,documentSymbols:!0,definitions:!0,references:!0,documentHighlights:!0,rename:!0,diagnostics:!0,documentRangeFormattingEdits:!0,signatureHelp:!0,onTypeFormattingEdits:!0,codeActions:!0,inlayHints:!0},Y1=new kct({allowNonTsExtensions:!0,target:99},{noSemanticValidation:!1,noSyntaxValidation:!1,onlyVisible:!1},{},{},jct),Mct=new kct({allowNonTsExtensions:!0,allowJs:!0,target:99},{noSemanticValidation:!0,noSyntaxValidation:!1,onlyVisible:!1},{},{},jct),Nct=()=>X1().then(e=>e.getTypeScriptWorker()),Pct=()=>X1().then(e=>e.getJavaScriptWorker());J1.languages.typescript={ModuleKind:wct,JsxEmit:Tct,NewLineKind:Ect,ScriptTarget:Dct,ModuleResolutionKind:Oct,typescriptVersion:Act,typescriptDefaults:Y1,javascriptDefaults:Mct,getTypeScriptWorker:Nct,getJavaScriptWorker:Pct};function X1(){return tp(()=>import(`./tsMode-BkM4CkKr.js`),[])}J1.languages.onLanguage(`typescript`,()=>X1().then(e=>e.setupTypeScript(Y1))),J1.languages.onLanguage(`javascript`,()=>X1().then(e=>e.setupJavaScript(Mct)));var Fct=class extends MP{constructor(){super({id:`diffEditor.toggleCollapseUnchangedRegions`,title:IT(`toggleCollapseUnchangedRegions`,`Toggle Collapse Unchanged Regions`),icon:W.map,toggled:Y.has(`config.diffEditor.hideUnchangedRegions.enabled`),precondition:Y.has(`isInDiffEditor`),menu:{when:Y.has(`isInDiffEditor`),id:EP.EditorTitle,order:22,group:`navigation`}})}run(e,...t){let n=e.get(PF),r=!n.getValue(`diffEditor.hideUnchangedRegions.enabled`);n.updateValue(`diffEditor.hideUnchangedRegions.enabled`,r)}},Ict=class extends MP{constructor(){super({id:`diffEditor.toggleShowMovedCodeBlocks`,title:IT(`toggleShowMovedCodeBlocks`,`Toggle Show Moved Code Blocks`),precondition:Y.has(`isInDiffEditor`)})}run(e,...t){let n=e.get(PF),r=!n.getValue(`diffEditor.experimental.showMoves`);n.updateValue(`diffEditor.experimental.showMoves`,r)}},Lct=class extends MP{constructor(){super({id:`diffEditor.toggleUseInlineViewWhenSpaceIsLimited`,title:IT(`toggleUseInlineViewWhenSpaceIsLimited`,`Toggle Use Inline View When Space Is Limited`),precondition:Y.has(`isInDiffEditor`)})}run(e,...t){let n=e.get(PF),r=!n.getValue(`diffEditor.useInlineViewWhenSpaceIsLimited`);n.updateValue(`diffEditor.useInlineViewWhenSpaceIsLimited`,r)}},Z1=IT(`diffEditor`,`Diff Editor`),Rct=class extends GP{constructor(){super({id:`diffEditor.switchSide`,title:IT(`switchSide`,`Switch Side`),icon:W.arrowSwap,precondition:Y.has(`isInDiffEditor`),f1:!0,category:Z1})}runEditorCommand(e,t,n){let r=e0(e);if(r instanceof u1){if(n&&n.dryRun)return{destinationSelection:r.mapToOtherSide().destinationSelection};r.switchSide()}}},zct=class extends GP{constructor(){super({id:`diffEditor.exitCompareMove`,title:IT(`exitCompareMove`,`Exit Compare Move`),icon:W.close,precondition:$.comparingMovedCode,f1:!1,category:Z1,keybinding:{weight:1e4,primary:9}})}runEditorCommand(e,t,...n){let r=e0(e);r instanceof u1&&r.exitCompareMove()}},Bct=class extends GP{constructor(){super({id:`diffEditor.collapseAllUnchangedRegions`,title:IT(`collapseAllUnchangedRegions`,`Collapse All Unchanged Regions`),icon:W.fold,precondition:Y.has(`isInDiffEditor`),f1:!0,category:Z1})}runEditorCommand(e,t,...n){let r=e0(e);r instanceof u1&&r.collapseAllUnchangedRegions()}},Vct=class extends GP{constructor(){super({id:`diffEditor.showAllUnchangedRegions`,title:IT(`showAllUnchangedRegions`,`Show All Unchanged Regions`),icon:W.unfold,precondition:Y.has(`isInDiffEditor`),f1:!0,category:Z1})}runEditorCommand(e,t,...n){let r=e0(e);r instanceof u1&&r.showAllUnchangedRegions()}},Q1=class extends MP{constructor(){super({id:`diffEditor.revert`,title:IT(`revert`,`Revert`),f1:!1,category:Z1})}run(e,t){let n=Wct(e,t.originalUri,t.modifiedUri);n instanceof u1&&n.revertRangeMappings(t.mapping.innerChanges??[])}},Hct=IT(`accessibleDiffViewer`,`Accessible Diff Viewer`),$1=class e extends MP{static#e=this.id=`editor.action.accessibleDiffViewer.next`;constructor(){super({id:e.id,title:IT(`editor.action.accessibleDiffViewer.next`,`Go to Next Difference`),category:Hct,precondition:Y.has(`isInDiffEditor`),keybinding:{primary:65,weight:100},f1:!0})}run(e){e0(e)?.accessibleDiffViewerNext()}},Uct=class e extends MP{static#e=this.id=`editor.action.accessibleDiffViewer.prev`;constructor(){super({id:e.id,title:IT(`editor.action.accessibleDiffViewer.prev`,`Go to Previous Difference`),category:Hct,precondition:Y.has(`isInDiffEditor`),keybinding:{primary:1089,weight:100},f1:!0})}run(e){e0(e)?.accessibleDiffViewerPrev()}};function Wct(e,t,n){return e.get(kN).listDiffEditors().find(e=>{let r=e.getModifiedEditor(),i=e.getOriginalEditor();return r&&r.getModel()?.uri.toString()===n.toString()&&i&&i.getModel()?.uri.toString()===t.toString()})||null}function e0(e){let t=e.get(kN).listDiffEditors(),n=FM();if(n){for(let e of t)if(Gct(e.getContainerDomNode(),n))return e}return null}function Gct(e,t){let n=t;for(;n;){if(n===e)return!0;n=n.parentElement}return!1}NP(Fct),NP(Ict),NP(Lct),kP.appendMenuItem(EP.EditorTitle,{command:{id:new Lct().desc.id,title:F(`useInlineViewWhenSpaceIsLimited`,`Use Inline View When Space Is Limited`),toggled:Y.has(`config.diffEditor.useInlineViewWhenSpaceIsLimited`),precondition:Y.has(`isInDiffEditor`)},order:11,group:`1_diff`,when:Y.and($.diffEditorRenderSideBySideInlineBreakpointReached,Y.has(`isInDiffEditor`))}),kP.appendMenuItem(EP.EditorTitle,{command:{id:new Ict().desc.id,title:F(`showMoves`,`Show Moved Code Blocks`),icon:W.move,toggled:YN.create(`config.diffEditor.experimental.showMoves`,!0),precondition:Y.has(`isInDiffEditor`)},order:10,group:`1_diff`,when:Y.has(`isInDiffEditor`)}),NP(Q1);for(let e of[{icon:W.arrowRight,key:$.diffEditorInlineMode.toNegated()},{icon:W.discard,key:$.diffEditorInlineMode}])kP.appendMenuItem(EP.DiffEditorHunkToolbar,{command:{id:new Q1().desc.id,title:F(`revertHunk`,`Revert Block`),icon:e.icon},when:Y.and($.diffEditorModifiedWritable,e.key),order:5,group:`primary`}),kP.appendMenuItem(EP.DiffEditorSelectionToolbar,{command:{id:new Q1().desc.id,title:F(`revertSelection`,`Revert Selection`),icon:e.icon},when:Y.and($.diffEditorModifiedWritable,e.key),order:5,group:`primary`});NP(Rct),NP(zct),NP(Bct),NP(Vct),kP.appendMenuItem(EP.EditorTitle,{command:{id:$1.id,title:F(`Open Accessible Diff Viewer`,`Open Accessible Diff Viewer`),precondition:Y.has(`isInDiffEditor`)},order:10,group:`2_diff`,when:Y.and($.accessibleDiffViewerVisible.negate(),Y.has(`isInDiffEditor`))}),BN.registerCommandAlias(`editor.action.diffReview.next`,$1.id),NP($1),BN.registerCommandAlias(`editor.action.diffReview.prev`,Uct.id),NP(Uct);var Kct=function(e,t,n,r){var i=arguments.length,a=i<3?t:r===null?r=Object.getOwnPropertyDescriptor(t,n):r,o;if(typeof Reflect==`object`&&typeof Reflect.decorate==`function`)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},qct=function(e,t){return function(n,r){t(n,r,e)}},t0;const n0=new lP(`selectionAnchorSet`,!1);var r0=class{static#e=t0=this;static#t=this.ID=`editor.contrib.selectionAnchorController`;static get(e){return e.getContribution(t0.ID)}constructor(e,t){this.editor=e,this.selectionAnchorSetContextKey=n0.bindTo(t),this.modelChangeListener=e.onDidChangeModel(()=>this.selectionAnchorSetContextKey.reset())}setSelectionAnchor(){if(this.editor.hasModel()){let e=this.editor.getPosition();this.editor.changeDecorations(t=>{this.decorationId&&t.removeDecoration(this.decorationId),this.decorationId=t.addDecoration(_O.fromPositions(e,e),{description:`selection-anchor`,stickiness:1,hoverMessage:new vH().appendText(F(`selectionAnchor`,`Selection Anchor`)),className:`selection-anchor`})}),this.selectionAnchorSetContextKey.set(!!this.decorationId),YH(F(`anchorSet`,`Anchor set at {0}:{1}`,e.lineNumber,e.column))}}goToSelectionAnchor(){if(this.editor.hasModel()&&this.decorationId){let e=this.editor.getModel().getDecorationRange(this.decorationId);e&&this.editor.setPosition(e.getStartPosition())}}selectFromAnchorToCursor(){if(this.editor.hasModel()&&this.decorationId){let e=this.editor.getModel().getDecorationRange(this.decorationId);if(e){let t=this.editor.getPosition();this.editor.setSelection(_O.fromPositions(e.getStartPosition(),t)),this.cancelSelectionAnchor()}}}cancelSelectionAnchor(){if(this.decorationId){let e=this.decorationId;this.editor.changeDecorations(t=>{t.removeDecoration(e),this.decorationId=void 0}),this.selectionAnchorSetContextKey.set(!1)}}dispose(){this.cancelSelectionAnchor(),this.modelChangeListener.dispose()}};r0=t0=Kct([qct(1,uP)],r0);var Jct=class extends UP{constructor(){super({id:`editor.action.setSelectionAnchor`,label:F(`setSelectionAnchor`,`Set Selection Anchor`),alias:`Set Selection Anchor`,precondition:void 0,kbOpts:{kbExpr:$.editorTextFocus,primary:ID(2089,2080),weight:100}})}async run(e,t){r0.get(t)?.setSelectionAnchor()}},Yct=class extends UP{constructor(){super({id:`editor.action.goToSelectionAnchor`,label:F(`goToSelectionAnchor`,`Go to Selection Anchor`),alias:`Go to Selection Anchor`,precondition:n0})}async run(e,t){r0.get(t)?.goToSelectionAnchor()}},Xct=class extends UP{constructor(){super({id:`editor.action.selectFromAnchorToCursor`,label:F(`selectFromAnchorToCursor`,`Select from Anchor to Cursor`),alias:`Select from Anchor to Cursor`,precondition:n0,kbOpts:{kbExpr:$.editorTextFocus,primary:ID(2089,2089),weight:100}})}async run(e,t){r0.get(t)?.selectFromAnchorToCursor()}},Zct=class extends UP{constructor(){super({id:`editor.action.cancelSelectionAnchor`,label:F(`cancelSelectionAnchor`,`Cancel Selection Anchor`),alias:`Cancel Selection Anchor`,precondition:n0,kbOpts:{kbExpr:$.editorTextFocus,primary:9,weight:100}})}async run(e,t){r0.get(t)?.cancelSelectionAnchor()}};YP(r0.ID,r0,4),X(Jct),X(Yct),X(Xct),X(Zct);var Qct=Q(`editorOverviewRuler.bracketMatchForeground`,`#A0A0A0`,F(`overviewRulerBracketMatchForeground`,`Overview ruler marker color for matching brackets.`)),$ct=class extends UP{constructor(){super({id:`editor.action.jumpToBracket`,label:F(`smartSelect.jumpBracket`,`Go to Bracket`),alias:`Go to Bracket`,precondition:void 0,kbOpts:{kbExpr:$.editorTextFocus,primary:3165,weight:100}})}run(e,t){i0.get(t)?.jumpToBracket()}},elt=class extends UP{constructor(){super({id:`editor.action.selectToBracket`,label:F(`smartSelect.selectToBracket`,`Select to Bracket`),alias:`Select to Bracket`,precondition:void 0,metadata:{description:IT(`smartSelect.selectToBracketDescription`,`Select the text inside and including the brackets or curly braces`),args:[{name:`args`,schema:{type:`object`,properties:{selectBrackets:{type:`boolean`,default:!0}}}}]}})}run(e,t,n){let r=!0;n&&n.selectBrackets===!1&&(r=!1),i0.get(t)?.selectToBracket(r)}},tlt=class extends UP{constructor(){super({id:`editor.action.removeBrackets`,label:F(`smartSelect.removeBrackets`,`Remove Brackets`),alias:`Remove Brackets`,precondition:void 0,kbOpts:{kbExpr:$.editorTextFocus,primary:2561,weight:100}})}run(e,t){i0.get(t)?.removeBrackets(this.id)}},nlt=class{constructor(e,t,n){this.position=e,this.brackets=t,this.options=n}},i0=class e extends R{static#e=this.ID=`editor.contrib.bracketMatchingController`;static get(t){return t.getContribution(e.ID)}constructor(e){super(),this._editor=e,this._lastBracketsData=[],this._lastVersionId=0,this._decorations=this._editor.createDecorationsCollection(),this._updateBracketsSoon=this._register(new tj(()=>this._updateBrackets(),50)),this._matchBrackets=this._editor.getOption(72),this._updateBracketsSoon.schedule(),this._register(e.onDidChangeCursorPosition(e=>{this._matchBrackets!==`never`&&this._updateBracketsSoon.schedule()})),this._register(e.onDidChangeModelContent(e=>{this._updateBracketsSoon.schedule()})),this._register(e.onDidChangeModel(e=>{this._lastBracketsData=[],this._updateBracketsSoon.schedule()})),this._register(e.onDidChangeModelLanguageConfiguration(e=>{this._lastBracketsData=[],this._updateBracketsSoon.schedule()})),this._register(e.onDidChangeConfiguration(e=>{e.hasChanged(72)&&(this._matchBrackets=this._editor.getOption(72),this._decorations.clear(),this._lastBracketsData=[],this._lastVersionId=0,this._updateBracketsSoon.schedule())})),this._register(e.onDidBlurEditorWidget(()=>{this._updateBracketsSoon.schedule()})),this._register(e.onDidFocusEditorWidget(()=>{this._updateBracketsSoon.schedule()}))}jumpToBracket(){if(!this._editor.hasModel())return;let e=this._editor.getModel(),t=this._editor.getSelections().map(t=>{let n=t.getStartPosition(),r=e.bracketPairs.matchBracket(n),i=null;if(r)r[0].containsPosition(n)&&!r[1].containsPosition(n)?i=r[1].getStartPosition():r[1].containsPosition(n)&&(i=r[0].getStartPosition());else{let t=e.bracketPairs.findEnclosingBrackets(n);if(t)i=t[1].getStartPosition();else{let t=e.bracketPairs.findNextBracket(n);t&&t.range&&(i=t.range.getStartPosition())}}return i?new _O(i.lineNumber,i.column,i.lineNumber,i.column):new _O(n.lineNumber,n.column,n.lineNumber,n.column)});this._editor.setSelections(t),this._editor.revealRange(t[0])}selectToBracket(e){if(!this._editor.hasModel())return;let t=this._editor.getModel(),n=[];this._editor.getSelections().forEach(r=>{let i=r.getStartPosition(),a=t.bracketPairs.matchBracket(i);if(!a&&(a=t.bracketPairs.findEnclosingBrackets(i),!a)){let e=t.bracketPairs.findNextBracket(i);e&&e.range&&(a=t.bracketPairs.matchBracket(e.range.getStartPosition()))}let o=null,s=null;if(a){a.sort(H.compareRangesUsingStarts);let[t,n]=a;if(o=e?t.getStartPosition():t.getEndPosition(),s=e?n.getEndPosition():n.getStartPosition(),n.containsPosition(i)){let e=o;o=s,s=e}}o&&s&&n.push(new _O(o.lineNumber,o.column,s.lineNumber,s.column))}),n.length>0&&(this._editor.setSelections(n),this._editor.revealRange(n[0]))}removeBrackets(e){if(!this._editor.hasModel())return;let t=this._editor.getModel();this._editor.getSelections().forEach(n=>{let r=n.getPosition(),i=t.bracketPairs.matchBracket(r);i||=t.bracketPairs.findEnclosingBrackets(r),i&&(this._editor.pushUndoStop(),this._editor.executeEdits(e,[{range:i[0],text:``},{range:i[1],text:``}]),this._editor.pushUndoStop())})}static#t=this._DECORATION_OPTIONS_WITH_OVERVIEW_RULER=vq.register({description:`bracket-match-overview`,stickiness:1,className:`bracket-match`,overviewRuler:{color:DR(Qct),position:VI.Center}});static#n=this._DECORATION_OPTIONS_WITHOUT_OVERVIEW_RULER=vq.register({description:`bracket-match-no-overview`,stickiness:1,className:`bracket-match`});_updateBrackets(){if(this._matchBrackets===`never`)return;this._recomputeBrackets();let e=[],t=0;for(let n of this._lastBracketsData){let r=n.brackets;r&&(e[t++]={range:r[0],options:n.options},e[t++]={range:r[1],options:n.options})}this._decorations.set(e)}_recomputeBrackets(){if(!this._editor.hasModel()||!this._editor.hasWidgetFocus()){this._lastBracketsData=[],this._lastVersionId=0;return}let t=this._editor.getSelections();if(t.length>100){this._lastBracketsData=[],this._lastVersionId=0;return}let n=this._editor.getModel(),r=n.getVersionId(),i=[];this._lastVersionId===r&&(i=this._lastBracketsData);let a=[],o=0;for(let e=0,n=t.length;e<n;e++){let n=t[e];n.isEmpty()&&(a[o++]=n.getStartPosition())}a.length>1&&a.sort(V.compare);let s=[],c=0,l=0,u=i.length;for(let t=0,r=a.length;t<r;t++){let r=a[t];for(;l<u&&i[l].position.isBefore(r);)l++;if(l<u&&i[l].position.equals(r))s[c++]=i[l];else{let t=n.bracketPairs.matchBracket(r,20),i=e._DECORATION_OPTIONS_WITH_OVERVIEW_RULER;!t&&this._matchBrackets===`always`&&(t=n.bracketPairs.findEnclosingBrackets(r,20),i=e._DECORATION_OPTIONS_WITHOUT_OVERVIEW_RULER),s[c++]=new nlt(r,t,i)}}this._lastBracketsData=s,this._lastVersionId=r}};YP(i0.ID,i0,1),X(elt),X($ct),X(tlt),kP.appendMenuItem(EP.MenubarGoMenu,{group:`5_infile_nav`,command:{id:`editor.action.jumpToBracket`,title:F({key:`miGoToBracket`,comment:[`&& denotes a mnemonic`]},`Go to &&Bracket`)},order:2});var rlt=class{constructor(e,t){this._selection=e,this._isMovingLeft=t}getEditOperations(e,t){if(this._selection.startLineNumber!==this._selection.endLineNumber||this._selection.isEmpty())return;let n=this._selection.startLineNumber,r=this._selection.startColumn,i=this._selection.endColumn;if(!(this._isMovingLeft&&r===1)&&!(!this._isMovingLeft&&i===e.getLineMaxColumn(n)))if(this._isMovingLeft){let a=new H(n,r-1,n,r),o=e.getValueInRange(a);t.addEditOperation(a,null),t.addEditOperation(new H(n,i,n,i),o)}else{let a=new H(n,i,n,i+1),o=e.getValueInRange(a);t.addEditOperation(a,null),t.addEditOperation(new H(n,r,n,r),o)}}computeCursorState(e,t){return this._isMovingLeft?new _O(this._selection.startLineNumber,this._selection.startColumn-1,this._selection.endLineNumber,this._selection.endColumn-1):new _O(this._selection.startLineNumber,this._selection.startColumn+1,this._selection.endLineNumber,this._selection.endColumn+1)}},ilt=class extends UP{constructor(e,t){super(t),this.left=e}run(e,t){if(!t.hasModel())return;let n=[],r=t.getSelections();for(let e of r)n.push(new rlt(e,this.left));t.pushUndoStop(),t.executeCommands(this.id,n),t.pushUndoStop()}},alt=class extends ilt{constructor(){super(!0,{id:`editor.action.moveCarretLeftAction`,label:F(`caret.moveLeft`,`Move Selected Text Left`),alias:`Move Selected Text Left`,precondition:$.writable})}},olt=class extends ilt{constructor(){super(!1,{id:`editor.action.moveCarretRightAction`,label:F(`caret.moveRight`,`Move Selected Text Right`),alias:`Move Selected Text Right`,precondition:$.writable})}};X(alt),X(olt),X(class extends UP{constructor(){super({id:`editor.action.transposeLetters`,label:F(`transposeLetters.label`,`Transpose Letters`),alias:`Transpose Letters`,precondition:$.writable,kbOpts:{kbExpr:$.textInputFocus,primary:0,mac:{primary:306},weight:100}})}run(e,t){if(!t.hasModel())return;let n=t.getModel(),r=[],i=t.getSelections();for(let e of i){if(!e.isEmpty())continue;let t=e.startLineNumber,i=e.startColumn,a=n.getLineMaxColumn(t);if(t===1&&(i===1||i===2&&a===2))continue;let o=i===a?e.getPosition():HZ.rightPosition(n,e.getPosition().lineNumber,e.getPosition().column),s=HZ.leftPosition(n,o),c=HZ.leftPosition(n,s),l=n.getValueInRange(H.fromPositions(c,s)),u=n.getValueInRange(H.fromPositions(s,o)),d=H.fromPositions(c,o);r.push(new LZ(d,u+l))}r.length>0&&(t.pushUndoStop(),t.executeCommands(this.id,r),t.pushUndoStop())}});const a0=(function(){if(typeof crypto==`object`&&typeof crypto.randomUUID==`function`)return crypto.randomUUID.bind(crypto);let e;e=typeof crypto==`object`&&typeof crypto.getRandomValues==`function`?crypto.getRandomValues.bind(crypto):function(e){for(let t=0;t<e.length;t++)e[t]=Math.floor(Math.random()*256);return e};let t=new Uint8Array(16),n=[];for(let e=0;e<256;e++)n.push(e.toString(16).padStart(2,`0`));return function(){e(t),t[6]=t[6]&15|64,t[8]=t[8]&63|128;let r=0,i=``;return i+=n[t[r++]],i+=n[t[r++]],i+=n[t[r++]],i+=n[t[r++]],i+=`-`,i+=n[t[r++]],i+=n[t[r++]],i+=`-`,i+=n[t[r++]],i+=n[t[r++]],i+=`-`,i+=n[t[r++]],i+=n[t[r++]],i+=`-`,i+=n[t[r++]],i+=n[t[r++]],i+=n[t[r++]],i+=n[t[r++]],i+=n[t[r++]],i+=n[t[r++]],i}})();function o0(e){return{asString:async()=>e,asFile:()=>void 0,value:typeof e==`string`?e:void 0}}function slt(e,t,n){let r={id:a0(),name:e,uri:t,data:n};return{asString:async()=>``,asFile:()=>r,value:void 0}}var clt=class{constructor(){this._entries=new Map}get size(){let e=0;for(let t of this._entries)e++;return e}has(e){return this._entries.has(this.toKey(e))}matches(e){let t=[...this._entries.keys()];return lE.some(this,([e,t])=>t.asFile())&&t.push(`files`),ult(s0(e),t)}get(e){return this._entries.get(this.toKey(e))?.[0]}append(e,t){let n=this._entries.get(e);n?n.push(t):this._entries.set(this.toKey(e),[t])}replace(e,t){this._entries.set(this.toKey(e),[t])}delete(e){this._entries.delete(this.toKey(e))}*[Symbol.iterator](){for(let[e,t]of this._entries)for(let n of t)yield[e,n]}toKey(e){return s0(e)}};function s0(e){return e.toLowerCase()}function llt(e,t){return ult(s0(e),t.map(s0))}function ult(e,t){if(e===`*/*`)return t.length>0;if(t.includes(e))return!0;let n=e.match(/^([a-z]+)\/([a-z]+|\*)$/i);if(!n)return!1;let[r,i,a]=n;return a===`*`?t.some(e=>e.startsWith(i+`/`)):!1}const c0=Object.freeze({create:e=>Qw(e.map(e=>e.toString())).join(`\r
|
|
3353
3353
|
`),split:e=>e.split(`\r
|
|
3354
3354
|
`),parse:e=>c0.split(e).filter(e=>!e.startsWith(`#`))});var l0=class e{static#e=this.sep=`.`;static#t=this.None=new e(`@@none@@`);static#n=this.Empty=new e(``);constructor(e){this.value=e}equals(e){return this.value===e.value}contains(t){return this.equals(t)||this.value===``||t.value.startsWith(this.value+e.sep)}intersects(e){return this.contains(e)||e.contains(this)}append(...t){return new e((this.value?[this.value,...t]:t).join(e.sep))}};const dlt={EDITORS:`CodeEditors`,FILES:`CodeFiles`};var flt=class{};xP.add({DragAndDropContribution:`workbench.contributions.dragAndDrop`}.DragAndDropContribution,new flt);var plt=class e{static#e=this.INSTANCE=new e;constructor(){}static getInstance(){return e.INSTANCE}hasData(e){return e&&e===this.proto}getData(e){if(this.hasData(e))return this.data}};function mlt(e){let t=new clt;for(let n of e.items){let e=n.type;if(n.kind===`string`){let r=new Promise(e=>n.getAsString(e));t.append(e,o0(r))}else if(n.kind===`file`){let r=n.getAsFile();r&&t.append(e,hlt(r))}}return t}function hlt(e){let t=e.path?sO.parse(e.path):void 0;return slt(e.name,t,async()=>new Uint8Array(await e.arrayBuffer()))}var glt=Object.freeze([dlt.EDITORS,dlt.FILES,yW.RESOURCES,yW.INTERNAL_URI_LIST]);function _lt(e,t=!1){let n=mlt(e),r=n.get(yW.INTERNAL_URI_LIST);if(r)n.replace(WF.uriList,r);else if(t||!n.has(WF.uriList)){let t=[];for(let n of e.items){let e=n.getAsFile();if(e){let n=e.path;try{n?t.push(sO.file(n).toString()):t.push(sO.parse(e.name,!0).toString())}catch{}}}t.length&&n.replace(WF.uriList,o0(c0.create(t)))}for(let e of glt)n.delete(e);return n}var u0=function(e,t,n,r){var i=arguments.length,a=i<3?t:r===null?r=Object.getOwnPropertyDescriptor(t,n):r,o;if(typeof Reflect==`object`&&typeof Reflect.decorate==`function`)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},d0=function(e,t){return function(n,r){t(n,r,e)}},f0=class{async provideDocumentPasteEdits(e,t,n,r,i){let a=await this.getEdit(n,i);if(a)return{edits:[{insertText:a.insertText,title:a.title,kind:a.kind,handledMimeType:a.handledMimeType,yieldTo:a.yieldTo}],dispose(){}}}async provideDocumentDropEdits(e,t,n,r){let i=await this.getEdit(n,r);if(i)return{edits:[{insertText:i.insertText,title:i.title,kind:i.kind,handledMimeType:i.handledMimeType,yieldTo:i.yieldTo}],dispose(){}}}},p0=class e extends f0{constructor(){super(...arguments),this.kind=e.kind,this.dropMimeTypes=[WF.text],this.pasteMimeTypes=[WF.text]}static#e=this.id=`text`;static#t=this.kind=new l0(`text.plain`);async getEdit(e,t){let n=e.get(WF.text);if(!n||e.has(WF.uriList))return;let r=await n.asString();return{handledMimeType:WF.text,title:F(`text.label`,`Insert Plain Text`),insertText:r,kind:this.kind}}},vlt=class extends f0{constructor(){super(...arguments),this.kind=new l0(`uri.absolute`),this.dropMimeTypes=[WF.uriList],this.pasteMimeTypes=[WF.uriList]}async getEdit(e,t){let n=await blt(e);if(!n.length||t.isCancellationRequested)return;let r=0,i=n.map(({uri:e,originalText:t})=>e.scheme===qj.file?e.fsPath:(r++,t)).join(` `),a;return a=r>0?n.length>1?F(`defaultDropProvider.uriList.uris`,`Insert Uris`):F(`defaultDropProvider.uriList.uri`,`Insert Uri`):n.length>1?F(`defaultDropProvider.uriList.paths`,`Insert Paths`):F(`defaultDropProvider.uriList.path`,`Insert Path`),{handledMimeType:WF.uriList,insertText:i,title:a,kind:this.kind}}},m0=class extends f0{constructor(e){super(),this._workspaceContextService=e,this.kind=new l0(`uri.relative`),this.dropMimeTypes=[WF.uriList],this.pasteMimeTypes=[WF.uriList]}async getEdit(e,t){let n=await blt(e);if(!n.length||t.isCancellationRequested)return;let r=Jw(n.map(({uri:e})=>{let t=this._workspaceContextService.getWorkspaceFolder(e);return t?VYe(t.uri,e):void 0}));if(r.length)return{handledMimeType:WF.uriList,insertText:r.join(` `),title:n.length>1?F(`defaultDropProvider.uriList.relativePaths`,`Insert Relative Paths`):F(`defaultDropProvider.uriList.relativePath`,`Insert Relative Path`),kind:this.kind}}};m0=u0([d0(0,DU)],m0);var ylt=class{constructor(){this.kind=new l0(`html`),this.pasteMimeTypes=[`text/html`],this._yieldTo=[{mimeType:WF.text}]}async provideDocumentPasteEdits(e,t,n,r,i){if(r.triggerKind!==OO.PasteAs&&!r.only?.contains(this.kind))return;let a=await n.get(`text/html`)?.asString();if(!(!a||i.isCancellationRequested))return{dispose(){},edits:[{insertText:a,yieldTo:this._yieldTo,title:F(`pasteHtmlLabel`,`Insert HTML`),kind:this.kind}]}}};async function blt(e){let t=e.get(WF.uriList);if(!t)return[];let n=await t.asString(),r=[];for(let e of c0.parse(n))try{r.push({uri:sO.parse(e),originalText:e})}catch{}return r}var h0=class extends R{constructor(e,t){super(),this._register(e.documentDropEditProvider.register(`*`,new p0)),this._register(e.documentDropEditProvider.register(`*`,new vlt)),this._register(e.documentDropEditProvider.register(`*`,new m0(t)))}};h0=u0([d0(0,hR),d0(1,DU)],h0);var g0=class extends R{constructor(e,t){super(),this._register(e.documentPasteEditProvider.register(`*`,new p0)),this._register(e.documentPasteEditProvider.register(`*`,new vlt)),this._register(e.documentPasteEditProvider.register(`*`,new m0(t))),this._register(e.documentPasteEditProvider.register(`*`,new ylt))}};g0=u0([d0(0,hR),d0(1,DU)],g0);var xlt=class e{constructor(){this.value=``,this.pos=0}static#e=this._table={36:0,58:1,44:2,123:3,125:4,92:5,47:6,124:7,43:11,45:12,63:13};static isDigitCharacter(e){return e>=48&&e<=57}static isVariableCharacter(e){return e===95||e>=97&&e<=122||e>=65&&e<=90}text(e){this.value=e,this.pos=0}tokenText(e){return this.value.substr(e.pos,e.len)}next(){if(this.pos>=this.value.length)return{type:14,pos:this.pos,len:0};let t=this.pos,n=0,r=this.value.charCodeAt(t),i;if(i=e._table[r],typeof i==`number`)return this.pos+=1,{type:i,pos:t,len:1};if(e.isDigitCharacter(r)){i=8;do n+=1,r=this.value.charCodeAt(t+n);while(e.isDigitCharacter(r));return this.pos+=n,{type:i,pos:t,len:n}}if(e.isVariableCharacter(r)){i=9;do r=this.value.charCodeAt(t+ ++n);while(e.isVariableCharacter(r)||e.isDigitCharacter(r));return this.pos+=n,{type:i,pos:t,len:n}}i=10;do n+=1,r=this.value.charCodeAt(t+n);while(!isNaN(r)&&e._table[r]===void 0&&!e.isDigitCharacter(r)&&!e.isVariableCharacter(r));return this.pos+=n,{type:i,pos:t,len:n}}},_0=class{constructor(){this._children=[]}appendChild(e){return e instanceof v0&&this._children[this._children.length-1]instanceof v0?this._children[this._children.length-1].value+=e.value:(e.parent=this,this._children.push(e)),this}replace(e,t){let{parent:n}=e,r=n.children.indexOf(e),i=n.children.slice(0);i.splice(r,1,...t),n._children=i,(function e(t,n){for(let r of t)r.parent=n,e(r.children,r)})(t,n)}get children(){return this._children}get rightMostDescendant(){return this._children.length>0?this._children[this._children.length-1].rightMostDescendant:this}get snippet(){let e=this;for(;;){if(!e)return;if(e instanceof C0)return e;e=e.parent}}toString(){return this.children.reduce((e,t)=>e+t.toString(),``)}len(){return 0}},v0=class e extends _0{constructor(e){super(),this.value=e}toString(){return this.value}len(){return this.value.length}clone(){return new e(this.value)}},Slt=class extends _0{},y0=class e extends Slt{static compareByIndex(e,t){return e.index===t.index?0:e.isFinalTabstop?1:t.isFinalTabstop||e.index<t.index?-1:e.index>t.index?1:0}constructor(e){super(),this.index=e}get isFinalTabstop(){return this.index===0}get choice(){return this._children.length===1&&this._children[0]instanceof b0?this._children[0]:void 0}clone(){let t=new e(this.index);return this.transform&&(t.transform=this.transform.clone()),t._children=this.children.map(e=>e.clone()),t}},b0=class e extends _0{constructor(){super(...arguments),this.options=[]}appendChild(e){return e instanceof v0&&(e.parent=this,this.options.push(e)),this}toString(){return this.options[0].value}len(){return this.options[0].len()}clone(){let t=new e;return this.options.forEach(t.appendChild,t),t}},Clt=class e extends _0{constructor(){super(...arguments),this.regexp=RegExp(``)}resolve(e){let t=this,n=!1,r=e.replace(this.regexp,function(){return n=!0,t._replace(Array.prototype.slice.call(arguments,0,-2))});return!n&&this._children.some(e=>e instanceof x0&&!!e.elseValue)&&(r=this._replace([])),r}_replace(e){let t=``;for(let n of this._children)if(n instanceof x0){let r=e[n.index]||``;r=n.resolve(r),t+=r}else t+=n.toString();return t}toString(){return``}clone(){let t=new e;return t.regexp=new RegExp(this.regexp.source,(this.regexp.ignoreCase?`i`:``)+(this.regexp.global?`g`:``)),t._children=this.children.map(e=>e.clone()),t}},x0=class e extends _0{constructor(e,t,n,r){super(),this.index=e,this.shorthandName=t,this.ifValue=n,this.elseValue=r}resolve(e){return this.shorthandName===`upcase`?e?e.toLocaleUpperCase():``:this.shorthandName===`downcase`?e?e.toLocaleLowerCase():``:this.shorthandName===`capitalize`?e?e[0].toLocaleUpperCase()+e.substr(1):``:this.shorthandName===`pascalcase`?e?this._toPascalCase(e):``:this.shorthandName===`camelcase`?e?this._toCamelCase(e):``:e&&typeof this.ifValue==`string`?this.ifValue:!e&&typeof this.elseValue==`string`?this.elseValue:e||``}_toPascalCase(e){let t=e.match(/[a-z0-9]+/gi);return t?t.map(e=>e.charAt(0).toUpperCase()+e.substr(1)).join(``):e}_toCamelCase(e){let t=e.match(/[a-z0-9]+/gi);return t?t.map((e,t)=>t===0?e.charAt(0).toLowerCase()+e.substr(1):e.charAt(0).toUpperCase()+e.substr(1)).join(``):e}clone(){return new e(this.index,this.shorthandName,this.ifValue,this.elseValue)}},S0=class e extends Slt{constructor(e){super(),this.name=e}resolve(e){let t=e.resolve(this);return this.transform&&(t=this.transform.resolve(t||``)),t===void 0?!1:(this._children=[new v0(t)],!0)}clone(){let t=new e(this.name);return this.transform&&(t.transform=this.transform.clone()),t._children=this.children.map(e=>e.clone()),t}};function wlt(e,t){let n=[...e];for(;n.length>0;){let e=n.shift();if(!t(e))break;n.unshift(...e.children)}}var C0=class e extends _0{get placeholderInfo(){if(!this._placeholders){let e=[],t;this.walk(function(n){return n instanceof y0&&(e.push(n),t=!t||t.index<n.index?n:t),!0}),this._placeholders={all:e,last:t}}return this._placeholders}get placeholders(){let{all:e}=this.placeholderInfo;return e}offset(e){let t=0,n=!1;return this.walk(r=>r===e?(n=!0,!1):(t+=r.len(),!0)),n?t:-1}fullLen(e){let t=0;return wlt([e],e=>(t+=e.len(),!0)),t}enclosingPlaceholders(e){let t=[],{parent:n}=e;for(;n;)n instanceof y0&&t.push(n),n=n.parent;return t}resolveVariables(e){return this.walk(t=>(t instanceof S0&&t.resolve(e)&&(this._placeholders=void 0),!0)),this}appendChild(e){return this._placeholders=void 0,super.appendChild(e)}replace(e,t){return this._placeholders=void 0,super.replace(e,t)}clone(){let t=new e;return this._children=this.children.map(e=>e.clone()),t}walk(e){wlt(this.children,e)}},w0=class{constructor(){this._scanner=new xlt,this._token={type:14,pos:0,len:0}}static escape(e){return e.replace(/\$|}|\\/g,`\\$&`)}static guessNeedsClipboard(e){return/\${?CLIPBOARD/.test(e)}parse(e,t,n){let r=new C0;return this.parseFragment(e,r),this.ensureFinalTabstop(r,n??!1,t??!1),r}parseFragment(e,t){let n=t.children.length;for(this._scanner.text(e),this._token=this._scanner.next();this._parse(t););let r=new Map,i=[];t.walk(e=>(e instanceof y0&&(e.isFinalTabstop?r.set(0,void 0):!r.has(e.index)&&e.children.length>0?r.set(e.index,e.children):i.push(e)),!0));let a=(e,n)=>{let i=r.get(e.index);if(!i)return;let o=new y0(e.index);o.transform=e.transform;for(let e of i){let t=e.clone();o.appendChild(t),t instanceof y0&&r.has(t.index)&&!n.has(t.index)&&(n.add(t.index),a(t,n),n.delete(t.index))}t.replace(e,[o])},o=new Set;for(let e of i)a(e,o);return t.children.slice(n)}ensureFinalTabstop(e,t,n){(t||n&&e.placeholders.length>0)&&(e.placeholders.find(e=>e.index===0)||e.appendChild(new y0(0)))}_accept(e,t){if(e===void 0||this._token.type===e){let e=t?this._scanner.tokenText(this._token):!0;return this._token=this._scanner.next(),e}return!1}_backTo(e){return this._scanner.pos=e.pos+e.len,this._token=e,!1}_until(e){let t=this._token;for(;this._token.type!==e;){if(this._token.type===14)return!1;if(this._token.type===5){let e=this._scanner.next();if(e.type!==0&&e.type!==4&&e.type!==5)return!1}this._token=this._scanner.next()}let n=this._scanner.value.substring(t.pos,this._token.pos).replace(/\\(\$|}|\\)/g,`$1`);return this._token=this._scanner.next(),n}_parse(e){return this._parseEscaped(e)||this._parseTabstopOrVariableName(e)||this._parseComplexPlaceholder(e)||this._parseComplexVariable(e)||this._parseAnything(e)}_parseEscaped(e){let t;return(t=this._accept(5,!0))?(t=this._accept(0,!0)||this._accept(4,!0)||this._accept(5,!0)||t,e.appendChild(new v0(t)),!0):!1}_parseTabstopOrVariableName(e){let t,n=this._token;return this._accept(0)&&(t=this._accept(9,!0)||this._accept(8,!0))?(e.appendChild(/^\d+$/.test(t)?new y0(Number(t)):new S0(t)),!0):this._backTo(n)}_parseComplexPlaceholder(e){let t,n=this._token;if(!(this._accept(0)&&this._accept(3)&&(t=this._accept(8,!0))))return this._backTo(n);let r=new y0(Number(t));if(this._accept(1))for(;;){if(this._accept(4))return e.appendChild(r),!0;if(!this._parse(r))return e.appendChild(new v0("${"+t+`:`)),r.children.forEach(e.appendChild,e),!0}else if(r.index>0&&this._accept(7)){let t=new b0;for(;;){if(this._parseChoiceElement(t)){if(this._accept(2))continue;if(this._accept(7)&&(r.appendChild(t),this._accept(4)))return e.appendChild(r),!0}return this._backTo(n),!1}}else if(this._accept(6))return this._parseTransform(r)?(e.appendChild(r),!0):(this._backTo(n),!1);else if(this._accept(4))return e.appendChild(r),!0;else return this._backTo(n)}_parseChoiceElement(e){let t=this._token,n=[];for(;!(this._token.type===2||this._token.type===7);){let e;if(e=(e=this._accept(5,!0))?this._accept(2,!0)||this._accept(7,!0)||this._accept(5,!0)||e:this._accept(void 0,!0),!e)return this._backTo(t),!1;n.push(e)}return n.length===0?(this._backTo(t),!1):(e.appendChild(new v0(n.join(``))),!0)}_parseComplexVariable(e){let t,n=this._token;if(!(this._accept(0)&&this._accept(3)&&(t=this._accept(9,!0))))return this._backTo(n);let r=new S0(t);if(this._accept(1))for(;;){if(this._accept(4))return e.appendChild(r),!0;if(!this._parse(r))return e.appendChild(new v0("${"+t+`:`)),r.children.forEach(e.appendChild,e),!0}else if(this._accept(6))return this._parseTransform(r)?(e.appendChild(r),!0):(this._backTo(n),!1);else if(this._accept(4))return e.appendChild(r),!0;else return this._backTo(n)}_parseTransform(e){let t=new Clt,n=``,r=``;for(;!this._accept(6);){let e;if(e=this._accept(5,!0)){e=this._accept(6,!0)||e,n+=e;continue}if(this._token.type!==14){n+=this._accept(void 0,!0);continue}return!1}for(;!this._accept(6);){let e;if(e=this._accept(5,!0)){e=this._accept(5,!0)||this._accept(6,!0)||e,t.appendChild(new v0(e));continue}if(!(this._parseFormatString(t)||this._parseAnything(t)))return!1}for(;!this._accept(4);){if(this._token.type!==14){r+=this._accept(void 0,!0);continue}return!1}try{t.regexp=new RegExp(n,r)}catch{return!1}return e.transform=t,!0}_parseFormatString(e){let t=this._token;if(!this._accept(0))return!1;let n=!1;this._accept(3)&&(n=!0);let r=this._accept(8,!0);if(r)if(n){if(this._accept(4))return e.appendChild(new x0(Number(r))),!0;if(!this._accept(1))return this._backTo(t),!1}else return e.appendChild(new x0(Number(r))),!0;else return this._backTo(t),!1;if(this._accept(6)){let n=this._accept(9,!0);return!n||!this._accept(4)?(this._backTo(t),!1):(e.appendChild(new x0(Number(r),n)),!0)}else if(this._accept(11)){let t=this._until(4);if(t)return e.appendChild(new x0(Number(r),void 0,t,void 0)),!0}else if(this._accept(12)){let t=this._until(4);if(t)return e.appendChild(new x0(Number(r),void 0,void 0,t)),!0}else if(this._accept(13)){let t=this._until(1);if(t){let n=this._until(4);if(n)return e.appendChild(new x0(Number(r),void 0,t,n)),!0}}else{let t=this._until(4);if(t)return e.appendChild(new x0(Number(r),void 0,void 0,t)),!0}return this._backTo(t),!1}_parseAnything(e){return this._token.type===14?!1:(e.appendChild(new v0(this._scanner.tokenText(this._token))),this._accept(void 0),!0)}};function Tlt(e,t,n){return(typeof n.insertText==`string`?n.insertText===``:n.insertText.snippet===``)?{edits:n.additionalEdit?.edits??[]}:{edits:[...t.map(t=>new lU(e,{range:t,text:typeof n.insertText==`string`?w0.escape(n.insertText)+`$0`:n.insertText.snippet,insertAsSnippet:!0})),...n.additionalEdit?.edits??[]]}}function Elt(e){function t(e,t){return`mimeType`in e?e.mimeType===t.handledMimeType:!!t.kind&&e.kind.contains(t.kind)}let n=new Map;for(let r of e)for(let i of r.yieldTo??[])for(let a of e)if(a!==r&&t(i,a)){let e=n.get(r);e||(e=[],n.set(r,e)),e.push(a)}if(!n.size)return Array.from(e);let r=new Set,i=[];function a(e){if(!e.length)return[];let t=e[0];if(i.includes(t))return console.warn(`Yield to cycle detected`,t),e;if(r.has(t))return a(e.slice(1));let o=[],s=n.get(t);return s&&(i.push(t),o=a(s),i.pop()),r.add(t),[...o,t,...a(e.slice(1))]}return a(Array.from(e))}var Dlt=function(e,t,n,r){var i=arguments.length,a=i<3?t:r===null?r=Object.getOwnPropertyDescriptor(t,n):r,o;if(typeof Reflect==`object`&&typeof Reflect.decorate==`function`)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},Olt=function(e,t){return function(n,r){t(n,r,e)}},klt=vq.register({description:`inline-progress-widget`,stickiness:1,showIfCollapsed:!0,after:{content:`\xA0`,inlineClassName:`inline-editor-progress-decoration`,inlineClassNameAffectsLetterSpacing:!0}}),Alt=class e extends R{static#e=this.baseId=`editor.widget.inlineProgressWidget`;constructor(e,t,n,r,i){super(),this.typeId=e,this.editor=t,this.range=n,this.delegate=i,this.allowEditorOverflow=!1,this.suppressMouseDown=!0,this.create(r),this.editor.addContentWidget(this),this.editor.layoutContentWidget(this)}create(e){this.domNode=J(`.inline-progress-widget`),this.domNode.role=`button`,this.domNode.title=e;let t=J(`span.icon`);this.domNode.append(t),t.classList.add(...RN.asClassNameArray(W.loading),`codicon-modifier-spin`);let n=()=>{let e=this.editor.getOption(67);this.domNode.style.height=`${e}px`,this.domNode.style.width=`${Math.ceil(.8*e)}px`};n(),this._register(this.editor.onDidChangeConfiguration(e=>{(e.hasChanged(52)||e.hasChanged(67))&&n()})),this._register(G(this.domNode,K.CLICK,e=>{this.delegate.cancel()}))}getId(){return e.baseId+`.`+this.typeId}getDomNode(){return this.domNode}getPosition(){return{position:{lineNumber:this.range.startLineNumber,column:this.range.startColumn},preference:[0]}}dispose(){super.dispose(),this.editor.removeContentWidget(this)}},T0=class extends R{constructor(e,t,n){super(),this.id=e,this._editor=t,this._instantiationService=n,this._showDelay=500,this._showPromise=this._register(new pD),this._currentWidget=this._register(new pD),this._operationIdPool=0,this._currentDecorations=t.createDecorationsCollection()}dispose(){super.dispose(),this._currentDecorations.clear()}async showWhile(e,t,n,r,i){let a=this._operationIdPool++;this._currentOperation=a,this.clear(),this._showPromise.value=ZA(()=>{let n=H.fromPositions(e);this._currentDecorations.set([{range:n,options:klt}]).length>0&&(this._currentWidget.value=this._instantiationService.createInstance(Alt,this.id,this._editor,n,t,r))},i??this._showDelay);try{return await n}finally{this._currentOperation===a&&(this.clear(),this._currentOperation=void 0)}}clear(){this._showPromise.clear(),this._currentDecorations.clear(),this._currentWidget.clear()}};T0=Dlt([Olt(2,DN)],T0);var jlt=function(e,t,n,r){var i=arguments.length,a=i<3?t:r===null?r=Object.getOwnPropertyDescriptor(t,n):r,o;if(typeof Reflect==`object`&&typeof Reflect.decorate==`function`)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},Mlt=function(e,t){return function(n,r){t(n,r,e)}},E0,D0=class{static#e=E0=this;static#t=this.ID=`editor.contrib.messageController`;static#n=this.MESSAGE_VISIBLE=new lP(`messageVisible`,!1,F(`messageVisible`,`Whether the editor is currently showing an inline message`));static get(e){return e.getContribution(E0.ID)}constructor(e,t,n){this._openerService=n,this._messageWidget=new pD,this._messageListeners=new L,this._mouseOverMessage=!1,this._editor=e,this._visible=E0.MESSAGE_VISIBLE.bindTo(t)}dispose(){this._message?.dispose(),this._messageListeners.dispose(),this._messageWidget.dispose(),this._visible.reset()}showMessage(e,t){YH(bH(e)?e.value:e),this._visible.set(!0),this._messageWidget.clear(),this._messageListeners.clear(),this._message=bH(e)?AH(e,{actionHandler:{callback:t=>{this.closeMessage(),VH(this._openerService,t,bH(e)?e.isTrusted:void 0)},disposables:this._messageListeners}}):void 0,this._messageWidget.value=new Nlt(this._editor,t,typeof e==`string`?e:this._message.element),this._messageListeners.add(z.debounce(this._editor.onDidBlurEditorText,(e,t)=>t,0)(()=>{this._mouseOverMessage||this._messageWidget.value&&AM(FM(),this._messageWidget.value.getDomNode())||this.closeMessage()})),this._messageListeners.add(this._editor.onDidChangeCursorPosition(()=>this.closeMessage())),this._messageListeners.add(this._editor.onDidDispose(()=>this.closeMessage())),this._messageListeners.add(this._editor.onDidChangeModel(()=>this.closeMessage())),this._messageListeners.add(G(this._messageWidget.value.getDomNode(),K.MOUSE_ENTER,()=>this._mouseOverMessage=!0,!0)),this._messageListeners.add(G(this._messageWidget.value.getDomNode(),K.MOUSE_LEAVE,()=>this._mouseOverMessage=!1,!0));let n;this._messageListeners.add(this._editor.onMouseMove(e=>{e.target.position&&(n?n.containsPosition(e.target.position)||this.closeMessage():n=new H(t.lineNumber-3,1,e.target.position.lineNumber+3,1))}))}closeMessage(){this._visible.reset(),this._messageListeners.clear(),this._messageWidget.value&&this._messageListeners.add(Nlt.fadeOut(this._messageWidget.value))}};D0=E0=jlt([Mlt(1,uP),Mlt(2,wV)],D0),qP(new(HP.bindToContribution(D0.get))({id:`leaveEditorMessage`,precondition:D0.MESSAGE_VISIBLE,handler:e=>e.closeMessage(),kbOpts:{weight:130,primary:9}}));var Nlt=class{static fadeOut(e){let t=()=>{e.dispose(),clearTimeout(n),e.getDomNode().removeEventListener(`animationend`,t)},n=setTimeout(t,110);return e.getDomNode().addEventListener(`animationend`,t),e.getDomNode().classList.add(`fadeOut`),{dispose:t}}constructor(e,{lineNumber:t,column:n},r){this.allowEditorOverflow=!0,this.suppressMouseDown=!1,this._editor=e,this._editor.revealLinesInCenterIfOutsideViewport(t,t,0),this._position={lineNumber:t,column:n},this._domNode=document.createElement(`div`),this._domNode.classList.add(`monaco-editor-overlaymessage`),this._domNode.style.marginLeft=`-6px`;let i=document.createElement(`div`);i.classList.add(`anchor`,`top`),this._domNode.appendChild(i);let a=document.createElement(`div`);typeof r==`string`?(a.classList.add(`message`),a.textContent=r):(r.classList.add(`message`),a.appendChild(r)),this._domNode.appendChild(a);let o=document.createElement(`div`);o.classList.add(`anchor`,`below`),this._domNode.appendChild(o),this._editor.addContentWidget(this),this._domNode.classList.add(`fadeIn`)}dispose(){this._editor.removeContentWidget(this)}getId(){return`messageoverlay`}getDomNode(){return this._domNode}getPosition(){return{position:this._position,preference:[1,2],positionAffinity:1}}afterRender(e){this._domNode.classList.toggle(`below`,e===2)}};YP(D0.ID,D0,4);function O0(e,t){return t&&(e.stack||e.stacktrace)?F(`stackTrace.format`,`{0}: {1}`,Flt(e),Plt(e.stack)||Plt(e.stacktrace)):Flt(e)}function Plt(e){return Array.isArray(e)?e.join(`
|
|
3355
3355
|
`):e}function Flt(e){return e.code===`ERR_UNC_HOST_NOT_ALLOWED`?`${e.message}. Please update the 'security.allowedUNCHosts' setting if you want to allow this host.`:typeof e.code==`string`&&typeof e.errno==`number`&&typeof e.syscall==`string`?F(`nodeExceptionMessage`,`A system error occurred ({0})`,e.message):e.message||F(`error.defaultMessage`,`An unknown error occurred. Please consult the log for more details.`)}function k0(e=null,t=!1){if(!e)return F(`error.defaultMessage`,`An unknown error occurred. Please consult the log for more details.`);if(Array.isArray(e)){let n=Jw(e),r=k0(n[0],t);return n.length>1?F(`error.moreErrors`,`{0} ({1} errors in total)`,r,n.length):r}if(mT(e))return e;if(e.detail){let n=e.detail;if(n.error)return O0(n.error,t);if(n.exception)return O0(n.exception,t)}return e.stack?O0(e,t):e.message?e.message:F(`error.defaultMessage`,`An unknown error occurred. Please consult the log for more details.`)}var Ilt=function(e,t,n,r){var i=arguments.length,a=i<3?t:r===null?r=Object.getOwnPropertyDescriptor(t,n):r,o;if(typeof Reflect==`object`&&typeof Reflect.decorate==`function`)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},A0=function(e,t){return function(n,r){t(n,r,e)}},j0,M0=class extends R{static#e=j0=this;static#t=this.baseId=`editor.widget.postEditWidget`;constructor(e,t,n,r,i,a,o,s,c,l){super(),this.typeId=e,this.editor=t,this.showCommand=r,this.range=i,this.edits=a,this.onSelectNewEdit=o,this._contextMenuService=s,this._keybindingService=l,this.allowEditorOverflow=!0,this.suppressMouseDown=!0,this.create(),this.visibleContext=n.bindTo(c),this.visibleContext.set(!0),this._register(fD(()=>this.visibleContext.reset())),this.editor.addContentWidget(this),this.editor.layoutContentWidget(this),this._register(fD((()=>this.editor.removeContentWidget(this)))),this._register(this.editor.onDidChangeCursorPosition(e=>{i.containsPosition(e.position)||this.dispose()})),this._register(z.runAndSubscribe(l.onDidUpdateKeybindings,()=>{this._updateButtonTitle()}))}_updateButtonTitle(){let e=this._keybindingService.lookupKeybinding(this.showCommand.id)?.getLabel();this.button.element.title=this.showCommand.label+(e?` (${e})`:``)}create(){this.domNode=J(`.post-edit-widget`),this.button=this._register(new Fq(this.domNode,{supportIcons:!0})),this.button.label=`$(insert)`,this._register(G(this.domNode,K.CLICK,()=>this.showSelector()))}getId(){return j0.baseId+`.`+this.typeId}getDomNode(){return this.domNode}getPosition(){return{position:this.range.getEndPosition(),preference:[2]}}showSelector(){this._contextMenuService.showContextMenu({getAnchor:()=>{let e=TM(this.button.element);return{x:e.left+e.width,y:e.top+e.height}},getActions:()=>this.edits.allEdits.map((e,t)=>IN({id:``,label:e.title,checked:t===this.edits.activeEditIndex,run:()=>{if(t!==this.edits.activeEditIndex)return this.onSelectNewEdit(t)}}))})}};M0=j0=Ilt([A0(7,lV),A0(8,uP),A0(9,uV)],M0);var N0=class extends R{constructor(e,t,n,r,i,a,o){super(),this._id=e,this._editor=t,this._visibleContext=n,this._showCommand=r,this._instantiationService=i,this._bulkEditService=a,this._notificationService=o,this._currentWidget=this._register(new pD),this._register(z.any(t.onDidChangeModel,t.onDidChangeModelContent)(()=>this.clear()))}async applyEditAndShowIfNeeded(e,t,n,r,i){let a=this._editor.getModel();if(!a||!e.length)return;let o=t.allEdits.at(t.activeEditIndex);if(!o)return;let s=async a=>{let o=this._editor.getModel();o&&(await o.undo(),this.applyEditAndShowIfNeeded(e,{activeEditIndex:a,allEdits:t.allEdits},n,r,i))},c=(r,i)=>{ZE(r)||(this._notificationService.error(i),n&&this.show(e[0],t,s))},l;try{l=await r(o,i)}catch(e){return c(e,F(`resolveError`,`Error resolving edit '{0}':
|
|
@@ -3410,7 +3410,7 @@ ${X$e(W.menuSubmenu)}
|
|
|
3410
3410
|
`):void 0}}async provideRenameEdits(e,t){return this._provideRenameEdits(e,this._providerRenameIdx,[],t)}async _provideRenameEdits(e,t,n,r){let i=this._providers[t];if(!i)return{edits:[],rejectReason:n.join(`
|
|
3411
3411
|
`)};let a=await i.provideRenameEdits(this.model,this.position,e,r);if(a){if(a.rejectReason)return this._provideRenameEdits(e,t+1,n.concat(a.rejectReason),r)}else return this._provideRenameEdits(e,t+1,n.concat(F(`no result`,`No result.`)),r);return a}};async function Rxt(e,t,n,r){let i=new c7(t,n,e),a=await i.resolveRenameLocation(wD.None);return a?.rejectReason?{edits:[],rejectReason:a.rejectReason}:i.provideRenameEdits(r,wD.None)}var l7=class{static#e=s7=this;static#t=this.ID=`editor.contrib.renameController`;static get(e){return e.getContribution(s7.ID)}constructor(e,t,n,r,i,a,o,s,c){this.editor=e,this._instaService=t,this._notificationService=n,this._bulkEditService=r,this._progressService=i,this._logService=a,this._configService=o,this._languageFeaturesService=s,this._telemetryService=c,this._disposableStore=new L,this._cts=new ED,this._renameWidget=this._disposableStore.add(this._instaService.createInstance(i7,this.editor,[`acceptRenameInput`,`acceptRenameInputWithPreview`]))}dispose(){this._disposableStore.dispose(),this._cts.dispose(!0)}async run(){let e=this._logService.trace.bind(this._logService,`[rename]`);if(this._cts.dispose(!0),this._cts=new ED,!this.editor.hasModel()){e(`editor has no model`);return}let t=this.editor.getPosition(),n=new c7(this.editor.getModel(),t,this._languageFeaturesService.renameProvider);if(!n.hasProvider()){e(`skeleton has no provider`);return}let r=new w1(this.editor,5,void 0,this._cts.token),i;try{e(`resolving rename location`);let t=n.resolveRenameLocation(r.token);this._progressService.showWhile(t,250),i=await t,e(`resolved rename location`)}catch(n){n instanceof QE?e(`resolve rename location cancelled`,JSON.stringify(n,null,` `)):(e(`resolve rename location failed`,n instanceof Error?n:JSON.stringify(n,null,` `)),(typeof n==`string`||bH(n))&&D0.get(this.editor)?.showMessage(n||F(`resolveRenameLocationFailed`,`An unknown error occurred while resolving rename location`),t));return}finally{r.dispose()}if(!i){e(`returning early - no loc`);return}if(i.rejectReason){e(`returning early - rejected with reason: ${i.rejectReason}`,i.rejectReason),D0.get(this.editor)?.showMessage(i.rejectReason,t);return}if(r.token.isCancellationRequested){e(`returning early - cts1 cancelled`);return}let a=new w1(this.editor,5,i.range,this._cts.token),o=this.editor.getModel(),s=this._languageFeaturesService.newSymbolNamesProvider.all(o),c=await Promise.all(s.map(async e=>[e,await e.supportsAutomaticNewSymbolNamesTriggerKind??!1])),l=(e,t)=>{let n=c.slice();return e===PO.Automatic&&(n=n.filter(([e,t])=>t)),n.map(([n])=>n.provideNewSymbolNames(o,i.range,e,t))};e(`creating rename input field and awaiting its result`);let u=this._bulkEditService.hasPreviewHandler()&&this._configService.getValue(this.editor.getModel().uri,`editor.rename.enablePreview`),d=await this._renameWidget.getInput(i.range,i.text,u,s.length>0?l:void 0,a);if(e(`received response from rename input field`),s.length>0&&this._reportTelemetry(s.length,o.getLanguageId(),d),typeof d==`boolean`){e(`returning early - rename input field response - ${d}`),d&&this.editor.focus(),a.dispose();return}this.editor.focus(),e(`requesting rename edits`);let f=qA(n.provideRenameEdits(d.newName,a.token),a.token).then(async t=>{if(!t){e(`returning early - no rename edits result`);return}if(!this.editor.hasModel()){e(`returning early - no model after rename edits are provided`);return}if(t.rejectReason){e(`returning early - rejected with reason: ${t.rejectReason}`),this._notificationService.info(t.rejectReason);return}this.editor.setSelection(H.fromPositions(this.editor.getSelection().getPosition())),e(`applying edits`),this._bulkEditService.apply(t,{editor:this.editor,showPreview:d.wantsPreview,label:F(`label`,`Renaming '{0}' to '{1}'`,i?.text,d.newName),code:`undoredo.rename`,quotableLabel:F(`quotableLabel`,`Renaming {0} to {1}`,i?.text,d.newName),respectAutoSaveConfig:!0}).then(t=>{e(`edits applied`),t.ariaSummary&&YH(F(`aria`,`Successfully renamed '{0}' to '{1}'. Summary: {2}`,i.text,d.newName,t.ariaSummary))}).catch(t=>{e(`error when applying edits ${JSON.stringify(t,null,` `)}`),this._notificationService.error(F(`rename.failedApply`,`Rename failed to apply edits`)),this._logService.error(t)})},t=>{e(`error when providing rename edits`,JSON.stringify(t,null,` `)),this._notificationService.error(F(`rename.failed`,`Rename failed to compute edits`)),this._logService.error(t)}).finally(()=>{a.dispose()});return e(`returning rename operation`),this._progressService.showWhile(f,250),f}acceptRenameInput(e){this._renameWidget.acceptInput(e)}cancelRenameInput(){this._renameWidget.cancelInput(!0,`cancelRenameInput command`)}focusNextRenameSuggestion(){this._renameWidget.focusNextRenameSuggestion()}focusPreviousRenameSuggestion(){this._renameWidget.focusPreviousRenameSuggestion()}_reportTelemetry(e,t,n){let r=typeof n==`boolean`?{kind:`cancelled`,languageId:t,nRenameSuggestionProviders:e}:{kind:`accepted`,languageId:t,nRenameSuggestionProviders:e,source:n.stats.source.k,nRenameSuggestions:n.stats.nRenameSuggestions,timeBeforeFirstInputFieldEdit:n.stats.timeBeforeFirstInputFieldEdit,wantsPreview:n.wantsPreview,nRenameSuggestionsInvocations:n.stats.nRenameSuggestionsInvocations,hadAutomaticRenameSuggestionsInvocation:n.stats.hadAutomaticRenameSuggestionsInvocation};this._telemetryService.publicLog2(`renameInvokedEvent`,r)}};l7=s7=Lxt([o7(1,DN),o7(2,WR),o7(3,sU),o7(4,TU),o7(5,FP),o7(6,pR),o7(7,hR),o7(8,PP)],l7);var zxt=class extends UP{constructor(){super({id:`editor.action.rename`,label:F(`rename.label`,`Rename Symbol`),alias:`Rename Symbol`,precondition:Y.and($.writable,$.hasRenameProvider),kbOpts:{kbExpr:$.editorTextFocus,primary:60,weight:100},contextMenuOpts:{group:`1_modification`,order:1.1}})}runCommand(e,t){let n=e.get(kN),[r,i]=Array.isArray(t)&&t||[void 0,void 0];return sO.isUri(r)&&V.isIPosition(i)?n.openCodeEditor({resource:r},n.getActiveCodeEditor()).then(e=>{e&&(e.setPosition(i),e.invokeWithinContext(t=>(this.reportTelemetry(t,e),this.run(t,e))))},qE):super.runCommand(e,t)}run(e,t){let n=e.get(FP),r=l7.get(t);return r?(n.trace(`[RenameAction] got controller, running...`),r.run()):(n.trace(`[RenameAction] returning early - controller missing`),Promise.resolve())}};YP(l7.ID,l7,4),X(zxt);var u7=HP.bindToContribution(l7.get);qP(new u7({id:`acceptRenameInput`,precondition:r7,handler:e=>e.acceptRenameInput(!1),kbOpts:{weight:199,kbExpr:Y.and($.focus,Y.not(`isComposing`)),primary:3}})),qP(new u7({id:`acceptRenameInputWithPreview`,precondition:Y.and(r7,Y.has(`config.editor.rename.enablePreview`)),handler:e=>e.acceptRenameInput(!0),kbOpts:{weight:199,kbExpr:Y.and($.focus,Y.not(`isComposing`)),primary:2051}})),qP(new u7({id:`cancelRenameInput`,precondition:r7,handler:e=>e.cancelRenameInput(),kbOpts:{weight:199,kbExpr:$.focus,primary:9,secondary:[1033]}})),NP(class extends MP{constructor(){super({id:`focusNextRenameSuggestion`,title:{...IT(`focusNextRenameSuggestion`,`Focus Next Rename Suggestion`)},precondition:r7,keybinding:[{primary:18,weight:199}]})}run(e){let t=e.get(kN).getFocusedCodeEditor();if(!t)return;let n=l7.get(t);n&&n.focusNextRenameSuggestion()}}),NP(class extends MP{constructor(){super({id:`focusPreviousRenameSuggestion`,title:{...IT(`focusPreviousRenameSuggestion`,`Focus Previous Rename Suggestion`)},precondition:r7,keybinding:[{primary:16,weight:199}]})}run(e){let t=e.get(kN).getFocusedCodeEditor();if(!t)return;let n=l7.get(t);n&&n.focusPreviousRenameSuggestion()}}),KP(`_executeDocumentRenameProvider`,function(e,t,n,...r){let[i]=r;ST(typeof i==`string`);let{renameProvider:a}=e.get(hR);return Rxt(a,t,n,i)}),KP(`_executePrepareRename`,async function(e,t,n){let{renameProvider:r}=e.get(hR),i=await new c7(t,n,r).resolveRenameLocation(wD.None);if(i?.rejectReason)throw Error(i.rejectReason);return i}),xP.as(KF.Configuration).registerConfiguration({id:`editor`,properties:{"editor.rename.enablePreview":{scope:5,description:F(`enablePreview`,`Enable/disable the ability to preview changes before renaming`),default:!0,type:`boolean`}}});var Bxt=function(e,t,n,r){var i=arguments.length,a=i<3?t:r===null?r=Object.getOwnPropertyDescriptor(t,n):r,o;if(typeof Reflect==`object`&&typeof Reflect.decorate==`function`)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},Vxt=function(e,t){return function(n,r){t(n,r,e)}},d7=class extends R{static#e=this.ID=`editor.sectionHeaderDetector`;constructor(e,t,n){super(),this.editor=e,this.languageConfigurationService=t,this.editorWorkerService=n,this.decorations=this.editor.createDecorationsCollection(),this.options=this.createOptions(e.getOption(73)),this.computePromise=null,this.currentOccurrences={},this._register(e.onDidChangeModel(t=>{this.currentOccurrences={},this.options=this.createOptions(e.getOption(73)),this.stop(),this.computeSectionHeaders.schedule(0)})),this._register(e.onDidChangeModelLanguage(t=>{this.currentOccurrences={},this.options=this.createOptions(e.getOption(73)),this.stop(),this.computeSectionHeaders.schedule(0)})),this._register(t.onDidChange(t=>{let n=this.editor.getModel()?.getLanguageId();n&&t.affects(n)&&(this.currentOccurrences={},this.options=this.createOptions(e.getOption(73)),this.stop(),this.computeSectionHeaders.schedule(0))})),this._register(e.onDidChangeConfiguration(t=>{this.options&&!t.hasChanged(73)||(this.options=this.createOptions(e.getOption(73)),this.updateDecorations([]),this.stop(),this.computeSectionHeaders.schedule(0))})),this._register(this.editor.onDidChangeModelContent(e=>{this.computeSectionHeaders.schedule()})),this._register(e.onDidChangeModelTokens(e=>{this.computeSectionHeaders.isScheduled()||this.computeSectionHeaders.schedule(1e3)})),this.computeSectionHeaders=this._register(new tj(()=>{this.findSectionHeaders()},250)),this.computeSectionHeaders.schedule(0)}createOptions(e){if(!e||!this.editor.hasModel())return;let t=this.editor.getModel().getLanguageId();if(!t)return;let n=this.languageConfigurationService.getLanguageConfiguration(t).comments,r=this.languageConfigurationService.getLanguageConfiguration(t).foldingRules;if(!(!n&&!r?.markers))return{foldingRules:r,findMarkSectionHeaders:e.showMarkSectionHeaders,findRegionSectionHeaders:e.showRegionSectionHeaders}}findSectionHeaders(){if(!this.editor.hasModel()||!this.options?.findMarkSectionHeaders&&!this.options?.findRegionSectionHeaders)return;let e=this.editor.getModel();if(e.isDisposed()||e.isTooLargeForSyncing())return;let t=e.getVersionId();this.editorWorkerService.findSectionHeaders(e.uri,this.options).then(n=>{e.isDisposed()||e.getVersionId()!==t||this.updateDecorations(n)})}updateDecorations(e){let t=this.editor.getModel();t&&(e=e.filter(e=>{if(!e.shouldBeInComments)return!0;let n=t.validateRange(e.range),r=t.tokenization.getLineTokens(n.startLineNumber),i=r.findTokenIndexAtOffset(n.startColumn-1),a=r.getStandardTokenType(i);return r.getLanguageId(i)===t.getLanguageId()&&a===1}));let n=Object.values(this.currentOccurrences).map(e=>e.decorationId),r=e.map(e=>Hxt(e));this.editor.changeDecorations(t=>{let i=t.deltaDecorations(n,r);this.currentOccurrences={};for(let t=0,n=i.length;t<n;t++){let n={sectionHeader:e[t],decorationId:i[t]};this.currentOccurrences[n.decorationId]=n}})}stop(){this.computeSectionHeaders.cancel(),this.computePromise&&=(this.computePromise.cancel(),null)}dispose(){super.dispose(),this.stop(),this.decorations.clear()}};d7=Bxt([Vxt(1,pI),Vxt(2,CG)],d7);function Hxt(e){return{range:e.range,options:vq.createDynamic({description:`section-header`,stickiness:3,collapseOnReplaceEdit:!0,minimap:{color:void 0,position:1,sectionHeaderStyle:e.hasSeparatorLine?2:1,sectionHeaderText:e.text}})}}YP(d7.ID,d7,1);function Uxt(e){for(let t=0,n=e.length;t<n;t+=4){let n=e[t+0],r=e[t+1],i=e[t+2],a=e[t+3];e[t+0]=a,e[t+1]=i,e[t+2]=r,e[t+3]=n}}function Wxt(e){let t=new Uint8Array(e.buffer,e.byteOffset,e.length*4);return oE()||Uxt(t),gF.wrap(t)}function Gxt(e){let t=new Uint32Array(Kxt(e)),n=0;if(t[n++]=e.id,e.type===`full`)t[n++]=1,t[n++]=e.data.length,t.set(e.data,n),n+=e.data.length;else{t[n++]=2,t[n++]=e.deltas.length;for(let r of e.deltas)t[n++]=r.start,t[n++]=r.deleteCount,r.data?(t[n++]=r.data.length,t.set(r.data,n),n+=r.data.length):t[n++]=0}return Wxt(t)}function Kxt(e){let t=0;if(t+=2,e.type===`full`)t+=1+e.data.length;else{t+=1,t+=3*e.deltas.length;for(let n of e.deltas)n.data&&(t+=n.data.length)}return t}function f7(e){return e&&!!e.data}function qxt(e){return e&&Array.isArray(e.edits)}var Jxt=class{constructor(e,t,n){this.provider=e,this.tokens=t,this.error=n}};function Yxt(e,t){return e.has(t)}function Xxt(e,t){let n=e.orderedGroups(t);return n.length>0?n[0]:[]}async function Zxt(e,t,n,r,i){let a=Xxt(e,t),o=await Promise.all(a.map(async e=>{let a,o=null;try{a=await e.provideDocumentSemanticTokens(t,e===n?r:null,i)}catch(e){o=e,a=null}return(!a||!f7(a)&&!qxt(a))&&(a=null),new Jxt(e,a,o)}));for(let e of o){if(e.error)throw e.error;if(e.tokens)return e}return o.length>0?o[0]:null}function Qxt(e,t){let n=e.orderedGroups(t);return n.length>0?n[0]:null}var $xt=class{constructor(e,t){this.provider=e,this.tokens=t}};function eSt(e,t){return e.has(t)}function tSt(e,t){let n=e.orderedGroups(t);return n.length>0?n[0]:[]}async function p7(e,t,n,r){let i=tSt(e,t),a=await Promise.all(i.map(async e=>{let i;try{i=await e.provideDocumentRangeSemanticTokens(t,n,r)}catch(e){JE(e),i=null}return(!i||!f7(i))&&(i=null),new $xt(e,i)}));for(let e of a)if(e.tokens)return e;return a.length>0?a[0]:null}BN.registerCommand(`_provideDocumentSemanticTokensLegend`,async(e,...t)=>{let[n]=t;ST(n instanceof sO);let r=e.get(AN).getModel(n);if(!r)return;let{documentSemanticTokensProvider:i}=e.get(hR),a=Qxt(i,r);return a?a[0].getLegend():e.get(zN).executeCommand(`_provideDocumentRangeSemanticTokensLegend`,n)}),BN.registerCommand(`_provideDocumentSemanticTokens`,async(e,...t)=>{let[n]=t;ST(n instanceof sO);let r=e.get(AN).getModel(n);if(!r)return;let{documentSemanticTokensProvider:i}=e.get(hR);if(!Yxt(i,r))return e.get(zN).executeCommand(`_provideDocumentRangeSemanticTokens`,n,r.getFullModelRange());let a=await Zxt(i,r,null,null,wD.None);if(!a)return;let{provider:o,tokens:s}=a;if(!s||!f7(s))return;let c=Gxt({id:0,type:`full`,data:s.data});return s.resultId&&o.releaseDocumentSemanticTokens(s.resultId),c}),BN.registerCommand(`_provideDocumentRangeSemanticTokensLegend`,async(e,...t)=>{let[n,r]=t;ST(n instanceof sO);let i=e.get(AN).getModel(n);if(!i)return;let{documentRangeSemanticTokensProvider:a}=e.get(hR),o=tSt(a,i);if(o.length===0)return;if(o.length===1)return o[0].getLegend();if(!r||!H.isIRange(r))return console.warn(`provideDocumentRangeSemanticTokensLegend might be out-of-sync with provideDocumentRangeSemanticTokens unless a range argument is passed in`),o[0].getLegend();let s=await p7(a,i,H.lift(r),wD.None);if(s)return s.provider.getLegend()}),BN.registerCommand(`_provideDocumentRangeSemanticTokens`,async(e,...t)=>{let[n,r]=t;ST(n instanceof sO),ST(H.isIRange(r));let i=e.get(AN).getModel(n);if(!i)return;let{documentRangeSemanticTokensProvider:a}=e.get(hR),o=await p7(a,i,H.lift(r),wD.None);if(!(!o||!o.tokens))return Gxt({id:0,type:`full`,data:o.tokens.data})});function m7(e,t,n){let r=n.getValue(`editor.semanticHighlighting`,{overrideIdentifier:e.getLanguageId(),resource:e.uri})?.enabled;return typeof r==`boolean`?r:t.getColorTheme().semanticHighlighting}var nSt=function(e,t,n,r){var i=arguments.length,a=i<3?t:r===null?r=Object.getOwnPropertyDescriptor(t,n):r,o;if(typeof Reflect==`object`&&typeof Reflect.decorate==`function`)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},h7=function(e,t){return function(n,r){t(n,r,e)}},g7,_7=class extends R{constructor(e,t,n,r,i,a){super(),this._watchers=Object.create(null);let o=t=>{this._watchers[t.uri.toString()]=new v7(t,e,n,i,a)},s=(e,t)=>{t.dispose(),delete this._watchers[e.uri.toString()]},c=()=>{for(let e of t.getModels()){let t=this._watchers[e.uri.toString()];m7(e,n,r)?t||o(e):t&&s(e,t)}};t.getModels().forEach(e=>{m7(e,n,r)&&o(e)}),this._register(t.onModelAdded(e=>{m7(e,n,r)&&o(e)})),this._register(t.onModelRemoved(e=>{let t=this._watchers[e.uri.toString()];t&&s(e,t)})),this._register(r.onDidChangeConfiguration(e=>{e.affectsConfiguration(`editor.semanticHighlighting`)&&c()})),this._register(n.onDidColorThemeChange(c))}dispose(){for(let e of Object.values(this._watchers))e.dispose();super.dispose()}};_7=nSt([h7(0,vz),h7(1,AN),h7(2,ER),h7(3,PF),h7(4,lz),h7(5,hR)],_7);var v7=class extends R{static#e=g7=this;static#t=this.REQUEST_MIN_DELAY=300;static#n=this.REQUEST_MAX_DELAY=2e3;constructor(e,t,n,r,i){super(),this._semanticTokensStylingService=t,this._isDisposed=!1,this._model=e,this._provider=i.documentSemanticTokensProvider,this._debounceInformation=r.for(this._provider,`DocumentSemanticTokens`,{min:g7.REQUEST_MIN_DELAY,max:g7.REQUEST_MAX_DELAY}),this._fetchDocumentSemanticTokens=this._register(new tj(()=>this._fetchDocumentSemanticTokensNow(),g7.REQUEST_MIN_DELAY)),this._currentDocumentResponse=null,this._currentDocumentRequestCancellationTokenSource=null,this._documentProvidersChangeListeners=[],this._providersChangedDuringRequest=!1,this._register(this._model.onDidChangeContent(()=>{this._fetchDocumentSemanticTokens.isScheduled()||this._fetchDocumentSemanticTokens.schedule(this._debounceInformation.get(this._model))})),this._register(this._model.onDidChangeAttached(()=>{this._fetchDocumentSemanticTokens.isScheduled()||this._fetchDocumentSemanticTokens.schedule(this._debounceInformation.get(this._model))})),this._register(this._model.onDidChangeLanguage(()=>{this._currentDocumentResponse&&=(this._currentDocumentResponse.dispose(),null),this._currentDocumentRequestCancellationTokenSource&&=(this._currentDocumentRequestCancellationTokenSource.cancel(),null),this._setDocumentSemanticTokens(null,null,null,[]),this._fetchDocumentSemanticTokens.schedule(0)}));let a=()=>{uD(this._documentProvidersChangeListeners),this._documentProvidersChangeListeners=[];for(let t of this._provider.all(e))typeof t.onDidChange==`function`&&this._documentProvidersChangeListeners.push(t.onDidChange(()=>{if(this._currentDocumentRequestCancellationTokenSource){this._providersChangedDuringRequest=!0;return}this._fetchDocumentSemanticTokens.schedule(0)}))};a(),this._register(this._provider.onDidChange(()=>{a(),this._fetchDocumentSemanticTokens.schedule(this._debounceInformation.get(this._model))})),this._register(n.onDidColorThemeChange(e=>{this._setDocumentSemanticTokens(null,null,null,[]),this._fetchDocumentSemanticTokens.schedule(this._debounceInformation.get(this._model))})),this._fetchDocumentSemanticTokens.schedule(0)}dispose(){this._currentDocumentResponse&&=(this._currentDocumentResponse.dispose(),null),this._currentDocumentRequestCancellationTokenSource&&=(this._currentDocumentRequestCancellationTokenSource.cancel(),null),uD(this._documentProvidersChangeListeners),this._documentProvidersChangeListeners=[],this._setDocumentSemanticTokens(null,null,null,[]),this._isDisposed=!0,super.dispose()}_fetchDocumentSemanticTokensNow(){if(this._currentDocumentRequestCancellationTokenSource)return;if(!Yxt(this._provider,this._model)){this._currentDocumentResponse&&this._model.tokenization.setSemanticTokens(null,!1);return}if(!this._model.isAttachedToEditor())return;let e=new ED,t=this._currentDocumentResponse?this._currentDocumentResponse.provider:null,n=this._currentDocumentResponse&&this._currentDocumentResponse.resultId||null,r=Zxt(this._provider,this._model,t,n,e.token);this._currentDocumentRequestCancellationTokenSource=e,this._providersChangedDuringRequest=!1;let i=[],a=this._model.onDidChangeContent(e=>{i.push(e)}),o=new hD(!1);r.then(e=>{if(this._debounceInformation.update(this._model,o.elapsed()),this._currentDocumentRequestCancellationTokenSource=null,a.dispose(),!e)this._setDocumentSemanticTokens(null,null,null,i);else{let{provider:t,tokens:n}=e,r=this._semanticTokensStylingService.getStyling(t);this._setDocumentSemanticTokens(t,n||null,r,i)}},e=>{e&&(ZE(e)||typeof e.message==`string`&&e.message.indexOf(`busy`)!==-1)||qE(e),this._currentDocumentRequestCancellationTokenSource=null,a.dispose(),(i.length>0||this._providersChangedDuringRequest)&&(this._fetchDocumentSemanticTokens.isScheduled()||this._fetchDocumentSemanticTokens.schedule(this._debounceInformation.get(this._model)))})}static _copy(e,t,n,r,i){i=Math.min(i,n.length-r,e.length-t);for(let a=0;a<i;a++)n[r+a]=e[t+a]}_setDocumentSemanticTokens(e,t,n,r){let i=this._currentDocumentResponse,a=()=>{(r.length>0||this._providersChangedDuringRequest)&&!this._fetchDocumentSemanticTokens.isScheduled()&&this._fetchDocumentSemanticTokens.schedule(this._debounceInformation.get(this._model))};if(this._currentDocumentResponse&&=(this._currentDocumentResponse.dispose(),null),this._isDisposed){e&&t&&e.releaseDocumentSemanticTokens(t.resultId);return}if(!e||!n){this._model.tokenization.setSemanticTokens(null,!1);return}if(!t){this._model.tokenization.setSemanticTokens(null,!0),a();return}if(qxt(t)){if(!i){this._model.tokenization.setSemanticTokens(null,!0);return}if(t.edits.length===0)t={resultId:t.resultId,data:i.data};else{let e=0;for(let n of t.edits)e+=(n.data?n.data.length:0)-n.deleteCount;let r=i.data,a=new Uint32Array(r.length+e),o=r.length,s=a.length;for(let e=t.edits.length-1;e>=0;e--){let c=t.edits[e];if(c.start>r.length){n.warnInvalidEditStart(i.resultId,t.resultId,e,c.start,r.length),this._model.tokenization.setSemanticTokens(null,!0);return}let l=o-(c.start+c.deleteCount);l>0&&(g7._copy(r,o-l,a,s-l,l),s-=l),c.data&&(g7._copy(c.data,0,a,s-c.data.length,c.data.length),s-=c.data.length),o=c.start}o>0&&g7._copy(r,0,a,0,o),t={resultId:t.resultId,data:a}}}if(f7(t)){this._currentDocumentResponse=new rSt(e,t.resultId,t.data);let i=_z(t,n,this._model.getLanguageId());if(r.length>0)for(let e of r)for(let t of i)for(let n of e.changes)t.applyEdit(n.range,n.text);this._model.tokenization.setSemanticTokens(i,!0)}else this._model.tokenization.setSemanticTokens(null,!0);a()}};v7=g7=nSt([h7(1,vz),h7(2,ER),h7(3,lz),h7(4,hR)],v7);var rSt=class{constructor(e,t,n){this.provider=e,this.resultId=t,this.data=n}dispose(){this.provider.releaseDocumentSemanticTokens(this.resultId)}};aX(_7);var iSt=function(e,t,n,r){var i=arguments.length,a=i<3?t:r===null?r=Object.getOwnPropertyDescriptor(t,n):r,o;if(typeof Reflect==`object`&&typeof Reflect.decorate==`function`)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},y7=function(e,t){return function(n,r){t(n,r,e)}},b7=class extends R{static#e=this.ID=`editor.contrib.viewportSemanticTokens`;constructor(e,t,n,r,i,a){super(),this._semanticTokensStylingService=t,this._themeService=n,this._configurationService=r,this._editor=e,this._provider=a.documentRangeSemanticTokensProvider,this._debounceInformation=i.for(this._provider,`DocumentRangeSemanticTokens`,{min:100,max:500}),this._tokenizeViewport=this._register(new tj(()=>this._tokenizeViewportNow(),100)),this._outstandingRequests=[];let o=()=>{this._editor.hasModel()&&this._tokenizeViewport.schedule(this._debounceInformation.get(this._editor.getModel()))};this._register(this._editor.onDidScrollChange(()=>{o()})),this._register(this._editor.onDidChangeModel(()=>{this._cancelAll(),o()})),this._register(this._editor.onDidChangeModelContent(e=>{this._cancelAll(),o()})),this._register(this._provider.onDidChange(()=>{this._cancelAll(),o()})),this._register(this._configurationService.onDidChangeConfiguration(e=>{e.affectsConfiguration(`editor.semanticHighlighting`)&&(this._cancelAll(),o())})),this._register(this._themeService.onDidColorThemeChange(()=>{this._cancelAll(),o()})),o()}_cancelAll(){for(let e of this._outstandingRequests)e.cancel();this._outstandingRequests=[]}_removeOutstandingRequest(e){for(let t=0,n=this._outstandingRequests.length;t<n;t++)if(this._outstandingRequests[t]===e){this._outstandingRequests.splice(t,1);return}}_tokenizeViewportNow(){if(!this._editor.hasModel())return;let e=this._editor.getModel();if(e.tokenization.hasCompleteSemanticTokens())return;if(!m7(e,this._themeService,this._configurationService)){e.tokenization.hasSomeSemanticTokens()&&e.tokenization.setSemanticTokens(null,!1);return}if(!eSt(this._provider,e)){e.tokenization.hasSomeSemanticTokens()&&e.tokenization.setSemanticTokens(null,!1);return}let t=this._editor.getVisibleRangesPlusViewportAboveBelow();this._outstandingRequests=this._outstandingRequests.concat(t.map(t=>this._requestRange(e,t)))}_requestRange(e,t){let n=e.getVersionId(),r=KA(n=>Promise.resolve(p7(this._provider,e,t,n))),i=new hD(!1);return r.then(r=>{if(this._debounceInformation.update(e,i.elapsed()),!r||!r.tokens||e.isDisposed()||e.getVersionId()!==n)return;let{provider:a,tokens:o}=r,s=this._semanticTokensStylingService.getStyling(a);e.tokenization.setPartialSemanticTokens(t,_z(o,s,e.getLanguageId()))}).then(()=>this._removeOutstandingRequest(r),()=>this._removeOutstandingRequest(r)),r}};b7=iSt([y7(1,vz),y7(2,ER),y7(3,PF),y7(4,lz),y7(5,hR)],b7),YP(b7.ID,b7,1);var aSt=class{constructor(e=!0){this.selectSubwords=e}provideSelectionRanges(e,t){let n=[];for(let r of t){let t=[];n.push(t),this.selectSubwords&&this._addInWordRanges(t,e,r),this._addWordRanges(t,e,r),this._addWhitespaceLine(t,e,r),t.push({range:e.getFullModelRange()})}return n}_addInWordRanges(e,t,n){let r=t.getWordAtPosition(n);if(!r)return;let{word:i,startColumn:a}=r,o=n.column-a,s=o,c=o,l=0;for(;s>=0;s--){let e=i.charCodeAt(s);if(s!==o&&(e===95||e===45)||$k(e)&&eA(l))break;l=e}for(s+=1;c<i.length;c++){let e=i.charCodeAt(c);if(eA(e)&&$k(l)||e===95||e===45)break;l=e}s<c&&e.push({range:new H(n.lineNumber,a+s,n.lineNumber,a+c)})}_addWordRanges(e,t,n){let r=t.getWordAtPosition(n);r&&e.push({range:new H(n.lineNumber,r.startColumn,n.lineNumber,r.endColumn)})}_addWhitespaceLine(e,t,n){t.getLineLength(n.lineNumber)>0&&t.getLineFirstNonWhitespaceColumn(n.lineNumber)===0&&t.getLineLastNonWhitespaceColumn(n.lineNumber)===0&&e.push({range:new H(n.lineNumber,1,n.lineNumber,t.getLineMaxColumn(n.lineNumber))})}},oSt=function(e,t,n,r){var i=arguments.length,a=i<3?t:r===null?r=Object.getOwnPropertyDescriptor(t,n):r,o;if(typeof Reflect==`object`&&typeof Reflect.decorate==`function`)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},sSt=function(e,t){return function(n,r){t(n,r,e)}},x7,cSt=class e{constructor(e,t){this.index=e,this.ranges=t}mov(t){let n=this.index+(t?1:-1);if(n<0||n>=this.ranges.length)return this;let r=new e(n,this.ranges);return r.ranges[n].equalsRange(this.ranges[this.index])?r.mov(t):r}},S7=class{static#e=x7=this;static#t=this.ID=`editor.contrib.smartSelectController`;static get(e){return e.getContribution(x7.ID)}constructor(e,t){this._editor=e,this._languageFeaturesService=t,this._ignoreSelection=!1}dispose(){this._selectionListener?.dispose()}async run(e){if(!this._editor.hasModel())return;let t=this._editor.getSelections(),n=this._editor.getModel();if(this._state||await fSt(this._languageFeaturesService.selectionRangeProvider,n,t.map(e=>e.getPosition()),this._editor.getOption(114),wD.None).then(e=>{if(!(!Zw(e)||e.length!==t.length)&&!(!this._editor.hasModel()||!Hw(this._editor.getSelections(),t,(e,t)=>e.equalsSelection(t)))){for(let n=0;n<e.length;n++)e[n]=e[n].filter(e=>e.containsPosition(t[n].getStartPosition())&&e.containsPosition(t[n].getEndPosition())),e[n].unshift(t[n]);this._state=e.map(e=>new cSt(0,e)),this._selectionListener?.dispose(),this._selectionListener=this._editor.onDidChangeCursorPosition(()=>{this._ignoreSelection||(this._selectionListener?.dispose(),this._state=void 0)})}}),!this._state)return;this._state=this._state.map(t=>t.mov(e));let r=this._state.map(e=>_O.fromPositions(e.ranges[e.index].getStartPosition(),e.ranges[e.index].getEndPosition()));this._ignoreSelection=!0;try{this._editor.setSelections(r)}finally{this._ignoreSelection=!1}}};S7=x7=oSt([sSt(1,hR)],S7);var lSt=class extends UP{constructor(e,t){super(t),this._forward=e}async run(e,t){let n=S7.get(t);n&&await n.run(this._forward)}},uSt=class extends lSt{constructor(){super(!0,{id:`editor.action.smartSelect.expand`,label:F(`smartSelect.expand`,`Expand Selection`),alias:`Expand Selection`,precondition:void 0,kbOpts:{kbExpr:$.editorTextFocus,primary:1553,mac:{primary:3345,secondary:[1297]},weight:100},menuOpts:{menuId:EP.MenubarSelectionMenu,group:`1_basic`,title:F({key:`miSmartSelectGrow`,comment:[`&& denotes a mnemonic`]},`&&Expand Selection`),order:2}})}};BN.registerCommandAlias(`editor.action.smartSelect.grow`,`editor.action.smartSelect.expand`);var dSt=class extends lSt{constructor(){super(!1,{id:`editor.action.smartSelect.shrink`,label:F(`smartSelect.shrink`,`Shrink Selection`),alias:`Shrink Selection`,precondition:void 0,kbOpts:{kbExpr:$.editorTextFocus,primary:1551,mac:{primary:3343,secondary:[1295]},weight:100},menuOpts:{menuId:EP.MenubarSelectionMenu,group:`1_basic`,title:F({key:`miSmartSelectShrink`,comment:[`&& denotes a mnemonic`]},`&&Shrink Selection`),order:3}})}};YP(S7.ID,S7,4),X(uSt),X(dSt);async function fSt(e,t,n,r,i){let a=e.all(t).concat(new aSt(r.selectSubwords));a.length===1&&a.unshift(new v_t);let o=[],s=[];for(let e of a)o.push(Promise.resolve(e.provideSelectionRanges(t,n,i)).then(e=>{if(Zw(e)&&e.length===n.length)for(let t=0;t<n.length;t++){s[t]||(s[t]=[]);for(let r of e[t])H.isIRange(r.range)&&H.containsPosition(r.range,n[t])&&s[t].push(H.lift(r.range))}},JE));return await Promise.all(o),s.map(e=>{if(e.length===0)return[];e.sort((e,t)=>V.isBefore(e.getStartPosition(),t.getStartPosition())?1:V.isBefore(t.getStartPosition(),e.getStartPosition())||V.isBefore(e.getEndPosition(),t.getEndPosition())?-1:V.isBefore(t.getEndPosition(),e.getEndPosition())?1:0);let n=[],i;for(let t of e)(!i||H.containsRange(t,i)&&!H.equalsRange(t,i))&&(n.push(t),i=t);if(!r.selectLeadingAndTrailingWhitespace)return n;let a=[n[0]];for(let e=1;e<n.length;e++){let r=n[e-1],i=n[e];if(i.startLineNumber!==r.startLineNumber||i.endLineNumber!==r.endLineNumber){let e=new H(r.startLineNumber,t.getLineFirstNonWhitespaceColumn(r.startLineNumber),r.endLineNumber,t.getLineLastNonWhitespaceColumn(r.endLineNumber));e.containsRange(r)&&!e.equalsRange(r)&&i.containsRange(e)&&!i.equalsRange(e)&&a.push(e);let n=new H(r.startLineNumber,1,r.endLineNumber,t.getLineMaxColumn(r.endLineNumber));n.containsRange(r)&&!n.equalsRange(e)&&i.containsRange(n)&&!i.equalsRange(n)&&a.push(n)}a.push(i)}return a})}BN.registerCommand(`_executeSelectionRangeProvider`,async function(e,...t){let[n,r]=t;ST(sO.isUri(n));let i=e.get(hR).selectionRangeProvider,a=await e.get(jN).createModelReference(n);try{return fSt(i,a.object.textEditorModel,r,{selectLeadingAndTrailingWhitespace:!0,selectSubwords:!0},wD.None)}finally{a.dispose()}});const pSt=Object.freeze({View:IT(`view`,`View`),Help:IT(`help`,`Help`),Test:IT(`test`,`Test`),File:IT(`file`,`File`),Preferences:IT(`preferences`,`Preferences`),Developer:IT({key:`developer`,comment:[`A developer on Code itself or someone diagnosing issues in Code`]},`Developer`)});var C7=class e{constructor(e,t,n,r=null){this.startLineNumbers=e,this.endLineNumbers=t,this.lastLineRelativePosition=n,this.showEndForLine=r}equals(e){return!!e&&this.lastLineRelativePosition===e.lastLineRelativePosition&&this.showEndForLine===e.showEndForLine&&Hw(this.startLineNumbers,e.startLineNumbers)&&Hw(this.endLineNumbers,e.endLineNumbers)}static get Empty(){return new e([],[],0)}},mSt=sF(`stickyScrollViewLayer`,{createHTML:e=>e}),w7=`data-sticky-line-index`,hSt=`data-sticky-is-line`,gSt=`data-sticky-is-line-number`,_St=`data-sticky-is-folding-icon`,vSt=class extends R{constructor(e){super(),this._editor=e,this._foldingIconStore=new L,this._rootDomNode=document.createElement(`div`),this._lineNumbersDomNode=document.createElement(`div`),this._linesDomNodeScrollable=document.createElement(`div`),this._linesDomNode=document.createElement(`div`),this._lineHeight=this._editor.getOption(67),this._renderedStickyLines=[],this._lineNumbers=[],this._lastLineRelativePosition=0,this._minContentWidthInPx=0,this._isOnGlyphMargin=!1,this._lineNumbersDomNode.className=`sticky-widget-line-numbers`,this._lineNumbersDomNode.setAttribute(`role`,`none`),this._linesDomNode.className=`sticky-widget-lines`,this._linesDomNode.setAttribute(`role`,`list`),this._linesDomNodeScrollable.className=`sticky-widget-lines-scrollable`,this._linesDomNodeScrollable.appendChild(this._linesDomNode),this._rootDomNode.className=`sticky-widget`,this._rootDomNode.classList.toggle(`peek`,e instanceof i4),this._rootDomNode.appendChild(this._lineNumbersDomNode),this._rootDomNode.appendChild(this._linesDomNodeScrollable);let t=()=>{this._linesDomNode.style.left=this._editor.getOption(116).scrollWithEditor?`-${this._editor.getScrollLeft()}px`:`0px`};this._register(this._editor.onDidChangeConfiguration(e=>{e.hasChanged(116)&&t(),e.hasChanged(67)&&(this._lineHeight=this._editor.getOption(67))})),this._register(this._editor.onDidScrollChange(e=>{e.scrollLeftChanged&&t(),e.scrollWidthChanged&&this._updateWidgetWidth()})),this._register(this._editor.onDidChangeModel(()=>{t(),this._updateWidgetWidth()})),this._register(this._foldingIconStore),t(),this._register(this._editor.onDidLayoutChange(e=>{this._updateWidgetWidth()})),this._updateWidgetWidth()}get lineNumbers(){return this._lineNumbers}get lineNumberCount(){return this._lineNumbers.length}getRenderedStickyLine(e){return this._renderedStickyLines.find(t=>t.lineNumber===e)}getCurrentLines(){return this._lineNumbers}setState(e,t,n){if(n===void 0&&(!this._previousState&&!e||this._previousState&&this._previousState.equals(e)))return;let r=this._isWidgetHeightZero(e),i=r?void 0:e,a=r?0:this._findLineToRebuildWidgetFrom(e,n);this._renderRootNode(i,t,a),this._previousState=e}_isWidgetHeightZero(e){if(!e)return!0;let t=e.startLineNumbers.length*this._lineHeight+e.lastLineRelativePosition;if(t>0){this._lastLineRelativePosition=e.lastLineRelativePosition;let t=[...e.startLineNumbers];e.showEndForLine!==null&&(t[e.showEndForLine]=e.endLineNumbers[e.showEndForLine]),this._lineNumbers=t}else this._lastLineRelativePosition=0,this._lineNumbers=[];return t===0}_findLineToRebuildWidgetFrom(e,t){if(!e||!this._previousState)return 0;if(t!==void 0)return t;let n=this._previousState,r=e.startLineNumbers.findIndex(e=>!n.startLineNumbers.includes(e));return r===-1?0:r}_updateWidgetWidth(){let e=this._editor.getLayoutInfo(),t=e.contentLeft;this._lineNumbersDomNode.style.width=`${t}px`,this._linesDomNodeScrollable.style.setProperty(`--vscode-editorStickyScroll-scrollableWidth`,`${this._editor.getScrollWidth()-e.verticalScrollbarWidth}px`),this._rootDomNode.style.width=`${e.width-e.verticalScrollbarWidth}px`}_clearStickyLinesFromLine(e){this._foldingIconStore.clear();for(let t=e;t<this._renderedStickyLines.length;t++){let e=this._renderedStickyLines[t];e.lineNumberDomNode.remove(),e.lineDomNode.remove()}this._renderedStickyLines=this._renderedStickyLines.slice(0,e),this._rootDomNode.style.display=`none`}_useFoldingOpacityTransition(e){this._lineNumbersDomNode.style.setProperty(`--vscode-editorStickyScroll-foldingOpacityTransition`,`opacity ${e?.5:0}s`)}_setFoldingIconsVisibility(e){for(let t of this._renderedStickyLines){let n=t.foldingIcon;n&&n.setVisible(e?!0:n.isCollapsed)}}async _renderRootNode(e,t,n){if(this._clearStickyLinesFromLine(n),!e)return;for(let e of this._renderedStickyLines)this._updateTopAndZIndexOfStickyLine(e);let r=this._editor.getLayoutInfo(),i=this._lineNumbers.slice(n);for(let[e,a]of i.entries()){let i=this._renderChildNode(e+n,a,t,r);i&&(this._linesDomNode.appendChild(i.lineDomNode),this._lineNumbersDomNode.appendChild(i.lineNumberDomNode),this._renderedStickyLines.push(i))}t&&(this._setFoldingHoverListeners(),this._useFoldingOpacityTransition(!this._isOnGlyphMargin));let a=this._lineNumbers.length*this._lineHeight+this._lastLineRelativePosition;this._rootDomNode.style.display=`block`,this._lineNumbersDomNode.style.height=`${a}px`,this._linesDomNodeScrollable.style.height=`${a}px`,this._rootDomNode.style.height=`${a}px`,this._rootDomNode.style.marginLeft=`0px`,this._minContentWidthInPx=Math.max(...this._renderedStickyLines.map(e=>e.scrollWidth))+r.verticalScrollbarWidth,this._editor.layoutOverlayWidget(this)}_setFoldingHoverListeners(){this._editor.getOption(111)===`mouseover`&&(this._foldingIconStore.add(G(this._lineNumbersDomNode,K.MOUSE_ENTER,()=>{this._isOnGlyphMargin=!0,this._setFoldingIconsVisibility(!0)})),this._foldingIconStore.add(G(this._lineNumbersDomNode,K.MOUSE_LEAVE,()=>{this._isOnGlyphMargin=!1,this._useFoldingOpacityTransition(!0),this._setFoldingIconsVisibility(!1)})))}_renderChildNode(e,t,n,r){let i=this._editor._getViewModel();if(!i)return;let a=i.coordinatesConverter.convertModelPositionToViewPosition(new V(t,1)).lineNumber,o=i.getViewLineRenderingData(a),s=this._editor.getOption(68),c;try{c=SX.filter(o.inlineDecorations,a,o.minColumn,o.maxColumn)}catch{c=[]}let l=new wX(!0,!0,o.content,o.continuesWithWrappedLine,o.isBasicASCII,o.containsRTL,0,o.tokens,c,o.tabSize,o.startVisibleColumn,1,1,1,500,`none`,!0,!0,null),u=new EF(2e3),d=DX(l,u),f;f=mSt?mSt.createHTML(u.build()):u.build();let p=document.createElement(`span`);p.setAttribute(w7,String(e)),p.setAttribute(hSt,``),p.setAttribute(`role`,`listitem`),p.tabIndex=0,p.className=`sticky-line-content`,p.classList.add(`stickyLine${t}`),p.style.lineHeight=`${this._lineHeight}px`,p.innerHTML=f;let m=document.createElement(`span`);m.setAttribute(w7,String(e)),m.setAttribute(gSt,``),m.className=`sticky-line-number`,m.style.lineHeight=`${this._lineHeight}px`;let h=r.contentLeft;m.style.width=`${h}px`;let g=document.createElement(`span`);s.renderType===1||s.renderType===3&&t%10==0?g.innerText=t.toString():s.renderType===2&&(g.innerText=Math.abs(t-this._editor.getPosition().lineNumber).toString()),g.className=`sticky-line-number-inner`,g.style.lineHeight=`${this._lineHeight}px`,g.style.width=`${r.lineNumbersWidth}px`,g.style.paddingLeft=`${r.lineNumbersLeft}px`,m.appendChild(g);let _=this._renderFoldingIconForLine(n,t);_&&m.appendChild(_.domNode),this._editor.applyFontInfo(p),this._editor.applyFontInfo(g),m.style.lineHeight=`${this._lineHeight}px`,p.style.lineHeight=`${this._lineHeight}px`,m.style.height=`${this._lineHeight}px`,p.style.height=`${this._lineHeight}px`;let v=new ySt(e,t,p,m,_,d.characterMapping,p.scrollWidth);return this._updateTopAndZIndexOfStickyLine(v)}_updateTopAndZIndexOfStickyLine(e){let t=e.index,n=e.lineDomNode,r=e.lineNumberDomNode,i=t===this._lineNumbers.length-1;n.style.zIndex=i?`0`:`1`,r.style.zIndex=i?`0`:`1`;let a=`${t*this._lineHeight+this._lastLineRelativePosition+(e.foldingIcon?.isCollapsed?1:0)}px`,o=`${t*this._lineHeight}px`;return n.style.top=i?a:o,r.style.top=i?a:o,e}_renderFoldingIconForLine(e,t){let n=this._editor.getOption(111);if(!e||n===`never`)return;let r=e.regions,i=r.findRange(t),a=r.getStartLineNumber(i);if(t!==a)return;let o=r.isCollapsed(i),s=new bSt(o,a,r.getEndLineNumber(i),this._lineHeight);return s.setVisible(this._isOnGlyphMargin?!0:o||n===`always`),s.domNode.setAttribute(_St,``),s}getId(){return`editor.contrib.stickyScrollWidget`}getDomNode(){return this._rootDomNode}getPosition(){return{preference:2,stackOridinal:10}}getMinContentWidthInPx(){return this._minContentWidthInPx}focusLineWithIndex(e){0<=e&&e<this._renderedStickyLines.length&&this._renderedStickyLines[e].lineDomNode.focus()}getEditorPositionFromNode(e){if(!e||e.children.length>0)return null;let t=this._getRenderedStickyLineFromChildDomNode(e);if(!t)return null;let n=dZ(t.characterMapping,e,0);return new V(t.lineNumber,n)}getLineNumberFromChildDomNode(e){return this._getRenderedStickyLineFromChildDomNode(e)?.lineNumber??null}_getRenderedStickyLineFromChildDomNode(e){let t=this.getLineIndexFromChildDomNode(e);return t===null||t<0||t>=this._renderedStickyLines.length?null:this._renderedStickyLines[t]}getLineIndexFromChildDomNode(e){let t=this._getAttributeValue(e,w7);return t?parseInt(t,10):null}isInStickyLine(e){return this._getAttributeValue(e,hSt)!==void 0}isInFoldingIconDomNode(e){return this._getAttributeValue(e,_St)!==void 0}_getAttributeValue(e,t){for(;e&&e!==this._rootDomNode;){let n=e.getAttribute(t);if(n!==null)return n;e=e.parentElement}}},ySt=class{constructor(e,t,n,r,i,a,o){this.index=e,this.lineNumber=t,this.lineDomNode=n,this.lineNumberDomNode=r,this.foldingIcon=i,this.characterMapping=a,this.scrollWidth=o}},bSt=class{constructor(e,t,n,r){this.isCollapsed=e,this.foldingStartLine=t,this.foldingEndLine=n,this.dimension=r,this.domNode=document.createElement(`div`),this.domNode.style.width=`${r}px`,this.domNode.style.height=`${r}px`,this.domNode.className=RN.asClassName(e?Z3:X3)}setVisible(e){this.domNode.style.cursor=e?`pointer`:`default`,this.domNode.style.opacity=e?`1`:`0`}},T7=class{constructor(e,t){this.startLineNumber=e,this.endLineNumber=t}},E7=class{constructor(e,t,n){this.range=e,this.children=t,this.parent=n}},xSt=class{constructor(e,t,n,r){this.uri=e,this.version=t,this.element=n,this.outlineProviderId=r}},D7=function(e,t,n,r){var i=arguments.length,a=i<3?t:r===null?r=Object.getOwnPropertyDescriptor(t,n):r,o;if(typeof Reflect==`object`&&typeof Reflect.decorate==`function`)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},O7=function(e,t){return function(n,r){t(n,r,e)}},k7;(function(e){e.OUTLINE_MODEL=`outlineModel`,e.FOLDING_PROVIDER_MODEL=`foldingProviderModel`,e.INDENTATION_MODEL=`indentationModel`})(k7||={});var A7;(function(e){e[e.VALID=0]=`VALID`,e[e.INVALID=1]=`INVALID`,e[e.CANCELED=2]=`CANCELED`})(A7||={});var j7=class extends R{constructor(e,t,n,r){switch(super(),this._editor=e,this._modelProviders=[],this._modelPromise=null,this._updateScheduler=this._register(new JA(300)),this._updateOperation=this._register(new L),this._editor.getOption(116).defaultModel){case k7.OUTLINE_MODEL:this._modelProviders.push(new M7(this._editor,r));case k7.FOLDING_PROVIDER_MODEL:this._modelProviders.push(new P7(this._editor,t,r));case k7.INDENTATION_MODEL:this._modelProviders.push(new N7(this._editor,n));break}}dispose(){this._modelProviders.forEach(e=>e.dispose()),this._updateOperation.clear(),this._cancelModelPromise(),super.dispose()}_cancelModelPromise(){this._modelPromise&&=(this._modelPromise.cancel(),null)}async update(e){return this._updateOperation.clear(),this._updateOperation.add({dispose:()=>{this._cancelModelPromise(),this._updateScheduler.cancel()}}),this._cancelModelPromise(),await this._updateScheduler.trigger(async()=>{for(let t of this._modelProviders){let{statusPromise:n,modelPromise:r}=t.computeStickyModel(e);this._modelPromise=r;let i=await n;if(this._modelPromise!==r)return null;switch(i){case A7.CANCELED:return this._updateOperation.clear(),null;case A7.VALID:return t.stickyModel}}return null}).catch(e=>(qE(e),null))}};j7=D7([O7(2,DN),O7(3,hR)],j7);var SSt=class extends R{constructor(e){super(),this._editor=e,this._stickyModel=null}get stickyModel(){return this._stickyModel}_invalid(){return this._stickyModel=null,A7.INVALID}computeStickyModel(e){if(e.isCancellationRequested||!this.isProviderValid())return{statusPromise:this._invalid(),modelPromise:null};let t=KA(e=>this.createModelFromProvider(e));return{statusPromise:t.then(t=>this.isModelValid(t)?e.isCancellationRequested?A7.CANCELED:(this._stickyModel=this.createStickyModel(e,t),A7.VALID):this._invalid()).then(void 0,e=>(qE(e),A7.CANCELED)),modelPromise:t}}isModelValid(e){return!0}isProviderValid(){return!0}},M7=class extends SSt{constructor(e,t){super(e),this._languageFeaturesService=t}createModelFromProvider(e){return Qht.create(this._languageFeaturesService.documentSymbolProvider,this._editor.getModel(),e)}createStickyModel(e,t){let{stickyOutlineElement:n,providerID:r}=this._stickyModelFromOutlineModel(t,this._stickyModel?.outlineProviderId),i=this._editor.getModel();return new xSt(i.uri,i.getVersionId(),n,r)}isModelValid(e){return e&&e.children.size>0}_stickyModelFromOutlineModel(e,t){let n;if(lE.first(e.children.values())instanceof Zht){let r=lE.find(e.children.values(),e=>e.id===t);if(r)n=r.children;else{let r=``,i=-1,a;for(let[t,n]of e.children.entries()){let e=this._findSumOfRangesOfGroup(n);e>i&&(a=n,i=e,r=n.id)}t=r,n=a.children}}else n=e.children;let r=[],i=Array.from(n.values()).sort((e,t)=>{let n=new T7(e.symbol.range.startLineNumber,e.symbol.range.endLineNumber),r=new T7(t.symbol.range.startLineNumber,t.symbol.range.endLineNumber);return this._comparator(n,r)});for(let e of i)r.push(this._stickyModelFromOutlineElement(e,e.symbol.selectionRange.startLineNumber));return{stickyOutlineElement:new E7(void 0,r,void 0),providerID:t}}_stickyModelFromOutlineElement(e,t){let n=[];for(let r of e.children.values())if(r.symbol.selectionRange.startLineNumber!==r.symbol.range.endLineNumber)if(r.symbol.selectionRange.startLineNumber!==t)n.push(this._stickyModelFromOutlineElement(r,r.symbol.selectionRange.startLineNumber));else for(let e of r.children.values())n.push(this._stickyModelFromOutlineElement(e,r.symbol.selectionRange.startLineNumber));return n.sort((e,t)=>this._comparator(e.range,t.range)),new E7(new T7(e.symbol.selectionRange.startLineNumber,e.symbol.range.endLineNumber),n,void 0)}_comparator(e,t){return e.startLineNumber===t.startLineNumber?t.endLineNumber-e.endLineNumber:e.startLineNumber-t.startLineNumber}_findSumOfRangesOfGroup(e){let t=0;for(let n of e.children.values())t+=this._findSumOfRangesOfGroup(n);return e instanceof f6?t+e.symbol.range.endLineNumber-e.symbol.selectionRange.startLineNumber:t}};M7=D7([O7(1,hR)],M7);var CSt=class extends SSt{constructor(e){super(e),this._foldingLimitReporter=new Sht(e)}createStickyModel(e,t){let n=this._fromFoldingRegions(t),r=this._editor.getModel();return new xSt(r.uri,r.getVersionId(),n,void 0)}isModelValid(e){return e!==null}_fromFoldingRegions(e){let t=e.length,n=[],r=new E7(void 0,[],void 0);for(let i=0;i<t;i++){let t=e.getParentIndex(i),a;a=t===-1?r:n[t];let o=new E7(new T7(e.getStartLineNumber(i),e.getEndLineNumber(i)+1),[],a);a.children.push(o),n.push(o)}return r}},N7=class extends CSt{constructor(e,t){super(e),this._languageConfigurationService=t,this.provider=this._register(new Y3(e.getModel(),this._languageConfigurationService,this._foldingLimitReporter))}async createModelFromProvider(e){return this.provider.compute(e)}};N7=D7([O7(1,pI)],N7);var P7=class extends CSt{constructor(e,t,n){super(e),this._languageFeaturesService=n;let r=a6.getFoldingRangeProviders(this._languageFeaturesService,e.getModel());r.length>0&&(this.provider=this._register(new t6(e.getModel(),r,t,this._foldingLimitReporter,void 0)))}isProviderValid(){return this.provider!==void 0}async createModelFromProvider(e){return this.provider?.compute(e)??null}};P7=D7([O7(2,hR)],P7);var wSt=function(e,t,n,r){var i=arguments.length,a=i<3?t:r===null?r=Object.getOwnPropertyDescriptor(t,n):r,o;if(typeof Reflect==`object`&&typeof Reflect.decorate==`function`)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},TSt=function(e,t){return function(n,r){t(n,r,e)}},ESt=class{constructor(e,t,n){this.startLineNumber=e,this.endLineNumber=t,this.nestingDepth=n}},F7=class extends R{constructor(e,t,n){super(),this._languageFeaturesService=t,this._languageConfigurationService=n,this._onDidChangeStickyScroll=this._register(new B),this.onDidChangeStickyScroll=this._onDidChangeStickyScroll.event,this._model=null,this._cts=null,this._stickyModelProvider=null,this._editor=e,this._sessionStore=this._register(new L),this._updateSoon=this._register(new tj(()=>this.update(),50)),this._register(this._editor.onDidChangeConfiguration(e=>{e.hasChanged(116)&&this.readConfiguration()})),this.readConfiguration()}readConfiguration(){this._sessionStore.clear(),this._editor.getOption(116).enabled&&(this._sessionStore.add(this._editor.onDidChangeModel(()=>{this._model=null,this.updateStickyModelProvider(),this._onDidChangeStickyScroll.fire(),this.update()})),this._sessionStore.add(this._editor.onDidChangeHiddenAreas(()=>this.update())),this._sessionStore.add(this._editor.onDidChangeModelContent(()=>this._updateSoon.schedule())),this._sessionStore.add(this._languageFeaturesService.documentSymbolProvider.onDidChange(()=>this.update())),this._sessionStore.add(fD(()=>{this._stickyModelProvider?.dispose(),this._stickyModelProvider=null})),this.updateStickyModelProvider(),this.update())}getVersionId(){return this._model?.version}updateStickyModelProvider(){this._stickyModelProvider?.dispose(),this._stickyModelProvider=null;let e=this._editor;e.hasModel()&&(this._stickyModelProvider=new j7(e,()=>this._updateSoon.schedule(),this._languageConfigurationService,this._languageFeaturesService))}async update(){this._cts?.dispose(!0),this._cts=new ED,await this.updateStickyModel(this._cts.token),this._onDidChangeStickyScroll.fire()}async updateStickyModel(e){if(!this._editor.hasModel()||!this._stickyModelProvider||this._editor.getModel().isTooLargeForTokenization()){this._model=null;return}let t=await this._stickyModelProvider.update(e);e.isCancellationRequested||(this._model=t)}updateIndex(e){return e===-1?e=0:e<0&&(e=-e-2),e}getCandidateStickyLinesIntersectingFromStickyModel(e,t,n,r,i){if(t.children.length===0)return;let a=i,o=[];for(let e=0;e<t.children.length;e++){let n=t.children[e];n.range&&o.push(n.range.startLineNumber)}let s=this.updateIndex(Uw(o,e.startLineNumber,(e,t)=>e-t)),c=this.updateIndex(Uw(o,e.startLineNumber+r,(e,t)=>e-t));for(let o=s;o<=c;o++){let s=t.children[o];if(!s)return;if(s.range){let t=s.range.startLineNumber,i=s.range.endLineNumber;e.startLineNumber<=i+1&&t-1<=e.endLineNumber&&t!==a&&(a=t,n.push(new ESt(t,i-1,r+1)),this.getCandidateStickyLinesIntersectingFromStickyModel(e,s,n,r+1,t))}else this.getCandidateStickyLinesIntersectingFromStickyModel(e,s,n,r,i)}}getCandidateStickyLinesIntersecting(e){if(!this._model?.element)return[];let t=[];this.getCandidateStickyLinesIntersectingFromStickyModel(e,this._model.element,t,0,-1);let n=this._editor._getViewModel()?.getHiddenAreas();if(n)for(let e of n)t=t.filter(t=>!(t.startLineNumber>=e.startLineNumber&&t.endLineNumber<=e.endLineNumber+1));return t}};F7=wSt([TSt(1,hR),TSt(2,pI)],F7);var DSt=function(e,t,n,r){var i=arguments.length,a=i<3?t:r===null?r=Object.getOwnPropertyDescriptor(t,n):r,o;if(typeof Reflect==`object`&&typeof Reflect.decorate==`function`)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},I7=function(e,t){return function(n,r){t(n,r,e)}},L7,R7=class extends R{static#e=L7=this;static#t=this.ID=`store.contrib.stickyScrollController`;constructor(e,t,n,r,i,a,o){super(),this._editor=e,this._contextMenuService=t,this._languageFeaturesService=n,this._instaService=r,this._contextKeyService=o,this._sessionStore=new L,this._maxStickyLines=2**53-1,this._candidateDefinitionsLength=-1,this._focusedStickyElementIndex=-1,this._enabled=!1,this._focused=!1,this._positionRevealed=!1,this._onMouseDown=!1,this._endLineNumbers=[],this._stickyScrollWidget=new vSt(this._editor),this._stickyLineCandidateProvider=new F7(this._editor,n,i),this._register(this._stickyScrollWidget),this._register(this._stickyLineCandidateProvider),this._widgetState=C7.Empty,this._onDidResize(),this._readConfiguration();let s=this._stickyScrollWidget.getDomNode();this._register(this._editor.onDidChangeConfiguration(e=>{this._readConfigurationChange(e)})),this._register(G(s,K.CONTEXT_MENU,async e=>{this._onContextMenu(oM(s),e)})),this._stickyScrollFocusedContextKey=$.stickyScrollFocused.bindTo(this._contextKeyService),this._stickyScrollVisibleContextKey=$.stickyScrollVisible.bindTo(this._contextKeyService);let c=this._register($M(s));this._register(c.onDidBlur(e=>{this._positionRevealed===!1&&s.clientHeight===0?(this._focusedStickyElementIndex=-1,this.focus()):this._disposeFocusStickyScrollStore()})),this._register(c.onDidFocus(e=>{this.focus()})),this._registerMouseListeners(),this._register(G(s,K.MOUSE_DOWN,e=>{this._onMouseDown=!0}))}static get(e){return e.getContribution(L7.ID)}_disposeFocusStickyScrollStore(){this._stickyScrollFocusedContextKey.set(!1),this._focusDisposableStore?.dispose(),this._focused=!1,this._positionRevealed=!1,this._onMouseDown=!1}focus(){if(this._onMouseDown){this._onMouseDown=!1,this._editor.focus();return}this._stickyScrollFocusedContextKey.get()!==!0&&(this._focused=!0,this._focusDisposableStore=new L,this._stickyScrollFocusedContextKey.set(!0),this._focusedStickyElementIndex=this._stickyScrollWidget.lineNumbers.length-1,this._stickyScrollWidget.focusLineWithIndex(this._focusedStickyElementIndex))}focusNext(){this._focusedStickyElementIndex<this._stickyScrollWidget.lineNumberCount-1&&this._focusNav(!0)}focusPrevious(){this._focusedStickyElementIndex>0&&this._focusNav(!1)}selectEditor(){this._editor.focus()}_focusNav(e){this._focusedStickyElementIndex=e?this._focusedStickyElementIndex+1:this._focusedStickyElementIndex-1,this._stickyScrollWidget.focusLineWithIndex(this._focusedStickyElementIndex)}goToFocused(){let e=this._stickyScrollWidget.lineNumbers;this._disposeFocusStickyScrollStore(),this._revealPosition({lineNumber:e[this._focusedStickyElementIndex],column:1})}_revealPosition(e){this._reveaInEditor(e,()=>this._editor.revealPosition(e))}_revealLineInCenterIfOutsideViewport(e){this._reveaInEditor(e,()=>this._editor.revealLineInCenterIfOutsideViewport(e.lineNumber,0))}_reveaInEditor(e,t){this._focused&&this._disposeFocusStickyScrollStore(),this._positionRevealed=!0,t(),this._editor.setSelection(H.fromPositions(e)),this._editor.focus()}_registerMouseListeners(){let e=this._register(new L),t=this._register(new n4(this._editor,{extractLineNumberFromMouseEvent:e=>{let t=this._stickyScrollWidget.getEditorPositionFromNode(e.target.element);return t?t.lineNumber:0}})),n=e=>{if(!this._editor.hasModel()||e.target.type!==12||e.target.detail!==this._stickyScrollWidget.getId())return null;let t=e.target.element;if(!t||t.innerText!==t.innerHTML)return null;let n=this._stickyScrollWidget.getEditorPositionFromNode(t);return n?{range:new H(n.lineNumber,n.column,n.lineNumber,n.column+t.innerText.length),textElement:t}:null},r=this._stickyScrollWidget.getDomNode();this._register(pM(r,K.CLICK,e=>{if(e.ctrlKey||e.altKey||e.metaKey||!e.leftButton)return;if(e.shiftKey){let t=this._stickyScrollWidget.getLineIndexFromChildDomNode(e.target);if(t===null)return;let n=new V(this._endLineNumbers[t],1);this._revealLineInCenterIfOutsideViewport(n);return}if(this._stickyScrollWidget.isInFoldingIconDomNode(e.target)){let t=this._stickyScrollWidget.getLineNumberFromChildDomNode(e.target);this._toggleFoldingRegionForLine(t);return}if(!this._stickyScrollWidget.isInStickyLine(e.target))return;let t=this._stickyScrollWidget.getEditorPositionFromNode(e.target);if(!t){let n=this._stickyScrollWidget.getLineNumberFromChildDomNode(e.target);if(n===null)return;t=new V(n,1)}this._revealPosition(t)})),this._register(pM(r,K.MOUSE_MOVE,e=>{if(e.shiftKey){let t=this._stickyScrollWidget.getLineIndexFromChildDomNode(e.target);if(t===null||this._showEndForLine!==null&&this._showEndForLine===t)return;this._showEndForLine=t,this._renderStickyScroll();return}this._showEndForLine!==void 0&&(this._showEndForLine=void 0,this._renderStickyScroll())})),this._register(G(r,K.MOUSE_LEAVE,e=>{this._showEndForLine!==void 0&&(this._showEndForLine=void 0,this._renderStickyScroll())})),this._register(t.onMouseMoveOrRelevantKeyDown(([t,r])=>{let i=n(t);if(!i||!t.hasTriggerModifier||!this._editor.hasModel()){e.clear();return}let{range:a,textElement:o}=i;if(!a.equalsRange(this._stickyRangeProjectedOnEditor))this._stickyRangeProjectedOnEditor=a,e.clear();else if(o.style.textDecoration===`underline`)return;let s=new ED;e.add(fD(()=>s.dispose(!0)));let c;M4(this._languageFeaturesService.definitionProvider,this._editor.getModel(),new V(a.startLineNumber,a.startColumn+1),!1,s.token).then((t=>{if(!s.token.isCancellationRequested)if(t.length!==0){this._candidateDefinitionsLength=t.length;let n=o;c===n?c||(c=n,c.style.textDecoration=`underline`,e.add(fD(()=>{c.style.textDecoration=`none`}))):(e.clear(),c=n,c.style.textDecoration=`underline`,e.add(fD(()=>{c.style.textDecoration=`none`})))}else e.clear()}))})),this._register(t.onCancel(()=>{e.clear()})),this._register(t.onExecute(async e=>{if(e.target.type!==12||e.target.detail!==this._stickyScrollWidget.getId())return;let t=this._stickyScrollWidget.getEditorPositionFromNode(e.target.element);t&&(!this._editor.hasModel()||!this._stickyRangeProjectedOnEditor||(this._candidateDefinitionsLength>1&&(this._focused&&this._disposeFocusStickyScrollStore(),this._revealPosition({lineNumber:t.lineNumber,column:1})),this._instaService.invokeFunction(Xft,e,this._editor,{uri:this._editor.getModel().uri,range:this._stickyRangeProjectedOnEditor})))}))}_onContextMenu(e,t){let n=new HA(e,t);this._contextMenuService.showContextMenu({menuId:EP.StickyScrollContext,getAnchor:()=>n})}_toggleFoldingRegionForLine(e){if(!this._foldingModel||e===null)return;let t=this._stickyScrollWidget.getRenderedStickyLine(e),n=t?.foldingIcon;if(!n)return;G3(this._foldingModel,Number.MAX_VALUE,[e]),n.isCollapsed=!n.isCollapsed;let r=(n.isCollapsed?this._editor.getTopForLineNumber(n.foldingEndLine):this._editor.getTopForLineNumber(n.foldingStartLine))-this._editor.getOption(67)*t.index+1;this._editor.setScrollTop(r),this._renderStickyScroll(e)}_readConfiguration(){let e=this._editor.getOption(116);if(e.enabled===!1){this._editor.removeOverlayWidget(this._stickyScrollWidget),this._sessionStore.clear(),this._enabled=!1;return}else e.enabled&&!this._enabled&&(this._editor.addOverlayWidget(this._stickyScrollWidget),this._sessionStore.add(this._editor.onDidScrollChange(e=>{e.scrollTopChanged&&(this._showEndForLine=void 0,this._renderStickyScroll())})),this._sessionStore.add(this._editor.onDidLayoutChange(()=>this._onDidResize())),this._sessionStore.add(this._editor.onDidChangeModelTokens(e=>this._onTokensChange(e))),this._sessionStore.add(this._stickyLineCandidateProvider.onDidChangeStickyScroll(()=>{this._showEndForLine=void 0,this._renderStickyScroll()})),this._enabled=!0);this._editor.getOption(68).renderType===2&&this._sessionStore.add(this._editor.onDidChangeCursorPosition(()=>{this._showEndForLine=void 0,this._renderStickyScroll(0)}))}_readConfigurationChange(e){(e.hasChanged(116)||e.hasChanged(73)||e.hasChanged(67)||e.hasChanged(111)||e.hasChanged(68))&&this._readConfiguration(),e.hasChanged(68)&&this._renderStickyScroll(0)}_needsUpdate(e){let t=this._stickyScrollWidget.getCurrentLines();for(let n of t)for(let t of e.ranges)if(n>=t.fromLineNumber&&n<=t.toLineNumber)return!0;return!1}_onTokensChange(e){this._needsUpdate(e)&&this._renderStickyScroll(0)}_onDidResize(){let e=this._editor.getLayoutInfo().height/this._editor.getOption(67);this._maxStickyLines=Math.round(e*.25)}async _renderStickyScroll(e){let t=this._editor.getModel();if(!t||t.isTooLargeForTokenization()){this._resetState();return}let n=this._updateAndGetMinRebuildFromLine(e),r=this._stickyLineCandidateProvider.getVersionId();if(r===void 0||r===t.getVersionId())if(!this._focused)await this._updateState(n);else if(this._focusedStickyElementIndex===-1)await this._updateState(n),this._focusedStickyElementIndex=this._stickyScrollWidget.lineNumberCount-1,this._focusedStickyElementIndex!==-1&&this._stickyScrollWidget.focusLineWithIndex(this._focusedStickyElementIndex);else{let e=this._stickyScrollWidget.lineNumbers[this._focusedStickyElementIndex];await this._updateState(n),this._stickyScrollWidget.lineNumberCount===0?this._focusedStickyElementIndex=-1:(this._stickyScrollWidget.lineNumbers.includes(e)||(this._focusedStickyElementIndex=this._stickyScrollWidget.lineNumberCount-1),this._stickyScrollWidget.focusLineWithIndex(this._focusedStickyElementIndex))}}_updateAndGetMinRebuildFromLine(e){if(e!==void 0){let t=this._minRebuildFromLine===void 0?1/0:this._minRebuildFromLine;this._minRebuildFromLine=Math.min(e,t)}return this._minRebuildFromLine}async _updateState(e){this._minRebuildFromLine=void 0,this._foldingModel=await a6.get(this._editor)?.getFoldingModel()??void 0,this._widgetState=this.findScrollWidgetState();let t=this._widgetState.startLineNumbers.length>0;this._stickyScrollVisibleContextKey.set(t),this._stickyScrollWidget.setState(this._widgetState,this._foldingModel,e)}async _resetState(){this._minRebuildFromLine=void 0,this._foldingModel=void 0,this._widgetState=C7.Empty,this._stickyScrollVisibleContextKey.set(!1),this._stickyScrollWidget.setState(void 0,void 0)}findScrollWidgetState(){let e=this._editor.getOption(67),t=Math.min(this._maxStickyLines,this._editor.getOption(116).maxLineCount),n=this._editor.getScrollTop(),r=0,i=[],a=[],o=this._editor.getVisibleRanges();if(o.length!==0){let s=new T7(o[0].startLineNumber,o[o.length-1].endLineNumber),c=this._stickyLineCandidateProvider.getCandidateStickyLinesIntersecting(s);for(let o of c){let s=o.startLineNumber,c=o.endLineNumber,l=o.nestingDepth;if(c-s>0){let o=(l-1)*e,u=l*e,d=this._editor.getBottomForLineNumber(s)-n,f=this._editor.getTopForLineNumber(c)-n,p=this._editor.getBottomForLineNumber(c)-n;if(o>f&&o<=p){i.push(s),a.push(c+1),r=p-u;break}else u>d&&u<=p&&(i.push(s),a.push(c+1));if(i.length===t)break}}}return this._endLineNumbers=a,new C7(i,a,r,this._showEndForLine)}dispose(){super.dispose(),this._sessionStore.dispose()}};R7=L7=DSt([I7(1,lV),I7(2,hR),I7(3,DN),I7(4,pI),I7(5,lz),I7(6,uP)],R7);var OSt=class extends MP{constructor(){super({id:`editor.action.toggleStickyScroll`,title:{...IT(`toggleEditorStickyScroll`,`Toggle Editor Sticky Scroll`),mnemonicTitle:F({key:`mitoggleStickyScroll`,comment:[`&& denotes a mnemonic`]},`&&Toggle Editor Sticky Scroll`)},metadata:{description:IT(`toggleEditorStickyScroll.description`,`Toggle/enable the editor sticky scroll which shows the nested scopes at the top of the viewport`)},category:pSt.View,toggled:{condition:Y.equals(`config.editor.stickyScroll.enabled`,!0),title:F(`stickyScroll`,`Sticky Scroll`),mnemonicTitle:F({key:`miStickyScroll`,comment:[`&& denotes a mnemonic`]},`&&Sticky Scroll`)},menu:[{id:EP.CommandPalette},{id:EP.MenubarAppearanceMenu,group:`4_editor`,order:3},{id:EP.StickyScrollContext}]})}async run(e){let t=e.get(PF),n=!t.getValue(`editor.stickyScroll.enabled`);return t.updateValue(`editor.stickyScroll.enabled`,n)}},z7=100,kSt=class extends GP{constructor(){super({id:`editor.action.focusStickyScroll`,title:{...IT(`focusStickyScroll`,`Focus on the editor sticky scroll`),mnemonicTitle:F({key:`mifocusStickyScroll`,comment:[`&& denotes a mnemonic`]},`&&Focus Sticky Scroll`)},precondition:Y.and(Y.has(`config.editor.stickyScroll.enabled`),$.stickyScrollVisible),menu:[{id:EP.CommandPalette}]})}runEditorCommand(e,t){R7.get(t)?.focus()}},ASt=class extends GP{constructor(){super({id:`editor.action.selectNextStickyScrollLine`,title:IT(`selectNextStickyScrollLine.title`,`Select the next editor sticky scroll line`),precondition:$.stickyScrollFocused.isEqualTo(!0),keybinding:{weight:z7,primary:18}})}runEditorCommand(e,t){R7.get(t)?.focusNext()}},jSt=class extends GP{constructor(){super({id:`editor.action.selectPreviousStickyScrollLine`,title:IT(`selectPreviousStickyScrollLine.title`,`Select the previous sticky scroll line`),precondition:$.stickyScrollFocused.isEqualTo(!0),keybinding:{weight:z7,primary:16}})}runEditorCommand(e,t){R7.get(t)?.focusPrevious()}},MSt=class extends GP{constructor(){super({id:`editor.action.goToFocusedStickyScrollLine`,title:IT(`goToFocusedStickyScrollLine.title`,`Go to the focused sticky scroll line`),precondition:$.stickyScrollFocused.isEqualTo(!0),keybinding:{weight:z7,primary:3}})}runEditorCommand(e,t){R7.get(t)?.goToFocused()}},NSt=class extends GP{constructor(){super({id:`editor.action.selectEditor`,title:IT(`selectEditor.title`,`Select Editor`),precondition:$.stickyScrollFocused.isEqualTo(!0),keybinding:{weight:z7,primary:9}})}runEditorCommand(e,t){R7.get(t)?.selectEditor()}};YP(R7.ID,R7,1),NP(OSt),NP(kSt),NP(jSt),NP(ASt),NP(MSt),NP(NSt);var PSt=function(e,t,n,r){var i=arguments.length,a=i<3?t:r===null?r=Object.getOwnPropertyDescriptor(t,n):r,o;if(typeof Reflect==`object`&&typeof Reflect.decorate==`function`)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},B7=function(e,t){return function(n,r){t(n,r,e)}},FSt=class{constructor(e,t,n,r,i,a){this.range=e,this.insertText=t,this.filterText=n,this.additionalTextEdits=r,this.command=i,this.completion=a}},V7=class extends lBe{constructor(e,t,n,r,i,a){super(i.disposable),this.model=e,this.line=t,this.word=n,this.completionModel=r,this._suggestMemoryService=a}canBeReused(e,t,n){return this.model===e&&this.line===t&&this.word.word.length>0&&this.word.startColumn===n.startColumn&&this.word.endColumn<n.endColumn&&this.completionModel.getIncompleteProvider().size===0}get items(){let e=[],{items:t}=this.completionModel,n=this._suggestMemoryService.select(this.model,{lineNumber:this.line,column:this.word.endColumn+this.completionModel.lineContext.characterCountDelta},t),r=lE.slice(t,n),i=lE.slice(t,0,n),a=5;for(let t of lE.concat(r,i)){if(t.score===rH.Default)continue;let n=new H(t.editStart.lineNumber,t.editStart.column,t.editInsertEnd.lineNumber,t.editInsertEnd.column+this.completionModel.lineContext.characterCountDelta),r=t.completion.insertTextRules&&t.completion.insertTextRules&4?{snippet:t.completion.insertText}:t.completion.insertText;e.push(new FSt(n,r,t.filterTextLow??t.labelLow,t.completion.additionalTextEdits,t.completion.command,t)),a-->=0&&t.resolve(wD.None)}return e}};V7=PSt([B7(5,G6)],V7);var H7=class extends R{constructor(e,t,n,r){super(),this._languageFeatureService=e,this._clipboardService=t,this._suggestMemoryService=n,this._editorService=r,this._store.add(e.inlineCompletionsProvider.register(`*`,this))}async provideInlineCompletions(e,t,n,r){if(n.selectedSuggestionInfo)return;let i;for(let t of this._editorService.listCodeEditors())if(t.getModel()===e){i=t;break}if(!i)return;let a=i.getOption(90);if(A6.isAllOff(a))return;e.tokenization.tokenizeIfCheap(t.lineNumber);let o=e.tokenization.getLineTokens(t.lineNumber),s=o.getStandardTokenType(o.findTokenIndexAtOffset(Math.max(t.column-1-1,0)));if(A6.valueFor(a,s)!==`inline`)return;let c=e.getWordAtPosition(t),l;if(c?.word||(l=this._getTriggerCharacterInfo(e,t)),!c?.word&&!l||(c||=e.getWordUntilPosition(t),c.endColumn!==t.column))return;let u,d=e.getValueInRange(new H(t.lineNumber,1,t.lineNumber,t.column));if(!l&&this._lastResult?.canBeReused(e,t.lineNumber,c)){let e=new b_t(d,t.column-this._lastResult.word.endColumn);this._lastResult.completionModel.lineContext=e,this._lastResult.acquire(),u=this._lastResult}else{let n=await D6(this._languageFeatureService.completionProvider,e,t,new E6(void 0,$6.createSuggestFilter(i).itemKind,l?.providers),l&&{triggerKind:1,triggerCharacter:l.ch},r),a;n.needsClipboard&&(a=await this._clipboardService.readText());let o=new x_t(n.items,t.column,new b_t(d,0),y_t.None,i.getOption(119),i.getOption(113),{boostFullMatch:!1,firstMatchCanBeWeak:!1},a);u=new V7(e,t.lineNumber,c,o,n,this._suggestMemoryService)}return this._lastResult=u,u}handleItemDidShow(e,t){t.completion.resolve(wD.None)}freeInlineCompletions(e){e.release()}_getTriggerCharacterInfo(e,t){let n=e.getValueInRange(H.fromPositions({lineNumber:t.lineNumber,column:t.column-1},t)),r=new Set;for(let t of this._languageFeatureService.completionProvider.all(e))t.triggerCharacters?.includes(n)&&r.add(t);if(r.size!==0)return{providers:r,ch:n}}};H7=PSt([B7(0,hR),B7(1,YY),B7(2,G6),B7(3,kN)],H7),aX(H7),X(class extends UP{constructor(){super({id:`editor.action.forceRetokenize`,label:F(`forceRetokenize`,`Developer: Force Retokenize`),alias:`Developer: Force Retokenize`,precondition:void 0})}run(e,t){if(!t.hasModel())return;let n=t.getModel();n.tokenization.resetTokenization();let r=new hD;n.tokenization.forceTokenization(n.getLineCount()),r.stop(),console.log(`tokenization took ${r.elapsed()}`)}}),NP(class e extends MP{static#e=this.ID=`editor.action.toggleTabFocusMode`;constructor(){super({id:e.ID,title:IT({key:`toggle.tabMovesFocus`,comment:[`Turn on/off use of tab key for moving focus around VS Code`]},`Toggle Tab Key Moves Focus`),precondition:void 0,keybinding:{primary:2091,mac:{primary:1323},weight:100},metadata:{description:IT(`tabMovesFocusDescriptions`,`Determines whether the tab key moves focus around the workbench or inserts the tab character in the current editor. This is also called tab trapping, tab navigation, or tab focus mode.`)},f1:!0})}run(){let e=!YX.getTabFocusMode();YX.setTabFocusMode(e),YH(e?F(`toggle.tabMovesFocus.on`,`Pressing Tab will now move focus to the next focusable element`):F(`toggle.tabMovesFocus.off`,`Pressing Tab will now insert the tab character`))}});var ISt=function(e,t,n,r){var i=arguments.length,a=i<3?t:r===null?r=Object.getOwnPropertyDescriptor(t,n):r,o;if(typeof Reflect==`object`&&typeof Reflect.decorate==`function`)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},LSt=function(e,t){return function(n,r){t(n,r,e)}},U7=class extends R{get enabled(){return this._enabled}set enabled(e){e?(this.el.setAttribute(`aria-disabled`,`false`),this.el.tabIndex=0,this.el.style.pointerEvents=`auto`,this.el.style.opacity=`1`,this.el.style.cursor=`pointer`,this._enabled=!1):(this.el.setAttribute(`aria-disabled`,`true`),this.el.tabIndex=-1,this.el.style.pointerEvents=`none`,this.el.style.opacity=`0.4`,this.el.style.cursor=`default`,this._enabled=!0),this._enabled=e}constructor(e,t,n={},r,i){super(),this._link=t,this._hoverService=r,this._enabled=!0,this.el=q(e,J(`a.monaco-link`,{tabIndex:t.tabIndex??0,href:t.href},t.label)),this.hoverDelegate=n.hoverDelegate??xW(`mouse`),this.setTooltip(t.title),this.el.setAttribute(`role`,`button`);let a=this._register(new TV(this.el,`click`)),o=this._register(new TV(this.el,`keypress`)),s=z.chain(o.event,e=>e.map(e=>new BA(e)).filter(e=>e.keyCode===3)),c=this._register(new TV(this.el,pV.Tap)).event;this._register(mV.addTarget(this.el));let l=z.any(a.event,s,c);this._register(l(e=>{this.enabled&&(QM.stop(e,!0),n?.opener?n.opener(this._link.href):i.open(this._link.href,{allowCommands:!0}))})),this.enabled=!0}setTooltip(e){this.hoverDelegate.showNativeHover?this.el.title=e??``:!this.hover&&e?this.hover=this._register(this._hoverService.setupManagedHover(this.hoverDelegate,this.el,e)):this.hover&&this.hover.update(e)}};U7=ISt([LSt(3,oV),LSt(4,wV)],U7);var RSt=function(e,t,n,r){var i=arguments.length,a=i<3?t:r===null?r=Object.getOwnPropertyDescriptor(t,n):r,o;if(typeof Reflect==`object`&&typeof Reflect.decorate==`function`)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},zSt=function(e,t){return function(n,r){t(n,r,e)}},BSt=26,W7=class extends R{constructor(e,t){super(),this._editor=e,this.instantiationService=t,this.banner=this._register(this.instantiationService.createInstance(G7))}hide(){this._editor.setBanner(null,0),this.banner.clear()}show(e){this.banner.show({...e,onClose:()=>{this.hide(),e.onClose?.()}}),this._editor.setBanner(this.banner.element,BSt)}};W7=RSt([zSt(1,DN)],W7);var G7=class extends R{constructor(e){super(),this.instantiationService=e,this.markdownRenderer=this.instantiationService.createInstance(BH,{}),this.element=J(`div.editor-banner`),this.element.tabIndex=0}getAriaLabel(e){if(e.ariaLabel)return e.ariaLabel;if(typeof e.message==`string`)return e.message}getBannerMessage(e){if(typeof e==`string`){let t=J(`span`);return t.innerText=e,t}return this.markdownRenderer.render(e).element}clear(){dM(this.element)}show(e){dM(this.element);let t=this.getAriaLabel(e);t&&this.element.setAttribute(`aria-label`,t);let n=q(this.element,J(`div.icon-container`));n.setAttribute(`aria-hidden`,`true`),e.icon&&n.appendChild(J(`div${RN.asCSSSelector(e.icon)}`));let r=q(this.element,J(`div.message-container`));if(r.setAttribute(`aria-hidden`,`true`),r.appendChild(this.getBannerMessage(e.message)),this.messageActionsContainer=q(this.element,J(`div.message-actions-container`)),e.actions)for(let t of e.actions)this._register(this.instantiationService.createInstance(U7,this.messageActionsContainer,{...t,tabIndex:-1},{}));let i=q(this.element,J(`div.action-container`));this.actionBar=this._register(new dG(i)),this.actionBar.push(this._register(new MN(`banner.close`,`Close Banner`,RN.asClassName(J8e),!0,()=>{typeof e.onClose==`function`&&e.onClose()})),{icon:!0,label:!1}),this.actionBar.setFocusable(!1)}};G7=RSt([zSt(0,DN)],G7);var K7=function(e,t,n,r){var i=arguments.length,a=i<3?t:r===null?r=Object.getOwnPropertyDescriptor(t,n):r,o;if(typeof Reflect==`object`&&typeof Reflect.decorate==`function`)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},q7=function(e,t){return function(n,r){t(n,r,e)}};const VSt=kY(`extensions-warning-message`,W.warning,F(`warningIcon`,`Icon shown with a warning message in the extensions editor.`));var J7=class extends R{static#e=this.ID=`editor.contrib.unicodeHighlighter`;constructor(e,t,n,r){super(),this._editor=e,this._editorWorkerService=t,this._workspaceTrustService=n,this._highlighter=null,this._bannerClosed=!1,this._updateState=e=>{if(e&&e.hasMore){if(this._bannerClosed)return;let t=Math.max(e.ambiguousCharacterCount,e.nonBasicAsciiCharacterCount,e.invisibleCharacterCount),n;if(e.nonBasicAsciiCharacterCount>=t)n={message:F(`unicodeHighlighting.thisDocumentHasManyNonBasicAsciiUnicodeCharacters`,`This document contains many non-basic ASCII unicode characters`),command:new t9};else if(e.ambiguousCharacterCount>=t)n={message:F(`unicodeHighlighting.thisDocumentHasManyAmbiguousUnicodeCharacters`,`This document contains many ambiguous unicode characters`),command:new $7};else if(e.invisibleCharacterCount>=t)n={message:F(`unicodeHighlighting.thisDocumentHasManyInvisibleUnicodeCharacters`,`This document contains many invisible unicode characters`),command:new e9};else throw Error(`Unreachable`);this._bannerController.show({id:`unicodeHighlightBanner`,message:n.message,icon:VSt,actions:[{label:n.command.shortLabel,href:`command:${n.command.id}`}],onClose:()=>{this._bannerClosed=!0}})}else this._bannerController.hide()},this._bannerController=this._register(r.createInstance(W7,e)),this._register(this._editor.onDidChangeModel(()=>{this._bannerClosed=!1,this._updateHighlighter()})),this._options=e.getOption(126),this._register(n.onDidChangeTrust(e=>{this._updateHighlighter()})),this._register(e.onDidChangeConfiguration(t=>{t.hasChanged(126)&&(this._options=e.getOption(126),this._updateHighlighter())})),this._updateHighlighter()}dispose(){this._highlighter&&=(this._highlighter.dispose(),null),super.dispose()}_updateHighlighter(){if(this._updateState(null),this._highlighter&&=(this._highlighter.dispose(),null),!this._editor.hasModel())return;let e=HSt(this._workspaceTrustService.isWorkspaceTrusted(),this._options);if([e.nonBasicASCII,e.ambiguousCharacters,e.invisibleCharacters].every(e=>e===!1))return;let t={nonBasicASCII:e.nonBasicASCII,ambiguousCharacters:e.ambiguousCharacters,invisibleCharacters:e.invisibleCharacters,includeComments:e.includeComments,includeStrings:e.includeStrings,allowedCodePoints:Object.keys(e.allowedCharacters).map(e=>e.codePointAt(0)),allowedLocales:Object.keys(e.allowedLocales).map(e=>e===`_os`?new Intl.NumberFormat().resolvedOptions().locale:e===`_vscode`?lze:e)};this._editorWorkerService.canComputeUnicodeHighlights(this._editor.getModel().uri)?this._highlighter=new Y7(this._editor,t,this._updateState,this._editorWorkerService):this._highlighter=new USt(this._editor,t,this._updateState)}getDecorationInfo(e){return this._highlighter?this._highlighter.getDecorationInfo(e):null}};J7=K7([q7(1,CG),q7(2,VZe),q7(3,DN)],J7);function HSt(e,t){return{nonBasicASCII:t.nonBasicASCII===`inUntrustedWorkspace`?!e:t.nonBasicASCII,ambiguousCharacters:t.ambiguousCharacters,invisibleCharacters:t.invisibleCharacters,includeComments:t.includeComments===`inUntrustedWorkspace`?!e:t.includeComments,includeStrings:t.includeStrings===`inUntrustedWorkspace`?!e:t.includeStrings,allowedCharacters:t.allowedCharacters,allowedLocales:t.allowedLocales}}var Y7=class extends R{constructor(e,t,n,r){super(),this._editor=e,this._options=t,this._updateState=n,this._editorWorkerService=r,this._model=this._editor.getModel(),this._decorations=this._editor.createDecorationsCollection(),this._updateSoon=this._register(new tj(()=>this._update(),250)),this._register(this._editor.onDidChangeModelContent(()=>{this._updateSoon.schedule()})),this._updateSoon.schedule()}dispose(){this._decorations.clear(),super.dispose()}_update(){if(this._model.isDisposed())return;if(!this._model.mightContainNonBasicASCII()){this._decorations.clear();return}let e=this._model.getVersionId();this._editorWorkerService.computedUnicodeHighlights(this._model.uri,this._options).then(t=>{if(this._model.isDisposed()||this._model.getVersionId()!==e)return;this._updateState(t);let n=[];if(!t.hasMore)for(let e of t.ranges)n.push({range:e,options:qSt.instance.getDecorationFromOptions(this._options)});this._decorations.set(n)})}getDecorationInfo(e){if(!this._decorations.has(e))return null;let t=this._editor.getModel();return ZQ(t,e)?{reason:KSt(t.getValueInRange(e.range),this._options),inComment:QQ(t,e),inString:$Q(t,e)}:null}};Y7=K7([q7(3,CG)],Y7);var USt=class extends R{constructor(e,t,n){super(),this._editor=e,this._options=t,this._updateState=n,this._model=this._editor.getModel(),this._decorations=this._editor.createDecorationsCollection(),this._updateSoon=this._register(new tj(()=>this._update(),250)),this._register(this._editor.onDidLayoutChange(()=>{this._updateSoon.schedule()})),this._register(this._editor.onDidScrollChange(()=>{this._updateSoon.schedule()})),this._register(this._editor.onDidChangeHiddenAreas(()=>{this._updateSoon.schedule()})),this._register(this._editor.onDidChangeModelContent(()=>{this._updateSoon.schedule()})),this._updateSoon.schedule()}dispose(){this._decorations.clear(),super.dispose()}_update(){if(this._model.isDisposed())return;if(!this._model.mightContainNonBasicASCII()){this._decorations.clear();return}let e=this._editor.getVisibleRanges(),t=[],n={ranges:[],ambiguousCharacterCount:0,invisibleCharacterCount:0,nonBasicAsciiCharacterCount:0,hasMore:!1};for(let t of e){let e=eL.computeUnicodeHighlights(this._model,this._options,t);for(let t of e.ranges)n.ranges.push(t);n.ambiguousCharacterCount+=n.ambiguousCharacterCount,n.invisibleCharacterCount+=n.invisibleCharacterCount,n.nonBasicAsciiCharacterCount+=n.nonBasicAsciiCharacterCount,n.hasMore=n.hasMore||e.hasMore}if(!n.hasMore)for(let e of n.ranges)t.push({range:e,options:qSt.instance.getDecorationFromOptions(this._options)});this._updateState(n),this._decorations.set(t)}getDecorationInfo(e){if(!this._decorations.has(e))return null;let t=this._editor.getModel(),n=t.getValueInRange(e.range);return ZQ(t,e)?{reason:KSt(n,this._options),inComment:QQ(t,e),inString:$Q(t,e)}:null}},WSt=F(`unicodeHighlight.configureUnicodeHighlightOptions`,`Configure Unicode Highlight Options`),X7=class{constructor(e,t,n){this._editor=e,this._languageService=t,this._openerService=n,this.hoverOrdinal=5}computeSync(e,t){if(!this._editor.hasModel()||e.type!==1)return[];let n=this._editor.getModel(),r=this._editor.getContribution(J7.ID);if(!r)return[];let i=[],a=new Set,o=300;for(let e of t){let t=r.getDecorationInfo(e);if(!t)continue;let s=n.getValueInRange(e.range).codePointAt(0),c=Q7(s),l;switch(t.reason.kind){case 0:l=hA(t.reason.confusableWith)?F(`unicodeHighlight.characterIsAmbiguousASCII`,`The character {0} could be confused with the ASCII character {1}, which is more common in source code.`,c,Q7(t.reason.confusableWith.codePointAt(0))):F(`unicodeHighlight.characterIsAmbiguous`,`The character {0} could be confused with the character {1}, which is more common in source code.`,c,Q7(t.reason.confusableWith.codePointAt(0)));break;case 1:l=F(`unicodeHighlight.characterIsInvisible`,`The character {0} is invisible.`,c);break;case 2:l=F(`unicodeHighlight.characterIsNonBasicAscii`,`The character {0} is not a basic ASCII character.`,c);break}if(a.has(l))continue;a.add(l);let u={codePoint:s,reason:t.reason,inComment:t.inComment,inString:t.inString},d=F(`unicodeHighlight.adjustSettings`,`Adjust settings`),f=`command:${XSt.ID}?${encodeURIComponent(JSON.stringify(u))}`,p=new vH(``,!0).appendMarkdown(l).appendText(` `).appendLink(f,d,WSt);i.push(new X2(this,e.range,[p],!1,o++))}return i}renderHoverParts(e,t){return ift(e,t,this._editor,this._languageService,this._openerService)}};X7=K7([q7(1,zF),q7(2,wV)],X7);function Z7(e){return`U+${e.toString(16).padStart(4,`0`)}`}function Q7(e){let t=`\`${Z7(e)}\``;return TA.isInvisibleCharacter(e)||(t+=` "${`${GSt(e)}`}"`),t}function GSt(e){return e===96?"`` ` ``":"`"+String.fromCodePoint(e)+"`"}function KSt(e,t){return eL.computeUnicodeHighlightReason(e,t)}var qSt=class e{constructor(){this.map=new Map}static#e=this.instance=new e;getDecorationFromOptions(e){return this.getDecoration(!e.includeComments,!e.includeStrings)}getDecoration(e,t){let n=`${e}${t}`,r=this.map.get(n);return r||(r=vq.createDynamic({description:`unicode-highlight`,stickiness:1,className:`unicode-highlight`,showIfCollapsed:!0,overviewRuler:null,minimap:null,hideInCommentTokens:e,hideInStringTokens:t}),this.map.set(n,r)),r}},JSt=class extends UP{constructor(){super({id:$7.ID,label:F(`action.unicodeHighlight.disableHighlightingInComments`,`Disable highlighting of characters in comments`),alias:`Disable highlighting of characters in comments`,precondition:void 0}),this.shortLabel=F(`unicodeHighlight.disableHighlightingInComments.shortLabel`,`Disable Highlight In Comments`)}async run(e,t,n){let r=e?.get(PF);r&&this.runAction(r)}async runAction(e){await e.updateValue(VE.includeComments,!1,2)}},YSt=class extends UP{constructor(){super({id:$7.ID,label:F(`action.unicodeHighlight.disableHighlightingInStrings`,`Disable highlighting of characters in strings`),alias:`Disable highlighting of characters in strings`,precondition:void 0}),this.shortLabel=F(`unicodeHighlight.disableHighlightingInStrings.shortLabel`,`Disable Highlight In Strings`)}async run(e,t,n){let r=e?.get(PF);r&&this.runAction(r)}async runAction(e){await e.updateValue(VE.includeStrings,!1,2)}},$7=class e extends UP{static#e=this.ID=`editor.action.unicodeHighlight.disableHighlightingOfAmbiguousCharacters`;constructor(){super({id:e.ID,label:F(`action.unicodeHighlight.disableHighlightingOfAmbiguousCharacters`,`Disable highlighting of ambiguous characters`),alias:`Disable highlighting of ambiguous characters`,precondition:void 0}),this.shortLabel=F(`unicodeHighlight.disableHighlightingOfAmbiguousCharacters.shortLabel`,`Disable Ambiguous Highlight`)}async run(e,t,n){let r=e?.get(PF);r&&this.runAction(r)}async runAction(e){await e.updateValue(VE.ambiguousCharacters,!1,2)}},e9=class e extends UP{static#e=this.ID=`editor.action.unicodeHighlight.disableHighlightingOfInvisibleCharacters`;constructor(){super({id:e.ID,label:F(`action.unicodeHighlight.disableHighlightingOfInvisibleCharacters`,`Disable highlighting of invisible characters`),alias:`Disable highlighting of invisible characters`,precondition:void 0}),this.shortLabel=F(`unicodeHighlight.disableHighlightingOfInvisibleCharacters.shortLabel`,`Disable Invisible Highlight`)}async run(e,t,n){let r=e?.get(PF);r&&this.runAction(r)}async runAction(e){await e.updateValue(VE.invisibleCharacters,!1,2)}},t9=class e extends UP{static#e=this.ID=`editor.action.unicodeHighlight.disableHighlightingOfNonBasicAsciiCharacters`;constructor(){super({id:e.ID,label:F(`action.unicodeHighlight.disableHighlightingOfNonBasicAsciiCharacters`,`Disable highlighting of non basic ASCII characters`),alias:`Disable highlighting of non basic ASCII characters`,precondition:void 0}),this.shortLabel=F(`unicodeHighlight.disableHighlightingOfNonBasicAsciiCharacters.shortLabel`,`Disable Non ASCII Highlight`)}async run(e,t,n){let r=e?.get(PF);r&&this.runAction(r)}async runAction(e){await e.updateValue(VE.nonBasicASCII,!1,2)}},XSt=class e extends UP{static#e=this.ID=`editor.action.unicodeHighlight.showExcludeOptions`;constructor(){super({id:e.ID,label:F(`action.unicodeHighlight.showExcludeOptions`,`Show Exclude Options`),alias:`Show Exclude Options`,precondition:void 0})}async run(e,t,n){let{codePoint:r,reason:i,inString:a,inComment:o}=n,s=String.fromCodePoint(r),c=e.get(Oq),l=e.get(PF);function u(e){return TA.isInvisibleCharacter(e)?F(`unicodeHighlight.excludeInvisibleCharFromBeingHighlighted`,`Exclude {0} (invisible character) from being highlighted`,Z7(e)):F(`unicodeHighlight.excludeCharFromBeingHighlighted`,`Exclude {0} from being highlighted`,`${Z7(e)} "${s}"`)}let d=[];if(i.kind===0)for(let e of i.notAmbiguousInLocales)d.push({label:F(`unicodeHighlight.allowCommonCharactersInLanguage`,`Allow unicode characters that are more common in the language "{0}".`,e),run:async()=>{QSt(l,[e])}});if(d.push({label:u(r),run:()=>ZSt(l,[r])}),o){let e=new JSt;d.push({label:e.label,run:async()=>e.runAction(l)})}else if(a){let e=new YSt;d.push({label:e.label,run:async()=>e.runAction(l)})}if(i.kind===0){let e=new $7;d.push({label:e.label,run:async()=>e.runAction(l)})}else if(i.kind===1){let e=new e9;d.push({label:e.label,run:async()=>e.runAction(l)})}else if(i.kind===2){let e=new t9;d.push({label:e.label,run:async()=>e.runAction(l)})}else $St(i);let f=await c.pick(d,{title:WSt});f&&await f.run()}};async function ZSt(e,t){let n=e.getValue(VE.allowedCharacters),r;r=typeof n==`object`&&n?n:{};for(let e of t)r[String.fromCodePoint(e)]=!0;await e.updateValue(VE.allowedCharacters,r,2)}async function QSt(e,t){let n=e.inspect(VE.allowedLocales).user?.value,r;r=typeof n==`object`&&n?Object.assign({},n):{};for(let e of t)r[e]=!0;await e.updateValue(VE.allowedLocales,r,2)}function $St(e){throw Error(`Unexpected value: ${e}`)}X($7),X(e9),X(t9),X(XSt),YP(J7.ID,J7,1),k2.register(X7);var eCt=function(e,t,n,r){var i=arguments.length,a=i<3?t:r===null?r=Object.getOwnPropertyDescriptor(t,n):r,o;if(typeof Reflect==`object`&&typeof Reflect.decorate==`function`)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},tCt=function(e,t){return function(n,r){t(n,r,e)}},nCt=`ignoreUnusualLineTerminators`;function rCt(e,t,n){e.setModelProperty(t.uri,nCt,n)}function iCt(e,t){return e.getModelProperty(t.uri,nCt)}var n9=class extends R{static#e=this.ID=`editor.contrib.unusualLineTerminatorsDetector`;constructor(e,t,n){super(),this._editor=e,this._dialogService=t,this._codeEditorService=n,this._isPresentingDialog=!1,this._config=this._editor.getOption(127),this._register(this._editor.onDidChangeConfiguration(e=>{e.hasChanged(127)&&(this._config=this._editor.getOption(127),this._checkForUnusualLineTerminators())})),this._register(this._editor.onDidChangeModel(()=>{this._checkForUnusualLineTerminators()})),this._register(this._editor.onDidChangeModelContent(e=>{e.isUndoing||this._checkForUnusualLineTerminators()})),this._checkForUnusualLineTerminators()}async _checkForUnusualLineTerminators(){if(this._config===`off`||!this._editor.hasModel())return;let e=this._editor.getModel();if(!e.mightContainUnusualLineTerminators()||iCt(this._codeEditorService,e)===!0||this._editor.getOption(92))return;if(this._config===`auto`){e.removeUnusualLineTerminators(this._editor.getSelections());return}if(this._isPresentingDialog)return;let t;try{this._isPresentingDialog=!0,t=await this._dialogService.confirm({title:F(`unusualLineTerminators.title`,`Unusual Line Terminators`),message:F(`unusualLineTerminators.message`,`Detected unusual line terminators`),detail:F(`unusualLineTerminators.detail`,`The file '{0}' contains one or more unusual line terminator characters, like Line Separator (LS) or Paragraph Separator (PS).
|
|
3412
3412
|
|
|
3413
|
-
It is recommended to remove them from the file. This can be configured via \`editor.unusualLineTerminators\`.`,hH(e.uri)),primaryButton:F({key:`unusualLineTerminators.fix`,comment:[`&& denotes a mnemonic`]},`&&Remove Unusual Line Terminators`),cancelButton:F(`unusualLineTerminators.ignore`,`Ignore`)})}finally{this._isPresentingDialog=!1}if(!t.confirmed){rCt(this._codeEditorService,e,!0);return}e.removeUnusualLineTerminators(this._editor.getSelections())}};n9=eCt([tCt(1,HR),tCt(2,kN)],n9),YP(n9.ID,n9,1);var aCt=function(e,t,n,r){var i=arguments.length,a=i<3?t:r===null?r=Object.getOwnPropertyDescriptor(t,n):r,o;if(typeof Reflect==`object`&&typeof Reflect.decorate==`function`)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},oCt=function(e,t){return function(n,r){t(n,r,e)}},sCt=class{constructor(){this.selector={language:`*`}}provideDocumentHighlights(e,t,n){let r=[],i=e.getWordAtPosition({lineNumber:t.lineNumber,column:t.column});if(!i)return Promise.resolve(r);if(!e.isDisposed())return e.findMatches(i.word,!0,!1,!0,fE,!1).map(e=>({range:e.range,kind:AO.Text}))}provideMultiDocumentHighlights(e,t,n,r){let i=new II,a=e.getWordAtPosition({lineNumber:t.lineNumber,column:t.column});if(!a)return Promise.resolve(i);for(let t of[e,...n]){if(t.isDisposed())continue;let e=t.findMatches(a.word,!0,!1,!0,fE,!1).map(e=>({range:e.range,kind:AO.Text}));e&&i.set(t.uri,e)}return i}},r9=class extends R{constructor(e){super(),this._register(e.documentHighlightProvider.register(`*`,new sCt)),this._register(e.multiDocumentHighlightProvider.register(`*`,new sCt))}};r9=aCt([oCt(0,hR)],r9);var cCt=function(e,t,n,r){var i=arguments.length,a=i<3?t:r===null?r=Object.getOwnPropertyDescriptor(t,n):r,o;if(typeof Reflect==`object`&&typeof Reflect.decorate==`function`)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},i9=function(e,t){return function(n,r){t(n,r,e)}},a9,o9,s9=new lP(`hasWordHighlights`,!1);function lCt(e,t,n,r){return QA(e.ordered(t).map(e=>()=>Promise.resolve(e.provideDocumentHighlights(t,n,r)).then(void 0,JE)),e=>e!=null).then(e=>{if(e){let n=new II;return n.set(t.uri,e),n}return new II})}function uCt(e,t,n,r,i,a){return QA(e.ordered(t).map(e=>()=>{let r=a.filter(e=>qI(e)).filter(t=>Bz(e.selector,t.uri,t.getLanguageId(),!0,void 0,void 0)>0);return Promise.resolve(e.provideMultiDocumentHighlights(t,n,r,i)).then(void 0,JE)}),e=>e!=null)}var dCt=class{constructor(e,t,n){this._model=e,this._selection=t,this._wordSeparators=n,this._wordRange=this._getCurrentWordRange(e,t),this._result=null}get result(){return this._result||=KA(e=>this._compute(this._model,this._selection,this._wordSeparators,e)),this._result}_getCurrentWordRange(e,t){let n=e.getWordAtPosition(t.getPosition());return n?new H(t.startLineNumber,n.startColumn,t.startLineNumber,n.endColumn):null}isValid(e,t,n){let r=t.startLineNumber,i=t.startColumn,a=t.endColumn,o=this._getCurrentWordRange(e,t),s=!!(this._wordRange&&this._wordRange.equalsRange(o));for(let e=0,t=n.length;!s&&e<t;e++){let t=n.getRange(e);t&&t.startLineNumber===r&&t.startColumn<=i&&t.endColumn>=a&&(s=!0)}return s}cancel(){this.result.cancel()}},fCt=class extends dCt{constructor(e,t,n,r){super(e,t,n),this._providers=r}_compute(e,t,n,r){return lCt(this._providers,e,t.getPosition(),r).then(e=>e||new II)}},pCt=class extends dCt{constructor(e,t,n,r,i){super(e,t,n),this._providers=r,this._otherModels=i}_compute(e,t,n,r){return uCt(this._providers,e,t.getPosition(),n,r,this._otherModels).then(e=>e||new II)}};function mCt(e,t,n,r,i){return new fCt(t,n,i,e)}function hCt(e,t,n,r,i,a){return new pCt(t,n,i,e,a)}KP(`_executeDocumentHighlights`,async(e,t,n)=>(await lCt(e.get(hR).documentHighlightProvider,t,n,wD.None))?.get(t.uri));var c9=class{static#e=a9=this;static#t=this.storedDecorationIDs=new II;static#n=this.query=null;constructor(e,t,n,r,i){this.toUnhook=new L,this.workerRequestTokenId=0,this.workerRequestCompleted=!1,this.workerRequestValue=new II,this.lastCursorPositionChangeTime=0,this.renderDecorationsTimer=-1,this.runDelayer=this.toUnhook.add(new JA(50)),this.editor=e,this.providers=t,this.multiDocumentProviders=n,this.codeEditorService=i,this._hasWordHighlights=s9.bindTo(r),this._ignorePositionChangeEvent=!1,this.occurrencesHighlight=this.editor.getOption(81),this.model=this.editor.getModel(),this.toUnhook.add(e.onDidChangeCursorPosition(e=>{this._ignorePositionChangeEvent||this.occurrencesHighlight!==`off`&&this.runDelayer.trigger(()=>{this._onPositionChanged(e)})})),this.toUnhook.add(e.onDidFocusEditorText(e=>{this.occurrencesHighlight!==`off`&&(this.workerRequest||this.runDelayer.trigger(()=>{this._run()}))})),this.toUnhook.add(e.onDidChangeModelContent(e=>{Jj(this.model.uri,`output`)||this._stopAll()})),this.toUnhook.add(e.onDidChangeModel(e=>{!e.newModelUrl&&e.oldModelUrl?this._stopSingular():a9.query&&this._run()})),this.toUnhook.add(e.onDidChangeConfiguration(e=>{let t=this.editor.getOption(81);if(this.occurrencesHighlight!==t)switch(this.occurrencesHighlight=t,t){case`off`:this._stopAll();break;case`singleFile`:this._stopAll(a9.query?.modelInfo?.model);break;case`multiFile`:a9.query&&this._run(!0);break;default:console.warn(`Unknown occurrencesHighlight setting value:`,t);break}})),this.decorations=this.editor.createDecorationsCollection(),this.workerRequestTokenId=0,this.workerRequest=null,this.workerRequestCompleted=!1,this.lastCursorPositionChangeTime=0,this.renderDecorationsTimer=-1,a9.query&&this._run()}hasDecorations(){return this.decorations.length>0}restore(){this.occurrencesHighlight!==`off`&&(this.runDelayer.cancel(),this._run())}_getSortedHighlights(){return this.decorations.getRanges().sort(H.compareRangesUsingStarts)}moveNext(){let e=this._getSortedHighlights(),t=(e.findIndex(e=>e.containsPosition(this.editor.getPosition()))+1)%e.length,n=e[t];try{this._ignorePositionChangeEvent=!0,this.editor.setPosition(n.getStartPosition()),this.editor.revealRangeInCenterIfOutsideViewport(n);let r=this._getWord();r&&YH(`${this.editor.getModel().getLineContent(n.startLineNumber)}, ${t+1} of ${e.length} for '${r.word}'`)}finally{this._ignorePositionChangeEvent=!1}}moveBack(){let e=this._getSortedHighlights(),t=(e.findIndex(e=>e.containsPosition(this.editor.getPosition()))-1+e.length)%e.length,n=e[t];try{this._ignorePositionChangeEvent=!0,this.editor.setPosition(n.getStartPosition()),this.editor.revealRangeInCenterIfOutsideViewport(n);let r=this._getWord();r&&YH(`${this.editor.getModel().getLineContent(n.startLineNumber)}, ${t+1} of ${e.length} for '${r.word}'`)}finally{this._ignorePositionChangeEvent=!1}}_removeSingleDecorations(){if(!this.editor.hasModel())return;let e=a9.storedDecorationIDs.get(this.editor.getModel().uri);e&&(this.editor.removeDecorations(e),a9.storedDecorationIDs.delete(this.editor.getModel().uri),this.decorations.length>0&&(this.decorations.clear(),this._hasWordHighlights.set(!1)))}_removeAllDecorations(e){let t=this.codeEditorService.listCodeEditors(),n=[];for(let r of t){if(!r.hasModel()||mH(r.getModel().uri,e?.uri))continue;let t=a9.storedDecorationIDs.get(r.getModel().uri);if(!t)continue;r.removeDecorations(t),n.push(r.getModel().uri);let i=l9.get(r);i?.wordHighlighter&&i.wordHighlighter.decorations.length>0&&(i.wordHighlighter.decorations.clear(),i.wordHighlighter.workerRequest=null,i.wordHighlighter._hasWordHighlights.set(!1))}for(let e of n)a9.storedDecorationIDs.delete(e)}_stopSingular(){this._removeSingleDecorations(),this.editor.hasTextFocus()&&(this.editor.getModel()?.uri.scheme!==qj.vscodeNotebookCell&&a9.query?.modelInfo?.model.uri.scheme!==qj.vscodeNotebookCell?(a9.query=null,this._run()):a9.query?.modelInfo&&(a9.query.modelInfo=null)),this.renderDecorationsTimer!==-1&&(clearTimeout(this.renderDecorationsTimer),this.renderDecorationsTimer=-1),this.workerRequest!==null&&(this.workerRequest.cancel(),this.workerRequest=null),this.workerRequestCompleted||=(this.workerRequestTokenId++,!0)}_stopAll(e){this._removeAllDecorations(e),this.renderDecorationsTimer!==-1&&(clearTimeout(this.renderDecorationsTimer),this.renderDecorationsTimer=-1),this.workerRequest!==null&&(this.workerRequest.cancel(),this.workerRequest=null),this.workerRequestCompleted||=(this.workerRequestTokenId++,!0)}_onPositionChanged(e){if(this.occurrencesHighlight===`off`){this._stopAll();return}if(e.reason!==3&&this.editor.getModel()?.uri.scheme!==qj.vscodeNotebookCell){this._stopAll();return}this._run()}_getWord(){let e=this.editor.getSelection(),t=e.startLineNumber,n=e.startColumn;return this.model.isDisposed()?null:this.model.getWordAtPosition({lineNumber:t,column:n})}getOtherModelsToHighlight(e){if(!e)return[];if(e.uri.scheme===qj.vscodeNotebookCell){let t=[],n=this.codeEditorService.listCodeEditors();for(let r of n){let n=r.getModel();n&&n!==e&&n.uri.scheme===qj.vscodeNotebookCell&&t.push(n)}return t}let t=[],n=this.codeEditorService.listCodeEditors();for(let r of n){if(!D1(r))continue;let n=r.getModel();n&&e===n.modified&&t.push(n.modified)}if(t.length)return t;if(this.occurrencesHighlight===`singleFile`)return[];for(let r of n){let n=r.getModel();n&&n!==e&&t.push(n)}return t}_run(e){let t;if(this.editor.hasTextFocus()){let e=this.editor.getSelection();if(!e||e.startLineNumber!==e.endLineNumber){a9.query=null,this._stopAll();return}let n=e.startColumn,r=e.endColumn,i=this._getWord();if(!i||i.startColumn>n||i.endColumn<r){a9.query=null,this._stopAll();return}t=this.workerRequest&&this.workerRequest.isValid(this.model,e,this.decorations),a9.query={modelInfo:{model:this.model,selection:e},word:i}}else if(!a9.query){this._stopAll();return}if(this.lastCursorPositionChangeTime=new Date().getTime(),t)this.workerRequestCompleted&&this.renderDecorationsTimer!==-1&&(clearTimeout(this.renderDecorationsTimer),this.renderDecorationsTimer=-1,this._beginRenderDecorations());else if(mH(this.editor.getModel().uri,a9.query.modelInfo?.model.uri)){if(!e){let e=this.decorations.getRanges();for(let t of e)if(t.containsPosition(this.editor.getPosition()))return}this._stopAll(e?this.model:void 0);let t=++this.workerRequestTokenId;this.workerRequestCompleted=!1;let n=this.getOtherModelsToHighlight(this.editor.getModel());if(!a9.query||!a9.query.modelInfo||a9.query.modelInfo.model.isDisposed())return;this.workerRequest=this.computeWithModel(a9.query.modelInfo.model,a9.query.modelInfo.selection,a9.query.word,n),this.workerRequest?.result.then(e=>{t===this.workerRequestTokenId&&(this.workerRequestCompleted=!0,this.workerRequestValue=e||[],this._beginRenderDecorations())},qE)}}computeWithModel(e,t,n,r){return r.length?hCt(this.multiDocumentProviders,e,t,n,this.editor.getOption(132),r):mCt(this.providers,e,t,n,this.editor.getOption(132))}_beginRenderDecorations(){let e=new Date().getTime(),t=this.lastCursorPositionChangeTime+250;e>=t?(this.renderDecorationsTimer=-1,this.renderDecorations()):this.renderDecorationsTimer=setTimeout(()=>{this.renderDecorations()},t-e)}renderDecorations(){this.renderDecorationsTimer=-1;let e=this.codeEditorService.listCodeEditors();for(let t of e){let e=l9.get(t);if(!e)continue;let n=[],r=t.getModel()?.uri;if(r&&this.workerRequestValue.has(r)){let i=a9.storedDecorationIDs.get(r),a=this.workerRequestValue.get(r);if(a)for(let e of a)e.range&&n.push({range:e.range,options:Cbt(e.kind)});let o=[];t.changeDecorations(e=>{o=e.deltaDecorations(i??[],n)}),a9.storedDecorationIDs=a9.storedDecorationIDs.set(r,o),n.length>0&&(e.wordHighlighter?.decorations.set(n),e.wordHighlighter?._hasWordHighlights.set(!0))}}}dispose(){this._stopSingular(),this.toUnhook.dispose()}};c9=a9=cCt([i9(4,kN)],c9);var l9=class extends R{static#e=o9=this;static#t=this.ID=`editor.contrib.wordHighlighter`;static get(e){return e.getContribution(o9.ID)}constructor(e,t,n,r){super(),this._wordHighlighter=null;let i=()=>{e.hasModel()&&!e.getModel().isTooLargeForTokenization()&&(this._wordHighlighter=new c9(e,n.documentHighlightProvider,n.multiDocumentHighlightProvider,t,r))};this._register(e.onDidChangeModel(e=>{this._wordHighlighter&&=(this._wordHighlighter.dispose(),null),i()})),i()}get wordHighlighter(){return this._wordHighlighter}saveViewState(){return!!(this._wordHighlighter&&this._wordHighlighter.hasDecorations())}moveNext(){this._wordHighlighter?.moveNext()}moveBack(){this._wordHighlighter?.moveBack()}restoreViewState(e){this._wordHighlighter&&e&&this._wordHighlighter.restore()}dispose(){this._wordHighlighter&&=(this._wordHighlighter.dispose(),null),super.dispose()}};l9=o9=cCt([i9(1,uP),i9(2,hR),i9(3,kN)],l9);var gCt=class extends UP{constructor(e,t){super(t),this._isNext=e}run(e,t){let n=l9.get(t);n&&(this._isNext?n.moveNext():n.moveBack())}},_Ct=class extends gCt{constructor(){super(!0,{id:`editor.action.wordHighlight.next`,label:F(`wordHighlight.next.label`,`Go to Next Symbol Highlight`),alias:`Go to Next Symbol Highlight`,precondition:s9,kbOpts:{kbExpr:$.editorTextFocus,primary:65,weight:100}})}},vCt=class extends gCt{constructor(){super(!1,{id:`editor.action.wordHighlight.prev`,label:F(`wordHighlight.previous.label`,`Go to Previous Symbol Highlight`),alias:`Go to Previous Symbol Highlight`,precondition:s9,kbOpts:{kbExpr:$.editorTextFocus,primary:1089,weight:100}})}},yCt=class extends UP{constructor(){super({id:`editor.action.wordHighlight.trigger`,label:F(`wordHighlight.trigger.label`,`Trigger Symbol Highlight`),alias:`Trigger Symbol Highlight`,precondition:void 0,kbOpts:{kbExpr:$.editorTextFocus,primary:0,weight:100}})}run(e,t,n){let r=l9.get(t);r&&r.restoreViewState(!0)}};YP(l9.ID,l9,0),X(_Ct),X(vCt),X(yCt),aX(r9);var u9=class extends HP{constructor(e){super(e),this._inSelectionMode=e.inSelectionMode,this._wordNavigationType=e.wordNavigationType}runEditorCommand(e,t,n){if(!t.hasModel())return;let r=BI(t.getOption(132),t.getOption(131)),i=t.getModel(),a=t.getSelections(),o=a.length>1,s=a.map(e=>{let t=new V(e.positionLineNumber,e.positionColumn),n=this._move(r,i,t,this._wordNavigationType,o);return this._moveTo(e,n,this._inSelectionMode)});if(i.pushStackElement(),t._getViewModel().setCursorStates(`moveWordCommand`,3,s.map(e=>MZ.fromModelSelection(e))),s.length===1){let e=new V(s[0].positionLineNumber,s[0].positionColumn);t.revealPosition(e,0)}}_moveTo(e,t,n){return n?new _O(e.selectionStartLineNumber,e.selectionStartColumn,t.lineNumber,t.column):new _O(t.lineNumber,t.column,t.lineNumber,t.column)}},d9=class extends u9{_move(e,t,n,r,i){return WZ.moveWordLeft(e,t,n,r,i)}},f9=class extends u9{_move(e,t,n,r,i){return WZ.moveWordRight(e,t,n,r)}},bCt=class extends d9{constructor(){super({inSelectionMode:!1,wordNavigationType:0,id:`cursorWordStartLeft`,precondition:void 0})}},xCt=class extends d9{constructor(){super({inSelectionMode:!1,wordNavigationType:2,id:`cursorWordEndLeft`,precondition:void 0})}},SCt=class extends d9{constructor(){super({inSelectionMode:!1,wordNavigationType:1,id:`cursorWordLeft`,precondition:void 0,kbOpts:{kbExpr:Y.and($.textInputFocus,Y.and(UH,vJ)?.negate()),primary:2063,mac:{primary:527},weight:100}})}},CCt=class extends d9{constructor(){super({inSelectionMode:!0,wordNavigationType:0,id:`cursorWordStartLeftSelect`,precondition:void 0})}},wCt=class extends d9{constructor(){super({inSelectionMode:!0,wordNavigationType:2,id:`cursorWordEndLeftSelect`,precondition:void 0})}},TCt=class extends d9{constructor(){super({inSelectionMode:!0,wordNavigationType:1,id:`cursorWordLeftSelect`,precondition:void 0,kbOpts:{kbExpr:Y.and($.textInputFocus,Y.and(UH,vJ)?.negate()),primary:3087,mac:{primary:1551},weight:100}})}},ECt=class extends d9{constructor(){super({inSelectionMode:!1,wordNavigationType:3,id:`cursorWordAccessibilityLeft`,precondition:void 0})}_move(e,t,n,r,i){return super._move(BI(GE.wordSeparators.defaultValue,e.intlSegmenterLocales),t,n,r,i)}},DCt=class extends d9{constructor(){super({inSelectionMode:!0,wordNavigationType:3,id:`cursorWordAccessibilityLeftSelect`,precondition:void 0})}_move(e,t,n,r,i){return super._move(BI(GE.wordSeparators.defaultValue,e.intlSegmenterLocales),t,n,r,i)}},OCt=class extends f9{constructor(){super({inSelectionMode:!1,wordNavigationType:0,id:`cursorWordStartRight`,precondition:void 0})}},kCt=class extends f9{constructor(){super({inSelectionMode:!1,wordNavigationType:2,id:`cursorWordEndRight`,precondition:void 0,kbOpts:{kbExpr:Y.and($.textInputFocus,Y.and(UH,vJ)?.negate()),primary:2065,mac:{primary:529},weight:100}})}},ACt=class extends f9{constructor(){super({inSelectionMode:!1,wordNavigationType:2,id:`cursorWordRight`,precondition:void 0})}},jCt=class extends f9{constructor(){super({inSelectionMode:!0,wordNavigationType:0,id:`cursorWordStartRightSelect`,precondition:void 0})}},MCt=class extends f9{constructor(){super({inSelectionMode:!0,wordNavigationType:2,id:`cursorWordEndRightSelect`,precondition:void 0,kbOpts:{kbExpr:Y.and($.textInputFocus,Y.and(UH,vJ)?.negate()),primary:3089,mac:{primary:1553},weight:100}})}},NCt=class extends f9{constructor(){super({inSelectionMode:!0,wordNavigationType:2,id:`cursorWordRightSelect`,precondition:void 0})}},PCt=class extends f9{constructor(){super({inSelectionMode:!1,wordNavigationType:3,id:`cursorWordAccessibilityRight`,precondition:void 0})}_move(e,t,n,r,i){return super._move(BI(GE.wordSeparators.defaultValue,e.intlSegmenterLocales),t,n,r,i)}},FCt=class extends f9{constructor(){super({inSelectionMode:!0,wordNavigationType:3,id:`cursorWordAccessibilityRightSelect`,precondition:void 0})}_move(e,t,n,r,i){return super._move(BI(GE.wordSeparators.defaultValue,e.intlSegmenterLocales),t,n,r,i)}},p9=class extends HP{constructor(e){super(e),this._whitespaceHeuristics=e.whitespaceHeuristics,this._wordNavigationType=e.wordNavigationType}runEditorCommand(e,t,n){let r=e.get(pI);if(!t.hasModel())return;let i=BI(t.getOption(132),t.getOption(131)),a=t.getModel(),o=t.getSelections(),s=t.getOption(6),c=t.getOption(11),l=r.getLanguageConfiguration(a.getLanguageId()).getAutoClosingPairs(),u=t._getViewModel(),d=o.map(e=>new LZ(this._delete({wordSeparators:i,model:a,selection:e,whitespaceHeuristics:this._whitespaceHeuristics,autoClosingDelete:t.getOption(9),autoClosingBrackets:s,autoClosingQuotes:c,autoClosingPairs:l,autoClosedCharacters:u.getCursorAutoClosedCharacters()},this._wordNavigationType),``));t.pushUndoStop(),t.executeCommands(this.id,d),t.pushUndoStop()}},m9=class extends p9{_delete(e,t){return WZ.deleteWordLeft(e,t)||new H(1,1,1,1)}},h9=class extends p9{_delete(e,t){let n=WZ.deleteWordRight(e,t);if(n)return n;let r=e.model.getLineCount(),i=e.model.getLineMaxColumn(r);return new H(r,i,r,i)}},ICt=class extends m9{constructor(){super({whitespaceHeuristics:!1,wordNavigationType:0,id:`deleteWordStartLeft`,precondition:$.writable})}},LCt=class extends m9{constructor(){super({whitespaceHeuristics:!1,wordNavigationType:2,id:`deleteWordEndLeft`,precondition:$.writable})}},RCt=class extends m9{constructor(){super({whitespaceHeuristics:!0,wordNavigationType:0,id:`deleteWordLeft`,precondition:$.writable,kbOpts:{kbExpr:$.textInputFocus,primary:2049,mac:{primary:513},weight:100}})}},zCt=class extends h9{constructor(){super({whitespaceHeuristics:!1,wordNavigationType:0,id:`deleteWordStartRight`,precondition:$.writable})}},BCt=class extends h9{constructor(){super({whitespaceHeuristics:!1,wordNavigationType:2,id:`deleteWordEndRight`,precondition:$.writable})}},VCt=class extends h9{constructor(){super({whitespaceHeuristics:!0,wordNavigationType:2,id:`deleteWordRight`,precondition:$.writable,kbOpts:{kbExpr:$.textInputFocus,primary:2068,mac:{primary:532},weight:100}})}},HCt=class extends UP{constructor(){super({id:`deleteInsideWord`,precondition:$.writable,label:F(`deleteInsideWord`,`Delete Word`),alias:`Delete Word`})}run(e,t,n){if(!t.hasModel())return;let r=BI(t.getOption(132),t.getOption(131)),i=t.getModel(),a=t.getSelections().map(e=>new LZ(WZ.deleteInsideWord(r,i,e),``));t.pushUndoStop(),t.executeCommands(this.id,a),t.pushUndoStop()}};qP(new bCt),qP(new xCt),qP(new SCt),qP(new CCt),qP(new wCt),qP(new TCt),qP(new OCt),qP(new kCt),qP(new ACt),qP(new jCt),qP(new MCt),qP(new NCt),qP(new ECt),qP(new DCt),qP(new PCt),qP(new FCt),qP(new ICt),qP(new LCt),qP(new RCt),qP(new zCt),qP(new BCt),qP(new VCt),X(HCt);var UCt=class extends p9{constructor(){super({whitespaceHeuristics:!0,wordNavigationType:0,id:`deleteWordPartLeft`,precondition:$.writable,kbOpts:{kbExpr:$.textInputFocus,primary:0,mac:{primary:769},weight:100}})}_delete(e,t){return GZ.deleteWordPartLeft(e)||new H(1,1,1,1)}},WCt=class extends p9{constructor(){super({whitespaceHeuristics:!0,wordNavigationType:2,id:`deleteWordPartRight`,precondition:$.writable,kbOpts:{kbExpr:$.textInputFocus,primary:0,mac:{primary:788},weight:100}})}_delete(e,t){let n=GZ.deleteWordPartRight(e);if(n)return n;let r=e.model.getLineCount(),i=e.model.getLineMaxColumn(r);return new H(r,i,r,i)}},GCt=class extends u9{_move(e,t,n,r,i){return GZ.moveWordPartLeft(e,t,n,i)}},KCt=class extends GCt{constructor(){super({inSelectionMode:!1,wordNavigationType:0,id:`cursorWordPartLeft`,precondition:void 0,kbOpts:{kbExpr:$.textInputFocus,primary:0,mac:{primary:783},weight:100}})}};BN.registerCommandAlias(`cursorWordPartStartLeft`,`cursorWordPartLeft`);var qCt=class extends GCt{constructor(){super({inSelectionMode:!0,wordNavigationType:0,id:`cursorWordPartLeftSelect`,precondition:void 0,kbOpts:{kbExpr:$.textInputFocus,primary:0,mac:{primary:1807},weight:100}})}};BN.registerCommandAlias(`cursorWordPartStartLeftSelect`,`cursorWordPartLeftSelect`);var JCt=class extends u9{_move(e,t,n,r,i){return GZ.moveWordPartRight(e,t,n)}},YCt=class extends JCt{constructor(){super({inSelectionMode:!1,wordNavigationType:2,id:`cursorWordPartRight`,precondition:void 0,kbOpts:{kbExpr:$.textInputFocus,primary:0,mac:{primary:785},weight:100}})}},XCt=class extends JCt{constructor(){super({inSelectionMode:!0,wordNavigationType:2,id:`cursorWordPartRightSelect`,precondition:void 0,kbOpts:{kbExpr:$.textInputFocus,primary:0,mac:{primary:1809},weight:100}})}};qP(new UCt),qP(new WCt),qP(new KCt),qP(new qCt),qP(new YCt),qP(new XCt);var ZCt=class extends R{static#e=this.ID=`editor.contrib.readOnlyMessageController`;constructor(e){super(),this.editor=e,this._register(this.editor.onDidAttemptReadOnlyEdit(()=>this._onDidAttemptReadOnlyEdit()))}_onDidAttemptReadOnlyEdit(){let e=D0.get(this.editor);if(e&&this.editor.hasModel()){let t=this.editor.getOptions().get(93);t||=this.editor.isSimpleWidget?new vH(F(`editor.simple.readonly`,`Cannot edit in read-only input`)):new vH(F(`editor.readonly`,`Cannot edit in read-only editor`)),e.showMessage(t,this.editor.getPosition())}}};YP(ZCt.ID,ZCt,2);var QCt=function(e,t,n,r){var i=arguments.length,a=i<3?t:r===null?r=Object.getOwnPropertyDescriptor(t,n):r,o;if(typeof Reflect==`object`&&typeof Reflect.decorate==`function`)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},$Ct=function(e,t){return function(n,r){t(n,r,e)}},g9=class extends R{constructor(e,t,n){super(),this._textModel=e,this._languageFeaturesService=t,this._outlineModelService=n,this._currentModel=ZU(this,void 0);let r=mW(`documentSymbolProvider.onDidChange`,this._languageFeaturesService.documentSymbolProvider.onDidChange),i=mW(`_textModel.onDidChangeContent`,z.debounce(e=>this._textModel.onDidChangeContent(e),()=>void 0,100));this._register(lW(async(e,t)=>{r.read(e),i.read(e);let n=t.add(new Hrt),a=await this._outlineModelService.getOrCreate(this._textModel,n.token);t.isDisposed||this._currentModel.set(a,void 0)}))}getBreadcrumbItems(e,t){let n=this._currentModel.read(t);if(!n)return[];let r=n.asListOfDocumentSymbols().filter(t=>e.contains(t.range.startLineNumber)&&!e.contains(t.range.endLineNumber));return r.sort(dT(lT(e=>e.range.endLineNumber-e.range.startLineNumber,uT))),r.map(e=>({name:e.name,kind:e.kind,startLineNumber:e.range.startLineNumber}))}};g9=QCt([$Ct(1,hR),$Ct(2,p6)],g9),n1.setBreadcrumbsSourceFactory((e,t)=>t.createInstance(g9,e));var ewt=class extends R{static#e=this.ID=`editor.contrib.iPadShowKeyboard`;constructor(e){super(),this.editor=e,this.widget=null,$T&&(this._register(e.onDidChangeConfiguration(()=>this.update())),this.update())}update(){let e=!this.editor.getOption(92);!this.widget&&e?this.widget=new twt(this.editor):this.widget&&!e&&(this.widget.dispose(),this.widget=null)}dispose(){super.dispose(),this.widget&&=(this.widget.dispose(),null)}},twt=class e extends R{static#e=this.ID=`editor.contrib.ShowKeyboardWidget`;constructor(e){super(),this.editor=e,this._domNode=document.createElement(`textarea`),this._domNode.className=`iPadShowKeyboard`,this._register(G(this._domNode,`touchstart`,e=>{this.editor.focus()})),this._register(G(this._domNode,`focus`,e=>{this.editor.focus()})),this.editor.addOverlayWidget(this)}dispose(){this.editor.removeOverlayWidget(this),super.dispose()}getId(){return e.ID}getDomNode(){return this._domNode}getPosition(){return{preference:1}}};YP(ewt.ID,ewt,3);var nwt=function(e,t,n,r){var i=arguments.length,a=i<3?t:r===null?r=Object.getOwnPropertyDescriptor(t,n):r,o;if(typeof Reflect==`object`&&typeof Reflect.decorate==`function`)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},rwt=function(e,t){return function(n,r){t(n,r,e)}},_9,v9=class extends R{static#e=_9=this;static#t=this.ID=`editor.contrib.inspectTokens`;static get(e){return e.getContribution(_9.ID)}constructor(e,t,n){super(),this._editor=e,this._languageService=n,this._widget=null,this._register(this._editor.onDidChangeModel(e=>this.stop())),this._register(this._editor.onDidChangeModelLanguage(e=>this.stop())),this._register(LO.onDidChange(e=>this.stop())),this._register(this._editor.onKeyUp(e=>e.keyCode===9&&this.stop()))}dispose(){this.stop(),super.dispose()}launch(){this._widget||this._editor.hasModel()&&(this._widget=new swt(this._editor,this._languageService))}stop(){this._widget&&=(this._widget.dispose(),null)}};v9=_9=nwt([rwt(1,IY),rwt(2,zF)],v9);var iwt=class extends UP{constructor(){super({id:`editor.action.inspectTokens`,label:IZe.inspectTokensAction,alias:`Developer: Inspect Tokens`,precondition:void 0})}run(e,t){v9.get(t)?.launch()}};function awt(e){let t=``;for(let n=0,r=e.length;n<r;n++){let r=e.charCodeAt(n);switch(r){case 9:t+=`→`;break;case 32:t+=`·`;break;default:t+=String.fromCharCode(r)}}return t}function owt(e,t){let n=LO.get(t);if(n)return n;let r=e.encodeLanguageId(t);return{getInitialState:()=>IH,tokenize:(e,n,r)=>LH(t,r),tokenizeEncoded:(e,t,n)=>RH(r,n)}}var swt=class e extends R{static#e=this._ID=`editor.contrib.inspectTokensWidget`;constructor(e,t){super(),this.allowEditorOverflow=!0,this._editor=e,this._languageService=t,this._model=this._editor.getModel(),this._domNode=document.createElement(`div`),this._domNode.className=`tokens-inspect-widget`,this._tokenizationSupport=owt(this._languageService.languageIdCodec,this._model.getLanguageId()),this._compute(this._editor.getPosition()),this._register(this._editor.onDidChangeCursorPosition(e=>this._compute(this._editor.getPosition()))),this._editor.addContentWidget(this)}dispose(){this._editor.removeContentWidget(this),super.dispose()}getId(){return e._ID}_compute(e){let t=this._getTokensAtLine(e.lineNumber),n=0;for(let r=t.tokens1.length-1;r>=0;r--){let i=t.tokens1[r];if(e.column-1>=i.offset){n=r;break}}let r=0;for(let n=t.tokens2.length>>>1;n>=0;n--)if(e.column-1>=t.tokens2[n<<1]){r=n;break}let i=this._model.getLineContent(e.lineNumber),a=``;if(n<t.tokens1.length){let e=t.tokens1[n].offset,r=n+1<t.tokens1.length?t.tokens1[n+1].offset:i.length;a=i.substring(e,r)}tN(this._domNode,J(`h2.tm-token`,void 0,awt(a),J(`span.tm-token-length`,void 0,`${a.length} ${a.length===1?`char`:`chars`}`))),q(this._domNode,J(`hr.tokens-inspect-separator`,{style:`clear:both`}));let o=(r<<1)+1<t.tokens2.length?this._decodeMetadata(t.tokens2[(r<<1)+1]):null;q(this._domNode,J(`table.tm-metadata-table`,void 0,J(`tbody`,void 0,J(`tr`,void 0,J(`td.tm-metadata-key`,void 0,`language`),J(`td.tm-metadata-value`,void 0,`${o?o.languageId:`-?-`}`)),J(`tr`,void 0,J(`td.tm-metadata-key`,void 0,`token type`),J(`td.tm-metadata-value`,void 0,`${o?this._tokenTypeToString(o.tokenType):`-?-`}`)),J(`tr`,void 0,J(`td.tm-metadata-key`,void 0,`font style`),J(`td.tm-metadata-value`,void 0,`${o?this._fontStyleToString(o.fontStyle):`-?-`}`)),J(`tr`,void 0,J(`td.tm-metadata-key`,void 0,`foreground`),J(`td.tm-metadata-value`,void 0,`${o?Z.Format.CSS.formatHex(o.foreground):`-?-`}`)),J(`tr`,void 0,J(`td.tm-metadata-key`,void 0,`background`),J(`td.tm-metadata-value`,void 0,`${o?Z.Format.CSS.formatHex(o.background):`-?-`}`))))),q(this._domNode,J(`hr.tokens-inspect-separator`)),n<t.tokens1.length&&q(this._domNode,J(`span.tm-token-type`,void 0,t.tokens1[n].type)),this._editor.layoutContentWidget(this)}_decodeMetadata(e){let t=LO.getColorMap(),n=fz.getLanguageId(e),r=fz.getTokenType(e),i=fz.getFontStyle(e),a=fz.getForeground(e),o=fz.getBackground(e);return{languageId:this._languageService.languageIdCodec.decodeLanguageId(n),tokenType:r,fontStyle:i,foreground:t[a],background:t[o]}}_tokenTypeToString(e){switch(e){case 0:return`Other`;case 1:return`Comment`;case 2:return`String`;case 3:return`RegEx`;default:return`??`}}_fontStyleToString(e){let t=``;return e&1&&(t+=`italic `),e&2&&(t+=`bold `),e&4&&(t+=`underline `),e&8&&(t+=`strikethrough `),t.length===0&&(t=`---`),t}_getTokensAtLine(e){let t=this._getStateBeforeLine(e),n=this._tokenizationSupport.tokenize(this._model.getLineContent(e),!0,t),r=this._tokenizationSupport.tokenizeEncoded(this._model.getLineContent(e),!0,t);return{startState:t,tokens1:n.tokens,tokens2:r.tokens,endState:n.endState}}_getStateBeforeLine(e){let t=this._tokenizationSupport.getInitialState();for(let n=1;n<e;n++)t=this._tokenizationSupport.tokenize(this._model.getLineContent(n),!0,t).endState;return t}getDomNode(){return this._domNode}getPosition(){return{position:this._editor.getPosition(),preference:[2,1]}}};YP(v9.ID,v9,4),X(iwt);var cwt=function(e,t,n,r){var i=arguments.length,a=i<3?t:r===null?r=Object.getOwnPropertyDescriptor(t,n):r,o;if(typeof Reflect==`object`&&typeof Reflect.decorate==`function`)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},lwt=function(e,t){return function(n,r){t(n,r,e)}},y9,b9=class{static#e=y9=this;static#t=this.PREFIX=`?`;constructor(e,t){this.quickInputService=e,this.keybindingService=t,this.registry=xP.as(Cq.Quickaccess)}provide(e){let t=new L;return t.add(e.onDidAccept(()=>{let[t]=e.selectedItems;t&&this.quickInputService.quickAccess.show(t.prefix,{preserveValue:!0})})),t.add(e.onDidChangeValue(e=>{let t=this.registry.getQuickAccessProvider(e.substr(y9.PREFIX.length));t&&t.prefix&&t.prefix!==y9.PREFIX&&this.quickInputService.quickAccess.show(t.prefix,{preserveValue:!0})})),e.items=this.getQuickAccessProviders().filter(e=>e.prefix!==y9.PREFIX),t}getQuickAccessProviders(){return this.registry.getQuickAccessProviders().sort((e,t)=>e.prefix.localeCompare(t.prefix)).flatMap(e=>this.createPicks(e))}createPicks(e){return e.helpEntries.map(t=>{let n=t.prefix||e.prefix,r=n||`…`;return{prefix:n,label:r,keybinding:t.commandId?this.keybindingService.lookupKeybinding(t.commandId):void 0,ariaLabel:F(`helpPickAriaLabel`,`{0}, {1}`,r,t.description),description:t.description}})}};b9=y9=cwt([lwt(0,Oq),lwt(1,uV)],b9),xP.as(Cq.Quickaccess).registerQuickAccessProvider({ctor:b9,prefix:``,helpEntries:[{description:LZe.helpQuickAccessActionLabel}]});var uwt=class{constructor(e){this.options=e,this.rangeHighlightDecorationId=void 0}provide(e,t,n){let r=new L;e.canAcceptInBackground=!!this.options?.canAcceptInBackground,e.matchOnLabel=e.matchOnDescription=e.matchOnDetail=e.sortByLabel=!1;let i=r.add(new pD);return i.value=this.doProvide(e,t,n),r.add(this.onDidActiveTextEditorControlChange(()=>{i.value=void 0,i.value=this.doProvide(e,t)})),r}doProvide(e,t,n){let r=new L,i=this.activeTextEditorControl;if(i&&this.canProvideWithTextEditor(i)){let a={editor:i},o=ost(i);if(o){let e=i.saveViewState()??void 0;r.add(o.onDidChangeCursorPosition(()=>{e=i.saveViewState()??void 0})),a.restoreViewState=()=>{e&&i===this.activeTextEditorControl&&i.restoreViewState(e)},r.add(rD(t.onCancellationRequested)(()=>a.restoreViewState?.()))}r.add(fD(()=>this.clearDecorations(i))),r.add(this.provideWithTextEditor(a,e,t,n))}else r.add(this.provideWithoutTextEditor(e,t));return r}canProvideWithTextEditor(e){return!0}gotoLocation({editor:e},t){e.setSelection(t.range,`code.jump`),e.revealRangeInCenter(t.range,0),t.preserveFocus||e.focus();let n=e.getModel();n&&`getLineContent`in n&&XH(`${n.getLineContent(t.range.startLineNumber)}`)}getModel(e){return D1(e)?e.getModel()?.modified:e.getModel()}addDecorations(e,t){e.changeDecorations(e=>{let n=[];this.rangeHighlightDecorationId&&=(n.push(this.rangeHighlightDecorationId.overviewRulerDecorationId),n.push(this.rangeHighlightDecorationId.rangeHighlightId),void 0);let r=[{range:t,options:{description:`quick-access-range-highlight`,className:`rangeHighlight`,isWholeLine:!0}},{range:t,options:{description:`quick-access-range-highlight-overview`,overviewRuler:{color:DR(T1e),position:VI.Full}}}],[i,a]=e.deltaDecorations(n,r);this.rangeHighlightDecorationId={rangeHighlightId:i,overviewRulerDecorationId:a}})}clearDecorations(e){let t=this.rangeHighlightDecorationId;t&&(e.changeDecorations(e=>{e.deltaDecorations([t.overviewRulerDecorationId,t.rangeHighlightId],[])}),this.rangeHighlightDecorationId=void 0)}},dwt=class e extends uwt{static#e=this.PREFIX=`:`;constructor(){super({canAcceptInBackground:!0})}provideWithoutTextEditor(e){let t=F(`cannotRunGotoLine`,`Open a text editor first to go to a line.`);return e.items=[{label:t}],e.ariaLabel=t,R.None}provideWithTextEditor(t,n,r){let i=t.editor,a=new L;a.add(n.onDidAccept(e=>{let[r]=n.selectedItems;if(r){if(!this.isValidLineNumber(i,r.lineNumber))return;this.gotoLocation(t,{range:this.toRange(r.lineNumber,r.column),keyMods:n.keyMods,preserveFocus:e.inBackground}),e.inBackground||n.hide()}}));let o=()=>{let t=this.parsePosition(i,n.value.trim().substr(e.PREFIX.length)),r=this.getPickLabel(i,t.lineNumber,t.column);if(n.items=[{lineNumber:t.lineNumber,column:t.column,label:r}],n.ariaLabel=r,!this.isValidLineNumber(i,t.lineNumber)){this.clearDecorations(i);return}let a=this.toRange(t.lineNumber,t.column);i.revealRangeInCenter(a,0),this.addDecorations(i,a)};o(),a.add(n.onDidChangeValue(()=>o()));let s=ost(i);return s&&s.getOptions().get(68).renderType===2&&(s.updateOptions({lineNumbers:`on`}),a.add(fD(()=>s.updateOptions({lineNumbers:`relative`})))),a}toRange(e=1,t=1){return{startLineNumber:e,startColumn:t,endLineNumber:e,endColumn:t}}parsePosition(e,t){let n=t.split(/,|:|#/).map(e=>parseInt(e,10)).filter(e=>!isNaN(e)),r=this.lineCount(e)+1;return{lineNumber:n[0]>0?n[0]:r+n[0],column:n[1]}}getPickLabel(e,t,n){if(this.isValidLineNumber(e,t))return this.isValidColumn(e,t,n)?F(`gotoLineColumnLabel`,`Go to line {0} and character {1}.`,t,n):F(`gotoLineLabel`,`Go to line {0}.`,t);let r=e.getPosition()||{lineNumber:1,column:1},i=this.lineCount(e);return i>1?F(`gotoLineLabelEmptyWithLimit`,`Current Line: {0}, Character: {1}. Type a line number between 1 and {2} to navigate to.`,r.lineNumber,r.column,i):F(`gotoLineLabelEmpty`,`Current Line: {0}, Character: {1}. Type a line number to navigate to.`,r.lineNumber,r.column)}isValidLineNumber(e,t){return!t||typeof t!=`number`?!1:t>0&&t<=this.lineCount(e)}isValidColumn(e,t,n){if(!n||typeof n!=`number`)return!1;let r=this.getModel(e);if(!r)return!1;let i={lineNumber:t,column:n};return r.validatePosition(i).equals(i)}lineCount(e){return this.getModel(e)?.getLineCount()??0}},fwt=function(e,t,n,r){var i=arguments.length,a=i<3?t:r===null?r=Object.getOwnPropertyDescriptor(t,n):r,o;if(typeof Reflect==`object`&&typeof Reflect.decorate==`function`)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},pwt=function(e,t){return function(n,r){t(n,r,e)}},x9=class extends dwt{constructor(e){super(),this.editorService=e,this.onDidActiveTextEditorControlChange=z.None}get activeTextEditorControl(){return this.editorService.getFocusedCodeEditor()??void 0}};x9=fwt([pwt(0,kN)],x9);var mwt=class e extends UP{static#e=this.ID=`editor.action.gotoLine`;constructor(){super({id:e.ID,label:kU.gotoLineActionLabel,alias:`Go to Line/Column...`,precondition:void 0,kbOpts:{kbExpr:$.focus,primary:2085,mac:{primary:293},weight:100}})}run(e){e.get(Oq).quickAccess.show(x9.PREFIX)}};X(mwt),xP.as(Cq.Quickaccess).registerQuickAccessProvider({ctor:x9,prefix:x9.PREFIX,helpEntries:[{description:kU.gotoLineActionLabel,commandId:mwt.ID}]});var hwt=[void 0,[]];function S9(e,t,n=0,r=0){let i=t;return i.values&&i.values.length>1?gwt(e,i.values,n,r):_wt(e,t,n,r)}function gwt(e,t,n,r){let i=0,a=[];for(let o of t){let[t,s]=_wt(e,o,n,r);if(typeof t!=`number`)return hwt;i+=t,a.push(...s)}return[i,vwt(a)]}function _wt(e,t,n,r){let i=aH(t.original,t.originalLowercase,n,e,e.toLowerCase(),r,{firstMatchCanBeWeak:!0,boostFullMatch:!0});return i?[i[0],JV(i)]:hwt}Object.freeze({score:0});function vwt(e){let t=e.sort((e,t)=>e.start-t.start),n=[],r;for(let e of t)!r||!ywt(r,e)?(r=e,n.push(e)):(r.start=Math.min(r.start,e.start),r.end=Math.max(r.end,e.end));return n}function ywt(e,t){return!(e.end<t.start||t.end<e.start)}function bwt(e){return e.startsWith(`"`)&&e.endsWith(`"`)}var xwt=` `;function Swt(e){typeof e!=`string`&&(e=``);let t=e.toLowerCase(),{pathNormalized:n,normalized:r,normalizedLowercase:i}=Cwt(e),a=n.indexOf(iO)>=0,o=bwt(e),s,c=e.split(xwt);if(c.length>1)for(let e of c){let t=bwt(e),{pathNormalized:n,normalized:r,normalizedLowercase:i}=Cwt(e);r&&(s||=[],s.push({original:e,originalLowercase:e.toLowerCase(),pathNormalized:n,normalized:r,normalizedLowercase:i,expectContiguousMatch:t}))}return{original:e,originalLowercase:t,pathNormalized:n,normalized:r,normalizedLowercase:i,values:s,containsPathSeparator:a,expectContiguousMatch:o}}function Cwt(e){let t;t=JT?e.replace(/\//g,iO):e.replace(/\\/g,iO);let n=sVe(t).replace(/\s|"/g,``);return{pathNormalized:t,normalized:n,normalizedLowercase:n.toLowerCase()}}function wwt(e){return Swt(Array.isArray(e)?e.map(e=>e.original).join(xwt):e.original)}var Twt=function(e,t,n,r){var i=arguments.length,a=i<3?t:r===null?r=Object.getOwnPropertyDescriptor(t,n):r,o;if(typeof Reflect==`object`&&typeof Reflect.decorate==`function`)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},Ewt=function(e,t){return function(n,r){t(n,r,e)}},C9,w9=class extends uwt{static#e=C9=this;static#t=this.PREFIX=`@`;static#n=this.SCOPE_PREFIX=`:`;static#r=this.PREFIX_BY_CATEGORY=`${this.PREFIX}${this.SCOPE_PREFIX}`;constructor(e,t,n=Object.create(null)){super(n),this._languageFeaturesService=e,this._outlineModelService=t,this.options=n,this.options.canAcceptInBackground=!0}provideWithoutTextEditor(e){return this.provideLabelPick(e,F(`cannotRunGotoSymbolWithoutEditor`,`To go to a symbol, first open a text editor with symbol information.`)),R.None}provideWithTextEditor(e,t,n,r){let i=e.editor,a=this.getModel(i);return a?this._languageFeaturesService.documentSymbolProvider.has(a)?this.doProvideWithEditorSymbols(e,a,t,n,r):this.doProvideWithoutEditorSymbols(e,a,t,n):R.None}doProvideWithoutEditorSymbols(e,t,n,r){let i=new L;return this.provideLabelPick(n,F(`cannotRunGotoSymbolWithoutSymbolProvider`,`The active text editor does not provide symbol information.`)),(async()=>{!await this.waitForLanguageSymbolRegistry(t,i)||r.isCancellationRequested||i.add(this.doProvideWithEditorSymbols(e,t,n,r))})(),i}provideLabelPick(e,t){e.items=[{label:t,index:0,kind:14}],e.ariaLabel=t}async waitForLanguageSymbolRegistry(e,t){if(this._languageFeaturesService.documentSymbolProvider.has(e))return!0;let n=new aj,r=t.add(this._languageFeaturesService.documentSymbolProvider.onDidChange(()=>{this._languageFeaturesService.documentSymbolProvider.has(e)&&(r.dispose(),n.complete(!0))}));return t.add(fD(()=>n.complete(!1))),n.p}doProvideWithEditorSymbols(e,t,n,r,i){let a=e.editor,o=new L;o.add(n.onDidAccept(t=>{let[r]=n.selectedItems;r&&r.range&&(this.gotoLocation(e,{range:r.range.selection,keyMods:n.keyMods,preserveFocus:t.inBackground}),i?.handleAccept?.(r),t.inBackground||n.hide())})),o.add(n.onDidTriggerItemButton(({item:t})=>{t&&t.range&&(this.gotoLocation(e,{range:t.range.selection,keyMods:n.keyMods,forceSideBySide:!0}),n.hide())}));let s=this.getDocumentSymbols(t,r),c,l=async e=>{c?.dispose(!0),n.busy=!1,c=new ED(r),n.busy=!0;try{let i=Swt(n.value.substr(C9.PREFIX.length).trim()),a=await this.doGetSymbolPicks(s,i,void 0,c.token,t);if(r.isCancellationRequested)return;if(a.length>0){if(n.items=a,e&&i.original.length===0){let t=oL(a,t=>!!(t.type!==`separator`&&t.range&&H.containsPosition(t.range.decoration,e)));t&&(n.activeItems=[t])}}else i.original.length>0?this.provideLabelPick(n,F(`noMatchingSymbolResults`,`No matching editor symbols`)):this.provideLabelPick(n,F(`noSymbolResults`,`No editor symbols`))}finally{r.isCancellationRequested||(n.busy=!1)}};return o.add(n.onDidChangeValue(()=>l(void 0))),l(a.getSelection()?.getPosition()),o.add(n.onDidChangeActive(()=>{let[e]=n.activeItems;e&&e.range&&(a.revealRangeInCenter(e.range.selection,0),this.addDecorations(a,e.range.decoration))})),o}async doGetSymbolPicks(e,t,n,r,i){let a=await e;if(r.isCancellationRequested)return[];let o=t.original.indexOf(C9.SCOPE_PREFIX)===0,s=o?1:0,c,l;t.values&&t.values.length>1?(c=wwt(t.values[0]),l=wwt(t.values.slice(1))):c=t;let u,d=this.options?.openSideBySideDirection?.();d&&(u=[{iconClass:d===`right`?RN.asClassName(W.splitHorizontal):RN.asClassName(W.splitVertical),tooltip:d===`right`?F(`openToSide`,`Open to the Side`):F(`openToBottom`,`Open to the Bottom`)}]);let f=[];for(let e=0;e<a.length;e++){let r=a[e],o=aVe(r.name),d=`$(${jO.toIcon(r.kind).id}) ${o}`,p=d.length-o.length,m=r.containerName;n?.extraContainerLabel&&(m=m?`${n.extraContainerLabel} • ${m}`:n.extraContainerLabel);let h,g,_,v;if(t.original.length>s){let e=!1;if(c!==t&&([h,g]=S9(d,{...t,values:void 0},s,p),typeof h==`number`&&(e=!0)),typeof h!=`number`&&([h,g]=S9(d,c,s,p),typeof h!=`number`))continue;if(!e&&l){if(m&&l.original.length>0&&([_,v]=S9(m,l)),typeof _!=`number`)continue;typeof h==`number`&&(h+=_)}}let y=r.tags&&r.tags.indexOf(1)>=0;f.push({index:e,kind:r.kind,score:h,label:d,ariaLabel:QBe(r.name,r.kind),description:m,highlights:y?void 0:{label:g,description:v},range:{selection:H.collapseToStart(r.selectionRange),decoration:r.range},uri:i.uri,symbolName:o,strikethrough:y,buttons:u})}let p=f.sort((e,t)=>o?this.compareByKindAndScore(e,t):this.compareByScore(e,t)),m=[];if(o){let e,t,n=0;function r(){t&&typeof e==`number`&&n>0&&(t.label=Rk(E9[e]||T9,n))}for(let i of p)e===i.kind?n++:(r(),e=i.kind,n=1,t={type:`separator`},m.push(t)),m.push(i);r()}else p.length>0&&(m=[{label:F(`symbols`,`symbols ({0})`,f.length),type:`separator`},...p]);return m}compareByScore(e,t){if(typeof e.score!=`number`&&typeof t.score==`number`)return 1;if(typeof e.score==`number`&&typeof t.score!=`number`)return-1;if(typeof e.score==`number`&&typeof t.score==`number`){if(e.score>t.score)return-1;if(e.score<t.score)return 1}return e.index<t.index?-1:e.index>t.index?1:0}compareByKindAndScore(e,t){let n=E9[e.kind]||T9,r=E9[t.kind]||T9,i=n.localeCompare(r);return i===0?this.compareByScore(e,t):i}async getDocumentSymbols(e,t){let n=await this._outlineModelService.getOrCreate(e,t);return t.isCancellationRequested?[]:n.asListOfDocumentSymbols()}};w9=C9=Twt([Ewt(0,hR),Ewt(1,p6)],w9);var T9=F(`property`,`properties ({0})`),E9={5:F(`method`,`methods ({0})`),11:F(`function`,`functions ({0})`),8:F(`_constructor`,`constructors ({0})`),12:F(`variable`,`variables ({0})`),4:F(`class`,`classes ({0})`),22:F(`struct`,`structs ({0})`),23:F(`event`,`events ({0})`),24:F(`operator`,`operators ({0})`),10:F(`interface`,`interfaces ({0})`),2:F(`namespace`,`namespaces ({0})`),3:F(`package`,`packages ({0})`),25:F(`typeParameter`,`type parameters ({0})`),1:F(`modules`,`modules ({0})`),6:F(`property`,`properties ({0})`),9:F(`enum`,`enumerations ({0})`),21:F(`enumMember`,`enumeration members ({0})`),14:F(`string`,`strings ({0})`),0:F(`file`,`files ({0})`),17:F(`array`,`arrays ({0})`),15:F(`number`,`numbers ({0})`),16:F(`boolean`,`booleans ({0})`),18:F(`object`,`objects ({0})`),19:F(`key`,`keys ({0})`),7:F(`field`,`fields ({0})`),13:F(`constant`,`constants ({0})`)},Dwt=function(e,t,n,r){var i=arguments.length,a=i<3?t:r===null?r=Object.getOwnPropertyDescriptor(t,n):r,o;if(typeof Reflect==`object`&&typeof Reflect.decorate==`function`)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},D9=function(e,t){return function(n,r){t(n,r,e)}},O9=class extends w9{constructor(e,t,n){super(t,n),this.editorService=e,this.onDidActiveTextEditorControlChange=z.None}get activeTextEditorControl(){return this.editorService.getFocusedCodeEditor()??void 0}};O9=Dwt([D9(0,kN),D9(1,hR),D9(2,p6)],O9);var Owt=class e extends UP{static#e=this.ID=`editor.action.quickOutline`;constructor(){super({id:e.ID,label:jU.quickOutlineActionLabel,alias:`Go to Symbol...`,precondition:$.hasDocumentSymbolProvider,kbOpts:{kbExpr:$.focus,primary:3117,weight:100},contextMenuOpts:{group:`navigation`,order:3}})}run(e){e.get(Oq).quickAccess.show(w9.PREFIX,{itemActivation:Tq.NONE})}};X(Owt),xP.as(Cq.Quickaccess).registerQuickAccessProvider({ctor:O9,prefix:w9.PREFIX,helpEntries:[{description:jU.quickOutlineActionLabel,prefix:w9.PREFIX,commandId:Owt.ID},{description:jU.quickOutlineByCategoryActionLabel,prefix:w9.PREFIX_BY_CATEGORY}]});function kwt(e){let t=new Map;for(let n of e)t.set(n,(t.get(n)??0)+1);return t}var Awt=class e{constructor(){this.chunkCount=0,this.chunkOccurrences=new Map,this.documents=new Map}calculateScores(e,t){let n=this.computeEmbedding(e),r=new Map,i=[];for(let[e,a]of this.documents){if(t.isCancellationRequested)return[];for(let t of a.chunks){let a=this.computeSimilarityScore(t,n,r);a>0&&i.push({key:e,score:a})}}return i}static termFrequencies(t){return kwt(e.splitTerms(t))}static*splitTerms(e){let t=e=>e.toLowerCase();for(let[n]of e.matchAll(/\b\p{Letter}[\p{Letter}\d]{2,}\b/gu)){yield t(n);let e=n.replace(/([a-z])([A-Z])/g,`$1 $2`).split(/\s+/g);if(e.length>1)for(let n of e)n.length>2&&/\p{Letter}{3,}/gu.test(n)&&(yield t(n))}}updateDocuments(t){for(let{key:e}of t)this.deleteDocument(e);for(let n of t){let t=[];for(let r of n.textChunks){let n=e.termFrequencies(r);for(let e of n.keys())this.chunkOccurrences.set(e,(this.chunkOccurrences.get(e)??0)+1);t.push({text:r,tf:n})}this.chunkCount+=t.length,this.documents.set(n.key,{chunks:t})}return this}deleteDocument(e){let t=this.documents.get(e);if(t){this.documents.delete(e),this.chunkCount-=t.chunks.length;for(let e of t.chunks)for(let t of e.tf.keys()){let e=this.chunkOccurrences.get(t);if(typeof e==`number`){let n=e-1;n<=0?this.chunkOccurrences.delete(t):this.chunkOccurrences.set(t,n)}}}}computeSimilarityScore(e,t,n){let r=0;for(let[i,a]of Object.entries(t)){let t=e.tf.get(i);if(!t)continue;let o=n.get(i);typeof o!=`number`&&(o=this.computeIdf(i),n.set(i,o));let s=t*o;r+=s*a}return r}computeEmbedding(t){let n=e.termFrequencies(t);return this.computeTfidf(n)}computeIdf(e){let t=this.chunkOccurrences.get(e)??0;return t>0?Math.log((this.chunkCount+1)/t):0}computeTfidf(e){let t=Object.create(null);for(let[n,r]of e){let e=this.computeIdf(n);e>0&&(t[n]=r*e)}return t}};function jwt(e){let t=e.slice(0);t.sort((e,t)=>t.score-e.score);let n=t[0]?.score??0;if(n>0)for(let e of t)e.score/=n;return t}var k9;(function(e){e[e.NO_ACTION=0]=`NO_ACTION`,e[e.CLOSE_PICKER=1]=`CLOSE_PICKER`,e[e.REFRESH_PICKER=2]=`REFRESH_PICKER`,e[e.REMOVE_ITEM=3]=`REMOVE_ITEM`})(k9||={});function A9(e){let t=e;return Array.isArray(t.items)}function Mwt(e){let t=e;return!!t.picks&&t.additionalPicks instanceof Promise}var Nwt=class extends R{constructor(e,t){super(),this.prefix=e,this.options=t}provide(e,t,n){let r=new L;e.canAcceptInBackground=!!this.options?.canAcceptInBackground,e.matchOnLabel=e.matchOnDescription=e.matchOnDetail=e.sortByLabel=!1;let i,a=r.add(new pD),o=async()=>{let r=a.value=new L;i?.dispose(!0),e.busy=!1,i=new ED(t);let o=i.token,s=e.value.substring(this.prefix.length);this.options?.shouldSkipTrimPickFilter||(s=s.trim());let c=this._getPicks(s,r,o,n),l=(t,n)=>{let r,i;if(A9(t)?(r=t.items,i=t.active):r=t,r.length===0){if(n)return!1;(s.length>0||e.hideInput)&&this.options?.noResultsPick&&(r=wT(this.options.noResultsPick)?[this.options.noResultsPick(s)]:[this.options.noResultsPick])}return e.items=r,i&&(e.activeItems=[i]),!0},u=async t=>{let n=!1,r=!1;await Promise.all([(async()=>{typeof t.mergeDelay==`number`&&(await XA(t.mergeDelay),o.isCancellationRequested)||r||(n=l(t.picks,!0))})(),(async()=>{e.busy=!0;try{let r=await t.additionalPicks;if(o.isCancellationRequested)return;let i,a;A9(t.picks)?(i=t.picks.items,a=t.picks.active):i=t.picks;let s,c;if(A9(r)?(s=r.items,c=r.active):s=r,s.length>0||!n){let t;if(!a&&!c){let n=e.activeItems[0];n&&i.indexOf(n)!==-1&&(t=n)}l({items:[...i,...s],active:a||c||t})}}finally{o.isCancellationRequested||(e.busy=!1),r=!0}})()])};if(c!==null)if(Mwt(c))await u(c);else if(!(c instanceof Promise))l(c);else{e.busy=!0;try{let e=await c;if(o.isCancellationRequested)return;Mwt(e)?await u(e):l(e)}finally{o.isCancellationRequested||(e.busy=!1)}}};r.add(e.onDidChangeValue(()=>o())),o(),r.add(e.onDidAccept(t=>{if(n?.handleAccept){t.inBackground||e.hide(),n.handleAccept?.(e.activeItems[0]);return}let[r]=e.selectedItems;typeof r?.accept==`function`&&(t.inBackground||e.hide(),r.accept(e.keyMods,t))}));let s=async(n,r)=>{if(typeof r.trigger!=`function`)return;let i=r.buttons?.indexOf(n)??-1;if(i>=0){let n=r.trigger(i,e.keyMods),a=typeof n==`number`?n:await n;if(t.isCancellationRequested)return;switch(a){case k9.NO_ACTION:break;case k9.CLOSE_PICKER:e.hide();break;case k9.REFRESH_PICKER:o();break;case k9.REMOVE_ITEM:{let t=e.items.indexOf(r);if(t!==-1){let n=e.items.slice(),r=n.splice(t,1),i=e.activeItems.filter(e=>e!==r[0]),a=e.keepScrollPosition;e.keepScrollPosition=!0,e.items=n,i&&(e.activeItems=i),e.keepScrollPosition=a}break}}}};return r.add(e.onDidTriggerItemButton(({button:e,item:t})=>s(e,t))),r.add(e.onDidTriggerSeparatorButton(({button:e,separator:t})=>s(e,t))),r}},Pwt=function(e,t,n,r){var i=arguments.length,a=i<3?t:r===null?r=Object.getOwnPropertyDescriptor(t,n):r,o;if(typeof Reflect==`object`&&typeof Reflect.decorate==`function`)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},j9=function(e,t){return function(n,r){t(n,r,e)}},M9,N9,P9=class extends Nwt{static#e=M9=this;static#t=this.PREFIX=`>`;static#n=this.TFIDF_THRESHOLD=.5;static#r=this.TFIDF_MAX_RESULTS=5;static#i=this.WORD_FILTER=LV(RV,pYe,eYe);constructor(e,t,n,r,i,a){super(M9.PREFIX,e),this.instantiationService=t,this.keybindingService=n,this.commandService=r,this.telemetryService=i,this.dialogService=a,this.commandsHistory=this._register(this.instantiationService.createInstance(F9)),this.options=e}async _getPicks(e,t,n,r){let i=await this.getCommandPicks(n);if(n.isCancellationRequested)return[];let a=rD(()=>{let t=new Awt;return t.updateDocuments(i.map(e=>({key:e.commandId,textChunks:[this.getTfIdfChunk(e)]}))),jwt(t.calculateScores(e,n)).filter(e=>e.score>M9.TFIDF_THRESHOLD).slice(0,M9.TFIDF_MAX_RESULTS)}),o=[];for(let t of i){let r=M9.WORD_FILTER(e,t.label)??void 0,i=t.commandAlias?M9.WORD_FILTER(e,t.commandAlias)??void 0:void 0;if(r||i)t.highlights={label:r,detail:this.options.showAlias?i:void 0},o.push(t);else if(e===t.commandId)o.push(t);else if(e.length>=3){let e=a();if(n.isCancellationRequested)return[];let r=e.find(e=>e.key===t.commandId);r&&(t.tfIdfScore=r.score,o.push(t))}}let s=new Map;for(let e of o){let t=s.get(e.label);t?(e.description=e.commandId,t.description=t.commandId):s.set(e.label,e)}o.sort((e,t)=>{if(e.tfIdfScore&&t.tfIdfScore)return e.tfIdfScore===t.tfIdfScore?e.label.localeCompare(t.label):t.tfIdfScore-e.tfIdfScore;if(e.tfIdfScore)return 1;if(t.tfIdfScore)return-1;let n=this.commandsHistory.peek(e.commandId),r=this.commandsHistory.peek(t.commandId);if(n&&r)return n>r?-1:1;if(n)return-1;if(r)return 1;if(this.options.suggestedCommandIds){let n=this.options.suggestedCommandIds.has(e.commandId),r=this.options.suggestedCommandIds.has(t.commandId);if(n&&r)return 0;if(n)return-1;if(r)return 1}return e.label.localeCompare(t.label)});let c=[],l=!1,u=!0,d=!!this.options.suggestedCommandIds;for(let e=0;e<o.length;e++){let t=o[e];e===0&&this.commandsHistory.peek(t.commandId)&&(c.push({type:`separator`,label:F(`recentlyUsed`,`recently used`)}),l=!0),u&&t.tfIdfScore!==void 0&&(c.push({type:`separator`,label:F(`suggested`,`similar commands`)}),u=!1),d&&t.tfIdfScore===void 0&&!this.commandsHistory.peek(t.commandId)&&this.options.suggestedCommandIds?.has(t.commandId)&&(c.push({type:`separator`,label:F(`commonlyUsed`,`commonly used`)}),l=!0,d=!1),l&&t.tfIdfScore===void 0&&!this.commandsHistory.peek(t.commandId)&&!this.options.suggestedCommandIds?.has(t.commandId)&&(c.push({type:`separator`,label:F(`morecCommands`,`other commands`)}),l=!1),c.push(this.toCommandPick(t,r))}return this.hasAdditionalCommandPicks(e,n)?{picks:c,additionalPicks:(async()=>{let t=await this.getAdditionalCommandPicks(i,o,e,n);if(n.isCancellationRequested)return[];let a=t.map(e=>this.toCommandPick(e,r));return u&&a[0]?.type!==`separator`&&a.unshift({type:`separator`,label:F(`suggested`,`similar commands`)}),a})()}:c}toCommandPick(e,t){if(e.type===`separator`)return e;let n=this.keybindingService.lookupKeybinding(e.commandId),r=n?F(`commandPickAriaLabelWithKeybinding`,`{0}, {1}`,e.label,n.getAriaLabel()):e.label;return{...e,ariaLabel:r,detail:this.options.showAlias&&e.commandAlias!==e.label?e.commandAlias:void 0,keybinding:n,accept:async()=>{this.commandsHistory.push(e.commandId),this.telemetryService.publicLog2(`workbenchActionExecuted`,{id:e.commandId,from:t?.from??`quick open`});try{e.args?.length?await this.commandService.executeCommand(e.commandId,...e.args):await this.commandService.executeCommand(e.commandId)}catch(t){ZE(t)||this.dialogService.error(F(`canNotRun`,`Command '{0}' resulted in an error`,e.label),k0(t))}}}}getTfIdfChunk({label:e,commandAlias:t,commandDescription:n}){let r=e;return t&&t!==e&&(r+=` - ${t}`),n&&n.value!==e&&(r+=` - ${n.value===n.original?n.value:`${n.value} (${n.original})`}`),r}};P9=M9=Pwt([j9(1,DN),j9(2,uV),j9(3,zN),j9(4,PP),j9(5,HR)],P9);var F9=class extends R{static#e=N9=this;static#t=this.DEFAULT_COMMANDS_HISTORY_LENGTH=50;static#n=this.PREF_KEY_CACHE=`commandPalette.mru.cache`;static#r=this.PREF_KEY_COUNTER=`commandPalette.mru.counter`;static#i=this.counter=1;static#a=this.hasChanges=!1;constructor(e,t,n){super(),this.storageService=e,this.configurationService=t,this.logService=n,this.configuredCommandsHistoryLength=0,this.updateConfiguration(),this.load(),this.registerListeners()}registerListeners(){this._register(this.configurationService.onDidChangeConfiguration(e=>this.updateConfiguration(e))),this._register(this.storageService.onWillSaveState(e=>{e.reason===$W.SHUTDOWN&&this.saveState()}))}updateConfiguration(e){e&&!e.affectsConfiguration(`workbench.commandPalette.history`)||(this.configuredCommandsHistoryLength=N9.getConfiguredCommandHistoryLength(this.configurationService),N9.cache&&N9.cache.limit!==this.configuredCommandsHistoryLength&&(N9.cache.limit=this.configuredCommandsHistoryLength,N9.hasChanges=!0))}load(){let e=this.storageService.get(N9.PREF_KEY_CACHE,0),t;if(e)try{t=JSON.parse(e)}catch(e){this.logService.error(`[CommandsHistory] invalid data: ${e}`)}let n=N9.cache=new LI(this.configuredCommandsHistoryLength,1);if(t){let e;e=t.usesLRU?t.entries:t.entries.sort((e,t)=>e.value-t.value),e.forEach(e=>n.set(e.key,e.value))}N9.counter=this.storageService.getNumber(N9.PREF_KEY_COUNTER,0,N9.counter)}push(e){N9.cache&&(N9.cache.set(e,N9.counter++),N9.hasChanges=!0)}peek(e){return N9.cache?.peek(e)}saveState(){if(!N9.cache||!N9.hasChanges)return;let e={usesLRU:!0,entries:[]};N9.cache.forEach((t,n)=>e.entries.push({key:n,value:t})),this.storageService.store(N9.PREF_KEY_CACHE,JSON.stringify(e),0,0),this.storageService.store(N9.PREF_KEY_COUNTER,N9.counter,0,0),N9.hasChanges=!1}static getConfiguredCommandHistoryLength(e){let t=e.getValue().workbench?.commandPalette?.history;return typeof t==`number`?t:N9.DEFAULT_COMMANDS_HISTORY_LENGTH}};F9=N9=Pwt([j9(0,QW),j9(1,PF),j9(2,FP)],F9);var Fwt=class extends P9{constructor(e,t,n,r,i,a){super(e,t,n,r,i,a)}getCodeEditorCommandPicks(){let e=this.activeTextEditorControl;if(!e)return[];let t=[];for(let n of e.getSupportedActions()){let e;n.metadata?.description&&(e=D$e(n.metadata.description)?n.metadata.description:{original:n.metadata.description,value:n.metadata.description}),t.push({commandId:n.id,commandAlias:n.alias,commandDescription:e,label:sH(n.label)||n.id})}return t}},Iwt=function(e,t,n,r){var i=arguments.length,a=i<3?t:r===null?r=Object.getOwnPropertyDescriptor(t,n):r,o;if(typeof Reflect==`object`&&typeof Reflect.decorate==`function`)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},I9=function(e,t){return function(n,r){t(n,r,e)}},L9=class extends Fwt{get activeTextEditorControl(){return this.codeEditorService.getFocusedCodeEditor()??void 0}constructor(e,t,n,r,i,a){super({showAlias:!1},e,n,r,i,a),this.codeEditorService=t}async getCommandPicks(){return this.getCodeEditorCommandPicks()}hasAdditionalCommandPicks(){return!1}async getAdditionalCommandPicks(){return[]}};L9=Iwt([I9(0,DN),I9(1,kN),I9(2,uV),I9(3,zN),I9(4,PP),I9(5,HR)],L9);var Lwt=class e extends UP{static#e=this.ID=`editor.action.quickCommand`;constructor(){super({id:e.ID,label:AU.quickCommandActionLabel,alias:`Command Palette`,precondition:void 0,kbOpts:{kbExpr:$.focus,primary:59,weight:100},contextMenuOpts:{group:`z_commands`,order:1}})}run(e){e.get(Oq).quickAccess.show(L9.PREFIX)}};X(Lwt),xP.as(Cq.Quickaccess).registerQuickAccessProvider({ctor:L9,prefix:L9.PREFIX,helpEntries:[{description:AU.quickCommandHelp,commandId:Lwt.ID}]});var Rwt=function(e,t,n,r){var i=arguments.length,a=i<3?t:r===null?r=Object.getOwnPropertyDescriptor(t,n):r,o;if(typeof Reflect==`object`&&typeof Reflect.decorate==`function`)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},R9=function(e,t){return function(n,r){t(n,r,e)}},z9=class extends C4{constructor(e,t,n,r,i,a,o){super(!0,e,t,n,r,i,a,o)}};z9=Rwt([R9(1,uP),R9(2,kN),R9(3,WR),R9(4,DN),R9(5,QW),R9(6,PF)],z9),YP(C4.ID,z9,4),X(class extends UP{constructor(){super({id:`editor.action.toggleHighContrast`,label:zZe.toggleHighContrast,alias:`Toggle High Contrast Theme`,precondition:void 0}),this._originalThemeName=null}run(e,t){let n=e.get(IY),r=n.getColorTheme();wR(r.type)?(n.setTheme(this._originalThemeName||(TR(r.type)?`vs-dark`:`vs`)),this._originalThemeName=null):(n.setTheme(TR(r.type)?jY:MY),this._originalThemeName=r.themeName)}});function zwt(e){return new Worker(`/assets/editor.worker-Di51weDy.js`,{name:e?.name})}function Bwt(e){return new Worker(`/assets/ts.worker-DHQ2j8_R.js`,{name:e?.name})}var Vwt=Vd(Zn({__name:`MonacoEditor`,props:{modelValue:{},language:{default:`javascript`},height:{default:`300px`},readonly:{type:Boolean,default:!1},theme:{default:`vs-dark`},extraLib:{}},emits:[`update:modelValue`],setup(e,{emit:t}){if(!window.MonacoEnvironment){window.MonacoEnvironment={getWorker(e,t){return t===`typescript`||t===`javascript`?new Bwt:new zwt}};for(let e of[N1.typescript.javascriptDefaults,N1.typescript.typescriptDefaults])e.setDiagnosticsOptions({noSemanticValidation:!1,noSyntaxValidation:!1,noSuggestionDiagnostics:!1}),e.setCompilerOptions({allowJs:!0,checkJs:!0,target:N1.typescript.ScriptTarget.ES2020,lib:[`es2020`]}),e.setEagerModelSync(!0)}let n=0,r=e,i=t,a=D(),o=null,s=null,c=null;function l(e){c?.dispose(),c=null,e&&(c=N1.typescript.javascriptDefaults.addExtraLib(e,`inmemory://runeya/types.d.ts`))}return ur(()=>{if(!a.value)return;l(r.extraLib);let e=r.language===`markdown`?`md`:r.language===`typescript`?`ts`:`js`,t=Dst.parse(`inmemory://runeya/editor-${++n}.${e}`);s=M1.createModel(r.modelValue,r.language,t),o=M1.create(a.value,{model:s,theme:r.theme,readOnly:r.readonly,minimap:{enabled:!1},scrollBeyondLastLine:!1,automaticLayout:!0,fontSize:13,fontFamily:`'Monaco', 'Menlo', 'Ubuntu Mono', Courier, monospace`,tabSize:2,wordWrap:`on`,wrappingIndent:`indent`,lineNumbers:`on`,renderLineHighlight:`line`,overviewRulerLanes:0,hideCursorInOverviewRuler:!0,scrollbar:{verticalScrollbarSize:8,horizontalScrollbarSize:8},quickSuggestions:!0,suggestOnTriggerCharacters:!0,parameterHints:{enabled:!0}}),o.onDidChangeModelContent(()=>{i(`update:modelValue`,o?.getValue()??``)})}),Ln(()=>r.modelValue,e=>{o&&o.getValue()!==e&&o.setValue(e)}),Ln(()=>r.readonly,e=>o?.updateOptions({readOnly:e})),Ln(()=>r.theme,e=>M1.setTheme(e)),Ln(()=>r.extraLib,l),pr(()=>{c?.dispose(),o?.dispose(),s?.dispose()}),(t,n)=>(k(),A(`div`,{ref_key:`editorContainer`,ref:a,style:De({height:e.height,width:`100%`}),class:`monaco-container`},null,4))}}),[[`__scopeId`,`data-v-219e06d3`]]),Hwt={style:{display:`flex`,gap:`0.5rem`,"flex-wrap":`wrap`}},Uwt=Zn({__name:`RunnerSelector`,props:Fr({showKeep:{type:Boolean,default:!1}},{modelValue:{required:!0},modelModifiers:{}}),emits:[`update:modelValue`],setup(e){let{t}=Hc(),{claudeCodeAvailable:n,codexAvailable:r}=io(Gv()),i=qr(e,`modelValue`);return(a,o)=>(k(),A(`div`,Hwt,[e.showKeep?(k(),di(O(Sd),{key:0,label:O(t)(`aiChatPage.runner.asConfigured`),icon:`pi pi-sliders-h`,severity:i.value===`keep`?`primary`:`secondary`,outlined:i.value!==`keep`,size:`small`,onClick:o[0]||=e=>i.value=`keep`},null,8,[`label`,`severity`,`outlined`])):yi(``,!0),hi(O(Sd),{label:O(t)(`aiChatPage.runner.claudeCode`),icon:`pi pi-sparkles`,disabled:!O(n),title:O(n)?void 0:O(t)(`aiChatPage.runnerNotInstalled`,{runner:`Claude Code`}),severity:i.value===`claude-code`?`primary`:`secondary`,outlined:i.value!==`claude-code`,size:`small`,onClick:o[1]||=e=>!O(n)||(i.value=`claude-code`)},null,8,[`label`,`disabled`,`title`,`severity`,`outlined`]),hi(O(Sd),{label:O(t)(`aiChatPage.runner.codex`),icon:`pi pi-code`,disabled:!O(r),title:O(r)?void 0:O(t)(`aiChatPage.runnerNotInstalled`,{runner:`Codex`}),severity:i.value===`codex`?`primary`:`secondary`,outlined:i.value!==`codex`,size:`small`,onClick:o[2]||=e=>!O(r)||(i.value=`codex`)},null,8,[`label`,`disabled`,`title`,`severity`,`outlined`])]))}}),Wwt=[`src`,`alt`],Gwt={style:{display:`flex`,"flex-direction":`column`,gap:`0.9rem`}},Kwt=[`innerHTML`],qwt={key:0,style:{display:`flex`,"justify-content":`flex-end`}},Jwt={style:{display:`flex`,"flex-direction":`column`,gap:`0.5rem`}},Ywt={style:{opacity:`0.75`,"font-size":`0.9rem`}},Xwt={key:1,style:{display:`flex`,"flex-direction":`column`,gap:`0.5rem`}},Zwt={style:{opacity:`0.75`,"font-size":`0.9rem`}},Qwt={style:{display:`flex`,"flex-direction":`column`,gap:`0.35rem`}},$wt={for:`scenario-model-override`,style:{opacity:`0.75`,"font-size":`0.9rem`}},eTt={style:{display:`flex`,"justify-content":`flex-end`,gap:`0.5rem`}},tTt={style:{display:`flex`,"flex-direction":`column`,gap:`0.75rem`,padding:`0.5rem 0`}},nTt={style:{margin:`0`,"font-size":`0.9rem`,opacity:`0.75`}},rTt={key:1,style:{opacity:`0.55`,"font-size":`0.8rem`}},iTt={style:{display:`flex`,"justify-content":`flex-end`,gap:`0.5rem`,"margin-top":`1rem`}},aTt=Zn({__name:`AiChatModals`,emits:[`confirm-scenario-start`,`confirm-resume-scenario`],setup(e,{expose:t,emit:n}){let{t:r}=Hc(),i=Xc(),{providers:a}=io(Gv()),{connectedAgents:o}=io(dy()),s=ji(()=>{let e=[{label:r(`scenarioSelector.defaultAgent`),value:void 0}];for(let t of o.value)e.push({label:t.config.name||t.config.id,value:t.config.id});return e}),c=D(!1),l=D(``),u=D(``);function d(e,t){l.value=e,u.value=t,c.value=!0}let f=n,p=D(!1),m=D(null),h=D(void 0),g=D(``),_=D(`keep`),v=D(``),y=D(void 0),b=ji(()=>_.value===`codex`),x=D(!1);function S(e,t,n,r,i){m.value=e,h.value=r,g.value=t??``,_.value=n??`keep`,v.value=``,y.value=i,p.value=!0}async function C(){let e=g.value.trim();if(e){x.value=!0;try{g.value=(await yp.chat.enhanceScenarioPrompt.mutate({text:e,providerId:h.value})).enhanced}catch(e){i.add({severity:`error`,summary:r(`common.error`),detail:e.message,life:4e3})}finally{x.value=!1}}}function w(){let e=m.value;if(!e)return;let t=g.value.trim();p.value=!1,f(`confirm-scenario-start`,e,t,_.value,v.value,h.value,y.value)}let ee=D(!1),te=D(`keep`),ne=D(void 0);function T(){ee.value=!0}function re(){ee.value=!1,f(`confirm-resume-scenario`,te.value,ne.value)}return t({openImagePreview:d,showScenarioDialog:S,showResumeScenarioDialog:T}),(e,t)=>(k(),A(ri,null,[hi(O(Nd),{visible:c.value,"onUpdate:visible":t[2]||=e=>c.value=e,modal:``,closable:!0,"show-header":!1,style:{background:`rgba(0,0,0,0.85)`,padding:0,maxWidth:`90vw`,maxHeight:`90vh`},pt:{content:{style:`padding:0;background:transparent;display:flex;align-items:center;justify-content:center;position:relative;`}},autofocus:``,onClick:t[3]||=e=>c.value=!1},{default:Mn(()=>[j(`img`,{src:l.value,alt:u.value,style:{"max-width":`90vw`,"max-height":`90vh`,"object-fit":`contain`,display:`block`},onClick:t[0]||=Pa(()=>{},[`stop`])},null,8,Wwt),j(`button`,{style:{position:`absolute`,top:`8px`,right:`8px`,background:`rgba(0,0,0,0.6)`,border:`none`,color:`white`,width:`32px`,height:`32px`,"border-radius":`50%`,cursor:`pointer`,"font-size":`18px`,display:`flex`,"align-items":`center`,"justify-content":`center`},onClick:t[1]||=e=>c.value=!1},`×`)]),_:1},8,[`visible`]),hi(O(Nd),{visible:p.value,"onUpdate:visible":t[9]||=e=>p.value=e,header:O(r)(`aiChatPage.startScenario`),modal:``,style:{width:`560px`}},{default:Mn(()=>[j(`div`,Gwt,[j(`p`,{style:{margin:`0`,opacity:`0.7`},innerHTML:O(r)(`aiChatPage.describeUserNeed`)},null,8,Kwt),hi(Vwt,{modelValue:g.value,"onUpdate:modelValue":t[4]||=e=>g.value=e,language:`markdown`,height:`200px`,theme:`vs-dark`},null,8,[`modelValue`]),O(a).length>0?(k(),A(`div`,qwt,[hi(O(Sd),{label:O(r)(`aiChatPage.enhanceWithAI`),icon:`pi pi-sparkles`,size:`small`,severity:`secondary`,loading:x.value,disabled:!g.value.trim()||x.value,onClick:C},null,8,[`label`,`loading`,`disabled`])])):yi(``,!0),j(`div`,Jwt,[j(`label`,Ywt,E(O(r)(`aiChatPage.aiRunner`)),1),hi(Uwt,{modelValue:_.value,"onUpdate:modelValue":t[5]||=e=>_.value=e,"show-keep":!0},null,8,[`modelValue`])]),O(o).length>1?(k(),A(`div`,Xwt,[j(`label`,Zwt,E(O(r)(`aiChatPage.agentOverride`)),1),hi(O(ly),{modelValue:y.value,"onUpdate:modelValue":t[6]||=e=>y.value=e,options:s.value,"option-label":`label`,"option-value":`value`},null,8,[`modelValue`,`options`])])):yi(``,!0),j(`div`,Qwt,[j(`label`,$wt,E(O(r)(`aiChatPage.modelOverrideOptional`)),1),hi(O(ty),{id:`scenario-model-override`,modelValue:v.value,"onUpdate:modelValue":t[7]||=e=>v.value=e,maxlength:128,disabled:b.value,placeholder:b.value?O(r)(`aiChatPage.notAvailableWithCodex`):`Ex: sonnet, opus...`},null,8,[`modelValue`,`disabled`,`placeholder`])]),j(`div`,eTt,[hi(O(Sd),{label:O(r)(`actions.cancel`),severity:`secondary`,text:``,onClick:t[8]||=e=>p.value=!1},null,8,[`label`]),hi(O(Sd),{label:O(r)(`actions.create`),icon:`pi pi-play`,onClick:w},null,8,[`label`])])])]),_:1},8,[`visible`,`header`]),hi(O(Nd),{visible:ee.value,"onUpdate:visible":t[13]||=e=>ee.value=e,header:O(r)(`aiChatPage.scenario.resumeTitle`),modal:``,style:{width:`400px`},onKeydown:Fa(Pa(re,[`prevent`]),[`enter`])},{default:Mn(()=>[j(`div`,tTt,[j(`p`,nTt,E(O(r)(`aiChatPage.resumeRunnerQuestion`)),1),hi(Uwt,{modelValue:te.value,"onUpdate:modelValue":t[10]||=e=>te.value=e,"show-keep":!0},null,8,[`modelValue`]),O(o).length>1?(k(),di(O(ly),{key:0,modelValue:ne.value,"onUpdate:modelValue":t[11]||=e=>ne.value=e,options:s.value,"option-label":`label`,"option-value":`value`,style:{"margin-top":`0.25rem`}},null,8,[`modelValue`,`options`])):yi(``,!0),te.value===`keep`?yi(``,!0):(k(),A(`small`,rTt,[vi(E(O(r)(`aiChatPage.resumeRunnerHintPrefix`))+` `,1),j(`strong`,null,E(te.value===`claude-code`?O(r)(`aiChatPage.runner.claudeCode`):O(r)(`aiChatPage.runner.codex`)),1),t[14]||=vi(`. `,-1)]))]),j(`div`,iTt,[hi(O(Sd),{label:O(r)(`actions.cancel`),severity:`secondary`,text:``,onClick:t[12]||=e=>ee.value=!1},null,8,[`label`]),hi(O(Sd),{label:O(r)(`aiChatPage.resume`),icon:`pi pi-play`,onClick:re},null,8,[`label`])])]),_:1},8,[`visible`,`header`,`onKeydown`])],64))}});const oTt=ro(`kanban`,()=>{let e=D([]),t=D(!1),n=D(null),r=ji(()=>e.value.filter(e=>!e.archived)),i=ji(()=>e.value.filter(e=>e.archived));async function a(r=!0){t.value=!0,n.value=null;try{e.value=await yp.kanban.list.query({includeArchived:r})}catch(e){n.value=Vv(e)??`Failed to fetch boards`}finally{t.value=!1}}async function o(t){n.value=null;try{let n=await yp.kanban.get.query({id:t}),r=e.value.findIndex(e=>e.id===t);if(r>=0){let t=[...e.value];t[r]=n,e.value=t}else e.value=[...e.value,n];return n}catch(e){return n.value=Vv(e)??`Failed to fetch board`,null}}async function s(t){n.value=null;try{let n=await yp.kanban.create.mutate(t);return e.value=[...e.value,n],n}catch(e){return n.value=Vv(e)??`Failed to create board`,null}}async function c(t,r){n.value=null;try{let n=await yp.kanban.update.mutate({id:t,...r}),i=e.value.findIndex(e=>e.id===t);if(i>=0){let t=[...e.value];t[i]=n,e.value=t}return n}catch(e){return n.value=Vv(e)??`Failed to update board`,null}}async function l(t){n.value=null;try{return await yp.kanban.delete.mutate({id:t}),e.value=e.value.filter(e=>e.id!==t),!0}catch(e){return n.value=Vv(e)??`Failed to delete board`,!1}}async function u(e){return c(e,{archived:!0})}async function d(e){return c(e,{archived:!1})}let f=null;function p(){f||=yp.kanban.onChanged.subscribe(void 0,{onData(t){if(t.type===`updated`||t.type===`created`){let n=t.board,r=e.value.findIndex(e=>e.id===n.id);if(r>=0){let t=[...e.value];t[r]=n,e.value=t}else t.type===`created`&&(e.value=[...e.value,n])}else t.type===`deleted`&&(e.value=e.value.filter(e=>e.id!==t.id))}})}function m(){f?.unsubscribe(),f=null}return{boards:e,loading:t,error:n,activeBoards:r,archivedBoards:i,fetchAll:a,fetchOne:o,create:s,update:c,remove:l,archive:u,unarchive:d,subscribeToChanges:p,unsubscribeFromChanges:m}});var B9=D(null),V9=D(null);function sTt(){function e(e){B9.value=e,V9.value=null}function t(e){V9.value=e}function n(){B9.value=null}function r(){V9.value=null}return{pendingConvId:B9,generatedCode:V9,setPendingConv:e,setGeneratedCode:t,clear:n,clearResult:r}}var cTt={class:`ai-chat-page__main`},lTt={key:0,class:`ai-chat-page__empty`},uTt={class:`ai-chat-page__header`},dTt={class:`ai-chat-page__header-left`},fTt={class:`ai-chat-page__header-title`},pTt={key:1},mTt={class:`ai-chat-page__conv-meta`},hTt={key:0,class:`ai-chat-page__runner-badge`},gTt=[`title`],_Tt={class:`ai-chat-page__context-progress-bar`},vTt={class:`ai-chat-page__context-progress-label`},yTt=[`title`],bTt={class:`ai-chat-page__header-actions`},xTt=Vd(Zn({__name:`AiChatPage`,setup(e){let{t}=Hc(),n=wu(),r=oTt(),i=Xc(),a=Gv(),o=uy(),{activeId:s,activeConversation:c,isStreaming:l,streamingConvId:u,activeContextUsage:d,contextPercent:f}=io(a),p=ji(()=>{let e=c.value;if(!e||e.workflowType===`scenario`)return null;let t=e.runner??(e.isCli&&!e.providerId?`claude-code`:null);if(t===`codex`)return`Codex`;if(t===`claude-code`)return`Claude Code`;if(e.providerId){let t=a.providers.find(t=>t.id===e.providerId);if(t)return t.label}return null}),m=D(``),h=D(!1),g=D(!1),_=D(!1),v=D(``),y=D(null);function b(){c.value&&(v.value=c.value.title,_.value=!0,xn(()=>y.value?.select()))}async function x(){if(!c.value)return;let e=v.value.trim();e&&await a.renameConversation(c.value.id,e),_.value=!1}function S(){_.value=!1}function C(e){navigator.clipboard.writeText(e),i.add({severity:`success`,summary:t(`aiChat.conversationIdCopied`),life:2e3})}let w=D(null),ee=D(null),te=D(null),ne=D([]),T=0,re=()=>new Date().toISOString(),ie=null,ae=ji(()=>l.value&&u.value===s.value);function oe(){return c.value?.workflowType===`scenario`?ee.value?.messagesEl??null:w.value?.messagesEl??null}function se(){let e=oe();if(!e)return!0;let{scrollTop:t,scrollHeight:n,clientHeight:r}=e;return n-t-r<80}async function ce(e=!1){if(!e&&!se())return;await xn();let t=oe();t&&(t.scrollTop=t.scrollHeight),t?.querySelectorAll(`.ai-chat-scenario-view__thinking-content, .ai-chat-message-list__thinking-content`).forEach(e=>{e.scrollTop=e.scrollHeight})}function le(){s.value=null,h.value=!0,a.pendingNewConversation=!0,g.value=!1}function ue(e){a.pendingNewConversation=!1,a.selectConversation(e),g.value=!1,h.value=!1,ee.value?.resetNodeSelection()}async function de(e){a.deleteConversation(e)}async function fe(e=`keep`,t,n){h.value=!1,a.pendingNewConversation=!1,await a.createConversation({runner:e===`keep`?void 0:e,providerId:e===`keep`?t??void 0:void 0,agentId:n}),m.value=``}function pe(e,t,n,r){h.value=!1,a.pendingNewConversation=!1,te.value?.showScenarioDialog(e,void 0,t,n??void 0,r)}async function me(e,n,r,o,s,c){try{let t=await a.createConversation({scenarioId:e,scenarioInput:n,title:n?`Scenario: ${n}`:`Scenario conversation`,providerId:s,agentId:c});if(await ce(!0),n&&t){let i=r===`codex`?``:o.trim(),s=r!==`keep`||i||c?{...r===`keep`?{}:{runnerOverride:r},...i?{modelOverride:i}:{},...c?{agentId:c}:{}}:void 0;a.startScenarioRun(t.id,e,n,()=>ce(!1),s)}}catch(e){i.add({severity:`error`,summary:t(`common.error`),detail:e.message,life:4e3})}}async function he(){let e=c.value;!e||e.workflowType!==`scenario`||await a.stopScenario(e.id)}function ge(){te.value?.showResumeScenarioDialog()}async function _e(e,n){let r=c.value;if(!r)return;let o=e===`keep`?void 0:e;try{await a.resumeScenario(r.id,()=>ce(!1),{...o?{runnerOverride:o}:{},...n?{agentId:n}:{}})}catch(e){i.add({severity:`error`,summary:t(`common.error`),detail:e.message,life:4e3})}}async function ve(){let e=m.value.trim(),{pendingContext:n,pendingPopulateContext:r}=Bv();if(!e&&a.pendingImages.length===0&&!n.value&&!r.value||(!e&&n.value&&(e=`Voici le contexte ci-joint, aide-moi à avancer.`),!e&&r.value&&(e=r.value),!c.value&&(await fe(),!c.value)))return;let o=c.value;try{if(o.workflowType===`scenario`){if(o.scenarioRunning)return;m.value=``,a.startScenarioRun(o.id,o.workflowId,e,()=>ce(!1),o.scenarioRunOverrides),await ce(!0);return}m.value=``,r.value=null,await a.send(e,ce)}catch(e){i.add({severity:`error`,summary:t(`common.error`),detail:e.message,life:3500})}}function ye(e,t){let n=null;Ln(u,t=>{t&&e(t)&&(n=t)}),Ln(l,async e=>{if(e||!n)return;let r=n;n=null,await t(r),await a.deleteConversation(r),Bv().close()})}ye(e=>{let t=a.conversations.find(t=>t.id===e);return!!(t?.kanbanBoardId&&!t.kanbanCardId)},async e=>{let t=a.conversations.find(t=>t.id===e)?.kanbanBoardId;t&&n.currentRoute.value.name===`kanban-board`&&await r.fetchOne(t)});let be=sTt();ye(e=>e===be.pendingConvId.value,async e=>{be.clear();let t=a.conversations.find(t=>t.id===e);if(!t)return;let n=t.messages.filter(e=>e.role===`assistant`),r=n[n.length-1];if(r?.content){let e=r.content.match(/```(?:javascript|js|typescript|ts)?\n([\s\S]+?)```/);e&&be.setGeneratedCode(e[1].trim())}}),Ln(()=>c.value?.id,async e=>{ee.value?.resetNodeSelection(),e&&c.value?.workflowType===`scenario`&&await o.fetchScenarios()}),Ln(s,e=>{e&&(h.value=!1),xn(()=>ce(!0))},{flush:`sync`});let{autoSendPending:xe,hideSidebar:Se}=Bv();async function Ce(){!xe.value||!c.value||(xe.value=!1,await xn(),ve())}return Ln([xe,c],()=>Ce()),ur(async()=>{Uv()&&console.time(`[ai-chat][page] mount`),Uv()&&console.log(`[ai-chat][page]`,re(),`mounted`,{drawerHideSidebar:Se.value,activeId:s.value}),a.isChatPageVisible=!0,await a.init(),a.setScrollCallback(ce),o.fetchScenarios(),yp.scenario.listPresets.query().then(e=>{ne.value=e}).catch(()=>{}),xn(()=>ce(!0)),Ce(),ie||=setInterval(()=>{let e=a.refreshStreamingSessions;typeof e==`function`?e():a.init()},1500),Uv()&&console.timeEnd(`[ai-chat][page] mount`)}),fr(()=>{T+=1,Uv()&&console.log(`[ai-chat][page]`,re(),`updated`,{count:T,activeId:s.value,hasConversation:!!c.value,isStreaming:l.value,drawerHideSidebar:Se.value})}),mr(()=>{Uv()&&console.log(`[ai-chat][page]`,re(),`unmounted`,{updates:T,activeId:s.value}),ie&&=(clearInterval(ie),null),a.isChatPageVisible=!1,a.setScrollCallback(()=>{})}),(e,n)=>{let r=vr(`router-link`);return k(),A(ri,null,[j(`div`,{class:Me([`ai-chat-page`,{"ai-chat-page--no-sidebar":O(Se)}])},[O(Se)?yi(``,!0):(k(),A(`div`,{key:0,class:Me([`ai-chat-page__sidebar-wrap`,{"ai-chat-page__sidebar-wrap--open":g.value}])},[hi(HOe,{onStartNew:le,onSelectConversation:ue,onDeleteConversation:de})],2)),g.value&&!O(Se)?(k(),A(`div`,{key:1,class:`ai-chat-page__backdrop`,onClick:n[0]||=e=>g.value=!1})):yi(``,!0),j(`section`,cTt,[h.value||!O(c)?(k(),A(`div`,lTt,[hi(O(Sd),{class:`ai-chat-page__menu-btn ai-chat-page__menu-btn--empty`,icon:`pi pi-bars`,text:``,rounded:``,size:`small`,onClick:n[1]||=e=>g.value=!g.value}),hi(SDe,{onSelectScenario:pe,onSkip:fe})])):(k(),A(ri,{key:1},[j(`header`,uTt,[j(`div`,dTt,[hi(O(Sd),{class:`ai-chat-page__menu-btn`,icon:`pi pi-bars`,text:``,rounded:``,size:`small`,onClick:n[2]||=e=>g.value=!g.value}),j(`div`,fTt,[_.value?Nn((k(),A(`input`,{key:0,ref_key:`renameInputEl`,ref:y,"onUpdate:modelValue":n[3]||=e=>v.value=e,class:`ai-chat-page__rename-input`,onKeydown:[Fa(x,[`enter`]),Fa(S,[`escape`])],onBlur:x},null,544)),[[Ta,v.value]]):(k(),A(`h2`,pTt,E(O(c).title),1)),j(`div`,mTt,[p.value?(k(),A(`span`,hTt,E(p.value),1)):yi(``,!0),O(d)?(k(),A(`div`,{key:1,class:`ai-chat-page__context-progress`,title:`Context: ${O(d).inputTokens.toLocaleString()} / ${O(d).contextWindow.toLocaleString()} tokens`},[j(`div`,_Tt,[j(`div`,{class:Me([`ai-chat-page__context-progress-fill`,{"ai-chat-page__context-progress-fill--warn":O(f)>=70,"ai-chat-page__context-progress-fill--danger":O(f)>=90}]),style:De({width:O(f)+`%`})},null,6)]),j(`span`,vTt,E(O(f))+`%`,1)],8,gTt)):yi(``,!0),O(c).kanbanBoardId?(k(),di(r,{key:2,to:{name:`kanban-board`,params:{id:O(c).kanbanBoardId},query:O(c).kanbanCardId?{card:O(c).kanbanCardId}:{}},class:`ai-chat-page__kanban-link`,title:`Ouvrir le tableau Kanban`},{default:Mn(()=>[...n[10]||=[j(`i`,{class:`pi pi-table`,style:{"font-size":`0.7rem`}},null,-1),vi(` Kanban `,-1)]]),_:1},8,[`to`])):yi(``,!0),O(c).id?(k(),A(`span`,{key:3,class:`ai-chat-page__conv-id`,title:O(c).id,onClick:n[4]||=e=>C(O(c).id)},`ID: `+E(O(c).id.slice(0,8))+`…`,9,yTt)):yi(``,!0)])])]),j(`div`,bTt,[O(c).workflowType===`scenario`&&O(c).scenarioRunning?(k(),di(O(Sd),{key:0,size:`small`,severity:`danger`,icon:`pi pi-stop`,label:`Stop`,onClick:he})):yi(``,!0),hi(O(Sd),{size:`small`,text:``,icon:`pi pi-pencil`,title:O(t)(`aiChat.rename`),onClick:b},null,8,[`title`]),hi(O(Sd),{size:`small`,text:``,icon:`pi pi-inbox`,title:O(t)(`aiChat.archive`),onClick:n[5]||=e=>O(a).archiveConversation(O(c).id,!0)},null,8,[`title`]),hi(O(Sd),{size:`small`,text:``,icon:`pi pi-trash`,severity:`danger`,onClick:n[6]||=e=>O(a).deleteConversation(O(c).id)})])]),O(c).workflowType===`scenario`?(k(),di(GRe,{key:0,ref_key:`scenarioViewRef`,ref:ee,"available-presets":ne.value,onClickResume:ge},null,8,[`available-presets`])):(k(),di(cje,{key:1,ref_key:`messageListRef`,ref:w,messages:O(c).messages,"is-streaming":O(l),onOpenImagePreview:n[7]||=(e,t)=>te.value?.openImagePreview(e,t)},null,8,[`messages`,`is-streaming`])),O(c).workflowType===`scenario`?yi(``,!0):(k(),di(Rje,{key:2,input:m.value,"onUpdate:input":n[8]||=e=>m.value=e,"is-streaming":O(l),"is-streaming-current-conv":ae.value,"active-conversation-id":O(c).id,onSubmit:ve,onOpenImagePreview:n[9]||=(e,t)=>te.value?.openImagePreview(e,t)},null,8,[`input`,`is-streaming`,`is-streaming-current-conv`,`active-conversation-id`]))],64))])],2),hi(aTt,{ref_key:`modalsRef`,ref:te,onConfirmScenarioStart:me,onConfirmResumeScenario:_e},null,512)],64)}}}),[[`__scopeId`,`data-v-0c7dbea0`]]),H9=`runeya:last-project`,STt=`runeya:launch-selection:`;const U9=ro(`launch`,()=>{let e=localStorage.getItem(H9),t=D(e),n=D(!!e);function r(e){try{let t=localStorage.getItem(STt+e);if(!t)return[];let n=JSON.parse(t);return Array.isArray(n)?n.filter(e=>typeof e==`string`):[]}catch{return[]}}function i(e,t){localStorage.setItem(STt+e,JSON.stringify(t))}function a(e){t.value=e,localStorage.setItem(H9,e)}function o(){return localStorage.getItem(H9)}function s(){n.value=!0}function c(){t.value=null,n.value=!1,localStorage.removeItem(H9)}function l(e,t){let n=r(e);n.includes(t)||(n.push(t),i(e,n))}function u(e,t){i(e,r(e).filter(e=>e!==t))}return{activeProjectId:t,launchCompleted:n,getSavedSelection:r,saveSelection:i,setActiveProject:a,getLastProjectId:o,completeLaunch:s,resetLaunch:c,addServiceToSelection:l,removeServiceFromSelection:u}});var W9={scenario_waiting_input:!0,ai_conversation_complete:!0,ai_conversation_error:!0,service_error_log:!0,service_status_changed:!0,service_health_changed:!0},CTt=0,wTt=500,TTt=80,ETt=new Set(Object.keys(W9));function DTt(e){if(!e)return;let t=e.trim();if(!(!t||!t.startsWith(`/`)||t.startsWith(`//`)))try{let e=new URL(t,window.location.origin);return e.origin===window.location.origin?`${e.pathname}${e.search}${e.hash}`:void 0}catch{return}}function G9(e,t){let n=e.trim();return n.length>t?`${n.slice(0,t-3)}...`:n}function OTt(e){let t={};for(let[n,r]of Object.entries(e)){if(typeof r!=`boolean`)continue;let e=n;ETt.has(e)&&(t[e]=r)}return t}const K9=ro(`notification`,()=>{let e=D([]),t=D({...W9}),n=D(!1),r=ji(()=>e.value.filter(e=>!e.read).length),i=ji(()=>Object.entries(t.value).filter(([,e])=>e).map(([e])=>e));function a(e){return t.value[e]}function o(t){if(!a(t.category))return;let n=DTt(t.link);CTt++,e.value=[{id:`notif-${CTt}`,type:t.type,category:t.category,title:G9(t.title,wTt),message:G9(t.message,wTt),link:n,linkLabel:t.linkLabel?G9(t.linkLabel,TTt):void 0,timestamp:Date.now(),read:!1},...e.value]}function s(t){e.value=e.value.map(e=>e.id===t?{...e,read:!0}:e)}function c(){e.value=e.value.map(e=>({...e,read:!0}))}function l(t){e.value=e.value.filter(e=>e.id!==t)}function u(){e.value=[]}async function d(){if(!n.value){n.value=!0;try{let e=await yp.settings.getNotificationPreferences.query();t.value={...W9,...e}}finally{n.value=!1}}}async function f(e){let r=OTt(e);if(Object.keys(r).length===0)return t.value;n.value=!0;try{let e=await yp.settings.updateNotificationPreferences.mutate(r);return t.value={...W9,...e},t.value}finally{n.value=!1}}return{notifications:e,unreadCount:r,preferences:t,enabledCategories:i,preferencesLoading:n,isCategoryEnabled:a,add:o,markRead:s,markAllRead:c,remove:l,clear:u,loadPreferences:d,updatePreferences:f}});var kTt=5,ATt=Mv,jTt=5e3,MTt=`runeya:ws-debug`;function NTt(){try{return localStorage.getItem(MTt)===`1`}catch{return!1}}function q9(...e){NTt()&&console.log(`[process.store][ws]`,new Date().toISOString(),...e)}const PTt=ro(`process`,()=>{let e=D([]),t=D(!1),n=D(null),r=D({}),i=null,a=0,o=null,s=null,c=new Map,l=new Map,u=new Map,d=new Map,f=ji(()=>e.value.length),p=ji(()=>e.value.filter(e=>e.state===`running`)),m=ji(()=>(t,n)=>e.value.find(e=>e.agentId===t&&e.id===n)??null),h=ji(()=>t=>e.value.filter(e=>e.serviceId===t));function g(e,t){return`${e}::${t}`}function _(e,t){return`/process/${e}/${t}`}function v(e){return Hv().getById(e)?.name??e}function y(e,t){if(e.state===t.state)return;let n=K9(),r=v(t.serviceId),i=t.state===`errored`;n.add({type:i?`error`:`info`,category:`service_status_changed`,title:i?`Service errored`:`Service status changed`,message:`${r}: ${e.state} -> ${t.state}`,link:_(t.agentId,t.id),linkLabel:`Open ${r}`})}function b(e,t){if(e.healthStatus===t.healthStatus)return;let n=K9(),r=v(t.serviceId),i=t.healthStatus===`unhealthy`?`warn`:t.healthStatus===`healthy`?`success`:`info`;n.add({type:i,category:`service_health_changed`,title:`Service health changed`,message:`${r}: ${e.healthStatus} -> ${t.healthStatus}`,link:_(t.agentId,t.id),linkLabel:`Open ${r}`})}function x(e){let t=d.get(e);if(!t||t.size<=400)return;let n=Array.from(t).slice(-200);d.set(e,new Set(n))}function S(e,t){let n=g(e.agentId,e.id),r=Date.now();if(r-(u.get(n)??0)<jTt)return;let i=d.get(n)??new Set;if(i.has(t.id))return;i.add(t.id),d.set(n,i),x(n),u.set(n,r);let a=K9(),o=v(e.serviceId),s=t.message.length>180?`${t.message.slice(0,177)}...`:t.message;a.add({type:`error`,category:`service_error_log`,title:`Error log on ${o}`,message:s,link:_(e.agentId,e.id),linkLabel:`Open ${o}`})}function C(e){let t=l.get(e);t&&(t.unsubscribe(),l.delete(e),u.delete(e),d.delete(e))}function w(){let t=new Set(e.value.filter(e=>e.state===`running`||e.state===`starting`).map(e=>g(e.agentId,e.id)));for(let e of Array.from(l.keys()))t.has(e)||C(e);for(let t of e.value){if(t.state!==`running`&&t.state!==`starting`)continue;let n=g(t.agentId,t.id);if(l.has(n))continue;let r=yp.process.onLog.subscribe({agentId:t.agentId,processId:t.id},{onData(n){let r=n,i=e.value.find(e=>e.id===t.id&&e.agentId===t.agentId);if(i)for(let e of r)(e.level===`error`||e.level===`fatal`)&&S(i,e)},onError(){C(n)}});l.set(n,r)}}function ee(t){let n=e.value.find(e=>e.id===t.id&&e.agentId===t.agentId),i=e.value.findIndex(e=>e.id===t.id&&e.agentId===t.agentId);if(i>=0){let n=[...e.value];n[i]=t,e.value=n}else e.value=[...e.value,t];r.value={...r.value,[g(t.agentId,t.id)]:Date.now()},n&&(y(n,t),b(n,t)),w()}function te(e,t){let n=g(e.agentId,e.id),i=c.get(n);i&&(clearTimeout(i),c.delete(n));let a=setTimeout(()=>{c.delete(n),(r.value[n]??0)<=t&&ee(e)},900);c.set(n,a)}function ne(){q9(`subscribeStatus()`),i=yp.process.onStatus.subscribe({},{onData(e){a=0,q9(`onStatus data`,{id:e.id,agentId:e.agentId,state:e.state}),ee(e)},onError(e){i=null,console.error(`[process.store] Status subscription error:`,e.message),q9(`onStatus error`,e.message,{retryCount:a}),T()}})}function T(){if(a>=kTt){console.warn(`[process.store] Max retries (${kTt}) reached for status subscription`),q9(`scheduleRetry max reached`,{retryCount:a});return}let e=ATt*2**a+Math.random()*300;q9(`scheduleRetry`,{retryCount:a,delay:e}),a++,o=setTimeout(()=>{o=null,q9(`retry timer fired`),ne()},e)}function re(e=!1){q9(`startStatusStream()`,{force:e,hasSub:!!i,hasRetryTimer:!!o}),s||=ip(()=>{q9(`onWsReopen — forcing status stream restart`),a=0,re(!0)}),o&&(clearTimeout(o),o=null,q9(`cleared pending retry timer`)),e&&i&&(i.unsubscribe(),i=null,q9(`forced unsubscribe existing statusSub`)),!i&&(a=0,ne())}function ie(){q9(`stopStatusStream()`),s&&=(s(),null),c.forEach(e=>clearTimeout(e)),c.clear(),o&&=(clearTimeout(o),null),i&&=(i.unsubscribe(),null);for(let e of Array.from(l.keys()))C(e);a=0}async function ae(){t.value=!0,n.value=null;try{e.value=await yp.process.list.query(),w()}catch(e){n.value=Vv(e)??`Failed to fetch processes`}finally{t.value=!1}}async function oe(e,t){n.value=null;try{let n=Date.now(),r=await yp.process.start.mutate({agentId:e,processId:t});te(r,n);let i=U9();return i.activeProjectId&&r.serviceId&&i.addServiceToSelection(i.activeProjectId,r.serviceId),r}catch(e){throw n.value=Vv(e)??`Failed to start process`,e}}async function se(e,t){n.value=null;try{let n=Date.now(),r=await yp.process.stop.mutate({agentId:e,processId:t});te(r,n);let i=U9();return i.activeProjectId&&r.serviceId&&i.removeServiceFromSelection(i.activeProjectId,r.serviceId),r}catch(e){throw n.value=Vv(e)??`Failed to stop process`,e}}async function ce(e,t){n.value=null;try{let n=Date.now(),r=await yp.process.restart.mutate({agentId:e,processId:t});return te(r,n),r}catch(e){throw n.value=Vv(e)??`Failed to restart process`,e}}return{processes:e,loading:t,error:n,processCount:f,runningProcesses:p,getById:m,getByService:h,fetchAll:ae,start:oe,stop:se,restart:ce,startStatusStream:re,stopStatusStream:ie}});async function J9(e){await e.loadPreferences().catch(()=>{}),e.initTrpcWs(),e.startStatusStream()}var FTt=[`title`],ITt={key:0,class:`disconnected-overlay`},LTt={class:`disconnected-box`},RTt={class:`disconnected-title`},zTt={class:`disconnected-subtitle`},BTt=5e3,VTt=Vd(Zn({__name:`App`,setup(e){let t={"runeya:locale":B_([`fr`,`en`]),"runeya-dark-mode":B_([`0`,`1`]),"runeya-theme-color":B_([`slate`,`orange`,`amber`,`emerald`,`teal`,`sky`,`blue`,`violet`,`pink`,`custom`]),"runeya-theme-preset":B_([`aura`,`lara`,`material`,`nora`]),"runeya-theme-gradient":B_([`0`,`1`]),"runeya-mode":B_([`local-simple`,`cloud`]),"runeya-cloud-url":P().url().max(2048),"runeya-setup-complete":H_(`1`),"runeya:mode":B_([`local-simple`,`cloud`]),"runeya:cloudUrl":P().url().max(2048),"runeya:ai-chat-model":P().max(200),"runeya:ai-chat-effort":B_([`low`,`medium`,`high`])};function n(){for(let[e,n]of Object.entries(t)){let t=localStorage.getItem(e);t!==null&&(n.safeParse(t).success||(console.warn(`[localStorage] Invalid value for "${e}", clearing:`,t),localStorage.removeItem(e)))}}n();let{t:r}=Hc(),i=wu(),a=PTt(),o=K9(),{state:s}=Mhe(),{isOpen:c,isExpanded:l,toggle:u,close:d}=Bv(),f=()=>new Date().toISOString();function p(){Uv()&&console.log(`[ai-chat][drawer]`,f(),`show`,{expanded:l.value,route:i.currentRoute.value.fullPath})}function m(){Uv()&&console.log(`[ai-chat][drawer]`,f(),`hide`,{expanded:l.value,route:i.currentRoute.value.fullPath})}function h(e){e.ctrlKey&&e.shiftKey&&e.code===`Space`&&e.preventDefault()}function g(e){e.ctrlKey&&e.shiftKey&&e.code===`Space`&&u()}let _=new Set([`unlock`,`setup`,`setup-key`]),v=ji(()=>_.has(i.currentRoute.value.name)),y=!1,b=null;return Ln(s,(e,t)=>{if(e!==`connected`){b===null&&(b=Date.now());return}let n=b===null?0:Date.now()-b;if(b=null,!y){y=!0;return}t!==`connected`&&!v.value&&n>=BTt&&window.location.reload()}),ur(()=>{window.addEventListener(`keydown`,h),window.addEventListener(`keyup`,g),!v.value&&Qf()&&J9({loadPreferences:()=>o.loadPreferences(),initTrpcWs:vp,startStatusStream:()=>a.startStatusStream()})}),mr(()=>{a.stopStatusStream(),window.removeEventListener(`keydown`,h),window.removeEventListener(`keyup`,g)}),Ln(()=>i.currentRoute.value.name,(e,t)=>{let n=_.has(t??``),r=_.has(e??``);n&&!r&&Qf()&&J9({loadPreferences:()=>o.loadPreferences(),initTrpcWs:vp,startStatusStream:()=>a.startStatusStream()})}),(e,t)=>(k(),A(ri,null,[hi(O(ud)),hi(O(Ld)),hi(Tme,null,{default:Mn(()=>[hi(O(Cu))]),_:1}),hi(O(Bd),{visible:O(c),"onUpdate:visible":t[1]||=e=>en(c)?c.value=e:null,position:`right`,"show-close-icon":!1,onShow:p,onHide:m,pt:{root:{style:`width: ${O(l)?`calc(100vw - 70px)`:`560px`}; padding: 0; transition: width 0.25s ease; overflow: visible;`},header:{style:`display: none;`},content:{style:`padding: 0; display: flex; flex-direction: column; height: 100%; overflow: hidden;`}}},{default:Mn(()=>[j(`button`,{class:`ai-drawer-expand-btn`,title:O(l)?O(r)(`drawer.collapse`):O(r)(`drawer.expand`),onClick:t[0]||=e=>l.value=!O(l)},[j(`i`,{class:Me([`pi`,O(l)?`pi-chevron-right`:`pi-chevron-left`])},null,2)],8,FTt),hi(xTt)]),_:1},8,[`visible`,`pt`]),hi(zi,{name:`overlay`},{default:Mn(()=>[O(s)!==`connected`&&!v.value?(k(),A(`div`,ITt,[j(`div`,LTt,[t[2]||=j(`i`,{class:`pi pi-cloud-slash disconnected-icon`},null,-1),j(`h1`,RTt,E(O(r)(`connection.unreachable`)),1),j(`p`,zTt,E(O(r)(`connection.reconnecting`)),1),t[3]||=j(`i`,{class:`pi pi-spin pi-spinner disconnected-spinner`},null,-1)])])):yi(``,!0)]),_:1})],64))}}),[[`__scopeId`,`data-v-f993f0bc`]]);const Y9=Hde({history:Cde(),routes:[{path:`/unlock`,name:`unlock`,component:()=>tp(()=>import(`./UnlockPage-DOJwyaIc.js`),__vite__mapDeps([2,3,4,5,6]))},{path:`/setup`,name:`setup`,component:()=>tp(()=>import(`./SetupPage-66SJwdOq.js`),__vite__mapDeps([7,3,4,8,9]))},{path:`/setup-key`,name:`setup-key`,component:()=>tp(()=>import(`./SetupKeyPage-CuqL0je4.js`),__vite__mapDeps([10,11]))},{path:`/launch/project`,name:`launch-project`,component:()=>tp(()=>import(`./LaunchProjectPage-CIGYCxFP.js`),__vite__mapDeps([12,13,3,14]))},{path:`/launch/services`,name:`launch-services`,component:()=>tp(()=>import(`./LaunchServicesPage-D0j30OXl.js`),__vite__mapDeps([15,13,16,17,4,18,19]))},{path:`/`,component:()=>tp(()=>import(`./AppLayout-CDmZkp4X.js`),__vite__mapDeps([20,21,22,23,24,25,26,27,18,28,29,13,30])),children:[{path:``,name:`dashboard`,component:()=>tp(()=>import(`./DashboardPage-jcsHhPai.js`),__vite__mapDeps([31,13,3,32,16,17,33,8,18,34]))},{path:`agents`,name:`agents`,component:()=>tp(()=>import(`./AgentPage-BgJ6Oumo.js`),__vite__mapDeps([35,36,37,32,16,17,33,8,5,18,38,39]))},{path:`kanban`,name:`kanban-list`,component:()=>tp(()=>import(`./KanbanListPage-BeViEJtv.js`),__vite__mapDeps([40,3,41,42]))},{path:`kanban/:id`,name:`kanban-board`,component:()=>tp(()=>import(`./KanbanBoardPage-DhSVHsG8.js`),__vite__mapDeps([43,44,41,45,46,47])),props:!0},{path:`agent-terminal`,name:`agent-terminal`,component:()=>tp(()=>import(`./AgentTerminalPage-10MrzYed.js`),__vite__mapDeps([48,49]))},{path:`audit`,name:`audit`,component:()=>tp(()=>import(`./AuditPage-DmzLNZum.js`),__vite__mapDeps([50,32,16,17,33,8,18,51]))},{path:`settings`,name:`settings`,component:()=>tp(()=>import(`./SettingsPage-B_3jbuRH.js`),__vite__mapDeps([52,21,22,53,54,16,17,37,55,29,56,3,4,38,57]))},{path:`api-keys`,name:`api-keys`,redirect:{path:`/settings`,query:{section:`api-keys`}}},{path:`api-docs`,name:`api-docs`,component:()=>tp(()=>import(`./ApiDocsPage-BLR94Cpt.js`),__vite__mapDeps([58,59,60,45,46,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,82,83,84,85,86,87,88,89,90,91,92,93]))},{path:`ai-chat`,name:`ai-chat`,component:()=>tp(()=>import(`./AiChatPage-DHXHJArt.js`),[])},{path:`scenario/new`,name:`scenario-new`,component:()=>tp(()=>import(`./ScenarioEditorPage-C6ezD0zR.js`),__vite__mapDeps([94,44,16,17,54,37,95]))},{path:`scenario/:id/edit`,name:`scenario-edit`,component:()=>tp(()=>import(`./ScenarioEditorPage-C6ezD0zR.js`),__vite__mapDeps([94,44,16,17,54,37,95])),props:!0},{path:`services/new`,name:`service-create`,component:()=>tp(()=>import(`./ServiceFormPage-DJjK3iWz.js`),__vite__mapDeps([96,13,36,37,97,98,33,17,38,99]))},{path:`services/:id/edit`,name:`service-edit`,component:()=>tp(()=>import(`./ServiceFormPage-DJjK3iWz.js`),__vite__mapDeps([96,13,36,37,97,98,33,17,38,99])),props:!0},{path:`services/:id/:tab?`,name:`service-detail`,component:()=>tp(()=>import(`./ServiceDetailPage-KU1gvCBw.js`),__vite__mapDeps([100,101,44,36,37,32,16,17,33,8,18,38,102,25,26,27,28,53,54,55,103,104,29,13,56,97,4,41,105]))},{path:`projects`,name:`projects`,component:()=>tp(()=>import(`./ProjectListPage-D5AjQ76w.js`),__vite__mapDeps([106,13,3,107]))},{path:`projects/:projectId`,name:`project-detail`,component:()=>tp(()=>import(`./ProjectDetailPage-BbTkdOjA.js`),__vite__mapDeps([108,23,24,13,3,32,16,17,33,8,18,109])),props:!0},{path:`projects/:projectId/environments`,name:`environments`,component:()=>tp(()=>import(`./EnvironmentListPage-DJrq-bw9.js`),__vite__mapDeps([110,101,44,36,37,32,16,17,33,8,18,38,102,111,98,54,41,112,13,3,113]))},{path:`projects/:projectId/environments/:id/edit`,name:`environment-edit`,component:()=>tp(()=>import(`./EnvironmentFormPage-LkjLL2Tx.js`),__vite__mapDeps([114,101,44,36,37,32,16,17,33,8,18,38,102,111,98,54,41,112,115]))},{path:`process/:agentId/:processId`,name:`process-detail`,component:()=>tp(()=>import(`./ProcessDetailPage-DrFtEQIB.js`),__vite__mapDeps([116,53,54,16,17,37,55,26,27,103,104,18,117])),props:!0},{path:`dev/random-job-test`,name:`dev-random-job-test`,component:()=>tp(()=>import(`./RandomJobTestPage-BqA1OISu.js`),__vite__mapDeps([118,119]))}]}]});var HTt=new Set([`launch-project`,`launch-services`]),UTt=!1,WTt=!1;Y9.beforeEach(async e=>{if(new Set([`unlock`,`setup`,`setup-key`]).has(e.name))return;if(!UTt){UTt=!0;try{let e=await $f();if(e.state!==`unlocked`||!e.ciMode&&!Qf())return{name:`unlock`,replace:!0}}catch{return{name:`unlock`,replace:!0}}}if(!Qf())try{let e=await $f();if(e.state!==`unlocked`||!e.ciMode)return{name:`unlock`,replace:!0}}catch{return{name:`unlock`,replace:!0}}let t=localStorage.getItem(`runeya-setup-complete`);if(!t&&e.name!==`setup`)return{name:`setup`};if(t&&e.name===`setup`)return{name:`launch-project`};if(!t||HTt.has(e.name))return;let n=U9();if(!n.launchCompleted&&!n.activeProjectId)return{name:`launch-project`};if(!WTt&&n.activeProjectId){WTt=!0;try{if(!(await yp.project.list.query()).some(e=>e.id===n.activeProjectId))return n.resetLaunch(),{name:`launch-project`}}catch(e){return console.error(`[router] Failed to validate current project:`,e),n.resetLaunch(),{name:`launch-project`}}}});var GTt={root:{transitionDuration:`{transition.duration}`},panel:{borderWidth:`0`,borderColor:`{content.border.color}`},header:{color:`{text.muted.color}`,hoverColor:`{text.color}`,activeColor:`{text.color}`,activeHoverColor:`{text.color}`,padding:`1.125rem`,fontWeight:`700`,borderRadius:`0`,borderWidth:`0 1px 1px 1px`,borderColor:`{content.border.color}`,focusRing:{width:`{focus.ring.width}`,style:`{focus.ring.style}`,color:`{focus.ring.color}`,offset:`{focus.ring.offset}`,shadow:`inset {focus.ring.shadow}`},toggleIcon:{color:`{text.muted.color}`,hoverColor:`{text.color}`,activeColor:`{text.color}`,activeHoverColor:`{text.color}`},first:{topBorderRadius:`{content.border.radius}`,borderWidth:`1px`},last:{bottomBorderRadius:`{content.border.radius}`,activeBottomBorderRadius:`0`}},content:{borderWidth:`0 1px 1px 1px`,borderColor:`{content.border.color}`,background:`{content.background}`,color:`{text.color}`,padding:`1.125rem`},colorScheme:{light:{header:{background:`{surface.50}`,hoverBackground:`{surface.100}`,activeBackground:`{surface.50}`,activeHoverBackground:`{surface.100}`}},dark:{header:{background:`{surface.800}`,hoverBackground:`{surface.700}`,activeBackground:`{surface.800}`,activeHoverBackground:`{surface.700}`}}}},KTt={root:{background:`{form.field.background}`,disabledBackground:`{form.field.disabled.background}`,filledBackground:`{form.field.filled.background}`,filledHoverBackground:`{form.field.filled.hover.background}`,filledFocusBackground:`{form.field.filled.focus.background}`,borderColor:`{form.field.border.color}`,hoverBorderColor:`{form.field.hover.border.color}`,focusBorderColor:`{form.field.focus.border.color}`,invalidBorderColor:`{form.field.invalid.border.color}`,color:`{form.field.color}`,disabledColor:`{form.field.disabled.color}`,placeholderColor:`{form.field.placeholder.color}`,invalidPlaceholderColor:`{form.field.invalid.placeholder.color}`,shadow:`{form.field.shadow}`,paddingX:`{form.field.padding.x}`,paddingY:`{form.field.padding.y}`,borderRadius:`{form.field.border.radius}`,focusRing:{width:`{form.field.focus.ring.width}`,style:`{form.field.focus.ring.style}`,color:`{form.field.focus.ring.color}`,offset:`{form.field.focus.ring.offset}`,shadow:`{form.field.focus.ring.shadow}`},transitionDuration:`{form.field.transition.duration}`},overlay:{background:`{overlay.select.background}`,borderColor:`{overlay.select.border.color}`,borderRadius:`{overlay.select.border.radius}`,color:`{overlay.select.color}`,shadow:`{overlay.select.shadow}`},list:{padding:`{list.padding}`,gap:`{list.gap}`},option:{focusBackground:`{list.option.focus.background}`,selectedBackground:`{list.option.selected.background}`,selectedFocusBackground:`{list.option.selected.focus.background}`,color:`{list.option.color}`,focusColor:`{list.option.focus.color}`,selectedColor:`{list.option.selected.color}`,selectedFocusColor:`{list.option.selected.focus.color}`,padding:`{list.option.padding}`,borderRadius:`{list.option.border.radius}`},optionGroup:{background:`{list.option.group.background}`,color:`{list.option.group.color}`,fontWeight:`{list.option.group.font.weight}`,padding:`{list.option.group.padding}`},dropdown:{width:`2.5rem`,sm:{width:`2rem`},lg:{width:`3rem`},borderColor:`{form.field.border.color}`,hoverBorderColor:`{form.field.border.color}`,activeBorderColor:`{form.field.border.color}`,borderRadius:`{form.field.border.radius}`,focusRing:{width:`{form.field.focus.ring.width}`,style:`{form.field.focus.ring.style}`,color:`{form.field.focus.ring.color}`,offset:`{form.field.focus.ring.offset}`,shadow:`{form.field.focus.ring.shadow}`}},chip:{borderRadius:`{border.radius.sm}`},emptyMessage:{padding:`{list.option.padding}`},colorScheme:{light:{chip:{focusBackground:`{surface.200}`,focusColor:`{surface.800}`},dropdown:{background:`{surface.50}`,hoverBackground:`{surface.100}`,activeBackground:`{surface.200}`,color:`{surface.600}`,hoverColor:`{surface.700}`,activeColor:`{surface.800}`}},dark:{chip:{focusBackground:`{surface.700}`,focusColor:`{surface.0}`},dropdown:{background:`{surface.800}`,hoverBackground:`{surface.700}`,activeBackground:`{surface.600}`,color:`{surface.300}`,hoverColor:`{surface.200}`,activeColor:`{surface.100}`}}}},qTt={root:{width:`2rem`,height:`2rem`,fontSize:`1rem`,background:`{content.border.color}`,color:`{content.color}`,borderRadius:`{content.border.radius}`},icon:{size:`1rem`},group:{borderColor:`{content.background}`,offset:`-0.75rem`},lg:{width:`3rem`,height:`3rem`,fontSize:`1.5rem`,icon:{size:`1.5rem`},group:{offset:`-1rem`}},xl:{width:`4rem`,height:`4rem`,fontSize:`2rem`,icon:{size:`2rem`},group:{offset:`-1.5rem`}}},JTt={root:{borderRadius:`{border.radius.md}`,padding:`0 0.5rem`,fontSize:`0.75rem`,fontWeight:`700`,minWidth:`1.5rem`,height:`1.5rem`},dot:{size:`0.5rem`},sm:{fontSize:`0.625rem`,minWidth:`1.25rem`,height:`1.25rem`},lg:{fontSize:`0.875rem`,minWidth:`1.75rem`,height:`1.75rem`},xl:{fontSize:`1rem`,minWidth:`2rem`,height:`2rem`},colorScheme:{light:{primary:{background:`{primary.color}`,color:`{primary.contrast.color}`},secondary:{background:`{surface.100}`,color:`{surface.600}`},success:{background:`{green.500}`,color:`{surface.0}`},info:{background:`{sky.500}`,color:`{surface.0}`},warn:{background:`{orange.500}`,color:`{surface.0}`},danger:{background:`{red.500}`,color:`{surface.0}`},contrast:{background:`{surface.950}`,color:`{surface.0}`}},dark:{primary:{background:`{primary.color}`,color:`{primary.contrast.color}`},secondary:{background:`{surface.800}`,color:`{surface.300}`},success:{background:`{green.400}`,color:`{green.950}`},info:{background:`{sky.400}`,color:`{sky.950}`},warn:{background:`{orange.400}`,color:`{orange.950}`},danger:{background:`{red.400}`,color:`{red.950}`},contrast:{background:`{surface.0}`,color:`{surface.950}`}}}},YTt={primitive:{borderRadius:{none:`0`,xs:`2px`,sm:`4px`,md:`6px`,lg:`8px`,xl:`12px`},emerald:{50:`#ecfdf5`,100:`#d1fae5`,200:`#a7f3d0`,300:`#6ee7b7`,400:`#34d399`,500:`#10b981`,600:`#059669`,700:`#047857`,800:`#065f46`,900:`#064e3b`,950:`#022c22`},green:{50:`#f0fdf4`,100:`#dcfce7`,200:`#bbf7d0`,300:`#86efac`,400:`#4ade80`,500:`#22c55e`,600:`#16a34a`,700:`#15803d`,800:`#166534`,900:`#14532d`,950:`#052e16`},lime:{50:`#f7fee7`,100:`#ecfccb`,200:`#d9f99d`,300:`#bef264`,400:`#a3e635`,500:`#84cc16`,600:`#65a30d`,700:`#4d7c0f`,800:`#3f6212`,900:`#365314`,950:`#1a2e05`},red:{50:`#fef2f2`,100:`#fee2e2`,200:`#fecaca`,300:`#fca5a5`,400:`#f87171`,500:`#ef4444`,600:`#dc2626`,700:`#b91c1c`,800:`#991b1b`,900:`#7f1d1d`,950:`#450a0a`},orange:{50:`#fff7ed`,100:`#ffedd5`,200:`#fed7aa`,300:`#fdba74`,400:`#fb923c`,500:`#f97316`,600:`#ea580c`,700:`#c2410c`,800:`#9a3412`,900:`#7c2d12`,950:`#431407`},amber:{50:`#fffbeb`,100:`#fef3c7`,200:`#fde68a`,300:`#fcd34d`,400:`#fbbf24`,500:`#f59e0b`,600:`#d97706`,700:`#b45309`,800:`#92400e`,900:`#78350f`,950:`#451a03`},yellow:{50:`#fefce8`,100:`#fef9c3`,200:`#fef08a`,300:`#fde047`,400:`#facc15`,500:`#eab308`,600:`#ca8a04`,700:`#a16207`,800:`#854d0e`,900:`#713f12`,950:`#422006`},teal:{50:`#f0fdfa`,100:`#ccfbf1`,200:`#99f6e4`,300:`#5eead4`,400:`#2dd4bf`,500:`#14b8a6`,600:`#0d9488`,700:`#0f766e`,800:`#115e59`,900:`#134e4a`,950:`#042f2e`},cyan:{50:`#ecfeff`,100:`#cffafe`,200:`#a5f3fc`,300:`#67e8f9`,400:`#22d3ee`,500:`#06b6d4`,600:`#0891b2`,700:`#0e7490`,800:`#155e75`,900:`#164e63`,950:`#083344`},sky:{50:`#f0f9ff`,100:`#e0f2fe`,200:`#bae6fd`,300:`#7dd3fc`,400:`#38bdf8`,500:`#0ea5e9`,600:`#0284c7`,700:`#0369a1`,800:`#075985`,900:`#0c4a6e`,950:`#082f49`},blue:{50:`#eff6ff`,100:`#dbeafe`,200:`#bfdbfe`,300:`#93c5fd`,400:`#60a5fa`,500:`#3b82f6`,600:`#2563eb`,700:`#1d4ed8`,800:`#1e40af`,900:`#1e3a8a`,950:`#172554`},indigo:{50:`#eef2ff`,100:`#e0e7ff`,200:`#c7d2fe`,300:`#a5b4fc`,400:`#818cf8`,500:`#6366f1`,600:`#4f46e5`,700:`#4338ca`,800:`#3730a3`,900:`#312e81`,950:`#1e1b4b`},violet:{50:`#f5f3ff`,100:`#ede9fe`,200:`#ddd6fe`,300:`#c4b5fd`,400:`#a78bfa`,500:`#8b5cf6`,600:`#7c3aed`,700:`#6d28d9`,800:`#5b21b6`,900:`#4c1d95`,950:`#2e1065`},purple:{50:`#faf5ff`,100:`#f3e8ff`,200:`#e9d5ff`,300:`#d8b4fe`,400:`#c084fc`,500:`#a855f7`,600:`#9333ea`,700:`#7e22ce`,800:`#6b21a8`,900:`#581c87`,950:`#3b0764`},fuchsia:{50:`#fdf4ff`,100:`#fae8ff`,200:`#f5d0fe`,300:`#f0abfc`,400:`#e879f9`,500:`#d946ef`,600:`#c026d3`,700:`#a21caf`,800:`#86198f`,900:`#701a75`,950:`#4a044e`},pink:{50:`#fdf2f8`,100:`#fce7f3`,200:`#fbcfe8`,300:`#f9a8d4`,400:`#f472b6`,500:`#ec4899`,600:`#db2777`,700:`#be185d`,800:`#9d174d`,900:`#831843`,950:`#500724`},rose:{50:`#fff1f2`,100:`#ffe4e6`,200:`#fecdd3`,300:`#fda4af`,400:`#fb7185`,500:`#f43f5e`,600:`#e11d48`,700:`#be123c`,800:`#9f1239`,900:`#881337`,950:`#4c0519`},slate:{50:`#f8fafc`,100:`#f1f5f9`,200:`#e2e8f0`,300:`#cbd5e1`,400:`#94a3b8`,500:`#64748b`,600:`#475569`,700:`#334155`,800:`#1e293b`,900:`#0f172a`,950:`#020617`},gray:{50:`#f9fafb`,100:`#f3f4f6`,200:`#e5e7eb`,300:`#d1d5db`,400:`#9ca3af`,500:`#6b7280`,600:`#4b5563`,700:`#374151`,800:`#1f2937`,900:`#111827`,950:`#030712`},zinc:{50:`#fafafa`,100:`#f4f4f5`,200:`#e4e4e7`,300:`#d4d4d8`,400:`#a1a1aa`,500:`#71717a`,600:`#52525b`,700:`#3f3f46`,800:`#27272a`,900:`#18181b`,950:`#09090b`},neutral:{50:`#fafafa`,100:`#f5f5f5`,200:`#e5e5e5`,300:`#d4d4d4`,400:`#a3a3a3`,500:`#737373`,600:`#525252`,700:`#404040`,800:`#262626`,900:`#171717`,950:`#0a0a0a`},stone:{50:`#fafaf9`,100:`#f5f5f4`,200:`#e7e5e4`,300:`#d6d3d1`,400:`#a8a29e`,500:`#78716c`,600:`#57534e`,700:`#44403c`,800:`#292524`,900:`#1c1917`,950:`#0c0a09`}},semantic:{transitionDuration:`0.2s`,focusRing:{width:`0`,style:`none`,color:`transparent`,offset:`0`},disabledOpacity:`0.6`,iconSize:`1rem`,anchorGutter:`2px`,primary:{50:`{emerald.50}`,100:`{emerald.100}`,200:`{emerald.200}`,300:`{emerald.300}`,400:`{emerald.400}`,500:`{emerald.500}`,600:`{emerald.600}`,700:`{emerald.700}`,800:`{emerald.800}`,900:`{emerald.900}`,950:`{emerald.950}`},formField:{paddingX:`0.75rem`,paddingY:`0.625rem`,sm:{fontSize:`0.875rem`,paddingX:`0.625rem`,paddingY:`0.5rem`},lg:{fontSize:`1.125rem`,paddingX:`0.875rem`,paddingY:`0.75rem`},borderRadius:`{border.radius.md}`,focusRing:{width:`{focus.ring.width}`,style:`{focus.ring.style}`,color:`{focus.ring.color}`,offset:`{focus.ring.offset}`,shadow:`{focus.ring.shadow}`},transitionDuration:`{transition.duration}`},list:{padding:`0.5rem 0`,gap:`0`,header:{padding:`0.625rem 1rem 0 1rem`},option:{padding:`0.625rem 1rem`,borderRadius:`0`},optionGroup:{padding:`0.625rem 1rem`,fontWeight:`600`}},content:{borderRadius:`{border.radius.md}`},mask:{transitionDuration:`0.3s`},navigation:{list:{padding:`0.5rem 0`,gap:`0`},item:{padding:`0.625rem 1rem`,borderRadius:`0`,gap:`0.5rem`},submenuLabel:{padding:`0.625rem 1rem`,fontWeight:`600`},submenuIcon:{size:`0.875rem`}},overlay:{select:{borderRadius:`{border.radius.md}`,shadow:`0 2px 12px 0 rgba(0, 0, 0, 0.1)`},popover:{borderRadius:`{border.radius.md}`,padding:`1rem`,shadow:`0 1px 3px rgba(0, 0, 0, 0.1)`},modal:{borderRadius:`{border.radius.xl}`,padding:`1.5rem`,shadow:`0 1px 3px rgba(0, 0, 0, 0.3)`},navigation:{shadow:`0 2px 12px 0 rgba(0, 0, 0, 0.1)`}},colorScheme:{light:{surface:{0:`#ffffff`,50:`{slate.50}`,100:`{slate.100}`,200:`{slate.200}`,300:`{slate.300}`,400:`{slate.400}`,500:`{slate.500}`,600:`{slate.600}`,700:`{slate.700}`,800:`{slate.800}`,900:`{slate.900}`,950:`{slate.950}`},primary:{color:`{primary.500}`,contrastColor:`#ffffff`,hoverColor:`{primary.600}`,activeColor:`{primary.700}`},highlight:{background:`{primary.50}`,focusBackground:`{primary.100}`,color:`{primary.700}`,focusColor:`{primary.800}`},focusRing:{shadow:`0 0 0 0.2rem {primary.200}`},mask:{background:`rgba(0,0,0,0.4)`,color:`{surface.200}`},formField:{background:`{surface.0}`,disabledBackground:`{surface.200}`,filledBackground:`{surface.50}`,filledHoverBackground:`{surface.50}`,filledFocusBackground:`{surface.0}`,borderColor:`{surface.300}`,hoverBorderColor:`{primary.color}`,focusBorderColor:`{primary.color}`,invalidBorderColor:`{red.400}`,color:`{surface.700}`,disabledColor:`{surface.500}`,placeholderColor:`{surface.500}`,invalidPlaceholderColor:`{red.600}`,floatLabelColor:`{surface.500}`,floatLabelFocusColor:`{primary.600}`,floatLabelActiveColor:`{surface.500}`,floatLabelInvalidColor:`{form.field.invalid.placeholder.color}`,iconColor:`{surface.500}`,shadow:`none`},text:{color:`{surface.700}`,hoverColor:`{surface.800}`,mutedColor:`{surface.500}`,hoverMutedColor:`{surface.600}`},content:{background:`{surface.0}`,hoverBackground:`{surface.100}`,borderColor:`{surface.200}`,color:`{text.color}`,hoverColor:`{text.hover.color}`},overlay:{select:{background:`{surface.0}`,borderColor:`{surface.200}`,color:`{text.color}`},popover:{background:`{surface.0}`,borderColor:`{surface.200}`,color:`{text.color}`},modal:{background:`{surface.0}`,borderColor:`{surface.200}`,color:`{text.color}`}},list:{option:{focusBackground:`{surface.100}`,selectedBackground:`{highlight.background}`,selectedFocusBackground:`{highlight.focus.background}`,color:`{text.color}`,focusColor:`{text.hover.color}`,selectedColor:`{highlight.color}`,selectedFocusColor:`{highlight.focus.color}`,icon:{color:`{surface.400}`,focusColor:`{surface.500}`}},optionGroup:{background:`transparent`,color:`{text.color}`}},navigation:{item:{focusBackground:`{surface.100}`,activeBackground:`{surface.100}`,color:`{text.color}`,focusColor:`{text.hover.color}`,activeColor:`{text.hover.color}`,icon:{color:`{surface.400}`,focusColor:`{surface.500}`,activeColor:`{surface.500}`}},submenuLabel:{background:`transparent`,color:`{text.color}`},submenuIcon:{color:`{surface.400}`,focusColor:`{surface.500}`,activeColor:`{surface.500}`}}},dark:{surface:{0:`#ffffff`,50:`{zinc.50}`,100:`{zinc.100}`,200:`{zinc.200}`,300:`{zinc.300}`,400:`{zinc.400}`,500:`{zinc.500}`,600:`{zinc.600}`,700:`{zinc.700}`,800:`{zinc.800}`,900:`{zinc.900}`,950:`{zinc.950}`},primary:{color:`{primary.400}`,contrastColor:`{surface.900}`,hoverColor:`{primary.300}`,activeColor:`{primary.200}`},highlight:{background:`color-mix(in srgb, {primary.400}, transparent 84%)`,focusBackground:`color-mix(in srgb, {primary.400}, transparent 76%)`,color:`rgba(255,255,255,.87)`,focusColor:`rgba(255,255,255,.87)`},focusRing:{shadow:`0 0 0 0.2rem color-mix(in srgb, {primary.color}, transparent 80%)`},mask:{background:`rgba(0,0,0,0.6)`,color:`{surface.200}`},formField:{background:`{surface.950}`,disabledBackground:`{surface.700}`,filledBackground:`{surface.800}`,filledHoverBackground:`{surface.800}`,filledFocusBackground:`{surface.950}`,borderColor:`{surface.600}`,hoverBorderColor:`{primary.color}`,focusBorderColor:`{primary.color}`,invalidBorderColor:`{red.300}`,color:`{surface.0}`,disabledColor:`{surface.400}`,placeholderColor:`{surface.400}`,invalidPlaceholderColor:`{red.400}`,floatLabelColor:`{surface.400}`,floatLabelFocusColor:`{primary.color}`,floatLabelActiveColor:`{surface.400}`,floatLabelInvalidColor:`{form.field.invalid.placeholder.color}`,iconColor:`{surface.400}`,shadow:`none`},text:{color:`{surface.0}`,hoverColor:`{surface.0}`,mutedColor:`{surface.400}`,hoverMutedColor:`{surface.300}`},content:{background:`{surface.900}`,hoverBackground:`{surface.800}`,borderColor:`{surface.700}`,color:`{text.color}`,hoverColor:`{text.hover.color}`},overlay:{select:{background:`{surface.900}`,borderColor:`{surface.700}`,color:`{text.color}`},popover:{background:`{surface.900}`,borderColor:`{surface.700}`,color:`{text.color}`},modal:{background:`{surface.900}`,borderColor:`{surface.700}`,color:`{text.color}`}},list:{option:{focusBackground:`{surface.800}`,selectedBackground:`{highlight.background}`,selectedFocusBackground:`{highlight.focus.background}`,color:`{text.color}`,focusColor:`{text.hover.color}`,selectedColor:`{highlight.color}`,selectedFocusColor:`{highlight.focus.color}`,icon:{color:`{surface.500}`,focusColor:`{surface.400}`}},optionGroup:{background:`transparent`,color:`{text.color}`}},navigation:{item:{focusBackground:`{surface.800}`,activeBackground:`{surface.800}`,color:`{text.color}`,focusColor:`{text.hover.color}`,activeColor:`{text.hover.color}`,icon:{color:`{surface.500}`,focusColor:`{surface.400}`,activeColor:`{surface.400}`}},submenuLabel:{background:`transparent`,color:`{text.color}`},submenuIcon:{color:`{surface.500}`,focusColor:`{surface.400}`,activeColor:`{surface.400}`}}}}}},XTt={root:{borderRadius:`{content.border.radius}`}},ZTt={root:{padding:`1.25rem`,background:`{content.background}`,gap:`0.5rem`,transitionDuration:`{transition.duration}`},item:{color:`{text.muted.color}`,hoverColor:`{text.color}`,borderRadius:`{content.border.radius}`,gap:`{navigation.item.gap}`,icon:{color:`{navigation.item.icon.color}`,hoverColor:`{navigation.item.icon.focus.color}`},focusRing:{width:`{focus.ring.width}`,style:`{focus.ring.style}`,color:`{focus.ring.color}`,offset:`{focus.ring.offset}`,shadow:`{focus.ring.shadow}`}},separator:{color:`{navigation.item.icon.color}`}},QTt={root:{borderRadius:`{form.field.border.radius}`,roundedBorderRadius:`2rem`,gap:`0.5rem`,paddingX:`1rem`,paddingY:`{form.field.padding.y}`,iconOnlyWidth:`2.75rem`,sm:{fontSize:`{form.field.sm.font.size}`,paddingX:`{form.field.sm.padding.x}`,paddingY:`{form.field.sm.padding.y}`,iconOnlyWidth:`2.25rem`},lg:{fontSize:`{form.field.lg.font.size}`,paddingX:`{form.field.lg.padding.x}`,paddingY:`{form.field.lg.padding.y}`,iconOnlyWidth:`3.25rem`},label:{fontWeight:`600`},raisedShadow:`0 3px 1px -2px rgba(0, 0, 0, 0.2), 0 2px 2px 0 rgba(0, 0, 0, 0.14), 0 1px 5px 0 rgba(0, 0, 0, 0.12)`,focusRing:{width:`{form.field.focus.ring.width}`,style:`{form.field.focus.ring.style}`,offset:`{form.field.focus.ring.offset}`},badgeSize:`1rem`,transitionDuration:`{form.field.transition.duration}`},colorScheme:{light:{root:{primary:{background:`{primary.color}`,hoverBackground:`{primary.hover.color}`,activeBackground:`{primary.active.color}`,borderColor:`{primary.color}`,hoverBorderColor:`{primary.hover.color}`,activeBorderColor:`{primary.active.color}`,color:`{primary.contrast.color}`,hoverColor:`{primary.contrast.color}`,activeColor:`{primary.contrast.color}`,focusRing:{color:`transparent`,shadow:`0 0 0 0.2rem {primary.200}`}},secondary:{background:`{surface.100}`,hoverBackground:`{surface.200}`,activeBackground:`{surface.300}`,borderColor:`{surface.100}`,hoverBorderColor:`{surface.200}`,activeBorderColor:`{surface.300}`,color:`{surface.600}`,hoverColor:`{surface.700}`,activeColor:`{surface.800}`,focusRing:{color:`transparent`,shadow:`0 0 0 0.2rem {surface.200}`}},info:{background:`{sky.500}`,hoverBackground:`{sky.600}`,activeBackground:`{sky.700}`,borderColor:`{sky.500}`,hoverBorderColor:`{sky.600}`,activeBorderColor:`{sky.700}`,color:`#ffffff`,hoverColor:`#ffffff`,activeColor:`#ffffff`,focusRing:{color:`transparent`,shadow:`0 0 0 0.2rem {sky.200}`}},success:{background:`{green.500}`,hoverBackground:`{green.600}`,activeBackground:`{green.700}`,borderColor:`{green.500}`,hoverBorderColor:`{green.600}`,activeBorderColor:`{green.700}`,color:`#ffffff`,hoverColor:`#ffffff`,activeColor:`#ffffff`,focusRing:{color:`transparent`,shadow:`0 0 0 0.2rem {green.200}`}},warn:{background:`{orange.500}`,hoverBackground:`{orange.600}`,activeBackground:`{orange.700}`,borderColor:`{orange.500}`,hoverBorderColor:`{orange.600}`,activeBorderColor:`{orange.700}`,color:`#ffffff`,hoverColor:`#ffffff`,activeColor:`#ffffff`,focusRing:{color:`transparent`,shadow:`0 0 0 0.2rem {orange.200}`}},help:{background:`{purple.500}`,hoverBackground:`{purple.600}`,activeBackground:`{purple.700}`,borderColor:`{purple.500}`,hoverBorderColor:`{purple.600}`,activeBorderColor:`{purple.700}`,color:`#ffffff`,hoverColor:`#ffffff`,activeColor:`#ffffff`,focusRing:{color:`transparent`,shadow:`0 0 0 0.2rem {purple.200}`}},danger:{background:`{red.500}`,hoverBackground:`{red.600}`,activeBackground:`{red.700}`,borderColor:`{red.500}`,hoverBorderColor:`{red.600}`,activeBorderColor:`{red.700}`,color:`#ffffff`,hoverColor:`#ffffff`,activeColor:`#ffffff`,focusRing:{color:`transparent`,shadow:`0 0 0 0.2rem {red.200}`}},contrast:{background:`{surface.950}`,hoverBackground:`{surface.900}`,activeBackground:`{surface.800}`,borderColor:`{surface.950}`,hoverBorderColor:`{surface.900}`,activeBorderColor:`{surface.800}`,color:`{surface.0}`,hoverColor:`{surface.0}`,activeColor:`{surface.0}`,focusRing:{color:`transparent`,shadow:`0 0 0 0.2rem {surface.400}`}}},outlined:{primary:{hoverBackground:`{primary.50}`,activeBackground:`{primary.100}`,borderColor:`{primary.200}`,color:`{primary.color}`},secondary:{hoverBackground:`{surface.50}`,activeBackground:`{surface.100}`,borderColor:`{surface.200}`,color:`{surface.500}`},success:{hoverBackground:`{green.50}`,activeBackground:`{green.100}`,borderColor:`{green.200}`,color:`{green.500}`},info:{hoverBackground:`{sky.50}`,activeBackground:`{sky.100}`,borderColor:`{sky.200}`,color:`{sky.500}`},warn:{hoverBackground:`{orange.50}`,activeBackground:`{orange.100}`,borderColor:`{orange.200}`,color:`{orange.500}`},help:{hoverBackground:`{purple.50}`,activeBackground:`{purple.100}`,borderColor:`{purple.200}`,color:`{purple.500}`},danger:{hoverBackground:`{red.50}`,activeBackground:`{red.100}`,borderColor:`{red.200}`,color:`{red.500}`},contrast:{hoverBackground:`{surface.50}`,activeBackground:`{surface.100}`,borderColor:`{surface.700}`,color:`{surface.950}`},plain:{hoverBackground:`{surface.50}`,activeBackground:`{surface.100}`,borderColor:`{surface.200}`,color:`{surface.700}`}},text:{primary:{hoverBackground:`{primary.50}`,activeBackground:`{primary.100}`,color:`{primary.color}`},secondary:{hoverBackground:`{surface.100}`,activeBackground:`{surface.200}`,color:`{surface.600}`},success:{hoverBackground:`{green.50}`,activeBackground:`{green.100}`,color:`{green.500}`},info:{hoverBackground:`{sky.50}`,activeBackground:`{sky.100}`,color:`{sky.500}`},warn:{hoverBackground:`{orange.50}`,activeBackground:`{orange.100}`,color:`{orange.500}`},help:{hoverBackground:`{purple.50}`,activeBackground:`{purple.100}`,color:`{purple.500}`},danger:{hoverBackground:`{red.50}`,activeBackground:`{red.100}`,color:`{red.500}`},contrast:{hoverBackground:`{surface.50}`,activeBackground:`{surface.100}`,color:`{surface.950}`},plain:{hoverBackground:`{surface.50}`,activeBackground:`{surface.100}`,color:`{surface.700}`}},link:{color:`{primary.color}`,hoverColor:`{primary.color}`,activeColor:`{primary.color}`}},dark:{root:{primary:{background:`{primary.color}`,hoverBackground:`{primary.hover.color}`,activeBackground:`{primary.active.color}`,borderColor:`{primary.color}`,hoverBorderColor:`{primary.hover.color}`,activeBorderColor:`{primary.active.color}`,color:`{primary.contrast.color}`,hoverColor:`{primary.contrast.color}`,activeColor:`{primary.contrast.color}`,focusRing:{color:`transparent`,shadow:`0 0 0 0.2rem color-mix(in srgb, {primary.color}, transparent 80%)`}},secondary:{background:`{surface.800}`,hoverBackground:`{surface.700}`,activeBackground:`{surface.600}`,borderColor:`{surface.800}`,hoverBorderColor:`{surface.700}`,activeBorderColor:`{surface.600}`,color:`{surface.300}`,hoverColor:`{surface.200}`,activeColor:`{surface.100}`,focusRing:{color:`transparent`,shadow:`0 0 0 0.2rem color-mix(in srgb, {surface.300}, transparent 80%)`}},info:{background:`{sky.400}`,hoverBackground:`{sky.300}`,activeBackground:`{sky.200}`,borderColor:`{sky.400}`,hoverBorderColor:`{sky.300}`,activeBorderColor:`{sky.200}`,color:`{sky.950}`,hoverColor:`{sky.950}`,activeColor:`{sky.950}`,focusRing:{color:`transparent`,shadow:`0 0 0 0.2rem color-mix(in srgb, {sky.400}, transparent 80%)`}},success:{background:`{green.400}`,hoverBackground:`{green.300}`,activeBackground:`{green.200}`,borderColor:`{green.400}`,hoverBorderColor:`{green.300}`,activeBorderColor:`{green.200}`,color:`{green.950}`,hoverColor:`{green.950}`,activeColor:`{green.950}`,focusRing:{color:`transparent`,shadow:`0 0 0 0.2rem color-mix(in srgb, {green.400}, transparent 80%)`}},warn:{background:`{orange.400}`,hoverBackground:`{orange.300}`,activeBackground:`{orange.200}`,borderColor:`{orange.400}`,hoverBorderColor:`{orange.300}`,activeBorderColor:`{orange.200}`,color:`{orange.950}`,hoverColor:`{orange.950}`,activeColor:`{orange.950}`,focusRing:{color:`transparent`,shadow:`0 0 0 0.2rem color-mix(in srgb, {orange.400}, transparent 80%)`}},help:{background:`{purple.400}`,hoverBackground:`{purple.300}`,activeBackground:`{purple.200}`,borderColor:`{purple.400}`,hoverBorderColor:`{purple.300}`,activeBorderColor:`{purple.200}`,color:`{purple.950}`,hoverColor:`{purple.950}`,activeColor:`{purple.950}`,focusRing:{color:`transparent`,shadow:`0 0 0 0.2rem color-mix(in srgb, {purple.400}, transparent 80%)`}},danger:{background:`{red.400}`,hoverBackground:`{red.300}`,activeBackground:`{red.200}`,borderColor:`{red.400}`,hoverBorderColor:`{red.300}`,activeBorderColor:`{red.200}`,color:`{red.950}`,hoverColor:`{red.950}`,activeColor:`{red.950}`,focusRing:{color:`transparent`,shadow:`0 0 0 0.2rem color-mix(in srgb, {red.400}, transparent 80%)`}},contrast:{background:`{surface.0}`,hoverBackground:`{surface.100}`,activeBackground:`{surface.200}`,borderColor:`{surface.0}`,hoverBorderColor:`{surface.100}`,activeBorderColor:`{surface.200}`,color:`{surface.950}`,hoverColor:`{surface.950}`,activeColor:`{surface.950}`,focusRing:{color:`transparent`,shadow:`0 0 0 0.2rem color-mix(in srgb, {surface.0}, transparent 80%)`}}},outlined:{primary:{hoverBackground:`color-mix(in srgb, {primary.color}, transparent 96%)`,activeBackground:`color-mix(in srgb, {primary.color}, transparent 84%)`,borderColor:`{primary.700}`,color:`{primary.color}`},secondary:{hoverBackground:`rgba(255,255,255,0.04)`,activeBackground:`rgba(255,255,255,0.16)`,borderColor:`{surface.700}`,color:`{surface.400}`},success:{hoverBackground:`color-mix(in srgb, {green.400}, transparent 96%)`,activeBackground:`color-mix(in srgb, {green.400}, transparent 84%)`,borderColor:`{green.700}`,color:`{green.400}`},info:{hoverBackground:`color-mix(in srgb, {sky.400}, transparent 96%)`,activeBackground:`color-mix(in srgb, {sky.400}, transparent 84%)`,borderColor:`{sky.700}`,color:`{sky.400}`},warn:{hoverBackground:`color-mix(in srgb, {orange.400}, transparent 96%)`,activeBackground:`color-mix(in srgb, {orange.400}, transparent 84%)`,borderColor:`{orange.700}`,color:`{orange.400}`},help:{hoverBackground:`color-mix(in srgb, {help.400}, transparent 96%)`,activeBackground:`color-mix(in srgb, {help.400}, transparent 84%)`,borderColor:`{purple.700}`,color:`{purple.400}`},danger:{hoverBackground:`color-mix(in srgb, {danger.400}, transparent 96%)`,activeBackground:`color-mix(in srgb, {danger.400}, transparent 84%)`,borderColor:`{red.700}`,color:`{red.400}`},contrast:{hoverBackground:`{surface.800}`,activeBackground:`{surface.700}`,borderColor:`{surface.500}`,color:`{surface.0}`},plain:{hoverBackground:`{surface.800}`,activeBackground:`{surface.700}`,borderColor:`{surface.600}`,color:`{surface.0}`}},text:{primary:{hoverBackground:`color-mix(in srgb, {primary.color}, transparent 96%)`,activeBackground:`color-mix(in srgb, {primary.color}, transparent 84%)`,color:`{primary.color}`},secondary:{hoverBackground:`{surface.700}`,activeBackground:`{surface.600}`,color:`{surface.300}`},success:{hoverBackground:`color-mix(in srgb, {green.400}, transparent 96%)`,activeBackground:`color-mix(in srgb, {green.400}, transparent 84%)`,color:`{green.400}`},info:{hoverBackground:`color-mix(in srgb, {sky.400}, transparent 96%)`,activeBackground:`color-mix(in srgb, {sky.400}, transparent 84%)`,color:`{sky.400}`},warn:{hoverBackground:`color-mix(in srgb, {orange.400}, transparent 96%)`,activeBackground:`color-mix(in srgb, {orange.400}, transparent 84%)`,color:`{orange.400}`},help:{hoverBackground:`color-mix(in srgb, {purple.400}, transparent 96%)`,activeBackground:`color-mix(in srgb, {purple.400}, transparent 84%)`,color:`{purple.400}`},danger:{hoverBackground:`color-mix(in srgb, {red.400}, transparent 96%)`,activeBackground:`color-mix(in srgb, {red.400}, transparent 84%)`,color:`{red.400}`},contrast:{hoverBackground:`{surface.800}`,activeBackground:`{surface.700}`,color:`{surface.0}`},plain:{hoverBackground:`{surface.800}`,activeBackground:`{surface.700}`,color:`{surface.0}`}},link:{color:`{primary.color}`,hoverColor:`{primary.color}`,activeColor:`{primary.color}`}}}},$Tt={root:{background:`{content.background}`,borderRadius:`{border.radius.lg}`,color:`{content.color}`,shadow:`0 .125rem .25rem rgba(0,0,0,.075)`},body:{padding:`1.5rem`,gap:`0.75rem`},caption:{gap:`0.5rem`},title:{fontSize:`1.25rem`,fontWeight:`700`},subtitle:{color:`{text.muted.color}`}},eEt={root:{transitionDuration:`{transition.duration}`},content:{gap:`0.25rem`},indicatorList:{padding:`1rem`,gap:`0.5rem`},indicator:{width:`1rem`,height:`1rem`,borderRadius:`50`,focusRing:{width:`{focus.ring.width}`,style:`{focus.ring.style}`,color:`{focus.ring.color}`,offset:`{focus.ring.offset}`,shadow:`{focus.ring.shadow}`}},colorScheme:{light:{indicator:{background:`{surface.200}`,hoverBackground:`{surface.300}`,activeBackground:`{primary.color}`}},dark:{indicator:{background:`{surface.700}`,hoverBackground:`{surface.600}`,activeBackground:`{primary.color}`}}}},tEt={root:{background:`{form.field.background}`,disabledBackground:`{form.field.disabled.background}`,filledBackground:`{form.field.filled.background}`,filledHoverBackground:`{form.field.filled.hover.background}`,filledFocusBackground:`{form.field.filled.focus.background}`,borderColor:`{form.field.border.color}`,hoverBorderColor:`{form.field.hover.border.color}`,focusBorderColor:`{form.field.focus.border.color}`,invalidBorderColor:`{form.field.invalid.border.color}`,color:`{form.field.color}`,disabledColor:`{form.field.disabled.color}`,placeholderColor:`{form.field.placeholder.color}`,invalidPlaceholderColor:`{form.field.invalid.placeholder.color}`,shadow:`{form.field.shadow}`,paddingX:`{form.field.padding.x}`,paddingY:`{form.field.padding.y}`,borderRadius:`{form.field.border.radius}`,focusRing:{width:`{form.field.focus.ring.width}`,style:`{form.field.focus.ring.style}`,color:`{form.field.focus.ring.color}`,offset:`{form.field.focus.ring.offset}`,shadow:`{form.field.focus.ring.shadow}`},transitionDuration:`{form.field.transition.duration}`,sm:{fontSize:`{form.field.sm.font.size}`,paddingX:`{form.field.sm.padding.x}`,paddingY:`{form.field.sm.padding.y}`},lg:{fontSize:`{form.field.lg.font.size}`,paddingX:`{form.field.lg.padding.x}`,paddingY:`{form.field.lg.padding.y}`}},dropdown:{width:`2.5rem`,color:`{form.field.icon.color}`},overlay:{background:`{overlay.select.background}`,borderColor:`{overlay.select.border.color}`,borderRadius:`{overlay.select.border.radius}`,color:`{overlay.select.color}`,shadow:`{overlay.select.shadow}`},list:{padding:`{list.padding}`,gap:`{list.gap}`,mobileIndent:`1.25rem`},option:{focusBackground:`{list.option.focus.background}`,selectedBackground:`{list.option.selected.background}`,selectedFocusBackground:`{list.option.selected.focus.background}`,color:`{list.option.color}`,focusColor:`{list.option.focus.color}`,selectedColor:`{list.option.selected.color}`,selectedFocusColor:`{list.option.selected.focus.color}`,padding:`{list.option.padding}`,borderRadius:`{list.option.border.radius}`,icon:{color:`{list.option.icon.color}`,focusColor:`{list.option.icon.focus.color}`,size:`0.875rem`}},clearIcon:{color:`{form.field.icon.color}`}},nEt={root:{borderRadius:`{border.radius.sm}`,width:`1.5rem`,height:`1.5rem`,background:`{form.field.background}`,checkedBackground:`{primary.color}`,checkedHoverBackground:`{primary.hover.color}`,disabledBackground:`{form.field.disabled.background}`,filledBackground:`{form.field.filled.background}`,borderColor:`{form.field.border.color}`,hoverBorderColor:`{form.field.hover.border.color}`,focusBorderColor:`{form.field.focus.border.color}`,checkedBorderColor:`{primary.color}`,checkedHoverBorderColor:`{primary.hover.color}`,checkedFocusBorderColor:`{primary.color}`,checkedDisabledBorderColor:`{form.field.border.color}`,invalidBorderColor:`{form.field.invalid.border.color}`,shadow:`{form.field.shadow}`,focusRing:{width:`{form.field.focus.ring.width}`,style:`{form.field.focus.ring.style}`,color:`{form.field.focus.ring.color}`,offset:`{form.field.focus.ring.offset}`,shadow:`{form.field.focus.ring.shadow}`},transitionDuration:`{form.field.transition.duration}`,sm:{width:`1.25rem`,height:`1.25rem`},lg:{width:`1.75rem`,height:`1.75rem`}},icon:{size:`1rem`,color:`{form.field.color}`,checkedColor:`{primary.contrast.color}`,checkedHoverColor:`{primary.contrast.color}`,disabledColor:`{form.field.disabled.color}`,sm:{size:`0.75rem`},lg:{size:`1.25rem`}}},rEt={root:{borderRadius:`16px`,paddingX:`0.875rem`,paddingY:`0.625rem`,gap:`0.5rem`,transitionDuration:`{transition.duration}`},image:{width:`2rem`,height:`2rem`},icon:{size:`1rem`},removeIcon:{size:`1rem`,focusRing:{width:`{focus.ring.width}`,style:`{focus.ring.style}`,color:`{focus.ring.color}`,offset:`{focus.ring.offset}`,shadow:`{focus.ring.shadow}`}},colorScheme:{light:{root:{background:`{surface.100}`,color:`{surface.800}`},icon:{color:`{surface.800}`},removeIcon:{color:`{surface.800}`}},dark:{root:{background:`{surface.800}`,color:`{surface.0}`},icon:{color:`{surface.0}`},removeIcon:{color:`{surface.0}`}}}},iEt={root:{transitionDuration:`{transition.duration}`},preview:{width:`1.75rem`,height:`1.75rem`,borderRadius:`{form.field.border.radius}`,focusRing:{width:`{form.field.focus.ring.width}`,style:`{form.field.focus.ring.style}`,color:`{form.field.focus.ring.color}`,offset:`{form.field.focus.ring.offset}`,shadow:`{form.field.focus.ring.shadow}`}},panel:{shadow:`{overlay.popover.shadow}`,borderRadius:`{overlay.popover.borderRadius}`},colorScheme:{light:{panel:{background:`{surface.800}`,borderColor:`{surface.900}`},handle:{color:`{surface.0}`}},dark:{panel:{background:`{surface.900}`,borderColor:`{surface.700}`},handle:{color:`{surface.0}`}}}},aEt={icon:{size:`2rem`,color:`{overlay.modal.color}`},content:{gap:`1rem`}},oEt={root:{background:`{overlay.popover.background}`,borderColor:`{overlay.popover.border.color}`,color:`{overlay.popover.color}`,borderRadius:`{overlay.popover.border.radius}`,shadow:`{overlay.popover.shadow}`,gutter:`10px`,arrowOffset:`1.25rem`},content:{padding:`{overlay.popover.padding}`,gap:`1rem`},icon:{size:`1.5rem`,color:`{overlay.popover.color}`},footer:{gap:`0.5rem`,padding:`0 {overlay.popover.padding} {overlay.popover.padding} {overlay.popover.padding}`}},sEt={root:{background:`{content.background}`,borderColor:`{content.border.color}`,color:`{content.color}`,borderRadius:`{content.border.radius}`,shadow:`{overlay.navigation.shadow}`,transitionDuration:`{transition.duration}`},list:{padding:`{navigation.list.padding}`,gap:`{navigation.list.gap}`},item:{focusBackground:`{navigation.item.focus.background}`,activeBackground:`{navigation.item.active.background}`,color:`{navigation.item.color}`,focusColor:`{navigation.item.focus.color}`,activeColor:`{navigation.item.active.color}`,padding:`{navigation.item.padding}`,borderRadius:`{navigation.item.border.radius}`,gap:`{navigation.item.gap}`,icon:{color:`{navigation.item.icon.color}`,focusColor:`{navigation.item.icon.focus.color}`,activeColor:`{navigation.item.icon.active.color}`}},submenu:{mobileIndent:`1.25rem`},submenuIcon:{size:`{navigation.submenu.icon.size}`,color:`{navigation.submenu.icon.color}`,focusColor:`{navigation.submenu.icon.focus.color}`,activeColor:`{navigation.submenu.icon.active.color}`},separator:{borderColor:`{content.border.color}`}},cEt={root:{transitionDuration:`{transition.duration}`},header:{borderColor:`{datatable.border.color}`,borderWidth:`1px 0 1px 0`,padding:`0.75rem 1rem`,sm:{padding:`0.375rem 0.5rem`},lg:{padding:`1rem 1.25rem`}},headerCell:{selectedBackground:`{highlight.background}`,borderColor:`{datatable.border.color}`,hoverColor:`{content.hover.color}`,selectedColor:`{highlight.color}`,gap:`0.5rem`,padding:`0.75rem 1rem`,focusRing:{width:`{focus.ring.width}`,style:`{focus.ring.style}`,color:`{focus.ring.color}`,offset:`{focus.ring.offset}`,shadow:`inset {focus.ring.shadow}`},sm:{padding:`0.375rem 0.5rem`},lg:{padding:`1rem 1.25rem`}},columnTitle:{fontWeight:`700`},row:{background:`{content.background}`,hoverBackground:`{content.hover.background}`,selectedBackground:`{highlight.background}`,color:`{content.color}`,hoverColor:`{content.hover.color}`,selectedColor:`{highlight.color}`,focusRing:{width:`{focus.ring.width}`,style:`{focus.ring.style}`,color:`{focus.ring.color}`,offset:`{focus.ring.offset}`,shadow:`inset {focus.ring.shadow}`}},bodyCell:{borderColor:`{datatable.border.color}`,padding:`0.75rem 1rem`,sm:{padding:`0.375rem 0.5rem`},lg:{padding:`1rem 1.25rem`}},footerCell:{borderColor:`{datatable.border.color}`,padding:`0.75rem 1rem`,sm:{padding:`0.375rem 0.5rem`},lg:{padding:`1rem 1.25rem`}},columnFooter:{fontWeight:`700`},footer:{borderColor:`{datatable.border.color}`,borderWidth:`0 0 1px 0`,padding:`0.75rem 1rem`,sm:{padding:`0.375rem 0.5rem`},lg:{padding:`1rem 1.25rem`}},dropPoint:{color:`{primary.color}`},columnResizer:{width:`0.5rem`},resizeIndicator:{width:`1px`,color:`{primary.color}`},sortIcon:{color:`{text.muted.color}`,hoverColor:`{text.hover.muted.color}`,size:`0.875rem`},loadingIcon:{size:`2rem`},rowToggleButton:{hoverBackground:`{content.hover.background}`,selectedHoverBackground:`{content.background}`,color:`{text.muted.color}`,hoverColor:`{text.color}`,selectedHoverColor:`{primary.color}`,size:`1.75rem`,borderRadius:`50%`,focusRing:{width:`{focus.ring.width}`,style:`{focus.ring.style}`,color:`{focus.ring.color}`,offset:`{focus.ring.offset}`,shadow:`{focus.ring.shadow}`}},filter:{inlineGap:`0.5rem`,overlaySelect:{background:`{overlay.select.background}`,borderColor:`{overlay.select.border.color}`,borderRadius:`{overlay.select.border.radius}`,color:`{overlay.select.color}`,shadow:`{overlay.select.shadow}`},overlayPopover:{background:`{overlay.popover.background}`,borderColor:`{overlay.popover.border.color}`,borderRadius:`{overlay.popover.border.radius}`,color:`{overlay.popover.color}`,shadow:`{overlay.popover.shadow}`,padding:`{overlay.popover.padding}`,gap:`0.5rem`},rule:{borderColor:`{content.border.color}`},constraintList:{padding:`{list.padding}`,gap:`{list.gap}`},constraint:{focusBackground:`{list.option.focus.background}`,selectedBackground:`{list.option.selected.background}`,selectedFocusBackground:`{list.option.selected.focus.background}`,color:`{list.option.color}`,focusColor:`{list.option.focus.color}`,selectedColor:`{list.option.selected.color}`,selectedFocusColor:`{list.option.selected.focus.color}`,separator:{borderColor:`{content.border.color}`},padding:`{list.option.padding}`,borderRadius:`{list.option.border.radius}`}},paginatorTop:{borderColor:`{datatable.border.color}`,borderWidth:`0 0 1px 0`},paginatorBottom:{borderColor:`{datatable.border.color}`,borderWidth:`0 0 1px 0`},colorScheme:{light:{root:{borderColor:`{content.border.color}`},header:{background:`{surface.50}`,color:`{text.color}`},headerCell:{background:`{surface.50}`,hoverBackground:`{surface.100}`,color:`{text.color}`},footer:{background:`{surface.50}`,color:`{text.color}`},footerCell:{background:`{surface.50}`,color:`{text.color}`},row:{stripedBackground:`{surface.50}`},bodyCell:{selectedBorderColor:`{primary.100}`}},dark:{root:{borderColor:`{surface.800}`},header:{background:`{surface.800}`,color:`{text.color}`},headerCell:{background:`{surface.800}`,hoverBackground:`{surface.700}`,color:`{text.color}`},footer:{background:`{surface.800}`,color:`{text.color}`},footerCell:{background:`{surface.800}`,color:`{text.color}`},row:{stripedBackground:`{surface.950}`},bodyCell:{selectedBorderColor:`{primary.900}`}}}},lEt={root:{borderColor:`{content.border.color}`,borderWidth:`1px`,borderRadius:`4px`,padding:`0`},header:{borderColor:`{content.border.color}`,borderWidth:`0 0 1px 0`,padding:`0.875rem 1.125rem`,borderRadius:`5px 5px 0 0`},content:{background:`{content.background}`,color:`{content.color}`,borderColor:`transparent`,borderWidth:`0`,padding:`0`,borderRadius:`5px`},footer:{background:`{content.background}`,color:`{content.color}`,borderColor:`{content.border.color}`,borderWidth:`1px 0 0 0`,padding:`0.875rem 1.125rem`,borderRadius:`0 0 5px 5px`},paginatorTop:{borderColor:`{content.border.color}`,borderWidth:`0 0 1px 0`},paginatorBottom:{borderColor:`{content.border.color}`,borderWidth:`1px 0 0 0`},colorScheme:{light:{header:{background:`{surface.50}`,color:`{text.color}`}},dark:{header:{background:`{surface.800}`,color:`{text.color}`}}}},uEt={root:{transitionDuration:`{transition.duration}`},panel:{background:`{content.background}`,borderColor:`{content.border.color}`,color:`{content.color}`,borderRadius:`{content.border.radius}`,shadow:`{overlay.popover.shadow}`,padding:`{overlay.popover.padding}`},header:{background:`{content.background}`,borderColor:`{content.border.color}`,color:`{content.color}`,padding:`0 0 0.75rem 0`},title:{gap:`0.5rem`,fontWeight:`700`},dropdown:{width:`2.5rem`,sm:{width:`2rem`},lg:{width:`3rem`},borderColor:`{form.field.border.color}`,hoverBorderColor:`{form.field.border.color}`,activeBorderColor:`{form.field.border.color}`,borderRadius:`{form.field.border.radius}`,focusRing:{width:`{form.field.focus.ring.width}`,style:`{form.field.focus.ring.style}`,color:`{form.field.focus.ring.color}`,offset:`{form.field.focus.ring.offset}`,shadow:`{form.field.focus.ring.shadow}`}},inputIcon:{color:`{form.field.icon.color}`},selectMonth:{hoverBackground:`{content.hover.background}`,color:`{content.color}`,hoverColor:`{content.hover.color}`,padding:`0.375rem 0.625rem`,borderRadius:`{content.border.radius}`},selectYear:{hoverBackground:`{content.hover.background}`,color:`{content.color}`,hoverColor:`{content.hover.color}`,padding:`0.375rem 0.625rem`,borderRadius:`{content.border.radius}`},group:{borderColor:`{content.border.color}`,gap:`{overlay.popover.padding}`},dayView:{margin:`0.75rem 0 0 0`},weekDay:{padding:`0.375rem`,fontWeight:`700`,color:`{content.color}`},date:{hoverBackground:`{content.hover.background}`,selectedBackground:`{primary.color}`,rangeSelectedBackground:`{highlight.background}`,color:`{content.color}`,hoverColor:`{content.hover.color}`,selectedColor:`{primary.contrast.color}`,rangeSelectedColor:`{highlight.color}`,width:`2.5rem`,height:`2.5rem`,borderRadius:`50%`,padding:`0.375rem`,focusRing:{width:`{form.field.focus.ring.width}`,style:`{form.field.focus.ring.style}`,color:`{form.field.focus.ring.color}`,offset:`{form.field.focus.ring.offset}`,shadow:`{form.field.focus.ring.shadow}`}},monthView:{margin:`0.75rem 0 0 0`},month:{padding:`0.5rem`,borderRadius:`{content.border.radius}`},yearView:{margin:`0.75rem 0 0 0`},year:{padding:`0.5rem`,borderRadius:`{content.border.radius}`},buttonbar:{padding:`0.75rem 0 0 0`,borderColor:`{content.border.color}`},timePicker:{padding:`0.75rem 0 0 0`,borderColor:`{content.border.color}`,gap:`0.5rem`,buttonGap:`0.25rem`},colorScheme:{light:{dropdown:{background:`{surface.50}`,hoverBackground:`{surface.100}`,activeBackground:`{surface.200}`,color:`{surface.600}`,hoverColor:`{surface.700}`,activeColor:`{surface.800}`},today:{background:`{surface.200}`,color:`{surface.900}`}},dark:{dropdown:{background:`{surface.800}`,hoverBackground:`{surface.700}`,activeBackground:`{surface.600}`,color:`{surface.300}`,hoverColor:`{surface.200}`,activeColor:`{surface.100}`},today:{background:`{surface.700}`,color:`{surface.0}`}}}},dEt={root:{background:`{overlay.modal.background}`,borderColor:`{overlay.modal.border.color}`,color:`{overlay.modal.color}`,borderRadius:`{overlay.modal.border.radius}`,shadow:`{overlay.modal.shadow}`},header:{padding:`{overlay.modal.padding}`,gap:`0.5rem`},title:{fontSize:`1.25rem`,fontWeight:`600`},content:{padding:`0 {overlay.modal.padding} {overlay.modal.padding} {overlay.modal.padding}`},footer:{padding:`0 {overlay.modal.padding} {overlay.modal.padding} {overlay.modal.padding}`,gap:`0.5rem`}},fEt={root:{borderColor:`{content.border.color}`},content:{background:`{content.background}`,color:`{text.color}`},horizontal:{margin:`1.125rem 0`,padding:`0 1.125rem`,content:{padding:`0 0.625rem`}},vertical:{margin:`0 1.125rem`,padding:`1.125rem 0`,content:{padding:`0.625rem 0`}}},pEt={root:{background:`rgba(255, 255, 255, 0.1)`,borderColor:`rgba(255, 255, 255, 0.2)`,padding:`0.5rem`,borderRadius:`{border.radius.lg}`},item:{borderRadius:`{content.border.radius}`,padding:`0.5rem`,size:`3rem`,focusRing:{width:`{focus.ring.width}`,style:`{focus.ring.style}`,color:`{focus.ring.color}`,offset:`{focus.ring.offset}`,shadow:`{focus.ring.shadow}`}}},mEt={root:{background:`{overlay.modal.background}`,borderColor:`{overlay.modal.border.color}`,color:`{overlay.modal.color}`,shadow:`{overlay.modal.shadow}`},header:{padding:`{overlay.modal.padding}`},title:{fontSize:`1.5rem`,fontWeight:`600`},content:{padding:`0 {overlay.modal.padding} {overlay.modal.padding} {overlay.modal.padding}`},footer:{padding:`{overlay.modal.padding}`}},hEt={toolbar:{borderColor:`{content.border.color}`,borderRadius:`{content.border.radius}`},toolbarItem:{color:`{text.muted.color}`,hoverColor:`{text.color}`,activeColor:`{primary.color}`},overlay:{background:`{overlay.select.background}`,borderColor:`{overlay.select.border.color}`,borderRadius:`{overlay.select.border.radius}`,color:`{overlay.select.color}`,shadow:`{overlay.select.shadow}`,padding:`{list.padding}`},overlayOption:{focusBackground:`{list.option.focus.background}`,color:`{list.option.color}`,focusColor:`{list.option.focus.color}`,padding:`{list.option.padding}`,borderRadius:`{list.option.border.radius}`},content:{background:`{content.background}`,borderColor:`{content.border.color}`,color:`{content.color}`,borderRadius:`{content.border.radius}`},colorScheme:{light:{toolbar:{background:`{surface.50}`}},dark:{toolbar:{background:`{surface.800}`}}}},gEt={root:{background:`{content.background}`,borderColor:`{content.border.color}`,borderRadius:`{content.border.radius}`,color:`{content.color}`,padding:`0.75rem 1.125rem 1.125rem 1.125rem`,transitionDuration:`{transition.duration}`},legend:{borderRadius:`{content.border.radius}`,borderWidth:`1px`,borderColor:`{content.border.color}`,padding:`0.625rem 0.875rem`,gap:`0.5rem`,fontWeight:`700`,focusRing:{width:`{focus.ring.width}`,style:`{focus.ring.style}`,color:`{focus.ring.color}`,offset:`{focus.ring.offset}`,shadow:`{focus.ring.shadow}`}},toggleIcon:{color:`{text.muted.color}`,hoverColor:`{text.hover.muted.color}`},content:{padding:`0`},colorScheme:{light:{legend:{background:`{surface.50}`,hoverBackground:`{surface.100}`,color:`{text.color}`,hoverColor:`{text.hover.color}`}},dark:{legend:{background:`{surface.800}`,hoverBackground:`{surface.700}`,color:`{text.color}`,hoverColor:`{text.hover.color}`}}}},_Et={root:{background:`{content.background}`,borderColor:`{content.border.color}`,color:`{content.color}`,borderRadius:`{content.border.radius}`,transitionDuration:`{transition.duration}`},header:{borderWidth:`0 0 1px 0`,borderColor:`{content.border.color}`,padding:`1.125rem`,borderRadius:`5px 5px 0 0`,gap:`0.5rem`},content:{highlightBorderColor:`{primary.color}`,padding:`1.125rem`,gap:`1rem`},file:{padding:`1rem`,gap:`1rem`,borderColor:`{content.border.color}`,info:{gap:`0.5rem`}},fileList:{gap:`0.5rem`},progressbar:{height:`0.25rem`},basic:{gap:`0.5rem`},colorScheme:{light:{header:{background:`{surface.50}`,color:`{text.color}`}},dark:{header:{background:`{surface.800}`,color:`{text.color}`}}}},vEt={root:{color:`{form.field.float.label.color}`,focusColor:`{form.field.float.label.focus.color}`,activeColor:`{form.field.float.label.active.color}`,invalidColor:`{form.field.float.label.invalid.color}`,transitionDuration:`0.2s`,positionX:`{form.field.padding.x}`,positionY:`{form.field.padding.y}`,fontWeight:`500`,active:{fontSize:`0.75rem`,fontWeight:`400`}},over:{active:{top:`-1.375rem`}},in:{input:{paddingTop:`1.875rem`,paddingBottom:`{form.field.padding.y}`},active:{top:`{form.field.padding.y}`}},on:{borderRadius:`{border.radius.xs}`,active:{background:`{form.field.background}`,padding:`0 0.125rem`}}},yEt={root:{borderWidth:`1px`,borderColor:`{content.border.color}`,borderRadius:`{content.border.radius}`,transitionDuration:`{transition.duration}`},navButton:{background:`rgba(255, 255, 255, 0.1)`,hoverBackground:`rgba(255, 255, 255, 0.2)`,color:`{surface.100}`,hoverColor:`{surface.0}`,size:`3rem`,gutter:`0`,prev:{borderRadius:`0 12px 12px 0`},next:{borderRadius:`12px 0 0 12px`},focusRing:{width:`{focus.ring.width}`,style:`{focus.ring.style}`,color:`{focus.ring.color}`,offset:`{focus.ring.offset}`,shadow:`{focus.ring.shadow}`}},navIcon:{size:`1.5rem`},thumbnailsContent:{padding:`1rem 0.25rem`},thumbnailNavButton:{size:`2rem`,borderRadius:`{content.border.radius}`,gutter:`0.5rem`,focusRing:{width:`{focus.ring.width}`,style:`{focus.ring.style}`,color:`{focus.ring.color}`,offset:`{focus.ring.offset}`,shadow:`{focus.ring.shadow}`}},thumbnailNavButtonIcon:{size:`1rem`},caption:{background:`rgba(0, 0, 0, 0.5)`,color:`{surface.100}`,padding:`1rem`},indicatorList:{gap:`0.5rem`,padding:`1rem`},indicatorButton:{width:`1rem`,height:`1rem`,activeBackground:`{primary.color}`,borderRadius:`50%`,focusRing:{width:`{focus.ring.width}`,style:`{focus.ring.style}`,color:`{focus.ring.color}`,offset:`{focus.ring.offset}`,shadow:`{focus.ring.shadow}`}},insetIndicatorList:{background:`rgba(0, 0, 0, 0.5)`},insetIndicatorButton:{background:`rgba(255, 255, 255, 0.4)`,hoverBackground:`rgba(255, 255, 255, 0.6)`,activeBackground:`rgba(255, 255, 255, 0.9)`},closeButton:{size:`3rem`,gutter:`0.5rem`,background:`rgba(255, 255, 255, 0.1)`,hoverBackground:`rgba(255, 255, 255, 0.2)`,color:`{surface.50}`,hoverColor:`{surface.0}`,borderRadius:`50%`,focusRing:{width:`{focus.ring.width}`,style:`{focus.ring.style}`,color:`{focus.ring.color}`,offset:`{focus.ring.offset}`,shadow:`{focus.ring.shadow}`}},closeButtonIcon:{size:`1.5rem`},colorScheme:{light:{thumbnailsContent:{background:`{surface.50}`},thumbnailNavButton:{hoverBackground:`{surface.100}`,color:`{surface.600}`,hoverColor:`{surface.700}`},indicatorButton:{background:`{surface.200}`,hoverBackground:`{surface.300}`}},dark:{thumbnailsContent:{background:`{surface.800}`},thumbnailNavButton:{hoverBackground:`{surface.700}`,color:`{surface.400}`,hoverColor:`{surface.0}`},indicatorButton:{background:`{surface.700}`,hoverBackground:`{surface.600}`}}}},bEt={icon:{color:`{form.field.icon.color}`}},xEt={root:{color:`{form.field.float.label.color}`,focusColor:`{form.field.float.label.focus.color}`,invalidColor:`{form.field.float.label.invalid.color}`,transitionDuration:`0.2s`,positionX:`{form.field.padding.x}`,top:`{form.field.padding.y}`,fontSize:`0.75rem`,fontWeight:`400`},input:{paddingTop:`1.875rem`,paddingBottom:`{form.field.padding.y}`}},SEt={root:{transitionDuration:`{transition.duration}`},preview:{icon:{size:`1.5rem`},mask:{background:`{mask.background}`,color:`{mask.color}`}},toolbar:{position:{left:`auto`,right:`1rem`,top:`1rem`,bottom:`auto`},blur:`8px`,background:`rgba(255,255,255,0.1)`,borderColor:`rgba(255,255,255,0.2)`,borderWidth:`1px`,borderRadius:`{content.border.radius}`,padding:`.5rem`,gap:`0.5rem`},action:{hoverBackground:`rgba(255,255,255,0.1)`,color:`{surface.50}`,hoverColor:`{surface.0}`,size:`3rem`,iconSize:`1.5rem`,borderRadius:`{content.border.radius}`,focusRing:{width:`{focus.ring.width}`,style:`{focus.ring.style}`,color:`{focus.ring.color}`,offset:`{focus.ring.offset}`,shadow:`{focus.ring.shadow}`}}},CEt={handle:{size:`15px`,hoverSize:`30px`,background:`rgba(255,255,255,0.3)`,hoverBackground:`rgba(255,255,255,0.3)`,borderColor:`rgba(255,255,255,0.3)`,hoverBorderColor:`rgba(255,255,255,0.3)`,borderWidth:`3px`,borderRadius:`50%`,transitionDuration:`{transition.duration}`,focusRing:{width:`{focus.ring.width}`,style:`{focus.ring.style}`,color:`rgba(255,255,255,0.3)`,offset:`{focus.ring.offset}`,shadow:`{focus.ring.shadow}`}}},wEt={root:{padding:`{form.field.padding.y} {form.field.padding.x}`,borderRadius:`{content.border.radius}`,gap:`0.5rem`},text:{fontWeight:`500`},icon:{size:`1.125rem`},colorScheme:{light:{info:{background:`color-mix(in srgb, {blue.50}, transparent 5%)`,borderColor:`color-mix(in srgb, {blue.50}, transparent 5%)`,color:`{blue.600}`,shadow:`none`},success:{background:`color-mix(in srgb, {green.50}, transparent 5%)`,borderColor:`color-mix(in srgb, {green.50}, transparent 5%)`,color:`{green.600}`,shadow:`none`},warn:{background:`color-mix(in srgb,{yellow.50}, transparent 5%)`,borderColor:`color-mix(in srgb,{yellow.50}, transparent 5%)`,color:`{yellow.600}`,shadow:`none`},error:{background:`color-mix(in srgb, {red.50}, transparent 5%)`,borderColor:`color-mix(in srgb, {red.50}, transparent 5%)`,color:`{red.600}`,shadow:`none`},secondary:{background:`{surface.100}`,borderColor:`{surface.100}`,color:`{surface.600}`,shadow:`none`},contrast:{background:`{surface.900}`,borderColor:`{surface.900}`,color:`{surface.50}`,shadow:`none`}},dark:{info:{background:`color-mix(in srgb, {blue.500}, transparent 84%)`,borderColor:`color-mix(in srgb, {blue.500}, transparent 84%)`,color:`{blue.500}`,shadow:`none`},success:{background:`color-mix(in srgb, {green.500}, transparent 84%)`,borderColor:`color-mix(in srgb, {green.500}, transparent 84%)`,color:`{green.500}`,shadow:`none`},warn:{background:`color-mix(in srgb, {yellow.500}, transparent 84%)`,borderColor:`color-mix(in srgb, {yellow.500}, transparent 84%)`,color:`{yellow.500}`,shadow:`none`},error:{background:`color-mix(in srgb, {red.500}, transparent 84%)`,borderColor:`color-mix(in srgb, {red.500}, transparent 84%)`,color:`{red.500}`,shadow:`none`},secondary:{background:`{surface.800}`,borderColor:`{surface.800}`,color:`{surface.300}`,shadow:`none`},contrast:{background:`{surface.0}`,borderColor:`{surface.0}`,color:`{surface.950}`,shadow:`none`}}}},TEt={root:{padding:`{form.field.padding.y} {form.field.padding.x}`,borderRadius:`{content.border.radius}`,focusRing:{width:`{focus.ring.width}`,style:`{focus.ring.style}`,color:`{focus.ring.color}`,offset:`{focus.ring.offset}`,shadow:`{focus.ring.shadow}`},transitionDuration:`{transition.duration}`},display:{hoverBackground:`{content.hover.background}`,hoverColor:`{content.hover.color}`}},EEt={root:{background:`{form.field.background}`,disabledBackground:`{form.field.disabled.background}`,filledBackground:`{form.field.filled.background}`,filledFocusBackground:`{form.field.filled.focus.background}`,borderColor:`{form.field.border.color}`,hoverBorderColor:`{form.field.hover.border.color}`,focusBorderColor:`{form.field.focus.border.color}`,invalidBorderColor:`{form.field.invalid.border.color}`,color:`{form.field.color}`,disabledColor:`{form.field.disabled.color}`,placeholderColor:`{form.field.placeholder.color}`,shadow:`{form.field.shadow}`,paddingX:`{form.field.padding.x}`,paddingY:`{form.field.padding.y}`,borderRadius:`{form.field.border.radius}`,focusRing:{width:`{form.field.focus.ring.width}`,style:`{form.field.focus.ring.style}`,color:`{form.field.focus.ring.color}`,offset:`{form.field.focus.ring.offset}`,shadow:`{form.field.focus.ring.shadow}`},transitionDuration:`{form.field.transition.duration}`},chip:{borderRadius:`{border.radius.sm}`},colorScheme:{light:{chip:{focusBackground:`{surface.200}`,color:`{surface.800}`}},dark:{chip:{focusBackground:`{surface.700}`,color:`{surface.0}`}}}},DEt={addon:{borderRadius:`{form.field.border.radius}`,padding:`0.625rem 0.5rem`,minWidth:`2.75rem`},colorScheme:{light:{addon:{background:`{surface.50}`,borderColor:`{form.field.border.color}`,color:`{text.muted.color}`}},dark:{addon:{background:`{surface.800}`,borderColor:`{form.field.border.color}`,color:`{text.muted.color}`}}}},OEt={root:{transitionDuration:`{transition.duration}`},button:{width:`2.5rem`,borderRadius:`{form.field.border.radius}`,verticalPadding:`{form.field.padding.y}`},colorScheme:{light:{button:{background:`{surface.100}`,hoverBackground:`{surface.200}`,activeBackground:`{surface.300}`,borderColor:`{form.field.border.color}`,hoverBorderColor:`{form.field.border.color}`,activeBorderColor:`{form.field.border.color}`,color:`{surface.600}`,hoverColor:`{surface.700}`,activeColor:`{surface.800}`}},dark:{button:{background:`{surface.800}`,hoverBackground:`{surface.700}`,activeBackground:`{surface.500}`,borderColor:`{form.field.border.color}`,hoverBorderColor:`{form.field.border.color}`,activeBorderColor:`{form.field.border.color}`,color:`{surface.300}`,hoverColor:`{surface.200}`,activeColor:`{surface.100}`}}}},kEt={root:{gap:`0.5rem`},input:{width:`2.5rem`,sm:{width:`2rem`},lg:{width:`3rem`}}},AEt={root:{background:`{form.field.background}`,disabledBackground:`{form.field.disabled.background}`,filledBackground:`{form.field.filled.background}`,filledHoverBackground:`{form.field.filled.hover.background}`,filledFocusBackground:`{form.field.filled.focus.background}`,borderColor:`{form.field.border.color}`,hoverBorderColor:`{form.field.hover.border.color}`,focusBorderColor:`{form.field.focus.border.color}`,invalidBorderColor:`{form.field.invalid.border.color}`,color:`{form.field.color}`,disabledColor:`{form.field.disabled.color}`,placeholderColor:`{form.field.placeholder.color}`,invalidPlaceholderColor:`{form.field.invalid.placeholder.color}`,shadow:`{form.field.shadow}`,paddingX:`{form.field.padding.x}`,paddingY:`{form.field.padding.y}`,borderRadius:`{form.field.border.radius}`,focusRing:{width:`{form.field.focus.ring.width}`,style:`{form.field.focus.ring.style}`,color:`{form.field.focus.ring.color}`,offset:`{form.field.focus.ring.offset}`,shadow:`{form.field.focus.ring.shadow}`},transitionDuration:`{form.field.transition.duration}`,sm:{fontSize:`{form.field.sm.font.size}`,paddingX:`{form.field.sm.padding.x}`,paddingY:`{form.field.sm.padding.y}`},lg:{fontSize:`{form.field.lg.font.size}`,paddingX:`{form.field.lg.padding.x}`,paddingY:`{form.field.lg.padding.y}`}}},jEt={root:{transitionDuration:`{transition.duration}`,focusRing:{width:`{focus.ring.width}`,style:`{focus.ring.style}`,color:`{focus.ring.color}`,offset:`{focus.ring.offset}`,shadow:`{focus.ring.shadow}`}},value:{background:`{primary.color}`},range:{background:`{content.border.color}`},text:{color:`{text.muted.color}`}},MEt={root:{background:`{form.field.background}`,disabledBackground:`{form.field.disabled.background}`,borderColor:`{form.field.border.color}`,invalidBorderColor:`{form.field.invalid.border.color}`,color:`{form.field.color}`,disabledColor:`{form.field.disabled.color}`,shadow:`{form.field.shadow}`,borderRadius:`{form.field.border.radius}`,transitionDuration:`{form.field.transition.duration}`},list:{padding:`{list.padding}`,gap:`{list.gap}`,header:{padding:`{list.header.padding}`}},option:{focusBackground:`{list.option.focus.background}`,selectedBackground:`{list.option.selected.background}`,selectedFocusBackground:`{list.option.selected.focus.background}`,color:`{list.option.color}`,focusColor:`{list.option.focus.color}`,selectedColor:`{list.option.selected.color}`,selectedFocusColor:`{list.option.selected.focus.color}`,padding:`{list.option.padding}`,borderRadius:`{list.option.border.radius}`},optionGroup:{background:`{list.option.group.background}`,color:`{list.option.group.color}`,fontWeight:`{list.option.group.font.weight}`,padding:`{list.option.group.padding}`},checkmark:{color:`{list.option.color}`,gutterStart:`-0.5rem`,gutterEnd:`0.5rem`},emptyMessage:{padding:`{list.option.padding}`},colorScheme:{light:{option:{stripedBackground:`{surface.50}`}},dark:{option:{stripedBackground:`{surface.900}`}}}},NEt={root:{borderColor:`transparent`,borderRadius:`{content.border.radius}`,color:`{content.color}`,gap:`0.5rem`,verticalOrientation:{padding:`{navigation.list.padding}`,gap:`{navigation.list.gap}`},horizontalOrientation:{padding:`0.75rem 1rem`,gap:`0.5rem`},transitionDuration:`{transition.duration}`},baseItem:{borderRadius:`{content.border.radius}`,padding:`0.75rem 1rem`},item:{focusBackground:`{navigation.item.focus.background}`,activeBackground:`{navigation.item.active.background}`,color:`{navigation.item.color}`,focusColor:`{navigation.item.focus.color}`,activeColor:`{navigation.item.active.color}`,padding:`{navigation.item.padding}`,borderRadius:`{navigation.item.border.radius}`,gap:`{navigation.item.gap}`,icon:{color:`{navigation.item.icon.color}`,focusColor:`{navigation.item.icon.focus.color}`,activeColor:`{navigation.item.icon.active.color}`}},overlay:{padding:`0`,background:`{content.background}`,borderColor:`{content.border.color}`,borderRadius:`{content.border.radius}`,color:`{content.color}`,shadow:`{overlay.navigation.shadow}`,gap:`0.5rem`},submenu:{padding:`{navigation.list.padding}`,gap:`{navigation.list.gap}`},submenuLabel:{padding:`{navigation.submenu.label.padding}`,fontWeight:`{navigation.submenu.label.font.weight}`,background:`{navigation.submenu.label.background}`,color:`{navigation.submenu.label.color}`},submenuIcon:{size:`{navigation.submenu.icon.size}`,color:`{navigation.submenu.icon.color}`,focusColor:`{navigation.submenu.icon.focus.color}`,activeColor:`{navigation.submenu.icon.active.color}`},separator:{borderColor:`{content.border.color}`},mobileButton:{borderRadius:`50%`,size:`2rem`,color:`{text.muted.color}`,hoverColor:`{text.hover.muted.color}`,hoverBackground:`{content.hover.background}`,focusRing:{width:`{focus.ring.width}`,style:`{focus.ring.style}`,color:`{focus.ring.color}`,offset:`{focus.ring.offset}`,shadow:`{focus.ring.shadow}`}},colorScheme:{light:{root:{background:`{surface.50}`}},dark:{root:{background:`{surface.800}`}}}},PEt={root:{background:`{content.background}`,borderColor:`{content.border.color}`,color:`{content.color}`,borderRadius:`{content.border.radius}`,shadow:`{overlay.navigation.shadow}`,transitionDuration:`{transition.duration}`},list:{padding:`{navigation.list.padding}`,gap:`{navigation.list.gap}`},item:{focusBackground:`{navigation.item.focus.background}`,color:`{navigation.item.color}`,focusColor:`{navigation.item.focus.color}`,padding:`{navigation.item.padding}`,borderRadius:`{navigation.item.border.radius}`,gap:`{navigation.item.gap}`,icon:{color:`{navigation.item.icon.color}`,focusColor:`{navigation.item.icon.focus.color}`}},submenuLabel:{padding:`{navigation.submenu.label.padding}`,fontWeight:`{navigation.submenu.label.font.weight}`,background:`{navigation.submenu.label.background}`,color:`{navigation.submenu.label.color}`},separator:{borderColor:`{content.border.color}`}},FEt={root:{borderColor:`transparent`,borderRadius:`{content.border.radius}`,color:`{content.color}`,gap:`0.5rem`,padding:`0.75rem 1rem`,transitionDuration:`{transition.duration}`},baseItem:{borderRadius:`{content.border.radius}`,padding:`0.75rem 1rem`},item:{focusBackground:`{navigation.item.focus.background}`,activeBackground:`{navigation.item.active.background}`,color:`{navigation.item.color}`,focusColor:`{navigation.item.focus.color}`,activeColor:`{navigation.item.active.color}`,padding:`{navigation.item.padding}`,borderRadius:`{navigation.item.border.radius}`,gap:`{navigation.item.gap}`,icon:{color:`{navigation.item.icon.color}`,focusColor:`{navigation.item.icon.focus.color}`,activeColor:`{navigation.item.icon.active.color}`}},submenu:{padding:`{navigation.list.padding}`,gap:`{navigation.list.gap}`,background:`{content.background}`,borderColor:`{content.border.color}`,borderRadius:`{content.border.radius}`,shadow:`{overlay.navigation.shadow}`,mobileIndent:`1.25rem`,icon:{size:`{navigation.submenu.icon.size}`,color:`{navigation.submenu.icon.color}`,focusColor:`{navigation.submenu.icon.focus.color}`,activeColor:`{navigation.submenu.icon.active.color}`}},separator:{borderColor:`{content.border.color}`},mobileButton:{borderRadius:`50%`,size:`2rem`,color:`{text.muted.color}`,hoverColor:`{text.hover.muted.color}`,hoverBackground:`{content.hover.background}`,focusRing:{width:`{focus.ring.width}`,style:`{focus.ring.style}`,color:`{focus.ring.color}`,offset:`{focus.ring.offset}`,shadow:`{focus.ring.shadow}`}},colorScheme:{light:{root:{background:`{surface.50}`}},dark:{root:{background:`{surface.800}`}}}},IEt={root:{borderRadius:`{content.border.radius}`,borderWidth:`1px`,transitionDuration:`{transition.duration}`},content:{padding:`0.75rem 1rem`,gap:`0.5rem`,sm:{padding:`0.5rem 0.625rem`},lg:{padding:`0.75rem 0.875rem`}},text:{fontSize:`1rem`,fontWeight:`500`,sm:{fontSize:`0.875rem`},lg:{fontSize:`1.125rem`}},icon:{size:`1.25rem`,sm:{size:`1rem`},lg:{size:`1.5rem`}},closeButton:{width:`2rem`,height:`2rem`,borderRadius:`50%`,focusRing:{width:`{focus.ring.width}`,style:`{focus.ring.style}`,offset:`{focus.ring.offset}`}},closeIcon:{size:`1rem`,sm:{size:`0.875rem`},lg:{size:`1.125rem`}},outlined:{root:{borderWidth:`1px`}},simple:{content:{padding:`0`}},colorScheme:{light:{info:{background:`color-mix(in srgb, {blue.50}, transparent 5%)`,borderColor:`transparent`,color:`{blue.600}`,shadow:`none`,closeButton:{hoverBackground:`{blue.100}`,focusRing:{color:`{focus.ring.color}`,shadow:`0 0 0 0.2rem {blue.200}`}},outlined:{color:`{blue.600}`,borderColor:`{blue.600}`},simple:{color:`{blue.600}`}},success:{background:`color-mix(in srgb, {green.50}, transparent 5%)`,borderColor:`transparent`,color:`{green.600}`,shadow:`none`,closeButton:{hoverBackground:`{green.100}`,focusRing:{color:`{focus.ring.color}`,shadow:`0 0 0 0.2rem {green.200}`}},outlined:{color:`{green.600}`,borderColor:`{green.600}`},simple:{color:`{green.600}`}},warn:{background:`color-mix(in srgb,{yellow.50}, transparent 5%)`,borderColor:`transparent`,color:`{yellow.600}`,shadow:`none`,closeButton:{hoverBackground:`{yellow.100}`,focusRing:{color:`{focus.ring.color}`,shadow:`0 0 0 0.2rem {yellow.200}`}},outlined:{color:`{yellow.600}`,borderColor:`{yellow.600}`},simple:{color:`{yellow.600}`}},error:{background:`color-mix(in srgb, {red.50}, transparent 5%)`,borderColor:`transparent`,color:`{red.600}`,shadow:`none`,closeButton:{hoverBackground:`{red.100}`,focusRing:{color:`{focus.ring.color}`,shadow:`0 0 0 0.2rem {red.200}`}},outlined:{color:`{red.600}`,borderColor:`{red.600}`},simple:{color:`{red.600}`}},secondary:{background:`{surface.100}`,borderColor:`transparent`,color:`{surface.600}`,shadow:`none`,closeButton:{hoverBackground:`{surface.200}`,focusRing:{color:`{focus.ring.color}`,shadow:`0 0 0 0.2rem {surface.200}`}},outlined:{color:`{surface.500}`,borderColor:`{surface.500}`},simple:{color:`{surface.500}`}},contrast:{background:`{surface.900}`,borderColor:`transparent`,color:`{surface.50}`,shadow:`none`,closeButton:{hoverBackground:`{surface.800}`,focusRing:{color:`{focus.ring.color}`,shadow:`0 0 0 0.2rem {surface.400}`}},outlined:{color:`{surface.900}`,borderColor:`{surface.900}`},simple:{color:`{surface.900}`}}},dark:{info:{background:`color-mix(in srgb, {blue.500}, transparent 84%)`,borderColor:`transparent`,color:`{blue.500}`,shadow:`none`,closeButton:{hoverBackground:`rgba(255, 255, 255, 0.05)`,focusRing:{color:`{focus.ring.color}`,shadow:`0 0 0 0.2rem color-mix(in srgb, {blue.500}, transparent 80%)`}},outlined:{color:`{blue.500}`,borderColor:`{blue.500}`},simple:{color:`{blue.500}`}},success:{background:`color-mix(in srgb, {green.500}, transparent 84%)`,borderColor:`transparent`,color:`{green.500}`,shadow:`none`,closeButton:{hoverBackground:`rgba(255, 255, 255, 0.05)`,focusRing:{color:`{focus.ring.color}`,shadow:`0 0 0 0.2rem color-mix(in srgb, {green.500}, transparent 80%)`}},outlined:{color:`{green.500}`,borderColor:`{green.500}`},simple:{color:`{green.500}`}},warn:{background:`color-mix(in srgb, {yellow.500}, transparent 84%)`,borderColor:`transparent`,color:`{yellow.500}`,shadow:`none`,closeButton:{hoverBackground:`rgba(255, 255, 255, 0.05)`,focusRing:{color:`{focus.ring.color}`,shadow:`0 0 0 0.2rem color-mix(in srgb, {yellow.500}, transparent 80%)`}},outlined:{color:`{yellow.500}`,borderColor:`{yellow.500}`},simple:{color:`{yellow.500}`}},error:{background:`color-mix(in srgb, {red.500}, transparent 84%)`,borderColor:`transparent`,color:`{red.500}`,shadow:`none`,closeButton:{hoverBackground:`rgba(255, 255, 255, 0.05)`,focusRing:{color:`{focus.ring.color}`,shadow:`0 0 0 0.2rem color-mix(in srgb, {red.500}, transparent 80%)`}},outlined:{color:`{red.500}`,borderColor:`{red.500}`},simple:{color:`{red.500}`}},secondary:{background:`{surface.800}`,borderColor:`transparent`,color:`{surface.300}`,shadow:`none`,closeButton:{hoverBackground:`{surface.700}`,focusRing:{color:`{focus.ring.color}`,shadow:`0 0 0 0.2rem color-mix(in srgb, {surface.300}, transparent 80%)`}},outlined:{color:`{surface.400}`,borderColor:`{surface.400}`},simple:{color:`{surface.400}`}},contrast:{background:`{surface.0}`,borderColor:`transparent`,color:`{surface.950}`,shadow:`none`,closeButton:{hoverBackground:`{surface.100}`,focusRing:{color:`{focus.ring.color}`,shadow:`0 0 0 0.2rem color-mix(in srgb, {surface.950}, transparent 80%)`}},outlined:{color:`{surface.0}`,borderColor:`{surface.0}`},simple:{color:`{surface.0}`}}}}},LEt={root:{borderRadius:`{content.border.radius}`,gap:`1rem`},meters:{background:`{content.border.color}`,size:`0.625rem`},label:{gap:`0.5rem`},labelMarker:{size:`0.5rem`},labelIcon:{size:`1rem`},labelList:{verticalGap:`0.5rem`,horizontalGap:`1rem`}},REt={root:{background:`{form.field.background}`,disabledBackground:`{form.field.disabled.background}`,filledBackground:`{form.field.filled.background}`,filledHoverBackground:`{form.field.filled.hover.background}`,filledFocusBackground:`{form.field.filled.focus.background}`,borderColor:`{form.field.border.color}`,hoverBorderColor:`{form.field.hover.border.color}`,focusBorderColor:`{form.field.focus.border.color}`,invalidBorderColor:`{form.field.invalid.border.color}`,color:`{form.field.color}`,disabledColor:`{form.field.disabled.color}`,placeholderColor:`{form.field.placeholder.color}`,invalidPlaceholderColor:`{form.field.invalid.placeholder.color}`,shadow:`{form.field.shadow}`,paddingX:`{form.field.padding.x}`,paddingY:`{form.field.padding.y}`,borderRadius:`{form.field.border.radius}`,focusRing:{width:`{form.field.focus.ring.width}`,style:`{form.field.focus.ring.style}`,color:`{form.field.focus.ring.color}`,offset:`{form.field.focus.ring.offset}`,shadow:`{form.field.focus.ring.shadow}`},transitionDuration:`{form.field.transition.duration}`,sm:{fontSize:`{form.field.sm.font.size}`,paddingX:`{form.field.sm.padding.x}`,paddingY:`{form.field.sm.padding.y}`},lg:{fontSize:`{form.field.lg.font.size}`,paddingX:`{form.field.lg.padding.x}`,paddingY:`{form.field.lg.padding.y}`}},dropdown:{width:`2.5rem`,color:`{form.field.icon.color}`},overlay:{background:`{overlay.select.background}`,borderColor:`{overlay.select.border.color}`,borderRadius:`{overlay.select.border.radius}`,color:`{overlay.select.color}`,shadow:`{overlay.select.shadow}`},list:{padding:`{list.padding}`,gap:`{list.gap}`,header:{padding:`{list.header.padding}`}},option:{focusBackground:`{list.option.focus.background}`,selectedBackground:`{list.option.selected.background}`,selectedFocusBackground:`{list.option.selected.focus.background}`,color:`{list.option.color}`,focusColor:`{list.option.focus.color}`,selectedColor:`{list.option.selected.color}`,selectedFocusColor:`{list.option.selected.focus.color}`,padding:`{list.option.padding}`,borderRadius:`{list.option.border.radius}`,gap:`0.5rem`},optionGroup:{background:`{list.option.group.background}`,color:`{list.option.group.color}`,fontWeight:`{list.option.group.font.weight}`,padding:`{list.option.group.padding}`},chip:{borderRadius:`{border.radius.sm}`},clearIcon:{color:`{form.field.icon.color}`},emptyMessage:{padding:`{list.option.padding}`}},zEt={root:{gap:`1.125rem`},controls:{gap:`0.5rem`}},BEt={root:{gutter:`0.75rem`,transitionDuration:`{transition.duration}`},node:{background:`{content.background}`,hoverBackground:`{content.hover.background}`,selectedBackground:`{highlight.background}`,borderColor:`{content.border.color}`,color:`{content.color}`,selectedColor:`{highlight.color}`,hoverColor:`{content.hover.color}`,padding:`1rem 1.25rem`,toggleablePadding:`1rem 1.25rem 1.5rem 1.25rem`,borderRadius:`{content.border.radius}`},nodeToggleButton:{background:`{content.background}`,hoverBackground:`{content.hover.background}`,borderColor:`{content.border.color}`,color:`{text.muted.color}`,hoverColor:`{text.color}`,size:`1.75rem`,borderRadius:`50%`,focusRing:{width:`{focus.ring.width}`,style:`{focus.ring.style}`,color:`{focus.ring.color}`,offset:`{focus.ring.offset}`,shadow:`{focus.ring.shadow}`}},connector:{color:`{content.border.color}`,borderRadius:`{content.border.radius}`,height:`24px`}},VEt={root:{outline:{width:`2px`,color:`{content.background}`}}},HEt={root:{padding:`0.5rem 1rem`,gap:`0.25rem`,borderRadius:`{content.border.radius}`,background:`{content.background}`,color:`{content.color}`,transitionDuration:`{transition.duration}`},navButton:{background:`transparent`,hoverBackground:`{content.hover.background}`,selectedBackground:`{highlight.background}`,color:`{text.muted.color}`,hoverColor:`{text.hover.muted.color}`,selectedColor:`{highlight.color}`,width:`2.5rem`,height:`2.5rem`,borderRadius:`50%`,focusRing:{width:`{focus.ring.width}`,style:`{focus.ring.style}`,color:`{focus.ring.color}`,offset:`{focus.ring.offset}`,shadow:`{focus.ring.shadow}`}},currentPageReport:{color:`{text.muted.color}`},jumpToPageInput:{maxWidth:`2.5rem`}},UEt={root:{background:`{content.background}`,borderColor:`{content.border.color}`,borderRadius:`{content.border.radius}`,color:`{content.color}`},header:{borderWidth:`0 0 1px 0`,borderColor:`{content.border.color}`,padding:`1.125rem`,borderRadius:`5px 5px 0 0`},toggleableHeader:{padding:`0.25rem 1.125rem`},title:{fontWeight:`700`},content:{padding:`1.125rem`},footer:{padding:`1.125rem`},colorScheme:{light:{header:{background:`{surface.50}`,color:`{text.color}`}},dark:{header:{background:`{surface.800}`,color:`{text.color}`}}}},WEt={root:{gap:`0`,transitionDuration:`{transition.duration}`},panel:{background:`{content.background}`,borderColor:`{content.border.color}`,borderWidth:`1px`,color:`{content.color}`,padding:`0.25rem 0.25rem`,borderRadius:`0`,first:{borderWidth:`1px 1px 0 1px`,topBorderRadius:`{content.border.radius}`},last:{borderWidth:`0 1px 1px 1px`,bottomBorderRadius:`{content.border.radius}`}},item:{focusBackground:`{navigation.item.focus.background}`,color:`{navigation.item.color}`,focusColor:`{navigation.item.focus.color}`,gap:`0.5rem`,padding:`{navigation.item.padding}`,borderRadius:`{content.border.radius}`,icon:{color:`{navigation.item.icon.color}`,focusColor:`{navigation.item.icon.focus.color}`}},submenu:{indent:`1rem`},submenuIcon:{color:`{navigation.submenu.icon.color}`,focusColor:`{navigation.submenu.icon.focus.color}`}},GEt={meter:{background:`{content.border.color}`,borderRadius:`{content.border.radius}`,height:`.75rem`},icon:{color:`{form.field.icon.color}`},overlay:{background:`{overlay.popover.background}`,borderColor:`{overlay.popover.border.color}`,borderRadius:`{overlay.popover.border.radius}`,color:`{overlay.popover.color}`,padding:`{overlay.popover.padding}`,shadow:`{overlay.popover.shadow}`},content:{gap:`0.75rem`},colorScheme:{light:{strength:{weakBackground:`{red.500}`,mediumBackground:`{amber.500}`,strongBackground:`{green.500}`}},dark:{strength:{weakBackground:`{red.400}`,mediumBackground:`{amber.400}`,strongBackground:`{green.400}`}}}},KEt={root:{gap:`1.125rem`},controls:{gap:`0.5rem`}},qEt={root:{background:`{overlay.popover.background}`,borderColor:`{overlay.popover.border.color}`,color:`{overlay.popover.color}`,borderRadius:`{overlay.popover.border.radius}`,shadow:`{overlay.popover.shadow}`,gutter:`10px`,arrowOffset:`1.25rem`},content:{padding:`{overlay.popover.padding}`}},JEt={root:{background:`{content.border.color}`,borderRadius:`{content.border.radius}`,height:`1.5rem`},value:{background:`{primary.color}`},label:{color:`{primary.contrast.color}`,fontSize:`0.875rem`,fontWeight:`600`}},YEt={colorScheme:{light:{root:{colorOne:`{pink.500}`,colorTwo:`{sky.500}`,colorThree:`{emerald.500}`,colorFour:`{amber.500}`}},dark:{root:{colorOne:`{pink.400}`,colorTwo:`{sky.400}`,colorThree:`{emerald.400}`,colorFour:`{amber.400}`}}}},XEt={root:{width:`1.5rem`,height:`1.5rem`,background:`{form.field.background}`,checkedBackground:`{primary.color}`,checkedHoverBackground:`{primary.hover.color}`,disabledBackground:`{form.field.disabled.background}`,filledBackground:`{form.field.filled.background}`,borderColor:`{form.field.border.color}`,hoverBorderColor:`{form.field.hover.border.color}`,focusBorderColor:`{form.field.focus.border.color}`,checkedBorderColor:`{primary.color}`,checkedHoverBorderColor:`{primary.hover.color}`,checkedFocusBorderColor:`{primary.color}`,checkedDisabledBorderColor:`{form.field.border.color}`,invalidBorderColor:`{form.field.invalid.border.color}`,shadow:`{form.field.shadow}`,focusRing:{width:`{form.field.focus.ring.width}`,style:`{form.field.focus.ring.style}`,color:`{form.field.focus.ring.color}`,offset:`{form.field.focus.ring.offset}`,shadow:`{form.field.focus.ring.shadow}`},transitionDuration:`{form.field.transition.duration}`,sm:{width:`1.25rem`,height:`1.25rem`},lg:{width:`1.75rem`,height:`1.75rem`}},icon:{size:`1rem`,checkedColor:`{primary.contrast.color}`,checkedHoverColor:`{primary.contrast.color}`,disabledColor:`{form.field.disabled.color}`,sm:{size:`0.75rem`},lg:{size:`1.25rem`}}},ZEt={root:{gap:`0.25rem`,transitionDuration:`{transition.duration}`,focusRing:{width:`{focus.ring.width}`,style:`{focus.ring.style}`,color:`{focus.ring.color}`,offset:`{focus.ring.offset}`,shadow:`{focus.ring.shadow}`}},icon:{size:`1.25rem`,color:`{text.muted.color}`,hoverColor:`{primary.color}`,activeColor:`{primary.color}`}},QEt={colorScheme:{light:{root:{background:`rgba(0,0,0,0.1)`}},dark:{root:{background:`rgba(255,255,255,0.3)`}}}},$Et={root:{transitionDuration:`{transition.duration}`},bar:{size:`9px`,borderRadius:`{border.radius.sm}`,focusRing:{width:`{focus.ring.width}`,style:`{focus.ring.style}`,color:`{focus.ring.color}`,offset:`{focus.ring.offset}`,shadow:`{focus.ring.shadow}`}},colorScheme:{light:{bar:{background:`{surface.200}`}},dark:{bar:{background:`{surface.700}`}}}},eDt={root:{background:`{form.field.background}`,disabledBackground:`{form.field.disabled.background}`,filledBackground:`{form.field.filled.background}`,filledHoverBackground:`{form.field.filled.hover.background}`,filledFocusBackground:`{form.field.filled.focus.background}`,borderColor:`{form.field.border.color}`,hoverBorderColor:`{form.field.hover.border.color}`,focusBorderColor:`{form.field.focus.border.color}`,invalidBorderColor:`{form.field.invalid.border.color}`,color:`{form.field.color}`,disabledColor:`{form.field.disabled.color}`,placeholderColor:`{form.field.placeholder.color}`,invalidPlaceholderColor:`{form.field.invalid.placeholder.color}`,shadow:`{form.field.shadow}`,paddingX:`{form.field.padding.x}`,paddingY:`{form.field.padding.y}`,borderRadius:`{form.field.border.radius}`,focusRing:{width:`{form.field.focus.ring.width}`,style:`{form.field.focus.ring.style}`,color:`{form.field.focus.ring.color}`,offset:`{form.field.focus.ring.offset}`,shadow:`{form.field.focus.ring.shadow}`},transitionDuration:`{form.field.transition.duration}`,sm:{fontSize:`{form.field.sm.font.size}`,paddingX:`{form.field.sm.padding.x}`,paddingY:`{form.field.sm.padding.y}`},lg:{fontSize:`{form.field.lg.font.size}`,paddingX:`{form.field.lg.padding.x}`,paddingY:`{form.field.lg.padding.y}`}},dropdown:{width:`2.5rem`,color:`{form.field.icon.color}`},overlay:{background:`{overlay.select.background}`,borderColor:`{overlay.select.border.color}`,borderRadius:`{overlay.select.border.radius}`,color:`{overlay.select.color}`,shadow:`{overlay.select.shadow}`},list:{padding:`{list.padding}`,gap:`{list.gap}`,header:{padding:`{list.header.padding}`}},option:{focusBackground:`{list.option.focus.background}`,selectedBackground:`{list.option.selected.background}`,selectedFocusBackground:`{list.option.selected.focus.background}`,color:`{list.option.color}`,focusColor:`{list.option.focus.color}`,selectedColor:`{list.option.selected.color}`,selectedFocusColor:`{list.option.selected.focus.color}`,padding:`{list.option.padding}`,borderRadius:`{list.option.border.radius}`},optionGroup:{background:`{list.option.group.background}`,color:`{list.option.group.color}`,fontWeight:`{list.option.group.font.weight}`,padding:`{list.option.group.padding}`},clearIcon:{color:`{form.field.icon.color}`},checkmark:{color:`{list.option.color}`,gutterStart:`-0.5rem`,gutterEnd:`0.5rem`},emptyMessage:{padding:`{list.option.padding}`}},tDt={root:{borderRadius:`{form.field.border.radius}`},colorScheme:{light:{root:{invalidBorderColor:`{form.field.invalid.border.color}`}},dark:{root:{invalidBorderColor:`{form.field.invalid.border.color}`}}}},nDt={root:{borderRadius:`{content.border.radius}`},colorScheme:{light:{root:{background:`{surface.200}`,animationBackground:`rgba(255,255,255,0.4)`}},dark:{root:{background:`rgba(255, 255, 255, 0.06)`,animationBackground:`rgba(255, 255, 255, 0.04)`}}}},rDt={root:{transitionDuration:`{transition.duration}`},track:{background:`{content.border.color}`,borderRadius:`{content.border.radius}`,size:`3px`},range:{background:`{primary.color}`},handle:{width:`16px`,height:`16px`,borderRadius:`50%`,background:`{primary.color}`,hoverBackground:`{primary.color}`,content:{borderRadius:`50%`,hoverBackground:`{primary.color}`,width:`12px`,height:`12px`,shadow:`none`},focusRing:{width:`{form.field.focus.ring.width}`,style:`{form.field.focus.ring.style}`,color:`{form.field.focus.ring.color}`,offset:`{form.field.focus.ring.offset}`,shadow:`{form.field.focus.ring.shadow}`}},colorScheme:{light:{handle:{content:{background:`{surface.0}`}}},dark:{handle:{content:{background:`{surface.950}`}}}}},iDt={root:{gap:`0.5rem`,transitionDuration:`{transition.duration}`}},aDt={root:{borderRadius:`{form.field.border.radius}`,roundedBorderRadius:`2rem`,raisedShadow:`0 3px 1px -2px rgba(0, 0, 0, 0.2), 0 2px 2px 0 rgba(0, 0, 0, 0.14), 0 1px 5px 0 rgba(0, 0, 0, 0.12)`}},oDt={root:{background:`{content.background}`,borderColor:`{content.border.color}`,color:`{content.color}`,transitionDuration:`{transition.duration}`},gutter:{background:`{content.border.color}`},handle:{size:`24px`,borderRadius:`{content.border.radius}`,focusRing:{width:`{focus.ring.width}`,style:`{focus.ring.style}`,color:`{focus.ring.color}`,offset:`{focus.ring.offset}`,shadow:`{focus.ring.shadow}`}},colorScheme:{light:{handle:{background:`{surface.400}`}},dark:{handle:{background:`{surface.600}`}}}},sDt={root:{transitionDuration:`{transition.duration}`},separator:{background:`{content.border.color}`,activeBackground:`{primary.color}`,margin:`0 0 0 1.625rem`,size:`2px`},step:{padding:`0.5rem`,gap:`1rem`},stepHeader:{padding:`0`,borderRadius:`{content.border.radius}`,focusRing:{width:`{focus.ring.width}`,style:`{focus.ring.style}`,color:`{focus.ring.color}`,offset:`{focus.ring.offset}`,shadow:`{focus.ring.shadow}`},gap:`0.5rem`},stepTitle:{color:`{text.muted.color}`,activeColor:`{primary.color}`,fontWeight:`500`},stepNumber:{background:`{content.background}`,activeBackground:`{primary.color}`,borderColor:`{content.border.color}`,activeBorderColor:`{primary.color}`,color:`{text.muted.color}`,activeColor:`{primary.contrast.color}`,size:`2.25rem`,fontSize:`1.125rem`,fontWeight:`500`,borderRadius:`50%`,shadow:`none`},steppanels:{padding:`0.875rem 0.5rem 1.125rem 0.5rem`},steppanel:{background:`{content.background}`,color:`{content.color}`,padding:`0`,indent:`1rem`}},cDt={root:{transitionDuration:`{transition.duration}`},separator:{background:`{content.border.color}`},itemLink:{borderRadius:`{content.border.radius}`,focusRing:{width:`{focus.ring.width}`,style:`{focus.ring.style}`,color:`{focus.ring.color}`,offset:`{focus.ring.offset}`,shadow:`{focus.ring.shadow}`},gap:`0.5rem`},itemLabel:{color:`{text.muted.color}`,activeColor:`{primary.color}`,fontWeight:`500`},itemNumber:{background:`{content.background}`,activeBackground:`{primary.color}`,borderColor:`{content.border.color}`,activeBorderColor:`{primary.color}`,color:`{text.muted.color}`,activeColor:`{primary.contrast.color}`,size:`2.25rem`,fontSize:`1.125rem`,fontWeight:`500`,borderRadius:`50%`,shadow:`none`}},lDt={root:{transitionDuration:`{transition.duration}`},tablist:{borderWidth:`0`,background:`{content.background}`,borderColor:`{content.border.color}`},item:{borderWidth:`2px 0 0 0`,borderColor:`transparent`,hoverBorderColor:`transparent`,activeBorderColor:`{primary.color}`,color:`{text.muted.color}`,hoverColor:`{text.color}`,activeColor:`{primary.color}`,padding:`1rem 1.25rem`,fontWeight:`600`,margin:`0`,gap:`0.5rem`,focusRing:{width:`{focus.ring.width}`,style:`{focus.ring.style}`,color:`{focus.ring.color}`,offset:`{focus.ring.offset}`,shadow:`{focus.ring.shadow}`}},itemIcon:{color:`{text.muted.color}`,hoverColor:`{text.color}`,activeColor:`{primary.color}`},activeBar:{height:`0`,bottom:`0`,background:`transparent`},colorScheme:{light:{item:{background:`{surface.50}`,hoverBackground:`{surface.100}`,activeBackground:`{surface.0}`}},dark:{item:{background:`{surface.800}`,hoverBackground:`{surface.700}`,activeBackground:`{surface.900}`}}}},uDt={root:{transitionDuration:`{transition.duration}`},tablist:{borderWidth:`0`,background:`{content.background}`,borderColor:`{content.border.color}`},tab:{borderWidth:`2px 0 0 0`,borderColor:`transparent`,hoverBorderColor:`transparent`,activeBorderColor:`{primary.color}`,color:`{text.muted.color}`,hoverColor:`{text.color}`,activeColor:`{primary.color}`,padding:`1rem 1.25rem`,fontWeight:`700`,margin:`0`,gap:`0.5rem`,focusRing:{width:`{focus.ring.width}`,style:`{focus.ring.style}`,color:`{focus.ring.color}`,offset:`{focus.ring.offset}`,shadow:`inset {focus.ring.shadow}`}},tabpanel:{background:`{content.background}`,color:`{content.color}`,padding:`0.875rem 1.125rem 1.125rem 1.125rem`,focusRing:{width:`{focus.ring.width}`,style:`{focus.ring.style}`,color:`{focus.ring.color}`,offset:`{focus.ring.offset}`,shadow:`inset {focus.ring.shadow}`}},navButton:{background:`{content.background}`,color:`{text.muted.color}`,hoverColor:`{text.color}`,width:`2.5rem`,focusRing:{width:`{focus.ring.width}`,style:`{focus.ring.style}`,color:`{focus.ring.color}`,offset:`{focus.ring.offset}`,shadow:`inset {focus.ring.shadow}`}},activeBar:{height:`0`,bottom:`0`,background:`transparent`},colorScheme:{light:{navButton:{shadow:`0px 0px 10px 50px rgba(255, 255, 255, 0.6)`},tab:{background:`{surface.50}`,hoverBackground:`{surface.100}`,activeBackground:`{surface.0}`}},dark:{navButton:{shadow:`0px 0px 10px 50px color-mix(in srgb, {content.background}, transparent 50%)`},tab:{background:`{surface.800}`,hoverBackground:`{surface.700}`,activeBackground:`{surface.900}`}}}},dDt={root:{transitionDuration:`{transition.duration}`},tabList:{background:`{content.background}`,borderColor:`{content.border.color}`},tab:{borderColor:`{content.border.color}`,activeBorderColor:`{primary.color}`,color:`{text.muted.color}`,hoverColor:`{text.color}`,activeColor:`{primary.color}`},tabPanel:{background:`{content.background}`,color:`{content.color}`},navButton:{background:`{content.background}`,color:`{text.muted.color}`,hoverColor:`{text.color}`},colorScheme:{light:{navButton:{shadow:`0px 0px 10px 50px rgba(255, 255, 255, 0.6)`}},dark:{navButton:{shadow:`0px 0px 10px 50px color-mix(in srgb, {content.background}, transparent 50%)`}}}},fDt={root:{fontSize:`0.875rem`,fontWeight:`700`,padding:`0.25rem 0.5rem`,gap:`0.25rem`,borderRadius:`{content.border.radius}`,roundedBorderRadius:`{border.radius.xl}`},icon:{size:`0.75rem`},colorScheme:{light:{primary:{background:`{primary.color}`,color:`{primary.contrast.color}`},secondary:{background:`{surface.100}`,color:`{surface.600}`},success:{background:`{green.500}`,color:`{surface.0}`},info:{background:`{sky.500}`,color:`{surface.0}`},warn:{background:`{orange.500}`,color:`{surface.0}`},danger:{background:`{red.500}`,color:`{surface.0}`},contrast:{background:`{surface.950}`,color:`{surface.0}`}},dark:{primary:{background:`{primary.color}`,color:`{primary.contrast.color}`},secondary:{background:`{surface.800}`,color:`{surface.300}`},success:{background:`{green.400}`,color:`{green.950}`},info:{background:`{sky.400}`,color:`{sky.950}`},warn:{background:`{orange.400}`,color:`{orange.950}`},danger:{background:`{red.400}`,color:`{red.950}`},contrast:{background:`{surface.0}`,color:`{surface.950}`}}}},pDt={root:{background:`{form.field.background}`,borderColor:`{form.field.border.color}`,color:`{form.field.color}`,height:`18rem`,padding:`{form.field.padding.y} {form.field.padding.x}`,borderRadius:`{form.field.border.radius}`},prompt:{gap:`0.25rem`},commandResponse:{margin:`2px 0`}},mDt={root:{background:`{form.field.background}`,disabledBackground:`{form.field.disabled.background}`,filledBackground:`{form.field.filled.background}`,filledHoverBackground:`{form.field.filled.hover.background}`,filledFocusBackground:`{form.field.filled.focus.background}`,borderColor:`{form.field.border.color}`,hoverBorderColor:`{form.field.hover.border.color}`,focusBorderColor:`{form.field.focus.border.color}`,invalidBorderColor:`{form.field.invalid.border.color}`,color:`{form.field.color}`,disabledColor:`{form.field.disabled.color}`,placeholderColor:`{form.field.placeholder.color}`,invalidPlaceholderColor:`{form.field.invalid.placeholder.color}`,shadow:`{form.field.shadow}`,paddingX:`{form.field.padding.x}`,paddingY:`{form.field.padding.y}`,borderRadius:`{form.field.border.radius}`,focusRing:{width:`{form.field.focus.ring.width}`,style:`{form.field.focus.ring.style}`,color:`{form.field.focus.ring.color}`,offset:`{form.field.focus.ring.offset}`,shadow:`{form.field.focus.ring.shadow}`},transitionDuration:`{form.field.transition.duration}`,sm:{fontSize:`{form.field.sm.font.size}`,paddingX:`{form.field.sm.padding.x}`,paddingY:`{form.field.sm.padding.y}`},lg:{fontSize:`{form.field.lg.font.size}`,paddingX:`{form.field.lg.padding.x}`,paddingY:`{form.field.lg.padding.y}`}}},hDt={root:{background:`{content.background}`,borderColor:`{content.border.color}`,color:`{content.color}`,borderRadius:`{content.border.radius}`,shadow:`{overlay.navigation.shadow}`,transitionDuration:`{transition.duration}`},list:{padding:`{navigation.list.padding}`,gap:`{navigation.list.gap}`},item:{focusBackground:`{navigation.item.focus.background}`,activeBackground:`{navigation.item.active.background}`,color:`{navigation.item.color}`,focusColor:`{navigation.item.focus.color}`,activeColor:`{navigation.item.active.color}`,padding:`{navigation.item.padding}`,borderRadius:`{navigation.item.border.radius}`,gap:`{navigation.item.gap}`,icon:{color:`{navigation.item.icon.color}`,focusColor:`{navigation.item.icon.focus.color}`,activeColor:`{navigation.item.icon.active.color}`}},submenu:{mobileIndent:`1.25rem`},submenuIcon:{size:`{navigation.submenu.icon.size}`,color:`{navigation.submenu.icon.color}`,focusColor:`{navigation.submenu.icon.focus.color}`,activeColor:`{navigation.submenu.icon.active.color}`},separator:{borderColor:`{content.border.color}`}},gDt={event:{minHeight:`5rem`},horizontal:{eventContent:{padding:`1rem 0`}},vertical:{eventContent:{padding:`0 1rem`}},eventMarker:{size:`1.125rem`,borderRadius:`50%`,borderWidth:`2px`,background:`{content.background}`,borderColor:`{primary.color}`,content:{borderRadius:`50%`,size:`0.375rem`,background:`transparent`,insetShadow:`none`}},eventConnector:{color:`{content.border.color}`,size:`2px`}},_Dt={root:{width:`25rem`,borderRadius:`{content.border.radius}`,borderWidth:`0 0 0 6px`,transitionDuration:`{transition.duration}`},icon:{size:`1.25rem`},content:{padding:`{overlay.popover.padding}`,gap:`0.5rem`},text:{gap:`0.5rem`},summary:{fontWeight:`500`,fontSize:`1rem`},detail:{fontWeight:`500`,fontSize:`0.875rem`},closeButton:{width:`2rem`,height:`2rem`,borderRadius:`50%`,focusRing:{width:`{focus.ring.width}`,style:`{focus.ring.style}`,offset:`{focus.ring.offset}`}},closeIcon:{size:`1rem`},colorScheme:{light:{root:{blur:`1.5px`},info:{background:`color-mix(in srgb, {blue.50}, transparent 5%)`,borderColor:`{blue.500}`,color:`{blue.600}`,detailColor:`{surface.700}`,shadow:`{overlay.popover.shadow}`,closeButton:{hoverBackground:`{blue.100}`,focusRing:{color:`{focus.ring.color}`,shadow:`0 0 0 0.2rem {blue.200}`}}},success:{background:`color-mix(in srgb, {green.50}, transparent 5%)`,borderColor:`{green.500}`,color:`{green.600}`,detailColor:`{surface.700}`,shadow:`{overlay.popover.shadow}`,closeButton:{hoverBackground:`{green.100}`,focusRing:{color:`{focus.ring.color}`,shadow:`0 0 0 0.2rem {green.200}`}}},warn:{background:`color-mix(in srgb,{yellow.50}, transparent 5%)`,borderColor:`{yellow.500}`,color:`{yellow.600}`,detailColor:`{surface.700}`,shadow:`{overlay.popover.shadow}`,closeButton:{hoverBackground:`{yellow.100}`,focusRing:{color:`{focus.ring.color}`,shadow:`0 0 0 0.2rem {yellow.200}`}}},error:{background:`color-mix(in srgb, {red.50}, transparent 5%)`,borderColor:`{red.500}`,color:`{red.600}`,detailColor:`{surface.700}`,shadow:`{overlay.popover.shadow}`,closeButton:{hoverBackground:`{red.100}`,focusRing:{color:`{focus.ring.color}`,shadow:`0 0 0 0.2rem {red.200}`}}},secondary:{background:`{surface.100}`,borderColor:`{surface.500}`,color:`{surface.600}`,detailColor:`{surface.700}`,shadow:`{overlay.popover.shadow}`,closeButton:{hoverBackground:`{surface.200}`,focusRing:{color:`{focus.ring.color}`,shadow:`0 0 0 0.2rem {surface.200}`}}},contrast:{background:`{surface.900}`,borderColor:`{primary.color}`,color:`{surface.50}`,detailColor:`{surface.0}`,shadow:`{overlay.popover.shadow}`,closeButton:{hoverBackground:`{surface.800}`,focusRing:{color:`{focus.ring.color}`,shadow:`0 0 0 0.2rem {surface.400}`}}}},dark:{root:{blur:`10px`},info:{background:`color-mix(in srgb, {blue.500}, transparent 84%)`,borderColor:`color-mix(in srgb, {blue.700}, transparent 64%)`,color:`{blue.500}`,detailColor:`{surface.0}`,shadow:`{overlay.popover.shadow}`,closeButton:{hoverBackground:`rgba(255, 255, 255, 0.05)`,focusRing:{color:`{focus.ring.color}`,shadow:`0 0 0 0.2rem color-mix(in srgb, {blue.500}, transparent 80%)`}}},success:{background:`color-mix(in srgb, {green.500}, transparent 84%)`,borderColor:`color-mix(in srgb, {green.700}, transparent 64%)`,color:`{green.500}`,detailColor:`{surface.0}`,shadow:`{overlay.popover.shadow}`,closeButton:{hoverBackground:`rgba(255, 255, 255, 0.05)`,focusRing:{color:`{focus.ring.color}`,shadow:`0 0 0 0.2rem color-mix(in srgb, {green.500}, transparent 80%)`}}},warn:{background:`color-mix(in srgb, {yellow.500}, transparent 84%)`,borderColor:`color-mix(in srgb, {yellow.700}, transparent 64%)`,color:`{yellow.500}`,detailColor:`{surface.0}`,shadow:`{overlay.popover.shadow}`,closeButton:{hoverBackground:`rgba(255, 255, 255, 0.05)`,focusRing:{color:`{focus.ring.color}`,shadow:`0 0 0 0.2rem color-mix(in srgb, {yellow.500}, transparent 80%)`}}},error:{background:`color-mix(in srgb, {red.500}, transparent 84%)`,borderColor:`color-mix(in srgb, {red.700}, transparent 64%)`,color:`{red.500}`,detailColor:`{surface.0}`,shadow:`{overlay.popover.shadow}`,closeButton:{hoverBackground:`rgba(255, 255, 255, 0.05)`,focusRing:{color:`{focus.ring.color}`,shadow:`0 0 0 0.2rem color-mix(in srgb, {red.500}, transparent 80%)`}}},secondary:{background:`{surface.800}`,borderColor:`{surface.700}`,color:`{surface.300}`,detailColor:`{surface.0}`,shadow:`{overlay.popover.shadow}`,closeButton:{hoverBackground:`{surface.700}`,focusRing:{color:`{focus.ring.color}`,shadow:`0 0 0 0.2rem color-mix(in srgb, {surface.300}, transparent 80%)`}}},contrast:{background:`{surface.0}`,borderColor:`{surface.100}`,color:`{surface.950}`,detailColor:`{surface.950}`,shadow:`{overlay.popover.shadow}`,closeButton:{hoverBackground:`{surface.100}`,focusRing:{color:`{focus.ring.color}`,shadow:`0 0 0 0.2rem color-mix(in srgb, {surface.950}, transparent 80%)`}}}}}},vDt={root:{padding:`0.625rem 1rem`,borderRadius:`{content.border.radius}`,gap:`0.5rem`,fontWeight:`500`,background:`{form.field.background}`,borderColor:`{form.field.border.color}`,color:`{form.field.color}`,hoverColor:`{form.field.color}`,checkedBackground:`{highlight.background}`,checkedColor:`{highlight.color}`,checkedBorderColor:`{form.field.border.color}`,disabledBackground:`{form.field.disabled.background}`,disabledBorderColor:`{form.field.disabled.background}`,disabledColor:`{form.field.disabled.color}`,invalidBorderColor:`{form.field.invalid.border.color}`,focusRing:{width:`{form.field.focus.ring.width}`,style:`{form.field.focus.ring.style}`,color:`{form.field.focus.ring.color}`,offset:`{form.field.focus.ring.offset}`,shadow:`{form.field.focus.ring.shadow}`},transitionDuration:`{form.field.transition.duration}`,sm:{fontSize:`{form.field.sm.font.size}`,padding:`0.5rem 0.75rem`},lg:{fontSize:`{form.field.lg.font.size}`,padding:`0.75rem 1.25rem`}},icon:{color:`{text.muted.color}`,hoverColor:`{text.muted.color}`,checkedColor:`{highlight.color}`,disabledColor:`{form.field.disabled.color}`},content:{checkedBackground:`transparent`,checkedShadow:`none`,padding:`0`,borderRadius:`0`,sm:{padding:`0`},lg:{padding:`0`}},colorScheme:{light:{root:{hoverBackground:`{surface.100}`}},dark:{root:{hoverBackground:`{surface.800}`}}}},yDt={root:{width:`3rem`,height:`1.75rem`,borderRadius:`30px`,gap:`0.25rem`,shadow:`{form.field.shadow}`,focusRing:{width:`{form.field.focus.ring.width}`,style:`{form.field.focus.ring.style}`,color:`{form.field.focus.ring.color}`,offset:`{form.field.focus.ring.offset}`,shadow:`{form.field.focus.ring.shadow}`},borderWidth:`1px`,borderColor:`transparent`,hoverBorderColor:`transparent`,checkedBorderColor:`transparent`,checkedHoverBorderColor:`transparent`,invalidBorderColor:`{form.field.invalid.border.color}`,transitionDuration:`{form.field.transition.duration}`,slideDuration:`0.2s`},handle:{borderRadius:`50%`,size:`1.25rem`},colorScheme:{light:{root:{background:`{surface.300}`,disabledBackground:`{form.field.disabled.background}`,hoverBackground:`{surface.400}`,checkedBackground:`{primary.color}`,checkedHoverBackground:`{primary.hover.color}`},handle:{background:`{surface.0}`,disabledBackground:`{form.field.disabled.color}`,hoverBackground:`{surface.0}`,checkedBackground:`{surface.0}`,checkedHoverBackground:`{surface.0}`,color:`{text.muted.color}`,hoverColor:`{text.color}`,checkedColor:`{primary.color}`,checkedHoverColor:`{primary.hover.color}`}},dark:{root:{background:`{surface.700}`,disabledBackground:`{surface.600}`,hoverBackground:`{surface.600}`,checkedBackground:`{primary.color}`,checkedHoverBackground:`{primary.hover.color}`},handle:{background:`{surface.400}`,disabledBackground:`{surface.900}`,hoverBackground:`{surface.300}`,checkedBackground:`{surface.900}`,checkedHoverBackground:`{surface.900}`,color:`{surface.900}`,hoverColor:`{surface.800}`,checkedColor:`{primary.color}`,checkedHoverColor:`{primary.hover.color}`}}}},bDt={root:{background:`{content.background}`,borderColor:`{content.border.color}`,borderRadius:`{content.border.radius}`,color:`{content.color}`,gap:`0.5rem`,padding:`0.75rem`},colorScheme:{light:{root:{background:`{surface.50}`,color:`{content.color}`}},dark:{root:{background:`{surface.800}`,color:`{content.color}`}}}},xDt={root:{maxWidth:`12.5rem`,gutter:`0.25rem`,shadow:`{overlay.popover.shadow}`,padding:`0.625rem 0.75rem`,borderRadius:`{overlay.popover.border.radius}`},colorScheme:{light:{root:{background:`{surface.700}`,color:`{surface.0}`}},dark:{root:{background:`{surface.700}`,color:`{surface.0}`}}}},SDt={root:{background:`{content.background}`,color:`{content.color}`,padding:`1rem`,gap:`2px`,indent:`1rem`,transitionDuration:`{transition.duration}`},node:{padding:`0.375rem 0.625rem`,borderRadius:`{content.border.radius}`,hoverBackground:`{content.hover.background}`,selectedBackground:`{highlight.background}`,color:`{text.color}`,hoverColor:`{text.hover.color}`,selectedColor:`{highlight.color}`,focusRing:{width:`{focus.ring.width}`,style:`{focus.ring.style}`,color:`{focus.ring.color}`,offset:`{focus.ring.offset}`,shadow:`inset {focus.ring.shadow}`},gap:`0.25rem`},nodeIcon:{color:`{text.muted.color}`,hoverColor:`{text.hover.muted.color}`,selectedColor:`{highlight.color}`},nodeToggleButton:{borderRadius:`50%`,size:`1.75rem`,hoverBackground:`{content.hover.background}`,selectedHoverBackground:`{content.background}`,color:`{text.muted.color}`,hoverColor:`{text.hover.muted.color}`,selectedHoverColor:`{primary.color}`,focusRing:{width:`{focus.ring.width}`,style:`{focus.ring.style}`,color:`{focus.ring.color}`,offset:`{focus.ring.offset}`,shadow:`{focus.ring.shadow}`}},loadingIcon:{size:`2rem`},filter:{margin:`0 0 0.5rem 0`}},CDt={root:{background:`{form.field.background}`,disabledBackground:`{form.field.disabled.background}`,filledBackground:`{form.field.filled.background}`,filledHoverBackground:`{form.field.filled.hover.background}`,filledFocusBackground:`{form.field.filled.focus.background}`,borderColor:`{form.field.border.color}`,hoverBorderColor:`{form.field.hover.border.color}`,focusBorderColor:`{form.field.focus.border.color}`,invalidBorderColor:`{form.field.invalid.border.color}`,color:`{form.field.color}`,disabledColor:`{form.field.disabled.color}`,placeholderColor:`{form.field.placeholder.color}`,invalidPlaceholderColor:`{form.field.invalid.placeholder.color}`,shadow:`{form.field.shadow}`,paddingX:`{form.field.padding.x}`,paddingY:`{form.field.padding.y}`,borderRadius:`{form.field.border.radius}`,focusRing:{width:`{form.field.focus.ring.width}`,style:`{form.field.focus.ring.style}`,color:`{form.field.focus.ring.color}`,offset:`{form.field.focus.ring.offset}`,shadow:`{form.field.focus.ring.shadow}`},transitionDuration:`{form.field.transition.duration}`,sm:{fontSize:`{form.field.sm.font.size}`,paddingX:`{form.field.sm.padding.x}`,paddingY:`{form.field.sm.padding.y}`},lg:{fontSize:`{form.field.lg.font.size}`,paddingX:`{form.field.lg.padding.x}`,paddingY:`{form.field.lg.padding.y}`}},dropdown:{width:`2.5rem`,color:`{form.field.icon.color}`},overlay:{background:`{overlay.select.background}`,borderColor:`{overlay.select.border.color}`,borderRadius:`{overlay.select.border.radius}`,color:`{overlay.select.color}`,shadow:`{overlay.select.shadow}`},tree:{padding:`{list.padding}`},emptyMessage:{padding:`{list.option.padding}`},chip:{borderRadius:`{border.radius.sm}`},clearIcon:{color:`{form.field.icon.color}`}},wDt={root:{transitionDuration:`{transition.duration}`},header:{borderColor:`{treetable.border.color}`,borderWidth:`1px 0 1px 0`,padding:`0.75rem 1rem`},headerCell:{selectedBackground:`{highlight.background}`,borderColor:`{treetable.border.color}`,hoverColor:`{content.hover.color}`,selectedColor:`{highlight.color}`,gap:`0.5rem`,padding:`0.75rem 1rem`,focusRing:{width:`{focus.ring.width}`,style:`{focus.ring.style}`,color:`{focus.ring.color}`,offset:`{focus.ring.offset}`,shadow:`inset {focus.ring.shadow}`}},columnTitle:{fontWeight:`700`},row:{background:`{content.background}`,hoverBackground:`{content.hover.background}`,selectedBackground:`{highlight.background}`,color:`{content.color}`,hoverColor:`{sr.hover.color}`,selectedColor:`{highlight.color}`,focusRing:{width:`{focus.ring.width}`,style:`{focus.ring.style}`,color:`{focus.ring.color}`,offset:`{focus.ring.offset}`,shadow:`inset {focus.ring.shadow}`}},bodyCell:{borderColor:`{treetable.border.color}`,padding:`0.75rem 1rem`,gap:`0.5rem`},footerCell:{borderColor:`{treetable.border.color}`,padding:`0.75rem 1rem`},columnFooter:{fontWeight:`700`},footer:{borderColor:`{treetable.border.color}`,borderWidth:`0 0 1px 0`,padding:`0.75rem 1rem`},columnResizer:{width:`0.5rem`},resizeIndicator:{width:`1px`,color:`{primary.color}`},sortIcon:{color:`{text.muted.color}`,hoverColor:`{text.hover.muted.color}`,size:`0.875rem`},loadingIcon:{size:`2rem`},nodeToggleButton:{hoverBackground:`{content.hover.background}`,selectedHoverBackground:`{content.background}`,color:`{text.muted.color}`,hoverColor:`{text.color}`,selectedHoverColor:`{primary.color}`,size:`1.75rem`,borderRadius:`50%`,focusRing:{width:`{focus.ring.width}`,style:`{focus.ring.style}`,color:`{focus.ring.color}`,offset:`{focus.ring.offset}`,shadow:`{focus.ring.shadow}`}},paginatorTop:{borderColor:`{content.border.color}`,borderWidth:`0 0 1px 0`},paginatorBottom:{borderColor:`{content.border.color}`,borderWidth:`0 0 1px 0`},colorScheme:{light:{root:{borderColor:`{content.border.color}`},header:{background:`{surface.50}`,color:`{text.color}`},headerCell:{background:`{surface.50}`,hoverBackground:`{surface.100}`,color:`{text.color}`},footer:{background:`{surface.50}`,color:`{text.color}`},footerCell:{background:`{surface.50}`,color:`{text.color}`},bodyCell:{selectedBorderColor:`{primary.100}`}},dark:{root:{borderColor:`{surface.800}`},header:{background:`{surface.800}`,color:`{text.color}`},headerCell:{background:`{surface.800}`,hoverBackground:`{surface.700}`,color:`{text.color}`},footer:{background:`{surface.800}`,color:`{text.color}`},footerCell:{background:`{surface.800}`,color:`{text.color}`},bodyCell:{selectedBorderColor:`{primary.900}`}}}},TDt={loader:{mask:{background:`{content.background}`,color:`{text.muted.color}`},icon:{size:`2rem`}}};function X9(e){"@babel/helpers - typeof";return X9=typeof Symbol==`function`&&typeof Symbol.iterator==`symbol`?function(e){return typeof e}:function(e){return e&&typeof Symbol==`function`&&e.constructor===Symbol&&e!==Symbol.prototype?`symbol`:typeof e},X9(e)}function EDt(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function DDt(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]==null?{}:arguments[t];t%2?EDt(Object(n),!0).forEach(function(t){ODt(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):EDt(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function ODt(e,t,n){return(t=kDt(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function kDt(e){var t=ADt(e,`string`);return X9(t)==`symbol`?t:t+``}function ADt(e,t){if(X9(e)!=`object`||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(X9(r)!=`object`)return r;throw TypeError(`@@toPrimitive must return a primitive value.`)}return(t===`string`?String:Number)(e)}var jDt=DDt(DDt({},YTt),{},{components:{accordion:GTt,autocomplete:KTt,avatar:qTt,badge:JTt,blockui:XTt,breadcrumb:ZTt,button:QTt,datepicker:uEt,card:$Tt,carousel:eEt,cascadeselect:tEt,checkbox:nEt,chip:rEt,colorpicker:iEt,confirmdialog:aEt,confirmpopup:oEt,contextmenu:sEt,dataview:lEt,datatable:cEt,dialog:dEt,divider:fEt,dock:pEt,drawer:mEt,editor:hEt,fieldset:gEt,fileupload:_Et,iftalabel:xEt,floatlabel:vEt,galleria:yEt,iconfield:bEt,image:SEt,imagecompare:CEt,inlinemessage:wEt,inplace:TEt,inputchips:EEt,inputgroup:DEt,inputnumber:OEt,inputotp:kEt,inputtext:AEt,knob:jEt,listbox:MEt,megamenu:NEt,menu:PEt,menubar:FEt,message:IEt,metergroup:LEt,multiselect:REt,orderlist:zEt,organizationchart:BEt,overlaybadge:VEt,popover:qEt,paginator:HEt,password:GEt,panel:UEt,panelmenu:WEt,picklist:KEt,progressbar:JEt,progressspinner:YEt,radiobutton:XEt,rating:ZEt,ripple:QEt,scrollpanel:$Et,select:eDt,selectbutton:tDt,skeleton:nDt,slider:rDt,speeddial:iDt,splitter:oDt,splitbutton:aDt,stepper:sDt,steps:cDt,tabmenu:lDt,tabs:uDt,tabview:dDt,textarea:mDt,tieredmenu:hDt,tag:fDt,terminal:pDt,timeline:gDt,togglebutton:vDt,toggleswitch:yDt,tree:SDt,treeselect:CDt,treetable:wDt,toast:_Dt,toolbar:bDt,tooltip:xDt,virtualscroller:TDt}}),MDt={root:{transitionDuration:`{transition.duration}`},panel:{borderWidth:`0`,borderColor:`{content.border.color}`},header:{color:`{text.color}`,hoverColor:`{text.color}`,activeColor:`{text.color}`,activeHoverColor:`{text.color}`,padding:`1.25rem`,fontWeight:`600`,borderRadius:`0`,borderWidth:`0`,borderColor:`{content.border.color}`,background:`{content.background}`,hoverBackground:`{content.hover.background}`,activeBackground:`{content.background}`,activeHoverBackground:`{content.background}`,focusRing:{width:`0`,style:`none`,color:`unset`,offset:`0`,shadow:`none`},toggleIcon:{color:`{text.muted.color}`,hoverColor:`{text.muted.color}`,activeColor:`{text.muted.color}`,activeHoverColor:`{text.muted.color}`},first:{topBorderRadius:`{content.border.radius}`,borderWidth:`0`},last:{bottomBorderRadius:`{content.border.radius}`,activeBottomBorderRadius:`0`}},content:{borderWidth:`0`,borderColor:`{content.border.color}`,background:`{content.background}`,color:`{text.color}`,padding:`0 1.25rem 1.25rem 1.25rem`},css:`
|
|
3413
|
+
It is recommended to remove them from the file. This can be configured via \`editor.unusualLineTerminators\`.`,hH(e.uri)),primaryButton:F({key:`unusualLineTerminators.fix`,comment:[`&& denotes a mnemonic`]},`&&Remove Unusual Line Terminators`),cancelButton:F(`unusualLineTerminators.ignore`,`Ignore`)})}finally{this._isPresentingDialog=!1}if(!t.confirmed){rCt(this._codeEditorService,e,!0);return}e.removeUnusualLineTerminators(this._editor.getSelections())}};n9=eCt([tCt(1,HR),tCt(2,kN)],n9),YP(n9.ID,n9,1);var aCt=function(e,t,n,r){var i=arguments.length,a=i<3?t:r===null?r=Object.getOwnPropertyDescriptor(t,n):r,o;if(typeof Reflect==`object`&&typeof Reflect.decorate==`function`)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},oCt=function(e,t){return function(n,r){t(n,r,e)}},sCt=class{constructor(){this.selector={language:`*`}}provideDocumentHighlights(e,t,n){let r=[],i=e.getWordAtPosition({lineNumber:t.lineNumber,column:t.column});if(!i)return Promise.resolve(r);if(!e.isDisposed())return e.findMatches(i.word,!0,!1,!0,fE,!1).map(e=>({range:e.range,kind:AO.Text}))}provideMultiDocumentHighlights(e,t,n,r){let i=new II,a=e.getWordAtPosition({lineNumber:t.lineNumber,column:t.column});if(!a)return Promise.resolve(i);for(let t of[e,...n]){if(t.isDisposed())continue;let e=t.findMatches(a.word,!0,!1,!0,fE,!1).map(e=>({range:e.range,kind:AO.Text}));e&&i.set(t.uri,e)}return i}},r9=class extends R{constructor(e){super(),this._register(e.documentHighlightProvider.register(`*`,new sCt)),this._register(e.multiDocumentHighlightProvider.register(`*`,new sCt))}};r9=aCt([oCt(0,hR)],r9);var cCt=function(e,t,n,r){var i=arguments.length,a=i<3?t:r===null?r=Object.getOwnPropertyDescriptor(t,n):r,o;if(typeof Reflect==`object`&&typeof Reflect.decorate==`function`)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},i9=function(e,t){return function(n,r){t(n,r,e)}},a9,o9,s9=new lP(`hasWordHighlights`,!1);function lCt(e,t,n,r){return QA(e.ordered(t).map(e=>()=>Promise.resolve(e.provideDocumentHighlights(t,n,r)).then(void 0,JE)),e=>e!=null).then(e=>{if(e){let n=new II;return n.set(t.uri,e),n}return new II})}function uCt(e,t,n,r,i,a){return QA(e.ordered(t).map(e=>()=>{let r=a.filter(e=>qI(e)).filter(t=>Bz(e.selector,t.uri,t.getLanguageId(),!0,void 0,void 0)>0);return Promise.resolve(e.provideMultiDocumentHighlights(t,n,r,i)).then(void 0,JE)}),e=>e!=null)}var dCt=class{constructor(e,t,n){this._model=e,this._selection=t,this._wordSeparators=n,this._wordRange=this._getCurrentWordRange(e,t),this._result=null}get result(){return this._result||=KA(e=>this._compute(this._model,this._selection,this._wordSeparators,e)),this._result}_getCurrentWordRange(e,t){let n=e.getWordAtPosition(t.getPosition());return n?new H(t.startLineNumber,n.startColumn,t.startLineNumber,n.endColumn):null}isValid(e,t,n){let r=t.startLineNumber,i=t.startColumn,a=t.endColumn,o=this._getCurrentWordRange(e,t),s=!!(this._wordRange&&this._wordRange.equalsRange(o));for(let e=0,t=n.length;!s&&e<t;e++){let t=n.getRange(e);t&&t.startLineNumber===r&&t.startColumn<=i&&t.endColumn>=a&&(s=!0)}return s}cancel(){this.result.cancel()}},fCt=class extends dCt{constructor(e,t,n,r){super(e,t,n),this._providers=r}_compute(e,t,n,r){return lCt(this._providers,e,t.getPosition(),r).then(e=>e||new II)}},pCt=class extends dCt{constructor(e,t,n,r,i){super(e,t,n),this._providers=r,this._otherModels=i}_compute(e,t,n,r){return uCt(this._providers,e,t.getPosition(),n,r,this._otherModels).then(e=>e||new II)}};function mCt(e,t,n,r,i){return new fCt(t,n,i,e)}function hCt(e,t,n,r,i,a){return new pCt(t,n,i,e,a)}KP(`_executeDocumentHighlights`,async(e,t,n)=>(await lCt(e.get(hR).documentHighlightProvider,t,n,wD.None))?.get(t.uri));var c9=class{static#e=a9=this;static#t=this.storedDecorationIDs=new II;static#n=this.query=null;constructor(e,t,n,r,i){this.toUnhook=new L,this.workerRequestTokenId=0,this.workerRequestCompleted=!1,this.workerRequestValue=new II,this.lastCursorPositionChangeTime=0,this.renderDecorationsTimer=-1,this.runDelayer=this.toUnhook.add(new JA(50)),this.editor=e,this.providers=t,this.multiDocumentProviders=n,this.codeEditorService=i,this._hasWordHighlights=s9.bindTo(r),this._ignorePositionChangeEvent=!1,this.occurrencesHighlight=this.editor.getOption(81),this.model=this.editor.getModel(),this.toUnhook.add(e.onDidChangeCursorPosition(e=>{this._ignorePositionChangeEvent||this.occurrencesHighlight!==`off`&&this.runDelayer.trigger(()=>{this._onPositionChanged(e)})})),this.toUnhook.add(e.onDidFocusEditorText(e=>{this.occurrencesHighlight!==`off`&&(this.workerRequest||this.runDelayer.trigger(()=>{this._run()}))})),this.toUnhook.add(e.onDidChangeModelContent(e=>{Jj(this.model.uri,`output`)||this._stopAll()})),this.toUnhook.add(e.onDidChangeModel(e=>{!e.newModelUrl&&e.oldModelUrl?this._stopSingular():a9.query&&this._run()})),this.toUnhook.add(e.onDidChangeConfiguration(e=>{let t=this.editor.getOption(81);if(this.occurrencesHighlight!==t)switch(this.occurrencesHighlight=t,t){case`off`:this._stopAll();break;case`singleFile`:this._stopAll(a9.query?.modelInfo?.model);break;case`multiFile`:a9.query&&this._run(!0);break;default:console.warn(`Unknown occurrencesHighlight setting value:`,t);break}})),this.decorations=this.editor.createDecorationsCollection(),this.workerRequestTokenId=0,this.workerRequest=null,this.workerRequestCompleted=!1,this.lastCursorPositionChangeTime=0,this.renderDecorationsTimer=-1,a9.query&&this._run()}hasDecorations(){return this.decorations.length>0}restore(){this.occurrencesHighlight!==`off`&&(this.runDelayer.cancel(),this._run())}_getSortedHighlights(){return this.decorations.getRanges().sort(H.compareRangesUsingStarts)}moveNext(){let e=this._getSortedHighlights(),t=(e.findIndex(e=>e.containsPosition(this.editor.getPosition()))+1)%e.length,n=e[t];try{this._ignorePositionChangeEvent=!0,this.editor.setPosition(n.getStartPosition()),this.editor.revealRangeInCenterIfOutsideViewport(n);let r=this._getWord();r&&YH(`${this.editor.getModel().getLineContent(n.startLineNumber)}, ${t+1} of ${e.length} for '${r.word}'`)}finally{this._ignorePositionChangeEvent=!1}}moveBack(){let e=this._getSortedHighlights(),t=(e.findIndex(e=>e.containsPosition(this.editor.getPosition()))-1+e.length)%e.length,n=e[t];try{this._ignorePositionChangeEvent=!0,this.editor.setPosition(n.getStartPosition()),this.editor.revealRangeInCenterIfOutsideViewport(n);let r=this._getWord();r&&YH(`${this.editor.getModel().getLineContent(n.startLineNumber)}, ${t+1} of ${e.length} for '${r.word}'`)}finally{this._ignorePositionChangeEvent=!1}}_removeSingleDecorations(){if(!this.editor.hasModel())return;let e=a9.storedDecorationIDs.get(this.editor.getModel().uri);e&&(this.editor.removeDecorations(e),a9.storedDecorationIDs.delete(this.editor.getModel().uri),this.decorations.length>0&&(this.decorations.clear(),this._hasWordHighlights.set(!1)))}_removeAllDecorations(e){let t=this.codeEditorService.listCodeEditors(),n=[];for(let r of t){if(!r.hasModel()||mH(r.getModel().uri,e?.uri))continue;let t=a9.storedDecorationIDs.get(r.getModel().uri);if(!t)continue;r.removeDecorations(t),n.push(r.getModel().uri);let i=l9.get(r);i?.wordHighlighter&&i.wordHighlighter.decorations.length>0&&(i.wordHighlighter.decorations.clear(),i.wordHighlighter.workerRequest=null,i.wordHighlighter._hasWordHighlights.set(!1))}for(let e of n)a9.storedDecorationIDs.delete(e)}_stopSingular(){this._removeSingleDecorations(),this.editor.hasTextFocus()&&(this.editor.getModel()?.uri.scheme!==qj.vscodeNotebookCell&&a9.query?.modelInfo?.model.uri.scheme!==qj.vscodeNotebookCell?(a9.query=null,this._run()):a9.query?.modelInfo&&(a9.query.modelInfo=null)),this.renderDecorationsTimer!==-1&&(clearTimeout(this.renderDecorationsTimer),this.renderDecorationsTimer=-1),this.workerRequest!==null&&(this.workerRequest.cancel(),this.workerRequest=null),this.workerRequestCompleted||=(this.workerRequestTokenId++,!0)}_stopAll(e){this._removeAllDecorations(e),this.renderDecorationsTimer!==-1&&(clearTimeout(this.renderDecorationsTimer),this.renderDecorationsTimer=-1),this.workerRequest!==null&&(this.workerRequest.cancel(),this.workerRequest=null),this.workerRequestCompleted||=(this.workerRequestTokenId++,!0)}_onPositionChanged(e){if(this.occurrencesHighlight===`off`){this._stopAll();return}if(e.reason!==3&&this.editor.getModel()?.uri.scheme!==qj.vscodeNotebookCell){this._stopAll();return}this._run()}_getWord(){let e=this.editor.getSelection(),t=e.startLineNumber,n=e.startColumn;return this.model.isDisposed()?null:this.model.getWordAtPosition({lineNumber:t,column:n})}getOtherModelsToHighlight(e){if(!e)return[];if(e.uri.scheme===qj.vscodeNotebookCell){let t=[],n=this.codeEditorService.listCodeEditors();for(let r of n){let n=r.getModel();n&&n!==e&&n.uri.scheme===qj.vscodeNotebookCell&&t.push(n)}return t}let t=[],n=this.codeEditorService.listCodeEditors();for(let r of n){if(!D1(r))continue;let n=r.getModel();n&&e===n.modified&&t.push(n.modified)}if(t.length)return t;if(this.occurrencesHighlight===`singleFile`)return[];for(let r of n){let n=r.getModel();n&&n!==e&&t.push(n)}return t}_run(e){let t;if(this.editor.hasTextFocus()){let e=this.editor.getSelection();if(!e||e.startLineNumber!==e.endLineNumber){a9.query=null,this._stopAll();return}let n=e.startColumn,r=e.endColumn,i=this._getWord();if(!i||i.startColumn>n||i.endColumn<r){a9.query=null,this._stopAll();return}t=this.workerRequest&&this.workerRequest.isValid(this.model,e,this.decorations),a9.query={modelInfo:{model:this.model,selection:e},word:i}}else if(!a9.query){this._stopAll();return}if(this.lastCursorPositionChangeTime=new Date().getTime(),t)this.workerRequestCompleted&&this.renderDecorationsTimer!==-1&&(clearTimeout(this.renderDecorationsTimer),this.renderDecorationsTimer=-1,this._beginRenderDecorations());else if(mH(this.editor.getModel().uri,a9.query.modelInfo?.model.uri)){if(!e){let e=this.decorations.getRanges();for(let t of e)if(t.containsPosition(this.editor.getPosition()))return}this._stopAll(e?this.model:void 0);let t=++this.workerRequestTokenId;this.workerRequestCompleted=!1;let n=this.getOtherModelsToHighlight(this.editor.getModel());if(!a9.query||!a9.query.modelInfo||a9.query.modelInfo.model.isDisposed())return;this.workerRequest=this.computeWithModel(a9.query.modelInfo.model,a9.query.modelInfo.selection,a9.query.word,n),this.workerRequest?.result.then(e=>{t===this.workerRequestTokenId&&(this.workerRequestCompleted=!0,this.workerRequestValue=e||[],this._beginRenderDecorations())},qE)}}computeWithModel(e,t,n,r){return r.length?hCt(this.multiDocumentProviders,e,t,n,this.editor.getOption(132),r):mCt(this.providers,e,t,n,this.editor.getOption(132))}_beginRenderDecorations(){let e=new Date().getTime(),t=this.lastCursorPositionChangeTime+250;e>=t?(this.renderDecorationsTimer=-1,this.renderDecorations()):this.renderDecorationsTimer=setTimeout(()=>{this.renderDecorations()},t-e)}renderDecorations(){this.renderDecorationsTimer=-1;let e=this.codeEditorService.listCodeEditors();for(let t of e){let e=l9.get(t);if(!e)continue;let n=[],r=t.getModel()?.uri;if(r&&this.workerRequestValue.has(r)){let i=a9.storedDecorationIDs.get(r),a=this.workerRequestValue.get(r);if(a)for(let e of a)e.range&&n.push({range:e.range,options:Cbt(e.kind)});let o=[];t.changeDecorations(e=>{o=e.deltaDecorations(i??[],n)}),a9.storedDecorationIDs=a9.storedDecorationIDs.set(r,o),n.length>0&&(e.wordHighlighter?.decorations.set(n),e.wordHighlighter?._hasWordHighlights.set(!0))}}}dispose(){this._stopSingular(),this.toUnhook.dispose()}};c9=a9=cCt([i9(4,kN)],c9);var l9=class extends R{static#e=o9=this;static#t=this.ID=`editor.contrib.wordHighlighter`;static get(e){return e.getContribution(o9.ID)}constructor(e,t,n,r){super(),this._wordHighlighter=null;let i=()=>{e.hasModel()&&!e.getModel().isTooLargeForTokenization()&&(this._wordHighlighter=new c9(e,n.documentHighlightProvider,n.multiDocumentHighlightProvider,t,r))};this._register(e.onDidChangeModel(e=>{this._wordHighlighter&&=(this._wordHighlighter.dispose(),null),i()})),i()}get wordHighlighter(){return this._wordHighlighter}saveViewState(){return!!(this._wordHighlighter&&this._wordHighlighter.hasDecorations())}moveNext(){this._wordHighlighter?.moveNext()}moveBack(){this._wordHighlighter?.moveBack()}restoreViewState(e){this._wordHighlighter&&e&&this._wordHighlighter.restore()}dispose(){this._wordHighlighter&&=(this._wordHighlighter.dispose(),null),super.dispose()}};l9=o9=cCt([i9(1,uP),i9(2,hR),i9(3,kN)],l9);var gCt=class extends UP{constructor(e,t){super(t),this._isNext=e}run(e,t){let n=l9.get(t);n&&(this._isNext?n.moveNext():n.moveBack())}},_Ct=class extends gCt{constructor(){super(!0,{id:`editor.action.wordHighlight.next`,label:F(`wordHighlight.next.label`,`Go to Next Symbol Highlight`),alias:`Go to Next Symbol Highlight`,precondition:s9,kbOpts:{kbExpr:$.editorTextFocus,primary:65,weight:100}})}},vCt=class extends gCt{constructor(){super(!1,{id:`editor.action.wordHighlight.prev`,label:F(`wordHighlight.previous.label`,`Go to Previous Symbol Highlight`),alias:`Go to Previous Symbol Highlight`,precondition:s9,kbOpts:{kbExpr:$.editorTextFocus,primary:1089,weight:100}})}},yCt=class extends UP{constructor(){super({id:`editor.action.wordHighlight.trigger`,label:F(`wordHighlight.trigger.label`,`Trigger Symbol Highlight`),alias:`Trigger Symbol Highlight`,precondition:void 0,kbOpts:{kbExpr:$.editorTextFocus,primary:0,weight:100}})}run(e,t,n){let r=l9.get(t);r&&r.restoreViewState(!0)}};YP(l9.ID,l9,0),X(_Ct),X(vCt),X(yCt),aX(r9);var u9=class extends HP{constructor(e){super(e),this._inSelectionMode=e.inSelectionMode,this._wordNavigationType=e.wordNavigationType}runEditorCommand(e,t,n){if(!t.hasModel())return;let r=BI(t.getOption(132),t.getOption(131)),i=t.getModel(),a=t.getSelections(),o=a.length>1,s=a.map(e=>{let t=new V(e.positionLineNumber,e.positionColumn),n=this._move(r,i,t,this._wordNavigationType,o);return this._moveTo(e,n,this._inSelectionMode)});if(i.pushStackElement(),t._getViewModel().setCursorStates(`moveWordCommand`,3,s.map(e=>MZ.fromModelSelection(e))),s.length===1){let e=new V(s[0].positionLineNumber,s[0].positionColumn);t.revealPosition(e,0)}}_moveTo(e,t,n){return n?new _O(e.selectionStartLineNumber,e.selectionStartColumn,t.lineNumber,t.column):new _O(t.lineNumber,t.column,t.lineNumber,t.column)}},d9=class extends u9{_move(e,t,n,r,i){return WZ.moveWordLeft(e,t,n,r,i)}},f9=class extends u9{_move(e,t,n,r,i){return WZ.moveWordRight(e,t,n,r)}},bCt=class extends d9{constructor(){super({inSelectionMode:!1,wordNavigationType:0,id:`cursorWordStartLeft`,precondition:void 0})}},xCt=class extends d9{constructor(){super({inSelectionMode:!1,wordNavigationType:2,id:`cursorWordEndLeft`,precondition:void 0})}},SCt=class extends d9{constructor(){super({inSelectionMode:!1,wordNavigationType:1,id:`cursorWordLeft`,precondition:void 0,kbOpts:{kbExpr:Y.and($.textInputFocus,Y.and(UH,vJ)?.negate()),primary:2063,mac:{primary:527},weight:100}})}},CCt=class extends d9{constructor(){super({inSelectionMode:!0,wordNavigationType:0,id:`cursorWordStartLeftSelect`,precondition:void 0})}},wCt=class extends d9{constructor(){super({inSelectionMode:!0,wordNavigationType:2,id:`cursorWordEndLeftSelect`,precondition:void 0})}},TCt=class extends d9{constructor(){super({inSelectionMode:!0,wordNavigationType:1,id:`cursorWordLeftSelect`,precondition:void 0,kbOpts:{kbExpr:Y.and($.textInputFocus,Y.and(UH,vJ)?.negate()),primary:3087,mac:{primary:1551},weight:100}})}},ECt=class extends d9{constructor(){super({inSelectionMode:!1,wordNavigationType:3,id:`cursorWordAccessibilityLeft`,precondition:void 0})}_move(e,t,n,r,i){return super._move(BI(GE.wordSeparators.defaultValue,e.intlSegmenterLocales),t,n,r,i)}},DCt=class extends d9{constructor(){super({inSelectionMode:!0,wordNavigationType:3,id:`cursorWordAccessibilityLeftSelect`,precondition:void 0})}_move(e,t,n,r,i){return super._move(BI(GE.wordSeparators.defaultValue,e.intlSegmenterLocales),t,n,r,i)}},OCt=class extends f9{constructor(){super({inSelectionMode:!1,wordNavigationType:0,id:`cursorWordStartRight`,precondition:void 0})}},kCt=class extends f9{constructor(){super({inSelectionMode:!1,wordNavigationType:2,id:`cursorWordEndRight`,precondition:void 0,kbOpts:{kbExpr:Y.and($.textInputFocus,Y.and(UH,vJ)?.negate()),primary:2065,mac:{primary:529},weight:100}})}},ACt=class extends f9{constructor(){super({inSelectionMode:!1,wordNavigationType:2,id:`cursorWordRight`,precondition:void 0})}},jCt=class extends f9{constructor(){super({inSelectionMode:!0,wordNavigationType:0,id:`cursorWordStartRightSelect`,precondition:void 0})}},MCt=class extends f9{constructor(){super({inSelectionMode:!0,wordNavigationType:2,id:`cursorWordEndRightSelect`,precondition:void 0,kbOpts:{kbExpr:Y.and($.textInputFocus,Y.and(UH,vJ)?.negate()),primary:3089,mac:{primary:1553},weight:100}})}},NCt=class extends f9{constructor(){super({inSelectionMode:!0,wordNavigationType:2,id:`cursorWordRightSelect`,precondition:void 0})}},PCt=class extends f9{constructor(){super({inSelectionMode:!1,wordNavigationType:3,id:`cursorWordAccessibilityRight`,precondition:void 0})}_move(e,t,n,r,i){return super._move(BI(GE.wordSeparators.defaultValue,e.intlSegmenterLocales),t,n,r,i)}},FCt=class extends f9{constructor(){super({inSelectionMode:!0,wordNavigationType:3,id:`cursorWordAccessibilityRightSelect`,precondition:void 0})}_move(e,t,n,r,i){return super._move(BI(GE.wordSeparators.defaultValue,e.intlSegmenterLocales),t,n,r,i)}},p9=class extends HP{constructor(e){super(e),this._whitespaceHeuristics=e.whitespaceHeuristics,this._wordNavigationType=e.wordNavigationType}runEditorCommand(e,t,n){let r=e.get(pI);if(!t.hasModel())return;let i=BI(t.getOption(132),t.getOption(131)),a=t.getModel(),o=t.getSelections(),s=t.getOption(6),c=t.getOption(11),l=r.getLanguageConfiguration(a.getLanguageId()).getAutoClosingPairs(),u=t._getViewModel(),d=o.map(e=>new LZ(this._delete({wordSeparators:i,model:a,selection:e,whitespaceHeuristics:this._whitespaceHeuristics,autoClosingDelete:t.getOption(9),autoClosingBrackets:s,autoClosingQuotes:c,autoClosingPairs:l,autoClosedCharacters:u.getCursorAutoClosedCharacters()},this._wordNavigationType),``));t.pushUndoStop(),t.executeCommands(this.id,d),t.pushUndoStop()}},m9=class extends p9{_delete(e,t){return WZ.deleteWordLeft(e,t)||new H(1,1,1,1)}},h9=class extends p9{_delete(e,t){let n=WZ.deleteWordRight(e,t);if(n)return n;let r=e.model.getLineCount(),i=e.model.getLineMaxColumn(r);return new H(r,i,r,i)}},ICt=class extends m9{constructor(){super({whitespaceHeuristics:!1,wordNavigationType:0,id:`deleteWordStartLeft`,precondition:$.writable})}},LCt=class extends m9{constructor(){super({whitespaceHeuristics:!1,wordNavigationType:2,id:`deleteWordEndLeft`,precondition:$.writable})}},RCt=class extends m9{constructor(){super({whitespaceHeuristics:!0,wordNavigationType:0,id:`deleteWordLeft`,precondition:$.writable,kbOpts:{kbExpr:$.textInputFocus,primary:2049,mac:{primary:513},weight:100}})}},zCt=class extends h9{constructor(){super({whitespaceHeuristics:!1,wordNavigationType:0,id:`deleteWordStartRight`,precondition:$.writable})}},BCt=class extends h9{constructor(){super({whitespaceHeuristics:!1,wordNavigationType:2,id:`deleteWordEndRight`,precondition:$.writable})}},VCt=class extends h9{constructor(){super({whitespaceHeuristics:!0,wordNavigationType:2,id:`deleteWordRight`,precondition:$.writable,kbOpts:{kbExpr:$.textInputFocus,primary:2068,mac:{primary:532},weight:100}})}},HCt=class extends UP{constructor(){super({id:`deleteInsideWord`,precondition:$.writable,label:F(`deleteInsideWord`,`Delete Word`),alias:`Delete Word`})}run(e,t,n){if(!t.hasModel())return;let r=BI(t.getOption(132),t.getOption(131)),i=t.getModel(),a=t.getSelections().map(e=>new LZ(WZ.deleteInsideWord(r,i,e),``));t.pushUndoStop(),t.executeCommands(this.id,a),t.pushUndoStop()}};qP(new bCt),qP(new xCt),qP(new SCt),qP(new CCt),qP(new wCt),qP(new TCt),qP(new OCt),qP(new kCt),qP(new ACt),qP(new jCt),qP(new MCt),qP(new NCt),qP(new ECt),qP(new DCt),qP(new PCt),qP(new FCt),qP(new ICt),qP(new LCt),qP(new RCt),qP(new zCt),qP(new BCt),qP(new VCt),X(HCt);var UCt=class extends p9{constructor(){super({whitespaceHeuristics:!0,wordNavigationType:0,id:`deleteWordPartLeft`,precondition:$.writable,kbOpts:{kbExpr:$.textInputFocus,primary:0,mac:{primary:769},weight:100}})}_delete(e,t){return GZ.deleteWordPartLeft(e)||new H(1,1,1,1)}},WCt=class extends p9{constructor(){super({whitespaceHeuristics:!0,wordNavigationType:2,id:`deleteWordPartRight`,precondition:$.writable,kbOpts:{kbExpr:$.textInputFocus,primary:0,mac:{primary:788},weight:100}})}_delete(e,t){let n=GZ.deleteWordPartRight(e);if(n)return n;let r=e.model.getLineCount(),i=e.model.getLineMaxColumn(r);return new H(r,i,r,i)}},GCt=class extends u9{_move(e,t,n,r,i){return GZ.moveWordPartLeft(e,t,n,i)}},KCt=class extends GCt{constructor(){super({inSelectionMode:!1,wordNavigationType:0,id:`cursorWordPartLeft`,precondition:void 0,kbOpts:{kbExpr:$.textInputFocus,primary:0,mac:{primary:783},weight:100}})}};BN.registerCommandAlias(`cursorWordPartStartLeft`,`cursorWordPartLeft`);var qCt=class extends GCt{constructor(){super({inSelectionMode:!0,wordNavigationType:0,id:`cursorWordPartLeftSelect`,precondition:void 0,kbOpts:{kbExpr:$.textInputFocus,primary:0,mac:{primary:1807},weight:100}})}};BN.registerCommandAlias(`cursorWordPartStartLeftSelect`,`cursorWordPartLeftSelect`);var JCt=class extends u9{_move(e,t,n,r,i){return GZ.moveWordPartRight(e,t,n)}},YCt=class extends JCt{constructor(){super({inSelectionMode:!1,wordNavigationType:2,id:`cursorWordPartRight`,precondition:void 0,kbOpts:{kbExpr:$.textInputFocus,primary:0,mac:{primary:785},weight:100}})}},XCt=class extends JCt{constructor(){super({inSelectionMode:!0,wordNavigationType:2,id:`cursorWordPartRightSelect`,precondition:void 0,kbOpts:{kbExpr:$.textInputFocus,primary:0,mac:{primary:1809},weight:100}})}};qP(new UCt),qP(new WCt),qP(new KCt),qP(new qCt),qP(new YCt),qP(new XCt);var ZCt=class extends R{static#e=this.ID=`editor.contrib.readOnlyMessageController`;constructor(e){super(),this.editor=e,this._register(this.editor.onDidAttemptReadOnlyEdit(()=>this._onDidAttemptReadOnlyEdit()))}_onDidAttemptReadOnlyEdit(){let e=D0.get(this.editor);if(e&&this.editor.hasModel()){let t=this.editor.getOptions().get(93);t||=this.editor.isSimpleWidget?new vH(F(`editor.simple.readonly`,`Cannot edit in read-only input`)):new vH(F(`editor.readonly`,`Cannot edit in read-only editor`)),e.showMessage(t,this.editor.getPosition())}}};YP(ZCt.ID,ZCt,2);var QCt=function(e,t,n,r){var i=arguments.length,a=i<3?t:r===null?r=Object.getOwnPropertyDescriptor(t,n):r,o;if(typeof Reflect==`object`&&typeof Reflect.decorate==`function`)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},$Ct=function(e,t){return function(n,r){t(n,r,e)}},g9=class extends R{constructor(e,t,n){super(),this._textModel=e,this._languageFeaturesService=t,this._outlineModelService=n,this._currentModel=ZU(this,void 0);let r=mW(`documentSymbolProvider.onDidChange`,this._languageFeaturesService.documentSymbolProvider.onDidChange),i=mW(`_textModel.onDidChangeContent`,z.debounce(e=>this._textModel.onDidChangeContent(e),()=>void 0,100));this._register(lW(async(e,t)=>{r.read(e),i.read(e);let n=t.add(new Hrt),a=await this._outlineModelService.getOrCreate(this._textModel,n.token);t.isDisposed||this._currentModel.set(a,void 0)}))}getBreadcrumbItems(e,t){let n=this._currentModel.read(t);if(!n)return[];let r=n.asListOfDocumentSymbols().filter(t=>e.contains(t.range.startLineNumber)&&!e.contains(t.range.endLineNumber));return r.sort(dT(lT(e=>e.range.endLineNumber-e.range.startLineNumber,uT))),r.map(e=>({name:e.name,kind:e.kind,startLineNumber:e.range.startLineNumber}))}};g9=QCt([$Ct(1,hR),$Ct(2,p6)],g9),n1.setBreadcrumbsSourceFactory((e,t)=>t.createInstance(g9,e));var ewt=class extends R{static#e=this.ID=`editor.contrib.iPadShowKeyboard`;constructor(e){super(),this.editor=e,this.widget=null,$T&&(this._register(e.onDidChangeConfiguration(()=>this.update())),this.update())}update(){let e=!this.editor.getOption(92);!this.widget&&e?this.widget=new twt(this.editor):this.widget&&!e&&(this.widget.dispose(),this.widget=null)}dispose(){super.dispose(),this.widget&&=(this.widget.dispose(),null)}},twt=class e extends R{static#e=this.ID=`editor.contrib.ShowKeyboardWidget`;constructor(e){super(),this.editor=e,this._domNode=document.createElement(`textarea`),this._domNode.className=`iPadShowKeyboard`,this._register(G(this._domNode,`touchstart`,e=>{this.editor.focus()})),this._register(G(this._domNode,`focus`,e=>{this.editor.focus()})),this.editor.addOverlayWidget(this)}dispose(){this.editor.removeOverlayWidget(this),super.dispose()}getId(){return e.ID}getDomNode(){return this._domNode}getPosition(){return{preference:1}}};YP(ewt.ID,ewt,3);var nwt=function(e,t,n,r){var i=arguments.length,a=i<3?t:r===null?r=Object.getOwnPropertyDescriptor(t,n):r,o;if(typeof Reflect==`object`&&typeof Reflect.decorate==`function`)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},rwt=function(e,t){return function(n,r){t(n,r,e)}},_9,v9=class extends R{static#e=_9=this;static#t=this.ID=`editor.contrib.inspectTokens`;static get(e){return e.getContribution(_9.ID)}constructor(e,t,n){super(),this._editor=e,this._languageService=n,this._widget=null,this._register(this._editor.onDidChangeModel(e=>this.stop())),this._register(this._editor.onDidChangeModelLanguage(e=>this.stop())),this._register(LO.onDidChange(e=>this.stop())),this._register(this._editor.onKeyUp(e=>e.keyCode===9&&this.stop()))}dispose(){this.stop(),super.dispose()}launch(){this._widget||this._editor.hasModel()&&(this._widget=new swt(this._editor,this._languageService))}stop(){this._widget&&=(this._widget.dispose(),null)}};v9=_9=nwt([rwt(1,IY),rwt(2,zF)],v9);var iwt=class extends UP{constructor(){super({id:`editor.action.inspectTokens`,label:IZe.inspectTokensAction,alias:`Developer: Inspect Tokens`,precondition:void 0})}run(e,t){v9.get(t)?.launch()}};function awt(e){let t=``;for(let n=0,r=e.length;n<r;n++){let r=e.charCodeAt(n);switch(r){case 9:t+=`→`;break;case 32:t+=`·`;break;default:t+=String.fromCharCode(r)}}return t}function owt(e,t){let n=LO.get(t);if(n)return n;let r=e.encodeLanguageId(t);return{getInitialState:()=>IH,tokenize:(e,n,r)=>LH(t,r),tokenizeEncoded:(e,t,n)=>RH(r,n)}}var swt=class e extends R{static#e=this._ID=`editor.contrib.inspectTokensWidget`;constructor(e,t){super(),this.allowEditorOverflow=!0,this._editor=e,this._languageService=t,this._model=this._editor.getModel(),this._domNode=document.createElement(`div`),this._domNode.className=`tokens-inspect-widget`,this._tokenizationSupport=owt(this._languageService.languageIdCodec,this._model.getLanguageId()),this._compute(this._editor.getPosition()),this._register(this._editor.onDidChangeCursorPosition(e=>this._compute(this._editor.getPosition()))),this._editor.addContentWidget(this)}dispose(){this._editor.removeContentWidget(this),super.dispose()}getId(){return e._ID}_compute(e){let t=this._getTokensAtLine(e.lineNumber),n=0;for(let r=t.tokens1.length-1;r>=0;r--){let i=t.tokens1[r];if(e.column-1>=i.offset){n=r;break}}let r=0;for(let n=t.tokens2.length>>>1;n>=0;n--)if(e.column-1>=t.tokens2[n<<1]){r=n;break}let i=this._model.getLineContent(e.lineNumber),a=``;if(n<t.tokens1.length){let e=t.tokens1[n].offset,r=n+1<t.tokens1.length?t.tokens1[n+1].offset:i.length;a=i.substring(e,r)}tN(this._domNode,J(`h2.tm-token`,void 0,awt(a),J(`span.tm-token-length`,void 0,`${a.length} ${a.length===1?`char`:`chars`}`))),q(this._domNode,J(`hr.tokens-inspect-separator`,{style:`clear:both`}));let o=(r<<1)+1<t.tokens2.length?this._decodeMetadata(t.tokens2[(r<<1)+1]):null;q(this._domNode,J(`table.tm-metadata-table`,void 0,J(`tbody`,void 0,J(`tr`,void 0,J(`td.tm-metadata-key`,void 0,`language`),J(`td.tm-metadata-value`,void 0,`${o?o.languageId:`-?-`}`)),J(`tr`,void 0,J(`td.tm-metadata-key`,void 0,`token type`),J(`td.tm-metadata-value`,void 0,`${o?this._tokenTypeToString(o.tokenType):`-?-`}`)),J(`tr`,void 0,J(`td.tm-metadata-key`,void 0,`font style`),J(`td.tm-metadata-value`,void 0,`${o?this._fontStyleToString(o.fontStyle):`-?-`}`)),J(`tr`,void 0,J(`td.tm-metadata-key`,void 0,`foreground`),J(`td.tm-metadata-value`,void 0,`${o?Z.Format.CSS.formatHex(o.foreground):`-?-`}`)),J(`tr`,void 0,J(`td.tm-metadata-key`,void 0,`background`),J(`td.tm-metadata-value`,void 0,`${o?Z.Format.CSS.formatHex(o.background):`-?-`}`))))),q(this._domNode,J(`hr.tokens-inspect-separator`)),n<t.tokens1.length&&q(this._domNode,J(`span.tm-token-type`,void 0,t.tokens1[n].type)),this._editor.layoutContentWidget(this)}_decodeMetadata(e){let t=LO.getColorMap(),n=fz.getLanguageId(e),r=fz.getTokenType(e),i=fz.getFontStyle(e),a=fz.getForeground(e),o=fz.getBackground(e);return{languageId:this._languageService.languageIdCodec.decodeLanguageId(n),tokenType:r,fontStyle:i,foreground:t[a],background:t[o]}}_tokenTypeToString(e){switch(e){case 0:return`Other`;case 1:return`Comment`;case 2:return`String`;case 3:return`RegEx`;default:return`??`}}_fontStyleToString(e){let t=``;return e&1&&(t+=`italic `),e&2&&(t+=`bold `),e&4&&(t+=`underline `),e&8&&(t+=`strikethrough `),t.length===0&&(t=`---`),t}_getTokensAtLine(e){let t=this._getStateBeforeLine(e),n=this._tokenizationSupport.tokenize(this._model.getLineContent(e),!0,t),r=this._tokenizationSupport.tokenizeEncoded(this._model.getLineContent(e),!0,t);return{startState:t,tokens1:n.tokens,tokens2:r.tokens,endState:n.endState}}_getStateBeforeLine(e){let t=this._tokenizationSupport.getInitialState();for(let n=1;n<e;n++)t=this._tokenizationSupport.tokenize(this._model.getLineContent(n),!0,t).endState;return t}getDomNode(){return this._domNode}getPosition(){return{position:this._editor.getPosition(),preference:[2,1]}}};YP(v9.ID,v9,4),X(iwt);var cwt=function(e,t,n,r){var i=arguments.length,a=i<3?t:r===null?r=Object.getOwnPropertyDescriptor(t,n):r,o;if(typeof Reflect==`object`&&typeof Reflect.decorate==`function`)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},lwt=function(e,t){return function(n,r){t(n,r,e)}},y9,b9=class{static#e=y9=this;static#t=this.PREFIX=`?`;constructor(e,t){this.quickInputService=e,this.keybindingService=t,this.registry=xP.as(Cq.Quickaccess)}provide(e){let t=new L;return t.add(e.onDidAccept(()=>{let[t]=e.selectedItems;t&&this.quickInputService.quickAccess.show(t.prefix,{preserveValue:!0})})),t.add(e.onDidChangeValue(e=>{let t=this.registry.getQuickAccessProvider(e.substr(y9.PREFIX.length));t&&t.prefix&&t.prefix!==y9.PREFIX&&this.quickInputService.quickAccess.show(t.prefix,{preserveValue:!0})})),e.items=this.getQuickAccessProviders().filter(e=>e.prefix!==y9.PREFIX),t}getQuickAccessProviders(){return this.registry.getQuickAccessProviders().sort((e,t)=>e.prefix.localeCompare(t.prefix)).flatMap(e=>this.createPicks(e))}createPicks(e){return e.helpEntries.map(t=>{let n=t.prefix||e.prefix,r=n||`…`;return{prefix:n,label:r,keybinding:t.commandId?this.keybindingService.lookupKeybinding(t.commandId):void 0,ariaLabel:F(`helpPickAriaLabel`,`{0}, {1}`,r,t.description),description:t.description}})}};b9=y9=cwt([lwt(0,Oq),lwt(1,uV)],b9),xP.as(Cq.Quickaccess).registerQuickAccessProvider({ctor:b9,prefix:``,helpEntries:[{description:LZe.helpQuickAccessActionLabel}]});var uwt=class{constructor(e){this.options=e,this.rangeHighlightDecorationId=void 0}provide(e,t,n){let r=new L;e.canAcceptInBackground=!!this.options?.canAcceptInBackground,e.matchOnLabel=e.matchOnDescription=e.matchOnDetail=e.sortByLabel=!1;let i=r.add(new pD);return i.value=this.doProvide(e,t,n),r.add(this.onDidActiveTextEditorControlChange(()=>{i.value=void 0,i.value=this.doProvide(e,t)})),r}doProvide(e,t,n){let r=new L,i=this.activeTextEditorControl;if(i&&this.canProvideWithTextEditor(i)){let a={editor:i},o=ost(i);if(o){let e=i.saveViewState()??void 0;r.add(o.onDidChangeCursorPosition(()=>{e=i.saveViewState()??void 0})),a.restoreViewState=()=>{e&&i===this.activeTextEditorControl&&i.restoreViewState(e)},r.add(rD(t.onCancellationRequested)(()=>a.restoreViewState?.()))}r.add(fD(()=>this.clearDecorations(i))),r.add(this.provideWithTextEditor(a,e,t,n))}else r.add(this.provideWithoutTextEditor(e,t));return r}canProvideWithTextEditor(e){return!0}gotoLocation({editor:e},t){e.setSelection(t.range,`code.jump`),e.revealRangeInCenter(t.range,0),t.preserveFocus||e.focus();let n=e.getModel();n&&`getLineContent`in n&&XH(`${n.getLineContent(t.range.startLineNumber)}`)}getModel(e){return D1(e)?e.getModel()?.modified:e.getModel()}addDecorations(e,t){e.changeDecorations(e=>{let n=[];this.rangeHighlightDecorationId&&=(n.push(this.rangeHighlightDecorationId.overviewRulerDecorationId),n.push(this.rangeHighlightDecorationId.rangeHighlightId),void 0);let r=[{range:t,options:{description:`quick-access-range-highlight`,className:`rangeHighlight`,isWholeLine:!0}},{range:t,options:{description:`quick-access-range-highlight-overview`,overviewRuler:{color:DR(T1e),position:VI.Full}}}],[i,a]=e.deltaDecorations(n,r);this.rangeHighlightDecorationId={rangeHighlightId:i,overviewRulerDecorationId:a}})}clearDecorations(e){let t=this.rangeHighlightDecorationId;t&&(e.changeDecorations(e=>{e.deltaDecorations([t.overviewRulerDecorationId,t.rangeHighlightId],[])}),this.rangeHighlightDecorationId=void 0)}},dwt=class e extends uwt{static#e=this.PREFIX=`:`;constructor(){super({canAcceptInBackground:!0})}provideWithoutTextEditor(e){let t=F(`cannotRunGotoLine`,`Open a text editor first to go to a line.`);return e.items=[{label:t}],e.ariaLabel=t,R.None}provideWithTextEditor(t,n,r){let i=t.editor,a=new L;a.add(n.onDidAccept(e=>{let[r]=n.selectedItems;if(r){if(!this.isValidLineNumber(i,r.lineNumber))return;this.gotoLocation(t,{range:this.toRange(r.lineNumber,r.column),keyMods:n.keyMods,preserveFocus:e.inBackground}),e.inBackground||n.hide()}}));let o=()=>{let t=this.parsePosition(i,n.value.trim().substr(e.PREFIX.length)),r=this.getPickLabel(i,t.lineNumber,t.column);if(n.items=[{lineNumber:t.lineNumber,column:t.column,label:r}],n.ariaLabel=r,!this.isValidLineNumber(i,t.lineNumber)){this.clearDecorations(i);return}let a=this.toRange(t.lineNumber,t.column);i.revealRangeInCenter(a,0),this.addDecorations(i,a)};o(),a.add(n.onDidChangeValue(()=>o()));let s=ost(i);return s&&s.getOptions().get(68).renderType===2&&(s.updateOptions({lineNumbers:`on`}),a.add(fD(()=>s.updateOptions({lineNumbers:`relative`})))),a}toRange(e=1,t=1){return{startLineNumber:e,startColumn:t,endLineNumber:e,endColumn:t}}parsePosition(e,t){let n=t.split(/,|:|#/).map(e=>parseInt(e,10)).filter(e=>!isNaN(e)),r=this.lineCount(e)+1;return{lineNumber:n[0]>0?n[0]:r+n[0],column:n[1]}}getPickLabel(e,t,n){if(this.isValidLineNumber(e,t))return this.isValidColumn(e,t,n)?F(`gotoLineColumnLabel`,`Go to line {0} and character {1}.`,t,n):F(`gotoLineLabel`,`Go to line {0}.`,t);let r=e.getPosition()||{lineNumber:1,column:1},i=this.lineCount(e);return i>1?F(`gotoLineLabelEmptyWithLimit`,`Current Line: {0}, Character: {1}. Type a line number between 1 and {2} to navigate to.`,r.lineNumber,r.column,i):F(`gotoLineLabelEmpty`,`Current Line: {0}, Character: {1}. Type a line number to navigate to.`,r.lineNumber,r.column)}isValidLineNumber(e,t){return!t||typeof t!=`number`?!1:t>0&&t<=this.lineCount(e)}isValidColumn(e,t,n){if(!n||typeof n!=`number`)return!1;let r=this.getModel(e);if(!r)return!1;let i={lineNumber:t,column:n};return r.validatePosition(i).equals(i)}lineCount(e){return this.getModel(e)?.getLineCount()??0}},fwt=function(e,t,n,r){var i=arguments.length,a=i<3?t:r===null?r=Object.getOwnPropertyDescriptor(t,n):r,o;if(typeof Reflect==`object`&&typeof Reflect.decorate==`function`)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},pwt=function(e,t){return function(n,r){t(n,r,e)}},x9=class extends dwt{constructor(e){super(),this.editorService=e,this.onDidActiveTextEditorControlChange=z.None}get activeTextEditorControl(){return this.editorService.getFocusedCodeEditor()??void 0}};x9=fwt([pwt(0,kN)],x9);var mwt=class e extends UP{static#e=this.ID=`editor.action.gotoLine`;constructor(){super({id:e.ID,label:kU.gotoLineActionLabel,alias:`Go to Line/Column...`,precondition:void 0,kbOpts:{kbExpr:$.focus,primary:2085,mac:{primary:293},weight:100}})}run(e){e.get(Oq).quickAccess.show(x9.PREFIX)}};X(mwt),xP.as(Cq.Quickaccess).registerQuickAccessProvider({ctor:x9,prefix:x9.PREFIX,helpEntries:[{description:kU.gotoLineActionLabel,commandId:mwt.ID}]});var hwt=[void 0,[]];function S9(e,t,n=0,r=0){let i=t;return i.values&&i.values.length>1?gwt(e,i.values,n,r):_wt(e,t,n,r)}function gwt(e,t,n,r){let i=0,a=[];for(let o of t){let[t,s]=_wt(e,o,n,r);if(typeof t!=`number`)return hwt;i+=t,a.push(...s)}return[i,vwt(a)]}function _wt(e,t,n,r){let i=aH(t.original,t.originalLowercase,n,e,e.toLowerCase(),r,{firstMatchCanBeWeak:!0,boostFullMatch:!0});return i?[i[0],JV(i)]:hwt}Object.freeze({score:0});function vwt(e){let t=e.sort((e,t)=>e.start-t.start),n=[],r;for(let e of t)!r||!ywt(r,e)?(r=e,n.push(e)):(r.start=Math.min(r.start,e.start),r.end=Math.max(r.end,e.end));return n}function ywt(e,t){return!(e.end<t.start||t.end<e.start)}function bwt(e){return e.startsWith(`"`)&&e.endsWith(`"`)}var xwt=` `;function Swt(e){typeof e!=`string`&&(e=``);let t=e.toLowerCase(),{pathNormalized:n,normalized:r,normalizedLowercase:i}=Cwt(e),a=n.indexOf(iO)>=0,o=bwt(e),s,c=e.split(xwt);if(c.length>1)for(let e of c){let t=bwt(e),{pathNormalized:n,normalized:r,normalizedLowercase:i}=Cwt(e);r&&(s||=[],s.push({original:e,originalLowercase:e.toLowerCase(),pathNormalized:n,normalized:r,normalizedLowercase:i,expectContiguousMatch:t}))}return{original:e,originalLowercase:t,pathNormalized:n,normalized:r,normalizedLowercase:i,values:s,containsPathSeparator:a,expectContiguousMatch:o}}function Cwt(e){let t;t=JT?e.replace(/\//g,iO):e.replace(/\\/g,iO);let n=sVe(t).replace(/\s|"/g,``);return{pathNormalized:t,normalized:n,normalizedLowercase:n.toLowerCase()}}function wwt(e){return Swt(Array.isArray(e)?e.map(e=>e.original).join(xwt):e.original)}var Twt=function(e,t,n,r){var i=arguments.length,a=i<3?t:r===null?r=Object.getOwnPropertyDescriptor(t,n):r,o;if(typeof Reflect==`object`&&typeof Reflect.decorate==`function`)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},Ewt=function(e,t){return function(n,r){t(n,r,e)}},C9,w9=class extends uwt{static#e=C9=this;static#t=this.PREFIX=`@`;static#n=this.SCOPE_PREFIX=`:`;static#r=this.PREFIX_BY_CATEGORY=`${this.PREFIX}${this.SCOPE_PREFIX}`;constructor(e,t,n=Object.create(null)){super(n),this._languageFeaturesService=e,this._outlineModelService=t,this.options=n,this.options.canAcceptInBackground=!0}provideWithoutTextEditor(e){return this.provideLabelPick(e,F(`cannotRunGotoSymbolWithoutEditor`,`To go to a symbol, first open a text editor with symbol information.`)),R.None}provideWithTextEditor(e,t,n,r){let i=e.editor,a=this.getModel(i);return a?this._languageFeaturesService.documentSymbolProvider.has(a)?this.doProvideWithEditorSymbols(e,a,t,n,r):this.doProvideWithoutEditorSymbols(e,a,t,n):R.None}doProvideWithoutEditorSymbols(e,t,n,r){let i=new L;return this.provideLabelPick(n,F(`cannotRunGotoSymbolWithoutSymbolProvider`,`The active text editor does not provide symbol information.`)),(async()=>{!await this.waitForLanguageSymbolRegistry(t,i)||r.isCancellationRequested||i.add(this.doProvideWithEditorSymbols(e,t,n,r))})(),i}provideLabelPick(e,t){e.items=[{label:t,index:0,kind:14}],e.ariaLabel=t}async waitForLanguageSymbolRegistry(e,t){if(this._languageFeaturesService.documentSymbolProvider.has(e))return!0;let n=new aj,r=t.add(this._languageFeaturesService.documentSymbolProvider.onDidChange(()=>{this._languageFeaturesService.documentSymbolProvider.has(e)&&(r.dispose(),n.complete(!0))}));return t.add(fD(()=>n.complete(!1))),n.p}doProvideWithEditorSymbols(e,t,n,r,i){let a=e.editor,o=new L;o.add(n.onDidAccept(t=>{let[r]=n.selectedItems;r&&r.range&&(this.gotoLocation(e,{range:r.range.selection,keyMods:n.keyMods,preserveFocus:t.inBackground}),i?.handleAccept?.(r),t.inBackground||n.hide())})),o.add(n.onDidTriggerItemButton(({item:t})=>{t&&t.range&&(this.gotoLocation(e,{range:t.range.selection,keyMods:n.keyMods,forceSideBySide:!0}),n.hide())}));let s=this.getDocumentSymbols(t,r),c,l=async e=>{c?.dispose(!0),n.busy=!1,c=new ED(r),n.busy=!0;try{let i=Swt(n.value.substr(C9.PREFIX.length).trim()),a=await this.doGetSymbolPicks(s,i,void 0,c.token,t);if(r.isCancellationRequested)return;if(a.length>0){if(n.items=a,e&&i.original.length===0){let t=oL(a,t=>!!(t.type!==`separator`&&t.range&&H.containsPosition(t.range.decoration,e)));t&&(n.activeItems=[t])}}else i.original.length>0?this.provideLabelPick(n,F(`noMatchingSymbolResults`,`No matching editor symbols`)):this.provideLabelPick(n,F(`noSymbolResults`,`No editor symbols`))}finally{r.isCancellationRequested||(n.busy=!1)}};return o.add(n.onDidChangeValue(()=>l(void 0))),l(a.getSelection()?.getPosition()),o.add(n.onDidChangeActive(()=>{let[e]=n.activeItems;e&&e.range&&(a.revealRangeInCenter(e.range.selection,0),this.addDecorations(a,e.range.decoration))})),o}async doGetSymbolPicks(e,t,n,r,i){let a=await e;if(r.isCancellationRequested)return[];let o=t.original.indexOf(C9.SCOPE_PREFIX)===0,s=o?1:0,c,l;t.values&&t.values.length>1?(c=wwt(t.values[0]),l=wwt(t.values.slice(1))):c=t;let u,d=this.options?.openSideBySideDirection?.();d&&(u=[{iconClass:d===`right`?RN.asClassName(W.splitHorizontal):RN.asClassName(W.splitVertical),tooltip:d===`right`?F(`openToSide`,`Open to the Side`):F(`openToBottom`,`Open to the Bottom`)}]);let f=[];for(let e=0;e<a.length;e++){let r=a[e],o=aVe(r.name),d=`$(${jO.toIcon(r.kind).id}) ${o}`,p=d.length-o.length,m=r.containerName;n?.extraContainerLabel&&(m=m?`${n.extraContainerLabel} • ${m}`:n.extraContainerLabel);let h,g,_,v;if(t.original.length>s){let e=!1;if(c!==t&&([h,g]=S9(d,{...t,values:void 0},s,p),typeof h==`number`&&(e=!0)),typeof h!=`number`&&([h,g]=S9(d,c,s,p),typeof h!=`number`))continue;if(!e&&l){if(m&&l.original.length>0&&([_,v]=S9(m,l)),typeof _!=`number`)continue;typeof h==`number`&&(h+=_)}}let y=r.tags&&r.tags.indexOf(1)>=0;f.push({index:e,kind:r.kind,score:h,label:d,ariaLabel:QBe(r.name,r.kind),description:m,highlights:y?void 0:{label:g,description:v},range:{selection:H.collapseToStart(r.selectionRange),decoration:r.range},uri:i.uri,symbolName:o,strikethrough:y,buttons:u})}let p=f.sort((e,t)=>o?this.compareByKindAndScore(e,t):this.compareByScore(e,t)),m=[];if(o){let e,t,n=0;function r(){t&&typeof e==`number`&&n>0&&(t.label=Rk(E9[e]||T9,n))}for(let i of p)e===i.kind?n++:(r(),e=i.kind,n=1,t={type:`separator`},m.push(t)),m.push(i);r()}else p.length>0&&(m=[{label:F(`symbols`,`symbols ({0})`,f.length),type:`separator`},...p]);return m}compareByScore(e,t){if(typeof e.score!=`number`&&typeof t.score==`number`)return 1;if(typeof e.score==`number`&&typeof t.score!=`number`)return-1;if(typeof e.score==`number`&&typeof t.score==`number`){if(e.score>t.score)return-1;if(e.score<t.score)return 1}return e.index<t.index?-1:e.index>t.index?1:0}compareByKindAndScore(e,t){let n=E9[e.kind]||T9,r=E9[t.kind]||T9,i=n.localeCompare(r);return i===0?this.compareByScore(e,t):i}async getDocumentSymbols(e,t){let n=await this._outlineModelService.getOrCreate(e,t);return t.isCancellationRequested?[]:n.asListOfDocumentSymbols()}};w9=C9=Twt([Ewt(0,hR),Ewt(1,p6)],w9);var T9=F(`property`,`properties ({0})`),E9={5:F(`method`,`methods ({0})`),11:F(`function`,`functions ({0})`),8:F(`_constructor`,`constructors ({0})`),12:F(`variable`,`variables ({0})`),4:F(`class`,`classes ({0})`),22:F(`struct`,`structs ({0})`),23:F(`event`,`events ({0})`),24:F(`operator`,`operators ({0})`),10:F(`interface`,`interfaces ({0})`),2:F(`namespace`,`namespaces ({0})`),3:F(`package`,`packages ({0})`),25:F(`typeParameter`,`type parameters ({0})`),1:F(`modules`,`modules ({0})`),6:F(`property`,`properties ({0})`),9:F(`enum`,`enumerations ({0})`),21:F(`enumMember`,`enumeration members ({0})`),14:F(`string`,`strings ({0})`),0:F(`file`,`files ({0})`),17:F(`array`,`arrays ({0})`),15:F(`number`,`numbers ({0})`),16:F(`boolean`,`booleans ({0})`),18:F(`object`,`objects ({0})`),19:F(`key`,`keys ({0})`),7:F(`field`,`fields ({0})`),13:F(`constant`,`constants ({0})`)},Dwt=function(e,t,n,r){var i=arguments.length,a=i<3?t:r===null?r=Object.getOwnPropertyDescriptor(t,n):r,o;if(typeof Reflect==`object`&&typeof Reflect.decorate==`function`)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},D9=function(e,t){return function(n,r){t(n,r,e)}},O9=class extends w9{constructor(e,t,n){super(t,n),this.editorService=e,this.onDidActiveTextEditorControlChange=z.None}get activeTextEditorControl(){return this.editorService.getFocusedCodeEditor()??void 0}};O9=Dwt([D9(0,kN),D9(1,hR),D9(2,p6)],O9);var Owt=class e extends UP{static#e=this.ID=`editor.action.quickOutline`;constructor(){super({id:e.ID,label:jU.quickOutlineActionLabel,alias:`Go to Symbol...`,precondition:$.hasDocumentSymbolProvider,kbOpts:{kbExpr:$.focus,primary:3117,weight:100},contextMenuOpts:{group:`navigation`,order:3}})}run(e){e.get(Oq).quickAccess.show(w9.PREFIX,{itemActivation:Tq.NONE})}};X(Owt),xP.as(Cq.Quickaccess).registerQuickAccessProvider({ctor:O9,prefix:w9.PREFIX,helpEntries:[{description:jU.quickOutlineActionLabel,prefix:w9.PREFIX,commandId:Owt.ID},{description:jU.quickOutlineByCategoryActionLabel,prefix:w9.PREFIX_BY_CATEGORY}]});function kwt(e){let t=new Map;for(let n of e)t.set(n,(t.get(n)??0)+1);return t}var Awt=class e{constructor(){this.chunkCount=0,this.chunkOccurrences=new Map,this.documents=new Map}calculateScores(e,t){let n=this.computeEmbedding(e),r=new Map,i=[];for(let[e,a]of this.documents){if(t.isCancellationRequested)return[];for(let t of a.chunks){let a=this.computeSimilarityScore(t,n,r);a>0&&i.push({key:e,score:a})}}return i}static termFrequencies(t){return kwt(e.splitTerms(t))}static*splitTerms(e){let t=e=>e.toLowerCase();for(let[n]of e.matchAll(/\b\p{Letter}[\p{Letter}\d]{2,}\b/gu)){yield t(n);let e=n.replace(/([a-z])([A-Z])/g,`$1 $2`).split(/\s+/g);if(e.length>1)for(let n of e)n.length>2&&/\p{Letter}{3,}/gu.test(n)&&(yield t(n))}}updateDocuments(t){for(let{key:e}of t)this.deleteDocument(e);for(let n of t){let t=[];for(let r of n.textChunks){let n=e.termFrequencies(r);for(let e of n.keys())this.chunkOccurrences.set(e,(this.chunkOccurrences.get(e)??0)+1);t.push({text:r,tf:n})}this.chunkCount+=t.length,this.documents.set(n.key,{chunks:t})}return this}deleteDocument(e){let t=this.documents.get(e);if(t){this.documents.delete(e),this.chunkCount-=t.chunks.length;for(let e of t.chunks)for(let t of e.tf.keys()){let e=this.chunkOccurrences.get(t);if(typeof e==`number`){let n=e-1;n<=0?this.chunkOccurrences.delete(t):this.chunkOccurrences.set(t,n)}}}}computeSimilarityScore(e,t,n){let r=0;for(let[i,a]of Object.entries(t)){let t=e.tf.get(i);if(!t)continue;let o=n.get(i);typeof o!=`number`&&(o=this.computeIdf(i),n.set(i,o));let s=t*o;r+=s*a}return r}computeEmbedding(t){let n=e.termFrequencies(t);return this.computeTfidf(n)}computeIdf(e){let t=this.chunkOccurrences.get(e)??0;return t>0?Math.log((this.chunkCount+1)/t):0}computeTfidf(e){let t=Object.create(null);for(let[n,r]of e){let e=this.computeIdf(n);e>0&&(t[n]=r*e)}return t}};function jwt(e){let t=e.slice(0);t.sort((e,t)=>t.score-e.score);let n=t[0]?.score??0;if(n>0)for(let e of t)e.score/=n;return t}var k9;(function(e){e[e.NO_ACTION=0]=`NO_ACTION`,e[e.CLOSE_PICKER=1]=`CLOSE_PICKER`,e[e.REFRESH_PICKER=2]=`REFRESH_PICKER`,e[e.REMOVE_ITEM=3]=`REMOVE_ITEM`})(k9||={});function A9(e){let t=e;return Array.isArray(t.items)}function Mwt(e){let t=e;return!!t.picks&&t.additionalPicks instanceof Promise}var Nwt=class extends R{constructor(e,t){super(),this.prefix=e,this.options=t}provide(e,t,n){let r=new L;e.canAcceptInBackground=!!this.options?.canAcceptInBackground,e.matchOnLabel=e.matchOnDescription=e.matchOnDetail=e.sortByLabel=!1;let i,a=r.add(new pD),o=async()=>{let r=a.value=new L;i?.dispose(!0),e.busy=!1,i=new ED(t);let o=i.token,s=e.value.substring(this.prefix.length);this.options?.shouldSkipTrimPickFilter||(s=s.trim());let c=this._getPicks(s,r,o,n),l=(t,n)=>{let r,i;if(A9(t)?(r=t.items,i=t.active):r=t,r.length===0){if(n)return!1;(s.length>0||e.hideInput)&&this.options?.noResultsPick&&(r=wT(this.options.noResultsPick)?[this.options.noResultsPick(s)]:[this.options.noResultsPick])}return e.items=r,i&&(e.activeItems=[i]),!0},u=async t=>{let n=!1,r=!1;await Promise.all([(async()=>{typeof t.mergeDelay==`number`&&(await XA(t.mergeDelay),o.isCancellationRequested)||r||(n=l(t.picks,!0))})(),(async()=>{e.busy=!0;try{let r=await t.additionalPicks;if(o.isCancellationRequested)return;let i,a;A9(t.picks)?(i=t.picks.items,a=t.picks.active):i=t.picks;let s,c;if(A9(r)?(s=r.items,c=r.active):s=r,s.length>0||!n){let t;if(!a&&!c){let n=e.activeItems[0];n&&i.indexOf(n)!==-1&&(t=n)}l({items:[...i,...s],active:a||c||t})}}finally{o.isCancellationRequested||(e.busy=!1),r=!0}})()])};if(c!==null)if(Mwt(c))await u(c);else if(!(c instanceof Promise))l(c);else{e.busy=!0;try{let e=await c;if(o.isCancellationRequested)return;Mwt(e)?await u(e):l(e)}finally{o.isCancellationRequested||(e.busy=!1)}}};r.add(e.onDidChangeValue(()=>o())),o(),r.add(e.onDidAccept(t=>{if(n?.handleAccept){t.inBackground||e.hide(),n.handleAccept?.(e.activeItems[0]);return}let[r]=e.selectedItems;typeof r?.accept==`function`&&(t.inBackground||e.hide(),r.accept(e.keyMods,t))}));let s=async(n,r)=>{if(typeof r.trigger!=`function`)return;let i=r.buttons?.indexOf(n)??-1;if(i>=0){let n=r.trigger(i,e.keyMods),a=typeof n==`number`?n:await n;if(t.isCancellationRequested)return;switch(a){case k9.NO_ACTION:break;case k9.CLOSE_PICKER:e.hide();break;case k9.REFRESH_PICKER:o();break;case k9.REMOVE_ITEM:{let t=e.items.indexOf(r);if(t!==-1){let n=e.items.slice(),r=n.splice(t,1),i=e.activeItems.filter(e=>e!==r[0]),a=e.keepScrollPosition;e.keepScrollPosition=!0,e.items=n,i&&(e.activeItems=i),e.keepScrollPosition=a}break}}}};return r.add(e.onDidTriggerItemButton(({button:e,item:t})=>s(e,t))),r.add(e.onDidTriggerSeparatorButton(({button:e,separator:t})=>s(e,t))),r}},Pwt=function(e,t,n,r){var i=arguments.length,a=i<3?t:r===null?r=Object.getOwnPropertyDescriptor(t,n):r,o;if(typeof Reflect==`object`&&typeof Reflect.decorate==`function`)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},j9=function(e,t){return function(n,r){t(n,r,e)}},M9,N9,P9=class extends Nwt{static#e=M9=this;static#t=this.PREFIX=`>`;static#n=this.TFIDF_THRESHOLD=.5;static#r=this.TFIDF_MAX_RESULTS=5;static#i=this.WORD_FILTER=LV(RV,pYe,eYe);constructor(e,t,n,r,i,a){super(M9.PREFIX,e),this.instantiationService=t,this.keybindingService=n,this.commandService=r,this.telemetryService=i,this.dialogService=a,this.commandsHistory=this._register(this.instantiationService.createInstance(F9)),this.options=e}async _getPicks(e,t,n,r){let i=await this.getCommandPicks(n);if(n.isCancellationRequested)return[];let a=rD(()=>{let t=new Awt;return t.updateDocuments(i.map(e=>({key:e.commandId,textChunks:[this.getTfIdfChunk(e)]}))),jwt(t.calculateScores(e,n)).filter(e=>e.score>M9.TFIDF_THRESHOLD).slice(0,M9.TFIDF_MAX_RESULTS)}),o=[];for(let t of i){let r=M9.WORD_FILTER(e,t.label)??void 0,i=t.commandAlias?M9.WORD_FILTER(e,t.commandAlias)??void 0:void 0;if(r||i)t.highlights={label:r,detail:this.options.showAlias?i:void 0},o.push(t);else if(e===t.commandId)o.push(t);else if(e.length>=3){let e=a();if(n.isCancellationRequested)return[];let r=e.find(e=>e.key===t.commandId);r&&(t.tfIdfScore=r.score,o.push(t))}}let s=new Map;for(let e of o){let t=s.get(e.label);t?(e.description=e.commandId,t.description=t.commandId):s.set(e.label,e)}o.sort((e,t)=>{if(e.tfIdfScore&&t.tfIdfScore)return e.tfIdfScore===t.tfIdfScore?e.label.localeCompare(t.label):t.tfIdfScore-e.tfIdfScore;if(e.tfIdfScore)return 1;if(t.tfIdfScore)return-1;let n=this.commandsHistory.peek(e.commandId),r=this.commandsHistory.peek(t.commandId);if(n&&r)return n>r?-1:1;if(n)return-1;if(r)return 1;if(this.options.suggestedCommandIds){let n=this.options.suggestedCommandIds.has(e.commandId),r=this.options.suggestedCommandIds.has(t.commandId);if(n&&r)return 0;if(n)return-1;if(r)return 1}return e.label.localeCompare(t.label)});let c=[],l=!1,u=!0,d=!!this.options.suggestedCommandIds;for(let e=0;e<o.length;e++){let t=o[e];e===0&&this.commandsHistory.peek(t.commandId)&&(c.push({type:`separator`,label:F(`recentlyUsed`,`recently used`)}),l=!0),u&&t.tfIdfScore!==void 0&&(c.push({type:`separator`,label:F(`suggested`,`similar commands`)}),u=!1),d&&t.tfIdfScore===void 0&&!this.commandsHistory.peek(t.commandId)&&this.options.suggestedCommandIds?.has(t.commandId)&&(c.push({type:`separator`,label:F(`commonlyUsed`,`commonly used`)}),l=!0,d=!1),l&&t.tfIdfScore===void 0&&!this.commandsHistory.peek(t.commandId)&&!this.options.suggestedCommandIds?.has(t.commandId)&&(c.push({type:`separator`,label:F(`morecCommands`,`other commands`)}),l=!1),c.push(this.toCommandPick(t,r))}return this.hasAdditionalCommandPicks(e,n)?{picks:c,additionalPicks:(async()=>{let t=await this.getAdditionalCommandPicks(i,o,e,n);if(n.isCancellationRequested)return[];let a=t.map(e=>this.toCommandPick(e,r));return u&&a[0]?.type!==`separator`&&a.unshift({type:`separator`,label:F(`suggested`,`similar commands`)}),a})()}:c}toCommandPick(e,t){if(e.type===`separator`)return e;let n=this.keybindingService.lookupKeybinding(e.commandId),r=n?F(`commandPickAriaLabelWithKeybinding`,`{0}, {1}`,e.label,n.getAriaLabel()):e.label;return{...e,ariaLabel:r,detail:this.options.showAlias&&e.commandAlias!==e.label?e.commandAlias:void 0,keybinding:n,accept:async()=>{this.commandsHistory.push(e.commandId),this.telemetryService.publicLog2(`workbenchActionExecuted`,{id:e.commandId,from:t?.from??`quick open`});try{e.args?.length?await this.commandService.executeCommand(e.commandId,...e.args):await this.commandService.executeCommand(e.commandId)}catch(t){ZE(t)||this.dialogService.error(F(`canNotRun`,`Command '{0}' resulted in an error`,e.label),k0(t))}}}}getTfIdfChunk({label:e,commandAlias:t,commandDescription:n}){let r=e;return t&&t!==e&&(r+=` - ${t}`),n&&n.value!==e&&(r+=` - ${n.value===n.original?n.value:`${n.value} (${n.original})`}`),r}};P9=M9=Pwt([j9(1,DN),j9(2,uV),j9(3,zN),j9(4,PP),j9(5,HR)],P9);var F9=class extends R{static#e=N9=this;static#t=this.DEFAULT_COMMANDS_HISTORY_LENGTH=50;static#n=this.PREF_KEY_CACHE=`commandPalette.mru.cache`;static#r=this.PREF_KEY_COUNTER=`commandPalette.mru.counter`;static#i=this.counter=1;static#a=this.hasChanges=!1;constructor(e,t,n){super(),this.storageService=e,this.configurationService=t,this.logService=n,this.configuredCommandsHistoryLength=0,this.updateConfiguration(),this.load(),this.registerListeners()}registerListeners(){this._register(this.configurationService.onDidChangeConfiguration(e=>this.updateConfiguration(e))),this._register(this.storageService.onWillSaveState(e=>{e.reason===$W.SHUTDOWN&&this.saveState()}))}updateConfiguration(e){e&&!e.affectsConfiguration(`workbench.commandPalette.history`)||(this.configuredCommandsHistoryLength=N9.getConfiguredCommandHistoryLength(this.configurationService),N9.cache&&N9.cache.limit!==this.configuredCommandsHistoryLength&&(N9.cache.limit=this.configuredCommandsHistoryLength,N9.hasChanges=!0))}load(){let e=this.storageService.get(N9.PREF_KEY_CACHE,0),t;if(e)try{t=JSON.parse(e)}catch(e){this.logService.error(`[CommandsHistory] invalid data: ${e}`)}let n=N9.cache=new LI(this.configuredCommandsHistoryLength,1);if(t){let e;e=t.usesLRU?t.entries:t.entries.sort((e,t)=>e.value-t.value),e.forEach(e=>n.set(e.key,e.value))}N9.counter=this.storageService.getNumber(N9.PREF_KEY_COUNTER,0,N9.counter)}push(e){N9.cache&&(N9.cache.set(e,N9.counter++),N9.hasChanges=!0)}peek(e){return N9.cache?.peek(e)}saveState(){if(!N9.cache||!N9.hasChanges)return;let e={usesLRU:!0,entries:[]};N9.cache.forEach((t,n)=>e.entries.push({key:n,value:t})),this.storageService.store(N9.PREF_KEY_CACHE,JSON.stringify(e),0,0),this.storageService.store(N9.PREF_KEY_COUNTER,N9.counter,0,0),N9.hasChanges=!1}static getConfiguredCommandHistoryLength(e){let t=e.getValue().workbench?.commandPalette?.history;return typeof t==`number`?t:N9.DEFAULT_COMMANDS_HISTORY_LENGTH}};F9=N9=Pwt([j9(0,QW),j9(1,PF),j9(2,FP)],F9);var Fwt=class extends P9{constructor(e,t,n,r,i,a){super(e,t,n,r,i,a)}getCodeEditorCommandPicks(){let e=this.activeTextEditorControl;if(!e)return[];let t=[];for(let n of e.getSupportedActions()){let e;n.metadata?.description&&(e=D$e(n.metadata.description)?n.metadata.description:{original:n.metadata.description,value:n.metadata.description}),t.push({commandId:n.id,commandAlias:n.alias,commandDescription:e,label:sH(n.label)||n.id})}return t}},Iwt=function(e,t,n,r){var i=arguments.length,a=i<3?t:r===null?r=Object.getOwnPropertyDescriptor(t,n):r,o;if(typeof Reflect==`object`&&typeof Reflect.decorate==`function`)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},I9=function(e,t){return function(n,r){t(n,r,e)}},L9=class extends Fwt{get activeTextEditorControl(){return this.codeEditorService.getFocusedCodeEditor()??void 0}constructor(e,t,n,r,i,a){super({showAlias:!1},e,n,r,i,a),this.codeEditorService=t}async getCommandPicks(){return this.getCodeEditorCommandPicks()}hasAdditionalCommandPicks(){return!1}async getAdditionalCommandPicks(){return[]}};L9=Iwt([I9(0,DN),I9(1,kN),I9(2,uV),I9(3,zN),I9(4,PP),I9(5,HR)],L9);var Lwt=class e extends UP{static#e=this.ID=`editor.action.quickCommand`;constructor(){super({id:e.ID,label:AU.quickCommandActionLabel,alias:`Command Palette`,precondition:void 0,kbOpts:{kbExpr:$.focus,primary:59,weight:100},contextMenuOpts:{group:`z_commands`,order:1}})}run(e){e.get(Oq).quickAccess.show(L9.PREFIX)}};X(Lwt),xP.as(Cq.Quickaccess).registerQuickAccessProvider({ctor:L9,prefix:L9.PREFIX,helpEntries:[{description:AU.quickCommandHelp,commandId:Lwt.ID}]});var Rwt=function(e,t,n,r){var i=arguments.length,a=i<3?t:r===null?r=Object.getOwnPropertyDescriptor(t,n):r,o;if(typeof Reflect==`object`&&typeof Reflect.decorate==`function`)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},R9=function(e,t){return function(n,r){t(n,r,e)}},z9=class extends C4{constructor(e,t,n,r,i,a,o){super(!0,e,t,n,r,i,a,o)}};z9=Rwt([R9(1,uP),R9(2,kN),R9(3,WR),R9(4,DN),R9(5,QW),R9(6,PF)],z9),YP(C4.ID,z9,4),X(class extends UP{constructor(){super({id:`editor.action.toggleHighContrast`,label:zZe.toggleHighContrast,alias:`Toggle High Contrast Theme`,precondition:void 0}),this._originalThemeName=null}run(e,t){let n=e.get(IY),r=n.getColorTheme();wR(r.type)?(n.setTheme(this._originalThemeName||(TR(r.type)?`vs-dark`:`vs`)),this._originalThemeName=null):(n.setTheme(TR(r.type)?jY:MY),this._originalThemeName=r.themeName)}});function zwt(e){return new Worker(`/assets/editor.worker-Di51weDy.js`,{name:e?.name})}function Bwt(e){return new Worker(`/assets/ts.worker-DHQ2j8_R.js`,{name:e?.name})}var Vwt=Vd(Zn({__name:`MonacoEditor`,props:{modelValue:{},language:{default:`javascript`},height:{default:`300px`},readonly:{type:Boolean,default:!1},theme:{default:`vs-dark`},extraLib:{}},emits:[`update:modelValue`],setup(e,{emit:t}){if(!window.MonacoEnvironment){window.MonacoEnvironment={getWorker(e,t){return t===`typescript`||t===`javascript`?new Bwt:new zwt}};for(let e of[N1.typescript.javascriptDefaults,N1.typescript.typescriptDefaults])e.setDiagnosticsOptions({noSemanticValidation:!1,noSyntaxValidation:!1,noSuggestionDiagnostics:!1}),e.setCompilerOptions({allowJs:!0,checkJs:!0,target:N1.typescript.ScriptTarget.ES2020,lib:[`es2020`]}),e.setEagerModelSync(!0)}let n=0,r=e,i=t,a=D(),o=null,s=null,c=null;function l(e){c?.dispose(),c=null,e&&(c=N1.typescript.javascriptDefaults.addExtraLib(e,`inmemory://runeya/types.d.ts`))}return ur(()=>{if(!a.value)return;l(r.extraLib);let e=r.language===`markdown`?`md`:r.language===`typescript`?`ts`:`js`,t=Dst.parse(`inmemory://runeya/editor-${++n}.${e}`);s=M1.createModel(r.modelValue,r.language,t),o=M1.create(a.value,{model:s,theme:r.theme,readOnly:r.readonly,minimap:{enabled:!1},scrollBeyondLastLine:!1,automaticLayout:!0,fontSize:13,fontFamily:`'Monaco', 'Menlo', 'Ubuntu Mono', Courier, monospace`,tabSize:2,wordWrap:`on`,wrappingIndent:`indent`,lineNumbers:`on`,renderLineHighlight:`line`,overviewRulerLanes:0,hideCursorInOverviewRuler:!0,scrollbar:{verticalScrollbarSize:8,horizontalScrollbarSize:8},quickSuggestions:!0,suggestOnTriggerCharacters:!0,parameterHints:{enabled:!0}}),o.onDidChangeModelContent(()=>{i(`update:modelValue`,o?.getValue()??``)})}),Ln(()=>r.modelValue,e=>{o&&o.getValue()!==e&&o.setValue(e)}),Ln(()=>r.readonly,e=>o?.updateOptions({readOnly:e})),Ln(()=>r.theme,e=>M1.setTheme(e)),Ln(()=>r.extraLib,l),pr(()=>{c?.dispose(),o?.dispose(),s?.dispose()}),(t,n)=>(k(),A(`div`,{ref_key:`editorContainer`,ref:a,style:De({height:e.height,width:`100%`}),class:`monaco-container`},null,4))}}),[[`__scopeId`,`data-v-219e06d3`]]),Hwt={style:{display:`flex`,gap:`0.5rem`,"flex-wrap":`wrap`}},Uwt=Zn({__name:`RunnerSelector`,props:Fr({showKeep:{type:Boolean,default:!1}},{modelValue:{required:!0},modelModifiers:{}}),emits:[`update:modelValue`],setup(e){let{t}=Hc(),{claudeCodeAvailable:n,codexAvailable:r}=io(Gv()),i=qr(e,`modelValue`);return(a,o)=>(k(),A(`div`,Hwt,[e.showKeep?(k(),di(O(Sd),{key:0,label:O(t)(`aiChatPage.runner.asConfigured`),icon:`pi pi-sliders-h`,severity:i.value===`keep`?`primary`:`secondary`,outlined:i.value!==`keep`,size:`small`,onClick:o[0]||=e=>i.value=`keep`},null,8,[`label`,`severity`,`outlined`])):yi(``,!0),hi(O(Sd),{label:O(t)(`aiChatPage.runner.claudeCode`),icon:`pi pi-sparkles`,disabled:!O(n),title:O(n)?void 0:O(t)(`aiChatPage.runnerNotInstalled`,{runner:`Claude Code`}),severity:i.value===`claude-code`?`primary`:`secondary`,outlined:i.value!==`claude-code`,size:`small`,onClick:o[1]||=e=>!O(n)||(i.value=`claude-code`)},null,8,[`label`,`disabled`,`title`,`severity`,`outlined`]),hi(O(Sd),{label:O(t)(`aiChatPage.runner.codex`),icon:`pi pi-code`,disabled:!O(r),title:O(r)?void 0:O(t)(`aiChatPage.runnerNotInstalled`,{runner:`Codex`}),severity:i.value===`codex`?`primary`:`secondary`,outlined:i.value!==`codex`,size:`small`,onClick:o[2]||=e=>!O(r)||(i.value=`codex`)},null,8,[`label`,`disabled`,`title`,`severity`,`outlined`])]))}}),Wwt=[`src`,`alt`],Gwt={style:{display:`flex`,"flex-direction":`column`,gap:`0.9rem`}},Kwt=[`innerHTML`],qwt={key:0,style:{display:`flex`,"justify-content":`flex-end`}},Jwt={style:{display:`flex`,"flex-direction":`column`,gap:`0.5rem`}},Ywt={style:{opacity:`0.75`,"font-size":`0.9rem`}},Xwt={key:1,style:{display:`flex`,"flex-direction":`column`,gap:`0.5rem`}},Zwt={style:{opacity:`0.75`,"font-size":`0.9rem`}},Qwt={style:{display:`flex`,"flex-direction":`column`,gap:`0.35rem`}},$wt={for:`scenario-model-override`,style:{opacity:`0.75`,"font-size":`0.9rem`}},eTt={style:{display:`flex`,"justify-content":`flex-end`,gap:`0.5rem`}},tTt={style:{display:`flex`,"flex-direction":`column`,gap:`0.75rem`,padding:`0.5rem 0`}},nTt={style:{margin:`0`,"font-size":`0.9rem`,opacity:`0.75`}},rTt={key:1,style:{opacity:`0.55`,"font-size":`0.8rem`}},iTt={style:{display:`flex`,"justify-content":`flex-end`,gap:`0.5rem`,"margin-top":`1rem`}},aTt=Zn({__name:`AiChatModals`,emits:[`confirm-scenario-start`,`confirm-resume-scenario`],setup(e,{expose:t,emit:n}){let{t:r}=Hc(),i=Xc(),{providers:a}=io(Gv()),{connectedAgents:o}=io(dy()),s=ji(()=>{let e=[{label:r(`scenarioSelector.defaultAgent`),value:void 0}];for(let t of o.value)e.push({label:t.config.name||t.config.id,value:t.config.id});return e}),c=D(!1),l=D(``),u=D(``);function d(e,t){l.value=e,u.value=t,c.value=!0}let f=n,p=D(!1),m=D(null),h=D(void 0),g=D(``),_=D(`keep`),v=D(``),y=D(void 0),b=ji(()=>_.value===`codex`),x=D(!1);function S(e,t,n,r,i){m.value=e,h.value=r,g.value=t??``,_.value=n??`keep`,v.value=``,y.value=i,p.value=!0}async function C(){let e=g.value.trim();if(e){x.value=!0;try{g.value=(await yp.chat.enhanceScenarioPrompt.mutate({text:e,providerId:h.value})).enhanced}catch(e){i.add({severity:`error`,summary:r(`common.error`),detail:e.message,life:4e3})}finally{x.value=!1}}}function w(){let e=m.value;if(!e)return;let t=g.value.trim();p.value=!1,f(`confirm-scenario-start`,e,t,_.value,v.value,h.value,y.value)}let ee=D(!1),te=D(`keep`),ne=D(void 0);function T(){ee.value=!0}function re(){ee.value=!1,f(`confirm-resume-scenario`,te.value,ne.value)}return t({openImagePreview:d,showScenarioDialog:S,showResumeScenarioDialog:T}),(e,t)=>(k(),A(ri,null,[hi(O(Nd),{visible:c.value,"onUpdate:visible":t[2]||=e=>c.value=e,modal:``,closable:!0,"show-header":!1,style:{background:`rgba(0,0,0,0.85)`,padding:0,maxWidth:`90vw`,maxHeight:`90vh`},pt:{content:{style:`padding:0;background:transparent;display:flex;align-items:center;justify-content:center;position:relative;`}},autofocus:``,onClick:t[3]||=e=>c.value=!1},{default:Mn(()=>[j(`img`,{src:l.value,alt:u.value,style:{"max-width":`90vw`,"max-height":`90vh`,"object-fit":`contain`,display:`block`},onClick:t[0]||=Pa(()=>{},[`stop`])},null,8,Wwt),j(`button`,{style:{position:`absolute`,top:`8px`,right:`8px`,background:`rgba(0,0,0,0.6)`,border:`none`,color:`white`,width:`32px`,height:`32px`,"border-radius":`50%`,cursor:`pointer`,"font-size":`18px`,display:`flex`,"align-items":`center`,"justify-content":`center`},onClick:t[1]||=e=>c.value=!1},`×`)]),_:1},8,[`visible`]),hi(O(Nd),{visible:p.value,"onUpdate:visible":t[9]||=e=>p.value=e,header:O(r)(`aiChatPage.startScenario`),modal:``,style:{width:`560px`}},{default:Mn(()=>[j(`div`,Gwt,[j(`p`,{style:{margin:`0`,opacity:`0.7`},innerHTML:O(r)(`aiChatPage.describeUserNeed`)},null,8,Kwt),hi(Vwt,{modelValue:g.value,"onUpdate:modelValue":t[4]||=e=>g.value=e,language:`markdown`,height:`200px`,theme:`vs-dark`},null,8,[`modelValue`]),O(a).length>0?(k(),A(`div`,qwt,[hi(O(Sd),{label:O(r)(`aiChatPage.enhanceWithAI`),icon:`pi pi-sparkles`,size:`small`,severity:`secondary`,loading:x.value,disabled:!g.value.trim()||x.value,onClick:C},null,8,[`label`,`loading`,`disabled`])])):yi(``,!0),j(`div`,Jwt,[j(`label`,Ywt,E(O(r)(`aiChatPage.aiRunner`)),1),hi(Uwt,{modelValue:_.value,"onUpdate:modelValue":t[5]||=e=>_.value=e,"show-keep":!0},null,8,[`modelValue`])]),O(o).length>1?(k(),A(`div`,Xwt,[j(`label`,Zwt,E(O(r)(`aiChatPage.agentOverride`)),1),hi(O(ly),{modelValue:y.value,"onUpdate:modelValue":t[6]||=e=>y.value=e,options:s.value,"option-label":`label`,"option-value":`value`},null,8,[`modelValue`,`options`])])):yi(``,!0),j(`div`,Qwt,[j(`label`,$wt,E(O(r)(`aiChatPage.modelOverrideOptional`)),1),hi(O(ty),{id:`scenario-model-override`,modelValue:v.value,"onUpdate:modelValue":t[7]||=e=>v.value=e,maxlength:128,disabled:b.value,placeholder:b.value?O(r)(`aiChatPage.notAvailableWithCodex`):`Ex: sonnet, opus...`},null,8,[`modelValue`,`disabled`,`placeholder`])]),j(`div`,eTt,[hi(O(Sd),{label:O(r)(`actions.cancel`),severity:`secondary`,text:``,onClick:t[8]||=e=>p.value=!1},null,8,[`label`]),hi(O(Sd),{label:O(r)(`actions.create`),icon:`pi pi-play`,onClick:w},null,8,[`label`])])])]),_:1},8,[`visible`,`header`]),hi(O(Nd),{visible:ee.value,"onUpdate:visible":t[13]||=e=>ee.value=e,header:O(r)(`aiChatPage.scenario.resumeTitle`),modal:``,style:{width:`400px`},onKeydown:Fa(Pa(re,[`prevent`]),[`enter`])},{default:Mn(()=>[j(`div`,tTt,[j(`p`,nTt,E(O(r)(`aiChatPage.resumeRunnerQuestion`)),1),hi(Uwt,{modelValue:te.value,"onUpdate:modelValue":t[10]||=e=>te.value=e,"show-keep":!0},null,8,[`modelValue`]),O(o).length>1?(k(),di(O(ly),{key:0,modelValue:ne.value,"onUpdate:modelValue":t[11]||=e=>ne.value=e,options:s.value,"option-label":`label`,"option-value":`value`,style:{"margin-top":`0.25rem`}},null,8,[`modelValue`,`options`])):yi(``,!0),te.value===`keep`?yi(``,!0):(k(),A(`small`,rTt,[vi(E(O(r)(`aiChatPage.resumeRunnerHintPrefix`))+` `,1),j(`strong`,null,E(te.value===`claude-code`?O(r)(`aiChatPage.runner.claudeCode`):O(r)(`aiChatPage.runner.codex`)),1),t[14]||=vi(`. `,-1)]))]),j(`div`,iTt,[hi(O(Sd),{label:O(r)(`actions.cancel`),severity:`secondary`,text:``,onClick:t[12]||=e=>ee.value=!1},null,8,[`label`]),hi(O(Sd),{label:O(r)(`aiChatPage.resume`),icon:`pi pi-play`,onClick:re},null,8,[`label`])])]),_:1},8,[`visible`,`header`,`onKeydown`])],64))}});const oTt=ro(`kanban`,()=>{let e=D([]),t=D(!1),n=D(null),r=ji(()=>e.value.filter(e=>!e.archived)),i=ji(()=>e.value.filter(e=>e.archived));async function a(r=!0){t.value=!0,n.value=null;try{e.value=await yp.kanban.list.query({includeArchived:r})}catch(e){n.value=Vv(e)??`Failed to fetch boards`}finally{t.value=!1}}async function o(t){n.value=null;try{let n=await yp.kanban.get.query({id:t}),r=e.value.findIndex(e=>e.id===t);if(r>=0){let t=[...e.value];t[r]=n,e.value=t}else e.value=[...e.value,n];return n}catch(e){return n.value=Vv(e)??`Failed to fetch board`,null}}async function s(t){n.value=null;try{let n=await yp.kanban.create.mutate(t);return e.value=[...e.value,n],n}catch(e){return n.value=Vv(e)??`Failed to create board`,null}}async function c(t,r){n.value=null;try{let n=await yp.kanban.update.mutate({id:t,...r}),i=e.value.findIndex(e=>e.id===t);if(i>=0){let t=[...e.value];t[i]=n,e.value=t}return n}catch(e){return n.value=Vv(e)??`Failed to update board`,null}}async function l(t){n.value=null;try{return await yp.kanban.delete.mutate({id:t}),e.value=e.value.filter(e=>e.id!==t),!0}catch(e){return n.value=Vv(e)??`Failed to delete board`,!1}}async function u(e){return c(e,{archived:!0})}async function d(e){return c(e,{archived:!1})}let f=null;function p(){f||=yp.kanban.onChanged.subscribe(void 0,{onData(t){if(t.type===`updated`||t.type===`created`){let n=t.board,r=e.value.findIndex(e=>e.id===n.id);if(r>=0){let t=[...e.value];t[r]=n,e.value=t}else t.type===`created`&&(e.value=[...e.value,n])}else t.type===`deleted`&&(e.value=e.value.filter(e=>e.id!==t.id))}})}function m(){f?.unsubscribe(),f=null}return{boards:e,loading:t,error:n,activeBoards:r,archivedBoards:i,fetchAll:a,fetchOne:o,create:s,update:c,remove:l,archive:u,unarchive:d,subscribeToChanges:p,unsubscribeFromChanges:m}});var B9=D(null),V9=D(null);function sTt(){function e(e){B9.value=e,V9.value=null}function t(e){V9.value=e}function n(){B9.value=null}function r(){V9.value=null}return{pendingConvId:B9,generatedCode:V9,setPendingConv:e,setGeneratedCode:t,clear:n,clearResult:r}}var cTt={class:`ai-chat-page__main`},lTt={key:0,class:`ai-chat-page__empty`},uTt={class:`ai-chat-page__header`},dTt={class:`ai-chat-page__header-left`},fTt={class:`ai-chat-page__header-title`},pTt={key:1},mTt={class:`ai-chat-page__conv-meta`},hTt={key:0,class:`ai-chat-page__runner-badge`},gTt=[`title`],_Tt={class:`ai-chat-page__context-progress-bar`},vTt={class:`ai-chat-page__context-progress-label`},yTt=[`title`],bTt={class:`ai-chat-page__header-actions`},xTt=Vd(Zn({__name:`AiChatPage`,setup(e){let{t}=Hc(),n=wu(),r=oTt(),i=Xc(),a=Gv(),o=uy(),{activeId:s,activeConversation:c,isStreaming:l,streamingConvId:u,activeContextUsage:d,contextPercent:f}=io(a),p=ji(()=>{let e=c.value;if(!e||e.workflowType===`scenario`)return null;let t=e.runner??(e.isCli&&!e.providerId?`claude-code`:null);if(t===`codex`)return`Codex`;if(t===`claude-code`)return`Claude Code`;if(e.providerId){let t=a.providers.find(t=>t.id===e.providerId);if(t)return t.label}return null}),m=D(``),h=D(!1),g=D(!1),_=D(!1),v=D(``),y=D(null);function b(){c.value&&(v.value=c.value.title,_.value=!0,xn(()=>y.value?.select()))}async function x(){if(!c.value)return;let e=v.value.trim();e&&await a.renameConversation(c.value.id,e),_.value=!1}function S(){_.value=!1}function C(e){navigator.clipboard.writeText(e),i.add({severity:`success`,summary:t(`aiChat.conversationIdCopied`),life:2e3})}let w=D(null),ee=D(null),te=D(null),ne=D([]),T=0,re=()=>new Date().toISOString(),ie=null,ae=ji(()=>l.value&&u.value===s.value);function oe(){return c.value?.workflowType===`scenario`?ee.value?.messagesEl??null:w.value?.messagesEl??null}function se(){let e=oe();if(!e)return!0;let{scrollTop:t,scrollHeight:n,clientHeight:r}=e;return n-t-r<80}async function ce(e=!1){if(!e&&!se())return;await xn();let t=oe();t&&(t.scrollTop=t.scrollHeight),t?.querySelectorAll(`.ai-chat-scenario-view__thinking-content, .ai-chat-message-list__thinking-content`).forEach(e=>{e.scrollTop=e.scrollHeight})}function le(){s.value=null,h.value=!0,a.pendingNewConversation=!0,g.value=!1}function ue(e){a.pendingNewConversation=!1,a.selectConversation(e),g.value=!1,h.value=!1,ee.value?.resetNodeSelection()}async function de(e){a.deleteConversation(e)}async function fe(e=`keep`,t,n){h.value=!1,a.pendingNewConversation=!1,await a.createConversation({runner:e===`keep`?void 0:e,providerId:e===`keep`?t??void 0:void 0,agentId:n}),m.value=``}function pe(e,t,n,r){h.value=!1,a.pendingNewConversation=!1,te.value?.showScenarioDialog(e,void 0,t,n??void 0,r)}async function me(e,n,r,o,s,c){try{let t=await a.createConversation({scenarioId:e,scenarioInput:n,title:n?`Scenario: ${n}`:`Scenario conversation`,providerId:s,agentId:c});if(await ce(!0),n&&t){let i=r===`codex`?``:o.trim(),s=r!==`keep`||i||c?{...r===`keep`?{}:{runnerOverride:r},...i?{modelOverride:i}:{},...c?{agentId:c}:{}}:void 0;a.startScenarioRun(t.id,e,n,()=>ce(!1),s)}}catch(e){i.add({severity:`error`,summary:t(`common.error`),detail:e.message,life:4e3})}}async function he(){let e=c.value;!e||e.workflowType!==`scenario`||await a.stopScenario(e.id)}function ge(){te.value?.showResumeScenarioDialog()}async function _e(e,n){let r=c.value;if(!r)return;let o=e===`keep`?void 0:e;try{await a.resumeScenario(r.id,()=>ce(!1),{...o?{runnerOverride:o}:{},...n?{agentId:n}:{}})}catch(e){i.add({severity:`error`,summary:t(`common.error`),detail:e.message,life:4e3})}}async function ve(){let e=m.value.trim(),{pendingContext:n,pendingPopulateContext:r}=Bv();if(!e&&a.pendingImages.length===0&&!n.value&&!r.value||(!e&&n.value&&(e=`Voici le contexte ci-joint, aide-moi à avancer.`),!e&&r.value&&(e=r.value),!c.value&&(await fe(),!c.value)))return;let o=c.value;try{if(o.workflowType===`scenario`){if(o.scenarioRunning)return;m.value=``,a.startScenarioRun(o.id,o.workflowId,e,()=>ce(!1),o.scenarioRunOverrides),await ce(!0);return}m.value=``,r.value=null,await a.send(e,ce)}catch(e){i.add({severity:`error`,summary:t(`common.error`),detail:e.message,life:3500})}}function ye(e,t){let n=null;Ln(u,t=>{t&&e(t)&&(n=t)}),Ln(l,async e=>{if(e||!n)return;let r=n;n=null,await t(r),await a.deleteConversation(r),Bv().close()})}ye(e=>{let t=a.conversations.find(t=>t.id===e);return!!(t?.kanbanBoardId&&!t.kanbanCardId)},async e=>{let t=a.conversations.find(t=>t.id===e)?.kanbanBoardId;t&&n.currentRoute.value.name===`kanban-board`&&await r.fetchOne(t)});let be=sTt();ye(e=>e===be.pendingConvId.value,async e=>{be.clear();let t=a.conversations.find(t=>t.id===e);if(!t)return;let n=t.messages.filter(e=>e.role===`assistant`),r=n[n.length-1];if(r?.content){let e=r.content.match(/```(?:javascript|js|typescript|ts)?\n([\s\S]+?)```/);e&&be.setGeneratedCode(e[1].trim())}}),Ln(()=>c.value?.id,async e=>{ee.value?.resetNodeSelection(),e&&c.value?.workflowType===`scenario`&&await o.fetchScenarios()}),Ln(s,e=>{e&&(h.value=!1),xn(()=>ce(!0))},{flush:`sync`});let{autoSendPending:xe,hideSidebar:Se}=Bv();async function Ce(){!xe.value||!c.value||(xe.value=!1,await xn(),ve())}return Ln([xe,c],()=>Ce()),ur(async()=>{Uv()&&console.time(`[ai-chat][page] mount`),Uv()&&console.log(`[ai-chat][page]`,re(),`mounted`,{drawerHideSidebar:Se.value,activeId:s.value}),a.isChatPageVisible=!0,await a.init(),a.setScrollCallback(ce),o.fetchScenarios(),yp.scenario.listPresets.query().then(e=>{ne.value=e}).catch(()=>{}),xn(()=>ce(!0)),Ce(),ie||=setInterval(()=>{let e=a.refreshStreamingSessions;typeof e==`function`?e():a.init()},1500),Uv()&&console.timeEnd(`[ai-chat][page] mount`)}),fr(()=>{T+=1,Uv()&&console.log(`[ai-chat][page]`,re(),`updated`,{count:T,activeId:s.value,hasConversation:!!c.value,isStreaming:l.value,drawerHideSidebar:Se.value})}),mr(()=>{Uv()&&console.log(`[ai-chat][page]`,re(),`unmounted`,{updates:T,activeId:s.value}),ie&&=(clearInterval(ie),null),a.isChatPageVisible=!1,a.setScrollCallback(()=>{})}),(e,n)=>{let r=vr(`router-link`);return k(),A(ri,null,[j(`div`,{class:Me([`ai-chat-page`,{"ai-chat-page--no-sidebar":O(Se)}])},[O(Se)?yi(``,!0):(k(),A(`div`,{key:0,class:Me([`ai-chat-page__sidebar-wrap`,{"ai-chat-page__sidebar-wrap--open":g.value}])},[hi(HOe,{onStartNew:le,onSelectConversation:ue,onDeleteConversation:de})],2)),g.value&&!O(Se)?(k(),A(`div`,{key:1,class:`ai-chat-page__backdrop`,onClick:n[0]||=e=>g.value=!1})):yi(``,!0),j(`section`,cTt,[h.value||!O(c)?(k(),A(`div`,lTt,[hi(O(Sd),{class:`ai-chat-page__menu-btn ai-chat-page__menu-btn--empty`,icon:`pi pi-bars`,text:``,rounded:``,size:`small`,onClick:n[1]||=e=>g.value=!g.value}),hi(SDe,{onSelectScenario:pe,onSkip:fe})])):(k(),A(ri,{key:1},[j(`header`,uTt,[j(`div`,dTt,[hi(O(Sd),{class:`ai-chat-page__menu-btn`,icon:`pi pi-bars`,text:``,rounded:``,size:`small`,onClick:n[2]||=e=>g.value=!g.value}),j(`div`,fTt,[_.value?Nn((k(),A(`input`,{key:0,ref_key:`renameInputEl`,ref:y,"onUpdate:modelValue":n[3]||=e=>v.value=e,class:`ai-chat-page__rename-input`,onKeydown:[Fa(x,[`enter`]),Fa(S,[`escape`])],onBlur:x},null,544)),[[Ta,v.value]]):(k(),A(`h2`,pTt,E(O(c).title),1)),j(`div`,mTt,[p.value?(k(),A(`span`,hTt,E(p.value),1)):yi(``,!0),O(d)?(k(),A(`div`,{key:1,class:`ai-chat-page__context-progress`,title:`Context: ${O(d).inputTokens.toLocaleString()} / ${O(d).contextWindow.toLocaleString()} tokens`},[j(`div`,_Tt,[j(`div`,{class:Me([`ai-chat-page__context-progress-fill`,{"ai-chat-page__context-progress-fill--warn":O(f)>=70,"ai-chat-page__context-progress-fill--danger":O(f)>=90}]),style:De({width:O(f)+`%`})},null,6)]),j(`span`,vTt,E(O(f))+`%`,1)],8,gTt)):yi(``,!0),O(c).kanbanBoardId?(k(),di(r,{key:2,to:{name:`kanban-board`,params:{id:O(c).kanbanBoardId},query:O(c).kanbanCardId?{card:O(c).kanbanCardId}:{}},class:`ai-chat-page__kanban-link`,title:`Ouvrir le tableau Kanban`},{default:Mn(()=>[...n[10]||=[j(`i`,{class:`pi pi-table`,style:{"font-size":`0.7rem`}},null,-1),vi(` Kanban `,-1)]]),_:1},8,[`to`])):yi(``,!0),O(c).id?(k(),A(`span`,{key:3,class:`ai-chat-page__conv-id`,title:O(c).id,onClick:n[4]||=e=>C(O(c).id)},`ID: `+E(O(c).id.slice(0,8))+`…`,9,yTt)):yi(``,!0)])])]),j(`div`,bTt,[O(c).workflowType===`scenario`&&O(c).scenarioRunning?(k(),di(O(Sd),{key:0,size:`small`,severity:`danger`,icon:`pi pi-stop`,label:`Stop`,onClick:he})):yi(``,!0),hi(O(Sd),{size:`small`,text:``,icon:`pi pi-pencil`,title:O(t)(`aiChat.rename`),onClick:b},null,8,[`title`]),hi(O(Sd),{size:`small`,text:``,icon:`pi pi-inbox`,title:O(t)(`aiChat.archive`),onClick:n[5]||=e=>O(a).archiveConversation(O(c).id,!0)},null,8,[`title`]),hi(O(Sd),{size:`small`,text:``,icon:`pi pi-trash`,severity:`danger`,onClick:n[6]||=e=>O(a).deleteConversation(O(c).id)})])]),O(c).workflowType===`scenario`?(k(),di(GRe,{key:0,ref_key:`scenarioViewRef`,ref:ee,"available-presets":ne.value,onClickResume:ge},null,8,[`available-presets`])):(k(),di(cje,{key:1,ref_key:`messageListRef`,ref:w,messages:O(c).messages,"is-streaming":O(l),onOpenImagePreview:n[7]||=(e,t)=>te.value?.openImagePreview(e,t)},null,8,[`messages`,`is-streaming`])),O(c).workflowType===`scenario`?yi(``,!0):(k(),di(Rje,{key:2,input:m.value,"onUpdate:input":n[8]||=e=>m.value=e,"is-streaming":O(l),"is-streaming-current-conv":ae.value,"active-conversation-id":O(c).id,onSubmit:ve,onOpenImagePreview:n[9]||=(e,t)=>te.value?.openImagePreview(e,t)},null,8,[`input`,`is-streaming`,`is-streaming-current-conv`,`active-conversation-id`]))],64))])],2),hi(aTt,{ref_key:`modalsRef`,ref:te,onConfirmScenarioStart:me,onConfirmResumeScenario:_e},null,512)],64)}}}),[[`__scopeId`,`data-v-0c7dbea0`]]),H9=`runeya:last-project`,STt=`runeya:launch-selection:`;const U9=ro(`launch`,()=>{let e=localStorage.getItem(H9),t=D(e),n=D(!!e);function r(e){try{let t=localStorage.getItem(STt+e);if(!t)return[];let n=JSON.parse(t);return Array.isArray(n)?n.filter(e=>typeof e==`string`):[]}catch{return[]}}function i(e,t){localStorage.setItem(STt+e,JSON.stringify(t))}function a(e){t.value=e,localStorage.setItem(H9,e)}function o(){return localStorage.getItem(H9)}function s(){n.value=!0}function c(){t.value=null,n.value=!1,localStorage.removeItem(H9)}function l(e,t){let n=r(e);n.includes(t)||(n.push(t),i(e,n))}function u(e,t){i(e,r(e).filter(e=>e!==t))}return{activeProjectId:t,launchCompleted:n,getSavedSelection:r,saveSelection:i,setActiveProject:a,getLastProjectId:o,completeLaunch:s,resetLaunch:c,addServiceToSelection:l,removeServiceFromSelection:u}});var W9={scenario_waiting_input:!0,ai_conversation_complete:!0,ai_conversation_error:!0,service_error_log:!0,service_status_changed:!0,service_health_changed:!0},CTt=0,wTt=500,TTt=80,ETt=new Set(Object.keys(W9));function DTt(e){if(!e)return;let t=e.trim();if(!(!t||!t.startsWith(`/`)||t.startsWith(`//`)))try{let e=new URL(t,window.location.origin);return e.origin===window.location.origin?`${e.pathname}${e.search}${e.hash}`:void 0}catch{return}}function G9(e,t){let n=e.trim();return n.length>t?`${n.slice(0,t-3)}...`:n}function OTt(e){let t={};for(let[n,r]of Object.entries(e)){if(typeof r!=`boolean`)continue;let e=n;ETt.has(e)&&(t[e]=r)}return t}const K9=ro(`notification`,()=>{let e=D([]),t=D({...W9}),n=D(!1),r=ji(()=>e.value.filter(e=>!e.read).length),i=ji(()=>Object.entries(t.value).filter(([,e])=>e).map(([e])=>e));function a(e){return t.value[e]}function o(t){if(!a(t.category))return;let n=DTt(t.link);CTt++,e.value=[{id:`notif-${CTt}`,type:t.type,category:t.category,title:G9(t.title,wTt),message:G9(t.message,wTt),link:n,linkLabel:t.linkLabel?G9(t.linkLabel,TTt):void 0,timestamp:Date.now(),read:!1},...e.value]}function s(t){e.value=e.value.map(e=>e.id===t?{...e,read:!0}:e)}function c(){e.value=e.value.map(e=>({...e,read:!0}))}function l(t){e.value=e.value.filter(e=>e.id!==t)}function u(){e.value=[]}async function d(){if(!n.value){n.value=!0;try{let e=await yp.settings.getNotificationPreferences.query();t.value={...W9,...e}}finally{n.value=!1}}}async function f(e){let r=OTt(e);if(Object.keys(r).length===0)return t.value;n.value=!0;try{let e=await yp.settings.updateNotificationPreferences.mutate(r);return t.value={...W9,...e},t.value}finally{n.value=!1}}return{notifications:e,unreadCount:r,preferences:t,enabledCategories:i,preferencesLoading:n,isCategoryEnabled:a,add:o,markRead:s,markAllRead:c,remove:l,clear:u,loadPreferences:d,updatePreferences:f}});var kTt=5,ATt=Mv,jTt=5e3,MTt=`runeya:ws-debug`;function NTt(){try{return localStorage.getItem(MTt)===`1`}catch{return!1}}function q9(...e){NTt()&&console.log(`[process.store][ws]`,new Date().toISOString(),...e)}const PTt=ro(`process`,()=>{let e=D([]),t=D(!1),n=D(null),r=D({}),i=null,a=0,o=null,s=null,c=new Map,l=new Map,u=new Map,d=new Map,f=ji(()=>e.value.length),p=ji(()=>e.value.filter(e=>e.state===`running`)),m=ji(()=>(t,n)=>e.value.find(e=>e.agentId===t&&e.id===n)??null),h=ji(()=>t=>e.value.filter(e=>e.serviceId===t));function g(e,t){return`${e}::${t}`}function _(e,t){return`/process/${e}/${t}`}function v(e){return Hv().getById(e)?.name??e}function y(e,t){if(e.state===t.state)return;let n=K9(),r=v(t.serviceId),i=t.state===`errored`;n.add({type:i?`error`:`info`,category:`service_status_changed`,title:i?`Service errored`:`Service status changed`,message:`${r}: ${e.state} -> ${t.state}`,link:_(t.agentId,t.id),linkLabel:`Open ${r}`})}function b(e,t){if(e.healthStatus===t.healthStatus)return;let n=K9(),r=v(t.serviceId),i=t.healthStatus===`unhealthy`?`warn`:t.healthStatus===`healthy`?`success`:`info`;n.add({type:i,category:`service_health_changed`,title:`Service health changed`,message:`${r}: ${e.healthStatus} -> ${t.healthStatus}`,link:_(t.agentId,t.id),linkLabel:`Open ${r}`})}function x(e){let t=d.get(e);if(!t||t.size<=400)return;let n=Array.from(t).slice(-200);d.set(e,new Set(n))}function S(e,t){let n=g(e.agentId,e.id),r=Date.now();if(r-(u.get(n)??0)<jTt)return;let i=d.get(n)??new Set;if(i.has(t.id))return;i.add(t.id),d.set(n,i),x(n),u.set(n,r);let a=K9(),o=v(e.serviceId),s=t.message.length>180?`${t.message.slice(0,177)}...`:t.message;a.add({type:`error`,category:`service_error_log`,title:`Error log on ${o}`,message:s,link:_(e.agentId,e.id),linkLabel:`Open ${o}`})}function C(e){let t=l.get(e);t&&(t.unsubscribe(),l.delete(e),u.delete(e),d.delete(e))}function w(){let t=new Set(e.value.filter(e=>e.state===`running`||e.state===`starting`).map(e=>g(e.agentId,e.id)));for(let e of Array.from(l.keys()))t.has(e)||C(e);for(let t of e.value){if(t.state!==`running`&&t.state!==`starting`)continue;let n=g(t.agentId,t.id);if(l.has(n))continue;let r=yp.process.onLog.subscribe({agentId:t.agentId,processId:t.id},{onData(n){let r=n,i=e.value.find(e=>e.id===t.id&&e.agentId===t.agentId);if(i)for(let e of r)(e.level===`error`||e.level===`fatal`)&&S(i,e)},onError(){C(n)}});l.set(n,r)}}function ee(t){let n=e.value.find(e=>e.id===t.id&&e.agentId===t.agentId),i=e.value.findIndex(e=>e.id===t.id&&e.agentId===t.agentId);if(i>=0){let n=[...e.value];n[i]=t,e.value=n}else e.value=[...e.value,t];r.value={...r.value,[g(t.agentId,t.id)]:Date.now()},n&&(y(n,t),b(n,t)),w()}function te(e,t){let n=g(e.agentId,e.id),i=c.get(n);i&&(clearTimeout(i),c.delete(n));let a=setTimeout(()=>{c.delete(n),(r.value[n]??0)<=t&&ee(e)},900);c.set(n,a)}function ne(){q9(`subscribeStatus()`),i=yp.process.onStatus.subscribe({},{onData(e){a=0,q9(`onStatus data`,{id:e.id,agentId:e.agentId,state:e.state}),ee(e)},onError(e){i=null,console.error(`[process.store] Status subscription error:`,e.message),q9(`onStatus error`,e.message,{retryCount:a}),T()}})}function T(){if(a>=kTt){console.warn(`[process.store] Max retries (${kTt}) reached for status subscription`),q9(`scheduleRetry max reached`,{retryCount:a});return}let e=ATt*2**a+Math.random()*300;q9(`scheduleRetry`,{retryCount:a,delay:e}),a++,o=setTimeout(()=>{o=null,q9(`retry timer fired`),ne()},e)}function re(e=!1){q9(`startStatusStream()`,{force:e,hasSub:!!i,hasRetryTimer:!!o}),s||=ip(()=>{q9(`onWsReopen — forcing status stream restart`),a=0,re(!0)}),o&&(clearTimeout(o),o=null,q9(`cleared pending retry timer`)),e&&i&&(i.unsubscribe(),i=null,q9(`forced unsubscribe existing statusSub`)),!i&&(a=0,ne())}function ie(){q9(`stopStatusStream()`),s&&=(s(),null),c.forEach(e=>clearTimeout(e)),c.clear(),o&&=(clearTimeout(o),null),i&&=(i.unsubscribe(),null);for(let e of Array.from(l.keys()))C(e);a=0}async function ae(){t.value=!0,n.value=null;try{e.value=await yp.process.list.query(),w()}catch(e){n.value=Vv(e)??`Failed to fetch processes`}finally{t.value=!1}}async function oe(e,t){n.value=null;try{let n=Date.now(),r=await yp.process.start.mutate({agentId:e,processId:t});te(r,n);let i=U9();return i.activeProjectId&&r.serviceId&&i.addServiceToSelection(i.activeProjectId,r.serviceId),r}catch(e){throw n.value=Vv(e)??`Failed to start process`,e}}async function se(e,t){n.value=null;try{let n=Date.now(),r=await yp.process.stop.mutate({agentId:e,processId:t});te(r,n);let i=U9();return i.activeProjectId&&r.serviceId&&i.removeServiceFromSelection(i.activeProjectId,r.serviceId),r}catch(e){throw n.value=Vv(e)??`Failed to stop process`,e}}async function ce(e,t){n.value=null;try{let n=Date.now(),r=await yp.process.restart.mutate({agentId:e,processId:t});return te(r,n),r}catch(e){throw n.value=Vv(e)??`Failed to restart process`,e}}return{processes:e,loading:t,error:n,processCount:f,runningProcesses:p,getById:m,getByService:h,fetchAll:ae,start:oe,stop:se,restart:ce,startStatusStream:re,stopStatusStream:ie}});async function J9(e){await e.loadPreferences().catch(()=>{}),e.initTrpcWs(),e.startStatusStream()}var FTt=[`title`],ITt={key:0,class:`disconnected-overlay`},LTt={class:`disconnected-box`},RTt={class:`disconnected-title`},zTt={class:`disconnected-subtitle`},BTt=5e3,VTt=Vd(Zn({__name:`App`,setup(e){let t={"runeya:locale":B_([`fr`,`en`]),"runeya-dark-mode":B_([`0`,`1`]),"runeya-theme-color":B_([`slate`,`orange`,`amber`,`emerald`,`teal`,`sky`,`blue`,`violet`,`pink`,`custom`]),"runeya-theme-preset":B_([`aura`,`lara`,`material`,`nora`]),"runeya-theme-gradient":B_([`0`,`1`]),"runeya-mode":B_([`local-simple`,`cloud`]),"runeya-cloud-url":P().url().max(2048),"runeya-setup-complete":H_(`1`),"runeya:mode":B_([`local-simple`,`cloud`]),"runeya:cloudUrl":P().url().max(2048),"runeya:ai-chat-model":P().max(200),"runeya:ai-chat-effort":B_([`low`,`medium`,`high`])};function n(){for(let[e,n]of Object.entries(t)){let t=localStorage.getItem(e);t!==null&&(n.safeParse(t).success||(console.warn(`[localStorage] Invalid value for "${e}", clearing:`,t),localStorage.removeItem(e)))}}n();let{t:r}=Hc(),i=wu(),a=PTt(),o=K9(),{state:s}=Mhe(),{isOpen:c,isExpanded:l,toggle:u,close:d}=Bv(),f=()=>new Date().toISOString();function p(){Uv()&&console.log(`[ai-chat][drawer]`,f(),`show`,{expanded:l.value,route:i.currentRoute.value.fullPath})}function m(){Uv()&&console.log(`[ai-chat][drawer]`,f(),`hide`,{expanded:l.value,route:i.currentRoute.value.fullPath})}function h(e){e.ctrlKey&&e.shiftKey&&e.code===`Space`&&e.preventDefault()}function g(e){e.ctrlKey&&e.shiftKey&&e.code===`Space`&&u()}let _=new Set([`unlock`,`setup`,`setup-key`]),v=ji(()=>_.has(i.currentRoute.value.name)),y=!1,b=null;return Ln(s,(e,t)=>{if(e!==`connected`){b===null&&(b=Date.now());return}let n=b===null?0:Date.now()-b;if(b=null,!y){y=!0;return}t!==`connected`&&!v.value&&n>=BTt&&window.location.reload()}),ur(()=>{window.addEventListener(`keydown`,h),window.addEventListener(`keyup`,g),!v.value&&Qf()&&J9({loadPreferences:()=>o.loadPreferences(),initTrpcWs:vp,startStatusStream:()=>a.startStatusStream()})}),mr(()=>{a.stopStatusStream(),window.removeEventListener(`keydown`,h),window.removeEventListener(`keyup`,g)}),Ln(()=>i.currentRoute.value.name,(e,t)=>{let n=_.has(t??``),r=_.has(e??``);n&&!r&&Qf()&&J9({loadPreferences:()=>o.loadPreferences(),initTrpcWs:vp,startStatusStream:()=>a.startStatusStream()})}),(e,t)=>(k(),A(ri,null,[hi(O(ud)),hi(O(Ld)),hi(Tme,null,{default:Mn(()=>[hi(O(Cu))]),_:1}),hi(O(Bd),{visible:O(c),"onUpdate:visible":t[1]||=e=>en(c)?c.value=e:null,position:`right`,"show-close-icon":!1,onShow:p,onHide:m,pt:{root:{style:`width: ${O(l)?`calc(100vw - 70px)`:`560px`}; padding: 0; transition: width 0.25s ease; overflow: visible;`},header:{style:`display: none;`},content:{style:`padding: 0; display: flex; flex-direction: column; height: 100%; overflow: hidden;`}}},{default:Mn(()=>[j(`button`,{class:`ai-drawer-expand-btn`,title:O(l)?O(r)(`drawer.collapse`):O(r)(`drawer.expand`),onClick:t[0]||=e=>l.value=!O(l)},[j(`i`,{class:Me([`pi`,O(l)?`pi-chevron-right`:`pi-chevron-left`])},null,2)],8,FTt),hi(xTt)]),_:1},8,[`visible`,`pt`]),hi(zi,{name:`overlay`},{default:Mn(()=>[O(s)!==`connected`&&!v.value?(k(),A(`div`,ITt,[j(`div`,LTt,[t[2]||=j(`i`,{class:`pi pi-cloud-slash disconnected-icon`},null,-1),j(`h1`,RTt,E(O(r)(`connection.unreachable`)),1),j(`p`,zTt,E(O(r)(`connection.reconnecting`)),1),t[3]||=j(`i`,{class:`pi pi-spin pi-spinner disconnected-spinner`},null,-1)])])):yi(``,!0)]),_:1})],64))}}),[[`__scopeId`,`data-v-f993f0bc`]]);const Y9=Hde({history:Cde(),routes:[{path:`/unlock`,name:`unlock`,component:()=>tp(()=>import(`./UnlockPage-CmwRV1XA.js`),__vite__mapDeps([2,3,4,5,6]))},{path:`/setup`,name:`setup`,component:()=>tp(()=>import(`./SetupPage-BsWaVllB.js`),__vite__mapDeps([7,3,4,8,9]))},{path:`/setup-key`,name:`setup-key`,component:()=>tp(()=>import(`./SetupKeyPage-BdSpJPDR.js`),__vite__mapDeps([10,11]))},{path:`/launch/project`,name:`launch-project`,component:()=>tp(()=>import(`./LaunchProjectPage-DSyBuhky.js`),__vite__mapDeps([12,13,3,14]))},{path:`/launch/services`,name:`launch-services`,component:()=>tp(()=>import(`./LaunchServicesPage-CiGkiqwE.js`),__vite__mapDeps([15,13,16,17,4,18,19]))},{path:`/`,component:()=>tp(()=>import(`./AppLayout-D10vX1fo.js`),__vite__mapDeps([20,21,22,23,24,25,26,27,18,28,29,13,30])),children:[{path:``,name:`dashboard`,component:()=>tp(()=>import(`./DashboardPage-BUDWnuJT.js`),__vite__mapDeps([31,13,3,32,16,17,33,8,18,34]))},{path:`agents`,name:`agents`,component:()=>tp(()=>import(`./AgentPage-DFHxsu-9.js`),__vite__mapDeps([35,36,37,32,16,17,33,8,5,18,38,39]))},{path:`kanban`,name:`kanban-list`,component:()=>tp(()=>import(`./KanbanListPage-DMNSYO_o.js`),__vite__mapDeps([40,3,41,42]))},{path:`kanban/:id`,name:`kanban-board`,component:()=>tp(()=>import(`./KanbanBoardPage-gtXv0ZhK.js`),__vite__mapDeps([43,44,41,45,46,47])),props:!0},{path:`agent-terminal`,name:`agent-terminal`,component:()=>tp(()=>import(`./AgentTerminalPage-D-T5emEl.js`),__vite__mapDeps([48,49]))},{path:`audit`,name:`audit`,component:()=>tp(()=>import(`./AuditPage-DZiwogoY.js`),__vite__mapDeps([50,32,16,17,33,8,18,51]))},{path:`settings`,name:`settings`,component:()=>tp(()=>import(`./SettingsPage-CCjZq5jP.js`),__vite__mapDeps([52,21,22,53,54,16,17,37,55,29,56,3,4,38,57]))},{path:`api-keys`,name:`api-keys`,redirect:{path:`/settings`,query:{section:`api-keys`}}},{path:`api-docs`,name:`api-docs`,component:()=>tp(()=>import(`./ApiDocsPage-CMGvcGEJ.js`),__vite__mapDeps([58,59,60,45,46,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,82,83,84,85,86,87,88,89,90,91,92,93]))},{path:`ai-chat`,name:`ai-chat`,component:()=>tp(()=>import(`./AiChatPage-C81mFvv5.js`),[])},{path:`scenario/new`,name:`scenario-new`,component:()=>tp(()=>import(`./ScenarioEditorPage-DogHTbNU.js`),__vite__mapDeps([94,44,16,17,54,37,95]))},{path:`scenario/:id/edit`,name:`scenario-edit`,component:()=>tp(()=>import(`./ScenarioEditorPage-DogHTbNU.js`),__vite__mapDeps([94,44,16,17,54,37,95])),props:!0},{path:`services/new`,name:`service-create`,component:()=>tp(()=>import(`./ServiceFormPage-DQbOgtB3.js`),__vite__mapDeps([96,13,36,37,97,98,33,17,38,99]))},{path:`services/:id/edit`,name:`service-edit`,component:()=>tp(()=>import(`./ServiceFormPage-DQbOgtB3.js`),__vite__mapDeps([96,13,36,37,97,98,33,17,38,99])),props:!0},{path:`services/:id/:tab?`,name:`service-detail`,component:()=>tp(()=>import(`./ServiceDetailPage-DpWLccOg.js`),__vite__mapDeps([100,101,44,36,37,32,16,17,33,8,18,38,102,25,26,27,28,53,54,55,103,104,29,13,56,97,4,41,105]))},{path:`projects`,name:`projects`,component:()=>tp(()=>import(`./ProjectListPage-Dewqu8Dm.js`),__vite__mapDeps([106,13,3,107]))},{path:`projects/:projectId`,name:`project-detail`,component:()=>tp(()=>import(`./ProjectDetailPage-a1lTAjKP.js`),__vite__mapDeps([108,23,24,13,3,32,16,17,33,8,18,109])),props:!0},{path:`projects/:projectId/environments`,name:`environments`,component:()=>tp(()=>import(`./EnvironmentListPage-CHYDJ_c-.js`),__vite__mapDeps([110,101,44,36,37,32,16,17,33,8,18,38,102,111,98,54,41,112,13,3,113]))},{path:`projects/:projectId/environments/:id/edit`,name:`environment-edit`,component:()=>tp(()=>import(`./EnvironmentFormPage-YVxAAreT.js`),__vite__mapDeps([114,101,44,36,37,32,16,17,33,8,18,38,102,111,98,54,41,112,115]))},{path:`process/:agentId/:processId`,name:`process-detail`,component:()=>tp(()=>import(`./ProcessDetailPage-8ypC6zkc.js`),__vite__mapDeps([116,53,54,16,17,37,55,26,27,103,104,18,117])),props:!0},{path:`dev/random-job-test`,name:`dev-random-job-test`,component:()=>tp(()=>import(`./RandomJobTestPage-E6mevkqw.js`),__vite__mapDeps([118,119]))}]}]});var HTt=new Set([`launch-project`,`launch-services`]),UTt=!1,WTt=!1;Y9.beforeEach(async e=>{if(new Set([`unlock`,`setup`,`setup-key`]).has(e.name))return;if(!UTt){UTt=!0;try{let e=await $f();if(e.state!==`unlocked`||!e.ciMode&&!Qf())return{name:`unlock`,replace:!0}}catch{return{name:`unlock`,replace:!0}}}if(!Qf())try{let e=await $f();if(e.state!==`unlocked`||!e.ciMode)return{name:`unlock`,replace:!0}}catch{return{name:`unlock`,replace:!0}}let t=localStorage.getItem(`runeya-setup-complete`);if(!t&&e.name!==`setup`)return{name:`setup`};if(t&&e.name===`setup`)return{name:`launch-project`};if(!t||HTt.has(e.name))return;let n=U9();if(!n.launchCompleted&&!n.activeProjectId)return{name:`launch-project`};if(!WTt&&n.activeProjectId){WTt=!0;try{if(!(await yp.project.list.query()).some(e=>e.id===n.activeProjectId))return n.resetLaunch(),{name:`launch-project`}}catch(e){return console.error(`[router] Failed to validate current project:`,e),n.resetLaunch(),{name:`launch-project`}}}});var GTt={root:{transitionDuration:`{transition.duration}`},panel:{borderWidth:`0`,borderColor:`{content.border.color}`},header:{color:`{text.muted.color}`,hoverColor:`{text.color}`,activeColor:`{text.color}`,activeHoverColor:`{text.color}`,padding:`1.125rem`,fontWeight:`700`,borderRadius:`0`,borderWidth:`0 1px 1px 1px`,borderColor:`{content.border.color}`,focusRing:{width:`{focus.ring.width}`,style:`{focus.ring.style}`,color:`{focus.ring.color}`,offset:`{focus.ring.offset}`,shadow:`inset {focus.ring.shadow}`},toggleIcon:{color:`{text.muted.color}`,hoverColor:`{text.color}`,activeColor:`{text.color}`,activeHoverColor:`{text.color}`},first:{topBorderRadius:`{content.border.radius}`,borderWidth:`1px`},last:{bottomBorderRadius:`{content.border.radius}`,activeBottomBorderRadius:`0`}},content:{borderWidth:`0 1px 1px 1px`,borderColor:`{content.border.color}`,background:`{content.background}`,color:`{text.color}`,padding:`1.125rem`},colorScheme:{light:{header:{background:`{surface.50}`,hoverBackground:`{surface.100}`,activeBackground:`{surface.50}`,activeHoverBackground:`{surface.100}`}},dark:{header:{background:`{surface.800}`,hoverBackground:`{surface.700}`,activeBackground:`{surface.800}`,activeHoverBackground:`{surface.700}`}}}},KTt={root:{background:`{form.field.background}`,disabledBackground:`{form.field.disabled.background}`,filledBackground:`{form.field.filled.background}`,filledHoverBackground:`{form.field.filled.hover.background}`,filledFocusBackground:`{form.field.filled.focus.background}`,borderColor:`{form.field.border.color}`,hoverBorderColor:`{form.field.hover.border.color}`,focusBorderColor:`{form.field.focus.border.color}`,invalidBorderColor:`{form.field.invalid.border.color}`,color:`{form.field.color}`,disabledColor:`{form.field.disabled.color}`,placeholderColor:`{form.field.placeholder.color}`,invalidPlaceholderColor:`{form.field.invalid.placeholder.color}`,shadow:`{form.field.shadow}`,paddingX:`{form.field.padding.x}`,paddingY:`{form.field.padding.y}`,borderRadius:`{form.field.border.radius}`,focusRing:{width:`{form.field.focus.ring.width}`,style:`{form.field.focus.ring.style}`,color:`{form.field.focus.ring.color}`,offset:`{form.field.focus.ring.offset}`,shadow:`{form.field.focus.ring.shadow}`},transitionDuration:`{form.field.transition.duration}`},overlay:{background:`{overlay.select.background}`,borderColor:`{overlay.select.border.color}`,borderRadius:`{overlay.select.border.radius}`,color:`{overlay.select.color}`,shadow:`{overlay.select.shadow}`},list:{padding:`{list.padding}`,gap:`{list.gap}`},option:{focusBackground:`{list.option.focus.background}`,selectedBackground:`{list.option.selected.background}`,selectedFocusBackground:`{list.option.selected.focus.background}`,color:`{list.option.color}`,focusColor:`{list.option.focus.color}`,selectedColor:`{list.option.selected.color}`,selectedFocusColor:`{list.option.selected.focus.color}`,padding:`{list.option.padding}`,borderRadius:`{list.option.border.radius}`},optionGroup:{background:`{list.option.group.background}`,color:`{list.option.group.color}`,fontWeight:`{list.option.group.font.weight}`,padding:`{list.option.group.padding}`},dropdown:{width:`2.5rem`,sm:{width:`2rem`},lg:{width:`3rem`},borderColor:`{form.field.border.color}`,hoverBorderColor:`{form.field.border.color}`,activeBorderColor:`{form.field.border.color}`,borderRadius:`{form.field.border.radius}`,focusRing:{width:`{form.field.focus.ring.width}`,style:`{form.field.focus.ring.style}`,color:`{form.field.focus.ring.color}`,offset:`{form.field.focus.ring.offset}`,shadow:`{form.field.focus.ring.shadow}`}},chip:{borderRadius:`{border.radius.sm}`},emptyMessage:{padding:`{list.option.padding}`},colorScheme:{light:{chip:{focusBackground:`{surface.200}`,focusColor:`{surface.800}`},dropdown:{background:`{surface.50}`,hoverBackground:`{surface.100}`,activeBackground:`{surface.200}`,color:`{surface.600}`,hoverColor:`{surface.700}`,activeColor:`{surface.800}`}},dark:{chip:{focusBackground:`{surface.700}`,focusColor:`{surface.0}`},dropdown:{background:`{surface.800}`,hoverBackground:`{surface.700}`,activeBackground:`{surface.600}`,color:`{surface.300}`,hoverColor:`{surface.200}`,activeColor:`{surface.100}`}}}},qTt={root:{width:`2rem`,height:`2rem`,fontSize:`1rem`,background:`{content.border.color}`,color:`{content.color}`,borderRadius:`{content.border.radius}`},icon:{size:`1rem`},group:{borderColor:`{content.background}`,offset:`-0.75rem`},lg:{width:`3rem`,height:`3rem`,fontSize:`1.5rem`,icon:{size:`1.5rem`},group:{offset:`-1rem`}},xl:{width:`4rem`,height:`4rem`,fontSize:`2rem`,icon:{size:`2rem`},group:{offset:`-1.5rem`}}},JTt={root:{borderRadius:`{border.radius.md}`,padding:`0 0.5rem`,fontSize:`0.75rem`,fontWeight:`700`,minWidth:`1.5rem`,height:`1.5rem`},dot:{size:`0.5rem`},sm:{fontSize:`0.625rem`,minWidth:`1.25rem`,height:`1.25rem`},lg:{fontSize:`0.875rem`,minWidth:`1.75rem`,height:`1.75rem`},xl:{fontSize:`1rem`,minWidth:`2rem`,height:`2rem`},colorScheme:{light:{primary:{background:`{primary.color}`,color:`{primary.contrast.color}`},secondary:{background:`{surface.100}`,color:`{surface.600}`},success:{background:`{green.500}`,color:`{surface.0}`},info:{background:`{sky.500}`,color:`{surface.0}`},warn:{background:`{orange.500}`,color:`{surface.0}`},danger:{background:`{red.500}`,color:`{surface.0}`},contrast:{background:`{surface.950}`,color:`{surface.0}`}},dark:{primary:{background:`{primary.color}`,color:`{primary.contrast.color}`},secondary:{background:`{surface.800}`,color:`{surface.300}`},success:{background:`{green.400}`,color:`{green.950}`},info:{background:`{sky.400}`,color:`{sky.950}`},warn:{background:`{orange.400}`,color:`{orange.950}`},danger:{background:`{red.400}`,color:`{red.950}`},contrast:{background:`{surface.0}`,color:`{surface.950}`}}}},YTt={primitive:{borderRadius:{none:`0`,xs:`2px`,sm:`4px`,md:`6px`,lg:`8px`,xl:`12px`},emerald:{50:`#ecfdf5`,100:`#d1fae5`,200:`#a7f3d0`,300:`#6ee7b7`,400:`#34d399`,500:`#10b981`,600:`#059669`,700:`#047857`,800:`#065f46`,900:`#064e3b`,950:`#022c22`},green:{50:`#f0fdf4`,100:`#dcfce7`,200:`#bbf7d0`,300:`#86efac`,400:`#4ade80`,500:`#22c55e`,600:`#16a34a`,700:`#15803d`,800:`#166534`,900:`#14532d`,950:`#052e16`},lime:{50:`#f7fee7`,100:`#ecfccb`,200:`#d9f99d`,300:`#bef264`,400:`#a3e635`,500:`#84cc16`,600:`#65a30d`,700:`#4d7c0f`,800:`#3f6212`,900:`#365314`,950:`#1a2e05`},red:{50:`#fef2f2`,100:`#fee2e2`,200:`#fecaca`,300:`#fca5a5`,400:`#f87171`,500:`#ef4444`,600:`#dc2626`,700:`#b91c1c`,800:`#991b1b`,900:`#7f1d1d`,950:`#450a0a`},orange:{50:`#fff7ed`,100:`#ffedd5`,200:`#fed7aa`,300:`#fdba74`,400:`#fb923c`,500:`#f97316`,600:`#ea580c`,700:`#c2410c`,800:`#9a3412`,900:`#7c2d12`,950:`#431407`},amber:{50:`#fffbeb`,100:`#fef3c7`,200:`#fde68a`,300:`#fcd34d`,400:`#fbbf24`,500:`#f59e0b`,600:`#d97706`,700:`#b45309`,800:`#92400e`,900:`#78350f`,950:`#451a03`},yellow:{50:`#fefce8`,100:`#fef9c3`,200:`#fef08a`,300:`#fde047`,400:`#facc15`,500:`#eab308`,600:`#ca8a04`,700:`#a16207`,800:`#854d0e`,900:`#713f12`,950:`#422006`},teal:{50:`#f0fdfa`,100:`#ccfbf1`,200:`#99f6e4`,300:`#5eead4`,400:`#2dd4bf`,500:`#14b8a6`,600:`#0d9488`,700:`#0f766e`,800:`#115e59`,900:`#134e4a`,950:`#042f2e`},cyan:{50:`#ecfeff`,100:`#cffafe`,200:`#a5f3fc`,300:`#67e8f9`,400:`#22d3ee`,500:`#06b6d4`,600:`#0891b2`,700:`#0e7490`,800:`#155e75`,900:`#164e63`,950:`#083344`},sky:{50:`#f0f9ff`,100:`#e0f2fe`,200:`#bae6fd`,300:`#7dd3fc`,400:`#38bdf8`,500:`#0ea5e9`,600:`#0284c7`,700:`#0369a1`,800:`#075985`,900:`#0c4a6e`,950:`#082f49`},blue:{50:`#eff6ff`,100:`#dbeafe`,200:`#bfdbfe`,300:`#93c5fd`,400:`#60a5fa`,500:`#3b82f6`,600:`#2563eb`,700:`#1d4ed8`,800:`#1e40af`,900:`#1e3a8a`,950:`#172554`},indigo:{50:`#eef2ff`,100:`#e0e7ff`,200:`#c7d2fe`,300:`#a5b4fc`,400:`#818cf8`,500:`#6366f1`,600:`#4f46e5`,700:`#4338ca`,800:`#3730a3`,900:`#312e81`,950:`#1e1b4b`},violet:{50:`#f5f3ff`,100:`#ede9fe`,200:`#ddd6fe`,300:`#c4b5fd`,400:`#a78bfa`,500:`#8b5cf6`,600:`#7c3aed`,700:`#6d28d9`,800:`#5b21b6`,900:`#4c1d95`,950:`#2e1065`},purple:{50:`#faf5ff`,100:`#f3e8ff`,200:`#e9d5ff`,300:`#d8b4fe`,400:`#c084fc`,500:`#a855f7`,600:`#9333ea`,700:`#7e22ce`,800:`#6b21a8`,900:`#581c87`,950:`#3b0764`},fuchsia:{50:`#fdf4ff`,100:`#fae8ff`,200:`#f5d0fe`,300:`#f0abfc`,400:`#e879f9`,500:`#d946ef`,600:`#c026d3`,700:`#a21caf`,800:`#86198f`,900:`#701a75`,950:`#4a044e`},pink:{50:`#fdf2f8`,100:`#fce7f3`,200:`#fbcfe8`,300:`#f9a8d4`,400:`#f472b6`,500:`#ec4899`,600:`#db2777`,700:`#be185d`,800:`#9d174d`,900:`#831843`,950:`#500724`},rose:{50:`#fff1f2`,100:`#ffe4e6`,200:`#fecdd3`,300:`#fda4af`,400:`#fb7185`,500:`#f43f5e`,600:`#e11d48`,700:`#be123c`,800:`#9f1239`,900:`#881337`,950:`#4c0519`},slate:{50:`#f8fafc`,100:`#f1f5f9`,200:`#e2e8f0`,300:`#cbd5e1`,400:`#94a3b8`,500:`#64748b`,600:`#475569`,700:`#334155`,800:`#1e293b`,900:`#0f172a`,950:`#020617`},gray:{50:`#f9fafb`,100:`#f3f4f6`,200:`#e5e7eb`,300:`#d1d5db`,400:`#9ca3af`,500:`#6b7280`,600:`#4b5563`,700:`#374151`,800:`#1f2937`,900:`#111827`,950:`#030712`},zinc:{50:`#fafafa`,100:`#f4f4f5`,200:`#e4e4e7`,300:`#d4d4d8`,400:`#a1a1aa`,500:`#71717a`,600:`#52525b`,700:`#3f3f46`,800:`#27272a`,900:`#18181b`,950:`#09090b`},neutral:{50:`#fafafa`,100:`#f5f5f5`,200:`#e5e5e5`,300:`#d4d4d4`,400:`#a3a3a3`,500:`#737373`,600:`#525252`,700:`#404040`,800:`#262626`,900:`#171717`,950:`#0a0a0a`},stone:{50:`#fafaf9`,100:`#f5f5f4`,200:`#e7e5e4`,300:`#d6d3d1`,400:`#a8a29e`,500:`#78716c`,600:`#57534e`,700:`#44403c`,800:`#292524`,900:`#1c1917`,950:`#0c0a09`}},semantic:{transitionDuration:`0.2s`,focusRing:{width:`0`,style:`none`,color:`transparent`,offset:`0`},disabledOpacity:`0.6`,iconSize:`1rem`,anchorGutter:`2px`,primary:{50:`{emerald.50}`,100:`{emerald.100}`,200:`{emerald.200}`,300:`{emerald.300}`,400:`{emerald.400}`,500:`{emerald.500}`,600:`{emerald.600}`,700:`{emerald.700}`,800:`{emerald.800}`,900:`{emerald.900}`,950:`{emerald.950}`},formField:{paddingX:`0.75rem`,paddingY:`0.625rem`,sm:{fontSize:`0.875rem`,paddingX:`0.625rem`,paddingY:`0.5rem`},lg:{fontSize:`1.125rem`,paddingX:`0.875rem`,paddingY:`0.75rem`},borderRadius:`{border.radius.md}`,focusRing:{width:`{focus.ring.width}`,style:`{focus.ring.style}`,color:`{focus.ring.color}`,offset:`{focus.ring.offset}`,shadow:`{focus.ring.shadow}`},transitionDuration:`{transition.duration}`},list:{padding:`0.5rem 0`,gap:`0`,header:{padding:`0.625rem 1rem 0 1rem`},option:{padding:`0.625rem 1rem`,borderRadius:`0`},optionGroup:{padding:`0.625rem 1rem`,fontWeight:`600`}},content:{borderRadius:`{border.radius.md}`},mask:{transitionDuration:`0.3s`},navigation:{list:{padding:`0.5rem 0`,gap:`0`},item:{padding:`0.625rem 1rem`,borderRadius:`0`,gap:`0.5rem`},submenuLabel:{padding:`0.625rem 1rem`,fontWeight:`600`},submenuIcon:{size:`0.875rem`}},overlay:{select:{borderRadius:`{border.radius.md}`,shadow:`0 2px 12px 0 rgba(0, 0, 0, 0.1)`},popover:{borderRadius:`{border.radius.md}`,padding:`1rem`,shadow:`0 1px 3px rgba(0, 0, 0, 0.1)`},modal:{borderRadius:`{border.radius.xl}`,padding:`1.5rem`,shadow:`0 1px 3px rgba(0, 0, 0, 0.3)`},navigation:{shadow:`0 2px 12px 0 rgba(0, 0, 0, 0.1)`}},colorScheme:{light:{surface:{0:`#ffffff`,50:`{slate.50}`,100:`{slate.100}`,200:`{slate.200}`,300:`{slate.300}`,400:`{slate.400}`,500:`{slate.500}`,600:`{slate.600}`,700:`{slate.700}`,800:`{slate.800}`,900:`{slate.900}`,950:`{slate.950}`},primary:{color:`{primary.500}`,contrastColor:`#ffffff`,hoverColor:`{primary.600}`,activeColor:`{primary.700}`},highlight:{background:`{primary.50}`,focusBackground:`{primary.100}`,color:`{primary.700}`,focusColor:`{primary.800}`},focusRing:{shadow:`0 0 0 0.2rem {primary.200}`},mask:{background:`rgba(0,0,0,0.4)`,color:`{surface.200}`},formField:{background:`{surface.0}`,disabledBackground:`{surface.200}`,filledBackground:`{surface.50}`,filledHoverBackground:`{surface.50}`,filledFocusBackground:`{surface.0}`,borderColor:`{surface.300}`,hoverBorderColor:`{primary.color}`,focusBorderColor:`{primary.color}`,invalidBorderColor:`{red.400}`,color:`{surface.700}`,disabledColor:`{surface.500}`,placeholderColor:`{surface.500}`,invalidPlaceholderColor:`{red.600}`,floatLabelColor:`{surface.500}`,floatLabelFocusColor:`{primary.600}`,floatLabelActiveColor:`{surface.500}`,floatLabelInvalidColor:`{form.field.invalid.placeholder.color}`,iconColor:`{surface.500}`,shadow:`none`},text:{color:`{surface.700}`,hoverColor:`{surface.800}`,mutedColor:`{surface.500}`,hoverMutedColor:`{surface.600}`},content:{background:`{surface.0}`,hoverBackground:`{surface.100}`,borderColor:`{surface.200}`,color:`{text.color}`,hoverColor:`{text.hover.color}`},overlay:{select:{background:`{surface.0}`,borderColor:`{surface.200}`,color:`{text.color}`},popover:{background:`{surface.0}`,borderColor:`{surface.200}`,color:`{text.color}`},modal:{background:`{surface.0}`,borderColor:`{surface.200}`,color:`{text.color}`}},list:{option:{focusBackground:`{surface.100}`,selectedBackground:`{highlight.background}`,selectedFocusBackground:`{highlight.focus.background}`,color:`{text.color}`,focusColor:`{text.hover.color}`,selectedColor:`{highlight.color}`,selectedFocusColor:`{highlight.focus.color}`,icon:{color:`{surface.400}`,focusColor:`{surface.500}`}},optionGroup:{background:`transparent`,color:`{text.color}`}},navigation:{item:{focusBackground:`{surface.100}`,activeBackground:`{surface.100}`,color:`{text.color}`,focusColor:`{text.hover.color}`,activeColor:`{text.hover.color}`,icon:{color:`{surface.400}`,focusColor:`{surface.500}`,activeColor:`{surface.500}`}},submenuLabel:{background:`transparent`,color:`{text.color}`},submenuIcon:{color:`{surface.400}`,focusColor:`{surface.500}`,activeColor:`{surface.500}`}}},dark:{surface:{0:`#ffffff`,50:`{zinc.50}`,100:`{zinc.100}`,200:`{zinc.200}`,300:`{zinc.300}`,400:`{zinc.400}`,500:`{zinc.500}`,600:`{zinc.600}`,700:`{zinc.700}`,800:`{zinc.800}`,900:`{zinc.900}`,950:`{zinc.950}`},primary:{color:`{primary.400}`,contrastColor:`{surface.900}`,hoverColor:`{primary.300}`,activeColor:`{primary.200}`},highlight:{background:`color-mix(in srgb, {primary.400}, transparent 84%)`,focusBackground:`color-mix(in srgb, {primary.400}, transparent 76%)`,color:`rgba(255,255,255,.87)`,focusColor:`rgba(255,255,255,.87)`},focusRing:{shadow:`0 0 0 0.2rem color-mix(in srgb, {primary.color}, transparent 80%)`},mask:{background:`rgba(0,0,0,0.6)`,color:`{surface.200}`},formField:{background:`{surface.950}`,disabledBackground:`{surface.700}`,filledBackground:`{surface.800}`,filledHoverBackground:`{surface.800}`,filledFocusBackground:`{surface.950}`,borderColor:`{surface.600}`,hoverBorderColor:`{primary.color}`,focusBorderColor:`{primary.color}`,invalidBorderColor:`{red.300}`,color:`{surface.0}`,disabledColor:`{surface.400}`,placeholderColor:`{surface.400}`,invalidPlaceholderColor:`{red.400}`,floatLabelColor:`{surface.400}`,floatLabelFocusColor:`{primary.color}`,floatLabelActiveColor:`{surface.400}`,floatLabelInvalidColor:`{form.field.invalid.placeholder.color}`,iconColor:`{surface.400}`,shadow:`none`},text:{color:`{surface.0}`,hoverColor:`{surface.0}`,mutedColor:`{surface.400}`,hoverMutedColor:`{surface.300}`},content:{background:`{surface.900}`,hoverBackground:`{surface.800}`,borderColor:`{surface.700}`,color:`{text.color}`,hoverColor:`{text.hover.color}`},overlay:{select:{background:`{surface.900}`,borderColor:`{surface.700}`,color:`{text.color}`},popover:{background:`{surface.900}`,borderColor:`{surface.700}`,color:`{text.color}`},modal:{background:`{surface.900}`,borderColor:`{surface.700}`,color:`{text.color}`}},list:{option:{focusBackground:`{surface.800}`,selectedBackground:`{highlight.background}`,selectedFocusBackground:`{highlight.focus.background}`,color:`{text.color}`,focusColor:`{text.hover.color}`,selectedColor:`{highlight.color}`,selectedFocusColor:`{highlight.focus.color}`,icon:{color:`{surface.500}`,focusColor:`{surface.400}`}},optionGroup:{background:`transparent`,color:`{text.color}`}},navigation:{item:{focusBackground:`{surface.800}`,activeBackground:`{surface.800}`,color:`{text.color}`,focusColor:`{text.hover.color}`,activeColor:`{text.hover.color}`,icon:{color:`{surface.500}`,focusColor:`{surface.400}`,activeColor:`{surface.400}`}},submenuLabel:{background:`transparent`,color:`{text.color}`},submenuIcon:{color:`{surface.500}`,focusColor:`{surface.400}`,activeColor:`{surface.400}`}}}}}},XTt={root:{borderRadius:`{content.border.radius}`}},ZTt={root:{padding:`1.25rem`,background:`{content.background}`,gap:`0.5rem`,transitionDuration:`{transition.duration}`},item:{color:`{text.muted.color}`,hoverColor:`{text.color}`,borderRadius:`{content.border.radius}`,gap:`{navigation.item.gap}`,icon:{color:`{navigation.item.icon.color}`,hoverColor:`{navigation.item.icon.focus.color}`},focusRing:{width:`{focus.ring.width}`,style:`{focus.ring.style}`,color:`{focus.ring.color}`,offset:`{focus.ring.offset}`,shadow:`{focus.ring.shadow}`}},separator:{color:`{navigation.item.icon.color}`}},QTt={root:{borderRadius:`{form.field.border.radius}`,roundedBorderRadius:`2rem`,gap:`0.5rem`,paddingX:`1rem`,paddingY:`{form.field.padding.y}`,iconOnlyWidth:`2.75rem`,sm:{fontSize:`{form.field.sm.font.size}`,paddingX:`{form.field.sm.padding.x}`,paddingY:`{form.field.sm.padding.y}`,iconOnlyWidth:`2.25rem`},lg:{fontSize:`{form.field.lg.font.size}`,paddingX:`{form.field.lg.padding.x}`,paddingY:`{form.field.lg.padding.y}`,iconOnlyWidth:`3.25rem`},label:{fontWeight:`600`},raisedShadow:`0 3px 1px -2px rgba(0, 0, 0, 0.2), 0 2px 2px 0 rgba(0, 0, 0, 0.14), 0 1px 5px 0 rgba(0, 0, 0, 0.12)`,focusRing:{width:`{form.field.focus.ring.width}`,style:`{form.field.focus.ring.style}`,offset:`{form.field.focus.ring.offset}`},badgeSize:`1rem`,transitionDuration:`{form.field.transition.duration}`},colorScheme:{light:{root:{primary:{background:`{primary.color}`,hoverBackground:`{primary.hover.color}`,activeBackground:`{primary.active.color}`,borderColor:`{primary.color}`,hoverBorderColor:`{primary.hover.color}`,activeBorderColor:`{primary.active.color}`,color:`{primary.contrast.color}`,hoverColor:`{primary.contrast.color}`,activeColor:`{primary.contrast.color}`,focusRing:{color:`transparent`,shadow:`0 0 0 0.2rem {primary.200}`}},secondary:{background:`{surface.100}`,hoverBackground:`{surface.200}`,activeBackground:`{surface.300}`,borderColor:`{surface.100}`,hoverBorderColor:`{surface.200}`,activeBorderColor:`{surface.300}`,color:`{surface.600}`,hoverColor:`{surface.700}`,activeColor:`{surface.800}`,focusRing:{color:`transparent`,shadow:`0 0 0 0.2rem {surface.200}`}},info:{background:`{sky.500}`,hoverBackground:`{sky.600}`,activeBackground:`{sky.700}`,borderColor:`{sky.500}`,hoverBorderColor:`{sky.600}`,activeBorderColor:`{sky.700}`,color:`#ffffff`,hoverColor:`#ffffff`,activeColor:`#ffffff`,focusRing:{color:`transparent`,shadow:`0 0 0 0.2rem {sky.200}`}},success:{background:`{green.500}`,hoverBackground:`{green.600}`,activeBackground:`{green.700}`,borderColor:`{green.500}`,hoverBorderColor:`{green.600}`,activeBorderColor:`{green.700}`,color:`#ffffff`,hoverColor:`#ffffff`,activeColor:`#ffffff`,focusRing:{color:`transparent`,shadow:`0 0 0 0.2rem {green.200}`}},warn:{background:`{orange.500}`,hoverBackground:`{orange.600}`,activeBackground:`{orange.700}`,borderColor:`{orange.500}`,hoverBorderColor:`{orange.600}`,activeBorderColor:`{orange.700}`,color:`#ffffff`,hoverColor:`#ffffff`,activeColor:`#ffffff`,focusRing:{color:`transparent`,shadow:`0 0 0 0.2rem {orange.200}`}},help:{background:`{purple.500}`,hoverBackground:`{purple.600}`,activeBackground:`{purple.700}`,borderColor:`{purple.500}`,hoverBorderColor:`{purple.600}`,activeBorderColor:`{purple.700}`,color:`#ffffff`,hoverColor:`#ffffff`,activeColor:`#ffffff`,focusRing:{color:`transparent`,shadow:`0 0 0 0.2rem {purple.200}`}},danger:{background:`{red.500}`,hoverBackground:`{red.600}`,activeBackground:`{red.700}`,borderColor:`{red.500}`,hoverBorderColor:`{red.600}`,activeBorderColor:`{red.700}`,color:`#ffffff`,hoverColor:`#ffffff`,activeColor:`#ffffff`,focusRing:{color:`transparent`,shadow:`0 0 0 0.2rem {red.200}`}},contrast:{background:`{surface.950}`,hoverBackground:`{surface.900}`,activeBackground:`{surface.800}`,borderColor:`{surface.950}`,hoverBorderColor:`{surface.900}`,activeBorderColor:`{surface.800}`,color:`{surface.0}`,hoverColor:`{surface.0}`,activeColor:`{surface.0}`,focusRing:{color:`transparent`,shadow:`0 0 0 0.2rem {surface.400}`}}},outlined:{primary:{hoverBackground:`{primary.50}`,activeBackground:`{primary.100}`,borderColor:`{primary.200}`,color:`{primary.color}`},secondary:{hoverBackground:`{surface.50}`,activeBackground:`{surface.100}`,borderColor:`{surface.200}`,color:`{surface.500}`},success:{hoverBackground:`{green.50}`,activeBackground:`{green.100}`,borderColor:`{green.200}`,color:`{green.500}`},info:{hoverBackground:`{sky.50}`,activeBackground:`{sky.100}`,borderColor:`{sky.200}`,color:`{sky.500}`},warn:{hoverBackground:`{orange.50}`,activeBackground:`{orange.100}`,borderColor:`{orange.200}`,color:`{orange.500}`},help:{hoverBackground:`{purple.50}`,activeBackground:`{purple.100}`,borderColor:`{purple.200}`,color:`{purple.500}`},danger:{hoverBackground:`{red.50}`,activeBackground:`{red.100}`,borderColor:`{red.200}`,color:`{red.500}`},contrast:{hoverBackground:`{surface.50}`,activeBackground:`{surface.100}`,borderColor:`{surface.700}`,color:`{surface.950}`},plain:{hoverBackground:`{surface.50}`,activeBackground:`{surface.100}`,borderColor:`{surface.200}`,color:`{surface.700}`}},text:{primary:{hoverBackground:`{primary.50}`,activeBackground:`{primary.100}`,color:`{primary.color}`},secondary:{hoverBackground:`{surface.100}`,activeBackground:`{surface.200}`,color:`{surface.600}`},success:{hoverBackground:`{green.50}`,activeBackground:`{green.100}`,color:`{green.500}`},info:{hoverBackground:`{sky.50}`,activeBackground:`{sky.100}`,color:`{sky.500}`},warn:{hoverBackground:`{orange.50}`,activeBackground:`{orange.100}`,color:`{orange.500}`},help:{hoverBackground:`{purple.50}`,activeBackground:`{purple.100}`,color:`{purple.500}`},danger:{hoverBackground:`{red.50}`,activeBackground:`{red.100}`,color:`{red.500}`},contrast:{hoverBackground:`{surface.50}`,activeBackground:`{surface.100}`,color:`{surface.950}`},plain:{hoverBackground:`{surface.50}`,activeBackground:`{surface.100}`,color:`{surface.700}`}},link:{color:`{primary.color}`,hoverColor:`{primary.color}`,activeColor:`{primary.color}`}},dark:{root:{primary:{background:`{primary.color}`,hoverBackground:`{primary.hover.color}`,activeBackground:`{primary.active.color}`,borderColor:`{primary.color}`,hoverBorderColor:`{primary.hover.color}`,activeBorderColor:`{primary.active.color}`,color:`{primary.contrast.color}`,hoverColor:`{primary.contrast.color}`,activeColor:`{primary.contrast.color}`,focusRing:{color:`transparent`,shadow:`0 0 0 0.2rem color-mix(in srgb, {primary.color}, transparent 80%)`}},secondary:{background:`{surface.800}`,hoverBackground:`{surface.700}`,activeBackground:`{surface.600}`,borderColor:`{surface.800}`,hoverBorderColor:`{surface.700}`,activeBorderColor:`{surface.600}`,color:`{surface.300}`,hoverColor:`{surface.200}`,activeColor:`{surface.100}`,focusRing:{color:`transparent`,shadow:`0 0 0 0.2rem color-mix(in srgb, {surface.300}, transparent 80%)`}},info:{background:`{sky.400}`,hoverBackground:`{sky.300}`,activeBackground:`{sky.200}`,borderColor:`{sky.400}`,hoverBorderColor:`{sky.300}`,activeBorderColor:`{sky.200}`,color:`{sky.950}`,hoverColor:`{sky.950}`,activeColor:`{sky.950}`,focusRing:{color:`transparent`,shadow:`0 0 0 0.2rem color-mix(in srgb, {sky.400}, transparent 80%)`}},success:{background:`{green.400}`,hoverBackground:`{green.300}`,activeBackground:`{green.200}`,borderColor:`{green.400}`,hoverBorderColor:`{green.300}`,activeBorderColor:`{green.200}`,color:`{green.950}`,hoverColor:`{green.950}`,activeColor:`{green.950}`,focusRing:{color:`transparent`,shadow:`0 0 0 0.2rem color-mix(in srgb, {green.400}, transparent 80%)`}},warn:{background:`{orange.400}`,hoverBackground:`{orange.300}`,activeBackground:`{orange.200}`,borderColor:`{orange.400}`,hoverBorderColor:`{orange.300}`,activeBorderColor:`{orange.200}`,color:`{orange.950}`,hoverColor:`{orange.950}`,activeColor:`{orange.950}`,focusRing:{color:`transparent`,shadow:`0 0 0 0.2rem color-mix(in srgb, {orange.400}, transparent 80%)`}},help:{background:`{purple.400}`,hoverBackground:`{purple.300}`,activeBackground:`{purple.200}`,borderColor:`{purple.400}`,hoverBorderColor:`{purple.300}`,activeBorderColor:`{purple.200}`,color:`{purple.950}`,hoverColor:`{purple.950}`,activeColor:`{purple.950}`,focusRing:{color:`transparent`,shadow:`0 0 0 0.2rem color-mix(in srgb, {purple.400}, transparent 80%)`}},danger:{background:`{red.400}`,hoverBackground:`{red.300}`,activeBackground:`{red.200}`,borderColor:`{red.400}`,hoverBorderColor:`{red.300}`,activeBorderColor:`{red.200}`,color:`{red.950}`,hoverColor:`{red.950}`,activeColor:`{red.950}`,focusRing:{color:`transparent`,shadow:`0 0 0 0.2rem color-mix(in srgb, {red.400}, transparent 80%)`}},contrast:{background:`{surface.0}`,hoverBackground:`{surface.100}`,activeBackground:`{surface.200}`,borderColor:`{surface.0}`,hoverBorderColor:`{surface.100}`,activeBorderColor:`{surface.200}`,color:`{surface.950}`,hoverColor:`{surface.950}`,activeColor:`{surface.950}`,focusRing:{color:`transparent`,shadow:`0 0 0 0.2rem color-mix(in srgb, {surface.0}, transparent 80%)`}}},outlined:{primary:{hoverBackground:`color-mix(in srgb, {primary.color}, transparent 96%)`,activeBackground:`color-mix(in srgb, {primary.color}, transparent 84%)`,borderColor:`{primary.700}`,color:`{primary.color}`},secondary:{hoverBackground:`rgba(255,255,255,0.04)`,activeBackground:`rgba(255,255,255,0.16)`,borderColor:`{surface.700}`,color:`{surface.400}`},success:{hoverBackground:`color-mix(in srgb, {green.400}, transparent 96%)`,activeBackground:`color-mix(in srgb, {green.400}, transparent 84%)`,borderColor:`{green.700}`,color:`{green.400}`},info:{hoverBackground:`color-mix(in srgb, {sky.400}, transparent 96%)`,activeBackground:`color-mix(in srgb, {sky.400}, transparent 84%)`,borderColor:`{sky.700}`,color:`{sky.400}`},warn:{hoverBackground:`color-mix(in srgb, {orange.400}, transparent 96%)`,activeBackground:`color-mix(in srgb, {orange.400}, transparent 84%)`,borderColor:`{orange.700}`,color:`{orange.400}`},help:{hoverBackground:`color-mix(in srgb, {help.400}, transparent 96%)`,activeBackground:`color-mix(in srgb, {help.400}, transparent 84%)`,borderColor:`{purple.700}`,color:`{purple.400}`},danger:{hoverBackground:`color-mix(in srgb, {danger.400}, transparent 96%)`,activeBackground:`color-mix(in srgb, {danger.400}, transparent 84%)`,borderColor:`{red.700}`,color:`{red.400}`},contrast:{hoverBackground:`{surface.800}`,activeBackground:`{surface.700}`,borderColor:`{surface.500}`,color:`{surface.0}`},plain:{hoverBackground:`{surface.800}`,activeBackground:`{surface.700}`,borderColor:`{surface.600}`,color:`{surface.0}`}},text:{primary:{hoverBackground:`color-mix(in srgb, {primary.color}, transparent 96%)`,activeBackground:`color-mix(in srgb, {primary.color}, transparent 84%)`,color:`{primary.color}`},secondary:{hoverBackground:`{surface.700}`,activeBackground:`{surface.600}`,color:`{surface.300}`},success:{hoverBackground:`color-mix(in srgb, {green.400}, transparent 96%)`,activeBackground:`color-mix(in srgb, {green.400}, transparent 84%)`,color:`{green.400}`},info:{hoverBackground:`color-mix(in srgb, {sky.400}, transparent 96%)`,activeBackground:`color-mix(in srgb, {sky.400}, transparent 84%)`,color:`{sky.400}`},warn:{hoverBackground:`color-mix(in srgb, {orange.400}, transparent 96%)`,activeBackground:`color-mix(in srgb, {orange.400}, transparent 84%)`,color:`{orange.400}`},help:{hoverBackground:`color-mix(in srgb, {purple.400}, transparent 96%)`,activeBackground:`color-mix(in srgb, {purple.400}, transparent 84%)`,color:`{purple.400}`},danger:{hoverBackground:`color-mix(in srgb, {red.400}, transparent 96%)`,activeBackground:`color-mix(in srgb, {red.400}, transparent 84%)`,color:`{red.400}`},contrast:{hoverBackground:`{surface.800}`,activeBackground:`{surface.700}`,color:`{surface.0}`},plain:{hoverBackground:`{surface.800}`,activeBackground:`{surface.700}`,color:`{surface.0}`}},link:{color:`{primary.color}`,hoverColor:`{primary.color}`,activeColor:`{primary.color}`}}}},$Tt={root:{background:`{content.background}`,borderRadius:`{border.radius.lg}`,color:`{content.color}`,shadow:`0 .125rem .25rem rgba(0,0,0,.075)`},body:{padding:`1.5rem`,gap:`0.75rem`},caption:{gap:`0.5rem`},title:{fontSize:`1.25rem`,fontWeight:`700`},subtitle:{color:`{text.muted.color}`}},eEt={root:{transitionDuration:`{transition.duration}`},content:{gap:`0.25rem`},indicatorList:{padding:`1rem`,gap:`0.5rem`},indicator:{width:`1rem`,height:`1rem`,borderRadius:`50`,focusRing:{width:`{focus.ring.width}`,style:`{focus.ring.style}`,color:`{focus.ring.color}`,offset:`{focus.ring.offset}`,shadow:`{focus.ring.shadow}`}},colorScheme:{light:{indicator:{background:`{surface.200}`,hoverBackground:`{surface.300}`,activeBackground:`{primary.color}`}},dark:{indicator:{background:`{surface.700}`,hoverBackground:`{surface.600}`,activeBackground:`{primary.color}`}}}},tEt={root:{background:`{form.field.background}`,disabledBackground:`{form.field.disabled.background}`,filledBackground:`{form.field.filled.background}`,filledHoverBackground:`{form.field.filled.hover.background}`,filledFocusBackground:`{form.field.filled.focus.background}`,borderColor:`{form.field.border.color}`,hoverBorderColor:`{form.field.hover.border.color}`,focusBorderColor:`{form.field.focus.border.color}`,invalidBorderColor:`{form.field.invalid.border.color}`,color:`{form.field.color}`,disabledColor:`{form.field.disabled.color}`,placeholderColor:`{form.field.placeholder.color}`,invalidPlaceholderColor:`{form.field.invalid.placeholder.color}`,shadow:`{form.field.shadow}`,paddingX:`{form.field.padding.x}`,paddingY:`{form.field.padding.y}`,borderRadius:`{form.field.border.radius}`,focusRing:{width:`{form.field.focus.ring.width}`,style:`{form.field.focus.ring.style}`,color:`{form.field.focus.ring.color}`,offset:`{form.field.focus.ring.offset}`,shadow:`{form.field.focus.ring.shadow}`},transitionDuration:`{form.field.transition.duration}`,sm:{fontSize:`{form.field.sm.font.size}`,paddingX:`{form.field.sm.padding.x}`,paddingY:`{form.field.sm.padding.y}`},lg:{fontSize:`{form.field.lg.font.size}`,paddingX:`{form.field.lg.padding.x}`,paddingY:`{form.field.lg.padding.y}`}},dropdown:{width:`2.5rem`,color:`{form.field.icon.color}`},overlay:{background:`{overlay.select.background}`,borderColor:`{overlay.select.border.color}`,borderRadius:`{overlay.select.border.radius}`,color:`{overlay.select.color}`,shadow:`{overlay.select.shadow}`},list:{padding:`{list.padding}`,gap:`{list.gap}`,mobileIndent:`1.25rem`},option:{focusBackground:`{list.option.focus.background}`,selectedBackground:`{list.option.selected.background}`,selectedFocusBackground:`{list.option.selected.focus.background}`,color:`{list.option.color}`,focusColor:`{list.option.focus.color}`,selectedColor:`{list.option.selected.color}`,selectedFocusColor:`{list.option.selected.focus.color}`,padding:`{list.option.padding}`,borderRadius:`{list.option.border.radius}`,icon:{color:`{list.option.icon.color}`,focusColor:`{list.option.icon.focus.color}`,size:`0.875rem`}},clearIcon:{color:`{form.field.icon.color}`}},nEt={root:{borderRadius:`{border.radius.sm}`,width:`1.5rem`,height:`1.5rem`,background:`{form.field.background}`,checkedBackground:`{primary.color}`,checkedHoverBackground:`{primary.hover.color}`,disabledBackground:`{form.field.disabled.background}`,filledBackground:`{form.field.filled.background}`,borderColor:`{form.field.border.color}`,hoverBorderColor:`{form.field.hover.border.color}`,focusBorderColor:`{form.field.focus.border.color}`,checkedBorderColor:`{primary.color}`,checkedHoverBorderColor:`{primary.hover.color}`,checkedFocusBorderColor:`{primary.color}`,checkedDisabledBorderColor:`{form.field.border.color}`,invalidBorderColor:`{form.field.invalid.border.color}`,shadow:`{form.field.shadow}`,focusRing:{width:`{form.field.focus.ring.width}`,style:`{form.field.focus.ring.style}`,color:`{form.field.focus.ring.color}`,offset:`{form.field.focus.ring.offset}`,shadow:`{form.field.focus.ring.shadow}`},transitionDuration:`{form.field.transition.duration}`,sm:{width:`1.25rem`,height:`1.25rem`},lg:{width:`1.75rem`,height:`1.75rem`}},icon:{size:`1rem`,color:`{form.field.color}`,checkedColor:`{primary.contrast.color}`,checkedHoverColor:`{primary.contrast.color}`,disabledColor:`{form.field.disabled.color}`,sm:{size:`0.75rem`},lg:{size:`1.25rem`}}},rEt={root:{borderRadius:`16px`,paddingX:`0.875rem`,paddingY:`0.625rem`,gap:`0.5rem`,transitionDuration:`{transition.duration}`},image:{width:`2rem`,height:`2rem`},icon:{size:`1rem`},removeIcon:{size:`1rem`,focusRing:{width:`{focus.ring.width}`,style:`{focus.ring.style}`,color:`{focus.ring.color}`,offset:`{focus.ring.offset}`,shadow:`{focus.ring.shadow}`}},colorScheme:{light:{root:{background:`{surface.100}`,color:`{surface.800}`},icon:{color:`{surface.800}`},removeIcon:{color:`{surface.800}`}},dark:{root:{background:`{surface.800}`,color:`{surface.0}`},icon:{color:`{surface.0}`},removeIcon:{color:`{surface.0}`}}}},iEt={root:{transitionDuration:`{transition.duration}`},preview:{width:`1.75rem`,height:`1.75rem`,borderRadius:`{form.field.border.radius}`,focusRing:{width:`{form.field.focus.ring.width}`,style:`{form.field.focus.ring.style}`,color:`{form.field.focus.ring.color}`,offset:`{form.field.focus.ring.offset}`,shadow:`{form.field.focus.ring.shadow}`}},panel:{shadow:`{overlay.popover.shadow}`,borderRadius:`{overlay.popover.borderRadius}`},colorScheme:{light:{panel:{background:`{surface.800}`,borderColor:`{surface.900}`},handle:{color:`{surface.0}`}},dark:{panel:{background:`{surface.900}`,borderColor:`{surface.700}`},handle:{color:`{surface.0}`}}}},aEt={icon:{size:`2rem`,color:`{overlay.modal.color}`},content:{gap:`1rem`}},oEt={root:{background:`{overlay.popover.background}`,borderColor:`{overlay.popover.border.color}`,color:`{overlay.popover.color}`,borderRadius:`{overlay.popover.border.radius}`,shadow:`{overlay.popover.shadow}`,gutter:`10px`,arrowOffset:`1.25rem`},content:{padding:`{overlay.popover.padding}`,gap:`1rem`},icon:{size:`1.5rem`,color:`{overlay.popover.color}`},footer:{gap:`0.5rem`,padding:`0 {overlay.popover.padding} {overlay.popover.padding} {overlay.popover.padding}`}},sEt={root:{background:`{content.background}`,borderColor:`{content.border.color}`,color:`{content.color}`,borderRadius:`{content.border.radius}`,shadow:`{overlay.navigation.shadow}`,transitionDuration:`{transition.duration}`},list:{padding:`{navigation.list.padding}`,gap:`{navigation.list.gap}`},item:{focusBackground:`{navigation.item.focus.background}`,activeBackground:`{navigation.item.active.background}`,color:`{navigation.item.color}`,focusColor:`{navigation.item.focus.color}`,activeColor:`{navigation.item.active.color}`,padding:`{navigation.item.padding}`,borderRadius:`{navigation.item.border.radius}`,gap:`{navigation.item.gap}`,icon:{color:`{navigation.item.icon.color}`,focusColor:`{navigation.item.icon.focus.color}`,activeColor:`{navigation.item.icon.active.color}`}},submenu:{mobileIndent:`1.25rem`},submenuIcon:{size:`{navigation.submenu.icon.size}`,color:`{navigation.submenu.icon.color}`,focusColor:`{navigation.submenu.icon.focus.color}`,activeColor:`{navigation.submenu.icon.active.color}`},separator:{borderColor:`{content.border.color}`}},cEt={root:{transitionDuration:`{transition.duration}`},header:{borderColor:`{datatable.border.color}`,borderWidth:`1px 0 1px 0`,padding:`0.75rem 1rem`,sm:{padding:`0.375rem 0.5rem`},lg:{padding:`1rem 1.25rem`}},headerCell:{selectedBackground:`{highlight.background}`,borderColor:`{datatable.border.color}`,hoverColor:`{content.hover.color}`,selectedColor:`{highlight.color}`,gap:`0.5rem`,padding:`0.75rem 1rem`,focusRing:{width:`{focus.ring.width}`,style:`{focus.ring.style}`,color:`{focus.ring.color}`,offset:`{focus.ring.offset}`,shadow:`inset {focus.ring.shadow}`},sm:{padding:`0.375rem 0.5rem`},lg:{padding:`1rem 1.25rem`}},columnTitle:{fontWeight:`700`},row:{background:`{content.background}`,hoverBackground:`{content.hover.background}`,selectedBackground:`{highlight.background}`,color:`{content.color}`,hoverColor:`{content.hover.color}`,selectedColor:`{highlight.color}`,focusRing:{width:`{focus.ring.width}`,style:`{focus.ring.style}`,color:`{focus.ring.color}`,offset:`{focus.ring.offset}`,shadow:`inset {focus.ring.shadow}`}},bodyCell:{borderColor:`{datatable.border.color}`,padding:`0.75rem 1rem`,sm:{padding:`0.375rem 0.5rem`},lg:{padding:`1rem 1.25rem`}},footerCell:{borderColor:`{datatable.border.color}`,padding:`0.75rem 1rem`,sm:{padding:`0.375rem 0.5rem`},lg:{padding:`1rem 1.25rem`}},columnFooter:{fontWeight:`700`},footer:{borderColor:`{datatable.border.color}`,borderWidth:`0 0 1px 0`,padding:`0.75rem 1rem`,sm:{padding:`0.375rem 0.5rem`},lg:{padding:`1rem 1.25rem`}},dropPoint:{color:`{primary.color}`},columnResizer:{width:`0.5rem`},resizeIndicator:{width:`1px`,color:`{primary.color}`},sortIcon:{color:`{text.muted.color}`,hoverColor:`{text.hover.muted.color}`,size:`0.875rem`},loadingIcon:{size:`2rem`},rowToggleButton:{hoverBackground:`{content.hover.background}`,selectedHoverBackground:`{content.background}`,color:`{text.muted.color}`,hoverColor:`{text.color}`,selectedHoverColor:`{primary.color}`,size:`1.75rem`,borderRadius:`50%`,focusRing:{width:`{focus.ring.width}`,style:`{focus.ring.style}`,color:`{focus.ring.color}`,offset:`{focus.ring.offset}`,shadow:`{focus.ring.shadow}`}},filter:{inlineGap:`0.5rem`,overlaySelect:{background:`{overlay.select.background}`,borderColor:`{overlay.select.border.color}`,borderRadius:`{overlay.select.border.radius}`,color:`{overlay.select.color}`,shadow:`{overlay.select.shadow}`},overlayPopover:{background:`{overlay.popover.background}`,borderColor:`{overlay.popover.border.color}`,borderRadius:`{overlay.popover.border.radius}`,color:`{overlay.popover.color}`,shadow:`{overlay.popover.shadow}`,padding:`{overlay.popover.padding}`,gap:`0.5rem`},rule:{borderColor:`{content.border.color}`},constraintList:{padding:`{list.padding}`,gap:`{list.gap}`},constraint:{focusBackground:`{list.option.focus.background}`,selectedBackground:`{list.option.selected.background}`,selectedFocusBackground:`{list.option.selected.focus.background}`,color:`{list.option.color}`,focusColor:`{list.option.focus.color}`,selectedColor:`{list.option.selected.color}`,selectedFocusColor:`{list.option.selected.focus.color}`,separator:{borderColor:`{content.border.color}`},padding:`{list.option.padding}`,borderRadius:`{list.option.border.radius}`}},paginatorTop:{borderColor:`{datatable.border.color}`,borderWidth:`0 0 1px 0`},paginatorBottom:{borderColor:`{datatable.border.color}`,borderWidth:`0 0 1px 0`},colorScheme:{light:{root:{borderColor:`{content.border.color}`},header:{background:`{surface.50}`,color:`{text.color}`},headerCell:{background:`{surface.50}`,hoverBackground:`{surface.100}`,color:`{text.color}`},footer:{background:`{surface.50}`,color:`{text.color}`},footerCell:{background:`{surface.50}`,color:`{text.color}`},row:{stripedBackground:`{surface.50}`},bodyCell:{selectedBorderColor:`{primary.100}`}},dark:{root:{borderColor:`{surface.800}`},header:{background:`{surface.800}`,color:`{text.color}`},headerCell:{background:`{surface.800}`,hoverBackground:`{surface.700}`,color:`{text.color}`},footer:{background:`{surface.800}`,color:`{text.color}`},footerCell:{background:`{surface.800}`,color:`{text.color}`},row:{stripedBackground:`{surface.950}`},bodyCell:{selectedBorderColor:`{primary.900}`}}}},lEt={root:{borderColor:`{content.border.color}`,borderWidth:`1px`,borderRadius:`4px`,padding:`0`},header:{borderColor:`{content.border.color}`,borderWidth:`0 0 1px 0`,padding:`0.875rem 1.125rem`,borderRadius:`5px 5px 0 0`},content:{background:`{content.background}`,color:`{content.color}`,borderColor:`transparent`,borderWidth:`0`,padding:`0`,borderRadius:`5px`},footer:{background:`{content.background}`,color:`{content.color}`,borderColor:`{content.border.color}`,borderWidth:`1px 0 0 0`,padding:`0.875rem 1.125rem`,borderRadius:`0 0 5px 5px`},paginatorTop:{borderColor:`{content.border.color}`,borderWidth:`0 0 1px 0`},paginatorBottom:{borderColor:`{content.border.color}`,borderWidth:`1px 0 0 0`},colorScheme:{light:{header:{background:`{surface.50}`,color:`{text.color}`}},dark:{header:{background:`{surface.800}`,color:`{text.color}`}}}},uEt={root:{transitionDuration:`{transition.duration}`},panel:{background:`{content.background}`,borderColor:`{content.border.color}`,color:`{content.color}`,borderRadius:`{content.border.radius}`,shadow:`{overlay.popover.shadow}`,padding:`{overlay.popover.padding}`},header:{background:`{content.background}`,borderColor:`{content.border.color}`,color:`{content.color}`,padding:`0 0 0.75rem 0`},title:{gap:`0.5rem`,fontWeight:`700`},dropdown:{width:`2.5rem`,sm:{width:`2rem`},lg:{width:`3rem`},borderColor:`{form.field.border.color}`,hoverBorderColor:`{form.field.border.color}`,activeBorderColor:`{form.field.border.color}`,borderRadius:`{form.field.border.radius}`,focusRing:{width:`{form.field.focus.ring.width}`,style:`{form.field.focus.ring.style}`,color:`{form.field.focus.ring.color}`,offset:`{form.field.focus.ring.offset}`,shadow:`{form.field.focus.ring.shadow}`}},inputIcon:{color:`{form.field.icon.color}`},selectMonth:{hoverBackground:`{content.hover.background}`,color:`{content.color}`,hoverColor:`{content.hover.color}`,padding:`0.375rem 0.625rem`,borderRadius:`{content.border.radius}`},selectYear:{hoverBackground:`{content.hover.background}`,color:`{content.color}`,hoverColor:`{content.hover.color}`,padding:`0.375rem 0.625rem`,borderRadius:`{content.border.radius}`},group:{borderColor:`{content.border.color}`,gap:`{overlay.popover.padding}`},dayView:{margin:`0.75rem 0 0 0`},weekDay:{padding:`0.375rem`,fontWeight:`700`,color:`{content.color}`},date:{hoverBackground:`{content.hover.background}`,selectedBackground:`{primary.color}`,rangeSelectedBackground:`{highlight.background}`,color:`{content.color}`,hoverColor:`{content.hover.color}`,selectedColor:`{primary.contrast.color}`,rangeSelectedColor:`{highlight.color}`,width:`2.5rem`,height:`2.5rem`,borderRadius:`50%`,padding:`0.375rem`,focusRing:{width:`{form.field.focus.ring.width}`,style:`{form.field.focus.ring.style}`,color:`{form.field.focus.ring.color}`,offset:`{form.field.focus.ring.offset}`,shadow:`{form.field.focus.ring.shadow}`}},monthView:{margin:`0.75rem 0 0 0`},month:{padding:`0.5rem`,borderRadius:`{content.border.radius}`},yearView:{margin:`0.75rem 0 0 0`},year:{padding:`0.5rem`,borderRadius:`{content.border.radius}`},buttonbar:{padding:`0.75rem 0 0 0`,borderColor:`{content.border.color}`},timePicker:{padding:`0.75rem 0 0 0`,borderColor:`{content.border.color}`,gap:`0.5rem`,buttonGap:`0.25rem`},colorScheme:{light:{dropdown:{background:`{surface.50}`,hoverBackground:`{surface.100}`,activeBackground:`{surface.200}`,color:`{surface.600}`,hoverColor:`{surface.700}`,activeColor:`{surface.800}`},today:{background:`{surface.200}`,color:`{surface.900}`}},dark:{dropdown:{background:`{surface.800}`,hoverBackground:`{surface.700}`,activeBackground:`{surface.600}`,color:`{surface.300}`,hoverColor:`{surface.200}`,activeColor:`{surface.100}`},today:{background:`{surface.700}`,color:`{surface.0}`}}}},dEt={root:{background:`{overlay.modal.background}`,borderColor:`{overlay.modal.border.color}`,color:`{overlay.modal.color}`,borderRadius:`{overlay.modal.border.radius}`,shadow:`{overlay.modal.shadow}`},header:{padding:`{overlay.modal.padding}`,gap:`0.5rem`},title:{fontSize:`1.25rem`,fontWeight:`600`},content:{padding:`0 {overlay.modal.padding} {overlay.modal.padding} {overlay.modal.padding}`},footer:{padding:`0 {overlay.modal.padding} {overlay.modal.padding} {overlay.modal.padding}`,gap:`0.5rem`}},fEt={root:{borderColor:`{content.border.color}`},content:{background:`{content.background}`,color:`{text.color}`},horizontal:{margin:`1.125rem 0`,padding:`0 1.125rem`,content:{padding:`0 0.625rem`}},vertical:{margin:`0 1.125rem`,padding:`1.125rem 0`,content:{padding:`0.625rem 0`}}},pEt={root:{background:`rgba(255, 255, 255, 0.1)`,borderColor:`rgba(255, 255, 255, 0.2)`,padding:`0.5rem`,borderRadius:`{border.radius.lg}`},item:{borderRadius:`{content.border.radius}`,padding:`0.5rem`,size:`3rem`,focusRing:{width:`{focus.ring.width}`,style:`{focus.ring.style}`,color:`{focus.ring.color}`,offset:`{focus.ring.offset}`,shadow:`{focus.ring.shadow}`}}},mEt={root:{background:`{overlay.modal.background}`,borderColor:`{overlay.modal.border.color}`,color:`{overlay.modal.color}`,shadow:`{overlay.modal.shadow}`},header:{padding:`{overlay.modal.padding}`},title:{fontSize:`1.5rem`,fontWeight:`600`},content:{padding:`0 {overlay.modal.padding} {overlay.modal.padding} {overlay.modal.padding}`},footer:{padding:`{overlay.modal.padding}`}},hEt={toolbar:{borderColor:`{content.border.color}`,borderRadius:`{content.border.radius}`},toolbarItem:{color:`{text.muted.color}`,hoverColor:`{text.color}`,activeColor:`{primary.color}`},overlay:{background:`{overlay.select.background}`,borderColor:`{overlay.select.border.color}`,borderRadius:`{overlay.select.border.radius}`,color:`{overlay.select.color}`,shadow:`{overlay.select.shadow}`,padding:`{list.padding}`},overlayOption:{focusBackground:`{list.option.focus.background}`,color:`{list.option.color}`,focusColor:`{list.option.focus.color}`,padding:`{list.option.padding}`,borderRadius:`{list.option.border.radius}`},content:{background:`{content.background}`,borderColor:`{content.border.color}`,color:`{content.color}`,borderRadius:`{content.border.radius}`},colorScheme:{light:{toolbar:{background:`{surface.50}`}},dark:{toolbar:{background:`{surface.800}`}}}},gEt={root:{background:`{content.background}`,borderColor:`{content.border.color}`,borderRadius:`{content.border.radius}`,color:`{content.color}`,padding:`0.75rem 1.125rem 1.125rem 1.125rem`,transitionDuration:`{transition.duration}`},legend:{borderRadius:`{content.border.radius}`,borderWidth:`1px`,borderColor:`{content.border.color}`,padding:`0.625rem 0.875rem`,gap:`0.5rem`,fontWeight:`700`,focusRing:{width:`{focus.ring.width}`,style:`{focus.ring.style}`,color:`{focus.ring.color}`,offset:`{focus.ring.offset}`,shadow:`{focus.ring.shadow}`}},toggleIcon:{color:`{text.muted.color}`,hoverColor:`{text.hover.muted.color}`},content:{padding:`0`},colorScheme:{light:{legend:{background:`{surface.50}`,hoverBackground:`{surface.100}`,color:`{text.color}`,hoverColor:`{text.hover.color}`}},dark:{legend:{background:`{surface.800}`,hoverBackground:`{surface.700}`,color:`{text.color}`,hoverColor:`{text.hover.color}`}}}},_Et={root:{background:`{content.background}`,borderColor:`{content.border.color}`,color:`{content.color}`,borderRadius:`{content.border.radius}`,transitionDuration:`{transition.duration}`},header:{borderWidth:`0 0 1px 0`,borderColor:`{content.border.color}`,padding:`1.125rem`,borderRadius:`5px 5px 0 0`,gap:`0.5rem`},content:{highlightBorderColor:`{primary.color}`,padding:`1.125rem`,gap:`1rem`},file:{padding:`1rem`,gap:`1rem`,borderColor:`{content.border.color}`,info:{gap:`0.5rem`}},fileList:{gap:`0.5rem`},progressbar:{height:`0.25rem`},basic:{gap:`0.5rem`},colorScheme:{light:{header:{background:`{surface.50}`,color:`{text.color}`}},dark:{header:{background:`{surface.800}`,color:`{text.color}`}}}},vEt={root:{color:`{form.field.float.label.color}`,focusColor:`{form.field.float.label.focus.color}`,activeColor:`{form.field.float.label.active.color}`,invalidColor:`{form.field.float.label.invalid.color}`,transitionDuration:`0.2s`,positionX:`{form.field.padding.x}`,positionY:`{form.field.padding.y}`,fontWeight:`500`,active:{fontSize:`0.75rem`,fontWeight:`400`}},over:{active:{top:`-1.375rem`}},in:{input:{paddingTop:`1.875rem`,paddingBottom:`{form.field.padding.y}`},active:{top:`{form.field.padding.y}`}},on:{borderRadius:`{border.radius.xs}`,active:{background:`{form.field.background}`,padding:`0 0.125rem`}}},yEt={root:{borderWidth:`1px`,borderColor:`{content.border.color}`,borderRadius:`{content.border.radius}`,transitionDuration:`{transition.duration}`},navButton:{background:`rgba(255, 255, 255, 0.1)`,hoverBackground:`rgba(255, 255, 255, 0.2)`,color:`{surface.100}`,hoverColor:`{surface.0}`,size:`3rem`,gutter:`0`,prev:{borderRadius:`0 12px 12px 0`},next:{borderRadius:`12px 0 0 12px`},focusRing:{width:`{focus.ring.width}`,style:`{focus.ring.style}`,color:`{focus.ring.color}`,offset:`{focus.ring.offset}`,shadow:`{focus.ring.shadow}`}},navIcon:{size:`1.5rem`},thumbnailsContent:{padding:`1rem 0.25rem`},thumbnailNavButton:{size:`2rem`,borderRadius:`{content.border.radius}`,gutter:`0.5rem`,focusRing:{width:`{focus.ring.width}`,style:`{focus.ring.style}`,color:`{focus.ring.color}`,offset:`{focus.ring.offset}`,shadow:`{focus.ring.shadow}`}},thumbnailNavButtonIcon:{size:`1rem`},caption:{background:`rgba(0, 0, 0, 0.5)`,color:`{surface.100}`,padding:`1rem`},indicatorList:{gap:`0.5rem`,padding:`1rem`},indicatorButton:{width:`1rem`,height:`1rem`,activeBackground:`{primary.color}`,borderRadius:`50%`,focusRing:{width:`{focus.ring.width}`,style:`{focus.ring.style}`,color:`{focus.ring.color}`,offset:`{focus.ring.offset}`,shadow:`{focus.ring.shadow}`}},insetIndicatorList:{background:`rgba(0, 0, 0, 0.5)`},insetIndicatorButton:{background:`rgba(255, 255, 255, 0.4)`,hoverBackground:`rgba(255, 255, 255, 0.6)`,activeBackground:`rgba(255, 255, 255, 0.9)`},closeButton:{size:`3rem`,gutter:`0.5rem`,background:`rgba(255, 255, 255, 0.1)`,hoverBackground:`rgba(255, 255, 255, 0.2)`,color:`{surface.50}`,hoverColor:`{surface.0}`,borderRadius:`50%`,focusRing:{width:`{focus.ring.width}`,style:`{focus.ring.style}`,color:`{focus.ring.color}`,offset:`{focus.ring.offset}`,shadow:`{focus.ring.shadow}`}},closeButtonIcon:{size:`1.5rem`},colorScheme:{light:{thumbnailsContent:{background:`{surface.50}`},thumbnailNavButton:{hoverBackground:`{surface.100}`,color:`{surface.600}`,hoverColor:`{surface.700}`},indicatorButton:{background:`{surface.200}`,hoverBackground:`{surface.300}`}},dark:{thumbnailsContent:{background:`{surface.800}`},thumbnailNavButton:{hoverBackground:`{surface.700}`,color:`{surface.400}`,hoverColor:`{surface.0}`},indicatorButton:{background:`{surface.700}`,hoverBackground:`{surface.600}`}}}},bEt={icon:{color:`{form.field.icon.color}`}},xEt={root:{color:`{form.field.float.label.color}`,focusColor:`{form.field.float.label.focus.color}`,invalidColor:`{form.field.float.label.invalid.color}`,transitionDuration:`0.2s`,positionX:`{form.field.padding.x}`,top:`{form.field.padding.y}`,fontSize:`0.75rem`,fontWeight:`400`},input:{paddingTop:`1.875rem`,paddingBottom:`{form.field.padding.y}`}},SEt={root:{transitionDuration:`{transition.duration}`},preview:{icon:{size:`1.5rem`},mask:{background:`{mask.background}`,color:`{mask.color}`}},toolbar:{position:{left:`auto`,right:`1rem`,top:`1rem`,bottom:`auto`},blur:`8px`,background:`rgba(255,255,255,0.1)`,borderColor:`rgba(255,255,255,0.2)`,borderWidth:`1px`,borderRadius:`{content.border.radius}`,padding:`.5rem`,gap:`0.5rem`},action:{hoverBackground:`rgba(255,255,255,0.1)`,color:`{surface.50}`,hoverColor:`{surface.0}`,size:`3rem`,iconSize:`1.5rem`,borderRadius:`{content.border.radius}`,focusRing:{width:`{focus.ring.width}`,style:`{focus.ring.style}`,color:`{focus.ring.color}`,offset:`{focus.ring.offset}`,shadow:`{focus.ring.shadow}`}}},CEt={handle:{size:`15px`,hoverSize:`30px`,background:`rgba(255,255,255,0.3)`,hoverBackground:`rgba(255,255,255,0.3)`,borderColor:`rgba(255,255,255,0.3)`,hoverBorderColor:`rgba(255,255,255,0.3)`,borderWidth:`3px`,borderRadius:`50%`,transitionDuration:`{transition.duration}`,focusRing:{width:`{focus.ring.width}`,style:`{focus.ring.style}`,color:`rgba(255,255,255,0.3)`,offset:`{focus.ring.offset}`,shadow:`{focus.ring.shadow}`}}},wEt={root:{padding:`{form.field.padding.y} {form.field.padding.x}`,borderRadius:`{content.border.radius}`,gap:`0.5rem`},text:{fontWeight:`500`},icon:{size:`1.125rem`},colorScheme:{light:{info:{background:`color-mix(in srgb, {blue.50}, transparent 5%)`,borderColor:`color-mix(in srgb, {blue.50}, transparent 5%)`,color:`{blue.600}`,shadow:`none`},success:{background:`color-mix(in srgb, {green.50}, transparent 5%)`,borderColor:`color-mix(in srgb, {green.50}, transparent 5%)`,color:`{green.600}`,shadow:`none`},warn:{background:`color-mix(in srgb,{yellow.50}, transparent 5%)`,borderColor:`color-mix(in srgb,{yellow.50}, transparent 5%)`,color:`{yellow.600}`,shadow:`none`},error:{background:`color-mix(in srgb, {red.50}, transparent 5%)`,borderColor:`color-mix(in srgb, {red.50}, transparent 5%)`,color:`{red.600}`,shadow:`none`},secondary:{background:`{surface.100}`,borderColor:`{surface.100}`,color:`{surface.600}`,shadow:`none`},contrast:{background:`{surface.900}`,borderColor:`{surface.900}`,color:`{surface.50}`,shadow:`none`}},dark:{info:{background:`color-mix(in srgb, {blue.500}, transparent 84%)`,borderColor:`color-mix(in srgb, {blue.500}, transparent 84%)`,color:`{blue.500}`,shadow:`none`},success:{background:`color-mix(in srgb, {green.500}, transparent 84%)`,borderColor:`color-mix(in srgb, {green.500}, transparent 84%)`,color:`{green.500}`,shadow:`none`},warn:{background:`color-mix(in srgb, {yellow.500}, transparent 84%)`,borderColor:`color-mix(in srgb, {yellow.500}, transparent 84%)`,color:`{yellow.500}`,shadow:`none`},error:{background:`color-mix(in srgb, {red.500}, transparent 84%)`,borderColor:`color-mix(in srgb, {red.500}, transparent 84%)`,color:`{red.500}`,shadow:`none`},secondary:{background:`{surface.800}`,borderColor:`{surface.800}`,color:`{surface.300}`,shadow:`none`},contrast:{background:`{surface.0}`,borderColor:`{surface.0}`,color:`{surface.950}`,shadow:`none`}}}},TEt={root:{padding:`{form.field.padding.y} {form.field.padding.x}`,borderRadius:`{content.border.radius}`,focusRing:{width:`{focus.ring.width}`,style:`{focus.ring.style}`,color:`{focus.ring.color}`,offset:`{focus.ring.offset}`,shadow:`{focus.ring.shadow}`},transitionDuration:`{transition.duration}`},display:{hoverBackground:`{content.hover.background}`,hoverColor:`{content.hover.color}`}},EEt={root:{background:`{form.field.background}`,disabledBackground:`{form.field.disabled.background}`,filledBackground:`{form.field.filled.background}`,filledFocusBackground:`{form.field.filled.focus.background}`,borderColor:`{form.field.border.color}`,hoverBorderColor:`{form.field.hover.border.color}`,focusBorderColor:`{form.field.focus.border.color}`,invalidBorderColor:`{form.field.invalid.border.color}`,color:`{form.field.color}`,disabledColor:`{form.field.disabled.color}`,placeholderColor:`{form.field.placeholder.color}`,shadow:`{form.field.shadow}`,paddingX:`{form.field.padding.x}`,paddingY:`{form.field.padding.y}`,borderRadius:`{form.field.border.radius}`,focusRing:{width:`{form.field.focus.ring.width}`,style:`{form.field.focus.ring.style}`,color:`{form.field.focus.ring.color}`,offset:`{form.field.focus.ring.offset}`,shadow:`{form.field.focus.ring.shadow}`},transitionDuration:`{form.field.transition.duration}`},chip:{borderRadius:`{border.radius.sm}`},colorScheme:{light:{chip:{focusBackground:`{surface.200}`,color:`{surface.800}`}},dark:{chip:{focusBackground:`{surface.700}`,color:`{surface.0}`}}}},DEt={addon:{borderRadius:`{form.field.border.radius}`,padding:`0.625rem 0.5rem`,minWidth:`2.75rem`},colorScheme:{light:{addon:{background:`{surface.50}`,borderColor:`{form.field.border.color}`,color:`{text.muted.color}`}},dark:{addon:{background:`{surface.800}`,borderColor:`{form.field.border.color}`,color:`{text.muted.color}`}}}},OEt={root:{transitionDuration:`{transition.duration}`},button:{width:`2.5rem`,borderRadius:`{form.field.border.radius}`,verticalPadding:`{form.field.padding.y}`},colorScheme:{light:{button:{background:`{surface.100}`,hoverBackground:`{surface.200}`,activeBackground:`{surface.300}`,borderColor:`{form.field.border.color}`,hoverBorderColor:`{form.field.border.color}`,activeBorderColor:`{form.field.border.color}`,color:`{surface.600}`,hoverColor:`{surface.700}`,activeColor:`{surface.800}`}},dark:{button:{background:`{surface.800}`,hoverBackground:`{surface.700}`,activeBackground:`{surface.500}`,borderColor:`{form.field.border.color}`,hoverBorderColor:`{form.field.border.color}`,activeBorderColor:`{form.field.border.color}`,color:`{surface.300}`,hoverColor:`{surface.200}`,activeColor:`{surface.100}`}}}},kEt={root:{gap:`0.5rem`},input:{width:`2.5rem`,sm:{width:`2rem`},lg:{width:`3rem`}}},AEt={root:{background:`{form.field.background}`,disabledBackground:`{form.field.disabled.background}`,filledBackground:`{form.field.filled.background}`,filledHoverBackground:`{form.field.filled.hover.background}`,filledFocusBackground:`{form.field.filled.focus.background}`,borderColor:`{form.field.border.color}`,hoverBorderColor:`{form.field.hover.border.color}`,focusBorderColor:`{form.field.focus.border.color}`,invalidBorderColor:`{form.field.invalid.border.color}`,color:`{form.field.color}`,disabledColor:`{form.field.disabled.color}`,placeholderColor:`{form.field.placeholder.color}`,invalidPlaceholderColor:`{form.field.invalid.placeholder.color}`,shadow:`{form.field.shadow}`,paddingX:`{form.field.padding.x}`,paddingY:`{form.field.padding.y}`,borderRadius:`{form.field.border.radius}`,focusRing:{width:`{form.field.focus.ring.width}`,style:`{form.field.focus.ring.style}`,color:`{form.field.focus.ring.color}`,offset:`{form.field.focus.ring.offset}`,shadow:`{form.field.focus.ring.shadow}`},transitionDuration:`{form.field.transition.duration}`,sm:{fontSize:`{form.field.sm.font.size}`,paddingX:`{form.field.sm.padding.x}`,paddingY:`{form.field.sm.padding.y}`},lg:{fontSize:`{form.field.lg.font.size}`,paddingX:`{form.field.lg.padding.x}`,paddingY:`{form.field.lg.padding.y}`}}},jEt={root:{transitionDuration:`{transition.duration}`,focusRing:{width:`{focus.ring.width}`,style:`{focus.ring.style}`,color:`{focus.ring.color}`,offset:`{focus.ring.offset}`,shadow:`{focus.ring.shadow}`}},value:{background:`{primary.color}`},range:{background:`{content.border.color}`},text:{color:`{text.muted.color}`}},MEt={root:{background:`{form.field.background}`,disabledBackground:`{form.field.disabled.background}`,borderColor:`{form.field.border.color}`,invalidBorderColor:`{form.field.invalid.border.color}`,color:`{form.field.color}`,disabledColor:`{form.field.disabled.color}`,shadow:`{form.field.shadow}`,borderRadius:`{form.field.border.radius}`,transitionDuration:`{form.field.transition.duration}`},list:{padding:`{list.padding}`,gap:`{list.gap}`,header:{padding:`{list.header.padding}`}},option:{focusBackground:`{list.option.focus.background}`,selectedBackground:`{list.option.selected.background}`,selectedFocusBackground:`{list.option.selected.focus.background}`,color:`{list.option.color}`,focusColor:`{list.option.focus.color}`,selectedColor:`{list.option.selected.color}`,selectedFocusColor:`{list.option.selected.focus.color}`,padding:`{list.option.padding}`,borderRadius:`{list.option.border.radius}`},optionGroup:{background:`{list.option.group.background}`,color:`{list.option.group.color}`,fontWeight:`{list.option.group.font.weight}`,padding:`{list.option.group.padding}`},checkmark:{color:`{list.option.color}`,gutterStart:`-0.5rem`,gutterEnd:`0.5rem`},emptyMessage:{padding:`{list.option.padding}`},colorScheme:{light:{option:{stripedBackground:`{surface.50}`}},dark:{option:{stripedBackground:`{surface.900}`}}}},NEt={root:{borderColor:`transparent`,borderRadius:`{content.border.radius}`,color:`{content.color}`,gap:`0.5rem`,verticalOrientation:{padding:`{navigation.list.padding}`,gap:`{navigation.list.gap}`},horizontalOrientation:{padding:`0.75rem 1rem`,gap:`0.5rem`},transitionDuration:`{transition.duration}`},baseItem:{borderRadius:`{content.border.radius}`,padding:`0.75rem 1rem`},item:{focusBackground:`{navigation.item.focus.background}`,activeBackground:`{navigation.item.active.background}`,color:`{navigation.item.color}`,focusColor:`{navigation.item.focus.color}`,activeColor:`{navigation.item.active.color}`,padding:`{navigation.item.padding}`,borderRadius:`{navigation.item.border.radius}`,gap:`{navigation.item.gap}`,icon:{color:`{navigation.item.icon.color}`,focusColor:`{navigation.item.icon.focus.color}`,activeColor:`{navigation.item.icon.active.color}`}},overlay:{padding:`0`,background:`{content.background}`,borderColor:`{content.border.color}`,borderRadius:`{content.border.radius}`,color:`{content.color}`,shadow:`{overlay.navigation.shadow}`,gap:`0.5rem`},submenu:{padding:`{navigation.list.padding}`,gap:`{navigation.list.gap}`},submenuLabel:{padding:`{navigation.submenu.label.padding}`,fontWeight:`{navigation.submenu.label.font.weight}`,background:`{navigation.submenu.label.background}`,color:`{navigation.submenu.label.color}`},submenuIcon:{size:`{navigation.submenu.icon.size}`,color:`{navigation.submenu.icon.color}`,focusColor:`{navigation.submenu.icon.focus.color}`,activeColor:`{navigation.submenu.icon.active.color}`},separator:{borderColor:`{content.border.color}`},mobileButton:{borderRadius:`50%`,size:`2rem`,color:`{text.muted.color}`,hoverColor:`{text.hover.muted.color}`,hoverBackground:`{content.hover.background}`,focusRing:{width:`{focus.ring.width}`,style:`{focus.ring.style}`,color:`{focus.ring.color}`,offset:`{focus.ring.offset}`,shadow:`{focus.ring.shadow}`}},colorScheme:{light:{root:{background:`{surface.50}`}},dark:{root:{background:`{surface.800}`}}}},PEt={root:{background:`{content.background}`,borderColor:`{content.border.color}`,color:`{content.color}`,borderRadius:`{content.border.radius}`,shadow:`{overlay.navigation.shadow}`,transitionDuration:`{transition.duration}`},list:{padding:`{navigation.list.padding}`,gap:`{navigation.list.gap}`},item:{focusBackground:`{navigation.item.focus.background}`,color:`{navigation.item.color}`,focusColor:`{navigation.item.focus.color}`,padding:`{navigation.item.padding}`,borderRadius:`{navigation.item.border.radius}`,gap:`{navigation.item.gap}`,icon:{color:`{navigation.item.icon.color}`,focusColor:`{navigation.item.icon.focus.color}`}},submenuLabel:{padding:`{navigation.submenu.label.padding}`,fontWeight:`{navigation.submenu.label.font.weight}`,background:`{navigation.submenu.label.background}`,color:`{navigation.submenu.label.color}`},separator:{borderColor:`{content.border.color}`}},FEt={root:{borderColor:`transparent`,borderRadius:`{content.border.radius}`,color:`{content.color}`,gap:`0.5rem`,padding:`0.75rem 1rem`,transitionDuration:`{transition.duration}`},baseItem:{borderRadius:`{content.border.radius}`,padding:`0.75rem 1rem`},item:{focusBackground:`{navigation.item.focus.background}`,activeBackground:`{navigation.item.active.background}`,color:`{navigation.item.color}`,focusColor:`{navigation.item.focus.color}`,activeColor:`{navigation.item.active.color}`,padding:`{navigation.item.padding}`,borderRadius:`{navigation.item.border.radius}`,gap:`{navigation.item.gap}`,icon:{color:`{navigation.item.icon.color}`,focusColor:`{navigation.item.icon.focus.color}`,activeColor:`{navigation.item.icon.active.color}`}},submenu:{padding:`{navigation.list.padding}`,gap:`{navigation.list.gap}`,background:`{content.background}`,borderColor:`{content.border.color}`,borderRadius:`{content.border.radius}`,shadow:`{overlay.navigation.shadow}`,mobileIndent:`1.25rem`,icon:{size:`{navigation.submenu.icon.size}`,color:`{navigation.submenu.icon.color}`,focusColor:`{navigation.submenu.icon.focus.color}`,activeColor:`{navigation.submenu.icon.active.color}`}},separator:{borderColor:`{content.border.color}`},mobileButton:{borderRadius:`50%`,size:`2rem`,color:`{text.muted.color}`,hoverColor:`{text.hover.muted.color}`,hoverBackground:`{content.hover.background}`,focusRing:{width:`{focus.ring.width}`,style:`{focus.ring.style}`,color:`{focus.ring.color}`,offset:`{focus.ring.offset}`,shadow:`{focus.ring.shadow}`}},colorScheme:{light:{root:{background:`{surface.50}`}},dark:{root:{background:`{surface.800}`}}}},IEt={root:{borderRadius:`{content.border.radius}`,borderWidth:`1px`,transitionDuration:`{transition.duration}`},content:{padding:`0.75rem 1rem`,gap:`0.5rem`,sm:{padding:`0.5rem 0.625rem`},lg:{padding:`0.75rem 0.875rem`}},text:{fontSize:`1rem`,fontWeight:`500`,sm:{fontSize:`0.875rem`},lg:{fontSize:`1.125rem`}},icon:{size:`1.25rem`,sm:{size:`1rem`},lg:{size:`1.5rem`}},closeButton:{width:`2rem`,height:`2rem`,borderRadius:`50%`,focusRing:{width:`{focus.ring.width}`,style:`{focus.ring.style}`,offset:`{focus.ring.offset}`}},closeIcon:{size:`1rem`,sm:{size:`0.875rem`},lg:{size:`1.125rem`}},outlined:{root:{borderWidth:`1px`}},simple:{content:{padding:`0`}},colorScheme:{light:{info:{background:`color-mix(in srgb, {blue.50}, transparent 5%)`,borderColor:`transparent`,color:`{blue.600}`,shadow:`none`,closeButton:{hoverBackground:`{blue.100}`,focusRing:{color:`{focus.ring.color}`,shadow:`0 0 0 0.2rem {blue.200}`}},outlined:{color:`{blue.600}`,borderColor:`{blue.600}`},simple:{color:`{blue.600}`}},success:{background:`color-mix(in srgb, {green.50}, transparent 5%)`,borderColor:`transparent`,color:`{green.600}`,shadow:`none`,closeButton:{hoverBackground:`{green.100}`,focusRing:{color:`{focus.ring.color}`,shadow:`0 0 0 0.2rem {green.200}`}},outlined:{color:`{green.600}`,borderColor:`{green.600}`},simple:{color:`{green.600}`}},warn:{background:`color-mix(in srgb,{yellow.50}, transparent 5%)`,borderColor:`transparent`,color:`{yellow.600}`,shadow:`none`,closeButton:{hoverBackground:`{yellow.100}`,focusRing:{color:`{focus.ring.color}`,shadow:`0 0 0 0.2rem {yellow.200}`}},outlined:{color:`{yellow.600}`,borderColor:`{yellow.600}`},simple:{color:`{yellow.600}`}},error:{background:`color-mix(in srgb, {red.50}, transparent 5%)`,borderColor:`transparent`,color:`{red.600}`,shadow:`none`,closeButton:{hoverBackground:`{red.100}`,focusRing:{color:`{focus.ring.color}`,shadow:`0 0 0 0.2rem {red.200}`}},outlined:{color:`{red.600}`,borderColor:`{red.600}`},simple:{color:`{red.600}`}},secondary:{background:`{surface.100}`,borderColor:`transparent`,color:`{surface.600}`,shadow:`none`,closeButton:{hoverBackground:`{surface.200}`,focusRing:{color:`{focus.ring.color}`,shadow:`0 0 0 0.2rem {surface.200}`}},outlined:{color:`{surface.500}`,borderColor:`{surface.500}`},simple:{color:`{surface.500}`}},contrast:{background:`{surface.900}`,borderColor:`transparent`,color:`{surface.50}`,shadow:`none`,closeButton:{hoverBackground:`{surface.800}`,focusRing:{color:`{focus.ring.color}`,shadow:`0 0 0 0.2rem {surface.400}`}},outlined:{color:`{surface.900}`,borderColor:`{surface.900}`},simple:{color:`{surface.900}`}}},dark:{info:{background:`color-mix(in srgb, {blue.500}, transparent 84%)`,borderColor:`transparent`,color:`{blue.500}`,shadow:`none`,closeButton:{hoverBackground:`rgba(255, 255, 255, 0.05)`,focusRing:{color:`{focus.ring.color}`,shadow:`0 0 0 0.2rem color-mix(in srgb, {blue.500}, transparent 80%)`}},outlined:{color:`{blue.500}`,borderColor:`{blue.500}`},simple:{color:`{blue.500}`}},success:{background:`color-mix(in srgb, {green.500}, transparent 84%)`,borderColor:`transparent`,color:`{green.500}`,shadow:`none`,closeButton:{hoverBackground:`rgba(255, 255, 255, 0.05)`,focusRing:{color:`{focus.ring.color}`,shadow:`0 0 0 0.2rem color-mix(in srgb, {green.500}, transparent 80%)`}},outlined:{color:`{green.500}`,borderColor:`{green.500}`},simple:{color:`{green.500}`}},warn:{background:`color-mix(in srgb, {yellow.500}, transparent 84%)`,borderColor:`transparent`,color:`{yellow.500}`,shadow:`none`,closeButton:{hoverBackground:`rgba(255, 255, 255, 0.05)`,focusRing:{color:`{focus.ring.color}`,shadow:`0 0 0 0.2rem color-mix(in srgb, {yellow.500}, transparent 80%)`}},outlined:{color:`{yellow.500}`,borderColor:`{yellow.500}`},simple:{color:`{yellow.500}`}},error:{background:`color-mix(in srgb, {red.500}, transparent 84%)`,borderColor:`transparent`,color:`{red.500}`,shadow:`none`,closeButton:{hoverBackground:`rgba(255, 255, 255, 0.05)`,focusRing:{color:`{focus.ring.color}`,shadow:`0 0 0 0.2rem color-mix(in srgb, {red.500}, transparent 80%)`}},outlined:{color:`{red.500}`,borderColor:`{red.500}`},simple:{color:`{red.500}`}},secondary:{background:`{surface.800}`,borderColor:`transparent`,color:`{surface.300}`,shadow:`none`,closeButton:{hoverBackground:`{surface.700}`,focusRing:{color:`{focus.ring.color}`,shadow:`0 0 0 0.2rem color-mix(in srgb, {surface.300}, transparent 80%)`}},outlined:{color:`{surface.400}`,borderColor:`{surface.400}`},simple:{color:`{surface.400}`}},contrast:{background:`{surface.0}`,borderColor:`transparent`,color:`{surface.950}`,shadow:`none`,closeButton:{hoverBackground:`{surface.100}`,focusRing:{color:`{focus.ring.color}`,shadow:`0 0 0 0.2rem color-mix(in srgb, {surface.950}, transparent 80%)`}},outlined:{color:`{surface.0}`,borderColor:`{surface.0}`},simple:{color:`{surface.0}`}}}}},LEt={root:{borderRadius:`{content.border.radius}`,gap:`1rem`},meters:{background:`{content.border.color}`,size:`0.625rem`},label:{gap:`0.5rem`},labelMarker:{size:`0.5rem`},labelIcon:{size:`1rem`},labelList:{verticalGap:`0.5rem`,horizontalGap:`1rem`}},REt={root:{background:`{form.field.background}`,disabledBackground:`{form.field.disabled.background}`,filledBackground:`{form.field.filled.background}`,filledHoverBackground:`{form.field.filled.hover.background}`,filledFocusBackground:`{form.field.filled.focus.background}`,borderColor:`{form.field.border.color}`,hoverBorderColor:`{form.field.hover.border.color}`,focusBorderColor:`{form.field.focus.border.color}`,invalidBorderColor:`{form.field.invalid.border.color}`,color:`{form.field.color}`,disabledColor:`{form.field.disabled.color}`,placeholderColor:`{form.field.placeholder.color}`,invalidPlaceholderColor:`{form.field.invalid.placeholder.color}`,shadow:`{form.field.shadow}`,paddingX:`{form.field.padding.x}`,paddingY:`{form.field.padding.y}`,borderRadius:`{form.field.border.radius}`,focusRing:{width:`{form.field.focus.ring.width}`,style:`{form.field.focus.ring.style}`,color:`{form.field.focus.ring.color}`,offset:`{form.field.focus.ring.offset}`,shadow:`{form.field.focus.ring.shadow}`},transitionDuration:`{form.field.transition.duration}`,sm:{fontSize:`{form.field.sm.font.size}`,paddingX:`{form.field.sm.padding.x}`,paddingY:`{form.field.sm.padding.y}`},lg:{fontSize:`{form.field.lg.font.size}`,paddingX:`{form.field.lg.padding.x}`,paddingY:`{form.field.lg.padding.y}`}},dropdown:{width:`2.5rem`,color:`{form.field.icon.color}`},overlay:{background:`{overlay.select.background}`,borderColor:`{overlay.select.border.color}`,borderRadius:`{overlay.select.border.radius}`,color:`{overlay.select.color}`,shadow:`{overlay.select.shadow}`},list:{padding:`{list.padding}`,gap:`{list.gap}`,header:{padding:`{list.header.padding}`}},option:{focusBackground:`{list.option.focus.background}`,selectedBackground:`{list.option.selected.background}`,selectedFocusBackground:`{list.option.selected.focus.background}`,color:`{list.option.color}`,focusColor:`{list.option.focus.color}`,selectedColor:`{list.option.selected.color}`,selectedFocusColor:`{list.option.selected.focus.color}`,padding:`{list.option.padding}`,borderRadius:`{list.option.border.radius}`,gap:`0.5rem`},optionGroup:{background:`{list.option.group.background}`,color:`{list.option.group.color}`,fontWeight:`{list.option.group.font.weight}`,padding:`{list.option.group.padding}`},chip:{borderRadius:`{border.radius.sm}`},clearIcon:{color:`{form.field.icon.color}`},emptyMessage:{padding:`{list.option.padding}`}},zEt={root:{gap:`1.125rem`},controls:{gap:`0.5rem`}},BEt={root:{gutter:`0.75rem`,transitionDuration:`{transition.duration}`},node:{background:`{content.background}`,hoverBackground:`{content.hover.background}`,selectedBackground:`{highlight.background}`,borderColor:`{content.border.color}`,color:`{content.color}`,selectedColor:`{highlight.color}`,hoverColor:`{content.hover.color}`,padding:`1rem 1.25rem`,toggleablePadding:`1rem 1.25rem 1.5rem 1.25rem`,borderRadius:`{content.border.radius}`},nodeToggleButton:{background:`{content.background}`,hoverBackground:`{content.hover.background}`,borderColor:`{content.border.color}`,color:`{text.muted.color}`,hoverColor:`{text.color}`,size:`1.75rem`,borderRadius:`50%`,focusRing:{width:`{focus.ring.width}`,style:`{focus.ring.style}`,color:`{focus.ring.color}`,offset:`{focus.ring.offset}`,shadow:`{focus.ring.shadow}`}},connector:{color:`{content.border.color}`,borderRadius:`{content.border.radius}`,height:`24px`}},VEt={root:{outline:{width:`2px`,color:`{content.background}`}}},HEt={root:{padding:`0.5rem 1rem`,gap:`0.25rem`,borderRadius:`{content.border.radius}`,background:`{content.background}`,color:`{content.color}`,transitionDuration:`{transition.duration}`},navButton:{background:`transparent`,hoverBackground:`{content.hover.background}`,selectedBackground:`{highlight.background}`,color:`{text.muted.color}`,hoverColor:`{text.hover.muted.color}`,selectedColor:`{highlight.color}`,width:`2.5rem`,height:`2.5rem`,borderRadius:`50%`,focusRing:{width:`{focus.ring.width}`,style:`{focus.ring.style}`,color:`{focus.ring.color}`,offset:`{focus.ring.offset}`,shadow:`{focus.ring.shadow}`}},currentPageReport:{color:`{text.muted.color}`},jumpToPageInput:{maxWidth:`2.5rem`}},UEt={root:{background:`{content.background}`,borderColor:`{content.border.color}`,borderRadius:`{content.border.radius}`,color:`{content.color}`},header:{borderWidth:`0 0 1px 0`,borderColor:`{content.border.color}`,padding:`1.125rem`,borderRadius:`5px 5px 0 0`},toggleableHeader:{padding:`0.25rem 1.125rem`},title:{fontWeight:`700`},content:{padding:`1.125rem`},footer:{padding:`1.125rem`},colorScheme:{light:{header:{background:`{surface.50}`,color:`{text.color}`}},dark:{header:{background:`{surface.800}`,color:`{text.color}`}}}},WEt={root:{gap:`0`,transitionDuration:`{transition.duration}`},panel:{background:`{content.background}`,borderColor:`{content.border.color}`,borderWidth:`1px`,color:`{content.color}`,padding:`0.25rem 0.25rem`,borderRadius:`0`,first:{borderWidth:`1px 1px 0 1px`,topBorderRadius:`{content.border.radius}`},last:{borderWidth:`0 1px 1px 1px`,bottomBorderRadius:`{content.border.radius}`}},item:{focusBackground:`{navigation.item.focus.background}`,color:`{navigation.item.color}`,focusColor:`{navigation.item.focus.color}`,gap:`0.5rem`,padding:`{navigation.item.padding}`,borderRadius:`{content.border.radius}`,icon:{color:`{navigation.item.icon.color}`,focusColor:`{navigation.item.icon.focus.color}`}},submenu:{indent:`1rem`},submenuIcon:{color:`{navigation.submenu.icon.color}`,focusColor:`{navigation.submenu.icon.focus.color}`}},GEt={meter:{background:`{content.border.color}`,borderRadius:`{content.border.radius}`,height:`.75rem`},icon:{color:`{form.field.icon.color}`},overlay:{background:`{overlay.popover.background}`,borderColor:`{overlay.popover.border.color}`,borderRadius:`{overlay.popover.border.radius}`,color:`{overlay.popover.color}`,padding:`{overlay.popover.padding}`,shadow:`{overlay.popover.shadow}`},content:{gap:`0.75rem`},colorScheme:{light:{strength:{weakBackground:`{red.500}`,mediumBackground:`{amber.500}`,strongBackground:`{green.500}`}},dark:{strength:{weakBackground:`{red.400}`,mediumBackground:`{amber.400}`,strongBackground:`{green.400}`}}}},KEt={root:{gap:`1.125rem`},controls:{gap:`0.5rem`}},qEt={root:{background:`{overlay.popover.background}`,borderColor:`{overlay.popover.border.color}`,color:`{overlay.popover.color}`,borderRadius:`{overlay.popover.border.radius}`,shadow:`{overlay.popover.shadow}`,gutter:`10px`,arrowOffset:`1.25rem`},content:{padding:`{overlay.popover.padding}`}},JEt={root:{background:`{content.border.color}`,borderRadius:`{content.border.radius}`,height:`1.5rem`},value:{background:`{primary.color}`},label:{color:`{primary.contrast.color}`,fontSize:`0.875rem`,fontWeight:`600`}},YEt={colorScheme:{light:{root:{colorOne:`{pink.500}`,colorTwo:`{sky.500}`,colorThree:`{emerald.500}`,colorFour:`{amber.500}`}},dark:{root:{colorOne:`{pink.400}`,colorTwo:`{sky.400}`,colorThree:`{emerald.400}`,colorFour:`{amber.400}`}}}},XEt={root:{width:`1.5rem`,height:`1.5rem`,background:`{form.field.background}`,checkedBackground:`{primary.color}`,checkedHoverBackground:`{primary.hover.color}`,disabledBackground:`{form.field.disabled.background}`,filledBackground:`{form.field.filled.background}`,borderColor:`{form.field.border.color}`,hoverBorderColor:`{form.field.hover.border.color}`,focusBorderColor:`{form.field.focus.border.color}`,checkedBorderColor:`{primary.color}`,checkedHoverBorderColor:`{primary.hover.color}`,checkedFocusBorderColor:`{primary.color}`,checkedDisabledBorderColor:`{form.field.border.color}`,invalidBorderColor:`{form.field.invalid.border.color}`,shadow:`{form.field.shadow}`,focusRing:{width:`{form.field.focus.ring.width}`,style:`{form.field.focus.ring.style}`,color:`{form.field.focus.ring.color}`,offset:`{form.field.focus.ring.offset}`,shadow:`{form.field.focus.ring.shadow}`},transitionDuration:`{form.field.transition.duration}`,sm:{width:`1.25rem`,height:`1.25rem`},lg:{width:`1.75rem`,height:`1.75rem`}},icon:{size:`1rem`,checkedColor:`{primary.contrast.color}`,checkedHoverColor:`{primary.contrast.color}`,disabledColor:`{form.field.disabled.color}`,sm:{size:`0.75rem`},lg:{size:`1.25rem`}}},ZEt={root:{gap:`0.25rem`,transitionDuration:`{transition.duration}`,focusRing:{width:`{focus.ring.width}`,style:`{focus.ring.style}`,color:`{focus.ring.color}`,offset:`{focus.ring.offset}`,shadow:`{focus.ring.shadow}`}},icon:{size:`1.25rem`,color:`{text.muted.color}`,hoverColor:`{primary.color}`,activeColor:`{primary.color}`}},QEt={colorScheme:{light:{root:{background:`rgba(0,0,0,0.1)`}},dark:{root:{background:`rgba(255,255,255,0.3)`}}}},$Et={root:{transitionDuration:`{transition.duration}`},bar:{size:`9px`,borderRadius:`{border.radius.sm}`,focusRing:{width:`{focus.ring.width}`,style:`{focus.ring.style}`,color:`{focus.ring.color}`,offset:`{focus.ring.offset}`,shadow:`{focus.ring.shadow}`}},colorScheme:{light:{bar:{background:`{surface.200}`}},dark:{bar:{background:`{surface.700}`}}}},eDt={root:{background:`{form.field.background}`,disabledBackground:`{form.field.disabled.background}`,filledBackground:`{form.field.filled.background}`,filledHoverBackground:`{form.field.filled.hover.background}`,filledFocusBackground:`{form.field.filled.focus.background}`,borderColor:`{form.field.border.color}`,hoverBorderColor:`{form.field.hover.border.color}`,focusBorderColor:`{form.field.focus.border.color}`,invalidBorderColor:`{form.field.invalid.border.color}`,color:`{form.field.color}`,disabledColor:`{form.field.disabled.color}`,placeholderColor:`{form.field.placeholder.color}`,invalidPlaceholderColor:`{form.field.invalid.placeholder.color}`,shadow:`{form.field.shadow}`,paddingX:`{form.field.padding.x}`,paddingY:`{form.field.padding.y}`,borderRadius:`{form.field.border.radius}`,focusRing:{width:`{form.field.focus.ring.width}`,style:`{form.field.focus.ring.style}`,color:`{form.field.focus.ring.color}`,offset:`{form.field.focus.ring.offset}`,shadow:`{form.field.focus.ring.shadow}`},transitionDuration:`{form.field.transition.duration}`,sm:{fontSize:`{form.field.sm.font.size}`,paddingX:`{form.field.sm.padding.x}`,paddingY:`{form.field.sm.padding.y}`},lg:{fontSize:`{form.field.lg.font.size}`,paddingX:`{form.field.lg.padding.x}`,paddingY:`{form.field.lg.padding.y}`}},dropdown:{width:`2.5rem`,color:`{form.field.icon.color}`},overlay:{background:`{overlay.select.background}`,borderColor:`{overlay.select.border.color}`,borderRadius:`{overlay.select.border.radius}`,color:`{overlay.select.color}`,shadow:`{overlay.select.shadow}`},list:{padding:`{list.padding}`,gap:`{list.gap}`,header:{padding:`{list.header.padding}`}},option:{focusBackground:`{list.option.focus.background}`,selectedBackground:`{list.option.selected.background}`,selectedFocusBackground:`{list.option.selected.focus.background}`,color:`{list.option.color}`,focusColor:`{list.option.focus.color}`,selectedColor:`{list.option.selected.color}`,selectedFocusColor:`{list.option.selected.focus.color}`,padding:`{list.option.padding}`,borderRadius:`{list.option.border.radius}`},optionGroup:{background:`{list.option.group.background}`,color:`{list.option.group.color}`,fontWeight:`{list.option.group.font.weight}`,padding:`{list.option.group.padding}`},clearIcon:{color:`{form.field.icon.color}`},checkmark:{color:`{list.option.color}`,gutterStart:`-0.5rem`,gutterEnd:`0.5rem`},emptyMessage:{padding:`{list.option.padding}`}},tDt={root:{borderRadius:`{form.field.border.radius}`},colorScheme:{light:{root:{invalidBorderColor:`{form.field.invalid.border.color}`}},dark:{root:{invalidBorderColor:`{form.field.invalid.border.color}`}}}},nDt={root:{borderRadius:`{content.border.radius}`},colorScheme:{light:{root:{background:`{surface.200}`,animationBackground:`rgba(255,255,255,0.4)`}},dark:{root:{background:`rgba(255, 255, 255, 0.06)`,animationBackground:`rgba(255, 255, 255, 0.04)`}}}},rDt={root:{transitionDuration:`{transition.duration}`},track:{background:`{content.border.color}`,borderRadius:`{content.border.radius}`,size:`3px`},range:{background:`{primary.color}`},handle:{width:`16px`,height:`16px`,borderRadius:`50%`,background:`{primary.color}`,hoverBackground:`{primary.color}`,content:{borderRadius:`50%`,hoverBackground:`{primary.color}`,width:`12px`,height:`12px`,shadow:`none`},focusRing:{width:`{form.field.focus.ring.width}`,style:`{form.field.focus.ring.style}`,color:`{form.field.focus.ring.color}`,offset:`{form.field.focus.ring.offset}`,shadow:`{form.field.focus.ring.shadow}`}},colorScheme:{light:{handle:{content:{background:`{surface.0}`}}},dark:{handle:{content:{background:`{surface.950}`}}}}},iDt={root:{gap:`0.5rem`,transitionDuration:`{transition.duration}`}},aDt={root:{borderRadius:`{form.field.border.radius}`,roundedBorderRadius:`2rem`,raisedShadow:`0 3px 1px -2px rgba(0, 0, 0, 0.2), 0 2px 2px 0 rgba(0, 0, 0, 0.14), 0 1px 5px 0 rgba(0, 0, 0, 0.12)`}},oDt={root:{background:`{content.background}`,borderColor:`{content.border.color}`,color:`{content.color}`,transitionDuration:`{transition.duration}`},gutter:{background:`{content.border.color}`},handle:{size:`24px`,borderRadius:`{content.border.radius}`,focusRing:{width:`{focus.ring.width}`,style:`{focus.ring.style}`,color:`{focus.ring.color}`,offset:`{focus.ring.offset}`,shadow:`{focus.ring.shadow}`}},colorScheme:{light:{handle:{background:`{surface.400}`}},dark:{handle:{background:`{surface.600}`}}}},sDt={root:{transitionDuration:`{transition.duration}`},separator:{background:`{content.border.color}`,activeBackground:`{primary.color}`,margin:`0 0 0 1.625rem`,size:`2px`},step:{padding:`0.5rem`,gap:`1rem`},stepHeader:{padding:`0`,borderRadius:`{content.border.radius}`,focusRing:{width:`{focus.ring.width}`,style:`{focus.ring.style}`,color:`{focus.ring.color}`,offset:`{focus.ring.offset}`,shadow:`{focus.ring.shadow}`},gap:`0.5rem`},stepTitle:{color:`{text.muted.color}`,activeColor:`{primary.color}`,fontWeight:`500`},stepNumber:{background:`{content.background}`,activeBackground:`{primary.color}`,borderColor:`{content.border.color}`,activeBorderColor:`{primary.color}`,color:`{text.muted.color}`,activeColor:`{primary.contrast.color}`,size:`2.25rem`,fontSize:`1.125rem`,fontWeight:`500`,borderRadius:`50%`,shadow:`none`},steppanels:{padding:`0.875rem 0.5rem 1.125rem 0.5rem`},steppanel:{background:`{content.background}`,color:`{content.color}`,padding:`0`,indent:`1rem`}},cDt={root:{transitionDuration:`{transition.duration}`},separator:{background:`{content.border.color}`},itemLink:{borderRadius:`{content.border.radius}`,focusRing:{width:`{focus.ring.width}`,style:`{focus.ring.style}`,color:`{focus.ring.color}`,offset:`{focus.ring.offset}`,shadow:`{focus.ring.shadow}`},gap:`0.5rem`},itemLabel:{color:`{text.muted.color}`,activeColor:`{primary.color}`,fontWeight:`500`},itemNumber:{background:`{content.background}`,activeBackground:`{primary.color}`,borderColor:`{content.border.color}`,activeBorderColor:`{primary.color}`,color:`{text.muted.color}`,activeColor:`{primary.contrast.color}`,size:`2.25rem`,fontSize:`1.125rem`,fontWeight:`500`,borderRadius:`50%`,shadow:`none`}},lDt={root:{transitionDuration:`{transition.duration}`},tablist:{borderWidth:`0`,background:`{content.background}`,borderColor:`{content.border.color}`},item:{borderWidth:`2px 0 0 0`,borderColor:`transparent`,hoverBorderColor:`transparent`,activeBorderColor:`{primary.color}`,color:`{text.muted.color}`,hoverColor:`{text.color}`,activeColor:`{primary.color}`,padding:`1rem 1.25rem`,fontWeight:`600`,margin:`0`,gap:`0.5rem`,focusRing:{width:`{focus.ring.width}`,style:`{focus.ring.style}`,color:`{focus.ring.color}`,offset:`{focus.ring.offset}`,shadow:`{focus.ring.shadow}`}},itemIcon:{color:`{text.muted.color}`,hoverColor:`{text.color}`,activeColor:`{primary.color}`},activeBar:{height:`0`,bottom:`0`,background:`transparent`},colorScheme:{light:{item:{background:`{surface.50}`,hoverBackground:`{surface.100}`,activeBackground:`{surface.0}`}},dark:{item:{background:`{surface.800}`,hoverBackground:`{surface.700}`,activeBackground:`{surface.900}`}}}},uDt={root:{transitionDuration:`{transition.duration}`},tablist:{borderWidth:`0`,background:`{content.background}`,borderColor:`{content.border.color}`},tab:{borderWidth:`2px 0 0 0`,borderColor:`transparent`,hoverBorderColor:`transparent`,activeBorderColor:`{primary.color}`,color:`{text.muted.color}`,hoverColor:`{text.color}`,activeColor:`{primary.color}`,padding:`1rem 1.25rem`,fontWeight:`700`,margin:`0`,gap:`0.5rem`,focusRing:{width:`{focus.ring.width}`,style:`{focus.ring.style}`,color:`{focus.ring.color}`,offset:`{focus.ring.offset}`,shadow:`inset {focus.ring.shadow}`}},tabpanel:{background:`{content.background}`,color:`{content.color}`,padding:`0.875rem 1.125rem 1.125rem 1.125rem`,focusRing:{width:`{focus.ring.width}`,style:`{focus.ring.style}`,color:`{focus.ring.color}`,offset:`{focus.ring.offset}`,shadow:`inset {focus.ring.shadow}`}},navButton:{background:`{content.background}`,color:`{text.muted.color}`,hoverColor:`{text.color}`,width:`2.5rem`,focusRing:{width:`{focus.ring.width}`,style:`{focus.ring.style}`,color:`{focus.ring.color}`,offset:`{focus.ring.offset}`,shadow:`inset {focus.ring.shadow}`}},activeBar:{height:`0`,bottom:`0`,background:`transparent`},colorScheme:{light:{navButton:{shadow:`0px 0px 10px 50px rgba(255, 255, 255, 0.6)`},tab:{background:`{surface.50}`,hoverBackground:`{surface.100}`,activeBackground:`{surface.0}`}},dark:{navButton:{shadow:`0px 0px 10px 50px color-mix(in srgb, {content.background}, transparent 50%)`},tab:{background:`{surface.800}`,hoverBackground:`{surface.700}`,activeBackground:`{surface.900}`}}}},dDt={root:{transitionDuration:`{transition.duration}`},tabList:{background:`{content.background}`,borderColor:`{content.border.color}`},tab:{borderColor:`{content.border.color}`,activeBorderColor:`{primary.color}`,color:`{text.muted.color}`,hoverColor:`{text.color}`,activeColor:`{primary.color}`},tabPanel:{background:`{content.background}`,color:`{content.color}`},navButton:{background:`{content.background}`,color:`{text.muted.color}`,hoverColor:`{text.color}`},colorScheme:{light:{navButton:{shadow:`0px 0px 10px 50px rgba(255, 255, 255, 0.6)`}},dark:{navButton:{shadow:`0px 0px 10px 50px color-mix(in srgb, {content.background}, transparent 50%)`}}}},fDt={root:{fontSize:`0.875rem`,fontWeight:`700`,padding:`0.25rem 0.5rem`,gap:`0.25rem`,borderRadius:`{content.border.radius}`,roundedBorderRadius:`{border.radius.xl}`},icon:{size:`0.75rem`},colorScheme:{light:{primary:{background:`{primary.color}`,color:`{primary.contrast.color}`},secondary:{background:`{surface.100}`,color:`{surface.600}`},success:{background:`{green.500}`,color:`{surface.0}`},info:{background:`{sky.500}`,color:`{surface.0}`},warn:{background:`{orange.500}`,color:`{surface.0}`},danger:{background:`{red.500}`,color:`{surface.0}`},contrast:{background:`{surface.950}`,color:`{surface.0}`}},dark:{primary:{background:`{primary.color}`,color:`{primary.contrast.color}`},secondary:{background:`{surface.800}`,color:`{surface.300}`},success:{background:`{green.400}`,color:`{green.950}`},info:{background:`{sky.400}`,color:`{sky.950}`},warn:{background:`{orange.400}`,color:`{orange.950}`},danger:{background:`{red.400}`,color:`{red.950}`},contrast:{background:`{surface.0}`,color:`{surface.950}`}}}},pDt={root:{background:`{form.field.background}`,borderColor:`{form.field.border.color}`,color:`{form.field.color}`,height:`18rem`,padding:`{form.field.padding.y} {form.field.padding.x}`,borderRadius:`{form.field.border.radius}`},prompt:{gap:`0.25rem`},commandResponse:{margin:`2px 0`}},mDt={root:{background:`{form.field.background}`,disabledBackground:`{form.field.disabled.background}`,filledBackground:`{form.field.filled.background}`,filledHoverBackground:`{form.field.filled.hover.background}`,filledFocusBackground:`{form.field.filled.focus.background}`,borderColor:`{form.field.border.color}`,hoverBorderColor:`{form.field.hover.border.color}`,focusBorderColor:`{form.field.focus.border.color}`,invalidBorderColor:`{form.field.invalid.border.color}`,color:`{form.field.color}`,disabledColor:`{form.field.disabled.color}`,placeholderColor:`{form.field.placeholder.color}`,invalidPlaceholderColor:`{form.field.invalid.placeholder.color}`,shadow:`{form.field.shadow}`,paddingX:`{form.field.padding.x}`,paddingY:`{form.field.padding.y}`,borderRadius:`{form.field.border.radius}`,focusRing:{width:`{form.field.focus.ring.width}`,style:`{form.field.focus.ring.style}`,color:`{form.field.focus.ring.color}`,offset:`{form.field.focus.ring.offset}`,shadow:`{form.field.focus.ring.shadow}`},transitionDuration:`{form.field.transition.duration}`,sm:{fontSize:`{form.field.sm.font.size}`,paddingX:`{form.field.sm.padding.x}`,paddingY:`{form.field.sm.padding.y}`},lg:{fontSize:`{form.field.lg.font.size}`,paddingX:`{form.field.lg.padding.x}`,paddingY:`{form.field.lg.padding.y}`}}},hDt={root:{background:`{content.background}`,borderColor:`{content.border.color}`,color:`{content.color}`,borderRadius:`{content.border.radius}`,shadow:`{overlay.navigation.shadow}`,transitionDuration:`{transition.duration}`},list:{padding:`{navigation.list.padding}`,gap:`{navigation.list.gap}`},item:{focusBackground:`{navigation.item.focus.background}`,activeBackground:`{navigation.item.active.background}`,color:`{navigation.item.color}`,focusColor:`{navigation.item.focus.color}`,activeColor:`{navigation.item.active.color}`,padding:`{navigation.item.padding}`,borderRadius:`{navigation.item.border.radius}`,gap:`{navigation.item.gap}`,icon:{color:`{navigation.item.icon.color}`,focusColor:`{navigation.item.icon.focus.color}`,activeColor:`{navigation.item.icon.active.color}`}},submenu:{mobileIndent:`1.25rem`},submenuIcon:{size:`{navigation.submenu.icon.size}`,color:`{navigation.submenu.icon.color}`,focusColor:`{navigation.submenu.icon.focus.color}`,activeColor:`{navigation.submenu.icon.active.color}`},separator:{borderColor:`{content.border.color}`}},gDt={event:{minHeight:`5rem`},horizontal:{eventContent:{padding:`1rem 0`}},vertical:{eventContent:{padding:`0 1rem`}},eventMarker:{size:`1.125rem`,borderRadius:`50%`,borderWidth:`2px`,background:`{content.background}`,borderColor:`{primary.color}`,content:{borderRadius:`50%`,size:`0.375rem`,background:`transparent`,insetShadow:`none`}},eventConnector:{color:`{content.border.color}`,size:`2px`}},_Dt={root:{width:`25rem`,borderRadius:`{content.border.radius}`,borderWidth:`0 0 0 6px`,transitionDuration:`{transition.duration}`},icon:{size:`1.25rem`},content:{padding:`{overlay.popover.padding}`,gap:`0.5rem`},text:{gap:`0.5rem`},summary:{fontWeight:`500`,fontSize:`1rem`},detail:{fontWeight:`500`,fontSize:`0.875rem`},closeButton:{width:`2rem`,height:`2rem`,borderRadius:`50%`,focusRing:{width:`{focus.ring.width}`,style:`{focus.ring.style}`,offset:`{focus.ring.offset}`}},closeIcon:{size:`1rem`},colorScheme:{light:{root:{blur:`1.5px`},info:{background:`color-mix(in srgb, {blue.50}, transparent 5%)`,borderColor:`{blue.500}`,color:`{blue.600}`,detailColor:`{surface.700}`,shadow:`{overlay.popover.shadow}`,closeButton:{hoverBackground:`{blue.100}`,focusRing:{color:`{focus.ring.color}`,shadow:`0 0 0 0.2rem {blue.200}`}}},success:{background:`color-mix(in srgb, {green.50}, transparent 5%)`,borderColor:`{green.500}`,color:`{green.600}`,detailColor:`{surface.700}`,shadow:`{overlay.popover.shadow}`,closeButton:{hoverBackground:`{green.100}`,focusRing:{color:`{focus.ring.color}`,shadow:`0 0 0 0.2rem {green.200}`}}},warn:{background:`color-mix(in srgb,{yellow.50}, transparent 5%)`,borderColor:`{yellow.500}`,color:`{yellow.600}`,detailColor:`{surface.700}`,shadow:`{overlay.popover.shadow}`,closeButton:{hoverBackground:`{yellow.100}`,focusRing:{color:`{focus.ring.color}`,shadow:`0 0 0 0.2rem {yellow.200}`}}},error:{background:`color-mix(in srgb, {red.50}, transparent 5%)`,borderColor:`{red.500}`,color:`{red.600}`,detailColor:`{surface.700}`,shadow:`{overlay.popover.shadow}`,closeButton:{hoverBackground:`{red.100}`,focusRing:{color:`{focus.ring.color}`,shadow:`0 0 0 0.2rem {red.200}`}}},secondary:{background:`{surface.100}`,borderColor:`{surface.500}`,color:`{surface.600}`,detailColor:`{surface.700}`,shadow:`{overlay.popover.shadow}`,closeButton:{hoverBackground:`{surface.200}`,focusRing:{color:`{focus.ring.color}`,shadow:`0 0 0 0.2rem {surface.200}`}}},contrast:{background:`{surface.900}`,borderColor:`{primary.color}`,color:`{surface.50}`,detailColor:`{surface.0}`,shadow:`{overlay.popover.shadow}`,closeButton:{hoverBackground:`{surface.800}`,focusRing:{color:`{focus.ring.color}`,shadow:`0 0 0 0.2rem {surface.400}`}}}},dark:{root:{blur:`10px`},info:{background:`color-mix(in srgb, {blue.500}, transparent 84%)`,borderColor:`color-mix(in srgb, {blue.700}, transparent 64%)`,color:`{blue.500}`,detailColor:`{surface.0}`,shadow:`{overlay.popover.shadow}`,closeButton:{hoverBackground:`rgba(255, 255, 255, 0.05)`,focusRing:{color:`{focus.ring.color}`,shadow:`0 0 0 0.2rem color-mix(in srgb, {blue.500}, transparent 80%)`}}},success:{background:`color-mix(in srgb, {green.500}, transparent 84%)`,borderColor:`color-mix(in srgb, {green.700}, transparent 64%)`,color:`{green.500}`,detailColor:`{surface.0}`,shadow:`{overlay.popover.shadow}`,closeButton:{hoverBackground:`rgba(255, 255, 255, 0.05)`,focusRing:{color:`{focus.ring.color}`,shadow:`0 0 0 0.2rem color-mix(in srgb, {green.500}, transparent 80%)`}}},warn:{background:`color-mix(in srgb, {yellow.500}, transparent 84%)`,borderColor:`color-mix(in srgb, {yellow.700}, transparent 64%)`,color:`{yellow.500}`,detailColor:`{surface.0}`,shadow:`{overlay.popover.shadow}`,closeButton:{hoverBackground:`rgba(255, 255, 255, 0.05)`,focusRing:{color:`{focus.ring.color}`,shadow:`0 0 0 0.2rem color-mix(in srgb, {yellow.500}, transparent 80%)`}}},error:{background:`color-mix(in srgb, {red.500}, transparent 84%)`,borderColor:`color-mix(in srgb, {red.700}, transparent 64%)`,color:`{red.500}`,detailColor:`{surface.0}`,shadow:`{overlay.popover.shadow}`,closeButton:{hoverBackground:`rgba(255, 255, 255, 0.05)`,focusRing:{color:`{focus.ring.color}`,shadow:`0 0 0 0.2rem color-mix(in srgb, {red.500}, transparent 80%)`}}},secondary:{background:`{surface.800}`,borderColor:`{surface.700}`,color:`{surface.300}`,detailColor:`{surface.0}`,shadow:`{overlay.popover.shadow}`,closeButton:{hoverBackground:`{surface.700}`,focusRing:{color:`{focus.ring.color}`,shadow:`0 0 0 0.2rem color-mix(in srgb, {surface.300}, transparent 80%)`}}},contrast:{background:`{surface.0}`,borderColor:`{surface.100}`,color:`{surface.950}`,detailColor:`{surface.950}`,shadow:`{overlay.popover.shadow}`,closeButton:{hoverBackground:`{surface.100}`,focusRing:{color:`{focus.ring.color}`,shadow:`0 0 0 0.2rem color-mix(in srgb, {surface.950}, transparent 80%)`}}}}}},vDt={root:{padding:`0.625rem 1rem`,borderRadius:`{content.border.radius}`,gap:`0.5rem`,fontWeight:`500`,background:`{form.field.background}`,borderColor:`{form.field.border.color}`,color:`{form.field.color}`,hoverColor:`{form.field.color}`,checkedBackground:`{highlight.background}`,checkedColor:`{highlight.color}`,checkedBorderColor:`{form.field.border.color}`,disabledBackground:`{form.field.disabled.background}`,disabledBorderColor:`{form.field.disabled.background}`,disabledColor:`{form.field.disabled.color}`,invalidBorderColor:`{form.field.invalid.border.color}`,focusRing:{width:`{form.field.focus.ring.width}`,style:`{form.field.focus.ring.style}`,color:`{form.field.focus.ring.color}`,offset:`{form.field.focus.ring.offset}`,shadow:`{form.field.focus.ring.shadow}`},transitionDuration:`{form.field.transition.duration}`,sm:{fontSize:`{form.field.sm.font.size}`,padding:`0.5rem 0.75rem`},lg:{fontSize:`{form.field.lg.font.size}`,padding:`0.75rem 1.25rem`}},icon:{color:`{text.muted.color}`,hoverColor:`{text.muted.color}`,checkedColor:`{highlight.color}`,disabledColor:`{form.field.disabled.color}`},content:{checkedBackground:`transparent`,checkedShadow:`none`,padding:`0`,borderRadius:`0`,sm:{padding:`0`},lg:{padding:`0`}},colorScheme:{light:{root:{hoverBackground:`{surface.100}`}},dark:{root:{hoverBackground:`{surface.800}`}}}},yDt={root:{width:`3rem`,height:`1.75rem`,borderRadius:`30px`,gap:`0.25rem`,shadow:`{form.field.shadow}`,focusRing:{width:`{form.field.focus.ring.width}`,style:`{form.field.focus.ring.style}`,color:`{form.field.focus.ring.color}`,offset:`{form.field.focus.ring.offset}`,shadow:`{form.field.focus.ring.shadow}`},borderWidth:`1px`,borderColor:`transparent`,hoverBorderColor:`transparent`,checkedBorderColor:`transparent`,checkedHoverBorderColor:`transparent`,invalidBorderColor:`{form.field.invalid.border.color}`,transitionDuration:`{form.field.transition.duration}`,slideDuration:`0.2s`},handle:{borderRadius:`50%`,size:`1.25rem`},colorScheme:{light:{root:{background:`{surface.300}`,disabledBackground:`{form.field.disabled.background}`,hoverBackground:`{surface.400}`,checkedBackground:`{primary.color}`,checkedHoverBackground:`{primary.hover.color}`},handle:{background:`{surface.0}`,disabledBackground:`{form.field.disabled.color}`,hoverBackground:`{surface.0}`,checkedBackground:`{surface.0}`,checkedHoverBackground:`{surface.0}`,color:`{text.muted.color}`,hoverColor:`{text.color}`,checkedColor:`{primary.color}`,checkedHoverColor:`{primary.hover.color}`}},dark:{root:{background:`{surface.700}`,disabledBackground:`{surface.600}`,hoverBackground:`{surface.600}`,checkedBackground:`{primary.color}`,checkedHoverBackground:`{primary.hover.color}`},handle:{background:`{surface.400}`,disabledBackground:`{surface.900}`,hoverBackground:`{surface.300}`,checkedBackground:`{surface.900}`,checkedHoverBackground:`{surface.900}`,color:`{surface.900}`,hoverColor:`{surface.800}`,checkedColor:`{primary.color}`,checkedHoverColor:`{primary.hover.color}`}}}},bDt={root:{background:`{content.background}`,borderColor:`{content.border.color}`,borderRadius:`{content.border.radius}`,color:`{content.color}`,gap:`0.5rem`,padding:`0.75rem`},colorScheme:{light:{root:{background:`{surface.50}`,color:`{content.color}`}},dark:{root:{background:`{surface.800}`,color:`{content.color}`}}}},xDt={root:{maxWidth:`12.5rem`,gutter:`0.25rem`,shadow:`{overlay.popover.shadow}`,padding:`0.625rem 0.75rem`,borderRadius:`{overlay.popover.border.radius}`},colorScheme:{light:{root:{background:`{surface.700}`,color:`{surface.0}`}},dark:{root:{background:`{surface.700}`,color:`{surface.0}`}}}},SDt={root:{background:`{content.background}`,color:`{content.color}`,padding:`1rem`,gap:`2px`,indent:`1rem`,transitionDuration:`{transition.duration}`},node:{padding:`0.375rem 0.625rem`,borderRadius:`{content.border.radius}`,hoverBackground:`{content.hover.background}`,selectedBackground:`{highlight.background}`,color:`{text.color}`,hoverColor:`{text.hover.color}`,selectedColor:`{highlight.color}`,focusRing:{width:`{focus.ring.width}`,style:`{focus.ring.style}`,color:`{focus.ring.color}`,offset:`{focus.ring.offset}`,shadow:`inset {focus.ring.shadow}`},gap:`0.25rem`},nodeIcon:{color:`{text.muted.color}`,hoverColor:`{text.hover.muted.color}`,selectedColor:`{highlight.color}`},nodeToggleButton:{borderRadius:`50%`,size:`1.75rem`,hoverBackground:`{content.hover.background}`,selectedHoverBackground:`{content.background}`,color:`{text.muted.color}`,hoverColor:`{text.hover.muted.color}`,selectedHoverColor:`{primary.color}`,focusRing:{width:`{focus.ring.width}`,style:`{focus.ring.style}`,color:`{focus.ring.color}`,offset:`{focus.ring.offset}`,shadow:`{focus.ring.shadow}`}},loadingIcon:{size:`2rem`},filter:{margin:`0 0 0.5rem 0`}},CDt={root:{background:`{form.field.background}`,disabledBackground:`{form.field.disabled.background}`,filledBackground:`{form.field.filled.background}`,filledHoverBackground:`{form.field.filled.hover.background}`,filledFocusBackground:`{form.field.filled.focus.background}`,borderColor:`{form.field.border.color}`,hoverBorderColor:`{form.field.hover.border.color}`,focusBorderColor:`{form.field.focus.border.color}`,invalidBorderColor:`{form.field.invalid.border.color}`,color:`{form.field.color}`,disabledColor:`{form.field.disabled.color}`,placeholderColor:`{form.field.placeholder.color}`,invalidPlaceholderColor:`{form.field.invalid.placeholder.color}`,shadow:`{form.field.shadow}`,paddingX:`{form.field.padding.x}`,paddingY:`{form.field.padding.y}`,borderRadius:`{form.field.border.radius}`,focusRing:{width:`{form.field.focus.ring.width}`,style:`{form.field.focus.ring.style}`,color:`{form.field.focus.ring.color}`,offset:`{form.field.focus.ring.offset}`,shadow:`{form.field.focus.ring.shadow}`},transitionDuration:`{form.field.transition.duration}`,sm:{fontSize:`{form.field.sm.font.size}`,paddingX:`{form.field.sm.padding.x}`,paddingY:`{form.field.sm.padding.y}`},lg:{fontSize:`{form.field.lg.font.size}`,paddingX:`{form.field.lg.padding.x}`,paddingY:`{form.field.lg.padding.y}`}},dropdown:{width:`2.5rem`,color:`{form.field.icon.color}`},overlay:{background:`{overlay.select.background}`,borderColor:`{overlay.select.border.color}`,borderRadius:`{overlay.select.border.radius}`,color:`{overlay.select.color}`,shadow:`{overlay.select.shadow}`},tree:{padding:`{list.padding}`},emptyMessage:{padding:`{list.option.padding}`},chip:{borderRadius:`{border.radius.sm}`},clearIcon:{color:`{form.field.icon.color}`}},wDt={root:{transitionDuration:`{transition.duration}`},header:{borderColor:`{treetable.border.color}`,borderWidth:`1px 0 1px 0`,padding:`0.75rem 1rem`},headerCell:{selectedBackground:`{highlight.background}`,borderColor:`{treetable.border.color}`,hoverColor:`{content.hover.color}`,selectedColor:`{highlight.color}`,gap:`0.5rem`,padding:`0.75rem 1rem`,focusRing:{width:`{focus.ring.width}`,style:`{focus.ring.style}`,color:`{focus.ring.color}`,offset:`{focus.ring.offset}`,shadow:`inset {focus.ring.shadow}`}},columnTitle:{fontWeight:`700`},row:{background:`{content.background}`,hoverBackground:`{content.hover.background}`,selectedBackground:`{highlight.background}`,color:`{content.color}`,hoverColor:`{sr.hover.color}`,selectedColor:`{highlight.color}`,focusRing:{width:`{focus.ring.width}`,style:`{focus.ring.style}`,color:`{focus.ring.color}`,offset:`{focus.ring.offset}`,shadow:`inset {focus.ring.shadow}`}},bodyCell:{borderColor:`{treetable.border.color}`,padding:`0.75rem 1rem`,gap:`0.5rem`},footerCell:{borderColor:`{treetable.border.color}`,padding:`0.75rem 1rem`},columnFooter:{fontWeight:`700`},footer:{borderColor:`{treetable.border.color}`,borderWidth:`0 0 1px 0`,padding:`0.75rem 1rem`},columnResizer:{width:`0.5rem`},resizeIndicator:{width:`1px`,color:`{primary.color}`},sortIcon:{color:`{text.muted.color}`,hoverColor:`{text.hover.muted.color}`,size:`0.875rem`},loadingIcon:{size:`2rem`},nodeToggleButton:{hoverBackground:`{content.hover.background}`,selectedHoverBackground:`{content.background}`,color:`{text.muted.color}`,hoverColor:`{text.color}`,selectedHoverColor:`{primary.color}`,size:`1.75rem`,borderRadius:`50%`,focusRing:{width:`{focus.ring.width}`,style:`{focus.ring.style}`,color:`{focus.ring.color}`,offset:`{focus.ring.offset}`,shadow:`{focus.ring.shadow}`}},paginatorTop:{borderColor:`{content.border.color}`,borderWidth:`0 0 1px 0`},paginatorBottom:{borderColor:`{content.border.color}`,borderWidth:`0 0 1px 0`},colorScheme:{light:{root:{borderColor:`{content.border.color}`},header:{background:`{surface.50}`,color:`{text.color}`},headerCell:{background:`{surface.50}`,hoverBackground:`{surface.100}`,color:`{text.color}`},footer:{background:`{surface.50}`,color:`{text.color}`},footerCell:{background:`{surface.50}`,color:`{text.color}`},bodyCell:{selectedBorderColor:`{primary.100}`}},dark:{root:{borderColor:`{surface.800}`},header:{background:`{surface.800}`,color:`{text.color}`},headerCell:{background:`{surface.800}`,hoverBackground:`{surface.700}`,color:`{text.color}`},footer:{background:`{surface.800}`,color:`{text.color}`},footerCell:{background:`{surface.800}`,color:`{text.color}`},bodyCell:{selectedBorderColor:`{primary.900}`}}}},TDt={loader:{mask:{background:`{content.background}`,color:`{text.muted.color}`},icon:{size:`2rem`}}};function X9(e){"@babel/helpers - typeof";return X9=typeof Symbol==`function`&&typeof Symbol.iterator==`symbol`?function(e){return typeof e}:function(e){return e&&typeof Symbol==`function`&&e.constructor===Symbol&&e!==Symbol.prototype?`symbol`:typeof e},X9(e)}function EDt(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function DDt(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]==null?{}:arguments[t];t%2?EDt(Object(n),!0).forEach(function(t){ODt(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):EDt(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function ODt(e,t,n){return(t=kDt(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function kDt(e){var t=ADt(e,`string`);return X9(t)==`symbol`?t:t+``}function ADt(e,t){if(X9(e)!=`object`||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(X9(r)!=`object`)return r;throw TypeError(`@@toPrimitive must return a primitive value.`)}return(t===`string`?String:Number)(e)}var jDt=DDt(DDt({},YTt),{},{components:{accordion:GTt,autocomplete:KTt,avatar:qTt,badge:JTt,blockui:XTt,breadcrumb:ZTt,button:QTt,datepicker:uEt,card:$Tt,carousel:eEt,cascadeselect:tEt,checkbox:nEt,chip:rEt,colorpicker:iEt,confirmdialog:aEt,confirmpopup:oEt,contextmenu:sEt,dataview:lEt,datatable:cEt,dialog:dEt,divider:fEt,dock:pEt,drawer:mEt,editor:hEt,fieldset:gEt,fileupload:_Et,iftalabel:xEt,floatlabel:vEt,galleria:yEt,iconfield:bEt,image:SEt,imagecompare:CEt,inlinemessage:wEt,inplace:TEt,inputchips:EEt,inputgroup:DEt,inputnumber:OEt,inputotp:kEt,inputtext:AEt,knob:jEt,listbox:MEt,megamenu:NEt,menu:PEt,menubar:FEt,message:IEt,metergroup:LEt,multiselect:REt,orderlist:zEt,organizationchart:BEt,overlaybadge:VEt,popover:qEt,paginator:HEt,password:GEt,panel:UEt,panelmenu:WEt,picklist:KEt,progressbar:JEt,progressspinner:YEt,radiobutton:XEt,rating:ZEt,ripple:QEt,scrollpanel:$Et,select:eDt,selectbutton:tDt,skeleton:nDt,slider:rDt,speeddial:iDt,splitter:oDt,splitbutton:aDt,stepper:sDt,steps:cDt,tabmenu:lDt,tabs:uDt,tabview:dDt,textarea:mDt,tieredmenu:hDt,tag:fDt,terminal:pDt,timeline:gDt,togglebutton:vDt,toggleswitch:yDt,tree:SDt,treeselect:CDt,treetable:wDt,toast:_Dt,toolbar:bDt,tooltip:xDt,virtualscroller:TDt}}),MDt={root:{transitionDuration:`{transition.duration}`},panel:{borderWidth:`0`,borderColor:`{content.border.color}`},header:{color:`{text.color}`,hoverColor:`{text.color}`,activeColor:`{text.color}`,activeHoverColor:`{text.color}`,padding:`1.25rem`,fontWeight:`600`,borderRadius:`0`,borderWidth:`0`,borderColor:`{content.border.color}`,background:`{content.background}`,hoverBackground:`{content.hover.background}`,activeBackground:`{content.background}`,activeHoverBackground:`{content.background}`,focusRing:{width:`0`,style:`none`,color:`unset`,offset:`0`,shadow:`none`},toggleIcon:{color:`{text.muted.color}`,hoverColor:`{text.muted.color}`,activeColor:`{text.muted.color}`,activeHoverColor:`{text.muted.color}`},first:{topBorderRadius:`{content.border.radius}`,borderWidth:`0`},last:{bottomBorderRadius:`{content.border.radius}`,activeBottomBorderRadius:`0`}},content:{borderWidth:`0`,borderColor:`{content.border.color}`,background:`{content.background}`,color:`{text.color}`,padding:`0 1.25rem 1.25rem 1.25rem`},css:`
|
|
3414
3414
|
.p-accordionpanel {
|
|
3415
3415
|
box-shadow: 0 3px 1px -2px rgba(0,0,0,.2), 0 2px 2px 0 rgba(0,0,0,.14), 0 1px 5px 0 rgba(0,0,0,.12);
|
|
3416
3416
|
transition: margin dt('accordion.transition.duration');
|