@camera.ui/server 0.0.45 → 0.0.46
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.BldW7pn2.0.0.45.js → @tanstack.DpCjjLhb.0.0.46.js} +1 -1
- package/dist/interface/{@vee-validate.Bx5gwLSJ.0.0.45.js → @vee-validate.Bs1leH4B.0.0.46.js} +1 -1
- package/dist/interface/{@vue.DFpgkscf.0.0.45.js → @vue.YfIN5b-F.0.0.46.js} +1 -1
- package/dist/interface/{@vueform.BmxwIjpV.0.0.45.js → @vueform.BJR4IpsZ.0.0.46.js} +1 -1
- package/dist/interface/{@vueuse.BFH9jp_l.0.0.45.js → @vueuse.CaSJn4a8.0.0.46.js} +1 -1
- package/dist/interface/{Account.BrI8b97M.0.0.45.js → Account.Dc4r6VZb.0.0.46.js} +1 -1
- package/dist/interface/{Adminpanel.CZ8eKlby.0.0.45.js → Adminpanel.DpslhzP8.0.0.46.js} +2 -2
- package/dist/interface/{Appearance.DlDHUPhB.0.0.45.js → Appearance.2hNmUdvZ.0.0.46.js} +1 -1
- package/dist/interface/{Backup.Dz_2rEQ2.0.0.45.js → Backup.Cgx3NOgu.0.0.46.js} +1 -1
- package/dist/interface/{Camera.D080CN6C.0.0.45.js → Camera.3YFilISm.0.0.46.js} +1 -1
- package/dist/interface/{Cameras.B1L5CZJk.0.0.45.js → Cameras.D_qN-YP9.0.0.46.js} +1 -1
- package/dist/interface/{Camview.kuNFMhEp.0.0.45.js → Camview.BcBI0FdV.0.0.46.js} +1 -1
- package/dist/interface/{Config.BkWnvxWu.0.0.45.js → Config.DyReTfde.0.0.46.js} +1 -1
- package/dist/interface/{Console.DqgdfOUv.0.0.45.js → Console.CGFpSWqs.0.0.46.js} +1 -1
- package/dist/interface/{FirstSteps.Dye2bU6h.0.0.45.js → FirstSteps.DMrosuCb.0.0.46.js} +1 -1
- package/dist/interface/{NewCamera.B84EzyGl.0.0.45.js → NewCamera.B-OnBuJr.0.0.46.js} +1 -1
- package/dist/interface/{Plugin.-GjawGOv.0.0.45.js → Plugin.CkU9vKuL.0.0.46.js} +1 -1
- package/dist/interface/{Plugins.BLARBEtk.0.0.45.js → Plugins.ySDRgHss.0.0.46.js} +1 -1
- package/dist/interface/Recordings.COHp32zT.0.0.46.js +1 -0
- package/dist/interface/Recordings.CjfNumxB.0.0.46.js +1 -0
- package/dist/interface/{Settings.CmRc3vXX.0.0.45.js → Settings.q3mC5O2X.0.0.46.js} +1 -1
- package/dist/interface/{System.B5sf3kzS.0.0.45.js → System.DAwAIoTW.0.0.46.js} +1 -1
- package/dist/interface/{User.BTGFkKIw.0.0.45.js → User.3iXc8BwJ.0.0.46.js} +1 -1
- package/dist/interface/{VConfigEditor.vue_vue_type_script_setup_true_lang.BnnCreKz.0.0.45.js → VConfigEditor.vue_vue_type_script_setup_true_lang.ChUNu--D.0.0.46.js} +2 -2
- package/dist/interface/{VConsole.Crq8DX_5.0.0.45.js → VConsole.DT3e4YM-.0.0.46.js} +1 -1
- package/dist/interface/{VPlayer.CtlvFMMN.0.0.45.js → VPlayer.D0E5Lw70.0.0.46.js} +1 -1
- package/dist/interface/{VPluginCard.BkFOH9s0.0.0.45.js → VPluginCard.DrTI-x6r.0.0.46.js} +1 -1
- package/dist/interface/{ace-builds.BfF34xfd.0.0.45.js → ace-builds.iNjWqSW3.0.0.46.js} +1 -1
- package/dist/interface/{apexcharts.C53Z8kU0.0.0.45.js → apexcharts.Cp5axPS1.0.0.46.js} +1 -1
- package/dist/interface/{backup.hJp8-T9X.0.0.45.js → backup.DHvUA-qh.0.0.46.js} +1 -1
- package/dist/interface/{dnd-core.D3UnQLUG.0.0.45.js → dnd-core.B4lLH3kr.0.0.46.js} +1 -1
- package/dist/interface/{draggabilly.DJw_bpZh.0.0.45.js → draggabilly.CTmmLEk2.0.0.46.js} +1 -1
- package/dist/interface/{engine.io-client.D7ocKqFc.0.0.45.js → engine.io-client.BAIdff8t.0.0.46.js} +1 -1
- package/dist/interface/{fast-deep-equal.BheVKYg1.0.0.45.js → fast-deep-equal.DIpi-R9G.0.0.46.js} +1 -1
- package/dist/interface/{highlight.js.BpPx4Wo2.0.0.45.js → highlight.js.BdZCfgsO.0.0.46.js} +1 -1
- package/dist/interface/index.html +32 -32
- package/dist/interface/{linkify-it.DdmkNmm6.0.0.45.js → linkify-it.CFjEs7Ib.0.0.46.js} +1 -1
- package/dist/interface/{main.D-gp6TVo.0.0.45.js → main.BAJ_SBax.0.0.46.js} +3 -3
- package/dist/interface/{markdown-it.C6vK__-a.0.0.45.js → markdown-it.BjTkcooo.0.0.46.js} +1 -1
- package/dist/interface/{nprogress.B_R835zT.0.0.45.js → nprogress.Dxe0bwSt.0.0.46.js} +1 -1
- package/dist/interface/{pinia.dOjY6zl1.0.0.45.js → pinia.D5BiAQDi.0.0.46.js} +1 -1
- package/dist/interface/{plugins.B9le-5er.0.0.45.js → plugins.C5ClAgpW.0.0.46.js} +1 -1
- package/dist/interface/{qrcode.DasOcvrJ.0.0.45.js → qrcode.BdkYO5nc.0.0.46.js} +1 -1
- package/dist/interface/{react-dnd-touch-backend.DEzIegCP.0.0.45.js → react-dnd-touch-backend.nZGaXD9C.0.0.46.js} +1 -1
- package/dist/interface/{rxjs.CZVfaojv.0.0.45.js → rxjs.mfVNcnDG.0.0.46.js} +1 -1
- package/dist/interface/{socket.io-client.Du7JvEYF.0.0.45.js → socket.io-client.DQuzwRyg.0.0.46.js} +1 -1
- package/dist/interface/{socket.io-parser.DgA5tOsc.0.0.45.js → socket.io-parser.Bcxk4LCf.0.0.46.js} +1 -1
- package/dist/interface/sw.js +1 -1
- package/dist/interface/{system.C1IHtnQv.0.0.45.js → system.gZMLRtGG.0.0.46.js} +1 -1
- package/dist/interface/{unidragger.D4qmsqaN.0.0.45.js → unidragger.Dn3KP50T.0.0.46.js} +1 -1
- package/dist/interface/{vee-validate.o7HVSDm2.0.0.45.js → vee-validate.7Af0cEu8.0.0.46.js} +1 -1
- package/dist/interface/{vue-i18n.Ba8N7kRA.0.0.45.js → vue-i18n.T2yW9_E4.0.0.46.js} +1 -1
- package/dist/interface/{vue-inline-svg.DghS3cx5.0.0.45.js → vue-inline-svg.CZF3xeGC.0.0.46.js} +1 -1
- package/dist/interface/{vue-router.gxs9nsZZ.0.0.45.js → vue-router.BUv32z-J.0.0.46.js} +1 -1
- package/dist/interface/{vue3-apexcharts.Dyd_bJB4.0.0.45.js → vue3-apexcharts.DFi4koaq.0.0.46.js} +1 -1
- package/dist/interface/{vue3-dnd.Co8oBhbd.0.0.45.js → vue3-dnd.DZ4V2dzk.0.0.46.js} +1 -1
- package/dist/interface/{vue3-toastify.ZEilHsAG.0.0.45.js → vue3-toastify.CFDXIP-M.0.0.46.js} +1 -1
- package/dist/interface/{vuetify.q8wsP-ZF.0.0.45.js → vuetify.C_-bCfce.0.0.46.js} +1 -1
- package/dist/server/package.json +2 -2
- package/dist/server/src/nats/server.js +1 -1
- package/package.json +2 -2
- package/dist/interface/Recordings.BkTcrmvx.0.0.45.js +0 -1
- package/dist/interface/Recordings.DSmJKrZ8.0.0.45.js +0 -1
- /package/dist/interface/{@babel.l0sNRNKZ.0.0.45.js → @babel.l0sNRNKZ.0.0.46.js} +0 -0
- /package/dist/interface/{@intlify.Do1-T-x0.0.0.45.js → @intlify.Do1-T-x0.0.0.46.js} +0 -0
- /package/dist/interface/{@mdi.CbjpODVZ.0.0.45.js → @mdi.CbjpODVZ.0.0.46.js} +0 -0
- /package/dist/interface/{@react-dnd.CcwRs9xb.0.0.45.js → @react-dnd.CcwRs9xb.0.0.46.js} +0 -0
- /package/dist/interface/{@socket.io.Dkula2eQ.0.0.45.js → @socket.io.Dkula2eQ.0.0.46.js} +0 -0
- /package/dist/interface/{@xterm.C0U3Pc5N.0.0.45.js → @xterm.qzCwKTgt.0.0.46.js} +0 -0
- /package/dist/interface/assets/{@vueform.0.0.45.CroAHJs8.css → @vueform.0.0.46.CroAHJs8.css} +0 -0
- /package/dist/interface/assets/{@xterm.0.0.45.CFbL2ovg.css → @xterm.0.0.46.CFbL2ovg.css} +0 -0
- /package/dist/interface/assets/{Account.0.0.45.Bnw6Lbtd.css → Account.0.0.46.Bnw6Lbtd.css} +0 -0
- /package/dist/interface/assets/{Adminpanel.0.0.45.a3t1v3MB.css → Adminpanel.0.0.46.a3t1v3MB.css} +0 -0
- /package/dist/interface/assets/{Backup.0.0.45.CX0rT0QJ.css → Backup.0.0.46.CX0rT0QJ.css} +0 -0
- /package/dist/interface/assets/{Camera.0.0.45.Br9s6-lM.css → Camera.0.0.46.Br9s6-lM.css} +0 -0
- /package/dist/interface/assets/{Cameras.0.0.45.Buf1Dgce.css → Cameras.0.0.46.Buf1Dgce.css} +0 -0
- /package/dist/interface/assets/{Camview.0.0.45.B7Cja2ry.css → Camview.0.0.46.B7Cja2ry.css} +0 -0
- /package/dist/interface/assets/{Config.0.0.45.DNGo2krN.css → Config.0.0.46.DNGo2krN.css} +0 -0
- /package/dist/interface/assets/{Console.0.0.45.Bh8l9QnM.css → Console.0.0.46.Bh8l9QnM.css} +0 -0
- /package/dist/interface/assets/{FirstSteps.0.0.45.Mu8VPl13.css → FirstSteps.0.0.46.Mu8VPl13.css} +0 -0
- /package/dist/interface/assets/{NewCamera.0.0.45.C7CL-ujd.css → NewCamera.0.0.46.C7CL-ujd.css} +0 -0
- /package/dist/interface/assets/{Plugin.0.0.45.YIpAU1_n.css → Plugin.0.0.46.YIpAU1_n.css} +0 -0
- /package/dist/interface/assets/{Plugins.0.0.45.DXSoO9M1.css → Plugins.0.0.46.DXSoO9M1.css} +0 -0
- /package/dist/interface/assets/{Settings.0.0.45.CVmui2kE.css → Settings.0.0.46.CVmui2kE.css} +0 -0
- /package/dist/interface/assets/{User.0.0.45.BiGtIFqt.css → User.0.0.46.BiGtIFqt.css} +0 -0
- /package/dist/interface/assets/{VConsole.0.0.45.BCqKHpmJ.css → VConsole.0.0.46.BCqKHpmJ.css} +0 -0
- /package/dist/interface/assets/{VPlayer.0.0.45.C4lm2rVR.css → VPlayer.0.0.46.C4lm2rVR.css} +0 -0
- /package/dist/interface/assets/{VPluginCard.0.0.45.C8Lj6X-J.css → VPluginCard.0.0.46.C8Lj6X-J.css} +0 -0
- /package/dist/interface/assets/{highlight.0.0.45.Ch2EwETz.css → highlight.0.0.46.Ch2EwETz.css} +0 -0
- /package/dist/interface/assets/{logo-256.0.0.45.BCQk9H1-.png → logo-256.0.0.46.BCQk9H1-.png} +0 -0
- /package/dist/interface/assets/{logo-512.0.0.45.DLKVOU2S.png → logo-512.0.0.46.DLKVOU2S.png} +0 -0
- /package/dist/interface/assets/{logo.0.0.45.DmEiRk0z.png → logo.0.0.46.DmEiRk0z.png} +0 -0
- /package/dist/interface/assets/{main.0.0.45.OJngntGT.css → main.0.0.46.OJngntGT.css} +0 -0
- /package/dist/interface/assets/{mode-json.0.0.45.Br7xisR1.js → mode-json.0.0.46.Br7xisR1.js} +0 -0
- /package/dist/interface/assets/{mode-yaml.0.0.45.CIYL8U3d.js → mode-yaml.0.0.46.CIYL8U3d.js} +0 -0
- /package/dist/interface/assets/{vue3-toastify.0.0.45.DHXAGmwn.css → vue3-toastify.0.0.46.DHXAGmwn.css} +0 -0
- /package/dist/interface/assets/{vuetify.0.0.45.Dua9WSqa.css → vuetify.0.0.46.Dua9WSqa.css} +0 -0
- /package/dist/interface/{axios.DIsA03vz.0.0.45.js → axios.DIsA03vz.0.0.46.js} +0 -0
- /package/dist/interface/{birpc.l0sNRNKZ.0.0.45.js → birpc.l0sNRNKZ.0.0.46.js} +0 -0
- /package/dist/interface/{compare-versions.DqEOhma6.0.0.45.js → compare-versions.DqEOhma6.0.0.46.js} +0 -0
- /package/dist/interface/{dijkstrajs.C00ieaqj.0.0.45.js → dijkstrajs.C00ieaqj.0.0.46.js} +0 -0
- /package/dist/interface/{engine.io-parser.BiEtp6m2.0.0.45.js → engine.io-parser.BiEtp6m2.0.0.46.js} +0 -0
- /package/dist/interface/{entities.C20TfXL6.0.0.45.js → entities.C20TfXL6.0.0.46.js} +0 -0
- /package/dist/interface/{ev-emitter.X5f1qa-c.0.0.45.js → ev-emitter.X5f1qa-c.0.0.46.js} +0 -0
- /package/dist/interface/{get-size.D1dS-IaP.0.0.45.js → get-size.D1dS-IaP.0.0.46.js} +0 -0
- /package/dist/interface/{hookable.B8xFkYCm.0.0.45.js → hookable.B8xFkYCm.0.0.46.js} +0 -0
- /package/dist/interface/{mdurl.k9Sl0PQj.0.0.45.js → mdurl.k9Sl0PQj.0.0.46.js} +0 -0
- /package/dist/interface/{perfect-debounce.Cp2ysxOb.0.0.45.js → perfect-debounce.Cp2ysxOb.0.0.46.js} +0 -0
- /package/dist/interface/{punycode.js.Dj65hjkv.0.0.45.js → punycode.js.Dj65hjkv.0.0.46.js} +0 -0
- /package/dist/interface/{react-dnd-html5-backend.1HQjlkwI.0.0.45.js → react-dnd-html5-backend.1HQjlkwI.0.0.46.js} +0 -0
- /package/dist/interface/{redux.BFxtlG_c.0.0.45.js → redux.BFxtlG_c.0.0.46.js} +0 -0
- /package/dist/interface/{tslib.9k7AwCpt.0.0.45.js → tslib.9k7AwCpt.0.0.46.js} +0 -0
- /package/dist/interface/{types.Cz9TaZAP.0.0.45.js → types.Cz9TaZAP.0.0.46.js} +0 -0
- /package/dist/interface/{uc.micro.kMc2yuuw.0.0.45.js → uc.micro.kMc2yuuw.0.0.46.js} +0 -0
- /package/dist/interface/{utils.mAKpSMLY.0.0.45.js → utils.mAKpSMLY.0.0.46.js} +0 -0
- /package/dist/interface/{uuid.Ch9TGLTe.0.0.45.js → uuid.Ch9TGLTe.0.0.46.js} +0 -0
- /package/dist/interface/{vue.l0sNRNKZ.0.0.45.js → vue.l0sNRNKZ.0.0.46.js} +0 -0
- /package/dist/interface/{zod.bkdEMpUp.0.0.45.js → zod.bkdEMpUp.0.0.46.js} +0 -0
|
@@ -1 +1 @@
|
|
|
1
|
-
var pe=s=>{throw TypeError(s)};var Vt=(s,t,e)=>t.has(s)||pe("Cannot "+e);var r=(s,t,e)=>(Vt(s,t,"read from private field"),e?e.call(s):t.get(s)),l=(s,t,e)=>t.has(s)?pe("Cannot add the same private member more than once"):t instanceof WeakSet?t.add(s):t.set(s,e),h=(s,t,e,i)=>(Vt(s,t,"write to private field"),i?i.call(s,e):t.set(s,e),e),p=(s,t,e)=>(Vt(s,t,"access private method"),e);var _t=(s,t,e,i)=>({set _(n){h(s,t,n,e)},get _(){return r(s,t,i)}});import{i as qe,u as Ze,h as ts,a as es,r as ss,n as is,c as je,s as Te,w as gt,o as xe,t as Ke}from"./@vue.DFpgkscf.0.0.45.js";var qt=class{constructor(){this.listeners=new Set,this.subscribe=this.subscribe.bind(this)}subscribe(s){return this.listeners.add(s),this.onSubscribe(),()=>{this.listeners.delete(s),this.onUnsubscribe()}}hasListeners(){return this.listeners.size>0}onSubscribe(){}onUnsubscribe(){}},pt=typeof window>"u"||"Deno"in globalThis;function H(){}function rs(s,t){return typeof s=="function"?s(t):s}function Wt(s){return typeof s=="number"&&s>=0&&s!==1/0}function Le(s,t){return Math.max(s+(t||0)-Date.now(),0)}function Ot(s,t){return typeof s=="function"?s(t):s}function G(s,t){return typeof s=="function"?s(t):s}function me(s,t){const{type:e="all",exact:i,fetchStatus:n,predicate:a,queryKey:o,stale:u}=s;if(o){if(i){if(t.queryHash!==le(o,t.options))return!1}else if(!Tt(t.queryKey,o))return!1}if(e!=="all"){const y=t.isActive();if(e==="active"&&!y||e==="inactive"&&y)return!1}return!(typeof u=="boolean"&&t.isStale()!==u||n&&n!==t.state.fetchStatus||a&&!a(t))}function ve(s,t){const{exact:e,status:i,predicate:n,mutationKey:a}=s;if(a){if(!t.options.mutationKey)return!1;if(e){if(mt(t.options.mutationKey)!==mt(a))return!1}else if(!Tt(t.options.mutationKey,a))return!1}return!(i&&t.state.status!==i||n&&!n(t))}function le(s,t){return((t==null?void 0:t.queryKeyHashFn)||mt)(s)}function mt(s){return JSON.stringify(s,(t,e)=>Yt(e)?Object.keys(e).sort().reduce((i,n)=>(i[n]=e[n],i),{}):e)}function Tt(s,t){return s===t?!0:typeof s!=typeof t?!1:s&&t&&typeof s=="object"&&typeof t=="object"?!Object.keys(t).some(e=>!Tt(s[e],t[e])):!1}function ke(s,t){if(s===t)return s;const e=be(s)&&be(t);if(e||Yt(s)&&Yt(t)){const i=e?s:Object.keys(s),n=i.length,a=e?t:Object.keys(t),o=a.length,u=e?[]:{};let y=0;for(let w=0;w<o;w++){const f=e?w:a[w];(!e&&i.includes(f)||e)&&s[f]===void 0&&t[f]===void 0?(u[f]=void 0,y++):(u[f]=ke(s[f],t[f]),u[f]===s[f]&&s[f]!==void 0&&y++)}return n===o&&y===n?s:u}return t}function $t(s,t){if(!t||Object.keys(s).length!==Object.keys(t).length)return!1;for(const e in s)if(s[e]!==t[e])return!1;return!0}function be(s){return Array.isArray(s)&&s.length===Object.keys(s).length}function Yt(s){if(!ge(s))return!1;const t=s.constructor;if(t===void 0)return!0;const e=t.prototype;return!(!ge(e)||!e.hasOwnProperty("isPrototypeOf")||Object.getPrototypeOf(s)!==Object.prototype)}function ge(s){return Object.prototype.toString.call(s)==="[object Object]"}function ns(s){return new Promise(t=>{setTimeout(t,s)})}function Jt(s,t,e){return typeof e.structuralSharing=="function"?e.structuralSharing(s,t):e.structuralSharing!==!1?ke(s,t):t}function as(s,t,e=0){const i=[...s,t];return e&&i.length>e?i.slice(1):i}function us(s,t,e=0){const i=[t,...s];return e&&i.length>e?i.slice(0,-1):i}var fe=Symbol();function He(s,t){return!s.queryFn&&(t!=null&&t.initialPromise)?()=>t.initialPromise:!s.queryFn||s.queryFn===fe?()=>Promise.reject(new Error(`Missing queryFn: '${s.queryHash}'`)):s.queryFn}var ot,Z,Ct,Se,os=(Se=class extends qt{constructor(){super();l(this,ot);l(this,Z);l(this,Ct);h(this,Ct,t=>{if(!pt&&window.addEventListener){const e=()=>t();return window.addEventListener("visibilitychange",e,!1),()=>{window.removeEventListener("visibilitychange",e)}}})}onSubscribe(){r(this,Z)||this.setEventListener(r(this,Ct))}onUnsubscribe(){var t;this.hasListeners()||((t=r(this,Z))==null||t.call(this),h(this,Z,void 0))}setEventListener(t){var e;h(this,Ct,t),(e=r(this,Z))==null||e.call(this),h(this,Z,t(i=>{typeof i=="boolean"?this.setFocused(i):this.onFocus()}))}setFocused(t){r(this,ot)!==t&&(h(this,ot,t),this.onFocus())}onFocus(){const t=this.isFocused();this.listeners.forEach(e=>{e(t)})}isFocused(){var t;return typeof r(this,ot)=="boolean"?r(this,ot):((t=globalThis.document)==null?void 0:t.visibilityState)!=="hidden"}},ot=new WeakMap,Z=new WeakMap,Ct=new WeakMap,Se),de=new os,wt,tt,Qt,Pe,hs=(Pe=class extends qt{constructor(){super();l(this,wt,!0);l(this,tt);l(this,Qt);h(this,Qt,t=>{if(!pt&&window.addEventListener){const e=()=>t(!0),i=()=>t(!1);return window.addEventListener("online",e,!1),window.addEventListener("offline",i,!1),()=>{window.removeEventListener("online",e),window.removeEventListener("offline",i)}}})}onSubscribe(){r(this,tt)||this.setEventListener(r(this,Qt))}onUnsubscribe(){var t;this.hasListeners()||((t=r(this,tt))==null||t.call(this),h(this,tt,void 0))}setEventListener(t){var e;h(this,Qt,t),(e=r(this,tt))==null||e.call(this),h(this,tt,t(this.setOnline.bind(this)))}setOnline(t){r(this,wt)!==t&&(h(this,wt,t),this.listeners.forEach(i=>{i(t)}))}isOnline(){return r(this,wt)}},wt=new WeakMap,tt=new WeakMap,Qt=new WeakMap,Pe),Bt=new hs;function Xt(){let s,t;const e=new Promise((n,a)=>{s=n,t=a});e.status="pending",e.catch(()=>{});function i(n){Object.assign(e,n),delete e.resolve,delete e.reject}return e.resolve=n=>{i({status:"fulfilled",value:n}),s(n)},e.reject=n=>{i({status:"rejected",reason:n}),t(n)},e}function cs(s){return Math.min(1e3*2**s,3e4)}function _e(s){return(s??"online")==="online"?Bt.isOnline():!0}var Ne=class extends Error{constructor(s){super("CancelledError"),this.revert=s==null?void 0:s.revert,this.silent=s==null?void 0:s.silent}};function zt(s){return s instanceof Ne}function Ge(s){let t=!1,e=0,i=!1,n;const a=Xt(),o=m=>{var g;i||(O(new Ne(m)),(g=s.abort)==null||g.call(s))},u=()=>{t=!0},y=()=>{t=!1},w=()=>de.isFocused()&&(s.networkMode==="always"||Bt.isOnline())&&s.canRun(),f=()=>_e(s.networkMode)&&s.canRun(),c=m=>{var g;i||(i=!0,(g=s.onSuccess)==null||g.call(s,m),n==null||n(),a.resolve(m))},O=m=>{var g;i||(i=!0,(g=s.onError)==null||g.call(s,m),n==null||n(),a.reject(m))},d=()=>new Promise(m=>{var g;n=F=>{(i||w())&&m(F)},(g=s.onPause)==null||g.call(s)}).then(()=>{var m;n=void 0,i||(m=s.onContinue)==null||m.call(s)}),Q=()=>{if(i)return;let m;const g=e===0?s.initialPromise:void 0;try{m=g??s.fn()}catch(F){m=Promise.reject(F)}Promise.resolve(m).then(c).catch(F=>{var _;if(i)return;const E=s.retry??(pt?0:3),P=s.retryDelay??cs,A=typeof P=="function"?P(e,F):P,K=E===!0||typeof E=="number"&&e<E||typeof E=="function"&&E(e,F);if(t||!K){O(F);return}e++,(_=s.onFail)==null||_.call(s,e,F),ns(A).then(()=>w()?void 0:d()).then(()=>{t?O(F):Q()})})};return{promise:a,cancel:o,continue:()=>(n==null||n(),a),cancelRetry:u,continueRetry:y,canStart:f,start:()=>(f()?Q():d().then(Q),a)}}function ls(){let s=[],t=0,e=u=>{u()},i=u=>{u()},n=u=>setTimeout(u,0);const a=u=>{t?s.push(u):n(()=>{e(u)})},o=()=>{const u=s;s=[],u.length&&n(()=>{i(()=>{u.forEach(y=>{e(y)})})})};return{batch:u=>{let y;t++;try{y=u()}finally{t--,t||o()}return y},batchCalls:u=>(...y)=>{a(()=>{u(...y)})},schedule:a,setNotifyFunction:u=>{e=u},setBatchNotifyFunction:u=>{i=u},setScheduler:u=>{n=u}}}var M=ls(),ht,Re,$e=(Re=class{constructor(){l(this,ht)}destroy(){this.clearGcTimeout()}scheduleGc(){this.clearGcTimeout(),Wt(this.gcTime)&&h(this,ht,setTimeout(()=>{this.optionalRemove()},this.gcTime))}updateGcTime(s){this.gcTime=Math.max(this.gcTime||0,s??(pt?1/0:5*60*1e3))}clearGcTimeout(){r(this,ht)&&(clearTimeout(r(this,ht)),h(this,ht,void 0))}},ht=new WeakMap,Re),St,Pt,k,U,xt,ct,N,W,Fe,fs=(Fe=class extends $e{constructor(t){super();l(this,N);l(this,St);l(this,Pt);l(this,k);l(this,U);l(this,xt);l(this,ct);h(this,ct,!1),h(this,xt,t.defaultOptions),this.setOptions(t.options),this.observers=[],h(this,k,t.cache),this.queryKey=t.queryKey,this.queryHash=t.queryHash,h(this,St,ds(this.options)),this.state=t.state??r(this,St),this.scheduleGc()}get meta(){return this.options.meta}get promise(){var t;return(t=r(this,U))==null?void 0:t.promise}setOptions(t){this.options={...r(this,xt),...t},this.updateGcTime(this.options.gcTime)}optionalRemove(){!this.observers.length&&this.state.fetchStatus==="idle"&&r(this,k).remove(this)}setData(t,e){const i=Jt(this.state.data,t,this.options);return p(this,N,W).call(this,{data:i,type:"success",dataUpdatedAt:e==null?void 0:e.updatedAt,manual:e==null?void 0:e.manual}),i}setState(t,e){p(this,N,W).call(this,{type:"setState",state:t,setStateOptions:e})}cancel(t){var i,n;const e=(i=r(this,U))==null?void 0:i.promise;return(n=r(this,U))==null||n.cancel(t),e?e.then(H).catch(H):Promise.resolve()}destroy(){super.destroy(),this.cancel({silent:!0})}reset(){this.destroy(),this.setState(r(this,St))}isActive(){return this.observers.some(t=>G(t.options.enabled,this)!==!1)}isDisabled(){return this.getObserversCount()>0?!this.isActive():this.options.queryFn===fe||this.state.dataUpdateCount+this.state.errorUpdateCount===0}isStale(){return this.state.isInvalidated?!0:this.getObserversCount()>0?this.observers.some(t=>t.getCurrentResult().isStale):this.state.data===void 0}isStaleByTime(t=0){return this.state.isInvalidated||this.state.data===void 0||!Le(this.state.dataUpdatedAt,t)}onFocus(){var e;const t=this.observers.find(i=>i.shouldFetchOnWindowFocus());t==null||t.refetch({cancelRefetch:!1}),(e=r(this,U))==null||e.continue()}onOnline(){var e;const t=this.observers.find(i=>i.shouldFetchOnReconnect());t==null||t.refetch({cancelRefetch:!1}),(e=r(this,U))==null||e.continue()}addObserver(t){this.observers.includes(t)||(this.observers.push(t),this.clearGcTimeout(),r(this,k).notify({type:"observerAdded",query:this,observer:t}))}removeObserver(t){this.observers.includes(t)&&(this.observers=this.observers.filter(e=>e!==t),this.observers.length||(r(this,U)&&(r(this,ct)?r(this,U).cancel({revert:!0}):r(this,U).cancelRetry()),this.scheduleGc()),r(this,k).notify({type:"observerRemoved",query:this,observer:t}))}getObserversCount(){return this.observers.length}invalidate(){this.state.isInvalidated||p(this,N,W).call(this,{type:"invalidate"})}fetch(t,e){var y,w,f;if(this.state.fetchStatus!=="idle"){if(this.state.data!==void 0&&(e!=null&&e.cancelRefetch))this.cancel({silent:!0});else if(r(this,U))return r(this,U).continueRetry(),r(this,U).promise}if(t&&this.setOptions(t),!this.options.queryFn){const c=this.observers.find(O=>O.options.queryFn);c&&this.setOptions(c.options)}const i=new AbortController,n=c=>{Object.defineProperty(c,"signal",{enumerable:!0,get:()=>(h(this,ct,!0),i.signal)})},a=()=>{const c=He(this.options,e),O={queryKey:this.queryKey,meta:this.meta};return n(O),h(this,ct,!1),this.options.persister?this.options.persister(c,O,this):c(O)},o={fetchOptions:e,options:this.options,queryKey:this.queryKey,state:this.state,fetchFn:a};n(o),(y=this.options.behavior)==null||y.onFetch(o,this),h(this,Pt,this.state),(this.state.fetchStatus==="idle"||this.state.fetchMeta!==((w=o.fetchOptions)==null?void 0:w.meta))&&p(this,N,W).call(this,{type:"fetch",meta:(f=o.fetchOptions)==null?void 0:f.meta});const u=c=>{var O,d,Q,m;zt(c)&&c.silent||p(this,N,W).call(this,{type:"error",error:c}),zt(c)||((d=(O=r(this,k).config).onError)==null||d.call(O,c,this),(m=(Q=r(this,k).config).onSettled)==null||m.call(Q,this.state.data,c,this)),this.scheduleGc()};return h(this,U,Ge({initialPromise:e==null?void 0:e.initialPromise,fn:o.fetchFn,abort:i.abort.bind(i),onSuccess:c=>{var O,d,Q,m;if(c===void 0){u(new Error(`${this.queryHash} data is undefined`));return}try{this.setData(c)}catch(g){u(g);return}(d=(O=r(this,k).config).onSuccess)==null||d.call(O,c,this),(m=(Q=r(this,k).config).onSettled)==null||m.call(Q,c,this.state.error,this),this.scheduleGc()},onError:u,onFail:(c,O)=>{p(this,N,W).call(this,{type:"failed",failureCount:c,error:O})},onPause:()=>{p(this,N,W).call(this,{type:"pause"})},onContinue:()=>{p(this,N,W).call(this,{type:"continue"})},retry:o.options.retry,retryDelay:o.options.retryDelay,networkMode:o.options.networkMode,canRun:()=>!0})),r(this,U).start()}},St=new WeakMap,Pt=new WeakMap,k=new WeakMap,U=new WeakMap,xt=new WeakMap,ct=new WeakMap,N=new WeakSet,W=function(t){const e=i=>{switch(t.type){case"failed":return{...i,fetchFailureCount:t.failureCount,fetchFailureReason:t.error};case"pause":return{...i,fetchStatus:"paused"};case"continue":return{...i,fetchStatus:"fetching"};case"fetch":return{...i,...Be(i.data,this.options),fetchMeta:t.meta??null};case"success":return{...i,data:t.data,dataUpdateCount:i.dataUpdateCount+1,dataUpdatedAt:t.dataUpdatedAt??Date.now(),error:null,isInvalidated:!1,status:"success",...!t.manual&&{fetchStatus:"idle",fetchFailureCount:0,fetchFailureReason:null}};case"error":const n=t.error;return zt(n)&&n.revert&&r(this,Pt)?{...r(this,Pt),fetchStatus:"idle"}:{...i,error:n,errorUpdateCount:i.errorUpdateCount+1,errorUpdatedAt:Date.now(),fetchFailureCount:i.fetchFailureCount+1,fetchFailureReason:n,fetchStatus:"idle",status:"error"};case"invalidate":return{...i,isInvalidated:!0};case"setState":return{...i,...t.state}}};this.state=e(this.state),M.batch(()=>{this.observers.forEach(i=>{i.onQueryUpdate()}),r(this,k).notify({query:this,type:"updated",action:t})})},Fe);function Be(s,t){return{fetchFailureCount:0,fetchFailureReason:null,fetchStatus:_e(t.networkMode)?"fetching":"paused",...s===void 0&&{error:null,status:"pending"}}}function ds(s){const t=typeof s.initialData=="function"?s.initialData():s.initialData,e=t!==void 0,i=e?typeof s.initialDataUpdatedAt=="function"?s.initialDataUpdatedAt():s.initialDataUpdatedAt:0;return{data:t,dataUpdateCount:0,dataUpdatedAt:e?i??Date.now():0,error:null,errorUpdateCount:0,errorUpdatedAt:0,fetchFailureCount:0,fetchFailureReason:null,fetchMeta:null,isInvalidated:!1,status:e?"success":"pending",fetchStatus:"idle"}}var $,De,Ve=(De=class extends qt{constructor(e={}){super();l(this,$);this.config=e,h(this,$,new Map)}build(e,i,n){const a=i.queryKey,o=i.queryHash??le(a,i);let u=this.get(o);return u||(u=new fs({cache:this,queryKey:a,queryHash:o,options:e.defaultQueryOptions(i),state:n,defaultOptions:e.getQueryDefaults(a)}),this.add(u)),u}add(e){r(this,$).has(e.queryHash)||(r(this,$).set(e.queryHash,e),this.notify({type:"added",query:e}))}remove(e){const i=r(this,$).get(e.queryHash);i&&(e.destroy(),i===e&&r(this,$).delete(e.queryHash),this.notify({type:"removed",query:e}))}clear(){M.batch(()=>{this.getAll().forEach(e=>{this.remove(e)})})}get(e){return r(this,$).get(e)}getAll(){return[...r(this,$).values()]}find(e){const i={exact:!0,...e};return this.getAll().find(n=>me(i,n))}findAll(e={}){const i=this.getAll();return Object.keys(e).length>0?i.filter(n=>me(e,n)):i}notify(e){M.batch(()=>{this.listeners.forEach(i=>{i(e)})})}onFocus(){M.batch(()=>{this.getAll().forEach(e=>{e.onFocus()})})}onOnline(){M.batch(()=>{this.getAll().forEach(e=>{e.onOnline()})})}},$=new WeakMap,De),B,q,lt,V,X,Ee,ys=(Ee=class extends $e{constructor(t){super();l(this,V);l(this,B);l(this,q);l(this,lt);this.mutationId=t.mutationId,h(this,q,t.mutationCache),h(this,B,[]),this.state=t.state||ze(),this.setOptions(t.options),this.scheduleGc()}setOptions(t){this.options=t,this.updateGcTime(this.options.gcTime)}get meta(){return this.options.meta}addObserver(t){r(this,B).includes(t)||(r(this,B).push(t),this.clearGcTimeout(),r(this,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,lt))==null?void 0:t.continue())??this.execute(this.state.variables)}async execute(t){var n,a,o,u,y,w,f,c,O,d,Q,m,g,F,E,P,A,K,_,I;h(this,lt,Ge({fn:()=>this.options.mutationFn?this.options.mutationFn(t):Promise.reject(new Error("No mutationFn found")),onFail:(D,S)=>{p(this,V,X).call(this,{type:"failed",failureCount:D,error:S})},onPause:()=>{p(this,V,X).call(this,{type:"pause"})},onContinue:()=>{p(this,V,X).call(this,{type:"continue"})},retry:this.options.retry??0,retryDelay:this.options.retryDelay,networkMode:this.options.networkMode,canRun:()=>r(this,q).canRun(this)}));const e=this.state.status==="pending",i=!r(this,lt).canStart();try{if(!e){p(this,V,X).call(this,{type:"pending",variables:t,isPaused:i}),await((a=(n=r(this,q).config).onMutate)==null?void 0:a.call(n,t,this));const S=await((u=(o=this.options).onMutate)==null?void 0:u.call(o,t));S!==this.state.context&&p(this,V,X).call(this,{type:"pending",context:S,variables:t,isPaused:i})}const D=await r(this,lt).start();return await((w=(y=r(this,q).config).onSuccess)==null?void 0:w.call(y,D,t,this.state.context,this)),await((c=(f=this.options).onSuccess)==null?void 0:c.call(f,D,t,this.state.context)),await((d=(O=r(this,q).config).onSettled)==null?void 0:d.call(O,D,null,this.state.variables,this.state.context,this)),await((m=(Q=this.options).onSettled)==null?void 0:m.call(Q,D,null,t,this.state.context)),p(this,V,X).call(this,{type:"success",data:D}),D}catch(D){try{throw await((F=(g=r(this,q).config).onError)==null?void 0:F.call(g,D,t,this.state.context,this)),await((P=(E=this.options).onError)==null?void 0:P.call(E,D,t,this.state.context)),await((K=(A=r(this,q).config).onSettled)==null?void 0:K.call(A,void 0,D,this.state.variables,this.state.context,this)),await((I=(_=this.options).onSettled)==null?void 0:I.call(_,void 0,D,t,this.state.context)),D}finally{p(this,V,X).call(this,{type:"error",error:D})}}finally{r(this,q).runNext(this)}}},B=new WeakMap,q=new WeakMap,lt=new WeakMap,V=new WeakSet,X=function(t){const e=i=>{switch(t.type){case"failed":return{...i,failureCount:t.failureCount,failureReason:t.error};case"pause":return{...i,isPaused:!0};case"continue":return{...i,isPaused:!1};case"pending":return{...i,context:t.context,data:void 0,failureCount:0,failureReason:null,error:null,isPaused:t.isPaused,status:"pending",variables:t.variables,submittedAt:Date.now()};case"success":return{...i,data:t.data,failureCount:0,failureReason:null,error:null,status:"success",isPaused:!1};case"error":return{...i,data:void 0,error:t.error,failureCount:i.failureCount+1,failureReason:t.error,isPaused:!1,status:"error"}}};this.state=e(this.state),M.batch(()=>{r(this,B).forEach(i=>{i.onMutationUpdate(t)}),r(this,q).notify({mutation:this,type:"updated",action:t})})},Ee);function ze(){return{context:void 0,data:void 0,error:null,failureCount:0,failureReason:null,isPaused:!1,status:"idle",variables:void 0,submittedAt:0}}var L,Kt,Me,We=(Me=class extends qt{constructor(e={}){super();l(this,L);l(this,Kt);this.config=e,h(this,L,new Map),h(this,Kt,Date.now())}build(e,i,n){const a=new ys({mutationCache:this,mutationId:++_t(this,Kt)._,options:e.defaultMutationOptions(i),state:n});return this.add(a),a}add(e){const i=Nt(e),n=r(this,L).get(i)??[];n.push(e),r(this,L).set(i,n),this.notify({type:"added",mutation:e})}remove(e){var n;const i=Nt(e);if(r(this,L).has(i)){const a=(n=r(this,L).get(i))==null?void 0:n.filter(o=>o!==e);a&&(a.length===0?r(this,L).delete(i):r(this,L).set(i,a))}this.notify({type:"removed",mutation:e})}canRun(e){var n;const i=(n=r(this,L).get(Nt(e)))==null?void 0:n.find(a=>a.state.status==="pending");return!i||i===e}runNext(e){var n;const i=(n=r(this,L).get(Nt(e)))==null?void 0:n.find(a=>a!==e&&a.state.isPaused);return(i==null?void 0:i.continue())??Promise.resolve()}clear(){M.batch(()=>{this.getAll().forEach(e=>{this.remove(e)})})}getAll(){return[...r(this,L).values()].flat()}find(e){const i={exact:!0,...e};return this.getAll().find(n=>ve(i,n))}findAll(e={}){return this.getAll().filter(i=>ve(e,i))}notify(e){M.batch(()=>{this.listeners.forEach(i=>{i(e)})})}resumePausedMutations(){const e=this.getAll().filter(i=>i.state.isPaused);return M.batch(()=>Promise.all(e.map(i=>i.continue().catch(H))))}},L=new WeakMap,Kt=new WeakMap,Me);function Nt(s){var t;return((t=s.options.scope)==null?void 0:t.id)??String(s.mutationId)}function Oe(s){return{onFetch:(t,e)=>{var f,c,O,d,Q;const i=t.options,n=(O=(c=(f=t.fetchOptions)==null?void 0:f.meta)==null?void 0:c.fetchMore)==null?void 0:O.direction,a=((d=t.state.data)==null?void 0:d.pages)||[],o=((Q=t.state.data)==null?void 0:Q.pageParams)||[];let u={pages:[],pageParams:[]},y=0;const w=async()=>{let m=!1;const g=P=>{Object.defineProperty(P,"signal",{enumerable:!0,get:()=>(t.signal.aborted?m=!0:t.signal.addEventListener("abort",()=>{m=!0}),t.signal)})},F=He(t.options,t.fetchOptions),E=async(P,A,K)=>{if(m)return Promise.reject();if(A==null&&P.pages.length)return Promise.resolve(P);const _={queryKey:t.queryKey,pageParam:A,direction:K?"backward":"forward",meta:t.options.meta};g(_);const I=await F(_),{maxPages:D}=t.options,S=K?us:as;return{pages:S(P.pages,I,D),pageParams:S(P.pageParams,A,D)}};if(n&&a.length){const P=n==="backward",A=P?ps:Ce,K={pages:a,pageParams:o},_=A(i,K);u=await E(K,_,P)}else{const P=s??a.length;do{const A=y===0?o[0]??i.initialPageParam:Ce(i,u);if(y>0&&A==null)break;u=await E(u,A),y++}while(y<P)}return u};t.options.persister?t.fetchFn=()=>{var m,g;return(g=(m=t.options).persister)==null?void 0:g.call(m,w,{queryKey:t.queryKey,meta:t.options.meta,signal:t.signal},e)}:t.fetchFn=w}}}function Ce(s,{pages:t,pageParams:e}){const i=t.length-1;return t.length>0?s.getNextPageParam(t[i],t,e[i],e):void 0}function ps(s,{pages:t,pageParams:e}){var i;return t.length>0?(i=s.getPreviousPageParam)==null?void 0:i.call(s,t[0],t,e[0],e):void 0}var R,et,st,Rt,Ft,it,Dt,Et,Ae,ms=(Ae=class{constructor(t={}){l(this,R);l(this,et);l(this,st);l(this,Rt);l(this,Ft);l(this,it);l(this,Dt);l(this,Et);h(this,R,t.queryCache||new Ve),h(this,et,t.mutationCache||new We),h(this,st,t.defaultOptions||{}),h(this,Rt,new Map),h(this,Ft,new Map),h(this,it,0)}mount(){_t(this,it)._++,r(this,it)===1&&(h(this,Dt,de.subscribe(async t=>{t&&(await this.resumePausedMutations(),r(this,R).onFocus())})),h(this,Et,Bt.subscribe(async t=>{t&&(await this.resumePausedMutations(),r(this,R).onOnline())})))}unmount(){var t,e;_t(this,it)._--,r(this,it)===0&&((t=r(this,Dt))==null||t.call(this),h(this,Dt,void 0),(e=r(this,Et))==null||e.call(this),h(this,Et,void 0))}isFetching(t){return r(this,R).findAll({...t,fetchStatus:"fetching"}).length}isMutating(t){return r(this,et).findAll({...t,status:"pending"}).length}getQueryData(t){var i;const e=this.defaultQueryOptions({queryKey:t});return(i=r(this,R).get(e.queryHash))==null?void 0:i.state.data}ensureQueryData(t){const e=this.defaultQueryOptions(t),i=r(this,R).build(this,e),n=i.state.data;return n===void 0?this.fetchQuery(t):(t.revalidateIfStale&&i.isStaleByTime(Ot(e.staleTime,i))&&this.prefetchQuery(e),Promise.resolve(n))}getQueriesData(t){return r(this,R).findAll(t).map(({queryKey:e,state:i})=>{const n=i.data;return[e,n]})}setQueryData(t,e,i){const n=this.defaultQueryOptions({queryKey:t}),a=r(this,R).get(n.queryHash),o=a==null?void 0:a.state.data,u=rs(e,o);if(u!==void 0)return r(this,R).build(this,n).setData(u,{...i,manual:!0})}setQueriesData(t,e,i){return M.batch(()=>r(this,R).findAll(t).map(({queryKey:n})=>[n,this.setQueryData(n,e,i)]))}getQueryState(t){var i;const e=this.defaultQueryOptions({queryKey:t});return(i=r(this,R).get(e.queryHash))==null?void 0:i.state}removeQueries(t){const e=r(this,R);M.batch(()=>{e.findAll(t).forEach(i=>{e.remove(i)})})}resetQueries(t,e){const i=r(this,R),n={type:"active",...t};return M.batch(()=>(i.findAll(t).forEach(a=>{a.reset()}),this.refetchQueries(n,e)))}cancelQueries(t,e={}){const i={revert:!0,...e},n=M.batch(()=>r(this,R).findAll(t).map(a=>a.cancel(i)));return Promise.all(n).then(H).catch(H)}invalidateQueries(t,e={}){return M.batch(()=>{if(r(this,R).findAll(t).forEach(n=>{n.invalidate()}),(t==null?void 0:t.refetchType)==="none")return Promise.resolve();const i={...t,type:(t==null?void 0:t.refetchType)??(t==null?void 0:t.type)??"active"};return this.refetchQueries(i,e)})}refetchQueries(t,e={}){const i={...e,cancelRefetch:e.cancelRefetch??!0},n=M.batch(()=>r(this,R).findAll(t).filter(a=>!a.isDisabled()).map(a=>{let o=a.fetch(void 0,i);return i.throwOnError||(o=o.catch(H)),a.state.fetchStatus==="paused"?Promise.resolve():o}));return Promise.all(n).then(H)}fetchQuery(t){const e=this.defaultQueryOptions(t);e.retry===void 0&&(e.retry=!1);const i=r(this,R).build(this,e);return i.isStaleByTime(Ot(e.staleTime,i))?i.fetch(e):Promise.resolve(i.state.data)}prefetchQuery(t){return this.fetchQuery(t).then(H).catch(H)}fetchInfiniteQuery(t){return t.behavior=Oe(t.pages),this.fetchQuery(t)}prefetchInfiniteQuery(t){return this.fetchInfiniteQuery(t).then(H).catch(H)}ensureInfiniteQueryData(t){return t.behavior=Oe(t.pages),this.ensureQueryData(t)}resumePausedMutations(){return Bt.isOnline()?r(this,et).resumePausedMutations():Promise.resolve()}getQueryCache(){return r(this,R)}getMutationCache(){return r(this,et)}getDefaultOptions(){return r(this,st)}setDefaultOptions(t){h(this,st,t)}setQueryDefaults(t,e){r(this,Rt).set(mt(t),{queryKey:t,defaultOptions:e})}getQueryDefaults(t){const e=[...r(this,Rt).values()],i={};return e.forEach(n=>{Tt(t,n.queryKey)&&Object.assign(i,n.defaultOptions)}),i}setMutationDefaults(t,e){r(this,Ft).set(mt(t),{mutationKey:t,defaultOptions:e})}getMutationDefaults(t){const e=[...r(this,Ft).values()];let i={};return e.forEach(n=>{Tt(t,n.mutationKey)&&(i={...i,...n.defaultOptions})}),i}defaultQueryOptions(t){if(t._defaulted)return t;const e={...r(this,st).queries,...this.getQueryDefaults(t.queryKey),...t,_defaulted:!0};return e.queryHash||(e.queryHash=le(e.queryKey,e)),e.refetchOnReconnect===void 0&&(e.refetchOnReconnect=e.networkMode!=="always"),e.throwOnError===void 0&&(e.throwOnError=!!e.suspense),!e.networkMode&&e.persister&&(e.networkMode="offlineFirst"),e.queryFn===fe&&(e.enabled=!1),e}defaultMutationOptions(t){return t!=null&&t._defaulted?t:{...r(this,st).mutations,...(t==null?void 0:t.mutationKey)&&this.getMutationDefaults(t.mutationKey),...t,_defaulted:!0}}clear(){r(this,R).clear(),r(this,et).clear()}},R=new WeakMap,et=new WeakMap,st=new WeakMap,Rt=new WeakMap,Ft=new WeakMap,it=new WeakMap,Dt=new WeakMap,Et=new WeakMap,Ae),T,b,Lt,j,ft,Mt,rt,z,kt,At,Ut,dt,yt,nt,It,C,jt,Zt,te,ee,se,ie,re,ne,Ye,Ue,vs=(Ue=class extends qt{constructor(t,e){super();l(this,C);l(this,T);l(this,b);l(this,Lt);l(this,j);l(this,ft);l(this,Mt);l(this,rt);l(this,z);l(this,kt);l(this,At);l(this,Ut);l(this,dt);l(this,yt);l(this,nt);l(this,It,new Set);this.options=e,h(this,T,t),h(this,z,null),h(this,rt,Xt()),this.options.experimental_prefetchInRender||r(this,rt).reject(new Error("experimental_prefetchInRender feature flag is not enabled")),this.bindMethods(),this.setOptions(e)}bindMethods(){this.refetch=this.refetch.bind(this)}onSubscribe(){this.listeners.size===1&&(r(this,b).addObserver(this),we(r(this,b),this.options)?p(this,C,jt).call(this):this.updateResult(),p(this,C,se).call(this))}onUnsubscribe(){this.hasListeners()||this.destroy()}shouldFetchOnReconnect(){return ae(r(this,b),this.options,this.options.refetchOnReconnect)}shouldFetchOnWindowFocus(){return ae(r(this,b),this.options,this.options.refetchOnWindowFocus)}destroy(){this.listeners=new Set,p(this,C,ie).call(this),p(this,C,re).call(this),r(this,b).removeObserver(this)}setOptions(t,e){const i=this.options,n=r(this,b);if(this.options=r(this,T).defaultQueryOptions(t),this.options.enabled!==void 0&&typeof this.options.enabled!="boolean"&&typeof this.options.enabled!="function"&&typeof G(this.options.enabled,r(this,b))!="boolean")throw new Error("Expected enabled to be a boolean or a callback that returns a boolean");p(this,C,ne).call(this),r(this,b).setOptions(this.options),i._defaulted&&!$t(this.options,i)&&r(this,T).getQueryCache().notify({type:"observerOptionsUpdated",query:r(this,b),observer:this});const a=this.hasListeners();a&&Qe(r(this,b),n,this.options,i)&&p(this,C,jt).call(this),this.updateResult(e),a&&(r(this,b)!==n||G(this.options.enabled,r(this,b))!==G(i.enabled,r(this,b))||Ot(this.options.staleTime,r(this,b))!==Ot(i.staleTime,r(this,b)))&&p(this,C,Zt).call(this);const o=p(this,C,te).call(this);a&&(r(this,b)!==n||G(this.options.enabled,r(this,b))!==G(i.enabled,r(this,b))||o!==r(this,nt))&&p(this,C,ee).call(this,o)}getOptimisticResult(t){const e=r(this,T).getQueryCache().build(r(this,T),t),i=this.createResult(e,t);return gs(this,i)&&(h(this,j,i),h(this,Mt,this.options),h(this,ft,r(this,b).state)),i}getCurrentResult(){return r(this,j)}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,It).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.fetch().then(()=>this.createResult(i,e))}fetch(t){return p(this,C,jt).call(this,{...t,cancelRefetch:t.cancelRefetch??!0}).then(()=>(this.updateResult(),r(this,j)))}createResult(t,e){var D;const i=r(this,b),n=this.options,a=r(this,j),o=r(this,ft),u=r(this,Mt),w=t!==i?t.state:r(this,Lt),{state:f}=t;let c={...f},O=!1,d;if(e._optimisticResults){const S=this.hasListeners(),vt=!S&&we(t,e),bt=S&&Qe(t,i,e,n);(vt||bt)&&(c={...c,...Be(f.data,t.options)}),e._optimisticResults==="isRestoring"&&(c.fetchStatus="idle")}let{error:Q,errorUpdatedAt:m,status:g}=c;if(e.select&&c.data!==void 0)if(a&&c.data===(o==null?void 0:o.data)&&e.select===r(this,kt))d=r(this,At);else try{h(this,kt,e.select),d=e.select(c.data),d=Jt(a==null?void 0:a.data,d,e),h(this,At,d),h(this,z,null)}catch(S){h(this,z,S)}else d=c.data;if(e.placeholderData!==void 0&&d===void 0&&g==="pending"){let S;if(a!=null&&a.isPlaceholderData&&e.placeholderData===(u==null?void 0:u.placeholderData))S=a.data;else if(S=typeof e.placeholderData=="function"?e.placeholderData((D=r(this,Ut))==null?void 0:D.state.data,r(this,Ut)):e.placeholderData,e.select&&S!==void 0)try{S=e.select(S),h(this,z,null)}catch(vt){h(this,z,vt)}S!==void 0&&(g="success",d=Jt(a==null?void 0:a.data,S,e),O=!0)}r(this,z)&&(Q=r(this,z),d=r(this,At),m=Date.now(),g="error");const F=c.fetchStatus==="fetching",E=g==="pending",P=g==="error",A=E&&F,K=d!==void 0,I={status:g,fetchStatus:c.fetchStatus,isPending:E,isSuccess:g==="success",isError:P,isInitialLoading:A,isLoading:A,data:d,dataUpdatedAt:c.dataUpdatedAt,error:Q,errorUpdatedAt:m,failureCount:c.fetchFailureCount,failureReason:c.fetchFailureReason,errorUpdateCount:c.errorUpdateCount,isFetched:c.dataUpdateCount>0||c.errorUpdateCount>0,isFetchedAfterMount:c.dataUpdateCount>w.dataUpdateCount||c.errorUpdateCount>w.errorUpdateCount,isFetching:F,isRefetching:F&&!E,isLoadingError:P&&!K,isPaused:c.fetchStatus==="paused",isPlaceholderData:O,isRefetchError:P&&K,isStale:ye(t,e),refetch:this.refetch,promise:r(this,rt)};if(this.options.experimental_prefetchInRender){const S=Ht=>{I.status==="error"?Ht.reject(I.error):I.data!==void 0&&Ht.resolve(I.data)},vt=()=>{const Ht=h(this,rt,I.promise=Xt());S(Ht)},bt=r(this,rt);switch(bt.status){case"pending":t.queryHash===i.queryHash&&S(bt);break;case"fulfilled":(I.status==="error"||I.data!==bt.value)&&vt();break;case"rejected":(I.status!=="error"||I.error!==bt.reason)&&vt();break}}return I}updateResult(t){const e=r(this,j),i=this.createResult(r(this,b),this.options);if(h(this,ft,r(this,b).state),h(this,Mt,this.options),r(this,ft).data!==void 0&&h(this,Ut,r(this,b)),$t(i,e))return;h(this,j,i);const n={},a=()=>{if(!e)return!0;const{notifyOnChangeProps:o}=this.options,u=typeof o=="function"?o():o;if(u==="all"||!u&&!r(this,It).size)return!0;const y=new Set(u??r(this,It));return this.options.throwOnError&&y.add("error"),Object.keys(r(this,j)).some(w=>{const f=w;return r(this,j)[f]!==e[f]&&y.has(f)})};(t==null?void 0:t.listeners)!==!1&&a()&&(n.listeners=!0),p(this,C,Ye).call(this,{...n,...t})}onQueryUpdate(){this.updateResult(),this.hasListeners()&&p(this,C,se).call(this)}},T=new WeakMap,b=new WeakMap,Lt=new WeakMap,j=new WeakMap,ft=new WeakMap,Mt=new WeakMap,rt=new WeakMap,z=new WeakMap,kt=new WeakMap,At=new WeakMap,Ut=new WeakMap,dt=new WeakMap,yt=new WeakMap,nt=new WeakMap,It=new WeakMap,C=new WeakSet,jt=function(t){p(this,C,ne).call(this);let e=r(this,b).fetch(this.options,t);return t!=null&&t.throwOnError||(e=e.catch(H)),e},Zt=function(){p(this,C,ie).call(this);const t=Ot(this.options.staleTime,r(this,b));if(pt||r(this,j).isStale||!Wt(t))return;const i=Le(r(this,j).dataUpdatedAt,t)+1;h(this,dt,setTimeout(()=>{r(this,j).isStale||this.updateResult()},i))},te=function(){return(typeof this.options.refetchInterval=="function"?this.options.refetchInterval(r(this,b)):this.options.refetchInterval)??!1},ee=function(t){p(this,C,re).call(this),h(this,nt,t),!(pt||G(this.options.enabled,r(this,b))===!1||!Wt(r(this,nt))||r(this,nt)===0)&&h(this,yt,setInterval(()=>{(this.options.refetchIntervalInBackground||de.isFocused())&&p(this,C,jt).call(this)},r(this,nt)))},se=function(){p(this,C,Zt).call(this),p(this,C,ee).call(this,p(this,C,te).call(this))},ie=function(){r(this,dt)&&(clearTimeout(r(this,dt)),h(this,dt,void 0))},re=function(){r(this,yt)&&(clearInterval(r(this,yt)),h(this,yt,void 0))},ne=function(){const t=r(this,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,Lt,t.state),this.hasListeners()&&(e==null||e.removeObserver(this),t.addObserver(this))},Ye=function(t){M.batch(()=>{t.listeners&&this.listeners.forEach(e=>{e(r(this,j))}),r(this,T).getQueryCache().notify({query:r(this,b),type:"observerResultsUpdated"})})},Ue);function bs(s,t){return G(t.enabled,s)!==!1&&s.state.data===void 0&&!(s.state.status==="error"&&t.retryOnMount===!1)}function we(s,t){return bs(s,t)||s.state.data!==void 0&&ae(s,t,t.refetchOnMount)}function ae(s,t,e){if(G(t.enabled,s)!==!1){const i=typeof e=="function"?e(s):e;return i==="always"||i!==!1&&ye(s,t)}return!1}function Qe(s,t,e,i){return(s!==t||G(i.enabled,s)===!1)&&(!e.suspense||s.state.status!=="error")&&ye(s,e)}function ye(s,t){return G(t.enabled,s)!==!1&&s.isStaleByTime(Ot(t.staleTime,s))}function gs(s,t){return!$t(s.getCurrentResult(),t)}var at,ut,x,Y,J,Gt,ue,Ie,Os=(Ie=class extends qt{constructor(t,e){super();l(this,J);l(this,at);l(this,ut);l(this,x);l(this,Y);h(this,at,t),this.setOptions(e),this.bindMethods(),p(this,J,Gt).call(this)}bindMethods(){this.mutate=this.mutate.bind(this),this.reset=this.reset.bind(this)}setOptions(t){var i;const e=this.options;this.options=r(this,at).defaultMutationOptions(t),$t(this.options,e)||r(this,at).getMutationCache().notify({type:"observerOptionsUpdated",mutation:r(this,x),observer:this}),e!=null&&e.mutationKey&&this.options.mutationKey&&mt(e.mutationKey)!==mt(this.options.mutationKey)?this.reset():((i=r(this,x))==null?void 0:i.state.status)==="pending"&&r(this,x).setOptions(this.options)}onUnsubscribe(){var t;this.hasListeners()||(t=r(this,x))==null||t.removeObserver(this)}onMutationUpdate(t){p(this,J,Gt).call(this),p(this,J,ue).call(this,t)}getCurrentResult(){return r(this,ut)}reset(){var t;(t=r(this,x))==null||t.removeObserver(this),h(this,x,void 0),p(this,J,Gt).call(this),p(this,J,ue).call(this)}mutate(t,e){var i;return h(this,Y,e),(i=r(this,x))==null||i.removeObserver(this),h(this,x,r(this,at).getMutationCache().build(r(this,at),this.options)),r(this,x).addObserver(this),r(this,x).execute(t)}},at=new WeakMap,ut=new WeakMap,x=new WeakMap,Y=new WeakMap,J=new WeakSet,Gt=function(){var e;const t=((e=r(this,x))==null?void 0:e.state)??ze();h(this,ut,{...t,isPending:t.status==="pending",isSuccess:t.status==="success",isError:t.status==="error",isIdle:t.status==="idle",mutate:this.mutate,reset:this.reset})},ue=function(t){M.batch(()=>{var e,i,n,a,o,u,y,w;if(r(this,Y)&&this.hasListeners()){const f=r(this,ut).variables,c=r(this,ut).context;(t==null?void 0:t.type)==="success"?((i=(e=r(this,Y)).onSuccess)==null||i.call(e,t.data,f,c),(a=(n=r(this,Y)).onSettled)==null||a.call(n,t.data,null,f,c)):(t==null?void 0:t.type)==="error"&&((u=(o=r(this,Y)).onError)==null||u.call(o,t.error,f,c),(w=(y=r(this,Y)).onSettled)==null||w.call(y,void 0,t.error,f,c))}this.listeners.forEach(f=>{f(r(this,ut))})})},Ie),Cs="VUE_QUERY_CLIENT";function Je(s){const t=s?`:${s}`:"";return`${Cs}${t}`}function oe(s,t){Object.keys(s).forEach(e=>{s[e]=t[e]})}function he(s,t,e="",i=0){if(t){const n=t(s,e,i);if(n===void 0&&qe(s)||n!==void 0)return n}if(Array.isArray(s))return s.map((n,a)=>he(n,t,String(a),i+1));if(typeof s=="object"&&Qs(s)){const n=Object.entries(s).map(([a,o])=>[a,he(o,t,a,i+1)]);return Object.fromEntries(n)}return s}function ws(s,t){return he(s,t)}function v(s,t=!1){return ws(s,(e,i,n)=>{if(n===1&&i==="queryKey")return v(e,!0);if(t&&Ss(e))return v(e(),t);if(qe(e))return v(Ze(e),t)})}function Qs(s){if(Object.prototype.toString.call(s)!=="[object Object]")return!1;const t=Object.getPrototypeOf(s);return t===null||t===Object.prototype}function Ss(s){return typeof s=="function"}function ce(s,t){return typeof s=="function"?s(...t):!!s}function Xe(s=""){if(!ts())throw new Error("vue-query hooks can only be used inside setup() function or functions that support injection context.");const t=Je(s),e=es(t);if(!e)throw new Error("No 'queryClient' found in Vue context, use 'VueQueryPlugin' to properly initialize the library.");return e}var Ps=class extends Ve{find(s){return super.find(v(s))}findAll(s={}){return super.findAll(v(s))}},Rs=class extends We{find(s){return super.find(v(s))}findAll(s={}){return super.findAll(v(s))}},Fs=class extends ms{constructor(s={}){const t={defaultOptions:s.defaultOptions,queryCache:s.queryCache||new Ps,mutationCache:s.mutationCache||new Rs};super(t),this.isRestoring=ss(!1)}isFetching(s={}){return super.isFetching(v(s))}isMutating(s={}){return super.isMutating(v(s))}getQueryData(s){return super.getQueryData(v(s))}ensureQueryData(s){return super.ensureQueryData(v(s))}getQueriesData(s){return super.getQueriesData(v(s))}setQueryData(s,t,e={}){return super.setQueryData(v(s),t,v(e))}setQueriesData(s,t,e={}){return super.setQueriesData(v(s),t,v(e))}getQueryState(s){return super.getQueryState(v(s))}removeQueries(s={}){return super.removeQueries(v(s))}resetQueries(s={},t={}){return super.resetQueries(v(s),v(t))}cancelQueries(s={},t={}){return super.cancelQueries(v(s),v(t))}invalidateQueries(s={},t={}){const e=v(s),i=v(t);if(super.invalidateQueries({...e,refetchType:"none"},i),e.refetchType==="none")return Promise.resolve();const n={...e,type:e.refetchType??e.type??"active"};return is().then(()=>super.refetchQueries(n,i))}refetchQueries(s={},t={}){return super.refetchQueries(v(s),v(t))}fetchQuery(s){return super.fetchQuery(v(s))}prefetchQuery(s){return super.prefetchQuery(v(s))}fetchInfiniteQuery(s){return super.fetchInfiniteQuery(v(s))}prefetchInfiniteQuery(s){return super.prefetchInfiniteQuery(v(s))}setDefaultOptions(s){super.setDefaultOptions(v(s))}setQueryDefaults(s,t){super.setQueryDefaults(v(s),v(t))}getQueryDefaults(s){return super.getQueryDefaults(v(s))}setMutationDefaults(s,t){super.setMutationDefaults(v(s),v(t))}getMutationDefaults(s){return super.getMutationDefaults(v(s))}},qs={install:(s,t={})=>{const e=Je(t.queryClientKey);let i;if("queryClient"in t&&t.queryClient)i=t.queryClient;else{const o="queryClientConfig"in t?t.queryClientConfig:void 0;i=new Fs(o)}pt||i.mount();let n=()=>{};if(t.clientPersister){i.isRestoring.value=!0;const[o,u]=t.clientPersister(i);n=o,u.then(()=>{var y;i.isRestoring.value=!1,(y=t.clientPersisterOnSuccess)==null||y.call(t,i)})}const a=()=>{i.unmount(),n()};if(s.onUnmount)s.onUnmount(a);else{const o=s.unmount;s.unmount=function(){a(),o()}}s.provide(e,i)}};function Ds(s,t,e){const i=Xe(),n=je(()=>{const d=v(t);typeof d.enabled=="function"&&(d.enabled=d.enabled());const Q=i.defaultQueryOptions(d);return Q._optimisticResults=i.isRestoring.value?"isRestoring":"optimistic",Q}),a=new s(i,n.value),o=Te(a.getCurrentResult());let u=()=>{};gt(i.isRestoring,d=>{d||(u(),u=a.subscribe(Q=>{oe(o,Q)}))},{immediate:!0});const y=()=>{a.setOptions(n.value),oe(o,a.getCurrentResult())};gt(n,y),xe(()=>{u()});const w=(...d)=>(y(),o.refetch(...d)),f=()=>new Promise((d,Q)=>{let m=()=>{};const g=()=>{if(n.value.enabled!==!1){a.setOptions(n.value);const F=a.getOptimisticResult(n.value);F.isStale?(m(),a.fetchOptimistic(n.value).then(d,E=>{ce(n.value.throwOnError,[E,a.getCurrentQuery()])?Q(E):d(a.getCurrentResult())})):(m(),d(F))}};g(),m=gt(n,g)});gt(()=>o.error,d=>{if(o.isError&&!o.isFetching&&ce(n.value.throwOnError,[d,a.getCurrentQuery()]))throw d});const O=Ke(o);for(const d in o)typeof o[d]=="function"&&(O[d]=o[d]);return O.suspense=f,O.refetch=w,O}function js(s,t){return Ds(vs,s)}function Ts(s,t){const e=Xe(),i=je(()=>e.defaultMutationOptions(v(s))),n=new Os(e,i.value),a=Te(n.getCurrentResult()),o=n.subscribe(f=>{oe(a,f)}),u=(f,c)=>{n.mutate(f,c).catch(()=>{})};gt(i,()=>{n.setOptions(i.value)}),xe(()=>{o()});const w=Ke(a);return gt(()=>a.error,f=>{if(f&&ce(i.value.throwOnError,[f]))throw f}),{...w,mutate:u,mutateAsync:a.mutate,reset:a.reset}}export{Fs as Q,qs as V,js as a,Ts as b,Xe as u};
|
|
1
|
+
var pe=s=>{throw TypeError(s)};var Vt=(s,t,e)=>t.has(s)||pe("Cannot "+e);var r=(s,t,e)=>(Vt(s,t,"read from private field"),e?e.call(s):t.get(s)),l=(s,t,e)=>t.has(s)?pe("Cannot add the same private member more than once"):t instanceof WeakSet?t.add(s):t.set(s,e),h=(s,t,e,i)=>(Vt(s,t,"write to private field"),i?i.call(s,e):t.set(s,e),e),p=(s,t,e)=>(Vt(s,t,"access private method"),e);var _t=(s,t,e,i)=>({set _(n){h(s,t,n,e)},get _(){return r(s,t,i)}});import{i as qe,u as Ze,h as ts,a as es,r as ss,n as is,c as je,s as Te,w as gt,o as xe,t as Ke}from"./@vue.YfIN5b-F.0.0.46.js";var qt=class{constructor(){this.listeners=new Set,this.subscribe=this.subscribe.bind(this)}subscribe(s){return this.listeners.add(s),this.onSubscribe(),()=>{this.listeners.delete(s),this.onUnsubscribe()}}hasListeners(){return this.listeners.size>0}onSubscribe(){}onUnsubscribe(){}},pt=typeof window>"u"||"Deno"in globalThis;function H(){}function rs(s,t){return typeof s=="function"?s(t):s}function Wt(s){return typeof s=="number"&&s>=0&&s!==1/0}function Le(s,t){return Math.max(s+(t||0)-Date.now(),0)}function Ot(s,t){return typeof s=="function"?s(t):s}function G(s,t){return typeof s=="function"?s(t):s}function me(s,t){const{type:e="all",exact:i,fetchStatus:n,predicate:a,queryKey:o,stale:u}=s;if(o){if(i){if(t.queryHash!==le(o,t.options))return!1}else if(!Tt(t.queryKey,o))return!1}if(e!=="all"){const y=t.isActive();if(e==="active"&&!y||e==="inactive"&&y)return!1}return!(typeof u=="boolean"&&t.isStale()!==u||n&&n!==t.state.fetchStatus||a&&!a(t))}function ve(s,t){const{exact:e,status:i,predicate:n,mutationKey:a}=s;if(a){if(!t.options.mutationKey)return!1;if(e){if(mt(t.options.mutationKey)!==mt(a))return!1}else if(!Tt(t.options.mutationKey,a))return!1}return!(i&&t.state.status!==i||n&&!n(t))}function le(s,t){return((t==null?void 0:t.queryKeyHashFn)||mt)(s)}function mt(s){return JSON.stringify(s,(t,e)=>Yt(e)?Object.keys(e).sort().reduce((i,n)=>(i[n]=e[n],i),{}):e)}function Tt(s,t){return s===t?!0:typeof s!=typeof t?!1:s&&t&&typeof s=="object"&&typeof t=="object"?!Object.keys(t).some(e=>!Tt(s[e],t[e])):!1}function ke(s,t){if(s===t)return s;const e=be(s)&&be(t);if(e||Yt(s)&&Yt(t)){const i=e?s:Object.keys(s),n=i.length,a=e?t:Object.keys(t),o=a.length,u=e?[]:{};let y=0;for(let w=0;w<o;w++){const f=e?w:a[w];(!e&&i.includes(f)||e)&&s[f]===void 0&&t[f]===void 0?(u[f]=void 0,y++):(u[f]=ke(s[f],t[f]),u[f]===s[f]&&s[f]!==void 0&&y++)}return n===o&&y===n?s:u}return t}function $t(s,t){if(!t||Object.keys(s).length!==Object.keys(t).length)return!1;for(const e in s)if(s[e]!==t[e])return!1;return!0}function be(s){return Array.isArray(s)&&s.length===Object.keys(s).length}function Yt(s){if(!ge(s))return!1;const t=s.constructor;if(t===void 0)return!0;const e=t.prototype;return!(!ge(e)||!e.hasOwnProperty("isPrototypeOf")||Object.getPrototypeOf(s)!==Object.prototype)}function ge(s){return Object.prototype.toString.call(s)==="[object Object]"}function ns(s){return new Promise(t=>{setTimeout(t,s)})}function Jt(s,t,e){return typeof e.structuralSharing=="function"?e.structuralSharing(s,t):e.structuralSharing!==!1?ke(s,t):t}function as(s,t,e=0){const i=[...s,t];return e&&i.length>e?i.slice(1):i}function us(s,t,e=0){const i=[t,...s];return e&&i.length>e?i.slice(0,-1):i}var fe=Symbol();function He(s,t){return!s.queryFn&&(t!=null&&t.initialPromise)?()=>t.initialPromise:!s.queryFn||s.queryFn===fe?()=>Promise.reject(new Error(`Missing queryFn: '${s.queryHash}'`)):s.queryFn}var ot,Z,Ct,Se,os=(Se=class extends qt{constructor(){super();l(this,ot);l(this,Z);l(this,Ct);h(this,Ct,t=>{if(!pt&&window.addEventListener){const e=()=>t();return window.addEventListener("visibilitychange",e,!1),()=>{window.removeEventListener("visibilitychange",e)}}})}onSubscribe(){r(this,Z)||this.setEventListener(r(this,Ct))}onUnsubscribe(){var t;this.hasListeners()||((t=r(this,Z))==null||t.call(this),h(this,Z,void 0))}setEventListener(t){var e;h(this,Ct,t),(e=r(this,Z))==null||e.call(this),h(this,Z,t(i=>{typeof i=="boolean"?this.setFocused(i):this.onFocus()}))}setFocused(t){r(this,ot)!==t&&(h(this,ot,t),this.onFocus())}onFocus(){const t=this.isFocused();this.listeners.forEach(e=>{e(t)})}isFocused(){var t;return typeof r(this,ot)=="boolean"?r(this,ot):((t=globalThis.document)==null?void 0:t.visibilityState)!=="hidden"}},ot=new WeakMap,Z=new WeakMap,Ct=new WeakMap,Se),de=new os,wt,tt,Qt,Pe,hs=(Pe=class extends qt{constructor(){super();l(this,wt,!0);l(this,tt);l(this,Qt);h(this,Qt,t=>{if(!pt&&window.addEventListener){const e=()=>t(!0),i=()=>t(!1);return window.addEventListener("online",e,!1),window.addEventListener("offline",i,!1),()=>{window.removeEventListener("online",e),window.removeEventListener("offline",i)}}})}onSubscribe(){r(this,tt)||this.setEventListener(r(this,Qt))}onUnsubscribe(){var t;this.hasListeners()||((t=r(this,tt))==null||t.call(this),h(this,tt,void 0))}setEventListener(t){var e;h(this,Qt,t),(e=r(this,tt))==null||e.call(this),h(this,tt,t(this.setOnline.bind(this)))}setOnline(t){r(this,wt)!==t&&(h(this,wt,t),this.listeners.forEach(i=>{i(t)}))}isOnline(){return r(this,wt)}},wt=new WeakMap,tt=new WeakMap,Qt=new WeakMap,Pe),Bt=new hs;function Xt(){let s,t;const e=new Promise((n,a)=>{s=n,t=a});e.status="pending",e.catch(()=>{});function i(n){Object.assign(e,n),delete e.resolve,delete e.reject}return e.resolve=n=>{i({status:"fulfilled",value:n}),s(n)},e.reject=n=>{i({status:"rejected",reason:n}),t(n)},e}function cs(s){return Math.min(1e3*2**s,3e4)}function _e(s){return(s??"online")==="online"?Bt.isOnline():!0}var Ne=class extends Error{constructor(s){super("CancelledError"),this.revert=s==null?void 0:s.revert,this.silent=s==null?void 0:s.silent}};function zt(s){return s instanceof Ne}function Ge(s){let t=!1,e=0,i=!1,n;const a=Xt(),o=m=>{var g;i||(O(new Ne(m)),(g=s.abort)==null||g.call(s))},u=()=>{t=!0},y=()=>{t=!1},w=()=>de.isFocused()&&(s.networkMode==="always"||Bt.isOnline())&&s.canRun(),f=()=>_e(s.networkMode)&&s.canRun(),c=m=>{var g;i||(i=!0,(g=s.onSuccess)==null||g.call(s,m),n==null||n(),a.resolve(m))},O=m=>{var g;i||(i=!0,(g=s.onError)==null||g.call(s,m),n==null||n(),a.reject(m))},d=()=>new Promise(m=>{var g;n=F=>{(i||w())&&m(F)},(g=s.onPause)==null||g.call(s)}).then(()=>{var m;n=void 0,i||(m=s.onContinue)==null||m.call(s)}),Q=()=>{if(i)return;let m;const g=e===0?s.initialPromise:void 0;try{m=g??s.fn()}catch(F){m=Promise.reject(F)}Promise.resolve(m).then(c).catch(F=>{var _;if(i)return;const E=s.retry??(pt?0:3),P=s.retryDelay??cs,A=typeof P=="function"?P(e,F):P,K=E===!0||typeof E=="number"&&e<E||typeof E=="function"&&E(e,F);if(t||!K){O(F);return}e++,(_=s.onFail)==null||_.call(s,e,F),ns(A).then(()=>w()?void 0:d()).then(()=>{t?O(F):Q()})})};return{promise:a,cancel:o,continue:()=>(n==null||n(),a),cancelRetry:u,continueRetry:y,canStart:f,start:()=>(f()?Q():d().then(Q),a)}}function ls(){let s=[],t=0,e=u=>{u()},i=u=>{u()},n=u=>setTimeout(u,0);const a=u=>{t?s.push(u):n(()=>{e(u)})},o=()=>{const u=s;s=[],u.length&&n(()=>{i(()=>{u.forEach(y=>{e(y)})})})};return{batch:u=>{let y;t++;try{y=u()}finally{t--,t||o()}return y},batchCalls:u=>(...y)=>{a(()=>{u(...y)})},schedule:a,setNotifyFunction:u=>{e=u},setBatchNotifyFunction:u=>{i=u},setScheduler:u=>{n=u}}}var M=ls(),ht,Re,$e=(Re=class{constructor(){l(this,ht)}destroy(){this.clearGcTimeout()}scheduleGc(){this.clearGcTimeout(),Wt(this.gcTime)&&h(this,ht,setTimeout(()=>{this.optionalRemove()},this.gcTime))}updateGcTime(s){this.gcTime=Math.max(this.gcTime||0,s??(pt?1/0:5*60*1e3))}clearGcTimeout(){r(this,ht)&&(clearTimeout(r(this,ht)),h(this,ht,void 0))}},ht=new WeakMap,Re),St,Pt,k,U,xt,ct,N,W,Fe,fs=(Fe=class extends $e{constructor(t){super();l(this,N);l(this,St);l(this,Pt);l(this,k);l(this,U);l(this,xt);l(this,ct);h(this,ct,!1),h(this,xt,t.defaultOptions),this.setOptions(t.options),this.observers=[],h(this,k,t.cache),this.queryKey=t.queryKey,this.queryHash=t.queryHash,h(this,St,ds(this.options)),this.state=t.state??r(this,St),this.scheduleGc()}get meta(){return this.options.meta}get promise(){var t;return(t=r(this,U))==null?void 0:t.promise}setOptions(t){this.options={...r(this,xt),...t},this.updateGcTime(this.options.gcTime)}optionalRemove(){!this.observers.length&&this.state.fetchStatus==="idle"&&r(this,k).remove(this)}setData(t,e){const i=Jt(this.state.data,t,this.options);return p(this,N,W).call(this,{data:i,type:"success",dataUpdatedAt:e==null?void 0:e.updatedAt,manual:e==null?void 0:e.manual}),i}setState(t,e){p(this,N,W).call(this,{type:"setState",state:t,setStateOptions:e})}cancel(t){var i,n;const e=(i=r(this,U))==null?void 0:i.promise;return(n=r(this,U))==null||n.cancel(t),e?e.then(H).catch(H):Promise.resolve()}destroy(){super.destroy(),this.cancel({silent:!0})}reset(){this.destroy(),this.setState(r(this,St))}isActive(){return this.observers.some(t=>G(t.options.enabled,this)!==!1)}isDisabled(){return this.getObserversCount()>0?!this.isActive():this.options.queryFn===fe||this.state.dataUpdateCount+this.state.errorUpdateCount===0}isStale(){return this.state.isInvalidated?!0:this.getObserversCount()>0?this.observers.some(t=>t.getCurrentResult().isStale):this.state.data===void 0}isStaleByTime(t=0){return this.state.isInvalidated||this.state.data===void 0||!Le(this.state.dataUpdatedAt,t)}onFocus(){var e;const t=this.observers.find(i=>i.shouldFetchOnWindowFocus());t==null||t.refetch({cancelRefetch:!1}),(e=r(this,U))==null||e.continue()}onOnline(){var e;const t=this.observers.find(i=>i.shouldFetchOnReconnect());t==null||t.refetch({cancelRefetch:!1}),(e=r(this,U))==null||e.continue()}addObserver(t){this.observers.includes(t)||(this.observers.push(t),this.clearGcTimeout(),r(this,k).notify({type:"observerAdded",query:this,observer:t}))}removeObserver(t){this.observers.includes(t)&&(this.observers=this.observers.filter(e=>e!==t),this.observers.length||(r(this,U)&&(r(this,ct)?r(this,U).cancel({revert:!0}):r(this,U).cancelRetry()),this.scheduleGc()),r(this,k).notify({type:"observerRemoved",query:this,observer:t}))}getObserversCount(){return this.observers.length}invalidate(){this.state.isInvalidated||p(this,N,W).call(this,{type:"invalidate"})}fetch(t,e){var y,w,f;if(this.state.fetchStatus!=="idle"){if(this.state.data!==void 0&&(e!=null&&e.cancelRefetch))this.cancel({silent:!0});else if(r(this,U))return r(this,U).continueRetry(),r(this,U).promise}if(t&&this.setOptions(t),!this.options.queryFn){const c=this.observers.find(O=>O.options.queryFn);c&&this.setOptions(c.options)}const i=new AbortController,n=c=>{Object.defineProperty(c,"signal",{enumerable:!0,get:()=>(h(this,ct,!0),i.signal)})},a=()=>{const c=He(this.options,e),O={queryKey:this.queryKey,meta:this.meta};return n(O),h(this,ct,!1),this.options.persister?this.options.persister(c,O,this):c(O)},o={fetchOptions:e,options:this.options,queryKey:this.queryKey,state:this.state,fetchFn:a};n(o),(y=this.options.behavior)==null||y.onFetch(o,this),h(this,Pt,this.state),(this.state.fetchStatus==="idle"||this.state.fetchMeta!==((w=o.fetchOptions)==null?void 0:w.meta))&&p(this,N,W).call(this,{type:"fetch",meta:(f=o.fetchOptions)==null?void 0:f.meta});const u=c=>{var O,d,Q,m;zt(c)&&c.silent||p(this,N,W).call(this,{type:"error",error:c}),zt(c)||((d=(O=r(this,k).config).onError)==null||d.call(O,c,this),(m=(Q=r(this,k).config).onSettled)==null||m.call(Q,this.state.data,c,this)),this.scheduleGc()};return h(this,U,Ge({initialPromise:e==null?void 0:e.initialPromise,fn:o.fetchFn,abort:i.abort.bind(i),onSuccess:c=>{var O,d,Q,m;if(c===void 0){u(new Error(`${this.queryHash} data is undefined`));return}try{this.setData(c)}catch(g){u(g);return}(d=(O=r(this,k).config).onSuccess)==null||d.call(O,c,this),(m=(Q=r(this,k).config).onSettled)==null||m.call(Q,c,this.state.error,this),this.scheduleGc()},onError:u,onFail:(c,O)=>{p(this,N,W).call(this,{type:"failed",failureCount:c,error:O})},onPause:()=>{p(this,N,W).call(this,{type:"pause"})},onContinue:()=>{p(this,N,W).call(this,{type:"continue"})},retry:o.options.retry,retryDelay:o.options.retryDelay,networkMode:o.options.networkMode,canRun:()=>!0})),r(this,U).start()}},St=new WeakMap,Pt=new WeakMap,k=new WeakMap,U=new WeakMap,xt=new WeakMap,ct=new WeakMap,N=new WeakSet,W=function(t){const e=i=>{switch(t.type){case"failed":return{...i,fetchFailureCount:t.failureCount,fetchFailureReason:t.error};case"pause":return{...i,fetchStatus:"paused"};case"continue":return{...i,fetchStatus:"fetching"};case"fetch":return{...i,...Be(i.data,this.options),fetchMeta:t.meta??null};case"success":return{...i,data:t.data,dataUpdateCount:i.dataUpdateCount+1,dataUpdatedAt:t.dataUpdatedAt??Date.now(),error:null,isInvalidated:!1,status:"success",...!t.manual&&{fetchStatus:"idle",fetchFailureCount:0,fetchFailureReason:null}};case"error":const n=t.error;return zt(n)&&n.revert&&r(this,Pt)?{...r(this,Pt),fetchStatus:"idle"}:{...i,error:n,errorUpdateCount:i.errorUpdateCount+1,errorUpdatedAt:Date.now(),fetchFailureCount:i.fetchFailureCount+1,fetchFailureReason:n,fetchStatus:"idle",status:"error"};case"invalidate":return{...i,isInvalidated:!0};case"setState":return{...i,...t.state}}};this.state=e(this.state),M.batch(()=>{this.observers.forEach(i=>{i.onQueryUpdate()}),r(this,k).notify({query:this,type:"updated",action:t})})},Fe);function Be(s,t){return{fetchFailureCount:0,fetchFailureReason:null,fetchStatus:_e(t.networkMode)?"fetching":"paused",...s===void 0&&{error:null,status:"pending"}}}function ds(s){const t=typeof s.initialData=="function"?s.initialData():s.initialData,e=t!==void 0,i=e?typeof s.initialDataUpdatedAt=="function"?s.initialDataUpdatedAt():s.initialDataUpdatedAt:0;return{data:t,dataUpdateCount:0,dataUpdatedAt:e?i??Date.now():0,error:null,errorUpdateCount:0,errorUpdatedAt:0,fetchFailureCount:0,fetchFailureReason:null,fetchMeta:null,isInvalidated:!1,status:e?"success":"pending",fetchStatus:"idle"}}var $,De,Ve=(De=class extends qt{constructor(e={}){super();l(this,$);this.config=e,h(this,$,new Map)}build(e,i,n){const a=i.queryKey,o=i.queryHash??le(a,i);let u=this.get(o);return u||(u=new fs({cache:this,queryKey:a,queryHash:o,options:e.defaultQueryOptions(i),state:n,defaultOptions:e.getQueryDefaults(a)}),this.add(u)),u}add(e){r(this,$).has(e.queryHash)||(r(this,$).set(e.queryHash,e),this.notify({type:"added",query:e}))}remove(e){const i=r(this,$).get(e.queryHash);i&&(e.destroy(),i===e&&r(this,$).delete(e.queryHash),this.notify({type:"removed",query:e}))}clear(){M.batch(()=>{this.getAll().forEach(e=>{this.remove(e)})})}get(e){return r(this,$).get(e)}getAll(){return[...r(this,$).values()]}find(e){const i={exact:!0,...e};return this.getAll().find(n=>me(i,n))}findAll(e={}){const i=this.getAll();return Object.keys(e).length>0?i.filter(n=>me(e,n)):i}notify(e){M.batch(()=>{this.listeners.forEach(i=>{i(e)})})}onFocus(){M.batch(()=>{this.getAll().forEach(e=>{e.onFocus()})})}onOnline(){M.batch(()=>{this.getAll().forEach(e=>{e.onOnline()})})}},$=new WeakMap,De),B,q,lt,V,X,Ee,ys=(Ee=class extends $e{constructor(t){super();l(this,V);l(this,B);l(this,q);l(this,lt);this.mutationId=t.mutationId,h(this,q,t.mutationCache),h(this,B,[]),this.state=t.state||ze(),this.setOptions(t.options),this.scheduleGc()}setOptions(t){this.options=t,this.updateGcTime(this.options.gcTime)}get meta(){return this.options.meta}addObserver(t){r(this,B).includes(t)||(r(this,B).push(t),this.clearGcTimeout(),r(this,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,lt))==null?void 0:t.continue())??this.execute(this.state.variables)}async execute(t){var n,a,o,u,y,w,f,c,O,d,Q,m,g,F,E,P,A,K,_,I;h(this,lt,Ge({fn:()=>this.options.mutationFn?this.options.mutationFn(t):Promise.reject(new Error("No mutationFn found")),onFail:(D,S)=>{p(this,V,X).call(this,{type:"failed",failureCount:D,error:S})},onPause:()=>{p(this,V,X).call(this,{type:"pause"})},onContinue:()=>{p(this,V,X).call(this,{type:"continue"})},retry:this.options.retry??0,retryDelay:this.options.retryDelay,networkMode:this.options.networkMode,canRun:()=>r(this,q).canRun(this)}));const e=this.state.status==="pending",i=!r(this,lt).canStart();try{if(!e){p(this,V,X).call(this,{type:"pending",variables:t,isPaused:i}),await((a=(n=r(this,q).config).onMutate)==null?void 0:a.call(n,t,this));const S=await((u=(o=this.options).onMutate)==null?void 0:u.call(o,t));S!==this.state.context&&p(this,V,X).call(this,{type:"pending",context:S,variables:t,isPaused:i})}const D=await r(this,lt).start();return await((w=(y=r(this,q).config).onSuccess)==null?void 0:w.call(y,D,t,this.state.context,this)),await((c=(f=this.options).onSuccess)==null?void 0:c.call(f,D,t,this.state.context)),await((d=(O=r(this,q).config).onSettled)==null?void 0:d.call(O,D,null,this.state.variables,this.state.context,this)),await((m=(Q=this.options).onSettled)==null?void 0:m.call(Q,D,null,t,this.state.context)),p(this,V,X).call(this,{type:"success",data:D}),D}catch(D){try{throw await((F=(g=r(this,q).config).onError)==null?void 0:F.call(g,D,t,this.state.context,this)),await((P=(E=this.options).onError)==null?void 0:P.call(E,D,t,this.state.context)),await((K=(A=r(this,q).config).onSettled)==null?void 0:K.call(A,void 0,D,this.state.variables,this.state.context,this)),await((I=(_=this.options).onSettled)==null?void 0:I.call(_,void 0,D,t,this.state.context)),D}finally{p(this,V,X).call(this,{type:"error",error:D})}}finally{r(this,q).runNext(this)}}},B=new WeakMap,q=new WeakMap,lt=new WeakMap,V=new WeakSet,X=function(t){const e=i=>{switch(t.type){case"failed":return{...i,failureCount:t.failureCount,failureReason:t.error};case"pause":return{...i,isPaused:!0};case"continue":return{...i,isPaused:!1};case"pending":return{...i,context:t.context,data:void 0,failureCount:0,failureReason:null,error:null,isPaused:t.isPaused,status:"pending",variables:t.variables,submittedAt:Date.now()};case"success":return{...i,data:t.data,failureCount:0,failureReason:null,error:null,status:"success",isPaused:!1};case"error":return{...i,data:void 0,error:t.error,failureCount:i.failureCount+1,failureReason:t.error,isPaused:!1,status:"error"}}};this.state=e(this.state),M.batch(()=>{r(this,B).forEach(i=>{i.onMutationUpdate(t)}),r(this,q).notify({mutation:this,type:"updated",action:t})})},Ee);function ze(){return{context:void 0,data:void 0,error:null,failureCount:0,failureReason:null,isPaused:!1,status:"idle",variables:void 0,submittedAt:0}}var L,Kt,Me,We=(Me=class extends qt{constructor(e={}){super();l(this,L);l(this,Kt);this.config=e,h(this,L,new Map),h(this,Kt,Date.now())}build(e,i,n){const a=new ys({mutationCache:this,mutationId:++_t(this,Kt)._,options:e.defaultMutationOptions(i),state:n});return this.add(a),a}add(e){const i=Nt(e),n=r(this,L).get(i)??[];n.push(e),r(this,L).set(i,n),this.notify({type:"added",mutation:e})}remove(e){var n;const i=Nt(e);if(r(this,L).has(i)){const a=(n=r(this,L).get(i))==null?void 0:n.filter(o=>o!==e);a&&(a.length===0?r(this,L).delete(i):r(this,L).set(i,a))}this.notify({type:"removed",mutation:e})}canRun(e){var n;const i=(n=r(this,L).get(Nt(e)))==null?void 0:n.find(a=>a.state.status==="pending");return!i||i===e}runNext(e){var n;const i=(n=r(this,L).get(Nt(e)))==null?void 0:n.find(a=>a!==e&&a.state.isPaused);return(i==null?void 0:i.continue())??Promise.resolve()}clear(){M.batch(()=>{this.getAll().forEach(e=>{this.remove(e)})})}getAll(){return[...r(this,L).values()].flat()}find(e){const i={exact:!0,...e};return this.getAll().find(n=>ve(i,n))}findAll(e={}){return this.getAll().filter(i=>ve(e,i))}notify(e){M.batch(()=>{this.listeners.forEach(i=>{i(e)})})}resumePausedMutations(){const e=this.getAll().filter(i=>i.state.isPaused);return M.batch(()=>Promise.all(e.map(i=>i.continue().catch(H))))}},L=new WeakMap,Kt=new WeakMap,Me);function Nt(s){var t;return((t=s.options.scope)==null?void 0:t.id)??String(s.mutationId)}function Oe(s){return{onFetch:(t,e)=>{var f,c,O,d,Q;const i=t.options,n=(O=(c=(f=t.fetchOptions)==null?void 0:f.meta)==null?void 0:c.fetchMore)==null?void 0:O.direction,a=((d=t.state.data)==null?void 0:d.pages)||[],o=((Q=t.state.data)==null?void 0:Q.pageParams)||[];let u={pages:[],pageParams:[]},y=0;const w=async()=>{let m=!1;const g=P=>{Object.defineProperty(P,"signal",{enumerable:!0,get:()=>(t.signal.aborted?m=!0:t.signal.addEventListener("abort",()=>{m=!0}),t.signal)})},F=He(t.options,t.fetchOptions),E=async(P,A,K)=>{if(m)return Promise.reject();if(A==null&&P.pages.length)return Promise.resolve(P);const _={queryKey:t.queryKey,pageParam:A,direction:K?"backward":"forward",meta:t.options.meta};g(_);const I=await F(_),{maxPages:D}=t.options,S=K?us:as;return{pages:S(P.pages,I,D),pageParams:S(P.pageParams,A,D)}};if(n&&a.length){const P=n==="backward",A=P?ps:Ce,K={pages:a,pageParams:o},_=A(i,K);u=await E(K,_,P)}else{const P=s??a.length;do{const A=y===0?o[0]??i.initialPageParam:Ce(i,u);if(y>0&&A==null)break;u=await E(u,A),y++}while(y<P)}return u};t.options.persister?t.fetchFn=()=>{var m,g;return(g=(m=t.options).persister)==null?void 0:g.call(m,w,{queryKey:t.queryKey,meta:t.options.meta,signal:t.signal},e)}:t.fetchFn=w}}}function Ce(s,{pages:t,pageParams:e}){const i=t.length-1;return t.length>0?s.getNextPageParam(t[i],t,e[i],e):void 0}function ps(s,{pages:t,pageParams:e}){var i;return t.length>0?(i=s.getPreviousPageParam)==null?void 0:i.call(s,t[0],t,e[0],e):void 0}var R,et,st,Rt,Ft,it,Dt,Et,Ae,ms=(Ae=class{constructor(t={}){l(this,R);l(this,et);l(this,st);l(this,Rt);l(this,Ft);l(this,it);l(this,Dt);l(this,Et);h(this,R,t.queryCache||new Ve),h(this,et,t.mutationCache||new We),h(this,st,t.defaultOptions||{}),h(this,Rt,new Map),h(this,Ft,new Map),h(this,it,0)}mount(){_t(this,it)._++,r(this,it)===1&&(h(this,Dt,de.subscribe(async t=>{t&&(await this.resumePausedMutations(),r(this,R).onFocus())})),h(this,Et,Bt.subscribe(async t=>{t&&(await this.resumePausedMutations(),r(this,R).onOnline())})))}unmount(){var t,e;_t(this,it)._--,r(this,it)===0&&((t=r(this,Dt))==null||t.call(this),h(this,Dt,void 0),(e=r(this,Et))==null||e.call(this),h(this,Et,void 0))}isFetching(t){return r(this,R).findAll({...t,fetchStatus:"fetching"}).length}isMutating(t){return r(this,et).findAll({...t,status:"pending"}).length}getQueryData(t){var i;const e=this.defaultQueryOptions({queryKey:t});return(i=r(this,R).get(e.queryHash))==null?void 0:i.state.data}ensureQueryData(t){const e=this.defaultQueryOptions(t),i=r(this,R).build(this,e),n=i.state.data;return n===void 0?this.fetchQuery(t):(t.revalidateIfStale&&i.isStaleByTime(Ot(e.staleTime,i))&&this.prefetchQuery(e),Promise.resolve(n))}getQueriesData(t){return r(this,R).findAll(t).map(({queryKey:e,state:i})=>{const n=i.data;return[e,n]})}setQueryData(t,e,i){const n=this.defaultQueryOptions({queryKey:t}),a=r(this,R).get(n.queryHash),o=a==null?void 0:a.state.data,u=rs(e,o);if(u!==void 0)return r(this,R).build(this,n).setData(u,{...i,manual:!0})}setQueriesData(t,e,i){return M.batch(()=>r(this,R).findAll(t).map(({queryKey:n})=>[n,this.setQueryData(n,e,i)]))}getQueryState(t){var i;const e=this.defaultQueryOptions({queryKey:t});return(i=r(this,R).get(e.queryHash))==null?void 0:i.state}removeQueries(t){const e=r(this,R);M.batch(()=>{e.findAll(t).forEach(i=>{e.remove(i)})})}resetQueries(t,e){const i=r(this,R),n={type:"active",...t};return M.batch(()=>(i.findAll(t).forEach(a=>{a.reset()}),this.refetchQueries(n,e)))}cancelQueries(t,e={}){const i={revert:!0,...e},n=M.batch(()=>r(this,R).findAll(t).map(a=>a.cancel(i)));return Promise.all(n).then(H).catch(H)}invalidateQueries(t,e={}){return M.batch(()=>{if(r(this,R).findAll(t).forEach(n=>{n.invalidate()}),(t==null?void 0:t.refetchType)==="none")return Promise.resolve();const i={...t,type:(t==null?void 0:t.refetchType)??(t==null?void 0:t.type)??"active"};return this.refetchQueries(i,e)})}refetchQueries(t,e={}){const i={...e,cancelRefetch:e.cancelRefetch??!0},n=M.batch(()=>r(this,R).findAll(t).filter(a=>!a.isDisabled()).map(a=>{let o=a.fetch(void 0,i);return i.throwOnError||(o=o.catch(H)),a.state.fetchStatus==="paused"?Promise.resolve():o}));return Promise.all(n).then(H)}fetchQuery(t){const e=this.defaultQueryOptions(t);e.retry===void 0&&(e.retry=!1);const i=r(this,R).build(this,e);return i.isStaleByTime(Ot(e.staleTime,i))?i.fetch(e):Promise.resolve(i.state.data)}prefetchQuery(t){return this.fetchQuery(t).then(H).catch(H)}fetchInfiniteQuery(t){return t.behavior=Oe(t.pages),this.fetchQuery(t)}prefetchInfiniteQuery(t){return this.fetchInfiniteQuery(t).then(H).catch(H)}ensureInfiniteQueryData(t){return t.behavior=Oe(t.pages),this.ensureQueryData(t)}resumePausedMutations(){return Bt.isOnline()?r(this,et).resumePausedMutations():Promise.resolve()}getQueryCache(){return r(this,R)}getMutationCache(){return r(this,et)}getDefaultOptions(){return r(this,st)}setDefaultOptions(t){h(this,st,t)}setQueryDefaults(t,e){r(this,Rt).set(mt(t),{queryKey:t,defaultOptions:e})}getQueryDefaults(t){const e=[...r(this,Rt).values()],i={};return e.forEach(n=>{Tt(t,n.queryKey)&&Object.assign(i,n.defaultOptions)}),i}setMutationDefaults(t,e){r(this,Ft).set(mt(t),{mutationKey:t,defaultOptions:e})}getMutationDefaults(t){const e=[...r(this,Ft).values()];let i={};return e.forEach(n=>{Tt(t,n.mutationKey)&&(i={...i,...n.defaultOptions})}),i}defaultQueryOptions(t){if(t._defaulted)return t;const e={...r(this,st).queries,...this.getQueryDefaults(t.queryKey),...t,_defaulted:!0};return e.queryHash||(e.queryHash=le(e.queryKey,e)),e.refetchOnReconnect===void 0&&(e.refetchOnReconnect=e.networkMode!=="always"),e.throwOnError===void 0&&(e.throwOnError=!!e.suspense),!e.networkMode&&e.persister&&(e.networkMode="offlineFirst"),e.queryFn===fe&&(e.enabled=!1),e}defaultMutationOptions(t){return t!=null&&t._defaulted?t:{...r(this,st).mutations,...(t==null?void 0:t.mutationKey)&&this.getMutationDefaults(t.mutationKey),...t,_defaulted:!0}}clear(){r(this,R).clear(),r(this,et).clear()}},R=new WeakMap,et=new WeakMap,st=new WeakMap,Rt=new WeakMap,Ft=new WeakMap,it=new WeakMap,Dt=new WeakMap,Et=new WeakMap,Ae),T,b,Lt,j,ft,Mt,rt,z,kt,At,Ut,dt,yt,nt,It,C,jt,Zt,te,ee,se,ie,re,ne,Ye,Ue,vs=(Ue=class extends qt{constructor(t,e){super();l(this,C);l(this,T);l(this,b);l(this,Lt);l(this,j);l(this,ft);l(this,Mt);l(this,rt);l(this,z);l(this,kt);l(this,At);l(this,Ut);l(this,dt);l(this,yt);l(this,nt);l(this,It,new Set);this.options=e,h(this,T,t),h(this,z,null),h(this,rt,Xt()),this.options.experimental_prefetchInRender||r(this,rt).reject(new Error("experimental_prefetchInRender feature flag is not enabled")),this.bindMethods(),this.setOptions(e)}bindMethods(){this.refetch=this.refetch.bind(this)}onSubscribe(){this.listeners.size===1&&(r(this,b).addObserver(this),we(r(this,b),this.options)?p(this,C,jt).call(this):this.updateResult(),p(this,C,se).call(this))}onUnsubscribe(){this.hasListeners()||this.destroy()}shouldFetchOnReconnect(){return ae(r(this,b),this.options,this.options.refetchOnReconnect)}shouldFetchOnWindowFocus(){return ae(r(this,b),this.options,this.options.refetchOnWindowFocus)}destroy(){this.listeners=new Set,p(this,C,ie).call(this),p(this,C,re).call(this),r(this,b).removeObserver(this)}setOptions(t,e){const i=this.options,n=r(this,b);if(this.options=r(this,T).defaultQueryOptions(t),this.options.enabled!==void 0&&typeof this.options.enabled!="boolean"&&typeof this.options.enabled!="function"&&typeof G(this.options.enabled,r(this,b))!="boolean")throw new Error("Expected enabled to be a boolean or a callback that returns a boolean");p(this,C,ne).call(this),r(this,b).setOptions(this.options),i._defaulted&&!$t(this.options,i)&&r(this,T).getQueryCache().notify({type:"observerOptionsUpdated",query:r(this,b),observer:this});const a=this.hasListeners();a&&Qe(r(this,b),n,this.options,i)&&p(this,C,jt).call(this),this.updateResult(e),a&&(r(this,b)!==n||G(this.options.enabled,r(this,b))!==G(i.enabled,r(this,b))||Ot(this.options.staleTime,r(this,b))!==Ot(i.staleTime,r(this,b)))&&p(this,C,Zt).call(this);const o=p(this,C,te).call(this);a&&(r(this,b)!==n||G(this.options.enabled,r(this,b))!==G(i.enabled,r(this,b))||o!==r(this,nt))&&p(this,C,ee).call(this,o)}getOptimisticResult(t){const e=r(this,T).getQueryCache().build(r(this,T),t),i=this.createResult(e,t);return gs(this,i)&&(h(this,j,i),h(this,Mt,this.options),h(this,ft,r(this,b).state)),i}getCurrentResult(){return r(this,j)}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,It).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.fetch().then(()=>this.createResult(i,e))}fetch(t){return p(this,C,jt).call(this,{...t,cancelRefetch:t.cancelRefetch??!0}).then(()=>(this.updateResult(),r(this,j)))}createResult(t,e){var D;const i=r(this,b),n=this.options,a=r(this,j),o=r(this,ft),u=r(this,Mt),w=t!==i?t.state:r(this,Lt),{state:f}=t;let c={...f},O=!1,d;if(e._optimisticResults){const S=this.hasListeners(),vt=!S&&we(t,e),bt=S&&Qe(t,i,e,n);(vt||bt)&&(c={...c,...Be(f.data,t.options)}),e._optimisticResults==="isRestoring"&&(c.fetchStatus="idle")}let{error:Q,errorUpdatedAt:m,status:g}=c;if(e.select&&c.data!==void 0)if(a&&c.data===(o==null?void 0:o.data)&&e.select===r(this,kt))d=r(this,At);else try{h(this,kt,e.select),d=e.select(c.data),d=Jt(a==null?void 0:a.data,d,e),h(this,At,d),h(this,z,null)}catch(S){h(this,z,S)}else d=c.data;if(e.placeholderData!==void 0&&d===void 0&&g==="pending"){let S;if(a!=null&&a.isPlaceholderData&&e.placeholderData===(u==null?void 0:u.placeholderData))S=a.data;else if(S=typeof e.placeholderData=="function"?e.placeholderData((D=r(this,Ut))==null?void 0:D.state.data,r(this,Ut)):e.placeholderData,e.select&&S!==void 0)try{S=e.select(S),h(this,z,null)}catch(vt){h(this,z,vt)}S!==void 0&&(g="success",d=Jt(a==null?void 0:a.data,S,e),O=!0)}r(this,z)&&(Q=r(this,z),d=r(this,At),m=Date.now(),g="error");const F=c.fetchStatus==="fetching",E=g==="pending",P=g==="error",A=E&&F,K=d!==void 0,I={status:g,fetchStatus:c.fetchStatus,isPending:E,isSuccess:g==="success",isError:P,isInitialLoading:A,isLoading:A,data:d,dataUpdatedAt:c.dataUpdatedAt,error:Q,errorUpdatedAt:m,failureCount:c.fetchFailureCount,failureReason:c.fetchFailureReason,errorUpdateCount:c.errorUpdateCount,isFetched:c.dataUpdateCount>0||c.errorUpdateCount>0,isFetchedAfterMount:c.dataUpdateCount>w.dataUpdateCount||c.errorUpdateCount>w.errorUpdateCount,isFetching:F,isRefetching:F&&!E,isLoadingError:P&&!K,isPaused:c.fetchStatus==="paused",isPlaceholderData:O,isRefetchError:P&&K,isStale:ye(t,e),refetch:this.refetch,promise:r(this,rt)};if(this.options.experimental_prefetchInRender){const S=Ht=>{I.status==="error"?Ht.reject(I.error):I.data!==void 0&&Ht.resolve(I.data)},vt=()=>{const Ht=h(this,rt,I.promise=Xt());S(Ht)},bt=r(this,rt);switch(bt.status){case"pending":t.queryHash===i.queryHash&&S(bt);break;case"fulfilled":(I.status==="error"||I.data!==bt.value)&&vt();break;case"rejected":(I.status!=="error"||I.error!==bt.reason)&&vt();break}}return I}updateResult(t){const e=r(this,j),i=this.createResult(r(this,b),this.options);if(h(this,ft,r(this,b).state),h(this,Mt,this.options),r(this,ft).data!==void 0&&h(this,Ut,r(this,b)),$t(i,e))return;h(this,j,i);const n={},a=()=>{if(!e)return!0;const{notifyOnChangeProps:o}=this.options,u=typeof o=="function"?o():o;if(u==="all"||!u&&!r(this,It).size)return!0;const y=new Set(u??r(this,It));return this.options.throwOnError&&y.add("error"),Object.keys(r(this,j)).some(w=>{const f=w;return r(this,j)[f]!==e[f]&&y.has(f)})};(t==null?void 0:t.listeners)!==!1&&a()&&(n.listeners=!0),p(this,C,Ye).call(this,{...n,...t})}onQueryUpdate(){this.updateResult(),this.hasListeners()&&p(this,C,se).call(this)}},T=new WeakMap,b=new WeakMap,Lt=new WeakMap,j=new WeakMap,ft=new WeakMap,Mt=new WeakMap,rt=new WeakMap,z=new WeakMap,kt=new WeakMap,At=new WeakMap,Ut=new WeakMap,dt=new WeakMap,yt=new WeakMap,nt=new WeakMap,It=new WeakMap,C=new WeakSet,jt=function(t){p(this,C,ne).call(this);let e=r(this,b).fetch(this.options,t);return t!=null&&t.throwOnError||(e=e.catch(H)),e},Zt=function(){p(this,C,ie).call(this);const t=Ot(this.options.staleTime,r(this,b));if(pt||r(this,j).isStale||!Wt(t))return;const i=Le(r(this,j).dataUpdatedAt,t)+1;h(this,dt,setTimeout(()=>{r(this,j).isStale||this.updateResult()},i))},te=function(){return(typeof this.options.refetchInterval=="function"?this.options.refetchInterval(r(this,b)):this.options.refetchInterval)??!1},ee=function(t){p(this,C,re).call(this),h(this,nt,t),!(pt||G(this.options.enabled,r(this,b))===!1||!Wt(r(this,nt))||r(this,nt)===0)&&h(this,yt,setInterval(()=>{(this.options.refetchIntervalInBackground||de.isFocused())&&p(this,C,jt).call(this)},r(this,nt)))},se=function(){p(this,C,Zt).call(this),p(this,C,ee).call(this,p(this,C,te).call(this))},ie=function(){r(this,dt)&&(clearTimeout(r(this,dt)),h(this,dt,void 0))},re=function(){r(this,yt)&&(clearInterval(r(this,yt)),h(this,yt,void 0))},ne=function(){const t=r(this,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,Lt,t.state),this.hasListeners()&&(e==null||e.removeObserver(this),t.addObserver(this))},Ye=function(t){M.batch(()=>{t.listeners&&this.listeners.forEach(e=>{e(r(this,j))}),r(this,T).getQueryCache().notify({query:r(this,b),type:"observerResultsUpdated"})})},Ue);function bs(s,t){return G(t.enabled,s)!==!1&&s.state.data===void 0&&!(s.state.status==="error"&&t.retryOnMount===!1)}function we(s,t){return bs(s,t)||s.state.data!==void 0&&ae(s,t,t.refetchOnMount)}function ae(s,t,e){if(G(t.enabled,s)!==!1){const i=typeof e=="function"?e(s):e;return i==="always"||i!==!1&&ye(s,t)}return!1}function Qe(s,t,e,i){return(s!==t||G(i.enabled,s)===!1)&&(!e.suspense||s.state.status!=="error")&&ye(s,e)}function ye(s,t){return G(t.enabled,s)!==!1&&s.isStaleByTime(Ot(t.staleTime,s))}function gs(s,t){return!$t(s.getCurrentResult(),t)}var at,ut,x,Y,J,Gt,ue,Ie,Os=(Ie=class extends qt{constructor(t,e){super();l(this,J);l(this,at);l(this,ut);l(this,x);l(this,Y);h(this,at,t),this.setOptions(e),this.bindMethods(),p(this,J,Gt).call(this)}bindMethods(){this.mutate=this.mutate.bind(this),this.reset=this.reset.bind(this)}setOptions(t){var i;const e=this.options;this.options=r(this,at).defaultMutationOptions(t),$t(this.options,e)||r(this,at).getMutationCache().notify({type:"observerOptionsUpdated",mutation:r(this,x),observer:this}),e!=null&&e.mutationKey&&this.options.mutationKey&&mt(e.mutationKey)!==mt(this.options.mutationKey)?this.reset():((i=r(this,x))==null?void 0:i.state.status)==="pending"&&r(this,x).setOptions(this.options)}onUnsubscribe(){var t;this.hasListeners()||(t=r(this,x))==null||t.removeObserver(this)}onMutationUpdate(t){p(this,J,Gt).call(this),p(this,J,ue).call(this,t)}getCurrentResult(){return r(this,ut)}reset(){var t;(t=r(this,x))==null||t.removeObserver(this),h(this,x,void 0),p(this,J,Gt).call(this),p(this,J,ue).call(this)}mutate(t,e){var i;return h(this,Y,e),(i=r(this,x))==null||i.removeObserver(this),h(this,x,r(this,at).getMutationCache().build(r(this,at),this.options)),r(this,x).addObserver(this),r(this,x).execute(t)}},at=new WeakMap,ut=new WeakMap,x=new WeakMap,Y=new WeakMap,J=new WeakSet,Gt=function(){var e;const t=((e=r(this,x))==null?void 0:e.state)??ze();h(this,ut,{...t,isPending:t.status==="pending",isSuccess:t.status==="success",isError:t.status==="error",isIdle:t.status==="idle",mutate:this.mutate,reset:this.reset})},ue=function(t){M.batch(()=>{var e,i,n,a,o,u,y,w;if(r(this,Y)&&this.hasListeners()){const f=r(this,ut).variables,c=r(this,ut).context;(t==null?void 0:t.type)==="success"?((i=(e=r(this,Y)).onSuccess)==null||i.call(e,t.data,f,c),(a=(n=r(this,Y)).onSettled)==null||a.call(n,t.data,null,f,c)):(t==null?void 0:t.type)==="error"&&((u=(o=r(this,Y)).onError)==null||u.call(o,t.error,f,c),(w=(y=r(this,Y)).onSettled)==null||w.call(y,void 0,t.error,f,c))}this.listeners.forEach(f=>{f(r(this,ut))})})},Ie),Cs="VUE_QUERY_CLIENT";function Je(s){const t=s?`:${s}`:"";return`${Cs}${t}`}function oe(s,t){Object.keys(s).forEach(e=>{s[e]=t[e]})}function he(s,t,e="",i=0){if(t){const n=t(s,e,i);if(n===void 0&&qe(s)||n!==void 0)return n}if(Array.isArray(s))return s.map((n,a)=>he(n,t,String(a),i+1));if(typeof s=="object"&&Qs(s)){const n=Object.entries(s).map(([a,o])=>[a,he(o,t,a,i+1)]);return Object.fromEntries(n)}return s}function ws(s,t){return he(s,t)}function v(s,t=!1){return ws(s,(e,i,n)=>{if(n===1&&i==="queryKey")return v(e,!0);if(t&&Ss(e))return v(e(),t);if(qe(e))return v(Ze(e),t)})}function Qs(s){if(Object.prototype.toString.call(s)!=="[object Object]")return!1;const t=Object.getPrototypeOf(s);return t===null||t===Object.prototype}function Ss(s){return typeof s=="function"}function ce(s,t){return typeof s=="function"?s(...t):!!s}function Xe(s=""){if(!ts())throw new Error("vue-query hooks can only be used inside setup() function or functions that support injection context.");const t=Je(s),e=es(t);if(!e)throw new Error("No 'queryClient' found in Vue context, use 'VueQueryPlugin' to properly initialize the library.");return e}var Ps=class extends Ve{find(s){return super.find(v(s))}findAll(s={}){return super.findAll(v(s))}},Rs=class extends We{find(s){return super.find(v(s))}findAll(s={}){return super.findAll(v(s))}},Fs=class extends ms{constructor(s={}){const t={defaultOptions:s.defaultOptions,queryCache:s.queryCache||new Ps,mutationCache:s.mutationCache||new Rs};super(t),this.isRestoring=ss(!1)}isFetching(s={}){return super.isFetching(v(s))}isMutating(s={}){return super.isMutating(v(s))}getQueryData(s){return super.getQueryData(v(s))}ensureQueryData(s){return super.ensureQueryData(v(s))}getQueriesData(s){return super.getQueriesData(v(s))}setQueryData(s,t,e={}){return super.setQueryData(v(s),t,v(e))}setQueriesData(s,t,e={}){return super.setQueriesData(v(s),t,v(e))}getQueryState(s){return super.getQueryState(v(s))}removeQueries(s={}){return super.removeQueries(v(s))}resetQueries(s={},t={}){return super.resetQueries(v(s),v(t))}cancelQueries(s={},t={}){return super.cancelQueries(v(s),v(t))}invalidateQueries(s={},t={}){const e=v(s),i=v(t);if(super.invalidateQueries({...e,refetchType:"none"},i),e.refetchType==="none")return Promise.resolve();const n={...e,type:e.refetchType??e.type??"active"};return is().then(()=>super.refetchQueries(n,i))}refetchQueries(s={},t={}){return super.refetchQueries(v(s),v(t))}fetchQuery(s){return super.fetchQuery(v(s))}prefetchQuery(s){return super.prefetchQuery(v(s))}fetchInfiniteQuery(s){return super.fetchInfiniteQuery(v(s))}prefetchInfiniteQuery(s){return super.prefetchInfiniteQuery(v(s))}setDefaultOptions(s){super.setDefaultOptions(v(s))}setQueryDefaults(s,t){super.setQueryDefaults(v(s),v(t))}getQueryDefaults(s){return super.getQueryDefaults(v(s))}setMutationDefaults(s,t){super.setMutationDefaults(v(s),v(t))}getMutationDefaults(s){return super.getMutationDefaults(v(s))}},qs={install:(s,t={})=>{const e=Je(t.queryClientKey);let i;if("queryClient"in t&&t.queryClient)i=t.queryClient;else{const o="queryClientConfig"in t?t.queryClientConfig:void 0;i=new Fs(o)}pt||i.mount();let n=()=>{};if(t.clientPersister){i.isRestoring.value=!0;const[o,u]=t.clientPersister(i);n=o,u.then(()=>{var y;i.isRestoring.value=!1,(y=t.clientPersisterOnSuccess)==null||y.call(t,i)})}const a=()=>{i.unmount(),n()};if(s.onUnmount)s.onUnmount(a);else{const o=s.unmount;s.unmount=function(){a(),o()}}s.provide(e,i)}};function Ds(s,t,e){const i=Xe(),n=je(()=>{const d=v(t);typeof d.enabled=="function"&&(d.enabled=d.enabled());const Q=i.defaultQueryOptions(d);return Q._optimisticResults=i.isRestoring.value?"isRestoring":"optimistic",Q}),a=new s(i,n.value),o=Te(a.getCurrentResult());let u=()=>{};gt(i.isRestoring,d=>{d||(u(),u=a.subscribe(Q=>{oe(o,Q)}))},{immediate:!0});const y=()=>{a.setOptions(n.value),oe(o,a.getCurrentResult())};gt(n,y),xe(()=>{u()});const w=(...d)=>(y(),o.refetch(...d)),f=()=>new Promise((d,Q)=>{let m=()=>{};const g=()=>{if(n.value.enabled!==!1){a.setOptions(n.value);const F=a.getOptimisticResult(n.value);F.isStale?(m(),a.fetchOptimistic(n.value).then(d,E=>{ce(n.value.throwOnError,[E,a.getCurrentQuery()])?Q(E):d(a.getCurrentResult())})):(m(),d(F))}};g(),m=gt(n,g)});gt(()=>o.error,d=>{if(o.isError&&!o.isFetching&&ce(n.value.throwOnError,[d,a.getCurrentQuery()]))throw d});const O=Ke(o);for(const d in o)typeof o[d]=="function"&&(O[d]=o[d]);return O.suspense=f,O.refetch=w,O}function js(s,t){return Ds(vs,s)}function Ts(s,t){const e=Xe(),i=je(()=>e.defaultMutationOptions(v(s))),n=new Os(e,i.value),a=Te(n.getCurrentResult()),o=n.subscribe(f=>{oe(a,f)}),u=(f,c)=>{n.mutate(f,c).catch(()=>{})};gt(i,()=>{n.setOptions(i.value)}),xe(()=>{o()});const w=Ke(a);return gt(()=>a.error,f=>{if(f&&ce(i.value.throwOnError,[f]))throw f}),{...w,mutate:u,mutateAsync:a.mutate,reset:a.reset}}export{Fs as Q,qs as V,js as a,Ts as b,Xe as u};
|
package/dist/interface/{@vee-validate.Bx5gwLSJ.0.0.45.js → @vee-validate.Bs1leH4B.0.0.46.js}
RENAMED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{Z as a,a as s,b as h}from"./zod.bkdEMpUp.0.0.
|
|
1
|
+
import{Z as a,a as s,b as h}from"./zod.bkdEMpUp.0.0.46.js";import{i as j,c as y}from"./vee-validate.7Af0cEu8.0.0.46.js";/**
|
|
2
2
|
* vee-validate v4.14.7
|
|
3
3
|
* (c) 2024 Abdelrahman Awad
|
|
4
4
|
* @license MIT
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{d as kt}from"./perfect-debounce.Cp2ysxOb.0.0.
|
|
1
|
+
import{d as kt}from"./perfect-debounce.Cp2ysxOb.0.0.46.js";import{c as No}from"./hookable.B8xFkYCm.0.0.46.js";/**
|
|
2
2
|
* @vue/shared v3.5.13
|
|
3
3
|
* (c) 2018-present Yuxi (Evan) You and Vue contributors
|
|
4
4
|
* @license MIT
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{t as v,c as b,b as S,d as V,e as D,f as p,g as y,j as B,k as w,m as C,l as N,p as j,v as T}from"./@vue.
|
|
1
|
+
import{t as v,c as b,b as S,d as V,e as D,f as p,g as y,j as B,k as w,m as C,l as N,p as j,v as T}from"./@vue.YfIN5b-F.0.0.46.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",C({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]=N(j((...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),[[T,!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),B(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)):w("v-if",!0)],2)],16,M)},L.__file="src/Toggle.vue";export{L as b};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{u as Ae,r as b,q as pe,w as R,n as he,x as we,o as ke,y as Le,z as ge,i as ne,c as O,A as He,B as ye,C as Se,D as oe,E as re,F as K,G as ie}from"./@vue.DFpgkscf.0.0.45.js";import{n as Y}from"./nprogress.B_R835zT.0.0.45.js";function N(e){return we()?(ke(e),!0):!1}function bt(e){let n=0,t,o;const s=()=>{n-=1,o&&n<=0&&(o.stop(),t=void 0,o=void 0)};return(...r)=>(n+=1,o||(o=Le(!0),t=o.run(()=>e(...r))),N(s),t)}function Pe(e,n,{enumerable:t=!1,unwrap:o=!0}={}){for(const[s,r]of Object.entries(n))s!=="value"&&(ne(r)&&o?Object.defineProperty(e,s,{get(){return r.value},set(a){r.value=a},enumerable:t}):Object.defineProperty(e,s,{value:r,enumerable:t}));return e}function We(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 _(e){return typeof e=="function"?e():Ae(e)}const V=typeof window<"u"&&typeof document<"u";typeof WorkerGlobalScope<"u"&&globalThis instanceof WorkerGlobalScope;const Re=e=>e!=null,Ce=Object.prototype.toString,be=e=>Ce.call(e)==="[object Object]",W=()=>{},B=Ye();function Ye(){var e,n;return V&&((e=window==null?void 0:window.navigator)==null?void 0:e.userAgent)&&(/iP(?:ad|hone|od)/.test(window.navigator.userAgent)||((n=window==null?void 0:window.navigator)==null?void 0:n.maxTouchPoints)>2&&/iPad|Macintosh/.test(window==null?void 0:window.navigator.userAgent))}function le(e,n){function t(...o){return new Promise((s,r)=>{Promise.resolve(e(()=>n.apply(this,o),{fn:n,thisArg:this,args:o})).then(s).catch(r)})}return t}const Ee=e=>e();function Ne(e,n={}){let t,o,s=W;const r=l=>{clearTimeout(l),s(),s=W};return l=>{const i=_(e),u=_(n.maxWait);return t&&r(t),i<=0||u!==void 0&&u<=0?(o&&(r(o),o=null),Promise.resolve(l())):new Promise((v,f)=>{s=n.rejectOnCancel?f:v,u&&!o&&(o=setTimeout(()=>{t&&r(t),o=null,v(l())},u)),t=setTimeout(()=>{o&&r(o),o=null,v(l())},i)})}}function ze(...e){let n=0,t,o=!0,s=W,r,a,l,i,u;!ne(e[0])&&typeof e[0]=="object"?{delay:a,trailing:l=!0,leading:i=!0,rejectOnCancel:u=!1}=e[0]:[a,l=!0,i=!0,u=!1]=e;const v=()=>{t&&(clearTimeout(t),t=void 0,s(),s=W)};return d=>{const p=_(a),g=Date.now()-n,m=()=>r=d();return v(),p<=0?(n=Date.now(),m()):(g>p&&(i||!o)?(n=Date.now(),m()):l&&(r=new Promise((h,c)=>{s=u?c:h,t=setTimeout(()=>{n=Date.now(),o=!0,h(m()),v()},Math.max(0,p-g))})),!i&&!t&&(t=setTimeout(()=>o=!0,p)),o=!1,r)}}function $e(e=Ee){const n=b(!0);function t(){n.value=!1}function o(){n.value=!0}const s=(...r)=>{n.value&&e(...r)};return{isActive:pe(n),pause:t,resume:o,eventFilter:s}}function Ie(e){const n=Object.create(null);return t=>n[t]||(n[t]=e(t))}const Xe=/-(\w)/g,je=Ie(e=>e.replace(Xe,(n,t)=>t?t.toUpperCase():""));function Be(e){return ye()}function _e(...e){if(e.length!==1)return He(...e);const n=e[0];return typeof n=="function"?pe(ge(()=>({get:n,set:W}))):b(n)}function Ve(e,n=200,t={}){return le(Ne(n,t),e)}function qe(e,n=200,t=!1,o=!0,s=!1){return le(ze(n,t,o,s),e)}function Et(e,n={}){let t=e,o,s;const r=ge((d,p)=>(o=d,s=p,{get(){return a()},set(g){l(g)}}));function a(d=!0){return d&&o(),t}function l(d,p=!0){var g,m;if(d===t)return;const h=t;((g=n.onBeforeChange)==null?void 0:g.call(n,d,h))!==!1&&(t=d,(m=n.onChanged)==null||m.call(n,d,h),p&&s())}return Pe(r,{get:a,set:l,untrackedGet:()=>a(!1),silentSet:d=>l(d,!1),peek:()=>a(!1),lay:d=>l(d,!1)},{enumerable:!0})}function Ge(e,n,t={}){const{eventFilter:o=Ee,...s}=t;return R(e,le(o,n),s)}function Ue(e,n,t={}){const{eventFilter:o,...s}=t,{eventFilter:r,pause:a,resume:l,isActive:i}=$e(o);return{stop:Ge(e,n,{...s,eventFilter:r}),pause:a,resume:l,isActive:i}}function q(e,n=!0,t){Be()?Se(e,t):n?e():he(e)}const Je=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[T\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/i,Ke=/[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 Qe(e,n,t,o){let s=e<12?"AM":"PM";return o&&(s=s.split("").reduce((r,a)=>r+=`${a}.`,"")),t?s.toLowerCase():s}function $(e){const n=["th","st","nd","rd"],t=e%100;return e+(n[(t-20)%10]||n[t]||n[0])}function Ze(e,n,t={}){var o;const s=e.getFullYear(),r=e.getMonth(),a=e.getDate(),l=e.getHours(),i=e.getMinutes(),u=e.getSeconds(),v=e.getMilliseconds(),f=e.getDay(),d=(o=t.customMeridiem)!=null?o:Qe,p={Yo:()=>$(s),YY:()=>String(s).slice(-2),YYYY:()=>s,M:()=>r+1,Mo:()=>$(r+1),MM:()=>`${r+1}`.padStart(2,"0"),MMM:()=>e.toLocaleDateString(_(t.locales),{month:"short"}),MMMM:()=>e.toLocaleDateString(_(t.locales),{month:"long"}),D:()=>String(a),Do:()=>$(a),DD:()=>`${a}`.padStart(2,"0"),H:()=>String(l),Ho:()=>$(l),HH:()=>`${l}`.padStart(2,"0"),h:()=>`${l%12||12}`.padStart(1,"0"),ho:()=>$(l%12||12),hh:()=>`${l%12||12}`.padStart(2,"0"),m:()=>String(i),mo:()=>$(i),mm:()=>`${i}`.padStart(2,"0"),s:()=>String(u),so:()=>$(u),ss:()=>`${u}`.padStart(2,"0"),SSS:()=>`${v}`.padStart(3,"0"),d:()=>f,dd:()=>e.toLocaleDateString(_(t.locales),{weekday:"narrow"}),ddd:()=>e.toLocaleDateString(_(t.locales),{weekday:"short"}),dddd:()=>e.toLocaleDateString(_(t.locales),{weekday:"long"}),A:()=>d(l,i),AA:()=>d(l,i,!1,!0),a:()=>d(l,i,!0),aa:()=>d(l,i,!0,!0)};return n.replace(Ke,(g,m)=>{var h,c;return(c=m??((h=p[g])==null?void 0:h.call(p)))!=null?c:g})}function et(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(Je);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 _t(e,n="HH:mm:ss",t={}){return O(()=>Ze(et(_(e)),_(n),t))}function Mt(e,n,t){let o;ne(t)?o={evaluating:t}:o=t||{};const{lazy:s=!1,evaluating:r=void 0,shallow:a=!0,onError:l=W}=o,i=b(!s),u=a?oe(n):b(n);let v=0;return re(async f=>{if(!i.value)return;v++;const d=v;let p=!1;r&&Promise.resolve().then(()=>{r.value=!0});try{const g=await e(m=>{f(()=>{r&&(r.value=!1),p||m()})});d===v&&(u.value=g)}catch(g){l(g)}finally{r&&d===v&&(r.value=!1),p=!0}}),s?O(()=>(i.value=!0,u.value)):u}function xt(e={}){const{inheritAttrs:n=!0}=e,t=oe(),o=ie({setup(r,{slots:a}){return()=>{t.value=a.default}}}),s=ie({inheritAttrs:n,setup(r,{attrs:a,slots:l}){return()=>{var i;t.value;const u=(i=t.value)==null?void 0:i.call(t,{...tt(a),$slots:l});return n&&(u==null?void 0:u.length)===1?u[0]:u}}});return We({define:o,reuse:s},[o,s])}function tt(e){const n={};for(const t in e)n[je(t)]=e[t];return n}const H=V?window:void 0,Me=V?window.document:void 0;function L(e){var n;const t=_(e);return(n=t==null?void 0:t.$el)!=null?n:t}function M(...e){let n,t,o,s;if(typeof e[0]=="string"||Array.isArray(e[0])?([t,o,s]=e,n=H):[n,t,o,s]=e,!n)return W;Array.isArray(t)||(t=[t]),Array.isArray(o)||(o=[o]);const r=[],a=()=>{r.forEach(v=>v()),r.length=0},l=(v,f,d,p)=>(v.addEventListener(f,d,p),()=>v.removeEventListener(f,d,p)),i=R(()=>[L(n),_(s)],([v,f])=>{if(a(),!v)return;const d=be(f)?{...f}:f;r.push(...t.flatMap(p=>o.map(g=>l(v,p,g,d))))},{immediate:!0,flush:"post"}),u=()=>{i(),a()};return N(u),u}let ae=!1;function Dt(e,n,t={}){const{window:o=H,ignore:s=[],capture:r=!0,detectIframe:a=!1}=t;if(!o)return W;B&&!ae&&(ae=!0,Array.from(o.document.body.children).forEach(m=>m.addEventListener("click",W)),o.document.documentElement.addEventListener("click",W));let l=!0;const i=m=>_(s).some(h=>{if(typeof h=="string")return Array.from(o.document.querySelectorAll(h)).some(c=>c===m.target||m.composedPath().includes(c));{const c=L(h);return c&&(m.target===c||m.composedPath().includes(c))}});function u(m){const h=_(m);return h&&h.$.subTree.shapeFlag===16}function v(m,h){const c=_(m),S=c.$.subTree&&c.$.subTree.children;return S==null||!Array.isArray(S)?!1:S.some(F=>F.el===h.target||h.composedPath().includes(F.el))}const f=m=>{const h=L(e);if(m.target!=null&&!(!(h instanceof Element)&&u(e)&&v(e,m))&&!(!h||h===m.target||m.composedPath().includes(h))){if(m.detail===0&&(l=!i(m)),!l){l=!0;return}n(m)}};let d=!1;const p=[M(o,"click",m=>{d||(d=!0,setTimeout(()=>{d=!1},0),f(m))},{passive:!0,capture:r}),M(o,"pointerdown",m=>{const h=L(e);l=!i(m)&&!!(h&&!m.composedPath().includes(h))},{passive:!0}),a&&M(o,"blur",m=>{setTimeout(()=>{var h;const c=L(e);((h=o.document.activeElement)==null?void 0:h.tagName)==="IFRAME"&&!(c!=null&&c.contains(o.document.activeElement))&&n(m)},0)})].filter(Boolean);return()=>p.forEach(m=>m())}function nt(){const e=b(!1),n=ye();return n&&Se(()=>{e.value=!0},n),e}function G(e){const n=nt();return O(()=>(n.value,!!e()))}function ot(e,n,t={}){const{window:o=H,...s}=t;let r;const a=G(()=>o&&"MutationObserver"in o),l=()=>{r&&(r.disconnect(),r=void 0)},i=O(()=>{const d=_(e),p=(Array.isArray(d)?d:[d]).map(L).filter(Re);return new Set(p)}),u=R(()=>i.value,d=>{l(),a.value&&d.size&&(r=new MutationObserver(n),d.forEach(p=>r.observe(p,s)))},{immediate:!0,flush:"post"}),v=()=>r==null?void 0:r.takeRecords(),f=()=>{u(),l()};return N(f),{isSupported:a,stop:f,takeRecords:v}}function rt(e,n={}){const{window:t=H}=n,o=G(()=>t&&"matchMedia"in t&&typeof t.matchMedia=="function");let s;const r=b(!1),a=u=>{r.value=u.matches},l=()=>{s&&("removeEventListener"in s?s.removeEventListener("change",a):s.removeListener(a))},i=re(()=>{o.value&&(l(),s=t.matchMedia(_(e)),"addEventListener"in s?s.addEventListener("change",a):s.addListener(a),r.value=s.matches)});return N(()=>{i(),l(),s=void 0}),r}const U=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},J="__vueuse_ssr_handlers__",lt=st();function st(){return J in U||(U[J]=U[J]||{}),U[J]}function ut(e,n){return lt[e]||n}function it(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 at={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 ct(e,n,t,o={}){var s;const{flush:r="pre",deep:a=!0,listenToStorageChanges:l=!0,writeDefaults:i=!0,mergeDefaults:u=!1,shallow:v,window:f=H,eventFilter:d,onError:p=y=>{console.error(y)},initOnMounted:g}=o,m=(v?oe:b)(typeof n=="function"?n():n);if(!t)try{t=ut("getDefaultStorage",()=>{var y;return(y=H)==null?void 0:y.localStorage})()}catch(y){p(y)}if(!t)return m;const h=_(n),c=it(h),S=(s=o.serializer)!=null?s:at[c],{pause:F,resume:D}=Ue(m,()=>P(m.value),{flush:r,deep:a,eventFilter:d});f&&l&&q(()=>{t instanceof Storage?M(f,"storage",T):M(f,ce,E),g&&T()}),g||T();function A(y,x){if(f){const k={key:e,oldValue:y,newValue:x,storageArea:t};f.dispatchEvent(t instanceof Storage?new StorageEvent("storage",k):new CustomEvent(ce,{detail:k}))}}function P(y){try{const x=t.getItem(e);if(y==null)A(x,null),t.removeItem(e);else{const k=S.write(y);x!==k&&(t.setItem(e,k),A(x,k))}}catch(x){p(x)}}function w(y){const x=y?y.newValue:t.getItem(e);if(x==null)return i&&h!=null&&t.setItem(e,S.write(h)),h;if(!y&&u){const k=S.read(x);return typeof u=="function"?u(k,h):c==="object"&&!Array.isArray(k)?{...h,...k}:k}else return typeof x!="string"?x:S.read(x)}function T(y){if(!(y&&y.storageArea!==t)){if(y&&y.key==null){m.value=h;return}if(!(y&&y.key!==e)){F();try{(y==null?void 0:y.newValue)!==S.write(m.value)&&(m.value=w(y))}catch(x){p(x)}finally{y?he(D):D()}}}}function E(y){T(y.detail)}return m}function Tt(e={}){const{document:n=Me}=e;if(!n)return b("visible");const t=b(n.visibilityState);return M(n,"visibilitychange",()=>{t.value=n.visibilityState}),t}function xe(e,n,t={}){const{window:o=H,...s}=t;let r;const a=G(()=>o&&"ResizeObserver"in o),l=()=>{r&&(r.disconnect(),r=void 0)},i=O(()=>{const f=_(e);return Array.isArray(f)?f.map(d=>L(d)):[L(f)]}),u=R(i,f=>{if(l(),a.value&&o){r=new ResizeObserver(n);for(const d of f)d&&r.observe(d,s)}},{immediate:!0,flush:"post"}),v=()=>{l(),u()};return N(v),{isSupported:a,stop:v}}function Ot(e,n={}){const{reset:t=!0,windowResize:o=!0,windowScroll:s=!0,immediate:r=!0,updateTiming:a="sync"}=n,l=b(0),i=b(0),u=b(0),v=b(0),f=b(0),d=b(0),p=b(0),g=b(0);function m(){const c=L(e);if(!c){t&&(l.value=0,i.value=0,u.value=0,v.value=0,f.value=0,d.value=0,p.value=0,g.value=0);return}const S=c.getBoundingClientRect();l.value=S.height,i.value=S.bottom,u.value=S.left,v.value=S.right,f.value=S.top,d.value=S.width,p.value=S.x,g.value=S.y}function h(){a==="sync"?m():a==="next-frame"&&requestAnimationFrame(()=>m())}return xe(e,h),R(()=>L(e),c=>!c&&h()),ot(e,h,{attributeFilter:["style","class"]}),s&&M("scroll",h,{capture:!0,passive:!0}),o&&M("resize",h,{passive:!0}),q(()=>{r&&h()}),{height:l,bottom:i,left:u,right:v,top:f,width:d,x:p,y:g,update:h}}function Ft(e,n={width:0,height:0},t={}){const{window:o=H,box:s="content-box"}=t,r=O(()=>{var f,d;return(d=(f=L(e))==null?void 0:f.namespaceURI)==null?void 0:d.includes("svg")}),a=b(n.width),l=b(n.height),{stop:i}=xe(e,([f])=>{const d=s==="border-box"?f.borderBoxSize:s==="content-box"?f.contentBoxSize:f.devicePixelContentBoxSize;if(o&&r.value){const p=L(e);if(p){const g=p.getBoundingClientRect();a.value=g.width,l.value=g.height}}else if(d){const p=Array.isArray(d)?d:[d];a.value=p.reduce((g,{inlineSize:m})=>g+m,0),l.value=p.reduce((g,{blockSize:m})=>g+m,0)}else a.value=f.contentRect.width,l.value=f.contentRect.height},t);q(()=>{const f=L(e);f&&(a.value="offsetWidth"in f?f.offsetWidth:n.width,l.value="offsetHeight"in f?f.offsetHeight:n.height)});const u=R(()=>L(e),f=>{a.value=f?n.width:0,l.value=f?n.height:0});function v(){i(),u()}return{width:a,height:l,stop:v}}const j=new Map;function At(e){const n=we();function t(l){var i;const u=j.get(e)||new Set;u.add(l),j.set(e,u);const v=()=>s(l);return(i=n==null?void 0:n.cleanups)==null||i.push(v),v}function o(l){function i(...u){s(i),l(...u)}return t(i)}function s(l){const i=j.get(e);i&&(i.delete(l),i.size||r())}function r(){j.delete(e)}function a(l,i){var u;(u=j.get(e))==null||u.forEach(v=>v(l,i))}return{on:t,once:o,off:s,emit:a,reset:r}}const fe=["fullscreenchange","webkitfullscreenchange","webkitendfullscreen","mozfullscreenchange","MSFullscreenChange"];function kt(e,n={}){const{document:t=Me,autoExit:o=!1}=n,s=O(()=>{var c;return(c=L(e))!=null?c:t==null?void 0:t.querySelector("html")}),r=b(!1),a=O(()=>["requestFullscreen","webkitRequestFullscreen","webkitEnterFullscreen","webkitEnterFullScreen","webkitRequestFullScreen","mozRequestFullScreen","msRequestFullscreen"].find(c=>t&&c in t||s.value&&c in s.value)),l=O(()=>["exitFullscreen","webkitExitFullscreen","webkitExitFullScreen","webkitCancelFullScreen","mozCancelFullScreen","msExitFullscreen"].find(c=>t&&c in t||s.value&&c in s.value)),i=O(()=>["fullScreen","webkitIsFullScreen","webkitDisplayingFullscreen","mozFullScreen","msFullscreenElement"].find(c=>t&&c in t||s.value&&c in s.value)),u=["fullscreenElement","webkitFullscreenElement","mozFullScreenElement","msFullscreenElement"].find(c=>t&&c in t),v=G(()=>s.value&&t&&a.value!==void 0&&l.value!==void 0&&i.value!==void 0),f=()=>u?(t==null?void 0:t[u])===s.value:!1,d=()=>{if(i.value){if(t&&t[i.value]!=null)return t[i.value];{const c=s.value;if((c==null?void 0:c[i.value])!=null)return!!c[i.value]}}return!1};async function p(){if(!(!v.value||!r.value)){if(l.value)if((t==null?void 0:t[l.value])!=null)await t[l.value]();else{const c=s.value;(c==null?void 0:c[l.value])!=null&&await c[l.value]()}r.value=!1}}async function g(){if(!v.value||r.value)return;d()&&await p();const c=s.value;a.value&&(c==null?void 0:c[a.value])!=null&&(await c[a.value](),r.value=!0)}async function m(){await(r.value?p():g())}const h=()=>{const c=d();(!c||c&&f())&&(r.value=c)};return M(t,fe,h,!1),M(()=>L(s),fe,h,!1),o&&N(p),{isSupported:v,isFullscreen:r,enter:g,exit:p,toggle:m}}function Q(e){return typeof Window<"u"&&e instanceof Window?e.document.documentElement:typeof Document<"u"&&e instanceof Document?e.documentElement:e}const de=1;function Lt(e,n={}){const{throttle:t=0,idle:o=200,onStop:s=W,onScroll:r=W,offset:a={left:0,right:0,top:0,bottom:0},eventListenerOptions:l={capture:!1,passive:!0},behavior:i="auto",window:u=H,onError:v=w=>{console.error(w)}}=n,f=b(0),d=b(0),p=O({get(){return f.value},set(w){m(w,void 0)}}),g=O({get(){return d.value},set(w){m(void 0,w)}});function m(w,T){var E,y,x,k;if(!u)return;const C=_(e);if(!C)return;(x=C instanceof Document?u.document.body:C)==null||x.scrollTo({top:(E=_(T))!=null?E:g.value,left:(y=_(w))!=null?y:p.value,behavior:_(i)});const X=((k=C==null?void 0:C.document)==null?void 0:k.documentElement)||(C==null?void 0:C.documentElement)||C;p!=null&&(f.value=X.scrollLeft),g!=null&&(d.value=X.scrollTop)}const h=b(!1),c=K({left:!0,right:!1,top:!0,bottom:!1}),S=K({left:!1,right:!1,top:!1,bottom:!1}),F=w=>{h.value&&(h.value=!1,S.left=!1,S.right=!1,S.top=!1,S.bottom=!1,s(w))},D=Ve(F,t+o),A=w=>{var T;if(!u)return;const E=((T=w==null?void 0:w.document)==null?void 0:T.documentElement)||(w==null?void 0:w.documentElement)||L(w),{display:y,flexDirection:x}=getComputedStyle(E),k=E.scrollLeft;S.left=k<f.value,S.right=k>f.value;const C=Math.abs(k)<=(a.left||0),X=Math.abs(k)+E.clientWidth>=E.scrollWidth-(a.right||0)-de;y==="flex"&&x==="row-reverse"?(c.left=X,c.right=C):(c.left=C,c.right=X),f.value=k;let z=E.scrollTop;w===u.document&&!z&&(z=u.document.body.scrollTop),S.top=z<d.value,S.bottom=z>d.value;const se=Math.abs(z)<=(a.top||0),ue=Math.abs(z)+E.clientHeight>=E.scrollHeight-(a.bottom||0)-de;y==="flex"&&x==="column-reverse"?(c.top=ue,c.bottom=se):(c.top=se,c.bottom=ue),d.value=z},P=w=>{var T;if(!u)return;const E=(T=w.target.documentElement)!=null?T:w.target;A(E),h.value=!0,D(w),r(w)};return M(e,"scroll",t?qe(P,t,!0,!1):P,l),q(()=>{try{const w=_(e);if(!w)return;A(w)}catch(w){v(w)}}),M(e,"scrollend",F,l),{x:p,y:g,isScrolling:h,arrivedState:c,directions:S,measure(){const w=_(e);u&&w&&A(w)}}}function Ht(e,n,t={}){const{window:o=H}=t;return ct(e,n,o==null?void 0:o.localStorage,t)}const ft={page:e=>[e.pageX,e.pageY],client:e=>[e.clientX,e.clientY],screen:e=>[e.screenX,e.screenY],movement:e=>e instanceof Touch?null:[e.movementX,e.movementY]};function Pt(e={}){const{type:n="page",touch:t=!0,resetOnTouchEnds:o=!1,initialValue:s={x:0,y:0},window:r=H,target:a=r,scroll:l=!0,eventFilter:i}=e;let u=null,v=0,f=0;const d=b(s.x),p=b(s.y),g=b(null),m=typeof n=="function"?n:ft[n],h=w=>{const T=m(w);u=w,T&&([d.value,p.value]=T,g.value="mouse"),r&&(v=r.scrollX,f=r.scrollY)},c=w=>{if(w.touches.length>0){const T=m(w.touches[0]);T&&([d.value,p.value]=T,g.value="touch")}},S=()=>{if(!u||!r)return;const w=m(u);u instanceof MouseEvent&&w&&(d.value=w[0]+r.scrollX-v,p.value=w[1]+r.scrollY-f)},F=()=>{d.value=s.x,p.value=s.y},D=i?w=>i(()=>h(w),{}):w=>h(w),A=i?w=>i(()=>c(w),{}):w=>c(w),P=i?()=>i(()=>S(),{}):()=>S();if(a){const w={passive:!0};M(a,["mousemove","dragover"],D,w),t&&n!=="movement"&&(M(a,["touchstart","touchmove"],A,w),o&&M(a,"touchend",F,w)),l&&n==="page"&&M(r,"scroll",P,{passive:!0})}return{x:d,y:p,sourceType:g}}function Wt(e={}){const{touch:n=!0,drag:t=!0,capture:o=!1,initialValue:s=!1,window:r=H}=e,a=b(s),l=b(null);if(!r)return{pressed:a,sourceType:l};const i=f=>()=>{a.value=!0,l.value=f},u=()=>{a.value=!1,l.value=null},v=O(()=>L(e.target)||r);return M(v,"mousedown",i("mouse"),{passive:!0,capture:o}),M(r,"mouseleave",u,{passive:!0,capture:o}),M(r,"mouseup",u,{passive:!0,capture:o}),t&&(M(v,"dragstart",i("mouse"),{passive:!0,capture:o}),M(r,"drop",u,{passive:!0,capture:o}),M(r,"dragend",u,{passive:!0,capture:o})),n&&(M(v,"touchstart",i("touch"),{passive:!0,capture:o}),M(r,"touchend",u,{passive:!0,capture:o}),M(r,"touchcancel",u,{passive:!0,capture:o})),{pressed:a,sourceType:l}}function Rt(e={}){const{window:n=H}=e,t=G(()=>n&&"screen"in n&&"orientation"in n.screen),o=t.value?n.screen.orientation:{},s=b(o.type),r=b(o.angle||0);return t.value&&M(n,"orientationchange",()=>{s.value=o.type,r.value=o.angle}),{isSupported:t,orientation:s,angle:r,lockOrientation:i=>t.value&&typeof o.lock=="function"?o.lock(i):Promise.reject(new Error("Not supported")),unlockOrientation:()=>{t.value&&typeof o.unlock=="function"&&o.unlock()}}}function De(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:De(t)}}function dt(e){const n=e||window.event,t=n.target;return De(t)?!1:n.touches.length>1?!0:(n.preventDefault&&n.preventDefault(),!1)}const Z=new WeakMap;function Ct(e,n=!1){const t=b(n);let o=null,s="";R(_e(e),l=>{const i=Q(_(l));if(i){const u=i;if(Z.get(u)||Z.set(u,u.style.overflow),u.style.overflow!=="hidden"&&(s=u.style.overflow),u.style.overflow==="hidden")return t.value=!0;if(t.value)return u.style.overflow="hidden"}},{immediate:!0});const r=()=>{const l=Q(_(e));!l||t.value||(B&&(o=M(l,"touchmove",i=>{dt(i)},{passive:!1})),l.style.overflow="hidden",t.value=!0)},a=()=>{const l=Q(_(e));!l||!t.value||(B&&(o==null||o()),l.style.overflow=s,Z.delete(l),t.value=!1)};return N(a),O({get(){return t.value},set(l){l?r():a()}})}function Yt(e,n={}){const{threshold:t=50,onSwipe:o,onSwipeEnd:s,onSwipeStart:r,passive:a=!0,window:l=H}=n,i=K({x:0,y:0}),u=K({x:0,y:0}),v=O(()=>i.x-u.x),f=O(()=>i.y-u.y),{max:d,abs:p}=Math,g=O(()=>d(p(v.value),p(f.value))>=t),m=b(!1),h=O(()=>g.value?p(v.value)>p(f.value)?v.value>0?"left":"right":f.value>0?"up":"down":"none"),c=E=>[E.touches[0].clientX,E.touches[0].clientY],S=(E,y)=>{i.x=E,i.y=y},F=(E,y)=>{u.x=E,u.y=y};let D;const A=vt(l==null?void 0:l.document);a?D=A?{passive:!0}:{capture:!1}:D=A?{passive:!1,capture:!0}:{capture:!0};const P=E=>{m.value&&(s==null||s(E,h.value)),m.value=!1},w=[M(e,"touchstart",E=>{if(E.touches.length!==1)return;const[y,x]=c(E);S(y,x),F(y,x),r==null||r(E)},D),M(e,"touchmove",E=>{if(E.touches.length!==1)return;const[y,x]=c(E);F(y,x),D.capture&&!D.passive&&Math.abs(v.value)>Math.abs(f.value)&&E.preventDefault(),!m.value&&g.value&&(m.value=!0),m.value&&(o==null||o(E))},D),M(e,["touchend","touchcancel"],P,D)];return{isPassiveEventSupported:A,isSwiping:m,direction:h,coordsStart:i,coordsEnd:u,lengthX:v,lengthY:f,stop:()=>w.forEach(E=>E())}}function vt(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 Nt(e={}){const{window:n=H,behavior:t="auto"}=e;if(!n)return{x:b(0),y:b(0)};const o=b(n.scrollX),s=b(n.scrollY),r=O({get(){return o.value},set(l){scrollTo({left:l,behavior:t})}}),a=O({get(){return s.value},set(l){scrollTo({top:l,behavior:t})}});return M(n,"scroll",()=>{o.value=n.scrollX,s.value=n.scrollY},{capture:!1,passive:!0}),{x:r,y:a}}function zt(e={}){const{window:n=H,initialWidth:t=Number.POSITIVE_INFINITY,initialHeight:o=Number.POSITIVE_INFINITY,listenOrientation:s=!0,includeScrollbar:r=!0,type:a="inner"}=e,l=b(t),i=b(o),u=()=>{n&&(a==="outer"?(l.value=n.outerWidth,i.value=n.outerHeight):r?(l.value=n.innerWidth,i.value=n.innerHeight):(l.value=n.document.documentElement.clientWidth,i.value=n.document.documentElement.clientHeight))};if(u(),q(u),M("resize",u,{passive:!0}),s){const v=rt("(orientation: portrait)");R(v,()=>u())}return{width:l,height:i}}function $t(e=null,n){const t=b(e),o=O({set:r=>r?Y.start():Y.done(),get:()=>typeof t.value=="number"&&t.value<1});n&&Y.configure(n);const s=Y.set;return Y.set=r=>(t.value=r,s.call(Y,r)),re(()=>{typeof t.value=="number"&&V&&s.call(Y,t.value)}),N(Y.remove),{isLoading:o,progress:t,start:Y.start,done:Y.done,remove:()=>{t.value=null,Y.remove()}}}const Te=V?window:void 0;function Oe(e){var n;const t=_(e);return(n=t==null?void 0:t.$el)!=null?n:t}function I(...e){let n,t,o,s;if(typeof e[0]=="string"||Array.isArray(e[0])?([t,o,s]=e,n=Te):[n,t,o,s]=e,!n)return W;Array.isArray(t)||(t=[t]),Array.isArray(o)||(o=[o]);const r=[],a=()=>{r.forEach(v=>v()),r.length=0},l=(v,f,d,p)=>(v.addEventListener(f,d,p),()=>v.removeEventListener(f,d,p)),i=R(()=>[Oe(n),_(s)],([v,f])=>{if(a(),!v)return;const d=be(f)?{...f}:f;r.push(...t.flatMap(p=>o.map(g=>l(v,p,g,d))))},{immediate:!0,flush:"post"}),u=()=>{i(),a()};return N(u),u}const mt=500,pt=10;function ve(e,n,t){var o,s;const r=O(()=>Oe(e));let a,l,i,u=!1;function v(){a&&(clearTimeout(a),a=void 0),l=void 0,i=void 0,u=!1}function f(c){var S,F,D;const[A,P,w]=[i,l,u];if(v(),!(t!=null&&t.onMouseUp)||!P||!A||(S=t==null?void 0:t.modifiers)!=null&&S.self&&c.target!==r.value)return;(F=t==null?void 0:t.modifiers)!=null&&F.prevent&&c.preventDefault(),(D=t==null?void 0:t.modifiers)!=null&&D.stop&&c.stopPropagation();const T=c.x-P.x,E=c.y-P.y,y=Math.sqrt(T*T+E*E);t.onMouseUp(c.timeStamp-A,y,w)}function d(c){var S,F,D,A;(S=t==null?void 0:t.modifiers)!=null&&S.self&&c.target!==r.value||(v(),(F=t==null?void 0:t.modifiers)!=null&&F.prevent&&c.preventDefault(),(D=t==null?void 0:t.modifiers)!=null&&D.stop&&c.stopPropagation(),l={x:c.x,y:c.y},i=c.timeStamp,a=setTimeout(()=>{u=!0,n(c)},(A=t==null?void 0:t.delay)!=null?A:mt))}function p(c){var S,F,D,A;if((S=t==null?void 0:t.modifiers)!=null&&S.self&&c.target!==r.value||!l||(t==null?void 0:t.distanceThreshold)===!1)return;(F=t==null?void 0:t.modifiers)!=null&&F.prevent&&c.preventDefault(),(D=t==null?void 0:t.modifiers)!=null&&D.stop&&c.stopPropagation();const P=c.x-l.x,w=c.y-l.y;Math.sqrt(P*P+w*w)>=((A=t==null?void 0:t.distanceThreshold)!=null?A:pt)&&v()}const g={capture:(o=t==null?void 0:t.modifiers)==null?void 0:o.capture,once:(s=t==null?void 0:t.modifiers)==null?void 0:s.once},m=[I(r,"pointerdown",d,g),I(r,"pointermove",p,g),I(r,["pointerup","pointerleave"],f,g)];return()=>m.forEach(c=>c())}const It={mounted(e,n){typeof n.value=="function"?ve(e,n.value,{modifiers:n.modifiers}):ve(e,...n.value)}};function me(e,n={}){const{delayEnter:t=0,delayLeave:o=0,window:s=Te}=n,r=b(!1);let a;const l=i=>{const u=i?t:o;a&&(clearTimeout(a),a=void 0),u?a=setTimeout(()=>r.value=i,u):r.value=i};return s&&(I(e,"mouseenter",()=>l(!0),{passive:!0}),I(e,"mouseleave",()=>l(!1),{passive:!0})),r}const Xt={mounted(e,n){const t=n.value;if(typeof t=="function"){const o=me(e);R(o,s=>t(s))}else{const[o,s]=t,r=me(e,s);R(r,a=>o(a))}}};function ee(e){return typeof Window<"u"&&e instanceof Window?e.document.documentElement:typeof Document<"u"&&e instanceof Document?e.documentElement:e}function Fe(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:Fe(t)}}function ht(e){const n=e||window.event,t=n.target;return Fe(t)?!1:n.touches.length>1?!0:(n.preventDefault&&n.preventDefault(),!1)}const te=new WeakMap;function wt(e,n=!1){const t=b(n);let o=null,s="";R(_e(e),l=>{const i=ee(_(l));if(i){const u=i;if(te.get(u)||te.set(u,u.style.overflow),u.style.overflow!=="hidden"&&(s=u.style.overflow),u.style.overflow==="hidden")return t.value=!0;if(t.value)return u.style.overflow="hidden"}},{immediate:!0});const r=()=>{const l=ee(_(e));!l||t.value||(B&&(o=I(l,"touchmove",i=>{ht(i)},{passive:!1})),l.style.overflow="hidden",t.value=!0)},a=()=>{const l=ee(_(e));!l||!t.value||(B&&(o==null||o()),l.style.overflow=s,te.delete(l),t.value=!1)};return N(a),O({get(){return t.value},set(l){l?r():a()}})}function gt(){let e=!1;const n=b(!1);return(t,o)=>{if(n.value=o.value,e)return;e=!0;const s=wt(t,o.value);R(n,r=>s.value=r)}}gt();export{_t as a,rt as b,bt as c,Rt as d,zt as e,At as f,Yt as g,Nt as h,$t as i,Ft as j,Lt as k,Pt as l,Wt as m,Ct as n,Dt as o,M as p,Ot as q,Et as r,kt as s,xt as t,Ht as u,Mt as v,Xt as w,It as x,Tt as y,xe as z};
|
|
1
|
+
import{u as Ae,r as b,q as pe,w as R,n as he,x as we,o as ke,y as Le,z as ge,i as ne,c as O,A as He,B as ye,C as Se,D as oe,E as re,F as K,G as ie}from"./@vue.YfIN5b-F.0.0.46.js";import{n as Y}from"./nprogress.Dxe0bwSt.0.0.46.js";function N(e){return we()?(ke(e),!0):!1}function bt(e){let n=0,t,o;const s=()=>{n-=1,o&&n<=0&&(o.stop(),t=void 0,o=void 0)};return(...r)=>(n+=1,o||(o=Le(!0),t=o.run(()=>e(...r))),N(s),t)}function Pe(e,n,{enumerable:t=!1,unwrap:o=!0}={}){for(const[s,r]of Object.entries(n))s!=="value"&&(ne(r)&&o?Object.defineProperty(e,s,{get(){return r.value},set(a){r.value=a},enumerable:t}):Object.defineProperty(e,s,{value:r,enumerable:t}));return e}function We(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 _(e){return typeof e=="function"?e():Ae(e)}const V=typeof window<"u"&&typeof document<"u";typeof WorkerGlobalScope<"u"&&globalThis instanceof WorkerGlobalScope;const Re=e=>e!=null,Ce=Object.prototype.toString,be=e=>Ce.call(e)==="[object Object]",W=()=>{},B=Ye();function Ye(){var e,n;return V&&((e=window==null?void 0:window.navigator)==null?void 0:e.userAgent)&&(/iP(?:ad|hone|od)/.test(window.navigator.userAgent)||((n=window==null?void 0:window.navigator)==null?void 0:n.maxTouchPoints)>2&&/iPad|Macintosh/.test(window==null?void 0:window.navigator.userAgent))}function le(e,n){function t(...o){return new Promise((s,r)=>{Promise.resolve(e(()=>n.apply(this,o),{fn:n,thisArg:this,args:o})).then(s).catch(r)})}return t}const Ee=e=>e();function Ne(e,n={}){let t,o,s=W;const r=l=>{clearTimeout(l),s(),s=W};return l=>{const i=_(e),u=_(n.maxWait);return t&&r(t),i<=0||u!==void 0&&u<=0?(o&&(r(o),o=null),Promise.resolve(l())):new Promise((v,f)=>{s=n.rejectOnCancel?f:v,u&&!o&&(o=setTimeout(()=>{t&&r(t),o=null,v(l())},u)),t=setTimeout(()=>{o&&r(o),o=null,v(l())},i)})}}function ze(...e){let n=0,t,o=!0,s=W,r,a,l,i,u;!ne(e[0])&&typeof e[0]=="object"?{delay:a,trailing:l=!0,leading:i=!0,rejectOnCancel:u=!1}=e[0]:[a,l=!0,i=!0,u=!1]=e;const v=()=>{t&&(clearTimeout(t),t=void 0,s(),s=W)};return d=>{const p=_(a),g=Date.now()-n,m=()=>r=d();return v(),p<=0?(n=Date.now(),m()):(g>p&&(i||!o)?(n=Date.now(),m()):l&&(r=new Promise((h,c)=>{s=u?c:h,t=setTimeout(()=>{n=Date.now(),o=!0,h(m()),v()},Math.max(0,p-g))})),!i&&!t&&(t=setTimeout(()=>o=!0,p)),o=!1,r)}}function $e(e=Ee){const n=b(!0);function t(){n.value=!1}function o(){n.value=!0}const s=(...r)=>{n.value&&e(...r)};return{isActive:pe(n),pause:t,resume:o,eventFilter:s}}function Ie(e){const n=Object.create(null);return t=>n[t]||(n[t]=e(t))}const Xe=/-(\w)/g,je=Ie(e=>e.replace(Xe,(n,t)=>t?t.toUpperCase():""));function Be(e){return ye()}function _e(...e){if(e.length!==1)return He(...e);const n=e[0];return typeof n=="function"?pe(ge(()=>({get:n,set:W}))):b(n)}function Ve(e,n=200,t={}){return le(Ne(n,t),e)}function qe(e,n=200,t=!1,o=!0,s=!1){return le(ze(n,t,o,s),e)}function Et(e,n={}){let t=e,o,s;const r=ge((d,p)=>(o=d,s=p,{get(){return a()},set(g){l(g)}}));function a(d=!0){return d&&o(),t}function l(d,p=!0){var g,m;if(d===t)return;const h=t;((g=n.onBeforeChange)==null?void 0:g.call(n,d,h))!==!1&&(t=d,(m=n.onChanged)==null||m.call(n,d,h),p&&s())}return Pe(r,{get:a,set:l,untrackedGet:()=>a(!1),silentSet:d=>l(d,!1),peek:()=>a(!1),lay:d=>l(d,!1)},{enumerable:!0})}function Ge(e,n,t={}){const{eventFilter:o=Ee,...s}=t;return R(e,le(o,n),s)}function Ue(e,n,t={}){const{eventFilter:o,...s}=t,{eventFilter:r,pause:a,resume:l,isActive:i}=$e(o);return{stop:Ge(e,n,{...s,eventFilter:r}),pause:a,resume:l,isActive:i}}function q(e,n=!0,t){Be()?Se(e,t):n?e():he(e)}const Je=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[T\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/i,Ke=/[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 Qe(e,n,t,o){let s=e<12?"AM":"PM";return o&&(s=s.split("").reduce((r,a)=>r+=`${a}.`,"")),t?s.toLowerCase():s}function $(e){const n=["th","st","nd","rd"],t=e%100;return e+(n[(t-20)%10]||n[t]||n[0])}function Ze(e,n,t={}){var o;const s=e.getFullYear(),r=e.getMonth(),a=e.getDate(),l=e.getHours(),i=e.getMinutes(),u=e.getSeconds(),v=e.getMilliseconds(),f=e.getDay(),d=(o=t.customMeridiem)!=null?o:Qe,p={Yo:()=>$(s),YY:()=>String(s).slice(-2),YYYY:()=>s,M:()=>r+1,Mo:()=>$(r+1),MM:()=>`${r+1}`.padStart(2,"0"),MMM:()=>e.toLocaleDateString(_(t.locales),{month:"short"}),MMMM:()=>e.toLocaleDateString(_(t.locales),{month:"long"}),D:()=>String(a),Do:()=>$(a),DD:()=>`${a}`.padStart(2,"0"),H:()=>String(l),Ho:()=>$(l),HH:()=>`${l}`.padStart(2,"0"),h:()=>`${l%12||12}`.padStart(1,"0"),ho:()=>$(l%12||12),hh:()=>`${l%12||12}`.padStart(2,"0"),m:()=>String(i),mo:()=>$(i),mm:()=>`${i}`.padStart(2,"0"),s:()=>String(u),so:()=>$(u),ss:()=>`${u}`.padStart(2,"0"),SSS:()=>`${v}`.padStart(3,"0"),d:()=>f,dd:()=>e.toLocaleDateString(_(t.locales),{weekday:"narrow"}),ddd:()=>e.toLocaleDateString(_(t.locales),{weekday:"short"}),dddd:()=>e.toLocaleDateString(_(t.locales),{weekday:"long"}),A:()=>d(l,i),AA:()=>d(l,i,!1,!0),a:()=>d(l,i,!0),aa:()=>d(l,i,!0,!0)};return n.replace(Ke,(g,m)=>{var h,c;return(c=m??((h=p[g])==null?void 0:h.call(p)))!=null?c:g})}function et(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(Je);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 _t(e,n="HH:mm:ss",t={}){return O(()=>Ze(et(_(e)),_(n),t))}function Mt(e,n,t){let o;ne(t)?o={evaluating:t}:o=t||{};const{lazy:s=!1,evaluating:r=void 0,shallow:a=!0,onError:l=W}=o,i=b(!s),u=a?oe(n):b(n);let v=0;return re(async f=>{if(!i.value)return;v++;const d=v;let p=!1;r&&Promise.resolve().then(()=>{r.value=!0});try{const g=await e(m=>{f(()=>{r&&(r.value=!1),p||m()})});d===v&&(u.value=g)}catch(g){l(g)}finally{r&&d===v&&(r.value=!1),p=!0}}),s?O(()=>(i.value=!0,u.value)):u}function xt(e={}){const{inheritAttrs:n=!0}=e,t=oe(),o=ie({setup(r,{slots:a}){return()=>{t.value=a.default}}}),s=ie({inheritAttrs:n,setup(r,{attrs:a,slots:l}){return()=>{var i;t.value;const u=(i=t.value)==null?void 0:i.call(t,{...tt(a),$slots:l});return n&&(u==null?void 0:u.length)===1?u[0]:u}}});return We({define:o,reuse:s},[o,s])}function tt(e){const n={};for(const t in e)n[je(t)]=e[t];return n}const H=V?window:void 0,Me=V?window.document:void 0;function L(e){var n;const t=_(e);return(n=t==null?void 0:t.$el)!=null?n:t}function M(...e){let n,t,o,s;if(typeof e[0]=="string"||Array.isArray(e[0])?([t,o,s]=e,n=H):[n,t,o,s]=e,!n)return W;Array.isArray(t)||(t=[t]),Array.isArray(o)||(o=[o]);const r=[],a=()=>{r.forEach(v=>v()),r.length=0},l=(v,f,d,p)=>(v.addEventListener(f,d,p),()=>v.removeEventListener(f,d,p)),i=R(()=>[L(n),_(s)],([v,f])=>{if(a(),!v)return;const d=be(f)?{...f}:f;r.push(...t.flatMap(p=>o.map(g=>l(v,p,g,d))))},{immediate:!0,flush:"post"}),u=()=>{i(),a()};return N(u),u}let ae=!1;function Dt(e,n,t={}){const{window:o=H,ignore:s=[],capture:r=!0,detectIframe:a=!1}=t;if(!o)return W;B&&!ae&&(ae=!0,Array.from(o.document.body.children).forEach(m=>m.addEventListener("click",W)),o.document.documentElement.addEventListener("click",W));let l=!0;const i=m=>_(s).some(h=>{if(typeof h=="string")return Array.from(o.document.querySelectorAll(h)).some(c=>c===m.target||m.composedPath().includes(c));{const c=L(h);return c&&(m.target===c||m.composedPath().includes(c))}});function u(m){const h=_(m);return h&&h.$.subTree.shapeFlag===16}function v(m,h){const c=_(m),S=c.$.subTree&&c.$.subTree.children;return S==null||!Array.isArray(S)?!1:S.some(F=>F.el===h.target||h.composedPath().includes(F.el))}const f=m=>{const h=L(e);if(m.target!=null&&!(!(h instanceof Element)&&u(e)&&v(e,m))&&!(!h||h===m.target||m.composedPath().includes(h))){if(m.detail===0&&(l=!i(m)),!l){l=!0;return}n(m)}};let d=!1;const p=[M(o,"click",m=>{d||(d=!0,setTimeout(()=>{d=!1},0),f(m))},{passive:!0,capture:r}),M(o,"pointerdown",m=>{const h=L(e);l=!i(m)&&!!(h&&!m.composedPath().includes(h))},{passive:!0}),a&&M(o,"blur",m=>{setTimeout(()=>{var h;const c=L(e);((h=o.document.activeElement)==null?void 0:h.tagName)==="IFRAME"&&!(c!=null&&c.contains(o.document.activeElement))&&n(m)},0)})].filter(Boolean);return()=>p.forEach(m=>m())}function nt(){const e=b(!1),n=ye();return n&&Se(()=>{e.value=!0},n),e}function G(e){const n=nt();return O(()=>(n.value,!!e()))}function ot(e,n,t={}){const{window:o=H,...s}=t;let r;const a=G(()=>o&&"MutationObserver"in o),l=()=>{r&&(r.disconnect(),r=void 0)},i=O(()=>{const d=_(e),p=(Array.isArray(d)?d:[d]).map(L).filter(Re);return new Set(p)}),u=R(()=>i.value,d=>{l(),a.value&&d.size&&(r=new MutationObserver(n),d.forEach(p=>r.observe(p,s)))},{immediate:!0,flush:"post"}),v=()=>r==null?void 0:r.takeRecords(),f=()=>{u(),l()};return N(f),{isSupported:a,stop:f,takeRecords:v}}function rt(e,n={}){const{window:t=H}=n,o=G(()=>t&&"matchMedia"in t&&typeof t.matchMedia=="function");let s;const r=b(!1),a=u=>{r.value=u.matches},l=()=>{s&&("removeEventListener"in s?s.removeEventListener("change",a):s.removeListener(a))},i=re(()=>{o.value&&(l(),s=t.matchMedia(_(e)),"addEventListener"in s?s.addEventListener("change",a):s.addListener(a),r.value=s.matches)});return N(()=>{i(),l(),s=void 0}),r}const U=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},J="__vueuse_ssr_handlers__",lt=st();function st(){return J in U||(U[J]=U[J]||{}),U[J]}function ut(e,n){return lt[e]||n}function it(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 at={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 ct(e,n,t,o={}){var s;const{flush:r="pre",deep:a=!0,listenToStorageChanges:l=!0,writeDefaults:i=!0,mergeDefaults:u=!1,shallow:v,window:f=H,eventFilter:d,onError:p=y=>{console.error(y)},initOnMounted:g}=o,m=(v?oe:b)(typeof n=="function"?n():n);if(!t)try{t=ut("getDefaultStorage",()=>{var y;return(y=H)==null?void 0:y.localStorage})()}catch(y){p(y)}if(!t)return m;const h=_(n),c=it(h),S=(s=o.serializer)!=null?s:at[c],{pause:F,resume:D}=Ue(m,()=>P(m.value),{flush:r,deep:a,eventFilter:d});f&&l&&q(()=>{t instanceof Storage?M(f,"storage",T):M(f,ce,E),g&&T()}),g||T();function A(y,x){if(f){const k={key:e,oldValue:y,newValue:x,storageArea:t};f.dispatchEvent(t instanceof Storage?new StorageEvent("storage",k):new CustomEvent(ce,{detail:k}))}}function P(y){try{const x=t.getItem(e);if(y==null)A(x,null),t.removeItem(e);else{const k=S.write(y);x!==k&&(t.setItem(e,k),A(x,k))}}catch(x){p(x)}}function w(y){const x=y?y.newValue:t.getItem(e);if(x==null)return i&&h!=null&&t.setItem(e,S.write(h)),h;if(!y&&u){const k=S.read(x);return typeof u=="function"?u(k,h):c==="object"&&!Array.isArray(k)?{...h,...k}:k}else return typeof x!="string"?x:S.read(x)}function T(y){if(!(y&&y.storageArea!==t)){if(y&&y.key==null){m.value=h;return}if(!(y&&y.key!==e)){F();try{(y==null?void 0:y.newValue)!==S.write(m.value)&&(m.value=w(y))}catch(x){p(x)}finally{y?he(D):D()}}}}function E(y){T(y.detail)}return m}function Tt(e={}){const{document:n=Me}=e;if(!n)return b("visible");const t=b(n.visibilityState);return M(n,"visibilitychange",()=>{t.value=n.visibilityState}),t}function xe(e,n,t={}){const{window:o=H,...s}=t;let r;const a=G(()=>o&&"ResizeObserver"in o),l=()=>{r&&(r.disconnect(),r=void 0)},i=O(()=>{const f=_(e);return Array.isArray(f)?f.map(d=>L(d)):[L(f)]}),u=R(i,f=>{if(l(),a.value&&o){r=new ResizeObserver(n);for(const d of f)d&&r.observe(d,s)}},{immediate:!0,flush:"post"}),v=()=>{l(),u()};return N(v),{isSupported:a,stop:v}}function Ot(e,n={}){const{reset:t=!0,windowResize:o=!0,windowScroll:s=!0,immediate:r=!0,updateTiming:a="sync"}=n,l=b(0),i=b(0),u=b(0),v=b(0),f=b(0),d=b(0),p=b(0),g=b(0);function m(){const c=L(e);if(!c){t&&(l.value=0,i.value=0,u.value=0,v.value=0,f.value=0,d.value=0,p.value=0,g.value=0);return}const S=c.getBoundingClientRect();l.value=S.height,i.value=S.bottom,u.value=S.left,v.value=S.right,f.value=S.top,d.value=S.width,p.value=S.x,g.value=S.y}function h(){a==="sync"?m():a==="next-frame"&&requestAnimationFrame(()=>m())}return xe(e,h),R(()=>L(e),c=>!c&&h()),ot(e,h,{attributeFilter:["style","class"]}),s&&M("scroll",h,{capture:!0,passive:!0}),o&&M("resize",h,{passive:!0}),q(()=>{r&&h()}),{height:l,bottom:i,left:u,right:v,top:f,width:d,x:p,y:g,update:h}}function Ft(e,n={width:0,height:0},t={}){const{window:o=H,box:s="content-box"}=t,r=O(()=>{var f,d;return(d=(f=L(e))==null?void 0:f.namespaceURI)==null?void 0:d.includes("svg")}),a=b(n.width),l=b(n.height),{stop:i}=xe(e,([f])=>{const d=s==="border-box"?f.borderBoxSize:s==="content-box"?f.contentBoxSize:f.devicePixelContentBoxSize;if(o&&r.value){const p=L(e);if(p){const g=p.getBoundingClientRect();a.value=g.width,l.value=g.height}}else if(d){const p=Array.isArray(d)?d:[d];a.value=p.reduce((g,{inlineSize:m})=>g+m,0),l.value=p.reduce((g,{blockSize:m})=>g+m,0)}else a.value=f.contentRect.width,l.value=f.contentRect.height},t);q(()=>{const f=L(e);f&&(a.value="offsetWidth"in f?f.offsetWidth:n.width,l.value="offsetHeight"in f?f.offsetHeight:n.height)});const u=R(()=>L(e),f=>{a.value=f?n.width:0,l.value=f?n.height:0});function v(){i(),u()}return{width:a,height:l,stop:v}}const j=new Map;function At(e){const n=we();function t(l){var i;const u=j.get(e)||new Set;u.add(l),j.set(e,u);const v=()=>s(l);return(i=n==null?void 0:n.cleanups)==null||i.push(v),v}function o(l){function i(...u){s(i),l(...u)}return t(i)}function s(l){const i=j.get(e);i&&(i.delete(l),i.size||r())}function r(){j.delete(e)}function a(l,i){var u;(u=j.get(e))==null||u.forEach(v=>v(l,i))}return{on:t,once:o,off:s,emit:a,reset:r}}const fe=["fullscreenchange","webkitfullscreenchange","webkitendfullscreen","mozfullscreenchange","MSFullscreenChange"];function kt(e,n={}){const{document:t=Me,autoExit:o=!1}=n,s=O(()=>{var c;return(c=L(e))!=null?c:t==null?void 0:t.querySelector("html")}),r=b(!1),a=O(()=>["requestFullscreen","webkitRequestFullscreen","webkitEnterFullscreen","webkitEnterFullScreen","webkitRequestFullScreen","mozRequestFullScreen","msRequestFullscreen"].find(c=>t&&c in t||s.value&&c in s.value)),l=O(()=>["exitFullscreen","webkitExitFullscreen","webkitExitFullScreen","webkitCancelFullScreen","mozCancelFullScreen","msExitFullscreen"].find(c=>t&&c in t||s.value&&c in s.value)),i=O(()=>["fullScreen","webkitIsFullScreen","webkitDisplayingFullscreen","mozFullScreen","msFullscreenElement"].find(c=>t&&c in t||s.value&&c in s.value)),u=["fullscreenElement","webkitFullscreenElement","mozFullScreenElement","msFullscreenElement"].find(c=>t&&c in t),v=G(()=>s.value&&t&&a.value!==void 0&&l.value!==void 0&&i.value!==void 0),f=()=>u?(t==null?void 0:t[u])===s.value:!1,d=()=>{if(i.value){if(t&&t[i.value]!=null)return t[i.value];{const c=s.value;if((c==null?void 0:c[i.value])!=null)return!!c[i.value]}}return!1};async function p(){if(!(!v.value||!r.value)){if(l.value)if((t==null?void 0:t[l.value])!=null)await t[l.value]();else{const c=s.value;(c==null?void 0:c[l.value])!=null&&await c[l.value]()}r.value=!1}}async function g(){if(!v.value||r.value)return;d()&&await p();const c=s.value;a.value&&(c==null?void 0:c[a.value])!=null&&(await c[a.value](),r.value=!0)}async function m(){await(r.value?p():g())}const h=()=>{const c=d();(!c||c&&f())&&(r.value=c)};return M(t,fe,h,!1),M(()=>L(s),fe,h,!1),o&&N(p),{isSupported:v,isFullscreen:r,enter:g,exit:p,toggle:m}}function Q(e){return typeof Window<"u"&&e instanceof Window?e.document.documentElement:typeof Document<"u"&&e instanceof Document?e.documentElement:e}const de=1;function Lt(e,n={}){const{throttle:t=0,idle:o=200,onStop:s=W,onScroll:r=W,offset:a={left:0,right:0,top:0,bottom:0},eventListenerOptions:l={capture:!1,passive:!0},behavior:i="auto",window:u=H,onError:v=w=>{console.error(w)}}=n,f=b(0),d=b(0),p=O({get(){return f.value},set(w){m(w,void 0)}}),g=O({get(){return d.value},set(w){m(void 0,w)}});function m(w,T){var E,y,x,k;if(!u)return;const C=_(e);if(!C)return;(x=C instanceof Document?u.document.body:C)==null||x.scrollTo({top:(E=_(T))!=null?E:g.value,left:(y=_(w))!=null?y:p.value,behavior:_(i)});const X=((k=C==null?void 0:C.document)==null?void 0:k.documentElement)||(C==null?void 0:C.documentElement)||C;p!=null&&(f.value=X.scrollLeft),g!=null&&(d.value=X.scrollTop)}const h=b(!1),c=K({left:!0,right:!1,top:!0,bottom:!1}),S=K({left:!1,right:!1,top:!1,bottom:!1}),F=w=>{h.value&&(h.value=!1,S.left=!1,S.right=!1,S.top=!1,S.bottom=!1,s(w))},D=Ve(F,t+o),A=w=>{var T;if(!u)return;const E=((T=w==null?void 0:w.document)==null?void 0:T.documentElement)||(w==null?void 0:w.documentElement)||L(w),{display:y,flexDirection:x}=getComputedStyle(E),k=E.scrollLeft;S.left=k<f.value,S.right=k>f.value;const C=Math.abs(k)<=(a.left||0),X=Math.abs(k)+E.clientWidth>=E.scrollWidth-(a.right||0)-de;y==="flex"&&x==="row-reverse"?(c.left=X,c.right=C):(c.left=C,c.right=X),f.value=k;let z=E.scrollTop;w===u.document&&!z&&(z=u.document.body.scrollTop),S.top=z<d.value,S.bottom=z>d.value;const se=Math.abs(z)<=(a.top||0),ue=Math.abs(z)+E.clientHeight>=E.scrollHeight-(a.bottom||0)-de;y==="flex"&&x==="column-reverse"?(c.top=ue,c.bottom=se):(c.top=se,c.bottom=ue),d.value=z},P=w=>{var T;if(!u)return;const E=(T=w.target.documentElement)!=null?T:w.target;A(E),h.value=!0,D(w),r(w)};return M(e,"scroll",t?qe(P,t,!0,!1):P,l),q(()=>{try{const w=_(e);if(!w)return;A(w)}catch(w){v(w)}}),M(e,"scrollend",F,l),{x:p,y:g,isScrolling:h,arrivedState:c,directions:S,measure(){const w=_(e);u&&w&&A(w)}}}function Ht(e,n,t={}){const{window:o=H}=t;return ct(e,n,o==null?void 0:o.localStorage,t)}const ft={page:e=>[e.pageX,e.pageY],client:e=>[e.clientX,e.clientY],screen:e=>[e.screenX,e.screenY],movement:e=>e instanceof Touch?null:[e.movementX,e.movementY]};function Pt(e={}){const{type:n="page",touch:t=!0,resetOnTouchEnds:o=!1,initialValue:s={x:0,y:0},window:r=H,target:a=r,scroll:l=!0,eventFilter:i}=e;let u=null,v=0,f=0;const d=b(s.x),p=b(s.y),g=b(null),m=typeof n=="function"?n:ft[n],h=w=>{const T=m(w);u=w,T&&([d.value,p.value]=T,g.value="mouse"),r&&(v=r.scrollX,f=r.scrollY)},c=w=>{if(w.touches.length>0){const T=m(w.touches[0]);T&&([d.value,p.value]=T,g.value="touch")}},S=()=>{if(!u||!r)return;const w=m(u);u instanceof MouseEvent&&w&&(d.value=w[0]+r.scrollX-v,p.value=w[1]+r.scrollY-f)},F=()=>{d.value=s.x,p.value=s.y},D=i?w=>i(()=>h(w),{}):w=>h(w),A=i?w=>i(()=>c(w),{}):w=>c(w),P=i?()=>i(()=>S(),{}):()=>S();if(a){const w={passive:!0};M(a,["mousemove","dragover"],D,w),t&&n!=="movement"&&(M(a,["touchstart","touchmove"],A,w),o&&M(a,"touchend",F,w)),l&&n==="page"&&M(r,"scroll",P,{passive:!0})}return{x:d,y:p,sourceType:g}}function Wt(e={}){const{touch:n=!0,drag:t=!0,capture:o=!1,initialValue:s=!1,window:r=H}=e,a=b(s),l=b(null);if(!r)return{pressed:a,sourceType:l};const i=f=>()=>{a.value=!0,l.value=f},u=()=>{a.value=!1,l.value=null},v=O(()=>L(e.target)||r);return M(v,"mousedown",i("mouse"),{passive:!0,capture:o}),M(r,"mouseleave",u,{passive:!0,capture:o}),M(r,"mouseup",u,{passive:!0,capture:o}),t&&(M(v,"dragstart",i("mouse"),{passive:!0,capture:o}),M(r,"drop",u,{passive:!0,capture:o}),M(r,"dragend",u,{passive:!0,capture:o})),n&&(M(v,"touchstart",i("touch"),{passive:!0,capture:o}),M(r,"touchend",u,{passive:!0,capture:o}),M(r,"touchcancel",u,{passive:!0,capture:o})),{pressed:a,sourceType:l}}function Rt(e={}){const{window:n=H}=e,t=G(()=>n&&"screen"in n&&"orientation"in n.screen),o=t.value?n.screen.orientation:{},s=b(o.type),r=b(o.angle||0);return t.value&&M(n,"orientationchange",()=>{s.value=o.type,r.value=o.angle}),{isSupported:t,orientation:s,angle:r,lockOrientation:i=>t.value&&typeof o.lock=="function"?o.lock(i):Promise.reject(new Error("Not supported")),unlockOrientation:()=>{t.value&&typeof o.unlock=="function"&&o.unlock()}}}function De(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:De(t)}}function dt(e){const n=e||window.event,t=n.target;return De(t)?!1:n.touches.length>1?!0:(n.preventDefault&&n.preventDefault(),!1)}const Z=new WeakMap;function Ct(e,n=!1){const t=b(n);let o=null,s="";R(_e(e),l=>{const i=Q(_(l));if(i){const u=i;if(Z.get(u)||Z.set(u,u.style.overflow),u.style.overflow!=="hidden"&&(s=u.style.overflow),u.style.overflow==="hidden")return t.value=!0;if(t.value)return u.style.overflow="hidden"}},{immediate:!0});const r=()=>{const l=Q(_(e));!l||t.value||(B&&(o=M(l,"touchmove",i=>{dt(i)},{passive:!1})),l.style.overflow="hidden",t.value=!0)},a=()=>{const l=Q(_(e));!l||!t.value||(B&&(o==null||o()),l.style.overflow=s,Z.delete(l),t.value=!1)};return N(a),O({get(){return t.value},set(l){l?r():a()}})}function Yt(e,n={}){const{threshold:t=50,onSwipe:o,onSwipeEnd:s,onSwipeStart:r,passive:a=!0,window:l=H}=n,i=K({x:0,y:0}),u=K({x:0,y:0}),v=O(()=>i.x-u.x),f=O(()=>i.y-u.y),{max:d,abs:p}=Math,g=O(()=>d(p(v.value),p(f.value))>=t),m=b(!1),h=O(()=>g.value?p(v.value)>p(f.value)?v.value>0?"left":"right":f.value>0?"up":"down":"none"),c=E=>[E.touches[0].clientX,E.touches[0].clientY],S=(E,y)=>{i.x=E,i.y=y},F=(E,y)=>{u.x=E,u.y=y};let D;const A=vt(l==null?void 0:l.document);a?D=A?{passive:!0}:{capture:!1}:D=A?{passive:!1,capture:!0}:{capture:!0};const P=E=>{m.value&&(s==null||s(E,h.value)),m.value=!1},w=[M(e,"touchstart",E=>{if(E.touches.length!==1)return;const[y,x]=c(E);S(y,x),F(y,x),r==null||r(E)},D),M(e,"touchmove",E=>{if(E.touches.length!==1)return;const[y,x]=c(E);F(y,x),D.capture&&!D.passive&&Math.abs(v.value)>Math.abs(f.value)&&E.preventDefault(),!m.value&&g.value&&(m.value=!0),m.value&&(o==null||o(E))},D),M(e,["touchend","touchcancel"],P,D)];return{isPassiveEventSupported:A,isSwiping:m,direction:h,coordsStart:i,coordsEnd:u,lengthX:v,lengthY:f,stop:()=>w.forEach(E=>E())}}function vt(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 Nt(e={}){const{window:n=H,behavior:t="auto"}=e;if(!n)return{x:b(0),y:b(0)};const o=b(n.scrollX),s=b(n.scrollY),r=O({get(){return o.value},set(l){scrollTo({left:l,behavior:t})}}),a=O({get(){return s.value},set(l){scrollTo({top:l,behavior:t})}});return M(n,"scroll",()=>{o.value=n.scrollX,s.value=n.scrollY},{capture:!1,passive:!0}),{x:r,y:a}}function zt(e={}){const{window:n=H,initialWidth:t=Number.POSITIVE_INFINITY,initialHeight:o=Number.POSITIVE_INFINITY,listenOrientation:s=!0,includeScrollbar:r=!0,type:a="inner"}=e,l=b(t),i=b(o),u=()=>{n&&(a==="outer"?(l.value=n.outerWidth,i.value=n.outerHeight):r?(l.value=n.innerWidth,i.value=n.innerHeight):(l.value=n.document.documentElement.clientWidth,i.value=n.document.documentElement.clientHeight))};if(u(),q(u),M("resize",u,{passive:!0}),s){const v=rt("(orientation: portrait)");R(v,()=>u())}return{width:l,height:i}}function $t(e=null,n){const t=b(e),o=O({set:r=>r?Y.start():Y.done(),get:()=>typeof t.value=="number"&&t.value<1});n&&Y.configure(n);const s=Y.set;return Y.set=r=>(t.value=r,s.call(Y,r)),re(()=>{typeof t.value=="number"&&V&&s.call(Y,t.value)}),N(Y.remove),{isLoading:o,progress:t,start:Y.start,done:Y.done,remove:()=>{t.value=null,Y.remove()}}}const Te=V?window:void 0;function Oe(e){var n;const t=_(e);return(n=t==null?void 0:t.$el)!=null?n:t}function I(...e){let n,t,o,s;if(typeof e[0]=="string"||Array.isArray(e[0])?([t,o,s]=e,n=Te):[n,t,o,s]=e,!n)return W;Array.isArray(t)||(t=[t]),Array.isArray(o)||(o=[o]);const r=[],a=()=>{r.forEach(v=>v()),r.length=0},l=(v,f,d,p)=>(v.addEventListener(f,d,p),()=>v.removeEventListener(f,d,p)),i=R(()=>[Oe(n),_(s)],([v,f])=>{if(a(),!v)return;const d=be(f)?{...f}:f;r.push(...t.flatMap(p=>o.map(g=>l(v,p,g,d))))},{immediate:!0,flush:"post"}),u=()=>{i(),a()};return N(u),u}const mt=500,pt=10;function ve(e,n,t){var o,s;const r=O(()=>Oe(e));let a,l,i,u=!1;function v(){a&&(clearTimeout(a),a=void 0),l=void 0,i=void 0,u=!1}function f(c){var S,F,D;const[A,P,w]=[i,l,u];if(v(),!(t!=null&&t.onMouseUp)||!P||!A||(S=t==null?void 0:t.modifiers)!=null&&S.self&&c.target!==r.value)return;(F=t==null?void 0:t.modifiers)!=null&&F.prevent&&c.preventDefault(),(D=t==null?void 0:t.modifiers)!=null&&D.stop&&c.stopPropagation();const T=c.x-P.x,E=c.y-P.y,y=Math.sqrt(T*T+E*E);t.onMouseUp(c.timeStamp-A,y,w)}function d(c){var S,F,D,A;(S=t==null?void 0:t.modifiers)!=null&&S.self&&c.target!==r.value||(v(),(F=t==null?void 0:t.modifiers)!=null&&F.prevent&&c.preventDefault(),(D=t==null?void 0:t.modifiers)!=null&&D.stop&&c.stopPropagation(),l={x:c.x,y:c.y},i=c.timeStamp,a=setTimeout(()=>{u=!0,n(c)},(A=t==null?void 0:t.delay)!=null?A:mt))}function p(c){var S,F,D,A;if((S=t==null?void 0:t.modifiers)!=null&&S.self&&c.target!==r.value||!l||(t==null?void 0:t.distanceThreshold)===!1)return;(F=t==null?void 0:t.modifiers)!=null&&F.prevent&&c.preventDefault(),(D=t==null?void 0:t.modifiers)!=null&&D.stop&&c.stopPropagation();const P=c.x-l.x,w=c.y-l.y;Math.sqrt(P*P+w*w)>=((A=t==null?void 0:t.distanceThreshold)!=null?A:pt)&&v()}const g={capture:(o=t==null?void 0:t.modifiers)==null?void 0:o.capture,once:(s=t==null?void 0:t.modifiers)==null?void 0:s.once},m=[I(r,"pointerdown",d,g),I(r,"pointermove",p,g),I(r,["pointerup","pointerleave"],f,g)];return()=>m.forEach(c=>c())}const It={mounted(e,n){typeof n.value=="function"?ve(e,n.value,{modifiers:n.modifiers}):ve(e,...n.value)}};function me(e,n={}){const{delayEnter:t=0,delayLeave:o=0,window:s=Te}=n,r=b(!1);let a;const l=i=>{const u=i?t:o;a&&(clearTimeout(a),a=void 0),u?a=setTimeout(()=>r.value=i,u):r.value=i};return s&&(I(e,"mouseenter",()=>l(!0),{passive:!0}),I(e,"mouseleave",()=>l(!1),{passive:!0})),r}const Xt={mounted(e,n){const t=n.value;if(typeof t=="function"){const o=me(e);R(o,s=>t(s))}else{const[o,s]=t,r=me(e,s);R(r,a=>o(a))}}};function ee(e){return typeof Window<"u"&&e instanceof Window?e.document.documentElement:typeof Document<"u"&&e instanceof Document?e.documentElement:e}function Fe(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:Fe(t)}}function ht(e){const n=e||window.event,t=n.target;return Fe(t)?!1:n.touches.length>1?!0:(n.preventDefault&&n.preventDefault(),!1)}const te=new WeakMap;function wt(e,n=!1){const t=b(n);let o=null,s="";R(_e(e),l=>{const i=ee(_(l));if(i){const u=i;if(te.get(u)||te.set(u,u.style.overflow),u.style.overflow!=="hidden"&&(s=u.style.overflow),u.style.overflow==="hidden")return t.value=!0;if(t.value)return u.style.overflow="hidden"}},{immediate:!0});const r=()=>{const l=ee(_(e));!l||t.value||(B&&(o=I(l,"touchmove",i=>{ht(i)},{passive:!1})),l.style.overflow="hidden",t.value=!0)},a=()=>{const l=ee(_(e));!l||!t.value||(B&&(o==null||o()),l.style.overflow=s,te.delete(l),t.value=!1)};return N(a),O({get(){return t.value},set(l){l?r():a()}})}function gt(){let e=!1;const n=b(!1);return(t,o)=>{if(n.value=o.value,e)return;e=!0;const s=wt(t,o.value);R(n,r=>s.value=r)}}gt();export{_t as a,rt as b,bt as c,Rt as d,zt as e,At as f,Yt as g,Nt as h,$t as i,Ft as j,Lt as k,Pt as l,Wt as m,Ct as n,Dt as o,M as p,Ot as q,Et as r,kt as s,xt as t,Ht as u,Mt as v,Xt as w,It as x,Tt as y,xe as z};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{j as Z,u as ee,_ as oe,r as se,d as re,f as ae}from"./main.
|
|
1
|
+
import{j as Z,u as ee,_ as oe,r as se,d as re,f as ae}from"./main.BAJ_SBax.0.0.46.js";import{G as te,r as g,a5 as ne,b as x,aa as le,ab as d,f as r,a9 as p,P as a,u as e,m as b,d as T,k as B,a7 as E,p as ie,g as N}from"./@vue.YfIN5b-F.0.0.46.js";import{m as D,a as R}from"./@mdi.CbjpODVZ.0.0.46.js";import{F as c,a as me}from"./vee-validate.7Af0cEu8.0.0.46.js";import{i as U}from"./vue3-toastify.CFDXIP-M.0.0.46.js";import{s as ue}from"./pinia.D5BiAQDi.0.0.46.js";import{c as I,d as G,a as q,b as H}from"./vuetify.C_-bCfce.0.0.46.js";import{u as de}from"./vue-i18n.T2yW9_E4.0.0.46.js";import"./axios.DIsA03vz.0.0.46.js";import"./@tanstack.DpCjjLhb.0.0.46.js";import"./vue-router.BUv32z-J.0.0.46.js";import"./@vueuse.CaSJn4a8.0.0.46.js";import"./nprogress.Dxe0bwSt.0.0.46.js";import"./@xterm.qzCwKTgt.0.0.46.js";import"./@vee-validate.Bs1leH4B.0.0.46.js";import"./zod.bkdEMpUp.0.0.46.js";import"./uuid.Ch9TGLTe.0.0.46.js";import"./socket.io-client.DQuzwRyg.0.0.46.js";import"./engine.io-client.BAIdff8t.0.0.46.js";import"./engine.io-parser.BiEtp6m2.0.0.46.js";import"./@socket.io.Dkula2eQ.0.0.46.js";import"./socket.io-parser.Bcxk4LCf.0.0.46.js";import"./rxjs.mfVNcnDG.0.0.46.js";import"./tslib.9k7AwCpt.0.0.46.js";import"./vue-inline-svg.CZF3xeGC.0.0.46.js";import"./@intlify.Do1-T-x0.0.0.46.js";import"./perfect-debounce.Cp2ysxOb.0.0.46.js";import"./hookable.B8xFkYCm.0.0.46.js";const pe={class:"relative"},ce={class:"subview-title text-color"},ve={class:"image-upload ml-auto"},fe={for:"file-input"},ge={class:"inner-component p-4"},be={class:"relative"},he={for:"username",class:"v-label"},_e={class:"relative"},ye={for:"password",class:"v-label"},we={class:"relative"},ke={for:"passwordConfirm",class:"v-label"},Ce={class:"relative"},Me={for:"sessionTimer",class:"v-label"},xe={key:0,style:{"padding-top":"22px"}},$e={key:1,class:"relative"},Le={key:2,class:"relative"},Se=te({__name:"Account",setup(Ve){var A,j;const{smallMobileActive:O}=Z(),$=ee(),J=de(),{loginState:s}=ue($),L=g("avatar"),w=g(),S=g(),h=g(!1),k=g(!1),C=g(!1);let V=((A=s.value.user)==null?void 0:A.rememberMe)??!1,F=((j=s.value.user)==null?void 0:j.oneLogin)??!1;const K=()=>{s.value.user&&(s.value.user.rememberMe=!s.value.user.rememberMe)},Q=()=>{s.value.user&&(s.value.user.oneLogin=!s.value.user.oneLogin)},W=()=>{S.value&&(S.value.resetForm(),L.value="avatar",w.value=void 0),s.value.user&&(s.value.user.rememberMe=V,s.value.user.oneLogin=F)},X=async t=>{var m;const o=(m=t.target)==null?void 0:m.files;w.value=o==null?void 0:o[0],L.value=await se(t)},Y=async t=>{var _,y,n,l,i,f,M;h.value=!0;let o;const m={...t};delete m.upload;const P=((_=s.value.user)==null?void 0:_.username)!==m.username||m.password&&m.passwordConfirm,v=Object.entries(m).some(([,u])=>u!==void 0);if(w.value&&(o=new FormData,o.append("upload",w.value)),!v&&!o){h.value=!1;return}try{await $.updateUser(m,o,!0),U.success(J.t("components.toast.profile_updated")),V=((y=s.value.user)==null?void 0:y.rememberMe)??V,F=((n=s.value.user)==null?void 0:n.oneLogin)??F,P&&$.logout()}catch(u){U.error(((i=(l=u.response)==null?void 0:l.data)==null?void 0:i.message)??u.message??u),console.error(((M=(f=u.response)==null?void 0:f.data)==null?void 0:M.message)??u.message??u)}h.value=!1};return(t,o)=>{const m=oe,P=ne("v-number-input");return x(),le(e(me),{ref_key:"form",ref:S,class:"flex flex-col w-full","validation-schema":e(re),onSubmit:o[3]||(o[3]=v=>Y(v))},{default:d(()=>{var v,_,y;return[r("div",pe,[r("span",ce,p(t.$t("views.settings.profile")),1),r("div",ve,[r("label",fe,[a(m,{src:e(L),size:"4rem",style:{"border-radius":"4rem",border:"1px solid var(--border)"}},null,8,["src"]),a(e(c),{id:"file-input",type:"file",name:"upload",accept:"image/png,image/jpeg,image/jpg",onChange:o[0]||(o[0]=n=>X(n))})])]),r("div",ge,[r("div",be,[r("label",he,p(t.$t("components.form.label.username")),1),a(e(c),{name:"username",value:(v=e(s).user)==null?void 0:v.username},{default:d(({field:n,errorMessage:l,errors:i})=>[a(I,b({name:"username",variant:"outlined",density:"compact"},n,{type:"text",error:i.length>0,"error-messages":l}),null,16,["error","error-messages"])]),_:1},8,["value"])]),o[4]||(o[4]=r("div",{class:"py-1"},null,-1)),r("div",_e,[r("label",ye,p(t.$t("components.form.label.new_password")),1),a(e(c),{name:"password"},{default:d(({field:n,errorMessage:l,errors:i})=>[a(I,b({name:"password",variant:"outlined",density:"compact"},n,{type:e(k)?"text":"password",error:i.length>0,"error-messages":l,"append-inner-icon":e(k)?e(D):e(R),"onClick:appendInner":o[1]||(o[1]=f=>k.value=!e(k))}),null,16,["type","error","error-messages","append-inner-icon"])]),_:1})]),o[5]||(o[5]=r("div",{class:"py-1"},null,-1)),r("div",we,[r("label",ke,p(t.$t("components.form.label.new_password_confirm")),1),a(e(c),{name:"passwordConfirm"},{default:d(({field:n,errorMessage:l,errors:i})=>[a(I,b({name:"passwordConfirm",variant:"outlined",density:"compact"},n,{type:e(C)?"text":"password",error:i.length>0,"error-messages":l,"append-inner-icon":e(C)?e(D):e(R),"onClick:appendInner":o[2]||(o[2]=f=>C.value=!e(C))}),null,16,["type","error","error-messages","append-inner-icon"])]),_:1})]),o[6]||(o[6]=r("div",{class:"py-1"},null,-1)),r("div",Ce,[r("label",Me,p(t.$t("components.form.label.session_timer")),1),a(e(c),{name:"sessionTimer",value:(_=e(s).user)==null?void 0:_.sessionTimer},{default:d(({field:n,errorMessage:l,errors:i,value:f,setValue:M})=>{var u,z;return[a(P,b({name:"sessionTimer",variant:"outlined",density:"compact"},n,{type:"number",step:600,error:i.length>0,"error-messages":l,disabled:(u=e(s).user)==null?void 0:u.rememberMe,"hide-details":(z=e(s).user)==null?void 0:z.rememberMe,onChange:()=>f===""?M(14400):void 0}),null,16,["error","error-messages","disabled","hide-details","onChange"])]}),_:1},8,["value"])]),o[7]||(o[7]=r("div",{class:"py-1"},null,-1)),(y=e(s).user)!=null&&y.rememberMe?(x(),T("div",xe)):B("",!0),e(s).user?(x(),T("div",$e,[a(e(c),{"model-value":e(s).user.rememberMe,name:"rememberMe",type:"checkbox","checked-value":!0,"unchecked-value":!1},{default:d(({field:n,errorMessage:l,errors:i})=>[a(G,b({"model-value":e(s).user.rememberMe,name:"rememberMe"},n,{color:"#df2a4c",type:"checkbox",error:i.length>0,"error-messages":l,"persistent-hint":"",hint:t.$t("components.form.hint.remember_me"),label:t.$t("components.form.label.remember_me"),onChange:K}),null,16,["model-value","error","error-messages","hint","label"])]),_:1},8,["model-value"])])):B("",!0),o[8]||(o[8]=r("div",{class:"py-2"},null,-1)),e(s).user?(x(),T("div",Le,[a(e(c),{"model-value":e(s).user.oneLogin,name:"oneLogin",type:"checkbox","checked-value":!0,"unchecked-value":!1},{default:d(({field:n,errorMessage:l,errors:i})=>[a(G,b({"model-value":e(s).user.oneLogin,name:"oneLogin"},n,{color:"#df2a4c",type:"checkbox",error:i.length>0,"error-messages":l,label:t.$t("components.form.label.one_login"),hint:t.$t("components.form.hint.one_login"),"persistent-hint":"",onChange:Q}),null,16,["model-value","error","error-messages","label","hint"])]),_:1},8,["model-value"])])):B("",!0),o[9]||(o[9]=r("div",{class:"py-2"},null,-1))])]),r("div",{class:N(["flex flex-row my-5",{"mr-3":e(O)}])},[a(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:ie(W,["prevent"])},{loader:d(()=>[a(q,{class:"text-color",size:"14",width:"2",indeterminate:""})]),default:d(()=>[E(p(t.$t("components.form.button.cancel")),1)]),_:1},8,["loading"]),a(H,{class:N(["text-white bg-color-primary",{"mr-2":e(O)}]),loading:e(h),elevation:"0",tonal:"",style:{border:"1px solid var(--color-primary-darken-2)"},type:"submit"},{loader:d(()=>[a(q,{color:"#fff",size:"14",width:"2",indeterminate:""})]),default:d(()=>[E(p(t.$t("components.form.button.save")),1)]),_:1},8,["loading","class"])],2)]}),_:1},8,["validation-schema"])}}}),ao=ae(Se,[["__scopeId","data-v-55f68004"]]);export{ao as default};
|