camera.ui3 0.0.33 → 0.0.34-alpha.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (169) hide show
  1. package/dist/interface/@mdi.C1UTQKuc.0.0.34-alpha.0.js +1 -0
  2. package/dist/interface/@tanstack.RTx9E9y7.0.0.34-alpha.0.js +1 -0
  3. package/dist/interface/{@vee-validate.Bq0Uigtp.0.0.33.js → @vee-validate.ptox5Hkw.0.0.34-alpha.0.js} +1 -1
  4. package/dist/interface/{@vue.BdRXtpVd.0.0.33.js → @vue.DD07jlOO.0.0.34-alpha.0.js} +1 -1
  5. package/dist/interface/@vueform.DZw58F7r.0.0.34-alpha.0.js +1 -0
  6. package/dist/interface/@vueuse.B8UZ0pix.0.0.34-alpha.0.js +1 -0
  7. package/dist/interface/Account.G8q0djcz.0.0.34-alpha.0.js +1 -0
  8. package/dist/interface/Adminpanel.Cr3YkJpH.0.0.34-alpha.0.js +2 -0
  9. package/dist/interface/Appearance.DxjEOUgB.0.0.34-alpha.0.js +1 -0
  10. package/dist/interface/Backup.Ca-TnbiL.0.0.34-alpha.0.js +1 -0
  11. package/dist/interface/Camera.DU8K1N0C.0.0.34-alpha.0.js +1 -0
  12. package/dist/interface/Cameras.ClJj-LiP.0.0.34-alpha.0.js +1 -0
  13. package/dist/interface/Camview.CZC51EkR.0.0.34-alpha.0.js +1 -0
  14. package/dist/interface/Config.D8ivzHjO.0.0.34-alpha.0.js +1 -0
  15. package/dist/interface/Console._P_NhXZc.0.0.34-alpha.0.js +4 -0
  16. package/dist/interface/FirstSteps.D-ZB1UK_.0.0.34-alpha.0.js +1 -0
  17. package/dist/interface/{NewCamera.D3Ogsq7W.0.0.33.js → NewCamera.Cs_xkRSg.0.0.34-alpha.0.js} +2 -2
  18. package/dist/interface/Plugin.CG1TNvyW.0.0.34-alpha.0.js +1 -0
  19. package/dist/interface/Plugins.CMW2b9VP.0.0.34-alpha.0.js +1 -0
  20. package/dist/interface/Recordings.BeL5j0br.0.0.34-alpha.0.js +1 -0
  21. package/dist/interface/Recordings.nKhVoEv_.0.0.34-alpha.0.js +1 -0
  22. package/dist/interface/Settings.B9-lP69C.0.0.34-alpha.0.js +1 -0
  23. package/dist/interface/{System.DU4zzqDJ.0.0.33.js → System.DU2no3Ij.0.0.34-alpha.0.js} +1 -1
  24. package/dist/interface/User.s4mfuOd8.0.0.34-alpha.0.js +1 -0
  25. package/dist/interface/VConfigEditor.vue_vue_type_script_setup_true_lang.opUam6Jm.0.0.34-alpha.0.js +2 -0
  26. package/dist/interface/VConsole.kG4Wm6NV.0.0.34-alpha.0.js +1 -0
  27. package/dist/interface/VPlayer.BpXzNzAf.0.0.34-alpha.0.js +1 -0
  28. package/dist/interface/{VPluginCard.wQAnHUy9.0.0.33.js → VPluginCard.FMoeWaor.0.0.34-alpha.0.js} +2 -2
  29. package/dist/interface/{ace-builds.BZOKRrEw.0.0.33.js → ace-builds.DAtsxZmg.0.0.34-alpha.0.js} +1 -1
  30. package/dist/interface/{apexcharts.QF4RTfFN.0.0.33.js → apexcharts.CuJL_Z73.0.0.34-alpha.0.js} +1 -1
  31. package/dist/interface/assets/Camera.0.0.34-alpha.0.D49XscoW.css +1 -0
  32. package/dist/interface/assets/Camview.0.0.34-alpha.0.BdTE1Iny.css +1 -0
  33. package/dist/interface/assets/NewCamera.0.0.34-alpha.0.ByGNe7eR.css +1 -0
  34. package/dist/interface/assets/{VPlayer.0.0.33.CrSwi-ID.css → VPlayer.0.0.34-alpha.0.Bqxk0BU5.css} +1 -1
  35. package/dist/interface/assets/{main.0.0.33.Da5MijSC.css → main.0.0.34-alpha.0.C1atsWH3.css} +1 -1
  36. package/dist/interface/assets/{vuetify.0.0.33.Cip-kMKR.css → vuetify.0.0.34-alpha.0.B_k2Rcut.css} +1 -1
  37. package/dist/interface/dnd-core.C0RkhVD8.0.0.34-alpha.0.js +1 -0
  38. package/dist/interface/{draggabilly.BS2C-yZq.0.0.33.js → draggabilly.CJPXfEji.0.0.34-alpha.0.js} +1 -1
  39. package/dist/interface/engine.io-client.DvNvteG8.0.0.34-alpha.0.js +1 -0
  40. package/dist/interface/ev-emitter.V8vOXEOF.0.0.34-alpha.0.js +1 -0
  41. package/dist/interface/fast-deep-equal.Cu8v9QP1.0.0.34-alpha.0.js +1 -0
  42. package/dist/interface/{highlight.js.hkAz__AS.0.0.33.js → highlight.js.BlYBoHvQ.0.0.34-alpha.0.js} +1 -1
  43. package/dist/interface/index.html +31 -31
  44. package/dist/interface/linkify-it.e9Xezb7f.0.0.34-alpha.0.js +1 -0
  45. package/dist/interface/main.CBun-MVF.0.0.34-alpha.0.js +4 -0
  46. package/dist/interface/{markdown-it.D9MLaG-w.0.0.33.js → markdown-it.TYz2Vywi.0.0.34-alpha.0.js} +1 -1
  47. package/dist/interface/{nprogress.CoH_exof.0.0.33.js → nprogress.BpOU_abF.0.0.34-alpha.0.js} +1 -1
  48. package/dist/interface/{pinia.B3RfzpWL.0.0.33.js → pinia.4SaF1m4j.0.0.34-alpha.0.js} +2 -2
  49. package/dist/interface/plugins.Btkvninu.0.0.34-alpha.0.js +1 -0
  50. package/dist/interface/point-in-polygon-hao.l0sNRNKZ.0.0.34-alpha.0.js +1 -0
  51. package/dist/interface/{qrcode.hk1zRA62.0.0.33.js → qrcode.r6S5KRtW.0.0.34-alpha.0.js} +1 -1
  52. package/dist/interface/react-dnd-touch-backend.CTlTDjPd.0.0.34-alpha.0.js +1 -0
  53. package/dist/interface/{rxjs.M_-T1_Wo.0.0.33.js → rxjs.qNj2ii7F.0.0.34-alpha.0.js} +1 -1
  54. package/dist/interface/socket.io-client.6m8Wx6Gb.0.0.34-alpha.0.js +1 -0
  55. package/dist/interface/socket.io-parser.C3f8D3GG.0.0.34-alpha.0.js +1 -0
  56. package/dist/interface/sw.js +1 -1
  57. package/dist/interface/sweepline-intersections.l0sNRNKZ.0.0.34-alpha.0.js +1 -0
  58. package/dist/interface/system.C_kiuqo-.0.0.34-alpha.0.js +1 -0
  59. package/dist/interface/{unidragger.CknH16A1.0.0.33.js → unidragger.CuhjnRz3.0.0.34-alpha.0.js} +1 -1
  60. package/dist/interface/v-calendar.Bj3BKKi_.0.0.34-alpha.0.js +1 -0
  61. package/dist/interface/{vee-validate.BrBRPHgf.0.0.33.js → vee-validate.DmSS7Yyb.0.0.34-alpha.0.js} +1 -1
  62. package/dist/interface/{vue-i18n.CkwhhQDC.0.0.33.js → vue-i18n.Bw8XEyfx.0.0.34-alpha.0.js} +1 -1
  63. package/dist/interface/vue-inline-svg.T4jTFiI-.0.0.34-alpha.0.js +1 -0
  64. package/dist/interface/{vue-router.2R7pXMVh.0.0.33.js → vue-router.FDI0ZN2g.0.0.34-alpha.0.js} +1 -1
  65. package/dist/interface/vue.l0sNRNKZ.0.0.34-alpha.0.js +1 -0
  66. package/dist/interface/vue3-apexcharts.D3zy1HLu.0.0.34-alpha.0.js +1 -0
  67. package/dist/interface/vue3-dnd.BgXj5sqW.0.0.34-alpha.0.js +1 -0
  68. package/dist/interface/vue3-toastify.Bn4mvAn3.0.0.34-alpha.0.js +1 -0
  69. package/dist/interface/vuetify.BZRDiB_v.0.0.34-alpha.0.js +5 -0
  70. package/dist/server/package.json +8 -8
  71. package/dist/server/requirements.txt +1 -1
  72. package/dist/server/src/api/schemas/cameras.schema.d.ts +15 -15
  73. package/dist/server/src/api/schemas/cameras.schema.js +5 -5
  74. package/dist/server/src/api/schemas/cameras.schema.js.map +1 -1
  75. package/dist/server/src/api/websocket/nsp/server.js +1 -1
  76. package/dist/server/src/api/websocket/nsp/server.js.map +1 -1
  77. package/dist/server/src/camera/controller.js +4 -4
  78. package/dist/server/src/camera/controller.js.map +1 -1
  79. package/dist/server/src/decoder/worker.js +7 -3
  80. package/dist/server/src/decoder/worker.js.map +1 -1
  81. package/package.json +8 -8
  82. package/dist/interface/@mdi.CNGs-o9b.0.0.33.js +0 -1
  83. package/dist/interface/@tanstack.BIYKNPs9.0.0.33.js +0 -1
  84. package/dist/interface/@vueform.fR3SaVG0.0.0.33.js +0 -1
  85. package/dist/interface/@vueuse.UL8Sitst.0.0.33.js +0 -1
  86. package/dist/interface/Account.DIMzk5FC.0.0.33.js +0 -1
  87. package/dist/interface/Adminpanel.BXAku8jA.0.0.33.js +0 -2
  88. package/dist/interface/Appearance.CdtOCZsD.0.0.33.js +0 -1
  89. package/dist/interface/Backup.Cbd7PKo7.0.0.33.js +0 -1
  90. package/dist/interface/Camera.DPcOQDjY.0.0.33.js +0 -1
  91. package/dist/interface/Cameras.BRIDXf4P.0.0.33.js +0 -1
  92. package/dist/interface/Camview.B32rlRLT.0.0.33.js +0 -1
  93. package/dist/interface/Config.DuXaFgD8.0.0.33.js +0 -1
  94. package/dist/interface/Console.CxwxmfAy.0.0.33.js +0 -4
  95. package/dist/interface/FirstSteps.MvDjOPbi.0.0.33.js +0 -1
  96. package/dist/interface/Plugin.CwcsU7vn.0.0.33.js +0 -1
  97. package/dist/interface/Plugins.LQoJAw4a.0.0.33.js +0 -1
  98. package/dist/interface/Recordings.im1-u5e0.0.0.33.js +0 -1
  99. package/dist/interface/Recordings.lD4TO2ac.0.0.33.js +0 -1
  100. package/dist/interface/Settings.DGXWeZd9.0.0.33.js +0 -1
  101. package/dist/interface/User.CVxboDIL.0.0.33.js +0 -1
  102. package/dist/interface/VConfigEditor.vue_vue_type_script_setup_true_lang.DiwNhMVt.0.0.33.js +0 -2
  103. package/dist/interface/VConsole.B2tyCGK-.0.0.33.js +0 -1
  104. package/dist/interface/VPlayer.2PdupAin.0.0.33.js +0 -1
  105. package/dist/interface/assets/Camera.0.0.33.B5xpKXd_.css +0 -1
  106. package/dist/interface/assets/Camview.0.0.33.BylvNyus.css +0 -1
  107. package/dist/interface/assets/NewCamera.0.0.33.B9lV_Ay_.css +0 -1
  108. package/dist/interface/dnd-core.CmBpsKMn.0.0.33.js +0 -1
  109. package/dist/interface/engine.io-client.DDFwxmTi.0.0.33.js +0 -1
  110. package/dist/interface/ev-emitter.BBEpXvgG.0.0.33.js +0 -1
  111. package/dist/interface/fast-deep-equal.CWdZNamT.0.0.33.js +0 -1
  112. package/dist/interface/linkify-it.Dv9aY5q8.0.0.33.js +0 -1
  113. package/dist/interface/main.fbIhoBG1.0.0.33.js +0 -4
  114. package/dist/interface/plugins.D7lCPz90.0.0.33.js +0 -1
  115. package/dist/interface/react-dnd-touch-backend.BeXmxi8o.0.0.33.js +0 -1
  116. package/dist/interface/socket.io-client.BFWnk007.0.0.33.js +0 -1
  117. package/dist/interface/socket.io-parser.CayG1SIb.0.0.33.js +0 -1
  118. package/dist/interface/system.DzF_I6RI.0.0.33.js +0 -1
  119. package/dist/interface/v-calendar.Dnha5R9E.0.0.33.js +0 -1
  120. package/dist/interface/vue-inline-svg.DTAQVu6L.0.0.33.js +0 -1
  121. package/dist/interface/vue3-apexcharts.D9IhTmWk.0.0.33.js +0 -1
  122. package/dist/interface/vue3-dnd.D0-FfoMK.0.0.33.js +0 -1
  123. package/dist/interface/vue3-toastify.Eo_GqI5s.0.0.33.js +0 -1
  124. package/dist/interface/vuetify.CYxMzsVz.0.0.33.js +0 -5
  125. /package/dist/interface/{@babel.l0sNRNKZ.0.0.33.js → @babel.l0sNRNKZ.0.0.34-alpha.0.js} +0 -0
  126. /package/dist/interface/{@intlify.8z0ZxsCR.0.0.33.js → @intlify.8z0ZxsCR.0.0.34-alpha.0.js} +0 -0
  127. /package/dist/interface/{@popperjs.l0sNRNKZ.0.0.33.js → @popperjs.l0sNRNKZ.0.0.34-alpha.0.js} +0 -0
  128. /package/dist/interface/{@react-dnd.CcwRs9xb.0.0.33.js → @react-dnd.CcwRs9xb.0.0.34-alpha.0.js} +0 -0
  129. /package/dist/interface/{@socket.io.Dkula2eQ.0.0.33.js → @socket.io.Dkula2eQ.0.0.34-alpha.0.js} +0 -0
  130. /package/dist/interface/{vue.l0sNRNKZ.0.0.33.js → @turf.l0sNRNKZ.0.0.34-alpha.0.js} +0 -0
  131. /package/dist/interface/{@xterm.D1TSpo_H.0.0.33.js → @xterm.CRsBeZ-e.0.0.34-alpha.0.js} +0 -0
  132. /package/dist/interface/assets/{@vueform.0.0.33.h7tNX9p6.css → @vueform.0.0.34-alpha.0.h7tNX9p6.css} +0 -0
  133. /package/dist/interface/assets/{@xterm.0.0.33.CGrrDQr5.css → @xterm.0.0.34-alpha.0.CGrrDQr5.css} +0 -0
  134. /package/dist/interface/assets/{Account.0.0.33.Ce3OmKrC.css → Account.0.0.34-alpha.0.Ce3OmKrC.css} +0 -0
  135. /package/dist/interface/assets/{Adminpanel.0.0.33.BCpVV7QL.css → Adminpanel.0.0.34-alpha.0.BCpVV7QL.css} +0 -0
  136. /package/dist/interface/assets/{Backup.0.0.33.BIwaSlv3.css → Backup.0.0.34-alpha.0.BIwaSlv3.css} +0 -0
  137. /package/dist/interface/assets/{Cameras.0.0.33.BgZN27ly.css → Cameras.0.0.34-alpha.0.BgZN27ly.css} +0 -0
  138. /package/dist/interface/assets/{Config.0.0.33.BtdZEuQO.css → Config.0.0.34-alpha.0.BtdZEuQO.css} +0 -0
  139. /package/dist/interface/assets/{Console.0.0.33.Cc8Jy8yw.css → Console.0.0.34-alpha.0.Cc8Jy8yw.css} +0 -0
  140. /package/dist/interface/assets/{FirstSteps.0.0.33.CCo2y-sU.css → FirstSteps.0.0.34-alpha.0.CCo2y-sU.css} +0 -0
  141. /package/dist/interface/assets/{Plugin.0.0.33.BtRA6zDt.css → Plugin.0.0.34-alpha.0.BtRA6zDt.css} +0 -0
  142. /package/dist/interface/assets/{Plugins.0.0.33.Cwu0aGUO.css → Plugins.0.0.34-alpha.0.Cwu0aGUO.css} +0 -0
  143. /package/dist/interface/assets/{Settings.0.0.33.DTRm1psP.css → Settings.0.0.34-alpha.0.DTRm1psP.css} +0 -0
  144. /package/dist/interface/assets/{User.0.0.33.DPDcJbx8.css → User.0.0.34-alpha.0.DPDcJbx8.css} +0 -0
  145. /package/dist/interface/assets/{VConsole.0.0.33.BZT1WyS-.css → VConsole.0.0.34-alpha.0.BZT1WyS-.css} +0 -0
  146. /package/dist/interface/assets/{VPluginCard.0.0.33.BpMChOJT.css → VPluginCard.0.0.34-alpha.0.BpMChOJT.css} +0 -0
  147. /package/dist/interface/assets/{highlight.0.0.33.DgoK_Xib.css → highlight.0.0.34-alpha.0.DgoK_Xib.css} +0 -0
  148. /package/dist/interface/assets/{logo-256.0.0.33.BCQk9H1-.png → logo-256.0.0.34-alpha.0.BCQk9H1-.png} +0 -0
  149. /package/dist/interface/assets/{logo-512.0.0.33.DLKVOU2S.png → logo-512.0.0.34-alpha.0.DLKVOU2S.png} +0 -0
  150. /package/dist/interface/assets/{logo.0.0.33.DmEiRk0z.png → logo.0.0.34-alpha.0.DmEiRk0z.png} +0 -0
  151. /package/dist/interface/assets/{mode-json.0.0.33.Br7xisR1.js → mode-json.0.0.34-alpha.0.Br7xisR1.js} +0 -0
  152. /package/dist/interface/assets/{mode-yaml.0.0.33.CIYL8U3d.js → mode-yaml.0.0.34-alpha.0.CIYL8U3d.js} +0 -0
  153. /package/dist/interface/assets/{vue3-toastify.0.0.33.DTY1DMRs.css → vue3-toastify.0.0.34-alpha.0.DTY1DMRs.css} +0 -0
  154. /package/dist/interface/{axios.C-n2IhIP.0.0.33.js → axios.C-n2IhIP.0.0.34-alpha.0.js} +0 -0
  155. /package/dist/interface/{compare-versions.DqEOhma6.0.0.33.js → compare-versions.DqEOhma6.0.0.34-alpha.0.js} +0 -0
  156. /package/dist/interface/{dijkstrajs.D_NXgYpA.0.0.33.js → dijkstrajs.D_NXgYpA.0.0.34-alpha.0.js} +0 -0
  157. /package/dist/interface/{engine.io-parser.BiEtp6m2.0.0.33.js → engine.io-parser.BiEtp6m2.0.0.34-alpha.0.js} +0 -0
  158. /package/dist/interface/{entities.C20TfXL6.0.0.33.js → entities.C20TfXL6.0.0.34-alpha.0.js} +0 -0
  159. /package/dist/interface/{get-size.D1dS-IaP.0.0.33.js → get-size.D1dS-IaP.0.0.34-alpha.0.js} +0 -0
  160. /package/dist/interface/{mdurl.k9Sl0PQj.0.0.33.js → mdurl.k9Sl0PQj.0.0.34-alpha.0.js} +0 -0
  161. /package/dist/interface/{punycode.js.Dj65hjkv.0.0.33.js → punycode.js.Dj65hjkv.0.0.34-alpha.0.js} +0 -0
  162. /package/dist/interface/{react-dnd-html5-backend.1HQjlkwI.0.0.33.js → react-dnd-html5-backend.1HQjlkwI.0.0.34-alpha.0.js} +0 -0
  163. /package/dist/interface/{redux.CuxFRhX_.0.0.33.js → redux.CuxFRhX_.0.0.34-alpha.0.js} +0 -0
  164. /package/dist/interface/{tslib.9k7AwCpt.0.0.33.js → tslib.9k7AwCpt.0.0.34-alpha.0.js} +0 -0
  165. /package/dist/interface/{types.Cz9TaZAP.0.0.33.js → types.Cz9TaZAP.0.0.34-alpha.0.js} +0 -0
  166. /package/dist/interface/{uc.micro.kMc2yuuw.0.0.33.js → uc.micro.kMc2yuuw.0.0.34-alpha.0.js} +0 -0
  167. /package/dist/interface/{utils.mAKpSMLY.0.0.33.js → utils.mAKpSMLY.0.0.34-alpha.0.js} +0 -0
  168. /package/dist/interface/{uuid.DvF23Exx.0.0.33.js → uuid.DvF23Exx.0.0.34-alpha.0.js} +0 -0
  169. /package/dist/interface/{zod.DnW1_kUe.0.0.33.js → zod.DnW1_kUe.0.0.34-alpha.0.js} +0 -0
