@agent-spaces/server 0.3.4 → 0.3.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/adapters/claude-code-runtime/index.js +19 -1
- package/dist/adapters/codex-runtime.js +13 -3
- package/dist/agents/agent-message-parts.js +9 -1
- package/dist/agents/commit-agent.js +7 -15
- package/dist/app.js +26 -0
- package/dist/package.json +2 -0
- package/dist/routes/code-favorites.js +60 -0
- package/dist/routes/file.js +13 -0
- package/dist/routes/prompt-template.js +48 -0
- package/dist/services/agent.js +45 -3
- package/dist/services/code-favorites.js +23 -0
- package/dist/services/file.js +4 -0
- package/dist/services/persistent-agent-context.js +3 -2
- package/dist/services/prompt-template.js +93 -0
- package/dist/services/pty.js +18 -1
- package/dist/storage/code-favorites-store.js +15 -0
- package/dist/web/404.html +1 -1
- package/dist/web/__next.__PAGE__.txt +4 -4
- package/dist/web/__next._full.txt +21 -21
- package/dist/web/__next._head.txt +4 -4
- package/dist/web/__next._index.txt +13 -13
- package/dist/web/__next._tree.txt +2 -2
- package/dist/web/_next/static/chunks/0-1pn22sg~67u.js +2 -0
- package/dist/web/_next/static/chunks/0-lseun2l1m_t.js +2 -0
- package/dist/web/_next/static/chunks/0-wkj-hzh444r.css +4 -0
- package/dist/web/_next/static/chunks/{0f6vrjsdauiwl.js → 0-~4vw4_9z_0_.js} +2 -2
- package/dist/web/_next/static/chunks/0..g0jl-8qup7.js +1 -0
- package/dist/web/_next/static/chunks/0.006.ycpe92w.js +496 -0
- package/dist/web/_next/static/chunks/0.6x8f.mb-1qf.js +1 -0
- package/dist/web/_next/static/chunks/{0qe5wvs8fe9ip.js → 004wt62de8617.js} +1 -1
- package/dist/web/_next/static/chunks/016xz2o-hv3am.js +1 -0
- package/dist/web/_next/static/chunks/01gi~q0c6ez6..js +1 -0
- package/dist/web/_next/static/chunks/023lpc7n70tav.css +1 -0
- package/dist/web/_next/static/chunks/03me5_ir..2ix.js +1 -0
- package/dist/web/_next/static/chunks/04fk~8rnrvs44.js +1 -0
- package/dist/web/_next/static/chunks/05eu2fdixf7c9.js +1 -0
- package/dist/web/_next/static/chunks/05gt_g_vbzh-5.css +1 -0
- package/dist/web/_next/static/chunks/06vadtvw631k5.css +1 -0
- package/dist/web/_next/static/chunks/07ge_85i__6pb.js +1 -0
- package/dist/web/_next/static/chunks/07ne4g8zopykv.js +1 -0
- package/dist/web/_next/static/chunks/07xvadmf~8bow.js +1 -0
- package/dist/web/_next/static/chunks/08.u~dmq20cak.css +23 -0
- package/dist/web/_next/static/chunks/08ag2f8y6f8cr.js +1 -0
- package/dist/web/_next/static/chunks/{03sd~wmqw.9gc.js → 08kpa0nox.bb1.js} +2 -2
- package/dist/web/_next/static/chunks/08o-zmr-40r5g.js +1 -0
- package/dist/web/_next/static/chunks/0_-c.y2qq4ax4.js +270 -0
- package/dist/web/_next/static/chunks/0a1rewz7xr-xi.js +1 -0
- package/dist/web/_next/static/chunks/0amcocbojo4v2.js +1 -0
- package/dist/web/_next/static/chunks/0brrgp3ki5w4_.css +17 -0
- package/dist/web/_next/static/chunks/0bzmgi.ynrn.0.css +3 -0
- package/dist/web/_next/static/chunks/0c_vfzf1z7-rt.js +2 -0
- package/dist/web/_next/static/chunks/0cjmfclopcxho.css +1 -0
- package/dist/web/_next/static/chunks/0cs830n97dgjy.js +1 -0
- package/dist/web/_next/static/chunks/0d_dp_4ofz0l3.css +3 -0
- package/dist/web/_next/static/chunks/0dws-faof-ryx.css +13 -0
- package/dist/web/_next/static/chunks/0ejc_zlyocy_r.css +1 -0
- package/dist/web/_next/static/chunks/0esty_4gmxfq3.js +1 -0
- package/dist/web/_next/static/chunks/0evjw7bao5_e~.js +1 -0
- package/dist/web/_next/static/chunks/{0ag4p6m9rze~n.js → 0g-0n6glz_z6w.js} +1 -1
- package/dist/web/_next/static/chunks/{145qu5b0tgm9w.js → 0gig.k.rq8d0x.js} +1 -1
- package/dist/web/_next/static/chunks/0hl_7y464qll6.css +2 -0
- package/dist/web/_next/static/chunks/0hrbuvzuxrjfl.js +1 -0
- package/dist/web/_next/static/chunks/0i_3.3rdsu2mw.js +2 -0
- package/dist/web/_next/static/chunks/0i_gi.kq2dau8.css +1 -0
- package/dist/web/_next/static/chunks/0j00r2f_n-.lx.js +1 -0
- package/dist/web/_next/static/chunks/0jh9xnkimjkyh.js +1 -0
- package/dist/web/_next/static/chunks/0jokpgh485~28.js +167 -0
- package/dist/web/_next/static/chunks/0kvsjgpj7zcb9.css +9 -0
- package/dist/web/_next/static/chunks/0l5ab99s37x5f.js +1 -0
- package/dist/web/_next/static/chunks/0lcc9r.o.p.sc.js +1 -0
- package/dist/web/_next/static/chunks/0lh~x2tf~i1hd.css +2 -0
- package/dist/web/_next/static/chunks/0me8ho8j4tq7_.css +2 -0
- package/dist/web/_next/static/chunks/0mny8i81aenx3.js +1 -0
- package/dist/web/_next/static/chunks/0mt-7av8yrg0o.css +3 -0
- package/dist/web/_next/static/chunks/0njy89g5coeyi.js +60 -0
- package/dist/web/_next/static/chunks/0nsu~f3voe~0i.js +5 -0
- package/dist/web/_next/static/chunks/0ow~co9wcleka.js +173 -0
- package/dist/web/_next/static/chunks/0pldvk5_h__t7.css +3 -0
- package/dist/web/_next/static/chunks/0qad.lgvtlt0b.css +16 -0
- package/dist/web/_next/static/chunks/0qpq0~_58fe9a.js +18 -0
- package/dist/web/_next/static/chunks/{0.335m_d-cd_g.js → 0qtc_rbo1oghu.js} +1 -1
- package/dist/web/_next/static/chunks/0qz5~3wquy~3q.css +2 -0
- package/dist/web/_next/static/chunks/0rv0nj__24y60.js +10 -0
- package/dist/web/_next/static/chunks/{145gbwitjxamg.js → 0sz8_nijfiz0p.js} +1 -1
- package/dist/web/_next/static/chunks/0tvd~rxgf0oh_.js +1 -0
- package/dist/web/_next/static/chunks/0wv0h27jafag4.js +1 -0
- package/dist/web/_next/static/chunks/0wwvc4zc2q6bn.js +1 -0
- package/dist/web/_next/static/chunks/0x4b-a2ixww6m.js +1 -0
- package/dist/web/_next/static/chunks/0z8ipjj2z-3al.css +8 -0
- package/dist/web/_next/static/chunks/0zd1o3u04~qvo.js +127 -0
- package/dist/web/_next/static/chunks/0~2l1-8o4delc.js +1 -0
- package/dist/web/_next/static/chunks/0~w6ugk9s5p-h.css +1 -0
- package/dist/web/_next/static/chunks/10jfi.9fw5g48.js +1 -0
- package/dist/web/_next/static/chunks/11_tltlhc8.sj.js +1 -0
- package/dist/web/_next/static/chunks/125nunjfj2fj0.js +1 -0
- package/dist/web/_next/static/chunks/12md9ajfx2o85.css +1 -0
- package/dist/web/_next/static/chunks/12odetnu-lyrr.js +167 -0
- package/dist/web/_next/static/chunks/12u4g4uzrlten.js +2 -0
- package/dist/web/_next/static/chunks/134ozsnbd~0qw.js +1 -0
- package/dist/web/_next/static/chunks/13ess~4pdmxma.js +1 -0
- package/dist/web/_next/static/chunks/13xfagjq0q~tf.js +1 -0
- package/dist/web/_next/static/chunks/143.pbs8a1ivm.js +1 -0
- package/dist/web/_next/static/chunks/14_y_s_5rhsd1.css +5 -0
- package/dist/web/_next/static/chunks/15hca2.5le07..js +3 -0
- package/dist/web/_next/static/chunks/15rf3~h7sugz4.css +19 -0
- package/dist/web/_next/static/chunks/16i87txo0qh0h.css +6 -0
- package/dist/web/_next/static/chunks/16~udgv7eel6a.css +2 -0
- package/dist/web/_next/static/chunks/{turbopack-0-j2hpomozegf.js → turbopack-000x5q9w-wx10.js} +1 -1
- package/dist/web/_next/static/chunks/{turbopack-0rrhp9pbrv0p3.js → turbopack-0hrx111grzq49.js} +1 -1
- package/dist/web/_next/static/chunks/{turbopack-0_zn00zg5kmqz.js → turbopack-0w-kua.9ymd0x.js} +1 -1
- package/dist/web/_next/static/chunks/{turbopack-0l~pq1hytx49z.js → turbopack-15zqm_4ixj.18.js} +1 -1
- package/dist/web/_next/static/media/code-icon.0g3wskzlr7oxf.svg +1 -0
- package/dist/web/_next/static/media/codicon.0pqe-t5rtghj8.ttf +0 -0
- package/dist/web/_next/static/media/continue-tb.0qei4mru4tzd2.png +0 -0
- package/dist/web/_next/static/media/dark_modern.09.uq6bp373zs.json +1 -0
- package/dist/web/_next/static/media/dark_plus.187umr0~d1_r7.json +1 -0
- package/dist/web/_next/static/media/dark_vs.12ju8ocr7rg--.json +1 -0
- package/dist/web/_next/static/media/document-dark.0vvlbsi_fdy~4.svg +3 -0
- package/dist/web/_next/static/media/document-light.0bfi_yt9e~vk7.svg +3 -0
- package/dist/web/_next/static/media/editor.worker.0ffjdaaj15t6e.js +1 -0
- package/dist/web/_next/static/media/extensionHost.worker.14sz5xf8-1efr.js +2 -0
- package/dist/web/_next/static/media/fake.16yx0-xxqj4pc.html +10 -0
- package/dist/web/_next/static/media/folder-dark.02kdicw3013tb.svg +3 -0
- package/dist/web/_next/static/media/folder-light.0s165k4fp3.53.svg +3 -0
- package/dist/web/_next/static/media/folder-open-dark.0sk6.yh45uqs3.svg +4 -0
- package/dist/web/_next/static/media/folder-open-light.10k1v_ugaq8ic.svg +4 -0
- package/dist/web/_next/static/media/hc_black.0-ul9e2oc5twb.json +1 -0
- package/dist/web/_next/static/media/hc_light.0vi.a7fr.z4gy.json +1 -0
- package/dist/web/_next/static/media/index.0jmafs_mwcjgg.html +1341 -0
- package/dist/web/_next/static/media/keyboard-dark.0t86n~1rrhj2-.svg +10 -0
- package/dist/web/_next/static/media/keyboard-light.0abw0ukjcd9ox.svg +10 -0
- package/dist/web/_next/static/media/letterpress-dark.181s2xkw~lfyo.svg +3 -0
- package/dist/web/_next/static/media/letterpress-hcDark.0ftfw8fess-5y.svg +3 -0
- package/dist/web/_next/static/media/letterpress-hcLight.06x23d0.aixf_.svg +3 -0
- package/dist/web/_next/static/media/letterpress-light.0xb1bapis~iw7.svg +3 -0
- package/dist/web/_next/static/media/light_modern.00ps-apoc9ph7.json +1 -0
- package/dist/web/_next/static/media/light_plus.0ow37ouyuazdz.json +1 -0
- package/dist/web/_next/static/media/light_vs.0fdbve5sxkgq1.json +1 -0
- package/dist/web/_next/static/media/onig.0dk~55st~1x8..wasm +0 -0
- package/dist/web/_next/static/media/opacity-background.0-9.t0ta0ko23.png +0 -0
- package/dist/web/_next/static/media/package.0_p8a~hpmb_uj.json +1 -0
- package/dist/web/_next/static/media/package.nls.0e5hn-g497b64.json +1 -0
- package/dist/web/_next/static/media/pause-tb.0ttrm1r1uuz_c.png +0 -0
- package/dist/web/_next/static/media/restart-tb.086872s_sc2qv.png +0 -0
- package/dist/web/_next/static/media/root-folder-dark.14iwnfb7p2na~.svg +5 -0
- package/dist/web/_next/static/media/root-folder-light.0ljk9fi7sw3.2.svg +5 -0
- package/dist/web/_next/static/media/root-folder-open-dark.08vw3g9zvki33.svg +5 -0
- package/dist/web/_next/static/media/root-folder-open-light.0f46.ahns5c~..svg +5 -0
- package/dist/web/_next/static/media/run-with-debugging-tb.0j1h52k~h~72z.png +0 -0
- package/dist/web/_next/static/media/service-worker.0_udu6mraxn4k.js +543 -0
- package/dist/web/_next/static/media/stepinto-tb.0cl87yt4ub_j8.png +0 -0
- package/dist/web/_next/static/media/stepout-tb.0vjib_bn-_xax.png +0 -0
- package/dist/web/_next/static/media/stepover-tb.04beeu~7cxr4l.png +0 -0
- package/dist/web/_next/static/media/stop-tb.1498tmu97_y9j.png +0 -0
- package/dist/web/_next/static/media/vs_minimal-icon-theme.0-qs73lvw4voi.json +1 -0
- package/dist/web/_next/static/media/webWorkerExtensionHostIframe.0x2r1o97s.m0m.html +156 -0
- package/dist/web/_next/static/media/worker.081j0x4avp1l1.js +2 -0
- package/dist/web/_not-found/__next._full.txt +19 -19
- package/dist/web/_not-found/__next._head.txt +4 -4
- package/dist/web/_not-found/__next._index.txt +13 -13
- package/dist/web/_not-found/__next._not-found.__PAGE__.txt +2 -2
- package/dist/web/_not-found/__next._not-found.txt +3 -3
- package/dist/web/_not-found/__next._tree.txt +2 -2
- package/dist/web/_not-found.html +1 -1
- package/dist/web/_not-found.txt +19 -19
- package/dist/web/index.html +1 -1
- package/dist/web/index.txt +21 -21
- package/dist/web/login/__next._full.txt +21 -21
- package/dist/web/login/__next._head.txt +4 -4
- package/dist/web/login/__next._index.txt +13 -13
- package/dist/web/login/__next._tree.txt +2 -2
- package/dist/web/login/__next.login.__PAGE__.txt +4 -4
- package/dist/web/login/__next.login.txt +3 -3
- package/dist/web/login.html +1 -1
- package/dist/web/login.txt +21 -21
- package/dist/web/settings/__next._full.txt +23 -23
- package/dist/web/settings/__next._head.txt +4 -4
- package/dist/web/settings/__next._index.txt +13 -13
- package/dist/web/settings/__next._tree.txt +2 -2
- package/dist/web/settings/__next.settings.__PAGE__.txt +4 -4
- package/dist/web/settings/__next.settings.txt +5 -5
- package/dist/web/settings/agents/__next._full.txt +23 -23
- package/dist/web/settings/agents/__next._head.txt +4 -4
- package/dist/web/settings/agents/__next._index.txt +13 -13
- package/dist/web/settings/agents/__next._tree.txt +2 -2
- package/dist/web/settings/agents/__next.settings.agents.__PAGE__.txt +4 -4
- package/dist/web/settings/agents/__next.settings.agents.txt +3 -3
- package/dist/web/settings/agents/__next.settings.txt +5 -5
- package/dist/web/settings/agents.html +1 -1
- package/dist/web/settings/agents.txt +23 -23
- package/dist/web/settings/mcps/__next._full.txt +23 -23
- package/dist/web/settings/mcps/__next._head.txt +4 -4
- package/dist/web/settings/mcps/__next._index.txt +13 -13
- package/dist/web/settings/mcps/__next._tree.txt +2 -2
- package/dist/web/settings/mcps/__next.settings.mcps.__PAGE__.txt +4 -4
- package/dist/web/settings/mcps/__next.settings.mcps.txt +3 -3
- package/dist/web/settings/mcps/__next.settings.txt +5 -5
- package/dist/web/settings/mcps.html +1 -1
- package/dist/web/settings/mcps.txt +23 -23
- package/dist/web/settings/models/__next._full.txt +23 -23
- package/dist/web/settings/models/__next._head.txt +4 -4
- package/dist/web/settings/models/__next._index.txt +13 -13
- package/dist/web/settings/models/__next._tree.txt +2 -2
- package/dist/web/settings/models/__next.settings.models.__PAGE__.txt +4 -4
- package/dist/web/settings/models/__next.settings.models.txt +3 -3
- package/dist/web/settings/models/__next.settings.txt +5 -5
- package/dist/web/settings/models.html +1 -1
- package/dist/web/settings/models.txt +23 -23
- package/dist/web/settings/prompts/__next._full.txt +42 -0
- package/dist/web/settings/prompts/__next._head.txt +6 -0
- package/dist/web/settings/prompts/__next._index.txt +15 -0
- package/dist/web/settings/prompts/__next._tree.txt +8 -0
- package/dist/web/settings/prompts/__next.settings.prompts.__PAGE__.txt +9 -0
- package/dist/web/settings/prompts/__next.settings.prompts.txt +5 -0
- package/dist/web/settings/prompts/__next.settings.txt +7 -0
- package/dist/web/settings/prompts.html +1 -0
- package/dist/web/settings/prompts.txt +42 -0
- package/dist/web/settings/providers/__next._full.txt +23 -23
- package/dist/web/settings/providers/__next._head.txt +4 -4
- package/dist/web/settings/providers/__next._index.txt +13 -13
- package/dist/web/settings/providers/__next._tree.txt +2 -2
- package/dist/web/settings/providers/__next.settings.providers.__PAGE__.txt +4 -4
- package/dist/web/settings/providers/__next.settings.providers.txt +3 -3
- package/dist/web/settings/providers/__next.settings.txt +5 -5
- package/dist/web/settings/providers.html +1 -1
- package/dist/web/settings/providers.txt +23 -23
- package/dist/web/settings/skills/__next._full.txt +23 -23
- package/dist/web/settings/skills/__next._head.txt +4 -4
- package/dist/web/settings/skills/__next._index.txt +13 -13
- package/dist/web/settings/skills/__next._tree.txt +2 -2
- package/dist/web/settings/skills/__next.settings.skills.__PAGE__.txt +4 -4
- package/dist/web/settings/skills/__next.settings.skills.txt +3 -3
- package/dist/web/settings/skills/__next.settings.txt +5 -5
- package/dist/web/settings/skills.html +1 -1
- package/dist/web/settings/skills.txt +23 -23
- package/dist/web/settings.html +1 -1
- package/dist/web/settings.txt +23 -23
- package/dist/web/workflows/__next._full.txt +21 -21
- package/dist/web/workflows/__next._head.txt +4 -4
- package/dist/web/workflows/__next._index.txt +13 -13
- package/dist/web/workflows/__next._tree.txt +2 -2
- package/dist/web/workflows/__next.workflows.__PAGE__.txt +4 -4
- package/dist/web/workflows/__next.workflows.txt +3 -3
- package/dist/web/workflows.html +1 -1
- package/dist/web/workflows.txt +21 -21
- package/dist/web/workspace/_/__next._full.txt +68 -35
- package/dist/web/workspace/_/__next._head.txt +4 -4
- package/dist/web/workspace/_/__next._index.txt +13 -13
- package/dist/web/workspace/_/__next._tree.txt +15 -3
- package/dist/web/workspace/_/__next.workspace.$d$id.__PAGE__.txt +16 -4
- package/dist/web/workspace/_/__next.workspace.$d$id.txt +3 -3
- package/dist/web/workspace/_/__next.workspace.txt +3 -3
- package/dist/web/workspace/_.html +1 -1
- package/dist/web/workspace/_.txt +68 -35
- package/dist/web/workspaces/__next._full.txt +21 -21
- package/dist/web/workspaces/__next._head.txt +4 -4
- package/dist/web/workspaces/__next._index.txt +13 -13
- package/dist/web/workspaces/__next._tree.txt +2 -2
- package/dist/web/workspaces/__next.workspaces.__PAGE__.txt +4 -4
- package/dist/web/workspaces/__next.workspaces.txt +3 -3
- package/dist/web/workspaces.html +1 -1
- package/dist/web/workspaces.txt +21 -21
- package/dist/ws/agent-runner.js +158 -20
- package/dist/ws/handler.js +6 -1
- package/dist/ws/message-parts.js +20 -1
- package/dist/ws/terminal-handler.js +12 -7
- package/dist/ws/typescript-lsp.js +78 -0
- package/package.json +3 -1
- package/dist/web/_next/static/chunks/0-a17~4piefz_.js +0 -1
- package/dist/web/_next/static/chunks/01tyftu_-l7tm.css +0 -1
- package/dist/web/_next/static/chunks/028b9_5cyq-_m.js +0 -1
- package/dist/web/_next/static/chunks/0anuxr11yn5iv.js +0 -2
- package/dist/web/_next/static/chunks/0e.z4v3cd78dx.js +0 -1
- package/dist/web/_next/static/chunks/0egot8y~i-ge3.js +0 -1
- package/dist/web/_next/static/chunks/0eq7wt-l.fetc.js +0 -1
- package/dist/web/_next/static/chunks/0gtbd3yt7y1gx.js +0 -1
- package/dist/web/_next/static/chunks/0j2w71psq6w9u.js +0 -1
- package/dist/web/_next/static/chunks/0kyv5yika-41a.js +0 -1
- package/dist/web/_next/static/chunks/0ms3tsu4men_j.js +0 -204
- package/dist/web/_next/static/chunks/0plreh4_gkxf9.js +0 -1
- package/dist/web/_next/static/chunks/0qxk21zejhdbm.js +0 -1
- package/dist/web/_next/static/chunks/12gvpt~z9mn8w.js +0 -1
- package/dist/web/_next/static/chunks/14iaqoj9-09g..js +0 -2
- package/dist/web/_next/static/chunks/15dyaigebtnwg.js +0 -5
- package/dist/web/_next/static/chunks/17oc2l.ekcs8b.css +0 -1
- /package/dist/web/_next/static/{O5-QCW1u2YNyAUyaoYh6s → Pf6ZjtN82szw-ZzU9lITd}/_buildManifest.js +0 -0
- /package/dist/web/_next/static/{O5-QCW1u2YNyAUyaoYh6s → Pf6ZjtN82szw-ZzU9lITd}/_clientMiddlewareManifest.js +0 -0
- /package/dist/web/_next/static/{O5-QCW1u2YNyAUyaoYh6s → Pf6ZjtN82szw-ZzU9lITd}/_ssgManifest.js +0 -0
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,308271,193653,e=>{"use strict";var t,i=e.i(654295),r=e.i(281482),s=e.i(650289),o=e.i(850887),n=e.i(693205),a=e.i(621826),d=e.i(193391),h=e.i(460096),l=e.i(536766),c=e.i(488259),u=e.i(970672),p=e.i(891110),g=e.i(976098),E=e.i(781808),v=e.i(140889),S=e.i(535567),m=e.i(731931),f=e.i(597556),y=e.i(611130),C=e.i(428521),I=e.i(739942),_=e.i(554250),D=e.i(362361);let R=class extends I.EditorPane{constructor(e,t,i,r,s,o,n,a,d,h){super(e,t,r,a,o),this.instantiationService=s,this.textResourceConfigurationService=n,this.editorService=d,this.editorGroupService=h,this.groupListener=this._register(new y.MutableDisposable),this.viewState=this.getEditorMemento(h,n,i,100)}setEditorVisible(e){this.groupListener.value=this.group.onWillCloseEditor(e=>this.onWillCloseEditor(e)),super.setEditorVisible(e)}onWillCloseEditor(e){let t=e.editor;t===this.input&&this.updateEditorViewState(t)}clearInput(){this.updateEditorViewState(this.input),super.clearInput()}saveState(){this.updateEditorViewState(this.input),super.saveState()}updateEditorViewState(e){if(!e||!this.tracksEditorViewState(e))return;let t=this.toEditorViewStateResource(e);t&&(!this.tracksDisposedEditorViewState()&&(this.editorViewStateDisposables||(this.editorViewStateDisposables=new Map),this.editorViewStateDisposables.has(e)||this.editorViewStateDisposables.set(e,E.Event.once(e.onWillDispose)(()=>{this.clearEditorViewState(t,this.group),this.editorViewStateDisposables?.delete(e)}))),(!e.isDisposed()||this.tracksDisposedEditorViewState())&&(this.shouldRestoreEditorViewState(e)||this.group.contains(e))?e.isDisposed()||this.saveEditorViewState(t):this.clearEditorViewState(t,this.group))}shouldRestoreEditorViewState(e,t){return!t?.newInGroup||!1!==this.textResourceConfigurationService.getValue(d.EditorResourceAccessor.getOriginalUri(e,{supportSideBySide:d.SideBySideEditor.PRIMARY}),"workbench.editor.restoreViewState")}getViewState(){let e=this.input;if(!e||!this.tracksEditorViewState(e))return;let t=this.toEditorViewStateResource(e);if(t)return this.computeEditorViewState(t)}saveEditorViewState(e){let t=this.computeEditorViewState(e);t&&this.viewState.saveEditorState(this.group,e,t)}loadEditorViewState(e,t){if(!e||!this.tracksEditorViewState(e)||!this.shouldRestoreEditorViewState(e,t))return;let i=this.toEditorViewStateResource(e);if(i)return this.viewState.loadEditorState(this.group,i)}moveEditorViewState(e,t,i){return this.viewState.moveEditorState(e,t,i)}clearEditorViewState(e,t){this.viewState.clearEditorState(e,t)}dispose(){if(super.dispose(),this.editorViewStateDisposables){for(let[,e]of this.editorViewStateDisposables)e.dispose();this.editorViewStateDisposables=void 0}}tracksDisposedEditorViewState(){return!1}};R=(0,r.__decorate)([(0,r.__param)(3,l.ITelemetryService),(0,r.__param)(4,c.IInstantiationService),(0,r.__param)(5,v.IStorageService),(0,r.__param)(6,_.ITextResourceConfigurationService),(0,r.__param)(7,u.IThemeService),(0,r.__param)(8,D.IEditorService),(0,r.__param)(9,p.IEditorGroupsService)],R),e.s(["AbstractEditorWithViewState",0,R],193653);var A=e.i(693162),O=e.i(802136),w=e.i(430807);(0,i.registerCss)(void 0);let b=class extends R{static{t=this}static{this.ID=d.SIDE_BY_SIDE_EDITOR_ID}static{this.SIDE_BY_SIDE_LAYOUT_SETTING="workbench.editor.splitInGroupLayout"}static{this.VIEW_STATE_PREFERENCE_KEY="sideBySideEditorViewState"}get minimumPrimaryWidth(){return this.primaryEditorPane?this.primaryEditorPane.minimumWidth:0}get maximumPrimaryWidth(){return this.primaryEditorPane?this.primaryEditorPane.maximumWidth:1/0}get minimumPrimaryHeight(){return this.primaryEditorPane?this.primaryEditorPane.minimumHeight:0}get maximumPrimaryHeight(){return this.primaryEditorPane?this.primaryEditorPane.maximumHeight:1/0}get minimumSecondaryWidth(){return this.secondaryEditorPane?this.secondaryEditorPane.minimumWidth:0}get maximumSecondaryWidth(){return this.secondaryEditorPane?this.secondaryEditorPane.maximumWidth:1/0}get minimumSecondaryHeight(){return this.secondaryEditorPane?this.secondaryEditorPane.minimumHeight:0}get maximumSecondaryHeight(){return this.secondaryEditorPane?this.secondaryEditorPane.maximumHeight:1/0}set minimumWidth(e){}set maximumWidth(e){}set minimumHeight(e){}set maximumHeight(e){}get minimumWidth(){return this.minimumPrimaryWidth+this.minimumSecondaryWidth}get maximumWidth(){return this.maximumPrimaryWidth+this.maximumSecondaryWidth}get minimumHeight(){return this.minimumPrimaryHeight+this.minimumSecondaryHeight}get maximumHeight(){return this.maximumPrimaryHeight+this.maximumSecondaryHeight}constructor(e,i,r,s,n,a,d,h,l){super(t.ID,e,t.VIEW_STATE_PREFERENCE_KEY,i,r,n,d,s,h,l),this.configurationService=a,this.onDidCreateEditors=this._register(new E.Emitter),this._onDidChangeSizeConstraints=this._register(new E.Relay),this.onDidChangeSizeConstraints=E.Event.any(this.onDidCreateEditors.event,this._onDidChangeSizeConstraints.event),this._onDidChangeSelection=this._register(new E.Emitter),this.onDidChangeSelection=this._onDidChangeSelection.event,this.primaryEditorPane=void 0,this.secondaryEditorPane=void 0,this.splitviewDisposables=this._register(new y.DisposableStore),this.editorDisposables=this._register(new y.DisposableStore),this.dimension=new o.Dimension(0,0),this.lastFocusedSide=void 0,this.orientation="vertical"===this.configurationService.getValue(t.SIDE_BY_SIDE_LAYOUT_SETTING)?w.Orientation.VERTICAL:w.Orientation.HORIZONTAL,this.registerListeners()}registerListeners(){this._register(this.configurationService.onDidChangeConfiguration(e=>this.onConfigurationUpdated(e)))}onConfigurationUpdated(e){e.affectsConfiguration(t.SIDE_BY_SIDE_LAYOUT_SETTING)&&(this.orientation="vertical"===this.configurationService.getValue(t.SIDE_BY_SIDE_LAYOUT_SETTING)?w.Orientation.VERTICAL:w.Orientation.HORIZONTAL,this.splitview&&this.recreateSplitview())}recreateSplitview(){let e=(0,S.assertReturnsDefined)(this.getContainer()),t=this.getSplitViewRatio();this.splitview&&(this.splitview.el.remove(),this.splitviewDisposables.clear()),this.createSplitView(e,t),this.layout(this.dimension)}getSplitViewRatio(){let e;if(this.splitview){let t=this.splitview.getViewSize(0);Math.abs(t-this.splitview.getViewSize(1))>1&&(e=t/(this.splitview.orientation===w.Orientation.HORIZONTAL?this.dimension.width:this.dimension.height))}return e}createEditor(e){e.classList.add("side-by-side-editor"),this.secondaryEditorContainer=(0,o.$)(".side-by-side-editor-container.editor-instance"),this.primaryEditorContainer=(0,o.$)(".side-by-side-editor-container.editor-instance"),this.createSplitView(e)}createSplitView(e,t){this.splitview=this.splitviewDisposables.add(new g.SplitView(e,{orientation:this.orientation})),this.splitviewDisposables.add(this.splitview.onDidSashReset(()=>this.splitview?.distributeViewSizes())),this.orientation===w.Orientation.HORIZONTAL?this.splitview.orthogonalEndSash=this._boundarySashes?.bottom:(this.splitview.orthogonalStartSash=this._boundarySashes?.left,this.splitview.orthogonalEndSash=this._boundarySashes?.right);let i=g.Sizing.Distribute,r=g.Sizing.Distribute;if(t){let e=this.splitview.orientation===w.Orientation.HORIZONTAL?this.dimension.width:this.dimension.height;i=Math.round(e*t),r=e-i,this.splitview.layout(this.orientation===w.Orientation.HORIZONTAL?this.dimension.width:this.dimension.height)}let s=(0,S.assertReturnsDefined)(this.secondaryEditorContainer);this.splitview.addView({element:s,layout:e=>this.layoutPane(this.secondaryEditorPane,e),minimumSize:this.orientation===w.Orientation.HORIZONTAL?f.DEFAULT_EDITOR_MIN_DIMENSIONS.width:f.DEFAULT_EDITOR_MIN_DIMENSIONS.height,maximumSize:1/0,onDidChange:E.Event.None},i);let o=(0,S.assertReturnsDefined)(this.primaryEditorContainer);this.splitview.addView({element:o,layout:e=>this.layoutPane(this.primaryEditorPane,e),minimumSize:this.orientation===w.Orientation.HORIZONTAL?f.DEFAULT_EDITOR_MIN_DIMENSIONS.width:f.DEFAULT_EDITOR_MIN_DIMENSIONS.height,maximumSize:1/0,onDidChange:E.Event.None},r),this.updateStyles()}getTitle(){return this.input?this.input.getName():(0,s.localize)(3507,"Side by Side Editor")}async setInput(e,t,i,r){let s=this.input;await super.setInput(e,t,i,r),s&&e.matches(s)||(s&&this.disposeEditors(),this.createEditors(e));let{primary:o,secondary:n,viewState:a}=this.loadViewState(e,t,i);if(this.lastFocusedSide=a?.focus,"number"==typeof a?.ratio&&this.splitview){let e=this.splitview.orientation===w.Orientation.HORIZONTAL?this.dimension.width:this.dimension.height;this.splitview.resizeView(0,Math.round(e*a.ratio))}else this.splitview?.distributeViewSizes();await Promise.all([this.secondaryEditorPane?.setInput(e.secondary,n,i,r),this.primaryEditorPane?.setInput(e.primary,o,i,r)]),"number"==typeof t?.target&&(this.lastFocusedSide=t.target)}loadViewState(e,t,i){var r;let s,o=(r=t?.viewState,"object"==typeof r?.primary&&"object"==typeof r.secondary)?t?.viewState:this.loadEditorViewState(e,i),n=Object.create(null);return t?.target===d.SideBySideEditor.SECONDARY?s={...t}:n={...t},n.viewState=o?.primary,o?.secondary&&(s?s.viewState=o?.secondary:s={viewState:o.secondary}),{primary:n,secondary:s,viewState:o}}createEditors(e){this.secondaryEditorPane=this.doCreateEditor(e.secondary,(0,S.assertReturnsDefined)(this.secondaryEditorContainer)),this.primaryEditorPane=this.doCreateEditor(e.primary,(0,S.assertReturnsDefined)(this.primaryEditorContainer)),this.layout(this.dimension),this._onDidChangeSizeConstraints.input=E.Event.any(E.Event.map(this.secondaryEditorPane.onDidChangeSizeConstraints,()=>void 0),E.Event.map(this.primaryEditorPane.onDidChangeSizeConstraints,()=>void 0)),this.onDidCreateEditors.fire(void 0),this.editorDisposables.add(this.primaryEditorPane.onDidFocus(()=>this.onDidFocusChange(d.SideBySideEditor.PRIMARY))),this.editorDisposables.add(this.secondaryEditorPane.onDidFocus(()=>this.onDidFocusChange(d.SideBySideEditor.SECONDARY)))}doCreateEditor(e,t){let i=a.Registry.as(d.EditorExtensions.EditorPane).getEditorPane(e);if(!i)throw Error("No editor pane descriptor for editor found");let r=i.instantiate(this.instantiationService,this.group);return r.create(t),r.setVisible(this.isVisible()),(0,d.isEditorPaneWithSelection)(r)&&this.editorDisposables.add(r.onDidChangeSelection(e=>this._onDidChangeSelection.fire(e))),this.editorDisposables.add(r),r}onDidFocusChange(e){this.lastFocusedSide=e,this._onDidChangeControl.fire()}getSelection(){let e=this.getLastFocusedEditorPane();if((0,d.isEditorPaneWithSelection)(e)){let t=e.getSelection();if(t)return new T(t,e===this.primaryEditorPane?d.SideBySideEditor.PRIMARY:d.SideBySideEditor.SECONDARY)}}setOptions(e){super.setOptions(e),"number"==typeof e?.target&&(this.lastFocusedSide=e.target),this.getLastFocusedEditorPane()?.setOptions(e)}setEditorVisible(e){this.primaryEditorPane?.setVisible(e),this.secondaryEditorPane?.setVisible(e),super.setEditorVisible(e)}clearInput(){super.clearInput(),this.primaryEditorPane?.clearInput(),this.secondaryEditorPane?.clearInput(),this.disposeEditors()}focus(){super.focus(),this.getLastFocusedEditorPane()?.focus()}getLastFocusedEditorPane(){return this.lastFocusedSide===d.SideBySideEditor.SECONDARY?this.secondaryEditorPane:this.primaryEditorPane}layout(e){this.dimension=e,(0,S.assertReturnsDefined)(this.splitview).layout(this.orientation===w.Orientation.HORIZONTAL?e.width:e.height)}setBoundarySashes(e){this._boundarySashes=e,this.splitview&&(this.splitview.orthogonalEndSash=e.bottom)}layoutPane(e,t){e?.layout(this.orientation===w.Orientation.HORIZONTAL?new o.Dimension(t,this.dimension.height):new o.Dimension(this.dimension.width,t))}getControl(){return this.getLastFocusedEditorPane()?.getControl()}getPrimaryEditorPane(){return this.primaryEditorPane}getSecondaryEditorPane(){return this.secondaryEditorPane}tracksEditorViewState(e){return e instanceof h.SideBySideEditorInput}computeEditorViewState(e){if(!this.input||!(0,A.isEqual)(e,this.toEditorViewStateResource(this.input)))return;let t=this.primaryEditorPane?.getViewState(),i=this.secondaryEditorPane?.getViewState();if(t&&i)return{primary:t,secondary:i,focus:this.lastFocusedSide,ratio:this.getSplitViewRatio()}}toEditorViewStateResource(e){let t,i;if(e instanceof h.SideBySideEditorInput&&(t=e.primary.resource,i=e.secondary.resource),i&&t)return O.URI.from({scheme:"sideBySide",path:`${(0,n.multibyteAwareBtoa)(i.toString())}${(0,n.multibyteAwareBtoa)(t.toString())}`})}updateStyles(){super.updateStyles(),this.primaryEditorContainer&&(this.orientation===w.Orientation.HORIZONTAL?(this.primaryEditorContainer.style.borderLeftWidth="1px",this.primaryEditorContainer.style.borderLeftStyle="solid",this.primaryEditorContainer.style.borderLeftColor=this.getColor(C.SIDE_BY_SIDE_EDITOR_VERTICAL_BORDER)??"",this.primaryEditorContainer.style.borderTopWidth="0"):(this.primaryEditorContainer.style.borderTopWidth="1px",this.primaryEditorContainer.style.borderTopStyle="solid",this.primaryEditorContainer.style.borderTopColor=this.getColor(C.SIDE_BY_SIDE_EDITOR_HORIZONTAL_BORDER)??"",this.primaryEditorContainer.style.borderLeftWidth="0"))}dispose(){this.disposeEditors(),super.dispose()}disposeEditors(){this.editorDisposables.clear(),this.secondaryEditorPane=void 0,this.primaryEditorPane=void 0,this.lastFocusedSide=void 0,this.secondaryEditorContainer&&(0,o.clearNode)(this.secondaryEditorContainer),this.primaryEditorContainer&&(0,o.clearNode)(this.primaryEditorContainer)}};b=t=(0,r.__decorate)([(0,r.__param)(1,l.ITelemetryService),(0,r.__param)(2,c.IInstantiationService),(0,r.__param)(3,u.IThemeService),(0,r.__param)(4,v.IStorageService),(0,r.__param)(5,m.IConfigurationService),(0,r.__param)(6,_.ITextResourceConfigurationService),(0,r.__param)(7,D.IEditorService),(0,r.__param)(8,p.IEditorGroupsService)],b);class T{constructor(e,t){this.selection=e,this.side=t}compare(e){return e instanceof T&&this.side===e.side?this.selection.compare(e.selection):d.EditorPaneSelectionCompareResult.DIFFERENT}restore(e){let t={...e,target:this.side};return this.selection.restore(t)}}e.s(["SideBySideEditor",0,b],308271)},824532,e=>{"use strict";var t,i=e.i(281482),r=e.i(193391),s=e.i(460096),o=e.i(611130),n=e.i(701575),a=e.i(140889),d=e.i(621826),h=e.i(781808),l=e.i(1391),c=e.i(891110),u=e.i(454514),p=e.i(802186),g=e.i(107700);let E=class extends o.Disposable{static{t=this}static{this.STORAGE_KEY="editors.mru"}get count(){return this.mostRecentEditorsMap.size}get editors(){return[...this.mostRecentEditorsMap.values()]}hasEditor(e){let t=this.editorsPerResourceCounter.get(e.resource);return t?.has(this.toIdentifier(e))??!1}hasEditors(e){return this.editorsPerResourceCounter.has(e)}toIdentifier(e,t){return"string"!=typeof e?this.toIdentifier(e.typeId,e.editorId):t?`${e}/${t}`:e}constructor(e,t,i){super(),this.editorGroupService=t,this.storageService=i,this.keyMap=new Map,this.mostRecentEditorsMap=new p.LinkedMap,this.editorsPerResourceCounter=new p.ResourceMap,this._onDidMostRecentlyActiveEditorsChange=this._register(new h.Emitter),this.onDidMostRecentlyActiveEditorsChange=this._onDidMostRecentlyActiveEditorsChange.event,this.editorGroupsContainer=e??t,this.isScoped=!!e,this.registerListeners(),this.loadState()}registerListeners(){this._register(this.editorGroupsContainer.onDidAddGroup(e=>this.onGroupAdded(e))),this._register(this.editorGroupService.onDidChangeEditorPartOptions(e=>this.onDidChangeEditorPartOptions(e))),this._register(this.storageService.onWillSaveState(()=>this.saveState()))}onGroupAdded(e){let t=e.getEditors(r.EditorsOrder.MOST_RECENTLY_ACTIVE);for(let i=t.length-1;i>=0;i--)this.addMostRecentEditor(e,t[i],!1,!0);this.editorGroupsContainer.activeGroup===e&&e.activeEditor&&this.addMostRecentEditor(e,e.activeEditor,!0,!1),this.registerGroupListeners(e)}registerGroupListeners(e){let t=new o.DisposableStore;t.add(e.onDidModelChange(t=>{switch(t.kind){case r.GroupModelChangeKind.GROUP_ACTIVE:this.editorGroupsContainer.activeGroup===e&&e.activeEditor&&this.addMostRecentEditor(e,e.activeEditor,!0,!1);break;case r.GroupModelChangeKind.EDITOR_OPEN:t.editor&&(this.addMostRecentEditor(e,t.editor,!1,!0),this.ensureOpenedEditorsLimit({groupId:e.id,editor:t.editor},e.id))}})),t.add(e.onDidCloseEditor(t=>{this.removeMostRecentEditor(e,t.editor)})),t.add(e.onDidActiveEditorChange(t=>{t.editor&&this.addMostRecentEditor(e,t.editor,this.editorGroupsContainer.activeGroup===e,!1)})),h.Event.once(e.onWillDispose)(()=>(0,o.dispose)(t))}onDidChangeEditorPartOptions(e){if(!(0,g.equals)(e.newPartOptions.limit,e.oldPartOptions.limit)){let e,t=this.editorGroupsContainer.activeGroup;t.activeEditor&&(e={editor:t.activeEditor,groupId:t.id}),this.ensureOpenedEditorsLimit(e)}}addMostRecentEditor(e,t,i,r){let s=this.ensureKey(e,t),o=this.mostRecentEditorsMap.first;i||!o?this.mostRecentEditorsMap.set(s,s,o?p.Touch.AsOld:void 0):(this.mostRecentEditorsMap.set(s,s,p.Touch.AsOld),this.mostRecentEditorsMap.set(o,o,p.Touch.AsOld)),r&&this.updateEditorResourcesMap(t,!0),this._onDidMostRecentlyActiveEditorsChange.fire()}updateEditorResourcesMap(e,t){let i,r,o;if(e instanceof s.SideBySideEditorInput?(i=e.primary.resource,r=e.primary.typeId,o=e.primary.editorId):(i=e.resource,r=e.typeId,o=e.editorId),!i)return;let n=this.toIdentifier(r,o);if(t){let e=this.editorsPerResourceCounter.get(i);e||(e=new Map,this.editorsPerResourceCounter.set(i,e)),e.set(n,(e.get(n)??0)+1)}else{let e=this.editorsPerResourceCounter.get(i);if(e){let t=e.get(n)??0;t>1?e.set(n,t-1):(e.delete(n),0===e.size&&this.editorsPerResourceCounter.delete(i))}}}removeMostRecentEditor(e,t){this.updateEditorResourcesMap(t,!1);let i=this.findKey(e,t);if(i){this.mostRecentEditorsMap.delete(i);let t=this.keyMap.get(e.id);t?.delete(i.editor)&&0===t.size&&this.keyMap.delete(e.id),this._onDidMostRecentlyActiveEditorsChange.fire()}}findKey(e,t){let i=this.keyMap.get(e.id);if(i)return i.get(t)}ensureKey(e,t){let i=this.keyMap.get(e.id);i||(i=new Map,this.keyMap.set(e.id,i));let r=i.get(t);return r||(r={groupId:e.id,editor:t},i.set(t,r)),r}async ensureOpenedEditorsLimit(e,t){if(!this.editorGroupService.partOptions.limit?.enabled||"number"!=typeof this.editorGroupService.partOptions.limit.value||this.editorGroupService.partOptions.limit.value<=0)return;let i=this.editorGroupService.partOptions.limit.value;if(this.editorGroupService.partOptions.limit?.perEditorGroup)if("number"==typeof t){let s=this.editorGroupsContainer.getGroup(t);s&&await this.doEnsureOpenedEditorsLimit(i,s.getEditors(r.EditorsOrder.MOST_RECENTLY_ACTIVE).map(e=>({editor:e,groupId:t})),e)}else for(let t of this.editorGroupsContainer.groups)await this.ensureOpenedEditorsLimit(e,t.id);else await this.doEnsureOpenedEditorsLimit(i,[...this.mostRecentEditorsMap.values()],e)}async doEnsureOpenedEditorsLimit(e,t,i){let s;if(e>=(s=this.editorGroupService.partOptions.limit?.excludeDirty?t.filter(({editor:e})=>!(e.isDirty()&&!e.isSaving()||e.hasCapability(r.EditorInputCapabilities.Scratchpad))):t).length)return;let o=s.reverse().filter(({editor:e,groupId:t})=>!(e.isDirty()&&!e.isSaving()||e.hasCapability(r.EditorInputCapabilities.Scratchpad)||i&&e===i.editor&&t===i.groupId||this.editorGroupsContainer.getGroup(t)?.isSticky(e))),n=s.length-e,a=new Map;for(let{groupId:e,editor:t}of o){let i=a.get(e);if(i||(i=[],a.set(e,i)),i.push(t),0==--n)break}for(let[e,t]of a){let i=this.editorGroupsContainer.getGroup(e);i&&await i.closeEditors(t,{preserveFocus:!0})}}saveState(){this.isScoped||(this.mostRecentEditorsMap.isEmpty()?this.storageService.remove(t.STORAGE_KEY,n.StorageScope.WORKSPACE):this.storageService.store(t.STORAGE_KEY,JSON.stringify(this.serialize()),n.StorageScope.WORKSPACE,n.StorageTarget.MACHINE))}serialize(){let e=d.Registry.as(r.EditorExtensions.EditorFactory),t=[...this.mostRecentEditorsMap.values()],i=new Map;return{entries:(0,u.coalesce)(t.map(({editor:t,groupId:s})=>{let o=this.editorGroupsContainer.getGroup(s);if(!o)return;let n=i.get(o);n||(n=o.getEditors(r.EditorsOrder.SEQUENTIAL).filter(t=>{let i=e.getEditorSerializer(t);return i?.canSerialize(t)}),i.set(o,n));let a=n.indexOf(t);if(-1!==a)return{groupId:s,index:a}}))}}async loadState(){(this.editorGroupsContainer===this.editorGroupService.mainPart||this.editorGroupsContainer===this.editorGroupService)&&await this.editorGroupService.whenReady;let e=!1;if(!this.isScoped){let i=this.storageService.get(t.STORAGE_KEY,n.StorageScope.WORKSPACE);i&&(e=!0,this.deserialize(JSON.parse(i)))}if(!e){let e=this.editorGroupsContainer.getGroups(l.GroupsOrder.MOST_RECENTLY_ACTIVE);for(let t=e.length-1;t>=0;t--){let i=e[t],s=i.getEditors(r.EditorsOrder.MOST_RECENTLY_ACTIVE);for(let e=s.length-1;e>=0;e--)this.addMostRecentEditor(i,s[e],!0,!0)}}for(let e of this.editorGroupsContainer.groups)this.registerGroupListeners(e)}deserialize(e){let t=[];for(let{groupId:i,index:r}of e.entries){let e=this.editorGroupsContainer.getGroup(i);if(!e)continue;let s=e.getEditorByIndex(r);if(!s)continue;let o=this.ensureKey(e,s);t.push([o,o]),this.updateEditorResourcesMap(s,!0)}this.mostRecentEditorsMap.fromJSON(t)}};E=t=(0,i.__decorate)([(0,i.__param)(1,c.IEditorGroupsService),(0,i.__param)(2,a.IStorageService)],E),e.s(["EditorsObserver",0,E])},559340,e=>{"use strict";var t=e.i(731931),i=e.i(16046),r=e.i(193391),s=e.i(1391),o=e.i(891110),n=e.i(589377);function a(e,t,r,s){let o;return s.activeGroup!==e&&t.options&&!t.options.inactive&&t.options.preserveFocus&&"number"!=typeof t.options.activation&&r!==n.SIDE_GROUP&&(o=i.EditorActivation.ACTIVATE),[e,o]}function d(e,t){return!(!e.isLocked||h(e,t))}function h(e,t){for(let i of e.editors)if(i.matches(t))return!0;return!1}e.s(["findGroup",0,function(e,i,l){let c=e.get(o.IEditorGroupsService),u=function(e,t,i,o){let a,l=(0,r.isEditorInputWithOptions)(e)?e.editor:e,c=e.options;if(t&&"number"!=typeof t)a=t;else if("number"==typeof t&&t>=0)a=i.getGroup(t);else if(t===n.SIDE_GROUP){let e=(0,s.preferredSideBySideGroupDirection)(o),t=i.findGroup({direction:e});(!t||d(t,l))&&(t=i.addGroup(i.activeGroup,e)),a=t}else if(t===n.AUX_WINDOW_GROUP)a=i.createAuxiliaryEditorPart({bounds:c?.auxiliary?.bounds,compact:c?.auxiliary?.compact,alwaysOnTop:c?.auxiliary?.alwaysOnTop}).then(e=>e.activeGroup);else if(!c||"number"!=typeof c.index){let e=i.getGroups(s.GroupsOrder.MOST_RECENTLY_ACTIVE);if(c?.revealIfVisible)for(let t of e){var u,p;if(u=t,p=l,u.activeEditor&&u.activeEditor.matches(p)){a=t;break}}if(!a&&(c?.revealIfOpened||o.getValue("workbench.editor.revealIfOpen")||(0,r.isEditorInput)(l)&&l.hasCapability(r.EditorInputCapabilities.Singleton))){let t,i;for(let r of e)if(h(r,l)&&(i||(i=r),!t&&r.isActive(l)&&(t=r)),i&&t)break;a=t||i}}if(!a){let e=i.activeGroup;if(d(e,l)){for(let t of i.getGroups(s.GroupsOrder.MOST_RECENTLY_ACTIVE))if(!d(t,l)){e=t;break}a=d(e,l)?i.addGroup(e,(0,s.preferredSideBySideGroupDirection)(o)):e}else a=e}return a}(i,l,c,e.get(t.IConfigurationService));return u instanceof Promise?u.then(e=>a(e,i,l,c)):a(u,i,l,c)}])},603358,e=>{"use strict";var t,i=e.i(281482),r=e.i(488259),s=e.i(193391),o=e.i(456076),n=e.i(460096),a=e.i(802186),d=e.i(652731),h=e.i(553638),l=e.i(781808),c=e.i(802136),u=e.i(693162),p=e.i(350803),g=e.i(308271),E=e.i(1391),v=e.i(891110),S=e.i(589377),m=e.i(731931),f=e.i(611130),y=e.i(454514),C=e.i(163731);e.i(157255);var I=e.i(535567),_=e.i(824532),D=e.i(590746),R=e.i(399362),A=e.i(72469),O=e.i(474320),w=e.i(781112),b=e.i(865384),T=e.i(391205),M=e.i(168363),L=e.i(74304),x=e.i(559340),P=e.i(1125);let G=t=class extends f.Disposable{constructor(e,t,i,r,s,o,n,d,h,c,u){super(),this.editorGroupService=t,this.instantiationService=i,this.fileService=r,this.configurationService=s,this.contextService=o,this.uriIdentityService=n,this.editorResolverService=d,this.workspaceTrustRequestService=h,this.hostService=c,this.textEditorService=u,this._onDidActiveEditorChange=this._register(new l.Emitter),this.onDidActiveEditorChange=this._onDidActiveEditorChange.event,this._onDidVisibleEditorsChange=this._register(new l.Emitter),this.onDidVisibleEditorsChange=this._onDidVisibleEditorsChange.event,this._onDidEditorsChange=this._register(new l.Emitter),this.onDidEditorsChange=this._onDidEditorsChange.event,this._onWillOpenEditor=this._register(new l.Emitter),this.onWillOpenEditor=this._onWillOpenEditor.event,this._onDidCloseEditor=this._register(new l.Emitter),this.onDidCloseEditor=this._onDidCloseEditor.event,this._onDidOpenEditorFail=this._register(new l.Emitter),this.onDidOpenEditorFail=this._onDidOpenEditorFail.event,this._onDidMostRecentlyActiveEditorsChange=this._register(new l.Emitter),this.onDidMostRecentlyActiveEditorsChange=this._onDidMostRecentlyActiveEditorsChange.event,this.lastActiveEditor=void 0,this.activeOutOfWorkspaceWatchers=new a.ResourceMap,this.closeOnFileDelete=!1,this.editorGroupsContainer=e??t,this.editorsObserver=this._register(this.instantiationService.createInstance(_.EditorsObserver,this.editorGroupsContainer)),this.onConfigurationUpdated(),this.registerListeners()}createScoped(e,i){return i.add(new t(e,this.editorGroupService,this.instantiationService,this.fileService,this.configurationService,this.contextService,this.uriIdentityService,this.editorResolverService,this.workspaceTrustRequestService,this.hostService,this.textEditorService))}registerListeners(){this.editorGroupsContainer===this.editorGroupService.mainPart||this.editorGroupsContainer===this.editorGroupService?this.editorGroupService.whenReady.then(()=>this.onEditorGroupsReady()):this.onEditorGroupsReady(),this._register(this.editorGroupsContainer.onDidChangeActiveGroup(e=>this.handleActiveEditorChange(e))),this._register(this.editorGroupsContainer.onDidAddGroup(e=>this.registerGroupListeners(e))),this._register(this.editorsObserver.onDidMostRecentlyActiveEditorsChange(()=>this._onDidMostRecentlyActiveEditorsChange.fire())),this._register(this.onDidVisibleEditorsChange(()=>this.handleVisibleEditorsChange())),this._register(this.fileService.onDidRunOperation(e=>this.onDidRunFileOperation(e))),this._register(this.fileService.onDidFilesChange(e=>this.onDidFilesChange(e))),this._register(this.configurationService.onDidChangeConfiguration(e=>this.onConfigurationUpdated(e)))}onEditorGroupsReady(){for(let e of this.editorGroupsContainer.groups)this.registerGroupListeners(e);this.activeEditor&&(this.doHandleActiveEditorChangeEvent(),this._onDidVisibleEditorsChange.fire())}handleActiveEditorChange(e){e!==this.editorGroupsContainer.activeGroup||(this.lastActiveEditor||e.activeEditor)&&this.doHandleActiveEditorChangeEvent()}doHandleActiveEditorChangeEvent(){let e=this.editorGroupsContainer.activeGroup;this.lastActiveEditor=e.activeEditor??void 0,this._onDidActiveEditorChange.fire()}registerGroupListeners(e){let t=new f.DisposableStore;t.add(e.onDidModelChange(t=>{this._onDidEditorsChange.fire({groupId:e.id,event:t})})),t.add(e.onDidActiveEditorChange(()=>{this.handleActiveEditorChange(e),this._onDidVisibleEditorsChange.fire()})),t.add(e.onWillOpenEditor(e=>{this._onWillOpenEditor.fire(e)})),t.add(e.onDidCloseEditor(e=>{this._onDidCloseEditor.fire(e)})),t.add(e.onDidOpenEditorFail(t=>{this._onDidOpenEditorFail.fire({editor:t,groupId:e.id})})),l.Event.once(e.onWillDispose)(()=>{(0,f.dispose)(t)})}handleVisibleEditorsChange(){let e=new a.ResourceSet;for(let t of this.visibleEditors)for(let i of(0,y.distinct)((0,y.coalesce)([s.EditorResourceAccessor.getCanonicalUri(t,{supportSideBySide:s.SideBySideEditor.PRIMARY}),s.EditorResourceAccessor.getCanonicalUri(t,{supportSideBySide:s.SideBySideEditor.SECONDARY})]),e=>e.toString()))this.fileService.hasProvider(i)&&!this.contextService.isInsideWorkspace(i)&&e.add(i);for(let t of this.activeOutOfWorkspaceWatchers.keys())e.has(t)||((0,f.dispose)(this.activeOutOfWorkspaceWatchers.get(t)),this.activeOutOfWorkspaceWatchers.delete(t));for(let t of e.keys())if(!this.activeOutOfWorkspaceWatchers.get(t)){let e=this.fileService.watch(t);this.activeOutOfWorkspaceWatchers.set(t,e)}}async onDidRunFileOperation(e){e.isOperation(d.FileOperation.MOVE)&&this.handleMovedFile(e.resource,e.target.resource),(e.isOperation(d.FileOperation.DELETE)||e.isOperation(d.FileOperation.MOVE))&&this.handleDeletedFile(e.resource,!1,e.target?e.target.resource:void 0)}onDidFilesChange(e){e.gotDeleted()&&this.handleDeletedFile(e,!0)}async handleMovedFile(e,t){for(let i of this.editorGroupsContainer.groups){let r=[];for(let o of i.editors){let n,a=o.resource;if(!a||!this.uriIdentityService.extUri.isEqualOrParent(a,e))continue;if(this.uriIdentityService.extUri.isEqual(e,a))n=t;else{let i=(0,A.indexOfPath)(a.path,e.path,this.uriIdentityService.extUri.ignorePathCasing(a));n=(0,u.joinPath)(t,a.path.substr(i+e.path.length+1))}let d=await o.rename(i.id,n);if(!d)return;let h={preserveFocus:!0,pinned:i.isPinned(o),sticky:i.isSticky(o),index:i.getIndexOfEditor(o),inactive:!i.isActive(o)};(0,s.isEditorInput)(d.editor)?r.push({editor:o,replacement:d.editor,options:{...d.options,...h}}):r.push({editor:o,replacement:{...d.editor,options:{...d.editor.options,...h}}})}r.length&&this.replaceEditors(r,i)}}onConfigurationUpdated(e){if(e&&!e.affectsConfiguration("workbench.editor.closeOnFileDelete"))return;let t=this.configurationService.getValue();"boolean"==typeof t.workbench?.editor?.closeOnFileDelete?this.closeOnFileDelete=t.workbench.editor.closeOnFileDelete:this.closeOnFileDelete=!1}handleDeletedFile(e,t,i){for(let r of this.getAllNonDirtyEditors({includeUntitled:!1,supportSideBySide:!0}))(async()=>{let s=r.resource;if(s&&(this.closeOnFileDelete||!t)){if(i&&this.uriIdentityService.extUri.isEqualOrParent(s,i))return;if(!(e instanceof d.FileChangesEvent?e.contains(s,d.FileChangeType.DELETED):this.uriIdentityService.extUri.isEqualOrParent(s,e)))return;let o=!1;t&&this.fileService.hasProvider(s)&&(await (0,D.timeout)(100),o=await this.fileService.exists(s)),o||r.isDisposed()||r.dispose()}})()}getAllNonDirtyEditors(e){let t=[];function i(i){i.hasCapability(s.EditorInputCapabilities.Untitled)&&!e.includeUntitled||i.isDirty()||t.push(i)}for(let t of this.editors)e.supportSideBySide&&t instanceof n.SideBySideEditorInput?(i(t.primary),i(t.secondary)):i(t);return t}get activeEditorPane(){return this.editorGroupsContainer.activeGroup?.activeEditorPane}get activeTextEditorControl(){let e=this.activeEditorPane;if(e){let t=e.getControl();if((0,C.isCodeEditor)(t)||(0,C.isDiffEditor)(t))return t;if((0,C.isCompositeEditor)(t)&&(0,C.isCodeEditor)(t.activeCodeEditor))return t.activeCodeEditor}}get activeTextEditorLanguageId(){let e,t=this.activeTextEditorControl;return e=(0,C.isDiffEditor)(t)?t.getModifiedEditor():t,e?.getModel()?.getLanguageId()}get count(){return this.editorsObserver.count}get editors(){return this.getEditors(s.EditorsOrder.SEQUENTIAL).map(({editor:e})=>e)}getEditors(e,t){switch(e){case s.EditorsOrder.MOST_RECENTLY_ACTIVE:if(t?.excludeSticky)return this.editorsObserver.editors.filter(({groupId:e,editor:t})=>!this.editorGroupsContainer.getGroup(e)?.isSticky(t));return this.editorsObserver.editors;case s.EditorsOrder.SEQUENTIAL:{let e=[];for(let i of this.editorGroupsContainer.getGroups(E.GroupsOrder.GRID_APPEARANCE))e.push(...i.getEditors(s.EditorsOrder.SEQUENTIAL,t).map(e=>({editor:e,groupId:i.id})));return e}}}get activeEditor(){let e=this.editorGroupsContainer.activeGroup;return e?e.activeEditor??void 0:void 0}get visibleEditorPanes(){return(0,y.coalesce)(this.editorGroupsContainer.groups.map(e=>e.activeEditorPane))}get visibleTextEditorControls(){return this.doGetVisibleTextEditorControls(this.visibleEditorPanes)}doGetVisibleTextEditorControls(e){let t=[];for(let i of e){let e=[];for(let r of(i instanceof g.SideBySideEditor?(e.push(i.getPrimaryEditorPane()?.getControl()),e.push(i.getSecondaryEditorPane()?.getControl())):e.push(i.getControl()),e))((0,C.isCodeEditor)(r)||(0,C.isDiffEditor)(r))&&t.push(r)}return t}getVisibleTextEditorControls(e){return this.doGetVisibleTextEditorControls((0,y.coalesce)(this.editorGroupsContainer.getGroups(e===s.EditorsOrder.SEQUENTIAL?E.GroupsOrder.GRID_APPEARANCE:E.GroupsOrder.MOST_RECENTLY_ACTIVE).map(e=>e.activeEditorPane)))}get visibleEditors(){return(0,y.coalesce)(this.editorGroupsContainer.groups.map(e=>e.activeEditor))}async openEditor(e,t,i){let r,o,n=(0,s.isEditorInput)(e)?t:e.options;if((0,S.isPreferredGroup)(t)&&(i=t),!(0,s.isEditorInput)(e)){let t=await this.editorResolverService.resolveEditor(e,i);if(t===w.ResolvedStatus.ABORT)return;(0,s.isEditorInputWithOptionsAndGroup)(t)&&(r=t.editor,n=t.options,o=t.group)}if(r||(r=(0,s.isEditorInput)(e)?e:await this.textEditorService.resolveTextEditor(e)),!o){let e,t=this.instantiationService.invokeFunction(x.findGroup,{editor:r,options:n},i);t instanceof Promise?[o,e]=await t:[o,e]=t,e&&(n={...n,activation:e})}return o.openEditor(r,n)}async openEditors(e,t,i){if(i?.validateTrust&&!await this.handleWorkspaceTrust(e))return[];let r=new Map;for(let i of e){let e,o;if(!(0,s.isEditorInputWithOptions)(i)){let r=await this.editorResolverService.resolveEditor(i,t);if(r===w.ResolvedStatus.ABORT)continue;(0,s.isEditorInputWithOptionsAndGroup)(r)&&(e=r,o=r.group)}if(e||(e=(0,s.isEditorInputWithOptions)(i)?i:{editor:await this.textEditorService.resolveTextEditor(i),options:i.options}),!o){let i=this.instantiationService.invokeFunction(x.findGroup,e,t);i instanceof Promise?[o]=await i:[o]=i}let n=r.get(o);n||(n=[],r.set(o,n)),n.push(e)}let o=[];for(let[e,t]of r)o.push(e.openEditors(t));return(0,y.coalesce)(await D.Promises.settled(o))}async handleWorkspaceTrust(e){let{resources:t,diffMode:i,mergeMode:r}=this.extractEditorResources(e);switch(await this.workspaceTrustRequestService.requestOpenFilesTrust(t)){case T.WorkspaceTrustUriResponse.Open:return!0;case T.WorkspaceTrustUriResponse.OpenInNewWindow:return await this.hostService.openWindow(t.map(e=>({fileUri:e})),{forceNewWindow:!0,diffMode:i,mergeMode:r}),!1;case T.WorkspaceTrustUriResponse.Cancel:return!1}}extractEditorResources(e){let t=new a.ResourceSet,i=!1,r=!1;for(let o of e)if((0,s.isEditorInputWithOptions)(o)){let e=s.EditorResourceAccessor.getOriginalUri(o.editor,{supportSideBySide:s.SideBySideEditor.BOTH});c.URI.isUri(e)?t.add(e):e&&(e.primary&&t.add(e.primary),e.secondary&&t.add(e.secondary),i=o.editor instanceof p.DiffEditorInput)}else(0,s.isResourceMergeEditorInput)(o)&&(c.URI.isUri(o.input1)&&t.add(o.input1.resource),c.URI.isUri(o.input2)&&t.add(o.input2.resource),c.URI.isUri(o.base)&&t.add(o.base.resource),c.URI.isUri(o.result)&&t.add(o.result.resource),r=!0),(0,s.isResourceDiffEditorInput)(o)?(c.URI.isUri(o.original.resource)&&t.add(o.original.resource),c.URI.isUri(o.modified.resource)&&t.add(o.modified.resource),i=!0):(0,s.isResourceEditorInput)(o)&&t.add(o.resource);return{resources:Array.from(t.keys()),diffMode:i,mergeMode:r}}isOpened(e){return this.editorsObserver.hasEditor({resource:this.uriIdentityService.asCanonicalUri(e.resource),typeId:e.typeId,editorId:e.editorId})}isVisible(e){for(let t of this.editorGroupsContainer.groups)if(t.activeEditor?.matches(e))return!0;return!1}async closeEditor({editor:e,groupId:t},i){let r=this.editorGroupsContainer.getGroup(t);await r?.closeEditor(e,i)}async closeEditors(e,t){let i=new Map;for(let{editor:t,groupId:r}of e){let e=this.editorGroupsContainer.getGroup(r);if(!e)continue;let s=i.get(e);s||(s=[],i.set(e,s)),s.push(t)}for(let[e,r]of i)await e.closeEditors(r,t)}findEditors(e,t,i){let r=c.URI.isUri(e)?e:e.resource,o=c.URI.isUri(e)?void 0:e.typeId;if(t?.supportSideBySide!==s.SideBySideEditor.ANY&&t?.supportSideBySide!==s.SideBySideEditor.SECONDARY&&!this.editorsObserver.hasEditors(r))return c.URI.isUri(e)||(0,I.isUndefined)(i)?[]:void 0;if((0,I.isUndefined)(i)){let i=[];for(let r of this.editorGroupsContainer.getGroups(t?.order===s.EditorsOrder.SEQUENTIAL?E.GroupsOrder.GRID_APPEARANCE:E.GroupsOrder.MOST_RECENTLY_ACTIVE)){let s=[];if(c.URI.isUri(e))s.push(...this.findEditors(e,t,r));else{let i=this.findEditors(e,t,r);i&&s.push(i)}i.push(...s.map(e=>({editor:e,groupId:r.id})))}return i}{let s="number"==typeof i?this.editorGroupsContainer.getGroup(i):i;if(c.URI.isUri(e))return s?s.findEditors(r,t):[];if(!s)return;for(let e of s.findEditors(r,t))if(e.typeId===o)return e;return}}async replaceEditors(e,t){let i="number"==typeof t?this.editorGroupsContainer.getGroup(t):t,r=[];for(let t of e){let e;if(!(0,s.isEditorInput)(t.replacement)){let r=await this.editorResolverService.resolveEditor(t.replacement,i);if(r===w.ResolvedStatus.ABORT)continue;(0,s.isEditorInputWithOptionsAndGroup)(r)&&(e={editor:t.editor,replacement:r.editor,options:r.options,forceReplaceDirty:t.forceReplaceDirty})}e||(e={editor:t.editor,replacement:(0,E.isEditorReplacement)(t)?t.replacement:await this.textEditorService.resolveTextEditor(t.replacement),options:(0,E.isEditorReplacement)(t)?t.options:t.replacement.options,forceReplaceDirty:t.forceReplaceDirty}),r.push(e)}return i?.replaceEditors(r)}async save(e,t){Array.isArray(e)||(e=[e]);let i=this.getUniqueEditors(e),r=[],n=[];if(t?.saveAs)n.push(...i);else for(let{groupId:e,editor:t}of i)t.hasCapability(s.EditorInputCapabilities.Untitled)?n.push({groupId:e,editor:t}):r.push({groupId:e,editor:t});let a=await D.Promises.settled(r.map(({groupId:e,editor:i})=>(t?.reason===s.SaveReason.EXPLICIT&&this.editorGroupsContainer.getGroup(e)?.pinEditor(i),i.save(e,t))));for(let{groupId:e,editor:i}of n){if(i.isDisposed())continue;let r=await this.openEditor(i,e),n={pinned:!0,viewState:r?.getViewState()},d=t?.saveAs?await i.saveAs(e,t):await i.save(e,t);if(a.push(d),!d)break;if(!i.matches(d))for(let t of i.hasCapability(s.EditorInputCapabilities.Untitled)?this.editorGroupsContainer.groups.map(e=>e.id):[e])d instanceof o.EditorInput?await this.replaceEditors([{editor:i,replacement:d,options:n}],t):await this.replaceEditors([{editor:i,replacement:{...d,options:n}}],t)}return{success:a.every(e=>!!e),editors:(0,y.coalesce)(a)}}saveAll(e){return this.save(this.getAllModifiedEditors(e),e)}async revert(e,t){Array.isArray(e)||(e=[e]);let i=this.getUniqueEditors(e);return await D.Promises.settled(i.map(async({groupId:e,editor:i})=>(this.editorGroupsContainer.getGroup(e)?.pinEditor(i),i.revert(e,t)))),!i.some(({editor:e})=>e.isDirty())}async revertAll(e){return this.revert(this.getAllModifiedEditors(e),e)}getAllModifiedEditors(e){let t=[];for(let i of this.editorGroupsContainer.getGroups(E.GroupsOrder.MOST_RECENTLY_ACTIVE))for(let r of i.getEditors(s.EditorsOrder.MOST_RECENTLY_ACTIVE))!(!r.isModified()||("boolean"==typeof e?.includeUntitled||!e?.includeUntitled?.includeScratchpad)&&r.hasCapability(s.EditorInputCapabilities.Scratchpad)||!e?.includeUntitled&&r.hasCapability(s.EditorInputCapabilities.Untitled))&&(e?.excludeSticky&&i.isSticky(r)||t.push({groupId:i.id,editor:r}));return t}getUniqueEditors(e){let t=[];for(let{editor:i,groupId:r}of e)t.some(e=>e.editor.matches(i))||t.push({editor:i,groupId:r});return t}dispose(){super.dispose(),this.activeOutOfWorkspaceWatchers.forEach(e=>(0,f.dispose)(e)),this.activeOutOfWorkspaceWatchers.clear()}};G=t=(0,i.__decorate)([(0,i.__param)(1,v.IEditorGroupsService),(0,i.__param)(2,r.IInstantiationService),(0,i.__param)(3,h.IFileService),(0,i.__param)(4,m.IConfigurationService),(0,i.__param)(5,R.IWorkspaceContextService),(0,i.__param)(6,O.IUriIdentityService),(0,i.__param)(7,b.IEditorResolverService),(0,i.__param)(8,M.IWorkspaceTrustRequestService),(0,i.__param)(9,L.IHostService),(0,i.__param)(10,P.ITextEditorService)],G),e.s(["EditorService",0,G])},962747,e=>{"use strict";var t=e.i(850887),i=e.i(556407),r=e.i(802136),s=e.i(193391),o=e.i(1391);function n(e,t,i){if((0,o.isEditorGroup)(e))return{groupId:e.id,editorIndex:void 0,preserveFocus:t};let r=i.getGroup(e.groupId);return{groupId:e.groupId,editorIndex:r?r.getIndexOfEditor(e.editor):-1,preserveFocus:t}}function a(e){return(0,o.isEditorGroup)(e)||(0,s.isEditorIdentifier)(e)}e.s(["resolveCommandsContext",0,function(e,o,d,h){let l=function(e,o,d,h){let l=h.lastFocusedList,c=l instanceof i.List&&l.getHTMLElement()===(0,t.getActiveElement)(),u=function(e,t,i,o,d){let h=e.filter(e=>(0,s.isEditorCommandsContext)(e)||r.URI.isUri(e));for(let e of h)if((0,s.isEditorCommandsContext)(e))return e;for(let e of h){let t=i.findEditors(e);if(t.length){let e=t[0],i=o.getGroup(e.groupId);return{groupId:e.groupId,editorIndex:i?.getIndexOfEditor(e.editor)}}}if(t){for(let e of d.lastFocusedList.getFocusedElements())if(a(e))return n(e,void 0,o)}}(e,c,o,d,h);if(!u){let e=d.activeGroup,t=e.activeEditor;u={groupId:e.id,editorIndex:t?e.getIndexOfEditor(t):void 0},c=!1}let p=function e(t,i,r,s,o){if(i){let i=o.lastFocusedList.getSelectedElements().filter(a);if(i.length>1)return i.map(e=>n(e,t.preserveFocus,s));if(0===i.length)return e(t,!1,r,s,o)}else{let e=s.getGroup(t.groupId),i=void 0!==t.editorIndex?e?.getEditorByIndex(t.editorIndex):e?.activeEditor;if(e&&i&&e.isSelected(i))return e.selectedEditors.map(i=>n({editor:i,groupId:e.id},t.preserveFocus,s))}return[t]}(u,c,o,d,h);var g=u,E=p;if(E.length<=1)return E;let v=E.findIndex(e=>e.groupId===g.groupId&&e.editorIndex===g.editorIndex);if(-1!==v)E.splice(v,1),E.unshift(g);else if(void 0===g.editorIndex)E.unshift(g);else throw Error("Editor context not found in multi editor context");return E}(e,o,d,h),c={groupedEditors:[],preserveFocus:!!l.length&&(l[0].preserveFocus||!1)};for(let e of l){let t,i=function(e,t){let i=t.getGroup(e.groupId);if(!i)return;if(void 0===e.editorIndex)return{group:i,editor:void 0};let r=i.getEditorByIndex(e.editorIndex);return{group:i,editor:r}}(e,d);if(!i)continue;let{group:r,editor:s}=i;for(let e of c.groupedEditors)if(e.group.id===r.id){t=e;break}t||(t={group:r,editors:[]},c.groupedEditors.push(t)),s&&t.editors.push(s)}return c}])},164216,859487,e=>{"use strict";var t,i,r=e.i(281482),s=e.i(781808),o=e.i(621826),n=e.i(802186),a=e.i(488259),d=e.i(193391),h=e.i(219170),l=e.i(702320),c=e.i(350803),u=e.i(460096),p=e.i(83190),g=p,E=e.i(170774),v=e.i(370973),S=e.i(362361),m=e.i(553638),f=e.i(693162),y=e.i(772383),C=e.i(292035),I=e.i(951129),_=e.i(905670),D=e.i(611130),R=e.i(554250),A=e.i(824489);let O=class extends g.AbstractTextResourceEditorInput{static{t=this}static{this.ID="workbench.editors.untitledEditorInput"}get typeId(){return t.ID}get editorId(){return d.DEFAULT_EDITOR_ASSOCIATION.id}constructor(e,t,i,r,s,o,n,a,d,h,l){super(e.resource,void 0,r,t,i,s,a,h,l),this.model=e,this.environmentService=o,this.pathService=n,this.textModelService=d,this.modelResolve=void 0,this.modelDisposables=this._register(new D.DisposableStore),this.cachedUntitledTextEditorModelReference=void 0,this.registerModelListeners(e),this._register(this.textFileService.untitled.onDidCreate(e=>this.onDidCreateUntitledModel(e)))}registerModelListeners(e){this.modelDisposables.clear(),this.modelDisposables.add(e.onDidChangeDirty(()=>this._onDidChangeDirty.fire())),this.modelDisposables.add(e.onDidChangeName(()=>this._onDidChangeLabel.fire())),this.modelDisposables.add(e.onDidRevert(()=>this.dispose()))}onDidCreateUntitledModel(e){(0,f.isEqual)(e.resource,this.model.resource)&&e!==this.model&&(this.model=e,this.registerModelListeners(e))}getName(){return this.model.name}getDescription(e=d.Verbosity.MEDIUM){if(!this.model.hasAssociatedFilePath){let e=this.resource.path;return e!==this.getName()?e:void 0}return super.getDescription(e)}getTitle(e){if(!this.model.hasAssociatedFilePath){let e=this.getName(),t=this.getDescription();return t&&t!==e?`${e} • ${t}`:e}return super.getTitle(e)}isDirty(){return this.model.isDirty()}getEncoding(){return this.model.getEncoding()}setEncoding(e,t){return this.model.setEncoding(e)}get hasLanguageSetExplicitly(){return this.model.hasLanguageSetExplicitly}get hasAssociatedFilePath(){return this.model.hasAssociatedFilePath}setLanguageId(e,t){this.model.setLanguageId(e,t)}getLanguageId(){return this.model.getLanguageId()}async resolve(){return this.modelResolve||(this.modelResolve=(async()=>{this.cachedUntitledTextEditorModelReference=await this.textModelService.createModelReference(this.resource)})()),await this.modelResolve,this.isDisposed()&&this.disposeModelReference(),this.model}toUntyped(e){let t={resource:this.model.hasAssociatedFilePath?(0,f.toLocalResource)(this.model.resource,this.environmentService.remoteAuthority,this.pathService.defaultUriScheme):this.resource,forceUntitled:!0,options:{override:this.editorId}};return"number"==typeof e?.preserveViewState&&(t.encoding=this.getEncoding(),t.languageId=this.getLanguageId(),t.contents=this.model.isModified()?this.model.textEditorModel?.getValue():void 0,t.options.viewState=(0,d.findViewStateForEditor)(this,e.preserveViewState,this.editorService),"string"!=typeof t.contents||this.model.hasAssociatedFilePath||e.preserveResource||(t.resource=void 0)),t}matches(e){return this===e||(e instanceof t?(0,f.isEqual)(e.resource,this.resource):!!(0,d.isUntitledResourceEditorInput)(e)&&super.matches(e))}dispose(){this.modelResolve=void 0,this.disposeModelReference(),super.dispose()}disposeModelReference(){(0,D.dispose)(this.cachedUntitledTextEditorModelReference),this.cachedUntitledTextEditorModelReference=void 0}};O=t=(0,r.__decorate)([(0,r.__param)(1,E.ITextFileService),(0,r.__param)(2,v.ILabelService),(0,r.__param)(3,S.IEditorService),(0,r.__param)(4,m.IFileService),(0,r.__param)(5,y.IWorkbenchEnvironmentService),(0,r.__param)(6,C.IPathService),(0,r.__param)(7,I.IFilesConfigurationService),(0,r.__param)(8,_.ITextModelService),(0,r.__param)(9,R.ITextResourceConfigurationService),(0,r.__param)(10,A.ICustomEditorLabelService)],O),e.s(["UntitledTextEditorInput",0,O],859487);var w=e.i(802136),b=e.i(474320),T=e.i(781112),M=e.i(865384),L=D;e.i(157255);var x=e.i(619122);class P extends Error{constructor(e,t){super(e),this.name="FileEditorInputLeakError",this.stack=t}}let G=class extends L.Disposable{static{i=this}constructor(e,t,i,r,s){super(),this.untitledTextEditorService=e,this.instantiationService=t,this.uriIdentityService=i,this.fileService=r,this.editorResolverService=s,this.editorInputCache=new n.ResourceMap,this.fileEditorFactory=o.Registry.as(d.EditorExtensions.EditorFactory).getFileEditorFactory(),this.mapLeakToCounter=new Map,this.registerDefaultEditor()}registerDefaultEditor(){this._register(this.editorResolverService.registerEditor("*",{id:d.DEFAULT_EDITOR_ASSOCIATION.id,label:d.DEFAULT_EDITOR_ASSOCIATION.displayName,detail:d.DEFAULT_EDITOR_ASSOCIATION.providerDisplayName,priority:T.RegisteredEditorPriority.builtin},{},{createEditorInput:e=>({editor:this.createTextEditor(e)}),createUntitledEditorInput:e=>({editor:this.createTextEditor(e)}),createDiffEditorInput:e=>({editor:this.createTextEditor(e)})}))}async resolveTextEditor(e){return this.createTextEditor(e)}createTextEditor(e){if((0,d.isResourceMergeEditorInput)(e))return this.createTextEditor(e.result);if((0,d.isResourceDiffEditorInput)(e)){let t=this.createTextEditor(e.original),i=this.createTextEditor(e.modified);return this.instantiationService.createInstance(c.DiffEditorInput,e.label,e.description,t,i,void 0)}if((0,d.isResourceSideBySideEditorInput)(e)){let t=this.createTextEditor(e.primary),i=this.createTextEditor(e.secondary);return this.instantiationService.createInstance(u.SideBySideEditorInput,e.label,e.description,i,t)}if(e.forceUntitled||!e.resource||e.resource.scheme===l.Schemas.untitled){let t,i={languageId:e.languageId,initialValue:e.contents,encoding:e.encoding};return t=e.resource?.scheme===l.Schemas.untitled?this.untitledTextEditorService.create({untitledResource:e.resource,...i}):this.untitledTextEditorService.create({associatedResource:e.resource,...i}),this.createOrGetCached(t.resource,()=>this.instantiationService.createInstance(O,t))}if(e.resource instanceof w.URI){let t=e.label||(0,f.basename)(e.resource),i=e.resource,r=this.uriIdentityService.asCanonicalUri(i);return this.createOrGetCached(r,()=>e.forceFile||this.fileService.hasProvider(r)?this.fileEditorFactory.createFileEditor(r,i,e.label,e.description,e.encoding,e.languageId,e.contents,this.instantiationService):this.instantiationService.createInstance(p.TextResourceEditorInput,r,e.label,e.description,e.languageId,e.contents),r=>{r instanceof O||(r instanceof p.TextResourceEditorInput?(t&&r.setName(t),e.description&&r.setDescription(e.description)):(r.setPreferredResource(i),e.label&&r.setPreferredName(e.label),e.description&&r.setPreferredDescription(e.description),e.encoding&&r.setPreferredEncoding(e.encoding)),e.languageId&&r.setPreferredLanguageId(e.languageId),"string"==typeof e.contents&&r.setPreferredContents(e.contents))})}throw Error(`ITextEditorService: Unable to create texteditor from ${JSON.stringify(e)}`)}createOrGetCached(e,t,i){let r=this.editorInputCache.get(e);if(r)return i?.(r),r;r=t(),this.editorInputCache.set(e,r);let o=this.trackLeaks(r);return s.Event.once(r.onWillDispose)(()=>{this.editorInputCache.delete(e),o&&this.untrackLeaks(o)}),r}static{this.LEAK_TRACKING_THRESHOLD=256}static{this.LEAK_REPORTING_THRESHOLD=2*this.LEAK_TRACKING_THRESHOLD}static{this.LEAK_REPORTED=!1}trackLeaks(e){if(i.LEAK_REPORTED||this.editorInputCache.size<i.LEAK_TRACKING_THRESHOLD)return;let t=`${e.resource.scheme}#${e.typeId||"<no typeId>"}#${e.editorId||"<no editorId>"}
|
|
2
|
+
${Error().stack?.split("\n").slice(2).join("\n")??""}`,r=(this.mapLeakToCounter.get(t)??0)+1;if(this.mapLeakToCounter.set(t,r),this.editorInputCache.size>i.LEAK_REPORTING_THRESHOLD){i.LEAK_REPORTED=!0;let[e,t]=Array.from(this.mapLeakToCounter.entries()).reduce(([e,t],[i,r])=>r>t?[i,r]:[e,t]),r=`Potential text editor input LEAK detected, having ${this.editorInputCache.size} text editor inputs already. Most frequent owner (${t})`;(0,x.onUnexpectedError)(new P(r,e))}return t}untrackLeaks(e){let t=(this.mapLeakToCounter.get(e)??1)-1;this.mapLeakToCounter.set(e,t),0===t&&this.mapLeakToCounter.delete(e)}};G=i=(0,r.__decorate)([(0,r.__param)(0,h.IUntitledTextEditorService),(0,r.__param)(1,a.IInstantiationService),(0,r.__param)(2,b.IUriIdentityService),(0,r.__param)(3,m.IFileService),(0,r.__param)(4,M.IEditorResolverService)],G),e.s(["TextEditorService",0,G],164216)},733550,e=>{"use strict";var t=e.i(281482),i=e.i(961828),r=e.i(553638),s=e.i(419031);let o=class extends i.EditorModel{constructor(e,t,i){super(),this.resource=e,this.name=t,this.fileService=i,this.mime=s.Mimes.binary}getName(){return this.name}getSize(){return this.size}getMime(){return this.mime}getETag(){return this.etag}async resolve(){if(this.fileService.hasProvider(this.resource)){let e=await this.fileService.stat(this.resource);this.etag=e.etag,"number"==typeof e.size&&(this.size=e.size)}return super.resolve()}};o=(0,t.__decorate)([(0,t.__param)(2,r.IFileService)],o),e.s(["BinaryEditorModel",0,o])},712418,e=>{"use strict";var t=e.i(697786),i=e.i(281482),r=e.i(611130),s=e.i(836545),o=e.i(951129),n=e.i(74304),a=e.i(193391),d=e.i(362361),h=e.i(891110),l=e.i(7542),c=e.i(337161),u=e.i(853457),p=e.i(206548),g=e.i(802186),E=e.i(474320);let v=class extends r.Disposable{static{this.ID="workbench.contrib.editorAutoSave"}constructor(e,t,i,s,o,n,a,d){for(const h of(super(),this.filesConfigurationService=e,this.hostService=t,this.editorService=i,this.editorGroupService=s,this.workingCopyService=o,this.logService=n,this.markerService=a,this.uriIdentityService=d,this.scheduledAutoSavesAfterDelay=new Map,this.lastActiveEditor=void 0,this.lastActiveGroupId=void 0,this.lastActiveEditorControlDisposable=this._register(new r.DisposableStore),this.waitingOnConditionAutoSaveWorkingCopies=new g.ResourceMap(e=>this.uriIdentityService.extUri.getComparisonKey(e)),this.waitingOnConditionAutoSaveEditors=new g.ResourceMap(e=>this.uriIdentityService.extUri.getComparisonKey(e)),this.workingCopyService.dirtyWorkingCopies))this.onDidRegister(h);this.registerListeners()}registerListeners(){this._register(this.hostService.onDidChangeFocus(e=>this.onWindowFocusChange(e))),this._register(this.hostService.onDidChangeActiveWindow(()=>this.onActiveWindowChange())),this._register(this.editorService.onDidActiveEditorChange(()=>this.onDidActiveEditorChange())),this._register(this.filesConfigurationService.onDidChangeAutoSaveConfiguration(()=>this.onDidChangeAutoSaveConfiguration())),this._register(this.workingCopyService.onDidRegister(e=>this.onDidRegister(e))),this._register(this.workingCopyService.onDidUnregister(e=>this.onDidUnregister(e))),this._register(this.workingCopyService.onDidChangeDirty(e=>this.onDidChangeDirty(e))),this._register(this.workingCopyService.onDidChangeContent(e=>this.onDidChangeContent(e))),this._register(this.markerService.onMarkerChanged(e=>this.onConditionChanged(e,s.AutoSaveDisabledReason.ERRORS))),this._register(this.filesConfigurationService.onDidChangeAutoSaveDisabled(e=>this.onConditionChanged([e],s.AutoSaveDisabledReason.DISABLED)))}onConditionChanged(e,t){for(let i of e){let e=this.waitingOnConditionAutoSaveWorkingCopies.get(i);if(e?.condition===t)e.workingCopy.isDirty()&&this.filesConfigurationService.getAutoSaveMode(e.workingCopy.resource,e.reason).mode!==s.AutoSaveMode.OFF&&(this.discardAutoSave(e.workingCopy),this.logService.trace("[editor auto save] running auto save from condition change event",e.workingCopy.resource.toString(),e.workingCopy.typeId),e.workingCopy.save({reason:e.reason}));else{let e=this.waitingOnConditionAutoSaveEditors.get(i);e?.condition===t&&!e.editor.editor.isDisposed()&&e.editor.editor.isDirty()&&this.filesConfigurationService.getAutoSaveMode(e.editor.editor,e.reason).mode!==s.AutoSaveMode.OFF&&(this.waitingOnConditionAutoSaveEditors.delete(i),this.logService.trace(`[editor auto save] running auto save from condition change event with reason ${e.reason}`),this.editorService.save(e.editor,{reason:e.reason}))}}}onWindowFocusChange(e){e||this.maybeTriggerAutoSave(a.SaveReason.WINDOW_CHANGE)}onActiveWindowChange(){this.maybeTriggerAutoSave(a.SaveReason.WINDOW_CHANGE)}onDidActiveEditorChange(){this.lastActiveEditor&&"number"==typeof this.lastActiveGroupId&&this.maybeTriggerAutoSave(a.SaveReason.FOCUS_CHANGE,{groupId:this.lastActiveGroupId,editor:this.lastActiveEditor});let e=this.editorGroupService.activeGroup,t=this.lastActiveEditor=e.activeEditor??void 0;this.lastActiveGroupId=e.id,this.lastActiveEditorControlDisposable.clear();let i=this.editorService.activeEditorPane;t&&i&&this.lastActiveEditorControlDisposable.add(i.onDidBlur(()=>{this.maybeTriggerAutoSave(a.SaveReason.FOCUS_CHANGE,{groupId:e.id,editor:t})}))}maybeTriggerAutoSave(e,t){if(t){if(!t.editor.isDirty()||t.editor.isReadonly()||t.editor.hasCapability(a.EditorInputCapabilities.Untitled))return;let i=this.filesConfigurationService.getAutoSaveMode(t.editor,e);i.mode!==s.AutoSaveMode.OFF?(e===a.SaveReason.WINDOW_CHANGE&&(i.mode===s.AutoSaveMode.ON_FOCUS_CHANGE||i.mode===s.AutoSaveMode.ON_WINDOW_CHANGE)||e===a.SaveReason.FOCUS_CHANGE&&i.mode===s.AutoSaveMode.ON_FOCUS_CHANGE)&&(this.logService.trace(`[editor auto save] triggering auto save with reason ${e}`),this.editorService.save(t,{reason:e})):t.editor.resource&&(i.reason===s.AutoSaveDisabledReason.ERRORS||i.reason===s.AutoSaveDisabledReason.DISABLED)&&this.waitingOnConditionAutoSaveEditors.set(t.editor.resource,{editor:t,reason:e,condition:i.reason})}else this.saveAllDirtyAutoSaveables(e)}onDidChangeAutoSaveConfiguration(){let e;switch(this.filesConfigurationService.getAutoSaveMode(void 0).mode){case s.AutoSaveMode.ON_FOCUS_CHANGE:e=a.SaveReason.FOCUS_CHANGE;break;case s.AutoSaveMode.ON_WINDOW_CHANGE:e=a.SaveReason.WINDOW_CHANGE;break;case s.AutoSaveMode.AFTER_SHORT_DELAY:case s.AutoSaveMode.AFTER_LONG_DELAY:e=a.SaveReason.AUTO}e&&this.saveAllDirtyAutoSaveables(e)}saveAllDirtyAutoSaveables(e){for(let t of this.workingCopyService.dirtyWorkingCopies){if(t.capabilities&c.WorkingCopyCapabilities.Untitled)continue;let i=this.filesConfigurationService.getAutoSaveMode(t.resource,e);i.mode!==s.AutoSaveMode.OFF?t.save({reason:e}):(i.reason===s.AutoSaveDisabledReason.ERRORS||i.reason===s.AutoSaveDisabledReason.DISABLED)&&this.waitingOnConditionAutoSaveWorkingCopies.set(t.resource,{workingCopy:t,reason:e,condition:i.reason})}}onDidRegister(e){e.isDirty()&&this.scheduleAutoSave(e)}onDidUnregister(e){this.discardAutoSave(e)}onDidChangeDirty(e){e.isDirty()?this.scheduleAutoSave(e):this.discardAutoSave(e)}onDidChangeContent(e){e.isDirty()&&this.scheduleAutoSave(e)}scheduleAutoSave(e){if(e.capabilities&c.WorkingCopyCapabilities.Untitled)return;let t=this.filesConfigurationService.getAutoSaveConfiguration(e.resource).autoSaveDelay;if("number"!=typeof t)return;this.discardAutoSave(e),this.logService.trace(`[editor auto save] scheduling auto save after ${t}ms`,e.resource.toString(),e.typeId);let i=setTimeout(()=>{if(this.discardAutoSave(e),e.isDirty()){let t=a.SaveReason.AUTO,i=this.filesConfigurationService.getAutoSaveMode(e.resource,t);i.mode!==s.AutoSaveMode.OFF?(this.logService.trace("[editor auto save] running auto save",e.resource.toString(),e.typeId),e.save({reason:t})):(i.reason===s.AutoSaveDisabledReason.ERRORS||i.reason===s.AutoSaveDisabledReason.DISABLED)&&this.waitingOnConditionAutoSaveWorkingCopies.set(e.resource,{workingCopy:e,reason:t,condition:i.reason})}},t);this.scheduledAutoSavesAfterDelay.set(e,(0,r.toDisposable)(()=>{this.logService.trace("[editor auto save] clearing pending auto save",e.resource.toString(),e.typeId),clearTimeout(i)}))}discardAutoSave(e){(0,r.dispose)(this.scheduledAutoSavesAfterDelay.get(e)),this.scheduledAutoSavesAfterDelay.delete(e),this.waitingOnConditionAutoSaveWorkingCopies.delete(e.resource),this.waitingOnConditionAutoSaveEditors.delete(e.resource)}};v=(0,i.__decorate)([(0,i.__param)(0,o.IFilesConfigurationService),(0,i.__param)(1,n.IHostService),(0,i.__param)(2,d.IEditorService),(0,i.__param)(3,h.IEditorGroupsService),(0,i.__param)(4,l.IWorkingCopyService),(0,i.__param)(5,u.ILogService),(0,i.__param)(6,p.IMarkerService),(0,i.__param)(7,E.IUriIdentityService)],v),(0,t.registerWorkbenchContribution2)(v.ID,v,t.WorkbenchPhase.BlockRestore),e.s([],712418)},769083,437030,e=>{"use strict";var t,i,r,s=e.i(621826),o=e.i(193391),n=e.i(51593),a=e.i(281482),d=e.i(83190),h=e.i(733550),l=e.i(553638),c=e.i(445152),u=e.i(170774),p=e.i(488259),g=e.i(611130),E=e.i(905670),v=e.i(370973),S=e.i(951129),m=e.i(362361),f=e.i(693162),y=e.i(781808),C=e.i(702320),I=e.i(327634),_=e.i(292035),D=e.i(554250),R=e.i(824489);(t=r||(r={}))[t.None=0]="None",t[t.Text=1]="Text",t[t.Binary=2]="Binary";let A=i=class extends d.AbstractTextResourceEditorInput{get typeId(){return n.FILE_EDITOR_INPUT_ID}get editorId(){return o.DEFAULT_EDITOR_ASSOCIATION.id}get capabilities(){let e=o.EditorInputCapabilities.CanSplitInGroup;return this.model?this.model.isReadonly()&&(e|=o.EditorInputCapabilities.Readonly):this.fileService.hasProvider(this.resource)?this.filesConfigurationService.isReadonly(this.resource)&&(e|=o.EditorInputCapabilities.Readonly):e|=o.EditorInputCapabilities.Untitled,e&o.EditorInputCapabilities.Readonly||(e|=o.EditorInputCapabilities.CanDropIntoEditor),e}constructor(e,t,i,s,o,n,a,d,h,l,c,u,p,E,v,S,m){super(e,t,E,h,c,u,p,S,m),this.instantiationService=d,this.textModelService=l,this.pathService=v,this.forceOpenAs=r.None,this.model=void 0,this.cachedTextFileModelReference=void 0,this.modelListeners=this._register(new g.DisposableStore),this.model=this.textFileService.files.get(e),i&&this.setPreferredName(i),s&&this.setPreferredDescription(s),o&&this.setPreferredEncoding(o),n&&this.setPreferredLanguageId(n),"string"==typeof a&&this.setPreferredContents(a),this._register(this.textFileService.files.onDidCreate(e=>this.onDidCreateTextFileModel(e))),this.model&&this.registerModelListeners(this.model)}onDidCreateTextFileModel(e){(0,f.isEqual)(e.resource,this.resource)&&(this.model=e,this.registerModelListeners(e))}registerModelListeners(e){this.modelListeners.clear(),this.modelListeners.add(e.onDidChangeDirty(()=>this._onDidChangeDirty.fire())),this.modelListeners.add(e.onDidChangeReadonly(()=>this._onDidChangeCapabilities.fire())),this.modelListeners.add(e.onDidSaveError(()=>this._onDidChangeDirty.fire())),this.modelListeners.add(y.Event.once(e.onWillDispose)(()=>{this.modelListeners.clear(),this.model=void 0}))}getName(){return this.preferredName||super.getName()}setPreferredName(e){this.allowLabelOverride()&&this.preferredName!==e&&(this.preferredName=e,this._onDidChangeLabel.fire())}allowLabelOverride(){return this.resource.scheme!==this.pathService.defaultUriScheme&&this.resource.scheme!==C.Schemas.vscodeUserData&&this.resource.scheme!==C.Schemas.file&&this.resource.scheme!==C.Schemas.vscodeRemote}getPreferredName(){return this.preferredName}isReadonly(){return this.model?this.model.isReadonly():this.filesConfigurationService.isReadonly(this.resource)}getDescription(e){return this.preferredDescription||super.getDescription(e)}setPreferredDescription(e){this.allowLabelOverride()&&this.preferredDescription!==e&&(this.preferredDescription=e,this._onDidChangeLabel.fire())}getPreferredDescription(){return this.preferredDescription}getTitle(e){let t=super.getTitle(e),i=this.getPreferredTitle();return i&&(t=`${i} (${t})`),t}getPreferredTitle(){return this.preferredName&&this.preferredDescription?`${this.preferredName} ${this.preferredDescription}`:this.preferredName||this.preferredDescription?this.preferredName??this.preferredDescription:void 0}getEncoding(){return this.model?this.model.getEncoding():this.preferredEncoding}getPreferredEncoding(){return this.preferredEncoding}async setEncoding(e,t){return this.setPreferredEncoding(e),this.model?.setEncoding(e,t)}setPreferredEncoding(e){this.preferredEncoding=e,this.setForceOpenAsText()}getLanguageId(){return this.model?this.model.getLanguageId():this.preferredLanguageId}getPreferredLanguageId(){return this.preferredLanguageId}setLanguageId(e,t){this.setPreferredLanguageId(e),this.model?.setLanguageId(e,t)}setPreferredLanguageId(e){this.preferredLanguageId=e,this.setForceOpenAsText()}setPreferredContents(e){this.preferredContents=e,this.setForceOpenAsText()}setForceOpenAsText(){this.forceOpenAs=r.Text}setForceOpenAsBinary(){this.forceOpenAs=r.Binary}isDirty(){return!!this.model?.isDirty()}isSaving(){return!(this.model?.hasState(c.TextFileEditorModelState.SAVED)||this.model?.hasState(c.TextFileEditorModelState.CONFLICT)||this.model?.hasState(c.TextFileEditorModelState.ERROR))&&(!!this.filesConfigurationService.hasShortAutoSaveDelay(this)||super.isSaving())}prefersEditorPane(e){return this.forceOpenAs===r.Binary?e.find(e=>e.typeId===n.BINARY_FILE_EDITOR_ID):e.find(e=>e.typeId===n.TEXT_FILE_EDITOR_ID)}resolve(e){return this.forceOpenAs===r.Binary?this.doResolveAsBinary():this.doResolveAsText(e)}async doResolveAsText(e){try{let t=this.preferredContents;this.preferredContents=void 0,await this.textFileService.files.resolve(this.resource,{languageId:this.preferredLanguageId,encoding:this.preferredEncoding,contents:"string"==typeof t?(0,I.createTextBufferFactory)(t):void 0,reload:{async:!0},allowBinary:this.forceOpenAs===r.Text,reason:c.TextFileResolveReason.EDITOR,limits:this.ensureLimits(e)}),this.cachedTextFileModelReference||(this.cachedTextFileModelReference=await this.textModelService.createModelReference(this.resource));let i=this.cachedTextFileModelReference.object;return this.isDisposed()&&this.disposeModelReference(),i}catch(e){if(e.textFileOperationResult===c.TextFileOperationResult.FILE_IS_BINARY)return this.doResolveAsBinary();throw e}}async doResolveAsBinary(){let e=this.instantiationService.createInstance(h.BinaryEditorModel,this.preferredResource,this.getName());return await e.resolve(),e}isResolved(){return!!this.model}async rename(e,t){return{editor:{resource:t,encoding:this.getEncoding(),options:{viewState:(0,o.findViewStateForEditor)(this,e,this.editorService)}}}}toUntyped(e){let t={resource:this.preferredResource,forceFile:!0,options:{override:this.editorId}};return"number"==typeof e?.preserveViewState&&(t.encoding=this.getEncoding(),t.languageId=this.getLanguageId(),t.contents=(()=>{let e=this.textFileService.files.get(this.resource);if(e?.isDirty()&&!e.textEditorModel.isTooLargeForHeapOperation())return e.textEditorModel.getValue()})(),t.options={...t.options,viewState:(0,o.findViewStateForEditor)(this,e.preserveViewState,this.editorService)}),t}matches(e){return this===e||(e instanceof i?(0,f.isEqual)(e.resource,this.resource):!!(0,o.isResourceEditorInput)(e)&&super.matches(e))}dispose(){this.model=void 0,this.disposeModelReference(),super.dispose()}disposeModelReference(){(0,g.dispose)(this.cachedTextFileModelReference),this.cachedTextFileModelReference=void 0}};A=i=(0,a.__decorate)([(0,a.__param)(7,p.IInstantiationService),(0,a.__param)(8,u.ITextFileService),(0,a.__param)(9,E.ITextModelService),(0,a.__param)(10,v.ILabelService),(0,a.__param)(11,l.IFileService),(0,a.__param)(12,S.IFilesConfigurationService),(0,a.__param)(13,m.IEditorService),(0,a.__param)(14,_.IPathService),(0,a.__param)(15,D.ITextResourceConfigurationService),(0,a.__param)(16,R.ICustomEditorLabelService)],A),e.s(["FileEditorInput",0,A],437030),s.Registry.as(o.EditorExtensions.EditorFactory).registerFileEditorFactory({typeId:n.FILE_EDITOR_INPUT_ID,createFileEditor:(e,t,i,r,s,o,n,a)=>a.createInstance(A,e,t,i,r,s,o,n),isFileEditor:e=>e instanceof A}),e.s([],769083)},614411,e=>{"use strict";var t,i,r=e.i(650289),s=e.i(701898),o=e.i(619122),n=e.i(182504),a=e.i(83823),d=e.i(79522),h=e.i(440049),l=e.i(318581),c=e.i(488259),u=e.i(718596),p=e.i(122667);e.i(216822);var g=e.i(975445),E=e.i(962747),v=e.i(193391),S=e.i(460096),m=e.i(1391),f=e.i(891110),y=e.i(362361),C=e.i(170774),I=e.i(427505),_=e.i(802136),D=e.i(51593),R=e.i(556407),A=e.i(281482),O=e.i(72469),w=e.i(771275),b=e.i(802186),T=e.i(652731),M=e.i(693205),L=e.i(454514);e.i(611130);var x=e.i(255338);e.i(781808);var P=e.i(693162);class G{constructor(e){for(const[t,i]of(this.root=new F,e))for(const e of i)this.root.add(t,e)}toString(){return this.root.toString()}getAttributes(e,t){let i=e.lastIndexOf(".");return i<1?{dirname:t,basename:e,extname:""}:{dirname:t,basename:e.substring(0,i),extname:e.substring(i+1)}}nest(e,t){let i=new F;for(let r of e){let e=this.getAttributes(r,t);for(let t of this.root.get(r,e))i.add(t,r)}let r=(e,s=new Set)=>{if(s.has(e))return[];s.add(e);let o=this.getAttributes(e,t),n=i.get(e,o);return 0===n.length||1===n.length&&n[0]===e?[e]:n.flatMap(e=>r(e,s))},s=new Map;for(let t of e){let e=r(t);for(let i of(0===e.length&&(e=[t]),e)){let e=s.get(i);e||s.set(i,e=new Set),t!==i&&e.add(t)}}return s}}class F{constructor(){this.value=new N,this.map=new Map}add(e,t){if(""===e)this.value.add(e,t);else if("*"===e[0])this.value.add(e,t);else{let i=e[0],r=e.slice(1),s=this.map.get(i);s||this.map.set(i,s=new F),s.add(r,t)}}get(e,t){let i=[];i.push(...this.value.get(e,t));let r=e[0],s=e.slice(1),o=this.map.get(r);return o&&i.push(...o.get(s,t)),i}toString(e=""){let t=[];return this.value.hasItems&&t.push("* => \n"+this.value.toString(e+" ")),t.map(t=>e+t).join("\n")}}class N{constructor(){this.star=[],this.epsilon=[],this.map=new Map,this.hasItems=!1}add(e,t){if(this.hasItems=!0,"*"===e)this.star.push(new U(t));else if(""===e)this.epsilon.push(new U(t));else{let i=e[e.length-1],r=e.slice(0,e.length-1);if("*"===i)throw Error("Unexpected star in SufTrie key: "+e);{let e=this.map.get(i);e||this.map.set(i,e=new N),e.add(r,t)}}}get(e,t){let i=[];""===e&&i.push(...this.epsilon.map(e=>e.substitute(t))),this.star.length&&i.push(...this.star.map(i=>i.substitute(t,e)));let r=e[e.length-1],s=e.slice(0,e.length-1),o=this.map.get(r);return o&&i.push(...o.get(s,t)),i}toString(e=""){let t=[];return this.star.length&&t.push("* => "+this.star.join("; ")),this.epsilon.length&&t.push("ε => "+this.epsilon.join("; ")),t.map(t=>e+t).join("\n")}}(t=i||(i={})).capture="capture",t.basename="basename",t.dirname="dirname",t.extname="extname";let k=/\$[({](capture|basename|dirname|extname)[)}]/g;class U{constructor(e){let t;this.tokens=[],k.lastIndex=0;let r=0;for(;t=k.exec(e);){const s=e.slice(r,t.index);this.tokens.push(s);const o=t[1];switch(o){case i.basename:case i.dirname:case i.extname:case i.capture:this.tokens.push({capture:o});break;default:throw Error("unknown substitution type: "+o)}r=t.index+t[0].length}if(r!==e.length){const t=e.slice(r,e.length);this.tokens.push(t)}}substitute(e,t){return this.tokens.map(r=>{if("string"==typeof r)return r;switch(r.capture){case i.basename:return e.basename;case i.dirname:return e.dirname;case i.extname:return e.extname;case i.capture:return t||""}}).join("")}}var V=e.i(535567);class W{constructor(e,t,i,r,s,o,n,a,d,h=(0,P.basenameOrAuthority)(e),l,c=!1){this.resource=e,this.fileService=t,this.configService=i,this.filesConfigService=r,this._parent=s,this._isDirectory=o,this._isSymbolicLink=n,this._readonly=a,this._locked=d,this._name=h,this._mtime=l,this._unknown=c,this.error=void 0,this._isExcluded=!1,this.markedAsFindResult=!1,this._isDirectoryResolved=!1}get isExcluded(){return!!this._isExcluded||!!this._parent&&this._parent.isExcluded}set isExcluded(e){this._isExcluded=e}hasChildren(e){return this.hasNests?this.nestedChildren?.some(t=>e(t))??!1:this.isDirectory}get hasNests(){return!!this.nestedChildren?.length}get isDirectoryResolved(){return this._isDirectoryResolved}get isSymbolicLink(){return!!this._isSymbolicLink}get isDirectory(){return!!this._isDirectory}get isReadonly(){return this.filesConfigService.isReadonly(this.resource,{resource:this.resource,name:this.name,readonly:this._readonly,locked:this._locked})}get mtime(){return this._mtime}get name(){return this._name}get isUnknown(){return this._unknown}get parent(){return this._parent}get root(){return this._parent?this._parent.root:this}get children(){return new Map}updateName(e){this._parent?.removeChild(this),this._name=e,this._parent?.addChild(this)}getId(){let e=this.root.resource.toString()+"::"+this.resource.toString();return this.isMarkedAsFiltered()&&(e+="::findFilterResult"),e}toString(){return`ExplorerItem: ${this.name}`}get isRoot(){return this===this.root}static create(e,t,i,r,s,o){let n=new W(r.resource,e,t,i,s,r.isDirectory,r.isSymbolicLink,r.readonly,r.locked,r.name,r.mtime,!r.isFile&&!r.isDirectory);if(n.isDirectory&&(n._isDirectoryResolved=!!r.children||!!o&&o.some(e=>(0,P.isEqualOrParent)(e,n.resource)),r.children))for(let s=0,a=r.children.length;s<a;s++){let a=W.create(e,t,i,r.children[s],n,o);n.addChild(a)}return n}static mergeLocalWithDisk(e,t){if(e.resource.toString()!==t.resource.toString())return;let i=e.isDirectory||t.isDirectory;if((!i||!t._isDirectoryResolved||e._isDirectoryResolved)&&(t.resource=e.resource,t.isRoot||t.updateName(e.name),t._isDirectory=e.isDirectory,t._mtime=e.mtime,t._isDirectoryResolved=e._isDirectoryResolved,t._isSymbolicLink=e.isSymbolicLink,t.error=e.error,i&&e._isDirectoryResolved)){let i=new b.ResourceMap;t.children.forEach(e=>{i.set(e.resource,e)}),t.children.clear(),e.children.forEach(e=>{let r=i.get(e.resource);r?(W.mergeLocalWithDisk(e,r),t.addChild(r),i.delete(e.resource)):t.addChild(e)}),i.forEach(e=>{e instanceof B&&t.addChild(e)})}}addChild(e){e._parent=this,e.updateResource(!1),this.children.set(this.getPlatformAwareName(e.name),e)}getChild(e){return this.children.get(this.getPlatformAwareName(e))}fetchChildren(e){let t=this.configService.getValue({resource:this.root.resource}).explorer.fileNesting;return t.enabled&&this.nestedChildren?this.nestedChildren:(async()=>{if(!this._isDirectoryResolved){let t=e===D.SortOrder.Modified;this.error=void 0;try{let e=await this.fileService.resolve(this.resource,{resolveSingleChildDescendants:!0,resolveMetadata:t}),i=W.create(this.fileService,this.configService,this.filesConfigService,e,this);W.mergeLocalWithDisk(i,this)}catch(e){throw this.error=e,e}this._isDirectoryResolved=!0}let i=[];if(t.enabled){let e=[],t=[];for(let i of this.children.entries())i[1].nestedParent=void 0,i[1].isDirectory?t.push(i):e.push(i);let r=this.fileNester.nest(e.map(([e])=>e),this.getPlatformAwareName(this.name));for(let[t,s]of e){let e=r.get(t);if(void 0!==e){for(let t of(s.nestedChildren=[],e.keys())){let e=(0,V.assertReturnsDefined)(this.children.get(t));s.nestedChildren.push(e),e.nestedParent=s}i.push(s)}else s.nestedChildren=void 0}for(let[e,r]of t.values())i.push(r)}else this.children.forEach(e=>{i.push(e)});return i})()}get fileNester(){if(!this.root._fileNester){let e=Object.entries(this.configService.getValue({resource:this.root.resource}).explorer.fileNesting.patterns).filter(e=>"string"==typeof e[0]&&"string"==typeof e[1]&&e[0]&&e[1]).map(([e,t])=>[this.getPlatformAwareName(e.trim()),t.split(",").map(e=>this.getPlatformAwareName(e.trim().replace(/\u200b/g,"").trim())).filter(e=>""!==e)]);this.root._fileNester=new G(e)}return this.root._fileNester}removeChild(e){this.nestedChildren=void 0,this.children.delete(this.getPlatformAwareName(e.name))}forgetChildren(){this.children.clear(),this.nestedChildren=void 0,this._isDirectoryResolved=!1,this._fileNester=void 0}getPlatformAwareName(e){return this.fileService.hasCapability(this.resource,T.FileSystemProviderCapabilities.PathCaseSensitive)?e:e.toLowerCase()}move(e){this.nestedParent?.removeChild(this),this._parent?.removeChild(this),e.removeChild(this),e.addChild(this),this.updateResource(!0)}updateResource(e){this._parent&&(this.resource=(0,P.joinPath)(this._parent.resource,this.name)),e&&this.isDirectory&&this.children.forEach(e=>{e.updateResource(!0)})}rename(e){this.updateName(e.name),this._mtime=e.mtime,this.updateResource(!0)}find(e){let t=!this.fileService.hasCapability(e,T.FileSystemProviderCapabilities.PathCaseSensitive);return e&&this.resource.scheme===e.scheme&&(0,M.equalsIgnoreCase)(this.resource.authority,e.authority)&&(t?(0,M.startsWithIgnoreCase)(e.path,this.resource.path):e.path.startsWith(this.resource.path))?this.findByPath((0,M.rtrim)(e.path,w.posix.sep),this.resource.path.length,t):null}findByPath(e,t,i){if((0,O.isEqual)((0,M.rtrim)(this.resource.path,w.posix.sep),e,i))return this;if(this.isDirectory){for(;t<e.length&&e[t]===w.posix.sep;)t++;let r=e.indexOf(w.posix.sep,t);-1===r&&(r=e.length);let s=e.substring(t,r),o=this.children.get(this.getPlatformAwareName(s));if(o)return o.findByPath(e,r,i)}return null}isMarkedAsFiltered(){return this.markedAsFindResult}markItemAndParentsAsFiltered(){this.markedAsFindResult=!0,this.parent?.markItemAndParentsAsFiltered()}unmarkItemAndChildren(){this.markedAsFindResult=!1,this.children.forEach(e=>e.unmarkItemAndChildren())}}W.__decorator=(0,A.__decorate)([x.memoize],W.prototype,"children",null);class B extends W{constructor(e,t,i,r,s){super(_.URI.file(""),e,t,i,r,s),this._isDirectoryResolved=!0}}e.i(172005);var K=e.i(850887);function H(e){let t=e.get(p.IListService).lastFocusedList,i=t?.getHTMLElement();if(i&&(0,K.isActiveElement)(i)&&t instanceof R.List){let e,i=(0,L.coalesce)(t.getSelectedElements().filter(e=>e instanceof D.OpenEditor)),r=t.getFocusedElements(),s=r.length?r[0]:void 0;return(s instanceof D.OpenEditor&&(e=s),i.some(t=>t===e))?i:e?[e]:void 0}}var Y=e.i(431110),z=e.i(770326);async function $(e,t){let i=e.get(f.IEditorGroupsService),r=e.get(d.ICodeEditorService),s=e.get(C.ITextFileService),o=H(e);if(!o){let e=i.activeGroup;e.activeEditor&&(o=[],e.activeEditor instanceof S.SideBySideEditorInput&&!t?.saveAs&&!(e.activeEditor.primary.hasCapability(v.EditorInputCapabilities.Untitled)||e.activeEditor.secondary.hasCapability(v.EditorInputCapabilities.Untitled))&&e.activeEditor.secondary.isModified()?(o.push({groupId:e.id,editor:e.activeEditor.primary}),o.push({groupId:e.id,editor:e.activeEditor.secondary})):o.push({groupId:e.id,editor:e.activeEditor}))}if(!o||0===o.length)return;await j(e,o,t);let n=r.getFocusedCodeEditor();if(n instanceof h.EmbeddedCodeEditorWidget&&!n.isSimpleWidget){let e=n.getModel()?.uri;if(e&&!o.some(({editor:t})=>(0,P.isEqual)(v.EditorResourceAccessor.getCanonicalUri(t,{supportSideBySide:v.SideBySideEditor.PRIMARY}),e))){let i=s.files.get(e);i?.isReadonly()||await s.save(e,t)}}}function q(e,t,i){let r=[];for(let e of t)for(let t of e.getEditors(v.EditorsOrder.MOST_RECENTLY_ACTIVE))t.isDirty()&&r.push({groupId:e.id,editor:t});return j(e,r,i)}async function j(e,t,i){let a=e.get(y.IEditorService),d=e.get(g.INotificationService),h=e.get(c.IInstantiationService);try{await a.save(t,i)}catch(e){if(!(0,o.isCancellationError)(e)){let o=[(0,s.toAction)({id:"workbench.action.files.saveEditors",label:(0,r.localize)(8064,"Retry"),run:()=>h.invokeFunction(e=>j(e,t,i))})],l=t.filter(({editor:e})=>!e.hasCapability(v.EditorInputCapabilities.Untitled));l.length>0&&o.push((0,s.toAction)({id:"workbench.action.files.revertEditors",label:l.length>1?(0,r.localize)(8065,"Revert All"):(0,r.localize)(8066,"Revert"),run:()=>a.revert(l)})),d.notify({id:t.map(({editor:e})=>(0,n.hash)(e.resource?.toString())).join(),severity:z.default.Error,message:(0,r.localize)(8067,"Failed to save '{0}': {1}",t.map(({editor:e})=>e.getName()).join(", "),(0,Y.toErrorMessage)(e,!1)),actions:{primary:o}})}}}u.KeybindingsRegistry.registerCommandAndKeybindingRule({when:void 0,weight:u.KeybindingWeight.WorkbenchContrib,primary:a.KeyMod.CtrlCmd|a.KeyCode.KeyS,id:I.SAVE_FILE_COMMAND_ID,handler:e=>$(e,{reason:v.SaveReason.EXPLICIT,force:!0})}),u.KeybindingsRegistry.registerCommandAndKeybindingRule({when:void 0,weight:u.KeybindingWeight.WorkbenchContrib,primary:(0,a.KeyChord)(a.KeyMod.CtrlCmd|a.KeyCode.KeyK,a.KeyCode.KeyS),win:{primary:(0,a.KeyChord)(a.KeyMod.CtrlCmd|a.KeyCode.KeyK,a.KeyMod.CtrlCmd|a.KeyMod.Shift|a.KeyCode.KeyS)},id:I.SAVE_FILE_WITHOUT_FORMATTING_COMMAND_ID,handler:e=>$(e,{reason:v.SaveReason.EXPLICIT,force:!0,skipSaveParticipants:!0})}),u.KeybindingsRegistry.registerCommandAndKeybindingRule({id:I.SAVE_FILE_AS_COMMAND_ID,weight:u.KeybindingWeight.WorkbenchContrib,when:void 0,primary:a.KeyMod.CtrlCmd|a.KeyMod.Shift|a.KeyCode.KeyS,handler:e=>$(e,{reason:v.SaveReason.EXPLICIT,saveAs:!0})}),u.KeybindingsRegistry.registerCommandAndKeybindingRule({when:void 0,weight:u.KeybindingWeight.WorkbenchContrib,primary:void 0,mac:{primary:a.KeyMod.CtrlCmd|a.KeyMod.Alt|a.KeyCode.KeyS},win:{primary:(0,a.KeyChord)(a.KeyMod.CtrlCmd|a.KeyCode.KeyK,a.KeyCode.KeyS)},id:I.SAVE_ALL_COMMAND_ID,handler:e=>q(e,e.get(f.IEditorGroupsService).getGroups(m.GroupsOrder.MOST_RECENTLY_ACTIVE),{reason:v.SaveReason.EXPLICIT})}),l.CommandsRegistry.registerCommand({id:I.SAVE_ALL_IN_GROUP_COMMAND_ID,handler:(e,t,i)=>{let r=e.get(f.IEditorGroupsService),s=(0,E.resolveCommandsContext)([i],e.get(y.IEditorService),r,e.get(p.IListService));return q(e,s.groupedEditors.length?s.groupedEditors.map(({group:e})=>e):r.getGroups(m.GroupsOrder.MOST_RECENTLY_ACTIVE),{reason:v.SaveReason.EXPLICIT})}}),l.CommandsRegistry.registerCommand({id:I.SAVE_FILES_COMMAND_ID,handler:async e=>{let t=e.get(y.IEditorService);return(await t.saveAll({includeUntitled:!1,reason:v.SaveReason.EXPLICIT})).success}}),l.CommandsRegistry.registerCommand({id:I.REVERT_FILE_COMMAND_ID,handler:async e=>{let t=e.get(f.IEditorGroupsService),i=e.get(y.IEditorService),s=H(e);if(!s){let e=t.activeGroup;e.activeEditor&&(s=[{groupId:e.id,editor:e.activeEditor}])}if(s&&0!==s.length)try{await i.revert(s.filter(({editor:e})=>!e.hasCapability(v.EditorInputCapabilities.Untitled)),{force:!0})}catch(t){e.get(g.INotificationService).error((0,r.localize)(8068,"Failed to revert '{0}': {1}",s.map(({editor:e})=>e.getName()).join(", "),(0,Y.toErrorMessage)(t,!1)))}}}),e.s([],614411)}]);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,893300,(t,r,e)=>{var n={229:function(t){var r,e,n,o=t.exports={};function i(){throw Error("setTimeout has not been defined")}function f(){throw Error("clearTimeout has not been defined")}try{r="function"==typeof setTimeout?setTimeout:i}catch(t){r=i}try{e="function"==typeof clearTimeout?clearTimeout:f}catch(t){e=f}function u(t){if(r===setTimeout)return setTimeout(t,0);if((r===i||!r)&&setTimeout)return r=setTimeout,setTimeout(t,0);try{return r(t,0)}catch(e){try{return r.call(null,t,0)}catch(e){return r.call(this,t,0)}}}var s=[],a=!1,h=-1;function c(){a&&n&&(a=!1,n.length?s=n.concat(s):h=-1,s.length&&l())}function l(){if(!a){var t=u(c);a=!0;for(var r=s.length;r;){for(n=s,s=[];++h<r;)n&&n[h].run();h=-1,r=s.length}n=null,a=!1,function(t){if(e===clearTimeout)return clearTimeout(t);if((e===f||!e)&&clearTimeout)return e=clearTimeout,clearTimeout(t);try{e(t)}catch(r){try{return e.call(null,t)}catch(r){return e.call(this,t)}}}(t)}}function p(t,r){this.fun=t,this.array=r}function y(){}o.nextTick=function(t){var r=Array(arguments.length-1);if(arguments.length>1)for(var e=1;e<arguments.length;e++)r[e-1]=arguments[e];s.push(new p(t,r)),1!==s.length||a||u(l)},p.prototype.run=function(){this.fun.apply(null,this.array)},o.title="browser",o.browser=!0,o.env={},o.argv=[],o.version="",o.versions={},o.on=y,o.addListener=y,o.once=y,o.off=y,o.removeListener=y,o.removeAllListeners=y,o.emit=y,o.prependListener=y,o.prependOnceListener=y,o.listeners=function(t){return[]},o.binding=function(t){throw Error("process.binding is not supported")},o.cwd=function(){return"/"},o.chdir=function(t){throw Error("process.chdir is not supported")},o.umask=function(){return 0}}},o={};function i(t){var r=o[t];if(void 0!==r)return r.exports;var e=o[t]={exports:{}},f=!0;try{n[t](e,e.exports,i),f=!1}finally{f&&delete o[t]}return e.exports}i.ab="/ROOT/node_modules/.pnpm/next@16.2.4_@babel+core@7.29.0_react-dom@19.2.4_react@19.2.4__react@19.2.4/node_modules/next/dist/compiled/process/",r.exports=i(229)},8890,(t,r,e)=>{"use strict";var n,o;r.exports=(null==(n=t.g.process)?void 0:n.env)&&"object"==typeof(null==(o=t.g.process)?void 0:o.env)?t.g.process:t.r(893300)},553030,(t,r,e)=>{var n={675:function(t,r){"use strict";r.byteLength=function(t){var r=s(t),e=r[0],n=r[1];return(e+n)*3/4-n},r.toByteArray=function(t){var r,e,i=s(t),f=i[0],u=i[1],a=new o((f+u)*3/4-u),h=0,c=u>0?f-4:f;for(e=0;e<c;e+=4)r=n[t.charCodeAt(e)]<<18|n[t.charCodeAt(e+1)]<<12|n[t.charCodeAt(e+2)]<<6|n[t.charCodeAt(e+3)],a[h++]=r>>16&255,a[h++]=r>>8&255,a[h++]=255&r;return 2===u&&(r=n[t.charCodeAt(e)]<<2|n[t.charCodeAt(e+1)]>>4,a[h++]=255&r),1===u&&(r=n[t.charCodeAt(e)]<<10|n[t.charCodeAt(e+1)]<<4|n[t.charCodeAt(e+2)]>>2,a[h++]=r>>8&255,a[h++]=255&r),a},r.fromByteArray=function(t){for(var r,n=t.length,o=n%3,i=[],f=0,u=n-o;f<u;f+=16383)i.push(function(t,r,n){for(var o,i=[],f=r;f<n;f+=3)o=(t[f]<<16&0xff0000)+(t[f+1]<<8&65280)+(255&t[f+2]),i.push(e[o>>18&63]+e[o>>12&63]+e[o>>6&63]+e[63&o]);return i.join("")}(t,f,f+16383>u?u:f+16383));return 1===o?i.push(e[(r=t[n-1])>>2]+e[r<<4&63]+"=="):2===o&&i.push(e[(r=(t[n-2]<<8)+t[n-1])>>10]+e[r>>4&63]+e[r<<2&63]+"="),i.join("")};for(var e=[],n=[],o="u">typeof Uint8Array?Uint8Array:Array,i="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",f=0,u=i.length;f<u;++f)e[f]=i[f],n[i.charCodeAt(f)]=f;function s(t){var r=t.length;if(r%4>0)throw Error("Invalid string. Length must be a multiple of 4");var e=t.indexOf("=");-1===e&&(e=r);var n=e===r?0:4-e%4;return[e,n]}n[45]=62,n[95]=63},72:function(t,r,e){"use strict";var n=e(675),o=e(783),i="function"==typeof Symbol&&"function"==typeof Symbol.for?Symbol.for("nodejs.util.inspect.custom"):null;function f(t){if(t>0x7fffffff)throw RangeError('The value "'+t+'" is invalid for option "size"');var r=new Uint8Array(t);return Object.setPrototypeOf(r,u.prototype),r}function u(t,r,e){if("number"==typeof t){if("string"==typeof r)throw TypeError('The "string" argument must be of type string. Received type number');return h(t)}return s(t,r,e)}function s(t,r,e){if("string"==typeof t){var n=t,o=r;if(("string"!=typeof o||""===o)&&(o="utf8"),!u.isEncoding(o))throw TypeError("Unknown encoding: "+o);var i=0|p(n,o),s=f(i),a=s.write(n,o);return a!==i&&(s=s.slice(0,a)),s}if(ArrayBuffer.isView(t))return c(t);if(null==t)throw TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof t);if(L(t,ArrayBuffer)||t&&L(t.buffer,ArrayBuffer)||"u">typeof SharedArrayBuffer&&(L(t,SharedArrayBuffer)||t&&L(t.buffer,SharedArrayBuffer)))return function(t,r,e){var n;if(r<0||t.byteLength<r)throw RangeError('"offset" is outside of buffer bounds');if(t.byteLength<r+(e||0))throw RangeError('"length" is outside of buffer bounds');return Object.setPrototypeOf(n=void 0===r&&void 0===e?new Uint8Array(t):void 0===e?new Uint8Array(t,r):new Uint8Array(t,r,e),u.prototype),n}(t,r,e);if("number"==typeof t)throw TypeError('The "value" argument must not be of type number. Received type number');var h=t.valueOf&&t.valueOf();if(null!=h&&h!==t)return u.from(h,r,e);var y=function(t){if(u.isBuffer(t)){var r=0|l(t.length),e=f(r);return 0===e.length||t.copy(e,0,0,r),e}return void 0!==t.length?"number"!=typeof t.length||function(t){return t!=t}(t.length)?f(0):c(t):"Buffer"===t.type&&Array.isArray(t.data)?c(t.data):void 0}(t);if(y)return y;if("u">typeof Symbol&&null!=Symbol.toPrimitive&&"function"==typeof t[Symbol.toPrimitive])return u.from(t[Symbol.toPrimitive]("string"),r,e);throw TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof t)}function a(t){if("number"!=typeof t)throw TypeError('"size" argument must be of type number');if(t<0)throw RangeError('The value "'+t+'" is invalid for option "size"')}function h(t){return a(t),f(t<0?0:0|l(t))}function c(t){for(var r=t.length<0?0:0|l(t.length),e=f(r),n=0;n<r;n+=1)e[n]=255&t[n];return e}r.Buffer=u,r.SlowBuffer=function(t){return+t!=t&&(t=0),u.alloc(+t)},r.INSPECT_MAX_BYTES=50,r.kMaxLength=0x7fffffff,u.TYPED_ARRAY_SUPPORT=function(){try{var t=new Uint8Array(1),r={foo:function(){return 42}};return Object.setPrototypeOf(r,Uint8Array.prototype),Object.setPrototypeOf(t,r),42===t.foo()}catch(t){return!1}}(),!u.TYPED_ARRAY_SUPPORT&&"u">typeof console&&"function"==typeof console.error&&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."),Object.defineProperty(u.prototype,"parent",{enumerable:!0,get:function(){if(u.isBuffer(this))return this.buffer}}),Object.defineProperty(u.prototype,"offset",{enumerable:!0,get:function(){if(u.isBuffer(this))return this.byteOffset}}),u.poolSize=8192,u.from=function(t,r,e){return s(t,r,e)},Object.setPrototypeOf(u.prototype,Uint8Array.prototype),Object.setPrototypeOf(u,Uint8Array),u.alloc=function(t,r,e){return(a(t),t<=0)?f(t):void 0!==r?"string"==typeof e?f(t).fill(r,e):f(t).fill(r):f(t)},u.allocUnsafe=function(t){return h(t)},u.allocUnsafeSlow=function(t){return h(t)};function l(t){if(t>=0x7fffffff)throw RangeError("Attempt to allocate Buffer larger than maximum size: 0x7fffffff bytes");return 0|t}function p(t,r){if(u.isBuffer(t))return t.length;if(ArrayBuffer.isView(t)||L(t,ArrayBuffer))return t.byteLength;if("string"!=typeof t)throw TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof t);var e=t.length,n=arguments.length>2&&!0===arguments[2];if(!n&&0===e)return 0;for(var o=!1;;)switch(r){case"ascii":case"latin1":case"binary":return e;case"utf8":case"utf-8":return x(t).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*e;case"hex":return e>>>1;case"base64":return I(t).length;default:if(o)return n?-1:x(t).length;r=(""+r).toLowerCase(),o=!0}}function y(t,r,e){var o,i,f,u=!1;if((void 0===r||r<0)&&(r=0),r>this.length||((void 0===e||e>this.length)&&(e=this.length),e<=0||(e>>>=0)<=(r>>>=0)))return"";for(t||(t="utf8");;)switch(t){case"hex":return function(t,r,e){var n=t.length;(!r||r<0)&&(r=0),(!e||e<0||e>n)&&(e=n);for(var o="",i=r;i<e;++i)o+=S[t[i]];return o}(this,r,e);case"utf8":case"utf-8":return b(this,r,e);case"ascii":return function(t,r,e){var n="";e=Math.min(t.length,e);for(var o=r;o<e;++o)n+=String.fromCharCode(127&t[o]);return n}(this,r,e);case"latin1":case"binary":return function(t,r,e){var n="";e=Math.min(t.length,e);for(var o=r;o<e;++o)n+=String.fromCharCode(t[o]);return n}(this,r,e);case"base64":return o=this,i=r,f=e,0===i&&f===o.length?n.fromByteArray(o):n.fromByteArray(o.slice(i,f));case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return function(t,r,e){for(var n=t.slice(r,e),o="",i=0;i<n.length;i+=2)o+=String.fromCharCode(n[i]+256*n[i+1]);return o}(this,r,e);default:if(u)throw TypeError("Unknown encoding: "+t);t=(t+"").toLowerCase(),u=!0}}function g(t,r,e){var n=t[r];t[r]=t[e],t[e]=n}function d(t,r,e,n,o){var i;if(0===t.length)return -1;if("string"==typeof e?(n=e,e=0):e>0x7fffffff?e=0x7fffffff:e<-0x80000000&&(e=-0x80000000),(i=e*=1)!=i&&(e=o?0:t.length-1),e<0&&(e=t.length+e),e>=t.length)if(o)return -1;else e=t.length-1;else if(e<0)if(!o)return -1;else e=0;if("string"==typeof r&&(r=u.from(r,n)),u.isBuffer(r))return 0===r.length?-1:v(t,r,e,n,o);if("number"==typeof r){if(r&=255,"function"==typeof Uint8Array.prototype.indexOf)if(o)return Uint8Array.prototype.indexOf.call(t,r,e);else return Uint8Array.prototype.lastIndexOf.call(t,r,e);return v(t,[r],e,n,o)}throw TypeError("val must be string, number or Buffer")}function v(t,r,e,n,o){var i,f=1,u=t.length,s=r.length;if(void 0!==n&&("ucs2"===(n=String(n).toLowerCase())||"ucs-2"===n||"utf16le"===n||"utf-16le"===n)){if(t.length<2||r.length<2)return -1;f=2,u/=2,s/=2,e/=2}function a(t,r){return 1===f?t[r]:t.readUInt16BE(r*f)}if(o){var h=-1;for(i=e;i<u;i++)if(a(t,i)===a(r,-1===h?0:i-h)){if(-1===h&&(h=i),i-h+1===s)return h*f}else -1!==h&&(i-=i-h),h=-1}else for(e+s>u&&(e=u-s),i=e;i>=0;i--){for(var c=!0,l=0;l<s;l++)if(a(t,i+l)!==a(r,l)){c=!1;break}if(c)return i}return -1}u.isBuffer=function(t){return null!=t&&!0===t._isBuffer&&t!==u.prototype},u.compare=function(t,r){if(L(t,Uint8Array)&&(t=u.from(t,t.offset,t.byteLength)),L(r,Uint8Array)&&(r=u.from(r,r.offset,r.byteLength)),!u.isBuffer(t)||!u.isBuffer(r))throw TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(t===r)return 0;for(var e=t.length,n=r.length,o=0,i=Math.min(e,n);o<i;++o)if(t[o]!==r[o]){e=t[o],n=r[o];break}return e<n?-1:+(n<e)},u.isEncoding=function(t){switch(String(t).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}},u.concat=function(t,r){if(!Array.isArray(t))throw TypeError('"list" argument must be an Array of Buffers');if(0===t.length)return u.alloc(0);if(void 0===r)for(e=0,r=0;e<t.length;++e)r+=t[e].length;var e,n=u.allocUnsafe(r),o=0;for(e=0;e<t.length;++e){var i=t[e];if(L(i,Uint8Array)&&(i=u.from(i)),!u.isBuffer(i))throw TypeError('"list" argument must be an Array of Buffers');i.copy(n,o),o+=i.length}return n},u.byteLength=p,u.prototype._isBuffer=!0,u.prototype.swap16=function(){var t=this.length;if(t%2!=0)throw RangeError("Buffer size must be a multiple of 16-bits");for(var r=0;r<t;r+=2)g(this,r,r+1);return this},u.prototype.swap32=function(){var t=this.length;if(t%4!=0)throw RangeError("Buffer size must be a multiple of 32-bits");for(var r=0;r<t;r+=4)g(this,r,r+3),g(this,r+1,r+2);return this},u.prototype.swap64=function(){var t=this.length;if(t%8!=0)throw RangeError("Buffer size must be a multiple of 64-bits");for(var r=0;r<t;r+=8)g(this,r,r+7),g(this,r+1,r+6),g(this,r+2,r+5),g(this,r+3,r+4);return this},u.prototype.toString=function(){var t=this.length;return 0===t?"":0==arguments.length?b(this,0,t):y.apply(this,arguments)},u.prototype.toLocaleString=u.prototype.toString,u.prototype.equals=function(t){if(!u.isBuffer(t))throw TypeError("Argument must be a Buffer");return this===t||0===u.compare(this,t)},u.prototype.inspect=function(){var t="",e=r.INSPECT_MAX_BYTES;return t=this.toString("hex",0,e).replace(/(.{2})/g,"$1 ").trim(),this.length>e&&(t+=" ... "),"<Buffer "+t+">"},i&&(u.prototype[i]=u.prototype.inspect),u.prototype.compare=function(t,r,e,n,o){if(L(t,Uint8Array)&&(t=u.from(t,t.offset,t.byteLength)),!u.isBuffer(t))throw TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof t);if(void 0===r&&(r=0),void 0===e&&(e=t?t.length:0),void 0===n&&(n=0),void 0===o&&(o=this.length),r<0||e>t.length||n<0||o>this.length)throw RangeError("out of range index");if(n>=o&&r>=e)return 0;if(n>=o)return -1;if(r>=e)return 1;if(r>>>=0,e>>>=0,n>>>=0,o>>>=0,this===t)return 0;for(var i=o-n,f=e-r,s=Math.min(i,f),a=this.slice(n,o),h=t.slice(r,e),c=0;c<s;++c)if(a[c]!==h[c]){i=a[c],f=h[c];break}return i<f?-1:+(f<i)},u.prototype.includes=function(t,r,e){return -1!==this.indexOf(t,r,e)},u.prototype.indexOf=function(t,r,e){return d(this,t,r,e,!0)},u.prototype.lastIndexOf=function(t,r,e){return d(this,t,r,e,!1)};function b(t,r,e){e=Math.min(t.length,e);for(var n=[],o=r;o<e;){var i,f,u,s,a=t[o],h=null,c=a>239?4:a>223?3:a>191?2:1;if(o+c<=e)switch(c){case 1:a<128&&(h=a);break;case 2:(192&(i=t[o+1]))==128&&(s=(31&a)<<6|63&i)>127&&(h=s);break;case 3:i=t[o+1],f=t[o+2],(192&i)==128&&(192&f)==128&&(s=(15&a)<<12|(63&i)<<6|63&f)>2047&&(s<55296||s>57343)&&(h=s);break;case 4:i=t[o+1],f=t[o+2],u=t[o+3],(192&i)==128&&(192&f)==128&&(192&u)==128&&(s=(15&a)<<18|(63&i)<<12|(63&f)<<6|63&u)>65535&&s<1114112&&(h=s)}null===h?(h=65533,c=1):h>65535&&(h-=65536,n.push(h>>>10&1023|55296),h=56320|1023&h),n.push(h),o+=c}var l=n,p=l.length;if(p<=4096)return String.fromCharCode.apply(String,l);for(var y="",g=0;g<p;)y+=String.fromCharCode.apply(String,l.slice(g,g+=4096));return y}function m(t,r,e){if(t%1!=0||t<0)throw RangeError("offset is not uint");if(t+r>e)throw RangeError("Trying to access beyond buffer length")}function w(t,r,e,n,o,i){if(!u.isBuffer(t))throw TypeError('"buffer" argument must be a Buffer instance');if(r>o||r<i)throw RangeError('"value" argument is out of bounds');if(e+n>t.length)throw RangeError("Index out of range")}function E(t,r,e,n,o,i){if(e+n>t.length||e<0)throw RangeError("Index out of range")}function A(t,r,e,n,i){return r*=1,e>>>=0,i||E(t,r,e,4,34028234663852886e22,-34028234663852886e22),o.write(t,r,e,n,23,4),e+4}function B(t,r,e,n,i){return r*=1,e>>>=0,i||E(t,r,e,8,17976931348623157e292,-17976931348623157e292),o.write(t,r,e,n,52,8),e+8}u.prototype.write=function(t,r,e,n){if(void 0===r)n="utf8",e=this.length,r=0;else if(void 0===e&&"string"==typeof r)n=r,e=this.length,r=0;else if(isFinite(r))r>>>=0,isFinite(e)?(e>>>=0,void 0===n&&(n="utf8")):(n=e,e=void 0);else throw Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");var o,i,f,u,s,a,h,c,l=this.length-r;if((void 0===e||e>l)&&(e=l),t.length>0&&(e<0||r<0)||r>this.length)throw RangeError("Attempt to write outside buffer bounds");n||(n="utf8");for(var p=!1;;)switch(n){case"hex":return function(t,r,e,n){e=Number(e)||0;var o=t.length-e;n?(n=Number(n))>o&&(n=o):n=o;var i=r.length;n>i/2&&(n=i/2);for(var f=0;f<n;++f){var u,s=parseInt(r.substr(2*f,2),16);if((u=s)!=u)break;t[e+f]=s}return f}(this,t,r,e);case"utf8":case"utf-8":return o=r,i=e,O(x(t,this.length-o),this,o,i);case"ascii":return f=r,u=e,O(U(t),this,f,u);case"latin1":case"binary":return function(t,r,e,n){return O(U(r),t,e,n)}(this,t,r,e);case"base64":return s=r,a=e,O(I(t),this,s,a);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return h=r,c=e,O(function(t,r){for(var e,n,o=[],i=0;i<t.length&&!((r-=2)<0);++i)n=(e=t.charCodeAt(i))>>8,o.push(e%256),o.push(n);return o}(t,this.length-h),this,h,c);default:if(p)throw TypeError("Unknown encoding: "+n);n=(""+n).toLowerCase(),p=!0}},u.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}},u.prototype.slice=function(t,r){var e=this.length;t=~~t,r=void 0===r?e:~~r,t<0?(t+=e)<0&&(t=0):t>e&&(t=e),r<0?(r+=e)<0&&(r=0):r>e&&(r=e),r<t&&(r=t);var n=this.subarray(t,r);return Object.setPrototypeOf(n,u.prototype),n},u.prototype.readUIntLE=function(t,r,e){t>>>=0,r>>>=0,e||m(t,r,this.length);for(var n=this[t],o=1,i=0;++i<r&&(o*=256);)n+=this[t+i]*o;return n},u.prototype.readUIntBE=function(t,r,e){t>>>=0,r>>>=0,e||m(t,r,this.length);for(var n=this[t+--r],o=1;r>0&&(o*=256);)n+=this[t+--r]*o;return n},u.prototype.readUInt8=function(t,r){return t>>>=0,r||m(t,1,this.length),this[t]},u.prototype.readUInt16LE=function(t,r){return t>>>=0,r||m(t,2,this.length),this[t]|this[t+1]<<8},u.prototype.readUInt16BE=function(t,r){return t>>>=0,r||m(t,2,this.length),this[t]<<8|this[t+1]},u.prototype.readUInt32LE=function(t,r){return t>>>=0,r||m(t,4,this.length),(this[t]|this[t+1]<<8|this[t+2]<<16)+0x1000000*this[t+3]},u.prototype.readUInt32BE=function(t,r){return t>>>=0,r||m(t,4,this.length),0x1000000*this[t]+(this[t+1]<<16|this[t+2]<<8|this[t+3])},u.prototype.readIntLE=function(t,r,e){t>>>=0,r>>>=0,e||m(t,r,this.length);for(var n=this[t],o=1,i=0;++i<r&&(o*=256);)n+=this[t+i]*o;return n>=(o*=128)&&(n-=Math.pow(2,8*r)),n},u.prototype.readIntBE=function(t,r,e){t>>>=0,r>>>=0,e||m(t,r,this.length);for(var n=r,o=1,i=this[t+--n];n>0&&(o*=256);)i+=this[t+--n]*o;return i>=(o*=128)&&(i-=Math.pow(2,8*r)),i},u.prototype.readInt8=function(t,r){return(t>>>=0,r||m(t,1,this.length),128&this[t])?-((255-this[t]+1)*1):this[t]},u.prototype.readInt16LE=function(t,r){t>>>=0,r||m(t,2,this.length);var e=this[t]|this[t+1]<<8;return 32768&e?0xffff0000|e:e},u.prototype.readInt16BE=function(t,r){t>>>=0,r||m(t,2,this.length);var e=this[t+1]|this[t]<<8;return 32768&e?0xffff0000|e:e},u.prototype.readInt32LE=function(t,r){return t>>>=0,r||m(t,4,this.length),this[t]|this[t+1]<<8|this[t+2]<<16|this[t+3]<<24},u.prototype.readInt32BE=function(t,r){return t>>>=0,r||m(t,4,this.length),this[t]<<24|this[t+1]<<16|this[t+2]<<8|this[t+3]},u.prototype.readFloatLE=function(t,r){return t>>>=0,r||m(t,4,this.length),o.read(this,t,!0,23,4)},u.prototype.readFloatBE=function(t,r){return t>>>=0,r||m(t,4,this.length),o.read(this,t,!1,23,4)},u.prototype.readDoubleLE=function(t,r){return t>>>=0,r||m(t,8,this.length),o.read(this,t,!0,52,8)},u.prototype.readDoubleBE=function(t,r){return t>>>=0,r||m(t,8,this.length),o.read(this,t,!1,52,8)},u.prototype.writeUIntLE=function(t,r,e,n){if(t*=1,r>>>=0,e>>>=0,!n){var o=Math.pow(2,8*e)-1;w(this,t,r,e,o,0)}var i=1,f=0;for(this[r]=255&t;++f<e&&(i*=256);)this[r+f]=t/i&255;return r+e},u.prototype.writeUIntBE=function(t,r,e,n){if(t*=1,r>>>=0,e>>>=0,!n){var o=Math.pow(2,8*e)-1;w(this,t,r,e,o,0)}var i=e-1,f=1;for(this[r+i]=255&t;--i>=0&&(f*=256);)this[r+i]=t/f&255;return r+e},u.prototype.writeUInt8=function(t,r,e){return t*=1,r>>>=0,e||w(this,t,r,1,255,0),this[r]=255&t,r+1},u.prototype.writeUInt16LE=function(t,r,e){return t*=1,r>>>=0,e||w(this,t,r,2,65535,0),this[r]=255&t,this[r+1]=t>>>8,r+2},u.prototype.writeUInt16BE=function(t,r,e){return t*=1,r>>>=0,e||w(this,t,r,2,65535,0),this[r]=t>>>8,this[r+1]=255&t,r+2},u.prototype.writeUInt32LE=function(t,r,e){return t*=1,r>>>=0,e||w(this,t,r,4,0xffffffff,0),this[r+3]=t>>>24,this[r+2]=t>>>16,this[r+1]=t>>>8,this[r]=255&t,r+4},u.prototype.writeUInt32BE=function(t,r,e){return t*=1,r>>>=0,e||w(this,t,r,4,0xffffffff,0),this[r]=t>>>24,this[r+1]=t>>>16,this[r+2]=t>>>8,this[r+3]=255&t,r+4},u.prototype.writeIntLE=function(t,r,e,n){if(t*=1,r>>>=0,!n){var o=Math.pow(2,8*e-1);w(this,t,r,e,o-1,-o)}var i=0,f=1,u=0;for(this[r]=255&t;++i<e&&(f*=256);)t<0&&0===u&&0!==this[r+i-1]&&(u=1),this[r+i]=(t/f|0)-u&255;return r+e},u.prototype.writeIntBE=function(t,r,e,n){if(t*=1,r>>>=0,!n){var o=Math.pow(2,8*e-1);w(this,t,r,e,o-1,-o)}var i=e-1,f=1,u=0;for(this[r+i]=255&t;--i>=0&&(f*=256);)t<0&&0===u&&0!==this[r+i+1]&&(u=1),this[r+i]=(t/f|0)-u&255;return r+e},u.prototype.writeInt8=function(t,r,e){return t*=1,r>>>=0,e||w(this,t,r,1,127,-128),t<0&&(t=255+t+1),this[r]=255&t,r+1},u.prototype.writeInt16LE=function(t,r,e){return t*=1,r>>>=0,e||w(this,t,r,2,32767,-32768),this[r]=255&t,this[r+1]=t>>>8,r+2},u.prototype.writeInt16BE=function(t,r,e){return t*=1,r>>>=0,e||w(this,t,r,2,32767,-32768),this[r]=t>>>8,this[r+1]=255&t,r+2},u.prototype.writeInt32LE=function(t,r,e){return t*=1,r>>>=0,e||w(this,t,r,4,0x7fffffff,-0x80000000),this[r]=255&t,this[r+1]=t>>>8,this[r+2]=t>>>16,this[r+3]=t>>>24,r+4},u.prototype.writeInt32BE=function(t,r,e){return t*=1,r>>>=0,e||w(this,t,r,4,0x7fffffff,-0x80000000),t<0&&(t=0xffffffff+t+1),this[r]=t>>>24,this[r+1]=t>>>16,this[r+2]=t>>>8,this[r+3]=255&t,r+4},u.prototype.writeFloatLE=function(t,r,e){return A(this,t,r,!0,e)},u.prototype.writeFloatBE=function(t,r,e){return A(this,t,r,!1,e)},u.prototype.writeDoubleLE=function(t,r,e){return B(this,t,r,!0,e)},u.prototype.writeDoubleBE=function(t,r,e){return B(this,t,r,!1,e)},u.prototype.copy=function(t,r,e,n){if(!u.isBuffer(t))throw TypeError("argument should be a Buffer");if(e||(e=0),n||0===n||(n=this.length),r>=t.length&&(r=t.length),r||(r=0),n>0&&n<e&&(n=e),n===e||0===t.length||0===this.length)return 0;if(r<0)throw RangeError("targetStart out of bounds");if(e<0||e>=this.length)throw RangeError("Index out of range");if(n<0)throw RangeError("sourceEnd out of bounds");n>this.length&&(n=this.length),t.length-r<n-e&&(n=t.length-r+e);var o=n-e;if(this===t&&"function"==typeof Uint8Array.prototype.copyWithin)this.copyWithin(r,e,n);else if(this===t&&e<r&&r<n)for(var i=o-1;i>=0;--i)t[i+r]=this[i+e];else Uint8Array.prototype.set.call(t,this.subarray(e,n),r);return o},u.prototype.fill=function(t,r,e,n){if("string"==typeof t){if("string"==typeof r?(n=r,r=0,e=this.length):"string"==typeof e&&(n=e,e=this.length),void 0!==n&&"string"!=typeof n)throw TypeError("encoding must be a string");if("string"==typeof n&&!u.isEncoding(n))throw TypeError("Unknown encoding: "+n);if(1===t.length){var o,i=t.charCodeAt(0);("utf8"===n&&i<128||"latin1"===n)&&(t=i)}}else"number"==typeof t?t&=255:"boolean"==typeof t&&(t=Number(t));if(r<0||this.length<r||this.length<e)throw RangeError("Out of range index");if(e<=r)return this;if(r>>>=0,e=void 0===e?this.length:e>>>0,t||(t=0),"number"==typeof t)for(o=r;o<e;++o)this[o]=t;else{var f=u.isBuffer(t)?t:u.from(t,n),s=f.length;if(0===s)throw TypeError('The value "'+t+'" is invalid for argument "value"');for(o=0;o<e-r;++o)this[o+r]=f[o%s]}return this};var T=/[^+/0-9A-Za-z-_]/g;function x(t,r){r=r||1/0;for(var e,n=t.length,o=null,i=[],f=0;f<n;++f){if((e=t.charCodeAt(f))>55295&&e<57344){if(!o){if(e>56319||f+1===n){(r-=3)>-1&&i.push(239,191,189);continue}o=e;continue}if(e<56320){(r-=3)>-1&&i.push(239,191,189),o=e;continue}e=(o-55296<<10|e-56320)+65536}else o&&(r-=3)>-1&&i.push(239,191,189);if(o=null,e<128){if((r-=1)<0)break;i.push(e)}else if(e<2048){if((r-=2)<0)break;i.push(e>>6|192,63&e|128)}else if(e<65536){if((r-=3)<0)break;i.push(e>>12|224,e>>6&63|128,63&e|128)}else if(e<1114112){if((r-=4)<0)break;i.push(e>>18|240,e>>12&63|128,e>>6&63|128,63&e|128)}else throw Error("Invalid code point")}return i}function U(t){for(var r=[],e=0;e<t.length;++e)r.push(255&t.charCodeAt(e));return r}function I(t){return n.toByteArray(function(t){if((t=(t=t.split("=")[0]).trim().replace(T,"")).length<2)return"";for(;t.length%4!=0;)t+="=";return t}(t))}function O(t,r,e,n){for(var o=0;o<n&&!(o+e>=r.length)&&!(o>=t.length);++o)r[o+e]=t[o];return o}function L(t,r){return t instanceof r||null!=t&&null!=t.constructor&&null!=t.constructor.name&&t.constructor.name===r.name}var S=function(){for(var t="0123456789abcdef",r=Array(256),e=0;e<16;++e)for(var n=16*e,o=0;o<16;++o)r[n+o]=t[e]+t[o];return r}()},783:function(t,r){r.read=function(t,r,e,n,o){var i,f,u=8*o-n-1,s=(1<<u)-1,a=s>>1,h=-7,c=e?o-1:0,l=e?-1:1,p=t[r+c];for(c+=l,i=p&(1<<-h)-1,p>>=-h,h+=u;h>0;i=256*i+t[r+c],c+=l,h-=8);for(f=i&(1<<-h)-1,i>>=-h,h+=n;h>0;f=256*f+t[r+c],c+=l,h-=8);if(0===i)i=1-a;else{if(i===s)return f?NaN:1/0*(p?-1:1);f+=Math.pow(2,n),i-=a}return(p?-1:1)*f*Math.pow(2,i-n)},r.write=function(t,r,e,n,o,i){var f,u,s,a=8*i-o-1,h=(1<<a)-1,c=h>>1,l=5960464477539062e-23*(23===o),p=n?0:i-1,y=n?1:-1,g=+(r<0||0===r&&1/r<0);for(isNaN(r=Math.abs(r))||r===1/0?(u=+!!isNaN(r),f=h):(f=Math.floor(Math.log(r)/Math.LN2),r*(s=Math.pow(2,-f))<1&&(f--,s*=2),f+c>=1?r+=l/s:r+=l*Math.pow(2,1-c),r*s>=2&&(f++,s/=2),f+c>=h?(u=0,f=h):f+c>=1?(u=(r*s-1)*Math.pow(2,o),f+=c):(u=r*Math.pow(2,c-1)*Math.pow(2,o),f=0));o>=8;t[e+p]=255&u,p+=y,u/=256,o-=8);for(f=f<<o|u,a+=o;a>0;t[e+p]=255&f,p+=y,f/=256,a-=8);t[e+p-y]|=128*g}}},o={};function i(t){var r=o[t];if(void 0!==r)return r.exports;var e=o[t]={exports:{}},f=!0;try{n[t](e,e.exports,i),f=!1}finally{f&&delete o[t]}return e.exports}i.ab="/ROOT/node_modules/.pnpm/next@16.2.4_@babel+core@7.29.0_react-dom@19.2.4_react@19.2.4__react@19.2.4/node_modules/next/dist/compiled/buffer/",r.exports=i(72)},834748,t=>{"use strict";var r=t.i(384004);let e=!1;var n=t.i(444525),o=t.i(227285);t.s(["initialize",0,function(t){self.onmessage=i=>{let f,u;u=function(t){if(e)throw Error("WebWorker already initialized!");e=!0;let n=new r.WebWorkerServer(t=>globalThis.postMessage(t),r=>t(r));return globalThis.onmessage=t=>{n.onmessage(t.data)},n}(r=>{let e=o.EditorWorkerHost.getChannel(r);return f=(r=>t(r,i.data))({host:new Proxy({},{get(t,r,n){if("then"!==r){if("string"!=typeof r)throw Error("Not supported");return(...t)=>e.$fhr(r,t)}}}),getMirrorModels:()=>u.requestHandler.getModels()}),new n.EditorWorker(f)})}}],834748)}]);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,553030,(t,e,i)=>{var r={675:function(t,e){"use strict";e.byteLength=function(t){var e=l(t),i=e[0],r=e[1];return(i+r)*3/4-r},e.toByteArray=function(t){var e,i,s=l(t),o=s[0],a=s[1],u=new n((o+a)*3/4-a),h=0,c=a>0?o-4:o;for(i=0;i<c;i+=4)e=r[t.charCodeAt(i)]<<18|r[t.charCodeAt(i+1)]<<12|r[t.charCodeAt(i+2)]<<6|r[t.charCodeAt(i+3)],u[h++]=e>>16&255,u[h++]=e>>8&255,u[h++]=255&e;return 2===a&&(e=r[t.charCodeAt(i)]<<2|r[t.charCodeAt(i+1)]>>4,u[h++]=255&e),1===a&&(e=r[t.charCodeAt(i)]<<10|r[t.charCodeAt(i+1)]<<4|r[t.charCodeAt(i+2)]>>2,u[h++]=e>>8&255,u[h++]=255&e),u},e.fromByteArray=function(t){for(var e,r=t.length,n=r%3,s=[],o=0,a=r-n;o<a;o+=16383)s.push(function(t,e,r){for(var n,s=[],o=e;o<r;o+=3)n=(t[o]<<16&0xff0000)+(t[o+1]<<8&65280)+(255&t[o+2]),s.push(i[n>>18&63]+i[n>>12&63]+i[n>>6&63]+i[63&n]);return s.join("")}(t,o,o+16383>a?a:o+16383));return 1===n?s.push(i[(e=t[r-1])>>2]+i[e<<4&63]+"=="):2===n&&s.push(i[(e=(t[r-2]<<8)+t[r-1])>>10]+i[e>>4&63]+i[e<<2&63]+"="),s.join("")};for(var i=[],r=[],n="u">typeof Uint8Array?Uint8Array:Array,s="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",o=0,a=s.length;o<a;++o)i[o]=s[o],r[s.charCodeAt(o)]=o;function l(t){var e=t.length;if(e%4>0)throw Error("Invalid string. Length must be a multiple of 4");var i=t.indexOf("=");-1===i&&(i=e);var r=i===e?0:4-i%4;return[i,r]}r[45]=62,r[95]=63},72:function(t,e,i){"use strict";var r=i(675),n=i(783),s="function"==typeof Symbol&&"function"==typeof Symbol.for?Symbol.for("nodejs.util.inspect.custom"):null;function o(t){if(t>0x7fffffff)throw RangeError('The value "'+t+'" is invalid for option "size"');var e=new Uint8Array(t);return Object.setPrototypeOf(e,a.prototype),e}function a(t,e,i){if("number"==typeof t){if("string"==typeof e)throw TypeError('The "string" argument must be of type string. Received type number');return h(t)}return l(t,e,i)}function l(t,e,i){if("string"==typeof t){var r=t,n=e;if(("string"!=typeof n||""===n)&&(n="utf8"),!a.isEncoding(n))throw TypeError("Unknown encoding: "+n);var s=0|p(r,n),l=o(s),u=l.write(r,n);return u!==s&&(l=l.slice(0,u)),l}if(ArrayBuffer.isView(t))return c(t);if(null==t)throw TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof t);if(O(t,ArrayBuffer)||t&&O(t.buffer,ArrayBuffer)||"u">typeof SharedArrayBuffer&&(O(t,SharedArrayBuffer)||t&&O(t.buffer,SharedArrayBuffer)))return function(t,e,i){var r;if(e<0||t.byteLength<e)throw RangeError('"offset" is outside of buffer bounds');if(t.byteLength<e+(i||0))throw RangeError('"length" is outside of buffer bounds');return Object.setPrototypeOf(r=void 0===e&&void 0===i?new Uint8Array(t):void 0===i?new Uint8Array(t,e):new Uint8Array(t,e,i),a.prototype),r}(t,e,i);if("number"==typeof t)throw TypeError('The "value" argument must not be of type number. Received type number');var h=t.valueOf&&t.valueOf();if(null!=h&&h!==t)return a.from(h,e,i);var d=function(t){if(a.isBuffer(t)){var e=0|f(t.length),i=o(e);return 0===i.length||t.copy(i,0,0,e),i}return void 0!==t.length?"number"!=typeof t.length||function(t){return t!=t}(t.length)?o(0):c(t):"Buffer"===t.type&&Array.isArray(t.data)?c(t.data):void 0}(t);if(d)return d;if("u">typeof Symbol&&null!=Symbol.toPrimitive&&"function"==typeof t[Symbol.toPrimitive])return a.from(t[Symbol.toPrimitive]("string"),e,i);throw TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof t)}function u(t){if("number"!=typeof t)throw TypeError('"size" argument must be of type number');if(t<0)throw RangeError('The value "'+t+'" is invalid for option "size"')}function h(t){return u(t),o(t<0?0:0|f(t))}function c(t){for(var e=t.length<0?0:0|f(t.length),i=o(e),r=0;r<e;r+=1)i[r]=255&t[r];return i}e.Buffer=a,e.SlowBuffer=function(t){return+t!=t&&(t=0),a.alloc(+t)},e.INSPECT_MAX_BYTES=50,e.kMaxLength=0x7fffffff,a.TYPED_ARRAY_SUPPORT=function(){try{var t=new Uint8Array(1),e={foo:function(){return 42}};return Object.setPrototypeOf(e,Uint8Array.prototype),Object.setPrototypeOf(t,e),42===t.foo()}catch(t){return!1}}(),!a.TYPED_ARRAY_SUPPORT&&"u">typeof console&&"function"==typeof console.error&&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."),Object.defineProperty(a.prototype,"parent",{enumerable:!0,get:function(){if(a.isBuffer(this))return this.buffer}}),Object.defineProperty(a.prototype,"offset",{enumerable:!0,get:function(){if(a.isBuffer(this))return this.byteOffset}}),a.poolSize=8192,a.from=function(t,e,i){return l(t,e,i)},Object.setPrototypeOf(a.prototype,Uint8Array.prototype),Object.setPrototypeOf(a,Uint8Array),a.alloc=function(t,e,i){return(u(t),t<=0)?o(t):void 0!==e?"string"==typeof i?o(t).fill(e,i):o(t).fill(e):o(t)},a.allocUnsafe=function(t){return h(t)},a.allocUnsafeSlow=function(t){return h(t)};function f(t){if(t>=0x7fffffff)throw RangeError("Attempt to allocate Buffer larger than maximum size: 0x7fffffff bytes");return 0|t}function p(t,e){if(a.isBuffer(t))return t.length;if(ArrayBuffer.isView(t)||O(t,ArrayBuffer))return t.byteLength;if("string"!=typeof t)throw TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof t);var i=t.length,r=arguments.length>2&&!0===arguments[2];if(!r&&0===i)return 0;for(var n=!1;;)switch(e){case"ascii":case"latin1":case"binary":return i;case"utf8":case"utf-8":return x(t).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*i;case"hex":return i>>>1;case"base64":return P(t).length;default:if(n)return r?-1:x(t).length;e=(""+e).toLowerCase(),n=!0}}function d(t,e,i){var n,s,o,a=!1;if((void 0===e||e<0)&&(e=0),e>this.length||((void 0===i||i>this.length)&&(i=this.length),i<=0||(i>>>=0)<=(e>>>=0)))return"";for(t||(t="utf8");;)switch(t){case"hex":return function(t,e,i){var r=t.length;(!e||e<0)&&(e=0),(!i||i<0||i>r)&&(i=r);for(var n="",s=e;s<i;++s)n+=A[t[s]];return n}(this,e,i);case"utf8":case"utf-8":return y(this,e,i);case"ascii":return function(t,e,i){var r="";i=Math.min(t.length,i);for(var n=e;n<i;++n)r+=String.fromCharCode(127&t[n]);return r}(this,e,i);case"latin1":case"binary":return function(t,e,i){var r="";i=Math.min(t.length,i);for(var n=e;n<i;++n)r+=String.fromCharCode(t[n]);return r}(this,e,i);case"base64":return n=this,s=e,o=i,0===s&&o===n.length?r.fromByteArray(n):r.fromByteArray(n.slice(s,o));case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return function(t,e,i){for(var r=t.slice(e,i),n="",s=0;s<r.length;s+=2)n+=String.fromCharCode(r[s]+256*r[s+1]);return n}(this,e,i);default:if(a)throw TypeError("Unknown encoding: "+t);t=(t+"").toLowerCase(),a=!0}}function g(t,e,i){var r=t[e];t[e]=t[i],t[i]=r}function m(t,e,i,r,n){var s;if(0===t.length)return -1;if("string"==typeof i?(r=i,i=0):i>0x7fffffff?i=0x7fffffff:i<-0x80000000&&(i=-0x80000000),(s=i*=1)!=s&&(i=n?0:t.length-1),i<0&&(i=t.length+i),i>=t.length)if(n)return -1;else i=t.length-1;else if(i<0)if(!n)return -1;else i=0;if("string"==typeof e&&(e=a.from(e,r)),a.isBuffer(e))return 0===e.length?-1:v(t,e,i,r,n);if("number"==typeof e){if(e&=255,"function"==typeof Uint8Array.prototype.indexOf)if(n)return Uint8Array.prototype.indexOf.call(t,e,i);else return Uint8Array.prototype.lastIndexOf.call(t,e,i);return v(t,[e],i,r,n)}throw TypeError("val must be string, number or Buffer")}function v(t,e,i,r,n){var s,o=1,a=t.length,l=e.length;if(void 0!==r&&("ucs2"===(r=String(r).toLowerCase())||"ucs-2"===r||"utf16le"===r||"utf-16le"===r)){if(t.length<2||e.length<2)return -1;o=2,a/=2,l/=2,i/=2}function u(t,e){return 1===o?t[e]:t.readUInt16BE(e*o)}if(n){var h=-1;for(s=i;s<a;s++)if(u(t,s)===u(e,-1===h?0:s-h)){if(-1===h&&(h=s),s-h+1===l)return h*o}else -1!==h&&(s-=s-h),h=-1}else for(i+l>a&&(i=a-l),s=i;s>=0;s--){for(var c=!0,f=0;f<l;f++)if(u(t,s+f)!==u(e,f)){c=!1;break}if(c)return s}return -1}a.isBuffer=function(t){return null!=t&&!0===t._isBuffer&&t!==a.prototype},a.compare=function(t,e){if(O(t,Uint8Array)&&(t=a.from(t,t.offset,t.byteLength)),O(e,Uint8Array)&&(e=a.from(e,e.offset,e.byteLength)),!a.isBuffer(t)||!a.isBuffer(e))throw TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(t===e)return 0;for(var i=t.length,r=e.length,n=0,s=Math.min(i,r);n<s;++n)if(t[n]!==e[n]){i=t[n],r=e[n];break}return i<r?-1:+(r<i)},a.isEncoding=function(t){switch(String(t).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}},a.concat=function(t,e){if(!Array.isArray(t))throw TypeError('"list" argument must be an Array of Buffers');if(0===t.length)return a.alloc(0);if(void 0===e)for(i=0,e=0;i<t.length;++i)e+=t[i].length;var i,r=a.allocUnsafe(e),n=0;for(i=0;i<t.length;++i){var s=t[i];if(O(s,Uint8Array)&&(s=a.from(s)),!a.isBuffer(s))throw TypeError('"list" argument must be an Array of Buffers');s.copy(r,n),n+=s.length}return r},a.byteLength=p,a.prototype._isBuffer=!0,a.prototype.swap16=function(){var t=this.length;if(t%2!=0)throw RangeError("Buffer size must be a multiple of 16-bits");for(var e=0;e<t;e+=2)g(this,e,e+1);return this},a.prototype.swap32=function(){var t=this.length;if(t%4!=0)throw RangeError("Buffer size must be a multiple of 32-bits");for(var e=0;e<t;e+=4)g(this,e,e+3),g(this,e+1,e+2);return this},a.prototype.swap64=function(){var t=this.length;if(t%8!=0)throw RangeError("Buffer size must be a multiple of 64-bits");for(var e=0;e<t;e+=8)g(this,e,e+7),g(this,e+1,e+6),g(this,e+2,e+5),g(this,e+3,e+4);return this},a.prototype.toString=function(){var t=this.length;return 0===t?"":0==arguments.length?y(this,0,t):d.apply(this,arguments)},a.prototype.toLocaleString=a.prototype.toString,a.prototype.equals=function(t){if(!a.isBuffer(t))throw TypeError("Argument must be a Buffer");return this===t||0===a.compare(this,t)},a.prototype.inspect=function(){var t="",i=e.INSPECT_MAX_BYTES;return t=this.toString("hex",0,i).replace(/(.{2})/g,"$1 ").trim(),this.length>i&&(t+=" ... "),"<Buffer "+t+">"},s&&(a.prototype[s]=a.prototype.inspect),a.prototype.compare=function(t,e,i,r,n){if(O(t,Uint8Array)&&(t=a.from(t,t.offset,t.byteLength)),!a.isBuffer(t))throw TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof t);if(void 0===e&&(e=0),void 0===i&&(i=t?t.length:0),void 0===r&&(r=0),void 0===n&&(n=this.length),e<0||i>t.length||r<0||n>this.length)throw RangeError("out of range index");if(r>=n&&e>=i)return 0;if(r>=n)return -1;if(e>=i)return 1;if(e>>>=0,i>>>=0,r>>>=0,n>>>=0,this===t)return 0;for(var s=n-r,o=i-e,l=Math.min(s,o),u=this.slice(r,n),h=t.slice(e,i),c=0;c<l;++c)if(u[c]!==h[c]){s=u[c],o=h[c];break}return s<o?-1:+(o<s)},a.prototype.includes=function(t,e,i){return -1!==this.indexOf(t,e,i)},a.prototype.indexOf=function(t,e,i){return m(this,t,e,i,!0)},a.prototype.lastIndexOf=function(t,e,i){return m(this,t,e,i,!1)};function y(t,e,i){i=Math.min(t.length,i);for(var r=[],n=e;n<i;){var s,o,a,l,u=t[n],h=null,c=u>239?4:u>223?3:u>191?2:1;if(n+c<=i)switch(c){case 1:u<128&&(h=u);break;case 2:(192&(s=t[n+1]))==128&&(l=(31&u)<<6|63&s)>127&&(h=l);break;case 3:s=t[n+1],o=t[n+2],(192&s)==128&&(192&o)==128&&(l=(15&u)<<12|(63&s)<<6|63&o)>2047&&(l<55296||l>57343)&&(h=l);break;case 4:s=t[n+1],o=t[n+2],a=t[n+3],(192&s)==128&&(192&o)==128&&(192&a)==128&&(l=(15&u)<<18|(63&s)<<12|(63&o)<<6|63&a)>65535&&l<1114112&&(h=l)}null===h?(h=65533,c=1):h>65535&&(h-=65536,r.push(h>>>10&1023|55296),h=56320|1023&h),r.push(h),n+=c}var f=r,p=f.length;if(p<=4096)return String.fromCharCode.apply(String,f);for(var d="",g=0;g<p;)d+=String.fromCharCode.apply(String,f.slice(g,g+=4096));return d}function k(t,e,i){if(t%1!=0||t<0)throw RangeError("offset is not uint");if(t+e>i)throw RangeError("Trying to access beyond buffer length")}function b(t,e,i,r,n,s){if(!a.isBuffer(t))throw TypeError('"buffer" argument must be a Buffer instance');if(e>n||e<s)throw RangeError('"value" argument is out of bounds');if(i+r>t.length)throw RangeError("Index out of range")}function w(t,e,i,r,n,s){if(i+r>t.length||i<0)throw RangeError("Index out of range")}function j(t,e,i,r,s){return e*=1,i>>>=0,s||w(t,e,i,4,34028234663852886e22,-34028234663852886e22),n.write(t,e,i,r,23,4),i+4}function E(t,e,i,r,s){return e*=1,i>>>=0,s||w(t,e,i,8,17976931348623157e292,-17976931348623157e292),n.write(t,e,i,r,52,8),i+8}a.prototype.write=function(t,e,i,r){if(void 0===e)r="utf8",i=this.length,e=0;else if(void 0===i&&"string"==typeof e)r=e,i=this.length,e=0;else if(isFinite(e))e>>>=0,isFinite(i)?(i>>>=0,void 0===r&&(r="utf8")):(r=i,i=void 0);else throw Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");var n,s,o,a,l,u,h,c,f=this.length-e;if((void 0===i||i>f)&&(i=f),t.length>0&&(i<0||e<0)||e>this.length)throw RangeError("Attempt to write outside buffer bounds");r||(r="utf8");for(var p=!1;;)switch(r){case"hex":return function(t,e,i,r){i=Number(i)||0;var n=t.length-i;r?(r=Number(r))>n&&(r=n):r=n;var s=e.length;r>s/2&&(r=s/2);for(var o=0;o<r;++o){var a,l=parseInt(e.substr(2*o,2),16);if((a=l)!=a)break;t[i+o]=l}return o}(this,t,e,i);case"utf8":case"utf-8":return n=e,s=i,C(x(t,this.length-n),this,n,s);case"ascii":return o=e,a=i,C(S(t),this,o,a);case"latin1":case"binary":return function(t,e,i,r){return C(S(e),t,i,r)}(this,t,e,i);case"base64":return l=e,u=i,C(P(t),this,l,u);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return h=e,c=i,C(function(t,e){for(var i,r,n=[],s=0;s<t.length&&!((e-=2)<0);++s)r=(i=t.charCodeAt(s))>>8,n.push(i%256),n.push(r);return n}(t,this.length-h),this,h,c);default:if(p)throw TypeError("Unknown encoding: "+r);r=(""+r).toLowerCase(),p=!0}},a.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}},a.prototype.slice=function(t,e){var i=this.length;t=~~t,e=void 0===e?i:~~e,t<0?(t+=i)<0&&(t=0):t>i&&(t=i),e<0?(e+=i)<0&&(e=0):e>i&&(e=i),e<t&&(e=t);var r=this.subarray(t,e);return Object.setPrototypeOf(r,a.prototype),r},a.prototype.readUIntLE=function(t,e,i){t>>>=0,e>>>=0,i||k(t,e,this.length);for(var r=this[t],n=1,s=0;++s<e&&(n*=256);)r+=this[t+s]*n;return r},a.prototype.readUIntBE=function(t,e,i){t>>>=0,e>>>=0,i||k(t,e,this.length);for(var r=this[t+--e],n=1;e>0&&(n*=256);)r+=this[t+--e]*n;return r},a.prototype.readUInt8=function(t,e){return t>>>=0,e||k(t,1,this.length),this[t]},a.prototype.readUInt16LE=function(t,e){return t>>>=0,e||k(t,2,this.length),this[t]|this[t+1]<<8},a.prototype.readUInt16BE=function(t,e){return t>>>=0,e||k(t,2,this.length),this[t]<<8|this[t+1]},a.prototype.readUInt32LE=function(t,e){return t>>>=0,e||k(t,4,this.length),(this[t]|this[t+1]<<8|this[t+2]<<16)+0x1000000*this[t+3]},a.prototype.readUInt32BE=function(t,e){return t>>>=0,e||k(t,4,this.length),0x1000000*this[t]+(this[t+1]<<16|this[t+2]<<8|this[t+3])},a.prototype.readIntLE=function(t,e,i){t>>>=0,e>>>=0,i||k(t,e,this.length);for(var r=this[t],n=1,s=0;++s<e&&(n*=256);)r+=this[t+s]*n;return r>=(n*=128)&&(r-=Math.pow(2,8*e)),r},a.prototype.readIntBE=function(t,e,i){t>>>=0,e>>>=0,i||k(t,e,this.length);for(var r=e,n=1,s=this[t+--r];r>0&&(n*=256);)s+=this[t+--r]*n;return s>=(n*=128)&&(s-=Math.pow(2,8*e)),s},a.prototype.readInt8=function(t,e){return(t>>>=0,e||k(t,1,this.length),128&this[t])?-((255-this[t]+1)*1):this[t]},a.prototype.readInt16LE=function(t,e){t>>>=0,e||k(t,2,this.length);var i=this[t]|this[t+1]<<8;return 32768&i?0xffff0000|i:i},a.prototype.readInt16BE=function(t,e){t>>>=0,e||k(t,2,this.length);var i=this[t+1]|this[t]<<8;return 32768&i?0xffff0000|i:i},a.prototype.readInt32LE=function(t,e){return t>>>=0,e||k(t,4,this.length),this[t]|this[t+1]<<8|this[t+2]<<16|this[t+3]<<24},a.prototype.readInt32BE=function(t,e){return t>>>=0,e||k(t,4,this.length),this[t]<<24|this[t+1]<<16|this[t+2]<<8|this[t+3]},a.prototype.readFloatLE=function(t,e){return t>>>=0,e||k(t,4,this.length),n.read(this,t,!0,23,4)},a.prototype.readFloatBE=function(t,e){return t>>>=0,e||k(t,4,this.length),n.read(this,t,!1,23,4)},a.prototype.readDoubleLE=function(t,e){return t>>>=0,e||k(t,8,this.length),n.read(this,t,!0,52,8)},a.prototype.readDoubleBE=function(t,e){return t>>>=0,e||k(t,8,this.length),n.read(this,t,!1,52,8)},a.prototype.writeUIntLE=function(t,e,i,r){if(t*=1,e>>>=0,i>>>=0,!r){var n=Math.pow(2,8*i)-1;b(this,t,e,i,n,0)}var s=1,o=0;for(this[e]=255&t;++o<i&&(s*=256);)this[e+o]=t/s&255;return e+i},a.prototype.writeUIntBE=function(t,e,i,r){if(t*=1,e>>>=0,i>>>=0,!r){var n=Math.pow(2,8*i)-1;b(this,t,e,i,n,0)}var s=i-1,o=1;for(this[e+s]=255&t;--s>=0&&(o*=256);)this[e+s]=t/o&255;return e+i},a.prototype.writeUInt8=function(t,e,i){return t*=1,e>>>=0,i||b(this,t,e,1,255,0),this[e]=255&t,e+1},a.prototype.writeUInt16LE=function(t,e,i){return t*=1,e>>>=0,i||b(this,t,e,2,65535,0),this[e]=255&t,this[e+1]=t>>>8,e+2},a.prototype.writeUInt16BE=function(t,e,i){return t*=1,e>>>=0,i||b(this,t,e,2,65535,0),this[e]=t>>>8,this[e+1]=255&t,e+2},a.prototype.writeUInt32LE=function(t,e,i){return t*=1,e>>>=0,i||b(this,t,e,4,0xffffffff,0),this[e+3]=t>>>24,this[e+2]=t>>>16,this[e+1]=t>>>8,this[e]=255&t,e+4},a.prototype.writeUInt32BE=function(t,e,i){return t*=1,e>>>=0,i||b(this,t,e,4,0xffffffff,0),this[e]=t>>>24,this[e+1]=t>>>16,this[e+2]=t>>>8,this[e+3]=255&t,e+4},a.prototype.writeIntLE=function(t,e,i,r){if(t*=1,e>>>=0,!r){var n=Math.pow(2,8*i-1);b(this,t,e,i,n-1,-n)}var s=0,o=1,a=0;for(this[e]=255&t;++s<i&&(o*=256);)t<0&&0===a&&0!==this[e+s-1]&&(a=1),this[e+s]=(t/o|0)-a&255;return e+i},a.prototype.writeIntBE=function(t,e,i,r){if(t*=1,e>>>=0,!r){var n=Math.pow(2,8*i-1);b(this,t,e,i,n-1,-n)}var s=i-1,o=1,a=0;for(this[e+s]=255&t;--s>=0&&(o*=256);)t<0&&0===a&&0!==this[e+s+1]&&(a=1),this[e+s]=(t/o|0)-a&255;return e+i},a.prototype.writeInt8=function(t,e,i){return t*=1,e>>>=0,i||b(this,t,e,1,127,-128),t<0&&(t=255+t+1),this[e]=255&t,e+1},a.prototype.writeInt16LE=function(t,e,i){return t*=1,e>>>=0,i||b(this,t,e,2,32767,-32768),this[e]=255&t,this[e+1]=t>>>8,e+2},a.prototype.writeInt16BE=function(t,e,i){return t*=1,e>>>=0,i||b(this,t,e,2,32767,-32768),this[e]=t>>>8,this[e+1]=255&t,e+2},a.prototype.writeInt32LE=function(t,e,i){return t*=1,e>>>=0,i||b(this,t,e,4,0x7fffffff,-0x80000000),this[e]=255&t,this[e+1]=t>>>8,this[e+2]=t>>>16,this[e+3]=t>>>24,e+4},a.prototype.writeInt32BE=function(t,e,i){return t*=1,e>>>=0,i||b(this,t,e,4,0x7fffffff,-0x80000000),t<0&&(t=0xffffffff+t+1),this[e]=t>>>24,this[e+1]=t>>>16,this[e+2]=t>>>8,this[e+3]=255&t,e+4},a.prototype.writeFloatLE=function(t,e,i){return j(this,t,e,!0,i)},a.prototype.writeFloatBE=function(t,e,i){return j(this,t,e,!1,i)},a.prototype.writeDoubleLE=function(t,e,i){return E(this,t,e,!0,i)},a.prototype.writeDoubleBE=function(t,e,i){return E(this,t,e,!1,i)},a.prototype.copy=function(t,e,i,r){if(!a.isBuffer(t))throw TypeError("argument should be a Buffer");if(i||(i=0),r||0===r||(r=this.length),e>=t.length&&(e=t.length),e||(e=0),r>0&&r<i&&(r=i),r===i||0===t.length||0===this.length)return 0;if(e<0)throw RangeError("targetStart out of bounds");if(i<0||i>=this.length)throw RangeError("Index out of range");if(r<0)throw RangeError("sourceEnd out of bounds");r>this.length&&(r=this.length),t.length-e<r-i&&(r=t.length-e+i);var n=r-i;if(this===t&&"function"==typeof Uint8Array.prototype.copyWithin)this.copyWithin(e,i,r);else if(this===t&&i<e&&e<r)for(var s=n-1;s>=0;--s)t[s+e]=this[s+i];else Uint8Array.prototype.set.call(t,this.subarray(i,r),e);return n},a.prototype.fill=function(t,e,i,r){if("string"==typeof t){if("string"==typeof e?(r=e,e=0,i=this.length):"string"==typeof i&&(r=i,i=this.length),void 0!==r&&"string"!=typeof r)throw TypeError("encoding must be a string");if("string"==typeof r&&!a.isEncoding(r))throw TypeError("Unknown encoding: "+r);if(1===t.length){var n,s=t.charCodeAt(0);("utf8"===r&&s<128||"latin1"===r)&&(t=s)}}else"number"==typeof t?t&=255:"boolean"==typeof t&&(t=Number(t));if(e<0||this.length<e||this.length<i)throw RangeError("Out of range index");if(i<=e)return this;if(e>>>=0,i=void 0===i?this.length:i>>>0,t||(t=0),"number"==typeof t)for(n=e;n<i;++n)this[n]=t;else{var o=a.isBuffer(t)?t:a.from(t,r),l=o.length;if(0===l)throw TypeError('The value "'+t+'" is invalid for argument "value"');for(n=0;n<i-e;++n)this[n+e]=o[n%l]}return this};var _=/[^+/0-9A-Za-z-_]/g;function x(t,e){e=e||1/0;for(var i,r=t.length,n=null,s=[],o=0;o<r;++o){if((i=t.charCodeAt(o))>55295&&i<57344){if(!n){if(i>56319||o+1===r){(e-=3)>-1&&s.push(239,191,189);continue}n=i;continue}if(i<56320){(e-=3)>-1&&s.push(239,191,189),n=i;continue}i=(n-55296<<10|i-56320)+65536}else n&&(e-=3)>-1&&s.push(239,191,189);if(n=null,i<128){if((e-=1)<0)break;s.push(i)}else if(i<2048){if((e-=2)<0)break;s.push(i>>6|192,63&i|128)}else if(i<65536){if((e-=3)<0)break;s.push(i>>12|224,i>>6&63|128,63&i|128)}else if(i<1114112){if((e-=4)<0)break;s.push(i>>18|240,i>>12&63|128,i>>6&63|128,63&i|128)}else throw Error("Invalid code point")}return s}function S(t){for(var e=[],i=0;i<t.length;++i)e.push(255&t.charCodeAt(i));return e}function P(t){return r.toByteArray(function(t){if((t=(t=t.split("=")[0]).trim().replace(_,"")).length<2)return"";for(;t.length%4!=0;)t+="=";return t}(t))}function C(t,e,i,r){for(var n=0;n<r&&!(n+i>=e.length)&&!(n>=t.length);++n)e[n+i]=t[n];return n}function O(t,e){return t instanceof e||null!=t&&null!=t.constructor&&null!=t.constructor.name&&t.constructor.name===e.name}var A=function(){for(var t="0123456789abcdef",e=Array(256),i=0;i<16;++i)for(var r=16*i,n=0;n<16;++n)e[r+n]=t[i]+t[n];return e}()},783:function(t,e){e.read=function(t,e,i,r,n){var s,o,a=8*n-r-1,l=(1<<a)-1,u=l>>1,h=-7,c=i?n-1:0,f=i?-1:1,p=t[e+c];for(c+=f,s=p&(1<<-h)-1,p>>=-h,h+=a;h>0;s=256*s+t[e+c],c+=f,h-=8);for(o=s&(1<<-h)-1,s>>=-h,h+=r;h>0;o=256*o+t[e+c],c+=f,h-=8);if(0===s)s=1-u;else{if(s===l)return o?NaN:1/0*(p?-1:1);o+=Math.pow(2,r),s-=u}return(p?-1:1)*o*Math.pow(2,s-r)},e.write=function(t,e,i,r,n,s){var o,a,l,u=8*s-n-1,h=(1<<u)-1,c=h>>1,f=5960464477539062e-23*(23===n),p=r?0:s-1,d=r?1:-1,g=+(e<0||0===e&&1/e<0);for(isNaN(e=Math.abs(e))||e===1/0?(a=+!!isNaN(e),o=h):(o=Math.floor(Math.log(e)/Math.LN2),e*(l=Math.pow(2,-o))<1&&(o--,l*=2),o+c>=1?e+=f/l:e+=f*Math.pow(2,1-c),e*l>=2&&(o++,l/=2),o+c>=h?(a=0,o=h):o+c>=1?(a=(e*l-1)*Math.pow(2,n),o+=c):(a=e*Math.pow(2,c-1)*Math.pow(2,n),o=0));n>=8;t[i+p]=255&a,p+=d,a/=256,n-=8);for(o=o<<n|a,u+=n;u>0;t[i+p]=255&o,p+=d,o/=256,u-=8);t[i+p-d]|=128*g}}},n={};function s(t){var e=n[t];if(void 0!==e)return e.exports;var i=n[t]={exports:{}},o=!0;try{r[t](i,i.exports,s),o=!1}finally{o&&delete n[t]}return i.exports}s.ab="/ROOT/node_modules/.pnpm/next@16.2.4_@babel+core@7.29.0_react-dom@19.2.4_react@19.2.4__react@19.2.4/node_modules/next/dist/compiled/buffer/",e.exports=s(72)},120276,t=>{"use strict";let e;t.i(836406),t.i(859073),t.i(664195),t.i(347410),t.i(768224),t.i(93151),t.i(158555),t.i(517965),t.i(742150),t.i(500127),t.i(874243),t.i(686882),t.i(127819),t.i(640883),t.i(604257),t.i(869416),t.i(116427),t.i(836354),t.i(473864),t.i(318209),t.i(172781),t.i(250182),t.i(131624),t.i(238015),t.i(534662),t.i(433140),t.i(663159),t.i(119260),t.i(877059),t.i(808e3),t.i(645831),t.i(764894),t.i(551501),t.i(337525),t.i(335283),t.i(615239),t.i(324240),t.i(33999),t.i(745026),t.i(637114),t.i(705067),t.i(948539),t.i(768797),t.i(633666),t.i(405261),t.i(231009),t.i(72895),t.i(862215),t.i(273544),t.i(844168),t.i(843210),t.i(767312),t.i(116013),t.i(735564),t.i(44118),t.i(486172),t.i(321915),t.i(171733),t.i(6838),t.i(45048),t.i(526568),t.i(646675),t.i(426208),t.i(772315),t.i(137475),t.i(504183),t.i(656092),t.i(126391),t.i(925665),t.i(756500);var i=t.i(680590);e="object"==typeof self&&self.constructor&&"DedicatedWorkerGlobalScope"===self.constructor.name&&void 0!==globalThis.workerttPolicy?globalThis.workerttPolicy:function(t,e){let i=globalThis.MonacoEnvironment;if(i?.createTrustedTypesPolicy)try{return i.createTrustedTypesPolicy(t,e)}catch(t){console.error(t);return}try{return globalThis.trustedTypes?.createPolicy(t,e)}catch(t){console.error(t);return}}("defaultWorkerFactory",{createScriptURL:t=>t}),t.s(["createWebWorker",0,function(t){let r=Promise.resolve(function(t){let i=t.label,r=globalThis.MonacoEnvironment;if(r){if("function"==typeof r.getWorker)return r.getWorker("workerMain.js",i);if("function"==typeof r.getWorkerUrl){let t=r.getWorkerUrl("workerMain.js",i);return new Worker(e?e.createScriptURL(t):t,{name:i,type:"module"})}}if(t.createWorker)return t.createWorker();throw Error("You must define a function MonacoEnvironment.getWorkerUrl or MonacoEnvironment.getWorker")}({label:t.label??"monaco-editor-worker",moduleId:t.moduleId,createWorker:t.createWorker})).then(e=>(e.postMessage("ignore"),e.postMessage(t.createData),e));return i.editor.createWebWorker({worker:r,host:t.host,keepIdleModels:t.keepIdleModels})}])},310336,t=>{t.q("/_next/static/media/editor.worker.0ffjdaaj15t6e.js")},969663,t=>{t.q("/_next/static/media/extensionHost.worker.14sz5xf8-1efr.js")},859546,t=>{t.q("/_next/static/media/worker.081j0x4avp1l1.js")},212965,250438,t=>{"use strict";let e=(0,t.i(433721).default)("arrow-down",[["path",{d:"M12 5v14",key:"s699le"}],["path",{d:"m19 12-7 7-7-7",key:"1idqje"}]]);t.s(["ArrowDown",0,e],212965);var i=t.i(558680);t.s(["ChevronDownIcon",()=>i.default],250438)},302773,t=>{"use strict";let e=(0,t.i(816709).create)((t,e)=>({workflows:[],currentWorkflow:null,isLoading:!1,loadWorkflows:async()=>{t({isLoading:!0});try{let e=await fetch("/api/workflows"),i=await e.json();t({workflows:i,isLoading:!1})}catch{t({isLoading:!1})}},createWorkflow:async e=>{let i=await fetch("/api/workflows",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(e)}),r=await i.json();return t(t=>({workflows:[...t.workflows,r]})),r},updateWorkflow:async(t,i)=>{let r=await fetch(`/api/workflows/${t}`,{method:"PUT",headers:{"Content-Type":"application/json"},body:JSON.stringify(i)}),n=await r.json();e().upsertWorkflow(n)},deleteWorkflow:async t=>{await fetch(`/api/workflows/${t}`,{method:"DELETE"}),e().removeWorkflow(t)},duplicateWorkflow:async e=>{let i=await fetch(`/api/workflows/${e}/duplicate`,{method:"POST"}),r=await i.json();t(t=>({workflows:[...t.workflows,r]}))},setCurrentWorkflow:e=>t({currentWorkflow:e}),upsertWorkflow:e=>{t(t=>{let i=t.workflows.findIndex(t=>t.id===e.id);if(-1!==i){let r=[...t.workflows];return r[i]=e,{workflows:r}}return{workflows:[...t.workflows,e]}})},removeWorkflow:e=>{t(t=>({workflows:t.workflows.filter(t=>t.id!==e),currentWorkflow:t.currentWorkflow?.id===e?null:t.currentWorkflow}))}}));t.s(["useWorkflowStore",0,e])},551959,t=>{"use strict";t.i(836406),t.i(859073),t.i(664195),t.i(347410),t.i(768224),t.i(93151),t.i(158555),t.i(517965),t.i(742150),t.i(500127),t.i(874243),t.i(686882),t.i(127819),t.i(640883),t.i(604257),t.i(869416),t.i(116427),t.i(836354),t.i(473864),t.i(318209),t.i(172781),t.i(250182),t.i(131624),t.i(238015),t.i(534662),t.i(433140),t.i(663159),t.i(119260),t.i(877059),t.i(808e3),t.i(645831),t.i(764894),t.i(551501),t.i(337525),t.i(335283),t.i(615239),t.i(324240),t.i(33999),t.i(745026),t.i(637114),t.i(705067),t.i(948539),t.i(768797),t.i(633666),t.i(405261),t.i(231009),t.i(72895),t.i(862215),t.i(273544),t.i(844168),t.i(843210),t.i(767312),t.i(116013),t.i(735564),t.i(44118),t.i(486172),t.i(321915),t.i(171733),t.i(6838),t.i(45048),t.i(526568),t.i(646675),t.i(426208),t.i(772315),t.i(137475),t.i(504183),t.i(656092),t.i(126391),t.i(925665),t.i(756500);var e,i,r,n,s,o=t.i(680590),a=((e=a||{})[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),l=((i=l||{})[i.None=0]="None",i[i.Preserve=1]="Preserve",i[i.React=2]="React",i[i.ReactNative=3]="ReactNative",i[i.ReactJSX=4]="ReactJSX",i[i.ReactJSXDev=5]="ReactJSXDev",i),u=((r=u||{})[r.CarriageReturnLineFeed=0]="CarriageReturnLineFeed",r[r.LineFeed=1]="LineFeed",r),h=((n=h||{})[n.ES3=0]="ES3",n[n.ES5=1]="ES5",n[n.ES2015=2]="ES2015",n[n.ES2016=3]="ES2016",n[n.ES2017=4]="ES2017",n[n.ES2018=5]="ES2018",n[n.ES2019=6]="ES2019",n[n.ES2020=7]="ES2020",n[n.ESNext=99]="ESNext",n[n.JSON=100]="JSON",n[n.Latest=99]="Latest",n),c=((s=c||{})[s.Classic=1]="Classic",s[s.NodeJs=2]="NodeJs",s);class f{constructor(t,e,i,r,n){this._onDidChange=new o.Emitter,this._onDidExtraLibsChange=new o.Emitter,this._extraLibs=Object.create(null),this._removedExtraLibs=Object.create(null),this._eagerModelSync=!1,this.setCompilerOptions(t),this.setDiagnosticsOptions(e),this.setWorkerOptions(i),this.setInlayHintsOptions(r),this.setModeConfiguration(n),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(t,e){let i;if(i=void 0===e?`ts:extralib-${Math.random().toString(36).substring(2,15)}`:e,this._extraLibs[i]&&this._extraLibs[i].content===t)return{dispose:()=>{}};let r=1;return this._removedExtraLibs[i]&&(r=this._removedExtraLibs[i]+1),this._extraLibs[i]&&(r=this._extraLibs[i].version+1),this._extraLibs[i]={content:t,version:r},this._fireOnDidExtraLibsChangeSoon(),{dispose:()=>{let t=this._extraLibs[i];t&&t.version===r&&(delete this._extraLibs[i],this._removedExtraLibs[i]=r,this._fireOnDidExtraLibsChangeSoon())}}}setExtraLibs(t){for(let t in this._extraLibs)this._removedExtraLibs[t]=this._extraLibs[t].version;if(this._extraLibs=Object.create(null),t&&t.length>0)for(let e of t){let t=e.filePath||`ts:extralib-${Math.random().toString(36).substring(2,15)}`,i=e.content,r=1;this._removedExtraLibs[t]&&(r=this._removedExtraLibs[t]+1),this._extraLibs[t]={content:i,version:r}}this._fireOnDidExtraLibsChangeSoon()}_fireOnDidExtraLibsChangeSoon(){-1===this._onDidExtraLibsChangeTimeout&&(this._onDidExtraLibsChangeTimeout=window.setTimeout(()=>{this._onDidExtraLibsChangeTimeout=-1,this._onDidExtraLibsChange.fire(void 0)},0))}getCompilerOptions(){return this._compilerOptions}setCompilerOptions(t){this._compilerOptions=t||Object.create(null),this._onDidChange.fire(void 0)}getDiagnosticsOptions(){return this._diagnosticsOptions}setDiagnosticsOptions(t){this._diagnosticsOptions=t||Object.create(null),this._onDidChange.fire(void 0)}setWorkerOptions(t){this._workerOptions=t||Object.create(null),this._onDidChange.fire(void 0)}setInlayHintsOptions(t){this._inlayHintsOptions=t||Object.create(null),this._onDidChange.fire(void 0)}setMaximumWorkerIdleTime(t){}setEagerModelSync(t){this._eagerModelSync=t}getEagerModelSync(){return this._eagerModelSync}setModeConfiguration(t){this._modeConfiguration=t||Object.create(null),this._onDidChange.fire(void 0)}}let p={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},d=new f({allowNonTsExtensions:!0,target:99},{noSemanticValidation:!1,noSyntaxValidation:!1,onlyVisible:!1},{},{},p),g=new f({allowNonTsExtensions:!0,allowJs:!0,target:99},{noSemanticValidation:!0,noSyntaxValidation:!1,onlyVisible:!1},{},{},p);function m(){return t.A(69588)}o.languages.onLanguage("typescript",()=>m().then(t=>t.setupTypeScript(d))),o.languages.onLanguage("javascript",()=>m().then(t=>t.setupJavaScript(g))),t.s(["JsxEmit",0,l,"ModuleKind",0,a,"ModuleResolutionKind",0,c,"NewLineKind",0,u,"ScriptTarget",0,h,"getJavaScriptWorker",0,()=>m().then(t=>t.getJavaScriptWorker()),"getTypeScriptWorker",0,()=>m().then(t=>t.getTypeScriptWorker()),"javascriptDefaults",0,g,"typescriptDefaults",0,d,"typescriptVersion",0,"5.9.3"],551959)},106452,t=>{"use strict";var e=t.i(281482),i=t.i(487106),r=t.i(554250),n=t.i(488259),s=t.i(922292),o=t.i(535567),a=t.i(107700);t.i(963631),t.i(619122),t.i(117282),t.i(261968),t.i(611130),t.i(621826);var l=t.i(4160);t.i(318581),t.i(686380),t.i(718596);var u=t.i(2267),h=t.i(501891);t.i(575129),t.i(698014),t.i(140331),t.i(471999),t.i(900329),t.i(785266),t.i(181268),t.i(70177),t.i(575210),t.i(890787),t.i(67920),t.i(601293),t.i(168221),t.i(771275),t.i(354244);var c=t.i(905670),f=t.i(107043),p=t.i(299051),d=t.i(827522),g=t.i(526097);t.i(568101);var m=t.i(79522);t.i(899890),t.i(932956),t.i(781808);var v=t.i(553638),y=t.i(856884),k=t.i(9753),b=t.i(84513),w=t.i(846960),j=t.i(536766),E=t.i(975445),_=t.i(853457),x=t.i(428048);function S(t){let e=t;return class extends e{constructor(...e){super(...e.slice(1),...function(t,e){return t.invokeFunction(t=>n._util.getServiceDependencies(e).sort((t,e)=>t.index-e.index).map(e=>t.get(e.id)))}(e[0],t))}}}var P=t.i(861593);function C(t,e){let i=(0,o.isObject)(t.editor)?(0,a.deepClone)(t.editor):Object.create(null);return Object.assign(i,(0,a.deepClone)(e)),i}function O(t,e){let i=C(t);if((0,o.isObject)(t.diffEditor)){let e=(0,a.deepClone)(t.diffEditor);e.diffCodeLens=e.codeLens,delete e.codeLens,e.diffWordWrap=e.wordWrap,delete e.wordWrap,Object.assign(i,e)}return i.accessibilityVerbose=t.accessibility?.verbosity?.diffEditor??!1,Object.assign(i,(0,a.deepClone)(e)),i}function A(t){let i=class extends t{constructor(t,e={},i,r){const{theme:n,autoDetectHighContrast:s,model:o,value:a,language:l,accessibilityHelpUrl:u,ariaContainerElement:h,overflowWidgetsDomNode:c,dimension:f,...d}=e,g=C(r.getValue(e.model?.uri),d);super(i,t,{...g,overflowWidgetsDomNode:c,dimension:f,theme:n,autoDetectHighContrast:s,model:o,value:a,language:l,accessibilityHelpUrl:u,ariaContainerElement:h}),this.textResourceConfigurationService=r,this.optionsOverrides={},this.lastAppliedEditorOptions=g,this.optionsOverrides=d,this._register(r.onDidChangeConfiguration(t=>{let e=this.getModel()?.uri;null!=e&&t.affectsConfiguration(e,"editor")&&this.updateEditorConfiguration()})),this._register(this.onDidChangeModelLanguage(()=>this.updateEditorConfiguration())),this._register(this.onDidChangeModel(()=>this.updateEditorConfiguration())),this.updateEditorConfiguration();const m=i.createChild(new p.ServiceCollection([k.IContextKeyService,this._contextKeyService])),v=this._register(m.createInstance(y.ResourceContextKey));this.onDidChangeModel(t=>{v.set(t.newModelUrl)}),v.set(this.getModel()?.uri)}updateEditorConfiguration(){if(!this.hasModel()||null==this.textResourceConfigurationService)return;let t=this.getModel().uri,e=this.textResourceConfigurationService.getValue(t);if(null==e)return;let i=C(e,this.optionsOverrides),r=i;null!=this.lastAppliedEditorOptions&&(r=(0,a.distinct)(this.lastAppliedEditorOptions,r)),Object.keys(r).length>0&&(this.lastAppliedEditorOptions=i,super.updateOptions(r))}updateOptions(t){this.optionsOverrides??(this.optionsOverrides={}),h.EditorOptionsUtil.applyUpdate(this.optionsOverrides,t)&&this.updateEditorConfiguration()}};return(0,e.__decorate)([(0,e.__param)(2,n.IInstantiationService),(0,e.__param)(3,r.ITextResourceConfigurationService)],i)}t.i(478697);let L=A(S(s.StandaloneCodeEditor)),I=A(S(s.StandaloneEditor)),T=class extends S(s.StandaloneDiffEditor2){constructor(t,e={},i,r){const{theme:n,autoDetectHighContrast:s,modifiedAriaLabel:o,originalAriaLabel:a,overflowWidgetsDomNode:l,dimension:u,...h}=e,c=O(r.getValue(void 0),h);super(i,t,{...c,overflowWidgetsDomNode:l,dimension:u,theme:n,autoDetectHighContrast:s,modifiedAriaLabel:o,originalAriaLabel:a}),this.textResourceConfigurationService=r,this.optionsOverrides={},this.lastAppliedEditorOptions=c,this.optionsOverrides=h,this._register(r.onDidChangeConfiguration(t=>{let e=this._targetEditor.getModel()?.uri;null!=e&&(t.affectsConfiguration(e,"editor")||t.affectsConfiguration(e,"diffEditor")||t.affectsConfiguration(e,"accessibility.verbosity.diffEditor"))&&this.updateEditorConfiguration()})),this._register(this._targetEditor.onDidChangeModelLanguage(()=>this.updateEditorConfiguration())),this._register(this.onDidChangeModel(()=>this.updateEditorConfiguration())),this.updateEditorConfiguration()}updateEditorConfiguration(){if(null==this.getModel()||null==this.textResourceConfigurationService)return;let t=this._targetEditor.getModel()?.uri,e=this.textResourceConfigurationService.getValue(t);if(null==e)return;let i=O(e,this.optionsOverrides),r=i;null!=this.lastAppliedEditorOptions&&(r=(0,a.distinct)(this.lastAppliedEditorOptions,r)),Object.keys(r).length>0&&(this.lastAppliedEditorOptions=i,super.updateOptions(r))}updateOptions(t){this.optionsOverrides??(this.optionsOverrides={}),this.optionsOverrides={...this.optionsOverrides,...t},this.updateEditorConfiguration()}_createInnerEditor(t,e,i){return t.createInstance(L,e,i)}};async function B(t,e){let i=await (0,P.getService)(v.IFileService);await i.writeFile(t,f.VSBuffer.fromString(e))}async function M(t,e){null!=e&&await B(t,e);let i=await (0,P.getService)(c.ITextModelService);return await i.createModelReference(t)}T=(0,e.__decorate)([(0,e.__param)(2,n.IInstantiationService),(0,e.__param)(3,r.ITextResourceConfigurationService)],T);let U=class extends i.StandaloneKeybindingService{constructor(t,e,i,r,n,s,o){super(e,i,r,n,s,o),this.delegate=t,this._register(t.registerKeybindingProvider({provideKeybindings:()=>this.getUserKeybindingItems(),onDidChangeKeybindings:this.onDidUpdateKeybindings}))}_getResolver(){return this.delegate._getResolver()}resolveKeyboardEvent(t){return this.delegate.resolveKeyboardEvent(t)}resolveKeybinding(t){return this.delegate.resolveKeybinding(t)}resolveUserBinding(t){return this.delegate.resolveUserBinding(t)}_dumpDebugInfo(){return this.delegate._dumpDebugInfo()}_dumpDebugInfoJSON(){return this.delegate._dumpDebugInfoJSON()}enableKeybindingHoldMode(t){return this.delegate.enableKeybindingHoldMode(t)}};U=(0,e.__decorate)([(0,e.__param)(1,k.IContextKeyService),(0,e.__param)(2,w.ICommandService),(0,e.__param)(3,j.ITelemetryService),(0,e.__param)(4,E.INotificationService),(0,e.__param)(5,_.ILogService),(0,e.__param)(6,m.ICodeEditorService)],U);let R=null;function D(t){if(null==R){let e=new p.ServiceCollection;e.set(x.IQuickInputService,new g.SyncDescriptor(d.StandaloneQuickInputService,[],!0));let r=t.get(b.IKeybindingService);r instanceof i.StandaloneKeybindingService||null==r.registerKeybindingProvider||e.set(b.IKeybindingService,new g.SyncDescriptor(U,[r],!0)),R=t.get(n.IInstantiationService).createChild(e)}return R}l.Extensions,u.Extensions,t.s(["createConfiguredDiffEditor",0,(t,e,r)=>i.StandaloneServices.initialize(r??{}).invokeFunction(D).createInstance(T,t,e),"createConfiguredEditor",0,(t,e,r)=>i.StandaloneServices.initialize(r??{}).invokeFunction(D).createInstance(I,t,e),"createModelReference",0,M,"writeFile",0,B],106452)},771485,t=>{t.v(e=>Promise.all(["static/chunks/0qtc_rbo1oghu.js","static/chunks/035l5i6hvxwm4.js"].map(e=>t.l(e))).then(()=>e(462988)))},918487,t=>{t.v(e=>Promise.all(["static/chunks/004wt62de8617.js","static/chunks/035l5i6hvxwm4.js"].map(e=>t.l(e))).then(()=>e(343355)))},134924,t=>{t.v(e=>Promise.all(["static/chunks/0g-0n6glz_z6w.js","static/chunks/035l5i6hvxwm4.js"].map(e=>t.l(e))).then(()=>e(813595)))},69588,t=>{t.v(e=>Promise.all(["static/chunks/08kpa0nox.bb1.js"].map(e=>t.l(e))).then(()=>e(319120)))},635811,t=>{t.v(e=>Promise.all(["static/chunks/09j3~tko9ep2k.js"].map(e=>t.l(e))).then(()=>e(10039)))},264749,t=>{t.v(e=>Promise.all(["static/chunks/0sjpil-vio33w.js"].map(e=>t.l(e))).then(()=>e(785424)))},317605,t=>{t.v(e=>Promise.all(["static/chunks/0rfeqjw8k-viv.js"].map(e=>t.l(e))).then(()=>e(947234)))},704590,t=>{t.v(e=>Promise.all(["static/chunks/100t886jj0x0x.js"].map(e=>t.l(e))).then(()=>e(459451)))},153742,t=>{t.v(e=>Promise.all(["static/chunks/05tqezrd9jb7y.js"].map(e=>t.l(e))).then(()=>e(419759)))},629448,t=>{t.v(e=>Promise.all(["static/chunks/0d8lm7uud1uuc.js"].map(e=>t.l(e))).then(()=>e(675039)))},124011,t=>{t.v(e=>Promise.all(["static/chunks/0xgw6nacc67av.js"].map(e=>t.l(e))).then(()=>e(786142)))},331538,t=>{t.v(e=>Promise.all(["static/chunks/0b9oy9dat2g6l.js"].map(e=>t.l(e))).then(()=>e(612156)))},940085,t=>{t.v(e=>Promise.all(["static/chunks/0rx7dmtxo4d6p.js"].map(e=>t.l(e))).then(()=>e(434780)))},158993,t=>{t.v(e=>Promise.all(["static/chunks/0jm496tvvtjqx.js"].map(e=>t.l(e))).then(()=>e(644426)))},189140,t=>{t.v(e=>Promise.all(["static/chunks/0ztjb8i4tqvql.js"].map(e=>t.l(e))).then(()=>e(829708)))},12065,t=>{t.v(e=>Promise.all(["static/chunks/0yuyx75r122y-.js"].map(e=>t.l(e))).then(()=>e(969420)))},546118,t=>{t.v(e=>Promise.all(["static/chunks/0h5q90v_js2e0.js"].map(e=>t.l(e))).then(()=>e(389449)))},468355,t=>{t.v(e=>Promise.all(["static/chunks/13vl889h_tb-~.js"].map(e=>t.l(e))).then(()=>e(377384)))},292453,t=>{t.v(e=>Promise.all(["static/chunks/0358_-ep6szf..js"].map(e=>t.l(e))).then(()=>e(43559)))},699591,t=>{t.v(e=>Promise.all(["static/chunks/0zb1vymmeoc9o.js"].map(e=>t.l(e))).then(()=>e(318640)))},357037,t=>{t.v(e=>Promise.all(["static/chunks/0q01i3ypmm4rg.js"].map(e=>t.l(e))).then(()=>e(433920)))},766246,t=>{t.v(e=>Promise.all(["static/chunks/11n6upyldh80p.js"].map(e=>t.l(e))).then(()=>e(219782)))},301403,t=>{t.v(e=>Promise.all(["static/chunks/0brr7g0p8esun.js"].map(e=>t.l(e))).then(()=>e(652984)))},806910,t=>{t.v(e=>Promise.all(["static/chunks/0kp1m06cg897x.js"].map(e=>t.l(e))).then(()=>e(32456)))},961253,t=>{t.v(e=>Promise.all(["static/chunks/0gkx0n_plricw.js"].map(e=>t.l(e))).then(()=>e(141471)))},264559,t=>{t.v(e=>Promise.all(["static/chunks/0d4o_4v0-e97a.js"].map(e=>t.l(e))).then(()=>e(623124)))},30518,t=>{t.v(e=>Promise.all(["static/chunks/0-y43ovhjaeo_.js"].map(e=>t.l(e))).then(()=>e(64384)))},768474,t=>{t.v(e=>Promise.all(["static/chunks/0f0-0to._hvah.js"].map(e=>t.l(e))).then(()=>e(717049)))},504826,t=>{t.v(e=>Promise.all(["static/chunks/0ghe5b2-kyi7-.js"].map(e=>t.l(e))).then(()=>e(976570)))},524721,t=>{t.v(e=>Promise.all(["static/chunks/0m9t_esdrum7w.js"].map(e=>t.l(e))).then(()=>e(790307)))},365570,t=>{t.v(e=>Promise.all(["static/chunks/0_yb4aw3n-lks.js"].map(e=>t.l(e))).then(()=>e(195962)))},787804,t=>{t.v(e=>Promise.all(["static/chunks/02ucy02hzl4vo.js"].map(e=>t.l(e))).then(()=>e(68378)))},979480,t=>{t.v(e=>Promise.all(["static/chunks/00n.pmqcipjyd.js"].map(e=>t.l(e))).then(()=>e(3717)))},850064,t=>{t.v(e=>Promise.all(["static/chunks/0.-4-1p34akka.js"].map(e=>t.l(e))).then(()=>e(118112)))},236120,t=>{t.v(e=>Promise.all(["static/chunks/0_gm.-h0brxaf.js"].map(e=>t.l(e))).then(()=>e(854779)))},769302,t=>{t.v(e=>Promise.all(["static/chunks/0g3ypwmflp2mx.js"].map(e=>t.l(e))).then(()=>e(183995)))},511259,t=>{t.v(e=>Promise.all(["static/chunks/0i0psxcvhdp9w.js"].map(e=>t.l(e))).then(()=>e(479742)))},778189,t=>{t.v(e=>Promise.all(["static/chunks/0ss8hcog1_n1i.js"].map(e=>t.l(e))).then(()=>e(671135)))},391583,t=>{t.v(e=>Promise.all(["static/chunks/0rs7_x_.71x1k.js"].map(e=>t.l(e))).then(()=>e(624545)))},4206,t=>{t.v(e=>Promise.all(["static/chunks/0nq24vo2_9kp4.js"].map(e=>t.l(e))).then(()=>e(495584)))},816552,t=>{t.v(e=>Promise.all(["static/chunks/0d5sgidwe_pcg.js"].map(e=>t.l(e))).then(()=>e(788024)))},718384,t=>{t.v(e=>Promise.all(["static/chunks/0hu5nx-z4fj7v.js"].map(e=>t.l(e))).then(()=>e(495619)))},284913,t=>{t.v(e=>Promise.all(["static/chunks/0y.6d96hu3k6k.js"].map(e=>t.l(e))).then(()=>e(547756)))},581714,t=>{t.v(e=>Promise.all(["static/chunks/0q7h6v.~-hcln.js"].map(e=>t.l(e))).then(()=>e(166861)))},261034,t=>{t.v(e=>Promise.all(["static/chunks/0vemm6g3yufzf.js"].map(e=>t.l(e))).then(()=>e(779542)))},93611,t=>{t.v(e=>Promise.all(["static/chunks/186mu8y9np1sy.js"].map(e=>t.l(e))).then(()=>e(417164)))},862727,t=>{t.v(e=>Promise.all(["static/chunks/17a_qp~nx3_r1.js"].map(e=>t.l(e))).then(()=>e(879006)))},697377,t=>{t.v(e=>Promise.all(["static/chunks/060_mn7wcaphv.js"].map(e=>t.l(e))).then(()=>e(217792)))},347750,t=>{t.v(e=>Promise.all(["static/chunks/0w-ftk2~z_w0f.js"].map(e=>t.l(e))).then(()=>e(895880)))},461792,t=>{t.v(e=>Promise.all(["static/chunks/15gjlpek9nxo4.js"].map(e=>t.l(e))).then(()=>e(539576)))},84791,t=>{t.v(e=>Promise.all(["static/chunks/12ae7z-332nqe.js"].map(e=>t.l(e))).then(()=>e(759422)))},590375,t=>{t.v(e=>Promise.all(["static/chunks/0n.gs01bd1s_w.js"].map(e=>t.l(e))).then(()=>e(591135)))},146984,t=>{t.v(e=>Promise.all(["static/chunks/06vb1.5j-tuzp.js"].map(e=>t.l(e))).then(()=>e(45058)))},64443,t=>{t.v(e=>Promise.all(["static/chunks/0q38twk.8uk88.js"].map(e=>t.l(e))).then(()=>e(139429)))},402493,t=>{t.v(e=>Promise.all(["static/chunks/15s4k5wdbcagm.js"].map(e=>t.l(e))).then(()=>e(707280)))},294884,t=>{t.v(e=>Promise.all(["static/chunks/09qqxs3eg7e46.js"].map(e=>t.l(e))).then(()=>e(570275)))},445468,t=>{t.v(e=>Promise.all(["static/chunks/14j.uts4xnh.u.js"].map(e=>t.l(e))).then(()=>e(81057)))},250392,t=>{t.v(e=>Promise.all(["static/chunks/11x5nw_8yy5d0.js"].map(e=>t.l(e))).then(()=>e(894793)))},35431,t=>{t.v(e=>Promise.all(["static/chunks/0ck3is68a9586.js"].map(e=>t.l(e))).then(()=>e(413019)))},185498,t=>{t.v(e=>Promise.all(["static/chunks/15abz60ucjy3t.js"].map(e=>t.l(e))).then(()=>e(509728)))},288688,t=>{t.v(e=>Promise.all(["static/chunks/11~8.35p7_vky.js"].map(e=>t.l(e))).then(()=>e(327571)))},257081,t=>{t.v(e=>Promise.all(["static/chunks/05irsi.vzfofq.js"].map(e=>t.l(e))).then(()=>e(827750)))},434615,t=>{t.v(e=>Promise.all(["static/chunks/0jxj3xh399qcn.js"].map(e=>t.l(e))).then(()=>e(570842)))},611325,t=>{t.v(e=>Promise.all(["static/chunks/0qtd.b3zhzf38.js"].map(e=>t.l(e))).then(()=>e(891824)))},199304,t=>{t.v(e=>Promise.all(["static/chunks/02~6z3ja20ogz.js"].map(e=>t.l(e))).then(()=>e(211678)))},424725,t=>{t.v(e=>Promise.all(["static/chunks/14qoup0y_1j0t.js"].map(e=>t.l(e))).then(()=>e(270100)))},575894,t=>{t.v(e=>Promise.all(["static/chunks/13w2r5w~ikt_6.js"].map(e=>t.l(e))).then(()=>e(895660)))},440673,t=>{t.v(e=>Promise.all(["static/chunks/0wm70l0hod.sw.js"].map(e=>t.l(e))).then(()=>e(592785)))},647192,t=>{t.v(e=>Promise.all(["static/chunks/0gqhau02~fg83.js"].map(e=>t.l(e))).then(()=>e(399133)))},30427,t=>{t.v(e=>Promise.all(["static/chunks/0zj_8cn9~m2~g.js"].map(e=>t.l(e))).then(()=>e(210032)))},509854,t=>{t.v(e=>Promise.all(["static/chunks/0extjypm.j7dp.js"].map(e=>t.l(e))).then(()=>e(637149)))},641974,t=>{t.v(e=>Promise.all(["static/chunks/0t1pc5h0n0y3..js"].map(e=>t.l(e))).then(()=>e(637056)))},66225,t=>{t.v(e=>Promise.all(["static/chunks/0uiiaq~dh4jdx.js"].map(e=>t.l(e))).then(()=>e(57079)))},252541,t=>{t.v(e=>Promise.all(["static/chunks/06xd5s9wkyu0_.js"].map(e=>t.l(e))).then(()=>e(441745)))},769837,t=>{t.v(e=>Promise.all(["static/chunks/0bm-i9rs31uos.js"].map(e=>t.l(e))).then(()=>e(534975)))},215611,t=>{t.v(e=>Promise.all(["static/chunks/0ggkvx5v53lvc.js"].map(e=>t.l(e))).then(()=>e(473166)))},316227,t=>{t.v(e=>Promise.all(["static/chunks/05tbg-zp1~2c_.js"].map(e=>t.l(e))).then(()=>e(282279)))},240972,t=>{t.v(e=>Promise.all(["static/chunks/05gu5s~8nh2wc.js"].map(e=>t.l(e))).then(()=>e(60065)))},216930,t=>{t.v(e=>Promise.all(["static/chunks/0sz5yhrzrrx-_.js"].map(e=>t.l(e))).then(()=>e(240783)))},755019,t=>{t.v(e=>Promise.all(["static/chunks/0p~x_p9pgpnmh.js"].map(e=>t.l(e))).then(()=>e(970178)))},717277,t=>{t.v(e=>Promise.all(["static/chunks/184ukbf139de1.js"].map(e=>t.l(e))).then(()=>e(418864)))},308554,t=>{t.v(e=>Promise.all(["static/chunks/0_-20qzivafad.js"].map(e=>t.l(e))).then(()=>e(797989)))},943272,t=>{t.v(e=>Promise.all(["static/chunks/0w52~a1.76e6y.js"].map(e=>t.l(e))).then(()=>e(493215)))},867512,t=>{t.v(e=>Promise.all(["static/chunks/0.hcqmse3gu~-.js"].map(e=>t.l(e))).then(()=>e(392020)))},611958,t=>{t.v(e=>Promise.all(["static/chunks/0lkfsj~tpr.u8.js"].map(e=>t.l(e))).then(()=>e(148296)))},560866,t=>{t.v(e=>Promise.all(["static/chunks/0jh9xnkimjkyh.js"].map(e=>t.l(e))).then(()=>e(618121)))},137857,t=>{t.v(e=>Promise.all(["static/chunks/08o-zmr-40r5g.js"].map(e=>t.l(e))).then(()=>e(873278)))},963197,t=>{t.v(e=>Promise.all(["static/chunks/023lpc7n70tav.css","static/chunks/11_tltlhc8.sj.js"].map(e=>t.l(e))).then(()=>e(102199)))},940730,t=>{t.v(e=>Promise.all(["static/chunks/0wv0h27jafag4.js","static/chunks/0hrbuvzuxrjfl.js","static/chunks/0ejc_zlyocy_r.css"].map(e=>t.l(e))).then(()=>e(635473)))},509433,t=>{t.v(e=>Promise.all(["static/chunks/0esty_4gmxfq3.js","static/chunks/0rv0nj__24y60.js"].map(e=>t.l(e))).then(()=>e(934731)))},545594,t=>{t.v(e=>Promise.all(["static/chunks/10jfi.9fw5g48.js"].map(e=>t.l(e))).then(()=>e(775846)))},872082,t=>{t.v(e=>Promise.all(["static/chunks/07ge_85i__6pb.js","static/chunks/0c_vfzf1z7-rt.js","static/chunks/12md9ajfx2o85.css"].map(e=>t.l(e))).then(()=>e(831214)))},924017,t=>{t.v(e=>Promise.all(["static/chunks/0i_gi.kq2dau8.css","static/chunks/0qz5~3wquy~3q.css","static/chunks/05gt_g_vbzh-5.css","static/chunks/0cjmfclopcxho.css","static/chunks/0kvsjgpj7zcb9.css","static/chunks/0hl_7y464qll6.css","static/chunks/0lh~x2tf~i1hd.css","static/chunks/12md9ajfx2o85.css","static/chunks/0me8ho8j4tq7_.css","static/chunks/0dws-faof-ryx.css","static/chunks/0bzmgi.ynrn.0.css","static/chunks/0wwvc4zc2q6bn.js","static/chunks/12u4g4uzrlten.js","static/chunks/0jokpgh485~28.js","static/chunks/0qpq0~_58fe9a.js"].map(e=>t.l(e))).then(()=>e(797492)))},974099,t=>{t.v(e=>Promise.all(["static/chunks/0hl_7y464qll6.css","static/chunks/0lh~x2tf~i1hd.css","static/chunks/0kvsjgpj7zcb9.css","static/chunks/12md9ajfx2o85.css","static/chunks/0me8ho8j4tq7_.css","static/chunks/0dws-faof-ryx.css","static/chunks/0i_gi.kq2dau8.css","static/chunks/01gi~q0c6ez6..js","static/chunks/12odetnu-lyrr.js","static/chunks/0i_3.3rdsu2mw.js"].map(e=>t.l(e))).then(()=>e(108792)))},473446,t=>{t.v(e=>Promise.all(["static/chunks/0l5ab99s37x5f.js"].map(e=>t.l(e))).then(()=>e(70280)))},876468,t=>{t.v(e=>Promise.all(["static/chunks/0~2l1-8o4delc.js"].map(e=>t.l(e))).then(()=>e(964938)))}]);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,769178,e=>{"use strict";var s=e.i(344180),t=e.i(799543),i=e.i(260218),a=e.i(767467);e.s(["SettingsPageLayout",0,function({title:e,children:l}){let n=(0,t.useRouter)();return(0,s.jsxs)("div",{className:"h-full flex flex-col",children:[(0,s.jsxs)("header",{className:"flex items-center gap-2 px-4 py-3 border-b shrink-0",children:[(0,s.jsx)(i.Button,{variant:"ghost",size:"icon",onClick:()=>n.back(),children:(0,s.jsx)(a.ArrowLeft,{className:"size-4"})}),(0,s.jsx)("h1",{className:"text-base font-medium",children:e})]}),(0,s.jsx)("div",{className:"flex-1 overflow-y-auto",children:l})]})}])},727907,e=>{"use strict";var s=e.i(344180),t=e.i(244073),i=e.i(769178),a=e.i(756638);e.s(["default",0,function(){let e=(0,t.useTranslations)("prompts");return(0,s.jsx)(i.SettingsPageLayout,{title:e("title"),children:(0,s.jsx)(a.PromptsDialog,{open:!0,onOpenChange:()=>{},standalone:!0})})}])}]);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,129403,t=>{"use strict";t.s(["getDefaultExportFromCjs",0,function(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}])}]);
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
.monaco-editor .peekview-widget .head{box-sizing:border-box;flex-wrap:nowrap;justify-content:space-between;display:flex}.monaco-editor .peekview-widget .head .peekview-title{text-overflow:ellipsis;align-items:baseline;min-width:0;margin-left:20px;font-size:13px;display:flex;overflow:hidden}.monaco-editor .peekview-widget .head .peekview-title.clickable{cursor:pointer}.monaco-editor .peekview-widget .head .peekview-title .dirname:not(:empty){margin-left:.5em;font-size:.9em}.monaco-editor .peekview-widget .head .peekview-title .meta{white-space:nowrap;text-overflow:ellipsis;overflow:hidden}.monaco-editor .peekview-widget .head .peekview-title .dirname,.monaco-editor .peekview-widget .head .peekview-title .filename{text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.monaco-editor .peekview-widget .head .peekview-title .meta:not(:empty):before{content:"-";padding:0 .3em}.monaco-editor .peekview-widget .head .peekview-actions{text-align:right;flex:1;padding-right:2px}.monaco-editor .peekview-widget .head .peekview-actions>.monaco-action-bar{display:inline-block}.monaco-editor .peekview-widget .head .peekview-actions>.monaco-action-bar,.monaco-editor .peekview-widget .head .peekview-actions>.monaco-action-bar>.actions-container{height:100%}.monaco-editor .peekview-widget>.body{border-top:1px solid;position:relative}.monaco-editor .peekview-widget .head .peekview-title .codicon{align-self:center;margin-right:4px}.monaco-editor .peekview-widget .monaco-list .monaco-list-row.focused .codicon{color:inherit!important}
|
|
2
|
+
.monaco-editor .zone-widget{z-index:10;position:absolute}.monaco-editor .zone-widget .zone-widget-container{border-top-style:solid;border-top-width:0;border-bottom-style:solid;border-bottom-width:0;position:relative}
|
|
3
|
+
.monaco-editor .monaco-editor-overlaymessage{z-index:10000;padding-bottom:8px}.monaco-editor .monaco-editor-overlaymessage.below{z-index:10000;padding-top:8px;padding-bottom:0}@keyframes fadeIn{0%{opacity:0}to{opacity:1}}.monaco-editor .monaco-editor-overlaymessage.fadeIn{animation:.15s ease-out fadeIn}@keyframes fadeOut{0%{opacity:1}to{opacity:0}}.monaco-editor .monaco-editor-overlaymessage.fadeOut{animation:.1s ease-out fadeOut}.monaco-editor .monaco-editor-overlaymessage .message{color:var(--vscode-editorHoverWidget-foreground);background-color:var(--vscode-editorHoverWidget-background);border:1px solid var(--vscode-inputValidation-infoBorder);border-radius:3px;padding:2px 4px}.monaco-editor .monaco-editor-overlaymessage .message p{margin-block:0}.monaco-editor .monaco-editor-overlaymessage .message a{color:var(--vscode-textLink-foreground)}.monaco-editor .monaco-editor-overlaymessage .message a:hover{color:var(--vscode-textLink-activeForeground)}.monaco-editor.hc-black .monaco-editor-overlaymessage .message,.monaco-editor.hc-light .monaco-editor-overlaymessage .message{border-width:2px}.monaco-editor .monaco-editor-overlaymessage .anchor{z-index:1000;border:8px solid #0000;position:absolute;left:2px;width:0!important;height:0!important}.monaco-editor .monaco-editor-overlaymessage .anchor.top{border-bottom-color:var(--vscode-inputValidation-infoBorder)}.monaco-editor .monaco-editor-overlaymessage .anchor.below{border-top-color:var(--vscode-inputValidation-infoBorder)}.monaco-editor .monaco-editor-overlaymessage:not(.below) .anchor.top,.monaco-editor .monaco-editor-overlaymessage.below .anchor.below{display:none}.monaco-editor .monaco-editor-overlaymessage.below .anchor.top{display:inherit;top:-8px}
|
|
4
|
+
.action-widget{z-index:40;background-color:var(--vscode-menu-background);width:100%;min-width:100px;max-width:80vw;color:var(--vscode-menu-foreground);box-shadow:0 2px 8px var(--vscode-widget-shadow);border-radius:5px;padding:4px 0;font-size:13px;display:block;border:1px solid var(--vscode-editorHoverWidget-border)!important}.context-view-block{cursor:initial;z-index:-1;width:100%;height:100%;position:fixed;top:0;left:0}.context-view-pointerBlock{cursor:initial;z-index:2;width:100%;height:100%;position:fixed;top:0;left:0}.action-widget .monaco-list{-webkit-user-select:none;user-select:none;border:0!important}.action-widget .monaco-list:focus:before{outline:0!important}.action-widget .monaco-list .monaco-scrollable-element{overflow:visible}.action-widget .monaco-list .monaco-list-row{white-space:nowrap;cursor:pointer;touch-action:none;border-radius:3px;width:calc(100% - 8px);margin:0 4px;padding:0 4px}.action-widget .monaco-list .monaco-list-row.action.focused:not(.option-disabled){color:var(--vscode-list-activeSelectionForeground);outline:1px solid var(--vscode-menu-selectionBorder,transparent);outline-offset:-1px;background-color:var(--vscode-list-activeSelectionBackground)!important}.action-widget .monaco-list-row.group-header{font-size:13px;font-weight:600;color:var(--vscode-descriptionForeground)!important}.action-widget .monaco-list-row.group-header:not(:first-of-type){margin-top:2px}.action-widget .monaco-scrollable-element .monaco-list-rows .monaco-list-row.separator{border-top:1px solid var(--vscode-editorHoverWidget-border);color:var(--vscode-descriptionForeground);cursor:default;-webkit-user-select:none;user-select:none;border-radius:0;width:100%;margin:4px 0;font-size:12px}.action-widget .monaco-scrollable-element .monaco-list-rows .monaco-list-row.separator.focused{background-color:#0000;border-radius:0;outline:0 solid}.action-widget .monaco-list-row.separator:first-of-type{border-top:none;margin-top:0}.action-widget .monaco-list .group-header,.action-widget .monaco-list .option-disabled,.action-widget .monaco-list .option-disabled:before,.action-widget .monaco-list .option-disabled .focused,.action-widget .monaco-list .option-disabled .focused:before{-webkit-touch-callout:none;-webkit-user-select:none;user-select:none;cursor:default!important;background-color:#0000!important;outline:0 solid!important}.action-widget .monaco-list-row.action{align-items:center;gap:4px;display:flex}.action-widget .monaco-list-row.action.option-disabled,.action-widget .monaco-list:focus .monaco-list-row.focused.action.option-disabled,.action-widget .monaco-list-row.action.option-disabled .codicon,.action-widget .monaco-list:not(.drop-target):not(.dragging) .monaco-list-row:hover:not(.selected):not(.focused).option-disabled{color:var(--vscode-disabledForeground)}.action-widget .monaco-list-row.action:not(.option-disabled) .codicon{color:inherit}.action-widget .monaco-list-row.action .title{text-overflow:ellipsis;flex:1;overflow:hidden}.action-widget .monaco-list-row.action .monaco-keybinding>.monaco-keybinding-key{background-color:var(--vscode-keybindingLabel-background);color:var(--vscode-keybindingLabel-foreground);border-style:solid;border-width:1px;border-color:var(--vscode-keybindingLabel-border);border-bottom-color:var(--vscode-keybindingLabel-bottomBorder);box-shadow:inset 0 -1px 0 var(--vscode-widget-shadow);border-radius:3px}.action-widget .action-widget-action-bar{background-color:var(--vscode-menu-background);border-top:1px solid var(--vscode-editorHoverWidget-border);margin-top:4px}.action-widget .action-widget-action-bar:before{content:"";width:100%;display:block}.action-widget .action-widget-action-bar .actions-container{width:auto;padding:4px 8px 2px 28px}.action-widget-action-bar .action-label{color:var(--vscode-textLink-activeForeground);pointer-events:all;padding:0;font-size:13px;line-height:22px}.action-widget-action-bar .action-item{pointer-events:none;margin-right:16px}.action-widget-action-bar .action-label:hover{background-color:#0000!important}.monaco-action-bar .actions-container.highlight-toggled .action-label.checked{background:var(--vscode-actionBar-toggledBackground)!important}.action-widget .monaco-list .monaco-list-row .description{opacity:.7;margin-left:.5em}.action-widget-delegate-label{align-items:center;gap:4px;font-size:12px;display:flex}
|
|
5
|
+
.monaco-editor .rename-box{z-index:100;color:inherit;border-radius:4px}.monaco-editor .rename-box.preview{padding:4px 4px 0}.monaco-editor .rename-box .rename-input-with-button{border-radius:2px;width:calc(100% - 8px);padding:3px}.monaco-editor .rename-box .rename-input{width:calc(100% - 8px);padding:0}.monaco-editor .rename-box .rename-input:focus{outline:none}.monaco-editor .rename-box .rename-suggestions-button{cursor:pointer;background-color:#0000;border:none;border-radius:5px;align-items:center;padding:3px;display:flex}.monaco-editor .rename-box .rename-suggestions-button:hover{background-color:var(--vscode-toolbar-hoverBackground)}.monaco-editor .rename-box .rename-candidate-list-container .monaco-list-row{border-radius:2px}.monaco-editor .rename-box .rename-label{opacity:.8;display:none}.monaco-editor .rename-box.preview .rename-label{display:inherit}
|