@camera.ui/server 0.0.19-alpha.4 → 0.0.19

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 (200) hide show
  1. package/dist/interface/@tanstack.Se2iT8Do.0.0.19.js +1 -0
  2. package/dist/interface/{@vee-validate.C8yy5d3i.0.0.19-alpha.4.js → @vee-validate.Bcx_WiV5.0.0.19.js} +1 -1
  3. package/dist/interface/@vue.CstzJJLy.0.0.19.js +17 -0
  4. package/dist/interface/@vueform.CvaHGYFj.0.0.19.js +1 -0
  5. package/dist/interface/@vueuse.Nf7ssJjc.0.0.19.js +1 -0
  6. package/dist/interface/Account.DXKkPVBt.0.0.19.js +1 -0
  7. package/dist/interface/Adminpanel.pkKALSus.0.0.19.js +2 -0
  8. package/dist/interface/Appearance.D_9yfajW.0.0.19.js +1 -0
  9. package/dist/interface/Backup.CFTHUcsr.0.0.19.js +1 -0
  10. package/dist/interface/Camera.HhwHREdr.0.0.19.js +1 -0
  11. package/dist/interface/Cameras.DaA0aZ8n.0.0.19.js +1 -0
  12. package/dist/interface/Camview.CZ_MZGKR.0.0.19.js +1 -0
  13. package/dist/interface/Config.QI-7ISAF.0.0.19.js +1 -0
  14. package/dist/interface/Console.CuW7zaET.0.0.19.js +4 -0
  15. package/dist/interface/FirstSteps.B0msYtHY.0.0.19.js +1 -0
  16. package/dist/interface/{NewCamera.Z6kvPa3x.0.0.19-alpha.4.js → NewCamera.B2es_aOR.0.0.19.js} +2 -2
  17. package/dist/interface/Plugin.v7XIFUCb.0.0.19.js +1 -0
  18. package/dist/interface/Plugins.0rlSje63.0.0.19.js +1 -0
  19. package/dist/interface/Recordings.D2BO0mej.0.0.19.js +1 -0
  20. package/dist/interface/Recordings.zSEMtMS4.0.0.19.js +1 -0
  21. package/dist/interface/Settings.Mc_k_t84.0.0.19.js +1 -0
  22. package/dist/interface/System.mhkORZrl.0.0.19.js +4 -0
  23. package/dist/interface/User.fyvKVRwY.0.0.19.js +1 -0
  24. package/dist/interface/VConfigEditor.vue_vue_type_script_setup_true_lang.C0_inHCi.0.0.19.js +2 -0
  25. package/dist/interface/VConsole.CL8o82Ja.0.0.19.js +1 -0
  26. package/dist/interface/VPlayer.C999p1UQ.0.0.19.js +1 -0
  27. package/dist/interface/VPluginCard.BewJDf5m.0.0.19.js +4 -0
  28. package/dist/interface/{ace-builds.fHlWNn7R.0.0.19-alpha.4.js → ace-builds.DcyMKdND.0.0.19.js} +3 -3
  29. package/dist/interface/apexcharts.CnkKUZWL.0.0.19.js +795 -0
  30. package/dist/interface/assets/Adminpanel.0.0.19.DGj4gqg2.css +1 -0
  31. package/dist/interface/assets/{Plugin.0.0.19-alpha.4.CY2rlLw0.css → Plugin.0.0.19.BtRA6zDt.css} +1 -1
  32. package/dist/interface/assets/{Settings.0.0.19-alpha.4.DTxcLhIY.css → Settings.0.0.19.DC_-E3CR.css} +1 -1
  33. package/dist/interface/assets/User.0.0.19.3wRfclxd.css +1 -0
  34. package/dist/interface/assets/{VPlayer.0.0.19-alpha.4.C9sQDyOt.css → VPlayer.0.0.19.YEg8PV4J.css} +1 -1
  35. package/dist/interface/assets/VPluginCard.0.0.19.Dc6BSSnE.css +1 -0
  36. package/dist/interface/assets/{main.0.0.19-alpha.4.COKDX8jU.css → main.0.0.19.DtbCLMJ4.css} +1 -1
  37. package/dist/interface/assets/{vuetify.0.0.19-alpha.4.DPyVfAPv.css → vuetify.0.0.19.Cd1awv3t.css} +1 -1
  38. package/dist/interface/axios.C-n2IhIP.0.0.19.js +6 -0
  39. package/dist/interface/dnd-core.dlvDoZdo.0.0.19.js +1 -0
  40. package/dist/interface/{draggabilly.zcAajLt3.0.0.19-alpha.4.js → draggabilly.C9C_3o7g.0.0.19.js} +1 -1
  41. package/dist/interface/engine.io-client.CWvL04zC.0.0.19.js +1 -0
  42. package/dist/interface/ev-emitter.BRBSy4T4.0.0.19.js +1 -0
  43. package/dist/interface/fast-deep-equal.BTYbOpwI.0.0.19.js +1 -0
  44. package/dist/interface/{highlight.js.B1IH857b.0.0.19-alpha.4.js → highlight.js.C5P4pCkt.0.0.19.js} +1 -1
  45. package/dist/interface/index.html +33 -33
  46. package/dist/interface/linkify-it.tc7RSb5j.0.0.19.js +1 -0
  47. package/dist/interface/main.DccKR3Rr.0.0.19.js +4 -0
  48. package/dist/interface/{markdown-it.BrWKCsz1.0.0.19-alpha.4.js → markdown-it.B5C1G3BB.0.0.19.js} +1 -1
  49. package/dist/interface/{nprogress.B11HQZ7O.0.0.19-alpha.4.js → nprogress.BkPA-CXl.0.0.19.js} +1 -1
  50. package/dist/interface/{pinia.CKEhg5tS.0.0.19-alpha.4.js → pinia.DMDlYZhC.0.0.19.js} +1 -1
  51. package/dist/interface/plugins.BY6m5qSg.0.0.19.js +1 -0
  52. package/dist/interface/{qrcode.CgZEotqz.0.0.19-alpha.4.js → qrcode.CtBvZWgA.0.0.19.js} +1 -1
  53. package/dist/interface/react-dnd-touch-backend.DfkVjpsx.0.0.19.js +1 -0
  54. package/dist/interface/{rxjs.sidCrT1K.0.0.19-alpha.4.js → rxjs.BKLhTuUF.0.0.19.js} +1 -1
  55. package/dist/interface/socket.io-client.BKegZC2j.0.0.19.js +1 -0
  56. package/dist/interface/socket.io-parser.DiIpQQVr.0.0.19.js +1 -0
  57. package/dist/interface/sw.js +1 -1
  58. package/dist/interface/system.D3E9CAdY.0.0.19.js +1 -0
  59. package/dist/interface/ui.D5OPc46X.0.0.19.js +1 -0
  60. package/dist/interface/{unidragger.BxMQ4vlb.0.0.19-alpha.4.js → unidragger.DBjqFOK7.0.0.19.js} +1 -1
  61. package/dist/interface/v-calendar.D11VqVoA.0.0.19.js +1 -0
  62. package/dist/interface/{vee-validate.Bo9ok7dW.0.0.19-alpha.4.js → vee-validate.CfdwUlPs.0.0.19.js} +1 -1
  63. package/dist/interface/{vue-i18n.BSWcmo_h.0.0.19-alpha.4.js → vue-i18n.D1wIbtVk.0.0.19.js} +1 -1
  64. package/dist/interface/vue-inline-svg.BXS9IorY.0.0.19.js +1 -0
  65. package/dist/interface/{vue-router.CglcLmwp.0.0.19-alpha.4.js → vue-router.ZlB7kDV8.0.0.19.js} +1 -1
  66. package/dist/interface/vue3-apexcharts.CIFHRTWV.0.0.19.js +1 -0
  67. package/dist/interface/vue3-dnd.BLjq82gz.0.0.19.js +1 -0
  68. package/dist/interface/vue3-toastify.njN-Q4fO.0.0.19.js +1 -0
  69. package/dist/interface/vuetify.Ct3F8hZz.0.0.19.js +5 -0
  70. package/dist/server/bin/cameraui.d.ts +2 -1
  71. package/dist/server/bin/cameraui.js +35 -3
  72. package/dist/server/bin/cameraui.js.map +1 -1
  73. package/dist/server/bin/installer/linux.js +2 -2
  74. package/dist/server/bin/installer/linux.js.map +1 -1
  75. package/dist/server/package.json +5 -5
  76. package/dist/server/requirements.txt +1 -0
  77. package/dist/server/src/api/controllers/cameras.controller.js +10 -2
  78. package/dist/server/src/api/controllers/cameras.controller.js.map +1 -1
  79. package/dist/server/src/api/controllers/plugins.controller.js +3 -3
  80. package/dist/server/src/api/controllers/plugins.controller.js.map +1 -1
  81. package/dist/server/src/api/schemas/users.schema.js +2 -2
  82. package/dist/server/src/api/schemas/users.schema.js.map +1 -1
  83. package/dist/server/src/api/services/auth.service.js +11 -9
  84. package/dist/server/src/api/services/auth.service.js.map +1 -1
  85. package/dist/server/src/api/websocket/nsp/metrics.d.ts +5 -1
  86. package/dist/server/src/api/websocket/nsp/metrics.js +42 -2
  87. package/dist/server/src/api/websocket/nsp/metrics.js.map +1 -1
  88. package/dist/server/src/camera/streaming/peer-connection.d.ts +1 -0
  89. package/dist/server/src/camera/streaming/peer-connection.js +72 -79
  90. package/dist/server/src/camera/streaming/peer-connection.js.map +1 -1
  91. package/dist/server/src/camera/streaming/werift-session.js +4 -6
  92. package/dist/server/src/camera/streaming/werift-session.js.map +1 -1
  93. package/dist/server/src/camera/types.d.ts +1 -1
  94. package/dist/server/src/decoder/worker.js +6 -6
  95. package/dist/server/src/decoder/worker.js.map +1 -1
  96. package/dist/server/src/nats/server.js +4 -4
  97. package/dist/server/src/nats/server.js.map +1 -1
  98. package/dist/server/src/plugins/index.js +3 -4
  99. package/dist/server/src/plugins/index.js.map +1 -1
  100. package/dist/server/src/plugins/worker.js +3 -2
  101. package/dist/server/src/plugins/worker.js.map +1 -1
  102. package/dist/server/src/polyglot/node/plugins/child.js +4 -3
  103. package/dist/server/src/polyglot/node/plugins/child.js.map +1 -1
  104. package/dist/server/src/polyglot/python/camera/iou.py +1 -1
  105. package/dist/server/src/polyglot/python/plugins/child.py +55 -13
  106. package/dist/server/src/utils/pythonInstaller.js +46 -29
  107. package/dist/server/src/utils/pythonInstaller.js.map +1 -1
  108. package/dist/server/src/utils/reader.js +4 -4
  109. package/dist/server/src/utils/reader.js.map +1 -1
  110. package/package.json +5 -5
  111. package/dist/interface/@tanstack.qOZAU3xp.0.0.19-alpha.4.js +0 -1
  112. package/dist/interface/@vue.CIFymae3.0.0.19-alpha.4.js +0 -17
  113. package/dist/interface/@vueform.DAkPIzUC.0.0.19-alpha.4.js +0 -1
  114. package/dist/interface/@vueuse.CAwL_bcj.0.0.19-alpha.4.js +0 -1
  115. package/dist/interface/Account.B5RYegs3.0.0.19-alpha.4.js +0 -1
  116. package/dist/interface/Adminpanel.BDmg9nWN.0.0.19-alpha.4.js +0 -2
  117. package/dist/interface/Appearance.DUa2cV7m.0.0.19-alpha.4.js +0 -1
  118. package/dist/interface/Backup.fVgGytgc.0.0.19-alpha.4.js +0 -1
  119. package/dist/interface/Camera.DcBv4LYg.0.0.19-alpha.4.js +0 -1
  120. package/dist/interface/Cameras.D_25cgbD.0.0.19-alpha.4.js +0 -1
  121. package/dist/interface/Camview.DTbTsgr3.0.0.19-alpha.4.js +0 -1
  122. package/dist/interface/Config.Cz0dGkYg.0.0.19-alpha.4.js +0 -1
  123. package/dist/interface/Console.D75PiRc3.0.0.19-alpha.4.js +0 -4
  124. package/dist/interface/FirstSteps.DNcWCtMy.0.0.19-alpha.4.js +0 -1
  125. package/dist/interface/Plugin.mmUngaV3.0.0.19-alpha.4.js +0 -1
  126. package/dist/interface/Plugins.sBN7g__L.0.0.19-alpha.4.js +0 -1
  127. package/dist/interface/Recordings.8Nlq1_Pz.0.0.19-alpha.4.js +0 -1
  128. package/dist/interface/Recordings.I9MFiz04.0.0.19-alpha.4.js +0 -1
  129. package/dist/interface/Settings.9zPlPhAw.0.0.19-alpha.4.js +0 -1
  130. package/dist/interface/System.BxOALKgN.0.0.19-alpha.4.js +0 -4
  131. package/dist/interface/User.CV5Rn1lL.0.0.19-alpha.4.js +0 -1
  132. package/dist/interface/VConfigEditor.vue_vue_type_script_setup_true_lang.BP6PPryz.0.0.19-alpha.4.js +0 -2
  133. package/dist/interface/VConsole.ujWZFkgC.0.0.19-alpha.4.js +0 -1
  134. package/dist/interface/VPlayer.CG88vXd_.0.0.19-alpha.4.js +0 -1
  135. package/dist/interface/VPluginCard.BdC1u7aK.0.0.19-alpha.4.js +0 -4
  136. package/dist/interface/assets/Adminpanel.0.0.19-alpha.4.A2JXV1Ib.css +0 -1
  137. package/dist/interface/assets/User.0.0.19-alpha.4.DAaNwzw2.css +0 -1
  138. package/dist/interface/assets/VPluginCard.0.0.19-alpha.4.C2OqX7DJ.css +0 -1
  139. package/dist/interface/axios.CpM4fnec.0.0.19-alpha.4.js +0 -6
  140. package/dist/interface/dnd-core.DDf1gnyF.0.0.19-alpha.4.js +0 -1
  141. package/dist/interface/engine.io-client.C6wyAukE.0.0.19-alpha.4.js +0 -1
  142. package/dist/interface/ev-emitter.C9NL7haA.0.0.19-alpha.4.js +0 -1
  143. package/dist/interface/fast-deep-equal.h0bGyPR-.0.0.19-alpha.4.js +0 -1
  144. package/dist/interface/linkify-it.8YK3lINU.0.0.19-alpha.4.js +0 -1
  145. package/dist/interface/main.CIfXFhuz.0.0.19-alpha.4.js +0 -4
  146. package/dist/interface/plugins.DVuRTIDq.0.0.19-alpha.4.js +0 -1
  147. package/dist/interface/react-dnd-touch-backend.BQYMyqjo.0.0.19-alpha.4.js +0 -1
  148. package/dist/interface/socket.io-client.QHRg7xVe.0.0.19-alpha.4.js +0 -1
  149. package/dist/interface/socket.io-parser.vm4qqzsf.0.0.19-alpha.4.js +0 -1
  150. package/dist/interface/system.BXNYWUWF.0.0.19-alpha.4.js +0 -1
  151. package/dist/interface/ui.DoyMxezG.0.0.19-alpha.4.js +0 -1
  152. package/dist/interface/v-calendar.DTVi51qJ.0.0.19-alpha.4.js +0 -1
  153. package/dist/interface/vue-inline-svg.ErrqEIY6.0.0.19-alpha.4.js +0 -1
  154. package/dist/interface/vue3-apexcharts.CJ7MvpHI.0.0.19-alpha.4.js +0 -703
  155. package/dist/interface/vue3-dnd.CiXRRfMZ.0.0.19-alpha.4.js +0 -1
  156. package/dist/interface/vue3-toastify.AULyD5Ny.0.0.19-alpha.4.js +0 -1
  157. package/dist/interface/vuetify.DahT5NSg.0.0.19-alpha.4.js +0 -5
  158. /package/dist/interface/{@babel.l0sNRNKZ.0.0.19-alpha.4.js → @babel.l0sNRNKZ.0.0.19.js} +0 -0
  159. /package/dist/interface/{@intlify.YW_pt133.0.0.19-alpha.4.js → @intlify.YW_pt133.0.0.19.js} +0 -0
  160. /package/dist/interface/{@mdi.DnMbZhUH.0.0.19-alpha.4.js → @mdi.DnMbZhUH.0.0.19.js} +0 -0
  161. /package/dist/interface/{@popperjs.BQBsAJpH.0.0.19-alpha.4.js → @popperjs.BQBsAJpH.0.0.19.js} +0 -0
  162. /package/dist/interface/{@react-dnd.CcwRs9xb.0.0.19-alpha.4.js → @react-dnd.CcwRs9xb.0.0.19.js} +0 -0
  163. /package/dist/interface/{@socket.io.Dkula2eQ.0.0.19-alpha.4.js → @socket.io.Dkula2eQ.0.0.19.js} +0 -0
  164. /package/dist/interface/{@xterm.DIk7m9Ro.0.0.19-alpha.4.js → @xterm.C8pywIfa.0.0.19.js} +0 -0
  165. /package/dist/interface/assets/{@vueform.0.0.19-alpha.4.h7tNX9p6.css → @vueform.0.0.19.h7tNX9p6.css} +0 -0
  166. /package/dist/interface/assets/{@xterm.0.0.19-alpha.4.CGrrDQr5.css → @xterm.0.0.19.CGrrDQr5.css} +0 -0
  167. /package/dist/interface/assets/{Account.0.0.19-alpha.4.BCEftDNE.css → Account.0.0.19.BCEftDNE.css} +0 -0
  168. /package/dist/interface/assets/{Backup.0.0.19-alpha.4.BIwaSlv3.css → Backup.0.0.19.BIwaSlv3.css} +0 -0
  169. /package/dist/interface/assets/{Camera.0.0.19-alpha.4.BDtUJ-lA.css → Camera.0.0.19.BDtUJ-lA.css} +0 -0
  170. /package/dist/interface/assets/{Cameras.0.0.19-alpha.4.Djx0F2MM.css → Cameras.0.0.19.Djx0F2MM.css} +0 -0
  171. /package/dist/interface/assets/{Camview.0.0.19-alpha.4.Ce_V-Nxj.css → Camview.0.0.19.Ce_V-Nxj.css} +0 -0
  172. /package/dist/interface/assets/{Config.0.0.19-alpha.4.k4QpWumg.css → Config.0.0.19.k4QpWumg.css} +0 -0
  173. /package/dist/interface/assets/{Console.0.0.19-alpha.4.DWrfRWs9.css → Console.0.0.19.DWrfRWs9.css} +0 -0
  174. /package/dist/interface/assets/{FirstSteps.0.0.19-alpha.4.27JF_jaE.css → FirstSteps.0.0.19.27JF_jaE.css} +0 -0
  175. /package/dist/interface/assets/{NewCamera.0.0.19-alpha.4.DJ3tUBT_.css → NewCamera.0.0.19.DJ3tUBT_.css} +0 -0
  176. /package/dist/interface/assets/{Plugins.0.0.19-alpha.4.Cwu0aGUO.css → Plugins.0.0.19.Cwu0aGUO.css} +0 -0
  177. /package/dist/interface/assets/{VConsole.0.0.19-alpha.4.BZT1WyS-.css → VConsole.0.0.19.BZT1WyS-.css} +0 -0
  178. /package/dist/interface/assets/{highlight.0.0.19-alpha.4.DgoK_Xib.css → highlight.0.0.19.DgoK_Xib.css} +0 -0
  179. /package/dist/interface/assets/{logo-256.0.0.19-alpha.4.BCQk9H1-.png → logo-256.0.0.19.BCQk9H1-.png} +0 -0
  180. /package/dist/interface/assets/{logo-512.0.0.19-alpha.4.DLKVOU2S.png → logo-512.0.0.19.DLKVOU2S.png} +0 -0
  181. /package/dist/interface/assets/{logo.0.0.19-alpha.4.DmEiRk0z.png → logo.0.0.19.DmEiRk0z.png} +0 -0
  182. /package/dist/interface/assets/{mode-json.0.0.19-alpha.4.Br7xisR1.js → mode-json.0.0.19.Br7xisR1.js} +0 -0
  183. /package/dist/interface/assets/{mode-yaml.0.0.19-alpha.4.CIYL8U3d.js → mode-yaml.0.0.19.CIYL8U3d.js} +0 -0
  184. /package/dist/interface/assets/{v-calendar.0.0.19-alpha.4.CtSuDYZU.css → v-calendar.0.0.19.CtSuDYZU.css} +0 -0
  185. /package/dist/interface/assets/{vue3-toastify.0.0.19-alpha.4.DTY1DMRs.css → vue3-toastify.0.0.19.DTY1DMRs.css} +0 -0
  186. /package/dist/interface/{compare-versions.DqEOhma6.0.0.19-alpha.4.js → compare-versions.DqEOhma6.0.0.19.js} +0 -0
  187. /package/dist/interface/{dijkstrajs.D_NXgYpA.0.0.19-alpha.4.js → dijkstrajs.D_NXgYpA.0.0.19.js} +0 -0
  188. /package/dist/interface/{engine.io-parser.BiEtp6m2.0.0.19-alpha.4.js → engine.io-parser.BiEtp6m2.0.0.19.js} +0 -0
  189. /package/dist/interface/{entities.C20TfXL6.0.0.19-alpha.4.js → entities.C20TfXL6.0.0.19.js} +0 -0
  190. /package/dist/interface/{get-size.D1dS-IaP.0.0.19-alpha.4.js → get-size.D1dS-IaP.0.0.19.js} +0 -0
  191. /package/dist/interface/{mdurl.k9Sl0PQj.0.0.19-alpha.4.js → mdurl.k9Sl0PQj.0.0.19.js} +0 -0
  192. /package/dist/interface/{punycode.js.Dj65hjkv.0.0.19-alpha.4.js → punycode.js.Dj65hjkv.0.0.19.js} +0 -0
  193. /package/dist/interface/{react-dnd-html5-backend.1HQjlkwI.0.0.19-alpha.4.js → react-dnd-html5-backend.1HQjlkwI.0.0.19.js} +0 -0
  194. /package/dist/interface/{redux.CuxFRhX_.0.0.19-alpha.4.js → redux.CuxFRhX_.0.0.19.js} +0 -0
  195. /package/dist/interface/{tslib.9k7AwCpt.0.0.19-alpha.4.js → tslib.9k7AwCpt.0.0.19.js} +0 -0
  196. /package/dist/interface/{uc.micro.kMc2yuuw.0.0.19-alpha.4.js → uc.micro.kMc2yuuw.0.0.19.js} +0 -0
  197. /package/dist/interface/{utils.BvINh1mj.0.0.19-alpha.4.js → utils.BvINh1mj.0.0.19.js} +0 -0
  198. /package/dist/interface/{uuid.DvF23Exx.0.0.19-alpha.4.js → uuid.DvF23Exx.0.0.19.js} +0 -0
  199. /package/dist/interface/{vue.l0sNRNKZ.0.0.19-alpha.4.js → vue.l0sNRNKZ.0.0.19.js} +0 -0
  200. /package/dist/interface/{zod.BaF2dDCd.0.0.19-alpha.4.js → zod.BaF2dDCd.0.0.19.js} +0 -0
