camera.ui3 0.0.34-alpha.4 → 0.0.34-alpha.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/interface/{@tanstack.B8dQBg4b.0.0.34-alpha.4.js → @tanstack.B92K4jky.0.0.34-alpha.5.js} +1 -1
- package/dist/interface/{@vee-validate.Cd0PG5JL.0.0.34-alpha.4.js → @vee-validate.CO6TzE0f.0.0.34-alpha.5.js} +1 -1
- package/dist/interface/{@vue.38WdTUyF.0.0.34-alpha.4.js → @vue.CA7eQC0C.0.0.34-alpha.5.js} +1 -1
- package/dist/interface/{@vueform.BxOaa1cs.0.0.34-alpha.4.js → @vueform.BisuKBst.0.0.34-alpha.5.js} +1 -1
- package/dist/interface/{@vueuse.C5t4Wg1V.0.0.34-alpha.4.js → @vueuse.MCSqyj_O.0.0.34-alpha.5.js} +1 -1
- package/dist/interface/{Account.CPGH5peU.0.0.34-alpha.4.js → Account.DpNjtlWo.0.0.34-alpha.5.js} +1 -1
- package/dist/interface/{Adminpanel.BvJD6oTF.0.0.34-alpha.4.js → Adminpanel.BfVdSL09.0.0.34-alpha.5.js} +2 -2
- package/dist/interface/{Appearance.CkfZ61d-.0.0.34-alpha.4.js → Appearance.CbP_IKMg.0.0.34-alpha.5.js} +1 -1
- package/dist/interface/{Backup.Dwm2c8Zl.0.0.34-alpha.4.js → Backup.Op0zdFf6.0.0.34-alpha.5.js} +1 -1
- package/dist/interface/{Camera.DkSEtuiE.0.0.34-alpha.4.js → Camera.DS_9ofaG.0.0.34-alpha.5.js} +1 -1
- package/dist/interface/{Cameras.gBiSkHZR.0.0.34-alpha.4.js → Cameras.DPB_PsWl.0.0.34-alpha.5.js} +1 -1
- package/dist/interface/{Camview.BMJhrSd5.0.0.34-alpha.4.js → Camview.OjtdKeCN.0.0.34-alpha.5.js} +1 -1
- package/dist/interface/{Config.BgGP3KXS.0.0.34-alpha.4.js → Config.DNjOF6kZ.0.0.34-alpha.5.js} +1 -1
- package/dist/interface/{Console.BI7LpwWP.0.0.34-alpha.4.js → Console.DVsT_dtb.0.0.34-alpha.5.js} +1 -1
- package/dist/interface/{FirstSteps.t2f8qntP.0.0.34-alpha.4.js → FirstSteps.5szuHndh.0.0.34-alpha.5.js} +1 -1
- package/dist/interface/{NewCamera.CPuV5WYE.0.0.34-alpha.4.js → NewCamera.CnNUoIB5.0.0.34-alpha.5.js} +1 -1
- package/dist/interface/{Plugin.D7P_QWc3.0.0.34-alpha.4.js → Plugin.DpOqARwa.0.0.34-alpha.5.js} +1 -1
- package/dist/interface/{Plugins.C6K3ZMlK.0.0.34-alpha.4.js → Plugins.f1G5TFlw.0.0.34-alpha.5.js} +1 -1
- package/dist/interface/Recordings.DY4YbnIj.0.0.34-alpha.5.js +1 -0
- package/dist/interface/Recordings.DgUZFsbb.0.0.34-alpha.5.js +1 -0
- package/dist/interface/{Settings.OXavxlbC.0.0.34-alpha.4.js → Settings.D7X-VK7t.0.0.34-alpha.5.js} +1 -1
- package/dist/interface/{System.D9SRKA5j.0.0.34-alpha.4.js → System.CRLXKRxs.0.0.34-alpha.5.js} +1 -1
- package/dist/interface/{User.B0spV3S0.0.0.34-alpha.4.js → User.Dp3KZyIp.0.0.34-alpha.5.js} +1 -1
- package/dist/interface/{VConfigEditor.vue_vue_type_script_setup_true_lang.D80ZnF-I.0.0.34-alpha.4.js → VConfigEditor.vue_vue_type_script_setup_true_lang.vlbkJcrR.0.0.34-alpha.5.js} +2 -2
- package/dist/interface/{VConsole.DRD2SXa_.0.0.34-alpha.4.js → VConsole.BdzOs_Bu.0.0.34-alpha.5.js} +1 -1
- package/dist/interface/{VPlayer.DUNwZEpc.0.0.34-alpha.4.js → VPlayer.D-Pw-5Hr.0.0.34-alpha.5.js} +1 -1
- package/dist/interface/{VPluginCard.IEOR5CmC.0.0.34-alpha.4.js → VPluginCard.CmD9ACFH.0.0.34-alpha.5.js} +1 -1
- package/dist/interface/{ace-builds.DMzidMtr.0.0.34-alpha.4.js → ace-builds.BzgOTKpx.0.0.34-alpha.5.js} +1 -1
- package/dist/interface/{apexcharts.C1dQ5zIU.0.0.34-alpha.4.js → apexcharts.BvwZuuWW.0.0.34-alpha.5.js} +1 -1
- package/dist/interface/assets/{VPlayer.0.0.34-alpha.4.Dd4uebkL.css → VPlayer.0.0.34-alpha.5.DNtDNhfg.css} +1 -1
- package/dist/interface/{dnd-core.C9ORME3x.0.0.34-alpha.4.js → dnd-core.DfCeUEJG.0.0.34-alpha.5.js} +1 -1
- package/dist/interface/{draggabilly.BMe74e1L.0.0.34-alpha.4.js → draggabilly.B0aLkTy2.0.0.34-alpha.5.js} +1 -1
- package/dist/interface/{engine.io-client.CEf8giGf.0.0.34-alpha.4.js → engine.io-client.CVSa3JNO.0.0.34-alpha.5.js} +1 -1
- package/dist/interface/{ev-emitter.ugXzzJzv.0.0.34-alpha.4.js → ev-emitter.iUkvFOmA.0.0.34-alpha.5.js} +1 -1
- package/dist/interface/{fast-deep-equal.U25fXdCW.0.0.34-alpha.4.js → fast-deep-equal.CdBrRDb2.0.0.34-alpha.5.js} +1 -1
- package/dist/interface/{highlight.js.CQUP85me.0.0.34-alpha.4.js → highlight.js.BtDPwuhi.0.0.34-alpha.5.js} +1 -1
- package/dist/interface/index.html +32 -32
- package/dist/interface/{linkify-it.DpT9Ry-Z.0.0.34-alpha.4.js → linkify-it.DFQCoaRr.0.0.34-alpha.5.js} +1 -1
- package/dist/interface/{main.2HASoNLf.0.0.34-alpha.4.js → main.CHLTWOfy.0.0.34-alpha.5.js} +3 -3
- package/dist/interface/{markdown-it.DgB-lbou.0.0.34-alpha.4.js → markdown-it.CT9MNFia.0.0.34-alpha.5.js} +1 -1
- package/dist/interface/{nprogress.BqUgJKe9.0.0.34-alpha.4.js → nprogress.Dy-fdKdR.0.0.34-alpha.5.js} +1 -1
- package/dist/interface/{pinia.Dye_uuQS.0.0.34-alpha.4.js → pinia.a0-UAJ60.0.0.34-alpha.5.js} +1 -1
- package/dist/interface/{plugins.DrzRqqj1.0.0.34-alpha.4.js → plugins._gNZi2uU.0.0.34-alpha.5.js} +1 -1
- package/dist/interface/{qrcode.DpdrUpsD.0.0.34-alpha.4.js → qrcode.DimXivtc.0.0.34-alpha.5.js} +1 -1
- package/dist/interface/{react-dnd-touch-backend.DVO3PHHX.0.0.34-alpha.4.js → react-dnd-touch-backend.DE4RY7ln.0.0.34-alpha.5.js} +1 -1
- package/dist/interface/{rxjs.pmJBk3Sg.0.0.34-alpha.4.js → rxjs.DvjWjMpY.0.0.34-alpha.5.js} +1 -1
- package/dist/interface/{socket.io-client.CDWOo7bs.0.0.34-alpha.4.js → socket.io-client.DLAxf4Au.0.0.34-alpha.5.js} +1 -1
- package/dist/interface/{socket.io-parser.nV5rgBGd.0.0.34-alpha.4.js → socket.io-parser.DljDeMVN.0.0.34-alpha.5.js} +1 -1
- package/dist/interface/sw.js +1 -1
- package/dist/interface/{system.XI0ySjhp.0.0.34-alpha.4.js → system.C67tvPHd.0.0.34-alpha.5.js} +1 -1
- package/dist/interface/{unidragger.Cj4g6i_z.0.0.34-alpha.4.js → unidragger.Clz3A3-r.0.0.34-alpha.5.js} +1 -1
- package/dist/interface/{vee-validate.BbFAArYk.0.0.34-alpha.4.js → vee-validate.hnY_ZrYq.0.0.34-alpha.5.js} +1 -1
- package/dist/interface/{vue-i18n.BhYwipWO.0.0.34-alpha.4.js → vue-i18n.Yxe4ZdlC.0.0.34-alpha.5.js} +1 -1
- package/dist/interface/{vue-inline-svg.KV3n1JVk.0.0.34-alpha.4.js → vue-inline-svg.C52hpSWp.0.0.34-alpha.5.js} +1 -1
- package/dist/interface/{vue-router.DDrhhYTH.0.0.34-alpha.4.js → vue-router.CuXGWZx-.0.0.34-alpha.5.js} +1 -1
- package/dist/interface/{vue3-apexcharts.Cd9x19mq.0.0.34-alpha.4.js → vue3-apexcharts.BwQI7SWt.0.0.34-alpha.5.js} +1 -1
- package/dist/interface/{vue3-dnd.ax_m5eGZ.0.0.34-alpha.4.js → vue3-dnd.W2X2hlnQ.0.0.34-alpha.5.js} +1 -1
- package/dist/interface/{vue3-toastify.Q4LBRehM.0.0.34-alpha.4.js → vue3-toastify.CgpUgDJR.0.0.34-alpha.5.js} +1 -1
- package/dist/interface/{vuetify.CWmFhFZT.0.0.34-alpha.4.js → vuetify.CpjU1ATb.0.0.34-alpha.5.js} +1 -1
- package/dist/server/package.json +1 -1
- package/dist/server/src/api/schemas/cameras.schema.d.ts +26 -26
- package/dist/server/src/api/schemas/config.schema.d.ts +6 -6
- package/dist/server/src/api/schemas/go2rtc.schema.d.ts +121 -121
- package/dist/server/src/services/config/constants.d.ts +1 -1
- package/dist/server/src/services/config/constants.js +3 -1
- package/dist/server/src/services/config/constants.js.map +1 -1
- package/dist/server/src/services/config/index.js +4 -3
- package/dist/server/src/services/config/index.js.map +1 -1
- package/package.json +1 -1
- package/dist/interface/Recordings.Bj1-XgFE.0.0.34-alpha.4.js +0 -1
- package/dist/interface/Recordings.BkxTcfvY.0.0.34-alpha.4.js +0 -1
- /package/dist/interface/{@babel.l0sNRNKZ.0.0.34-alpha.4.js → @babel.l0sNRNKZ.0.0.34-alpha.5.js} +0 -0
- /package/dist/interface/{@intlify.DXtFJcML.0.0.34-alpha.4.js → @intlify.DXtFJcML.0.0.34-alpha.5.js} +0 -0
- /package/dist/interface/{@mdi.C1UTQKuc.0.0.34-alpha.4.js → @mdi.C1UTQKuc.0.0.34-alpha.5.js} +0 -0
- /package/dist/interface/{@react-dnd.CcwRs9xb.0.0.34-alpha.4.js → @react-dnd.CcwRs9xb.0.0.34-alpha.5.js} +0 -0
- /package/dist/interface/{@socket.io.Dkula2eQ.0.0.34-alpha.4.js → @socket.io.Dkula2eQ.0.0.34-alpha.5.js} +0 -0
- /package/dist/interface/{@turf.l0sNRNKZ.0.0.34-alpha.4.js → @turf.l0sNRNKZ.0.0.34-alpha.5.js} +0 -0
- /package/dist/interface/{@xterm.dNDqC2Qx.0.0.34-alpha.4.js → @xterm.GAbfxM_B.0.0.34-alpha.5.js} +0 -0
- /package/dist/interface/assets/{@vueform.0.0.34-alpha.4.CroAHJs8.css → @vueform.0.0.34-alpha.5.CroAHJs8.css} +0 -0
- /package/dist/interface/assets/{@xterm.0.0.34-alpha.4.CFbL2ovg.css → @xterm.0.0.34-alpha.5.CFbL2ovg.css} +0 -0
- /package/dist/interface/assets/{Account.0.0.34-alpha.4.J7oAjogS.css → Account.0.0.34-alpha.5.J7oAjogS.css} +0 -0
- /package/dist/interface/assets/{Adminpanel.0.0.34-alpha.4.a3t1v3MB.css → Adminpanel.0.0.34-alpha.5.a3t1v3MB.css} +0 -0
- /package/dist/interface/assets/{Backup.0.0.34-alpha.4.CX0rT0QJ.css → Backup.0.0.34-alpha.5.CX0rT0QJ.css} +0 -0
- /package/dist/interface/assets/{Camera.0.0.34-alpha.4.D1I-fW4q.css → Camera.0.0.34-alpha.5.D1I-fW4q.css} +0 -0
- /package/dist/interface/assets/{Cameras.0.0.34-alpha.4.Buf1Dgce.css → Cameras.0.0.34-alpha.5.Buf1Dgce.css} +0 -0
- /package/dist/interface/assets/{Camview.0.0.34-alpha.4.B7Cja2ry.css → Camview.0.0.34-alpha.5.B7Cja2ry.css} +0 -0
- /package/dist/interface/assets/{Config.0.0.34-alpha.4.DNGo2krN.css → Config.0.0.34-alpha.5.DNGo2krN.css} +0 -0
- /package/dist/interface/assets/{Console.0.0.34-alpha.4.Bh8l9QnM.css → Console.0.0.34-alpha.5.Bh8l9QnM.css} +0 -0
- /package/dist/interface/assets/{FirstSteps.0.0.34-alpha.4.sPEcItZ6.css → FirstSteps.0.0.34-alpha.5.sPEcItZ6.css} +0 -0
- /package/dist/interface/assets/{NewCamera.0.0.34-alpha.4.Cq8GzeJ7.css → NewCamera.0.0.34-alpha.5.Cq8GzeJ7.css} +0 -0
- /package/dist/interface/assets/{Plugin.0.0.34-alpha.4.DJbgaQc1.css → Plugin.0.0.34-alpha.5.DJbgaQc1.css} +0 -0
- /package/dist/interface/assets/{Plugins.0.0.34-alpha.4.DXSoO9M1.css → Plugins.0.0.34-alpha.5.DXSoO9M1.css} +0 -0
- /package/dist/interface/assets/{Settings.0.0.34-alpha.4.CVmui2kE.css → Settings.0.0.34-alpha.5.CVmui2kE.css} +0 -0
- /package/dist/interface/assets/{User.0.0.34-alpha.4.BiGtIFqt.css → User.0.0.34-alpha.5.BiGtIFqt.css} +0 -0
- /package/dist/interface/assets/{VConsole.0.0.34-alpha.4.BCqKHpmJ.css → VConsole.0.0.34-alpha.5.BCqKHpmJ.css} +0 -0
- /package/dist/interface/assets/{VPluginCard.0.0.34-alpha.4.C8Lj6X-J.css → VPluginCard.0.0.34-alpha.5.C8Lj6X-J.css} +0 -0
- /package/dist/interface/assets/{highlight.0.0.34-alpha.4.Ch2EwETz.css → highlight.0.0.34-alpha.5.Ch2EwETz.css} +0 -0
- /package/dist/interface/assets/{logo-256.0.0.34-alpha.4.BCQk9H1-.png → logo-256.0.0.34-alpha.5.BCQk9H1-.png} +0 -0
- /package/dist/interface/assets/{logo-512.0.0.34-alpha.4.DLKVOU2S.png → logo-512.0.0.34-alpha.5.DLKVOU2S.png} +0 -0
- /package/dist/interface/assets/{logo.0.0.34-alpha.4.DmEiRk0z.png → logo.0.0.34-alpha.5.DmEiRk0z.png} +0 -0
- /package/dist/interface/assets/{main.0.0.34-alpha.4.DNhh__S1.css → main.0.0.34-alpha.5.DNhh__S1.css} +0 -0
- /package/dist/interface/assets/{mode-json.0.0.34-alpha.4.Br7xisR1.js → mode-json.0.0.34-alpha.5.Br7xisR1.js} +0 -0
- /package/dist/interface/assets/{mode-yaml.0.0.34-alpha.4.CIYL8U3d.js → mode-yaml.0.0.34-alpha.5.CIYL8U3d.js} +0 -0
- /package/dist/interface/assets/{vue3-toastify.0.0.34-alpha.4.DHXAGmwn.css → vue3-toastify.0.0.34-alpha.5.DHXAGmwn.css} +0 -0
- /package/dist/interface/assets/{vuetify.0.0.34-alpha.4.CgGsw6iO.css → vuetify.0.0.34-alpha.5.CgGsw6iO.css} +0 -0
- /package/dist/interface/{axios.C-n2IhIP.0.0.34-alpha.4.js → axios.C-n2IhIP.0.0.34-alpha.5.js} +0 -0
- /package/dist/interface/{birpc.l0sNRNKZ.0.0.34-alpha.4.js → birpc.l0sNRNKZ.0.0.34-alpha.5.js} +0 -0
- /package/dist/interface/{compare-versions.DqEOhma6.0.0.34-alpha.4.js → compare-versions.DqEOhma6.0.0.34-alpha.5.js} +0 -0
- /package/dist/interface/{dijkstrajs.D_NXgYpA.0.0.34-alpha.4.js → dijkstrajs.D_NXgYpA.0.0.34-alpha.5.js} +0 -0
- /package/dist/interface/{engine.io-parser.BiEtp6m2.0.0.34-alpha.4.js → engine.io-parser.BiEtp6m2.0.0.34-alpha.5.js} +0 -0
- /package/dist/interface/{entities.C20TfXL6.0.0.34-alpha.4.js → entities.C20TfXL6.0.0.34-alpha.5.js} +0 -0
- /package/dist/interface/{get-size.D1dS-IaP.0.0.34-alpha.4.js → get-size.D1dS-IaP.0.0.34-alpha.5.js} +0 -0
- /package/dist/interface/{hookable.B8xFkYCm.0.0.34-alpha.4.js → hookable.B8xFkYCm.0.0.34-alpha.5.js} +0 -0
- /package/dist/interface/{mdurl.k9Sl0PQj.0.0.34-alpha.4.js → mdurl.k9Sl0PQj.0.0.34-alpha.5.js} +0 -0
- /package/dist/interface/{perfect-debounce.Cp2ysxOb.0.0.34-alpha.4.js → perfect-debounce.Cp2ysxOb.0.0.34-alpha.5.js} +0 -0
- /package/dist/interface/{point-in-polygon-hao.l0sNRNKZ.0.0.34-alpha.4.js → point-in-polygon-hao.l0sNRNKZ.0.0.34-alpha.5.js} +0 -0
- /package/dist/interface/{punycode.js.Dj65hjkv.0.0.34-alpha.4.js → punycode.js.Dj65hjkv.0.0.34-alpha.5.js} +0 -0
- /package/dist/interface/{react-dnd-html5-backend.1HQjlkwI.0.0.34-alpha.4.js → react-dnd-html5-backend.1HQjlkwI.0.0.34-alpha.5.js} +0 -0
- /package/dist/interface/{redux.CuxFRhX_.0.0.34-alpha.4.js → redux.CuxFRhX_.0.0.34-alpha.5.js} +0 -0
- /package/dist/interface/{sweepline-intersections.l0sNRNKZ.0.0.34-alpha.4.js → sweepline-intersections.l0sNRNKZ.0.0.34-alpha.5.js} +0 -0
- /package/dist/interface/{tslib.9k7AwCpt.0.0.34-alpha.4.js → tslib.9k7AwCpt.0.0.34-alpha.5.js} +0 -0
- /package/dist/interface/{types.Cz9TaZAP.0.0.34-alpha.4.js → types.Cz9TaZAP.0.0.34-alpha.5.js} +0 -0
- /package/dist/interface/{uc.micro.kMc2yuuw.0.0.34-alpha.4.js → uc.micro.kMc2yuuw.0.0.34-alpha.5.js} +0 -0
- /package/dist/interface/{utils.mAKpSMLY.0.0.34-alpha.4.js → utils.mAKpSMLY.0.0.34-alpha.5.js} +0 -0
- /package/dist/interface/{uuid.DvF23Exx.0.0.34-alpha.4.js → uuid.DvF23Exx.0.0.34-alpha.5.js} +0 -0
- /package/dist/interface/{vue.l0sNRNKZ.0.0.34-alpha.4.js → vue.l0sNRNKZ.0.0.34-alpha.5.js} +0 -0
- /package/dist/interface/{zod.DnW1_kUe.0.0.34-alpha.4.js → zod.DnW1_kUe.0.0.34-alpha.5.js} +0 -0
package/dist/interface/{@tanstack.B8dQBg4b.0.0.34-alpha.4.js → @tanstack.B92K4jky.0.0.34-alpha.5.js}
RENAMED
|
@@ -1 +1 @@
|
|
|
1
|
-
var pe=s=>{throw TypeError(s)};var Vt=(s,t,e)=>t.has(s)||pe("Cannot "+e);var r=(s,t,e)=>(Vt(s,t,"read from private field"),e?e.call(s):t.get(s)),l=(s,t,e)=>t.has(s)?pe("Cannot add the same private member more than once"):t instanceof WeakSet?t.add(s):t.set(s,e),h=(s,t,e,i)=>(Vt(s,t,"write to private field"),i?i.call(s,e):t.set(s,e),e),p=(s,t,e)=>(Vt(s,t,"access private method"),e);var _t=(s,t,e,i)=>({set _(n){h(s,t,n,e)},get _(){return r(s,t,i)}});import{i as Ie,u as Ze,h as ts,a as es,r as ss,n as is,c as Te,s as je,w as gt,o as xe,t as Ke}from"./@vue.38WdTUyF.0.0.34-alpha.4.js";var It=class{constructor(){this.listeners=new Set,this.subscribe=this.subscribe.bind(this)}subscribe(s){return this.listeners.add(s),this.onSubscribe(),()=>{this.listeners.delete(s),this.onUnsubscribe()}}hasListeners(){return this.listeners.size>0}onSubscribe(){}onUnsubscribe(){}},pt=typeof window>"u"||"Deno"in globalThis;function H(){}function rs(s,t){return typeof s=="function"?s(t):s}function Wt(s){return typeof s=="number"&&s>=0&&s!==1/0}function Le(s,t){return Math.max(s+(t||0)-Date.now(),0)}function Ot(s,t){return typeof s=="function"?s(t):s}function G(s,t){return typeof s=="function"?s(t):s}function me(s,t){const{type:e="all",exact:i,fetchStatus:n,predicate:a,queryKey:o,stale:u}=s;if(o){if(i){if(t.queryHash!==le(o,t.options))return!1}else if(!jt(t.queryKey,o))return!1}if(e!=="all"){const y=t.isActive();if(e==="active"&&!y||e==="inactive"&&y)return!1}return!(typeof u=="boolean"&&t.isStale()!==u||n&&n!==t.state.fetchStatus||a&&!a(t))}function ve(s,t){const{exact:e,status:i,predicate:n,mutationKey:a}=s;if(a){if(!t.options.mutationKey)return!1;if(e){if(mt(t.options.mutationKey)!==mt(a))return!1}else if(!jt(t.options.mutationKey,a))return!1}return!(i&&t.state.status!==i||n&&!n(t))}function le(s,t){return((t==null?void 0:t.queryKeyHashFn)||mt)(s)}function mt(s){return JSON.stringify(s,(t,e)=>Yt(e)?Object.keys(e).sort().reduce((i,n)=>(i[n]=e[n],i),{}):e)}function jt(s,t){return s===t?!0:typeof s!=typeof t?!1:s&&t&&typeof s=="object"&&typeof t=="object"?!Object.keys(t).some(e=>!jt(s[e],t[e])):!1}function ke(s,t){if(s===t)return s;const e=be(s)&&be(t);if(e||Yt(s)&&Yt(t)){const i=e?s:Object.keys(s),n=i.length,a=e?t:Object.keys(t),o=a.length,u=e?[]:{};let y=0;for(let w=0;w<o;w++){const f=e?w:a[w];(!e&&i.includes(f)||e)&&s[f]===void 0&&t[f]===void 0?(u[f]=void 0,y++):(u[f]=ke(s[f],t[f]),u[f]===s[f]&&s[f]!==void 0&&y++)}return n===o&&y===n?s:u}return t}function $t(s,t){if(!t||Object.keys(s).length!==Object.keys(t).length)return!1;for(const e in s)if(s[e]!==t[e])return!1;return!0}function be(s){return Array.isArray(s)&&s.length===Object.keys(s).length}function Yt(s){if(!ge(s))return!1;const t=s.constructor;if(t===void 0)return!0;const e=t.prototype;return!(!ge(e)||!e.hasOwnProperty("isPrototypeOf")||Object.getPrototypeOf(s)!==Object.prototype)}function ge(s){return Object.prototype.toString.call(s)==="[object Object]"}function ns(s){return new Promise(t=>{setTimeout(t,s)})}function Jt(s,t,e){return typeof e.structuralSharing=="function"?e.structuralSharing(s,t):e.structuralSharing!==!1?ke(s,t):t}function as(s,t,e=0){const i=[...s,t];return e&&i.length>e?i.slice(1):i}function us(s,t,e=0){const i=[t,...s];return e&&i.length>e?i.slice(0,-1):i}var fe=Symbol();function He(s,t){return!s.queryFn&&(t!=null&&t.initialPromise)?()=>t.initialPromise:!s.queryFn||s.queryFn===fe?()=>Promise.reject(new Error(`Missing queryFn: '${s.queryHash}'`)):s.queryFn}var ot,Z,Ct,Se,os=(Se=class extends It{constructor(){super();l(this,ot);l(this,Z);l(this,Ct);h(this,Ct,t=>{if(!pt&&window.addEventListener){const e=()=>t();return window.addEventListener("visibilitychange",e,!1),()=>{window.removeEventListener("visibilitychange",e)}}})}onSubscribe(){r(this,Z)||this.setEventListener(r(this,Ct))}onUnsubscribe(){var t;this.hasListeners()||((t=r(this,Z))==null||t.call(this),h(this,Z,void 0))}setEventListener(t){var e;h(this,Ct,t),(e=r(this,Z))==null||e.call(this),h(this,Z,t(i=>{typeof i=="boolean"?this.setFocused(i):this.onFocus()}))}setFocused(t){r(this,ot)!==t&&(h(this,ot,t),this.onFocus())}onFocus(){const t=this.isFocused();this.listeners.forEach(e=>{e(t)})}isFocused(){var t;return typeof r(this,ot)=="boolean"?r(this,ot):((t=globalThis.document)==null?void 0:t.visibilityState)!=="hidden"}},ot=new WeakMap,Z=new WeakMap,Ct=new WeakMap,Se),de=new os,wt,tt,Qt,Pe,hs=(Pe=class extends It{constructor(){super();l(this,wt,!0);l(this,tt);l(this,Qt);h(this,Qt,t=>{if(!pt&&window.addEventListener){const e=()=>t(!0),i=()=>t(!1);return window.addEventListener("online",e,!1),window.addEventListener("offline",i,!1),()=>{window.removeEventListener("online",e),window.removeEventListener("offline",i)}}})}onSubscribe(){r(this,tt)||this.setEventListener(r(this,Qt))}onUnsubscribe(){var t;this.hasListeners()||((t=r(this,tt))==null||t.call(this),h(this,tt,void 0))}setEventListener(t){var e;h(this,Qt,t),(e=r(this,tt))==null||e.call(this),h(this,tt,t(this.setOnline.bind(this)))}setOnline(t){r(this,wt)!==t&&(h(this,wt,t),this.listeners.forEach(i=>{i(t)}))}isOnline(){return r(this,wt)}},wt=new WeakMap,tt=new WeakMap,Qt=new WeakMap,Pe),Bt=new hs;function Xt(){let s,t;const e=new Promise((n,a)=>{s=n,t=a});e.status="pending",e.catch(()=>{});function i(n){Object.assign(e,n),delete e.resolve,delete e.reject}return e.resolve=n=>{i({status:"fulfilled",value:n}),s(n)},e.reject=n=>{i({status:"rejected",reason:n}),t(n)},e}function cs(s){return Math.min(1e3*2**s,3e4)}function _e(s){return(s??"online")==="online"?Bt.isOnline():!0}var Ne=class extends Error{constructor(s){super("CancelledError"),this.revert=s==null?void 0:s.revert,this.silent=s==null?void 0:s.silent}};function zt(s){return s instanceof Ne}function Ge(s){let t=!1,e=0,i=!1,n;const a=Xt(),o=m=>{var g;i||(O(new Ne(m)),(g=s.abort)==null||g.call(s))},u=()=>{t=!0},y=()=>{t=!1},w=()=>de.isFocused()&&(s.networkMode==="always"||Bt.isOnline())&&s.canRun(),f=()=>_e(s.networkMode)&&s.canRun(),c=m=>{var g;i||(i=!0,(g=s.onSuccess)==null||g.call(s,m),n==null||n(),a.resolve(m))},O=m=>{var g;i||(i=!0,(g=s.onError)==null||g.call(s,m),n==null||n(),a.reject(m))},d=()=>new Promise(m=>{var g;n=D=>{(i||w())&&m(D)},(g=s.onPause)==null||g.call(s)}).then(()=>{var m;n=void 0,i||(m=s.onContinue)==null||m.call(s)}),Q=()=>{if(i)return;let m;const g=e===0?s.initialPromise:void 0;try{m=g??s.fn()}catch(D){m=Promise.reject(D)}Promise.resolve(m).then(c).catch(D=>{var _;if(i)return;const E=s.retry??(pt?0:3),P=s.retryDelay??cs,A=typeof P=="function"?P(e,D):P,K=E===!0||typeof E=="number"&&e<E||typeof E=="function"&&E(e,D);if(t||!K){O(D);return}e++,(_=s.onFail)==null||_.call(s,e,D),ns(A).then(()=>w()?void 0:d()).then(()=>{t?O(D):Q()})})};return{promise:a,cancel:o,continue:()=>(n==null||n(),a),cancelRetry:u,continueRetry:y,canStart:f,start:()=>(f()?Q():d().then(Q),a)}}function ls(){let s=[],t=0,e=u=>{u()},i=u=>{u()},n=u=>setTimeout(u,0);const a=u=>{t?s.push(u):n(()=>{e(u)})},o=()=>{const u=s;s=[],u.length&&n(()=>{i(()=>{u.forEach(y=>{e(y)})})})};return{batch:u=>{let y;t++;try{y=u()}finally{t--,t||o()}return y},batchCalls:u=>(...y)=>{a(()=>{u(...y)})},schedule:a,setNotifyFunction:u=>{e=u},setBatchNotifyFunction:u=>{i=u},setScheduler:u=>{n=u}}}var M=ls(),ht,Re,$e=(Re=class{constructor(){l(this,ht)}destroy(){this.clearGcTimeout()}scheduleGc(){this.clearGcTimeout(),Wt(this.gcTime)&&h(this,ht,setTimeout(()=>{this.optionalRemove()},this.gcTime))}updateGcTime(s){this.gcTime=Math.max(this.gcTime||0,s??(pt?1/0:5*60*1e3))}clearGcTimeout(){r(this,ht)&&(clearTimeout(r(this,ht)),h(this,ht,void 0))}},ht=new WeakMap,Re),St,Pt,k,U,xt,ct,N,W,De,fs=(De=class extends $e{constructor(t){super();l(this,N);l(this,St);l(this,Pt);l(this,k);l(this,U);l(this,xt);l(this,ct);h(this,ct,!1),h(this,xt,t.defaultOptions),this.setOptions(t.options),this.observers=[],h(this,k,t.cache),this.queryKey=t.queryKey,this.queryHash=t.queryHash,h(this,St,ds(this.options)),this.state=t.state??r(this,St),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,xt),...t},this.updateGcTime(this.options.gcTime)}optionalRemove(){!this.observers.length&&this.state.fetchStatus==="idle"&&r(this,k).remove(this)}setData(t,e){const i=Jt(this.state.data,t,this.options);return p(this,N,W).call(this,{data:i,type:"success",dataUpdatedAt:e==null?void 0:e.updatedAt,manual:e==null?void 0:e.manual}),i}setState(t,e){p(this,N,W).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(H).catch(H):Promise.resolve()}destroy(){super.destroy(),this.cancel({silent:!0})}reset(){this.destroy(),this.setState(r(this,St))}isActive(){return this.observers.some(t=>G(t.options.enabled,this)!==!1)}isDisabled(){return this.getObserversCount()>0?!this.isActive():this.options.queryFn===fe||this.state.dataUpdateCount+this.state.errorUpdateCount===0}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||!Le(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,k).notify({type:"observerAdded",query:this,observer:t}))}removeObserver(t){this.observers.includes(t)&&(this.observers=this.observers.filter(e=>e!==t),this.observers.length||(r(this,U)&&(r(this,ct)?r(this,U).cancel({revert:!0}):r(this,U).cancelRetry()),this.scheduleGc()),r(this,k).notify({type:"observerRemoved",query:this,observer:t}))}getObserversCount(){return this.observers.length}invalidate(){this.state.isInvalidated||p(this,N,W).call(this,{type:"invalidate"})}fetch(t,e){var y,w,f;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,ct,!0),i.signal)})},a=()=>{const c=He(this.options,e),O={queryKey:this.queryKey,meta:this.meta};return n(O),h(this,ct,!1),this.options.persister?this.options.persister(c,O,this):c(O)},o={fetchOptions:e,options:this.options,queryKey:this.queryKey,state:this.state,fetchFn:a};n(o),(y=this.options.behavior)==null||y.onFetch(o,this),h(this,Pt,this.state),(this.state.fetchStatus==="idle"||this.state.fetchMeta!==((w=o.fetchOptions)==null?void 0:w.meta))&&p(this,N,W).call(this,{type:"fetch",meta:(f=o.fetchOptions)==null?void 0:f.meta});const u=c=>{var O,d,Q,m;zt(c)&&c.silent||p(this,N,W).call(this,{type:"error",error:c}),zt(c)||((d=(O=r(this,k).config).onError)==null||d.call(O,c,this),(m=(Q=r(this,k).config).onSettled)==null||m.call(Q,this.state.data,c,this)),this.scheduleGc()};return h(this,U,Ge({initialPromise:e==null?void 0:e.initialPromise,fn:o.fetchFn,abort:i.abort.bind(i),onSuccess:c=>{var O,d,Q,m;if(c===void 0){u(new Error(`${this.queryHash} data is undefined`));return}try{this.setData(c)}catch(g){u(g);return}(d=(O=r(this,k).config).onSuccess)==null||d.call(O,c,this),(m=(Q=r(this,k).config).onSettled)==null||m.call(Q,c,this.state.error,this),this.scheduleGc()},onError:u,onFail:(c,O)=>{p(this,N,W).call(this,{type:"failed",failureCount:c,error:O})},onPause:()=>{p(this,N,W).call(this,{type:"pause"})},onContinue:()=>{p(this,N,W).call(this,{type:"continue"})},retry:o.options.retry,retryDelay:o.options.retryDelay,networkMode:o.options.networkMode,canRun:()=>!0})),r(this,U).start()}},St=new WeakMap,Pt=new WeakMap,k=new WeakMap,U=new WeakMap,xt=new WeakMap,ct=new WeakMap,N=new WeakSet,W=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,...Be(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 zt(n)&&n.revert&&r(this,Pt)?{...r(this,Pt),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),M.batch(()=>{this.observers.forEach(i=>{i.onQueryUpdate()}),r(this,k).notify({query:this,type:"updated",action:t})})},De);function Be(s,t){return{fetchFailureCount:0,fetchFailureReason:null,fetchStatus:_e(t.networkMode)?"fetching":"paused",...s===void 0&&{error:null,status:"pending"}}}function ds(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 $,Fe,Ve=(Fe=class extends It{constructor(e={}){super();l(this,$);this.config=e,h(this,$,new Map)}build(e,i,n){const a=i.queryKey,o=i.queryHash??le(a,i);let u=this.get(o);return u||(u=new fs({cache:this,queryKey:a,queryHash:o,options:e.defaultQueryOptions(i),state:n,defaultOptions:e.getQueryDefaults(a)}),this.add(u)),u}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(){M.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=>me(i,n))}findAll(e={}){const i=this.getAll();return Object.keys(e).length>0?i.filter(n=>me(e,n)):i}notify(e){M.batch(()=>{this.listeners.forEach(i=>{i(e)})})}onFocus(){M.batch(()=>{this.getAll().forEach(e=>{e.onFocus()})})}onOnline(){M.batch(()=>{this.getAll().forEach(e=>{e.onOnline()})})}},$=new WeakMap,Fe),B,I,lt,V,X,Ee,ys=(Ee=class extends $e{constructor(t){super();l(this,V);l(this,B);l(this,I);l(this,lt);this.mutationId=t.mutationId,h(this,I,t.mutationCache),h(this,B,[]),this.state=t.state||ze(),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,I).notify({type:"observerAdded",mutation:this,observer:t}))}removeObserver(t){h(this,B,r(this,B).filter(e=>e!==t)),this.scheduleGc(),r(this,I).notify({type:"observerRemoved",mutation:this,observer:t})}optionalRemove(){r(this,B).length||(this.state.status==="pending"?this.scheduleGc():r(this,I).remove(this))}continue(){var t;return((t=r(this,lt))==null?void 0:t.continue())??this.execute(this.state.variables)}async execute(t){var n,a,o,u,y,w,f,c,O,d,Q,m,g,D,E,P,A,K,_,q;h(this,lt,Ge({fn:()=>this.options.mutationFn?this.options.mutationFn(t):Promise.reject(new Error("No mutationFn found")),onFail:(F,S)=>{p(this,V,X).call(this,{type:"failed",failureCount:F,error:S})},onPause:()=>{p(this,V,X).call(this,{type:"pause"})},onContinue:()=>{p(this,V,X).call(this,{type:"continue"})},retry:this.options.retry??0,retryDelay:this.options.retryDelay,networkMode:this.options.networkMode,canRun:()=>r(this,I).canRun(this)}));const e=this.state.status==="pending",i=!r(this,lt).canStart();try{if(!e){p(this,V,X).call(this,{type:"pending",variables:t,isPaused:i}),await((a=(n=r(this,I).config).onMutate)==null?void 0:a.call(n,t,this));const S=await((u=(o=this.options).onMutate)==null?void 0:u.call(o,t));S!==this.state.context&&p(this,V,X).call(this,{type:"pending",context:S,variables:t,isPaused:i})}const F=await r(this,lt).start();return await((w=(y=r(this,I).config).onSuccess)==null?void 0:w.call(y,F,t,this.state.context,this)),await((c=(f=this.options).onSuccess)==null?void 0:c.call(f,F,t,this.state.context)),await((d=(O=r(this,I).config).onSettled)==null?void 0:d.call(O,F,null,this.state.variables,this.state.context,this)),await((m=(Q=this.options).onSettled)==null?void 0:m.call(Q,F,null,t,this.state.context)),p(this,V,X).call(this,{type:"success",data:F}),F}catch(F){try{throw await((D=(g=r(this,I).config).onError)==null?void 0:D.call(g,F,t,this.state.context,this)),await((P=(E=this.options).onError)==null?void 0:P.call(E,F,t,this.state.context)),await((K=(A=r(this,I).config).onSettled)==null?void 0:K.call(A,void 0,F,this.state.variables,this.state.context,this)),await((q=(_=this.options).onSettled)==null?void 0:q.call(_,void 0,F,t,this.state.context)),F}finally{p(this,V,X).call(this,{type:"error",error:F})}}finally{r(this,I).runNext(this)}}},B=new WeakMap,I=new WeakMap,lt=new WeakMap,V=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),M.batch(()=>{r(this,B).forEach(i=>{i.onMutationUpdate(t)}),r(this,I).notify({mutation:this,type:"updated",action:t})})},Ee);function ze(){return{context:void 0,data:void 0,error:null,failureCount:0,failureReason:null,isPaused:!1,status:"idle",variables:void 0,submittedAt:0}}var L,Kt,Me,We=(Me=class extends It{constructor(e={}){super();l(this,L);l(this,Kt);this.config=e,h(this,L,new Map),h(this,Kt,Date.now())}build(e,i,n){const a=new ys({mutationCache:this,mutationId:++_t(this,Kt)._,options:e.defaultMutationOptions(i),state:n});return this.add(a),a}add(e){const i=Nt(e),n=r(this,L).get(i)??[];n.push(e),r(this,L).set(i,n),this.notify({type:"added",mutation:e})}remove(e){var n;const i=Nt(e);if(r(this,L).has(i)){const a=(n=r(this,L).get(i))==null?void 0:n.filter(o=>o!==e);a&&(a.length===0?r(this,L).delete(i):r(this,L).set(i,a))}this.notify({type:"removed",mutation:e})}canRun(e){var n;const i=(n=r(this,L).get(Nt(e)))==null?void 0:n.find(a=>a.state.status==="pending");return!i||i===e}runNext(e){var n;const i=(n=r(this,L).get(Nt(e)))==null?void 0:n.find(a=>a!==e&&a.state.isPaused);return(i==null?void 0:i.continue())??Promise.resolve()}clear(){M.batch(()=>{this.getAll().forEach(e=>{this.remove(e)})})}getAll(){return[...r(this,L).values()].flat()}find(e){const i={exact:!0,...e};return this.getAll().find(n=>ve(i,n))}findAll(e={}){return this.getAll().filter(i=>ve(e,i))}notify(e){M.batch(()=>{this.listeners.forEach(i=>{i(e)})})}resumePausedMutations(){const e=this.getAll().filter(i=>i.state.isPaused);return M.batch(()=>Promise.all(e.map(i=>i.continue().catch(H))))}},L=new WeakMap,Kt=new WeakMap,Me);function Nt(s){var t;return((t=s.options.scope)==null?void 0:t.id)??String(s.mutationId)}function Oe(s){return{onFetch:(t,e)=>{var f,c,O,d,Q;const i=t.options,n=(O=(c=(f=t.fetchOptions)==null?void 0:f.meta)==null?void 0:c.fetchMore)==null?void 0:O.direction,a=((d=t.state.data)==null?void 0:d.pages)||[],o=((Q=t.state.data)==null?void 0:Q.pageParams)||[];let u={pages:[],pageParams:[]},y=0;const w=async()=>{let m=!1;const g=P=>{Object.defineProperty(P,"signal",{enumerable:!0,get:()=>(t.signal.aborted?m=!0:t.signal.addEventListener("abort",()=>{m=!0}),t.signal)})},D=He(t.options,t.fetchOptions),E=async(P,A,K)=>{if(m)return Promise.reject();if(A==null&&P.pages.length)return Promise.resolve(P);const _={queryKey:t.queryKey,pageParam:A,direction:K?"backward":"forward",meta:t.options.meta};g(_);const q=await D(_),{maxPages:F}=t.options,S=K?us:as;return{pages:S(P.pages,q,F),pageParams:S(P.pageParams,A,F)}};if(n&&a.length){const P=n==="backward",A=P?ps:Ce,K={pages:a,pageParams:o},_=A(i,K);u=await E(K,_,P)}else{const P=s??a.length;do{const A=y===0?o[0]??i.initialPageParam:Ce(i,u);if(y>0&&A==null)break;u=await E(u,A),y++}while(y<P)}return u};t.options.persister?t.fetchFn=()=>{var m,g;return(g=(m=t.options).persister)==null?void 0:g.call(m,w,{queryKey:t.queryKey,meta:t.options.meta,signal:t.signal},e)}:t.fetchFn=w}}}function Ce(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 ps(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,Rt,Dt,it,Ft,Et,Ae,ms=(Ae=class{constructor(t={}){l(this,R);l(this,et);l(this,st);l(this,Rt);l(this,Dt);l(this,it);l(this,Ft);l(this,Et);h(this,R,t.queryCache||new Ve),h(this,et,t.mutationCache||new We),h(this,st,t.defaultOptions||{}),h(this,Rt,new Map),h(this,Dt,new Map),h(this,it,0)}mount(){_t(this,it)._++,r(this,it)===1&&(h(this,Ft,de.subscribe(async t=>{t&&(await this.resumePausedMutations(),r(this,R).onFocus())})),h(this,Et,Bt.subscribe(async t=>{t&&(await this.resumePausedMutations(),r(this,R).onOnline())})))}unmount(){var t,e;_t(this,it)._--,r(this,it)===0&&((t=r(this,Ft))==null||t.call(this),h(this,Ft,void 0),(e=r(this,Et))==null||e.call(this),h(this,Et,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(Ot(i.staleTime,n))&&this.prefetchQuery(i),Promise.resolve(e)}}getQueriesData(t){return r(this,R).findAll(t).map(({queryKey:e,state:i})=>{const n=i.data;return[e,n]})}setQueryData(t,e,i){const n=this.defaultQueryOptions({queryKey:t}),a=r(this,R).get(n.queryHash),o=a==null?void 0:a.state.data,u=rs(e,o);if(u!==void 0)return r(this,R).build(this,n).setData(u,{...i,manual:!0})}setQueriesData(t,e,i){return M.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);M.batch(()=>{e.findAll(t).forEach(i=>{e.remove(i)})})}resetQueries(t,e){const i=r(this,R),n={type:"active",...t};return M.batch(()=>(i.findAll(t).forEach(a=>{a.reset()}),this.refetchQueries(n,e)))}cancelQueries(t={},e={}){const i={revert:!0,...e},n=M.batch(()=>r(this,R).findAll(t).map(a=>a.cancel(i)));return Promise.all(n).then(H).catch(H)}invalidateQueries(t={},e={}){return M.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=M.batch(()=>r(this,R).findAll(t).filter(a=>!a.isDisabled()).map(a=>{let o=a.fetch(void 0,i);return i.throwOnError||(o=o.catch(H)),a.state.fetchStatus==="paused"?Promise.resolve():o}));return Promise.all(n).then(H)}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(Ot(e.staleTime,i))?i.fetch(e):Promise.resolve(i.state.data)}prefetchQuery(t){return this.fetchQuery(t).then(H).catch(H)}fetchInfiniteQuery(t){return t.behavior=Oe(t.pages),this.fetchQuery(t)}prefetchInfiniteQuery(t){return this.fetchInfiniteQuery(t).then(H).catch(H)}ensureInfiniteQueryData(t){return t.behavior=Oe(t.pages),this.ensureQueryData(t)}resumePausedMutations(){return Bt.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,Rt).set(mt(t),{queryKey:t,defaultOptions:e})}getQueryDefaults(t){const e=[...r(this,Rt).values()];let i={};return e.forEach(n=>{jt(t,n.queryKey)&&(i={...i,...n.defaultOptions})}),i}setMutationDefaults(t,e){r(this,Dt).set(mt(t),{mutationKey:t,defaultOptions:e})}getMutationDefaults(t){const e=[...r(this,Dt).values()];let i={};return e.forEach(n=>{jt(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=le(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===fe&&(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,Rt=new WeakMap,Dt=new WeakMap,it=new WeakMap,Ft=new WeakMap,Et=new WeakMap,Ae),j,b,Lt,T,ft,Mt,rt,z,kt,At,Ut,dt,yt,nt,qt,C,Tt,Zt,te,ee,se,ie,re,ne,Ye,Ue,vs=(Ue=class extends It{constructor(t,e){super();l(this,C);l(this,j);l(this,b);l(this,Lt);l(this,T);l(this,ft);l(this,Mt);l(this,rt);l(this,z);l(this,kt);l(this,At);l(this,Ut);l(this,dt);l(this,yt);l(this,nt);l(this,qt,new Set);this.options=e,h(this,j,t),h(this,z,null),h(this,rt,Xt()),this.options.experimental_prefetchInRender||r(this,rt).reject(new Error("experimental_prefetchInRender feature flag is not enabled")),this.bindMethods(),this.setOptions(e)}bindMethods(){this.refetch=this.refetch.bind(this)}onSubscribe(){this.listeners.size===1&&(r(this,b).addObserver(this),we(r(this,b),this.options)?p(this,C,Tt).call(this):this.updateResult(),p(this,C,se).call(this))}onUnsubscribe(){this.hasListeners()||this.destroy()}shouldFetchOnReconnect(){return ae(r(this,b),this.options,this.options.refetchOnReconnect)}shouldFetchOnWindowFocus(){return ae(r(this,b),this.options,this.options.refetchOnWindowFocus)}destroy(){this.listeners=new Set,p(this,C,ie).call(this),p(this,C,re).call(this),r(this,b).removeObserver(this)}setOptions(t,e){const i=this.options,n=r(this,b);if(this.options=r(this,j).defaultQueryOptions(t),this.options.enabled!==void 0&&typeof this.options.enabled!="boolean"&&typeof this.options.enabled!="function"&&typeof G(this.options.enabled,r(this,b))!="boolean")throw new Error("Expected enabled to be a boolean or a callback that returns a boolean");p(this,C,ne).call(this),r(this,b).setOptions(this.options),i._defaulted&&!$t(this.options,i)&&r(this,j).getQueryCache().notify({type:"observerOptionsUpdated",query:r(this,b),observer:this});const a=this.hasListeners();a&&Qe(r(this,b),n,this.options,i)&&p(this,C,Tt).call(this),this.updateResult(e),a&&(r(this,b)!==n||G(this.options.enabled,r(this,b))!==G(i.enabled,r(this,b))||Ot(this.options.staleTime,r(this,b))!==Ot(i.staleTime,r(this,b)))&&p(this,C,Zt).call(this);const o=p(this,C,te).call(this);a&&(r(this,b)!==n||G(this.options.enabled,r(this,b))!==G(i.enabled,r(this,b))||o!==r(this,nt))&&p(this,C,ee).call(this,o)}getOptimisticResult(t){const e=r(this,j).getQueryCache().build(r(this,j),t),i=this.createResult(e,t);return gs(this,i)&&(h(this,T,i),h(this,Mt,this.options),h(this,ft,r(this,b).state)),i}getCurrentResult(){return r(this,T)}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,qt).add(t)}getCurrentQuery(){return r(this,b)}refetch({...t}={}){return this.fetch({...t})}fetchOptimistic(t){const e=r(this,j).defaultQueryOptions(t),i=r(this,j).getQueryCache().build(r(this,j),e);return i.fetch().then(()=>this.createResult(i,e))}fetch(t){return p(this,C,Tt).call(this,{...t,cancelRefetch:t.cancelRefetch??!0}).then(()=>(this.updateResult(),r(this,T)))}createResult(t,e){var F;const i=r(this,b),n=this.options,a=r(this,T),o=r(this,ft),u=r(this,Mt),w=t!==i?t.state:r(this,Lt),{state:f}=t;let c={...f},O=!1,d;if(e._optimisticResults){const S=this.hasListeners(),vt=!S&&we(t,e),bt=S&&Qe(t,i,e,n);(vt||bt)&&(c={...c,...Be(f.data,t.options)}),e._optimisticResults==="isRestoring"&&(c.fetchStatus="idle")}let{error:Q,errorUpdatedAt:m,status:g}=c;if(e.select&&c.data!==void 0)if(a&&c.data===(o==null?void 0:o.data)&&e.select===r(this,kt))d=r(this,At);else try{h(this,kt,e.select),d=e.select(c.data),d=Jt(a==null?void 0:a.data,d,e),h(this,At,d),h(this,z,null)}catch(S){h(this,z,S)}else d=c.data;if(e.placeholderData!==void 0&&d===void 0&&g==="pending"){let S;if(a!=null&&a.isPlaceholderData&&e.placeholderData===(u==null?void 0:u.placeholderData))S=a.data;else if(S=typeof e.placeholderData=="function"?e.placeholderData((F=r(this,Ut))==null?void 0:F.state.data,r(this,Ut)):e.placeholderData,e.select&&S!==void 0)try{S=e.select(S),h(this,z,null)}catch(vt){h(this,z,vt)}S!==void 0&&(g="success",d=Jt(a==null?void 0:a.data,S,e),O=!0)}r(this,z)&&(Q=r(this,z),d=r(this,At),m=Date.now(),g="error");const D=c.fetchStatus==="fetching",E=g==="pending",P=g==="error",A=E&&D,K=d!==void 0,q={status:g,fetchStatus:c.fetchStatus,isPending:E,isSuccess:g==="success",isError:P,isInitialLoading:A,isLoading:A,data:d,dataUpdatedAt:c.dataUpdatedAt,error:Q,errorUpdatedAt:m,failureCount:c.fetchFailureCount,failureReason:c.fetchFailureReason,errorUpdateCount:c.errorUpdateCount,isFetched:c.dataUpdateCount>0||c.errorUpdateCount>0,isFetchedAfterMount:c.dataUpdateCount>w.dataUpdateCount||c.errorUpdateCount>w.errorUpdateCount,isFetching:D,isRefetching:D&&!E,isLoadingError:P&&!K,isPaused:c.fetchStatus==="paused",isPlaceholderData:O,isRefetchError:P&&K,isStale:ye(t,e),refetch:this.refetch,promise:r(this,rt)};if(this.options.experimental_prefetchInRender){const S=Ht=>{q.status==="error"?Ht.reject(q.error):q.data!==void 0&&Ht.resolve(q.data)},vt=()=>{const Ht=h(this,rt,q.promise=Xt());S(Ht)},bt=r(this,rt);switch(bt.status){case"pending":t.queryHash===i.queryHash&&S(bt);break;case"fulfilled":(q.status==="error"||q.data!==bt.value)&&vt();break;case"rejected":(q.status!=="error"||q.error!==bt.reason)&&vt();break}}return q}updateResult(t){const e=r(this,T),i=this.createResult(r(this,b),this.options);if(h(this,ft,r(this,b).state),h(this,Mt,this.options),r(this,ft).data!==void 0&&h(this,Ut,r(this,b)),$t(i,e))return;h(this,T,i);const n={},a=()=>{if(!e)return!0;const{notifyOnChangeProps:o}=this.options,u=typeof o=="function"?o():o;if(u==="all"||!u&&!r(this,qt).size)return!0;const y=new Set(u??r(this,qt));return this.options.throwOnError&&y.add("error"),Object.keys(r(this,T)).some(w=>{const f=w;return r(this,T)[f]!==e[f]&&y.has(f)})};(t==null?void 0:t.listeners)!==!1&&a()&&(n.listeners=!0),p(this,C,Ye).call(this,{...n,...t})}onQueryUpdate(){this.updateResult(),this.hasListeners()&&p(this,C,se).call(this)}},j=new WeakMap,b=new WeakMap,Lt=new WeakMap,T=new WeakMap,ft=new WeakMap,Mt=new WeakMap,rt=new WeakMap,z=new WeakMap,kt=new WeakMap,At=new WeakMap,Ut=new WeakMap,dt=new WeakMap,yt=new WeakMap,nt=new WeakMap,qt=new WeakMap,C=new WeakSet,Tt=function(t){p(this,C,ne).call(this);let e=r(this,b).fetch(this.options,t);return t!=null&&t.throwOnError||(e=e.catch(H)),e},Zt=function(){p(this,C,ie).call(this);const t=Ot(this.options.staleTime,r(this,b));if(pt||r(this,T).isStale||!Wt(t))return;const i=Le(r(this,T).dataUpdatedAt,t)+1;h(this,dt,setTimeout(()=>{r(this,T).isStale||this.updateResult()},i))},te=function(){return(typeof this.options.refetchInterval=="function"?this.options.refetchInterval(r(this,b)):this.options.refetchInterval)??!1},ee=function(t){p(this,C,re).call(this),h(this,nt,t),!(pt||G(this.options.enabled,r(this,b))===!1||!Wt(r(this,nt))||r(this,nt)===0)&&h(this,yt,setInterval(()=>{(this.options.refetchIntervalInBackground||de.isFocused())&&p(this,C,Tt).call(this)},r(this,nt)))},se=function(){p(this,C,Zt).call(this),p(this,C,ee).call(this,p(this,C,te).call(this))},ie=function(){r(this,dt)&&(clearTimeout(r(this,dt)),h(this,dt,void 0))},re=function(){r(this,yt)&&(clearInterval(r(this,yt)),h(this,yt,void 0))},ne=function(){const t=r(this,j).getQueryCache().build(r(this,j),this.options);if(t===r(this,b))return;const e=r(this,b);h(this,b,t),h(this,Lt,t.state),this.hasListeners()&&(e==null||e.removeObserver(this),t.addObserver(this))},Ye=function(t){M.batch(()=>{t.listeners&&this.listeners.forEach(e=>{e(r(this,T))}),r(this,j).getQueryCache().notify({query:r(this,b),type:"observerResultsUpdated"})})},Ue);function bs(s,t){return G(t.enabled,s)!==!1&&s.state.data===void 0&&!(s.state.status==="error"&&t.retryOnMount===!1)}function we(s,t){return bs(s,t)||s.state.data!==void 0&&ae(s,t,t.refetchOnMount)}function ae(s,t,e){if(G(t.enabled,s)!==!1){const i=typeof e=="function"?e(s):e;return i==="always"||i!==!1&&ye(s,t)}return!1}function Qe(s,t,e,i){return(s!==t||G(i.enabled,s)===!1)&&(!e.suspense||s.state.status!=="error")&&ye(s,e)}function ye(s,t){return G(t.enabled,s)!==!1&&s.isStaleByTime(Ot(t.staleTime,s))}function gs(s,t){return!$t(s.getCurrentResult(),t)}var at,ut,x,Y,J,Gt,ue,qe,Os=(qe=class extends It{constructor(t,e){super();l(this,J);l(this,at);l(this,ut);l(this,x);l(this,Y);h(this,at,t),this.setOptions(e),this.bindMethods(),p(this,J,Gt).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,at).defaultMutationOptions(t),$t(this.options,e)||r(this,at).getMutationCache().notify({type:"observerOptionsUpdated",mutation:r(this,x),observer:this}),e!=null&&e.mutationKey&&this.options.mutationKey&&mt(e.mutationKey)!==mt(this.options.mutationKey)?this.reset():((i=r(this,x))==null?void 0:i.state.status)==="pending"&&r(this,x).setOptions(this.options)}onUnsubscribe(){var t;this.hasListeners()||(t=r(this,x))==null||t.removeObserver(this)}onMutationUpdate(t){p(this,J,Gt).call(this),p(this,J,ue).call(this,t)}getCurrentResult(){return r(this,ut)}reset(){var t;(t=r(this,x))==null||t.removeObserver(this),h(this,x,void 0),p(this,J,Gt).call(this),p(this,J,ue).call(this)}mutate(t,e){var i;return h(this,Y,e),(i=r(this,x))==null||i.removeObserver(this),h(this,x,r(this,at).getMutationCache().build(r(this,at),this.options)),r(this,x).addObserver(this),r(this,x).execute(t)}},at=new WeakMap,ut=new WeakMap,x=new WeakMap,Y=new WeakMap,J=new WeakSet,Gt=function(){var e;const t=((e=r(this,x))==null?void 0:e.state)??ze();h(this,ut,{...t,isPending:t.status==="pending",isSuccess:t.status==="success",isError:t.status==="error",isIdle:t.status==="idle",mutate:this.mutate,reset:this.reset})},ue=function(t){M.batch(()=>{var e,i,n,a,o,u,y,w;if(r(this,Y)&&this.hasListeners()){const f=r(this,ut).variables,c=r(this,ut).context;(t==null?void 0:t.type)==="success"?((i=(e=r(this,Y)).onSuccess)==null||i.call(e,t.data,f,c),(a=(n=r(this,Y)).onSettled)==null||a.call(n,t.data,null,f,c)):(t==null?void 0:t.type)==="error"&&((u=(o=r(this,Y)).onError)==null||u.call(o,t.error,f,c),(w=(y=r(this,Y)).onSettled)==null||w.call(y,void 0,t.error,f,c))}this.listeners.forEach(f=>{f(r(this,ut))})})},qe),Cs="VUE_QUERY_CLIENT";function Je(s){const t=s?`:${s}`:"";return`${Cs}${t}`}function oe(s,t){Object.keys(s).forEach(e=>{s[e]=t[e]})}function he(s,t,e="",i=0){if(t){const n=t(s,e,i);if(n===void 0&&Ie(s)||n!==void 0)return n}if(Array.isArray(s))return s.map((n,a)=>he(n,t,String(a),i+1));if(typeof s=="object"&&Qs(s)){const n=Object.entries(s).map(([a,o])=>[a,he(o,t,a,i+1)]);return Object.fromEntries(n)}return s}function ws(s,t){return he(s,t)}function v(s,t=!1){return ws(s,(e,i,n)=>{if(n===1&&i==="queryKey")return v(e,!0);if(t&&Ss(e))return v(e(),t);if(Ie(e))return v(Ze(e),t)})}function Qs(s){if(Object.prototype.toString.call(s)!=="[object Object]")return!1;const t=Object.getPrototypeOf(s);return t===null||t===Object.prototype}function Ss(s){return typeof s=="function"}function ce(s,t){return typeof s=="function"?s(...t):!!s}function Xe(s=""){if(!ts())throw new Error("vue-query hooks can only be used inside setup() function or functions that support injection context.");const t=Je(s),e=es(t);if(!e)throw new Error("No 'queryClient' found in Vue context, use 'VueQueryPlugin' to properly initialize the library.");return e}var Ps=class extends Ve{find(s){return super.find(v(s))}findAll(s={}){return super.findAll(v(s))}},Rs=class extends We{find(s){return super.find(v(s))}findAll(s={}){return super.findAll(v(s))}},Ds=class extends ms{constructor(s={}){const t={defaultOptions:s.defaultOptions,queryCache:s.queryCache||new Ps,mutationCache:s.mutationCache||new Rs};super(t),this.isRestoring=ss(!1)}isFetching(s={}){return super.isFetching(v(s))}isMutating(s={}){return super.isMutating(v(s))}getQueryData(s){return super.getQueryData(v(s))}ensureQueryData(s){return super.ensureQueryData(v(s))}getQueriesData(s){return super.getQueriesData(v(s))}setQueryData(s,t,e={}){return super.setQueryData(v(s),t,v(e))}setQueriesData(s,t,e={}){return super.setQueriesData(v(s),t,v(e))}getQueryState(s){return super.getQueryState(v(s))}removeQueries(s={}){return super.removeQueries(v(s))}resetQueries(s={},t={}){return super.resetQueries(v(s),v(t))}cancelQueries(s={},t={}){return super.cancelQueries(v(s),v(t))}invalidateQueries(s={},t={}){const e=v(s),i=v(t);if(super.invalidateQueries({...e,refetchType:"none"},i),e.refetchType==="none")return Promise.resolve();const n={...e,type:e.refetchType??e.type??"active"};return is().then(()=>super.refetchQueries(n,i))}refetchQueries(s={},t={}){return super.refetchQueries(v(s),v(t))}fetchQuery(s){return super.fetchQuery(v(s))}prefetchQuery(s){return super.prefetchQuery(v(s))}fetchInfiniteQuery(s){return super.fetchInfiniteQuery(v(s))}prefetchInfiniteQuery(s){return super.prefetchInfiniteQuery(v(s))}setDefaultOptions(s){super.setDefaultOptions(v(s))}setQueryDefaults(s,t){super.setQueryDefaults(v(s),v(t))}getQueryDefaults(s){return super.getQueryDefaults(v(s))}setMutationDefaults(s,t){super.setMutationDefaults(v(s),v(t))}getMutationDefaults(s){return super.getMutationDefaults(v(s))}},Is={install:(s,t={})=>{const e=Je(t.queryClientKey);let i;if("queryClient"in t&&t.queryClient)i=t.queryClient;else{const o="queryClientConfig"in t?t.queryClientConfig:void 0;i=new Ds(o)}pt||i.mount();let n=()=>{};if(t.clientPersister){i.isRestoring.value=!0;const[o,u]=t.clientPersister(i);n=o,u.then(()=>{var y;i.isRestoring.value=!1,(y=t.clientPersisterOnSuccess)==null||y.call(t,i)})}const a=()=>{i.unmount(),n()};if(s.onUnmount)s.onUnmount(a);else{const o=s.unmount;s.unmount=function(){a(),o()}}s.provide(e,i)}};function Fs(s,t,e){const i=Xe(),n=Te(()=>{const d=v(t);typeof d.enabled=="function"&&(d.enabled=d.enabled());const Q=i.defaultQueryOptions(d);return Q._optimisticResults=i.isRestoring.value?"isRestoring":"optimistic",Q}),a=new s(i,n.value),o=je(a.getCurrentResult());let u=()=>{};gt(i.isRestoring,d=>{d||(u(),u=a.subscribe(Q=>{oe(o,Q)}))},{immediate:!0});const y=()=>{a.setOptions(n.value),oe(o,a.getCurrentResult())};gt(n,y),xe(()=>{u()});const w=(...d)=>(y(),o.refetch(...d)),f=()=>new Promise((d,Q)=>{let m=()=>{};const g=()=>{if(n.value.enabled!==!1){a.setOptions(n.value);const D=a.getOptimisticResult(n.value);D.isStale?(m(),a.fetchOptimistic(n.value).then(d,E=>{ce(n.value.throwOnError,[E,a.getCurrentQuery()])?Q(E):d(a.getCurrentResult())})):(m(),d(D))}};g(),m=gt(n,g)});gt(()=>o.error,d=>{if(o.isError&&!o.isFetching&&ce(n.value.throwOnError,[d,a.getCurrentQuery()]))throw d});const O=Ke(o);for(const d in o)typeof o[d]=="function"&&(O[d]=o[d]);return O.suspense=f,O.refetch=w,O}function Ts(s,t){return Fs(vs,s)}function js(s,t){const e=Xe(),i=Te(()=>e.defaultMutationOptions(v(s))),n=new Os(e,i.value),a=je(n.getCurrentResult()),o=n.subscribe(f=>{oe(a,f)}),u=(f,c)=>{n.mutate(f,c).catch(()=>{})};gt(i,()=>{n.setOptions(i.value)}),xe(()=>{o()});const w=Ke(a);return gt(()=>a.error,f=>{if(f&&ce(i.value.throwOnError,[f]))throw f}),{...w,mutate:u,mutateAsync:a.mutate,reset:a.reset}}export{Ds as Q,Is as V,Ts as a,js as b,Xe as u};
|
|
1
|
+
var pe=s=>{throw TypeError(s)};var Vt=(s,t,e)=>t.has(s)||pe("Cannot "+e);var r=(s,t,e)=>(Vt(s,t,"read from private field"),e?e.call(s):t.get(s)),l=(s,t,e)=>t.has(s)?pe("Cannot add the same private member more than once"):t instanceof WeakSet?t.add(s):t.set(s,e),h=(s,t,e,i)=>(Vt(s,t,"write to private field"),i?i.call(s,e):t.set(s,e),e),p=(s,t,e)=>(Vt(s,t,"access private method"),e);var _t=(s,t,e,i)=>({set _(n){h(s,t,n,e)},get _(){return r(s,t,i)}});import{i as Ie,u as Ze,h as ts,a as es,r as ss,n as is,c as Te,s as je,w as gt,o as xe,t as Ke}from"./@vue.CA7eQC0C.0.0.34-alpha.5.js";var It=class{constructor(){this.listeners=new Set,this.subscribe=this.subscribe.bind(this)}subscribe(s){return this.listeners.add(s),this.onSubscribe(),()=>{this.listeners.delete(s),this.onUnsubscribe()}}hasListeners(){return this.listeners.size>0}onSubscribe(){}onUnsubscribe(){}},pt=typeof window>"u"||"Deno"in globalThis;function H(){}function rs(s,t){return typeof s=="function"?s(t):s}function Wt(s){return typeof s=="number"&&s>=0&&s!==1/0}function Le(s,t){return Math.max(s+(t||0)-Date.now(),0)}function Ot(s,t){return typeof s=="function"?s(t):s}function G(s,t){return typeof s=="function"?s(t):s}function me(s,t){const{type:e="all",exact:i,fetchStatus:n,predicate:a,queryKey:o,stale:u}=s;if(o){if(i){if(t.queryHash!==le(o,t.options))return!1}else if(!jt(t.queryKey,o))return!1}if(e!=="all"){const y=t.isActive();if(e==="active"&&!y||e==="inactive"&&y)return!1}return!(typeof u=="boolean"&&t.isStale()!==u||n&&n!==t.state.fetchStatus||a&&!a(t))}function ve(s,t){const{exact:e,status:i,predicate:n,mutationKey:a}=s;if(a){if(!t.options.mutationKey)return!1;if(e){if(mt(t.options.mutationKey)!==mt(a))return!1}else if(!jt(t.options.mutationKey,a))return!1}return!(i&&t.state.status!==i||n&&!n(t))}function le(s,t){return((t==null?void 0:t.queryKeyHashFn)||mt)(s)}function mt(s){return JSON.stringify(s,(t,e)=>Yt(e)?Object.keys(e).sort().reduce((i,n)=>(i[n]=e[n],i),{}):e)}function jt(s,t){return s===t?!0:typeof s!=typeof t?!1:s&&t&&typeof s=="object"&&typeof t=="object"?!Object.keys(t).some(e=>!jt(s[e],t[e])):!1}function ke(s,t){if(s===t)return s;const e=be(s)&&be(t);if(e||Yt(s)&&Yt(t)){const i=e?s:Object.keys(s),n=i.length,a=e?t:Object.keys(t),o=a.length,u=e?[]:{};let y=0;for(let w=0;w<o;w++){const f=e?w:a[w];(!e&&i.includes(f)||e)&&s[f]===void 0&&t[f]===void 0?(u[f]=void 0,y++):(u[f]=ke(s[f],t[f]),u[f]===s[f]&&s[f]!==void 0&&y++)}return n===o&&y===n?s:u}return t}function $t(s,t){if(!t||Object.keys(s).length!==Object.keys(t).length)return!1;for(const e in s)if(s[e]!==t[e])return!1;return!0}function be(s){return Array.isArray(s)&&s.length===Object.keys(s).length}function Yt(s){if(!ge(s))return!1;const t=s.constructor;if(t===void 0)return!0;const e=t.prototype;return!(!ge(e)||!e.hasOwnProperty("isPrototypeOf")||Object.getPrototypeOf(s)!==Object.prototype)}function ge(s){return Object.prototype.toString.call(s)==="[object Object]"}function ns(s){return new Promise(t=>{setTimeout(t,s)})}function Jt(s,t,e){return typeof e.structuralSharing=="function"?e.structuralSharing(s,t):e.structuralSharing!==!1?ke(s,t):t}function as(s,t,e=0){const i=[...s,t];return e&&i.length>e?i.slice(1):i}function us(s,t,e=0){const i=[t,...s];return e&&i.length>e?i.slice(0,-1):i}var fe=Symbol();function He(s,t){return!s.queryFn&&(t!=null&&t.initialPromise)?()=>t.initialPromise:!s.queryFn||s.queryFn===fe?()=>Promise.reject(new Error(`Missing queryFn: '${s.queryHash}'`)):s.queryFn}var ot,Z,Ct,Se,os=(Se=class extends It{constructor(){super();l(this,ot);l(this,Z);l(this,Ct);h(this,Ct,t=>{if(!pt&&window.addEventListener){const e=()=>t();return window.addEventListener("visibilitychange",e,!1),()=>{window.removeEventListener("visibilitychange",e)}}})}onSubscribe(){r(this,Z)||this.setEventListener(r(this,Ct))}onUnsubscribe(){var t;this.hasListeners()||((t=r(this,Z))==null||t.call(this),h(this,Z,void 0))}setEventListener(t){var e;h(this,Ct,t),(e=r(this,Z))==null||e.call(this),h(this,Z,t(i=>{typeof i=="boolean"?this.setFocused(i):this.onFocus()}))}setFocused(t){r(this,ot)!==t&&(h(this,ot,t),this.onFocus())}onFocus(){const t=this.isFocused();this.listeners.forEach(e=>{e(t)})}isFocused(){var t;return typeof r(this,ot)=="boolean"?r(this,ot):((t=globalThis.document)==null?void 0:t.visibilityState)!=="hidden"}},ot=new WeakMap,Z=new WeakMap,Ct=new WeakMap,Se),de=new os,wt,tt,Qt,Pe,hs=(Pe=class extends It{constructor(){super();l(this,wt,!0);l(this,tt);l(this,Qt);h(this,Qt,t=>{if(!pt&&window.addEventListener){const e=()=>t(!0),i=()=>t(!1);return window.addEventListener("online",e,!1),window.addEventListener("offline",i,!1),()=>{window.removeEventListener("online",e),window.removeEventListener("offline",i)}}})}onSubscribe(){r(this,tt)||this.setEventListener(r(this,Qt))}onUnsubscribe(){var t;this.hasListeners()||((t=r(this,tt))==null||t.call(this),h(this,tt,void 0))}setEventListener(t){var e;h(this,Qt,t),(e=r(this,tt))==null||e.call(this),h(this,tt,t(this.setOnline.bind(this)))}setOnline(t){r(this,wt)!==t&&(h(this,wt,t),this.listeners.forEach(i=>{i(t)}))}isOnline(){return r(this,wt)}},wt=new WeakMap,tt=new WeakMap,Qt=new WeakMap,Pe),Bt=new hs;function Xt(){let s,t;const e=new Promise((n,a)=>{s=n,t=a});e.status="pending",e.catch(()=>{});function i(n){Object.assign(e,n),delete e.resolve,delete e.reject}return e.resolve=n=>{i({status:"fulfilled",value:n}),s(n)},e.reject=n=>{i({status:"rejected",reason:n}),t(n)},e}function cs(s){return Math.min(1e3*2**s,3e4)}function _e(s){return(s??"online")==="online"?Bt.isOnline():!0}var Ne=class extends Error{constructor(s){super("CancelledError"),this.revert=s==null?void 0:s.revert,this.silent=s==null?void 0:s.silent}};function zt(s){return s instanceof Ne}function Ge(s){let t=!1,e=0,i=!1,n;const a=Xt(),o=m=>{var g;i||(O(new Ne(m)),(g=s.abort)==null||g.call(s))},u=()=>{t=!0},y=()=>{t=!1},w=()=>de.isFocused()&&(s.networkMode==="always"||Bt.isOnline())&&s.canRun(),f=()=>_e(s.networkMode)&&s.canRun(),c=m=>{var g;i||(i=!0,(g=s.onSuccess)==null||g.call(s,m),n==null||n(),a.resolve(m))},O=m=>{var g;i||(i=!0,(g=s.onError)==null||g.call(s,m),n==null||n(),a.reject(m))},d=()=>new Promise(m=>{var g;n=D=>{(i||w())&&m(D)},(g=s.onPause)==null||g.call(s)}).then(()=>{var m;n=void 0,i||(m=s.onContinue)==null||m.call(s)}),Q=()=>{if(i)return;let m;const g=e===0?s.initialPromise:void 0;try{m=g??s.fn()}catch(D){m=Promise.reject(D)}Promise.resolve(m).then(c).catch(D=>{var _;if(i)return;const E=s.retry??(pt?0:3),P=s.retryDelay??cs,A=typeof P=="function"?P(e,D):P,K=E===!0||typeof E=="number"&&e<E||typeof E=="function"&&E(e,D);if(t||!K){O(D);return}e++,(_=s.onFail)==null||_.call(s,e,D),ns(A).then(()=>w()?void 0:d()).then(()=>{t?O(D):Q()})})};return{promise:a,cancel:o,continue:()=>(n==null||n(),a),cancelRetry:u,continueRetry:y,canStart:f,start:()=>(f()?Q():d().then(Q),a)}}function ls(){let s=[],t=0,e=u=>{u()},i=u=>{u()},n=u=>setTimeout(u,0);const a=u=>{t?s.push(u):n(()=>{e(u)})},o=()=>{const u=s;s=[],u.length&&n(()=>{i(()=>{u.forEach(y=>{e(y)})})})};return{batch:u=>{let y;t++;try{y=u()}finally{t--,t||o()}return y},batchCalls:u=>(...y)=>{a(()=>{u(...y)})},schedule:a,setNotifyFunction:u=>{e=u},setBatchNotifyFunction:u=>{i=u},setScheduler:u=>{n=u}}}var M=ls(),ht,Re,$e=(Re=class{constructor(){l(this,ht)}destroy(){this.clearGcTimeout()}scheduleGc(){this.clearGcTimeout(),Wt(this.gcTime)&&h(this,ht,setTimeout(()=>{this.optionalRemove()},this.gcTime))}updateGcTime(s){this.gcTime=Math.max(this.gcTime||0,s??(pt?1/0:5*60*1e3))}clearGcTimeout(){r(this,ht)&&(clearTimeout(r(this,ht)),h(this,ht,void 0))}},ht=new WeakMap,Re),St,Pt,k,U,xt,ct,N,W,De,fs=(De=class extends $e{constructor(t){super();l(this,N);l(this,St);l(this,Pt);l(this,k);l(this,U);l(this,xt);l(this,ct);h(this,ct,!1),h(this,xt,t.defaultOptions),this.setOptions(t.options),this.observers=[],h(this,k,t.cache),this.queryKey=t.queryKey,this.queryHash=t.queryHash,h(this,St,ds(this.options)),this.state=t.state??r(this,St),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,xt),...t},this.updateGcTime(this.options.gcTime)}optionalRemove(){!this.observers.length&&this.state.fetchStatus==="idle"&&r(this,k).remove(this)}setData(t,e){const i=Jt(this.state.data,t,this.options);return p(this,N,W).call(this,{data:i,type:"success",dataUpdatedAt:e==null?void 0:e.updatedAt,manual:e==null?void 0:e.manual}),i}setState(t,e){p(this,N,W).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(H).catch(H):Promise.resolve()}destroy(){super.destroy(),this.cancel({silent:!0})}reset(){this.destroy(),this.setState(r(this,St))}isActive(){return this.observers.some(t=>G(t.options.enabled,this)!==!1)}isDisabled(){return this.getObserversCount()>0?!this.isActive():this.options.queryFn===fe||this.state.dataUpdateCount+this.state.errorUpdateCount===0}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||!Le(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,k).notify({type:"observerAdded",query:this,observer:t}))}removeObserver(t){this.observers.includes(t)&&(this.observers=this.observers.filter(e=>e!==t),this.observers.length||(r(this,U)&&(r(this,ct)?r(this,U).cancel({revert:!0}):r(this,U).cancelRetry()),this.scheduleGc()),r(this,k).notify({type:"observerRemoved",query:this,observer:t}))}getObserversCount(){return this.observers.length}invalidate(){this.state.isInvalidated||p(this,N,W).call(this,{type:"invalidate"})}fetch(t,e){var y,w,f;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,ct,!0),i.signal)})},a=()=>{const c=He(this.options,e),O={queryKey:this.queryKey,meta:this.meta};return n(O),h(this,ct,!1),this.options.persister?this.options.persister(c,O,this):c(O)},o={fetchOptions:e,options:this.options,queryKey:this.queryKey,state:this.state,fetchFn:a};n(o),(y=this.options.behavior)==null||y.onFetch(o,this),h(this,Pt,this.state),(this.state.fetchStatus==="idle"||this.state.fetchMeta!==((w=o.fetchOptions)==null?void 0:w.meta))&&p(this,N,W).call(this,{type:"fetch",meta:(f=o.fetchOptions)==null?void 0:f.meta});const u=c=>{var O,d,Q,m;zt(c)&&c.silent||p(this,N,W).call(this,{type:"error",error:c}),zt(c)||((d=(O=r(this,k).config).onError)==null||d.call(O,c,this),(m=(Q=r(this,k).config).onSettled)==null||m.call(Q,this.state.data,c,this)),this.scheduleGc()};return h(this,U,Ge({initialPromise:e==null?void 0:e.initialPromise,fn:o.fetchFn,abort:i.abort.bind(i),onSuccess:c=>{var O,d,Q,m;if(c===void 0){u(new Error(`${this.queryHash} data is undefined`));return}try{this.setData(c)}catch(g){u(g);return}(d=(O=r(this,k).config).onSuccess)==null||d.call(O,c,this),(m=(Q=r(this,k).config).onSettled)==null||m.call(Q,c,this.state.error,this),this.scheduleGc()},onError:u,onFail:(c,O)=>{p(this,N,W).call(this,{type:"failed",failureCount:c,error:O})},onPause:()=>{p(this,N,W).call(this,{type:"pause"})},onContinue:()=>{p(this,N,W).call(this,{type:"continue"})},retry:o.options.retry,retryDelay:o.options.retryDelay,networkMode:o.options.networkMode,canRun:()=>!0})),r(this,U).start()}},St=new WeakMap,Pt=new WeakMap,k=new WeakMap,U=new WeakMap,xt=new WeakMap,ct=new WeakMap,N=new WeakSet,W=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,...Be(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 zt(n)&&n.revert&&r(this,Pt)?{...r(this,Pt),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),M.batch(()=>{this.observers.forEach(i=>{i.onQueryUpdate()}),r(this,k).notify({query:this,type:"updated",action:t})})},De);function Be(s,t){return{fetchFailureCount:0,fetchFailureReason:null,fetchStatus:_e(t.networkMode)?"fetching":"paused",...s===void 0&&{error:null,status:"pending"}}}function ds(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 $,Fe,Ve=(Fe=class extends It{constructor(e={}){super();l(this,$);this.config=e,h(this,$,new Map)}build(e,i,n){const a=i.queryKey,o=i.queryHash??le(a,i);let u=this.get(o);return u||(u=new fs({cache:this,queryKey:a,queryHash:o,options:e.defaultQueryOptions(i),state:n,defaultOptions:e.getQueryDefaults(a)}),this.add(u)),u}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(){M.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=>me(i,n))}findAll(e={}){const i=this.getAll();return Object.keys(e).length>0?i.filter(n=>me(e,n)):i}notify(e){M.batch(()=>{this.listeners.forEach(i=>{i(e)})})}onFocus(){M.batch(()=>{this.getAll().forEach(e=>{e.onFocus()})})}onOnline(){M.batch(()=>{this.getAll().forEach(e=>{e.onOnline()})})}},$=new WeakMap,Fe),B,I,lt,V,X,Ee,ys=(Ee=class extends $e{constructor(t){super();l(this,V);l(this,B);l(this,I);l(this,lt);this.mutationId=t.mutationId,h(this,I,t.mutationCache),h(this,B,[]),this.state=t.state||ze(),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,I).notify({type:"observerAdded",mutation:this,observer:t}))}removeObserver(t){h(this,B,r(this,B).filter(e=>e!==t)),this.scheduleGc(),r(this,I).notify({type:"observerRemoved",mutation:this,observer:t})}optionalRemove(){r(this,B).length||(this.state.status==="pending"?this.scheduleGc():r(this,I).remove(this))}continue(){var t;return((t=r(this,lt))==null?void 0:t.continue())??this.execute(this.state.variables)}async execute(t){var n,a,o,u,y,w,f,c,O,d,Q,m,g,D,E,P,A,K,_,q;h(this,lt,Ge({fn:()=>this.options.mutationFn?this.options.mutationFn(t):Promise.reject(new Error("No mutationFn found")),onFail:(F,S)=>{p(this,V,X).call(this,{type:"failed",failureCount:F,error:S})},onPause:()=>{p(this,V,X).call(this,{type:"pause"})},onContinue:()=>{p(this,V,X).call(this,{type:"continue"})},retry:this.options.retry??0,retryDelay:this.options.retryDelay,networkMode:this.options.networkMode,canRun:()=>r(this,I).canRun(this)}));const e=this.state.status==="pending",i=!r(this,lt).canStart();try{if(!e){p(this,V,X).call(this,{type:"pending",variables:t,isPaused:i}),await((a=(n=r(this,I).config).onMutate)==null?void 0:a.call(n,t,this));const S=await((u=(o=this.options).onMutate)==null?void 0:u.call(o,t));S!==this.state.context&&p(this,V,X).call(this,{type:"pending",context:S,variables:t,isPaused:i})}const F=await r(this,lt).start();return await((w=(y=r(this,I).config).onSuccess)==null?void 0:w.call(y,F,t,this.state.context,this)),await((c=(f=this.options).onSuccess)==null?void 0:c.call(f,F,t,this.state.context)),await((d=(O=r(this,I).config).onSettled)==null?void 0:d.call(O,F,null,this.state.variables,this.state.context,this)),await((m=(Q=this.options).onSettled)==null?void 0:m.call(Q,F,null,t,this.state.context)),p(this,V,X).call(this,{type:"success",data:F}),F}catch(F){try{throw await((D=(g=r(this,I).config).onError)==null?void 0:D.call(g,F,t,this.state.context,this)),await((P=(E=this.options).onError)==null?void 0:P.call(E,F,t,this.state.context)),await((K=(A=r(this,I).config).onSettled)==null?void 0:K.call(A,void 0,F,this.state.variables,this.state.context,this)),await((q=(_=this.options).onSettled)==null?void 0:q.call(_,void 0,F,t,this.state.context)),F}finally{p(this,V,X).call(this,{type:"error",error:F})}}finally{r(this,I).runNext(this)}}},B=new WeakMap,I=new WeakMap,lt=new WeakMap,V=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),M.batch(()=>{r(this,B).forEach(i=>{i.onMutationUpdate(t)}),r(this,I).notify({mutation:this,type:"updated",action:t})})},Ee);function ze(){return{context:void 0,data:void 0,error:null,failureCount:0,failureReason:null,isPaused:!1,status:"idle",variables:void 0,submittedAt:0}}var L,Kt,Me,We=(Me=class extends It{constructor(e={}){super();l(this,L);l(this,Kt);this.config=e,h(this,L,new Map),h(this,Kt,Date.now())}build(e,i,n){const a=new ys({mutationCache:this,mutationId:++_t(this,Kt)._,options:e.defaultMutationOptions(i),state:n});return this.add(a),a}add(e){const i=Nt(e),n=r(this,L).get(i)??[];n.push(e),r(this,L).set(i,n),this.notify({type:"added",mutation:e})}remove(e){var n;const i=Nt(e);if(r(this,L).has(i)){const a=(n=r(this,L).get(i))==null?void 0:n.filter(o=>o!==e);a&&(a.length===0?r(this,L).delete(i):r(this,L).set(i,a))}this.notify({type:"removed",mutation:e})}canRun(e){var n;const i=(n=r(this,L).get(Nt(e)))==null?void 0:n.find(a=>a.state.status==="pending");return!i||i===e}runNext(e){var n;const i=(n=r(this,L).get(Nt(e)))==null?void 0:n.find(a=>a!==e&&a.state.isPaused);return(i==null?void 0:i.continue())??Promise.resolve()}clear(){M.batch(()=>{this.getAll().forEach(e=>{this.remove(e)})})}getAll(){return[...r(this,L).values()].flat()}find(e){const i={exact:!0,...e};return this.getAll().find(n=>ve(i,n))}findAll(e={}){return this.getAll().filter(i=>ve(e,i))}notify(e){M.batch(()=>{this.listeners.forEach(i=>{i(e)})})}resumePausedMutations(){const e=this.getAll().filter(i=>i.state.isPaused);return M.batch(()=>Promise.all(e.map(i=>i.continue().catch(H))))}},L=new WeakMap,Kt=new WeakMap,Me);function Nt(s){var t;return((t=s.options.scope)==null?void 0:t.id)??String(s.mutationId)}function Oe(s){return{onFetch:(t,e)=>{var f,c,O,d,Q;const i=t.options,n=(O=(c=(f=t.fetchOptions)==null?void 0:f.meta)==null?void 0:c.fetchMore)==null?void 0:O.direction,a=((d=t.state.data)==null?void 0:d.pages)||[],o=((Q=t.state.data)==null?void 0:Q.pageParams)||[];let u={pages:[],pageParams:[]},y=0;const w=async()=>{let m=!1;const g=P=>{Object.defineProperty(P,"signal",{enumerable:!0,get:()=>(t.signal.aborted?m=!0:t.signal.addEventListener("abort",()=>{m=!0}),t.signal)})},D=He(t.options,t.fetchOptions),E=async(P,A,K)=>{if(m)return Promise.reject();if(A==null&&P.pages.length)return Promise.resolve(P);const _={queryKey:t.queryKey,pageParam:A,direction:K?"backward":"forward",meta:t.options.meta};g(_);const q=await D(_),{maxPages:F}=t.options,S=K?us:as;return{pages:S(P.pages,q,F),pageParams:S(P.pageParams,A,F)}};if(n&&a.length){const P=n==="backward",A=P?ps:Ce,K={pages:a,pageParams:o},_=A(i,K);u=await E(K,_,P)}else{const P=s??a.length;do{const A=y===0?o[0]??i.initialPageParam:Ce(i,u);if(y>0&&A==null)break;u=await E(u,A),y++}while(y<P)}return u};t.options.persister?t.fetchFn=()=>{var m,g;return(g=(m=t.options).persister)==null?void 0:g.call(m,w,{queryKey:t.queryKey,meta:t.options.meta,signal:t.signal},e)}:t.fetchFn=w}}}function Ce(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 ps(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,Rt,Dt,it,Ft,Et,Ae,ms=(Ae=class{constructor(t={}){l(this,R);l(this,et);l(this,st);l(this,Rt);l(this,Dt);l(this,it);l(this,Ft);l(this,Et);h(this,R,t.queryCache||new Ve),h(this,et,t.mutationCache||new We),h(this,st,t.defaultOptions||{}),h(this,Rt,new Map),h(this,Dt,new Map),h(this,it,0)}mount(){_t(this,it)._++,r(this,it)===1&&(h(this,Ft,de.subscribe(async t=>{t&&(await this.resumePausedMutations(),r(this,R).onFocus())})),h(this,Et,Bt.subscribe(async t=>{t&&(await this.resumePausedMutations(),r(this,R).onOnline())})))}unmount(){var t,e;_t(this,it)._--,r(this,it)===0&&((t=r(this,Ft))==null||t.call(this),h(this,Ft,void 0),(e=r(this,Et))==null||e.call(this),h(this,Et,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(Ot(i.staleTime,n))&&this.prefetchQuery(i),Promise.resolve(e)}}getQueriesData(t){return r(this,R).findAll(t).map(({queryKey:e,state:i})=>{const n=i.data;return[e,n]})}setQueryData(t,e,i){const n=this.defaultQueryOptions({queryKey:t}),a=r(this,R).get(n.queryHash),o=a==null?void 0:a.state.data,u=rs(e,o);if(u!==void 0)return r(this,R).build(this,n).setData(u,{...i,manual:!0})}setQueriesData(t,e,i){return M.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);M.batch(()=>{e.findAll(t).forEach(i=>{e.remove(i)})})}resetQueries(t,e){const i=r(this,R),n={type:"active",...t};return M.batch(()=>(i.findAll(t).forEach(a=>{a.reset()}),this.refetchQueries(n,e)))}cancelQueries(t={},e={}){const i={revert:!0,...e},n=M.batch(()=>r(this,R).findAll(t).map(a=>a.cancel(i)));return Promise.all(n).then(H).catch(H)}invalidateQueries(t={},e={}){return M.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=M.batch(()=>r(this,R).findAll(t).filter(a=>!a.isDisabled()).map(a=>{let o=a.fetch(void 0,i);return i.throwOnError||(o=o.catch(H)),a.state.fetchStatus==="paused"?Promise.resolve():o}));return Promise.all(n).then(H)}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(Ot(e.staleTime,i))?i.fetch(e):Promise.resolve(i.state.data)}prefetchQuery(t){return this.fetchQuery(t).then(H).catch(H)}fetchInfiniteQuery(t){return t.behavior=Oe(t.pages),this.fetchQuery(t)}prefetchInfiniteQuery(t){return this.fetchInfiniteQuery(t).then(H).catch(H)}ensureInfiniteQueryData(t){return t.behavior=Oe(t.pages),this.ensureQueryData(t)}resumePausedMutations(){return Bt.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,Rt).set(mt(t),{queryKey:t,defaultOptions:e})}getQueryDefaults(t){const e=[...r(this,Rt).values()];let i={};return e.forEach(n=>{jt(t,n.queryKey)&&(i={...i,...n.defaultOptions})}),i}setMutationDefaults(t,e){r(this,Dt).set(mt(t),{mutationKey:t,defaultOptions:e})}getMutationDefaults(t){const e=[...r(this,Dt).values()];let i={};return e.forEach(n=>{jt(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=le(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===fe&&(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,Rt=new WeakMap,Dt=new WeakMap,it=new WeakMap,Ft=new WeakMap,Et=new WeakMap,Ae),j,b,Lt,T,ft,Mt,rt,z,kt,At,Ut,dt,yt,nt,qt,C,Tt,Zt,te,ee,se,ie,re,ne,Ye,Ue,vs=(Ue=class extends It{constructor(t,e){super();l(this,C);l(this,j);l(this,b);l(this,Lt);l(this,T);l(this,ft);l(this,Mt);l(this,rt);l(this,z);l(this,kt);l(this,At);l(this,Ut);l(this,dt);l(this,yt);l(this,nt);l(this,qt,new Set);this.options=e,h(this,j,t),h(this,z,null),h(this,rt,Xt()),this.options.experimental_prefetchInRender||r(this,rt).reject(new Error("experimental_prefetchInRender feature flag is not enabled")),this.bindMethods(),this.setOptions(e)}bindMethods(){this.refetch=this.refetch.bind(this)}onSubscribe(){this.listeners.size===1&&(r(this,b).addObserver(this),we(r(this,b),this.options)?p(this,C,Tt).call(this):this.updateResult(),p(this,C,se).call(this))}onUnsubscribe(){this.hasListeners()||this.destroy()}shouldFetchOnReconnect(){return ae(r(this,b),this.options,this.options.refetchOnReconnect)}shouldFetchOnWindowFocus(){return ae(r(this,b),this.options,this.options.refetchOnWindowFocus)}destroy(){this.listeners=new Set,p(this,C,ie).call(this),p(this,C,re).call(this),r(this,b).removeObserver(this)}setOptions(t,e){const i=this.options,n=r(this,b);if(this.options=r(this,j).defaultQueryOptions(t),this.options.enabled!==void 0&&typeof this.options.enabled!="boolean"&&typeof this.options.enabled!="function"&&typeof G(this.options.enabled,r(this,b))!="boolean")throw new Error("Expected enabled to be a boolean or a callback that returns a boolean");p(this,C,ne).call(this),r(this,b).setOptions(this.options),i._defaulted&&!$t(this.options,i)&&r(this,j).getQueryCache().notify({type:"observerOptionsUpdated",query:r(this,b),observer:this});const a=this.hasListeners();a&&Qe(r(this,b),n,this.options,i)&&p(this,C,Tt).call(this),this.updateResult(e),a&&(r(this,b)!==n||G(this.options.enabled,r(this,b))!==G(i.enabled,r(this,b))||Ot(this.options.staleTime,r(this,b))!==Ot(i.staleTime,r(this,b)))&&p(this,C,Zt).call(this);const o=p(this,C,te).call(this);a&&(r(this,b)!==n||G(this.options.enabled,r(this,b))!==G(i.enabled,r(this,b))||o!==r(this,nt))&&p(this,C,ee).call(this,o)}getOptimisticResult(t){const e=r(this,j).getQueryCache().build(r(this,j),t),i=this.createResult(e,t);return gs(this,i)&&(h(this,T,i),h(this,Mt,this.options),h(this,ft,r(this,b).state)),i}getCurrentResult(){return r(this,T)}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,qt).add(t)}getCurrentQuery(){return r(this,b)}refetch({...t}={}){return this.fetch({...t})}fetchOptimistic(t){const e=r(this,j).defaultQueryOptions(t),i=r(this,j).getQueryCache().build(r(this,j),e);return i.fetch().then(()=>this.createResult(i,e))}fetch(t){return p(this,C,Tt).call(this,{...t,cancelRefetch:t.cancelRefetch??!0}).then(()=>(this.updateResult(),r(this,T)))}createResult(t,e){var F;const i=r(this,b),n=this.options,a=r(this,T),o=r(this,ft),u=r(this,Mt),w=t!==i?t.state:r(this,Lt),{state:f}=t;let c={...f},O=!1,d;if(e._optimisticResults){const S=this.hasListeners(),vt=!S&&we(t,e),bt=S&&Qe(t,i,e,n);(vt||bt)&&(c={...c,...Be(f.data,t.options)}),e._optimisticResults==="isRestoring"&&(c.fetchStatus="idle")}let{error:Q,errorUpdatedAt:m,status:g}=c;if(e.select&&c.data!==void 0)if(a&&c.data===(o==null?void 0:o.data)&&e.select===r(this,kt))d=r(this,At);else try{h(this,kt,e.select),d=e.select(c.data),d=Jt(a==null?void 0:a.data,d,e),h(this,At,d),h(this,z,null)}catch(S){h(this,z,S)}else d=c.data;if(e.placeholderData!==void 0&&d===void 0&&g==="pending"){let S;if(a!=null&&a.isPlaceholderData&&e.placeholderData===(u==null?void 0:u.placeholderData))S=a.data;else if(S=typeof e.placeholderData=="function"?e.placeholderData((F=r(this,Ut))==null?void 0:F.state.data,r(this,Ut)):e.placeholderData,e.select&&S!==void 0)try{S=e.select(S),h(this,z,null)}catch(vt){h(this,z,vt)}S!==void 0&&(g="success",d=Jt(a==null?void 0:a.data,S,e),O=!0)}r(this,z)&&(Q=r(this,z),d=r(this,At),m=Date.now(),g="error");const D=c.fetchStatus==="fetching",E=g==="pending",P=g==="error",A=E&&D,K=d!==void 0,q={status:g,fetchStatus:c.fetchStatus,isPending:E,isSuccess:g==="success",isError:P,isInitialLoading:A,isLoading:A,data:d,dataUpdatedAt:c.dataUpdatedAt,error:Q,errorUpdatedAt:m,failureCount:c.fetchFailureCount,failureReason:c.fetchFailureReason,errorUpdateCount:c.errorUpdateCount,isFetched:c.dataUpdateCount>0||c.errorUpdateCount>0,isFetchedAfterMount:c.dataUpdateCount>w.dataUpdateCount||c.errorUpdateCount>w.errorUpdateCount,isFetching:D,isRefetching:D&&!E,isLoadingError:P&&!K,isPaused:c.fetchStatus==="paused",isPlaceholderData:O,isRefetchError:P&&K,isStale:ye(t,e),refetch:this.refetch,promise:r(this,rt)};if(this.options.experimental_prefetchInRender){const S=Ht=>{q.status==="error"?Ht.reject(q.error):q.data!==void 0&&Ht.resolve(q.data)},vt=()=>{const Ht=h(this,rt,q.promise=Xt());S(Ht)},bt=r(this,rt);switch(bt.status){case"pending":t.queryHash===i.queryHash&&S(bt);break;case"fulfilled":(q.status==="error"||q.data!==bt.value)&&vt();break;case"rejected":(q.status!=="error"||q.error!==bt.reason)&&vt();break}}return q}updateResult(t){const e=r(this,T),i=this.createResult(r(this,b),this.options);if(h(this,ft,r(this,b).state),h(this,Mt,this.options),r(this,ft).data!==void 0&&h(this,Ut,r(this,b)),$t(i,e))return;h(this,T,i);const n={},a=()=>{if(!e)return!0;const{notifyOnChangeProps:o}=this.options,u=typeof o=="function"?o():o;if(u==="all"||!u&&!r(this,qt).size)return!0;const y=new Set(u??r(this,qt));return this.options.throwOnError&&y.add("error"),Object.keys(r(this,T)).some(w=>{const f=w;return r(this,T)[f]!==e[f]&&y.has(f)})};(t==null?void 0:t.listeners)!==!1&&a()&&(n.listeners=!0),p(this,C,Ye).call(this,{...n,...t})}onQueryUpdate(){this.updateResult(),this.hasListeners()&&p(this,C,se).call(this)}},j=new WeakMap,b=new WeakMap,Lt=new WeakMap,T=new WeakMap,ft=new WeakMap,Mt=new WeakMap,rt=new WeakMap,z=new WeakMap,kt=new WeakMap,At=new WeakMap,Ut=new WeakMap,dt=new WeakMap,yt=new WeakMap,nt=new WeakMap,qt=new WeakMap,C=new WeakSet,Tt=function(t){p(this,C,ne).call(this);let e=r(this,b).fetch(this.options,t);return t!=null&&t.throwOnError||(e=e.catch(H)),e},Zt=function(){p(this,C,ie).call(this);const t=Ot(this.options.staleTime,r(this,b));if(pt||r(this,T).isStale||!Wt(t))return;const i=Le(r(this,T).dataUpdatedAt,t)+1;h(this,dt,setTimeout(()=>{r(this,T).isStale||this.updateResult()},i))},te=function(){return(typeof this.options.refetchInterval=="function"?this.options.refetchInterval(r(this,b)):this.options.refetchInterval)??!1},ee=function(t){p(this,C,re).call(this),h(this,nt,t),!(pt||G(this.options.enabled,r(this,b))===!1||!Wt(r(this,nt))||r(this,nt)===0)&&h(this,yt,setInterval(()=>{(this.options.refetchIntervalInBackground||de.isFocused())&&p(this,C,Tt).call(this)},r(this,nt)))},se=function(){p(this,C,Zt).call(this),p(this,C,ee).call(this,p(this,C,te).call(this))},ie=function(){r(this,dt)&&(clearTimeout(r(this,dt)),h(this,dt,void 0))},re=function(){r(this,yt)&&(clearInterval(r(this,yt)),h(this,yt,void 0))},ne=function(){const t=r(this,j).getQueryCache().build(r(this,j),this.options);if(t===r(this,b))return;const e=r(this,b);h(this,b,t),h(this,Lt,t.state),this.hasListeners()&&(e==null||e.removeObserver(this),t.addObserver(this))},Ye=function(t){M.batch(()=>{t.listeners&&this.listeners.forEach(e=>{e(r(this,T))}),r(this,j).getQueryCache().notify({query:r(this,b),type:"observerResultsUpdated"})})},Ue);function bs(s,t){return G(t.enabled,s)!==!1&&s.state.data===void 0&&!(s.state.status==="error"&&t.retryOnMount===!1)}function we(s,t){return bs(s,t)||s.state.data!==void 0&&ae(s,t,t.refetchOnMount)}function ae(s,t,e){if(G(t.enabled,s)!==!1){const i=typeof e=="function"?e(s):e;return i==="always"||i!==!1&&ye(s,t)}return!1}function Qe(s,t,e,i){return(s!==t||G(i.enabled,s)===!1)&&(!e.suspense||s.state.status!=="error")&&ye(s,e)}function ye(s,t){return G(t.enabled,s)!==!1&&s.isStaleByTime(Ot(t.staleTime,s))}function gs(s,t){return!$t(s.getCurrentResult(),t)}var at,ut,x,Y,J,Gt,ue,qe,Os=(qe=class extends It{constructor(t,e){super();l(this,J);l(this,at);l(this,ut);l(this,x);l(this,Y);h(this,at,t),this.setOptions(e),this.bindMethods(),p(this,J,Gt).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,at).defaultMutationOptions(t),$t(this.options,e)||r(this,at).getMutationCache().notify({type:"observerOptionsUpdated",mutation:r(this,x),observer:this}),e!=null&&e.mutationKey&&this.options.mutationKey&&mt(e.mutationKey)!==mt(this.options.mutationKey)?this.reset():((i=r(this,x))==null?void 0:i.state.status)==="pending"&&r(this,x).setOptions(this.options)}onUnsubscribe(){var t;this.hasListeners()||(t=r(this,x))==null||t.removeObserver(this)}onMutationUpdate(t){p(this,J,Gt).call(this),p(this,J,ue).call(this,t)}getCurrentResult(){return r(this,ut)}reset(){var t;(t=r(this,x))==null||t.removeObserver(this),h(this,x,void 0),p(this,J,Gt).call(this),p(this,J,ue).call(this)}mutate(t,e){var i;return h(this,Y,e),(i=r(this,x))==null||i.removeObserver(this),h(this,x,r(this,at).getMutationCache().build(r(this,at),this.options)),r(this,x).addObserver(this),r(this,x).execute(t)}},at=new WeakMap,ut=new WeakMap,x=new WeakMap,Y=new WeakMap,J=new WeakSet,Gt=function(){var e;const t=((e=r(this,x))==null?void 0:e.state)??ze();h(this,ut,{...t,isPending:t.status==="pending",isSuccess:t.status==="success",isError:t.status==="error",isIdle:t.status==="idle",mutate:this.mutate,reset:this.reset})},ue=function(t){M.batch(()=>{var e,i,n,a,o,u,y,w;if(r(this,Y)&&this.hasListeners()){const f=r(this,ut).variables,c=r(this,ut).context;(t==null?void 0:t.type)==="success"?((i=(e=r(this,Y)).onSuccess)==null||i.call(e,t.data,f,c),(a=(n=r(this,Y)).onSettled)==null||a.call(n,t.data,null,f,c)):(t==null?void 0:t.type)==="error"&&((u=(o=r(this,Y)).onError)==null||u.call(o,t.error,f,c),(w=(y=r(this,Y)).onSettled)==null||w.call(y,void 0,t.error,f,c))}this.listeners.forEach(f=>{f(r(this,ut))})})},qe),Cs="VUE_QUERY_CLIENT";function Je(s){const t=s?`:${s}`:"";return`${Cs}${t}`}function oe(s,t){Object.keys(s).forEach(e=>{s[e]=t[e]})}function he(s,t,e="",i=0){if(t){const n=t(s,e,i);if(n===void 0&&Ie(s)||n!==void 0)return n}if(Array.isArray(s))return s.map((n,a)=>he(n,t,String(a),i+1));if(typeof s=="object"&&Qs(s)){const n=Object.entries(s).map(([a,o])=>[a,he(o,t,a,i+1)]);return Object.fromEntries(n)}return s}function ws(s,t){return he(s,t)}function v(s,t=!1){return ws(s,(e,i,n)=>{if(n===1&&i==="queryKey")return v(e,!0);if(t&&Ss(e))return v(e(),t);if(Ie(e))return v(Ze(e),t)})}function Qs(s){if(Object.prototype.toString.call(s)!=="[object Object]")return!1;const t=Object.getPrototypeOf(s);return t===null||t===Object.prototype}function Ss(s){return typeof s=="function"}function ce(s,t){return typeof s=="function"?s(...t):!!s}function Xe(s=""){if(!ts())throw new Error("vue-query hooks can only be used inside setup() function or functions that support injection context.");const t=Je(s),e=es(t);if(!e)throw new Error("No 'queryClient' found in Vue context, use 'VueQueryPlugin' to properly initialize the library.");return e}var Ps=class extends Ve{find(s){return super.find(v(s))}findAll(s={}){return super.findAll(v(s))}},Rs=class extends We{find(s){return super.find(v(s))}findAll(s={}){return super.findAll(v(s))}},Ds=class extends ms{constructor(s={}){const t={defaultOptions:s.defaultOptions,queryCache:s.queryCache||new Ps,mutationCache:s.mutationCache||new Rs};super(t),this.isRestoring=ss(!1)}isFetching(s={}){return super.isFetching(v(s))}isMutating(s={}){return super.isMutating(v(s))}getQueryData(s){return super.getQueryData(v(s))}ensureQueryData(s){return super.ensureQueryData(v(s))}getQueriesData(s){return super.getQueriesData(v(s))}setQueryData(s,t,e={}){return super.setQueryData(v(s),t,v(e))}setQueriesData(s,t,e={}){return super.setQueriesData(v(s),t,v(e))}getQueryState(s){return super.getQueryState(v(s))}removeQueries(s={}){return super.removeQueries(v(s))}resetQueries(s={},t={}){return super.resetQueries(v(s),v(t))}cancelQueries(s={},t={}){return super.cancelQueries(v(s),v(t))}invalidateQueries(s={},t={}){const e=v(s),i=v(t);if(super.invalidateQueries({...e,refetchType:"none"},i),e.refetchType==="none")return Promise.resolve();const n={...e,type:e.refetchType??e.type??"active"};return is().then(()=>super.refetchQueries(n,i))}refetchQueries(s={},t={}){return super.refetchQueries(v(s),v(t))}fetchQuery(s){return super.fetchQuery(v(s))}prefetchQuery(s){return super.prefetchQuery(v(s))}fetchInfiniteQuery(s){return super.fetchInfiniteQuery(v(s))}prefetchInfiniteQuery(s){return super.prefetchInfiniteQuery(v(s))}setDefaultOptions(s){super.setDefaultOptions(v(s))}setQueryDefaults(s,t){super.setQueryDefaults(v(s),v(t))}getQueryDefaults(s){return super.getQueryDefaults(v(s))}setMutationDefaults(s,t){super.setMutationDefaults(v(s),v(t))}getMutationDefaults(s){return super.getMutationDefaults(v(s))}},Is={install:(s,t={})=>{const e=Je(t.queryClientKey);let i;if("queryClient"in t&&t.queryClient)i=t.queryClient;else{const o="queryClientConfig"in t?t.queryClientConfig:void 0;i=new Ds(o)}pt||i.mount();let n=()=>{};if(t.clientPersister){i.isRestoring.value=!0;const[o,u]=t.clientPersister(i);n=o,u.then(()=>{var y;i.isRestoring.value=!1,(y=t.clientPersisterOnSuccess)==null||y.call(t,i)})}const a=()=>{i.unmount(),n()};if(s.onUnmount)s.onUnmount(a);else{const o=s.unmount;s.unmount=function(){a(),o()}}s.provide(e,i)}};function Fs(s,t,e){const i=Xe(),n=Te(()=>{const d=v(t);typeof d.enabled=="function"&&(d.enabled=d.enabled());const Q=i.defaultQueryOptions(d);return Q._optimisticResults=i.isRestoring.value?"isRestoring":"optimistic",Q}),a=new s(i,n.value),o=je(a.getCurrentResult());let u=()=>{};gt(i.isRestoring,d=>{d||(u(),u=a.subscribe(Q=>{oe(o,Q)}))},{immediate:!0});const y=()=>{a.setOptions(n.value),oe(o,a.getCurrentResult())};gt(n,y),xe(()=>{u()});const w=(...d)=>(y(),o.refetch(...d)),f=()=>new Promise((d,Q)=>{let m=()=>{};const g=()=>{if(n.value.enabled!==!1){a.setOptions(n.value);const D=a.getOptimisticResult(n.value);D.isStale?(m(),a.fetchOptimistic(n.value).then(d,E=>{ce(n.value.throwOnError,[E,a.getCurrentQuery()])?Q(E):d(a.getCurrentResult())})):(m(),d(D))}};g(),m=gt(n,g)});gt(()=>o.error,d=>{if(o.isError&&!o.isFetching&&ce(n.value.throwOnError,[d,a.getCurrentQuery()]))throw d});const O=Ke(o);for(const d in o)typeof o[d]=="function"&&(O[d]=o[d]);return O.suspense=f,O.refetch=w,O}function Ts(s,t){return Fs(vs,s)}function js(s,t){const e=Xe(),i=Te(()=>e.defaultMutationOptions(v(s))),n=new Os(e,i.value),a=je(n.getCurrentResult()),o=n.subscribe(f=>{oe(a,f)}),u=(f,c)=>{n.mutate(f,c).catch(()=>{})};gt(i,()=>{n.setOptions(i.value)}),xe(()=>{o()});const w=Ke(a);return gt(()=>a.error,f=>{if(f&&ce(i.value.throwOnError,[f]))throw f}),{...w,mutate:u,mutateAsync:a.mutate,reset:a.reset}}export{Ds as Q,Is as V,Ts as a,js as b,Xe as u};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{Z as s,a as h,b as a}from"./zod.DnW1_kUe.0.0.34-alpha.
|
|
1
|
+
import{Z as s,a as h,b as a}from"./zod.DnW1_kUe.0.0.34-alpha.5.js";import{i as j,c as y}from"./vee-validate.hnY_ZrYq.0.0.34-alpha.5.js";/**
|
|
2
2
|
* vee-validate v4.14.5
|
|
3
3
|
* (c) 2024 Abdelrahman Awad
|
|
4
4
|
* @license MIT
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{d as er}from"./perfect-debounce.Cp2ysxOb.0.0.34-alpha.
|
|
1
|
+
import{d as er}from"./perfect-debounce.Cp2ysxOb.0.0.34-alpha.5.js";import{c as Vi}from"./hookable.B8xFkYCm.0.0.34-alpha.5.js";/**
|
|
2
2
|
* @vue/shared v3.5.12
|
|
3
3
|
* (c) 2018-present Yuxi (Evan) You and Vue contributors
|
|
4
4
|
* @license MIT
|
package/dist/interface/{@vueform.BxOaa1cs.0.0.34-alpha.4.js → @vueform.BisuKBst.0.0.34-alpha.5.js}
RENAMED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{t as v,c as b,b as S,d as V,e as D,v as B,f as p,g as y,j as w,k as C,m as N,l as j,p as T}from"./@vue.
|
|
1
|
+
import{t as v,c as b,b as S,d as V,e as D,v as B,f as p,g as y,j as w,k as C,m as N,l as j,p as T}from"./@vue.CA7eQC0C.0.0.34-alpha.5.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=" "),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};
|
package/dist/interface/{@vueuse.C5t4Wg1V.0.0.34-alpha.4.js → @vueuse.MCSqyj_O.0.0.34-alpha.5.js}
RENAMED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{q as pe,x as he,n as we,y as ge,o as Ae,z as Le,i as ne,u as He,A as ye,B as We,C as Se,r as g,c as T,w as C,D as oe,E as K,F as re,G as ie}from"./@vue.38WdTUyF.0.0.34-alpha.4.js";import{n as Y}from"./nprogress.BqUgJKe9.0.0.34-alpha.4.js";function N(e){return ge()?(Ae(e),!0):!1}function Et(e){let n=0,t,o;const s=()=>{n-=1,o&&n<=0&&(o.stop(),t=void 0,o=void 0)};return(...r)=>(n+=1,o||(o=Le(!0),t=o.run(()=>e(...r))),N(s),t)}function Pe(e,n,{enumerable:t=!1,unwrap:o=!0}={}){for(const[s,r]of Object.entries(n))s!=="value"&&(ne(r)&&o?Object.defineProperty(e,s,{get(){return r.value},set(a){r.value=a},enumerable:t}):Object.defineProperty(e,s,{value:r,enumerable:t}));return e}function Ce(e,n){if(typeof Symbol<"u"){const t={...e};return Object.defineProperty(t,Symbol.iterator,{enumerable:!1,value(){let o=0;return{next:()=>({value:n[o++],done:o>n.length})}}}),t}else return Object.assign([...n],e)}function D(e){return typeof e=="function"?e():He(e)}const be={mounted:"mounted",updated:"updated",unmounted:"unmounted"},V=typeof window<"u"&&typeof document<"u";typeof WorkerGlobalScope<"u"&&globalThis instanceof WorkerGlobalScope;const Re=e=>e!=null,Ye=Object.prototype.toString,Ee=e=>Ye.call(e)==="[object Object]",P=()=>{},B=Ne();function Ne(){var e,n;return V&&((e=window==null?void 0:window.navigator)==null?void 0:e.userAgent)&&(/iP(?:ad|hone|od)/.test(window.navigator.userAgent)||((n=window==null?void 0:window.navigator)==null?void 0:n.maxTouchPoints)>2&&/iPad|Macintosh/.test(window==null?void 0:window.navigator.userAgent))}function le(e,n){function t(...o){return new Promise((s,r)=>{Promise.resolve(e(()=>n.apply(this,o),{fn:n,thisArg:this,args:o})).then(s).catch(r)})}return t}const _e=e=>e();function ze(e,n={}){let t,o,s=P;const r=l=>{clearTimeout(l),s(),s=P};return l=>{const i=D(e),u=D(n.maxWait);return t&&r(t),i<=0||u!==void 0&&u<=0?(o&&(r(o),o=null),Promise.resolve(l())):new Promise((v,f)=>{s=n.rejectOnCancel?f:v,u&&!o&&(o=setTimeout(()=>{t&&r(t),o=null,v(l())},u)),t=setTimeout(()=>{o&&r(o),o=null,v(l())},i)})}}function Ie(...e){let n=0,t,o=!0,s=P,r,a,l,i,u;!ne(e[0])&&typeof e[0]=="object"?{delay:a,trailing:l=!0,leading:i=!0,rejectOnCancel:u=!1}=e[0]:[a,l=!0,i=!0,u=!1]=e;const v=()=>{t&&(clearTimeout(t),t=void 0,s(),s=P)};return m=>{const c=D(a),p=Date.now()-n,h=()=>r=m();return v(),c<=0?(n=Date.now(),h()):(p>c&&(i||!o)?(n=Date.now(),h()):l&&(r=new Promise((S,d)=>{s=u?d:S,t=setTimeout(()=>{n=Date.now(),o=!0,S(h()),v()},Math.max(0,c-p))})),!i&&!t&&(t=setTimeout(()=>o=!0,c)),o=!1,r)}}function $e(e=_e){const n=g(!0);function t(){n.value=!1}function o(){n.value=!0}const s=(...r)=>{n.value&&e(...r)};return{isActive:Se(n),pause:t,resume:o,eventFilter:s}}function je(e){const n=Object.create(null);return t=>n[t]||(n[t]=e(t))}const Xe=/-(\w)/g,Be=je(e=>e.replace(Xe,(n,t)=>t?t.toUpperCase():""));function Ve(e){return ye()}function xe(...e){if(e.length!==1)return We(...e);const n=e[0];return typeof n=="function"?Se(pe(()=>({get:n,set:P}))):g(n)}function qe(e,n=200,t={}){return le(ze(n,t),e)}function Ge(e,n=200,t=!1,o=!0,s=!1){return le(Ie(n,t,o,s),e)}function _t(e,n={}){let t=e,o,s;const r=pe((m,c)=>(o=m,s=c,{get(){return a()},set(p){l(p)}}));function a(m=!0){return m&&o(),t}function l(m,c=!0){var p,h;if(m===t)return;const S=t;((p=n.onBeforeChange)==null?void 0:p.call(n,m,S))!==!1&&(t=m,(h=n.onChanged)==null||h.call(n,m,S),c&&s())}return Pe(r,{get:a,set:l,untrackedGet:()=>a(!1),silentSet:m=>l(m,!1),peek:()=>a(!1),lay:m=>l(m,!1)},{enumerable:!0})}function Ue(e,n,t={}){const{eventFilter:o=_e,...s}=t;return C(e,le(o,n),s)}function Je(e,n,t={}){const{eventFilter:o,...s}=t,{eventFilter:r,pause:a,resume:l,isActive:i}=$e(o);return{stop:Ue(e,n,{...s,eventFilter:r}),pause:a,resume:l,isActive:i}}function q(e,n=!0,t){Ve()?he(e,t):n?e():we(e)}const Ke=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[T\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/i,Qe=/[YMDHhms]o|\[([^\]]+)\]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a{1,2}|A{1,2}|m{1,2}|s{1,2}|Z{1,2}|SSS/g;function Ze(e,n,t,o){let s=e<12?"AM":"PM";return o&&(s=s.split("").reduce((r,a)=>r+=`${a}.`,"")),t?s.toLowerCase():s}function I(e){const n=["th","st","nd","rd"],t=e%100;return e+(n[(t-20)%10]||n[t]||n[0])}function et(e,n,t={}){var o;const s=e.getFullYear(),r=e.getMonth(),a=e.getDate(),l=e.getHours(),i=e.getMinutes(),u=e.getSeconds(),v=e.getMilliseconds(),f=e.getDay(),m=(o=t.customMeridiem)!=null?o:Ze,c={Yo:()=>I(s),YY:()=>String(s).slice(-2),YYYY:()=>s,M:()=>r+1,Mo:()=>I(r+1),MM:()=>`${r+1}`.padStart(2,"0"),MMM:()=>e.toLocaleDateString(D(t.locales),{month:"short"}),MMMM:()=>e.toLocaleDateString(D(t.locales),{month:"long"}),D:()=>String(a),Do:()=>I(a),DD:()=>`${a}`.padStart(2,"0"),H:()=>String(l),Ho:()=>I(l),HH:()=>`${l}`.padStart(2,"0"),h:()=>`${l%12||12}`.padStart(1,"0"),ho:()=>I(l%12||12),hh:()=>`${l%12||12}`.padStart(2,"0"),m:()=>String(i),mo:()=>I(i),mm:()=>`${i}`.padStart(2,"0"),s:()=>String(u),so:()=>I(u),ss:()=>`${u}`.padStart(2,"0"),SSS:()=>`${v}`.padStart(3,"0"),d:()=>f,dd:()=>e.toLocaleDateString(D(t.locales),{weekday:"narrow"}),ddd:()=>e.toLocaleDateString(D(t.locales),{weekday:"short"}),dddd:()=>e.toLocaleDateString(D(t.locales),{weekday:"long"}),A:()=>m(l,i),AA:()=>m(l,i,!1,!0),a:()=>m(l,i,!0),aa:()=>m(l,i,!0,!0)};return n.replace(Qe,(p,h)=>{var S,d;return(d=h??((S=c[p])==null?void 0:S.call(c)))!=null?d:p})}function tt(e){if(e===null)return new Date(Number.NaN);if(e===void 0)return new Date;if(e instanceof Date)return new Date(e);if(typeof e=="string"&&!/Z$/i.test(e)){const n=e.match(Ke);if(n){const t=n[2]-1||0,o=(n[7]||"0").substring(0,3);return new Date(n[1],t,n[3]||1,n[4]||0,n[5]||0,n[6]||0,o)}}return new Date(e)}function xt(e,n="HH:mm:ss",t={}){return T(()=>et(tt(D(e)),D(n),t))}function Dt(e,n,t){let o;ne(t)?o={evaluating:t}:o=t||{};const{lazy:s=!1,evaluating:r=void 0,shallow:a=!0,onError:l=P}=o,i=g(!s),u=a?oe(n):g(n);let v=0;return re(async f=>{if(!i.value)return;v++;const m=v;let c=!1;r&&Promise.resolve().then(()=>{r.value=!0});try{const p=await e(h=>{f(()=>{r&&(r.value=!1),c||h()})});m===v&&(u.value=p)}catch(p){l(p)}finally{r&&m===v&&(r.value=!1),c=!0}}),s?T(()=>(i.value=!0,u.value)):u}function Mt(e={}){const{inheritAttrs:n=!0}=e,t=oe(),o=ie({setup(r,{slots:a}){return()=>{t.value=a.default}}}),s=ie({inheritAttrs:n,setup(r,{attrs:a,slots:l}){return()=>{var i;t.value;const u=(i=t.value)==null?void 0:i.call(t,{...nt(a),$slots:l});return n&&(u==null?void 0:u.length)===1?u[0]:u}}});return Ce({define:o,reuse:s},[o,s])}function nt(e){const n={};for(const t in e)n[Be(t)]=e[t];return n}const W=V?window:void 0,De=V?window.document:void 0;function L(e){var n;const t=D(e);return(n=t==null?void 0:t.$el)!=null?n:t}function x(...e){let n,t,o,s;if(typeof e[0]=="string"||Array.isArray(e[0])?([t,o,s]=e,n=W):[n,t,o,s]=e,!n)return P;Array.isArray(t)||(t=[t]),Array.isArray(o)||(o=[o]);const r=[],a=()=>{r.forEach(v=>v()),r.length=0},l=(v,f,m,c)=>(v.addEventListener(f,m,c),()=>v.removeEventListener(f,m,c)),i=C(()=>[L(n),D(s)],([v,f])=>{if(a(),!v)return;const m=Ee(f)?{...f}:f;r.push(...t.flatMap(c=>o.map(p=>l(v,c,p,m))))},{immediate:!0,flush:"post"}),u=()=>{i(),a()};return N(u),u}let ae=!1;function Ot(e,n,t={}){const{window:o=W,ignore:s=[],capture:r=!0,detectIframe:a=!1}=t;if(!o)return P;B&&!ae&&(ae=!0,Array.from(o.document.body.children).forEach(c=>c.addEventListener("click",P)),o.document.documentElement.addEventListener("click",P));let l=!0;const i=c=>D(s).some(p=>{if(typeof p=="string")return Array.from(o.document.querySelectorAll(p)).some(h=>h===c.target||c.composedPath().includes(h));{const h=L(p);return h&&(c.target===h||c.composedPath().includes(h))}}),u=c=>{const p=L(e);if(!(!p||p===c.target||c.composedPath().includes(p))){if(c.detail===0&&(l=!i(c)),!l){l=!0;return}n(c)}};let v=!1;const f=[x(o,"click",c=>{v||(v=!0,setTimeout(()=>{v=!1},0),u(c))},{passive:!0,capture:r}),x(o,"pointerdown",c=>{const p=L(e);l=!i(c)&&!!(p&&!c.composedPath().includes(p))},{passive:!0}),a&&x(o,"blur",c=>{setTimeout(()=>{var p;const h=L(e);((p=o.document.activeElement)==null?void 0:p.tagName)==="IFRAME"&&!(h!=null&&h.contains(o.document.activeElement))&&n(c)},0)})].filter(Boolean);return()=>f.forEach(c=>c())}function ot(){const e=g(!1),n=ye();return n&&he(()=>{e.value=!0},n),e}function G(e){const n=ot();return T(()=>(n.value,!!e()))}function rt(e,n,t={}){const{window:o=W,...s}=t;let r;const a=G(()=>o&&"MutationObserver"in o),l=()=>{r&&(r.disconnect(),r=void 0)},i=T(()=>{const m=D(e),c=(Array.isArray(m)?m:[m]).map(L).filter(Re);return new Set(c)}),u=C(()=>i.value,m=>{l(),a.value&&m.size&&(r=new MutationObserver(n),m.forEach(c=>r.observe(c,s)))},{immediate:!0,flush:"post"}),v=()=>r==null?void 0:r.takeRecords(),f=()=>{u(),l()};return N(f),{isSupported:a,stop:f,takeRecords:v}}function lt(e,n={}){const{window:t=W}=n,o=G(()=>t&&"matchMedia"in t&&typeof t.matchMedia=="function");let s;const r=g(!1),a=u=>{r.value=u.matches},l=()=>{s&&("removeEventListener"in s?s.removeEventListener("change",a):s.removeListener(a))},i=re(()=>{o.value&&(l(),s=t.matchMedia(D(e)),"addEventListener"in s?s.addEventListener("change",a):s.addListener(a),r.value=s.matches)});return N(()=>{i(),l(),s=void 0}),r}const U=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},J="__vueuse_ssr_handlers__",st=ut();function ut(){return J in U||(U[J]=U[J]||{}),U[J]}function it(e,n){return st[e]||n}function at(e){return e==null?"any":e instanceof Set?"set":e instanceof Map?"map":e instanceof Date?"date":typeof e=="boolean"?"boolean":typeof e=="string"?"string":typeof e=="object"?"object":Number.isNaN(e)?"any":"number"}const ct={boolean:{read:e=>e==="true",write:e=>String(e)},object:{read:e=>JSON.parse(e),write:e=>JSON.stringify(e)},number:{read:e=>Number.parseFloat(e),write:e=>String(e)},any:{read:e=>e,write:e=>String(e)},string:{read:e=>e,write:e=>String(e)},map:{read:e=>new Map(JSON.parse(e)),write:e=>JSON.stringify(Array.from(e.entries()))},set:{read:e=>new Set(JSON.parse(e)),write:e=>JSON.stringify(Array.from(e))},date:{read:e=>new Date(e),write:e=>e.toISOString()}},ce="vueuse-storage";function ft(e,n,t,o={}){var s;const{flush:r="pre",deep:a=!0,listenToStorageChanges:l=!0,writeDefaults:i=!0,mergeDefaults:u=!1,shallow:v,window:f=W,eventFilter:m,onError:c=w=>{console.error(w)},initOnMounted:p}=o,h=(v?oe:g)(typeof n=="function"?n():n);if(!t)try{t=it("getDefaultStorage",()=>{var w;return(w=W)==null?void 0:w.localStorage})()}catch(w){c(w)}if(!t)return h;const S=D(n),d=at(S),E=(s=o.serializer)!=null?s:ct[d],{pause:A,resume:O}=Je(h,()=>k(h.value),{flush:r,deep:a,eventFilter:m});f&&l&&q(()=>{t instanceof Storage?x(f,"storage",H):x(f,ce,_),p&&H()}),p||H();function y(w,M){if(f){const F={key:e,oldValue:w,newValue:M,storageArea:t};f.dispatchEvent(t instanceof Storage?new StorageEvent("storage",F):new CustomEvent(ce,{detail:F}))}}function k(w){try{const M=t.getItem(e);if(w==null)y(M,null),t.removeItem(e);else{const F=E.write(w);M!==F&&(t.setItem(e,F),y(M,F))}}catch(M){c(M)}}function b(w){const M=w?w.newValue:t.getItem(e);if(M==null)return i&&S!=null&&t.setItem(e,E.write(S)),S;if(!w&&u){const F=E.read(M);return typeof u=="function"?u(F,S):d==="object"&&!Array.isArray(F)?{...S,...F}:F}else return typeof M!="string"?M:E.read(M)}function H(w){if(!(w&&w.storageArea!==t)){if(w&&w.key==null){h.value=S;return}if(!(w&&w.key!==e)){A();try{(w==null?void 0:w.newValue)!==E.write(h.value)&&(h.value=b(w))}catch(M){c(M)}finally{w?we(O):O()}}}}function _(w){H(w.detail)}return h}function Tt(e={}){const{document:n=De}=e;if(!n)return g("visible");const t=g(n.visibilityState);return x(n,"visibilitychange",()=>{t.value=n.visibilityState}),t}function Me(e,n,t={}){const{window:o=W,...s}=t;let r;const a=G(()=>o&&"ResizeObserver"in o),l=()=>{r&&(r.disconnect(),r=void 0)},i=T(()=>{const f=D(e);return Array.isArray(f)?f.map(m=>L(m)):[L(f)]}),u=C(i,f=>{if(l(),a.value&&o){r=new ResizeObserver(n);for(const m of f)m&&r.observe(m,s)}},{immediate:!0,flush:"post"}),v=()=>{l(),u()};return N(v),{isSupported:a,stop:v}}function Ft(e,n={}){const{reset:t=!0,windowResize:o=!0,windowScroll:s=!0,immediate:r=!0,updateTiming:a="sync"}=n,l=g(0),i=g(0),u=g(0),v=g(0),f=g(0),m=g(0),c=g(0),p=g(0);function h(){const d=L(e);if(!d){t&&(l.value=0,i.value=0,u.value=0,v.value=0,f.value=0,m.value=0,c.value=0,p.value=0);return}const E=d.getBoundingClientRect();l.value=E.height,i.value=E.bottom,u.value=E.left,v.value=E.right,f.value=E.top,m.value=E.width,c.value=E.x,p.value=E.y}function S(){a==="sync"?h():a==="next-frame"&&requestAnimationFrame(()=>h())}return Me(e,S),C(()=>L(e),d=>!d&&S()),rt(e,S,{attributeFilter:["style","class"]}),s&&x("scroll",S,{capture:!0,passive:!0}),o&&x("resize",S,{passive:!0}),q(()=>{r&&S()}),{height:l,bottom:i,left:u,right:v,top:f,width:m,x:c,y:p,update:S}}function kt(e,n={width:0,height:0},t={}){const{window:o=W,box:s="content-box"}=t,r=T(()=>{var f,m;return(m=(f=L(e))==null?void 0:f.namespaceURI)==null?void 0:m.includes("svg")}),a=g(n.width),l=g(n.height),{stop:i}=Me(e,([f])=>{const m=s==="border-box"?f.borderBoxSize:s==="content-box"?f.contentBoxSize:f.devicePixelContentBoxSize;if(o&&r.value){const c=L(e);if(c){const p=c.getBoundingClientRect();a.value=p.width,l.value=p.height}}else if(m){const c=Array.isArray(m)?m:[m];a.value=c.reduce((p,{inlineSize:h})=>p+h,0),l.value=c.reduce((p,{blockSize:h})=>p+h,0)}else a.value=f.contentRect.width,l.value=f.contentRect.height},t);q(()=>{const f=L(e);f&&(a.value="offsetWidth"in f?f.offsetWidth:n.width,l.value="offsetHeight"in f?f.offsetHeight:n.height)});const u=C(()=>L(e),f=>{a.value=f?n.width:0,l.value=f?n.height:0});function v(){i(),u()}return{width:a,height:l,stop:v}}const X=new Map;function At(e){const n=ge();function t(l){var i;const u=X.get(e)||new Set;u.add(l),X.set(e,u);const v=()=>s(l);return(i=n==null?void 0:n.cleanups)==null||i.push(v),v}function o(l){function i(...u){s(i),l(...u)}return t(i)}function s(l){const i=X.get(e);i&&(i.delete(l),i.size||r())}function r(){X.delete(e)}function a(l,i){var u;(u=X.get(e))==null||u.forEach(v=>v(l,i))}return{on:t,once:o,off:s,emit:a,reset:r}}const fe=["fullscreenchange","webkitfullscreenchange","webkitendfullscreen","mozfullscreenchange","MSFullscreenChange"];function Lt(e,n={}){const{document:t=De,autoExit:o=!1}=n,s=T(()=>{var d;return(d=L(e))!=null?d:t==null?void 0:t.querySelector("html")}),r=g(!1),a=T(()=>["requestFullscreen","webkitRequestFullscreen","webkitEnterFullscreen","webkitEnterFullScreen","webkitRequestFullScreen","mozRequestFullScreen","msRequestFullscreen"].find(d=>t&&d in t||s.value&&d in s.value)),l=T(()=>["exitFullscreen","webkitExitFullscreen","webkitExitFullScreen","webkitCancelFullScreen","mozCancelFullScreen","msExitFullscreen"].find(d=>t&&d in t||s.value&&d in s.value)),i=T(()=>["fullScreen","webkitIsFullScreen","webkitDisplayingFullscreen","mozFullScreen","msFullscreenElement"].find(d=>t&&d in t||s.value&&d in s.value)),u=["fullscreenElement","webkitFullscreenElement","mozFullScreenElement","msFullscreenElement"].find(d=>t&&d in t),v=G(()=>s.value&&t&&a.value!==void 0&&l.value!==void 0&&i.value!==void 0),f=()=>u?(t==null?void 0:t[u])===s.value:!1,m=()=>{if(i.value){if(t&&t[i.value]!=null)return t[i.value];{const d=s.value;if((d==null?void 0:d[i.value])!=null)return!!d[i.value]}}return!1};async function c(){if(!(!v.value||!r.value)){if(l.value)if((t==null?void 0:t[l.value])!=null)await t[l.value]();else{const d=s.value;(d==null?void 0:d[l.value])!=null&&await d[l.value]()}r.value=!1}}async function p(){if(!v.value||r.value)return;m()&&await c();const d=s.value;a.value&&(d==null?void 0:d[a.value])!=null&&(await d[a.value](),r.value=!0)}async function h(){await(r.value?c():p())}const S=()=>{const d=m();(!d||d&&f())&&(r.value=d)};return x(t,fe,S,!1),x(()=>L(s),fe,S,!1),o&&N(c),{isSupported:v,isFullscreen:r,enter:p,exit:c,toggle:h}}function Q(e){return typeof Window<"u"&&e instanceof Window?e.document.documentElement:typeof Document<"u"&&e instanceof Document?e.documentElement:e}const de=1;function Ht(e,n={}){const{throttle:t=0,idle:o=200,onStop:s=P,onScroll:r=P,offset:a={left:0,right:0,top:0,bottom:0},eventListenerOptions:l={capture:!1,passive:!0},behavior:i="auto",window:u=W,onError:v=b=>{console.error(b)}}=n,f=g(0),m=g(0),c=T({get(){return f.value},set(b){h(b,void 0)}}),p=T({get(){return m.value},set(b){h(void 0,b)}});function h(b,H){var _,w,M,F;if(!u)return;const R=D(e);if(!R)return;(M=R instanceof Document?u.document.body:R)==null||M.scrollTo({top:(_=D(H))!=null?_:p.value,left:(w=D(b))!=null?w:c.value,behavior:D(i)});const j=((F=R==null?void 0:R.document)==null?void 0:F.documentElement)||(R==null?void 0:R.documentElement)||R;c!=null&&(f.value=j.scrollLeft),p!=null&&(m.value=j.scrollTop)}const S=g(!1),d=K({left:!0,right:!1,top:!0,bottom:!1}),E=K({left:!1,right:!1,top:!1,bottom:!1}),A=b=>{S.value&&(S.value=!1,E.left=!1,E.right=!1,E.top=!1,E.bottom=!1,s(b))},O=qe(A,t+o),y=b=>{var H;if(!u)return;const _=((H=b==null?void 0:b.document)==null?void 0:H.documentElement)||(b==null?void 0:b.documentElement)||L(b),{display:w,flexDirection:M}=getComputedStyle(_),F=_.scrollLeft;E.left=F<f.value,E.right=F>f.value;const R=Math.abs(F)<=(a.left||0),j=Math.abs(F)+_.clientWidth>=_.scrollWidth-(a.right||0)-de;w==="flex"&&M==="row-reverse"?(d.left=j,d.right=R):(d.left=R,d.right=j),f.value=F;let z=_.scrollTop;b===u.document&&!z&&(z=u.document.body.scrollTop),E.top=z<m.value,E.bottom=z>m.value;const se=Math.abs(z)<=(a.top||0),ue=Math.abs(z)+_.clientHeight>=_.scrollHeight-(a.bottom||0)-de;w==="flex"&&M==="column-reverse"?(d.top=ue,d.bottom=se):(d.top=se,d.bottom=ue),m.value=z},k=b=>{var H;if(!u)return;const _=(H=b.target.documentElement)!=null?H:b.target;y(_),S.value=!0,O(b),r(b)};return x(e,"scroll",t?Ge(k,t,!0,!1):k,l),q(()=>{try{const b=D(e);if(!b)return;y(b)}catch(b){v(b)}}),x(e,"scrollend",A,l),{x:c,y:p,isScrolling:S,arrivedState:d,directions:E,measure(){const b=D(e);u&&b&&y(b)}}}function Wt(e,n,t={}){const{window:o=W}=t;return ft(e,n,o==null?void 0:o.localStorage,t)}const dt={page:e=>[e.pageX,e.pageY],client:e=>[e.clientX,e.clientY],screen:e=>[e.screenX,e.screenY],movement:e=>e instanceof Touch?null:[e.movementX,e.movementY]};function Pt(e={}){const{type:n="page",touch:t=!0,resetOnTouchEnds:o=!1,initialValue:s={x:0,y:0},window:r=W,target:a=r,scroll:l=!0,eventFilter:i}=e;let u=null;const v=g(s.x),f=g(s.y),m=g(null),c=typeof n=="function"?n:dt[n],p=y=>{const k=c(y);u=y,k&&([v.value,f.value]=k,m.value="mouse")},h=y=>{if(y.touches.length>0){const k=c(y.touches[0]);k&&([v.value,f.value]=k,m.value="touch")}},S=()=>{if(!u||!r)return;const y=c(u);u instanceof MouseEvent&&y&&(v.value=y[0]+r.scrollX,f.value=y[1]+r.scrollY)},d=()=>{v.value=s.x,f.value=s.y},E=i?y=>i(()=>p(y),{}):y=>p(y),A=i?y=>i(()=>h(y),{}):y=>h(y),O=i?()=>i(()=>S(),{}):()=>S();if(a){const y={passive:!0};x(a,["mousemove","dragover"],E,y),t&&n!=="movement"&&(x(a,["touchstart","touchmove"],A,y),o&&x(a,"touchend",d,y)),l&&n==="page"&&x(r,"scroll",O,{passive:!0})}return{x:v,y:f,sourceType:m}}function Ct(e={}){const{touch:n=!0,drag:t=!0,capture:o=!1,initialValue:s=!1,window:r=W}=e,a=g(s),l=g(null);if(!r)return{pressed:a,sourceType:l};const i=f=>()=>{a.value=!0,l.value=f},u=()=>{a.value=!1,l.value=null},v=T(()=>L(e.target)||r);return x(v,"mousedown",i("mouse"),{passive:!0,capture:o}),x(r,"mouseleave",u,{passive:!0,capture:o}),x(r,"mouseup",u,{passive:!0,capture:o}),t&&(x(v,"dragstart",i("mouse"),{passive:!0,capture:o}),x(r,"drop",u,{passive:!0,capture:o}),x(r,"dragend",u,{passive:!0,capture:o})),n&&(x(v,"touchstart",i("touch"),{passive:!0,capture:o}),x(r,"touchend",u,{passive:!0,capture:o}),x(r,"touchcancel",u,{passive:!0,capture:o})),{pressed:a,sourceType:l}}function Rt(e={}){const{window:n=W}=e,t=G(()=>n&&"screen"in n&&"orientation"in n.screen),o=t.value?n.screen.orientation:{},s=g(o.type),r=g(o.angle||0);return t.value&&x(n,"orientationchange",()=>{s.value=o.type,r.value=o.angle}),{isSupported:t,orientation:s,angle:r,lockOrientation:i=>t.value&&typeof o.lock=="function"?o.lock(i):Promise.reject(new Error("Not supported")),unlockOrientation:()=>{t.value&&typeof o.unlock=="function"&&o.unlock()}}}function Oe(e){const n=window.getComputedStyle(e);if(n.overflowX==="scroll"||n.overflowY==="scroll"||n.overflowX==="auto"&&e.clientWidth<e.scrollWidth||n.overflowY==="auto"&&e.clientHeight<e.scrollHeight)return!0;{const t=e.parentNode;return!t||t.tagName==="BODY"?!1:Oe(t)}}function vt(e){const n=e||window.event,t=n.target;return Oe(t)?!1:n.touches.length>1?!0:(n.preventDefault&&n.preventDefault(),!1)}const Z=new WeakMap;function Yt(e,n=!1){const t=g(n);let o=null,s="";C(xe(e),l=>{const i=Q(D(l));if(i){const u=i;if(Z.get(u)||Z.set(u,u.style.overflow),u.style.overflow!=="hidden"&&(s=u.style.overflow),u.style.overflow==="hidden")return t.value=!0;if(t.value)return u.style.overflow="hidden"}},{immediate:!0});const r=()=>{const l=Q(D(e));!l||t.value||(B&&(o=x(l,"touchmove",i=>{vt(i)},{passive:!1})),l.style.overflow="hidden",t.value=!0)},a=()=>{const l=Q(D(e));!l||!t.value||(B&&(o==null||o()),l.style.overflow=s,Z.delete(l),t.value=!1)};return N(a),T({get(){return t.value},set(l){l?r():a()}})}function Nt(e,n={}){const{threshold:t=50,onSwipe:o,onSwipeEnd:s,onSwipeStart:r,passive:a=!0,window:l=W}=n,i=K({x:0,y:0}),u=K({x:0,y:0}),v=T(()=>i.x-u.x),f=T(()=>i.y-u.y),{max:m,abs:c}=Math,p=T(()=>m(c(v.value),c(f.value))>=t),h=g(!1),S=T(()=>p.value?c(v.value)>c(f.value)?v.value>0?"left":"right":f.value>0?"up":"down":"none"),d=_=>[_.touches[0].clientX,_.touches[0].clientY],E=(_,w)=>{i.x=_,i.y=w},A=(_,w)=>{u.x=_,u.y=w};let O;const y=mt(l==null?void 0:l.document);a?O=y?{passive:!0}:{capture:!1}:O=y?{passive:!1,capture:!0}:{capture:!0};const k=_=>{h.value&&(s==null||s(_,S.value)),h.value=!1},b=[x(e,"touchstart",_=>{if(_.touches.length!==1)return;O.capture&&!O.passive&&_.preventDefault();const[w,M]=d(_);E(w,M),A(w,M),r==null||r(_)},O),x(e,"touchmove",_=>{if(_.touches.length!==1)return;const[w,M]=d(_);A(w,M),!h.value&&p.value&&(h.value=!0),h.value&&(o==null||o(_))},O),x(e,["touchend","touchcancel"],k,O)];return{isPassiveEventSupported:y,isSwiping:h,direction:S,coordsStart:i,coordsEnd:u,lengthX:v,lengthY:f,stop:()=>b.forEach(_=>_())}}function mt(e){if(!e)return!1;let n=!1;const t={get passive(){return n=!0,!1}};return e.addEventListener("x",P,t),e.removeEventListener("x",P),n}function zt(e={}){const{window:n=W,behavior:t="auto"}=e;if(!n)return{x:g(0),y:g(0)};const o=g(n.scrollX),s=g(n.scrollY),r=T({get(){return o.value},set(l){scrollTo({left:l,behavior:t})}}),a=T({get(){return s.value},set(l){scrollTo({top:l,behavior:t})}});return x(n,"scroll",()=>{o.value=n.scrollX,s.value=n.scrollY},{capture:!1,passive:!0}),{x:r,y:a}}function It(e={}){const{window:n=W,initialWidth:t=Number.POSITIVE_INFINITY,initialHeight:o=Number.POSITIVE_INFINITY,listenOrientation:s=!0,includeScrollbar:r=!0,type:a="inner"}=e,l=g(t),i=g(o),u=()=>{n&&(a==="outer"?(l.value=n.outerWidth,i.value=n.outerHeight):r?(l.value=n.innerWidth,i.value=n.innerHeight):(l.value=n.document.documentElement.clientWidth,i.value=n.document.documentElement.clientHeight))};if(u(),q(u),x("resize",u,{passive:!0}),s){const v=lt("(orientation: portrait)");C(v,()=>u())}return{width:l,height:i}}function $t(e=null,n){const t=g(e),o=T({set:r=>r?Y.start():Y.done(),get:()=>typeof t.value=="number"&&t.value<1});n&&Y.configure(n);const s=Y.set;return Y.set=r=>(t.value=r,s.call(Y,r)),re(()=>{typeof t.value=="number"&&V&&s.call(Y,t.value)}),N(Y.remove),{isLoading:o,progress:t,start:Y.start,done:Y.done,remove:()=>{t.value=null,Y.remove()}}}const Te=V?window:void 0;function Fe(e){var n;const t=D(e);return(n=t==null?void 0:t.$el)!=null?n:t}function $(...e){let n,t,o,s;if(typeof e[0]=="string"||Array.isArray(e[0])?([t,o,s]=e,n=Te):[n,t,o,s]=e,!n)return P;Array.isArray(t)||(t=[t]),Array.isArray(o)||(o=[o]);const r=[],a=()=>{r.forEach(v=>v()),r.length=0},l=(v,f,m,c)=>(v.addEventListener(f,m,c),()=>v.removeEventListener(f,m,c)),i=C(()=>[Fe(n),D(s)],([v,f])=>{if(a(),!v)return;const m=Ee(f)?{...f}:f;r.push(...t.flatMap(c=>o.map(p=>l(v,c,p,m))))},{immediate:!0,flush:"post"}),u=()=>{i(),a()};return N(u),u}const pt=500,ht=10;function ve(e,n,t){var o,s;const r=T(()=>Fe(e));let a,l,i,u=!1;function v(){a&&(clearTimeout(a),a=void 0),l=void 0,i=void 0,u=!1}function f(d){var E,A,O;const[y,k,b]=[i,l,u];if(v(),!(t!=null&&t.onMouseUp)||!k||!y||(E=t==null?void 0:t.modifiers)!=null&&E.self&&d.target!==r.value)return;(A=t==null?void 0:t.modifiers)!=null&&A.prevent&&d.preventDefault(),(O=t==null?void 0:t.modifiers)!=null&&O.stop&&d.stopPropagation();const H=d.x-k.x,_=d.y-k.y,w=Math.sqrt(H*H+_*_);t.onMouseUp(d.timeStamp-y,w,b)}function m(d){var E,A,O,y;(E=t==null?void 0:t.modifiers)!=null&&E.self&&d.target!==r.value||(v(),(A=t==null?void 0:t.modifiers)!=null&&A.prevent&&d.preventDefault(),(O=t==null?void 0:t.modifiers)!=null&&O.stop&&d.stopPropagation(),l={x:d.x,y:d.y},i=d.timeStamp,a=setTimeout(()=>{u=!0,n(d)},(y=t==null?void 0:t.delay)!=null?y:pt))}function c(d){var E,A,O,y;if((E=t==null?void 0:t.modifiers)!=null&&E.self&&d.target!==r.value||!l||(t==null?void 0:t.distanceThreshold)===!1)return;(A=t==null?void 0:t.modifiers)!=null&&A.prevent&&d.preventDefault(),(O=t==null?void 0:t.modifiers)!=null&&O.stop&&d.stopPropagation();const k=d.x-l.x,b=d.y-l.y;Math.sqrt(k*k+b*b)>=((y=t==null?void 0:t.distanceThreshold)!=null?y:ht)&&v()}const p={capture:(o=t==null?void 0:t.modifiers)==null?void 0:o.capture,once:(s=t==null?void 0:t.modifiers)==null?void 0:s.once},h=[$(r,"pointerdown",m,p),$(r,"pointermove",c,p),$(r,["pointerup","pointerleave"],f,p)];return()=>h.forEach(d=>d())}const jt={[be.mounted](e,n){typeof n.value=="function"?ve(e,n.value,{modifiers:n.modifiers}):ve(e,...n.value)}};function me(e,n={}){const{delayEnter:t=0,delayLeave:o=0,window:s=Te}=n,r=g(!1);let a;const l=i=>{const u=i?t:o;a&&(clearTimeout(a),a=void 0),u?a=setTimeout(()=>r.value=i,u):r.value=i};return s&&($(e,"mouseenter",()=>l(!0),{passive:!0}),$(e,"mouseleave",()=>l(!1),{passive:!0})),r}const Xt={[be.mounted](e,n){const t=n.value;if(typeof t=="function"){const o=me(e);C(o,s=>t(s))}else{const[o,s]=t,r=me(e,s);C(r,a=>o(a))}}};function ee(e){return typeof Window<"u"&&e instanceof Window?e.document.documentElement:typeof Document<"u"&&e instanceof Document?e.documentElement:e}function ke(e){const n=window.getComputedStyle(e);if(n.overflowX==="scroll"||n.overflowY==="scroll"||n.overflowX==="auto"&&e.clientWidth<e.scrollWidth||n.overflowY==="auto"&&e.clientHeight<e.scrollHeight)return!0;{const t=e.parentNode;return!t||t.tagName==="BODY"?!1:ke(t)}}function wt(e){const n=e||window.event,t=n.target;return ke(t)?!1:n.touches.length>1?!0:(n.preventDefault&&n.preventDefault(),!1)}const te=new WeakMap;function gt(e,n=!1){const t=g(n);let o=null,s="";C(xe(e),l=>{const i=ee(D(l));if(i){const u=i;if(te.get(u)||te.set(u,u.style.overflow),u.style.overflow!=="hidden"&&(s=u.style.overflow),u.style.overflow==="hidden")return t.value=!0;if(t.value)return u.style.overflow="hidden"}},{immediate:!0});const r=()=>{const l=ee(D(e));!l||t.value||(B&&(o=$(l,"touchmove",i=>{wt(i)},{passive:!1})),l.style.overflow="hidden",t.value=!0)},a=()=>{const l=ee(D(e));!l||!t.value||(B&&(o==null||o()),l.style.overflow=s,te.delete(l),t.value=!1)};return N(a),T({get(){return t.value},set(l){l?r():a()}})}function yt(){let e=!1;const n=g(!1);return(t,o)=>{if(n.value=o.value,e)return;e=!0;const s=gt(t,o.value);C(n,r=>s.value=r)}}yt();export{xt as a,lt as b,Et as c,Rt as d,It as e,At as f,Nt as g,zt as h,$t as i,kt as j,Ht as k,Pt as l,Ct as m,Yt as n,Ot as o,x as p,Ft as q,_t as r,Lt as s,Mt as t,Wt as u,Dt as v,Xt as w,jt as x,Tt as y,Me as z};
|
|
1
|
+
import{q as pe,x as he,n as we,y as ge,o as Ae,z as Le,i as ne,u as He,A as ye,B as We,C as Se,r as g,c as T,w as C,D as oe,E as K,F as re,G as ie}from"./@vue.CA7eQC0C.0.0.34-alpha.5.js";import{n as Y}from"./nprogress.Dy-fdKdR.0.0.34-alpha.5.js";function N(e){return ge()?(Ae(e),!0):!1}function Et(e){let n=0,t,o;const s=()=>{n-=1,o&&n<=0&&(o.stop(),t=void 0,o=void 0)};return(...r)=>(n+=1,o||(o=Le(!0),t=o.run(()=>e(...r))),N(s),t)}function Pe(e,n,{enumerable:t=!1,unwrap:o=!0}={}){for(const[s,r]of Object.entries(n))s!=="value"&&(ne(r)&&o?Object.defineProperty(e,s,{get(){return r.value},set(a){r.value=a},enumerable:t}):Object.defineProperty(e,s,{value:r,enumerable:t}));return e}function Ce(e,n){if(typeof Symbol<"u"){const t={...e};return Object.defineProperty(t,Symbol.iterator,{enumerable:!1,value(){let o=0;return{next:()=>({value:n[o++],done:o>n.length})}}}),t}else return Object.assign([...n],e)}function D(e){return typeof e=="function"?e():He(e)}const be={mounted:"mounted",updated:"updated",unmounted:"unmounted"},V=typeof window<"u"&&typeof document<"u";typeof WorkerGlobalScope<"u"&&globalThis instanceof WorkerGlobalScope;const Re=e=>e!=null,Ye=Object.prototype.toString,Ee=e=>Ye.call(e)==="[object Object]",P=()=>{},B=Ne();function Ne(){var e,n;return V&&((e=window==null?void 0:window.navigator)==null?void 0:e.userAgent)&&(/iP(?:ad|hone|od)/.test(window.navigator.userAgent)||((n=window==null?void 0:window.navigator)==null?void 0:n.maxTouchPoints)>2&&/iPad|Macintosh/.test(window==null?void 0:window.navigator.userAgent))}function le(e,n){function t(...o){return new Promise((s,r)=>{Promise.resolve(e(()=>n.apply(this,o),{fn:n,thisArg:this,args:o})).then(s).catch(r)})}return t}const _e=e=>e();function ze(e,n={}){let t,o,s=P;const r=l=>{clearTimeout(l),s(),s=P};return l=>{const i=D(e),u=D(n.maxWait);return t&&r(t),i<=0||u!==void 0&&u<=0?(o&&(r(o),o=null),Promise.resolve(l())):new Promise((v,f)=>{s=n.rejectOnCancel?f:v,u&&!o&&(o=setTimeout(()=>{t&&r(t),o=null,v(l())},u)),t=setTimeout(()=>{o&&r(o),o=null,v(l())},i)})}}function Ie(...e){let n=0,t,o=!0,s=P,r,a,l,i,u;!ne(e[0])&&typeof e[0]=="object"?{delay:a,trailing:l=!0,leading:i=!0,rejectOnCancel:u=!1}=e[0]:[a,l=!0,i=!0,u=!1]=e;const v=()=>{t&&(clearTimeout(t),t=void 0,s(),s=P)};return m=>{const c=D(a),p=Date.now()-n,h=()=>r=m();return v(),c<=0?(n=Date.now(),h()):(p>c&&(i||!o)?(n=Date.now(),h()):l&&(r=new Promise((S,d)=>{s=u?d:S,t=setTimeout(()=>{n=Date.now(),o=!0,S(h()),v()},Math.max(0,c-p))})),!i&&!t&&(t=setTimeout(()=>o=!0,c)),o=!1,r)}}function $e(e=_e){const n=g(!0);function t(){n.value=!1}function o(){n.value=!0}const s=(...r)=>{n.value&&e(...r)};return{isActive:Se(n),pause:t,resume:o,eventFilter:s}}function je(e){const n=Object.create(null);return t=>n[t]||(n[t]=e(t))}const Xe=/-(\w)/g,Be=je(e=>e.replace(Xe,(n,t)=>t?t.toUpperCase():""));function Ve(e){return ye()}function xe(...e){if(e.length!==1)return We(...e);const n=e[0];return typeof n=="function"?Se(pe(()=>({get:n,set:P}))):g(n)}function qe(e,n=200,t={}){return le(ze(n,t),e)}function Ge(e,n=200,t=!1,o=!0,s=!1){return le(Ie(n,t,o,s),e)}function _t(e,n={}){let t=e,o,s;const r=pe((m,c)=>(o=m,s=c,{get(){return a()},set(p){l(p)}}));function a(m=!0){return m&&o(),t}function l(m,c=!0){var p,h;if(m===t)return;const S=t;((p=n.onBeforeChange)==null?void 0:p.call(n,m,S))!==!1&&(t=m,(h=n.onChanged)==null||h.call(n,m,S),c&&s())}return Pe(r,{get:a,set:l,untrackedGet:()=>a(!1),silentSet:m=>l(m,!1),peek:()=>a(!1),lay:m=>l(m,!1)},{enumerable:!0})}function Ue(e,n,t={}){const{eventFilter:o=_e,...s}=t;return C(e,le(o,n),s)}function Je(e,n,t={}){const{eventFilter:o,...s}=t,{eventFilter:r,pause:a,resume:l,isActive:i}=$e(o);return{stop:Ue(e,n,{...s,eventFilter:r}),pause:a,resume:l,isActive:i}}function q(e,n=!0,t){Ve()?he(e,t):n?e():we(e)}const Ke=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[T\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/i,Qe=/[YMDHhms]o|\[([^\]]+)\]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a{1,2}|A{1,2}|m{1,2}|s{1,2}|Z{1,2}|SSS/g;function Ze(e,n,t,o){let s=e<12?"AM":"PM";return o&&(s=s.split("").reduce((r,a)=>r+=`${a}.`,"")),t?s.toLowerCase():s}function I(e){const n=["th","st","nd","rd"],t=e%100;return e+(n[(t-20)%10]||n[t]||n[0])}function et(e,n,t={}){var o;const s=e.getFullYear(),r=e.getMonth(),a=e.getDate(),l=e.getHours(),i=e.getMinutes(),u=e.getSeconds(),v=e.getMilliseconds(),f=e.getDay(),m=(o=t.customMeridiem)!=null?o:Ze,c={Yo:()=>I(s),YY:()=>String(s).slice(-2),YYYY:()=>s,M:()=>r+1,Mo:()=>I(r+1),MM:()=>`${r+1}`.padStart(2,"0"),MMM:()=>e.toLocaleDateString(D(t.locales),{month:"short"}),MMMM:()=>e.toLocaleDateString(D(t.locales),{month:"long"}),D:()=>String(a),Do:()=>I(a),DD:()=>`${a}`.padStart(2,"0"),H:()=>String(l),Ho:()=>I(l),HH:()=>`${l}`.padStart(2,"0"),h:()=>`${l%12||12}`.padStart(1,"0"),ho:()=>I(l%12||12),hh:()=>`${l%12||12}`.padStart(2,"0"),m:()=>String(i),mo:()=>I(i),mm:()=>`${i}`.padStart(2,"0"),s:()=>String(u),so:()=>I(u),ss:()=>`${u}`.padStart(2,"0"),SSS:()=>`${v}`.padStart(3,"0"),d:()=>f,dd:()=>e.toLocaleDateString(D(t.locales),{weekday:"narrow"}),ddd:()=>e.toLocaleDateString(D(t.locales),{weekday:"short"}),dddd:()=>e.toLocaleDateString(D(t.locales),{weekday:"long"}),A:()=>m(l,i),AA:()=>m(l,i,!1,!0),a:()=>m(l,i,!0),aa:()=>m(l,i,!0,!0)};return n.replace(Qe,(p,h)=>{var S,d;return(d=h??((S=c[p])==null?void 0:S.call(c)))!=null?d:p})}function tt(e){if(e===null)return new Date(Number.NaN);if(e===void 0)return new Date;if(e instanceof Date)return new Date(e);if(typeof e=="string"&&!/Z$/i.test(e)){const n=e.match(Ke);if(n){const t=n[2]-1||0,o=(n[7]||"0").substring(0,3);return new Date(n[1],t,n[3]||1,n[4]||0,n[5]||0,n[6]||0,o)}}return new Date(e)}function xt(e,n="HH:mm:ss",t={}){return T(()=>et(tt(D(e)),D(n),t))}function Dt(e,n,t){let o;ne(t)?o={evaluating:t}:o=t||{};const{lazy:s=!1,evaluating:r=void 0,shallow:a=!0,onError:l=P}=o,i=g(!s),u=a?oe(n):g(n);let v=0;return re(async f=>{if(!i.value)return;v++;const m=v;let c=!1;r&&Promise.resolve().then(()=>{r.value=!0});try{const p=await e(h=>{f(()=>{r&&(r.value=!1),c||h()})});m===v&&(u.value=p)}catch(p){l(p)}finally{r&&m===v&&(r.value=!1),c=!0}}),s?T(()=>(i.value=!0,u.value)):u}function Mt(e={}){const{inheritAttrs:n=!0}=e,t=oe(),o=ie({setup(r,{slots:a}){return()=>{t.value=a.default}}}),s=ie({inheritAttrs:n,setup(r,{attrs:a,slots:l}){return()=>{var i;t.value;const u=(i=t.value)==null?void 0:i.call(t,{...nt(a),$slots:l});return n&&(u==null?void 0:u.length)===1?u[0]:u}}});return Ce({define:o,reuse:s},[o,s])}function nt(e){const n={};for(const t in e)n[Be(t)]=e[t];return n}const W=V?window:void 0,De=V?window.document:void 0;function L(e){var n;const t=D(e);return(n=t==null?void 0:t.$el)!=null?n:t}function x(...e){let n,t,o,s;if(typeof e[0]=="string"||Array.isArray(e[0])?([t,o,s]=e,n=W):[n,t,o,s]=e,!n)return P;Array.isArray(t)||(t=[t]),Array.isArray(o)||(o=[o]);const r=[],a=()=>{r.forEach(v=>v()),r.length=0},l=(v,f,m,c)=>(v.addEventListener(f,m,c),()=>v.removeEventListener(f,m,c)),i=C(()=>[L(n),D(s)],([v,f])=>{if(a(),!v)return;const m=Ee(f)?{...f}:f;r.push(...t.flatMap(c=>o.map(p=>l(v,c,p,m))))},{immediate:!0,flush:"post"}),u=()=>{i(),a()};return N(u),u}let ae=!1;function Ot(e,n,t={}){const{window:o=W,ignore:s=[],capture:r=!0,detectIframe:a=!1}=t;if(!o)return P;B&&!ae&&(ae=!0,Array.from(o.document.body.children).forEach(c=>c.addEventListener("click",P)),o.document.documentElement.addEventListener("click",P));let l=!0;const i=c=>D(s).some(p=>{if(typeof p=="string")return Array.from(o.document.querySelectorAll(p)).some(h=>h===c.target||c.composedPath().includes(h));{const h=L(p);return h&&(c.target===h||c.composedPath().includes(h))}}),u=c=>{const p=L(e);if(!(!p||p===c.target||c.composedPath().includes(p))){if(c.detail===0&&(l=!i(c)),!l){l=!0;return}n(c)}};let v=!1;const f=[x(o,"click",c=>{v||(v=!0,setTimeout(()=>{v=!1},0),u(c))},{passive:!0,capture:r}),x(o,"pointerdown",c=>{const p=L(e);l=!i(c)&&!!(p&&!c.composedPath().includes(p))},{passive:!0}),a&&x(o,"blur",c=>{setTimeout(()=>{var p;const h=L(e);((p=o.document.activeElement)==null?void 0:p.tagName)==="IFRAME"&&!(h!=null&&h.contains(o.document.activeElement))&&n(c)},0)})].filter(Boolean);return()=>f.forEach(c=>c())}function ot(){const e=g(!1),n=ye();return n&&he(()=>{e.value=!0},n),e}function G(e){const n=ot();return T(()=>(n.value,!!e()))}function rt(e,n,t={}){const{window:o=W,...s}=t;let r;const a=G(()=>o&&"MutationObserver"in o),l=()=>{r&&(r.disconnect(),r=void 0)},i=T(()=>{const m=D(e),c=(Array.isArray(m)?m:[m]).map(L).filter(Re);return new Set(c)}),u=C(()=>i.value,m=>{l(),a.value&&m.size&&(r=new MutationObserver(n),m.forEach(c=>r.observe(c,s)))},{immediate:!0,flush:"post"}),v=()=>r==null?void 0:r.takeRecords(),f=()=>{u(),l()};return N(f),{isSupported:a,stop:f,takeRecords:v}}function lt(e,n={}){const{window:t=W}=n,o=G(()=>t&&"matchMedia"in t&&typeof t.matchMedia=="function");let s;const r=g(!1),a=u=>{r.value=u.matches},l=()=>{s&&("removeEventListener"in s?s.removeEventListener("change",a):s.removeListener(a))},i=re(()=>{o.value&&(l(),s=t.matchMedia(D(e)),"addEventListener"in s?s.addEventListener("change",a):s.addListener(a),r.value=s.matches)});return N(()=>{i(),l(),s=void 0}),r}const U=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},J="__vueuse_ssr_handlers__",st=ut();function ut(){return J in U||(U[J]=U[J]||{}),U[J]}function it(e,n){return st[e]||n}function at(e){return e==null?"any":e instanceof Set?"set":e instanceof Map?"map":e instanceof Date?"date":typeof e=="boolean"?"boolean":typeof e=="string"?"string":typeof e=="object"?"object":Number.isNaN(e)?"any":"number"}const ct={boolean:{read:e=>e==="true",write:e=>String(e)},object:{read:e=>JSON.parse(e),write:e=>JSON.stringify(e)},number:{read:e=>Number.parseFloat(e),write:e=>String(e)},any:{read:e=>e,write:e=>String(e)},string:{read:e=>e,write:e=>String(e)},map:{read:e=>new Map(JSON.parse(e)),write:e=>JSON.stringify(Array.from(e.entries()))},set:{read:e=>new Set(JSON.parse(e)),write:e=>JSON.stringify(Array.from(e))},date:{read:e=>new Date(e),write:e=>e.toISOString()}},ce="vueuse-storage";function ft(e,n,t,o={}){var s;const{flush:r="pre",deep:a=!0,listenToStorageChanges:l=!0,writeDefaults:i=!0,mergeDefaults:u=!1,shallow:v,window:f=W,eventFilter:m,onError:c=w=>{console.error(w)},initOnMounted:p}=o,h=(v?oe:g)(typeof n=="function"?n():n);if(!t)try{t=it("getDefaultStorage",()=>{var w;return(w=W)==null?void 0:w.localStorage})()}catch(w){c(w)}if(!t)return h;const S=D(n),d=at(S),E=(s=o.serializer)!=null?s:ct[d],{pause:A,resume:O}=Je(h,()=>k(h.value),{flush:r,deep:a,eventFilter:m});f&&l&&q(()=>{t instanceof Storage?x(f,"storage",H):x(f,ce,_),p&&H()}),p||H();function y(w,M){if(f){const F={key:e,oldValue:w,newValue:M,storageArea:t};f.dispatchEvent(t instanceof Storage?new StorageEvent("storage",F):new CustomEvent(ce,{detail:F}))}}function k(w){try{const M=t.getItem(e);if(w==null)y(M,null),t.removeItem(e);else{const F=E.write(w);M!==F&&(t.setItem(e,F),y(M,F))}}catch(M){c(M)}}function b(w){const M=w?w.newValue:t.getItem(e);if(M==null)return i&&S!=null&&t.setItem(e,E.write(S)),S;if(!w&&u){const F=E.read(M);return typeof u=="function"?u(F,S):d==="object"&&!Array.isArray(F)?{...S,...F}:F}else return typeof M!="string"?M:E.read(M)}function H(w){if(!(w&&w.storageArea!==t)){if(w&&w.key==null){h.value=S;return}if(!(w&&w.key!==e)){A();try{(w==null?void 0:w.newValue)!==E.write(h.value)&&(h.value=b(w))}catch(M){c(M)}finally{w?we(O):O()}}}}function _(w){H(w.detail)}return h}function Tt(e={}){const{document:n=De}=e;if(!n)return g("visible");const t=g(n.visibilityState);return x(n,"visibilitychange",()=>{t.value=n.visibilityState}),t}function Me(e,n,t={}){const{window:o=W,...s}=t;let r;const a=G(()=>o&&"ResizeObserver"in o),l=()=>{r&&(r.disconnect(),r=void 0)},i=T(()=>{const f=D(e);return Array.isArray(f)?f.map(m=>L(m)):[L(f)]}),u=C(i,f=>{if(l(),a.value&&o){r=new ResizeObserver(n);for(const m of f)m&&r.observe(m,s)}},{immediate:!0,flush:"post"}),v=()=>{l(),u()};return N(v),{isSupported:a,stop:v}}function Ft(e,n={}){const{reset:t=!0,windowResize:o=!0,windowScroll:s=!0,immediate:r=!0,updateTiming:a="sync"}=n,l=g(0),i=g(0),u=g(0),v=g(0),f=g(0),m=g(0),c=g(0),p=g(0);function h(){const d=L(e);if(!d){t&&(l.value=0,i.value=0,u.value=0,v.value=0,f.value=0,m.value=0,c.value=0,p.value=0);return}const E=d.getBoundingClientRect();l.value=E.height,i.value=E.bottom,u.value=E.left,v.value=E.right,f.value=E.top,m.value=E.width,c.value=E.x,p.value=E.y}function S(){a==="sync"?h():a==="next-frame"&&requestAnimationFrame(()=>h())}return Me(e,S),C(()=>L(e),d=>!d&&S()),rt(e,S,{attributeFilter:["style","class"]}),s&&x("scroll",S,{capture:!0,passive:!0}),o&&x("resize",S,{passive:!0}),q(()=>{r&&S()}),{height:l,bottom:i,left:u,right:v,top:f,width:m,x:c,y:p,update:S}}function kt(e,n={width:0,height:0},t={}){const{window:o=W,box:s="content-box"}=t,r=T(()=>{var f,m;return(m=(f=L(e))==null?void 0:f.namespaceURI)==null?void 0:m.includes("svg")}),a=g(n.width),l=g(n.height),{stop:i}=Me(e,([f])=>{const m=s==="border-box"?f.borderBoxSize:s==="content-box"?f.contentBoxSize:f.devicePixelContentBoxSize;if(o&&r.value){const c=L(e);if(c){const p=c.getBoundingClientRect();a.value=p.width,l.value=p.height}}else if(m){const c=Array.isArray(m)?m:[m];a.value=c.reduce((p,{inlineSize:h})=>p+h,0),l.value=c.reduce((p,{blockSize:h})=>p+h,0)}else a.value=f.contentRect.width,l.value=f.contentRect.height},t);q(()=>{const f=L(e);f&&(a.value="offsetWidth"in f?f.offsetWidth:n.width,l.value="offsetHeight"in f?f.offsetHeight:n.height)});const u=C(()=>L(e),f=>{a.value=f?n.width:0,l.value=f?n.height:0});function v(){i(),u()}return{width:a,height:l,stop:v}}const X=new Map;function At(e){const n=ge();function t(l){var i;const u=X.get(e)||new Set;u.add(l),X.set(e,u);const v=()=>s(l);return(i=n==null?void 0:n.cleanups)==null||i.push(v),v}function o(l){function i(...u){s(i),l(...u)}return t(i)}function s(l){const i=X.get(e);i&&(i.delete(l),i.size||r())}function r(){X.delete(e)}function a(l,i){var u;(u=X.get(e))==null||u.forEach(v=>v(l,i))}return{on:t,once:o,off:s,emit:a,reset:r}}const fe=["fullscreenchange","webkitfullscreenchange","webkitendfullscreen","mozfullscreenchange","MSFullscreenChange"];function Lt(e,n={}){const{document:t=De,autoExit:o=!1}=n,s=T(()=>{var d;return(d=L(e))!=null?d:t==null?void 0:t.querySelector("html")}),r=g(!1),a=T(()=>["requestFullscreen","webkitRequestFullscreen","webkitEnterFullscreen","webkitEnterFullScreen","webkitRequestFullScreen","mozRequestFullScreen","msRequestFullscreen"].find(d=>t&&d in t||s.value&&d in s.value)),l=T(()=>["exitFullscreen","webkitExitFullscreen","webkitExitFullScreen","webkitCancelFullScreen","mozCancelFullScreen","msExitFullscreen"].find(d=>t&&d in t||s.value&&d in s.value)),i=T(()=>["fullScreen","webkitIsFullScreen","webkitDisplayingFullscreen","mozFullScreen","msFullscreenElement"].find(d=>t&&d in t||s.value&&d in s.value)),u=["fullscreenElement","webkitFullscreenElement","mozFullScreenElement","msFullscreenElement"].find(d=>t&&d in t),v=G(()=>s.value&&t&&a.value!==void 0&&l.value!==void 0&&i.value!==void 0),f=()=>u?(t==null?void 0:t[u])===s.value:!1,m=()=>{if(i.value){if(t&&t[i.value]!=null)return t[i.value];{const d=s.value;if((d==null?void 0:d[i.value])!=null)return!!d[i.value]}}return!1};async function c(){if(!(!v.value||!r.value)){if(l.value)if((t==null?void 0:t[l.value])!=null)await t[l.value]();else{const d=s.value;(d==null?void 0:d[l.value])!=null&&await d[l.value]()}r.value=!1}}async function p(){if(!v.value||r.value)return;m()&&await c();const d=s.value;a.value&&(d==null?void 0:d[a.value])!=null&&(await d[a.value](),r.value=!0)}async function h(){await(r.value?c():p())}const S=()=>{const d=m();(!d||d&&f())&&(r.value=d)};return x(t,fe,S,!1),x(()=>L(s),fe,S,!1),o&&N(c),{isSupported:v,isFullscreen:r,enter:p,exit:c,toggle:h}}function Q(e){return typeof Window<"u"&&e instanceof Window?e.document.documentElement:typeof Document<"u"&&e instanceof Document?e.documentElement:e}const de=1;function Ht(e,n={}){const{throttle:t=0,idle:o=200,onStop:s=P,onScroll:r=P,offset:a={left:0,right:0,top:0,bottom:0},eventListenerOptions:l={capture:!1,passive:!0},behavior:i="auto",window:u=W,onError:v=b=>{console.error(b)}}=n,f=g(0),m=g(0),c=T({get(){return f.value},set(b){h(b,void 0)}}),p=T({get(){return m.value},set(b){h(void 0,b)}});function h(b,H){var _,w,M,F;if(!u)return;const R=D(e);if(!R)return;(M=R instanceof Document?u.document.body:R)==null||M.scrollTo({top:(_=D(H))!=null?_:p.value,left:(w=D(b))!=null?w:c.value,behavior:D(i)});const j=((F=R==null?void 0:R.document)==null?void 0:F.documentElement)||(R==null?void 0:R.documentElement)||R;c!=null&&(f.value=j.scrollLeft),p!=null&&(m.value=j.scrollTop)}const S=g(!1),d=K({left:!0,right:!1,top:!0,bottom:!1}),E=K({left:!1,right:!1,top:!1,bottom:!1}),A=b=>{S.value&&(S.value=!1,E.left=!1,E.right=!1,E.top=!1,E.bottom=!1,s(b))},O=qe(A,t+o),y=b=>{var H;if(!u)return;const _=((H=b==null?void 0:b.document)==null?void 0:H.documentElement)||(b==null?void 0:b.documentElement)||L(b),{display:w,flexDirection:M}=getComputedStyle(_),F=_.scrollLeft;E.left=F<f.value,E.right=F>f.value;const R=Math.abs(F)<=(a.left||0),j=Math.abs(F)+_.clientWidth>=_.scrollWidth-(a.right||0)-de;w==="flex"&&M==="row-reverse"?(d.left=j,d.right=R):(d.left=R,d.right=j),f.value=F;let z=_.scrollTop;b===u.document&&!z&&(z=u.document.body.scrollTop),E.top=z<m.value,E.bottom=z>m.value;const se=Math.abs(z)<=(a.top||0),ue=Math.abs(z)+_.clientHeight>=_.scrollHeight-(a.bottom||0)-de;w==="flex"&&M==="column-reverse"?(d.top=ue,d.bottom=se):(d.top=se,d.bottom=ue),m.value=z},k=b=>{var H;if(!u)return;const _=(H=b.target.documentElement)!=null?H:b.target;y(_),S.value=!0,O(b),r(b)};return x(e,"scroll",t?Ge(k,t,!0,!1):k,l),q(()=>{try{const b=D(e);if(!b)return;y(b)}catch(b){v(b)}}),x(e,"scrollend",A,l),{x:c,y:p,isScrolling:S,arrivedState:d,directions:E,measure(){const b=D(e);u&&b&&y(b)}}}function Wt(e,n,t={}){const{window:o=W}=t;return ft(e,n,o==null?void 0:o.localStorage,t)}const dt={page:e=>[e.pageX,e.pageY],client:e=>[e.clientX,e.clientY],screen:e=>[e.screenX,e.screenY],movement:e=>e instanceof Touch?null:[e.movementX,e.movementY]};function Pt(e={}){const{type:n="page",touch:t=!0,resetOnTouchEnds:o=!1,initialValue:s={x:0,y:0},window:r=W,target:a=r,scroll:l=!0,eventFilter:i}=e;let u=null;const v=g(s.x),f=g(s.y),m=g(null),c=typeof n=="function"?n:dt[n],p=y=>{const k=c(y);u=y,k&&([v.value,f.value]=k,m.value="mouse")},h=y=>{if(y.touches.length>0){const k=c(y.touches[0]);k&&([v.value,f.value]=k,m.value="touch")}},S=()=>{if(!u||!r)return;const y=c(u);u instanceof MouseEvent&&y&&(v.value=y[0]+r.scrollX,f.value=y[1]+r.scrollY)},d=()=>{v.value=s.x,f.value=s.y},E=i?y=>i(()=>p(y),{}):y=>p(y),A=i?y=>i(()=>h(y),{}):y=>h(y),O=i?()=>i(()=>S(),{}):()=>S();if(a){const y={passive:!0};x(a,["mousemove","dragover"],E,y),t&&n!=="movement"&&(x(a,["touchstart","touchmove"],A,y),o&&x(a,"touchend",d,y)),l&&n==="page"&&x(r,"scroll",O,{passive:!0})}return{x:v,y:f,sourceType:m}}function Ct(e={}){const{touch:n=!0,drag:t=!0,capture:o=!1,initialValue:s=!1,window:r=W}=e,a=g(s),l=g(null);if(!r)return{pressed:a,sourceType:l};const i=f=>()=>{a.value=!0,l.value=f},u=()=>{a.value=!1,l.value=null},v=T(()=>L(e.target)||r);return x(v,"mousedown",i("mouse"),{passive:!0,capture:o}),x(r,"mouseleave",u,{passive:!0,capture:o}),x(r,"mouseup",u,{passive:!0,capture:o}),t&&(x(v,"dragstart",i("mouse"),{passive:!0,capture:o}),x(r,"drop",u,{passive:!0,capture:o}),x(r,"dragend",u,{passive:!0,capture:o})),n&&(x(v,"touchstart",i("touch"),{passive:!0,capture:o}),x(r,"touchend",u,{passive:!0,capture:o}),x(r,"touchcancel",u,{passive:!0,capture:o})),{pressed:a,sourceType:l}}function Rt(e={}){const{window:n=W}=e,t=G(()=>n&&"screen"in n&&"orientation"in n.screen),o=t.value?n.screen.orientation:{},s=g(o.type),r=g(o.angle||0);return t.value&&x(n,"orientationchange",()=>{s.value=o.type,r.value=o.angle}),{isSupported:t,orientation:s,angle:r,lockOrientation:i=>t.value&&typeof o.lock=="function"?o.lock(i):Promise.reject(new Error("Not supported")),unlockOrientation:()=>{t.value&&typeof o.unlock=="function"&&o.unlock()}}}function Oe(e){const n=window.getComputedStyle(e);if(n.overflowX==="scroll"||n.overflowY==="scroll"||n.overflowX==="auto"&&e.clientWidth<e.scrollWidth||n.overflowY==="auto"&&e.clientHeight<e.scrollHeight)return!0;{const t=e.parentNode;return!t||t.tagName==="BODY"?!1:Oe(t)}}function vt(e){const n=e||window.event,t=n.target;return Oe(t)?!1:n.touches.length>1?!0:(n.preventDefault&&n.preventDefault(),!1)}const Z=new WeakMap;function Yt(e,n=!1){const t=g(n);let o=null,s="";C(xe(e),l=>{const i=Q(D(l));if(i){const u=i;if(Z.get(u)||Z.set(u,u.style.overflow),u.style.overflow!=="hidden"&&(s=u.style.overflow),u.style.overflow==="hidden")return t.value=!0;if(t.value)return u.style.overflow="hidden"}},{immediate:!0});const r=()=>{const l=Q(D(e));!l||t.value||(B&&(o=x(l,"touchmove",i=>{vt(i)},{passive:!1})),l.style.overflow="hidden",t.value=!0)},a=()=>{const l=Q(D(e));!l||!t.value||(B&&(o==null||o()),l.style.overflow=s,Z.delete(l),t.value=!1)};return N(a),T({get(){return t.value},set(l){l?r():a()}})}function Nt(e,n={}){const{threshold:t=50,onSwipe:o,onSwipeEnd:s,onSwipeStart:r,passive:a=!0,window:l=W}=n,i=K({x:0,y:0}),u=K({x:0,y:0}),v=T(()=>i.x-u.x),f=T(()=>i.y-u.y),{max:m,abs:c}=Math,p=T(()=>m(c(v.value),c(f.value))>=t),h=g(!1),S=T(()=>p.value?c(v.value)>c(f.value)?v.value>0?"left":"right":f.value>0?"up":"down":"none"),d=_=>[_.touches[0].clientX,_.touches[0].clientY],E=(_,w)=>{i.x=_,i.y=w},A=(_,w)=>{u.x=_,u.y=w};let O;const y=mt(l==null?void 0:l.document);a?O=y?{passive:!0}:{capture:!1}:O=y?{passive:!1,capture:!0}:{capture:!0};const k=_=>{h.value&&(s==null||s(_,S.value)),h.value=!1},b=[x(e,"touchstart",_=>{if(_.touches.length!==1)return;O.capture&&!O.passive&&_.preventDefault();const[w,M]=d(_);E(w,M),A(w,M),r==null||r(_)},O),x(e,"touchmove",_=>{if(_.touches.length!==1)return;const[w,M]=d(_);A(w,M),!h.value&&p.value&&(h.value=!0),h.value&&(o==null||o(_))},O),x(e,["touchend","touchcancel"],k,O)];return{isPassiveEventSupported:y,isSwiping:h,direction:S,coordsStart:i,coordsEnd:u,lengthX:v,lengthY:f,stop:()=>b.forEach(_=>_())}}function mt(e){if(!e)return!1;let n=!1;const t={get passive(){return n=!0,!1}};return e.addEventListener("x",P,t),e.removeEventListener("x",P),n}function zt(e={}){const{window:n=W,behavior:t="auto"}=e;if(!n)return{x:g(0),y:g(0)};const o=g(n.scrollX),s=g(n.scrollY),r=T({get(){return o.value},set(l){scrollTo({left:l,behavior:t})}}),a=T({get(){return s.value},set(l){scrollTo({top:l,behavior:t})}});return x(n,"scroll",()=>{o.value=n.scrollX,s.value=n.scrollY},{capture:!1,passive:!0}),{x:r,y:a}}function It(e={}){const{window:n=W,initialWidth:t=Number.POSITIVE_INFINITY,initialHeight:o=Number.POSITIVE_INFINITY,listenOrientation:s=!0,includeScrollbar:r=!0,type:a="inner"}=e,l=g(t),i=g(o),u=()=>{n&&(a==="outer"?(l.value=n.outerWidth,i.value=n.outerHeight):r?(l.value=n.innerWidth,i.value=n.innerHeight):(l.value=n.document.documentElement.clientWidth,i.value=n.document.documentElement.clientHeight))};if(u(),q(u),x("resize",u,{passive:!0}),s){const v=lt("(orientation: portrait)");C(v,()=>u())}return{width:l,height:i}}function $t(e=null,n){const t=g(e),o=T({set:r=>r?Y.start():Y.done(),get:()=>typeof t.value=="number"&&t.value<1});n&&Y.configure(n);const s=Y.set;return Y.set=r=>(t.value=r,s.call(Y,r)),re(()=>{typeof t.value=="number"&&V&&s.call(Y,t.value)}),N(Y.remove),{isLoading:o,progress:t,start:Y.start,done:Y.done,remove:()=>{t.value=null,Y.remove()}}}const Te=V?window:void 0;function Fe(e){var n;const t=D(e);return(n=t==null?void 0:t.$el)!=null?n:t}function $(...e){let n,t,o,s;if(typeof e[0]=="string"||Array.isArray(e[0])?([t,o,s]=e,n=Te):[n,t,o,s]=e,!n)return P;Array.isArray(t)||(t=[t]),Array.isArray(o)||(o=[o]);const r=[],a=()=>{r.forEach(v=>v()),r.length=0},l=(v,f,m,c)=>(v.addEventListener(f,m,c),()=>v.removeEventListener(f,m,c)),i=C(()=>[Fe(n),D(s)],([v,f])=>{if(a(),!v)return;const m=Ee(f)?{...f}:f;r.push(...t.flatMap(c=>o.map(p=>l(v,c,p,m))))},{immediate:!0,flush:"post"}),u=()=>{i(),a()};return N(u),u}const pt=500,ht=10;function ve(e,n,t){var o,s;const r=T(()=>Fe(e));let a,l,i,u=!1;function v(){a&&(clearTimeout(a),a=void 0),l=void 0,i=void 0,u=!1}function f(d){var E,A,O;const[y,k,b]=[i,l,u];if(v(),!(t!=null&&t.onMouseUp)||!k||!y||(E=t==null?void 0:t.modifiers)!=null&&E.self&&d.target!==r.value)return;(A=t==null?void 0:t.modifiers)!=null&&A.prevent&&d.preventDefault(),(O=t==null?void 0:t.modifiers)!=null&&O.stop&&d.stopPropagation();const H=d.x-k.x,_=d.y-k.y,w=Math.sqrt(H*H+_*_);t.onMouseUp(d.timeStamp-y,w,b)}function m(d){var E,A,O,y;(E=t==null?void 0:t.modifiers)!=null&&E.self&&d.target!==r.value||(v(),(A=t==null?void 0:t.modifiers)!=null&&A.prevent&&d.preventDefault(),(O=t==null?void 0:t.modifiers)!=null&&O.stop&&d.stopPropagation(),l={x:d.x,y:d.y},i=d.timeStamp,a=setTimeout(()=>{u=!0,n(d)},(y=t==null?void 0:t.delay)!=null?y:pt))}function c(d){var E,A,O,y;if((E=t==null?void 0:t.modifiers)!=null&&E.self&&d.target!==r.value||!l||(t==null?void 0:t.distanceThreshold)===!1)return;(A=t==null?void 0:t.modifiers)!=null&&A.prevent&&d.preventDefault(),(O=t==null?void 0:t.modifiers)!=null&&O.stop&&d.stopPropagation();const k=d.x-l.x,b=d.y-l.y;Math.sqrt(k*k+b*b)>=((y=t==null?void 0:t.distanceThreshold)!=null?y:ht)&&v()}const p={capture:(o=t==null?void 0:t.modifiers)==null?void 0:o.capture,once:(s=t==null?void 0:t.modifiers)==null?void 0:s.once},h=[$(r,"pointerdown",m,p),$(r,"pointermove",c,p),$(r,["pointerup","pointerleave"],f,p)];return()=>h.forEach(d=>d())}const jt={[be.mounted](e,n){typeof n.value=="function"?ve(e,n.value,{modifiers:n.modifiers}):ve(e,...n.value)}};function me(e,n={}){const{delayEnter:t=0,delayLeave:o=0,window:s=Te}=n,r=g(!1);let a;const l=i=>{const u=i?t:o;a&&(clearTimeout(a),a=void 0),u?a=setTimeout(()=>r.value=i,u):r.value=i};return s&&($(e,"mouseenter",()=>l(!0),{passive:!0}),$(e,"mouseleave",()=>l(!1),{passive:!0})),r}const Xt={[be.mounted](e,n){const t=n.value;if(typeof t=="function"){const o=me(e);C(o,s=>t(s))}else{const[o,s]=t,r=me(e,s);C(r,a=>o(a))}}};function ee(e){return typeof Window<"u"&&e instanceof Window?e.document.documentElement:typeof Document<"u"&&e instanceof Document?e.documentElement:e}function ke(e){const n=window.getComputedStyle(e);if(n.overflowX==="scroll"||n.overflowY==="scroll"||n.overflowX==="auto"&&e.clientWidth<e.scrollWidth||n.overflowY==="auto"&&e.clientHeight<e.scrollHeight)return!0;{const t=e.parentNode;return!t||t.tagName==="BODY"?!1:ke(t)}}function wt(e){const n=e||window.event,t=n.target;return ke(t)?!1:n.touches.length>1?!0:(n.preventDefault&&n.preventDefault(),!1)}const te=new WeakMap;function gt(e,n=!1){const t=g(n);let o=null,s="";C(xe(e),l=>{const i=ee(D(l));if(i){const u=i;if(te.get(u)||te.set(u,u.style.overflow),u.style.overflow!=="hidden"&&(s=u.style.overflow),u.style.overflow==="hidden")return t.value=!0;if(t.value)return u.style.overflow="hidden"}},{immediate:!0});const r=()=>{const l=ee(D(e));!l||t.value||(B&&(o=$(l,"touchmove",i=>{wt(i)},{passive:!1})),l.style.overflow="hidden",t.value=!0)},a=()=>{const l=ee(D(e));!l||!t.value||(B&&(o==null||o()),l.style.overflow=s,te.delete(l),t.value=!1)};return N(a),T({get(){return t.value},set(l){l?r():a()}})}function yt(){let e=!1;const n=g(!1);return(t,o)=>{if(n.value=o.value,e)return;e=!0;const s=gt(t,o.value);C(n,r=>s.value=r)}}yt();export{xt as a,lt as b,Et as c,Rt as d,It as e,At as f,Nt as g,zt as h,$t as i,kt as j,Ht as k,Pt as l,Ct as m,Yt as n,Ot as o,x as p,Ft as q,_t as r,Lt as s,Mt as t,Wt as u,Dt as v,Xt as w,jt as x,Tt as y,Me as z};
|
package/dist/interface/{Account.CPGH5peU.0.0.34-alpha.4.js → Account.DpNjtlWo.0.0.34-alpha.5.js}
RENAMED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{f as ee,u as se,c as oe,r as re,_ as ae,d as te}from"./main.
|
|
1
|
+
import{f as ee,u as se,c as oe,r as re,_ as ae,d as te}from"./main.CHLTWOfy.0.0.34-alpha.5.js";import{G as ne,r as g,b as P,aa as le,ab as t,u as e,a5 as ie,f as o,a9 as d,R as r,m as b,d as me,k as de,a7 as M,p as ue,g as E}from"./@vue.CA7eQC0C.0.0.34-alpha.5.js";import{m as N,a as R,W as j}from"./@mdi.C1UTQKuc.0.0.34-alpha.5.js";import{F as f,a as ce}from"./vee-validate.hnY_ZrYq.0.0.34-alpha.5.js";import{i as D}from"./vue3-toastify.CgpUgDJR.0.0.34-alpha.5.js";import{s as pe}from"./pinia.a0-UAJ60.0.0.34-alpha.5.js";import{c as F,d as U,e as G,z as W,V as q,b as H}from"./vuetify.CpjU1ATb.0.0.34-alpha.5.js";import{u as fe}from"./vue-i18n.Yxe4ZdlC.0.0.34-alpha.5.js";import"./axios.C-n2IhIP.0.0.34-alpha.5.js";import"./@tanstack.B92K4jky.0.0.34-alpha.5.js";import"./vue-router.CuXGWZx-.0.0.34-alpha.5.js";import"./@vueuse.MCSqyj_O.0.0.34-alpha.5.js";import"./nprogress.Dy-fdKdR.0.0.34-alpha.5.js";import"./@xterm.GAbfxM_B.0.0.34-alpha.5.js";import"./@vee-validate.CO6TzE0f.0.0.34-alpha.5.js";import"./zod.DnW1_kUe.0.0.34-alpha.5.js";import"./uuid.DvF23Exx.0.0.34-alpha.5.js";import"./socket.io-client.DLAxf4Au.0.0.34-alpha.5.js";import"./engine.io-client.CVSa3JNO.0.0.34-alpha.5.js";import"./engine.io-parser.BiEtp6m2.0.0.34-alpha.5.js";import"./@socket.io.Dkula2eQ.0.0.34-alpha.5.js";import"./socket.io-parser.DljDeMVN.0.0.34-alpha.5.js";import"./rxjs.DvjWjMpY.0.0.34-alpha.5.js";import"./tslib.9k7AwCpt.0.0.34-alpha.5.js";import"./vue-inline-svg.C52hpSWp.0.0.34-alpha.5.js";import"./@intlify.DXtFJcML.0.0.34-alpha.5.js";import"./perfect-debounce.Cp2ysxOb.0.0.34-alpha.5.js";import"./hookable.B8xFkYCm.0.0.34-alpha.5.js";const ve={class:"relative"},ge={class:"subview-title text-color"},be={class:"image-upload ml-auto"},_e={for:"file-input"},he={class:"inner-component p-4"},ye={class:"relative"},we={for:"username",class:"v-label"},xe={class:"relative"},ke={for:"password",class:"v-label"},Ce={class:"relative"},Me={for:"passwordConfirm",class:"v-label"},$e={class:"relative"},Ve={for:"sessionTimer",class:"v-label"},Le={key:0,style:{"padding-top":"22px"}},Se={class:"relative"},Ie={class:"flex flex-row"},ze={class:"v-label m-0 mb-0 ml-2",for:"rememberMe"},Fe={class:"text-sm"},Te={class:"relative"},Ae={class:"flex flex-row"},Be={class:"v-label m-0 mb-0 ml-2",for:"oneLogin"},Oe={class:"text-sm"},Pe=ne({__name:"Account",setup(Ee){var A,B;const{smallMobileActive:T}=ee(),$=se(),J=fe(),{loginState:a}=pe($),V=g("avatar"),w=g(),L=g(),_=g(!1),x=g(!1),k=g(!1);let S=((A=a.value.user)==null?void 0:A.rememberMe)??!1,I=((B=a.value.user)==null?void 0:B.oneLogin)??!1;const K=()=>{a.value.user&&(a.value.user.rememberMe=!a.value.user.rememberMe)},Q=()=>{a.value.user&&(a.value.user.oneLogin=!a.value.user.oneLogin)},X=()=>{L.value&&(L.value.resetForm(),V.value="avatar",w.value=void 0),a.value.user&&(a.value.user.rememberMe=S,a.value.user.oneLogin=I)},Y=async n=>{var u;const s=(u=n.target)==null?void 0:u.files;w.value=s==null?void 0:s[0],V.value=await re(n)},Z=async n=>{var h,y,l,i,m,p,C;_.value=!0;let s;const u={...n};delete u.upload;const z=((h=a.value.user)==null?void 0:h.username)!==u.username||u.password&&u.passwordConfirm,v=Object.entries(u).some(([,c])=>c!==void 0);if(w.value&&(s=new FormData,s.append("upload",w.value)),!v&&!s){_.value=!1;return}try{await $.updateUser(u,s,!0),D.success(J.t("components.toast.profile_updated")),S=((y=a.value.user)==null?void 0:y.rememberMe)??S,I=((l=a.value.user)==null?void 0:l.oneLogin)??I,z&&$.logout()}catch(c){D.error(((m=(i=c.response)==null?void 0:i.data)==null?void 0:m.message)??c.message??c),console.error(((C=(p=c.response)==null?void 0:p.data)==null?void 0:C.message)??c.message??c)}_.value=!1};return(n,s)=>{const u=ae,z=ie("v-number-input");return P(),le(e(ce),{ref_key:"form",ref:L,class:"flex flex-col w-full","validation-schema":e(oe),onSubmit:s[3]||(s[3]=v=>Z(v))},{default:t(()=>{var v,h,y;return[o("div",ve,[o("span",ge,d(n.$t("views.settings.profile")),1),o("div",be,[o("label",_e,[r(u,{src:e(V),size:"4rem",style:{"border-radius":"4rem",border:"1px solid var(--border)"}},null,8,["src"]),r(e(f),{id:"file-input",type:"file",name:"upload",accept:"image/png,image/jpeg,image/jpg",onChange:s[0]||(s[0]=l=>Y(l))})])]),o("div",he,[o("div",ye,[o("label",we,d(n.$t("components.form.label.username")),1),r(e(f),{name:"username",value:(v=e(a).user)==null?void 0:v.username},{default:t(({field:l,errorMessage:i,errors:m})=>[r(F,b({name:"username",variant:"outlined",density:"compact"},l,{type:"text",error:m.length>0,"error-messages":i}),null,16,["error","error-messages"])]),_:1},8,["value"])]),s[4]||(s[4]=o("div",{class:"py-1"},null,-1)),o("div",xe,[o("label",ke,d(n.$t("components.form.label.new_password")),1),r(e(f),{name:"password"},{default:t(({field:l,errorMessage:i,errors:m})=>[r(F,b({name:"password",variant:"outlined",density:"compact"},l,{type:e(x)?"text":"password",error:m.length>0,"error-messages":i,"append-inner-icon":e(x)?e(N):e(R),"onClick:appendInner":s[1]||(s[1]=p=>x.value=!e(x))}),null,16,["type","error","error-messages","append-inner-icon"])]),_:1})]),s[5]||(s[5]=o("div",{class:"py-1"},null,-1)),o("div",Ce,[o("label",Me,d(n.$t("components.form.label.new_password_confirm")),1),r(e(f),{name:"passwordConfirm"},{default:t(({field:l,errorMessage:i,errors:m})=>[r(F,b({name:"passwordConfirm",variant:"outlined",density:"compact"},l,{type:e(k)?"text":"password",error:m.length>0,"error-messages":i,"append-inner-icon":e(k)?e(N):e(R),"onClick:appendInner":s[2]||(s[2]=p=>k.value=!e(k))}),null,16,["type","error","error-messages","append-inner-icon"])]),_:1})]),s[6]||(s[6]=o("div",{class:"py-1"},null,-1)),o("div",$e,[o("label",Ve,d(n.$t("components.form.label.session_timer")),1),r(e(f),{name:"sessionTimer",value:(h=e(a).user)==null?void 0:h.sessionTimer},{default:t(({field:l,errorMessage:i,errors:m,value:p,setValue:C})=>{var c,O;return[r(z,b({name:"sessionTimer",variant:"outlined",density:"compact"},l,{type:"number",step:600,error:m.length>0,"error-messages":i,disabled:(c=e(a).user)==null?void 0:c.rememberMe,"hide-details":(O=e(a).user)==null?void 0:O.rememberMe,onChange:()=>p===""?C(14400):void 0}),null,16,["error","error-messages","disabled","hide-details","onChange"])]}),_:1},8,["value"])]),s[7]||(s[7]=o("div",{class:"py-1"},null,-1)),(y=e(a).user)!=null&&y.rememberMe?(P(),me("div",Le)):de("",!0),o("div",Se,[r(e(f),{name:"rememberMe",type:"checkbox","checked-value":!0,"unchecked-value":!1},{default:t(({field:l,errorMessage:i,errors:m})=>[o("div",Ie,[r(U,b({"model-value":e(a).user.rememberMe,name:"rememberMe"},l,{color:"#df2a4c",type:"checkbox",error:m.length>0,"error-messages":i,"hide-details":"",onChange:K}),null,16,["model-value","error","error-messages"]),o("label",ze,d(n.$t("components.form.label.remember_me")),1)])]),_:1}),r(W,{variant:"tonal",color:"#df2a4c"},{prepend:t(()=>[r(G,{color:"#df2a4c",size:"20",class:"mt-1"},{default:t(()=>[M(d(e(j)),1)]),_:1})]),default:t(()=>[o("span",Fe,d(n.$t("components.form.hint.remember_me")),1)]),_:1})]),s[8]||(s[8]=o("div",{class:"py-2"},null,-1)),o("div",Te,[r(e(f),{name:"oneLogin",type:"checkbox","checked-value":!0,"unchecked-value":!1},{default:t(({field:l,errorMessage:i,errors:m})=>{var p;return[o("div",Ae,[r(U,b({"model-value":(p=e(a).user)==null?void 0:p.oneLogin,name:"oneLogin"},l,{color:"#df2a4c",type:"checkbox",error:m.length>0,"error-messages":i,"hide-details":"",onChange:Q}),null,16,["model-value","error","error-messages"]),o("label",Be,d(n.$t("components.form.label.one_login")),1)])]}),_:1}),r(W,{variant:"tonal",color:"#df2a4c"},{prepend:t(()=>[r(G,{color:"#df2a4c",size:"20",class:"mt-1"},{default:t(()=>[M(d(e(j)),1)]),_:1})]),default:t(()=>[o("span",Oe,d(n.$t("components.form.hint.one_login")),1)]),_:1})]),s[9]||(s[9]=o("div",{class:"py-2"},null,-1))])]),o("div",{class:E(["flex flex-row my-5",{"mr-3":e(T)}])},[r(H,{class:"ml-auto mr-2 text-color bg-color-lighten",elevation:"0",tonal:"",style:{border:"1px solid rgba(var(--border-rgb), 0.75)"},loading:e(_),onClick:ue(X,["prevent"])},{loader:t(()=>[r(q,{class:"text-color",size:"14",width:"2",indeterminate:""})]),default:t(()=>[M(d(n.$t("components.form.button.cancel")),1)]),_:1},8,["loading"]),r(H,{class:E(["text-white bg-color-primary",{"mr-2":e(T)}]),loading:e(_),elevation:"0",tonal:"",style:{border:"1px solid var(--color-primary-darken-2)"},type:"submit"},{loader:t(()=>[r(q,{color:"#fff",size:"14",width:"2",indeterminate:""})]),default:t(()=>[M(d(n.$t("components.form.button.save")),1)]),_:1},8,["loading","class"])],2)]}),_:1},8,["validation-schema"])}}}),ps=te(Pe,[["__scopeId","data-v-cafc8a1b"]]);export{ps as default};
|