codex 1.6.0a0__py3-none-any.whl → 1.6.0a2__py3-none-any.whl
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.
Potentially problematic release.
This version of codex might be problematic. Click here for more details.
- codex/exceptions.py +7 -15
- codex/search/backend_search.py +5 -8
- codex/serializers/redirect.py +3 -2
- codex/static_root/assets/{VCheckbox-Aq_ImMNC.da711f8b6a15.js → VCheckbox-H0aBoP9N.becc7bcda4fe.js} +1 -1
- codex/static_root/assets/VCheckbox-H0aBoP9N.becc7bcda4fe.js.br +0 -0
- codex/static_root/assets/VCheckbox-H0aBoP9N.becc7bcda4fe.js.gz +0 -0
- codex/static_root/assets/{VCheckbox-Aq_ImMNC.js → VCheckbox-H0aBoP9N.js} +1 -1
- codex/static_root/assets/VCheckbox-H0aBoP9N.js.br +0 -0
- codex/static_root/assets/VCheckbox-H0aBoP9N.js.gz +0 -0
- codex/static_root/assets/{VCheckboxBtn-D3izCBa7.54f4d7f48bbf.js → VCheckboxBtn-CTJ47tuf.895028f44ec0.js} +1 -1
- codex/static_root/assets/VCheckboxBtn-CTJ47tuf.895028f44ec0.js.br +0 -0
- codex/static_root/assets/VCheckboxBtn-CTJ47tuf.895028f44ec0.js.gz +0 -0
- codex/static_root/assets/{VCheckboxBtn-D3izCBa7.js → VCheckboxBtn-CTJ47tuf.js} +1 -1
- codex/static_root/assets/VCheckboxBtn-CTJ47tuf.js.br +0 -0
- codex/static_root/assets/VCheckboxBtn-CTJ47tuf.js.gz +0 -0
- codex/static_root/assets/{VCombobox-DLL1EsSN.55622a0cd4ab.js → VCombobox-CN1HkVdW.4e967f4996b8.js} +1 -1
- codex/static_root/assets/VCombobox-CN1HkVdW.4e967f4996b8.js.br +0 -0
- codex/static_root/assets/VCombobox-CN1HkVdW.4e967f4996b8.js.gz +0 -0
- codex/static_root/assets/{VCombobox-DLL1EsSN.js → VCombobox-CN1HkVdW.js} +1 -1
- codex/static_root/assets/VCombobox-CN1HkVdW.js.br +0 -0
- codex/static_root/assets/VCombobox-CN1HkVdW.js.gz +0 -0
- codex/static_root/assets/{VDialog-yDKzaGEj.e8dba78ac8db.js → VDialog-DhRhufg-.7823263dc08c.js} +1 -1
- codex/static_root/assets/VDialog-DhRhufg-.7823263dc08c.js.br +0 -0
- codex/static_root/assets/VDialog-DhRhufg-.7823263dc08c.js.gz +0 -0
- codex/static_root/assets/{VDialog-yDKzaGEj.js → VDialog-DhRhufg-.js} +1 -1
- codex/static_root/assets/VDialog-DhRhufg-.js.br +0 -0
- codex/static_root/assets/VDialog-DhRhufg-.js.gz +0 -0
- codex/static_root/assets/{VExpansionPanels-Cpo8QLLq.d733b7906e00.js → VExpansionPanels-BFGZaci1.44e8d898794f.js} +1 -1
- codex/static_root/assets/VExpansionPanels-BFGZaci1.44e8d898794f.js.br +0 -0
- codex/static_root/assets/VExpansionPanels-BFGZaci1.44e8d898794f.js.gz +0 -0
- codex/static_root/assets/{VExpansionPanels-Cpo8QLLq.js → VExpansionPanels-BFGZaci1.js} +1 -1
- codex/static_root/assets/VExpansionPanels-BFGZaci1.js.br +0 -0
- codex/static_root/assets/VExpansionPanels-BFGZaci1.js.gz +0 -0
- codex/static_root/assets/{VRadioGroup-DEezv8bL.4a609e74e507.js → VRadioGroup-XG50xIIN.2980bd8d85c3.js} +1 -1
- codex/static_root/assets/VRadioGroup-XG50xIIN.2980bd8d85c3.js.br +0 -0
- codex/static_root/assets/VRadioGroup-XG50xIIN.2980bd8d85c3.js.gz +0 -0
- codex/static_root/assets/{VRadioGroup-DEezv8bL.js → VRadioGroup-XG50xIIN.js} +1 -1
- codex/static_root/assets/VRadioGroup-XG50xIIN.js.br +0 -0
- codex/static_root/assets/VRadioGroup-XG50xIIN.js.gz +0 -0
- codex/static_root/assets/{VSelect-BKXcujPy.8871035f5634.js → VSelect-DaalAg2L.1d47bbfdea51.js} +1 -1
- codex/static_root/assets/VSelect-DaalAg2L.1d47bbfdea51.js.br +0 -0
- codex/static_root/assets/VSelect-DaalAg2L.1d47bbfdea51.js.gz +0 -0
- codex/static_root/assets/{VSelect-BKXcujPy.js → VSelect-DaalAg2L.js} +1 -1
- codex/static_root/assets/VSelect-DaalAg2L.js.br +0 -0
- codex/static_root/assets/VSelect-DaalAg2L.js.gz +0 -0
- codex/static_root/assets/{VSelectionControl-DJAPiluk.402a7ad84a8e.js → VSelectionControl-wVVkmChP.6f6cd52d60c6.js} +1 -1
- codex/static_root/assets/VSelectionControl-wVVkmChP.6f6cd52d60c6.js.br +0 -0
- codex/static_root/assets/VSelectionControl-wVVkmChP.6f6cd52d60c6.js.gz +0 -0
- codex/static_root/assets/{VSelectionControl-DJAPiluk.js → VSelectionControl-wVVkmChP.js} +1 -1
- codex/static_root/assets/VSelectionControl-wVVkmChP.js.br +0 -0
- codex/static_root/assets/VSelectionControl-wVVkmChP.js.gz +0 -0
- codex/static_root/assets/{VSlideGroup-C-kO93Va.8c9e31362dc5.js → VSlideGroup-DCfSQ-Vx.4616e3c229cb.js} +1 -1
- codex/static_root/assets/VSlideGroup-DCfSQ-Vx.4616e3c229cb.js.br +0 -0
- codex/static_root/assets/VSlideGroup-DCfSQ-Vx.4616e3c229cb.js.gz +0 -0
- codex/static_root/assets/{VSlideGroup-C-kO93Va.js → VSlideGroup-DCfSQ-Vx.js} +1 -1
- codex/static_root/assets/VSlideGroup-DCfSQ-Vx.js.br +0 -0
- codex/static_root/assets/VSlideGroup-DCfSQ-Vx.js.gz +0 -0
- codex/static_root/assets/{VTable-9vsIQObs.0a135029e924.js → VTable-icaTTwDw.4849eb93242f.js} +1 -1
- codex/static_root/assets/VTable-icaTTwDw.4849eb93242f.js.br +0 -0
- codex/static_root/assets/VTable-icaTTwDw.4849eb93242f.js.gz +0 -0
- codex/static_root/assets/{VTable-9vsIQObs.js → VTable-icaTTwDw.js} +1 -1
- codex/static_root/assets/VTable-icaTTwDw.js.br +0 -0
- codex/static_root/assets/VTable-icaTTwDw.js.gz +0 -0
- codex/static_root/assets/{VTextField-DI9HAmWh.0de01739bbf9.js → VTextField-BzSMerR0.0d18ae12389f.js} +1 -1
- codex/static_root/assets/VTextField-BzSMerR0.0d18ae12389f.js.br +0 -0
- codex/static_root/assets/VTextField-BzSMerR0.0d18ae12389f.js.gz +0 -0
- codex/static_root/assets/{VTextField-DI9HAmWh.js → VTextField-BzSMerR0.js} +1 -1
- codex/static_root/assets/VTextField-BzSMerR0.js.br +0 -0
- codex/static_root/assets/VTextField-BzSMerR0.js.gz +0 -0
- codex/static_root/assets/{VWindowItem-DpnYkF3y.017d99c27b7b.js → VWindowItem-CJBsFzH7.182ab7c56e32.js} +1 -1
- codex/static_root/assets/VWindowItem-CJBsFzH7.182ab7c56e32.js.br +0 -0
- codex/static_root/assets/VWindowItem-CJBsFzH7.182ab7c56e32.js.gz +0 -0
- codex/static_root/assets/{VWindowItem-DpnYkF3y.js → VWindowItem-CJBsFzH7.js} +1 -1
- codex/static_root/assets/VWindowItem-CJBsFzH7.js.br +0 -0
- codex/static_root/assets/VWindowItem-CJBsFzH7.js.gz +0 -0
- codex/static_root/assets/{admin-2BTkfSQA.e7ef29cb106d.js → admin-CWIp315V.645a8df20a44.js} +1 -1
- codex/static_root/assets/admin-CWIp315V.645a8df20a44.js.br +0 -0
- codex/static_root/assets/admin-CWIp315V.645a8df20a44.js.gz +0 -0
- codex/static_root/assets/{admin-2BTkfSQA.js → admin-CWIp315V.js} +1 -1
- codex/static_root/assets/admin-CWIp315V.js.br +0 -0
- codex/static_root/assets/admin-CWIp315V.js.gz +0 -0
- codex/static_root/assets/{admin-drawer-panel-mtdde7vY.c172dbae9463.js → admin-drawer-panel-BNRI3VNZ.86c14bd98bd6.js} +1 -1
- codex/static_root/assets/admin-drawer-panel-BNRI3VNZ.86c14bd98bd6.js.br +0 -0
- codex/static_root/assets/admin-drawer-panel-BNRI3VNZ.86c14bd98bd6.js.gz +0 -0
- codex/static_root/assets/{admin-drawer-panel-mtdde7vY.js → admin-drawer-panel-BNRI3VNZ.js} +1 -1
- codex/static_root/assets/admin-drawer-panel-BNRI3VNZ.js.br +0 -0
- codex/static_root/assets/admin-drawer-panel-BNRI3VNZ.js.gz +0 -0
- codex/static_root/assets/{browser-BA-AwUn-.23bb4b2f6a29.js → browser-CPtVXHUw.8b5c70db6763.js} +1 -1
- codex/static_root/assets/browser-CPtVXHUw.8b5c70db6763.js.br +0 -0
- codex/static_root/assets/browser-CPtVXHUw.8b5c70db6763.js.gz +0 -0
- codex/static_root/assets/{browser-BA-AwUn-.js → browser-CPtVXHUw.js} +1 -1
- codex/static_root/assets/browser-CPtVXHUw.js.br +0 -0
- codex/static_root/assets/browser-CPtVXHUw.js.gz +0 -0
- codex/static_root/assets/{change-password-dialog-C8YONrId.49aa6df6a91d.js → change-password-dialog-C-8Ixgjj.3652325fd252.js} +1 -1
- codex/static_root/assets/change-password-dialog-C-8Ixgjj.3652325fd252.js.br +0 -0
- codex/static_root/assets/change-password-dialog-C-8Ixgjj.3652325fd252.js.gz +0 -0
- codex/static_root/assets/{change-password-dialog-C8YONrId.js → change-password-dialog-C-8Ixgjj.js} +1 -1
- codex/static_root/assets/change-password-dialog-C-8Ixgjj.js.br +0 -0
- codex/static_root/assets/change-password-dialog-C-8Ixgjj.js.gz +0 -0
- codex/static_root/assets/{confirm-dialog-Clg-o2G-.e11d8efef3fb.js → confirm-dialog-C4NOgXW9.6a4b11a365a5.js} +1 -1
- codex/static_root/assets/confirm-dialog-C4NOgXW9.6a4b11a365a5.js.br +0 -0
- codex/static_root/assets/confirm-dialog-C4NOgXW9.6a4b11a365a5.js.gz +0 -0
- codex/static_root/assets/{confirm-dialog-Clg-o2G-.js → confirm-dialog-C4NOgXW9.js} +1 -1
- codex/static_root/assets/confirm-dialog-C4NOgXW9.js.br +0 -0
- codex/static_root/assets/confirm-dialog-C4NOgXW9.js.gz +0 -0
- codex/static_root/assets/{datetime-column-DejrPZxl.9fd36bef6fdd.js → datetime-column-Dbxk_0ER.e8e0fe9ebd90.js} +1 -1
- codex/static_root/assets/datetime-column-Dbxk_0ER.e8e0fe9ebd90.js.br +0 -0
- codex/static_root/assets/datetime-column-Dbxk_0ER.e8e0fe9ebd90.js.gz +0 -0
- codex/static_root/assets/{datetime-column-DejrPZxl.js → datetime-column-Dbxk_0ER.js} +1 -1
- codex/static_root/assets/datetime-column-Dbxk_0ER.js.br +0 -0
- codex/static_root/assets/datetime-column-Dbxk_0ER.js.gz +0 -0
- codex/static_root/assets/{filter-DHo57nTp.4d79a276d806.js → filter-DrwUDlyj.a6d17d3d7c6c.js} +1 -1
- codex/static_root/assets/filter-DrwUDlyj.a6d17d3d7c6c.js.br +0 -0
- codex/static_root/assets/filter-DrwUDlyj.a6d17d3d7c6c.js.gz +0 -0
- codex/static_root/assets/{filter-DHo57nTp.js → filter-DrwUDlyj.js} +1 -1
- codex/static_root/assets/filter-DrwUDlyj.js.br +0 -0
- codex/static_root/assets/filter-DrwUDlyj.js.gz +0 -0
- codex/static_root/assets/{flag-tab-CagMLGSE.125739911c45.js → flag-tab-CBkrOBs1.e505e2ec12e8.js} +1 -1
- codex/static_root/assets/flag-tab-CBkrOBs1.e505e2ec12e8.js.br +0 -0
- codex/static_root/assets/flag-tab-CBkrOBs1.e505e2ec12e8.js.gz +0 -0
- codex/static_root/assets/{flag-tab-CagMLGSE.js → flag-tab-CBkrOBs1.js} +1 -1
- codex/static_root/assets/flag-tab-CBkrOBs1.js.br +0 -0
- codex/static_root/assets/flag-tab-CBkrOBs1.js.gz +0 -0
- codex/static_root/assets/{group-tab-BTAjhv32.ac196780d0a9.js → group-tab-CmqOuOJM.eef499d163cb.js} +1 -1
- codex/static_root/assets/group-tab-CmqOuOJM.eef499d163cb.js.br +0 -0
- codex/static_root/assets/group-tab-CmqOuOJM.eef499d163cb.js.gz +0 -0
- codex/static_root/assets/{group-tab-BTAjhv32.js → group-tab-CmqOuOJM.js} +1 -1
- codex/static_root/assets/group-tab-CmqOuOJM.js.br +0 -0
- codex/static_root/assets/group-tab-CmqOuOJM.js.gz +0 -0
- codex/static_root/assets/{http-error-DaHEsKbT.55d56ce2b9b4.js → http-error-DQn3mkP_.39be7808902f.js} +1 -1
- codex/static_root/assets/http-error-DQn3mkP_.39be7808902f.js.br +0 -0
- codex/static_root/assets/http-error-DQn3mkP_.39be7808902f.js.gz +0 -0
- codex/static_root/assets/{http-error-DaHEsKbT.js → http-error-DQn3mkP_.js} +1 -1
- codex/static_root/assets/http-error-DQn3mkP_.js.br +0 -0
- codex/static_root/assets/http-error-DQn3mkP_.js.gz +0 -0
- codex/static_root/assets/{library-tab-Cud4639b.7f5a50aaabe8.js → library-tab-eRhFvDgA.2393d6de04e0.js} +1 -1
- codex/static_root/assets/library-tab-eRhFvDgA.2393d6de04e0.js.br +0 -0
- codex/static_root/assets/library-tab-eRhFvDgA.2393d6de04e0.js.gz +0 -0
- codex/static_root/assets/{library-tab-Cud4639b.js → library-tab-eRhFvDgA.js} +1 -1
- codex/static_root/assets/library-tab-eRhFvDgA.js.br +0 -0
- codex/static_root/assets/library-tab-eRhFvDgA.js.gz +0 -0
- codex/static_root/assets/{main-BnzL_Byv.js → main-BJYrxs0x.7cc1623ba51f.js} +3 -3
- codex/static_root/assets/main-BJYrxs0x.7cc1623ba51f.js.br +0 -0
- codex/static_root/assets/main-BJYrxs0x.7cc1623ba51f.js.gz +0 -0
- codex/static_root/assets/{main-BnzL_Byv.22f98ee91990.js → main-BJYrxs0x.js} +3 -3
- codex/static_root/assets/main-BJYrxs0x.js.br +0 -0
- codex/static_root/assets/main-BJYrxs0x.js.gz +0 -0
- codex/static_root/assets/{pagination-toolbar-Covpd-k8.b71277bd7a2d.js → pagination-toolbar-DcauC4Lw.dad9bb484e5d.js} +1 -1
- codex/static_root/assets/pagination-toolbar-DcauC4Lw.dad9bb484e5d.js.br +0 -0
- codex/static_root/assets/pagination-toolbar-DcauC4Lw.dad9bb484e5d.js.gz +0 -0
- codex/static_root/assets/{pagination-toolbar-Covpd-k8.js → pagination-toolbar-DcauC4Lw.js} +1 -1
- codex/static_root/assets/pagination-toolbar-DcauC4Lw.js.br +0 -0
- codex/static_root/assets/pagination-toolbar-DcauC4Lw.js.gz +0 -0
- codex/static_root/assets/{pdf-doc-CD2lnB32.1cef3bf498be.js → pdf-doc-D3W9I2V8.d51a33004ceb.js} +1 -1
- codex/static_root/assets/pdf-doc-D3W9I2V8.d51a33004ceb.js.br +0 -0
- codex/static_root/assets/pdf-doc-D3W9I2V8.d51a33004ceb.js.gz +0 -0
- codex/static_root/assets/{pdf-doc-CD2lnB32.js → pdf-doc-D3W9I2V8.js} +1 -1
- codex/static_root/assets/pdf-doc-D3W9I2V8.js.br +0 -0
- codex/static_root/assets/pdf-doc-D3W9I2V8.js.gz +0 -0
- codex/static_root/assets/{reader-L85y7IXD.6de58f450421.js → reader-DoS_6GK6.e925ddad76cb.js} +2 -2
- codex/static_root/assets/reader-DoS_6GK6.e925ddad76cb.js.br +0 -0
- codex/static_root/assets/reader-DoS_6GK6.e925ddad76cb.js.gz +0 -0
- codex/static_root/assets/{reader-L85y7IXD.js → reader-DoS_6GK6.js} +2 -2
- codex/static_root/assets/reader-DoS_6GK6.js.br +0 -0
- codex/static_root/assets/reader-DoS_6GK6.js.gz +0 -0
- codex/static_root/assets/{relation-chips-BpuqEeqM.1372d8a3e6cf.js → relation-chips-BoGgSbRW.70d218bd068a.js} +1 -1
- codex/static_root/assets/relation-chips-BoGgSbRW.70d218bd068a.js.br +0 -0
- codex/static_root/assets/relation-chips-BoGgSbRW.70d218bd068a.js.gz +0 -0
- codex/static_root/assets/{relation-chips-BpuqEeqM.js → relation-chips-BoGgSbRW.js} +1 -1
- codex/static_root/assets/relation-chips-BoGgSbRW.js.br +0 -0
- codex/static_root/assets/relation-chips-BoGgSbRW.js.gz +0 -0
- codex/static_root/assets/{settings-drawer-CLMcxfVd.js → settings-drawer-B433DlG2.8938c9836391.js} +2 -2
- codex/static_root/assets/settings-drawer-B433DlG2.8938c9836391.js.br +0 -0
- codex/static_root/assets/settings-drawer-B433DlG2.8938c9836391.js.gz +0 -0
- codex/static_root/assets/{settings-drawer-CLMcxfVd.b9619341ad48.js → settings-drawer-B433DlG2.js} +2 -2
- codex/static_root/assets/settings-drawer-B433DlG2.js.br +0 -0
- codex/static_root/assets/settings-drawer-B433DlG2.js.gz +0 -0
- codex/static_root/assets/{stats-tab-CQa3-W05.3d7c61418528.js → stats-tab-Cboz3cW4.ce1fe3f93f78.js} +1 -1
- codex/static_root/assets/stats-tab-Cboz3cW4.ce1fe3f93f78.js.br +0 -0
- codex/static_root/assets/stats-tab-Cboz3cW4.ce1fe3f93f78.js.gz +0 -0
- codex/static_root/assets/{stats-tab-CQa3-W05.js → stats-tab-Cboz3cW4.js} +1 -1
- codex/static_root/assets/stats-tab-Cboz3cW4.js.br +0 -0
- codex/static_root/assets/stats-tab-Cboz3cW4.js.gz +0 -0
- codex/static_root/assets/{task-tab-OPhBm-O2.8f31f4215114.js → task-tab-DJAAAC9L.3f66c1fbf32f.js} +1 -1
- codex/static_root/assets/task-tab-DJAAAC9L.3f66c1fbf32f.js.br +0 -0
- codex/static_root/assets/task-tab-DJAAAC9L.3f66c1fbf32f.js.gz +0 -0
- codex/static_root/assets/{task-tab-OPhBm-O2.js → task-tab-DJAAAC9L.js} +1 -1
- codex/static_root/assets/task-tab-DJAAAC9L.js.br +0 -0
- codex/static_root/assets/task-tab-DJAAAC9L.js.gz +0 -0
- codex/static_root/assets/{unauthorized-ClQNhRb5.32a8a84d1781.js → unauthorized-DFTKS7Wr.bb45c7944ddc.js} +1 -1
- codex/static_root/assets/unauthorized-DFTKS7Wr.bb45c7944ddc.js.br +0 -0
- codex/static_root/assets/unauthorized-DFTKS7Wr.bb45c7944ddc.js.gz +0 -0
- codex/static_root/assets/{unauthorized-ClQNhRb5.js → unauthorized-DFTKS7Wr.js} +1 -1
- codex/static_root/assets/unauthorized-DFTKS7Wr.js.br +0 -0
- codex/static_root/assets/unauthorized-DFTKS7Wr.js.gz +0 -0
- codex/static_root/assets/{user-tab-BKkxa2WL.50d83951c09f.js → user-tab-Dpe-epEv.662e0945ac0a.js} +1 -1
- codex/static_root/assets/user-tab-Dpe-epEv.662e0945ac0a.js.br +0 -0
- codex/static_root/assets/user-tab-Dpe-epEv.662e0945ac0a.js.gz +0 -0
- codex/static_root/assets/{user-tab-BKkxa2WL.js → user-tab-Dpe-epEv.js} +1 -1
- codex/static_root/assets/user-tab-Dpe-epEv.js.br +0 -0
- codex/static_root/assets/user-tab-Dpe-epEv.js.gz +0 -0
- codex/static_root/{manifest.c5fa10a7dfdc.json → manifest.2f8dc912af05.json} +227 -227
- codex/static_root/manifest.2f8dc912af05.json.br +0 -0
- codex/static_root/manifest.2f8dc912af05.json.gz +0 -0
- codex/static_root/manifest.json +227 -227
- codex/static_root/manifest.json.br +0 -0
- codex/static_root/manifest.json.gz +0 -0
- codex/static_root/staticfiles.json +1 -1
- codex/views/browser/browser.py +0 -1
- codex/views/browser/browser_annotations.py +1 -0
- {codex-1.6.0a0.dist-info → codex-1.6.0a2.dist-info}/METADATA +1 -1
- {codex-1.6.0a0.dist-info → codex-1.6.0a2.dist-info}/RECORD +215 -215
- codex/static_root/assets/VCheckbox-Aq_ImMNC.da711f8b6a15.js.br +0 -0
- codex/static_root/assets/VCheckbox-Aq_ImMNC.da711f8b6a15.js.gz +0 -0
- codex/static_root/assets/VCheckbox-Aq_ImMNC.js.br +0 -0
- codex/static_root/assets/VCheckbox-Aq_ImMNC.js.gz +0 -0
- codex/static_root/assets/VCheckboxBtn-D3izCBa7.54f4d7f48bbf.js.br +0 -0
- codex/static_root/assets/VCheckboxBtn-D3izCBa7.54f4d7f48bbf.js.gz +0 -0
- codex/static_root/assets/VCheckboxBtn-D3izCBa7.js.br +0 -0
- codex/static_root/assets/VCheckboxBtn-D3izCBa7.js.gz +0 -0
- codex/static_root/assets/VCombobox-DLL1EsSN.55622a0cd4ab.js.br +0 -0
- codex/static_root/assets/VCombobox-DLL1EsSN.55622a0cd4ab.js.gz +0 -0
- codex/static_root/assets/VCombobox-DLL1EsSN.js.br +0 -0
- codex/static_root/assets/VCombobox-DLL1EsSN.js.gz +0 -0
- codex/static_root/assets/VDialog-yDKzaGEj.e8dba78ac8db.js.br +0 -0
- codex/static_root/assets/VDialog-yDKzaGEj.e8dba78ac8db.js.gz +0 -0
- codex/static_root/assets/VDialog-yDKzaGEj.js.br +0 -0
- codex/static_root/assets/VDialog-yDKzaGEj.js.gz +0 -0
- codex/static_root/assets/VExpansionPanels-Cpo8QLLq.d733b7906e00.js.br +0 -0
- codex/static_root/assets/VExpansionPanels-Cpo8QLLq.d733b7906e00.js.gz +0 -0
- codex/static_root/assets/VExpansionPanels-Cpo8QLLq.js.br +0 -0
- codex/static_root/assets/VExpansionPanels-Cpo8QLLq.js.gz +0 -0
- codex/static_root/assets/VRadioGroup-DEezv8bL.4a609e74e507.js.br +0 -0
- codex/static_root/assets/VRadioGroup-DEezv8bL.4a609e74e507.js.gz +0 -0
- codex/static_root/assets/VRadioGroup-DEezv8bL.js.br +0 -0
- codex/static_root/assets/VRadioGroup-DEezv8bL.js.gz +0 -0
- codex/static_root/assets/VSelect-BKXcujPy.8871035f5634.js.br +0 -0
- codex/static_root/assets/VSelect-BKXcujPy.8871035f5634.js.gz +0 -0
- codex/static_root/assets/VSelect-BKXcujPy.js.br +0 -0
- codex/static_root/assets/VSelect-BKXcujPy.js.gz +0 -0
- codex/static_root/assets/VSelectionControl-DJAPiluk.402a7ad84a8e.js.br +0 -0
- codex/static_root/assets/VSelectionControl-DJAPiluk.402a7ad84a8e.js.gz +0 -0
- codex/static_root/assets/VSelectionControl-DJAPiluk.js.br +0 -0
- codex/static_root/assets/VSelectionControl-DJAPiluk.js.gz +0 -0
- codex/static_root/assets/VSlideGroup-C-kO93Va.8c9e31362dc5.js.br +0 -0
- codex/static_root/assets/VSlideGroup-C-kO93Va.8c9e31362dc5.js.gz +0 -0
- codex/static_root/assets/VSlideGroup-C-kO93Va.js.br +0 -0
- codex/static_root/assets/VSlideGroup-C-kO93Va.js.gz +0 -0
- codex/static_root/assets/VTable-9vsIQObs.0a135029e924.js.br +0 -0
- codex/static_root/assets/VTable-9vsIQObs.0a135029e924.js.gz +0 -0
- codex/static_root/assets/VTable-9vsIQObs.js.br +0 -0
- codex/static_root/assets/VTable-9vsIQObs.js.gz +0 -0
- codex/static_root/assets/VTextField-DI9HAmWh.0de01739bbf9.js.br +0 -0
- codex/static_root/assets/VTextField-DI9HAmWh.0de01739bbf9.js.gz +0 -0
- codex/static_root/assets/VTextField-DI9HAmWh.js.br +0 -0
- codex/static_root/assets/VTextField-DI9HAmWh.js.gz +0 -0
- codex/static_root/assets/VWindowItem-DpnYkF3y.017d99c27b7b.js.br +0 -0
- codex/static_root/assets/VWindowItem-DpnYkF3y.017d99c27b7b.js.gz +0 -0
- codex/static_root/assets/VWindowItem-DpnYkF3y.js.br +0 -0
- codex/static_root/assets/VWindowItem-DpnYkF3y.js.gz +0 -0
- codex/static_root/assets/admin-2BTkfSQA.e7ef29cb106d.js.br +0 -0
- codex/static_root/assets/admin-2BTkfSQA.e7ef29cb106d.js.gz +0 -0
- codex/static_root/assets/admin-2BTkfSQA.js.br +0 -0
- codex/static_root/assets/admin-2BTkfSQA.js.gz +0 -0
- codex/static_root/assets/admin-drawer-panel-mtdde7vY.c172dbae9463.js.br +0 -0
- codex/static_root/assets/admin-drawer-panel-mtdde7vY.c172dbae9463.js.gz +0 -0
- codex/static_root/assets/admin-drawer-panel-mtdde7vY.js.br +0 -0
- codex/static_root/assets/admin-drawer-panel-mtdde7vY.js.gz +0 -0
- codex/static_root/assets/browser-BA-AwUn-.23bb4b2f6a29.js.br +0 -0
- codex/static_root/assets/browser-BA-AwUn-.23bb4b2f6a29.js.gz +0 -0
- codex/static_root/assets/browser-BA-AwUn-.js.br +0 -0
- codex/static_root/assets/browser-BA-AwUn-.js.gz +0 -0
- codex/static_root/assets/change-password-dialog-C8YONrId.49aa6df6a91d.js.br +0 -0
- codex/static_root/assets/change-password-dialog-C8YONrId.49aa6df6a91d.js.gz +0 -0
- codex/static_root/assets/change-password-dialog-C8YONrId.js.br +0 -0
- codex/static_root/assets/change-password-dialog-C8YONrId.js.gz +0 -0
- codex/static_root/assets/confirm-dialog-Clg-o2G-.e11d8efef3fb.js.br +0 -0
- codex/static_root/assets/confirm-dialog-Clg-o2G-.e11d8efef3fb.js.gz +0 -0
- codex/static_root/assets/confirm-dialog-Clg-o2G-.js.br +0 -0
- codex/static_root/assets/confirm-dialog-Clg-o2G-.js.gz +0 -0
- codex/static_root/assets/datetime-column-DejrPZxl.9fd36bef6fdd.js.br +0 -0
- codex/static_root/assets/datetime-column-DejrPZxl.9fd36bef6fdd.js.gz +0 -0
- codex/static_root/assets/datetime-column-DejrPZxl.js.br +0 -0
- codex/static_root/assets/datetime-column-DejrPZxl.js.gz +0 -0
- codex/static_root/assets/filter-DHo57nTp.4d79a276d806.js.br +0 -0
- codex/static_root/assets/filter-DHo57nTp.4d79a276d806.js.gz +0 -0
- codex/static_root/assets/filter-DHo57nTp.js.br +0 -0
- codex/static_root/assets/filter-DHo57nTp.js.gz +0 -0
- codex/static_root/assets/flag-tab-CagMLGSE.125739911c45.js.br +0 -0
- codex/static_root/assets/flag-tab-CagMLGSE.125739911c45.js.gz +0 -0
- codex/static_root/assets/flag-tab-CagMLGSE.js.br +0 -0
- codex/static_root/assets/flag-tab-CagMLGSE.js.gz +0 -0
- codex/static_root/assets/group-tab-BTAjhv32.ac196780d0a9.js.br +0 -0
- codex/static_root/assets/group-tab-BTAjhv32.ac196780d0a9.js.gz +0 -0
- codex/static_root/assets/group-tab-BTAjhv32.js.br +0 -0
- codex/static_root/assets/group-tab-BTAjhv32.js.gz +0 -0
- codex/static_root/assets/http-error-DaHEsKbT.55d56ce2b9b4.js.br +0 -0
- codex/static_root/assets/http-error-DaHEsKbT.55d56ce2b9b4.js.gz +0 -0
- codex/static_root/assets/http-error-DaHEsKbT.js.br +0 -0
- codex/static_root/assets/http-error-DaHEsKbT.js.gz +0 -0
- codex/static_root/assets/library-tab-Cud4639b.7f5a50aaabe8.js.br +0 -0
- codex/static_root/assets/library-tab-Cud4639b.7f5a50aaabe8.js.gz +0 -0
- codex/static_root/assets/library-tab-Cud4639b.js.br +0 -0
- codex/static_root/assets/library-tab-Cud4639b.js.gz +0 -0
- codex/static_root/assets/main-BnzL_Byv.22f98ee91990.js.br +0 -0
- codex/static_root/assets/main-BnzL_Byv.22f98ee91990.js.gz +0 -0
- codex/static_root/assets/main-BnzL_Byv.js.br +0 -0
- codex/static_root/assets/main-BnzL_Byv.js.gz +0 -0
- codex/static_root/assets/pagination-toolbar-Covpd-k8.b71277bd7a2d.js.br +0 -0
- codex/static_root/assets/pagination-toolbar-Covpd-k8.b71277bd7a2d.js.gz +0 -0
- codex/static_root/assets/pagination-toolbar-Covpd-k8.js.br +0 -0
- codex/static_root/assets/pagination-toolbar-Covpd-k8.js.gz +0 -0
- codex/static_root/assets/pdf-doc-CD2lnB32.1cef3bf498be.js.br +0 -0
- codex/static_root/assets/pdf-doc-CD2lnB32.1cef3bf498be.js.gz +0 -0
- codex/static_root/assets/pdf-doc-CD2lnB32.js.br +0 -0
- codex/static_root/assets/pdf-doc-CD2lnB32.js.gz +0 -0
- codex/static_root/assets/reader-L85y7IXD.6de58f450421.js.br +0 -0
- codex/static_root/assets/reader-L85y7IXD.6de58f450421.js.gz +0 -0
- codex/static_root/assets/reader-L85y7IXD.js.br +0 -0
- codex/static_root/assets/reader-L85y7IXD.js.gz +0 -0
- codex/static_root/assets/relation-chips-BpuqEeqM.1372d8a3e6cf.js.br +0 -0
- codex/static_root/assets/relation-chips-BpuqEeqM.1372d8a3e6cf.js.gz +0 -0
- codex/static_root/assets/relation-chips-BpuqEeqM.js.br +0 -0
- codex/static_root/assets/relation-chips-BpuqEeqM.js.gz +0 -0
- codex/static_root/assets/settings-drawer-CLMcxfVd.b9619341ad48.js.br +0 -0
- codex/static_root/assets/settings-drawer-CLMcxfVd.b9619341ad48.js.gz +0 -0
- codex/static_root/assets/settings-drawer-CLMcxfVd.js.br +0 -0
- codex/static_root/assets/settings-drawer-CLMcxfVd.js.gz +0 -0
- codex/static_root/assets/stats-tab-CQa3-W05.3d7c61418528.js.br +0 -0
- codex/static_root/assets/stats-tab-CQa3-W05.3d7c61418528.js.gz +0 -0
- codex/static_root/assets/stats-tab-CQa3-W05.js.br +0 -0
- codex/static_root/assets/stats-tab-CQa3-W05.js.gz +0 -0
- codex/static_root/assets/task-tab-OPhBm-O2.8f31f4215114.js.br +0 -0
- codex/static_root/assets/task-tab-OPhBm-O2.8f31f4215114.js.gz +0 -0
- codex/static_root/assets/task-tab-OPhBm-O2.js.br +0 -0
- codex/static_root/assets/task-tab-OPhBm-O2.js.gz +0 -0
- codex/static_root/assets/unauthorized-ClQNhRb5.32a8a84d1781.js.br +0 -0
- codex/static_root/assets/unauthorized-ClQNhRb5.32a8a84d1781.js.gz +0 -0
- codex/static_root/assets/unauthorized-ClQNhRb5.js.br +0 -0
- codex/static_root/assets/unauthorized-ClQNhRb5.js.gz +0 -0
- codex/static_root/assets/user-tab-BKkxa2WL.50d83951c09f.js.br +0 -0
- codex/static_root/assets/user-tab-BKkxa2WL.50d83951c09f.js.gz +0 -0
- codex/static_root/assets/user-tab-BKkxa2WL.js.br +0 -0
- codex/static_root/assets/user-tab-BKkxa2WL.js.gz +0 -0
- codex/static_root/manifest.c5fa10a7dfdc.json.br +0 -0
- codex/static_root/manifest.c5fa10a7dfdc.json.gz +0 -0
- {codex-1.6.0a0.dist-info → codex-1.6.0a2.dist-info}/LICENSE +0 -0
- {codex-1.6.0a0.dist-info → codex-1.6.0a2.dist-info}/WHEEL +0 -0
- {codex-1.6.0a0.dist-info → codex-1.6.0a2.dist-info}/entry_points.txt +0 -0
|
@@ -18,7 +18,7 @@
|
|
|
18
18
|
* pinia v2.1.7
|
|
19
19
|
* (c) 2023 Eduardo San Martin Morote
|
|
20
20
|
* @license MIT
|
|
21
|
-
*/let Vc;const vs=e=>Vc=e,Pc=Symbol();function mi(e){return e&&typeof e=="object"&&Object.prototype.toString.call(e)==="[object Object]"&&typeof e.toJSON!="function"}var Kn;(function(e){e.direct="direct",e.patchObject="patch object",e.patchFunction="patch function"})(Kn||(Kn={}));function Wv(){const e=ki(!0),t=e.run(()=>oe({}));let n=[],r=[];const s=ji({install(i){vs(s),s._a=i,i.provide(Pc,s),i.config.globalProperties.$pinia=s,r.forEach(o=>n.push(o)),r=[]},use(i){return!this._a&&!N1?r.push(i):n.push(i),this},_p:n,_a:null,_e:e,_s:new Map,state:t});return s}const Oc=()=>{};function Ca(e,t,n,r=Oc){e.push(t);const s=()=>{const i=e.indexOf(t);i>-1&&(e.splice(i,1),r())};return!n&&_l()&&Mi(s),s}function hn(e,...t){e.slice().forEach(n=>{n(...t)})}const $1=e=>e();function gi(e,t){e instanceof Map&&t instanceof Map&&t.forEach((n,r)=>e.set(r,n)),e instanceof Set&&t instanceof Set&&t.forEach(e.add,e);for(const n in t){if(!t.hasOwnProperty(n))continue;const r=t[n],s=e[n];mi(s)&&mi(r)&&e.hasOwnProperty(n)&&!ue(r)&&!nn(r)?e[n]=gi(s,r):e[n]=r}return e}const D1=Symbol();function j1(e){return!mi(e)||!e.hasOwnProperty(D1)}const{assign:Vt}=Object;function U1(e){return!!(ue(e)&&e.effect)}function z1(e,t,n,r){const{state:s,actions:i,getters:o}=t,a=n.state.value[e];let l;function c(){a||(n.state.value[e]=s?s():{});const f=zi(n.state.value[e]);return Vt(f,i,Object.keys(o||{}).reduce((u,d)=>(u[d]=ji(L(()=>{vs(n);const h=n._s.get(e);return o[d].call(h,h)})),u),{}))}return l=Rc(e,c,t,n,r,!0),l}function Rc(e,t,n={},r,s,i){let o;const a=Vt({actions:{}},n),l={deep:!0};let c,f,u=[],d=[],h;const m=r.state.value[e];!i&&!m&&(r.state.value[e]={}),oe({});let g;function b(T){let I;c=f=!1,typeof T=="function"?(T(r.state.value[e]),I={type:Kn.patchFunction,storeId:e,events:h}):(gi(r.state.value[e],T),I={type:Kn.patchObject,payload:T,storeId:e,events:h});const H=g=Symbol();ur().then(()=>{g===H&&(c=!0)}),f=!0,hn(u,I,r.state.value[e])}const V=i?function(){const{state:I}=n,H=I?I():{};this.$patch(j=>{Vt(j,H)})}:Oc;function M(){o.stop(),u=[],d=[],r._s.delete(e)}function F(T,I){return function(){vs(r);const H=Array.from(arguments),j=[],S=[];function D(J){j.push(J)}function Y(J){S.push(J)}hn(d,{args:H,name:T,store:x,after:D,onError:Y});let de;try{de=I.apply(this&&this.$id===e?this:x,H)}catch(J){throw hn(S,J),J}return de instanceof Promise?de.then(J=>(hn(j,J),J)).catch(J=>(hn(S,J),Promise.reject(J))):(hn(j,de),de)}}const $={_p:r,$id:e,$onAction:Ca.bind(null,d),$patch:b,$reset:V,$subscribe(T,I={}){const H=Ca(u,T,I.detached,()=>j()),j=o.run(()=>Le(()=>r.state.value[e],S=>{(I.flush==="sync"?f:c)&&T({storeId:e,type:Kn.direct,events:h},S)},Vt({},l,I)));return H},$dispose:M},x=Vn($);r._s.set(e,x);const U=(r._a&&r._a.runWithContext||$1)(()=>r._e.run(()=>(o=ki()).run(t)));for(const T in U){const I=U[T];if(ue(I)&&!U1(I)||nn(I))i||(m&&j1(I)&&(ue(I)?I.value=m[T]:gi(I,m[T])),r.state.value[e][T]=I);else if(typeof I=="function"){const H=F(T,I);U[T]=H,a.actions[T]=I}}return Vt(x,U),Vt(q(x),U),Object.defineProperty(x,"$state",{get:()=>r.state.value[e],set:T=>{b(I=>{Vt(I,T)})}}),r._p.forEach(T=>{Vt(x,o.run(()=>T({store:x,app:r._a,pinia:r,options:a})))}),m&&i&&n.hydrate&&n.hydrate(x.$state,m),c=!0,f=!0,x}function io(e,t,n){let r,s;const i=typeof t=="function";typeof e=="string"?(r=e,s=i?n:t):(s=e,r=e.id);function o(a,l){const c=Id();return a=a||(c?Pe(Pc,null):null),a&&vs(a),a=Vc,a._s.has(r)||(i?Rc(r,t,s,a):z1(r,s,a)),a._s.get(r)}return o.$id=r,o}function ps(e,t){return Array.isArray(t)?t.reduce((n,r)=>(n[r]=function(){return e(this.$pinia)[r]},n),{}):Object.keys(t).reduce((n,r)=>(n[r]=function(){const s=e(this.$pinia),i=t[r];return typeof i=="function"?i.call(this,s):s[i]},n),{})}const W1=ps;function oo(e,t){return Array.isArray(t)?t.reduce((n,r)=>(n[r]=function(...s){return e(this.$pinia)[r](...s)},n),{}):Object.keys(t).reduce((n,r)=>(n[r]=function(...s){return e(this.$pinia)[t[r]](...s)},n),{})}function Kv(e,t){return Array.isArray(t)?t.reduce((n,r)=>(n[r]={get(){return e(this.$pinia)[r]},set(s){return e(this.$pinia)[r]=s}},n),{}):Object.keys(t).reduce((n,r)=>(n[r]={get(){return e(this.$pinia)[t[r]]},set(s){return e(this.$pinia)[t[r]]=s}},n),{})}const Ic=["detail","oldPassword","password","username","passwordConfirm","path"];Object.freeze(Ic);const K1=e=>{let t=[];if(e&&e.response&&e.response.data){let n=e.response.data;for(const r of Ic)if(r in n){n=n[r];break}t=Array.isArray(n)?n.flat():[n]}else console.warn("Unable to parse error",e);return t.length===0&&(t=["Unknown error"]),t},st=io("common",{state:()=>({form:{errors:[],success:""},versions:{installed:"1.6.0-a0",latest:void 0},timestamp:Date.now(),isSettingsDrawerOpen:!1,opdsURLs:void 0}),getters:{isMobile:function(){return window.orientation!==void 0||navigator.userAgent.includes("IEMobile")}},actions:{async loadVersions(){await Js.getVersions(this.timestamp).then(e=>{const t=e.data;return this.versions=t}).catch(console.error)},downloadIOSPWAFix(e,t){Js.downloadIOSPWAFix(e,t)},setErrors(e){const t=K1(e);this.$patch(n=>{n.form.errors=t,n.form.success=""})},setSuccess(e){this.$patch(t=>{t.form.errors=[],t.form.success=e})},clearErrors(){this.$patch(e=>{e.form.errors=[],e.form.success=""})},setTimestamp(){this.timestamp=Date.now()},setSettingsDrawerOpen(e){this.isSettingsDrawerOpen=e},async loadOPDSURLs(){this.opdsURLs||await Js.getOPDSURLs().then(e=>this.opdsURLs=Object.freeze({...e.data})).catch(console.error)}}});function kc(e,t){return function(){return e.apply(t,arguments)}}const{toString:G1}=Object.prototype,{getPrototypeOf:ao}=Object,ys=(e=>t=>{const n=G1.call(t);return e[n]||(e[n]=n.slice(8,-1).toLowerCase())})(Object.create(null)),ht=e=>(e=e.toLowerCase(),t=>ys(t)===e),bs=e=>t=>typeof t===e,{isArray:Rn}=Array,rr=bs("undefined");function q1(e){return e!==null&&!rr(e)&&e.constructor!==null&&!rr(e.constructor)&&qe(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}const Mc=ht("ArrayBuffer");function Z1(e){let t;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?t=ArrayBuffer.isView(e):t=e&&e.buffer&&Mc(e.buffer),t}const J1=bs("string"),qe=bs("function"),Hc=bs("number"),Cs=e=>e!==null&&typeof e=="object",X1=e=>e===!0||e===!1,$r=e=>{if(ys(e)!=="object")return!1;const t=ao(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)},Y1=ht("Date"),Q1=ht("File"),eh=ht("Blob"),th=ht("FileList"),nh=e=>Cs(e)&&qe(e.pipe),rh=e=>{let t;return e&&(typeof FormData=="function"&&e instanceof FormData||qe(e.append)&&((t=ys(e))==="formdata"||t==="object"&&qe(e.toString)&&e.toString()==="[object FormData]"))},sh=ht("URLSearchParams"),ih=e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function vr(e,t,{allOwnKeys:n=!1}={}){if(e===null||typeof e>"u")return;let r,s;if(typeof e!="object"&&(e=[e]),Rn(e))for(r=0,s=e.length;r<s;r++)t.call(null,e[r],r,e);else{const i=n?Object.getOwnPropertyNames(e):Object.keys(e),o=i.length;let a;for(r=0;r<o;r++)a=i[r],t.call(null,e[a],a,e)}}function Fc(e,t){t=t.toLowerCase();const n=Object.keys(e);let r=n.length,s;for(;r-- >0;)if(s=n[r],t===s.toLowerCase())return s;return null}const Bc=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global,Nc=e=>!rr(e)&&e!==Bc;function vi(){const{caseless:e}=Nc(this)&&this||{},t={},n=(r,s)=>{const i=e&&Fc(t,s)||s;$r(t[i])&&$r(r)?t[i]=vi(t[i],r):$r(r)?t[i]=vi({},r):Rn(r)?t[i]=r.slice():t[i]=r};for(let r=0,s=arguments.length;r<s;r++)arguments[r]&&vr(arguments[r],n);return t}const oh=(e,t,n,{allOwnKeys:r}={})=>(vr(t,(s,i)=>{n&&qe(s)?e[i]=kc(s,n):e[i]=s},{allOwnKeys:r}),e),ah=e=>(e.charCodeAt(0)===65279&&(e=e.slice(1)),e),lh=(e,t,n,r)=>{e.prototype=Object.create(t.prototype,r),e.prototype.constructor=e,Object.defineProperty(e,"super",{value:t.prototype}),n&&Object.assign(e.prototype,n)},ch=(e,t,n,r)=>{let s,i,o;const a={};if(t=t||{},e==null)return t;do{for(s=Object.getOwnPropertyNames(e),i=s.length;i-- >0;)o=s[i],(!r||r(o,e,t))&&!a[o]&&(t[o]=e[o],a[o]=!0);e=n!==!1&&ao(e)}while(e&&(!n||n(e,t))&&e!==Object.prototype);return t},uh=(e,t,n)=>{e=String(e),(n===void 0||n>e.length)&&(n=e.length),n-=t.length;const r=e.indexOf(t,n);return r!==-1&&r===n},fh=e=>{if(!e)return null;if(Rn(e))return e;let t=e.length;if(!Hc(t))return null;const n=new Array(t);for(;t-- >0;)n[t]=e[t];return n},dh=(e=>t=>e&&t instanceof e)(typeof Uint8Array<"u"&&ao(Uint8Array)),hh=(e,t)=>{const r=(e&&e[Symbol.iterator]).call(e);let s;for(;(s=r.next())&&!s.done;){const i=s.value;t.call(e,i[0],i[1])}},mh=(e,t)=>{let n;const r=[];for(;(n=e.exec(t))!==null;)r.push(n);return r},gh=ht("HTMLFormElement"),vh=e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(n,r,s){return r.toUpperCase()+s}),Sa=(({hasOwnProperty:e})=>(t,n)=>e.call(t,n))(Object.prototype),ph=ht("RegExp"),$c=(e,t)=>{const n=Object.getOwnPropertyDescriptors(e),r={};vr(n,(s,i)=>{let o;(o=t(s,i,e))!==!1&&(r[i]=o||s)}),Object.defineProperties(e,r)},yh=e=>{$c(e,(t,n)=>{if(qe(e)&&["arguments","caller","callee"].indexOf(n)!==-1)return!1;const r=e[n];if(qe(r)){if(t.enumerable=!1,"writable"in t){t.writable=!1;return}t.set||(t.set=()=>{throw Error("Can not rewrite read-only method '"+n+"'")})}})},bh=(e,t)=>{const n={},r=s=>{s.forEach(i=>{n[i]=!0})};return Rn(e)?r(e):r(String(e).split(t)),n},Ch=()=>{},Sh=(e,t)=>(e=+e,Number.isFinite(e)?e:t),Ks="abcdefghijklmnopqrstuvwxyz",_a="0123456789",Dc={DIGIT:_a,ALPHA:Ks,ALPHA_DIGIT:Ks+Ks.toUpperCase()+_a},_h=(e=16,t=Dc.ALPHA_DIGIT)=>{let n="";const{length:r}=t;for(;e--;)n+=t[Math.random()*r|0];return n};function wh(e){return!!(e&&qe(e.append)&&e[Symbol.toStringTag]==="FormData"&&e[Symbol.iterator])}const Ah=e=>{const t=new Array(10),n=(r,s)=>{if(Cs(r)){if(t.indexOf(r)>=0)return;if(!("toJSON"in r)){t[s]=r;const i=Rn(r)?[]:{};return vr(r,(o,a)=>{const l=n(o,s+1);!rr(l)&&(i[a]=l)}),t[s]=void 0,i}}return r};return n(e,0)},Lh=ht("AsyncFunction"),Eh=e=>e&&(Cs(e)||qe(e))&&qe(e.then)&&qe(e.catch),_={isArray:Rn,isArrayBuffer:Mc,isBuffer:q1,isFormData:rh,isArrayBufferView:Z1,isString:J1,isNumber:Hc,isBoolean:X1,isObject:Cs,isPlainObject:$r,isUndefined:rr,isDate:Y1,isFile:Q1,isBlob:eh,isRegExp:ph,isFunction:qe,isStream:nh,isURLSearchParams:sh,isTypedArray:dh,isFileList:th,forEach:vr,merge:vi,extend:oh,trim:ih,stripBOM:ah,inherits:lh,toFlatObject:ch,kindOf:ys,kindOfTest:ht,endsWith:uh,toArray:fh,forEachEntry:hh,matchAll:mh,isHTMLForm:gh,hasOwnProperty:Sa,hasOwnProp:Sa,reduceDescriptors:$c,freezeMethods:yh,toObjectSet:bh,toCamelCase:vh,noop:Ch,toFiniteNumber:Sh,findKey:Fc,global:Bc,isContextDefined:Nc,ALPHABET:Dc,generateString:_h,isSpecCompliantForm:wh,toJSONObject:Ah,isAsyncFn:Lh,isThenable:Eh};function ee(e,t,n,r,s){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack,this.message=e,this.name="AxiosError",t&&(this.code=t),n&&(this.config=n),r&&(this.request=r),s&&(this.response=s)}_.inherits(ee,Error,{toJSON:function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:_.toJSONObject(this.config),code:this.code,status:this.response&&this.response.status?this.response.status:null}}});const jc=ee.prototype,Uc={};["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED","ERR_NOT_SUPPORT","ERR_INVALID_URL"].forEach(e=>{Uc[e]={value:e}});Object.defineProperties(ee,Uc);Object.defineProperty(jc,"isAxiosError",{value:!0});ee.from=(e,t,n,r,s,i)=>{const o=Object.create(jc);return _.toFlatObject(e,o,function(l){return l!==Error.prototype},a=>a!=="isAxiosError"),ee.call(o,e.message,t,n,r,s),o.cause=e,o.name=e.name,i&&Object.assign(o,i),o};const xh=null;function pi(e){return _.isPlainObject(e)||_.isArray(e)}function zc(e){return _.endsWith(e,"[]")?e.slice(0,-2):e}function wa(e,t,n){return e?e.concat(t).map(function(s,i){return s=zc(s),!n&&i?"["+s+"]":s}).join(n?".":""):t}function Th(e){return _.isArray(e)&&!e.some(pi)}const Vh=_.toFlatObject(_,{},null,function(t){return/^is[A-Z]/.test(t)});function Ss(e,t,n){if(!_.isObject(e))throw new TypeError("target must be an object");t=t||new FormData,n=_.toFlatObject(n,{metaTokens:!0,dots:!1,indexes:!1},!1,function(g,b){return!_.isUndefined(b[g])});const r=n.metaTokens,s=n.visitor||f,i=n.dots,o=n.indexes,l=(n.Blob||typeof Blob<"u"&&Blob)&&_.isSpecCompliantForm(t);if(!_.isFunction(s))throw new TypeError("visitor must be a function");function c(m){if(m===null)return"";if(_.isDate(m))return m.toISOString();if(!l&&_.isBlob(m))throw new ee("Blob is not supported. Use a Buffer instead.");return _.isArrayBuffer(m)||_.isTypedArray(m)?l&&typeof Blob=="function"?new Blob([m]):Buffer.from(m):m}function f(m,g,b){let V=m;if(m&&!b&&typeof m=="object"){if(_.endsWith(g,"{}"))g=r?g:g.slice(0,-2),m=JSON.stringify(m);else if(_.isArray(m)&&Th(m)||(_.isFileList(m)||_.endsWith(g,"[]"))&&(V=_.toArray(m)))return g=zc(g),V.forEach(function(F,$){!(_.isUndefined(F)||F===null)&&t.append(o===!0?wa([g],$,i):o===null?g:g+"[]",c(F))}),!1}return pi(m)?!0:(t.append(wa(b,g,i),c(m)),!1)}const u=[],d=Object.assign(Vh,{defaultVisitor:f,convertValue:c,isVisitable:pi});function h(m,g){if(!_.isUndefined(m)){if(u.indexOf(m)!==-1)throw Error("Circular reference detected in "+g.join("."));u.push(m),_.forEach(m,function(V,M){(!(_.isUndefined(V)||V===null)&&s.call(t,V,_.isString(M)?M.trim():M,g,d))===!0&&h(V,g?g.concat(M):[M])}),u.pop()}}if(!_.isObject(e))throw new TypeError("data must be an object");return h(e),t}function Aa(e){const t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,function(r){return t[r]})}function lo(e,t){this._pairs=[],e&&Ss(e,this,t)}const Wc=lo.prototype;Wc.append=function(t,n){this._pairs.push([t,n])};Wc.toString=function(t){const n=t?function(r){return t.call(this,r,Aa)}:Aa;return this._pairs.map(function(s){return n(s[0])+"="+n(s[1])},"").join("&")};function Ph(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function Kc(e,t,n){if(!t)return e;const r=n&&n.encode||Ph,s=n&&n.serialize;let i;if(s?i=s(t,n):i=_.isURLSearchParams(t)?t.toString():new lo(t,n).toString(r),i){const o=e.indexOf("#");o!==-1&&(e=e.slice(0,o)),e+=(e.indexOf("?")===-1?"?":"&")+i}return e}class La{constructor(){this.handlers=[]}use(t,n,r){return this.handlers.push({fulfilled:t,rejected:n,synchronous:r?r.synchronous:!1,runWhen:r?r.runWhen:null}),this.handlers.length-1}eject(t){this.handlers[t]&&(this.handlers[t]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(t){_.forEach(this.handlers,function(r){r!==null&&t(r)})}}const Gc={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},Oh=typeof URLSearchParams<"u"?URLSearchParams:lo,Rh=typeof FormData<"u"?FormData:null,Ih=typeof Blob<"u"?Blob:null,kh={isBrowser:!0,classes:{URLSearchParams:Oh,FormData:Rh,Blob:Ih},protocols:["http","https","file","blob","url","data"]},qc=typeof window<"u"&&typeof document<"u",Mh=(e=>qc&&["ReactNative","NativeScript","NS"].indexOf(e)<0)(typeof navigator<"u"&&navigator.product),Hh=typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function",Fh=Object.freeze(Object.defineProperty({__proto__:null,hasBrowserEnv:qc,hasStandardBrowserEnv:Mh,hasStandardBrowserWebWorkerEnv:Hh},Symbol.toStringTag,{value:"Module"})),lt={...Fh,...kh};function Bh(e,t){return Ss(e,new lt.classes.URLSearchParams,Object.assign({visitor:function(n,r,s,i){return lt.isNode&&_.isBuffer(n)?(this.append(r,n.toString("base64")),!1):i.defaultVisitor.apply(this,arguments)}},t))}function Nh(e){return _.matchAll(/\w+|\[(\w*)]/g,e).map(t=>t[0]==="[]"?"":t[1]||t[0])}function $h(e){const t={},n=Object.keys(e);let r;const s=n.length;let i;for(r=0;r<s;r++)i=n[r],t[i]=e[i];return t}function Zc(e){function t(n,r,s,i){let o=n[i++];if(o==="__proto__")return!0;const a=Number.isFinite(+o),l=i>=n.length;return o=!o&&_.isArray(s)?s.length:o,l?(_.hasOwnProp(s,o)?s[o]=[s[o],r]:s[o]=r,!a):((!s[o]||!_.isObject(s[o]))&&(s[o]=[]),t(n,r,s[o],i)&&_.isArray(s[o])&&(s[o]=$h(s[o])),!a)}if(_.isFormData(e)&&_.isFunction(e.entries)){const n={};return _.forEachEntry(e,(r,s)=>{t(Nh(r),s,n,0)}),n}return null}function Dh(e,t,n){if(_.isString(e))try{return(t||JSON.parse)(e),_.trim(e)}catch(r){if(r.name!=="SyntaxError")throw r}return(n||JSON.stringify)(e)}const pr={transitional:Gc,adapter:["xhr","http"],transformRequest:[function(t,n){const r=n.getContentType()||"",s=r.indexOf("application/json")>-1,i=_.isObject(t);if(i&&_.isHTMLForm(t)&&(t=new FormData(t)),_.isFormData(t))return s?JSON.stringify(Zc(t)):t;if(_.isArrayBuffer(t)||_.isBuffer(t)||_.isStream(t)||_.isFile(t)||_.isBlob(t))return t;if(_.isArrayBufferView(t))return t.buffer;if(_.isURLSearchParams(t))return n.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),t.toString();let a;if(i){if(r.indexOf("application/x-www-form-urlencoded")>-1)return Bh(t,this.formSerializer).toString();if((a=_.isFileList(t))||r.indexOf("multipart/form-data")>-1){const l=this.env&&this.env.FormData;return Ss(a?{"files[]":t}:t,l&&new l,this.formSerializer)}}return i||s?(n.setContentType("application/json",!1),Dh(t)):t}],transformResponse:[function(t){const n=this.transitional||pr.transitional,r=n&&n.forcedJSONParsing,s=this.responseType==="json";if(t&&_.isString(t)&&(r&&!this.responseType||s)){const o=!(n&&n.silentJSONParsing)&&s;try{return JSON.parse(t)}catch(a){if(o)throw a.name==="SyntaxError"?ee.from(a,ee.ERR_BAD_RESPONSE,this,null,this.response):a}}return t}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:lt.classes.FormData,Blob:lt.classes.Blob},validateStatus:function(t){return t>=200&&t<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};_.forEach(["delete","get","head","post","put","patch"],e=>{pr.headers[e]={}});const jh=_.toObjectSet(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"]),Uh=e=>{const t={};let n,r,s;return e&&e.split(`
|
|
21
|
+
*/let Vc;const vs=e=>Vc=e,Pc=Symbol();function mi(e){return e&&typeof e=="object"&&Object.prototype.toString.call(e)==="[object Object]"&&typeof e.toJSON!="function"}var Kn;(function(e){e.direct="direct",e.patchObject="patch object",e.patchFunction="patch function"})(Kn||(Kn={}));function Wv(){const e=ki(!0),t=e.run(()=>oe({}));let n=[],r=[];const s=ji({install(i){vs(s),s._a=i,i.provide(Pc,s),i.config.globalProperties.$pinia=s,r.forEach(o=>n.push(o)),r=[]},use(i){return!this._a&&!N1?r.push(i):n.push(i),this},_p:n,_a:null,_e:e,_s:new Map,state:t});return s}const Oc=()=>{};function Ca(e,t,n,r=Oc){e.push(t);const s=()=>{const i=e.indexOf(t);i>-1&&(e.splice(i,1),r())};return!n&&_l()&&Mi(s),s}function hn(e,...t){e.slice().forEach(n=>{n(...t)})}const $1=e=>e();function gi(e,t){e instanceof Map&&t instanceof Map&&t.forEach((n,r)=>e.set(r,n)),e instanceof Set&&t instanceof Set&&t.forEach(e.add,e);for(const n in t){if(!t.hasOwnProperty(n))continue;const r=t[n],s=e[n];mi(s)&&mi(r)&&e.hasOwnProperty(n)&&!ue(r)&&!nn(r)?e[n]=gi(s,r):e[n]=r}return e}const D1=Symbol();function j1(e){return!mi(e)||!e.hasOwnProperty(D1)}const{assign:Vt}=Object;function U1(e){return!!(ue(e)&&e.effect)}function z1(e,t,n,r){const{state:s,actions:i,getters:o}=t,a=n.state.value[e];let l;function c(){a||(n.state.value[e]=s?s():{});const f=zi(n.state.value[e]);return Vt(f,i,Object.keys(o||{}).reduce((u,d)=>(u[d]=ji(L(()=>{vs(n);const h=n._s.get(e);return o[d].call(h,h)})),u),{}))}return l=Rc(e,c,t,n,r,!0),l}function Rc(e,t,n={},r,s,i){let o;const a=Vt({actions:{}},n),l={deep:!0};let c,f,u=[],d=[],h;const m=r.state.value[e];!i&&!m&&(r.state.value[e]={}),oe({});let g;function b(T){let I;c=f=!1,typeof T=="function"?(T(r.state.value[e]),I={type:Kn.patchFunction,storeId:e,events:h}):(gi(r.state.value[e],T),I={type:Kn.patchObject,payload:T,storeId:e,events:h});const H=g=Symbol();ur().then(()=>{g===H&&(c=!0)}),f=!0,hn(u,I,r.state.value[e])}const V=i?function(){const{state:I}=n,H=I?I():{};this.$patch(j=>{Vt(j,H)})}:Oc;function M(){o.stop(),u=[],d=[],r._s.delete(e)}function F(T,I){return function(){vs(r);const H=Array.from(arguments),j=[],S=[];function D(J){j.push(J)}function Y(J){S.push(J)}hn(d,{args:H,name:T,store:x,after:D,onError:Y});let de;try{de=I.apply(this&&this.$id===e?this:x,H)}catch(J){throw hn(S,J),J}return de instanceof Promise?de.then(J=>(hn(j,J),J)).catch(J=>(hn(S,J),Promise.reject(J))):(hn(j,de),de)}}const $={_p:r,$id:e,$onAction:Ca.bind(null,d),$patch:b,$reset:V,$subscribe(T,I={}){const H=Ca(u,T,I.detached,()=>j()),j=o.run(()=>Le(()=>r.state.value[e],S=>{(I.flush==="sync"?f:c)&&T({storeId:e,type:Kn.direct,events:h},S)},Vt({},l,I)));return H},$dispose:M},x=Vn($);r._s.set(e,x);const U=(r._a&&r._a.runWithContext||$1)(()=>r._e.run(()=>(o=ki()).run(t)));for(const T in U){const I=U[T];if(ue(I)&&!U1(I)||nn(I))i||(m&&j1(I)&&(ue(I)?I.value=m[T]:gi(I,m[T])),r.state.value[e][T]=I);else if(typeof I=="function"){const H=F(T,I);U[T]=H,a.actions[T]=I}}return Vt(x,U),Vt(q(x),U),Object.defineProperty(x,"$state",{get:()=>r.state.value[e],set:T=>{b(I=>{Vt(I,T)})}}),r._p.forEach(T=>{Vt(x,o.run(()=>T({store:x,app:r._a,pinia:r,options:a})))}),m&&i&&n.hydrate&&n.hydrate(x.$state,m),c=!0,f=!0,x}function io(e,t,n){let r,s;const i=typeof t=="function";typeof e=="string"?(r=e,s=i?n:t):(s=e,r=e.id);function o(a,l){const c=Id();return a=a||(c?Pe(Pc,null):null),a&&vs(a),a=Vc,a._s.has(r)||(i?Rc(r,t,s,a):z1(r,s,a)),a._s.get(r)}return o.$id=r,o}function ps(e,t){return Array.isArray(t)?t.reduce((n,r)=>(n[r]=function(){return e(this.$pinia)[r]},n),{}):Object.keys(t).reduce((n,r)=>(n[r]=function(){const s=e(this.$pinia),i=t[r];return typeof i=="function"?i.call(this,s):s[i]},n),{})}const W1=ps;function oo(e,t){return Array.isArray(t)?t.reduce((n,r)=>(n[r]=function(...s){return e(this.$pinia)[r](...s)},n),{}):Object.keys(t).reduce((n,r)=>(n[r]=function(...s){return e(this.$pinia)[t[r]](...s)},n),{})}function Kv(e,t){return Array.isArray(t)?t.reduce((n,r)=>(n[r]={get(){return e(this.$pinia)[r]},set(s){return e(this.$pinia)[r]=s}},n),{}):Object.keys(t).reduce((n,r)=>(n[r]={get(){return e(this.$pinia)[t[r]]},set(s){return e(this.$pinia)[t[r]]=s}},n),{})}const Ic=["detail","oldPassword","password","username","passwordConfirm","path"];Object.freeze(Ic);const K1=e=>{let t=[];if(e&&e.response&&e.response.data){let n=e.response.data;for(const r of Ic)if(r in n){n=n[r];break}t=Array.isArray(n)?n.flat():[n]}else console.warn("Unable to parse error",e);return t.length===0&&(t=["Unknown error"]),t},st=io("common",{state:()=>({form:{errors:[],success:""},versions:{installed:"1.6.0-a2",latest:void 0},timestamp:Date.now(),isSettingsDrawerOpen:!1,opdsURLs:void 0}),getters:{isMobile:function(){return window.orientation!==void 0||navigator.userAgent.includes("IEMobile")}},actions:{async loadVersions(){await Js.getVersions(this.timestamp).then(e=>{const t=e.data;return this.versions=t}).catch(console.error)},downloadIOSPWAFix(e,t){Js.downloadIOSPWAFix(e,t)},setErrors(e){const t=K1(e);this.$patch(n=>{n.form.errors=t,n.form.success=""})},setSuccess(e){this.$patch(t=>{t.form.errors=[],t.form.success=e})},clearErrors(){this.$patch(e=>{e.form.errors=[],e.form.success=""})},setTimestamp(){this.timestamp=Date.now()},setSettingsDrawerOpen(e){this.isSettingsDrawerOpen=e},async loadOPDSURLs(){this.opdsURLs||await Js.getOPDSURLs().then(e=>this.opdsURLs=Object.freeze({...e.data})).catch(console.error)}}});function kc(e,t){return function(){return e.apply(t,arguments)}}const{toString:G1}=Object.prototype,{getPrototypeOf:ao}=Object,ys=(e=>t=>{const n=G1.call(t);return e[n]||(e[n]=n.slice(8,-1).toLowerCase())})(Object.create(null)),ht=e=>(e=e.toLowerCase(),t=>ys(t)===e),bs=e=>t=>typeof t===e,{isArray:Rn}=Array,rr=bs("undefined");function q1(e){return e!==null&&!rr(e)&&e.constructor!==null&&!rr(e.constructor)&&qe(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}const Mc=ht("ArrayBuffer");function Z1(e){let t;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?t=ArrayBuffer.isView(e):t=e&&e.buffer&&Mc(e.buffer),t}const J1=bs("string"),qe=bs("function"),Hc=bs("number"),Cs=e=>e!==null&&typeof e=="object",X1=e=>e===!0||e===!1,$r=e=>{if(ys(e)!=="object")return!1;const t=ao(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)},Y1=ht("Date"),Q1=ht("File"),eh=ht("Blob"),th=ht("FileList"),nh=e=>Cs(e)&&qe(e.pipe),rh=e=>{let t;return e&&(typeof FormData=="function"&&e instanceof FormData||qe(e.append)&&((t=ys(e))==="formdata"||t==="object"&&qe(e.toString)&&e.toString()==="[object FormData]"))},sh=ht("URLSearchParams"),ih=e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function vr(e,t,{allOwnKeys:n=!1}={}){if(e===null||typeof e>"u")return;let r,s;if(typeof e!="object"&&(e=[e]),Rn(e))for(r=0,s=e.length;r<s;r++)t.call(null,e[r],r,e);else{const i=n?Object.getOwnPropertyNames(e):Object.keys(e),o=i.length;let a;for(r=0;r<o;r++)a=i[r],t.call(null,e[a],a,e)}}function Fc(e,t){t=t.toLowerCase();const n=Object.keys(e);let r=n.length,s;for(;r-- >0;)if(s=n[r],t===s.toLowerCase())return s;return null}const Bc=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global,Nc=e=>!rr(e)&&e!==Bc;function vi(){const{caseless:e}=Nc(this)&&this||{},t={},n=(r,s)=>{const i=e&&Fc(t,s)||s;$r(t[i])&&$r(r)?t[i]=vi(t[i],r):$r(r)?t[i]=vi({},r):Rn(r)?t[i]=r.slice():t[i]=r};for(let r=0,s=arguments.length;r<s;r++)arguments[r]&&vr(arguments[r],n);return t}const oh=(e,t,n,{allOwnKeys:r}={})=>(vr(t,(s,i)=>{n&&qe(s)?e[i]=kc(s,n):e[i]=s},{allOwnKeys:r}),e),ah=e=>(e.charCodeAt(0)===65279&&(e=e.slice(1)),e),lh=(e,t,n,r)=>{e.prototype=Object.create(t.prototype,r),e.prototype.constructor=e,Object.defineProperty(e,"super",{value:t.prototype}),n&&Object.assign(e.prototype,n)},ch=(e,t,n,r)=>{let s,i,o;const a={};if(t=t||{},e==null)return t;do{for(s=Object.getOwnPropertyNames(e),i=s.length;i-- >0;)o=s[i],(!r||r(o,e,t))&&!a[o]&&(t[o]=e[o],a[o]=!0);e=n!==!1&&ao(e)}while(e&&(!n||n(e,t))&&e!==Object.prototype);return t},uh=(e,t,n)=>{e=String(e),(n===void 0||n>e.length)&&(n=e.length),n-=t.length;const r=e.indexOf(t,n);return r!==-1&&r===n},fh=e=>{if(!e)return null;if(Rn(e))return e;let t=e.length;if(!Hc(t))return null;const n=new Array(t);for(;t-- >0;)n[t]=e[t];return n},dh=(e=>t=>e&&t instanceof e)(typeof Uint8Array<"u"&&ao(Uint8Array)),hh=(e,t)=>{const r=(e&&e[Symbol.iterator]).call(e);let s;for(;(s=r.next())&&!s.done;){const i=s.value;t.call(e,i[0],i[1])}},mh=(e,t)=>{let n;const r=[];for(;(n=e.exec(t))!==null;)r.push(n);return r},gh=ht("HTMLFormElement"),vh=e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(n,r,s){return r.toUpperCase()+s}),Sa=(({hasOwnProperty:e})=>(t,n)=>e.call(t,n))(Object.prototype),ph=ht("RegExp"),$c=(e,t)=>{const n=Object.getOwnPropertyDescriptors(e),r={};vr(n,(s,i)=>{let o;(o=t(s,i,e))!==!1&&(r[i]=o||s)}),Object.defineProperties(e,r)},yh=e=>{$c(e,(t,n)=>{if(qe(e)&&["arguments","caller","callee"].indexOf(n)!==-1)return!1;const r=e[n];if(qe(r)){if(t.enumerable=!1,"writable"in t){t.writable=!1;return}t.set||(t.set=()=>{throw Error("Can not rewrite read-only method '"+n+"'")})}})},bh=(e,t)=>{const n={},r=s=>{s.forEach(i=>{n[i]=!0})};return Rn(e)?r(e):r(String(e).split(t)),n},Ch=()=>{},Sh=(e,t)=>(e=+e,Number.isFinite(e)?e:t),Ks="abcdefghijklmnopqrstuvwxyz",_a="0123456789",Dc={DIGIT:_a,ALPHA:Ks,ALPHA_DIGIT:Ks+Ks.toUpperCase()+_a},_h=(e=16,t=Dc.ALPHA_DIGIT)=>{let n="";const{length:r}=t;for(;e--;)n+=t[Math.random()*r|0];return n};function wh(e){return!!(e&&qe(e.append)&&e[Symbol.toStringTag]==="FormData"&&e[Symbol.iterator])}const Ah=e=>{const t=new Array(10),n=(r,s)=>{if(Cs(r)){if(t.indexOf(r)>=0)return;if(!("toJSON"in r)){t[s]=r;const i=Rn(r)?[]:{};return vr(r,(o,a)=>{const l=n(o,s+1);!rr(l)&&(i[a]=l)}),t[s]=void 0,i}}return r};return n(e,0)},Lh=ht("AsyncFunction"),Eh=e=>e&&(Cs(e)||qe(e))&&qe(e.then)&&qe(e.catch),_={isArray:Rn,isArrayBuffer:Mc,isBuffer:q1,isFormData:rh,isArrayBufferView:Z1,isString:J1,isNumber:Hc,isBoolean:X1,isObject:Cs,isPlainObject:$r,isUndefined:rr,isDate:Y1,isFile:Q1,isBlob:eh,isRegExp:ph,isFunction:qe,isStream:nh,isURLSearchParams:sh,isTypedArray:dh,isFileList:th,forEach:vr,merge:vi,extend:oh,trim:ih,stripBOM:ah,inherits:lh,toFlatObject:ch,kindOf:ys,kindOfTest:ht,endsWith:uh,toArray:fh,forEachEntry:hh,matchAll:mh,isHTMLForm:gh,hasOwnProperty:Sa,hasOwnProp:Sa,reduceDescriptors:$c,freezeMethods:yh,toObjectSet:bh,toCamelCase:vh,noop:Ch,toFiniteNumber:Sh,findKey:Fc,global:Bc,isContextDefined:Nc,ALPHABET:Dc,generateString:_h,isSpecCompliantForm:wh,toJSONObject:Ah,isAsyncFn:Lh,isThenable:Eh};function ee(e,t,n,r,s){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack,this.message=e,this.name="AxiosError",t&&(this.code=t),n&&(this.config=n),r&&(this.request=r),s&&(this.response=s)}_.inherits(ee,Error,{toJSON:function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:_.toJSONObject(this.config),code:this.code,status:this.response&&this.response.status?this.response.status:null}}});const jc=ee.prototype,Uc={};["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED","ERR_NOT_SUPPORT","ERR_INVALID_URL"].forEach(e=>{Uc[e]={value:e}});Object.defineProperties(ee,Uc);Object.defineProperty(jc,"isAxiosError",{value:!0});ee.from=(e,t,n,r,s,i)=>{const o=Object.create(jc);return _.toFlatObject(e,o,function(l){return l!==Error.prototype},a=>a!=="isAxiosError"),ee.call(o,e.message,t,n,r,s),o.cause=e,o.name=e.name,i&&Object.assign(o,i),o};const xh=null;function pi(e){return _.isPlainObject(e)||_.isArray(e)}function zc(e){return _.endsWith(e,"[]")?e.slice(0,-2):e}function wa(e,t,n){return e?e.concat(t).map(function(s,i){return s=zc(s),!n&&i?"["+s+"]":s}).join(n?".":""):t}function Th(e){return _.isArray(e)&&!e.some(pi)}const Vh=_.toFlatObject(_,{},null,function(t){return/^is[A-Z]/.test(t)});function Ss(e,t,n){if(!_.isObject(e))throw new TypeError("target must be an object");t=t||new FormData,n=_.toFlatObject(n,{metaTokens:!0,dots:!1,indexes:!1},!1,function(g,b){return!_.isUndefined(b[g])});const r=n.metaTokens,s=n.visitor||f,i=n.dots,o=n.indexes,l=(n.Blob||typeof Blob<"u"&&Blob)&&_.isSpecCompliantForm(t);if(!_.isFunction(s))throw new TypeError("visitor must be a function");function c(m){if(m===null)return"";if(_.isDate(m))return m.toISOString();if(!l&&_.isBlob(m))throw new ee("Blob is not supported. Use a Buffer instead.");return _.isArrayBuffer(m)||_.isTypedArray(m)?l&&typeof Blob=="function"?new Blob([m]):Buffer.from(m):m}function f(m,g,b){let V=m;if(m&&!b&&typeof m=="object"){if(_.endsWith(g,"{}"))g=r?g:g.slice(0,-2),m=JSON.stringify(m);else if(_.isArray(m)&&Th(m)||(_.isFileList(m)||_.endsWith(g,"[]"))&&(V=_.toArray(m)))return g=zc(g),V.forEach(function(F,$){!(_.isUndefined(F)||F===null)&&t.append(o===!0?wa([g],$,i):o===null?g:g+"[]",c(F))}),!1}return pi(m)?!0:(t.append(wa(b,g,i),c(m)),!1)}const u=[],d=Object.assign(Vh,{defaultVisitor:f,convertValue:c,isVisitable:pi});function h(m,g){if(!_.isUndefined(m)){if(u.indexOf(m)!==-1)throw Error("Circular reference detected in "+g.join("."));u.push(m),_.forEach(m,function(V,M){(!(_.isUndefined(V)||V===null)&&s.call(t,V,_.isString(M)?M.trim():M,g,d))===!0&&h(V,g?g.concat(M):[M])}),u.pop()}}if(!_.isObject(e))throw new TypeError("data must be an object");return h(e),t}function Aa(e){const t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,function(r){return t[r]})}function lo(e,t){this._pairs=[],e&&Ss(e,this,t)}const Wc=lo.prototype;Wc.append=function(t,n){this._pairs.push([t,n])};Wc.toString=function(t){const n=t?function(r){return t.call(this,r,Aa)}:Aa;return this._pairs.map(function(s){return n(s[0])+"="+n(s[1])},"").join("&")};function Ph(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function Kc(e,t,n){if(!t)return e;const r=n&&n.encode||Ph,s=n&&n.serialize;let i;if(s?i=s(t,n):i=_.isURLSearchParams(t)?t.toString():new lo(t,n).toString(r),i){const o=e.indexOf("#");o!==-1&&(e=e.slice(0,o)),e+=(e.indexOf("?")===-1?"?":"&")+i}return e}class La{constructor(){this.handlers=[]}use(t,n,r){return this.handlers.push({fulfilled:t,rejected:n,synchronous:r?r.synchronous:!1,runWhen:r?r.runWhen:null}),this.handlers.length-1}eject(t){this.handlers[t]&&(this.handlers[t]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(t){_.forEach(this.handlers,function(r){r!==null&&t(r)})}}const Gc={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},Oh=typeof URLSearchParams<"u"?URLSearchParams:lo,Rh=typeof FormData<"u"?FormData:null,Ih=typeof Blob<"u"?Blob:null,kh={isBrowser:!0,classes:{URLSearchParams:Oh,FormData:Rh,Blob:Ih},protocols:["http","https","file","blob","url","data"]},qc=typeof window<"u"&&typeof document<"u",Mh=(e=>qc&&["ReactNative","NativeScript","NS"].indexOf(e)<0)(typeof navigator<"u"&&navigator.product),Hh=typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function",Fh=Object.freeze(Object.defineProperty({__proto__:null,hasBrowserEnv:qc,hasStandardBrowserEnv:Mh,hasStandardBrowserWebWorkerEnv:Hh},Symbol.toStringTag,{value:"Module"})),lt={...Fh,...kh};function Bh(e,t){return Ss(e,new lt.classes.URLSearchParams,Object.assign({visitor:function(n,r,s,i){return lt.isNode&&_.isBuffer(n)?(this.append(r,n.toString("base64")),!1):i.defaultVisitor.apply(this,arguments)}},t))}function Nh(e){return _.matchAll(/\w+|\[(\w*)]/g,e).map(t=>t[0]==="[]"?"":t[1]||t[0])}function $h(e){const t={},n=Object.keys(e);let r;const s=n.length;let i;for(r=0;r<s;r++)i=n[r],t[i]=e[i];return t}function Zc(e){function t(n,r,s,i){let o=n[i++];if(o==="__proto__")return!0;const a=Number.isFinite(+o),l=i>=n.length;return o=!o&&_.isArray(s)?s.length:o,l?(_.hasOwnProp(s,o)?s[o]=[s[o],r]:s[o]=r,!a):((!s[o]||!_.isObject(s[o]))&&(s[o]=[]),t(n,r,s[o],i)&&_.isArray(s[o])&&(s[o]=$h(s[o])),!a)}if(_.isFormData(e)&&_.isFunction(e.entries)){const n={};return _.forEachEntry(e,(r,s)=>{t(Nh(r),s,n,0)}),n}return null}function Dh(e,t,n){if(_.isString(e))try{return(t||JSON.parse)(e),_.trim(e)}catch(r){if(r.name!=="SyntaxError")throw r}return(n||JSON.stringify)(e)}const pr={transitional:Gc,adapter:["xhr","http"],transformRequest:[function(t,n){const r=n.getContentType()||"",s=r.indexOf("application/json")>-1,i=_.isObject(t);if(i&&_.isHTMLForm(t)&&(t=new FormData(t)),_.isFormData(t))return s?JSON.stringify(Zc(t)):t;if(_.isArrayBuffer(t)||_.isBuffer(t)||_.isStream(t)||_.isFile(t)||_.isBlob(t))return t;if(_.isArrayBufferView(t))return t.buffer;if(_.isURLSearchParams(t))return n.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),t.toString();let a;if(i){if(r.indexOf("application/x-www-form-urlencoded")>-1)return Bh(t,this.formSerializer).toString();if((a=_.isFileList(t))||r.indexOf("multipart/form-data")>-1){const l=this.env&&this.env.FormData;return Ss(a?{"files[]":t}:t,l&&new l,this.formSerializer)}}return i||s?(n.setContentType("application/json",!1),Dh(t)):t}],transformResponse:[function(t){const n=this.transitional||pr.transitional,r=n&&n.forcedJSONParsing,s=this.responseType==="json";if(t&&_.isString(t)&&(r&&!this.responseType||s)){const o=!(n&&n.silentJSONParsing)&&s;try{return JSON.parse(t)}catch(a){if(o)throw a.name==="SyntaxError"?ee.from(a,ee.ERR_BAD_RESPONSE,this,null,this.response):a}}return t}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:lt.classes.FormData,Blob:lt.classes.Blob},validateStatus:function(t){return t>=200&&t<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};_.forEach(["delete","get","head","post","put","patch"],e=>{pr.headers[e]={}});const jh=_.toObjectSet(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"]),Uh=e=>{const t={};let n,r,s;return e&&e.split(`
|
|
22
22
|
`).forEach(function(o){s=o.indexOf(":"),n=o.substring(0,s).trim().toLowerCase(),r=o.substring(s+1).trim(),!(!n||t[n]&&jh[n])&&(n==="set-cookie"?t[n]?t[n].push(r):t[n]=[r]:t[n]=t[n]?t[n]+", "+r:r)}),t},Ea=Symbol("internals");function Bn(e){return e&&String(e).trim().toLowerCase()}function Dr(e){return e===!1||e==null?e:_.isArray(e)?e.map(Dr):String(e)}function zh(e){const t=Object.create(null),n=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let r;for(;r=n.exec(e);)t[r[1]]=r[2];return t}const Wh=e=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim());function Gs(e,t,n,r,s){if(_.isFunction(r))return r.call(this,t,n);if(s&&(t=n),!!_.isString(t)){if(_.isString(r))return t.indexOf(r)!==-1;if(_.isRegExp(r))return r.test(t)}}function Kh(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(t,n,r)=>n.toUpperCase()+r)}function Gh(e,t){const n=_.toCamelCase(" "+t);["get","set","has"].forEach(r=>{Object.defineProperty(e,r+n,{value:function(s,i,o){return this[r].call(this,t,s,i,o)},configurable:!0})})}class Ze{constructor(t){t&&this.set(t)}set(t,n,r){const s=this;function i(a,l,c){const f=Bn(l);if(!f)throw new Error("header name must be a non-empty string");const u=_.findKey(s,f);(!u||s[u]===void 0||c===!0||c===void 0&&s[u]!==!1)&&(s[u||l]=Dr(a))}const o=(a,l)=>_.forEach(a,(c,f)=>i(c,f,l));return _.isPlainObject(t)||t instanceof this.constructor?o(t,n):_.isString(t)&&(t=t.trim())&&!Wh(t)?o(Uh(t),n):t!=null&&i(n,t,r),this}get(t,n){if(t=Bn(t),t){const r=_.findKey(this,t);if(r){const s=this[r];if(!n)return s;if(n===!0)return zh(s);if(_.isFunction(n))return n.call(this,s,r);if(_.isRegExp(n))return n.exec(s);throw new TypeError("parser must be boolean|regexp|function")}}}has(t,n){if(t=Bn(t),t){const r=_.findKey(this,t);return!!(r&&this[r]!==void 0&&(!n||Gs(this,this[r],r,n)))}return!1}delete(t,n){const r=this;let s=!1;function i(o){if(o=Bn(o),o){const a=_.findKey(r,o);a&&(!n||Gs(r,r[a],a,n))&&(delete r[a],s=!0)}}return _.isArray(t)?t.forEach(i):i(t),s}clear(t){const n=Object.keys(this);let r=n.length,s=!1;for(;r--;){const i=n[r];(!t||Gs(this,this[i],i,t,!0))&&(delete this[i],s=!0)}return s}normalize(t){const n=this,r={};return _.forEach(this,(s,i)=>{const o=_.findKey(r,i);if(o){n[o]=Dr(s),delete n[i];return}const a=t?Kh(i):String(i).trim();a!==i&&delete n[i],n[a]=Dr(s),r[a]=!0}),this}concat(...t){return this.constructor.concat(this,...t)}toJSON(t){const n=Object.create(null);return _.forEach(this,(r,s)=>{r!=null&&r!==!1&&(n[s]=t&&_.isArray(r)?r.join(", "):r)}),n}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([t,n])=>t+": "+n).join(`
|
|
23
23
|
`)}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(t){return t instanceof this?t:new this(t)}static concat(t,...n){const r=new this(t);return n.forEach(s=>r.set(s)),r}static accessor(t){const r=(this[Ea]=this[Ea]={accessors:{}}).accessors,s=this.prototype;function i(o){const a=Bn(o);r[a]||(Gh(s,o),r[a]=!0)}return _.isArray(t)?t.forEach(i):i(t),this}}Ze.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]);_.reduceDescriptors(Ze.prototype,({value:e},t)=>{let n=t[0].toUpperCase()+t.slice(1);return{get:()=>e,set(r){this[n]=r}}});_.freezeMethods(Ze);function qs(e,t){const n=this||pr,r=t||n,s=Ze.from(r.headers);let i=r.data;return _.forEach(e,function(a){i=a.call(n,i,s.normalize(),t?t.status:void 0)}),s.normalize(),i}function Jc(e){return!!(e&&e.__CANCEL__)}function yr(e,t,n){ee.call(this,e??"canceled",ee.ERR_CANCELED,t,n),this.name="CanceledError"}_.inherits(yr,ee,{__CANCEL__:!0});function qh(e,t,n){const r=n.config.validateStatus;!n.status||!r||r(n.status)?e(n):t(new ee("Request failed with status code "+n.status,[ee.ERR_BAD_REQUEST,ee.ERR_BAD_RESPONSE][Math.floor(n.status/100)-4],n.config,n.request,n))}const Zh=lt.hasStandardBrowserEnv?{write(e,t,n,r,s,i){const o=[e+"="+encodeURIComponent(t)];_.isNumber(n)&&o.push("expires="+new Date(n).toGMTString()),_.isString(r)&&o.push("path="+r),_.isString(s)&&o.push("domain="+s),i===!0&&o.push("secure"),document.cookie=o.join("; ")},read(e){const t=document.cookie.match(new RegExp("(^|;\\s*)("+e+")=([^;]*)"));return t?decodeURIComponent(t[3]):null},remove(e){this.write(e,"",Date.now()-864e5)}}:{write(){},read(){return null},remove(){}};function Jh(e){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)}function Xh(e,t){return t?e.replace(/\/?\/$/,"")+"/"+t.replace(/^\/+/,""):e}function Xc(e,t){return e&&!Jh(t)?Xh(e,t):t}const Yh=lt.hasStandardBrowserEnv?function(){const t=/(msie|trident)/i.test(navigator.userAgent),n=document.createElement("a");let r;function s(i){let o=i;return t&&(n.setAttribute("href",o),o=n.href),n.setAttribute("href",o),{href:n.href,protocol:n.protocol?n.protocol.replace(/:$/,""):"",host:n.host,search:n.search?n.search.replace(/^\?/,""):"",hash:n.hash?n.hash.replace(/^#/,""):"",hostname:n.hostname,port:n.port,pathname:n.pathname.charAt(0)==="/"?n.pathname:"/"+n.pathname}}return r=s(window.location.href),function(o){const a=_.isString(o)?s(o):o;return a.protocol===r.protocol&&a.host===r.host}}():function(){return function(){return!0}}();function Qh(e){const t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}function em(e,t){e=e||10;const n=new Array(e),r=new Array(e);let s=0,i=0,o;return t=t!==void 0?t:1e3,function(l){const c=Date.now(),f=r[i];o||(o=c),n[s]=l,r[s]=c;let u=i,d=0;for(;u!==s;)d+=n[u++],u=u%e;if(s=(s+1)%e,s===i&&(i=(i+1)%e),c-o<t)return;const h=f&&c-f;return h?Math.round(d*1e3/h):void 0}}function xa(e,t){let n=0;const r=em(50,250);return s=>{const i=s.loaded,o=s.lengthComputable?s.total:void 0,a=i-n,l=r(a),c=i<=o;n=i;const f={loaded:i,total:o,progress:o?i/o:void 0,bytes:a,rate:l||void 0,estimated:l&&o&&c?(o-i)/l:void 0,event:s};f[t?"download":"upload"]=!0,e(f)}}const tm=typeof XMLHttpRequest<"u",nm=tm&&function(e){return new Promise(function(n,r){let s=e.data;const i=Ze.from(e.headers).normalize();let{responseType:o,withXSRFToken:a}=e,l;function c(){e.cancelToken&&e.cancelToken.unsubscribe(l),e.signal&&e.signal.removeEventListener("abort",l)}let f;if(_.isFormData(s)){if(lt.hasStandardBrowserEnv||lt.hasStandardBrowserWebWorkerEnv)i.setContentType(!1);else if((f=i.getContentType())!==!1){const[g,...b]=f?f.split(";").map(V=>V.trim()).filter(Boolean):[];i.setContentType([g||"multipart/form-data",...b].join("; "))}}let u=new XMLHttpRequest;if(e.auth){const g=e.auth.username||"",b=e.auth.password?unescape(encodeURIComponent(e.auth.password)):"";i.set("Authorization","Basic "+btoa(g+":"+b))}const d=Xc(e.baseURL,e.url);u.open(e.method.toUpperCase(),Kc(d,e.params,e.paramsSerializer),!0),u.timeout=e.timeout;function h(){if(!u)return;const g=Ze.from("getAllResponseHeaders"in u&&u.getAllResponseHeaders()),V={data:!o||o==="text"||o==="json"?u.responseText:u.response,status:u.status,statusText:u.statusText,headers:g,config:e,request:u};qh(function(F){n(F),c()},function(F){r(F),c()},V),u=null}if("onloadend"in u?u.onloadend=h:u.onreadystatechange=function(){!u||u.readyState!==4||u.status===0&&!(u.responseURL&&u.responseURL.indexOf("file:")===0)||setTimeout(h)},u.onabort=function(){u&&(r(new ee("Request aborted",ee.ECONNABORTED,e,u)),u=null)},u.onerror=function(){r(new ee("Network Error",ee.ERR_NETWORK,e,u)),u=null},u.ontimeout=function(){let b=e.timeout?"timeout of "+e.timeout+"ms exceeded":"timeout exceeded";const V=e.transitional||Gc;e.timeoutErrorMessage&&(b=e.timeoutErrorMessage),r(new ee(b,V.clarifyTimeoutError?ee.ETIMEDOUT:ee.ECONNABORTED,e,u)),u=null},lt.hasStandardBrowserEnv&&(a&&_.isFunction(a)&&(a=a(e)),a||a!==!1&&Yh(d))){const g=e.xsrfHeaderName&&e.xsrfCookieName&&Zh.read(e.xsrfCookieName);g&&i.set(e.xsrfHeaderName,g)}s===void 0&&i.setContentType(null),"setRequestHeader"in u&&_.forEach(i.toJSON(),function(b,V){u.setRequestHeader(V,b)}),_.isUndefined(e.withCredentials)||(u.withCredentials=!!e.withCredentials),o&&o!=="json"&&(u.responseType=e.responseType),typeof e.onDownloadProgress=="function"&&u.addEventListener("progress",xa(e.onDownloadProgress,!0)),typeof e.onUploadProgress=="function"&&u.upload&&u.upload.addEventListener("progress",xa(e.onUploadProgress)),(e.cancelToken||e.signal)&&(l=g=>{u&&(r(!g||g.type?new yr(null,e,u):g),u.abort(),u=null)},e.cancelToken&&e.cancelToken.subscribe(l),e.signal&&(e.signal.aborted?l():e.signal.addEventListener("abort",l)));const m=Qh(d);if(m&<.protocols.indexOf(m)===-1){r(new ee("Unsupported protocol "+m+":",ee.ERR_BAD_REQUEST,e));return}u.send(s||null)})},yi={http:xh,xhr:nm};_.forEach(yi,(e,t)=>{if(e){try{Object.defineProperty(e,"name",{value:t})}catch{}Object.defineProperty(e,"adapterName",{value:t})}});const Ta=e=>`- ${e}`,rm=e=>_.isFunction(e)||e===null||e===!1,Yc={getAdapter:e=>{e=_.isArray(e)?e:[e];const{length:t}=e;let n,r;const s={};for(let i=0;i<t;i++){n=e[i];let o;if(r=n,!rm(n)&&(r=yi[(o=String(n)).toLowerCase()],r===void 0))throw new ee(`Unknown adapter '${o}'`);if(r)break;s[o||"#"+i]=r}if(!r){const i=Object.entries(s).map(([a,l])=>`adapter ${a} `+(l===!1?"is not supported by the environment":"is not available in the build"));let o=t?i.length>1?`since :
|
|
24
24
|
`+i.map(Ta).join(`
|
|
Binary file
|
|
Binary file
|
codex/static_root/assets/{browser-BA-AwUn-.23bb4b2f6a29.js → browser-CPtVXHUw.8b5c70db6763.js}
RENAMED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{_ as y,aF as le,aG as K,aH as ce,Q as p,R as a,P as m,T as c,L as l,aj as R,ah as C,ad as d,ai as g,aI as de,aJ as ue,ak as M,aK as s,aA as w,aB as I,M as P,aL as X,aM as J,ag as k,m as V,N as S,O as T,aN as D,aO as me,k as he,ao as Z,ap as N,aP as pe,aQ as A,aR as q,aD as B,aS as _e,aT as z,aU as fe,x as ge,E as be,aV as ye,au as we,aW as Se,G as Be,aX as ve,aY as Ce,as as Te,K as ke,aZ as ee,a_ as Me,a$ as Ve,b0 as $e,b1 as E,b2 as te,b3 as Pe,b4 as Ie,ae as x,b5 as oe,b6 as xe,b7 as Fe,b8 as Ne,af as Oe,b9 as re,ba as H,bb as j,bc as Re,bd as se,be as De,bf as He,bg as ae,bh as Le,bi as Ue,bj as Ge,bk as Ee,bl as Ae,bm as qe,bn as ze}from"./admin-drawer-panel-mtdde7vY.js";import{V as je}from"./VTable-9vsIQObs.js";import{V as We}from"./VDialog-yDKzaGEj.js";import{u as _,C as Ye}from"./main-BnzL_Byv.js";import{V as W}from"./VCheckbox-Aq_ImMNC.js";import{b as Qe,P as Ke,a as L,V as Y,c as Xe,S as Je}from"./settings-drawer-CLMcxfVd.js";import{M as Ze,p as et,f as U,g as tt,a as ot,B as rt,b as st,V as G,N as at,t as nt,T as F,c as it,P as lt,d as ct,e as dt}from"./pagination-toolbar-Covpd-k8.js";import{C as ut}from"./confirm-dialog-Clg-o2G-.js";import{V as mt}from"./VSelect-BKXcujPy.js";import{a as ht,V as ne,U as pt}from"./unauthorized-ClQNhRb5.js";import{V as _t}from"./VCombobox-DLL1EsSN.js";import{c as ft}from"./to-case-kUm8NPpW.js";import{V as gt}from"./VTextField-DI9HAmWh.js";import"./VCheckboxBtn-D3izCBa7.js";import"./VSelectionControl-DJAPiluk.js";import"./index-DUjeNg4x.js";import"./VSlideGroup-C-kO93Va.js";import"./change-password-dialog-C8YONrId.js";import"./filter-DHo57nTp.js";const bt=[["characters","CSV","category"],["community_rating","Decimal","communityrating"],["contributor","CSV","author, creator, credit, person, people"],["country","String"],["created_at","DateTime","created"],["critical_rating","Decimal","criticalrating"],["day","Integer"],["date","Date"],["decade","Integer"],["file_type","String","type"],["genres","CSV","genre"],["identifier","CSV","id, nss"],["identifier_type","CSV","id_type, nid"],["imprint","String"],["issue","String","(Combined issue_number and issue_suffix)"],["issue_number","Decimal","number"],["issue_suffix","String"],["language","String"],["location","CSV","location"],["maturity_rating","String"],["monochrome","String","blackandwhite"],["month","Integer"],["reading_direction","String","direction"],["name","String","title"],["notes","String"],["original_format","String","format, orginalformat"],["path","String","folder, folders"],["page_count","Integer","pages, pagecount"],["publisher","String"],["reading_direction","String","direction"],["review","String"],["scan_info","String","scan, scaninfo"],["series","String"],["series_groups","CSV","seriesgroups"],["size","Integer"],["stories","CSV","story"],["story_arcs","CSV","storyarcs"],["summary","String","comments, description"],["tags","CSV","tag"],["tagger","String"],["teams","CSV","team"],["updated_at","Date","updated"],["volume","String"],["web","String"],["year","Integer"]],yt={name:"SearchHelp",components:{CloseButton:le},data(){return{mdiOpenInNew:K,mdiArchiveSearchOutline:ce,dialog:!1,FIELD_ROWS:bt}}},f=e=>(X("data-v-acc6a7f9"),e=e(),J(),e),wt={id:"searchHelp"},St=f(()=>s("h1",null,"Search Help",-1)),Bt={id:"fieldTableContainer"},vt=f(()=>s("h2",null,"Search Fields",-1)),Ct=f(()=>s("thead",null,[s("tr",null,[s("th",null,"Field"),s("th",null,"Type"),s("th",null,"Aliases")])],-1)),Tt={class:"aliasCol"},kt={id:"textContainer"},Mt=f(()=>s("h2",null,"Whoosh Query Parser",-1)),Vt={href:"https://whoosh.readthedocs.io/en/latest/querylang.html",target:"_blank"},$t=f(()=>s("h2",null,"Operators",-1)),Pt=f(()=>s("code",null,"and",-1)),It=f(()=>s("code",null,"or",-1)),xt=f(()=>s("code",null,"not",-1)),Ft=f(()=>s("code",null,"andnot",-1)),Nt=f(()=>s("code",null,"andmaybe",-1)),Ot=f(()=>s("code",null,"require",-1)),Rt=f(()=>s("h2",null,"Searching Fields",-1)),Dt=f(()=>s("p",null,[d(" Like Codex's filter selector menu, but more powerful. You may search on individual comic metadata fields. using a search token like "),s("code",null,"field:value"),d(". ")],-1)),Ht=f(()=>s("h3",null,"Dates and DateTimes",-1)),Lt={href:"https://whoosh.readthedocs.io/en/latest/dates.html#parsing-date-queries",target:"_blank"},Ut=f(()=>s("code",null,"YYYYMMDD",-1)),Gt=f(()=>s("code",null,"YYYMMDDHHmmSS",-1)),Et=f(()=>s("h3",null,"Single Quote complex field Queries",-1)),At=f(()=>s("p",null,[d(" Use "),s("em",null,"single"),d(" quotes to tell Codex that a complex or natural language phrase should be applied to a specific field ")],-1)),qt=f(()=>s("code",null," created:'this year' ",-1)),zt=f(()=>s("h3",null,"Size Byte Multipliers",-1)),jt=f(()=>s("p",null,[d(" The size field can make use of convenient byte multiplier suffixes like "),s("code",null,"kb"),d(" and "),s("code",null,"mb"),d(" as well as binary suffixes like "),s("code",null,"gib"),d(" and "),s("code",null,"tib"),d(". ")],-1)),Wt=f(()=>s("h3",null,"Ranges of Fields",-1)),Yt=f(()=>s("p",null,[d(" Whoosh uses brackets and the "),s("em",null,"uppercase"),d(" "),s("code",null,"TO"),d(" operator to delineate a range search. ")],-1)),Qt=f(()=>s("code",null,"updated:[last sunday TO 10am]",-1)),Kt=f(()=>s("p",null," You may leave out the upper or lower bound or use >, <, >=, <= operators. ",-1)),Xt=f(()=>s("code",null,"size:<50mb",-1)),Jt=f(()=>s("h3",null,"Multi Value Fields",-1)),Zt=f(()=>s("p",null,[d(" Fields marked type "),s("code",null,"CSV"),d(" in the table to the left may contain comma separated values. This filters by all the supplied values. Multi Value tokens look like: "),s("code",null,"field:term1,term2,term3")],-1)),eo=f(()=>s("h2",null,"Grouped Queries",-1)),to=f(()=>s("p",null,"Whoosh allows grouping of queries with parenthesis.",-1)),oo=f(()=>s("h2",null,"Example Search",-1)),ro=f(()=>s("p",null," This example search is more convoluted than most searches but uses many features for demonstration: ",-1)),so=f(()=>s("code",null,' (Holmes and Tesla date:>=1999-1-2 size:[10mib TO 1gb] Gadzooks) or "Captain Nemo" -Quartermain ',-1)),ao=f(()=>s("p",{style:{"margin-top":"1em"}},' Search for comics that contain Holmes and Tesla published after the second day of 1999 that are between 10 Mebibytes and 10 Gigabytes that also contain the word "Gadzooks" but also all comics with the the phrase "Captain Nemo" but no comics will contain the word "Quartermain". ',-1)),no=f(()=>s("h2",null,"Group and Sorting Behavior",-1)),io=f(()=>s("p",null," If the search field is empty and then you supply a search query for the first time, Codex navigates you to the to All Issues view and your sets your Sorted By selection to Search Score. If you prefer a different view you may change the group and sort selections after your you make your first search. ",-1)),lo=f(()=>s("h2",null,"Filter Behavior",-1)),co=f(()=>s("p",null,[d(" Codex applies "),s("em",null,"both"),d(" the Filter selection menu filters "),s("em",null,"and"),d(" the search query field filters to the search. Be sure to clear the filter selector or the search field if you prefer to apply only one of them. ")],-1)),uo=f(()=>s("h2",null,"Faster Browsing and Searching",-1)),mo=f(()=>s("p",null,' Browsing large collections using the group tree and filter dropdown is relatively fast. Searching with the search bar will always be slower. To aid search speed there is a setting for limiting search results which can help with large collections. To see all results, choose Search Result Limit: "Unlimited". ',-1));function ho(e,t,r,h,n,o){const i=p("CloseButton");return a(),m(We,{modelValue:n.dialog,"onUpdate:modelValue":t[2]||(t[2]=u=>n.dialog=u),"content-class":"browserSearchHelp",fullscreen:"",scrim:!1,transition:"dialog-bottom-transition"},{activator:c(({props:u})=>[l(M,de(ue(u)),{default:c(()=>[l(R,null,{default:c(()=>[l(C,null,{default:c(()=>[d(g(n.mdiArchiveSearchOutline),1)]),_:1}),d("Search Help ")]),_:1})]),_:2},1040)]),default:c(()=>[s("div",wt,[l(i,{class:"closeButton",title:"Close Help (esc)",size:"x-large",onClick:t[0]||(t[0]=u=>n.dialog=!1)}),St,s("div",Bt,[vt,l(je,{id:"fieldTable",class:"highlight-table"},{default:c(()=>[Ct,s("tbody",null,[(a(!0),w(P,null,I(n.FIELD_ROWS,u=>(a(),w("tr",{key:u[0]},[s("td",null,g(u[0]),1),s("td",null,g(u[1]),1),s("td",Tt,g(u[2]||""),1)]))),128))])]),_:1})]),s("div",kt,[Mt,s("p",null,[d(" Codex uses the Whoosh search engine to execute your text search queries. Whoosh operates much like other familiar search engines. As such, only some special features are documented on this page. To understand its full power, users are encouraged to read the "),s("a",Vt,[d("Whoosh Query Language "),l(C,{size:"small"},{default:c(()=>[d(g(n.mdiOpenInNew),1)]),_:1})]),d(" documentation. ")]),$t,d(" Whoosh has the "),Pt,d(", "),It,d(", "),xt,d(", "),Ft,d(", "),Nt,d(", and "),Ot,d(" operators. "),Rt,Dt,Ht,s("p",null,[d(" Whoosh parses Dates and DateTime values liberally. Read "),s("a",Lt,[d("Whoosh Parsing Date Queries "),l(C,{size:"small"},{default:c(()=>[d(g(n.mdiOpenInNew),1)]),_:1})]),d(" documentation for what formats and natural language phrases are accepted. If the format you try fails, the "),Ut,d(" and "),Gt,d(" formats are reliable. ")]),Et,At,qt,zt,jt,Wt,Yt,Qt,d(". "),Kt,Xt,d(". "),Jt,Zt,eo,to,oo,ro,so,ao,no,io,lo,co,uo,mo]),l(i,{class:"closeButton",title:"Close Help (esc)",size:"x-large",onClick:t[1]||(t[1]=u=>n.dialog=!1)})])]),_:1},8,["modelValue"])}const po=y(yt,[["render",ho],["__scopeId","data-v-acc6a7f9"]]),_o={name:"BrowserSettingsPanel",components:{SearchHelp:po},computed:{...k(V,["isCodexViewable"]),...S(V,{isUserAuthorized:e=>!!e.user}),...S(_,{groupChoices:e=>{var t,r;return((r=(t=e.choices)==null?void 0:t.static)==null?void 0:r.settingsGroup)||{}},showSettings:e=>{var t;return((t=e.settings)==null?void 0:t.show)||{}},twentyFourHourTime:e=>{var t;return((t=e.settings)==null?void 0:t.twentyFourHourTime)||!1},twentyFourHourTimeTitle:e=>{var t,r,h;return((h=(r=(t=e.choices)==null?void 0:t.static)==null?void 0:r.twentyFourHourTime)==null?void 0:h.title)||""}})},methods:{...T(_,["setSettings"]),setShow(e,t){const r={show:{[e]:t===!0}};this.setSettings(r)},set24HourTime(e){const t={twentyFourHourTime:e===!0};this.setSettings(t)}}},fo=e=>(X("data-v-53fe153b"),e=e(),J(),e),go=fo(()=>s("div",{id:"groupCaption",class:"text-caption"}," Show these groups when navigating the browse tree. ",-1));function bo(e,t,r,h,n,o){const i=p("SearchHelp");return a(),w(P,null,[go,(a(!0),w(P,null,I(e.groupChoices,u=>(a(),m(W,{key:u.title,class:"browserGroupCheckbox",density:"compact","hide-details":"auto","model-value":e.showSettings[u.value],"true-value":!0,label:`Show ${u.title}`,"onUpdate:modelValue":b=>o.setShow(u.value,b)},null,8,["model-value","label","onUpdate:modelValue"]))),128)),l(D),l(i),l(D),l(W,{class:"browserGroupCheckbox",density:"compact","hide-details":"auto","model-value":e.twentyFourHourTime,"true-value":!0,indeterminate:"",label:"Force 24 Hour Time","onUpdate:modelValue":t[0]||(t[0]=u=>o.set24HourTime(u))},null,8,["model-value"])],64)}const yo=y(_o,[["render",bo],["__scopeId","data-v-53fe153b"]]),wo={name:"BrowserSettingsDrawer",components:{SettingsDrawer:Qe,BrowserSettingsPanel:yo}};function So(e,t,r,h,n,o){const i=p("BrowserSettingsPanel"),u=p("SettingsDrawer");return a(),m(u,{title:"Browser",temporary:"","disable-resize-watcher":""},{panel:c(()=>[l(i)]),_:1})}const Bo=y(wo,[["render",So]]),vo={name:"BrowserContainerMenu",components:{ConfirmDialog:ut},props:{item:{type:Object,required:!0}},data(){return{mdiDotsVertical:me,showMenu:!1}},computed:{...S(_,{groupNames:e=>e.choices.static.groupNames}),verb(){return this.item.finished?"Unread":"Read"},confirmText(){return`Mark ${this.verb}`},markReadText(){const e=["Mark"];this.item.group!="c"&&e.push("Entire");let t=this.groupNames[this.item.group];return this.item.group!=="s"&&(t=t.slice(0,-1)),e.push(t,this.verb),e.join(" ")}},methods:{...T(_,["setBookmarkFinished"]),...T(he,["downloadIOSPWAFix"]),toggleRead:function(){this.setBookmarkFinished(this.item,!this.item.finished),this.showMenu=!1}}},Co={class:"background-soft-highlight"};function To(e,t,r,h,n,o){const i=p("ConfirmDialog");return a(),m(mt,{modelValue:n.showMenu,"onUpdate:modelValue":t[2]||(t[2]=u=>n.showMenu=u),"offset-y":"",top:""},{activator:c(({props:u})=>[l(Z,N({"aria-label":"action menu",class:"browserCardMenuIcon cardControlButton",icon:"",title:"Action Menu",variant:"text"},u,{onClick:t[0]||(t[0]=pe(()=>{},["prevent"]))}),{default:c(()=>[l(C,null,{default:c(()=>[d(g(n.mdiDotsVertical),1)]),_:1})]),_:2},1040)]),default:c(()=>[s("div",Co,[r.item.group==="c"?(a(),m(M,{key:0,onClick:o.toggleRead},{default:c(()=>[l(R,null,{default:c(()=>[d(g(o.markReadText),1)]),_:1})]),_:1},8,["onClick"])):(a(),m(i,{key:1,"button-text":o.markReadText,"title-text":o.markReadText,"confirm-text":o.confirmText,"object-name":r.item.name,onConfirm:o.toggleRead,onCancel:t[1]||(t[1]=u=>n.showMenu=!1)},null,8,["button-text","title-text","confirm-text","object-name","onConfirm"]))])]),_:1},8,["modelValue"])}const ko=y(vo,[["render",To]]),Mo={name:"BrowserCardControls",components:{BrowserCardMenu:ko,MetadataButton:Ze},props:{item:{type:Object,required:!0},eyeOpen:{type:Boolean,required:!0}},data(){return{mdiEye:A,mdiEyeOff:q}},computed:{eyeIcon:function(){return this.eyeOpen?A:q}}},Vo={class:"cardControls"};function $o(e,t,r,h,n,o){const i=p("MetadataButton"),u=p("BrowserCardMenu");return a(),w("div",Vo,[r.item.group==="c"?(a(),m(C,{key:0,class:"eye"},{default:c(()=>[d(g(o.eyeIcon),1)]),_:1})):B("",!0),l(i,{group:r.item.group,book:r.item,children:r.item.childCount},null,8,["group","book","children"]),l(u,{item:r.item},null,8,["item"])])}const Po=y(Mo,[["render",$o],["__scopeId","data-v-dc244d15"]]),Io=new Set(["community_rating","critical_rating"]),xo=new Set(["date"]),Fo=new Set(["bookmark_updated_at","created_at","updated_at"]),No={name:"OrderByCaption",props:{item:{type:Object,required:!0}},computed:{...S(_,{orderBy:e=>e.settings.orderBy,twentyFourHourTime:e=>e.settings.twentyFourHourTime,topGroup:e=>e.settings.topGroup}),orderValue(){let e=this.item.orderValue;try{if(this.orderBy===void 0||this.orderBy===null||this.orderBy==="sort_name"&&(this.item.group!=="c"||this.topGroup!=="f")||this.orderBy==="filename"&&this.item.group==="f"||this.orderBy==="story_arc_number"&&this.item.group==="a"||e===null||e===void 0)e="";else if(xo.has(this.orderBy)){const t=new Date(e);e=_e.format(t)}else this.orderBy=="search_score"?e=z.format(Math.round(Number.parseFloat(e)*10)):Fo.has(this.orderBy)?e=fe(e,this.twentyFourHourTime,!0):this.orderBy=="page_count"?e=`${z.format(e)} pages`:this.orderBy=="size"?e=et(Number.parseInt(e,10)):Io.has(this.orderBy)&&(e=`★ ${e}`)}catch(t){console.debug(t)}return e}}},Oo=["innerHTML"];function Ro(e,t,r,h,n,o){return o.orderValue?(a(),w("div",{key:0,class:"orderCaption text-caption",innerHTML:o.orderValue},null,8,Oo)):B("",!0)}const Do=y(No,[["render",Ro],["__scopeId","data-v-81602057"]]),Ho={name:"BrowserCardSubtitle",props:{item:{type:Object,required:!0}},computed:{...S(_,{orderByName:e=>e.settings.orderBy=="sort_name",topGroup:e=>e.settings.topGroup,showSeries:e=>e.settings.show.s,showVolume:e=>e.settings.show.v,zeroPad:e=>e.page.zeroPad}),seriesName(){return(this.topGroup==="a"||this.orderByName&&!this.showSeries)&&["c","v"].includes(this.item.group)&&this.item.seriesName?this.item.seriesName:!1},volumeName(){return(this.topGroup==="a"||this.orderByName&&!this.showVolume)&&this.item.group==="c"&&this.item.volumeName?U(this.item.volumeName):!1},headerName:function(){if(this.item.ids&&this.item.ids.length>1)return"Multiple";let e;switch(this.item.group){case"i":e=this.item.publisherName;break;case"v":e=this.item.seriesName;break;case"c":e=this.$route.params.group==="f"?tt(this.item,this.zeroPad):ot(this.item,this.zeroPad);break;default:e=""}return e},displayName:function(){return this.item.group==="v"?U(this.item.name):this.item.name},linkLabel:function(){let e="";return e+=this.item.group==="c"?"Read":"Browse to",e+=" "+this.headerName,e}}},Lo={class:"browserLink cardSubtitle text-caption"},Uo={key:0,class:"seriesCaption"},Go={key:1,class:"volumeCaption"},Eo={key:2,class:"headerName"},Ao={class:"displayName"};function qo(e,t,r,h,n,o){return a(),w("div",Lo,[o.seriesName?(a(),w("div",Uo,g(o.seriesName),1)):B("",!0),o.volumeName?(a(),w("div",Go,g(o.volumeName),1)):B("",!0),o.headerName?(a(),w("div",Eo,g(o.headerName),1)):B("",!0),s("div",Ao,g(o.displayName),1)])}const zo=y(Ho,[["render",qo],["__scopeId","data-v-78d44c14"]]),jo=new Set(["iPad","iPad Simulator","iPhone","iPhone Simulator","iPod","iPod Simulator"]),Wo=jo.has(navigator.platform),Yo="ontouchstart"in window||navigator.maxTouchPoints>0||navigator.msMaxTouchPoints>0||window.matchMedia("(any-hover: none)").matches,Qo=ge({modelValue:Boolean,options:{type:Object,default:()=>({root:void 0,rootMargin:void 0,threshold:void 0})},...be(),...ye(),...we(),...Se({transition:"fade-transition"})},"VLazy"),Ko=Be()({name:"VLazy",directives:{intersect:ve},props:Qo(),emits:{"update:modelValue":e=>!0},setup(e,t){let{slots:r}=t;const{dimensionStyles:h}=Ce(e),n=Te(e,"modelValue");function o(i){n.value||(n.value=i)}return ke(()=>ee(l(e.tag,{class:["v-lazy",e.class],style:[h.value,e.style]},{default:()=>[n.value&&l(Ve,{transition:e.transition,appear:!0},{default:()=>{var i;return[(i=r.default)==null?void 0:i.call(r)]}})]}),[[Me("intersect"),{handler:o,options:e.options},null]])),{}}}),Q=100,Xo=-170,Jo={name:"BrowserCard",components:{BookCover:rt,BrowserCardControls:Po,BrowserCardSubtitle:zo,OrderByCaption:Do},props:{item:{type:Object,required:!0}},data(){return{doubleTapHovered:!Yo||Wo}},computed:{...S(_,{importMetadata:e=>e.page.adminFlags.importMetadata}),linkLabel(){let e="";return e+=this.item.group==="c"?"Read":"Browse to",e+=" "+this.item.name,e},ids(){return this.item.ids.join(",")},multiGroup(){return this.item.ids.length>1},toRoute(){return this.doubleTapHovered?this.item.group==="c"?st(this.item,this.importMetadata):{name:"browser",params:{group:this.item.group,pks:this.ids,page:1}}:{}},progressBackgroundColor(){return this.item.progress?this.$vuetify.theme.current.colors.row:"inherit"}},mounted(){this.scrollToMe()},methods:{scrollToMe:function(){if(!this.$route.hash||this.$route.hash.split("-")[1]!==String(this.ids))return;const e=this.$el;if(!e){console.warn("No element found to scroll to!");return}setTimeout(function(){e.scrollIntoView(),setTimeout(function(){window.scrollBy(0,Xo)},Q)},Q)}}},Zo={class:"browserCardTop"},er={key:1,class:"cardCoverOverlay"};function tr(e,t,r,h,n,o){const i=p("BookCover"),u=p("BrowserCardControls"),b=p("router-link"),v=p("BrowserCardSubtitle"),$=p("OrderByCaption");return a(),m(Ko,{id:`card-${o.ids}`,transition:"scale-transition"},{default:c(()=>[s("div",{class:"browserCardCoverWrapper",onClick:t[0]||(t[0]=O=>n.doubleTapHovered=!0)},[s("div",Zo,[l(i,{"cover-pk":r.item.coverPk,"cover-mtime":r.item.coverMtime||"",group:r.item.group,"child-count":r.item.childCount,finished:r.item.finished,"multi-group":o.multiGroup},null,8,["cover-pk","cover-mtime","group","child-count","finished","multi-group"]),o.toRoute?(a(),m(b,{key:0,class:"cardCoverOverlay",to:o.toRoute,"aria-label":o.linkLabel},{default:c(()=>[l(u,{item:r.item,"eye-open":!0},null,8,["item"])]),_:1},8,["to","aria-label"])):(a(),w("div",er,[l(u,{item:r.item,"eye-open":!1},null,8,["item"])])),ee(l(E,{class:"bookCoverProgress","background-color":o.progressBackgroundColor,"model-value":r.item.progress,"aria-label":`${r.item.progress}% read`,rounded:"",height:"2"},null,8,["background-color","model-value","aria-label"]),[[$e,r.item.progress]]),l(v,{item:r.item},null,8,["item"])]),l($,{item:r.item},null,8,["item"])])]),_:1},8,["id"])}const or=y(Jo,[["render",tr],["__scopeId","data-v-cecb46f2"]]),rr={name:"EmptyState",data(){return{mdiOpenInNew:K,mdiCloseCircleOutline:te}},computed:{...k(V,["isCodexViewable","isUserAdmin"]),...S(V,{registration:e=>e.adminFlags.registration}),...k(_,["isFiltersClearable"]),...S(_,{librariesExist:e=>e.page.librariesExist}),empty(){let e={};return this.librariesExist?(e.headline="No Comics Found",e.title="For these filter and search settings",e.icon=Pe):(e.headline="No Libraries Exist",this.isUserAdmin?e.title="Use the top right ☰ menu to navigate to the admin panel and add a comic library":e.title="An administrator must add some comics libraries",e.icon=Ie),e},showLinkToReadmeAdmin(){return!this.librariesExist&&this.isUserAdmin}},methods:{...T(_,["clearFilters"])}},sr={key:0},ar={href:"https://github.com/ajslater/codex#-administration",target:"_blank"};function nr(e,t,r,h,n,o){return a(),m(ht,{class:"empty",headline:o.empty.headline,title:o.empty.title,icon:o.empty.icon},{default:c(()=>[o.showLinkToReadmeAdmin?(a(),w("div",sr,[d(" See the "),s("a",ar,[d("README "),l(C,null,{default:c(()=>[d(g(n.mdiOpenInNew),1)]),_:1})]),d(" for help ")])):B("",!0),e.isFiltersClearable?(a(),m(Z,{key:1,class:"clearFilter",onClick:t[0]||(t[0]=i=>e.clearFilters(!0))},{default:c(()=>[d(" Clear Filters and Search"),l(C,{icon:n.mdiCloseCircleOutline},null,8,["icon"])]),_:1})):B("",!0)]),_:1},8,["headline","title","icon"])}const ir=y(rr,[["render",nr],["__scopeId","data-v-08e4ff8c"]]),lr={name:"BrowserMain",components:{BrowserCard:or,BrowserEmptyState:ir,PlaceholderLoading:Ke},computed:{...S(V,{nonUsers:e=>e.adminFlags.nonUsers}),...k(V,["isCodexViewable"]),...k(_,["isSearchMode"]),...S(_,{librariesExist:e=>e.page.librariesExist,showPlaceHolder(e){return this.nonUsers===void 0||this.isCodexViewable&&(this.librariesExist==null||!e.browserPageLoaded)},cards:e=>[...e.page.groups??[],...e.page.books??[]],numPages:e=>e.page.numPages,query:e=>e.settings.q,isSearchOpen:e=>e.isSearchOpen}),browsePaneClasses(){return{padFooter:this.numPages>1,browsePaneSearch:this.isSearchOpen}},showBrowseItems(){return this.cards&&this.cards.length>0&&this.isCodexViewable&&!this.showPlaceHolder},searchLimitMessage(){let e="";if(!this.query)return e;const t=+this.$route.params.page,r=100*t;return this.showPlaceHolder?e+=`Searching for ${r} entries...`:this.numPages>t&&(e+=`Search results truncated to ${r} entries.`,e+=" Advance the page to look for more."),e}},methods:{...T(_,["loadBrowserPage"]),refresh(){this.loadBrowserPage()}}},cr={key:0,id:"browsePaneContainer"},dr={key:3,id:"searchLimitMessage",title:"You may change this in the settings drawer"};function ur(e,t,r,h,n,o){const i=p("BrowserCard"),u=p("PlaceholderLoading"),b=p("BrowserEmptyState");return a(),m(ne,{id:"browsePane",class:x(o.browsePaneClasses)},{default:c(()=>[o.showBrowseItems?(a(),w("div",cr,[(a(!0),w(P,null,I(e.cards,v=>(a(),m(i,{key:`${v.group}${v.ids}`,item:v},null,8,["item"]))),128))])):e.showPlaceHolder?(a(),m(u,{key:1,class:"placeholder"})):(a(),m(b,{key:2})),o.searchLimitMessage?(a(),w("div",dr,g(o.searchLimitMessage),1)):B("",!0)]),_:1},8,["class"])}const mr=y(lr,[["render",ur],["__scopeId","data-v-fa3ab4ce"]]),hr={name:"BrowserBreadcrumb",props:{item:{type:Object,required:!0}}},pr={class:"crumb"},_r={key:0,class:"crumbDivider"};function fr(e,t,r,h,n,o){const i=p("router-link");return a(),w("span",pr,[r.item.divider?(a(),w("span",_r," / ")):B("",!0),l(i,{title:r.item.tooltip,to:r.item.to,class:"link"},{default:c(()=>[r.item.icon?(a(),m(C,{key:0},{default:c(()=>[d(g(r.item.icon),1)]),_:1})):B("",!0),s("span",null,g(r.item.title),1)]),_:1},8,["title","to"])])}const gr=y(hr,[["render",fr],["__scopeId","data-v-9625af3c"]]),br={f:"Folder",a:"Story Arc",r:"Top",p:"Publisher",i:"Imprint",s:"Series",v:"Volume"},yr={f:xe,r:oe,p:Fe,i:Ne,s:Oe},wr={name:"BrowserBreadcrumbs",components:{Breadcrumb:gr},computed:{...S(_,{breadcrumbs(e){const t=[];if(!e.page.breadcrumbs)return t;let r=!0,h=!0,n="";for(const o of e.page.breadcrumbs){[h,r]=this.getDivider(r);const i=this.getTo(o,n),u=o.name?o.name:"",b=o.group,v=this.getIcon(o.pks,u,b),$=o.pks==="0"?"Top":br[b],O={to:i,title:u,icon:v,tooltip:$,divider:h};t.push(O),n=o.pks}return t},headCrumbs(){let e;const t=this.breadcrumbs;return t.length>1?e=t.slice(0,-1):e=t,e},tailCrumb(){let e="";const t=this.breadcrumbs;return t.length>1&&(e=t[t.length-1]),e}})},methods:{getDivider(e){let t;return e?(t=!1,e=!1):t=!0,[t,e]},getTo(e,t){const r={...e};delete r.name;const h={name:"browser",params:r};return t&&(h.hash=`#card-${t}`),h},getIcon(e,t,r){let h;return e==="0"?h=oe:t?h="":h=yr[r],h}}},Sr={id:"crumbs"},Br={id:"headCrumbs"},vr={id:"tailCrumbWrapper"};function Cr(e,t,r,h,n,o){const i=p("Breadcrumb");return a(),w("span",Sr,[s("span",Br,[(a(!0),w(P,null,I(e.headCrumbs,u=>(a(),m(i,{key:u.to,item:u},null,8,["item"]))),128))]),s("span",vr,[e.tailCrumb?(a(),m(i,{key:0,id:"tailCrumb",item:e.tailCrumb},null,8,["item"])):B("",!0)])])}const Tr=y(wr,[["render",Cr],["__scopeId","data-v-f10a5874"]]),kr={name:"BrowserHeader",components:{Breadcrumbs:Tr}};function Mr(e,t,r,h,n,o){const i=p("Breadcrumbs");return a(),m(L,{id:"breadcrumbsToolbar",height:24,class:"titleToolbar",elevation:"8"},{default:c(()=>[l(i)]),_:1})}const Vr=y(kr,[["render",Mr],["__scopeId","data-v-fd83bc5e"]]),$r={name:"BrowserHeader",head(){return{meta:[{hid:"description",name:"description",content:["browse comics",this.longBrowserTitlePrefix,this.longBrowseTitleMain,this.longBrowseTitleSuffix].filter(Boolean).join(" ")}]}},computed:{...S(_,{browserTitle:e=>e.page.title,groupNames:e=>e.choices.static.groupNames,modelGroup:e=>e.page.modelGroup}),...k(V,["isUserAdmin"]),title(){let e;if(Number(this.$route.params.pks)===0)e="All";else{let t=[];const{groupName:r,groupCount:h}=this.browserTitle,o=this.$route.params.group==="v"?U(r):r;if(o&&t.push(o),h){const i=`of ${h}`;t.push(i)}e=t.join(" ")}return e},subtitle(){return this.$route.params.group==="f"?"":this.groupNames[this.modelGroup]}}};function Pr(e,t,r,h,n,o){return a(),m(L,{id:"browserToolbarTitle",height:24,"extension-height":24,elevation:"8"},re({default:c(()=>[l(Y,{class:"browserToolbarTitle"},{default:c(()=>[d(g(o.title),1)]),_:1})]),_:2},[o.subtitle?{name:"extension",fn:c(()=>[l(Y,{class:"browserToolbarTitle browserToolbarSubtitle"},{default:c(()=>[d(g(o.subtitle),1)]),_:1})]),key:"0"}:void 0]),1024)}const Ir=y($r,[["render",Pr],["__scopeId","data-v-9e3d1c21"]]),xr=10,Fr={name:"BrowserSearchCombobox",data(){return{mdiMagnify:H,menu:!1,query:"",items:[""]}},computed:{...S(_,{stateQ:e=>e.settings.q})},watch:{stateQ(e){this.query=e,this.addToMenu(e)}},beforeMount(){this.query=this.stateQ},methods:{...T(_,["setSettings","startSearchHideTimer"]),addToMenu(e){if(!e||this.items.includes(e))return;const t=this.items[0]===""?[]:this.items;t.unshift(e),this.items=t.slice(0,xr)},doSearch(e=!1){this.menu=!1;const r={q:this.query?this.query.trim():""};e&&(r.orderBy="sort_name",r.orderReverse=!1),this.setSettings(r)},doEscape(){this.menu=!1,this.startSearchHideTimer()}}};function Nr(e,t,r,h,n,o){return a(),m(_t,{id:"searchbox",ref:"searchbox",modelValue:n.query,"onUpdate:modelValue":t[0]||(t[0]=i=>n.query=i),menu:n.menu,"onUpdate:menu":t[1]||(t[1]=i=>n.menu=i),items:n.items,autofocus:"","aria-label":"search",clearable:"",density:"compact","full-width":"","hide-details":"auto","hide-selected":"","menu-props":{maxHeight:void 0},"no-filter":"","prepend-inner-icon":n.mdiMagnify,variant:"solo","onClick:clear":t[2]||(t[2]=i=>o.doSearch(!0)),"onClick:prependInner":o.doSearch,onKeydown:[j(o.doSearch,["enter"]),j(o.doEscape,["esc"])]},null,8,["modelValue","menu","items","prepend-inner-icon","onClick:prependInner","onKeydown"])}const Or=y(Fr,[["render",Nr]]),Rr={name:"BrowserSearchToolbar",components:{BrowserSearchCombobox:Or},computed:{...S(_,{isSearchOpen:e=>e.isSearchOpen})}};function Dr(e,t,r,h,n,o){const i=p("BrowserSearchCombobox");return a(),m(Re,null,{default:c(()=>[e.isSearchOpen?(a(),m(L,{key:0,id:"browserToolbarSearch",density:"compact",height:64},{default:c(()=>[l(G,{id:"searchToolbarItems"},{default:c(()=>[l(i)]),_:1})]),_:1})):B("",!0)]),_:1})}const Hr=y(Rr,[["render",Dr],["__scopeId","data-v-a90b90f9"]]),Lr=Ye.browser.vuetifyNullCode,Ur={name:"BrowserFilterSubMenu",props:{name:{type:String,required:!0}},emits:["selected"],data(){return{mdiChevronLeft:se,mdiChevronRight:De,mdiChevronRightCircle:He,query:"",nullCode:Lr}},computed:{...S(_,{choices(e){return e.choices.dynamic[this.name]},readingDirectionTitles:e=>e.choices.static.readingDirection,identifierTypeTitles:e=>e.choices.static.identifierType,filter(e){return e.settings.filters[this.name]}}),...ae(_,["filterMode"]),hasNone(){for(const e of this.choices)if(at.has(e.pk))return!0;return!1},vuetifyItems(){return nt(this.choices,this.query)},title:function(){return ft(this.name)},lowerTitle:function(){return this.title.toLowerCase()}},methods:{...T(_,["identifierTypeTitle","loadFilterChoices"]),setUIFilterMode(e){this.filterMode=e,this.query="",e!=="base"&&typeof this.choices!="object"&&this.loadFilterChoices(e)},selected(e){const t={filters:{[this.name]:e}};this.$emit("selected",t)},itemTitle:function(e){return this.name==="readingDirection"?this.readingDirectionTitles[e.value]:this.name==="identifierType"?this.identifierTypeTitle(e.title):e.title}}},Gr={key:0},Er={class:"filterHeader"};function Ar(e,t,r,h,n,o){return a(),w("div",null,[l(Le,{"hide-on-leave":""},{default:c(()=>[e.filterMode==="base"?(a(),m(M,{key:0,density:"compact",variant:"plain",onClick:t[0]||(t[0]=i=>o.setUIFilterMode(r.name))},{default:c(()=>[l(R,{class:"filterMenu"},{default:c(()=>[d(g(o.title)+" ",1),e.filter&&e.filter.length>0?(a(),m(C,{key:0,class:"nameChevron"},{default:c(()=>[d(g(n.mdiChevronRightCircle),1)]),_:1})):(a(),m(C,{key:1,class:"nameChevron"},{default:c(()=>[d(g(n.mdiChevronRight),1)]),_:1}))]),_:1})]),_:1})):B("",!0)]),_:1}),l(Ge,{"hide-on-leave":""},{default:c(()=>[e.filterMode===r.name?(a(),w("div",Gr,[s("header",Er,[l(M,{onClick:t[1]||(t[1]=i=>o.setUIFilterMode("base"))},{default:c(()=>[l(R,{class:"filterTitle"},{default:c(()=>[l(C,null,{default:c(()=>[d(g(n.mdiChevronLeft),1)]),_:1}),d(g(o.lowerTitle),1)]),_:1})]),_:1}),typeof e.choices=="object"?(a(),m(gt,{key:0,modelValue:n.query,"onUpdate:modelValue":t[2]||(t[2]=i=>n.query=i),placeholder:"Filter","full-width":"",density:"compact",filled:"",rounded:"","hide-details":"auto",onFocus:t[3]||(t[3]=i=>e.filterMode=r.name)},null,8,["modelValue"])):(a(),m(E,{key:1,class:"filterValuesProgress",rounded:"",indeterminate:""}))]),typeof e.choices=="object"?(a(),m(Ue,{key:0,"model-value":e.filter,class:"filterGroup overflow-y-auto",density:"compact",multiple:"",items:o.vuetifyItems,"onUpdate:selected":o.selected},{default:c(()=>[o.hasNone?(a(),m(M,{key:-1,title:"None",value:-1,class:"noneItem",density:"compact",variant:"plain"})):B("",!0),(a(!0),w(P,null,I(o.vuetifyItems,i=>(a(),m(M,{key:i.value,title:o.itemTitle(i),value:i.value,class:x({noneItem:+i.value==n.nullCode}),density:"compact",variant:"plain"},null,8,["title","value","class"]))),128))]),_:1},8,["model-value","items","onUpdate:selected"])):B("",!0)])):B("",!0)]),_:1})])}const qr=y(Ur,[["render",Ar],["__scopeId","data-v-8ccefed1"]]),zr={name:"BrowserFilterBySelect",components:{BrowserFilterSubMenu:qr,ToolbarSelect:F},extends:F,data(){return{mdiCloseCircleOutline:te,mdiFilterMultipleOutline:Ee,menu:!1}},computed:{...k(_,["filterByChoicesMaxLen","isDynamicFiltersSelected","isFiltersClearable"]),...S(_,{bookmarkChoices:e=>e.choices.static.bookmark,bookmarkFilter:e=>e.settings.filters.bookmark||e.choices.static.bookmark[0],filters:e=>e.settings.filters,filterMenuClass:function(e){let t="filterMenu";return e.filterMode!=="base"&&(t+="Hidden"),t},dynamicChoiceNames:function(e){if(e.choices.dynamic===void 0)return;const t=[];for(const[r,h]of Object.entries(e.choices.dynamic))h&&t.push(r);return t}}),...ae(_,["filterMode"]),padRight(){return this.$vuetify.display.xs&&this.bookmarkFilter=="ALL"}},methods:{...T(_,["clearFilters","loadAvailableFilterChoices","setSettings"]),onUpdateModelValue(e){const t={filters:{bookmark:e}};this.onSubMenuSelected(t)},onSubMenuSelected(e){this.menu=!1,this.setSettings(e),this.filterMode="base"},onClear(){this.clearFilters()},onMenu(e){e&&this.dynamicChoiceNames===void 0&&this.loadAvailableFilterChoices()}}},jr={class:"codexSelection"};function Wr(e,t,r,h,n,o){const i=p("BrowserFilterSubMenu"),u=p("ToolbarSelect");return a(),m(u,{menu:n.menu,"onUpdate:menu":[t[0]||(t[0]=b=>n.menu=b),o.onMenu],class:x(["filterBySelect",{filterBySelectXSmall:o.padRight}]),"select-label":"filter by",items:e.bookmarkChoices,"menu-props":{contentClass:e.filterMenuClass,maxHeight:void 0},"model-value":e.bookmarkFilter,"max-select-len":e.filterByChoicesMaxLen-1,"onUpdate:modelValue":o.onUpdateModelValue},{selection:c(({item:b})=>[s("span",jr,g(b.title),1),e.isDynamicFiltersSelected?(a(),m(C,{key:0,class:"filterSuffix",size:"x-small"},{default:c(()=>[d(g(n.mdiFilterMultipleOutline),1)]),_:1})):B("",!0)]),"prepend-item":c(()=>[e.isFiltersClearable?(a(),m(M,{key:0,density:"compact",variant:"plain",class:"clearFilter",onClick:o.onClear},{default:c(()=>[d(" Clear Filter"),l(C,{class:"clearIcon"},{default:c(()=>[d(g(n.mdiCloseCircleOutline),1)]),_:1})]),_:1},8,["onClick"])):B("",!0)]),"append-item":c(()=>[l(D),e.dynamicChoiceNames===void 0?(a(),m(M,{key:0,density:"compact",variant:"plain"},{default:c(()=>[l(E,{indeterminate:"",rounded:""})]),_:1})):e.dynamicChoiceNames.length>0?(a(!0),w(P,{key:1},I(e.dynamicChoiceNames,b=>(a(),m(i,{key:b,name:b,onSelected:o.onSubMenuSelected},null,8,["name","onSelected"]))),128)):(a(),m(M,{key:2,class:"noChoices",density:"compact",variant:"plain"},{default:c(()=>[d(" No filters available ")]),_:1}))]),_:1},8,["menu","class","items","menu-props","model-value","max-select-len","onUpdate:modelValue","onUpdate:menu"])}const Yr=y(zr,[["render",Wr],["__scopeId","data-v-ab2ec792"]]),Qr={name:"BrowseOrderBySelect",components:{ToolbarSelect:F},extends:F,computed:{...k(_,["orderByChoices","orderByChoicesMaxLen"]),...S(_,{orderBySetting:e=>e.settings.orderBy}),reverseValues(){const e=new Set;for(const t of this.orderByChoices)t.reverse&&e.add(t.value);return e},orderBy:{get(){return this.orderBySetting},set(e){const t={orderBy:e,orderReverse:this.reverseValues.has(e)};this.setSettings(t)}}},methods:{...T(_,["setSettings"])}};function Kr(e,t,r,h,n,o){const i=p("ToolbarSelect");return a(),m(i,N({modelValue:o.orderBy,"onUpdate:modelValue":t[0]||(t[0]=u=>o.orderBy=u),class:"orderBySelect","select-label":"order by",items:e.orderByChoices,"max-select-len":e.orderByChoicesMaxLen-4},e.$attrs),null,16,["modelValue","items","max-select-len"])}const Xr=y(Qr,[["render",Kr]]),Jr={name:"ToolbarButton",components:{ScaleButton:Xe}};function Zr(e,t,r,h,n,o){const i=p("ScaleButton");return a(),m(i,{variant:"plain",class:"toolbarButton"},re({_:2},[I(e.$slots,(u,b)=>({name:b,fn:c(v=>[Ae(e.$slots,b,N({props:u},v),void 0,!0)])}))]),1024)}const ie=y(Jr,[["render",Zr],["__scopeId","data-v-902216a8"]]),es={name:"BrowseOrderReverseButton",components:{ToolbarButton:ie},data(){return{mdiSortVariant:qe}},computed:{...S(_,{orderReverseSetting:e=>e.settings.orderReverse}),title(){return this.orderReverseSetting?"order descending":"order ascending"},iconClasses(){return{inverted:!this.orderReverseSetting}}},methods:{...T(_,["setSettings"]),toggleOrderReverse(){const e={orderReverse:!this.orderReverseSetting};this.setSettings(e)}}};function ts(e,t,r,h,n,o){const i=p("ToolbarButton");return a(),m(i,{class:"orderReverseButton",icon:"",title:o.title,onClick:o.toggleOrderReverse},{default:c(()=>[l(C,{class:x(o.iconClasses)},{default:c(()=>[d(g(n.mdiSortVariant),1)]),_:1},8,["class"])]),_:1},8,["title","onClick"])}const os=y(es,[["render",ts],["__scopeId","data-v-009bef9e"]]),rs={name:"BrowseOrderReverseButton",components:{ToolbarButton:ie},data(){return{mdiMagnify:H}},computed:{...S(_,{isSearchOpen:e=>e.isSearchOpen,isQuery:e=>!!e.settings.q})},methods:{...T(_,["setIsSearchOpen"])}};function ss(e,t,r,h,n,o){const i=p("ToolbarButton");return e.isSearchOpen?B("",!0):(a(),m(i,N({key:0,class:"searchButton",icon:n.mdiMagnify},e.$attrs,{title:"Search",onClick:t[0]||(t[0]=u=>e.setIsSearchOpen(!0))}),null,16,["icon"]))}const as=y(rs,[["render",ss]]),ns=new Set(["a","f"]),is={name:"BrowserTopGroupSelect",components:{ToolbarSelect:F},extends:F,data(){return{DIVIDED_VALUES:ns}},computed:{...S(_,{topGroupSetting:e=>e.settings.topGroup}),...k(_,["topGroupChoices","topGroupChoicesMaxLen"]),topGroup:{get(){return this.topGroupSetting},set(e){const t={topGroup:e};this.setSettings(t)}}},methods:{...T(_,["setSettings"])}};function ls(e,t,r,h,n,o){const i=p("ToolbarSelect");return a(),m(i,{modelValue:o.topGroup,"onUpdate:modelValue":t[0]||(t[0]=u=>o.topGroup=u),class:"topGroupSelect","select-label":"top group",items:e.topGroupChoices,"max-select-len":e.topGroupChoicesMaxLen-2.25},{item:c(({item:u,props:b})=>[n.DIVIDED_VALUES.has(u.value)?(a(),m(D,{key:0})):B("",!0),l(M,N(b,{density:"compact",variant:"plain",title:u.title,value:u.value}),null,16,["title","value"])]),_:1},8,["modelValue","items","max-select-len"])}const cs=y(is,[["render",ls]]),ds={name:"BrowserTopToolbar",components:{BrowserFilterBySelect:Yr,BrowserSearchButton:as,BrowserTopGroupSelect:cs,BrowserOrderBySelect:Xr,BrowserOrderReverseButton:os,SettingsDrawerButton:Je},data(){return{mdiMagnify:H,mdiFamilyTree:ze,browseMode:"filter"}}};function us(e,t,r,h,n,o){const i=p("BrowserTopGroupSelect"),u=p("BrowserFilterBySelect"),b=p("BrowserOrderBySelect"),v=p("BrowserOrderReverseButton"),$=p("BrowserSearchButton"),O=p("SettingsDrawerButton");return a(),m(L,{id:"browserToolbarTop",density:"compact",height:48},{default:c(()=>[l(G,{id:"browserToolbarLeftItems"},{default:c(()=>[l(i),l(u),l(b),l(v),l($)]),_:1}),l(it),l(G,null,{default:c(()=>[l(O,{scale:!0})]),_:1})]),_:1})}const ms=y(ds,[["render",us],["__scopeId","data-v-d0806c33"]]),hs={name:"BrowserHeadToolbars",components:{BrowserBreadcrumbsToolbar:Vr,BrowserSearchToolbar:Hr,BrowserTopToolbar:ms,BrowserTitleToolbar:Ir}},ps={id:"codexHeadToolbarWrapper"};function _s(e,t,r,h,n,o){const i=p("BrowserTopToolbar"),u=p("BrowserSearchToolbar"),b=p("BrowserBreadcrumbsToolbar"),v=p("BrowserTitleToolbar");return a(),w("header",ps,[l(i,{class:"codexHeadToolbar"}),l(u,{class:"codexHeadToolbar"}),l(b,{class:"codexHeadToolbar"}),l(v,{class:"codexHeadToolbar"})])}const fs=y(hs,[["render",_s],["__scopeId","data-v-508c4760"]]),gs={name:"BrowserNavButton",components:{PaginationNavButton:lt},props:{back:{type:Boolean,required:!0},more:{type:Boolean,default:!1}},data(){return{mdiChevronLeft:se,mdiMagnify:H,routeParams:this.$route.params,page:+this.$route.params.page}},computed:{...k(_,["isSearchMode"]),...S(_,{numPages:e=>e.page.numPages}),increment(){return this.back?-1:1},toPage(){return this.page+this.increment},title(){return this.showMore?"Search for More":"Page "+this.toPage},toRoute(){const e=this.toPage;return{params:{...this.routeParams,page:e}}},classes(){return{leftButton:this.back,rightButton:!this.back}},disabled(){return this.back&&this.page<=1||!this.back&&this.page>=this.numPages},showMore(){return this.more&&this.isSearchMode&&this.toPage===this.numPages}},watch:{$route(e){this.params=e.params,this.page=+e.params.page}}};function bs(e,t,r,h,n,o){const i=p("PaginationNavButton");return a(),m(i,{key:o.toRoute,class:x(o.classes),disabled:o.disabled,title:o.title,to:o.toRoute},{default:c(()=>[o.showMore?(a(),m(C,{key:0},{default:c(()=>[d(g(n.mdiMagnify),1)]),_:1})):B("",!0),l(C,{class:x({flipHoriz:!r.back})},{default:c(()=>[d(g(n.mdiChevronLeft),1)]),_:1},8,["class"])]),_:1},8,["class","disabled","title","to"])}const ys=y(gs,[["render",bs],["__scopeId","data-v-07a4e153"]]),ws={name:"BrowserNavToolbar",components:{BrowserNavButton:ys,PaginationSlider:ct,PaginationToolbar:dt},computed:{...S(_,{numPages:e=>e.page.numPages})},methods:{...T(_,["routeToPage"]),onUpdate(e){this.routeToPage(e)}}};function Ss(e,t,r,h,n,o){const i=p("BrowserNavButton"),u=p("PaginationSlider"),b=p("PaginationToolbar");return e.numPages>1?(a(),m(b,{key:0},{default:c(()=>[l(i,{back:!0}),l(u,{"model-value":+e.$route.params.page,min:1,max:e.numPages,step:1,"onUpdate:modelValue":t[0]||(t[0]=v=>e.routeToPage(v))},null,8,["model-value","max"]),l(i,{back:!1,more:!0})]),_:1})):B("",!0)}const Bs=y(ws,[["render",Ss]]),vs={name:"MainBrowser",components:{BrowserHeadToolbars:fs,BrowserMain:mr,BrowserNavToolbar:Bs,BrowserSettingsDrawer:Bo,Unauthorized:pt},computed:{...S(V,{user:e=>e.user}),...k(V,["isCodexViewable"])},watch:{$route:function(){window.scrollTo(0,0),this.loadBrowserPage()},user:function(){this.loadSettings()},isCodexViewable:function(){this.loadSettings()}},created(){this.loadSettings()},methods:{...T(_,["loadBrowserPage","loadSettings"])}};function Cs(e,t,r,h,n,o){const i=p("BrowserHeadToolbars"),u=p("BrowserMain"),b=p("BrowserNavToolbar"),v=p("BrowserSettingsDrawer"),$=p("Unauthorized");return e.isCodexViewable?(a(),m(ne,{key:0,id:"browser"},{default:c(()=>[l(i),l(u),l(b),l(v)]),_:1})):(a(),m($,{key:1}))}const qs=y(vs,[["render",Cs],["__scopeId","data-v-5e96f8ca"]]);export{qs as default};
|
|
1
|
+
import{_ as y,aF as le,aG as K,aH as ce,Q as p,R as a,P as m,T as c,L as l,aj as R,ah as C,ad as d,ai as g,aI as de,aJ as ue,ak as M,aK as s,aA as w,aB as I,M as P,aL as X,aM as J,ag as k,m as V,N as S,O as T,aN as D,aO as me,k as he,ao as Z,ap as N,aP as pe,aQ as A,aR as q,aD as B,aS as _e,aT as z,aU as fe,x as ge,E as be,aV as ye,au as we,aW as Se,G as Be,aX as ve,aY as Ce,as as Te,K as ke,aZ as ee,a_ as Me,a$ as Ve,b0 as $e,b1 as E,b2 as te,b3 as Pe,b4 as Ie,ae as x,b5 as oe,b6 as xe,b7 as Fe,b8 as Ne,af as Oe,b9 as re,ba as H,bb as j,bc as Re,bd as se,be as De,bf as He,bg as ae,bh as Le,bi as Ue,bj as Ge,bk as Ee,bl as Ae,bm as qe,bn as ze}from"./admin-drawer-panel-BNRI3VNZ.js";import{V as je}from"./VTable-icaTTwDw.js";import{V as We}from"./VDialog-DhRhufg-.js";import{u as _,C as Ye}from"./main-BJYrxs0x.js";import{V as W}from"./VCheckbox-H0aBoP9N.js";import{b as Qe,P as Ke,a as L,V as Y,c as Xe,S as Je}from"./settings-drawer-B433DlG2.js";import{M as Ze,p as et,f as U,g as tt,a as ot,B as rt,b as st,V as G,N as at,t as nt,T as F,c as it,P as lt,d as ct,e as dt}from"./pagination-toolbar-DcauC4Lw.js";import{C as ut}from"./confirm-dialog-C4NOgXW9.js";import{V as mt}from"./VSelect-DaalAg2L.js";import{a as ht,V as ne,U as pt}from"./unauthorized-DFTKS7Wr.js";import{V as _t}from"./VCombobox-CN1HkVdW.js";import{c as ft}from"./to-case-kUm8NPpW.js";import{V as gt}from"./VTextField-BzSMerR0.js";import"./VCheckboxBtn-CTJ47tuf.js";import"./VSelectionControl-wVVkmChP.js";import"./index-DUjeNg4x.js";import"./VSlideGroup-DCfSQ-Vx.js";import"./change-password-dialog-C-8Ixgjj.js";import"./filter-DrwUDlyj.js";const bt=[["characters","CSV","category"],["community_rating","Decimal","communityrating"],["contributor","CSV","author, creator, credit, person, people"],["country","String"],["created_at","DateTime","created"],["critical_rating","Decimal","criticalrating"],["day","Integer"],["date","Date"],["decade","Integer"],["file_type","String","type"],["genres","CSV","genre"],["identifier","CSV","id, nss"],["identifier_type","CSV","id_type, nid"],["imprint","String"],["issue","String","(Combined issue_number and issue_suffix)"],["issue_number","Decimal","number"],["issue_suffix","String"],["language","String"],["location","CSV","location"],["maturity_rating","String"],["monochrome","String","blackandwhite"],["month","Integer"],["reading_direction","String","direction"],["name","String","title"],["notes","String"],["original_format","String","format, orginalformat"],["path","String","folder, folders"],["page_count","Integer","pages, pagecount"],["publisher","String"],["reading_direction","String","direction"],["review","String"],["scan_info","String","scan, scaninfo"],["series","String"],["series_groups","CSV","seriesgroups"],["size","Integer"],["stories","CSV","story"],["story_arcs","CSV","storyarcs"],["summary","String","comments, description"],["tags","CSV","tag"],["tagger","String"],["teams","CSV","team"],["updated_at","Date","updated"],["volume","String"],["web","String"],["year","Integer"]],yt={name:"SearchHelp",components:{CloseButton:le},data(){return{mdiOpenInNew:K,mdiArchiveSearchOutline:ce,dialog:!1,FIELD_ROWS:bt}}},f=e=>(X("data-v-acc6a7f9"),e=e(),J(),e),wt={id:"searchHelp"},St=f(()=>s("h1",null,"Search Help",-1)),Bt={id:"fieldTableContainer"},vt=f(()=>s("h2",null,"Search Fields",-1)),Ct=f(()=>s("thead",null,[s("tr",null,[s("th",null,"Field"),s("th",null,"Type"),s("th",null,"Aliases")])],-1)),Tt={class:"aliasCol"},kt={id:"textContainer"},Mt=f(()=>s("h2",null,"Whoosh Query Parser",-1)),Vt={href:"https://whoosh.readthedocs.io/en/latest/querylang.html",target:"_blank"},$t=f(()=>s("h2",null,"Operators",-1)),Pt=f(()=>s("code",null,"and",-1)),It=f(()=>s("code",null,"or",-1)),xt=f(()=>s("code",null,"not",-1)),Ft=f(()=>s("code",null,"andnot",-1)),Nt=f(()=>s("code",null,"andmaybe",-1)),Ot=f(()=>s("code",null,"require",-1)),Rt=f(()=>s("h2",null,"Searching Fields",-1)),Dt=f(()=>s("p",null,[d(" Like Codex's filter selector menu, but more powerful. You may search on individual comic metadata fields. using a search token like "),s("code",null,"field:value"),d(". ")],-1)),Ht=f(()=>s("h3",null,"Dates and DateTimes",-1)),Lt={href:"https://whoosh.readthedocs.io/en/latest/dates.html#parsing-date-queries",target:"_blank"},Ut=f(()=>s("code",null,"YYYYMMDD",-1)),Gt=f(()=>s("code",null,"YYYMMDDHHmmSS",-1)),Et=f(()=>s("h3",null,"Single Quote complex field Queries",-1)),At=f(()=>s("p",null,[d(" Use "),s("em",null,"single"),d(" quotes to tell Codex that a complex or natural language phrase should be applied to a specific field ")],-1)),qt=f(()=>s("code",null," created:'this year' ",-1)),zt=f(()=>s("h3",null,"Size Byte Multipliers",-1)),jt=f(()=>s("p",null,[d(" The size field can make use of convenient byte multiplier suffixes like "),s("code",null,"kb"),d(" and "),s("code",null,"mb"),d(" as well as binary suffixes like "),s("code",null,"gib"),d(" and "),s("code",null,"tib"),d(". ")],-1)),Wt=f(()=>s("h3",null,"Ranges of Fields",-1)),Yt=f(()=>s("p",null,[d(" Whoosh uses brackets and the "),s("em",null,"uppercase"),d(" "),s("code",null,"TO"),d(" operator to delineate a range search. ")],-1)),Qt=f(()=>s("code",null,"updated:[last sunday TO 10am]",-1)),Kt=f(()=>s("p",null," You may leave out the upper or lower bound or use >, <, >=, <= operators. ",-1)),Xt=f(()=>s("code",null,"size:<50mb",-1)),Jt=f(()=>s("h3",null,"Multi Value Fields",-1)),Zt=f(()=>s("p",null,[d(" Fields marked type "),s("code",null,"CSV"),d(" in the table to the left may contain comma separated values. This filters by all the supplied values. Multi Value tokens look like: "),s("code",null,"field:term1,term2,term3")],-1)),eo=f(()=>s("h2",null,"Grouped Queries",-1)),to=f(()=>s("p",null,"Whoosh allows grouping of queries with parenthesis.",-1)),oo=f(()=>s("h2",null,"Example Search",-1)),ro=f(()=>s("p",null," This example search is more convoluted than most searches but uses many features for demonstration: ",-1)),so=f(()=>s("code",null,' (Holmes and Tesla date:>=1999-1-2 size:[10mib TO 1gb] Gadzooks) or "Captain Nemo" -Quartermain ',-1)),ao=f(()=>s("p",{style:{"margin-top":"1em"}},' Search for comics that contain Holmes and Tesla published after the second day of 1999 that are between 10 Mebibytes and 10 Gigabytes that also contain the word "Gadzooks" but also all comics with the the phrase "Captain Nemo" but no comics will contain the word "Quartermain". ',-1)),no=f(()=>s("h2",null,"Group and Sorting Behavior",-1)),io=f(()=>s("p",null," If the search field is empty and then you supply a search query for the first time, Codex navigates you to the to All Issues view and your sets your Sorted By selection to Search Score. If you prefer a different view you may change the group and sort selections after your you make your first search. ",-1)),lo=f(()=>s("h2",null,"Filter Behavior",-1)),co=f(()=>s("p",null,[d(" Codex applies "),s("em",null,"both"),d(" the Filter selection menu filters "),s("em",null,"and"),d(" the search query field filters to the search. Be sure to clear the filter selector or the search field if you prefer to apply only one of them. ")],-1)),uo=f(()=>s("h2",null,"Faster Browsing and Searching",-1)),mo=f(()=>s("p",null,' Browsing large collections using the group tree and filter dropdown is relatively fast. Searching with the search bar will always be slower. To aid search speed there is a setting for limiting search results which can help with large collections. To see all results, choose Search Result Limit: "Unlimited". ',-1));function ho(e,t,r,h,n,o){const i=p("CloseButton");return a(),m(We,{modelValue:n.dialog,"onUpdate:modelValue":t[2]||(t[2]=u=>n.dialog=u),"content-class":"browserSearchHelp",fullscreen:"",scrim:!1,transition:"dialog-bottom-transition"},{activator:c(({props:u})=>[l(M,de(ue(u)),{default:c(()=>[l(R,null,{default:c(()=>[l(C,null,{default:c(()=>[d(g(n.mdiArchiveSearchOutline),1)]),_:1}),d("Search Help ")]),_:1})]),_:2},1040)]),default:c(()=>[s("div",wt,[l(i,{class:"closeButton",title:"Close Help (esc)",size:"x-large",onClick:t[0]||(t[0]=u=>n.dialog=!1)}),St,s("div",Bt,[vt,l(je,{id:"fieldTable",class:"highlight-table"},{default:c(()=>[Ct,s("tbody",null,[(a(!0),w(P,null,I(n.FIELD_ROWS,u=>(a(),w("tr",{key:u[0]},[s("td",null,g(u[0]),1),s("td",null,g(u[1]),1),s("td",Tt,g(u[2]||""),1)]))),128))])]),_:1})]),s("div",kt,[Mt,s("p",null,[d(" Codex uses the Whoosh search engine to execute your text search queries. Whoosh operates much like other familiar search engines. As such, only some special features are documented on this page. To understand its full power, users are encouraged to read the "),s("a",Vt,[d("Whoosh Query Language "),l(C,{size:"small"},{default:c(()=>[d(g(n.mdiOpenInNew),1)]),_:1})]),d(" documentation. ")]),$t,d(" Whoosh has the "),Pt,d(", "),It,d(", "),xt,d(", "),Ft,d(", "),Nt,d(", and "),Ot,d(" operators. "),Rt,Dt,Ht,s("p",null,[d(" Whoosh parses Dates and DateTime values liberally. Read "),s("a",Lt,[d("Whoosh Parsing Date Queries "),l(C,{size:"small"},{default:c(()=>[d(g(n.mdiOpenInNew),1)]),_:1})]),d(" documentation for what formats and natural language phrases are accepted. If the format you try fails, the "),Ut,d(" and "),Gt,d(" formats are reliable. ")]),Et,At,qt,zt,jt,Wt,Yt,Qt,d(". "),Kt,Xt,d(". "),Jt,Zt,eo,to,oo,ro,so,ao,no,io,lo,co,uo,mo]),l(i,{class:"closeButton",title:"Close Help (esc)",size:"x-large",onClick:t[1]||(t[1]=u=>n.dialog=!1)})])]),_:1},8,["modelValue"])}const po=y(yt,[["render",ho],["__scopeId","data-v-acc6a7f9"]]),_o={name:"BrowserSettingsPanel",components:{SearchHelp:po},computed:{...k(V,["isCodexViewable"]),...S(V,{isUserAuthorized:e=>!!e.user}),...S(_,{groupChoices:e=>{var t,r;return((r=(t=e.choices)==null?void 0:t.static)==null?void 0:r.settingsGroup)||{}},showSettings:e=>{var t;return((t=e.settings)==null?void 0:t.show)||{}},twentyFourHourTime:e=>{var t;return((t=e.settings)==null?void 0:t.twentyFourHourTime)||!1},twentyFourHourTimeTitle:e=>{var t,r,h;return((h=(r=(t=e.choices)==null?void 0:t.static)==null?void 0:r.twentyFourHourTime)==null?void 0:h.title)||""}})},methods:{...T(_,["setSettings"]),setShow(e,t){const r={show:{[e]:t===!0}};this.setSettings(r)},set24HourTime(e){const t={twentyFourHourTime:e===!0};this.setSettings(t)}}},fo=e=>(X("data-v-53fe153b"),e=e(),J(),e),go=fo(()=>s("div",{id:"groupCaption",class:"text-caption"}," Show these groups when navigating the browse tree. ",-1));function bo(e,t,r,h,n,o){const i=p("SearchHelp");return a(),w(P,null,[go,(a(!0),w(P,null,I(e.groupChoices,u=>(a(),m(W,{key:u.title,class:"browserGroupCheckbox",density:"compact","hide-details":"auto","model-value":e.showSettings[u.value],"true-value":!0,label:`Show ${u.title}`,"onUpdate:modelValue":b=>o.setShow(u.value,b)},null,8,["model-value","label","onUpdate:modelValue"]))),128)),l(D),l(i),l(D),l(W,{class:"browserGroupCheckbox",density:"compact","hide-details":"auto","model-value":e.twentyFourHourTime,"true-value":!0,indeterminate:"",label:"Force 24 Hour Time","onUpdate:modelValue":t[0]||(t[0]=u=>o.set24HourTime(u))},null,8,["model-value"])],64)}const yo=y(_o,[["render",bo],["__scopeId","data-v-53fe153b"]]),wo={name:"BrowserSettingsDrawer",components:{SettingsDrawer:Qe,BrowserSettingsPanel:yo}};function So(e,t,r,h,n,o){const i=p("BrowserSettingsPanel"),u=p("SettingsDrawer");return a(),m(u,{title:"Browser",temporary:"","disable-resize-watcher":""},{panel:c(()=>[l(i)]),_:1})}const Bo=y(wo,[["render",So]]),vo={name:"BrowserContainerMenu",components:{ConfirmDialog:ut},props:{item:{type:Object,required:!0}},data(){return{mdiDotsVertical:me,showMenu:!1}},computed:{...S(_,{groupNames:e=>e.choices.static.groupNames}),verb(){return this.item.finished?"Unread":"Read"},confirmText(){return`Mark ${this.verb}`},markReadText(){const e=["Mark"];this.item.group!="c"&&e.push("Entire");let t=this.groupNames[this.item.group];return this.item.group!=="s"&&(t=t.slice(0,-1)),e.push(t,this.verb),e.join(" ")}},methods:{...T(_,["setBookmarkFinished"]),...T(he,["downloadIOSPWAFix"]),toggleRead:function(){this.setBookmarkFinished(this.item,!this.item.finished),this.showMenu=!1}}},Co={class:"background-soft-highlight"};function To(e,t,r,h,n,o){const i=p("ConfirmDialog");return a(),m(mt,{modelValue:n.showMenu,"onUpdate:modelValue":t[2]||(t[2]=u=>n.showMenu=u),"offset-y":"",top:""},{activator:c(({props:u})=>[l(Z,N({"aria-label":"action menu",class:"browserCardMenuIcon cardControlButton",icon:"",title:"Action Menu",variant:"text"},u,{onClick:t[0]||(t[0]=pe(()=>{},["prevent"]))}),{default:c(()=>[l(C,null,{default:c(()=>[d(g(n.mdiDotsVertical),1)]),_:1})]),_:2},1040)]),default:c(()=>[s("div",Co,[r.item.group==="c"?(a(),m(M,{key:0,onClick:o.toggleRead},{default:c(()=>[l(R,null,{default:c(()=>[d(g(o.markReadText),1)]),_:1})]),_:1},8,["onClick"])):(a(),m(i,{key:1,"button-text":o.markReadText,"title-text":o.markReadText,"confirm-text":o.confirmText,"object-name":r.item.name,onConfirm:o.toggleRead,onCancel:t[1]||(t[1]=u=>n.showMenu=!1)},null,8,["button-text","title-text","confirm-text","object-name","onConfirm"]))])]),_:1},8,["modelValue"])}const ko=y(vo,[["render",To]]),Mo={name:"BrowserCardControls",components:{BrowserCardMenu:ko,MetadataButton:Ze},props:{item:{type:Object,required:!0},eyeOpen:{type:Boolean,required:!0}},data(){return{mdiEye:A,mdiEyeOff:q}},computed:{eyeIcon:function(){return this.eyeOpen?A:q}}},Vo={class:"cardControls"};function $o(e,t,r,h,n,o){const i=p("MetadataButton"),u=p("BrowserCardMenu");return a(),w("div",Vo,[r.item.group==="c"?(a(),m(C,{key:0,class:"eye"},{default:c(()=>[d(g(o.eyeIcon),1)]),_:1})):B("",!0),l(i,{group:r.item.group,book:r.item,children:r.item.childCount},null,8,["group","book","children"]),l(u,{item:r.item},null,8,["item"])])}const Po=y(Mo,[["render",$o],["__scopeId","data-v-dc244d15"]]),Io=new Set(["community_rating","critical_rating"]),xo=new Set(["date"]),Fo=new Set(["bookmark_updated_at","created_at","updated_at"]),No={name:"OrderByCaption",props:{item:{type:Object,required:!0}},computed:{...S(_,{orderBy:e=>e.settings.orderBy,twentyFourHourTime:e=>e.settings.twentyFourHourTime,topGroup:e=>e.settings.topGroup}),orderValue(){let e=this.item.orderValue;try{if(this.orderBy===void 0||this.orderBy===null||this.orderBy==="sort_name"&&(this.item.group!=="c"||this.topGroup!=="f")||this.orderBy==="filename"&&this.item.group==="f"||this.orderBy==="story_arc_number"&&this.item.group==="a"||e===null||e===void 0)e="";else if(xo.has(this.orderBy)){const t=new Date(e);e=_e.format(t)}else this.orderBy=="search_score"?e=z.format(Math.round(Number.parseFloat(e)*10)):Fo.has(this.orderBy)?e=fe(e,this.twentyFourHourTime,!0):this.orderBy=="page_count"?e=`${z.format(e)} pages`:this.orderBy=="size"?e=et(Number.parseInt(e,10)):Io.has(this.orderBy)&&(e=`★ ${e}`)}catch(t){console.debug(t)}return e}}},Oo=["innerHTML"];function Ro(e,t,r,h,n,o){return o.orderValue?(a(),w("div",{key:0,class:"orderCaption text-caption",innerHTML:o.orderValue},null,8,Oo)):B("",!0)}const Do=y(No,[["render",Ro],["__scopeId","data-v-81602057"]]),Ho={name:"BrowserCardSubtitle",props:{item:{type:Object,required:!0}},computed:{...S(_,{orderByName:e=>e.settings.orderBy=="sort_name",topGroup:e=>e.settings.topGroup,showSeries:e=>e.settings.show.s,showVolume:e=>e.settings.show.v,zeroPad:e=>e.page.zeroPad}),seriesName(){return(this.topGroup==="a"||this.orderByName&&!this.showSeries)&&["c","v"].includes(this.item.group)&&this.item.seriesName?this.item.seriesName:!1},volumeName(){return(this.topGroup==="a"||this.orderByName&&!this.showVolume)&&this.item.group==="c"&&this.item.volumeName?U(this.item.volumeName):!1},headerName:function(){if(this.item.ids&&this.item.ids.length>1)return"Multiple";let e;switch(this.item.group){case"i":e=this.item.publisherName;break;case"v":e=this.item.seriesName;break;case"c":e=this.$route.params.group==="f"?tt(this.item,this.zeroPad):ot(this.item,this.zeroPad);break;default:e=""}return e},displayName:function(){return this.item.group==="v"?U(this.item.name):this.item.name},linkLabel:function(){let e="";return e+=this.item.group==="c"?"Read":"Browse to",e+=" "+this.headerName,e}}},Lo={class:"browserLink cardSubtitle text-caption"},Uo={key:0,class:"seriesCaption"},Go={key:1,class:"volumeCaption"},Eo={key:2,class:"headerName"},Ao={class:"displayName"};function qo(e,t,r,h,n,o){return a(),w("div",Lo,[o.seriesName?(a(),w("div",Uo,g(o.seriesName),1)):B("",!0),o.volumeName?(a(),w("div",Go,g(o.volumeName),1)):B("",!0),o.headerName?(a(),w("div",Eo,g(o.headerName),1)):B("",!0),s("div",Ao,g(o.displayName),1)])}const zo=y(Ho,[["render",qo],["__scopeId","data-v-78d44c14"]]),jo=new Set(["iPad","iPad Simulator","iPhone","iPhone Simulator","iPod","iPod Simulator"]),Wo=jo.has(navigator.platform),Yo="ontouchstart"in window||navigator.maxTouchPoints>0||navigator.msMaxTouchPoints>0||window.matchMedia("(any-hover: none)").matches,Qo=ge({modelValue:Boolean,options:{type:Object,default:()=>({root:void 0,rootMargin:void 0,threshold:void 0})},...be(),...ye(),...we(),...Se({transition:"fade-transition"})},"VLazy"),Ko=Be()({name:"VLazy",directives:{intersect:ve},props:Qo(),emits:{"update:modelValue":e=>!0},setup(e,t){let{slots:r}=t;const{dimensionStyles:h}=Ce(e),n=Te(e,"modelValue");function o(i){n.value||(n.value=i)}return ke(()=>ee(l(e.tag,{class:["v-lazy",e.class],style:[h.value,e.style]},{default:()=>[n.value&&l(Ve,{transition:e.transition,appear:!0},{default:()=>{var i;return[(i=r.default)==null?void 0:i.call(r)]}})]}),[[Me("intersect"),{handler:o,options:e.options},null]])),{}}}),Q=100,Xo=-170,Jo={name:"BrowserCard",components:{BookCover:rt,BrowserCardControls:Po,BrowserCardSubtitle:zo,OrderByCaption:Do},props:{item:{type:Object,required:!0}},data(){return{doubleTapHovered:!Yo||Wo}},computed:{...S(_,{importMetadata:e=>e.page.adminFlags.importMetadata}),linkLabel(){let e="";return e+=this.item.group==="c"?"Read":"Browse to",e+=" "+this.item.name,e},ids(){return this.item.ids.join(",")},multiGroup(){return this.item.ids.length>1},toRoute(){return this.doubleTapHovered?this.item.group==="c"?st(this.item,this.importMetadata):{name:"browser",params:{group:this.item.group,pks:this.ids,page:1}}:{}},progressBackgroundColor(){return this.item.progress?this.$vuetify.theme.current.colors.row:"inherit"}},mounted(){this.scrollToMe()},methods:{scrollToMe:function(){if(!this.$route.hash||this.$route.hash.split("-")[1]!==String(this.ids))return;const e=this.$el;if(!e){console.warn("No element found to scroll to!");return}setTimeout(function(){e.scrollIntoView(),setTimeout(function(){window.scrollBy(0,Xo)},Q)},Q)}}},Zo={class:"browserCardTop"},er={key:1,class:"cardCoverOverlay"};function tr(e,t,r,h,n,o){const i=p("BookCover"),u=p("BrowserCardControls"),b=p("router-link"),v=p("BrowserCardSubtitle"),$=p("OrderByCaption");return a(),m(Ko,{id:`card-${o.ids}`,transition:"scale-transition"},{default:c(()=>[s("div",{class:"browserCardCoverWrapper",onClick:t[0]||(t[0]=O=>n.doubleTapHovered=!0)},[s("div",Zo,[l(i,{"cover-pk":r.item.coverPk,"cover-mtime":r.item.coverMtime||"",group:r.item.group,"child-count":r.item.childCount,finished:r.item.finished,"multi-group":o.multiGroup},null,8,["cover-pk","cover-mtime","group","child-count","finished","multi-group"]),o.toRoute?(a(),m(b,{key:0,class:"cardCoverOverlay",to:o.toRoute,"aria-label":o.linkLabel},{default:c(()=>[l(u,{item:r.item,"eye-open":!0},null,8,["item"])]),_:1},8,["to","aria-label"])):(a(),w("div",er,[l(u,{item:r.item,"eye-open":!1},null,8,["item"])])),ee(l(E,{class:"bookCoverProgress","background-color":o.progressBackgroundColor,"model-value":r.item.progress,"aria-label":`${r.item.progress}% read`,rounded:"",height:"2"},null,8,["background-color","model-value","aria-label"]),[[$e,r.item.progress]]),l(v,{item:r.item},null,8,["item"])]),l($,{item:r.item},null,8,["item"])])]),_:1},8,["id"])}const or=y(Jo,[["render",tr],["__scopeId","data-v-cecb46f2"]]),rr={name:"EmptyState",data(){return{mdiOpenInNew:K,mdiCloseCircleOutline:te}},computed:{...k(V,["isCodexViewable","isUserAdmin"]),...S(V,{registration:e=>e.adminFlags.registration}),...k(_,["isFiltersClearable"]),...S(_,{librariesExist:e=>e.page.librariesExist}),empty(){let e={};return this.librariesExist?(e.headline="No Comics Found",e.title="For these filter and search settings",e.icon=Pe):(e.headline="No Libraries Exist",this.isUserAdmin?e.title="Use the top right ☰ menu to navigate to the admin panel and add a comic library":e.title="An administrator must add some comics libraries",e.icon=Ie),e},showLinkToReadmeAdmin(){return!this.librariesExist&&this.isUserAdmin}},methods:{...T(_,["clearFilters"])}},sr={key:0},ar={href:"https://github.com/ajslater/codex#-administration",target:"_blank"};function nr(e,t,r,h,n,o){return a(),m(ht,{class:"empty",headline:o.empty.headline,title:o.empty.title,icon:o.empty.icon},{default:c(()=>[o.showLinkToReadmeAdmin?(a(),w("div",sr,[d(" See the "),s("a",ar,[d("README "),l(C,null,{default:c(()=>[d(g(n.mdiOpenInNew),1)]),_:1})]),d(" for help ")])):B("",!0),e.isFiltersClearable?(a(),m(Z,{key:1,class:"clearFilter",onClick:t[0]||(t[0]=i=>e.clearFilters(!0))},{default:c(()=>[d(" Clear Filters and Search"),l(C,{icon:n.mdiCloseCircleOutline},null,8,["icon"])]),_:1})):B("",!0)]),_:1},8,["headline","title","icon"])}const ir=y(rr,[["render",nr],["__scopeId","data-v-08e4ff8c"]]),lr={name:"BrowserMain",components:{BrowserCard:or,BrowserEmptyState:ir,PlaceholderLoading:Ke},computed:{...S(V,{nonUsers:e=>e.adminFlags.nonUsers}),...k(V,["isCodexViewable"]),...k(_,["isSearchMode"]),...S(_,{librariesExist:e=>e.page.librariesExist,showPlaceHolder(e){return this.nonUsers===void 0||this.isCodexViewable&&(this.librariesExist==null||!e.browserPageLoaded)},cards:e=>[...e.page.groups??[],...e.page.books??[]],numPages:e=>e.page.numPages,query:e=>e.settings.q,isSearchOpen:e=>e.isSearchOpen}),browsePaneClasses(){return{padFooter:this.numPages>1,browsePaneSearch:this.isSearchOpen}},showBrowseItems(){return this.cards&&this.cards.length>0&&this.isCodexViewable&&!this.showPlaceHolder},searchLimitMessage(){let e="";if(!this.query)return e;const t=+this.$route.params.page,r=100*t;return this.showPlaceHolder?e+=`Searching for ${r} entries...`:this.numPages>t&&(e+=`Search results truncated to ${r} entries.`,e+=" Advance the page to look for more."),e}},methods:{...T(_,["loadBrowserPage"]),refresh(){this.loadBrowserPage()}}},cr={key:0,id:"browsePaneContainer"},dr={key:3,id:"searchLimitMessage",title:"You may change this in the settings drawer"};function ur(e,t,r,h,n,o){const i=p("BrowserCard"),u=p("PlaceholderLoading"),b=p("BrowserEmptyState");return a(),m(ne,{id:"browsePane",class:x(o.browsePaneClasses)},{default:c(()=>[o.showBrowseItems?(a(),w("div",cr,[(a(!0),w(P,null,I(e.cards,v=>(a(),m(i,{key:`${v.group}${v.ids}`,item:v},null,8,["item"]))),128))])):e.showPlaceHolder?(a(),m(u,{key:1,class:"placeholder"})):(a(),m(b,{key:2})),o.searchLimitMessage?(a(),w("div",dr,g(o.searchLimitMessage),1)):B("",!0)]),_:1},8,["class"])}const mr=y(lr,[["render",ur],["__scopeId","data-v-fa3ab4ce"]]),hr={name:"BrowserBreadcrumb",props:{item:{type:Object,required:!0}}},pr={class:"crumb"},_r={key:0,class:"crumbDivider"};function fr(e,t,r,h,n,o){const i=p("router-link");return a(),w("span",pr,[r.item.divider?(a(),w("span",_r," / ")):B("",!0),l(i,{title:r.item.tooltip,to:r.item.to,class:"link"},{default:c(()=>[r.item.icon?(a(),m(C,{key:0},{default:c(()=>[d(g(r.item.icon),1)]),_:1})):B("",!0),s("span",null,g(r.item.title),1)]),_:1},8,["title","to"])])}const gr=y(hr,[["render",fr],["__scopeId","data-v-9625af3c"]]),br={f:"Folder",a:"Story Arc",r:"Top",p:"Publisher",i:"Imprint",s:"Series",v:"Volume"},yr={f:xe,r:oe,p:Fe,i:Ne,s:Oe},wr={name:"BrowserBreadcrumbs",components:{Breadcrumb:gr},computed:{...S(_,{breadcrumbs(e){const t=[];if(!e.page.breadcrumbs)return t;let r=!0,h=!0,n="";for(const o of e.page.breadcrumbs){[h,r]=this.getDivider(r);const i=this.getTo(o,n),u=o.name?o.name:"",b=o.group,v=this.getIcon(o.pks,u,b),$=o.pks==="0"?"Top":br[b],O={to:i,title:u,icon:v,tooltip:$,divider:h};t.push(O),n=o.pks}return t},headCrumbs(){let e;const t=this.breadcrumbs;return t.length>1?e=t.slice(0,-1):e=t,e},tailCrumb(){let e="";const t=this.breadcrumbs;return t.length>1&&(e=t[t.length-1]),e}})},methods:{getDivider(e){let t;return e?(t=!1,e=!1):t=!0,[t,e]},getTo(e,t){const r={...e};delete r.name;const h={name:"browser",params:r};return t&&(h.hash=`#card-${t}`),h},getIcon(e,t,r){let h;return e==="0"?h=oe:t?h="":h=yr[r],h}}},Sr={id:"crumbs"},Br={id:"headCrumbs"},vr={id:"tailCrumbWrapper"};function Cr(e,t,r,h,n,o){const i=p("Breadcrumb");return a(),w("span",Sr,[s("span",Br,[(a(!0),w(P,null,I(e.headCrumbs,u=>(a(),m(i,{key:u.to,item:u},null,8,["item"]))),128))]),s("span",vr,[e.tailCrumb?(a(),m(i,{key:0,id:"tailCrumb",item:e.tailCrumb},null,8,["item"])):B("",!0)])])}const Tr=y(wr,[["render",Cr],["__scopeId","data-v-f10a5874"]]),kr={name:"BrowserHeader",components:{Breadcrumbs:Tr}};function Mr(e,t,r,h,n,o){const i=p("Breadcrumbs");return a(),m(L,{id:"breadcrumbsToolbar",height:24,class:"titleToolbar",elevation:"8"},{default:c(()=>[l(i)]),_:1})}const Vr=y(kr,[["render",Mr],["__scopeId","data-v-fd83bc5e"]]),$r={name:"BrowserHeader",head(){return{meta:[{hid:"description",name:"description",content:["browse comics",this.longBrowserTitlePrefix,this.longBrowseTitleMain,this.longBrowseTitleSuffix].filter(Boolean).join(" ")}]}},computed:{...S(_,{browserTitle:e=>e.page.title,groupNames:e=>e.choices.static.groupNames,modelGroup:e=>e.page.modelGroup}),...k(V,["isUserAdmin"]),title(){let e;if(Number(this.$route.params.pks)===0)e="All";else{let t=[];const{groupName:r,groupCount:h}=this.browserTitle,o=this.$route.params.group==="v"?U(r):r;if(o&&t.push(o),h){const i=`of ${h}`;t.push(i)}e=t.join(" ")}return e},subtitle(){return this.$route.params.group==="f"?"":this.groupNames[this.modelGroup]}}};function Pr(e,t,r,h,n,o){return a(),m(L,{id:"browserToolbarTitle",height:24,"extension-height":24,elevation:"8"},re({default:c(()=>[l(Y,{class:"browserToolbarTitle"},{default:c(()=>[d(g(o.title),1)]),_:1})]),_:2},[o.subtitle?{name:"extension",fn:c(()=>[l(Y,{class:"browserToolbarTitle browserToolbarSubtitle"},{default:c(()=>[d(g(o.subtitle),1)]),_:1})]),key:"0"}:void 0]),1024)}const Ir=y($r,[["render",Pr],["__scopeId","data-v-9e3d1c21"]]),xr=10,Fr={name:"BrowserSearchCombobox",data(){return{mdiMagnify:H,menu:!1,query:"",items:[""]}},computed:{...S(_,{stateQ:e=>e.settings.q})},watch:{stateQ(e){this.query=e,this.addToMenu(e)}},beforeMount(){this.query=this.stateQ},methods:{...T(_,["setSettings","startSearchHideTimer"]),addToMenu(e){if(!e||this.items.includes(e))return;const t=this.items[0]===""?[]:this.items;t.unshift(e),this.items=t.slice(0,xr)},doSearch(e=!1){this.menu=!1;const r={q:this.query?this.query.trim():""};e&&(r.orderBy="sort_name",r.orderReverse=!1),this.setSettings(r)},doEscape(){this.menu=!1,this.startSearchHideTimer()}}};function Nr(e,t,r,h,n,o){return a(),m(_t,{id:"searchbox",ref:"searchbox",modelValue:n.query,"onUpdate:modelValue":t[0]||(t[0]=i=>n.query=i),menu:n.menu,"onUpdate:menu":t[1]||(t[1]=i=>n.menu=i),items:n.items,autofocus:"","aria-label":"search",clearable:"",density:"compact","full-width":"","hide-details":"auto","hide-selected":"","menu-props":{maxHeight:void 0},"no-filter":"","prepend-inner-icon":n.mdiMagnify,variant:"solo","onClick:clear":t[2]||(t[2]=i=>o.doSearch(!0)),"onClick:prependInner":o.doSearch,onKeydown:[j(o.doSearch,["enter"]),j(o.doEscape,["esc"])]},null,8,["modelValue","menu","items","prepend-inner-icon","onClick:prependInner","onKeydown"])}const Or=y(Fr,[["render",Nr]]),Rr={name:"BrowserSearchToolbar",components:{BrowserSearchCombobox:Or},computed:{...S(_,{isSearchOpen:e=>e.isSearchOpen})}};function Dr(e,t,r,h,n,o){const i=p("BrowserSearchCombobox");return a(),m(Re,null,{default:c(()=>[e.isSearchOpen?(a(),m(L,{key:0,id:"browserToolbarSearch",density:"compact",height:64},{default:c(()=>[l(G,{id:"searchToolbarItems"},{default:c(()=>[l(i)]),_:1})]),_:1})):B("",!0)]),_:1})}const Hr=y(Rr,[["render",Dr],["__scopeId","data-v-a90b90f9"]]),Lr=Ye.browser.vuetifyNullCode,Ur={name:"BrowserFilterSubMenu",props:{name:{type:String,required:!0}},emits:["selected"],data(){return{mdiChevronLeft:se,mdiChevronRight:De,mdiChevronRightCircle:He,query:"",nullCode:Lr}},computed:{...S(_,{choices(e){return e.choices.dynamic[this.name]},readingDirectionTitles:e=>e.choices.static.readingDirection,identifierTypeTitles:e=>e.choices.static.identifierType,filter(e){return e.settings.filters[this.name]}}),...ae(_,["filterMode"]),hasNone(){for(const e of this.choices)if(at.has(e.pk))return!0;return!1},vuetifyItems(){return nt(this.choices,this.query)},title:function(){return ft(this.name)},lowerTitle:function(){return this.title.toLowerCase()}},methods:{...T(_,["identifierTypeTitle","loadFilterChoices"]),setUIFilterMode(e){this.filterMode=e,this.query="",e!=="base"&&typeof this.choices!="object"&&this.loadFilterChoices(e)},selected(e){const t={filters:{[this.name]:e}};this.$emit("selected",t)},itemTitle:function(e){return this.name==="readingDirection"?this.readingDirectionTitles[e.value]:this.name==="identifierType"?this.identifierTypeTitle(e.title):e.title}}},Gr={key:0},Er={class:"filterHeader"};function Ar(e,t,r,h,n,o){return a(),w("div",null,[l(Le,{"hide-on-leave":""},{default:c(()=>[e.filterMode==="base"?(a(),m(M,{key:0,density:"compact",variant:"plain",onClick:t[0]||(t[0]=i=>o.setUIFilterMode(r.name))},{default:c(()=>[l(R,{class:"filterMenu"},{default:c(()=>[d(g(o.title)+" ",1),e.filter&&e.filter.length>0?(a(),m(C,{key:0,class:"nameChevron"},{default:c(()=>[d(g(n.mdiChevronRightCircle),1)]),_:1})):(a(),m(C,{key:1,class:"nameChevron"},{default:c(()=>[d(g(n.mdiChevronRight),1)]),_:1}))]),_:1})]),_:1})):B("",!0)]),_:1}),l(Ge,{"hide-on-leave":""},{default:c(()=>[e.filterMode===r.name?(a(),w("div",Gr,[s("header",Er,[l(M,{onClick:t[1]||(t[1]=i=>o.setUIFilterMode("base"))},{default:c(()=>[l(R,{class:"filterTitle"},{default:c(()=>[l(C,null,{default:c(()=>[d(g(n.mdiChevronLeft),1)]),_:1}),d(g(o.lowerTitle),1)]),_:1})]),_:1}),typeof e.choices=="object"?(a(),m(gt,{key:0,modelValue:n.query,"onUpdate:modelValue":t[2]||(t[2]=i=>n.query=i),placeholder:"Filter","full-width":"",density:"compact",filled:"",rounded:"","hide-details":"auto",onFocus:t[3]||(t[3]=i=>e.filterMode=r.name)},null,8,["modelValue"])):(a(),m(E,{key:1,class:"filterValuesProgress",rounded:"",indeterminate:""}))]),typeof e.choices=="object"?(a(),m(Ue,{key:0,"model-value":e.filter,class:"filterGroup overflow-y-auto",density:"compact",multiple:"",items:o.vuetifyItems,"onUpdate:selected":o.selected},{default:c(()=>[o.hasNone?(a(),m(M,{key:-1,title:"None",value:-1,class:"noneItem",density:"compact",variant:"plain"})):B("",!0),(a(!0),w(P,null,I(o.vuetifyItems,i=>(a(),m(M,{key:i.value,title:o.itemTitle(i),value:i.value,class:x({noneItem:+i.value==n.nullCode}),density:"compact",variant:"plain"},null,8,["title","value","class"]))),128))]),_:1},8,["model-value","items","onUpdate:selected"])):B("",!0)])):B("",!0)]),_:1})])}const qr=y(Ur,[["render",Ar],["__scopeId","data-v-8ccefed1"]]),zr={name:"BrowserFilterBySelect",components:{BrowserFilterSubMenu:qr,ToolbarSelect:F},extends:F,data(){return{mdiCloseCircleOutline:te,mdiFilterMultipleOutline:Ee,menu:!1}},computed:{...k(_,["filterByChoicesMaxLen","isDynamicFiltersSelected","isFiltersClearable"]),...S(_,{bookmarkChoices:e=>e.choices.static.bookmark,bookmarkFilter:e=>e.settings.filters.bookmark||e.choices.static.bookmark[0],filters:e=>e.settings.filters,filterMenuClass:function(e){let t="filterMenu";return e.filterMode!=="base"&&(t+="Hidden"),t},dynamicChoiceNames:function(e){if(e.choices.dynamic===void 0)return;const t=[];for(const[r,h]of Object.entries(e.choices.dynamic))h&&t.push(r);return t}}),...ae(_,["filterMode"]),padRight(){return this.$vuetify.display.xs&&this.bookmarkFilter=="ALL"}},methods:{...T(_,["clearFilters","loadAvailableFilterChoices","setSettings"]),onUpdateModelValue(e){const t={filters:{bookmark:e}};this.onSubMenuSelected(t)},onSubMenuSelected(e){this.menu=!1,this.setSettings(e),this.filterMode="base"},onClear(){this.clearFilters()},onMenu(e){e&&this.dynamicChoiceNames===void 0&&this.loadAvailableFilterChoices()}}},jr={class:"codexSelection"};function Wr(e,t,r,h,n,o){const i=p("BrowserFilterSubMenu"),u=p("ToolbarSelect");return a(),m(u,{menu:n.menu,"onUpdate:menu":[t[0]||(t[0]=b=>n.menu=b),o.onMenu],class:x(["filterBySelect",{filterBySelectXSmall:o.padRight}]),"select-label":"filter by",items:e.bookmarkChoices,"menu-props":{contentClass:e.filterMenuClass,maxHeight:void 0},"model-value":e.bookmarkFilter,"max-select-len":e.filterByChoicesMaxLen-1,"onUpdate:modelValue":o.onUpdateModelValue},{selection:c(({item:b})=>[s("span",jr,g(b.title),1),e.isDynamicFiltersSelected?(a(),m(C,{key:0,class:"filterSuffix",size:"x-small"},{default:c(()=>[d(g(n.mdiFilterMultipleOutline),1)]),_:1})):B("",!0)]),"prepend-item":c(()=>[e.isFiltersClearable?(a(),m(M,{key:0,density:"compact",variant:"plain",class:"clearFilter",onClick:o.onClear},{default:c(()=>[d(" Clear Filter"),l(C,{class:"clearIcon"},{default:c(()=>[d(g(n.mdiCloseCircleOutline),1)]),_:1})]),_:1},8,["onClick"])):B("",!0)]),"append-item":c(()=>[l(D),e.dynamicChoiceNames===void 0?(a(),m(M,{key:0,density:"compact",variant:"plain"},{default:c(()=>[l(E,{indeterminate:"",rounded:""})]),_:1})):e.dynamicChoiceNames.length>0?(a(!0),w(P,{key:1},I(e.dynamicChoiceNames,b=>(a(),m(i,{key:b,name:b,onSelected:o.onSubMenuSelected},null,8,["name","onSelected"]))),128)):(a(),m(M,{key:2,class:"noChoices",density:"compact",variant:"plain"},{default:c(()=>[d(" No filters available ")]),_:1}))]),_:1},8,["menu","class","items","menu-props","model-value","max-select-len","onUpdate:modelValue","onUpdate:menu"])}const Yr=y(zr,[["render",Wr],["__scopeId","data-v-ab2ec792"]]),Qr={name:"BrowseOrderBySelect",components:{ToolbarSelect:F},extends:F,computed:{...k(_,["orderByChoices","orderByChoicesMaxLen"]),...S(_,{orderBySetting:e=>e.settings.orderBy}),reverseValues(){const e=new Set;for(const t of this.orderByChoices)t.reverse&&e.add(t.value);return e},orderBy:{get(){return this.orderBySetting},set(e){const t={orderBy:e,orderReverse:this.reverseValues.has(e)};this.setSettings(t)}}},methods:{...T(_,["setSettings"])}};function Kr(e,t,r,h,n,o){const i=p("ToolbarSelect");return a(),m(i,N({modelValue:o.orderBy,"onUpdate:modelValue":t[0]||(t[0]=u=>o.orderBy=u),class:"orderBySelect","select-label":"order by",items:e.orderByChoices,"max-select-len":e.orderByChoicesMaxLen-4},e.$attrs),null,16,["modelValue","items","max-select-len"])}const Xr=y(Qr,[["render",Kr]]),Jr={name:"ToolbarButton",components:{ScaleButton:Xe}};function Zr(e,t,r,h,n,o){const i=p("ScaleButton");return a(),m(i,{variant:"plain",class:"toolbarButton"},re({_:2},[I(e.$slots,(u,b)=>({name:b,fn:c(v=>[Ae(e.$slots,b,N({props:u},v),void 0,!0)])}))]),1024)}const ie=y(Jr,[["render",Zr],["__scopeId","data-v-902216a8"]]),es={name:"BrowseOrderReverseButton",components:{ToolbarButton:ie},data(){return{mdiSortVariant:qe}},computed:{...S(_,{orderReverseSetting:e=>e.settings.orderReverse}),title(){return this.orderReverseSetting?"order descending":"order ascending"},iconClasses(){return{inverted:!this.orderReverseSetting}}},methods:{...T(_,["setSettings"]),toggleOrderReverse(){const e={orderReverse:!this.orderReverseSetting};this.setSettings(e)}}};function ts(e,t,r,h,n,o){const i=p("ToolbarButton");return a(),m(i,{class:"orderReverseButton",icon:"",title:o.title,onClick:o.toggleOrderReverse},{default:c(()=>[l(C,{class:x(o.iconClasses)},{default:c(()=>[d(g(n.mdiSortVariant),1)]),_:1},8,["class"])]),_:1},8,["title","onClick"])}const os=y(es,[["render",ts],["__scopeId","data-v-009bef9e"]]),rs={name:"BrowseOrderReverseButton",components:{ToolbarButton:ie},data(){return{mdiMagnify:H}},computed:{...S(_,{isSearchOpen:e=>e.isSearchOpen,isQuery:e=>!!e.settings.q})},methods:{...T(_,["setIsSearchOpen"])}};function ss(e,t,r,h,n,o){const i=p("ToolbarButton");return e.isSearchOpen?B("",!0):(a(),m(i,N({key:0,class:"searchButton",icon:n.mdiMagnify},e.$attrs,{title:"Search",onClick:t[0]||(t[0]=u=>e.setIsSearchOpen(!0))}),null,16,["icon"]))}const as=y(rs,[["render",ss]]),ns=new Set(["a","f"]),is={name:"BrowserTopGroupSelect",components:{ToolbarSelect:F},extends:F,data(){return{DIVIDED_VALUES:ns}},computed:{...S(_,{topGroupSetting:e=>e.settings.topGroup}),...k(_,["topGroupChoices","topGroupChoicesMaxLen"]),topGroup:{get(){return this.topGroupSetting},set(e){const t={topGroup:e};this.setSettings(t)}}},methods:{...T(_,["setSettings"])}};function ls(e,t,r,h,n,o){const i=p("ToolbarSelect");return a(),m(i,{modelValue:o.topGroup,"onUpdate:modelValue":t[0]||(t[0]=u=>o.topGroup=u),class:"topGroupSelect","select-label":"top group",items:e.topGroupChoices,"max-select-len":e.topGroupChoicesMaxLen-2.25},{item:c(({item:u,props:b})=>[n.DIVIDED_VALUES.has(u.value)?(a(),m(D,{key:0})):B("",!0),l(M,N(b,{density:"compact",variant:"plain",title:u.title,value:u.value}),null,16,["title","value"])]),_:1},8,["modelValue","items","max-select-len"])}const cs=y(is,[["render",ls]]),ds={name:"BrowserTopToolbar",components:{BrowserFilterBySelect:Yr,BrowserSearchButton:as,BrowserTopGroupSelect:cs,BrowserOrderBySelect:Xr,BrowserOrderReverseButton:os,SettingsDrawerButton:Je},data(){return{mdiMagnify:H,mdiFamilyTree:ze,browseMode:"filter"}}};function us(e,t,r,h,n,o){const i=p("BrowserTopGroupSelect"),u=p("BrowserFilterBySelect"),b=p("BrowserOrderBySelect"),v=p("BrowserOrderReverseButton"),$=p("BrowserSearchButton"),O=p("SettingsDrawerButton");return a(),m(L,{id:"browserToolbarTop",density:"compact",height:48},{default:c(()=>[l(G,{id:"browserToolbarLeftItems"},{default:c(()=>[l(i),l(u),l(b),l(v),l($)]),_:1}),l(it),l(G,null,{default:c(()=>[l(O,{scale:!0})]),_:1})]),_:1})}const ms=y(ds,[["render",us],["__scopeId","data-v-d0806c33"]]),hs={name:"BrowserHeadToolbars",components:{BrowserBreadcrumbsToolbar:Vr,BrowserSearchToolbar:Hr,BrowserTopToolbar:ms,BrowserTitleToolbar:Ir}},ps={id:"codexHeadToolbarWrapper"};function _s(e,t,r,h,n,o){const i=p("BrowserTopToolbar"),u=p("BrowserSearchToolbar"),b=p("BrowserBreadcrumbsToolbar"),v=p("BrowserTitleToolbar");return a(),w("header",ps,[l(i,{class:"codexHeadToolbar"}),l(u,{class:"codexHeadToolbar"}),l(b,{class:"codexHeadToolbar"}),l(v,{class:"codexHeadToolbar"})])}const fs=y(hs,[["render",_s],["__scopeId","data-v-508c4760"]]),gs={name:"BrowserNavButton",components:{PaginationNavButton:lt},props:{back:{type:Boolean,required:!0},more:{type:Boolean,default:!1}},data(){return{mdiChevronLeft:se,mdiMagnify:H,routeParams:this.$route.params,page:+this.$route.params.page}},computed:{...k(_,["isSearchMode"]),...S(_,{numPages:e=>e.page.numPages}),increment(){return this.back?-1:1},toPage(){return this.page+this.increment},title(){return this.showMore?"Search for More":"Page "+this.toPage},toRoute(){const e=this.toPage;return{params:{...this.routeParams,page:e}}},classes(){return{leftButton:this.back,rightButton:!this.back}},disabled(){return this.back&&this.page<=1||!this.back&&this.page>=this.numPages},showMore(){return this.more&&this.isSearchMode&&this.toPage===this.numPages}},watch:{$route(e){this.params=e.params,this.page=+e.params.page}}};function bs(e,t,r,h,n,o){const i=p("PaginationNavButton");return a(),m(i,{key:o.toRoute,class:x(o.classes),disabled:o.disabled,title:o.title,to:o.toRoute},{default:c(()=>[o.showMore?(a(),m(C,{key:0},{default:c(()=>[d(g(n.mdiMagnify),1)]),_:1})):B("",!0),l(C,{class:x({flipHoriz:!r.back})},{default:c(()=>[d(g(n.mdiChevronLeft),1)]),_:1},8,["class"])]),_:1},8,["class","disabled","title","to"])}const ys=y(gs,[["render",bs],["__scopeId","data-v-07a4e153"]]),ws={name:"BrowserNavToolbar",components:{BrowserNavButton:ys,PaginationSlider:ct,PaginationToolbar:dt},computed:{...S(_,{numPages:e=>e.page.numPages})},methods:{...T(_,["routeToPage"]),onUpdate(e){this.routeToPage(e)}}};function Ss(e,t,r,h,n,o){const i=p("BrowserNavButton"),u=p("PaginationSlider"),b=p("PaginationToolbar");return e.numPages>1?(a(),m(b,{key:0},{default:c(()=>[l(i,{back:!0}),l(u,{"model-value":+e.$route.params.page,min:1,max:e.numPages,step:1,"onUpdate:modelValue":t[0]||(t[0]=v=>e.routeToPage(v))},null,8,["model-value","max"]),l(i,{back:!1,more:!0})]),_:1})):B("",!0)}const Bs=y(ws,[["render",Ss]]),vs={name:"MainBrowser",components:{BrowserHeadToolbars:fs,BrowserMain:mr,BrowserNavToolbar:Bs,BrowserSettingsDrawer:Bo,Unauthorized:pt},computed:{...S(V,{user:e=>e.user}),...k(V,["isCodexViewable"])},watch:{$route:function(){window.scrollTo(0,0),this.loadBrowserPage()},user:function(){this.loadSettings()},isCodexViewable:function(){this.loadSettings()}},created(){this.loadSettings()},methods:{...T(_,["loadBrowserPage","loadSettings"])}};function Cs(e,t,r,h,n,o){const i=p("BrowserHeadToolbars"),u=p("BrowserMain"),b=p("BrowserNavToolbar"),v=p("BrowserSettingsDrawer"),$=p("Unauthorized");return e.isCodexViewable?(a(),m(ne,{key:0,id:"browser"},{default:c(()=>[l(i),l(u),l(b),l(v)]),_:1})):(a(),m($,{key:1}))}const qs=y(vs,[["render",Cs],["__scopeId","data-v-5e96f8ca"]]);export{qs as default};
|
|
Binary file
|
|
Binary file
|