@camera.ui/server 0.0.39 → 0.0.41
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/@intlify.Do1-T-x0.0.0.41.js +15 -0
- package/dist/interface/{@tanstack.BoiFrtzX.0.0.39.js → @tanstack.BMdKtFKV.0.0.41.js} +1 -1
- package/dist/interface/{@vee-validate.DOPySfe9.0.0.39.js → @vee-validate.BN6pp7gT.0.0.41.js} +1 -1
- package/dist/interface/{@vue.BSUQIjRR.0.0.39.js → @vue.HgptpWSe.0.0.41.js} +1 -1
- package/dist/interface/{@vueform.DURVfBZu.0.0.39.js → @vueform.o-ddyf2r.0.0.41.js} +1 -1
- package/dist/interface/@vueuse.0AqyrsW4.0.0.41.js +1 -0
- package/dist/interface/{@xterm.CD6WS-S3.0.0.39.js → @xterm.ChIdrMXz.0.0.41.js} +4 -4
- package/dist/interface/{Account.D_eFRBoi.0.0.39.js → Account.rWnoeynZ.0.0.41.js} +1 -1
- package/dist/interface/{Adminpanel.BW13-FSk.0.0.39.js → Adminpanel.DmVBZO7B.0.0.41.js} +2 -2
- package/dist/interface/{Appearance.BAartkPK.0.0.39.js → Appearance.CWq9SdBF.0.0.41.js} +1 -1
- package/dist/interface/{Backup.B8qRu2Lk.0.0.39.js → Backup.gg2dY5Kw.0.0.41.js} +1 -1
- package/dist/interface/{Camera.WCQluB3X.0.0.39.js → Camera.DC8dTFKj.0.0.41.js} +1 -1
- package/dist/interface/{Cameras.BimRRXnv.0.0.39.js → Cameras.BTbXKjiK.0.0.41.js} +1 -1
- package/dist/interface/{Camview.jUT1KeFE.0.0.39.js → Camview.9qmsYNcJ.0.0.41.js} +1 -1
- package/dist/interface/{Config.D7fPANlt.0.0.39.js → Config.B6iyCBiG.0.0.41.js} +1 -1
- package/dist/interface/{Console.DtTYQDtc.0.0.39.js → Console.D8_i4IrL.0.0.41.js} +1 -1
- package/dist/interface/{FirstSteps.DvFz9Ipp.0.0.39.js → FirstSteps.CNdfoio6.0.0.41.js} +1 -1
- package/dist/interface/{NewCamera.C2Tj9HIr.0.0.39.js → NewCamera.DboRF8X5.0.0.41.js} +2 -2
- package/dist/interface/Plugin.CtbpXA8-.0.0.41.js +1 -0
- package/dist/interface/{Plugins.0GLzbC2l.0.0.39.js → Plugins.C-h6Ohpb.0.0.41.js} +1 -1
- package/dist/interface/Recordings.DDez2bDG.0.0.41.js +1 -0
- package/dist/interface/Recordings.nAMAxDb-.0.0.41.js +1 -0
- package/dist/interface/{Settings.CHyfykI9.0.0.39.js → Settings.BLIeDAua.0.0.41.js} +1 -1
- package/dist/interface/{System.CcBINQYZ.0.0.39.js → System.ttFMkejl.0.0.41.js} +1 -1
- package/dist/interface/{User.CMafVfud.0.0.39.js → User.ByejsWGp.0.0.41.js} +1 -1
- package/dist/interface/{VConfigEditor.vue_vue_type_script_setup_true_lang.DxUPvg7f.0.0.39.js → VConfigEditor.vue_vue_type_script_setup_true_lang.Cl2zDL7n.0.0.41.js} +2 -2
- package/dist/interface/{VConsole.DDRPOT5i.0.0.39.js → VConsole.C_RAZERN.0.0.41.js} +1 -1
- package/dist/interface/VPlayer.C-i6REq9.0.0.41.js +4 -0
- package/dist/interface/{VPluginCard.a7_GwM_6.0.0.39.js → VPluginCard.DuHfeDOo.0.0.41.js} +1 -1
- package/dist/interface/{ace-builds.DKOJbQcN.0.0.39.js → ace-builds.CJ5_HA6k.0.0.41.js} +4 -4
- package/dist/interface/apexcharts.BvzAjsR8.0.0.41.js +838 -0
- package/dist/interface/assets/NewCamera.0.0.41.C7CL-ujd.css +1 -0
- package/dist/interface/assets/Plugin.0.0.41.YIpAU1_n.css +1 -0
- package/dist/interface/assets/{VPlayer.0.0.39.yTIux4rl.css → VPlayer.0.0.41.C4lm2rVR.css} +1 -1
- package/dist/interface/assets/{vuetify.0.0.39.BMU5FWcv.css → vuetify.0.0.41.Dua9WSqa.css} +1 -1
- package/dist/interface/axios.CG9kBweI.0.0.41.js +6 -0
- package/dist/interface/{backup.zxQT-QUB.0.0.39.js → backup.Eqa_gnBJ.0.0.41.js} +1 -1
- package/dist/interface/dijkstrajs.C00ieaqj.0.0.41.js +1 -0
- package/dist/interface/{dnd-core.DzbP3L03.0.0.39.js → dnd-core.DlR0vdws.0.0.41.js} +1 -1
- package/dist/interface/draggabilly.MGblyd4O.0.0.41.js +6 -0
- package/dist/interface/{engine.io-client.CF43lzPG.0.0.39.js → engine.io-client.Bmv4tt9j.0.0.41.js} +1 -1
- package/dist/interface/ev-emitter.X5f1qa-c.0.0.41.js +1 -0
- package/dist/interface/fast-deep-equal.CltXOu8w.0.0.41.js +1 -0
- package/dist/interface/highlight.js.BI1DQKiW.0.0.41.js +2 -0
- package/dist/interface/index.html +32 -32
- package/dist/interface/{linkify-it.CEUGOmX8.0.0.39.js → linkify-it.DIqOOItF.0.0.41.js} +1 -1
- package/dist/interface/main.DGoYNhZz.0.0.41.js +5 -0
- package/dist/interface/{markdown-it.BoMkMmpx.0.0.39.js → markdown-it.BoSfr4I_.0.0.41.js} +1 -1
- package/dist/interface/nprogress.B4qekFjh.0.0.41.js +2 -0
- package/dist/interface/pinia.CzEXGLAe.0.0.41.js +5 -0
- package/dist/interface/{plugins.BX6fkkXi.0.0.39.js → plugins.5zIS5blM.0.0.41.js} +1 -1
- package/dist/interface/qrcode.BIXps75H.0.0.41.js +8 -0
- package/dist/interface/{react-dnd-touch-backend.BZ7RUPLh.0.0.39.js → react-dnd-touch-backend.BP3qju5g.0.0.41.js} +1 -1
- package/dist/interface/{rxjs.DSklvEf_.0.0.39.js → rxjs.Dq5nE0it.0.0.41.js} +1 -1
- package/dist/interface/{socket.io-client.B1p1jCy1.0.0.39.js → socket.io-client.Dd2M9OF7.0.0.41.js} +1 -1
- package/dist/interface/{socket.io-parser.D--34e4A.0.0.39.js → socket.io-parser.BP9NTxl9.0.0.41.js} +1 -1
- package/dist/interface/sw.js +1 -1
- package/dist/interface/{system.urUBVKEs.0.0.39.js → system.CX3eZanU.0.0.41.js} +1 -1
- package/dist/interface/unidragger.Coz7gnad.0.0.41.js +5 -0
- package/dist/interface/{vee-validate.DTyH9YVQ.0.0.39.js → vee-validate.rx6EoM-V.0.0.41.js} +1 -1
- package/dist/interface/vue-i18n.CLbC5t4S.0.0.41.js +5 -0
- package/dist/interface/{vue-inline-svg.DlaAtqUH.0.0.39.js → vue-inline-svg.BHDMo3hs.0.0.41.js} +1 -1
- package/dist/interface/vue-router.BlIBZAV8.0.0.41.js +5 -0
- package/dist/interface/vue3-apexcharts.CJu6sQGy.0.0.41.js +1 -0
- package/dist/interface/{vue3-dnd.DI0vFvcT.0.0.39.js → vue3-dnd.CKocKVAc.0.0.41.js} +1 -1
- package/dist/interface/vue3-toastify.B344fBI7.0.0.41.js +1 -0
- package/dist/interface/vuetify.cl53-mu0.0.0.41.js +5 -0
- package/dist/server/package.json +16 -16
- package/dist/server/requirements.txt +5 -5
- package/dist/server/src/api/controllers/cameras.controller.js +10 -4
- package/dist/server/src/api/controllers/cameras.controller.js.map +1 -1
- package/dist/server/src/api/database/index.d.ts +1 -1
- package/dist/server/src/api/database/index.js +1 -1
- package/dist/server/src/api/database/index.js.map +1 -1
- package/dist/server/src/api/database/migration.js +49 -0
- package/dist/server/src/api/database/migration.js.map +1 -1
- package/dist/server/src/api/routes/cameras.routes.js +3 -3
- package/dist/server/src/api/routes/cameras.routes.js.map +1 -1
- package/dist/server/src/api/schemas/backup.schema.d.ts +2 -2
- package/dist/server/src/api/schemas/cameras.schema.d.ts +14 -14
- package/dist/server/src/api/schemas/cameras.schema.js +28 -6
- package/dist/server/src/api/schemas/cameras.schema.js.map +1 -1
- package/dist/server/src/api/schemas/plugins.schema.d.ts +16 -16
- package/dist/server/src/api/services/cameras.service.d.ts +0 -1
- package/dist/server/src/api/services/cameras.service.js +17 -60
- package/dist/server/src/api/services/cameras.service.js.map +1 -1
- package/dist/server/src/api/websocket/go2rtc.js +1 -1
- package/dist/server/src/api/websocket/go2rtc.js.map +1 -1
- package/dist/server/src/camera/controller.js +2 -1
- package/dist/server/src/camera/controller.js.map +1 -1
- package/package.json +16 -16
- package/dist/interface/@intlify.DA2Uxele.0.0.39.js +0 -15
- package/dist/interface/@vueuse.BbKS6Mm_.0.0.39.js +0 -1
- package/dist/interface/Plugin.DJZOCVcC.0.0.39.js +0 -1
- package/dist/interface/Recordings.BmGJwKCj.0.0.39.js +0 -1
- package/dist/interface/Recordings.CGm8tQJ2.0.0.39.js +0 -1
- package/dist/interface/VPlayer.B6FnraDr.0.0.39.js +0 -4
- package/dist/interface/apexcharts.BNnNkoic.0.0.39.js +0 -795
- package/dist/interface/assets/NewCamera.0.0.39.C5BFv264.css +0 -1
- package/dist/interface/assets/Plugin.0.0.39.Dr_p_vTx.css +0 -1
- package/dist/interface/axios.A8B9OaBI.0.0.39.js +0 -6
- package/dist/interface/dijkstrajs.D_NXgYpA.0.0.39.js +0 -1
- package/dist/interface/draggabilly.CZQEJIZA.0.0.39.js +0 -6
- package/dist/interface/ev-emitter.MaUUfWbo.0.0.39.js +0 -1
- package/dist/interface/fast-deep-equal.MattxcKw.0.0.39.js +0 -1
- package/dist/interface/highlight.js.CTUlL8NK.0.0.39.js +0 -2
- package/dist/interface/main.Cn0OSGo3.0.0.39.js +0 -5
- package/dist/interface/nprogress.IoWBc-2H.0.0.39.js +0 -2
- package/dist/interface/pinia.C6nkSx2n.0.0.39.js +0 -5
- package/dist/interface/qrcode.DcxA8kpR.0.0.39.js +0 -8
- package/dist/interface/unidragger.Cau04amP.0.0.39.js +0 -5
- package/dist/interface/vue-i18n.DMLEf9uA.0.0.39.js +0 -5
- package/dist/interface/vue-router.Dg3VWoln.0.0.39.js +0 -5
- package/dist/interface/vue3-apexcharts.CZjjRQ6m.0.0.39.js +0 -1
- package/dist/interface/vue3-toastify.BuRDCgSx.0.0.39.js +0 -1
- package/dist/interface/vuetify.BVIToxfp.0.0.39.js +0 -5
- /package/dist/interface/{@babel.l0sNRNKZ.0.0.39.js → @babel.l0sNRNKZ.0.0.41.js} +0 -0
- /package/dist/interface/{@mdi.CbjpODVZ.0.0.39.js → @mdi.CbjpODVZ.0.0.41.js} +0 -0
- /package/dist/interface/{@react-dnd.CcwRs9xb.0.0.39.js → @react-dnd.CcwRs9xb.0.0.41.js} +0 -0
- /package/dist/interface/{@socket.io.Dkula2eQ.0.0.39.js → @socket.io.Dkula2eQ.0.0.41.js} +0 -0
- /package/dist/interface/{@turf.l0sNRNKZ.0.0.39.js → @turf.l0sNRNKZ.0.0.41.js} +0 -0
- /package/dist/interface/assets/{@vueform.0.0.39.CroAHJs8.css → @vueform.0.0.41.CroAHJs8.css} +0 -0
- /package/dist/interface/assets/{@xterm.0.0.39.CFbL2ovg.css → @xterm.0.0.41.CFbL2ovg.css} +0 -0
- /package/dist/interface/assets/{Account.0.0.39.Bnw6Lbtd.css → Account.0.0.41.Bnw6Lbtd.css} +0 -0
- /package/dist/interface/assets/{Adminpanel.0.0.39.a3t1v3MB.css → Adminpanel.0.0.41.a3t1v3MB.css} +0 -0
- /package/dist/interface/assets/{Backup.0.0.39.CX0rT0QJ.css → Backup.0.0.41.CX0rT0QJ.css} +0 -0
- /package/dist/interface/assets/{Camera.0.0.39.Br9s6-lM.css → Camera.0.0.41.Br9s6-lM.css} +0 -0
- /package/dist/interface/assets/{Cameras.0.0.39.Buf1Dgce.css → Cameras.0.0.41.Buf1Dgce.css} +0 -0
- /package/dist/interface/assets/{Camview.0.0.39.B7Cja2ry.css → Camview.0.0.41.B7Cja2ry.css} +0 -0
- /package/dist/interface/assets/{Config.0.0.39.DNGo2krN.css → Config.0.0.41.DNGo2krN.css} +0 -0
- /package/dist/interface/assets/{Console.0.0.39.Bh8l9QnM.css → Console.0.0.41.Bh8l9QnM.css} +0 -0
- /package/dist/interface/assets/{FirstSteps.0.0.39.Mu8VPl13.css → FirstSteps.0.0.41.Mu8VPl13.css} +0 -0
- /package/dist/interface/assets/{Plugins.0.0.39.DXSoO9M1.css → Plugins.0.0.41.DXSoO9M1.css} +0 -0
- /package/dist/interface/assets/{Settings.0.0.39.CVmui2kE.css → Settings.0.0.41.CVmui2kE.css} +0 -0
- /package/dist/interface/assets/{User.0.0.39.BiGtIFqt.css → User.0.0.41.BiGtIFqt.css} +0 -0
- /package/dist/interface/assets/{VConsole.0.0.39.BCqKHpmJ.css → VConsole.0.0.41.BCqKHpmJ.css} +0 -0
- /package/dist/interface/assets/{VPluginCard.0.0.39.C8Lj6X-J.css → VPluginCard.0.0.41.C8Lj6X-J.css} +0 -0
- /package/dist/interface/assets/{highlight.0.0.39.Ch2EwETz.css → highlight.0.0.41.Ch2EwETz.css} +0 -0
- /package/dist/interface/assets/{logo-256.0.0.39.BCQk9H1-.png → logo-256.0.0.41.BCQk9H1-.png} +0 -0
- /package/dist/interface/assets/{logo-512.0.0.39.DLKVOU2S.png → logo-512.0.0.41.DLKVOU2S.png} +0 -0
- /package/dist/interface/assets/{logo.0.0.39.DmEiRk0z.png → logo.0.0.41.DmEiRk0z.png} +0 -0
- /package/dist/interface/assets/{main.0.0.39.OJngntGT.css → main.0.0.41.OJngntGT.css} +0 -0
- /package/dist/interface/assets/{mode-json.0.0.39.Br7xisR1.js → mode-json.0.0.41.Br7xisR1.js} +0 -0
- /package/dist/interface/assets/{mode-yaml.0.0.39.CIYL8U3d.js → mode-yaml.0.0.41.CIYL8U3d.js} +0 -0
- /package/dist/interface/assets/{vue3-toastify.0.0.39.DHXAGmwn.css → vue3-toastify.0.0.41.DHXAGmwn.css} +0 -0
- /package/dist/interface/{birpc.l0sNRNKZ.0.0.39.js → birpc.l0sNRNKZ.0.0.41.js} +0 -0
- /package/dist/interface/{compare-versions.DqEOhma6.0.0.39.js → compare-versions.DqEOhma6.0.0.41.js} +0 -0
- /package/dist/interface/{engine.io-parser.BiEtp6m2.0.0.39.js → engine.io-parser.BiEtp6m2.0.0.41.js} +0 -0
- /package/dist/interface/{entities.C20TfXL6.0.0.39.js → entities.C20TfXL6.0.0.41.js} +0 -0
- /package/dist/interface/{get-size.D1dS-IaP.0.0.39.js → get-size.D1dS-IaP.0.0.41.js} +0 -0
- /package/dist/interface/{hookable.B8xFkYCm.0.0.39.js → hookable.B8xFkYCm.0.0.41.js} +0 -0
- /package/dist/interface/{mdurl.k9Sl0PQj.0.0.39.js → mdurl.k9Sl0PQj.0.0.41.js} +0 -0
- /package/dist/interface/{perfect-debounce.Cp2ysxOb.0.0.39.js → perfect-debounce.Cp2ysxOb.0.0.41.js} +0 -0
- /package/dist/interface/{point-in-polygon-hao.l0sNRNKZ.0.0.39.js → point-in-polygon-hao.l0sNRNKZ.0.0.41.js} +0 -0
- /package/dist/interface/{punycode.js.Dj65hjkv.0.0.39.js → punycode.js.Dj65hjkv.0.0.41.js} +0 -0
- /package/dist/interface/{react-dnd-html5-backend.1HQjlkwI.0.0.39.js → react-dnd-html5-backend.1HQjlkwI.0.0.41.js} +0 -0
- /package/dist/interface/{redux.BFxtlG_c.0.0.39.js → redux.BFxtlG_c.0.0.41.js} +0 -0
- /package/dist/interface/{sweepline-intersections.l0sNRNKZ.0.0.39.js → sweepline-intersections.l0sNRNKZ.0.0.41.js} +0 -0
- /package/dist/interface/{tslib.9k7AwCpt.0.0.39.js → tslib.9k7AwCpt.0.0.41.js} +0 -0
- /package/dist/interface/{types.Cz9TaZAP.0.0.39.js → types.Cz9TaZAP.0.0.41.js} +0 -0
- /package/dist/interface/{uc.micro.kMc2yuuw.0.0.39.js → uc.micro.kMc2yuuw.0.0.41.js} +0 -0
- /package/dist/interface/{utils.mAKpSMLY.0.0.39.js → utils.mAKpSMLY.0.0.41.js} +0 -0
- /package/dist/interface/{uuid.Ch9TGLTe.0.0.39.js → uuid.Ch9TGLTe.0.0.41.js} +0 -0
- /package/dist/interface/{vue.l0sNRNKZ.0.0.39.js → vue.l0sNRNKZ.0.0.41.js} +0 -0
- /package/dist/interface/{zod.Bn-rxnIN.0.0.39.js → zod.Bn-rxnIN.0.0.41.js} +0 -0
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
/*!
|
|
2
|
+
* shared v10.0.5
|
|
3
|
+
* (c) 2024 kazuya kawaguchi
|
|
4
|
+
* Released under the MIT License.
|
|
5
|
+
*/const qn=typeof window<"u",Zn=(e,t=!1)=>t?Symbol.for(e):Symbol(e),pt=(e,t,n)=>Nt({l:e,k:t,s:n}),Nt=e=>JSON.stringify(e).replace(/\u2028/g,"\\u2028").replace(/\u2029/g,"\\u2029").replace(/\u0027/g,"\\u0027"),K=e=>typeof e=="number"&&isFinite(e),Tt=e=>Ce(e)==="[object Date]",Re=e=>Ce(e)==="[object RegExp]",ge=e=>P(e)&&Object.keys(e).length===0,Z=Object.assign,gt=Object.create,W=(e=null)=>gt(e);let ve;const Ct=()=>ve||(ve=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:W());function Me(e){return e.replace(/</g,"<").replace(/>/g,">").replace(/"/g,""").replace(/'/g,"'")}const St=Object.prototype.hasOwnProperty;function te(e,t){return St.call(e,t)}const H=Array.isArray,F=e=>typeof e=="function",O=e=>typeof e=="string",V=e=>typeof e=="boolean",R=e=>e!==null&&typeof e=="object",Ot=e=>R(e)&&F(e.then)&&F(e.catch),je=Object.prototype.toString,Ce=e=>je.call(e),P=e=>Ce(e)==="[object Object]",It=e=>e==null?"":H(e)||P(e)&&e.toString===je?JSON.stringify(e,null,2):String(e);function Se(e,t=""){return e.reduce((n,s,c)=>c===0?n+s:n+t+s,"")}function bt(e,t){typeof console<"u"&&(console.warn("[intlify] "+e),t&&console.warn(t.stack))}const oe=e=>!R(e)||H(e);function zn(e,t){if(oe(e)||oe(t))throw new Error("Invalid value");const n=[{src:e,des:t}];for(;n.length;){const{src:s,des:c}=n.pop();Object.keys(s).forEach(l=>{l!=="__proto__"&&(R(s[l])&&!R(c[l])&&(c[l]=Array.isArray(s[l])?[]:W()),oe(c[l])||oe(s[l])?c[l]=s[l]:n.push({src:s[l],des:c[l]}))})}}/*!
|
|
6
|
+
* message-compiler v10.0.5
|
|
7
|
+
* (c) 2024 kazuya kawaguchi
|
|
8
|
+
* Released under the MIT License.
|
|
9
|
+
*/function At(e,t,n){return{line:e,column:t,offset:n}}function pe(e,t,n){return{start:e,end:t}}const k={EXPECTED_TOKEN:1,INVALID_TOKEN_IN_PLACEHOLDER:2,UNTERMINATED_SINGLE_QUOTE_IN_PLACEHOLDER:3,UNKNOWN_ESCAPE_SEQUENCE:4,INVALID_UNICODE_ESCAPE_SEQUENCE:5,UNBALANCED_CLOSING_BRACE:6,UNTERMINATED_CLOSING_BRACE:7,EMPTY_PLACEHOLDER:8,NOT_ALLOW_NEST_PLACEHOLDER:9,INVALID_LINKED_FORMAT:10,MUST_HAVE_MESSAGES_IN_PLURAL:11,UNEXPECTED_EMPTY_LINKED_MODIFIER:12,UNEXPECTED_EMPTY_LINKED_KEY:13,UNEXPECTED_LEXICAL_ANALYSIS:14},yt=17;function Oe(e,t,n={}){const{domain:s,messages:c,args:l}=n,m=e,_=new SyntaxError(String(m));return _.code=e,t&&(_.location=t),_.domain=s,_}function kt(e){throw e}const x=" ",Pt="\r",$=`
|
|
10
|
+
`,Dt="\u2028",Rt="\u2029";function vt(e){const t=e;let n=0,s=1,c=1,l=0;const m=b=>t[b]===Pt&&t[b+1]===$,_=b=>t[b]===$,d=b=>t[b]===Rt,L=b=>t[b]===Dt,I=b=>m(b)||_(b)||d(b)||L(b),C=()=>n,N=()=>s,A=()=>c,y=()=>l,S=b=>m(b)||d(b)||L(b)?$:t[b],g=()=>S(n),i=()=>S(n+l);function f(){return l=0,I(n)&&(s++,c=0),m(n)&&n++,n++,c++,t[n]}function E(){return m(n+l)&&l++,l++,t[n+l]}function o(){n=0,s=1,c=1,l=0}function h(b=0){l=b}function p(){const b=n+l;for(;b!==n;)f();l=0}return{index:C,line:N,column:A,peekOffset:y,charAt:S,currentChar:g,currentPeek:i,next:f,peek:E,reset:o,resetPeek:h,skipToPeek:p}}const q=void 0,Mt=".",we="'",wt="tokenizer";function Ft(e,t={}){const n=t.location!==!1,s=vt(e),c=()=>s.index(),l=()=>At(s.line(),s.column(),s.index()),m=l(),_=c(),d={currentType:13,offset:_,startLoc:m,endLoc:m,lastType:13,lastOffset:_,lastStartLoc:m,lastEndLoc:m,braceNest:0,inLinked:!1,text:""},L=()=>d,{onError:I}=t;function C(r,a,u,...T){const M=L();if(a.column+=u,a.offset+=u,I){const w=n?pe(M.startLoc,a):null,X=Oe(r,w,{domain:wt,args:T});I(X)}}function N(r,a,u){r.endLoc=l(),r.currentType=a;const T={type:a};return n&&(T.loc=pe(r.startLoc,r.endLoc)),u!=null&&(T.value=u),T}const A=r=>N(r,13);function y(r,a){return r.currentChar()===a?(r.next(),a):(C(k.EXPECTED_TOKEN,l(),0,a),"")}function S(r){let a="";for(;r.currentPeek()===x||r.currentPeek()===$;)a+=r.currentPeek(),r.peek();return a}function g(r){const a=S(r);return r.skipToPeek(),a}function i(r){if(r===q)return!1;const a=r.charCodeAt(0);return a>=97&&a<=122||a>=65&&a<=90||a===95}function f(r){if(r===q)return!1;const a=r.charCodeAt(0);return a>=48&&a<=57}function E(r,a){const{currentType:u}=a;if(u!==2)return!1;S(r);const T=i(r.currentPeek());return r.resetPeek(),T}function o(r,a){const{currentType:u}=a;if(u!==2)return!1;S(r);const T=r.currentPeek()==="-"?r.peek():r.currentPeek(),M=f(T);return r.resetPeek(),M}function h(r,a){const{currentType:u}=a;if(u!==2)return!1;S(r);const T=r.currentPeek()===we;return r.resetPeek(),T}function p(r,a){const{currentType:u}=a;if(u!==7)return!1;S(r);const T=r.currentPeek()===".";return r.resetPeek(),T}function b(r,a){const{currentType:u}=a;if(u!==8)return!1;S(r);const T=i(r.currentPeek());return r.resetPeek(),T}function D(r,a){const{currentType:u}=a;if(!(u===7||u===11))return!1;S(r);const T=r.currentPeek()===":";return r.resetPeek(),T}function v(r,a){const{currentType:u}=a;if(u!==9)return!1;const T=()=>{const w=r.currentPeek();return w==="{"?i(r.peek()):w==="@"||w==="|"||w===":"||w==="."||w===x||!w?!1:w===$?(r.peek(),T()):B(r,!1)},M=T();return r.resetPeek(),M}function Y(r){S(r);const a=r.currentPeek()==="|";return r.resetPeek(),a}function B(r,a=!0){const u=(M=!1,w="")=>{const X=r.currentPeek();return X==="{"||X==="@"||!X?M:X==="|"?!(w===x||w===$):X===x?(r.peek(),u(!0,x)):X===$?(r.peek(),u(!0,$)):!0},T=u();return a&&r.resetPeek(),T}function U(r,a){const u=r.currentChar();return u===q?q:a(u)?(r.next(),u):null}function ie(r){const a=r.charCodeAt(0);return a>=97&&a<=122||a>=65&&a<=90||a>=48&&a<=57||a===95||a===36}function et(r){return U(r,ie)}function tt(r){const a=r.charCodeAt(0);return a>=97&&a<=122||a>=65&&a<=90||a>=48&&a<=57||a===95||a===36||a===45}function nt(r){return U(r,tt)}function rt(r){const a=r.charCodeAt(0);return a>=48&&a<=57}function st(r){return U(r,rt)}function at(r){const a=r.charCodeAt(0);return a>=48&&a<=57||a>=65&&a<=70||a>=97&&a<=102}function lt(r){return U(r,at)}function Pe(r){let a="",u="";for(;a=st(r);)u+=a;return u}function it(r){let a="";for(;;){const u=r.currentChar();if(u==="{"||u==="}"||u==="@"||u==="|"||!u)break;if(u===x||u===$)if(B(r))a+=u,r.next();else{if(Y(r))break;a+=u,r.next()}else a+=u,r.next()}return a}function ct(r){g(r);let a="",u="";for(;a=nt(r);)u+=a;return r.currentChar()===q&&C(k.UNTERMINATED_CLOSING_BRACE,l(),0),u}function ot(r){g(r);let a="";return r.currentChar()==="-"?(r.next(),a+=`-${Pe(r)}`):a+=Pe(r),r.currentChar()===q&&C(k.UNTERMINATED_CLOSING_BRACE,l(),0),a}function ut(r){return r!==we&&r!==$}function ft(r){g(r),y(r,"'");let a="",u="";for(;a=U(r,ut);)a==="\\"?u+=dt(r):u+=a;const T=r.currentChar();return T===$||T===q?(C(k.UNTERMINATED_SINGLE_QUOTE_IN_PLACEHOLDER,l(),0),T===$&&(r.next(),y(r,"'")),u):(y(r,"'"),u)}function dt(r){const a=r.currentChar();switch(a){case"\\":case"'":return r.next(),`\\${a}`;case"u":return De(r,a,4);case"U":return De(r,a,6);default:return C(k.UNKNOWN_ESCAPE_SEQUENCE,l(),0,a),""}}function De(r,a,u){y(r,a);let T="";for(let M=0;M<u;M++){const w=lt(r);if(!w){C(k.INVALID_UNICODE_ESCAPE_SEQUENCE,l(),0,`\\${a}${T}${r.currentChar()}`);break}T+=w}return`\\${a}${T}`}function mt(r){return r!=="{"&&r!=="}"&&r!==x&&r!==$}function _t(r){g(r);let a="",u="";for(;a=U(r,mt);)u+=a;return u}function Et(r){let a="",u="";for(;a=et(r);)u+=a;return u}function Lt(r){const a=u=>{const T=r.currentChar();return T==="{"||T==="@"||T==="|"||T==="("||T===")"||!T||T===x?u:(u+=T,r.next(),a(u))};return a("")}function de(r){g(r);const a=y(r,"|");return g(r),a}function me(r,a){let u=null;switch(r.currentChar()){case"{":return a.braceNest>=1&&C(k.NOT_ALLOW_NEST_PLACEHOLDER,l(),0),r.next(),u=N(a,2,"{"),g(r),a.braceNest++,u;case"}":return a.braceNest>0&&a.currentType===2&&C(k.EMPTY_PLACEHOLDER,l(),0),r.next(),u=N(a,3,"}"),a.braceNest--,a.braceNest>0&&g(r),a.inLinked&&a.braceNest===0&&(a.inLinked=!1),u;case"@":return a.braceNest>0&&C(k.UNTERMINATED_CLOSING_BRACE,l(),0),u=ce(r,a)||A(a),a.braceNest=0,u;default:{let M=!0,w=!0,X=!0;if(Y(r))return a.braceNest>0&&C(k.UNTERMINATED_CLOSING_BRACE,l(),0),u=N(a,1,de(r)),a.braceNest=0,a.inLinked=!1,u;if(a.braceNest>0&&(a.currentType===4||a.currentType===5||a.currentType===6))return C(k.UNTERMINATED_CLOSING_BRACE,l(),0),a.braceNest=0,_e(r,a);if(M=E(r,a))return u=N(a,4,ct(r)),g(r),u;if(w=o(r,a))return u=N(a,5,ot(r)),g(r),u;if(X=h(r,a))return u=N(a,6,ft(r)),g(r),u;if(!M&&!w&&!X)return u=N(a,12,_t(r)),C(k.INVALID_TOKEN_IN_PLACEHOLDER,l(),0,u.value),g(r),u;break}}return u}function ce(r,a){const{currentType:u}=a;let T=null;const M=r.currentChar();switch((u===7||u===8||u===11||u===9)&&(M===$||M===x)&&C(k.INVALID_LINKED_FORMAT,l(),0),M){case"@":return r.next(),T=N(a,7,"@"),a.inLinked=!0,T;case".":return g(r),r.next(),N(a,8,".");case":":return g(r),r.next(),N(a,9,":");default:return Y(r)?(T=N(a,1,de(r)),a.braceNest=0,a.inLinked=!1,T):p(r,a)||D(r,a)?(g(r),ce(r,a)):b(r,a)?(g(r),N(a,11,Et(r))):v(r,a)?(g(r),M==="{"?me(r,a)||T:N(a,10,Lt(r))):(u===7&&C(k.INVALID_LINKED_FORMAT,l(),0),a.braceNest=0,a.inLinked=!1,_e(r,a))}}function _e(r,a){let u={type:13};if(a.braceNest>0)return me(r,a)||A(a);if(a.inLinked)return ce(r,a)||A(a);switch(r.currentChar()){case"{":return me(r,a)||A(a);case"}":return C(k.UNBALANCED_CLOSING_BRACE,l(),0),r.next(),N(a,3,"}");case"@":return ce(r,a)||A(a);default:{if(Y(r))return u=N(a,1,de(r)),a.braceNest=0,a.inLinked=!1,u;if(B(r))return N(a,0,it(r));break}}return u}function ht(){const{currentType:r,offset:a,startLoc:u,endLoc:T}=d;return d.lastType=r,d.lastOffset=a,d.lastStartLoc=u,d.lastEndLoc=T,d.offset=c(),d.startLoc=l(),s.currentChar()===q?N(d,13):_e(s,d)}return{nextToken:ht,currentOffset:c,currentPosition:l,context:L}}const Ut="parser",Wt=/(?:\\\\|\\'|\\u([0-9a-fA-F]{4})|\\U([0-9a-fA-F]{6}))/g;function $t(e,t,n){switch(e){case"\\\\":return"\\";case"\\'":return"'";default:{const s=parseInt(t||n,16);return s<=55295||s>=57344?String.fromCodePoint(s):"�"}}}function Kt(e={}){const t=e.location!==!1,{onError:n}=e;function s(i,f,E,o,...h){const p=i.currentPosition();if(p.offset+=o,p.column+=o,n){const b=t?pe(E,p):null,D=Oe(f,b,{domain:Ut,args:h});n(D)}}function c(i,f,E){const o={type:i};return t&&(o.start=f,o.end=f,o.loc={start:E,end:E}),o}function l(i,f,E,o){t&&(i.end=f,i.loc&&(i.loc.end=E))}function m(i,f){const E=i.context(),o=c(3,E.offset,E.startLoc);return o.value=f,l(o,i.currentOffset(),i.currentPosition()),o}function _(i,f){const E=i.context(),{lastOffset:o,lastStartLoc:h}=E,p=c(5,o,h);return p.index=parseInt(f,10),i.nextToken(),l(p,i.currentOffset(),i.currentPosition()),p}function d(i,f){const E=i.context(),{lastOffset:o,lastStartLoc:h}=E,p=c(4,o,h);return p.key=f,i.nextToken(),l(p,i.currentOffset(),i.currentPosition()),p}function L(i,f){const E=i.context(),{lastOffset:o,lastStartLoc:h}=E,p=c(9,o,h);return p.value=f.replace(Wt,$t),i.nextToken(),l(p,i.currentOffset(),i.currentPosition()),p}function I(i){const f=i.nextToken(),E=i.context(),{lastOffset:o,lastStartLoc:h}=E,p=c(8,o,h);return f.type!==11?(s(i,k.UNEXPECTED_EMPTY_LINKED_MODIFIER,E.lastStartLoc,0),p.value="",l(p,o,h),{nextConsumeToken:f,node:p}):(f.value==null&&s(i,k.UNEXPECTED_LEXICAL_ANALYSIS,E.lastStartLoc,0,j(f)),p.value=f.value||"",l(p,i.currentOffset(),i.currentPosition()),{node:p})}function C(i,f){const E=i.context(),o=c(7,E.offset,E.startLoc);return o.value=f,l(o,i.currentOffset(),i.currentPosition()),o}function N(i){const f=i.context(),E=c(6,f.offset,f.startLoc);let o=i.nextToken();if(o.type===8){const h=I(i);E.modifier=h.node,o=h.nextConsumeToken||i.nextToken()}switch(o.type!==9&&s(i,k.UNEXPECTED_LEXICAL_ANALYSIS,f.lastStartLoc,0,j(o)),o=i.nextToken(),o.type===2&&(o=i.nextToken()),o.type){case 10:o.value==null&&s(i,k.UNEXPECTED_LEXICAL_ANALYSIS,f.lastStartLoc,0,j(o)),E.key=C(i,o.value||"");break;case 4:o.value==null&&s(i,k.UNEXPECTED_LEXICAL_ANALYSIS,f.lastStartLoc,0,j(o)),E.key=d(i,o.value||"");break;case 5:o.value==null&&s(i,k.UNEXPECTED_LEXICAL_ANALYSIS,f.lastStartLoc,0,j(o)),E.key=_(i,o.value||"");break;case 6:o.value==null&&s(i,k.UNEXPECTED_LEXICAL_ANALYSIS,f.lastStartLoc,0,j(o)),E.key=L(i,o.value||"");break;default:{s(i,k.UNEXPECTED_EMPTY_LINKED_KEY,f.lastStartLoc,0);const h=i.context(),p=c(7,h.offset,h.startLoc);return p.value="",l(p,h.offset,h.startLoc),E.key=p,l(E,h.offset,h.startLoc),{nextConsumeToken:o,node:E}}}return l(E,i.currentOffset(),i.currentPosition()),{node:E}}function A(i){const f=i.context(),E=f.currentType===1?i.currentOffset():f.offset,o=f.currentType===1?f.endLoc:f.startLoc,h=c(2,E,o);h.items=[];let p=null;do{const v=p||i.nextToken();switch(p=null,v.type){case 0:v.value==null&&s(i,k.UNEXPECTED_LEXICAL_ANALYSIS,f.lastStartLoc,0,j(v)),h.items.push(m(i,v.value||""));break;case 5:v.value==null&&s(i,k.UNEXPECTED_LEXICAL_ANALYSIS,f.lastStartLoc,0,j(v)),h.items.push(_(i,v.value||""));break;case 4:v.value==null&&s(i,k.UNEXPECTED_LEXICAL_ANALYSIS,f.lastStartLoc,0,j(v)),h.items.push(d(i,v.value||""));break;case 6:v.value==null&&s(i,k.UNEXPECTED_LEXICAL_ANALYSIS,f.lastStartLoc,0,j(v)),h.items.push(L(i,v.value||""));break;case 7:{const Y=N(i);h.items.push(Y.node),p=Y.nextConsumeToken||null;break}}}while(f.currentType!==13&&f.currentType!==1);const b=f.currentType===1?f.lastOffset:i.currentOffset(),D=f.currentType===1?f.lastEndLoc:i.currentPosition();return l(h,b,D),h}function y(i,f,E,o){const h=i.context();let p=o.items.length===0;const b=c(1,f,E);b.cases=[],b.cases.push(o);do{const D=A(i);p||(p=D.items.length===0),b.cases.push(D)}while(h.currentType!==13);return p&&s(i,k.MUST_HAVE_MESSAGES_IN_PLURAL,E,0),l(b,i.currentOffset(),i.currentPosition()),b}function S(i){const f=i.context(),{offset:E,startLoc:o}=f,h=A(i);return f.currentType===13?h:y(i,E,o,h)}function g(i){const f=Ft(i,Z({},e)),E=f.context(),o=c(0,E.offset,E.startLoc);return t&&o.loc&&(o.loc.source=i),o.body=S(f),e.onCacheKey&&(o.cacheKey=e.onCacheKey(i)),E.currentType!==13&&s(f,k.UNEXPECTED_LEXICAL_ANALYSIS,E.lastStartLoc,0,i[E.offset]||""),l(o,f.currentOffset(),f.currentPosition()),o}return{parse:g}}function j(e){if(e.type===13)return"EOF";const t=(e.value||"").replace(/\r?\n/gu,"\\n");return t.length>10?t.slice(0,9)+"…":t}function Vt(e,t={}){const n={ast:e,helpers:new Set};return{context:()=>n,helper:l=>(n.helpers.add(l),l)}}function Fe(e,t){for(let n=0;n<e.length;n++)Ie(e[n],t)}function Ie(e,t){switch(e.type){case 1:Fe(e.cases,t),t.helper("plural");break;case 2:Fe(e.items,t);break;case 6:{Ie(e.key,t),t.helper("linked"),t.helper("type");break}case 5:t.helper("interpolate"),t.helper("list");break;case 4:t.helper("interpolate"),t.helper("named");break}}function Yt(e,t={}){const n=Vt(e);n.helper("normalize"),e.body&&Ie(e.body,n);const s=n.context();e.helpers=Array.from(s.helpers)}function Xt(e){const t=e.body;return t.type===2?Ue(t):t.cases.forEach(n=>Ue(n)),e}function Ue(e){if(e.items.length===1){const t=e.items[0];(t.type===3||t.type===9)&&(e.static=t.value,delete t.value)}else{const t=[];for(let n=0;n<e.items.length;n++){const s=e.items[n];if(!(s.type===3||s.type===9)||s.value==null)break;t.push(s.value)}if(t.length===e.items.length){e.static=Se(t);for(let n=0;n<e.items.length;n++){const s=e.items[n];(s.type===3||s.type===9)&&delete s.value}}}}function ne(e){switch(e.t=e.type,e.type){case 0:{const t=e;ne(t.body),t.b=t.body,delete t.body;break}case 1:{const t=e,n=t.cases;for(let s=0;s<n.length;s++)ne(n[s]);t.c=n,delete t.cases;break}case 2:{const t=e,n=t.items;for(let s=0;s<n.length;s++)ne(n[s]);t.i=n,delete t.items,t.static&&(t.s=t.static,delete t.static);break}case 3:case 9:case 8:case 7:{const t=e;t.value&&(t.v=t.value,delete t.value);break}case 6:{const t=e;ne(t.key),t.k=t.key,delete t.key,t.modifier&&(ne(t.modifier),t.m=t.modifier,delete t.modifier);break}case 5:{const t=e;t.i=t.index,delete t.index;break}case 4:{const t=e;t.k=t.key,delete t.key;break}}delete e.type}function Gt(e,t){const{filename:n,breakLineCode:s,needIndent:c}=t,l=t.location!==!1,m={filename:n,code:"",column:1,line:1,offset:0,map:void 0,breakLineCode:s,needIndent:c,indentLevel:0};l&&e.loc&&(m.source=e.loc.source);const _=()=>m;function d(S,g){m.code+=S}function L(S,g=!0){const i=g?s:"";d(c?i+" ".repeat(S):i)}function I(S=!0){const g=++m.indentLevel;S&&L(g)}function C(S=!0){const g=--m.indentLevel;S&&L(g)}function N(){L(m.indentLevel)}return{context:_,push:d,indent:I,deindent:C,newline:N,helper:S=>`_${S}`,needIndent:()=>m.needIndent}}function Ht(e,t){const{helper:n}=e;e.push(`${n("linked")}(`),re(e,t.key),t.modifier?(e.push(", "),re(e,t.modifier),e.push(", _type")):e.push(", undefined, _type"),e.push(")")}function jt(e,t){const{helper:n,needIndent:s}=e;e.push(`${n("normalize")}([`),e.indent(s());const c=t.items.length;for(let l=0;l<c&&(re(e,t.items[l]),l!==c-1);l++)e.push(", ");e.deindent(s()),e.push("])")}function Bt(e,t){const{helper:n,needIndent:s}=e;if(t.cases.length>1){e.push(`${n("plural")}([`),e.indent(s());const c=t.cases.length;for(let l=0;l<c&&(re(e,t.cases[l]),l!==c-1);l++)e.push(", ");e.deindent(s()),e.push("])")}}function xt(e,t){t.body?re(e,t.body):e.push("null")}function re(e,t){const{helper:n}=e;switch(t.type){case 0:xt(e,t);break;case 1:Bt(e,t);break;case 2:jt(e,t);break;case 6:Ht(e,t);break;case 8:e.push(JSON.stringify(t.value),t);break;case 7:e.push(JSON.stringify(t.value),t);break;case 5:e.push(`${n("interpolate")}(${n("list")}(${t.index}))`,t);break;case 4:e.push(`${n("interpolate")}(${n("named")}(${JSON.stringify(t.key)}))`,t);break;case 9:e.push(JSON.stringify(t.value),t);break;case 3:e.push(JSON.stringify(t.value),t);break}}const Jt=(e,t={})=>{const n=O(t.mode)?t.mode:"normal",s=O(t.filename)?t.filename:"message.intl";t.sourceMap;const c=t.breakLineCode!=null?t.breakLineCode:n==="arrow"?";":`
|
|
11
|
+
`,l=t.needIndent?t.needIndent:n!=="arrow",m=e.helpers||[],_=Gt(e,{filename:s,breakLineCode:c,needIndent:l});_.push(n==="normal"?"function __msg__ (ctx) {":"(ctx) => {"),_.indent(l),m.length>0&&(_.push(`const { ${Se(m.map(I=>`${I}: _${I}`),", ")} } = ctx`),_.newline()),_.push("return "),re(_,e),_.deindent(l),_.push("}"),delete e.helpers;const{code:d,map:L}=_.context();return{ast:e,code:d,map:L?L.toJSON():void 0}};function Qt(e,t={}){const n=Z({},t),s=!!n.jit,c=!!n.minify,l=n.optimize==null?!0:n.optimize,_=Kt(n).parse(e);return s?(l&&Xt(_),c&&ne(_),{ast:_,code:""}):(Yt(_,n),Jt(_,n))}/*!
|
|
12
|
+
* core-base v10.0.5
|
|
13
|
+
* (c) 2024 kazuya kawaguchi
|
|
14
|
+
* Released under the MIT License.
|
|
15
|
+
*/function qt(){typeof __INTLIFY_PROD_DEVTOOLS__!="boolean"&&(Ct().__INTLIFY_PROD_DEVTOOLS__=!1)}function Ee(e){return n=>Zt(n,e)}function Zt(e,t){const n=en(t);if(n==null)throw se(0);if(be(n)===1){const l=nn(n);return e.plural(l.reduce((m,_)=>[...m,We(e,_)],[]))}else return We(e,n)}const zt=["b","body"];function en(e){return z(e,zt)}const tn=["c","cases"];function nn(e){return z(e,tn,[])}function We(e,t){const n=sn(t);if(n!=null)return e.type==="text"?n:e.normalize([n]);{const s=ln(t).reduce((c,l)=>[...c,Ne(e,l)],[]);return e.normalize(s)}}const rn=["s","static"];function sn(e){return z(e,rn)}const an=["i","items"];function ln(e){return z(e,an,[])}function Ne(e,t){const n=be(t);switch(n){case 3:return ue(t,n);case 9:return ue(t,n);case 4:{const s=t;if(te(s,"k")&&s.k)return e.interpolate(e.named(s.k));if(te(s,"key")&&s.key)return e.interpolate(e.named(s.key));throw se(n)}case 5:{const s=t;if(te(s,"i")&&K(s.i))return e.interpolate(e.list(s.i));if(te(s,"index")&&K(s.index))return e.interpolate(e.list(s.index));throw se(n)}case 6:{const s=t,c=fn(s),l=mn(s);return e.linked(Ne(e,l),c?Ne(e,c):void 0,e.type)}case 7:return ue(t,n);case 8:return ue(t,n);default:throw new Error(`unhandled node on format message part: ${n}`)}}const cn=["t","type"];function be(e){return z(e,cn)}const on=["v","value"];function ue(e,t){const n=z(e,on);if(n)return n;throw se(t)}const un=["m","modifier"];function fn(e){return z(e,un)}const dn=["k","key"];function mn(e){const t=z(e,dn);if(t)return t;throw se(6)}function z(e,t,n){for(let s=0;s<t.length;s++){const c=t[s];if(te(e,c)&&e[c]!=null)return e[c]}return n}function se(e){return new Error(`unhandled node type: ${e}`)}const _n=e=>e;let fe=W();function ae(e){return R(e)&&be(e)===0&&(te(e,"b")||te(e,"body"))}function En(e,t={}){let n=!1;const s=t.onError||kt;return t.onError=c=>{n=!0,s(c)},{...Qt(e,t),detectError:n}}function er(e,t){if(O(e)){V(t.warnHtmlMessage)&&t.warnHtmlMessage;const s=(t.onCacheKey||_n)(e),c=fe[s];if(c)return c;const{ast:l,detectError:m}=En(e,{...t,location:!1,jit:!0}),_=Ee(l);return m?_:fe[s]=_}else{const n=e.cacheKey;if(n){const s=fe[n];return s||(fe[n]=Ee(e))}else return Ee(e)}}let le=null;function tr(e){le=e}function Ln(e,t,n){le&&le.emit("i18n:init",{timestamp:Date.now(),i18n:e,version:t,meta:n})}const hn=pn("function:translate");function pn(e){return t=>le&&le.emit(e,t)}const J={INVALID_ARGUMENT:yt,INVALID_DATE_ARGUMENT:18,INVALID_ISO_DATE_ARGUMENT:19,NOT_SUPPORT_LOCALE_PROMISE_VALUE:21,NOT_SUPPORT_LOCALE_ASYNC_FUNCTION:22,NOT_SUPPORT_LOCALE_TYPE:23},nr=24;function Q(e){return Oe(e,null,void 0)}function Ae(e,t){return t.locale!=null?$e(t.locale):$e(e.locale)}let Le;function $e(e){if(O(e))return e;if(F(e)){if(e.resolvedOnce&&Le!=null)return Le;if(e.constructor.name==="Function"){const t=e();if(Ot(t))throw Q(J.NOT_SUPPORT_LOCALE_PROMISE_VALUE);return Le=t}else throw Q(J.NOT_SUPPORT_LOCALE_ASYNC_FUNCTION)}else throw Q(J.NOT_SUPPORT_LOCALE_TYPE)}function Nn(e,t,n){return[...new Set([n,...H(t)?t:R(t)?Object.keys(t):O(t)?[t]:[n]])]}function rr(e,t,n){const s=O(n)?n:Te,c=e;c.__localeChainCache||(c.__localeChainCache=new Map);let l=c.__localeChainCache.get(s);if(!l){l=[];let m=[n];for(;H(m);)m=Ke(l,m,t);const _=H(t)||!P(t)?t:t.default?t.default:null;m=O(_)?[_]:_,H(m)&&Ke(l,m,!1),c.__localeChainCache.set(s,l)}return l}function Ke(e,t,n){let s=!0;for(let c=0;c<t.length&&V(s);c++){const l=t[c];O(l)&&(s=Tn(e,t[c],n))}return s}function Tn(e,t,n){let s;const c=t.split("-");do{const l=c.join("-");s=gn(e,l,n),c.splice(-1,1)}while(c.length&&s===!0);return s}function gn(e,t,n){let s=!1;if(!e.includes(t)&&(s=!0,t)){s=t[t.length-1]!=="!";const c=t.replace(/!/g,"");e.push(c),(H(n)||P(n))&&n[c]&&(s=n[c])}return s}const ee=[];ee[0]={w:[0],i:[3,0],"[":[4],o:[7]};ee[1]={w:[1],".":[2],"[":[4],o:[7]};ee[2]={w:[2],i:[3,0],0:[3,0]};ee[3]={i:[3,0],0:[3,0],w:[1,1],".":[2,1],"[":[4,1],o:[7,1]};ee[4]={"'":[5,0],'"':[6,0],"[":[4,2],"]":[1,3],o:8,l:[4,0]};ee[5]={"'":[4,0],o:8,l:[5,0]};ee[6]={'"':[4,0],o:8,l:[6,0]};const Cn=/^\s?(?:true|false|-?[\d.]+|'[^']*'|"[^"]*")\s?$/;function Sn(e){return Cn.test(e)}function On(e){const t=e.charCodeAt(0),n=e.charCodeAt(e.length-1);return t===n&&(t===34||t===39)?e.slice(1,-1):e}function In(e){if(e==null)return"o";switch(e.charCodeAt(0)){case 91:case 93:case 46:case 34:case 39:return e;case 95:case 36:case 45:return"i";case 9:case 10:case 13:case 160:case 65279:case 8232:case 8233:return"w"}return"i"}function bn(e){const t=e.trim();return e.charAt(0)==="0"&&isNaN(parseInt(e))?!1:Sn(t)?On(t):"*"+t}function An(e){const t=[];let n=-1,s=0,c=0,l,m,_,d,L,I,C;const N=[];N[0]=()=>{m===void 0?m=_:m+=_},N[1]=()=>{m!==void 0&&(t.push(m),m=void 0)},N[2]=()=>{N[0](),c++},N[3]=()=>{if(c>0)c--,s=4,N[0]();else{if(c=0,m===void 0||(m=bn(m),m===!1))return!1;N[1]()}};function A(){const y=e[n+1];if(s===5&&y==="'"||s===6&&y==='"')return n++,_="\\"+y,N[0](),!0}for(;s!==null;)if(n++,l=e[n],!(l==="\\"&&A())){if(d=In(l),C=ee[s],L=C[d]||C.l||8,L===8||(s=L[0],L[1]!==void 0&&(I=N[L[1]],I&&(_=l,I()===!1))))return;if(s===7)return t}}const Ve=new Map;function yn(e,t){return R(e)?e[t]:null}function sr(e,t){if(!R(e))return null;let n=Ve.get(t);if(n||(n=An(t),n&&Ve.set(t,n)),!n)return null;const s=n.length;let c=e,l=0;for(;l<s;){const m=c[n[l]];if(m===void 0||F(c))return null;c=m,l++}return c}const kn="10.0.5",ye=-1,Te="en-US",ar="",Ye=e=>`${e.charAt(0).toLocaleUpperCase()}${e.substr(1)}`;function Pn(){return{upper:(e,t)=>t==="text"&&O(e)?e.toUpperCase():t==="vnode"&&R(e)&&"__v_isVNode"in e?e.children.toUpperCase():e,lower:(e,t)=>t==="text"&&O(e)?e.toLowerCase():t==="vnode"&&R(e)&&"__v_isVNode"in e?e.children.toLowerCase():e,capitalize:(e,t)=>t==="text"&&O(e)?Ye(e):t==="vnode"&&R(e)&&"__v_isVNode"in e?Ye(e.children):e}}let Be;function lr(e){Be=e}let xe;function ir(e){xe=e}let Je;function cr(e){Je=e}let Qe=null;const or=e=>{Qe=e},Dn=()=>Qe;let qe=null;const ur=e=>{qe=e},fr=()=>qe;let Xe=0;function dr(e={}){const t=F(e.onWarn)?e.onWarn:bt,n=O(e.version)?e.version:kn,s=O(e.locale)||F(e.locale)?e.locale:Te,c=F(s)?Te:s,l=H(e.fallbackLocale)||P(e.fallbackLocale)||O(e.fallbackLocale)||e.fallbackLocale===!1?e.fallbackLocale:c,m=P(e.messages)?e.messages:he(c),_=P(e.datetimeFormats)?e.datetimeFormats:he(c),d=P(e.numberFormats)?e.numberFormats:he(c),L=Z(W(),e.modifiers,Pn()),I=e.pluralRules||W(),C=F(e.missing)?e.missing:null,N=V(e.missingWarn)||Re(e.missingWarn)?e.missingWarn:!0,A=V(e.fallbackWarn)||Re(e.fallbackWarn)?e.fallbackWarn:!0,y=!!e.fallbackFormat,S=!!e.unresolving,g=F(e.postTranslation)?e.postTranslation:null,i=P(e.processor)?e.processor:null,f=V(e.warnHtmlMessage)?e.warnHtmlMessage:!0,E=!!e.escapeParameter,o=F(e.messageCompiler)?e.messageCompiler:Be,h=F(e.messageResolver)?e.messageResolver:xe||yn,p=F(e.localeFallbacker)?e.localeFallbacker:Je||Nn,b=R(e.fallbackContext)?e.fallbackContext:void 0,D=e,v=R(D.__datetimeFormatters)?D.__datetimeFormatters:new Map,Y=R(D.__numberFormatters)?D.__numberFormatters:new Map,B=R(D.__meta)?D.__meta:{};Xe++;const U={version:n,cid:Xe,locale:s,fallbackLocale:l,messages:m,modifiers:L,pluralRules:I,missing:C,missingWarn:N,fallbackWarn:A,fallbackFormat:y,unresolving:S,postTranslation:g,processor:i,warnHtmlMessage:f,escapeParameter:E,messageCompiler:o,messageResolver:h,localeFallbacker:p,fallbackContext:b,onWarn:t,__meta:B};return U.datetimeFormats=_,U.numberFormats=d,U.__datetimeFormatters=v,U.__numberFormatters=Y,__INTLIFY_PROD_DEVTOOLS__&&Ln(U,n,B),U}const he=e=>({[e]:W()});function ke(e,t,n,s,c){const{missing:l,onWarn:m}=e;if(l!==null){const _=l(e,n,t,c);return O(_)?_:t}else return t}function mr(e,t,n){const s=e;s.__localeChainCache=new Map,e.localeFallbacker(e,n,t)}function Rn(e,t){return e===t?!1:e.split("-")[0]===t.split("-")[0]}function vn(e,t){const n=t.indexOf(e);if(n===-1)return!1;for(let s=n+1;s<t.length;s++)if(Rn(e,t[s]))return!0;return!1}function _r(e,...t){const{datetimeFormats:n,unresolving:s,fallbackLocale:c,onWarn:l,localeFallbacker:m}=e,{__datetimeFormatters:_}=e,[d,L,I,C]=wn(...t),N=V(I.missingWarn)?I.missingWarn:e.missingWarn;V(I.fallbackWarn)?I.fallbackWarn:e.fallbackWarn;const A=!!I.part,y=Ae(e,I),S=m(e,c,y);if(!O(d)||d==="")return new Intl.DateTimeFormat(y,C).format(L);let g={},i,f=null;const E="datetime format";for(let p=0;p<S.length&&(i=S[p],g=n[i]||{},f=g[d],!P(f));p++)ke(e,d,i,N,E);if(!P(f)||!O(i))return s?ye:d;let o=`${i}__${d}`;ge(C)||(o=`${o}__${JSON.stringify(C)}`);let h=_.get(o);return h||(h=new Intl.DateTimeFormat(i,Z({},f,C)),_.set(o,h)),A?h.formatToParts(L):h.format(L)}const Mn=["localeMatcher","weekday","era","year","month","day","hour","minute","second","timeZoneName","formatMatcher","hour12","timeZone","dateStyle","timeStyle","calendar","dayPeriod","numberingSystem","hourCycle","fractionalSecondDigits"];function wn(...e){const[t,n,s,c]=e,l=W();let m=W(),_;if(O(t)){const d=t.match(/(\d{4}-\d{2}-\d{2})(T|\s)?(.*)/);if(!d)throw Q(J.INVALID_ISO_DATE_ARGUMENT);const L=d[3]?d[3].trim().startsWith("T")?`${d[1].trim()}${d[3].trim()}`:`${d[1].trim()}T${d[3].trim()}`:d[1].trim();_=new Date(L);try{_.toISOString()}catch{throw Q(J.INVALID_ISO_DATE_ARGUMENT)}}else if(Tt(t)){if(isNaN(t.getTime()))throw Q(J.INVALID_DATE_ARGUMENT);_=t}else if(K(t))_=t;else throw Q(J.INVALID_ARGUMENT);return O(n)?l.key=n:P(n)&&Object.keys(n).forEach(d=>{Mn.includes(d)?m[d]=n[d]:l[d]=n[d]}),O(s)?l.locale=s:P(s)&&(m=s),P(c)&&(m=c),[l.key||"",_,l,m]}function Er(e,t,n){const s=e;for(const c in n){const l=`${t}__${c}`;s.__datetimeFormatters.has(l)&&s.__datetimeFormatters.delete(l)}}function Lr(e,...t){const{numberFormats:n,unresolving:s,fallbackLocale:c,onWarn:l,localeFallbacker:m}=e,{__numberFormatters:_}=e,[d,L,I,C]=Un(...t),N=V(I.missingWarn)?I.missingWarn:e.missingWarn;V(I.fallbackWarn)?I.fallbackWarn:e.fallbackWarn;const A=!!I.part,y=Ae(e,I),S=m(e,c,y);if(!O(d)||d==="")return new Intl.NumberFormat(y,C).format(L);let g={},i,f=null;const E="number format";for(let p=0;p<S.length&&(i=S[p],g=n[i]||{},f=g[d],!P(f));p++)ke(e,d,i,N,E);if(!P(f)||!O(i))return s?ye:d;let o=`${i}__${d}`;ge(C)||(o=`${o}__${JSON.stringify(C)}`);let h=_.get(o);return h||(h=new Intl.NumberFormat(i,Z({},f,C)),_.set(o,h)),A?h.formatToParts(L):h.format(L)}const Fn=["localeMatcher","style","currency","currencyDisplay","currencySign","useGrouping","minimumIntegerDigits","minimumFractionDigits","maximumFractionDigits","minimumSignificantDigits","maximumSignificantDigits","compactDisplay","notation","signDisplay","unit","unitDisplay","roundingMode","roundingPriority","roundingIncrement","trailingZeroDisplay"];function Un(...e){const[t,n,s,c]=e,l=W();let m=W();if(!K(t))throw Q(J.INVALID_ARGUMENT);const _=t;return O(n)?l.key=n:P(n)&&Object.keys(n).forEach(d=>{Fn.includes(d)?m[d]=n[d]:l[d]=n[d]}),O(s)?l.locale=s:P(s)&&(m=s),P(c)&&(m=c),[l.key||"",_,l,m]}function hr(e,t,n){const s=e;for(const c in n){const l=`${t}__${c}`;s.__numberFormatters.has(l)&&s.__numberFormatters.delete(l)}}const Wn=e=>e,$n=e=>"",Kn="text",Vn=e=>e.length===0?"":Se(e),Yn=It;function Ge(e,t){return e=Math.abs(e),t===2?e?e>1?1:0:1:e?Math.min(e,2):0}function Xn(e){const t=K(e.pluralIndex)?e.pluralIndex:-1;return e.named&&(K(e.named.count)||K(e.named.n))?K(e.named.count)?e.named.count:K(e.named.n)?e.named.n:t:t}function Gn(e,t){t.count||(t.count=e),t.n||(t.n=e)}function Hn(e={}){const t=e.locale,n=Xn(e),s=R(e.pluralRules)&&O(t)&&F(e.pluralRules[t])?e.pluralRules[t]:Ge,c=R(e.pluralRules)&&O(t)&&F(e.pluralRules[t])?Ge:void 0,l=i=>i[s(n,i.length,c)],m=e.list||[],_=i=>m[i],d=e.named||W();K(e.pluralIndex)&&Gn(n,d);const L=i=>d[i];function I(i,f){const E=F(e.messages)?e.messages(i,!!f):R(e.messages)?e.messages[i]:!1;return E||(e.parent?e.parent.message(i):$n)}const C=i=>e.modifiers?e.modifiers[i]:Wn,N=P(e.processor)&&F(e.processor.normalize)?e.processor.normalize:Vn,A=P(e.processor)&&F(e.processor.interpolate)?e.processor.interpolate:Yn,y=P(e.processor)&&O(e.processor.type)?e.processor.type:Kn,g={list:_,named:L,plural:l,linked:(i,...f)=>{const[E,o]=f;let h="text",p="";f.length===1?R(E)?(p=E.modifier||p,h=E.type||h):O(E)&&(p=E||p):f.length===2&&(O(E)&&(p=E||p),O(o)&&(h=o||h));const b=I(i,!0)(g),D=h==="vnode"&&H(b)&&p?b[0]:b;return p?C(p)(D,h):D},message:I,type:y,interpolate:A,normalize:N,values:Z(W(),m,d)};return g}const He=()=>"",G=e=>F(e);function pr(e,...t){const{fallbackFormat:n,postTranslation:s,unresolving:c,messageCompiler:l,fallbackLocale:m,messages:_}=e,[d,L]=xn(...t),I=V(L.missingWarn)?L.missingWarn:e.missingWarn,C=V(L.fallbackWarn)?L.fallbackWarn:e.fallbackWarn,N=V(L.escapeParameter)?L.escapeParameter:e.escapeParameter,A=!!L.resolvedMessage,y=O(L.default)||V(L.default)?V(L.default)?l?d:()=>d:L.default:n?l?d:()=>d:null,S=n||y!=null&&(O(y)||F(y)),g=Ae(e,L);N&&jn(L);let[i,f,E]=A?[d,g,_[g]||W()]:Ze(e,d,g,m,C,I),o=i,h=d;if(!A&&!(O(o)||ae(o)||G(o))&&S&&(o=y,h=o),!A&&(!(O(o)||ae(o)||G(o))||!O(f)))return c?ye:d;let p=!1;const b=()=>{p=!0},D=G(o)?o:ze(e,d,f,o,h,b);if(p)return o;const v=Qn(e,f,E,L),Y=Hn(v),B=Bn(e,D,Y),U=s?s(B,d):B;if(__INTLIFY_PROD_DEVTOOLS__){const ie={timestamp:Date.now(),key:O(d)?d:G(o)?o.key:"",locale:f||(G(o)?o.locale:""),format:O(o)?o:G(o)?o.source:"",message:U};ie.meta=Z({},e.__meta,Dn()||{}),hn(ie)}return U}function jn(e){H(e.list)?e.list=e.list.map(t=>O(t)?Me(t):t):R(e.named)&&Object.keys(e.named).forEach(t=>{O(e.named[t])&&(e.named[t]=Me(e.named[t]))})}function Ze(e,t,n,s,c,l){const{messages:m,onWarn:_,messageResolver:d,localeFallbacker:L}=e,I=L(e,s,n);let C=W(),N,A=null;const y="translate";for(let S=0;S<I.length&&(N=I[S],C=m[N]||W(),(A=d(C,t))===null&&(A=C[t]),!(O(A)||ae(A)||G(A)));S++)if(!vn(N,I)){const g=ke(e,t,N,l,y);g!==t&&(A=g)}return[A,N,C]}function ze(e,t,n,s,c,l){const{messageCompiler:m,warnHtmlMessage:_}=e;if(G(s)){const L=s;return L.locale=L.locale||n,L.key=L.key||t,L}if(m==null){const L=()=>s;return L.locale=n,L.key=t,L}const d=m(s,Jn(e,n,c,s,_,l));return d.locale=n,d.key=t,d.source=s,d}function Bn(e,t,n){return t(n)}function xn(...e){const[t,n,s]=e,c=W();if(!O(t)&&!K(t)&&!G(t)&&!ae(t))throw Q(J.INVALID_ARGUMENT);const l=K(t)?String(t):(G(t),t);return K(n)?c.plural=n:O(n)?c.default=n:P(n)&&!ge(n)?c.named=n:H(n)&&(c.list=n),K(s)?c.plural=s:O(s)?c.default=s:P(s)&&Z(c,s),[l,c]}function Jn(e,t,n,s,c,l){return{locale:t,key:n,warnHtmlMessage:c,onError:m=>{throw l&&l(m),m},onCacheKey:m=>pt(t,n,m)}}function Qn(e,t,n,s){const{modifiers:c,pluralRules:l,messageResolver:m,fallbackLocale:_,fallbackWarn:d,missingWarn:L,fallbackContext:I}=e,N={locale:t,modifiers:c,pluralRules:l,messages:(A,y)=>{let S=m(n,A);if(S==null&&(I||y)){const[,,g]=Ze(I||e,A,t,_,d,L);S=m(g,A)}if(O(S)||ae(S)){let g=!1;const f=ze(e,A,t,S,A,()=>{g=!0});return g?He:f}else return G(S)?S:He}};return e.processor&&(N.processor=e.processor),s.list&&(N.list=s.list),s.named&&(N.named=s.named),K(s.plural)&&(N.pluralIndex=s.plural),N}qt();export{Lr as A,Er as B,nr as C,Te as D,hr as E,Zn as F,Fn as G,Mn as H,ur as I,ge as J,Ct as K,lr as L,ar as M,ye as N,er as O,tr as P,ir as Q,sr as R,cr as S,qn as a,O as b,H as c,P as d,W as e,zn as f,R as g,te as h,V as i,Re as j,F as k,dr as l,Oe as m,fr as n,K as o,xn as p,Z as q,ae as r,or as s,pr as t,mr as u,G as v,rr as w,wn as x,_r as y,Un as z};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
var pe=s=>{throw TypeError(s)};var Vt=(s,t,e)=>t.has(s)||pe("Cannot "+e);var r=(s,t,e)=>(Vt(s,t,"read from private field"),e?e.call(s):t.get(s)),l=(s,t,e)=>t.has(s)?pe("Cannot add the same private member more than once"):t instanceof WeakSet?t.add(s):t.set(s,e),h=(s,t,e,i)=>(Vt(s,t,"write to private field"),i?i.call(s,e):t.set(s,e),e),p=(s,t,e)=>(Vt(s,t,"access private method"),e);var _t=(s,t,e,i)=>({set _(n){h(s,t,n,e)},get _(){return r(s,t,i)}});import{i as Ie,u as Ze,h as ts,a as es,r as ss,n as is,c as Te,s as je,w as gt,o as xe,t as Ke}from"./@vue.BSUQIjRR.0.0.39.js";var It=class{constructor(){this.listeners=new Set,this.subscribe=this.subscribe.bind(this)}subscribe(s){return this.listeners.add(s),this.onSubscribe(),()=>{this.listeners.delete(s),this.onUnsubscribe()}}hasListeners(){return this.listeners.size>0}onSubscribe(){}onUnsubscribe(){}},pt=typeof window>"u"||"Deno"in globalThis;function H(){}function rs(s,t){return typeof s=="function"?s(t):s}function Wt(s){return typeof s=="number"&&s>=0&&s!==1/0}function Le(s,t){return Math.max(s+(t||0)-Date.now(),0)}function Ot(s,t){return typeof s=="function"?s(t):s}function G(s,t){return typeof s=="function"?s(t):s}function me(s,t){const{type:e="all",exact:i,fetchStatus:n,predicate:a,queryKey:o,stale:u}=s;if(o){if(i){if(t.queryHash!==le(o,t.options))return!1}else if(!jt(t.queryKey,o))return!1}if(e!=="all"){const y=t.isActive();if(e==="active"&&!y||e==="inactive"&&y)return!1}return!(typeof u=="boolean"&&t.isStale()!==u||n&&n!==t.state.fetchStatus||a&&!a(t))}function ve(s,t){const{exact:e,status:i,predicate:n,mutationKey:a}=s;if(a){if(!t.options.mutationKey)return!1;if(e){if(mt(t.options.mutationKey)!==mt(a))return!1}else if(!jt(t.options.mutationKey,a))return!1}return!(i&&t.state.status!==i||n&&!n(t))}function le(s,t){return((t==null?void 0:t.queryKeyHashFn)||mt)(s)}function mt(s){return JSON.stringify(s,(t,e)=>Yt(e)?Object.keys(e).sort().reduce((i,n)=>(i[n]=e[n],i),{}):e)}function jt(s,t){return s===t?!0:typeof s!=typeof t?!1:s&&t&&typeof s=="object"&&typeof t=="object"?!Object.keys(t).some(e=>!jt(s[e],t[e])):!1}function ke(s,t){if(s===t)return s;const e=be(s)&&be(t);if(e||Yt(s)&&Yt(t)){const i=e?s:Object.keys(s),n=i.length,a=e?t:Object.keys(t),o=a.length,u=e?[]:{};let y=0;for(let w=0;w<o;w++){const f=e?w:a[w];(!e&&i.includes(f)||e)&&s[f]===void 0&&t[f]===void 0?(u[f]=void 0,y++):(u[f]=ke(s[f],t[f]),u[f]===s[f]&&s[f]!==void 0&&y++)}return n===o&&y===n?s:u}return t}function $t(s,t){if(!t||Object.keys(s).length!==Object.keys(t).length)return!1;for(const e in s)if(s[e]!==t[e])return!1;return!0}function be(s){return Array.isArray(s)&&s.length===Object.keys(s).length}function Yt(s){if(!ge(s))return!1;const t=s.constructor;if(t===void 0)return!0;const e=t.prototype;return!(!ge(e)||!e.hasOwnProperty("isPrototypeOf")||Object.getPrototypeOf(s)!==Object.prototype)}function ge(s){return Object.prototype.toString.call(s)==="[object Object]"}function ns(s){return new Promise(t=>{setTimeout(t,s)})}function Jt(s,t,e){return typeof e.structuralSharing=="function"?e.structuralSharing(s,t):e.structuralSharing!==!1?ke(s,t):t}function as(s,t,e=0){const i=[...s,t];return e&&i.length>e?i.slice(1):i}function us(s,t,e=0){const i=[t,...s];return e&&i.length>e?i.slice(0,-1):i}var fe=Symbol();function He(s,t){return!s.queryFn&&(t!=null&&t.initialPromise)?()=>t.initialPromise:!s.queryFn||s.queryFn===fe?()=>Promise.reject(new Error(`Missing queryFn: '${s.queryHash}'`)):s.queryFn}var ot,Z,Ct,Se,os=(Se=class extends It{constructor(){super();l(this,ot);l(this,Z);l(this,Ct);h(this,Ct,t=>{if(!pt&&window.addEventListener){const e=()=>t();return window.addEventListener("visibilitychange",e,!1),()=>{window.removeEventListener("visibilitychange",e)}}})}onSubscribe(){r(this,Z)||this.setEventListener(r(this,Ct))}onUnsubscribe(){var t;this.hasListeners()||((t=r(this,Z))==null||t.call(this),h(this,Z,void 0))}setEventListener(t){var e;h(this,Ct,t),(e=r(this,Z))==null||e.call(this),h(this,Z,t(i=>{typeof i=="boolean"?this.setFocused(i):this.onFocus()}))}setFocused(t){r(this,ot)!==t&&(h(this,ot,t),this.onFocus())}onFocus(){const t=this.isFocused();this.listeners.forEach(e=>{e(t)})}isFocused(){var t;return typeof r(this,ot)=="boolean"?r(this,ot):((t=globalThis.document)==null?void 0:t.visibilityState)!=="hidden"}},ot=new WeakMap,Z=new WeakMap,Ct=new WeakMap,Se),de=new os,wt,tt,Qt,Pe,hs=(Pe=class extends It{constructor(){super();l(this,wt,!0);l(this,tt);l(this,Qt);h(this,Qt,t=>{if(!pt&&window.addEventListener){const e=()=>t(!0),i=()=>t(!1);return window.addEventListener("online",e,!1),window.addEventListener("offline",i,!1),()=>{window.removeEventListener("online",e),window.removeEventListener("offline",i)}}})}onSubscribe(){r(this,tt)||this.setEventListener(r(this,Qt))}onUnsubscribe(){var t;this.hasListeners()||((t=r(this,tt))==null||t.call(this),h(this,tt,void 0))}setEventListener(t){var e;h(this,Qt,t),(e=r(this,tt))==null||e.call(this),h(this,tt,t(this.setOnline.bind(this)))}setOnline(t){r(this,wt)!==t&&(h(this,wt,t),this.listeners.forEach(i=>{i(t)}))}isOnline(){return r(this,wt)}},wt=new WeakMap,tt=new WeakMap,Qt=new WeakMap,Pe),Bt=new hs;function Xt(){let s,t;const e=new Promise((n,a)=>{s=n,t=a});e.status="pending",e.catch(()=>{});function i(n){Object.assign(e,n),delete e.resolve,delete e.reject}return e.resolve=n=>{i({status:"fulfilled",value:n}),s(n)},e.reject=n=>{i({status:"rejected",reason:n}),t(n)},e}function cs(s){return Math.min(1e3*2**s,3e4)}function _e(s){return(s??"online")==="online"?Bt.isOnline():!0}var Ne=class extends Error{constructor(s){super("CancelledError"),this.revert=s==null?void 0:s.revert,this.silent=s==null?void 0:s.silent}};function zt(s){return s instanceof Ne}function Ge(s){let t=!1,e=0,i=!1,n;const a=Xt(),o=m=>{var g;i||(O(new Ne(m)),(g=s.abort)==null||g.call(s))},u=()=>{t=!0},y=()=>{t=!1},w=()=>de.isFocused()&&(s.networkMode==="always"||Bt.isOnline())&&s.canRun(),f=()=>_e(s.networkMode)&&s.canRun(),c=m=>{var g;i||(i=!0,(g=s.onSuccess)==null||g.call(s,m),n==null||n(),a.resolve(m))},O=m=>{var g;i||(i=!0,(g=s.onError)==null||g.call(s,m),n==null||n(),a.reject(m))},d=()=>new Promise(m=>{var g;n=D=>{(i||w())&&m(D)},(g=s.onPause)==null||g.call(s)}).then(()=>{var m;n=void 0,i||(m=s.onContinue)==null||m.call(s)}),Q=()=>{if(i)return;let m;const g=e===0?s.initialPromise:void 0;try{m=g??s.fn()}catch(D){m=Promise.reject(D)}Promise.resolve(m).then(c).catch(D=>{var _;if(i)return;const E=s.retry??(pt?0:3),P=s.retryDelay??cs,A=typeof P=="function"?P(e,D):P,K=E===!0||typeof E=="number"&&e<E||typeof E=="function"&&E(e,D);if(t||!K){O(D);return}e++,(_=s.onFail)==null||_.call(s,e,D),ns(A).then(()=>w()?void 0:d()).then(()=>{t?O(D):Q()})})};return{promise:a,cancel:o,continue:()=>(n==null||n(),a),cancelRetry:u,continueRetry:y,canStart:f,start:()=>(f()?Q():d().then(Q),a)}}function ls(){let s=[],t=0,e=u=>{u()},i=u=>{u()},n=u=>setTimeout(u,0);const a=u=>{t?s.push(u):n(()=>{e(u)})},o=()=>{const u=s;s=[],u.length&&n(()=>{i(()=>{u.forEach(y=>{e(y)})})})};return{batch:u=>{let y;t++;try{y=u()}finally{t--,t||o()}return y},batchCalls:u=>(...y)=>{a(()=>{u(...y)})},schedule:a,setNotifyFunction:u=>{e=u},setBatchNotifyFunction:u=>{i=u},setScheduler:u=>{n=u}}}var M=ls(),ht,Re,$e=(Re=class{constructor(){l(this,ht)}destroy(){this.clearGcTimeout()}scheduleGc(){this.clearGcTimeout(),Wt(this.gcTime)&&h(this,ht,setTimeout(()=>{this.optionalRemove()},this.gcTime))}updateGcTime(s){this.gcTime=Math.max(this.gcTime||0,s??(pt?1/0:5*60*1e3))}clearGcTimeout(){r(this,ht)&&(clearTimeout(r(this,ht)),h(this,ht,void 0))}},ht=new WeakMap,Re),St,Pt,k,U,xt,ct,N,W,De,fs=(De=class extends $e{constructor(t){super();l(this,N);l(this,St);l(this,Pt);l(this,k);l(this,U);l(this,xt);l(this,ct);h(this,ct,!1),h(this,xt,t.defaultOptions),this.setOptions(t.options),this.observers=[],h(this,k,t.cache),this.queryKey=t.queryKey,this.queryHash=t.queryHash,h(this,St,ds(this.options)),this.state=t.state??r(this,St),this.scheduleGc()}get meta(){return this.options.meta}get promise(){var t;return(t=r(this,U))==null?void 0:t.promise}setOptions(t){this.options={...r(this,xt),...t},this.updateGcTime(this.options.gcTime)}optionalRemove(){!this.observers.length&&this.state.fetchStatus==="idle"&&r(this,k).remove(this)}setData(t,e){const i=Jt(this.state.data,t,this.options);return p(this,N,W).call(this,{data:i,type:"success",dataUpdatedAt:e==null?void 0:e.updatedAt,manual:e==null?void 0:e.manual}),i}setState(t,e){p(this,N,W).call(this,{type:"setState",state:t,setStateOptions:e})}cancel(t){var i,n;const e=(i=r(this,U))==null?void 0:i.promise;return(n=r(this,U))==null||n.cancel(t),e?e.then(H).catch(H):Promise.resolve()}destroy(){super.destroy(),this.cancel({silent:!0})}reset(){this.destroy(),this.setState(r(this,St))}isActive(){return this.observers.some(t=>G(t.options.enabled,this)!==!1)}isDisabled(){return this.getObserversCount()>0?!this.isActive():this.options.queryFn===fe||this.state.dataUpdateCount+this.state.errorUpdateCount===0}isStale(){return this.state.isInvalidated?!0:this.getObserversCount()>0?this.observers.some(t=>t.getCurrentResult().isStale):this.state.data===void 0}isStaleByTime(t=0){return this.state.isInvalidated||this.state.data===void 0||!Le(this.state.dataUpdatedAt,t)}onFocus(){var e;const t=this.observers.find(i=>i.shouldFetchOnWindowFocus());t==null||t.refetch({cancelRefetch:!1}),(e=r(this,U))==null||e.continue()}onOnline(){var e;const t=this.observers.find(i=>i.shouldFetchOnReconnect());t==null||t.refetch({cancelRefetch:!1}),(e=r(this,U))==null||e.continue()}addObserver(t){this.observers.includes(t)||(this.observers.push(t),this.clearGcTimeout(),r(this,k).notify({type:"observerAdded",query:this,observer:t}))}removeObserver(t){this.observers.includes(t)&&(this.observers=this.observers.filter(e=>e!==t),this.observers.length||(r(this,U)&&(r(this,ct)?r(this,U).cancel({revert:!0}):r(this,U).cancelRetry()),this.scheduleGc()),r(this,k).notify({type:"observerRemoved",query:this,observer:t}))}getObserversCount(){return this.observers.length}invalidate(){this.state.isInvalidated||p(this,N,W).call(this,{type:"invalidate"})}fetch(t,e){var y,w,f;if(this.state.fetchStatus!=="idle"){if(this.state.data!==void 0&&(e!=null&&e.cancelRefetch))this.cancel({silent:!0});else if(r(this,U))return r(this,U).continueRetry(),r(this,U).promise}if(t&&this.setOptions(t),!this.options.queryFn){const c=this.observers.find(O=>O.options.queryFn);c&&this.setOptions(c.options)}const i=new AbortController,n=c=>{Object.defineProperty(c,"signal",{enumerable:!0,get:()=>(h(this,ct,!0),i.signal)})},a=()=>{const c=He(this.options,e),O={queryKey:this.queryKey,meta:this.meta};return n(O),h(this,ct,!1),this.options.persister?this.options.persister(c,O,this):c(O)},o={fetchOptions:e,options:this.options,queryKey:this.queryKey,state:this.state,fetchFn:a};n(o),(y=this.options.behavior)==null||y.onFetch(o,this),h(this,Pt,this.state),(this.state.fetchStatus==="idle"||this.state.fetchMeta!==((w=o.fetchOptions)==null?void 0:w.meta))&&p(this,N,W).call(this,{type:"fetch",meta:(f=o.fetchOptions)==null?void 0:f.meta});const u=c=>{var O,d,Q,m;zt(c)&&c.silent||p(this,N,W).call(this,{type:"error",error:c}),zt(c)||((d=(O=r(this,k).config).onError)==null||d.call(O,c,this),(m=(Q=r(this,k).config).onSettled)==null||m.call(Q,this.state.data,c,this)),this.scheduleGc()};return h(this,U,Ge({initialPromise:e==null?void 0:e.initialPromise,fn:o.fetchFn,abort:i.abort.bind(i),onSuccess:c=>{var O,d,Q,m;if(c===void 0){u(new Error(`${this.queryHash} data is undefined`));return}try{this.setData(c)}catch(g){u(g);return}(d=(O=r(this,k).config).onSuccess)==null||d.call(O,c,this),(m=(Q=r(this,k).config).onSettled)==null||m.call(Q,c,this.state.error,this),this.scheduleGc()},onError:u,onFail:(c,O)=>{p(this,N,W).call(this,{type:"failed",failureCount:c,error:O})},onPause:()=>{p(this,N,W).call(this,{type:"pause"})},onContinue:()=>{p(this,N,W).call(this,{type:"continue"})},retry:o.options.retry,retryDelay:o.options.retryDelay,networkMode:o.options.networkMode,canRun:()=>!0})),r(this,U).start()}},St=new WeakMap,Pt=new WeakMap,k=new WeakMap,U=new WeakMap,xt=new WeakMap,ct=new WeakMap,N=new WeakSet,W=function(t){const e=i=>{switch(t.type){case"failed":return{...i,fetchFailureCount:t.failureCount,fetchFailureReason:t.error};case"pause":return{...i,fetchStatus:"paused"};case"continue":return{...i,fetchStatus:"fetching"};case"fetch":return{...i,...Be(i.data,this.options),fetchMeta:t.meta??null};case"success":return{...i,data:t.data,dataUpdateCount:i.dataUpdateCount+1,dataUpdatedAt:t.dataUpdatedAt??Date.now(),error:null,isInvalidated:!1,status:"success",...!t.manual&&{fetchStatus:"idle",fetchFailureCount:0,fetchFailureReason:null}};case"error":const n=t.error;return zt(n)&&n.revert&&r(this,Pt)?{...r(this,Pt),fetchStatus:"idle"}:{...i,error:n,errorUpdateCount:i.errorUpdateCount+1,errorUpdatedAt:Date.now(),fetchFailureCount:i.fetchFailureCount+1,fetchFailureReason:n,fetchStatus:"idle",status:"error"};case"invalidate":return{...i,isInvalidated:!0};case"setState":return{...i,...t.state}}};this.state=e(this.state),M.batch(()=>{this.observers.forEach(i=>{i.onQueryUpdate()}),r(this,k).notify({query:this,type:"updated",action:t})})},De);function Be(s,t){return{fetchFailureCount:0,fetchFailureReason:null,fetchStatus:_e(t.networkMode)?"fetching":"paused",...s===void 0&&{error:null,status:"pending"}}}function ds(s){const t=typeof s.initialData=="function"?s.initialData():s.initialData,e=t!==void 0,i=e?typeof s.initialDataUpdatedAt=="function"?s.initialDataUpdatedAt():s.initialDataUpdatedAt:0;return{data:t,dataUpdateCount:0,dataUpdatedAt:e?i??Date.now():0,error:null,errorUpdateCount:0,errorUpdatedAt:0,fetchFailureCount:0,fetchFailureReason:null,fetchMeta:null,isInvalidated:!1,status:e?"success":"pending",fetchStatus:"idle"}}var $,Fe,Ve=(Fe=class extends It{constructor(e={}){super();l(this,$);this.config=e,h(this,$,new Map)}build(e,i,n){const a=i.queryKey,o=i.queryHash??le(a,i);let u=this.get(o);return u||(u=new fs({cache:this,queryKey:a,queryHash:o,options:e.defaultQueryOptions(i),state:n,defaultOptions:e.getQueryDefaults(a)}),this.add(u)),u}add(e){r(this,$).has(e.queryHash)||(r(this,$).set(e.queryHash,e),this.notify({type:"added",query:e}))}remove(e){const i=r(this,$).get(e.queryHash);i&&(e.destroy(),i===e&&r(this,$).delete(e.queryHash),this.notify({type:"removed",query:e}))}clear(){M.batch(()=>{this.getAll().forEach(e=>{this.remove(e)})})}get(e){return r(this,$).get(e)}getAll(){return[...r(this,$).values()]}find(e){const i={exact:!0,...e};return this.getAll().find(n=>me(i,n))}findAll(e={}){const i=this.getAll();return Object.keys(e).length>0?i.filter(n=>me(e,n)):i}notify(e){M.batch(()=>{this.listeners.forEach(i=>{i(e)})})}onFocus(){M.batch(()=>{this.getAll().forEach(e=>{e.onFocus()})})}onOnline(){M.batch(()=>{this.getAll().forEach(e=>{e.onOnline()})})}},$=new WeakMap,Fe),B,I,lt,V,X,Ee,ys=(Ee=class extends $e{constructor(t){super();l(this,V);l(this,B);l(this,I);l(this,lt);this.mutationId=t.mutationId,h(this,I,t.mutationCache),h(this,B,[]),this.state=t.state||ze(),this.setOptions(t.options),this.scheduleGc()}setOptions(t){this.options=t,this.updateGcTime(this.options.gcTime)}get meta(){return this.options.meta}addObserver(t){r(this,B).includes(t)||(r(this,B).push(t),this.clearGcTimeout(),r(this,I).notify({type:"observerAdded",mutation:this,observer:t}))}removeObserver(t){h(this,B,r(this,B).filter(e=>e!==t)),this.scheduleGc(),r(this,I).notify({type:"observerRemoved",mutation:this,observer:t})}optionalRemove(){r(this,B).length||(this.state.status==="pending"?this.scheduleGc():r(this,I).remove(this))}continue(){var t;return((t=r(this,lt))==null?void 0:t.continue())??this.execute(this.state.variables)}async execute(t){var n,a,o,u,y,w,f,c,O,d,Q,m,g,D,E,P,A,K,_,q;h(this,lt,Ge({fn:()=>this.options.mutationFn?this.options.mutationFn(t):Promise.reject(new Error("No mutationFn found")),onFail:(F,S)=>{p(this,V,X).call(this,{type:"failed",failureCount:F,error:S})},onPause:()=>{p(this,V,X).call(this,{type:"pause"})},onContinue:()=>{p(this,V,X).call(this,{type:"continue"})},retry:this.options.retry??0,retryDelay:this.options.retryDelay,networkMode:this.options.networkMode,canRun:()=>r(this,I).canRun(this)}));const e=this.state.status==="pending",i=!r(this,lt).canStart();try{if(!e){p(this,V,X).call(this,{type:"pending",variables:t,isPaused:i}),await((a=(n=r(this,I).config).onMutate)==null?void 0:a.call(n,t,this));const S=await((u=(o=this.options).onMutate)==null?void 0:u.call(o,t));S!==this.state.context&&p(this,V,X).call(this,{type:"pending",context:S,variables:t,isPaused:i})}const F=await r(this,lt).start();return await((w=(y=r(this,I).config).onSuccess)==null?void 0:w.call(y,F,t,this.state.context,this)),await((c=(f=this.options).onSuccess)==null?void 0:c.call(f,F,t,this.state.context)),await((d=(O=r(this,I).config).onSettled)==null?void 0:d.call(O,F,null,this.state.variables,this.state.context,this)),await((m=(Q=this.options).onSettled)==null?void 0:m.call(Q,F,null,t,this.state.context)),p(this,V,X).call(this,{type:"success",data:F}),F}catch(F){try{throw await((D=(g=r(this,I).config).onError)==null?void 0:D.call(g,F,t,this.state.context,this)),await((P=(E=this.options).onError)==null?void 0:P.call(E,F,t,this.state.context)),await((K=(A=r(this,I).config).onSettled)==null?void 0:K.call(A,void 0,F,this.state.variables,this.state.context,this)),await((q=(_=this.options).onSettled)==null?void 0:q.call(_,void 0,F,t,this.state.context)),F}finally{p(this,V,X).call(this,{type:"error",error:F})}}finally{r(this,I).runNext(this)}}},B=new WeakMap,I=new WeakMap,lt=new WeakMap,V=new WeakSet,X=function(t){const e=i=>{switch(t.type){case"failed":return{...i,failureCount:t.failureCount,failureReason:t.error};case"pause":return{...i,isPaused:!0};case"continue":return{...i,isPaused:!1};case"pending":return{...i,context:t.context,data:void 0,failureCount:0,failureReason:null,error:null,isPaused:t.isPaused,status:"pending",variables:t.variables,submittedAt:Date.now()};case"success":return{...i,data:t.data,failureCount:0,failureReason:null,error:null,status:"success",isPaused:!1};case"error":return{...i,data:void 0,error:t.error,failureCount:i.failureCount+1,failureReason:t.error,isPaused:!1,status:"error"}}};this.state=e(this.state),M.batch(()=>{r(this,B).forEach(i=>{i.onMutationUpdate(t)}),r(this,I).notify({mutation:this,type:"updated",action:t})})},Ee);function ze(){return{context:void 0,data:void 0,error:null,failureCount:0,failureReason:null,isPaused:!1,status:"idle",variables:void 0,submittedAt:0}}var L,Kt,Me,We=(Me=class extends It{constructor(e={}){super();l(this,L);l(this,Kt);this.config=e,h(this,L,new Map),h(this,Kt,Date.now())}build(e,i,n){const a=new ys({mutationCache:this,mutationId:++_t(this,Kt)._,options:e.defaultMutationOptions(i),state:n});return this.add(a),a}add(e){const i=Nt(e),n=r(this,L).get(i)??[];n.push(e),r(this,L).set(i,n),this.notify({type:"added",mutation:e})}remove(e){var n;const i=Nt(e);if(r(this,L).has(i)){const a=(n=r(this,L).get(i))==null?void 0:n.filter(o=>o!==e);a&&(a.length===0?r(this,L).delete(i):r(this,L).set(i,a))}this.notify({type:"removed",mutation:e})}canRun(e){var n;const i=(n=r(this,L).get(Nt(e)))==null?void 0:n.find(a=>a.state.status==="pending");return!i||i===e}runNext(e){var n;const i=(n=r(this,L).get(Nt(e)))==null?void 0:n.find(a=>a!==e&&a.state.isPaused);return(i==null?void 0:i.continue())??Promise.resolve()}clear(){M.batch(()=>{this.getAll().forEach(e=>{this.remove(e)})})}getAll(){return[...r(this,L).values()].flat()}find(e){const i={exact:!0,...e};return this.getAll().find(n=>ve(i,n))}findAll(e={}){return this.getAll().filter(i=>ve(e,i))}notify(e){M.batch(()=>{this.listeners.forEach(i=>{i(e)})})}resumePausedMutations(){const e=this.getAll().filter(i=>i.state.isPaused);return M.batch(()=>Promise.all(e.map(i=>i.continue().catch(H))))}},L=new WeakMap,Kt=new WeakMap,Me);function Nt(s){var t;return((t=s.options.scope)==null?void 0:t.id)??String(s.mutationId)}function Oe(s){return{onFetch:(t,e)=>{var f,c,O,d,Q;const i=t.options,n=(O=(c=(f=t.fetchOptions)==null?void 0:f.meta)==null?void 0:c.fetchMore)==null?void 0:O.direction,a=((d=t.state.data)==null?void 0:d.pages)||[],o=((Q=t.state.data)==null?void 0:Q.pageParams)||[];let u={pages:[],pageParams:[]},y=0;const w=async()=>{let m=!1;const g=P=>{Object.defineProperty(P,"signal",{enumerable:!0,get:()=>(t.signal.aborted?m=!0:t.signal.addEventListener("abort",()=>{m=!0}),t.signal)})},D=He(t.options,t.fetchOptions),E=async(P,A,K)=>{if(m)return Promise.reject();if(A==null&&P.pages.length)return Promise.resolve(P);const _={queryKey:t.queryKey,pageParam:A,direction:K?"backward":"forward",meta:t.options.meta};g(_);const q=await D(_),{maxPages:F}=t.options,S=K?us:as;return{pages:S(P.pages,q,F),pageParams:S(P.pageParams,A,F)}};if(n&&a.length){const P=n==="backward",A=P?ps:Ce,K={pages:a,pageParams:o},_=A(i,K);u=await E(K,_,P)}else{const P=s??a.length;do{const A=y===0?o[0]??i.initialPageParam:Ce(i,u);if(y>0&&A==null)break;u=await E(u,A),y++}while(y<P)}return u};t.options.persister?t.fetchFn=()=>{var m,g;return(g=(m=t.options).persister)==null?void 0:g.call(m,w,{queryKey:t.queryKey,meta:t.options.meta,signal:t.signal},e)}:t.fetchFn=w}}}function Ce(s,{pages:t,pageParams:e}){const i=t.length-1;return t.length>0?s.getNextPageParam(t[i],t,e[i],e):void 0}function ps(s,{pages:t,pageParams:e}){var i;return t.length>0?(i=s.getPreviousPageParam)==null?void 0:i.call(s,t[0],t,e[0],e):void 0}var R,et,st,Rt,Dt,it,Ft,Et,Ae,ms=(Ae=class{constructor(t={}){l(this,R);l(this,et);l(this,st);l(this,Rt);l(this,Dt);l(this,it);l(this,Ft);l(this,Et);h(this,R,t.queryCache||new Ve),h(this,et,t.mutationCache||new We),h(this,st,t.defaultOptions||{}),h(this,Rt,new Map),h(this,Dt,new Map),h(this,it,0)}mount(){_t(this,it)._++,r(this,it)===1&&(h(this,Ft,de.subscribe(async t=>{t&&(await this.resumePausedMutations(),r(this,R).onFocus())})),h(this,Et,Bt.subscribe(async t=>{t&&(await this.resumePausedMutations(),r(this,R).onOnline())})))}unmount(){var t,e;_t(this,it)._--,r(this,it)===0&&((t=r(this,Ft))==null||t.call(this),h(this,Ft,void 0),(e=r(this,Et))==null||e.call(this),h(this,Et,void 0))}isFetching(t){return r(this,R).findAll({...t,fetchStatus:"fetching"}).length}isMutating(t){return r(this,et).findAll({...t,status:"pending"}).length}getQueryData(t){var i;const e=this.defaultQueryOptions({queryKey:t});return(i=r(this,R).get(e.queryHash))==null?void 0:i.state.data}ensureQueryData(t){const e=this.getQueryData(t.queryKey);if(e===void 0)return this.fetchQuery(t);{const i=this.defaultQueryOptions(t),n=r(this,R).build(this,i);return t.revalidateIfStale&&n.isStaleByTime(Ot(i.staleTime,n))&&this.prefetchQuery(i),Promise.resolve(e)}}getQueriesData(t){return r(this,R).findAll(t).map(({queryKey:e,state:i})=>{const n=i.data;return[e,n]})}setQueryData(t,e,i){const n=this.defaultQueryOptions({queryKey:t}),a=r(this,R).get(n.queryHash),o=a==null?void 0:a.state.data,u=rs(e,o);if(u!==void 0)return r(this,R).build(this,n).setData(u,{...i,manual:!0})}setQueriesData(t,e,i){return M.batch(()=>r(this,R).findAll(t).map(({queryKey:n})=>[n,this.setQueryData(n,e,i)]))}getQueryState(t){var i;const e=this.defaultQueryOptions({queryKey:t});return(i=r(this,R).get(e.queryHash))==null?void 0:i.state}removeQueries(t){const e=r(this,R);M.batch(()=>{e.findAll(t).forEach(i=>{e.remove(i)})})}resetQueries(t,e){const i=r(this,R),n={type:"active",...t};return M.batch(()=>(i.findAll(t).forEach(a=>{a.reset()}),this.refetchQueries(n,e)))}cancelQueries(t={},e={}){const i={revert:!0,...e},n=M.batch(()=>r(this,R).findAll(t).map(a=>a.cancel(i)));return Promise.all(n).then(H).catch(H)}invalidateQueries(t={},e={}){return M.batch(()=>{if(r(this,R).findAll(t).forEach(n=>{n.invalidate()}),t.refetchType==="none")return Promise.resolve();const i={...t,type:t.refetchType??t.type??"active"};return this.refetchQueries(i,e)})}refetchQueries(t={},e){const i={...e,cancelRefetch:(e==null?void 0:e.cancelRefetch)??!0},n=M.batch(()=>r(this,R).findAll(t).filter(a=>!a.isDisabled()).map(a=>{let o=a.fetch(void 0,i);return i.throwOnError||(o=o.catch(H)),a.state.fetchStatus==="paused"?Promise.resolve():o}));return Promise.all(n).then(H)}fetchQuery(t){const e=this.defaultQueryOptions(t);e.retry===void 0&&(e.retry=!1);const i=r(this,R).build(this,e);return i.isStaleByTime(Ot(e.staleTime,i))?i.fetch(e):Promise.resolve(i.state.data)}prefetchQuery(t){return this.fetchQuery(t).then(H).catch(H)}fetchInfiniteQuery(t){return t.behavior=Oe(t.pages),this.fetchQuery(t)}prefetchInfiniteQuery(t){return this.fetchInfiniteQuery(t).then(H).catch(H)}ensureInfiniteQueryData(t){return t.behavior=Oe(t.pages),this.ensureQueryData(t)}resumePausedMutations(){return Bt.isOnline()?r(this,et).resumePausedMutations():Promise.resolve()}getQueryCache(){return r(this,R)}getMutationCache(){return r(this,et)}getDefaultOptions(){return r(this,st)}setDefaultOptions(t){h(this,st,t)}setQueryDefaults(t,e){r(this,Rt).set(mt(t),{queryKey:t,defaultOptions:e})}getQueryDefaults(t){const e=[...r(this,Rt).values()];let i={};return e.forEach(n=>{jt(t,n.queryKey)&&(i={...i,...n.defaultOptions})}),i}setMutationDefaults(t,e){r(this,Dt).set(mt(t),{mutationKey:t,defaultOptions:e})}getMutationDefaults(t){const e=[...r(this,Dt).values()];let i={};return e.forEach(n=>{jt(t,n.mutationKey)&&(i={...i,...n.defaultOptions})}),i}defaultQueryOptions(t){if(t._defaulted)return t;const e={...r(this,st).queries,...this.getQueryDefaults(t.queryKey),...t,_defaulted:!0};return e.queryHash||(e.queryHash=le(e.queryKey,e)),e.refetchOnReconnect===void 0&&(e.refetchOnReconnect=e.networkMode!=="always"),e.throwOnError===void 0&&(e.throwOnError=!!e.suspense),!e.networkMode&&e.persister&&(e.networkMode="offlineFirst"),e.enabled!==!0&&e.queryFn===fe&&(e.enabled=!1),e}defaultMutationOptions(t){return t!=null&&t._defaulted?t:{...r(this,st).mutations,...(t==null?void 0:t.mutationKey)&&this.getMutationDefaults(t.mutationKey),...t,_defaulted:!0}}clear(){r(this,R).clear(),r(this,et).clear()}},R=new WeakMap,et=new WeakMap,st=new WeakMap,Rt=new WeakMap,Dt=new WeakMap,it=new WeakMap,Ft=new WeakMap,Et=new WeakMap,Ae),j,b,Lt,T,ft,Mt,rt,z,kt,At,Ut,dt,yt,nt,qt,C,Tt,Zt,te,ee,se,ie,re,ne,Ye,Ue,vs=(Ue=class extends It{constructor(t,e){super();l(this,C);l(this,j);l(this,b);l(this,Lt);l(this,T);l(this,ft);l(this,Mt);l(this,rt);l(this,z);l(this,kt);l(this,At);l(this,Ut);l(this,dt);l(this,yt);l(this,nt);l(this,qt,new Set);this.options=e,h(this,j,t),h(this,z,null),h(this,rt,Xt()),this.options.experimental_prefetchInRender||r(this,rt).reject(new Error("experimental_prefetchInRender feature flag is not enabled")),this.bindMethods(),this.setOptions(e)}bindMethods(){this.refetch=this.refetch.bind(this)}onSubscribe(){this.listeners.size===1&&(r(this,b).addObserver(this),we(r(this,b),this.options)?p(this,C,Tt).call(this):this.updateResult(),p(this,C,se).call(this))}onUnsubscribe(){this.hasListeners()||this.destroy()}shouldFetchOnReconnect(){return ae(r(this,b),this.options,this.options.refetchOnReconnect)}shouldFetchOnWindowFocus(){return ae(r(this,b),this.options,this.options.refetchOnWindowFocus)}destroy(){this.listeners=new Set,p(this,C,ie).call(this),p(this,C,re).call(this),r(this,b).removeObserver(this)}setOptions(t,e){const i=this.options,n=r(this,b);if(this.options=r(this,j).defaultQueryOptions(t),this.options.enabled!==void 0&&typeof this.options.enabled!="boolean"&&typeof this.options.enabled!="function"&&typeof G(this.options.enabled,r(this,b))!="boolean")throw new Error("Expected enabled to be a boolean or a callback that returns a boolean");p(this,C,ne).call(this),r(this,b).setOptions(this.options),i._defaulted&&!$t(this.options,i)&&r(this,j).getQueryCache().notify({type:"observerOptionsUpdated",query:r(this,b),observer:this});const a=this.hasListeners();a&&Qe(r(this,b),n,this.options,i)&&p(this,C,Tt).call(this),this.updateResult(e),a&&(r(this,b)!==n||G(this.options.enabled,r(this,b))!==G(i.enabled,r(this,b))||Ot(this.options.staleTime,r(this,b))!==Ot(i.staleTime,r(this,b)))&&p(this,C,Zt).call(this);const o=p(this,C,te).call(this);a&&(r(this,b)!==n||G(this.options.enabled,r(this,b))!==G(i.enabled,r(this,b))||o!==r(this,nt))&&p(this,C,ee).call(this,o)}getOptimisticResult(t){const e=r(this,j).getQueryCache().build(r(this,j),t),i=this.createResult(e,t);return gs(this,i)&&(h(this,T,i),h(this,Mt,this.options),h(this,ft,r(this,b).state)),i}getCurrentResult(){return r(this,T)}trackResult(t,e){const i={};return Object.keys(t).forEach(n=>{Object.defineProperty(i,n,{configurable:!1,enumerable:!0,get:()=>(this.trackProp(n),e==null||e(n),t[n])})}),i}trackProp(t){r(this,qt).add(t)}getCurrentQuery(){return r(this,b)}refetch({...t}={}){return this.fetch({...t})}fetchOptimistic(t){const e=r(this,j).defaultQueryOptions(t),i=r(this,j).getQueryCache().build(r(this,j),e);return i.fetch().then(()=>this.createResult(i,e))}fetch(t){return p(this,C,Tt).call(this,{...t,cancelRefetch:t.cancelRefetch??!0}).then(()=>(this.updateResult(),r(this,T)))}createResult(t,e){var F;const i=r(this,b),n=this.options,a=r(this,T),o=r(this,ft),u=r(this,Mt),w=t!==i?t.state:r(this,Lt),{state:f}=t;let c={...f},O=!1,d;if(e._optimisticResults){const S=this.hasListeners(),vt=!S&&we(t,e),bt=S&&Qe(t,i,e,n);(vt||bt)&&(c={...c,...Be(f.data,t.options)}),e._optimisticResults==="isRestoring"&&(c.fetchStatus="idle")}let{error:Q,errorUpdatedAt:m,status:g}=c;if(e.select&&c.data!==void 0)if(a&&c.data===(o==null?void 0:o.data)&&e.select===r(this,kt))d=r(this,At);else try{h(this,kt,e.select),d=e.select(c.data),d=Jt(a==null?void 0:a.data,d,e),h(this,At,d),h(this,z,null)}catch(S){h(this,z,S)}else d=c.data;if(e.placeholderData!==void 0&&d===void 0&&g==="pending"){let S;if(a!=null&&a.isPlaceholderData&&e.placeholderData===(u==null?void 0:u.placeholderData))S=a.data;else if(S=typeof e.placeholderData=="function"?e.placeholderData((F=r(this,Ut))==null?void 0:F.state.data,r(this,Ut)):e.placeholderData,e.select&&S!==void 0)try{S=e.select(S),h(this,z,null)}catch(vt){h(this,z,vt)}S!==void 0&&(g="success",d=Jt(a==null?void 0:a.data,S,e),O=!0)}r(this,z)&&(Q=r(this,z),d=r(this,At),m=Date.now(),g="error");const D=c.fetchStatus==="fetching",E=g==="pending",P=g==="error",A=E&&D,K=d!==void 0,q={status:g,fetchStatus:c.fetchStatus,isPending:E,isSuccess:g==="success",isError:P,isInitialLoading:A,isLoading:A,data:d,dataUpdatedAt:c.dataUpdatedAt,error:Q,errorUpdatedAt:m,failureCount:c.fetchFailureCount,failureReason:c.fetchFailureReason,errorUpdateCount:c.errorUpdateCount,isFetched:c.dataUpdateCount>0||c.errorUpdateCount>0,isFetchedAfterMount:c.dataUpdateCount>w.dataUpdateCount||c.errorUpdateCount>w.errorUpdateCount,isFetching:D,isRefetching:D&&!E,isLoadingError:P&&!K,isPaused:c.fetchStatus==="paused",isPlaceholderData:O,isRefetchError:P&&K,isStale:ye(t,e),refetch:this.refetch,promise:r(this,rt)};if(this.options.experimental_prefetchInRender){const S=Ht=>{q.status==="error"?Ht.reject(q.error):q.data!==void 0&&Ht.resolve(q.data)},vt=()=>{const Ht=h(this,rt,q.promise=Xt());S(Ht)},bt=r(this,rt);switch(bt.status){case"pending":t.queryHash===i.queryHash&&S(bt);break;case"fulfilled":(q.status==="error"||q.data!==bt.value)&&vt();break;case"rejected":(q.status!=="error"||q.error!==bt.reason)&&vt();break}}return q}updateResult(t){const e=r(this,T),i=this.createResult(r(this,b),this.options);if(h(this,ft,r(this,b).state),h(this,Mt,this.options),r(this,ft).data!==void 0&&h(this,Ut,r(this,b)),$t(i,e))return;h(this,T,i);const n={},a=()=>{if(!e)return!0;const{notifyOnChangeProps:o}=this.options,u=typeof o=="function"?o():o;if(u==="all"||!u&&!r(this,qt).size)return!0;const y=new Set(u??r(this,qt));return this.options.throwOnError&&y.add("error"),Object.keys(r(this,T)).some(w=>{const f=w;return r(this,T)[f]!==e[f]&&y.has(f)})};(t==null?void 0:t.listeners)!==!1&&a()&&(n.listeners=!0),p(this,C,Ye).call(this,{...n,...t})}onQueryUpdate(){this.updateResult(),this.hasListeners()&&p(this,C,se).call(this)}},j=new WeakMap,b=new WeakMap,Lt=new WeakMap,T=new WeakMap,ft=new WeakMap,Mt=new WeakMap,rt=new WeakMap,z=new WeakMap,kt=new WeakMap,At=new WeakMap,Ut=new WeakMap,dt=new WeakMap,yt=new WeakMap,nt=new WeakMap,qt=new WeakMap,C=new WeakSet,Tt=function(t){p(this,C,ne).call(this);let e=r(this,b).fetch(this.options,t);return t!=null&&t.throwOnError||(e=e.catch(H)),e},Zt=function(){p(this,C,ie).call(this);const t=Ot(this.options.staleTime,r(this,b));if(pt||r(this,T).isStale||!Wt(t))return;const i=Le(r(this,T).dataUpdatedAt,t)+1;h(this,dt,setTimeout(()=>{r(this,T).isStale||this.updateResult()},i))},te=function(){return(typeof this.options.refetchInterval=="function"?this.options.refetchInterval(r(this,b)):this.options.refetchInterval)??!1},ee=function(t){p(this,C,re).call(this),h(this,nt,t),!(pt||G(this.options.enabled,r(this,b))===!1||!Wt(r(this,nt))||r(this,nt)===0)&&h(this,yt,setInterval(()=>{(this.options.refetchIntervalInBackground||de.isFocused())&&p(this,C,Tt).call(this)},r(this,nt)))},se=function(){p(this,C,Zt).call(this),p(this,C,ee).call(this,p(this,C,te).call(this))},ie=function(){r(this,dt)&&(clearTimeout(r(this,dt)),h(this,dt,void 0))},re=function(){r(this,yt)&&(clearInterval(r(this,yt)),h(this,yt,void 0))},ne=function(){const t=r(this,j).getQueryCache().build(r(this,j),this.options);if(t===r(this,b))return;const e=r(this,b);h(this,b,t),h(this,Lt,t.state),this.hasListeners()&&(e==null||e.removeObserver(this),t.addObserver(this))},Ye=function(t){M.batch(()=>{t.listeners&&this.listeners.forEach(e=>{e(r(this,T))}),r(this,j).getQueryCache().notify({query:r(this,b),type:"observerResultsUpdated"})})},Ue);function bs(s,t){return G(t.enabled,s)!==!1&&s.state.data===void 0&&!(s.state.status==="error"&&t.retryOnMount===!1)}function we(s,t){return bs(s,t)||s.state.data!==void 0&&ae(s,t,t.refetchOnMount)}function ae(s,t,e){if(G(t.enabled,s)!==!1){const i=typeof e=="function"?e(s):e;return i==="always"||i!==!1&&ye(s,t)}return!1}function Qe(s,t,e,i){return(s!==t||G(i.enabled,s)===!1)&&(!e.suspense||s.state.status!=="error")&&ye(s,e)}function ye(s,t){return G(t.enabled,s)!==!1&&s.isStaleByTime(Ot(t.staleTime,s))}function gs(s,t){return!$t(s.getCurrentResult(),t)}var at,ut,x,Y,J,Gt,ue,qe,Os=(qe=class extends It{constructor(t,e){super();l(this,J);l(this,at);l(this,ut);l(this,x);l(this,Y);h(this,at,t),this.setOptions(e),this.bindMethods(),p(this,J,Gt).call(this)}bindMethods(){this.mutate=this.mutate.bind(this),this.reset=this.reset.bind(this)}setOptions(t){var i;const e=this.options;this.options=r(this,at).defaultMutationOptions(t),$t(this.options,e)||r(this,at).getMutationCache().notify({type:"observerOptionsUpdated",mutation:r(this,x),observer:this}),e!=null&&e.mutationKey&&this.options.mutationKey&&mt(e.mutationKey)!==mt(this.options.mutationKey)?this.reset():((i=r(this,x))==null?void 0:i.state.status)==="pending"&&r(this,x).setOptions(this.options)}onUnsubscribe(){var t;this.hasListeners()||(t=r(this,x))==null||t.removeObserver(this)}onMutationUpdate(t){p(this,J,Gt).call(this),p(this,J,ue).call(this,t)}getCurrentResult(){return r(this,ut)}reset(){var t;(t=r(this,x))==null||t.removeObserver(this),h(this,x,void 0),p(this,J,Gt).call(this),p(this,J,ue).call(this)}mutate(t,e){var i;return h(this,Y,e),(i=r(this,x))==null||i.removeObserver(this),h(this,x,r(this,at).getMutationCache().build(r(this,at),this.options)),r(this,x).addObserver(this),r(this,x).execute(t)}},at=new WeakMap,ut=new WeakMap,x=new WeakMap,Y=new WeakMap,J=new WeakSet,Gt=function(){var e;const t=((e=r(this,x))==null?void 0:e.state)??ze();h(this,ut,{...t,isPending:t.status==="pending",isSuccess:t.status==="success",isError:t.status==="error",isIdle:t.status==="idle",mutate:this.mutate,reset:this.reset})},ue=function(t){M.batch(()=>{var e,i,n,a,o,u,y,w;if(r(this,Y)&&this.hasListeners()){const f=r(this,ut).variables,c=r(this,ut).context;(t==null?void 0:t.type)==="success"?((i=(e=r(this,Y)).onSuccess)==null||i.call(e,t.data,f,c),(a=(n=r(this,Y)).onSettled)==null||a.call(n,t.data,null,f,c)):(t==null?void 0:t.type)==="error"&&((u=(o=r(this,Y)).onError)==null||u.call(o,t.error,f,c),(w=(y=r(this,Y)).onSettled)==null||w.call(y,void 0,t.error,f,c))}this.listeners.forEach(f=>{f(r(this,ut))})})},qe),Cs="VUE_QUERY_CLIENT";function Je(s){const t=s?`:${s}`:"";return`${Cs}${t}`}function oe(s,t){Object.keys(s).forEach(e=>{s[e]=t[e]})}function he(s,t,e="",i=0){if(t){const n=t(s,e,i);if(n===void 0&&Ie(s)||n!==void 0)return n}if(Array.isArray(s))return s.map((n,a)=>he(n,t,String(a),i+1));if(typeof s=="object"&&Qs(s)){const n=Object.entries(s).map(([a,o])=>[a,he(o,t,a,i+1)]);return Object.fromEntries(n)}return s}function ws(s,t){return he(s,t)}function v(s,t=!1){return ws(s,(e,i,n)=>{if(n===1&&i==="queryKey")return v(e,!0);if(t&&Ss(e))return v(e(),t);if(Ie(e))return v(Ze(e),t)})}function Qs(s){if(Object.prototype.toString.call(s)!=="[object Object]")return!1;const t=Object.getPrototypeOf(s);return t===null||t===Object.prototype}function Ss(s){return typeof s=="function"}function ce(s,t){return typeof s=="function"?s(...t):!!s}function Xe(s=""){if(!ts())throw new Error("vue-query hooks can only be used inside setup() function or functions that support injection context.");const t=Je(s),e=es(t);if(!e)throw new Error("No 'queryClient' found in Vue context, use 'VueQueryPlugin' to properly initialize the library.");return e}var Ps=class extends Ve{find(s){return super.find(v(s))}findAll(s={}){return super.findAll(v(s))}},Rs=class extends We{find(s){return super.find(v(s))}findAll(s={}){return super.findAll(v(s))}},Ds=class extends ms{constructor(s={}){const t={defaultOptions:s.defaultOptions,queryCache:s.queryCache||new Ps,mutationCache:s.mutationCache||new Rs};super(t),this.isRestoring=ss(!1)}isFetching(s={}){return super.isFetching(v(s))}isMutating(s={}){return super.isMutating(v(s))}getQueryData(s){return super.getQueryData(v(s))}ensureQueryData(s){return super.ensureQueryData(v(s))}getQueriesData(s){return super.getQueriesData(v(s))}setQueryData(s,t,e={}){return super.setQueryData(v(s),t,v(e))}setQueriesData(s,t,e={}){return super.setQueriesData(v(s),t,v(e))}getQueryState(s){return super.getQueryState(v(s))}removeQueries(s={}){return super.removeQueries(v(s))}resetQueries(s={},t={}){return super.resetQueries(v(s),v(t))}cancelQueries(s={},t={}){return super.cancelQueries(v(s),v(t))}invalidateQueries(s={},t={}){const e=v(s),i=v(t);if(super.invalidateQueries({...e,refetchType:"none"},i),e.refetchType==="none")return Promise.resolve();const n={...e,type:e.refetchType??e.type??"active"};return is().then(()=>super.refetchQueries(n,i))}refetchQueries(s={},t={}){return super.refetchQueries(v(s),v(t))}fetchQuery(s){return super.fetchQuery(v(s))}prefetchQuery(s){return super.prefetchQuery(v(s))}fetchInfiniteQuery(s){return super.fetchInfiniteQuery(v(s))}prefetchInfiniteQuery(s){return super.prefetchInfiniteQuery(v(s))}setDefaultOptions(s){super.setDefaultOptions(v(s))}setQueryDefaults(s,t){super.setQueryDefaults(v(s),v(t))}getQueryDefaults(s){return super.getQueryDefaults(v(s))}setMutationDefaults(s,t){super.setMutationDefaults(v(s),v(t))}getMutationDefaults(s){return super.getMutationDefaults(v(s))}},Is={install:(s,t={})=>{const e=Je(t.queryClientKey);let i;if("queryClient"in t&&t.queryClient)i=t.queryClient;else{const o="queryClientConfig"in t?t.queryClientConfig:void 0;i=new Ds(o)}pt||i.mount();let n=()=>{};if(t.clientPersister){i.isRestoring.value=!0;const[o,u]=t.clientPersister(i);n=o,u.then(()=>{var y;i.isRestoring.value=!1,(y=t.clientPersisterOnSuccess)==null||y.call(t,i)})}const a=()=>{i.unmount(),n()};if(s.onUnmount)s.onUnmount(a);else{const o=s.unmount;s.unmount=function(){a(),o()}}s.provide(e,i)}};function Fs(s,t,e){const i=Xe(),n=Te(()=>{const d=v(t);typeof d.enabled=="function"&&(d.enabled=d.enabled());const Q=i.defaultQueryOptions(d);return Q._optimisticResults=i.isRestoring.value?"isRestoring":"optimistic",Q}),a=new s(i,n.value),o=je(a.getCurrentResult());let u=()=>{};gt(i.isRestoring,d=>{d||(u(),u=a.subscribe(Q=>{oe(o,Q)}))},{immediate:!0});const y=()=>{a.setOptions(n.value),oe(o,a.getCurrentResult())};gt(n,y),xe(()=>{u()});const w=(...d)=>(y(),o.refetch(...d)),f=()=>new Promise((d,Q)=>{let m=()=>{};const g=()=>{if(n.value.enabled!==!1){a.setOptions(n.value);const D=a.getOptimisticResult(n.value);D.isStale?(m(),a.fetchOptimistic(n.value).then(d,E=>{ce(n.value.throwOnError,[E,a.getCurrentQuery()])?Q(E):d(a.getCurrentResult())})):(m(),d(D))}};g(),m=gt(n,g)});gt(()=>o.error,d=>{if(o.isError&&!o.isFetching&&ce(n.value.throwOnError,[d,a.getCurrentQuery()]))throw d});const O=Ke(o);for(const d in o)typeof o[d]=="function"&&(O[d]=o[d]);return O.suspense=f,O.refetch=w,O}function Ts(s,t){return Fs(vs,s)}function js(s,t){const e=Xe(),i=Te(()=>e.defaultMutationOptions(v(s))),n=new Os(e,i.value),a=je(n.getCurrentResult()),o=n.subscribe(f=>{oe(a,f)}),u=(f,c)=>{n.mutate(f,c).catch(()=>{})};gt(i,()=>{n.setOptions(i.value)}),xe(()=>{o()});const w=Ke(a);return gt(()=>a.error,f=>{if(f&&ce(i.value.throwOnError,[f]))throw f}),{...w,mutate:u,mutateAsync:a.mutate,reset:a.reset}}export{Ds as Q,Is as V,Ts as a,js as b,Xe as u};
|
|
1
|
+
var pe=s=>{throw TypeError(s)};var Vt=(s,t,e)=>t.has(s)||pe("Cannot "+e);var r=(s,t,e)=>(Vt(s,t,"read from private field"),e?e.call(s):t.get(s)),l=(s,t,e)=>t.has(s)?pe("Cannot add the same private member more than once"):t instanceof WeakSet?t.add(s):t.set(s,e),h=(s,t,e,i)=>(Vt(s,t,"write to private field"),i?i.call(s,e):t.set(s,e),e),p=(s,t,e)=>(Vt(s,t,"access private method"),e);var _t=(s,t,e,i)=>({set _(n){h(s,t,n,e)},get _(){return r(s,t,i)}});import{i as Ie,u as Ze,h as ts,a as es,r as ss,n as is,c as je,s as Te,w as gt,o as xe,t as Ke}from"./@vue.HgptpWSe.0.0.41.js";var It=class{constructor(){this.listeners=new Set,this.subscribe=this.subscribe.bind(this)}subscribe(s){return this.listeners.add(s),this.onSubscribe(),()=>{this.listeners.delete(s),this.onUnsubscribe()}}hasListeners(){return this.listeners.size>0}onSubscribe(){}onUnsubscribe(){}},pt=typeof window>"u"||"Deno"in globalThis;function H(){}function rs(s,t){return typeof s=="function"?s(t):s}function Wt(s){return typeof s=="number"&&s>=0&&s!==1/0}function Le(s,t){return Math.max(s+(t||0)-Date.now(),0)}function Ot(s,t){return typeof s=="function"?s(t):s}function G(s,t){return typeof s=="function"?s(t):s}function me(s,t){const{type:e="all",exact:i,fetchStatus:n,predicate:a,queryKey:o,stale:u}=s;if(o){if(i){if(t.queryHash!==le(o,t.options))return!1}else if(!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 It{constructor(){super();l(this,ot);l(this,Z);l(this,Ct);h(this,Ct,t=>{if(!pt&&window.addEventListener){const e=()=>t();return window.addEventListener("visibilitychange",e,!1),()=>{window.removeEventListener("visibilitychange",e)}}})}onSubscribe(){r(this,Z)||this.setEventListener(r(this,Ct))}onUnsubscribe(){var t;this.hasListeners()||((t=r(this,Z))==null||t.call(this),h(this,Z,void 0))}setEventListener(t){var e;h(this,Ct,t),(e=r(this,Z))==null||e.call(this),h(this,Z,t(i=>{typeof i=="boolean"?this.setFocused(i):this.onFocus()}))}setFocused(t){r(this,ot)!==t&&(h(this,ot,t),this.onFocus())}onFocus(){const t=this.isFocused();this.listeners.forEach(e=>{e(t)})}isFocused(){var t;return typeof r(this,ot)=="boolean"?r(this,ot):((t=globalThis.document)==null?void 0:t.visibilityState)!=="hidden"}},ot=new WeakMap,Z=new WeakMap,Ct=new WeakMap,Se),de=new os,wt,tt,Qt,Pe,hs=(Pe=class extends It{constructor(){super();l(this,wt,!0);l(this,tt);l(this,Qt);h(this,Qt,t=>{if(!pt&&window.addEventListener){const e=()=>t(!0),i=()=>t(!1);return window.addEventListener("online",e,!1),window.addEventListener("offline",i,!1),()=>{window.removeEventListener("online",e),window.removeEventListener("offline",i)}}})}onSubscribe(){r(this,tt)||this.setEventListener(r(this,Qt))}onUnsubscribe(){var t;this.hasListeners()||((t=r(this,tt))==null||t.call(this),h(this,tt,void 0))}setEventListener(t){var e;h(this,Qt,t),(e=r(this,tt))==null||e.call(this),h(this,tt,t(this.setOnline.bind(this)))}setOnline(t){r(this,wt)!==t&&(h(this,wt,t),this.listeners.forEach(i=>{i(t)}))}isOnline(){return r(this,wt)}},wt=new WeakMap,tt=new WeakMap,Qt=new WeakMap,Pe),Bt=new hs;function Xt(){let s,t;const e=new Promise((n,a)=>{s=n,t=a});e.status="pending",e.catch(()=>{});function i(n){Object.assign(e,n),delete e.resolve,delete e.reject}return e.resolve=n=>{i({status:"fulfilled",value:n}),s(n)},e.reject=n=>{i({status:"rejected",reason:n}),t(n)},e}function cs(s){return Math.min(1e3*2**s,3e4)}function _e(s){return(s??"online")==="online"?Bt.isOnline():!0}var Ne=class extends Error{constructor(s){super("CancelledError"),this.revert=s==null?void 0:s.revert,this.silent=s==null?void 0:s.silent}};function zt(s){return s instanceof Ne}function Ge(s){let t=!1,e=0,i=!1,n;const a=Xt(),o=m=>{var g;i||(O(new Ne(m)),(g=s.abort)==null||g.call(s))},u=()=>{t=!0},y=()=>{t=!1},w=()=>de.isFocused()&&(s.networkMode==="always"||Bt.isOnline())&&s.canRun(),f=()=>_e(s.networkMode)&&s.canRun(),c=m=>{var g;i||(i=!0,(g=s.onSuccess)==null||g.call(s,m),n==null||n(),a.resolve(m))},O=m=>{var g;i||(i=!0,(g=s.onError)==null||g.call(s,m),n==null||n(),a.reject(m))},d=()=>new Promise(m=>{var g;n=D=>{(i||w())&&m(D)},(g=s.onPause)==null||g.call(s)}).then(()=>{var m;n=void 0,i||(m=s.onContinue)==null||m.call(s)}),Q=()=>{if(i)return;let m;const g=e===0?s.initialPromise:void 0;try{m=g??s.fn()}catch(D){m=Promise.reject(D)}Promise.resolve(m).then(c).catch(D=>{var _;if(i)return;const E=s.retry??(pt?0:3),P=s.retryDelay??cs,A=typeof P=="function"?P(e,D):P,K=E===!0||typeof E=="number"&&e<E||typeof E=="function"&&E(e,D);if(t||!K){O(D);return}e++,(_=s.onFail)==null||_.call(s,e,D),ns(A).then(()=>w()?void 0:d()).then(()=>{t?O(D):Q()})})};return{promise:a,cancel:o,continue:()=>(n==null||n(),a),cancelRetry:u,continueRetry:y,canStart:f,start:()=>(f()?Q():d().then(Q),a)}}function ls(){let s=[],t=0,e=u=>{u()},i=u=>{u()},n=u=>setTimeout(u,0);const a=u=>{t?s.push(u):n(()=>{e(u)})},o=()=>{const u=s;s=[],u.length&&n(()=>{i(()=>{u.forEach(y=>{e(y)})})})};return{batch:u=>{let y;t++;try{y=u()}finally{t--,t||o()}return y},batchCalls:u=>(...y)=>{a(()=>{u(...y)})},schedule:a,setNotifyFunction:u=>{e=u},setBatchNotifyFunction:u=>{i=u},setScheduler:u=>{n=u}}}var M=ls(),ht,Re,$e=(Re=class{constructor(){l(this,ht)}destroy(){this.clearGcTimeout()}scheduleGc(){this.clearGcTimeout(),Wt(this.gcTime)&&h(this,ht,setTimeout(()=>{this.optionalRemove()},this.gcTime))}updateGcTime(s){this.gcTime=Math.max(this.gcTime||0,s??(pt?1/0:5*60*1e3))}clearGcTimeout(){r(this,ht)&&(clearTimeout(r(this,ht)),h(this,ht,void 0))}},ht=new WeakMap,Re),St,Pt,k,U,xt,ct,N,W,De,fs=(De=class extends $e{constructor(t){super();l(this,N);l(this,St);l(this,Pt);l(this,k);l(this,U);l(this,xt);l(this,ct);h(this,ct,!1),h(this,xt,t.defaultOptions),this.setOptions(t.options),this.observers=[],h(this,k,t.cache),this.queryKey=t.queryKey,this.queryHash=t.queryHash,h(this,St,ds(this.options)),this.state=t.state??r(this,St),this.scheduleGc()}get meta(){return this.options.meta}get promise(){var t;return(t=r(this,U))==null?void 0:t.promise}setOptions(t){this.options={...r(this,xt),...t},this.updateGcTime(this.options.gcTime)}optionalRemove(){!this.observers.length&&this.state.fetchStatus==="idle"&&r(this,k).remove(this)}setData(t,e){const i=Jt(this.state.data,t,this.options);return p(this,N,W).call(this,{data:i,type:"success",dataUpdatedAt:e==null?void 0:e.updatedAt,manual:e==null?void 0:e.manual}),i}setState(t,e){p(this,N,W).call(this,{type:"setState",state:t,setStateOptions:e})}cancel(t){var i,n;const e=(i=r(this,U))==null?void 0:i.promise;return(n=r(this,U))==null||n.cancel(t),e?e.then(H).catch(H):Promise.resolve()}destroy(){super.destroy(),this.cancel({silent:!0})}reset(){this.destroy(),this.setState(r(this,St))}isActive(){return this.observers.some(t=>G(t.options.enabled,this)!==!1)}isDisabled(){return this.getObserversCount()>0?!this.isActive():this.options.queryFn===fe||this.state.dataUpdateCount+this.state.errorUpdateCount===0}isStale(){return this.state.isInvalidated?!0:this.getObserversCount()>0?this.observers.some(t=>t.getCurrentResult().isStale):this.state.data===void 0}isStaleByTime(t=0){return this.state.isInvalidated||this.state.data===void 0||!Le(this.state.dataUpdatedAt,t)}onFocus(){var e;const t=this.observers.find(i=>i.shouldFetchOnWindowFocus());t==null||t.refetch({cancelRefetch:!1}),(e=r(this,U))==null||e.continue()}onOnline(){var e;const t=this.observers.find(i=>i.shouldFetchOnReconnect());t==null||t.refetch({cancelRefetch:!1}),(e=r(this,U))==null||e.continue()}addObserver(t){this.observers.includes(t)||(this.observers.push(t),this.clearGcTimeout(),r(this,k).notify({type:"observerAdded",query:this,observer:t}))}removeObserver(t){this.observers.includes(t)&&(this.observers=this.observers.filter(e=>e!==t),this.observers.length||(r(this,U)&&(r(this,ct)?r(this,U).cancel({revert:!0}):r(this,U).cancelRetry()),this.scheduleGc()),r(this,k).notify({type:"observerRemoved",query:this,observer:t}))}getObserversCount(){return this.observers.length}invalidate(){this.state.isInvalidated||p(this,N,W).call(this,{type:"invalidate"})}fetch(t,e){var y,w,f;if(this.state.fetchStatus!=="idle"){if(this.state.data!==void 0&&(e!=null&&e.cancelRefetch))this.cancel({silent:!0});else if(r(this,U))return r(this,U).continueRetry(),r(this,U).promise}if(t&&this.setOptions(t),!this.options.queryFn){const c=this.observers.find(O=>O.options.queryFn);c&&this.setOptions(c.options)}const i=new AbortController,n=c=>{Object.defineProperty(c,"signal",{enumerable:!0,get:()=>(h(this,ct,!0),i.signal)})},a=()=>{const c=He(this.options,e),O={queryKey:this.queryKey,meta:this.meta};return n(O),h(this,ct,!1),this.options.persister?this.options.persister(c,O,this):c(O)},o={fetchOptions:e,options:this.options,queryKey:this.queryKey,state:this.state,fetchFn:a};n(o),(y=this.options.behavior)==null||y.onFetch(o,this),h(this,Pt,this.state),(this.state.fetchStatus==="idle"||this.state.fetchMeta!==((w=o.fetchOptions)==null?void 0:w.meta))&&p(this,N,W).call(this,{type:"fetch",meta:(f=o.fetchOptions)==null?void 0:f.meta});const u=c=>{var O,d,Q,m;zt(c)&&c.silent||p(this,N,W).call(this,{type:"error",error:c}),zt(c)||((d=(O=r(this,k).config).onError)==null||d.call(O,c,this),(m=(Q=r(this,k).config).onSettled)==null||m.call(Q,this.state.data,c,this)),this.scheduleGc()};return h(this,U,Ge({initialPromise:e==null?void 0:e.initialPromise,fn:o.fetchFn,abort:i.abort.bind(i),onSuccess:c=>{var O,d,Q,m;if(c===void 0){u(new Error(`${this.queryHash} data is undefined`));return}try{this.setData(c)}catch(g){u(g);return}(d=(O=r(this,k).config).onSuccess)==null||d.call(O,c,this),(m=(Q=r(this,k).config).onSettled)==null||m.call(Q,c,this.state.error,this),this.scheduleGc()},onError:u,onFail:(c,O)=>{p(this,N,W).call(this,{type:"failed",failureCount:c,error:O})},onPause:()=>{p(this,N,W).call(this,{type:"pause"})},onContinue:()=>{p(this,N,W).call(this,{type:"continue"})},retry:o.options.retry,retryDelay:o.options.retryDelay,networkMode:o.options.networkMode,canRun:()=>!0})),r(this,U).start()}},St=new WeakMap,Pt=new WeakMap,k=new WeakMap,U=new WeakMap,xt=new WeakMap,ct=new WeakMap,N=new WeakSet,W=function(t){const e=i=>{switch(t.type){case"failed":return{...i,fetchFailureCount:t.failureCount,fetchFailureReason:t.error};case"pause":return{...i,fetchStatus:"paused"};case"continue":return{...i,fetchStatus:"fetching"};case"fetch":return{...i,...Be(i.data,this.options),fetchMeta:t.meta??null};case"success":return{...i,data:t.data,dataUpdateCount:i.dataUpdateCount+1,dataUpdatedAt:t.dataUpdatedAt??Date.now(),error:null,isInvalidated:!1,status:"success",...!t.manual&&{fetchStatus:"idle",fetchFailureCount:0,fetchFailureReason:null}};case"error":const n=t.error;return zt(n)&&n.revert&&r(this,Pt)?{...r(this,Pt),fetchStatus:"idle"}:{...i,error:n,errorUpdateCount:i.errorUpdateCount+1,errorUpdatedAt:Date.now(),fetchFailureCount:i.fetchFailureCount+1,fetchFailureReason:n,fetchStatus:"idle",status:"error"};case"invalidate":return{...i,isInvalidated:!0};case"setState":return{...i,...t.state}}};this.state=e(this.state),M.batch(()=>{this.observers.forEach(i=>{i.onQueryUpdate()}),r(this,k).notify({query:this,type:"updated",action:t})})},De);function Be(s,t){return{fetchFailureCount:0,fetchFailureReason:null,fetchStatus:_e(t.networkMode)?"fetching":"paused",...s===void 0&&{error:null,status:"pending"}}}function ds(s){const t=typeof s.initialData=="function"?s.initialData():s.initialData,e=t!==void 0,i=e?typeof s.initialDataUpdatedAt=="function"?s.initialDataUpdatedAt():s.initialDataUpdatedAt:0;return{data:t,dataUpdateCount:0,dataUpdatedAt:e?i??Date.now():0,error:null,errorUpdateCount:0,errorUpdatedAt:0,fetchFailureCount:0,fetchFailureReason:null,fetchMeta:null,isInvalidated:!1,status:e?"success":"pending",fetchStatus:"idle"}}var $,Fe,Ve=(Fe=class extends It{constructor(e={}){super();l(this,$);this.config=e,h(this,$,new Map)}build(e,i,n){const a=i.queryKey,o=i.queryHash??le(a,i);let u=this.get(o);return u||(u=new fs({cache:this,queryKey:a,queryHash:o,options:e.defaultQueryOptions(i),state:n,defaultOptions:e.getQueryDefaults(a)}),this.add(u)),u}add(e){r(this,$).has(e.queryHash)||(r(this,$).set(e.queryHash,e),this.notify({type:"added",query:e}))}remove(e){const i=r(this,$).get(e.queryHash);i&&(e.destroy(),i===e&&r(this,$).delete(e.queryHash),this.notify({type:"removed",query:e}))}clear(){M.batch(()=>{this.getAll().forEach(e=>{this.remove(e)})})}get(e){return r(this,$).get(e)}getAll(){return[...r(this,$).values()]}find(e){const i={exact:!0,...e};return this.getAll().find(n=>me(i,n))}findAll(e={}){const i=this.getAll();return Object.keys(e).length>0?i.filter(n=>me(e,n)):i}notify(e){M.batch(()=>{this.listeners.forEach(i=>{i(e)})})}onFocus(){M.batch(()=>{this.getAll().forEach(e=>{e.onFocus()})})}onOnline(){M.batch(()=>{this.getAll().forEach(e=>{e.onOnline()})})}},$=new WeakMap,Fe),B,I,lt,V,X,Ee,ys=(Ee=class extends $e{constructor(t){super();l(this,V);l(this,B);l(this,I);l(this,lt);this.mutationId=t.mutationId,h(this,I,t.mutationCache),h(this,B,[]),this.state=t.state||ze(),this.setOptions(t.options),this.scheduleGc()}setOptions(t){this.options=t,this.updateGcTime(this.options.gcTime)}get meta(){return this.options.meta}addObserver(t){r(this,B).includes(t)||(r(this,B).push(t),this.clearGcTimeout(),r(this,I).notify({type:"observerAdded",mutation:this,observer:t}))}removeObserver(t){h(this,B,r(this,B).filter(e=>e!==t)),this.scheduleGc(),r(this,I).notify({type:"observerRemoved",mutation:this,observer:t})}optionalRemove(){r(this,B).length||(this.state.status==="pending"?this.scheduleGc():r(this,I).remove(this))}continue(){var t;return((t=r(this,lt))==null?void 0:t.continue())??this.execute(this.state.variables)}async execute(t){var n,a,o,u,y,w,f,c,O,d,Q,m,g,D,E,P,A,K,_,q;h(this,lt,Ge({fn:()=>this.options.mutationFn?this.options.mutationFn(t):Promise.reject(new Error("No mutationFn found")),onFail:(F,S)=>{p(this,V,X).call(this,{type:"failed",failureCount:F,error:S})},onPause:()=>{p(this,V,X).call(this,{type:"pause"})},onContinue:()=>{p(this,V,X).call(this,{type:"continue"})},retry:this.options.retry??0,retryDelay:this.options.retryDelay,networkMode:this.options.networkMode,canRun:()=>r(this,I).canRun(this)}));const e=this.state.status==="pending",i=!r(this,lt).canStart();try{if(!e){p(this,V,X).call(this,{type:"pending",variables:t,isPaused:i}),await((a=(n=r(this,I).config).onMutate)==null?void 0:a.call(n,t,this));const S=await((u=(o=this.options).onMutate)==null?void 0:u.call(o,t));S!==this.state.context&&p(this,V,X).call(this,{type:"pending",context:S,variables:t,isPaused:i})}const F=await r(this,lt).start();return await((w=(y=r(this,I).config).onSuccess)==null?void 0:w.call(y,F,t,this.state.context,this)),await((c=(f=this.options).onSuccess)==null?void 0:c.call(f,F,t,this.state.context)),await((d=(O=r(this,I).config).onSettled)==null?void 0:d.call(O,F,null,this.state.variables,this.state.context,this)),await((m=(Q=this.options).onSettled)==null?void 0:m.call(Q,F,null,t,this.state.context)),p(this,V,X).call(this,{type:"success",data:F}),F}catch(F){try{throw await((D=(g=r(this,I).config).onError)==null?void 0:D.call(g,F,t,this.state.context,this)),await((P=(E=this.options).onError)==null?void 0:P.call(E,F,t,this.state.context)),await((K=(A=r(this,I).config).onSettled)==null?void 0:K.call(A,void 0,F,this.state.variables,this.state.context,this)),await((q=(_=this.options).onSettled)==null?void 0:q.call(_,void 0,F,t,this.state.context)),F}finally{p(this,V,X).call(this,{type:"error",error:F})}}finally{r(this,I).runNext(this)}}},B=new WeakMap,I=new WeakMap,lt=new WeakMap,V=new WeakSet,X=function(t){const e=i=>{switch(t.type){case"failed":return{...i,failureCount:t.failureCount,failureReason:t.error};case"pause":return{...i,isPaused:!0};case"continue":return{...i,isPaused:!1};case"pending":return{...i,context:t.context,data:void 0,failureCount:0,failureReason:null,error:null,isPaused:t.isPaused,status:"pending",variables:t.variables,submittedAt:Date.now()};case"success":return{...i,data:t.data,failureCount:0,failureReason:null,error:null,status:"success",isPaused:!1};case"error":return{...i,data:void 0,error:t.error,failureCount:i.failureCount+1,failureReason:t.error,isPaused:!1,status:"error"}}};this.state=e(this.state),M.batch(()=>{r(this,B).forEach(i=>{i.onMutationUpdate(t)}),r(this,I).notify({mutation:this,type:"updated",action:t})})},Ee);function ze(){return{context:void 0,data:void 0,error:null,failureCount:0,failureReason:null,isPaused:!1,status:"idle",variables:void 0,submittedAt:0}}var L,Kt,Me,We=(Me=class extends It{constructor(e={}){super();l(this,L);l(this,Kt);this.config=e,h(this,L,new Map),h(this,Kt,Date.now())}build(e,i,n){const a=new ys({mutationCache:this,mutationId:++_t(this,Kt)._,options:e.defaultMutationOptions(i),state:n});return this.add(a),a}add(e){const i=Nt(e),n=r(this,L).get(i)??[];n.push(e),r(this,L).set(i,n),this.notify({type:"added",mutation:e})}remove(e){var n;const i=Nt(e);if(r(this,L).has(i)){const a=(n=r(this,L).get(i))==null?void 0:n.filter(o=>o!==e);a&&(a.length===0?r(this,L).delete(i):r(this,L).set(i,a))}this.notify({type:"removed",mutation:e})}canRun(e){var n;const i=(n=r(this,L).get(Nt(e)))==null?void 0:n.find(a=>a.state.status==="pending");return!i||i===e}runNext(e){var n;const i=(n=r(this,L).get(Nt(e)))==null?void 0:n.find(a=>a!==e&&a.state.isPaused);return(i==null?void 0:i.continue())??Promise.resolve()}clear(){M.batch(()=>{this.getAll().forEach(e=>{this.remove(e)})})}getAll(){return[...r(this,L).values()].flat()}find(e){const i={exact:!0,...e};return this.getAll().find(n=>ve(i,n))}findAll(e={}){return this.getAll().filter(i=>ve(e,i))}notify(e){M.batch(()=>{this.listeners.forEach(i=>{i(e)})})}resumePausedMutations(){const e=this.getAll().filter(i=>i.state.isPaused);return M.batch(()=>Promise.all(e.map(i=>i.continue().catch(H))))}},L=new WeakMap,Kt=new WeakMap,Me);function Nt(s){var t;return((t=s.options.scope)==null?void 0:t.id)??String(s.mutationId)}function Oe(s){return{onFetch:(t,e)=>{var f,c,O,d,Q;const i=t.options,n=(O=(c=(f=t.fetchOptions)==null?void 0:f.meta)==null?void 0:c.fetchMore)==null?void 0:O.direction,a=((d=t.state.data)==null?void 0:d.pages)||[],o=((Q=t.state.data)==null?void 0:Q.pageParams)||[];let u={pages:[],pageParams:[]},y=0;const w=async()=>{let m=!1;const g=P=>{Object.defineProperty(P,"signal",{enumerable:!0,get:()=>(t.signal.aborted?m=!0:t.signal.addEventListener("abort",()=>{m=!0}),t.signal)})},D=He(t.options,t.fetchOptions),E=async(P,A,K)=>{if(m)return Promise.reject();if(A==null&&P.pages.length)return Promise.resolve(P);const _={queryKey:t.queryKey,pageParam:A,direction:K?"backward":"forward",meta:t.options.meta};g(_);const q=await D(_),{maxPages:F}=t.options,S=K?us:as;return{pages:S(P.pages,q,F),pageParams:S(P.pageParams,A,F)}};if(n&&a.length){const P=n==="backward",A=P?ps:Ce,K={pages:a,pageParams:o},_=A(i,K);u=await E(K,_,P)}else{const P=s??a.length;do{const A=y===0?o[0]??i.initialPageParam:Ce(i,u);if(y>0&&A==null)break;u=await E(u,A),y++}while(y<P)}return u};t.options.persister?t.fetchFn=()=>{var m,g;return(g=(m=t.options).persister)==null?void 0:g.call(m,w,{queryKey:t.queryKey,meta:t.options.meta,signal:t.signal},e)}:t.fetchFn=w}}}function Ce(s,{pages:t,pageParams:e}){const i=t.length-1;return t.length>0?s.getNextPageParam(t[i],t,e[i],e):void 0}function ps(s,{pages:t,pageParams:e}){var i;return t.length>0?(i=s.getPreviousPageParam)==null?void 0:i.call(s,t[0],t,e[0],e):void 0}var R,et,st,Rt,Dt,it,Ft,Et,Ae,ms=(Ae=class{constructor(t={}){l(this,R);l(this,et);l(this,st);l(this,Rt);l(this,Dt);l(this,it);l(this,Ft);l(this,Et);h(this,R,t.queryCache||new Ve),h(this,et,t.mutationCache||new We),h(this,st,t.defaultOptions||{}),h(this,Rt,new Map),h(this,Dt,new Map),h(this,it,0)}mount(){_t(this,it)._++,r(this,it)===1&&(h(this,Ft,de.subscribe(async t=>{t&&(await this.resumePausedMutations(),r(this,R).onFocus())})),h(this,Et,Bt.subscribe(async t=>{t&&(await this.resumePausedMutations(),r(this,R).onOnline())})))}unmount(){var t,e;_t(this,it)._--,r(this,it)===0&&((t=r(this,Ft))==null||t.call(this),h(this,Ft,void 0),(e=r(this,Et))==null||e.call(this),h(this,Et,void 0))}isFetching(t){return r(this,R).findAll({...t,fetchStatus:"fetching"}).length}isMutating(t){return r(this,et).findAll({...t,status:"pending"}).length}getQueryData(t){var i;const e=this.defaultQueryOptions({queryKey:t});return(i=r(this,R).get(e.queryHash))==null?void 0:i.state.data}ensureQueryData(t){const e=this.getQueryData(t.queryKey);if(e===void 0)return this.fetchQuery(t);{const i=this.defaultQueryOptions(t),n=r(this,R).build(this,i);return t.revalidateIfStale&&n.isStaleByTime(Ot(i.staleTime,n))&&this.prefetchQuery(i),Promise.resolve(e)}}getQueriesData(t){return r(this,R).findAll(t).map(({queryKey:e,state:i})=>{const n=i.data;return[e,n]})}setQueryData(t,e,i){const n=this.defaultQueryOptions({queryKey:t}),a=r(this,R).get(n.queryHash),o=a==null?void 0:a.state.data,u=rs(e,o);if(u!==void 0)return r(this,R).build(this,n).setData(u,{...i,manual:!0})}setQueriesData(t,e,i){return M.batch(()=>r(this,R).findAll(t).map(({queryKey:n})=>[n,this.setQueryData(n,e,i)]))}getQueryState(t){var i;const e=this.defaultQueryOptions({queryKey:t});return(i=r(this,R).get(e.queryHash))==null?void 0:i.state}removeQueries(t){const e=r(this,R);M.batch(()=>{e.findAll(t).forEach(i=>{e.remove(i)})})}resetQueries(t,e){const i=r(this,R),n={type:"active",...t};return M.batch(()=>(i.findAll(t).forEach(a=>{a.reset()}),this.refetchQueries(n,e)))}cancelQueries(t,e={}){const i={revert:!0,...e},n=M.batch(()=>r(this,R).findAll(t).map(a=>a.cancel(i)));return Promise.all(n).then(H).catch(H)}invalidateQueries(t,e={}){return M.batch(()=>{if(r(this,R).findAll(t).forEach(n=>{n.invalidate()}),(t==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,Dt).set(mt(t),{mutationKey:t,defaultOptions:e})}getMutationDefaults(t){const e=[...r(this,Dt).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.enabled!==!0&&e.queryFn===fe&&(e.enabled=!1),e}defaultMutationOptions(t){return t!=null&&t._defaulted?t:{...r(this,st).mutations,...(t==null?void 0:t.mutationKey)&&this.getMutationDefaults(t.mutationKey),...t,_defaulted:!0}}clear(){r(this,R).clear(),r(this,et).clear()}},R=new WeakMap,et=new WeakMap,st=new WeakMap,Rt=new WeakMap,Dt=new WeakMap,it=new WeakMap,Ft=new WeakMap,Et=new WeakMap,Ae),T,b,Lt,j,ft,Mt,rt,z,kt,At,Ut,dt,yt,nt,qt,C,jt,Zt,te,ee,se,ie,re,ne,Ye,Ue,vs=(Ue=class extends It{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,qt,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,qt).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 F;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((F=r(this,Ut))==null?void 0:F.state.data,r(this,Ut)):e.placeholderData,e.select&&S!==void 0)try{S=e.select(S),h(this,z,null)}catch(vt){h(this,z,vt)}S!==void 0&&(g="success",d=Jt(a==null?void 0:a.data,S,e),O=!0)}r(this,z)&&(Q=r(this,z),d=r(this,At),m=Date.now(),g="error");const D=c.fetchStatus==="fetching",E=g==="pending",P=g==="error",A=E&&D,K=d!==void 0,q={status:g,fetchStatus:c.fetchStatus,isPending:E,isSuccess:g==="success",isError:P,isInitialLoading:A,isLoading:A,data:d,dataUpdatedAt:c.dataUpdatedAt,error:Q,errorUpdatedAt:m,failureCount:c.fetchFailureCount,failureReason:c.fetchFailureReason,errorUpdateCount:c.errorUpdateCount,isFetched:c.dataUpdateCount>0||c.errorUpdateCount>0,isFetchedAfterMount:c.dataUpdateCount>w.dataUpdateCount||c.errorUpdateCount>w.errorUpdateCount,isFetching:D,isRefetching:D&&!E,isLoadingError:P&&!K,isPaused:c.fetchStatus==="paused",isPlaceholderData:O,isRefetchError:P&&K,isStale:ye(t,e),refetch:this.refetch,promise:r(this,rt)};if(this.options.experimental_prefetchInRender){const S=Ht=>{q.status==="error"?Ht.reject(q.error):q.data!==void 0&&Ht.resolve(q.data)},vt=()=>{const Ht=h(this,rt,q.promise=Xt());S(Ht)},bt=r(this,rt);switch(bt.status){case"pending":t.queryHash===i.queryHash&&S(bt);break;case"fulfilled":(q.status==="error"||q.data!==bt.value)&&vt();break;case"rejected":(q.status!=="error"||q.error!==bt.reason)&&vt();break}}return q}updateResult(t){const e=r(this,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,qt).size)return!0;const y=new Set(u??r(this,qt));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,qt=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,qe,Os=(qe=class extends It{constructor(t,e){super();l(this,J);l(this,at);l(this,ut);l(this,x);l(this,Y);h(this,at,t),this.setOptions(e),this.bindMethods(),p(this,J,Gt).call(this)}bindMethods(){this.mutate=this.mutate.bind(this),this.reset=this.reset.bind(this)}setOptions(t){var i;const e=this.options;this.options=r(this,at).defaultMutationOptions(t),$t(this.options,e)||r(this,at).getMutationCache().notify({type:"observerOptionsUpdated",mutation:r(this,x),observer:this}),e!=null&&e.mutationKey&&this.options.mutationKey&&mt(e.mutationKey)!==mt(this.options.mutationKey)?this.reset():((i=r(this,x))==null?void 0:i.state.status)==="pending"&&r(this,x).setOptions(this.options)}onUnsubscribe(){var t;this.hasListeners()||(t=r(this,x))==null||t.removeObserver(this)}onMutationUpdate(t){p(this,J,Gt).call(this),p(this,J,ue).call(this,t)}getCurrentResult(){return r(this,ut)}reset(){var t;(t=r(this,x))==null||t.removeObserver(this),h(this,x,void 0),p(this,J,Gt).call(this),p(this,J,ue).call(this)}mutate(t,e){var i;return h(this,Y,e),(i=r(this,x))==null||i.removeObserver(this),h(this,x,r(this,at).getMutationCache().build(r(this,at),this.options)),r(this,x).addObserver(this),r(this,x).execute(t)}},at=new WeakMap,ut=new WeakMap,x=new WeakMap,Y=new WeakMap,J=new WeakSet,Gt=function(){var e;const t=((e=r(this,x))==null?void 0:e.state)??ze();h(this,ut,{...t,isPending:t.status==="pending",isSuccess:t.status==="success",isError:t.status==="error",isIdle:t.status==="idle",mutate:this.mutate,reset:this.reset})},ue=function(t){M.batch(()=>{var e,i,n,a,o,u,y,w;if(r(this,Y)&&this.hasListeners()){const f=r(this,ut).variables,c=r(this,ut).context;(t==null?void 0:t.type)==="success"?((i=(e=r(this,Y)).onSuccess)==null||i.call(e,t.data,f,c),(a=(n=r(this,Y)).onSettled)==null||a.call(n,t.data,null,f,c)):(t==null?void 0:t.type)==="error"&&((u=(o=r(this,Y)).onError)==null||u.call(o,t.error,f,c),(w=(y=r(this,Y)).onSettled)==null||w.call(y,void 0,t.error,f,c))}this.listeners.forEach(f=>{f(r(this,ut))})})},qe),Cs="VUE_QUERY_CLIENT";function Je(s){const t=s?`:${s}`:"";return`${Cs}${t}`}function oe(s,t){Object.keys(s).forEach(e=>{s[e]=t[e]})}function he(s,t,e="",i=0){if(t){const n=t(s,e,i);if(n===void 0&&Ie(s)||n!==void 0)return n}if(Array.isArray(s))return s.map((n,a)=>he(n,t,String(a),i+1));if(typeof s=="object"&&Qs(s)){const n=Object.entries(s).map(([a,o])=>[a,he(o,t,a,i+1)]);return Object.fromEntries(n)}return s}function ws(s,t){return he(s,t)}function v(s,t=!1){return ws(s,(e,i,n)=>{if(n===1&&i==="queryKey")return v(e,!0);if(t&&Ss(e))return v(e(),t);if(Ie(e))return v(Ze(e),t)})}function Qs(s){if(Object.prototype.toString.call(s)!=="[object Object]")return!1;const t=Object.getPrototypeOf(s);return t===null||t===Object.prototype}function Ss(s){return typeof s=="function"}function ce(s,t){return typeof s=="function"?s(...t):!!s}function Xe(s=""){if(!ts())throw new Error("vue-query hooks can only be used inside setup() function or functions that support injection context.");const t=Je(s),e=es(t);if(!e)throw new Error("No 'queryClient' found in Vue context, use 'VueQueryPlugin' to properly initialize the library.");return e}var Ps=class extends Ve{find(s){return super.find(v(s))}findAll(s={}){return super.findAll(v(s))}},Rs=class extends We{find(s){return super.find(v(s))}findAll(s={}){return super.findAll(v(s))}},Ds=class extends ms{constructor(s={}){const t={defaultOptions:s.defaultOptions,queryCache:s.queryCache||new Ps,mutationCache:s.mutationCache||new Rs};super(t),this.isRestoring=ss(!1)}isFetching(s={}){return super.isFetching(v(s))}isMutating(s={}){return super.isMutating(v(s))}getQueryData(s){return super.getQueryData(v(s))}ensureQueryData(s){return super.ensureQueryData(v(s))}getQueriesData(s){return super.getQueriesData(v(s))}setQueryData(s,t,e={}){return super.setQueryData(v(s),t,v(e))}setQueriesData(s,t,e={}){return super.setQueriesData(v(s),t,v(e))}getQueryState(s){return super.getQueryState(v(s))}removeQueries(s={}){return super.removeQueries(v(s))}resetQueries(s={},t={}){return super.resetQueries(v(s),v(t))}cancelQueries(s={},t={}){return super.cancelQueries(v(s),v(t))}invalidateQueries(s={},t={}){const e=v(s),i=v(t);if(super.invalidateQueries({...e,refetchType:"none"},i),e.refetchType==="none")return Promise.resolve();const n={...e,type:e.refetchType??e.type??"active"};return is().then(()=>super.refetchQueries(n,i))}refetchQueries(s={},t={}){return super.refetchQueries(v(s),v(t))}fetchQuery(s){return super.fetchQuery(v(s))}prefetchQuery(s){return super.prefetchQuery(v(s))}fetchInfiniteQuery(s){return super.fetchInfiniteQuery(v(s))}prefetchInfiniteQuery(s){return super.prefetchInfiniteQuery(v(s))}setDefaultOptions(s){super.setDefaultOptions(v(s))}setQueryDefaults(s,t){super.setQueryDefaults(v(s),v(t))}getQueryDefaults(s){return super.getQueryDefaults(v(s))}setMutationDefaults(s,t){super.setMutationDefaults(v(s),v(t))}getMutationDefaults(s){return super.getMutationDefaults(v(s))}},Is={install:(s,t={})=>{const e=Je(t.queryClientKey);let i;if("queryClient"in t&&t.queryClient)i=t.queryClient;else{const o="queryClientConfig"in t?t.queryClientConfig:void 0;i=new Ds(o)}pt||i.mount();let n=()=>{};if(t.clientPersister){i.isRestoring.value=!0;const[o,u]=t.clientPersister(i);n=o,u.then(()=>{var y;i.isRestoring.value=!1,(y=t.clientPersisterOnSuccess)==null||y.call(t,i)})}const a=()=>{i.unmount(),n()};if(s.onUnmount)s.onUnmount(a);else{const o=s.unmount;s.unmount=function(){a(),o()}}s.provide(e,i)}};function Fs(s,t,e){const i=Xe(),n=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 D=a.getOptimisticResult(n.value);D.isStale?(m(),a.fetchOptimistic(n.value).then(d,E=>{ce(n.value.throwOnError,[E,a.getCurrentQuery()])?Q(E):d(a.getCurrentResult())})):(m(),d(D))}};g(),m=gt(n,g)});gt(()=>o.error,d=>{if(o.isError&&!o.isFetching&&ce(n.value.throwOnError,[d,a.getCurrentQuery()]))throw d});const O=Ke(o);for(const d in o)typeof o[d]=="function"&&(O[d]=o[d]);return O.suspense=f,O.refetch=w,O}function js(s,t){return Fs(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{Ds as Q,Is as V,js as a,Ts as b,Xe as u};
|
package/dist/interface/{@vee-validate.DOPySfe9.0.0.39.js → @vee-validate.BN6pp7gT.0.0.41.js}
RENAMED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{Z as a,a as s,b as h}from"./zod.Bn-rxnIN.0.0.
|
|
1
|
+
import{Z as a,a as s,b as h}from"./zod.Bn-rxnIN.0.0.41.js";import{i as j,c as y}from"./vee-validate.rx6EoM-V.0.0.41.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.41.js";import{c as No}from"./hookable.B8xFkYCm.0.0.41.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.HgptpWSe.0.0.41.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};
|
|
@@ -0,0 +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.HgptpWSe.0.0.41.js";import{n as Y}from"./nprogress.B4qekFjh.0.0.41.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};
|