@camera.ui/server 0.0.14-test.7 → 0.0.14-test.8
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.95ynO-KV.0.0.14-test.7.js → @tanstack.CEN6a4k4.0.0.14-test.8.js} +1 -1
- package/dist/interface/{@vee-validate.BI4yTf6A.0.0.14-test.7.js → @vee-validate.B1gWs4un.0.0.14-test.8.js} +1 -1
- package/dist/interface/{@vueform.DmAKvw8g.0.0.14-test.7.js → @vueform.Cm2d2h-o.0.0.14-test.8.js} +1 -1
- package/dist/interface/{@vueuse.D-kvqIBg.0.0.14-test.7.js → @vueuse.Dlqgp-w1.0.0.14-test.8.js} +1 -1
- package/dist/interface/{Account.CKGX7sS0.0.0.14-test.7.js → Account.CrweQJlo.0.0.14-test.8.js} +1 -1
- package/dist/interface/{Adminpanel.BBI6N6Qs.0.0.14-test.7.js → Adminpanel.DqGT-1k4.0.0.14-test.8.js} +2 -2
- package/dist/interface/{Appearance.Bd8mTnAa.0.0.14-test.7.js → Appearance.Hj5Yb1ak.0.0.14-test.8.js} +1 -1
- package/dist/interface/{Backup.S0XNgkD9.0.0.14-test.7.js → Backup.D1052gK1.0.0.14-test.8.js} +1 -1
- package/dist/interface/{Camera.CsxPTsVy.0.0.14-test.7.js → Camera.Dq5uUUmI.0.0.14-test.8.js} +1 -1
- package/dist/interface/{Cameras.D94iNSKU.0.0.14-test.7.js → Cameras.B7ddRLEX.0.0.14-test.8.js} +1 -1
- package/dist/interface/{Camview.D_8AiuV-.0.0.14-test.7.js → Camview.D6sNtRsi.0.0.14-test.8.js} +1 -1
- package/dist/interface/{Config.DHIHNtV5.0.0.14-test.7.js → Config.71zp8_7o.0.0.14-test.8.js} +1 -1
- package/dist/interface/{Console.CUxf3HTJ.0.0.14-test.7.js → Console.BOJh4_sX.0.0.14-test.8.js} +1 -1
- package/dist/interface/{FirstSteps.DcDCwG_Y.0.0.14-test.7.js → FirstSteps.D-o6SUSa.0.0.14-test.8.js} +1 -1
- package/dist/interface/{NewCamera.Br7PsfdN.0.0.14-test.7.js → NewCamera.DC5ggMZ0.0.0.14-test.8.js} +1 -1
- package/dist/interface/{Plugin.BwyaeYNw.0.0.14-test.7.js → Plugin.BEC17TFx.0.0.14-test.8.js} +1 -1
- package/dist/interface/{Plugins.Cprqueq6.0.0.14-test.7.js → Plugins.C7OSPwHu.0.0.14-test.8.js} +1 -1
- package/dist/interface/Recordings.C1SCcRUb.0.0.14-test.8.js +1 -0
- package/dist/interface/Recordings.DFhOe4PT.0.0.14-test.8.js +1 -0
- package/dist/interface/{Settings.B6Fkp6qG.0.0.14-test.7.js → Settings.CihErPnV.0.0.14-test.8.js} +1 -1
- package/dist/interface/{System.DOtl_WGC.0.0.14-test.7.js → System.GNuLdkC8.0.0.14-test.8.js} +1 -1
- package/dist/interface/{User.CbGo9fQz.0.0.14-test.7.js → User.CP-UN9BY.0.0.14-test.8.js} +1 -1
- package/dist/interface/{VConfigEditor.vue_vue_type_script_setup_true_lang.BvioTT0H.0.0.14-test.7.js → VConfigEditor.vue_vue_type_script_setup_true_lang.Djbrm8M0.0.0.14-test.8.js} +2 -2
- package/dist/interface/{VConsole.DYU7CGvW.0.0.14-test.7.js → VConsole.DYxSI5WZ.0.0.14-test.8.js} +1 -1
- package/dist/interface/{VPlayer.txcU2T8J.0.0.14-test.7.js → VPlayer.De4chpqV.0.0.14-test.8.js} +1 -1
- package/dist/interface/{VPluginCard.lhlK9PTK.0.0.14-test.7.js → VPluginCard.D091nACS.0.0.14-test.8.js} +1 -1
- package/dist/interface/{ace-builds.BXpV2kth.0.0.14-test.7.js → ace-builds.qo7jHZVf.0.0.14-test.8.js} +1 -1
- package/dist/interface/{dnd-core.BUu5lOE6.0.0.14-test.7.js → dnd-core.DGlBBcx8.0.0.14-test.8.js} +1 -1
- package/dist/interface/{draggabilly.RoqJJx2Y.0.0.14-test.7.js → draggabilly.D232zztK.0.0.14-test.8.js} +1 -1
- package/dist/interface/{engine.io-client.tlhXdmt0.0.0.14-test.7.js → engine.io-client.BwNOFMQY.0.0.14-test.8.js} +1 -1
- package/dist/interface/{ev-emitter.UQyxALXN.0.0.14-test.7.js → ev-emitter.CfLOt-3p.0.0.14-test.8.js} +1 -1
- package/dist/interface/{fast-deep-equal.D0p_XnDo.0.0.14-test.7.js → fast-deep-equal.cMGmLqfp.0.0.14-test.8.js} +1 -1
- package/dist/interface/{highlight.js.iAduO20a.0.0.14-test.7.js → highlight.js.lYuI7WoP.0.0.14-test.8.js} +1 -1
- package/dist/interface/index.html +33 -33
- package/dist/interface/{linkify-it.Dxwak6Qy.0.0.14-test.7.js → linkify-it.CShhg1MA.0.0.14-test.8.js} +1 -1
- package/dist/interface/{main.CGIRFec_.0.0.14-test.7.js → main.HFLkPczd.0.0.14-test.8.js} +3 -3
- package/dist/interface/{markdown-it.DjKtgpI4.0.0.14-test.7.js → markdown-it.VzoriHTT.0.0.14-test.8.js} +1 -1
- package/dist/interface/{nprogress.4e5pI4MI.0.0.14-test.7.js → nprogress.CxN4JN9q.0.0.14-test.8.js} +1 -1
- package/dist/interface/{pinia.CBRT72A7.0.0.14-test.7.js → pinia.Ca3uWOFQ.0.0.14-test.8.js} +1 -1
- package/dist/interface/{plugins.C4U36F5T.0.0.14-test.7.js → plugins.TUp1uctX.0.0.14-test.8.js} +1 -1
- package/dist/interface/{qrcode.DUxxDOHq.0.0.14-test.7.js → qrcode.Bwtigvqd.0.0.14-test.8.js} +1 -1
- package/dist/interface/{react-dnd-touch-backend.BWVreRXd.0.0.14-test.7.js → react-dnd-touch-backend.DyDgbNbK.0.0.14-test.8.js} +1 -1
- package/dist/interface/{rxjs.BNxQ14T4.0.0.14-test.7.js → rxjs.BVPfvhKU.0.0.14-test.8.js} +1 -1
- package/dist/interface/{socket.io-client.DI5dqh_6.0.0.14-test.7.js → socket.io-client.8psAvb-i.0.0.14-test.8.js} +1 -1
- package/dist/interface/{socket.io-parser.COPYIAh5.0.0.14-test.7.js → socket.io-parser.C9mHhdq2.0.0.14-test.8.js} +1 -1
- package/dist/interface/sw.js +1 -1
- package/dist/interface/{system.DS68u2yI.0.0.14-test.7.js → system.A8q_Qmef.0.0.14-test.8.js} +1 -1
- package/dist/interface/{ui.aUX53cxm.0.0.14-test.7.js → ui.CWt12BwK.0.0.14-test.8.js} +1 -1
- package/dist/interface/{unidragger.CA6R8Ae0.0.0.14-test.7.js → unidragger.alU8AluY.0.0.14-test.8.js} +1 -1
- package/dist/interface/{v-calendar.CvGU1yiS.0.0.14-test.7.js → v-calendar.CNRVgVKX.0.0.14-test.8.js} +1 -1
- package/dist/interface/{vee-validate.YGaAfkaw.0.0.14-test.7.js → vee-validate.D-fJ-yom.0.0.14-test.8.js} +1 -1
- package/dist/interface/{vue-i18n.B6VBY-ap.0.0.14-test.7.js → vue-i18n.CtU7u0LB.0.0.14-test.8.js} +1 -1
- package/dist/interface/{vue-inline-svg.DW_CU_7T.0.0.14-test.7.js → vue-inline-svg.C1whQ_4v.0.0.14-test.8.js} +1 -1
- package/dist/interface/{vue-router.DotiXocJ.0.0.14-test.7.js → vue-router.L_2NU8Dj.0.0.14-test.8.js} +1 -1
- package/dist/interface/{vue3-apexcharts.C8lvjPGj.0.0.14-test.7.js → vue3-apexcharts.BJDuzr8x.0.0.14-test.8.js} +1 -1
- package/dist/interface/{vue3-dnd.BjqYBJ1z.0.0.14-test.7.js → vue3-dnd.DuHp9GWX.0.0.14-test.8.js} +1 -1
- package/dist/interface/{vue3-toastify.Cn6SZf8I.0.0.14-test.7.js → vue3-toastify.B7UO00zu.0.0.14-test.8.js} +1 -1
- package/dist/interface/{vuetify.DNHFZqZp.0.0.14-test.7.js → vuetify.CqQaXzQw.0.0.14-test.8.js} +1 -1
- package/dist/server/package.json +1 -1
- package/package.json +1 -1
- package/upgrade-server.sh +20 -1
- package/dist/interface/Recordings.CZAM1xyt.0.0.14-test.7.js +0 -1
- package/dist/interface/Recordings.j1X9uCkW.0.0.14-test.7.js +0 -1
- /package/dist/interface/{@babel.l0sNRNKZ.0.0.14-test.7.js → @babel.l0sNRNKZ.0.0.14-test.8.js} +0 -0
- /package/dist/interface/{@intlify.YW_pt133.0.0.14-test.7.js → @intlify.YW_pt133.0.0.14-test.8.js} +0 -0
- /package/dist/interface/{@mdi.jq8isxax.0.0.14-test.7.js → @mdi.jq8isxax.0.0.14-test.8.js} +0 -0
- /package/dist/interface/{@popperjs.BQBsAJpH.0.0.14-test.7.js → @popperjs.BQBsAJpH.0.0.14-test.8.js} +0 -0
- /package/dist/interface/{@react-dnd.CcwRs9xb.0.0.14-test.7.js → @react-dnd.CcwRs9xb.0.0.14-test.8.js} +0 -0
- /package/dist/interface/{@socket.io.Dkula2eQ.0.0.14-test.7.js → @socket.io.Dkula2eQ.0.0.14-test.8.js} +0 -0
- /package/dist/interface/{@vue.CIFymae3.0.0.14-test.7.js → @vue.CIFymae3.0.0.14-test.8.js} +0 -0
- /package/dist/interface/{@xterm.CjiROg_B.0.0.14-test.7.js → @xterm.xg2Y-IKc.0.0.14-test.8.js} +0 -0
- /package/dist/interface/assets/{@vueform.0.0.14-test.7.h7tNX9p6.css → @vueform.0.0.14-test.8.h7tNX9p6.css} +0 -0
- /package/dist/interface/assets/{@xterm.0.0.14-test.7.CGrrDQr5.css → @xterm.0.0.14-test.8.CGrrDQr5.css} +0 -0
- /package/dist/interface/assets/{Account.0.0.14-test.7.DlOUWknb.css → Account.0.0.14-test.8.DlOUWknb.css} +0 -0
- /package/dist/interface/assets/{Adminpanel.0.0.14-test.7.BHh3IMeu.css → Adminpanel.0.0.14-test.8.BHh3IMeu.css} +0 -0
- /package/dist/interface/assets/{Backup.0.0.14-test.7.BIwaSlv3.css → Backup.0.0.14-test.8.BIwaSlv3.css} +0 -0
- /package/dist/interface/assets/{Camera.0.0.14-test.7.B5hAZmeQ.css → Camera.0.0.14-test.8.B5hAZmeQ.css} +0 -0
- /package/dist/interface/assets/{Cameras.0.0.14-test.7.D7bnvH42.css → Cameras.0.0.14-test.8.D7bnvH42.css} +0 -0
- /package/dist/interface/assets/{Camview.0.0.14-test.7.cgjDTjXy.css → Camview.0.0.14-test.8.cgjDTjXy.css} +0 -0
- /package/dist/interface/assets/{Config.0.0.14-test.7.CncRTcjC.css → Config.0.0.14-test.8.CncRTcjC.css} +0 -0
- /package/dist/interface/assets/{Console.0.0.14-test.7.DWrfRWs9.css → Console.0.0.14-test.8.DWrfRWs9.css} +0 -0
- /package/dist/interface/assets/{FirstSteps.0.0.14-test.7.LZWhAsRR.css → FirstSteps.0.0.14-test.8.LZWhAsRR.css} +0 -0
- /package/dist/interface/assets/{NewCamera.0.0.14-test.7.DJ3tUBT_.css → NewCamera.0.0.14-test.8.DJ3tUBT_.css} +0 -0
- /package/dist/interface/assets/{Plugin.0.0.14-test.7.BGZE7hpr.css → Plugin.0.0.14-test.8.BGZE7hpr.css} +0 -0
- /package/dist/interface/assets/{Plugins.0.0.14-test.7.Cwu0aGUO.css → Plugins.0.0.14-test.8.Cwu0aGUO.css} +0 -0
- /package/dist/interface/assets/{Settings.0.0.14-test.7.BfSP_zcY.css → Settings.0.0.14-test.8.BfSP_zcY.css} +0 -0
- /package/dist/interface/assets/{User.0.0.14-test.7.BHWFyck9.css → User.0.0.14-test.8.BHWFyck9.css} +0 -0
- /package/dist/interface/assets/{VConsole.0.0.14-test.7.BZT1WyS-.css → VConsole.0.0.14-test.8.BZT1WyS-.css} +0 -0
- /package/dist/interface/assets/{VPlayer.0.0.14-test.7.H4sGdlHU.css → VPlayer.0.0.14-test.8.H4sGdlHU.css} +0 -0
- /package/dist/interface/assets/{VPluginCard.0.0.14-test.7.C2GrhESv.css → VPluginCard.0.0.14-test.8.C2GrhESv.css} +0 -0
- /package/dist/interface/assets/{highlight.0.0.14-test.7.DgoK_Xib.css → highlight.0.0.14-test.8.DgoK_Xib.css} +0 -0
- /package/dist/interface/assets/{logo-256.0.0.14-test.7.BCQk9H1-.png → logo-256.0.0.14-test.8.BCQk9H1-.png} +0 -0
- /package/dist/interface/assets/{logo-512.0.0.14-test.7.DLKVOU2S.png → logo-512.0.0.14-test.8.DLKVOU2S.png} +0 -0
- /package/dist/interface/assets/{logo.0.0.14-test.7.DmEiRk0z.png → logo.0.0.14-test.8.DmEiRk0z.png} +0 -0
- /package/dist/interface/assets/{main.0.0.14-test.7.BPl82sqN.css → main.0.0.14-test.8.BPl82sqN.css} +0 -0
- /package/dist/interface/assets/{mode-json.0.0.14-test.7.Br7xisR1.js → mode-json.0.0.14-test.8.Br7xisR1.js} +0 -0
- /package/dist/interface/assets/{mode-yaml.0.0.14-test.7.CIYL8U3d.js → mode-yaml.0.0.14-test.8.CIYL8U3d.js} +0 -0
- /package/dist/interface/assets/{v-calendar.0.0.14-test.7.CtSuDYZU.css → v-calendar.0.0.14-test.8.CtSuDYZU.css} +0 -0
- /package/dist/interface/assets/{vue3-toastify.0.0.14-test.7.DTY1DMRs.css → vue3-toastify.0.0.14-test.8.DTY1DMRs.css} +0 -0
- /package/dist/interface/assets/{vuetify.0.0.14-test.7.DPyVfAPv.css → vuetify.0.0.14-test.8.DPyVfAPv.css} +0 -0
- /package/dist/interface/{axios.BI2i94Vb.0.0.14-test.7.js → axios.BI2i94Vb.0.0.14-test.8.js} +0 -0
- /package/dist/interface/{compare-versions.DqEOhma6.0.0.14-test.7.js → compare-versions.DqEOhma6.0.0.14-test.8.js} +0 -0
- /package/dist/interface/{dijkstrajs.D_NXgYpA.0.0.14-test.7.js → dijkstrajs.D_NXgYpA.0.0.14-test.8.js} +0 -0
- /package/dist/interface/{engine.io-parser.BiEtp6m2.0.0.14-test.7.js → engine.io-parser.BiEtp6m2.0.0.14-test.8.js} +0 -0
- /package/dist/interface/{entities.C20TfXL6.0.0.14-test.7.js → entities.C20TfXL6.0.0.14-test.8.js} +0 -0
- /package/dist/interface/{get-size.D1dS-IaP.0.0.14-test.7.js → get-size.D1dS-IaP.0.0.14-test.8.js} +0 -0
- /package/dist/interface/{mdurl.k9Sl0PQj.0.0.14-test.7.js → mdurl.k9Sl0PQj.0.0.14-test.8.js} +0 -0
- /package/dist/interface/{punycode.js.Dj65hjkv.0.0.14-test.7.js → punycode.js.Dj65hjkv.0.0.14-test.8.js} +0 -0
- /package/dist/interface/{react-dnd-html5-backend.1HQjlkwI.0.0.14-test.7.js → react-dnd-html5-backend.1HQjlkwI.0.0.14-test.8.js} +0 -0
- /package/dist/interface/{redux.CuxFRhX_.0.0.14-test.7.js → redux.CuxFRhX_.0.0.14-test.8.js} +0 -0
- /package/dist/interface/{tslib.9k7AwCpt.0.0.14-test.7.js → tslib.9k7AwCpt.0.0.14-test.8.js} +0 -0
- /package/dist/interface/{uc.micro.kMc2yuuw.0.0.14-test.7.js → uc.micro.kMc2yuuw.0.0.14-test.8.js} +0 -0
- /package/dist/interface/{utils.BvINh1mj.0.0.14-test.7.js → utils.BvINh1mj.0.0.14-test.8.js} +0 -0
- /package/dist/interface/{uuid.DvF23Exx.0.0.14-test.7.js → uuid.DvF23Exx.0.0.14-test.8.js} +0 -0
- /package/dist/interface/{vue.l0sNRNKZ.0.0.14-test.7.js → vue.l0sNRNKZ.0.0.14-test.8.js} +0 -0
- /package/dist/interface/{zod.BaF2dDCd.0.0.14-test.7.js → zod.BaF2dDCd.0.0.14-test.8.js} +0 -0
package/dist/interface/{@tanstack.95ynO-KV.0.0.14-test.7.js → @tanstack.CEN6a4k4.0.0.14-test.8.js}
RENAMED
|
@@ -1 +1 @@
|
|
|
1
|
-
var he=s=>{throw TypeError(s)};var Gt=(s,t,e)=>t.has(s)||he("Cannot "+e);var r=(s,t,e)=>(Gt(s,t,"read from private field"),e?e.call(s):t.get(s)),f=(s,t,e)=>t.has(s)?he("Cannot add the same private member more than once"):t instanceof WeakSet?t.add(s):t.set(s,e),h=(s,t,e,i)=>(Gt(s,t,"write to private field"),i?i.call(s,e):t.set(s,e),e),y=(s,t,e)=>(Gt(s,t,"access private method"),e);var xt=(s,t,e,i)=>({set _(n){h(s,t,n,e)},get _(){return r(s,t,i)}});import{i as Fe,u as ze,h as Ye,a as Je,r as Xe,c as De,b as Ee,w as mt,o as Me,t as Ae,d as Ue}from"./@vue.CIFymae3.0.0.14-test.7.js";var At=class{constructor(){this.listeners=new Set,this.subscribe=this.subscribe.bind(this)}subscribe(s){return this.listeners.add(s),this.onSubscribe(),()=>{this.listeners.delete(s),this.onUnsubscribe()}}hasListeners(){return this.listeners.size>0}onSubscribe(){}onUnsubscribe(){}},yt=typeof window>"u"||"Deno"in globalThis;function L(){}function Ze(s,t){return typeof s=="function"?s(t):s}function Bt(s){return typeof s=="number"&&s>=0&&s!==1/0}function qe(s,t){return Math.max(s+(t||0)-Date.now(),0)}function vt(s,t){return typeof s=="function"?s(t):s}function N(s,t){return typeof s=="function"?s(t):s}function ce(s,t){const{type:e="all",exact:i,fetchStatus:n,predicate:a,queryKey:u,stale:l}=s;if(u){if(i){if(t.queryHash!==ae(u,t.options))return!1}else if(!qt(t.queryKey,u))return!1}if(e!=="all"){const O=t.isActive();if(e==="active"&&!O||e==="inactive"&&O)return!1}return!(typeof l=="boolean"&&t.isStale()!==l||n&&n!==t.state.fetchStatus||a&&!a(t))}function le(s,t){const{exact:e,status:i,predicate:n,mutationKey:a}=s;if(a){if(!t.options.mutationKey)return!1;if(e){if(pt(t.options.mutationKey)!==pt(a))return!1}else if(!qt(t.options.mutationKey,a))return!1}return!(i&&t.state.status!==i||n&&!n(t))}function ae(s,t){return((t==null?void 0:t.queryKeyHashFn)||pt)(s)}function pt(s){return JSON.stringify(s,(t,e)=>$t(e)?Object.keys(e).sort().reduce((i,n)=>(i[n]=e[n],i),{}):e)}function qt(s,t){return s===t?!0:typeof s!=typeof t?!1:s&&t&&typeof s=="object"&&typeof t=="object"?!Object.keys(t).some(e=>!qt(s[e],t[e])):!1}function Ie(s,t){if(s===t)return s;const e=fe(s)&&fe(t);if(e||$t(s)&&$t(t)){const i=e?s:Object.keys(s),n=i.length,a=e?t:Object.keys(t),u=a.length,l=e?[]:{};let O=0;for(let v=0;v<u;v++){const p=e?v:a[v];(!e&&i.includes(p)||e)&&s[p]===void 0&&t[p]===void 0?(l[p]=void 0,O++):(l[p]=Ie(s[p],t[p]),l[p]===s[p]&&s[p]!==void 0&&O++)}return n===u&&O===n?s:l}return t}function Ht(s,t){if(!t||Object.keys(s).length!==Object.keys(t).length)return!1;for(const e in s)if(s[e]!==t[e])return!1;return!0}function fe(s){return Array.isArray(s)&&s.length===Object.keys(s).length}function $t(s){if(!de(s))return!1;const t=s.constructor;if(t===void 0)return!0;const e=t.prototype;return!(!de(e)||!e.hasOwnProperty("isPrototypeOf")||Object.getPrototypeOf(s)!==Object.prototype)}function de(s){return Object.prototype.toString.call(s)==="[object Object]"}function ts(s){return new Promise(t=>{setTimeout(t,s)})}function Vt(s,t,e){return typeof e.structuralSharing=="function"?e.structuralSharing(s,t):e.structuralSharing!==!1?Ie(s,t):t}function es(s,t,e=0){const i=[...s,t];return e&&i.length>e?i.slice(1):i}function ss(s,t,e=0){const i=[t,...s];return e&&i.length>e?i.slice(0,-1):i}var Te=Symbol();function je(s,t){return!s.queryFn&&(t!=null&&t.initialPromise)?()=>t.initialPromise:!s.queryFn||s.queryFn===Te?()=>Promise.reject(new Error(`Missing queryFn: '${s.queryHash}'`)):s.queryFn}var ut,Z,bt,ve,is=(ve=class extends At{constructor(){super();f(this,ut);f(this,Z);f(this,bt);h(this,bt,t=>{if(!yt&&window.addEventListener){const e=()=>t();return window.addEventListener("visibilitychange",e,!1),()=>{window.removeEventListener("visibilitychange",e)}}})}onSubscribe(){r(this,Z)||this.setEventListener(r(this,bt))}onUnsubscribe(){var t;this.hasListeners()||((t=r(this,Z))==null||t.call(this),h(this,Z,void 0))}setEventListener(t){var e;h(this,bt,t),(e=r(this,Z))==null||e.call(this),h(this,Z,t(i=>{typeof i=="boolean"?this.setFocused(i):this.onFocus()}))}setFocused(t){r(this,ut)!==t&&(h(this,ut,t),this.onFocus())}onFocus(){const t=this.isFocused();this.listeners.forEach(e=>{e(t)})}isFocused(){var t;return typeof r(this,ut)=="boolean"?r(this,ut):((t=globalThis.document)==null?void 0:t.visibilityState)!=="hidden"}},ut=new WeakMap,Z=new WeakMap,bt=new WeakMap,ve),ue=new is,gt,tt,Ot,be,rs=(be=class extends At{constructor(){super();f(this,gt,!0);f(this,tt);f(this,Ot);h(this,Ot,t=>{if(!yt&&window.addEventListener){const e=()=>t(!0),i=()=>t(!1);return window.addEventListener("online",e,!1),window.addEventListener("offline",i,!1),()=>{window.removeEventListener("online",e),window.removeEventListener("offline",i)}}})}onSubscribe(){r(this,tt)||this.setEventListener(r(this,Ot))}onUnsubscribe(){var t;this.hasListeners()||((t=r(this,tt))==null||t.call(this),h(this,tt,void 0))}setEventListener(t){var e;h(this,Ot,t),(e=r(this,tt))==null||e.call(this),h(this,tt,t(this.setOnline.bind(this)))}setOnline(t){r(this,gt)!==t&&(h(this,gt,t),this.listeners.forEach(i=>{i(t)}))}isOnline(){return r(this,gt)}},gt=new WeakMap,tt=new WeakMap,Ot=new WeakMap,be),Nt=new rs;function ns(s){return Math.min(1e3*2**s,3e4)}function Ke(s){return(s??"online")==="online"?Nt.isOnline():!0}var xe=class extends Error{constructor(s){super("CancelledError"),this.revert=s==null?void 0:s.revert,this.silent=s==null?void 0:s.silent}};function _t(s){return s instanceof xe}function Le(s){let t=!1,e=0,i=!1,n,a,u;const l=new Promise((C,S)=>{a=C,u=S}),O=C=>{var S;i||(P(new xe(C)),(S=s.abort)==null||S.call(s))},v=()=>{t=!0},p=()=>{t=!1},c=()=>ue.isFocused()&&(s.networkMode==="always"||Nt.isOnline())&&s.canRun(),o=()=>Ke(s.networkMode)&&s.canRun(),d=C=>{var S;i||(i=!0,(S=s.onSuccess)==null||S.call(s,C),n==null||n(),a(C))},P=C=>{var S;i||(i=!0,(S=s.onError)==null||S.call(s,C),n==null||n(),u(C))},F=()=>new Promise(C=>{var S;n=Q=>{(i||c())&&C(Q)},(S=s.onPause)==null||S.call(s)}).then(()=>{var C;n=void 0,i||(C=s.onContinue)==null||C.call(s)}),D=()=>{if(i)return;let C;const S=e===0?s.initialPromise:void 0;try{C=S??s.fn()}catch(Q){C=Promise.reject(Q)}Promise.resolve(C).then(d).catch(Q=>{var g;if(i)return;const E=s.retry??(yt?0:3),M=s.retryDelay??ns,G=typeof M=="function"?M(e,Q):M,W=E===!0||typeof E=="number"&&e<E||typeof E=="function"&&E(e,Q);if(t||!W){P(Q);return}e++,(g=s.onFail)==null||g.call(s,e,Q),ts(G).then(()=>c()?void 0:F()).then(()=>{t?P(Q):D()})})};return{promise:l,cancel:O,continue:()=>(n==null||n(),l),cancelRetry:v,continueRetry:p,canStart:o,start:()=>(o()?D():F().then(D),l)}}function as(){let s=[],t=0,e=o=>{o()},i=o=>{o()},n=o=>setTimeout(o,0);const a=o=>{n=o},u=o=>{let d;t++;try{d=o()}finally{t--,t||v()}return d},l=o=>{t?s.push(o):n(()=>{e(o)})},O=o=>(...d)=>{l(()=>{o(...d)})},v=()=>{const o=s;s=[],o.length&&n(()=>{i(()=>{o.forEach(d=>{e(d)})})})};return{batch:u,batchCalls:O,schedule:l,setNotifyFunction:o=>{e=o},setBatchNotifyFunction:o=>{i=o},setScheduler:a}}var A=as(),ot,ge,ke=(ge=class{constructor(){f(this,ot)}destroy(){this.clearGcTimeout()}scheduleGc(){this.clearGcTimeout(),Bt(this.gcTime)&&h(this,ot,setTimeout(()=>{this.optionalRemove()},this.gcTime))}updateGcTime(s){this.gcTime=Math.max(this.gcTime||0,s??(yt?1/0:5*60*1e3))}clearGcTimeout(){r(this,ot)&&(clearTimeout(r(this,ot)),h(this,ot,void 0))}},ot=new WeakMap,ge),Ct,wt,x,U,It,ht,H,z,Oe,us=(Oe=class extends ke{constructor(t){super();f(this,H);f(this,Ct);f(this,wt);f(this,x);f(this,U);f(this,It);f(this,ht);h(this,ht,!1),h(this,It,t.defaultOptions),this.setOptions(t.options),this.observers=[],h(this,x,t.cache),this.queryKey=t.queryKey,this.queryHash=t.queryHash,h(this,Ct,os(this.options)),this.state=t.state??r(this,Ct),this.scheduleGc()}get meta(){return this.options.meta}get promise(){var t;return(t=r(this,U))==null?void 0:t.promise}setOptions(t){this.options={...r(this,It),...t},this.updateGcTime(this.options.gcTime)}optionalRemove(){!this.observers.length&&this.state.fetchStatus==="idle"&&r(this,x).remove(this)}setData(t,e){const i=Vt(this.state.data,t,this.options);return y(this,H,z).call(this,{data:i,type:"success",dataUpdatedAt:e==null?void 0:e.updatedAt,manual:e==null?void 0:e.manual}),i}setState(t,e){y(this,H,z).call(this,{type:"setState",state:t,setStateOptions:e})}cancel(t){var i,n;const e=(i=r(this,U))==null?void 0:i.promise;return(n=r(this,U))==null||n.cancel(t),e?e.then(L).catch(L):Promise.resolve()}destroy(){super.destroy(),this.cancel({silent:!0})}reset(){this.destroy(),this.setState(r(this,Ct))}isActive(){return this.observers.some(t=>N(t.options.enabled,this)!==!1)}isDisabled(){return this.getObserversCount()>0&&!this.isActive()}isStale(){return this.state.isInvalidated?!0:this.getObserversCount()>0?this.observers.some(t=>t.getCurrentResult().isStale):this.state.data===void 0}isStaleByTime(t=0){return this.state.isInvalidated||this.state.data===void 0||!qe(this.state.dataUpdatedAt,t)}onFocus(){var e;const t=this.observers.find(i=>i.shouldFetchOnWindowFocus());t==null||t.refetch({cancelRefetch:!1}),(e=r(this,U))==null||e.continue()}onOnline(){var e;const t=this.observers.find(i=>i.shouldFetchOnReconnect());t==null||t.refetch({cancelRefetch:!1}),(e=r(this,U))==null||e.continue()}addObserver(t){this.observers.includes(t)||(this.observers.push(t),this.clearGcTimeout(),r(this,x).notify({type:"observerAdded",query:this,observer:t}))}removeObserver(t){this.observers.includes(t)&&(this.observers=this.observers.filter(e=>e!==t),this.observers.length||(r(this,U)&&(r(this,ht)?r(this,U).cancel({revert:!0}):r(this,U).cancelRetry()),this.scheduleGc()),r(this,x).notify({type:"observerRemoved",query:this,observer:t}))}getObserversCount(){return this.observers.length}invalidate(){this.state.isInvalidated||y(this,H,z).call(this,{type:"invalidate"})}fetch(t,e){var O,v,p;if(this.state.fetchStatus!=="idle"){if(this.state.data!==void 0&&(e!=null&&e.cancelRefetch))this.cancel({silent:!0});else if(r(this,U))return r(this,U).continueRetry(),r(this,U).promise}if(t&&this.setOptions(t),!this.options.queryFn){const c=this.observers.find(o=>o.options.queryFn);c&&this.setOptions(c.options)}const i=new AbortController,n=c=>{Object.defineProperty(c,"signal",{enumerable:!0,get:()=>(h(this,ht,!0),i.signal)})},a=()=>{const c=je(this.options,e),o={queryKey:this.queryKey,meta:this.meta};return n(o),h(this,ht,!1),this.options.persister?this.options.persister(c,o,this):c(o)},u={fetchOptions:e,options:this.options,queryKey:this.queryKey,state:this.state,fetchFn:a};n(u),(O=this.options.behavior)==null||O.onFetch(u,this),h(this,wt,this.state),(this.state.fetchStatus==="idle"||this.state.fetchMeta!==((v=u.fetchOptions)==null?void 0:v.meta))&&y(this,H,z).call(this,{type:"fetch",meta:(p=u.fetchOptions)==null?void 0:p.meta});const l=c=>{var o,d,P,F;_t(c)&&c.silent||y(this,H,z).call(this,{type:"error",error:c}),_t(c)||((d=(o=r(this,x).config).onError)==null||d.call(o,c,this),(F=(P=r(this,x).config).onSettled)==null||F.call(P,this.state.data,c,this)),this.isFetchingOptimistic||this.scheduleGc(),this.isFetchingOptimistic=!1};return h(this,U,Le({initialPromise:e==null?void 0:e.initialPromise,fn:u.fetchFn,abort:i.abort.bind(i),onSuccess:c=>{var o,d,P,F;if(c===void 0){l(new Error(`${this.queryHash} data is undefined`));return}this.setData(c),(d=(o=r(this,x).config).onSuccess)==null||d.call(o,c,this),(F=(P=r(this,x).config).onSettled)==null||F.call(P,c,this.state.error,this),this.isFetchingOptimistic||this.scheduleGc(),this.isFetchingOptimistic=!1},onError:l,onFail:(c,o)=>{y(this,H,z).call(this,{type:"failed",failureCount:c,error:o})},onPause:()=>{y(this,H,z).call(this,{type:"pause"})},onContinue:()=>{y(this,H,z).call(this,{type:"continue"})},retry:u.options.retry,retryDelay:u.options.retryDelay,networkMode:u.options.networkMode,canRun:()=>!0})),r(this,U).start()}},Ct=new WeakMap,wt=new WeakMap,x=new WeakMap,U=new WeakMap,It=new WeakMap,ht=new WeakMap,H=new WeakSet,z=function(t){const e=i=>{switch(t.type){case"failed":return{...i,fetchFailureCount:t.failureCount,fetchFailureReason:t.error};case"pause":return{...i,fetchStatus:"paused"};case"continue":return{...i,fetchStatus:"fetching"};case"fetch":return{...i,...He(i.data,this.options),fetchMeta:t.meta??null};case"success":return{...i,data:t.data,dataUpdateCount:i.dataUpdateCount+1,dataUpdatedAt:t.dataUpdatedAt??Date.now(),error:null,isInvalidated:!1,status:"success",...!t.manual&&{fetchStatus:"idle",fetchFailureCount:0,fetchFailureReason:null}};case"error":const n=t.error;return _t(n)&&n.revert&&r(this,wt)?{...r(this,wt),fetchStatus:"idle"}:{...i,error:n,errorUpdateCount:i.errorUpdateCount+1,errorUpdatedAt:Date.now(),fetchFailureCount:i.fetchFailureCount+1,fetchFailureReason:n,fetchStatus:"idle",status:"error"};case"invalidate":return{...i,isInvalidated:!0};case"setState":return{...i,...t.state}}};this.state=e(this.state),A.batch(()=>{this.observers.forEach(i=>{i.onQueryUpdate()}),r(this,x).notify({query:this,type:"updated",action:t})})},Oe);function He(s,t){return{fetchFailureCount:0,fetchFailureReason:null,fetchStatus:Ke(t.networkMode)?"fetching":"paused",...s===void 0&&{error:null,status:"pending"}}}function os(s){const t=typeof s.initialData=="function"?s.initialData():s.initialData,e=t!==void 0,i=e?typeof s.initialDataUpdatedAt=="function"?s.initialDataUpdatedAt():s.initialDataUpdatedAt:0;return{data:t,dataUpdateCount:0,dataUpdatedAt:e?i??Date.now():0,error:null,errorUpdateCount:0,errorUpdatedAt:0,fetchFailureCount:0,fetchFailureReason:null,fetchMeta:null,isInvalidated:!1,status:e?"success":"pending",fetchStatus:"idle"}}var _,Ce,Ne=(Ce=class extends At{constructor(e={}){super();f(this,_);this.config=e,h(this,_,new Map)}build(e,i,n){const a=i.queryKey,u=i.queryHash??ae(a,i);let l=this.get(u);return l||(l=new us({cache:this,queryKey:a,queryHash:u,options:e.defaultQueryOptions(i),state:n,defaultOptions:e.getQueryDefaults(a)}),this.add(l)),l}add(e){r(this,_).has(e.queryHash)||(r(this,_).set(e.queryHash,e),this.notify({type:"added",query:e}))}remove(e){const i=r(this,_).get(e.queryHash);i&&(e.destroy(),i===e&&r(this,_).delete(e.queryHash),this.notify({type:"removed",query:e}))}clear(){A.batch(()=>{this.getAll().forEach(e=>{this.remove(e)})})}get(e){return r(this,_).get(e)}getAll(){return[...r(this,_).values()]}find(e){const i={exact:!0,...e};return this.getAll().find(n=>ce(i,n))}findAll(e={}){const i=this.getAll();return Object.keys(e).length>0?i.filter(n=>ce(e,n)):i}notify(e){A.batch(()=>{this.listeners.forEach(i=>{i(e)})})}onFocus(){A.batch(()=>{this.getAll().forEach(e=>{e.onFocus()})})}onOnline(){A.batch(()=>{this.getAll().forEach(e=>{e.onOnline()})})}},_=new WeakMap,Ce),B,q,ct,$,X,we,hs=(we=class extends ke{constructor(t){super();f(this,$);f(this,B);f(this,q);f(this,ct);this.mutationId=t.mutationId,h(this,q,t.mutationCache),h(this,B,[]),this.state=t.state||Ge(),this.setOptions(t.options),this.scheduleGc()}setOptions(t){this.options=t,this.updateGcTime(this.options.gcTime)}get meta(){return this.options.meta}addObserver(t){r(this,B).includes(t)||(r(this,B).push(t),this.clearGcTimeout(),r(this,q).notify({type:"observerAdded",mutation:this,observer:t}))}removeObserver(t){h(this,B,r(this,B).filter(e=>e!==t)),this.scheduleGc(),r(this,q).notify({type:"observerRemoved",mutation:this,observer:t})}optionalRemove(){r(this,B).length||(this.state.status==="pending"?this.scheduleGc():r(this,q).remove(this))}continue(){var t;return((t=r(this,ct))==null?void 0:t.continue())??this.execute(this.state.variables)}async execute(t){var n,a,u,l,O,v,p,c,o,d,P,F,D,C,S,Q,E,M,G,W;h(this,ct,Le({fn:()=>this.options.mutationFn?this.options.mutationFn(t):Promise.reject(new Error("No mutationFn found")),onFail:(g,k)=>{y(this,$,X).call(this,{type:"failed",failureCount:g,error:k})},onPause:()=>{y(this,$,X).call(this,{type:"pause"})},onContinue:()=>{y(this,$,X).call(this,{type:"continue"})},retry:this.options.retry??0,retryDelay:this.options.retryDelay,networkMode:this.options.networkMode,canRun:()=>r(this,q).canRun(this)}));const e=this.state.status==="pending",i=!r(this,ct).canStart();try{if(!e){y(this,$,X).call(this,{type:"pending",variables:t,isPaused:i}),await((a=(n=r(this,q).config).onMutate)==null?void 0:a.call(n,t,this));const k=await((l=(u=this.options).onMutate)==null?void 0:l.call(u,t));k!==this.state.context&&y(this,$,X).call(this,{type:"pending",context:k,variables:t,isPaused:i})}const g=await r(this,ct).start();return await((v=(O=r(this,q).config).onSuccess)==null?void 0:v.call(O,g,t,this.state.context,this)),await((c=(p=this.options).onSuccess)==null?void 0:c.call(p,g,t,this.state.context)),await((d=(o=r(this,q).config).onSettled)==null?void 0:d.call(o,g,null,this.state.variables,this.state.context,this)),await((F=(P=this.options).onSettled)==null?void 0:F.call(P,g,null,t,this.state.context)),y(this,$,X).call(this,{type:"success",data:g}),g}catch(g){try{throw await((C=(D=r(this,q).config).onError)==null?void 0:C.call(D,g,t,this.state.context,this)),await((Q=(S=this.options).onError)==null?void 0:Q.call(S,g,t,this.state.context)),await((M=(E=r(this,q).config).onSettled)==null?void 0:M.call(E,void 0,g,this.state.variables,this.state.context,this)),await((W=(G=this.options).onSettled)==null?void 0:W.call(G,void 0,g,t,this.state.context)),g}finally{y(this,$,X).call(this,{type:"error",error:g})}}finally{r(this,q).runNext(this)}}},B=new WeakMap,q=new WeakMap,ct=new WeakMap,$=new WeakSet,X=function(t){const e=i=>{switch(t.type){case"failed":return{...i,failureCount:t.failureCount,failureReason:t.error};case"pause":return{...i,isPaused:!0};case"continue":return{...i,isPaused:!1};case"pending":return{...i,context:t.context,data:void 0,failureCount:0,failureReason:null,error:null,isPaused:t.isPaused,status:"pending",variables:t.variables,submittedAt:Date.now()};case"success":return{...i,data:t.data,failureCount:0,failureReason:null,error:null,status:"success",isPaused:!1};case"error":return{...i,data:void 0,error:t.error,failureCount:i.failureCount+1,failureReason:t.error,isPaused:!1,status:"error"}}};this.state=e(this.state),A.batch(()=>{r(this,B).forEach(i=>{i.onMutationUpdate(t)}),r(this,q).notify({mutation:this,type:"updated",action:t})})},we);function Ge(){return{context:void 0,data:void 0,error:null,failureCount:0,failureReason:null,isPaused:!1,status:"idle",variables:void 0,submittedAt:0}}var K,Tt,Qe,_e=(Qe=class extends At{constructor(e={}){super();f(this,K);f(this,Tt);this.config=e,h(this,K,new Map),h(this,Tt,Date.now())}build(e,i,n){const a=new hs({mutationCache:this,mutationId:++xt(this,Tt)._,options:e.defaultMutationOptions(i),state:n});return this.add(a),a}add(e){const i=Lt(e),n=r(this,K).get(i)??[];n.push(e),r(this,K).set(i,n),this.notify({type:"added",mutation:e})}remove(e){var n;const i=Lt(e);if(r(this,K).has(i)){const a=(n=r(this,K).get(i))==null?void 0:n.filter(u=>u!==e);a&&(a.length===0?r(this,K).delete(i):r(this,K).set(i,a))}this.notify({type:"removed",mutation:e})}canRun(e){var n;const i=(n=r(this,K).get(Lt(e)))==null?void 0:n.find(a=>a.state.status==="pending");return!i||i===e}runNext(e){var n;const i=(n=r(this,K).get(Lt(e)))==null?void 0:n.find(a=>a!==e&&a.state.isPaused);return(i==null?void 0:i.continue())??Promise.resolve()}clear(){A.batch(()=>{this.getAll().forEach(e=>{this.remove(e)})})}getAll(){return[...r(this,K).values()].flat()}find(e){const i={exact:!0,...e};return this.getAll().find(n=>le(i,n))}findAll(e={}){return this.getAll().filter(i=>le(e,i))}notify(e){A.batch(()=>{this.listeners.forEach(i=>{i(e)})})}resumePausedMutations(){const e=this.getAll().filter(i=>i.state.isPaused);return A.batch(()=>Promise.all(e.map(i=>i.continue().catch(L))))}},K=new WeakMap,Tt=new WeakMap,Qe);function Lt(s){var t;return((t=s.options.scope)==null?void 0:t.id)??String(s.mutationId)}function cs(s){return{onFetch:(t,e)=>{const i=async()=>{var P,F,D,C,S;const n=t.options,a=(D=(F=(P=t.fetchOptions)==null?void 0:P.meta)==null?void 0:F.fetchMore)==null?void 0:D.direction,u=((C=t.state.data)==null?void 0:C.pages)||[],l=((S=t.state.data)==null?void 0:S.pageParams)||[],O={pages:[],pageParams:[]};let v=!1;const p=Q=>{Object.defineProperty(Q,"signal",{enumerable:!0,get:()=>(t.signal.aborted?v=!0:t.signal.addEventListener("abort",()=>{v=!0}),t.signal)})},c=je(t.options,t.fetchOptions),o=async(Q,E,M)=>{if(v)return Promise.reject();if(E==null&&Q.pages.length)return Promise.resolve(Q);const G={queryKey:t.queryKey,pageParam:E,direction:M?"backward":"forward",meta:t.options.meta};p(G);const W=await c(G),{maxPages:g}=t.options,k=M?ss:es;return{pages:k(Q.pages,W,g),pageParams:k(Q.pageParams,E,g)}};let d;if(a&&u.length){const Q=a==="backward",E=Q?ls:ye,M={pages:u,pageParams:l},G=E(n,M);d=await o(M,G,Q)}else{d=await o(O,l[0]??n.initialPageParam);const Q=s??u.length;for(let E=1;E<Q;E++){const M=ye(n,d);if(M==null)break;d=await o(d,M)}}return d};t.options.persister?t.fetchFn=()=>{var n,a;return(a=(n=t.options).persister)==null?void 0:a.call(n,i,{queryKey:t.queryKey,meta:t.options.meta,signal:t.signal},e)}:t.fetchFn=i}}}function ye(s,{pages:t,pageParams:e}){const i=t.length-1;return t.length>0?s.getNextPageParam(t[i],t,e[i],e):void 0}function ls(s,{pages:t,pageParams:e}){var i;return t.length>0?(i=s.getPreviousPageParam)==null?void 0:i.call(s,t[0],t,e[0],e):void 0}var R,et,st,Qt,St,it,Pt,Rt,Se,fs=(Se=class{constructor(t={}){f(this,R);f(this,et);f(this,st);f(this,Qt);f(this,St);f(this,it);f(this,Pt);f(this,Rt);h(this,R,t.queryCache||new Ne),h(this,et,t.mutationCache||new _e),h(this,st,t.defaultOptions||{}),h(this,Qt,new Map),h(this,St,new Map),h(this,it,0)}mount(){xt(this,it)._++,r(this,it)===1&&(h(this,Pt,ue.subscribe(async t=>{t&&(await this.resumePausedMutations(),r(this,R).onFocus())})),h(this,Rt,Nt.subscribe(async t=>{t&&(await this.resumePausedMutations(),r(this,R).onOnline())})))}unmount(){var t,e;xt(this,it)._--,r(this,it)===0&&((t=r(this,Pt))==null||t.call(this),h(this,Pt,void 0),(e=r(this,Rt))==null||e.call(this),h(this,Rt,void 0))}isFetching(t){return r(this,R).findAll({...t,fetchStatus:"fetching"}).length}isMutating(t){return r(this,et).findAll({...t,status:"pending"}).length}getQueryData(t){var i;const e=this.defaultQueryOptions({queryKey:t});return(i=r(this,R).get(e.queryHash))==null?void 0:i.state.data}ensureQueryData(t){const e=this.getQueryData(t.queryKey);if(e===void 0)return this.fetchQuery(t);{const i=this.defaultQueryOptions(t),n=r(this,R).build(this,i);return t.revalidateIfStale&&n.isStaleByTime(vt(i.staleTime,n))&&this.prefetchQuery(i),Promise.resolve(e)}}getQueriesData(t){return r(this,R).findAll(t).map(({queryKey:e,state:i})=>{const n=i.data;return[e,n]})}setQueryData(t,e,i){const n=this.defaultQueryOptions({queryKey:t}),a=r(this,R).get(n.queryHash),u=a==null?void 0:a.state.data,l=Ze(e,u);if(l!==void 0)return r(this,R).build(this,n).setData(l,{...i,manual:!0})}setQueriesData(t,e,i){return A.batch(()=>r(this,R).findAll(t).map(({queryKey:n})=>[n,this.setQueryData(n,e,i)]))}getQueryState(t){var i;const e=this.defaultQueryOptions({queryKey:t});return(i=r(this,R).get(e.queryHash))==null?void 0:i.state}removeQueries(t){const e=r(this,R);A.batch(()=>{e.findAll(t).forEach(i=>{e.remove(i)})})}resetQueries(t,e){const i=r(this,R),n={type:"active",...t};return A.batch(()=>(i.findAll(t).forEach(a=>{a.reset()}),this.refetchQueries(n,e)))}cancelQueries(t={},e={}){const i={revert:!0,...e},n=A.batch(()=>r(this,R).findAll(t).map(a=>a.cancel(i)));return Promise.all(n).then(L).catch(L)}invalidateQueries(t={},e={}){return A.batch(()=>{if(r(this,R).findAll(t).forEach(n=>{n.invalidate()}),t.refetchType==="none")return Promise.resolve();const i={...t,type:t.refetchType??t.type??"active"};return this.refetchQueries(i,e)})}refetchQueries(t={},e){const i={...e,cancelRefetch:(e==null?void 0:e.cancelRefetch)??!0},n=A.batch(()=>r(this,R).findAll(t).filter(a=>!a.isDisabled()).map(a=>{let u=a.fetch(void 0,i);return i.throwOnError||(u=u.catch(L)),a.state.fetchStatus==="paused"?Promise.resolve():u}));return Promise.all(n).then(L)}fetchQuery(t){const e=this.defaultQueryOptions(t);e.retry===void 0&&(e.retry=!1);const i=r(this,R).build(this,e);return i.isStaleByTime(vt(e.staleTime,i))?i.fetch(e):Promise.resolve(i.state.data)}prefetchQuery(t){return this.fetchQuery(t).then(L).catch(L)}fetchInfiniteQuery(t){return t.behavior=cs(t.pages),this.fetchQuery(t)}prefetchInfiniteQuery(t){return this.fetchInfiniteQuery(t).then(L).catch(L)}resumePausedMutations(){return Nt.isOnline()?r(this,et).resumePausedMutations():Promise.resolve()}getQueryCache(){return r(this,R)}getMutationCache(){return r(this,et)}getDefaultOptions(){return r(this,st)}setDefaultOptions(t){h(this,st,t)}setQueryDefaults(t,e){r(this,Qt).set(pt(t),{queryKey:t,defaultOptions:e})}getQueryDefaults(t){const e=[...r(this,Qt).values()];let i={};return e.forEach(n=>{qt(t,n.queryKey)&&(i={...i,...n.defaultOptions})}),i}setMutationDefaults(t,e){r(this,St).set(pt(t),{mutationKey:t,defaultOptions:e})}getMutationDefaults(t){const e=[...r(this,St).values()];let i={};return e.forEach(n=>{qt(t,n.mutationKey)&&(i={...i,...n.defaultOptions})}),i}defaultQueryOptions(t){if(t._defaulted)return t;const e={...r(this,st).queries,...this.getQueryDefaults(t.queryKey),...t,_defaulted:!0};return e.queryHash||(e.queryHash=ae(e.queryKey,e)),e.refetchOnReconnect===void 0&&(e.refetchOnReconnect=e.networkMode!=="always"),e.throwOnError===void 0&&(e.throwOnError=!!e.suspense),!e.networkMode&&e.persister&&(e.networkMode="offlineFirst"),e.enabled!==!0&&e.queryFn===Te&&(e.enabled=!1),e}defaultMutationOptions(t){return t!=null&&t._defaulted?t:{...r(this,st).mutations,...(t==null?void 0:t.mutationKey)&&this.getMutationDefaults(t.mutationKey),...t,_defaulted:!0}}clear(){r(this,R).clear(),r(this,et).clear()}},R=new WeakMap,et=new WeakMap,st=new WeakMap,Qt=new WeakMap,St=new WeakMap,it=new WeakMap,Pt=new WeakMap,Rt=new WeakMap,Se),T,b,jt,I,lt,Ft,V,Kt,Dt,Et,ft,dt,rt,Mt,w,Ut,Wt,zt,Yt,Jt,Xt,Zt,te,Be,Pe,ds=(Pe=class extends At{constructor(t,e){super();f(this,w);f(this,T);f(this,b);f(this,jt);f(this,I);f(this,lt);f(this,Ft);f(this,V);f(this,Kt);f(this,Dt);f(this,Et);f(this,ft);f(this,dt);f(this,rt);f(this,Mt,new Set);this.options=e,h(this,T,t),h(this,V,null),this.bindMethods(),this.setOptions(e)}bindMethods(){this.refetch=this.refetch.bind(this)}onSubscribe(){this.listeners.size===1&&(r(this,b).addObserver(this),pe(r(this,b),this.options)?y(this,w,Ut).call(this):this.updateResult(),y(this,w,Jt).call(this))}onUnsubscribe(){this.hasListeners()||this.destroy()}shouldFetchOnReconnect(){return ee(r(this,b),this.options,this.options.refetchOnReconnect)}shouldFetchOnWindowFocus(){return ee(r(this,b),this.options,this.options.refetchOnWindowFocus)}destroy(){this.listeners=new Set,y(this,w,Xt).call(this),y(this,w,Zt).call(this),r(this,b).removeObserver(this)}setOptions(t,e){const i=this.options,n=r(this,b);if(this.options=r(this,T).defaultQueryOptions(t),this.options.enabled!==void 0&&typeof this.options.enabled!="boolean"&&typeof this.options.enabled!="function"&&typeof N(this.options.enabled,r(this,b))!="boolean")throw new Error("Expected enabled to be a boolean or a callback that returns a boolean");y(this,w,te).call(this),r(this,b).setOptions(this.options),i._defaulted&&!Ht(this.options,i)&&r(this,T).getQueryCache().notify({type:"observerOptionsUpdated",query:r(this,b),observer:this});const a=this.hasListeners();a&&me(r(this,b),n,this.options,i)&&y(this,w,Ut).call(this),this.updateResult(e),a&&(r(this,b)!==n||N(this.options.enabled,r(this,b))!==N(i.enabled,r(this,b))||vt(this.options.staleTime,r(this,b))!==vt(i.staleTime,r(this,b)))&&y(this,w,Wt).call(this);const u=y(this,w,zt).call(this);a&&(r(this,b)!==n||N(this.options.enabled,r(this,b))!==N(i.enabled,r(this,b))||u!==r(this,rt))&&y(this,w,Yt).call(this,u)}getOptimisticResult(t){const e=r(this,T).getQueryCache().build(r(this,T),t),i=this.createResult(e,t);return ps(this,i)&&(h(this,I,i),h(this,Ft,this.options),h(this,lt,r(this,b).state)),i}getCurrentResult(){return r(this,I)}trackResult(t,e){const i={};return Object.keys(t).forEach(n=>{Object.defineProperty(i,n,{configurable:!1,enumerable:!0,get:()=>(this.trackProp(n),e==null||e(n),t[n])})}),i}trackProp(t){r(this,Mt).add(t)}getCurrentQuery(){return r(this,b)}refetch({...t}={}){return this.fetch({...t})}fetchOptimistic(t){const e=r(this,T).defaultQueryOptions(t),i=r(this,T).getQueryCache().build(r(this,T),e);return i.isFetchingOptimistic=!0,i.fetch().then(()=>this.createResult(i,e))}fetch(t){return y(this,w,Ut).call(this,{...t,cancelRefetch:t.cancelRefetch??!0}).then(()=>(this.updateResult(),r(this,I)))}createResult(t,e){var W;const i=r(this,b),n=this.options,a=r(this,I),u=r(this,lt),l=r(this,Ft),v=t!==i?t.state:r(this,jt),{state:p}=t;let c={...p},o=!1,d;if(e._optimisticResults){const g=this.hasListeners(),k=!g&&pe(t,e),We=g&&me(t,i,e,n);(k||We)&&(c={...c,...He(p.data,t.options)}),e._optimisticResults==="isRestoring"&&(c.fetchStatus="idle")}let{error:P,errorUpdatedAt:F,status:D}=c;if(e.select&&c.data!==void 0)if(a&&c.data===(u==null?void 0:u.data)&&e.select===r(this,Kt))d=r(this,Dt);else try{h(this,Kt,e.select),d=e.select(c.data),d=Vt(a==null?void 0:a.data,d,e),h(this,Dt,d),h(this,V,null)}catch(g){h(this,V,g)}else d=c.data;if(e.placeholderData!==void 0&&d===void 0&&D==="pending"){let g;if(a!=null&&a.isPlaceholderData&&e.placeholderData===(l==null?void 0:l.placeholderData))g=a.data;else if(g=typeof e.placeholderData=="function"?e.placeholderData((W=r(this,Et))==null?void 0:W.state.data,r(this,Et)):e.placeholderData,e.select&&g!==void 0)try{g=e.select(g),h(this,V,null)}catch(k){h(this,V,k)}g!==void 0&&(D="success",d=Vt(a==null?void 0:a.data,g,e),o=!0)}r(this,V)&&(P=r(this,V),d=r(this,Dt),F=Date.now(),D="error");const C=c.fetchStatus==="fetching",S=D==="pending",Q=D==="error",E=S&&C,M=d!==void 0;return{status:D,fetchStatus:c.fetchStatus,isPending:S,isSuccess:D==="success",isError:Q,isInitialLoading:E,isLoading:E,data:d,dataUpdatedAt:c.dataUpdatedAt,error:P,errorUpdatedAt:F,failureCount:c.fetchFailureCount,failureReason:c.fetchFailureReason,errorUpdateCount:c.errorUpdateCount,isFetched:c.dataUpdateCount>0||c.errorUpdateCount>0,isFetchedAfterMount:c.dataUpdateCount>v.dataUpdateCount||c.errorUpdateCount>v.errorUpdateCount,isFetching:C,isRefetching:C&&!S,isLoadingError:Q&&!M,isPaused:c.fetchStatus==="paused",isPlaceholderData:o,isRefetchError:Q&&M,isStale:oe(t,e),refetch:this.refetch}}updateResult(t){const e=r(this,I),i=this.createResult(r(this,b),this.options);if(h(this,lt,r(this,b).state),h(this,Ft,this.options),r(this,lt).data!==void 0&&h(this,Et,r(this,b)),Ht(i,e))return;h(this,I,i);const n={},a=()=>{if(!e)return!0;const{notifyOnChangeProps:u}=this.options,l=typeof u=="function"?u():u;if(l==="all"||!l&&!r(this,Mt).size)return!0;const O=new Set(l??r(this,Mt));return this.options.throwOnError&&O.add("error"),Object.keys(r(this,I)).some(v=>{const p=v;return r(this,I)[p]!==e[p]&&O.has(p)})};(t==null?void 0:t.listeners)!==!1&&a()&&(n.listeners=!0),y(this,w,Be).call(this,{...n,...t})}onQueryUpdate(){this.updateResult(),this.hasListeners()&&y(this,w,Jt).call(this)}},T=new WeakMap,b=new WeakMap,jt=new WeakMap,I=new WeakMap,lt=new WeakMap,Ft=new WeakMap,V=new WeakMap,Kt=new WeakMap,Dt=new WeakMap,Et=new WeakMap,ft=new WeakMap,dt=new WeakMap,rt=new WeakMap,Mt=new WeakMap,w=new WeakSet,Ut=function(t){y(this,w,te).call(this);let e=r(this,b).fetch(this.options,t);return t!=null&&t.throwOnError||(e=e.catch(L)),e},Wt=function(){y(this,w,Xt).call(this);const t=vt(this.options.staleTime,r(this,b));if(yt||r(this,I).isStale||!Bt(t))return;const i=qe(r(this,I).dataUpdatedAt,t)+1;h(this,ft,setTimeout(()=>{r(this,I).isStale||this.updateResult()},i))},zt=function(){return(typeof this.options.refetchInterval=="function"?this.options.refetchInterval(r(this,b)):this.options.refetchInterval)??!1},Yt=function(t){y(this,w,Zt).call(this),h(this,rt,t),!(yt||N(this.options.enabled,r(this,b))===!1||!Bt(r(this,rt))||r(this,rt)===0)&&h(this,dt,setInterval(()=>{(this.options.refetchIntervalInBackground||ue.isFocused())&&y(this,w,Ut).call(this)},r(this,rt)))},Jt=function(){y(this,w,Wt).call(this),y(this,w,Yt).call(this,y(this,w,zt).call(this))},Xt=function(){r(this,ft)&&(clearTimeout(r(this,ft)),h(this,ft,void 0))},Zt=function(){r(this,dt)&&(clearInterval(r(this,dt)),h(this,dt,void 0))},te=function(){const t=r(this,T).getQueryCache().build(r(this,T),this.options);if(t===r(this,b))return;const e=r(this,b);h(this,b,t),h(this,jt,t.state),this.hasListeners()&&(e==null||e.removeObserver(this),t.addObserver(this))},Be=function(t){A.batch(()=>{t.listeners&&this.listeners.forEach(e=>{e(r(this,I))}),r(this,T).getQueryCache().notify({query:r(this,b),type:"observerResultsUpdated"})})},Pe);function ys(s,t){return N(t.enabled,s)!==!1&&s.state.data===void 0&&!(s.state.status==="error"&&t.retryOnMount===!1)}function pe(s,t){return ys(s,t)||s.state.data!==void 0&&ee(s,t,t.refetchOnMount)}function ee(s,t,e){if(N(t.enabled,s)!==!1){const i=typeof e=="function"?e(s):e;return i==="always"||i!==!1&&oe(s,t)}return!1}function me(s,t,e,i){return(s!==t||N(i.enabled,s)===!1)&&(!e.suspense||s.state.status!=="error")&&oe(s,e)}function oe(s,t){return N(t.enabled,s)!==!1&&s.isStaleByTime(vt(t.staleTime,s))}function ps(s,t){return!Ht(s.getCurrentResult(),t)}var nt,at,j,Y,J,kt,se,Re,ms=(Re=class extends At{constructor(t,e){super();f(this,J);f(this,nt);f(this,at);f(this,j);f(this,Y);h(this,nt,t),this.setOptions(e),this.bindMethods(),y(this,J,kt).call(this)}bindMethods(){this.mutate=this.mutate.bind(this),this.reset=this.reset.bind(this)}setOptions(t){var i;const e=this.options;this.options=r(this,nt).defaultMutationOptions(t),Ht(this.options,e)||r(this,nt).getMutationCache().notify({type:"observerOptionsUpdated",mutation:r(this,j),observer:this}),e!=null&&e.mutationKey&&this.options.mutationKey&&pt(e.mutationKey)!==pt(this.options.mutationKey)?this.reset():((i=r(this,j))==null?void 0:i.state.status)==="pending"&&r(this,j).setOptions(this.options)}onUnsubscribe(){var t;this.hasListeners()||(t=r(this,j))==null||t.removeObserver(this)}onMutationUpdate(t){y(this,J,kt).call(this),y(this,J,se).call(this,t)}getCurrentResult(){return r(this,at)}reset(){var t;(t=r(this,j))==null||t.removeObserver(this),h(this,j,void 0),y(this,J,kt).call(this),y(this,J,se).call(this)}mutate(t,e){var i;return h(this,Y,e),(i=r(this,j))==null||i.removeObserver(this),h(this,j,r(this,nt).getMutationCache().build(r(this,nt),this.options)),r(this,j).addObserver(this),r(this,j).execute(t)}},nt=new WeakMap,at=new WeakMap,j=new WeakMap,Y=new WeakMap,J=new WeakSet,kt=function(){var e;const t=((e=r(this,j))==null?void 0:e.state)??Ge();h(this,at,{...t,isPending:t.status==="pending",isSuccess:t.status==="success",isError:t.status==="error",isIdle:t.status==="idle",mutate:this.mutate,reset:this.reset})},se=function(t){A.batch(()=>{var e,i,n,a,u,l,O,v;if(r(this,Y)&&this.hasListeners()){const p=r(this,at).variables,c=r(this,at).context;(t==null?void 0:t.type)==="success"?((i=(e=r(this,Y)).onSuccess)==null||i.call(e,t.data,p,c),(a=(n=r(this,Y)).onSettled)==null||a.call(n,t.data,null,p,c)):(t==null?void 0:t.type)==="error"&&((l=(u=r(this,Y)).onError)==null||l.call(u,t.error,p,c),(v=(O=r(this,Y)).onSettled)==null||v.call(O,void 0,t.error,p,c))}this.listeners.forEach(p=>{p(r(this,at))})})},Re),vs="VUE_QUERY_CLIENT";function $e(s){const t=s?`:${s}`:"";return`${vs}${t}`}function ie(s,t){Object.keys(s).forEach(e=>{s[e]=t[e]})}function re(s,t,e="",i=0){if(t){const n=t(s,e,i);if(n===void 0&&Fe(s)||n!==void 0)return n}if(Array.isArray(s))return s.map((n,a)=>re(n,t,String(a),i+1));if(typeof s=="object"&&gs(s)){const n=Object.entries(s).map(([a,u])=>[a,re(u,t,a,i+1)]);return Object.fromEntries(n)}return s}function bs(s,t){return re(s,t)}function m(s,t=!1){return bs(s,(e,i,n)=>{if(n===1&&i==="queryKey")return m(e,!0);if(t&&Os(e))return m(e(),t);if(Fe(e))return m(ze(e),t)})}function gs(s){if(Object.prototype.toString.call(s)!=="[object Object]")return!1;const t=Object.getPrototypeOf(s);return t===null||t===Object.prototype}function Os(s){return typeof s=="function"}function ne(s,t){return typeof s=="function"?s(...t):!!s}function Ve(s=""){if(!Ye())throw new Error("vue-query hooks can only be used inside setup() function or functions that support injection context.");const t=$e(s),e=Je(t);if(!e)throw new Error("No 'queryClient' found in Vue context, use 'VueQueryPlugin' to properly initialize the library.");return e}var Cs=class extends Ne{find(s){return super.find(m(s))}findAll(s={}){return super.findAll(m(s))}},ws=class extends _e{find(s){return super.find(m(s))}findAll(s={}){return super.findAll(m(s))}},Qs=class extends fs{constructor(s={}){const t={defaultOptions:s.defaultOptions,queryCache:s.queryCache||new Cs,mutationCache:s.mutationCache||new ws};super(t),this.isRestoring=Xe(!1)}isFetching(s={}){return super.isFetching(m(s))}isMutating(s={}){return super.isMutating(m(s))}getQueryData(s){return super.getQueryData(m(s))}ensureQueryData(s){return super.ensureQueryData(m(s))}getQueriesData(s){return super.getQueriesData(m(s))}setQueryData(s,t,e={}){return super.setQueryData(m(s),t,m(e))}setQueriesData(s,t,e={}){return super.setQueriesData(m(s),t,m(e))}getQueryState(s){return super.getQueryState(m(s))}removeQueries(s={}){return super.removeQueries(m(s))}resetQueries(s={},t={}){return super.resetQueries(m(s),m(t))}cancelQueries(s={},t={}){return super.cancelQueries(m(s),m(t))}invalidateQueries(s={},t={}){return new Promise(e=>{setTimeout(async()=>{await super.invalidateQueries(m(s),m(t)),e()},0)})}refetchQueries(s={},t={}){return super.refetchQueries(m(s),m(t))}fetchQuery(s){return super.fetchQuery(m(s))}prefetchQuery(s){return super.prefetchQuery(m(s))}fetchInfiniteQuery(s){return super.fetchInfiniteQuery(m(s))}prefetchInfiniteQuery(s){return super.prefetchInfiniteQuery(m(s))}setDefaultOptions(s){super.setDefaultOptions(m(s))}setQueryDefaults(s,t){super.setQueryDefaults(m(s),m(t))}getQueryDefaults(s){return super.getQueryDefaults(m(s))}setMutationDefaults(s,t){super.setMutationDefaults(m(s),m(t))}getMutationDefaults(s){return super.getMutationDefaults(m(s))}},Ms={install:(s,t={})=>{const e=$e(t.queryClientKey);let i;if("queryClient"in t&&t.queryClient)i=t.queryClient;else{const u="queryClientConfig"in t?t.queryClientConfig:void 0;i=new Qs(u)}yt||i.mount();let n=()=>{};if(t.clientPersister){i.isRestoring.value=!0;const[u,l]=t.clientPersister(i);n=u,l.then(()=>{var O;i.isRestoring.value=!1,(O=t.clientPersisterOnSuccess)==null||O.call(t,i)})}const a=()=>{i.unmount(),n()};if(s.onUnmount)s.onUnmount(a);else{const u=s.unmount;s.unmount=function(){a(),u()}}s.provide(e,i)}};function Ss(s,t,e){const i=Ve(),n=De(()=>{const o=m(t);typeof o.enabled=="function"&&(o.enabled=o.enabled());const d=i.defaultQueryOptions(o);return d._optimisticResults=i.isRestoring.value?"isRestoring":"optimistic",d}),a=new s(i,n.value),u=Ee(a.getCurrentResult());let l=()=>{};mt(i.isRestoring,o=>{o||(l(),l=a.subscribe(d=>{ie(u,d)}))},{immediate:!0});const O=()=>{a.setOptions(n.value),ie(u,a.getCurrentResult())};mt(n,O),Me(()=>{l()});const v=(...o)=>(O(),u.refetch(...o)),p=()=>new Promise((o,d)=>{let P=()=>{};const F=()=>{if(n.value.enabled!==!1){a.setOptions(n.value);const D=a.getOptimisticResult(n.value);D.isStale?(P(),a.fetchOptimistic(n.value).then(o,C=>{ne(n.value.throwOnError,[C,a.getCurrentQuery()])?d(C):o(a.getCurrentResult())})):(P(),o(D))}};F(),P=mt(n,F)});mt(()=>u.error,o=>{if(u.isError&&!u.isFetching&&ne(n.value.throwOnError,[o,a.getCurrentQuery()]))throw o});const c=Ae(Ue(u));for(const o in u)typeof u[o]=="function"&&(c[o]=u[o]);return c.suspense=p,c.refetch=v,c}function As(s,t){return Ss(ds,s)}function Us(s,t){const e=Ve(),i=De(()=>e.defaultMutationOptions(m(s))),n=new ms(e,i.value),a=Ee(n.getCurrentResult()),u=n.subscribe(v=>{ie(a,v)}),l=(v,p)=>{n.mutate(v,p).catch(()=>{})};mt(i,()=>{n.setOptions(i.value)}),Me(()=>{u()});const O=Ae(Ue(a));return mt(()=>a.error,v=>{if(v&&ne(i.value.throwOnError,[v]))throw v}),{...O,mutate:l,mutateAsync:a.mutate,reset:a.reset}}export{Qs as Q,Ms as V,As as a,Us as b,Ve as u};
|
|
1
|
+
var he=s=>{throw TypeError(s)};var Gt=(s,t,e)=>t.has(s)||he("Cannot "+e);var r=(s,t,e)=>(Gt(s,t,"read from private field"),e?e.call(s):t.get(s)),f=(s,t,e)=>t.has(s)?he("Cannot add the same private member more than once"):t instanceof WeakSet?t.add(s):t.set(s,e),h=(s,t,e,i)=>(Gt(s,t,"write to private field"),i?i.call(s,e):t.set(s,e),e),y=(s,t,e)=>(Gt(s,t,"access private method"),e);var xt=(s,t,e,i)=>({set _(n){h(s,t,n,e)},get _(){return r(s,t,i)}});import{i as Fe,u as ze,h as Ye,a as Je,r as Xe,c as De,b as Ee,w as mt,o as Me,t as Ae,d as Ue}from"./@vue.CIFymae3.0.0.14-test.8.js";var At=class{constructor(){this.listeners=new Set,this.subscribe=this.subscribe.bind(this)}subscribe(s){return this.listeners.add(s),this.onSubscribe(),()=>{this.listeners.delete(s),this.onUnsubscribe()}}hasListeners(){return this.listeners.size>0}onSubscribe(){}onUnsubscribe(){}},yt=typeof window>"u"||"Deno"in globalThis;function L(){}function Ze(s,t){return typeof s=="function"?s(t):s}function Bt(s){return typeof s=="number"&&s>=0&&s!==1/0}function qe(s,t){return Math.max(s+(t||0)-Date.now(),0)}function vt(s,t){return typeof s=="function"?s(t):s}function N(s,t){return typeof s=="function"?s(t):s}function ce(s,t){const{type:e="all",exact:i,fetchStatus:n,predicate:a,queryKey:u,stale:l}=s;if(u){if(i){if(t.queryHash!==ae(u,t.options))return!1}else if(!qt(t.queryKey,u))return!1}if(e!=="all"){const O=t.isActive();if(e==="active"&&!O||e==="inactive"&&O)return!1}return!(typeof l=="boolean"&&t.isStale()!==l||n&&n!==t.state.fetchStatus||a&&!a(t))}function le(s,t){const{exact:e,status:i,predicate:n,mutationKey:a}=s;if(a){if(!t.options.mutationKey)return!1;if(e){if(pt(t.options.mutationKey)!==pt(a))return!1}else if(!qt(t.options.mutationKey,a))return!1}return!(i&&t.state.status!==i||n&&!n(t))}function ae(s,t){return((t==null?void 0:t.queryKeyHashFn)||pt)(s)}function pt(s){return JSON.stringify(s,(t,e)=>$t(e)?Object.keys(e).sort().reduce((i,n)=>(i[n]=e[n],i),{}):e)}function qt(s,t){return s===t?!0:typeof s!=typeof t?!1:s&&t&&typeof s=="object"&&typeof t=="object"?!Object.keys(t).some(e=>!qt(s[e],t[e])):!1}function Ie(s,t){if(s===t)return s;const e=fe(s)&&fe(t);if(e||$t(s)&&$t(t)){const i=e?s:Object.keys(s),n=i.length,a=e?t:Object.keys(t),u=a.length,l=e?[]:{};let O=0;for(let v=0;v<u;v++){const p=e?v:a[v];(!e&&i.includes(p)||e)&&s[p]===void 0&&t[p]===void 0?(l[p]=void 0,O++):(l[p]=Ie(s[p],t[p]),l[p]===s[p]&&s[p]!==void 0&&O++)}return n===u&&O===n?s:l}return t}function Ht(s,t){if(!t||Object.keys(s).length!==Object.keys(t).length)return!1;for(const e in s)if(s[e]!==t[e])return!1;return!0}function fe(s){return Array.isArray(s)&&s.length===Object.keys(s).length}function $t(s){if(!de(s))return!1;const t=s.constructor;if(t===void 0)return!0;const e=t.prototype;return!(!de(e)||!e.hasOwnProperty("isPrototypeOf")||Object.getPrototypeOf(s)!==Object.prototype)}function de(s){return Object.prototype.toString.call(s)==="[object Object]"}function ts(s){return new Promise(t=>{setTimeout(t,s)})}function Vt(s,t,e){return typeof e.structuralSharing=="function"?e.structuralSharing(s,t):e.structuralSharing!==!1?Ie(s,t):t}function es(s,t,e=0){const i=[...s,t];return e&&i.length>e?i.slice(1):i}function ss(s,t,e=0){const i=[t,...s];return e&&i.length>e?i.slice(0,-1):i}var Te=Symbol();function je(s,t){return!s.queryFn&&(t!=null&&t.initialPromise)?()=>t.initialPromise:!s.queryFn||s.queryFn===Te?()=>Promise.reject(new Error(`Missing queryFn: '${s.queryHash}'`)):s.queryFn}var ut,Z,bt,ve,is=(ve=class extends At{constructor(){super();f(this,ut);f(this,Z);f(this,bt);h(this,bt,t=>{if(!yt&&window.addEventListener){const e=()=>t();return window.addEventListener("visibilitychange",e,!1),()=>{window.removeEventListener("visibilitychange",e)}}})}onSubscribe(){r(this,Z)||this.setEventListener(r(this,bt))}onUnsubscribe(){var t;this.hasListeners()||((t=r(this,Z))==null||t.call(this),h(this,Z,void 0))}setEventListener(t){var e;h(this,bt,t),(e=r(this,Z))==null||e.call(this),h(this,Z,t(i=>{typeof i=="boolean"?this.setFocused(i):this.onFocus()}))}setFocused(t){r(this,ut)!==t&&(h(this,ut,t),this.onFocus())}onFocus(){const t=this.isFocused();this.listeners.forEach(e=>{e(t)})}isFocused(){var t;return typeof r(this,ut)=="boolean"?r(this,ut):((t=globalThis.document)==null?void 0:t.visibilityState)!=="hidden"}},ut=new WeakMap,Z=new WeakMap,bt=new WeakMap,ve),ue=new is,gt,tt,Ot,be,rs=(be=class extends At{constructor(){super();f(this,gt,!0);f(this,tt);f(this,Ot);h(this,Ot,t=>{if(!yt&&window.addEventListener){const e=()=>t(!0),i=()=>t(!1);return window.addEventListener("online",e,!1),window.addEventListener("offline",i,!1),()=>{window.removeEventListener("online",e),window.removeEventListener("offline",i)}}})}onSubscribe(){r(this,tt)||this.setEventListener(r(this,Ot))}onUnsubscribe(){var t;this.hasListeners()||((t=r(this,tt))==null||t.call(this),h(this,tt,void 0))}setEventListener(t){var e;h(this,Ot,t),(e=r(this,tt))==null||e.call(this),h(this,tt,t(this.setOnline.bind(this)))}setOnline(t){r(this,gt)!==t&&(h(this,gt,t),this.listeners.forEach(i=>{i(t)}))}isOnline(){return r(this,gt)}},gt=new WeakMap,tt=new WeakMap,Ot=new WeakMap,be),Nt=new rs;function ns(s){return Math.min(1e3*2**s,3e4)}function Ke(s){return(s??"online")==="online"?Nt.isOnline():!0}var xe=class extends Error{constructor(s){super("CancelledError"),this.revert=s==null?void 0:s.revert,this.silent=s==null?void 0:s.silent}};function _t(s){return s instanceof xe}function Le(s){let t=!1,e=0,i=!1,n,a,u;const l=new Promise((C,S)=>{a=C,u=S}),O=C=>{var S;i||(P(new xe(C)),(S=s.abort)==null||S.call(s))},v=()=>{t=!0},p=()=>{t=!1},c=()=>ue.isFocused()&&(s.networkMode==="always"||Nt.isOnline())&&s.canRun(),o=()=>Ke(s.networkMode)&&s.canRun(),d=C=>{var S;i||(i=!0,(S=s.onSuccess)==null||S.call(s,C),n==null||n(),a(C))},P=C=>{var S;i||(i=!0,(S=s.onError)==null||S.call(s,C),n==null||n(),u(C))},F=()=>new Promise(C=>{var S;n=Q=>{(i||c())&&C(Q)},(S=s.onPause)==null||S.call(s)}).then(()=>{var C;n=void 0,i||(C=s.onContinue)==null||C.call(s)}),D=()=>{if(i)return;let C;const S=e===0?s.initialPromise:void 0;try{C=S??s.fn()}catch(Q){C=Promise.reject(Q)}Promise.resolve(C).then(d).catch(Q=>{var g;if(i)return;const E=s.retry??(yt?0:3),M=s.retryDelay??ns,G=typeof M=="function"?M(e,Q):M,W=E===!0||typeof E=="number"&&e<E||typeof E=="function"&&E(e,Q);if(t||!W){P(Q);return}e++,(g=s.onFail)==null||g.call(s,e,Q),ts(G).then(()=>c()?void 0:F()).then(()=>{t?P(Q):D()})})};return{promise:l,cancel:O,continue:()=>(n==null||n(),l),cancelRetry:v,continueRetry:p,canStart:o,start:()=>(o()?D():F().then(D),l)}}function as(){let s=[],t=0,e=o=>{o()},i=o=>{o()},n=o=>setTimeout(o,0);const a=o=>{n=o},u=o=>{let d;t++;try{d=o()}finally{t--,t||v()}return d},l=o=>{t?s.push(o):n(()=>{e(o)})},O=o=>(...d)=>{l(()=>{o(...d)})},v=()=>{const o=s;s=[],o.length&&n(()=>{i(()=>{o.forEach(d=>{e(d)})})})};return{batch:u,batchCalls:O,schedule:l,setNotifyFunction:o=>{e=o},setBatchNotifyFunction:o=>{i=o},setScheduler:a}}var A=as(),ot,ge,ke=(ge=class{constructor(){f(this,ot)}destroy(){this.clearGcTimeout()}scheduleGc(){this.clearGcTimeout(),Bt(this.gcTime)&&h(this,ot,setTimeout(()=>{this.optionalRemove()},this.gcTime))}updateGcTime(s){this.gcTime=Math.max(this.gcTime||0,s??(yt?1/0:5*60*1e3))}clearGcTimeout(){r(this,ot)&&(clearTimeout(r(this,ot)),h(this,ot,void 0))}},ot=new WeakMap,ge),Ct,wt,x,U,It,ht,H,z,Oe,us=(Oe=class extends ke{constructor(t){super();f(this,H);f(this,Ct);f(this,wt);f(this,x);f(this,U);f(this,It);f(this,ht);h(this,ht,!1),h(this,It,t.defaultOptions),this.setOptions(t.options),this.observers=[],h(this,x,t.cache),this.queryKey=t.queryKey,this.queryHash=t.queryHash,h(this,Ct,os(this.options)),this.state=t.state??r(this,Ct),this.scheduleGc()}get meta(){return this.options.meta}get promise(){var t;return(t=r(this,U))==null?void 0:t.promise}setOptions(t){this.options={...r(this,It),...t},this.updateGcTime(this.options.gcTime)}optionalRemove(){!this.observers.length&&this.state.fetchStatus==="idle"&&r(this,x).remove(this)}setData(t,e){const i=Vt(this.state.data,t,this.options);return y(this,H,z).call(this,{data:i,type:"success",dataUpdatedAt:e==null?void 0:e.updatedAt,manual:e==null?void 0:e.manual}),i}setState(t,e){y(this,H,z).call(this,{type:"setState",state:t,setStateOptions:e})}cancel(t){var i,n;const e=(i=r(this,U))==null?void 0:i.promise;return(n=r(this,U))==null||n.cancel(t),e?e.then(L).catch(L):Promise.resolve()}destroy(){super.destroy(),this.cancel({silent:!0})}reset(){this.destroy(),this.setState(r(this,Ct))}isActive(){return this.observers.some(t=>N(t.options.enabled,this)!==!1)}isDisabled(){return this.getObserversCount()>0&&!this.isActive()}isStale(){return this.state.isInvalidated?!0:this.getObserversCount()>0?this.observers.some(t=>t.getCurrentResult().isStale):this.state.data===void 0}isStaleByTime(t=0){return this.state.isInvalidated||this.state.data===void 0||!qe(this.state.dataUpdatedAt,t)}onFocus(){var e;const t=this.observers.find(i=>i.shouldFetchOnWindowFocus());t==null||t.refetch({cancelRefetch:!1}),(e=r(this,U))==null||e.continue()}onOnline(){var e;const t=this.observers.find(i=>i.shouldFetchOnReconnect());t==null||t.refetch({cancelRefetch:!1}),(e=r(this,U))==null||e.continue()}addObserver(t){this.observers.includes(t)||(this.observers.push(t),this.clearGcTimeout(),r(this,x).notify({type:"observerAdded",query:this,observer:t}))}removeObserver(t){this.observers.includes(t)&&(this.observers=this.observers.filter(e=>e!==t),this.observers.length||(r(this,U)&&(r(this,ht)?r(this,U).cancel({revert:!0}):r(this,U).cancelRetry()),this.scheduleGc()),r(this,x).notify({type:"observerRemoved",query:this,observer:t}))}getObserversCount(){return this.observers.length}invalidate(){this.state.isInvalidated||y(this,H,z).call(this,{type:"invalidate"})}fetch(t,e){var O,v,p;if(this.state.fetchStatus!=="idle"){if(this.state.data!==void 0&&(e!=null&&e.cancelRefetch))this.cancel({silent:!0});else if(r(this,U))return r(this,U).continueRetry(),r(this,U).promise}if(t&&this.setOptions(t),!this.options.queryFn){const c=this.observers.find(o=>o.options.queryFn);c&&this.setOptions(c.options)}const i=new AbortController,n=c=>{Object.defineProperty(c,"signal",{enumerable:!0,get:()=>(h(this,ht,!0),i.signal)})},a=()=>{const c=je(this.options,e),o={queryKey:this.queryKey,meta:this.meta};return n(o),h(this,ht,!1),this.options.persister?this.options.persister(c,o,this):c(o)},u={fetchOptions:e,options:this.options,queryKey:this.queryKey,state:this.state,fetchFn:a};n(u),(O=this.options.behavior)==null||O.onFetch(u,this),h(this,wt,this.state),(this.state.fetchStatus==="idle"||this.state.fetchMeta!==((v=u.fetchOptions)==null?void 0:v.meta))&&y(this,H,z).call(this,{type:"fetch",meta:(p=u.fetchOptions)==null?void 0:p.meta});const l=c=>{var o,d,P,F;_t(c)&&c.silent||y(this,H,z).call(this,{type:"error",error:c}),_t(c)||((d=(o=r(this,x).config).onError)==null||d.call(o,c,this),(F=(P=r(this,x).config).onSettled)==null||F.call(P,this.state.data,c,this)),this.isFetchingOptimistic||this.scheduleGc(),this.isFetchingOptimistic=!1};return h(this,U,Le({initialPromise:e==null?void 0:e.initialPromise,fn:u.fetchFn,abort:i.abort.bind(i),onSuccess:c=>{var o,d,P,F;if(c===void 0){l(new Error(`${this.queryHash} data is undefined`));return}this.setData(c),(d=(o=r(this,x).config).onSuccess)==null||d.call(o,c,this),(F=(P=r(this,x).config).onSettled)==null||F.call(P,c,this.state.error,this),this.isFetchingOptimistic||this.scheduleGc(),this.isFetchingOptimistic=!1},onError:l,onFail:(c,o)=>{y(this,H,z).call(this,{type:"failed",failureCount:c,error:o})},onPause:()=>{y(this,H,z).call(this,{type:"pause"})},onContinue:()=>{y(this,H,z).call(this,{type:"continue"})},retry:u.options.retry,retryDelay:u.options.retryDelay,networkMode:u.options.networkMode,canRun:()=>!0})),r(this,U).start()}},Ct=new WeakMap,wt=new WeakMap,x=new WeakMap,U=new WeakMap,It=new WeakMap,ht=new WeakMap,H=new WeakSet,z=function(t){const e=i=>{switch(t.type){case"failed":return{...i,fetchFailureCount:t.failureCount,fetchFailureReason:t.error};case"pause":return{...i,fetchStatus:"paused"};case"continue":return{...i,fetchStatus:"fetching"};case"fetch":return{...i,...He(i.data,this.options),fetchMeta:t.meta??null};case"success":return{...i,data:t.data,dataUpdateCount:i.dataUpdateCount+1,dataUpdatedAt:t.dataUpdatedAt??Date.now(),error:null,isInvalidated:!1,status:"success",...!t.manual&&{fetchStatus:"idle",fetchFailureCount:0,fetchFailureReason:null}};case"error":const n=t.error;return _t(n)&&n.revert&&r(this,wt)?{...r(this,wt),fetchStatus:"idle"}:{...i,error:n,errorUpdateCount:i.errorUpdateCount+1,errorUpdatedAt:Date.now(),fetchFailureCount:i.fetchFailureCount+1,fetchFailureReason:n,fetchStatus:"idle",status:"error"};case"invalidate":return{...i,isInvalidated:!0};case"setState":return{...i,...t.state}}};this.state=e(this.state),A.batch(()=>{this.observers.forEach(i=>{i.onQueryUpdate()}),r(this,x).notify({query:this,type:"updated",action:t})})},Oe);function He(s,t){return{fetchFailureCount:0,fetchFailureReason:null,fetchStatus:Ke(t.networkMode)?"fetching":"paused",...s===void 0&&{error:null,status:"pending"}}}function os(s){const t=typeof s.initialData=="function"?s.initialData():s.initialData,e=t!==void 0,i=e?typeof s.initialDataUpdatedAt=="function"?s.initialDataUpdatedAt():s.initialDataUpdatedAt:0;return{data:t,dataUpdateCount:0,dataUpdatedAt:e?i??Date.now():0,error:null,errorUpdateCount:0,errorUpdatedAt:0,fetchFailureCount:0,fetchFailureReason:null,fetchMeta:null,isInvalidated:!1,status:e?"success":"pending",fetchStatus:"idle"}}var _,Ce,Ne=(Ce=class extends At{constructor(e={}){super();f(this,_);this.config=e,h(this,_,new Map)}build(e,i,n){const a=i.queryKey,u=i.queryHash??ae(a,i);let l=this.get(u);return l||(l=new us({cache:this,queryKey:a,queryHash:u,options:e.defaultQueryOptions(i),state:n,defaultOptions:e.getQueryDefaults(a)}),this.add(l)),l}add(e){r(this,_).has(e.queryHash)||(r(this,_).set(e.queryHash,e),this.notify({type:"added",query:e}))}remove(e){const i=r(this,_).get(e.queryHash);i&&(e.destroy(),i===e&&r(this,_).delete(e.queryHash),this.notify({type:"removed",query:e}))}clear(){A.batch(()=>{this.getAll().forEach(e=>{this.remove(e)})})}get(e){return r(this,_).get(e)}getAll(){return[...r(this,_).values()]}find(e){const i={exact:!0,...e};return this.getAll().find(n=>ce(i,n))}findAll(e={}){const i=this.getAll();return Object.keys(e).length>0?i.filter(n=>ce(e,n)):i}notify(e){A.batch(()=>{this.listeners.forEach(i=>{i(e)})})}onFocus(){A.batch(()=>{this.getAll().forEach(e=>{e.onFocus()})})}onOnline(){A.batch(()=>{this.getAll().forEach(e=>{e.onOnline()})})}},_=new WeakMap,Ce),B,q,ct,$,X,we,hs=(we=class extends ke{constructor(t){super();f(this,$);f(this,B);f(this,q);f(this,ct);this.mutationId=t.mutationId,h(this,q,t.mutationCache),h(this,B,[]),this.state=t.state||Ge(),this.setOptions(t.options),this.scheduleGc()}setOptions(t){this.options=t,this.updateGcTime(this.options.gcTime)}get meta(){return this.options.meta}addObserver(t){r(this,B).includes(t)||(r(this,B).push(t),this.clearGcTimeout(),r(this,q).notify({type:"observerAdded",mutation:this,observer:t}))}removeObserver(t){h(this,B,r(this,B).filter(e=>e!==t)),this.scheduleGc(),r(this,q).notify({type:"observerRemoved",mutation:this,observer:t})}optionalRemove(){r(this,B).length||(this.state.status==="pending"?this.scheduleGc():r(this,q).remove(this))}continue(){var t;return((t=r(this,ct))==null?void 0:t.continue())??this.execute(this.state.variables)}async execute(t){var n,a,u,l,O,v,p,c,o,d,P,F,D,C,S,Q,E,M,G,W;h(this,ct,Le({fn:()=>this.options.mutationFn?this.options.mutationFn(t):Promise.reject(new Error("No mutationFn found")),onFail:(g,k)=>{y(this,$,X).call(this,{type:"failed",failureCount:g,error:k})},onPause:()=>{y(this,$,X).call(this,{type:"pause"})},onContinue:()=>{y(this,$,X).call(this,{type:"continue"})},retry:this.options.retry??0,retryDelay:this.options.retryDelay,networkMode:this.options.networkMode,canRun:()=>r(this,q).canRun(this)}));const e=this.state.status==="pending",i=!r(this,ct).canStart();try{if(!e){y(this,$,X).call(this,{type:"pending",variables:t,isPaused:i}),await((a=(n=r(this,q).config).onMutate)==null?void 0:a.call(n,t,this));const k=await((l=(u=this.options).onMutate)==null?void 0:l.call(u,t));k!==this.state.context&&y(this,$,X).call(this,{type:"pending",context:k,variables:t,isPaused:i})}const g=await r(this,ct).start();return await((v=(O=r(this,q).config).onSuccess)==null?void 0:v.call(O,g,t,this.state.context,this)),await((c=(p=this.options).onSuccess)==null?void 0:c.call(p,g,t,this.state.context)),await((d=(o=r(this,q).config).onSettled)==null?void 0:d.call(o,g,null,this.state.variables,this.state.context,this)),await((F=(P=this.options).onSettled)==null?void 0:F.call(P,g,null,t,this.state.context)),y(this,$,X).call(this,{type:"success",data:g}),g}catch(g){try{throw await((C=(D=r(this,q).config).onError)==null?void 0:C.call(D,g,t,this.state.context,this)),await((Q=(S=this.options).onError)==null?void 0:Q.call(S,g,t,this.state.context)),await((M=(E=r(this,q).config).onSettled)==null?void 0:M.call(E,void 0,g,this.state.variables,this.state.context,this)),await((W=(G=this.options).onSettled)==null?void 0:W.call(G,void 0,g,t,this.state.context)),g}finally{y(this,$,X).call(this,{type:"error",error:g})}}finally{r(this,q).runNext(this)}}},B=new WeakMap,q=new WeakMap,ct=new WeakMap,$=new WeakSet,X=function(t){const e=i=>{switch(t.type){case"failed":return{...i,failureCount:t.failureCount,failureReason:t.error};case"pause":return{...i,isPaused:!0};case"continue":return{...i,isPaused:!1};case"pending":return{...i,context:t.context,data:void 0,failureCount:0,failureReason:null,error:null,isPaused:t.isPaused,status:"pending",variables:t.variables,submittedAt:Date.now()};case"success":return{...i,data:t.data,failureCount:0,failureReason:null,error:null,status:"success",isPaused:!1};case"error":return{...i,data:void 0,error:t.error,failureCount:i.failureCount+1,failureReason:t.error,isPaused:!1,status:"error"}}};this.state=e(this.state),A.batch(()=>{r(this,B).forEach(i=>{i.onMutationUpdate(t)}),r(this,q).notify({mutation:this,type:"updated",action:t})})},we);function Ge(){return{context:void 0,data:void 0,error:null,failureCount:0,failureReason:null,isPaused:!1,status:"idle",variables:void 0,submittedAt:0}}var K,Tt,Qe,_e=(Qe=class extends At{constructor(e={}){super();f(this,K);f(this,Tt);this.config=e,h(this,K,new Map),h(this,Tt,Date.now())}build(e,i,n){const a=new hs({mutationCache:this,mutationId:++xt(this,Tt)._,options:e.defaultMutationOptions(i),state:n});return this.add(a),a}add(e){const i=Lt(e),n=r(this,K).get(i)??[];n.push(e),r(this,K).set(i,n),this.notify({type:"added",mutation:e})}remove(e){var n;const i=Lt(e);if(r(this,K).has(i)){const a=(n=r(this,K).get(i))==null?void 0:n.filter(u=>u!==e);a&&(a.length===0?r(this,K).delete(i):r(this,K).set(i,a))}this.notify({type:"removed",mutation:e})}canRun(e){var n;const i=(n=r(this,K).get(Lt(e)))==null?void 0:n.find(a=>a.state.status==="pending");return!i||i===e}runNext(e){var n;const i=(n=r(this,K).get(Lt(e)))==null?void 0:n.find(a=>a!==e&&a.state.isPaused);return(i==null?void 0:i.continue())??Promise.resolve()}clear(){A.batch(()=>{this.getAll().forEach(e=>{this.remove(e)})})}getAll(){return[...r(this,K).values()].flat()}find(e){const i={exact:!0,...e};return this.getAll().find(n=>le(i,n))}findAll(e={}){return this.getAll().filter(i=>le(e,i))}notify(e){A.batch(()=>{this.listeners.forEach(i=>{i(e)})})}resumePausedMutations(){const e=this.getAll().filter(i=>i.state.isPaused);return A.batch(()=>Promise.all(e.map(i=>i.continue().catch(L))))}},K=new WeakMap,Tt=new WeakMap,Qe);function Lt(s){var t;return((t=s.options.scope)==null?void 0:t.id)??String(s.mutationId)}function cs(s){return{onFetch:(t,e)=>{const i=async()=>{var P,F,D,C,S;const n=t.options,a=(D=(F=(P=t.fetchOptions)==null?void 0:P.meta)==null?void 0:F.fetchMore)==null?void 0:D.direction,u=((C=t.state.data)==null?void 0:C.pages)||[],l=((S=t.state.data)==null?void 0:S.pageParams)||[],O={pages:[],pageParams:[]};let v=!1;const p=Q=>{Object.defineProperty(Q,"signal",{enumerable:!0,get:()=>(t.signal.aborted?v=!0:t.signal.addEventListener("abort",()=>{v=!0}),t.signal)})},c=je(t.options,t.fetchOptions),o=async(Q,E,M)=>{if(v)return Promise.reject();if(E==null&&Q.pages.length)return Promise.resolve(Q);const G={queryKey:t.queryKey,pageParam:E,direction:M?"backward":"forward",meta:t.options.meta};p(G);const W=await c(G),{maxPages:g}=t.options,k=M?ss:es;return{pages:k(Q.pages,W,g),pageParams:k(Q.pageParams,E,g)}};let d;if(a&&u.length){const Q=a==="backward",E=Q?ls:ye,M={pages:u,pageParams:l},G=E(n,M);d=await o(M,G,Q)}else{d=await o(O,l[0]??n.initialPageParam);const Q=s??u.length;for(let E=1;E<Q;E++){const M=ye(n,d);if(M==null)break;d=await o(d,M)}}return d};t.options.persister?t.fetchFn=()=>{var n,a;return(a=(n=t.options).persister)==null?void 0:a.call(n,i,{queryKey:t.queryKey,meta:t.options.meta,signal:t.signal},e)}:t.fetchFn=i}}}function ye(s,{pages:t,pageParams:e}){const i=t.length-1;return t.length>0?s.getNextPageParam(t[i],t,e[i],e):void 0}function ls(s,{pages:t,pageParams:e}){var i;return t.length>0?(i=s.getPreviousPageParam)==null?void 0:i.call(s,t[0],t,e[0],e):void 0}var R,et,st,Qt,St,it,Pt,Rt,Se,fs=(Se=class{constructor(t={}){f(this,R);f(this,et);f(this,st);f(this,Qt);f(this,St);f(this,it);f(this,Pt);f(this,Rt);h(this,R,t.queryCache||new Ne),h(this,et,t.mutationCache||new _e),h(this,st,t.defaultOptions||{}),h(this,Qt,new Map),h(this,St,new Map),h(this,it,0)}mount(){xt(this,it)._++,r(this,it)===1&&(h(this,Pt,ue.subscribe(async t=>{t&&(await this.resumePausedMutations(),r(this,R).onFocus())})),h(this,Rt,Nt.subscribe(async t=>{t&&(await this.resumePausedMutations(),r(this,R).onOnline())})))}unmount(){var t,e;xt(this,it)._--,r(this,it)===0&&((t=r(this,Pt))==null||t.call(this),h(this,Pt,void 0),(e=r(this,Rt))==null||e.call(this),h(this,Rt,void 0))}isFetching(t){return r(this,R).findAll({...t,fetchStatus:"fetching"}).length}isMutating(t){return r(this,et).findAll({...t,status:"pending"}).length}getQueryData(t){var i;const e=this.defaultQueryOptions({queryKey:t});return(i=r(this,R).get(e.queryHash))==null?void 0:i.state.data}ensureQueryData(t){const e=this.getQueryData(t.queryKey);if(e===void 0)return this.fetchQuery(t);{const i=this.defaultQueryOptions(t),n=r(this,R).build(this,i);return t.revalidateIfStale&&n.isStaleByTime(vt(i.staleTime,n))&&this.prefetchQuery(i),Promise.resolve(e)}}getQueriesData(t){return r(this,R).findAll(t).map(({queryKey:e,state:i})=>{const n=i.data;return[e,n]})}setQueryData(t,e,i){const n=this.defaultQueryOptions({queryKey:t}),a=r(this,R).get(n.queryHash),u=a==null?void 0:a.state.data,l=Ze(e,u);if(l!==void 0)return r(this,R).build(this,n).setData(l,{...i,manual:!0})}setQueriesData(t,e,i){return A.batch(()=>r(this,R).findAll(t).map(({queryKey:n})=>[n,this.setQueryData(n,e,i)]))}getQueryState(t){var i;const e=this.defaultQueryOptions({queryKey:t});return(i=r(this,R).get(e.queryHash))==null?void 0:i.state}removeQueries(t){const e=r(this,R);A.batch(()=>{e.findAll(t).forEach(i=>{e.remove(i)})})}resetQueries(t,e){const i=r(this,R),n={type:"active",...t};return A.batch(()=>(i.findAll(t).forEach(a=>{a.reset()}),this.refetchQueries(n,e)))}cancelQueries(t={},e={}){const i={revert:!0,...e},n=A.batch(()=>r(this,R).findAll(t).map(a=>a.cancel(i)));return Promise.all(n).then(L).catch(L)}invalidateQueries(t={},e={}){return A.batch(()=>{if(r(this,R).findAll(t).forEach(n=>{n.invalidate()}),t.refetchType==="none")return Promise.resolve();const i={...t,type:t.refetchType??t.type??"active"};return this.refetchQueries(i,e)})}refetchQueries(t={},e){const i={...e,cancelRefetch:(e==null?void 0:e.cancelRefetch)??!0},n=A.batch(()=>r(this,R).findAll(t).filter(a=>!a.isDisabled()).map(a=>{let u=a.fetch(void 0,i);return i.throwOnError||(u=u.catch(L)),a.state.fetchStatus==="paused"?Promise.resolve():u}));return Promise.all(n).then(L)}fetchQuery(t){const e=this.defaultQueryOptions(t);e.retry===void 0&&(e.retry=!1);const i=r(this,R).build(this,e);return i.isStaleByTime(vt(e.staleTime,i))?i.fetch(e):Promise.resolve(i.state.data)}prefetchQuery(t){return this.fetchQuery(t).then(L).catch(L)}fetchInfiniteQuery(t){return t.behavior=cs(t.pages),this.fetchQuery(t)}prefetchInfiniteQuery(t){return this.fetchInfiniteQuery(t).then(L).catch(L)}resumePausedMutations(){return Nt.isOnline()?r(this,et).resumePausedMutations():Promise.resolve()}getQueryCache(){return r(this,R)}getMutationCache(){return r(this,et)}getDefaultOptions(){return r(this,st)}setDefaultOptions(t){h(this,st,t)}setQueryDefaults(t,e){r(this,Qt).set(pt(t),{queryKey:t,defaultOptions:e})}getQueryDefaults(t){const e=[...r(this,Qt).values()];let i={};return e.forEach(n=>{qt(t,n.queryKey)&&(i={...i,...n.defaultOptions})}),i}setMutationDefaults(t,e){r(this,St).set(pt(t),{mutationKey:t,defaultOptions:e})}getMutationDefaults(t){const e=[...r(this,St).values()];let i={};return e.forEach(n=>{qt(t,n.mutationKey)&&(i={...i,...n.defaultOptions})}),i}defaultQueryOptions(t){if(t._defaulted)return t;const e={...r(this,st).queries,...this.getQueryDefaults(t.queryKey),...t,_defaulted:!0};return e.queryHash||(e.queryHash=ae(e.queryKey,e)),e.refetchOnReconnect===void 0&&(e.refetchOnReconnect=e.networkMode!=="always"),e.throwOnError===void 0&&(e.throwOnError=!!e.suspense),!e.networkMode&&e.persister&&(e.networkMode="offlineFirst"),e.enabled!==!0&&e.queryFn===Te&&(e.enabled=!1),e}defaultMutationOptions(t){return t!=null&&t._defaulted?t:{...r(this,st).mutations,...(t==null?void 0:t.mutationKey)&&this.getMutationDefaults(t.mutationKey),...t,_defaulted:!0}}clear(){r(this,R).clear(),r(this,et).clear()}},R=new WeakMap,et=new WeakMap,st=new WeakMap,Qt=new WeakMap,St=new WeakMap,it=new WeakMap,Pt=new WeakMap,Rt=new WeakMap,Se),T,b,jt,I,lt,Ft,V,Kt,Dt,Et,ft,dt,rt,Mt,w,Ut,Wt,zt,Yt,Jt,Xt,Zt,te,Be,Pe,ds=(Pe=class extends At{constructor(t,e){super();f(this,w);f(this,T);f(this,b);f(this,jt);f(this,I);f(this,lt);f(this,Ft);f(this,V);f(this,Kt);f(this,Dt);f(this,Et);f(this,ft);f(this,dt);f(this,rt);f(this,Mt,new Set);this.options=e,h(this,T,t),h(this,V,null),this.bindMethods(),this.setOptions(e)}bindMethods(){this.refetch=this.refetch.bind(this)}onSubscribe(){this.listeners.size===1&&(r(this,b).addObserver(this),pe(r(this,b),this.options)?y(this,w,Ut).call(this):this.updateResult(),y(this,w,Jt).call(this))}onUnsubscribe(){this.hasListeners()||this.destroy()}shouldFetchOnReconnect(){return ee(r(this,b),this.options,this.options.refetchOnReconnect)}shouldFetchOnWindowFocus(){return ee(r(this,b),this.options,this.options.refetchOnWindowFocus)}destroy(){this.listeners=new Set,y(this,w,Xt).call(this),y(this,w,Zt).call(this),r(this,b).removeObserver(this)}setOptions(t,e){const i=this.options,n=r(this,b);if(this.options=r(this,T).defaultQueryOptions(t),this.options.enabled!==void 0&&typeof this.options.enabled!="boolean"&&typeof this.options.enabled!="function"&&typeof N(this.options.enabled,r(this,b))!="boolean")throw new Error("Expected enabled to be a boolean or a callback that returns a boolean");y(this,w,te).call(this),r(this,b).setOptions(this.options),i._defaulted&&!Ht(this.options,i)&&r(this,T).getQueryCache().notify({type:"observerOptionsUpdated",query:r(this,b),observer:this});const a=this.hasListeners();a&&me(r(this,b),n,this.options,i)&&y(this,w,Ut).call(this),this.updateResult(e),a&&(r(this,b)!==n||N(this.options.enabled,r(this,b))!==N(i.enabled,r(this,b))||vt(this.options.staleTime,r(this,b))!==vt(i.staleTime,r(this,b)))&&y(this,w,Wt).call(this);const u=y(this,w,zt).call(this);a&&(r(this,b)!==n||N(this.options.enabled,r(this,b))!==N(i.enabled,r(this,b))||u!==r(this,rt))&&y(this,w,Yt).call(this,u)}getOptimisticResult(t){const e=r(this,T).getQueryCache().build(r(this,T),t),i=this.createResult(e,t);return ps(this,i)&&(h(this,I,i),h(this,Ft,this.options),h(this,lt,r(this,b).state)),i}getCurrentResult(){return r(this,I)}trackResult(t,e){const i={};return Object.keys(t).forEach(n=>{Object.defineProperty(i,n,{configurable:!1,enumerable:!0,get:()=>(this.trackProp(n),e==null||e(n),t[n])})}),i}trackProp(t){r(this,Mt).add(t)}getCurrentQuery(){return r(this,b)}refetch({...t}={}){return this.fetch({...t})}fetchOptimistic(t){const e=r(this,T).defaultQueryOptions(t),i=r(this,T).getQueryCache().build(r(this,T),e);return i.isFetchingOptimistic=!0,i.fetch().then(()=>this.createResult(i,e))}fetch(t){return y(this,w,Ut).call(this,{...t,cancelRefetch:t.cancelRefetch??!0}).then(()=>(this.updateResult(),r(this,I)))}createResult(t,e){var W;const i=r(this,b),n=this.options,a=r(this,I),u=r(this,lt),l=r(this,Ft),v=t!==i?t.state:r(this,jt),{state:p}=t;let c={...p},o=!1,d;if(e._optimisticResults){const g=this.hasListeners(),k=!g&&pe(t,e),We=g&&me(t,i,e,n);(k||We)&&(c={...c,...He(p.data,t.options)}),e._optimisticResults==="isRestoring"&&(c.fetchStatus="idle")}let{error:P,errorUpdatedAt:F,status:D}=c;if(e.select&&c.data!==void 0)if(a&&c.data===(u==null?void 0:u.data)&&e.select===r(this,Kt))d=r(this,Dt);else try{h(this,Kt,e.select),d=e.select(c.data),d=Vt(a==null?void 0:a.data,d,e),h(this,Dt,d),h(this,V,null)}catch(g){h(this,V,g)}else d=c.data;if(e.placeholderData!==void 0&&d===void 0&&D==="pending"){let g;if(a!=null&&a.isPlaceholderData&&e.placeholderData===(l==null?void 0:l.placeholderData))g=a.data;else if(g=typeof e.placeholderData=="function"?e.placeholderData((W=r(this,Et))==null?void 0:W.state.data,r(this,Et)):e.placeholderData,e.select&&g!==void 0)try{g=e.select(g),h(this,V,null)}catch(k){h(this,V,k)}g!==void 0&&(D="success",d=Vt(a==null?void 0:a.data,g,e),o=!0)}r(this,V)&&(P=r(this,V),d=r(this,Dt),F=Date.now(),D="error");const C=c.fetchStatus==="fetching",S=D==="pending",Q=D==="error",E=S&&C,M=d!==void 0;return{status:D,fetchStatus:c.fetchStatus,isPending:S,isSuccess:D==="success",isError:Q,isInitialLoading:E,isLoading:E,data:d,dataUpdatedAt:c.dataUpdatedAt,error:P,errorUpdatedAt:F,failureCount:c.fetchFailureCount,failureReason:c.fetchFailureReason,errorUpdateCount:c.errorUpdateCount,isFetched:c.dataUpdateCount>0||c.errorUpdateCount>0,isFetchedAfterMount:c.dataUpdateCount>v.dataUpdateCount||c.errorUpdateCount>v.errorUpdateCount,isFetching:C,isRefetching:C&&!S,isLoadingError:Q&&!M,isPaused:c.fetchStatus==="paused",isPlaceholderData:o,isRefetchError:Q&&M,isStale:oe(t,e),refetch:this.refetch}}updateResult(t){const e=r(this,I),i=this.createResult(r(this,b),this.options);if(h(this,lt,r(this,b).state),h(this,Ft,this.options),r(this,lt).data!==void 0&&h(this,Et,r(this,b)),Ht(i,e))return;h(this,I,i);const n={},a=()=>{if(!e)return!0;const{notifyOnChangeProps:u}=this.options,l=typeof u=="function"?u():u;if(l==="all"||!l&&!r(this,Mt).size)return!0;const O=new Set(l??r(this,Mt));return this.options.throwOnError&&O.add("error"),Object.keys(r(this,I)).some(v=>{const p=v;return r(this,I)[p]!==e[p]&&O.has(p)})};(t==null?void 0:t.listeners)!==!1&&a()&&(n.listeners=!0),y(this,w,Be).call(this,{...n,...t})}onQueryUpdate(){this.updateResult(),this.hasListeners()&&y(this,w,Jt).call(this)}},T=new WeakMap,b=new WeakMap,jt=new WeakMap,I=new WeakMap,lt=new WeakMap,Ft=new WeakMap,V=new WeakMap,Kt=new WeakMap,Dt=new WeakMap,Et=new WeakMap,ft=new WeakMap,dt=new WeakMap,rt=new WeakMap,Mt=new WeakMap,w=new WeakSet,Ut=function(t){y(this,w,te).call(this);let e=r(this,b).fetch(this.options,t);return t!=null&&t.throwOnError||(e=e.catch(L)),e},Wt=function(){y(this,w,Xt).call(this);const t=vt(this.options.staleTime,r(this,b));if(yt||r(this,I).isStale||!Bt(t))return;const i=qe(r(this,I).dataUpdatedAt,t)+1;h(this,ft,setTimeout(()=>{r(this,I).isStale||this.updateResult()},i))},zt=function(){return(typeof this.options.refetchInterval=="function"?this.options.refetchInterval(r(this,b)):this.options.refetchInterval)??!1},Yt=function(t){y(this,w,Zt).call(this),h(this,rt,t),!(yt||N(this.options.enabled,r(this,b))===!1||!Bt(r(this,rt))||r(this,rt)===0)&&h(this,dt,setInterval(()=>{(this.options.refetchIntervalInBackground||ue.isFocused())&&y(this,w,Ut).call(this)},r(this,rt)))},Jt=function(){y(this,w,Wt).call(this),y(this,w,Yt).call(this,y(this,w,zt).call(this))},Xt=function(){r(this,ft)&&(clearTimeout(r(this,ft)),h(this,ft,void 0))},Zt=function(){r(this,dt)&&(clearInterval(r(this,dt)),h(this,dt,void 0))},te=function(){const t=r(this,T).getQueryCache().build(r(this,T),this.options);if(t===r(this,b))return;const e=r(this,b);h(this,b,t),h(this,jt,t.state),this.hasListeners()&&(e==null||e.removeObserver(this),t.addObserver(this))},Be=function(t){A.batch(()=>{t.listeners&&this.listeners.forEach(e=>{e(r(this,I))}),r(this,T).getQueryCache().notify({query:r(this,b),type:"observerResultsUpdated"})})},Pe);function ys(s,t){return N(t.enabled,s)!==!1&&s.state.data===void 0&&!(s.state.status==="error"&&t.retryOnMount===!1)}function pe(s,t){return ys(s,t)||s.state.data!==void 0&&ee(s,t,t.refetchOnMount)}function ee(s,t,e){if(N(t.enabled,s)!==!1){const i=typeof e=="function"?e(s):e;return i==="always"||i!==!1&&oe(s,t)}return!1}function me(s,t,e,i){return(s!==t||N(i.enabled,s)===!1)&&(!e.suspense||s.state.status!=="error")&&oe(s,e)}function oe(s,t){return N(t.enabled,s)!==!1&&s.isStaleByTime(vt(t.staleTime,s))}function ps(s,t){return!Ht(s.getCurrentResult(),t)}var nt,at,j,Y,J,kt,se,Re,ms=(Re=class extends At{constructor(t,e){super();f(this,J);f(this,nt);f(this,at);f(this,j);f(this,Y);h(this,nt,t),this.setOptions(e),this.bindMethods(),y(this,J,kt).call(this)}bindMethods(){this.mutate=this.mutate.bind(this),this.reset=this.reset.bind(this)}setOptions(t){var i;const e=this.options;this.options=r(this,nt).defaultMutationOptions(t),Ht(this.options,e)||r(this,nt).getMutationCache().notify({type:"observerOptionsUpdated",mutation:r(this,j),observer:this}),e!=null&&e.mutationKey&&this.options.mutationKey&&pt(e.mutationKey)!==pt(this.options.mutationKey)?this.reset():((i=r(this,j))==null?void 0:i.state.status)==="pending"&&r(this,j).setOptions(this.options)}onUnsubscribe(){var t;this.hasListeners()||(t=r(this,j))==null||t.removeObserver(this)}onMutationUpdate(t){y(this,J,kt).call(this),y(this,J,se).call(this,t)}getCurrentResult(){return r(this,at)}reset(){var t;(t=r(this,j))==null||t.removeObserver(this),h(this,j,void 0),y(this,J,kt).call(this),y(this,J,se).call(this)}mutate(t,e){var i;return h(this,Y,e),(i=r(this,j))==null||i.removeObserver(this),h(this,j,r(this,nt).getMutationCache().build(r(this,nt),this.options)),r(this,j).addObserver(this),r(this,j).execute(t)}},nt=new WeakMap,at=new WeakMap,j=new WeakMap,Y=new WeakMap,J=new WeakSet,kt=function(){var e;const t=((e=r(this,j))==null?void 0:e.state)??Ge();h(this,at,{...t,isPending:t.status==="pending",isSuccess:t.status==="success",isError:t.status==="error",isIdle:t.status==="idle",mutate:this.mutate,reset:this.reset})},se=function(t){A.batch(()=>{var e,i,n,a,u,l,O,v;if(r(this,Y)&&this.hasListeners()){const p=r(this,at).variables,c=r(this,at).context;(t==null?void 0:t.type)==="success"?((i=(e=r(this,Y)).onSuccess)==null||i.call(e,t.data,p,c),(a=(n=r(this,Y)).onSettled)==null||a.call(n,t.data,null,p,c)):(t==null?void 0:t.type)==="error"&&((l=(u=r(this,Y)).onError)==null||l.call(u,t.error,p,c),(v=(O=r(this,Y)).onSettled)==null||v.call(O,void 0,t.error,p,c))}this.listeners.forEach(p=>{p(r(this,at))})})},Re),vs="VUE_QUERY_CLIENT";function $e(s){const t=s?`:${s}`:"";return`${vs}${t}`}function ie(s,t){Object.keys(s).forEach(e=>{s[e]=t[e]})}function re(s,t,e="",i=0){if(t){const n=t(s,e,i);if(n===void 0&&Fe(s)||n!==void 0)return n}if(Array.isArray(s))return s.map((n,a)=>re(n,t,String(a),i+1));if(typeof s=="object"&&gs(s)){const n=Object.entries(s).map(([a,u])=>[a,re(u,t,a,i+1)]);return Object.fromEntries(n)}return s}function bs(s,t){return re(s,t)}function m(s,t=!1){return bs(s,(e,i,n)=>{if(n===1&&i==="queryKey")return m(e,!0);if(t&&Os(e))return m(e(),t);if(Fe(e))return m(ze(e),t)})}function gs(s){if(Object.prototype.toString.call(s)!=="[object Object]")return!1;const t=Object.getPrototypeOf(s);return t===null||t===Object.prototype}function Os(s){return typeof s=="function"}function ne(s,t){return typeof s=="function"?s(...t):!!s}function Ve(s=""){if(!Ye())throw new Error("vue-query hooks can only be used inside setup() function or functions that support injection context.");const t=$e(s),e=Je(t);if(!e)throw new Error("No 'queryClient' found in Vue context, use 'VueQueryPlugin' to properly initialize the library.");return e}var Cs=class extends Ne{find(s){return super.find(m(s))}findAll(s={}){return super.findAll(m(s))}},ws=class extends _e{find(s){return super.find(m(s))}findAll(s={}){return super.findAll(m(s))}},Qs=class extends fs{constructor(s={}){const t={defaultOptions:s.defaultOptions,queryCache:s.queryCache||new Cs,mutationCache:s.mutationCache||new ws};super(t),this.isRestoring=Xe(!1)}isFetching(s={}){return super.isFetching(m(s))}isMutating(s={}){return super.isMutating(m(s))}getQueryData(s){return super.getQueryData(m(s))}ensureQueryData(s){return super.ensureQueryData(m(s))}getQueriesData(s){return super.getQueriesData(m(s))}setQueryData(s,t,e={}){return super.setQueryData(m(s),t,m(e))}setQueriesData(s,t,e={}){return super.setQueriesData(m(s),t,m(e))}getQueryState(s){return super.getQueryState(m(s))}removeQueries(s={}){return super.removeQueries(m(s))}resetQueries(s={},t={}){return super.resetQueries(m(s),m(t))}cancelQueries(s={},t={}){return super.cancelQueries(m(s),m(t))}invalidateQueries(s={},t={}){return new Promise(e=>{setTimeout(async()=>{await super.invalidateQueries(m(s),m(t)),e()},0)})}refetchQueries(s={},t={}){return super.refetchQueries(m(s),m(t))}fetchQuery(s){return super.fetchQuery(m(s))}prefetchQuery(s){return super.prefetchQuery(m(s))}fetchInfiniteQuery(s){return super.fetchInfiniteQuery(m(s))}prefetchInfiniteQuery(s){return super.prefetchInfiniteQuery(m(s))}setDefaultOptions(s){super.setDefaultOptions(m(s))}setQueryDefaults(s,t){super.setQueryDefaults(m(s),m(t))}getQueryDefaults(s){return super.getQueryDefaults(m(s))}setMutationDefaults(s,t){super.setMutationDefaults(m(s),m(t))}getMutationDefaults(s){return super.getMutationDefaults(m(s))}},Ms={install:(s,t={})=>{const e=$e(t.queryClientKey);let i;if("queryClient"in t&&t.queryClient)i=t.queryClient;else{const u="queryClientConfig"in t?t.queryClientConfig:void 0;i=new Qs(u)}yt||i.mount();let n=()=>{};if(t.clientPersister){i.isRestoring.value=!0;const[u,l]=t.clientPersister(i);n=u,l.then(()=>{var O;i.isRestoring.value=!1,(O=t.clientPersisterOnSuccess)==null||O.call(t,i)})}const a=()=>{i.unmount(),n()};if(s.onUnmount)s.onUnmount(a);else{const u=s.unmount;s.unmount=function(){a(),u()}}s.provide(e,i)}};function Ss(s,t,e){const i=Ve(),n=De(()=>{const o=m(t);typeof o.enabled=="function"&&(o.enabled=o.enabled());const d=i.defaultQueryOptions(o);return d._optimisticResults=i.isRestoring.value?"isRestoring":"optimistic",d}),a=new s(i,n.value),u=Ee(a.getCurrentResult());let l=()=>{};mt(i.isRestoring,o=>{o||(l(),l=a.subscribe(d=>{ie(u,d)}))},{immediate:!0});const O=()=>{a.setOptions(n.value),ie(u,a.getCurrentResult())};mt(n,O),Me(()=>{l()});const v=(...o)=>(O(),u.refetch(...o)),p=()=>new Promise((o,d)=>{let P=()=>{};const F=()=>{if(n.value.enabled!==!1){a.setOptions(n.value);const D=a.getOptimisticResult(n.value);D.isStale?(P(),a.fetchOptimistic(n.value).then(o,C=>{ne(n.value.throwOnError,[C,a.getCurrentQuery()])?d(C):o(a.getCurrentResult())})):(P(),o(D))}};F(),P=mt(n,F)});mt(()=>u.error,o=>{if(u.isError&&!u.isFetching&&ne(n.value.throwOnError,[o,a.getCurrentQuery()]))throw o});const c=Ae(Ue(u));for(const o in u)typeof u[o]=="function"&&(c[o]=u[o]);return c.suspense=p,c.refetch=v,c}function As(s,t){return Ss(ds,s)}function Us(s,t){const e=Ve(),i=De(()=>e.defaultMutationOptions(m(s))),n=new ms(e,i.value),a=Ee(n.getCurrentResult()),u=n.subscribe(v=>{ie(a,v)}),l=(v,p)=>{n.mutate(v,p).catch(()=>{})};mt(i,()=>{n.setOptions(i.value)}),Me(()=>{u()});const O=Ae(Ue(a));return mt(()=>a.error,v=>{if(v&&ne(i.value.throwOnError,[v]))throw v}),{...O,mutate:l,mutateAsync:a.mutate,reset:a.reset}}export{Qs as Q,Ms as V,As as a,Us as b,Ve as u};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{Z as s,a as h,b as a}from"./zod.BaF2dDCd.0.0.14-test.
|
|
1
|
+
import{Z as s,a as h,b as a}from"./zod.BaF2dDCd.0.0.14-test.8.js";import{i as j,c as y}from"./vee-validate.D-fJ-yom.0.0.14-test.8.js";/**
|
|
2
2
|
* vee-validate v4.13.2
|
|
3
3
|
* (c) 2024 Abdelrahman Awad
|
|
4
4
|
* @license MIT
|
package/dist/interface/{@vueform.DmAKvw8g.0.0.14-test.7.js → @vueform.Cm2d2h-o.0.0.14-test.8.js}
RENAMED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{t as v,c as b,e as S,f as V,g as D,v as B,j as p,n as y,k as w,l as C,m as N,p as j,q as T}from"./@vue.CIFymae3.0.0.14-test.
|
|
1
|
+
import{t as v,c as b,e as S,f as V,g as D,v as B,j as p,n as y,k as w,l as C,m as N,p as j,q as T}from"./@vue.CIFymae3.0.0.14-test.8.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.D-kvqIBg.0.0.14-test.7.js → @vueuse.Dlqgp-w1.0.0.14-test.8.js}
RENAMED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{s as pe,x as he,y as we,z as ge,o as Le,A as Fe,i as ne,u as He,B as Pe,d as ye,r as h,c as k,C as Se,w as C,D as oe,b as K,E as re,F as ie}from"./@vue.CIFymae3.0.0.14-test.7.js";import{n as Y}from"./nprogress.4e5pI4MI.0.0.14-test.7.js";function N(e){return ge()?(Le(e),!0):!1}function Mt(e){let n=0,t,o;const l=()=>{n-=1,o&&n<=0&&(o.stop(),t=void 0,o=void 0)};return(...r)=>(n+=1,t||(o=Fe(!0),t=o.run(()=>e(...r))),N(l),t)}function We(e,n,{enumerable:t=!1,unwrap:o=!0}={}){for(const[l,r]of Object.entries(n))l!=="value"&&(ne(r)&&o?Object.defineProperty(e,l,{get(){return r.value},set(a){r.value=a},enumerable:t}):Object.defineProperty(e,l,{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 M(e){return typeof e=="function"?e():He(e)}const q=typeof window<"u"&&typeof document<"u";typeof WorkerGlobalScope<"u"&&globalThis instanceof WorkerGlobalScope;const Re=e=>e!=null,Ye=Object.prototype.toString,be=e=>Ye.call(e)==="[object Object]",W=()=>{},V=Ne();function Ne(){var e,n;return q&&((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((l,r)=>{Promise.resolve(e(()=>n.apply(this,o),{fn:n,thisArg:this,args:o})).then(l).catch(r)})}return t}const Ee=e=>e();function ze(e,n={}){let t,o,l=W;const r=s=>{clearTimeout(s),l(),l=W};return s=>{const i=M(e),u=M(n.maxWait);return t&&r(t),i<=0||u!==void 0&&u<=0?(o&&(r(o),o=null),Promise.resolve(s())):new Promise((v,f)=>{l=n.rejectOnCancel?f:v,u&&!o&&(o=setTimeout(()=>{t&&r(t),o=null,v(s())},u)),t=setTimeout(()=>{o&&r(o),o=null,v(s())},i)})}}function Ie(...e){let n=0,t,o=!0,l=W,r,a,s,i,u;!ne(e[0])&&typeof e[0]=="object"?{delay:a,trailing:s=!0,leading:i=!0,rejectOnCancel:u=!1}=e[0]:[a,s=!0,i=!0,u=!1]=e;const v=()=>{t&&(clearTimeout(t),t=void 0,l(),l=W)};return c=>{const d=M(a),p=Date.now()-n,w=()=>r=c();return v(),d<=0?(n=Date.now(),w()):(p>d&&(i||!o)?(n=Date.now(),w()):s&&(r=new Promise((S,m)=>{l=u?m:S,t=setTimeout(()=>{n=Date.now(),o=!0,S(w()),v()},Math.max(0,d-p))})),!i&&!t&&(t=setTimeout(()=>o=!0,d)),o=!1,r)}}function Xe(e=Ee){const n=h(!0);function t(){n.value=!1}function o(){n.value=!0}const l=(...r)=>{n.value&&e(...r)};return{isActive:ye(n),pause:t,resume:o,eventFilter:l}}const De={mounted:"mounted",updated:"updated",unmounted:"unmounted"};function $e(e){const n=Object.create(null);return t=>n[t]||(n[t]=e(t))}const je=/-(\w)/g,Be=$e(e=>e.replace(je,(n,t)=>t?t.toUpperCase():""));function Ve(e){return Se()}function _e(...e){if(e.length!==1)return Pe(...e);const n=e[0];return typeof n=="function"?ye(pe(()=>({get:n,set:W}))):h(n)}function qe(e,n=200,t={}){return le(ze(n,t),e)}function Ue(e,n=200,t=!1,o=!0,l=!1){return le(Ie(n,t,o,l),e)}function xt(e,n={}){let t=e,o,l;const r=pe((c,d)=>(o=c,l=d,{get(){return a()},set(p){s(p)}}));function a(c=!0){return c&&o(),t}function s(c,d=!0){var p,w;if(c===t)return;const S=t;((p=n.onBeforeChange)==null?void 0:p.call(n,c,S))!==!1&&(t=c,(w=n.onChanged)==null||w.call(n,c,S),d&&l())}return We(r,{get:a,set:s,untrackedGet:()=>a(!1),silentSet:c=>s(c,!1),peek:()=>a(!1),lay:c=>s(c,!1)},{enumerable:!0})}function Ge(e,n,t={}){const{eventFilter:o=Ee,...l}=t;return C(e,le(o,n),l)}function Je(e,n,t={}){const{eventFilter:o,...l}=t,{eventFilter:r,pause:a,resume:s,isActive:i}=Xe(o);return{stop:Ge(e,n,{...l,eventFilter:r}),pause:a,resume:s,isActive:i}}function U(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 l=e<12?"AM":"PM";return o&&(l=l.split("").reduce((r,a)=>r+=`${a}.`,"")),t?l.toLowerCase():l}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 l=e.getFullYear(),r=e.getMonth(),a=e.getDate(),s=e.getHours(),i=e.getMinutes(),u=e.getSeconds(),v=e.getMilliseconds(),f=e.getDay(),c=(o=t.customMeridiem)!=null?o:Ze,d={Yo:()=>I(l),YY:()=>String(l).slice(-2),YYYY:()=>l,M:()=>r+1,Mo:()=>I(r+1),MM:()=>`${r+1}`.padStart(2,"0"),MMM:()=>e.toLocaleDateString(M(t.locales),{month:"short"}),MMMM:()=>e.toLocaleDateString(M(t.locales),{month:"long"}),D:()=>String(a),Do:()=>I(a),DD:()=>`${a}`.padStart(2,"0"),H:()=>String(s),Ho:()=>I(s),HH:()=>`${s}`.padStart(2,"0"),h:()=>`${s%12||12}`.padStart(1,"0"),ho:()=>I(s%12||12),hh:()=>`${s%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(M(t.locales),{weekday:"narrow"}),ddd:()=>e.toLocaleDateString(M(t.locales),{weekday:"short"}),dddd:()=>e.toLocaleDateString(M(t.locales),{weekday:"long"}),A:()=>c(s,i),AA:()=>c(s,i,!1,!0),a:()=>c(s,i,!0),aa:()=>c(s,i,!0,!0)};return n.replace(Qe,(p,w)=>{var S,m;return(m=w??((S=d[p])==null?void 0:S.call(d)))!=null?m: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 Ot(e,n="HH:mm:ss",t={}){return k(()=>et(tt(M(e)),M(n),t))}function Tt(e,n,t){let o;ne(t)?o={evaluating:t}:o=t||{};const{lazy:l=!1,evaluating:r=void 0,shallow:a=!0,onError:s=W}=o,i=h(!l),u=a?oe(n):h(n);let v=0;return re(async f=>{if(!i.value)return;v++;const c=v;let d=!1;r&&Promise.resolve().then(()=>{r.value=!0});try{const p=await e(w=>{f(()=>{r&&(r.value=!1),d||w()})});c===v&&(u.value=p)}catch(p){s(p)}finally{r&&c===v&&(r.value=!1),d=!0}}),l?k(()=>(i.value=!0,u.value)):u}function kt(e={}){const{inheritAttrs:n=!0}=e,t=oe(),o=ie({setup(r,{slots:a}){return()=>{t.value=a.default}}}),l=ie({inheritAttrs:n,setup(r,{attrs:a,slots:s}){return()=>{var i;t.value;const u=(i=t.value)==null?void 0:i.call(t,{...nt(a),$slots:s});return n&&(u==null?void 0:u.length)===1?u[0]:u}}});return Ce({define:o,reuse:l},[o,l])}function nt(e){const n={};for(const t in e)n[Be(t)]=e[t];return n}function F(e){var n;const t=M(e);return(n=t==null?void 0:t.$el)!=null?n:t}const H=q?window:void 0,Me=q?window.document:void 0;function _(...e){let n,t,o,l;if(typeof e[0]=="string"||Array.isArray(e[0])?([t,o,l]=e,n=H):[n,t,o,l]=e,!n)return W;Array.isArray(t)||(t=[t]),Array.isArray(o)||(o=[o]);const r=[],a=()=>{r.forEach(v=>v()),r.length=0},s=(v,f,c,d)=>(v.addEventListener(f,c,d),()=>v.removeEventListener(f,c,d)),i=C(()=>[F(n),M(l)],([v,f])=>{if(a(),!v)return;const c=be(f)?{...f}:f;r.push(...t.flatMap(d=>o.map(p=>s(v,d,p,c))))},{immediate:!0,flush:"post"}),u=()=>{i(),a()};return N(u),u}let ae=!1;function At(e,n,t={}){const{window:o=H,ignore:l=[],capture:r=!0,detectIframe:a=!1}=t;if(!o)return W;V&&!ae&&(ae=!0,Array.from(o.document.body.children).forEach(c=>c.addEventListener("click",W)),o.document.documentElement.addEventListener("click",W));let s=!0;const i=c=>l.some(d=>{if(typeof d=="string")return Array.from(o.document.querySelectorAll(d)).some(p=>p===c.target||c.composedPath().includes(p));{const p=F(d);return p&&(c.target===p||c.composedPath().includes(p))}}),v=[_(o,"click",c=>{const d=F(e);if(!(!d||d===c.target||c.composedPath().includes(d))){if(c.detail===0&&(s=!i(c)),!s){s=!0;return}n(c)}},{passive:!0,capture:r}),_(o,"pointerdown",c=>{const d=F(e);s=!i(c)&&!!(d&&!c.composedPath().includes(d))},{passive:!0}),a&&_(o,"blur",c=>{setTimeout(()=>{var d;const p=F(e);((d=o.document.activeElement)==null?void 0:d.tagName)==="IFRAME"&&!(p!=null&&p.contains(o.document.activeElement))&&n(c)},0)})].filter(Boolean);return()=>v.forEach(c=>c())}function ot(e){return typeof e=="function"?e:typeof e=="string"?n=>n.key===e:Array.isArray(e)?n=>e.includes(n.key):()=>!0}function Lt(...e){let n,t,o={};e.length===3?(n=e[0],t=e[1],o=e[2]):e.length===2?typeof e[1]=="object"?(n=!0,t=e[0],o=e[1]):(n=e[0],t=e[1]):(n=!0,t=e[0]);const{target:l=H,eventName:r="keydown",passive:a=!1,dedupe:s=!1}=o,i=ot(n);return _(l,r,v=>{v.repeat&&M(s)||i(v)&&t(v)},a)}function rt(){const e=h(!1),n=Se();return n&&he(()=>{e.value=!0},n),e}function $(e){const n=rt();return k(()=>(n.value,!!e()))}function lt(e,n,t={}){const{window:o=H,...l}=t;let r;const a=$(()=>o&&"MutationObserver"in o),s=()=>{r&&(r.disconnect(),r=void 0)},i=k(()=>{const c=M(e),d=(Array.isArray(c)?c:[c]).map(F).filter(Re);return new Set(d)}),u=C(()=>i.value,c=>{s(),a.value&&c.size&&(r=new MutationObserver(n),c.forEach(d=>r.observe(d,l)))},{immediate:!0,flush:"post"}),v=()=>r==null?void 0:r.takeRecords(),f=()=>{u(),s()};return N(f),{isSupported:a,stop:f,takeRecords:v}}function st(e,n={}){const{window:t=H}=n,o=$(()=>t&&"matchMedia"in t&&typeof t.matchMedia=="function");let l;const r=h(!1),a=u=>{r.value=u.matches},s=()=>{l&&("removeEventListener"in l?l.removeEventListener("change",a):l.removeListener(a))},i=re(()=>{o.value&&(s(),l=t.matchMedia(M(e)),"addEventListener"in l?l.addEventListener("change",a):l.addListener(a),r.value=l.matches)});return N(()=>{i(),s(),l=void 0}),r}const G=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},J="__vueuse_ssr_handlers__",ut=it();function it(){return J in G||(G[J]=G[J]||{}),G[J]}function at(e,n){return ut[e]||n}function ct(e){return e==null?"any":e instanceof Set?"set":e instanceof Map?"map":e instanceof Date?"date":typeof e=="boolean"?"boolean":typeof e=="string"?"string":typeof e=="object"?"object":Number.isNaN(e)?"any":"number"}const ft={boolean:{read:e=>e==="true",write:e=>String(e)},object:{read:e=>JSON.parse(e),write:e=>JSON.stringify(e)},number:{read:e=>Number.parseFloat(e),write:e=>String(e)},any:{read:e=>e,write:e=>String(e)},string:{read:e=>e,write:e=>String(e)},map:{read:e=>new Map(JSON.parse(e)),write:e=>JSON.stringify(Array.from(e.entries()))},set:{read:e=>new Set(JSON.parse(e)),write:e=>JSON.stringify(Array.from(e))},date:{read:e=>new Date(e),write:e=>e.toISOString()}},ce="vueuse-storage";function dt(e,n,t,o={}){var l;const{flush:r="pre",deep:a=!0,listenToStorageChanges:s=!0,writeDefaults:i=!0,mergeDefaults:u=!1,shallow:v,window:f=H,eventFilter:c,onError:d=y=>{console.error(y)},initOnMounted:p}=o,w=(v?oe:h)(typeof n=="function"?n():n);if(!t)try{t=at("getDefaultStorage",()=>{var y;return(y=H)==null?void 0:y.localStorage})()}catch(y){d(y)}if(!t)return w;const S=M(n),m=ct(S),E=(l=o.serializer)!=null?l:ft[m],{pause:A,resume:x}=Je(w,()=>T(w.value),{flush:r,deep:a,eventFilter:c});f&&s&&U(()=>{t instanceof Storage?_(f,"storage",P):_(f,ce,D),p&&P()}),p||P();function g(y,O){if(f){const L={key:e,oldValue:y,newValue:O,storageArea:t};f.dispatchEvent(t instanceof Storage?new StorageEvent("storage",L):new CustomEvent(ce,{detail:L}))}}function T(y){try{const O=t.getItem(e);if(y==null)g(O,null),t.removeItem(e);else{const L=E.write(y);O!==L&&(t.setItem(e,L),g(O,L))}}catch(O){d(O)}}function b(y){const O=y?y.newValue:t.getItem(e);if(O==null)return i&&S!=null&&t.setItem(e,E.write(S)),S;if(!y&&u){const L=E.read(O);return typeof u=="function"?u(L,S):m==="object"&&!Array.isArray(L)?{...S,...L}:L}else return typeof O!="string"?O:E.read(O)}function P(y){if(!(y&&y.storageArea!==t)){if(y&&y.key==null){w.value=S;return}if(!(y&&y.key!==e)){A();try{(y==null?void 0:y.newValue)!==E.write(w.value)&&(w.value=b(y))}catch(O){d(O)}finally{y?we(x):x()}}}}function D(y){P(y.detail)}return w}function Ft(e={}){const{document:n=Me}=e;if(!n)return h("visible");const t=h(n.visibilityState);return _(n,"visibilitychange",()=>{t.value=n.visibilityState}),t}function xe(e,n,t={}){const{window:o=H,...l}=t;let r;const a=$(()=>o&&"ResizeObserver"in o),s=()=>{r&&(r.disconnect(),r=void 0)},i=k(()=>{const f=M(e);return Array.isArray(f)?f.map(c=>F(c)):[F(f)]}),u=C(i,f=>{if(s(),a.value&&o){r=new ResizeObserver(n);for(const c of f)c&&r.observe(c,l)}},{immediate:!0,flush:"post"}),v=()=>{s(),u()};return N(v),{isSupported:a,stop:v}}function Ht(e,n={}){const{reset:t=!0,windowResize:o=!0,windowScroll:l=!0,immediate:r=!0,updateTiming:a="sync"}=n,s=h(0),i=h(0),u=h(0),v=h(0),f=h(0),c=h(0),d=h(0),p=h(0);function w(){const m=F(e);if(!m){t&&(s.value=0,i.value=0,u.value=0,v.value=0,f.value=0,c.value=0,d.value=0,p.value=0);return}const E=m.getBoundingClientRect();s.value=E.height,i.value=E.bottom,u.value=E.left,v.value=E.right,f.value=E.top,c.value=E.width,d.value=E.x,p.value=E.y}function S(){a==="sync"?w():a==="next-frame"&&requestAnimationFrame(()=>w())}return xe(e,S),C(()=>F(e),m=>!m&&S()),lt(e,S,{attributeFilter:["style","class"]}),l&&_("scroll",S,{capture:!0,passive:!0}),o&&_("resize",S,{passive:!0}),U(()=>{r&&S()}),{height:s,bottom:i,left:u,right:v,top:f,width:c,x:d,y:p,update:S}}function Pt(e,n={width:0,height:0},t={}){const{window:o=H,box:l="content-box"}=t,r=k(()=>{var f,c;return(c=(f=F(e))==null?void 0:f.namespaceURI)==null?void 0:c.includes("svg")}),a=h(n.width),s=h(n.height),{stop:i}=xe(e,([f])=>{const c=l==="border-box"?f.borderBoxSize:l==="content-box"?f.contentBoxSize:f.devicePixelContentBoxSize;if(o&&r.value){const d=F(e);if(d){const p=d.getBoundingClientRect();a.value=p.width,s.value=p.height}}else if(c){const d=Array.isArray(c)?c:[c];a.value=d.reduce((p,{inlineSize:w})=>p+w,0),s.value=d.reduce((p,{blockSize:w})=>p+w,0)}else a.value=f.contentRect.width,s.value=f.contentRect.height},t);U(()=>{const f=F(e);f&&(a.value="offsetWidth"in f?f.offsetWidth:n.width,s.value="offsetHeight"in f?f.offsetHeight:n.height)});const u=C(()=>F(e),f=>{a.value=f?n.width:0,s.value=f?n.height:0});function v(){i(),u()}return{width:a,height:s,stop:v}}const B=new Map;function Wt(e){const n=ge();function t(s){var i;const u=B.get(e)||new Set;u.add(s),B.set(e,u);const v=()=>l(s);return(i=n==null?void 0:n.cleanups)==null||i.push(v),v}function o(s){function i(...u){l(i),s(...u)}return t(i)}function l(s){const i=B.get(e);i&&(i.delete(s),i.size||r())}function r(){B.delete(e)}function a(s,i){var u;(u=B.get(e))==null||u.forEach(v=>v(s,i))}return{on:t,once:o,off:l,emit:a,reset:r}}const fe=["fullscreenchange","webkitfullscreenchange","webkitendfullscreen","mozfullscreenchange","MSFullscreenChange"];function Ct(e,n={}){const{document:t=Me,autoExit:o=!1}=n,l=k(()=>{var m;return(m=F(e))!=null?m:t==null?void 0:t.querySelector("html")}),r=h(!1),a=k(()=>["requestFullscreen","webkitRequestFullscreen","webkitEnterFullscreen","webkitEnterFullScreen","webkitRequestFullScreen","mozRequestFullScreen","msRequestFullscreen"].find(m=>t&&m in t||l.value&&m in l.value)),s=k(()=>["exitFullscreen","webkitExitFullscreen","webkitExitFullScreen","webkitCancelFullScreen","mozCancelFullScreen","msExitFullscreen"].find(m=>t&&m in t||l.value&&m in l.value)),i=k(()=>["fullScreen","webkitIsFullScreen","webkitDisplayingFullscreen","mozFullScreen","msFullscreenElement"].find(m=>t&&m in t||l.value&&m in l.value)),u=["fullscreenElement","webkitFullscreenElement","mozFullScreenElement","msFullscreenElement"].find(m=>t&&m in t),v=$(()=>l.value&&t&&a.value!==void 0&&s.value!==void 0&&i.value!==void 0),f=()=>u?(t==null?void 0:t[u])===l.value:!1,c=()=>{if(i.value){if(t&&t[i.value]!=null)return t[i.value];{const m=l.value;if((m==null?void 0:m[i.value])!=null)return!!m[i.value]}}return!1};async function d(){if(!(!v.value||!r.value)){if(s.value)if((t==null?void 0:t[s.value])!=null)await t[s.value]();else{const m=l.value;(m==null?void 0:m[s.value])!=null&&await m[s.value]()}r.value=!1}}async function p(){if(!v.value||r.value)return;c()&&await d();const m=l.value;a.value&&(m==null?void 0:m[a.value])!=null&&(await m[a.value](),r.value=!0)}async function w(){await(r.value?d():p())}const S=()=>{const m=c();(!m||m&&f())&&(r.value=m)};return _(t,fe,S,!1),_(()=>F(l),fe,S,!1),o&&N(d),{isSupported:v,isFullscreen:r,enter:p,exit:d,toggle:w}}const de=1;function Rt(e,n={}){const{throttle:t=0,idle:o=200,onStop:l=W,onScroll:r=W,offset:a={left:0,right:0,top:0,bottom:0},eventListenerOptions:s={capture:!1,passive:!0},behavior:i="auto",window:u=H,onError:v=b=>{console.error(b)}}=n,f=h(0),c=h(0),d=k({get(){return f.value},set(b){w(b,void 0)}}),p=k({get(){return c.value},set(b){w(void 0,b)}});function w(b,P){var D,y,O,L;if(!u)return;const R=M(e);if(!R)return;(O=R instanceof Document?u.document.body:R)==null||O.scrollTo({top:(D=M(P))!=null?D:p.value,left:(y=M(b))!=null?y:d.value,behavior:M(i)});const j=((L=R==null?void 0:R.document)==null?void 0:L.documentElement)||(R==null?void 0:R.documentElement)||R;d!=null&&(f.value=j.scrollLeft),p!=null&&(c.value=j.scrollTop)}const S=h(!1),m=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,l(b))},x=qe(A,t+o),g=b=>{var P;if(!u)return;const D=((P=b==null?void 0:b.document)==null?void 0:P.documentElement)||(b==null?void 0:b.documentElement)||F(b),{display:y,flexDirection:O}=getComputedStyle(D),L=D.scrollLeft;E.left=L<f.value,E.right=L>f.value;const R=Math.abs(L)<=(a.left||0),j=Math.abs(L)+D.clientWidth>=D.scrollWidth-(a.right||0)-de;y==="flex"&&O==="row-reverse"?(m.left=j,m.right=R):(m.left=R,m.right=j),f.value=L;let z=D.scrollTop;b===u.document&&!z&&(z=u.document.body.scrollTop),E.top=z<c.value,E.bottom=z>c.value;const se=Math.abs(z)<=(a.top||0),ue=Math.abs(z)+D.clientHeight>=D.scrollHeight-(a.bottom||0)-de;y==="flex"&&O==="column-reverse"?(m.top=ue,m.bottom=se):(m.top=se,m.bottom=ue),c.value=z},T=b=>{var P;if(!u)return;const D=(P=b.target.documentElement)!=null?P:b.target;g(D),S.value=!0,x(b),r(b)};return _(e,"scroll",t?Ue(T,t,!0,!1):T,s),U(()=>{try{const b=M(e);if(!b)return;g(b)}catch(b){v(b)}}),_(e,"scrollend",A,s),{x:d,y:p,isScrolling:S,arrivedState:m,directions:E,measure(){const b=M(e);u&&b&&g(b)}}}function Q(e){return typeof Window<"u"&&e instanceof Window?e.document.documentElement:typeof Document<"u"&&e instanceof Document?e.documentElement:e}function Yt(e,n,t={}){const{window:o=H}=t;return dt(e,n,o==null?void 0:o.localStorage,t)}const vt={page:e=>[e.pageX,e.pageY],client:e=>[e.clientX,e.clientY],screen:e=>[e.screenX,e.screenY],movement:e=>e instanceof Touch?null:[e.movementX,e.movementY]};function mt(e={}){const{type:n="page",touch:t=!0,resetOnTouchEnds:o=!1,initialValue:l={x:0,y:0},window:r=H,target:a=r,scroll:s=!0,eventFilter:i}=e;let u=null;const v=h(l.x),f=h(l.y),c=h(null),d=typeof n=="function"?n:vt[n],p=g=>{const T=d(g);u=g,T&&([v.value,f.value]=T,c.value="mouse")},w=g=>{if(g.touches.length>0){const T=d(g.touches[0]);T&&([v.value,f.value]=T,c.value="touch")}},S=()=>{if(!u||!r)return;const g=d(u);u instanceof MouseEvent&&g&&(v.value=g[0]+r.scrollX,f.value=g[1]+r.scrollY)},m=()=>{v.value=l.x,f.value=l.y},E=i?g=>i(()=>p(g),{}):g=>p(g),A=i?g=>i(()=>w(g),{}):g=>w(g),x=i?()=>i(()=>S(),{}):()=>S();if(a){const g={passive:!0};_(a,["mousemove","dragover"],E,g),t&&n!=="movement"&&(_(a,["touchstart","touchmove"],A,g),o&&_(a,"touchend",m,g)),s&&n==="page"&&_(r,"scroll",x,{passive:!0})}return{x:v,y:f,sourceType:c}}function Nt(e,n={}){const{handleOutside:t=!0,window:o=H}=n,l=n.type||"page",{x:r,y:a,sourceType:s}=mt(n),i=h(e??(o==null?void 0:o.document.body)),u=h(0),v=h(0),f=h(0),c=h(0),d=h(0),p=h(0),w=h(!0);let S=()=>{};return o&&(S=C([i,r,a],()=>{const m=F(i);if(!m||!(m instanceof HTMLElement))return;const{left:E,top:A,width:x,height:g}=m.getBoundingClientRect();f.value=E+(l==="page"?o.pageXOffset:0),c.value=A+(l==="page"?o.pageYOffset:0),d.value=g,p.value=x;const T=r.value-f.value,b=a.value-c.value;w.value=x===0||g===0||T<0||b<0||T>x||b>g,(t||!w.value)&&(u.value=T,v.value=b)},{immediate:!0}),_(document,"mouseleave",()=>{w.value=!0})),{x:r,y:a,sourceType:s,elementX:u,elementY:v,elementPositionX:f,elementPositionY:c,elementHeight:d,elementWidth:p,isOutside:w,stop:S}}function zt(e={}){const{touch:n=!0,drag:t=!0,capture:o=!1,initialValue:l=!1,window:r=H}=e,a=h(l),s=h(null);if(!r)return{pressed:a,sourceType:s};const i=f=>()=>{a.value=!0,s.value=f},u=()=>{a.value=!1,s.value=null},v=k(()=>F(e.target)||r);return _(v,"mousedown",i("mouse"),{passive:!0,capture:o}),_(r,"mouseleave",u,{passive:!0,capture:o}),_(r,"mouseup",u,{passive:!0,capture:o}),t&&(_(v,"dragstart",i("mouse"),{passive:!0,capture:o}),_(r,"drop",u,{passive:!0,capture:o}),_(r,"dragend",u,{passive:!0,capture:o})),n&&(_(v,"touchstart",i("touch"),{passive:!0,capture:o}),_(r,"touchend",u,{passive:!0,capture:o}),_(r,"touchcancel",u,{passive:!0,capture:o})),{pressed:a,sourceType:s}}function pt(e={}){const{window:n=H}=e,t=n==null?void 0:n.navigator,o=$(()=>t&&"connection"in t),l=h(!0),r=h(!1),a=h(void 0),s=h(void 0),i=h(void 0),u=h(void 0),v=h(void 0),f=h(void 0),c=h("unknown"),d=o.value&&t.connection;function p(){t&&(l.value=t.onLine,a.value=l.value?void 0:Date.now(),s.value=l.value?Date.now():void 0,d&&(i.value=d.downlink,u.value=d.downlinkMax,f.value=d.effectiveType,v.value=d.rtt,r.value=d.saveData,c.value=d.type))}return n&&(_(n,"offline",()=>{l.value=!1,a.value=Date.now()}),_(n,"online",()=>{l.value=!0,s.value=Date.now()})),d&&_(d,"change",p,!1),p(),{isSupported:o,isOnline:l,saveData:r,offlineAt:a,onlineAt:s,downlink:i,downlinkMax:u,effectiveType:f,rtt:v,type:c}}function It(e={}){const{isOnline:n}=pt(e);return n}function Xt(e={}){const{window:n=H}=e,t=$(()=>n&&"screen"in n&&"orientation"in n.screen),o=t.value?n.screen.orientation:{},l=h(o.type),r=h(o.angle||0);return t.value&&_(n,"orientationchange",()=>{l.value=o.type,r.value=o.angle}),{isSupported:t,orientation:l,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 ht(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 $t(e,n=!1){const t=h(n);let o=null,l="";C(_e(e),s=>{const i=Q(M(s));if(i){const u=i;if(Z.get(u)||Z.set(u,u.style.overflow),u.style.overflow!=="hidden"&&(l=u.style.overflow),u.style.overflow==="hidden")return t.value=!0;if(t.value)return u.style.overflow="hidden"}},{immediate:!0});const r=()=>{const s=Q(M(e));!s||t.value||(V&&(o=_(s,"touchmove",i=>{ht(i)},{passive:!1})),s.style.overflow="hidden",t.value=!0)},a=()=>{const s=Q(M(e));!s||!t.value||(V&&(o==null||o()),s.style.overflow=l,Z.delete(s),t.value=!1)};return N(a),k({get(){return t.value},set(s){s?r():a()}})}function jt(e,n={}){const{threshold:t=50,onSwipe:o,onSwipeEnd:l,onSwipeStart:r,passive:a=!0,window:s=H}=n,i=K({x:0,y:0}),u=K({x:0,y:0}),v=k(()=>i.x-u.x),f=k(()=>i.y-u.y),{max:c,abs:d}=Math,p=k(()=>c(d(v.value),d(f.value))>=t),w=h(!1),S=k(()=>p.value?d(v.value)>d(f.value)?v.value>0?"left":"right":f.value>0?"up":"down":"none"),m=D=>[D.touches[0].clientX,D.touches[0].clientY],E=(D,y)=>{i.x=D,i.y=y},A=(D,y)=>{u.x=D,u.y=y};let x;const g=wt(s==null?void 0:s.document);a?x=g?{passive:!0}:{capture:!1}:x=g?{passive:!1,capture:!0}:{capture:!0};const T=D=>{w.value&&(l==null||l(D,S.value)),w.value=!1},b=[_(e,"touchstart",D=>{if(D.touches.length!==1)return;x.capture&&!x.passive&&D.preventDefault();const[y,O]=m(D);E(y,O),A(y,O),r==null||r(D)},x),_(e,"touchmove",D=>{if(D.touches.length!==1)return;const[y,O]=m(D);A(y,O),!w.value&&p.value&&(w.value=!0),w.value&&(o==null||o(D))},x),_(e,["touchend","touchcancel"],T,x)];return{isPassiveEventSupported:g,isSwiping:w,direction:S,coordsStart:i,coordsEnd:u,lengthX:v,lengthY:f,stop:()=>b.forEach(D=>D())}}function wt(e){if(!e)return!1;let n=!1;const t={get passive(){return n=!0,!1}};return e.addEventListener("x",W,t),e.removeEventListener("x",W),n}function Bt(e={}){const{window:n=H,behavior:t="auto"}=e;if(!n)return{x:h(0),y:h(0)};const o=h(n.scrollX),l=h(n.scrollY),r=k({get(){return o.value},set(s){scrollTo({left:s,behavior:t})}}),a=k({get(){return l.value},set(s){scrollTo({top:s,behavior:t})}});return _(n,"scroll",()=>{o.value=n.scrollX,l.value=n.scrollY},{capture:!1,passive:!0}),{x:r,y:a}}function Vt(e={}){const{window:n=H,initialWidth:t=Number.POSITIVE_INFINITY,initialHeight:o=Number.POSITIVE_INFINITY,listenOrientation:l=!0,includeScrollbar:r=!0,type:a="inner"}=e,s=h(t),i=h(o),u=()=>{n&&(a==="outer"?(s.value=n.outerWidth,i.value=n.outerHeight):r?(s.value=n.innerWidth,i.value=n.innerHeight):(s.value=n.document.documentElement.clientWidth,i.value=n.document.documentElement.clientHeight))};if(u(),U(u),_("resize",u,{passive:!0}),l){const v=st("(orientation: portrait)");C(v,()=>u())}return{width:s,height:i}}function qt(e=null,n){const t=h(e),o=k({set:r=>r?Y.start():Y.done(),get:()=>typeof t.value=="number"&&t.value<1});n&&Y.configure(n);const l=Y.set;return Y.set=r=>(t.value=r,l.call(Y,r)),re(()=>{typeof t.value=="number"&&q&&l.call(Y,t.value)}),N(Y.remove),{isLoading:o,progress:t,start:Y.start,done:Y.done,remove:()=>{t.value=null,Y.remove()}}}function Te(e){var n;const t=M(e);return(n=t==null?void 0:t.$el)!=null?n:t}const ke=q?window:void 0;function X(...e){let n,t,o,l;if(typeof e[0]=="string"||Array.isArray(e[0])?([t,o,l]=e,n=ke):[n,t,o,l]=e,!n)return W;Array.isArray(t)||(t=[t]),Array.isArray(o)||(o=[o]);const r=[],a=()=>{r.forEach(v=>v()),r.length=0},s=(v,f,c,d)=>(v.addEventListener(f,c,d),()=>v.removeEventListener(f,c,d)),i=C(()=>[Te(n),M(l)],([v,f])=>{if(a(),!v)return;const c=be(f)?{...f}:f;r.push(...t.flatMap(d=>o.map(p=>s(v,d,p,c))))},{immediate:!0,flush:"post"}),u=()=>{i(),a()};return N(u),u}const gt=500,yt=10;function ve(e,n,t){var o,l;const r=k(()=>Te(e));let a,s,i,u=!1;function v(){a&&(clearTimeout(a),a=void 0),s=void 0,i=void 0,u=!1}function f(m){var E,A,x;const[g,T,b]=[i,s,u];if(v(),!(t!=null&&t.onMouseUp)||!T||!g||(E=t==null?void 0:t.modifiers)!=null&&E.self&&m.target!==r.value)return;(A=t==null?void 0:t.modifiers)!=null&&A.prevent&&m.preventDefault(),(x=t==null?void 0:t.modifiers)!=null&&x.stop&&m.stopPropagation();const P=m.x-T.x,D=m.y-T.y,y=Math.sqrt(P*P+D*D);t.onMouseUp(m.timeStamp-g,y,b)}function c(m){var E,A,x,g;(E=t==null?void 0:t.modifiers)!=null&&E.self&&m.target!==r.value||(v(),(A=t==null?void 0:t.modifiers)!=null&&A.prevent&&m.preventDefault(),(x=t==null?void 0:t.modifiers)!=null&&x.stop&&m.stopPropagation(),s={x:m.x,y:m.y},i=m.timeStamp,a=setTimeout(()=>{u=!0,n(m)},(g=t==null?void 0:t.delay)!=null?g:gt))}function d(m){var E,A,x,g;if((E=t==null?void 0:t.modifiers)!=null&&E.self&&m.target!==r.value||!s||(t==null?void 0:t.distanceThreshold)===!1)return;(A=t==null?void 0:t.modifiers)!=null&&A.prevent&&m.preventDefault(),(x=t==null?void 0:t.modifiers)!=null&&x.stop&&m.stopPropagation();const T=m.x-s.x,b=m.y-s.y;Math.sqrt(T*T+b*b)>=((g=t==null?void 0:t.distanceThreshold)!=null?g:yt)&&v()}const p={capture:(o=t==null?void 0:t.modifiers)==null?void 0:o.capture,once:(l=t==null?void 0:t.modifiers)==null?void 0:l.once},w=[X(r,"pointerdown",c,p),X(r,"pointermove",d,p),X(r,["pointerup","pointerleave"],f,p)];return()=>w.forEach(m=>m())}const Ut={[De.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:l=ke}=n,r=h(!1);let a;const s=i=>{const u=i?t:o;a&&(clearTimeout(a),a=void 0),u?a=setTimeout(()=>r.value=i,u):r.value=i};return l&&(X(e,"mouseenter",()=>s(!0),{passive:!0}),X(e,"mouseleave",()=>s(!1),{passive:!0})),r}const Gt={[De.mounted](e,n){const t=n.value;if(typeof t=="function"){const o=me(e);C(o,l=>t(l))}else{const[o,l]=t,r=me(e,l);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 Ae(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:Ae(t)}}function St(e){const n=e||window.event,t=n.target;return Ae(t)?!1:n.touches.length>1?!0:(n.preventDefault&&n.preventDefault(),!1)}const te=new WeakMap;function bt(e,n=!1){const t=h(n);let o=null,l="";C(_e(e),s=>{const i=ee(M(s));if(i){const u=i;if(te.get(u)||te.set(u,u.style.overflow),u.style.overflow!=="hidden"&&(l=u.style.overflow),u.style.overflow==="hidden")return t.value=!0;if(t.value)return u.style.overflow="hidden"}},{immediate:!0});const r=()=>{const s=ee(M(e));!s||t.value||(V&&(o=X(s,"touchmove",i=>{St(i)},{passive:!1})),s.style.overflow="hidden",t.value=!0)},a=()=>{const s=ee(M(e));!s||!t.value||(V&&(o==null||o()),s.style.overflow=l,te.delete(s),t.value=!1)};return N(a),k({get(){return t.value},set(s){s?r():a()}})}function Et(){let e=!1;const n=h(!1);return(t,o)=>{if(n.value=o.value,e)return;e=!0;const l=bt(t,o.value);C(n,r=>l.value=r)}}Et();export{Ut as A,Ft as B,xe as C,Ot as a,Xt as b,Mt as c,Vt as d,st as e,Wt as f,jt as g,Bt as h,It as i,qt as j,Pt as k,$t as l,mt as m,Nt as n,At as o,zt as p,Rt as q,xt as r,Lt as s,_ as t,Yt as u,Ht as v,Ct as w,kt as x,Tt as y,Gt as z};
|
|
1
|
+
import{s as pe,x as he,y as we,z as ge,o as Le,A as Fe,i as ne,u as He,B as Pe,d as ye,r as h,c as k,C as Se,w as C,D as oe,b as K,E as re,F as ie}from"./@vue.CIFymae3.0.0.14-test.8.js";import{n as Y}from"./nprogress.CxN4JN9q.0.0.14-test.8.js";function N(e){return ge()?(Le(e),!0):!1}function Mt(e){let n=0,t,o;const l=()=>{n-=1,o&&n<=0&&(o.stop(),t=void 0,o=void 0)};return(...r)=>(n+=1,t||(o=Fe(!0),t=o.run(()=>e(...r))),N(l),t)}function We(e,n,{enumerable:t=!1,unwrap:o=!0}={}){for(const[l,r]of Object.entries(n))l!=="value"&&(ne(r)&&o?Object.defineProperty(e,l,{get(){return r.value},set(a){r.value=a},enumerable:t}):Object.defineProperty(e,l,{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 M(e){return typeof e=="function"?e():He(e)}const q=typeof window<"u"&&typeof document<"u";typeof WorkerGlobalScope<"u"&&globalThis instanceof WorkerGlobalScope;const Re=e=>e!=null,Ye=Object.prototype.toString,be=e=>Ye.call(e)==="[object Object]",W=()=>{},V=Ne();function Ne(){var e,n;return q&&((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((l,r)=>{Promise.resolve(e(()=>n.apply(this,o),{fn:n,thisArg:this,args:o})).then(l).catch(r)})}return t}const Ee=e=>e();function ze(e,n={}){let t,o,l=W;const r=s=>{clearTimeout(s),l(),l=W};return s=>{const i=M(e),u=M(n.maxWait);return t&&r(t),i<=0||u!==void 0&&u<=0?(o&&(r(o),o=null),Promise.resolve(s())):new Promise((v,f)=>{l=n.rejectOnCancel?f:v,u&&!o&&(o=setTimeout(()=>{t&&r(t),o=null,v(s())},u)),t=setTimeout(()=>{o&&r(o),o=null,v(s())},i)})}}function Ie(...e){let n=0,t,o=!0,l=W,r,a,s,i,u;!ne(e[0])&&typeof e[0]=="object"?{delay:a,trailing:s=!0,leading:i=!0,rejectOnCancel:u=!1}=e[0]:[a,s=!0,i=!0,u=!1]=e;const v=()=>{t&&(clearTimeout(t),t=void 0,l(),l=W)};return c=>{const d=M(a),p=Date.now()-n,w=()=>r=c();return v(),d<=0?(n=Date.now(),w()):(p>d&&(i||!o)?(n=Date.now(),w()):s&&(r=new Promise((S,m)=>{l=u?m:S,t=setTimeout(()=>{n=Date.now(),o=!0,S(w()),v()},Math.max(0,d-p))})),!i&&!t&&(t=setTimeout(()=>o=!0,d)),o=!1,r)}}function Xe(e=Ee){const n=h(!0);function t(){n.value=!1}function o(){n.value=!0}const l=(...r)=>{n.value&&e(...r)};return{isActive:ye(n),pause:t,resume:o,eventFilter:l}}const De={mounted:"mounted",updated:"updated",unmounted:"unmounted"};function $e(e){const n=Object.create(null);return t=>n[t]||(n[t]=e(t))}const je=/-(\w)/g,Be=$e(e=>e.replace(je,(n,t)=>t?t.toUpperCase():""));function Ve(e){return Se()}function _e(...e){if(e.length!==1)return Pe(...e);const n=e[0];return typeof n=="function"?ye(pe(()=>({get:n,set:W}))):h(n)}function qe(e,n=200,t={}){return le(ze(n,t),e)}function Ue(e,n=200,t=!1,o=!0,l=!1){return le(Ie(n,t,o,l),e)}function xt(e,n={}){let t=e,o,l;const r=pe((c,d)=>(o=c,l=d,{get(){return a()},set(p){s(p)}}));function a(c=!0){return c&&o(),t}function s(c,d=!0){var p,w;if(c===t)return;const S=t;((p=n.onBeforeChange)==null?void 0:p.call(n,c,S))!==!1&&(t=c,(w=n.onChanged)==null||w.call(n,c,S),d&&l())}return We(r,{get:a,set:s,untrackedGet:()=>a(!1),silentSet:c=>s(c,!1),peek:()=>a(!1),lay:c=>s(c,!1)},{enumerable:!0})}function Ge(e,n,t={}){const{eventFilter:o=Ee,...l}=t;return C(e,le(o,n),l)}function Je(e,n,t={}){const{eventFilter:o,...l}=t,{eventFilter:r,pause:a,resume:s,isActive:i}=Xe(o);return{stop:Ge(e,n,{...l,eventFilter:r}),pause:a,resume:s,isActive:i}}function U(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 l=e<12?"AM":"PM";return o&&(l=l.split("").reduce((r,a)=>r+=`${a}.`,"")),t?l.toLowerCase():l}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 l=e.getFullYear(),r=e.getMonth(),a=e.getDate(),s=e.getHours(),i=e.getMinutes(),u=e.getSeconds(),v=e.getMilliseconds(),f=e.getDay(),c=(o=t.customMeridiem)!=null?o:Ze,d={Yo:()=>I(l),YY:()=>String(l).slice(-2),YYYY:()=>l,M:()=>r+1,Mo:()=>I(r+1),MM:()=>`${r+1}`.padStart(2,"0"),MMM:()=>e.toLocaleDateString(M(t.locales),{month:"short"}),MMMM:()=>e.toLocaleDateString(M(t.locales),{month:"long"}),D:()=>String(a),Do:()=>I(a),DD:()=>`${a}`.padStart(2,"0"),H:()=>String(s),Ho:()=>I(s),HH:()=>`${s}`.padStart(2,"0"),h:()=>`${s%12||12}`.padStart(1,"0"),ho:()=>I(s%12||12),hh:()=>`${s%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(M(t.locales),{weekday:"narrow"}),ddd:()=>e.toLocaleDateString(M(t.locales),{weekday:"short"}),dddd:()=>e.toLocaleDateString(M(t.locales),{weekday:"long"}),A:()=>c(s,i),AA:()=>c(s,i,!1,!0),a:()=>c(s,i,!0),aa:()=>c(s,i,!0,!0)};return n.replace(Qe,(p,w)=>{var S,m;return(m=w??((S=d[p])==null?void 0:S.call(d)))!=null?m: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 Ot(e,n="HH:mm:ss",t={}){return k(()=>et(tt(M(e)),M(n),t))}function Tt(e,n,t){let o;ne(t)?o={evaluating:t}:o=t||{};const{lazy:l=!1,evaluating:r=void 0,shallow:a=!0,onError:s=W}=o,i=h(!l),u=a?oe(n):h(n);let v=0;return re(async f=>{if(!i.value)return;v++;const c=v;let d=!1;r&&Promise.resolve().then(()=>{r.value=!0});try{const p=await e(w=>{f(()=>{r&&(r.value=!1),d||w()})});c===v&&(u.value=p)}catch(p){s(p)}finally{r&&c===v&&(r.value=!1),d=!0}}),l?k(()=>(i.value=!0,u.value)):u}function kt(e={}){const{inheritAttrs:n=!0}=e,t=oe(),o=ie({setup(r,{slots:a}){return()=>{t.value=a.default}}}),l=ie({inheritAttrs:n,setup(r,{attrs:a,slots:s}){return()=>{var i;t.value;const u=(i=t.value)==null?void 0:i.call(t,{...nt(a),$slots:s});return n&&(u==null?void 0:u.length)===1?u[0]:u}}});return Ce({define:o,reuse:l},[o,l])}function nt(e){const n={};for(const t in e)n[Be(t)]=e[t];return n}function F(e){var n;const t=M(e);return(n=t==null?void 0:t.$el)!=null?n:t}const H=q?window:void 0,Me=q?window.document:void 0;function _(...e){let n,t,o,l;if(typeof e[0]=="string"||Array.isArray(e[0])?([t,o,l]=e,n=H):[n,t,o,l]=e,!n)return W;Array.isArray(t)||(t=[t]),Array.isArray(o)||(o=[o]);const r=[],a=()=>{r.forEach(v=>v()),r.length=0},s=(v,f,c,d)=>(v.addEventListener(f,c,d),()=>v.removeEventListener(f,c,d)),i=C(()=>[F(n),M(l)],([v,f])=>{if(a(),!v)return;const c=be(f)?{...f}:f;r.push(...t.flatMap(d=>o.map(p=>s(v,d,p,c))))},{immediate:!0,flush:"post"}),u=()=>{i(),a()};return N(u),u}let ae=!1;function At(e,n,t={}){const{window:o=H,ignore:l=[],capture:r=!0,detectIframe:a=!1}=t;if(!o)return W;V&&!ae&&(ae=!0,Array.from(o.document.body.children).forEach(c=>c.addEventListener("click",W)),o.document.documentElement.addEventListener("click",W));let s=!0;const i=c=>l.some(d=>{if(typeof d=="string")return Array.from(o.document.querySelectorAll(d)).some(p=>p===c.target||c.composedPath().includes(p));{const p=F(d);return p&&(c.target===p||c.composedPath().includes(p))}}),v=[_(o,"click",c=>{const d=F(e);if(!(!d||d===c.target||c.composedPath().includes(d))){if(c.detail===0&&(s=!i(c)),!s){s=!0;return}n(c)}},{passive:!0,capture:r}),_(o,"pointerdown",c=>{const d=F(e);s=!i(c)&&!!(d&&!c.composedPath().includes(d))},{passive:!0}),a&&_(o,"blur",c=>{setTimeout(()=>{var d;const p=F(e);((d=o.document.activeElement)==null?void 0:d.tagName)==="IFRAME"&&!(p!=null&&p.contains(o.document.activeElement))&&n(c)},0)})].filter(Boolean);return()=>v.forEach(c=>c())}function ot(e){return typeof e=="function"?e:typeof e=="string"?n=>n.key===e:Array.isArray(e)?n=>e.includes(n.key):()=>!0}function Lt(...e){let n,t,o={};e.length===3?(n=e[0],t=e[1],o=e[2]):e.length===2?typeof e[1]=="object"?(n=!0,t=e[0],o=e[1]):(n=e[0],t=e[1]):(n=!0,t=e[0]);const{target:l=H,eventName:r="keydown",passive:a=!1,dedupe:s=!1}=o,i=ot(n);return _(l,r,v=>{v.repeat&&M(s)||i(v)&&t(v)},a)}function rt(){const e=h(!1),n=Se();return n&&he(()=>{e.value=!0},n),e}function $(e){const n=rt();return k(()=>(n.value,!!e()))}function lt(e,n,t={}){const{window:o=H,...l}=t;let r;const a=$(()=>o&&"MutationObserver"in o),s=()=>{r&&(r.disconnect(),r=void 0)},i=k(()=>{const c=M(e),d=(Array.isArray(c)?c:[c]).map(F).filter(Re);return new Set(d)}),u=C(()=>i.value,c=>{s(),a.value&&c.size&&(r=new MutationObserver(n),c.forEach(d=>r.observe(d,l)))},{immediate:!0,flush:"post"}),v=()=>r==null?void 0:r.takeRecords(),f=()=>{u(),s()};return N(f),{isSupported:a,stop:f,takeRecords:v}}function st(e,n={}){const{window:t=H}=n,o=$(()=>t&&"matchMedia"in t&&typeof t.matchMedia=="function");let l;const r=h(!1),a=u=>{r.value=u.matches},s=()=>{l&&("removeEventListener"in l?l.removeEventListener("change",a):l.removeListener(a))},i=re(()=>{o.value&&(s(),l=t.matchMedia(M(e)),"addEventListener"in l?l.addEventListener("change",a):l.addListener(a),r.value=l.matches)});return N(()=>{i(),s(),l=void 0}),r}const G=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},J="__vueuse_ssr_handlers__",ut=it();function it(){return J in G||(G[J]=G[J]||{}),G[J]}function at(e,n){return ut[e]||n}function ct(e){return e==null?"any":e instanceof Set?"set":e instanceof Map?"map":e instanceof Date?"date":typeof e=="boolean"?"boolean":typeof e=="string"?"string":typeof e=="object"?"object":Number.isNaN(e)?"any":"number"}const ft={boolean:{read:e=>e==="true",write:e=>String(e)},object:{read:e=>JSON.parse(e),write:e=>JSON.stringify(e)},number:{read:e=>Number.parseFloat(e),write:e=>String(e)},any:{read:e=>e,write:e=>String(e)},string:{read:e=>e,write:e=>String(e)},map:{read:e=>new Map(JSON.parse(e)),write:e=>JSON.stringify(Array.from(e.entries()))},set:{read:e=>new Set(JSON.parse(e)),write:e=>JSON.stringify(Array.from(e))},date:{read:e=>new Date(e),write:e=>e.toISOString()}},ce="vueuse-storage";function dt(e,n,t,o={}){var l;const{flush:r="pre",deep:a=!0,listenToStorageChanges:s=!0,writeDefaults:i=!0,mergeDefaults:u=!1,shallow:v,window:f=H,eventFilter:c,onError:d=y=>{console.error(y)},initOnMounted:p}=o,w=(v?oe:h)(typeof n=="function"?n():n);if(!t)try{t=at("getDefaultStorage",()=>{var y;return(y=H)==null?void 0:y.localStorage})()}catch(y){d(y)}if(!t)return w;const S=M(n),m=ct(S),E=(l=o.serializer)!=null?l:ft[m],{pause:A,resume:x}=Je(w,()=>T(w.value),{flush:r,deep:a,eventFilter:c});f&&s&&U(()=>{t instanceof Storage?_(f,"storage",P):_(f,ce,D),p&&P()}),p||P();function g(y,O){if(f){const L={key:e,oldValue:y,newValue:O,storageArea:t};f.dispatchEvent(t instanceof Storage?new StorageEvent("storage",L):new CustomEvent(ce,{detail:L}))}}function T(y){try{const O=t.getItem(e);if(y==null)g(O,null),t.removeItem(e);else{const L=E.write(y);O!==L&&(t.setItem(e,L),g(O,L))}}catch(O){d(O)}}function b(y){const O=y?y.newValue:t.getItem(e);if(O==null)return i&&S!=null&&t.setItem(e,E.write(S)),S;if(!y&&u){const L=E.read(O);return typeof u=="function"?u(L,S):m==="object"&&!Array.isArray(L)?{...S,...L}:L}else return typeof O!="string"?O:E.read(O)}function P(y){if(!(y&&y.storageArea!==t)){if(y&&y.key==null){w.value=S;return}if(!(y&&y.key!==e)){A();try{(y==null?void 0:y.newValue)!==E.write(w.value)&&(w.value=b(y))}catch(O){d(O)}finally{y?we(x):x()}}}}function D(y){P(y.detail)}return w}function Ft(e={}){const{document:n=Me}=e;if(!n)return h("visible");const t=h(n.visibilityState);return _(n,"visibilitychange",()=>{t.value=n.visibilityState}),t}function xe(e,n,t={}){const{window:o=H,...l}=t;let r;const a=$(()=>o&&"ResizeObserver"in o),s=()=>{r&&(r.disconnect(),r=void 0)},i=k(()=>{const f=M(e);return Array.isArray(f)?f.map(c=>F(c)):[F(f)]}),u=C(i,f=>{if(s(),a.value&&o){r=new ResizeObserver(n);for(const c of f)c&&r.observe(c,l)}},{immediate:!0,flush:"post"}),v=()=>{s(),u()};return N(v),{isSupported:a,stop:v}}function Ht(e,n={}){const{reset:t=!0,windowResize:o=!0,windowScroll:l=!0,immediate:r=!0,updateTiming:a="sync"}=n,s=h(0),i=h(0),u=h(0),v=h(0),f=h(0),c=h(0),d=h(0),p=h(0);function w(){const m=F(e);if(!m){t&&(s.value=0,i.value=0,u.value=0,v.value=0,f.value=0,c.value=0,d.value=0,p.value=0);return}const E=m.getBoundingClientRect();s.value=E.height,i.value=E.bottom,u.value=E.left,v.value=E.right,f.value=E.top,c.value=E.width,d.value=E.x,p.value=E.y}function S(){a==="sync"?w():a==="next-frame"&&requestAnimationFrame(()=>w())}return xe(e,S),C(()=>F(e),m=>!m&&S()),lt(e,S,{attributeFilter:["style","class"]}),l&&_("scroll",S,{capture:!0,passive:!0}),o&&_("resize",S,{passive:!0}),U(()=>{r&&S()}),{height:s,bottom:i,left:u,right:v,top:f,width:c,x:d,y:p,update:S}}function Pt(e,n={width:0,height:0},t={}){const{window:o=H,box:l="content-box"}=t,r=k(()=>{var f,c;return(c=(f=F(e))==null?void 0:f.namespaceURI)==null?void 0:c.includes("svg")}),a=h(n.width),s=h(n.height),{stop:i}=xe(e,([f])=>{const c=l==="border-box"?f.borderBoxSize:l==="content-box"?f.contentBoxSize:f.devicePixelContentBoxSize;if(o&&r.value){const d=F(e);if(d){const p=d.getBoundingClientRect();a.value=p.width,s.value=p.height}}else if(c){const d=Array.isArray(c)?c:[c];a.value=d.reduce((p,{inlineSize:w})=>p+w,0),s.value=d.reduce((p,{blockSize:w})=>p+w,0)}else a.value=f.contentRect.width,s.value=f.contentRect.height},t);U(()=>{const f=F(e);f&&(a.value="offsetWidth"in f?f.offsetWidth:n.width,s.value="offsetHeight"in f?f.offsetHeight:n.height)});const u=C(()=>F(e),f=>{a.value=f?n.width:0,s.value=f?n.height:0});function v(){i(),u()}return{width:a,height:s,stop:v}}const B=new Map;function Wt(e){const n=ge();function t(s){var i;const u=B.get(e)||new Set;u.add(s),B.set(e,u);const v=()=>l(s);return(i=n==null?void 0:n.cleanups)==null||i.push(v),v}function o(s){function i(...u){l(i),s(...u)}return t(i)}function l(s){const i=B.get(e);i&&(i.delete(s),i.size||r())}function r(){B.delete(e)}function a(s,i){var u;(u=B.get(e))==null||u.forEach(v=>v(s,i))}return{on:t,once:o,off:l,emit:a,reset:r}}const fe=["fullscreenchange","webkitfullscreenchange","webkitendfullscreen","mozfullscreenchange","MSFullscreenChange"];function Ct(e,n={}){const{document:t=Me,autoExit:o=!1}=n,l=k(()=>{var m;return(m=F(e))!=null?m:t==null?void 0:t.querySelector("html")}),r=h(!1),a=k(()=>["requestFullscreen","webkitRequestFullscreen","webkitEnterFullscreen","webkitEnterFullScreen","webkitRequestFullScreen","mozRequestFullScreen","msRequestFullscreen"].find(m=>t&&m in t||l.value&&m in l.value)),s=k(()=>["exitFullscreen","webkitExitFullscreen","webkitExitFullScreen","webkitCancelFullScreen","mozCancelFullScreen","msExitFullscreen"].find(m=>t&&m in t||l.value&&m in l.value)),i=k(()=>["fullScreen","webkitIsFullScreen","webkitDisplayingFullscreen","mozFullScreen","msFullscreenElement"].find(m=>t&&m in t||l.value&&m in l.value)),u=["fullscreenElement","webkitFullscreenElement","mozFullScreenElement","msFullscreenElement"].find(m=>t&&m in t),v=$(()=>l.value&&t&&a.value!==void 0&&s.value!==void 0&&i.value!==void 0),f=()=>u?(t==null?void 0:t[u])===l.value:!1,c=()=>{if(i.value){if(t&&t[i.value]!=null)return t[i.value];{const m=l.value;if((m==null?void 0:m[i.value])!=null)return!!m[i.value]}}return!1};async function d(){if(!(!v.value||!r.value)){if(s.value)if((t==null?void 0:t[s.value])!=null)await t[s.value]();else{const m=l.value;(m==null?void 0:m[s.value])!=null&&await m[s.value]()}r.value=!1}}async function p(){if(!v.value||r.value)return;c()&&await d();const m=l.value;a.value&&(m==null?void 0:m[a.value])!=null&&(await m[a.value](),r.value=!0)}async function w(){await(r.value?d():p())}const S=()=>{const m=c();(!m||m&&f())&&(r.value=m)};return _(t,fe,S,!1),_(()=>F(l),fe,S,!1),o&&N(d),{isSupported:v,isFullscreen:r,enter:p,exit:d,toggle:w}}const de=1;function Rt(e,n={}){const{throttle:t=0,idle:o=200,onStop:l=W,onScroll:r=W,offset:a={left:0,right:0,top:0,bottom:0},eventListenerOptions:s={capture:!1,passive:!0},behavior:i="auto",window:u=H,onError:v=b=>{console.error(b)}}=n,f=h(0),c=h(0),d=k({get(){return f.value},set(b){w(b,void 0)}}),p=k({get(){return c.value},set(b){w(void 0,b)}});function w(b,P){var D,y,O,L;if(!u)return;const R=M(e);if(!R)return;(O=R instanceof Document?u.document.body:R)==null||O.scrollTo({top:(D=M(P))!=null?D:p.value,left:(y=M(b))!=null?y:d.value,behavior:M(i)});const j=((L=R==null?void 0:R.document)==null?void 0:L.documentElement)||(R==null?void 0:R.documentElement)||R;d!=null&&(f.value=j.scrollLeft),p!=null&&(c.value=j.scrollTop)}const S=h(!1),m=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,l(b))},x=qe(A,t+o),g=b=>{var P;if(!u)return;const D=((P=b==null?void 0:b.document)==null?void 0:P.documentElement)||(b==null?void 0:b.documentElement)||F(b),{display:y,flexDirection:O}=getComputedStyle(D),L=D.scrollLeft;E.left=L<f.value,E.right=L>f.value;const R=Math.abs(L)<=(a.left||0),j=Math.abs(L)+D.clientWidth>=D.scrollWidth-(a.right||0)-de;y==="flex"&&O==="row-reverse"?(m.left=j,m.right=R):(m.left=R,m.right=j),f.value=L;let z=D.scrollTop;b===u.document&&!z&&(z=u.document.body.scrollTop),E.top=z<c.value,E.bottom=z>c.value;const se=Math.abs(z)<=(a.top||0),ue=Math.abs(z)+D.clientHeight>=D.scrollHeight-(a.bottom||0)-de;y==="flex"&&O==="column-reverse"?(m.top=ue,m.bottom=se):(m.top=se,m.bottom=ue),c.value=z},T=b=>{var P;if(!u)return;const D=(P=b.target.documentElement)!=null?P:b.target;g(D),S.value=!0,x(b),r(b)};return _(e,"scroll",t?Ue(T,t,!0,!1):T,s),U(()=>{try{const b=M(e);if(!b)return;g(b)}catch(b){v(b)}}),_(e,"scrollend",A,s),{x:d,y:p,isScrolling:S,arrivedState:m,directions:E,measure(){const b=M(e);u&&b&&g(b)}}}function Q(e){return typeof Window<"u"&&e instanceof Window?e.document.documentElement:typeof Document<"u"&&e instanceof Document?e.documentElement:e}function Yt(e,n,t={}){const{window:o=H}=t;return dt(e,n,o==null?void 0:o.localStorage,t)}const vt={page:e=>[e.pageX,e.pageY],client:e=>[e.clientX,e.clientY],screen:e=>[e.screenX,e.screenY],movement:e=>e instanceof Touch?null:[e.movementX,e.movementY]};function mt(e={}){const{type:n="page",touch:t=!0,resetOnTouchEnds:o=!1,initialValue:l={x:0,y:0},window:r=H,target:a=r,scroll:s=!0,eventFilter:i}=e;let u=null;const v=h(l.x),f=h(l.y),c=h(null),d=typeof n=="function"?n:vt[n],p=g=>{const T=d(g);u=g,T&&([v.value,f.value]=T,c.value="mouse")},w=g=>{if(g.touches.length>0){const T=d(g.touches[0]);T&&([v.value,f.value]=T,c.value="touch")}},S=()=>{if(!u||!r)return;const g=d(u);u instanceof MouseEvent&&g&&(v.value=g[0]+r.scrollX,f.value=g[1]+r.scrollY)},m=()=>{v.value=l.x,f.value=l.y},E=i?g=>i(()=>p(g),{}):g=>p(g),A=i?g=>i(()=>w(g),{}):g=>w(g),x=i?()=>i(()=>S(),{}):()=>S();if(a){const g={passive:!0};_(a,["mousemove","dragover"],E,g),t&&n!=="movement"&&(_(a,["touchstart","touchmove"],A,g),o&&_(a,"touchend",m,g)),s&&n==="page"&&_(r,"scroll",x,{passive:!0})}return{x:v,y:f,sourceType:c}}function Nt(e,n={}){const{handleOutside:t=!0,window:o=H}=n,l=n.type||"page",{x:r,y:a,sourceType:s}=mt(n),i=h(e??(o==null?void 0:o.document.body)),u=h(0),v=h(0),f=h(0),c=h(0),d=h(0),p=h(0),w=h(!0);let S=()=>{};return o&&(S=C([i,r,a],()=>{const m=F(i);if(!m||!(m instanceof HTMLElement))return;const{left:E,top:A,width:x,height:g}=m.getBoundingClientRect();f.value=E+(l==="page"?o.pageXOffset:0),c.value=A+(l==="page"?o.pageYOffset:0),d.value=g,p.value=x;const T=r.value-f.value,b=a.value-c.value;w.value=x===0||g===0||T<0||b<0||T>x||b>g,(t||!w.value)&&(u.value=T,v.value=b)},{immediate:!0}),_(document,"mouseleave",()=>{w.value=!0})),{x:r,y:a,sourceType:s,elementX:u,elementY:v,elementPositionX:f,elementPositionY:c,elementHeight:d,elementWidth:p,isOutside:w,stop:S}}function zt(e={}){const{touch:n=!0,drag:t=!0,capture:o=!1,initialValue:l=!1,window:r=H}=e,a=h(l),s=h(null);if(!r)return{pressed:a,sourceType:s};const i=f=>()=>{a.value=!0,s.value=f},u=()=>{a.value=!1,s.value=null},v=k(()=>F(e.target)||r);return _(v,"mousedown",i("mouse"),{passive:!0,capture:o}),_(r,"mouseleave",u,{passive:!0,capture:o}),_(r,"mouseup",u,{passive:!0,capture:o}),t&&(_(v,"dragstart",i("mouse"),{passive:!0,capture:o}),_(r,"drop",u,{passive:!0,capture:o}),_(r,"dragend",u,{passive:!0,capture:o})),n&&(_(v,"touchstart",i("touch"),{passive:!0,capture:o}),_(r,"touchend",u,{passive:!0,capture:o}),_(r,"touchcancel",u,{passive:!0,capture:o})),{pressed:a,sourceType:s}}function pt(e={}){const{window:n=H}=e,t=n==null?void 0:n.navigator,o=$(()=>t&&"connection"in t),l=h(!0),r=h(!1),a=h(void 0),s=h(void 0),i=h(void 0),u=h(void 0),v=h(void 0),f=h(void 0),c=h("unknown"),d=o.value&&t.connection;function p(){t&&(l.value=t.onLine,a.value=l.value?void 0:Date.now(),s.value=l.value?Date.now():void 0,d&&(i.value=d.downlink,u.value=d.downlinkMax,f.value=d.effectiveType,v.value=d.rtt,r.value=d.saveData,c.value=d.type))}return n&&(_(n,"offline",()=>{l.value=!1,a.value=Date.now()}),_(n,"online",()=>{l.value=!0,s.value=Date.now()})),d&&_(d,"change",p,!1),p(),{isSupported:o,isOnline:l,saveData:r,offlineAt:a,onlineAt:s,downlink:i,downlinkMax:u,effectiveType:f,rtt:v,type:c}}function It(e={}){const{isOnline:n}=pt(e);return n}function Xt(e={}){const{window:n=H}=e,t=$(()=>n&&"screen"in n&&"orientation"in n.screen),o=t.value?n.screen.orientation:{},l=h(o.type),r=h(o.angle||0);return t.value&&_(n,"orientationchange",()=>{l.value=o.type,r.value=o.angle}),{isSupported:t,orientation:l,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 ht(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 $t(e,n=!1){const t=h(n);let o=null,l="";C(_e(e),s=>{const i=Q(M(s));if(i){const u=i;if(Z.get(u)||Z.set(u,u.style.overflow),u.style.overflow!=="hidden"&&(l=u.style.overflow),u.style.overflow==="hidden")return t.value=!0;if(t.value)return u.style.overflow="hidden"}},{immediate:!0});const r=()=>{const s=Q(M(e));!s||t.value||(V&&(o=_(s,"touchmove",i=>{ht(i)},{passive:!1})),s.style.overflow="hidden",t.value=!0)},a=()=>{const s=Q(M(e));!s||!t.value||(V&&(o==null||o()),s.style.overflow=l,Z.delete(s),t.value=!1)};return N(a),k({get(){return t.value},set(s){s?r():a()}})}function jt(e,n={}){const{threshold:t=50,onSwipe:o,onSwipeEnd:l,onSwipeStart:r,passive:a=!0,window:s=H}=n,i=K({x:0,y:0}),u=K({x:0,y:0}),v=k(()=>i.x-u.x),f=k(()=>i.y-u.y),{max:c,abs:d}=Math,p=k(()=>c(d(v.value),d(f.value))>=t),w=h(!1),S=k(()=>p.value?d(v.value)>d(f.value)?v.value>0?"left":"right":f.value>0?"up":"down":"none"),m=D=>[D.touches[0].clientX,D.touches[0].clientY],E=(D,y)=>{i.x=D,i.y=y},A=(D,y)=>{u.x=D,u.y=y};let x;const g=wt(s==null?void 0:s.document);a?x=g?{passive:!0}:{capture:!1}:x=g?{passive:!1,capture:!0}:{capture:!0};const T=D=>{w.value&&(l==null||l(D,S.value)),w.value=!1},b=[_(e,"touchstart",D=>{if(D.touches.length!==1)return;x.capture&&!x.passive&&D.preventDefault();const[y,O]=m(D);E(y,O),A(y,O),r==null||r(D)},x),_(e,"touchmove",D=>{if(D.touches.length!==1)return;const[y,O]=m(D);A(y,O),!w.value&&p.value&&(w.value=!0),w.value&&(o==null||o(D))},x),_(e,["touchend","touchcancel"],T,x)];return{isPassiveEventSupported:g,isSwiping:w,direction:S,coordsStart:i,coordsEnd:u,lengthX:v,lengthY:f,stop:()=>b.forEach(D=>D())}}function wt(e){if(!e)return!1;let n=!1;const t={get passive(){return n=!0,!1}};return e.addEventListener("x",W,t),e.removeEventListener("x",W),n}function Bt(e={}){const{window:n=H,behavior:t="auto"}=e;if(!n)return{x:h(0),y:h(0)};const o=h(n.scrollX),l=h(n.scrollY),r=k({get(){return o.value},set(s){scrollTo({left:s,behavior:t})}}),a=k({get(){return l.value},set(s){scrollTo({top:s,behavior:t})}});return _(n,"scroll",()=>{o.value=n.scrollX,l.value=n.scrollY},{capture:!1,passive:!0}),{x:r,y:a}}function Vt(e={}){const{window:n=H,initialWidth:t=Number.POSITIVE_INFINITY,initialHeight:o=Number.POSITIVE_INFINITY,listenOrientation:l=!0,includeScrollbar:r=!0,type:a="inner"}=e,s=h(t),i=h(o),u=()=>{n&&(a==="outer"?(s.value=n.outerWidth,i.value=n.outerHeight):r?(s.value=n.innerWidth,i.value=n.innerHeight):(s.value=n.document.documentElement.clientWidth,i.value=n.document.documentElement.clientHeight))};if(u(),U(u),_("resize",u,{passive:!0}),l){const v=st("(orientation: portrait)");C(v,()=>u())}return{width:s,height:i}}function qt(e=null,n){const t=h(e),o=k({set:r=>r?Y.start():Y.done(),get:()=>typeof t.value=="number"&&t.value<1});n&&Y.configure(n);const l=Y.set;return Y.set=r=>(t.value=r,l.call(Y,r)),re(()=>{typeof t.value=="number"&&q&&l.call(Y,t.value)}),N(Y.remove),{isLoading:o,progress:t,start:Y.start,done:Y.done,remove:()=>{t.value=null,Y.remove()}}}function Te(e){var n;const t=M(e);return(n=t==null?void 0:t.$el)!=null?n:t}const ke=q?window:void 0;function X(...e){let n,t,o,l;if(typeof e[0]=="string"||Array.isArray(e[0])?([t,o,l]=e,n=ke):[n,t,o,l]=e,!n)return W;Array.isArray(t)||(t=[t]),Array.isArray(o)||(o=[o]);const r=[],a=()=>{r.forEach(v=>v()),r.length=0},s=(v,f,c,d)=>(v.addEventListener(f,c,d),()=>v.removeEventListener(f,c,d)),i=C(()=>[Te(n),M(l)],([v,f])=>{if(a(),!v)return;const c=be(f)?{...f}:f;r.push(...t.flatMap(d=>o.map(p=>s(v,d,p,c))))},{immediate:!0,flush:"post"}),u=()=>{i(),a()};return N(u),u}const gt=500,yt=10;function ve(e,n,t){var o,l;const r=k(()=>Te(e));let a,s,i,u=!1;function v(){a&&(clearTimeout(a),a=void 0),s=void 0,i=void 0,u=!1}function f(m){var E,A,x;const[g,T,b]=[i,s,u];if(v(),!(t!=null&&t.onMouseUp)||!T||!g||(E=t==null?void 0:t.modifiers)!=null&&E.self&&m.target!==r.value)return;(A=t==null?void 0:t.modifiers)!=null&&A.prevent&&m.preventDefault(),(x=t==null?void 0:t.modifiers)!=null&&x.stop&&m.stopPropagation();const P=m.x-T.x,D=m.y-T.y,y=Math.sqrt(P*P+D*D);t.onMouseUp(m.timeStamp-g,y,b)}function c(m){var E,A,x,g;(E=t==null?void 0:t.modifiers)!=null&&E.self&&m.target!==r.value||(v(),(A=t==null?void 0:t.modifiers)!=null&&A.prevent&&m.preventDefault(),(x=t==null?void 0:t.modifiers)!=null&&x.stop&&m.stopPropagation(),s={x:m.x,y:m.y},i=m.timeStamp,a=setTimeout(()=>{u=!0,n(m)},(g=t==null?void 0:t.delay)!=null?g:gt))}function d(m){var E,A,x,g;if((E=t==null?void 0:t.modifiers)!=null&&E.self&&m.target!==r.value||!s||(t==null?void 0:t.distanceThreshold)===!1)return;(A=t==null?void 0:t.modifiers)!=null&&A.prevent&&m.preventDefault(),(x=t==null?void 0:t.modifiers)!=null&&x.stop&&m.stopPropagation();const T=m.x-s.x,b=m.y-s.y;Math.sqrt(T*T+b*b)>=((g=t==null?void 0:t.distanceThreshold)!=null?g:yt)&&v()}const p={capture:(o=t==null?void 0:t.modifiers)==null?void 0:o.capture,once:(l=t==null?void 0:t.modifiers)==null?void 0:l.once},w=[X(r,"pointerdown",c,p),X(r,"pointermove",d,p),X(r,["pointerup","pointerleave"],f,p)];return()=>w.forEach(m=>m())}const Ut={[De.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:l=ke}=n,r=h(!1);let a;const s=i=>{const u=i?t:o;a&&(clearTimeout(a),a=void 0),u?a=setTimeout(()=>r.value=i,u):r.value=i};return l&&(X(e,"mouseenter",()=>s(!0),{passive:!0}),X(e,"mouseleave",()=>s(!1),{passive:!0})),r}const Gt={[De.mounted](e,n){const t=n.value;if(typeof t=="function"){const o=me(e);C(o,l=>t(l))}else{const[o,l]=t,r=me(e,l);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 Ae(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:Ae(t)}}function St(e){const n=e||window.event,t=n.target;return Ae(t)?!1:n.touches.length>1?!0:(n.preventDefault&&n.preventDefault(),!1)}const te=new WeakMap;function bt(e,n=!1){const t=h(n);let o=null,l="";C(_e(e),s=>{const i=ee(M(s));if(i){const u=i;if(te.get(u)||te.set(u,u.style.overflow),u.style.overflow!=="hidden"&&(l=u.style.overflow),u.style.overflow==="hidden")return t.value=!0;if(t.value)return u.style.overflow="hidden"}},{immediate:!0});const r=()=>{const s=ee(M(e));!s||t.value||(V&&(o=X(s,"touchmove",i=>{St(i)},{passive:!1})),s.style.overflow="hidden",t.value=!0)},a=()=>{const s=ee(M(e));!s||!t.value||(V&&(o==null||o()),s.style.overflow=l,te.delete(s),t.value=!1)};return N(a),k({get(){return t.value},set(s){s?r():a()}})}function Et(){let e=!1;const n=h(!1);return(t,o)=>{if(n.value=o.value,e)return;e=!0;const l=bt(t,o.value);C(n,r=>l.value=r)}}Et();export{Ut as A,Ft as B,xe as C,Ot as a,Xt as b,Mt as c,Vt as d,st as e,Wt as f,jt as g,Bt as h,It as i,qt as j,Pt as k,$t as l,mt as m,Nt as n,At as o,zt as p,Rt as q,xt as r,Lt as s,_ as t,Yt as u,Ht as v,Ct as w,kt as x,Tt as y,Gt as z};
|
package/dist/interface/{Account.CKGX7sS0.0.0.14-test.7.js → Account.CrweQJlo.0.0.14-test.8.js}
RENAMED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{f as se,u as oe,c as re,r as ae,_ as te,d as ne}from"./main.
|
|
1
|
+
import{f as se,u as oe,c as re,r as ae,_ as te,d as ne}from"./main.HFLkPczd.0.0.14-test.8.js";import{F as le,r as _,J as ie,e as j,O as me,R as n,u as e,j as s,T as d,M as o,m as g,f as de,l as ce,V as $,q as ue,n as E,ai as pe,aj as ve}from"./@vue.CIFymae3.0.0.14-test.8.js";import{m as N,a as R,X as D}from"./@mdi.jq8isxax.0.0.14-test.8.js";import{F as v,a as fe}from"./vee-validate.D-fJ-yom.0.0.14-test.8.js";import{i as U}from"./vue3-toastify.B7UO00zu.0.0.14-test.8.js";import{s as _e}from"./pinia.Ca3uWOFQ.0.0.14-test.8.js";import{c as O,d as q,e as J,z as X,V as G,b as H}from"./vuetify.CqQaXzQw.0.0.14-test.8.js";import{u as ge}from"./vue-i18n.CtU7u0LB.0.0.14-test.8.js";import"./vue-inline-svg.C1whQ_4v.0.0.14-test.8.js";import"./axios.BI2i94Vb.0.0.14-test.8.js";import"./@tanstack.CEN6a4k4.0.0.14-test.8.js";import"./vue-router.L_2NU8Dj.0.0.14-test.8.js";import"./@vueuse.Dlqgp-w1.0.0.14-test.8.js";import"./nprogress.CxN4JN9q.0.0.14-test.8.js";import"./@xterm.xg2Y-IKc.0.0.14-test.8.js";import"./@vee-validate.B1gWs4un.0.0.14-test.8.js";import"./zod.BaF2dDCd.0.0.14-test.8.js";import"./uuid.DvF23Exx.0.0.14-test.8.js";import"./socket.io-client.8psAvb-i.0.0.14-test.8.js";import"./engine.io-client.BwNOFMQY.0.0.14-test.8.js";import"./engine.io-parser.BiEtp6m2.0.0.14-test.8.js";import"./@socket.io.Dkula2eQ.0.0.14-test.8.js";import"./socket.io-parser.C9mHhdq2.0.0.14-test.8.js";import"./rxjs.BVPfvhKU.0.0.14-test.8.js";import"./tslib.9k7AwCpt.0.0.14-test.8.js";import"./v-calendar.CNRVgVKX.0.0.14-test.8.js";import"./@popperjs.BQBsAJpH.0.0.14-test.8.js";import"./@intlify.YW_pt133.0.0.14-test.8.js";const b=k=>(pe("data-v-d0553a5c"),k=k(),ve(),k),be={class:"relative"},he={class:"subview-title text-color"},ye={class:"image-upload ml-auto"},we={for:"file-input"},xe={class:"inner-component p-4"},ke={class:"relative"},Ce={for:"username",class:"v-label"},Me=b(()=>s("div",{class:"py-1"},null,-1)),Ve={class:"relative"},$e={for:"password",class:"v-label"},Se=b(()=>s("div",{class:"py-1"},null,-1)),Ie={class:"relative"},Le={for:"passwordConfirm",class:"v-label"},Fe=b(()=>s("div",{class:"py-1"},null,-1)),Te={class:"relative"},ze={for:"sessionTimer",class:"v-label"},Oe=b(()=>s("div",{class:"py-1"},null,-1)),Ae={key:0,style:{"padding-top":"22px"}},Be={class:"relative"},Pe={class:"flex flex-row"},je={class:"v-label m-0 mb-0 ml-2",for:"rememberMe"},Ee={class:"text-sm"},Ne=b(()=>s("div",{class:"py-2"},null,-1)),Re={class:"relative"},De={class:"flex flex-row"},Ue={class:"v-label m-0 mb-0 ml-2",for:"oneLogin"},qe={class:"text-sm"},Je=b(()=>s("div",{class:"py-2"},null,-1)),Xe=le({__name:"Account",setup(k){var B,P;const{smallMobileActive:A}=se(),S=oe(),K=ge(),{loginState:r}=_e(S),I=_("avatar"),C=_(),L=_(),h=_(!1),M=_(!1),V=_(!1);let F=((B=r.value.user)==null?void 0:B.rememberMe)??!1,T=((P=r.value.user)==null?void 0:P.oneLogin)??!1;const Q=()=>{r.value.user&&(r.value.user.rememberMe=!r.value.user.rememberMe)},W=()=>{r.value.user&&(r.value.user.oneLogin=!r.value.user.oneLogin)},Y=()=>{L.value&&(L.value.resetForm(),I.value="avatar",C.value=void 0),r.value.user&&(r.value.user.rememberMe=F,r.value.user.oneLogin=T)},Z=async l=>{var c;const a=(c=l.target)==null?void 0:c.files;C.value=a==null?void 0:a[0],I.value=await ae(l)},ee=async l=>{var y,w,t,i,m,u,x;h.value=!0;let a;const c={...l};delete c.upload;const z=((y=r.value.user)==null?void 0:y.username)!==c.username||c.password&&c.passwordConfirm,f=Object.entries(c).some(([,p])=>p!==void 0);if(C.value&&(a=new FormData,a.append("upload",C.value)),!f&&!a){h.value=!1;return}try{await S.updateUser(c,a,!0),U.success(K.t("components.toast.profile_updated")),F=((w=r.value.user)==null?void 0:w.rememberMe)??F,T=((t=r.value.user)==null?void 0:t.oneLogin)??T,z&&S.logout()}catch(p){U.error(((m=(i=p.response)==null?void 0:i.data)==null?void 0:m.message)??p.message??p),console.error(((x=(u=p.response)==null?void 0:u.data)==null?void 0:x.message)??p.message??p)}h.value=!1};return(l,a)=>{const c=te,z=ie("v-number-input");return j(),me(e(fe),{ref_key:"form",ref:L,class:"flex flex-col w-full","validation-schema":e(re),onSubmit:a[3]||(a[3]=f=>ee(f))},{default:n(()=>{var f,y,w;return[s("div",be,[s("span",he,d(l.$t("views.settings.profile")),1),s("div",ye,[s("label",we,[o(c,{src:e(I),size:"4rem",style:{"border-radius":"4rem",border:"1px solid var(--border)"}},null,8,["src"]),o(e(v),{id:"file-input",type:"file",name:"upload",accept:"image/png,image/jpeg,image/jpg",onChange:a[0]||(a[0]=t=>Z(t))})])]),s("div",xe,[s("div",ke,[s("label",Ce,d(l.$t("components.form.label.username")),1),o(e(v),{name:"username",value:(f=e(r).user)==null?void 0:f.username},{default:n(({field:t,errorMessage:i,errors:m})=>[o(O,g({name:"username",variant:"outlined",density:"compact"},t,{type:"text",error:m.length>0,"error-messages":i}),null,16,["error","error-messages"])]),_:1},8,["value"])]),Me,s("div",Ve,[s("label",$e,d(l.$t("components.form.label.new_password")),1),o(e(v),{name:"password"},{default:n(({field:t,errorMessage:i,errors:m})=>[o(O,g({name:"password",variant:"outlined",density:"compact"},t,{type:e(M)?"text":"password",error:m.length>0,"error-messages":i,"append-inner-icon":e(M)?e(N):e(R),"onClick:appendInner":a[1]||(a[1]=u=>M.value=!e(M))}),null,16,["type","error","error-messages","append-inner-icon"])]),_:1})]),Se,s("div",Ie,[s("label",Le,d(l.$t("components.form.label.new_password_confirm")),1),o(e(v),{name:"passwordConfirm"},{default:n(({field:t,errorMessage:i,errors:m})=>[o(O,g({name:"passwordConfirm",variant:"outlined",density:"compact"},t,{type:e(V)?"text":"password",error:m.length>0,"error-messages":i,"append-inner-icon":e(V)?e(N):e(R),"onClick:appendInner":a[2]||(a[2]=u=>V.value=!e(V))}),null,16,["type","error","error-messages","append-inner-icon"])]),_:1})]),Fe,s("div",Te,[s("label",ze,d(l.$t("components.form.label.session_timer")),1),o(e(v),{name:"sessionTimer",value:(y=e(r).user)==null?void 0:y.sessionTimer},{default:n(({field:t,errorMessage:i,errors:m})=>{var u,x;return[o(z,g({"model-value":t.value,name:"sessionTimer",variant:"outlined",density:"compact"},t,{type:"number",step:600,error:m.length>0,"error-messages":i,disabled:(u=e(r).user)==null?void 0:u.rememberMe,"hide-details":(x=e(r).user)==null?void 0:x.rememberMe}),null,16,["model-value","error","error-messages","disabled","hide-details"])]}),_:1},8,["value"])]),Oe,(w=e(r).user)!=null&&w.rememberMe?(j(),de("div",Ae)):ce("",!0),s("div",Be,[o(e(v),{name:"rememberMe",type:"checkbox","checked-value":!0,"unchecked-value":!1},{default:n(({field:t,errorMessage:i,errors:m})=>[s("div",Pe,[o(q,g({"model-value":e(r).user.rememberMe,name:"rememberMe"},t,{color:"#df2a4c",type:"checkbox",error:m.length>0,"error-messages":i,"hide-details":"",onChange:Q}),null,16,["model-value","error","error-messages"]),s("label",je,d(l.$t("components.form.label.remember_me")),1)])]),_:1}),o(X,{variant:"tonal",color:"#df2a4c"},{prepend:n(()=>[o(J,{color:"#df2a4c",size:"20",class:"mt-1"},{default:n(()=>[$(d(e(D)),1)]),_:1})]),default:n(()=>[s("span",Ee,d(l.$t("components.form.hint.remember_me")),1)]),_:1})]),Ne,s("div",Re,[o(e(v),{name:"oneLogin",type:"checkbox","checked-value":!0,"unchecked-value":!1},{default:n(({field:t,errorMessage:i,errors:m})=>{var u;return[s("div",De,[o(q,g({"model-value":(u=e(r).user)==null?void 0:u.oneLogin,name:"oneLogin"},t,{color:"#df2a4c",type:"checkbox",error:m.length>0,"error-messages":i,"hide-details":"",onChange:W}),null,16,["model-value","error","error-messages"]),s("label",Ue,d(l.$t("components.form.label.one_login")),1)])]}),_:1}),o(X,{variant:"tonal",color:"#df2a4c"},{prepend:n(()=>[o(J,{color:"#df2a4c",size:"20",class:"mt-1"},{default:n(()=>[$(d(e(D)),1)]),_:1})]),default:n(()=>[s("span",qe,d(l.$t("components.form.hint.one_login")),1)]),_:1})]),Je])]),s("div",{class:E(["flex flex-row my-5",{"mr-3":e(A)}])},[o(H,{class:"ml-auto mr-2 text-color bg-color-lighten",elevation:"0",tonal:"",style:{border:"1px solid rgba(var(--border-rgb), 0.75)"},loading:e(h),onClick:ue(Y,["prevent"])},{loader:n(()=>[o(G,{class:"text-color",size:"14",width:"2",indeterminate:""})]),default:n(()=>[$(d(l.$t("components.form.button.cancel")),1)]),_:1},8,["loading"]),o(H,{class:E(["text-white bg-color-primary",{"mr-2":e(A)}]),loading:e(h),elevation:"0",tonal:"",style:{border:"1px solid var(--color-primary-darken-2)"},type:"submit"},{loader:n(()=>[o(G,{color:"#fff",size:"14",width:"2",indeterminate:""})]),default:n(()=>[$(d(l.$t("components.form.button.save")),1)]),_:1},8,["loading","class"])],2)]}),_:1},8,["validation-schema"])}}}),ws=ne(Xe,[["__scopeId","data-v-d0553a5c"]]);export{ws as default};
|