@@ -0,0 +1 @@
1
+ var H="M19,19H5V5H19M19,3H5A2,2 0 0,0 3,5V19A2,2 0 0,0 5,21H19A2,2 0 0,0 21,19V5C21,3.89 20.1,3 19,3M16.5,16.25C16.5,14.75 13.5,14 12,14C10.5,14 7.5,14.75 7.5,16.25V17H16.5M12,12.25A2.25,2.25 0 0,0 14.25,10A2.25,2.25 0 0,0 12,7.75A2.25,2.25 0 0,0 9.75,10A2.25,2.25 0 0,0 12,12.25Z",V="M12,2A10,10 0 0,0 2,12A10,10 0 0,0 12,22A10,10 0 0,0 22,12A10,10 0 0,0 12,2M7.07,18.28C7.5,17.38 10.12,16.5 12,16.5C13.88,16.5 16.5,17.38 16.93,18.28C15.57,19.36 13.86,20 12,20C10.14,20 8.43,19.36 7.07,18.28M18.36,16.83C16.93,15.09 13.46,14.5 12,14.5C10.54,14.5 7.07,15.09 5.64,16.83C4.62,15.5 4,13.82 4,12C4,7.59 7.59,4 12,4C16.41,4 20,7.59 20,12C20,13.82 19.38,15.5 18.36,16.83M12,6C10.06,6 8.5,7.56 8.5,9.5C8.5,11.44 10.06,13 12,13C13.94,13 15.5,11.44 15.5,9.5C15.5,7.56 13.94,6 12,6M12,11A1.5,1.5 0 0,1 10.5,9.5A1.5,1.5 0 0,1 12,8A1.5,1.5 0 0,1 13.5,9.5A1.5,1.5 0 0,1 12,11Z",L="M21.7,13.35L20.7,14.35L18.65,12.3L19.65,11.3C19.86,11.09 20.21,11.09 20.42,11.3L21.7,12.58C21.91,12.79 21.91,13.14 21.7,13.35M12,18.94L18.06,12.88L20.11,14.93L14.06,21H12V18.94M12,14C7.58,14 4,15.79 4,18V20H10V18.11L14,14.11C13.34,14.03 12.67,14 12,14M12,4A4,4 0 0,0 8,8A4,4 0 0,0 12,12A4,4 0 0,0 16,8A4,4 0 0,0 12,4Z",C="M16 17V19H2V17S2 13 9 13 16 17 16 17M12.5 7.5A3.5 3.5 0 1 0 9 11A3.5 3.5 0 0 0 12.5 7.5M15.94 13A5.32 5.32 0 0 1 18 17V19H22V17S22 13.37 15.94 13M15 4A3.39 3.39 0 0 0 13.07 4.59A5 5 0 0 1 13.07 10.41A3.39 3.39 0 0 0 15 11A3.5 3.5 0 0 0 15 4Z",M="M2,2H11V11H2V2M9,4H4V9H9V4M22,13V22H13V13H22M15,20H20V15H15V20M16,8V11H13V8H16M11,16H8V13H11V16Z",a="M12,22A10,10 0 0,1 2,12A10,10 0 0,1 12,2A10,10 0 0,1 22,12A10,10 0 0,1 12,22M12,7L7,12H10V16H14V12H17L12,7Z",A="M12,3A9,9 0 0,0 3,12H0L4,16L8,12H5A7,7 0 0,1 12,5A7,7 0 0,1 19,12A7,7 0 0,1 12,19C10.5,19 9.09,18.5 7.94,17.7L6.5,19.14C8.04,20.3 9.94,21 12,21A9,9 0 0,0 21,12A9,9 0 0,0 12,3M14,12A2,2 0 0,0 12,10A2,2 0 0,0 10,12A2,2 0 0,0 12,14A2,2 0 0,0 14,12Z",i="M21,19V20H3V19L5,17V11C5,7.9 7.03,5.17 10,4.29C10,4.19 10,4.1 10,4A2,2 0 0,1 12,2A2,2 0 0,1 14,4C14,4.1 14,4.19 14,4.29C16.97,5.17 19,7.9 19,11V17L21,19M14,21A2,2 0 0,1 12,23A2,2 0 0,1 10,21",r="M3 16C3 18.8 5.2 21 8 21H10V19H8C6.3 19 5 17.7 5 16V14H3V16M21 8C21 5.2 18.8 3 16 3H14V5H16C17.7 5 19 6.3 19 8V10H21V8M16 21C18.8 21 21 18.8 21 16V14H19V16C19 17.7 17.7 19 16 19H14V21H16M8 3C5.2 3 3 5.2 3 8V10H5V8C5 6.3 6.3 5 8 5H10V3H8Z",s="M4,4H7L9,2H15L17,4H20A2,2 0 0,1 22,6V18A2,2 0 0,1 20,20H4A2,2 0 0,1 2,18V6A2,2 0 0,1 4,4M12,7A5,5 0 0,0 7,12A5,5 0 0,0 12,17A5,5 0 0,0 17,12A5,5 0 0,0 12,7M12,9A3,3 0 0,1 15,12A3,3 0 0,1 12,15A3,3 0 0,1 9,12A3,3 0 0,1 12,9Z",d="M20,4H16.83L15,2H9L7.17,4H4A2,2 0 0,0 2,6V18A2,2 0 0,0 4,20H20A2,2 0 0,0 22,18V6A2,2 0 0,0 20,4M20,18H4V6H8.05L9.88,4H14.12L15.95,6H20V18M12,7A5,5 0 0,0 7,12A5,5 0 0,0 12,17A5,5 0 0,0 17,12A5,5 0 0,0 12,7M12,15A3,3 0 0,1 9,12A3,3 0 0,1 12,9A3,3 0 0,1 15,12A3,3 0 0,1 12,15Z",e="M12 2C17.5 2 22 6.5 22 12S17.5 22 12 22 2 17.5 2 12 6.5 2 12 2M12 4C10.1 4 8.4 4.6 7.1 5.7L18.3 16.9C19.3 15.5 20 13.8 20 12C20 7.6 16.4 4 12 4M16.9 18.3L5.7 7.1C4.6 8.4 4 10.1 4 12C4 16.4 7.6 20 12 20C13.9 20 15.6 19.4 16.9 18.3Z",m="M21 15V18H24V20H21V23H19V20H16V18H19V15H21M14 18H3V6H19V13H21V6C21 4.89 20.11 4 19 4H3C1.9 4 1 4.89 1 6V18C1 19.11 1.9 20 3 20H14V18Z",v="M14.5 12C14.5 10.62 13.38 9.5 12 9.5C10.62 9.5 9.5 10.62 9.5 12C9.5 13 10.09 13.84 10.93 14.25L9.82 15.35C8.73 14.64 8 13.41 8 12C8 9.79 9.79 8 12 8C14.21 8 16 9.79 16 12C16 13.41 15.27 14.64 14.18 15.35L13.08 14.25C13.92 13.84 14.5 13 14.5 12M12 2C6.5 2 2 6.5 2 12C2 15.06 3.38 17.8 5.54 19.63L6.61 18.57C4.71 17 3.5 14.64 3.5 12C3.5 7.31 7.31 3.5 12 3.5C16.69 3.5 20.5 7.31 20.5 12C20.5 14.64 19.29 17 17.39 18.57L18.46 19.63C20.62 17.79 22 15.06 22 12C22 6.5 17.5 2 12 2M19 12C19 8.13 15.87 5 12 5C8.13 5 5 8.13 5 12C5 14.23 6.05 16.22 7.68 17.5L8.75 16.43C7.39 15.42 6.5 13.82 6.5 12C6.5 8.97 8.97 6.5 12 6.5C15.03 6.5 17.5 8.97 17.5 12C17.5 13.82 16.61 15.42 15.25 16.43L16.33 17.5C17.95 16.22 19 14.23 19 12M6 22H18L12 16L6 22Z",Z="M6.03 12.03L8.03 15.5L5.5 18.68L2 12.62L6.03 12.03M17 18V15.29C17.88 14.9 18.5 14.03 18.5 13C18.5 12.43 18.3 11.9 17.97 11.5L19.94 10.35C20.95 9.76 21.3 8.47 20.71 7.46L19.33 5.06C18.74 4.05 17.45 3.7 16.44 4.28L8.31 9C7.36 9.53 7.03 10.75 7.58 11.71L9.08 14.31C9.63 15.26 10.86 15.59 11.81 15.04L13.69 13.96C13.94 14.55 14.41 15.03 15 15.29V18C15 19.1 15.9 20 17 20H22V18H17Z",o="M20.84 22.73L18.11 20H17C15.9 20 15 19.1 15 18V16.89L12.66 14.55L11.81 15.04C10.86 15.59 9.63 15.26 9.08 14.31L7.58 11.71C7.18 11 7.25 10.18 7.68 9.57L1.11 3L2.39 1.73L22.11 21.46L20.84 22.73M18.5 13C18.5 12.43 18.3 11.9 17.97 11.5L19.94 10.35C20.95 9.76 21.3 8.47 20.71 7.46L19.33 5.06C18.74 4.05 17.45 3.7 16.44 4.28L10.77 7.57L17.86 14.66C18.26 14.22 18.5 13.64 18.5 13M2 12.62L5.5 18.68L8.03 15.5L6.03 12.03L2 12.62Z",t="M21,7L9,19L3.5,13.5L4.91,12.09L9,16.17L19.59,5.59L21,7Z",l="M12 2C6.5 2 2 6.5 2 12S6.5 22 12 22 22 17.5 22 12 17.5 2 12 2M10 17L5 12L6.41 10.59L10 14.17L17.59 6.58L19 8L10 17Z",n="M19,3H5A2,2 0 0,0 3,5V19A2,2 0 0,0 5,21H19A2,2 0 0,0 21,19V5A2,2 0 0,0 19,3M19,19H5V5H19V19M17,17H7V7H17V17Z",c="M7.41,8.58L12,13.17L16.59,8.58L18,10L12,16L6,10L7.41,8.58Z",u="M15.41,16.58L10.83,12L15.41,7.41L14,6L8,12L14,18L15.41,16.58Z",h="M8.59,16.58L13.17,12L8.59,7.41L10,6L16,12L10,18L8.59,16.58Z",f="M7.41,15.41L12,10.83L16.59,15.41L18,14L12,8L6,14L7.41,15.41Z",S="M19,6.41L17.59,5L12,10.59L6.41,5L5,6.41L10.59,12L5,17.59L6.41,19L12,13.41L17.59,19L19,17.59L13.41,12L19,6.41Z",O="M12,2C17.53,2 22,6.47 22,12C22,17.53 17.53,22 12,22C6.47,22 2,17.53 2,12C2,6.47 6.47,2 12,2M15.59,7L12,10.59L8.41,7L7,8.41L10.59,12L7,15.59L8.41,17L12,13.41L15.59,17L17,15.59L13.41,12L17,8.41L15.59,7Z",g="M6.5 20Q4.22 20 2.61 18.43 1 16.85 1 14.58 1 12.63 2.17 11.1 3.35 9.57 5.25 9.15 5.88 6.85 7.75 5.43 9.63 4 12 4 14.93 4 16.96 6.04 19 8.07 19 11 20.73 11.2 21.86 12.5 23 13.78 23 15.5 23 17.38 21.69 18.69 20.38 20 18.5 20Z",p="M11 20H6.5Q4.22 20 2.61 18.43 1 16.85 1 14.58 1 12.63 2.17 11.1 3.35 9.57 5.25 9.15 5.88 6.85 7.75 5.43 9.63 4 12 4 14.93 4 16.96 6.04 19 8.07 19 11 20.73 11.2 21.86 12.5 23 13.78 23 15.5 23 17.38 21.69 18.69 20.38 20 18.5 20H13V12.85L14.6 14.4L16 13L12 9L8 13L9.4 14.4L11 12.85Z",P="M12,15.5A3.5,3.5 0 0,1 8.5,12A3.5,3.5 0 0,1 12,8.5A3.5,3.5 0 0,1 15.5,12A3.5,3.5 0 0,1 12,15.5M19.43,12.97C19.47,12.65 19.5,12.33 19.5,12C19.5,11.67 19.47,11.34 19.43,11L21.54,9.37C21.73,9.22 21.78,8.95 21.66,8.73L19.66,5.27C19.54,5.05 19.27,4.96 19.05,5.05L16.56,6.05C16.04,5.66 15.5,5.32 14.87,5.07L14.5,2.42C14.46,2.18 14.25,2 14,2H10C9.75,2 9.54,2.18 9.5,2.42L9.13,5.07C8.5,5.32 7.96,5.66 7.44,6.05L4.95,5.05C4.73,4.96 4.46,5.05 4.34,5.27L2.34,8.73C2.21,8.95 2.27,9.22 2.46,9.37L4.57,11C4.53,11.34 4.5,11.67 4.5,12C4.5,12.33 4.53,12.65 4.57,12.97L2.46,14.63C2.27,14.78 2.21,15.05 2.34,15.27L4.34,18.73C4.46,18.95 4.73,19.03 4.95,18.95L7.44,17.94C7.96,18.34 8.5,18.68 9.13,18.93L9.5,21.58C9.54,21.82 9.75,22 10,22H14C14.25,22 14.46,21.82 14.5,21.58L14.87,18.93C15.5,18.67 16.04,18.34 16.56,17.94L19.05,18.95C19.27,19.03 19.54,18.95 19.66,18.73L21.66,15.27C21.78,15.05 21.73,14.78 21.54,14.63L19.43,12.97Z",R="M12,8A4,4 0 0,1 16,12A4,4 0 0,1 12,16A4,4 0 0,1 8,12A4,4 0 0,1 12,8M12,10A2,2 0 0,0 10,12A2,2 0 0,0 12,14A2,2 0 0,0 14,12A2,2 0 0,0 12,10M10,22C9.75,22 9.54,21.82 9.5,21.58L9.13,18.93C8.5,18.68 7.96,18.34 7.44,17.94L4.95,18.95C4.73,19.03 4.46,18.95 4.34,18.73L2.34,15.27C2.21,15.05 2.27,14.78 2.46,14.63L4.57,12.97L4.5,12L4.57,11L2.46,9.37C2.27,9.22 2.21,8.95 2.34,8.73L4.34,5.27C4.46,5.05 4.73,4.96 4.95,5.05L7.44,6.05C7.96,5.66 8.5,5.32 9.13,5.07L9.5,2.42C9.54,2.18 9.75,2 10,2H14C14.25,2 14.46,2.18 14.5,2.42L14.87,5.07C15.5,5.32 16.04,5.66 16.56,6.05L19.05,5.05C19.27,4.96 19.54,5.05 19.66,5.27L21.66,8.73C21.79,8.95 21.73,9.22 21.54,9.37L19.43,11L19.5,12L19.43,13L21.54,14.63C21.73,14.78 21.79,15.05 21.66,15.27L19.66,18.73C19.54,18.95 19.27,19.04 19.05,18.95L16.56,17.95C16.04,18.34 15.5,18.68 14.87,18.93L14.5,21.58C14.46,21.82 14.25,22 14,22H10M11.25,4L10.88,6.61C9.68,6.86 8.62,7.5 7.85,8.39L5.44,7.35L4.69,8.65L6.8,10.2C6.4,11.37 6.4,12.64 6.8,13.8L4.68,15.36L5.43,16.66L7.86,15.62C8.63,16.5 9.68,17.14 10.87,17.38L11.24,20H12.76L13.13,17.39C14.32,17.14 15.37,16.5 16.14,15.62L18.57,16.66L19.32,15.36L17.2,13.81C17.6,12.64 17.6,11.37 17.2,10.2L19.31,8.65L18.56,7.35L16.15,8.39C15.38,7.5 14.32,6.86 13.12,6.62L12.75,4H11.25Z",k="M20,19V7H4V19H20M20,3A2,2 0 0,1 22,5V19A2,2 0 0,1 20,21H4A2,2 0 0,1 2,19V5C2,3.89 2.9,3 4,3H20M13,17V15H18V17H13M9.58,13L5.57,9H8.4L11.7,12.3C12.09,12.69 12.09,13.33 11.7,13.72L8.42,17H5.59L9.58,13Z",w="M19,4H15.5L14.5,3H9.5L8.5,4H5V6H19M6,19A2,2 0 0,0 8,21H16A2,2 0 0,0 18,19V7H6V19Z",y="M20.37,8.91L19.37,10.64L7.24,3.64L8.24,1.91L11.28,3.66L12.64,3.29L16.97,5.79L17.34,7.16L20.37,8.91M6,19V7H11.07L18,11V19A2,2 0 0,1 16,21H8A2,2 0 0,1 6,19Z",B="M16,12A2,2 0 0,1 18,10A2,2 0 0,1 20,12A2,2 0 0,1 18,14A2,2 0 0,1 16,12M10,12A2,2 0 0,1 12,10A2,2 0 0,1 14,12A2,2 0 0,1 12,14A2,2 0 0,1 10,12M4,12A2,2 0 0,1 6,10A2,2 0 0,1 8,12A2,2 0 0,1 6,14A2,2 0 0,1 4,12Z",D="M12,16A2,2 0 0,1 14,18A2,2 0 0,1 12,20A2,2 0 0,1 10,18A2,2 0 0,1 12,16M12,10A2,2 0 0,1 14,12A2,2 0 0,1 12,14A2,2 0 0,1 10,12A2,2 0 0,1 12,10M12,4A2,2 0 0,1 14,6A2,2 0 0,1 12,8A2,2 0 0,1 10,6A2,2 0 0,1 12,4Z",b="M5,20H19V18H5M19,9H15V3H9V9H5L12,16L19,9Z",E="M9,3H11V5H9V3M13,3H15V5H13V3M9,7H11V9H9V7M13,7H15V9H13V7M9,11H11V13H9V11M13,11H15V13H13V11M9,15H11V17H9V15M13,15H15V17H13V15M9,19H11V21H9V19M13,19H15V21H13V19Z",U="M2,5.27L3.28,4L20,20.72L18.73,22L15.65,18.92C14.5,19.3 13.28,19.5 12,19.5C7,19.5 2.73,16.39 1,12C1.69,10.24 2.79,8.69 4.19,7.46L2,5.27M12,9A3,3 0 0,1 15,12C15,12.35 14.94,12.69 14.83,13L11,9.17C11.31,9.06 11.65,9 12,9M12,4.5C17,4.5 21.27,7.61 23,12C22.18,14.08 20.79,15.88 19,17.19L17.58,15.76C18.94,14.82 20.06,13.54 20.82,12C19.17,8.64 15.76,6.5 12,6.5C10.91,6.5 9.84,6.68 8.84,7L7.3,5.47C8.74,4.85 10.33,4.5 12,4.5M3.18,12C4.83,15.36 8.24,17.5 12,17.5C12.69,17.5 13.37,17.43 14,17.29L11.72,15C10.29,14.85 9.15,13.71 9,12.28L5.6,8.87C4.61,9.72 3.78,10.78 3.18,12Z",x="M12,9A3,3 0 0,1 15,12A3,3 0 0,1 12,15A3,3 0 0,1 9,12A3,3 0 0,1 12,9M12,4.5C17,4.5 21.27,7.61 23,12C21.27,16.39 17,19.5 12,19.5C7,19.5 2.73,16.39 1,12C2.73,7.61 7,4.5 12,4.5M3.18,12C4.83,15.36 8.24,17.5 12,17.5C15.76,17.5 19.17,15.36 20.82,12C19.17,8.64 15.76,6.5 12,6.5C8.24,6.5 4.83,8.64 3.18,12Z",I="M10,12V22H8V14H6V12H10M18,14V20C18,21.11 17.11,22 16,22H14A2,2 0 0,1 12,20V14A2,2 0 0,1 14,12H16C17.11,12 18,12.9 18,14M14,14V20H16V14H14M11.5,3C14.15,3 16.55,4 18.4,5.6L21,3V10H14L16.62,7.38C15.23,6.22 13.46,5.5 11.5,5.5C7.96,5.5 4.95,7.81 3.9,11L1.53,10.22C2.92,6.03 6.85,3 11.5,3Z",T="M5,5H10V7H7V10H5V5M14,5H19V10H17V7H14V5M17,14H19V19H14V17H17V14M10,17V19H5V14H7V17H10Z",z="M14,14H19V16H16V19H14V14M5,14H10V19H8V16H5V14M8,5H10V10H5V8H8V5M19,8V10H14V5H16V8H19Z",F="M12,2A10,10 0 0,0 2,12C2,16.42 4.87,20.17 8.84,21.5C9.34,21.58 9.5,21.27 9.5,21C9.5,20.77 9.5,20.14 9.5,19.31C6.73,19.91 6.14,17.97 6.14,17.97C5.68,16.81 5.03,16.5 5.03,16.5C4.12,15.88 5.1,15.9 5.1,15.9C6.1,15.97 6.63,16.93 6.63,16.93C7.5,18.45 8.97,18 9.54,17.76C9.63,17.11 9.89,16.67 10.17,16.42C7.95,16.17 5.62,15.31 5.62,11.5C5.62,10.39 6,9.5 6.65,8.79C6.55,8.54 6.2,7.5 6.75,6.15C6.75,6.15 7.59,5.88 9.5,7.17C10.29,6.95 11.15,6.84 12,6.84C12.85,6.84 13.71,6.95 14.5,7.17C16.41,5.88 17.25,6.15 17.25,6.15C17.8,7.5 17.45,8.54 17.35,8.79C18,9.5 18.38,10.39 18.38,11.5C18.38,15.32 16.04,16.16 13.81,16.41C14.17,16.72 14.5,17.33 14.5,18.26C14.5,19.6 14.5,20.68 14.5,21C14.5,21.27 14.66,21.59 15.17,21.5C19.14,20.16 22,16.42 22,12A10,10 0 0,0 12,2Z",G="M4,2H20A2,2 0 0,1 22,4V20A2,2 0 0,1 20,22H4C2.92,22 2,21.1 2,20V4A2,2 0 0,1 4,2M4,4V11H11V4H4M4,20H11V13H4V20M20,20V13H13V20H20M20,4H13V11H20V4Z",W="M22,16V4A2,2 0 0,0 20,2H8A2,2 0 0,0 6,4V16A2,2 0 0,0 8,18H20A2,2 0 0,0 22,16M11,12L13.03,14.71L16,11L20,16H8M2,6V20A2,2 0 0,0 4,22H18V20H4V6",N="M13,9H11V7H13M13,17H11V11H13M12,2A10,10 0 0,0 2,12A10,10 0 0,0 12,22A10,10 0 0,0 22,12A10,10 0 0,0 12,2Z",Q="M12,2C9.76,2 7.78,3.05 6.5,4.68L16.31,14.5C17.94,13.21 19,11.24 19,9A7,7 0 0,0 12,2M3.28,4L2,5.27L5.04,8.3C5,8.53 5,8.76 5,9C5,11.38 6.19,13.47 8,14.74V17A1,1 0 0,0 9,18H14.73L18.73,22L20,20.72L3.28,4M9,20V21A1,1 0 0,0 10,22H14A1,1 0 0,0 15,21V20H9Z",j="M12,6A6,6 0 0,1 18,12C18,14.22 16.79,16.16 15,17.2V19A1,1 0 0,1 14,20H10A1,1 0 0,1 9,19V17.2C7.21,16.16 6,14.22 6,12A6,6 0 0,1 12,6M14,21V22A1,1 0 0,1 13,23H11A1,1 0 0,1 10,22V21H14M20,11H23V13H20V11M1,11H4V13H1V11M13,1V4H11V1H13M4.92,3.5L7.05,5.64L5.63,7.05L3.5,4.93L4.92,3.5M16.95,5.63L19.07,3.5L20.5,4.93L18.37,7.05L16.95,5.63Z",q="M22 12L18 8V11H10V13H18V16M20 18A10 10 0 1 1 20 6H17.27A8 8 0 1 0 17.27 18Z",J="M12,17A2,2 0 0,0 14,15C14,13.89 13.1,13 12,13A2,2 0 0,0 10,15A2,2 0 0,0 12,17M18,8A2,2 0 0,1 20,10V20A2,2 0 0,1 18,22H6A2,2 0 0,1 4,20V10C4,8.89 4.9,8 6,8H7V6A5,5 0 0,1 12,1A5,5 0 0,1 17,6V8H18M12,3A3,3 0 0,0 9,6V8H15V6A3,3 0 0,0 12,3Z",K="M18,8A2,2 0 0,1 20,10V20A2,2 0 0,1 18,22H6C4.89,22 4,21.1 4,20V10A2,2 0 0,1 6,8H15V6A3,3 0 0,0 12,3A3,3 0 0,0 9,6H7A5,5 0 0,1 12,1A5,5 0 0,1 17,6V8H18M12,17A2,2 0 0,0 14,15A2,2 0 0,0 12,13A2,2 0 0,0 10,15A2,2 0 0,0 12,17Z",X="M17 7L15.59 8.41L18.17 11H8V13H18.17L15.59 15.58L17 17L22 12M4 5H12V3H4C2.9 3 2 3.9 2 5V19C2 20.1 2.9 21 4 21H12V19H4V5Z",Y="M15.5,14H14.71L14.43,13.73C15.41,12.59 16,11.11 16,9.5A6.5,6.5 0 0,0 9.5,3A6.5,6.5 0 0,0 3,9.5A6.5,6.5 0 0,0 9.5,16C11.11,16 12.59,15.41 13.73,14.43L14,14.71V15.5L19,20.5L20.5,19L15.5,14M9.5,14C7,14 5,12 5,9.5C5,7 7,5 9.5,5C12,5 14,7 14,9.5C14,12 12,14 9.5,14M7,9H12V10H7V9Z",_="M15.5,14L20.5,19L19,20.5L14,15.5V14.71L13.73,14.43C12.59,15.41 11.11,16 9.5,16A6.5,6.5 0 0,1 3,9.5A6.5,6.5 0 0,1 9.5,3A6.5,6.5 0 0,1 16,9.5C16,11.11 15.41,12.59 14.43,13.73L14.71,14H15.5M9.5,14C12,14 14,12 14,9.5C14,7 12,5 9.5,5C7,5 5,7 5,9.5C5,12 7,14 9.5,14M12,10H10V12H9V10H7V9H9V7H10V9H12V10Z",$="M12,2A3,3 0 0,1 15,5V11A3,3 0 0,1 12,14A3,3 0 0,1 9,11V5A3,3 0 0,1 12,2M19,11C19,14.53 16.39,17.44 13,17.93V21H11V17.93C7.61,17.44 5,14.53 5,11H7A5,5 0 0,0 12,16A5,5 0 0,0 17,11H19Z",H1="M19,11C19,12.19 18.66,13.3 18.1,14.28L16.87,13.05C17.14,12.43 17.3,11.74 17.3,11H19M15,11.16L9,5.18V5A3,3 0 0,1 12,2A3,3 0 0,1 15,5V11L15,11.16M4.27,3L21,19.73L19.73,21L15.54,16.81C14.77,17.27 13.91,17.58 13,17.72V21H11V17.72C7.72,17.23 5,14.41 5,11H6.7C6.7,14 9.24,16.1 12,16.1C12.81,16.1 13.6,15.91 14.31,15.58L12.65,13.92L12,14A3,3 0 0,1 9,11V10.28L3,4.27L4.27,3Z",V1="M19,13H5V11H19V13Z",L1="M21,16V4H3V16H21M21,2A2,2 0 0,1 23,4V16A2,2 0 0,1 21,18H14V20H16V22H8V20H10V18H3C1.89,18 1,17.1 1,16V4C1,2.89 1.89,2 3,2H21M5,6H14V11H5V6M15,6H19V8H15V6M19,9V14H15V9H19M5,12H9V14H5V12M10,12H14V14H10V12Z",C1="M2 12A10 10 0 0 0 15 21.54A10 10 0 0 1 15 2.46A10 10 0 0 0 2 12Z",M1="M21 10V9L15 3H5C3.89 3 3 3.89 3 5V19C3 20.11 3.9 21 5 21H11V19.13L19.39 10.74C19.83 10.3 20.39 10.06 21 10M14 4.5L19.5 10H14V4.5M22.85 14.19L21.87 15.17L19.83 13.13L20.81 12.15C21 11.95 21.33 11.95 21.53 12.15L22.85 13.47C23.05 13.67 23.05 14 22.85 14.19M19.13 13.83L21.17 15.87L15.04 22H13V19.96L19.13 13.83Z",a1="M14,3V5H17.59L7.76,14.83L9.17,16.24L19,6.41V10H21V3M19,19H5V5H12V3H5C3.89,3 3,3.9 3,5V19A2,2 0 0,0 5,21H19A2,2 0 0,0 21,19V12H19V19Z",A1="M14,19H18V5H14M6,19H10V5H6V19Z",i1="M20.71,7.04C21.1,6.65 21.1,6 20.71,5.63L18.37,3.29C18,2.9 17.35,2.9 16.96,3.29L15.12,5.12L18.87,8.87M3,17.25V21H6.75L17.81,9.93L14.06,6.18L3,17.25Z",r1="M3 17.25V21H6.75L17.81 9.93L14.06 6.18L3 17.25M22.61 18.36L18.36 22.61L13.16 17.41L14.93 15.64L15.93 16.64L18.4 14.16L19.82 15.58L18.36 17L19.42 18L20.84 16.6L22.61 18.36M6.61 10.83L1.39 5.64L5.64 1.39L7.4 3.16L4.93 5.64L6 6.7L8.46 4.22L9.88 5.64L8.46 7.05L9.46 8.05L6.61 10.83M20.71 7C21.1 6.61 21.1 6 20.71 5.59L18.37 3.29C18 2.9 17.35 2.9 16.96 3.29L15.12 5.12L18.87 8.87L20.71 7Z",s1="M19,11H11V17H19V11M23,19V5C23,3.88 22.1,3 21,3H3A2,2 0 0,0 1,5V19A2,2 0 0,0 3,21H21A2,2 0 0,0 23,19M21,19H3V4.97H21V19Z",d1="M8,5.14V19.14L19,12.14L8,5.14Z",e1="M10,16.5V7.5L16,12M12,2A10,10 0 0,0 2,12A10,10 0 0,0 12,22A10,10 0 0,0 22,12A10,10 0 0,0 12,2Z",m1="M19,13H13V19H11V13H5V11H11V5H13V11H19V13Z",v1="M17,13H13V17H11V13H7V11H11V7H13V11H17M12,2A10,10 0 0,0 2,12A10,10 0 0,0 12,22A10,10 0 0,0 22,12A10,10 0 0,0 12,2Z",Z1="M16.56,5.44L15.11,6.89C16.84,7.94 18,9.83 18,12A6,6 0 0,1 12,18A6,6 0 0,1 6,12C6,9.83 7.16,7.94 8.88,6.88L7.44,5.44C5.36,6.88 4,9.28 4,12A8,8 0 0,0 12,20A8,8 0 0,0 20,12C20,9.28 18.64,6.88 16.56,5.44M13,3H11V13H13",o1="M20.5,11H19V7C19,5.89 18.1,5 17,5H13V3.5A2.5,2.5 0 0,0 10.5,1A2.5,2.5 0 0,0 8,3.5V5H4A2,2 0 0,0 2,7V10.8H3.5C5,10.8 6.2,12 6.2,13.5C6.2,15 5,16.2 3.5,16.2H2V20A2,2 0 0,0 4,22H7.8V20.5C7.8,19 9,17.8 10.5,17.8C12,17.8 13.2,19 13.2,20.5V22H17A2,2 0 0,0 19,20V16H20.5A2.5,2.5 0 0,0 23,13.5A2.5,2.5 0 0,0 20.5,11Z",t1="M4,6V19H20V6H4Z",l1="M4,6V19H20V6H4M18,17H6V8H18V17Z",n1="M17.65,6.35C16.2,4.9 14.21,4 12,4A8,8 0 0,0 4,12A8,8 0 0,0 12,20C15.73,20 18.84,17.45 19.73,14H17.65C16.83,16.33 14.61,18 12,18A6,6 0 0,1 6,12A6,6 0 0,1 12,6C13.66,6 15.14,6.69 16.22,7.78L13,11H20V4L17.65,6.35Z",c1="M2 12C2 16.97 6.03 21 11 21C13.39 21 15.68 20.06 17.4 18.4L15.9 16.9C14.63 18.25 12.86 19 11 19C4.76 19 1.64 11.46 6.05 7.05C10.46 2.64 18 5.77 18 12H15L19 16H19.1L23 12H20C20 7.03 15.97 3 11 3C6.03 3 2 7.03 2 12Z",u1="M12,4C14.1,4 16.1,4.8 17.6,6.3C20.7,9.4 20.7,14.5 17.6,17.6C15.8,19.5 13.3,20.2 10.9,19.9L11.4,17.9C13.1,18.1 14.9,17.5 16.2,16.2C18.5,13.9 18.5,10.1 16.2,7.7C15.1,6.6 13.5,6 12,6V10.6L7,5.6L12,0.6V4M6.3,17.6C3.7,15 3.3,11 5.1,7.9L6.6,9.4C5.5,11.6 5.9,14.4 7.8,16.2C8.3,16.7 8.9,17.1 9.6,17.4L9,19.4C8,19 7.1,18.4 6.3,17.6Z",h1="M12.5,3C17.15,3 21.08,6.03 22.47,10.22L20.1,11C19.05,7.81 16.04,5.5 12.5,5.5C10.54,5.5 8.77,6.22 7.38,7.38L10,10H3V3L5.6,5.6C7.45,4 9.85,3 12.5,3M10,12V22H8V14H6V12H10M18,14V20C18,21.11 17.11,22 16,22H14A2,2 0 0,1 12,20V14A2,2 0 0,1 14,12H16C17.11,12 18,12.9 18,14M14,14V20H16V14H14Z",f1="M18 16.08C17.24 16.08 16.56 16.38 16.04 16.85L8.91 12.7C8.96 12.47 9 12.24 9 12S8.96 11.53 8.91 11.3L15.96 7.19C16.5 7.69 17.21 8 18 8C19.66 8 21 6.66 21 5S19.66 2 18 2 15 3.34 15 5C15 5.24 15.04 5.47 15.09 5.7L8.04 9.81C7.5 9.31 6.79 9 6 9C4.34 9 3 10.34 3 12S4.34 15 6 15C6.79 15 7.5 14.69 8.04 14.19L15.16 18.34C15.11 18.55 15.08 18.77 15.08 19C15.08 20.61 16.39 21.91 18 21.91S20.92 20.61 20.92 19C20.92 17.39 19.61 16.08 18 16.08M18 4C18.55 4 19 4.45 19 5S18.55 6 18 6 17 5.55 17 5 17.45 4 18 4M6 13C5.45 13 5 12.55 5 12S5.45 11 6 11 7 11.45 7 12 6.55 13 6 13M18 20C17.45 20 17 19.55 17 19S17.45 18 18 18 19 18.45 19 19 18.55 20 18 20Z",S1="M12,2A10,10 0 0,0 2,12A10,10 0 0,0 12,22A10,10 0 0,0 22,12A10,10 0 0,0 12,2M9,9H15V15H9",O1="M20 2H4C2.9 2 2 2.9 2 4V16C2 17.11 2.9 18 4 18H8L12 22L16 18H20C21.11 18 22 17.11 22 16V4C22 2.9 21.11 2 20 2M10.46 14L6.96 10.5L8.37 9.08L10.46 11.17L15.64 6L17.05 7.41L10.46 14Z",g1="M4,2H20A2,2 0 0,1 22,4V16A2,2 0 0,1 20,18H16L12,22L8,18H4A2,2 0 0,1 2,16V4A2,2 0 0,1 4,2M11,6V9H8V11H11V14H13V11H16V9H13V6H11Z",p1="M9,3V4H4V6H5V19A2,2 0 0,0 7,21H17A2,2 0 0,0 19,19V6H20V4H15V3H9M9,8H11V17H9V8M13,8H15V17H13V8Z",P1="M3,17V19H9V17H3M3,5V7H13V5H3M13,21V19H21V17H13V15H11V21H13M7,9V11H3V13H7V15H9V9H7M21,13V11H11V13H21M15,9H17V7H21V5H17V3H15V9Z",R1="M8 13C6.14 13 4.59 14.28 4.14 16H2V18H4.14C4.59 19.72 6.14 21 8 21S11.41 19.72 11.86 18H22V16H11.86C11.41 14.28 9.86 13 8 13M8 19C6.9 19 6 18.1 6 17C6 15.9 6.9 15 8 15S10 15.9 10 17C10 18.1 9.1 19 8 19M19.86 6C19.41 4.28 17.86 3 16 3S12.59 4.28 12.14 6H2V8H12.14C12.59 9.72 14.14 11 16 11S19.41 9.72 19.86 8H22V6H19.86M16 9C14.9 9 14 8.1 14 7C14 5.9 14.9 5 16 5S18 5.9 18 7C18 8.1 17.1 9 16 9Z",k1="M12.5,8C9.85,8 7.45,9 5.6,10.6L2,7V16H11L7.38,12.38C8.77,11.22 10.54,10.5 12.5,10.5C16.04,10.5 19.05,12.81 20.1,16L22.47,15.22C21.08,11.03 17.15,8 12.5,8Z",w1="M5.41,7.41L10,12L5.41,16.59L4,15.17L7.17,12L4,8.83L5.41,7.41M18.59,16.59L14,12L18.59,7.42L20,8.83L16.83,12L20,15.17L18.59,16.59Z",y1="M12,18.17L8.83,15L7.42,16.41L12,21L16.59,16.41L15.17,15M12,5.83L15.17,9L16.58,7.59L12,3L7.41,7.59L8.83,9L12,5.83Z",B1="M21,10.12H14.22L16.96,7.3C14.23,4.6 9.81,4.5 7.08,7.2C4.35,9.91 4.35,14.28 7.08,17C9.81,19.7 14.23,19.7 16.96,17C18.32,15.65 19,14.08 19,12.1H21C21,14.08 20.12,16.65 18.36,18.39C14.85,21.87 9.15,21.87 5.64,18.39C2.14,14.92 2.11,9.28 5.62,5.81C9.13,2.34 14.76,2.34 18.27,5.81L21,3V10.12M12.5,8V12.25L16,14.33L15.28,15.54L11,13V8H12.5Z",D1="M3.14,1A2.14,2.14 0 0,0 1,3.14V5H3V3H5V1H3.14M7,1V3H10V1H7M12,1V3H14V5H16V3.14C16,1.96 15.04,1 13.86,1H12M1,7V10H3V7H1M9,7C7.89,7 7,7.89 7,9C7,11.33 7,16 7,16C7,16 11.57,16 13.86,16A2.14,2.14 0 0,0 16,13.86C16,11.57 16,7 16,7C16,7 11.33,7 9,7M18,7V9H20V11H22V9C22,7.89 21.11,7 20,7H18M9,9H14V14H9V9M1,12V13.86C1,15.04 1.96,16 3.14,16H5V14H3V12H1M20,13V16H22V13H20M7,18V20C7,21.11 7.89,22 9,22H11V20H9V18H7M20,18V20H18V22H20C21.11,22 22,21.11 22,20V18H20M13,20V22H16V20H13Z",b1="M2,4H8V6H16V4H22V10H20V14H22V20H16V18H8V20H2V14H4V10H2V4M16,10V8H8V10H6V14H8V16H16V14H18V10H16M4,6V8H6V6H4M18,6V8H20V6H18M4,16V18H6V16H4M18,16V18H20V16H18Z",E1="M13 3V11H21V3H13M3 21H11V13H3V21M3 3V11H11V3H3M13 16H16V13H18V16H21V18H18V21H16V18H13V16Z",U1="M14,3.23V5.29C16.89,6.15 19,8.83 19,12C19,15.17 16.89,17.84 14,18.7V20.77C18,19.86 21,16.28 21,12C21,7.72 18,4.14 14,3.23M16.5,12C16.5,10.23 15.5,8.71 14,7.97V16C15.5,15.29 16.5,13.76 16.5,12M3,9V15H7L12,20V4L7,9H3Z",x1="M12,4L9.91,6.09L12,8.18M4.27,3L3,4.27L7.73,9H3V15H7L12,20V13.27L16.25,17.53C15.58,18.04 14.83,18.46 14,18.7V20.77C15.38,20.45 16.63,19.82 17.68,18.96L19.73,21L21,19.73L12,10.73M19,12C19,12.94 18.8,13.82 18.46,14.64L19.97,16.15C20.62,14.91 21,13.5 21,12C21,7.72 18,4.14 14,3.23V5.29C16.89,6.15 19,8.83 19,12M16.5,12C16.5,10.23 15.5,8.71 14,7.97V10.18L16.45,12.63C16.5,12.43 16.5,12.21 16.5,12Z",I1="M3.55 19.09L4.96 20.5L6.76 18.71L5.34 17.29M12 6C8.69 6 6 8.69 6 12S8.69 18 12 18 18 15.31 18 12C18 8.68 15.31 6 12 6M20 13H23V11H20M17.24 18.71L19.04 20.5L20.45 19.09L18.66 17.29M20.45 5L19.04 3.6L17.24 5.39L18.66 6.81M13 1H11V4H13M6.76 5.39L4.96 3.6L3.55 5L5.34 6.81L6.76 5.39M1 13H4V11H1M13 20H11V23H13",T1="M2.28,3L1,4.27L2.47,5.74C2.04,6 1.61,6.29 1.2,6.6L3,9C3.53,8.6 4.08,8.25 4.66,7.93L6.89,10.16C6.15,10.5 5.44,10.91 4.8,11.4L6.6,13.8C7.38,13.22 8.26,12.77 9.2,12.47L11.75,15C10.5,15.07 9.34,15.5 8.4,16.2L12,21L14.46,17.73L17.74,21L19,19.72M12,3C9.85,3 7.8,3.38 5.9,4.07L8.29,6.47C9.5,6.16 10.72,6 12,6C15.38,6 18.5,7.11 21,9L22.8,6.6C19.79,4.34 16.06,3 12,3M12,9C11.62,9 11.25,9 10.88,9.05L14.07,12.25C15.29,12.53 16.43,13.07 17.4,13.8L19.2,11.4C17.2,9.89 14.7,9 12,9Z";export{b as $,y1 as A,T1 as B,u as C,f as D,Y as E,_ as F,h as G,$ as H,E as I,l as J,m1 as K,c as L,J as M,K as N,x1 as O,U1 as P,z as Q,T as R,w as S,i1 as T,m as U,E1 as V,N as W,O as X,s as Y,t as Z,D as _,U as a,y as a0,p1 as a1,k1 as a2,e as a3,o as a4,t1 as a5,l1 as a6,D1 as a7,n as a8,R as a9,S1 as aA,q as aB,L as aC,p as aD,R1 as aa,g as ab,j as ac,Q as ad,a1 as ae,f1 as af,d as ag,r as ah,H as ai,b1 as aj,O1 as ak,g1 as al,n1 as am,h1 as an,A1 as ao,d1 as ap,I as aq,H1 as ar,v as as,M as at,s1 as au,a as av,u1 as aw,B as ax,B1 as ay,e1 as az,F as b,Z as c,G as d,v1 as e,W as f,M1 as g,k as h,o1 as i,L1 as j,P as k,V as l,x as m,r1 as n,C as o,A as p,P1 as q,Z1 as r,S as s,i as t,C1 as u,I1 as v,c1 as w,X as x,V1 as y,w1 as z};
@@ -0,0 +1 @@
1
+ var le=s=>{throw TypeError(s)};var Gt=(s,t,e)=>t.has(s)||le("Cannot "+e);var r=(s,t,e)=>(Gt(s,t,"read from private field"),e?e.call(s):t.get(s)),l=(s,t,e)=>t.has(s)?le("Cannot add the same private member more than once"):t instanceof WeakSet?t.add(s):t.set(s,e),h=(s,t,e,i)=>(Gt(s,t,"write to private field"),i?i.call(s,e):t.set(s,e),e),p=(s,t,e)=>(Gt(s,t,"access private method"),e);var Lt=(s,t,e,i)=>({set _(n){h(s,t,n,e)},get _(){return r(s,t,i)}});import{i as Me,u as Je,h as Xe,a as Ze,r as ts,n as es,c as Ae,s as Ie,w as vt,o as Ue,t as qe}from"./@vue.DD07jlOO.0.0.34-alpha.0.js";var It=class{constructor(){this.listeners=new Set,this.subscribe=this.subscribe.bind(this)}subscribe(s){return this.listeners.add(s),this.onSubscribe(),()=>{this.listeners.delete(s),this.onUnsubscribe()}}hasListeners(){return this.listeners.size>0}onSubscribe(){}onUnsubscribe(){}},pt=typeof window>"u"||"Deno"in globalThis;function L(){}function ss(s,t){return typeof s=="function"?s(t):s}function Bt(s){return typeof s=="number"&&s>=0&&s!==1/0}function Te(s,t){return Math.max(s+(t||0)-Date.now(),0)}function bt(s,t){return typeof s=="function"?s(t):s}function N(s,t){return typeof s=="function"?s(t):s}function fe(s,t){const{type:e="all",exact:i,fetchStatus:n,predicate:a,queryKey:o,stale:u}=s;if(o){if(i){if(t.queryHash!==oe(o,t.options))return!1}else if(!qt(t.queryKey,o))return!1}if(e!=="all"){const y=t.isActive();if(e==="active"&&!y||e==="inactive"&&y)return!1}return!(typeof u=="boolean"&&t.isStale()!==u||n&&n!==t.state.fetchStatus||a&&!a(t))}function de(s,t){const{exact:e,status:i,predicate:n,mutationKey:a}=s;if(a){if(!t.options.mutationKey)return!1;if(e){if(mt(t.options.mutationKey)!==mt(a))return!1}else if(!qt(t.options.mutationKey,a))return!1}return!(i&&t.state.status!==i||n&&!n(t))}function oe(s,t){return((t==null?void 0:t.queryKeyHashFn)||mt)(s)}function mt(s){return JSON.stringify(s,(t,e)=>Vt(e)?Object.keys(e).sort().reduce((i,n)=>(i[n]=e[n],i),{}):e)}function qt(s,t){return s===t?!0:typeof s!=typeof t?!1:s&&t&&typeof s=="object"&&typeof t=="object"?!Object.keys(t).some(e=>!qt(s[e],t[e])):!1}function je(s,t){if(s===t)return s;const e=ye(s)&&ye(t);if(e||Vt(s)&&Vt(t)){const i=e?s:Object.keys(s),n=i.length,a=e?t:Object.keys(t),o=a.length,u=e?[]:{};let y=0;for(let O=0;O<o;O++){const f=e?O:a[O];(!e&&i.includes(f)||e)&&s[f]===void 0&&t[f]===void 0?(u[f]=void 0,y++):(u[f]=je(s[f],t[f]),u[f]===s[f]&&s[f]!==void 0&&y++)}return n===o&&y===n?s:u}return t}function _t(s,t){if(!t||Object.keys(s).length!==Object.keys(t).length)return!1;for(const e in s)if(s[e]!==t[e])return!1;return!0}function ye(s){return Array.isArray(s)&&s.length===Object.keys(s).length}function Vt(s){if(!pe(s))return!1;const t=s.constructor;if(t===void 0)return!0;const e=t.prototype;return!(!pe(e)||!e.hasOwnProperty("isPrototypeOf")||Object.getPrototypeOf(s)!==Object.prototype)}function pe(s){return Object.prototype.toString.call(s)==="[object Object]"}function is(s){return new Promise(t=>{setTimeout(t,s)})}function zt(s,t,e){return typeof e.structuralSharing=="function"?e.structuralSharing(s,t):e.structuralSharing!==!1?je(s,t):t}function rs(s,t,e=0){const i=[...s,t];return e&&i.length>e?i.slice(1):i}function ns(s,t,e=0){const i=[t,...s];return e&&i.length>e?i.slice(0,-1):i}var xe=Symbol();function Ke(s,t){return!s.queryFn&&(t!=null&&t.initialPromise)?()=>t.initialPromise:!s.queryFn||s.queryFn===xe?()=>Promise.reject(new Error(`Missing queryFn: '${s.queryHash}'`)):s.queryFn}var ot,X,gt,Oe,as=(Oe=class extends It{constructor(){super();l(this,ot);l(this,X);l(this,gt);h(this,gt,t=>{if(!pt&&window.addEventListener){const e=()=>t();return window.addEventListener("visibilitychange",e,!1),()=>{window.removeEventListener("visibilitychange",e)}}})}onSubscribe(){r(this,X)||this.setEventListener(r(this,gt))}onUnsubscribe(){var t;this.hasListeners()||((t=r(this,X))==null||t.call(this),h(this,X,void 0))}setEventListener(t){var e;h(this,gt,t),(e=r(this,X))==null||e.call(this),h(this,X,t(i=>{typeof i=="boolean"?this.setFocused(i):this.onFocus()}))}setFocused(t){r(this,ot)!==t&&(h(this,ot,t),this.onFocus())}onFocus(){const t=this.isFocused();this.listeners.forEach(e=>{e(t)})}isFocused(){var t;return typeof r(this,ot)=="boolean"?r(this,ot):((t=globalThis.document)==null?void 0:t.visibilityState)!=="hidden"}},ot=new WeakMap,X=new WeakMap,gt=new WeakMap,Oe),he=new as,Ot,Z,Ct,Ce,us=(Ce=class extends It{constructor(){super();l(this,Ot,!0);l(this,Z);l(this,Ct);h(this,Ct,t=>{if(!pt&&window.addEventListener){const e=()=>t(!0),i=()=>t(!1);return window.addEventListener("online",e,!1),window.addEventListener("offline",i,!1),()=>{window.removeEventListener("online",e),window.removeEventListener("offline",i)}}})}onSubscribe(){r(this,Z)||this.setEventListener(r(this,Ct))}onUnsubscribe(){var t;this.hasListeners()||((t=r(this,Z))==null||t.call(this),h(this,Z,void 0))}setEventListener(t){var e;h(this,Ct,t),(e=r(this,Z))==null||e.call(this),h(this,Z,t(this.setOnline.bind(this)))}setOnline(t){r(this,Ot)!==t&&(h(this,Ot,t),this.listeners.forEach(i=>{i(t)}))}isOnline(){return r(this,Ot)}},Ot=new WeakMap,Z=new WeakMap,Ct=new WeakMap,Ce),Nt=new us;function Wt(){let s,t;const e=new Promise((n,a)=>{s=n,t=a});e.status="pending",e.catch(()=>{});function i(n){Object.assign(e,n),delete e.resolve,delete e.reject}return e.resolve=n=>{i({status:"fulfilled",value:n}),s(n)},e.reject=n=>{i({status:"rejected",reason:n}),t(n)},e}function os(s){return Math.min(1e3*2**s,3e4)}function Le(s){return(s??"online")==="online"?Nt.isOnline():!0}var ke=class extends Error{constructor(s){super("CancelledError"),this.revert=s==null?void 0:s.revert,this.silent=s==null?void 0:s.silent}};function $t(s){return s instanceof ke}function He(s){let t=!1,e=0,i=!1,n;const a=Wt(),o=m=>{var g;i||(C(new ke(m)),(g=s.abort)==null||g.call(s))},u=()=>{t=!0},y=()=>{t=!1},O=()=>he.isFocused()&&(s.networkMode==="always"||Nt.isOnline())&&s.canRun(),f=()=>Le(s.networkMode)&&s.canRun(),c=m=>{var g;i||(i=!0,(g=s.onSuccess)==null||g.call(s,m),n==null||n(),a.resolve(m))},C=m=>{var g;i||(i=!0,(g=s.onError)==null||g.call(s,m),n==null||n(),a.reject(m))},d=()=>new Promise(m=>{var g;n=F=>{(i||O())&&m(F)},(g=s.onPause)==null||g.call(s)}).then(()=>{var m;n=void 0,i||(m=s.onContinue)==null||m.call(s)}),S=()=>{if(i)return;let m;const g=e===0?s.initialPromise:void 0;try{m=g??s.fn()}catch(F){m=Promise.reject(F)}Promise.resolve(m).then(c).catch(F=>{var k;if(i)return;const D=s.retry??(pt?0:3),P=s.retryDelay??os,M=typeof P=="function"?P(e,F):P,j=D===!0||typeof D=="number"&&e<D||typeof D=="function"&&D(e,F);if(t||!j){C(F);return}e++,(k=s.onFail)==null||k.call(s,e,F),is(M).then(()=>O()?void 0:d()).then(()=>{t?C(F):S()})})};return{promise:a,cancel:o,continue:()=>(n==null||n(),a),cancelRetry:u,continueRetry:y,canStart:f,start:()=>(f()?S():d().then(S),a)}}function hs(){let s=[],t=0,e=u=>{u()},i=u=>{u()},n=u=>setTimeout(u,0);const a=u=>{t?s.push(u):n(()=>{e(u)})},o=()=>{const u=s;s=[],u.length&&n(()=>{i(()=>{u.forEach(y=>{e(y)})})})};return{batch:u=>{let y;t++;try{y=u()}finally{t--,t||o()}return y},batchCalls:u=>(...y)=>{a(()=>{u(...y)})},schedule:a,setNotifyFunction:u=>{e=u},setBatchNotifyFunction:u=>{i=u},setScheduler:u=>{n=u}}}var E=hs(),ht,we,_e=(we=class{constructor(){l(this,ht)}destroy(){this.clearGcTimeout()}scheduleGc(){this.clearGcTimeout(),Bt(this.gcTime)&&h(this,ht,setTimeout(()=>{this.optionalRemove()},this.gcTime))}updateGcTime(s){this.gcTime=Math.max(this.gcTime||0,s??(pt?1/0:5*60*1e3))}clearGcTimeout(){r(this,ht)&&(clearTimeout(r(this,ht)),h(this,ht,void 0))}},ht=new WeakMap,we),wt,Qt,K,A,Tt,ct,_,z,Qe,cs=(Qe=class extends _e{constructor(t){super();l(this,_);l(this,wt);l(this,Qt);l(this,K);l(this,A);l(this,Tt);l(this,ct);h(this,ct,!1),h(this,Tt,t.defaultOptions),this.setOptions(t.options),this.observers=[],h(this,K,t.cache),this.queryKey=t.queryKey,this.queryHash=t.queryHash,h(this,wt,ls(this.options)),this.state=t.state??r(this,wt),this.scheduleGc()}get meta(){return this.options.meta}get promise(){var t;return(t=r(this,A))==null?void 0:t.promise}setOptions(t){this.options={...r(this,Tt),...t},this.updateGcTime(this.options.gcTime)}optionalRemove(){!this.observers.length&&this.state.fetchStatus==="idle"&&r(this,K).remove(this)}setData(t,e){const i=zt(this.state.data,t,this.options);return p(this,_,z).call(this,{data:i,type:"success",dataUpdatedAt:e==null?void 0:e.updatedAt,manual:e==null?void 0:e.manual}),i}setState(t,e){p(this,_,z).call(this,{type:"setState",state:t,setStateOptions:e})}cancel(t){var i,n;const e=(i=r(this,A))==null?void 0:i.promise;return(n=r(this,A))==null||n.cancel(t),e?e.then(L).catch(L):Promise.resolve()}destroy(){super.destroy(),this.cancel({silent:!0})}reset(){this.destroy(),this.setState(r(this,wt))}isActive(){return this.observers.some(t=>N(t.options.enabled,this)!==!1)}isDisabled(){return this.getObserversCount()>0&&!this.isActive()}isStale(){return this.state.isInvalidated?!0:this.getObserversCount()>0?this.observers.some(t=>t.getCurrentResult().isStale):this.state.data===void 0}isStaleByTime(t=0){return this.state.isInvalidated||this.state.data===void 0||!Te(this.state.dataUpdatedAt,t)}onFocus(){var e;const t=this.observers.find(i=>i.shouldFetchOnWindowFocus());t==null||t.refetch({cancelRefetch:!1}),(e=r(this,A))==null||e.continue()}onOnline(){var e;const t=this.observers.find(i=>i.shouldFetchOnReconnect());t==null||t.refetch({cancelRefetch:!1}),(e=r(this,A))==null||e.continue()}addObserver(t){this.observers.includes(t)||(this.observers.push(t),this.clearGcTimeout(),r(this,K).notify({type:"observerAdded",query:this,observer:t}))}removeObserver(t){this.observers.includes(t)&&(this.observers=this.observers.filter(e=>e!==t),this.observers.length||(r(this,A)&&(r(this,ct)?r(this,A).cancel({revert:!0}):r(this,A).cancelRetry()),this.scheduleGc()),r(this,K).notify({type:"observerRemoved",query:this,observer:t}))}getObserversCount(){return this.observers.length}invalidate(){this.state.isInvalidated||p(this,_,z).call(this,{type:"invalidate"})}fetch(t,e){var y,O,f;if(this.state.fetchStatus!=="idle"){if(this.state.data!==void 0&&(e!=null&&e.cancelRefetch))this.cancel({silent:!0});else if(r(this,A))return r(this,A).continueRetry(),r(this,A).promise}if(t&&this.setOptions(t),!this.options.queryFn){const c=this.observers.find(C=>C.options.queryFn);c&&this.setOptions(c.options)}const i=new AbortController,n=c=>{Object.defineProperty(c,"signal",{enumerable:!0,get:()=>(h(this,ct,!0),i.signal)})},a=()=>{const c=Ke(this.options,e),C={queryKey:this.queryKey,meta:this.meta};return n(C),h(this,ct,!1),this.options.persister?this.options.persister(c,C,this):c(C)},o={fetchOptions:e,options:this.options,queryKey:this.queryKey,state:this.state,fetchFn:a};n(o),(y=this.options.behavior)==null||y.onFetch(o,this),h(this,Qt,this.state),(this.state.fetchStatus==="idle"||this.state.fetchMeta!==((O=o.fetchOptions)==null?void 0:O.meta))&&p(this,_,z).call(this,{type:"fetch",meta:(f=o.fetchOptions)==null?void 0:f.meta});const u=c=>{var C,d,S,m;$t(c)&&c.silent||p(this,_,z).call(this,{type:"error",error:c}),$t(c)||((d=(C=r(this,K).config).onError)==null||d.call(C,c,this),(m=(S=r(this,K).config).onSettled)==null||m.call(S,this.state.data,c,this)),this.isFetchingOptimistic||this.scheduleGc(),this.isFetchingOptimistic=!1};return h(this,A,He({initialPromise:e==null?void 0:e.initialPromise,fn:o.fetchFn,abort:i.abort.bind(i),onSuccess:c=>{var C,d,S,m;if(c===void 0){u(new Error(`${this.queryHash} data is undefined`));return}try{this.setData(c)}catch(g){u(g);return}(d=(C=r(this,K).config).onSuccess)==null||d.call(C,c,this),(m=(S=r(this,K).config).onSettled)==null||m.call(S,c,this.state.error,this),this.isFetchingOptimistic||this.scheduleGc(),this.isFetchingOptimistic=!1},onError:u,onFail:(c,C)=>{p(this,_,z).call(this,{type:"failed",failureCount:c,error:C})},onPause:()=>{p(this,_,z).call(this,{type:"pause"})},onContinue:()=>{p(this,_,z).call(this,{type:"continue"})},retry:o.options.retry,retryDelay:o.options.retryDelay,networkMode:o.options.networkMode,canRun:()=>!0})),r(this,A).start()}},wt=new WeakMap,Qt=new WeakMap,K=new WeakMap,A=new WeakMap,Tt=new WeakMap,ct=new WeakMap,_=new WeakSet,z=function(t){const e=i=>{switch(t.type){case"failed":return{...i,fetchFailureCount:t.failureCount,fetchFailureReason:t.error};case"pause":return{...i,fetchStatus:"paused"};case"continue":return{...i,fetchStatus:"fetching"};case"fetch":return{...i,...Ne(i.data,this.options),fetchMeta:t.meta??null};case"success":return{...i,data:t.data,dataUpdateCount:i.dataUpdateCount+1,dataUpdatedAt:t.dataUpdatedAt??Date.now(),error:null,isInvalidated:!1,status:"success",...!t.manual&&{fetchStatus:"idle",fetchFailureCount:0,fetchFailureReason:null}};case"error":const n=t.error;return $t(n)&&n.revert&&r(this,Qt)?{...r(this,Qt),fetchStatus:"idle"}:{...i,error:n,errorUpdateCount:i.errorUpdateCount+1,errorUpdatedAt:Date.now(),fetchFailureCount:i.fetchFailureCount+1,fetchFailureReason:n,fetchStatus:"idle",status:"error"};case"invalidate":return{...i,isInvalidated:!0};case"setState":return{...i,...t.state}}};this.state=e(this.state),E.batch(()=>{this.observers.forEach(i=>{i.onQueryUpdate()}),r(this,K).notify({query:this,type:"updated",action:t})})},Qe);function Ne(s,t){return{fetchFailureCount:0,fetchFailureReason:null,fetchStatus:Le(t.networkMode)?"fetching":"paused",...s===void 0&&{error:null,status:"pending"}}}function ls(s){const t=typeof s.initialData=="function"?s.initialData():s.initialData,e=t!==void 0,i=e?typeof s.initialDataUpdatedAt=="function"?s.initialDataUpdatedAt():s.initialDataUpdatedAt:0;return{data:t,dataUpdateCount:0,dataUpdatedAt:e?i??Date.now():0,error:null,errorUpdateCount:0,errorUpdatedAt:0,fetchFailureCount:0,fetchFailureReason:null,fetchMeta:null,isInvalidated:!1,status:e?"success":"pending",fetchStatus:"idle"}}var G,Se,Ge=(Se=class extends It{constructor(e={}){super();l(this,G);this.config=e,h(this,G,new Map)}build(e,i,n){const a=i.queryKey,o=i.queryHash??oe(a,i);let u=this.get(o);return u||(u=new cs({cache:this,queryKey:a,queryHash:o,options:e.defaultQueryOptions(i),state:n,defaultOptions:e.getQueryDefaults(a)}),this.add(u)),u}add(e){r(this,G).has(e.queryHash)||(r(this,G).set(e.queryHash,e),this.notify({type:"added",query:e}))}remove(e){const i=r(this,G).get(e.queryHash);i&&(e.destroy(),i===e&&r(this,G).delete(e.queryHash),this.notify({type:"removed",query:e}))}clear(){E.batch(()=>{this.getAll().forEach(e=>{this.remove(e)})})}get(e){return r(this,G).get(e)}getAll(){return[...r(this,G).values()]}find(e){const i={exact:!0,...e};return this.getAll().find(n=>fe(i,n))}findAll(e={}){const i=this.getAll();return Object.keys(e).length>0?i.filter(n=>fe(e,n)):i}notify(e){E.batch(()=>{this.listeners.forEach(i=>{i(e)})})}onFocus(){E.batch(()=>{this.getAll().forEach(e=>{e.onFocus()})})}onOnline(){E.batch(()=>{this.getAll().forEach(e=>{e.onOnline()})})}},G=new WeakMap,Se),$,I,lt,B,J,Pe,fs=(Pe=class extends _e{constructor(t){super();l(this,B);l(this,$);l(this,I);l(this,lt);this.mutationId=t.mutationId,h(this,I,t.mutationCache),h(this,$,[]),this.state=t.state||$e(),this.setOptions(t.options),this.scheduleGc()}setOptions(t){this.options=t,this.updateGcTime(this.options.gcTime)}get meta(){return this.options.meta}addObserver(t){r(this,$).includes(t)||(r(this,$).push(t),this.clearGcTimeout(),r(this,I).notify({type:"observerAdded",mutation:this,observer:t}))}removeObserver(t){h(this,$,r(this,$).filter(e=>e!==t)),this.scheduleGc(),r(this,I).notify({type:"observerRemoved",mutation:this,observer:t})}optionalRemove(){r(this,$).length||(this.state.status==="pending"?this.scheduleGc():r(this,I).remove(this))}continue(){var t;return((t=r(this,lt))==null?void 0:t.continue())??this.execute(this.state.variables)}async execute(t){var n,a,o,u,y,O,f,c,C,d,S,m,g,F,D,P,M,j,k,ut;h(this,lt,He({fn:()=>this.options.mutationFn?this.options.mutationFn(t):Promise.reject(new Error("No mutationFn found")),onFail:(w,H)=>{p(this,B,J).call(this,{type:"failed",failureCount:w,error:H})},onPause:()=>{p(this,B,J).call(this,{type:"pause"})},onContinue:()=>{p(this,B,J).call(this,{type:"continue"})},retry:this.options.retry??0,retryDelay:this.options.retryDelay,networkMode:this.options.networkMode,canRun:()=>r(this,I).canRun(this)}));const e=this.state.status==="pending",i=!r(this,lt).canStart();try{if(!e){p(this,B,J).call(this,{type:"pending",variables:t,isPaused:i}),await((a=(n=r(this,I).config).onMutate)==null?void 0:a.call(n,t,this));const H=await((u=(o=this.options).onMutate)==null?void 0:u.call(o,t));H!==this.state.context&&p(this,B,J).call(this,{type:"pending",context:H,variables:t,isPaused:i})}const w=await r(this,lt).start();return await((O=(y=r(this,I).config).onSuccess)==null?void 0:O.call(y,w,t,this.state.context,this)),await((c=(f=this.options).onSuccess)==null?void 0:c.call(f,w,t,this.state.context)),await((d=(C=r(this,I).config).onSettled)==null?void 0:d.call(C,w,null,this.state.variables,this.state.context,this)),await((m=(S=this.options).onSettled)==null?void 0:m.call(S,w,null,t,this.state.context)),p(this,B,J).call(this,{type:"success",data:w}),w}catch(w){try{throw await((F=(g=r(this,I).config).onError)==null?void 0:F.call(g,w,t,this.state.context,this)),await((P=(D=this.options).onError)==null?void 0:P.call(D,w,t,this.state.context)),await((j=(M=r(this,I).config).onSettled)==null?void 0:j.call(M,void 0,w,this.state.variables,this.state.context,this)),await((ut=(k=this.options).onSettled)==null?void 0:ut.call(k,void 0,w,t,this.state.context)),w}finally{p(this,B,J).call(this,{type:"error",error:w})}}finally{r(this,I).runNext(this)}}},$=new WeakMap,I=new WeakMap,lt=new WeakMap,B=new WeakSet,J=function(t){const e=i=>{switch(t.type){case"failed":return{...i,failureCount:t.failureCount,failureReason:t.error};case"pause":return{...i,isPaused:!0};case"continue":return{...i,isPaused:!1};case"pending":return{...i,context:t.context,data:void 0,failureCount:0,failureReason:null,error:null,isPaused:t.isPaused,status:"pending",variables:t.variables,submittedAt:Date.now()};case"success":return{...i,data:t.data,failureCount:0,failureReason:null,error:null,status:"success",isPaused:!1};case"error":return{...i,data:void 0,error:t.error,failureCount:i.failureCount+1,failureReason:t.error,isPaused:!1,status:"error"}}};this.state=e(this.state),E.batch(()=>{r(this,$).forEach(i=>{i.onMutationUpdate(t)}),r(this,I).notify({mutation:this,type:"updated",action:t})})},Pe);function $e(){return{context:void 0,data:void 0,error:null,failureCount:0,failureReason:null,isPaused:!1,status:"idle",variables:void 0,submittedAt:0}}var x,jt,Re,Be=(Re=class extends It{constructor(e={}){super();l(this,x);l(this,jt);this.config=e,h(this,x,new Map),h(this,jt,Date.now())}build(e,i,n){const a=new fs({mutationCache:this,mutationId:++Lt(this,jt)._,options:e.defaultMutationOptions(i),state:n});return this.add(a),a}add(e){const i=kt(e),n=r(this,x).get(i)??[];n.push(e),r(this,x).set(i,n),this.notify({type:"added",mutation:e})}remove(e){var n;const i=kt(e);if(r(this,x).has(i)){const a=(n=r(this,x).get(i))==null?void 0:n.filter(o=>o!==e);a&&(a.length===0?r(this,x).delete(i):r(this,x).set(i,a))}this.notify({type:"removed",mutation:e})}canRun(e){var n;const i=(n=r(this,x).get(kt(e)))==null?void 0:n.find(a=>a.state.status==="pending");return!i||i===e}runNext(e){var n;const i=(n=r(this,x).get(kt(e)))==null?void 0:n.find(a=>a!==e&&a.state.isPaused);return(i==null?void 0:i.continue())??Promise.resolve()}clear(){E.batch(()=>{this.getAll().forEach(e=>{this.remove(e)})})}getAll(){return[...r(this,x).values()].flat()}find(e){const i={exact:!0,...e};return this.getAll().find(n=>de(i,n))}findAll(e={}){return this.getAll().filter(i=>de(e,i))}notify(e){E.batch(()=>{this.listeners.forEach(i=>{i(e)})})}resumePausedMutations(){const e=this.getAll().filter(i=>i.state.isPaused);return E.batch(()=>Promise.all(e.map(i=>i.continue().catch(L))))}},x=new WeakMap,jt=new WeakMap,Re);function kt(s){var t;return((t=s.options.scope)==null?void 0:t.id)??String(s.mutationId)}function me(s){return{onFetch:(t,e)=>{var f,c,C,d,S;const i=t.options,n=(C=(c=(f=t.fetchOptions)==null?void 0:f.meta)==null?void 0:c.fetchMore)==null?void 0:C.direction,a=((d=t.state.data)==null?void 0:d.pages)||[],o=((S=t.state.data)==null?void 0:S.pageParams)||[];let u={pages:[],pageParams:[]},y=0;const O=async()=>{let m=!1;const g=P=>{Object.defineProperty(P,"signal",{enumerable:!0,get:()=>(t.signal.aborted?m=!0:t.signal.addEventListener("abort",()=>{m=!0}),t.signal)})},F=Ke(t.options,t.fetchOptions),D=async(P,M,j)=>{if(m)return Promise.reject();if(M==null&&P.pages.length)return Promise.resolve(P);const k={queryKey:t.queryKey,pageParam:M,direction:j?"backward":"forward",meta:t.options.meta};g(k);const ut=await F(k),{maxPages:w}=t.options,H=j?ns:rs;return{pages:H(P.pages,ut,w),pageParams:H(P.pageParams,M,w)}};if(n&&a.length){const P=n==="backward",M=P?ds:ve,j={pages:a,pageParams:o},k=M(i,j);u=await D(j,k,P)}else{const P=s??a.length;do{const M=y===0?o[0]??i.initialPageParam:ve(i,u);if(y>0&&M==null)break;u=await D(u,M),y++}while(y<P)}return u};t.options.persister?t.fetchFn=()=>{var m,g;return(g=(m=t.options).persister)==null?void 0:g.call(m,O,{queryKey:t.queryKey,meta:t.options.meta,signal:t.signal},e)}:t.fetchFn=O}}}function ve(s,{pages:t,pageParams:e}){const i=t.length-1;return t.length>0?s.getNextPageParam(t[i],t,e[i],e):void 0}function ds(s,{pages:t,pageParams:e}){var i;return t.length>0?(i=s.getPreviousPageParam)==null?void 0:i.call(s,t[0],t,e[0],e):void 0}var R,tt,et,St,Pt,st,Rt,Ft,Fe,ys=(Fe=class{constructor(t={}){l(this,R);l(this,tt);l(this,et);l(this,St);l(this,Pt);l(this,st);l(this,Rt);l(this,Ft);h(this,R,t.queryCache||new Ge),h(this,tt,t.mutationCache||new Be),h(this,et,t.defaultOptions||{}),h(this,St,new Map),h(this,Pt,new Map),h(this,st,0)}mount(){Lt(this,st)._++,r(this,st)===1&&(h(this,Rt,he.subscribe(async t=>{t&&(await this.resumePausedMutations(),r(this,R).onFocus())})),h(this,Ft,Nt.subscribe(async t=>{t&&(await this.resumePausedMutations(),r(this,R).onOnline())})))}unmount(){var t,e;Lt(this,st)._--,r(this,st)===0&&((t=r(this,Rt))==null||t.call(this),h(this,Rt,void 0),(e=r(this,Ft))==null||e.call(this),h(this,Ft,void 0))}isFetching(t){return r(this,R).findAll({...t,fetchStatus:"fetching"}).length}isMutating(t){return r(this,tt).findAll({...t,status:"pending"}).length}getQueryData(t){var i;const e=this.defaultQueryOptions({queryKey:t});return(i=r(this,R).get(e.queryHash))==null?void 0:i.state.data}ensureQueryData(t){const e=this.getQueryData(t.queryKey);if(e===void 0)return this.fetchQuery(t);{const i=this.defaultQueryOptions(t),n=r(this,R).build(this,i);return t.revalidateIfStale&&n.isStaleByTime(bt(i.staleTime,n))&&this.prefetchQuery(i),Promise.resolve(e)}}getQueriesData(t){return r(this,R).findAll(t).map(({queryKey:e,state:i})=>{const n=i.data;return[e,n]})}setQueryData(t,e,i){const n=this.defaultQueryOptions({queryKey:t}),a=r(this,R).get(n.queryHash),o=a==null?void 0:a.state.data,u=ss(e,o);if(u!==void 0)return r(this,R).build(this,n).setData(u,{...i,manual:!0})}setQueriesData(t,e,i){return E.batch(()=>r(this,R).findAll(t).map(({queryKey:n})=>[n,this.setQueryData(n,e,i)]))}getQueryState(t){var i;const e=this.defaultQueryOptions({queryKey:t});return(i=r(this,R).get(e.queryHash))==null?void 0:i.state}removeQueries(t){const e=r(this,R);E.batch(()=>{e.findAll(t).forEach(i=>{e.remove(i)})})}resetQueries(t,e){const i=r(this,R),n={type:"active",...t};return E.batch(()=>(i.findAll(t).forEach(a=>{a.reset()}),this.refetchQueries(n,e)))}cancelQueries(t={},e={}){const i={revert:!0,...e},n=E.batch(()=>r(this,R).findAll(t).map(a=>a.cancel(i)));return Promise.all(n).then(L).catch(L)}invalidateQueries(t={},e={}){return E.batch(()=>{if(r(this,R).findAll(t).forEach(n=>{n.invalidate()}),t.refetchType==="none")return Promise.resolve();const i={...t,type:t.refetchType??t.type??"active"};return this.refetchQueries(i,e)})}refetchQueries(t={},e){const i={...e,cancelRefetch:(e==null?void 0:e.cancelRefetch)??!0},n=E.batch(()=>r(this,R).findAll(t).filter(a=>!a.isDisabled()).map(a=>{let o=a.fetch(void 0,i);return i.throwOnError||(o=o.catch(L)),a.state.fetchStatus==="paused"?Promise.resolve():o}));return Promise.all(n).then(L)}fetchQuery(t){const e=this.defaultQueryOptions(t);e.retry===void 0&&(e.retry=!1);const i=r(this,R).build(this,e);return i.isStaleByTime(bt(e.staleTime,i))?i.fetch(e):Promise.resolve(i.state.data)}prefetchQuery(t){return this.fetchQuery(t).then(L).catch(L)}fetchInfiniteQuery(t){return t.behavior=me(t.pages),this.fetchQuery(t)}prefetchInfiniteQuery(t){return this.fetchInfiniteQuery(t).then(L).catch(L)}ensureInfiniteQueryData(t){return t.behavior=me(t.pages),this.ensureQueryData(t)}resumePausedMutations(){return Nt.isOnline()?r(this,tt).resumePausedMutations():Promise.resolve()}getQueryCache(){return r(this,R)}getMutationCache(){return r(this,tt)}getDefaultOptions(){return r(this,et)}setDefaultOptions(t){h(this,et,t)}setQueryDefaults(t,e){r(this,St).set(mt(t),{queryKey:t,defaultOptions:e})}getQueryDefaults(t){const e=[...r(this,St).values()];let i={};return e.forEach(n=>{qt(t,n.queryKey)&&(i={...i,...n.defaultOptions})}),i}setMutationDefaults(t,e){r(this,Pt).set(mt(t),{mutationKey:t,defaultOptions:e})}getMutationDefaults(t){const e=[...r(this,Pt).values()];let i={};return e.forEach(n=>{qt(t,n.mutationKey)&&(i={...i,...n.defaultOptions})}),i}defaultQueryOptions(t){if(t._defaulted)return t;const e={...r(this,et).queries,...this.getQueryDefaults(t.queryKey),...t,_defaulted:!0};return e.queryHash||(e.queryHash=oe(e.queryKey,e)),e.refetchOnReconnect===void 0&&(e.refetchOnReconnect=e.networkMode!=="always"),e.throwOnError===void 0&&(e.throwOnError=!!e.suspense),!e.networkMode&&e.persister&&(e.networkMode="offlineFirst"),e.enabled!==!0&&e.queryFn===xe&&(e.enabled=!1),e}defaultMutationOptions(t){return t!=null&&t._defaulted?t:{...r(this,et).mutations,...(t==null?void 0:t.mutationKey)&&this.getMutationDefaults(t.mutationKey),...t,_defaulted:!0}}clear(){r(this,R).clear(),r(this,tt).clear()}},R=new WeakMap,tt=new WeakMap,et=new WeakMap,St=new WeakMap,Pt=new WeakMap,st=new WeakMap,Rt=new WeakMap,Ft=new WeakMap,Fe),q,b,xt,U,ft,Dt,it,V,Kt,Et,Mt,dt,yt,rt,At,Q,Ut,Yt,Jt,Xt,Zt,te,ee,se,Ve,De,ps=(De=class extends It{constructor(t,e){super();l(this,Q);l(this,q);l(this,b);l(this,xt);l(this,U);l(this,ft);l(this,Dt);l(this,it);l(this,V);l(this,Kt);l(this,Et);l(this,Mt);l(this,dt);l(this,yt);l(this,rt);l(this,At,new Set);this.options=e,h(this,q,t),h(this,V,null),h(this,it,Wt()),this.options.experimental_prefetchInRender||r(this,it).reject(new Error("experimental_prefetchInRender feature flag is not enabled")),this.bindMethods(),this.setOptions(e)}bindMethods(){this.refetch=this.refetch.bind(this)}onSubscribe(){this.listeners.size===1&&(r(this,b).addObserver(this),be(r(this,b),this.options)?p(this,Q,Ut).call(this):this.updateResult(),p(this,Q,Zt).call(this))}onUnsubscribe(){this.hasListeners()||this.destroy()}shouldFetchOnReconnect(){return ie(r(this,b),this.options,this.options.refetchOnReconnect)}shouldFetchOnWindowFocus(){return ie(r(this,b),this.options,this.options.refetchOnWindowFocus)}destroy(){this.listeners=new Set,p(this,Q,te).call(this),p(this,Q,ee).call(this),r(this,b).removeObserver(this)}setOptions(t,e){const i=this.options,n=r(this,b);if(this.options=r(this,q).defaultQueryOptions(t),this.options.enabled!==void 0&&typeof this.options.enabled!="boolean"&&typeof this.options.enabled!="function"&&typeof N(this.options.enabled,r(this,b))!="boolean")throw new Error("Expected enabled to be a boolean or a callback that returns a boolean");p(this,Q,se).call(this),r(this,b).setOptions(this.options),i._defaulted&&!_t(this.options,i)&&r(this,q).getQueryCache().notify({type:"observerOptionsUpdated",query:r(this,b),observer:this});const a=this.hasListeners();a&&ge(r(this,b),n,this.options,i)&&p(this,Q,Ut).call(this),this.updateResult(e),a&&(r(this,b)!==n||N(this.options.enabled,r(this,b))!==N(i.enabled,r(this,b))||bt(this.options.staleTime,r(this,b))!==bt(i.staleTime,r(this,b)))&&p(this,Q,Yt).call(this);const o=p(this,Q,Jt).call(this);a&&(r(this,b)!==n||N(this.options.enabled,r(this,b))!==N(i.enabled,r(this,b))||o!==r(this,rt))&&p(this,Q,Xt).call(this,o)}getOptimisticResult(t){const e=r(this,q).getQueryCache().build(r(this,q),t),i=this.createResult(e,t);return vs(this,i)&&(h(this,U,i),h(this,Dt,this.options),h(this,ft,r(this,b).state)),i}getCurrentResult(){return r(this,U)}trackResult(t,e){const i={};return Object.keys(t).forEach(n=>{Object.defineProperty(i,n,{configurable:!1,enumerable:!0,get:()=>(this.trackProp(n),e==null||e(n),t[n])})}),i}trackProp(t){r(this,At).add(t)}getCurrentQuery(){return r(this,b)}refetch({...t}={}){return this.fetch({...t})}fetchOptimistic(t){const e=r(this,q).defaultQueryOptions(t),i=r(this,q).getQueryCache().build(r(this,q),e);return i.isFetchingOptimistic=!0,i.fetch().then(()=>this.createResult(i,e))}fetch(t){return p(this,Q,Ut).call(this,{...t,cancelRefetch:t.cancelRefetch??!0}).then(()=>(this.updateResult(),r(this,U)))}createResult(t,e){var ut;const i=r(this,b),n=this.options,a=r(this,U),o=r(this,ft),u=r(this,Dt),O=t!==i?t.state:r(this,xt),{state:f}=t;let c={...f},C=!1,d;if(e._optimisticResults){const w=this.hasListeners(),H=!w&&be(t,e),Ye=w&&ge(t,i,e,n);(H||Ye)&&(c={...c,...Ne(f.data,t.options)}),e._optimisticResults==="isRestoring"&&(c.fetchStatus="idle")}let{error:S,errorUpdatedAt:m,status:g}=c;if(e.select&&c.data!==void 0)if(a&&c.data===(o==null?void 0:o.data)&&e.select===r(this,Kt))d=r(this,Et);else try{h(this,Kt,e.select),d=e.select(c.data),d=zt(a==null?void 0:a.data,d,e),h(this,Et,d),h(this,V,null)}catch(w){h(this,V,w)}else d=c.data;if(e.placeholderData!==void 0&&d===void 0&&g==="pending"){let w;if(a!=null&&a.isPlaceholderData&&e.placeholderData===(u==null?void 0:u.placeholderData))w=a.data;else if(w=typeof e.placeholderData=="function"?e.placeholderData((ut=r(this,Mt))==null?void 0:ut.state.data,r(this,Mt)):e.placeholderData,e.select&&w!==void 0)try{w=e.select(w),h(this,V,null)}catch(H){h(this,V,H)}w!==void 0&&(g="success",d=zt(a==null?void 0:a.data,w,e),C=!0)}r(this,V)&&(S=r(this,V),d=r(this,Et),m=Date.now(),g="error");const F=c.fetchStatus==="fetching",D=g==="pending",P=g==="error",M=D&&F,j=d!==void 0;return{status:g,fetchStatus:c.fetchStatus,isPending:D,isSuccess:g==="success",isError:P,isInitialLoading:M,isLoading:M,data:d,dataUpdatedAt:c.dataUpdatedAt,error:S,errorUpdatedAt:m,failureCount:c.fetchFailureCount,failureReason:c.fetchFailureReason,errorUpdateCount:c.errorUpdateCount,isFetched:c.dataUpdateCount>0||c.errorUpdateCount>0,isFetchedAfterMount:c.dataUpdateCount>O.dataUpdateCount||c.errorUpdateCount>O.errorUpdateCount,isFetching:F,isRefetching:F&&!D,isLoadingError:P&&!j,isPaused:c.fetchStatus==="paused",isPlaceholderData:C,isRefetchError:P&&j,isStale:ce(t,e),refetch:this.refetch,promise:r(this,it)}}updateResult(t){const e=r(this,U),i=this.createResult(r(this,b),this.options);if(h(this,ft,r(this,b).state),h(this,Dt,this.options),r(this,ft).data!==void 0&&h(this,Mt,r(this,b)),_t(i,e))return;if(this.options.experimental_prefetchInRender){const o=O=>{i.status==="error"?O.reject(i.error):i.data!==void 0&&O.resolve(i.data)},u=()=>{const O=h(this,it,i.promise=Wt());o(O)},y=r(this,it);switch(y.status){case"pending":o(y);break;case"fulfilled":(i.status==="error"||i.data!==y.value)&&u();break;case"rejected":(i.status!=="error"||i.error!==y.reason)&&u();break}}h(this,U,i);const n={},a=()=>{if(!e)return!0;const{notifyOnChangeProps:o}=this.options,u=typeof o=="function"?o():o;if(u==="all"||!u&&!r(this,At).size)return!0;const y=new Set(u??r(this,At));return this.options.throwOnError&&y.add("error"),Object.keys(r(this,U)).some(O=>{const f=O;return r(this,U)[f]!==e[f]&&y.has(f)})};(t==null?void 0:t.listeners)!==!1&&a()&&(n.listeners=!0),p(this,Q,Ve).call(this,{...n,...t})}onQueryUpdate(){this.updateResult(),this.hasListeners()&&p(this,Q,Zt).call(this)}},q=new WeakMap,b=new WeakMap,xt=new WeakMap,U=new WeakMap,ft=new WeakMap,Dt=new WeakMap,it=new WeakMap,V=new WeakMap,Kt=new WeakMap,Et=new WeakMap,Mt=new WeakMap,dt=new WeakMap,yt=new WeakMap,rt=new WeakMap,At=new WeakMap,Q=new WeakSet,Ut=function(t){p(this,Q,se).call(this);let e=r(this,b).fetch(this.options,t);return t!=null&&t.throwOnError||(e=e.catch(L)),e},Yt=function(){p(this,Q,te).call(this);const t=bt(this.options.staleTime,r(this,b));if(pt||r(this,U).isStale||!Bt(t))return;const i=Te(r(this,U).dataUpdatedAt,t)+1;h(this,dt,setTimeout(()=>{r(this,U).isStale||this.updateResult()},i))},Jt=function(){return(typeof this.options.refetchInterval=="function"?this.options.refetchInterval(r(this,b)):this.options.refetchInterval)??!1},Xt=function(t){p(this,Q,ee).call(this),h(this,rt,t),!(pt||N(this.options.enabled,r(this,b))===!1||!Bt(r(this,rt))||r(this,rt)===0)&&h(this,yt,setInterval(()=>{(this.options.refetchIntervalInBackground||he.isFocused())&&p(this,Q,Ut).call(this)},r(this,rt)))},Zt=function(){p(this,Q,Yt).call(this),p(this,Q,Xt).call(this,p(this,Q,Jt).call(this))},te=function(){r(this,dt)&&(clearTimeout(r(this,dt)),h(this,dt,void 0))},ee=function(){r(this,yt)&&(clearInterval(r(this,yt)),h(this,yt,void 0))},se=function(){const t=r(this,q).getQueryCache().build(r(this,q),this.options);if(t===r(this,b))return;const e=r(this,b);h(this,b,t),h(this,xt,t.state),this.hasListeners()&&(e==null||e.removeObserver(this),t.addObserver(this))},Ve=function(t){E.batch(()=>{t.listeners&&this.listeners.forEach(e=>{e(r(this,U))}),r(this,q).getQueryCache().notify({query:r(this,b),type:"observerResultsUpdated"})})},De);function ms(s,t){return N(t.enabled,s)!==!1&&s.state.data===void 0&&!(s.state.status==="error"&&t.retryOnMount===!1)}function be(s,t){return ms(s,t)||s.state.data!==void 0&&ie(s,t,t.refetchOnMount)}function ie(s,t,e){if(N(t.enabled,s)!==!1){const i=typeof e=="function"?e(s):e;return i==="always"||i!==!1&&ce(s,t)}return!1}function ge(s,t,e,i){return(s!==t||N(i.enabled,s)===!1)&&(!e.suspense||s.state.status!=="error")&&ce(s,e)}function ce(s,t){return N(t.enabled,s)!==!1&&s.isStaleByTime(bt(t.staleTime,s))}function vs(s,t){return!_t(s.getCurrentResult(),t)}var nt,at,T,W,Y,Ht,re,Ee,bs=(Ee=class extends It{constructor(t,e){super();l(this,Y);l(this,nt);l(this,at);l(this,T);l(this,W);h(this,nt,t),this.setOptions(e),this.bindMethods(),p(this,Y,Ht).call(this)}bindMethods(){this.mutate=this.mutate.bind(this),this.reset=this.reset.bind(this)}setOptions(t){var i;const e=this.options;this.options=r(this,nt).defaultMutationOptions(t),_t(this.options,e)||r(this,nt).getMutationCache().notify({type:"observerOptionsUpdated",mutation:r(this,T),observer:this}),e!=null&&e.mutationKey&&this.options.mutationKey&&mt(e.mutationKey)!==mt(this.options.mutationKey)?this.reset():((i=r(this,T))==null?void 0:i.state.status)==="pending"&&r(this,T).setOptions(this.options)}onUnsubscribe(){var t;this.hasListeners()||(t=r(this,T))==null||t.removeObserver(this)}onMutationUpdate(t){p(this,Y,Ht).call(this),p(this,Y,re).call(this,t)}getCurrentResult(){return r(this,at)}reset(){var t;(t=r(this,T))==null||t.removeObserver(this),h(this,T,void 0),p(this,Y,Ht).call(this),p(this,Y,re).call(this)}mutate(t,e){var i;return h(this,W,e),(i=r(this,T))==null||i.removeObserver(this),h(this,T,r(this,nt).getMutationCache().build(r(this,nt),this.options)),r(this,T).addObserver(this),r(this,T).execute(t)}},nt=new WeakMap,at=new WeakMap,T=new WeakMap,W=new WeakMap,Y=new WeakSet,Ht=function(){var e;const t=((e=r(this,T))==null?void 0:e.state)??$e();h(this,at,{...t,isPending:t.status==="pending",isSuccess:t.status==="success",isError:t.status==="error",isIdle:t.status==="idle",mutate:this.mutate,reset:this.reset})},re=function(t){E.batch(()=>{var e,i,n,a,o,u,y,O;if(r(this,W)&&this.hasListeners()){const f=r(this,at).variables,c=r(this,at).context;(t==null?void 0:t.type)==="success"?((i=(e=r(this,W)).onSuccess)==null||i.call(e,t.data,f,c),(a=(n=r(this,W)).onSettled)==null||a.call(n,t.data,null,f,c)):(t==null?void 0:t.type)==="error"&&((u=(o=r(this,W)).onError)==null||u.call(o,t.error,f,c),(O=(y=r(this,W)).onSettled)==null||O.call(y,void 0,t.error,f,c))}this.listeners.forEach(f=>{f(r(this,at))})})},Ee),gs="VUE_QUERY_CLIENT";function ze(s){const t=s?`:${s}`:"";return`${gs}${t}`}function ne(s,t){Object.keys(s).forEach(e=>{s[e]=t[e]})}function ae(s,t,e="",i=0){if(t){const n=t(s,e,i);if(n===void 0&&Me(s)||n!==void 0)return n}if(Array.isArray(s))return s.map((n,a)=>ae(n,t,String(a),i+1));if(typeof s=="object"&&Cs(s)){const n=Object.entries(s).map(([a,o])=>[a,ae(o,t,a,i+1)]);return Object.fromEntries(n)}return s}function Os(s,t){return ae(s,t)}function v(s,t=!1){return Os(s,(e,i,n)=>{if(n===1&&i==="queryKey")return v(e,!0);if(t&&ws(e))return v(e(),t);if(Me(e))return v(Je(e),t)})}function Cs(s){if(Object.prototype.toString.call(s)!=="[object Object]")return!1;const t=Object.getPrototypeOf(s);return t===null||t===Object.prototype}function ws(s){return typeof s=="function"}function ue(s,t){return typeof s=="function"?s(...t):!!s}function We(s=""){if(!Xe())throw new Error("vue-query hooks can only be used inside setup() function or functions that support injection context.");const t=ze(s),e=Ze(t);if(!e)throw new Error("No 'queryClient' found in Vue context, use 'VueQueryPlugin' to properly initialize the library.");return e}var Qs=class extends Ge{find(s){return super.find(v(s))}findAll(s={}){return super.findAll(v(s))}},Ss=class extends Be{find(s){return super.find(v(s))}findAll(s={}){return super.findAll(v(s))}},Ps=class extends ys{constructor(s={}){const t={defaultOptions:s.defaultOptions,queryCache:s.queryCache||new Qs,mutationCache:s.mutationCache||new Ss};super(t),this.isRestoring=ts(!1)}isFetching(s={}){return super.isFetching(v(s))}isMutating(s={}){return super.isMutating(v(s))}getQueryData(s){return super.getQueryData(v(s))}ensureQueryData(s){return super.ensureQueryData(v(s))}getQueriesData(s){return super.getQueriesData(v(s))}setQueryData(s,t,e={}){return super.setQueryData(v(s),t,v(e))}setQueriesData(s,t,e={}){return super.setQueriesData(v(s),t,v(e))}getQueryState(s){return super.getQueryState(v(s))}removeQueries(s={}){return super.removeQueries(v(s))}resetQueries(s={},t={}){return super.resetQueries(v(s),v(t))}cancelQueries(s={},t={}){return super.cancelQueries(v(s),v(t))}invalidateQueries(s={},t={}){const e=v(s),i=v(t);if(super.invalidateQueries({...e,refetchType:"none"},i),e.refetchType==="none")return Promise.resolve();const n={...e,type:e.refetchType??e.type??"active"};return es().then(()=>super.refetchQueries(n,i))}refetchQueries(s={},t={}){return super.refetchQueries(v(s),v(t))}fetchQuery(s){return super.fetchQuery(v(s))}prefetchQuery(s){return super.prefetchQuery(v(s))}fetchInfiniteQuery(s){return super.fetchInfiniteQuery(v(s))}prefetchInfiniteQuery(s){return super.prefetchInfiniteQuery(v(s))}setDefaultOptions(s){super.setDefaultOptions(v(s))}setQueryDefaults(s,t){super.setQueryDefaults(v(s),v(t))}getQueryDefaults(s){return super.getQueryDefaults(v(s))}setMutationDefaults(s,t){super.setMutationDefaults(v(s),v(t))}getMutationDefaults(s){return super.getMutationDefaults(v(s))}},Is={install:(s,t={})=>{const e=ze(t.queryClientKey);let i;if("queryClient"in t&&t.queryClient)i=t.queryClient;else{const o="queryClientConfig"in t?t.queryClientConfig:void 0;i=new Ps(o)}pt||i.mount();let n=()=>{};if(t.clientPersister){i.isRestoring.value=!0;const[o,u]=t.clientPersister(i);n=o,u.then(()=>{var y;i.isRestoring.value=!1,(y=t.clientPersisterOnSuccess)==null||y.call(t,i)})}const a=()=>{i.unmount(),n()};if(s.onUnmount)s.onUnmount(a);else{const o=s.unmount;s.unmount=function(){a(),o()}}s.provide(e,i)}};function Rs(s,t,e){const i=We(),n=Ae(()=>{const d=v(t);typeof d.enabled=="function"&&(d.enabled=d.enabled());const S=i.defaultQueryOptions(d);return S._optimisticResults=i.isRestoring.value?"isRestoring":"optimistic",S}),a=new s(i,n.value),o=Ie(a.getCurrentResult());let u=()=>{};vt(i.isRestoring,d=>{d||(u(),u=a.subscribe(S=>{ne(o,S)}))},{immediate:!0});const y=()=>{a.setOptions(n.value),ne(o,a.getCurrentResult())};vt(n,y),Ue(()=>{u()});const O=(...d)=>(y(),o.refetch(...d)),f=()=>new Promise((d,S)=>{let m=()=>{};const g=()=>{if(n.value.enabled!==!1){a.setOptions(n.value);const F=a.getOptimisticResult(n.value);F.isStale?(m(),a.fetchOptimistic(n.value).then(d,D=>{ue(n.value.throwOnError,[D,a.getCurrentQuery()])?S(D):d(a.getCurrentResult())})):(m(),d(F))}};g(),m=vt(n,g)});vt(()=>o.error,d=>{if(o.isError&&!o.isFetching&&ue(n.value.throwOnError,[d,a.getCurrentQuery()]))throw d});const C=qe(o);for(const d in o)typeof o[d]=="function"&&(C[d]=o[d]);return C.suspense=f,C.refetch=O,C}function Us(s,t){return Rs(ps,s)}function qs(s,t){const e=We(),i=Ae(()=>e.defaultMutationOptions(v(s))),n=new bs(e,i.value),a=Ie(n.getCurrentResult()),o=n.subscribe(f=>{ne(a,f)}),u=(f,c)=>{n.mutate(f,c).catch(()=>{})};vt(i,()=>{n.setOptions(i.value)}),Ue(()=>{o()});const O=qe(a);return vt(()=>a.error,f=>{if(f&&ue(i.value.throwOnError,[f]))throw f}),{...O,mutate:u,mutateAsync:a.mutate,reset:a.reset}}export{Ps as Q,Is as V,Us as a,qs as b,We as u};
@@ -1,4 +1,4 @@
1
- import{Z as s,a as h,b as a}from"./zod.DnW1_kUe.0.0.33.js";import{i as j,c as y}from"./vee-validate.BrBRPHgf.0.0.33.js";/**
1
+ import{Z as s,a as h,b as a}from"./zod.DnW1_kUe.0.0.34-alpha.0.js";import{i as j,c as y}from"./vee-validate.DmSS7Yyb.0.0.34-alpha.0.js";/**
2
2
  * vee-validate v4.13.2
3
3
  * (c) 2024 Abdelrahman Awad
4
4
  * @license MIT
@@ -14,4 +14,4 @@
14
14
  * @vue/runtime-dom v3.5.10
15
15
  * (c) 2018-present Yuxi (Evan) You and Vue contributors
16
16
  * @license MIT
17
- **/let _s;const Cr=typeof window<"u"&&window.trustedTypes;if(Cr)try{_s=Cr.createPolicy("vue",{createHTML:e=>e})}catch{}const to=_s?e=>_s.createHTML(e):e=>e,Mc="http://www.w3.org/2000/svg",Oc="http://www.w3.org/1998/Math/MathML",je=typeof document<"u"?document:null,Tr=je&&je.createElement("template"),Pc={insert:(e,t,n)=>{t.insertBefore(e,n||null)},remove:e=>{const t=e.parentNode;t&&t.removeChild(e)},createElement:(e,t,n,s)=>{const r=t==="svg"?je.createElementNS(Mc,e):t==="mathml"?je.createElementNS(Oc,e):n?je.createElement(e,{is:n}):je.createElement(e);return e==="select"&&s&&s.multiple!=null&&r.setAttribute("multiple",s.multiple),r},createText:e=>je.createTextNode(e),createComment:e=>je.createComment(e),setText:(e,t)=>{e.nodeValue=t},setElementText:(e,t)=>{e.textContent=t},parentNode:e=>e.parentNode,nextSibling:e=>e.nextSibling,querySelector:e=>je.querySelector(e),setScopeId(e,t){e.setAttribute(t,"")},insertStaticContent(e,t,n,s,r,i){const o=n?n.previousSibling:t.lastChild;if(r&&(r===i||r.nextSibling))for(;t.insertBefore(r.cloneNode(!0),n),!(r===i||!(r=r.nextSibling)););else{Tr.innerHTML=to(s==="svg"?`<svg>${e}</svg>`:s==="mathml"?`<math>${e}</math>`:e);const l=Tr.content;if(s==="svg"||s==="mathml"){const c=l.firstChild;for(;c.firstChild;)l.appendChild(c.firstChild);l.removeChild(c)}t.insertBefore(l,n)}return[o?o.nextSibling:t.firstChild,n?n.previousSibling:t.lastChild]}},Je="transition",Rt="animation",Et=Symbol("_vtc"),no={name:String,type:String,css:{type:Boolean,default:!0},duration:[String,Number,Object],enterFromClass:String,enterActiveClass:String,enterToClass:String,appearFromClass:String,appearActiveClass:String,appearToClass:String,leaveFromClass:String,leaveActiveClass:String,leaveToClass:String},so=ie({},wi,no),Rc=e=>(e.displayName="Transition",e.props=so,e),Rf=Rc((e,{slots:t})=>Ic(Cl,ro(e),t)),ot=(e,t=[])=>{D(e)?e.forEach(n=>n(...t)):e&&e(...t)},wr=e=>e?D(e)?e.some(t=>t.length>1):e.length>1:!1;function ro(e){const t={};for(const O in e)O in no||(t[O]=e[O]);if(e.css===!1)return t;const{name:n="v",type:s,duration:r,enterFromClass:i=`${n}-enter-from`,enterActiveClass:o=`${n}-enter-active`,enterToClass:l=`${n}-enter-to`,appearFromClass:c=i,appearActiveClass:h=o,appearToClass:u=l,leaveFromClass:a=`${n}-leave-from`,leaveActiveClass:p=`${n}-leave-active`,leaveToClass:_=`${n}-leave-to`}=e,C=Dc(r),P=C&&C[0],W=C&&C[1],{onBeforeEnter:H,onEnter:E,onEnterCancelled:F,onLeave:b,onLeaveCancelled:w,onBeforeAppear:R=H,onAppear:j=E,onAppearCancelled:K=F}=t,M=(O,q,re)=>{Ye(O,q?u:l),Ye(O,q?h:o),re&&re()},L=(O,q)=>{O._isLeaving=!1,Ye(O,a),Ye(O,_),Ye(O,p),q&&q()},k=O=>(q,re)=>{const Se=O?j:E,ne=()=>M(q,O,re);ot(Se,[q,ne]),Sr(()=>{Ye(q,O?c:i),Ve(q,O?u:l),wr(Se)||Er(q,s,P,ne)})};return ie(t,{onBeforeEnter(O){ot(H,[O]),Ve(O,i),Ve(O,o)},onBeforeAppear(O){ot(R,[O]),Ve(O,c),Ve(O,h)},onEnter:k(!1),onAppear:k(!0),onLeave(O,q){O._isLeaving=!0;const re=()=>L(O,q);Ve(O,a),Ve(O,p),oo(),Sr(()=>{O._isLeaving&&(Ye(O,a),Ve(O,_),wr(b)||Er(O,s,W,re))}),ot(b,[O,re])},onEnterCancelled(O){M(O,!1),ot(F,[O])},onAppearCancelled(O){M(O,!0),ot(K,[O])},onLeaveCancelled(O){L(O),ot(w,[O])}})}function Dc(e){if(e==null)return null;if(X(e))return[Zn(e.enter),Zn(e.leave)];{const t=Zn(e);return[t,t]}}function Zn(e){return kr(e)}function Ve(e,t){t.split(/\s+/).forEach(n=>n&&e.classList.add(n)),(e[Et]||(e[Et]=new Set)).add(t)}function Ye(e,t){t.split(/\s+/).forEach(s=>s&&e.classList.remove(s));const n=e[Et];n&&(n.delete(t),n.size||(e[Et]=void 0))}function Sr(e){requestAnimationFrame(()=>{requestAnimationFrame(e)})}let Nc=0;function Er(e,t,n,s){const r=e._endId=++Nc,i=()=>{r===e._endId&&s()};if(n!=null)return setTimeout(i,n);const{type:o,timeout:l,propCount:c}=io(e,t);if(!o)return s();const h=o+"end";let u=0;const a=()=>{e.removeEventListener(h,p),i()},p=_=>{_.target===e&&++u>=c&&a()};setTimeout(()=>{u<c&&a()},l+1),e.addEventListener(h,p)}function io(e,t){const n=window.getComputedStyle(e),s=C=>(n[C]||"").split(", "),r=s(`${Je}Delay`),i=s(`${Je}Duration`),o=Ar(r,i),l=s(`${Rt}Delay`),c=s(`${Rt}Duration`),h=Ar(l,c);let u=null,a=0,p=0;t===Je?o>0&&(u=Je,a=o,p=i.length):t===Rt?h>0&&(u=Rt,a=h,p=c.length):(a=Math.max(o,h),u=a>0?o>h?Je:Rt:null,p=u?u===Je?i.length:c.length:0);const _=u===Je&&/\b(transform|all)(,|$)/.test(s(`${Je}Property`).toString());return{type:u,timeout:a,propCount:p,hasTransform:_}}function Ar(e,t){for(;e.length<t.length;)e=e.concat(e);return Math.max(...t.map((n,s)=>Ir(n)+Ir(e[s])))}function Ir(e){return e==="auto"?0:Number(e.slice(0,-1).replace(",","."))*1e3}function oo(){return document.body.offsetHeight}function Lc(e,t,n){const s=e[Et];s&&(t=(t?[t,...s]:[...s]).join(" ")),t==null?e.removeAttribute("class"):n?e.setAttribute("class",t):e.className=t}const Tn=Symbol("_vod"),lo=Symbol("_vsh"),Df={beforeMount(e,{value:t},{transition:n}){e[Tn]=e.style.display==="none"?"":e.style.display,n&&t?n.beforeEnter(e):Dt(e,t)},mounted(e,{value:t},{transition:n}){n&&t&&n.enter(e)},updated(e,{value:t,oldValue:n},{transition:s}){!t!=!n&&(s?t?(s.beforeEnter(e),Dt(e,!0),s.enter(e)):s.leave(e,()=>{Dt(e,!1)}):Dt(e,t))},beforeUnmount(e,{value:t}){Dt(e,t)}};function Dt(e,t){e.style.display=t?e[Tn]:"none",e[lo]=!t}const co=Symbol("");function Nf(e){const t=It();if(!t)return;const n=t.ut=(r=e(t.proxy))=>{Array.from(document.querySelectorAll(`[data-v-owner="${t.uid}"]`)).forEach(i=>wn(i,r))},s=()=>{const r=e(t.proxy);t.ce?wn(t.ce,r):ys(t.subTree,r),n(r)};Mi(()=>{ec(s)}),Ln(()=>{const r=new MutationObserver(s);r.observe(t.subTree.el.parentNode,{childList:!0}),Vs(()=>r.disconnect())})}function ys(e,t){if(e.shapeFlag&128){const n=e.suspense;e=n.activeBranch,n.pendingBranch&&!n.isHydrating&&n.effects.push(()=>{ys(n.activeBranch,t)})}for(;e.component;)e=e.component.subTree;if(e.shapeFlag&1&&e.el)wn(e.el,t);else if(e.type===ye)e.children.forEach(n=>ys(n,t));else if(e.type===Vt){let{el:n,anchor:s}=e;for(;n&&(wn(n,t),n!==s);)n=n.nextSibling}}function wn(e,t){if(e.nodeType===1){const n=e.style;let s="";for(const r in t)n.setProperty(`--${r}`,t[r]),s+=`--${r}: ${t[r]};`;n[co]=s}}const Bc=/(^|;)\s*display\s*:/;function $c(e,t,n){const s=e.style,r=se(n);let i=!1;if(n&&!r){if(t)if(se(t))for(const o of t.split(";")){const l=o.slice(0,o.indexOf(":")).trim();n[l]==null&&hn(s,l,"")}else for(const o in t)n[o]==null&&hn(s,o,"");for(const o in n)o==="display"&&(i=!0),hn(s,o,n[o])}else if(r){if(t!==n){const o=s[co];o&&(n+=";"+o),s.cssText=n,i=Bc.test(n)}}else t&&e.removeAttribute("style");Tn in e&&(e[Tn]=i?s.display:"",e[lo]&&(s.display="none"))}const Fr=/\s*!important$/;function hn(e,t,n){if(D(n))n.forEach(s=>hn(e,t,s));else if(n==null&&(n=""),t.startsWith("--"))e.setProperty(t,n);else{const s=Hc(e,t);Fr.test(n)?e.setProperty(We(s),n.replace(Fr,""),"important"):e[s]=n}}const Mr=["Webkit","Moz","ms"],Qn={};function Hc(e,t){const n=Qn[t];if(n)return n;let s=we(t);if(s!=="filter"&&s in e)return Qn[t]=s;s=Mn(s);for(let r=0;r<Mr.length;r++){const i=Mr[r]+s;if(i in e)return Qn[t]=i}return t}const Or="http://www.w3.org/1999/xlink";function Pr(e,t,n,s,r,i=Fo(t)){s&&t.startsWith("xlink:")?n==null?e.removeAttributeNS(Or,t.slice(6,t.length)):e.setAttributeNS(Or,t,n):n==null||i&&!Wr(n)?e.removeAttribute(t):e.setAttribute(t,i?"":$e(n)?String(n):n)}function Rr(e,t,n,s){if(t==="innerHTML"||t==="textContent"){n!=null&&(e[t]=t==="innerHTML"?to(n):n);return}const r=e.tagName;if(t==="value"&&r!=="PROGRESS"&&!r.includes("-")){const o=r==="OPTION"?e.getAttribute("value")||"":e.value,l=n==null?e.type==="checkbox"?"on":"":String(n);(o!==l||!("_value"in e))&&(e.value=l),n==null&&e.removeAttribute(t),e._value=n;return}let i=!1;if(n===""||n==null){const o=typeof e[t];o==="boolean"?n=Wr(n):n==null&&o==="string"?(n="",i=!0):o==="number"&&(n=0,i=!0)}try{e[t]=n}catch{}i&&e.removeAttribute(t)}function Js(e,t,n,s){e.addEventListener(t,n,s)}function Vc(e,t,n,s){e.removeEventListener(t,n,s)}const Dr=Symbol("_vei");function jc(e,t,n,s,r=null){const i=e[Dr]||(e[Dr]={}),o=i[t];if(s&&o)o.value=s;else{const[l,c]=Kc(t);if(s){const h=i[t]=Wc(s,r);Js(e,l,h,c)}else o&&(Vc(e,l,o,c),i[t]=void 0)}}const Nr=/(?:Once|Passive|Capture)$/;function Kc(e){let t;if(Nr.test(e)){t={};let s;for(;s=e.match(Nr);)e=e.slice(0,e.length-s[0].length),t[s[0].toLowerCase()]=!0}return[e[2]===":"?e.slice(3):We(e.slice(2)),t]}let es=0;const kc=Promise.resolve(),Uc=()=>es||(kc.then(()=>es=0),es=Date.now());function Wc(e,t){const n=s=>{if(!s._vts)s._vts=Date.now();else if(s._vts<=n.attached)return;Re(Gc(s,n.value),t,5,[s])};return n.value=e,n.attached=Uc(),n}function Gc(e,t){if(D(t)){const n=e.stopImmediatePropagation;return e.stopImmediatePropagation=()=>{n.call(e),e._stopped=!0},t.map(s=>r=>!r._stopped&&s&&s(r))}else return t}const Lr=e=>e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)>96&&e.charCodeAt(2)<123,qc=(e,t,n,s,r,i)=>{const o=r==="svg";t==="class"?Lc(e,s,o):t==="style"?$c(e,n,s):An(t)?vs(t)||jc(e,t,n,s,i):(t[0]==="."?(t=t.slice(1),!0):t[0]==="^"?(t=t.slice(1),!1):Jc(e,t,s,o))?(Rr(e,t,s),!e.tagName.includes("-")&&(t==="value"||t==="checked"||t==="selected")&&Pr(e,t,s,o,i,t!=="value")):e._isVueCE&&(/[A-Z]/.test(t)||!se(s))?Rr(e,we(t),s):(t==="true-value"?e._trueValue=s:t==="false-value"&&(e._falseValue=s),Pr(e,t,s,o))};function Jc(e,t,n,s){if(s)return!!(t==="innerHTML"||t==="textContent"||t in e&&Lr(t)&&$(n));if(t==="spellcheck"||t==="draggable"||t==="translate"||t==="form"||t==="list"&&e.tagName==="INPUT"||t==="type"&&e.tagName==="TEXTAREA")return!1;if(t==="width"||t==="height"){const r=e.tagName;if(r==="IMG"||r==="VIDEO"||r==="CANVAS"||r==="SOURCE")return!1}return Lr(t)&&se(n)?!1:t in e}const fo=new WeakMap,uo=new WeakMap,Sn=Symbol("_moveCb"),Br=Symbol("_enterCb"),Yc=e=>(delete e.props.mode,e),zc=Yc({name:"TransitionGroup",props:ie({},so,{tag:String,moveClass:String}),setup(e,{slots:t}){const n=It(),s=Ti();let r,i;return $s(()=>{if(!r.length)return;const o=e.moveClass||`${e.name||"v"}-move`;if(!ef(r[0].el,n.vnode.el,o))return;r.forEach(Xc),r.forEach(Zc);const l=r.filter(Qc);oo(),l.forEach(c=>{const h=c.el,u=h.style;Ve(h,o),u.transform=u.webkitTransform=u.transitionDuration="";const a=h[Sn]=p=>{p&&p.target!==h||(!p||/transform$/.test(p.propertyName))&&(h.removeEventListener("transitionend",a),h[Sn]=null,Ye(h,o))};h.addEventListener("transitionend",a)})}),()=>{const o=G(e),l=ro(o);let c=o.tag||ye;if(r=[],i)for(let h=0;h<i.length;h++){const u=i[h];u.el&&u.el instanceof Element&&(r.push(u),Qe(u,Gt(u,l,s,n)),fo.set(u,u.el.getBoundingClientRect()))}i=t.default?Bs(t.default()):[];for(let h=0;h<i.length;h++){const u=i[h];u.key!=null&&Qe(u,Gt(u,l,s,n))}return ae(c,null,i)}}}),Lf=zc;function Xc(e){const t=e.el;t[Sn]&&t[Sn](),t[Br]&&t[Br]()}function Zc(e){uo.set(e,e.el.getBoundingClientRect())}function Qc(e){const t=fo.get(e),n=uo.get(e),s=t.left-n.left,r=t.top-n.top;if(s||r){const i=e.el.style;return i.transform=i.webkitTransform=`translate(${s}px,${r}px)`,i.transitionDuration="0s",e}}function ef(e,t,n){const s=e.cloneNode(),r=e[Et];r&&r.forEach(l=>{l.split(/\s+/).forEach(c=>c&&s.classList.remove(c))}),n.split(/\s+/).forEach(l=>l&&s.classList.add(l)),s.style.display="none";const i=t.nodeType===1?t:t.parentNode;i.appendChild(s);const{hasTransform:o}=io(s);return i.removeChild(s),o}const En=e=>{const t=e.props["onUpdate:modelValue"]||!1;return D(t)?n=>bt(t,n):t},Tt=Symbol("_assign"),Bf={deep:!0,created(e,t,n){e[Tt]=En(n),Js(e,"change",()=>{const s=e._modelValue,r=ao(e),i=e.checked,o=e[Tt];if(D(s)){const l=Gr(s,r),c=l!==-1;if(i&&!c)o(s.concat(r));else if(!i&&c){const h=[...s];h.splice(l,1),o(h)}}else if(In(s)){const l=new Set(s);i?l.add(r):l.delete(r),o(l)}else o(ho(e,i))})},mounted:$r,beforeUpdate(e,t,n){e[Tt]=En(n),$r(e,t,n)}};function $r(e,{value:t},n){e._modelValue=t;let s;D(t)?s=Gr(t,n.props.value)>-1:In(t)?s=t.has(n.props.value):s=wt(t,ho(e,!0)),e.checked!==s&&(e.checked=s)}const $f={created(e,{value:t},n){e.checked=wt(t,n.props.value),e[Tt]=En(n),Js(e,"change",()=>{e[Tt](ao(e))})},beforeUpdate(e,{value:t,oldValue:n},s){e[Tt]=En(s),t!==n&&(e.checked=wt(t,s.props.value))}};function ao(e){return"_value"in e?e._value:e.value}function ho(e,t){const n=t?"_trueValue":"_falseValue";return n in e?e[n]:t}const tf=["ctrl","shift","alt","meta"],nf={stop:e=>e.stopPropagation(),prevent:e=>e.preventDefault(),self:e=>e.target!==e.currentTarget,ctrl:e=>!e.ctrlKey,shift:e=>!e.shiftKey,alt:e=>!e.altKey,meta:e=>!e.metaKey,left:e=>"button"in e&&e.button!==0,middle:e=>"button"in e&&e.button!==1,right:e=>"button"in e&&e.button!==2,exact:(e,t)=>tf.some(n=>e[`${n}Key`]&&!t.includes(n))},Hf=(e,t)=>{const n=e._withMods||(e._withMods={}),s=t.join(".");return n[s]||(n[s]=(r,...i)=>{for(let o=0;o<t.length;o++){const l=nf[t[o]];if(l&&l(r,t))return}return e(r,...i)})},sf={esc:"escape",space:" ",up:"arrow-up",left:"arrow-left",right:"arrow-right",down:"arrow-down",delete:"backspace"},Vf=(e,t)=>{const n=e._withKeys||(e._withKeys={}),s=t.join(".");return n[s]||(n[s]=r=>{if(!("key"in r))return;const i=We(r.key);if(t.some(o=>o===i||sf[o]===i))return e(r)})},rf=ie({patchProp:qc},Pc);let Hr;function po(){return Hr||(Hr=Jl(rf))}const jf=(...e)=>{po().render(...e)},Kf=(...e)=>{const t=po().createApp(...e),{mount:n}=t;return t.mount=s=>{const r=lf(s);if(!r)return;const i=t._component;!$(i)&&!i.render&&!i.template&&(i.template=r.innerHTML),r.nodeType===1&&(r.textContent="");const o=n(r,!1,of(r));return r instanceof Element&&(r.removeAttribute("v-cloak"),r.setAttribute("data-v-app","")),o},t};function of(e){if(e instanceof SVGElement)return"svg";if(typeof MathMLElement=="function"&&e instanceof MathMLElement)return"mathml"}function lf(e){return se(e)?document.querySelector(e):e}export{Rf as $,hf as A,ui as B,It as C,uf as D,Os as E,Af as F,mf as G,nl as H,vt as I,G as J,bf as K,Ic as L,af as M,jl as N,Hs as O,ye as P,Vs as Q,ae as R,Mi as S,$n as T,dt as U,Kf as V,Ue as W,ce as X,Mn as Y,we as Z,Lf as _,un as a,vf as a0,$s as a1,Sl as a2,wl as a3,gf as a4,yf as a5,jf as a6,_c as a7,Al as a8,Oo as a9,Rs as aa,ds as ab,_l as ac,ws as ad,xf as ae,wf as af,If as ag,Bf as ah,Nf as ai,Of as aj,$f as ak,_f as al,Ff as am,Cf as an,Sf as ao,xn as b,Ac as c,Mf as d,pf as e,Zi as f,Ss as g,Ef as h,ue as i,Tf as j,Pf as k,Vf as l,yc as m,gl as n,ff as o,Hf as p,ll as q,sl as r,tl as s,df as t,di as u,Df as v,an as w,Ln as x,Po as y,cf as z};
17
+ **/let _s;const Cr=typeof window<"u"&&window.trustedTypes;if(Cr)try{_s=Cr.createPolicy("vue",{createHTML:e=>e})}catch{}const to=_s?e=>_s.createHTML(e):e=>e,Mc="http://www.w3.org/2000/svg",Oc="http://www.w3.org/1998/Math/MathML",je=typeof document<"u"?document:null,Tr=je&&je.createElement("template"),Pc={insert:(e,t,n)=>{t.insertBefore(e,n||null)},remove:e=>{const t=e.parentNode;t&&t.removeChild(e)},createElement:(e,t,n,s)=>{const r=t==="svg"?je.createElementNS(Mc,e):t==="mathml"?je.createElementNS(Oc,e):n?je.createElement(e,{is:n}):je.createElement(e);return e==="select"&&s&&s.multiple!=null&&r.setAttribute("multiple",s.multiple),r},createText:e=>je.createTextNode(e),createComment:e=>je.createComment(e),setText:(e,t)=>{e.nodeValue=t},setElementText:(e,t)=>{e.textContent=t},parentNode:e=>e.parentNode,nextSibling:e=>e.nextSibling,querySelector:e=>je.querySelector(e),setScopeId(e,t){e.setAttribute(t,"")},insertStaticContent(e,t,n,s,r,i){const o=n?n.previousSibling:t.lastChild;if(r&&(r===i||r.nextSibling))for(;t.insertBefore(r.cloneNode(!0),n),!(r===i||!(r=r.nextSibling)););else{Tr.innerHTML=to(s==="svg"?`<svg>${e}</svg>`:s==="mathml"?`<math>${e}</math>`:e);const l=Tr.content;if(s==="svg"||s==="mathml"){const c=l.firstChild;for(;c.firstChild;)l.appendChild(c.firstChild);l.removeChild(c)}t.insertBefore(l,n)}return[o?o.nextSibling:t.firstChild,n?n.previousSibling:t.lastChild]}},Je="transition",Rt="animation",Et=Symbol("_vtc"),no={name:String,type:String,css:{type:Boolean,default:!0},duration:[String,Number,Object],enterFromClass:String,enterActiveClass:String,enterToClass:String,appearFromClass:String,appearActiveClass:String,appearToClass:String,leaveFromClass:String,leaveActiveClass:String,leaveToClass:String},so=ie({},wi,no),Rc=e=>(e.displayName="Transition",e.props=so,e),Rf=Rc((e,{slots:t})=>Ic(Cl,ro(e),t)),ot=(e,t=[])=>{D(e)?e.forEach(n=>n(...t)):e&&e(...t)},wr=e=>e?D(e)?e.some(t=>t.length>1):e.length>1:!1;function ro(e){const t={};for(const O in e)O in no||(t[O]=e[O]);if(e.css===!1)return t;const{name:n="v",type:s,duration:r,enterFromClass:i=`${n}-enter-from`,enterActiveClass:o=`${n}-enter-active`,enterToClass:l=`${n}-enter-to`,appearFromClass:c=i,appearActiveClass:h=o,appearToClass:u=l,leaveFromClass:a=`${n}-leave-from`,leaveActiveClass:p=`${n}-leave-active`,leaveToClass:_=`${n}-leave-to`}=e,C=Dc(r),P=C&&C[0],W=C&&C[1],{onBeforeEnter:H,onEnter:E,onEnterCancelled:F,onLeave:b,onLeaveCancelled:w,onBeforeAppear:R=H,onAppear:j=E,onAppearCancelled:K=F}=t,M=(O,q,re)=>{Ye(O,q?u:l),Ye(O,q?h:o),re&&re()},L=(O,q)=>{O._isLeaving=!1,Ye(O,a),Ye(O,_),Ye(O,p),q&&q()},k=O=>(q,re)=>{const Se=O?j:E,ne=()=>M(q,O,re);ot(Se,[q,ne]),Sr(()=>{Ye(q,O?c:i),Ve(q,O?u:l),wr(Se)||Er(q,s,P,ne)})};return ie(t,{onBeforeEnter(O){ot(H,[O]),Ve(O,i),Ve(O,o)},onBeforeAppear(O){ot(R,[O]),Ve(O,c),Ve(O,h)},onEnter:k(!1),onAppear:k(!0),onLeave(O,q){O._isLeaving=!0;const re=()=>L(O,q);Ve(O,a),Ve(O,p),oo(),Sr(()=>{O._isLeaving&&(Ye(O,a),Ve(O,_),wr(b)||Er(O,s,W,re))}),ot(b,[O,re])},onEnterCancelled(O){M(O,!1),ot(F,[O])},onAppearCancelled(O){M(O,!0),ot(K,[O])},onLeaveCancelled(O){L(O),ot(w,[O])}})}function Dc(e){if(e==null)return null;if(X(e))return[Zn(e.enter),Zn(e.leave)];{const t=Zn(e);return[t,t]}}function Zn(e){return kr(e)}function Ve(e,t){t.split(/\s+/).forEach(n=>n&&e.classList.add(n)),(e[Et]||(e[Et]=new Set)).add(t)}function Ye(e,t){t.split(/\s+/).forEach(s=>s&&e.classList.remove(s));const n=e[Et];n&&(n.delete(t),n.size||(e[Et]=void 0))}function Sr(e){requestAnimationFrame(()=>{requestAnimationFrame(e)})}let Nc=0;function Er(e,t,n,s){const r=e._endId=++Nc,i=()=>{r===e._endId&&s()};if(n!=null)return setTimeout(i,n);const{type:o,timeout:l,propCount:c}=io(e,t);if(!o)return s();const h=o+"end";let u=0;const a=()=>{e.removeEventListener(h,p),i()},p=_=>{_.target===e&&++u>=c&&a()};setTimeout(()=>{u<c&&a()},l+1),e.addEventListener(h,p)}function io(e,t){const n=window.getComputedStyle(e),s=C=>(n[C]||"").split(", "),r=s(`${Je}Delay`),i=s(`${Je}Duration`),o=Ar(r,i),l=s(`${Rt}Delay`),c=s(`${Rt}Duration`),h=Ar(l,c);let u=null,a=0,p=0;t===Je?o>0&&(u=Je,a=o,p=i.length):t===Rt?h>0&&(u=Rt,a=h,p=c.length):(a=Math.max(o,h),u=a>0?o>h?Je:Rt:null,p=u?u===Je?i.length:c.length:0);const _=u===Je&&/\b(transform|all)(,|$)/.test(s(`${Je}Property`).toString());return{type:u,timeout:a,propCount:p,hasTransform:_}}function Ar(e,t){for(;e.length<t.length;)e=e.concat(e);return Math.max(...t.map((n,s)=>Ir(n)+Ir(e[s])))}function Ir(e){return e==="auto"?0:Number(e.slice(0,-1).replace(",","."))*1e3}function oo(){return document.body.offsetHeight}function Lc(e,t,n){const s=e[Et];s&&(t=(t?[t,...s]:[...s]).join(" ")),t==null?e.removeAttribute("class"):n?e.setAttribute("class",t):e.className=t}const Tn=Symbol("_vod"),lo=Symbol("_vsh"),Df={beforeMount(e,{value:t},{transition:n}){e[Tn]=e.style.display==="none"?"":e.style.display,n&&t?n.beforeEnter(e):Dt(e,t)},mounted(e,{value:t},{transition:n}){n&&t&&n.enter(e)},updated(e,{value:t,oldValue:n},{transition:s}){!t!=!n&&(s?t?(s.beforeEnter(e),Dt(e,!0),s.enter(e)):s.leave(e,()=>{Dt(e,!1)}):Dt(e,t))},beforeUnmount(e,{value:t}){Dt(e,t)}};function Dt(e,t){e.style.display=t?e[Tn]:"none",e[lo]=!t}const co=Symbol("");function Nf(e){const t=It();if(!t)return;const n=t.ut=(r=e(t.proxy))=>{Array.from(document.querySelectorAll(`[data-v-owner="${t.uid}"]`)).forEach(i=>wn(i,r))},s=()=>{const r=e(t.proxy);t.ce?wn(t.ce,r):ys(t.subTree,r),n(r)};Mi(()=>{ec(s)}),Ln(()=>{const r=new MutationObserver(s);r.observe(t.subTree.el.parentNode,{childList:!0}),Vs(()=>r.disconnect())})}function ys(e,t){if(e.shapeFlag&128){const n=e.suspense;e=n.activeBranch,n.pendingBranch&&!n.isHydrating&&n.effects.push(()=>{ys(n.activeBranch,t)})}for(;e.component;)e=e.component.subTree;if(e.shapeFlag&1&&e.el)wn(e.el,t);else if(e.type===ye)e.children.forEach(n=>ys(n,t));else if(e.type===Vt){let{el:n,anchor:s}=e;for(;n&&(wn(n,t),n!==s);)n=n.nextSibling}}function wn(e,t){if(e.nodeType===1){const n=e.style;let s="";for(const r in t)n.setProperty(`--${r}`,t[r]),s+=`--${r}: ${t[r]};`;n[co]=s}}const Bc=/(^|;)\s*display\s*:/;function $c(e,t,n){const s=e.style,r=se(n);let i=!1;if(n&&!r){if(t)if(se(t))for(const o of t.split(";")){const l=o.slice(0,o.indexOf(":")).trim();n[l]==null&&hn(s,l,"")}else for(const o in t)n[o]==null&&hn(s,o,"");for(const o in n)o==="display"&&(i=!0),hn(s,o,n[o])}else if(r){if(t!==n){const o=s[co];o&&(n+=";"+o),s.cssText=n,i=Bc.test(n)}}else t&&e.removeAttribute("style");Tn in e&&(e[Tn]=i?s.display:"",e[lo]&&(s.display="none"))}const Fr=/\s*!important$/;function hn(e,t,n){if(D(n))n.forEach(s=>hn(e,t,s));else if(n==null&&(n=""),t.startsWith("--"))e.setProperty(t,n);else{const s=Hc(e,t);Fr.test(n)?e.setProperty(We(s),n.replace(Fr,""),"important"):e[s]=n}}const Mr=["Webkit","Moz","ms"],Qn={};function Hc(e,t){const n=Qn[t];if(n)return n;let s=we(t);if(s!=="filter"&&s in e)return Qn[t]=s;s=Mn(s);for(let r=0;r<Mr.length;r++){const i=Mr[r]+s;if(i in e)return Qn[t]=i}return t}const Or="http://www.w3.org/1999/xlink";function Pr(e,t,n,s,r,i=Fo(t)){s&&t.startsWith("xlink:")?n==null?e.removeAttributeNS(Or,t.slice(6,t.length)):e.setAttributeNS(Or,t,n):n==null||i&&!Wr(n)?e.removeAttribute(t):e.setAttribute(t,i?"":$e(n)?String(n):n)}function Rr(e,t,n,s){if(t==="innerHTML"||t==="textContent"){n!=null&&(e[t]=t==="innerHTML"?to(n):n);return}const r=e.tagName;if(t==="value"&&r!=="PROGRESS"&&!r.includes("-")){const o=r==="OPTION"?e.getAttribute("value")||"":e.value,l=n==null?e.type==="checkbox"?"on":"":String(n);(o!==l||!("_value"in e))&&(e.value=l),n==null&&e.removeAttribute(t),e._value=n;return}let i=!1;if(n===""||n==null){const o=typeof e[t];o==="boolean"?n=Wr(n):n==null&&o==="string"?(n="",i=!0):o==="number"&&(n=0,i=!0)}try{e[t]=n}catch{}i&&e.removeAttribute(t)}function Js(e,t,n,s){e.addEventListener(t,n,s)}function Vc(e,t,n,s){e.removeEventListener(t,n,s)}const Dr=Symbol("_vei");function jc(e,t,n,s,r=null){const i=e[Dr]||(e[Dr]={}),o=i[t];if(s&&o)o.value=s;else{const[l,c]=Kc(t);if(s){const h=i[t]=Wc(s,r);Js(e,l,h,c)}else o&&(Vc(e,l,o,c),i[t]=void 0)}}const Nr=/(?:Once|Passive|Capture)$/;function Kc(e){let t;if(Nr.test(e)){t={};let s;for(;s=e.match(Nr);)e=e.slice(0,e.length-s[0].length),t[s[0].toLowerCase()]=!0}return[e[2]===":"?e.slice(3):We(e.slice(2)),t]}let es=0;const kc=Promise.resolve(),Uc=()=>es||(kc.then(()=>es=0),es=Date.now());function Wc(e,t){const n=s=>{if(!s._vts)s._vts=Date.now();else if(s._vts<=n.attached)return;Re(Gc(s,n.value),t,5,[s])};return n.value=e,n.attached=Uc(),n}function Gc(e,t){if(D(t)){const n=e.stopImmediatePropagation;return e.stopImmediatePropagation=()=>{n.call(e),e._stopped=!0},t.map(s=>r=>!r._stopped&&s&&s(r))}else return t}const Lr=e=>e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)>96&&e.charCodeAt(2)<123,qc=(e,t,n,s,r,i)=>{const o=r==="svg";t==="class"?Lc(e,s,o):t==="style"?$c(e,n,s):An(t)?vs(t)||jc(e,t,n,s,i):(t[0]==="."?(t=t.slice(1),!0):t[0]==="^"?(t=t.slice(1),!1):Jc(e,t,s,o))?(Rr(e,t,s),!e.tagName.includes("-")&&(t==="value"||t==="checked"||t==="selected")&&Pr(e,t,s,o,i,t!=="value")):e._isVueCE&&(/[A-Z]/.test(t)||!se(s))?Rr(e,we(t),s):(t==="true-value"?e._trueValue=s:t==="false-value"&&(e._falseValue=s),Pr(e,t,s,o))};function Jc(e,t,n,s){if(s)return!!(t==="innerHTML"||t==="textContent"||t in e&&Lr(t)&&$(n));if(t==="spellcheck"||t==="draggable"||t==="translate"||t==="form"||t==="list"&&e.tagName==="INPUT"||t==="type"&&e.tagName==="TEXTAREA")return!1;if(t==="width"||t==="height"){const r=e.tagName;if(r==="IMG"||r==="VIDEO"||r==="CANVAS"||r==="SOURCE")return!1}return Lr(t)&&se(n)?!1:t in e}const fo=new WeakMap,uo=new WeakMap,Sn=Symbol("_moveCb"),Br=Symbol("_enterCb"),Yc=e=>(delete e.props.mode,e),zc=Yc({name:"TransitionGroup",props:ie({},so,{tag:String,moveClass:String}),setup(e,{slots:t}){const n=It(),s=Ti();let r,i;return $s(()=>{if(!r.length)return;const o=e.moveClass||`${e.name||"v"}-move`;if(!ef(r[0].el,n.vnode.el,o))return;r.forEach(Xc),r.forEach(Zc);const l=r.filter(Qc);oo(),l.forEach(c=>{const h=c.el,u=h.style;Ve(h,o),u.transform=u.webkitTransform=u.transitionDuration="";const a=h[Sn]=p=>{p&&p.target!==h||(!p||/transform$/.test(p.propertyName))&&(h.removeEventListener("transitionend",a),h[Sn]=null,Ye(h,o))};h.addEventListener("transitionend",a)})}),()=>{const o=G(e),l=ro(o);let c=o.tag||ye;if(r=[],i)for(let h=0;h<i.length;h++){const u=i[h];u.el&&u.el instanceof Element&&(r.push(u),Qe(u,Gt(u,l,s,n)),fo.set(u,u.el.getBoundingClientRect()))}i=t.default?Bs(t.default()):[];for(let h=0;h<i.length;h++){const u=i[h];u.key!=null&&Qe(u,Gt(u,l,s,n))}return ae(c,null,i)}}}),Lf=zc;function Xc(e){const t=e.el;t[Sn]&&t[Sn](),t[Br]&&t[Br]()}function Zc(e){uo.set(e,e.el.getBoundingClientRect())}function Qc(e){const t=fo.get(e),n=uo.get(e),s=t.left-n.left,r=t.top-n.top;if(s||r){const i=e.el.style;return i.transform=i.webkitTransform=`translate(${s}px,${r}px)`,i.transitionDuration="0s",e}}function ef(e,t,n){const s=e.cloneNode(),r=e[Et];r&&r.forEach(l=>{l.split(/\s+/).forEach(c=>c&&s.classList.remove(c))}),n.split(/\s+/).forEach(l=>l&&s.classList.add(l)),s.style.display="none";const i=t.nodeType===1?t:t.parentNode;i.appendChild(s);const{hasTransform:o}=io(s);return i.removeChild(s),o}const En=e=>{const t=e.props["onUpdate:modelValue"]||!1;return D(t)?n=>bt(t,n):t},Tt=Symbol("_assign"),Bf={deep:!0,created(e,t,n){e[Tt]=En(n),Js(e,"change",()=>{const s=e._modelValue,r=ao(e),i=e.checked,o=e[Tt];if(D(s)){const l=Gr(s,r),c=l!==-1;if(i&&!c)o(s.concat(r));else if(!i&&c){const h=[...s];h.splice(l,1),o(h)}}else if(In(s)){const l=new Set(s);i?l.add(r):l.delete(r),o(l)}else o(ho(e,i))})},mounted:$r,beforeUpdate(e,t,n){e[Tt]=En(n),$r(e,t,n)}};function $r(e,{value:t},n){e._modelValue=t;let s;D(t)?s=Gr(t,n.props.value)>-1:In(t)?s=t.has(n.props.value):s=wt(t,ho(e,!0)),e.checked!==s&&(e.checked=s)}const $f={created(e,{value:t},n){e.checked=wt(t,n.props.value),e[Tt]=En(n),Js(e,"change",()=>{e[Tt](ao(e))})},beforeUpdate(e,{value:t,oldValue:n},s){e[Tt]=En(s),t!==n&&(e.checked=wt(t,s.props.value))}};function ao(e){return"_value"in e?e._value:e.value}function ho(e,t){const n=t?"_trueValue":"_falseValue";return n in e?e[n]:t}const tf=["ctrl","shift","alt","meta"],nf={stop:e=>e.stopPropagation(),prevent:e=>e.preventDefault(),self:e=>e.target!==e.currentTarget,ctrl:e=>!e.ctrlKey,shift:e=>!e.shiftKey,alt:e=>!e.altKey,meta:e=>!e.metaKey,left:e=>"button"in e&&e.button!==0,middle:e=>"button"in e&&e.button!==1,right:e=>"button"in e&&e.button!==2,exact:(e,t)=>tf.some(n=>e[`${n}Key`]&&!t.includes(n))},Hf=(e,t)=>{const n=e._withMods||(e._withMods={}),s=t.join(".");return n[s]||(n[s]=(r,...i)=>{for(let o=0;o<t.length;o++){const l=nf[t[o]];if(l&&l(r,t))return}return e(r,...i)})},sf={esc:"escape",space:" ",up:"arrow-up",left:"arrow-left",right:"arrow-right",down:"arrow-down",delete:"backspace"},Vf=(e,t)=>{const n=e._withKeys||(e._withKeys={}),s=t.join(".");return n[s]||(n[s]=r=>{if(!("key"in r))return;const i=We(r.key);if(t.some(o=>o===i||sf[o]===i))return e(r)})},rf=ie({patchProp:qc},Pc);let Hr;function po(){return Hr||(Hr=Jl(rf))}const jf=(...e)=>{po().render(...e)},Kf=(...e)=>{const t=po().createApp(...e),{mount:n}=t;return t.mount=s=>{const r=lf(s);if(!r)return;const i=t._component;!$(i)&&!i.render&&!i.template&&(i.template=r.innerHTML),r.nodeType===1&&(r.textContent="");const o=n(r,!1,of(r));return r instanceof Element&&(r.removeAttribute("v-cloak"),r.setAttribute("data-v-app","")),o},t};function of(e){if(e instanceof SVGElement)return"svg";if(typeof MathMLElement=="function"&&e instanceof MathMLElement)return"mathml"}function lf(e){return se(e)?document.querySelector(e):e}export{Rf as $,hf as A,ui as B,It as C,uf as D,Os as E,Af as F,mf as G,nl as H,vt as I,G as J,bf as K,Ic as L,af as M,jl as N,Hs as O,ye as P,Vs as Q,ae as R,Mi as S,$n as T,dt as U,Kf as V,Ue as W,ce as X,Mn as Y,we as Z,Lf as _,un as a,vf as a0,$s as a1,Sl as a2,wl as a3,gf as a4,yf as a5,jf as a6,_c as a7,Al as a8,Oo as a9,ds as aa,_l as ab,ws as ac,xf as ad,wf as ae,If as af,Bf as ag,Nf as ah,Of as ai,$f as aj,_f as ak,Ff as al,Cf as am,Sf as an,xn as b,Ac as c,Mf as d,pf as e,Zi as f,Ss as g,Ef as h,ue as i,Tf as j,Pf as k,Vf as l,yc as m,gl as n,ff as o,Hf as p,ll as q,sl as r,tl as s,df as t,di as u,Df as v,an as w,Ln as x,Po as y,cf as z};
@@ -0,0 +1 @@
1
+ import{t as v,c as b,b as S,d as V,e as D,v as B,f as p,g as y,j as w,k as C,m as N,l as j,p as T}from"./@vue.DD07jlOO.0.0.34-alpha.0.js";var L={name:"Toggle",emits:["input","update:modelValue","change"],props:{value:{validator:function(e){return n=>["number","string","boolean"].indexOf(typeof n)!==-1||n==null},required:!1},modelValue:{validator:function(e){return n=>["number","string","boolean"].indexOf(typeof n)!==-1||n==null},required:!1},id:{type:[String,Number],required:!1,default:"toggle"},name:{type:[String,Number],required:!1,default:"toggle"},disabled:{type:Boolean,required:!1,default:!1},required:{type:Boolean,required:!1,default:!1},falseValue:{type:[String,Number,Boolean],required:!1,default:!1},trueValue:{type:[String,Number,Boolean],required:!1,default:!0},onLabel:{type:[String,Object],required:!1,default:""},offLabel:{type:[String,Object],required:!1,default:""},classes:{type:Object,required:!1,default:()=>({})},labelledby:{type:String,required:!1},describedby:{type:String,required:!1},aria:{required:!1,type:Object,default:()=>({})}},setup(e,n){const a=function(d,o,c){const{value:r,modelValue:u,falseValue:t,trueValue:l,disabled:f}=v(d),i=u&&u.value!==void 0?u:r,s=b(()=>i.value===l.value),h=g=>{o.emit("input",g),o.emit("update:modelValue",g),o.emit("change",g)},k=()=>{h(l.value)},m=()=>{h(t.value)};return[null,void 0,!1,0,"0","off"].indexOf(i.value)!==-1&&[t.value,l.value].indexOf(i.value)===-1&&m(),[!0,1,"1","on"].indexOf(i.value)!==-1&&[t.value,l.value].indexOf(i.value)===-1&&k(),{externalValue:i,checked:s,update:h,check:k,uncheck:m,handleInput:g=>{h(g.target.checked?l.value:t.value)},handleClick:()=>{f.value||(s.value?m():k())}}}(e,n),O=function(d,o,c){const{trueValue:r,falseValue:u,onLabel:t,offLabel:l}=v(d),f=c.checked,i=c.update;return{label:b(()=>{let s=f.value?t.value:l.value;return s||(s="&nbsp;"),s}),toggle:()=>{i(f.value?u.value:r.value)},on:()=>{i(r.value)},off:()=>{i(u.value)}}}(e,0,{checked:a.checked,update:a.update}),q=function(d,o,c){const r=v(d),u=r.disabled,t=c.checked,l=b(()=>({container:"toggle-container",toggle:"toggle",toggleOn:"toggle-on",toggleOff:"toggle-off",toggleOnDisabled:"toggle-on-disabled",toggleOffDisabled:"toggle-off-disabled",handle:"toggle-handle",handleOn:"toggle-handle-on",handleOff:"toggle-handle-off",handleOnDisabled:"toggle-handle-on-disabled",handleOffDisabled:"toggle-handle-off-disabled",label:"toggle-label",...r.classes.value}));return{classList:b(()=>({container:l.value.container,toggle:[l.value.toggle,u.value?t.value?l.value.toggleOnDisabled:l.value.toggleOffDisabled:t.value?l.value.toggleOn:l.value.toggleOff],handle:[l.value.handle,u.value?t.value?l.value.handleOnDisabled:l.value.handleOffDisabled:t.value?l.value.handleOn:l.value.handleOff],label:l.value.label}))}}(e,0,{checked:a.checked}),x=function(d,o,c){const{disabled:r}=v(d),u=c.check,t=c.uncheck,l=c.checked;return{handleSpace:()=>{r.value||(l.value?t():u())}}}(e,0,{check:a.check,uncheck:a.uncheck,checked:a.checked});return{...a,...q,...O,...x}}};const M=["tabindex","aria-checked","aria-describedby","aria-labelledby"],z=["id","name","value","checked","disabled"],H=["innerHTML"],K=["checked"];L.render=function(e,n,a,O,q,x){return S(),V("div",N({class:e.classList.container,tabindex:a.disabled?void 0:0,"aria-checked":e.checked,"aria-describedby":a.describedby,"aria-labelledby":a.labelledby,role:"switch"},a.aria,{onKeypress:n[1]||(n[1]=j(T((...d)=>e.handleSpace&&e.handleSpace(...d),["prevent"]),["space"]))}),[D(p("input",{type:"checkbox",id:a.id,name:a.name,value:a.trueValue,checked:e.checked,disabled:a.disabled},null,8,z),[[B,!1]]),p("div",{class:y(e.classList.toggle),onClick:n[0]||(n[0]=(...d)=>e.handleClick&&e.handleClick(...d))},[p("span",{class:y(e.classList.handle)},null,2),w(e.$slots,"label",{checked:e.checked,classList:e.classList},()=>[p("span",{class:y(e.classList.label),innerHTML:e.label},null,10,H)]),a.required?(S(),V("input",{key:0,type:"checkbox",style:{appearance:"none",height:"1px",margin:"0",padding:"0",fontSize:"0",background:"transparent",position:"absolute",width:"100%",bottom:"0",outline:"none"},checked:e.checked,"aria-hidden":"true",tabindex:"-1",required:""},null,8,K)):C("v-if",!0)],2)],16,M)},L.__file="src/Toggle.vue";export{L as b};
@@ -0,0 +1 @@
1
+ import{q as pe,x as he,n as we,y as ge,o as Ae,z as Le,i as ne,u as He,A as We,B as ye,r as g,c as T,C as Se,w as C,D as oe,E as K,F as re,G as ie}from"./@vue.DD07jlOO.0.0.34-alpha.0.js";import{n as Y}from"./nprogress.BpOU_abF.0.0.34-alpha.0.js";function N(e){return ge()?(Ae(e),!0):!1}function Et(e){let n=0,t,o;const s=()=>{n-=1,o&&n<=0&&(o.stop(),t=void 0,o=void 0)};return(...r)=>(n+=1,o||(o=Le(!0),t=o.run(()=>e(...r))),N(s),t)}function Pe(e,n,{enumerable:t=!1,unwrap:o=!0}={}){for(const[s,r]of Object.entries(n))s!=="value"&&(ne(r)&&o?Object.defineProperty(e,s,{get(){return r.value},set(a){r.value=a},enumerable:t}):Object.defineProperty(e,s,{value:r,enumerable:t}));return e}function Ce(e,n){if(typeof Symbol<"u"){const t={...e};return Object.defineProperty(t,Symbol.iterator,{enumerable:!1,value(){let o=0;return{next:()=>({value:n[o++],done:o>n.length})}}}),t}else return Object.assign([...n],e)}function D(e){return typeof e=="function"?e():He(e)}const be={mounted:"mounted",updated:"updated",unmounted:"unmounted"},V=typeof window<"u"&&typeof document<"u";typeof WorkerGlobalScope<"u"&&globalThis instanceof WorkerGlobalScope;const Re=e=>e!=null,Ye=Object.prototype.toString,Ee=e=>Ye.call(e)==="[object Object]",P=()=>{},B=Ne();function Ne(){var e,n;return V&&((e=window==null?void 0:window.navigator)==null?void 0:e.userAgent)&&(/iP(?:ad|hone|od)/.test(window.navigator.userAgent)||((n=window==null?void 0:window.navigator)==null?void 0:n.maxTouchPoints)>2&&/iPad|Macintosh/.test(window==null?void 0:window.navigator.userAgent))}function le(e,n){function t(...o){return new Promise((s,r)=>{Promise.resolve(e(()=>n.apply(this,o),{fn:n,thisArg:this,args:o})).then(s).catch(r)})}return t}const _e=e=>e();function ze(e,n={}){let t,o,s=P;const r=l=>{clearTimeout(l),s(),s=P};return l=>{const i=D(e),u=D(n.maxWait);return t&&r(t),i<=0||u!==void 0&&u<=0?(o&&(r(o),o=null),Promise.resolve(l())):new Promise((v,f)=>{s=n.rejectOnCancel?f:v,u&&!o&&(o=setTimeout(()=>{t&&r(t),o=null,v(l())},u)),t=setTimeout(()=>{o&&r(o),o=null,v(l())},i)})}}function Ie(...e){let n=0,t,o=!0,s=P,r,a,l,i,u;!ne(e[0])&&typeof e[0]=="object"?{delay:a,trailing:l=!0,leading:i=!0,rejectOnCancel:u=!1}=e[0]:[a,l=!0,i=!0,u=!1]=e;const v=()=>{t&&(clearTimeout(t),t=void 0,s(),s=P)};return m=>{const c=D(a),p=Date.now()-n,h=()=>r=m();return v(),c<=0?(n=Date.now(),h()):(p>c&&(i||!o)?(n=Date.now(),h()):l&&(r=new Promise((S,d)=>{s=u?d:S,t=setTimeout(()=>{n=Date.now(),o=!0,S(h()),v()},Math.max(0,c-p))})),!i&&!t&&(t=setTimeout(()=>o=!0,c)),o=!1,r)}}function $e(e=_e){const n=g(!0);function t(){n.value=!1}function o(){n.value=!0}const s=(...r)=>{n.value&&e(...r)};return{isActive:ye(n),pause:t,resume:o,eventFilter:s}}function je(e){const n=Object.create(null);return t=>n[t]||(n[t]=e(t))}const Xe=/-(\w)/g,Be=je(e=>e.replace(Xe,(n,t)=>t?t.toUpperCase():""));function Ve(e){return Se()}function xe(...e){if(e.length!==1)return We(...e);const n=e[0];return typeof n=="function"?ye(pe(()=>({get:n,set:P}))):g(n)}function qe(e,n=200,t={}){return le(ze(n,t),e)}function Ge(e,n=200,t=!1,o=!0,s=!1){return le(Ie(n,t,o,s),e)}function _t(e,n={}){let t=e,o,s;const r=pe((m,c)=>(o=m,s=c,{get(){return a()},set(p){l(p)}}));function a(m=!0){return m&&o(),t}function l(m,c=!0){var p,h;if(m===t)return;const S=t;((p=n.onBeforeChange)==null?void 0:p.call(n,m,S))!==!1&&(t=m,(h=n.onChanged)==null||h.call(n,m,S),c&&s())}return Pe(r,{get:a,set:l,untrackedGet:()=>a(!1),silentSet:m=>l(m,!1),peek:()=>a(!1),lay:m=>l(m,!1)},{enumerable:!0})}function Ue(e,n,t={}){const{eventFilter:o=_e,...s}=t;return C(e,le(o,n),s)}function Je(e,n,t={}){const{eventFilter:o,...s}=t,{eventFilter:r,pause:a,resume:l,isActive:i}=$e(o);return{stop:Ue(e,n,{...s,eventFilter:r}),pause:a,resume:l,isActive:i}}function q(e,n=!0,t){Ve()?he(e,t):n?e():we(e)}const Ke=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[T\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/i,Qe=/[YMDHhms]o|\[([^\]]+)\]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a{1,2}|A{1,2}|m{1,2}|s{1,2}|Z{1,2}|SSS/g;function Ze(e,n,t,o){let s=e<12?"AM":"PM";return o&&(s=s.split("").reduce((r,a)=>r+=`${a}.`,"")),t?s.toLowerCase():s}function I(e){const n=["th","st","nd","rd"],t=e%100;return e+(n[(t-20)%10]||n[t]||n[0])}function et(e,n,t={}){var o;const s=e.getFullYear(),r=e.getMonth(),a=e.getDate(),l=e.getHours(),i=e.getMinutes(),u=e.getSeconds(),v=e.getMilliseconds(),f=e.getDay(),m=(o=t.customMeridiem)!=null?o:Ze,c={Yo:()=>I(s),YY:()=>String(s).slice(-2),YYYY:()=>s,M:()=>r+1,Mo:()=>I(r+1),MM:()=>`${r+1}`.padStart(2,"0"),MMM:()=>e.toLocaleDateString(D(t.locales),{month:"short"}),MMMM:()=>e.toLocaleDateString(D(t.locales),{month:"long"}),D:()=>String(a),Do:()=>I(a),DD:()=>`${a}`.padStart(2,"0"),H:()=>String(l),Ho:()=>I(l),HH:()=>`${l}`.padStart(2,"0"),h:()=>`${l%12||12}`.padStart(1,"0"),ho:()=>I(l%12||12),hh:()=>`${l%12||12}`.padStart(2,"0"),m:()=>String(i),mo:()=>I(i),mm:()=>`${i}`.padStart(2,"0"),s:()=>String(u),so:()=>I(u),ss:()=>`${u}`.padStart(2,"0"),SSS:()=>`${v}`.padStart(3,"0"),d:()=>f,dd:()=>e.toLocaleDateString(D(t.locales),{weekday:"narrow"}),ddd:()=>e.toLocaleDateString(D(t.locales),{weekday:"short"}),dddd:()=>e.toLocaleDateString(D(t.locales),{weekday:"long"}),A:()=>m(l,i),AA:()=>m(l,i,!1,!0),a:()=>m(l,i,!0),aa:()=>m(l,i,!0,!0)};return n.replace(Qe,(p,h)=>{var S,d;return(d=h??((S=c[p])==null?void 0:S.call(c)))!=null?d:p})}function tt(e){if(e===null)return new Date(Number.NaN);if(e===void 0)return new Date;if(e instanceof Date)return new Date(e);if(typeof e=="string"&&!/Z$/i.test(e)){const n=e.match(Ke);if(n){const t=n[2]-1||0,o=(n[7]||"0").substring(0,3);return new Date(n[1],t,n[3]||1,n[4]||0,n[5]||0,n[6]||0,o)}}return new Date(e)}function xt(e,n="HH:mm:ss",t={}){return T(()=>et(tt(D(e)),D(n),t))}function Dt(e,n,t){let o;ne(t)?o={evaluating:t}:o=t||{};const{lazy:s=!1,evaluating:r=void 0,shallow:a=!0,onError:l=P}=o,i=g(!s),u=a?oe(n):g(n);let v=0;return re(async f=>{if(!i.value)return;v++;const m=v;let c=!1;r&&Promise.resolve().then(()=>{r.value=!0});try{const p=await e(h=>{f(()=>{r&&(r.value=!1),c||h()})});m===v&&(u.value=p)}catch(p){l(p)}finally{r&&m===v&&(r.value=!1),c=!0}}),s?T(()=>(i.value=!0,u.value)):u}function Mt(e={}){const{inheritAttrs:n=!0}=e,t=oe(),o=ie({setup(r,{slots:a}){return()=>{t.value=a.default}}}),s=ie({inheritAttrs:n,setup(r,{attrs:a,slots:l}){return()=>{var i;t.value;const u=(i=t.value)==null?void 0:i.call(t,{...nt(a),$slots:l});return n&&(u==null?void 0:u.length)===1?u[0]:u}}});return Ce({define:o,reuse:s},[o,s])}function nt(e){const n={};for(const t in e)n[Be(t)]=e[t];return n}const W=V?window:void 0,De=V?window.document:void 0;function L(e){var n;const t=D(e);return(n=t==null?void 0:t.$el)!=null?n:t}function x(...e){let n,t,o,s;if(typeof e[0]=="string"||Array.isArray(e[0])?([t,o,s]=e,n=W):[n,t,o,s]=e,!n)return P;Array.isArray(t)||(t=[t]),Array.isArray(o)||(o=[o]);const r=[],a=()=>{r.forEach(v=>v()),r.length=0},l=(v,f,m,c)=>(v.addEventListener(f,m,c),()=>v.removeEventListener(f,m,c)),i=C(()=>[L(n),D(s)],([v,f])=>{if(a(),!v)return;const m=Ee(f)?{...f}:f;r.push(...t.flatMap(c=>o.map(p=>l(v,c,p,m))))},{immediate:!0,flush:"post"}),u=()=>{i(),a()};return N(u),u}let ae=!1;function Ot(e,n,t={}){const{window:o=W,ignore:s=[],capture:r=!0,detectIframe:a=!1}=t;if(!o)return P;B&&!ae&&(ae=!0,Array.from(o.document.body.children).forEach(c=>c.addEventListener("click",P)),o.document.documentElement.addEventListener("click",P));let l=!0;const i=c=>D(s).some(p=>{if(typeof p=="string")return Array.from(o.document.querySelectorAll(p)).some(h=>h===c.target||c.composedPath().includes(h));{const h=L(p);return h&&(c.target===h||c.composedPath().includes(h))}}),u=c=>{const p=L(e);if(!(!p||p===c.target||c.composedPath().includes(p))){if(c.detail===0&&(l=!i(c)),!l){l=!0;return}n(c)}};let v=!1;const f=[x(o,"click",c=>{v||(v=!0,setTimeout(()=>{v=!1},0),u(c))},{passive:!0,capture:r}),x(o,"pointerdown",c=>{const p=L(e);l=!i(c)&&!!(p&&!c.composedPath().includes(p))},{passive:!0}),a&&x(o,"blur",c=>{setTimeout(()=>{var p;const h=L(e);((p=o.document.activeElement)==null?void 0:p.tagName)==="IFRAME"&&!(h!=null&&h.contains(o.document.activeElement))&&n(c)},0)})].filter(Boolean);return()=>f.forEach(c=>c())}function ot(){const e=g(!1),n=Se();return n&&he(()=>{e.value=!0},n),e}function G(e){const n=ot();return T(()=>(n.value,!!e()))}function rt(e,n,t={}){const{window:o=W,...s}=t;let r;const a=G(()=>o&&"MutationObserver"in o),l=()=>{r&&(r.disconnect(),r=void 0)},i=T(()=>{const m=D(e),c=(Array.isArray(m)?m:[m]).map(L).filter(Re);return new Set(c)}),u=C(()=>i.value,m=>{l(),a.value&&m.size&&(r=new MutationObserver(n),m.forEach(c=>r.observe(c,s)))},{immediate:!0,flush:"post"}),v=()=>r==null?void 0:r.takeRecords(),f=()=>{u(),l()};return N(f),{isSupported:a,stop:f,takeRecords:v}}function lt(e,n={}){const{window:t=W}=n,o=G(()=>t&&"matchMedia"in t&&typeof t.matchMedia=="function");let s;const r=g(!1),a=u=>{r.value=u.matches},l=()=>{s&&("removeEventListener"in s?s.removeEventListener("change",a):s.removeListener(a))},i=re(()=>{o.value&&(l(),s=t.matchMedia(D(e)),"addEventListener"in s?s.addEventListener("change",a):s.addListener(a),r.value=s.matches)});return N(()=>{i(),l(),s=void 0}),r}const U=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},J="__vueuse_ssr_handlers__",st=ut();function ut(){return J in U||(U[J]=U[J]||{}),U[J]}function it(e,n){return st[e]||n}function at(e){return e==null?"any":e instanceof Set?"set":e instanceof Map?"map":e instanceof Date?"date":typeof e=="boolean"?"boolean":typeof e=="string"?"string":typeof e=="object"?"object":Number.isNaN(e)?"any":"number"}const ct={boolean:{read:e=>e==="true",write:e=>String(e)},object:{read:e=>JSON.parse(e),write:e=>JSON.stringify(e)},number:{read:e=>Number.parseFloat(e),write:e=>String(e)},any:{read:e=>e,write:e=>String(e)},string:{read:e=>e,write:e=>String(e)},map:{read:e=>new Map(JSON.parse(e)),write:e=>JSON.stringify(Array.from(e.entries()))},set:{read:e=>new Set(JSON.parse(e)),write:e=>JSON.stringify(Array.from(e))},date:{read:e=>new Date(e),write:e=>e.toISOString()}},ce="vueuse-storage";function ft(e,n,t,o={}){var s;const{flush:r="pre",deep:a=!0,listenToStorageChanges:l=!0,writeDefaults:i=!0,mergeDefaults:u=!1,shallow:v,window:f=W,eventFilter:m,onError:c=w=>{console.error(w)},initOnMounted:p}=o,h=(v?oe:g)(typeof n=="function"?n():n);if(!t)try{t=it("getDefaultStorage",()=>{var w;return(w=W)==null?void 0:w.localStorage})()}catch(w){c(w)}if(!t)return h;const S=D(n),d=at(S),E=(s=o.serializer)!=null?s:ct[d],{pause:A,resume:O}=Je(h,()=>k(h.value),{flush:r,deep:a,eventFilter:m});f&&l&&q(()=>{t instanceof Storage?x(f,"storage",H):x(f,ce,_),p&&H()}),p||H();function y(w,M){if(f){const F={key:e,oldValue:w,newValue:M,storageArea:t};f.dispatchEvent(t instanceof Storage?new StorageEvent("storage",F):new CustomEvent(ce,{detail:F}))}}function k(w){try{const M=t.getItem(e);if(w==null)y(M,null),t.removeItem(e);else{const F=E.write(w);M!==F&&(t.setItem(e,F),y(M,F))}}catch(M){c(M)}}function b(w){const M=w?w.newValue:t.getItem(e);if(M==null)return i&&S!=null&&t.setItem(e,E.write(S)),S;if(!w&&u){const F=E.read(M);return typeof u=="function"?u(F,S):d==="object"&&!Array.isArray(F)?{...S,...F}:F}else return typeof M!="string"?M:E.read(M)}function H(w){if(!(w&&w.storageArea!==t)){if(w&&w.key==null){h.value=S;return}if(!(w&&w.key!==e)){A();try{(w==null?void 0:w.newValue)!==E.write(h.value)&&(h.value=b(w))}catch(M){c(M)}finally{w?we(O):O()}}}}function _(w){H(w.detail)}return h}function Tt(e={}){const{document:n=De}=e;if(!n)return g("visible");const t=g(n.visibilityState);return x(n,"visibilitychange",()=>{t.value=n.visibilityState}),t}function Me(e,n,t={}){const{window:o=W,...s}=t;let r;const a=G(()=>o&&"ResizeObserver"in o),l=()=>{r&&(r.disconnect(),r=void 0)},i=T(()=>{const f=D(e);return Array.isArray(f)?f.map(m=>L(m)):[L(f)]}),u=C(i,f=>{if(l(),a.value&&o){r=new ResizeObserver(n);for(const m of f)m&&r.observe(m,s)}},{immediate:!0,flush:"post"}),v=()=>{l(),u()};return N(v),{isSupported:a,stop:v}}function Ft(e,n={}){const{reset:t=!0,windowResize:o=!0,windowScroll:s=!0,immediate:r=!0,updateTiming:a="sync"}=n,l=g(0),i=g(0),u=g(0),v=g(0),f=g(0),m=g(0),c=g(0),p=g(0);function h(){const d=L(e);if(!d){t&&(l.value=0,i.value=0,u.value=0,v.value=0,f.value=0,m.value=0,c.value=0,p.value=0);return}const E=d.getBoundingClientRect();l.value=E.height,i.value=E.bottom,u.value=E.left,v.value=E.right,f.value=E.top,m.value=E.width,c.value=E.x,p.value=E.y}function S(){a==="sync"?h():a==="next-frame"&&requestAnimationFrame(()=>h())}return Me(e,S),C(()=>L(e),d=>!d&&S()),rt(e,S,{attributeFilter:["style","class"]}),s&&x("scroll",S,{capture:!0,passive:!0}),o&&x("resize",S,{passive:!0}),q(()=>{r&&S()}),{height:l,bottom:i,left:u,right:v,top:f,width:m,x:c,y:p,update:S}}function kt(e,n={width:0,height:0},t={}){const{window:o=W,box:s="content-box"}=t,r=T(()=>{var f,m;return(m=(f=L(e))==null?void 0:f.namespaceURI)==null?void 0:m.includes("svg")}),a=g(n.width),l=g(n.height),{stop:i}=Me(e,([f])=>{const m=s==="border-box"?f.borderBoxSize:s==="content-box"?f.contentBoxSize:f.devicePixelContentBoxSize;if(o&&r.value){const c=L(e);if(c){const p=c.getBoundingClientRect();a.value=p.width,l.value=p.height}}else if(m){const c=Array.isArray(m)?m:[m];a.value=c.reduce((p,{inlineSize:h})=>p+h,0),l.value=c.reduce((p,{blockSize:h})=>p+h,0)}else a.value=f.contentRect.width,l.value=f.contentRect.height},t);q(()=>{const f=L(e);f&&(a.value="offsetWidth"in f?f.offsetWidth:n.width,l.value="offsetHeight"in f?f.offsetHeight:n.height)});const u=C(()=>L(e),f=>{a.value=f?n.width:0,l.value=f?n.height:0});function v(){i(),u()}return{width:a,height:l,stop:v}}const X=new Map;function At(e){const n=ge();function t(l){var i;const u=X.get(e)||new Set;u.add(l),X.set(e,u);const v=()=>s(l);return(i=n==null?void 0:n.cleanups)==null||i.push(v),v}function o(l){function i(...u){s(i),l(...u)}return t(i)}function s(l){const i=X.get(e);i&&(i.delete(l),i.size||r())}function r(){X.delete(e)}function a(l,i){var u;(u=X.get(e))==null||u.forEach(v=>v(l,i))}return{on:t,once:o,off:s,emit:a,reset:r}}const fe=["fullscreenchange","webkitfullscreenchange","webkitendfullscreen","mozfullscreenchange","MSFullscreenChange"];function Lt(e,n={}){const{document:t=De,autoExit:o=!1}=n,s=T(()=>{var d;return(d=L(e))!=null?d:t==null?void 0:t.querySelector("html")}),r=g(!1),a=T(()=>["requestFullscreen","webkitRequestFullscreen","webkitEnterFullscreen","webkitEnterFullScreen","webkitRequestFullScreen","mozRequestFullScreen","msRequestFullscreen"].find(d=>t&&d in t||s.value&&d in s.value)),l=T(()=>["exitFullscreen","webkitExitFullscreen","webkitExitFullScreen","webkitCancelFullScreen","mozCancelFullScreen","msExitFullscreen"].find(d=>t&&d in t||s.value&&d in s.value)),i=T(()=>["fullScreen","webkitIsFullScreen","webkitDisplayingFullscreen","mozFullScreen","msFullscreenElement"].find(d=>t&&d in t||s.value&&d in s.value)),u=["fullscreenElement","webkitFullscreenElement","mozFullScreenElement","msFullscreenElement"].find(d=>t&&d in t),v=G(()=>s.value&&t&&a.value!==void 0&&l.value!==void 0&&i.value!==void 0),f=()=>u?(t==null?void 0:t[u])===s.value:!1,m=()=>{if(i.value){if(t&&t[i.value]!=null)return t[i.value];{const d=s.value;if((d==null?void 0:d[i.value])!=null)return!!d[i.value]}}return!1};async function c(){if(!(!v.value||!r.value)){if(l.value)if((t==null?void 0:t[l.value])!=null)await t[l.value]();else{const d=s.value;(d==null?void 0:d[l.value])!=null&&await d[l.value]()}r.value=!1}}async function p(){if(!v.value||r.value)return;m()&&await c();const d=s.value;a.value&&(d==null?void 0:d[a.value])!=null&&(await d[a.value](),r.value=!0)}async function h(){await(r.value?c():p())}const S=()=>{const d=m();(!d||d&&f())&&(r.value=d)};return x(t,fe,S,!1),x(()=>L(s),fe,S,!1),o&&N(c),{isSupported:v,isFullscreen:r,enter:p,exit:c,toggle:h}}function Q(e){return typeof Window<"u"&&e instanceof Window?e.document.documentElement:typeof Document<"u"&&e instanceof Document?e.documentElement:e}const de=1;function Ht(e,n={}){const{throttle:t=0,idle:o=200,onStop:s=P,onScroll:r=P,offset:a={left:0,right:0,top:0,bottom:0},eventListenerOptions:l={capture:!1,passive:!0},behavior:i="auto",window:u=W,onError:v=b=>{console.error(b)}}=n,f=g(0),m=g(0),c=T({get(){return f.value},set(b){h(b,void 0)}}),p=T({get(){return m.value},set(b){h(void 0,b)}});function h(b,H){var _,w,M,F;if(!u)return;const R=D(e);if(!R)return;(M=R instanceof Document?u.document.body:R)==null||M.scrollTo({top:(_=D(H))!=null?_:p.value,left:(w=D(b))!=null?w:c.value,behavior:D(i)});const j=((F=R==null?void 0:R.document)==null?void 0:F.documentElement)||(R==null?void 0:R.documentElement)||R;c!=null&&(f.value=j.scrollLeft),p!=null&&(m.value=j.scrollTop)}const S=g(!1),d=K({left:!0,right:!1,top:!0,bottom:!1}),E=K({left:!1,right:!1,top:!1,bottom:!1}),A=b=>{S.value&&(S.value=!1,E.left=!1,E.right=!1,E.top=!1,E.bottom=!1,s(b))},O=qe(A,t+o),y=b=>{var H;if(!u)return;const _=((H=b==null?void 0:b.document)==null?void 0:H.documentElement)||(b==null?void 0:b.documentElement)||L(b),{display:w,flexDirection:M}=getComputedStyle(_),F=_.scrollLeft;E.left=F<f.value,E.right=F>f.value;const R=Math.abs(F)<=(a.left||0),j=Math.abs(F)+_.clientWidth>=_.scrollWidth-(a.right||0)-de;w==="flex"&&M==="row-reverse"?(d.left=j,d.right=R):(d.left=R,d.right=j),f.value=F;let z=_.scrollTop;b===u.document&&!z&&(z=u.document.body.scrollTop),E.top=z<m.value,E.bottom=z>m.value;const se=Math.abs(z)<=(a.top||0),ue=Math.abs(z)+_.clientHeight>=_.scrollHeight-(a.bottom||0)-de;w==="flex"&&M==="column-reverse"?(d.top=ue,d.bottom=se):(d.top=se,d.bottom=ue),m.value=z},k=b=>{var H;if(!u)return;const _=(H=b.target.documentElement)!=null?H:b.target;y(_),S.value=!0,O(b),r(b)};return x(e,"scroll",t?Ge(k,t,!0,!1):k,l),q(()=>{try{const b=D(e);if(!b)return;y(b)}catch(b){v(b)}}),x(e,"scrollend",A,l),{x:c,y:p,isScrolling:S,arrivedState:d,directions:E,measure(){const b=D(e);u&&b&&y(b)}}}function Wt(e,n,t={}){const{window:o=W}=t;return ft(e,n,o==null?void 0:o.localStorage,t)}const dt={page:e=>[e.pageX,e.pageY],client:e=>[e.clientX,e.clientY],screen:e=>[e.screenX,e.screenY],movement:e=>e instanceof Touch?null:[e.movementX,e.movementY]};function Pt(e={}){const{type:n="page",touch:t=!0,resetOnTouchEnds:o=!1,initialValue:s={x:0,y:0},window:r=W,target:a=r,scroll:l=!0,eventFilter:i}=e;let u=null;const v=g(s.x),f=g(s.y),m=g(null),c=typeof n=="function"?n:dt[n],p=y=>{const k=c(y);u=y,k&&([v.value,f.value]=k,m.value="mouse")},h=y=>{if(y.touches.length>0){const k=c(y.touches[0]);k&&([v.value,f.value]=k,m.value="touch")}},S=()=>{if(!u||!r)return;const y=c(u);u instanceof MouseEvent&&y&&(v.value=y[0]+r.scrollX,f.value=y[1]+r.scrollY)},d=()=>{v.value=s.x,f.value=s.y},E=i?y=>i(()=>p(y),{}):y=>p(y),A=i?y=>i(()=>h(y),{}):y=>h(y),O=i?()=>i(()=>S(),{}):()=>S();if(a){const y={passive:!0};x(a,["mousemove","dragover"],E,y),t&&n!=="movement"&&(x(a,["touchstart","touchmove"],A,y),o&&x(a,"touchend",d,y)),l&&n==="page"&&x(r,"scroll",O,{passive:!0})}return{x:v,y:f,sourceType:m}}function Ct(e={}){const{touch:n=!0,drag:t=!0,capture:o=!1,initialValue:s=!1,window:r=W}=e,a=g(s),l=g(null);if(!r)return{pressed:a,sourceType:l};const i=f=>()=>{a.value=!0,l.value=f},u=()=>{a.value=!1,l.value=null},v=T(()=>L(e.target)||r);return x(v,"mousedown",i("mouse"),{passive:!0,capture:o}),x(r,"mouseleave",u,{passive:!0,capture:o}),x(r,"mouseup",u,{passive:!0,capture:o}),t&&(x(v,"dragstart",i("mouse"),{passive:!0,capture:o}),x(r,"drop",u,{passive:!0,capture:o}),x(r,"dragend",u,{passive:!0,capture:o})),n&&(x(v,"touchstart",i("touch"),{passive:!0,capture:o}),x(r,"touchend",u,{passive:!0,capture:o}),x(r,"touchcancel",u,{passive:!0,capture:o})),{pressed:a,sourceType:l}}function Rt(e={}){const{window:n=W}=e,t=G(()=>n&&"screen"in n&&"orientation"in n.screen),o=t.value?n.screen.orientation:{},s=g(o.type),r=g(o.angle||0);return t.value&&x(n,"orientationchange",()=>{s.value=o.type,r.value=o.angle}),{isSupported:t,orientation:s,angle:r,lockOrientation:i=>t.value&&typeof o.lock=="function"?o.lock(i):Promise.reject(new Error("Not supported")),unlockOrientation:()=>{t.value&&typeof o.unlock=="function"&&o.unlock()}}}function Oe(e){const n=window.getComputedStyle(e);if(n.overflowX==="scroll"||n.overflowY==="scroll"||n.overflowX==="auto"&&e.clientWidth<e.scrollWidth||n.overflowY==="auto"&&e.clientHeight<e.scrollHeight)return!0;{const t=e.parentNode;return!t||t.tagName==="BODY"?!1:Oe(t)}}function vt(e){const n=e||window.event,t=n.target;return Oe(t)?!1:n.touches.length>1?!0:(n.preventDefault&&n.preventDefault(),!1)}const Z=new WeakMap;function Yt(e,n=!1){const t=g(n);let o=null,s="";C(xe(e),l=>{const i=Q(D(l));if(i){const u=i;if(Z.get(u)||Z.set(u,u.style.overflow),u.style.overflow!=="hidden"&&(s=u.style.overflow),u.style.overflow==="hidden")return t.value=!0;if(t.value)return u.style.overflow="hidden"}},{immediate:!0});const r=()=>{const l=Q(D(e));!l||t.value||(B&&(o=x(l,"touchmove",i=>{vt(i)},{passive:!1})),l.style.overflow="hidden",t.value=!0)},a=()=>{const l=Q(D(e));!l||!t.value||(B&&(o==null||o()),l.style.overflow=s,Z.delete(l),t.value=!1)};return N(a),T({get(){return t.value},set(l){l?r():a()}})}function Nt(e,n={}){const{threshold:t=50,onSwipe:o,onSwipeEnd:s,onSwipeStart:r,passive:a=!0,window:l=W}=n,i=K({x:0,y:0}),u=K({x:0,y:0}),v=T(()=>i.x-u.x),f=T(()=>i.y-u.y),{max:m,abs:c}=Math,p=T(()=>m(c(v.value),c(f.value))>=t),h=g(!1),S=T(()=>p.value?c(v.value)>c(f.value)?v.value>0?"left":"right":f.value>0?"up":"down":"none"),d=_=>[_.touches[0].clientX,_.touches[0].clientY],E=(_,w)=>{i.x=_,i.y=w},A=(_,w)=>{u.x=_,u.y=w};let O;const y=mt(l==null?void 0:l.document);a?O=y?{passive:!0}:{capture:!1}:O=y?{passive:!1,capture:!0}:{capture:!0};const k=_=>{h.value&&(s==null||s(_,S.value)),h.value=!1},b=[x(e,"touchstart",_=>{if(_.touches.length!==1)return;O.capture&&!O.passive&&_.preventDefault();const[w,M]=d(_);E(w,M),A(w,M),r==null||r(_)},O),x(e,"touchmove",_=>{if(_.touches.length!==1)return;const[w,M]=d(_);A(w,M),!h.value&&p.value&&(h.value=!0),h.value&&(o==null||o(_))},O),x(e,["touchend","touchcancel"],k,O)];return{isPassiveEventSupported:y,isSwiping:h,direction:S,coordsStart:i,coordsEnd:u,lengthX:v,lengthY:f,stop:()=>b.forEach(_=>_())}}function mt(e){if(!e)return!1;let n=!1;const t={get passive(){return n=!0,!1}};return e.addEventListener("x",P,t),e.removeEventListener("x",P),n}function zt(e={}){const{window:n=W,behavior:t="auto"}=e;if(!n)return{x:g(0),y:g(0)};const o=g(n.scrollX),s=g(n.scrollY),r=T({get(){return o.value},set(l){scrollTo({left:l,behavior:t})}}),a=T({get(){return s.value},set(l){scrollTo({top:l,behavior:t})}});return x(n,"scroll",()=>{o.value=n.scrollX,s.value=n.scrollY},{capture:!1,passive:!0}),{x:r,y:a}}function It(e={}){const{window:n=W,initialWidth:t=Number.POSITIVE_INFINITY,initialHeight:o=Number.POSITIVE_INFINITY,listenOrientation:s=!0,includeScrollbar:r=!0,type:a="inner"}=e,l=g(t),i=g(o),u=()=>{n&&(a==="outer"?(l.value=n.outerWidth,i.value=n.outerHeight):r?(l.value=n.innerWidth,i.value=n.innerHeight):(l.value=n.document.documentElement.clientWidth,i.value=n.document.documentElement.clientHeight))};if(u(),q(u),x("resize",u,{passive:!0}),s){const v=lt("(orientation: portrait)");C(v,()=>u())}return{width:l,height:i}}function $t(e=null,n){const t=g(e),o=T({set:r=>r?Y.start():Y.done(),get:()=>typeof t.value=="number"&&t.value<1});n&&Y.configure(n);const s=Y.set;return Y.set=r=>(t.value=r,s.call(Y,r)),re(()=>{typeof t.value=="number"&&V&&s.call(Y,t.value)}),N(Y.remove),{isLoading:o,progress:t,start:Y.start,done:Y.done,remove:()=>{t.value=null,Y.remove()}}}const Te=V?window:void 0;function Fe(e){var n;const t=D(e);return(n=t==null?void 0:t.$el)!=null?n:t}function $(...e){let n,t,o,s;if(typeof e[0]=="string"||Array.isArray(e[0])?([t,o,s]=e,n=Te):[n,t,o,s]=e,!n)return P;Array.isArray(t)||(t=[t]),Array.isArray(o)||(o=[o]);const r=[],a=()=>{r.forEach(v=>v()),r.length=0},l=(v,f,m,c)=>(v.addEventListener(f,m,c),()=>v.removeEventListener(f,m,c)),i=C(()=>[Fe(n),D(s)],([v,f])=>{if(a(),!v)return;const m=Ee(f)?{...f}:f;r.push(...t.flatMap(c=>o.map(p=>l(v,c,p,m))))},{immediate:!0,flush:"post"}),u=()=>{i(),a()};return N(u),u}const pt=500,ht=10;function ve(e,n,t){var o,s;const r=T(()=>Fe(e));let a,l,i,u=!1;function v(){a&&(clearTimeout(a),a=void 0),l=void 0,i=void 0,u=!1}function f(d){var E,A,O;const[y,k,b]=[i,l,u];if(v(),!(t!=null&&t.onMouseUp)||!k||!y||(E=t==null?void 0:t.modifiers)!=null&&E.self&&d.target!==r.value)return;(A=t==null?void 0:t.modifiers)!=null&&A.prevent&&d.preventDefault(),(O=t==null?void 0:t.modifiers)!=null&&O.stop&&d.stopPropagation();const H=d.x-k.x,_=d.y-k.y,w=Math.sqrt(H*H+_*_);t.onMouseUp(d.timeStamp-y,w,b)}function m(d){var E,A,O,y;(E=t==null?void 0:t.modifiers)!=null&&E.self&&d.target!==r.value||(v(),(A=t==null?void 0:t.modifiers)!=null&&A.prevent&&d.preventDefault(),(O=t==null?void 0:t.modifiers)!=null&&O.stop&&d.stopPropagation(),l={x:d.x,y:d.y},i=d.timeStamp,a=setTimeout(()=>{u=!0,n(d)},(y=t==null?void 0:t.delay)!=null?y:pt))}function c(d){var E,A,O,y;if((E=t==null?void 0:t.modifiers)!=null&&E.self&&d.target!==r.value||!l||(t==null?void 0:t.distanceThreshold)===!1)return;(A=t==null?void 0:t.modifiers)!=null&&A.prevent&&d.preventDefault(),(O=t==null?void 0:t.modifiers)!=null&&O.stop&&d.stopPropagation();const k=d.x-l.x,b=d.y-l.y;Math.sqrt(k*k+b*b)>=((y=t==null?void 0:t.distanceThreshold)!=null?y:ht)&&v()}const p={capture:(o=t==null?void 0:t.modifiers)==null?void 0:o.capture,once:(s=t==null?void 0:t.modifiers)==null?void 0:s.once},h=[$(r,"pointerdown",m,p),$(r,"pointermove",c,p),$(r,["pointerup","pointerleave"],f,p)];return()=>h.forEach(d=>d())}const jt={[be.mounted](e,n){typeof n.value=="function"?ve(e,n.value,{modifiers:n.modifiers}):ve(e,...n.value)}};function me(e,n={}){const{delayEnter:t=0,delayLeave:o=0,window:s=Te}=n,r=g(!1);let a;const l=i=>{const u=i?t:o;a&&(clearTimeout(a),a=void 0),u?a=setTimeout(()=>r.value=i,u):r.value=i};return s&&($(e,"mouseenter",()=>l(!0),{passive:!0}),$(e,"mouseleave",()=>l(!1),{passive:!0})),r}const Xt={[be.mounted](e,n){const t=n.value;if(typeof t=="function"){const o=me(e);C(o,s=>t(s))}else{const[o,s]=t,r=me(e,s);C(r,a=>o(a))}}};function ee(e){return typeof Window<"u"&&e instanceof Window?e.document.documentElement:typeof Document<"u"&&e instanceof Document?e.documentElement:e}function ke(e){const n=window.getComputedStyle(e);if(n.overflowX==="scroll"||n.overflowY==="scroll"||n.overflowX==="auto"&&e.clientWidth<e.scrollWidth||n.overflowY==="auto"&&e.clientHeight<e.scrollHeight)return!0;{const t=e.parentNode;return!t||t.tagName==="BODY"?!1:ke(t)}}function wt(e){const n=e||window.event,t=n.target;return ke(t)?!1:n.touches.length>1?!0:(n.preventDefault&&n.preventDefault(),!1)}const te=new WeakMap;function gt(e,n=!1){const t=g(n);let o=null,s="";C(xe(e),l=>{const i=ee(D(l));if(i){const u=i;if(te.get(u)||te.set(u,u.style.overflow),u.style.overflow!=="hidden"&&(s=u.style.overflow),u.style.overflow==="hidden")return t.value=!0;if(t.value)return u.style.overflow="hidden"}},{immediate:!0});const r=()=>{const l=ee(D(e));!l||t.value||(B&&(o=$(l,"touchmove",i=>{wt(i)},{passive:!1})),l.style.overflow="hidden",t.value=!0)},a=()=>{const l=ee(D(e));!l||!t.value||(B&&(o==null||o()),l.style.overflow=s,te.delete(l),t.value=!1)};return N(a),T({get(){return t.value},set(l){l?r():a()}})}function yt(){let e=!1;const n=g(!1);return(t,o)=>{if(n.value=o.value,e)return;e=!0;const s=gt(t,o.value);C(n,r=>s.value=r)}}yt();export{xt as a,lt as b,Et as c,Rt as d,It as e,At as f,Nt as g,zt as h,$t as i,kt as j,Ht as k,Pt as l,Ct as m,Yt as n,Ot as o,x as p,Ft as q,_t as r,Lt as s,Mt as t,Wt as u,Dt as v,Xt as w,jt as x,Tt as y,Me as z};
@@ -0,0 +1 @@
1
+ import{f as ee,u as se,c as oe,r as re,_ as ae,d as te}from"./main.CBun-MVF.0.0.34-alpha.0.js";import{G as ne,r as g,a5 as le,b as P,aa as ie,ab as t,u as e,f as o,a9 as d,R as r,m as b,d as me,k as de,a7 as M,p as ue,g as E}from"./@vue.DD07jlOO.0.0.34-alpha.0.js";import{m as N,a as R,W as j}from"./@mdi.C1UTQKuc.0.0.34-alpha.0.js";import{F as f,a as ce}from"./vee-validate.DmSS7Yyb.0.0.34-alpha.0.js";import{i as D}from"./vue3-toastify.Bn4mvAn3.0.0.34-alpha.0.js";import{s as pe}from"./pinia.4SaF1m4j.0.0.34-alpha.0.js";import{c as F,d as U,e as G,z as W,V as q,b as H}from"./vuetify.BZRDiB_v.0.0.34-alpha.0.js";import{u as fe}from"./vue-i18n.Bw8XEyfx.0.0.34-alpha.0.js";import"./axios.C-n2IhIP.0.0.34-alpha.0.js";import"./@tanstack.RTx9E9y7.0.0.34-alpha.0.js";import"./vue-router.FDI0ZN2g.0.0.34-alpha.0.js";import"./@vueuse.B8UZ0pix.0.0.34-alpha.0.js";import"./nprogress.BpOU_abF.0.0.34-alpha.0.js";import"./@xterm.CRsBeZ-e.0.0.34-alpha.0.js";import"./@vee-validate.ptox5Hkw.0.0.34-alpha.0.js";import"./zod.DnW1_kUe.0.0.34-alpha.0.js";import"./uuid.DvF23Exx.0.0.34-alpha.0.js";import"./socket.io-client.6m8Wx6Gb.0.0.34-alpha.0.js";import"./engine.io-client.DvNvteG8.0.0.34-alpha.0.js";import"./engine.io-parser.BiEtp6m2.0.0.34-alpha.0.js";import"./@socket.io.Dkula2eQ.0.0.34-alpha.0.js";import"./socket.io-parser.C3f8D3GG.0.0.34-alpha.0.js";import"./rxjs.qNj2ii7F.0.0.34-alpha.0.js";import"./tslib.9k7AwCpt.0.0.34-alpha.0.js";import"./vue-inline-svg.T4jTFiI-.0.0.34-alpha.0.js";import"./v-calendar.Bj3BKKi_.0.0.34-alpha.0.js";import"./@intlify.8z0ZxsCR.0.0.34-alpha.0.js";const ve={class:"relative"},ge={class:"subview-title text-color"},be={class:"image-upload ml-auto"},_e={for:"file-input"},he={class:"inner-component p-4"},ye={class:"relative"},we={for:"username",class:"v-label"},xe={class:"relative"},ke={for:"password",class:"v-label"},Ce={class:"relative"},Me={for:"passwordConfirm",class:"v-label"},$e={class:"relative"},Ve={for:"sessionTimer",class:"v-label"},Le={key:0,style:{"padding-top":"22px"}},Se={class:"relative"},Ie={class:"flex flex-row"},ze={class:"v-label m-0 mb-0 ml-2",for:"rememberMe"},Fe={class:"text-sm"},Te={class:"relative"},Ae={class:"flex flex-row"},Be={class:"v-label m-0 mb-0 ml-2",for:"oneLogin"},Oe={class:"text-sm"},Pe=ne({__name:"Account",setup(Ee){var A,B;const{smallMobileActive:T}=ee(),$=se(),J=fe(),{loginState:a}=pe($),V=g("avatar"),w=g(),L=g(),_=g(!1),x=g(!1),k=g(!1);let S=((A=a.value.user)==null?void 0:A.rememberMe)??!1,I=((B=a.value.user)==null?void 0:B.oneLogin)??!1;const K=()=>{a.value.user&&(a.value.user.rememberMe=!a.value.user.rememberMe)},Q=()=>{a.value.user&&(a.value.user.oneLogin=!a.value.user.oneLogin)},X=()=>{L.value&&(L.value.resetForm(),V.value="avatar",w.value=void 0),a.value.user&&(a.value.user.rememberMe=S,a.value.user.oneLogin=I)},Y=async n=>{var u;const s=(u=n.target)==null?void 0:u.files;w.value=s==null?void 0:s[0],V.value=await re(n)},Z=async n=>{var h,y,l,i,m,p,C;_.value=!0;let s;const u={...n};delete u.upload;const z=((h=a.value.user)==null?void 0:h.username)!==u.username||u.password&&u.passwordConfirm,v=Object.entries(u).some(([,c])=>c!==void 0);if(w.value&&(s=new FormData,s.append("upload",w.value)),!v&&!s){_.value=!1;return}try{await $.updateUser(u,s,!0),D.success(J.t("components.toast.profile_updated")),S=((y=a.value.user)==null?void 0:y.rememberMe)??S,I=((l=a.value.user)==null?void 0:l.oneLogin)??I,z&&$.logout()}catch(c){D.error(((m=(i=c.response)==null?void 0:i.data)==null?void 0:m.message)??c.message??c),console.error(((C=(p=c.response)==null?void 0:p.data)==null?void 0:C.message)??c.message??c)}_.value=!1};return(n,s)=>{const u=ae,z=le("v-number-input");return P(),ie(e(ce),{ref_key:"form",ref:L,class:"flex flex-col w-full","validation-schema":e(oe),onSubmit:s[3]||(s[3]=v=>Z(v))},{default:t(()=>{var v,h,y;return[o("div",ve,[o("span",ge,d(n.$t("views.settings.profile")),1),o("div",be,[o("label",_e,[r(u,{src:e(V),size:"4rem",style:{"border-radius":"4rem",border:"1px solid var(--border)"}},null,8,["src"]),r(e(f),{id:"file-input",type:"file",name:"upload",accept:"image/png,image/jpeg,image/jpg",onChange:s[0]||(s[0]=l=>Y(l))})])]),o("div",he,[o("div",ye,[o("label",we,d(n.$t("components.form.label.username")),1),r(e(f),{name:"username",value:(v=e(a).user)==null?void 0:v.username},{default:t(({field:l,errorMessage:i,errors:m})=>[r(F,b({name:"username",variant:"outlined",density:"compact"},l,{type:"text",error:m.length>0,"error-messages":i}),null,16,["error","error-messages"])]),_:1},8,["value"])]),s[4]||(s[4]=o("div",{class:"py-1"},null,-1)),o("div",xe,[o("label",ke,d(n.$t("components.form.label.new_password")),1),r(e(f),{name:"password"},{default:t(({field:l,errorMessage:i,errors:m})=>[r(F,b({name:"password",variant:"outlined",density:"compact"},l,{type:e(x)?"text":"password",error:m.length>0,"error-messages":i,"append-inner-icon":e(x)?e(N):e(R),"onClick:appendInner":s[1]||(s[1]=p=>x.value=!e(x))}),null,16,["type","error","error-messages","append-inner-icon"])]),_:1})]),s[5]||(s[5]=o("div",{class:"py-1"},null,-1)),o("div",Ce,[o("label",Me,d(n.$t("components.form.label.new_password_confirm")),1),r(e(f),{name:"passwordConfirm"},{default:t(({field:l,errorMessage:i,errors:m})=>[r(F,b({name:"passwordConfirm",variant:"outlined",density:"compact"},l,{type:e(k)?"text":"password",error:m.length>0,"error-messages":i,"append-inner-icon":e(k)?e(N):e(R),"onClick:appendInner":s[2]||(s[2]=p=>k.value=!e(k))}),null,16,["type","error","error-messages","append-inner-icon"])]),_:1})]),s[6]||(s[6]=o("div",{class:"py-1"},null,-1)),o("div",$e,[o("label",Ve,d(n.$t("components.form.label.session_timer")),1),r(e(f),{name:"sessionTimer",value:(h=e(a).user)==null?void 0:h.sessionTimer},{default:t(({field:l,errorMessage:i,errors:m,value:p,setValue:C})=>{var c,O;return[r(z,b({name:"sessionTimer",variant:"outlined",density:"compact"},l,{type:"number",step:600,error:m.length>0,"error-messages":i,disabled:(c=e(a).user)==null?void 0:c.rememberMe,"hide-details":(O=e(a).user)==null?void 0:O.rememberMe,onChange:()=>p===""?C(14400):void 0}),null,16,["error","error-messages","disabled","hide-details","onChange"])]}),_:1},8,["value"])]),s[7]||(s[7]=o("div",{class:"py-1"},null,-1)),(y=e(a).user)!=null&&y.rememberMe?(P(),me("div",Le)):de("",!0),o("div",Se,[r(e(f),{name:"rememberMe",type:"checkbox","checked-value":!0,"unchecked-value":!1},{default:t(({field:l,errorMessage:i,errors:m})=>[o("div",Ie,[r(U,b({"model-value":e(a).user.rememberMe,name:"rememberMe"},l,{color:"#df2a4c",type:"checkbox",error:m.length>0,"error-messages":i,"hide-details":"",onChange:K}),null,16,["model-value","error","error-messages"]),o("label",ze,d(n.$t("components.form.label.remember_me")),1)])]),_:1}),r(W,{variant:"tonal",color:"#df2a4c"},{prepend:t(()=>[r(G,{color:"#df2a4c",size:"20",class:"mt-1"},{default:t(()=>[M(d(e(j)),1)]),_:1})]),default:t(()=>[o("span",Fe,d(n.$t("components.form.hint.remember_me")),1)]),_:1})]),s[8]||(s[8]=o("div",{class:"py-2"},null,-1)),o("div",Te,[r(e(f),{name:"oneLogin",type:"checkbox","checked-value":!0,"unchecked-value":!1},{default:t(({field:l,errorMessage:i,errors:m})=>{var p;return[o("div",Ae,[r(U,b({"model-value":(p=e(a).user)==null?void 0:p.oneLogin,name:"oneLogin"},l,{color:"#df2a4c",type:"checkbox",error:m.length>0,"error-messages":i,"hide-details":"",onChange:Q}),null,16,["model-value","error","error-messages"]),o("label",Be,d(n.$t("components.form.label.one_login")),1)])]}),_:1}),r(W,{variant:"tonal",color:"#df2a4c"},{prepend:t(()=>[r(G,{color:"#df2a4c",size:"20",class:"mt-1"},{default:t(()=>[M(d(e(j)),1)]),_:1})]),default:t(()=>[o("span",Oe,d(n.$t("components.form.hint.one_login")),1)]),_:1})]),s[9]||(s[9]=o("div",{class:"py-2"},null,-1))])]),o("div",{class:E(["flex flex-row my-5",{"mr-3":e(T)}])},[r(H,{class:"ml-auto mr-2 text-color bg-color-lighten",elevation:"0",tonal:"",style:{border:"1px solid rgba(var(--border-rgb), 0.75)"},loading:e(_),onClick:ue(X,["prevent"])},{loader:t(()=>[r(q,{class:"text-color",size:"14",width:"2",indeterminate:""})]),default:t(()=>[M(d(n.$t("components.form.button.cancel")),1)]),_:1},8,["loading"]),r(H,{class:E(["text-white bg-color-primary",{"mr-2":e(T)}]),loading:e(_),elevation:"0",tonal:"",style:{border:"1px solid var(--color-primary-darken-2)"},type:"submit"},{loader:t(()=>[r(q,{color:"#fff",size:"14",width:"2",indeterminate:""})]),default:t(()=>[M(d(n.$t("components.form.button.save")),1)]),_:1},8,["loading","class"])],2)]}),_:1},8,["validation-schema"])}}}),cs=te(Pe,[["__scopeId","data-v-cafc8a1b"]]);export{cs as default};
@@ -0,0 +1,2 @@
1
+ const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["vue3-apexcharts.D3zy1HLu.0.0.34-alpha.0.js","apexcharts.CuJL_Z73.0.0.34-alpha.0.js","@xterm.CRsBeZ-e.0.0.34-alpha.0.js","assets/@xterm.0.0.34-alpha.0.CGrrDQr5.css","@vue.DD07jlOO.0.0.34-alpha.0.js"])))=>i.map(i=>d[i]);
2
+ var be=Object.defineProperty;var xe=(g,r,m)=>r in g?be(g,r,{enumerable:!0,configurable:!0,writable:!0,value:m}):g[r]=m;var ce=(g,r,m)=>xe(g,typeof r!="symbol"?r+"":r,m);import{G as K,t as ve,r as c,E as Y,c as I,a5 as fe,b as L,aa as P,ab as o,f as x,u as a,a7 as $,a9 as W,d as ee,k as he,e as te,p as M,R as d,an as ke,A as _e,w as G,S as J,m as ue,al as V,Q as we,g as pe}from"./@vue.DD07jlOO.0.0.34-alpha.0.js";import{aB as We,aw as me}from"./@mdi.C1UTQKuc.0.0.34-alpha.0.js";import{i as U,u as Le,s as ae,O as Ne,P as Se,d as H,a as Ce,N as Te,y as X,x as ge,f as Pe}from"./main.CBun-MVF.0.0.34-alpha.0.js";import{s as ye}from"./pinia.4SaF1m4j.0.0.34-alpha.0.js";import{l as se,T as oe,b as re,e as ne,$ as Oe,a0 as Z,W as de,m as z}from"./vuetify.BZRDiB_v.0.0.34-alpha.0.js";import{i as ie}from"./vue3-toastify.Bn4mvAn3.0.0.34-alpha.0.js";import{P as De}from"./plugins.Btkvninu.0.0.34-alpha.0.js";import{P as f}from"./types.Cz9TaZAP.0.0.34-alpha.0.js";import{u as Ee,a as Re,b as $e}from"./@tanstack.RTx9E9y7.0.0.34-alpha.0.js";import{S as Ae}from"./system.C_kiuqo-.0.0.34-alpha.0.js";import"./vue-i18n.Bw8XEyfx.0.0.34-alpha.0.js";import"./@intlify.8z0ZxsCR.0.0.34-alpha.0.js";import"./axios.C-n2IhIP.0.0.34-alpha.0.js";import"./vue-router.FDI0ZN2g.0.0.34-alpha.0.js";import"./@vueuse.B8UZ0pix.0.0.34-alpha.0.js";import"./nprogress.BpOU_abF.0.0.34-alpha.0.js";import"./@xterm.CRsBeZ-e.0.0.34-alpha.0.js";import"./vee-validate.DmSS7Yyb.0.0.34-alpha.0.js";import"./@vee-validate.ptox5Hkw.0.0.34-alpha.0.js";import"./zod.DnW1_kUe.0.0.34-alpha.0.js";import"./uuid.DvF23Exx.0.0.34-alpha.0.js";import"./socket.io-client.6m8Wx6Gb.0.0.34-alpha.0.js";import"./engine.io-client.DvNvteG8.0.0.34-alpha.0.js";import"./engine.io-parser.BiEtp6m2.0.0.34-alpha.0.js";import"./@socket.io.Dkula2eQ.0.0.34-alpha.0.js";import"./socket.io-parser.C3f8D3GG.0.0.34-alpha.0.js";import"./rxjs.qNj2ii7F.0.0.34-alpha.0.js";import"./tslib.9k7AwCpt.0.0.34-alpha.0.js";import"./vue-inline-svg.T4jTFiI-.0.0.34-alpha.0.js";import"./v-calendar.Bj3BKKi_.0.0.34-alpha.0.js";var A=(g=>(g.READY="ready",g.RESTARTING="restarting",g.STARTING="starting",g.STARTED="started",g.STOPPED="stopped",g.ERROR="error",g.UNKNOWN="unknown",g))(A||{});const Ie={class:"flex items-center first-item"},Fe={key:1},Qe={class:"text-center pt-2"},Ve=K({__name:"VUserTable",props:{loading:{type:Boolean,default:!1}},setup(g){const r=g,{t:m}=U.global,S=new Se,T=Le(),{isTouch:N}=ae(),{loginState:u}=ye(T),{loading:h}=ve(r),l=c({pageSize:5,page:1}),y=Y([{title:m("components.user_table.title_username"),align:"start",key:"username",value:"decoded.username",sortable:!0},{title:m("components.user_table.title_role"),align:"start",key:"role",value:"decoded.role",sortable:!0},{title:m("components.user_table.title_address"),align:"start",key:"address",value:"clientData.address",sortable:!0},{title:m("components.user_table.title_device"),align:"start",key:"device",value:"clientData.device",sortable:!0},{title:"",align:"end",key:"delete",value:"delete",width:"120px",sortable:!1}]),_=I(()=>O.value||i.value||h.value),k=I(()=>{var D;const R=Math.ceil((((D=w.value)==null?void 0:D.pagination.totalItems)||0)/l.value.pageSize);return R===1&&(l.value.page=1),R}),C=I(()=>{var R;return(R=w.value)==null?void 0:R.result.map(D=>({encoded:D.token,decoded:Ne(D.token.access_token),clientData:D.clientData}))}),{data:w,isLoading:i,isPlaceholderData:v}=S.listQuery(l,!0),{mutate:F,isPending:O}=S.logoutTokenQuery(),j=()=>{l.value.page=Math.max(l.value.page-1,1)},B=()=>{v.value||(l.value.page=l.value.page+1)};return(R,D)=>{const Q=fe("router-link");return L(),P(Z,{"items-per-page":a(l).pageSize,headers:a(y),items:a(C),class:"elevation-0","item-value":"username","hide-default-footer":"","mobile-breakpoint":"sm",hover:""},{"item.username":o(({item:E})=>[x("div",Ie,[E.encoded.access_token===a(u).access_token?(L(),P(Q,{key:0,to:"/settings/account"},{default:o(()=>[$(W(E.decoded.username),1)]),_:2},1024)):(L(),ee("div",Fe,W(E.decoded.username),1)),E.encoded.access_token===a(u).access_token?(L(),P(se,{key:2,color:"#df2a4c",class:"ml-2",inline:"",content:R.$t("components.user_table.you")},null,8,["content"])):he("",!0)])]),"item.delete":o(({item:E})=>[te((L(),P(re,{color:"#df2a4c",density:"compact",loading:a(_),icon:"",onClick:M(q=>a(F)({id:E.encoded._id,access_token:E.encoded.access_token}),["prevent"])},{default:o(()=>[d(ne,{size:"20"},{default:o(()=>[$(W(a(We)),1)]),_:1})]),_:2},1032,["loading","onClick"])),[[oe,{disabled:a(N),text:R.$t("components.form.tooltip.restart")}]])]),bottom:o(()=>[x("div",Qe,[d(Oe,{modelValue:a(l).page,"onUpdate:modelValue":D[0]||(D[0]=E=>a(l).page=E),length:a(k),onPrev:M(j,["prevent"]),onNext:M(B,["prevent"])},null,8,["modelValue","length"])])]),_:1},8,["items-per-page","headers","items"])}}}),ze=H(Ve,[["__scopeId","data-v-0f04954a"]]),je={key:0,class:"text-disabled"},le=K({__name:"VMetricCharts",props:{type:{},processInfo:{},maxDataPoints:{default:30},width:{default:200},height:{default:25},chartType:{default:"bar"}},async setup(g){let r,m;const S=([r,m]=ke(()=>Te(()=>import("./vue3-apexcharts.D3zy1HLu.0.0.34-alpha.0.js"),__vite__mapDeps([0,1,2,3,4]))),r=await r,m(),r).default,T=Ce(),N=g,{theme:u}=ye(T),{type:h,processInfo:l,maxDataPoints:y,chartType:_}=ve(N),k=I(()=>{const v=(l.value||[]).map(O=>h.value==="cpu"?O.cpuLoad:O.memLoad).slice(-y.value);return[{data:[...v,...Array(y.value-v.length).fill(0)].map(O=>parseFloat(O))}]}),C=I(()=>{const v=(l.value||[]).map(O=>O.timestamp).slice(-y.value);return[{data:[...v,...Array(y.value-v.length).fill(0)]}]}),w=I(()=>({chart:{type:_.value,sparkline:{enabled:!0}},plotOptions:{bar:{columnWidth:"80%"}},colors:[({value:i})=>i>=90?"#FA5252":i>=50?"#FF9966":"#df2a4c"],xaxis:{crosshairs:{width:1},axisBorder:{show:!1},axisTicks:{show:!1},categories:C.value[0].data},yaxis:{show:!1,labels:{formatter:i=>Math.ceil(i).toString()},min:0},tooltip:{theme:u.value,fixed:{enabled:!1},marker:{show:!1},y:{title:{formatter:function(){return""}},formatter:i=>`${i} %`},x:{formatter:i=>new Date(i).toLocaleTimeString([],{hour:"2-digit",minute:"2-digit"})}}}));return(i,v)=>(L(),ee("div",null,[!a(l)||!a(l).length?(L(),ee("span",je,W(i.$t("components.charts.no_data")),1)):(L(),P(a(S),{key:1,type:a(_),options:a(w),series:a(k),height:i.height,width:i.width,"data-no-clone":""},null,8,["type","options","series","height","width"]))]))}}),Be={class:"flex items-center first-item"},Ke=K({__name:"VPluginTable",setup(g){const{t:r}=U.global,{isTouch:m}=ae(),S=X(),T=new De,N=c(),u=c(),h=c({}),l=c([]),y=c(30),_=c(200),k=c(32),C={pid:-1,cpuLoad:"0.00",memLoad:"0.00",timestamp:0},w=c({}),i=c({}),v=I(()=>Object.values(w.value).filter(e=>{var t;const s=(t=O.value)==null?void 0:t.result.find(n=>n.pluginName===e.name);if(s&&!s.disabled)return e}).filter(Boolean)),F=Y([{title:r("components.process_table.title_name"),align:"start",key:"name",value:"name",minWidth:"200px",sortable:!0},{title:r("components.process_table.title_pid"),align:"start",key:"pid",value:"pid",width:"100px",minWidth:"100px",maxWidth:"100px",sortable:!0},{title:r("components.process_table.title_cpu"),align:"start",key:"cpuLoad",value:"cpuLoad",width:"103px",minWidth:"103px",maxWidth:"103px",sortable:!0},{title:"",align:"start",key:"cpuLoadChart",value:"cpuLoadChart",width:_.value+k.value,minWidth:_.value+k.value,maxWidth:_.value+k.value,sortable:!1},{title:r("components.process_table.title_memory"),align:"start",key:"memLoad",value:"memLoad",width:"103px",minWidth:"103px",maxWidth:"103px",sortable:!0},{title:"",align:"start",key:"memLoadChart",value:"memLoadChart",width:_.value+k.value,minWidth:_.value+k.value,maxWidth:_.value+k.value,sortable:!1},{title:"",align:"end",key:"restart",value:"restart",width:"60px",minWidth:"60px",maxWidth:"60px",sortable:!1}]),{data:O,isLoading:j,suspense:B}=T.getPluginsQuery(_e({page:1,pageSize:-1})),{mutateAsync:R}=T.restartPluginQuery(),D=I(()=>e=>l.value.includes(e));G(i,e=>{for(const[s,t]of Object.entries(e))w.value[s]=t[t.length-1]??{name:s,...C}},{deep:!0,immediate:!0}),G(O,e=>{if(e)for(const s of e.result)s.disabled||(i.value[s.pluginName]||(i.value[s.pluginName]=[]),h.value[s.pluginName]||(h.value[s.pluginName]={name:s.pluginName,status:f.UNKNOWN}))},{deep:!0,immediate:!0});const Q=e=>{var t;switch(((t=h.value[e])==null?void 0:t.status)??f.UNKNOWN){case f.ERROR:return"#9d5752";case f.STARTING:return"orange";case f.READY:return"yellow";case f.STARTED:return"green";case f.STOPPED:return"red";case f.DISABLED:return"#2196f3";case f.UNKNOWN:return"gray";default:return"gray"}},E=e=>{var t;switch(((t=h.value[e])==null?void 0:t.status)??f.UNKNOWN){case f.ERROR:return r("components.process_table.status_error");case f.STOPPED:return r("components.process_table.status_stopped");case f.READY:return r("components.process_table.status_ready");case f.STARTING:return r("components.process_table.status_starting");case f.STARTED:return r("components.process_table.status_started");default:return r("components.process_table.status_unknown")}},q=async e=>{var s,t,n,p;l.value.push(e);try{await R({pluginName:e})}catch(b){console.error(((t=(s=b.response)==null?void 0:s.data)==null?void 0:t.message)??b.message??b),ie.error(((p=(n=b.response)==null?void 0:n.data)==null?void 0:p.message)??b.message??b)}finally{l.value=l.value.filter(b=>b!==e)}};return J(async()=>{if(N.value=S.getExistingNamespace("/metrics"),u.value=S.getExistingNamespace("/status"),!N.value)throw new Error("Not connected to metrics!");if(!u.value)throw new Error("Not connected to status!");await B(),await new Promise(e=>setTimeout(e,10)),u.value.socket.emit("get-plugin-process-status"),u.value.socket.on("plugin-process-status",e=>{for(const[s,t]of Object.entries(e))h.value[s]=t}),N.value.request("get-plugins-process-info").subscribe(e=>{i.value=e}),N.value.socket.on("process-infos",e=>{const s=e.plugins;Object.keys(i.value).forEach(t=>{s[t]||delete i.value[t]}),Object.keys(w.value).forEach(t=>{s[t]||delete w.value[t]});for(const[t,n]of Object.entries(s))i.value[t]||(i.value[t]=[]),i.value[t].push(n)})}),(e,s)=>{const t=fe("router-link"),n=le;return L(),P(Z,{"items-per-page":-1,headers:a(F),items:a(v),class:"elevation-0",loading:a(j),"hide-default-footer":"","mobile-breakpoint":"sm",hover:""},{"item.name":o(({item:p})=>[x("div",Be,[d(de,{location:"top",text:E(p.name)},{activator:o(({props:b})=>[d(se,ue(b,{color:Q(p.name),dot:"",inline:""}),null,16,["color"])]),_:2},1032,["text"]),d(t,{to:`/plugins/${p.name}`,class:"ml-1"},{default:o(()=>[$(W(p.name),1)]),_:2},1032,["to"])])]),"item.cpuLoad":o(({item:p})=>[d(z,{color:parseFloat(p.cpuLoad)>=15?"red":void 0,density:"compact",size:"small"},{default:o(()=>[$(W(p.cpuLoad)+" %",1)]),_:2},1032,["color"])]),"item.cpuLoadChart":o(({item:p})=>[(L(),P(V,null,{default:o(()=>[d(n,{type:"cpu","max-data-points":a(y),"process-info":a(i)[p.name]},null,8,["max-data-points","process-info"])]),_:2},1024))]),"item.memLoad":o(({item:p})=>[d(z,{color:parseFloat(p.memLoad)>=15?"red":void 0,density:"compact",size:"small"},{default:o(()=>[$(W(p.memLoad)+" %",1)]),_:2},1032,["color"])]),"item.memLoadChart":o(({item:p})=>[(L(),P(V,null,{default:o(()=>[d(n,{type:"memory","max-data-points":a(y),"process-info":a(i)[p.name]},null,8,["max-data-points","process-info"])]),_:2},1024))]),"item.restart":o(({item:p})=>[te((L(),P(re,{color:"#df2a4c",density:"compact",loading:a(D)(p.name),icon:"",onClick:M(b=>q(p.name),["prevent"])},{default:o(()=>[d(ne,{size:"20"},{default:o(()=>[$(W(a(me)),1)]),_:1})]),_:2},1032,["loading","onClick"])),[[oe,{disabled:a(m),text:e.$t("components.form.tooltip.restart")}]])]),bottom:o(()=>s[0]||(s[0]=[])),_:1},8,["headers","items","loading"])}}}),qe=H(Ke,[["__scopeId","data-v-2b785e39"]]),Me=async({parameter:g,signal:r})=>(await ge.get("/frameworkers",{params:g,signal:r})).data,Ge=async({frameWorkerName:g})=>(await ge.put(`/frameworkers/${g}/restart`)).data;class Ue{constructor(){ce(this,"_queryClient",Ee());ce(this,"queryActivator",c([{name:"getFrameWorkersQuery",enabled:!0}]))}get queryClient(){return this._queryClient}getFrameWorkersQuery(r){return Re({queryKey:["frameWorkerList",r],queryFn:({signal:m})=>Me({parameter:a(r),signal:m}),placeholderData:m=>m,enabled:()=>this.queryActivator.value.some(m=>m.name==="getFrameWorkersQuery"&&m.enabled)})}restartFrameWorkerQuery(){return $e({mutationFn:Ge,onSuccess:async(r,m)=>{await this._queryClient.refetchQueries({queryKey:["frameWorkers",m.frameWorkerName]}),ie.success(U.global.t("components.toast.frame_worker_restarted"))}})}toggleQueryActivator(r,m){const S=this.queryActivator.value.find(T=>T.name===r);S&&(S.enabled=m)}}const Ye={class:"flex items-center first-item"},Je={class:"ml-1"},He=K({__name:"VFrameWorkerTable",setup(g){const{t:r}=U.global,m=X(),{isTouch:S}=ae(),T=new Ue,N=c(),u=c(),h=c({}),l=c([]),y=c(30),_=c(200),k=c(32),C={pid:-1,cpuLoad:"0.00",memLoad:"0.00",timestamp:0},w=c({}),i=c({}),v=I(()=>Object.values(w.value).filter(Boolean)),F=Y([{title:r("components.process_table.title_name"),align:"start",key:"name",value:"name",minWidth:"200px",sortable:!0},{title:r("components.process_table.title_pid"),align:"start",key:"pid",value:"pid",width:"100px",minWidth:"100px",maxWidth:"100px",sortable:!0},{title:r("components.process_table.title_cpu"),align:"start",key:"cpuLoad",value:"cpuLoad",width:"103px",minWidth:"103px",maxWidth:"103px",sortable:!0},{title:"",align:"start",key:"cpuLoadChart",value:"cpuLoadChart",width:_.value+k.value,minWidth:_.value+k.value,maxWidth:_.value+k.value,sortable:!1},{title:r("components.process_table.title_memory"),align:"start",key:"memLoad",value:"memLoad",width:"103px",minWidth:"103px",maxWidth:"103px",sortable:!0},{title:"",align:"start",key:"memLoadChart",value:"memLoadChart",width:_.value+k.value,minWidth:_.value+k.value,maxWidth:_.value+k.value,sortable:!1},{title:"",align:"end",key:"restart",value:"restart",width:"60px",minWidth:"60px",maxWidth:"60px",sortable:!1}]),{data:O,isLoading:j,suspense:B}=T.getFrameWorkersQuery(_e({page:1,pageSize:-1})),{mutateAsync:R}=T.restartFrameWorkerQuery(),D=I(()=>e=>l.value.includes(e));G(i,e=>{for(const[s,t]of Object.entries(e))w.value[s]=t[t.length-1]??{name:s,...C}},{deep:!0,immediate:!0}),G(O,e=>{if(e)for(const s of e.result)i.value[s.name]||(i.value[s.name]=[]),h.value[s.name]||(h.value[s.name]={name:s.name,status:f.UNKNOWN})},{deep:!0,immediate:!0});const Q=e=>{var t;switch(((t=h.value[e])==null?void 0:t.status)??f.UNKNOWN){case f.ERROR:return"#9d5752";case f.STARTING:return"orange";case f.READY:return"yellow";case f.STARTED:return"green";case f.STOPPED:return"red";case f.DISABLED:return"#2196f3";case f.UNKNOWN:return"gray";default:return"gray"}},E=e=>{var t;switch(((t=h.value[e])==null?void 0:t.status)??f.UNKNOWN){case f.ERROR:return r("components.process_table.status_error");case f.STOPPED:return r("components.process_table.status_stopped");case f.READY:return r("components.process_table.status_ready");case f.STARTING:return r("components.process_table.status_starting");case f.STARTED:return r("components.process_table.status_started");default:return r("components.process_table.status_unknown")}},q=async e=>{var s,t,n,p;l.value.push(e);try{await R({frameWorkerName:e})}catch(b){console.error(((t=(s=b.response)==null?void 0:s.data)==null?void 0:t.message)??b.message??b),ie.error(((p=(n=b.response)==null?void 0:n.data)==null?void 0:p.message)??b.message??b)}finally{l.value=l.value.filter(b=>b!==e)}};return J(async()=>{if(N.value=m.getExistingNamespace("/metrics"),u.value=m.getExistingNamespace("/status"),!N.value)throw new Error("Not connected to metrics!");if(!u.value)throw new Error("Not connected to status!");await B(),await new Promise(e=>setTimeout(e,10)),u.value.socket.emit("get-frameworker-process-status"),u.value.socket.on("frameworker-process-status",e=>{for(const[s,t]of Object.entries(e))h.value[s]=t}),N.value.request("get-frameworker-process-info").subscribe(e=>{i.value=e}),N.value.socket.on("process-infos",e=>{const s=e.workers;Object.keys(i.value).forEach(t=>{s[t]||delete i.value[t]}),Object.keys(w.value).forEach(t=>{s[t]||delete w.value[t]});for(const[t,n]of Object.entries(s))i.value[t]||(i.value[t]=[]),i.value[t].push(n)})}),(e,s)=>{const t=le;return L(),P(Z,{"items-per-page":-1,headers:a(F),items:a(v),class:"elevation-0",loading:a(j),"hide-default-footer":"","mobile-breakpoint":"sm",hover:""},{"item.name":o(({item:n})=>[x("div",Ye,[d(de,{location:"top",text:E(n.name)},{activator:o(({props:p})=>[d(se,ue(p,{color:Q(n.name),dot:"",inline:""}),null,16,["color"])]),_:2},1032,["text"]),x("div",Je,W(n.name),1)])]),"item.cpuLoad":o(({item:n})=>[d(z,{color:parseFloat(n.cpuLoad)>=15?"red":void 0,density:"compact",size:"small"},{default:o(()=>[$(W(n.cpuLoad)+" %",1)]),_:2},1032,["color"])]),"item.cpuLoadChart":o(({item:n})=>[(L(),P(V,null,{default:o(()=>[d(t,{type:"cpu","max-data-points":a(y),"process-info":a(i)[n.name]},null,8,["max-data-points","process-info"])]),_:2},1024))]),"item.memLoad":o(({item:n})=>[d(z,{color:parseFloat(n.memLoad)>=15?"red":void 0,density:"compact",size:"small"},{default:o(()=>[$(W(n.memLoad)+" %",1)]),_:2},1032,["color"])]),"item.memLoadChart":o(({item:n})=>[(L(),P(V,null,{default:o(()=>[d(t,{type:"memory","max-data-points":a(y),"process-info":a(i)[n.name]},null,8,["max-data-points","process-info"])]),_:2},1024))]),"item.restart":o(({item:n})=>[te((L(),P(re,{color:"#df2a4c",density:"compact",loading:a(D)(n.name),icon:"",onClick:M(p=>q(n.name),["prevent"])},{default:o(()=>[d(ne,{size:"20"},{default:o(()=>[$(W(a(me)),1)]),_:1})]),_:2},1032,["loading","onClick"])),[[oe,{disabled:a(S),text:e.$t("components.form.tooltip.restart")}]])]),bottom:o(()=>s[0]||(s[0]=[])),_:1},8,["headers","items","loading"])}}}),Xe=H(He,[["__scopeId","data-v-eaa0affd"]]),Ze={class:"flex items-center first-item"},et={class:"ml-1"},tt=K({__name:"VProcessTable",setup(g){const{t:r}=U.global,m=X(),{isTouch:S}=ae(),T=new Ae,N=c(),u=c(),h=c(30),l=c(200),y=c(32),_=c(A.UNKNOWN),k=c(A.UNKNOWN),C=c(A.UNKNOWN),w={pid:-1,cpuLoad:"0.00",memLoad:"0.00",timestamp:0},i=c({"camera.ui":{name:"camera.ui",...w},go2rtc:{name:"go2rtc",...w},nats:{name:"nats",...w}}),v=c({"camera.ui":[],go2rtc:[],nats:[]}),F=I(()=>Object.values(i.value).filter(Boolean)),O=Y([{title:r("components.process_table.title_name"),align:"start",key:"name",value:"name",minWidth:"200px",sortable:!0},{title:r("components.process_table.title_pid"),align:"start",key:"pid",value:"pid",width:"100px",minWidth:"100px",maxWidth:"100px",sortable:!0},{title:r("components.process_table.title_cpu"),align:"start",key:"cpuLoad",value:"cpuLoad",width:"103px",minWidth:"103px",maxWidth:"103px",sortable:!0},{title:"",align:"start",key:"cpuLoadChart",value:"cpuLoadChart",width:l.value+y.value,minWidth:l.value+y.value,maxWidth:l.value+y.value,sortable:!1},{title:r("components.process_table.title_memory"),align:"start",key:"memLoad",value:"memLoad",width:"103px",minWidth:"103px",maxWidth:"103px",sortable:!0},{title:"",align:"start",key:"memLoadChart",value:"memLoadChart",width:l.value+y.value,minWidth:l.value+y.value,maxWidth:l.value+y.value,sortable:!1},{title:"",align:"end",key:"restart",value:"restart",width:"60px",minWidth:"60px",maxWidth:"60px",sortable:!1}]),{mutateAsync:j,isPending:B}=T.restartGo2RtcQuery(),{mutateAsync:R,isPending:D}=T.restartServerQuery();G(v,e=>{i.value["camera.ui"]=e["camera.ui"][e["camera.ui"].length-1]??{...w,name:"camera.ui"},i.value.go2rtc=e.go2rtc[e.go2rtc.length-1]??{...w,name:"go2rtc"},i.value.nats=e.nats[e.nats.length-1]??{...w,name:"nats"}},{deep:!0,immediate:!0});const Q=e=>{switch(e){case"camera.ui":return _.value;case"go2rtc":return k.value;case"nats":return C.value;default:return A.UNKNOWN}},E=e=>{switch(Q(e)){case A.ERROR:return"#9d5752";case A.STARTING:return"orange";case A.READY:return"yellow";case A.STARTED:return"green";case A.STOPPED:return"red";case A.UNKNOWN:return"gray";default:return"gray"}},q=async e=>{var s,t,n,p;try{e==="camera.ui"?await R():e==="go2rtc"&&await j()}catch(b){console.error(((t=(s=b.response)==null?void 0:s.data)==null?void 0:t.message)??b.message??b),ie.error(((p=(n=b.response)==null?void 0:n.data)==null?void 0:p.message)??b.message??b)}};return J(async()=>{if(N.value=m.getExistingNamespace("/metrics"),u.value=m.getExistingNamespace("/status"),!N.value)throw new Error("Not connected to metrics!");if(!u.value)throw new Error("Not connected to status!");await new Promise(e=>setTimeout(e,10)),u.value.socket.emit("get-process-status"),u.value.socket.on("process-status",e=>{e["camera.ui"]&&(_.value=e["camera.ui"].status),e.go2rtc&&(k.value=e.go2rtc.status),e.nats&&(C.value=e.nats.status)}),N.value.request("get-server-process-info").subscribe(e=>{v.value=e}),N.value.socket.on("process-infos",e=>{const s=e["camera.ui"],t=e.go2rtc,n=e.nats;v.value["camera.ui"].push(s),v.value.go2rtc.push(t),v.value.nats.push(n)})}),(e,s)=>{const t=le;return L(),P(Z,{"items-per-page":-1,headers:a(O),items:a(F),class:"elevation-0","hide-default-footer":"","mobile-breakpoint":"sm",hover:""},{"item.name":o(({item:n})=>[x("div",Ze,[d(de,{location:"top",text:e.$t(`components.process_table.status_${Q(n.name)}`)},{activator:o(({props:p})=>[d(se,ue(p,{color:E(n.name),dot:"",inline:""}),null,16,["color"])]),_:2},1032,["text"]),x("div",et,W(n.name),1)])]),"item.cpuLoad":o(({item:n})=>[d(z,{color:parseFloat(n.cpuLoad)>=15?"red":void 0,density:"compact",size:"small"},{default:o(()=>[$(W(n.cpuLoad)+" %",1)]),_:2},1032,["color"])]),"item.cpuLoadChart":o(({item:n})=>[(L(),P(V,null,{default:o(()=>[d(t,{type:"cpu","max-data-points":a(h),"process-info":n.name==="camera.ui"?a(v)["camera.ui"]:n.name==="go2rtc"?a(v).go2rtc:a(v).nats},null,8,["max-data-points","process-info"])]),_:2},1024))]),"item.memLoad":o(({item:n})=>[d(z,{color:parseFloat(n.cpuLoad)>=15?"red":void 0,density:"compact",size:"small"},{default:o(()=>[$(W(n.cpuLoad)+" %",1)]),_:2},1032,["color"])]),"item.memLoadChart":o(({item:n})=>[(L(),P(V,null,{default:o(()=>[d(t,{type:"memory","max-data-points":a(h),"process-info":n.name==="camera.ui"?a(v)["camera.ui"]:n.name==="go2rtc"?a(v).go2rtc:a(v).nats},null,8,["max-data-points","process-info"])]),_:2},1024))]),"item.restart":o(({item:n})=>[n.name!=="nats"?te((L(),P(re,{key:0,color:"#df2a4c",density:"compact",loading:n.name==="camera.ui"?a(D):a(B),icon:"",onClick:M(p=>q(n.name),["prevent"])},{default:o(()=>[d(ne,{size:"20"},{default:o(()=>[$(W(a(me)),1)]),_:1})]),_:2},1032,["loading","onClick"])),[[oe,{disabled:a(S),text:e.$t("components.form.tooltip.restart")}]]):he("",!0)]),bottom:o(()=>s[0]||(s[0]=[])),_:1},8,["headers","items"])}}}),at=H(tt,[["__scopeId","data-v-c68f1547"]]),st=K({__name:"VSystemMetricsTable",setup(g){const{t:r}=U.global,m=X(),S=c(),T=c(),N=c(30),u=c(200),h=c(32),l={cpuLoad:"0.00",memLoad:"0.00",timestamp:0},y=c([{name:"camera.ui",...l}]),_=c([]),k=Y([{title:r("components.process_table.title_name"),align:"start",key:"name",value:"name",minWidth:"200px",sortable:!0},{title:r("components.process_table.title_cpu"),align:"start",key:"cpuLoad",value:"cpuLoad",width:"103px",minWidth:"103px",maxWidth:"103px",sortable:!0},{title:"",align:"start",key:"cpuLoadChart",value:"cpuLoadChart",width:u.value+h.value,minWidth:u.value+h.value,maxWidth:u.value+h.value,sortable:!1},{title:r("components.process_table.title_memory"),align:"start",key:"memLoad",value:"memLoad",width:"103px",minWidth:"103px",maxWidth:"103px",sortable:!0},{title:"",align:"start",key:"memLoadChart",value:"memLoadChart",width:u.value+h.value,minWidth:u.value+h.value,maxWidth:u.value+h.value,sortable:!1},{title:"",align:"end",key:"restart",value:"restart",width:"60px",minWidth:"60px",maxWidth:"60px",sortable:!1}]);return G(_,C=>{y.value=[C[C.length-1]??{...l,name:"system"}]},{deep:!0,immediate:!0}),J(async()=>{if(S.value=m.getExistingNamespace("/metrics"),T.value=m.getExistingNamespace("/status"),!S.value)throw new Error("Not connected to metrics!");if(!T.value)throw new Error("Not connected to status!");await new Promise(C=>setTimeout(C,10)),S.value.request("get-system-info").subscribe(C=>{_.value=C}),S.value.socket.on("system-infos",C=>{_.value.push(C)})}),(C,w)=>{const i=le;return L(),P(Z,{"items-per-page":-1,headers:a(k),items:a(y),class:"elevation-0","hide-default-footer":"","mobile-breakpoint":"sm",hover:""},{"item.cpuLoad":o(({item:v})=>[d(z,{color:parseFloat(v.cpuLoad)>=75?"red":void 0,density:"compact",size:"small"},{default:o(()=>[$(W(v.cpuLoad)+" %",1)]),_:2},1032,["color"])]),"item.cpuLoadChart":o(()=>[(L(),P(V,null,{default:o(()=>[d(i,{type:"cpu","max-data-points":a(N),"process-info":a(_)},null,8,["max-data-points","process-info"])]),_:1}))]),"item.memLoad":o(({item:v})=>[d(z,{color:parseFloat(v.memLoad)>=75?"red":void 0,density:"compact",size:"small"},{default:o(()=>[$(W(v.memLoad)+" %",1)]),_:2},1032,["color"])]),"item.memLoadChart":o(()=>[(L(),P(V,null,{default:o(()=>[d(i,{type:"memory","max-data-points":a(N),"process-info":a(_)},null,8,["max-data-points","process-info"])]),_:1}))]),bottom:o(()=>w[0]||(w[0]=[])),_:1},8,["headers","items"])}}}),ot=H(st,[["__scopeId","data-v-34ba8f23"]]),rt={class:"h-full w-full inline-size mb-safe"},nt={class:"page-title"},it={class:"subview-title text-color"},lt={class:"inner-component p-4"},ct={class:"mt-10"},ut={class:"subview-title text-color"},mt={class:"inner-component p-4"},dt={class:"mt-10"},pt={class:"subview-title text-color"},vt={class:"inner-component p-4"},ft={class:"mt-10"},ht={class:"subview-title text-color"},_t={class:"inner-component p-4"},gt={class:"mt-10"},yt={class:"subview-title text-color"},bt={class:"inner-component p-4"},Xt=K({__name:"Adminpanel",setup(g){const r=X(),{smallMobileActive:m}=Pe(),S=c(),T=c(),N=c(!1);return J(()=>{S.value=r.connectToNamespace("/metrics"),T.value=r.connectToNamespace("/status")}),we(()=>{var u,h,l,y;(h=(u=S.value)==null?void 0:u.end)==null||h.call(u),(y=(l=T.value)==null?void 0:l.end)==null||y.call(l)}),(u,h)=>{const l=ot,y=at,_=Xe,k=qe,C=ze;return L(),ee("main",{class:pe(["w-full h-full",{"px-0":a(m)}])},[x("div",rt,[x("div",{class:pe(["mb-3 flex w-full items-center",{"px-2":a(m)}]),style:{height:"30px"}},[x("h1",nt,W(u.$t(`views.${String(u.$route.name).toLowerCase()}.title`)),1)],2),x("div",null,[x("span",it,W(u.$t("views.adminpanel.general")),1),x("div",lt,[d(l)])]),x("div",ct,[x("span",ut,W(u.$t("views.adminpanel.main")),1),x("div",mt,[d(y)])]),x("div",dt,[x("span",pt,W(u.$t("views.adminpanel.frameworker")),1),x("div",vt,[d(_)])]),x("div",ft,[x("span",ht,W(u.$t("views.adminpanel.plugins")),1),x("div",_t,[d(k)])]),x("div",gt,[x("span",yt,W(u.$t("views.adminpanel.logged_in_users")),1),x("div",bt,[d(C,{loading:a(N)},null,8,["loading"])])])])],2)}}});export{Xt as default};
@@ -0,0 +1 @@
1
+ import{G as x,b as S,d as $,f as e,a9 as s,R as a,u as l,i as p,p as c,ab as b,a7 as B}from"./@vue.DD07jlOO.0.0.34-alpha.0.js";import{b as U,a as k,h as C,V as L}from"./main.CBun-MVF.0.0.34-alpha.0.js";import{s as u}from"./pinia.4SaF1m4j.0.0.34-alpha.0.js";import{y as v,d as f,n as _,m as M}from"./vuetify.BZRDiB_v.0.0.34-alpha.0.js";import"./vue3-toastify.Bn4mvAn3.0.0.34-alpha.0.js";import"./vue-i18n.Bw8XEyfx.0.0.34-alpha.0.js";import"./@intlify.8z0ZxsCR.0.0.34-alpha.0.js";import"./axios.C-n2IhIP.0.0.34-alpha.0.js";import"./@tanstack.RTx9E9y7.0.0.34-alpha.0.js";import"./vue-router.FDI0ZN2g.0.0.34-alpha.0.js";import"./@vueuse.B8UZ0pix.0.0.34-alpha.0.js";import"./nprogress.BpOU_abF.0.0.34-alpha.0.js";import"./@xterm.CRsBeZ-e.0.0.34-alpha.0.js";import"./@mdi.C1UTQKuc.0.0.34-alpha.0.js";import"./vee-validate.DmSS7Yyb.0.0.34-alpha.0.js";import"./@vee-validate.ptox5Hkw.0.0.34-alpha.0.js";import"./zod.DnW1_kUe.0.0.34-alpha.0.js";import"./uuid.DvF23Exx.0.0.34-alpha.0.js";import"./socket.io-client.6m8Wx6Gb.0.0.34-alpha.0.js";import"./engine.io-client.DvNvteG8.0.0.34-alpha.0.js";import"./engine.io-parser.BiEtp6m2.0.0.34-alpha.0.js";import"./@socket.io.Dkula2eQ.0.0.34-alpha.0.js";import"./socket.io-parser.C3f8D3GG.0.0.34-alpha.0.js";import"./rxjs.qNj2ii7F.0.0.34-alpha.0.js";import"./tslib.9k7AwCpt.0.0.34-alpha.0.js";import"./vue-inline-svg.T4jTFiI-.0.0.34-alpha.0.js";import"./v-calendar.Bj3BKKi_.0.0.34-alpha.0.js";const E={class:"subview-title text-color"},K={class:"inner-component p-4"},N={class:"relative"},R={for:"theme",class:"v-label"},T={class:"ml-auto flex"},D={class:"flex flex-row"},O={class:"v-label m-0 mb-0 ml-2",for:"oneLogin"},A={class:"subview-title text-color"},G={class:"inner-component p-4"},j={class:"relative"},q={for:"language",class:"v-label"},z={class:"subview-title text-color"},F={class:"inner-component p-4"},H={class:"relative mb-3"},I={class:"v-label"},J={class:"relative flex"},P={class:"flex flex-row"},Q={class:"v-label m-0 mb-0 ml-2",for:"oneLogin"},W={class:"relative flex"},X={class:"flex flex-row"},Y={class:"v-label m-0 mb-0 ml-2",for:"oneLogin"},Ue=x({__name:"Appearance",setup(Z){const h=U(),V=k(),g=C(),{locale:d,languages:w}=u(h),{colors:y,theme:m,autoMode:r}=u(V),{uiSettings:n}=u(g);return(i,o)=>(S(),$("div",null,[e("div",null,[e("span",E,s(i.$t("views.settings.theme")),1),e("div",K,[e("div",N,[e("label",R,s(i.$t("components.form.label.theme")),1),a(v,{modelValue:l(m),"onUpdate:modelValue":o[0]||(o[0]=t=>p(m)?m.value=t:null),variant:"outlined",density:"compact",name:"theme","hide-details":"",items:l(y),disabled:l(r),onKeydown:c(()=>null,["prevent"])},null,8,["modelValue","items","disabled"])]),o[6]||(o[6]=e("div",{class:"py-2"},null,-1)),e("div",null,[e("div",T,[e("div",D,[a(f,{modelValue:l(r),"onUpdate:modelValue":o[1]||(o[1]=t=>p(r)?r.value=t:null),color:"#df2a4c",type:"checkbox","hide-details":""},null,8,["modelValue"]),e("span",O,s(i.$t("components.form.label.system_preference")),1)])])])])]),o[7]||(o[7]=e("div",{class:"my-8"},null,-1)),e("div",null,[e("span",A,s(i.$t("views.settings.locale")),1),e("div",G,[e("div",j,[e("label",q,s(i.$t("components.form.label.language")),1),a(v,{modelValue:l(d),"onUpdate:modelValue":o[2]||(o[2]=t=>p(d)?d.value=t:null),variant:"outlined",density:"compact",name:"language","hide-details":"",items:l(w),onKeydown:c(()=>null,["prevent"])},null,8,["modelValue","items"])])])]),o[8]||(o[8]=e("div",{class:"my-8"},null,-1)),e("div",null,[e("span",z,s(i.$t("views.settings.interface")),1),e("div",F,[e("div",null,[e("div",H,[e("label",I,s(i.$t("components.form.label.default_settings_page")),1),a(v,{modelValue:l(n).interface.selectedSettingsView,"onUpdate:modelValue":o[3]||(o[3]=t=>l(n).interface.selectedSettingsView=t),"hide-details":"",solo:"",variant:"outlined",density:"compact",items:l(L),onKeydown:c(()=>null,["prevent"])},{chip:b(({item:t})=>[a(M,{color:"#df2a4c"},{default:b(()=>[B(s(t.title),1)]),_:2},1024)]),_:1},8,["modelValue","items"])]),a(_,{style:{"border-color":"rgba(var(--color-rgb), 0.1)",opacity:"1"}}),e("div",J,[e("div",P,[a(f,{modelValue:l(n).cameras.showEvents,"onUpdate:modelValue":o[4]||(o[4]=t=>l(n).cameras.showEvents=t),color:"#df2a4c",type:"checkbox","hide-details":""},null,8,["modelValue"]),e("span",Q,s(i.$t("components.form.label.show_camera_events")),1)])]),a(_,{style:{"border-color":"rgba(var(--color-rgb), 0.1)",opacity:"1"}}),e("div",W,[e("div",X,[a(f,{modelValue:l(n).interface.showBottomBarOnMobile,"onUpdate:modelValue":o[5]||(o[5]=t=>l(n).interface.showBottomBarOnMobile=t),color:"#df2a4c",type:"checkbox","hide-details":""},null,8,["modelValue"]),e("span",Y,s(i.$t("components.form.label.show_bottombar_on_mobile")),1)])])])])])]))}});export{Ue as default};
@@ -0,0 +1 @@
1
+ import{x as O,X as R,w as T}from"./main.CBun-MVF.0.0.34-alpha.0.js";import{G as j,t as U,r as f,b as v,d as I,f as a,R as g,ab as k,a9 as r,u,k as C,aa as F,p as b,a7 as B,a4 as J,i as E}from"./@vue.DD07jlOO.0.0.34-alpha.0.js";import{i as D}from"./vue3-toastify.Bn4mvAn3.0.0.34-alpha.0.js";import{r as M}from"./system.C_kiuqo-.0.0.34-alpha.0.js";import{aD as X,X as A}from"./@mdi.C1UTQKuc.0.0.34-alpha.0.js";import{e as L,a1 as G,b as z,n as q}from"./vuetify.BZRDiB_v.0.0.34-alpha.0.js";import{u as H}from"./vue-i18n.Bw8XEyfx.0.0.34-alpha.0.js";import"./axios.C-n2IhIP.0.0.34-alpha.0.js";import"./@tanstack.RTx9E9y7.0.0.34-alpha.0.js";import"./pinia.4SaF1m4j.0.0.34-alpha.0.js";import"./vue-router.FDI0ZN2g.0.0.34-alpha.0.js";import"./@vueuse.B8UZ0pix.0.0.34-alpha.0.js";import"./nprogress.BpOU_abF.0.0.34-alpha.0.js";import"./@xterm.CRsBeZ-e.0.0.34-alpha.0.js";import"./vee-validate.DmSS7Yyb.0.0.34-alpha.0.js";import"./@vee-validate.ptox5Hkw.0.0.34-alpha.0.js";import"./zod.DnW1_kUe.0.0.34-alpha.0.js";import"./uuid.DvF23Exx.0.0.34-alpha.0.js";import"./socket.io-client.6m8Wx6Gb.0.0.34-alpha.0.js";import"./engine.io-client.DvNvteG8.0.0.34-alpha.0.js";import"./engine.io-parser.BiEtp6m2.0.0.34-alpha.0.js";import"./@socket.io.Dkula2eQ.0.0.34-alpha.0.js";import"./socket.io-parser.C3f8D3GG.0.0.34-alpha.0.js";import"./rxjs.qNj2ii7F.0.0.34-alpha.0.js";import"./tslib.9k7AwCpt.0.0.34-alpha.0.js";import"./vue-inline-svg.T4jTFiI-.0.0.34-alpha.0.js";import"./v-calendar.Bj3BKKi_.0.0.34-alpha.0.js";import"./@intlify.8z0ZxsCR.0.0.34-alpha.0.js";const K=async w=>(await O.post("/backup/download",{localStorage:w},{responseType:"arraybuffer"})).data,P=async w=>(await O.post("/backup/restore",w)).data,Q={class:"w-full"},W={class:"flex flex-col justify-center items-center mb-5"},Y={for:"restoreInput",class:"cursor-pointer text-center"},Z=["accept"],ee={key:0,class:"text-red"},te={class:"mx-2"},oe={class:"disabled-text"},se=j({__name:"VUploadFiles",props:{multiple:{type:Boolean,default:!1},accept:{},icon:{default:X}},emits:["files-uploaded"],setup(w,{expose:x,emit:V}){const p=V,S=w,{accept:y,multiple:h}=U(S),$=f(!1),_=f(!1),i=f([]),e=f(null),s=n=>{const t=i.value.findIndex(l=>l.name===n);t>-1&&(i.value.splice(t,1),o())},d=n=>{if($.value=!1,_.value=!1,i.value=[],console.log(n),n.dataTransfer)if(!h.value&&n.dataTransfer.files.length>1)_.value=!0;else{for(const[,t]of Object.entries(n.dataTransfer.files))i.value.push(t);p("files-uploaded",i.value)}},m=n=>{var l;_.value=!1,i.value=[];const t=n.target;if(t&&t.files)if(!h.value&&((l=t.files)==null?void 0:l.length)>1)_.value=!0;else{for(const[,N]of Object.entries(t.files))i.value.push(N);p("files-uploaded",i.value)}},o=()=>{e.value&&(e.value.value="")};return x({reset:()=>{i.value=[],o()}}),(n,t)=>(v(),I("div",{class:"file-upload-box p-4",onDrop:t[0]||(t[0]=b(l=>d(l),["prevent"])),onDragover:t[1]||(t[1]=b(l=>$.value=!0,["prevent"])),onDragenter:t[2]||(t[2]=b(l=>$.value=!0,["prevent"])),onDragleave:t[3]||(t[3]=b(l=>$.value=!1,["prevent"]))},[a("div",Q,[a("div",W,[g(L,{class:"mt-5",size:"60"},{default:k(()=>[B(r(n.icon),1)]),_:1}),a("label",Y,r(n.$t("components.upload_files.drop_or_select_file")),1),a("input",{id:"restoreInput",ref_key:"fileInput",ref:e,type:"file",class:"d-none",accept:u(y),onChange:m},null,40,Z),u(_)?(v(),I("p",ee,r(n.$t("components.upload_files.only_one_file_allowed")),1)):C("",!0)]),u(i).length>0?(v(),F(G,{key:0,items:u(i),"max-height":"150","item-height":"50"},{default:k(({item:l})=>[(v(),I("div",{key:l.name,class:"w-full flex flex-row items-center justify-start p-2"},[g(z,{size:"28",variant:"text",color:"red",rounded:"",onClick:b(N=>s(l.name),["stop"])},{default:k(()=>[g(L,{size:"20"},{default:k(()=>[B(r(u(A)),1)]),_:1})]),_:2},1032,["onClick"]),a("b",te,r(l.name),1),a("span",oe,"("+r(l.size)+" bytes)",1)])),u(i).length>1?(v(),F(q,{key:0})):C("",!0)]),_:1},8,["items"])):C("",!0)])],32))}}),ae={key:0,class:"flex w-full h-full justify-center items-center fixed top-0 left-0",style:{"z-index":"9000"}},le={class:"subview-title text-color"},ne={class:"inner-component p-4 flex flex-col"},re={class:"text-sm"},ie={class:"subview-title text-color"},ce={class:"inner-component p-4 flex flex-col"},ue={class:"text-sm"},pe={class:"subview-title text-color"},de={class:"inner-component p-4"},me={class:"text-sm"},Me=j({__name:"Backup",setup(w){const{t:x}=H(),V=f(null),p=f(!1),S=f(!1),y=f(!1),h=f([]),$=async()=>{var e,s,d,m;p.value=!0;try{const o={};if(localStorage.getItem("ui")){const l=localStorage.getItem("ui");o.ui=JSON.parse(l)}if(localStorage.getItem("locale")){const l=localStorage.getItem("locale");o.locale=l}if(localStorage.getItem("theme")){const l=localStorage.getItem("theme");o.theme=JSON.parse(l)}const c=await K(o),n=window.URL.createObjectURL(new Blob([c])),t=document.createElement("a");t.href=n,t.setAttribute("download","cameraui-backup.tar.gz"),document.body.appendChild(t),t.click(),t.remove()}catch(o){console.error(((s=(e=o.response)==null?void 0:e.data)==null?void 0:s.message)??o.message??o),D.error(((m=(d=o.response)==null?void 0:d.data)==null?void 0:m.message)??o.message??o)}p.value=!1},_=async()=>{var e,s,d,m,o;p.value=!0;try{const c=new FormData;c.append("upload",h.value[0]);const n=await P(c);i(n),(e=V.value)==null||e.reset(),D.success(x("components.toast.backup_restored")),S.value=!0,M()}catch(c){console.error(((d=(s=c.response)==null?void 0:s.data)==null?void 0:d.message)??c.message??c),D.error(((o=(m=c.response)==null?void 0:m.data)==null?void 0:o.message)??c.message??c),p.value=!1,S.value=!1}},i=e=>{e.theme&&localStorage.setItem("theme",JSON.stringify(e.theme)),e.locale&&localStorage.setItem("locale",e.locale),e.ui&&localStorage.setItem("ui",JSON.stringify(e.ui))};return(e,s)=>{const d=R,m=T;return v(),I("div",null,[(v(),F(J,{to:".app"},[u(S)?(v(),I("div",ae,[g(d,{reload:""})])):C("",!0)])),a("div",null,[a("span",le,r(e.$t("views.settings.create_backup")),1),a("div",ne,[a("span",re,r(e.$t("views.settings.create_backup_info")),1),s[4]||(s[4]=a("br",null,null,-1)),g(z,{loading:u(p),class:"mt-5 ml-auto",color:"#df2a4c",onClick:b($,["prevent"])},{default:k(()=>[B(r(e.$t("components.form.button.download_backup_archive")),1)]),_:1},8,["loading"])])]),s[5]||(s[5]=a("div",{class:"my-8"},null,-1)),a("div",null,[a("span",ie,r(e.$t("views.settings.restore_backup")),1),a("div",ce,[a("span",ue,r(e.$t("views.settings.restore_backup_info")),1),g(se,{ref_key:"input",ref:V,class:"mt-5",accept:"application/gzip, .tar, .tar.gz",onFilesUploaded:s[0]||(s[0]=o=>h.value=o)},null,512),g(z,{loading:u(p),disabled:!u(h).length,class:"mt-5 ml-auto",color:"#df2a4c",onClick:s[1]||(s[1]=b(o=>y.value=!0,["prevent"]))},{default:k(()=>[B(r(e.$t("components.form.button.restore_backup_archive")),1)]),_:1},8,["loading","disabled"])])]),s[6]||(s[6]=a("div",{class:"my-8"},null,-1)),a("div",null,[a("span",pe,r(e.$t("views.settings.sheduled_backup")),1),a("div",de,[a("span",me,r(e.$t("views.settings.sheduled_backup_info")),1)])]),g(m,{modelValue:u(y),"onUpdate:modelValue":s[2]||(s[2]=o=>E(y)?y.value=o:null),title:e.$t("components.dialog.title.confirm"),"confirm-text":"components.form.button.restore_and_restart",loading:u(p),onConfirm:s[3]||(s[3]=o=>_())},{content:k(()=>[a("span",null,r(e.$t("components.dialog.message.confirm_restore")),1)]),_:1},8,["modelValue","title","loading"])])}}});export{Me as default};
@@ -0,0 +1 @@
1
+ import{r as u,x as xe,Q as dt,G as me,t as _e,D as Ce,c as H,w as Y,O as pt,b as c,d as P,R as E,ab as z,e as ye,v as ft,u as t,a7 as se,a9 as B,f as b,p as fe,ac as I,aa as j,P as be,ad as Pe,k as ee,n as he,aj as ht,i as Oe,a5 as gt,g as ge,E as xt,ak as _t}from"./@vue.DD07jlOO.0.0.34-alpha.0.js";import{D as yt,E as bt,F as Pt,C as Le,G as wt}from"./@mdi.C1UTQKuc.0.0.34-alpha.0.js";import{a as Tt,f as Ve,k as De,l as St,m as Ht,n as Et,o as $t,p as Ft,q as kt,d as we,i as zt}from"./main.CBun-MVF.0.0.34-alpha.0.js";import{s as Ct}from"./pinia.4SaF1m4j.0.0.34-alpha.0.js";import{k as Lt,j as Re,e as Dt,l as Ot,m as Vt,n as Rt,p as Mt}from"./@vueuse.B8UZ0pix.0.0.34-alpha.0.js";import{b as ie,e as re,B as Gt,C as At,V as Te,D as It,E as Nt,R as Wt}from"./vuetify.BZRDiB_v.0.0.34-alpha.0.js";import{C as Me,_ as Ge}from"./VPlayer.BpXzNzAf.0.0.34-alpha.0.js";import{u as Ae}from"./vue-router.FDI0ZN2g.0.0.34-alpha.0.js";import"./vue3-toastify.Bn4mvAn3.0.0.34-alpha.0.js";import"./vue-i18n.Bw8XEyfx.0.0.34-alpha.0.js";import"./@intlify.8z0ZxsCR.0.0.34-alpha.0.js";import"./axios.C-n2IhIP.0.0.34-alpha.0.js";import"./@tanstack.RTx9E9y7.0.0.34-alpha.0.js";import"./vee-validate.DmSS7Yyb.0.0.34-alpha.0.js";import"./@vee-validate.ptox5Hkw.0.0.34-alpha.0.js";import"./zod.DnW1_kUe.0.0.34-alpha.0.js";import"./uuid.DvF23Exx.0.0.34-alpha.0.js";import"./socket.io-client.6m8Wx6Gb.0.0.34-alpha.0.js";import"./engine.io-client.DvNvteG8.0.0.34-alpha.0.js";import"./engine.io-parser.BiEtp6m2.0.0.34-alpha.0.js";import"./@socket.io.Dkula2eQ.0.0.34-alpha.0.js";import"./socket.io-parser.C3f8D3GG.0.0.34-alpha.0.js";import"./rxjs.qNj2ii7F.0.0.34-alpha.0.js";import"./tslib.9k7AwCpt.0.0.34-alpha.0.js";import"./vue-inline-svg.T4jTFiI-.0.0.34-alpha.0.js";import"./v-calendar.Bj3BKKi_.0.0.34-alpha.0.js";import"./nprogress.BpOU_abF.0.0.34-alpha.0.js";import"./@xterm.CRsBeZ-e.0.0.34-alpha.0.js";import"./qrcode.r6S5KRtW.0.0.34-alpha.0.js";import"./dijkstrajs.D_NXgYpA.0.0.34-alpha.0.js";import"./plugins.Btkvninu.0.0.34-alpha.0.js";import"./draggabilly.CJPXfEji.0.0.34-alpha.0.js";import"./get-size.D1dS-IaP.0.0.34-alpha.0.js";import"./unidragger.CuhjnRz3.0.0.34-alpha.0.js";import"./ev-emitter.V8vOXEOF.0.0.34-alpha.0.js";const jt=e=>{let $=null,G=0,O=0,f=0;const F=.95,w=u(),x=s=>{w.value="onTouchStart",$!==null&&(cancelAnimationFrame($),$=null),G=s.touches[0].pageY,O=G},C=s=>{w.value="onTouchMove";const i=s.touches[0].pageY,h=i-O;O=i,e.value&&(e.value.scrollTop-=h),f=h},_=()=>{w.value="onTouchEnd",Math.abs(f)>.5&&T()},T=()=>{f*=F,e.value&&(e.value.scrollTop-=f),Math.abs(f)>.5&&($=requestAnimationFrame(T))};return xe(()=>{e.value&&(e.value.addEventListener("touchstart",x),e.value.addEventListener("touchmove",C),e.value.addEventListener("touchend",_))}),dt(()=>{e.value&&(e.value.removeEventListener("touchstart",x),e.value.removeEventListener("touchmove",C),e.value.removeEventListener("touchend",_)),$!==null&&cancelAnimationFrame($)}),{currentTouchEvent:w}};var r=(e=>(e[e.HEIGHT=8]="HEIGHT",e[e.WIDTH=85]="WIDTH",e.COLOR="#000000",e[e.OFFSET=50]="OFFSET",e[e.TIME_OFFSET=15]="TIME_OFFSET",e[e.TIME_START_POSITION=15]="TIME_START_POSITION",e[e.MAX_SCROLL_PX=720]="MAX_SCROLL_PX",e))(r||{}),Ie=(e=>(e.type="seconds",e[e.bigTickInterval=5]="bigTickInterval",e[e.labelInterval=15]="labelInterval",e[e.duration=15e3]="duration",e[e.timeMsFactor=15e3]="timeMsFactor",e[e.timeMsPerTick=1e3]="timeMsPerTick",e[e.timeMsPerPx=125]="timeMsPerPx",e[e.pxPerSecond=8]="pxPerSecond",e))(Ie||{}),Ne=(e=>(e.type="two-minutes",e[e.bigTickInterval=4]="bigTickInterval",e[e.labelInterval=8]="labelInterval",e[e.duration=12e4]="duration",e[e.timeMsFactor=12e4]="timeMsFactor",e[e.timeMsPerTick=15e3]="timeMsPerTick",e[e.timeMsPerPx=1875]="timeMsPerPx",e[e.pxPerSecond=.5333333333333333]="pxPerSecond",e))(Ne||{}),We=(e=>(e.type="fifteen-minutes",e[e.bigTickInterval=5]="bigTickInterval",e[e.labelInterval=15]="labelInterval",e[e.duration=9e5]="duration",e[e.timeMsFactor=9e5]="timeMsFactor",e[e.timeMsPerTick=6e4]="timeMsPerTick",e[e.timeMsPerPx=7500]="timeMsPerPx",e[e.pxPerSecond=.13333333333333333]="pxPerSecond",e))(We||{}),je=(e=>(e.type="thirty-minutes",e[e.bigTickInterval=3]="bigTickInterval",e[e.labelInterval=9]="labelInterval",e[e.duration=18e5]="duration",e[e.timeMsFactor=18e5]="timeMsFactor",e[e.timeMsPerTick=2e5]="timeMsPerTick",e[e.timeMsPerPx=25e3]="timeMsPerPx",e[e.pxPerSecond=.04]="pxPerSecond",e))(je||{}),Be=(e=>(e.type="hours",e[e.bigTickInterval=3]="bigTickInterval",e[e.labelInterval=18]="labelInterval",e[e.duration=36e5]="duration",e[e.timeMsFactor=36e5]="timeMsFactor",e[e.timeMsPerTick=2e5]="timeMsPerTick",e[e.timeMsPerPx=25e3]="timeMsPerPx",e[e.pxPerSecond=.04]="pxPerSecond",e))(Be||{});const Bt={class:"relative h-full w-full"},Qt={class:"absolute z-3 top-0 left-0 right-0 w-full"},Ut={key:1},Xt={key:0,class:"relative h-full"},qt=["data-tick-index"],Yt=["data-tick-index"],Jt={key:0,class:"tick-label"},Zt={key:1,class:"relative h-full"},Kt=me({__name:"VLiveTimeline",props:{dateModel:{default:()=>new Date},modifier:{default:0},segment:{default:"0"}},emits:["is-loading","is-scrolling"],setup(e,{emit:$}){const G=e,O=$,{theme:f}=Ct(Tt()),{dateModel:F,modifier:w}=_e(G),x=u(0),C=u(0),_=u(new Date),T=u(0),s=Ce(),i=u(!1),h=u([]),S=u(!1),R=u(0),N=u(0),Q=u(new Date),A=u(0),K=u(0),k=u({timestamp:Date.now(),live:!0}),p=u(null),n=Ce([]),J=u(0),V=u(1);let te,ae;const{y,isScrolling:U}=Lt(p),Se=Re(p),{width:Qe,height:Ue}=Dt(),Xe=Ot({touch:!1,target:p}),{pressed:Z}=Vt({touch:!1,target:p}),{currentTouchEvent:He}=jt(p),{mobileActive:Ee}=Ve(),ve=Rt(p,!1),le=H(()=>He.value==="onTouchStart"||He.value==="onTouchMove"),$e=H(()=>y.value>0?"#0173ff":"#df2a4c"),oe=H(()=>{var d;const a=_.value.getTime(),l=r.TIME_OFFSET*r.HEIGHT-1;let o=((d=s.value)==null?void 0:d.timestamp)||a;return y.value===0&&(o=a),s.value&&(s.value.timestamp=o),{px:l,timestamp:o}}),qe=H(()=>v.value.type==="seconds"),Fe=H(()=>r.HEIGHT*v.value.labelInterval),Ye=H(()=>v.value.pxPerSecond*x.value+K.value),Je=H(()=>v.value.pxPerSecond*x.value-R.value*r.HEIGHT-3+K.value),Ze=H(()=>{let a=`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 ${r.WIDTH} ${Fe.value}" vector-effect="non-scaling-stroke" stroke-width="${1/(window.devicePixelRatio||1)}px" shape-rendering="crispEdges">`;if(!i.value)for(let l=0;l<v.value.labelInterval;l++){const o=l%v.value.labelInterval==0,d=0,g=o?4:l%v.value.bigTickInterval===0?2:1,m=l*r.HEIGHT+r.HEIGHT/2;a+=`<line x1="${d}" y1="${m}" x2="${2*g}" y2="${m}" stroke="${f.value==="light"?"#5b5b5b":"#888888"}" stroke-opacity="100%"/>`}return a+="</svg>",encodeURIComponent(a)}),Ke=H(()=>{var l;Qe.value,w==null||w.value;const a=(l=p.value)==null?void 0:l.getBoundingClientRect();return Ue.value-((a==null?void 0:a.top)||0)}),v=H(()=>ot(V.value));Y(i,a=>{ve.value=a,O("is-loading",a)}),Y(F,a=>{if(a){if(a.getTime()===oe.value.timestamp)return;a==null||a.setSeconds(0,0),de(a)}}),Y(Xe.y,(a,l)=>{if(Z.value&&a!==l&&p.value){let o=Math.abs(a-l);a<l&&(o=o*-1),p.value.scrollTop=p.value.scrollTop-=o}}),Y(U,a=>{O("is-scrolling",a),!a&&S.value&&(S.value=!1)}),Y(y,(a,l)=>{var g,m;if(a===0&&ne(-h.value.length),a!==l)if(a===0)k.value={timestamp:oe.value.timestamp,live:!0};else{const M=(a-l)*v.value.timeMsPerPx,L=S.value?k.value.timestamp:k.value.timestamp-M;k.value={timestamp:L,live:!1}}const d=(((g=p.value)==null?void 0:g.scrollHeight)||0)-(((m=p.value)==null?void 0:m.clientHeight)||0)-r.OFFSET*r.HEIGHT;a>=d&&ne(r.OFFSET)}),Y(V,async()=>{await pe(),y.value>0&&de(k.value.timestamp)});const et=()=>{V.value!==5&&(U.value||(V.value=(V.value||1)+1))},tt=()=>{V.value!==1&&(U.value||(V.value=(V.value||1)-1))},ke=a=>{var o;const l=(Ke.value||((o=p.value)==null?void 0:o.clientHeight)||0)+r.OFFSET*r.HEIGHT;a!==void 0?J.value+a*r.HEIGHT>=l&&(J.value+=a*r.HEIGHT):J.value=l},ne=(a,l,o)=>{var M;if(a===0)return;const d=Math.abs(a);let g=n.value.length-d,m=a<0;if(l){m||(m=!0,a=-a);for(let L=0;L<d;L++){const D=n.value[0],ue=D.index,W=D.timestamp,X=ue-1,q={index:X,format:v.value.type,timestamp:W+v.value.timeMsPerTick,label:X%v.value.labelInterval==0};n.value.unshift(q)}}if(ke(a),m)g!==0&&d===1?n.value.pop():n.value.splice(g,d),h.value=[];else{const L=(((M=p.value)==null?void 0:M.clientHeight)||0)+r.OFFSET*r.HEIGHT,D=Math.ceil(L/r.HEIGHT),ue=n.value.length>=D?0:D-n.value.length+1;for(let W=0;W<d;W++){const X=n.value[n.value.length-1],ce=X.index+1,ze={index:ce,format:v.value.type,timestamp:X.timestamp-v.value.timeMsPerTick,label:ce%v.value.labelInterval==0};W>=ue&&h.value.push(ze),n.value.push(ze)}}},at=a=>{let l;a&&typeof a!="number"&&(a=a.getTime()),a||(a=_.value.getTime());const o=n.value.map(m=>m.timestamp),d=kt(o,a),g=n.value.find(m=>m.timestamp===d.timestamp);return g&&(l={...g}),l},lt=a=>{typeof a!="number"&&(a=a.getTime());const l=oe.value.timestamp-a,o=new Date(oe.value.timestamp-l);return{y:l/v.value.timeMsPerTick*r.HEIGHT,timestamp:o.getTime()}},ot=a=>{switch(a){case 1:return Be;case 2:return je;case 3:return We;case 4:return Ne}return Ie},st=a=>new Promise(l=>{var X;it();let o=_.value.getTime();a&&(o=typeof a=="object"?a.getTime():a);const d=r.TIME_OFFSET*v.value.timeMsPerTick,g=new Date(o+d),M=rt(g).date.getTime(),L=Math.ceil(J.value/r.HEIGHT);for(let q=0;q<L;q++){const ce={index:q,format:v.value.type,timestamp:M-q*v.value.timeMsPerTick,label:q%v.value.labelInterval==0};n.value.push(ce)}const D=at(o);D&&(A.value=D.timestamp-o,s.value=D,s.value.timestamp=o);let W=(((X=s.value)==null?void 0:X.index)||0)*r.HEIGHT-r.TIME_OFFSET*r.HEIGHT;A.value<0?W+=A.value/v.value.timeMsPerPx:A.value>0&&(W-=A.value/v.value.timeMsPerPx),T.value=-(r.HEIGHT/2)-W,l()}),it=()=>{R.value=0,N.value=0,x.value=0,C.value=0,n.value=[]},rt=a=>{switch(v.value.type){case"seconds":return Ft(a);case"two-minutes":return $t(a);case"fifteen-minutes":return Et(a);case"thirty-minutes":return Ht(a);case"hours":return St(a)}},de=async(a,l="smooth",o=!1)=>{var g;if(a===0){(g=p.value)==null||g.scrollTo({top:0,behavior:"smooth"});return}S.value=o;const d=lt(a).y;if(d>=600){const m=r.OFFSET*v.value.timeMsPerTick,M=m/v.value.timeMsPerPx,L=typeof a=="object"?a.getTime():a;await pe(!0,L+m),S.value=!0,k.value.timestamp=L,he(()=>{var D;return(D=p.value)==null?void 0:D.scrollTo({top:M,behavior:l})});return}he(()=>{var m;return(m=p.value)==null?void 0:m.scrollTo({top:d,behavior:l})})},pe=async(a,l)=>{i.value=!0;const o=()=>{const m=new Date;return m.setMilliseconds(0),m};await new Promise(m=>{const M=new Date,L=1e3-M.getMilliseconds();setTimeout(()=>{new Date().getSeconds()===M.getSeconds()?setTimeout(m,1):m()},L)});const g=o();Q.value=g,_.value=g,mt(),ct(),await st(l||g),i.value=!1},nt=()=>{clearInterval(te),clearInterval(ae)},ut=()=>{const a=new Date;a.setMilliseconds(0),_.value=a,C.value++,!(i.value||ve.value||Z.value||le.value)&&(y.value===0?(x.value=C.value,k.value={timestamp:a.getTime(),live:!0}):y.value>0&&!U.value&&(console.log("updateClock"),x.value++,k.value={timestamp:k.value.timestamp+1e3,live:!1}))},ct=()=>{clearInterval(te),te=setInterval(ut,1e3)},mt=()=>{clearInterval(ae),ae=setInterval(vt,v.value.timeMsPerTick)},vt=()=>{if(i.value||ve.value||Z.value||le.value)return;const a=new Date;a.setMilliseconds(0),Q.value=a,N.value++,y.value===0?(ne(N.value-R.value,!0),s.value&&(s.value.index-=N.value-R.value),R.value=N.value):y.value>0&&!U.value&&(console.log("updateRotateTime"),ne(1,!0),R.value++,s.value&&s.value.index--)};return xe(()=>{i.value=!0,ke(),pe(),i.value=!1}),pt(()=>{nt()}),(a,l)=>(c(),P("div",Bt,[E(Gt,null,{default:z(()=>[ye(E(ie,{disabled:t(i)||t(U)||t(Z)||t(le),icon:"",class:"scroll-to-top z-10",size:"x-small",color:"#df2a4c",onClick:l[0]||(l[0]=o=>de(0))},{default:z(()=>[E(re,{size:"20"},{default:z(()=>[se(B(t(yt)),1)]),_:1})]),_:1},8,["disabled"]),[[ft,!t(k).live]])]),_:1}),b("div",{class:"flex flex-row timeline-btns z-10",style:I({right:t(Ee)?void 0:"20px",bottom:t(Ee)?void 0:"20px"})},[E(ie,{disabled:t(i)||t(V)===1||t(U)||t(Z)||t(le),icon:"",class:"zoom-button",onClick:fe(tt,["prevent"])},{default:z(()=>[E(re,{size:"20"},{default:z(()=>[se(B(t(bt)),1)]),_:1})]),_:1},8,["disabled"]),E(ie,{disabled:t(i)||t(V)===5||t(U)||t(Z)||t(le),icon:"",class:"ml-2 zoom-button",onClick:fe(et,["prevent"])},{default:z(()=>[E(re,{size:"20"},{default:z(()=>[se(B(t(Pt)),1)]),_:1})]),_:1},8,["disabled"])],4),b("div",Qt,[E(At,{active:t(i),indeterminate:t(i),color:"#df2a4c",height:"2px"},null,8,["active","indeterminate"])]),b("div",{class:"timeline-annotation z-2",style:I({top:`${t(oe).px}px`,backgroundColor:t($e)})},[b("div",{ref:"annotationLabel",class:"timeline-annotation-label",style:I({backgroundColor:t($e),width:t(i)?"20px":"60px",borderRadius:t(i)?"30px":void 0,left:"9px"})},[t(i)?(c(),j(Te,{key:0,indeterminate:"",color:"white",size:"10",width:"2"})):(c(),P("div",Ut,B(t(k).live?"LIVE":t(De)(t(k).timestamp,"HH:mm:ss")),1))],4)],4),b("div",{ref_key:"timeline",ref:p,class:"timeline hide-scrollbar disable-overflow-scroll w-full h-full relative",style:I({cursor:t(i)?"default":t(Z)?"grabbing":"grab"})},[b("div",{class:"timeline-overlay z-1 pointer-events-none",style:I({width:`${t(Se).width.value}px`,height:`${t(Se).height.value}px`})},null,4),a.segment==="0"?(c(),P("div",Xt,[b("div",{class:"timeline-scale",style:I({height:`${t(J)}px`,width:`${t(r).WIDTH}px`,maskImage:`url('data:image/svg+xml,${t(Ze)}')`,maskSize:`${t(r).WIDTH}px ${t(Fe)}px`,maskPosition:`0px ${t(T)+t(Ye)}px`})},null,4),(c(!0),P(be,null,Pe(t(n),(o,d)=>(c(),P("div",{key:o.index,"data-tick-index":o.index,class:"tick-container flex justify-center items-center absolute",style:I({height:`${t(r).HEIGHT}px`,top:`${t(T)+t(Je)+d*t(r).HEIGHT}px`})},[b("div",{"data-tick-index":`${o.index}`,class:"tick-line relative"},[o.label&&!t(i)?(c(),P("div",Jt,B(t(De)(o.timestamp,t(qe)?"HH:mm:ss":"HH:mm")),1)):ee("",!0)],8,Yt)],12,qt))),128))])):(c(),P("div",Zt))],4)]))}}),ea=we(Kt,[["__scopeId","data-v-b788f197"]]),ta={class:"vue-ios13-segmented-control"},aa=["id","name","value"],la=["for"],oa=me({__name:"VSegmentedControl",props:{modelValue:{},segments:{}},emits:["update:modelValue"],setup(e,{emit:$}){const G=e,O=$,f=u(0),{modelValue:F,segments:w}=_e(G),x=H({get(){return F.value},set(s){O("update:modelValue",s)}}),C=H(()=>w.value.findIndex(s=>s.id===F.value)),_=H(()=>{let s=f.value*C.value;return f.value*C.value<0&&(s=0),`transform:translateX(${s}px)`}),T=()=>{he(()=>{const s=document.querySelector(`input[type='radio'][value='${F.value}']`);f.value=s&&s.offsetWidth})};return Y([w,F],()=>{T()},{deep:!0}),Mt(window,"resize",T),(s,i)=>(c(),P("div",ta,[b("span",{class:"selection-pill",style:I(t(_))},null,4),(c(!0),P(be,null,Pe(t(w),h=>(c(),P("div",{key:h.id,class:"option"},[ye(b("input",{id:h.id,"onUpdate:modelValue":i[0]||(i[0]=S=>Oe(x)?x.value=S:null),type:"radio",name:h.title,value:h.id},null,8,aa),[[ht,t(x)]]),b("label",{for:h.id,class:"w-full cursor-pointer"},[b("span",{style:I(t(x)===h.id?"color: var(--color-segment-text);":"color: var(--color-segment-disabled-text)")},B(h.title),5)],8,la)]))),128))]))}}),sa={key:0,class:"w-full flex items-center justify-center mt-10"},ia={class:"flex flex-col justify-center items-center"},ra=me({__name:"VCameraCarousel",props:{showLabel:{type:Boolean,default:!1}},setup(e){const $=new Me,G=Ae(),O=e,{showLabel:f}=_e(O),F=u({page:1,pageSize:-1}),{data:w,isLoading:x}=$.getCamerasQuery(F),C=H(()=>{var _;return(_=w.value)==null?void 0:_.result.findIndex(T=>T.name===G.params.cameraname)});return(_,T)=>{const s=Ge,i=gt("router-link");return t(x)?(c(),P("div",sa,[E(Te,{color:"#df2a4c",indeterminate:""})])):(c(),j(Nt,{key:1,"model-value":t(C),class:"mt-3","show-arrows":"",mandatory:"force"},{default:z(()=>{var h;return[(c(!0),P(be,null,Pe(((h=t(w))==null?void 0:h.result)||[],(S,R)=>(c(),j(It,{key:S.name,value:R},{default:z(({toggle:N,isSelected:Q})=>[b("div",ia,[E(i,{to:`/cameras/${S.name}`,onClick:N},{default:z(()=>[ye(E(s,{class:"ma-3","current-camera":S.name,"border-radius":8,border:!1,target:"snapshot",style:{width:"140px"}},null,8,["current-camera"]),[[Wt]])]),_:2},1032,["to","onClick"]),t(f)?(c(),P("div",{key:0,class:ge(["add-transition slide-item-title",{"slide-item-title-active":Q}])},B(S.name||_.$t("general.loading")),3)):ee("",!0)])]),_:2},1032,["value"]))),128))]}),_:1},8,["model-value"]))}}}),na=we(ra,[["__scopeId","data-v-ec891350"]]),ua={key:0,class:"flex items-center justify-center w-full h-full"},ca={key:1,class:"w-full h-full"},ma={class:"absolute z-5 left-1 top-2"},va={class:"left-content"},da={key:0,class:"timeline-toggle"},pa={class:"flex flex-col items-center h-full sidebar camera-no-outside"},fa={key:0,class:"sidebar-header px-1 py-3 relative"},ha=me({__name:"Camera",setup(e){const $=new Me,G=Ae(),{desktopActive:O,mobileActive:f,tabletActive:F,extraSmallMobileActive:w}=Ve(),{t:x}=zt.global,C=u(new Date),_=u(),T=u(0),s=u("0"),i=u(!1),h=u(null),S=u(!1),R=u(!1),N=xt([{title:x("views.camera.timeline"),id:"0"},{title:x("views.camera.detections"),id:"1"}]),Q=Re(_),A=H(()=>G.params.cameraname),{data:K,isLoading:k}=$.getCameraQuery(A);return Y(f,p=>{p&&(i.value=!0)},{immediate:!0}),xe(async()=>{setTimeout(()=>{_.value=document.querySelector(".player-container-main")},100)}),(p,n)=>{const J=Ge,V=na,te=oa,ae=ea;return c(),P("main",{class:ge(["w-full h-full",{"p-3":!t(f)}])},[!t(K)||t(k)?(c(),P("div",ua,[E(Te,{color:"#df2a4c",indeterminate:""})])):(c(),P("div",ca,[b("div",{class:ge(["relative z-5 w-full h-full flex flex-col md:flex-row overflow-hidden",{"gap-4":t(O)}])},[b("div",ma,[t(w)?(c(),j(ie,{key:0,size:"32",icon:"",density:"compact",variant:"elevated",class:"no-drag camera-no-outside opacity-50",onClick:n[0]||(n[0]=fe(y=>p.$router.push("/cameras"),["prevent"]))},{default:z(()=>[E(re,{size:"24"},{default:z(()=>[se(B(t(Le)),1)]),_:1})]),_:1})):ee("",!0)]),b("div",va,[(c(),j(J,{key:t(A),"show-title":"",settings:"",share:"",snapshot:"",target:"stream","current-camera":t(K).name,"timeline-scrolling":t(R)||t(S),"border-radius":t(f)?0:3,"enable-control":"",shortcuts:"",motions:"",objects:"",zones:"","auto-hide-control":!1,"source-role":t(K).interface.streamingSource,onResize:n[1]||(n[1]=y=>T.value=y)},null,8,["current-camera","timeline-scrolling","border-radius","source-role"])),(c(),j(_t,null,[t(f)?ee("",!0):(c(),j(V,{key:0,"show-label":"","focus-index":""}))],1024))]),b("div",{class:"right-content",style:I(t(F)?`height: ${t(Q).height.value}px; width: ${t(Q).width.value/3}px; right: ${t(i)?0:-2-t(Q).width.value/3}px`:"")},[t(F)?(c(),P("div",da,[E(ie,{class:"camera-no-outside",color:"#212121",size:"30",variant:"elevated",icon:"",onClick:n[2]||(n[2]=y=>i.value=!t(i))},{default:z(()=>[E(re,{color:"#fff",size:"20"},{default:z(()=>[se(B(t(i)?t(wt):t(Le)),1)]),_:1})]),_:1})])):ee("",!0),b("div",pa,[!t(f)&&!t(F)?(c(),P("div",fa,[(c(),j(te,{key:t(A),modelValue:t(s),"onUpdate:modelValue":n[3]||(n[3]=y=>Oe(s)?s.value=y:null),segments:t(N)},null,8,["modelValue","segments"]))])):ee("",!0),(c(),j(ae,{key:t(A),ref_key:"timeline",ref:h,"date-model":t(C),modifier:t(T),segment:t(s),onIsScrolling:n[4]||(n[4]=y=>R.value=y),onIsLoading:n[5]||(n[5]=y=>S.value=y)},null,8,["date-model","modifier","segment"]))])],4)],2)]))],2)}}}),Za=we(ha,[["__scopeId","data-v-ab440271"]]);export{Za as default};
@@ -0,0 +1 @@
1
+ import{C as j,_ as I}from"./VPlayer.BpXzNzAf.0.0.34-alpha.0.js";import{e as L,d as M,f as N,h as T,j as D}from"./main.CBun-MVF.0.0.34-alpha.0.js";import{s as P}from"./utils.mAKpSMLY.0.0.34-alpha.0.js";import{j as Q}from"./@vueuse.B8UZ0pix.0.0.34-alpha.0.js";import{A as B,R as G,e as O,b as F}from"./vuetify.BZRDiB_v.0.0.34-alpha.0.js";import{G as R,t as K,r as E,c as C,x as U,b as t,d as s,u as e,P as h,ad as g,R as i,f as m,a9 as d,e as q,k as _,g as u,ab as $,_ as H,ac as z,aa as J,a7 as W}from"./@vue.DD07jlOO.0.0.34-alpha.0.js";import{e as X}from"./@mdi.C1UTQKuc.0.0.34-alpha.0.js";import{s as Y}from"./pinia.4SaF1m4j.0.0.34-alpha.0.js";import"./qrcode.r6S5KRtW.0.0.34-alpha.0.js";import"./dijkstrajs.D_NXgYpA.0.0.34-alpha.0.js";import"./vee-validate.DmSS7Yyb.0.0.34-alpha.0.js";import"./zod.DnW1_kUe.0.0.34-alpha.0.js";import"./@vee-validate.ptox5Hkw.0.0.34-alpha.0.js";import"./vue3-toastify.Bn4mvAn3.0.0.34-alpha.0.js";import"./plugins.Btkvninu.0.0.34-alpha.0.js";import"./@tanstack.RTx9E9y7.0.0.34-alpha.0.js";import"./draggabilly.CJPXfEji.0.0.34-alpha.0.js";import"./@xterm.CRsBeZ-e.0.0.34-alpha.0.js";import"./get-size.D1dS-IaP.0.0.34-alpha.0.js";import"./unidragger.CuhjnRz3.0.0.34-alpha.0.js";import"./ev-emitter.V8vOXEOF.0.0.34-alpha.0.js";import"./vue-router.FDI0ZN2g.0.0.34-alpha.0.js";import"./vue-i18n.Bw8XEyfx.0.0.34-alpha.0.js";import"./@intlify.8z0ZxsCR.0.0.34-alpha.0.js";import"./axios.C-n2IhIP.0.0.34-alpha.0.js";import"./uuid.DvF23Exx.0.0.34-alpha.0.js";import"./socket.io-client.6m8Wx6Gb.0.0.34-alpha.0.js";import"./engine.io-client.DvNvteG8.0.0.34-alpha.0.js";import"./engine.io-parser.BiEtp6m2.0.0.34-alpha.0.js";import"./@socket.io.Dkula2eQ.0.0.34-alpha.0.js";import"./socket.io-parser.C3f8D3GG.0.0.34-alpha.0.js";import"./rxjs.qNj2ii7F.0.0.34-alpha.0.js";import"./tslib.9k7AwCpt.0.0.34-alpha.0.js";import"./vue-inline-svg.T4jTFiI-.0.0.34-alpha.0.js";import"./v-calendar.Bj3BKKi_.0.0.34-alpha.0.js";import"./nprogress.BpOU_abF.0.0.34-alpha.0.js";const Z={key:0,class:"camera-events hide-scrollbar flex flex-auto flex-row"},ee={key:1,class:"disabled-text"},te={key:2,class:"camera-events hide-scrollbar flex flex-auto flex-row"},se=["onClick"],ae=R({__name:"VCameraEvents",props:{showAll:{type:Boolean,default:!1},camera:{}},setup(V){const y=V,{camera:a,showAll:f}=K(y),p=E(!0),l=E(null),x=Q(l),n=C(()=>{const o=[];for(let r=0;r<50;r++)o.push({camera:"Kamera 1",title:"Event 1",type:"motion",timestamp:Date.now(),image:void 0});return o}),w=C(()=>f.value||n.value.some(o=>o.camera===(a==null?void 0:a.value))),c=C(()=>Math.ceil(x.width.value/150)),S=o=>{console.log(o)},k=o=>!!(f.value||a!=null&&a.value&&o===a.value);return U(async()=>{await P(1500),p.value=!1}),(o,r)=>{const A=L;return t(),s("div",{ref_key:"main",ref:l,class:"camera-events-container"},[e(p)?(t(),s("div",Z,[(t(!0),s(h,null,g(e(c),(v,b)=>(t(),s("div",{key:b,class:"mx-1 flex flex-col justify-center items-center"},[i(B,{elevation:1,height:"140px",type:"image",class:"camera-event-card"}),i(B,{elevation:0,type:"text",style:{background:"none"}})]))),128))])):!e(p)&&(!e(w)||!e(n).length)?(t(),s("div",ee,[m("span",null,d(o.$t("components.camera_events.no_events")),1)])):(t(),s("div",te,[(t(!0),s(h,null,g(e(n),(v,b)=>(t(),s("div",{key:b,class:"mx-1 text-center"},[k(v.camera)?q((t(),s("div",{key:0,class:"camera-event-card cursor-pointer",onClick:ce=>S(v)},[i(A,{style:{background:"var(--background-img)","border-radius":"5px"},src:v.image,width:"100%",height:"100%","aspect-ratio":"1/1","spinner-size":"15","spinner-width":"2","error-style":"","placeholder-style":"",cover:""},null,8,["src"])],8,se)),[[G]]):_("",!0),r[0]||(r[0]=m("span",{class:"text-sm text-passive"},"12:01:45",-1))]))),128))]))],512)}}}),oe=M(ae,[["__scopeId","data-v-ebd7b0ef"]]),re={class:"page-title"},ne={class:"page-title"},ie={key:"new-camera",class:"w-full flex justify-center items-center mt-3"},le=R({__name:"Cameras",setup(V){const y=new j,{smallMobileActive:a,extraSmallMobileActive:f}=N(),p=T(),{uiSettings:l}=Y(p),x=E({page:1,pageSize:-1}),{data:n,isLoading:w}=y.getCamerasQuery(x);return(c,S)=>{const k=oe,o=I;return t(),s("main",{class:u(["w-full h-full",{"px-0":e(a)}])},[e(l).cameras.showEvents?(t(),s("div",{key:0,class:u(["mb-3 flex items-center",{"px-2":e(a)}]),style:{height:"30px"}},[m("h1",re,d(c.$t("views.cameras.events")),1)],2)):_("",!0),e(l).cameras.showEvents?(t(),s("div",{key:1,class:u(["w-full mb-3",{"px-2":e(a)}])},[i(k,{"show-all":""})],2)):_("",!0),m("div",{class:u(["mb-3 flex items-center",{"px-2":e(a)}]),style:{height:"30px"}},[m("h1",ne,d(c.$t(`views.${String(c.$route.name).toLowerCase()}.title`)),1)],2),i(H,{name:"fade",tag:"div"},{default:$(()=>[e(w)||!e(n)?(t(),s("div",{key:0,class:"grid",style:z(`grid-template-columns: repeat(auto-fit, minmax(${e(a)?"100%":"300px"}, 1fr))`)},[(t(),s(h,null,g(8,r=>i(B,{key:r,elevation:1,type:"image",class:"w-full h-full aspect-video"})),64))],4)):e(n).result.length?(t(),s("div",{key:2,class:"grid",style:z(`grid-template-columns: repeat(auto-fit, minmax(${e(a)?"100%":"300px"}, 1fr)) ${e(n).result.length===1?"50%":""}`)},[(t(!0),s(h,null,g(e(n).result,r=>(t(),s("div",{key:r.name,class:"relative item"},[i(o,{"absolute-title":"","show-title":"","show-tooltips":!1,"clickable-title":"","clickable-container":"","refresh-snapshot":"",settings:"","current-camera":r.name,"border-radius":e(a)?0:3,border:!1,target:"snapshot","button-elevation":"1"},null,8,["current-camera","border-radius"])]))),128))],4)):(t(),s("div",{key:1,class:u({"disabled-text":!0,"px-2":e(a)})},d(c.$t("views.cameras.no_cameras")),3)),m("div",ie,[e(D)(void 0,"admin")&&(!e(l).interface.showBottomBarOnMobile||e(l).interface.showBottomBarOnMobile&&!e(f))?(t(),J(F,{key:0,to:"/new-camera",variant:"text",color:"#df2a4c",icon:""},{default:$(()=>[i(O,{size:"30"},{default:$(()=>[W(d(e(X)),1)]),_:1})]),_:1})):_("",!0)])]),_:1})],2)}}}),Ue=M(le,[["__scopeId","data-v-37b58447"]]);export{Ue as default};