@@ -1 +0,0 @@
1
- var he=s=>{throw TypeError(s)};var Gt=(s,t,e)=>t.has(s)||he("Cannot "+e);var r=(s,t,e)=>(Gt(s,t,"read from private field"),e?e.call(s):t.get(s)),f=(s,t,e)=>t.has(s)?he("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),y=(s,t,e)=>(Gt(s,t,"access private method"),e);var xt=(s,t,e,i)=>({set _(n){h(s,t,n,e)},get _(){return r(s,t,i)}});import{i as Fe,u as ze,h as Ye,a as Je,r as Xe,c as De,b as Ee,w as mt,o as Me,t as Ae,d as Ue}from"./@vue.CIFymae3.0.0.19-alpha.4.js";var At=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(){}},yt=typeof window>"u"||"Deno"in globalThis;function L(){}function Ze(s,t){return typeof s=="function"?s(t):s}function Bt(s){return typeof s=="number"&&s>=0&&s!==1/0}function qe(s,t){return Math.max(s+(t||0)-Date.now(),0)}function vt(s,t){return typeof s=="function"?s(t):s}function N(s,t){return typeof s=="function"?s(t):s}function ce(s,t){const{type:e="all",exact:i,fetchStatus:n,predicate:a,queryKey:u,stale:l}=s;if(u){if(i){if(t.queryHash!==ae(u,t.options))return!1}else if(!qt(t.queryKey,u))return!1}if(e!=="all"){const O=t.isActive();if(e==="active"&&!O||e==="inactive"&&O)return!1}return!(typeof l=="boolean"&&t.isStale()!==l||n&&n!==t.state.fetchStatus||a&&!a(t))}function le(s,t){const{exact:e,status:i,predicate:n,mutationKey:a}=s;if(a){if(!t.options.mutationKey)return!1;if(e){if(pt(t.options.mutationKey)!==pt(a))return!1}else if(!qt(t.options.mutationKey,a))return!1}return!(i&&t.state.status!==i||n&&!n(t))}function ae(s,t){return((t==null?void 0:t.queryKeyHashFn)||pt)(s)}function pt(s){return JSON.stringify(s,(t,e)=>$t(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 Ie(s,t){if(s===t)return s;const e=fe(s)&&fe(t);if(e||$t(s)&&$t(t)){const i=e?s:Object.keys(s),n=i.length,a=e?t:Object.keys(t),u=a.length,l=e?[]:{};let O=0;for(let v=0;v<u;v++){const p=e?v:a[v];(!e&&i.includes(p)||e)&&s[p]===void 0&&t[p]===void 0?(l[p]=void 0,O++):(l[p]=Ie(s[p],t[p]),l[p]===s[p]&&s[p]!==void 0&&O++)}return n===u&&O===n?s:l}return t}function Ht(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 fe(s){return Array.isArray(s)&&s.length===Object.keys(s).length}function $t(s){if(!de(s))return!1;const t=s.constructor;if(t===void 0)return!0;const e=t.prototype;return!(!de(e)||!e.hasOwnProperty("isPrototypeOf")||Object.getPrototypeOf(s)!==Object.prototype)}function de(s){return Object.prototype.toString.call(s)==="[object Object]"}function ts(s){return new Promise(t=>{setTimeout(t,s)})}function Vt(s,t,e){return typeof e.structuralSharing=="function"?e.structuralSharing(s,t):e.structuralSharing!==!1?Ie(s,t):t}function es(s,t,e=0){const i=[...s,t];return e&&i.length>e?i.slice(1):i}function ss(s,t,e=0){const i=[t,...s];return e&&i.length>e?i.slice(0,-1):i}var Te=Symbol();function je(s,t){return!s.queryFn&&(t!=null&&t.initialPromise)?()=>t.initialPromise:!s.queryFn||s.queryFn===Te?()=>Promise.reject(new Error(`Missing queryFn: '${s.queryHash}'`)):s.queryFn}var ut,Z,bt,ve,is=(ve=class extends At{constructor(){super();f(this,ut);f(this,Z);f(this,bt);h(this,bt,t=>{if(!yt&&window.addEventListener){const e=()=>t();return window.addEventListener("visibilitychange",e,!1),()=>{window.removeEventListener("visibilitychange",e)}}})}onSubscribe(){r(this,Z)||this.setEventListener(r(this,bt))}onUnsubscribe(){var t;this.hasListeners()||((t=r(this,Z))==null||t.call(this),h(this,Z,void 0))}setEventListener(t){var e;h(this,bt,t),(e=r(this,Z))==null||e.call(this),h(this,Z,t(i=>{typeof i=="boolean"?this.setFocused(i):this.onFocus()}))}setFocused(t){r(this,ut)!==t&&(h(this,ut,t),this.onFocus())}onFocus(){const t=this.isFocused();this.listeners.forEach(e=>{e(t)})}isFocused(){var t;return typeof r(this,ut)=="boolean"?r(this,ut):((t=globalThis.document)==null?void 0:t.visibilityState)!=="hidden"}},ut=new WeakMap,Z=new WeakMap,bt=new WeakMap,ve),ue=new is,gt,tt,Ot,be,rs=(be=class extends At{constructor(){super();f(this,gt,!0);f(this,tt);f(this,Ot);h(this,Ot,t=>{if(!yt&&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,tt)||this.setEventListener(r(this,Ot))}onUnsubscribe(){var t;this.hasListeners()||((t=r(this,tt))==null||t.call(this),h(this,tt,void 0))}setEventListener(t){var e;h(this,Ot,t),(e=r(this,tt))==null||e.call(this),h(this,tt,t(this.setOnline.bind(this)))}setOnline(t){r(this,gt)!==t&&(h(this,gt,t),this.listeners.forEach(i=>{i(t)}))}isOnline(){return r(this,gt)}},gt=new WeakMap,tt=new WeakMap,Ot=new WeakMap,be),Nt=new rs;function ns(s){return Math.min(1e3*2**s,3e4)}function Ke(s){return(s??"online")==="online"?Nt.isOnline():!0}var xe=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 xe}function Le(s){let t=!1,e=0,i=!1,n,a,u;const l=new Promise((C,S)=>{a=C,u=S}),O=C=>{var S;i||(P(new xe(C)),(S=s.abort)==null||S.call(s))},v=()=>{t=!0},p=()=>{t=!1},c=()=>ue.isFocused()&&(s.networkMode==="always"||Nt.isOnline())&&s.canRun(),o=()=>Ke(s.networkMode)&&s.canRun(),d=C=>{var S;i||(i=!0,(S=s.onSuccess)==null||S.call(s,C),n==null||n(),a(C))},P=C=>{var S;i||(i=!0,(S=s.onError)==null||S.call(s,C),n==null||n(),u(C))},F=()=>new Promise(C=>{var S;n=Q=>{(i||c())&&C(Q)},(S=s.onPause)==null||S.call(s)}).then(()=>{var C;n=void 0,i||(C=s.onContinue)==null||C.call(s)}),D=()=>{if(i)return;let C;const S=e===0?s.initialPromise:void 0;try{C=S??s.fn()}catch(Q){C=Promise.reject(Q)}Promise.resolve(C).then(d).catch(Q=>{var g;if(i)return;const E=s.retry??(yt?0:3),M=s.retryDelay??ns,G=typeof M=="function"?M(e,Q):M,W=E===!0||typeof E=="number"&&e<E||typeof E=="function"&&E(e,Q);if(t||!W){P(Q);return}e++,(g=s.onFail)==null||g.call(s,e,Q),ts(G).then(()=>c()?void 0:F()).then(()=>{t?P(Q):D()})})};return{promise:l,cancel:O,continue:()=>(n==null||n(),l),cancelRetry:v,continueRetry:p,canStart:o,start:()=>(o()?D():F().then(D),l)}}function as(){let s=[],t=0,e=o=>{o()},i=o=>{o()},n=o=>setTimeout(o,0);const a=o=>{n=o},u=o=>{let d;t++;try{d=o()}finally{t--,t||v()}return d},l=o=>{t?s.push(o):n(()=>{e(o)})},O=o=>(...d)=>{l(()=>{o(...d)})},v=()=>{const o=s;s=[],o.length&&n(()=>{i(()=>{o.forEach(d=>{e(d)})})})};return{batch:u,batchCalls:O,schedule:l,setNotifyFunction:o=>{e=o},setBatchNotifyFunction:o=>{i=o},setScheduler:a}}var A=as(),ot,ge,ke=(ge=class{constructor(){f(this,ot)}destroy(){this.clearGcTimeout()}scheduleGc(){this.clearGcTimeout(),Bt(this.gcTime)&&h(this,ot,setTimeout(()=>{this.optionalRemove()},this.gcTime))}updateGcTime(s){this.gcTime=Math.max(this.gcTime||0,s??(yt?1/0:5*60*1e3))}clearGcTimeout(){r(this,ot)&&(clearTimeout(r(this,ot)),h(this,ot,void 0))}},ot=new WeakMap,ge),Ct,wt,x,U,It,ht,H,z,Oe,us=(Oe=class extends ke{constructor(t){super();f(this,H);f(this,Ct);f(this,wt);f(this,x);f(this,U);f(this,It);f(this,ht);h(this,ht,!1),h(this,It,t.defaultOptions),this.setOptions(t.options),this.observers=[],h(this,x,t.cache),this.queryKey=t.queryKey,this.queryHash=t.queryHash,h(this,Ct,os(this.options)),this.state=t.state??r(this,Ct),this.scheduleGc()}get meta(){return this.options.meta}get promise(){var t;return(t=r(this,U))==null?void 0:t.promise}setOptions(t){this.options={...r(this,It),...t},this.updateGcTime(this.options.gcTime)}optionalRemove(){!this.observers.length&&this.state.fetchStatus==="idle"&&r(this,x).remove(this)}setData(t,e){const i=Vt(this.state.data,t,this.options);return y(this,H,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){y(this,H,z).call(this,{type:"setState",state:t,setStateOptions:e})}cancel(t){var i,n;const e=(i=r(this,U))==null?void 0:i.promise;return(n=r(this,U))==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,Ct))}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||!qe(this.state.dataUpdatedAt,t)}onFocus(){var e;const t=this.observers.find(i=>i.shouldFetchOnWindowFocus());t==null||t.refetch({cancelRefetch:!1}),(e=r(this,U))==null||e.continue()}onOnline(){var e;const t=this.observers.find(i=>i.shouldFetchOnReconnect());t==null||t.refetch({cancelRefetch:!1}),(e=r(this,U))==null||e.continue()}addObserver(t){this.observers.includes(t)||(this.observers.push(t),this.clearGcTimeout(),r(this,x).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,U)&&(r(this,ht)?r(this,U).cancel({revert:!0}):r(this,U).cancelRetry()),this.scheduleGc()),r(this,x).notify({type:"observerRemoved",query:this,observer:t}))}getObserversCount(){return this.observers.length}invalidate(){this.state.isInvalidated||y(this,H,z).call(this,{type:"invalidate"})}fetch(t,e){var O,v,p;if(this.state.fetchStatus!=="idle"){if(this.state.data!==void 0&&(e!=null&&e.cancelRefetch))this.cancel({silent:!0});else if(r(this,U))return r(this,U).continueRetry(),r(this,U).promise}if(t&&this.setOptions(t),!this.options.queryFn){const c=this.observers.find(o=>o.options.queryFn);c&&this.setOptions(c.options)}const i=new AbortController,n=c=>{Object.defineProperty(c,"signal",{enumerable:!0,get:()=>(h(this,ht,!0),i.signal)})},a=()=>{const c=je(this.options,e),o={queryKey:this.queryKey,meta:this.meta};return n(o),h(this,ht,!1),this.options.persister?this.options.persister(c,o,this):c(o)},u={fetchOptions:e,options:this.options,queryKey:this.queryKey,state:this.state,fetchFn:a};n(u),(O=this.options.behavior)==null||O.onFetch(u,this),h(this,wt,this.state),(this.state.fetchStatus==="idle"||this.state.fetchMeta!==((v=u.fetchOptions)==null?void 0:v.meta))&&y(this,H,z).call(this,{type:"fetch",meta:(p=u.fetchOptions)==null?void 0:p.meta});const l=c=>{var o,d,P,F;_t(c)&&c.silent||y(this,H,z).call(this,{type:"error",error:c}),_t(c)||((d=(o=r(this,x).config).onError)==null||d.call(o,c,this),(F=(P=r(this,x).config).onSettled)==null||F.call(P,this.state.data,c,this)),this.isFetchingOptimistic||this.scheduleGc(),this.isFetchingOptimistic=!1};return h(this,U,Le({initialPromise:e==null?void 0:e.initialPromise,fn:u.fetchFn,abort:i.abort.bind(i),onSuccess:c=>{var o,d,P,F;if(c===void 0){l(new Error(`${this.queryHash} data is undefined`));return}this.setData(c),(d=(o=r(this,x).config).onSuccess)==null||d.call(o,c,this),(F=(P=r(this,x).config).onSettled)==null||F.call(P,c,this.state.error,this),this.isFetchingOptimistic||this.scheduleGc(),this.isFetchingOptimistic=!1},onError:l,onFail:(c,o)=>{y(this,H,z).call(this,{type:"failed",failureCount:c,error:o})},onPause:()=>{y(this,H,z).call(this,{type:"pause"})},onContinue:()=>{y(this,H,z).call(this,{type:"continue"})},retry:u.options.retry,retryDelay:u.options.retryDelay,networkMode:u.options.networkMode,canRun:()=>!0})),r(this,U).start()}},Ct=new WeakMap,wt=new WeakMap,x=new WeakMap,U=new WeakMap,It=new WeakMap,ht=new WeakMap,H=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,...He(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,wt)?{...r(this,wt),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),A.batch(()=>{this.observers.forEach(i=>{i.onQueryUpdate()}),r(this,x).notify({query:this,type:"updated",action:t})})},Oe);function He(s,t){return{fetchFailureCount:0,fetchFailureReason:null,fetchStatus:Ke(t.networkMode)?"fetching":"paused",...s===void 0&&{error:null,status:"pending"}}}function os(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 _,Ce,Ne=(Ce=class extends At{constructor(e={}){super();f(this,_);this.config=e,h(this,_,new Map)}build(e,i,n){const a=i.queryKey,u=i.queryHash??ae(a,i);let l=this.get(u);return l||(l=new us({cache:this,queryKey:a,queryHash:u,options:e.defaultQueryOptions(i),state:n,defaultOptions:e.getQueryDefaults(a)}),this.add(l)),l}add(e){r(this,_).has(e.queryHash)||(r(this,_).set(e.queryHash,e),this.notify({type:"added",query:e}))}remove(e){const i=r(this,_).get(e.queryHash);i&&(e.destroy(),i===e&&r(this,_).delete(e.queryHash),this.notify({type:"removed",query:e}))}clear(){A.batch(()=>{this.getAll().forEach(e=>{this.remove(e)})})}get(e){return r(this,_).get(e)}getAll(){return[...r(this,_).values()]}find(e){const i={exact:!0,...e};return this.getAll().find(n=>ce(i,n))}findAll(e={}){const i=this.getAll();return Object.keys(e).length>0?i.filter(n=>ce(e,n)):i}notify(e){A.batch(()=>{this.listeners.forEach(i=>{i(e)})})}onFocus(){A.batch(()=>{this.getAll().forEach(e=>{e.onFocus()})})}onOnline(){A.batch(()=>{this.getAll().forEach(e=>{e.onOnline()})})}},_=new WeakMap,Ce),B,q,ct,$,X,we,hs=(we=class extends ke{constructor(t){super();f(this,$);f(this,B);f(this,q);f(this,ct);this.mutationId=t.mutationId,h(this,q,t.mutationCache),h(this,B,[]),this.state=t.state||Ge(),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,B).includes(t)||(r(this,B).push(t),this.clearGcTimeout(),r(this,q).notify({type:"observerAdded",mutation:this,observer:t}))}removeObserver(t){h(this,B,r(this,B).filter(e=>e!==t)),this.scheduleGc(),r(this,q).notify({type:"observerRemoved",mutation:this,observer:t})}optionalRemove(){r(this,B).length||(this.state.status==="pending"?this.scheduleGc():r(this,q).remove(this))}continue(){var t;return((t=r(this,ct))==null?void 0:t.continue())??this.execute(this.state.variables)}async execute(t){var n,a,u,l,O,v,p,c,o,d,P,F,D,C,S,Q,E,M,G,W;h(this,ct,Le({fn:()=>this.options.mutationFn?this.options.mutationFn(t):Promise.reject(new Error("No mutationFn found")),onFail:(g,k)=>{y(this,$,X).call(this,{type:"failed",failureCount:g,error:k})},onPause:()=>{y(this,$,X).call(this,{type:"pause"})},onContinue:()=>{y(this,$,X).call(this,{type:"continue"})},retry:this.options.retry??0,retryDelay:this.options.retryDelay,networkMode:this.options.networkMode,canRun:()=>r(this,q).canRun(this)}));const e=this.state.status==="pending",i=!r(this,ct).canStart();try{if(!e){y(this,$,X).call(this,{type:"pending",variables:t,isPaused:i}),await((a=(n=r(this,q).config).onMutate)==null?void 0:a.call(n,t,this));const k=await((l=(u=this.options).onMutate)==null?void 0:l.call(u,t));k!==this.state.context&&y(this,$,X).call(this,{type:"pending",context:k,variables:t,isPaused:i})}const g=await r(this,ct).start();return await((v=(O=r(this,q).config).onSuccess)==null?void 0:v.call(O,g,t,this.state.context,this)),await((c=(p=this.options).onSuccess)==null?void 0:c.call(p,g,t,this.state.context)),await((d=(o=r(this,q).config).onSettled)==null?void 0:d.call(o,g,null,this.state.variables,this.state.context,this)),await((F=(P=this.options).onSettled)==null?void 0:F.call(P,g,null,t,this.state.context)),y(this,$,X).call(this,{type:"success",data:g}),g}catch(g){try{throw await((C=(D=r(this,q).config).onError)==null?void 0:C.call(D,g,t,this.state.context,this)),await((Q=(S=this.options).onError)==null?void 0:Q.call(S,g,t,this.state.context)),await((M=(E=r(this,q).config).onSettled)==null?void 0:M.call(E,void 0,g,this.state.variables,this.state.context,this)),await((W=(G=this.options).onSettled)==null?void 0:W.call(G,void 0,g,t,this.state.context)),g}finally{y(this,$,X).call(this,{type:"error",error:g})}}finally{r(this,q).runNext(this)}}},B=new WeakMap,q=new WeakMap,ct=new WeakMap,$=new WeakSet,X=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),A.batch(()=>{r(this,B).forEach(i=>{i.onMutationUpdate(t)}),r(this,q).notify({mutation:this,type:"updated",action:t})})},we);function Ge(){return{context:void 0,data:void 0,error:null,failureCount:0,failureReason:null,isPaused:!1,status:"idle",variables:void 0,submittedAt:0}}var K,Tt,Qe,_e=(Qe=class extends At{constructor(e={}){super();f(this,K);f(this,Tt);this.config=e,h(this,K,new Map),h(this,Tt,Date.now())}build(e,i,n){const a=new hs({mutationCache:this,mutationId:++xt(this,Tt)._,options:e.defaultMutationOptions(i),state:n});return this.add(a),a}add(e){const i=Lt(e),n=r(this,K).get(i)??[];n.push(e),r(this,K).set(i,n),this.notify({type:"added",mutation:e})}remove(e){var n;const i=Lt(e);if(r(this,K).has(i)){const a=(n=r(this,K).get(i))==null?void 0:n.filter(u=>u!==e);a&&(a.length===0?r(this,K).delete(i):r(this,K).set(i,a))}this.notify({type:"removed",mutation:e})}canRun(e){var n;const i=(n=r(this,K).get(Lt(e)))==null?void 0:n.find(a=>a.state.status==="pending");return!i||i===e}runNext(e){var n;const i=(n=r(this,K).get(Lt(e)))==null?void 0:n.find(a=>a!==e&&a.state.isPaused);return(i==null?void 0:i.continue())??Promise.resolve()}clear(){A.batch(()=>{this.getAll().forEach(e=>{this.remove(e)})})}getAll(){return[...r(this,K).values()].flat()}find(e){const i={exact:!0,...e};return this.getAll().find(n=>le(i,n))}findAll(e={}){return this.getAll().filter(i=>le(e,i))}notify(e){A.batch(()=>{this.listeners.forEach(i=>{i(e)})})}resumePausedMutations(){const e=this.getAll().filter(i=>i.state.isPaused);return A.batch(()=>Promise.all(e.map(i=>i.continue().catch(L))))}},K=new WeakMap,Tt=new WeakMap,Qe);function Lt(s){var t;return((t=s.options.scope)==null?void 0:t.id)??String(s.mutationId)}function cs(s){return{onFetch:(t,e)=>{const i=async()=>{var P,F,D,C,S;const n=t.options,a=(D=(F=(P=t.fetchOptions)==null?void 0:P.meta)==null?void 0:F.fetchMore)==null?void 0:D.direction,u=((C=t.state.data)==null?void 0:C.pages)||[],l=((S=t.state.data)==null?void 0:S.pageParams)||[],O={pages:[],pageParams:[]};let v=!1;const p=Q=>{Object.defineProperty(Q,"signal",{enumerable:!0,get:()=>(t.signal.aborted?v=!0:t.signal.addEventListener("abort",()=>{v=!0}),t.signal)})},c=je(t.options,t.fetchOptions),o=async(Q,E,M)=>{if(v)return Promise.reject();if(E==null&&Q.pages.length)return Promise.resolve(Q);const G={queryKey:t.queryKey,pageParam:E,direction:M?"backward":"forward",meta:t.options.meta};p(G);const W=await c(G),{maxPages:g}=t.options,k=M?ss:es;return{pages:k(Q.pages,W,g),pageParams:k(Q.pageParams,E,g)}};let d;if(a&&u.length){const Q=a==="backward",E=Q?ls:ye,M={pages:u,pageParams:l},G=E(n,M);d=await o(M,G,Q)}else{d=await o(O,l[0]??n.initialPageParam);const Q=s??u.length;for(let E=1;E<Q;E++){const M=ye(n,d);if(M==null)break;d=await o(d,M)}}return d};t.options.persister?t.fetchFn=()=>{var n,a;return(a=(n=t.options).persister)==null?void 0:a.call(n,i,{queryKey:t.queryKey,meta:t.options.meta,signal:t.signal},e)}:t.fetchFn=i}}}function ye(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 ls(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,et,st,Qt,St,it,Pt,Rt,Se,fs=(Se=class{constructor(t={}){f(this,R);f(this,et);f(this,st);f(this,Qt);f(this,St);f(this,it);f(this,Pt);f(this,Rt);h(this,R,t.queryCache||new Ne),h(this,et,t.mutationCache||new _e),h(this,st,t.defaultOptions||{}),h(this,Qt,new Map),h(this,St,new Map),h(this,it,0)}mount(){xt(this,it)._++,r(this,it)===1&&(h(this,Pt,ue.subscribe(async t=>{t&&(await this.resumePausedMutations(),r(this,R).onFocus())})),h(this,Rt,Nt.subscribe(async t=>{t&&(await this.resumePausedMutations(),r(this,R).onOnline())})))}unmount(){var t,e;xt(this,it)._--,r(this,it)===0&&((t=r(this,Pt))==null||t.call(this),h(this,Pt,void 0),(e=r(this,Rt))==null||e.call(this),h(this,Rt,void 0))}isFetching(t){return r(this,R).findAll({...t,fetchStatus:"fetching"}).length}isMutating(t){return r(this,et).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(vt(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),u=a==null?void 0:a.state.data,l=Ze(e,u);if(l!==void 0)return r(this,R).build(this,n).setData(l,{...i,manual:!0})}setQueriesData(t,e,i){return A.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);A.batch(()=>{e.findAll(t).forEach(i=>{e.remove(i)})})}resetQueries(t,e){const i=r(this,R),n={type:"active",...t};return A.batch(()=>(i.findAll(t).forEach(a=>{a.reset()}),this.refetchQueries(n,e)))}cancelQueries(t={},e={}){const i={revert:!0,...e},n=A.batch(()=>r(this,R).findAll(t).map(a=>a.cancel(i)));return Promise.all(n).then(L).catch(L)}invalidateQueries(t={},e={}){return A.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=A.batch(()=>r(this,R).findAll(t).filter(a=>!a.isDisabled()).map(a=>{let u=a.fetch(void 0,i);return i.throwOnError||(u=u.catch(L)),a.state.fetchStatus==="paused"?Promise.resolve():u}));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(vt(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=cs(t.pages),this.fetchQuery(t)}prefetchInfiniteQuery(t){return this.fetchInfiniteQuery(t).then(L).catch(L)}resumePausedMutations(){return Nt.isOnline()?r(this,et).resumePausedMutations():Promise.resolve()}getQueryCache(){return r(this,R)}getMutationCache(){return r(this,et)}getDefaultOptions(){return r(this,st)}setDefaultOptions(t){h(this,st,t)}setQueryDefaults(t,e){r(this,Qt).set(pt(t),{queryKey:t,defaultOptions:e})}getQueryDefaults(t){const e=[...r(this,Qt).values()];let i={};return e.forEach(n=>{qt(t,n.queryKey)&&(i={...i,...n.defaultOptions})}),i}setMutationDefaults(t,e){r(this,St).set(pt(t),{mutationKey:t,defaultOptions:e})}getMutationDefaults(t){const e=[...r(this,St).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,st).queries,...this.getQueryDefaults(t.queryKey),...t,_defaulted:!0};return e.queryHash||(e.queryHash=ae(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===Te&&(e.enabled=!1),e}defaultMutationOptions(t){return t!=null&&t._defaulted?t:{...r(this,st).mutations,...(t==null?void 0:t.mutationKey)&&this.getMutationDefaults(t.mutationKey),...t,_defaulted:!0}}clear(){r(this,R).clear(),r(this,et).clear()}},R=new WeakMap,et=new WeakMap,st=new WeakMap,Qt=new WeakMap,St=new WeakMap,it=new WeakMap,Pt=new WeakMap,Rt=new WeakMap,Se),T,b,jt,I,lt,Ft,V,Kt,Dt,Et,ft,dt,rt,Mt,w,Ut,Wt,zt,Yt,Jt,Xt,Zt,te,Be,Pe,ds=(Pe=class extends At{constructor(t,e){super();f(this,w);f(this,T);f(this,b);f(this,jt);f(this,I);f(this,lt);f(this,Ft);f(this,V);f(this,Kt);f(this,Dt);f(this,Et);f(this,ft);f(this,dt);f(this,rt);f(this,Mt,new Set);this.options=e,h(this,T,t),h(this,V,null),this.bindMethods(),this.setOptions(e)}bindMethods(){this.refetch=this.refetch.bind(this)}onSubscribe(){this.listeners.size===1&&(r(this,b).addObserver(this),pe(r(this,b),this.options)?y(this,w,Ut).call(this):this.updateResult(),y(this,w,Jt).call(this))}onUnsubscribe(){this.hasListeners()||this.destroy()}shouldFetchOnReconnect(){return ee(r(this,b),this.options,this.options.refetchOnReconnect)}shouldFetchOnWindowFocus(){return ee(r(this,b),this.options,this.options.refetchOnWindowFocus)}destroy(){this.listeners=new Set,y(this,w,Xt).call(this),y(this,w,Zt).call(this),r(this,b).removeObserver(this)}setOptions(t,e){const i=this.options,n=r(this,b);if(this.options=r(this,T).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");y(this,w,te).call(this),r(this,b).setOptions(this.options),i._defaulted&&!Ht(this.options,i)&&r(this,T).getQueryCache().notify({type:"observerOptionsUpdated",query:r(this,b),observer:this});const a=this.hasListeners();a&&me(r(this,b),n,this.options,i)&&y(this,w,Ut).call(this),this.updateResult(e),a&&(r(this,b)!==n||N(this.options.enabled,r(this,b))!==N(i.enabled,r(this,b))||vt(this.options.staleTime,r(this,b))!==vt(i.staleTime,r(this,b)))&&y(this,w,Wt).call(this);const u=y(this,w,zt).call(this);a&&(r(this,b)!==n||N(this.options.enabled,r(this,b))!==N(i.enabled,r(this,b))||u!==r(this,rt))&&y(this,w,Yt).call(this,u)}getOptimisticResult(t){const e=r(this,T).getQueryCache().build(r(this,T),t),i=this.createResult(e,t);return ps(this,i)&&(h(this,I,i),h(this,Ft,this.options),h(this,lt,r(this,b).state)),i}getCurrentResult(){return r(this,I)}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,Mt).add(t)}getCurrentQuery(){return r(this,b)}refetch({...t}={}){return this.fetch({...t})}fetchOptimistic(t){const e=r(this,T).defaultQueryOptions(t),i=r(this,T).getQueryCache().build(r(this,T),e);return i.isFetchingOptimistic=!0,i.fetch().then(()=>this.createResult(i,e))}fetch(t){return y(this,w,Ut).call(this,{...t,cancelRefetch:t.cancelRefetch??!0}).then(()=>(this.updateResult(),r(this,I)))}createResult(t,e){var W;const i=r(this,b),n=this.options,a=r(this,I),u=r(this,lt),l=r(this,Ft),v=t!==i?t.state:r(this,jt),{state:p}=t;let c={...p},o=!1,d;if(e._optimisticResults){const g=this.hasListeners(),k=!g&&pe(t,e),We=g&&me(t,i,e,n);(k||We)&&(c={...c,...He(p.data,t.options)}),e._optimisticResults==="isRestoring"&&(c.fetchStatus="idle")}let{error:P,errorUpdatedAt:F,status:D}=c;if(e.select&&c.data!==void 0)if(a&&c.data===(u==null?void 0:u.data)&&e.select===r(this,Kt))d=r(this,Dt);else try{h(this,Kt,e.select),d=e.select(c.data),d=Vt(a==null?void 0:a.data,d,e),h(this,Dt,d),h(this,V,null)}catch(g){h(this,V,g)}else d=c.data;if(e.placeholderData!==void 0&&d===void 0&&D==="pending"){let g;if(a!=null&&a.isPlaceholderData&&e.placeholderData===(l==null?void 0:l.placeholderData))g=a.data;else if(g=typeof e.placeholderData=="function"?e.placeholderData((W=r(this,Et))==null?void 0:W.state.data,r(this,Et)):e.placeholderData,e.select&&g!==void 0)try{g=e.select(g),h(this,V,null)}catch(k){h(this,V,k)}g!==void 0&&(D="success",d=Vt(a==null?void 0:a.data,g,e),o=!0)}r(this,V)&&(P=r(this,V),d=r(this,Dt),F=Date.now(),D="error");const C=c.fetchStatus==="fetching",S=D==="pending",Q=D==="error",E=S&&C,M=d!==void 0;return{status:D,fetchStatus:c.fetchStatus,isPending:S,isSuccess:D==="success",isError:Q,isInitialLoading:E,isLoading:E,data:d,dataUpdatedAt:c.dataUpdatedAt,error:P,errorUpdatedAt:F,failureCount:c.fetchFailureCount,failureReason:c.fetchFailureReason,errorUpdateCount:c.errorUpdateCount,isFetched:c.dataUpdateCount>0||c.errorUpdateCount>0,isFetchedAfterMount:c.dataUpdateCount>v.dataUpdateCount||c.errorUpdateCount>v.errorUpdateCount,isFetching:C,isRefetching:C&&!S,isLoadingError:Q&&!M,isPaused:c.fetchStatus==="paused",isPlaceholderData:o,isRefetchError:Q&&M,isStale:oe(t,e),refetch:this.refetch}}updateResult(t){const e=r(this,I),i=this.createResult(r(this,b),this.options);if(h(this,lt,r(this,b).state),h(this,Ft,this.options),r(this,lt).data!==void 0&&h(this,Et,r(this,b)),Ht(i,e))return;h(this,I,i);const n={},a=()=>{if(!e)return!0;const{notifyOnChangeProps:u}=this.options,l=typeof u=="function"?u():u;if(l==="all"||!l&&!r(this,Mt).size)return!0;const O=new Set(l??r(this,Mt));return this.options.throwOnError&&O.add("error"),Object.keys(r(this,I)).some(v=>{const p=v;return r(this,I)[p]!==e[p]&&O.has(p)})};(t==null?void 0:t.listeners)!==!1&&a()&&(n.listeners=!0),y(this,w,Be).call(this,{...n,...t})}onQueryUpdate(){this.updateResult(),this.hasListeners()&&y(this,w,Jt).call(this)}},T=new WeakMap,b=new WeakMap,jt=new WeakMap,I=new WeakMap,lt=new WeakMap,Ft=new WeakMap,V=new WeakMap,Kt=new WeakMap,Dt=new WeakMap,Et=new WeakMap,ft=new WeakMap,dt=new WeakMap,rt=new WeakMap,Mt=new WeakMap,w=new WeakSet,Ut=function(t){y(this,w,te).call(this);let e=r(this,b).fetch(this.options,t);return t!=null&&t.throwOnError||(e=e.catch(L)),e},Wt=function(){y(this,w,Xt).call(this);const t=vt(this.options.staleTime,r(this,b));if(yt||r(this,I).isStale||!Bt(t))return;const i=qe(r(this,I).dataUpdatedAt,t)+1;h(this,ft,setTimeout(()=>{r(this,I).isStale||this.updateResult()},i))},zt=function(){return(typeof this.options.refetchInterval=="function"?this.options.refetchInterval(r(this,b)):this.options.refetchInterval)??!1},Yt=function(t){y(this,w,Zt).call(this),h(this,rt,t),!(yt||N(this.options.enabled,r(this,b))===!1||!Bt(r(this,rt))||r(this,rt)===0)&&h(this,dt,setInterval(()=>{(this.options.refetchIntervalInBackground||ue.isFocused())&&y(this,w,Ut).call(this)},r(this,rt)))},Jt=function(){y(this,w,Wt).call(this),y(this,w,Yt).call(this,y(this,w,zt).call(this))},Xt=function(){r(this,ft)&&(clearTimeout(r(this,ft)),h(this,ft,void 0))},Zt=function(){r(this,dt)&&(clearInterval(r(this,dt)),h(this,dt,void 0))},te=function(){const t=r(this,T).getQueryCache().build(r(this,T),this.options);if(t===r(this,b))return;const e=r(this,b);h(this,b,t),h(this,jt,t.state),this.hasListeners()&&(e==null||e.removeObserver(this),t.addObserver(this))},Be=function(t){A.batch(()=>{t.listeners&&this.listeners.forEach(e=>{e(r(this,I))}),r(this,T).getQueryCache().notify({query:r(this,b),type:"observerResultsUpdated"})})},Pe);function ys(s,t){return N(t.enabled,s)!==!1&&s.state.data===void 0&&!(s.state.status==="error"&&t.retryOnMount===!1)}function pe(s,t){return ys(s,t)||s.state.data!==void 0&&ee(s,t,t.refetchOnMount)}function ee(s,t,e){if(N(t.enabled,s)!==!1){const i=typeof e=="function"?e(s):e;return i==="always"||i!==!1&&oe(s,t)}return!1}function me(s,t,e,i){return(s!==t||N(i.enabled,s)===!1)&&(!e.suspense||s.state.status!=="error")&&oe(s,e)}function oe(s,t){return N(t.enabled,s)!==!1&&s.isStaleByTime(vt(t.staleTime,s))}function ps(s,t){return!Ht(s.getCurrentResult(),t)}var nt,at,j,Y,J,kt,se,Re,ms=(Re=class extends At{constructor(t,e){super();f(this,J);f(this,nt);f(this,at);f(this,j);f(this,Y);h(this,nt,t),this.setOptions(e),this.bindMethods(),y(this,J,kt).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),Ht(this.options,e)||r(this,nt).getMutationCache().notify({type:"observerOptionsUpdated",mutation:r(this,j),observer:this}),e!=null&&e.mutationKey&&this.options.mutationKey&&pt(e.mutationKey)!==pt(this.options.mutationKey)?this.reset():((i=r(this,j))==null?void 0:i.state.status)==="pending"&&r(this,j).setOptions(this.options)}onUnsubscribe(){var t;this.hasListeners()||(t=r(this,j))==null||t.removeObserver(this)}onMutationUpdate(t){y(this,J,kt).call(this),y(this,J,se).call(this,t)}getCurrentResult(){return r(this,at)}reset(){var t;(t=r(this,j))==null||t.removeObserver(this),h(this,j,void 0),y(this,J,kt).call(this),y(this,J,se).call(this)}mutate(t,e){var i;return h(this,Y,e),(i=r(this,j))==null||i.removeObserver(this),h(this,j,r(this,nt).getMutationCache().build(r(this,nt),this.options)),r(this,j).addObserver(this),r(this,j).execute(t)}},nt=new WeakMap,at=new WeakMap,j=new WeakMap,Y=new WeakMap,J=new WeakSet,kt=function(){var e;const t=((e=r(this,j))==null?void 0:e.state)??Ge();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})},se=function(t){A.batch(()=>{var e,i,n,a,u,l,O,v;if(r(this,Y)&&this.hasListeners()){const p=r(this,at).variables,c=r(this,at).context;(t==null?void 0:t.type)==="success"?((i=(e=r(this,Y)).onSuccess)==null||i.call(e,t.data,p,c),(a=(n=r(this,Y)).onSettled)==null||a.call(n,t.data,null,p,c)):(t==null?void 0:t.type)==="error"&&((l=(u=r(this,Y)).onError)==null||l.call(u,t.error,p,c),(v=(O=r(this,Y)).onSettled)==null||v.call(O,void 0,t.error,p,c))}this.listeners.forEach(p=>{p(r(this,at))})})},Re),vs="VUE_QUERY_CLIENT";function $e(s){const t=s?`:${s}`:"";return`${vs}${t}`}function ie(s,t){Object.keys(s).forEach(e=>{s[e]=t[e]})}function re(s,t,e="",i=0){if(t){const n=t(s,e,i);if(n===void 0&&Fe(s)||n!==void 0)return n}if(Array.isArray(s))return s.map((n,a)=>re(n,t,String(a),i+1));if(typeof s=="object"&&gs(s)){const n=Object.entries(s).map(([a,u])=>[a,re(u,t,a,i+1)]);return Object.fromEntries(n)}return s}function bs(s,t){return re(s,t)}function m(s,t=!1){return bs(s,(e,i,n)=>{if(n===1&&i==="queryKey")return m(e,!0);if(t&&Os(e))return m(e(),t);if(Fe(e))return m(ze(e),t)})}function gs(s){if(Object.prototype.toString.call(s)!=="[object Object]")return!1;const t=Object.getPrototypeOf(s);return t===null||t===Object.prototype}function Os(s){return typeof s=="function"}function ne(s,t){return typeof s=="function"?s(...t):!!s}function Ve(s=""){if(!Ye())throw new Error("vue-query hooks can only be used inside setup() function or functions that support injection context.");const t=$e(s),e=Je(t);if(!e)throw new Error("No 'queryClient' found in Vue context, use 'VueQueryPlugin' to properly initialize the library.");return e}var Cs=class extends Ne{find(s){return super.find(m(s))}findAll(s={}){return super.findAll(m(s))}},ws=class extends _e{find(s){return super.find(m(s))}findAll(s={}){return super.findAll(m(s))}},Qs=class extends fs{constructor(s={}){const t={defaultOptions:s.defaultOptions,queryCache:s.queryCache||new Cs,mutationCache:s.mutationCache||new ws};super(t),this.isRestoring=Xe(!1)}isFetching(s={}){return super.isFetching(m(s))}isMutating(s={}){return super.isMutating(m(s))}getQueryData(s){return super.getQueryData(m(s))}ensureQueryData(s){return super.ensureQueryData(m(s))}getQueriesData(s){return super.getQueriesData(m(s))}setQueryData(s,t,e={}){return super.setQueryData(m(s),t,m(e))}setQueriesData(s,t,e={}){return super.setQueriesData(m(s),t,m(e))}getQueryState(s){return super.getQueryState(m(s))}removeQueries(s={}){return super.removeQueries(m(s))}resetQueries(s={},t={}){return super.resetQueries(m(s),m(t))}cancelQueries(s={},t={}){return super.cancelQueries(m(s),m(t))}invalidateQueries(s={},t={}){return new Promise(e=>{setTimeout(async()=>{await super.invalidateQueries(m(s),m(t)),e()},0)})}refetchQueries(s={},t={}){return super.refetchQueries(m(s),m(t))}fetchQuery(s){return super.fetchQuery(m(s))}prefetchQuery(s){return super.prefetchQuery(m(s))}fetchInfiniteQuery(s){return super.fetchInfiniteQuery(m(s))}prefetchInfiniteQuery(s){return super.prefetchInfiniteQuery(m(s))}setDefaultOptions(s){super.setDefaultOptions(m(s))}setQueryDefaults(s,t){super.setQueryDefaults(m(s),m(t))}getQueryDefaults(s){return super.getQueryDefaults(m(s))}setMutationDefaults(s,t){super.setMutationDefaults(m(s),m(t))}getMutationDefaults(s){return super.getMutationDefaults(m(s))}},Ms={install:(s,t={})=>{const e=$e(t.queryClientKey);let i;if("queryClient"in t&&t.queryClient)i=t.queryClient;else{const u="queryClientConfig"in t?t.queryClientConfig:void 0;i=new Qs(u)}yt||i.mount();let n=()=>{};if(t.clientPersister){i.isRestoring.value=!0;const[u,l]=t.clientPersister(i);n=u,l.then(()=>{var O;i.isRestoring.value=!1,(O=t.clientPersisterOnSuccess)==null||O.call(t,i)})}const a=()=>{i.unmount(),n()};if(s.onUnmount)s.onUnmount(a);else{const u=s.unmount;s.unmount=function(){a(),u()}}s.provide(e,i)}};function Ss(s,t,e){const i=Ve(),n=De(()=>{const o=m(t);typeof o.enabled=="function"&&(o.enabled=o.enabled());const d=i.defaultQueryOptions(o);return d._optimisticResults=i.isRestoring.value?"isRestoring":"optimistic",d}),a=new s(i,n.value),u=Ee(a.getCurrentResult());let l=()=>{};mt(i.isRestoring,o=>{o||(l(),l=a.subscribe(d=>{ie(u,d)}))},{immediate:!0});const O=()=>{a.setOptions(n.value),ie(u,a.getCurrentResult())};mt(n,O),Me(()=>{l()});const v=(...o)=>(O(),u.refetch(...o)),p=()=>new Promise((o,d)=>{let P=()=>{};const F=()=>{if(n.value.enabled!==!1){a.setOptions(n.value);const D=a.getOptimisticResult(n.value);D.isStale?(P(),a.fetchOptimistic(n.value).then(o,C=>{ne(n.value.throwOnError,[C,a.getCurrentQuery()])?d(C):o(a.getCurrentResult())})):(P(),o(D))}};F(),P=mt(n,F)});mt(()=>u.error,o=>{if(u.isError&&!u.isFetching&&ne(n.value.throwOnError,[o,a.getCurrentQuery()]))throw o});const c=Ae(Ue(u));for(const o in u)typeof u[o]=="function"&&(c[o]=u[o]);return c.suspense=p,c.refetch=v,c}function As(s,t){return Ss(ds,s)}function Us(s,t){const e=Ve(),i=De(()=>e.defaultMutationOptions(m(s))),n=new ms(e,i.value),a=Ee(n.getCurrentResult()),u=n.subscribe(v=>{ie(a,v)}),l=(v,p)=>{n.mutate(v,p).catch(()=>{})};mt(i,()=>{n.setOptions(i.value)}),Me(()=>{u()});const O=Ae(Ue(a));return mt(()=>a.error,v=>{if(v&&ne(i.value.throwOnError,[v]))throw v}),{...O,mutate:l,mutateAsync:a.mutate,reset:a.reset}}export{Qs as Q,Ms as V,As as a,Us as b,Ve as u};
@@ -1,17 +0,0 @@
1
- /**
2
- * @vue/shared v3.4.38
3
- * (c) 2018-present Yuxi (Evan) You and Vue contributors
4
- * @license MIT
5
- **//*! #__NO_SIDE_EFFECTS__ */function os(e,t){const n=new Set(e.split(","));return s=>n.has(s)}const Y={},ft=[],Ee=()=>{},Qi=()=>!1,mn=e=>e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&(e.charCodeAt(2)>122||e.charCodeAt(2)<97),ls=e=>e.startsWith("onUpdate:"),re=Object.assign,cs=(e,t)=>{const n=e.indexOf(t);n>-1&&e.splice(n,1)},eo=Object.prototype.hasOwnProperty,G=(e,t)=>eo.call(e,t),L=Array.isArray,ut=e=>vt(e)==="[object Map]",_n=e=>vt(e)==="[object Set]",Ks=e=>vt(e)==="[object Date]",to=e=>vt(e)==="[object RegExp]",V=e=>typeof e=="function",ne=e=>typeof e=="string",Re=e=>typeof e=="symbol",X=e=>e!==null&&typeof e=="object",fs=e=>(X(e)||V(e))&&V(e.then)&&V(e.catch),Sr=Object.prototype.toString,vt=e=>Sr.call(e),no=e=>vt(e).slice(8,-1),Ar=e=>vt(e)==="[object Object]",us=e=>ne(e)&&e!=="NaN"&&e[0]!=="-"&&""+parseInt(e,10)===e,Mt=os(",key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted"),yn=e=>{const t=Object.create(null);return n=>t[n]||(t[n]=e(n))},so=/-(\w)/g,Te=yn(e=>e.replace(so,(t,n)=>n?n.toUpperCase():"")),ro=/\B([A-Z])/g,$e=yn(e=>e.replace(ro,"-$1").toLowerCase()),bn=yn(e=>e.charAt(0).toUpperCase()+e.slice(1)),tn=yn(e=>e?`on${bn(e)}`:""),pe=(e,t)=>!Object.is(e,t),at=(e,...t)=>{for(let n=0;n<e.length;n++)e[n](...t)},Ir=(e,t,n,s=!1)=>{Object.defineProperty(e,t,{configurable:!0,enumerable:!1,writable:s,value:n})},io=e=>{const t=parseFloat(e);return isNaN(t)?e:t},Fr=e=>{const t=ne(e)?Number(e):NaN;return isNaN(t)?e:t};let ks;const Mr=()=>ks||(ks=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{});function Cn(e){if(L(e)){const t={};for(let n=0;n<e.length;n++){const s=e[n],r=ne(s)?fo(s):Cn(s);if(r)for(const i in r)t[i]=r[i]}return t}else if(ne(e)||X(e))return e}const oo=/;(?![^(]*\))/g,lo=/:([^]+)/,co=/\/\*[^]*?\*\//g;function fo(e){const t={};return e.replace(co,"").split(oo).forEach(n=>{if(n){const s=n.split(lo);s.length>1&&(t[s[0].trim()]=s[1].trim())}}),t}function vn(e){let t="";if(ne(e))t=e;else if(L(e))for(let n=0;n<e.length;n++){const s=vn(e[n]);s&&(t+=s+" ")}else if(X(e))for(const n in e)e[n]&&(t+=n+" ");return t.trim()}function Kc(e){if(!e)return null;let{class:t,style:n}=e;return t&&!ne(t)&&(e.class=vn(t)),n&&(e.style=Cn(n)),e}const uo="itemscope,allowfullscreen,formnovalidate,ismap,nomodule,novalidate,readonly",ao=os(uo);function Or(e){return!!e||e===""}function ho(e,t){if(e.length!==t.length)return!1;let n=!0;for(let s=0;n&&s<e.length;s++)n=mt(e[s],t[s]);return n}function mt(e,t){if(e===t)return!0;let n=Ks(e),s=Ks(t);if(n||s)return n&&s?e.getTime()===t.getTime():!1;if(n=Re(e),s=Re(t),n||s)return e===t;if(n=L(e),s=L(t),n||s)return n&&s?ho(e,t):!1;if(n=X(e),s=X(t),n||s){if(!n||!s)return!1;const r=Object.keys(e).length,i=Object.keys(t).length;if(r!==i)return!1;for(const o in e){const l=e.hasOwnProperty(o),c=t.hasOwnProperty(o);if(l&&!c||!l&&c||!mt(e[o],t[o]))return!1}}return String(e)===String(t)}function Rr(e,t){return e.findIndex(n=>mt(n,t))}const Pr=e=>!!(e&&e.__v_isRef===!0),po=e=>ne(e)?e:e==null?"":L(e)||X(e)&&(e.toString===Sr||!V(e.toString))?Pr(e)?po(e.value):JSON.stringify(e,Lr,2):String(e),Lr=(e,t)=>Pr(t)?Lr(e,t.value):ut(t)?{[`Map(${t.size})`]:[...t.entries()].reduce((n,[s,r],i)=>(n[Rn(s,i)+" =>"]=r,n),{})}:_n(t)?{[`Set(${t.size})`]:[...t.values()].map(n=>Rn(n))}:Re(t)?Rn(t):X(t)&&!L(t)&&!Ar(t)?String(t):t,Rn=(e,t="")=>{var n;return Re(e)?`Symbol(${(n=e.description)!=null?n:t})`:e};/**
6
- * @vue/reactivity v3.4.38
7
- * (c) 2018-present Yuxi (Evan) You and Vue contributors
8
- * @license MIT
9
- **/let be;class Nr{constructor(t=!1){this.detached=t,this._active=!0,this.effects=[],this.cleanups=[],this.parent=be,!t&&be&&(this.index=(be.scopes||(be.scopes=[])).push(this)-1)}get active(){return this._active}run(t){if(this._active){const n=be;try{return be=this,t()}finally{be=n}}}on(){be=this}off(){be=this.parent}stop(t){if(this._active){let n,s;for(n=0,s=this.effects.length;n<s;n++)this.effects[n].stop();for(n=0,s=this.cleanups.length;n<s;n++)this.cleanups[n]();if(this.scopes)for(n=0,s=this.scopes.length;n<s;n++)this.scopes[n].stop(!0);if(!this.detached&&this.parent&&!t){const r=this.parent.scopes.pop();r&&r!==this&&(this.parent.scopes[this.index]=r,r.index=this.index)}this.parent=void 0,this._active=!1}}}function kc(e){return new Nr(e)}function go(e,t=be){t&&t.active&&t.effects.push(e)}function mo(){return be}function Uc(e){be&&be.cleanups.push(e)}let nt;class as{constructor(t,n,s,r){this.fn=t,this.trigger=n,this.scheduler=s,this.active=!0,this.deps=[],this._dirtyLevel=4,this._trackId=0,this._runnings=0,this._shouldSchedule=!1,this._depsLength=0,go(this,r)}get dirty(){if(this._dirtyLevel===2||this._dirtyLevel===3){this._dirtyLevel=1,Je();for(let t=0;t<this._depsLength;t++){const n=this.deps[t];if(n.computed&&(_o(n.computed),this._dirtyLevel>=4))break}this._dirtyLevel===1&&(this._dirtyLevel=0),ze()}return this._dirtyLevel>=4}set dirty(t){this._dirtyLevel=t?4:0}run(){if(this._dirtyLevel=0,!this.active)return this.fn();let t=Ge,n=nt;try{return Ge=!0,nt=this,this._runnings++,Us(this),this.fn()}finally{Ws(this),this._runnings--,nt=n,Ge=t}}stop(){this.active&&(Us(this),Ws(this),this.onStop&&this.onStop(),this.active=!1)}}function _o(e){return e.value}function Us(e){e._trackId++,e._depsLength=0}function Ws(e){if(e.deps.length>e._depsLength){for(let t=e._depsLength;t<e.deps.length;t++)Br(e.deps[t],e);e.deps.length=e._depsLength}}function Br(e,t){const n=e.get(t);n!==void 0&&t._trackId!==n&&(e.delete(t),e.size===0&&e.cleanup())}let Ge=!0,Dn=0;const $r=[];function Je(){$r.push(Ge),Ge=!1}function ze(){const e=$r.pop();Ge=e===void 0?!0:e}function ds(){Dn++}function hs(){for(Dn--;!Dn&&Kn.length;)Kn.shift()()}function Vr(e,t,n){if(t.get(e)!==e._trackId){t.set(e,e._trackId);const s=e.deps[e._depsLength];s!==t?(s&&Br(s,e),e.deps[e._depsLength++]=t):e._depsLength++}}const Kn=[];function Hr(e,t,n){ds();for(const s of e.keys()){let r;s._dirtyLevel<t&&(r??(r=e.get(s)===s._trackId))&&(s._shouldSchedule||(s._shouldSchedule=s._dirtyLevel===0),s._dirtyLevel=t),s._shouldSchedule&&(r??(r=e.get(s)===s._trackId))&&(s.trigger(),(!s._runnings||s.allowRecurse)&&s._dirtyLevel!==2&&(s._shouldSchedule=!1,s.scheduler&&Kn.push(s.scheduler)))}hs()}const jr=(e,t)=>{const n=new Map;return n.cleanup=e,n.computed=t,n},ln=new WeakMap,st=Symbol(""),kn=Symbol("");function _e(e,t,n){if(Ge&&nt){let s=ln.get(e);s||ln.set(e,s=new Map);let r=s.get(n);r||s.set(n,r=jr(()=>s.delete(n))),Vr(nt,r)}}function Ne(e,t,n,s,r,i){const o=ln.get(e);if(!o)return;let l=[];if(t==="clear")l=[...o.values()];else if(n==="length"&&L(e)){const c=Number(s);o.forEach((a,d)=>{(d==="length"||!Re(d)&&d>=c)&&l.push(a)})}else switch(n!==void 0&&l.push(o.get(n)),t){case"add":L(e)?us(n)&&l.push(o.get("length")):(l.push(o.get(st)),ut(e)&&l.push(o.get(kn)));break;case"delete":L(e)||(l.push(o.get(st)),ut(e)&&l.push(o.get(kn)));break;case"set":ut(e)&&l.push(o.get(st));break}ds();for(const c of l)c&&Hr(c,4);hs()}function yo(e,t){const n=ln.get(e);return n&&n.get(t)}const bo=os("__proto__,__v_isRef,__isVue"),Dr=new Set(Object.getOwnPropertyNames(Symbol).filter(e=>e!=="arguments"&&e!=="caller").map(e=>Symbol[e]).filter(Re)),Gs=Co();function Co(){const e={};return["includes","indexOf","lastIndexOf"].forEach(t=>{e[t]=function(...n){const s=q(this);for(let i=0,o=this.length;i<o;i++)_e(s,"get",i+"");const r=s[t](...n);return r===-1||r===!1?s[t](...n.map(q)):r}}),["push","pop","shift","unshift","splice"].forEach(t=>{e[t]=function(...n){Je(),ds();const s=q(this)[t].apply(this,n);return hs(),ze(),s}}),e}function vo(e){Re(e)||(e=String(e));const t=q(this);return _e(t,"has",e),t.hasOwnProperty(e)}class Kr{constructor(t=!1,n=!1){this._isReadonly=t,this._isShallow=n}get(t,n,s){const r=this._isReadonly,i=this._isShallow;if(n==="__v_isReactive")return!r;if(n==="__v_isReadonly")return r;if(n==="__v_isShallow")return i;if(n==="__v_raw")return s===(r?i?Lo:Gr:i?Wr:Ur).get(t)||Object.getPrototypeOf(t)===Object.getPrototypeOf(s)?t:void 0;const o=L(t);if(!r){if(o&&G(Gs,n))return Reflect.get(Gs,n,s);if(n==="hasOwnProperty")return vo}const l=Reflect.get(t,n,s);return(Re(n)?Dr.has(n):bo(n))||(r||_e(t,"get",n),i)?l:de(l)?o&&us(n)?l:l.value:X(l)?r?qr(l):ms(l):l}}class kr extends Kr{constructor(t=!1){super(!1,t)}set(t,n,s,r){let i=t[n];if(!this._isShallow){const c=it(i);if(!_t(s)&&!it(s)&&(i=q(i),s=q(s)),!L(t)&&de(i)&&!de(s))return c?!1:(i.value=s,!0)}const o=L(t)&&us(n)?Number(n)<t.length:G(t,n),l=Reflect.set(t,n,s,r);return t===q(r)&&(o?pe(s,i)&&Ne(t,"set",n,s):Ne(t,"add",n,s)),l}deleteProperty(t,n){const s=G(t,n);t[n];const r=Reflect.deleteProperty(t,n);return r&&s&&Ne(t,"delete",n,void 0),r}has(t,n){const s=Reflect.has(t,n);return(!Re(n)||!Dr.has(n))&&_e(t,"has",n),s}ownKeys(t){return _e(t,"iterate",L(t)?"length":st),Reflect.ownKeys(t)}}class xo extends Kr{constructor(t=!1){super(!0,t)}set(t,n){return!0}deleteProperty(t,n){return!0}}const Eo=new kr,wo=new xo,To=new kr(!0);const ps=e=>e,xn=e=>Reflect.getPrototypeOf(e);function Gt(e,t,n=!1,s=!1){e=e.__v_raw;const r=q(e),i=q(t);n||(pe(t,i)&&_e(r,"get",t),_e(r,"get",i));const{has:o}=xn(r),l=s?ps:n?ys:$t;if(o.call(r,t))return l(e.get(t));if(o.call(r,i))return l(e.get(i));e!==r&&e.get(t)}function qt(e,t=!1){const n=this.__v_raw,s=q(n),r=q(e);return t||(pe(e,r)&&_e(s,"has",e),_e(s,"has",r)),e===r?n.has(e):n.has(e)||n.has(r)}function Jt(e,t=!1){return e=e.__v_raw,!t&&_e(q(e),"iterate",st),Reflect.get(e,"size",e)}function qs(e,t=!1){!t&&!_t(e)&&!it(e)&&(e=q(e));const n=q(this);return xn(n).has.call(n,e)||(n.add(e),Ne(n,"add",e,e)),this}function Js(e,t,n=!1){!n&&!_t(t)&&!it(t)&&(t=q(t));const s=q(this),{has:r,get:i}=xn(s);let o=r.call(s,e);o||(e=q(e),o=r.call(s,e));const l=i.call(s,e);return s.set(e,t),o?pe(t,l)&&Ne(s,"set",e,t):Ne(s,"add",e,t),this}function zs(e){const t=q(this),{has:n,get:s}=xn(t);let r=n.call(t,e);r||(e=q(e),r=n.call(t,e)),s&&s.call(t,e);const i=t.delete(e);return r&&Ne(t,"delete",e,void 0),i}function Ys(){const e=q(this),t=e.size!==0,n=e.clear();return t&&Ne(e,"clear",void 0,void 0),n}function zt(e,t){return function(s,r){const i=this,o=i.__v_raw,l=q(o),c=t?ps:e?ys:$t;return!e&&_e(l,"iterate",st),o.forEach((a,d)=>s.call(r,c(a),c(d),i))}}function Yt(e,t,n){return function(...s){const r=this.__v_raw,i=q(r),o=ut(i),l=e==="entries"||e===Symbol.iterator&&o,c=e==="keys"&&o,a=r[e](...s),d=n?ps:t?ys:$t;return!t&&_e(i,"iterate",c?kn:st),{next(){const{value:h,done:p}=a.next();return p?{value:h,done:p}:{value:l?[d(h[0]),d(h[1])]:d(h),done:p}},[Symbol.iterator](){return this}}}}function He(e){return function(...t){return e==="delete"?!1:e==="clear"?void 0:this}}function So(){const e={get(i){return Gt(this,i)},get size(){return Jt(this)},has:qt,add:qs,set:Js,delete:zs,clear:Ys,forEach:zt(!1,!1)},t={get(i){return Gt(this,i,!1,!0)},get size(){return Jt(this)},has:qt,add(i){return qs.call(this,i,!0)},set(i,o){return Js.call(this,i,o,!0)},delete:zs,clear:Ys,forEach:zt(!1,!0)},n={get(i){return Gt(this,i,!0)},get size(){return Jt(this,!0)},has(i){return qt.call(this,i,!0)},add:He("add"),set:He("set"),delete:He("delete"),clear:He("clear"),forEach:zt(!0,!1)},s={get(i){return Gt(this,i,!0,!0)},get size(){return Jt(this,!0)},has(i){return qt.call(this,i,!0)},add:He("add"),set:He("set"),delete:He("delete"),clear:He("clear"),forEach:zt(!0,!0)};return["keys","values","entries",Symbol.iterator].forEach(i=>{e[i]=Yt(i,!1,!1),n[i]=Yt(i,!0,!1),t[i]=Yt(i,!1,!0),s[i]=Yt(i,!0,!0)}),[e,n,t,s]}const[Ao,Io,Fo,Mo]=So();function gs(e,t){const n=t?e?Mo:Fo:e?Io:Ao;return(s,r,i)=>r==="__v_isReactive"?!e:r==="__v_isReadonly"?e:r==="__v_raw"?s:Reflect.get(G(n,r)&&r in s?n:s,r,i)}const Oo={get:gs(!1,!1)},Ro={get:gs(!1,!0)},Po={get:gs(!0,!1)};const Ur=new WeakMap,Wr=new WeakMap,Gr=new WeakMap,Lo=new WeakMap;function No(e){switch(e){case"Object":case"Array":return 1;case"Map":case"Set":case"WeakMap":case"WeakSet":return 2;default:return 0}}function Bo(e){return e.__v_skip||!Object.isExtensible(e)?0:No(no(e))}function ms(e){return it(e)?e:_s(e,!1,Eo,Oo,Ur)}function $o(e){return _s(e,!1,To,Ro,Wr)}function qr(e){return _s(e,!0,wo,Po,Gr)}function _s(e,t,n,s,r){if(!X(e)||e.__v_raw&&!(t&&e.__v_isReactive))return e;const i=r.get(e);if(i)return i;const o=Bo(e);if(o===0)return e;const l=new Proxy(e,o===2?s:n);return r.set(e,l),l}function Ot(e){return it(e)?Ot(e.__v_raw):!!(e&&e.__v_isReactive)}function it(e){return!!(e&&e.__v_isReadonly)}function _t(e){return!!(e&&e.__v_isShallow)}function Jr(e){return e?!!e.__v_raw:!1}function q(e){const t=e&&e.__v_raw;return t?q(t):e}function Vo(e){return Object.isExtensible(e)&&Ir(e,"__v_skip",!0),e}const $t=e=>X(e)?ms(e):e,ys=e=>X(e)?qr(e):e;class zr{constructor(t,n,s,r){this.getter=t,this._setter=n,this.dep=void 0,this.__v_isRef=!0,this.__v_isReadonly=!1,this.effect=new as(()=>t(this._value),()=>Rt(this,this.effect._dirtyLevel===2?2:3)),this.effect.computed=this,this.effect.active=this._cacheable=!r,this.__v_isReadonly=s}get value(){const t=q(this);return(!t._cacheable||t.effect.dirty)&&pe(t._value,t._value=t.effect.run())&&Rt(t,4),bs(t),t.effect._dirtyLevel>=2&&Rt(t,2),t._value}set value(t){this._setter(t)}get _dirty(){return this.effect.dirty}set _dirty(t){this.effect.dirty=t}}function Ho(e,t,n=!1){let s,r;const i=V(e);return i?(s=e,r=Ee):(s=e.get,r=e.set),new zr(s,r,i||!r,n)}function bs(e){var t;Ge&&nt&&(e=q(e),Vr(nt,(t=e.dep)!=null?t:e.dep=jr(()=>e.dep=void 0,e instanceof zr?e:void 0)))}function Rt(e,t=4,n,s){e=q(e);const r=e.dep;r&&Hr(r,t)}function de(e){return!!(e&&e.__v_isRef===!0)}function jo(e){return Yr(e,!1)}function Wc(e){return Yr(e,!0)}function Yr(e,t){return de(e)?e:new Do(e,t)}class Do{constructor(t,n){this.__v_isShallow=n,this.dep=void 0,this.__v_isRef=!0,this._rawValue=n?t:q(t),this._value=n?t:$t(t)}get value(){return bs(this),this._value}set value(t){const n=this.__v_isShallow||_t(t)||it(t);t=n?t:q(t),pe(t,this._rawValue)&&(this._rawValue,this._rawValue=t,this._value=n?t:$t(t),Rt(this,4))}}function Xr(e){return de(e)?e.value:e}function Gc(e){return V(e)?e():Xr(e)}const Ko={get:(e,t,n)=>Xr(Reflect.get(e,t,n)),set:(e,t,n,s)=>{const r=e[t];return de(r)&&!de(n)?(r.value=n,!0):Reflect.set(e,t,n,s)}};function Zr(e){return Ot(e)?e:new Proxy(e,Ko)}class ko{constructor(t){this.dep=void 0,this.__v_isRef=!0;const{get:n,set:s}=t(()=>bs(this),()=>Rt(this));this._get=n,this._set=s}get value(){return this._get()}set value(t){this._set(t)}}function Uo(e){return new ko(e)}function qc(e){const t=L(e)?new Array(e.length):{};for(const n in e)t[n]=Qr(e,n);return t}class Wo{constructor(t,n,s){this._object=t,this._key=n,this._defaultValue=s,this.__v_isRef=!0}get value(){const t=this._object[this._key];return t===void 0?this._defaultValue:t}set value(t){this._object[this._key]=t}get dep(){return yo(q(this._object),this._key)}}class Go{constructor(t){this._getter=t,this.__v_isRef=!0,this.__v_isReadonly=!0}get value(){return this._getter()}}function Jc(e,t,n){return de(e)?e:V(e)?new Go(e):X(e)&&arguments.length>1?Qr(e,t,n):jo(e)}function Qr(e,t,n){const s=e[t];return de(s)?s:new Wo(e,t,n)}/**
10
- * @vue/runtime-core v3.4.38
11
- * (c) 2018-present Yuxi (Evan) You and Vue contributors
12
- * @license MIT
13
- **/function qe(e,t,n,s){try{return s?e(...s):e()}catch(r){Kt(r,t,n)}}function we(e,t,n,s){if(V(e)){const r=qe(e,t,n,s);return r&&fs(r)&&r.catch(i=>{Kt(i,t,n)}),r}if(L(e)){const r=[];for(let i=0;i<e.length;i++)r.push(we(e[i],t,n,s));return r}}function Kt(e,t,n,s=!0){const r=t?t.vnode:null;if(t){let i=t.parent;const o=t.proxy,l=`https://vuejs.org/error-reference/#runtime-${n}`;for(;i;){const a=i.ec;if(a){for(let d=0;d<a.length;d++)if(a[d](e,o,l)===!1)return}i=i.parent}const c=t.appContext.config.errorHandler;if(c){Je(),qe(c,null,10,[e,o,l]),ze();return}}qo(e,n,r,s)}function qo(e,t,n,s=!0){console.error(e)}let Vt=!1,Un=!1;const ae=[];let Oe=0;const dt=[];let Ke=null,tt=0;const ei=Promise.resolve();let Cs=null;function Jo(e){const t=Cs||ei;return e?t.then(this?e.bind(this):e):t}function zo(e){let t=Oe+1,n=ae.length;for(;t<n;){const s=t+n>>>1,r=ae[s],i=Ht(r);i<e||i===e&&r.pre?t=s+1:n=s}return t}function vs(e){(!ae.length||!ae.includes(e,Vt&&e.allowRecurse?Oe+1:Oe))&&(e.id==null?ae.push(e):ae.splice(zo(e.id),0,e),ti())}function ti(){!Vt&&!Un&&(Un=!0,Cs=ei.then(si))}function Yo(e){const t=ae.indexOf(e);t>Oe&&ae.splice(t,1)}function Wn(e){L(e)?dt.push(...e):(!Ke||!Ke.includes(e,e.allowRecurse?tt+1:tt))&&dt.push(e),ti()}function Xs(e,t,n=Vt?Oe+1:0){for(;n<ae.length;n++){const s=ae[n];if(s&&s.pre){if(e&&s.id!==e.uid)continue;ae.splice(n,1),n--,s()}}}function ni(e){if(dt.length){const t=[...new Set(dt)].sort((n,s)=>Ht(n)-Ht(s));if(dt.length=0,Ke){Ke.push(...t);return}for(Ke=t,tt=0;tt<Ke.length;tt++){const n=Ke[tt];n.active!==!1&&n()}Ke=null,tt=0}}const Ht=e=>e.id==null?1/0:e.id,Xo=(e,t)=>{const n=Ht(e)-Ht(t);if(n===0){if(e.pre&&!t.pre)return-1;if(t.pre&&!e.pre)return 1}return n};function si(e){Un=!1,Vt=!0,ae.sort(Xo);try{for(Oe=0;Oe<ae.length;Oe++){const t=ae[Oe];t&&t.active!==!1&&qe(t,t.i,t.i?15:14)}}finally{Oe=0,ae.length=0,ni(),Vt=!1,Cs=null,(ae.length||dt.length)&&si()}}let ie=null,En=null;function cn(e){const t=ie;return ie=e,En=e&&e.type.__scopeId||null,t}function zc(e){En=e}function Yc(){En=null}function Zo(e,t=ie,n){if(!t||e._n)return e;const s=(...r)=>{s._d&&cr(-1);const i=cn(t);let o;try{o=e(...r)}finally{cn(i),s._d&&cr(1)}return o};return s._n=!0,s._c=!0,s._d=!0,s}function Xc(e,t){if(ie===null)return e;const n=Mn(ie),s=e.dirs||(e.dirs=[]);for(let r=0;r<t.length;r++){let[i,o,l,c=Y]=t[r];i&&(V(i)&&(i={mounted:i,updated:i}),i.deep&&We(o),s.push({dir:i,instance:n,value:o,oldValue:void 0,arg:l,modifiers:c}))}return e}function Ze(e,t,n,s){const r=e.dirs,i=t&&t.dirs;for(let o=0;o<r.length;o++){const l=r[o];i&&(l.oldValue=i[o].value);let c=l.dir[s];c&&(Je(),we(c,n,8,[e.el,l,e,t]),ze())}}const ke=Symbol("_leaveCb"),Xt=Symbol("_enterCb");function ri(){const e={isMounted:!1,isLeaving:!1,isUnmounting:!1,leavingVNodes:new Map};return Sn(()=>{e.isMounted=!0}),ws(()=>{e.isUnmounting=!0}),e}const ve=[Function,Array],ii={mode:String,appear:Boolean,persisted:Boolean,onBeforeEnter:ve,onEnter:ve,onAfterEnter:ve,onEnterCancelled:ve,onBeforeLeave:ve,onLeave:ve,onAfterLeave:ve,onLeaveCancelled:ve,onBeforeAppear:ve,onAppear:ve,onAfterAppear:ve,onAppearCancelled:ve},oi=e=>{const t=e.subTree;return t.component?oi(t.component):t},Qo={name:"BaseTransition",props:ii,setup(e,{slots:t}){const n=xt(),s=ri();return()=>{const r=t.default&&xs(t.default(),!0);if(!r||!r.length)return;let i=r[0];if(r.length>1){for(const p of r)if(p.type!==fe){i=p;break}}const o=q(e),{mode:l}=o;if(s.isLeaving)return Pn(i);const c=Zs(i);if(!c)return Pn(i);let a=jt(c,o,s,n,p=>a=p);ot(c,a);const d=n.subTree,h=d&&Zs(d);if(h&&h.type!==fe&&!Ie(c,h)&&oi(n).type!==fe){const p=jt(h,o,s,n);if(ot(h,p),l==="out-in"&&c.type!==fe)return s.isLeaving=!0,p.afterLeave=()=>{s.isLeaving=!1,n.update.active!==!1&&(n.effect.dirty=!0,n.update())},Pn(i);l==="in-out"&&c.type!==fe&&(p.delayLeave=(C,w,O)=>{const W=li(s,h);W[String(h.key)]=h,C[ke]=()=>{w(),C[ke]=void 0,delete a.delayedLeave},a.delayedLeave=O})}return i}}},el=Qo;function li(e,t){const{leavingVNodes:n}=e;let s=n.get(t.type);return s||(s=Object.create(null),n.set(t.type,s)),s}function jt(e,t,n,s,r){const{appear:i,mode:o,persisted:l=!1,onBeforeEnter:c,onEnter:a,onAfterEnter:d,onEnterCancelled:h,onBeforeLeave:p,onLeave:C,onAfterLeave:w,onLeaveCancelled:O,onBeforeAppear:W,onAppear:K,onAfterAppear:T,onAppearCancelled:S}=t,R=String(e.key),I=li(n,e),v=(P,$)=>{P&&we(P,s,9,$)},H=(P,$)=>{const D=$[1];v(P,$),L(P)?P.every(F=>F.length<=1)&&D():P.length<=1&&D()},k={mode:o,persisted:l,beforeEnter(P){let $=c;if(!n.isMounted)if(i)$=W||c;else return;P[ke]&&P[ke](!0);const D=I[R];D&&Ie(e,D)&&D.el[ke]&&D.el[ke](),v($,[P])},enter(P){let $=a,D=d,F=h;if(!n.isMounted)if(i)$=K||a,D=T||d,F=S||h;else return;let J=!1;const se=P[Xt]=Ce=>{J||(J=!0,Ce?v(F,[P]):v(D,[P]),k.delayedLeave&&k.delayedLeave(),P[Xt]=void 0)};$?H($,[P,se]):se()},leave(P,$){const D=String(e.key);if(P[Xt]&&P[Xt](!0),n.isUnmounting)return $();v(p,[P]);let F=!1;const J=P[ke]=se=>{F||(F=!0,$(),se?v(O,[P]):v(w,[P]),P[ke]=void 0,I[D]===e&&delete I[D])};I[D]=e,C?H(C,[P,J]):J()},clone(P){const $=jt(P,t,n,s,r);return r&&r($),$}};return k}function Pn(e){if(wn(e))return e=Be(e),e.children=null,e}function Zs(e){if(!wn(e))return e;const{shapeFlag:t,children:n}=e;if(n){if(t&16)return n[0];if(t&32&&V(n.default))return n.default()}}function ot(e,t){e.shapeFlag&6&&e.component?ot(e.component.subTree,t):e.shapeFlag&128?(e.ssContent.transition=t.clone(e.ssContent),e.ssFallback.transition=t.clone(e.ssFallback)):e.transition=t}function xs(e,t=!1,n){let s=[],r=0;for(let i=0;i<e.length;i++){let o=e[i];const l=n==null?o.key:String(n)+String(o.key!=null?o.key:i);o.type===ge?(o.patchFlag&128&&r++,s=s.concat(xs(o.children,t,l))):(t||o.type!==fe)&&s.push(l!=null?Be(o,{key:l}):o)}if(r>1)for(let i=0;i<s.length;i++)s[i].patchFlag=-2;return s}/*! #__NO_SIDE_EFFECTS__ */function Zc(e,t){return V(e)?re({name:e.name},t,{setup:e}):e}const ht=e=>!!e.type.__asyncLoader,wn=e=>e.type.__isKeepAlive,tl={name:"KeepAlive",__isKeepAlive:!0,props:{include:[String,RegExp,Array],exclude:[String,RegExp,Array],max:[String,Number]},setup(e,{slots:t}){const n=xt(),s=n.ctx;if(!s.renderer)return()=>{const T=t.default&&t.default();return T&&T.length===1?T[0]:T};const r=new Map,i=new Set;let o=null;const l=n.suspense,{renderer:{p:c,m:a,um:d,o:{createElement:h}}}=s,p=h("div");s.activate=(T,S,R,I,v)=>{const H=T.component;a(T,S,R,0,l),c(H.vnode,T,S,R,H,l,I,T.slotScopeIds,v),le(()=>{H.isDeactivated=!1,H.a&&at(H.a);const k=T.props&&T.props.onVnodeMounted;k&&xe(k,H.parent,T)},l)},s.deactivate=T=>{const S=T.component;an(S.m),an(S.a),a(T,p,null,1,l),le(()=>{S.da&&at(S.da);const R=T.props&&T.props.onVnodeUnmounted;R&&xe(R,S.parent,T),S.isDeactivated=!0},l)};function C(T){Ln(T),d(T,n,l,!0)}function w(T){r.forEach((S,R)=>{const I=ss(S.type);I&&(!T||!T(I))&&O(R)})}function O(T){const S=r.get(T);S&&(!o||!Ie(S,o))?C(S):o&&Ln(o),r.delete(T),i.delete(T)}sn(()=>[e.include,e.exclude],([T,S])=>{T&&w(R=>It(T,R)),S&&w(R=>!It(S,R))},{flush:"post",deep:!0});let W=null;const K=()=>{W!=null&&(Zn(n.subTree.type)?le(()=>{r.set(W,Zt(n.subTree))},n.subTree.suspense):r.set(W,Zt(n.subTree)))};return Sn(K),Es(K),ws(()=>{r.forEach(T=>{const{subTree:S,suspense:R}=n,I=Zt(S);if(T.type===I.type&&T.key===I.key){Ln(I);const v=I.component.da;v&&le(v,R);return}C(T)})}),()=>{if(W=null,!t.default)return null;const T=t.default(),S=T[0];if(T.length>1)return o=null,T;if(!bt(S)||!(S.shapeFlag&4)&&!(S.shapeFlag&128))return o=null,S;let R=Zt(S);if(R.type===fe)return o=null,R;const I=R.type,v=ss(ht(R)?R.type.__asyncResolved||{}:I),{include:H,exclude:k,max:P}=e;if(H&&(!v||!It(H,v))||k&&v&&It(k,v))return o=R,S;const $=R.key==null?I:R.key,D=r.get($);return R.el&&(R=Be(R),S.shapeFlag&128&&(S.ssContent=R)),W=$,D?(R.el=D.el,R.component=D.component,R.transition&&ot(R,R.transition),R.shapeFlag|=512,i.delete($),i.add($)):(i.add($),P&&i.size>parseInt(P,10)&&O(i.values().next().value)),R.shapeFlag|=256,o=R,Zn(S.type)?S:R}}},Qc=tl;function It(e,t){return L(e)?e.some(n=>It(n,t)):ne(e)?e.split(",").includes(t):to(e)?e.test(t):!1}function nl(e,t){ci(e,"a",t)}function sl(e,t){ci(e,"da",t)}function ci(e,t,n=ce){const s=e.__wdc||(e.__wdc=()=>{let r=n;for(;r;){if(r.isDeactivated)return;r=r.parent}return e()});if(Tn(t,s,n),n){let r=n.parent;for(;r&&r.parent;)wn(r.parent.vnode)&&rl(s,t,n,r),r=r.parent}}function rl(e,t,n,s){const r=Tn(t,e,s,!0);Ts(()=>{cs(s[t],r)},n)}function Ln(e){e.shapeFlag&=-257,e.shapeFlag&=-513}function Zt(e){return e.shapeFlag&128?e.ssContent:e}function Tn(e,t,n=ce,s=!1){if(n){const r=n[e]||(n[e]=[]),i=t.__weh||(t.__weh=(...o)=>{Je();const l=lt(n),c=we(t,n,e,o);return l(),ze(),c});return s?r.unshift(i):r.push(i),i}}const Ve=e=>(t,n=ce)=>{(!Fn||e==="sp")&&Tn(e,(...s)=>t(...s),n)},fi=Ve("bm"),Sn=Ve("m"),il=Ve("bu"),Es=Ve("u"),ws=Ve("bum"),Ts=Ve("um"),ol=Ve("sp"),ll=Ve("rtg"),cl=Ve("rtc");function fl(e,t=ce){Tn("ec",e,t)}const Ss="components",ul="directives";function ef(e,t){return As(Ss,e,!0,t)||e}const ui=Symbol.for("v-ndc");function tf(e){return ne(e)?As(Ss,e,!1)||e:e||ui}function nf(e){return As(ul,e)}function As(e,t,n=!0,s=!1){const r=ie||ce;if(r){const i=r.type;if(e===Ss){const l=ss(i,!1);if(l&&(l===t||l===Te(t)||l===bn(Te(t))))return i}const o=Qs(r[e]||i[e],t)||Qs(r.appContext[e],t);return!o&&s?i:o}}function Qs(e,t){return e&&(e[t]||e[Te(t)]||e[bn(Te(t))])}function sf(e,t,n,s){let r;const i=n;if(L(e)||ne(e)){r=new Array(e.length);for(let o=0,l=e.length;o<l;o++)r[o]=t(e[o],o,void 0,i)}else if(typeof e=="number"){r=new Array(e);for(let o=0;o<e;o++)r[o]=t(o+1,o,void 0,i)}else if(X(e))if(e[Symbol.iterator])r=Array.from(e,(o,l)=>t(o,l,void 0,i));else{const o=Object.keys(e);r=new Array(o.length);for(let l=0,c=o.length;l<c;l++){const a=o[l];r[l]=t(e[a],a,l,i)}}else r=[];return r}function rf(e,t){for(let n=0;n<t.length;n++){const s=t[n];if(L(s))for(let r=0;r<s.length;r++)e[s[r].name]=s[r].fn;else s&&(e[s.name]=s.key?(...r)=>{const i=s.fn(...r);return i&&(i.key=s.key),i}:s.fn)}return e}function of(e,t,n={},s,r){if(ie.isCE||ie.parent&&ht(ie.parent)&&ie.parent.isCE)return t!=="default"&&(n.name=t),ue("slot",n,s&&s());let i=e[t];i&&i._c&&(i._d=!1),Rs();const o=i&&ai(i(n)),l=Pi(ge,{key:(n.key||o&&o.key||`_${t}`)+(!o&&s?"_fb":"")},o||(s?s():[]),o&&e._===1?64:-2);return!r&&l.scopeId&&(l.slotScopeIds=[l.scopeId+"-s"]),i&&i._c&&(i._d=!0),l}function ai(e){return e.some(t=>bt(t)?!(t.type===fe||t.type===ge&&!ai(t.children)):!0)?e:null}function lf(e,t){const n={};for(const s in e)n[/[A-Z]/.test(s)?`on:${s}`:tn(s)]=e[s];return n}const Gn=e=>e?Bi(e)?Mn(e):Gn(e.parent):null,Pt=re(Object.create(null),{$:e=>e,$el:e=>e.vnode.el,$data:e=>e.data,$props:e=>e.props,$attrs:e=>e.attrs,$slots:e=>e.slots,$refs:e=>e.refs,$parent:e=>Gn(e.parent),$root:e=>Gn(e.root),$emit:e=>e.emit,$options:e=>Is(e),$forceUpdate:e=>e.f||(e.f=()=>{e.effect.dirty=!0,vs(e.update)}),$nextTick:e=>e.n||(e.n=Jo.bind(e.proxy)),$watch:e=>$l.bind(e)}),Nn=(e,t)=>e!==Y&&!e.__isScriptSetup&&G(e,t),al={get({_:e},t){if(t==="__v_skip")return!0;const{ctx:n,setupState:s,data:r,props:i,accessCache:o,type:l,appContext:c}=e;let a;if(t[0]!=="$"){const C=o[t];if(C!==void 0)switch(C){case 1:return s[t];case 2:return r[t];case 4:return n[t];case 3:return i[t]}else{if(Nn(s,t))return o[t]=1,s[t];if(r!==Y&&G(r,t))return o[t]=2,r[t];if((a=e.propsOptions[0])&&G(a,t))return o[t]=3,i[t];if(n!==Y&&G(n,t))return o[t]=4,n[t];qn&&(o[t]=0)}}const d=Pt[t];let h,p;if(d)return t==="$attrs"&&_e(e.attrs,"get",""),d(e);if((h=l.__cssModules)&&(h=h[t]))return h;if(n!==Y&&G(n,t))return o[t]=4,n[t];if(p=c.config.globalProperties,G(p,t))return p[t]},set({_:e},t,n){const{data:s,setupState:r,ctx:i}=e;return Nn(r,t)?(r[t]=n,!0):s!==Y&&G(s,t)?(s[t]=n,!0):G(e.props,t)||t[0]==="$"&&t.slice(1)in e?!1:(i[t]=n,!0)},has({_:{data:e,setupState:t,accessCache:n,ctx:s,appContext:r,propsOptions:i}},o){let l;return!!n[o]||e!==Y&&G(e,o)||Nn(t,o)||(l=i[0])&&G(l,o)||G(s,o)||G(Pt,o)||G(r.config.globalProperties,o)},defineProperty(e,t,n){return n.get!=null?e._.accessCache[t]=0:G(n,"value")&&this.set(e,t,n.value,null),Reflect.defineProperty(e,t,n)}};function fn(e){return L(e)?e.reduce((t,n)=>(t[n]=null,t),{}):e}function cf(e,t){return!e||!t?e||t:L(e)&&L(t)?e.concat(t):re({},fn(e),fn(t))}function ff(e){const t=xt();let n=e();return ts(),fs(n)&&(n=n.catch(s=>{throw lt(t),s})),[n,()=>lt(t)]}let qn=!0;function dl(e){const t=Is(e),n=e.proxy,s=e.ctx;qn=!1,t.beforeCreate&&er(t.beforeCreate,e,"bc");const{data:r,computed:i,methods:o,watch:l,provide:c,inject:a,created:d,beforeMount:h,mounted:p,beforeUpdate:C,updated:w,activated:O,deactivated:W,beforeDestroy:K,beforeUnmount:T,destroyed:S,unmounted:R,render:I,renderTracked:v,renderTriggered:H,errorCaptured:k,serverPrefetch:P,expose:$,inheritAttrs:D,components:F,directives:J,filters:se}=t;if(a&&hl(a,s,null),o)for(const Z in o){const Q=o[Z];V(Q)&&(s[Z]=Q.bind(n))}if(r){const Z=r.call(n,n);X(Z)&&(e.data=ms(Z))}if(qn=!0,i)for(const Z in i){const Q=i[Z],Ye=V(Q)?Q.bind(n,n):V(Q.get)?Q.get.bind(n,n):Ee,Ut=!V(Q)&&V(Q.set)?Q.set.bind(n):Ee,Xe=cc({get:Ye,set:Ut});Object.defineProperty(s,Z,{enumerable:!0,configurable:!0,get:()=>Xe.value,set:Fe=>Xe.value=Fe})}if(l)for(const Z in l)di(l[Z],s,n,Z);if(c){const Z=V(c)?c.call(n):c;Reflect.ownKeys(Z).forEach(Q=>{bl(Q,Z[Q])})}d&&er(d,e,"c");function te(Z,Q){L(Q)?Q.forEach(Ye=>Z(Ye.bind(n))):Q&&Z(Q.bind(n))}if(te(fi,h),te(Sn,p),te(il,C),te(Es,w),te(nl,O),te(sl,W),te(fl,k),te(cl,v),te(ll,H),te(ws,T),te(Ts,R),te(ol,P),L($))if($.length){const Z=e.exposed||(e.exposed={});$.forEach(Q=>{Object.defineProperty(Z,Q,{get:()=>n[Q],set:Ye=>n[Q]=Ye})})}else e.exposed||(e.exposed={});I&&e.render===Ee&&(e.render=I),D!=null&&(e.inheritAttrs=D),F&&(e.components=F),J&&(e.directives=J)}function hl(e,t,n=Ee){L(e)&&(e=Jn(e));for(const s in e){const r=e[s];let i;X(r)?"default"in r?i=nn(r.from||s,r.default,!0):i=nn(r.from||s):i=nn(r),de(i)?Object.defineProperty(t,s,{enumerable:!0,configurable:!0,get:()=>i.value,set:o=>i.value=o}):t[s]=i}}function er(e,t,n){we(L(e)?e.map(s=>s.bind(t.proxy)):e.bind(t.proxy),t,n)}function di(e,t,n,s){const r=s.includes(".")?Ai(n,s):()=>n[s];if(ne(e)){const i=t[e];V(i)&&sn(r,i)}else if(V(e))sn(r,e.bind(n));else if(X(e))if(L(e))e.forEach(i=>di(i,t,n,s));else{const i=V(e.handler)?e.handler.bind(n):t[e.handler];V(i)&&sn(r,i,e)}}function Is(e){const t=e.type,{mixins:n,extends:s}=t,{mixins:r,optionsCache:i,config:{optionMergeStrategies:o}}=e.appContext,l=i.get(t);let c;return l?c=l:!r.length&&!n&&!s?c=t:(c={},r.length&&r.forEach(a=>un(c,a,o,!0)),un(c,t,o)),X(t)&&i.set(t,c),c}function un(e,t,n,s=!1){const{mixins:r,extends:i}=t;i&&un(e,i,n,!0),r&&r.forEach(o=>un(e,o,n,!0));for(const o in t)if(!(s&&o==="expose")){const l=pl[o]||n&&n[o];e[o]=l?l(e[o],t[o]):t[o]}return e}const pl={data:tr,props:nr,emits:nr,methods:Ft,computed:Ft,beforeCreate:he,created:he,beforeMount:he,mounted:he,beforeUpdate:he,updated:he,beforeDestroy:he,beforeUnmount:he,destroyed:he,unmounted:he,activated:he,deactivated:he,errorCaptured:he,serverPrefetch:he,components:Ft,directives:Ft,watch:ml,provide:tr,inject:gl};function tr(e,t){return t?e?function(){return re(V(e)?e.call(this,this):e,V(t)?t.call(this,this):t)}:t:e}function gl(e,t){return Ft(Jn(e),Jn(t))}function Jn(e){if(L(e)){const t={};for(let n=0;n<e.length;n++)t[e[n]]=e[n];return t}return e}function he(e,t){return e?[...new Set([].concat(e,t))]:t}function Ft(e,t){return e?re(Object.create(null),e,t):t}function nr(e,t){return e?L(e)&&L(t)?[...new Set([...e,...t])]:re(Object.create(null),fn(e),fn(t??{})):t}function ml(e,t){if(!e)return t;if(!t)return e;const n=re(Object.create(null),e);for(const s in t)n[s]=he(e[s],t[s]);return n}function hi(){return{app:null,config:{isNativeTag:Qi,performance:!1,globalProperties:{},optionMergeStrategies:{},errorHandler:void 0,warnHandler:void 0,compilerOptions:{}},mixins:[],components:{},directives:{},provides:Object.create(null),optionsCache:new WeakMap,propsCache:new WeakMap,emitsCache:new WeakMap}}let _l=0;function yl(e,t){return function(s,r=null){V(s)||(s=re({},s)),r!=null&&!X(r)&&(r=null);const i=hi(),o=new WeakSet;let l=!1;const c=i.app={_uid:_l++,_component:s,_props:r,_container:null,_context:i,_instance:null,version:uc,get config(){return i.config},set config(a){},use(a,...d){return o.has(a)||(a&&V(a.install)?(o.add(a),a.install(c,...d)):V(a)&&(o.add(a),a(c,...d))),c},mixin(a){return i.mixins.includes(a)||i.mixins.push(a),c},component(a,d){return d?(i.components[a]=d,c):i.components[a]},directive(a,d){return d?(i.directives[a]=d,c):i.directives[a]},mount(a,d,h){if(!l){const p=ue(s,r);return p.appContext=i,h===!0?h="svg":h===!1&&(h=void 0),d&&t?t(p,a):e(p,a,h),l=!0,c._container=a,a.__vue_app__=c,Mn(p.component)}},unmount(){l&&(e(null,c._container),delete c._container.__vue_app__)},provide(a,d){return i.provides[a]=d,c},runWithContext(a){const d=rt;rt=c;try{return a()}finally{rt=d}}};return c}}let rt=null;function bl(e,t){if(ce){let n=ce.provides;const s=ce.parent&&ce.parent.provides;s===n&&(n=ce.provides=Object.create(s)),n[e]=t}}function nn(e,t,n=!1){const s=ce||ie;if(s||rt){const r=rt?rt._context.provides:s?s.parent==null?s.vnode.appContext&&s.vnode.appContext.provides:s.parent.provides:void 0;if(r&&e in r)return r[e];if(arguments.length>1)return n&&V(t)?t.call(s&&s.proxy):t}}function uf(){return!!(ce||ie||rt)}const pi={},gi=()=>Object.create(pi),mi=e=>Object.getPrototypeOf(e)===pi;function Cl(e,t,n,s=!1){const r={},i=gi();e.propsDefaults=Object.create(null),_i(e,t,r,i);for(const o in e.propsOptions[0])o in r||(r[o]=void 0);n?e.props=s?r:$o(r):e.type.props?e.props=r:e.props=i,e.attrs=i}function vl(e,t,n,s){const{props:r,attrs:i,vnode:{patchFlag:o}}=e,l=q(r),[c]=e.propsOptions;let a=!1;if((s||o>0)&&!(o&16)){if(o&8){const d=e.vnode.dynamicProps;for(let h=0;h<d.length;h++){let p=d[h];if(An(e.emitsOptions,p))continue;const C=t[p];if(c)if(G(i,p))C!==i[p]&&(i[p]=C,a=!0);else{const w=Te(p);r[w]=zn(c,l,w,C,e,!1)}else C!==i[p]&&(i[p]=C,a=!0)}}}else{_i(e,t,r,i)&&(a=!0);let d;for(const h in l)(!t||!G(t,h)&&((d=$e(h))===h||!G(t,d)))&&(c?n&&(n[h]!==void 0||n[d]!==void 0)&&(r[h]=zn(c,l,h,void 0,e,!0)):delete r[h]);if(i!==l)for(const h in i)(!t||!G(t,h))&&(delete i[h],a=!0)}a&&Ne(e.attrs,"set","")}function _i(e,t,n,s){const[r,i]=e.propsOptions;let o=!1,l;if(t)for(let c in t){if(Mt(c))continue;const a=t[c];let d;r&&G(r,d=Te(c))?!i||!i.includes(d)?n[d]=a:(l||(l={}))[d]=a:An(e.emitsOptions,c)||(!(c in s)||a!==s[c])&&(s[c]=a,o=!0)}if(i){const c=q(n),a=l||Y;for(let d=0;d<i.length;d++){const h=i[d];n[h]=zn(r,c,h,a[h],e,!G(a,h))}}return o}function zn(e,t,n,s,r,i){const o=e[n];if(o!=null){const l=G(o,"default");if(l&&s===void 0){const c=o.default;if(o.type!==Function&&!o.skipFactory&&V(c)){const{propsDefaults:a}=r;if(n in a)s=a[n];else{const d=lt(r);s=a[n]=c.call(null,t),d()}}else s=c}o[0]&&(i&&!l?s=!1:o[1]&&(s===""||s===$e(n))&&(s=!0))}return s}const xl=new WeakMap;function yi(e,t,n=!1){const s=n?xl:t.propsCache,r=s.get(e);if(r)return r;const i=e.props,o={},l=[];let c=!1;if(!V(e)){const d=h=>{c=!0;const[p,C]=yi(h,t,!0);re(o,p),C&&l.push(...C)};!n&&t.mixins.length&&t.mixins.forEach(d),e.extends&&d(e.extends),e.mixins&&e.mixins.forEach(d)}if(!i&&!c)return X(e)&&s.set(e,ft),ft;if(L(i))for(let d=0;d<i.length;d++){const h=Te(i[d]);sr(h)&&(o[h]=Y)}else if(i)for(const d in i){const h=Te(d);if(sr(h)){const p=i[d],C=o[h]=L(p)||V(p)?{type:p}:re({},p),w=C.type;let O=!1,W=!0;if(L(w))for(let K=0;K<w.length;++K){const T=w[K],S=V(T)&&T.name;if(S==="Boolean"){O=!0;break}else S==="String"&&(W=!1)}else O=V(w)&&w.name==="Boolean";C[0]=O,C[1]=W,(O||G(C,"default"))&&l.push(h)}}const a=[o,l];return X(e)&&s.set(e,a),a}function sr(e){return e[0]!=="$"&&!Mt(e)}const bi=e=>e[0]==="_"||e==="$stable",Fs=e=>L(e)?e.map(Ae):[Ae(e)],El=(e,t,n)=>{if(t._n)return t;const s=Zo((...r)=>Fs(t(...r)),n);return s._c=!1,s},Ci=(e,t,n)=>{const s=e._ctx;for(const r in e){if(bi(r))continue;const i=e[r];if(V(i))t[r]=El(r,i,s);else if(i!=null){const o=Fs(i);t[r]=()=>o}}},vi=(e,t)=>{const n=Fs(t);e.slots.default=()=>n},xi=(e,t,n)=>{for(const s in t)(n||s!=="_")&&(e[s]=t[s])},wl=(e,t,n)=>{const s=e.slots=gi();if(e.vnode.shapeFlag&32){const r=t._;r?(xi(s,t,n),n&&Ir(s,"_",r,!0)):Ci(t,s)}else t&&vi(e,t)},Tl=(e,t,n)=>{const{vnode:s,slots:r}=e;let i=!0,o=Y;if(s.shapeFlag&32){const l=t._;l?n&&l===1?i=!1:xi(r,t,n):(i=!t.$stable,Ci(t,r)),o=t}else t&&(vi(e,t),o={default:1});if(i)for(const l in r)!bi(l)&&o[l]==null&&delete r[l]};function Yn(e,t,n,s,r=!1){if(L(e)){e.forEach((p,C)=>Yn(p,t&&(L(t)?t[C]:t),n,s,r));return}if(ht(s)&&!r)return;const i=s.shapeFlag&4?Mn(s.component):s.el,o=r?null:i,{i:l,r:c}=e,a=t&&t.r,d=l.refs===Y?l.refs={}:l.refs,h=l.setupState;if(a!=null&&a!==c&&(ne(a)?(d[a]=null,G(h,a)&&(h[a]=null)):de(a)&&(a.value=null)),V(c))qe(c,l,12,[o,d]);else{const p=ne(c),C=de(c);if(p||C){const w=()=>{if(e.f){const O=p?G(h,c)?h[c]:d[c]:c.value;r?L(O)&&cs(O,i):L(O)?O.includes(i)||O.push(i):p?(d[c]=[i],G(h,c)&&(h[c]=d[c])):(c.value=[i],e.k&&(d[e.k]=c.value))}else p?(d[c]=o,G(h,c)&&(h[c]=o)):C&&(c.value=o,e.k&&(d[e.k]=o))};o?(w.id=-1,le(w,n)):w()}}}const Ei=Symbol("_vte"),Sl=e=>e.__isTeleport,Lt=e=>e&&(e.disabled||e.disabled===""),rr=e=>typeof SVGElement<"u"&&e instanceof SVGElement,ir=e=>typeof MathMLElement=="function"&&e instanceof MathMLElement,Xn=(e,t)=>{const n=e&&e.to;return ne(n)?t?t(n):null:n},Al={name:"Teleport",__isTeleport:!0,process(e,t,n,s,r,i,o,l,c,a){const{mc:d,pc:h,pbc:p,o:{insert:C,querySelector:w,createText:O,createComment:W}}=a,K=Lt(t.props);let{shapeFlag:T,children:S,dynamicChildren:R}=t;if(e==null){const I=t.el=O(""),v=t.anchor=O("");C(I,n,s),C(v,n,s);const H=t.target=Xn(t.props,w),k=Ti(H,t,O,C);H&&(o==="svg"||rr(H)?o="svg":(o==="mathml"||ir(H))&&(o="mathml"));const P=($,D)=>{T&16&&d(S,$,D,r,i,o,l,c)};K?P(n,v):H&&P(H,k)}else{t.el=e.el,t.targetStart=e.targetStart;const I=t.anchor=e.anchor,v=t.target=e.target,H=t.targetAnchor=e.targetAnchor,k=Lt(e.props),P=k?n:v,$=k?I:H;if(o==="svg"||rr(v)?o="svg":(o==="mathml"||ir(v))&&(o="mathml"),R?(p(e.dynamicChildren,R,P,r,i,o,l),Ms(e,t,!0)):c||h(e,t,P,$,r,i,o,l,!1),K)k?t.props&&e.props&&t.props.to!==e.props.to&&(t.props.to=e.props.to):Qt(t,n,I,a,1);else if((t.props&&t.props.to)!==(e.props&&e.props.to)){const D=t.target=Xn(t.props,w);D&&Qt(t,D,null,a,0)}else k&&Qt(t,v,H,a,1)}wi(t)},remove(e,t,n,{um:s,o:{remove:r}},i){const{shapeFlag:o,children:l,anchor:c,targetStart:a,targetAnchor:d,target:h,props:p}=e;if(h&&(r(a),r(d)),i&&r(c),o&16){const C=i||!Lt(p);for(let w=0;w<l.length;w++){const O=l[w];s(O,t,n,C,!!O.dynamicChildren)}}},move:Qt,hydrate:Il};function Qt(e,t,n,{o:{insert:s},m:r},i=2){i===0&&s(e.targetAnchor,t,n);const{el:o,anchor:l,shapeFlag:c,children:a,props:d}=e,h=i===2;if(h&&s(o,t,n),(!h||Lt(d))&&c&16)for(let p=0;p<a.length;p++)r(a[p],t,n,2);h&&s(l,t,n)}function Il(e,t,n,s,r,i,{o:{nextSibling:o,parentNode:l,querySelector:c,insert:a,createText:d}},h){const p=t.target=Xn(t.props,c);if(p){const C=p._lpa||p.firstChild;if(t.shapeFlag&16)if(Lt(t.props))t.anchor=h(o(e),t,l(e),n,s,r,i),t.targetStart=C,t.targetAnchor=C&&o(C);else{t.anchor=o(e);let w=C;for(;w;){if(w&&w.nodeType===8){if(w.data==="teleport start anchor")t.targetStart=w;else if(w.data==="teleport anchor"){t.targetAnchor=w,p._lpa=t.targetAnchor&&o(t.targetAnchor);break}}w=o(w)}t.targetAnchor||Ti(p,t,d,a),h(C&&o(C),t,p,n,s,r,i)}wi(t)}return t.anchor&&o(t.anchor)}const af=Al;function wi(e){const t=e.ctx;if(t&&t.ut){let n=e.children[0].el;for(;n&&n!==e.targetAnchor;)n.nodeType===1&&n.setAttribute("data-v-owner",t.uid),n=n.nextSibling;t.ut()}}function Ti(e,t,n,s){const r=t.targetStart=n(""),i=t.targetAnchor=n("");return r[Ei]=i,e&&(s(r,e),s(i,e)),i}const le=Jl;function Fl(e){return Ml(e)}function Ml(e,t){const n=Mr();n.__VUE__=!0;const{insert:s,remove:r,patchProp:i,createElement:o,createText:l,createComment:c,setText:a,setElementText:d,parentNode:h,nextSibling:p,setScopeId:C=Ee,insertStaticContent:w}=e,O=(f,u,g,y=null,m=null,b=null,A=void 0,x=null,E=!!u.dynamicChildren)=>{if(f===u)return;f&&!Ie(f,u)&&(y=Wt(f),Fe(f,m,b,!0),f=null),u.patchFlag===-2&&(E=!1,u.dynamicChildren=null);const{type:_,ref:M,shapeFlag:B}=u;switch(_){case In:W(f,u,g,y);break;case fe:K(f,u,g,y);break;case Nt:f==null&&T(u,g,y,A);break;case ge:F(f,u,g,y,m,b,A,x,E);break;default:B&1?I(f,u,g,y,m,b,A,x,E):B&6?J(f,u,g,y,m,b,A,x,E):(B&64||B&128)&&_.process(f,u,g,y,m,b,A,x,E,wt)}M!=null&&m&&Yn(M,f&&f.ref,b,u||f,!u)},W=(f,u,g,y)=>{if(f==null)s(u.el=l(u.children),g,y);else{const m=u.el=f.el;u.children!==f.children&&a(m,u.children)}},K=(f,u,g,y)=>{f==null?s(u.el=c(u.children||""),g,y):u.el=f.el},T=(f,u,g,y)=>{[f.el,f.anchor]=w(f.children,u,g,y,f.el,f.anchor)},S=({el:f,anchor:u},g,y)=>{let m;for(;f&&f!==u;)m=p(f),s(f,g,y),f=m;s(u,g,y)},R=({el:f,anchor:u})=>{let g;for(;f&&f!==u;)g=p(f),r(f),f=g;r(u)},I=(f,u,g,y,m,b,A,x,E)=>{u.type==="svg"?A="svg":u.type==="math"&&(A="mathml"),f==null?v(u,g,y,m,b,A,x,E):P(f,u,m,b,A,x,E)},v=(f,u,g,y,m,b,A,x)=>{let E,_;const{props:M,shapeFlag:B,transition:N,dirs:j}=f;if(E=f.el=o(f.type,b,M&&M.is,M),B&8?d(E,f.children):B&16&&k(f.children,E,null,y,m,Bn(f,b),A,x),j&&Ze(f,null,y,"created"),H(E,f,f.scopeId,A,y),M){for(const ee in M)ee!=="value"&&!Mt(ee)&&i(E,ee,null,M[ee],b,y);"value"in M&&i(E,"value",null,M.value,b),(_=M.onVnodeBeforeMount)&&xe(_,y,f)}j&&Ze(f,null,y,"beforeMount");const U=Ol(m,N);U&&N.beforeEnter(E),s(E,u,g),((_=M&&M.onVnodeMounted)||U||j)&&le(()=>{_&&xe(_,y,f),U&&N.enter(E),j&&Ze(f,null,y,"mounted")},m)},H=(f,u,g,y,m)=>{if(g&&C(f,g),y)for(let b=0;b<y.length;b++)C(f,y[b]);if(m){let b=m.subTree;if(u===b){const A=m.vnode;H(f,A,A.scopeId,A.slotScopeIds,m.parent)}}},k=(f,u,g,y,m,b,A,x,E=0)=>{for(let _=E;_<f.length;_++){const M=f[_]=x?Ue(f[_]):Ae(f[_]);O(null,M,u,g,y,m,b,A,x)}},P=(f,u,g,y,m,b,A)=>{const x=u.el=f.el;let{patchFlag:E,dynamicChildren:_,dirs:M}=u;E|=f.patchFlag&16;const B=f.props||Y,N=u.props||Y;let j;if(g&&Qe(g,!1),(j=N.onVnodeBeforeUpdate)&&xe(j,g,u,f),M&&Ze(u,f,g,"beforeUpdate"),g&&Qe(g,!0),(B.innerHTML&&N.innerHTML==null||B.textContent&&N.textContent==null)&&d(x,""),_?$(f.dynamicChildren,_,x,g,y,Bn(u,m),b):A||Q(f,u,x,null,g,y,Bn(u,m),b,!1),E>0){if(E&16)D(x,B,N,g,m);else if(E&2&&B.class!==N.class&&i(x,"class",null,N.class,m),E&4&&i(x,"style",B.style,N.style,m),E&8){const U=u.dynamicProps;for(let ee=0;ee<U.length;ee++){const z=U[ee],oe=B[z],Se=N[z];(Se!==oe||z==="value")&&i(x,z,oe,Se,m,g)}}E&1&&f.children!==u.children&&d(x,u.children)}else!A&&_==null&&D(x,B,N,g,m);((j=N.onVnodeUpdated)||M)&&le(()=>{j&&xe(j,g,u,f),M&&Ze(u,f,g,"updated")},y)},$=(f,u,g,y,m,b,A)=>{for(let x=0;x<u.length;x++){const E=f[x],_=u[x],M=E.el&&(E.type===ge||!Ie(E,_)||E.shapeFlag&70)?h(E.el):g;O(E,_,M,null,y,m,b,A,!0)}},D=(f,u,g,y,m)=>{if(u!==g){if(u!==Y)for(const b in u)!Mt(b)&&!(b in g)&&i(f,b,u[b],null,m,y);for(const b in g){if(Mt(b))continue;const A=g[b],x=u[b];A!==x&&b!=="value"&&i(f,b,x,A,m,y)}"value"in g&&i(f,"value",u.value,g.value,m)}},F=(f,u,g,y,m,b,A,x,E)=>{const _=u.el=f?f.el:l(""),M=u.anchor=f?f.anchor:l("");let{patchFlag:B,dynamicChildren:N,slotScopeIds:j}=u;j&&(x=x?x.concat(j):j),f==null?(s(_,g,y),s(M,g,y),k(u.children||[],g,M,m,b,A,x,E)):B>0&&B&64&&N&&f.dynamicChildren?($(f.dynamicChildren,N,g,m,b,A,x),(u.key!=null||m&&u===m.subTree)&&Ms(f,u,!0)):Q(f,u,g,M,m,b,A,x,E)},J=(f,u,g,y,m,b,A,x,E)=>{u.slotScopeIds=x,f==null?u.shapeFlag&512?m.ctx.activate(u,g,y,A,E):se(u,g,y,m,b,A,E):Ce(f,u,E)},se=(f,u,g,y,m,b,A)=>{const x=f.component=nc(f,y,m);if(wn(f)&&(x.ctx.renderer=wt),sc(x,!1,A),x.asyncDep){if(m&&m.registerDep(x,te,A),!f.el){const E=x.subTree=ue(fe);K(null,E,u,g)}}else te(x,f,u,g,m,b,A)},Ce=(f,u,g)=>{const y=u.component=f.component;if(Kl(f,u,g))if(y.asyncDep&&!y.asyncResolved){Z(y,u,g);return}else y.next=u,Yo(y.update),y.effect.dirty=!0,y.update();else u.el=f.el,y.vnode=u},te=(f,u,g,y,m,b,A)=>{const x=()=>{if(f.isMounted){let{next:M,bu:B,u:N,parent:j,vnode:U}=f;{const ct=Si(f);if(ct){M&&(M.el=U.el,Z(f,M,A)),ct.asyncDep.then(()=>{f.isUnmounted||x()});return}}let ee=M,z;Qe(f,!1),M?(M.el=U.el,Z(f,M,A)):M=U,B&&at(B),(z=M.props&&M.props.onVnodeBeforeUpdate)&&xe(z,j,M,U),Qe(f,!0);const oe=$n(f),Se=f.subTree;f.subTree=oe,O(Se,oe,h(Se.el),Wt(Se),f,m,b),M.el=oe.el,ee===null&&Os(f,oe.el),N&&le(N,m),(z=M.props&&M.props.onVnodeUpdated)&&le(()=>xe(z,j,M,U),m)}else{let M;const{el:B,props:N}=u,{bm:j,m:U,parent:ee}=f,z=ht(u);if(Qe(f,!1),j&&at(j),!z&&(M=N&&N.onVnodeBeforeMount)&&xe(M,ee,u),Qe(f,!0),B&&Vs){const oe=()=>{f.subTree=$n(f),Vs(B,f.subTree,f,m,null)};z?u.type.__asyncLoader().then(()=>!f.isUnmounted&&oe()):oe()}else{const oe=f.subTree=$n(f);O(null,oe,g,y,f,m,b),u.el=oe.el}if(U&&le(U,m),!z&&(M=N&&N.onVnodeMounted)){const oe=u;le(()=>xe(M,ee,oe),m)}(u.shapeFlag&256||ee&&ht(ee.vnode)&&ee.vnode.shapeFlag&256)&&f.a&&le(f.a,m),f.isMounted=!0,u=g=y=null}},E=f.effect=new as(x,Ee,()=>vs(_),f.scope),_=f.update=()=>{E.dirty&&E.run()};_.i=f,_.id=f.uid,Qe(f,!0),_()},Z=(f,u,g)=>{u.component=f;const y=f.vnode.props;f.vnode=u,f.next=null,vl(f,u.props,y,g),Tl(f,u.children,g),Je(),Xs(f),ze()},Q=(f,u,g,y,m,b,A,x,E=!1)=>{const _=f&&f.children,M=f?f.shapeFlag:0,B=u.children,{patchFlag:N,shapeFlag:j}=u;if(N>0){if(N&128){Ut(_,B,g,y,m,b,A,x,E);return}else if(N&256){Ye(_,B,g,y,m,b,A,x,E);return}}j&8?(M&16&&Et(_,m,b),B!==_&&d(g,B)):M&16?j&16?Ut(_,B,g,y,m,b,A,x,E):Et(_,m,b,!0):(M&8&&d(g,""),j&16&&k(B,g,y,m,b,A,x,E))},Ye=(f,u,g,y,m,b,A,x,E)=>{f=f||ft,u=u||ft;const _=f.length,M=u.length,B=Math.min(_,M);let N;for(N=0;N<B;N++){const j=u[N]=E?Ue(u[N]):Ae(u[N]);O(f[N],j,g,null,m,b,A,x,E)}_>M?Et(f,m,b,!0,!1,B):k(u,g,y,m,b,A,x,E,B)},Ut=(f,u,g,y,m,b,A,x,E)=>{let _=0;const M=u.length;let B=f.length-1,N=M-1;for(;_<=B&&_<=N;){const j=f[_],U=u[_]=E?Ue(u[_]):Ae(u[_]);if(Ie(j,U))O(j,U,g,null,m,b,A,x,E);else break;_++}for(;_<=B&&_<=N;){const j=f[B],U=u[N]=E?Ue(u[N]):Ae(u[N]);if(Ie(j,U))O(j,U,g,null,m,b,A,x,E);else break;B--,N--}if(_>B){if(_<=N){const j=N+1,U=j<M?u[j].el:y;for(;_<=N;)O(null,u[_]=E?Ue(u[_]):Ae(u[_]),g,U,m,b,A,x,E),_++}}else if(_>N)for(;_<=B;)Fe(f[_],m,b,!0),_++;else{const j=_,U=_,ee=new Map;for(_=U;_<=N;_++){const ye=u[_]=E?Ue(u[_]):Ae(u[_]);ye.key!=null&&ee.set(ye.key,_)}let z,oe=0;const Se=N-U+1;let ct=!1,Hs=0;const Tt=new Array(Se);for(_=0;_<Se;_++)Tt[_]=0;for(_=j;_<=B;_++){const ye=f[_];if(oe>=Se){Fe(ye,m,b,!0);continue}let Me;if(ye.key!=null)Me=ee.get(ye.key);else for(z=U;z<=N;z++)if(Tt[z-U]===0&&Ie(ye,u[z])){Me=z;break}Me===void 0?Fe(ye,m,b,!0):(Tt[Me-U]=_+1,Me>=Hs?Hs=Me:ct=!0,O(ye,u[Me],g,null,m,b,A,x,E),oe++)}const js=ct?Rl(Tt):ft;for(z=js.length-1,_=Se-1;_>=0;_--){const ye=U+_,Me=u[ye],Ds=ye+1<M?u[ye+1].el:y;Tt[_]===0?O(null,Me,g,Ds,m,b,A,x,E):ct&&(z<0||_!==js[z]?Xe(Me,g,Ds,2):z--)}}},Xe=(f,u,g,y,m=null)=>{const{el:b,type:A,transition:x,children:E,shapeFlag:_}=f;if(_&6){Xe(f.component.subTree,u,g,y);return}if(_&128){f.suspense.move(u,g,y);return}if(_&64){A.move(f,u,g,wt);return}if(A===ge){s(b,u,g);for(let B=0;B<E.length;B++)Xe(E[B],u,g,y);s(f.anchor,u,g);return}if(A===Nt){S(f,u,g);return}if(y!==2&&_&1&&x)if(y===0)x.beforeEnter(b),s(b,u,g),le(()=>x.enter(b),m);else{const{leave:B,delayLeave:N,afterLeave:j}=x,U=()=>s(b,u,g),ee=()=>{B(b,()=>{U(),j&&j()})};N?N(b,U,ee):ee()}else s(b,u,g)},Fe=(f,u,g,y=!1,m=!1)=>{const{type:b,props:A,ref:x,children:E,dynamicChildren:_,shapeFlag:M,patchFlag:B,dirs:N,cacheIndex:j}=f;if(B===-2&&(m=!1),x!=null&&Yn(x,null,g,f,!0),j!=null&&(u.renderCache[j]=void 0),M&256){u.ctx.deactivate(f);return}const U=M&1&&N,ee=!ht(f);let z;if(ee&&(z=A&&A.onVnodeBeforeUnmount)&&xe(z,u,f),M&6)Zi(f.component,g,y);else{if(M&128){f.suspense.unmount(g,y);return}U&&Ze(f,null,u,"beforeUnmount"),M&64?f.type.remove(f,u,g,wt,y):_&&!_.hasOnce&&(b!==ge||B>0&&B&64)?Et(_,u,g,!1,!0):(b===ge&&B&384||!m&&M&16)&&Et(E,u,g),y&&Ns(f)}(ee&&(z=A&&A.onVnodeUnmounted)||U)&&le(()=>{z&&xe(z,u,f),U&&Ze(f,null,u,"unmounted")},g)},Ns=f=>{const{type:u,el:g,anchor:y,transition:m}=f;if(u===ge){Xi(g,y);return}if(u===Nt){R(f);return}const b=()=>{r(g),m&&!m.persisted&&m.afterLeave&&m.afterLeave()};if(f.shapeFlag&1&&m&&!m.persisted){const{leave:A,delayLeave:x}=m,E=()=>A(g,b);x?x(f.el,b,E):E()}else b()},Xi=(f,u)=>{let g;for(;f!==u;)g=p(f),r(f),f=g;r(u)},Zi=(f,u,g)=>{const{bum:y,scope:m,update:b,subTree:A,um:x,m:E,a:_}=f;an(E),an(_),y&&at(y),m.stop(),b&&(b.active=!1,Fe(A,f,u,g)),x&&le(x,u),le(()=>{f.isUnmounted=!0},u),u&&u.pendingBranch&&!u.isUnmounted&&f.asyncDep&&!f.asyncResolved&&f.suspenseId===u.pendingId&&(u.deps--,u.deps===0&&u.resolve())},Et=(f,u,g,y=!1,m=!1,b=0)=>{for(let A=b;A<f.length;A++)Fe(f[A],u,g,y,m)},Wt=f=>{if(f.shapeFlag&6)return Wt(f.component.subTree);if(f.shapeFlag&128)return f.suspense.next();const u=p(f.anchor||f.el),g=u&&u[Ei];return g?p(g):u};let On=!1;const Bs=(f,u,g)=>{f==null?u._vnode&&Fe(u._vnode,null,null,!0):O(u._vnode||null,f,u,null,null,null,g),u._vnode=f,On||(On=!0,Xs(),ni(),On=!1)},wt={p:O,um:Fe,m:Xe,r:Ns,mt:se,mc:k,pc:Q,pbc:$,n:Wt,o:e};let $s,Vs;return{render:Bs,hydrate:$s,createApp:yl(Bs,$s)}}function Bn({type:e,props:t},n){return n==="svg"&&e==="foreignObject"||n==="mathml"&&e==="annotation-xml"&&t&&t.encoding&&t.encoding.includes("html")?void 0:n}function Qe({effect:e,update:t},n){e.allowRecurse=t.allowRecurse=n}function Ol(e,t){return(!e||e&&!e.pendingBranch)&&t&&!t.persisted}function Ms(e,t,n=!1){const s=e.children,r=t.children;if(L(s)&&L(r))for(let i=0;i<s.length;i++){const o=s[i];let l=r[i];l.shapeFlag&1&&!l.dynamicChildren&&((l.patchFlag<=0||l.patchFlag===32)&&(l=r[i]=Ue(r[i]),l.el=o.el),!n&&l.patchFlag!==-2&&Ms(o,l)),l.type===In&&(l.el=o.el)}}function Rl(e){const t=e.slice(),n=[0];let s,r,i,o,l;const c=e.length;for(s=0;s<c;s++){const a=e[s];if(a!==0){if(r=n[n.length-1],e[r]<a){t[s]=r,n.push(s);continue}for(i=0,o=n.length-1;i<o;)l=i+o>>1,e[n[l]]<a?i=l+1:o=l;a<e[n[i]]&&(i>0&&(t[s]=n[i-1]),n[i]=s)}}for(i=n.length,o=n[i-1];i-- >0;)n[i]=o,o=t[o];return n}function Si(e){const t=e.subTree.component;if(t)return t.asyncDep&&!t.asyncResolved?t:Si(t)}function an(e){if(e)for(let t=0;t<e.length;t++)e[t].active=!1}const Pl=Symbol.for("v-scx"),Ll=()=>nn(Pl);function df(e,t){return kt(e,null,t)}function Nl(e,t){return kt(e,null,{flush:"post"})}function Bl(e,t){return kt(e,null,{flush:"sync"})}const en={};function sn(e,t,n){return kt(e,t,n)}function kt(e,t,{immediate:n,deep:s,flush:r,once:i,onTrack:o,onTrigger:l}=Y){if(t&&i){const v=t;t=(...H)=>{v(...H),I()}}const c=ce,a=v=>s===!0?v:We(v,s===!1?1:void 0);let d,h=!1,p=!1;if(de(e)?(d=()=>e.value,h=_t(e)):Ot(e)?(d=()=>a(e),h=!0):L(e)?(p=!0,h=e.some(v=>Ot(v)||_t(v)),d=()=>e.map(v=>{if(de(v))return v.value;if(Ot(v))return a(v);if(V(v))return qe(v,c,2)})):V(e)?t?d=()=>qe(e,c,2):d=()=>(C&&C(),we(e,c,3,[w])):d=Ee,t&&s){const v=d;d=()=>We(v())}let C,w=v=>{C=S.onStop=()=>{qe(v,c,4),C=S.onStop=void 0}},O;if(Fn)if(w=Ee,t?n&&we(t,c,3,[d(),p?[]:void 0,w]):d(),r==="sync"){const v=Ll();O=v.__watcherHandles||(v.__watcherHandles=[])}else return Ee;let W=p?new Array(e.length).fill(en):en;const K=()=>{if(!(!S.active||!S.dirty))if(t){const v=S.run();(s||h||(p?v.some((H,k)=>pe(H,W[k])):pe(v,W)))&&(C&&C(),we(t,c,3,[v,W===en?void 0:p&&W[0]===en?[]:W,w]),W=v)}else S.run()};K.allowRecurse=!!t;let T;r==="sync"?T=K:r==="post"?T=()=>le(K,c&&c.suspense):(K.pre=!0,c&&(K.id=c.uid),T=()=>vs(K));const S=new as(d,Ee,T),R=mo(),I=()=>{S.stop(),R&&cs(R.effects,S)};return t?n?K():W=S.run():r==="post"?le(S.run.bind(S),c&&c.suspense):S.run(),O&&O.push(I),I}function $l(e,t,n){const s=this.proxy,r=ne(e)?e.includes(".")?Ai(s,e):()=>s[e]:e.bind(s,s);let i;V(t)?i=t:(i=t.handler,n=t);const o=lt(this),l=kt(r,i.bind(s),n);return o(),l}function Ai(e,t){const n=t.split(".");return()=>{let s=e;for(let r=0;r<n.length&&s;r++)s=s[n[r]];return s}}function We(e,t=1/0,n){if(t<=0||!X(e)||e.__v_skip||(n=n||new Set,n.has(e)))return e;if(n.add(e),t--,de(e))We(e.value,t,n);else if(L(e))for(let s=0;s<e.length;s++)We(e[s],t,n);else if(_n(e)||ut(e))e.forEach(s=>{We(s,t,n)});else if(Ar(e)){for(const s in e)We(e[s],t,n);for(const s of Object.getOwnPropertySymbols(e))Object.prototype.propertyIsEnumerable.call(e,s)&&We(e[s],t,n)}return e}function hf(e,t,n=Y){const s=xt(),r=Te(t),i=$e(t),o=Ii(e,t),l=Uo((c,a)=>{let d,h=Y,p;return Bl(()=>{const C=e[t];pe(d,C)&&(d=C,a())}),{get(){return c(),n.get?n.get(d):d},set(C){const w=n.set?n.set(C):C;if(!pe(w,d)&&!(h!==Y&&pe(C,h)))return;const O=s.vnode.props;O&&(t in O||r in O||i in O)&&(`onUpdate:${t}`in O||`onUpdate:${r}`in O||`onUpdate:${i}`in O)||(d=C,a()),s.emit(`update:${t}`,w),pe(C,w)&&pe(C,h)&&!pe(w,p)&&a(),h=C,p=w}}});return l[Symbol.iterator]=()=>{let c=0;return{next(){return c<2?{value:c++?o||Y:l,done:!1}:{done:!0}}}},l}const Ii=(e,t)=>t==="modelValue"||t==="model-value"?e.modelModifiers:e[`${t}Modifiers`]||e[`${Te(t)}Modifiers`]||e[`${$e(t)}Modifiers`];function Vl(e,t,...n){if(e.isUnmounted)return;const s=e.vnode.props||Y;let r=n;const i=t.startsWith("update:"),o=i&&Ii(s,t.slice(7));o&&(o.trim&&(r=n.map(d=>ne(d)?d.trim():d)),o.number&&(r=n.map(io)));let l,c=s[l=tn(t)]||s[l=tn(Te(t))];!c&&i&&(c=s[l=tn($e(t))]),c&&we(c,e,6,r);const a=s[l+"Once"];if(a){if(!e.emitted)e.emitted={};else if(e.emitted[l])return;e.emitted[l]=!0,we(a,e,6,r)}}function Fi(e,t,n=!1){const s=t.emitsCache,r=s.get(e);if(r!==void 0)return r;const i=e.emits;let o={},l=!1;if(!V(e)){const c=a=>{const d=Fi(a,t,!0);d&&(l=!0,re(o,d))};!n&&t.mixins.length&&t.mixins.forEach(c),e.extends&&c(e.extends),e.mixins&&e.mixins.forEach(c)}return!i&&!l?(X(e)&&s.set(e,null),null):(L(i)?i.forEach(c=>o[c]=null):re(o,i),X(e)&&s.set(e,o),o)}function An(e,t){return!e||!mn(t)?!1:(t=t.slice(2).replace(/Once$/,""),G(e,t[0].toLowerCase()+t.slice(1))||G(e,$e(t))||G(e,t))}function $n(e){const{type:t,vnode:n,proxy:s,withProxy:r,propsOptions:[i],slots:o,attrs:l,emit:c,render:a,renderCache:d,props:h,data:p,setupState:C,ctx:w,inheritAttrs:O}=e,W=cn(e);let K,T;try{if(n.shapeFlag&4){const R=r||s,I=R;K=Ae(a.call(I,R,d,h,C,p,w)),T=l}else{const R=t;K=Ae(R.length>1?R(h,{attrs:l,slots:o,emit:c}):R(h,null)),T=t.props?l:jl(l)}}catch(R){Bt.length=0,Kt(R,e,1),K=ue(fe)}let S=K;if(T&&O!==!1){const R=Object.keys(T),{shapeFlag:I}=S;R.length&&I&7&&(i&&R.some(ls)&&(T=Dl(T,i)),S=Be(S,T,!1,!0))}return n.dirs&&(S=Be(S,null,!1,!0),S.dirs=S.dirs?S.dirs.concat(n.dirs):n.dirs),n.transition&&(S.transition=n.transition),K=S,cn(W),K}function Hl(e,t=!0){let n;for(let s=0;s<e.length;s++){const r=e[s];if(bt(r)){if(r.type!==fe||r.children==="v-if"){if(n)return;n=r}}else return}return n}const jl=e=>{let t;for(const n in e)(n==="class"||n==="style"||mn(n))&&((t||(t={}))[n]=e[n]);return t},Dl=(e,t)=>{const n={};for(const s in e)(!ls(s)||!(s.slice(9)in t))&&(n[s]=e[s]);return n};function Kl(e,t,n){const{props:s,children:r,component:i}=e,{props:o,children:l,patchFlag:c}=t,a=i.emitsOptions;if(t.dirs||t.transition)return!0;if(n&&c>=0){if(c&1024)return!0;if(c&16)return s?or(s,o,a):!!o;if(c&8){const d=t.dynamicProps;for(let h=0;h<d.length;h++){const p=d[h];if(o[p]!==s[p]&&!An(a,p))return!0}}}else return(r||l)&&(!l||!l.$stable)?!0:s===o?!1:s?o?or(s,o,a):!0:!!o;return!1}function or(e,t,n){const s=Object.keys(t);if(s.length!==Object.keys(e).length)return!0;for(let r=0;r<s.length;r++){const i=s[r];if(t[i]!==e[i]&&!An(n,i))return!0}return!1}function Os({vnode:e,parent:t},n){for(;t;){const s=t.subTree;if(s.suspense&&s.suspense.activeBranch===e&&(s.el=e.el),s===e)(e=t.vnode).el=n,t=t.parent;else break}}const Zn=e=>e.__isSuspense;let Qn=0;const kl={name:"Suspense",__isSuspense:!0,process(e,t,n,s,r,i,o,l,c,a){if(e==null)Ul(t,n,s,r,i,o,l,c,a);else{if(i&&i.deps>0&&!e.suspense.isInFallback){t.suspense=e.suspense,t.suspense.vnode=t,t.el=e.el;return}Wl(e,t,n,s,r,o,l,c,a)}},hydrate:Gl,normalize:ql},pf=kl;function Dt(e,t){const n=e.props&&e.props[t];V(n)&&n()}function Ul(e,t,n,s,r,i,o,l,c){const{p:a,o:{createElement:d}}=c,h=d("div"),p=e.suspense=Mi(e,r,s,t,h,n,i,o,l,c);a(null,p.pendingBranch=e.ssContent,h,null,s,p,i,o),p.deps>0?(Dt(e,"onPending"),Dt(e,"onFallback"),a(null,e.ssFallback,t,n,s,null,i,o),pt(p,e.ssFallback)):p.resolve(!1,!0)}function Wl(e,t,n,s,r,i,o,l,{p:c,um:a,o:{createElement:d}}){const h=t.suspense=e.suspense;h.vnode=t,t.el=e.el;const p=t.ssContent,C=t.ssFallback,{activeBranch:w,pendingBranch:O,isInFallback:W,isHydrating:K}=h;if(O)h.pendingBranch=p,Ie(p,O)?(c(O,p,h.hiddenContainer,null,r,h,i,o,l),h.deps<=0?h.resolve():W&&(K||(c(w,C,n,s,r,null,i,o,l),pt(h,C)))):(h.pendingId=Qn++,K?(h.isHydrating=!1,h.activeBranch=O):a(O,r,h),h.deps=0,h.effects.length=0,h.hiddenContainer=d("div"),W?(c(null,p,h.hiddenContainer,null,r,h,i,o,l),h.deps<=0?h.resolve():(c(w,C,n,s,r,null,i,o,l),pt(h,C))):w&&Ie(p,w)?(c(w,p,n,s,r,h,i,o,l),h.resolve(!0)):(c(null,p,h.hiddenContainer,null,r,h,i,o,l),h.deps<=0&&h.resolve()));else if(w&&Ie(p,w))c(w,p,n,s,r,h,i,o,l),pt(h,p);else if(Dt(t,"onPending"),h.pendingBranch=p,p.shapeFlag&512?h.pendingId=p.component.suspenseId:h.pendingId=Qn++,c(null,p,h.hiddenContainer,null,r,h,i,o,l),h.deps<=0)h.resolve();else{const{timeout:T,pendingId:S}=h;T>0?setTimeout(()=>{h.pendingId===S&&h.fallback(C)},T):T===0&&h.fallback(C)}}function Mi(e,t,n,s,r,i,o,l,c,a,d=!1){const{p:h,m:p,um:C,n:w,o:{parentNode:O,remove:W}}=a;let K;const T=zl(e);T&&t&&t.pendingBranch&&(K=t.pendingId,t.deps++);const S=e.props?Fr(e.props.timeout):void 0,R=i,I={vnode:e,parent:t,parentComponent:n,namespace:o,container:s,hiddenContainer:r,deps:0,pendingId:Qn++,timeout:typeof S=="number"?S:-1,activeBranch:null,pendingBranch:null,isInFallback:!d,isHydrating:d,isUnmounted:!1,effects:[],resolve(v=!1,H=!1){const{vnode:k,activeBranch:P,pendingBranch:$,pendingId:D,effects:F,parentComponent:J,container:se}=I;let Ce=!1;I.isHydrating?I.isHydrating=!1:v||(Ce=P&&$.transition&&$.transition.mode==="out-in",Ce&&(P.transition.afterLeave=()=>{D===I.pendingId&&(p($,se,i===R?w(P):i,0),Wn(F))}),P&&(O(P.el)!==I.hiddenContainer&&(i=w(P)),C(P,J,I,!0)),Ce||p($,se,i,0)),pt(I,$),I.pendingBranch=null,I.isInFallback=!1;let te=I.parent,Z=!1;for(;te;){if(te.pendingBranch){te.effects.push(...F),Z=!0;break}te=te.parent}!Z&&!Ce&&Wn(F),I.effects=[],T&&t&&t.pendingBranch&&K===t.pendingId&&(t.deps--,t.deps===0&&!H&&t.resolve()),Dt(k,"onResolve")},fallback(v){if(!I.pendingBranch)return;const{vnode:H,activeBranch:k,parentComponent:P,container:$,namespace:D}=I;Dt(H,"onFallback");const F=w(k),J=()=>{I.isInFallback&&(h(null,v,$,F,P,null,D,l,c),pt(I,v))},se=v.transition&&v.transition.mode==="out-in";se&&(k.transition.afterLeave=J),I.isInFallback=!0,C(k,P,null,!0),se||J()},move(v,H,k){I.activeBranch&&p(I.activeBranch,v,H,k),I.container=v},next(){return I.activeBranch&&w(I.activeBranch)},registerDep(v,H,k){const P=!!I.pendingBranch;P&&I.deps++;const $=v.vnode.el;v.asyncDep.catch(D=>{Kt(D,v,0)}).then(D=>{if(v.isUnmounted||I.isUnmounted||I.pendingId!==v.suspenseId)return;v.asyncResolved=!0;const{vnode:F}=v;ns(v,D,!1),$&&(F.el=$);const J=!$&&v.subTree.el;H(v,F,O($||v.subTree.el),$?null:w(v.subTree),I,o,k),J&&W(J),Os(v,F.el),P&&--I.deps===0&&I.resolve()})},unmount(v,H){I.isUnmounted=!0,I.activeBranch&&C(I.activeBranch,n,v,H),I.pendingBranch&&C(I.pendingBranch,n,v,H)}};return I}function Gl(e,t,n,s,r,i,o,l,c){const a=t.suspense=Mi(t,s,n,e.parentNode,document.createElement("div"),null,r,i,o,l,!0),d=c(e,a.pendingBranch=t.ssContent,n,a,i,o);return a.deps===0&&a.resolve(!1,!0),d}function ql(e){const{shapeFlag:t,children:n}=e,s=t&32;e.ssContent=lr(s?n.default:n),e.ssFallback=s?lr(n.fallback):ue(fe)}function lr(e){let t;if(V(e)){const n=yt&&e._c;n&&(e._d=!1,Rs()),e=e(),n&&(e._d=!0,t=me,Oi())}return L(e)&&(e=Hl(e)),e=Ae(e),t&&!e.dynamicChildren&&(e.dynamicChildren=t.filter(n=>n!==e)),e}function Jl(e,t){t&&t.pendingBranch?L(e)?t.effects.push(...e):t.effects.push(e):Wn(e)}function pt(e,t){e.activeBranch=t;const{vnode:n,parentComponent:s}=e;let r=t.el;for(;!r&&t.component;)t=t.component.subTree,r=t.el;n.el=r,s&&s.subTree===n&&(s.vnode.el=r,Os(s,r))}function zl(e){const t=e.props&&e.props.suspensible;return t!=null&&t!==!1}const ge=Symbol.for("v-fgt"),In=Symbol.for("v-txt"),fe=Symbol.for("v-cmt"),Nt=Symbol.for("v-stc"),Bt=[];let me=null;function Rs(e=!1){Bt.push(me=e?null:[])}function Oi(){Bt.pop(),me=Bt[Bt.length-1]||null}let yt=1;function cr(e){yt+=e,e<0&&me&&(me.hasOnce=!0)}function Ri(e){return e.dynamicChildren=yt>0?me||ft:null,Oi(),yt>0&&me&&me.push(e),e}function gf(e,t,n,s,r,i){return Ri(Ni(e,t,n,s,r,i,!0))}function Pi(e,t,n,s,r){return Ri(ue(e,t,n,s,r,!0))}function bt(e){return e?e.__v_isVNode===!0:!1}function Ie(e,t){return e.type===t.type&&e.key===t.key}const Li=({key:e})=>e??null,rn=({ref:e,ref_key:t,ref_for:n})=>(typeof e=="number"&&(e=""+e),e!=null?ne(e)||de(e)||V(e)?{i:ie,r:e,k:t,f:!!n}:e:null);function Ni(e,t=null,n=null,s=0,r=null,i=e===ge?0:1,o=!1,l=!1){const c={__v_isVNode:!0,__v_skip:!0,type:e,props:t,key:t&&Li(t),ref:t&&rn(t),scopeId:En,slotScopeIds:null,children:n,component:null,suspense:null,ssContent:null,ssFallback:null,dirs:null,transition:null,el:null,anchor:null,target:null,targetStart:null,targetAnchor:null,staticCount:0,shapeFlag:i,patchFlag:s,dynamicProps:r,dynamicChildren:null,appContext:null,ctx:ie};return l?(Ps(c,n),i&128&&e.normalize(c)):n&&(c.shapeFlag|=ne(n)?8:16),yt>0&&!o&&me&&(c.patchFlag>0||i&6)&&c.patchFlag!==32&&me.push(c),c}const ue=Yl;function Yl(e,t=null,n=null,s=0,r=null,i=!1){if((!e||e===ui)&&(e=fe),bt(e)){const l=Be(e,t,!0);return n&&Ps(l,n),yt>0&&!i&&me&&(l.shapeFlag&6?me[me.indexOf(e)]=l:me.push(l)),l.patchFlag=-2,l}if(lc(e)&&(e=e.__vccOpts),t){t=Xl(t);let{class:l,style:c}=t;l&&!ne(l)&&(t.class=vn(l)),X(c)&&(Jr(c)&&!L(c)&&(c=re({},c)),t.style=Cn(c))}const o=ne(e)?1:Zn(e)?128:Sl(e)?64:X(e)?4:V(e)?2:0;return Ni(e,t,n,s,r,o,i,!0)}function Xl(e){return e?Jr(e)||mi(e)?re({},e):e:null}function Be(e,t,n=!1,s=!1){const{props:r,ref:i,patchFlag:o,children:l,transition:c}=e,a=t?Ql(r||{},t):r,d={__v_isVNode:!0,__v_skip:!0,type:e.type,props:a,key:a&&Li(a),ref:t&&t.ref?n&&i?L(i)?i.concat(rn(t)):[i,rn(t)]:rn(t):i,scopeId:e.scopeId,slotScopeIds:e.slotScopeIds,children:l,target:e.target,targetStart:e.targetStart,targetAnchor:e.targetAnchor,staticCount:e.staticCount,shapeFlag:e.shapeFlag,patchFlag:t&&e.type!==ge?o===-1?16:o|16:o,dynamicProps:e.dynamicProps,dynamicChildren:e.dynamicChildren,appContext:e.appContext,dirs:e.dirs,transition:c,component:e.component,suspense:e.suspense,ssContent:e.ssContent&&Be(e.ssContent),ssFallback:e.ssFallback&&Be(e.ssFallback),el:e.el,anchor:e.anchor,ctx:e.ctx,ce:e.ce};return c&&s&&ot(d,c.clone(d)),d}function Zl(e=" ",t=0){return ue(In,null,e,t)}function mf(e,t){const n=ue(Nt,null,e);return n.staticCount=t,n}function _f(e="",t=!1){return t?(Rs(),Pi(fe,null,e)):ue(fe,null,e)}function Ae(e){return e==null||typeof e=="boolean"?ue(fe):L(e)?ue(ge,null,e.slice()):typeof e=="object"?Ue(e):ue(In,null,String(e))}function Ue(e){return e.el===null&&e.patchFlag!==-1||e.memo?e:Be(e)}function Ps(e,t){let n=0;const{shapeFlag:s}=e;if(t==null)t=null;else if(L(t))n=16;else if(typeof t=="object")if(s&65){const r=t.default;r&&(r._c&&(r._d=!1),Ps(e,r()),r._c&&(r._d=!0));return}else{n=32;const r=t._;!r&&!mi(t)?t._ctx=ie:r===3&&ie&&(ie.slots._===1?t._=1:(t._=2,e.patchFlag|=1024))}else V(t)?(t={default:t,_ctx:ie},n=32):(t=String(t),s&64?(n=16,t=[Zl(t)]):n=8);e.children=t,e.shapeFlag|=n}function Ql(...e){const t={};for(let n=0;n<e.length;n++){const s=e[n];for(const r in s)if(r==="class")t.class!==s.class&&(t.class=vn([t.class,s.class]));else if(r==="style")t.style=Cn([t.style,s.style]);else if(mn(r)){const i=t[r],o=s[r];o&&i!==o&&!(L(i)&&i.includes(o))&&(t[r]=i?[].concat(i,o):o)}else r!==""&&(t[r]=s[r])}return t}function xe(e,t,n,s=null){we(e,t,7,[n,s])}const ec=hi();let tc=0;function nc(e,t,n){const s=e.type,r=(t?t.appContext:e.appContext)||ec,i={uid:tc++,vnode:e,type:s,parent:t,appContext:r,root:null,next:null,subTree:null,effect:null,update:null,scope:new Nr(!0),render:null,proxy:null,exposed:null,exposeProxy:null,withProxy:null,provides:t?t.provides:Object.create(r.provides),accessCache:null,renderCache:[],components:null,directives:null,propsOptions:yi(s,r),emitsOptions:Fi(s,r),emit:null,emitted:null,propsDefaults:Y,inheritAttrs:s.inheritAttrs,ctx:Y,data:Y,props:Y,attrs:Y,slots:Y,refs:Y,setupState:Y,setupContext:null,suspense:n,suspenseId:n?n.pendingId:0,asyncDep:null,asyncResolved:!1,isMounted:!1,isUnmounted:!1,isDeactivated:!1,bc:null,c:null,bm:null,m:null,bu:null,u:null,um:null,bum:null,da:null,a:null,rtg:null,rtc:null,ec:null,sp:null};return i.ctx={_:i},i.root=t?t.root:i,i.emit=Vl.bind(null,i),e.ce&&e.ce(i),i}let ce=null;const xt=()=>ce||ie;let dn,es;{const e=Mr(),t=(n,s)=>{let r;return(r=e[n])||(r=e[n]=[]),r.push(s),i=>{r.length>1?r.forEach(o=>o(i)):r[0](i)}};dn=t("__VUE_INSTANCE_SETTERS__",n=>ce=n),es=t("__VUE_SSR_SETTERS__",n=>Fn=n)}const lt=e=>{const t=ce;return dn(e),e.scope.on(),()=>{e.scope.off(),dn(t)}},ts=()=>{ce&&ce.scope.off(),dn(null)};function Bi(e){return e.vnode.shapeFlag&4}let Fn=!1;function sc(e,t=!1,n=!1){t&&es(t);const{props:s,children:r}=e.vnode,i=Bi(e);Cl(e,s,i,t),wl(e,r,n);const o=i?rc(e,t):void 0;return t&&es(!1),o}function rc(e,t){const n=e.type;e.accessCache=Object.create(null),e.proxy=new Proxy(e.ctx,al);const{setup:s}=n;if(s){const r=e.setupContext=s.length>1?oc(e):null,i=lt(e);Je();const o=qe(s,e,0,[e.props,r]);if(ze(),i(),fs(o)){if(o.then(ts,ts),t)return o.then(l=>{ns(e,l,t)}).catch(l=>{Kt(l,e,0)});e.asyncDep=o}else ns(e,o,t)}else $i(e,t)}function ns(e,t,n){V(t)?e.type.__ssrInlineRender?e.ssrRender=t:e.render=t:X(t)&&(e.setupState=Zr(t)),$i(e,n)}let fr;function $i(e,t,n){const s=e.type;if(!e.render){if(!t&&fr&&!s.render){const r=s.template||Is(e).template;if(r){const{isCustomElement:i,compilerOptions:o}=e.appContext.config,{delimiters:l,compilerOptions:c}=s,a=re(re({isCustomElement:i,delimiters:l},o),c);s.render=fr(r,a)}}e.render=s.render||Ee}{const r=lt(e);Je();try{dl(e)}finally{ze(),r()}}}const ic={get(e,t){return _e(e,"get",""),e[t]}};function oc(e){const t=n=>{e.exposed=n||{}};return{attrs:new Proxy(e.attrs,ic),slots:e.slots,emit:e.emit,expose:t}}function Mn(e){return e.exposed?e.exposeProxy||(e.exposeProxy=new Proxy(Zr(Vo(e.exposed)),{get(t,n){if(n in t)return t[n];if(n in Pt)return Pt[n](e)},has(t,n){return n in t||n in Pt}})):e.proxy}function ss(e,t=!0){return V(e)?e.displayName||e.name:e.name||t&&e.__name}function lc(e){return V(e)&&"__vccOpts"in e}const cc=(e,t)=>Ho(e,t,Fn);function fc(e,t,n){const s=arguments.length;return s===2?X(t)&&!L(t)?bt(t)?ue(e,null,[t]):ue(e,t):ue(e,null,t):(s>3?n=Array.prototype.slice.call(arguments,2):s===3&&bt(n)&&(n=[n]),ue(e,t,n))}const uc="3.4.38";/**
14
- * @vue/runtime-dom v3.4.38
15
- * (c) 2018-present Yuxi (Evan) You and Vue contributors
16
- * @license MIT
17
- **/const ac="http://www.w3.org/2000/svg",dc="http://www.w3.org/1998/Math/MathML",Le=typeof document<"u"?document:null,ur=Le&&Le.createElement("template"),hc={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"?Le.createElementNS(ac,e):t==="mathml"?Le.createElementNS(dc,e):n?Le.createElement(e,{is:n}):Le.createElement(e);return e==="select"&&s&&s.multiple!=null&&r.setAttribute("multiple",s.multiple),r},createText:e=>Le.createTextNode(e),createComment:e=>Le.createComment(e),setText:(e,t)=>{e.nodeValue=t},setElementText:(e,t)=>{e.textContent=t},parentNode:e=>e.parentNode,nextSibling:e=>e.nextSibling,querySelector:e=>Le.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{ur.innerHTML=s==="svg"?`<svg>${e}</svg>`:s==="mathml"?`<math>${e}</math>`:e;const l=ur.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",St="animation",Ct=Symbol("_vtc"),Vi=(e,{slots:t})=>fc(el,ji(e),t);Vi.displayName="Transition";const Hi={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},pc=Vi.props=re({},ii,Hi),et=(e,t=[])=>{L(e)?e.forEach(n=>n(...t)):e&&e(...t)},ar=e=>e?L(e)?e.some(t=>t.length>1):e.length>1:!1;function ji(e){const t={};for(const F in e)F in Hi||(t[F]=e[F]);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:a=o,appearToClass:d=l,leaveFromClass:h=`${n}-leave-from`,leaveActiveClass:p=`${n}-leave-active`,leaveToClass:C=`${n}-leave-to`}=e,w=gc(r),O=w&&w[0],W=w&&w[1],{onBeforeEnter:K,onEnter:T,onEnterCancelled:S,onLeave:R,onLeaveCancelled:I,onBeforeAppear:v=K,onAppear:H=T,onAppearCancelled:k=S}=t,P=(F,J,se)=>{De(F,J?d:l),De(F,J?a:o),se&&se()},$=(F,J)=>{F._isLeaving=!1,De(F,h),De(F,C),De(F,p),J&&J()},D=F=>(J,se)=>{const Ce=F?H:T,te=()=>P(J,F,se);et(Ce,[J,te]),dr(()=>{De(J,F?c:i),Pe(J,F?d:l),ar(Ce)||hr(J,s,O,te)})};return re(t,{onBeforeEnter(F){et(K,[F]),Pe(F,i),Pe(F,o)},onBeforeAppear(F){et(v,[F]),Pe(F,c),Pe(F,a)},onEnter:D(!1),onAppear:D(!0),onLeave(F,J){F._isLeaving=!0;const se=()=>$(F,J);Pe(F,h),Pe(F,p),Ki(),dr(()=>{F._isLeaving&&(De(F,h),Pe(F,C),ar(R)||hr(F,s,W,se))}),et(R,[F,se])},onEnterCancelled(F){P(F,!1),et(S,[F])},onAppearCancelled(F){P(F,!0),et(k,[F])},onLeaveCancelled(F){$(F),et(I,[F])}})}function gc(e){if(e==null)return null;if(X(e))return[Vn(e.enter),Vn(e.leave)];{const t=Vn(e);return[t,t]}}function Vn(e){return Fr(e)}function Pe(e,t){t.split(/\s+/).forEach(n=>n&&e.classList.add(n)),(e[Ct]||(e[Ct]=new Set)).add(t)}function De(e,t){t.split(/\s+/).forEach(s=>s&&e.classList.remove(s));const n=e[Ct];n&&(n.delete(t),n.size||(e[Ct]=void 0))}function dr(e){requestAnimationFrame(()=>{requestAnimationFrame(e)})}let mc=0;function hr(e,t,n,s){const r=e._endId=++mc,i=()=>{r===e._endId&&s()};if(n)return setTimeout(i,n);const{type:o,timeout:l,propCount:c}=Di(e,t);if(!o)return s();const a=o+"end";let d=0;const h=()=>{e.removeEventListener(a,p),i()},p=C=>{C.target===e&&++d>=c&&h()};setTimeout(()=>{d<c&&h()},l+1),e.addEventListener(a,p)}function Di(e,t){const n=window.getComputedStyle(e),s=w=>(n[w]||"").split(", "),r=s(`${je}Delay`),i=s(`${je}Duration`),o=pr(r,i),l=s(`${St}Delay`),c=s(`${St}Duration`),a=pr(l,c);let d=null,h=0,p=0;t===je?o>0&&(d=je,h=o,p=i.length):t===St?a>0&&(d=St,h=a,p=c.length):(h=Math.max(o,a),d=h>0?o>a?je:St:null,p=d?d===je?i.length:c.length:0);const C=d===je&&/\b(transform|all)(,|$)/.test(s(`${je}Property`).toString());return{type:d,timeout:h,propCount:p,hasTransform:C}}function pr(e,t){for(;e.length<t.length;)e=e.concat(e);return Math.max(...t.map((n,s)=>gr(n)+gr(e[s])))}function gr(e){return e==="auto"?0:Number(e.slice(0,-1).replace(",","."))*1e3}function Ki(){return document.body.offsetHeight}function _c(e,t,n){const s=e[Ct];s&&(t=(t?[t,...s]:[...s]).join(" ")),t==null?e.removeAttribute("class"):n?e.setAttribute("class",t):e.className=t}const hn=Symbol("_vod"),ki=Symbol("_vsh"),yf={beforeMount(e,{value:t},{transition:n}){e[hn]=e.style.display==="none"?"":e.style.display,n&&t?n.beforeEnter(e):At(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),At(e,!0),s.enter(e)):s.leave(e,()=>{At(e,!1)}):At(e,t))},beforeUnmount(e,{value:t}){At(e,t)}};function At(e,t){e.style.display=t?e[hn]:"none",e[ki]=!t}const Ui=Symbol("");function bf(e){const t=xt();if(!t)return;const n=t.ut=(r=e(t.proxy))=>{Array.from(document.querySelectorAll(`[data-v-owner="${t.uid}"]`)).forEach(i=>is(i,r))},s=()=>{const r=e(t.proxy);rs(t.subTree,r),n(r)};fi(()=>{Nl(s)}),Sn(()=>{const r=new MutationObserver(s);r.observe(t.subTree.el.parentNode,{childList:!0}),Ts(()=>r.disconnect())})}function rs(e,t){if(e.shapeFlag&128){const n=e.suspense;e=n.activeBranch,n.pendingBranch&&!n.isHydrating&&n.effects.push(()=>{rs(n.activeBranch,t)})}for(;e.component;)e=e.component.subTree;if(e.shapeFlag&1&&e.el)is(e.el,t);else if(e.type===ge)e.children.forEach(n=>rs(n,t));else if(e.type===Nt){let{el:n,anchor:s}=e;for(;n&&(is(n,t),n!==s);)n=n.nextSibling}}function is(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[Ui]=s}}const yc=/(^|;)\s*display\s*:/;function bc(e,t,n){const s=e.style,r=ne(n);let i=!1;if(n&&!r){if(t)if(ne(t))for(const o of t.split(";")){const l=o.slice(0,o.indexOf(":")).trim();n[l]==null&&on(s,l,"")}else for(const o in t)n[o]==null&&on(s,o,"");for(const o in n)o==="display"&&(i=!0),on(s,o,n[o])}else if(r){if(t!==n){const o=s[Ui];o&&(n+=";"+o),s.cssText=n,i=yc.test(n)}}else t&&e.removeAttribute("style");hn in e&&(e[hn]=i?s.display:"",e[ki]&&(s.display="none"))}const mr=/\s*!important$/;function on(e,t,n){if(L(n))n.forEach(s=>on(e,t,s));else if(n==null&&(n=""),t.startsWith("--"))e.setProperty(t,n);else{const s=Cc(e,t);mr.test(n)?e.setProperty($e(s),n.replace(mr,""),"important"):e[s]=n}}const _r=["Webkit","Moz","ms"],Hn={};function Cc(e,t){const n=Hn[t];if(n)return n;let s=Te(t);if(s!=="filter"&&s in e)return Hn[t]=s;s=bn(s);for(let r=0;r<_r.length;r++){const i=_r[r]+s;if(i in e)return Hn[t]=i}return t}const yr="http://www.w3.org/1999/xlink";function br(e,t,n,s,r,i=ao(t)){s&&t.startsWith("xlink:")?n==null?e.removeAttributeNS(yr,t.slice(6,t.length)):e.setAttributeNS(yr,t,n):n==null||i&&!Or(n)?e.removeAttribute(t):e.setAttribute(t,i?"":Re(n)?String(n):n)}function vc(e,t,n,s){if(t==="innerHTML"||t==="textContent"){if(n==null)return;e[t]=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?"":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=Or(n):n==null&&o==="string"?(n="",i=!0):o==="number"&&(n=0,i=!0)}try{e[t]=n}catch{}i&&e.removeAttribute(t)}function Ls(e,t,n,s){e.addEventListener(t,n,s)}function xc(e,t,n,s){e.removeEventListener(t,n,s)}const Cr=Symbol("_vei");function Ec(e,t,n,s,r=null){const i=e[Cr]||(e[Cr]={}),o=i[t];if(s&&o)o.value=s;else{const[l,c]=wc(t);if(s){const a=i[t]=Ac(s,r);Ls(e,l,a,c)}else o&&(xc(e,l,o,c),i[t]=void 0)}}const vr=/(?:Once|Passive|Capture)$/;function wc(e){let t;if(vr.test(e)){t={};let s;for(;s=e.match(vr);)e=e.slice(0,e.length-s[0].length),t[s[0].toLowerCase()]=!0}return[e[2]===":"?e.slice(3):$e(e.slice(2)),t]}let jn=0;const Tc=Promise.resolve(),Sc=()=>jn||(Tc.then(()=>jn=0),jn=Date.now());function Ac(e,t){const n=s=>{if(!s._vts)s._vts=Date.now();else if(s._vts<=n.attached)return;we(Ic(s,n.value),t,5,[s])};return n.value=e,n.attached=Sc(),n}function Ic(e,t){if(L(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 xr=e=>e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)>96&&e.charCodeAt(2)<123,Fc=(e,t,n,s,r,i)=>{const o=r==="svg";t==="class"?_c(e,s,o):t==="style"?bc(e,n,s):mn(t)?ls(t)||Ec(e,t,n,s,i):(t[0]==="."?(t=t.slice(1),!0):t[0]==="^"?(t=t.slice(1),!1):Mc(e,t,s,o))?(vc(e,t,s),!e.tagName.includes("-")&&(t==="value"||t==="checked"||t==="selected")&&br(e,t,s,o,i,t!=="value")):(t==="true-value"?e._trueValue=s:t==="false-value"&&(e._falseValue=s),br(e,t,s,o))};function Mc(e,t,n,s){if(s)return!!(t==="innerHTML"||t==="textContent"||t in e&&xr(t)&&V(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 xr(t)&&ne(n)?!1:t in e}const Wi=new WeakMap,Gi=new WeakMap,pn=Symbol("_moveCb"),Er=Symbol("_enterCb"),qi={name:"TransitionGroup",props:re({},pc,{tag:String,moveClass:String}),setup(e,{slots:t}){const n=xt(),s=ri();let r,i;return Es(()=>{if(!r.length)return;const o=e.moveClass||`${e.name||"v"}-move`;if(!Nc(r[0].el,n.vnode.el,o))return;r.forEach(Rc),r.forEach(Pc);const l=r.filter(Lc);Ki(),l.forEach(c=>{const a=c.el,d=a.style;Pe(a,o),d.transform=d.webkitTransform=d.transitionDuration="";const h=a[pn]=p=>{p&&p.target!==a||(!p||/transform$/.test(p.propertyName))&&(a.removeEventListener("transitionend",h),a[pn]=null,De(a,o))};a.addEventListener("transitionend",h)})}),()=>{const o=q(e),l=ji(o);let c=o.tag||ge;if(r=[],i)for(let a=0;a<i.length;a++){const d=i[a];d.el&&d.el instanceof Element&&(r.push(d),ot(d,jt(d,l,s,n)),Wi.set(d,d.el.getBoundingClientRect()))}i=t.default?xs(t.default()):[];for(let a=0;a<i.length;a++){const d=i[a];d.key!=null&&ot(d,jt(d,l,s,n))}return ue(c,null,i)}}},Oc=e=>delete e.mode;qi.props;const Cf=qi;function Rc(e){const t=e.el;t[pn]&&t[pn](),t[Er]&&t[Er]()}function Pc(e){Gi.set(e,e.el.getBoundingClientRect())}function Lc(e){const t=Wi.get(e),n=Gi.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 Nc(e,t,n){const s=e.cloneNode(),r=e[Ct];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}=Di(s);return i.removeChild(s),o}const gn=e=>{const t=e.props["onUpdate:modelValue"]||!1;return L(t)?n=>at(t,n):t},gt=Symbol("_assign"),vf={deep:!0,created(e,t,n){e[gt]=gn(n),Ls(e,"change",()=>{const s=e._modelValue,r=Ji(e),i=e.checked,o=e[gt];if(L(s)){const l=Rr(s,r),c=l!==-1;if(i&&!c)o(s.concat(r));else if(!i&&c){const a=[...s];a.splice(l,1),o(a)}}else if(_n(s)){const l=new Set(s);i?l.add(r):l.delete(r),o(l)}else o(zi(e,i))})},mounted:wr,beforeUpdate(e,t,n){e[gt]=gn(n),wr(e,t,n)}};function wr(e,{value:t,oldValue:n},s){e._modelValue=t,L(t)?e.checked=Rr(t,s.props.value)>-1:_n(t)?e.checked=t.has(s.props.value):t!==n&&(e.checked=mt(t,zi(e,!0)))}const xf={created(e,{value:t},n){e.checked=mt(t,n.props.value),e[gt]=gn(n),Ls(e,"change",()=>{e[gt](Ji(e))})},beforeUpdate(e,{value:t,oldValue:n},s){e[gt]=gn(s),t!==n&&(e.checked=mt(t,s.props.value))}};function Ji(e){return"_value"in e?e._value:e.value}function zi(e,t){const n=t?"_trueValue":"_falseValue";return n in e?e[n]:t}const Bc=["ctrl","shift","alt","meta"],$c={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)=>Bc.some(n=>e[`${n}Key`]&&!t.includes(n))},Ef=(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=$c[t[o]];if(l&&l(r,t))return}return e(r,...i)})},Vc={esc:"escape",space:" ",up:"arrow-up",left:"arrow-left",right:"arrow-right",down:"arrow-down",delete:"backspace"},wf=(e,t)=>{const n=e._withKeys||(e._withKeys={}),s=t.join(".");return n[s]||(n[s]=r=>{if(!("key"in r))return;const i=$e(r.key);if(t.some(o=>o===i||Vc[o]===i))return e(r)})},Hc=re({patchProp:Fc},hc);let Tr;function Yi(){return Tr||(Tr=Fl(Hc))}const Tf=(...e)=>{Yi().render(...e)},Sf=(...e)=>{const t=Yi().createApp(...e),{mount:n}=t;return t.mount=s=>{const r=Dc(s);if(!r)return;const i=t._component;!V(i)&&!i.render&&!i.template&&(i.template=r.innerHTML),r.innerHTML="";const o=n(r,!1,jc(r));return r instanceof Element&&(r.removeAttribute("v-cloak"),r.setAttribute("data-v-app","")),o},t};function jc(e){if(e instanceof SVGElement)return"svg";if(typeof MathMLElement=="function"&&e instanceof MathMLElement)return"mathml"}function Dc(e){return ne(e)?document.querySelector(e):e}export{Gc as $,kc as A,Jc as B,xt as C,Wc as D,df as E,Zc as F,Vo as G,Ot as H,q as I,ef as J,Kc as K,Xl as L,ue as M,ge as N,Pi as O,bl as P,sf as Q,Zo as R,tf as S,po as T,Ts as U,Zl as V,Vi as W,Cn as X,nf as Y,lf as Z,fc as _,nn as a,ws as a0,In as a1,$o as a2,fi as a3,bt as a4,Sf as a5,Be as a6,fe as a7,bn as a8,Te as a9,Cf as aa,Es as ab,sl as ac,nl as ad,af as ae,Tf as af,il as ag,Jr as ah,zc as ai,Yc as aj,cf as ak,hf as al,vf as am,bf as an,mf as ao,xf as ap,Qc as aq,pf as ar,rf as as,ff as at,ms as b,cc as c,qr as d,Rs as e,gf as f,Xc as g,uf as h,de as i,Ni as j,of as k,_f as l,Ql as m,vn as n,Uc as o,wf as p,Ef as q,jo as r,Uo as s,qc as t,Xr as u,yf as v,sn as w,Sn as x,Jo as y,mo as z};
@@ -1 +0,0 @@
1
- import{t as v,c as b,e as S,f as V,g as D,v as B,j as p,n as y,k as w,l as C,m as N,p as j,q as T}from"./@vue.CIFymae3.0.0.19-alpha.4.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};
@@ -1 +0,0 @@
1
- import{s as pe,x as he,y as we,z as ge,o as Fe,A as Le,i as ne,u as He,B as Pe,d as ye,r as h,c as A,C as Se,w as R,D as oe,b as K,E as re,F as ie}from"./@vue.CIFymae3.0.0.19-alpha.4.js";import{n as Y}from"./nprogress.B11HQZ7O.0.0.19-alpha.4.js";function N(e){return ge()?(Fe(e),!0):!1}function Mt(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 We(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 Re(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 x(e){return typeof e=="function"?e():He(e)}const V=typeof window<"u"&&typeof document<"u";typeof WorkerGlobalScope<"u"&&globalThis instanceof WorkerGlobalScope;const Ce=e=>e!=null,Ye=Object.prototype.toString,be=e=>Ye.call(e)==="[object Object]",W=()=>{},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 Ee=e=>e();function ze(e,n={}){let t,o,s=W;const r=l=>{clearTimeout(l),s(),s=W};return l=>{const i=x(e),u=x(n.maxWait);return t&&r(t),i<=0||u!==void 0&&u<=0?(o&&(r(o),o=null),Promise.resolve(l())):new Promise((d,f)=>{s=n.rejectOnCancel?f:d,u&&!o&&(o=setTimeout(()=>{t&&r(t),o=null,d(l())},u)),t=setTimeout(()=>{o&&r(o),o=null,d(l())},i)})}}function Ie(...e){let n=0,t,o=!0,s=W,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 d=()=>{t&&(clearTimeout(t),t=void 0,s(),s=W)};return c=>{const m=x(a),p=Date.now()-n,w=()=>r=c();return d(),m<=0?(n=Date.now(),w()):(p>m&&(i||!o)?(n=Date.now(),w()):l&&(r=new Promise((S,v)=>{s=u?v:S,t=setTimeout(()=>{n=Date.now(),o=!0,S(w()),d()},Math.max(0,m-p))})),!i&&!t&&(t=setTimeout(()=>o=!0,m)),o=!1,r)}}function Xe(e=Ee){const n=h(!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}}const _e={mounted:"mounted",updated:"updated",unmounted:"unmounted"};function $e(e){const n=Object.create(null);return t=>n[t]||(n[t]=e(t))}const je=/-(\w)/g,Be=$e(e=>e.replace(je,(n,t)=>t?t.toUpperCase():""));function Ve(e){return Se()}function Me(...e){if(e.length!==1)return Pe(...e);const n=e[0];return typeof n=="function"?ye(pe(()=>({get:n,set:W}))):h(n)}function qe(e,n=200,t={}){return le(ze(n,t),e)}function Ue(e,n=200,t=!1,o=!0,s=!1){return le(Ie(n,t,o,s),e)}function xt(e,n={}){let t=e,o,s;const r=pe((c,m)=>(o=c,s=m,{get(){return a()},set(p){l(p)}}));function a(c=!0){return c&&o(),t}function l(c,m=!0){var p,w;if(c===t)return;const S=t;((p=n.onBeforeChange)==null?void 0:p.call(n,c,S))!==!1&&(t=c,(w=n.onChanged)==null||w.call(n,c,S),m&&s())}return We(r,{get:a,set:l,untrackedGet:()=>a(!1),silentSet:c=>l(c,!1),peek:()=>a(!1),lay:c=>l(c,!1)},{enumerable:!0})}function Ge(e,n,t={}){const{eventFilter:o=Ee,...s}=t;return R(e,le(o,n),s)}function Je(e,n,t={}){const{eventFilter:o,...s}=t,{eventFilter:r,pause:a,resume:l,isActive:i}=Xe(o);return{stop:Ge(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(),d=e.getMilliseconds(),f=e.getDay(),c=(o=t.customMeridiem)!=null?o:Ze,m={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(x(t.locales),{month:"short"}),MMMM:()=>e.toLocaleDateString(x(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:()=>`${d}`.padStart(3,"0"),d:()=>f,dd:()=>e.toLocaleDateString(x(t.locales),{weekday:"narrow"}),ddd:()=>e.toLocaleDateString(x(t.locales),{weekday:"short"}),dddd:()=>e.toLocaleDateString(x(t.locales),{weekday:"long"}),A:()=>c(l,i),AA:()=>c(l,i,!1,!0),a:()=>c(l,i,!0),aa:()=>c(l,i,!0,!0)};return n.replace(Qe,(p,w)=>{var S,v;return(v=w??((S=m[p])==null?void 0:S.call(m)))!=null?v: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 Dt(e,n="HH:mm:ss",t={}){return A(()=>et(tt(x(e)),x(n),t))}function Ot(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=W}=o,i=h(!s),u=a?oe(n):h(n);let d=0;return re(async f=>{if(!i.value)return;d++;const c=d;let m=!1;r&&Promise.resolve().then(()=>{r.value=!0});try{const p=await e(w=>{f(()=>{r&&(r.value=!1),m||w()})});c===d&&(u.value=p)}catch(p){l(p)}finally{r&&c===d&&(r.value=!1),m=!0}}),s?A(()=>(i.value=!0,u.value)):u}function Tt(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 Re({define:o,reuse:s},[o,s])}function nt(e){const n={};for(const t in e)n[Be(t)]=e[t];return n}function L(e){var n;const t=x(e);return(n=t==null?void 0:t.$el)!=null?n:t}const H=V?window:void 0,xe=V?window.document:void 0;function M(...e){let n,t,o,s;if(typeof e[0]=="string"||Array.isArray(e[0])?([t,o,s]=e,n=H):[n,t,o,s]=e,!n)return W;Array.isArray(t)||(t=[t]),Array.isArray(o)||(o=[o]);const r=[],a=()=>{r.forEach(d=>d()),r.length=0},l=(d,f,c,m)=>(d.addEventListener(f,c,m),()=>d.removeEventListener(f,c,m)),i=R(()=>[L(n),x(s)],([d,f])=>{if(a(),!d)return;const c=be(f)?{...f}:f;r.push(...t.flatMap(m=>o.map(p=>l(d,m,p,c))))},{immediate:!0,flush:"post"}),u=()=>{i(),a()};return N(u),u}let ae=!1;function At(e,n,t={}){const{window:o=H,ignore:s=[],capture:r=!0,detectIframe:a=!1}=t;if(!o)return W;B&&!ae&&(ae=!0,Array.from(o.document.body.children).forEach(c=>c.addEventListener("click",W)),o.document.documentElement.addEventListener("click",W));let l=!0;const i=c=>s.some(m=>{if(typeof m=="string")return Array.from(o.document.querySelectorAll(m)).some(p=>p===c.target||c.composedPath().includes(p));{const p=L(m);return p&&(c.target===p||c.composedPath().includes(p))}}),d=[M(o,"click",c=>{const m=L(e);if(!(!m||m===c.target||c.composedPath().includes(m))){if(c.detail===0&&(l=!i(c)),!l){l=!0;return}n(c)}},{passive:!0,capture:r}),M(o,"pointerdown",c=>{const m=L(e);l=!i(c)&&!!(m&&!c.composedPath().includes(m))},{passive:!0}),a&&M(o,"blur",c=>{setTimeout(()=>{var m;const p=L(e);((m=o.document.activeElement)==null?void 0:m.tagName)==="IFRAME"&&!(p!=null&&p.contains(o.document.activeElement))&&n(c)},0)})].filter(Boolean);return()=>d.forEach(c=>c())}function ot(e){return typeof e=="function"?e:typeof e=="string"?n=>n.key===e:Array.isArray(e)?n=>e.includes(n.key):()=>!0}function kt(...e){let n,t,o={};e.length===3?(n=e[0],t=e[1],o=e[2]):e.length===2?typeof e[1]=="object"?(n=!0,t=e[0],o=e[1]):(n=e[0],t=e[1]):(n=!0,t=e[0]);const{target:s=H,eventName:r="keydown",passive:a=!1,dedupe:l=!1}=o,i=ot(n);return M(s,r,d=>{d.repeat&&x(l)||i(d)&&t(d)},a)}function rt(){const e=h(!1),n=Se();return n&&he(()=>{e.value=!0},n),e}function U(e){const n=rt();return A(()=>(n.value,!!e()))}function lt(e,n,t={}){const{window:o=H,...s}=t;let r;const a=U(()=>o&&"MutationObserver"in o),l=()=>{r&&(r.disconnect(),r=void 0)},i=A(()=>{const c=x(e),m=(Array.isArray(c)?c:[c]).map(L).filter(Ce);return new Set(m)}),u=R(()=>i.value,c=>{l(),a.value&&c.size&&(r=new MutationObserver(n),c.forEach(m=>r.observe(m,s)))},{immediate:!0,flush:"post"}),d=()=>r==null?void 0:r.takeRecords(),f=()=>{u(),l()};return N(f),{isSupported:a,stop:f,takeRecords:d}}function st(e,n={}){const{window:t=H}=n,o=U(()=>t&&"matchMedia"in t&&typeof t.matchMedia=="function");let s;const r=h(!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(x(e)),"addEventListener"in s?s.addEventListener("change",a):s.addListener(a),r.value=s.matches)});return N(()=>{i(),l(),s=void 0}),r}const G=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},J="__vueuse_ssr_handlers__",ut=it();function it(){return J in G||(G[J]=G[J]||{}),G[J]}function at(e,n){return ut[e]||n}function ct(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 ft={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 dt(e,n,t,o={}){var s;const{flush:r="pre",deep:a=!0,listenToStorageChanges:l=!0,writeDefaults:i=!0,mergeDefaults:u=!1,shallow:d,window:f=H,eventFilter:c,onError:m=y=>{console.error(y)},initOnMounted:p}=o,w=(d?oe:h)(typeof n=="function"?n():n);if(!t)try{t=at("getDefaultStorage",()=>{var y;return(y=H)==null?void 0:y.localStorage})()}catch(y){m(y)}if(!t)return w;const S=x(n),v=ct(S),E=(s=o.serializer)!=null?s:ft[v],{pause:k,resume:D}=Je(w,()=>T(w.value),{flush:r,deep:a,eventFilter:c});f&&l&&q(()=>{t instanceof Storage?M(f,"storage",P):M(f,ce,_),p&&P()}),p||P();function g(y,O){if(f){const F={key:e,oldValue:y,newValue:O,storageArea:t};f.dispatchEvent(t instanceof Storage?new StorageEvent("storage",F):new CustomEvent(ce,{detail:F}))}}function T(y){try{const O=t.getItem(e);if(y==null)g(O,null),t.removeItem(e);else{const F=E.write(y);O!==F&&(t.setItem(e,F),g(O,F))}}catch(O){m(O)}}function b(y){const O=y?y.newValue:t.getItem(e);if(O==null)return i&&S!=null&&t.setItem(e,E.write(S)),S;if(!y&&u){const F=E.read(O);return typeof u=="function"?u(F,S):v==="object"&&!Array.isArray(F)?{...S,...F}:F}else return typeof O!="string"?O:E.read(O)}function P(y){if(!(y&&y.storageArea!==t)){if(y&&y.key==null){w.value=S;return}if(!(y&&y.key!==e)){k();try{(y==null?void 0:y.newValue)!==E.write(w.value)&&(w.value=b(y))}catch(O){m(O)}finally{y?we(D):D()}}}}function _(y){P(y.detail)}return w}function Ft(e={}){const{document:n=xe}=e;if(!n)return h("visible");const t=h(n.visibilityState);return M(n,"visibilitychange",()=>{t.value=n.visibilityState}),t}function De(e,n,t={}){const{window:o=H,...s}=t;let r;const a=U(()=>o&&"ResizeObserver"in o),l=()=>{r&&(r.disconnect(),r=void 0)},i=A(()=>{const f=x(e);return Array.isArray(f)?f.map(c=>L(c)):[L(f)]}),u=R(i,f=>{if(l(),a.value&&o){r=new ResizeObserver(n);for(const c of f)c&&r.observe(c,s)}},{immediate:!0,flush:"post"}),d=()=>{l(),u()};return N(d),{isSupported:a,stop:d}}function Lt(e,n={}){const{reset:t=!0,windowResize:o=!0,windowScroll:s=!0,immediate:r=!0,updateTiming:a="sync"}=n,l=h(0),i=h(0),u=h(0),d=h(0),f=h(0),c=h(0),m=h(0),p=h(0);function w(){const v=L(e);if(!v){t&&(l.value=0,i.value=0,u.value=0,d.value=0,f.value=0,c.value=0,m.value=0,p.value=0);return}const E=v.getBoundingClientRect();l.value=E.height,i.value=E.bottom,u.value=E.left,d.value=E.right,f.value=E.top,c.value=E.width,m.value=E.x,p.value=E.y}function S(){a==="sync"?w():a==="next-frame"&&requestAnimationFrame(()=>w())}return De(e,S),R(()=>L(e),v=>!v&&S()),lt(e,S,{attributeFilter:["style","class"]}),s&&M("scroll",S,{capture:!0,passive:!0}),o&&M("resize",S,{passive:!0}),q(()=>{r&&S()}),{height:l,bottom:i,left:u,right:d,top:f,width:c,x:m,y:p,update:S}}function Ht(e,n={width:0,height:0},t={}){const{window:o=H,box:s="content-box"}=t,r=A(()=>{var f,c;return(c=(f=L(e))==null?void 0:f.namespaceURI)==null?void 0:c.includes("svg")}),a=h(n.width),l=h(n.height),{stop:i}=De(e,([f])=>{const c=s==="border-box"?f.borderBoxSize:s==="content-box"?f.contentBoxSize:f.devicePixelContentBoxSize;if(o&&r.value){const m=L(e);if(m){const p=m.getBoundingClientRect();a.value=p.width,l.value=p.height}}else if(c){const m=Array.isArray(c)?c:[c];a.value=m.reduce((p,{inlineSize:w})=>p+w,0),l.value=m.reduce((p,{blockSize:w})=>p+w,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=R(()=>L(e),f=>{a.value=f?n.width:0,l.value=f?n.height:0});function d(){i(),u()}return{width:a,height:l,stop:d}}const j=new Map;function Pt(e){const n=ge();function t(l){var i;const u=j.get(e)||new Set;u.add(l),j.set(e,u);const d=()=>s(l);return(i=n==null?void 0:n.cleanups)==null||i.push(d),d}function o(l){function i(...u){s(i),l(...u)}return t(i)}function s(l){const i=j.get(e);i&&(i.delete(l),i.size||r())}function r(){j.delete(e)}function a(l,i){var u;(u=j.get(e))==null||u.forEach(d=>d(l,i))}return{on:t,once:o,off:s,emit:a,reset:r}}const fe=["fullscreenchange","webkitfullscreenchange","webkitendfullscreen","mozfullscreenchange","MSFullscreenChange"];function Wt(e,n={}){const{document:t=xe,autoExit:o=!1}=n,s=A(()=>{var v;return(v=L(e))!=null?v:t==null?void 0:t.querySelector("html")}),r=h(!1),a=A(()=>["requestFullscreen","webkitRequestFullscreen","webkitEnterFullscreen","webkitEnterFullScreen","webkitRequestFullScreen","mozRequestFullScreen","msRequestFullscreen"].find(v=>t&&v in t||s.value&&v in s.value)),l=A(()=>["exitFullscreen","webkitExitFullscreen","webkitExitFullScreen","webkitCancelFullScreen","mozCancelFullScreen","msExitFullscreen"].find(v=>t&&v in t||s.value&&v in s.value)),i=A(()=>["fullScreen","webkitIsFullScreen","webkitDisplayingFullscreen","mozFullScreen","msFullscreenElement"].find(v=>t&&v in t||s.value&&v in s.value)),u=["fullscreenElement","webkitFullscreenElement","mozFullScreenElement","msFullscreenElement"].find(v=>t&&v in t),d=U(()=>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,c=()=>{if(i.value){if(t&&t[i.value]!=null)return t[i.value];{const v=s.value;if((v==null?void 0:v[i.value])!=null)return!!v[i.value]}}return!1};async function m(){if(!(!d.value||!r.value)){if(l.value)if((t==null?void 0:t[l.value])!=null)await t[l.value]();else{const v=s.value;(v==null?void 0:v[l.value])!=null&&await v[l.value]()}r.value=!1}}async function p(){if(!d.value||r.value)return;c()&&await m();const v=s.value;a.value&&(v==null?void 0:v[a.value])!=null&&(await v[a.value](),r.value=!0)}async function w(){await(r.value?m():p())}const S=()=>{const v=c();(!v||v&&f())&&(r.value=v)};return M(t,fe,S,!1),M(()=>L(s),fe,S,!1),o&&N(m),{isSupported:d,isFullscreen:r,enter:p,exit:m,toggle:w}}const de=1;function Rt(e,n={}){const{throttle:t=0,idle:o=200,onStop:s=W,onScroll:r=W,offset:a={left:0,right:0,top:0,bottom:0},eventListenerOptions:l={capture:!1,passive:!0},behavior:i="auto",window:u=H,onError:d=b=>{console.error(b)}}=n,f=h(0),c=h(0),m=A({get(){return f.value},set(b){w(b,void 0)}}),p=A({get(){return c.value},set(b){w(void 0,b)}});function w(b,P){var _,y,O,F;if(!u)return;const C=x(e);if(!C)return;(O=C instanceof Document?u.document.body:C)==null||O.scrollTo({top:(_=x(P))!=null?_:p.value,left:(y=x(b))!=null?y:m.value,behavior:x(i)});const $=((F=C==null?void 0:C.document)==null?void 0:F.documentElement)||(C==null?void 0:C.documentElement)||C;m!=null&&(f.value=$.scrollLeft),p!=null&&(c.value=$.scrollTop)}const S=h(!1),v=K({left:!0,right:!1,top:!0,bottom:!1}),E=K({left:!1,right:!1,top:!1,bottom:!1}),k=b=>{S.value&&(S.value=!1,E.left=!1,E.right=!1,E.top=!1,E.bottom=!1,s(b))},D=qe(k,t+o),g=b=>{var P;if(!u)return;const _=((P=b==null?void 0:b.document)==null?void 0:P.documentElement)||(b==null?void 0:b.documentElement)||L(b),{display:y,flexDirection:O}=getComputedStyle(_),F=_.scrollLeft;E.left=F<f.value,E.right=F>f.value;const C=Math.abs(F)<=(a.left||0),$=Math.abs(F)+_.clientWidth>=_.scrollWidth-(a.right||0)-de;y==="flex"&&O==="row-reverse"?(v.left=$,v.right=C):(v.left=C,v.right=$),f.value=F;let z=_.scrollTop;b===u.document&&!z&&(z=u.document.body.scrollTop),E.top=z<c.value,E.bottom=z>c.value;const se=Math.abs(z)<=(a.top||0),ue=Math.abs(z)+_.clientHeight>=_.scrollHeight-(a.bottom||0)-de;y==="flex"&&O==="column-reverse"?(v.top=ue,v.bottom=se):(v.top=se,v.bottom=ue),c.value=z},T=b=>{var P;if(!u)return;const _=(P=b.target.documentElement)!=null?P:b.target;g(_),S.value=!0,D(b),r(b)};return M(e,"scroll",t?Ue(T,t,!0,!1):T,l),q(()=>{try{const b=x(e);if(!b)return;g(b)}catch(b){d(b)}}),M(e,"scrollend",k,l),{x:m,y:p,isScrolling:S,arrivedState:v,directions:E,measure(){const b=x(e);u&&b&&g(b)}}}function Q(e){return typeof Window<"u"&&e instanceof Window?e.document.documentElement:typeof Document<"u"&&e instanceof Document?e.documentElement:e}function Ct(e,n,t={}){const{window:o=H}=t;return dt(e,n,o==null?void 0:o.localStorage,t)}const vt={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 mt(e={}){const{type:n="page",touch:t=!0,resetOnTouchEnds:o=!1,initialValue:s={x:0,y:0},window:r=H,target:a=r,scroll:l=!0,eventFilter:i}=e;let u=null;const d=h(s.x),f=h(s.y),c=h(null),m=typeof n=="function"?n:vt[n],p=g=>{const T=m(g);u=g,T&&([d.value,f.value]=T,c.value="mouse")},w=g=>{if(g.touches.length>0){const T=m(g.touches[0]);T&&([d.value,f.value]=T,c.value="touch")}},S=()=>{if(!u||!r)return;const g=m(u);u instanceof MouseEvent&&g&&(d.value=g[0]+r.scrollX,f.value=g[1]+r.scrollY)},v=()=>{d.value=s.x,f.value=s.y},E=i?g=>i(()=>p(g),{}):g=>p(g),k=i?g=>i(()=>w(g),{}):g=>w(g),D=i?()=>i(()=>S(),{}):()=>S();if(a){const g={passive:!0};M(a,["mousemove","dragover"],E,g),t&&n!=="movement"&&(M(a,["touchstart","touchmove"],k,g),o&&M(a,"touchend",v,g)),l&&n==="page"&&M(r,"scroll",D,{passive:!0})}return{x:d,y:f,sourceType:c}}function Yt(e,n={}){const{handleOutside:t=!0,window:o=H}=n,s=n.type||"page",{x:r,y:a,sourceType:l}=mt(n),i=h(e??(o==null?void 0:o.document.body)),u=h(0),d=h(0),f=h(0),c=h(0),m=h(0),p=h(0),w=h(!0);let S=()=>{};return o&&(S=R([i,r,a],()=>{const v=L(i);if(!v||!(v instanceof HTMLElement))return;const{left:E,top:k,width:D,height:g}=v.getBoundingClientRect();f.value=E+(s==="page"?o.pageXOffset:0),c.value=k+(s==="page"?o.pageYOffset:0),m.value=g,p.value=D;const T=r.value-f.value,b=a.value-c.value;w.value=D===0||g===0||T<0||b<0||T>D||b>g,(t||!w.value)&&(u.value=T,d.value=b)},{immediate:!0}),M(document,"mouseleave",()=>{w.value=!0})),{x:r,y:a,sourceType:l,elementX:u,elementY:d,elementPositionX:f,elementPositionY:c,elementHeight:m,elementWidth:p,isOutside:w,stop:S}}function Nt(e={}){const{touch:n=!0,drag:t=!0,capture:o=!1,initialValue:s=!1,window:r=H}=e,a=h(s),l=h(null);if(!r)return{pressed:a,sourceType:l};const i=f=>()=>{a.value=!0,l.value=f},u=()=>{a.value=!1,l.value=null},d=A(()=>L(e.target)||r);return M(d,"mousedown",i("mouse"),{passive:!0,capture:o}),M(r,"mouseleave",u,{passive:!0,capture:o}),M(r,"mouseup",u,{passive:!0,capture:o}),t&&(M(d,"dragstart",i("mouse"),{passive:!0,capture:o}),M(r,"drop",u,{passive:!0,capture:o}),M(r,"dragend",u,{passive:!0,capture:o})),n&&(M(d,"touchstart",i("touch"),{passive:!0,capture:o}),M(r,"touchend",u,{passive:!0,capture:o}),M(r,"touchcancel",u,{passive:!0,capture:o})),{pressed:a,sourceType:l}}function zt(e={}){const{window:n=H}=e,t=U(()=>n&&"screen"in n&&"orientation"in n.screen),o=t.value?n.screen.orientation:{},s=h(o.type),r=h(o.angle||0);return t.value&&M(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 pt(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 It(e,n=!1){const t=h(n);let o=null,s="";R(Me(e),l=>{const i=Q(x(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(x(e));!l||t.value||(B&&(o=M(l,"touchmove",i=>{pt(i)},{passive:!1})),l.style.overflow="hidden",t.value=!0)},a=()=>{const l=Q(x(e));!l||!t.value||(B&&(o==null||o()),l.style.overflow=s,Z.delete(l),t.value=!1)};return N(a),A({get(){return t.value},set(l){l?r():a()}})}function Xt(e,n={}){const{threshold:t=50,onSwipe:o,onSwipeEnd:s,onSwipeStart:r,passive:a=!0,window:l=H}=n,i=K({x:0,y:0}),u=K({x:0,y:0}),d=A(()=>i.x-u.x),f=A(()=>i.y-u.y),{max:c,abs:m}=Math,p=A(()=>c(m(d.value),m(f.value))>=t),w=h(!1),S=A(()=>p.value?m(d.value)>m(f.value)?d.value>0?"left":"right":f.value>0?"up":"down":"none"),v=_=>[_.touches[0].clientX,_.touches[0].clientY],E=(_,y)=>{i.x=_,i.y=y},k=(_,y)=>{u.x=_,u.y=y};let D;const g=ht(l==null?void 0:l.document);a?D=g?{passive:!0}:{capture:!1}:D=g?{passive:!1,capture:!0}:{capture:!0};const T=_=>{w.value&&(s==null||s(_,S.value)),w.value=!1},b=[M(e,"touchstart",_=>{if(_.touches.length!==1)return;D.capture&&!D.passive&&_.preventDefault();const[y,O]=v(_);E(y,O),k(y,O),r==null||r(_)},D),M(e,"touchmove",_=>{if(_.touches.length!==1)return;const[y,O]=v(_);k(y,O),!w.value&&p.value&&(w.value=!0),w.value&&(o==null||o(_))},D),M(e,["touchend","touchcancel"],T,D)];return{isPassiveEventSupported:g,isSwiping:w,direction:S,coordsStart:i,coordsEnd:u,lengthX:d,lengthY:f,stop:()=>b.forEach(_=>_())}}function ht(e){if(!e)return!1;let n=!1;const t={get passive(){return n=!0,!1}};return e.addEventListener("x",W,t),e.removeEventListener("x",W),n}function $t(e={}){const{window:n=H,behavior:t="auto"}=e;if(!n)return{x:h(0),y:h(0)};const o=h(n.scrollX),s=h(n.scrollY),r=A({get(){return o.value},set(l){scrollTo({left:l,behavior:t})}}),a=A({get(){return s.value},set(l){scrollTo({top:l,behavior:t})}});return M(n,"scroll",()=>{o.value=n.scrollX,s.value=n.scrollY},{capture:!1,passive:!0}),{x:r,y:a}}function jt(e={}){const{window:n=H,initialWidth:t=Number.POSITIVE_INFINITY,initialHeight:o=Number.POSITIVE_INFINITY,listenOrientation:s=!0,includeScrollbar:r=!0,type:a="inner"}=e,l=h(t),i=h(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),M("resize",u,{passive:!0}),s){const d=st("(orientation: portrait)");R(d,()=>u())}return{width:l,height:i}}function Bt(e=null,n){const t=h(e),o=A({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()}}}function Te(e){var n;const t=x(e);return(n=t==null?void 0:t.$el)!=null?n:t}const Ae=V?window:void 0;function X(...e){let n,t,o,s;if(typeof e[0]=="string"||Array.isArray(e[0])?([t,o,s]=e,n=Ae):[n,t,o,s]=e,!n)return W;Array.isArray(t)||(t=[t]),Array.isArray(o)||(o=[o]);const r=[],a=()=>{r.forEach(d=>d()),r.length=0},l=(d,f,c,m)=>(d.addEventListener(f,c,m),()=>d.removeEventListener(f,c,m)),i=R(()=>[Te(n),x(s)],([d,f])=>{if(a(),!d)return;const c=be(f)?{...f}:f;r.push(...t.flatMap(m=>o.map(p=>l(d,m,p,c))))},{immediate:!0,flush:"post"}),u=()=>{i(),a()};return N(u),u}const wt=500,gt=10;function ve(e,n,t){var o,s;const r=A(()=>Te(e));let a,l,i,u=!1;function d(){a&&(clearTimeout(a),a=void 0),l=void 0,i=void 0,u=!1}function f(v){var E,k,D;const[g,T,b]=[i,l,u];if(d(),!(t!=null&&t.onMouseUp)||!T||!g||(E=t==null?void 0:t.modifiers)!=null&&E.self&&v.target!==r.value)return;(k=t==null?void 0:t.modifiers)!=null&&k.prevent&&v.preventDefault(),(D=t==null?void 0:t.modifiers)!=null&&D.stop&&v.stopPropagation();const P=v.x-T.x,_=v.y-T.y,y=Math.sqrt(P*P+_*_);t.onMouseUp(v.timeStamp-g,y,b)}function c(v){var E,k,D,g;(E=t==null?void 0:t.modifiers)!=null&&E.self&&v.target!==r.value||(d(),(k=t==null?void 0:t.modifiers)!=null&&k.prevent&&v.preventDefault(),(D=t==null?void 0:t.modifiers)!=null&&D.stop&&v.stopPropagation(),l={x:v.x,y:v.y},i=v.timeStamp,a=setTimeout(()=>{u=!0,n(v)},(g=t==null?void 0:t.delay)!=null?g:wt))}function m(v){var E,k,D,g;if((E=t==null?void 0:t.modifiers)!=null&&E.self&&v.target!==r.value||!l||(t==null?void 0:t.distanceThreshold)===!1)return;(k=t==null?void 0:t.modifiers)!=null&&k.prevent&&v.preventDefault(),(D=t==null?void 0:t.modifiers)!=null&&D.stop&&v.stopPropagation();const T=v.x-l.x,b=v.y-l.y;Math.sqrt(T*T+b*b)>=((g=t==null?void 0:t.distanceThreshold)!=null?g:gt)&&d()}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},w=[X(r,"pointerdown",c,p),X(r,"pointermove",m,p),X(r,["pointerup","pointerleave"],f,p)];return()=>w.forEach(v=>v())}const Vt={[_e.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=Ae}=n,r=h(!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&&(X(e,"mouseenter",()=>l(!0),{passive:!0}),X(e,"mouseleave",()=>l(!1),{passive:!0})),r}const qt={[_e.mounted](e,n){const t=n.value;if(typeof t=="function"){const o=me(e);R(o,s=>t(s))}else{const[o,s]=t,r=me(e,s);R(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 yt(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 St(e,n=!1){const t=h(n);let o=null,s="";R(Me(e),l=>{const i=ee(x(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(x(e));!l||t.value||(B&&(o=X(l,"touchmove",i=>{yt(i)},{passive:!1})),l.style.overflow="hidden",t.value=!0)},a=()=>{const l=ee(x(e));!l||!t.value||(B&&(o==null||o()),l.style.overflow=s,te.delete(l),t.value=!1)};return N(a),A({get(){return t.value},set(l){l?r():a()}})}function bt(){let e=!1;const n=h(!1);return(t,o)=>{if(n.value=o.value,e)return;e=!0;const s=St(t,o.value);R(n,r=>s.value=r)}}bt();export{Ft as A,De as B,Dt as a,st as b,Mt as c,zt as d,jt as e,Pt as f,Xt as g,$t as h,Bt as i,Ht as j,It as k,mt as l,Yt as m,Nt as n,At as o,Rt as p,kt as q,xt as r,M as s,Lt as t,Ct as u,Wt as v,Tt as w,Ot as x,qt as y,Vt as z};
@@ -1 +0,0 @@
1
- import{f as se,u as oe,c as re,r as ae,_ as te,d as ne}from"./main.CIfXFhuz.0.0.19-alpha.4.js";import{F as le,r as _,J as ie,e as j,O as me,R as t,u as e,j as s,T as d,M as o,m as g,f as de,l as ce,V as $,q as ue,n as E,ai as pe,aj as fe}from"./@vue.CIFymae3.0.0.19-alpha.4.js";import{m as N,a as R,X as D}from"./@mdi.DnMbZhUH.0.0.19-alpha.4.js";import{F as f,a as ve}from"./vee-validate.Bo9ok7dW.0.0.19-alpha.4.js";import{i as U}from"./vue3-toastify.AULyD5Ny.0.0.19-alpha.4.js";import{s as _e}from"./pinia.CKEhg5tS.0.0.19-alpha.4.js";import{c as O,d as q,e as J,z as X,V as G,b as H}from"./vuetify.DahT5NSg.0.0.19-alpha.4.js";import{u as ge}from"./vue-i18n.BSWcmo_h.0.0.19-alpha.4.js";import"./axios.CpM4fnec.0.0.19-alpha.4.js";import"./@tanstack.qOZAU3xp.0.0.19-alpha.4.js";import"./vue-router.CglcLmwp.0.0.19-alpha.4.js";import"./@vueuse.CAwL_bcj.0.0.19-alpha.4.js";import"./nprogress.B11HQZ7O.0.0.19-alpha.4.js";import"./@xterm.DIk7m9Ro.0.0.19-alpha.4.js";import"./@vee-validate.C8yy5d3i.0.0.19-alpha.4.js";import"./zod.BaF2dDCd.0.0.19-alpha.4.js";import"./uuid.DvF23Exx.0.0.19-alpha.4.js";import"./socket.io-client.QHRg7xVe.0.0.19-alpha.4.js";import"./engine.io-client.C6wyAukE.0.0.19-alpha.4.js";import"./engine.io-parser.BiEtp6m2.0.0.19-alpha.4.js";import"./@socket.io.Dkula2eQ.0.0.19-alpha.4.js";import"./socket.io-parser.vm4qqzsf.0.0.19-alpha.4.js";import"./rxjs.sidCrT1K.0.0.19-alpha.4.js";import"./tslib.9k7AwCpt.0.0.19-alpha.4.js";import"./vue-inline-svg.ErrqEIY6.0.0.19-alpha.4.js";import"./v-calendar.DTVi51qJ.0.0.19-alpha.4.js";import"./@popperjs.BQBsAJpH.0.0.19-alpha.4.js";import"./@intlify.YW_pt133.0.0.19-alpha.4.js";const b=k=>(pe("data-v-6dca30aa"),k=k(),fe(),k),be={class:"relative"},he={class:"subview-title text-color"},ye={class:"image-upload ml-auto"},we={for:"file-input"},xe={class:"inner-component p-4"},ke={class:"relative"},Ce={for:"username",class:"v-label"},Me=b(()=>s("div",{class:"py-1"},null,-1)),Ve={class:"relative"},$e={for:"password",class:"v-label"},Se=b(()=>s("div",{class:"py-1"},null,-1)),Ie={class:"relative"},Le={for:"passwordConfirm",class:"v-label"},Fe=b(()=>s("div",{class:"py-1"},null,-1)),Te={class:"relative"},ze={for:"sessionTimer",class:"v-label"},Oe=b(()=>s("div",{class:"py-1"},null,-1)),Ae={key:0,style:{"padding-top":"22px"}},Be={class:"relative"},Pe={class:"flex flex-row"},je={class:"v-label m-0 mb-0 ml-2",for:"rememberMe"},Ee={class:"text-sm"},Ne=b(()=>s("div",{class:"py-2"},null,-1)),Re={class:"relative"},De={class:"flex flex-row"},Ue={class:"v-label m-0 mb-0 ml-2",for:"oneLogin"},qe={class:"text-sm"},Je=b(()=>s("div",{class:"py-2"},null,-1)),Xe=le({__name:"Account",setup(k){var B,P;const{smallMobileActive:A}=se(),S=oe(),K=ge(),{loginState:r}=_e(S),I=_("avatar"),C=_(),L=_(),h=_(!1),M=_(!1),V=_(!1);let F=((B=r.value.user)==null?void 0:B.rememberMe)??!1,T=((P=r.value.user)==null?void 0:P.oneLogin)??!1;const Q=()=>{r.value.user&&(r.value.user.rememberMe=!r.value.user.rememberMe)},W=()=>{r.value.user&&(r.value.user.oneLogin=!r.value.user.oneLogin)},Y=()=>{L.value&&(L.value.resetForm(),I.value="avatar",C.value=void 0),r.value.user&&(r.value.user.rememberMe=F,r.value.user.oneLogin=T)},Z=async n=>{var c;const a=(c=n.target)==null?void 0:c.files;C.value=a==null?void 0:a[0],I.value=await ae(n)},ee=async n=>{var y,w,l,i,m,u,x;h.value=!0;let a;const c={...n};delete c.upload;const z=((y=r.value.user)==null?void 0:y.username)!==c.username||c.password&&c.passwordConfirm,v=Object.entries(c).some(([,p])=>p!==void 0);if(C.value&&(a=new FormData,a.append("upload",C.value)),!v&&!a){h.value=!1;return}try{await S.updateUser(c,a,!0),U.success(K.t("components.toast.profile_updated")),F=((w=r.value.user)==null?void 0:w.rememberMe)??F,T=((l=r.value.user)==null?void 0:l.oneLogin)??T,z&&S.logout()}catch(p){U.error(((m=(i=p.response)==null?void 0:i.data)==null?void 0:m.message)??p.message??p),console.error(((x=(u=p.response)==null?void 0:u.data)==null?void 0:x.message)??p.message??p)}h.value=!1};return(n,a)=>{const c=te,z=ie("v-number-input");return j(),me(e(ve),{ref_key:"form",ref:L,class:"flex flex-col w-full","validation-schema":e(re),onSubmit:a[3]||(a[3]=v=>ee(v))},{default:t(()=>{var v,y,w;return[s("div",be,[s("span",he,d(n.$t("views.settings.profile")),1),s("div",ye,[s("label",we,[o(c,{src:e(I),size:"4rem",style:{"border-radius":"4rem",border:"1px solid var(--border)"}},null,8,["src"]),o(e(f),{id:"file-input",type:"file",name:"upload",accept:"image/png,image/jpeg,image/jpg",onChange:a[0]||(a[0]=l=>Z(l))})])]),s("div",xe,[s("div",ke,[s("label",Ce,d(n.$t("components.form.label.username")),1),o(e(f),{name:"username",value:(v=e(r).user)==null?void 0:v.username},{default:t(({field:l,errorMessage:i,errors:m})=>[o(O,g({name:"username",variant:"outlined",density:"compact"},l,{type:"text",error:m.length>0,"error-messages":i}),null,16,["error","error-messages"])]),_:1},8,["value"])]),Me,s("div",Ve,[s("label",$e,d(n.$t("components.form.label.new_password")),1),o(e(f),{name:"password"},{default:t(({field:l,errorMessage:i,errors:m})=>[o(O,g({name:"password",variant:"outlined",density:"compact"},l,{type:e(M)?"text":"password",error:m.length>0,"error-messages":i,"append-inner-icon":e(M)?e(N):e(R),"onClick:appendInner":a[1]||(a[1]=u=>M.value=!e(M))}),null,16,["type","error","error-messages","append-inner-icon"])]),_:1})]),Se,s("div",Ie,[s("label",Le,d(n.$t("components.form.label.new_password_confirm")),1),o(e(f),{name:"passwordConfirm"},{default:t(({field:l,errorMessage:i,errors:m})=>[o(O,g({name:"passwordConfirm",variant:"outlined",density:"compact"},l,{type:e(V)?"text":"password",error:m.length>0,"error-messages":i,"append-inner-icon":e(V)?e(N):e(R),"onClick:appendInner":a[2]||(a[2]=u=>V.value=!e(V))}),null,16,["type","error","error-messages","append-inner-icon"])]),_:1})]),Fe,s("div",Te,[s("label",ze,d(n.$t("components.form.label.session_timer")),1),o(e(f),{name:"sessionTimer",value:(y=e(r).user)==null?void 0:y.sessionTimer},{default:t(({field:l,errorMessage:i,errors:m})=>{var u,x;return[o(z,g({name:"sessionTimer",variant:"outlined",density:"compact"},l,{type:"number",step:600,error:m.length>0,"error-messages":i,disabled:(u=e(r).user)==null?void 0:u.rememberMe,"hide-details":(x=e(r).user)==null?void 0:x.rememberMe}),null,16,["error","error-messages","disabled","hide-details"])]}),_:1},8,["value"])]),Oe,(w=e(r).user)!=null&&w.rememberMe?(j(),de("div",Ae)):ce("",!0),s("div",Be,[o(e(f),{name:"rememberMe",type:"checkbox","checked-value":!0,"unchecked-value":!1},{default:t(({field:l,errorMessage:i,errors:m})=>[s("div",Pe,[o(q,g({"model-value":e(r).user.rememberMe,name:"rememberMe"},l,{color:"#df2a4c",type:"checkbox",error:m.length>0,"error-messages":i,"hide-details":"",onChange:Q}),null,16,["model-value","error","error-messages"]),s("label",je,d(n.$t("components.form.label.remember_me")),1)])]),_:1}),o(X,{variant:"tonal",color:"#df2a4c"},{prepend:t(()=>[o(J,{color:"#df2a4c",size:"20",class:"mt-1"},{default:t(()=>[$(d(e(D)),1)]),_:1})]),default:t(()=>[s("span",Ee,d(n.$t("components.form.hint.remember_me")),1)]),_:1})]),Ne,s("div",Re,[o(e(f),{name:"oneLogin",type:"checkbox","checked-value":!0,"unchecked-value":!1},{default:t(({field:l,errorMessage:i,errors:m})=>{var u;return[s("div",De,[o(q,g({"model-value":(u=e(r).user)==null?void 0:u.oneLogin,name:"oneLogin"},l,{color:"#df2a4c",type:"checkbox",error:m.length>0,"error-messages":i,"hide-details":"",onChange:W}),null,16,["model-value","error","error-messages"]),s("label",Ue,d(n.$t("components.form.label.one_login")),1)])]}),_:1}),o(X,{variant:"tonal",color:"#df2a4c"},{prepend:t(()=>[o(J,{color:"#df2a4c",size:"20",class:"mt-1"},{default:t(()=>[$(d(e(D)),1)]),_:1})]),default:t(()=>[s("span",qe,d(n.$t("components.form.hint.one_login")),1)]),_:1})]),Je])]),s("div",{class:E(["flex flex-row my-5",{"mr-3":e(A)}])},[o(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(h),onClick:ue(Y,["prevent"])},{loader:t(()=>[o(G,{class:"text-color",size:"14",width:"2",indeterminate:""})]),default:t(()=>[$(d(n.$t("components.form.button.cancel")),1)]),_:1},8,["loading"]),o(H,{class:E(["text-white bg-color-primary",{"mr-2":e(A)}]),loading:e(h),elevation:"0",tonal:"",style:{border:"1px solid var(--color-primary-darken-2)"},type:"submit"},{loader:t(()=>[o(G,{color:"#fff",size:"14",width:"2",indeterminate:""})]),default:t(()=>[$(d(n.$t("components.form.button.save")),1)]),_:1},8,["loading","class"])],2)]}),_:1},8,["validation-schema"])}}}),ws=ne(Xe,[["__scopeId","data-v-6dca30aa"]]);export{ws as default};
@@ -1,2 +0,0 @@
1
- const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["vue3-apexcharts.CJ7MvpHI.0.0.19-alpha.4.js","@vue.CIFymae3.0.0.19-alpha.4.js"])))=>i.map(i=>d[i]);
2
- var he=Object.defineProperty;var ye=(g,a,c)=>a in g?he(g,a,{enumerable:!0,configurable:!0,writable:!0,value:c}):g[a]=c;var ie=(g,a,c)=>ye(g,typeof a!="symbol"?a+"":a,c);import{F as q,t as de,r as v,b as Y,c as A,J as ve,e as k,O as T,R as n,j as b,u as s,V as D,T as x,f as M,l as be,g as J,q as z,M as f,at as ke,B as fe,w as G,a3 as X,m as le,ar as B,U as xe,n as pe}from"./@vue.CIFymae3.0.0.19-alpha.4.js";import{ay as we,at as ce}from"./@mdi.DnMbZhUH.0.0.19-alpha.4.js";import{i as U,u as We,s as H,O as Le,Q as Ne,d as Z,a as Se,N as Te,y as ee,P as d,x as ge,f as Pe}from"./main.CIfXFhuz.0.0.19-alpha.4.js";import{s as _e}from"./pinia.CKEhg5tS.0.0.19-alpha.4.js";import{l as te,T as se,b as ae,e as oe,a0 as Ce,a1 as re,X as ue,m as K}from"./vuetify.DahT5NSg.0.0.19-alpha.4.js";import{i as ne}from"./vue3-toastify.AULyD5Ny.0.0.19-alpha.4.js";import{P as Oe}from"./plugins.DVuRTIDq.0.0.19-alpha.4.js";import{u as Re,a as Ee,b as De}from"./@tanstack.qOZAU3xp.0.0.19-alpha.4.js";import{S as $e}from"./system.BXNYWUWF.0.0.19-alpha.4.js";import"./vue-i18n.BSWcmo_h.0.0.19-alpha.4.js";import"./@intlify.YW_pt133.0.0.19-alpha.4.js";import"./axios.CpM4fnec.0.0.19-alpha.4.js";import"./vue-router.CglcLmwp.0.0.19-alpha.4.js";import"./@vueuse.CAwL_bcj.0.0.19-alpha.4.js";import"./nprogress.B11HQZ7O.0.0.19-alpha.4.js";import"./@xterm.DIk7m9Ro.0.0.19-alpha.4.js";import"./vee-validate.Bo9ok7dW.0.0.19-alpha.4.js";import"./@vee-validate.C8yy5d3i.0.0.19-alpha.4.js";import"./zod.BaF2dDCd.0.0.19-alpha.4.js";import"./uuid.DvF23Exx.0.0.19-alpha.4.js";import"./socket.io-client.QHRg7xVe.0.0.19-alpha.4.js";import"./engine.io-client.C6wyAukE.0.0.19-alpha.4.js";import"./engine.io-parser.BiEtp6m2.0.0.19-alpha.4.js";import"./@socket.io.Dkula2eQ.0.0.19-alpha.4.js";import"./socket.io-parser.vm4qqzsf.0.0.19-alpha.4.js";import"./rxjs.sidCrT1K.0.0.19-alpha.4.js";import"./tslib.9k7AwCpt.0.0.19-alpha.4.js";import"./vue-inline-svg.ErrqEIY6.0.0.19-alpha.4.js";import"./v-calendar.DTVi51qJ.0.0.19-alpha.4.js";import"./@popperjs.BQBsAJpH.0.0.19-alpha.4.js";var $=(g=>(g.READY="ready",g.RESTARTING="restarting",g.STARTING="starting",g.STARTED="started",g.STOPPED="stopped",g.ERROR="error",g.UNKNOWN="unknown",g))($||{});const Ae={class:"flex items-center first-item"},Ie={key:1},Fe={class:"text-center pt-2"},Qe=q({__name:"VUserTable",props:{loading:{type:Boolean,default:!1}},setup(g){const a=g,{t:c}=U.global,N=new Ne,S=We(),{isTouch:w}=H(),{loginState:p}=_e(S),{loading:h}=de(a),i=v({pageSize:5,page:1}),W=Y([{title:c("components.user_table.title_username"),align:"start",key:"username",value:"decoded.username",sortable:!0},{title:c("components.user_table.title_role"),align:"start",key:"role",value:"decoded.role",sortable:!0},{title:c("components.user_table.title_address"),align:"start",key:"address",value:"clientData.address",sortable:!0},{title:c("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}]),y=A(()=>F.value||l.value||h.value),R=A(()=>{var P;const O=Math.ceil((((P=u.value)==null?void 0:P.pagination.totalItems)||0)/i.value.pageSize);return O===1&&(i.value.page=1),O}),L=A(()=>{var O;return(O=u.value)==null?void 0:O.result.map(P=>({encoded:P.token,decoded:Le(P.token.access_token),clientData:P.clientData}))}),{data:u,isLoading:l,isPlaceholderData:I}=N.listQuery(i,!0),{mutate:E,isPending:F}=N.logoutTokenQuery(),Q=()=>{i.value.page=Math.max(i.value.page-1,1)},V=()=>{I.value||(i.value.page=i.value.page+1)};return(O,P)=>{const j=ve("router-link");return k(),T(re,{"items-per-page":s(i).pageSize,headers:s(W),items:s(L),class:"elevation-0","item-value":"username","hide-default-footer":"","mobile-breakpoint":"sm",hover:""},{"item.username":n(({item:C})=>[b("div",Ae,[C.encoded.access_token===s(p).access_token?(k(),T(j,{key:0,to:"/settings/account"},{default:n(()=>[D(x(C.decoded.username),1)]),_:2},1024)):(k(),M("div",Ie,x(C.decoded.username),1)),C.encoded.access_token===s(p).access_token?(k(),T(te,{key:2,color:"#df2a4c",class:"ml-2",inline:"",content:O.$t("components.user_table.you")},null,8,["content"])):be("",!0)])]),"item.delete":n(({item:C})=>[J((k(),T(ae,{color:"#df2a4c",density:"compact",loading:s(y),icon:"",onClick:z(e=>s(E)({id:C.encoded._id,access_token:C.encoded.access_token}),["prevent"])},{default:n(()=>[f(oe,{size:"20"},{default:n(()=>[D(x(s(we)),1)]),_:1})]),_:2},1032,["loading","onClick"])),[[se,{disabled:s(w),text:O.$t("components.form.tooltip.restart")}]])]),bottom:n(()=>[b("div",Fe,[f(Ce,{modelValue:s(i).page,"onUpdate:modelValue":P[0]||(P[0]=C=>s(i).page=C),length:s(R),onPrev:z(Q,["prevent"]),onNext:z(V,["prevent"])},null,8,["modelValue","length"])])]),_:1},8,["items-per-page","headers","items"])}}}),Ve=Z(Qe,[["__scopeId","data-v-0f04954a"]]),je={key:0,class:"text-disabled"},me=q({__name:"VMetricCharts",props:{type:{},processInfo:{},maxDataPoints:{default:30},width:{default:200},height:{default:25},chartType:{default:"bar"}},async setup(g){let a,c;const N=([a,c]=ke(()=>Te(()=>import("./vue3-apexcharts.CJ7MvpHI.0.0.19-alpha.4.js"),__vite__mapDeps([0,1]))),a=await a,c(),a).default,S=Se(),w=g,{theme:p}=_e(S),{type:h,processInfo:i,maxDataPoints:W,chartType:y}=de(w),R=A(()=>{const l=(i.value||[]).map(E=>h.value==="cpu"?E.cpuLoad:E.memLoad).slice(-W.value);return[{data:[...l,...Array(W.value-l.length).fill(0)].map(E=>parseFloat(E))}]}),L=A(()=>[{data:(i.value||[]).map(l=>l.timestamp)}]),u=A(()=>({chart:{type:y.value,sparkline:{enabled:!0}},plotOptions:{bar:{columnWidth:"80%"}},colors:[({value:l})=>l>=90?"#FA5252":l>=50?"#FF9966":"#df2a4c"],xaxis:{crosshairs:{width:1},axisBorder:{show:!1},axisTicks:{show:!1},categories:L.value[0].data},yaxis:{show:!1,labels:{formatter:l=>Math.ceil(l).toString()},min:0},tooltip:{theme:p.value,fixed:{enabled:!1},marker:{show:!1},y:{title:{formatter:function(){return""}},formatter:l=>`${l} %`},x:{formatter:l=>new Date(l).toLocaleTimeString([],{hour:"2-digit",minute:"2-digit"})}}}));return(l,I)=>(k(),M("div",null,[!s(i)||!s(i).length?(k(),M("span",je,x(l.$t("components.charts.no_data")),1)):(k(),T(s(N),{key:1,type:s(y),options:s(u),series:s(R),height:l.height,width:l.width,"data-no-clone":""},null,8,["type","options","series","height","width"]))]))}}),ze={class:"flex items-center first-item"},Be=q({__name:"VPluginTable",setup(g){const{t:a}=U.global,{isTouch:c}=H(),N=ee(),S=new Oe,w=v(),p=v(),h=v({}),i=v([]),W=v(30),y=v(200),R={pid:-1,cpuLoad:"0.00",memLoad:"0.00",timestamp:0},L=v({}),u=v({}),l=A(()=>Object.values(L.value).filter(Boolean)),I=Y([{title:a("components.process_table.title_name"),align:"start",key:"name",value:"name",minWidth:"200px",sortable:!0},{title:a("components.process_table.title_pid"),align:"start",key:"pid",value:"pid",width:"100px",minWidth:"100px",maxWidth:"100px",sortable:!0},{title:a("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:y.value,minWidth:y.value,maxWidth:y.value,sortable:!1},{title:a("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:y.value,minWidth:y.value,maxWidth:y.value,sortable:!1},{title:"",align:"end",key:"restart",value:"restart",width:"60px",minWidth:"60px",maxWidth:"60px",sortable:!1}]),{data:E,isLoading:F,suspense:Q}=S.getPluginsQuery(fe({page:1,pageSize:-1})),{mutateAsync:V}=S.restartPluginQuery(),O=A(()=>e=>i.value.includes(e));G(u,e=>{for(const[r,t]of Object.entries(e))L.value[r]=t[t.length-1]??{name:r,...R}},{deep:!0,immediate:!0}),G(E,e=>{if(e)for(const r of e.result)r.disabled||(u.value[r.pluginName]||(u.value[r.pluginName]=[]),h.value[r.pluginName]||(h.value[r.pluginName]={name:r.pluginName,status:d.UNKNOWN}))},{deep:!0,immediate:!0});const P=e=>{var t;switch(((t=h.value[e])==null?void 0:t.status)??d.UNKNOWN){case d.ERROR:return"#9d5752";case d.STARTING:return"orange";case d.READY:return"yellow";case d.STARTED:return"green";case d.STOPPED:return"red";case d.DISABLED:return"#2196f3";case d.UNKNOWN:return"gray";default:return"gray"}},j=e=>{var t;switch(((t=h.value[e])==null?void 0:t.status)??d.UNKNOWN){case d.ERROR:return a("components.process_table.status_error");case d.STOPPED:return a("components.process_table.status_stopped");case d.READY:return a("components.process_table.status_ready");case d.STARTING:return a("components.process_table.status_starting");case d.STARTED:return a("components.process_table.status_started");default:return a("components.process_table.status_unknown")}},C=async e=>{var r,t,o,m;i.value.push(e);try{await V({pluginName:e})}catch(_){console.error(((t=(r=_.response)==null?void 0:r.data)==null?void 0:t.message)??_.message??_),ne.error(((m=(o=_.response)==null?void 0:o.data)==null?void 0:m.message)??_.message??_)}finally{i.value=i.value.filter(_=>_!==e)}};return X(async()=>{if(w.value=N.getExistingNamespace("/metrics"),p.value=N.getExistingNamespace("/status"),!w.value)throw new Error("Not connected to metrics!");if(!p.value)throw new Error("Not connected to status!");await Q(),await new Promise(e=>setTimeout(e,10)),p.value.socket.emit("get-plugin-process-status"),p.value.socket.on("plugin-process-status",e=>{for(const[r,t]of Object.entries(e))h.value[r]=t}),w.value.request("get-plugins-process-info").subscribe(e=>{u.value=e}),w.value.socket.on("process-infos",e=>{const r=e.plugins;Object.keys(u.value).forEach(t=>{r[t]||delete u.value[t]}),Object.keys(L.value).forEach(t=>{r[t]||delete L.value[t]});for(const[t,o]of Object.entries(r))u.value[t]||(u.value[t]=[]),u.value[t].push(o),u.value[t].slice(-W.value)})}),(e,r)=>{const t=ve("router-link"),o=me;return k(),T(re,{"items-per-page":-1,headers:s(I),items:s(l),class:"elevation-0",loading:s(F),"hide-default-footer":"","mobile-breakpoint":"sm",hover:""},{"item.name":n(({item:m})=>[b("div",ze,[f(ue,{location:"top",text:j(m.name)},{activator:n(({props:_})=>[f(te,le(_,{color:P(m.name),dot:"",inline:""}),null,16,["color"])]),_:2},1032,["text"]),f(t,{to:`/plugins/${m.name}`,class:"ml-1"},{default:n(()=>[D(x(m.name),1)]),_:2},1032,["to"])])]),"item.cpuLoad":n(({item:m})=>[f(K,{color:parseFloat(m.cpuLoad)>=15?"red":void 0,density:"compact",size:"small"},{default:n(()=>[D(x(m.cpuLoad)+" %",1)]),_:2},1032,["color"])]),"item.cpuLoadChart":n(({item:m})=>[(k(),T(B,null,{default:n(()=>[f(o,{type:"cpu","max-data-points":s(W),"process-info":s(u)[m.name]},null,8,["max-data-points","process-info"])]),_:2},1024))]),"item.memLoad":n(({item:m})=>[f(K,{color:parseFloat(m.memLoad)>=15?"red":void 0,density:"compact",size:"small"},{default:n(()=>[D(x(m.memLoad)+" %",1)]),_:2},1032,["color"])]),"item.memLoadChart":n(({item:m})=>[(k(),T(B,null,{default:n(()=>[f(o,{type:"memory","max-data-points":s(W),"process-info":s(u)[m.name]},null,8,["max-data-points","process-info"])]),_:2},1024))]),"item.restart":n(({item:m})=>[J((k(),T(ae,{color:"#df2a4c",density:"compact",loading:s(O)(m.name),icon:"",onClick:z(_=>C(m.name),["prevent"])},{default:n(()=>[f(oe,{size:"20"},{default:n(()=>[D(x(s(ce)),1)]),_:1})]),_:2},1032,["loading","onClick"])),[[se,{disabled:s(c),text:e.$t("components.form.tooltip.restart")}]])]),bottom:n(()=>[]),_:1},8,["headers","items","loading"])}}}),Ke=Z(Be,[["__scopeId","data-v-5af279b1"]]),qe=async({parameter:g,signal:a})=>(await ge.get("/frameworkers",{params:g,signal:a})).data,Ge=async({frameWorkerName:g})=>(await ge.put(`/frameworkers/${g}/restart`)).data;class Ue{constructor(){ie(this,"_queryClient",Re());ie(this,"queryActivator",v([{name:"getFrameWorkersQuery",enabled:!0}]))}get queryClient(){return this._queryClient}getFrameWorkersQuery(a){return Ee({queryKey:["frameWorkerList",a],queryFn:({signal:c})=>qe({parameter:s(a),signal:c}),placeholderData:c=>c,enabled:()=>this.queryActivator.value.some(c=>c.name==="getFrameWorkersQuery"&&c.enabled)})}restartFrameWorkerQuery(){return De({mutationFn:Ge,onSuccess:async(a,c)=>{await this._queryClient.refetchQueries({queryKey:["frameWorkers",c.frameWorkerName]}),ne.success(U.global.t("components.toast.frame_worker_restarted"))}})}toggleQueryActivator(a,c){const N=this.queryActivator.value.find(S=>S.name===a);N&&(N.enabled=c)}}const Me={class:"flex items-center first-item"},Ye={class:"ml-1"},Je=q({__name:"VFrameWorkerTable",setup(g){const{t:a}=U.global,c=ee(),{isTouch:N}=H(),S=new Ue,w=v(),p=v(),h=v({}),i=v([]),W=v(30),y=v(200),R={pid:-1,cpuLoad:"0.00",memLoad:"0.00",timestamp:0},L=v({}),u=v({}),l=A(()=>Object.values(L.value).filter(Boolean)),I=Y([{title:a("components.process_table.title_name"),align:"start",key:"name",value:"name",minWidth:"200px",sortable:!0},{title:a("components.process_table.title_pid"),align:"start",key:"pid",value:"pid",width:"100px",minWidth:"100px",maxWidth:"100px",sortable:!0},{title:a("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:y.value,minWidth:y.value,maxWidth:y.value,sortable:!1},{title:a("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:y.value,minWidth:y.value,maxWidth:y.value,sortable:!1},{title:"",align:"end",key:"restart",value:"restart",width:"60px",minWidth:"60px",maxWidth:"60px",sortable:!1}]),{data:E,isLoading:F,suspense:Q}=S.getFrameWorkersQuery(fe({page:1,pageSize:-1})),{mutateAsync:V}=S.restartFrameWorkerQuery(),O=A(()=>e=>i.value.includes(e));G(u,e=>{for(const[r,t]of Object.entries(e))L.value[r]=t[t.length-1]??{name:r,...R}},{deep:!0,immediate:!0}),G(E,e=>{if(e)for(const r of e.result)u.value[r.name]||(u.value[r.name]=[]),h.value[r.name]||(h.value[r.name]={name:r.name,status:d.UNKNOWN})},{deep:!0,immediate:!0});const P=e=>{var t;switch(((t=h.value[e])==null?void 0:t.status)??d.UNKNOWN){case d.ERROR:return"#9d5752";case d.STARTING:return"orange";case d.READY:return"yellow";case d.STARTED:return"green";case d.STOPPED:return"red";case d.DISABLED:return"#2196f3";case d.UNKNOWN:return"gray";default:return"gray"}},j=e=>{var t;switch(((t=h.value[e])==null?void 0:t.status)??d.UNKNOWN){case d.ERROR:return a("components.process_table.status_error");case d.STOPPED:return a("components.process_table.status_stopped");case d.READY:return a("components.process_table.status_ready");case d.STARTING:return a("components.process_table.status_starting");case d.STARTED:return a("components.process_table.status_started");default:return a("components.process_table.status_unknown")}},C=async e=>{var r,t,o,m;i.value.push(e);try{await V({frameWorkerName:e})}catch(_){console.error(((t=(r=_.response)==null?void 0:r.data)==null?void 0:t.message)??_.message??_),ne.error(((m=(o=_.response)==null?void 0:o.data)==null?void 0:m.message)??_.message??_)}finally{i.value=i.value.filter(_=>_!==e)}};return X(async()=>{if(w.value=c.getExistingNamespace("/metrics"),p.value=c.getExistingNamespace("/status"),!w.value)throw new Error("Not connected to metrics!");if(!p.value)throw new Error("Not connected to status!");await Q(),await new Promise(e=>setTimeout(e,10)),p.value.socket.emit("get-frameworker-process-status"),p.value.socket.on("frameworker-process-status",e=>{for(const[r,t]of Object.entries(e))h.value[r]=t}),w.value.request("get-frameworker-process-info").subscribe(e=>{u.value=e}),w.value.socket.on("process-infos",e=>{const r=e.workers;Object.keys(u.value).forEach(t=>{r[t]||delete u.value[t]}),Object.keys(L.value).forEach(t=>{r[t]||delete L.value[t]});for(const[t,o]of Object.entries(r))u.value[t]||(u.value[t]=[]),u.value[t].push(o),u.value[t].slice(-W.value)})}),(e,r)=>{const t=me;return k(),T(re,{"items-per-page":-1,headers:s(I),items:s(l),class:"elevation-0",loading:s(F),"hide-default-footer":"","mobile-breakpoint":"sm",hover:""},{"item.name":n(({item:o})=>[b("div",Me,[f(ue,{location:"top",text:j(o.name)},{activator:n(({props:m})=>[f(te,le(m,{color:P(o.name),dot:"",inline:""}),null,16,["color"])]),_:2},1032,["text"]),b("div",Ye,x(o.name),1)])]),"item.cpuLoad":n(({item:o})=>[f(K,{color:parseFloat(o.cpuLoad)>=15?"red":void 0,density:"compact",size:"small"},{default:n(()=>[D(x(o.cpuLoad)+" %",1)]),_:2},1032,["color"])]),"item.cpuLoadChart":n(({item:o})=>[(k(),T(B,null,{default:n(()=>[f(t,{type:"cpu","max-data-points":s(W),"process-info":s(u)[o.name]},null,8,["max-data-points","process-info"])]),_:2},1024))]),"item.memLoad":n(({item:o})=>[f(K,{color:parseFloat(o.memLoad)>=15?"red":void 0,density:"compact",size:"small"},{default:n(()=>[D(x(o.memLoad)+" %",1)]),_:2},1032,["color"])]),"item.memLoadChart":n(({item:o})=>[(k(),T(B,null,{default:n(()=>[f(t,{type:"memory","max-data-points":s(W),"process-info":s(u)[o.name]},null,8,["max-data-points","process-info"])]),_:2},1024))]),"item.restart":n(({item:o})=>[J((k(),T(ae,{color:"#df2a4c",density:"compact",loading:s(O)(o.name),icon:"",onClick:z(m=>C(o.name),["prevent"])},{default:n(()=>[f(oe,{size:"20"},{default:n(()=>[D(x(s(ce)),1)]),_:1})]),_:2},1032,["loading","onClick"])),[[se,{disabled:s(N),text:e.$t("components.form.tooltip.restart")}]])]),bottom:n(()=>[]),_:1},8,["headers","items","loading"])}}}),Xe=Z(Je,[["__scopeId","data-v-6a64f1d1"]]),He={class:"flex items-center first-item"},Ze={class:"ml-1"},et=q({__name:"VProcessTable",setup(g){const{t:a}=U.global,c=ee(),{isTouch:N}=H(),S=new $e,w=v(),p=v(),h=v(30),i=v(200),W=v($.UNKNOWN),y=v($.UNKNOWN),R=v($.UNKNOWN),L={pid:-1,cpuLoad:"0.00",memLoad:"0.00",timestamp:0},u=v({server:{name:"server",...L},go2rtc:{name:"go2rtc",...L},nats:{name:"nats",...L}}),l=v({server:[],go2rtc:[],nats:[]}),I=A(()=>Object.values(u.value).filter(Boolean)),E=Y([{title:a("components.process_table.title_name"),align:"start",key:"name",value:"name",minWidth:"200px",sortable:!0},{title:a("components.process_table.title_pid"),align:"start",key:"pid",value:"pid",width:"100px",minWidth:"100px",maxWidth:"100px",sortable:!0},{title:a("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:i.value,minWidth:i.value,maxWidth:i.value,sortable:!1},{title:a("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:i.value,minWidth:i.value,maxWidth:i.value,sortable:!1},{title:"",align:"end",key:"restart",value:"restart",width:"60px",minWidth:"60px",maxWidth:"60px",sortable:!1}]),{mutateAsync:F,isPending:Q}=S.restartGo2RtcQuery(),{mutateAsync:V,isPending:O}=S.restartServerQuery();G(l,e=>{u.value.server=e.server[e.server.length-1]??{...L,name:"server"},u.value.go2rtc=e.go2rtc[e.go2rtc.length-1]??{...L,name:"go2rtc"},u.value.nats=e.nats[e.nats.length-1]??{...L,name:"nats"}},{deep:!0,immediate:!0});const P=e=>{switch(e){case"server":return W.value;case"go2rtc":return y.value;case"nats":return R.value;default:return $.UNKNOWN}},j=e=>{switch(P(e)){case $.ERROR:return"#9d5752";case $.STARTING:return"orange";case $.READY:return"yellow";case $.STARTED:return"green";case $.STOPPED:return"red";case $.UNKNOWN:return"gray";default:return"gray"}},C=async e=>{var r,t,o,m;try{e==="server"?await V():await F()}catch(_){console.error(((t=(r=_.response)==null?void 0:r.data)==null?void 0:t.message)??_.message??_),ne.error(((m=(o=_.response)==null?void 0:o.data)==null?void 0:m.message)??_.message??_)}};return X(async()=>{if(w.value=c.getExistingNamespace("/metrics"),p.value=c.getExistingNamespace("/status"),!w.value)throw new Error("Not connected to metrics!");if(!p.value)throw new Error("Not connected to status!");await new Promise(e=>setTimeout(e,10)),p.value.socket.emit("get-process-status"),p.value.socket.on("process-status",e=>{e.server&&(W.value=e.server.status),e.go2rtc&&(y.value=e.go2rtc.status),e.nats&&(R.value=e.nats.status)}),w.value.request("get-server-process-info").subscribe(e=>{l.value=e}),w.value.socket.on("process-infos",e=>{const r=e.server,t=e.go2rtc,o=e.nats;l.value.server.push(r),l.value.server.slice(-h.value),l.value.go2rtc.push(t),l.value.go2rtc.slice(-h.value),l.value.nats.push(o),l.value.nats.slice(-h.value)})}),(e,r)=>{const t=me;return k(),T(re,{"items-per-page":-1,headers:s(E),items:s(I),class:"elevation-0","hide-default-footer":"","mobile-breakpoint":"sm",hover:""},{"item.name":n(({item:o})=>[b("div",He,[f(ue,{location:"top",text:e.$t(`components.process_table.status_${P(o.name)}`)},{activator:n(({props:m})=>[f(te,le(m,{color:j(o.name),dot:"",inline:""}),null,16,["color"])]),_:2},1032,["text"]),b("div",Ze,x(o.name),1)])]),"item.cpuLoad":n(({item:o})=>[f(K,{color:parseFloat(o.cpuLoad)>=15?"red":void 0,density:"compact",size:"small"},{default:n(()=>[D(x(o.cpuLoad)+" %",1)]),_:2},1032,["color"])]),"item.cpuLoadChart":n(({item:o})=>[(k(),T(B,null,{default:n(()=>[f(t,{type:"cpu","max-data-points":s(h),"process-info":o.name==="server"?s(l).server:o.name==="go2rtc"?s(l).go2rtc:s(l).nats},null,8,["max-data-points","process-info"])]),_:2},1024))]),"item.memLoad":n(({item:o})=>[f(K,{color:parseFloat(o.cpuLoad)>=15?"red":void 0,density:"compact",size:"small"},{default:n(()=>[D(x(o.cpuLoad)+" %",1)]),_:2},1032,["color"])]),"item.memLoadChart":n(({item:o})=>[(k(),T(B,null,{default:n(()=>[f(t,{type:"memory","max-data-points":s(h),"process-info":o.name==="server"?s(l).server:o.name==="go2rtc"?s(l).go2rtc:s(l).nats},null,8,["max-data-points","process-info"])]),_:2},1024))]),"item.restart":n(({item:o})=>[J((k(),T(ae,{color:"#df2a4c",density:"compact",loading:o.name==="server"?s(O):s(Q),icon:"",onClick:z(m=>C(o.name),["prevent"])},{default:n(()=>[f(oe,{size:"20"},{default:n(()=>[D(x(s(ce)),1)]),_:1})]),_:2},1032,["loading","onClick"])),[[se,{disabled:s(N),text:e.$t("components.form.tooltip.restart")}]])]),bottom:n(()=>[]),_:1},8,["headers","items"])}}}),tt=Z(et,[["__scopeId","data-v-4dac97c4"]]),st={class:"h-full w-full inline-size mb-safe"},at={class:"page-title"},ot={class:"subview-title text-color"},rt={class:"inner-component p-4"},nt={class:"mt-10"},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"},pt={class:"mt-10"},dt={class:"subview-title text-color"},vt={class:"inner-component p-4"},Gt=q({__name:"Adminpanel",setup(g){const a=ee(),{smallMobileActive:c}=Pe(),N=v(),S=v(),w=v(!1);return X(()=>{N.value=a.connectToNamespace("/metrics"),S.value=a.connectToNamespace("/status")}),xe(()=>{var p,h,i,W;(h=(p=N.value)==null?void 0:p.end)==null||h.call(p),(W=(i=S.value)==null?void 0:i.end)==null||W.call(i)}),(p,h)=>{const i=tt,W=Xe,y=Ke,R=Ve;return k(),M("main",{class:pe(["w-full h-full",{"px-0":s(c)}])},[b("div",st,[b("div",{class:pe(["mb-3 flex w-full items-center",{"px-2":s(c)}]),style:{height:"30px"}},[b("h1",at,x(p.$t(`views.${String(p.$route.name).toLowerCase()}.title`)),1)],2),b("div",null,[b("span",ot,x(p.$t("views.adminpanel.system")),1),b("div",rt,[f(i)])]),b("div",nt,[b("span",it,x(p.$t("views.adminpanel.frameworker")),1),b("div",lt,[f(W)])]),b("div",ct,[b("span",ut,x(p.$t("views.adminpanel.plugins")),1),b("div",mt,[f(y)])]),b("div",pt,[b("span",dt,x(p.$t("views.adminpanel.currently_loggedin_users")),1),b("div",vt,[f(R,{loading:s(w)},null,8,["loading"])])])])],2)}}});export{Gt as default};
@@ -1 +0,0 @@
1
- import{b as _,a as f}from"./main.CIfXFhuz.0.0.19-alpha.4.js";import{s as p}from"./pinia.CKEhg5tS.0.0.19-alpha.4.js";import{y as c,d as h}from"./vuetify.DahT5NSg.0.0.19-alpha.4.js";import{F as b,e as V,f as g,j as e,T as i,M as r,u as t,i as d}from"./@vue.CIFymae3.0.0.19-alpha.4.js";import"./vue3-toastify.AULyD5Ny.0.0.19-alpha.4.js";import"./vue-i18n.BSWcmo_h.0.0.19-alpha.4.js";import"./@intlify.YW_pt133.0.0.19-alpha.4.js";import"./axios.CpM4fnec.0.0.19-alpha.4.js";import"./@tanstack.qOZAU3xp.0.0.19-alpha.4.js";import"./vue-router.CglcLmwp.0.0.19-alpha.4.js";import"./@vueuse.CAwL_bcj.0.0.19-alpha.4.js";import"./nprogress.B11HQZ7O.0.0.19-alpha.4.js";import"./@xterm.DIk7m9Ro.0.0.19-alpha.4.js";import"./@mdi.DnMbZhUH.0.0.19-alpha.4.js";import"./vee-validate.Bo9ok7dW.0.0.19-alpha.4.js";import"./@vee-validate.C8yy5d3i.0.0.19-alpha.4.js";import"./zod.BaF2dDCd.0.0.19-alpha.4.js";import"./uuid.DvF23Exx.0.0.19-alpha.4.js";import"./socket.io-client.QHRg7xVe.0.0.19-alpha.4.js";import"./engine.io-client.C6wyAukE.0.0.19-alpha.4.js";import"./engine.io-parser.BiEtp6m2.0.0.19-alpha.4.js";import"./@socket.io.Dkula2eQ.0.0.19-alpha.4.js";import"./socket.io-parser.vm4qqzsf.0.0.19-alpha.4.js";import"./rxjs.sidCrT1K.0.0.19-alpha.4.js";import"./tslib.9k7AwCpt.0.0.19-alpha.4.js";import"./vue-inline-svg.ErrqEIY6.0.0.19-alpha.4.js";import"./v-calendar.DTVi51qJ.0.0.19-alpha.4.js";import"./@popperjs.BQBsAJpH.0.0.19-alpha.4.js";const y={class:"subview-title text-color"},w={class:"inner-component p-4"},$={class:"relative"},k={for:"theme",class:"v-label"},x=e("div",{class:"py-2"},null,-1),S={class:"ml-auto flex"},B={class:"flex flex-row"},T={class:"v-label m-0 mb-0 ml-2",for:"oneLogin"},U=e("div",{class:"my-8"},null,-1),C={class:"subview-title text-color"},L={class:"inner-component p-4"},M={class:"relative"},N={for:"language",class:"v-label"},re=b({__name:"Appearance",setup(R){const{locale:n,languages:u}=p(_()),{colors:v,theme:m,autoMode:a}=p(f());return(l,o)=>(V(),g("div",null,[e("div",null,[e("span",y,i(l.$t("views.settings.theme")),1),e("div",w,[e("div",$,[e("label",k,i(l.$t("components.form.label.theme")),1),r(c,{modelValue:t(m),"onUpdate:modelValue":o[0]||(o[0]=s=>d(m)?m.value=s:null),variant:"outlined",density:"compact",name:"theme","hide-details":"",items:t(v),disabled:t(a)},null,8,["modelValue","items","disabled"])]),x,e("div",null,[e("div",S,[e("div",B,[r(h,{modelValue:t(a),"onUpdate:modelValue":o[1]||(o[1]=s=>d(a)?a.value=s:null),color:"#df2a4c",type:"checkbox","hide-details":""},null,8,["modelValue"]),e("span",T,i(l.$t("components.form.label.system_preference")),1)])])])])]),U,e("div",null,[e("span",C,i(l.$t("views.settings.locale")),1),e("div",L,[e("div",M,[e("label",N,i(l.$t("components.form.label.language")),1),r(c,{modelValue:t(n),"onUpdate:modelValue":o[2]||(o[2]=s=>d(n)?n.value=s:null),variant:"outlined",density:"compact",name:"language","hide-details":"",items:t(u)},null,8,["modelValue","items"])])])])]))}});export{re as default};
@@ -1 +0,0 @@
1
- import{x as j,X as T,w as R}from"./main.CIfXFhuz.0.0.19-alpha.4.js";import{F as L,t as U,r as f,e as v,f as I,j as s,M as _,R as b,T as r,u,l as C,O as D,q as h,V as B,ae as J,i as E}from"./@vue.CIFymae3.0.0.19-alpha.4.js";import{i as F}from"./vue3-toastify.AULyD5Ny.0.0.19-alpha.4.js";import{r as M}from"./system.BXNYWUWF.0.0.19-alpha.4.js";import{aA as A,Y as q}from"./@mdi.DnMbZhUH.0.0.19-alpha.4.js";import{e as O,a2 as X,b as z,n as Y}from"./vuetify.DahT5NSg.0.0.19-alpha.4.js";import{u as G}from"./vue-i18n.BSWcmo_h.0.0.19-alpha.4.js";import"./axios.CpM4fnec.0.0.19-alpha.4.js";import"./@tanstack.qOZAU3xp.0.0.19-alpha.4.js";import"./pinia.CKEhg5tS.0.0.19-alpha.4.js";import"./vue-router.CglcLmwp.0.0.19-alpha.4.js";import"./@vueuse.CAwL_bcj.0.0.19-alpha.4.js";import"./nprogress.B11HQZ7O.0.0.19-alpha.4.js";import"./@xterm.DIk7m9Ro.0.0.19-alpha.4.js";import"./vee-validate.Bo9ok7dW.0.0.19-alpha.4.js";import"./@vee-validate.C8yy5d3i.0.0.19-alpha.4.js";import"./zod.BaF2dDCd.0.0.19-alpha.4.js";import"./uuid.DvF23Exx.0.0.19-alpha.4.js";import"./socket.io-client.QHRg7xVe.0.0.19-alpha.4.js";import"./engine.io-client.C6wyAukE.0.0.19-alpha.4.js";import"./engine.io-parser.BiEtp6m2.0.0.19-alpha.4.js";import"./@socket.io.Dkula2eQ.0.0.19-alpha.4.js";import"./socket.io-parser.vm4qqzsf.0.0.19-alpha.4.js";import"./rxjs.sidCrT1K.0.0.19-alpha.4.js";import"./tslib.9k7AwCpt.0.0.19-alpha.4.js";import"./vue-inline-svg.ErrqEIY6.0.0.19-alpha.4.js";import"./v-calendar.DTVi51qJ.0.0.19-alpha.4.js";import"./@popperjs.BQBsAJpH.0.0.19-alpha.4.js";import"./@intlify.YW_pt133.0.0.19-alpha.4.js";const H=async k=>(await j.post("/backup/download",{localStorage:k},{responseType:"arraybuffer"})).data,K=async k=>(await j.post("/backup/restore",k)).data,P={class:"w-full"},Q={class:"flex flex-col justify-center items-center mb-5"},W={for:"restoreInput",class:"cursor-pointer text-center"},Z=["accept"],ee={key:0,class:"text-red"},te={class:"mx-2"},oe={class:"disabled-text"},se=L({__name:"VUploadFiles",props:{multiple:{type:Boolean,default:!1},accept:{},icon:{default:A}},emits:["files-uploaded"],setup(k,{expose:S,emit:V}){const p=V,x=k,{accept:w,multiple:y}=U(x),$=f(!1),g=f(!1),i=f([]),e=f(null),n=l=>{const t=i.value.findIndex(a=>a.name===l);t>-1&&(i.value.splice(t,1),o())},d=l=>{if($.value=!1,g.value=!1,i.value=[],console.log(l),l.dataTransfer)if(!y.value&&l.dataTransfer.files.length>1)g.value=!0;else{for(const[,t]of Object.entries(l.dataTransfer.files))i.value.push(t);p("files-uploaded",i.value)}},m=l=>{var a;g.value=!1,i.value=[];const t=l.target;if(t&&t.files)if(!y.value&&((a=t.files)==null?void 0:a.length)>1)g.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 S({reset:()=>{i.value=[],o()}}),(l,t)=>(v(),I("div",{class:"file-upload-box p-4",onDrop:t[0]||(t[0]=h(a=>d(a),["prevent"])),onDragover:t[1]||(t[1]=h(a=>$.value=!0,["prevent"])),onDragenter:t[2]||(t[2]=h(a=>$.value=!0,["prevent"])),onDragleave:t[3]||(t[3]=h(a=>$.value=!1,["prevent"]))},[s("div",P,[s("div",Q,[_(O,{class:"mt-5",size:"60"},{default:b(()=>[B(r(l.icon),1)]),_:1}),s("label",W,r(l.$t("components.upload_files.drop_or_select_file")),1),s("input",{id:"restoreInput",ref_key:"fileInput",ref:e,type:"file",class:"d-none",accept:u(w),onChange:m},null,40,Z),u(g)?(v(),I("p",ee,r(l.$t("components.upload_files.only_one_file_allowed")),1)):C("",!0)]),u(i).length>0?(v(),D(X,{key:0,items:u(i),"max-height":"150","item-height":"50"},{default:b(({item:a})=>[(v(),I("div",{key:a.name,class:"w-full flex flex-row items-center justify-start p-2"},[_(z,{size:"28",variant:"text",color:"red",rounded:"",onClick:h(N=>n(a.name),["stop"])},{default:b(()=>[_(O,{size:"20"},{default:b(()=>[B(r(u(q)),1)]),_:1})]),_:2},1032,["onClick"]),s("b",te,r(a.name),1),s("span",oe,"("+r(a.size)+" bytes)",1)])),u(i).length>1?(v(),D(Y,{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"}},ne={class:"subview-title text-color"},le={class:"inner-component p-4"},re={class:"text-sm"},ie=s("br",null,null,-1),ce=s("div",{class:"my-8"},null,-1),ue={class:"subview-title text-color"},pe={class:"inner-component p-4"},de={class:"text-sm"},me=s("div",{class:"my-8"},null,-1),fe={class:"subview-title text-color"},ve={class:"inner-component p-4"},_e={class:"text-sm"},Ye=L({__name:"Backup",setup(k){const{t:S}=G(),V=f(null),p=f(!1),x=f(!1),w=f(!1),y=f([]),$=async()=>{var e,n,d,m;p.value=!0;try{const o={};if(localStorage.getItem("ui")){const a=localStorage.getItem("ui");o.ui=JSON.parse(a)}if(localStorage.getItem("locale")){const a=localStorage.getItem("locale");o.locale=a}if(localStorage.getItem("theme")){const a=localStorage.getItem("theme");o.theme=JSON.parse(a)}const c=await H(o),l=window.URL.createObjectURL(new Blob([c])),t=document.createElement("a");t.href=l,t.setAttribute("download","cameraui-backup.tar.gz"),document.body.appendChild(t),t.click(),t.remove()}catch(o){console.error(((n=(e=o.response)==null?void 0:e.data)==null?void 0:n.message)??o.message??o),F.error(((m=(d=o.response)==null?void 0:d.data)==null?void 0:m.message)??o.message??o)}p.value=!1},g=async()=>{var e,n,d,m,o;p.value=!0;try{const c=new FormData;c.append("upload",y.value[0]);const l=await K(c);i(l),(e=V.value)==null||e.reset(),F.success(S("components.toast.backup_restored")),x.value=!0,M()}catch(c){console.error(((d=(n=c.response)==null?void 0:n.data)==null?void 0:d.message)??c.message??c),F.error(((o=(m=c.response)==null?void 0:m.data)==null?void 0:o.message)??c.message??c),p.value=!1,x.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,n)=>{const d=T,m=R;return v(),I("div",null,[(v(),D(J,{to:".app"},[u(x)?(v(),I("div",ae,[_(d,{reload:""})])):C("",!0)])),s("div",null,[s("span",ne,r(e.$t("views.settings.create_backup")),1),s("div",le,[s("span",re,r(e.$t("views.settings.create_backup_info")),1),ie,_(z,{loading:u(p),class:"mt-5",color:"#df2a4c",onClick:h($,["prevent"])},{default:b(()=>[B(r(e.$t("components.form.button.download_backup_archive")),1)]),_:1},8,["loading"])])]),ce,s("div",null,[s("span",ue,r(e.$t("views.settings.restore_backup")),1),s("div",pe,[s("span",de,r(e.$t("views.settings.restore_backup_info")),1),_(se,{ref_key:"input",ref:V,class:"mt-5",accept:"application/gzip, .tar, .tar.gz",onFilesUploaded:n[0]||(n[0]=o=>y.value=o)},null,512),_(z,{loading:u(p),disabled:!u(y).length,class:"mt-5",color:"#df2a4c",onClick:n[1]||(n[1]=h(o=>w.value=!0,["prevent"]))},{default:b(()=>[B(r(e.$t("components.form.button.restore_backup_archive")),1)]),_:1},8,["loading","disabled"])])]),me,s("div",null,[s("span",fe,r(e.$t("views.settings.sheduled_backup")),1),s("div",ve,[s("span",_e,r(e.$t("views.settings.sheduled_backup_info")),1)])]),_(m,{modelValue:u(w),"onUpdate:modelValue":n[2]||(n[2]=o=>E(w)?w.value=o:null),title:e.$t("components.dialog.title.confirm"),"confirm-text":"components.form.button.restore_and_restart",loading:u(p),onConfirm:n[3]||(n[3]=o=>g())},{content:b(()=>[s("span",null,r(e.$t("components.dialog.message.confirm_restore")),1)]),_:1},8,["modelValue","title","loading"])])}}});export{Ye as default};