codex 1.8.13__py3-none-any.whl → 1.8.16__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.

Files changed (614) hide show
  1. codex/__init__.py +1 -1
  2. codex/librarian/scribe/importer/link/delete.py +2 -2
  3. codex/librarian/scribe/importer/read/foreign_keys.py +1 -1
  4. codex/librarian/scribe/importer/tasks.py +3 -3
  5. codex/librarian/telemeter/scheduled_time.py +2 -1
  6. codex/serializers/browser/choices.py +1 -1
  7. codex/signals/os_signals.py +8 -3
  8. codex/startup/__init__.py +2 -2
  9. codex/startup/logger_init.py +2 -2
  10. codex/static_root/assets/VCheckbox-BY6G_rgf.269e45107a7a.js +1 -0
  11. codex/static_root/assets/VCheckbox-BY6G_rgf.269e45107a7a.js.br +0 -0
  12. codex/static_root/assets/VCheckbox-BY6G_rgf.269e45107a7a.js.gz +0 -0
  13. codex/static_root/assets/VCheckbox-BY6G_rgf.js +1 -0
  14. codex/static_root/assets/VCheckbox-BY6G_rgf.js.br +0 -0
  15. codex/static_root/assets/VCheckbox-BY6G_rgf.js.gz +0 -0
  16. codex/static_root/assets/{VCheckboxBtn-CqdpagcB.890842fbdebe.js → VCheckboxBtn-zhUZJChm.9761785b500b.js} +1 -1
  17. codex/static_root/assets/VCheckboxBtn-zhUZJChm.9761785b500b.js.br +0 -0
  18. codex/static_root/assets/VCheckboxBtn-zhUZJChm.9761785b500b.js.gz +0 -0
  19. codex/static_root/assets/{VCheckboxBtn-CqdpagcB.js → VCheckboxBtn-zhUZJChm.js} +1 -1
  20. codex/static_root/assets/VCheckboxBtn-zhUZJChm.js.br +0 -0
  21. codex/static_root/assets/VCheckboxBtn-zhUZJChm.js.gz +0 -0
  22. codex/static_root/assets/VCombobox-D3yUbBJX.341d3f641979.css +1 -0
  23. codex/static_root/assets/VCombobox-D3yUbBJX.341d3f641979.css.br +0 -0
  24. codex/static_root/assets/VCombobox-D3yUbBJX.341d3f641979.css.gz +0 -0
  25. codex/static_root/assets/VCombobox-D3yUbBJX.css +1 -0
  26. codex/static_root/assets/VCombobox-D3yUbBJX.css.br +0 -0
  27. codex/static_root/assets/VCombobox-D3yUbBJX.css.gz +0 -0
  28. codex/static_root/assets/VCombobox-O2BHnDUr.88a9aab6b95b.js +1 -0
  29. codex/static_root/assets/VCombobox-O2BHnDUr.88a9aab6b95b.js.br +0 -0
  30. codex/static_root/assets/VCombobox-O2BHnDUr.88a9aab6b95b.js.gz +0 -0
  31. codex/static_root/assets/VCombobox-O2BHnDUr.js +1 -0
  32. codex/static_root/assets/VCombobox-O2BHnDUr.js.br +0 -0
  33. codex/static_root/assets/VCombobox-O2BHnDUr.js.gz +0 -0
  34. codex/static_root/assets/{VDialog-CpWjrJ0R.610ffc6302d4.css → VDialog-BN4XvYQH.b7408d9d3262.css} +1 -1
  35. codex/static_root/assets/VDialog-BN4XvYQH.b7408d9d3262.css.br +0 -0
  36. codex/static_root/assets/VDialog-BN4XvYQH.b7408d9d3262.css.gz +0 -0
  37. codex/static_root/assets/{VDialog-CpWjrJ0R.css → VDialog-BN4XvYQH.css} +1 -1
  38. codex/static_root/assets/VDialog-BN4XvYQH.css.br +0 -0
  39. codex/static_root/assets/VDialog-BN4XvYQH.css.gz +0 -0
  40. codex/static_root/assets/VDialog-mZQ1Va-c.d771d0ac6517.js +1 -0
  41. codex/static_root/assets/VDialog-mZQ1Va-c.d771d0ac6517.js.br +0 -0
  42. codex/static_root/assets/VDialog-mZQ1Va-c.d771d0ac6517.js.gz +0 -0
  43. codex/static_root/assets/VDialog-mZQ1Va-c.js +1 -0
  44. codex/static_root/assets/VDialog-mZQ1Va-c.js.br +0 -0
  45. codex/static_root/assets/VDialog-mZQ1Va-c.js.gz +0 -0
  46. codex/static_root/assets/{VDivider-DU47sRrT.3d2e17799e5c.css → VDivider-CCqJA_fj.b56fac1426ae.css} +1 -1
  47. codex/static_root/assets/VDivider-CCqJA_fj.b56fac1426ae.css.br +0 -0
  48. codex/static_root/assets/VDivider-CCqJA_fj.b56fac1426ae.css.gz +0 -0
  49. codex/static_root/assets/{VDivider-DU47sRrT.css → VDivider-CCqJA_fj.css} +1 -1
  50. codex/static_root/assets/VDivider-CCqJA_fj.css.br +0 -0
  51. codex/static_root/assets/VDivider-CCqJA_fj.css.gz +0 -0
  52. codex/static_root/assets/VDivider-CHTeIL4W.13805a003963.js +1 -0
  53. codex/static_root/assets/VDivider-CHTeIL4W.13805a003963.js.br +0 -0
  54. codex/static_root/assets/VDivider-CHTeIL4W.13805a003963.js.gz +0 -0
  55. codex/static_root/assets/VDivider-CHTeIL4W.js +1 -0
  56. codex/static_root/assets/VDivider-CHTeIL4W.js.br +0 -0
  57. codex/static_root/assets/VDivider-CHTeIL4W.js.gz +0 -0
  58. codex/static_root/assets/VExpansionPanels-B8KjM0Qi.css +1 -0
  59. codex/static_root/assets/VExpansionPanels-B8KjM0Qi.css.br +0 -0
  60. codex/static_root/assets/VExpansionPanels-B8KjM0Qi.css.gz +0 -0
  61. codex/static_root/assets/VExpansionPanels-B8KjM0Qi.e4aca21014f2.css +1 -0
  62. codex/static_root/assets/VExpansionPanels-B8KjM0Qi.e4aca21014f2.css.br +0 -0
  63. codex/static_root/assets/VExpansionPanels-B8KjM0Qi.e4aca21014f2.css.gz +0 -0
  64. codex/static_root/assets/VExpansionPanels-B8bQXRWn.de33285def27.js +1 -0
  65. codex/static_root/assets/VExpansionPanels-B8bQXRWn.de33285def27.js.br +0 -0
  66. codex/static_root/assets/VExpansionPanels-B8bQXRWn.de33285def27.js.gz +0 -0
  67. codex/static_root/assets/VExpansionPanels-B8bQXRWn.js +1 -0
  68. codex/static_root/assets/VExpansionPanels-B8bQXRWn.js.br +0 -0
  69. codex/static_root/assets/VExpansionPanels-B8bQXRWn.js.gz +0 -0
  70. codex/static_root/assets/{VForm-J2mEa_og.ff05ef3e7ff4.js → VForm-Dt0Uesri.5f3eb2e10d58.js} +1 -1
  71. codex/static_root/assets/VForm-Dt0Uesri.5f3eb2e10d58.js.br +0 -0
  72. codex/static_root/assets/VForm-Dt0Uesri.5f3eb2e10d58.js.gz +0 -0
  73. codex/static_root/assets/{VForm-J2mEa_og.js → VForm-Dt0Uesri.js} +1 -1
  74. codex/static_root/assets/VForm-Dt0Uesri.js.br +0 -0
  75. codex/static_root/assets/VForm-Dt0Uesri.js.gz +0 -0
  76. codex/static_root/assets/VRadioGroup-CU9nYUHk.a25611eb0aff.js +1 -0
  77. codex/static_root/assets/VRadioGroup-CU9nYUHk.a25611eb0aff.js.br +0 -0
  78. codex/static_root/assets/VRadioGroup-CU9nYUHk.a25611eb0aff.js.gz +0 -0
  79. codex/static_root/assets/VRadioGroup-CU9nYUHk.js +1 -0
  80. codex/static_root/assets/VRadioGroup-CU9nYUHk.js.br +0 -0
  81. codex/static_root/assets/VRadioGroup-CU9nYUHk.js.gz +0 -0
  82. codex/static_root/assets/{VSelect-BbzE_-2K.a86df90a9d55.css → VSelect-BvTTr4RP.be69766e6916.css} +1 -1
  83. codex/static_root/assets/VSelect-BvTTr4RP.be69766e6916.css.br +0 -0
  84. codex/static_root/assets/VSelect-BvTTr4RP.be69766e6916.css.gz +0 -0
  85. codex/static_root/assets/{VSelect-BbzE_-2K.css → VSelect-BvTTr4RP.css} +1 -1
  86. codex/static_root/assets/VSelect-BvTTr4RP.css.br +0 -0
  87. codex/static_root/assets/VSelect-BvTTr4RP.css.gz +0 -0
  88. codex/static_root/assets/VSelect-DpnHasju.6b0e31d58987.js +1 -0
  89. codex/static_root/assets/VSelect-DpnHasju.6b0e31d58987.js.br +0 -0
  90. codex/static_root/assets/VSelect-DpnHasju.6b0e31d58987.js.gz +0 -0
  91. codex/static_root/assets/VSelect-DpnHasju.js +1 -0
  92. codex/static_root/assets/VSelect-DpnHasju.js.br +0 -0
  93. codex/static_root/assets/VSelect-DpnHasju.js.gz +0 -0
  94. codex/static_root/assets/VSelectionControl-DFaQ_klW.4c77eed94aca.js +1 -0
  95. codex/static_root/assets/VSelectionControl-DFaQ_klW.4c77eed94aca.js.br +0 -0
  96. codex/static_root/assets/VSelectionControl-DFaQ_klW.4c77eed94aca.js.gz +0 -0
  97. codex/static_root/assets/VSelectionControl-DFaQ_klW.js +1 -0
  98. codex/static_root/assets/VSelectionControl-DFaQ_klW.js.br +0 -0
  99. codex/static_root/assets/VSelectionControl-DFaQ_klW.js.gz +0 -0
  100. codex/static_root/assets/VSelectionControl-R4GtShoa.css +1 -0
  101. codex/static_root/assets/VSelectionControl-R4GtShoa.css.br +0 -0
  102. codex/static_root/assets/VSelectionControl-R4GtShoa.css.gz +0 -0
  103. codex/static_root/assets/VSelectionControl-R4GtShoa.f3ebc2149a3a.css +1 -0
  104. codex/static_root/assets/VSelectionControl-R4GtShoa.f3ebc2149a3a.css.br +0 -0
  105. codex/static_root/assets/VSelectionControl-R4GtShoa.f3ebc2149a3a.css.gz +0 -0
  106. codex/static_root/assets/VTable-MenML-QS.8d54c08274e1.js +1 -0
  107. codex/static_root/assets/VTable-MenML-QS.8d54c08274e1.js.br +0 -0
  108. codex/static_root/assets/VTable-MenML-QS.8d54c08274e1.js.gz +0 -0
  109. codex/static_root/assets/VTable-MenML-QS.js +1 -0
  110. codex/static_root/assets/VTable-MenML-QS.js.br +0 -0
  111. codex/static_root/assets/VTable-MenML-QS.js.gz +0 -0
  112. codex/static_root/assets/VWindowItem-62YwEvjG.b8bdaea824b5.js +1 -0
  113. codex/static_root/assets/VWindowItem-62YwEvjG.b8bdaea824b5.js.br +0 -0
  114. codex/static_root/assets/VWindowItem-62YwEvjG.b8bdaea824b5.js.gz +0 -0
  115. codex/static_root/assets/VWindowItem-62YwEvjG.js +1 -0
  116. codex/static_root/assets/VWindowItem-62YwEvjG.js.br +0 -0
  117. codex/static_root/assets/VWindowItem-62YwEvjG.js.gz +0 -0
  118. codex/static_root/assets/VWindowItem-CWv03gfN.css +1 -0
  119. codex/static_root/assets/VWindowItem-CWv03gfN.css.br +0 -0
  120. codex/static_root/assets/VWindowItem-CWv03gfN.css.gz +0 -0
  121. codex/static_root/assets/VWindowItem-CWv03gfN.ddad20bc51ba.css +1 -0
  122. codex/static_root/assets/VWindowItem-CWv03gfN.ddad20bc51ba.css.br +0 -0
  123. codex/static_root/assets/VWindowItem-CWv03gfN.ddad20bc51ba.css.gz +0 -0
  124. codex/static_root/assets/{admin-D7dHJsJ4.5a7b2f5af603.js → admin-BStn9kk0.b50ab54d4a08.js} +1 -1
  125. codex/static_root/assets/admin-BStn9kk0.b50ab54d4a08.js.br +0 -0
  126. codex/static_root/assets/admin-BStn9kk0.b50ab54d4a08.js.gz +0 -0
  127. codex/static_root/assets/{admin-D7dHJsJ4.js → admin-BStn9kk0.js} +1 -1
  128. codex/static_root/assets/admin-BStn9kk0.js.br +0 -0
  129. codex/static_root/assets/admin-BStn9kk0.js.gz +0 -0
  130. codex/static_root/assets/{admin-menu-Y-2f4f-t.7c6bffa811c0.js → admin-menu-8MqbD6SS.de80d9c3a174.js} +1 -1
  131. codex/static_root/assets/admin-menu-8MqbD6SS.de80d9c3a174.js.br +0 -0
  132. codex/static_root/assets/admin-menu-8MqbD6SS.de80d9c3a174.js.gz +0 -0
  133. codex/static_root/assets/{admin-menu-Y-2f4f-t.js → admin-menu-8MqbD6SS.js} +1 -1
  134. codex/static_root/assets/admin-menu-8MqbD6SS.js.br +0 -0
  135. codex/static_root/assets/admin-menu-8MqbD6SS.js.gz +0 -0
  136. codex/static_root/assets/admin-ri1JM4_Z.fc516b4b96f2.js +1 -0
  137. codex/static_root/assets/admin-ri1JM4_Z.fc516b4b96f2.js.br +0 -0
  138. codex/static_root/assets/admin-ri1JM4_Z.fc516b4b96f2.js.gz +0 -0
  139. codex/static_root/assets/admin-ri1JM4_Z.js +1 -0
  140. codex/static_root/assets/admin-ri1JM4_Z.js.br +0 -0
  141. codex/static_root/assets/admin-ri1JM4_Z.js.gz +0 -0
  142. codex/static_root/assets/{admin-settings-button-progress-CX4KtKvA.37ae80a378e4.js → admin-settings-button-progress-HmQvm62f.6d2798eb3429.js} +1 -1
  143. codex/static_root/assets/admin-settings-button-progress-HmQvm62f.6d2798eb3429.js.br +0 -0
  144. codex/static_root/assets/admin-settings-button-progress-HmQvm62f.6d2798eb3429.js.gz +0 -0
  145. codex/static_root/assets/{admin-settings-button-progress-CX4KtKvA.js → admin-settings-button-progress-HmQvm62f.js} +1 -1
  146. codex/static_root/assets/admin-settings-button-progress-HmQvm62f.js.br +0 -0
  147. codex/static_root/assets/admin-settings-button-progress-HmQvm62f.js.gz +0 -0
  148. codex/static_root/assets/browser-BQva2GCO.2748e733040b.js +1 -0
  149. codex/static_root/assets/browser-BQva2GCO.2748e733040b.js.br +0 -0
  150. codex/static_root/assets/browser-BQva2GCO.2748e733040b.js.gz +0 -0
  151. codex/static_root/assets/browser-BQva2GCO.js +1 -0
  152. codex/static_root/assets/browser-BQva2GCO.js.br +0 -0
  153. codex/static_root/assets/browser-BQva2GCO.js.gz +0 -0
  154. codex/static_root/assets/change-password-dialog-CEdhZwC3.c41faf4b7311.js +1 -0
  155. codex/static_root/assets/change-password-dialog-CEdhZwC3.c41faf4b7311.js.br +0 -0
  156. codex/static_root/assets/change-password-dialog-CEdhZwC3.c41faf4b7311.js.gz +0 -0
  157. codex/static_root/assets/change-password-dialog-CEdhZwC3.js +1 -0
  158. codex/static_root/assets/change-password-dialog-CEdhZwC3.js.br +0 -0
  159. codex/static_root/assets/change-password-dialog-CEdhZwC3.js.gz +0 -0
  160. codex/static_root/assets/{confirm-dialog-Bc3Bw4Wf.df54617c5796.js → confirm-dialog-X8W3euvh.d9b87f1eeefe.js} +1 -1
  161. codex/static_root/assets/confirm-dialog-X8W3euvh.d9b87f1eeefe.js.br +0 -0
  162. codex/static_root/assets/confirm-dialog-X8W3euvh.d9b87f1eeefe.js.gz +0 -0
  163. codex/static_root/assets/{confirm-dialog-Bc3Bw4Wf.js → confirm-dialog-X8W3euvh.js} +1 -1
  164. codex/static_root/assets/confirm-dialog-X8W3euvh.js.br +0 -0
  165. codex/static_root/assets/confirm-dialog-X8W3euvh.js.gz +0 -0
  166. codex/static_root/assets/{datetime-column-zWcVwgyi.03ad8c8b24a1.js → datetime-column-CzIyyJDK.f9be11efa2e2.js} +1 -1
  167. codex/static_root/assets/datetime-column-CzIyyJDK.f9be11efa2e2.js.br +0 -0
  168. codex/static_root/assets/datetime-column-CzIyyJDK.f9be11efa2e2.js.gz +0 -0
  169. codex/static_root/assets/{datetime-column-zWcVwgyi.js → datetime-column-CzIyyJDK.js} +1 -1
  170. codex/static_root/assets/datetime-column-CzIyyJDK.js.br +0 -0
  171. codex/static_root/assets/datetime-column-CzIyyJDK.js.gz +0 -0
  172. codex/static_root/assets/filter-BfEbIpVl.ec48ef2a75bc.js +1 -0
  173. codex/static_root/assets/filter-BfEbIpVl.ec48ef2a75bc.js.br +0 -0
  174. codex/static_root/assets/filter-BfEbIpVl.ec48ef2a75bc.js.gz +0 -0
  175. codex/static_root/assets/filter-BfEbIpVl.js +1 -0
  176. codex/static_root/assets/filter-BfEbIpVl.js.br +0 -0
  177. codex/static_root/assets/filter-BfEbIpVl.js.gz +0 -0
  178. codex/static_root/assets/{flag-tab-GTA-yaU7.7c095722ebed.js → flag-tab-BtZ098bQ.2c417cda39c8.js} +1 -1
  179. codex/static_root/assets/flag-tab-BtZ098bQ.2c417cda39c8.js.br +0 -0
  180. codex/static_root/assets/flag-tab-BtZ098bQ.2c417cda39c8.js.gz +0 -0
  181. codex/static_root/assets/{flag-tab-GTA-yaU7.js → flag-tab-BtZ098bQ.js} +1 -1
  182. codex/static_root/assets/flag-tab-BtZ098bQ.js.br +0 -0
  183. codex/static_root/assets/flag-tab-BtZ098bQ.js.gz +0 -0
  184. codex/static_root/assets/forwardRefs-CecUXkvN.css +1 -0
  185. codex/static_root/assets/forwardRefs-CecUXkvN.css.br +0 -0
  186. codex/static_root/assets/forwardRefs-CecUXkvN.css.gz +0 -0
  187. codex/static_root/assets/forwardRefs-CecUXkvN.d595d41108e3.css +1 -0
  188. codex/static_root/assets/forwardRefs-CecUXkvN.d595d41108e3.css.br +0 -0
  189. codex/static_root/assets/forwardRefs-CecUXkvN.d595d41108e3.css.gz +0 -0
  190. codex/static_root/assets/forwardRefs-CnxuGwpi.1c01bc84723c.js +1 -0
  191. codex/static_root/assets/forwardRefs-CnxuGwpi.1c01bc84723c.js.br +0 -0
  192. codex/static_root/assets/forwardRefs-CnxuGwpi.1c01bc84723c.js.gz +0 -0
  193. codex/static_root/assets/forwardRefs-CnxuGwpi.js +1 -0
  194. codex/static_root/assets/forwardRefs-CnxuGwpi.js.br +0 -0
  195. codex/static_root/assets/forwardRefs-CnxuGwpi.js.gz +0 -0
  196. codex/static_root/assets/{group-tab-BSr4dJJW.e36d5a728ebc.js → group-tab-FI6afuX5.a569809fb228.js} +1 -1
  197. codex/static_root/assets/group-tab-FI6afuX5.a569809fb228.js.br +0 -0
  198. codex/static_root/assets/group-tab-FI6afuX5.a569809fb228.js.gz +0 -0
  199. codex/static_root/assets/{group-tab-BSr4dJJW.js → group-tab-FI6afuX5.js} +1 -1
  200. codex/static_root/assets/group-tab-FI6afuX5.js.br +0 -0
  201. codex/static_root/assets/group-tab-FI6afuX5.js.gz +0 -0
  202. codex/static_root/assets/http-error-BmuMBbvn.9f6b9dc6dc16.js +1 -0
  203. codex/static_root/assets/http-error-BmuMBbvn.9f6b9dc6dc16.js.br +0 -0
  204. codex/static_root/assets/http-error-BmuMBbvn.9f6b9dc6dc16.js.gz +0 -0
  205. codex/static_root/assets/http-error-BmuMBbvn.js +1 -0
  206. codex/static_root/assets/http-error-BmuMBbvn.js.br +0 -0
  207. codex/static_root/assets/http-error-BmuMBbvn.js.gz +0 -0
  208. codex/static_root/assets/{index-DOP9KYca.5d9b48ff6f1a.js → index-DXqyJRWg.58b55c49a1ba.js} +1 -1
  209. codex/static_root/assets/index-DXqyJRWg.58b55c49a1ba.js.br +0 -0
  210. codex/static_root/assets/index-DXqyJRWg.58b55c49a1ba.js.gz +0 -0
  211. codex/static_root/assets/{index-DOP9KYca.js → index-DXqyJRWg.js} +1 -1
  212. codex/static_root/assets/index-DXqyJRWg.js.br +0 -0
  213. codex/static_root/assets/index-DXqyJRWg.js.gz +0 -0
  214. codex/static_root/assets/{library-tab-B_PHwUZ-.516218e664f8.js → library-tab-DlGRxHD-.e2e3049de8fe.js} +1 -1
  215. codex/static_root/assets/library-tab-DlGRxHD-.e2e3049de8fe.js.br +0 -0
  216. codex/static_root/assets/library-tab-DlGRxHD-.e2e3049de8fe.js.gz +0 -0
  217. codex/static_root/assets/{library-tab-B_PHwUZ-.js → library-tab-DlGRxHD-.js} +1 -1
  218. codex/static_root/assets/library-tab-DlGRxHD-.js.br +0 -0
  219. codex/static_root/assets/library-tab-DlGRxHD-.js.gz +0 -0
  220. codex/static_root/assets/main-CWTxsB_K.4890bf9782af.js +34 -0
  221. codex/static_root/assets/main-CWTxsB_K.4890bf9782af.js.br +0 -0
  222. codex/static_root/assets/main-CWTxsB_K.4890bf9782af.js.gz +0 -0
  223. codex/static_root/assets/main-CWTxsB_K.js +34 -0
  224. codex/static_root/assets/main-CWTxsB_K.js.br +0 -0
  225. codex/static_root/assets/main-CWTxsB_K.js.gz +0 -0
  226. codex/static_root/assets/{main-B8_0rUnw.a9be0875ae25.css → main-CZN13qLI.12debfe1e227.css} +1 -1
  227. codex/static_root/assets/main-CZN13qLI.12debfe1e227.css.br +0 -0
  228. codex/static_root/assets/{main-B8_0rUnw.a9be0875ae25.css.gz → main-CZN13qLI.12debfe1e227.css.gz} +0 -0
  229. codex/static_root/assets/{main-B8_0rUnw.css → main-CZN13qLI.css} +1 -1
  230. codex/static_root/assets/main-CZN13qLI.css.br +0 -0
  231. codex/static_root/assets/{main-B8_0rUnw.css.gz → main-CZN13qLI.css.gz} +0 -0
  232. codex/static_root/assets/pager-full-pdf-BPlguGsn.12749407ef31.js +1 -0
  233. codex/static_root/assets/pager-full-pdf-BPlguGsn.12749407ef31.js.br +0 -0
  234. codex/static_root/assets/pager-full-pdf-BPlguGsn.12749407ef31.js.gz +0 -0
  235. codex/static_root/assets/pager-full-pdf-BPlguGsn.js +1 -0
  236. codex/static_root/assets/pager-full-pdf-BPlguGsn.js.br +0 -0
  237. codex/static_root/assets/pager-full-pdf-BPlguGsn.js.gz +0 -0
  238. codex/static_root/assets/pagination-toolbar-BBoV7kGz.3812691bafd5.js +1 -0
  239. codex/static_root/assets/pagination-toolbar-BBoV7kGz.3812691bafd5.js.br +0 -0
  240. codex/static_root/assets/pagination-toolbar-BBoV7kGz.3812691bafd5.js.gz +0 -0
  241. codex/static_root/assets/pagination-toolbar-BBoV7kGz.js +1 -0
  242. codex/static_root/assets/pagination-toolbar-BBoV7kGz.js.br +0 -0
  243. codex/static_root/assets/pagination-toolbar-BBoV7kGz.js.gz +0 -0
  244. codex/static_root/assets/{pdf-doc-BFFOclVi.b0ec00bfb616.js → pdf-doc-DY8a-Suh.4ef483220f83.js} +1 -1
  245. codex/static_root/assets/pdf-doc-DY8a-Suh.4ef483220f83.js.br +0 -0
  246. codex/static_root/assets/pdf-doc-DY8a-Suh.4ef483220f83.js.gz +0 -0
  247. codex/static_root/assets/{pdf-doc-BFFOclVi.js → pdf-doc-DY8a-Suh.js} +1 -1
  248. codex/static_root/assets/pdf-doc-DY8a-Suh.js.br +0 -0
  249. codex/static_root/assets/pdf-doc-DY8a-Suh.js.gz +0 -0
  250. codex/static_root/assets/{reader-DxFZyySj.js → reader-Dqa95yj4.a16f078ebed6.js} +2 -2
  251. codex/static_root/assets/reader-Dqa95yj4.a16f078ebed6.js.br +0 -0
  252. codex/static_root/assets/reader-Dqa95yj4.a16f078ebed6.js.gz +0 -0
  253. codex/static_root/assets/{reader-DxFZyySj.340be27f9b2d.js → reader-Dqa95yj4.js} +2 -2
  254. codex/static_root/assets/reader-Dqa95yj4.js.br +0 -0
  255. codex/static_root/assets/reader-Dqa95yj4.js.gz +0 -0
  256. codex/static_root/assets/relation-chips-DnkUXW6y.ae4d455a85e4.js +1 -0
  257. codex/static_root/assets/relation-chips-DnkUXW6y.ae4d455a85e4.js.br +0 -0
  258. codex/static_root/assets/relation-chips-DnkUXW6y.ae4d455a85e4.js.gz +0 -0
  259. codex/static_root/assets/relation-chips-DnkUXW6y.js +1 -0
  260. codex/static_root/assets/relation-chips-DnkUXW6y.js.br +0 -0
  261. codex/static_root/assets/relation-chips-DnkUXW6y.js.gz +0 -0
  262. codex/static_root/assets/relation-chips-WaEhcyda.870ff99b3d8b.css +1 -0
  263. codex/static_root/assets/relation-chips-WaEhcyda.870ff99b3d8b.css.br +0 -0
  264. codex/static_root/assets/relation-chips-WaEhcyda.870ff99b3d8b.css.gz +0 -0
  265. codex/static_root/assets/relation-chips-WaEhcyda.css +1 -0
  266. codex/static_root/assets/relation-chips-WaEhcyda.css.br +0 -0
  267. codex/static_root/assets/relation-chips-WaEhcyda.css.gz +0 -0
  268. codex/static_root/assets/{settings-drawer-BD44Ahju.54110f5e27ec.js → settings-drawer-CrJwaDTj.0ea90e35f48a.js} +2 -2
  269. codex/static_root/assets/settings-drawer-CrJwaDTj.0ea90e35f48a.js.br +0 -0
  270. codex/static_root/assets/settings-drawer-CrJwaDTj.0ea90e35f48a.js.gz +0 -0
  271. codex/static_root/assets/{settings-drawer-BD44Ahju.js → settings-drawer-CrJwaDTj.js} +2 -2
  272. codex/static_root/assets/settings-drawer-CrJwaDTj.js.br +0 -0
  273. codex/static_root/assets/settings-drawer-CrJwaDTj.js.gz +0 -0
  274. codex/static_root/assets/{settings-drawer-D7bFOc4_.9748ddd58be9.css → settings-drawer-d-7mkVdG.15838d8ecd33.css} +1 -1
  275. codex/static_root/assets/settings-drawer-d-7mkVdG.15838d8ecd33.css.br +0 -0
  276. codex/static_root/assets/settings-drawer-d-7mkVdG.15838d8ecd33.css.gz +0 -0
  277. codex/static_root/assets/{settings-drawer-D7bFOc4_.css → settings-drawer-d-7mkVdG.css} +1 -1
  278. codex/static_root/assets/settings-drawer-d-7mkVdG.css.br +0 -0
  279. codex/static_root/assets/settings-drawer-d-7mkVdG.css.gz +0 -0
  280. codex/static_root/assets/ssrBoot-yM9n-WhK.33a34fb51966.js +1 -0
  281. codex/static_root/assets/ssrBoot-yM9n-WhK.33a34fb51966.js.br +0 -0
  282. codex/static_root/assets/ssrBoot-yM9n-WhK.33a34fb51966.js.gz +0 -0
  283. codex/static_root/assets/ssrBoot-yM9n-WhK.js +1 -0
  284. codex/static_root/assets/ssrBoot-yM9n-WhK.js.br +0 -0
  285. codex/static_root/assets/ssrBoot-yM9n-WhK.js.gz +0 -0
  286. codex/static_root/assets/stats-tab-R3_2S5KJ.1b8dcb544e56.js +1 -0
  287. codex/static_root/assets/stats-tab-R3_2S5KJ.1b8dcb544e56.js.br +0 -0
  288. codex/static_root/assets/stats-tab-R3_2S5KJ.1b8dcb544e56.js.gz +0 -0
  289. codex/static_root/assets/stats-tab-R3_2S5KJ.js +1 -0
  290. codex/static_root/assets/stats-tab-R3_2S5KJ.js.br +0 -0
  291. codex/static_root/assets/stats-tab-R3_2S5KJ.js.gz +0 -0
  292. codex/static_root/assets/task-tab-DcwExi-z.7745f5bdd4f6.js +1 -0
  293. codex/static_root/assets/task-tab-DcwExi-z.7745f5bdd4f6.js.br +0 -0
  294. codex/static_root/assets/task-tab-DcwExi-z.7745f5bdd4f6.js.gz +0 -0
  295. codex/static_root/assets/task-tab-DcwExi-z.js +1 -0
  296. codex/static_root/assets/task-tab-DcwExi-z.js.br +0 -0
  297. codex/static_root/assets/task-tab-DcwExi-z.js.gz +0 -0
  298. codex/static_root/assets/task-tab-DvSJmG8K.css +1 -0
  299. codex/static_root/assets/{task-tab-CW4DQ3KN.81812f9208e5.css.br → task-tab-DvSJmG8K.css.br} +1 -1
  300. codex/static_root/assets/task-tab-DvSJmG8K.css.gz +0 -0
  301. codex/static_root/assets/task-tab-DvSJmG8K.daf7fb2dfecf.css +1 -0
  302. codex/static_root/assets/{task-tab-CW4DQ3KN.css.br → task-tab-DvSJmG8K.daf7fb2dfecf.css.br} +1 -1
  303. codex/static_root/assets/task-tab-DvSJmG8K.daf7fb2dfecf.css.gz +0 -0
  304. codex/static_root/assets/unauthorized-ChdZFt-1.8a4ba062faeb.css +1 -0
  305. codex/static_root/assets/unauthorized-ChdZFt-1.8a4ba062faeb.css.br +0 -0
  306. codex/static_root/assets/unauthorized-ChdZFt-1.8a4ba062faeb.css.gz +0 -0
  307. codex/static_root/assets/unauthorized-ChdZFt-1.css +1 -0
  308. codex/static_root/assets/unauthorized-ChdZFt-1.css.br +0 -0
  309. codex/static_root/assets/unauthorized-ChdZFt-1.css.gz +0 -0
  310. codex/static_root/assets/{unauthorized-CN4zNUwv.6cef38be7edd.js → unauthorized-DQOfB_66.153b77e5dba9.js} +1 -1
  311. codex/static_root/assets/unauthorized-DQOfB_66.153b77e5dba9.js.br +0 -0
  312. codex/static_root/assets/unauthorized-DQOfB_66.153b77e5dba9.js.gz +0 -0
  313. codex/static_root/assets/{unauthorized-CN4zNUwv.js → unauthorized-DQOfB_66.js} +1 -1
  314. codex/static_root/assets/unauthorized-DQOfB_66.js.br +0 -0
  315. codex/static_root/assets/unauthorized-DQOfB_66.js.gz +0 -0
  316. codex/static_root/assets/{user-tab-BfK1ySCm.24ed1c97836c.js → user-tab-BKyrq81A.7412792291c7.js} +1 -1
  317. codex/static_root/assets/user-tab-BKyrq81A.7412792291c7.js.br +0 -0
  318. codex/static_root/assets/user-tab-BKyrq81A.7412792291c7.js.gz +0 -0
  319. codex/static_root/assets/{user-tab-BfK1ySCm.js → user-tab-BKyrq81A.js} +1 -1
  320. codex/static_root/assets/user-tab-BKyrq81A.js.br +0 -0
  321. codex/static_root/assets/user-tab-BKyrq81A.js.gz +0 -0
  322. codex/static_root/img/missing-cover-165.ef301b6fcf8c.webp +0 -0
  323. codex/static_root/img/missing-cover-165.webp +0 -0
  324. codex/static_root/manifest.d1e85b766092.json +760 -0
  325. codex/static_root/manifest.d1e85b766092.json.br +0 -0
  326. codex/static_root/manifest.d1e85b766092.json.gz +0 -0
  327. codex/static_root/manifest.json +330 -330
  328. codex/static_root/manifest.json.br +0 -0
  329. codex/static_root/manifest.json.gz +0 -0
  330. codex/static_root/staticfiles.json +1 -1
  331. codex/templates/headers-icons.html +0 -5
  332. codex/templates/pwa/headers.html +1 -1
  333. codex/templates/pwa/serviceworker.js +0 -1
  334. codex/urls/root.py +1 -1
  335. codex/views/browser/annotate/order.py +1 -1
  336. codex/views/browser/group_mtime.py +1 -1
  337. codex/views/browser/params.py +1 -1
  338. codex/views/reader/params.py +1 -1
  339. codex/views/settings.py +2 -1
  340. {codex-1.8.13.dist-info → codex-1.8.16.dist-info}/METADATA +5 -5
  341. codex-1.8.16.dist-info/RECORD +1102 -0
  342. {codex-1.8.13.dist-info → codex-1.8.16.dist-info}/WHEEL +1 -1
  343. codex/static_root/assets/VCheckbox-BwGe90i7.05dba0fbfebd.js +0 -1
  344. codex/static_root/assets/VCheckbox-BwGe90i7.05dba0fbfebd.js.br +0 -0
  345. codex/static_root/assets/VCheckbox-BwGe90i7.05dba0fbfebd.js.gz +0 -0
  346. codex/static_root/assets/VCheckbox-BwGe90i7.js +0 -1
  347. codex/static_root/assets/VCheckbox-BwGe90i7.js.br +0 -0
  348. codex/static_root/assets/VCheckbox-BwGe90i7.js.gz +0 -0
  349. codex/static_root/assets/VCheckboxBtn-CqdpagcB.890842fbdebe.js.br +0 -0
  350. codex/static_root/assets/VCheckboxBtn-CqdpagcB.890842fbdebe.js.gz +0 -0
  351. codex/static_root/assets/VCheckboxBtn-CqdpagcB.js.br +0 -0
  352. codex/static_root/assets/VCheckboxBtn-CqdpagcB.js.gz +0 -0
  353. codex/static_root/assets/VCombobox-DHFthaP6.942336d23612.css +0 -1
  354. codex/static_root/assets/VCombobox-DHFthaP6.942336d23612.css.br +0 -0
  355. codex/static_root/assets/VCombobox-DHFthaP6.942336d23612.css.gz +0 -0
  356. codex/static_root/assets/VCombobox-DHFthaP6.css +0 -1
  357. codex/static_root/assets/VCombobox-DHFthaP6.css.br +0 -0
  358. codex/static_root/assets/VCombobox-DHFthaP6.css.gz +0 -0
  359. codex/static_root/assets/VCombobox-HMiIZRsM.883f0e2ffc0a.js +0 -1
  360. codex/static_root/assets/VCombobox-HMiIZRsM.883f0e2ffc0a.js.br +0 -0
  361. codex/static_root/assets/VCombobox-HMiIZRsM.883f0e2ffc0a.js.gz +0 -0
  362. codex/static_root/assets/VCombobox-HMiIZRsM.js +0 -1
  363. codex/static_root/assets/VCombobox-HMiIZRsM.js.br +0 -0
  364. codex/static_root/assets/VCombobox-HMiIZRsM.js.gz +0 -0
  365. codex/static_root/assets/VDialog-B1OSC1f5.012d5d362d84.js +0 -1
  366. codex/static_root/assets/VDialog-B1OSC1f5.012d5d362d84.js.br +0 -0
  367. codex/static_root/assets/VDialog-B1OSC1f5.012d5d362d84.js.gz +0 -0
  368. codex/static_root/assets/VDialog-B1OSC1f5.js +0 -1
  369. codex/static_root/assets/VDialog-B1OSC1f5.js.br +0 -0
  370. codex/static_root/assets/VDialog-B1OSC1f5.js.gz +0 -0
  371. codex/static_root/assets/VDialog-CpWjrJ0R.610ffc6302d4.css.br +0 -0
  372. codex/static_root/assets/VDialog-CpWjrJ0R.610ffc6302d4.css.gz +0 -0
  373. codex/static_root/assets/VDialog-CpWjrJ0R.css.br +0 -0
  374. codex/static_root/assets/VDialog-CpWjrJ0R.css.gz +0 -0
  375. codex/static_root/assets/VDivider-6KdInZc6.c4c11ffd8782.js +0 -1
  376. codex/static_root/assets/VDivider-6KdInZc6.c4c11ffd8782.js.br +0 -0
  377. codex/static_root/assets/VDivider-6KdInZc6.c4c11ffd8782.js.gz +0 -0
  378. codex/static_root/assets/VDivider-6KdInZc6.js +0 -1
  379. codex/static_root/assets/VDivider-6KdInZc6.js.br +0 -0
  380. codex/static_root/assets/VDivider-6KdInZc6.js.gz +0 -0
  381. codex/static_root/assets/VDivider-DU47sRrT.3d2e17799e5c.css.br +0 -0
  382. codex/static_root/assets/VDivider-DU47sRrT.3d2e17799e5c.css.gz +0 -0
  383. codex/static_root/assets/VDivider-DU47sRrT.css.br +0 -0
  384. codex/static_root/assets/VDivider-DU47sRrT.css.gz +0 -0
  385. codex/static_root/assets/VExpansionPanels-Bwkzb0Oy.6614e5f857f1.js +0 -1
  386. codex/static_root/assets/VExpansionPanels-Bwkzb0Oy.6614e5f857f1.js.br +0 -0
  387. codex/static_root/assets/VExpansionPanels-Bwkzb0Oy.6614e5f857f1.js.gz +0 -0
  388. codex/static_root/assets/VExpansionPanels-Bwkzb0Oy.js +0 -1
  389. codex/static_root/assets/VExpansionPanels-Bwkzb0Oy.js.br +0 -0
  390. codex/static_root/assets/VExpansionPanels-Bwkzb0Oy.js.gz +0 -0
  391. codex/static_root/assets/VExpansionPanels-RsCANmDP.5b17872981df.css +0 -1
  392. codex/static_root/assets/VExpansionPanels-RsCANmDP.5b17872981df.css.br +0 -0
  393. codex/static_root/assets/VExpansionPanels-RsCANmDP.5b17872981df.css.gz +0 -0
  394. codex/static_root/assets/VExpansionPanels-RsCANmDP.css +0 -1
  395. codex/static_root/assets/VExpansionPanels-RsCANmDP.css.br +0 -0
  396. codex/static_root/assets/VExpansionPanels-RsCANmDP.css.gz +0 -0
  397. codex/static_root/assets/VForm-J2mEa_og.ff05ef3e7ff4.js.br +0 -0
  398. codex/static_root/assets/VForm-J2mEa_og.ff05ef3e7ff4.js.gz +0 -0
  399. codex/static_root/assets/VForm-J2mEa_og.js.br +0 -0
  400. codex/static_root/assets/VForm-J2mEa_og.js.gz +0 -0
  401. codex/static_root/assets/VRadioGroup-jPA1T3rE.b041ec78a828.js +0 -1
  402. codex/static_root/assets/VRadioGroup-jPA1T3rE.b041ec78a828.js.br +0 -0
  403. codex/static_root/assets/VRadioGroup-jPA1T3rE.b041ec78a828.js.gz +0 -0
  404. codex/static_root/assets/VRadioGroup-jPA1T3rE.js +0 -1
  405. codex/static_root/assets/VRadioGroup-jPA1T3rE.js.br +0 -0
  406. codex/static_root/assets/VRadioGroup-jPA1T3rE.js.gz +0 -0
  407. codex/static_root/assets/VSelect-BbzE_-2K.a86df90a9d55.css.br +0 -0
  408. codex/static_root/assets/VSelect-BbzE_-2K.a86df90a9d55.css.gz +0 -0
  409. codex/static_root/assets/VSelect-BbzE_-2K.css.br +0 -0
  410. codex/static_root/assets/VSelect-BbzE_-2K.css.gz +0 -0
  411. codex/static_root/assets/VSelect-CP3Eb9Go.137c60644b7e.js +0 -1
  412. codex/static_root/assets/VSelect-CP3Eb9Go.137c60644b7e.js.br +0 -0
  413. codex/static_root/assets/VSelect-CP3Eb9Go.137c60644b7e.js.gz +0 -0
  414. codex/static_root/assets/VSelect-CP3Eb9Go.js +0 -1
  415. codex/static_root/assets/VSelect-CP3Eb9Go.js.br +0 -0
  416. codex/static_root/assets/VSelect-CP3Eb9Go.js.gz +0 -0
  417. codex/static_root/assets/VSelectionControl-3mF3UtxV.331471e38863.js +0 -1
  418. codex/static_root/assets/VSelectionControl-3mF3UtxV.331471e38863.js.br +0 -0
  419. codex/static_root/assets/VSelectionControl-3mF3UtxV.331471e38863.js.gz +0 -0
  420. codex/static_root/assets/VSelectionControl-3mF3UtxV.js +0 -1
  421. codex/static_root/assets/VSelectionControl-3mF3UtxV.js.br +0 -0
  422. codex/static_root/assets/VSelectionControl-3mF3UtxV.js.gz +0 -0
  423. codex/static_root/assets/VSelectionControl-RqBzwjYi.css +0 -1
  424. codex/static_root/assets/VSelectionControl-RqBzwjYi.css.br +0 -0
  425. codex/static_root/assets/VSelectionControl-RqBzwjYi.css.gz +0 -0
  426. codex/static_root/assets/VSelectionControl-RqBzwjYi.ee7425525e63.css +0 -1
  427. codex/static_root/assets/VSelectionControl-RqBzwjYi.ee7425525e63.css.br +0 -0
  428. codex/static_root/assets/VSelectionControl-RqBzwjYi.ee7425525e63.css.gz +0 -0
  429. codex/static_root/assets/VTable-KYw5fCd8.311b2d4fb655.js +0 -1
  430. codex/static_root/assets/VTable-KYw5fCd8.311b2d4fb655.js.br +0 -0
  431. codex/static_root/assets/VTable-KYw5fCd8.311b2d4fb655.js.gz +0 -0
  432. codex/static_root/assets/VTable-KYw5fCd8.js +0 -1
  433. codex/static_root/assets/VTable-KYw5fCd8.js.br +0 -0
  434. codex/static_root/assets/VTable-KYw5fCd8.js.gz +0 -0
  435. codex/static_root/assets/VWindowItem-BUML2ecc.a2574b84b5d8.js +0 -1
  436. codex/static_root/assets/VWindowItem-BUML2ecc.a2574b84b5d8.js.br +0 -0
  437. codex/static_root/assets/VWindowItem-BUML2ecc.a2574b84b5d8.js.gz +0 -0
  438. codex/static_root/assets/VWindowItem-BUML2ecc.js +0 -1
  439. codex/static_root/assets/VWindowItem-BUML2ecc.js.br +0 -0
  440. codex/static_root/assets/VWindowItem-BUML2ecc.js.gz +0 -0
  441. codex/static_root/assets/VWindowItem-QQWUVqMX.c22e707ac99c.css +0 -1
  442. codex/static_root/assets/VWindowItem-QQWUVqMX.c22e707ac99c.css.br +0 -5
  443. codex/static_root/assets/VWindowItem-QQWUVqMX.c22e707ac99c.css.gz +0 -0
  444. codex/static_root/assets/VWindowItem-QQWUVqMX.css +0 -1
  445. codex/static_root/assets/VWindowItem-QQWUVqMX.css.br +0 -5
  446. codex/static_root/assets/VWindowItem-QQWUVqMX.css.gz +0 -0
  447. codex/static_root/assets/admin-D7dHJsJ4.5a7b2f5af603.js.br +0 -0
  448. codex/static_root/assets/admin-D7dHJsJ4.5a7b2f5af603.js.gz +0 -0
  449. codex/static_root/assets/admin-D7dHJsJ4.js.br +0 -0
  450. codex/static_root/assets/admin-D7dHJsJ4.js.gz +0 -0
  451. codex/static_root/assets/admin-DuXJR8qW.c11eb83c62fe.js +0 -1
  452. codex/static_root/assets/admin-DuXJR8qW.c11eb83c62fe.js.br +0 -0
  453. codex/static_root/assets/admin-DuXJR8qW.c11eb83c62fe.js.gz +0 -0
  454. codex/static_root/assets/admin-DuXJR8qW.js +0 -1
  455. codex/static_root/assets/admin-DuXJR8qW.js.br +0 -0
  456. codex/static_root/assets/admin-DuXJR8qW.js.gz +0 -0
  457. codex/static_root/assets/admin-menu-Y-2f4f-t.7c6bffa811c0.js.br +0 -0
  458. codex/static_root/assets/admin-menu-Y-2f4f-t.7c6bffa811c0.js.gz +0 -0
  459. codex/static_root/assets/admin-menu-Y-2f4f-t.js.br +0 -0
  460. codex/static_root/assets/admin-menu-Y-2f4f-t.js.gz +0 -0
  461. codex/static_root/assets/admin-settings-button-progress-CX4KtKvA.37ae80a378e4.js.br +0 -0
  462. codex/static_root/assets/admin-settings-button-progress-CX4KtKvA.37ae80a378e4.js.gz +0 -0
  463. codex/static_root/assets/admin-settings-button-progress-CX4KtKvA.js.br +0 -0
  464. codex/static_root/assets/admin-settings-button-progress-CX4KtKvA.js.gz +0 -0
  465. codex/static_root/assets/browser-CqubhCxg.1e6645d0b01b.js +0 -1
  466. codex/static_root/assets/browser-CqubhCxg.1e6645d0b01b.js.br +0 -0
  467. codex/static_root/assets/browser-CqubhCxg.1e6645d0b01b.js.gz +0 -0
  468. codex/static_root/assets/browser-CqubhCxg.js +0 -1
  469. codex/static_root/assets/browser-CqubhCxg.js.br +0 -0
  470. codex/static_root/assets/browser-CqubhCxg.js.gz +0 -0
  471. codex/static_root/assets/change-password-dialog-CB7sPDF5.74381403a3ef.js +0 -1
  472. codex/static_root/assets/change-password-dialog-CB7sPDF5.74381403a3ef.js.br +0 -0
  473. codex/static_root/assets/change-password-dialog-CB7sPDF5.74381403a3ef.js.gz +0 -0
  474. codex/static_root/assets/change-password-dialog-CB7sPDF5.js +0 -1
  475. codex/static_root/assets/change-password-dialog-CB7sPDF5.js.br +0 -0
  476. codex/static_root/assets/change-password-dialog-CB7sPDF5.js.gz +0 -0
  477. codex/static_root/assets/confirm-dialog-Bc3Bw4Wf.df54617c5796.js.br +0 -0
  478. codex/static_root/assets/confirm-dialog-Bc3Bw4Wf.df54617c5796.js.gz +0 -0
  479. codex/static_root/assets/confirm-dialog-Bc3Bw4Wf.js.br +0 -0
  480. codex/static_root/assets/confirm-dialog-Bc3Bw4Wf.js.gz +0 -0
  481. codex/static_root/assets/datetime-column-zWcVwgyi.03ad8c8b24a1.js.br +0 -0
  482. codex/static_root/assets/datetime-column-zWcVwgyi.03ad8c8b24a1.js.gz +0 -0
  483. codex/static_root/assets/datetime-column-zWcVwgyi.js.br +0 -0
  484. codex/static_root/assets/datetime-column-zWcVwgyi.js.gz +0 -0
  485. codex/static_root/assets/filter-DWF4EaH3.e92b5573507a.js +0 -1
  486. codex/static_root/assets/filter-DWF4EaH3.e92b5573507a.js.br +0 -0
  487. codex/static_root/assets/filter-DWF4EaH3.e92b5573507a.js.gz +0 -0
  488. codex/static_root/assets/filter-DWF4EaH3.js +0 -1
  489. codex/static_root/assets/filter-DWF4EaH3.js.br +0 -0
  490. codex/static_root/assets/filter-DWF4EaH3.js.gz +0 -0
  491. codex/static_root/assets/flag-tab-GTA-yaU7.7c095722ebed.js.br +0 -0
  492. codex/static_root/assets/flag-tab-GTA-yaU7.7c095722ebed.js.gz +0 -0
  493. codex/static_root/assets/flag-tab-GTA-yaU7.js.br +0 -0
  494. codex/static_root/assets/flag-tab-GTA-yaU7.js.gz +0 -0
  495. codex/static_root/assets/forwardRefs-CGimG8CQ.b99b41ed1eed.js +0 -1
  496. codex/static_root/assets/forwardRefs-CGimG8CQ.b99b41ed1eed.js.br +0 -0
  497. codex/static_root/assets/forwardRefs-CGimG8CQ.b99b41ed1eed.js.gz +0 -0
  498. codex/static_root/assets/forwardRefs-CGimG8CQ.js +0 -1
  499. codex/static_root/assets/forwardRefs-CGimG8CQ.js.br +0 -0
  500. codex/static_root/assets/forwardRefs-CGimG8CQ.js.gz +0 -0
  501. codex/static_root/assets/forwardRefs-vX-mze-3.cfdcd69926d9.css +0 -1
  502. codex/static_root/assets/forwardRefs-vX-mze-3.cfdcd69926d9.css.br +0 -0
  503. codex/static_root/assets/forwardRefs-vX-mze-3.cfdcd69926d9.css.gz +0 -0
  504. codex/static_root/assets/forwardRefs-vX-mze-3.css +0 -1
  505. codex/static_root/assets/forwardRefs-vX-mze-3.css.br +0 -0
  506. codex/static_root/assets/forwardRefs-vX-mze-3.css.gz +0 -0
  507. codex/static_root/assets/group-tab-BSr4dJJW.e36d5a728ebc.js.br +0 -0
  508. codex/static_root/assets/group-tab-BSr4dJJW.e36d5a728ebc.js.gz +0 -0
  509. codex/static_root/assets/group-tab-BSr4dJJW.js.br +0 -0
  510. codex/static_root/assets/group-tab-BSr4dJJW.js.gz +0 -0
  511. codex/static_root/assets/http-error-CwCiNlwC.386c711703ef.js +0 -1
  512. codex/static_root/assets/http-error-CwCiNlwC.386c711703ef.js.br +0 -0
  513. codex/static_root/assets/http-error-CwCiNlwC.386c711703ef.js.gz +0 -0
  514. codex/static_root/assets/http-error-CwCiNlwC.js +0 -1
  515. codex/static_root/assets/http-error-CwCiNlwC.js.br +0 -0
  516. codex/static_root/assets/http-error-CwCiNlwC.js.gz +0 -0
  517. codex/static_root/assets/index-DOP9KYca.5d9b48ff6f1a.js.br +0 -0
  518. codex/static_root/assets/index-DOP9KYca.5d9b48ff6f1a.js.gz +0 -0
  519. codex/static_root/assets/index-DOP9KYca.js.br +0 -0
  520. codex/static_root/assets/index-DOP9KYca.js.gz +0 -0
  521. codex/static_root/assets/library-tab-B_PHwUZ-.516218e664f8.js.br +0 -0
  522. codex/static_root/assets/library-tab-B_PHwUZ-.516218e664f8.js.gz +0 -0
  523. codex/static_root/assets/library-tab-B_PHwUZ-.js.br +0 -0
  524. codex/static_root/assets/library-tab-B_PHwUZ-.js.gz +0 -0
  525. codex/static_root/assets/main-B8_0rUnw.a9be0875ae25.css.br +0 -0
  526. codex/static_root/assets/main-B8_0rUnw.css.br +0 -0
  527. codex/static_root/assets/main-BERoK-j2.3915bda15ee5.js +0 -39
  528. codex/static_root/assets/main-BERoK-j2.3915bda15ee5.js.br +0 -0
  529. codex/static_root/assets/main-BERoK-j2.3915bda15ee5.js.gz +0 -0
  530. codex/static_root/assets/main-BERoK-j2.js +0 -39
  531. codex/static_root/assets/main-BERoK-j2.js.br +0 -0
  532. codex/static_root/assets/main-BERoK-j2.js.gz +0 -0
  533. codex/static_root/assets/pager-full-pdf-Bs_Q1Bfa.2408a027dbe1.js +0 -1
  534. codex/static_root/assets/pager-full-pdf-Bs_Q1Bfa.2408a027dbe1.js.br +0 -0
  535. codex/static_root/assets/pager-full-pdf-Bs_Q1Bfa.2408a027dbe1.js.gz +0 -0
  536. codex/static_root/assets/pager-full-pdf-Bs_Q1Bfa.js +0 -1
  537. codex/static_root/assets/pager-full-pdf-Bs_Q1Bfa.js.br +0 -0
  538. codex/static_root/assets/pager-full-pdf-Bs_Q1Bfa.js.gz +0 -0
  539. codex/static_root/assets/pagination-toolbar-CWi6EIET.c440bd1066b0.js +0 -1
  540. codex/static_root/assets/pagination-toolbar-CWi6EIET.c440bd1066b0.js.br +0 -0
  541. codex/static_root/assets/pagination-toolbar-CWi6EIET.c440bd1066b0.js.gz +0 -0
  542. codex/static_root/assets/pagination-toolbar-CWi6EIET.js +0 -1
  543. codex/static_root/assets/pagination-toolbar-CWi6EIET.js.br +0 -0
  544. codex/static_root/assets/pagination-toolbar-CWi6EIET.js.gz +0 -0
  545. codex/static_root/assets/pdf-doc-BFFOclVi.b0ec00bfb616.js.br +0 -0
  546. codex/static_root/assets/pdf-doc-BFFOclVi.b0ec00bfb616.js.gz +0 -0
  547. codex/static_root/assets/pdf-doc-BFFOclVi.js.br +0 -0
  548. codex/static_root/assets/pdf-doc-BFFOclVi.js.gz +0 -0
  549. codex/static_root/assets/reader-DxFZyySj.340be27f9b2d.js.br +0 -0
  550. codex/static_root/assets/reader-DxFZyySj.340be27f9b2d.js.gz +0 -0
  551. codex/static_root/assets/reader-DxFZyySj.js.br +0 -0
  552. codex/static_root/assets/reader-DxFZyySj.js.gz +0 -0
  553. codex/static_root/assets/relation-chips-C4GQrh_b.f1e80447ddb4.js +0 -1
  554. codex/static_root/assets/relation-chips-C4GQrh_b.f1e80447ddb4.js.br +0 -0
  555. codex/static_root/assets/relation-chips-C4GQrh_b.f1e80447ddb4.js.gz +0 -0
  556. codex/static_root/assets/relation-chips-C4GQrh_b.js +0 -1
  557. codex/static_root/assets/relation-chips-C4GQrh_b.js.br +0 -0
  558. codex/static_root/assets/relation-chips-C4GQrh_b.js.gz +0 -0
  559. codex/static_root/assets/relation-chips-CpiT_4k-.b72d78f512e6.css +0 -1
  560. codex/static_root/assets/relation-chips-CpiT_4k-.b72d78f512e6.css.br +0 -0
  561. codex/static_root/assets/relation-chips-CpiT_4k-.b72d78f512e6.css.gz +0 -0
  562. codex/static_root/assets/relation-chips-CpiT_4k-.css +0 -1
  563. codex/static_root/assets/relation-chips-CpiT_4k-.css.br +0 -0
  564. codex/static_root/assets/relation-chips-CpiT_4k-.css.gz +0 -0
  565. codex/static_root/assets/settings-drawer-BD44Ahju.54110f5e27ec.js.br +0 -0
  566. codex/static_root/assets/settings-drawer-BD44Ahju.54110f5e27ec.js.gz +0 -0
  567. codex/static_root/assets/settings-drawer-BD44Ahju.js.br +0 -0
  568. codex/static_root/assets/settings-drawer-BD44Ahju.js.gz +0 -0
  569. codex/static_root/assets/settings-drawer-D7bFOc4_.9748ddd58be9.css.br +0 -0
  570. codex/static_root/assets/settings-drawer-D7bFOc4_.9748ddd58be9.css.gz +0 -0
  571. codex/static_root/assets/settings-drawer-D7bFOc4_.css.br +0 -0
  572. codex/static_root/assets/settings-drawer-D7bFOc4_.css.gz +0 -0
  573. codex/static_root/assets/ssrBoot-_TndNOM6.a99eba568e94.js +0 -1
  574. codex/static_root/assets/ssrBoot-_TndNOM6.a99eba568e94.js.br +0 -0
  575. codex/static_root/assets/ssrBoot-_TndNOM6.a99eba568e94.js.gz +0 -0
  576. codex/static_root/assets/ssrBoot-_TndNOM6.js +0 -1
  577. codex/static_root/assets/ssrBoot-_TndNOM6.js.br +0 -0
  578. codex/static_root/assets/ssrBoot-_TndNOM6.js.gz +0 -0
  579. codex/static_root/assets/stats-tab-Dzy_P00k.ea54237a2011.js +0 -1
  580. codex/static_root/assets/stats-tab-Dzy_P00k.ea54237a2011.js.br +0 -0
  581. codex/static_root/assets/stats-tab-Dzy_P00k.ea54237a2011.js.gz +0 -0
  582. codex/static_root/assets/stats-tab-Dzy_P00k.js +0 -1
  583. codex/static_root/assets/stats-tab-Dzy_P00k.js.br +0 -0
  584. codex/static_root/assets/stats-tab-Dzy_P00k.js.gz +0 -0
  585. codex/static_root/assets/task-tab-CW4DQ3KN.81812f9208e5.css +0 -1
  586. codex/static_root/assets/task-tab-CW4DQ3KN.81812f9208e5.css.gz +0 -0
  587. codex/static_root/assets/task-tab-CW4DQ3KN.css +0 -1
  588. codex/static_root/assets/task-tab-CW4DQ3KN.css.gz +0 -0
  589. codex/static_root/assets/task-tab-DUpMTPbM.bf11c5676008.js +0 -1
  590. codex/static_root/assets/task-tab-DUpMTPbM.bf11c5676008.js.br +0 -0
  591. codex/static_root/assets/task-tab-DUpMTPbM.bf11c5676008.js.gz +0 -0
  592. codex/static_root/assets/task-tab-DUpMTPbM.js +0 -1
  593. codex/static_root/assets/task-tab-DUpMTPbM.js.br +0 -0
  594. codex/static_root/assets/task-tab-DUpMTPbM.js.gz +0 -0
  595. codex/static_root/assets/unauthorized-BBwsmi0O.19d4882b821d.css +0 -1
  596. codex/static_root/assets/unauthorized-BBwsmi0O.19d4882b821d.css.br +0 -0
  597. codex/static_root/assets/unauthorized-BBwsmi0O.19d4882b821d.css.gz +0 -0
  598. codex/static_root/assets/unauthorized-BBwsmi0O.css +0 -1
  599. codex/static_root/assets/unauthorized-BBwsmi0O.css.br +0 -0
  600. codex/static_root/assets/unauthorized-BBwsmi0O.css.gz +0 -0
  601. codex/static_root/assets/unauthorized-CN4zNUwv.6cef38be7edd.js.br +0 -0
  602. codex/static_root/assets/unauthorized-CN4zNUwv.6cef38be7edd.js.gz +0 -0
  603. codex/static_root/assets/unauthorized-CN4zNUwv.js.br +0 -0
  604. codex/static_root/assets/unauthorized-CN4zNUwv.js.gz +0 -0
  605. codex/static_root/assets/user-tab-BfK1ySCm.24ed1c97836c.js.br +0 -0
  606. codex/static_root/assets/user-tab-BfK1ySCm.24ed1c97836c.js.gz +0 -0
  607. codex/static_root/assets/user-tab-BfK1ySCm.js.br +0 -0
  608. codex/static_root/assets/user-tab-BfK1ySCm.js.gz +0 -0
  609. codex/static_root/img/missing-cover-165.f4bb7740084c.webp +0 -0
  610. codex/static_root/manifest.c30398ff70cf.json +0 -760
  611. codex/static_root/manifest.c30398ff70cf.json.br +0 -0
  612. codex/static_root/manifest.c30398ff70cf.json.gz +0 -0
  613. codex-1.8.13.dist-info/RECORD +0 -1102
  614. {codex-1.8.13.dist-info → codex-1.8.16.dist-info}/entry_points.txt +0 -0
