@chrisjowen/wheelhouse 0.0.0-stage → 0.1.0
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/LICENSE +21 -0
- package/README.md +112 -2
- package/build/client/_app/immutable/assets/0.DaQhCSel.css +1 -0
- package/build/client/_app/immutable/assets/0.DaQhCSel.css.br +0 -0
- package/build/client/_app/immutable/assets/0.DaQhCSel.css.gz +0 -0
- package/build/client/_app/immutable/assets/12.DT1C9nmd.css +1 -0
- package/build/client/_app/immutable/assets/12.DT1C9nmd.css.br +0 -0
- package/build/client/_app/immutable/assets/12.DT1C9nmd.css.gz +0 -0
- package/build/client/_app/immutable/assets/14.CjNfSPQ6.css +1 -0
- package/build/client/_app/immutable/assets/14.CjNfSPQ6.css.br +0 -0
- package/build/client/_app/immutable/assets/14.CjNfSPQ6.css.gz +0 -0
- package/build/client/_app/immutable/assets/15.KLSHp5Yu.css +1 -0
- package/build/client/_app/immutable/assets/15.KLSHp5Yu.css.br +0 -0
- package/build/client/_app/immutable/assets/15.KLSHp5Yu.css.gz +0 -0
- package/build/client/_app/immutable/assets/2.DvyEOdRq.css +1 -0
- package/build/client/_app/immutable/assets/2.DvyEOdRq.css.br +0 -0
- package/build/client/_app/immutable/assets/2.DvyEOdRq.css.gz +0 -0
- package/build/client/_app/immutable/assets/4.5dJKCkOT.css +1 -0
- package/build/client/_app/immutable/assets/4.5dJKCkOT.css.br +0 -0
- package/build/client/_app/immutable/assets/4.5dJKCkOT.css.gz +0 -0
- package/build/client/_app/immutable/assets/MicButton.Dga9zAug.css +1 -0
- package/build/client/_app/immutable/assets/MicButton.Dga9zAug.css.br +2 -0
- package/build/client/_app/immutable/assets/MicButton.Dga9zAug.css.gz +0 -0
- package/build/client/_app/immutable/assets/inter-cyrillic-ext-wght-italic.B5xAaiFk.woff2 +0 -0
- package/build/client/_app/immutable/assets/inter-cyrillic-ext-wght-normal.BOeWTOD4.woff2 +0 -0
- package/build/client/_app/immutable/assets/inter-cyrillic-wght-italic.DzZdc28x.woff2 +0 -0
- package/build/client/_app/immutable/assets/inter-cyrillic-wght-normal.DqGufNeO.woff2 +0 -0
- package/build/client/_app/immutable/assets/inter-greek-ext-wght-italic.DcOpz6Lw.woff2 +0 -0
- package/build/client/_app/immutable/assets/inter-greek-ext-wght-normal.DlzME5K_.woff2 +0 -0
- package/build/client/_app/immutable/assets/inter-greek-wght-italic.CILZdfAp.woff2 +0 -0
- package/build/client/_app/immutable/assets/inter-greek-wght-normal.CkhJZR-_.woff2 +0 -0
- package/build/client/_app/immutable/assets/inter-latin-ext-wght-italic.0pjOp8NU.woff2 +0 -0
- package/build/client/_app/immutable/assets/inter-latin-ext-wght-normal.DO1Apj_S.woff2 +0 -0
- package/build/client/_app/immutable/assets/inter-latin-wght-italic.DpCbqKDY.woff2 +0 -0
- package/build/client/_app/immutable/assets/inter-latin-wght-normal.Dx4kXJAl.woff2 +0 -0
- package/build/client/_app/immutable/assets/inter-vietnamese-wght-italic.K3WlGtc8.woff2 +0 -0
- package/build/client/_app/immutable/assets/inter-vietnamese-wght-normal.CBcvBZtf.woff2 +0 -0
- package/build/client/_app/immutable/assets/jetbrains-mono-cyrillic-wght-normal.D73BlboJ.woff2 +0 -0
- package/build/client/_app/immutable/assets/jetbrains-mono-greek-wght-normal.Bw9x6K1M.woff2 +0 -0
- package/build/client/_app/immutable/assets/jetbrains-mono-latin-ext-wght-normal.DBQx-q_a.woff2 +0 -0
- package/build/client/_app/immutable/assets/jetbrains-mono-latin-wght-normal.B9CIFXIH.woff2 +0 -0
- package/build/client/_app/immutable/assets/jetbrains-mono-vietnamese-wght-normal.Bt-aOZkq.woff2 +0 -0
- package/build/client/_app/immutable/assets/newsreader-latin-ext-wght-italic.DFS986qL.woff2 +0 -0
- package/build/client/_app/immutable/assets/newsreader-latin-ext-wght-normal.C-3rgBeH.woff2 +0 -0
- package/build/client/_app/immutable/assets/newsreader-latin-wght-italic.Bxi8ein9.woff2 +0 -0
- package/build/client/_app/immutable/assets/newsreader-latin-wght-normal.CCVVNp6i.woff2 +0 -0
- package/build/client/_app/immutable/assets/newsreader-vietnamese-wght-italic.xAqemagA.woff2 +0 -0
- package/build/client/_app/immutable/assets/newsreader-vietnamese-wght-normal.Czsa-EzN.woff2 +0 -0
- package/build/client/_app/immutable/chunks/36FDwM1G.js +1 -0
- package/build/client/_app/immutable/chunks/36FDwM1G.js.br +0 -0
- package/build/client/_app/immutable/chunks/36FDwM1G.js.gz +0 -0
- package/build/client/_app/immutable/chunks/B-qIQCd3.js +16 -0
- package/build/client/_app/immutable/chunks/B-qIQCd3.js.br +0 -0
- package/build/client/_app/immutable/chunks/B-qIQCd3.js.gz +0 -0
- package/build/client/_app/immutable/chunks/B1XxiJam.js +1 -0
- package/build/client/_app/immutable/chunks/B1XxiJam.js.br +0 -0
- package/build/client/_app/immutable/chunks/B1XxiJam.js.gz +0 -0
- package/build/client/_app/immutable/chunks/B2wEHue2.js +1 -0
- package/build/client/_app/immutable/chunks/B2wEHue2.js.br +0 -0
- package/build/client/_app/immutable/chunks/B2wEHue2.js.gz +0 -0
- package/build/client/_app/immutable/chunks/BAurN1n6.js +2 -0
- package/build/client/_app/immutable/chunks/BAurN1n6.js.br +0 -0
- package/build/client/_app/immutable/chunks/BAurN1n6.js.gz +0 -0
- package/build/client/_app/immutable/chunks/BEAYWcbT.js +1 -0
- package/build/client/_app/immutable/chunks/BEAYWcbT.js.br +0 -0
- package/build/client/_app/immutable/chunks/BEAYWcbT.js.gz +0 -0
- package/build/client/_app/immutable/chunks/BGINfGsV.js +1 -0
- package/build/client/_app/immutable/chunks/BGINfGsV.js.br +4 -0
- package/build/client/_app/immutable/chunks/BGINfGsV.js.gz +0 -0
- package/build/client/_app/immutable/chunks/BHsdHLbF.js +1 -0
- package/build/client/_app/immutable/chunks/BHsdHLbF.js.br +0 -0
- package/build/client/_app/immutable/chunks/BHsdHLbF.js.gz +0 -0
- package/build/client/_app/immutable/chunks/BR5v76-T.js +1 -0
- package/build/client/_app/immutable/chunks/BR5v76-T.js.br +0 -0
- package/build/client/_app/immutable/chunks/BR5v76-T.js.gz +0 -0
- package/build/client/_app/immutable/chunks/BUo4hMcM.js +1 -0
- package/build/client/_app/immutable/chunks/BUo4hMcM.js.br +0 -0
- package/build/client/_app/immutable/chunks/BUo4hMcM.js.gz +0 -0
- package/build/client/_app/immutable/chunks/BVVO3JPx.js +1 -0
- package/build/client/_app/immutable/chunks/BVVO3JPx.js.br +0 -0
- package/build/client/_app/immutable/chunks/BVVO3JPx.js.gz +0 -0
- package/build/client/_app/immutable/chunks/BXN538J3.js +1 -0
- package/build/client/_app/immutable/chunks/BXN538J3.js.br +2 -0
- package/build/client/_app/immutable/chunks/BXN538J3.js.gz +0 -0
- package/build/client/_app/immutable/chunks/BZm5e4fE.js +1 -0
- package/build/client/_app/immutable/chunks/BZm5e4fE.js.br +0 -0
- package/build/client/_app/immutable/chunks/BZm5e4fE.js.gz +0 -0
- package/build/client/_app/immutable/chunks/Bfi4vm-w.js +1 -0
- package/build/client/_app/immutable/chunks/Bfi4vm-w.js.br +0 -0
- package/build/client/_app/immutable/chunks/Bfi4vm-w.js.gz +0 -0
- package/build/client/_app/immutable/chunks/BiTivU7x.js +1 -0
- package/build/client/_app/immutable/chunks/BiTivU7x.js.br +0 -0
- package/build/client/_app/immutable/chunks/BiTivU7x.js.gz +0 -0
- package/build/client/_app/immutable/chunks/BiuLIp4b.js +1 -0
- package/build/client/_app/immutable/chunks/BiuLIp4b.js.br +0 -0
- package/build/client/_app/immutable/chunks/BiuLIp4b.js.gz +0 -0
- package/build/client/_app/immutable/chunks/Bns_F-QV.js +1 -0
- package/build/client/_app/immutable/chunks/Bns_F-QV.js.br +0 -0
- package/build/client/_app/immutable/chunks/Bns_F-QV.js.gz +0 -0
- package/build/client/_app/immutable/chunks/Brlpgp90.js +1 -0
- package/build/client/_app/immutable/chunks/Brlpgp90.js.br +0 -0
- package/build/client/_app/immutable/chunks/Brlpgp90.js.gz +0 -0
- package/build/client/_app/immutable/chunks/BunkbzFG.js +1 -0
- package/build/client/_app/immutable/chunks/BunkbzFG.js.br +0 -0
- package/build/client/_app/immutable/chunks/BunkbzFG.js.gz +0 -0
- package/build/client/_app/immutable/chunks/BwOfqJw9.js +1 -0
- package/build/client/_app/immutable/chunks/BwOfqJw9.js.br +0 -0
- package/build/client/_app/immutable/chunks/BwOfqJw9.js.gz +0 -0
- package/build/client/_app/immutable/chunks/C-xrRA1Y.js +1 -0
- package/build/client/_app/immutable/chunks/C-xrRA1Y.js.br +0 -0
- package/build/client/_app/immutable/chunks/C-xrRA1Y.js.gz +0 -0
- package/build/client/_app/immutable/chunks/C2_XZrIO.js +7 -0
- package/build/client/_app/immutable/chunks/C2_XZrIO.js.br +0 -0
- package/build/client/_app/immutable/chunks/C2_XZrIO.js.gz +0 -0
- package/build/client/_app/immutable/chunks/C2d4bDYU.js +1 -0
- package/build/client/_app/immutable/chunks/C2d4bDYU.js.br +0 -0
- package/build/client/_app/immutable/chunks/C2d4bDYU.js.gz +0 -0
- package/build/client/_app/immutable/chunks/C6BQPSOs.js +62 -0
- package/build/client/_app/immutable/chunks/C6BQPSOs.js.br +0 -0
- package/build/client/_app/immutable/chunks/C6BQPSOs.js.gz +0 -0
- package/build/client/_app/immutable/chunks/CDphfOBv.js +1 -0
- package/build/client/_app/immutable/chunks/CDphfOBv.js.br +0 -0
- package/build/client/_app/immutable/chunks/CDphfOBv.js.gz +0 -0
- package/build/client/_app/immutable/chunks/CHoQMvOZ.js +1 -0
- package/build/client/_app/immutable/chunks/CHoQMvOZ.js.br +0 -0
- package/build/client/_app/immutable/chunks/CHoQMvOZ.js.gz +0 -0
- package/build/client/_app/immutable/chunks/CIE0U5Ih.js +1 -0
- package/build/client/_app/immutable/chunks/CIE0U5Ih.js.br +0 -0
- package/build/client/_app/immutable/chunks/CIE0U5Ih.js.gz +0 -0
- package/build/client/_app/immutable/chunks/CLs9Rkbg.js +1 -0
- package/build/client/_app/immutable/chunks/CLs9Rkbg.js.br +0 -0
- package/build/client/_app/immutable/chunks/CLs9Rkbg.js.gz +0 -0
- package/build/client/_app/immutable/chunks/COQ3aAYj.js +1 -0
- package/build/client/_app/immutable/chunks/COQ3aAYj.js.br +0 -0
- package/build/client/_app/immutable/chunks/COQ3aAYj.js.gz +0 -0
- package/build/client/_app/immutable/chunks/COiIt96y.js +1 -0
- package/build/client/_app/immutable/chunks/COiIt96y.js.br +0 -0
- package/build/client/_app/immutable/chunks/COiIt96y.js.gz +0 -0
- package/build/client/_app/immutable/chunks/CQ7gIAH8.js +1 -0
- package/build/client/_app/immutable/chunks/CQ7gIAH8.js.br +2 -0
- package/build/client/_app/immutable/chunks/CQ7gIAH8.js.gz +0 -0
- package/build/client/_app/immutable/chunks/CQlHU-Rx.js +1 -0
- package/build/client/_app/immutable/chunks/CQlHU-Rx.js.br +0 -0
- package/build/client/_app/immutable/chunks/CQlHU-Rx.js.gz +0 -0
- package/build/client/_app/immutable/chunks/CR7y1ULG.js +1 -0
- package/build/client/_app/immutable/chunks/CR7y1ULG.js.br +0 -0
- package/build/client/_app/immutable/chunks/CR7y1ULG.js.gz +0 -0
- package/build/client/_app/immutable/chunks/CXfdgbLv.js +1 -0
- package/build/client/_app/immutable/chunks/CXfdgbLv.js.br +0 -0
- package/build/client/_app/immutable/chunks/CXfdgbLv.js.gz +0 -0
- package/build/client/_app/immutable/chunks/CeYIQAXD.js +1 -0
- package/build/client/_app/immutable/chunks/CeYIQAXD.js.br +0 -0
- package/build/client/_app/immutable/chunks/CeYIQAXD.js.gz +0 -0
- package/build/client/_app/immutable/chunks/CewXGI4o.js +14 -0
- package/build/client/_app/immutable/chunks/CewXGI4o.js.br +0 -0
- package/build/client/_app/immutable/chunks/CewXGI4o.js.gz +0 -0
- package/build/client/_app/immutable/chunks/CfdzAfq2.js +1 -0
- package/build/client/_app/immutable/chunks/CfdzAfq2.js.br +0 -0
- package/build/client/_app/immutable/chunks/CfdzAfq2.js.gz +0 -0
- package/build/client/_app/immutable/chunks/CkFDaaNz.js +1 -0
- package/build/client/_app/immutable/chunks/CkFDaaNz.js.br +0 -0
- package/build/client/_app/immutable/chunks/CkFDaaNz.js.gz +0 -0
- package/build/client/_app/immutable/chunks/CkLriSVx.js +1 -0
- package/build/client/_app/immutable/chunks/CkLriSVx.js.br +0 -0
- package/build/client/_app/immutable/chunks/CkLriSVx.js.gz +0 -0
- package/build/client/_app/immutable/chunks/Clzs_eXS.js +5 -0
- package/build/client/_app/immutable/chunks/Clzs_eXS.js.br +0 -0
- package/build/client/_app/immutable/chunks/Clzs_eXS.js.gz +0 -0
- package/build/client/_app/immutable/chunks/CrCQ2NNA.js +1 -0
- package/build/client/_app/immutable/chunks/CrCQ2NNA.js.br +0 -0
- package/build/client/_app/immutable/chunks/CrCQ2NNA.js.gz +0 -0
- package/build/client/_app/immutable/chunks/CrgqcyB_.js +1 -0
- package/build/client/_app/immutable/chunks/CrgqcyB_.js.br +0 -0
- package/build/client/_app/immutable/chunks/CrgqcyB_.js.gz +0 -0
- package/build/client/_app/immutable/chunks/CtlVBKf-.js +1 -0
- package/build/client/_app/immutable/chunks/CtlVBKf-.js.br +0 -0
- package/build/client/_app/immutable/chunks/CtlVBKf-.js.gz +0 -0
- package/build/client/_app/immutable/chunks/D4aeBIhU.js +1 -0
- package/build/client/_app/immutable/chunks/D4aeBIhU.js.br +0 -0
- package/build/client/_app/immutable/chunks/D4aeBIhU.js.gz +0 -0
- package/build/client/_app/immutable/chunks/D7IP_ZEm.js +1 -0
- package/build/client/_app/immutable/chunks/D7IP_ZEm.js.br +0 -0
- package/build/client/_app/immutable/chunks/D7IP_ZEm.js.gz +0 -0
- package/build/client/_app/immutable/chunks/D8Hx-_mj.js +1 -0
- package/build/client/_app/immutable/chunks/D8Hx-_mj.js.br +3 -0
- package/build/client/_app/immutable/chunks/D8Hx-_mj.js.gz +0 -0
- package/build/client/_app/immutable/chunks/DC8T2WRZ.js +1 -0
- package/build/client/_app/immutable/chunks/DC8T2WRZ.js.br +0 -0
- package/build/client/_app/immutable/chunks/DC8T2WRZ.js.gz +0 -0
- package/build/client/_app/immutable/chunks/DGy76IbW.js +2 -0
- package/build/client/_app/immutable/chunks/DGy76IbW.js.br +0 -0
- package/build/client/_app/immutable/chunks/DGy76IbW.js.gz +0 -0
- package/build/client/_app/immutable/chunks/DIABVMrA.js +1 -0
- package/build/client/_app/immutable/chunks/DIABVMrA.js.br +0 -0
- package/build/client/_app/immutable/chunks/DIABVMrA.js.gz +0 -0
- package/build/client/_app/immutable/chunks/DKQe4Tss.js +1 -0
- package/build/client/_app/immutable/chunks/DKQe4Tss.js.br +0 -0
- package/build/client/_app/immutable/chunks/DKQe4Tss.js.gz +0 -0
- package/build/client/_app/immutable/chunks/DLith9Yi.js +1 -0
- package/build/client/_app/immutable/chunks/DLith9Yi.js.br +0 -0
- package/build/client/_app/immutable/chunks/DLith9Yi.js.gz +0 -0
- package/build/client/_app/immutable/chunks/DPTtvukI.js +1 -0
- package/build/client/_app/immutable/chunks/DPTtvukI.js.br +0 -0
- package/build/client/_app/immutable/chunks/DPTtvukI.js.gz +0 -0
- package/build/client/_app/immutable/chunks/DX4qG4td.js +1 -0
- package/build/client/_app/immutable/chunks/DX4qG4td.js.br +1 -0
- package/build/client/_app/immutable/chunks/DX4qG4td.js.gz +0 -0
- package/build/client/_app/immutable/chunks/Da92_52d.js +1 -0
- package/build/client/_app/immutable/chunks/Da92_52d.js.br +0 -0
- package/build/client/_app/immutable/chunks/Da92_52d.js.gz +0 -0
- package/build/client/_app/immutable/chunks/Db0WMrvR.js +1 -0
- package/build/client/_app/immutable/chunks/Db0WMrvR.js.br +0 -0
- package/build/client/_app/immutable/chunks/Db0WMrvR.js.gz +0 -0
- package/build/client/_app/immutable/chunks/Dlb_KqyS.js +2 -0
- package/build/client/_app/immutable/chunks/Dlb_KqyS.js.br +0 -0
- package/build/client/_app/immutable/chunks/Dlb_KqyS.js.gz +0 -0
- package/build/client/_app/immutable/chunks/DmcreR7o.js +1 -0
- package/build/client/_app/immutable/chunks/DmcreR7o.js.br +0 -0
- package/build/client/_app/immutable/chunks/DmcreR7o.js.gz +0 -0
- package/build/client/_app/immutable/chunks/Dq9kJk5R.js +1 -0
- package/build/client/_app/immutable/chunks/Dq9kJk5R.js.br +0 -0
- package/build/client/_app/immutable/chunks/Dq9kJk5R.js.gz +0 -0
- package/build/client/_app/immutable/chunks/DsnmJJEf.js +1 -0
- package/build/client/_app/immutable/chunks/DsnmJJEf.js.br +2 -0
- package/build/client/_app/immutable/chunks/DsnmJJEf.js.gz +0 -0
- package/build/client/_app/immutable/chunks/DxGQT-Hz.js +1 -0
- package/build/client/_app/immutable/chunks/DxGQT-Hz.js.br +0 -0
- package/build/client/_app/immutable/chunks/DxGQT-Hz.js.gz +0 -0
- package/build/client/_app/immutable/chunks/ET-O1REu.js +1 -0
- package/build/client/_app/immutable/chunks/ET-O1REu.js.br +0 -0
- package/build/client/_app/immutable/chunks/ET-O1REu.js.gz +0 -0
- package/build/client/_app/immutable/chunks/Ewrw42Vq.js +1 -0
- package/build/client/_app/immutable/chunks/Ewrw42Vq.js.br +0 -0
- package/build/client/_app/immutable/chunks/Ewrw42Vq.js.gz +0 -0
- package/build/client/_app/immutable/chunks/FQ69txbU.js +1 -0
- package/build/client/_app/immutable/chunks/FQ69txbU.js.br +0 -0
- package/build/client/_app/immutable/chunks/FQ69txbU.js.gz +0 -0
- package/build/client/_app/immutable/chunks/L-6wuY5f.js +2 -0
- package/build/client/_app/immutable/chunks/L-6wuY5f.js.br +0 -0
- package/build/client/_app/immutable/chunks/L-6wuY5f.js.gz +0 -0
- package/build/client/_app/immutable/chunks/M201SoVK.js +1 -0
- package/build/client/_app/immutable/chunks/M201SoVK.js.br +1 -0
- package/build/client/_app/immutable/chunks/M201SoVK.js.gz +0 -0
- package/build/client/_app/immutable/chunks/OeqXO44y.js +1 -0
- package/build/client/_app/immutable/chunks/OeqXO44y.js.br +0 -0
- package/build/client/_app/immutable/chunks/OeqXO44y.js.gz +0 -0
- package/build/client/_app/immutable/chunks/PPVm8Dsz.js +1 -0
- package/build/client/_app/immutable/chunks/PPVm8Dsz.js.br +0 -0
- package/build/client/_app/immutable/chunks/PPVm8Dsz.js.gz +0 -0
- package/build/client/_app/immutable/chunks/QAFSHLn2.js +1 -0
- package/build/client/_app/immutable/chunks/QAFSHLn2.js.br +0 -0
- package/build/client/_app/immutable/chunks/QAFSHLn2.js.gz +0 -0
- package/build/client/_app/immutable/chunks/Tm9AblHs.js +1 -0
- package/build/client/_app/immutable/chunks/Tm9AblHs.js.br +0 -0
- package/build/client/_app/immutable/chunks/Tm9AblHs.js.gz +0 -0
- package/build/client/_app/immutable/chunks/bvY4yrzM.js +4 -0
- package/build/client/_app/immutable/chunks/bvY4yrzM.js.br +0 -0
- package/build/client/_app/immutable/chunks/bvY4yrzM.js.gz +0 -0
- package/build/client/_app/immutable/chunks/cAfuCUf-.js +1 -0
- package/build/client/_app/immutable/chunks/cAfuCUf-.js.br +0 -0
- package/build/client/_app/immutable/chunks/cAfuCUf-.js.gz +0 -0
- package/build/client/_app/immutable/chunks/eMSiEzFi.js +1 -0
- package/build/client/_app/immutable/chunks/eMSiEzFi.js.br +0 -0
- package/build/client/_app/immutable/chunks/eMSiEzFi.js.gz +0 -0
- package/build/client/_app/immutable/chunks/iVpzjqp1.js +1 -0
- package/build/client/_app/immutable/chunks/iVpzjqp1.js.br +0 -0
- package/build/client/_app/immutable/chunks/iVpzjqp1.js.gz +0 -0
- package/build/client/_app/immutable/chunks/m3YfhLk1.js +1 -0
- package/build/client/_app/immutable/chunks/m3YfhLk1.js.br +0 -0
- package/build/client/_app/immutable/chunks/m3YfhLk1.js.gz +0 -0
- package/build/client/_app/immutable/chunks/p7x6PRF0.js +1 -0
- package/build/client/_app/immutable/chunks/p7x6PRF0.js.br +0 -0
- package/build/client/_app/immutable/chunks/p7x6PRF0.js.gz +0 -0
- package/build/client/_app/immutable/chunks/t4rxsdjl.js +74 -0
- package/build/client/_app/immutable/chunks/t4rxsdjl.js.br +0 -0
- package/build/client/_app/immutable/chunks/t4rxsdjl.js.gz +0 -0
- package/build/client/_app/immutable/chunks/uD7-7yV9.js +1 -0
- package/build/client/_app/immutable/chunks/uD7-7yV9.js.br +4 -0
- package/build/client/_app/immutable/chunks/uD7-7yV9.js.gz +0 -0
- package/build/client/_app/immutable/chunks/wbPk3Yxo.js +81 -0
- package/build/client/_app/immutable/chunks/wbPk3Yxo.js.br +0 -0
- package/build/client/_app/immutable/chunks/wbPk3Yxo.js.gz +0 -0
- package/build/client/_app/immutable/entry/app.D22_AlD8.js +2 -0
- package/build/client/_app/immutable/entry/app.D22_AlD8.js.br +0 -0
- package/build/client/_app/immutable/entry/app.D22_AlD8.js.gz +0 -0
- package/build/client/_app/immutable/entry/start.xwa7znED.js +1 -0
- package/build/client/_app/immutable/entry/start.xwa7znED.js.br +0 -0
- package/build/client/_app/immutable/entry/start.xwa7znED.js.gz +0 -0
- package/build/client/_app/immutable/nodes/0.DsfUbybd.js +5 -0
- package/build/client/_app/immutable/nodes/0.DsfUbybd.js.br +0 -0
- package/build/client/_app/immutable/nodes/0.DsfUbybd.js.gz +0 -0
- package/build/client/_app/immutable/nodes/1.9tnApS8T.js +1 -0
- package/build/client/_app/immutable/nodes/1.9tnApS8T.js.br +0 -0
- package/build/client/_app/immutable/nodes/1.9tnApS8T.js.gz +0 -0
- package/build/client/_app/immutable/nodes/10.CbyVViLq.js +14 -0
- package/build/client/_app/immutable/nodes/10.CbyVViLq.js.br +0 -0
- package/build/client/_app/immutable/nodes/10.CbyVViLq.js.gz +0 -0
- package/build/client/_app/immutable/nodes/11.xg5UTCOx.js +77 -0
- package/build/client/_app/immutable/nodes/11.xg5UTCOx.js.br +0 -0
- package/build/client/_app/immutable/nodes/11.xg5UTCOx.js.gz +0 -0
- package/build/client/_app/immutable/nodes/12.C6hLGaov.js +32 -0
- package/build/client/_app/immutable/nodes/12.C6hLGaov.js.br +0 -0
- package/build/client/_app/immutable/nodes/12.C6hLGaov.js.gz +0 -0
- package/build/client/_app/immutable/nodes/13.DHbTeLkm.js +5 -0
- package/build/client/_app/immutable/nodes/13.DHbTeLkm.js.br +0 -0
- package/build/client/_app/immutable/nodes/13.DHbTeLkm.js.gz +0 -0
- package/build/client/_app/immutable/nodes/14.BMIOGjF-.js +1 -0
- package/build/client/_app/immutable/nodes/14.BMIOGjF-.js.br +0 -0
- package/build/client/_app/immutable/nodes/14.BMIOGjF-.js.gz +0 -0
- package/build/client/_app/immutable/nodes/15.DYSMqa5A.js +10 -0
- package/build/client/_app/immutable/nodes/15.DYSMqa5A.js.br +0 -0
- package/build/client/_app/immutable/nodes/15.DYSMqa5A.js.gz +0 -0
- package/build/client/_app/immutable/nodes/16.B0mX0t_j.js +6 -0
- package/build/client/_app/immutable/nodes/16.B0mX0t_j.js.br +0 -0
- package/build/client/_app/immutable/nodes/16.B0mX0t_j.js.gz +0 -0
- package/build/client/_app/immutable/nodes/2.CSYV0jmk.js +4 -0
- package/build/client/_app/immutable/nodes/2.CSYV0jmk.js.br +0 -0
- package/build/client/_app/immutable/nodes/2.CSYV0jmk.js.gz +0 -0
- package/build/client/_app/immutable/nodes/3.X5qqsIUa.js +5 -0
- package/build/client/_app/immutable/nodes/3.X5qqsIUa.js.br +0 -0
- package/build/client/_app/immutable/nodes/3.X5qqsIUa.js.gz +0 -0
- package/build/client/_app/immutable/nodes/4.Di4k8SR2.js +3 -0
- package/build/client/_app/immutable/nodes/4.Di4k8SR2.js.br +0 -0
- package/build/client/_app/immutable/nodes/4.Di4k8SR2.js.gz +0 -0
- package/build/client/_app/immutable/nodes/5.DMFYTxVa.js +7 -0
- package/build/client/_app/immutable/nodes/5.DMFYTxVa.js.br +0 -0
- package/build/client/_app/immutable/nodes/5.DMFYTxVa.js.gz +0 -0
- package/build/client/_app/immutable/nodes/6.6yDAURLV.js +4 -0
- package/build/client/_app/immutable/nodes/6.6yDAURLV.js.br +0 -0
- package/build/client/_app/immutable/nodes/6.6yDAURLV.js.gz +0 -0
- package/build/client/_app/immutable/nodes/7.xxvMU05c.js +1 -0
- package/build/client/_app/immutable/nodes/7.xxvMU05c.js.br +0 -0
- package/build/client/_app/immutable/nodes/7.xxvMU05c.js.gz +0 -0
- package/build/client/_app/immutable/nodes/8.GSaWotW8.js +1 -0
- package/build/client/_app/immutable/nodes/8.GSaWotW8.js.br +0 -0
- package/build/client/_app/immutable/nodes/8.GSaWotW8.js.gz +0 -0
- package/build/client/_app/immutable/nodes/9.CEiUwDDg.js +1 -0
- package/build/client/_app/immutable/nodes/9.CEiUwDDg.js.br +0 -0
- package/build/client/_app/immutable/nodes/9.CEiUwDDg.js.gz +0 -0
- package/build/client/_app/version.json +1 -0
- package/build/client/_app/version.json.br +0 -0
- package/build/client/_app/version.json.gz +0 -0
- package/build/client/favicon.svg +1 -0
- package/build/client/favicon.svg.br +0 -0
- package/build/client/favicon.svg.gz +0 -0
- package/build/env.js +70 -0
- package/build/handler.js +23 -0
- package/build/index.js +146 -0
- package/build/server/chunks/chunks/AllowanceMeter.js-C9jRsAGU.js +42 -0
- package/build/server/chunks/chunks/DecisionCard.js-u1VQ9s_v.js +350 -0
- package/build/server/chunks/chunks/DictateTextarea.js-BlEnOzcN.js +85 -0
- package/build/server/chunks/chunks/EtaLine.js-Pa4_VV6V.js +79 -0
- package/build/server/chunks/chunks/Icon.js-D7CY3joB.js +129 -0
- package/build/server/chunks/chunks/InsightsNav.js-BlxFBJfj.js +22 -0
- package/build/server/chunks/chunks/MicButton.js-BZSQAyuM.js +336 -0
- package/build/server/chunks/chunks/QuestionList.js-DglKezUe.js +259 -0
- package/build/server/chunks/chunks/SlotContent.js-YqZXXtRz.js +1977 -0
- package/build/server/chunks/chunks/StageTrack.js-BaorW-yk.js +59 -0
- package/build/server/chunks/chunks/TimeBar.js-k38rc7ZI.js +32 -0
- package/build/server/chunks/chunks/TimeLegend.js-BQVvgsvs.js +29 -0
- package/build/server/chunks/chunks/access.js-CS2pJasF.js +816 -0
- package/build/server/chunks/chunks/anchor.js-ByXDBfbi.js +20 -0
- package/build/server/chunks/chunks/arrow-down.js-DXDJc9EE.js +18 -0
- package/build/server/chunks/chunks/arrow-left.js-6Yey35CE.js +18 -0
- package/build/server/chunks/chunks/arrow-right.js-CfbPWRqu.js +18 -0
- package/build/server/chunks/chunks/arrow-up.js-AhghNbhW.js +18 -0
- package/build/server/chunks/chunks/bell.js-CAlv92RY.js +143 -0
- package/build/server/chunks/chunks/blocks.js-BL9jLCe-.js +710 -0
- package/build/server/chunks/chunks/buildlog.js-BCKtSKOt.js +55 -0
- package/build/server/chunks/chunks/bus.svelte.js-DRTptEhF.js +9 -0
- package/build/server/chunks/chunks/button.js-HeBqLheH.js +7311 -0
- package/build/server/chunks/chunks/chat.svelte.js-Cgdbtjbw.js +537 -0
- package/build/server/chunks/chunks/check.js-bmUhmMEz.js +15 -0
- package/build/server/chunks/chunks/checks.js-BnIxIaus.js +175 -0
- package/build/server/chunks/chunks/chevron-down.js-D75hVSIe.js +15 -0
- package/build/server/chunks/chunks/chevron-right.js-yhLg_GaH.js +15 -0
- package/build/server/chunks/chunks/circle-dashed.js-Bm3gZCXK.js +24 -0
- package/build/server/chunks/chunks/client.js-BUNengrw.js +24 -0
- package/build/server/chunks/chunks/clock.js-D7JTvRbC.js +18 -0
- package/build/server/chunks/chunks/compass.js-Tq6uiG8I.js +23 -0
- package/build/server/chunks/chunks/detail.js-CSjOmiVi.js +133 -0
- package/build/server/chunks/chunks/exports.js-BZBK1HC9.js +161 -0
- package/build/server/chunks/chunks/external-link.js-WxVF0xXO.js +24 -0
- package/build/server/chunks/chunks/file-text.js-CAo3vdqd.js +26 -0
- package/build/server/chunks/chunks/format.js-D3lWEg6U.js +70 -0
- package/build/server/chunks/chunks/gauge.js-Dw9bgE72.js +35 -0
- package/build/server/chunks/chunks/git-pull-request.js-Cx1w8BQr.js +20 -0
- package/build/server/chunks/chunks/hammer.js-fp_Kidfj.js +24 -0
- package/build/server/chunks/chunks/hand.js-xkYPYJZj.js +37 -0
- package/build/server/chunks/chunks/harbour.js-xu7EfIHk.js +113 -0
- package/build/server/chunks/chunks/http.js-TzZuOtxn.js +25 -0
- package/build/server/chunks/chunks/http2.js-Cr9xuMRL.js +26 -0
- package/build/server/chunks/chunks/inbox.js-CW2sFmx9.js +114 -0
- package/build/server/chunks/chunks/inbox.svelte.js-OoKhjjWM.js +134 -0
- package/build/server/chunks/chunks/index-server.js-CtyUzIGY.js +17 -0
- package/build/server/chunks/chunks/index-server2.js-DMc-UvjC.js +19 -0
- package/build/server/chunks/chunks/index.js-Bn6j9diM.js +1524 -0
- package/build/server/chunks/chunks/index2.js-CXaRTuov.js +46 -0
- package/build/server/chunks/chunks/insights.js-CzzfyHGp.js +100 -0
- package/build/server/chunks/chunks/internal.js-Co-6PAQm.js +146 -0
- package/build/server/chunks/chunks/keys.js-CdtCzv-v.js +20 -0
- package/build/server/chunks/chunks/live.svelte.js-BRUTNc9D.js +196 -0
- package/build/server/chunks/chunks/loader-circle.js-IYRaUYWq.js +16 -0
- package/build/server/chunks/chunks/message-circle-question-mark.js-DwrMi0ty.js +25 -0
- package/build/server/chunks/chunks/message-square-text.js-N5uEmy8L.js +25 -0
- package/build/server/chunks/chunks/message-square.js-Hp-6BHgG.js +22 -0
- package/build/server/chunks/chunks/messages.js-CFyGKoqq.js +4 -0
- package/build/server/chunks/chunks/minus.js-bsfnwE-h.js +15 -0
- package/build/server/chunks/chunks/monitor-play.js-B7qbbPH6.js +28 -0
- package/build/server/chunks/chunks/passage-meta.js-uvNUyJkg.js +232 -0
- package/build/server/chunks/chunks/plain.js-Dc97sYaJ.js +101 -0
- package/build/server/chunks/chunks/preview.js-CVD-Kwks.js +68 -0
- package/build/server/chunks/chunks/prreview.js-C5XxDIu2.js +85 -0
- package/build/server/chunks/chunks/root.js-CQzYN4Pu.js +3105 -0
- package/build/server/chunks/chunks/runtime.js-C0n924wq.js +13280 -0
- package/build/server/chunks/chunks/scale.js-vP4G0lZM.js +21 -0
- package/build/server/chunks/chunks/server.js-Bf8x1V_n.js +16 -0
- package/build/server/chunks/chunks/shield-check.js-PJLnCKD9.js +23 -0
- package/build/server/chunks/chunks/slots.svelte.js-0Ejhe-hS.js +34 -0
- package/build/server/chunks/chunks/spec.js-B0yI1XqG.js +307 -0
- package/build/server/chunks/chunks/split.js-BsCU24rQ.js +20 -0
- package/build/server/chunks/chunks/square-terminal.js-D5Z4Sl2-.js +47 -0
- package/build/server/chunks/chunks/tone.js-r2qFVrZC.js +30 -0
- package/build/server/chunks/chunks/trash.js-DYFbRevY.js +46 -0
- package/build/server/chunks/chunks/triangle-alert.js-DuE40HSU.js +38 -0
- package/build/server/chunks/chunks/utils.js-DTSGDHlH.js +2956 -0
- package/build/server/chunks/chunks/utils2.js-BQzn9ikS.js +38 -0
- package/build/server/chunks/chunks/view.js-BtcLmKUY.js +76 -0
- package/build/server/chunks/chunks/view2.js-BdUXqNlY.js +87 -0
- package/build/server/chunks/chunks/views.js-B0wP-tuB.js +137 -0
- package/build/server/chunks/chunks/waypoints.js-D3HN7bje.js +67 -0
- package/build/server/chunks/chunks/x.js-tlds9Ooz.js +18 -0
- package/build/server/chunks/entries/endpoints/api/events/_server.ts.js-DNHG661Q.js +93 -0
- package/build/server/chunks/entries/endpoints/api/firstmate/chat/_server.ts.js-XBUQePMq.js +74 -0
- package/build/server/chunks/entries/endpoints/api/firstmate/commands/_server.ts.js-D1tzpRWy.js +110 -0
- package/build/server/chunks/entries/endpoints/api/firstmate/input/_server.ts.js-DqhQUZUA.js +42 -0
- package/build/server/chunks/entries/endpoints/api/firstmate/interrupt/_server.ts.js-LsZer0Bi.js +35 -0
- package/build/server/chunks/entries/endpoints/api/firstmate/messages/_server.ts.js-DQob0XkJ.js +57 -0
- package/build/server/chunks/entries/endpoints/api/firstmate/pick/_server.ts.js-DgFjtYYL.js +45 -0
- package/build/server/chunks/entries/endpoints/api/firstmate/start/_server.ts.js-DOoA4rRW.js +35 -0
- package/build/server/chunks/entries/endpoints/api/fleet/_server.ts.js-DZQsFY87.js +27 -0
- package/build/server/chunks/entries/endpoints/api/health/_server.ts.js-DuSzTlq5.js +27 -0
- package/build/server/chunks/entries/endpoints/api/inbox/_server.ts.js-C15XwPXH.js +51 -0
- package/build/server/chunks/entries/endpoints/api/insights/_server.ts.js--gavJO4f.js +27 -0
- package/build/server/chunks/entries/endpoints/api/plugins/_server.ts.js-CsTy_jT6.js +27 -0
- package/build/server/chunks/entries/endpoints/api/projects/_id_/passage/_server.ts.js-BWOcGtOU.js +32 -0
- package/build/server/chunks/entries/endpoints/api/projects/_id_/passage/commands/_server.ts.js-Kjwbc2wm.js +41 -0
- package/build/server/chunks/entries/endpoints/api/projects/_id_/passage/consent/_server.ts.js-BTIb8CUb.js +53 -0
- package/build/server/chunks/entries/endpoints/api/projects/_id_/passage/draft/_server.ts.js-Vh52yDJ9.js +40 -0
- package/build/server/chunks/entries/endpoints/api/projects/_id_/passage/file/_server.ts.js-LJDJLrpB.js +63 -0
- package/build/server/chunks/entries/endpoints/api/projects/_id_/passage/test/_server.ts.js-CdDBYH6K.js +46 -0
- package/build/server/chunks/entries/endpoints/api/services/_server.ts.js-DoElFmWK.js +46 -0
- package/build/server/chunks/entries/endpoints/api/slots/_server.ts.js-KiiPnPLF.js +35 -0
- package/build/server/chunks/entries/endpoints/api/specs/_id_/_server.ts.js-LMXTPr04.js +59 -0
- package/build/server/chunks/entries/endpoints/api/specs/_id_/build-request/_server.ts.js-bqjJGIjt.js +47 -0
- package/build/server/chunks/entries/endpoints/api/specs/_id_/comments/_comment_/_server.ts.js-DD1qQE9w.js +36 -0
- package/build/server/chunks/entries/endpoints/api/specs/_id_/comments/_server.ts.js-Bby1xkpH.js +57 -0
- package/build/server/chunks/entries/endpoints/api/specs/_id_/images/_name_/_server.ts.js-CPX8OLQa.js +49 -0
- package/build/server/chunks/entries/endpoints/api/specs/_id_/images/_server.ts.js-BjBV4SVl.js +55 -0
- package/build/server/chunks/entries/endpoints/api/specs/_id_/sent/_server.ts.js-BAqm0IW0.js +36 -0
- package/build/server/chunks/entries/endpoints/api/specs/_id_/turn/_server.ts.js-CNFIHA70.js +82 -0
- package/build/server/chunks/entries/endpoints/api/specs/_server.ts.js-Bix9PKKr.js +40 -0
- package/build/server/chunks/entries/endpoints/api/tasks/_id_/_server.ts.js-CT7cLDQU.js +32 -0
- package/build/server/chunks/entries/endpoints/api/tasks/_id_/artifacts/_...name_/_server.ts.js-zCsm8UJT.js +51 -0
- package/build/server/chunks/entries/endpoints/api/tasks/_id_/diff/_server.ts.js-ccyEPbua.js +39 -0
- package/build/server/chunks/entries/endpoints/api/tasks/_id_/output/_server.ts.js-eZPQtK6T.js +84 -0
- package/build/server/chunks/entries/endpoints/api/tasks/_id_/preview/_server.ts.js-CW76hSLW.js +102 -0
- package/build/server/chunks/entries/endpoints/api/tasks/_id_/review/_server.ts.js-Cjuig1dr.js +34 -0
- package/build/server/chunks/entries/endpoints/api/tasks/_id_/review/ask/_server.ts.js-C04r1OFS.js +40 -0
- package/build/server/chunks/entries/endpoints/api/tasks/_id_/review/check/_server.ts.js-Ca5VNJtJ.js +39 -0
- package/build/server/chunks/entries/endpoints/api/tasks/_id_/review/guide/_server.ts.js-BKLIKSUM.js +39 -0
- package/build/server/chunks/entries/endpoints/api/tasks/_id_/review/runs/_run_/stop/_server.ts.js-C-D9zXgK.js +32 -0
- package/build/server/chunks/entries/fallbacks/error.svelte.js-DlN_tCrh.js +15 -0
- package/build/server/chunks/entries/hooks.server.js-Cgq1_RNe.js +40 -0
- package/build/server/chunks/entries/pages/_layout.server.ts.js-B7EWMhm1.js +20 -0
- package/build/server/chunks/entries/pages/_layout.svelte.js-BJuZaosz.js +10454 -0
- package/build/server/chunks/entries/pages/_page.server.ts.js-CrjekE3C.js +16 -0
- package/build/server/chunks/entries/pages/_page.svelte.js-BI4c5H0n.js +3699 -0
- package/build/server/chunks/entries/pages/decisions/_page.server.ts.js-Olm_zS-k.js +11 -0
- package/build/server/chunks/entries/pages/decisions/_page.svelte.js-ClTz3O_K.js +167 -0
- package/build/server/chunks/entries/pages/harbour/_page.server.ts.js-CVhhNUGy.js +20 -0
- package/build/server/chunks/entries/pages/harbour/_page.svelte.js-43FRNSVK.js +1346 -0
- package/build/server/chunks/entries/pages/headroom/_page.server.ts.js-Bv8GukD1.js +11 -0
- package/build/server/chunks/entries/pages/headroom/_page.svelte.js-zmKQdAwy.js +135 -0
- package/build/server/chunks/entries/pages/inbox/_page.svelte.js-wTvAFPNM.js +175 -0
- package/build/server/chunks/entries/pages/plugins/_plugin_/_page_/_page.server.ts.js-BJRmRxez.js +15 -0
- package/build/server/chunks/entries/pages/plugins/_plugin_/_page_/_page.svelte.js-DfAqJJ3i.js +55 -0
- package/build/server/chunks/entries/pages/projects/_id_/_plugin_/_tab_/_page.server.ts.js-DawJ61h-.js +15 -0
- package/build/server/chunks/entries/pages/projects/_id_/_plugin_/_tab_/_page.svelte.js-B472Pugu.js +66 -0
- package/build/server/chunks/entries/pages/projects/_id_/passage/_page.server.ts.js-Cm-4qkeb.js +14 -0
- package/build/server/chunks/entries/pages/projects/_id_/passage/_page.svelte.js-CWjEArXY.js +394 -0
- package/build/server/chunks/entries/pages/projects/_id_/passage/edit/_page.server.ts.js-DWNW8L5o.js +15 -0
- package/build/server/chunks/entries/pages/projects/_id_/passage/edit/_page.svelte.js-iHacn81K.js +1859 -0
- package/build/server/chunks/entries/pages/projects/_page.server.ts.js-BVDM5Frg.js +37 -0
- package/build/server/chunks/entries/pages/projects/_page.svelte.js-B_NQ-Wg3.js +270 -0
- package/build/server/chunks/entries/pages/spec/_page.server.ts.js-B3atEUDm.js +31 -0
- package/build/server/chunks/entries/pages/spec/_page.svelte.js-BJjweG9u.js +1561 -0
- package/build/server/chunks/entries/pages/tasks/_id_/_page.server.ts.js-BDQIO7Ft.js +25 -0
- package/build/server/chunks/entries/pages/tasks/_id_/_page.svelte.js-Dr2wwDJG.js +2063 -0
- package/build/server/chunks/entries/pages/tasks/_id_/doc/_page.server.ts.js-Bw-3fcQ6.js +24 -0
- package/build/server/chunks/entries/pages/tasks/_id_/doc/_page.svelte.js-DOyZ1QzI.js +145 -0
- package/build/server/chunks/entries/pages/tasks/_id_/review/_page.server.ts.js-CJek9uLa.js +15 -0
- package/build/server/chunks/entries/pages/tasks/_id_/review/_page.svelte.js-BDaRELgE.js +692 -0
- package/build/server/chunks/entries/pages/time/_page.server.ts.js-An6F-Ydg.js +11 -0
- package/build/server/chunks/entries/pages/time/_page.svelte.js-CSXGxvVs.js +107 -0
- package/build/server/chunks/handler-BnRz5A8m.js +1474 -0
- package/build/server/chunks/index.js-C8djlQGs.js +4296 -0
- package/build/server/chunks/manifest.js-YAglwkb0.js +434 -0
- package/build/server/chunks/nodes/0.js-lkzICUiD.js +32 -0
- package/build/server/chunks/nodes/1.js-BJHI215Q.js +9 -0
- package/build/server/chunks/nodes/10.js-BWB-fD67.js +33 -0
- package/build/server/chunks/nodes/11.js-DWkXu85W.js +33 -0
- package/build/server/chunks/nodes/12.js-CKTx5eRx.js +37 -0
- package/build/server/chunks/nodes/13.js-C9YUj8Wf.js +33 -0
- package/build/server/chunks/nodes/14.js-CvfRHrCy.js +33 -0
- package/build/server/chunks/nodes/15.js-D_eEoMQb.js +33 -0
- package/build/server/chunks/nodes/16.js-BQhgpvij.js +32 -0
- package/build/server/chunks/nodes/2.js-C-3t-e-a.js +32 -0
- package/build/server/chunks/nodes/3.js-DgwKYi6C.js +32 -0
- package/build/server/chunks/nodes/4.js-DRDQ1cZ6.js +34 -0
- package/build/server/chunks/nodes/5.js-Bn5aoN6C.js +32 -0
- package/build/server/chunks/nodes/6.js-lazTWxVv.js +9 -0
- package/build/server/chunks/nodes/7.js-PUjlFfxr.js +32 -0
- package/build/server/chunks/nodes/8.js-DYPhaWV-.js +34 -0
- package/build/server/chunks/nodes/9.js-C2q_Jaiu.js +32 -0
- package/build/shims.js +33 -0
- package/dist/cli.js +534 -0
- package/package.json +96 -5
|
@@ -0,0 +1,77 @@
|
|
|
1
|
+
import"../chunks/DsnmJJEf.js";import{k as kt,p as xt,m as w,s as h,o as D,r as _,t as M,h as a,a as m,d as O,n as _e,b as wt,ag as pa,q as I,w as qe,f as Ie,c as y,a9 as os,N as ls,i as ie,a7 as va,e as je,v as yt,J as ga,y as ya,x as js,O as ba,$ as _a}from"../chunks/L-6wuY5f.js";import{s as Sn,r as Tn,p as It,i as Y}from"../chunks/COiIt96y.js";import{k as Ms}from"../chunks/CkFDaaNz.js";import{r as at,a as Se,c as He,e as Me,s as me,l as st,g as ot,k as bt,i as Wt,m as ka,j as Nn,h as xa}from"../chunks/DGy76IbW.js";import{b as wa,g as Sa}from"../chunks/BAurN1n6.js";import{p as cs}from"../chunks/D8Hx-_mj.js";import{c as Ta}from"../chunks/BZm5e4fE.js";import{a as Na,b as Aa}from"../chunks/DxGQT-Hz.js";import{S as an}from"../chunks/ET-O1REu.js";import{B as Ge}from"../chunks/BHsdHLbF.js";import{S as Ps}from"../chunks/BXN538J3.js";import{Y as Et,i as lt,a as Yt,b as Vt,s as An,S as Pe,m as Ot,o as qs,p as Us,c as Fs,M as Ia,d as _t,e as Oa,f as Ca,g as ts,h as $s,j as rn,l as Ea,N as on,D as ln,k as rs,n as La,q as ja,A as In,r as Ma,t as gt,P as ds,u as ss,v as it,w as cn,x as Pa,y as Ba,z as Da,B as On,L as Ra,C as Ka,E as qa,F as Ua}from"../chunks/t4rxsdjl.js";import{C as zt,a as Fa,b as $a,E as Wa,F as Ya,O as za,o as Ha,s as Ga}from"../chunks/D7IP_ZEm.js";import{A as Cn}from"../chunks/OeqXO44y.js";import{S as Ja}from"../chunks/Bns_F-QV.js";import{T as En,P as Ws,R as Va}from"../chunks/FQ69txbU.js";import{b as Xa}from"../chunks/Da92_52d.js";import{X as Ys}from"../chunks/BUo4hMcM.js";import{A as Ln}from"../chunks/B1XxiJam.js";import{A as jn}from"../chunks/DIABVMrA.js";import{C as Mn}from"../chunks/uD7-7yV9.js";import{C as Qa}from"../chunks/BR5v76-T.js";import{I as Pn}from"../chunks/CQlHU-Rx.js";import{M as Za}from"../chunks/m3YfhLk1.js";import{C as ei}from"../chunks/iVpzjqp1.js";import{C as ti}from"../chunks/CQ7gIAH8.js";var si=new Set(["$$slots","$$events","$$legacy"]);function ni(s,e){let t=Tn(e,si);const n={name:"circle-dot",size:24,node:[["circle",{cx:"12",cy:"12",r:"1"}],["circle",{cx:"12",cy:"12",r:"10"}]]};Pn(s,Sn(()=>t,{get icon(){return n}}))}var ai=new Set(["$$slots","$$events","$$legacy"]);function ii(s,e){let t=Tn(e,ai);const n={name:"flask-conical",size:24,node:[["path",{d:"M14 2v6a2 2 0 0 0 .245.96l5.51 10.08A2 2 0 0 1 18 22H6a2 2 0 0 1-1.755-2.96l5.51-10.08A2 2 0 0 0 10 8V2"}],["path",{d:"M6.453 15h11.094"}],["path",{d:"M8.5 2h7"}]]};Pn(s,Sn(()=>t,{get icon(){return n}}))}const jt={collection:"map",default:!0,nodeClass:Et,tag:"tag:yaml.org,2002:map",resolve(s,e){return lt(s)||e("Expected a mapping for this tag"),s},createNode:(s,e,t)=>Et.from(s,e,t)},Mt={collection:"seq",default:!0,nodeClass:Yt,tag:"tag:yaml.org,2002:seq",resolve(s,e){return Vt(s)||e("Expected a sequence for this tag"),s},createNode:(s,e,t)=>Yt.from(s,e,t)},fs={identify:s=>typeof s=="string",default:!0,tag:"tag:yaml.org,2002:str",resolve:s=>s,stringify(s,e,t,n){return e=Object.assign({actualString:!0},e),An(s,e,t,n)}},hs={identify:s=>s==null,createNode:()=>new Pe(null),default:!0,tag:"tag:yaml.org,2002:null",test:/^(?:~|[Nn]ull|NULL)?$/,resolve:()=>new Pe(null),stringify:({source:s},e)=>typeof s=="string"&&hs.test.test(s)?s:e.options.nullStr},zs={identify:s=>typeof s=="boolean",default:!0,tag:"tag:yaml.org,2002:bool",test:/^(?:[Tt]rue|TRUE|[Ff]alse|FALSE)$/,resolve:s=>new Pe(s[0]==="t"||s[0]==="T"),stringify({source:s,value:e},t){if(s&&zs.test.test(s)){const n=s[0]==="t"||s[0]==="T";if(e===n)return s}return e?t.options.trueStr:t.options.falseStr}};function nt({format:s,minFractionDigits:e,tag:t,value:n}){if(typeof n=="bigint")return String(n);const i=typeof n=="number"?n:Number(n);if(!isFinite(i))return isNaN(i)?".nan":i<0?"-.inf":".inf";let o=Object.is(n,-0)?"-0":JSON.stringify(n);if(!s&&e&&(!t||t==="tag:yaml.org,2002:float")&&/^-?\d/.test(o)&&!o.includes("e")){let r=o.indexOf(".");r<0&&(r=o.length,o+=".");let l=e-(o.length-r-1);for(;l-- >0;)o+="0"}return o}const Bn={identify:s=>typeof s=="number",default:!0,tag:"tag:yaml.org,2002:float",test:/^(?:[-+]?\.(?:inf|Inf|INF)|\.nan|\.NaN|\.NAN)$/,resolve:s=>s.slice(-3).toLowerCase()==="nan"?NaN:s[0]==="-"?Number.NEGATIVE_INFINITY:Number.POSITIVE_INFINITY,stringify:nt},Dn={identify:s=>typeof s=="number",default:!0,tag:"tag:yaml.org,2002:float",format:"EXP",test:/^[-+]?(?:\.[0-9]+|[0-9]+(?:\.[0-9]*)?)[eE][-+]?[0-9]+$/,resolve:s=>parseFloat(s),stringify(s){const e=Number(s.value);return isFinite(e)?e.toExponential():nt(s)}},Rn={identify:s=>typeof s=="number",default:!0,tag:"tag:yaml.org,2002:float",test:/^[-+]?(?:\.[0-9]+|[0-9]+\.[0-9]*)$/,resolve(s){const e=new Pe(parseFloat(s)),t=s.indexOf(".");return t!==-1&&s[s.length-1]==="0"&&(e.minFractionDigits=s.length-t-1),e},stringify:nt},ms=s=>typeof s=="bigint"||Number.isInteger(s),Hs=(s,e,t,{intAsBigInt:n})=>n?BigInt(s):parseInt(s.substring(e),t);function Kn(s,e,t){const{value:n}=s;return ms(n)&&n>=0?t+n.toString(e):nt(s)}const qn={identify:s=>ms(s)&&s>=0,default:!0,tag:"tag:yaml.org,2002:int",format:"OCT",test:/^0o[0-7]+$/,resolve:(s,e,t)=>Hs(s,2,8,t),stringify:s=>Kn(s,8,"0o")},Un={identify:ms,default:!0,tag:"tag:yaml.org,2002:int",test:/^[-+]?[0-9]+$/,resolve:(s,e,t)=>Hs(s,0,10,t),stringify:nt},Fn={identify:s=>ms(s)&&s>=0,default:!0,tag:"tag:yaml.org,2002:int",format:"HEX",test:/^0x[0-9a-fA-F]+$/,resolve:(s,e,t)=>Hs(s,2,16,t),stringify:s=>Kn(s,16,"0x")},ri=[jt,Mt,fs,hs,zs,qn,Un,Fn,Bn,Dn,Rn];function dn(s){return typeof s=="bigint"||Number.isInteger(s)}const ns=({value:s})=>JSON.stringify(s),oi=[{identify:s=>typeof s=="string",default:!0,tag:"tag:yaml.org,2002:str",resolve:s=>s,stringify:ns},{identify:s=>s==null,createNode:()=>new Pe(null),default:!0,tag:"tag:yaml.org,2002:null",test:/^null$/,resolve:()=>null,stringify:ns},{identify:s=>typeof s=="boolean",default:!0,tag:"tag:yaml.org,2002:bool",test:/^true$|^false$/,resolve:s=>s==="true",stringify:ns},{identify:dn,default:!0,tag:"tag:yaml.org,2002:int",test:/^-?(?:0|[1-9][0-9]*)$/,resolve:(s,e,{intAsBigInt:t})=>t?BigInt(s):parseInt(s,10),stringify:({value:s})=>dn(s)?s.toString():JSON.stringify(s)},{identify:s=>typeof s=="number",default:!0,tag:"tag:yaml.org,2002:float",test:/^-?(?:0|[1-9][0-9]*)(?:\.[0-9]*)?(?:[eE][-+]?[0-9]+)?$/,resolve:s=>parseFloat(s),stringify:ns}],li={default:!0,tag:"",test:/^/,resolve(s,e){return e(`Unresolved plain scalar ${JSON.stringify(s)}`),s}},ci=[jt,Mt].concat(oi,li),Gs={identify:s=>s instanceof Uint8Array,default:!1,tag:"tag:yaml.org,2002:binary",resolve(s,e){if(typeof atob=="function"){const t=atob(s.replace(/[\n\r]/g,"")),n=new Uint8Array(t.length);for(let i=0;i<t.length;++i)n[i]=t.charCodeAt(i);return n}else return e("This environment does not support reading binary tags; either Buffer or atob is required"),s},stringify({comment:s,type:e,value:t},n,i,o){if(!t)return"";const r=t;let l;if(typeof btoa=="function"){let c="";for(let d=0;d<r.length;++d)c+=String.fromCharCode(r[d]);l=btoa(c)}else throw new Error("This environment does not support writing binary tags; either Buffer or btoa is required");if(e??(e=Pe.BLOCK_LITERAL),e!==Pe.QUOTE_DOUBLE){const c=Math.max(n.options.lineWidth-n.indent.length,n.options.minContentWidth),d=Math.ceil(l.length/c),v=new Array(d);for(let u=0,f=0;u<d;++u,f+=c)v[u]=l.substr(f,c);l=v.join(e===Pe.BLOCK_LITERAL?`
|
|
2
|
+
`:" ")}return An({comment:s,type:e,value:l},n,i,o)}};function $n({value:s,source:e},t){return e&&(s?Wn:Yn).test.test(e)?e:s?t.options.trueStr:t.options.falseStr}const Wn={identify:s=>s===!0,default:!0,tag:"tag:yaml.org,2002:bool",test:/^(?:Y|y|[Yy]es|YES|[Tt]rue|TRUE|[Oo]n|ON)$/,resolve:()=>new Pe(!0),stringify:$n},Yn={identify:s=>s===!1,default:!0,tag:"tag:yaml.org,2002:bool",test:/^(?:N|n|[Nn]o|NO|[Ff]alse|FALSE|[Oo]ff|OFF)$/,resolve:()=>new Pe(!1),stringify:$n},di={identify:s=>typeof s=="number",default:!0,tag:"tag:yaml.org,2002:float",test:/^(?:[-+]?\.(?:inf|Inf|INF)|\.nan|\.NaN|\.NAN)$/,resolve:s=>s.slice(-3).toLowerCase()==="nan"?NaN:s[0]==="-"?Number.NEGATIVE_INFINITY:Number.POSITIVE_INFINITY,stringify:nt},ui={identify:s=>typeof s=="number",default:!0,tag:"tag:yaml.org,2002:float",format:"EXP",test:/^[-+]?(?:[0-9][0-9_]*)?(?:\.[0-9_]*)?[eE][-+]?[0-9]+$/,resolve:s=>parseFloat(s.replace(/_/g,"")),stringify(s){const e=Number(s.value);return isFinite(e)?e.toExponential():nt(s)}},fi={identify:s=>typeof s=="number",default:!0,tag:"tag:yaml.org,2002:float",test:/^[-+]?(?:[0-9][0-9_]*)?\.[0-9_]*$/,resolve(s){const e=new Pe(parseFloat(s.replace(/_/g,""))),t=s.indexOf(".");if(t!==-1){const n=s.substring(t+1).replace(/_/g,"");n[n.length-1]==="0"&&(e.minFractionDigits=n.length)}return e},stringify:nt},Xt=s=>typeof s=="bigint"||Number.isInteger(s);function ps(s,e,t,{intAsBigInt:n}){const i=s[0];if((i==="-"||i==="+")&&(e+=1),s=s.substring(e).replace(/_/g,""),n){switch(t){case 2:s=`0b${s}`;break;case 8:s=`0o${s}`;break;case 16:s=`0x${s}`;break}const r=BigInt(s);return i==="-"?BigInt(-1)*r:r}const o=parseInt(s,t);return i==="-"?-1*o:o}function Js(s,e,t){const{value:n}=s;if(Xt(n)){const i=n.toString(e);return n<0?"-"+t+i.substr(1):t+i}return nt(s)}const hi={identify:Xt,default:!0,tag:"tag:yaml.org,2002:int",format:"BIN",test:/^[-+]?0b[0-1_]+$/,resolve:(s,e,t)=>ps(s,2,2,t),stringify:s=>Js(s,2,"0b")},mi={identify:Xt,default:!0,tag:"tag:yaml.org,2002:int",format:"OCT",test:/^[-+]?0[0-7_]+$/,resolve:(s,e,t)=>ps(s,1,8,t),stringify:s=>Js(s,8,"0")},pi={identify:Xt,default:!0,tag:"tag:yaml.org,2002:int",test:/^[-+]?[0-9][0-9_]*$/,resolve:(s,e,t)=>ps(s,0,10,t),stringify:nt},vi={identify:Xt,default:!0,tag:"tag:yaml.org,2002:int",format:"HEX",test:/^[-+]?0x[0-9a-fA-F_]+$/,resolve:(s,e,t)=>ps(s,2,16,t),stringify:s=>Js(s,16,"0x")};function Vs(s,e){const t=s[0],n=t==="-"||t==="+"?s.substring(1):s,i=r=>e?BigInt(r):Number(r),o=n.replace(/_/g,"").split(":").reduce((r,l)=>r*i(60)+i(l),i(0));return t==="-"?i(-1)*o:o}function zn(s){let{value:e}=s,t=r=>r;if(typeof e=="bigint")t=r=>BigInt(r);else if(isNaN(e)||!isFinite(e))return nt(s);let n="";e<0&&(n="-",e*=t(-1));const i=t(60),o=[e%i];return e<60?o.unshift(0):(e=(e-o[0])/i,o.unshift(e%i),e>=60&&(e=(e-o[0])/i,o.unshift(e))),n+o.map(r=>String(r).padStart(2,"0")).join(":").replace(/000000\d*$/,"")}const Hn={identify:s=>typeof s=="bigint"||Number.isInteger(s),default:!0,tag:"tag:yaml.org,2002:int",format:"TIME",test:/^[-+]?[0-9][0-9_]*(?::[0-5]?[0-9])+$/,resolve:(s,e,{intAsBigInt:t})=>Vs(s,t),stringify:zn},Gn={identify:s=>typeof s=="number",default:!0,tag:"tag:yaml.org,2002:float",format:"TIME",test:/^[-+]?[0-9][0-9_]*(?::[0-5]?[0-9])+\.[0-9_]*$/,resolve:s=>Vs(s,!1),stringify:zn},vs={identify:s=>s instanceof Date,default:!0,tag:"tag:yaml.org,2002:timestamp",test:RegExp("^([0-9]{4})-([0-9]{1,2})-([0-9]{1,2})(?:(?:t|T|[ \\t]+)([0-9]{1,2}):([0-9]{1,2}):([0-9]{1,2}(\\.[0-9]+)?)(?:[ \\t]*(Z|[-+][012]?[0-9](?::[0-9]{2})?))?)?$"),resolve(s){const e=s.match(vs.test);if(!e)throw new Error("!!timestamp expects a date, starting with yyyy-mm-dd");const[,t,n,i,o,r,l]=e.map(Number),c=e[7]?Number((e[7]+"00").substr(1,3)):0;let d=Date.UTC(t,n-1,i,o||0,r||0,l||0,c);const v=e[8];if(v&&v!=="Z"){let u=Vs(v,!1);Math.abs(u)<30&&(u*=60),d-=6e4*u}return new Date(d)},stringify:({value:s})=>s?.toISOString().replace(/(T00:00:00)?\.000Z$/,"")??""},un=[jt,Mt,fs,hs,Wn,Yn,hi,mi,pi,vi,di,ui,fi,Gs,Ot,qs,Us,Fs,Hn,Gn,vs],fn=new Map([["core",ri],["failsafe",[jt,Mt,fs]],["json",ci],["yaml11",un],["yaml-1.1",un]]),hn={binary:Gs,bool:zs,float:Rn,floatExp:Dn,floatNaN:Bn,floatTime:Gn,int:Un,intHex:Fn,intOct:qn,intTime:Hn,map:jt,merge:Ot,null:hs,omap:qs,pairs:Us,seq:Mt,set:Fs,timestamp:vs},gi={"tag:yaml.org,2002:binary":Gs,"tag:yaml.org,2002:merge":Ot,"tag:yaml.org,2002:omap":qs,"tag:yaml.org,2002:pairs":Us,"tag:yaml.org,2002:set":Fs,"tag:yaml.org,2002:timestamp":vs};function Ss(s,e,t){const n=fn.get(e);if(n&&!s)return t&&!n.includes(Ot)?n.concat(Ot):n.slice();let i=n;if(!i)if(Array.isArray(s))i=[];else{const o=Array.from(fn.keys()).filter(r=>r!=="yaml11").map(r=>JSON.stringify(r)).join(", ");throw new Error(`Unknown schema "${e}"; use one of ${o} or define customTags array`)}if(Array.isArray(s))for(const o of s)i=i.concat(o);else typeof s=="function"&&(i=s(i.slice()));return t&&(i=i.concat(Ot)),i.reduce((o,r)=>{const l=typeof r=="string"?hn[r]:r;if(!l){const c=JSON.stringify(r),d=Object.keys(hn).map(v=>JSON.stringify(v)).join(", ");throw new Error(`Unknown custom tag ${c}; use one of ${d}`)}return o.includes(l)||o.push(l),o},[])}const yi=(s,e)=>s.key<e.key?-1:s.key>e.key?1:0;class Xs{constructor({compat:e,customTags:t,merge:n,resolveKnownTags:i,schema:o,sortMapEntries:r,toStringDefaults:l}){this.compat=Array.isArray(e)?Ss(e,"compat"):e?Ss(null,e):null,this.name=typeof o=="string"&&o||"core",this.knownTags=i?gi:{},this.tags=Ss(t,this.name,n),this.toStringOptions=l??null,Object.defineProperty(this,Ia,{value:jt}),Object.defineProperty(this,_t,{value:fs}),Object.defineProperty(this,Oa,{value:Mt}),this.sortMapEntries=typeof r=="function"?r:r===!0?yi:null}clone(){const e=Object.create(Xs.prototype,Object.getOwnPropertyDescriptors(this));return e.tags=this.tags.slice(),e}}function bi(s,e){const t=[];let n=e.directives===!0;if(e.directives!==!1&&s.directives){const c=s.directives.toString(s);c?(t.push(c),n=!0):s.directives.docStart&&(n=!0)}n&&t.push("---");const i=Ca(s,e),{commentString:o}=i.options;if(s.commentBefore){t.length!==1&&t.unshift("");const c=o(s.commentBefore);t.unshift(ts(c,""))}let r=!1,l=null;if(s.contents){if($s(s.contents)){if(s.contents.spaceBefore&&n&&t.push(""),s.contents.commentBefore){const v=o(s.contents.commentBefore);t.push(ts(v,""))}i.forceBlockIndent=!!s.comment,l=s.contents.comment}const c=l?void 0:()=>r=!0;let d=rn(s.contents,i,()=>l=null,c);l&&(d+=Ea(d,"",o(l))),(d[0]==="|"||d[0]===">")&&t[t.length-1]==="---"?t[t.length-1]=`--- ${d}`:t.push(d)}else t.push(rn(s.contents,i));if(s.directives?.docEnd)if(s.comment){const c=o(s.comment);c.includes(`
|
|
3
|
+
`)?(t.push("..."),t.push(ts(c,""))):t.push(`... ${c}`)}else t.push("...");else{let c=s.comment;c&&r&&(c=c.replace(/^\n+/,"")),c&&((!r||l)&&t[t.length-1]!==""&&t.push(""),t.push(ts(o(c),"")))}return t.join(`
|
|
4
|
+
`)+`
|
|
5
|
+
`}class gs{constructor(e,t,n){this.commentBefore=null,this.comment=null,this.errors=[],this.warnings=[],Object.defineProperty(this,on,{value:ln});let i=null;typeof t=="function"||Array.isArray(t)?i=t:n===void 0&&t&&(n=t,t=void 0);const o=Object.assign({intAsBigInt:!1,keepSourceTokens:!1,logLevel:"warn",prettyErrors:!0,strict:!0,stringKeys:!1,uniqueKeys:!0,version:"1.2"},n);this.options=o;let{version:r}=o;n?._directives?(this.directives=n._directives.atDocument(),this.directives.yaml.explicit&&(r=this.directives.yaml.version)):this.directives=new rs({version:r}),this.setSchema(r,n),this.contents=e===void 0?null:this.createNode(e,i,n)}clone(){const e=Object.create(gs.prototype,{[on]:{value:ln}});return e.commentBefore=this.commentBefore,e.comment=this.comment,e.errors=this.errors.slice(),e.warnings=this.warnings.slice(),e.options=Object.assign({},this.options),this.directives&&(e.directives=this.directives.clone()),e.schema=this.schema.clone(),e.contents=$s(this.contents)?this.contents.clone(e.schema):this.contents,this.range&&(e.range=this.range.slice()),e}add(e){Nt(this.contents)&&this.contents.add(e)}addIn(e,t){Nt(this.contents)&&this.contents.addIn(e,t)}createAlias(e,t){if(!e.anchor){const n=La(this);e.anchor=!t||n.has(t)?ja(t||"a",n):t}return new In(e.anchor)}createNode(e,t,n){let i;if(typeof t=="function")e=t.call({"":e},"",e),i=t;else if(Array.isArray(t)){const N=W=>typeof W=="number"||W instanceof String||W instanceof Number,j=t.filter(N).map(String);j.length>0&&(t=t.concat(j)),i=t}else n===void 0&&t&&(n=t,t=void 0);const{aliasDuplicateObjects:o,anchorPrefix:r,flow:l,keepUndefined:c,onTagObj:d,tag:v}=n??{},{onAnchor:u,setAnchors:f,sourceObjects:x}=Da(this,r||"a"),K={aliasDuplicateObjects:o??!0,keepUndefined:c??!1,onAnchor:u,onTagObj:d,replacer:i,schema:this.schema,sourceObjects:x},S=Ma(e,v,K);return l&>(S)&&(S.flow=!0),f(),S}createPair(e,t,n={}){const i=this.createNode(e,null,n),o=this.createNode(t,null,n);return new ds(i,o)}delete(e){return Nt(this.contents)?this.contents.delete(e):!1}deleteIn(e){return ss(e)?this.contents==null?!1:(this.contents=null,!0):Nt(this.contents)?this.contents.deleteIn(e):!1}get(e,t){return gt(this.contents)?this.contents.get(e,t):void 0}getIn(e,t){return ss(e)?!t&&it(this.contents)?this.contents.value:this.contents:gt(this.contents)?this.contents.getIn(e,t):void 0}has(e){return gt(this.contents)?this.contents.has(e):!1}hasIn(e){return ss(e)?this.contents!==void 0:gt(this.contents)?this.contents.hasIn(e):!1}set(e,t){this.contents==null?this.contents=cn(this.schema,[e],t):Nt(this.contents)&&this.contents.set(e,t)}setIn(e,t){ss(e)?this.contents=t:this.contents==null?this.contents=cn(this.schema,Array.from(e),t):Nt(this.contents)&&this.contents.setIn(e,t)}setSchema(e,t={}){typeof e=="number"&&(e=String(e));let n;switch(e){case"1.1":this.directives?this.directives.yaml.version="1.1":this.directives=new rs({version:"1.1"}),n={resolveKnownTags:!1,schema:"yaml-1.1"};break;case"1.2":case"next":this.directives?this.directives.yaml.version=e:this.directives=new rs({version:e}),n={resolveKnownTags:!0,schema:"core"};break;case null:this.directives&&delete this.directives,n=null;break;default:{const i=JSON.stringify(e);throw new Error(`Expected '1.1', '1.2' or null as first argument, but found: ${i}`)}}if(t.schema instanceof Object)this.schema=t.schema;else if(n)this.schema=new Xs(Object.assign(n,t));else throw new Error("With a null YAML version, the { schema: Schema } option is required")}toJS({json:e,jsonArg:t,mapAsMap:n,maxAliasCount:i,onAnchor:o,reviver:r}={}){const l={anchors:new Map,doc:this,keep:!e,mapAsMap:n===!0,mapKeyWarned:!1,maxAliasCount:typeof i=="number"?i:100},c=Pa(this.contents,t??"",l);if(typeof o=="function")for(const{count:d,res:v}of l.anchors.values())o(v,d);return typeof r=="function"?Ba(r,{"":c},"",c):c}toJSON(e,t){return this.toJS({json:!0,jsonArg:e,mapAsMap:!1,onAnchor:t})}toString(e={}){if(this.errors.length>0)throw new Error("Document with errors cannot be stringified");if("indent"in e&&(!Number.isInteger(e.indent)||Number(e.indent)<=0)){const t=JSON.stringify(e.indent);throw new Error(`"indent" option must be a positive integer, not ${t}`)}return bi(this,e)}}function Nt(s){if(gt(s))return!0;throw new Error("Expected a YAML collection as document contents")}class Jn extends Error{constructor(e,t,n,i){super(),this.name=e,this.code=n,this.message=i,this.pos=t}}class Ft extends Jn{constructor(e,t,n){super("YAMLParseError",e,t,n)}}class _i extends Jn{constructor(e,t,n){super("YAMLWarning",e,t,n)}}const mn=(s,e)=>t=>{if(t.pos[0]===-1)return;t.linePos=t.pos.map(l=>e.linePos(l));const{line:n,col:i}=t.linePos[0];t.message+=` at line ${n}, column ${i}`;let o=i-1,r=s.substring(e.lineStarts[n-1],e.lineStarts[n]).replace(/[\n\r]+$/,"");if(o>=60&&r.length>80){const l=Math.min(o-39,r.length-79);r="…"+r.substring(l),o-=l-1}if(r.length>80&&(r=r.substring(0,79)+"…"),n>1&&/^ *$/.test(r.substring(0,o))){let l=s.substring(e.lineStarts[n-2],e.lineStarts[n-1]);l.length>80&&(l=l.substring(0,79)+`…
|
|
6
|
+
`),r=l+r}if(/[^ ]/.test(r)){let l=1;const c=t.linePos[1];c?.line===n&&c.col>i&&(l=Math.max(1,Math.min(c.col-i,80-o)));const d=" ".repeat(o)+"^".repeat(l);t.message+=`:
|
|
7
|
+
|
|
8
|
+
${r}
|
|
9
|
+
${d}
|
|
10
|
+
`}};function Lt(s,{flow:e,indicator:t,next:n,offset:i,onError:o,parentIndent:r,startOnNewline:l}){let c=!1,d=l,v=l,u="",f="",x=!1,K=!1,S=null,N=null,j=null,W=null,ne=null,te=null,ae=null;for(const L of s)switch(K&&(L.type!=="space"&&L.type!=="newline"&&L.type!=="comma"&&o(L.offset,"MISSING_CHAR","Tags and anchors must be separated from the next token by white space"),K=!1),S&&(d&&L.type!=="comment"&&L.type!=="newline"&&o(S,"TAB_AS_INDENT","Tabs are not allowed as indentation"),S=null),L.type){case"space":!e&&(t!=="doc-start"||n?.type!=="flow-collection")&&L.source.includes(" ")&&(S=L),v=!0;break;case"comment":{v||o(L,"MISSING_CHAR","Comments must be separated from other tokens by white space characters");const J=L.source.substring(1)||" ";u?u+=f+J:u=J,f="",d=!1;break}case"newline":d?u?u+=L.source:(!te||t!=="seq-item-ind")&&(c=!0):f+=L.source,d=!0,x=!0,(N||j)&&(W=L),v=!0;break;case"anchor":N&&o(L,"MULTIPLE_ANCHORS","A node can have at most one anchor"),L.source.endsWith(":")&&o(L.offset+L.source.length-1,"BAD_ALIAS","Anchor ending in : is ambiguous",!0),N=L,ae??(ae=L.offset),d=!1,v=!1,K=!0;break;case"tag":{j&&o(L,"MULTIPLE_TAGS","A node can have at most one tag"),j=L,ae??(ae=L.offset),d=!1,v=!1,K=!0;break}case t:(N||j)&&o(L,"BAD_PROP_ORDER",`Anchors and tags must be after the ${L.source} indicator`),te&&o(L,"UNEXPECTED_TOKEN",`Unexpected ${L.source} in ${e??"collection"}`),te=L,d=t==="seq-item-ind"||t==="explicit-key-ind",v=!1;break;case"comma":if(e){ne&&o(L,"UNEXPECTED_TOKEN",`Unexpected , in ${e}`),ne=L,d=!1,v=!1;break}default:o(L,"UNEXPECTED_TOKEN",`Unexpected ${L.type} token`),d=!1,v=!1}const H=s[s.length-1],pe=H?H.offset+H.source.length:i;return K&&n&&n.type!=="space"&&n.type!=="newline"&&n.type!=="comma"&&(n.type!=="scalar"||n.source!=="")&&o(n.offset,"MISSING_CHAR","Tags and anchors must be separated from the next token by white space"),S&&(d&&S.indent<=r||n?.type==="block-map"||n?.type==="block-seq")&&o(S,"TAB_AS_INDENT","Tabs are not allowed as indentation"),{comma:ne,found:te,spaceBefore:c,comment:u,hasNewline:x,anchor:N,tag:j,newlineAfterProp:W,end:pe,start:ae??pe}}function Ht(s){if(!s)return null;switch(s.type){case"alias":case"scalar":case"double-quoted-scalar":case"single-quoted-scalar":if(s.source.includes(`
|
|
11
|
+
`))return!0;if(s.end){for(const e of s.end)if(e.type==="newline")return!0}return!1;case"flow-collection":for(const e of s.items){for(const t of e.start)if(t.type==="newline")return!0;if(e.sep){for(const t of e.sep)if(t.type==="newline")return!0}if(Ht(e.key)||Ht(e.value))return!0}return!1;default:return!0}}function Bs(s,e,t){if(e?.type==="flow-collection"){const n=e.end[0];n.indent===s&&(n.source==="]"||n.source==="}")&&Ht(e)&&t(n,"BAD_INDENT","Flow end indicator should be more indented than parent",!0)}}function Vn(s,e,t){const{uniqueKeys:n}=s.options;if(n===!1)return!1;const i=typeof n=="function"?n:(o,r)=>o===r||it(o)&&it(r)&&o.value===r.value;return e.some(o=>i(o.key,t))}const pn="All mapping items must start at the same column";function ki({composeNode:s,composeEmptyNode:e},t,n,i,o){const r=o?.nodeClass??Et,l=new r(t.schema);t.atRoot&&(t.atRoot=!1);let c=n.offset,d=null;for(const v of n.items){const{start:u,key:f,sep:x,value:K}=v,S=Lt(u,{indicator:"explicit-key-ind",next:f??x?.[0],offset:c,onError:i,parentIndent:n.indent,startOnNewline:!0}),N=!S.found;if(N){if(f&&(f.type==="block-seq"?i(c,"BLOCK_AS_IMPLICIT_KEY","A block sequence may not be used as an implicit map key"):"indent"in f&&f.indent!==n.indent&&i(c,"BAD_INDENT",pn)),!S.anchor&&!S.tag&&!x){d=S.end,S.comment&&(l.comment?l.comment+=`
|
|
12
|
+
`+S.comment:l.comment=S.comment);continue}(S.newlineAfterProp||Ht(f))&&i(f??u[u.length-1],"MULTILINE_IMPLICIT_KEY","Implicit keys need to be on a single line")}else S.found?.indent!==n.indent&&i(c,"BAD_INDENT",pn);t.atKey=!0;const j=S.end,W=f?s(t,f,S,i):e(t,j,u,null,S,i);t.schema.compat&&Bs(n.indent,f,i),t.atKey=!1,Vn(t,l.items,W)&&i(j,"DUPLICATE_KEY","Map keys must be unique");const ne=Lt(x??[],{indicator:"map-value-ind",next:K,offset:W.range[2],onError:i,parentIndent:n.indent,startOnNewline:!f||f.type==="block-scalar"});if(c=ne.end,ne.found){N&&(K?.type==="block-map"&&!ne.hasNewline&&i(c,"BLOCK_AS_IMPLICIT_KEY","Nested mappings are not allowed in compact mappings"),t.options.strict&&S.start<ne.found.offset-1024&&i(W.range,"KEY_OVER_1024_CHARS","The : indicator must be at most 1024 chars after the start of an implicit block mapping key"));const te=K?s(t,K,ne,i):e(t,c,x,null,ne,i);t.schema.compat&&Bs(n.indent,K,i),c=te.range[2];const ae=new ds(W,te);t.options.keepSourceTokens&&(ae.srcToken=v),l.items.push(ae)}else{N&&i(W.range,"MISSING_CHAR","Implicit map keys need to be followed by map values"),ne.comment&&(W.comment?W.comment+=`
|
|
13
|
+
`+ne.comment:W.comment=ne.comment);const te=new ds(W);t.options.keepSourceTokens&&(te.srcToken=v),l.items.push(te)}}return d&&d<c&&i(d,"IMPOSSIBLE","Map comment with trailing content"),l.range=[n.offset,c,d??c],l}function xi({composeNode:s,composeEmptyNode:e},t,n,i,o){const r=o?.nodeClass??Yt,l=new r(t.schema);t.atRoot&&(t.atRoot=!1),t.atKey&&(t.atKey=!1);let c=n.offset,d=null;for(const{start:v,value:u}of n.items){const f=Lt(v,{indicator:"seq-item-ind",next:u,offset:c,onError:i,parentIndent:n.indent,startOnNewline:!0});if(!f.found)if(f.anchor||f.tag||u)u?.type==="block-seq"?i(f.end,"BAD_INDENT","All sequence items must start at the same column"):i(c,"MISSING_CHAR","Sequence item without - indicator");else{d=f.end,f.comment&&(l.comment=f.comment);continue}const x=u?s(t,u,f,i):e(t,f.end,v,null,f,i);t.schema.compat&&Bs(n.indent,u,i),c=x.range[2],l.items.push(x)}return l.range=[n.offset,c,d??c],l}function Qt(s,e,t,n){let i="";if(s){let o=!1,r="";for(const l of s){const{source:c,type:d}=l;switch(d){case"space":o=!0;break;case"comment":{t&&!o&&n(l,"MISSING_CHAR","Comments must be separated from other tokens by white space characters");const v=c.substring(1)||" ";i?i+=r+v:i=v,r="";break}case"newline":i&&(r+=c),o=!0;break;default:n(l,"UNEXPECTED_TOKEN",`Unexpected ${d} at node end`)}e+=c.length}}return{comment:i,offset:e}}const Ts="Block collections are not allowed within flow collections",Ns=s=>s&&(s.type==="block-map"||s.type==="block-seq");function wi({composeNode:s,composeEmptyNode:e},t,n,i,o){const r=n.start.source==="{",l=r?"flow map":"flow sequence",c=o?.nodeClass??(r?Et:Yt),d=new c(t.schema);d.flow=!0;const v=t.atRoot;v&&(t.atRoot=!1),t.atKey&&(t.atKey=!1);let u=n.offset+n.start.source.length;for(let N=0;N<n.items.length;++N){const j=n.items[N],{start:W,key:ne,sep:te,value:ae}=j,H=Lt(W,{flow:l,indicator:"explicit-key-ind",next:ne??te?.[0],offset:u,onError:i,parentIndent:n.indent,startOnNewline:!1});if(!H.found){if(!H.anchor&&!H.tag&&!te&&!ae){N===0&&H.comma?i(H.comma,"UNEXPECTED_TOKEN",`Unexpected , in ${l}`):N<n.items.length-1&&i(H.start,"UNEXPECTED_TOKEN",`Unexpected empty item in ${l}`),H.comment&&(d.comment?d.comment+=`
|
|
14
|
+
`+H.comment:d.comment=H.comment),u=H.end;continue}!r&&t.options.strict&&Ht(ne)&&i(ne,"MULTILINE_IMPLICIT_KEY","Implicit keys of flow sequence pairs need to be on a single line")}if(N===0)H.comma&&i(H.comma,"UNEXPECTED_TOKEN",`Unexpected , in ${l}`);else if(H.comma||i(H.start,"MISSING_CHAR",`Missing , between ${l} items`),H.comment){let pe="";e:for(const L of W)switch(L.type){case"comma":case"space":break;case"comment":pe=L.source.substring(1);break e;default:break e}if(pe){let L=d.items[d.items.length-1];On(L)&&(L=L.value??L.key),L.comment?L.comment+=`
|
|
15
|
+
`+pe:L.comment=pe,H.comment=H.comment.substring(pe.length+1)}}if(!r&&!te&&!H.found){const pe=ae?s(t,ae,H,i):e(t,H.end,te,null,H,i);d.items.push(pe),u=pe.range[2],Ns(ae)&&i(pe.range,"BLOCK_IN_FLOW",Ts)}else{t.atKey=!0;const pe=H.end,L=ne?s(t,ne,H,i):e(t,pe,W,null,H,i);Ns(ne)&&i(L.range,"BLOCK_IN_FLOW",Ts),t.atKey=!1;const J=Lt(te??[],{flow:l,indicator:"map-value-ind",next:ae,offset:L.range[2],onError:i,parentIndent:n.indent,startOnNewline:!1});if(J.found){if(!r&&!H.found&&t.options.strict){if(te)for(const C of te){if(C===J.found)break;if(C.type==="newline"){i(C,"MULTILINE_IMPLICIT_KEY","Implicit keys of flow sequence pairs need to be on a single line");break}}H.start<J.found.offset-1024&&i(J.found,"KEY_OVER_1024_CHARS","The : indicator must be at most 1024 chars after the start of an implicit flow sequence key")}}else ae&&("source"in ae&&ae.source?.[0]===":"?i(ae,"MISSING_CHAR",`Missing space after : in ${l}`):i(J.start,"MISSING_CHAR",`Missing , or : between ${l} items`));const be=ae?s(t,ae,J,i):J.found?e(t,J.end,te,null,J,i):null;be?Ns(ae)&&i(be.range,"BLOCK_IN_FLOW",Ts):J.comment&&(L.comment?L.comment+=`
|
|
16
|
+
`+J.comment:L.comment=J.comment);const R=new ds(L,be);if(t.options.keepSourceTokens&&(R.srcToken=j),r){const C=d;Vn(t,C.items,L)&&i(pe,"DUPLICATE_KEY","Map keys must be unique"),C.items.push(R)}else{const C=new Et(t.schema);C.flow=!0,C.items.push(R);const E=(be??L).range;C.range=[L.range[0],E[1],E[2]],d.items.push(C)}u=be?be.range[2]:J.end}}const f=r?"}":"]",[x,...K]=n.end;let S=u;if(x?.source===f)S=x.offset+x.source.length;else{const N=l[0].toUpperCase()+l.substring(1),j=v?`${N} must end with a ${f}`:`${N} in block collection must be sufficiently indented and end with a ${f}`;i(u,v?"MISSING_CHAR":"BAD_INDENT",j),x&&x.source.length!==1&&K.unshift(x)}if(K.length>0){const N=Qt(K,S,t.options.strict,i);N.comment&&(d.comment?d.comment+=`
|
|
17
|
+
`+N.comment:d.comment=N.comment),d.range=[n.offset,S,N.offset]}else d.range=[n.offset,S,S];return d}function As(s,e,t,n,i,o){const r=t.type==="block-map"?ki(s,e,t,n,o):t.type==="block-seq"?xi(s,e,t,n,o):wi(s,e,t,n,o),l=r.constructor;return i==="!"||i===l.tagName?(r.tag=l.tagName,r):(i&&(r.tag=i),r)}function Si(s,e,t,n,i){const o=n.tag,r=o?e.directives.tagName(o.source,f=>i(o,"TAG_RESOLVE_FAILED",f)):null;if(t.type==="block-seq"){const{anchor:f,newlineAfterProp:x}=n,K=f&&o?f.offset>o.offset?f:o:f??o;K&&(!x||x.offset<K.offset)&&i(K,"MISSING_CHAR","Missing newline after block sequence props")}const l=t.type==="block-map"?"map":t.type==="block-seq"?"seq":t.start.source==="{"?"map":"seq";if(!o||!r||r==="!"||r===Et.tagName&&l==="map"||r===Yt.tagName&&l==="seq")return As(s,e,t,i,r);let c=e.schema.tags.find(f=>f.tag===r&&f.collection===l);if(!c){const f=e.schema.knownTags[r];if(f?.collection===l)e.schema.tags.push(Object.assign({},f,{default:!1})),c=f;else return f?i(o,"BAD_COLLECTION_TYPE",`${f.tag} used for ${l} collection, but expects ${f.collection??"scalar"}`,!0):i(o,"TAG_RESOLVE_FAILED",`Unresolved tag: ${r}`,!0),As(s,e,t,i,r)}const d=As(s,e,t,i,r,c),v=c.resolve?.(d,f=>i(o,"TAG_RESOLVE_FAILED",f),e.options)??d,u=$s(v)?v:new Pe(v);return u.range=d.range,u.tag=r,c?.format&&(u.format=c.format),u}function Ti(s,e,t){const n=e.offset,i=Ni(e,s.options.strict,t);if(!i)return{value:"",type:null,comment:"",range:[n,n,n]};const o=i.mode===">"?Pe.BLOCK_FOLDED:Pe.BLOCK_LITERAL,r=e.source?Ai(e.source):[];let l=r.length;for(let S=r.length-1;S>=0;--S){const N=r[S][1];if(N===""||N==="\r")l=S;else break}if(l===0){const S=i.chomp==="+"&&r.length>0?`
|
|
18
|
+
`.repeat(Math.max(1,r.length-1)):"";let N=n+i.length;return e.source&&(N+=e.source.length),{value:S,type:o,comment:i.comment,range:[n,N,N]}}let c=e.indent+i.indent,d=e.offset+i.length,v=0;for(let S=0;S<l;++S){const[N,j]=r[S];if(j===""||j==="\r")i.indent===0&&N.length>c&&(c=N.length);else{N.length<c&&t(d+N.length,"MISSING_CHAR","Block scalars with more-indented leading empty lines must use an explicit indentation indicator"),i.indent===0&&(c=N.length),v=S,c===0&&!s.atRoot&&t(d,"BAD_INDENT","Block scalar values in collections must be indented");break}d+=N.length+j.length+1}for(let S=r.length-1;S>=l;--S)r[S][0].length>c&&(l=S+1);let u="",f="",x=!1;for(let S=0;S<v;++S)u+=r[S][0].slice(c)+`
|
|
19
|
+
`;for(let S=v;S<l;++S){let[N,j]=r[S];d+=N.length+j.length+1;const W=j[j.length-1]==="\r";if(W&&(j=j.slice(0,-1)),j&&N.length<c){const te=`Block scalar lines must not be less indented than their ${i.indent?"explicit indentation indicator":"first line"}`;t(d-j.length-(W?2:1),"BAD_INDENT",te),N=""}o===Pe.BLOCK_LITERAL?(u+=f+N.slice(c)+j,f=`
|
|
20
|
+
`):N.length>c||j[0]===" "?(f===" "?f=`
|
|
21
|
+
`:!x&&f===`
|
|
22
|
+
`&&(f=`
|
|
23
|
+
|
|
24
|
+
`),u+=f+N.slice(c)+j,f=`
|
|
25
|
+
`,x=!0):j===""?f===`
|
|
26
|
+
`?u+=`
|
|
27
|
+
`:f=`
|
|
28
|
+
`:(u+=f+j,f=" ",x=!1)}switch(i.chomp){case"-":break;case"+":for(let S=l;S<r.length;++S)u+=`
|
|
29
|
+
`+r[S][0].slice(c);u[u.length-1]!==`
|
|
30
|
+
`&&(u+=`
|
|
31
|
+
`);break;default:u+=`
|
|
32
|
+
`}const K=n+i.length+e.source.length;return{value:u,type:o,comment:i.comment,range:[n,K,K]}}function Ni({offset:s,props:e},t,n){if(e[0].type!=="block-scalar-header")return n(e[0],"IMPOSSIBLE","Block scalar header not found"),null;const{source:i}=e[0],o=i[0];let r=0,l="",c=-1;for(let f=1;f<i.length;++f){const x=i[f];if(!l&&(x==="-"||x==="+"))l=x;else{const K=Number(x);!r&&K?r=K:c===-1&&(c=s+f)}}c!==-1&&n(c,"UNEXPECTED_TOKEN",`Block scalar header includes extra characters: ${i}`);let d=!1,v="",u=i.length;for(let f=1;f<e.length;++f){const x=e[f];switch(x.type){case"space":d=!0;case"newline":u+=x.source.length;break;case"comment":t&&!d&&n(x,"MISSING_CHAR","Comments must be separated from other tokens by white space characters"),u+=x.source.length,v=x.source.substring(1);break;case"error":n(x,"UNEXPECTED_TOKEN",x.message),u+=x.source.length;break;default:{const K=`Unexpected token in block scalar header: ${x.type}`;n(x,"UNEXPECTED_TOKEN",K);const S=x.source;S&&typeof S=="string"&&(u+=S.length)}}}return{mode:o,indent:r,chomp:l,comment:v,length:u}}function Ai(s){const e=s.split(/\n( *)/),t=e[0],n=t.match(/^( *)/),o=[n?.[1]?[n[1],t.slice(n[1].length)]:["",t]];for(let r=1;r<e.length;r+=2)o.push([e[r],e[r+1]]);return o}function Ii(s,e,t){const{offset:n,type:i,source:o,end:r}=s;let l,c;const d=(f,x,K)=>t(n+f,x,K);switch(i){case"scalar":l=Pe.PLAIN,c=Oi(o,d);break;case"single-quoted-scalar":l=Pe.QUOTE_SINGLE,c=Ci(o,d);break;case"double-quoted-scalar":l=Pe.QUOTE_DOUBLE,c=Ei(o,d);break;default:return t(s,"UNEXPECTED_TOKEN",`Expected a flow scalar value, but found: ${i}`),{value:"",type:null,comment:"",range:[n,n+o.length,n+o.length]}}const v=n+o.length,u=Qt(r,v,e,t);return{value:c,type:l,comment:u.comment,range:[n,v,u.offset]}}function Oi(s,e){let t="";switch(s[0]){case" ":t="a tab character";break;case",":t="flow indicator character ,";break;case"%":t="directive indicator character %";break;case"|":case">":{t=`block scalar indicator ${s[0]}`;break}case"@":case"`":{t=`reserved character ${s[0]}`;break}}return t&&e(0,"BAD_SCALAR_START",`Plain value cannot start with ${t}`),Xn(s)}function Ci(s,e){return(s[s.length-1]!=="'"||s.length===1)&&e(s.length,"MISSING_CHAR","Missing closing 'quote"),Xn(s.slice(1,-1)).replace(/''/g,"'")}function Xn(s){const e=/(.*?)\r?\n/sy;let t=e.exec(s);if(!t)return s;let n,i;try{n=new RegExp("(?<![ ])[ ]+$"),i=new RegExp("^[ ]+|(?<![ ])[ ]+$","g")}catch{n=/[ \t]+$/,i=/^[ \t]+|[ \t]+$/g}let o=t[1].replace(n,""),r=" ",l=e.lastIndex;for(;t=e.exec(s);){const d=t[1].replace(i,"");d===""?r===`
|
|
33
|
+
`?o+=r:r=`
|
|
34
|
+
`:(o+=r+d,r=" "),l=e.lastIndex}const c=/[ \t]*(.*)/sy;return c.lastIndex=l,t=c.exec(s),o+r+(t?.[1]??"")}function Ei(s,e){let t="";for(let n=1;n<s.length-1;++n){const i=s[n];if(!(i==="\r"&&s[n+1]===`
|
|
35
|
+
`))if(i===`
|
|
36
|
+
`){const{fold:o,offset:r}=Li(s,n);t+=o,n=r}else if(i==="\\"){let o=s[++n];const r=ji[o];if(r)t+=r;else if(o===`
|
|
37
|
+
`)for(o=s[n+1];o===" "||o===" ";)o=s[++n+1];else if(o==="\r"&&s[n+1]===`
|
|
38
|
+
`)for(o=s[++n+1];o===" "||o===" ";)o=s[++n+1];else if(o==="x"||o==="u"||o==="U"){const l=o==="x"?2:o==="u"?4:8;t+=Mi(s,n+1,l,e),n+=l}else{const l=s.substr(n-1,2);e(n-1,"BAD_DQ_ESCAPE",`Invalid escape sequence ${l}`),t+=l}}else if(i===" "||i===" "){const o=n;let r=s[n+1];for(;r===" "||r===" ";)r=s[++n+1];r!==`
|
|
39
|
+
`&&!(r==="\r"&&s[n+2]===`
|
|
40
|
+
`)&&(t+=n>o?s.slice(o,n+1):i)}else t+=i}return(s[s.length-1]!=='"'||s.length===1)&&e(s.length,"MISSING_CHAR",'Missing closing "quote'),t}function Li(s,e){let t="",n=s[e+1];for(;(n===" "||n===" "||n===`
|
|
41
|
+
`||n==="\r")&&!(n==="\r"&&s[e+2]!==`
|
|
42
|
+
`);)n===`
|
|
43
|
+
`&&(t+=`
|
|
44
|
+
`),e+=1,n=s[e+1];return t||(t=" "),{fold:t,offset:e}}const ji={0:"\0",a:"\x07",b:"\b",e:"\x1B",f:"\f",n:`
|
|
45
|
+
`,r:"\r",t:" ",v:"\v",N:"
",_:" ",L:"\u2028",P:"\u2029"," ":" ",'"':'"',"/":"/","\\":"\\"," ":" "};function Mi(s,e,t,n){const i=s.substr(e,t),r=i.length===t&&/^[0-9a-fA-F]+$/.test(i)?parseInt(i,16):NaN;try{return String.fromCodePoint(r)}catch{const l=s.substr(e-2,t+2);return n(e-2,"BAD_DQ_ESCAPE",`Invalid escape sequence ${l}`),l}}function Qn(s,e,t,n){const{value:i,type:o,comment:r,range:l}=e.type==="block-scalar"?Ti(s,e,n):Ii(e,s.options.strict,n),c=t?s.directives.tagName(t.source,u=>n(t,"TAG_RESOLVE_FAILED",u)):null;let d;s.options.stringKeys&&s.atKey?d=s.schema[_t]:c?d=Pi(s.schema,i,c,t,n):e.type==="scalar"?d=Bi(s,i,e,n):d=s.schema[_t];let v;try{const u=d.resolve(i,f=>n(t??e,"TAG_RESOLVE_FAILED",f),s.options);v=it(u)?u:new Pe(u)}catch(u){const f=u instanceof Error?u.message:String(u);n(t??e,"TAG_RESOLVE_FAILED",f),v=new Pe(i)}return v.range=l,v.source=i,o&&(v.type=o),c&&(v.tag=c),d.format&&(v.format=d.format),r&&(v.comment=r),v}function Pi(s,e,t,n,i){if(t==="!")return s[_t];const o=[];for(const l of s.tags)if(!l.collection&&l.tag===t)if(l.default&&l.test)o.push(l);else return l;for(const l of o)if(l.test?.test(e))return l;const r=s.knownTags[t];return r&&!r.collection?(s.tags.push(Object.assign({},r,{default:!1,test:void 0})),r):(i(n,"TAG_RESOLVE_FAILED",`Unresolved tag: ${t}`,t!=="tag:yaml.org,2002:str"),s[_t])}function Bi({atKey:s,directives:e,schema:t},n,i,o){const r=t.tags.find(l=>(l.default===!0||s&&l.default==="key")&&l.test?.test(n))||t[_t];if(t.compat){const l=t.compat.find(c=>c.default&&c.test?.test(n))??t[_t];if(r.tag!==l.tag){const c=e.tagString(r.tag),d=e.tagString(l.tag),v=`Value may be parsed as either ${c} or ${d}`;o(i,"TAG_RESOLVE_FAILED",v,!0)}}return r}function Di(s,e,t){if(e){t??(t=e.length);for(let n=t-1;n>=0;--n){let i=e[n];switch(i.type){case"space":case"comment":case"newline":s-=i.source.length;continue}for(i=e[++n];i?.type==="space";)s+=i.source.length,i=e[++n];break}}return s}const Ri={composeNode:Zn,composeEmptyNode:Qs};function Zn(s,e,t,n){const i=s.atKey,{spaceBefore:o,comment:r,anchor:l,tag:c}=t;let d,v=!0;switch(e.type){case"alias":d=Ki(s,e,n),(l||c)&&n(e,"ALIAS_PROPS","An alias node must not specify any properties");break;case"scalar":case"single-quoted-scalar":case"double-quoted-scalar":case"block-scalar":d=Qn(s,e,c,n),l&&(d.anchor=l.source.substring(1));break;case"block-map":case"block-seq":case"flow-collection":try{d=Si(Ri,s,e,t,n),l&&(d.anchor=l.source.substring(1))}catch(u){const f=u instanceof Error?u.message:String(u);n(e,"RESOURCE_EXHAUSTION",f)}break;default:{const u=e.type==="error"?e.message:`Unsupported token (type: ${e.type})`;n(e,"UNEXPECTED_TOKEN",u),v=!1}}return d??(d=Qs(s,e.offset,void 0,null,t,n)),l&&d.anchor===""&&n(l,"BAD_ALIAS","Anchor cannot be an empty string"),i&&s.options.stringKeys&&(!it(d)||typeof d.value!="string"||d.tag&&d.tag!=="tag:yaml.org,2002:str")&&n(c??e,"NON_STRING_KEY","With stringKeys, all keys must be strings"),o&&(d.spaceBefore=!0),r&&(e.type==="scalar"&&e.source===""?d.comment=r:d.commentBefore=r),s.options.keepSourceTokens&&v&&(d.srcToken=e),d}function Qs(s,e,t,n,{spaceBefore:i,comment:o,anchor:r,tag:l,end:c},d){const v={type:"scalar",offset:Di(e,t,n),indent:-1,source:""},u=Qn(s,v,l,d);return r&&(u.anchor=r.source.substring(1),u.anchor===""&&d(r,"BAD_ALIAS","Anchor cannot be an empty string")),i&&(u.spaceBefore=!0),o&&(u.comment=o,u.range[2]=c),u}function Ki({options:s},{offset:e,source:t,end:n},i){const o=new In(t.substring(1));o.source===""&&i(e,"BAD_ALIAS","Alias cannot be an empty string"),o.source.endsWith(":")&&i(e+t.length-1,"BAD_ALIAS","Alias ending in : is ambiguous",!0);const r=e+t.length,l=Qt(n,r,s.strict,i);return o.range=[e,r,l.offset],l.comment&&(o.comment=l.comment),o}function qi(s,e,{offset:t,start:n,value:i,end:o},r){const l=Object.assign({_directives:e},s),c=new gs(void 0,l),d={atKey:!1,atRoot:!0,directives:c.directives,options:c.options,schema:c.schema},v=Lt(n,{indicator:"doc-start",next:i??o?.[0],offset:t,onError:r,parentIndent:0,startOnNewline:!0});v.found&&(c.directives.docStart=!0,i&&(i.type==="block-map"||i.type==="block-seq")&&!v.hasNewline&&r(v.end,"MISSING_CHAR","Block collection cannot start on same line with directives-end marker")),c.contents=i?Zn(d,i,v,r):Qs(d,v.end,n,null,v,r);const u=c.contents.range[2],f=Qt(o,u,!1,r);return f.comment&&(c.comment=f.comment),c.range=[t,u,f.offset],c}function Ut(s){if(typeof s=="number")return[s,s+1];if(Array.isArray(s))return s.length===2?s:[s[0],s[1]];const{offset:e,source:t}=s;return[e,e+(typeof t=="string"?t.length:1)]}function vn(s){let e="",t=!1,n=!1;for(let i=0;i<s.length;++i){const o=s[i];switch(o[0]){case"#":e+=(e===""?"":n?`
|
|
46
|
+
|
|
47
|
+
`:`
|
|
48
|
+
`)+(o.substring(1)||" "),t=!0,n=!1;break;case"%":s[i+1]?.[0]!=="#"&&(i+=1),t=!1;break;default:t||(n=!0),t=!1}}return{comment:e,afterEmptyLine:n}}class Ui{constructor(e={}){this.doc=null,this.atDirectives=!1,this.prelude=[],this.errors=[],this.warnings=[],this.onError=(t,n,i,o)=>{const r=Ut(t);o?this.warnings.push(new _i(r,n,i)):this.errors.push(new Ft(r,n,i))},this.directives=new rs({version:e.version||"1.2"}),this.options=e}decorate(e,t){const{comment:n,afterEmptyLine:i}=vn(this.prelude);if(n){const o=e.contents;if(t)e.comment=e.comment?`${e.comment}
|
|
49
|
+
${n}`:n;else if(i||e.directives.docStart||!o)e.commentBefore=n;else if(gt(o)&&!o.flow&&o.items.length>0){let r=o.items[0];On(r)&&(r=r.key);const l=r.commentBefore;r.commentBefore=l?`${n}
|
|
50
|
+
${l}`:n}else{const r=o.commentBefore;o.commentBefore=r?`${n}
|
|
51
|
+
${r}`:n}}if(t){for(let o=0;o<this.errors.length;++o)e.errors.push(this.errors[o]);for(let o=0;o<this.warnings.length;++o)e.warnings.push(this.warnings[o])}else e.errors=this.errors,e.warnings=this.warnings;this.prelude=[],this.errors=[],this.warnings=[]}streamInfo(){return{comment:vn(this.prelude).comment,directives:this.directives,errors:this.errors,warnings:this.warnings}}*compose(e,t=!1,n=-1){for(const i of e)yield*this.next(i);yield*this.end(t,n)}*next(e){switch(e.type){case"directive":this.directives.add(e.source,(t,n,i)=>{const o=Ut(e);o[0]+=t,this.onError(o,"BAD_DIRECTIVE",n,i)}),this.prelude.push(e.source),this.atDirectives=!0;break;case"document":{const t=qi(this.options,this.directives,e,this.onError);this.atDirectives&&!t.directives.docStart&&this.onError(e,"MISSING_CHAR","Missing directives-end/doc-start indicator line"),this.decorate(t,!1),this.doc&&(yield this.doc),this.doc=t,this.atDirectives=!1;break}case"byte-order-mark":case"space":break;case"comment":case"newline":this.prelude.push(e.source);break;case"error":{const t=e.source?`${e.message}: ${JSON.stringify(e.source)}`:e.message,n=new Ft(Ut(e),"UNEXPECTED_TOKEN",t);this.atDirectives||!this.doc?this.errors.push(n):this.doc.errors.push(n);break}case"doc-end":{if(!this.doc){const n="Unexpected doc-end without preceding document";this.errors.push(new Ft(Ut(e),"UNEXPECTED_TOKEN",n));break}this.doc.directives.docEnd=!0;const t=Qt(e.end,e.offset+e.source.length,this.doc.options.strict,this.onError);if(this.decorate(this.doc,!0),t.comment){const n=this.doc.comment;this.doc.comment=n?`${n}
|
|
52
|
+
${t.comment}`:t.comment}this.doc.range[2]=t.offset;break}default:this.errors.push(new Ft(Ut(e),"UNEXPECTED_TOKEN",`Unsupported token ${e.type}`))}}*end(e=!1,t=-1){if(this.doc)this.decorate(this.doc,!0),yield this.doc,this.doc=null;else if(e){const n=Object.assign({_directives:this.directives},this.options),i=new gs(void 0,n);this.atDirectives&&this.onError(t,"MISSING_CHAR","Missing directives-end indicator line"),i.range=[0,t,t],this.decorate(i,!1),yield i}}}class Fi{constructor(){this.lineStarts=[],this.addNewLine=e=>this.lineStarts.push(e),this.linePos=e=>{let t=0,n=this.lineStarts.length;for(;t<n;){const o=t+n>>1;this.lineStarts[o]<e?t=o+1:n=o}if(this.lineStarts[t]===e)return{line:t+1,col:1};if(t===0)return{line:0,col:e};const i=this.lineStarts[t-1];return{line:t,col:e-i+1}}}}function ft(s,e){for(let t=0;t<s.length;++t)if(s[t].type===e)return!0;return!1}function gn(s){for(let e=0;e<s.length;++e)switch(s[e].type){case"space":case"comment":case"newline":break;default:return e}return-1}function ea(s){switch(s?.type){case"alias":case"scalar":case"single-quoted-scalar":case"double-quoted-scalar":case"flow-collection":return!0;default:return!1}}function as(s){switch(s.type){case"document":return s.start;case"block-map":{const e=s.items[s.items.length-1];return e.sep??e.start}case"block-seq":return s.items[s.items.length-1].start;default:return[]}}function At(s){if(s.length===0)return[];let e=s.length;e:for(;--e>=0;)switch(s[e].type){case"doc-start":case"explicit-key-ind":case"map-value-ind":case"seq-item-ind":case"newline":break e}for(;s[++e]?.type==="space";);return s.splice(e,s.length)}function us(s,e){if(e.length<1e5)Array.prototype.push.apply(s,e);else for(let t=0;t<e.length;++t)s.push(e[t])}function yn(s){if(s.start.type==="flow-seq-start")for(const e of s.items)e.sep&&!e.value&&!ft(e.start,"explicit-key-ind")&&!ft(e.sep,"map-value-ind")&&(e.key&&(e.value=e.key),delete e.key,ea(e.value)?e.value.end?us(e.value.end,e.sep):e.value.end=e.sep:us(e.start,e.sep),delete e.sep)}class $i{constructor(e){this.atNewLine=!0,this.atScalar=!1,this.indent=0,this.offset=0,this.onKeyLine=!1,this.stack=[],this.source="",this.type="",this.lexer=new Ra,this.onNewLine=e}*parse(e,t=!1){this.onNewLine&&this.offset===0&&this.onNewLine(0);for(const n of this.lexer.lex(e,t))yield*this.next(n);t||(yield*this.end())}*next(e){if(this.source=e,this.atScalar){this.atScalar=!1,yield*this.step(),this.offset+=e.length;return}const t=Ka(e);if(t)if(t==="scalar")this.atNewLine=!1,this.atScalar=!0,this.type="scalar";else{switch(this.type=t,yield*this.step(),t){case"newline":this.atNewLine=!0,this.indent=0,this.onNewLine&&this.onNewLine(this.offset+e.length);break;case"space":this.atNewLine&&e[0]===" "&&(this.indent+=e.length);break;case"explicit-key-ind":case"map-value-ind":case"seq-item-ind":this.atNewLine&&(this.indent+=e.length);break;case"doc-mode":case"flow-error-end":return;default:this.atNewLine=!1}this.offset+=e.length}else{const n=`Not a YAML token: ${e}`;yield*this.pop({type:"error",offset:this.offset,message:n,source:e}),this.offset+=e.length}}*end(){for(;this.stack.length>0;)yield*this.pop()}get sourceToken(){return{type:this.type,offset:this.offset,indent:this.indent,source:this.source}}*step(){const e=this.peek(1);if(this.type==="doc-end"&&e?.type!=="doc-end"){for(;this.stack.length>0;)yield*this.pop();this.stack.push({type:"doc-end",offset:this.offset,source:this.source});return}if(!e)return yield*this.stream();switch(e.type){case"document":return yield*this.document(e);case"alias":case"scalar":case"single-quoted-scalar":case"double-quoted-scalar":return yield*this.scalar(e);case"block-scalar":return yield*this.blockScalar(e);case"block-map":return yield*this.blockMap(e);case"block-seq":return yield*this.blockSequence(e);case"flow-collection":return yield*this.flowCollection(e);case"doc-end":return yield*this.documentEnd(e)}yield*this.pop()}peek(e){return this.stack[this.stack.length-e]}*pop(e){const t=e??this.stack.pop();if(!t)yield{type:"error",offset:this.offset,source:"",message:"Tried to pop an empty stack"};else if(this.stack.length===0)yield t;else{const n=this.peek(1);switch(t.type==="block-scalar"?t.indent="indent"in n?n.indent:0:t.type==="flow-collection"&&n.type==="document"&&(t.indent=0),t.type==="flow-collection"&&yn(t),n.type){case"document":n.value=t;break;case"block-scalar":n.props.push(t);break;case"block-map":{const i=n.items[n.items.length-1];if(i.value){n.items.push({start:[],key:t,sep:[]}),this.onKeyLine=!0;return}else if(i.sep)i.value=t;else{Object.assign(i,{key:t,sep:[]}),this.onKeyLine=!i.explicitKey;return}break}case"block-seq":{const i=n.items[n.items.length-1];i.value?n.items.push({start:[],value:t}):i.value=t;break}case"flow-collection":{const i=n.items[n.items.length-1];!i||i.value?n.items.push({start:[],key:t,sep:[]}):i.sep?i.value=t:Object.assign(i,{key:t,sep:[]});return}default:yield*this.pop(),yield*this.pop(t)}if((n.type==="document"||n.type==="block-map"||n.type==="block-seq")&&(t.type==="block-map"||t.type==="block-seq")){const i=t.items[t.items.length-1];i&&!i.sep&&!i.value&&i.start.length>0&&gn(i.start)===-1&&(t.indent===0||i.start.every(o=>o.type!=="comment"||o.indent<t.indent))&&(n.type==="document"?n.end=i.start:n.items.push({start:i.start}),t.items.splice(-1,1))}}}*stream(){switch(this.type){case"directive-line":yield{type:"directive",offset:this.offset,source:this.source};return;case"byte-order-mark":case"space":case"comment":case"newline":yield this.sourceToken;return;case"doc-mode":case"doc-start":{const e={type:"document",offset:this.offset,start:[]};this.type==="doc-start"&&e.start.push(this.sourceToken),this.stack.push(e);return}}yield{type:"error",offset:this.offset,message:`Unexpected ${this.type} token in YAML stream`,source:this.source}}*document(e){if(e.value)return yield*this.lineEnd(e);switch(this.type){case"doc-start":{gn(e.start)!==-1?(yield*this.pop(),yield*this.step()):e.start.push(this.sourceToken);return}case"anchor":case"tag":case"space":case"comment":case"newline":e.start.push(this.sourceToken);return}const t=this.startBlockValue(e);t?this.stack.push(t):yield{type:"error",offset:this.offset,message:`Unexpected ${this.type} token in YAML document`,source:this.source}}*scalar(e){if(this.type==="map-value-ind"){const t=as(this.peek(2)),n=At(t);let i;e.end?(i=e.end,i.push(this.sourceToken),delete e.end):i=[this.sourceToken];const o={type:"block-map",offset:e.offset,indent:e.indent,items:[{start:n,key:e,sep:i}]};this.onKeyLine=!0,this.stack[this.stack.length-1]=o}else yield*this.lineEnd(e)}*blockScalar(e){switch(this.type){case"space":case"comment":case"newline":e.props.push(this.sourceToken);return;case"scalar":if(e.source=this.source,this.atNewLine=!0,this.indent=0,this.onNewLine){let t=this.source.indexOf(`
|
|
53
|
+
`)+1;for(;t!==0;)this.onNewLine(this.offset+t),t=this.source.indexOf(`
|
|
54
|
+
`,t)+1}yield*this.pop();break;default:yield*this.pop(),yield*this.step()}}*blockMap(e){const t=e.items[e.items.length-1];switch(this.type){case"newline":if(this.onKeyLine=!1,t.value){const n="end"in t.value?t.value.end:void 0;(Array.isArray(n)?n[n.length-1]:void 0)?.type==="comment"?n?.push(this.sourceToken):e.items.push({start:[this.sourceToken]})}else t.sep?t.sep.push(this.sourceToken):t.start.push(this.sourceToken);return;case"space":case"comment":if(t.value)e.items.push({start:[this.sourceToken]});else if(t.sep)t.sep.push(this.sourceToken);else{if(this.atIndentedComment(t.start,e.indent)){const i=e.items[e.items.length-2]?.value?.end;if(Array.isArray(i)){us(i,t.start),i.push(this.sourceToken),e.items.pop();return}}t.start.push(this.sourceToken)}return}if(this.indent>=e.indent){const n=!this.onKeyLine&&this.indent===e.indent,i=n&&(t.sep||t.explicitKey)&&this.type!=="seq-item-ind";let o=[];if(i&&t.sep&&!t.value){const r=[];for(let l=0;l<t.sep.length;++l){const c=t.sep[l];switch(c.type){case"newline":r.push(l);break;case"space":break;case"comment":c.indent>e.indent&&(r.length=0);break;default:r.length=0}}r.length>=2&&(o=t.sep.splice(r[1]))}switch(this.type){case"anchor":case"tag":i||t.value?(o.push(this.sourceToken),e.items.push({start:o}),this.onKeyLine=!0):t.sep?t.sep.push(this.sourceToken):t.start.push(this.sourceToken);return;case"explicit-key-ind":!t.sep&&!t.explicitKey?(t.start.push(this.sourceToken),t.explicitKey=!0):i||t.value?(o.push(this.sourceToken),e.items.push({start:o,explicitKey:!0})):this.stack.push({type:"block-map",offset:this.offset,indent:this.indent,items:[{start:[this.sourceToken],explicitKey:!0}]}),this.onKeyLine=!0;return;case"map-value-ind":if(t.explicitKey)if(t.sep)if(t.value)e.items.push({start:[],key:null,sep:[this.sourceToken]});else if(ft(t.sep,"map-value-ind"))this.stack.push({type:"block-map",offset:this.offset,indent:this.indent,items:[{start:o,key:null,sep:[this.sourceToken]}]});else if(ea(t.key)&&!ft(t.sep,"newline")){const r=At(t.start),l=t.key,c=t.sep;c.push(this.sourceToken),delete t.key,delete t.sep,this.stack.push({type:"block-map",offset:this.offset,indent:this.indent,items:[{start:r,key:l,sep:c}]})}else o.length>0?t.sep=t.sep.concat(o,this.sourceToken):t.sep.push(this.sourceToken);else if(ft(t.start,"newline"))Object.assign(t,{key:null,sep:[this.sourceToken]});else{const r=At(t.start);this.stack.push({type:"block-map",offset:this.offset,indent:this.indent,items:[{start:r,key:null,sep:[this.sourceToken]}]})}else t.sep?t.value||i?e.items.push({start:o,key:null,sep:[this.sourceToken]}):ft(t.sep,"map-value-ind")?this.stack.push({type:"block-map",offset:this.offset,indent:this.indent,items:[{start:[],key:null,sep:[this.sourceToken]}]}):t.sep.push(this.sourceToken):Object.assign(t,{key:null,sep:[this.sourceToken]});this.onKeyLine=!0;return;case"alias":case"scalar":case"single-quoted-scalar":case"double-quoted-scalar":{const r=this.flowScalar(this.type);i||t.value?(e.items.push({start:o,key:r,sep:[]}),this.onKeyLine=!0):t.sep?this.stack.push(r):(Object.assign(t,{key:r,sep:[]}),this.onKeyLine=!0);return}default:{const r=this.startBlockValue(e);if(r){if(r.type==="block-seq"){if(!t.explicitKey&&t.sep&&!ft(t.sep,"newline")){yield*this.pop({type:"error",offset:this.offset,message:"Unexpected block-seq-ind on same line with key",source:this.source});return}}else n&&e.items.push({start:o});this.stack.push(r);return}}}}yield*this.pop(),yield*this.step()}*blockSequence(e){const t=e.items[e.items.length-1];switch(this.type){case"newline":if(t.value){const n="end"in t.value?t.value.end:void 0;(Array.isArray(n)?n[n.length-1]:void 0)?.type==="comment"?n?.push(this.sourceToken):e.items.push({start:[this.sourceToken]})}else t.start.push(this.sourceToken);return;case"space":case"comment":if(t.value)e.items.push({start:[this.sourceToken]});else{if(this.atIndentedComment(t.start,e.indent)){const i=e.items[e.items.length-2]?.value?.end;if(Array.isArray(i)){us(i,t.start),i.push(this.sourceToken),e.items.pop();return}}t.start.push(this.sourceToken)}return;case"anchor":case"tag":if(t.value||this.indent<=e.indent)break;t.start.push(this.sourceToken);return;case"seq-item-ind":if(this.indent!==e.indent)break;t.value||ft(t.start,"seq-item-ind")?e.items.push({start:[this.sourceToken]}):t.start.push(this.sourceToken);return}if(this.indent>e.indent){const n=this.startBlockValue(e);if(n){this.stack.push(n);return}}yield*this.pop(),yield*this.step()}*flowCollection(e){const t=e.items[e.items.length-1];if(this.type==="flow-error-end"){let n;do yield*this.pop(),n=this.peek(1);while(n?.type==="flow-collection")}else if(e.end.length===0){switch(this.type){case"comma":case"explicit-key-ind":!t||t.sep?e.items.push({start:[this.sourceToken]}):t.start.push(this.sourceToken);return;case"map-value-ind":!t||t.value?e.items.push({start:[],key:null,sep:[this.sourceToken]}):t.sep?t.sep.push(this.sourceToken):Object.assign(t,{key:null,sep:[this.sourceToken]});return;case"space":case"comment":case"newline":case"anchor":case"tag":!t||t.value?e.items.push({start:[this.sourceToken]}):t.sep?t.sep.push(this.sourceToken):t.start.push(this.sourceToken);return;case"alias":case"scalar":case"single-quoted-scalar":case"double-quoted-scalar":{const i=this.flowScalar(this.type);!t||t.value?e.items.push({start:[],key:i,sep:[]}):t.sep?this.stack.push(i):Object.assign(t,{key:i,sep:[]});return}case"flow-map-end":case"flow-seq-end":e.end.push(this.sourceToken);return}const n=this.startBlockValue(e);n?this.stack.push(n):(yield*this.pop(),yield*this.step())}else{const n=this.peek(2);if(n.type==="block-map"&&(this.type==="map-value-ind"&&n.indent===e.indent||this.type==="newline"&&!n.items[n.items.length-1].sep))yield*this.pop(),yield*this.step();else if(this.type==="map-value-ind"&&n.type!=="flow-collection"){const i=as(n),o=At(i);yn(e);const r=e.end.splice(1,e.end.length);r.push(this.sourceToken);const l={type:"block-map",offset:e.offset,indent:e.indent,items:[{start:o,key:e,sep:r}]};this.onKeyLine=!0,this.stack[this.stack.length-1]=l}else yield*this.lineEnd(e)}}flowScalar(e){if(this.onNewLine){let t=this.source.indexOf(`
|
|
55
|
+
`)+1;for(;t!==0;)this.onNewLine(this.offset+t),t=this.source.indexOf(`
|
|
56
|
+
`,t)+1}return{type:e,offset:this.offset,indent:this.indent,source:this.source}}startBlockValue(e){switch(this.type){case"alias":case"scalar":case"single-quoted-scalar":case"double-quoted-scalar":return this.flowScalar(this.type);case"block-scalar-header":return{type:"block-scalar",offset:this.offset,indent:this.indent,props:[this.sourceToken],source:""};case"flow-map-start":case"flow-seq-start":return{type:"flow-collection",offset:this.offset,indent:this.indent,start:this.sourceToken,items:[],end:[]};case"seq-item-ind":return{type:"block-seq",offset:this.offset,indent:this.indent,items:[{start:[this.sourceToken]}]};case"explicit-key-ind":{this.onKeyLine=!0;const t=as(e),n=At(t);return n.push(this.sourceToken),{type:"block-map",offset:this.offset,indent:this.indent,items:[{start:n,explicitKey:!0}]}}case"map-value-ind":{this.onKeyLine=!0;const t=as(e),n=At(t);return{type:"block-map",offset:this.offset,indent:this.indent,items:[{start:n,key:null,sep:[this.sourceToken]}]}}}return null}atIndentedComment(e,t){return this.type!=="comment"||this.indent<=t?!1:e.every(n=>n.type==="newline"||n.type==="space")}*documentEnd(e){this.type!=="doc-mode"&&(e.end?e.end.push(this.sourceToken):e.end=[this.sourceToken],this.type==="newline"&&(yield*this.pop()))}*lineEnd(e){switch(this.type){case"comma":case"doc-start":case"doc-end":case"flow-seq-end":case"flow-map-end":case"map-value-ind":yield*this.pop(),yield*this.step();break;case"newline":this.onKeyLine=!1;default:e.end?e.end.push(this.sourceToken):e.end=[this.sourceToken],this.type==="newline"&&(yield*this.pop())}}}function Wi(s){const e=s.prettyErrors!==!1;return{lineCounter:s.lineCounter||e&&new Fi||null,prettyErrors:e}}function Yi(s,e={}){const{lineCounter:t,prettyErrors:n}=Wi(e),i=new $i(t?.addNewLine),o=new Ui(e);let r=null;for(const l of o.compose(i.parse(s),!0,s.length))if(!r)r=l;else if(r.options.logLevel!=="silent"){r.errors.push(new Ft(l.range.slice(0,2),"MULTIPLE_DOCS","Source contains multiple documents; please use YAML.parseAllDocuments()"));break}return n&&t&&(r.errors.forEach(mn(s,t)),r.warnings.forEach(mn(s,t))),r}function ta(s,e){let t=0;for(;t<s.length&&t<e.length&&s[t]===e[t];)t++;let n=s.length,i=e.length;for(;n>t&&i>t&&s[n-1]===e[i-1];)n--,i--;const o=n-t,r=i-t,l=r+1,c=new Uint32Array((o+1)*l);for(let f=o-1;f>=0;f--)for(let x=r-1;x>=0;x--)c[f*l+x]=s[t+f]===e[t+x]?c[(f+1)*l+x+1]+1:Math.max(c[(f+1)*l+x],c[f*l+x+1]);const d=[];for(let f=0;f<t;f++)d.push({op:" ",text:s[f],from:f});let v=0,u=0;for(;v<o||u<r;)v<o&&u<r&&s[t+v]===e[t+u]?(d.push({op:" ",text:s[t+v],from:t+v}),v++,u++):u<r&&(v>=o||c[v*l+u+1]>=c[(v+1)*l+u])?d.push({op:"+",text:e[t+u++]}):d.push({op:"-",text:s[t+v++]});for(let f=n;f<s.length;f++)d.push({op:" ",text:s[f],from:f});return d}const $t=s=>{const e=s.split(`
|
|
57
|
+
`);return e.length&&e[e.length-1]===""&&e.pop(),e},sa=(s="ship")=>`version: 1
|
|
58
|
+
extends: ${s}
|
|
59
|
+
`;function na(s){const e=Yi(s||sa(),{uniqueKeys:!0});return{doc:e,error:e.errors.length?e.errors[0].message.split(`
|
|
60
|
+
`)[0]:null}}function Ds(s){const{doc:e,error:t}=na(s);if(t)return null;let n;try{n=e.toJS({maxAliasCount:0})}catch{return null}const i=n&&typeof n=="object"&&!Array.isArray(n)?n:{},o=i.checks&&typeof i.checks=="object"&&!Array.isArray(i.checks)?i.checks:{},r=Array.isArray(i.stages)?i.stages.filter(l=>l&&typeof l=="object"):[];return{extends:i.extends==="scout"?"scout":"ship",checks:o,stages:r}}function Gt(s,e){const t=s.steps.map(i=>({id:i.id,label:i.label,added:!1,fileIndex:null,restyled:!1,lost:!1})),n=new Map;return e.forEach((i,o)=>{if(typeof i.id!="string"||!i.id)return;const r=typeof i.label=="string"&&i.label?i.label:null,l=t.find(v=>v.id===i.id);if(l){if(l.added)return;l.fileIndex=o,l.restyled=!0,r&&(l.label=r);return}let c=t.length,d=!1;if(typeof i.after=="string"&&i.after){const v=n.get(i.after)??i.after,u=t.findIndex(f=>f.id===v);u<0?d=!0:c=u+1,n.set(i.after,i.id)}t.splice(c,0,{id:i.id,label:r??i.id,added:!0,fileIndex:o,restyled:!1,lost:d})}),t}function Pt(s){let e=s.get("stages",!0);return Vt(e)||(e=s.createNode([]),s.set("stages",e)),e}const Jt=s=>it(s)?s.value:s;function zi(s){let e=s.get("checks",!0);if(!lt(e)){e=s.createNode({}),s.set("checks",e);const n=s.contents.items,i=n.findIndex(r=>Jt(r.key)==="checks"),o=n.findIndex(r=>Jt(r.key)==="stages");o>=0&&i>o&&n.splice(o,0,...n.splice(i,1))}return e}const Ct=s=>s==null||s===""||Array.isArray(s)&&s.length===0||typeof s=="object"&&!Array.isArray(s)&&Object.keys(s).length===0,bn={lineWidth:0};function Hi(s,e){const{doc:t,error:n}=na(s);if(n)return s;const i=$t(t.toString(bn));if(e(t)===!1)return s;const o=t.toString(bn),r=$t(s);return!s||r.length!==i.length?o:`${ta(i,$t(o)).filter(c=>c.op!=="-").map(c=>c.op===" "?r[c.from]:c.text).join(`
|
|
61
|
+
`)}
|
|
62
|
+
`}function vt(s,e,t,n){const i=Pt(s).get(e,!0);lt(i)&&(Ct(n)?i.delete(t):i.set(t,aa(s,n)))}function aa(s,e){const t=s.createNode(e);return Vt(t)&&t.items.every(n=>it(n))&&(t.flow=!0),t}function Gi(s,e,t){const n=Pt(s);for(const i of n.items)lt(i)&&(i.get("id")===e&&i.set("id",t),i.get("after")===e&&i.set("after",t),i.get("column")===e&&i.set("column",t));s.getIn(["headline","live"])===e&&s.setIn(["headline","live"],t)}function _n(s,e){const t=Pt(s),n=t.items.findIndex(i=>lt(i)&&i.get("id")===e);return n>=0?n:(t.add(s.createNode({id:e})),t.items.length-1)}function kn(s,e){Pt(s).delete(e)}function is(s,e,t="step"){const n=new Set(e);let i=s.toLowerCase().normalize("NFKD").replace(/[^a-z0-9]+/g,"-").replace(/^-+|-+$/g,"").slice(0,32)||t;/^[a-z]/.test(i)||(i=`${t}-${i}`.slice(0,32));let o=i;for(let r=2;n.has(o);r++)o=`${i}-${r}`;return o}function Ji(s,e,t){const n=Pt(s),i={id:e.id,label:e.label};t&&(i.after=t);for(const[r,l]of Object.entries(e))!(r in i)&&!Ct(l)&&(i[r]=l);const o=s.createNode(i);for(const r of o.items)Vt(r.value)&&r.value.items.every(l=>it(l))&&(r.value.flow=!0);return n.add(o),n.items.length-1}function ia(s,e,t,n){const i=s.toJS(),o=Gt(e,Array.isArray(i?.stages)?i.stages:[]),r=o.findIndex(f=>f.id===t);if(r<0||!o[r].added||n<1||n>=o.length||n===r)return!1;const[l]=o.splice(r,1);o.splice(n,0,l);const c=Pt(s),d=new Map;for(const f of c.items)lt(f)&&d.set(String(f.get("id")),f);const v=c.items.filter(f=>{const x=lt(f)?String(f.get("id")):"";return!o.some(K=>K.added&&K.id===x)}),u=o.map((f,x)=>({s:f,prev:o[x-1]})).filter(({s:f})=>f.added).map(({s:f,prev:x})=>{const K=d.get(f.id);return K.set("after",x.id),K});return c.items=[...v,...u],!0}function Is(s,e,t,n){const i=s.toJS(),r=Gt(e,Array.isArray(i?.stages)?i.stages:[]).findIndex(l=>l.id===t);return r>=0&&ia(s,e,t,r+n)}function Os(s,e,t){const n=zi(s);if(t===null){n.delete(e),n.items.length||s.delete("checks");return}const i={};for(const[r,l]of Object.entries(t))if(l&&typeof l=="object"&&!Array.isArray(l)){const c=Object.fromEntries(Object.entries(l).filter(([,d])=>!Ct(d)));Ct(c)||(i[r]=c)}else Ct(l)||(i[r]=l);const o=n.get(e,!0);if(lt(o)){for(const l of[...o.items.map(c=>String(Jt(c.key)))])l in i||o.delete(l);const r=o.toJSON();for(const[l,c]of Object.entries(i))JSON.stringify(r[l])!==JSON.stringify(c)&&o.set(l,aa(s,c))}else{const r=s.createNode(i);for(const l of r.items)Vt(l.value)&&l.value.items.every(c=>it(c))&&(l.value.flow=!0);n.set(e,r)}}function Vi(s,e,t){Ct(t)?s.delete(e):s.set(e,s.createNode(t))}function Xi(s,e){const t=[],n=i=>{if(typeof i=="string"&&i.startsWith(`${e}.`))t.push(i);else if(i&&typeof i=="object")for(const o of Object.values(i))n(o)};for(const i of s)n(i.reached_when),n(i.failed_when),n(i.skip_when),i.note&&typeof i.note=="object"&&n(i.note.when),Array.isArray(i.evidence)&&i.evidence.includes(`check:${e}`)&&t.push(`check:${e}`),i.primary_link===`${e}.url`&&t.push(`${e}.url`);return t}function Rs(s){if(s==null)return{join:"all",items:[]};const e=r=>typeof r=="string"?{not:!1,ref:r}:r&&typeof r=="object"&&"not"in r&&typeof r.not=="string"?{not:!0,ref:r.not}:null,t=e(s);if(t)return{join:"all",items:[t]};if(typeof s!="object")return null;const n="all"in s?"all":"any"in s?"any":null;if(!n)return null;const i=s[n];if(!Array.isArray(i))return null;const o=i.map(r=>e(r));return o.every(r=>r)?{join:n,items:o}:null}function Ks(s){const e=s.items.filter(n=>n.ref),t=n=>n.not?{not:n.ref}:n.ref;if(e.length)return e.length===1?t(e[0]):s.join==="all"?{all:e.map(t)}:{any:e.map(t)}}function Qi(s,e,t){const n=s.get("checks",!0);if(lt(n))for(const o of n.items)Jt(o.key)===e&&(o.key=s.createNode(t));const i=`${e}.`;qa(s,{Pair(o,r){Jt(r.key)==="version_from"&&it(r.value)&&r.value.value===e&&(r.value.value=t)},Scalar(o,r){typeof r.value=="string"&&(r.value===`check:${e}`?r.value=`check:${t}`:r.value.startsWith(i)&&/^[a-z_]+$/.test(r.value.slice(i.length))&&(r.value=`${t}.${r.value.slice(i.length)}`))}})}const Cs=(s,e)=>typeof s=="string"&&s?s:e;function Zi(s,e,t){const n=Ds(s)??{extends:"ship",checks:{},stages:[]},i=Ds(e);if(!i)return["The YAML could not be read."];const o=[];n.extends!==i.extends&&o.push(`It now builds on ${i.extends==="scout"?"scout":"ship"} work.`);const r=new Map(Gt(t,n.stages).map(u=>[u.id,u])),l=Gt(t,i.stages),c=(u,f)=>u.stages.find(x=>x.id===f);l.forEach((u,f)=>{const x=r.get(u.id),K=l[f-1]?.label;u.added&&!x?.added?o.push(`Adds the step “${u.label}”${K?` after ${K}`:""}.`):x&&x.label!==u.label?o.push(`Renames “${x.label}” to “${u.label}”.`):x&&JSON.stringify(c(n,u.id)??null)!==JSON.stringify(c(i,u.id)??null)&&o.push(`Changes the step “${u.label}”.`)});for(const[u,f]of r)f.added&&!l.some(x=>x.id===u)&&o.push(`Removes the step “${f.label}”.`);const d=new Set([...Object.keys(n.checks),...Object.keys(i.checks)]);let v=!1;for(const u of d){const f=n.checks[u],x=i.checks[u];JSON.stringify(f??null)!==JSON.stringify(x??null)&&((f?.type==="command"||x?.type==="command")&&(v=!0),f?x?o.push(`Changes the check “${Cs(x.label,u)}”.`):o.push(`Removes the check “${Cs(f.label,u)}”.`):o.push(`Adds the check “${Cs(x.label,u)}”.`))}return v&&o.push("Command checks change, so they stay off until you allow them again on the passage page."),!o.length&&s!==e&&o.push("Changes the file’s layout or comments only."),o}var er=y('<span class="ml-1 font-normal text-muted-foreground">(required)</span>'),tr=y("<option>Not set</option>"),sr=y("<option>As written in the YAML</option>"),Es=y("<option> </option>"),nr=y("<select><!><!><!></select>"),ar=y("<select><option>Choose a release check</option><!></select>"),ir=y("<textarea></textarea>"),rr=y('<textarea rows="2"></textarea>'),or=y('<input type="number"/>'),lr=y("<input/>"),cr=y('<p class="mt-1 text-xs text-muted-foreground"> </p>'),dr=y('<div class="min-w-0"><label class="block text-sm font-medium"> <!></label> <!> <!></div>'),ur=y('<button type="button" class="mb-3 inline-flex items-center gap-1 text-sm text-sea hover:underline"><!> </button>'),fr=y('<p class="mt-2 text-sm text-muted-foreground"> </p>'),hr=y("<div><!></div>"),mr=y('<div><label class="block text-sm font-medium">How often</label> <input/> <p class="mt-1 text-xs text-muted-foreground">At least 30s, e.g. 60s, 5m or 1h.</p></div>'),pr=y(`<div class="mt-6 rounded-lg border bg-panel p-4 text-sm" data-command-preview=""><p class="flex items-center gap-2 font-medium"><!>Exactly what will run</p> <pre class="mt-2 overflow-x-auto rounded-md bg-terminal px-3 py-2 font-mono text-xs text-terminal-foreground"> </pre> <dl class="mt-3 grid gap-x-4 gap-y-1 text-xs sm:grid-cols-[9rem_minmax(0,1fr)]"><dt class="text-muted-foreground">In the folder</dt> <dd> </dd> <dt class="text-muted-foreground">For at most</dt> <dd> </dd> <dt class="text-muted-foreground">With only</dt> <dd class="break-words"> </dd> <dt class="text-muted-foreground">When</dt> <dd> </dd></dl> <p class="mt-3 text-xs text-muted-foreground">It never goes through a shell. Command checks run only after you allow them on the project’s
|
|
63
|
+
passage page, and changing a command line turns them off again. Allowing them trusts the
|
|
64
|
+
project’s own scripts as they are at that commit: consent covers the command line, not the
|
|
65
|
+
scripts it calls, which can change through merged pull requests without turning the commands
|
|
66
|
+
off.</p> <p class="mt-2 text-xs text-muted-foreground">Each run gets a fresh checkout with no installed dependencies and none of the clone’s
|
|
67
|
+
untracked files (such as .env), so the command must install what it needs.</p></div>`),vr=y("<!>Remove this check",1),gr=y('<p class="text-xs text-muted-foreground"> </p>'),yr=y('<div class="mt-6 flex flex-wrap items-center gap-3 border-t pt-4"><!> <!></div>'),br=y('<section><!> <p class="text-xs tracking-wide text-muted-foreground uppercase"> </p> <h2 class="mt-0.5 text-xl"> </h2> <p class="mt-1 text-sm text-muted-foreground"> </p> <!> <div class="mt-5 grid gap-4 sm:grid-cols-2"><div class="min-w-0 sm:col-span-2"><label class="block text-sm font-medium">Name</label> <input/></div> <!> <!></div> <!> <!></section>');function _r(s,e){xt(e,!0);const t=(T,b=pa)=>{const $=I(()=>`check-${e.checkId}-${b().key}`);var se=dr(),de=w(se),z=w(de,!0),X=h(z);{var we=P=>{var k=er();m(P,k)};Y(X,P=>{b().required&&P(we)})}_(de);var ue=h(de,2);{var Le=P=>{const k=I(()=>u(d(b().key)));var U=nr();Se(U,1,He(ne));var fe=w(U);{var ke=Ce=>{var Ee=tr();Ee.value=Ee.__value="",m(Ce,Ee)};Y(fe,Ce=>{b().required||Ce(ke)})}var ee=h(fe);{var he=Ce=>{var Ee=sr(),Ze={};M(()=>{Ze!==(Ze=a(k))&&(Ee.value=(Ee.__value=Ze)??"")}),m(Ce,Ee)},G=I(()=>d(b().key)!==void 0&&typeof d(b().key)!="string"),Oe=Ce=>{var Ee=Es(),Ze=D(Ee,!0),dt={};M(()=>{O(Ze,a(k)),dt!==(dt=a(k))&&(Ee.value=(Ee.__value=dt)??"")}),m(Ce,Ee)},Ve=I(()=>a(k)&&!(b().options??[]).some(Ce=>Ce.value===a(k)));Y(ee,Ce=>{a(G)?Ce(he):a(Ve)&&Ce(Oe,1)})}var ct=h(ee);Me(ct,17,()=>b().options??[],Ce=>Ce.value,(Ce,Ee)=>{var Ze=Es(),dt=D(Ze,!0),Bt={};M(()=>{O(dt,a(Ee).label),Bt!==(Bt=a(Ee).value)&&(Ze.value=(Ze.__value=Bt)??"")}),m(Ce,Ze)}),_(U);var ht;ot(U),M(Ce=>{me(U,"id",a($)),U.disabled=n(),ht!==(ht=Ce)&&(U.value=(U.__value=ht)??"",bt(U,ht))},[()=>u(d(b().key))]),_e("change",U,Ce=>{const Ee=Ce.currentTarget.value;(Ee!==a(k)||typeof d(b().key)=="string"||!Ee)&&v(b().key,Ee||void 0)}),m(P,U)},De=P=>{var k=ar();Se(k,1,He(ne));var U=w(k);U.value=U.__value="";var fe=h(U);Me(fe,17,()=>e.releaseChecks,ee=>ee.id,(ee,he)=>{var G=Es(),Oe=D(G,!0),Ve={};M(()=>{O(Oe,a(he).label),Ve!==(Ve=a(he).id)&&(G.value=(G.__value=Ve)??"")}),m(ee,G)}),_(k);var ke;ot(k),M(ee=>{me(k,"id",a($)),k.disabled=n(),ke!==(ke=ee)&&(k.value=(k.__value=ke)??"",bt(k,ke))},[()=>u(d(b().key))]),_e("change",k,ee=>v(b().key,ee.currentTarget.value||void 0)),m(P,k)},Ue=P=>{var k=ir();os(k),Se(k,1,"mt-1 w-full rounded-md border border-input bg-card px-3 py-1.5 text-sm disabled:opacity-60 font-mono"),M((U,fe)=>{me(k,"id",a($)),me(k,"rows",U),k.disabled=n(),st(k,fe)},[()=>Math.max(2,d(b().key)?.length??2),()=>f(d(b().key))]),_e("change",k,U=>v(b().key,x(U.currentTarget.value))),m(P,k)},$e=P=>{var k=rr();os(k),Se(k,1,"mt-1 w-full rounded-md border border-input bg-card px-3 py-1.5 text-sm disabled:opacity-60 font-mono"),M(U=>{me(k,"id",a($)),k.disabled=n(),st(k,U)},[()=>K(d(b().key))]),_e("change",k,U=>v(b().key,S(U.currentTarget.value))),m(P,k)},Je=P=>{var k=or();at(k),Se(k,1,He(ne)),M(U=>{me(k,"id",a($)),k.disabled=n(),me(k,"placeholder",b().placeholder),st(k,U)},[()=>u(d(b().key))]),_e("change",k,U=>{const fe=U.currentTarget.value;v(b().key,fe===""?void 0:Number(fe))}),m(P,k)},Ye=P=>{var k=lr();at(k),M(U=>{me(k,"id",a($)),Se(k,1,`mt-1 w-full rounded-md border border-input bg-card px-3 py-1.5 text-sm disabled:opacity-60 ${b().kind==="duration"?"max-w-40":""}`),k.disabled=n(),me(k,"placeholder",b().placeholder),st(k,U)},[()=>u(d(b().key))]),_e("input",k,U=>v(b().key,U.currentTarget.value||void 0)),m(P,k)};Y(ue,P=>{b().kind==="select"?P(Le):b().kind==="check"?P(De,1):b().kind==="list"?P(Ue,2):b().kind==="map"?P($e,3):b().kind==="number"?P(Je,4):P(Ye,-1)})}var A=h(ue,2);{var F=P=>{var k=cr(),U=D(k,!0);M(()=>O(U,b().help)),m(P,k)};Y(A,P=>{b().help&&P(F)})}_(se),M(()=>{me(de,"for",a($)),O(z,b().label)}),m(T,se)};let n=It(e,"readonly",3,!1),i=It(e,"readonlyWhy",3,null),o=It(e,"back",3,null);const r=I(()=>e.spec.type),l=I(()=>zt[a(r)]??{name:String(e.spec.type),what:""}),c=I(()=>(Fa[a(r)]??[]).filter(T=>!T.captainOnly||e.captain));function d(T){const[b,$]=T.split("."),se=e.spec[b];return $?se&&typeof se=="object"?se[$]:void 0:se}function v(T,b){const[$,se]=T.split("."),de={...e.spec};if(se){const z={...de[$]??{}};z[se]=b,de[$]=z}else de[$]=b;e.onchange(de)}const u=T=>T==null?"":String(T),f=T=>Array.isArray(T)?T.map(String).join(`
|
|
68
|
+
`):u(T),x=T=>T.split(`
|
|
69
|
+
`).map(b=>b.trim()).filter(Boolean),K=T=>T&&typeof T=="object"?Object.entries(T).map(([b,$])=>`${b}: ${$}`).join(`
|
|
70
|
+
`):"",S=T=>Object.fromEntries(x(T).map(b=>b.split(":").map($=>$.trim())).filter(b=>b.length===2&&b[0]&&b[1])),N=T=>Array.isArray(T)?T.map(b=>String(b)).map(b=>/^[A-Za-z0-9_@%+=:,./-]+$/.test(b)?b:`'${b.replace(/'/g,"'\\''")}'`).join(" "):"",j={merged:"After the merge","pr.recorded":"Once a pull request is open","crew.done":"Once the worker reports done"};function W(T){const b=T.when===void 0?"As soon as a task can use it, even before the merge":j[String(T.when)]??"When its condition holds",$=T.ref==="merge.commit"?", once per merged commit":T.ref==="pr.head"?", once per pull request commit":"";return`${b}${$}. A pass is not run again.`}const ne="mt-1 w-full rounded-md border border-input bg-card px-3 py-1.5 text-sm disabled:opacity-60";var te=br(),ae=w(te);{var H=T=>{var b=ur(),$=w(b);Cn($,{class:"size-3.5","aria-hidden":"true"});var se=h($);_(b),M(()=>O(se,`Back to ${o().label??""}`)),_e("click",b,function(...de){o().go?.apply(this,de)}),m(T,b)};Y(ae,T=>{o()&&T(H)})}var pe=h(ae,2),L=D(pe,!0),J=h(pe,2),be=D(J,!0),R=h(J,2),C=D(R,!0),E=h(R,2);{var ve=T=>{var b=fr(),$=D(b,!0);M(()=>O($,i())),m(T,b)};Y(E,T=>{i()&&T(ve)})}var xe=h(E,2),Q=w(xe),Z=w(Q),re=h(Z,2);at(re),Se(re,1,He(ne)),_(Q);var ge=h(Q,2);Me(ge,17,()=>a(c),T=>T.key,(T,b)=>{var $=hr(),se=w($);t(se,()=>a(b)),_($),M(()=>Se($,1,He(a(b).kind==="list"||a(b).key==="url"?"sm:col-span-2":""))),m(T,$)});var Ae=h(ge,2);{var B=T=>{var b=mr(),$=w(b),se=h($,2);at(se),Se(se,1,"mt-1 w-full rounded-md border border-input bg-card px-3 py-1.5 text-sm disabled:opacity-60 max-w-40"),qe(2),_(b),M(de=>{me($,"for",`check-${e.checkId??""}-interval`),me(se,"id",`check-${e.checkId??""}-interval`),se.disabled=n(),me(se,"placeholder",a(r)==="command"?"10m":a(r)==="github.release"||a(r)==="npm.published"?"5m":"60s"),st(se,de)},[()=>u(e.spec.interval)]),_e("input",se,de=>v("interval",de.currentTarget.value||void 0)),m(T,b)};Y(Ae,T=>{a(r)!=="status.note"&&T(B)})}_(xe);var q=h(xe,2);{var ye=T=>{var b=pr(),$=w(b),se=w($);Ja(se,{class:"size-4","aria-hidden":"true"}),qe(),_($);var de=h($,2),z=D(de,!0),X=h(de,2),we=h(w(X),2),ue=D(we),Le=h(we,4),De=D(Le,!0),Ue=h(Le,4),$e=D(Ue),Je=h(Ue,4),Ye=D(Je,!0);_(X),qe(4),_(b),M((A,F,P,k,U)=>{O(z,A),O(ue,`${F??""}, in a fresh checkout of ${e.spec.ref==="merge.commit"?"the merge commit":e.spec.ref==="pr.head"?"the pull request’s latest commit":"the default branch"}`),O(De,P),O($e,`${k??""} from Wheelhouse’s
|
|
71
|
+
environment, plus the task and project names`),O(Ye,U)},[()=>N(e.spec.run)||"(no program yet)",()=>u(e.spec.cwd)&&e.spec.cwd!=="."?`${e.spec.cwd}, inside the project`:"At the top of the project",()=>u(e.spec.timeout)||"5m",()=>[...$a,...e.spec.env??[]].join(", "),()=>W(e.spec)]),m(T,b)};Y(q,T=>{a(r)==="command"&&T(ye)})}var ce=h(q,2);{var le=T=>{var b=yr(),$=w(b);Ge($,{variant:"destructive",size:"sm",get onclick(){return e.onremove},children:(z,X)=>{var we=vr(),ue=Ie(we);En(ue,{"aria-hidden":"true"}),qe(),m(z,we)},$$slots:{default:!0}});var se=h($,2);{var de=z=>{var X=gr(),we=D(X);M(ue=>O(we,`Used by ${ue??""}; removing it takes it out of ${e.usedBy.length===1?"that step":"those steps"}.`),[()=>e.usedBy.join(", ")]),m(z,X)};Y(se,z=>{e.usedBy.length&&z(de)})}_(b),m(T,b)};Y(ce,T=>{n()||T(le)})}_(te),M((T,b)=>{me(te,"aria-labelledby",`check-${e.checkId??""}-title`),me(te,"data-check-form",e.checkId),O(L,a(l).name),me(J,"id",`check-${e.checkId??""}-title`),O(be,T),O(C,a(l).what),me(Z,"for",`check-${e.checkId??""}-label`),me(re,"id",`check-${e.checkId??""}-label`),re.disabled=n(),st(re,b),me(re,"placeholder",e.checkId)},[()=>u(e.spec.label)||e.checkId,()=>u(e.spec.label)]),_e("input",re,T=>v("label",T.currentTarget.value||void 0)),_e("change",re,function(...T){e.onlabeldone?.apply(this,T)}),m(s,te),wt()}kt(["change","input","click"]);var kr=y("<li> </li>"),xr=y('<ul class="space-y-1 border-b px-5 py-3 text-sm" aria-label="What changes"></ul>'),wr=y('<span><span class="mr-3 inline-block w-3 select-none" aria-hidden="true"> </span><span class="sr-only"> </span> </span>'),Sr=y('<strong class="font-medium">This changes a file in the project’s repository:</strong> <code class="font-mono text-xs">.wheelhouse.yaml</code> ',1),Tr=y(`<strong class="font-medium">This changes your own Wheelhouse config</strong> for this project,
|
|
72
|
+
outside the repository. Wheelhouse uses it within a minute.`,1),Nr=y('<p class="mt-2 text-sm text-danger" role="alert"> </p>'),Ar=y('<div class="flex max-h-[90vh] flex-col"><div class="flex items-start gap-3 border-b px-5 py-4"><div class="min-w-0 flex-1"><h2 id="review-title" class="text-lg">Review and save</h2> <p class="mt-1 text-sm text-muted-foreground"> </p></div> <button type="button" class="inline-flex size-8 items-center justify-center rounded-md text-muted-foreground hover:bg-muted hover:text-foreground" aria-label="Close"><!></button></div> <!> <pre class="min-h-0 flex-1 overflow-auto bg-card px-0 py-2 font-mono text-xs leading-5" aria-label="Changes"></pre> <div class="border-t px-5 py-4"><p class="text-sm leading-relaxed" data-save-note=""><!></p> <!> <div class="mt-4 flex flex-wrap justify-end gap-2"><!> <!></div></div></div>'),Ir=y('<dialog class="m-auto max-h-[90vh] w-[min(94vw,980px)] max-w-none overflow-hidden rounded-xl border bg-background p-0 text-foreground shadow-xl backdrop:bg-black/60" aria-labelledby="review-title"><!></dialog>');function Or(s,e){xt(e,!0);let t=It(e,"open",15,!1),n=je(null);ls(()=>{a(n)&&(t()&&!a(n).open?a(n).showModal():!t()&&a(n).open&&a(n).close())});const i=I(()=>t()?ta($t(e.before),$t(e.after)):[]),o=I(()=>a(i).filter(u=>u.op==="+").length),r=I(()=>a(i).filter(u=>u.op==="-").length),l=I(()=>e.defaultRef?.replace(/^origin\//,"")??"the default branch");var c=Ir(),d=w(c);{var v=u=>{var f=Ar(),x=w(f),K=w(x),S=h(w(K),2),N=D(S);_(K);var j=h(K,2),W=w(j);Ys(W,{class:"size-4","aria-hidden":"true"}),_(j),_(x);var ne=h(x,2);{var te=Q=>{var Z=xr();Me(Z,21,()=>e.summary,Wt,(re,ge)=>{var Ae=kr(),B=D(Ae,!0);M(()=>O(B,a(ge))),m(re,Ae)}),_(Z),m(Q,Z)};Y(ne,Q=>{e.summary.length&&Q(te)})}var ae=h(ne,2);Me(ae,21,()=>a(i),Wt,(Q,Z)=>{var re=wr(),ge=w(re),Ae=D(ge,!0),B=h(ge),q=D(B,!0),ye=h(B,1,!0);_(re),M(()=>{Se(re,1,`block px-5 ${a(Z).op==="+"?"bg-success/10 text-success":a(Z).op==="-"?"bg-danger/10 text-danger":"text-muted-foreground"}`),O(Ae,a(Z).op===" "?"":a(Z).op),O(q,a(Z).op==="+"?"added: ":a(Z).op==="-"?"removed: ":""),O(ye,a(Z).text)}),m(Q,re)}),_(ae);var H=h(ae,2),pe=w(H),L=w(pe);{var J=Q=>{var Z=Sr(),re=h(Ie(Z),3);M(()=>O(re,` in Firstmate’s clone of the
|
|
73
|
+
project. It is not committed. Wheelhouse uses it once it is on ${a(l)??""}, so ask
|
|
74
|
+
Firstmate to ship it.`)),m(Q,Z)},be=Q=>{var Z=Tr();qe(),m(Q,Z)};Y(L,Q=>{e.target==="project"?Q(J):Q(be,-1)})}_(pe);var R=h(pe,2);{var C=Q=>{var Z=Nr(),re=D(Z,!0);M(()=>O(re,e.error)),m(Q,Z)};Y(R,Q=>{e.error&&Q(C)})}var E=h(R,2),ve=w(E);Ge(ve,{variant:"outline",onclick:()=>t(!1),children:(Q,Z)=>{qe();var re=yt("Keep editing");m(Q,re)},$$slots:{default:!0}});var xe=h(ve,2);{let Q=I(()=>e.busy||!a(o)&&!a(r));Ge(xe,{get disabled(){return a(Q)},get onclick(){return e.onsave},children:(Z,re)=>{qe();var ge=yt();M(()=>O(ge,e.busy?"Saving…":e.target==="project"?"Save to the repository file":"Save to your config")),m(Z,ge)},$$slots:{default:!0}})}_(E),_(H),_(f),M(()=>O(N,`The file: ${a(o)??""} line${a(o)===1?"":"s"} added, ${a(r)??""} removed.`)),_e("click",j,()=>t(!1)),m(u,f)};Y(d,u=>{t()&&u(v)})}_(c),Xa(c,u=>ie(n,u),()=>a(n)),va("close",c,()=>t(!1)),m(s,c),wt()}kt(["click"]);var Cr=y('<p class="mt-0.5 text-xs text-muted-foreground"> </p>'),Er=y('<p class="mt-2 rounded-md border border-dashed px-3 py-2 text-sm text-muted-foreground">This condition is more involved than the form shows. Edit it in the YAML view.</p>'),Lr=y('<label class="mt-2 inline-flex items-center gap-2 text-sm"><span class="sr-only">How these combine</span> <select class="rounded-md border border-input bg-card px-2 py-1 text-sm"><option>All of these</option><option>Any of these</option></select></label>'),xn=y("<option> </option>"),jr=y("<optgroup></optgroup>"),Mr=y('<li class="flex flex-wrap items-center gap-2"><select class="rounded-md border border-input bg-card px-2 py-1 text-sm"><option>When</option><option>Unless</option></select> <select class="min-w-0 flex-1 rounded-md border border-input bg-card px-2 py-1 text-sm"><!><!></select> <button type="button" class="inline-flex size-8 items-center justify-center rounded-md text-muted-foreground hover:bg-muted hover:text-foreground" aria-label="Remove this condition"><!></button></li>'),Pr=y('<!> <ul class="mt-2 space-y-2"></ul> <button type="button" class="mt-2 inline-flex items-center gap-1 text-sm text-sea hover:underline disabled:opacity-50"><!> </button>',1),Br=y('<fieldset class="min-w-0"><legend class="text-sm font-medium"> </legend> <!> <!></fieldset>');function Ls(s,e){xt(e,!0);let t=It(e,"help",3,null),n=It(e,"disabled",3,!1);const i=I(()=>Rs(e.value)),o=I(()=>new Set(e.refs.flatMap(N=>N.options.map(j=>j.value))));function r(N){e.onchange(Ks(N))}const l=I(()=>e.refs[0]?.options[0]?.value??"merged");var c=Br(),d=w(c),v=D(d,!0),u=h(d,2);{var f=N=>{var j=Cr(),W=D(j,!0);M(()=>{me(j,"id",`${e.id??""}-help`),O(W,t())}),m(N,j)};Y(u,N=>{t()&&N(f)})}var x=h(u,2);{var K=N=>{var j=Er();m(N,j)},S=N=>{var j=Pr(),W=Ie(j);{var ne=L=>{var J=Lr(),be=h(w(J),2),R=w(be);R.value=R.__value="all";var C=h(R);C.value=C.__value="any",_(be);var E;ot(be),_(J),M(()=>{be.disabled=n(),E!==(E=a(i).join)&&(be.value=(be.__value=E)??"",bt(be,E))}),_e("change",be,ve=>r({...a(i),join:ve.currentTarget.value})),m(L,J)};Y(W,L=>{a(i).items.length>1&&L(ne)})}var te=h(W,2);Me(te,21,()=>a(i).items,Wt,(L,J,be)=>{var R=Mr(),C=w(R),E=w(C);E.value=E.__value="is";var ve=h(E);ve.value=ve.__value="not",_(C);var xe;ot(C);var Q=h(C,2),Z=w(Q);{var re=ce=>{var le=xn(),T=D(le),b={};M(()=>{O(T,`${a(J).ref??""} (not known)`),b!==(b=a(J).ref)&&(le.value=(le.__value=b)??"")}),m(ce,le)},ge=I(()=>!a(o).has(a(J).ref));Y(Z,ce=>{a(ge)&&ce(re)})}var Ae=h(Z);Me(Ae,17,()=>e.refs,ce=>ce.group,(ce,le)=>{var T=jr();Me(T,21,()=>a(le).options,b=>b.value,(b,$)=>{var se=xn(),de=D(se,!0),z={};M(()=>{O(de,a($).label),z!==(z=a($).value)&&(se.value=(se.__value=z)??"")}),m(b,se)}),_(T),M(()=>me(T,"label",a(le).group)),m(ce,T)}),_(Q);var B;ot(Q);var q=h(Q,2),ye=w(q);Ys(ye,{class:"size-4","aria-hidden":"true"}),_(q),_(R),M(()=>{me(C,"aria-label",`${e.label??""}: when`),C.disabled=n(),xe!==(xe=a(J).not?"not":"is")&&(C.value=C.__value=xe,bt(C,xe)),me(Q,"aria-label",`${e.label??""}: condition ${be+1}`),Q.disabled=n(),B!==(B=a(J).ref)&&(Q.value=(Q.__value=B)??"",bt(Q,B)),q.disabled=n()}),_e("change",C,ce=>{const le=[...a(i).items];le[be]={...a(J),not:ce.currentTarget.value==="not"},r({...a(i),items:le})}),_e("change",Q,ce=>{const le=[...a(i).items];le[be]={...a(J),ref:ce.currentTarget.value},r({...a(i),items:le})}),_e("click",q,()=>r({...a(i),items:a(i).items.filter((ce,le)=>le!==be)})),m(L,R)}),_(te);var ae=h(te,2),H=w(ae);Ws(H,{class:"size-3.5","aria-hidden":"true"});var pe=h(H,1,!0);_(ae),M(()=>{ae.disabled=n(),O(pe,a(i).items.length?"Add another":"Add a condition")}),_e("click",ae,()=>r({...a(i),items:[...a(i).items,{not:!1,ref:a(l)}]})),m(N,j)};Y(x,N=>{a(i)===null?N(K):N(S,-1)})}_(c),M(()=>{me(c,"aria-describedby",t()?`${e.id}-help`:void 0),O(v,e.label)}),m(s,c),wt()}kt(["change","click"]);var Dr=y('<p class="mt-2 text-sm text-danger" role="alert">It is placed after a step that does not exist. Move it to put it back in the passage.</p>'),Rr=y('<span class="ml-1 font-normal text-muted-foreground">(required)</span>'),Kr=y('<div><label for="step-skip-note" class="block text-sm font-medium">Why it is skipped</label> <input id="step-skip-note"/></div>'),qr=y("<!> <!> <!> <!>",1),Ur=y('<p class="rounded-md bg-muted/60 px-3 py-2 text-sm text-muted-foreground">When a built-in step is reached is fixed. You can rename it and choose what it shows.</p>'),Fr=y('<label class="flex items-center gap-2 text-sm"><input type="checkbox" class="size-4 accent-[var(--sea)]"/> </label>'),wn=y("<option> </option>"),$r=y('<div><label for="step-give-up" class="block text-sm font-medium">Stop checking after</label> <input id="step-give-up" placeholder="e.g. 24h"/></div>'),Wr=y('<p class="mt-1 text-sm text-muted-foreground">This note depends on a condition; edit it in the YAML view.</p>'),Yr=y('<textarea id="step-note" rows="2"></textarea>'),zr=y('<li><button type="button" class="flex w-full items-baseline justify-between gap-3 px-3 py-2 text-left text-sm hover:bg-muted/60"><span class="font-medium"> </span> <span class="text-xs text-muted-foreground"> </span></button></li>'),Hr=y('<ul class="mt-2 divide-y rounded-lg border"></ul>'),Gr=y('<p class="mt-1 text-sm text-muted-foreground">None yet.</p>'),Jr=y("<!>Add a check to this step",1),Vr=y('<div class="mt-3 flex flex-wrap items-center gap-2"><label for="add-check-type" class="sr-only">Kind of check</label> <select id="add-check-type" class="rounded-md border border-input bg-card px-2 py-1.5 text-sm"></select> <!></div> <p class="mt-1 text-xs text-muted-foreground">The step is then reached when the check passes, and shows its result.</p>',1),Xr=y("<!>Move up",1),Qr=y("<!>Move down",1),Zr=y("<!>Remove this step",1),eo=y("<!> <!> <!>",1),to=y("<!>Undo this file’s changes to the step",1),so=y('<p class="self-center text-xs text-muted-foreground">Built-in steps stay in place and cannot be removed.</p>'),no=y('<section aria-labelledby="step-title"><p class="text-xs tracking-wide text-muted-foreground uppercase"> </p> <h2 id="step-title" class="mt-0.5 text-xl"> </h2> <!> <div class="mt-5 grid gap-4 sm:grid-cols-[minmax(0,2fr)_minmax(0,1fr)]"><div><label for="step-label" class="block text-sm font-medium">Name<!></label> <input id="step-label"/></div> <div><label for="step-short" class="block text-sm font-medium">Short name</label> <input id="step-short" placeholder="For narrow layouts"/></div></div> <div class="mt-6 space-y-5"><!> <fieldset><legend class="block text-sm font-medium">What it shows on the task page</legend> <p class="mt-0.5 text-xs text-muted-foreground"> </p> <div class="mt-2 grid gap-x-4 gap-y-1.5 sm:grid-cols-2 xl:grid-cols-3"></div></fieldset> <div class="grid gap-4 sm:grid-cols-2"><div><label for="step-link" class="block text-sm font-medium">Main link while current</label> <select id="step-link"><option>None</option><!></select></div> <!></div> <div><label for="step-note" class="block text-sm font-medium">Note shown with the step</label> <!></div></div> <div class="mt-8 border-t pt-5"><h3 class="block text-sm font-medium">Checks this step uses</h3> <!> <!></div> <div class="mt-8 flex flex-wrap gap-2 border-t pt-5"><!> <!></div></section>');function ao(s,e){xt(e,!0);const t=I(()=>e.declared!=="builtin"),n=A=>typeof A=="string"?A:"",i=I(()=>Array.isArray(e.entry?.evidence)?e.entry.evidence:null),o=I(()=>typeof e.entry?.note=="string"?e.entry.note:""),r=I(()=>!!e.entry?.note&&typeof e.entry.note=="object"),l={builtin:"A built-in step",project:"Added by the project’s repository file",captain:"Added by your Wheelhouse config",file:"Added by this file"},c="mt-1 w-full rounded-md border border-input bg-card px-3 py-1.5 text-sm";let d=je("command");var v=no(),u=w(v),f=D(u),x=h(u,2),K=D(x,!0),S=h(x,2);{var N=A=>{var F=Dr();m(A,F)};Y(S,A=>{e.step.lost&&A(N)})}var j=h(S,2),W=w(j),ne=w(W),te=h(w(ne));{var ae=A=>{var F=Rr();m(A,F)};Y(te,A=>{e.step.added&&A(ae)})}_(ne);var H=h(ne,2);at(H),Se(H,1,He(c)),_(W);var pe=h(W,2),L=h(w(pe),2);at(L),Se(L,1,He(c)),_(pe),_(j);var J=h(j,2),be=w(J);{var R=A=>{var F=qr(),P=Ie(F);{let ee=I(()=>e.step.added?"Required. The step is current once this holds.":null),he=I(()=>e.entry?.reached_when);Ls(P,{id:"reached",label:"Reached when",get help(){return a(ee)},get value(){return a(he)},get refs(){return e.refs},onchange:G=>e.onfield("reached_when",G)})}var k=h(P,2);{let ee=I(()=>e.entry?.failed_when);Ls(k,{id:"failed",label:"Failed when",help:"Optional. The task shows as failed at this step.",get value(){return a(ee)},get refs(){return e.refs},onchange:he=>e.onfield("failed_when",he)})}var U=h(k,2);{let ee=I(()=>e.entry?.skip_when);Ls(U,{id:"skipped",label:"Skipped when",help:"Optional. Shown as skipped unless it is the current step.",get value(){return a(ee)},get refs(){return e.refs},onchange:he=>e.onfield("skip_when",he)})}var fe=h(U,2);{var ke=ee=>{var he=Kr(),G=h(w(he),2);at(G),Se(G,1,He(c)),_(he),M(Oe=>st(G,Oe),[()=>n(e.entry?.skip_note)]),_e("input",G,Oe=>e.onfield("skip_note",Oe.currentTarget.value)),m(ee,he)};Y(fe,ee=>{e.entry?.skip_when!==void 0&&ee(ke)})}m(A,F)},C=A=>{var F=Ur();m(A,F)};Y(be,A=>{a(t)?A(R):A(C,-1)})}var E=h(be,2),ve=h(w(E),2),xe=D(ve,!0),Q=h(ve,2);Me(Q,21,()=>e.evidence,A=>A.value,(A,F)=>{var P=Fr(),k=w(P);at(k);var U=h(k,1,!0);_(P),M(fe=>{ka(k,fe),O(U,a(F).label)},[()=>a(i)?.includes(a(F).value)??!1]),_e("change",k,fe=>{const ke=fe.currentTarget.checked,ee=a(i)??[];e.onfield("evidence",ke?[...ee,a(F).value]:ee.filter(he=>he!==a(F).value))}),m(A,P)}),_(Q),_(E);var Z=h(E,2),re=w(Z),ge=h(w(re),2);Se(ge,1,He(c));var Ae=w(ge);Ae.value=Ae.__value="";var B=h(Ae);Me(B,17,()=>e.links,A=>A.id,(A,F)=>{var P=wn(),k=D(P,!0),U={};M(()=>{O(k,a(F).label),U!==(U=`${a(F).id??""}.url`)&&(P.value=P.__value=U)}),m(A,P)}),_(ge);var q;ot(ge),_(re);var ye=h(re,2);{var ce=A=>{var F=$r(),P=h(w(F),2);at(P),Se(P,1,"mt-1 w-full rounded-md border border-input bg-card px-3 py-1.5 text-sm max-w-40"),_(F),M(k=>st(P,k),[()=>n(e.entry?.give_up_after)]),_e("input",P,k=>e.onfield("give_up_after",k.currentTarget.value)),m(A,F)};Y(ye,A=>{a(t)&&A(ce)})}_(Z);var le=h(Z,2),T=h(w(le),2);{var b=A=>{var F=Wr();m(A,F)},$=A=>{var F=Yr();os(F),Se(F,1,He(c)),M(()=>st(F,a(o))),_e("input",F,P=>e.onfield("note",P.currentTarget.value)),m(A,F)};Y(T,A=>{a(r)?A(b):A($,-1)})}_(le),_(J);var se=h(J,2),de=h(w(se),2);{var z=A=>{var F=Hr();Me(F,21,()=>e.uses,P=>P.id,(P,k)=>{var U=zr(),fe=w(U),ke=w(fe),ee=D(ke,!0),he=h(ke,2),G=D(he,!0);_(fe),_(U),M(()=>{O(ee,a(k).label),O(G,zt[a(k).type]?.name??a(k).type)}),_e("click",fe,()=>e.onopencheck(a(k).id)),m(P,U)}),_(F),m(A,F)},X=A=>{var F=Gr();m(A,F)};Y(de,A=>{e.uses.length?A(z):A(X,-1)})}var we=h(de,2);{var ue=A=>{var F=Vr(),P=Ie(F),k=h(w(P),2);Me(k,21,()=>Object.entries(zt),([fe,ke])=>fe,(fe,ke)=>{var ee=I(()=>ga(a(ke),2));let he=()=>a(ee)[0],G=()=>a(ee)[1];var Oe=wn(),Ve=D(Oe,!0),ct={};M(()=>{O(Ve,G().name),ct!==(ct=he())&&(Oe.value=(Oe.__value=ct)??"")}),m(fe,Oe)}),_(k),ot(k);var U=h(k,2);Ge(U,{variant:"outline",size:"sm",onclick:()=>e.onaddcheck(a(d)),children:(fe,ke)=>{var ee=Jr(),he=Ie(ee);Ws(he,{"aria-hidden":"true"}),qe(),m(fe,ee)},$$slots:{default:!0}}),_(P),qe(2),Nn(k,()=>a(d),fe=>ie(d,fe)),m(A,F)};Y(we,A=>{a(t)&&A(ue)})}_(se);var Le=h(se,2),De=w(Le);{var Ue=A=>{var F=eo(),P=Ie(F);{let fe=I(()=>!e.canUp);Ge(P,{variant:"outline",size:"sm",get disabled(){return a(fe)},onclick:()=>e.onmove(-1),children:(ke,ee)=>{var he=Xr(),G=Ie(he);Ln(G,{"aria-hidden":"true"}),qe(),m(ke,he)},$$slots:{default:!0}})}var k=h(P,2);{let fe=I(()=>!e.canDown);Ge(k,{variant:"outline",size:"sm",get disabled(){return a(fe)},onclick:()=>e.onmove(1),children:(ke,ee)=>{var he=Qr(),G=Ie(he);jn(G,{"aria-hidden":"true"}),qe(),m(ke,he)},$$slots:{default:!0}})}var U=h(k,2);Ge(U,{variant:"destructive",size:"sm",get onclick(){return e.onremove},children:(fe,ke)=>{var ee=Zr(),he=Ie(ee);En(he,{"aria-hidden":"true"}),qe(),m(fe,ee)},$$slots:{default:!0}}),m(A,F)},$e=A=>{Ge(A,{variant:"outline",size:"sm",get onclick(){return e.onreset},children:(F,P)=>{var k=to(),U=Ie(k);Va(U,{"aria-hidden":"true"}),qe(),m(F,k)},$$slots:{default:!0}})};Y(De,A=>{e.step.added?A(Ue):e.step.restyled&&A($e,1)})}var Je=h(De,2);{var Ye=A=>{var F=so();m(A,F)};Y(Je,A=>{e.declared==="builtin"&&A(Ye)})}_(Le),_(v),M((A,F,P)=>{me(v,"data-step-form",e.step.id),O(f,`${l[e.declared]??""}${e.step.restyled&&!e.step.added?", changed by this file":""}`),O(K,e.step.label),st(H,A),me(H,"placeholder",e.step.added?"e.g. Deployed locally":e.step.label),st(L,F),O(xe,a(i)?"Chosen here.":`As in ${e.belowName}; tick to choose your own.`),q!==(q=P)&&(ge.value=(ge.__value=q)??"",bt(ge,q))},[()=>n(e.entry?.label),()=>n(e.entry?.short),()=>n(e.entry?.primary_link)]),_e("input",H,A=>e.onfield("label",A.currentTarget.value)),_e("change",H,function(...A){e.onlabeldone?.apply(this,A)}),_e("input",L,A=>e.onfield("short",A.currentTarget.value)),_e("change",ge,A=>e.onfield("primary_link",A.currentTarget.value)),m(s,v),wt()}kt(["input","change","click"]);var io=y('<p class="mt-4 text-sm text-muted-foreground"> </p>'),ro=y("<option> </option>"),oo=y("<!> ",1),lo=y('<p class="mt-2 text-sm text-danger">Fix the file’s problems to test it.</p>'),co=y('<li><span class="font-medium"> </span> <code class="font-mono text-xs"> </code> <span class="text-xs text-muted-foreground"> </span></li>'),uo=y('<p class="mt-2 pl-6 text-xs text-muted-foreground"> </p>'),fo=y('<div class="mt-4 rounded-lg border bg-panel p-3 text-sm"><label class="flex items-start gap-2"><input type="checkbox" class="mt-0.5 size-4 accent-[var(--sea)]"/> <span> </span></label> <ul class="mt-2 space-y-1 pl-6"></ul> <!></div>'),ho=y('<div class="mt-4 flex flex-wrap items-end gap-3"><label class="min-w-0 flex-1 text-sm font-medium" for="test-task">Task <select id="test-task" class="mt-1 block w-full max-w-xl rounded-md border border-input bg-card px-3 py-1.5 text-sm font-normal"></select></label> <!></div> <!> <!>',1),mo=y('<p class="mt-3 text-sm text-danger" role="alert"> </p>'),po=y("<li> </li>"),vo=y('<ul class="mt-1 list-disc pl-5 font-mono text-xs"></ul>'),go=y('<div class="mt-4 text-sm text-danger" role="alert"><p> </p> <!></div>'),yo=y('<p class="mt-2 text-sm text-warning" role="status"> </p>'),bo=y('<span class="block text-xs text-danger"> </span>'),_o=y('<span class="block text-xs text-muted-foreground"> </span>'),ko=y('<li class="flex items-start gap-2"><!> <span class="min-w-0"><span> </span> <span class="sr-only"> </span> <!> <!></span></li>'),xo=y('<p class="mt-1 text-sm text-muted-foreground">This passage has no checks.</p>'),wo=y('<p class="mt-0.5 font-mono text-xs text-muted-foreground"> </p>'),So=y('<details class="mt-1"><summary class="cursor-pointer text-xs text-sea">Output</summary> <pre class="mt-1 max-h-72 overflow-auto rounded-md bg-terminal px-3 py-2 font-mono text-xs text-terminal-foreground"> </pre></details>'),To=y('<li><p class="flex flex-wrap items-baseline gap-x-2"><span class="font-medium"> </span> <span> </span></p> <p class="mt-0.5 text-muted-foreground"> </p> <!> <!></li>'),No=y('<ul class="mt-3 space-y-2"></ul>'),Ao=y('<div class="mt-5 grid gap-6 lg:grid-cols-[minmax(0,1fr)_minmax(0,1.4fr)]" aria-live="polite"><div><h3 class="text-sm font-medium">It would be at <span> </span></h3> <p class="mt-1 text-xs text-muted-foreground"> </p> <!> <ol class="mt-3 space-y-1.5 text-sm"></ol></div> <div><h3 class="text-sm font-medium">What each check found</h3> <!></div></div>'),Io=y(`<section class="rounded-xl border bg-card p-5" aria-labelledby="test-title" data-test-panel=""><div class="flex items-start gap-3"><div class="min-w-0 flex-1"><h2 id="test-title" class="text-lg">Test this passage</h2> <p class="mt-1 text-sm text-muted-foreground">See where a task would be with your edits. Each check runs once now; nothing is saved or
|
|
75
|
+
recorded.</p></div> <button type="button" class="inline-flex size-8 items-center justify-center rounded-md text-muted-foreground hover:bg-muted hover:text-foreground" aria-label="Close the test"><!></button></div> <!> <!> <!></section>`);function Oo(s,e){xt(e,!0);const t=I(()=>e.tasks.filter(R=>R.track===e.track));let n=je(""),i=je(!1),o=je(!1),r=je(null),l=je(null);ls(()=>{a(t).some(R=>R.id===a(n))||ie(n,a(t)[0]?.id??"",!0)});const c=I(()=>JSON.stringify(e.commands));ls(()=>{a(c),ie(i,!1)});async function d(){ie(o,!0),ie(l,null),ie(r,null);try{const R=await fetch(`/api/projects/${encodeURIComponent(e.projectId)}/passage/test`,{method:"POST",headers:{"content-type":"application/json",[Ps]:cs.data.sessionToken},body:JSON.stringify({target:e.target,text:e.text,taskId:a(n),commands:a(i)&&e.commands.length>0?e.commands:null})}),C=await R.json().catch(()=>null);C&&typeof C.ok=="boolean"?ie(r,C,!0):ie(l,typeof C?.message=="string"?C.message:`Wheelhouse answered ${R.status}.`,!0)}catch{ie(l,"Could not reach the Wheelhouse server.")}finally{ie(o,!1)}}const v={s:1,m:60,h:3600,d:86400},u=I(()=>{const R=e.commands.reduce((C,E)=>{const ve=/^(\d+)([smhd])$/.exec(E.timeout);return C+(ve?Number(ve[1])*v[ve[2]]:300)},0);return R>=3600&&R%3600===0?`${R/3600} h`:R>=60?`${Math.round(R/60)} min`:`${R} s`}),f=new Set(["failed","failure","error","mismatch"]),x=new Set(["absent","not_yet","no","in_progress"]);function K(R){return R.state==="observed"&&R.outcome&&f.has(R.outcome)?{word:"Failed",tone:"text-danger"}:R.state==="observed"&&R.outcome&&x.has(R.outcome)?{word:"Not yet",tone:"text-muted-foreground"}:R.state==="observed"?{word:"Passed",tone:"text-success"}:R.state==="unknown"?{word:"Couldn’t tell",tone:"text-warning"}:{word:"Not run",tone:"text-muted-foreground"}}var S=Io(),N=w(S),j=h(w(N),2),W=w(j);Ys(W,{class:"size-4","aria-hidden":"true"}),_(j),_(N);var ne=h(N,2);{var te=R=>{var C=io(),E=D(C,!0);M(()=>O(E,e.tasks.length?`None of this project’s recent tasks follow the ${e.track==="ship"?"ship":"scout"} passage.`:"Wheelhouse has not seen any of this project’s tasks recently.")),m(R,C)},ae=R=>{var C=ho(),E=Ie(C),ve=w(E),xe=h(w(ve));Me(xe,21,()=>a(t),B=>B.id,(B,q)=>{var ye=ro(),ce=D(ye),le={};M(()=>{O(ce,`${a(q).title??""}${a(q).step?` (now at ${a(q).step})`:""}`),le!==(le=a(q).id)&&(ye.value=(ye.__value=le)??"")}),m(B,ye)}),_(xe),ot(xe),_(ve);var Q=h(ve,2);{let B=I(()=>a(o)||e.blocked||!a(n));Ge(Q,{get disabled(){return a(B)},onclick:d,children:(q,ye)=>{var ce=oo(),le=Ie(ce);Ua(le,{"aria-hidden":"true"});var T=h(le,1,!0);M(()=>O(T,a(o)?"Testing…":"Run the test")),m(q,ce)},$$slots:{default:!0}})}_(E);var Z=h(E,2);{var re=B=>{var q=lo();m(B,q)};Y(Z,B=>{e.blocked&&B(re)})}var ge=h(Z,2);{var Ae=B=>{var q=fo(),ye=w(q),ce=w(ye);at(ce);var le=h(ce,2),T=D(le);_(ye);var b=h(ye,2);Me(b,21,()=>e.commands,de=>de.id,(de,z)=>{var X=co(),we=w(X),ue=D(we),Le=h(we,2),De=D(Le,!0),Ue=h(Le,2),$e=D(Ue);_(X),M(()=>{O(ue,`${a(z).label??""}:`),O(De,a(z).line),O($e,`in ${(a(z).cwd==="."?"the project folder":a(z).cwd)??""}, up to ${a(z).timeout??""}`)}),m(de,X)}),_(b);var $=h(b,2);{var se=de=>{var z=uo(),X=D(z);M(()=>O(X,`The test waits for ${e.commands.length===1?"it":"them"}, up to ${a(u)??""} in all.`)),m(de,z)};Y($,de=>{a(i)&&de(se)})}_(q),M(()=>O(T,`Also run ${e.commands.length===1?"this command":`these ${e.commands.length} commands`} on
|
|
76
|
+
this machine now. Otherwise they are left out of the test.`)),Na(ce,()=>a(i),de=>ie(i,de)),m(B,q)};Y(ge,B=>{e.commands.length&&B(Ae)})}Nn(xe,()=>a(n),B=>ie(n,B)),m(R,C)};Y(ne,R=>{a(t).length?R(ae,-1):R(te)})}var H=h(ne,2);{var pe=R=>{var C=mo(),E=D(C,!0);M(()=>O(E,a(l))),m(R,C)};Y(H,R=>{a(l)&&R(pe)})}var L=h(H,2);{var J=R=>{var C=go(),E=w(C),ve=D(E,!0),xe=h(E,2);{var Q=Z=>{var re=vo();Me(re,21,()=>a(r).errors,Wt,(ge,Ae)=>{var B=po(),q=D(B,!0);M(()=>O(q,a(Ae))),m(ge,B)}),_(re),m(Z,re)};Y(xe,Z=>{a(r).errors.length&&Z(Q)})}_(C),M(()=>O(ve,a(r).message)),m(R,C)},be=R=>{const C=I(()=>a(r).passage),E=I(()=>a(C).steps[a(C).current]),ve=I(()=>a(C).checks.filter(z=>K(z).word==="Failed").length),xe=I(()=>a(C).checks.filter(z=>z.state==="unknown").length),Q=I(()=>new Set(a(C).checks.filter(z=>K(z).word==="Failed").map(z=>z.id)));var Z=Ao(),re=w(Z),ge=w(re),Ae=h(w(ge)),B=D(Ae);_(ge);var q=h(ge,2),ye=D(q,!0),ce=h(q,2);{var le=z=>{var X=yo(),we=D(X);M(ue=>O(we,`${ue??""}; see what each check found.`),[()=>[a(ve)?`${a(ve)} check${a(ve)===1?"":"s"} failed`:"",a(xe)?`${a(xe)} couldn’t tell`:""].filter(Boolean).join(" and ")]),m(z,X)};Y(ce,z=>{(a(ve)||a(xe))&&z(le)})}var T=h(ce,2);Me(T,21,()=>a(C).steps,z=>z.key,(z,X)=>{const we=I(()=>a(X).evidence.some(G=>G.startsWith("check:")&&a(Q).has(G.slice(6))));var ue=ko(),Le=w(ue);{var De=G=>{Mn(G,{class:"mt-0.5 size-4 shrink-0 text-danger","aria-hidden":"true"})},Ue=G=>{Qa(G,{class:"mt-0.5 size-4 shrink-0 text-success","aria-hidden":"true"})},$e=G=>{ni(G,{class:"mt-0.5 size-4 shrink-0 text-sea","aria-hidden":"true"})},Je=G=>{Za(G,{class:"mt-0.5 size-4 shrink-0 text-muted-foreground","aria-hidden":"true"})},Ye=G=>{ei(G,{class:"mt-0.5 size-4 shrink-0 text-muted-foreground","aria-hidden":"true"})};Y(Le,G=>{a(X).failed||a(we)?G(De):a(X).state==="done"?G(Ue,1):a(X).state==="current"?G($e,2):a(X).state==="skipped"?G(Je,3):G(Ye,-1)})}var A=h(Le,2),F=w(A),P=D(F,!0),k=h(F,2),U=D(k),fe=h(k,2);{var ke=G=>{var Oe=bo(),Ve=D(Oe);M(()=>O(Ve,`Its check failed${a(X).state==="done"?", though a later step was reached":""}.`)),m(G,Oe)};Y(fe,G=>{a(we)&&!a(X).failed&&G(ke)})}var ee=h(fe,2);{var he=G=>{var Oe=_o(),Ve=D(Oe,!0);M(()=>O(Ve,a(X).note)),m(G,Oe)};Y(ee,G=>{a(X).note&&G(he)})}_(A),_(ue),M(()=>{me(ue,"data-state",a(X).state),Se(F,1,He(a(X).state==="upcoming"?"text-muted-foreground":"")),O(P,a(X).label),O(U,`(${(a(X).failed?"failed":a(X).state)??""})`)}),m(z,ue)}),_(T),_(re);var b=h(re,2),$=h(w(b),2);{var se=z=>{var X=xo();m(z,X)},de=z=>{var X=No();Me(X,21,()=>a(C).checks,we=>we.id,(we,ue)=>{const Le=I(()=>K(a(ue)));var De=To(),Ue=w(De),$e=w(Ue),Je=D($e,!0),Ye=h($e,2),A=D(Ye,!0);_(Ue);var F=h(Ue,2),P=D(F,!0),k=h(F,2);{var U=ee=>{var he=wo(),G=D(he,!0);M(()=>O(G,a(ue).command)),m(ee,he)};Y(k,ee=>{a(ue).command&&ee(U)})}var fe=h(k,2);{var ke=ee=>{var he=So(),G=h(w(he),2),Oe=D(G,!0);_(he),M(()=>O(Oe,a(ue).output)),m(ee,he)};Y(fe,ee=>{a(ue).output&&ee(ke)})}_(De),M(()=>{Se(De,1,`rounded-lg border px-3 py-2 text-sm ${a(Le).word==="Failed"?"border-danger/50":a(Le).word==="Couldn’t tell"?"border-warning/50":""}`),me(De,"data-verdict",a(Le).word),O(Je,a(ue).label),Se(Ye,1,`text-xs font-medium ${a(Le).tone??""}`),O(A,a(Le).word),O(P,a(ue).summary)}),m(we,De)}),_(X),m(z,X)};Y($,z=>{a(C).checks.length?z(de,-1):z(se)})}_(b),_(Z),M(()=>{Se(Ae,1,He(a(E).failed?"text-danger":"text-sea")),O(B,`${a(E).label??""}${a(E).failed?", failed":""}`),O(ye,a(C).basis)}),m(R,Z)};Y(L,R=>{a(r)&&!a(r).ok?R(J):a(r)?.ok&&R(be,1)})}_(S),_e("click",j,function(...R){e.onclose?.apply(this,R)}),m(s,S),wt()}kt(["click"]);var Co=y('<button type="button" class="inline-flex items-center gap-1.5 text-danger hover:underline"><!> </button>'),Eo=y('<span class="text-muted-foreground">Checking…</span>'),Lo=y('<span class="inline-flex items-center gap-1.5 whitespace-nowrap text-success"><!>No problems</span>'),jo=y("<!>Test",1),Mo=y('<li class="font-mono text-xs leading-5 break-words"> </li>'),Po=y('<ul class="mt-3 space-y-1 rounded-lg border border-danger/40 bg-danger/5 px-4 py-3 text-sm text-danger" role="alert"></ul>'),Bo=y('<p class="mt-3 text-sm text-success" role="status"> </p>'),Do=y('<div class="mt-5"><!></div>'),Ro=y('<p class="mb-3 text-sm text-danger">The YAML could not be read, so the form is unavailable. Fix it here.</p>'),Ko=y('<div class="mt-6"><!> <label for="yaml" class="sr-only">The passage file as YAML</label> <textarea id="yaml" class="min-h-[60vh] w-full rounded-lg border border-input bg-card p-4 font-mono text-sm leading-6" spellcheck="false"></textarea></div>'),qo=y("<!>Up",1),Uo=y("<!>Down",1),Fo=y('<div class="flex gap-1 px-3 pb-2" role="group"><!> <!></div>'),$o=y('<li><button type="button"><span class="tabular w-5 shrink-0 text-muted-foreground"> </span> <span> </span> <span> </span></button> <!></li>'),Wo=y("<!> ",1),Yo=y('<li><button type="button"><span> </span> <span class="text-xs text-muted-foreground"> </span></button></li>'),zo=y('<ul class="mt-2 divide-y rounded-xl border bg-card"></ul>'),Ho=y('<p class="mt-1 text-sm text-muted-foreground">None yet. Choose a step and add a check to it.</p>'),Go=y('<div class="py-6 text-sm text-muted-foreground"><p>Choose a step or a check to edit it.</p> <p class="mt-1">Or add a step, such as a local deploy after the merge.</p></div>'),Jo=y('<div class="mt-6 grid gap-8 lg:grid-cols-[minmax(17rem,24rem)_minmax(0,1fr)]"><div class="min-w-0 space-y-8"><section aria-labelledby="steps-title"><h2 id="steps-title" class="text-sm font-medium">Steps, in order</h2> <ol class="mt-2 divide-y rounded-xl border bg-card" data-step-list=""></ol> <!></section> <section aria-labelledby="checks-title"><h2 id="checks-title" class="text-sm font-medium">Checks</h2> <!></section></div> <div id="passage-detail" class="min-w-0 scroll-mt-20 rounded-xl border bg-card p-5 lg:p-6"><!></div></div>'),Vo=y('<div class="mt-6 flex flex-wrap items-center gap-x-4 gap-y-3 border-y py-3"><div class="inline-flex rounded-md bg-muted p-0.5" role="tablist" aria-label="Edit as"><button type="button" role="tab">Form</button> <button type="button" role="tab">YAML</button></div> <label class="inline-flex items-center gap-2 text-sm"><span class="text-muted-foreground">Builds on</span> <select class="rounded-md border border-input bg-card px-2 py-1 text-sm"><option>Ship work</option><option>Scout work</option></select></label> <div class="min-w-0 flex-1 text-sm" aria-live="polite"><!></div> <div class="flex gap-2"><!> <!></div></div> <!> <!> <!> <!> <!> <p class="mt-8 text-xs text-muted-foreground"><!></p>',1);function Xo(s,e){xt(e,!0);const t=e.editor.file.exists?e.editor.file.text:sa();let n=je(ya(t)),i=je("form"),o=je(null),r=je(!1),l=je(!1),c=je(!1),d=je(null),v=je(null),u=je(null),f=je(!1),x=je(!1);const K=I(()=>Ds(a(n))),S=I(()=>a(K)?.extends??"ship"),N=I(()=>e.editor.below[a(S)]),j=I(()=>a(K)?Gt(a(N),a(K).stages):[]),W=I(()=>a(K)?.checks??{}),ne=I(()=>a(n)!==t),te=I(()=>a(K)===null),ae=I(()=>a(te)?["The YAML could not be read."]:a(u)?.errors??[]),H=I(()=>a(u)?.commands??[]),pe=I(()=>e.editor.target==="project"),L=I(()=>e.editor.defaultRef?.replace(/^origin\//,"")??"the default branch"),J=I(()=>{const p={};for(const g of a(N).checks)p[g.id]={...g,mine:!1};for(const[g,V]of Object.entries(a(W)))p[g]={id:g,label:typeof V?.label=="string"&&V.label?V.label:g,type:String(V?.type??""),mine:!0};return Object.values(p)}),be=I(()=>[{group:"Firstmate",options:Object.entries(Ya).map(([p,g])=>({value:p,label:g.charAt(0).toUpperCase()+g.slice(1)}))},...a(J).map(p=>({group:p.label,options:(za[p.type]??[]).map(g=>({value:`${p.id}.${g}`,label:`${p.label} ${Ha(g)}`}))}))]),R=I(()=>[...Object.entries(Wa).map(([p,g])=>({value:p,label:g})),...a(J).map(p=>({value:`check:${p.id}`,label:`${p.label} result`}))]);ls(()=>{const p=a(n);if(a(te))return;ie(f,!0);const g=setTimeout(async()=>{try{const oe=await(await fetch(`/api/projects/${encodeURIComponent(e.editor.projectId)}/passage/draft`,{method:"POST",headers:{"content-type":"application/json",[Ps]:cs.data.sessionToken},body:JSON.stringify({target:e.editor.target,text:p})})).json().catch(()=>null);p===a(n)&&oe&&Array.isArray(oe.errors)&&ie(u,oe,!0)}catch{}finally{p===a(n)&&ie(f,!1)}},300);return()=>clearTimeout(g)}),wa(({cancel:p,willUnload:g})=>{a(ne)&&!a(c)&&!g&&!confirm("Leave without saving your changes?")&&p()});const C=p=>{ie(n,Hi(a(n),p),!0),ie(v,null)},E=I(()=>a(o)?.kind==="step"?a(j).find(p=>p.id===a(o).id):void 0),ve=I(()=>a(E)&&a(E).fileIndex!==null?a(K)?.stages[a(E).fileIndex]??null:null),xe=I(()=>a(E)?a(E).added?"file":a(N).steps.find(p=>p.id===a(E).id)?.origin??"builtin":"builtin"),Q=I(()=>a(E)?a(j).indexOf(a(E)):-1),Z=new an,re=new an,ge=p=>a(j).map(g=>g.id).filter(g=>g!==p),Ae=p=>a(J).map(g=>g.id).filter(g=>g!==p);function B(p,g){if(!a(E))return;const V=a(E).id;C(oe=>{const Re=a(E).fileIndex??_n(oe,V);vt(oe,Re,p,g)})}function q(){if(!a(E)||!Z.has(a(E).id))return;const p=a(E).id,g=typeof a(ve)?.label=="string"?a(ve).label.trim():"";if(!g)return;const V=is(g,ge(p));V!==p&&(C(oe=>Gi(oe,p,V)),Z.delete(p),Z.add(V),ie(o,{kind:"step",id:V},!0))}function ye(p){if(!re.has(p))return;const g=a(W)[p]?.label;if(typeof g!="string"||!g.trim())return;const V=is(g,Ae(p),"check");V!==p&&(C(oe=>Qi(oe,p,V)),re.delete(p),re.add(V),ie(o,{kind:"check",id:V},!0))}function ce(p,g){ie(o,{kind:p,id:g},!0),typeof window<"u"&&window.innerWidth<1024&&requestAnimationFrame(()=>document.getElementById("passage-detail")?.scrollIntoView({behavior:"smooth",block:"start"}))}function le(){const p=is("New step",ge("")),g=a(E)?.id??a(j).at(-1)?.id??null,V=a(E)?a(j).indexOf(a(E))+1:a(j).length;C(oe=>{Ji(oe,{id:p,label:"New step",reached_when:"merged"},g),ia(oe,a(N),p,V)}),Z.add(p),ce("step",p)}function T(){if(!a(E)||a(E).fileIndex===null||!confirm(`Remove the step “${a(E).label}” from this file?`))return;const p=a(E).fileIndex;C(g=>kn(g,p)),ie(o,null)}function b(){if(!a(E)||a(E).fileIndex===null)return;const p=a(E).fileIndex;C(g=>kn(g,p))}const $={"github.deployment":"success","github.workflow":"success","github.release":"included","npm.published":"published",http:"ok","git.contains":"yes","status.note":"present",command:"passed"},se={"github.deployment":"failure","github.workflow":"failure",command:"failed"},de={"github.deployment":{ref:"merge.commit"},"github.workflow":{ref:"pr.head"},"github.release":{contains:"merge.commit"},"npm.published":{},http:{},"git.contains":{repo:"project-clone",commit:"merge.commit"},"status.note":{prefix:"preview"},command:{timeout:"5m"}};function z(p){if(!a(E))return;const g=a(E),V=a(J).some(Be=>Be.label===g.label)?`${g.label}: ${zt[p].name.toLowerCase()}`:g.label,oe=is(V,Ae(""),"check"),Re=a(j).findIndex(Be=>Be.id==="landed"),Fe=Re>=0&&a(j).indexOf(g)>Re;C(Be=>{Os(Be,oe,{type:p,label:V,...de[p],...p==="command"&&Fe?{when:"merged"}:{}});const ut=g.fileIndex??_n(Be,g.id),St=Be.toJS().stages[ut];if(a(xe)!=="builtin"){const Dt=(Zt,bs)=>{const Rt=Rs(Zt);if(!Rt)return Zt;const _s=Rt.items.filter(Ne=>!(Ne.ref==="merged"&&!Ne.not&&g.added));return Ks({...Rt,items:[..._s,{not:!1,ref:bs}]})};vt(Be,ut,"reached_when",Dt(St.reached_when,`${oe}.${$[p]}`)),se[p]&&vt(Be,ut,"failed_when",Dt(St.failed_when,`${oe}.${se[p]}`))}const ys=Array.isArray(St.evidence)?St.evidence:[];vt(Be,ut,"evidence",[...ys,`check:${oe}`])}),re.add(oe),ie(X,g.id,!0),ce("check",oe)}let X=je(null);const we=p=>{const g=a(K)?.stages.find(V=>V.id===p);return g?a(J).filter(V=>Xi([g],V.id).length>0):[]},ue=I(()=>a(o)?.kind==="check"?a(J).find(p=>p.id===a(o).id):void 0);function Le(p){confirm("Remove this check? Steps that use it stop using it.")&&(C(g=>{Os(g,p,null),(g.toJS().stages??[]).forEach((oe,Re)=>{for(const Fe of["reached_when","failed_when","skip_when"]){const Be=Rs(oe[Fe]);Be&&oe[Fe]!==void 0&&vt(g,Re,Fe,Ks({...Be,items:Be.items.filter(ut=>!ut.ref.startsWith(`${p}.`))}))}Array.isArray(oe.evidence)&&vt(g,Re,"evidence",oe.evidence.filter(Fe=>Fe!==`check:${p}`)),oe.primary_link===`${p}.url`&&vt(g,Re,"primary_link",void 0)})}),ie(o,null))}async function De(){ie(c,!0),ie(d,null);try{const p=await fetch(`/api/projects/${encodeURIComponent(e.editor.projectId)}/passage/file`,{method:"PUT",headers:{"content-type":"application/json",[Ps]:cs.data.sessionToken},body:JSON.stringify({target:e.editor.target,text:a(n),baseDigest:e.editor.file.digest})}),g=await p.json().catch(()=>null);if(p.ok&&g?.schema==="wheelhouse-passage-editor.v1"){ie(l,!1);const{tasks:V,...oe}=g;e.onsaved(oe,V)}else ie(d,(typeof g?.message=="string"?g.message:`Wheelhouse answered ${p.status}.`)+(Array.isArray(g?.errors)&&g.errors.length?` ${g.errors[0]}`:""))}catch{ie(d,"Could not reach the Wheelhouse server.")}finally{ie(c,!1)}}const Ue=p=>`inline-flex items-center rounded-sm px-3 py-1.5 text-sm ${p?"bg-card font-medium shadow-xs":"text-muted-foreground hover:text-foreground"}`;var $e=Vo(),Je=Ie($e),Ye=w(Je),A=w(Ye),F=h(A,2);_(Ye);var P=h(Ye,2),k=h(w(P),2),U=w(k);U.value=U.__value="ship";var fe=h(U);fe.value=fe.__value="scout",_(k);var ke;ot(k),_(P);var ee=h(P,2),he=w(ee);{var G=p=>{var g=Co(),V=w(g);Mn(V,{class:"size-4","aria-hidden":"true"});var oe=h(V);_(g),M(()=>{me(g,"aria-expanded",a(x)),O(oe,`${a(ae).length===1?"1 problem":`${a(ae).length} problems`}; it can’t be saved yet`)}),_e("click",g,()=>ie(x,!a(x))),m(p,g)},Oe=p=>{var g=Eo();m(p,g)},Ve=p=>{var g=Lo(),V=w(g);ti(V,{class:"size-4","aria-hidden":"true"}),qe(),_(g),m(p,g)};Y(he,p=>{a(ae).length?p(G):a(f)||!a(u)?p(Oe,1):p(Ve,-1)})}_(ee);var ct=h(ee,2),ht=w(ct);Ge(ht,{variant:"outline",onclick:()=>ie(r,!a(r)),get"aria-expanded"(){return a(r)},children:(p,g)=>{var V=jo(),oe=Ie(V);ii(oe,{"aria-hidden":"true"}),qe(),m(p,V)},$$slots:{default:!0}});var Ce=h(ht,2);{let p=I(()=>!a(ne)||a(ae).length>0||a(f));Ge(Ce,{get disabled(){return a(p)},onclick:()=>{ie(d,null),ie(l,!0)},children:(g,V)=>{qe();var oe=yt("Review and save");m(g,oe)},$$slots:{default:!0}})}_(ct),_(Je);var Ee=h(Je,2);{var Ze=p=>{var g=Po();Me(g,21,()=>a(ae),Wt,(V,oe)=>{var Re=Mo(),Fe=D(Re,!0);M(()=>O(Fe,a(oe))),m(V,Re)}),_(g),m(p,g)};Y(Ee,p=>{a(x)&&a(ae).length&&p(Ze)})}var dt=h(Ee,2);{var Bt=p=>{var g=Bo(),V=D(g,!0);M(()=>O(V,a(v))),m(p,g)};Y(dt,p=>{a(v)&&p(Bt)})}var Zs=h(dt,2);{var ra=p=>{var g=Do(),V=w(g);{let oe=I(()=>a(ae).length>0);Oo(V,{get projectId(){return e.editor.projectId},get target(){return e.editor.target},get text(){return a(n)},get track(){return a(S)},get tasks(){return e.tasks},get commands(){return a(H)},get blocked(){return a(oe)},onclose:()=>ie(r,!1)})}_(g),m(p,g)};Y(Zs,p=>{a(r)&&p(ra)})}var en=h(Zs,2);{var oa=p=>{var g=Ko(),V=w(g);{var oe=Fe=>{var Be=Ro();m(Fe,Be)};Y(V,Fe=>{a(te)&&a(i)==="form"&&Fe(oe)})}var Re=h(V,4);os(Re),_(g),Aa(Re,()=>a(n),Fe=>ie(n,Fe)),m(p,g)},la=p=>{var g=Jo(),V=w(g),oe=w(V),Re=h(w(oe),2);Me(Re,23,()=>a(j),Ne=>Ne.id,(Ne,Te,ze)=>{const Ke=I(()=>a(o)?.kind==="step"&&a(o).id===a(Te).id);var Xe=$o(),We=w(Xe),et=w(We),rt=D(et),tt=h(et,2),mt=D(tt,!0),Tt=h(tt,2),Qe=D(Tt,!0);_(We);var Kt=h(We,2);{var fa=ks=>{var es=Fo(),nn=w(es);{let xs=I(()=>a(ze)<=1);Ge(nn,{variant:"ghost",size:"xs",get disabled(){return a(xs)},onclick:()=>C(pt=>Is(pt,a(N),a(Te).id,-1)),children:(pt,ma)=>{var qt=qo(),ws=Ie(qt);Ln(ws,{"aria-hidden":"true"}),qe(),m(pt,qt)},$$slots:{default:!0}})}var ha=h(nn,2);{let xs=I(()=>a(ze)>=a(j).length-1);Ge(ha,{variant:"ghost",size:"xs",get disabled(){return a(xs)},onclick:()=>C(pt=>Is(pt,a(N),a(Te).id,1)),children:(pt,ma)=>{var qt=Uo(),ws=Ie(qt);jn(ws,{"aria-hidden":"true"}),qe(),m(pt,qt)},$$slots:{default:!0}})}_(es),M(()=>me(es,"aria-label",`Move ${a(Te).label??""}`)),m(ks,es)};Y(Kt,ks=>{a(Ke)&&a(Te).added&&ks(fa)})}_(Xe),M(()=>{Se(We,1,`flex w-full items-baseline gap-2 px-3 py-2.5 text-left text-sm hover:bg-muted/60 ${a(Ke)?"bg-sea/10":""}`),me(We,"aria-current",a(Ke)?"true":void 0),me(We,"data-step",a(Te).id),O(rt,`${a(ze)+1}.`),Se(tt,1,`min-w-0 flex-1 ${a(Ke)?"font-medium":""}`),O(mt,a(Te).label),Se(Tt,1,`text-xs ${a(Te).lost?"text-danger":"text-muted-foreground"}`),O(Qe,a(Te).lost?"misplaced":a(Te).added?"added here":a(Te).restyled?"changed here":"")}),_e("click",We,()=>{ie(X,null),ce("step",a(Te).id)}),m(Ne,Xe)}),_(Re);var Fe=h(Re,2);Ge(Fe,{variant:"outline",size:"sm",class:"mt-3",onclick:le,children:(Ne,Te)=>{var ze=Wo(),Ke=Ie(ze);Ws(Ke,{"aria-hidden":"true"});var Xe=h(Ke);M(()=>O(Xe,`Add a step${a(E)?` after ${a(E).label}`:""}`)),m(Ne,ze)},$$slots:{default:!0}}),_(oe);var Be=h(oe,2),ut=h(w(Be),2);{var St=Ne=>{var Te=zo();Me(Te,21,()=>a(J),ze=>ze.id,(ze,Ke)=>{const Xe=I(()=>a(o)?.kind==="check"&&a(o).id===a(Ke).id);var We=Yo(),et=w(We),rt=w(et),tt=D(rt,!0),mt=h(rt,2),Tt=D(mt);_(et),_(We),M(()=>{Se(et,1,`flex w-full items-baseline justify-between gap-3 px-3 py-2.5 text-left text-sm hover:bg-muted/60 ${a(Xe)?"bg-sea/10":""}`),me(et,"aria-current",a(Xe)?"true":void 0),Se(rt,1,`min-w-0 ${a(Xe)?"font-medium":""}`),O(tt,a(Ke).label),O(Tt,`${zt[a(Ke).type]?.name??a(Ke).type??""}${a(Ke).mine?"":", below"}`)}),_e("click",et,()=>{ie(X,null),ce("check",a(Ke).id)}),m(ze,We)}),_(Te),m(Ne,Te)},ys=Ne=>{var Te=Ho();m(Ne,Te)};Y(ut,Ne=>{a(J).length?Ne(St):Ne(ys,-1)})}_(Be),_(V);var Dt=h(V,2),Zt=w(Dt);{var bs=Ne=>{var Te=js(),ze=Ie(Te);Ms(ze,()=>a(E).id,Ke=>{{let Xe=I(()=>we(a(E).id)),We=I(()=>a(E).added&&a(Q)>1),et=I(()=>a(E).added&&a(Q)<a(j).length-1),rt=I(()=>a(pe)?"the built-in passage":"the repository file or the built-in passage");ao(Ke,{get step(){return a(E)},get entry(){return a(ve)},get declared(){return a(xe)},get refs(){return a(be)},get evidence(){return a(R)},get links(){return a(J)},get uses(){return a(Xe)},get canUp(){return a(We)},get canDown(){return a(et)},onfield:B,onlabeldone:q,get belowName(){return a(rt)},onmove:tt=>C(mt=>Is(mt,a(N),a(E).id,tt)),onremove:T,onreset:b,onopencheck:tt=>{ie(X,a(E).id,!0),ce("check",tt)},onaddcheck:z})}}),m(Ne,Te)},Rt=Ne=>{var Te=js(),ze=Ie(Te);Ms(ze,()=>a(ue).id,Ke=>{{let Xe=I(()=>a(ue).mine?a(W)[a(ue).id]:{type:a(ue).type,label:a(ue).label}),We=I(()=>!a(ue).mine),et=I(()=>a(ue).mine?null:"Declared in the project’s repository file; change it there."),rt=I(()=>!a(pe)),tt=I(()=>a(J).filter(Qe=>Qe.type==="github.release")),mt=I(()=>a(j).filter(Qe=>we(Qe.id).some(Kt=>Kt.id===a(ue).id)).map(Qe=>Qe.label)),Tt=I(()=>a(X)&&a(j).some(Qe=>Qe.id===a(X))?{label:a(j).find(Qe=>Qe.id===a(X)).label,go:()=>ce("step",a(X))}:null);_r(Ke,{get checkId(){return a(ue).id},get spec(){return a(Xe)},get readonly(){return a(We)},get readonlyWhy(){return a(et)},get captain(){return a(rt)},get releaseChecks(){return a(tt)},get usedBy(){return a(mt)},onchange:Qe=>C(Kt=>Os(Kt,a(ue).id,Qe)),onlabeldone:()=>ye(a(ue).id),get back(){return a(Tt)},onremove:()=>Le(a(ue).id)})}}),m(Ne,Te)},_s=Ne=>{var Te=Go();m(Ne,Te)};Y(Zt,Ne=>{a(E)?Ne(bs):a(ue)?Ne(Rt,1):Ne(_s,-1)})}_(Dt),_(g),m(p,g)};Y(en,p=>{a(i)==="yaml"||a(te)?p(oa):p(la,-1)})}var tn=h(en,2);{let p=I(()=>a(l)?Zi(e.editor.file.text,a(n),a(N)):[]);Or(tn,{get before(){return e.editor.file.text},get after(){return a(n)},get summary(){return a(p)},get target(){return e.editor.target},get defaultRef(){return e.editor.defaultRef},get busy(){return a(c)},get error(){return a(d)},onsave:De,get open(){return a(l)},set open(g){ie(l,g,!0)}})}var sn=h(tn,2),ca=w(sn);{var da=p=>{var g=yt();M(()=>O(g,`Saving writes the file in the project’s repository; Wheelhouse uses it once it is on ${a(L)??""}.`)),m(p,g)},ua=p=>{var g=yt("Saving writes your own file for this project; Wheelhouse uses it within a minute.");m(p,g)};Y(ca,p=>{a(pe)?p(da):p(ua,-1)})}_(sn),M((p,g)=>{me(A,"aria-selected",a(i)==="form"),Se(A,1,p),me(F,"aria-selected",a(i)==="yaml"),Se(F,1,g),k.disabled=a(te),ke!==(ke=a(S))&&(k.value=(k.__value=ke)??"",bt(k,ke))},[()=>He(Ue(a(i)==="form")),()=>He(Ue(a(i)==="yaml"))]),_e("click",A,()=>ie(i,"form")),_e("click",F,()=>ie(i,"yaml")),_e("change",k,p=>{const g=p.currentTarget.value;C(V=>Vi(V,"extends",g)),ie(o,null)}),m(s,$e),wt()}kt(["click","change"]);var Qo=y('<p class="mt-10 text-muted-foreground"> </p>'),Zo=y('<button type="button" role="radio"><span class="block text-sm font-medium"> </span> <span class="mt-0.5 block text-xs text-muted-foreground"> </span></button>'),el=y('<span class="text-success">This is the version Wheelhouse uses now.</span>'),tl=y('<span class="text-warning"> </span> <a class="ml-1 text-sea hover:underline">Ask Firstmate to ship it</a>',1),sl=y('<span class="text-success">In use.</span>'),nl=y('<span class="text-danger">Not in use: it has problems.</span>'),al=y('<details class="mt-1 text-xs text-muted-foreground"><summary class="cursor-pointer">Where the file is</summary> <p class="mt-1 font-mono break-all"> </p></details>'),il=y('<p class="mt-2 text-sm text-danger"> </p>'),rl=y('<p class="mt-2 text-sm text-success" role="status"> </p>'),ol=y(`<p class="mt-6 text-sm text-muted-foreground"> </p> <h1 class="mt-1 text-2xl font-semibold tracking-tight">Edit passage</h1> <p class="mt-2 max-w-3xl leading-relaxed text-muted-foreground">Add, rename and reorder the steps this project’s tasks pass through, and the checks that
|
|
77
|
+
move them along. Test your edits on a real task before you save.</p> <div class="mt-6" role="radiogroup" aria-label="Which file to edit"><div class="flex flex-wrap gap-3"></div> <p class="mt-3 max-w-3xl text-sm" data-file-state=""><!></p> <!> <!> <!></div> <!>`,1),ll=y('<main class="px-4 pt-6 pb-24 sm:px-6 lg:px-10"><div class="surface px-5 py-6 sm:px-8 sm:py-8"><a class="inline-flex items-center gap-1.5 text-sm text-muted-foreground hover:text-foreground"><!> </a> <!></div></main>');function Bl(s,e){xt(e,!0);const t=I(()=>cs.params.id),n=I(()=>Ta()?.projects.find(W=>W.id===a(t))?.name??a(t));let i=je(null),o=je(null);const r=I(()=>a(i)&&a(i).editor.target===e.data.editor?.target&&a(i).editor.projectId===a(t)?a(i).editor:e.data.editor),l=I(()=>a(i)&&a(r)===a(i).editor?a(i).tasks:e.data.tasks),c={project:{name:"Repository file",line:"The project’s .wheelhouse.yaml, shared with everyone who works on the repository."},captain:{name:"Your Wheelhouse config",line:"Your own file for this project, outside the repository. It applies on top of the repository file."}};function d(W){W!==a(r)?.target&&(ie(o,null),Sa(`?file=${W}`,{replaceState:!0,keepFocus:!0,noScroll:!0}))}var v=ll();xa("txb91p",W=>{ba(()=>{_a.title=`Edit ${a(n)??""} passage · Wheelhouse`})});var u=w(v),f=w(u),x=w(f);Cn(x,{class:"size-4","aria-hidden":"true"});var K=h(x);_(f);var S=h(f,2);{var N=W=>{var ne=Qo(),te=D(ne,!0);M(()=>O(te,e.data.problem??"Loading…")),m(W,ne)},j=W=>{var ne=ol(),te=Ie(ne),ae=D(te,!0),H=h(te,6),pe=w(H);Me(pe,20,()=>["project","captain"],B=>B,(B,q)=>{const ye=I(()=>a(r).target===q),ce=I(()=>a(r).targets[q].available);var le=Zo(),T=w(le),b=D(T,!0),$=h(T,2),se=D($,!0);_(le),M(()=>{me(le,"aria-checked",a(ye)),le.disabled=!a(ce),Se(le,1,`w-full max-w-sm rounded-lg border px-4 py-3 text-left transition-colors sm:w-auto ${a(ye)?"border-primary bg-card shadow-xs":"border-border hover:bg-muted/60"} disabled:opacity-60`),O(b,c[q].name),O(se,a(ce)?c[q].line:a(r).targets[q].why)}),_e("click",le,()=>d(q)),m(B,le)}),_(pe);var L=h(pe,2),J=w(L);{var be=B=>{var q=js(),ye=Ie(q);{var ce=b=>{var $=yt("There is no repository file yet; saving creates one.");m(b,$)},le=b=>{var $=el();m(b,$)},T=b=>{var $=tl(),se=Ie($),de=D(se),z=h(se,2);M((X,we)=>{O(de,`This version is saved in the clone but not yet on ${X??""}, so Wheelhouse does not use it yet.`),me(z,"href",`/?draft=${we??""}`)},[()=>a(r).defaultRef?.replace(/^origin\//,"")??"the default branch",()=>encodeURIComponent(Ga(a(n)))]),m(b,$)};Y(ye,b=>{a(r).file.exists?a(r).inEffect?b(le,1):b(T,-1):b(ce)})}m(B,q)},R=B=>{var q=yt("You have no config for this project yet; saving creates it.");m(B,q)},C=B=>{var q=sl();m(B,q)},E=B=>{var q=nl();m(B,q)};Y(J,B=>{a(r).target==="project"?B(be):a(r).file.exists?a(r).inEffect?B(C,2):B(E,-1):B(R,1)})}_(L);var ve=h(L,2);{var xe=B=>{var q=al(),ye=h(w(q),2),ce=D(ye,!0);_(q),M(()=>O(ce,a(r).file.location)),m(B,q)};Y(ve,B=>{a(r).file.location&&B(xe)})}var Q=h(ve,2);{var Z=B=>{var q=il(),ye=D(q,!0);M(()=>O(ye,a(r).file.problem)),m(B,q)};Y(Q,B=>{a(r).file.problem&&B(Z)})}var re=h(Q,2);{var ge=B=>{var q=rl(),ye=D(q,!0);M(()=>O(ye,a(o))),m(B,q)};Y(re,B=>{a(o)&&B(ge)})}_(H);var Ae=h(H,2);Ms(Ae,()=>`${a(r).target}|${a(r).file.digest}`,B=>{Xo(B,{get editor(){return a(r)},get tasks(){return a(l)},onsaved:(q,ye)=>{ie(i,{editor:q,tasks:ye},!0),ie(o,q.target==="project"?`Saved to the repository file. Wheelhouse uses it once it is on ${q.defaultRef?.replace(/^origin\//,"")??"the default branch"}.`:"Saved to your config. Wheelhouse uses it within a minute.",!0)}})}),M(()=>O(ae,a(n))),m(W,ne)};Y(S,W=>{a(r)?W(j,-1):W(N)})}_(u),_(v),M(W=>{me(f,"href",`/projects/${W??""}/passage`),O(K,`${a(n)??""} passage`)},[()=>encodeURIComponent(a(t))]),m(s,v),wt()}kt(["click"]);export{Bl as component};
|
|
Binary file
|
|
Binary file
|