@@ -1 +0,0 @@
1
- import{_ as m,E as c,w as e,q as s,v as l,a as o,x as u,aK as _,al as d}from"./main-BERoK-j2.js";import{S as g,P}from"./reader-DxFZyySj.js";import f from"./pdf-doc-BFFOclVi.js";import"./settings-drawer-BD44Ahju.js";import"./forwardRefs-CGimG8CQ.js";import"./unauthorized-CN4zNUwv.js";import"./VDialog-B1OSC1f5.js";import"./change-password-dialog-CB7sPDF5.js";import"./VForm-J2mEa_og.js";import"./VSelectionControl-3mF3UtxV.js";import"./admin-D7dHJsJ4.js";import"./ssrBoot-_TndNOM6.js";import"./copy-to-clipboard-DoUvDJVx.js";import"./VDivider-6KdInZc6.js";import"./VWindowItem-BUML2ecc.js";import"./VSelect-CP3Eb9Go.js";import"./VCheckboxBtn-CqdpagcB.js";import"./pagination-toolbar-CWi6EIET.js";import"./VTable-KYw5fCd8.js";import"./confirm-dialog-Bc3Bw4Wf.js";import"./VExpansionPanels-Bwkzb0Oy.js";import"./VRadioGroup-jPA1T3rE.js";import"./VCheckbox-BwGe90i7.js";import"./index-DOP9KYca.js";const k={name:"PagerFullPDF",components:{PageChangeLink:P,PDFDoc:f,ScaleForScroll:g},props:{book:{type:Object,required:!0}},emits:["load","error","unauthorized"],computed:{...c(d,{page:r=>r.page||0}),src(){return _(this.book)}}};function F(r,S,a,D,h,p){const t=e("PageChangeLink"),n=e("PDFDoc"),i=e("ScaleForScroll");return l(),s("span",null,[o(t,{direction:"prev"}),o(t,{direction:"next"}),o(i,null,{default:u(()=>[o(n,{book:a.book,page:r.page,src:p.src},null,8,["book","page","src"])]),_:1})])}const M=m(k,[["render",F]]);export{M as default};
@@ -1 +0,0 @@
1
- import{_ as m,E as c,w as e,q as s,v as l,a as o,x as u,aK as _,al as d}from"./main-BERoK-j2.js";import{S as g,P}from"./reader-DxFZyySj.js";import f from"./pdf-doc-BFFOclVi.js";import"./settings-drawer-BD44Ahju.js";import"./forwardRefs-CGimG8CQ.js";import"./unauthorized-CN4zNUwv.js";import"./VDialog-B1OSC1f5.js";import"./change-password-dialog-CB7sPDF5.js";import"./VForm-J2mEa_og.js";import"./VSelectionControl-3mF3UtxV.js";import"./admin-D7dHJsJ4.js";import"./ssrBoot-_TndNOM6.js";import"./copy-to-clipboard-DoUvDJVx.js";import"./VDivider-6KdInZc6.js";import"./VWindowItem-BUML2ecc.js";import"./VSelect-CP3Eb9Go.js";import"./VCheckboxBtn-CqdpagcB.js";import"./pagination-toolbar-CWi6EIET.js";import"./VTable-KYw5fCd8.js";import"./confirm-dialog-Bc3Bw4Wf.js";import"./VExpansionPanels-Bwkzb0Oy.js";import"./VRadioGroup-jPA1T3rE.js";import"./VCheckbox-BwGe90i7.js";import"./index-DOP9KYca.js";const k={name:"PagerFullPDF",components:{PageChangeLink:P,PDFDoc:f,ScaleForScroll:g},props:{book:{type:Object,required:!0}},emits:["load","error","unauthorized"],computed:{...c(d,{page:r=>r.page||0}),src(){return _(this.book)}}};function F(r,S,a,D,h,p){const t=e("PageChangeLink"),n=e("PDFDoc"),i=e("ScaleForScroll");return l(),s("span",null,[o(t,{direction:"prev"}),o(t,{direction:"next"}),o(i,null,{default:u(()=>[o(n,{book:a.book,page:r.page,src:p.src},null,8,["book","page","src"])]),_:1})])}const M=m(k,[["render",F]]);export{M as default};
@@ -1 +0,0 @@
1
- import{g as ke,p as he,f as ot,t as $,u as ye,b as m,n as re,d as V,K as Re,aY as $e,_ as T,y as f,v as l,W as Ne,A as ue,x as C,m as Z,a6 as Ve,a as u,E as B,aZ as lt,N as L,q as p,H as h,B as w,aw as ut,ae as Te,a_ as dt,a$ as ct,az as mt,w as _,C as de,b0 as ht,b1 as ft,b2 as pt,b3 as Fe,l as vt,G as gt,b4 as bt,ab as kt,U as yt,a0 as Le,z as F,b5 as _t,F as me,ag as St,ac as wt,ad as Ct,a9 as Ue,Y as Tt,c as g,b6 as De,aD as Ie,aU as Ee,r as be,b7 as Mt,b8 as Me,aX as Bt,aW as Rt,i as qe,b9 as Nt,h as ie,T as ze,aR as Vt,e as Lt}from"./main-BERoK-j2.js";import{A as It,V as _e,k as ne,n as xt,t as Pt,j as $t,R as Oe,s as Ft,u as Dt,c as Be,i as Et,f as zt}from"./forwardRefs-CGimG8CQ.js";import{c as Ot,d as At}from"./VSelect-CP3Eb9Go.js";import{a as Gt,c as jt,d as Ut,V as qt}from"./VDialog-B1OSC1f5.js";import{C as Ht}from"./change-password-dialog-CB7sPDF5.js";import{d as Kt,f as Wt,u as Yt,g as Ae,m as Zt,h as Xt,i as Qt}from"./VSelectionControl-3mF3UtxV.js";import{V as He}from"./VTable-KYw5fCd8.js";import{C as Ke}from"./confirm-dialog-Bc3Bw4Wf.js";import{P as Jt,V as ea}from"./unauthorized-CN4zNUwv.js";const ta=he({...Re(),...It({variant:"text"})},"VToolbarItems"),pi=ke()({name:"VToolbarItems",props:ta(),setup(e,t){let{slots:a}=t;return ot({VBtn:{color:$(()=>e.color),height:"inherit",variant:$(()=>e.variant)}}),ye(()=>m("div",{class:V(["v-toolbar-items",e.class]),style:re(e.style)},[a.default?.()])),{}}}),Ce=new Set(["",$e,$e.toString(),void 0]),aa=function(e){let t;if(Ce.has(e))t=e;else if(e instanceof Object)if("ids"in e){const a=new Set(e.ids);Ce.intersection(a).size>0?t=void 0:t={value:e.ids.join(","),title:e.name}}else Ce.has(e.pk)?t=void 0:t={value:e.pk,title:e.name};else t={value:e,title:e.toString()};return e?.url&&(t.url=e.url),t},sa=function(e,t){return e.title.localeCompare(t.title)},ia=function(e,t){return Number.parseFloat(e.title)-Number.parseFloat(t.title)},Ge=function({items:e,filter:t,numeric:a=!1,sort:r=!0}){const n=e||[],s=t&&t.toLowerCase();let i=[];for(const o of n){const d=aa(o);d!=null&&(!s||d?.title?.toLowerCase().includes(s))&&i.push(d)}if(r){const o=a?ia:sa;i=i.sort(o)}return i},na={name:"ToolbarSelect",props:{selectLabel:{type:String,default:""},maxSelectLen:{type:Number,default:0}},computed:{style(){if(this.maxSelectLen){const e=this.$vuetify.display.xs?"max-width":"width",t=this.maxSelectLen*.7+"em";return`${e}: ${t}`}return""}}};function ra(e,t,a,r,n,s){return l(),f(Ot,Z(e.$attrs,{label:a.selectLabel,"aria-label":a.selectLabel,class:"toolbarSelect",density:"compact","full-width":"","menu-props":{maxHeight:void 0},"hide-details":"auto",style:s.style,variant:"plain"}),Ne({item:C(({item:i,props:o})=>[u(Gt,Z(o,{density:"compact",variant:"plain",title:i.title,value:i.value}),null,16,["title","value"])]),_:2},[ue(e.$slots,(i,o)=>({name:o,fn:C(d=>[Ve(e.$slots,o,Z({props:i},d),void 0,!0)])}))]),1040,["label","aria-label","style"])}const vi=T(na,[["render",ra],["__scopeId","data-v-cda2da63"]]),gi=jt("v-spacer","div","VSpacer"),oa={name:"BookCover",props:{group:{type:String,required:!0},pks:{type:Array,required:!0},childCount:{type:Number,default:1},finished:{type:Boolean},mtime:{type:Number,default:Date.now()}},data(){return{showPlaceholder:!1}},computed:{...B(L,["coverSettings"]),coverSrc(){return lt({group:this.group,pks:this.pks},this.coverSettings,this.mtime)},multiPkClasses(){const e=this.pks.length,t={};return e>=4?t.stack4=!0:e>1&&(t[`stack${e}`]=!0),t}},mounted:function(){this.delayPlaceholder()},methods:{delayPlaceholder:function(){setTimeout(()=>{this.showPlaceholder=!0},2e3)}}},la={class:"bookCover"},ua={key:1,class:"childCount"};function da(e,t,a,r,n,s){return l(),p("div",la,[u(Ut,{src:s.coverSrc,class:V(["coverImg",s.multiPkClasses])},null,8,["src","class"]),a.finished!==!0?(l(),p("div",{key:0,class:V({unreadFlag:!0,mixedreadFlag:a.finished===null})},null,2)):h("",!0),a.group!=="c"?(l(),p("span",ua,w(a.childCount),1)):h("",!0)])}const ca=T(oa,[["render",da],["__scopeId","data-v-8e8f21d5"]]),ma=10,ha={name:"DownloadButton",components:{ConfirmDialog:Ke},props:{button:{type:Boolean,default:!1},item:{type:Object,required:!0}},data(){return{mdiDownload:mt}},computed:{...B(L,["filterOnlySettings","groupNames"]),show(){return this.item?.ids?.length>0&&!this.item.ids.includes(0)},isOneComic(){return this.item?.group==="c"&&this.item?.ids?.length===1},downloadFn(){return this.isOneComic?this.item.name:`${this.groupNames[this.item?.group]} - ${this.item.name} Comics.zip`},downloadURL(){let e="";if(this.isOneComic){const t=this.item.ids[0];e=dt({pk:t},this.downloadFn,this.item?.mtime)}else{const t=this.item?.group,a=this.item?.ids,r=this.filterOnlySettings;e=ct({group:t,pks:a},this.downloadFn,r,this.item?.mtime)}return e},formattedChildren(){return Te.format(this.item?.childCount)},title(){let e="Download";return e+=this.isOneComic?" Book":` ${this.formattedChildren} Books`,e},confirm(){return this.item?.childCount>ma},confirmText(){return this.confirm?`Download ${this.formattedChildren} books`:""}},methods:{download(){const e=this.downloadURL,t=this.downloadFn;if(this.isOneComic)ut(e,t);else{const a=document.createElement("a");a.download=this.downloadFn,a.href=this.downloadURL,a.click(),a.remove()}}}};function fa(e,t,a,r,n,s){const i=_("ConfirmDialog");return s.show?(l(),f(i,{key:0,button:a.button,"button-text":s.title,confirm:s.confirm,"confirm-text":"Download","prepend-icon":n.mdiDownload,"title-text":s.title,text:"May take a while",onConfirm:s.download},null,8,["button","button-text","confirm","prepend-icon","title-text","onConfirm"])):h("",!0)}const pa=T(ha,[["render",fa],["__scopeId","data-v-4c14087b"]]),va=1,ga={name:"MarkReadButton",components:{ConfirmDialog:Ke},props:{button:{type:Boolean,default:!1},item:{type:Object,required:!0}},computed:{...B(L,["groupNames"]),verb(){return this.item.finished?"Unread":"Read"},confirm(){return this.item.children>va},show(){return this.item?.ids?.length>0&&!this.item.ids.includes(0)},icon(){return this.item.finished?ht:ft},confirmText(){return this.confirm?`Mark ${this.verb}`:""},markReadText(){const e=["Mark"];this.item.group!="c"&&e.push("Entire");const t=this.groupNames[this.item.group];return e.push(t,this.verb),e.join(" ")},itemName(){return this.item.name||"(Empty)"}},methods:{...de(L,["setBookmarkFinished"]),toggleRead:function(){this.setBookmarkFinished(this.item,!this.item.finished)}}};function ba(e,t,a,r,n,s){const i=_("ConfirmDialog");return s.show?(l(),f(i,{key:0,button:a.button,"button-text":s.markReadText,confirm:s.confirm,"confirm-text":s.confirmText,"prepend-icon":s.icon,"title-text":s.markReadText,text:s.itemName,onConfirm:s.toggleRead},null,8,["button","button-text","confirm","confirm-text","prepend-icon","title-text","text","onConfirm"])):h("",!0)}const ka=T(ga,[["render",ba],["__scopeId","data-v-7b148c61"]]),We=["writer","author","plotter","plot","script","scripter","story","interviewer","translator","artist","penciller","breakdowns","pencils","illustrator","layouts","inker","finishes","inks","embellisher","inkAssists","colorist","colorer","colourer","colors","colours","colorDesigner","colorFlats","colorSeparations","designer","digitalArtTechnician","grayTone","letterer","cover","covers","coverArtist","editor","edits","editing"];Object.freeze(We);const Ye=["genres","characters","teams","locations","seriesGroups","stories","storyArcNumbers","tags","universes"];Object.freeze(Ye);const Ze=new Set(["Characters","Teams"]);Object.freeze(Ze);function ya(e,t){const a=e.name.split(" ").pop(),r=t.name.split(" ").pop();return a.localeCompare(r)}const z=pt("metadata",{state:()=>({md:void 0}),getters:{roleMap(e){const t={};for(const{role:a}of e.md.credits){const r=a?.name?a.name:"Other";t[r]=a}return t},_mappedCredits(e){const t={};if(!e?.md?.credits)return t;for(const{role:a,person:r}of e.md.credits){const n=a?.name?a.name:"Other";n in t||(t[n]=[]),t[n].push(r)}for(const[a,r]of Object.entries(t))t[a]=r.sort(ya);return t},_sortedRoles(e){const t=Object.keys(e._mappedCredits),a={};for(const n of t)a[n.toLowerCase()]=n;const r=[];for(const n of We){const s=a[n];if(s&&(r.push(s),delete a[n],!Object.keys(a).length))break}return t.sort(),r.push(t),r},credits(e){return this.mapTag(e._mappedCredits,e._sortedRoles)},identifiers(e){const t=[];if(!e.md?.identifiers)return t;for(const a of e.md.identifiers){const r=a.name.split(":"),n=r[0],s=r[1],i=L().identifierSourceTitle(n);let o="";i&&i!=="None"&&(o+=i+":"),o+=s;const d={pk:a.pk,url:a.url,name:o};t.push(d)}return t},tags(e){const t=e.mapTag(e.md,Ye);e.identifiers?.length&&(t.Identifiers={filter:"identifiers",tags:this.identifiers});for(const a of Object.values(t))a.tags=a.tags.sort((r,n)=>r.name.localeCompare(n.name));return t}},actions:{async loadMetadata({group:e,pks:t}){await Fe.getMetadata({group:e,pks:t},L().metadataSettings).then(a=>{const r={...a.data};return r.loaded=!0,this.md=r,!0}).catch(a=>{console.error(a),this.clearMetadata()})},clearMetadata(){this.md=void 0},getTagName(e){var t;return e==="storyArcNumbers"?t="Story Arcs":t=vt(e),t},markTagMain(e,t){const a="main"+e.slice(0,-1),r=this.md[a]?.pk,n=[];var s=[];for(const i of t)r===i.pk?s.push(i):n.push(i);return{mainTags:s,regularTags:n}},mapTag(e,t){const a={};for(const s of t){const i=e[s];if(!i?.length)continue;const o=this.getTagName(s);var r=[],n=[];Ze.has(o)?{mainTags:r,regularTags:n}=this.markTagMain(o,i):n=i,a[o]={filter:s,tags:n,mainTags:r}}return a},lazyImport({group:e,ids:t}){return Fe.getLazyImport({group:e,pks:t})}}}),_a={name:"MetadataActivator",props:{book:{type:Object,required:!0},toolbar:{type:Boolean,require:!0}},data(){return{mdiTagOutline:bt}},computed:{...B(gt,{lazyImportEnabled:e=>e.adminFlags.lazyImportMetadata}),variant(){return this.toolbar?"plain":"text"}},methods:{...de(z,["lazyImport"]),onMouseEnter(){if(this.lazyImportEnabled&&this.book.group==="c"&&!this.book.hasMetadata){const e=this.book.ids||[this.book.pk];this.lazyImport({group:this.book.group,ids:e}),this.book.hasMetadata=!0}}}};function Sa(e,t,a,r,n,s){return l(),f(_e,{onMouseenter:s.onMouseEnter,"aria-label":"tags",class:"tagButton cardControlButton",variant:s.variant,icon:n.mdiTagOutline,title:"Tags",onClick:t[0]||(t[0]=kt(()=>{},["prevent"]))},null,8,["onMouseenter","variant","icon"])}const wa=T(_a,[["render",Sa]]),Ca=["B","kB","MB","GB","TB","PB","EB","ZB","YB"],Ta=["B","KiB","MiB","GiB","TiB","PiB","EiB","ZiB","YiB"],Ma=["b","kbit","Mbit","Gbit","Tbit","Pbit","Ebit","Zbit","Ybit"],Ba=["b","kibit","Mibit","Gibit","Tibit","Pibit","Eibit","Zibit","Yibit"],je=(e,t,a)=>{let r=e;return typeof t=="string"||Array.isArray(t)?r=e.toLocaleString(t,a):(t===!0||a!==void 0)&&(r=e.toLocaleString(void 0,a)),r},Xe=e=>{if(typeof e=="number")return Math.log10(e);const t=e.toString(10);return t.length+Math.log10("0."+t.slice(0,15))},Ra=e=>typeof e=="number"?Math.log(e):Xe(e)*Math.log(10),Na=(e,t)=>{if(typeof e=="number")return e/t;const a=e/BigInt(t),r=e%BigInt(t);return Number(a)+Number(r)/t};function Qe(e,t){if(typeof e!="bigint"&&!Number.isFinite(e))throw new TypeError(`Expected a finite number, got ${typeof e}: ${e}`);t={bits:!1,binary:!1,space:!0,...t};const a=t.bits?t.binary?Ba:Ma:t.binary?Ta:Ca,r=t.space?" ":"";if(t.signed&&(typeof e=="number"?e===0:e===0n))return` 0${r}${a[0]}`;const n=e<0,s=n?"-":t.signed?"+":"";n&&(e=-e);let i;if(t.minimumFractionDigits!==void 0&&(i={minimumFractionDigits:t.minimumFractionDigits}),t.maximumFractionDigits!==void 0&&(i={maximumFractionDigits:t.maximumFractionDigits,...i}),e<1){const M=je(e,t.locale,i);return s+M+r+a[0]}const o=Math.min(Math.floor(t.binary?Ra(e)/Math.log(1024):Xe(e)/3),a.length-1);if(e=Na(e,(t.binary?1024:1e3)**o),!i){const M=Math.max(3,Number.parseInt(e,10).toString().length);e=e.toPrecision(M)}const d=je(Number(e),t.locale,i),k=a[o];return s+d+r+k}const Va={name:"MetadataExpandButton"};function La(e,t,a,r,n,s){return l(),f(_e,{density:"compact",text:"...expand",variant:"text"})}const Ia=T(Va,[["render",La]]),xa={name:"MetadataTextBox",components:{ExpandButton:Ia},props:{group:{type:String,default:""},highlight:{type:Boolean,default:!1},label:{type:String,default:""},maxHeight:{type:Number,default:0},value:{type:[Object,String,Number,Boolean],default:void 0}},data(){return{mdiOpenInNew:Le,expanded:!1,mounted:!1}},computed:{...B(L,["groupNames"]),...B(L,{browserShow:e=>e.settings.show,browserTopGroup:e=>e.settings.topGroup,folderViewEnabled:e=>e.page.adminFlags.folderView}),computedValue(){return this.value&&this.value.name!==void 0?this.value.name:this.value},lastSlashIndex(){return this.computedValue.lastIndexOf("/")+1},displayValue(){let e;return this.group==="f"&&this.computedValue?e=this.computedValue.slice(0,Math.max(0,this.lastSlashIndex)):this.group==="v"&&this.computedValue?e=yt(this.computedValue,this.value.numberTo):e=this.computedValue,e},textValueStyles(){const e=this.maxHeight>0&&!this.expanded?this.maxHeight:0;return e?"max-height: "+e+"px;":""},textValueRefName(){return"mdTextValue"+this.label.replaceAll(" ","")},isOverflow(){if(!this.mounted)return!1;const e=this.$refs[this.textValueRefName];return e?e.clientHeight<e.scrollHeight:!1},showExpandButton(){return!this.expanded&&this.maxHeight>0&&this.isOverflow},linkPks(){return(this.value.ids||[this.value.pk]).join(",")},clickable(){const e=this.$router.currentRoute.value.params;return!this.group||e.group===this.group||this.group==="f"&&!this.folderViewEnabled||!["a","f"].includes(this.group)&&!this.browserShow[this.group]?!1:!!this.linkPks?.length},classes(){return{clickable:this.clickable,highlight:this.highlight}},toRoute(){if(!this.clickable)return"";const e=this.group,t=this.linkPks;return{name:"browser",params:{group:e,pks:t,page:1}}},linkSettings(){return{topGroup:this.getTopGroup(this.group)}},title(){let e;return this.label?e=this.label:this.group?e=this.groupNames[this.group]:e="",this.toRoute?`Browse to ${e}`:e},baseName(){return this.group==="f"?this.computedValue.slice(Math.max(0,this.lastSlashIndex)):""}},mounted(){this.mounted=!0},methods:{...de(L,["routeWithSettings","getTopGroup"]),onClick(){this.clickable&&this.routeWithSettings(this.linkSettings,this.toRoute)}}},Pa={key:0,class:"text"},$a={key:0,class:"textLabel"},Fa=["title"],Da={key:0,class:"textContent"};function Ea(e,t,a,r,n,s){const i=_("ExpandButton");return s.displayValue?(l(),p("div",Pa,[a.label?(l(),p("div",$a,[F(w(a.label)+" ",1),s.showExpandButton?(l(),f(i,{key:0,class:"expandButton",onClick:t[0]||(t[0]=o=>n.expanded=!0)})):h("",!0)])):h("",!0),u(Kt,null,{default:C(()=>[m("div",null,[m("div",{ref:s.textValueRefName,class:"textValue",style:re(s.textValueStyles)},[m("span",{class:V(["textContent",s.classes]),title:s.title,onClick:t[1]||(t[1]=(...o)=>s.onClick&&s.onClick(...o))},w(s.displayValue),11,Fa),s.baseName?(l(),p("span",Da,w(s.baseName),1)):h("",!0)],4),s.showExpandButton&&!a.label?(l(),f(i,{key:0,class:"expandButton",onClick:t[2]||(t[2]=o=>n.expanded=!0)})):h("",!0)])]),_:1})])):h("",!0)}const xe=T(xa,[["render",Ea],["__scopeId","data-v-847af0f1"]]),za={name:"MetadataRatings",components:{MetadataText:xe},computed:{...B(z,{md:e=>e.md}),show(){return this.md?.criticRating!==void 0||this.md?.ageRating}}},Oa={key:0},Aa={key:1};function Ga(e,t,a,r,n,s){const i=_("MetadataText");return s.show?(l(),f(He,{key:0},{default:C(()=>[m("tbody",null,[e.md.criticalRating?(l(),p("tr",Oa,[t[0]||(t[0]=m("td",{class:"key"},"Critical Rating",-1)),m("td",null,[u(i,{value:e.md.criticalRating},null,8,["value"])])])):h("",!0),e.md.ageRating?(l(),p("tr",Aa,[t[1]||(t[1]=m("td",{class:"key"},"Age Rating",-1)),m("td",null,[u(i,{value:e.md.ageRating.name},null,8,["value"])])])):h("",!0)])]),_:1})):h("",!0)}const ja=T(za,[["render",Ga],["__scopeId","data-v-8b5cb217"]]),Ua=new Set(["p","i","s","v"]),qa={name:"MetadataTags",props:{item:{type:Object,required:!0},filter:{type:String,default:""},main:{type:Boolean,default:!1}},data(){return{mdiStar:_t,mdiOpenInNew:Le}},computed:{...B(L,{browserShow:e=>e.settings.show,filterValues(e){return e.settings.filters[this.filter]},topGroup:e=>e.settings.topGroup}),...B(z,{mdGroup:e=>e.md.group,mdIds:e=>e.md.ids}),groupMode(){return Ua.has(this.filter)},clickable(){return this.filter&&this.item.value&&(!this.groupMode||this.browserShow[this.filter])},classes(){return{clickable:(this.clickable||this.item.url)&&!this.highlight}},highlight(){return!!(this.groupMode&&this.filter===this.mdGroup&&this.mdIds.includes(this.item.value)||this.filterValues?.includes(this.item.value))},variant(){return this.highlight?"flat":"tonal"},color(){const e=this.$vuetify.theme.current.colors;return this.highlight?e["primary-darken-1"]:""},linkGroup(){let e;return this.groupMode?e=this.filter:e=["f","s"].includes(this.topGroup)?this.topGroup:"r",e},linkPks(){return this.groupMode||this.linkGroup!=="a"&&this.filter==="storyArcs"?this.item.value.toString():"0"},toRoute(){if(!this.clickable)return"";const e=this.linkGroup,t=this.linkPks;return{name:"browser",params:{group:e,pks:t,page:1}}},linkSettings(){let e;return this.linkPks==="0"?e={filters:{[this.filter]:[this.item.value]}}:e={topGroup:this.getTopGroup(this.linkGroup)},e},title(){return this.filter==="identifiers"?this.identifierSourceTitle(this.item.title):this.item.title}},methods:{...de(L,["routeWithSettings","getTopGroup","identifierSourceTitle"]),async onClick(){this.clickable&&this.routeWithSettings(this.linkSettings,this.toRoute)}}},Ha=["href"],Ka={key:1};function Wa(e,t,a,r,n,s){return l(),f(At,{class:V(s.classes),color:s.color,value:a.item.value,variant:s.variant,onClick:s.onClick},{default:C(()=>[a.item.url?(l(),p("a",{key:0,href:a.item.url,target:"_blank"},[a.main?(l(),f(ne,{key:0,class:"mainStar"},{default:C(()=>[F(w(n.mdiStar),1)]),_:1})):h("",!0),F(w(s.title)+" ",1),a.main?(l(),f(ne,{key:1,class:"mainStar"},{default:C(()=>[F(w(n.mdiStar),1)]),_:1})):h("",!0),u(ne,null,{default:C(()=>[F(w(n.mdiOpenInNew),1)]),_:1})],8,Ha)):(l(),p("span",Ka,[a.main?(l(),f(ne,{key:0,class:"mainStar"},{default:C(()=>[F(w(n.mdiStar),1)]),_:1})):h("",!0),F(" "+w(s.title)+" ",1),a.main?(l(),f(ne,{key:1,class:"mainStar"},{default:C(()=>[F(w(n.mdiStar),1)]),_:1})):h("",!0)]))]),_:1},8,["class","color","value","variant","onClick"])}const Ya=T(qa,[["render",Wa],["__scopeId","data-v-1da1eb5b"]]),Za={name:"MetadataTags",components:{MetadataChip:Ya},props:{label:{type:String,default:""},values:{type:Array,default(){return[]}},mainValues:{type:Array,default(){return[]}},filter:{type:String,required:!1,default:void 0}},computed:{mainItems(){return Ge({items:this.mainValues,sort:!1})},items(){let e;return this.filter==="universes"?e=this.fixUniverseTitles(this.values):e=this.values,Ge({items:e,sort:!1})}},methods:{...de(L,["fixUniverseTitles"])}},Xa={key:0},Qa={key:0,class:"chipGroupLabel"};function Ja(e,t,a,r,n,s){const i=_("MetadataChip");return s.items?.length>0?(l(),p("div",Xa,[a.label?(l(),p("div",Qa,w(a.label),1)):h("",!0),m("div",null,[(l(!0),p(me,null,ue(s.mainItems,o=>(l(),f(i,{key:`${a.filter}/${o.value}`,filter:a.filter,item:o,main:!0},null,8,["filter","item"]))),128)),(l(!0),p(me,null,ue(s.items,o=>(l(),f(i,{key:`${a.filter}/${o.value}`,filter:a.filter,item:o},null,8,["filter","item"]))),128))])])):h("",!0)}const Je=T(Za,[["render",Ja],["__scopeId","data-v-0011fa82"]]),es={name:"MetadataTagsTable",components:{MetadataTags:Je},data(){return{mdiOpenInNew:Le}},props:{keyMap:{type:Object,default:void 0},tagMap:{type:Object,required:!0}},computed:{show(){return Object.keys(this.tagMap).length>0}}},ts={key:0,class:"key keyLink"},as={href:"keyMap[key].url"},ss={key:1,class:"key"},is={class:"tags"};function ns(e,t,a,r,n,s){const i=_("MetadataTags");return s.show?(l(),f(He,{key:0},{default:C(()=>[m("tbody",null,[(l(!0),p(me,null,ue(Object.entries(a.tagMap),([o,{filter:d,tags:k,mainTags:M}])=>(l(),p("tr",{key:o},[a.keyMap&&a.keyMap[o]&&a.keyMap[o].url?(l(),p("td",ts,[m("a",as,[F(w(o),1),u(ne,null,{default:C(()=>[F(w(n.mdiOpenInNew),1)]),_:1})])])):(l(),p("td",ss,w(o),1)),m("td",is,[u(i,{filter:d,values:k,mainValues:M},null,8,["filter","values","mainValues"])])]))),128))])]),_:1})):h("",!0)}const rs=T(es,[["render",ns],["__scopeId","data-v-dd36bea8"]]),os={name:"MetadataBody",components:{MetadataRatings:ja,MetadataTagsTable:rs,MetadataText:xe},props:{book:{type:Object,required:!0}},computed:{...B(z,["credits","ratings","tags"]),...B(L,{twentyFourHourTime:e=>e.settings?.twentyFourHourTime,readingDirectionTitles:e=>e.choices.static.readingDirection}),...B(z,{md:e=>e.md,roleMap:e=>e.roleMap}),readingDirectionText(){return this.md?this.readingDirectionTitles[this.md.readingDirection]:"Unknown"},size(){return this?.md?.size>0?Qe(this.md.size):0},sizeLabel(){return this?.md?.group==="c"?"Size":"Total Size"},fileType(){return this?.md?.fileType||"Unknown"}},methods:{formatDateTime(e){return St(e,this.twentyFourHourTime)}}},ls={id:"metadataBody"},us={class:"mdSection"},ds={class:"mdSection"},cs={class:"quarterRow"},ms={class:"thirdRow"},hs={class:"lastSmallRow"},fs={key:0,class:"halfRow mdSection"},ps={class:"mdSection"},vs={class:"inlineRow"},gs={class:"inlineRow"};function bs(e,t,a,r,n,s){const i=_("MetadataText"),o=_("MetadataTagsTable"),d=_("MetadataRatings");return l(),p("div",ls,[m("section",us,[u(i,{value:e.md.summary,"max-height":100},null,8,["value"]),u(i,{value:e.md.review,label:"Review","max-height":100},null,8,["value"])]),u(o,{"key-map":e.roleMap,"tag-map":e.credits,class:"mdSection"},null,8,["key-map","tag-map"]),m("section",ds,[m("div",cs,[e.md.createdAt?(l(),f(i,{key:0,value:s.formatDateTime(e.md.createdAt),label:"Created at",class:"mtime"},null,8,["value"])):h("",!0),e.md.updatedAt?(l(),f(i,{key:1,value:s.formatDateTime(e.md.updatedAt),label:"Updated at",class:"mtime"},null,8,["value"])):h("",!0),u(i,{value:s.size,label:s.sizeLabel},null,8,["value","label"]),u(i,{value:s.fileType,label:"File Type"},null,8,["value"])]),m("div",ms,[u(i,{label:"Reading Direction",value:s.readingDirectionText},null,8,["value"]),u(i,{value:e.md.originalFormat?.name,label:"Original Format"},null,8,["value"]),u(i,{value:(!!e.md.monochrome).toString(),label:"Monochrome"},null,8,["value"])]),m("div",hs,[u(i,{group:"f",value:{pk:e.md.parentFolderId,name:e.md.path},label:"Path"},null,8,["value"])])]),e.md?.country||e.md?.language?(l(),p("section",fs,[u(i,{value:e.md.country?.name,label:"Country"},null,8,["value"]),u(i,{value:e.md.language?.name,label:"Language"},null,8,["value"])])):h("",!0),u(d,{class:"mdSection"}),u(o,{"tag-map":e.tags,class:"mdSection"},null,8,["tag-map"]),m("section",ps,[m("section",vs,[u(i,{value:e.md.notes,label:"Notes"},null,8,["value"])]),m("section",gs,[u(i,{value:e.md.tagger,label:"Tagger"},null,8,["value"]),u(i,{value:e.md.scanInfo,label:"Scan"},null,8,["value"])])])])}const ks=T(os,[["render",bs],["__scopeId","data-v-e65fff8f"]]),et=new Set("rtl","btt");Object.freeze(et);const tt=({ids:e,page:t,readingDirection:a,pageCount:r},n)=>{if(e.length===0||n&&!r)return"";const s=e[0];if(t)t=Number(t);else if(et.has(a)){const i=Number(r)-1;t=Math.max(i,0)}else t=0;return{name:"reader",params:{pk:s,page:t}}},at={p:"publisher",i:"imprint",s:"series",v:"volume",f:"folder",a:"storyArc"};Object.freeze(at);const ys={name:"MetadataControls",components:{DownloadButton:pa,MarkReadButton:ka},props:{group:{type:String,required:!0}},computed:{...B(z,{md:e=>e.md}),...B(L,{importMetadata:e=>e.page?.adminFlags?.importMetadata}),downloadName(){const e=this.md;let t;if(!e)t="Unknown.cbz";else if(e.fileName)t=e.fileName;else{if(this.md.group==="f")return[this.firstNameFromList(e.folderList)];if(this.md.group==="a")return[this.firstNameFromList(e.storyArcList)];t=[this.firstNameFromList(e.publisherList),this.firstNameFromList(e.imprintList),this.firstNameFromList(e.seriesList),this.firstNameFromList(e.volumeList),Ue(this.md,3),this.md.name].filter(Boolean).join(" ")}return t},downloadItem(){return{group:this.md?.group,ids:this.md?.ids,childCount:this.md?.childCount,mtime:this.md?.mtime,name:this.downloadName}},isReadButtonShown(){return this.group==="c"&&this.$route.name!="reader"},isReadButtonEnabled(){return!!this.readerRoute},markReadItem(){let e="";const t=at[this.md.group];return t?e=(this.md[t+"List"]||[]).map(({name:n})=>n).join(", "):e=this.md.name,{group:this.md.group,ids:this.md.ids,finished:this.md.finished,name:e,children:this.md.childCount||1}},readButtonIcon(){return this.isReadButtonEnabled?wt:Ct},readerRoute(){return this.md?.ids?tt(this.md,this.importMetadata):{}},size(){return this.$vuetify.display.smAndDown?"x-small":"default"}},methods:{firstNameFromList(e){let t="";if(!e)return t;for(const a of Object.values(e))if(a.name){t=a.name;break}return t}}},_s={class:"controlRow"};function Ss(e,t,a,r,n,s){const i=_("DownloadButton"),o=_("MarkReadButton");return l(),p("section",_s,[u(i,{id:"downloadButton",button:!0,item:s.downloadItem,size:s.size},null,8,["item","size"]),u(o,{id:"markReadButton",button:!0,item:s.markReadItem,size:s.size},null,8,["item","size"]),s.isReadButtonShown?(l(),f(_e,{key:0,id:"readButton",title:"Read Comic",disabled:!s.isReadButtonEnabled,size:s.size,to:s.readerRoute},{default:C(()=>[u(ne,null,{default:C(()=>[F(w(s.readButtonIcon),1)]),_:1}),t[0]||(t[0]=F(" Read ",-1))]),_:1},8,["disabled","size","to"])):h("",!0)])}const ws=T(ys,[["render",Ss],["__scopeId","data-v-d254bb05"]]),Cs={name:"MetadataBookCover",components:{BookCover:ca},props:{group:{type:String,required:!0}},computed:{...B(z,{md:e=>e.md})}},Ts={class:"bookCoverWrapper"};function Ms(e,t,a,r,n,s){const i=_("BookCover");return l(),p("div",Ts,[u(i,{id:"bookCover",group:a.group,pks:e.md.ids,"child-count":e.md.childCount,finished:e.md.finished,mtime:e.md.mtime},null,8,["group","pks","child-count","finished","mtime"]),u(xt,{class:"bookCoverProgress","model-value":e.md.progress,rounded:"","background-color":"inherit",height:"2","aria-label":"% read"},null,8,["model-value"])])}const Bs=T(Cs,[["render",Ms],["__scopeId","data-v-3a0db03b"]]),Rs={name:"MetadataHeader",components:{MetadataBookCover:Bs,MetadataControls:ws,MetadataTags:Je,MetadataText:xe},props:{group:{type:String,required:!0}},computed:{...B(L,{importMetadata:e=>e.page?.adminFlags?.importMetadata,q:e=>e.settings.q}),...B(z,{md:e=>e.md}),collectionTitle(){if(this.md.collectionTitle)return`${this.md.collectionTitle}:`},date(){if(!this.md.year&&!this.md.month&&!this.md.day)return"";const e=new Date(this.md.year||1970,this.md.month||1,this.md.day||1),t={};return this.md.year&&(t.year="numeric"),this.md.month&&(t.month=this.$vuetify.display.smAndDown?"short":"long"),this.md.day&&(t.day="numeric"),e.toLocaleDateString("default",t)},readerRoute(){return this.md?.ids?tt(this.md,this.importMetadata):{}},formattedIssueNumber(){if(!this.md)return"Unknown";if(!((this.md.issueNumber===null||this.md.issueNumber===void 0)&&!this.md.issueSuffix))return"#"+Ue(this.md)},pages(){let e="";if(!this.md)return e;if(this.md.page){const a=Te.format(this.md.page);e+=this.$vuetify.display.smAndDown?`${a} / `:`Read ${a} of `}const t=Te.format(this.md.pageCount);return e+=`${t} page`,this.md.pageCount!==1&&(e+="s"),this.$vuetify.display.smAndUp&&this.md.progress>0&&(e+=` (${Math.round(this.md.progress)}%)`),e},size(){return this?.md?.size>0?Qe(this.md.size):0},fileType(){return this?.md?.fileType||"Unknown"},seriesVolumeCount(){const e=this.md.seriesVolumeCount;return e?`of ${e}`:""},volumeIssueCount(){const e=this.md.volumeIssueCount;return e?`/ ${e}`:""}}},Ns={id:"metadataHeader"},Vs={key:1,id:"seriesHeader"},Ls={id:"seriesRow",class:"inlineRow"},Is={key:2,id:"titleRow"},xs={key:4,id:"publisherRow",class:"inlineRow"},Ps={key:7,id:"pageDateRow",class:"inlineRow"};function $s(e,t,a,r,n,s){const i=_("MetadataText"),o=_("MetadataBookCover"),d=_("MetadataTags"),k=_("MetadataControls");return l(),p(me,null,[m("header",Ns,[e.q?(l(),f(i,{key:0,id:"search",value:e.q,label:"Search Query",highlight:!0},null,8,["value"])):h("",!0),u(o,{id:"metadataBookCover",group:a.group},null,8,["group"]),e.md.seriesList?.length===1?(l(),p("section",Vs,[m("div",Ls,[(l(),f(i,{id:"series",key:e.md.seriesList[0].ids,value:e.md.seriesList[0],group:"s",highlight:e.md.group==="s"},null,8,["value","highlight"])),e.md.volumeList?.length===1?(l(),f(i,{id:"volume",key:e.md.volumeList[0].ids,value:e.md.volumeList[0],group:"v",highlight:e.md.group==="v"},null,8,["value","highlight"])):h("",!0),u(i,{value:s.seriesVolumeCount,class:"subdued"},null,8,["value"]),u(i,{id:"issue",value:s.formattedIssueNumber,group:"c",highlight:e.md.group==="c"},null,8,["value","highlight"]),u(i,{value:s.volumeIssueCount,class:"subdued"},null,8,["value"])])])):h("",!0),e.md.name?(l(),p("span",Is,w(s.collectionTitle)+" "+w(e.md.name),1)):h("",!0),e.md.seriesList?.length>1?(l(),f(d,{key:3,id:"seriesTags",class:"groupTags",label:"Series",values:e.md.seriesList,filter:"s"},null,8,["values"])):h("",!0),m("div",null,[e.md.volumeList?.length>1?(l(),f(d,{key:0,id:"volumeTags",class:"groupTags",label:"Volumes",values:e.md.volumeList,filter:"v"},null,8,["values"])):h("",!0)]),e.md.publisherList?.length===1?(l(),p("div",xs,[(l(),f(i,{id:"publisher",key:e.md.publisherList[0].ids,group:"p",highlight:e.md.group==="p",value:e.md.publisherList[0]},null,8,["highlight","value"])),e.md.imprintList?.length===1?(l(),f(i,{id:"imprint",key:e.md.imprintList[0].ids,group:"i",highlight:e.md.group==="i",value:e.md.imprintList[0]},null,8,["highlight","value"])):h("",!0)])):h("",!0),e.md.publisherList?.length>1?(l(),f(d,{key:5,id:"publisherTags",class:"groupTags",label:"Publishers",values:e.md.publisherList,filter:"p"},null,8,["values"])):h("",!0),e.md.imprintList?.length>1?(l(),f(d,{key:6,id:"imprintTags",class:"groupTags",label:"Imprints",values:e.md.imprintList,filter:"i"},null,8,["values"])):h("",!0),s.pages||e.md.year||e.md.month||e.md.day?(l(),p("div",Ps,[u(i,{value:s.pages},null,8,["value"]),u(i,{value:s.date,class:"datePicker"},null,8,["value"])])):h("",!0)]),u(k,{id:"controls",group:a.group},null,8,["group"])],64)}const Fs=T(Rs,[["render",$s],["__scopeId","data-v-a05541e5"]]),Ds=1160,Es=.05,zs=250,Os={name:"MetadataButton",components:{CloseButton:Ht,MetadataActivator:wa,MetadataBody:ks,MetadataHeader:Fs,PlaceholderLoading:Jt},props:{book:{type:Object,required:!0},toolbar:{type:Boolean,default:!1}},data(){return{dialog:!1,progress:0}},computed:{...B(z,{md:e=>e.md}),showContainer(){return this.md?.loaded||!1},children(){return this.book.childCount||0}},watch:{dialog(e){e?this.dialogOpened():this.clearMetadata()}},methods:{...de(z,["clearMetadata","loadMetadata"]),dialogOpened(){const e=this.book.ids||[this.book.pk],t={group:this.book.group,pks:e};this.loadMetadata(t),this.startProgress()},startProgress(){this.startTime=Date.now(),this.estimatedMS=Math.max(Es,this.children/Ds)*1e3,this.updateProgress()},updateProgress(){const e=Date.now()-this.startTime;this.progress=e/this.estimatedMS*100,!(this.progress>=100||this.md)&&setTimeout(()=>{this.updateProgress()},zs)}}},As={key:1,id:"placeholderContainer"};function Gs(e,t,a,r,n,s){const i=_("MetadataActivator"),o=_("CloseButton"),d=_("MetadataHeader"),k=_("MetadataBody"),M=_("PlaceholderLoading");return l(),f(qt,{modelValue:n.dialog,"onUpdate:modelValue":t[2]||(t[2]=y=>n.dialog=y),fullscreen:"",transition:"dialog-bottom-transition"},{activator:C(({props:y})=>[u(i,Z(y,{book:a.book,toolbar:a.toolbar}),null,16,["book","toolbar"])]),default:C(()=>[u(o,{class:"closeButton",title:"Close Metadata (esc)",onClick:t[0]||(t[0]=y=>n.dialog=!1)}),s.showContainer?(l(),p("div",{key:0,id:"metadataContainer",onKeyup:t[1]||(t[1]=Tt(y=>n.dialog=!1,["esc"]))},[u(d,{group:a.book.group},null,8,["group"]),u(k,{book:a.book},null,8,["book"])],32)):(l(),p("div",As,[t[3]||(t[3]=m("div",{id:"placeholderTitle"},"Tags Loading",-1)),u(M,{"model-value":n.progress,indeterminate:n.progress>=100,class:"placeholder"},null,8,["model-value","indeterminate"])]))]),_:1},8,["modelValue"])}const bi=T(Os,[["render",Gs],["__scopeId","data-v-d554fe5b"]]),js={name:"PaginationNavButton",props:{narrow:{type:Boolean,default:!0}},computed:{classes(){return{narrowButton:this.narrow}}}};function Us(e,t,a,r,n,s){return l(),f(_e,{variant:"plain",density:"compact",class:V(["paginationNavButton",s.classes]),size:"medium"},Ne({_:2},[ue(e.$slots,(i,o)=>({name:o,fn:C(d=>[Ve(e.$slots,o,Z({props:i},d),void 0,!0)])}))]),1032,["class"])}const ki=T(js,[["render",Us],["__scopeId","data-v-cf061c30"]]),Pe=Symbol.for("vuetify:v-slider");function qs(e,t,a){const r=a==="vertical",n=t.getBoundingClientRect(),s="touches"in e?e.touches[0]:e;return r?s.clientY-(n.top+n.height/2):s.clientX-(n.left+n.width/2)}function Hs(e,t){return"touches"in e&&e.touches.length?e.touches[0][t]:"changedTouches"in e&&e.changedTouches.length?e.changedTouches[0][t]:e[t]}const Ks=he({disabled:{type:Boolean,default:null},error:Boolean,readonly:{type:Boolean,default:null},max:{type:[Number,String],default:100},min:{type:[Number,String],default:0},step:{type:[Number,String],default:0},thumbColor:String,thumbLabel:{type:[Boolean,String],default:void 0,validator:e=>typeof e=="boolean"||e==="always"},thumbSize:{type:[Number,String],default:20},showTicks:{type:[Boolean,String],default:!1,validator:e=>typeof e=="boolean"||e==="always"},ticks:{type:[Array,Object]},tickSize:{type:[Number,String],default:2},color:String,trackColor:String,trackFillColor:String,trackSize:{type:[Number,String],default:4},direction:{type:String,default:"horizontal",validator:e=>["vertical","horizontal"].includes(e)},reverse:Boolean,noKeyboard:Boolean,...$t(),...Pt({elevation:2}),ripple:{type:Boolean,default:!0}},"Slider"),Ws=e=>{const t=g(()=>parseFloat(e.min)),a=g(()=>parseFloat(e.max)),r=g(()=>Number(e.step)>0?parseFloat(e.step):0),n=g(()=>Math.max(De(r.value),De(t.value)));function s(i){if(i=parseFloat(i),r.value<=0)return i;const o=Me(i,t.value,a.value),d=t.value%r.value;let k=Math.round((o-d)/r.value)*r.value+d;return o>k&&k+r.value>a.value&&(k=a.value),parseFloat(Math.min(k,a.value).toFixed(n.value))}return{min:t,max:a,step:r,decimals:n,roundValue:s}},Ys=e=>{let{props:t,steps:a,onSliderStart:r,onSliderMove:n,onSliderEnd:s,getActiveThumb:i}=e;const{isRtl:o}=Ie(),d=$(()=>t.reverse),k=g(()=>t.direction==="vertical"),M=g(()=>k.value!==d.value),{min:y,max:I,step:D,decimals:O,roundValue:K}=a,X=g(()=>parseInt(t.thumbSize,10)),Q=g(()=>parseInt(t.tickSize,10)),A=g(()=>parseInt(t.trackSize,10)),G=g(()=>(I.value-y.value)/D.value),j=$(()=>t.disabled),U=g(()=>t.error||t.disabled?void 0:t.thumbColor??t.color),q=g(()=>t.error||t.disabled?void 0:t.thumbColor),W=g(()=>t.error||t.disabled?void 0:t.trackColor??t.color),x=g(()=>t.error||t.disabled?void 0:t.trackFillColor??t.color),P=Ee(!1),S=Ee(0),Y=be(),b=be();function E(c){const v=Y.value?.$el;if(!v)return;const se=t.direction==="vertical",ve=se?"top":"left",ge=se?"height":"width",st=se?"clientY":"clientX",{[ve]:it,[ge]:nt}=v.getBoundingClientRect(),rt=Hs(c,st);let we=Me((rt-it-S.value)/nt)||0;return(se?M.value:M.value!==o.value)&&(we=1-we),K(y.value+we*(I.value-y.value))}const J=c=>{const v=E(c);v!=null&&s({value:v}),P.value=!1,S.value=0},ce=c=>{const v=E(c);b.value=i(c),b.value&&(P.value=!0,b.value.contains(c.target)?S.value=qs(c,b.value,t.direction):(S.value=0,v!=null&&n({value:v})),v!=null&&r({value:v}),Bt(()=>b.value?.focus()))},ee={passive:!0,capture:!0};function H(c){const v=E(c);v!=null&&n({value:v})}function te(c){c.stopPropagation(),c.preventDefault(),J(c),window.removeEventListener("mousemove",H,ee),window.removeEventListener("mouseup",te)}function oe(c){J(c),window.removeEventListener("touchmove",H,ee),c.target?.removeEventListener("touchend",oe)}function ae(c){ce(c),window.addEventListener("touchmove",H,ee),c.target?.addEventListener("touchend",oe,{passive:!1})}function Se(c){c.button===0&&(c.preventDefault(),ce(c),window.addEventListener("mousemove",H,ee),window.addEventListener("mouseup",te,{passive:!1}))}const le=c=>{const v=(c-y.value)/(I.value-y.value)*100;return Me(isNaN(v)?0:v,0,100)},fe=$(()=>t.showTicks),pe=g(()=>fe.value?t.ticks?Array.isArray(t.ticks)?t.ticks.map(c=>({value:c,position:le(c),label:c.toString()})):Object.keys(t.ticks).map(c=>({value:parseFloat(c),position:le(parseFloat(c)),label:t.ticks[c]})):G.value!==1/0?Mt(G.value+1).map(c=>{const v=y.value+c*D.value;return{value:v,position:le(v)}}):[]:[]),N=g(()=>pe.value.some(c=>{let{label:v}=c;return!!v})),R={activeThumbRef:b,color:$(()=>t.color),decimals:O,disabled:j,direction:$(()=>t.direction),elevation:$(()=>t.elevation),hasLabels:N,isReversed:d,indexFromEnd:M,min:y,max:I,mousePressed:P,noKeyboard:$(()=>t.noKeyboard),numTicks:G,onSliderMousedown:Se,onSliderTouchstart:ae,parsedTicks:pe,parseMouseMove:E,position:le,readonly:$(()=>t.readonly),rounded:$(()=>t.rounded),roundValue:K,showTicks:fe,startOffset:S,step:D,thumbSize:X,thumbColor:U,thumbLabelColor:q,thumbLabel:$(()=>t.thumbLabel),ticks:$(()=>t.ticks),tickSize:Q,trackColor:W,trackContainerRef:Y,trackFillColor:x,trackSize:A,vertical:k};return Rt(Pe,R),R},Zs=he({focused:Boolean,max:{type:Number,required:!0},min:{type:Number,required:!0},modelValue:{type:Number,required:!0},position:{type:Number,required:!0},ripple:{type:[Boolean,Object],default:!0},name:String,noKeyboard:Boolean,...Re()},"VSliderThumb"),Xs=ke()({name:"VSliderThumb",directives:{vRipple:Oe},props:Zs(),emits:{"update:modelValue":e=>!0},setup(e,t){let{slots:a,emit:r}=t;const n=qe(Pe),{isRtl:s,rtlClasses:i}=Ie();if(!n)throw new Error("[Vuetify] v-slider-thumb must be used inside v-slider or v-range-slider");const{min:o,max:d,thumbColor:k,thumbLabelColor:M,step:y,disabled:I,thumbSize:D,thumbLabel:O,direction:K,isReversed:X,vertical:Q,readonly:A,elevation:G,mousePressed:j,decimals:U,indexFromEnd:q}=n,W=g(()=>I.value?void 0:G.value),{elevationClasses:x}=Ft(W),{textColorClasses:P,textColorStyles:S}=Dt(k),{backgroundColorClasses:Y,backgroundColorStyles:b}=Be(M),{pageup:E,pagedown:J,end:ce,home:ee,left:H,right:te,down:oe,up:ae}=Nt,Se=[E,J,ce,ee,H,te,oe,ae],le=g(()=>y.value?[1,2,3]:[1,5,10]);function fe(N,R){if(e.noKeyboard||!Se.includes(N.key))return;N.preventDefault();const c=y.value||.1,v=(d.value-o.value)/c;if([H,te,oe,ae].includes(N.key)){const ve=(Q.value?[s.value?H:te,X.value?oe:ae]:q.value!==s.value?[H,ae]:[te,ae]).includes(N.key)?1:-1,ge=N.shiftKey?2:N.ctrlKey?1:0;ve===-1&&R===d.value&&!ge&&!Number.isInteger(v)?R=R-v%1*c:R=R+ve*c*le.value[ge]}else if(N.key===ee)R=o.value;else if(N.key===ce)R=d.value;else{const se=N.key===J?1:-1;R=R-se*c*(v>100?v/10:10)}return Math.max(e.min,Math.min(e.max,R))}function pe(N){const R=fe(N,e.modelValue);R!=null&&r("update:modelValue",R)}return ye(()=>{const N=ie(q.value?100-e.position:e.position,"%");return m("div",{class:V(["v-slider-thumb",{"v-slider-thumb--focused":e.focused,"v-slider-thumb--pressed":e.focused&&j.value},e.class,i.value]),style:re([{"--v-slider-thumb-position":N,"--v-slider-thumb-size":ie(D.value)},e.style]),role:"slider",tabindex:I.value?-1:0,"aria-label":e.name,"aria-valuemin":o.value,"aria-valuemax":d.value,"aria-valuenow":e.modelValue,"aria-readonly":!!A.value,"aria-orientation":K.value,onKeydown:A.value?void 0:pe},[m("div",{class:V(["v-slider-thumb__surface",P.value,x.value]),style:re(S.value)},null),ze(m("div",{class:V(["v-slider-thumb__ripple",P.value]),style:re(S.value)},null),[[Oe,e.ripple,null,{circle:!0,center:!0}]]),u(Wt,{origin:"bottom center"},{default:()=>[ze(m("div",{class:"v-slider-thumb__label-container"},[m("div",{class:V(["v-slider-thumb__label",Y.value]),style:re(b.value)},[m("div",null,[a["thumb-label"]?.({modelValue:e.modelValue})??e.modelValue.toFixed(y.value?U.value:1)]),m("div",{class:"v-slider-thumb__label-wedge"},null)])]),[[Vt,O.value&&e.focused||O.value==="always"]])]})])}),{}}}),Qs=he({start:{type:Number,required:!0},stop:{type:Number,required:!0},...Re()},"VSliderTrack"),Js=ke()({name:"VSliderTrack",props:Qs(),emits:{},setup(e,t){let{slots:a}=t;const r=qe(Pe);if(!r)throw new Error("[Vuetify] v-slider-track must be inside v-slider or v-range-slider");const{color:n,parsedTicks:s,rounded:i,showTicks:o,tickSize:d,trackColor:k,trackFillColor:M,trackSize:y,vertical:I,min:D,max:O,indexFromEnd:K}=r,{roundedClasses:X}=Et(i),{backgroundColorClasses:Q,backgroundColorStyles:A}=Be(M),{backgroundColorClasses:G,backgroundColorStyles:j}=Be(k),U=g(()=>`inset-${I.value?"block":"inline"}-${K.value?"end":"start"}`),q=g(()=>I.value?"height":"width"),W=g(()=>({[U.value]:"0%",[q.value]:"100%"})),x=g(()=>e.stop-e.start),P=g(()=>({[U.value]:ie(e.start,"%"),[q.value]:ie(x.value,"%")})),S=g(()=>o.value?(I.value?s.value.slice().reverse():s.value).map((b,E)=>{const J=b.value!==D.value&&b.value!==O.value?ie(b.position,"%"):void 0;return m("div",{key:b.value,class:V(["v-slider-track__tick",{"v-slider-track__tick--filled":b.position>=e.start&&b.position<=e.stop,"v-slider-track__tick--first":b.value===D.value,"v-slider-track__tick--last":b.value===O.value}]),style:{[U.value]:J}},[(b.label||a["tick-label"])&&m("div",{class:"v-slider-track__tick-label"},[a["tick-label"]?.({tick:b,index:E})??b.label])])}):[]);return ye(()=>m("div",{class:V(["v-slider-track",X.value,e.class]),style:re([{"--v-slider-track-size":ie(y.value),"--v-slider-tick-size":ie(d.value)},e.style])},[m("div",{class:V(["v-slider-track__background",G.value,{"v-slider-track__background--opacity":!!n.value||!M.value}]),style:{...W.value,...j.value}},null),m("div",{class:V(["v-slider-track__fill",Q.value]),style:{...P.value,...A.value}},null),o.value&&m("div",{class:V(["v-slider-track__ticks",{"v-slider-track__ticks--always-show":o.value==="always"}])},[S.value])])),{}}}),ei=he({...Xt(),...Ks(),...Zt(),modelValue:{type:[Number,String],default:0}},"VSlider"),ti=ke()({name:"VSlider",props:ei(),emits:{"update:focused":e=>!0,"update:modelValue":e=>!0,start:e=>!0,end:e=>!0},setup(e,t){let{slots:a,emit:r}=t;const n=be(),s=be(),{rtlClasses:i}=Ie(),o=Ws(e),d=Lt(e,"modelValue",void 0,x=>o.roundValue(x??o.min.value)),{min:k,max:M,mousePressed:y,roundValue:I,onSliderMousedown:D,onSliderTouchstart:O,trackContainerRef:K,position:X,hasLabels:Q,readonly:A,noKeyboard:G}=Ys({props:e,steps:o,onSliderStart:()=>{r("start",d.value)},onSliderEnd:x=>{let{value:P}=x;const S=I(P);d.value=S,r("end",S)},onSliderMove:x=>{let{value:P}=x;return d.value=I(P)},getActiveThumb:()=>n.value?.$el}),{isFocused:j,focus:U,blur:q}=Yt(e),W=g(()=>X(d.value));return ye(()=>{const x=Ae.filterProps(e),P=!!(e.label||a.label||a.prepend);return u(Ae,Z({ref:s,class:["v-slider",{"v-slider--has-labels":!!a["tick-label"]||Q.value,"v-slider--focused":j.value,"v-slider--pressed":y.value,"v-slider--disabled":e.disabled},i.value,e.class],style:e.style},x,{focused:j.value}),{...a,prepend:P?S=>m(me,null,[a.label?.(S)??(e.label?u(Qt,{id:S.id.value,class:"v-slider__label",text:e.label},null):void 0),a.prepend?.(S)]):void 0,default:S=>{let{id:Y,messagesId:b}=S;return m("div",{class:"v-slider__container",onMousedown:A.value?void 0:D,onTouchstartPassive:A.value?void 0:O},[m("input",{id:Y.value,name:e.name||Y.value,disabled:!!e.disabled,readonly:!!e.readonly,tabindex:"-1",value:d.value},null),u(Js,{ref:K,start:0,stop:W.value},{"tick-label":a["tick-label"]}),u(Xs,{ref:n,"aria-describedby":b.value,focused:j.value,noKeyboard:G.value,min:k.value,max:M.value,modelValue:d.value,"onUpdate:modelValue":E=>d.value=E,position:W.value,elevation:e.elevation,onFocus:U,onBlur:q,ripple:e.ripple,name:e.name},{"thumb-label":a["thumb-label"]})])}})}),zt({focus:()=>n.value?.$el.focus()},s)}}),ai={name:"PaginationSlider",props:{min:{type:Number,default:0}}};function si(e,t,a,r,n,s){return l(),f(ti,Z({"thumb-size":"36",class:"paginationSlider",density:"compact","hide-details":"auto",min:a.min,rounded:!0,"show-ticks":"always",step:1,"thumb-label":"always"},e.$attrs),{"tick-label":C(({index:i})=>[F(w(i+a.min),1)]),_:1},16,["min"])}const yi=T(ai,[["render",si],["__scopeId","data-v-01b67afd"]]),ii={name:"PaginationToolbar"};function ni(e,t,a,r,n,s){return l(),f(ea,{class:"paginationToolbar codexToolbar",density:"compact",transform:"center bottom"},Ne({_:2},[ue(e.$slots,(i,o)=>({name:o,fn:C(d=>[Ve(e.$slots,o,Z({props:i},d),void 0,!0)])}))]),1024)}const _i=T(ii,[["render",ni],["__scopeId","data-v-cfa8cce0"]]);export{ca as B,pa as D,ka as M,Ce as N,ki as P,vi as T,pi as V,gi as a,bi as b,_i as c,yi as d,tt as g,Qe as p,Ge as t};
@@ -1 +0,0 @@
1
- import{g as ke,p as he,f as ot,t as $,u as ye,b as m,n as re,d as V,K as Re,aY as $e,_ as T,y as f,v as l,W as Ne,A as ue,x as C,m as Z,a6 as Ve,a as u,E as B,aZ as lt,N as L,q as p,H as h,B as w,aw as ut,ae as Te,a_ as dt,a$ as ct,az as mt,w as _,C as de,b0 as ht,b1 as ft,b2 as pt,b3 as Fe,l as vt,G as gt,b4 as bt,ab as kt,U as yt,a0 as Le,z as F,b5 as _t,F as me,ag as St,ac as wt,ad as Ct,a9 as Ue,Y as Tt,c as g,b6 as De,aD as Ie,aU as Ee,r as be,b7 as Mt,b8 as Me,aX as Bt,aW as Rt,i as qe,b9 as Nt,h as ie,T as ze,aR as Vt,e as Lt}from"./main-BERoK-j2.js";import{A as It,V as _e,k as ne,n as xt,t as Pt,j as $t,R as Oe,s as Ft,u as Dt,c as Be,i as Et,f as zt}from"./forwardRefs-CGimG8CQ.js";import{c as Ot,d as At}from"./VSelect-CP3Eb9Go.js";import{a as Gt,c as jt,d as Ut,V as qt}from"./VDialog-B1OSC1f5.js";import{C as Ht}from"./change-password-dialog-CB7sPDF5.js";import{d as Kt,f as Wt,u as Yt,g as Ae,m as Zt,h as Xt,i as Qt}from"./VSelectionControl-3mF3UtxV.js";import{V as He}from"./VTable-KYw5fCd8.js";import{C as Ke}from"./confirm-dialog-Bc3Bw4Wf.js";import{P as Jt,V as ea}from"./unauthorized-CN4zNUwv.js";const ta=he({...Re(),...It({variant:"text"})},"VToolbarItems"),pi=ke()({name:"VToolbarItems",props:ta(),setup(e,t){let{slots:a}=t;return ot({VBtn:{color:$(()=>e.color),height:"inherit",variant:$(()=>e.variant)}}),ye(()=>m("div",{class:V(["v-toolbar-items",e.class]),style:re(e.style)},[a.default?.()])),{}}}),Ce=new Set(["",$e,$e.toString(),void 0]),aa=function(e){let t;if(Ce.has(e))t=e;else if(e instanceof Object)if("ids"in e){const a=new Set(e.ids);Ce.intersection(a).size>0?t=void 0:t={value:e.ids.join(","),title:e.name}}else Ce.has(e.pk)?t=void 0:t={value:e.pk,title:e.name};else t={value:e,title:e.toString()};return e?.url&&(t.url=e.url),t},sa=function(e,t){return e.title.localeCompare(t.title)},ia=function(e,t){return Number.parseFloat(e.title)-Number.parseFloat(t.title)},Ge=function({items:e,filter:t,numeric:a=!1,sort:r=!0}){const n=e||[],s=t&&t.toLowerCase();let i=[];for(const o of n){const d=aa(o);d!=null&&(!s||d?.title?.toLowerCase().includes(s))&&i.push(d)}if(r){const o=a?ia:sa;i=i.sort(o)}return i},na={name:"ToolbarSelect",props:{selectLabel:{type:String,default:""},maxSelectLen:{type:Number,default:0}},computed:{style(){if(this.maxSelectLen){const e=this.$vuetify.display.xs?"max-width":"width",t=this.maxSelectLen*.7+"em";return`${e}: ${t}`}return""}}};function ra(e,t,a,r,n,s){return l(),f(Ot,Z(e.$attrs,{label:a.selectLabel,"aria-label":a.selectLabel,class:"toolbarSelect",density:"compact","full-width":"","menu-props":{maxHeight:void 0},"hide-details":"auto",style:s.style,variant:"plain"}),Ne({item:C(({item:i,props:o})=>[u(Gt,Z(o,{density:"compact",variant:"plain",title:i.title,value:i.value}),null,16,["title","value"])]),_:2},[ue(e.$slots,(i,o)=>({name:o,fn:C(d=>[Ve(e.$slots,o,Z({props:i},d),void 0,!0)])}))]),1040,["label","aria-label","style"])}const vi=T(na,[["render",ra],["__scopeId","data-v-cda2da63"]]),gi=jt("v-spacer","div","VSpacer"),oa={name:"BookCover",props:{group:{type:String,required:!0},pks:{type:Array,required:!0},childCount:{type:Number,default:1},finished:{type:Boolean},mtime:{type:Number,default:Date.now()}},data(){return{showPlaceholder:!1}},computed:{...B(L,["coverSettings"]),coverSrc(){return lt({group:this.group,pks:this.pks},this.coverSettings,this.mtime)},multiPkClasses(){const e=this.pks.length,t={};return e>=4?t.stack4=!0:e>1&&(t[`stack${e}`]=!0),t}},mounted:function(){this.delayPlaceholder()},methods:{delayPlaceholder:function(){setTimeout(()=>{this.showPlaceholder=!0},2e3)}}},la={class:"bookCover"},ua={key:1,class:"childCount"};function da(e,t,a,r,n,s){return l(),p("div",la,[u(Ut,{src:s.coverSrc,class:V(["coverImg",s.multiPkClasses])},null,8,["src","class"]),a.finished!==!0?(l(),p("div",{key:0,class:V({unreadFlag:!0,mixedreadFlag:a.finished===null})},null,2)):h("",!0),a.group!=="c"?(l(),p("span",ua,w(a.childCount),1)):h("",!0)])}const ca=T(oa,[["render",da],["__scopeId","data-v-8e8f21d5"]]),ma=10,ha={name:"DownloadButton",components:{ConfirmDialog:Ke},props:{button:{type:Boolean,default:!1},item:{type:Object,required:!0}},data(){return{mdiDownload:mt}},computed:{...B(L,["filterOnlySettings","groupNames"]),show(){return this.item?.ids?.length>0&&!this.item.ids.includes(0)},isOneComic(){return this.item?.group==="c"&&this.item?.ids?.length===1},downloadFn(){return this.isOneComic?this.item.name:`${this.groupNames[this.item?.group]} - ${this.item.name} Comics.zip`},downloadURL(){let e="";if(this.isOneComic){const t=this.item.ids[0];e=dt({pk:t},this.downloadFn,this.item?.mtime)}else{const t=this.item?.group,a=this.item?.ids,r=this.filterOnlySettings;e=ct({group:t,pks:a},this.downloadFn,r,this.item?.mtime)}return e},formattedChildren(){return Te.format(this.item?.childCount)},title(){let e="Download";return e+=this.isOneComic?" Book":` ${this.formattedChildren} Books`,e},confirm(){return this.item?.childCount>ma},confirmText(){return this.confirm?`Download ${this.formattedChildren} books`:""}},methods:{download(){const e=this.downloadURL,t=this.downloadFn;if(this.isOneComic)ut(e,t);else{const a=document.createElement("a");a.download=this.downloadFn,a.href=this.downloadURL,a.click(),a.remove()}}}};function fa(e,t,a,r,n,s){const i=_("ConfirmDialog");return s.show?(l(),f(i,{key:0,button:a.button,"button-text":s.title,confirm:s.confirm,"confirm-text":"Download","prepend-icon":n.mdiDownload,"title-text":s.title,text:"May take a while",onConfirm:s.download},null,8,["button","button-text","confirm","prepend-icon","title-text","onConfirm"])):h("",!0)}const pa=T(ha,[["render",fa],["__scopeId","data-v-4c14087b"]]),va=1,ga={name:"MarkReadButton",components:{ConfirmDialog:Ke},props:{button:{type:Boolean,default:!1},item:{type:Object,required:!0}},computed:{...B(L,["groupNames"]),verb(){return this.item.finished?"Unread":"Read"},confirm(){return this.item.children>va},show(){return this.item?.ids?.length>0&&!this.item.ids.includes(0)},icon(){return this.item.finished?ht:ft},confirmText(){return this.confirm?`Mark ${this.verb}`:""},markReadText(){const e=["Mark"];this.item.group!="c"&&e.push("Entire");const t=this.groupNames[this.item.group];return e.push(t,this.verb),e.join(" ")},itemName(){return this.item.name||"(Empty)"}},methods:{...de(L,["setBookmarkFinished"]),toggleRead:function(){this.setBookmarkFinished(this.item,!this.item.finished)}}};function ba(e,t,a,r,n,s){const i=_("ConfirmDialog");return s.show?(l(),f(i,{key:0,button:a.button,"button-text":s.markReadText,confirm:s.confirm,"confirm-text":s.confirmText,"prepend-icon":s.icon,"title-text":s.markReadText,text:s.itemName,onConfirm:s.toggleRead},null,8,["button","button-text","confirm","confirm-text","prepend-icon","title-text","text","onConfirm"])):h("",!0)}const ka=T(ga,[["render",ba],["__scopeId","data-v-7b148c61"]]),We=["writer","author","plotter","plot","script","scripter","story","interviewer","translator","artist","penciller","breakdowns","pencils","illustrator","layouts","inker","finishes","inks","embellisher","inkAssists","colorist","colorer","colourer","colors","colours","colorDesigner","colorFlats","colorSeparations","designer","digitalArtTechnician","grayTone","letterer","cover","covers","coverArtist","editor","edits","editing"];Object.freeze(We);const Ye=["genres","characters","teams","locations","seriesGroups","stories","storyArcNumbers","tags","universes"];Object.freeze(Ye);const Ze=new Set(["Characters","Teams"]);Object.freeze(Ze);function ya(e,t){const a=e.name.split(" ").pop(),r=t.name.split(" ").pop();return a.localeCompare(r)}const z=pt("metadata",{state:()=>({md:void 0}),getters:{roleMap(e){const t={};for(const{role:a}of e.md.credits){const r=a?.name?a.name:"Other";t[r]=a}return t},_mappedCredits(e){const t={};if(!e?.md?.credits)return t;for(const{role:a,person:r}of e.md.credits){const n=a?.name?a.name:"Other";n in t||(t[n]=[]),t[n].push(r)}for(const[a,r]of Object.entries(t))t[a]=r.sort(ya);return t},_sortedRoles(e){const t=Object.keys(e._mappedCredits),a={};for(const n of t)a[n.toLowerCase()]=n;const r=[];for(const n of We){const s=a[n];if(s&&(r.push(s),delete a[n],!Object.keys(a).length))break}return t.sort(),r.push(t),r},credits(e){return this.mapTag(e._mappedCredits,e._sortedRoles)},identifiers(e){const t=[];if(!e.md?.identifiers)return t;for(const a of e.md.identifiers){const r=a.name.split(":"),n=r[0],s=r[1],i=L().identifierSourceTitle(n);let o="";i&&i!=="None"&&(o+=i+":"),o+=s;const d={pk:a.pk,url:a.url,name:o};t.push(d)}return t},tags(e){const t=e.mapTag(e.md,Ye);e.identifiers?.length&&(t.Identifiers={filter:"identifiers",tags:this.identifiers});for(const a of Object.values(t))a.tags=a.tags.sort((r,n)=>r.name.localeCompare(n.name));return t}},actions:{async loadMetadata({group:e,pks:t}){await Fe.getMetadata({group:e,pks:t},L().metadataSettings).then(a=>{const r={...a.data};return r.loaded=!0,this.md=r,!0}).catch(a=>{console.error(a),this.clearMetadata()})},clearMetadata(){this.md=void 0},getTagName(e){var t;return e==="storyArcNumbers"?t="Story Arcs":t=vt(e),t},markTagMain(e,t){const a="main"+e.slice(0,-1),r=this.md[a]?.pk,n=[];var s=[];for(const i of t)r===i.pk?s.push(i):n.push(i);return{mainTags:s,regularTags:n}},mapTag(e,t){const a={};for(const s of t){const i=e[s];if(!i?.length)continue;const o=this.getTagName(s);var r=[],n=[];Ze.has(o)?{mainTags:r,regularTags:n}=this.markTagMain(o,i):n=i,a[o]={filter:s,tags:n,mainTags:r}}return a},lazyImport({group:e,ids:t}){return Fe.getLazyImport({group:e,pks:t})}}}),_a={name:"MetadataActivator",props:{book:{type:Object,required:!0},toolbar:{type:Boolean,require:!0}},data(){return{mdiTagOutline:bt}},computed:{...B(gt,{lazyImportEnabled:e=>e.adminFlags.lazyImportMetadata}),variant(){return this.toolbar?"plain":"text"}},methods:{...de(z,["lazyImport"]),onMouseEnter(){if(this.lazyImportEnabled&&this.book.group==="c"&&!this.book.hasMetadata){const e=this.book.ids||[this.book.pk];this.lazyImport({group:this.book.group,ids:e}),this.book.hasMetadata=!0}}}};function Sa(e,t,a,r,n,s){return l(),f(_e,{onMouseenter:s.onMouseEnter,"aria-label":"tags",class:"tagButton cardControlButton",variant:s.variant,icon:n.mdiTagOutline,title:"Tags",onClick:t[0]||(t[0]=kt(()=>{},["prevent"]))},null,8,["onMouseenter","variant","icon"])}const wa=T(_a,[["render",Sa]]),Ca=["B","kB","MB","GB","TB","PB","EB","ZB","YB"],Ta=["B","KiB","MiB","GiB","TiB","PiB","EiB","ZiB","YiB"],Ma=["b","kbit","Mbit","Gbit","Tbit","Pbit","Ebit","Zbit","Ybit"],Ba=["b","kibit","Mibit","Gibit","Tibit","Pibit","Eibit","Zibit","Yibit"],je=(e,t,a)=>{let r=e;return typeof t=="string"||Array.isArray(t)?r=e.toLocaleString(t,a):(t===!0||a!==void 0)&&(r=e.toLocaleString(void 0,a)),r},Xe=e=>{if(typeof e=="number")return Math.log10(e);const t=e.toString(10);return t.length+Math.log10("0."+t.slice(0,15))},Ra=e=>typeof e=="number"?Math.log(e):Xe(e)*Math.log(10),Na=(e,t)=>{if(typeof e=="number")return e/t;const a=e/BigInt(t),r=e%BigInt(t);return Number(a)+Number(r)/t};function Qe(e,t){if(typeof e!="bigint"&&!Number.isFinite(e))throw new TypeError(`Expected a finite number, got ${typeof e}: ${e}`);t={bits:!1,binary:!1,space:!0,...t};const a=t.bits?t.binary?Ba:Ma:t.binary?Ta:Ca,r=t.space?" ":"";if(t.signed&&(typeof e=="number"?e===0:e===0n))return` 0${r}${a[0]}`;const n=e<0,s=n?"-":t.signed?"+":"";n&&(e=-e);let i;if(t.minimumFractionDigits!==void 0&&(i={minimumFractionDigits:t.minimumFractionDigits}),t.maximumFractionDigits!==void 0&&(i={maximumFractionDigits:t.maximumFractionDigits,...i}),e<1){const M=je(e,t.locale,i);return s+M+r+a[0]}const o=Math.min(Math.floor(t.binary?Ra(e)/Math.log(1024):Xe(e)/3),a.length-1);if(e=Na(e,(t.binary?1024:1e3)**o),!i){const M=Math.max(3,Number.parseInt(e,10).toString().length);e=e.toPrecision(M)}const d=je(Number(e),t.locale,i),k=a[o];return s+d+r+k}const Va={name:"MetadataExpandButton"};function La(e,t,a,r,n,s){return l(),f(_e,{density:"compact",text:"...expand",variant:"text"})}const Ia=T(Va,[["render",La]]),xa={name:"MetadataTextBox",components:{ExpandButton:Ia},props:{group:{type:String,default:""},highlight:{type:Boolean,default:!1},label:{type:String,default:""},maxHeight:{type:Number,default:0},value:{type:[Object,String,Number,Boolean],default:void 0}},data(){return{mdiOpenInNew:Le,expanded:!1,mounted:!1}},computed:{...B(L,["groupNames"]),...B(L,{browserShow:e=>e.settings.show,browserTopGroup:e=>e.settings.topGroup,folderViewEnabled:e=>e.page.adminFlags.folderView}),computedValue(){return this.value&&this.value.name!==void 0?this.value.name:this.value},lastSlashIndex(){return this.computedValue.lastIndexOf("/")+1},displayValue(){let e;return this.group==="f"&&this.computedValue?e=this.computedValue.slice(0,Math.max(0,this.lastSlashIndex)):this.group==="v"&&this.computedValue?e=yt(this.computedValue,this.value.numberTo):e=this.computedValue,e},textValueStyles(){const e=this.maxHeight>0&&!this.expanded?this.maxHeight:0;return e?"max-height: "+e+"px;":""},textValueRefName(){return"mdTextValue"+this.label.replaceAll(" ","")},isOverflow(){if(!this.mounted)return!1;const e=this.$refs[this.textValueRefName];return e?e.clientHeight<e.scrollHeight:!1},showExpandButton(){return!this.expanded&&this.maxHeight>0&&this.isOverflow},linkPks(){return(this.value.ids||[this.value.pk]).join(",")},clickable(){const e=this.$router.currentRoute.value.params;return!this.group||e.group===this.group||this.group==="f"&&!this.folderViewEnabled||!["a","f"].includes(this.group)&&!this.browserShow[this.group]?!1:!!this.linkPks?.length},classes(){return{clickable:this.clickable,highlight:this.highlight}},toRoute(){if(!this.clickable)return"";const e=this.group,t=this.linkPks;return{name:"browser",params:{group:e,pks:t,page:1}}},linkSettings(){return{topGroup:this.getTopGroup(this.group)}},title(){let e;return this.label?e=this.label:this.group?e=this.groupNames[this.group]:e="",this.toRoute?`Browse to ${e}`:e},baseName(){return this.group==="f"?this.computedValue.slice(Math.max(0,this.lastSlashIndex)):""}},mounted(){this.mounted=!0},methods:{...de(L,["routeWithSettings","getTopGroup"]),onClick(){this.clickable&&this.routeWithSettings(this.linkSettings,this.toRoute)}}},Pa={key:0,class:"text"},$a={key:0,class:"textLabel"},Fa=["title"],Da={key:0,class:"textContent"};function Ea(e,t,a,r,n,s){const i=_("ExpandButton");return s.displayValue?(l(),p("div",Pa,[a.label?(l(),p("div",$a,[F(w(a.label)+" ",1),s.showExpandButton?(l(),f(i,{key:0,class:"expandButton",onClick:t[0]||(t[0]=o=>n.expanded=!0)})):h("",!0)])):h("",!0),u(Kt,null,{default:C(()=>[m("div",null,[m("div",{ref:s.textValueRefName,class:"textValue",style:re(s.textValueStyles)},[m("span",{class:V(["textContent",s.classes]),title:s.title,onClick:t[1]||(t[1]=(...o)=>s.onClick&&s.onClick(...o))},w(s.displayValue),11,Fa),s.baseName?(l(),p("span",Da,w(s.baseName),1)):h("",!0)],4),s.showExpandButton&&!a.label?(l(),f(i,{key:0,class:"expandButton",onClick:t[2]||(t[2]=o=>n.expanded=!0)})):h("",!0)])]),_:1})])):h("",!0)}const xe=T(xa,[["render",Ea],["__scopeId","data-v-847af0f1"]]),za={name:"MetadataRatings",components:{MetadataText:xe},computed:{...B(z,{md:e=>e.md}),show(){return this.md?.criticRating!==void 0||this.md?.ageRating}}},Oa={key:0},Aa={key:1};function Ga(e,t,a,r,n,s){const i=_("MetadataText");return s.show?(l(),f(He,{key:0},{default:C(()=>[m("tbody",null,[e.md.criticalRating?(l(),p("tr",Oa,[t[0]||(t[0]=m("td",{class:"key"},"Critical Rating",-1)),m("td",null,[u(i,{value:e.md.criticalRating},null,8,["value"])])])):h("",!0),e.md.ageRating?(l(),p("tr",Aa,[t[1]||(t[1]=m("td",{class:"key"},"Age Rating",-1)),m("td",null,[u(i,{value:e.md.ageRating.name},null,8,["value"])])])):h("",!0)])]),_:1})):h("",!0)}const ja=T(za,[["render",Ga],["__scopeId","data-v-8b5cb217"]]),Ua=new Set(["p","i","s","v"]),qa={name:"MetadataTags",props:{item:{type:Object,required:!0},filter:{type:String,default:""},main:{type:Boolean,default:!1}},data(){return{mdiStar:_t,mdiOpenInNew:Le}},computed:{...B(L,{browserShow:e=>e.settings.show,filterValues(e){return e.settings.filters[this.filter]},topGroup:e=>e.settings.topGroup}),...B(z,{mdGroup:e=>e.md.group,mdIds:e=>e.md.ids}),groupMode(){return Ua.has(this.filter)},clickable(){return this.filter&&this.item.value&&(!this.groupMode||this.browserShow[this.filter])},classes(){return{clickable:(this.clickable||this.item.url)&&!this.highlight}},highlight(){return!!(this.groupMode&&this.filter===this.mdGroup&&this.mdIds.includes(this.item.value)||this.filterValues?.includes(this.item.value))},variant(){return this.highlight?"flat":"tonal"},color(){const e=this.$vuetify.theme.current.colors;return this.highlight?e["primary-darken-1"]:""},linkGroup(){let e;return this.groupMode?e=this.filter:e=["f","s"].includes(this.topGroup)?this.topGroup:"r",e},linkPks(){return this.groupMode||this.linkGroup!=="a"&&this.filter==="storyArcs"?this.item.value.toString():"0"},toRoute(){if(!this.clickable)return"";const e=this.linkGroup,t=this.linkPks;return{name:"browser",params:{group:e,pks:t,page:1}}},linkSettings(){let e;return this.linkPks==="0"?e={filters:{[this.filter]:[this.item.value]}}:e={topGroup:this.getTopGroup(this.linkGroup)},e},title(){return this.filter==="identifiers"?this.identifierSourceTitle(this.item.title):this.item.title}},methods:{...de(L,["routeWithSettings","getTopGroup","identifierSourceTitle"]),async onClick(){this.clickable&&this.routeWithSettings(this.linkSettings,this.toRoute)}}},Ha=["href"],Ka={key:1};function Wa(e,t,a,r,n,s){return l(),f(At,{class:V(s.classes),color:s.color,value:a.item.value,variant:s.variant,onClick:s.onClick},{default:C(()=>[a.item.url?(l(),p("a",{key:0,href:a.item.url,target:"_blank"},[a.main?(l(),f(ne,{key:0,class:"mainStar"},{default:C(()=>[F(w(n.mdiStar),1)]),_:1})):h("",!0),F(w(s.title)+" ",1),a.main?(l(),f(ne,{key:1,class:"mainStar"},{default:C(()=>[F(w(n.mdiStar),1)]),_:1})):h("",!0),u(ne,null,{default:C(()=>[F(w(n.mdiOpenInNew),1)]),_:1})],8,Ha)):(l(),p("span",Ka,[a.main?(l(),f(ne,{key:0,class:"mainStar"},{default:C(()=>[F(w(n.mdiStar),1)]),_:1})):h("",!0),F(" "+w(s.title)+" ",1),a.main?(l(),f(ne,{key:1,class:"mainStar"},{default:C(()=>[F(w(n.mdiStar),1)]),_:1})):h("",!0)]))]),_:1},8,["class","color","value","variant","onClick"])}const Ya=T(qa,[["render",Wa],["__scopeId","data-v-1da1eb5b"]]),Za={name:"MetadataTags",components:{MetadataChip:Ya},props:{label:{type:String,default:""},values:{type:Array,default(){return[]}},mainValues:{type:Array,default(){return[]}},filter:{type:String,required:!1,default:void 0}},computed:{mainItems(){return Ge({items:this.mainValues,sort:!1})},items(){let e;return this.filter==="universes"?e=this.fixUniverseTitles(this.values):e=this.values,Ge({items:e,sort:!1})}},methods:{...de(L,["fixUniverseTitles"])}},Xa={key:0},Qa={key:0,class:"chipGroupLabel"};function Ja(e,t,a,r,n,s){const i=_("MetadataChip");return s.items?.length>0?(l(),p("div",Xa,[a.label?(l(),p("div",Qa,w(a.label),1)):h("",!0),m("div",null,[(l(!0),p(me,null,ue(s.mainItems,o=>(l(),f(i,{key:`${a.filter}/${o.value}`,filter:a.filter,item:o,main:!0},null,8,["filter","item"]))),128)),(l(!0),p(me,null,ue(s.items,o=>(l(),f(i,{key:`${a.filter}/${o.value}`,filter:a.filter,item:o},null,8,["filter","item"]))),128))])])):h("",!0)}const Je=T(Za,[["render",Ja],["__scopeId","data-v-0011fa82"]]),es={name:"MetadataTagsTable",components:{MetadataTags:Je},data(){return{mdiOpenInNew:Le}},props:{keyMap:{type:Object,default:void 0},tagMap:{type:Object,required:!0}},computed:{show(){return Object.keys(this.tagMap).length>0}}},ts={key:0,class:"key keyLink"},as={href:"keyMap[key].url"},ss={key:1,class:"key"},is={class:"tags"};function ns(e,t,a,r,n,s){const i=_("MetadataTags");return s.show?(l(),f(He,{key:0},{default:C(()=>[m("tbody",null,[(l(!0),p(me,null,ue(Object.entries(a.tagMap),([o,{filter:d,tags:k,mainTags:M}])=>(l(),p("tr",{key:o},[a.keyMap&&a.keyMap[o]&&a.keyMap[o].url?(l(),p("td",ts,[m("a",as,[F(w(o),1),u(ne,null,{default:C(()=>[F(w(n.mdiOpenInNew),1)]),_:1})])])):(l(),p("td",ss,w(o),1)),m("td",is,[u(i,{filter:d,values:k,mainValues:M},null,8,["filter","values","mainValues"])])]))),128))])]),_:1})):h("",!0)}const rs=T(es,[["render",ns],["__scopeId","data-v-dd36bea8"]]),os={name:"MetadataBody",components:{MetadataRatings:ja,MetadataTagsTable:rs,MetadataText:xe},props:{book:{type:Object,required:!0}},computed:{...B(z,["credits","ratings","tags"]),...B(L,{twentyFourHourTime:e=>e.settings?.twentyFourHourTime,readingDirectionTitles:e=>e.choices.static.readingDirection}),...B(z,{md:e=>e.md,roleMap:e=>e.roleMap}),readingDirectionText(){return this.md?this.readingDirectionTitles[this.md.readingDirection]:"Unknown"},size(){return this?.md?.size>0?Qe(this.md.size):0},sizeLabel(){return this?.md?.group==="c"?"Size":"Total Size"},fileType(){return this?.md?.fileType||"Unknown"}},methods:{formatDateTime(e){return St(e,this.twentyFourHourTime)}}},ls={id:"metadataBody"},us={class:"mdSection"},ds={class:"mdSection"},cs={class:"quarterRow"},ms={class:"thirdRow"},hs={class:"lastSmallRow"},fs={key:0,class:"halfRow mdSection"},ps={class:"mdSection"},vs={class:"inlineRow"},gs={class:"inlineRow"};function bs(e,t,a,r,n,s){const i=_("MetadataText"),o=_("MetadataTagsTable"),d=_("MetadataRatings");return l(),p("div",ls,[m("section",us,[u(i,{value:e.md.summary,"max-height":100},null,8,["value"]),u(i,{value:e.md.review,label:"Review","max-height":100},null,8,["value"])]),u(o,{"key-map":e.roleMap,"tag-map":e.credits,class:"mdSection"},null,8,["key-map","tag-map"]),m("section",ds,[m("div",cs,[e.md.createdAt?(l(),f(i,{key:0,value:s.formatDateTime(e.md.createdAt),label:"Created at",class:"mtime"},null,8,["value"])):h("",!0),e.md.updatedAt?(l(),f(i,{key:1,value:s.formatDateTime(e.md.updatedAt),label:"Updated at",class:"mtime"},null,8,["value"])):h("",!0),u(i,{value:s.size,label:s.sizeLabel},null,8,["value","label"]),u(i,{value:s.fileType,label:"File Type"},null,8,["value"])]),m("div",ms,[u(i,{label:"Reading Direction",value:s.readingDirectionText},null,8,["value"]),u(i,{value:e.md.originalFormat?.name,label:"Original Format"},null,8,["value"]),u(i,{value:(!!e.md.monochrome).toString(),label:"Monochrome"},null,8,["value"])]),m("div",hs,[u(i,{group:"f",value:{pk:e.md.parentFolderId,name:e.md.path},label:"Path"},null,8,["value"])])]),e.md?.country||e.md?.language?(l(),p("section",fs,[u(i,{value:e.md.country?.name,label:"Country"},null,8,["value"]),u(i,{value:e.md.language?.name,label:"Language"},null,8,["value"])])):h("",!0),u(d,{class:"mdSection"}),u(o,{"tag-map":e.tags,class:"mdSection"},null,8,["tag-map"]),m("section",ps,[m("section",vs,[u(i,{value:e.md.notes,label:"Notes"},null,8,["value"])]),m("section",gs,[u(i,{value:e.md.tagger,label:"Tagger"},null,8,["value"]),u(i,{value:e.md.scanInfo,label:"Scan"},null,8,["value"])])])])}const ks=T(os,[["render",bs],["__scopeId","data-v-e65fff8f"]]),et=new Set("rtl","btt");Object.freeze(et);const tt=({ids:e,page:t,readingDirection:a,pageCount:r},n)=>{if(e.length===0||n&&!r)return"";const s=e[0];if(t)t=Number(t);else if(et.has(a)){const i=Number(r)-1;t=Math.max(i,0)}else t=0;return{name:"reader",params:{pk:s,page:t}}},at={p:"publisher",i:"imprint",s:"series",v:"volume",f:"folder",a:"storyArc"};Object.freeze(at);const ys={name:"MetadataControls",components:{DownloadButton:pa,MarkReadButton:ka},props:{group:{type:String,required:!0}},computed:{...B(z,{md:e=>e.md}),...B(L,{importMetadata:e=>e.page?.adminFlags?.importMetadata}),downloadName(){const e=this.md;let t;if(!e)t="Unknown.cbz";else if(e.fileName)t=e.fileName;else{if(this.md.group==="f")return[this.firstNameFromList(e.folderList)];if(this.md.group==="a")return[this.firstNameFromList(e.storyArcList)];t=[this.firstNameFromList(e.publisherList),this.firstNameFromList(e.imprintList),this.firstNameFromList(e.seriesList),this.firstNameFromList(e.volumeList),Ue(this.md,3),this.md.name].filter(Boolean).join(" ")}return t},downloadItem(){return{group:this.md?.group,ids:this.md?.ids,childCount:this.md?.childCount,mtime:this.md?.mtime,name:this.downloadName}},isReadButtonShown(){return this.group==="c"&&this.$route.name!="reader"},isReadButtonEnabled(){return!!this.readerRoute},markReadItem(){let e="";const t=at[this.md.group];return t?e=(this.md[t+"List"]||[]).map(({name:n})=>n).join(", "):e=this.md.name,{group:this.md.group,ids:this.md.ids,finished:this.md.finished,name:e,children:this.md.childCount||1}},readButtonIcon(){return this.isReadButtonEnabled?wt:Ct},readerRoute(){return this.md?.ids?tt(this.md,this.importMetadata):{}},size(){return this.$vuetify.display.smAndDown?"x-small":"default"}},methods:{firstNameFromList(e){let t="";if(!e)return t;for(const a of Object.values(e))if(a.name){t=a.name;break}return t}}},_s={class:"controlRow"};function Ss(e,t,a,r,n,s){const i=_("DownloadButton"),o=_("MarkReadButton");return l(),p("section",_s,[u(i,{id:"downloadButton",button:!0,item:s.downloadItem,size:s.size},null,8,["item","size"]),u(o,{id:"markReadButton",button:!0,item:s.markReadItem,size:s.size},null,8,["item","size"]),s.isReadButtonShown?(l(),f(_e,{key:0,id:"readButton",title:"Read Comic",disabled:!s.isReadButtonEnabled,size:s.size,to:s.readerRoute},{default:C(()=>[u(ne,null,{default:C(()=>[F(w(s.readButtonIcon),1)]),_:1}),t[0]||(t[0]=F(" Read ",-1))]),_:1},8,["disabled","size","to"])):h("",!0)])}const ws=T(ys,[["render",Ss],["__scopeId","data-v-d254bb05"]]),Cs={name:"MetadataBookCover",components:{BookCover:ca},props:{group:{type:String,required:!0}},computed:{...B(z,{md:e=>e.md})}},Ts={class:"bookCoverWrapper"};function Ms(e,t,a,r,n,s){const i=_("BookCover");return l(),p("div",Ts,[u(i,{id:"bookCover",group:a.group,pks:e.md.ids,"child-count":e.md.childCount,finished:e.md.finished,mtime:e.md.mtime},null,8,["group","pks","child-count","finished","mtime"]),u(xt,{class:"bookCoverProgress","model-value":e.md.progress,rounded:"","background-color":"inherit",height:"2","aria-label":"% read"},null,8,["model-value"])])}const Bs=T(Cs,[["render",Ms],["__scopeId","data-v-3a0db03b"]]),Rs={name:"MetadataHeader",components:{MetadataBookCover:Bs,MetadataControls:ws,MetadataTags:Je,MetadataText:xe},props:{group:{type:String,required:!0}},computed:{...B(L,{importMetadata:e=>e.page?.adminFlags?.importMetadata,q:e=>e.settings.q}),...B(z,{md:e=>e.md}),collectionTitle(){if(this.md.collectionTitle)return`${this.md.collectionTitle}:`},date(){if(!this.md.year&&!this.md.month&&!this.md.day)return"";const e=new Date(this.md.year||1970,this.md.month||1,this.md.day||1),t={};return this.md.year&&(t.year="numeric"),this.md.month&&(t.month=this.$vuetify.display.smAndDown?"short":"long"),this.md.day&&(t.day="numeric"),e.toLocaleDateString("default",t)},readerRoute(){return this.md?.ids?tt(this.md,this.importMetadata):{}},formattedIssueNumber(){if(!this.md)return"Unknown";if(!((this.md.issueNumber===null||this.md.issueNumber===void 0)&&!this.md.issueSuffix))return"#"+Ue(this.md)},pages(){let e="";if(!this.md)return e;if(this.md.page){const a=Te.format(this.md.page);e+=this.$vuetify.display.smAndDown?`${a} / `:`Read ${a} of `}const t=Te.format(this.md.pageCount);return e+=`${t} page`,this.md.pageCount!==1&&(e+="s"),this.$vuetify.display.smAndUp&&this.md.progress>0&&(e+=` (${Math.round(this.md.progress)}%)`),e},size(){return this?.md?.size>0?Qe(this.md.size):0},fileType(){return this?.md?.fileType||"Unknown"},seriesVolumeCount(){const e=this.md.seriesVolumeCount;return e?`of ${e}`:""},volumeIssueCount(){const e=this.md.volumeIssueCount;return e?`/ ${e}`:""}}},Ns={id:"metadataHeader"},Vs={key:1,id:"seriesHeader"},Ls={id:"seriesRow",class:"inlineRow"},Is={key:2,id:"titleRow"},xs={key:4,id:"publisherRow",class:"inlineRow"},Ps={key:7,id:"pageDateRow",class:"inlineRow"};function $s(e,t,a,r,n,s){const i=_("MetadataText"),o=_("MetadataBookCover"),d=_("MetadataTags"),k=_("MetadataControls");return l(),p(me,null,[m("header",Ns,[e.q?(l(),f(i,{key:0,id:"search",value:e.q,label:"Search Query",highlight:!0},null,8,["value"])):h("",!0),u(o,{id:"metadataBookCover",group:a.group},null,8,["group"]),e.md.seriesList?.length===1?(l(),p("section",Vs,[m("div",Ls,[(l(),f(i,{id:"series",key:e.md.seriesList[0].ids,value:e.md.seriesList[0],group:"s",highlight:e.md.group==="s"},null,8,["value","highlight"])),e.md.volumeList?.length===1?(l(),f(i,{id:"volume",key:e.md.volumeList[0].ids,value:e.md.volumeList[0],group:"v",highlight:e.md.group==="v"},null,8,["value","highlight"])):h("",!0),u(i,{value:s.seriesVolumeCount,class:"subdued"},null,8,["value"]),u(i,{id:"issue",value:s.formattedIssueNumber,group:"c",highlight:e.md.group==="c"},null,8,["value","highlight"]),u(i,{value:s.volumeIssueCount,class:"subdued"},null,8,["value"])])])):h("",!0),e.md.name?(l(),p("span",Is,w(s.collectionTitle)+" "+w(e.md.name),1)):h("",!0),e.md.seriesList?.length>1?(l(),f(d,{key:3,id:"seriesTags",class:"groupTags",label:"Series",values:e.md.seriesList,filter:"s"},null,8,["values"])):h("",!0),m("div",null,[e.md.volumeList?.length>1?(l(),f(d,{key:0,id:"volumeTags",class:"groupTags",label:"Volumes",values:e.md.volumeList,filter:"v"},null,8,["values"])):h("",!0)]),e.md.publisherList?.length===1?(l(),p("div",xs,[(l(),f(i,{id:"publisher",key:e.md.publisherList[0].ids,group:"p",highlight:e.md.group==="p",value:e.md.publisherList[0]},null,8,["highlight","value"])),e.md.imprintList?.length===1?(l(),f(i,{id:"imprint",key:e.md.imprintList[0].ids,group:"i",highlight:e.md.group==="i",value:e.md.imprintList[0]},null,8,["highlight","value"])):h("",!0)])):h("",!0),e.md.publisherList?.length>1?(l(),f(d,{key:5,id:"publisherTags",class:"groupTags",label:"Publishers",values:e.md.publisherList,filter:"p"},null,8,["values"])):h("",!0),e.md.imprintList?.length>1?(l(),f(d,{key:6,id:"imprintTags",class:"groupTags",label:"Imprints",values:e.md.imprintList,filter:"i"},null,8,["values"])):h("",!0),s.pages||e.md.year||e.md.month||e.md.day?(l(),p("div",Ps,[u(i,{value:s.pages},null,8,["value"]),u(i,{value:s.date,class:"datePicker"},null,8,["value"])])):h("",!0)]),u(k,{id:"controls",group:a.group},null,8,["group"])],64)}const Fs=T(Rs,[["render",$s],["__scopeId","data-v-a05541e5"]]),Ds=1160,Es=.05,zs=250,Os={name:"MetadataButton",components:{CloseButton:Ht,MetadataActivator:wa,MetadataBody:ks,MetadataHeader:Fs,PlaceholderLoading:Jt},props:{book:{type:Object,required:!0},toolbar:{type:Boolean,default:!1}},data(){return{dialog:!1,progress:0}},computed:{...B(z,{md:e=>e.md}),showContainer(){return this.md?.loaded||!1},children(){return this.book.childCount||0}},watch:{dialog(e){e?this.dialogOpened():this.clearMetadata()}},methods:{...de(z,["clearMetadata","loadMetadata"]),dialogOpened(){const e=this.book.ids||[this.book.pk],t={group:this.book.group,pks:e};this.loadMetadata(t),this.startProgress()},startProgress(){this.startTime=Date.now(),this.estimatedMS=Math.max(Es,this.children/Ds)*1e3,this.updateProgress()},updateProgress(){const e=Date.now()-this.startTime;this.progress=e/this.estimatedMS*100,!(this.progress>=100||this.md)&&setTimeout(()=>{this.updateProgress()},zs)}}},As={key:1,id:"placeholderContainer"};function Gs(e,t,a,r,n,s){const i=_("MetadataActivator"),o=_("CloseButton"),d=_("MetadataHeader"),k=_("MetadataBody"),M=_("PlaceholderLoading");return l(),f(qt,{modelValue:n.dialog,"onUpdate:modelValue":t[2]||(t[2]=y=>n.dialog=y),fullscreen:"",transition:"dialog-bottom-transition"},{activator:C(({props:y})=>[u(i,Z(y,{book:a.book,toolbar:a.toolbar}),null,16,["book","toolbar"])]),default:C(()=>[u(o,{class:"closeButton",title:"Close Metadata (esc)",onClick:t[0]||(t[0]=y=>n.dialog=!1)}),s.showContainer?(l(),p("div",{key:0,id:"metadataContainer",onKeyup:t[1]||(t[1]=Tt(y=>n.dialog=!1,["esc"]))},[u(d,{group:a.book.group},null,8,["group"]),u(k,{book:a.book},null,8,["book"])],32)):(l(),p("div",As,[t[3]||(t[3]=m("div",{id:"placeholderTitle"},"Tags Loading",-1)),u(M,{"model-value":n.progress,indeterminate:n.progress>=100,class:"placeholder"},null,8,["model-value","indeterminate"])]))]),_:1},8,["modelValue"])}const bi=T(Os,[["render",Gs],["__scopeId","data-v-d554fe5b"]]),js={name:"PaginationNavButton",props:{narrow:{type:Boolean,default:!0}},computed:{classes(){return{narrowButton:this.narrow}}}};function Us(e,t,a,r,n,s){return l(),f(_e,{variant:"plain",density:"compact",class:V(["paginationNavButton",s.classes]),size:"medium"},Ne({_:2},[ue(e.$slots,(i,o)=>({name:o,fn:C(d=>[Ve(e.$slots,o,Z({props:i},d),void 0,!0)])}))]),1032,["class"])}const ki=T(js,[["render",Us],["__scopeId","data-v-cf061c30"]]),Pe=Symbol.for("vuetify:v-slider");function qs(e,t,a){const r=a==="vertical",n=t.getBoundingClientRect(),s="touches"in e?e.touches[0]:e;return r?s.clientY-(n.top+n.height/2):s.clientX-(n.left+n.width/2)}function Hs(e,t){return"touches"in e&&e.touches.length?e.touches[0][t]:"changedTouches"in e&&e.changedTouches.length?e.changedTouches[0][t]:e[t]}const Ks=he({disabled:{type:Boolean,default:null},error:Boolean,readonly:{type:Boolean,default:null},max:{type:[Number,String],default:100},min:{type:[Number,String],default:0},step:{type:[Number,String],default:0},thumbColor:String,thumbLabel:{type:[Boolean,String],default:void 0,validator:e=>typeof e=="boolean"||e==="always"},thumbSize:{type:[Number,String],default:20},showTicks:{type:[Boolean,String],default:!1,validator:e=>typeof e=="boolean"||e==="always"},ticks:{type:[Array,Object]},tickSize:{type:[Number,String],default:2},color:String,trackColor:String,trackFillColor:String,trackSize:{type:[Number,String],default:4},direction:{type:String,default:"horizontal",validator:e=>["vertical","horizontal"].includes(e)},reverse:Boolean,noKeyboard:Boolean,...$t(),...Pt({elevation:2}),ripple:{type:Boolean,default:!0}},"Slider"),Ws=e=>{const t=g(()=>parseFloat(e.min)),a=g(()=>parseFloat(e.max)),r=g(()=>Number(e.step)>0?parseFloat(e.step):0),n=g(()=>Math.max(De(r.value),De(t.value)));function s(i){if(i=parseFloat(i),r.value<=0)return i;const o=Me(i,t.value,a.value),d=t.value%r.value;let k=Math.round((o-d)/r.value)*r.value+d;return o>k&&k+r.value>a.value&&(k=a.value),parseFloat(Math.min(k,a.value).toFixed(n.value))}return{min:t,max:a,step:r,decimals:n,roundValue:s}},Ys=e=>{let{props:t,steps:a,onSliderStart:r,onSliderMove:n,onSliderEnd:s,getActiveThumb:i}=e;const{isRtl:o}=Ie(),d=$(()=>t.reverse),k=g(()=>t.direction==="vertical"),M=g(()=>k.value!==d.value),{min:y,max:I,step:D,decimals:O,roundValue:K}=a,X=g(()=>parseInt(t.thumbSize,10)),Q=g(()=>parseInt(t.tickSize,10)),A=g(()=>parseInt(t.trackSize,10)),G=g(()=>(I.value-y.value)/D.value),j=$(()=>t.disabled),U=g(()=>t.error||t.disabled?void 0:t.thumbColor??t.color),q=g(()=>t.error||t.disabled?void 0:t.thumbColor),W=g(()=>t.error||t.disabled?void 0:t.trackColor??t.color),x=g(()=>t.error||t.disabled?void 0:t.trackFillColor??t.color),P=Ee(!1),S=Ee(0),Y=be(),b=be();function E(c){const v=Y.value?.$el;if(!v)return;const se=t.direction==="vertical",ve=se?"top":"left",ge=se?"height":"width",st=se?"clientY":"clientX",{[ve]:it,[ge]:nt}=v.getBoundingClientRect(),rt=Hs(c,st);let we=Me((rt-it-S.value)/nt)||0;return(se?M.value:M.value!==o.value)&&(we=1-we),K(y.value+we*(I.value-y.value))}const J=c=>{const v=E(c);v!=null&&s({value:v}),P.value=!1,S.value=0},ce=c=>{const v=E(c);b.value=i(c),b.value&&(P.value=!0,b.value.contains(c.target)?S.value=qs(c,b.value,t.direction):(S.value=0,v!=null&&n({value:v})),v!=null&&r({value:v}),Bt(()=>b.value?.focus()))},ee={passive:!0,capture:!0};function H(c){const v=E(c);v!=null&&n({value:v})}function te(c){c.stopPropagation(),c.preventDefault(),J(c),window.removeEventListener("mousemove",H,ee),window.removeEventListener("mouseup",te)}function oe(c){J(c),window.removeEventListener("touchmove",H,ee),c.target?.removeEventListener("touchend",oe)}function ae(c){ce(c),window.addEventListener("touchmove",H,ee),c.target?.addEventListener("touchend",oe,{passive:!1})}function Se(c){c.button===0&&(c.preventDefault(),ce(c),window.addEventListener("mousemove",H,ee),window.addEventListener("mouseup",te,{passive:!1}))}const le=c=>{const v=(c-y.value)/(I.value-y.value)*100;return Me(isNaN(v)?0:v,0,100)},fe=$(()=>t.showTicks),pe=g(()=>fe.value?t.ticks?Array.isArray(t.ticks)?t.ticks.map(c=>({value:c,position:le(c),label:c.toString()})):Object.keys(t.ticks).map(c=>({value:parseFloat(c),position:le(parseFloat(c)),label:t.ticks[c]})):G.value!==1/0?Mt(G.value+1).map(c=>{const v=y.value+c*D.value;return{value:v,position:le(v)}}):[]:[]),N=g(()=>pe.value.some(c=>{let{label:v}=c;return!!v})),R={activeThumbRef:b,color:$(()=>t.color),decimals:O,disabled:j,direction:$(()=>t.direction),elevation:$(()=>t.elevation),hasLabels:N,isReversed:d,indexFromEnd:M,min:y,max:I,mousePressed:P,noKeyboard:$(()=>t.noKeyboard),numTicks:G,onSliderMousedown:Se,onSliderTouchstart:ae,parsedTicks:pe,parseMouseMove:E,position:le,readonly:$(()=>t.readonly),rounded:$(()=>t.rounded),roundValue:K,showTicks:fe,startOffset:S,step:D,thumbSize:X,thumbColor:U,thumbLabelColor:q,thumbLabel:$(()=>t.thumbLabel),ticks:$(()=>t.ticks),tickSize:Q,trackColor:W,trackContainerRef:Y,trackFillColor:x,trackSize:A,vertical:k};return Rt(Pe,R),R},Zs=he({focused:Boolean,max:{type:Number,required:!0},min:{type:Number,required:!0},modelValue:{type:Number,required:!0},position:{type:Number,required:!0},ripple:{type:[Boolean,Object],default:!0},name:String,noKeyboard:Boolean,...Re()},"VSliderThumb"),Xs=ke()({name:"VSliderThumb",directives:{vRipple:Oe},props:Zs(),emits:{"update:modelValue":e=>!0},setup(e,t){let{slots:a,emit:r}=t;const n=qe(Pe),{isRtl:s,rtlClasses:i}=Ie();if(!n)throw new Error("[Vuetify] v-slider-thumb must be used inside v-slider or v-range-slider");const{min:o,max:d,thumbColor:k,thumbLabelColor:M,step:y,disabled:I,thumbSize:D,thumbLabel:O,direction:K,isReversed:X,vertical:Q,readonly:A,elevation:G,mousePressed:j,decimals:U,indexFromEnd:q}=n,W=g(()=>I.value?void 0:G.value),{elevationClasses:x}=Ft(W),{textColorClasses:P,textColorStyles:S}=Dt(k),{backgroundColorClasses:Y,backgroundColorStyles:b}=Be(M),{pageup:E,pagedown:J,end:ce,home:ee,left:H,right:te,down:oe,up:ae}=Nt,Se=[E,J,ce,ee,H,te,oe,ae],le=g(()=>y.value?[1,2,3]:[1,5,10]);function fe(N,R){if(e.noKeyboard||!Se.includes(N.key))return;N.preventDefault();const c=y.value||.1,v=(d.value-o.value)/c;if([H,te,oe,ae].includes(N.key)){const ve=(Q.value?[s.value?H:te,X.value?oe:ae]:q.value!==s.value?[H,ae]:[te,ae]).includes(N.key)?1:-1,ge=N.shiftKey?2:N.ctrlKey?1:0;ve===-1&&R===d.value&&!ge&&!Number.isInteger(v)?R=R-v%1*c:R=R+ve*c*le.value[ge]}else if(N.key===ee)R=o.value;else if(N.key===ce)R=d.value;else{const se=N.key===J?1:-1;R=R-se*c*(v>100?v/10:10)}return Math.max(e.min,Math.min(e.max,R))}function pe(N){const R=fe(N,e.modelValue);R!=null&&r("update:modelValue",R)}return ye(()=>{const N=ie(q.value?100-e.position:e.position,"%");return m("div",{class:V(["v-slider-thumb",{"v-slider-thumb--focused":e.focused,"v-slider-thumb--pressed":e.focused&&j.value},e.class,i.value]),style:re([{"--v-slider-thumb-position":N,"--v-slider-thumb-size":ie(D.value)},e.style]),role:"slider",tabindex:I.value?-1:0,"aria-label":e.name,"aria-valuemin":o.value,"aria-valuemax":d.value,"aria-valuenow":e.modelValue,"aria-readonly":!!A.value,"aria-orientation":K.value,onKeydown:A.value?void 0:pe},[m("div",{class:V(["v-slider-thumb__surface",P.value,x.value]),style:re(S.value)},null),ze(m("div",{class:V(["v-slider-thumb__ripple",P.value]),style:re(S.value)},null),[[Oe,e.ripple,null,{circle:!0,center:!0}]]),u(Wt,{origin:"bottom center"},{default:()=>[ze(m("div",{class:"v-slider-thumb__label-container"},[m("div",{class:V(["v-slider-thumb__label",Y.value]),style:re(b.value)},[m("div",null,[a["thumb-label"]?.({modelValue:e.modelValue})??e.modelValue.toFixed(y.value?U.value:1)]),m("div",{class:"v-slider-thumb__label-wedge"},null)])]),[[Vt,O.value&&e.focused||O.value==="always"]])]})])}),{}}}),Qs=he({start:{type:Number,required:!0},stop:{type:Number,required:!0},...Re()},"VSliderTrack"),Js=ke()({name:"VSliderTrack",props:Qs(),emits:{},setup(e,t){let{slots:a}=t;const r=qe(Pe);if(!r)throw new Error("[Vuetify] v-slider-track must be inside v-slider or v-range-slider");const{color:n,parsedTicks:s,rounded:i,showTicks:o,tickSize:d,trackColor:k,trackFillColor:M,trackSize:y,vertical:I,min:D,max:O,indexFromEnd:K}=r,{roundedClasses:X}=Et(i),{backgroundColorClasses:Q,backgroundColorStyles:A}=Be(M),{backgroundColorClasses:G,backgroundColorStyles:j}=Be(k),U=g(()=>`inset-${I.value?"block":"inline"}-${K.value?"end":"start"}`),q=g(()=>I.value?"height":"width"),W=g(()=>({[U.value]:"0%",[q.value]:"100%"})),x=g(()=>e.stop-e.start),P=g(()=>({[U.value]:ie(e.start,"%"),[q.value]:ie(x.value,"%")})),S=g(()=>o.value?(I.value?s.value.slice().reverse():s.value).map((b,E)=>{const J=b.value!==D.value&&b.value!==O.value?ie(b.position,"%"):void 0;return m("div",{key:b.value,class:V(["v-slider-track__tick",{"v-slider-track__tick--filled":b.position>=e.start&&b.position<=e.stop,"v-slider-track__tick--first":b.value===D.value,"v-slider-track__tick--last":b.value===O.value}]),style:{[U.value]:J}},[(b.label||a["tick-label"])&&m("div",{class:"v-slider-track__tick-label"},[a["tick-label"]?.({tick:b,index:E})??b.label])])}):[]);return ye(()=>m("div",{class:V(["v-slider-track",X.value,e.class]),style:re([{"--v-slider-track-size":ie(y.value),"--v-slider-tick-size":ie(d.value)},e.style])},[m("div",{class:V(["v-slider-track__background",G.value,{"v-slider-track__background--opacity":!!n.value||!M.value}]),style:{...W.value,...j.value}},null),m("div",{class:V(["v-slider-track__fill",Q.value]),style:{...P.value,...A.value}},null),o.value&&m("div",{class:V(["v-slider-track__ticks",{"v-slider-track__ticks--always-show":o.value==="always"}])},[S.value])])),{}}}),ei=he({...Xt(),...Ks(),...Zt(),modelValue:{type:[Number,String],default:0}},"VSlider"),ti=ke()({name:"VSlider",props:ei(),emits:{"update:focused":e=>!0,"update:modelValue":e=>!0,start:e=>!0,end:e=>!0},setup(e,t){let{slots:a,emit:r}=t;const n=be(),s=be(),{rtlClasses:i}=Ie(),o=Ws(e),d=Lt(e,"modelValue",void 0,x=>o.roundValue(x??o.min.value)),{min:k,max:M,mousePressed:y,roundValue:I,onSliderMousedown:D,onSliderTouchstart:O,trackContainerRef:K,position:X,hasLabels:Q,readonly:A,noKeyboard:G}=Ys({props:e,steps:o,onSliderStart:()=>{r("start",d.value)},onSliderEnd:x=>{let{value:P}=x;const S=I(P);d.value=S,r("end",S)},onSliderMove:x=>{let{value:P}=x;return d.value=I(P)},getActiveThumb:()=>n.value?.$el}),{isFocused:j,focus:U,blur:q}=Yt(e),W=g(()=>X(d.value));return ye(()=>{const x=Ae.filterProps(e),P=!!(e.label||a.label||a.prepend);return u(Ae,Z({ref:s,class:["v-slider",{"v-slider--has-labels":!!a["tick-label"]||Q.value,"v-slider--focused":j.value,"v-slider--pressed":y.value,"v-slider--disabled":e.disabled},i.value,e.class],style:e.style},x,{focused:j.value}),{...a,prepend:P?S=>m(me,null,[a.label?.(S)??(e.label?u(Qt,{id:S.id.value,class:"v-slider__label",text:e.label},null):void 0),a.prepend?.(S)]):void 0,default:S=>{let{id:Y,messagesId:b}=S;return m("div",{class:"v-slider__container",onMousedown:A.value?void 0:D,onTouchstartPassive:A.value?void 0:O},[m("input",{id:Y.value,name:e.name||Y.value,disabled:!!e.disabled,readonly:!!e.readonly,tabindex:"-1",value:d.value},null),u(Js,{ref:K,start:0,stop:W.value},{"tick-label":a["tick-label"]}),u(Xs,{ref:n,"aria-describedby":b.value,focused:j.value,noKeyboard:G.value,min:k.value,max:M.value,modelValue:d.value,"onUpdate:modelValue":E=>d.value=E,position:W.value,elevation:e.elevation,onFocus:U,onBlur:q,ripple:e.ripple,name:e.name},{"thumb-label":a["thumb-label"]})])}})}),zt({focus:()=>n.value?.$el.focus()},s)}}),ai={name:"PaginationSlider",props:{min:{type:Number,default:0}}};function si(e,t,a,r,n,s){return l(),f(ti,Z({"thumb-size":"36",class:"paginationSlider",density:"compact","hide-details":"auto",min:a.min,rounded:!0,"show-ticks":"always",step:1,"thumb-label":"always"},e.$attrs),{"tick-label":C(({index:i})=>[F(w(i+a.min),1)]),_:1},16,["min"])}const yi=T(ai,[["render",si],["__scopeId","data-v-01b67afd"]]),ii={name:"PaginationToolbar"};function ni(e,t,a,r,n,s){return l(),f(ea,{class:"paginationToolbar codexToolbar",density:"compact",transform:"center bottom"},Ne({_:2},[ue(e.$slots,(i,o)=>({name:o,fn:C(d=>[Ve(e.$slots,o,Z({props:i},d),void 0,!0)])}))]),1024)}const _i=T(ii,[["render",ni],["__scopeId","data-v-cfa8cce0"]]);export{ca as B,pa as D,ka as M,Ce as N,ki as P,vi as T,pi as V,gi as a,bi as b,_i as c,yi as d,tt as g,Qe as p,Ge as t};
@@ -1 +0,0 @@
1
- import{bN as Kt,_ as J,bO as Ut,y as M,v as N,m as V,x as ae,b as h,B as Oe,C as Je,bP as ze,M as Me,w as se,a as S,I as Xt,d as Y,r as X,bQ as Yt,g as K,p as B,e as Q,aC as oe,aD as Qt,aA as Zt,bp as pe,aU as fe,f as ve,bf as Jt,c as _,b7 as ie,t as I,u as ee,n as et,aB as ea,K as ta,L as j,b9 as qe,aX as We,aV as $e,bR as tt,b8 as Fe,i as le,aW as ne,bS as aa,h as A,bj as la,bT as na,bU as ra,bE as Re,bG as at,bV as me,bW as ue,F as Z,bs as Le,z as Ke,bX as Ae,ab as de,bY as ce,bZ as lt,o as sa,W as oa,A as nt,a6 as ia,b_ as ua,q as Ue}from"./main-BERoK-j2.js";import{V as z,A as da,d as ca,F as fa,j as va,t as ma,e as ga,v as ha,D as ba,c as ya,L as pa,H as xa,k as Xe}from"./forwardRefs-CGimG8CQ.js";import{S as Sa,V as wa}from"./VForm-J2mEa_og.js";import{useAdminStore as rt}from"./admin-D7dHJsJ4.js";import{V as Pa}from"./VDialog-B1OSC1f5.js";import{d as st,c as Ne,g as ka,h as _a,i as Da}from"./VSelect-CP3Eb9Go.js";import{V as Ge}from"./VCheckboxBtn-CqdpagcB.js";import{m as Ia,V as ge}from"./VTable-KYw5fCd8.js";import{m as ot,u as it}from"./filter-DWF4EaH3.js";import{a as Ta}from"./VDivider-6KdInZc6.js";import{C as Va}from"./confirm-dialog-Bc3Bw4Wf.js";function Ye(e,t,a){return Object.keys(e).filter(l=>Kt(l)&&l.endsWith(t)).reduce((l,n)=>(l[n.slice(0,-t.length)]=r=>e[n](r,a(r)),l),{})}const Ca={name:"AdminCreateUpdateButton",props:{update:{type:Boolean,default:!1},table:{type:String,required:!0},size:{type:String,default:"default"},density:{type:String,default:"default"}},data(){return{mdiPencil:Ut}}};function Ba(e,t,a,l,n,r){return a.update?(N(),M(z,V({key:0,icon:n.mdiPencil},e.$attrs,{size:a.size,density:a.density}),null,16,["icon","size","density"])):(N(),M(z,V({key:1},e.$attrs,{size:a.size,density:a.density}),{default:ae(()=>[h("span",null,"+ "+Oe(a.table),1)]),_:1},16,["size","density"]))}const Fa=J(Ca,[["render",Ba]]),Ra={name:"AdminCreateUpdateDialog",components:{AdminCreateUpdateButton:Fa,SubmitFooter:Sa},props:{table:{type:String,required:!0},label:{type:String,default:""},oldRow:{type:[Object,Boolean],default:!1},inputs:{type:Object,required:!0},size:{type:String,default:"default"},density:{type:String,default:"default"}},data(){return{row:{},showDialog:!1,submitButtonEnabled:!1}},computed:{verb(){return this.oldRow?"Update":"Add"},title(){return this.label||this.table},buttonTitle(){return(this.oldRow?"Edit":"Add")+" "+this.title}},watch:{showDialog(e){this.row=this.getRow(e)}},methods:{...Je(rt,["createRow","updateRow"]),validate(){let e=!1;for(const[a,l]of Object.entries(this.row))if(!ze(this.oldRow[a],l)){e=!0;break}if(!e)return!1;const t=this.$refs.form;return t?t.validate().then(({valid:a})=>a).catch(()=>!1):!1},change(e){this.row=e,this.submitButtonEnabled=this.validate()},getRow(e){if(!e||!this.oldRow)return Me(this.inputs.EMPTY_ROW);const t={};for(const a of this.inputs.UPDATE_KEYS)t[a]=Me(this.oldRow[a]);return t},doUpdate:function(){const e={};for(const[t,a]of Object.entries(this.row))ze(this.oldRow[t],a)||(e[t]=a);this.updateRow(this.table,this.oldRow.pk,e).then(()=>(this.showDialog=!1,!0)).catch(console.error)},doCreate:function(){this.createRow(this.table,this.row).then(()=>(this.showDialog=!1,!0)).catch(console.error)},submit:function(){const e=this.$refs.form;e&&e.validate().then(({valid:t})=>{if(t)return this.oldRow?this.doUpdate():this.doCreate()}).catch(console.warn)}}};function Aa(e,t,a,l,n,r){const s=se("AdminCreateUpdateButton"),i=se("SubmitFooter");return N(),M(Pa,V({modelValue:n.showDialog,"onUpdate:modelValue":t[1]||(t[1]=o=>n.showDialog=o),transition:"scale-transition"},e.$attrs),{activator:ae(({props:o})=>[S(s,V({update:!!a.oldRow,table:a.table,label:a.label},o,{size:a.size,density:a.density,title:r.buttonTitle}),null,16,["update","table","label","size","density","title"])]),default:ae(()=>[S(wa,{ref:"form",class:"cuForm"},{default:ae(()=>[h("h2",null,Oe(r.title),1),(N(),M(Xt(a.inputs),{"old-row":a.oldRow,onChange:r.change},null,40,["old-row","onChange"])),S(i,{verb:r.verb,table:a.table,label:a.label,disabled:!n.submitButtonEnabled,onSubmit:r.submit,onCancel:t[0]||(t[0]=o=>n.showDialog=!1)},null,8,["verb","table","label","disabled","onSubmit"])]),_:1},512)]),_:1},16,["modelValue"])}const Cl=J(Ra,[["render",Aa],["__scopeId","data-v-b61575f9"]]),Ea={name:"GroupChip",props:{titleKey:{type:String,default:""},groupType:{type:Boolean,default:void 0},item:{type:Object,default:void 0}},computed:{classes(){let e={};return this.groupType&&this.item&&(e.include=!this.item.exclude,e.exclude=this.item.exclude),e},text(){return this.item&&this.titleKey?this.item[this.titleKey]:""},value(){if(this.item)return this.groupType?this.item.exclude:this.item.value}}};function Oa(e,t,a,l,n,r){return N(),M(st,{class:Y(r.classes),text:r.text,value:r.value},null,8,["class","text","value"])}const ut=J(Ea,[["render",Oa],["__scopeId","data-v-fe7786ef"]]),$a={name:"AdminRelationPicker",components:{GroupChip:ut},props:{objs:{type:Object,required:!0},titleKey:{type:String,required:!0},groupType:{type:Boolean,default:!1}},computed:{vuetifyItems(){const e=[];for(const t of this.objs)e.push({...t,value:t.pk,title:t[this.titleKey]});return e}}};function La(e,t,a,l,n,r){const s=se("GroupChip");return N(),M(Ne,V({chips:!0,"closable-chips":!0,density:"compact",multiple:!0,items:r.vuetifyItems},e.$attrs),{chip:ae(({item:i})=>[S(s,{"title-key":"title",item:i,"group-type":a.groupType},null,8,["item","group-type"])]),_:1},16,["items"])}const Bl=J($a,[["render",La]]);function Na(){const e=X([]);Yt(()=>e.value=[]);function t(a,l){e.value[l]=a}return{refs:e,updateRef:t}}const Ga=B({activeColor:String,start:{type:[Number,String],default:1},modelValue:{type:Number,default:e=>e.start},disabled:Boolean,length:{type:[Number,String],default:1,validator:e=>e%1===0},totalVisible:[Number,String],firstIcon:{type:j,default:"$first"},prevIcon:{type:j,default:"$prev"},nextIcon:{type:j,default:"$next"},lastIcon:{type:j,default:"$last"},ariaLabel:{type:String,default:"$vuetify.pagination.ariaLabel.root"},pageAriaLabel:{type:String,default:"$vuetify.pagination.ariaLabel.page"},currentPageAriaLabel:{type:String,default:"$vuetify.pagination.ariaLabel.currentPage"},firstAriaLabel:{type:String,default:"$vuetify.pagination.ariaLabel.first"},previousAriaLabel:{type:String,default:"$vuetify.pagination.ariaLabel.previous"},nextAriaLabel:{type:String,default:"$vuetify.pagination.ariaLabel.next"},lastAriaLabel:{type:String,default:"$vuetify.pagination.ariaLabel.last"},ellipsis:{type:String,default:"..."},showFirstLastPage:Boolean,...ha(),...ta(),...ga(),...ma(),...va(),...fa(),...ca({tag:"nav"}),...ea(),...da({variant:"text"})},"VPagination"),Qe=K()({name:"VPagination",props:Ga(),emits:{"update:modelValue":e=>!0,first:e=>!0,prev:e=>!0,next:e=>!0,last:e=>!0},setup(e,t){let{slots:a,emit:l}=t;const n=Q(e,"modelValue"),{t:r,n:s}=oe(),{isRtl:i}=Qt(),{themeClasses:o}=Zt(e),{width:u}=pe(),f=fe(-1);ve(void 0,{scoped:!0});const{resizeRef:g}=Jt(y=>{if(!y.length)return;const{target:b,contentRect:c}=y[0],P=b.querySelector(".v-pagination__list > *");if(!P)return;const T=c.width,L=P.offsetWidth+parseFloat(getComputedStyle(P).marginRight)*2;f.value=w(T,L)}),d=_(()=>parseInt(e.length,10)),v=_(()=>parseInt(e.start,10)),x=_(()=>e.totalVisible!=null?parseInt(e.totalVisible,10):f.value>=0?f.value:w(u.value,58));function w(y,b){const c=e.showFirstLastPage?5:3;return Math.max(0,Math.floor(Number(((y-b*c)/b).toFixed(2))))}const m=_(()=>{if(d.value<=0||isNaN(d.value)||d.value>Number.MAX_SAFE_INTEGER)return[];if(x.value<=0)return[];if(x.value===1)return[n.value];if(d.value<=x.value)return ie(d.value,v.value);const y=x.value%2===0,b=y?x.value/2:Math.floor(x.value/2),c=y?b:b+1,P=d.value-b;if(c-n.value>=0)return[...ie(Math.max(1,x.value-1),v.value),e.ellipsis,d.value];if(n.value-P>=(y?1:0)){const T=x.value-1,L=d.value-T+v.value;return[v.value,e.ellipsis,...ie(T,L)]}else{const T=Math.max(1,x.value-2),L=T===1?n.value:n.value-Math.ceil(T/2)+v.value;return[v.value,e.ellipsis,...ie(T,L),e.ellipsis,d.value]}});function C(y,b,c){y.preventDefault(),n.value=b,c&&l(c,b)}const{refs:p,updateRef:D}=Na();ve({VPaginationBtn:{color:I(()=>e.color),border:I(()=>e.border),density:I(()=>e.density),size:I(()=>e.size),variant:I(()=>e.variant),rounded:I(()=>e.rounded),elevation:I(()=>e.elevation)}});const F=_(()=>m.value.map((y,b)=>{const c=P=>D(P,b);if(typeof y=="string")return{isActive:!1,key:`ellipsis-${b}`,page:y,props:{ref:c,ellipsis:!0,icon:!0,disabled:!0}};{const P=y===n.value;return{isActive:P,key:y,page:s(y),props:{ref:c,ellipsis:!1,icon:!0,disabled:!!e.disabled||Number(e.length)<2,color:P?e.activeColor:e.color,"aria-current":P,"aria-label":r(P?e.currentPageAriaLabel:e.pageAriaLabel,y),onClick:T=>C(T,y)}}}})),k=_(()=>{const y=!!e.disabled||n.value<=v.value,b=!!e.disabled||n.value>=v.value+d.value-1;return{first:e.showFirstLastPage?{icon:i.value?e.lastIcon:e.firstIcon,onClick:c=>C(c,v.value,"first"),disabled:y,"aria-label":r(e.firstAriaLabel),"aria-disabled":y}:void 0,prev:{icon:i.value?e.nextIcon:e.prevIcon,onClick:c=>C(c,n.value-1,"prev"),disabled:y,"aria-label":r(e.previousAriaLabel),"aria-disabled":y},next:{icon:i.value?e.prevIcon:e.nextIcon,onClick:c=>C(c,n.value+1,"next"),disabled:b,"aria-label":r(e.nextAriaLabel),"aria-disabled":b},last:e.showFirstLastPage?{icon:i.value?e.firstIcon:e.lastIcon,onClick:c=>C(c,v.value+d.value-1,"last"),disabled:b,"aria-label":r(e.lastAriaLabel),"aria-disabled":b}:void 0}});function R(){const y=n.value-v.value;p.value[y]?.$el.focus()}function $(y){y.key===qe.left&&!e.disabled&&n.value>Number(e.start)?(n.value=n.value-1,We(R)):y.key===qe.right&&!e.disabled&&n.value<v.value+d.value-1&&(n.value=n.value+1,We(R))}return ee(()=>S(e.tag,{ref:g,class:Y(["v-pagination",o.value,e.class]),style:et(e.style),role:"navigation","aria-label":r(e.ariaLabel),onKeydown:$,"data-test":"v-pagination-root"},{default:()=>[h("ul",{class:"v-pagination__list"},[e.showFirstLastPage&&h("li",{key:"first",class:"v-pagination__first","data-test":"v-pagination-first"},[a.first?a.first(k.value.first):S(z,V({_as:"VPaginationBtn"},k.value.first),null)]),h("li",{key:"prev",class:"v-pagination__prev","data-test":"v-pagination-prev"},[a.prev?a.prev(k.value.prev):S(z,V({_as:"VPaginationBtn"},k.value.prev),null)]),F.value.map((y,b)=>h("li",{key:y.key,class:Y(["v-pagination__item",{"v-pagination__item--is-active":y.isActive}]),"data-test":"v-pagination-item"},[a.item?a.item(y):S(z,V({_as:"VPaginationBtn"},y.props),{default:()=>[y.page]})])),h("li",{key:"next",class:"v-pagination__next","data-test":"v-pagination-next"},[a.next?a.next(k.value.next):S(z,V({_as:"VPaginationBtn"},k.value.next),null)]),e.showFirstLastPage&&h("li",{key:"last",class:"v-pagination__last","data-test":"v-pagination-last"},[a.last?a.last(k.value.last):S(z,V({_as:"VPaginationBtn"},k.value.last),null)])])]})),{}}}),Ha=B({page:{type:[Number,String],default:1},itemsPerPage:{type:[Number,String],default:10}},"DataTable-paginate"),dt=Symbol.for("vuetify:data-table-pagination");function ja(e){const t=Q(e,"page",void 0,l=>Number(l??1)),a=Q(e,"itemsPerPage",void 0,l=>Number(l??10));return{page:t,itemsPerPage:a}}function za(e){const{page:t,itemsPerPage:a,itemsLength:l}=e,n=_(()=>a.value===-1?0:a.value*(t.value-1)),r=_(()=>a.value===-1?l.value:Math.min(l.value,n.value+a.value)),s=_(()=>a.value===-1||l.value===0?1:Math.ceil(l.value/a.value));$e([t,s],()=>{t.value>s.value&&(t.value=s.value)});function i(d){a.value=d,t.value=1}function o(){t.value=Fe(t.value+1,1,s.value)}function u(){t.value=Fe(t.value-1,1,s.value)}function f(d){t.value=Fe(d,1,s.value)}const g={page:t,itemsPerPage:a,startIndex:n,stopIndex:r,pageCount:s,itemsLength:l,nextPage:o,prevPage:u,setPage:f,setItemsPerPage:i};return ne(dt,g),g}function Ma(){const e=le(dt);if(!e)throw new Error("Missing pagination!");return e}function qa(e){const t=tt("usePaginatedItems"),{items:a,startIndex:l,stopIndex:n,itemsPerPage:r}=e,s=_(()=>r.value<=0?a.value:a.value.slice(l.value,n.value));return $e(s,i=>{t.emit("update:currentItems",i)},{immediate:!0}),{paginatedItems:s}}const ct=B({prevIcon:{type:j,default:"$prev"},nextIcon:{type:j,default:"$next"},firstIcon:{type:j,default:"$first"},lastIcon:{type:j,default:"$last"},itemsPerPageText:{type:String,default:"$vuetify.dataFooter.itemsPerPageText"},pageText:{type:String,default:"$vuetify.dataFooter.pageText"},firstPageLabel:{type:String,default:"$vuetify.dataFooter.firstPage"},prevPageLabel:{type:String,default:"$vuetify.dataFooter.prevPage"},nextPageLabel:{type:String,default:"$vuetify.dataFooter.nextPage"},lastPageLabel:{type:String,default:"$vuetify.dataFooter.lastPage"},itemsPerPageOptions:{type:Array,default:()=>[{value:10,title:"10"},{value:25,title:"25"},{value:50,title:"50"},{value:100,title:"100"},{value:-1,title:"$vuetify.dataFooter.itemsPerPageAll"}]},showCurrentPage:Boolean},"VDataTableFooter"),Ze=K()({name:"VDataTableFooter",props:ct(),setup(e,t){let{slots:a}=t;const{t:l}=oe(),{page:n,pageCount:r,startIndex:s,stopIndex:i,itemsLength:o,itemsPerPage:u,setItemsPerPage:f}=Ma(),g=_(()=>e.itemsPerPageOptions.map(d=>typeof d=="number"?{value:d,title:d===-1?l("$vuetify.dataFooter.itemsPerPageAll"):String(d)}:{...d,title:isNaN(Number(d.title))?l(d.title):d.title}));return ee(()=>{const d=Qe.filterProps(e);return h("div",{class:"v-data-table-footer"},[a.prepend?.(),h("div",{class:"v-data-table-footer__items-per-page"},[h("span",{"aria-label":l(e.itemsPerPageText)},[l(e.itemsPerPageText)]),S(Ne,{items:g.value,modelValue:u.value,"onUpdate:modelValue":v=>f(Number(v)),density:"compact",variant:"outlined",hideDetails:!0},null)]),h("div",{class:"v-data-table-footer__info"},[h("div",null,[l(e.pageText,o.value?s.value+1:0,i.value,o.value)])]),h("div",{class:"v-data-table-footer__pagination"},[S(Qe,V({modelValue:n.value,"onUpdate:modelValue":v=>n.value=v,density:"comfortable",firstAriaLabel:e.firstPageLabel,lastAriaLabel:e.lastPageLabel,length:r.value,nextAriaLabel:e.nextPageLabel,previousAriaLabel:e.prevPageLabel,rounded:!0,showFirstLastPage:!0,totalVisible:e.showCurrentPage?1:0,variant:"plain"},d),null)])])}),{}}}),he=aa({align:{type:String,default:"start"},fixed:{type:[Boolean,String],default:!1},fixedOffset:[Number,String],fixedEndOffset:[Number,String],height:[Number,String],lastFixed:Boolean,firstFixedEnd:Boolean,noPadding:Boolean,tag:String,width:[Number,String],maxWidth:[Number,String],nowrap:Boolean},(e,t)=>{let{slots:a}=t;const l=e.tag??"td",n=typeof e.fixed=="string"?e.fixed:e.fixed?"start":"none";return S(l,{class:Y(["v-data-table__td",{"v-data-table-column--fixed":n==="start","v-data-table-column--fixed-end":n==="end","v-data-table-column--last-fixed":e.lastFixed,"v-data-table-column--first-fixed-end":e.firstFixedEnd,"v-data-table-column--no-padding":e.noPadding,"v-data-table-column--nowrap":e.nowrap},`v-data-table-column--align-${e.align}`]),style:{height:A(e.height),width:A(e.width),maxWidth:A(e.maxWidth),left:n==="start"?A(e.fixedOffset||null):void 0,right:n==="end"?A(e.fixedEndOffset||null):void 0}},{default:()=>[a.default?.()]})}),Wa=B({headers:Array},"DataTable-header"),ft=Symbol.for("vuetify:data-table-headers"),vt={title:"",sortable:!1},Ka={...vt,width:48};function Ua(){const t=(arguments.length>0&&arguments[0]!==void 0?arguments[0]:[]).map(a=>({element:a,priority:0}));return{enqueue:(a,l)=>{let n=!1;for(let r=0;r<t.length;r++)if(t[r].priority>l){t.splice(r,0,{element:a,priority:l}),n=!0;break}n||t.push({element:a,priority:l})},size:()=>t.length,count:()=>{let a=0;if(!t.length)return 0;const l=Math.floor(t[0].priority);for(let n=0;n<t.length;n++)Math.floor(t[n].priority)===l&&(a+=1);return a},dequeue:()=>t.shift()}}function Ee(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[];if(!e.children)t.push(e);else for(const a of e.children)Ee(a,t);return t}function mt(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:new Set;for(const a of e)a.key&&t.add(a.key),a.children&&mt(a.children,t);return t}function Xa(e){if(e.key){if(e.key==="data-table-group")return vt;if(["data-table-expand","data-table-select"].includes(e.key))return Ka}}function He(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0;return e.children?Math.max(t,...e.children.map(a=>He(a,t+1))):t}function Ya(e){let t=!1;function a(r,s){let i=arguments.length>2&&arguments[2]!==void 0?arguments[2]:"none";if(r)if(i!=="none"&&(r.fixed=i),r.fixed===!0&&(r.fixed="start"),r.fixed===s)if(r.children)if(s==="start")for(let o=r.children.length-1;o>=0;o--)a(r.children[o],s,s);else for(let o=0;o<r.children.length;o++)a(r.children[o],s,s);else!t&&s==="start"?r.lastFixed=!0:!t&&s==="end"?r.firstFixedEnd=!0:isNaN(Number(r.width))?ra(`Multiple fixed columns should have a static width (key: ${r.key})`):r.minWidth=Math.max(Number(r.width)||0,Number(r.minWidth)||0),t=!0;else if(r.children)if(s==="start")for(let o=r.children.length-1;o>=0;o--)a(r.children[o],s);else for(let o=0;o<r.children.length;o++)a(r.children[o],s);else t=!1}for(let r=e.length-1;r>=0;r--)a(e[r],"start");for(let r=0;r<e.length;r++)a(e[r],"end");let l=0;for(let r=0;r<e.length;r++)l=gt(e[r],l);let n=0;for(let r=e.length-1;r>=0;r--)n=ht(e[r],n)}function gt(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0;if(!e)return t;if(e.children){e.fixedOffset=t;for(const a of e.children)t=gt(a,t)}else e.fixed&&e.fixed!=="end"&&(e.fixedOffset=t,t+=parseFloat(e.width||"0")||0);return t}function ht(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0;if(!e)return t;if(e.children){e.fixedEndOffset=t;for(const a of e.children)t=ht(a,t)}else e.fixed==="end"&&(e.fixedEndOffset=t,t+=parseFloat(e.width||"0")||0);return t}function Qa(e,t){const a=[];let l=0;const n=Ua(e);for(;n.size()>0;){let s=n.count();const i=[];let o=1;for(;s>0;){const{element:u,priority:f}=n.dequeue(),g=t-l-He(u);if(i.push({...u,rowspan:g??1,colspan:u.children?Ee(u).length:1}),u.children)for(const d of u.children){const v=f%1+o/Math.pow(10,l+2);n.enqueue(d,l+g+v)}o+=1,s-=1}l+=1,a.push(i)}return{columns:e.map(s=>Ee(s)).flat(),headers:a}}function bt(e){const t=[];for(const a of e){const l={...Xa(a),...a},n=l.key??(typeof l.value=="string"?l.value:null),r=l.value??n??null,s={...l,key:n,value:r,sortable:l.sortable??(l.key!=null||!!l.sort),children:l.children?bt(l.children):void 0};t.push(s)}return t}function yt(e,t){const a=X([]),l=X([]),n=X({}),r=X({}),s=X({});la(()=>{const u=(e.headers||Object.keys(e.items[0]??{}).map(w=>({key:w,title:na(w)}))).slice(),f=mt(u);t?.groupBy?.value.length&&!f.has("data-table-group")&&u.unshift({key:"data-table-group",title:"Group"}),t?.showSelect?.value&&!f.has("data-table-select")&&u.unshift({key:"data-table-select"}),t?.showExpand?.value&&!f.has("data-table-expand")&&u.push({key:"data-table-expand"});const g=bt(u);Ya(g);const d=Math.max(...g.map(w=>He(w)))+1,v=Qa(g,d);a.value=v.headers,l.value=v.columns;const x=v.headers.flat(1);for(const w of x)w.key&&(w.sortable&&(w.sort&&(n.value[w.key]=w.sort),w.sortRaw&&(r.value[w.key]=w.sortRaw)),w.filter&&(s.value[w.key]=w.filter))});const i={headers:a,columns:l,sortFunctions:n,sortRawFunctions:r,filterFunctions:s};return ne(ft,i),i}function xe(){const e=le(ft);if(!e)throw new Error("Missing headers!");return e}const Za={showSelectAll:!1,allSelected:()=>[],select:e=>{let{items:t,value:a}=e;return new Set(a?[t[0]?.value]:[])},selectAll:e=>{let{selected:t}=e;return t}},pt={showSelectAll:!0,allSelected:e=>{let{currentPage:t}=e;return t},select:e=>{let{items:t,value:a,selected:l}=e;for(const n of t)a?l.add(n.value):l.delete(n.value);return l},selectAll:e=>{let{value:t,currentPage:a,selected:l}=e;return pt.select({items:a,value:t,selected:l})}},xt={showSelectAll:!0,allSelected:e=>{let{allItems:t}=e;return t},select:e=>{let{items:t,value:a,selected:l}=e;for(const n of t)a?l.add(n.value):l.delete(n.value);return l},selectAll:e=>{let{value:t,allItems:a,selected:l}=e;return xt.select({items:a,value:t,selected:l})}},Ja=B({showSelect:Boolean,selectStrategy:{type:[String,Object],default:"page"},modelValue:{type:Array,default:()=>[]},valueComparator:{type:Function,default:at}},"DataTable-select"),St=Symbol.for("vuetify:data-table-selection");function wt(e,t){let{allItems:a,currentPage:l}=t;const n=Q(e,"modelValue",e.modelValue,p=>new Set(Re(p).map(D=>a.value.find(F=>e.valueComparator(D,F.value))?.value??D)),p=>[...p.values()]),r=_(()=>a.value.filter(p=>p.selectable)),s=_(()=>l.value.filter(p=>p.selectable)),i=_(()=>{if(typeof e.selectStrategy=="object")return e.selectStrategy;switch(e.selectStrategy){case"single":return Za;case"all":return xt;case"page":default:return pt}}),o=fe(null);function u(p){return Re(p).every(D=>n.value.has(D.value))}function f(p){return Re(p).some(D=>n.value.has(D.value))}function g(p,D){const F=i.value.select({items:p,value:D,selected:new Set(n.value)});n.value=F}function d(p,D,F){const k=[];if(D=D??l.value.findIndex(R=>R.value===p.value),e.selectStrategy!=="single"&&F?.shiftKey&&o.value!==null){const[R,$]=[o.value,D].sort((y,b)=>y-b);k.push(...l.value.slice(R,$+1).filter(y=>y.selectable))}else k.push(p),o.value=D;g(k,!u([p]))}function v(p){const D=i.value.selectAll({value:p,allItems:r.value,currentPage:s.value,selected:new Set(n.value)});n.value=D}const x=_(()=>n.value.size>0),w=_(()=>{const p=i.value.allSelected({allItems:r.value,currentPage:s.value});return!!p.length&&u(p)}),m=I(()=>i.value.showSelectAll),C={toggleSelect:d,select:g,selectAll:v,isSelected:u,isSomeSelected:f,someSelected:x,allSelected:w,showSelectAll:m,lastSelectedIndex:o,selectStrategy:i};return ne(St,C),C}function Se(){const e=le(St);if(!e)throw new Error("Missing selection!");return e}const el=B({sortBy:{type:Array,default:()=>[]},customKeySort:Object,multiSort:Boolean,mustSort:Boolean},"DataTable-sort"),Pt=Symbol.for("vuetify:data-table-sort");function kt(e){const t=Q(e,"sortBy"),a=I(()=>e.mustSort),l=I(()=>e.multiSort);return{sortBy:t,mustSort:a,multiSort:l}}function _t(e){const{sortBy:t,mustSort:a,multiSort:l,page:n}=e,r=o=>{if(o.key==null)return;let u=t.value.map(g=>({...g}))??[];const f=u.find(g=>g.key===o.key);f?f.order==="desc"?a.value&&u.length===1?f.order="asc":u=u.filter(g=>g.key!==o.key):f.order="desc":l.value?u.push({key:o.key,order:"asc"}):u=[{key:o.key,order:"asc"}],t.value=u,n&&(n.value=1)};function s(o){return!!t.value.find(u=>u.key===o.key)}const i={sortBy:t,toggleSort:r,isSorted:s};return ne(Pt,i),i}function Dt(){const e=le(Pt);if(!e)throw new Error("Missing sort!");return e}function It(e,t,a,l){const n=oe();return{sortedItems:_(()=>a.value.length?tl(t.value,a.value,n.current.value,{transform:l?.transform,sortFunctions:{...e.customKeySort,...l?.sortFunctions?.value},sortRawFunctions:l?.sortRawFunctions?.value}):t.value)}}function tl(e,t,a,l){const n=new Intl.Collator(a,{sensitivity:"accent",usage:"sort"});return e.map(s=>[s,l?.transform?l.transform(s):s]).sort((s,i)=>{for(let o=0;o<t.length;o++){let u=!1;const f=t[o].key,g=t[o].order??"asc";if(g===!1)continue;let d=me(s[1],f),v=me(i[1],f),x=s[0].raw,w=i[0].raw;if(g==="desc"&&([d,v]=[v,d],[x,w]=[w,x]),l?.sortRawFunctions?.[f]){const m=l.sortRawFunctions[f](x,w);if(m==null)continue;if(u=!0,m)return m}if(l?.sortFunctions?.[f]){const m=l.sortFunctions[f](d,v);if(m==null)continue;if(u=!0,m)return m}if(!u&&(d instanceof Date&&v instanceof Date&&(d=d.getTime(),v=v.getTime()),[d,v]=[d,v].map(m=>m!=null?m.toString().toLocaleLowerCase():m),d!==v))return ue(d)&&ue(v)?0:ue(d)?-1:ue(v)?1:!isNaN(d)&&!isNaN(v)?Number(d)-Number(v):n.compare(d,v)}return 0}).map(s=>{let[i]=s;return i})}const Tt=B({color:String,disableSort:Boolean,fixedHeader:Boolean,multiSort:Boolean,sortAscIcon:{type:j,default:"$sortAsc"},sortDescIcon:{type:j,default:"$sortDesc"},headerProps:{type:Object},sticky:Boolean,...Le(),...xa()},"VDataTableHeaders"),be=K()({name:"VDataTableHeaders",props:Tt(),setup(e,t){let{slots:a}=t;const{t:l}=oe(),{toggleSort:n,sortBy:r,isSorted:s}=Dt(),{someSelected:i,allSelected:o,selectAll:u,showSelectAll:f}=Se(),{columns:g,headers:d}=xe(),{loaderClasses:v}=ba(e);function x(b,c){if(!(e.sticky||e.fixedHeader)&&!b.fixed)return;const P=typeof b.fixed=="string"?b.fixed:b.fixed?"start":"none";return{position:"sticky",left:P==="start"?A(b.fixedOffset):void 0,right:P==="end"?A(b.fixedEndOffset):void 0,top:e.sticky||e.fixedHeader?`calc(var(--v-table-header-height) * ${c})`:void 0}}function w(b,c){b.key==="Enter"&&!e.disableSort&&n(c)}function m(b){const c=r.value.find(P=>P.key===b.key);return c?c.order==="asc"?e.sortAscIcon:e.sortDescIcon:e.sortAscIcon}const{backgroundColorClasses:C,backgroundColorStyles:p}=ya(()=>e.color),{displayClasses:D,mobile:F}=pe(e),k=_(()=>({headers:d.value,columns:g.value,toggleSort:n,isSorted:s,sortBy:r.value,someSelected:i.value,allSelected:o.value,selectAll:u,getSortIcon:m})),R=_(()=>["v-data-table__th",{"v-data-table__th--sticky":e.sticky||e.fixedHeader},D.value,v.value]),$=b=>{let{column:c,x:P,y:T}=b;const L=c.key==="data-table-select"||c.key==="data-table-expand",re=V(e.headerProps??{},c.headerProps??{});return S(he,V({tag:"th",align:c.align,class:[{"v-data-table__th--sortable":c.sortable&&!e.disableSort,"v-data-table__th--sorted":s(c),"v-data-table__th--fixed":c.fixed},...R.value],style:{width:A(c.width),minWidth:A(c.minWidth),maxWidth:A(c.maxWidth),...x(c,T)},colspan:c.colspan,rowspan:c.rowspan,fixed:c.fixed,nowrap:c.nowrap,lastFixed:c.lastFixed,firstFixedEnd:c.firstFixedEnd,noPadding:L,tabindex:c.sortable?0:void 0,onClick:c.sortable?()=>n(c):void 0,onKeydown:c.sortable?q=>w(q,c):void 0},re),{default:()=>{const q=`header.${c.key}`,W={column:c,selectAll:u,isSorted:s,toggleSort:n,sortBy:r.value,someSelected:i.value,allSelected:o.value,getSortIcon:m};return a[q]?a[q](W):c.key==="data-table-select"?a["header.data-table-select"]?.(W)??(f.value&&S(Ge,{modelValue:o.value,indeterminate:i.value&&!o.value,"onUpdate:modelValue":u},null)):h("div",{class:"v-data-table-header__content"},[h("span",null,[c.title]),c.sortable&&!e.disableSort&&S(Xe,{key:"icon",class:"v-data-table-header__sort-icon",icon:m(c)},null),e.multiSort&&s(c)&&h("div",{key:"badge",class:Y(["v-data-table-header__sort-badge",...C.value]),style:et(p.value)},[r.value.findIndex(U=>U.key===c.key)+1])])}})},y=()=>{const b=_(()=>g.value.filter(P=>P?.sortable&&!e.disableSort)),c=_(()=>{if(g.value.find(T=>T.key==="data-table-select")!=null)return o.value?"$checkboxOn":i.value?"$checkboxIndeterminate":"$checkboxOff"});return S(he,V({tag:"th",class:[...R.value],colspan:d.value.length+1},e.headerProps),{default:()=>[h("div",{class:"v-data-table-header__content"},[S(Ne,{chips:!0,class:"v-data-table__td-sort-select",clearable:!0,density:"default",items:b.value,label:l("$vuetify.dataTable.sortBy"),multiple:e.multiSort,variant:"underlined","onClick:clear":()=>r.value=[],appendIcon:c.value,"onClick:append":()=>u(!o.value)},{chip:P=>S(st,{onClick:P.item.raw?.sortable?()=>n(P.item.raw):void 0,onMousedown:T=>{T.preventDefault(),T.stopPropagation()}},{default:()=>[P.item.title,S(Xe,{class:Y(["v-data-table__td-sort-icon",s(P.item.raw)&&"v-data-table__td-sort-icon-active"]),icon:m(P.item.raw),size:"small"},null)]})})])]})};ee(()=>F.value?h("tr",null,[S(y,null,null)]):h(Z,null,[a.headers?a.headers(k.value):d.value.map((b,c)=>h("tr",null,[b.map((P,T)=>S($,{column:P,x:T,y:c},null))])),e.loading&&h("tr",{class:"v-data-table-progress"},[h("th",{colspan:g.value.length},[S(pa,{name:"v-data-table-progress",absolute:!0,active:!0,color:typeof e.loading=="boolean"?void 0:e.loading,indeterminate:!0},{default:a.loader})])])]))}}),Vt=B({groupBy:{type:Array,default:()=>[]}},"DataTable-group"),Ct=Symbol.for("vuetify:data-table-group");function Bt(e){return{groupBy:Q(e,"groupBy")}}function Ft(e){const{disableSort:t,groupBy:a,sortBy:l}=e,n=X(new Set),r=_(()=>a.value.map(f=>({...f,order:f.order??!1})).concat(t?.value?[]:l.value));function s(f){return n.value.has(f.id)}function i(f){const g=new Set(n.value);s(f)?g.delete(f.id):g.add(f.id),n.value=g}function o(f){function g(d){const v=[];for(const x of d.items)"type"in x&&x.type==="group"?v.push(...g(x)):v.push(x);return[...new Set(v)]}return g({items:f})}const u={sortByWithGroups:r,toggleGroup:i,opened:n,groupBy:a,extractRows:o,isGroupOpen:s};return ne(Ct,u),u}function Rt(){const e=le(Ct);if(!e)throw new Error("Missing group!");return e}function al(e,t){if(!e.length)return[];const a=new Map;for(const l of e){const n=me(l.raw,t);a.has(n)||a.set(n,[]),a.get(n).push(l)}return a}function At(e,t){let a=arguments.length>2&&arguments[2]!==void 0?arguments[2]:0,l=arguments.length>3&&arguments[3]!==void 0?arguments[3]:"root";if(!t.length)return[];const n=al(e,t[0]),r=[],s=t.slice(1);return n.forEach((i,o)=>{const u=t[0],f=`${l}_${u}_${o}`;r.push({depth:a,id:f,key:u,value:o,items:s.length?At(i,s,a+1,f):i,type:"group"})}),r}function Et(e,t){const a=[];for(const l of e)"type"in l&&l.type==="group"?(l.value!=null&&a.push(l),(t.has(l.id)||l.value==null)&&a.push(...Et(l.items,t))):a.push(l);return a}function Ot(e,t,a){return{flatItems:_(()=>{if(!t.value.length)return e.value;const n=At(e.value,t.value.map(r=>r.key));return Et(n,a.value)})}}const ll=B({item:{type:Object,required:!0}},"VDataTableGroupHeaderRow"),nl=K()({name:"VDataTableGroupHeaderRow",props:ll(),setup(e,t){let{slots:a}=t;const{isGroupOpen:l,toggleGroup:n,extractRows:r}=Rt(),{isSelected:s,isSomeSelected:i,select:o}=Se(),{columns:u}=xe(),f=_(()=>r([e.item]));return()=>h("tr",{class:"v-data-table-group-header-row",style:{"--v-data-table-group-header-row-depth":e.item.depth}},[u.value.map(g=>{if(g.key==="data-table-group"){const d=l(e.item)?"$expand":"$next",v=()=>n(e.item);return a["data-table-group"]?.({item:e.item,count:f.value.length,props:{icon:d,onClick:v}})??S(he,{class:"v-data-table-group-header-row__column"},{default:()=>[S(z,{size:"small",variant:"text",icon:d,onClick:v},null),h("span",null,[e.item.value]),h("span",null,[Ke("("),f.value.length,Ke(")")])]})}if(g.key==="data-table-select"){const d=s(f.value),v=i(f.value)&&!d,x=w=>o(f.value,w);return a["data-table-select"]?.({props:{modelValue:d,indeterminate:v,"onUpdate:modelValue":x}})??h("td",null,[S(Ge,{modelValue:d,indeterminate:v,"onUpdate:modelValue":x},null)])}return h("td",null,null)})])}}),rl=B({expandOnClick:Boolean,showExpand:Boolean,expanded:{type:Array,default:()=>[]}},"DataTable-expand"),$t=Symbol.for("vuetify:datatable:expanded");function Lt(e){const t=I(()=>e.expandOnClick),a=Q(e,"expanded",e.expanded,i=>new Set(i),i=>[...i.values()]);function l(i,o){const u=new Set(a.value);o?u.add(i.value):u.delete(i.value),a.value=u}function n(i){return a.value.has(i.value)}function r(i){l(i,!n(i))}const s={expand:l,expanded:a,expandOnClick:t,isExpanded:n,toggleExpand:r};return ne($t,s),s}function Nt(){const e=le($t);if(!e)throw new Error("foo");return e}const sl=B({index:Number,item:Object,cellProps:[Object,Function],onClick:Ae(),onContextmenu:Ae(),onDblclick:Ae(),...Le()},"VDataTableRow"),Gt=K()({name:"VDataTableRow",props:sl(),setup(e,t){let{slots:a}=t;const{displayClasses:l,mobile:n}=pe(e,"v-data-table__tr"),{isSelected:r,toggleSelect:s,someSelected:i,allSelected:o,selectAll:u}=Se(),{isExpanded:f,toggleExpand:g}=Nt(),{toggleSort:d,sortBy:v,isSorted:x}=Dt(),{columns:w}=xe();ee(()=>h("tr",{class:Y(["v-data-table__tr",{"v-data-table__tr--clickable":!!(e.onClick||e.onContextmenu||e.onDblclick)},l.value]),onClick:e.onClick,onContextmenu:e.onContextmenu,onDblclick:e.onDblclick},[e.item&&w.value.map((m,C)=>{const p=e.item,D=`item.${m.key}`,F=`header.${m.key}`,k={index:e.index,item:p.raw,internalItem:p,value:me(p.columns,m.key),column:m,isSelected:r,toggleSelect:s,isExpanded:f,toggleExpand:g},R={column:m,selectAll:u,isSorted:x,toggleSort:d,sortBy:v.value,someSelected:i.value,allSelected:o.value,getSortIcon:()=>""},$=typeof e.cellProps=="function"?e.cellProps({index:k.index,item:k.item,internalItem:k.internalItem,value:k.value,column:m}):e.cellProps,y=typeof m.cellProps=="function"?m.cellProps({index:k.index,item:k.item,internalItem:k.internalItem,value:k.value}):m.cellProps;return S(he,V({align:m.align,class:{"v-data-table__td--expanded-row":m.key==="data-table-expand","v-data-table__td--select-row":m.key==="data-table-select"},fixed:m.fixed,fixedOffset:m.fixedOffset,fixedEndOffset:m.fixedEndOffset,lastFixed:m.lastFixed,firstFixedEnd:m.firstFixedEnd,maxWidth:n.value?void 0:m.maxWidth,noPadding:m.key==="data-table-select"||m.key==="data-table-expand",nowrap:m.nowrap,width:n.value?void 0:m.width},$,y),{default:()=>{if(m.key==="data-table-select")return a["item.data-table-select"]?.({...k,props:{disabled:!p.selectable,modelValue:r([p]),onClick:de(()=>s(p),["stop"])}})??S(Ge,{disabled:!p.selectable,modelValue:r([p]),onClick:de(c=>s(p,e.index,c),["stop"])},null);if(m.key==="data-table-expand")return a["item.data-table-expand"]?.({...k,props:{icon:f(p)?"$collapse":"$expand",size:"small",variant:"text",onClick:de(()=>g(p),["stop"])}})??S(z,{icon:f(p)?"$collapse":"$expand",size:"small",variant:"text",onClick:de(()=>g(p),["stop"])},null);if(a[D]&&!n.value)return a[D](k);const b=Oe(k.value);return n.value?h(Z,null,[h("div",{class:"v-data-table__td-title"},[a[F]?.(R)??m.title]),h("div",{class:"v-data-table__td-value"},[a[D]?.(k)??b])]):b}})})]))}}),Ht=B({loading:[Boolean,String],loadingText:{type:String,default:"$vuetify.dataIterator.loadingText"},hideNoData:Boolean,items:{type:Array,default:()=>[]},noDataText:{type:String,default:"$vuetify.noDataText"},rowProps:[Object,Function],cellProps:[Object,Function],...Le()},"VDataTableRows"),ye=K()({name:"VDataTableRows",inheritAttrs:!1,props:Ht(),setup(e,t){let{attrs:a,slots:l}=t;const{columns:n}=xe(),{expandOnClick:r,toggleExpand:s,isExpanded:i}=Nt(),{isSelected:o,toggleSelect:u}=Se(),{toggleGroup:f,isGroupOpen:g}=Rt(),{t:d}=oe(),{mobile:v}=pe(e);return ee(()=>e.loading&&(!e.items.length||l.loading)?h("tr",{class:"v-data-table-rows-loading",key:"loading"},[h("td",{colspan:n.value.length},[l.loading?.()??d(e.loadingText)])]):!e.loading&&!e.items.length&&!e.hideNoData?h("tr",{class:"v-data-table-rows-no-data",key:"no-data"},[h("td",{colspan:n.value.length},[l["no-data"]?.()??d(e.noDataText)])]):h(Z,null,[e.items.map((x,w)=>{if(x.type==="group"){const p={index:w,item:x,columns:n.value,isExpanded:i,toggleExpand:s,isSelected:o,toggleSelect:u,toggleGroup:f,isGroupOpen:g};return l["group-header"]?l["group-header"](p):S(nl,V({key:`group-header_${x.id}`,item:x},Ye(a,":group-header",()=>p)),l)}const m={index:w,item:x.raw,internalItem:x,columns:n.value,isExpanded:i,toggleExpand:s,isSelected:o,toggleSelect:u},C={...m,props:V({key:`item_${x.key??x.index}`,onClick:r.value?()=>{s(x)}:void 0,index:w,item:x,cellProps:e.cellProps,mobile:v.value},Ye(a,":row",()=>m),typeof e.rowProps=="function"?e.rowProps({item:m.item,index:m.index,internalItem:m.internalItem}):e.rowProps)};return h(Z,{key:C.props.key},[l.item?l.item(C):S(Gt,C.props,l),i(x)&&l["expanded-row"]?.(m)])})])),{}}}),ol=B({items:{type:Array,default:()=>[]},itemValue:{type:[String,Array,Function],default:"id"},itemSelectable:{type:[String,Array,Function],default:null},rowProps:[Object,Function],cellProps:[Object,Function],returnObject:Boolean},"DataTable-items");function il(e,t,a,l){const n=e.returnObject?t:ce(t,e.itemValue),r=ce(t,e.itemSelectable,!0),s=l.reduce((i,o)=>(o.key!=null&&(i[o.key]=ce(t,o.value)),i),{});return{type:"item",key:e.returnObject?ce(t,e.itemValue):n,index:a,value:n,selectable:r,columns:s,raw:t}}function ul(e,t,a){return t.map((l,n)=>il(e,l,n,a))}function jt(e,t){return{items:_(()=>ul(e,e.items,t.value))}}function zt(e){let{page:t,itemsPerPage:a,sortBy:l,groupBy:n,search:r}=e;const s=tt("VDataTable"),i=()=>({page:t.value,itemsPerPage:a.value,sortBy:l.value,groupBy:n.value,search:r.value});let o=null;$e(i,u=>{at(o,u)||(o&&o.search!==u.search&&(t.value=1),s.emit("update:options",u),o=u)},{deep:!0,immediate:!0})}const Mt=B({...Ht(),hideDefaultBody:Boolean,hideDefaultFooter:Boolean,hideDefaultHeader:Boolean,width:[String,Number],search:String,...rl(),...Vt(),...Wa(),...ol(),...Ja(),...el(),...Tt(),...Ia()},"DataTable"),dl=B({...Ha(),...Mt(),...ot(),...ct()},"VDataTable");K()({name:"VDataTable",props:dl(),emits:{"update:modelValue":e=>!0,"update:page":e=>!0,"update:itemsPerPage":e=>!0,"update:sortBy":e=>!0,"update:options":e=>!0,"update:groupBy":e=>!0,"update:expanded":e=>!0,"update:currentItems":e=>!0},setup(e,t){let{attrs:a,slots:l}=t;const{groupBy:n}=Bt(e),{sortBy:r,multiSort:s,mustSort:i}=kt(e),{page:o,itemsPerPage:u}=ja(e),{disableSort:f}=lt(e),{columns:g,headers:d,sortFunctions:v,sortRawFunctions:x,filterFunctions:w}=yt(e,{groupBy:n,showSelect:I(()=>e.showSelect),showExpand:I(()=>e.showExpand)}),{items:m}=jt(e,g),C=I(()=>e.search),{filteredItems:p}=it(e,m,C,{transform:G=>G.columns,customKeyFilter:w}),{toggleSort:D}=_t({sortBy:r,multiSort:s,mustSort:i,page:o}),{sortByWithGroups:F,opened:k,extractRows:R,isGroupOpen:$,toggleGroup:y}=Ft({groupBy:n,sortBy:r,disableSort:f}),{sortedItems:b}=It(e,p,F,{transform:G=>({...G.raw,...G.columns}),sortFunctions:v,sortRawFunctions:x}),{flatItems:c}=Ot(b,n,k),P=_(()=>c.value.length),{startIndex:T,stopIndex:L,pageCount:re,setItemsPerPage:q}=za({page:o,itemsPerPage:u,itemsLength:P}),{paginatedItems:W}=qa({items:c,startIndex:T,stopIndex:L,itemsPerPage:u}),U=_(()=>R(W.value)),{isSelected:we,select:Pe,selectAll:ke,toggleSelect:_e,someSelected:De,allSelected:Ie}=wt(e,{allItems:m,currentPage:U}),{isExpanded:Te,toggleExpand:Ve}=Lt(e);zt({page:o,itemsPerPage:u,sortBy:r,groupBy:n,search:C}),ve({VDataTableRows:{hideNoData:I(()=>e.hideNoData),noDataText:I(()=>e.noDataText),loading:I(()=>e.loading),loadingText:I(()=>e.loadingText)}});const E=_(()=>({page:o.value,itemsPerPage:u.value,sortBy:r.value,pageCount:re.value,toggleSort:D,setItemsPerPage:q,someSelected:De.value,allSelected:Ie.value,isSelected:we,select:Pe,selectAll:ke,toggleSelect:_e,isExpanded:Te,toggleExpand:Ve,isGroupOpen:$,toggleGroup:y,items:U.value.map(G=>G.raw),internalItems:U.value,groupedItems:W.value,columns:g.value,headers:d.value}));return ee(()=>{const G=Ze.filterProps(e),Ce=be.filterProps(e),H=ye.filterProps(e),O=ge.filterProps(e);return S(ge,V({class:["v-data-table",{"v-data-table--show-select":e.showSelect,"v-data-table--loading":e.loading},e.class],style:e.style},O,{fixedHeader:e.fixedHeader||e.sticky}),{top:()=>l.top?.(E.value),default:()=>l.default?l.default(E.value):h(Z,null,[l.colgroup?.(E.value),!e.hideDefaultHeader&&h("thead",{key:"thead"},[S(be,Ce,l)]),l.thead?.(E.value),!e.hideDefaultBody&&h("tbody",null,[l["body.prepend"]?.(E.value),l.body?l.body(E.value):S(ye,V(a,H,{items:W.value}),l),l["body.append"]?.(E.value)]),l.tbody?.(E.value),l.tfoot?.(E.value)]),bottom:()=>l.bottom?l.bottom(E.value):!e.hideDefaultFooter&&h(Z,null,[S(Ta,null,null),S(Ze,G,{prepend:l["footer.prepend"]})])})}),{}}});const cl=B({...sa(Mt(),["hideDefaultFooter"]),...Vt(),..._a(),...ot()},"VDataTableVirtual"),fl=K()({name:"VDataTableVirtual",props:cl(),emits:{"update:modelValue":e=>!0,"update:sortBy":e=>!0,"update:options":e=>!0,"update:groupBy":e=>!0,"update:expanded":e=>!0},setup(e,t){let{attrs:a,slots:l}=t;const{groupBy:n}=Bt(e),{sortBy:r,multiSort:s,mustSort:i}=kt(e),{disableSort:o}=lt(e),{columns:u,headers:f,filterFunctions:g,sortFunctions:d,sortRawFunctions:v}=yt(e,{groupBy:n,showSelect:I(()=>e.showSelect),showExpand:I(()=>e.showExpand)}),{items:x}=jt(e,u),w=I(()=>e.search),{filteredItems:m}=it(e,x,w,{transform:O=>O.columns,customKeyFilter:g}),{toggleSort:C}=_t({sortBy:r,multiSort:s,mustSort:i}),{sortByWithGroups:p,opened:D,extractRows:F,isGroupOpen:k,toggleGroup:R}=Ft({groupBy:n,sortBy:r,disableSort:o}),{sortedItems:$}=It(e,m,p,{transform:O=>({...O.raw,...O.columns}),sortFunctions:d,sortRawFunctions:v}),{flatItems:y}=Ot($,n,D),b=_(()=>F(y.value)),{isSelected:c,select:P,selectAll:T,toggleSelect:L,someSelected:re,allSelected:q}=wt(e,{allItems:b,currentPage:b}),{isExpanded:W,toggleExpand:U}=Lt(e),{containerRef:we,markerRef:Pe,paddingTop:ke,paddingBottom:_e,computedItems:De,handleItemResize:Ie,handleScroll:Te,handleScrollend:Ve,calculateVisibleItems:E,scrollToIndex:G}=ka(e,y),Ce=_(()=>De.value.map(O=>O.raw));zt({sortBy:r,page:fe(1),itemsPerPage:fe(-1),groupBy:n,search:w}),ve({VDataTableRows:{hideNoData:I(()=>e.hideNoData),noDataText:I(()=>e.noDataText),loading:I(()=>e.loading),loadingText:I(()=>e.loadingText)}});const H=_(()=>({sortBy:r.value,toggleSort:C,someSelected:re.value,allSelected:q.value,isSelected:c,select:P,selectAll:T,toggleSelect:L,isExpanded:W,toggleExpand:U,isGroupOpen:k,toggleGroup:R,items:b.value.map(O=>O.raw),internalItems:b.value,groupedItems:y.value,columns:u.value,headers:f.value}));return ee(()=>{const O=be.filterProps(e),qt=ye.filterProps(e),Wt=ge.filterProps(e);return S(ge,V({class:["v-data-table",{"v-data-table--loading":e.loading},e.class],style:e.style},Wt,{fixedHeader:e.fixedHeader||e.sticky}),{top:()=>l.top?.(H.value),wrapper:()=>h("div",{ref:we,onScrollPassive:Te,onScrollend:Ve,class:"v-table__wrapper",style:{height:A(e.height)}},[h("table",null,[l.colgroup?.(H.value),!e.hideDefaultHeader&&h("thead",{key:"thead"},[S(be,O,l)]),l.thead?.(H.value),!e.hideDefaultBody&&h("tbody",{key:"tbody"},[h("tr",{ref:Pe,style:{height:A(ke.value),border:0}},[h("td",{colspan:u.value.length,style:{height:0,border:0}},null)]),l["body.prepend"]?.(H.value),S(ye,V(a,qt,{items:Ce.value}),{...l,item:te=>S(Da,{key:te.internalItem.index,renderless:!0,"onUpdate:height":Be=>Ie(te.internalItem.index,Be)},{default:Be=>{let{itemRef:je}=Be;return l.item?.({...te,itemRef:je})??S(Gt,V(te.props,{ref:je,key:te.internalItem.index,index:te.internalItem.index}),l)}})}),l["body.append"]?.(H.value),h("tr",{style:{height:A(_e.value),border:0}},[h("td",{colspan:u.value.length,style:{height:0,border:0}},null)])]),l.tbody?.(H.value),l.tfoot?.(H.value)])]),bottom:()=>l.bottom?.(H.value)})}),{calculateVisibleItems:E,scrollToIndex:G}}}),vl={name:"AdminTable"};function ml(e,t,a,l,n,r){return N(),M(fl,{"fixed-header":"","item-value":"pk",mobile:e.$vuetify.display.xs},oa({_:2},[nt(e.$slots,(s,i)=>({name:i,fn:ae(o=>[ia(e.$slots,i,V({props:s},o),void 0,!0)])}))]),1032,["mobile"])}const Fl=J(vl,[["render",ml],["__scopeId","data-v-8b5d9183"]]),gl={name:"AdminDeleteRowDialog",components:{ConfirmDialog:Va},props:{table:{type:String,required:!0},pk:{type:Number,required:!0},name:{type:String,required:!0}},data(){return{mdiTrashCan:ua}},computed:{titleText(){return`Delete ${this.table}`}},methods:{...Je(rt,["deleteRow"]),confirm(){this.deleteRow(this.table,this.pk),this.showDialog=!1}}};function hl(e,t,a,l,n,r){const s=se("ConfirmDialog");return N(),M(s,{icon:n.mdiTrashCan,"title-text":r.titleText,text:a.name,"confirm-text":r.titleText,onConfirm:r.confirm},null,8,["icon","title-text","text","confirm-text","onConfirm"])}const Rl=J(gl,[["render",hl]]),bl={name:"RelationChips",components:{GroupChip:ut},props:{pks:{type:Array,required:!0},objs:{type:Object,required:!0},titleKey:{type:String,required:!0},groupType:{type:Boolean,default:!1}},computed:{map(){const e={};for(const t of this.objs)e[t.pk]=t;return e}}};function yl(e,t,a,l,n,r){const s=se("GroupChip");return N(),Ue("span",null,[(N(!0),Ue(Z,null,nt(a.pks,i=>(N(),M(s,{key:i,"title-key":a.titleKey,"group-type":a.groupType,item:r.map[i]},null,8,["title-key","group-type","item"]))),128))])}const Al=J(bl,[["render",yl]]);export{Bl as A,ut as G,Al as R,Cl as a,Rl as b,Fl as c};
@@ -1 +0,0 @@
1
- import{bN as Kt,_ as J,bO as Ut,y as M,v as N,m as V,x as ae,b as h,B as Oe,C as Je,bP as ze,M as Me,w as se,a as S,I as Xt,d as Y,r as X,bQ as Yt,g as K,p as B,e as Q,aC as oe,aD as Qt,aA as Zt,bp as pe,aU as fe,f as ve,bf as Jt,c as _,b7 as ie,t as I,u as ee,n as et,aB as ea,K as ta,L as j,b9 as qe,aX as We,aV as $e,bR as tt,b8 as Fe,i as le,aW as ne,bS as aa,h as A,bj as la,bT as na,bU as ra,bE as Re,bG as at,bV as me,bW as ue,F as Z,bs as Le,z as Ke,bX as Ae,ab as de,bY as ce,bZ as lt,o as sa,W as oa,A as nt,a6 as ia,b_ as ua,q as Ue}from"./main-BERoK-j2.js";import{V as z,A as da,d as ca,F as fa,j as va,t as ma,e as ga,v as ha,D as ba,c as ya,L as pa,H as xa,k as Xe}from"./forwardRefs-CGimG8CQ.js";import{S as Sa,V as wa}from"./VForm-J2mEa_og.js";import{useAdminStore as rt}from"./admin-D7dHJsJ4.js";import{V as Pa}from"./VDialog-B1OSC1f5.js";import{d as st,c as Ne,g as ka,h as _a,i as Da}from"./VSelect-CP3Eb9Go.js";import{V as Ge}from"./VCheckboxBtn-CqdpagcB.js";import{m as Ia,V as ge}from"./VTable-KYw5fCd8.js";import{m as ot,u as it}from"./filter-DWF4EaH3.js";import{a as Ta}from"./VDivider-6KdInZc6.js";import{C as Va}from"./confirm-dialog-Bc3Bw4Wf.js";function Ye(e,t,a){return Object.keys(e).filter(l=>Kt(l)&&l.endsWith(t)).reduce((l,n)=>(l[n.slice(0,-t.length)]=r=>e[n](r,a(r)),l),{})}const Ca={name:"AdminCreateUpdateButton",props:{update:{type:Boolean,default:!1},table:{type:String,required:!0},size:{type:String,default:"default"},density:{type:String,default:"default"}},data(){return{mdiPencil:Ut}}};function Ba(e,t,a,l,n,r){return a.update?(N(),M(z,V({key:0,icon:n.mdiPencil},e.$attrs,{size:a.size,density:a.density}),null,16,["icon","size","density"])):(N(),M(z,V({key:1},e.$attrs,{size:a.size,density:a.density}),{default:ae(()=>[h("span",null,"+ "+Oe(a.table),1)]),_:1},16,["size","density"]))}const Fa=J(Ca,[["render",Ba]]),Ra={name:"AdminCreateUpdateDialog",components:{AdminCreateUpdateButton:Fa,SubmitFooter:Sa},props:{table:{type:String,required:!0},label:{type:String,default:""},oldRow:{type:[Object,Boolean],default:!1},inputs:{type:Object,required:!0},size:{type:String,default:"default"},density:{type:String,default:"default"}},data(){return{row:{},showDialog:!1,submitButtonEnabled:!1}},computed:{verb(){return this.oldRow?"Update":"Add"},title(){return this.label||this.table},buttonTitle(){return(this.oldRow?"Edit":"Add")+" "+this.title}},watch:{showDialog(e){this.row=this.getRow(e)}},methods:{...Je(rt,["createRow","updateRow"]),validate(){let e=!1;for(const[a,l]of Object.entries(this.row))if(!ze(this.oldRow[a],l)){e=!0;break}if(!e)return!1;const t=this.$refs.form;return t?t.validate().then(({valid:a})=>a).catch(()=>!1):!1},change(e){this.row=e,this.submitButtonEnabled=this.validate()},getRow(e){if(!e||!this.oldRow)return Me(this.inputs.EMPTY_ROW);const t={};for(const a of this.inputs.UPDATE_KEYS)t[a]=Me(this.oldRow[a]);return t},doUpdate:function(){const e={};for(const[t,a]of Object.entries(this.row))ze(this.oldRow[t],a)||(e[t]=a);this.updateRow(this.table,this.oldRow.pk,e).then(()=>(this.showDialog=!1,!0)).catch(console.error)},doCreate:function(){this.createRow(this.table,this.row).then(()=>(this.showDialog=!1,!0)).catch(console.error)},submit:function(){const e=this.$refs.form;e&&e.validate().then(({valid:t})=>{if(t)return this.oldRow?this.doUpdate():this.doCreate()}).catch(console.warn)}}};function Aa(e,t,a,l,n,r){const s=se("AdminCreateUpdateButton"),i=se("SubmitFooter");return N(),M(Pa,V({modelValue:n.showDialog,"onUpdate:modelValue":t[1]||(t[1]=o=>n.showDialog=o),transition:"scale-transition"},e.$attrs),{activator:ae(({props:o})=>[S(s,V({update:!!a.oldRow,table:a.table,label:a.label},o,{size:a.size,density:a.density,title:r.buttonTitle}),null,16,["update","table","label","size","density","title"])]),default:ae(()=>[S(wa,{ref:"form",class:"cuForm"},{default:ae(()=>[h("h2",null,Oe(r.title),1),(N(),M(Xt(a.inputs),{"old-row":a.oldRow,onChange:r.change},null,40,["old-row","onChange"])),S(i,{verb:r.verb,table:a.table,label:a.label,disabled:!n.submitButtonEnabled,onSubmit:r.submit,onCancel:t[0]||(t[0]=o=>n.showDialog=!1)},null,8,["verb","table","label","disabled","onSubmit"])]),_:1},512)]),_:1},16,["modelValue"])}const Cl=J(Ra,[["render",Aa],["__scopeId","data-v-b61575f9"]]),Ea={name:"GroupChip",props:{titleKey:{type:String,default:""},groupType:{type:Boolean,default:void 0},item:{type:Object,default:void 0}},computed:{classes(){let e={};return this.groupType&&this.item&&(e.include=!this.item.exclude,e.exclude=this.item.exclude),e},text(){return this.item&&this.titleKey?this.item[this.titleKey]:""},value(){if(this.item)return this.groupType?this.item.exclude:this.item.value}}};function Oa(e,t,a,l,n,r){return N(),M(st,{class:Y(r.classes),text:r.text,value:r.value},null,8,["class","text","value"])}const ut=J(Ea,[["render",Oa],["__scopeId","data-v-fe7786ef"]]),$a={name:"AdminRelationPicker",components:{GroupChip:ut},props:{objs:{type:Object,required:!0},titleKey:{type:String,required:!0},groupType:{type:Boolean,default:!1}},computed:{vuetifyItems(){const e=[];for(const t of this.objs)e.push({...t,value:t.pk,title:t[this.titleKey]});return e}}};function La(e,t,a,l,n,r){const s=se("GroupChip");return N(),M(Ne,V({chips:!0,"closable-chips":!0,density:"compact",multiple:!0,items:r.vuetifyItems},e.$attrs),{chip:ae(({item:i})=>[S(s,{"title-key":"title",item:i,"group-type":a.groupType},null,8,["item","group-type"])]),_:1},16,["items"])}const Bl=J($a,[["render",La]]);function Na(){const e=X([]);Yt(()=>e.value=[]);function t(a,l){e.value[l]=a}return{refs:e,updateRef:t}}const Ga=B({activeColor:String,start:{type:[Number,String],default:1},modelValue:{type:Number,default:e=>e.start},disabled:Boolean,length:{type:[Number,String],default:1,validator:e=>e%1===0},totalVisible:[Number,String],firstIcon:{type:j,default:"$first"},prevIcon:{type:j,default:"$prev"},nextIcon:{type:j,default:"$next"},lastIcon:{type:j,default:"$last"},ariaLabel:{type:String,default:"$vuetify.pagination.ariaLabel.root"},pageAriaLabel:{type:String,default:"$vuetify.pagination.ariaLabel.page"},currentPageAriaLabel:{type:String,default:"$vuetify.pagination.ariaLabel.currentPage"},firstAriaLabel:{type:String,default:"$vuetify.pagination.ariaLabel.first"},previousAriaLabel:{type:String,default:"$vuetify.pagination.ariaLabel.previous"},nextAriaLabel:{type:String,default:"$vuetify.pagination.ariaLabel.next"},lastAriaLabel:{type:String,default:"$vuetify.pagination.ariaLabel.last"},ellipsis:{type:String,default:"..."},showFirstLastPage:Boolean,...ha(),...ta(),...ga(),...ma(),...va(),...fa(),...ca({tag:"nav"}),...ea(),...da({variant:"text"})},"VPagination"),Qe=K()({name:"VPagination",props:Ga(),emits:{"update:modelValue":e=>!0,first:e=>!0,prev:e=>!0,next:e=>!0,last:e=>!0},setup(e,t){let{slots:a,emit:l}=t;const n=Q(e,"modelValue"),{t:r,n:s}=oe(),{isRtl:i}=Qt(),{themeClasses:o}=Zt(e),{width:u}=pe(),f=fe(-1);ve(void 0,{scoped:!0});const{resizeRef:g}=Jt(y=>{if(!y.length)return;const{target:b,contentRect:c}=y[0],P=b.querySelector(".v-pagination__list > *");if(!P)return;const T=c.width,L=P.offsetWidth+parseFloat(getComputedStyle(P).marginRight)*2;f.value=w(T,L)}),d=_(()=>parseInt(e.length,10)),v=_(()=>parseInt(e.start,10)),x=_(()=>e.totalVisible!=null?parseInt(e.totalVisible,10):f.value>=0?f.value:w(u.value,58));function w(y,b){const c=e.showFirstLastPage?5:3;return Math.max(0,Math.floor(Number(((y-b*c)/b).toFixed(2))))}const m=_(()=>{if(d.value<=0||isNaN(d.value)||d.value>Number.MAX_SAFE_INTEGER)return[];if(x.value<=0)return[];if(x.value===1)return[n.value];if(d.value<=x.value)return ie(d.value,v.value);const y=x.value%2===0,b=y?x.value/2:Math.floor(x.value/2),c=y?b:b+1,P=d.value-b;if(c-n.value>=0)return[...ie(Math.max(1,x.value-1),v.value),e.ellipsis,d.value];if(n.value-P>=(y?1:0)){const T=x.value-1,L=d.value-T+v.value;return[v.value,e.ellipsis,...ie(T,L)]}else{const T=Math.max(1,x.value-2),L=T===1?n.value:n.value-Math.ceil(T/2)+v.value;return[v.value,e.ellipsis,...ie(T,L),e.ellipsis,d.value]}});function C(y,b,c){y.preventDefault(),n.value=b,c&&l(c,b)}const{refs:p,updateRef:D}=Na();ve({VPaginationBtn:{color:I(()=>e.color),border:I(()=>e.border),density:I(()=>e.density),size:I(()=>e.size),variant:I(()=>e.variant),rounded:I(()=>e.rounded),elevation:I(()=>e.elevation)}});const F=_(()=>m.value.map((y,b)=>{const c=P=>D(P,b);if(typeof y=="string")return{isActive:!1,key:`ellipsis-${b}`,page:y,props:{ref:c,ellipsis:!0,icon:!0,disabled:!0}};{const P=y===n.value;return{isActive:P,key:y,page:s(y),props:{ref:c,ellipsis:!1,icon:!0,disabled:!!e.disabled||Number(e.length)<2,color:P?e.activeColor:e.color,"aria-current":P,"aria-label":r(P?e.currentPageAriaLabel:e.pageAriaLabel,y),onClick:T=>C(T,y)}}}})),k=_(()=>{const y=!!e.disabled||n.value<=v.value,b=!!e.disabled||n.value>=v.value+d.value-1;return{first:e.showFirstLastPage?{icon:i.value?e.lastIcon:e.firstIcon,onClick:c=>C(c,v.value,"first"),disabled:y,"aria-label":r(e.firstAriaLabel),"aria-disabled":y}:void 0,prev:{icon:i.value?e.nextIcon:e.prevIcon,onClick:c=>C(c,n.value-1,"prev"),disabled:y,"aria-label":r(e.previousAriaLabel),"aria-disabled":y},next:{icon:i.value?e.prevIcon:e.nextIcon,onClick:c=>C(c,n.value+1,"next"),disabled:b,"aria-label":r(e.nextAriaLabel),"aria-disabled":b},last:e.showFirstLastPage?{icon:i.value?e.firstIcon:e.lastIcon,onClick:c=>C(c,v.value+d.value-1,"last"),disabled:b,"aria-label":r(e.lastAriaLabel),"aria-disabled":b}:void 0}});function R(){const y=n.value-v.value;p.value[y]?.$el.focus()}function $(y){y.key===qe.left&&!e.disabled&&n.value>Number(e.start)?(n.value=n.value-1,We(R)):y.key===qe.right&&!e.disabled&&n.value<v.value+d.value-1&&(n.value=n.value+1,We(R))}return ee(()=>S(e.tag,{ref:g,class:Y(["v-pagination",o.value,e.class]),style:et(e.style),role:"navigation","aria-label":r(e.ariaLabel),onKeydown:$,"data-test":"v-pagination-root"},{default:()=>[h("ul",{class:"v-pagination__list"},[e.showFirstLastPage&&h("li",{key:"first",class:"v-pagination__first","data-test":"v-pagination-first"},[a.first?a.first(k.value.first):S(z,V({_as:"VPaginationBtn"},k.value.first),null)]),h("li",{key:"prev",class:"v-pagination__prev","data-test":"v-pagination-prev"},[a.prev?a.prev(k.value.prev):S(z,V({_as:"VPaginationBtn"},k.value.prev),null)]),F.value.map((y,b)=>h("li",{key:y.key,class:Y(["v-pagination__item",{"v-pagination__item--is-active":y.isActive}]),"data-test":"v-pagination-item"},[a.item?a.item(y):S(z,V({_as:"VPaginationBtn"},y.props),{default:()=>[y.page]})])),h("li",{key:"next",class:"v-pagination__next","data-test":"v-pagination-next"},[a.next?a.next(k.value.next):S(z,V({_as:"VPaginationBtn"},k.value.next),null)]),e.showFirstLastPage&&h("li",{key:"last",class:"v-pagination__last","data-test":"v-pagination-last"},[a.last?a.last(k.value.last):S(z,V({_as:"VPaginationBtn"},k.value.last),null)])])]})),{}}}),Ha=B({page:{type:[Number,String],default:1},itemsPerPage:{type:[Number,String],default:10}},"DataTable-paginate"),dt=Symbol.for("vuetify:data-table-pagination");function ja(e){const t=Q(e,"page",void 0,l=>Number(l??1)),a=Q(e,"itemsPerPage",void 0,l=>Number(l??10));return{page:t,itemsPerPage:a}}function za(e){const{page:t,itemsPerPage:a,itemsLength:l}=e,n=_(()=>a.value===-1?0:a.value*(t.value-1)),r=_(()=>a.value===-1?l.value:Math.min(l.value,n.value+a.value)),s=_(()=>a.value===-1||l.value===0?1:Math.ceil(l.value/a.value));$e([t,s],()=>{t.value>s.value&&(t.value=s.value)});function i(d){a.value=d,t.value=1}function o(){t.value=Fe(t.value+1,1,s.value)}function u(){t.value=Fe(t.value-1,1,s.value)}function f(d){t.value=Fe(d,1,s.value)}const g={page:t,itemsPerPage:a,startIndex:n,stopIndex:r,pageCount:s,itemsLength:l,nextPage:o,prevPage:u,setPage:f,setItemsPerPage:i};return ne(dt,g),g}function Ma(){const e=le(dt);if(!e)throw new Error("Missing pagination!");return e}function qa(e){const t=tt("usePaginatedItems"),{items:a,startIndex:l,stopIndex:n,itemsPerPage:r}=e,s=_(()=>r.value<=0?a.value:a.value.slice(l.value,n.value));return $e(s,i=>{t.emit("update:currentItems",i)},{immediate:!0}),{paginatedItems:s}}const ct=B({prevIcon:{type:j,default:"$prev"},nextIcon:{type:j,default:"$next"},firstIcon:{type:j,default:"$first"},lastIcon:{type:j,default:"$last"},itemsPerPageText:{type:String,default:"$vuetify.dataFooter.itemsPerPageText"},pageText:{type:String,default:"$vuetify.dataFooter.pageText"},firstPageLabel:{type:String,default:"$vuetify.dataFooter.firstPage"},prevPageLabel:{type:String,default:"$vuetify.dataFooter.prevPage"},nextPageLabel:{type:String,default:"$vuetify.dataFooter.nextPage"},lastPageLabel:{type:String,default:"$vuetify.dataFooter.lastPage"},itemsPerPageOptions:{type:Array,default:()=>[{value:10,title:"10"},{value:25,title:"25"},{value:50,title:"50"},{value:100,title:"100"},{value:-1,title:"$vuetify.dataFooter.itemsPerPageAll"}]},showCurrentPage:Boolean},"VDataTableFooter"),Ze=K()({name:"VDataTableFooter",props:ct(),setup(e,t){let{slots:a}=t;const{t:l}=oe(),{page:n,pageCount:r,startIndex:s,stopIndex:i,itemsLength:o,itemsPerPage:u,setItemsPerPage:f}=Ma(),g=_(()=>e.itemsPerPageOptions.map(d=>typeof d=="number"?{value:d,title:d===-1?l("$vuetify.dataFooter.itemsPerPageAll"):String(d)}:{...d,title:isNaN(Number(d.title))?l(d.title):d.title}));return ee(()=>{const d=Qe.filterProps(e);return h("div",{class:"v-data-table-footer"},[a.prepend?.(),h("div",{class:"v-data-table-footer__items-per-page"},[h("span",{"aria-label":l(e.itemsPerPageText)},[l(e.itemsPerPageText)]),S(Ne,{items:g.value,modelValue:u.value,"onUpdate:modelValue":v=>f(Number(v)),density:"compact",variant:"outlined",hideDetails:!0},null)]),h("div",{class:"v-data-table-footer__info"},[h("div",null,[l(e.pageText,o.value?s.value+1:0,i.value,o.value)])]),h("div",{class:"v-data-table-footer__pagination"},[S(Qe,V({modelValue:n.value,"onUpdate:modelValue":v=>n.value=v,density:"comfortable",firstAriaLabel:e.firstPageLabel,lastAriaLabel:e.lastPageLabel,length:r.value,nextAriaLabel:e.nextPageLabel,previousAriaLabel:e.prevPageLabel,rounded:!0,showFirstLastPage:!0,totalVisible:e.showCurrentPage?1:0,variant:"plain"},d),null)])])}),{}}}),he=aa({align:{type:String,default:"start"},fixed:{type:[Boolean,String],default:!1},fixedOffset:[Number,String],fixedEndOffset:[Number,String],height:[Number,String],lastFixed:Boolean,firstFixedEnd:Boolean,noPadding:Boolean,tag:String,width:[Number,String],maxWidth:[Number,String],nowrap:Boolean},(e,t)=>{let{slots:a}=t;const l=e.tag??"td",n=typeof e.fixed=="string"?e.fixed:e.fixed?"start":"none";return S(l,{class:Y(["v-data-table__td",{"v-data-table-column--fixed":n==="start","v-data-table-column--fixed-end":n==="end","v-data-table-column--last-fixed":e.lastFixed,"v-data-table-column--first-fixed-end":e.firstFixedEnd,"v-data-table-column--no-padding":e.noPadding,"v-data-table-column--nowrap":e.nowrap},`v-data-table-column--align-${e.align}`]),style:{height:A(e.height),width:A(e.width),maxWidth:A(e.maxWidth),left:n==="start"?A(e.fixedOffset||null):void 0,right:n==="end"?A(e.fixedEndOffset||null):void 0}},{default:()=>[a.default?.()]})}),Wa=B({headers:Array},"DataTable-header"),ft=Symbol.for("vuetify:data-table-headers"),vt={title:"",sortable:!1},Ka={...vt,width:48};function Ua(){const t=(arguments.length>0&&arguments[0]!==void 0?arguments[0]:[]).map(a=>({element:a,priority:0}));return{enqueue:(a,l)=>{let n=!1;for(let r=0;r<t.length;r++)if(t[r].priority>l){t.splice(r,0,{element:a,priority:l}),n=!0;break}n||t.push({element:a,priority:l})},size:()=>t.length,count:()=>{let a=0;if(!t.length)return 0;const l=Math.floor(t[0].priority);for(let n=0;n<t.length;n++)Math.floor(t[n].priority)===l&&(a+=1);return a},dequeue:()=>t.shift()}}function Ee(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[];if(!e.children)t.push(e);else for(const a of e.children)Ee(a,t);return t}function mt(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:new Set;for(const a of e)a.key&&t.add(a.key),a.children&&mt(a.children,t);return t}function Xa(e){if(e.key){if(e.key==="data-table-group")return vt;if(["data-table-expand","data-table-select"].includes(e.key))return Ka}}function He(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0;return e.children?Math.max(t,...e.children.map(a=>He(a,t+1))):t}function Ya(e){let t=!1;function a(r,s){let i=arguments.length>2&&arguments[2]!==void 0?arguments[2]:"none";if(r)if(i!=="none"&&(r.fixed=i),r.fixed===!0&&(r.fixed="start"),r.fixed===s)if(r.children)if(s==="start")for(let o=r.children.length-1;o>=0;o--)a(r.children[o],s,s);else for(let o=0;o<r.children.length;o++)a(r.children[o],s,s);else!t&&s==="start"?r.lastFixed=!0:!t&&s==="end"?r.firstFixedEnd=!0:isNaN(Number(r.width))?ra(`Multiple fixed columns should have a static width (key: ${r.key})`):r.minWidth=Math.max(Number(r.width)||0,Number(r.minWidth)||0),t=!0;else if(r.children)if(s==="start")for(let o=r.children.length-1;o>=0;o--)a(r.children[o],s);else for(let o=0;o<r.children.length;o++)a(r.children[o],s);else t=!1}for(let r=e.length-1;r>=0;r--)a(e[r],"start");for(let r=0;r<e.length;r++)a(e[r],"end");let l=0;for(let r=0;r<e.length;r++)l=gt(e[r],l);let n=0;for(let r=e.length-1;r>=0;r--)n=ht(e[r],n)}function gt(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0;if(!e)return t;if(e.children){e.fixedOffset=t;for(const a of e.children)t=gt(a,t)}else e.fixed&&e.fixed!=="end"&&(e.fixedOffset=t,t+=parseFloat(e.width||"0")||0);return t}function ht(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0;if(!e)return t;if(e.children){e.fixedEndOffset=t;for(const a of e.children)t=ht(a,t)}else e.fixed==="end"&&(e.fixedEndOffset=t,t+=parseFloat(e.width||"0")||0);return t}function Qa(e,t){const a=[];let l=0;const n=Ua(e);for(;n.size()>0;){let s=n.count();const i=[];let o=1;for(;s>0;){const{element:u,priority:f}=n.dequeue(),g=t-l-He(u);if(i.push({...u,rowspan:g??1,colspan:u.children?Ee(u).length:1}),u.children)for(const d of u.children){const v=f%1+o/Math.pow(10,l+2);n.enqueue(d,l+g+v)}o+=1,s-=1}l+=1,a.push(i)}return{columns:e.map(s=>Ee(s)).flat(),headers:a}}function bt(e){const t=[];for(const a of e){const l={...Xa(a),...a},n=l.key??(typeof l.value=="string"?l.value:null),r=l.value??n??null,s={...l,key:n,value:r,sortable:l.sortable??(l.key!=null||!!l.sort),children:l.children?bt(l.children):void 0};t.push(s)}return t}function yt(e,t){const a=X([]),l=X([]),n=X({}),r=X({}),s=X({});la(()=>{const u=(e.headers||Object.keys(e.items[0]??{}).map(w=>({key:w,title:na(w)}))).slice(),f=mt(u);t?.groupBy?.value.length&&!f.has("data-table-group")&&u.unshift({key:"data-table-group",title:"Group"}),t?.showSelect?.value&&!f.has("data-table-select")&&u.unshift({key:"data-table-select"}),t?.showExpand?.value&&!f.has("data-table-expand")&&u.push({key:"data-table-expand"});const g=bt(u);Ya(g);const d=Math.max(...g.map(w=>He(w)))+1,v=Qa(g,d);a.value=v.headers,l.value=v.columns;const x=v.headers.flat(1);for(const w of x)w.key&&(w.sortable&&(w.sort&&(n.value[w.key]=w.sort),w.sortRaw&&(r.value[w.key]=w.sortRaw)),w.filter&&(s.value[w.key]=w.filter))});const i={headers:a,columns:l,sortFunctions:n,sortRawFunctions:r,filterFunctions:s};return ne(ft,i),i}function xe(){const e=le(ft);if(!e)throw new Error("Missing headers!");return e}const Za={showSelectAll:!1,allSelected:()=>[],select:e=>{let{items:t,value:a}=e;return new Set(a?[t[0]?.value]:[])},selectAll:e=>{let{selected:t}=e;return t}},pt={showSelectAll:!0,allSelected:e=>{let{currentPage:t}=e;return t},select:e=>{let{items:t,value:a,selected:l}=e;for(const n of t)a?l.add(n.value):l.delete(n.value);return l},selectAll:e=>{let{value:t,currentPage:a,selected:l}=e;return pt.select({items:a,value:t,selected:l})}},xt={showSelectAll:!0,allSelected:e=>{let{allItems:t}=e;return t},select:e=>{let{items:t,value:a,selected:l}=e;for(const n of t)a?l.add(n.value):l.delete(n.value);return l},selectAll:e=>{let{value:t,allItems:a,selected:l}=e;return xt.select({items:a,value:t,selected:l})}},Ja=B({showSelect:Boolean,selectStrategy:{type:[String,Object],default:"page"},modelValue:{type:Array,default:()=>[]},valueComparator:{type:Function,default:at}},"DataTable-select"),St=Symbol.for("vuetify:data-table-selection");function wt(e,t){let{allItems:a,currentPage:l}=t;const n=Q(e,"modelValue",e.modelValue,p=>new Set(Re(p).map(D=>a.value.find(F=>e.valueComparator(D,F.value))?.value??D)),p=>[...p.values()]),r=_(()=>a.value.filter(p=>p.selectable)),s=_(()=>l.value.filter(p=>p.selectable)),i=_(()=>{if(typeof e.selectStrategy=="object")return e.selectStrategy;switch(e.selectStrategy){case"single":return Za;case"all":return xt;case"page":default:return pt}}),o=fe(null);function u(p){return Re(p).every(D=>n.value.has(D.value))}function f(p){return Re(p).some(D=>n.value.has(D.value))}function g(p,D){const F=i.value.select({items:p,value:D,selected:new Set(n.value)});n.value=F}function d(p,D,F){const k=[];if(D=D??l.value.findIndex(R=>R.value===p.value),e.selectStrategy!=="single"&&F?.shiftKey&&o.value!==null){const[R,$]=[o.value,D].sort((y,b)=>y-b);k.push(...l.value.slice(R,$+1).filter(y=>y.selectable))}else k.push(p),o.value=D;g(k,!u([p]))}function v(p){const D=i.value.selectAll({value:p,allItems:r.value,currentPage:s.value,selected:new Set(n.value)});n.value=D}const x=_(()=>n.value.size>0),w=_(()=>{const p=i.value.allSelected({allItems:r.value,currentPage:s.value});return!!p.length&&u(p)}),m=I(()=>i.value.showSelectAll),C={toggleSelect:d,select:g,selectAll:v,isSelected:u,isSomeSelected:f,someSelected:x,allSelected:w,showSelectAll:m,lastSelectedIndex:o,selectStrategy:i};return ne(St,C),C}function Se(){const e=le(St);if(!e)throw new Error("Missing selection!");return e}const el=B({sortBy:{type:Array,default:()=>[]},customKeySort:Object,multiSort:Boolean,mustSort:Boolean},"DataTable-sort"),Pt=Symbol.for("vuetify:data-table-sort");function kt(e){const t=Q(e,"sortBy"),a=I(()=>e.mustSort),l=I(()=>e.multiSort);return{sortBy:t,mustSort:a,multiSort:l}}function _t(e){const{sortBy:t,mustSort:a,multiSort:l,page:n}=e,r=o=>{if(o.key==null)return;let u=t.value.map(g=>({...g}))??[];const f=u.find(g=>g.key===o.key);f?f.order==="desc"?a.value&&u.length===1?f.order="asc":u=u.filter(g=>g.key!==o.key):f.order="desc":l.value?u.push({key:o.key,order:"asc"}):u=[{key:o.key,order:"asc"}],t.value=u,n&&(n.value=1)};function s(o){return!!t.value.find(u=>u.key===o.key)}const i={sortBy:t,toggleSort:r,isSorted:s};return ne(Pt,i),i}function Dt(){const e=le(Pt);if(!e)throw new Error("Missing sort!");return e}function It(e,t,a,l){const n=oe();return{sortedItems:_(()=>a.value.length?tl(t.value,a.value,n.current.value,{transform:l?.transform,sortFunctions:{...e.customKeySort,...l?.sortFunctions?.value},sortRawFunctions:l?.sortRawFunctions?.value}):t.value)}}function tl(e,t,a,l){const n=new Intl.Collator(a,{sensitivity:"accent",usage:"sort"});return e.map(s=>[s,l?.transform?l.transform(s):s]).sort((s,i)=>{for(let o=0;o<t.length;o++){let u=!1;const f=t[o].key,g=t[o].order??"asc";if(g===!1)continue;let d=me(s[1],f),v=me(i[1],f),x=s[0].raw,w=i[0].raw;if(g==="desc"&&([d,v]=[v,d],[x,w]=[w,x]),l?.sortRawFunctions?.[f]){const m=l.sortRawFunctions[f](x,w);if(m==null)continue;if(u=!0,m)return m}if(l?.sortFunctions?.[f]){const m=l.sortFunctions[f](d,v);if(m==null)continue;if(u=!0,m)return m}if(!u&&(d instanceof Date&&v instanceof Date&&(d=d.getTime(),v=v.getTime()),[d,v]=[d,v].map(m=>m!=null?m.toString().toLocaleLowerCase():m),d!==v))return ue(d)&&ue(v)?0:ue(d)?-1:ue(v)?1:!isNaN(d)&&!isNaN(v)?Number(d)-Number(v):n.compare(d,v)}return 0}).map(s=>{let[i]=s;return i})}const Tt=B({color:String,disableSort:Boolean,fixedHeader:Boolean,multiSort:Boolean,sortAscIcon:{type:j,default:"$sortAsc"},sortDescIcon:{type:j,default:"$sortDesc"},headerProps:{type:Object},sticky:Boolean,...Le(),...xa()},"VDataTableHeaders"),be=K()({name:"VDataTableHeaders",props:Tt(),setup(e,t){let{slots:a}=t;const{t:l}=oe(),{toggleSort:n,sortBy:r,isSorted:s}=Dt(),{someSelected:i,allSelected:o,selectAll:u,showSelectAll:f}=Se(),{columns:g,headers:d}=xe(),{loaderClasses:v}=ba(e);function x(b,c){if(!(e.sticky||e.fixedHeader)&&!b.fixed)return;const P=typeof b.fixed=="string"?b.fixed:b.fixed?"start":"none";return{position:"sticky",left:P==="start"?A(b.fixedOffset):void 0,right:P==="end"?A(b.fixedEndOffset):void 0,top:e.sticky||e.fixedHeader?`calc(var(--v-table-header-height) * ${c})`:void 0}}function w(b,c){b.key==="Enter"&&!e.disableSort&&n(c)}function m(b){const c=r.value.find(P=>P.key===b.key);return c?c.order==="asc"?e.sortAscIcon:e.sortDescIcon:e.sortAscIcon}const{backgroundColorClasses:C,backgroundColorStyles:p}=ya(()=>e.color),{displayClasses:D,mobile:F}=pe(e),k=_(()=>({headers:d.value,columns:g.value,toggleSort:n,isSorted:s,sortBy:r.value,someSelected:i.value,allSelected:o.value,selectAll:u,getSortIcon:m})),R=_(()=>["v-data-table__th",{"v-data-table__th--sticky":e.sticky||e.fixedHeader},D.value,v.value]),$=b=>{let{column:c,x:P,y:T}=b;const L=c.key==="data-table-select"||c.key==="data-table-expand",re=V(e.headerProps??{},c.headerProps??{});return S(he,V({tag:"th",align:c.align,class:[{"v-data-table__th--sortable":c.sortable&&!e.disableSort,"v-data-table__th--sorted":s(c),"v-data-table__th--fixed":c.fixed},...R.value],style:{width:A(c.width),minWidth:A(c.minWidth),maxWidth:A(c.maxWidth),...x(c,T)},colspan:c.colspan,rowspan:c.rowspan,fixed:c.fixed,nowrap:c.nowrap,lastFixed:c.lastFixed,firstFixedEnd:c.firstFixedEnd,noPadding:L,tabindex:c.sortable?0:void 0,onClick:c.sortable?()=>n(c):void 0,onKeydown:c.sortable?q=>w(q,c):void 0},re),{default:()=>{const q=`header.${c.key}`,W={column:c,selectAll:u,isSorted:s,toggleSort:n,sortBy:r.value,someSelected:i.value,allSelected:o.value,getSortIcon:m};return a[q]?a[q](W):c.key==="data-table-select"?a["header.data-table-select"]?.(W)??(f.value&&S(Ge,{modelValue:o.value,indeterminate:i.value&&!o.value,"onUpdate:modelValue":u},null)):h("div",{class:"v-data-table-header__content"},[h("span",null,[c.title]),c.sortable&&!e.disableSort&&S(Xe,{key:"icon",class:"v-data-table-header__sort-icon",icon:m(c)},null),e.multiSort&&s(c)&&h("div",{key:"badge",class:Y(["v-data-table-header__sort-badge",...C.value]),style:et(p.value)},[r.value.findIndex(U=>U.key===c.key)+1])])}})},y=()=>{const b=_(()=>g.value.filter(P=>P?.sortable&&!e.disableSort)),c=_(()=>{if(g.value.find(T=>T.key==="data-table-select")!=null)return o.value?"$checkboxOn":i.value?"$checkboxIndeterminate":"$checkboxOff"});return S(he,V({tag:"th",class:[...R.value],colspan:d.value.length+1},e.headerProps),{default:()=>[h("div",{class:"v-data-table-header__content"},[S(Ne,{chips:!0,class:"v-data-table__td-sort-select",clearable:!0,density:"default",items:b.value,label:l("$vuetify.dataTable.sortBy"),multiple:e.multiSort,variant:"underlined","onClick:clear":()=>r.value=[],appendIcon:c.value,"onClick:append":()=>u(!o.value)},{chip:P=>S(st,{onClick:P.item.raw?.sortable?()=>n(P.item.raw):void 0,onMousedown:T=>{T.preventDefault(),T.stopPropagation()}},{default:()=>[P.item.title,S(Xe,{class:Y(["v-data-table__td-sort-icon",s(P.item.raw)&&"v-data-table__td-sort-icon-active"]),icon:m(P.item.raw),size:"small"},null)]})})])]})};ee(()=>F.value?h("tr",null,[S(y,null,null)]):h(Z,null,[a.headers?a.headers(k.value):d.value.map((b,c)=>h("tr",null,[b.map((P,T)=>S($,{column:P,x:T,y:c},null))])),e.loading&&h("tr",{class:"v-data-table-progress"},[h("th",{colspan:g.value.length},[S(pa,{name:"v-data-table-progress",absolute:!0,active:!0,color:typeof e.loading=="boolean"?void 0:e.loading,indeterminate:!0},{default:a.loader})])])]))}}),Vt=B({groupBy:{type:Array,default:()=>[]}},"DataTable-group"),Ct=Symbol.for("vuetify:data-table-group");function Bt(e){return{groupBy:Q(e,"groupBy")}}function Ft(e){const{disableSort:t,groupBy:a,sortBy:l}=e,n=X(new Set),r=_(()=>a.value.map(f=>({...f,order:f.order??!1})).concat(t?.value?[]:l.value));function s(f){return n.value.has(f.id)}function i(f){const g=new Set(n.value);s(f)?g.delete(f.id):g.add(f.id),n.value=g}function o(f){function g(d){const v=[];for(const x of d.items)"type"in x&&x.type==="group"?v.push(...g(x)):v.push(x);return[...new Set(v)]}return g({items:f})}const u={sortByWithGroups:r,toggleGroup:i,opened:n,groupBy:a,extractRows:o,isGroupOpen:s};return ne(Ct,u),u}function Rt(){const e=le(Ct);if(!e)throw new Error("Missing group!");return e}function al(e,t){if(!e.length)return[];const a=new Map;for(const l of e){const n=me(l.raw,t);a.has(n)||a.set(n,[]),a.get(n).push(l)}return a}function At(e,t){let a=arguments.length>2&&arguments[2]!==void 0?arguments[2]:0,l=arguments.length>3&&arguments[3]!==void 0?arguments[3]:"root";if(!t.length)return[];const n=al(e,t[0]),r=[],s=t.slice(1);return n.forEach((i,o)=>{const u=t[0],f=`${l}_${u}_${o}`;r.push({depth:a,id:f,key:u,value:o,items:s.length?At(i,s,a+1,f):i,type:"group"})}),r}function Et(e,t){const a=[];for(const l of e)"type"in l&&l.type==="group"?(l.value!=null&&a.push(l),(t.has(l.id)||l.value==null)&&a.push(...Et(l.items,t))):a.push(l);return a}function Ot(e,t,a){return{flatItems:_(()=>{if(!t.value.length)return e.value;const n=At(e.value,t.value.map(r=>r.key));return Et(n,a.value)})}}const ll=B({item:{type:Object,required:!0}},"VDataTableGroupHeaderRow"),nl=K()({name:"VDataTableGroupHeaderRow",props:ll(),setup(e,t){let{slots:a}=t;const{isGroupOpen:l,toggleGroup:n,extractRows:r}=Rt(),{isSelected:s,isSomeSelected:i,select:o}=Se(),{columns:u}=xe(),f=_(()=>r([e.item]));return()=>h("tr",{class:"v-data-table-group-header-row",style:{"--v-data-table-group-header-row-depth":e.item.depth}},[u.value.map(g=>{if(g.key==="data-table-group"){const d=l(e.item)?"$expand":"$next",v=()=>n(e.item);return a["data-table-group"]?.({item:e.item,count:f.value.length,props:{icon:d,onClick:v}})??S(he,{class:"v-data-table-group-header-row__column"},{default:()=>[S(z,{size:"small",variant:"text",icon:d,onClick:v},null),h("span",null,[e.item.value]),h("span",null,[Ke("("),f.value.length,Ke(")")])]})}if(g.key==="data-table-select"){const d=s(f.value),v=i(f.value)&&!d,x=w=>o(f.value,w);return a["data-table-select"]?.({props:{modelValue:d,indeterminate:v,"onUpdate:modelValue":x}})??h("td",null,[S(Ge,{modelValue:d,indeterminate:v,"onUpdate:modelValue":x},null)])}return h("td",null,null)})])}}),rl=B({expandOnClick:Boolean,showExpand:Boolean,expanded:{type:Array,default:()=>[]}},"DataTable-expand"),$t=Symbol.for("vuetify:datatable:expanded");function Lt(e){const t=I(()=>e.expandOnClick),a=Q(e,"expanded",e.expanded,i=>new Set(i),i=>[...i.values()]);function l(i,o){const u=new Set(a.value);o?u.add(i.value):u.delete(i.value),a.value=u}function n(i){return a.value.has(i.value)}function r(i){l(i,!n(i))}const s={expand:l,expanded:a,expandOnClick:t,isExpanded:n,toggleExpand:r};return ne($t,s),s}function Nt(){const e=le($t);if(!e)throw new Error("foo");return e}const sl=B({index:Number,item:Object,cellProps:[Object,Function],onClick:Ae(),onContextmenu:Ae(),onDblclick:Ae(),...Le()},"VDataTableRow"),Gt=K()({name:"VDataTableRow",props:sl(),setup(e,t){let{slots:a}=t;const{displayClasses:l,mobile:n}=pe(e,"v-data-table__tr"),{isSelected:r,toggleSelect:s,someSelected:i,allSelected:o,selectAll:u}=Se(),{isExpanded:f,toggleExpand:g}=Nt(),{toggleSort:d,sortBy:v,isSorted:x}=Dt(),{columns:w}=xe();ee(()=>h("tr",{class:Y(["v-data-table__tr",{"v-data-table__tr--clickable":!!(e.onClick||e.onContextmenu||e.onDblclick)},l.value]),onClick:e.onClick,onContextmenu:e.onContextmenu,onDblclick:e.onDblclick},[e.item&&w.value.map((m,C)=>{const p=e.item,D=`item.${m.key}`,F=`header.${m.key}`,k={index:e.index,item:p.raw,internalItem:p,value:me(p.columns,m.key),column:m,isSelected:r,toggleSelect:s,isExpanded:f,toggleExpand:g},R={column:m,selectAll:u,isSorted:x,toggleSort:d,sortBy:v.value,someSelected:i.value,allSelected:o.value,getSortIcon:()=>""},$=typeof e.cellProps=="function"?e.cellProps({index:k.index,item:k.item,internalItem:k.internalItem,value:k.value,column:m}):e.cellProps,y=typeof m.cellProps=="function"?m.cellProps({index:k.index,item:k.item,internalItem:k.internalItem,value:k.value}):m.cellProps;return S(he,V({align:m.align,class:{"v-data-table__td--expanded-row":m.key==="data-table-expand","v-data-table__td--select-row":m.key==="data-table-select"},fixed:m.fixed,fixedOffset:m.fixedOffset,fixedEndOffset:m.fixedEndOffset,lastFixed:m.lastFixed,firstFixedEnd:m.firstFixedEnd,maxWidth:n.value?void 0:m.maxWidth,noPadding:m.key==="data-table-select"||m.key==="data-table-expand",nowrap:m.nowrap,width:n.value?void 0:m.width},$,y),{default:()=>{if(m.key==="data-table-select")return a["item.data-table-select"]?.({...k,props:{disabled:!p.selectable,modelValue:r([p]),onClick:de(()=>s(p),["stop"])}})??S(Ge,{disabled:!p.selectable,modelValue:r([p]),onClick:de(c=>s(p,e.index,c),["stop"])},null);if(m.key==="data-table-expand")return a["item.data-table-expand"]?.({...k,props:{icon:f(p)?"$collapse":"$expand",size:"small",variant:"text",onClick:de(()=>g(p),["stop"])}})??S(z,{icon:f(p)?"$collapse":"$expand",size:"small",variant:"text",onClick:de(()=>g(p),["stop"])},null);if(a[D]&&!n.value)return a[D](k);const b=Oe(k.value);return n.value?h(Z,null,[h("div",{class:"v-data-table__td-title"},[a[F]?.(R)??m.title]),h("div",{class:"v-data-table__td-value"},[a[D]?.(k)??b])]):b}})})]))}}),Ht=B({loading:[Boolean,String],loadingText:{type:String,default:"$vuetify.dataIterator.loadingText"},hideNoData:Boolean,items:{type:Array,default:()=>[]},noDataText:{type:String,default:"$vuetify.noDataText"},rowProps:[Object,Function],cellProps:[Object,Function],...Le()},"VDataTableRows"),ye=K()({name:"VDataTableRows",inheritAttrs:!1,props:Ht(),setup(e,t){let{attrs:a,slots:l}=t;const{columns:n}=xe(),{expandOnClick:r,toggleExpand:s,isExpanded:i}=Nt(),{isSelected:o,toggleSelect:u}=Se(),{toggleGroup:f,isGroupOpen:g}=Rt(),{t:d}=oe(),{mobile:v}=pe(e);return ee(()=>e.loading&&(!e.items.length||l.loading)?h("tr",{class:"v-data-table-rows-loading",key:"loading"},[h("td",{colspan:n.value.length},[l.loading?.()??d(e.loadingText)])]):!e.loading&&!e.items.length&&!e.hideNoData?h("tr",{class:"v-data-table-rows-no-data",key:"no-data"},[h("td",{colspan:n.value.length},[l["no-data"]?.()??d(e.noDataText)])]):h(Z,null,[e.items.map((x,w)=>{if(x.type==="group"){const p={index:w,item:x,columns:n.value,isExpanded:i,toggleExpand:s,isSelected:o,toggleSelect:u,toggleGroup:f,isGroupOpen:g};return l["group-header"]?l["group-header"](p):S(nl,V({key:`group-header_${x.id}`,item:x},Ye(a,":group-header",()=>p)),l)}const m={index:w,item:x.raw,internalItem:x,columns:n.value,isExpanded:i,toggleExpand:s,isSelected:o,toggleSelect:u},C={...m,props:V({key:`item_${x.key??x.index}`,onClick:r.value?()=>{s(x)}:void 0,index:w,item:x,cellProps:e.cellProps,mobile:v.value},Ye(a,":row",()=>m),typeof e.rowProps=="function"?e.rowProps({item:m.item,index:m.index,internalItem:m.internalItem}):e.rowProps)};return h(Z,{key:C.props.key},[l.item?l.item(C):S(Gt,C.props,l),i(x)&&l["expanded-row"]?.(m)])})])),{}}}),ol=B({items:{type:Array,default:()=>[]},itemValue:{type:[String,Array,Function],default:"id"},itemSelectable:{type:[String,Array,Function],default:null},rowProps:[Object,Function],cellProps:[Object,Function],returnObject:Boolean},"DataTable-items");function il(e,t,a,l){const n=e.returnObject?t:ce(t,e.itemValue),r=ce(t,e.itemSelectable,!0),s=l.reduce((i,o)=>(o.key!=null&&(i[o.key]=ce(t,o.value)),i),{});return{type:"item",key:e.returnObject?ce(t,e.itemValue):n,index:a,value:n,selectable:r,columns:s,raw:t}}function ul(e,t,a){return t.map((l,n)=>il(e,l,n,a))}function jt(e,t){return{items:_(()=>ul(e,e.items,t.value))}}function zt(e){let{page:t,itemsPerPage:a,sortBy:l,groupBy:n,search:r}=e;const s=tt("VDataTable"),i=()=>({page:t.value,itemsPerPage:a.value,sortBy:l.value,groupBy:n.value,search:r.value});let o=null;$e(i,u=>{at(o,u)||(o&&o.search!==u.search&&(t.value=1),s.emit("update:options",u),o=u)},{deep:!0,immediate:!0})}const Mt=B({...Ht(),hideDefaultBody:Boolean,hideDefaultFooter:Boolean,hideDefaultHeader:Boolean,width:[String,Number],search:String,...rl(),...Vt(),...Wa(),...ol(),...Ja(),...el(),...Tt(),...Ia()},"DataTable"),dl=B({...Ha(),...Mt(),...ot(),...ct()},"VDataTable");K()({name:"VDataTable",props:dl(),emits:{"update:modelValue":e=>!0,"update:page":e=>!0,"update:itemsPerPage":e=>!0,"update:sortBy":e=>!0,"update:options":e=>!0,"update:groupBy":e=>!0,"update:expanded":e=>!0,"update:currentItems":e=>!0},setup(e,t){let{attrs:a,slots:l}=t;const{groupBy:n}=Bt(e),{sortBy:r,multiSort:s,mustSort:i}=kt(e),{page:o,itemsPerPage:u}=ja(e),{disableSort:f}=lt(e),{columns:g,headers:d,sortFunctions:v,sortRawFunctions:x,filterFunctions:w}=yt(e,{groupBy:n,showSelect:I(()=>e.showSelect),showExpand:I(()=>e.showExpand)}),{items:m}=jt(e,g),C=I(()=>e.search),{filteredItems:p}=it(e,m,C,{transform:G=>G.columns,customKeyFilter:w}),{toggleSort:D}=_t({sortBy:r,multiSort:s,mustSort:i,page:o}),{sortByWithGroups:F,opened:k,extractRows:R,isGroupOpen:$,toggleGroup:y}=Ft({groupBy:n,sortBy:r,disableSort:f}),{sortedItems:b}=It(e,p,F,{transform:G=>({...G.raw,...G.columns}),sortFunctions:v,sortRawFunctions:x}),{flatItems:c}=Ot(b,n,k),P=_(()=>c.value.length),{startIndex:T,stopIndex:L,pageCount:re,setItemsPerPage:q}=za({page:o,itemsPerPage:u,itemsLength:P}),{paginatedItems:W}=qa({items:c,startIndex:T,stopIndex:L,itemsPerPage:u}),U=_(()=>R(W.value)),{isSelected:we,select:Pe,selectAll:ke,toggleSelect:_e,someSelected:De,allSelected:Ie}=wt(e,{allItems:m,currentPage:U}),{isExpanded:Te,toggleExpand:Ve}=Lt(e);zt({page:o,itemsPerPage:u,sortBy:r,groupBy:n,search:C}),ve({VDataTableRows:{hideNoData:I(()=>e.hideNoData),noDataText:I(()=>e.noDataText),loading:I(()=>e.loading),loadingText:I(()=>e.loadingText)}});const E=_(()=>({page:o.value,itemsPerPage:u.value,sortBy:r.value,pageCount:re.value,toggleSort:D,setItemsPerPage:q,someSelected:De.value,allSelected:Ie.value,isSelected:we,select:Pe,selectAll:ke,toggleSelect:_e,isExpanded:Te,toggleExpand:Ve,isGroupOpen:$,toggleGroup:y,items:U.value.map(G=>G.raw),internalItems:U.value,groupedItems:W.value,columns:g.value,headers:d.value}));return ee(()=>{const G=Ze.filterProps(e),Ce=be.filterProps(e),H=ye.filterProps(e),O=ge.filterProps(e);return S(ge,V({class:["v-data-table",{"v-data-table--show-select":e.showSelect,"v-data-table--loading":e.loading},e.class],style:e.style},O,{fixedHeader:e.fixedHeader||e.sticky}),{top:()=>l.top?.(E.value),default:()=>l.default?l.default(E.value):h(Z,null,[l.colgroup?.(E.value),!e.hideDefaultHeader&&h("thead",{key:"thead"},[S(be,Ce,l)]),l.thead?.(E.value),!e.hideDefaultBody&&h("tbody",null,[l["body.prepend"]?.(E.value),l.body?l.body(E.value):S(ye,V(a,H,{items:W.value}),l),l["body.append"]?.(E.value)]),l.tbody?.(E.value),l.tfoot?.(E.value)]),bottom:()=>l.bottom?l.bottom(E.value):!e.hideDefaultFooter&&h(Z,null,[S(Ta,null,null),S(Ze,G,{prepend:l["footer.prepend"]})])})}),{}}});const cl=B({...sa(Mt(),["hideDefaultFooter"]),...Vt(),..._a(),...ot()},"VDataTableVirtual"),fl=K()({name:"VDataTableVirtual",props:cl(),emits:{"update:modelValue":e=>!0,"update:sortBy":e=>!0,"update:options":e=>!0,"update:groupBy":e=>!0,"update:expanded":e=>!0},setup(e,t){let{attrs:a,slots:l}=t;const{groupBy:n}=Bt(e),{sortBy:r,multiSort:s,mustSort:i}=kt(e),{disableSort:o}=lt(e),{columns:u,headers:f,filterFunctions:g,sortFunctions:d,sortRawFunctions:v}=yt(e,{groupBy:n,showSelect:I(()=>e.showSelect),showExpand:I(()=>e.showExpand)}),{items:x}=jt(e,u),w=I(()=>e.search),{filteredItems:m}=it(e,x,w,{transform:O=>O.columns,customKeyFilter:g}),{toggleSort:C}=_t({sortBy:r,multiSort:s,mustSort:i}),{sortByWithGroups:p,opened:D,extractRows:F,isGroupOpen:k,toggleGroup:R}=Ft({groupBy:n,sortBy:r,disableSort:o}),{sortedItems:$}=It(e,m,p,{transform:O=>({...O.raw,...O.columns}),sortFunctions:d,sortRawFunctions:v}),{flatItems:y}=Ot($,n,D),b=_(()=>F(y.value)),{isSelected:c,select:P,selectAll:T,toggleSelect:L,someSelected:re,allSelected:q}=wt(e,{allItems:b,currentPage:b}),{isExpanded:W,toggleExpand:U}=Lt(e),{containerRef:we,markerRef:Pe,paddingTop:ke,paddingBottom:_e,computedItems:De,handleItemResize:Ie,handleScroll:Te,handleScrollend:Ve,calculateVisibleItems:E,scrollToIndex:G}=ka(e,y),Ce=_(()=>De.value.map(O=>O.raw));zt({sortBy:r,page:fe(1),itemsPerPage:fe(-1),groupBy:n,search:w}),ve({VDataTableRows:{hideNoData:I(()=>e.hideNoData),noDataText:I(()=>e.noDataText),loading:I(()=>e.loading),loadingText:I(()=>e.loadingText)}});const H=_(()=>({sortBy:r.value,toggleSort:C,someSelected:re.value,allSelected:q.value,isSelected:c,select:P,selectAll:T,toggleSelect:L,isExpanded:W,toggleExpand:U,isGroupOpen:k,toggleGroup:R,items:b.value.map(O=>O.raw),internalItems:b.value,groupedItems:y.value,columns:u.value,headers:f.value}));return ee(()=>{const O=be.filterProps(e),qt=ye.filterProps(e),Wt=ge.filterProps(e);return S(ge,V({class:["v-data-table",{"v-data-table--loading":e.loading},e.class],style:e.style},Wt,{fixedHeader:e.fixedHeader||e.sticky}),{top:()=>l.top?.(H.value),wrapper:()=>h("div",{ref:we,onScrollPassive:Te,onScrollend:Ve,class:"v-table__wrapper",style:{height:A(e.height)}},[h("table",null,[l.colgroup?.(H.value),!e.hideDefaultHeader&&h("thead",{key:"thead"},[S(be,O,l)]),l.thead?.(H.value),!e.hideDefaultBody&&h("tbody",{key:"tbody"},[h("tr",{ref:Pe,style:{height:A(ke.value),border:0}},[h("td",{colspan:u.value.length,style:{height:0,border:0}},null)]),l["body.prepend"]?.(H.value),S(ye,V(a,qt,{items:Ce.value}),{...l,item:te=>S(Da,{key:te.internalItem.index,renderless:!0,"onUpdate:height":Be=>Ie(te.internalItem.index,Be)},{default:Be=>{let{itemRef:je}=Be;return l.item?.({...te,itemRef:je})??S(Gt,V(te.props,{ref:je,key:te.internalItem.index,index:te.internalItem.index}),l)}})}),l["body.append"]?.(H.value),h("tr",{style:{height:A(_e.value),border:0}},[h("td",{colspan:u.value.length,style:{height:0,border:0}},null)])]),l.tbody?.(H.value),l.tfoot?.(H.value)])]),bottom:()=>l.bottom?.(H.value)})}),{calculateVisibleItems:E,scrollToIndex:G}}}),vl={name:"AdminTable"};function ml(e,t,a,l,n,r){return N(),M(fl,{"fixed-header":"","item-value":"pk",mobile:e.$vuetify.display.xs},oa({_:2},[nt(e.$slots,(s,i)=>({name:i,fn:ae(o=>[ia(e.$slots,i,V({props:s},o),void 0,!0)])}))]),1032,["mobile"])}const Fl=J(vl,[["render",ml],["__scopeId","data-v-8b5d9183"]]),gl={name:"AdminDeleteRowDialog",components:{ConfirmDialog:Va},props:{table:{type:String,required:!0},pk:{type:Number,required:!0},name:{type:String,required:!0}},data(){return{mdiTrashCan:ua}},computed:{titleText(){return`Delete ${this.table}`}},methods:{...Je(rt,["deleteRow"]),confirm(){this.deleteRow(this.table,this.pk),this.showDialog=!1}}};function hl(e,t,a,l,n,r){const s=se("ConfirmDialog");return N(),M(s,{icon:n.mdiTrashCan,"title-text":r.titleText,text:a.name,"confirm-text":r.titleText,onConfirm:r.confirm},null,8,["icon","title-text","text","confirm-text","onConfirm"])}const Rl=J(gl,[["render",hl]]),bl={name:"RelationChips",components:{GroupChip:ut},props:{pks:{type:Array,required:!0},objs:{type:Object,required:!0},titleKey:{type:String,required:!0},groupType:{type:Boolean,default:!1}},computed:{map(){const e={};for(const t of this.objs)e[t.pk]=t;return e}}};function yl(e,t,a,l,n,r){const s=se("GroupChip");return N(),Ue("span",null,[(N(!0),Ue(Z,null,nt(a.pks,i=>(N(),M(s,{key:i,"title-key":a.titleKey,"group-type":a.groupType,item:r.map[i]},null,8,["title-key","group-type","item"]))),128))])}const Al=J(bl,[["render",yl]]);export{Bl as A,ut as G,Al as R,Cl as a,Rl as b,Fl as c};
@@ -1 +0,0 @@
1
- .cuForm[data-v-b61575f9]{padding:20px;max-height:100%;overflow-y:scroll}.include[data-v-fe7786ef]{background-color:rgb(var(--v-theme-includeGroup))}.exclude[data-v-fe7786ef]{background-color:rgb(var(--v-theme-excludeGroup))}.adminTable[data-v-8b5d9183] thead>tr>th{background-color:rgb(var(--v-theme-background))!important}[data-v-8b5d9183] .adminNoData{padding:1em;text-align:center}.v-data-table{width:100%}.v-data-table__table{width:100%;border-collapse:separate;border-spacing:0}.v-data-table__tr--focus{border:1px dotted black}.v-data-table__tr--clickable{cursor:pointer}.v-data-table .v-table__wrapper>table>thead>tr>td.v-data-table-column--align-end,.v-data-table .v-table__wrapper>table>thead>tr th.v-data-table-column--align-end,.v-data-table .v-table__wrapper>table tbody>tr>td.v-data-table-column--align-end,.v-data-table .v-table__wrapper>table tbody>tr th.v-data-table-column--align-end{text-align:end}.v-data-table .v-table__wrapper>table>thead>tr>td.v-data-table-column--align-end .v-data-table-header__content,.v-data-table .v-table__wrapper>table>thead>tr th.v-data-table-column--align-end .v-data-table-header__content,.v-data-table .v-table__wrapper>table tbody>tr>td.v-data-table-column--align-end .v-data-table-header__content,.v-data-table .v-table__wrapper>table tbody>tr th.v-data-table-column--align-end .v-data-table-header__content{flex-direction:row-reverse}.v-data-table .v-table__wrapper>table>thead>tr>td.v-data-table-column--align-center,.v-data-table .v-table__wrapper>table>thead>tr th.v-data-table-column--align-center,.v-data-table .v-table__wrapper>table tbody>tr>td.v-data-table-column--align-center,.v-data-table .v-table__wrapper>table tbody>tr th.v-data-table-column--align-center{text-align:center}.v-data-table .v-table__wrapper>table>thead>tr>td.v-data-table-column--align-center .v-data-table-header__content,.v-data-table .v-table__wrapper>table>thead>tr th.v-data-table-column--align-center .v-data-table-header__content,.v-data-table .v-table__wrapper>table tbody>tr>td.v-data-table-column--align-center .v-data-table-header__content,.v-data-table .v-table__wrapper>table tbody>tr th.v-data-table-column--align-center .v-data-table-header__content{justify-content:center}.v-data-table .v-table__wrapper>table>thead>tr>td.v-data-table-column--no-padding,.v-data-table .v-table__wrapper>table>thead>tr th.v-data-table-column--no-padding,.v-data-table .v-table__wrapper>table tbody>tr>td.v-data-table-column--no-padding,.v-data-table .v-table__wrapper>table tbody>tr th.v-data-table-column--no-padding{padding:0 8px}.v-data-table .v-table__wrapper>table>thead>tr>td.v-data-table-column--nowrap,.v-data-table .v-table__wrapper>table>thead>tr th.v-data-table-column--nowrap,.v-data-table .v-table__wrapper>table tbody>tr>td.v-data-table-column--nowrap,.v-data-table .v-table__wrapper>table tbody>tr th.v-data-table-column--nowrap{text-overflow:ellipsis;text-wrap:nowrap;overflow:hidden}.v-data-table .v-table__wrapper>table>thead>tr>td.v-data-table-column--nowrap .v-data-table-header__content,.v-data-table .v-table__wrapper>table>thead>tr th.v-data-table-column--nowrap .v-data-table-header__content,.v-data-table .v-table__wrapper>table tbody>tr>td.v-data-table-column--nowrap .v-data-table-header__content,.v-data-table .v-table__wrapper>table tbody>tr th.v-data-table-column--nowrap .v-data-table-header__content{display:contents}.v-data-table .v-table__wrapper>table>thead>tr>th,.v-data-table .v-table__wrapper>table tbody>tr>th{align-items:center}.v-data-table .v-table__wrapper>table>thead>tr>th.v-data-table__th--fixed,.v-data-table .v-table__wrapper>table tbody>tr>th.v-data-table__th--fixed{position:sticky}.v-data-table .v-table__wrapper>table>thead>tr>th.v-data-table__th--sortable:hover,.v-data-table .v-table__wrapper>table>thead>tr>th.v-data-table__th--sortable:focus,.v-data-table .v-table__wrapper>table tbody>tr>th.v-data-table__th--sortable:hover,.v-data-table .v-table__wrapper>table tbody>tr>th.v-data-table__th--sortable:focus{cursor:pointer;color:rgba(var(--v-theme-on-surface),var(--v-high-emphasis-opacity))}.v-data-table .v-table__wrapper>table>thead>tr>th:not(.v-data-table__th--sorted) .v-data-table-header__sort-icon,.v-data-table .v-table__wrapper>table tbody>tr>th:not(.v-data-table__th--sorted) .v-data-table-header__sort-icon{opacity:0}.v-data-table .v-table__wrapper>table>thead>tr>th:not(.v-data-table__th--sorted):hover .v-data-table-header__sort-icon,.v-data-table .v-table__wrapper>table>thead>tr>th:not(.v-data-table__th--sorted):focus .v-data-table-header__sort-icon,.v-data-table .v-table__wrapper>table tbody>tr>th:not(.v-data-table__th--sorted):hover .v-data-table-header__sort-icon,.v-data-table .v-table__wrapper>table tbody>tr>th:not(.v-data-table__th--sorted):focus .v-data-table-header__sort-icon{opacity:.5}.v-data-table .v-table__wrapper>table>thead>tr.v-data-table__tr--mobile>td,.v-data-table .v-table__wrapper>table tbody>tr.v-data-table__tr--mobile>td{height:fit-content}.v-data-table-column--fixed,.v-data-table-column--fixed-end,.v-data-table__th--sticky{background-color:rgb(var(--v-theme-surface));background-image:inherit;position:sticky!important;left:0;z-index:1}.v-data-table-column--fixed-end{left:unset;right:0}.v-data-table-column--last-fixed{border-right:1px solid rgba(var(--v-border-color),var(--v-border-opacity))}.v-data-table-column--first-fixed-end{border-left:1px solid rgba(var(--v-border-color),var(--v-border-opacity))}.v-data-table.v-table--fixed-header>.v-table__wrapper>table>thead>tr>th.v-data-table-column--fixed,.v-data-table.v-table--fixed-header>.v-table__wrapper>table>thead>tr>th.v-data-table-column--fixed-end{z-index:2}.v-data-table-group-header-row td{background:rgba(var(--v-theme-surface));color:rgba(var(--v-theme-on-surface))}.v-data-table-group-header-row td>span{padding-left:5px}.v-data-table--loading .v-data-table__td{opacity:var(--v-disabled-opacity)}.v-data-table-group-header-row__column{padding-left:calc(var(--v-data-table-group-header-row-depth) * 16px)!important}.v-data-table-header__content{display:flex;align-items:center}.v-data-table-header__sort-badge{display:inline-flex;justify-content:center;align-items:center;font-size:.875rem;padding:4px;border-radius:50%;background:rgba(var(--v-border-color),var(--v-border-opacity));min-width:20px;min-height:20px;width:20px;height:20px}.v-data-table-progress>th{border:none!important;height:auto!important;padding:0!important}.v-data-table-progress__loader{position:relative}.v-data-table-rows-loading,.v-data-table-rows-no-data{text-align:center}.v-data-table__tr--mobile>.v-data-table__td--expanded-row{grid-template-columns:auto;justify-content:center}.v-data-table__tr--mobile>.v-data-table__td--select-row{grid-template-columns:0;justify-content:end}.v-data-table__tr--mobile>td{align-items:center;column-gap:4px;display:grid;grid-template-columns:repeat(2,1fr);min-height:var(--v-table-row-height)}.v-data-table__tr--mobile>td:not(:last-child){border-bottom:0!important}.v-data-table__td-title{font-weight:500;text-align:start}.v-data-table__td-value{text-align:end}.v-data-table__td-sort-icon{color:rgba(var(--v-theme-on-surface),var(--v-disabled-opacity))}.v-data-table__td-sort-icon-active{color:rgba(var(--v-theme-on-surface))}.v-data-table-footer{align-items:center;display:flex;flex-wrap:wrap;justify-content:flex-end;padding:8px 4px}.v-data-table-footer__items-per-page{align-items:center;display:flex;justify-content:center}.v-data-table-footer__items-per-page>span{padding-inline-end:8px}.v-data-table-footer__items-per-page>.v-select{width:90px}.v-data-table-footer__info{display:flex;justify-content:flex-end;min-width:116px;padding:0 16px}.v-data-table-footer__paginationz{align-items:center;display:flex;margin-inline-start:16px}.v-data-table-footer__page{padding:0 8px}.v-pagination__list{display:inline-flex;list-style-type:none;justify-content:center;width:100%}.v-pagination__item,.v-pagination__first,.v-pagination__prev,.v-pagination__next,.v-pagination__last{margin:.3rem}